@graphysdk/react-renderer 1.9.0-beta.1795707432298 → 1.9.0-beta.1795773309240
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ar-DRJfF3kx.cjs +1 -0
- package/dist/ar-DhjH4ZbY.js +883 -0
- package/dist/editable.cjs +1 -1
- package/dist/editable.css +1 -1
- package/dist/editable.d.ts +158 -3
- package/dist/editable.mjs +3530 -9959
- package/dist/en-gb-Bj-PFdWU.js +886 -0
- package/dist/en-gb-wV0MmZLj.cjs +1 -0
- package/dist/en-us-CNHaFu8A.js +11 -0
- package/dist/en-us-CfL-X7mL.cjs +1 -0
- package/dist/history-chords-B2-10FJz.cjs +2 -0
- package/dist/{history-chords-DsyzK0E1.js → history-chords-D0dxpjAS.js} +1749 -1774
- package/dist/history-chords.css +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +0 -7
- package/dist/index.mjs +147 -147
- package/dist/pt-pt-1KAFquYm.js +884 -0
- package/dist/pt-pt-Dl-e1WyP.cjs +1 -0
- package/dist/rich-text-editor-module-Bwgb_RyF.js +891 -0
- package/dist/rich-text-editor-module-q1jI1hQi.cjs +1 -0
- package/dist/rich-text-editor-module.css +1 -1
- package/dist/start-arrow-button-B1mfKZVJ.cjs +1 -0
- package/dist/start-arrow-button-B3eETYt0.js +5506 -0
- package/dist/start-arrow-button.css +1 -1
- package/package.json +2 -2
- package/dist/history-chords-DaTCFopa.cjs +0 -2
- package/dist/rich-text-editor-module-E-39Qvp9.cjs +0 -1
- package/dist/rich-text-editor-module-Gwyekzd_.js +0 -974
- package/dist/start-arrow-button-CqFgBJ0s.js +0 -1569
- package/dist/start-arrow-button-DlSXTrKp.cjs +0 -1
package/dist/editable.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.pr583x0{gap:var(--graphy-space-xxs);flex-direction:column;display:flex}.pr583x1{align-items:center;gap:var(--graphy-space-sm);min-block-size:var(--graphy-editor-control-height);grid-template-columns:minmax(0,1fr) minmax(0,1fr);display:grid}.pr583x2{justify-content:flex-end;inline-size:100%;min-inline-size:0;display:flex}.pr583x3{color:color-mix(in srgb, transparent, var(--graphy-editor-text,var(--graphy-editor-default-text)) 70%);font:var(--graphy-font-editor-control-label);cursor:pointer;-webkit-user-select:none;user-select:none;flex-shrink:0}.pr583x4{line-height:var(--graphy-editor-control-height)}.pr583x5{align-items:center;gap:var(--graphy-space-xs);min-block-size:var(--graphy-editor-control-height);display:flex}._1a90obs0{inline-size:100%}._1a90obs1{display:flex}._1yjsaqt0{gap:var(--graphy-space-xs);flex-direction:column;inline-size:100%;display:flex}._1yjsaqt1{flex-wrap:wrap;align-items:center;inline-size:100%;display:flex}._1yjsaqt2{object-fit:contain;block-size:12px;inline-size:12px}._1yjsaqt3{background:currentColor;block-size:12px;inline-size:12px;-webkit-mask-position:50%;mask-position:50%;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}._1yjsaqt4{inline-size:100%;color:color-mix(in srgb, transparent, var(--graphy-editor-text,var(--graphy-editor-default-text)) 70%);font:var(--graphy-font-editor-control-label);text-align:start;margin:0}._1qh3fon0{stroke:var(--graphy-editor-border,color-mix(in srgb, transparent, var(--graphy-editor-text,var(--graphy-editor-default-text)) 12%));stroke-width:1px}._1aafi1g0{flex-shrink:0;display:inline-flex;position:relative}._1aafi1g1{background:var(--graphy-alert);border-radius:1px;block-size:2px;inline-size:80%;position:absolute;top:50%;transform:translate(-50%,-50%)rotate(45deg)}._1aafi1g1:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){left:50%}._1aafi1g1:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){left:50%}._1aafi1g1:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){right:50%}._1aafi1g1:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){right:50%}.kwvn4c0{z-index:var(--graphy-z-index-editor-popover)}.kwvn4c0[data-anchor-hidden]{opacity:0;pointer-events:none}.kwvn4c1{--graphy-editor-control-height:26px;gap:var(--graphy-space-sm);box-sizing:border-box;inline-size:max-content;min-inline-size:min(var(--graphy-editor-menu-min-width,var(--graphy-editor-menu-max-width,252px)), var(--available-width,100vw));max-inline-size:min(var(--graphy-editor-menu-max-width,252px), var(--available-width,100vw));max-block-size:var(--available-height,60vh);padding:var(--graphy-editor-menu-padding,var(--graphy-editor-padding-y,var(--graphy-space-md)) var(--graphy-editor-padding-x,var(--graphy-space-md)));background:var(--graphy-editor-menu-background,var(--graphy-editor-surface,var(--graphy-editor-default-surface)));border:var(--graphy-editor-border-width,1px) solid var(--graphy-editor-menu-border,var(--graphy-editor-border,color-mix(in srgb, transparent, var(--graphy-editor-text,var(--graphy-editor-default-text)) 12%)));border-radius:var(--graphy-editor-menu-radius,var(--graphy-radii-md));box-shadow:var(--graphy-editor-menu-shadow,var(--graphy-editor-default-shadow));color:var(--graphy-editor-menu-text,var(--graphy-editor-text,var(--graphy-editor-default-text)));font-family:var(--graphy-editor-font-family,var(--graphy-font-family));transform-origin:var(--transform-origin);outline:none;flex-direction:column;transition:transform .15s ease-out,opacity .15s ease-out;display:flex;overflow:hidden auto}.kwvn4c1[data-starting-style]{opacity:0;transform:scale(.92)}.kwvn4c1 .pr583x1{margin:0 calc(-1 * var(--graphy-space-xs));padding:3px var(--graphy-space-xs);border-radius:var(--graphy-radii-sm);transition:background .1s cubic-bezier(.55,.085,.68,.53)}.kwvn4c1 .pr583x1:hover{background:color-mix(in srgb, transparent, var(--graphy-editor-text,var(--graphy-editor-default-text)) 4%)}.kwvn4c1 .pr583x0{margin:0 calc(-1 * var(--graphy-space-xs));padding:3px var(--graphy-space-xs);border-radius:var(--graphy-radii-sm);transition:background .1s cubic-bezier(.55,.085,.68,.53)}.kwvn4c1 .pr583x0:hover{background:color-mix(in srgb, transparent, var(--graphy-editor-text,var(--graphy-editor-default-text)) 4%)}.kwvn4c1 .pr583x4{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.kwvn4c1 .tpcnun0{padding-inline:var(--graphy-space-md)}.kwvn4c1 .tpcnun0 input::placeholder{color:var(--graphy-text-secondary);opacity:.6}@media (prefers-reduced-motion:reduce){.kwvn4c1{transition:none}}._1j45ehx0{gap:inherit;flex-direction:column;display:flex}._1j45ehx1{justify-content:space-between;align-items:center;gap:inherit;display:flex}._1j45ehx2{color:inherit;font:var(--graphy-editor-menu-title-font,600 13px/1.3 var(--graphy-editor-font-family,var(--graphy-font-family)));text-overflow:ellipsis;white-space:nowrap;flex:auto;min-inline-size:0;margin:0;overflow:hidden}._1j45ehx3{visibility:hidden;pointer-events:none;font:var(--graphy-editor-menu-title-font,600 13px/1.3 var(--graphy-editor-font-family,var(--graphy-font-family)));white-space:nowrap;position:absolute}.vez73g0{align-items:stretch;gap:var(--graphy-space-sm);flex-direction:column;display:flex}.vez73g1{box-sizing:border-box;background:var(--graphy-editor-menu-background,var(--graphy-editor-surface,var(--graphy-editor-default-surface)));border:var(--graphy-editor-border-width,1px) solid var(--graphy-editor-menu-border,var(--graphy-editor-border,color-mix(in srgb, transparent, var(--graphy-editor-text,var(--graphy-editor-default-text)) 12%)));border-radius:var(--graphy-editor-menu-radius,var(--graphy-radii-lg));box-shadow:var(--graphy-editor-menu-shadow,var(--graphy-editor-default-shadow));color:var(--graphy-editor-menu-text,var(--graphy-editor-text,var(--graphy-editor-default-text)));inline-size:max-content;max-inline-size:var(--available-width,100vw);align-items:center;gap:var(--graphy-space-xxs);padding:4px;display:flex}.vez73g2{box-sizing:border-box;background:var(--graphy-editor-menu-background,var(--graphy-editor-surface,var(--graphy-editor-default-surface)));border:var(--graphy-editor-border-width,1px) solid var(--graphy-editor-menu-border,var(--graphy-editor-border,color-mix(in srgb, transparent, var(--graphy-editor-text,var(--graphy-editor-default-text)) 12%)));border-radius:var(--graphy-editor-menu-radius,var(--graphy-radii-lg));box-shadow:var(--graphy-editor-menu-shadow,var(--graphy-editor-default-shadow));color:var(--graphy-editor-menu-text,var(--graphy-editor-text,var(--graphy-editor-default-text)));inline-size:max-content;max-inline-size:var(--available-width,100vw);align-items:center;gap:var(--graphy-space-xs);flex-wrap:wrap;padding:4px;display:flex}.vez73g3{box-sizing:border-box;background:var(--graphy-editor-menu-background,var(--graphy-editor-surface,var(--graphy-editor-default-surface)));border:var(--graphy-editor-border-width,1px) solid var(--graphy-editor-menu-border,var(--graphy-editor-border,color-mix(in srgb, transparent, var(--graphy-editor-text,var(--graphy-editor-default-text)) 12%)));border-radius:var(--graphy-editor-menu-radius,var(--graphy-radii-lg));box-shadow:var(--graphy-editor-menu-shadow,var(--graphy-editor-default-shadow));color:var(--graphy-editor-menu-text,var(--graphy-editor-text,var(--graphy-editor-default-text)));inline-size:max-content;max-inline-size:var(--available-width,100vw);flex-flow:wrap;align-items:center;gap:0;min-inline-size:0;padding:4px;display:flex}.vez73g4{box-sizing:border-box;background:var(--graphy-editor-menu-background,var(--graphy-editor-surface,var(--graphy-editor-default-surface)));border:var(--graphy-editor-border-width,1px) solid var(--graphy-editor-menu-border,var(--graphy-editor-border,color-mix(in srgb, transparent, var(--graphy-editor-text,var(--graphy-editor-default-text)) 12%)));border-radius:var(--graphy-editor-menu-radius,var(--graphy-radii-lg));box-shadow:var(--graphy-editor-menu-shadow,var(--graphy-editor-default-shadow));color:var(--graphy-editor-menu-text,var(--graphy-editor-text,var(--graphy-editor-default-text)));inline-size:max-content;max-inline-size:var(--available-width,100vw);align-items:center;gap:var(--graphy-space-xs);flex-direction:row;padding:4px;display:flex}.vez73g5{font-size:9px;font-weight:var(--graphy-font-weight-bold);color:#b84737;font-style:normal;line-height:1;position:absolute;bottom:0}.vez73g5:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){right:1px}.vez73g5:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){right:1px}.vez73g5:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){left:1px}.vez73g5:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){left:1px}.vez73g6{box-sizing:border-box;background:var(--graphy-editor-menu-background,var(--graphy-editor-surface,var(--graphy-editor-default-surface)));border:var(--graphy-editor-border-width,1px) solid var(--graphy-editor-menu-border,var(--graphy-editor-border,color-mix(in srgb, transparent, var(--graphy-editor-text,var(--graphy-editor-default-text)) 12%)));border-radius:var(--graphy-editor-menu-radius,var(--graphy-radii-lg));box-shadow:var(--graphy-editor-menu-shadow,var(--graphy-editor-default-shadow));color:var(--graphy-editor-menu-text,var(--graphy-editor-text,var(--graphy-editor-default-text)));inline-size:max-content;max-inline-size:var(--available-width,100vw);align-items:center;padding:4px;display:flex}.vez73g7{align-items:center;gap:var(--graphy-space-sm);inline-size:240px;display:flex}.vez73g8{flex:1;min-inline-size:0}.vez73g9{object-fit:contain;block-size:100%;inline-size:100%}.vez73ga{block-size:34px;inline-size:34px;padding:var(--graphy-space-xxs);-webkit-appearance:none;appearance:none;border-radius:var(--graphy-radii-sm);cursor:pointer;background:0 0;border:none;justify-content:center;align-items:center;display:flex}.vez73ga:hover{background:color-mix(in srgb, transparent, var(--graphy-editor-text,var(--graphy-editor-default-text)) 6%)}.kwvn4c1:has(.vez73g0){min-inline-size:min(max-content, var(--available-width,100vw));box-shadow:none;background:0 0;border:none;border-radius:0;gap:0;padding:0;overflow:visible}.kwvn4c1:has(.vez73g0)>._1j45ehx0{display:none}.vez73g1 button{box-sizing:border-box;border-radius:var(--graphy-radii-md);block-size:34px;inline-size:34px;box-shadow:none;background:0 0;border:none;flex-shrink:0;margin:0;padding:0;transition:none}.vez73g1 button>span{background:0 0;padding:0}.vez73g1 button:hover{background:color-mix(in srgb, transparent, var(--graphy-editor-text,var(--graphy-editor-default-text)) 6%)}.vez73g1 button[aria-expanded=true]{background:var(--graphy-toolbar-button-background-color-selected)}.vez73g4 button{border-radius:var(--graphy-radii-md);block-size:34px;inline-size:34px;box-shadow:none;color:color-mix(in srgb, transparent, var(--graphy-editor-text,var(--graphy-editor-default-text)) 70%);background:0 0;border:none;margin:0;padding:0;position:relative}.vez73g4 button:hover{background:color-mix(in srgb, transparent, var(--graphy-editor-text,var(--graphy-editor-default-text)) 6%);color:var(--graphy-editor-text,var(--graphy-editor-default-text))}.vez73g4 button>span{background:0 0;padding:0}.vez73g6 .tpcnun0{box-sizing:border-box;block-size:34px}.vez73g7>button{border-radius:var(--graphy-radii-sm);background:var(--graphy-editor-text,var(--graphy-editor-default-text));block-size:34px;inline-size:auto;box-shadow:none;color:var(--graphy-editor-surface,var(--graphy-editor-default-surface));font-size:12.5px;font-weight:var(--graphy-font-weight-semibold);border:none;flex-shrink:0;align-self:center;margin:0;padding:0 10px}.vez73g7>button:hover{background:var(--graphy-editor-text,var(--graphy-editor-default-text));color:var(--graphy-editor-surface,var(--graphy-editor-default-surface));border:none}.vez73g7>button:disabled{color:var(--graphy-editor-surface,var(--graphy-editor-default-surface))}.vez73g7>button>span{color:inherit;background:0 0;padding:0}.vez73g3 button{box-sizing:border-box;block-size:auto;inline-size:auto;min-inline-size:0;max-inline-size:100%;box-shadow:none;color:var(--graphy-editor-text,var(--graphy-editor-default-text));font-size:var(--graphy-font-size-sm);font-weight:var(--graphy-font-weight-semibold);white-space:nowrap;cursor:pointer;background:0 0;border:none;border-radius:0;flex-shrink:1;margin-block-start:-4px;margin-block-end:-4px;margin-inline-start:0;margin-inline-end:0;padding:4px 2px;line-height:1;overflow:hidden}.vez73g3 button>span{box-sizing:border-box;border-radius:var(--graphy-radii-md);background:color-mix(in srgb, var(--graphy-editor-surface,var(--graphy-editor-default-surface)), var(--graphy-editor-text,var(--graphy-editor-default-text)) 5%);text-overflow:ellipsis;white-space:nowrap;block-size:34px;min-inline-size:0;max-inline-size:100%;padding:0 10px;line-height:34px;display:block;overflow:hidden}.vez73g3 button:hover>span{background:color-mix(in srgb, var(--graphy-editor-surface,var(--graphy-editor-default-surface)), var(--graphy-editor-text,var(--graphy-editor-default-text)) 5%);box-shadow:inset 0 0 0 1.5px var(--graphy-editor-text,var(--graphy-editor-default-text))}.vez73g3 button:focus-visible>span{background:color-mix(in srgb, var(--graphy-editor-surface,var(--graphy-editor-default-surface)), var(--graphy-editor-text,var(--graphy-editor-default-text)) 5%);box-shadow:inset 0 0 0 1.5px var(--graphy-editor-text,var(--graphy-editor-default-text))}.vez73g3 button[aria-pressed=true]>span,.vez73g3 button[aria-pressed=true]:hover>span{background:var(--graphy-editor-text,var(--graphy-editor-default-text));color:var(--graphy-editor-surface,var(--graphy-editor-default-surface))}.vez73g3 button[aria-pressed=true]:focus-visible>span{background:var(--graphy-editor-text,var(--graphy-editor-default-text));color:var(--graphy-editor-surface,var(--graphy-editor-default-surface))}._10igzta0{pointer-events:none;position:fixed;top:0;left:0}._1vbfegu1{inline-size:auto}._1vbfegu2{border-radius:var(--graphy-radii-md);block-size:34px;inline-size:34px;color:color-mix(in srgb, transparent, var(--graphy-editor-text,var(--graphy-editor-default-text)) 70%);cursor:pointer;background:0 0;border:none;place-items:center;margin:0;padding:0;display:grid}._1vbfegu2:hover{background:color-mix(in srgb, var(--graphy-editor-surface,var(--graphy-editor-default-surface)), var(--graphy-editor-text,var(--graphy-editor-default-text)) 7%);color:var(--graphy-editor-text,var(--graphy-editor-default-text))}._1vbfegu0 .vez73g1 svg{color:currentColor;opacity:.8;block-size:16px;inline-size:16px}._1vbfegu0 .vez73g1 button[aria-expanded=true] svg{opacity:1}._1vbfegu2 svg{color:currentColor;opacity:.8;block-size:16px;inline-size:16px}._1vbfegu3{box-sizing:border-box;border:1.5px solid var(--graphy-text-primary);background:var(--graphy-white);pointer-events:none;border-radius:50%;block-size:11px;inline-size:11px;position:absolute;transform:translate(-50%,-50%)}._1qfw3e01{z-index:1;pointer-events:none;position:absolute;top:0;left:0;overflow:visible}._1qfw3e02 *{fill:inherit;stroke:inherit;stroke-width:calc(var(--dppmab0,0px) + var(--_1qfw3e00));stroke-linejoin:round;stroke-linecap:inherit;stroke-dasharray:inherit;opacity:1}._1qfw3e02 [data-edit-outline-stroke],._1qfw3e02 [data-edit-outline-stroke] *{fill:none}._11vjgg60{padding:var(--graphy-space-xxs);border-radius:var(--graphy-radii-sm);color:color-mix(in srgb, transparent, var(--graphy-editor-text,var(--graphy-editor-default-text)) 70%);cursor:pointer;background:0 0;border:none;flex-shrink:0;justify-content:center;align-items:center;transition:background .1s cubic-bezier(.55,.085,.68,.53),color .1s cubic-bezier(.55,.085,.68,.53);display:inline-flex}._11vjgg60:hover{color:var(--graphy-editor-text,var(--graphy-editor-default-text));background:color-mix(in srgb, var(--graphy-editor-surface,var(--graphy-editor-default-surface)), var(--graphy-editor-text,var(--graphy-editor-default-text)) 7%)}._11vjgg60:focus-visible{box-shadow:inset 0 0 0 2px color-mix(in srgb, transparent, var(--graphy-editor-text,var(--graphy-editor-default-text)) 55.0%)}._1am0al61{box-sizing:border-box;border-style:solid;border-width:2px;border-color:var(--_1am0al60);border-radius:4px;position:absolute}._1am0al62{box-sizing:border-box;background:var(--graphy-graph-background);border-style:solid;border-width:2px;border-color:var(--_1am0al60);border-radius:50%;width:8px;height:8px;margin-top:-4px;margin-left:-4px;position:absolute}.c44vv80{pointer-events:none;position:absolute;overflow:visible}.c44vv80 foreignObject *{pointer-events:none}._1lp7ph20{pointer-events:none;position:absolute;overflow:visible}._112xh5c0{color:var(--graphy-text-secondary);margin-inline-start:auto;display:inline-flex}._1me29t10{pointer-events:auto;cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none;border-radius:50%;width:24px;height:24px;margin-top:-12px;margin-left:-12px;position:absolute}._1me29t10:active{cursor:grabbing}._1me29t10:focus-visible{outline:none}[data-graphy-keyboard-input] ._1me29t10:focus{box-shadow:inset 0 0 0 2px var(--graphy-brand)}@keyframes _1vsi7qw0{0%{opacity:0;visibility:hidden}to{opacity:1;visibility:visible}}._1vsi7qw1{pointer-events:none;position:absolute;top:0;bottom:0;left:0;right:0;overflow:visible}._1vsi7qw2{pointer-events:auto;cursor:crosshair;touch-action:none;border-radius:50%;place-items:center;animation:.12s ease-out .12s both _1vsi7qw0;display:grid;position:absolute}._1vsi7qw3{box-sizing:border-box;background:0 0;border-style:solid;border-radius:50%}._1vsi7qw2:hover ._1vsi7qw3{background:currentColor}.ydgo3h1{isolation:isolate}.ydgo3h1 .pvjfpx2{z-index:1}.ydgo3h2{pointer-events:auto;cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none;border-radius:50%;justify-content:center;align-items:center;width:24px;height:24px;margin-top:-12px;margin-left:-12px;display:flex;position:absolute}.ydgo3h2:active{cursor:grabbing}.ydgo3h2:focus-visible{outline:none}[data-graphy-keyboard-input] .ydgo3h2:focus{box-shadow:inset 0 0 0 2px var(--graphy-brand)}.ydgo3h3{box-sizing:border-box;background:var(--graphy-graph-background);border:2px solid var(--ydgo3h0);opacity:0;border-radius:50%;width:10px;height:10px}.ydgo3h2:hover .ydgo3h3,.ydgo3h2:active .ydgo3h3,.ydgo3h2[data-shown] .ydgo3h3{opacity:1}.ydgo3h4{box-sizing:border-box;border:2px solid var(--ydgo3h0);position:absolute}.q7gcrz0{color:var(--graphy-text-secondary);font-variant-numeric:tabular-nums;white-space:nowrap;flex-shrink:0}.q7gcrz1{text-overflow:ellipsis;white-space:nowrap;min-inline-size:0;overflow:hidden}.q7gcrz2{color:var(--graphy-text-secondary);font-variant-numeric:tabular-nums;margin-inline-start:auto}.q7gcrz3{color:var(--graphy-alert)}.s8eewu0{pointer-events:none;position:absolute;top:0;bottom:0;left:0;right:0;overflow:visible}.s8eewu1{stroke:currentColor;stroke-dasharray:4 3}.o49ib41{box-sizing:border-box;background:var(--o49ib40);border:2px solid var(--graphy-graph-background);border-radius:50%;width:10px;height:10px}.o49ib42{box-sizing:border-box;background:var(--o49ib40);border:2px solid var(--graphy-graph-background);border-radius:50%;width:12px;height:12px}.o49ib43{pointer-events:auto;touch-action:none;-webkit-user-select:none;user-select:none;border-radius:50%;justify-content:center;align-items:center;width:24px;height:24px;margin-top:-12px;margin-left:-12px;display:flex;position:absolute}.o49ib43[role=button]{cursor:ew-resize}.o49ib43:focus-visible{outline:none}[data-graphy-keyboard-input] .o49ib43:focus{box-shadow:inset 0 0 0 2px var(--graphy-brand)}.o49ib44{pointer-events:auto;touch-action:none;-webkit-user-select:none;user-select:none;border-radius:50%;justify-content:center;align-items:center;width:24px;height:24px;margin-top:-12px;margin-left:-12px;display:flex;position:absolute}.o49ib44[role=button]{cursor:nwse-resize}.o49ib44:focus-visible{outline:none}[data-graphy-keyboard-input] .o49ib44:focus{box-shadow:inset 0 0 0 2px var(--graphy-brand)}.o49ib45{pointer-events:auto;touch-action:none;-webkit-user-select:none;user-select:none;border-radius:50%;justify-content:center;align-items:center;width:24px;height:24px;margin-top:-12px;margin-left:-12px;display:flex;position:absolute}.o49ib45[role=button]{cursor:nesw-resize}.o49ib45:focus-visible{outline:none}[data-graphy-keyboard-input] .o49ib45:focus{box-shadow:inset 0 0 0 2px var(--graphy-brand)}._1khwdhw0{pointer-events:none;position:absolute;overflow:visible}._1khwdhw1{pointer-events:auto;cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none;border-radius:50%;width:24px;height:24px;margin-top:-12px;margin-left:-12px;position:absolute}._1khwdhw1:active{cursor:grabbing}._1khwdhw1:focus-visible{outline:none}[data-graphy-keyboard-input] ._1khwdhw1:focus{box-shadow:inset 0 0 0 2px var(--graphy-brand)}._1rpuha50{pointer-events:auto;cursor:default;position:absolute;top:0;bottom:0;left:0;right:0}._12lhx9e0{align-items:center;gap:var(--graphy-space-sm);grid-template-columns:minmax(0,1fr) minmax(0,1fr);display:grid}._139ohwv0{gap:var(--graphy-space-md);flex-direction:column;display:flex}._1jlczkt0{box-sizing:border-box;inline-size:100%;padding-inline:var(--graphy-editor-padding-x,var(--graphy-space-md));padding-block:var(--graphy-editor-padding-y,var(--graphy-space-md));background:var(--graphy-editor-surface,var(--graphy-editor-default-surface));color:var(--graphy-editor-text,var(--graphy-editor-default-text));font-family:var(--graphy-editor-font-family,var(--graphy-font-family));font-weight:var(--graphy-font-weight-medium);box-shadow:inset 0 0 0 var(--graphy-editor-border-width,1px) var(--graphy-editor-panel-border,transparent);-webkit-user-select:none;user-select:none;font-size:calc(10px * var(--graphy-text-scale));flex-direction:column;display:flex;overflow:hidden auto}._2m7wuq0{block-size:var(--graphy-editor-border-width,1px);background:var(--graphy-editor-border,color-mix(in srgb, transparent, var(--graphy-editor-text,var(--graphy-editor-default-text)) 12%));flex-shrink:0}._40zvwv0{padding-block:var(--graphy-space-md);flex-direction:column;display:flex}._40zvwv0+._40zvwv0{border-block-start:var(--graphy-editor-border-width,1px) solid var(--graphy-editor-border,color-mix(in srgb, transparent, var(--graphy-editor-text,var(--graphy-editor-default-text)) 12%))}._40zvwv1{align-items:center;gap:var(--graphy-space-xl);min-block-size:36px;inline-size:100%;display:flex;position:relative}._40zvwv2{border-radius:var(--graphy-radii-sm);cursor:pointer;background:0 0;border:none;padding:0;position:absolute;top:0;bottom:0;left:0;right:0}._40zvwv3{pointer-events:none;color:var(--graphy-editor-text,var(--graphy-editor-default-text));font:var(--graphy-font-editor-section-title);flex-shrink:0;position:relative}._40zvwv4{pointer-events:auto;cursor:pointer;-webkit-user-select:none;user-select:none}._40zvwv5{pointer-events:none;white-space:nowrap;text-overflow:ellipsis;text-align:end;min-inline-size:0;color:color-mix(in srgb, transparent, var(--graphy-editor-text,var(--graphy-editor-default-text)) 70%);font:var(--graphy-font-editor-caption);line-height:var(--graphy-font-line-height-sm);flex:1;position:relative;overflow:hidden}._40zvwv6{flex:1;justify-content:flex-end;min-inline-size:0;display:flex;position:relative}._40zvwv7{color:var(--graphy-icon-primary);flex-shrink:0;align-items:center;margin-inline-start:auto;display:inline-flex;position:relative}._40zvwv8{pointer-events:none;inline-size:var(--graphy-editor-control-height);block-size:var(--graphy-editor-control-height);border-radius:var(--graphy-radii-md);color:color-mix(in srgb, transparent, var(--graphy-editor-text,var(--graphy-editor-default-text)) 50%);background:0 0;flex-shrink:0;justify-content:center;align-items:center;margin-inline-start:auto;transition:background .1s cubic-bezier(.55,.085,.68,.53),rotate .1s cubic-bezier(.55,.085,.68,.53);display:inline-flex;position:relative}._40zvwv7+._40zvwv8{margin-inline-start:0}._40zvwv0[data-open] ._40zvwv8{background:color-mix(in srgb, var(--graphy-editor-surface,var(--graphy-editor-default-surface)), var(--graphy-editor-text,var(--graphy-editor-default-text)) 7%);rotate:90deg}._40zvwv2:focus-visible~._40zvwv8{box-shadow:inset 0 0 0 2px color-mix(in srgb, transparent, var(--graphy-editor-text,var(--graphy-editor-default-text)) 55.0%)}@media (prefers-reduced-motion:reduce){._40zvwv8{transition:none}}.qdaoth0{fill:var(--graphy-icon-sticker-background)}._1v6dqrh0{inline-size:100%}
|
|
1
|
+
._10igzta0{pointer-events:none;position:fixed;top:0;left:0}._1vbfegu1{inline-size:auto}._1vbfegu2{border-radius:var(--graphy-radii-md);block-size:34px;inline-size:34px;color:color-mix(in srgb, transparent, var(--graphy-editor-text,var(--graphy-editor-default-text)) 70%);cursor:pointer;background:0 0;border:none;place-items:center;margin:0;padding:0;display:grid}._1vbfegu2:hover{background:color-mix(in srgb, var(--graphy-editor-surface,var(--graphy-editor-default-surface)), var(--graphy-editor-text,var(--graphy-editor-default-text)) 7%);color:var(--graphy-editor-text,var(--graphy-editor-default-text))}._1vbfegu0 .vez73g1 svg{color:currentColor;opacity:.8;block-size:16px;inline-size:16px}._1vbfegu0 .vez73g1 button[aria-expanded=true] svg{opacity:1}._1vbfegu2 svg{color:currentColor;opacity:.8;block-size:16px;inline-size:16px}._1vbfegu3{box-sizing:border-box;border:1.5px solid var(--graphy-text-primary);background:var(--graphy-white);pointer-events:none;border-radius:50%;block-size:11px;inline-size:11px;position:absolute;transform:translate(-50%,-50%)}._1qfw3e01{z-index:1;pointer-events:none;position:absolute;top:0;left:0;overflow:visible}._1qfw3e02 *{fill:inherit;stroke:inherit;stroke-width:calc(var(--dppmab0,0px) + var(--_1qfw3e00));stroke-linejoin:round;stroke-linecap:inherit;stroke-dasharray:inherit;opacity:1}._1qfw3e02 [data-edit-outline-stroke],._1qfw3e02 [data-edit-outline-stroke] *{fill:none}._11vjgg60{padding:var(--graphy-space-xxs);border-radius:var(--graphy-radii-sm);color:color-mix(in srgb, transparent, var(--graphy-editor-text,var(--graphy-editor-default-text)) 70%);cursor:pointer;background:0 0;border:none;flex-shrink:0;justify-content:center;align-items:center;transition:background .1s cubic-bezier(.55,.085,.68,.53),color .1s cubic-bezier(.55,.085,.68,.53);display:inline-flex}._11vjgg60:hover{color:var(--graphy-editor-text,var(--graphy-editor-default-text));background:color-mix(in srgb, var(--graphy-editor-surface,var(--graphy-editor-default-surface)), var(--graphy-editor-text,var(--graphy-editor-default-text)) 7%)}._11vjgg60:focus-visible{box-shadow:inset 0 0 0 2px color-mix(in srgb, transparent, var(--graphy-editor-text,var(--graphy-editor-default-text)) 55.0%)}._1am0al61{box-sizing:border-box;border-style:solid;border-width:2px;border-color:var(--_1am0al60);border-radius:4px;position:absolute}._1am0al62{box-sizing:border-box;background:var(--graphy-graph-background);border-style:solid;border-width:2px;border-color:var(--_1am0al60);border-radius:50%;width:8px;height:8px;margin-top:-4px;margin-left:-4px;position:absolute}.c44vv80{pointer-events:none;position:absolute;overflow:visible}.c44vv80 foreignObject *{pointer-events:none}._1lp7ph20{pointer-events:none;position:absolute;overflow:visible}._112xh5c0{color:var(--graphy-text-secondary);margin-inline-start:auto;display:inline-flex}._1me29t10{pointer-events:auto;cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none;border-radius:50%;width:24px;height:24px;margin-top:-12px;margin-left:-12px;position:absolute}._1me29t10:active{cursor:grabbing}._1me29t10:focus-visible{outline:none}[data-graphy-keyboard-input] ._1me29t10:focus{box-shadow:inset 0 0 0 2px var(--graphy-brand)}@keyframes _1vsi7qw0{0%{opacity:0;visibility:hidden}to{opacity:1;visibility:visible}}._1vsi7qw1{pointer-events:none;position:absolute;top:0;bottom:0;left:0;right:0;overflow:visible}._1vsi7qw2{pointer-events:auto;cursor:crosshair;touch-action:none;border-radius:50%;place-items:center;animation:.12s ease-out .12s both _1vsi7qw0;display:grid;position:absolute}._1vsi7qw3{box-sizing:border-box;background:0 0;border-style:solid;border-radius:50%}._1vsi7qw2:hover ._1vsi7qw3{background:currentColor}.ydgo3h1{pointer-events:auto;cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none;border-radius:50%;justify-content:center;align-items:center;width:24px;height:24px;margin-top:-12px;margin-left:-12px;display:flex;position:absolute}.ydgo3h1:active{cursor:grabbing}.ydgo3h1:focus-visible{outline:none}[data-graphy-keyboard-input] .ydgo3h1:focus{box-shadow:inset 0 0 0 2px var(--graphy-brand)}.ydgo3h2{box-sizing:border-box;background:var(--graphy-graph-background);border:2px solid var(--ydgo3h0);opacity:0;border-radius:50%;width:10px;height:10px}.ydgo3h1:hover .ydgo3h2,.ydgo3h1:active .ydgo3h2,.ydgo3h1[data-shown] .ydgo3h2{opacity:1}.ydgo3h3{box-sizing:border-box;border:2px solid var(--ydgo3h0);position:absolute}.q7gcrz0{text-overflow:ellipsis;white-space:nowrap;min-inline-size:0;overflow:hidden}.q7gcrz1{color:var(--graphy-text-secondary);font-variant-numeric:tabular-nums;margin-inline-start:auto}.q7gcrz2{color:var(--graphy-alert)}.s8eewu0{pointer-events:none;position:absolute;top:0;bottom:0;left:0;right:0;overflow:visible}.s8eewu1{stroke:currentColor;stroke-dasharray:4 3}.o49ib41{box-sizing:border-box;background:var(--o49ib40);border:2px solid var(--graphy-graph-background);border-radius:50%;width:10px;height:10px}.o49ib42{box-sizing:border-box;background:var(--o49ib40);border:2px solid var(--graphy-graph-background);border-radius:50%;width:12px;height:12px}.o49ib43{pointer-events:auto;touch-action:none;-webkit-user-select:none;user-select:none;border-radius:50%;justify-content:center;align-items:center;width:24px;height:24px;margin-top:-12px;margin-left:-12px;display:flex;position:absolute}.o49ib43[role=button]{cursor:ew-resize}.o49ib43:focus-visible{outline:none}[data-graphy-keyboard-input] .o49ib43:focus{box-shadow:inset 0 0 0 2px var(--graphy-brand)}.o49ib44{pointer-events:auto;touch-action:none;-webkit-user-select:none;user-select:none;border-radius:50%;justify-content:center;align-items:center;width:24px;height:24px;margin-top:-12px;margin-left:-12px;display:flex;position:absolute}.o49ib44[role=button]{cursor:nwse-resize}.o49ib44:focus-visible{outline:none}[data-graphy-keyboard-input] .o49ib44:focus{box-shadow:inset 0 0 0 2px var(--graphy-brand)}.o49ib45{pointer-events:auto;touch-action:none;-webkit-user-select:none;user-select:none;border-radius:50%;justify-content:center;align-items:center;width:24px;height:24px;margin-top:-12px;margin-left:-12px;display:flex;position:absolute}.o49ib45[role=button]{cursor:nesw-resize}.o49ib45:focus-visible{outline:none}[data-graphy-keyboard-input] .o49ib45:focus{box-shadow:inset 0 0 0 2px var(--graphy-brand)}._1khwdhw0{pointer-events:none;position:absolute;overflow:visible}._1khwdhw1{pointer-events:auto;cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none;border-radius:50%;width:24px;height:24px;margin-top:-12px;margin-left:-12px;position:absolute}._1khwdhw1:active{cursor:grabbing}._1khwdhw1:focus-visible{outline:none}[data-graphy-keyboard-input] ._1khwdhw1:focus{box-shadow:inset 0 0 0 2px var(--graphy-brand)}._1rpuha50{pointer-events:auto;cursor:default;position:absolute;top:0;bottom:0;left:0;right:0}._12lhx9e0{align-items:center;gap:var(--graphy-space-sm);grid-template-columns:minmax(0,1fr) minmax(0,1fr);display:grid}._139ohwv0{gap:var(--graphy-space-md);flex-direction:column;display:flex}._1jlczkt0{box-sizing:border-box;inline-size:100%;padding-inline:var(--graphy-editor-padding-x,var(--graphy-space-md));padding-block:var(--graphy-editor-padding-y,var(--graphy-space-md));background:var(--graphy-editor-surface,var(--graphy-editor-default-surface));color:var(--graphy-editor-text,var(--graphy-editor-default-text));font-family:var(--graphy-editor-font-family,var(--graphy-font-family));font-weight:var(--graphy-font-weight-medium);box-shadow:inset 0 0 0 var(--graphy-editor-border-width,1px) var(--graphy-editor-panel-border,transparent);-webkit-user-select:none;user-select:none;font-size:calc(10px * var(--graphy-text-scale));flex-direction:column;display:flex;overflow:hidden auto}._2m7wuq0{block-size:var(--graphy-editor-border-width,1px);background:var(--graphy-editor-border,color-mix(in srgb, transparent, var(--graphy-editor-text,var(--graphy-editor-default-text)) 12%));flex-shrink:0}._40zvwv0{padding-block:var(--graphy-space-md);flex-direction:column;display:flex}._40zvwv0+._40zvwv0{border-block-start:var(--graphy-editor-border-width,1px) solid var(--graphy-editor-border,color-mix(in srgb, transparent, var(--graphy-editor-text,var(--graphy-editor-default-text)) 12%))}._40zvwv1{align-items:center;gap:var(--graphy-space-xl);min-block-size:36px;inline-size:100%;display:flex;position:relative}._40zvwv2{border-radius:var(--graphy-radii-sm);cursor:pointer;background:0 0;border:none;padding:0;position:absolute;top:0;bottom:0;left:0;right:0}._40zvwv3{pointer-events:none;color:var(--graphy-editor-text,var(--graphy-editor-default-text));font:var(--graphy-font-editor-section-title);flex-shrink:0;position:relative}._40zvwv4{pointer-events:auto;cursor:pointer;-webkit-user-select:none;user-select:none}._40zvwv5{pointer-events:none;white-space:nowrap;text-overflow:ellipsis;text-align:end;min-inline-size:0;color:color-mix(in srgb, transparent, var(--graphy-editor-text,var(--graphy-editor-default-text)) 70%);font:var(--graphy-font-editor-caption);line-height:var(--graphy-font-line-height-sm);flex:1;position:relative;overflow:hidden}._40zvwv6{flex:1;justify-content:flex-end;min-inline-size:0;display:flex;position:relative}._40zvwv7{color:var(--graphy-icon-primary);flex-shrink:0;align-items:center;margin-inline-start:auto;display:inline-flex;position:relative}._40zvwv8{pointer-events:none;inline-size:var(--graphy-editor-control-height);block-size:var(--graphy-editor-control-height);border-radius:var(--graphy-radii-md);color:color-mix(in srgb, transparent, var(--graphy-editor-text,var(--graphy-editor-default-text)) 50%);background:0 0;flex-shrink:0;justify-content:center;align-items:center;margin-inline-start:auto;transition:background .1s cubic-bezier(.55,.085,.68,.53),rotate .1s cubic-bezier(.55,.085,.68,.53);display:inline-flex;position:relative}._40zvwv7+._40zvwv8{margin-inline-start:0}._40zvwv0[data-open] ._40zvwv8{background:color-mix(in srgb, var(--graphy-editor-surface,var(--graphy-editor-default-surface)), var(--graphy-editor-text,var(--graphy-editor-default-text)) 7%);rotate:90deg}._40zvwv2:focus-visible~._40zvwv8{box-shadow:inset 0 0 0 2px color-mix(in srgb, transparent, var(--graphy-editor-text,var(--graphy-editor-default-text)) 55.0%)}@media (prefers-reduced-motion:reduce){._40zvwv8{transition:none}}.qdaoth0{fill:var(--graphy-icon-sticker-background)}._1v6dqrh0{inline-size:100%}
|
package/dist/editable.d.ts
CHANGED
|
@@ -27,13 +27,17 @@ import { LayerIntroPlan } from '@graphysdk/viz-engine';
|
|
|
27
27
|
import { LegendPosition } from '@graphysdk/viz-engine';
|
|
28
28
|
import { LineType } from '@graphysdk/viz-engine';
|
|
29
29
|
import { MainAxis } from '@graphysdk/viz-engine';
|
|
30
|
+
import { MouseEvent as MouseEvent_2 } from 'react';
|
|
30
31
|
import { Observation } from '@graphysdk/viz-engine';
|
|
31
32
|
import { ObservationsTarget } from '@graphysdk/viz-engine';
|
|
32
33
|
import { PolarCoordSystem } from '@graphysdk/viz-engine';
|
|
34
|
+
import { Popover } from '@base-ui/react/popover';
|
|
33
35
|
import { PositionAdjustment } from '@graphysdk/viz-engine';
|
|
34
36
|
import { ReactElement } from 'react';
|
|
35
37
|
import { ReactNode } from 'react';
|
|
38
|
+
import { ReactPortal } from 'react';
|
|
36
39
|
import { Rect } from '@graphysdk/viz-engine';
|
|
40
|
+
import { RefObject } from 'react';
|
|
37
41
|
import { RenderHitTester } from '@graphysdk/viz-engine';
|
|
38
42
|
import { ResolvedHeadlineSize } from '@graphysdk/viz-engine';
|
|
39
43
|
import { ResolvedObservationAnchorSpec } from '@graphysdk/viz-engine';
|
|
@@ -49,6 +53,7 @@ import { StyleReadersForLayer } from '@graphysdk/viz-engine';
|
|
|
49
53
|
import { TextContent } from '@graphysdk/viz-engine';
|
|
50
54
|
import { TextMeasurer } from '@graphysdk/viz-engine';
|
|
51
55
|
import { TextStyle } from '@graphysdk/viz-engine';
|
|
56
|
+
import { Toolbar } from '@base-ui/react/toolbar';
|
|
52
57
|
import { TooltipContent } from '@graphysdk/viz-engine';
|
|
53
58
|
import { XYPoint } from '@graphysdk/viz-engine';
|
|
54
59
|
|
|
@@ -199,6 +204,48 @@ export declare const CaptionSection: ({ title, layout, preview }: OverridableSec
|
|
|
199
204
|
/** The chart's edit menu: its type, data labels on every layer at once, the settings that change how they read, the path settings that apply to every line at once, and the palette. */
|
|
200
205
|
export declare const ChartEditMenu: TargetEditMenu<'graph'>;
|
|
201
206
|
|
|
207
|
+
declare interface ColorPickerProps {
|
|
208
|
+
/**
|
|
209
|
+
* The color the swatches outline and the custom picker opens on. Callers holding a *derived* color —
|
|
210
|
+
* one inherited rather than authored — should pass the derived value, so what is outlined is what the
|
|
211
|
+
* canvas paints.
|
|
212
|
+
*/
|
|
213
|
+
color: string | null;
|
|
214
|
+
/**
|
|
215
|
+
* Fired for every change, including each frame of a drag inside the custom picker. A caller wanting
|
|
216
|
+
* one undo entry per visit dispatches transiently here and commits when the popup closes.
|
|
217
|
+
*/
|
|
218
|
+
onChange: (color: string) => void;
|
|
219
|
+
open: boolean;
|
|
220
|
+
onOpenChange: (open: boolean) => void;
|
|
221
|
+
/** The trigger's contents; defaults to a swatch of the current color. */
|
|
222
|
+
children?: ReactNode;
|
|
223
|
+
/** Accessible name for the trigger, so each tenant can say what the color is *of*. */
|
|
224
|
+
label?: string;
|
|
225
|
+
/**
|
|
226
|
+
* Spread onto both popups. A tenant whose popups must stay inside a focus scope stamps them here —
|
|
227
|
+
* they portal separately, and one that forgets falls outside the scope.
|
|
228
|
+
*/
|
|
229
|
+
popupAttributes?: Record<string, string>;
|
|
230
|
+
/**
|
|
231
|
+
* Alpha of what is being colored, 0 to 1. Given together with {@link onOpacityChange} it adds a track
|
|
232
|
+
* below the swatches; a tenant coloring something with no alpha of its own passes neither and the
|
|
233
|
+
* popup ends at the custom picker.
|
|
234
|
+
*/
|
|
235
|
+
opacity?: number;
|
|
236
|
+
/** Fired for every change, including each frame of a drag, on the same terms as {@link onChange}. */
|
|
237
|
+
onOpacityChange?: (opacity: number) => void;
|
|
238
|
+
/**
|
|
239
|
+
* Adds `'transparent'` to the swatches, for a tenant whose model has something to say about a fill that
|
|
240
|
+
* is not there. Left off by default: for most, no fill means the theme's own, which is a color.
|
|
241
|
+
*/
|
|
242
|
+
hasTransparentOption?: boolean;
|
|
243
|
+
/** Leads the swatches with `AUTO_COLOR`, for a tenant whose renderer picks a color when none is set. */
|
|
244
|
+
hasAutomaticOption?: boolean;
|
|
245
|
+
/** Which side of the trigger its tooltip opens on: away from what the toolbar edits. */
|
|
246
|
+
tooltipSide?: ControlTooltipProps['side'];
|
|
247
|
+
}
|
|
248
|
+
|
|
202
249
|
/** The color row for a selection. Renders nothing where the command has nowhere to write. */
|
|
203
250
|
export declare const ColorRow: {
|
|
204
251
|
({ target }: ResolvedObservations): JSX.Element | null;
|
|
@@ -321,7 +368,7 @@ export declare interface ControlRegistryProviderProps {
|
|
|
321
368
|
}
|
|
322
369
|
|
|
323
370
|
/** Names an option that shows only an icon, on hover and focus the Base UI way, and at once in a hovered row or menu head. */
|
|
324
|
-
export declare const ControlTooltip: ({ label, checked, side, delay, nameTrigger, suppressed, children, }: ControlTooltipProps) => JSX.Element;
|
|
371
|
+
export declare const ControlTooltip: ({ label, checked, side, delay, nameTrigger, suppressed, layer, children, }: ControlTooltipProps) => JSX.Element;
|
|
325
372
|
|
|
326
373
|
/** What a host's own control passes to name an option that shows only an icon, as Graphy's controls do. */
|
|
327
374
|
export declare interface ControlTooltipProps {
|
|
@@ -340,6 +387,8 @@ export declare interface ControlTooltipProps {
|
|
|
340
387
|
nameTrigger?: boolean;
|
|
341
388
|
/** Keeps the tooltip hidden while the trigger's own popup is open. */
|
|
342
389
|
suppressed?: boolean;
|
|
390
|
+
/** Where the name stacks: `toolbar` keeps a toolbar control's name under the popups its toolbar opens. */
|
|
391
|
+
layer?: 'popup' | 'toolbar';
|
|
343
392
|
/** The option's element, which must pass the props and ref it is given on to one DOM element, as a `<button>` does. */
|
|
344
393
|
children: ReactElement;
|
|
345
394
|
}
|
|
@@ -1738,9 +1787,10 @@ declare const EDITOR_EN_GB: {
|
|
|
1738
1787
|
* Provides editor translations. `EditableGraphRenderer` and `EditorPanel.Root` include this provider.
|
|
1739
1788
|
* Add it to set a locale, override translations, or translate custom editing UI.
|
|
1740
1789
|
*
|
|
1741
|
-
* Includes both
|
|
1790
|
+
* Includes both dictionaries once the locale arrives, so callers cannot omit required translations.
|
|
1791
|
+
* Until then, chart phrases still translate and an editor phrase shows its key.
|
|
1742
1792
|
*/
|
|
1743
|
-
export declare const EditorIntlProvider: ({ children, ...rest }: EditorIntlProviderProps) => JSX.Element;
|
|
1793
|
+
export declare const EditorIntlProvider: ({ children, locale, ...rest }: EditorIntlProviderProps) => JSX.Element;
|
|
1744
1794
|
|
|
1745
1795
|
/** `IntlProvider`'s props, with `i18nOverrides` keyed by the editor's phrases as well as the chart's. */
|
|
1746
1796
|
declare interface EditorIntlProviderProps extends Omit<IntlProviderProps, 'dictionaries' | 'i18nOverrides'> {
|
|
@@ -1941,6 +1991,98 @@ export declare interface FileInputControlProps extends ControlBaseProps {
|
|
|
1941
1991
|
variant?: 'default' | 'chip';
|
|
1942
1992
|
}
|
|
1943
1993
|
|
|
1994
|
+
/**
|
|
1995
|
+
* The parts a host builds a toolbar from, and only those: the rest of the set leans on providers and Base UI
|
|
1996
|
+
* pieces a host would have to assemble itself, and stays the renderer's to change.
|
|
1997
|
+
*/
|
|
1998
|
+
export declare const FloatingToolbar: {
|
|
1999
|
+
Portal: ({ children }: FloatingToolbarPortalProps) => ReactPortal | null;
|
|
2000
|
+
Root: ({ className, tooltipSide, ...props }: FloatingToolbarRootProps) => JSX.Element;
|
|
2001
|
+
Group: ({ className, ...props }: FloatingToolbarGroupProps) => JSX.Element;
|
|
2002
|
+
Separator: ({ className, ...props }: FloatingToolbarSeparatorProps) => JSX.Element;
|
|
2003
|
+
Button: ({ label, pressed, disabled, onClick, children }: FloatingToolbarButtonProps) => JSX.Element;
|
|
2004
|
+
Submenu: ({ open, defaultOpen, onOpenChange, ...props }: FloatingToolbarSubmenuProps) => JSX.Element;
|
|
2005
|
+
SubmenuTrigger: ({ label, pressed, disabled, children }: FloatingToolbarSubmenuTriggerProps) => JSX.Element;
|
|
2006
|
+
SubmenuContent: ({ align, initialFocus, children, }: FloatingToolbarSubmenuContentProps) => JSX.Element;
|
|
2007
|
+
Dropdown: ({ label, trigger, open: isOpen, onOpenChange, disabled, children, }: FloatingToolbarDropdownProps) => JSX.Element;
|
|
2008
|
+
MenuItem: ({ children, selected, disabled, onClick }: MenuItemProps) => JSX.Element;
|
|
2009
|
+
ColorPicker: ({ tooltipSide, ...props }: Omit<ColorPickerProps, "popupAttributes">) => JSX.Element;
|
|
2010
|
+
Swatch: ({ color, opacity }: FloatingToolbarSwatchProps) => JSX.Element;
|
|
2011
|
+
};
|
|
2012
|
+
|
|
2013
|
+
/** A button in the pill that shows only an icon, so its label is both the tooltip and the accessible name. */
|
|
2014
|
+
export declare interface FloatingToolbarButtonProps {
|
|
2015
|
+
label: string;
|
|
2016
|
+
/** Given, the button is a toggle showing whether the selection already holds what it applies. */
|
|
2017
|
+
pressed?: boolean;
|
|
2018
|
+
disabled?: boolean;
|
|
2019
|
+
/** Handed the click, so a tool that starts a drawing can start it where the press landed. */
|
|
2020
|
+
onClick?: (event: MouseEvent_2<HTMLButtonElement>) => void;
|
|
2021
|
+
children: ReactNode;
|
|
2022
|
+
}
|
|
2023
|
+
|
|
2024
|
+
/** A menu of one attribute's values below a button that shows the value in force. */
|
|
2025
|
+
export declare interface FloatingToolbarDropdownProps {
|
|
2026
|
+
label: string;
|
|
2027
|
+
/** What the trigger draws: which attribute this is, or which value it is currently holding. */
|
|
2028
|
+
trigger: ReactNode;
|
|
2029
|
+
open: boolean;
|
|
2030
|
+
onOpenChange: (open: boolean) => void;
|
|
2031
|
+
disabled?: boolean;
|
|
2032
|
+
/** The rows, as `FloatingToolbar.MenuItem`s. */
|
|
2033
|
+
children: ReactNode;
|
|
2034
|
+
}
|
|
2035
|
+
|
|
2036
|
+
/** A run of related controls inside the pill. */
|
|
2037
|
+
export declare type FloatingToolbarGroupProps = Omit<Toolbar.Group.Props, 'className'> & StyledPartProps;
|
|
2038
|
+
|
|
2039
|
+
/** The toolbar to mount under the portal container, inside the theme it would otherwise leave behind. */
|
|
2040
|
+
export declare interface FloatingToolbarPortalProps {
|
|
2041
|
+
children: ReactNode;
|
|
2042
|
+
}
|
|
2043
|
+
|
|
2044
|
+
/** The pill, and which side of it its controls' tooltips open on: away from what the toolbar edits. */
|
|
2045
|
+
export declare type FloatingToolbarRootProps = Omit<Toolbar.Root.Props, 'className'> & StyledPartProps & {
|
|
2046
|
+
tooltipSide?: FloatingToolbarTooltipSide;
|
|
2047
|
+
};
|
|
2048
|
+
|
|
2049
|
+
/** The hairline between two groups. */
|
|
2050
|
+
export declare type FloatingToolbarSeparatorProps = Omit<Toolbar.Separator.Props, 'className'> & StyledPartProps;
|
|
2051
|
+
|
|
2052
|
+
/** What the submenu shows: any component, in a card under its trigger. */
|
|
2053
|
+
export declare interface FloatingToolbarSubmenuContentProps {
|
|
2054
|
+
/** Which edge of the trigger the card lines up with. */
|
|
2055
|
+
align?: 'start' | 'end';
|
|
2056
|
+
/** The field the card focuses as it opens, so a touch brings up the keyboard; the card itself otherwise. */
|
|
2057
|
+
initialFocus?: RefObject<HTMLElement | null>;
|
|
2058
|
+
children: ReactNode;
|
|
2059
|
+
}
|
|
2060
|
+
|
|
2061
|
+
/**
|
|
2062
|
+
* Holds `open` and `onOpenChange` when the tenant keeps one submenu open at a time. Never modal: a backdrop
|
|
2063
|
+
* would be chrome portalled without the chart's stamp, so a press on it would read as leaving the chart.
|
|
2064
|
+
*/
|
|
2065
|
+
export declare type FloatingToolbarSubmenuProps = Omit<Popover.Root.Props, 'modal'>;
|
|
2066
|
+
|
|
2067
|
+
/** Opens a submenu below the trigger, with the same look and label as `Button`. */
|
|
2068
|
+
export declare interface FloatingToolbarSubmenuTriggerProps {
|
|
2069
|
+
label: string;
|
|
2070
|
+
/** Given, the trigger stays lit while the selection already holds what its submenu sets, such as a link. */
|
|
2071
|
+
pressed?: boolean;
|
|
2072
|
+
disabled?: boolean;
|
|
2073
|
+
children: ReactNode;
|
|
2074
|
+
}
|
|
2075
|
+
|
|
2076
|
+
/** A color drawn inside a color trigger. */
|
|
2077
|
+
export declare interface FloatingToolbarSwatchProps {
|
|
2078
|
+
color: string;
|
|
2079
|
+
/** Painted onto the swatch, so it reads as what the canvas shows rather than as the color alone. */
|
|
2080
|
+
opacity?: number;
|
|
2081
|
+
}
|
|
2082
|
+
|
|
2083
|
+
/** The side of the pill its tooltips open on, the one facing away from what it edits. */
|
|
2084
|
+
export declare type FloatingToolbarTooltipSide = 'top' | 'bottom';
|
|
2085
|
+
|
|
1944
2086
|
/**
|
|
1945
2087
|
* Props for the Footer slot, overridable via `slots.Footer` on `GraphRenderer`. Caption editing in
|
|
1946
2088
|
* `edit` mode is internal to this default — it hands off to the editor `/editable` supplies —
|
|
@@ -2631,6 +2773,14 @@ declare type LooseValue<T> = T extends (...args: infer A) => infer R ? (...args:
|
|
|
2631
2773
|
/** Which column of the data feeds each of the chart's aesthetics. */
|
|
2632
2774
|
export declare const MappingSection: ({ title, layout }: OverridableSectionProps) => JSX.Element | null;
|
|
2633
2775
|
|
|
2776
|
+
declare interface MenuItemProps {
|
|
2777
|
+
children: ReactNode;
|
|
2778
|
+
/** Draws the row as the one in force. */
|
|
2779
|
+
selected?: boolean;
|
|
2780
|
+
disabled?: boolean;
|
|
2781
|
+
onClick: () => void;
|
|
2782
|
+
}
|
|
2783
|
+
|
|
2634
2784
|
declare interface MorphingEditOutlineShape {
|
|
2635
2785
|
/** SVG path data in panel pixels. */
|
|
2636
2786
|
pathData: string;
|
|
@@ -3051,6 +3201,11 @@ declare type StepperMovesProps = {
|
|
|
3051
3201
|
max: number;
|
|
3052
3202
|
};
|
|
3053
3203
|
|
|
3204
|
+
/** A part styled here takes a plain class, since the state-driven form Base UI allows has no tenant. */
|
|
3205
|
+
declare interface StyledPartProps {
|
|
3206
|
+
className?: string;
|
|
3207
|
+
}
|
|
3208
|
+
|
|
3054
3209
|
/**
|
|
3055
3210
|
* The style readers a handler that cannot call `useGeomStyleReader` receives: a built-in geom's own, whose
|
|
3056
3211
|
* builtin-backed properties resolve NonNullable, and the shared readers for a custom geom.
|