@tatamicks/core 1.0.3 → 1.0.4
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/PalettePanel-BTB1LkgU.cjs +9 -0
- package/dist/PalettePanel-BTB1LkgU.cjs.map +1 -0
- package/dist/{PalettePanel-N5Y1TJAk.js → PalettePanel-CrA2BGLq.js} +959 -942
- package/dist/PalettePanel-CrA2BGLq.js.map +1 -0
- package/dist/PalettePanel.css +1 -1
- package/dist/canvas.cjs +1 -1
- package/dist/canvas.mjs +4 -4
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.mjs +352 -343
- package/dist/index.mjs.map +1 -1
- package/dist/{paperSettingsWidget-d93s3Gsr.js → paperSettingsWidget-CAIw_Ofm.js} +1582 -1535
- package/dist/paperSettingsWidget-CAIw_Ofm.js.map +1 -0
- package/dist/paperSettingsWidget-CIRKgnz4.cjs +2 -0
- package/dist/paperSettingsWidget-CIRKgnz4.cjs.map +1 -0
- package/dist/shell.cjs +1 -1
- package/dist/shell.mjs +2 -2
- package/dist/{sidebarPortal-B2Mk9Aba.js → sidebarPortal-Bigm11qq.js} +156 -151
- package/dist/sidebarPortal-Bigm11qq.js.map +1 -0
- package/dist/sidebarPortal-Dit8f3sD.cjs +3 -0
- package/dist/sidebarPortal-Dit8f3sD.cjs.map +1 -0
- package/dist/src/canvas.d.ts +4 -0
- package/dist/src/index.d.ts +5 -3
- package/dist/src/shell.d.ts +3 -1
- package/package.json +1 -1
- package/dist/PalettePanel-0cFP3tbA.cjs +0 -9
- package/dist/PalettePanel-0cFP3tbA.cjs.map +0 -1
- package/dist/PalettePanel-N5Y1TJAk.js.map +0 -1
- package/dist/paperSettingsWidget-CJ4QFjYK.cjs +0 -2
- package/dist/paperSettingsWidget-CJ4QFjYK.cjs.map +0 -1
- package/dist/paperSettingsWidget-d93s3Gsr.js.map +0 -1
- package/dist/sidebarPortal-B2Mk9Aba.js.map +0 -1
- package/dist/sidebarPortal-BCIVv4yO.cjs +0 -3
- package/dist/sidebarPortal-BCIVv4yO.cjs.map +0 -1
package/dist/PalettePanel.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
._container_1xv5c_4{display:flex;flex-direction:row;align-items:center;gap:4px;padding:6px 8px;background-color:var(--de-bg-secondary, #f9fafb);border:1px solid var(--de-border-color, #e5e7eb);border-radius:6px;flex-wrap:wrap}._section_1xv5c_16{display:flex;flex-direction:row;align-items:center;gap:4px}._divider_1xv5c_23{width:1px;height:20px;background-color:var(--de-border-color, #d1d5db);flex-shrink:0;margin:0 2px}._sectionLabel_1xv5c_31{font-size:11px;color:var(--de-text-secondary, #6b7280);white-space:nowrap;-webkit-user-select:none;user-select:none}._select_1xv5c_38{height:28px;padding:0 4px;border:1px solid var(--de-border-color, #d1d5db);border-radius:4px;background-color:var(--de-bg-primary, #ffffff);color:var(--de-text-primary, #374151);font-size:12px;cursor:pointer;outline:none}._select_1xv5c_38:hover{border-color:var(--de-border-hover, #9ca3af)}._select_1xv5c_38:focus{border-color:var(--de-primary-color, #6366f1);box-shadow:0 0 0 2px #6366f133}._numberInput_1xv5c_59{width:48px;height:28px;padding:0 4px;border:1px solid var(--de-border-color, #d1d5db);border-radius:4px;background-color:var(--de-bg-primary, #ffffff);color:var(--de-text-primary, #374151);font-size:12px;text-align:center;outline:none}._numberInput_1xv5c_59:hover{border-color:var(--de-border-hover, #9ca3af)}._numberInput_1xv5c_59:focus{border-color:var(--de-primary-color, #6366f1);box-shadow:0 0 0 2px #6366f133}._numberInput_1xv5c_59::-webkit-inner-spin-button,._numberInput_1xv5c_59::-webkit-outer-spin-button{opacity:1}._heightModeSwitch_1xv5c_87{display:inline-flex;align-items:center;gap:3px}._switchLabel_1xv5c_93{font-size:.625rem;font-weight:600;color:var(--de-text-tertiary, #9ca3af);-webkit-user-select:none;user-select:none;white-space:nowrap}._switchLabelActive_1xv5c_101{color:var(--de-text-primary, #374151)}._toggle_1xv5c_105{position:relative;width:28px;height:16px;border-radius:8px;background-color:var(--de-border-color, #d1d5db);border:none;cursor:pointer;padding:0;flex-shrink:0;transition:background-color .2s}._toggle_1xv5c_105[aria-checked=true]{background-color:var(--de-primary-color, #3b82f6)}._thumb_1xv5c_122{position:absolute;top:2px;left:2px;width:12px;height:12px;border-radius:50%;background-color:#fff;transition:left .2s;pointer-events:none}._toggle_1xv5c_105[aria-checked=true] ._thumb_1xv5c_122{left:14px}._container_1tnp6_5{display:inline-flex;align-items:center;gap:.5rem;cursor:pointer;-webkit-user-select:none;user-select:none}._container_1tnp6_5:has(._input_1tnp6_13:disabled){cursor:not-allowed;opacity:.6}._input_1tnp6_13{width:1rem;height:1rem;cursor:pointer;accent-color:var(--de-primary-color, #3b82f6)}._input_1tnp6_13:disabled{cursor:not-allowed}._label_1tnp6_29{font-size:.875rem;line-height:1.5;color:var(--de-text-color, #000000)}._header_1c1mq_6{display:flex;align-items:center;gap:4px;width:100%;margin:0;padding:.25rem .75rem;background-color:var(--de-bg-secondary, #f9fafb);border:none;border-bottom:1px solid var(--de-bg-hover, #f3f4f6);border-top:1px solid var(--de-bg-hover, #f3f4f6);text-align:left;box-sizing:border-box}button._header_1c1mq_6{cursor:pointer}button._header_1c1mq_6:hover{background-color:var(--de-bg-hover, #f3f4f6)}._title_1c1mq_32{font-size:.7rem;font-weight:700;color:var(--de-text-secondary, #6b7280);text-transform:uppercase;letter-spacing:.05em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._actions_1c1mq_43{flex-shrink:0}._titleGroup_1c1mq_49{flex:1;display:flex;align-items:center;gap:4px;min-width:0;overflow:hidden}._infoIcon_1c1mq_60{display:inline-flex;align-items:center;justify-content:center;width:.9375rem;height:.9375rem;border-radius:9999px;background-color:var(--de-border-color, #d1d5db);color:#fff;font-size:.625rem;font-weight:700;font-style:normal;font-family:inherit;line-height:1;cursor:help;-webkit-user-select:none;user-select:none;flex-shrink:0;transition:background-color .15s}._infoIcon_1c1mq_60:hover{background-color:var(--de-primary-color, #3b82f6)}._chevron_1c1mq_84{flex-shrink:0;font-size:.9rem;transition:transform .18s;display:inline-block;transform:rotate(-90deg)}._chevronOpen_1c1mq_92{transform:rotate(0)}._statusBadge_1c1mq_98{flex-shrink:0;padding:.1em .45em;border-radius:.25rem;font-size:.6rem;font-weight:600;letter-spacing:.03em;line-height:1.4}._statusBadgeOn_1c1mq_108{background-color:var(--de-badge-on-bg, #dbeafe);color:var(--de-primary-dark, #1d4ed8)}._statusBadgeOff_1c1mq_113{background-color:var(--de-bg-hover, #f3f4f6);color:var(--de-text-tertiary, #9ca3af)}._content_1c1mq_120{padding:.6rem .1875rem;display:flex;flex-direction:column;gap:8px}._contentNoPadding_1c1mq_127{display:flex;flex-direction:column}._container_1cdzu_5{display:flex;align-items:center;gap:.25rem;min-width:0;position:relative}._colorButton_1cdzu_13{width:2rem;height:1.5rem;padding:0;border:1px solid var(--de-border-color, #d1d5db);border-radius:.25rem;cursor:pointer;transition:border-color .15s ease-in-out;background:repeating-conic-gradient(#e5e7eb,#e5e7eb 25%,#fff 0%,#fff 50%) 50% / 8px 8px}._colorButton_1cdzu_13:hover:not(:disabled){border-color:var(--de-primary-color, #3b82f6)}._colorButton_1cdzu_13:focus{outline:none;border-color:var(--de-primary-color, #3b82f6);box-shadow:0 0 0 3px var(--de-primary-shadow, rgba(59, 130, 246, .1))}._colorButton_1cdzu_13:disabled{cursor:not-allowed;opacity:.6}._textInputWrapper_1cdzu_40{display:flex;align-items:center;flex:1;min-width:0;border:1px solid var(--de-border-color, #d1d5db);border-radius:.25rem;background-color:var(--de-input-background, #ffffff);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}._textInputWrapper_1cdzu_40:focus-within{border-color:var(--de-primary-color, #3b82f6);box-shadow:0 0 0 3px var(--de-primary-shadow, rgba(59, 130, 246, .1))}._textInputWrapper_1cdzu_40:has(input:disabled){background-color:var(--de-input-disabled-background, #f3f4f6)}._textInputPrefix_1cdzu_62{padding-left:.375rem;font-size:.75rem;font-family:ui-monospace,Cascadia Code,Source Code Pro,Menlo,Consolas,DejaVu Sans Mono,monospace;color:var(--de-text-secondary, #6b7280);-webkit-user-select:none;user-select:none}._textInput_1cdzu_40{flex:1;min-width:0;padding:.25rem .375rem;font-size:.75rem;font-family:ui-monospace,Cascadia Code,Source Code Pro,Menlo,Consolas,DejaVu Sans Mono,monospace;line-height:1.25;border:none;background:transparent;color:var(--de-text-color, #000000)}._textInput_1cdzu_40:focus{outline:none}._textInput_1cdzu_40:disabled{color:var(--de-input-disabled-color, #9ca3af);cursor:not-allowed}._popover_1cdzu_96{position:absolute;top:calc(100% + .25rem);left:0;padding:.5rem;background:var(--de-popover-background, #ffffff);border:1px solid var(--de-border-color, #d1d5db);border-radius:.5rem;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a;width:fit-content;min-width:180px}._palette_1cdzu_112{display:grid;grid-template-columns:repeat(10,1fr);gap:.05rem;margin-bottom:.5rem}._paletteButton_1cdzu_119{width:1.2rem;height:1.2rem;padding:0;border:2px solid var(--de-border-color, #d1d5db);border-radius:50%;cursor:pointer;transition:border-color .15s ease-in-out,transform .15s ease-in-out}._paletteButton_1cdzu_119:hover{border-color:var(--de-primary-color, #3b82f6);transform:scale(1.1)}._paletteButton_1cdzu_119:focus{outline:none;border-color:var(--de-primary-color, #3b82f6);box-shadow:0 0 0 3px var(--de-primary-shadow, rgba(59, 130, 246, .1))}._paletteButton_1cdzu_119._selected_1cdzu_142{border-color:var(--de-primary-color, #3b82f6);border-width:2px;box-shadow:0 0 0 2px var(--de-primary-shadow, rgba(59, 130, 246, .2))}._transparentPaletteButton_1cdzu_148{background:repeating-conic-gradient(#d1d5db,#d1d5db 25%,#fff 0%,#fff 50%) 50% / 8px 8px}._rgbaInputs_1cdzu_154{display:flex;gap:.25rem;padding-top:.5rem;border-top:1px solid var(--de-border-color, #e5e7eb)}._rgbaInputGroup_1cdzu_161{display:flex;flex-direction:column;align-items:center;gap:.25rem}._rgbaInputs_1cdzu_154 ._rgbaInputGroup_1cdzu_161 input[type=number]{padding:.25rem .2rem;font-size:.75rem;text-align:center;line-height:1.2}._rgbaLabel_1cdzu_175{font-size:.75rem;font-weight:600;color:var(--de-text-secondary, #6b7280);-webkit-user-select:none;user-select:none}._hexInput_1cdzu_183{display:flex;align-items:center;gap:.5rem;padding-top:.5rem;margin-top:.5rem;border-top:1px solid var(--de-border-color, #e5e7eb)}._hexLabel_1cdzu_192{font-size:.75rem;font-weight:600;color:var(--de-text-secondary, #6b7280);-webkit-user-select:none;user-select:none;min-width:2.5rem}._hexTextInput_1cdzu_200{flex:1;min-width:0;padding:.375rem .5rem;font-size:.75rem;font-family:ui-monospace,Cascadia Code,Source Code Pro,Menlo,Consolas,DejaVu Sans Mono,monospace;line-height:1.25;border:1px solid var(--de-border-color, #d1d5db);border-radius:.25rem;background-color:var(--de-input-background, #ffffff);color:var(--de-text-color, #000000);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}._hexTextInput_1cdzu_200:focus{outline:none;border-color:var(--de-primary-color, #3b82f6);box-shadow:0 0 0 3px var(--de-primary-shadow, rgba(59, 130, 246, .1))}._hexTextInput_1cdzu_200:disabled{background-color:var(--de-input-disabled-background, #f3f4f6);color:var(--de-input-disabled-color, #9ca3af);cursor:not-allowed}._input_14n56_5{width:100%;padding:.25rem .375rem;font-size:.75rem;line-height:1.25;border:1px solid var(--de-border-color, #d1d5db);border-radius:.25rem;background-color:var(--de-input-background, #ffffff);color:var(--de-text-color, #000000);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}._input_14n56_5:focus{outline:none;border-color:var(--de-primary-color, #3b82f6);box-shadow:0 0 0 3px var(--de-primary-shadow, rgba(59, 130, 246, .1))}._input_14n56_5:disabled{background-color:var(--de-input-disabled-background, #f3f4f6);color:var(--de-input-disabled-color, #9ca3af);cursor:not-allowed}._input_14n56_5::-webkit-outer-spin-button,._input_14n56_5::-webkit-inner-spin-button{height:1.5rem}._container_1n9lj_5{display:flex;gap:0;align-items:stretch;min-width:0;border:1px solid var(--de-border-color, #d1d5db);border-radius:.25rem;background-color:var(--de-input-background, #ffffff);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}._container_1n9lj_5:focus-within{border-color:var(--de-primary-color, #3b82f6);box-shadow:0 0 0 3px var(--de-primary-shadow, rgba(59, 130, 246, .1))}._valueInput_1n9lj_23{flex:1;min-width:0;padding:.25rem .375rem;font-size:.75rem;line-height:1.25;border:none;border-radius:.25rem 0 0 .25rem;background-color:transparent;color:var(--de-text-color, #000000)}._valueInput_1n9lj_23:focus{outline:none}._valueInput_1n9lj_23:disabled{background-color:var(--de-input-disabled-background, #f3f4f6);color:var(--de-input-disabled-color, #9ca3af);cursor:not-allowed}._unitSelect_1n9lj_45{flex-shrink:0;min-width:3rem;padding:.25rem .375rem;font-size:.75rem;line-height:1.25;border:none;border-left:1px solid var(--de-border-color, #d1d5db);border-radius:0 .25rem .25rem 0;background-color:var(--de-input-background-secondary, #f9fafb);color:var(--de-text-color, #000000);cursor:pointer}._unitSelect_1n9lj_45:focus{outline:none}._container_1n9lj_5:has(._valueInput_1n9lj_23:disabled),._container_1n9lj_5:has(._unitSelect_1n9lj_45:disabled){background-color:var(--de-input-disabled-background, #f3f4f6);border-color:var(--de-border-color, #d1d5db);box-shadow:none}._valueInput_1n9lj_23:disabled{color:var(--de-input-disabled-color, #9ca3af);cursor:not-allowed}._unitSelect_1n9lj_45:disabled{background-color:transparent;color:var(--de-input-disabled-color, #9ca3af);cursor:not-allowed}._container_14f2v_5{position:relative;width:100%;min-width:0}._select_14f2v_11{width:100%;min-width:0;padding:.25rem 1.75rem .25rem .375rem;font-size:.75rem;line-height:1.25;border:1px solid var(--de-border-color, #d1d5db);border-radius:.25rem;background-color:var(--de-input-background, #ffffff);background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right .375rem center;background-size:.875rem;color:var(--de-text-color, #000000);cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}._select_14f2v_11:focus{outline:none;border-color:var(--de-primary-color, #3b82f6);box-shadow:0 0 0 3px var(--de-primary-shadow, rgba(59, 130, 246, .1))}._select_14f2v_11:disabled{background-color:var(--de-input-disabled-background, #f3f4f6);color:var(--de-input-disabled-color, #9ca3af);cursor:not-allowed}._placeholderOverlay_14f2v_44{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;padding:.5rem 1.75rem .25rem .375rem;font-size:.75rem;line-height:1.25;color:var(--de-input-placeholder-color, #9ca3af);pointer-events:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-sizing:border-box}._button_16snt_1{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border:1px solid var(--de-border-color, #d1d5db);border-radius:4px;background-color:var(--de-bg-primary, #ffffff);color:var(--de-text-primary, #374151);font-size:14px;cursor:pointer;transition:background-color .1s,border-color .1s,opacity .1s;line-height:1}._button_16snt_1:hover:not(:disabled){background-color:var(--de-bg-hover, #f3f4f6);border-color:var(--de-border-hover, #9ca3af)}._button_16snt_1:active:not(:disabled){background-color:var(--de-bg-active, #e5e7eb)}._button_16snt_1:disabled{opacity:.4;cursor:not-allowed}._container_ytzac_4{width:100%;height:100%;background-color:var(--de-bg-primary, #ffffff);border-left:1px solid var(--de-border-color, #e5e7eb);display:flex;flex-direction:column;overflow:hidden;box-sizing:border-box}._container_ytzac_4 *,._container_ytzac_4 *:before,._container_ytzac_4 *:after{box-sizing:border-box}._scrollArea_ytzac_21{flex:1;overflow-y:auto;overflow-x:hidden;width:100%}._emptyState_ytzac_29{display:flex;align-items:center;justify-content:center;height:100%;color:var(--de-text-tertiary, #9ca3af);font-size:.875rem;padding:1rem;text-align:center}._root_vttth_1{display:flex;flex-direction:column;width:100%;height:100%;box-sizing:border-box}._list_vttth_9{display:flex;flex-direction:row;border-bottom:1px solid var(--de-border-color, #e5e7eb);background-color:var(--de-bg-primary, #ffffff)}._list_vttth_9[data-variant=segmented]{padding:4px;gap:4px;border-bottom:none;background-color:var(--de-bg-secondary, #f3f4f6);border-radius:6px}._trigger_vttth_24{padding:8px 16px;border:none;background:none;cursor:pointer;font-size:14px;font-weight:500;color:var(--de-text-secondary, #6b7280);transition:all .2s ease;position:relative}._trigger_vttth_24:hover{color:var(--de-text-primary, #1f2937)}._trigger_vttth_24[data-state=active]{color:var(--de-primary-color, #3b82f6)}._trigger_vttth_24[data-variant=default][data-state=active]:after{content:"";position:absolute;bottom:0;left:0;right:0;height:2px;background-color:var(--de-primary-color, #3b82f6)}._trigger_vttth_24[data-variant=segmented]{border-radius:4px;padding:6px 12px}._trigger_vttth_24[data-variant=segmented][data-state=active]{background-color:var(--de-bg-primary, #ffffff);box-shadow:0 1px 3px #0000001a}._trigger_vttth_24:disabled{opacity:.5;cursor:not-allowed}._content_vttth_69{flex:1;display:flex;flex-direction:column;width:100%;box-sizing:border-box}._input_jxjyc_5{width:100%;box-sizing:border-box;padding:.25rem .375rem;font-size:.75rem;font-family:inherit;line-height:1.25;border:1px solid var(--de-border-color, #d1d5db);border-radius:.25rem;background-color:var(--de-input-background, #ffffff);color:var(--de-text-color, #000000);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}._input_jxjyc_5:focus{outline:none;border-color:var(--de-primary-color, #3b82f6);box-shadow:0 0 0 3px var(--de-primary-shadow, rgba(59, 130, 246, .1))}._input_jxjyc_5:disabled{background-color:var(--de-input-disabled-background, #f3f4f6);color:var(--de-input-disabled-color, #9ca3af);cursor:not-allowed}textarea._input_jxjyc_5{resize:vertical;min-height:3rem}._container_1gf2q_1{display:flex;flex-direction:column;gap:.5rem;width:100%;box-sizing:border-box}._grid_1gf2q_9{display:grid;grid-template-columns:repeat(4,1fr);gap:.5rem}._field_1gf2q_15{display:flex;align-items:center;gap:.5rem;width:100%}._label_1gf2q_22{font-size:.75rem;color:var(--de-text-secondary, #6b7280);width:12px;flex-shrink:0;display:flex;justify-content:center;margin-bottom:.1rem}._inputWrapper_1gf2q_32{flex:1;min-width:0;display:flex}._group_xhfvf_1{display:inline-flex;border:1px solid var(--de-border-color, #d1d5db);padding:0;margin:0;gap:0;border-radius:.25rem;overflow:hidden;background-color:var(--de-bg-secondary, #f9fafb)}._btn_xhfvf_13{display:inline-flex;align-items:center;justify-content:center;width:2rem;height:1.75rem;padding:0;border:none;border-right:1px solid var(--de-border-color, #d1d5db);background-color:transparent;color:var(--de-text-secondary, #6b7280);cursor:pointer;transition:background-color .12s,color .12s;flex-shrink:0}._btn_xhfvf_13:last-child{border-right:none}._btn_xhfvf_13:hover:not(:disabled){background-color:var(--de-bg-active, #e5e7eb);color:var(--de-text-primary, #374151)}._btn_xhfvf_13:disabled{cursor:not-allowed;opacity:.5}._active_xhfvf_46{background-color:var(--de-primary-color, #2563eb);color:#fff}._active_xhfvf_46:hover:not(:disabled){background-color:var(--de-primary-dark, #1d4ed8);color:#fff}._btn_xhfvf_13 svg{display:block;width:1rem;height:1rem;pointer-events:none}._group_1uyid_1{display:inline-flex;border:1px solid var(--de-border-color, #d1d5db);padding:0;margin:0;gap:0;border-radius:.25rem;overflow:hidden;background-color:var(--de-bg-secondary, #f9fafb)}._btn_1uyid_13{display:inline-flex;align-items:center;justify-content:center;width:2rem;height:1.75rem;padding:0;border:none;border-right:1px solid var(--de-border-color, #d1d5db);background-color:transparent;color:var(--de-text-secondary, #6b7280);cursor:pointer;transition:background-color .12s,color .12s;flex-shrink:0}._btn_1uyid_13:last-child{border-right:none}._btn_1uyid_13:hover:not(:disabled){background-color:var(--de-bg-active, #e5e7eb);color:var(--de-text-primary, #374151)}._btn_1uyid_13:disabled{cursor:not-allowed;opacity:.5}._active_1uyid_46{background-color:var(--de-primary-color, #2563eb);color:#fff}._iconBold_1uyid_52{font-weight:700;font-size:.875rem;font-family:Georgia,serif;line-height:1}._iconItalic_1uyid_59{font-style:italic;font-size:.875rem;font-family:Georgia,serif;line-height:1}._iconUnderline_1uyid_66{text-decoration:underline;font-size:.875rem;font-family:Georgia,serif;line-height:1}._iconLineThrough_1uyid_73{text-decoration:line-through;font-size:.875rem;font-family:Georgia,serif;line-height:1}._root_12n4v_6{display:grid;grid-template-columns:1fr 8rem;gap:4px;align-items:center}._fontFamilyCell_12n4v_13,._fontSizeCell_12n4v_14,._colorCell_12n4v_15{min-width:0}._root_111zo_7{display:flex;flex-direction:column;gap:6px}._linkLabel_111zo_14{display:flex;align-items:center;gap:4px;font-size:11px;color:var(--de-text-secondary, #666);cursor:pointer;-webkit-user-select:none;user-select:none;flex-shrink:0}._linkLabel_111zo_14 input[type=checkbox]{cursor:pointer;accent-color:var(--de-primary-color, #3b82f6)}._allRow_111zo_31{display:flex;align-items:center;justify-content:center}._grid_111zo_38{display:flex;flex-direction:column;align-items:center;gap:4px}._sideRow_111zo_45{display:flex;align-items:center;justify-content:center;gap:8px}._cell_111zo_53{width:96px;flex-shrink:0}._spacer_111zo_59{width:48px;flex-shrink:0}._bar_13lr1_4{display:inline-flex;flex-direction:row;align-items:center;gap:2px;padding:4px 6px;border:1px solid var(--de-border-color, #d1d5db);border-radius:6px;background-color:var(--de-bg-primary, #ffffff);box-shadow:0 2px 8px #0000001f,0 1px 3px #00000014}._divider_13lr1_18{width:1px;height:18px;background-color:var(--de-bg-active, #e5e7eb);margin:0 2px}._barWrapper_13lr1_26{position:relative;display:inline-block}._popover_13lr1_31{position:absolute;top:calc(100% + 4px);left:0;z-index:1;background-color:var(--de-bg-primary, #ffffff);border:1px solid var(--de-border-color, #d1d5db);border-radius:6px;box-shadow:0 4px 16px #00000024,0 1px 4px #00000014;padding:12px;min-width:320px;max-height:480px;overflow-y:auto}._container_3lvww_1{display:flex;flex-direction:column;gap:.5rem;width:100%;box-sizing:border-box}._row_3lvww_9{display:flex;align-items:center;gap:.5rem}._label_3lvww_15{font-size:.9rem;color:var(--de-text-secondary, #6b7280);width:1.5rem;flex-shrink:0;display:flex;justify-content:center}._inputWrapper_3lvww_24{flex:1;min-width:0;display:flex;flex-direction:column}._error_3lvww_31{font-size:.75rem;color:var(--de-error-color, #dc2626);margin-top:.25rem}._container_2zb6l_1{width:100%;height:100%;background-color:var(--de-bg-primary, #ffffff);border-left:1px solid var(--de-border-color, #e5e7eb);display:flex;flex-direction:column;overflow:hidden;box-sizing:border-box}._container_2zb6l_1 *,._container_2zb6l_1 *:before,._container_2zb6l_1 *:after{box-sizing:border-box}._scrollArea_2zb6l_18{flex:1;overflow-y:auto;overflow-x:hidden;width:100%}._fields_2zb6l_25{display:flex;flex-direction:column;gap:1rem;width:100%;box-sizing:border-box}._emptyState_2zb6l_33{display:flex;align-items:center;justify-content:center;height:100%;color:var(--de-text-tertiary, #9ca3af);font-size:.875rem;padding:1rem;text-align:center}._kindSelector_qrad9_1{display:flex;flex-wrap:wrap;gap:.25rem;padding:.5rem .75rem;border-bottom:1px solid var(--de-border-color, #e5e7eb)}._kindTab_qrad9_9{display:inline-flex;align-items:center;justify-content:center;padding:.25rem .625rem;font-size:.75rem;border:1px solid var(--de-border-color, #d1d5db);border-radius:.25rem;background-color:var(--de-bg-secondary, #f9fafb);color:var(--de-text-primary, #374151);cursor:pointer;white-space:nowrap;transition:background-color .1s,color .1s}._kindTab_qrad9_9:hover{background-color:var(--de-bg-hover, #f3f4f6)}._kindTabActive_qrad9_30{background-color:var(--de-primary-color, #2563eb);color:#fff;border-color:var(--de-primary-color, #2563eb)}._kindTabActive_qrad9_30:hover{background-color:var(--de-primary-dark, #1d4ed8)}._kindTabIcon_qrad9_40{width:1rem;height:1rem}._propertyList_qrad9_46{display:flex;flex-direction:column;gap:0;padding:.25rem 0}._propRow_qrad9_54{display:flex;align-items:center;justify-content:space-between;padding:.375rem .75rem;border-bottom:1px solid var(--de-border-color, #f3f4f6);gap:.5rem}._propRow_qrad9_54:last-child{border-bottom:none}._propInfo_qrad9_67{display:flex;align-items:center;gap:.5rem;flex:1;min-width:0}._propKind_qrad9_75{font-family:monospace;font-size:.75rem;color:var(--de-text-primary, #374151)}._customBadge_qrad9_81{font-size:.625rem;font-weight:600;padding:.1rem .375rem;border-radius:.25rem;background-color:#eff6ff;color:var(--de-primary-color, #2563eb);border:1px solid #bfdbfe;white-space:nowrap}._propActions_qrad9_92{display:flex;gap:.25rem;flex-shrink:0}._setButton_qrad9_98,._resetButton_qrad9_99{padding:.25rem .625rem;font-size:.7rem;border-radius:.25rem;border:1px solid;cursor:pointer;transition:all .1s}._setButton_qrad9_98{background-color:var(--de-bg-secondary, #f9fafb);border-color:var(--de-border-color, #d1d5db);color:var(--de-text-primary, #374151)}._setButton_qrad9_98:hover{background-color:#eff6ff;border-color:#93c5fd;color:var(--de-primary-color, #2563eb)}._resetButton_qrad9_99{background-color:#fef2f2;border-color:#fca5a5;color:var(--de-error-color, #dc2626)}._resetButton_qrad9_99:hover{background-color:#fee2e2}._emptyState_qrad9_131{padding:1rem .75rem;color:var(--de-text-tertiary, #9ca3af);font-size:.8rem;text-align:center}._description_12dfx_4{margin:0 0 8px;font-size:.7rem;color:var(--de-text-tertiary, #9ca3af)}._list_12dfx_10{display:flex;flex-direction:column;gap:8px;list-style:none;margin:0;padding:0}._item_12dfx_19{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;background-color:var(--de-bg-secondary, #f5f5f5);border:1px solid var(--de-border-color, #e0e0e0);border-radius:4px;font-size:12px;cursor:grab;transition:all .2s}._item_12dfx_19:active{cursor:grabbing}._item_12dfx_19._dragging_12dfx_36{opacity:.5;cursor:grabbing}._item_12dfx_19._selected_12dfx_41{border-color:var(--de-accent-color, #2196f3);background-color:var(--de-accent-light, rgba(33, 150, 243, .1))}._dragHandle_12dfx_46{display:flex;align-items:center;justify-content:center;width:20px;height:20px;margin-right:8px;color:var(--de-text-secondary, #666);pointer-events:none}._item_12dfx_19:hover:not(._ghost_12dfx_57){box-shadow:0 0 0 2px var(--de-accent-color, #2196f3)}._item_12dfx_19._ghost_12dfx_57{opacity:.45;border:2px dashed var(--de-accent-color, #2196f3);background-color:var(--de-accent-light, rgba(33, 150, 243, .08));cursor:default}._itemInfo_12dfx_68{display:flex;flex-direction:column;gap:4px;flex:1}._itemId_12dfx_75{font-weight:500;color:var(--de-text-primary, #333)}._itemMeta_12dfx_80{display:flex;gap:8px;font-size:11px;color:var(--de-text-secondary, #666)}._itemKind_12dfx_87{font-family:monospace}._itemIndex_12dfx_91{color:var(--de-accent-color, #2196f3)}._itemActions_12dfx_95{display:flex;gap:4px}._actionButton_12dfx_100{display:flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border:1px solid var(--de-border-color, #e0e0e0);border-radius:4px;background-color:var(--de-bg-primary, #fff);color:var(--de-text-secondary, #666);cursor:pointer;transition:all .2s}._actionButton_12dfx_100:hover{background-color:var(--de-accent-light, rgba(33, 150, 243, .1));border-color:var(--de-accent-color, #2196f3);color:var(--de-accent-color, #2196f3)}._actionButton_12dfx_100:active{transform:scale(.95)}._actionButton_12dfx_100:disabled{opacity:.4;cursor:not-allowed}._actionButton_12dfx_100:disabled:hover{background-color:var(--de-bg-primary, #fff);border-color:var(--de-border-color, #e0e0e0);color:var(--de-text-secondary, #666)}._empty_12dfx_136{padding:24px;text-align:center;font-size:12px;color:var(--de-text-secondary, #666);background-color:var(--de-bg-secondary, #f5f5f5);border-radius:4px}._container_1x0zd_4{display:flex;flex-direction:row;align-items:center;gap:4px;padding:6px 8px;border-bottom:1px solid var(--de-border-color, #e5e7eb);background-color:var(--de-bg-secondary, #f9fafb);flex-shrink:0;flex-wrap:wrap}._group_1x0zd_16{display:flex;flex-direction:row;gap:2px}._divider_1x0zd_22{width:1px;height:20px;background-color:var(--de-border-color, #d1d5db);flex-shrink:0;margin:0 2px}._field_69k7e_6{display:flex;flex-direction:column;gap:6px}._field_69k7e_6._horizontal_69k7e_12{flex-direction:row;align-items:center;gap:4px}._label_69k7e_18{font-size:12px;font-weight:500;color:var(--de-text-secondary, #666)}._field_69k7e_6._horizontal_69k7e_12 ._label_69k7e_18{min-width:32px;flex-shrink:0}._gridSizeRow_69k7e_29{display:flex;gap:16px}._gridSizeRow_69k7e_29>._field_69k7e_6{flex:1;min-width:0}._topRow_2ni80_6{display:flex;align-items:center;justify-content:center;position:relative}._linkSwitch_2ni80_15{position:absolute;left:0;display:inline-flex;align-items:center;gap:3px}._switchLabel_2ni80_23{font-size:.625rem;font-weight:600;color:var(--de-text-tertiary, #9ca3af);-webkit-user-select:none;user-select:none;white-space:nowrap}._switchLabelActive_2ni80_31{color:var(--de-text-primary, #374151)}._toggle_2ni80_35{position:relative;width:28px;height:16px;border-radius:8px;background-color:var(--de-border-color, #d1d5db);border:none;cursor:pointer;padding:0;flex-shrink:0;transition:background-color .2s}._toggle_2ni80_35[aria-checked=true]{background-color:var(--de-primary-color, #3b82f6)}._thumb_2ni80_52{position:absolute;top:2px;left:2px;width:12px;height:12px;border-radius:50%;background-color:#fff;transition:left .2s;pointer-events:none}._toggle_2ni80_35[aria-checked=true] ._thumb_2ni80_52{left:14px}._topCell_2ni80_70{width:120px;flex-shrink:0}._sideCell_2ni80_75{width:120px;flex-shrink:0;min-width:0}._bottomCell_2ni80_81{width:120px;align-self:center}._sideMargins_2ni80_88{display:flex;gap:36px;justify-content:center}._grid_ddemj_5{display:grid;grid-template-columns:repeat(8,1fr);gap:4px 8px;align-items:center}._colSpan2_ddemj_13{grid-column:span 2}._colSpan3_ddemj_18{grid-column:span 3;min-width:0}._label_ddemj_23{font-size:12px;font-weight:500;color:var(--de-text-secondary, #666);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._modeLabel_ddemj_32{font-size:11px;font-weight:500;color:var(--de-text-secondary, #666);white-space:nowrap}._modeToggle_ddemj_40{grid-column:span 3;display:inline-flex;align-items:center;gap:4px}._switchLabel_ddemj_47{font-size:.625rem;font-weight:600;color:var(--de-text-tertiary, #9ca3af);-webkit-user-select:none;user-select:none;white-space:nowrap}._switchLabelActive_ddemj_55{color:var(--de-text-primary, #374151)}._toggle_ddemj_59{position:relative;width:28px;height:16px;border-radius:8px;background-color:var(--de-border-color, #d1d5db);border:none;cursor:pointer;padding:0;flex-shrink:0;transition:background-color .2s}._toggle_ddemj_59[aria-checked=true]{background-color:var(--de-primary-color, #3b82f6)}._thumb_ddemj_76{position:absolute;top:2px;left:2px;width:12px;height:12px;border-radius:50%;background-color:#fff;transition:left .2s;pointer-events:none}._toggle_ddemj_59[aria-checked=true] ._thumb_ddemj_76{left:14px}._checkboxCell_ddemj_92{display:flex;justify-content:center;align-items:center}._buttonGroup_5h1ft_1{display:flex;flex-direction:column;gap:8px}._button_5h1ft_1{display:flex;align-items:center;justify-content:center;gap:8px;padding:10px 16px;border:1px solid var(--de-border-color, #e0e0e0);border-radius:4px;background-color:var(--de-bg-primary, #fff);color:var(--de-text-primary, #333);font-size:13px;font-weight:500;cursor:pointer;transition:all .2s}._button_5h1ft_1:hover{background-color:var(--de-accent-light, rgba(33, 150, 243, .1));border-color:var(--de-accent-color, #2196f3);color:var(--de-accent-color, #2196f3)}._button_5h1ft_1:active{transform:scale(.98)}._error_5h1ft_33{padding:12px;background-color:var(--de-error-bg, #ffebee);border:1px solid var(--de-error-border, #ef5350);border-radius:4px;color:var(--de-error-text, #c62828);font-size:12px;line-height:1.5;word-break:break-word}._container_16a0l_1{display:flex;flex-direction:column;width:100%;height:100%;background-color:var(--de-bg-secondary, #fafafa);overflow:hidden;box-sizing:border-box}._paletteItems_16a0l_11{flex:1;width:100%;padding:12px;overflow-y:auto;display:flex;flex-direction:column;gap:12px;box-sizing:border-box}._item_16a0l_23{display:flex;flex-direction:column;width:100%;border:1px solid var(--de-border-color, #d1d5db);border-radius:6px;background-color:var(--de-bg-primary, #ffffff);text-align:left;transition:all .2s ease;-webkit-user-select:none;user-select:none;box-sizing:border-box;flex-shrink:0;overflow:hidden}._item_16a0l_23:hover{background-color:var(--de-bg-hover, #f3f4f6);border-color:var(--de-border-hover, #9ca3af);box-shadow:0 2px 4px #0000000d}._item_16a0l_23:focus-visible{outline:2px solid var(--de-primary-color, #3b82f6);outline-offset:2px}._itemName_16a0l_49{width:100%;padding:12px;font-weight:600;font-size:14px;color:var(--de-text-primary, #1f2937);background:transparent;border:none;cursor:grab;text-align:left;transition:background-color .2s ease}._itemName_16a0l_49:hover{background-color:var(--de-bg-hover, #f9fafb)}._itemName_16a0l_49:active{cursor:grabbing;background-color:var(--de-bg-active, #f3f4f6)}._itemName_16a0l_49:focus-visible{outline:2px solid var(--de-primary-color, #3b82f6);outline-offset:-2px}._itemPreview_16a0l_77{width:100%;height:80px;padding:8px;border-top:1px solid var(--de-border-light, #e5e7eb);overflow:hidden;background:var(--de-bg-canvas, #f9fafb);display:flex;align-items:center;justify-content:center;position:relative;flex-shrink:0;box-sizing:border-box}._itemPreview_16a0l_77:after{content:"";position:absolute;top:0;left:0;right:0;bottom:0;z-index:1000;cursor:grab;pointer-events:auto}._itemPreview_16a0l_77>*{width:200px;height:100px;transform:scale(.6);transform-origin:center center;pointer-events:none;border:1px solid var(--de-border-light, #e5e7eb);border-radius:4px;background:var(--de-bg-primary, #ffffff);box-shadow:0 1px 3px #0000001a}._itemPreview_16a0l_77 *,._itemPreview_16a0l_77 *:before,._itemPreview_16a0l_77 *:after{pointer-events:none}._itemInfo_16a0l_126{display:flex;flex-direction:column}._itemDescription_16a0l_131{font-size:12px;color:var(--de-text-secondary, #6b7280);margin-bottom:4px}._itemSize_16a0l_137{font-size:11px;color:var(--de-text-tertiary, #9ca3af)}
|
|
1
|
+
._container_zau2f_4{display:flex;flex-direction:row;align-items:center;gap:4px;padding:6px 8px;background-color:var(--de-bg-secondary, #f9fafb);border:1px solid var(--de-border-color, #e5e7eb);border-radius:6px;flex-wrap:wrap;isolation:isolate}._section_zau2f_17{display:flex;flex-direction:row;align-items:center;gap:4px}._divider_zau2f_24{width:1px;height:20px;background-color:var(--de-border-color, #d1d5db);flex-shrink:0;margin:0 2px}._sectionLabel_zau2f_32{font-size:11px;color:var(--de-text-secondary, #6b7280);white-space:nowrap;-webkit-user-select:none;user-select:none}._select_zau2f_39{height:28px;padding:0 4px;border:1px solid var(--de-border-color, #d1d5db);border-radius:4px;background-color:var(--de-bg-primary, #ffffff);color:var(--de-text-primary, #374151);font-size:12px;cursor:pointer;outline:none}._select_zau2f_39:hover{border-color:var(--de-border-hover, #9ca3af)}._select_zau2f_39:focus{border-color:var(--de-primary-color, #6366f1);box-shadow:0 0 0 2px #6366f133}._numberInput_zau2f_60{width:48px;height:28px;padding:0 4px;border:1px solid var(--de-border-color, #d1d5db);border-radius:4px;background-color:var(--de-bg-primary, #ffffff);color:var(--de-text-primary, #374151);font-size:12px;text-align:center;outline:none}._numberInput_zau2f_60:hover{border-color:var(--de-border-hover, #9ca3af)}._numberInput_zau2f_60:focus{border-color:var(--de-primary-color, #6366f1);box-shadow:0 0 0 2px #6366f133}._numberInput_zau2f_60::-webkit-inner-spin-button,._numberInput_zau2f_60::-webkit-outer-spin-button{opacity:1}._heightModeSwitch_zau2f_88{display:inline-flex;align-items:center;gap:3px}._switchLabel_zau2f_94{font-size:.625rem;font-weight:600;color:var(--de-text-tertiary, #9ca3af);-webkit-user-select:none;user-select:none;white-space:nowrap}._switchLabelActive_zau2f_102{color:var(--de-text-primary, #374151)}._toggle_zau2f_106{position:relative;width:28px;height:16px;border-radius:8px;background-color:var(--de-border-color, #d1d5db);border:none;cursor:pointer;padding:0;flex-shrink:0;transition:background-color .2s}._toggle_zau2f_106[aria-checked=true]{background-color:var(--de-primary-color, #3b82f6)}._thumb_zau2f_123{position:absolute;top:2px;left:2px;width:12px;height:12px;border-radius:50%;background-color:#fff;transition:left .2s;pointer-events:none}._toggle_zau2f_106[aria-checked=true] ._thumb_zau2f_123{left:14px}._container_1tnp6_5{display:inline-flex;align-items:center;gap:.5rem;cursor:pointer;-webkit-user-select:none;user-select:none}._container_1tnp6_5:has(._input_1tnp6_13:disabled){cursor:not-allowed;opacity:.6}._input_1tnp6_13{width:1rem;height:1rem;cursor:pointer;accent-color:var(--de-primary-color, #3b82f6)}._input_1tnp6_13:disabled{cursor:not-allowed}._label_1tnp6_29{font-size:.875rem;line-height:1.5;color:var(--de-text-color, #000000)}._header_1c1mq_6{display:flex;align-items:center;gap:4px;width:100%;margin:0;padding:.25rem .75rem;background-color:var(--de-bg-secondary, #f9fafb);border:none;border-bottom:1px solid var(--de-bg-hover, #f3f4f6);border-top:1px solid var(--de-bg-hover, #f3f4f6);text-align:left;box-sizing:border-box}button._header_1c1mq_6{cursor:pointer}button._header_1c1mq_6:hover{background-color:var(--de-bg-hover, #f3f4f6)}._title_1c1mq_32{font-size:.7rem;font-weight:700;color:var(--de-text-secondary, #6b7280);text-transform:uppercase;letter-spacing:.05em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._actions_1c1mq_43{flex-shrink:0}._titleGroup_1c1mq_49{flex:1;display:flex;align-items:center;gap:4px;min-width:0;overflow:hidden}._infoIcon_1c1mq_60{display:inline-flex;align-items:center;justify-content:center;width:.9375rem;height:.9375rem;border-radius:9999px;background-color:var(--de-border-color, #d1d5db);color:#fff;font-size:.625rem;font-weight:700;font-style:normal;font-family:inherit;line-height:1;cursor:help;-webkit-user-select:none;user-select:none;flex-shrink:0;transition:background-color .15s}._infoIcon_1c1mq_60:hover{background-color:var(--de-primary-color, #3b82f6)}._chevron_1c1mq_84{flex-shrink:0;font-size:.9rem;transition:transform .18s;display:inline-block;transform:rotate(-90deg)}._chevronOpen_1c1mq_92{transform:rotate(0)}._statusBadge_1c1mq_98{flex-shrink:0;padding:.1em .45em;border-radius:.25rem;font-size:.6rem;font-weight:600;letter-spacing:.03em;line-height:1.4}._statusBadgeOn_1c1mq_108{background-color:var(--de-badge-on-bg, #dbeafe);color:var(--de-primary-dark, #1d4ed8)}._statusBadgeOff_1c1mq_113{background-color:var(--de-bg-hover, #f3f4f6);color:var(--de-text-tertiary, #9ca3af)}._content_1c1mq_120{padding:.6rem .1875rem;display:flex;flex-direction:column;gap:8px}._contentNoPadding_1c1mq_127{display:flex;flex-direction:column}._container_1cdzu_5{display:flex;align-items:center;gap:.25rem;min-width:0;position:relative}._colorButton_1cdzu_13{width:2rem;height:1.5rem;padding:0;border:1px solid var(--de-border-color, #d1d5db);border-radius:.25rem;cursor:pointer;transition:border-color .15s ease-in-out;background:repeating-conic-gradient(#e5e7eb,#e5e7eb 25%,#fff 0%,#fff 50%) 50% / 8px 8px}._colorButton_1cdzu_13:hover:not(:disabled){border-color:var(--de-primary-color, #3b82f6)}._colorButton_1cdzu_13:focus{outline:none;border-color:var(--de-primary-color, #3b82f6);box-shadow:0 0 0 3px var(--de-primary-shadow, rgba(59, 130, 246, .1))}._colorButton_1cdzu_13:disabled{cursor:not-allowed;opacity:.6}._textInputWrapper_1cdzu_40{display:flex;align-items:center;flex:1;min-width:0;border:1px solid var(--de-border-color, #d1d5db);border-radius:.25rem;background-color:var(--de-input-background, #ffffff);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}._textInputWrapper_1cdzu_40:focus-within{border-color:var(--de-primary-color, #3b82f6);box-shadow:0 0 0 3px var(--de-primary-shadow, rgba(59, 130, 246, .1))}._textInputWrapper_1cdzu_40:has(input:disabled){background-color:var(--de-input-disabled-background, #f3f4f6)}._textInputPrefix_1cdzu_62{padding-left:.375rem;font-size:.75rem;font-family:ui-monospace,Cascadia Code,Source Code Pro,Menlo,Consolas,DejaVu Sans Mono,monospace;color:var(--de-text-secondary, #6b7280);-webkit-user-select:none;user-select:none}._textInput_1cdzu_40{flex:1;min-width:0;padding:.25rem .375rem;font-size:.75rem;font-family:ui-monospace,Cascadia Code,Source Code Pro,Menlo,Consolas,DejaVu Sans Mono,monospace;line-height:1.25;border:none;background:transparent;color:var(--de-text-color, #000000)}._textInput_1cdzu_40:focus{outline:none}._textInput_1cdzu_40:disabled{color:var(--de-input-disabled-color, #9ca3af);cursor:not-allowed}._popover_1cdzu_96{position:absolute;top:calc(100% + .25rem);left:0;padding:.5rem;background:var(--de-popover-background, #ffffff);border:1px solid var(--de-border-color, #d1d5db);border-radius:.5rem;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a;width:fit-content;min-width:180px}._palette_1cdzu_112{display:grid;grid-template-columns:repeat(10,1fr);gap:.05rem;margin-bottom:.5rem}._paletteButton_1cdzu_119{width:1.2rem;height:1.2rem;padding:0;border:2px solid var(--de-border-color, #d1d5db);border-radius:50%;cursor:pointer;transition:border-color .15s ease-in-out,transform .15s ease-in-out}._paletteButton_1cdzu_119:hover{border-color:var(--de-primary-color, #3b82f6);transform:scale(1.1)}._paletteButton_1cdzu_119:focus{outline:none;border-color:var(--de-primary-color, #3b82f6);box-shadow:0 0 0 3px var(--de-primary-shadow, rgba(59, 130, 246, .1))}._paletteButton_1cdzu_119._selected_1cdzu_142{border-color:var(--de-primary-color, #3b82f6);border-width:2px;box-shadow:0 0 0 2px var(--de-primary-shadow, rgba(59, 130, 246, .2))}._transparentPaletteButton_1cdzu_148{background:repeating-conic-gradient(#d1d5db,#d1d5db 25%,#fff 0%,#fff 50%) 50% / 8px 8px}._rgbaInputs_1cdzu_154{display:flex;gap:.25rem;padding-top:.5rem;border-top:1px solid var(--de-border-color, #e5e7eb)}._rgbaInputGroup_1cdzu_161{display:flex;flex-direction:column;align-items:center;gap:.25rem}._rgbaInputs_1cdzu_154 ._rgbaInputGroup_1cdzu_161 input[type=number]{padding:.25rem .2rem;font-size:.75rem;text-align:center;line-height:1.2}._rgbaLabel_1cdzu_175{font-size:.75rem;font-weight:600;color:var(--de-text-secondary, #6b7280);-webkit-user-select:none;user-select:none}._hexInput_1cdzu_183{display:flex;align-items:center;gap:.5rem;padding-top:.5rem;margin-top:.5rem;border-top:1px solid var(--de-border-color, #e5e7eb)}._hexLabel_1cdzu_192{font-size:.75rem;font-weight:600;color:var(--de-text-secondary, #6b7280);-webkit-user-select:none;user-select:none;min-width:2.5rem}._hexTextInput_1cdzu_200{flex:1;min-width:0;padding:.375rem .5rem;font-size:.75rem;font-family:ui-monospace,Cascadia Code,Source Code Pro,Menlo,Consolas,DejaVu Sans Mono,monospace;line-height:1.25;border:1px solid var(--de-border-color, #d1d5db);border-radius:.25rem;background-color:var(--de-input-background, #ffffff);color:var(--de-text-color, #000000);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}._hexTextInput_1cdzu_200:focus{outline:none;border-color:var(--de-primary-color, #3b82f6);box-shadow:0 0 0 3px var(--de-primary-shadow, rgba(59, 130, 246, .1))}._hexTextInput_1cdzu_200:disabled{background-color:var(--de-input-disabled-background, #f3f4f6);color:var(--de-input-disabled-color, #9ca3af);cursor:not-allowed}._input_14n56_5{width:100%;padding:.25rem .375rem;font-size:.75rem;line-height:1.25;border:1px solid var(--de-border-color, #d1d5db);border-radius:.25rem;background-color:var(--de-input-background, #ffffff);color:var(--de-text-color, #000000);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}._input_14n56_5:focus{outline:none;border-color:var(--de-primary-color, #3b82f6);box-shadow:0 0 0 3px var(--de-primary-shadow, rgba(59, 130, 246, .1))}._input_14n56_5:disabled{background-color:var(--de-input-disabled-background, #f3f4f6);color:var(--de-input-disabled-color, #9ca3af);cursor:not-allowed}._input_14n56_5::-webkit-outer-spin-button,._input_14n56_5::-webkit-inner-spin-button{height:1.5rem}._container_1n9lj_5{display:flex;gap:0;align-items:stretch;min-width:0;border:1px solid var(--de-border-color, #d1d5db);border-radius:.25rem;background-color:var(--de-input-background, #ffffff);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}._container_1n9lj_5:focus-within{border-color:var(--de-primary-color, #3b82f6);box-shadow:0 0 0 3px var(--de-primary-shadow, rgba(59, 130, 246, .1))}._valueInput_1n9lj_23{flex:1;min-width:0;padding:.25rem .375rem;font-size:.75rem;line-height:1.25;border:none;border-radius:.25rem 0 0 .25rem;background-color:transparent;color:var(--de-text-color, #000000)}._valueInput_1n9lj_23:focus{outline:none}._valueInput_1n9lj_23:disabled{background-color:var(--de-input-disabled-background, #f3f4f6);color:var(--de-input-disabled-color, #9ca3af);cursor:not-allowed}._unitSelect_1n9lj_45{flex-shrink:0;min-width:3rem;padding:.25rem .375rem;font-size:.75rem;line-height:1.25;border:none;border-left:1px solid var(--de-border-color, #d1d5db);border-radius:0 .25rem .25rem 0;background-color:var(--de-input-background-secondary, #f9fafb);color:var(--de-text-color, #000000);cursor:pointer}._unitSelect_1n9lj_45:focus{outline:none}._container_1n9lj_5:has(._valueInput_1n9lj_23:disabled),._container_1n9lj_5:has(._unitSelect_1n9lj_45:disabled){background-color:var(--de-input-disabled-background, #f3f4f6);border-color:var(--de-border-color, #d1d5db);box-shadow:none}._valueInput_1n9lj_23:disabled{color:var(--de-input-disabled-color, #9ca3af);cursor:not-allowed}._unitSelect_1n9lj_45:disabled{background-color:transparent;color:var(--de-input-disabled-color, #9ca3af);cursor:not-allowed}._container_14f2v_5{position:relative;width:100%;min-width:0}._select_14f2v_11{width:100%;min-width:0;padding:.25rem 1.75rem .25rem .375rem;font-size:.75rem;line-height:1.25;border:1px solid var(--de-border-color, #d1d5db);border-radius:.25rem;background-color:var(--de-input-background, #ffffff);background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right .375rem center;background-size:.875rem;color:var(--de-text-color, #000000);cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}._select_14f2v_11:focus{outline:none;border-color:var(--de-primary-color, #3b82f6);box-shadow:0 0 0 3px var(--de-primary-shadow, rgba(59, 130, 246, .1))}._select_14f2v_11:disabled{background-color:var(--de-input-disabled-background, #f3f4f6);color:var(--de-input-disabled-color, #9ca3af);cursor:not-allowed}._placeholderOverlay_14f2v_44{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;padding:.5rem 1.75rem .25rem .375rem;font-size:.75rem;line-height:1.25;color:var(--de-input-placeholder-color, #9ca3af);pointer-events:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-sizing:border-box}._button_16snt_1{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border:1px solid var(--de-border-color, #d1d5db);border-radius:4px;background-color:var(--de-bg-primary, #ffffff);color:var(--de-text-primary, #374151);font-size:14px;cursor:pointer;transition:background-color .1s,border-color .1s,opacity .1s;line-height:1}._button_16snt_1:hover:not(:disabled){background-color:var(--de-bg-hover, #f3f4f6);border-color:var(--de-border-hover, #9ca3af)}._button_16snt_1:active:not(:disabled){background-color:var(--de-bg-active, #e5e7eb)}._button_16snt_1:disabled{opacity:.4;cursor:not-allowed}._container_ytzac_4{width:100%;height:100%;background-color:var(--de-bg-primary, #ffffff);border-left:1px solid var(--de-border-color, #e5e7eb);display:flex;flex-direction:column;overflow:hidden;box-sizing:border-box}._container_ytzac_4 *,._container_ytzac_4 *:before,._container_ytzac_4 *:after{box-sizing:border-box}._scrollArea_ytzac_21{flex:1;overflow-y:auto;overflow-x:hidden;width:100%}._emptyState_ytzac_29{display:flex;align-items:center;justify-content:center;height:100%;color:var(--de-text-tertiary, #9ca3af);font-size:.875rem;padding:1rem;text-align:center}._root_vttth_1{display:flex;flex-direction:column;width:100%;height:100%;box-sizing:border-box}._list_vttth_9{display:flex;flex-direction:row;border-bottom:1px solid var(--de-border-color, #e5e7eb);background-color:var(--de-bg-primary, #ffffff)}._list_vttth_9[data-variant=segmented]{padding:4px;gap:4px;border-bottom:none;background-color:var(--de-bg-secondary, #f3f4f6);border-radius:6px}._trigger_vttth_24{padding:8px 16px;border:none;background:none;cursor:pointer;font-size:14px;font-weight:500;color:var(--de-text-secondary, #6b7280);transition:all .2s ease;position:relative}._trigger_vttth_24:hover{color:var(--de-text-primary, #1f2937)}._trigger_vttth_24[data-state=active]{color:var(--de-primary-color, #3b82f6)}._trigger_vttth_24[data-variant=default][data-state=active]:after{content:"";position:absolute;bottom:0;left:0;right:0;height:2px;background-color:var(--de-primary-color, #3b82f6)}._trigger_vttth_24[data-variant=segmented]{border-radius:4px;padding:6px 12px}._trigger_vttth_24[data-variant=segmented][data-state=active]{background-color:var(--de-bg-primary, #ffffff);box-shadow:0 1px 3px #0000001a}._trigger_vttth_24:disabled{opacity:.5;cursor:not-allowed}._content_vttth_69{flex:1;display:flex;flex-direction:column;width:100%;box-sizing:border-box}._input_jxjyc_5{width:100%;box-sizing:border-box;padding:.25rem .375rem;font-size:.75rem;font-family:inherit;line-height:1.25;border:1px solid var(--de-border-color, #d1d5db);border-radius:.25rem;background-color:var(--de-input-background, #ffffff);color:var(--de-text-color, #000000);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}._input_jxjyc_5:focus{outline:none;border-color:var(--de-primary-color, #3b82f6);box-shadow:0 0 0 3px var(--de-primary-shadow, rgba(59, 130, 246, .1))}._input_jxjyc_5:disabled{background-color:var(--de-input-disabled-background, #f3f4f6);color:var(--de-input-disabled-color, #9ca3af);cursor:not-allowed}textarea._input_jxjyc_5{resize:vertical;min-height:3rem}._container_1gf2q_1{display:flex;flex-direction:column;gap:.5rem;width:100%;box-sizing:border-box}._grid_1gf2q_9{display:grid;grid-template-columns:repeat(4,1fr);gap:.5rem}._field_1gf2q_15{display:flex;align-items:center;gap:.5rem;width:100%}._label_1gf2q_22{font-size:.75rem;color:var(--de-text-secondary, #6b7280);width:12px;flex-shrink:0;display:flex;justify-content:center;margin-bottom:.1rem}._inputWrapper_1gf2q_32{flex:1;min-width:0;display:flex}._group_xhfvf_1{display:inline-flex;border:1px solid var(--de-border-color, #d1d5db);padding:0;margin:0;gap:0;border-radius:.25rem;overflow:hidden;background-color:var(--de-bg-secondary, #f9fafb)}._btn_xhfvf_13{display:inline-flex;align-items:center;justify-content:center;width:2rem;height:1.75rem;padding:0;border:none;border-right:1px solid var(--de-border-color, #d1d5db);background-color:transparent;color:var(--de-text-secondary, #6b7280);cursor:pointer;transition:background-color .12s,color .12s;flex-shrink:0}._btn_xhfvf_13:last-child{border-right:none}._btn_xhfvf_13:hover:not(:disabled){background-color:var(--de-bg-active, #e5e7eb);color:var(--de-text-primary, #374151)}._btn_xhfvf_13:disabled{cursor:not-allowed;opacity:.5}._active_xhfvf_46{background-color:var(--de-primary-color, #2563eb);color:#fff}._active_xhfvf_46:hover:not(:disabled){background-color:var(--de-primary-dark, #1d4ed8);color:#fff}._btn_xhfvf_13 svg{display:block;width:1rem;height:1rem;pointer-events:none}._group_1uyid_1{display:inline-flex;border:1px solid var(--de-border-color, #d1d5db);padding:0;margin:0;gap:0;border-radius:.25rem;overflow:hidden;background-color:var(--de-bg-secondary, #f9fafb)}._btn_1uyid_13{display:inline-flex;align-items:center;justify-content:center;width:2rem;height:1.75rem;padding:0;border:none;border-right:1px solid var(--de-border-color, #d1d5db);background-color:transparent;color:var(--de-text-secondary, #6b7280);cursor:pointer;transition:background-color .12s,color .12s;flex-shrink:0}._btn_1uyid_13:last-child{border-right:none}._btn_1uyid_13:hover:not(:disabled){background-color:var(--de-bg-active, #e5e7eb);color:var(--de-text-primary, #374151)}._btn_1uyid_13:disabled{cursor:not-allowed;opacity:.5}._active_1uyid_46{background-color:var(--de-primary-color, #2563eb);color:#fff}._iconBold_1uyid_52{font-weight:700;font-size:.875rem;font-family:Georgia,serif;line-height:1}._iconItalic_1uyid_59{font-style:italic;font-size:.875rem;font-family:Georgia,serif;line-height:1}._iconUnderline_1uyid_66{text-decoration:underline;font-size:.875rem;font-family:Georgia,serif;line-height:1}._iconLineThrough_1uyid_73{text-decoration:line-through;font-size:.875rem;font-family:Georgia,serif;line-height:1}._root_12n4v_6{display:grid;grid-template-columns:1fr 8rem;gap:4px;align-items:center}._fontFamilyCell_12n4v_13,._fontSizeCell_12n4v_14,._colorCell_12n4v_15{min-width:0}._root_111zo_7{display:flex;flex-direction:column;gap:6px}._linkLabel_111zo_14{display:flex;align-items:center;gap:4px;font-size:11px;color:var(--de-text-secondary, #666);cursor:pointer;-webkit-user-select:none;user-select:none;flex-shrink:0}._linkLabel_111zo_14 input[type=checkbox]{cursor:pointer;accent-color:var(--de-primary-color, #3b82f6)}._allRow_111zo_31{display:flex;align-items:center;justify-content:center}._grid_111zo_38{display:flex;flex-direction:column;align-items:center;gap:4px}._sideRow_111zo_45{display:flex;align-items:center;justify-content:center;gap:8px}._cell_111zo_53{width:96px;flex-shrink:0}._spacer_111zo_59{width:48px;flex-shrink:0}._bar_13lr1_4{display:inline-flex;flex-direction:row;align-items:center;gap:2px;padding:4px 6px;border:1px solid var(--de-border-color, #d1d5db);border-radius:6px;background-color:var(--de-bg-primary, #ffffff);box-shadow:0 2px 8px #0000001f,0 1px 3px #00000014}._divider_13lr1_18{width:1px;height:18px;background-color:var(--de-bg-active, #e5e7eb);margin:0 2px}._barWrapper_13lr1_26{position:relative;display:inline-block}._popover_13lr1_31{position:absolute;top:calc(100% + 4px);left:0;z-index:1;background-color:var(--de-bg-primary, #ffffff);border:1px solid var(--de-border-color, #d1d5db);border-radius:6px;box-shadow:0 4px 16px #00000024,0 1px 4px #00000014;padding:12px;min-width:320px;max-height:480px;overflow-y:auto}._container_3lvww_1{display:flex;flex-direction:column;gap:.5rem;width:100%;box-sizing:border-box}._row_3lvww_9{display:flex;align-items:center;gap:.5rem}._label_3lvww_15{font-size:.9rem;color:var(--de-text-secondary, #6b7280);width:1.5rem;flex-shrink:0;display:flex;justify-content:center}._inputWrapper_3lvww_24{flex:1;min-width:0;display:flex;flex-direction:column}._error_3lvww_31{font-size:.75rem;color:var(--de-error-color, #dc2626);margin-top:.25rem}._container_2zb6l_1{width:100%;height:100%;background-color:var(--de-bg-primary, #ffffff);border-left:1px solid var(--de-border-color, #e5e7eb);display:flex;flex-direction:column;overflow:hidden;box-sizing:border-box}._container_2zb6l_1 *,._container_2zb6l_1 *:before,._container_2zb6l_1 *:after{box-sizing:border-box}._scrollArea_2zb6l_18{flex:1;overflow-y:auto;overflow-x:hidden;width:100%}._fields_2zb6l_25{display:flex;flex-direction:column;gap:1rem;width:100%;box-sizing:border-box}._emptyState_2zb6l_33{display:flex;align-items:center;justify-content:center;height:100%;color:var(--de-text-tertiary, #9ca3af);font-size:.875rem;padding:1rem;text-align:center}._kindSelector_qrad9_1{display:flex;flex-wrap:wrap;gap:.25rem;padding:.5rem .75rem;border-bottom:1px solid var(--de-border-color, #e5e7eb)}._kindTab_qrad9_9{display:inline-flex;align-items:center;justify-content:center;padding:.25rem .625rem;font-size:.75rem;border:1px solid var(--de-border-color, #d1d5db);border-radius:.25rem;background-color:var(--de-bg-secondary, #f9fafb);color:var(--de-text-primary, #374151);cursor:pointer;white-space:nowrap;transition:background-color .1s,color .1s}._kindTab_qrad9_9:hover{background-color:var(--de-bg-hover, #f3f4f6)}._kindTabActive_qrad9_30{background-color:var(--de-primary-color, #2563eb);color:#fff;border-color:var(--de-primary-color, #2563eb)}._kindTabActive_qrad9_30:hover{background-color:var(--de-primary-dark, #1d4ed8)}._kindTabIcon_qrad9_40{width:1rem;height:1rem}._propertyList_qrad9_46{display:flex;flex-direction:column;gap:0;padding:.25rem 0}._propRow_qrad9_54{display:flex;align-items:center;justify-content:space-between;padding:.375rem .75rem;border-bottom:1px solid var(--de-border-color, #f3f4f6);gap:.5rem}._propRow_qrad9_54:last-child{border-bottom:none}._propInfo_qrad9_67{display:flex;align-items:center;gap:.5rem;flex:1;min-width:0}._propKind_qrad9_75{font-family:monospace;font-size:.75rem;color:var(--de-text-primary, #374151)}._customBadge_qrad9_81{font-size:.625rem;font-weight:600;padding:.1rem .375rem;border-radius:.25rem;background-color:#eff6ff;color:var(--de-primary-color, #2563eb);border:1px solid #bfdbfe;white-space:nowrap}._propActions_qrad9_92{display:flex;gap:.25rem;flex-shrink:0}._setButton_qrad9_98,._resetButton_qrad9_99{padding:.25rem .625rem;font-size:.7rem;border-radius:.25rem;border:1px solid;cursor:pointer;transition:all .1s}._setButton_qrad9_98{background-color:var(--de-bg-secondary, #f9fafb);border-color:var(--de-border-color, #d1d5db);color:var(--de-text-primary, #374151)}._setButton_qrad9_98:hover{background-color:#eff6ff;border-color:#93c5fd;color:var(--de-primary-color, #2563eb)}._resetButton_qrad9_99{background-color:#fef2f2;border-color:#fca5a5;color:var(--de-error-color, #dc2626)}._resetButton_qrad9_99:hover{background-color:#fee2e2}._emptyState_qrad9_131{padding:1rem .75rem;color:var(--de-text-tertiary, #9ca3af);font-size:.8rem;text-align:center}._description_12dfx_4{margin:0 0 8px;font-size:.7rem;color:var(--de-text-tertiary, #9ca3af)}._list_12dfx_10{display:flex;flex-direction:column;gap:8px;list-style:none;margin:0;padding:0}._item_12dfx_19{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;background-color:var(--de-bg-secondary, #f5f5f5);border:1px solid var(--de-border-color, #e0e0e0);border-radius:4px;font-size:12px;cursor:grab;transition:all .2s}._item_12dfx_19:active{cursor:grabbing}._item_12dfx_19._dragging_12dfx_36{opacity:.5;cursor:grabbing}._item_12dfx_19._selected_12dfx_41{border-color:var(--de-accent-color, #2196f3);background-color:var(--de-accent-light, rgba(33, 150, 243, .1))}._dragHandle_12dfx_46{display:flex;align-items:center;justify-content:center;width:20px;height:20px;margin-right:8px;color:var(--de-text-secondary, #666);pointer-events:none}._item_12dfx_19:hover:not(._ghost_12dfx_57){box-shadow:0 0 0 2px var(--de-accent-color, #2196f3)}._item_12dfx_19._ghost_12dfx_57{opacity:.45;border:2px dashed var(--de-accent-color, #2196f3);background-color:var(--de-accent-light, rgba(33, 150, 243, .08));cursor:default}._itemInfo_12dfx_68{display:flex;flex-direction:column;gap:4px;flex:1}._itemId_12dfx_75{font-weight:500;color:var(--de-text-primary, #333)}._itemMeta_12dfx_80{display:flex;gap:8px;font-size:11px;color:var(--de-text-secondary, #666)}._itemKind_12dfx_87{font-family:monospace}._itemIndex_12dfx_91{color:var(--de-accent-color, #2196f3)}._itemActions_12dfx_95{display:flex;gap:4px}._actionButton_12dfx_100{display:flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border:1px solid var(--de-border-color, #e0e0e0);border-radius:4px;background-color:var(--de-bg-primary, #fff);color:var(--de-text-secondary, #666);cursor:pointer;transition:all .2s}._actionButton_12dfx_100:hover{background-color:var(--de-accent-light, rgba(33, 150, 243, .1));border-color:var(--de-accent-color, #2196f3);color:var(--de-accent-color, #2196f3)}._actionButton_12dfx_100:active{transform:scale(.95)}._actionButton_12dfx_100:disabled{opacity:.4;cursor:not-allowed}._actionButton_12dfx_100:disabled:hover{background-color:var(--de-bg-primary, #fff);border-color:var(--de-border-color, #e0e0e0);color:var(--de-text-secondary, #666)}._empty_12dfx_136{padding:24px;text-align:center;font-size:12px;color:var(--de-text-secondary, #666);background-color:var(--de-bg-secondary, #f5f5f5);border-radius:4px}._container_1x0zd_4{display:flex;flex-direction:row;align-items:center;gap:4px;padding:6px 8px;border-bottom:1px solid var(--de-border-color, #e5e7eb);background-color:var(--de-bg-secondary, #f9fafb);flex-shrink:0;flex-wrap:wrap}._group_1x0zd_16{display:flex;flex-direction:row;gap:2px}._divider_1x0zd_22{width:1px;height:20px;background-color:var(--de-border-color, #d1d5db);flex-shrink:0;margin:0 2px}._field_69k7e_6{display:flex;flex-direction:column;gap:6px}._field_69k7e_6._horizontal_69k7e_12{flex-direction:row;align-items:center;gap:4px}._label_69k7e_18{font-size:12px;font-weight:500;color:var(--de-text-secondary, #666)}._field_69k7e_6._horizontal_69k7e_12 ._label_69k7e_18{min-width:32px;flex-shrink:0}._gridSizeRow_69k7e_29{display:flex;gap:16px}._gridSizeRow_69k7e_29>._field_69k7e_6{flex:1;min-width:0}._topRow_2ni80_6{display:flex;align-items:center;justify-content:center;position:relative}._linkSwitch_2ni80_15{position:absolute;left:0;display:inline-flex;align-items:center;gap:3px}._switchLabel_2ni80_23{font-size:.625rem;font-weight:600;color:var(--de-text-tertiary, #9ca3af);-webkit-user-select:none;user-select:none;white-space:nowrap}._switchLabelActive_2ni80_31{color:var(--de-text-primary, #374151)}._toggle_2ni80_35{position:relative;width:28px;height:16px;border-radius:8px;background-color:var(--de-border-color, #d1d5db);border:none;cursor:pointer;padding:0;flex-shrink:0;transition:background-color .2s}._toggle_2ni80_35[aria-checked=true]{background-color:var(--de-primary-color, #3b82f6)}._thumb_2ni80_52{position:absolute;top:2px;left:2px;width:12px;height:12px;border-radius:50%;background-color:#fff;transition:left .2s;pointer-events:none}._toggle_2ni80_35[aria-checked=true] ._thumb_2ni80_52{left:14px}._topCell_2ni80_70{width:120px;flex-shrink:0}._sideCell_2ni80_75{width:120px;flex-shrink:0;min-width:0}._bottomCell_2ni80_81{width:120px;align-self:center}._sideMargins_2ni80_88{display:flex;gap:36px;justify-content:center}._grid_ddemj_5{display:grid;grid-template-columns:repeat(8,1fr);gap:4px 8px;align-items:center}._colSpan2_ddemj_13{grid-column:span 2}._colSpan3_ddemj_18{grid-column:span 3;min-width:0}._label_ddemj_23{font-size:12px;font-weight:500;color:var(--de-text-secondary, #666);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._modeLabel_ddemj_32{font-size:11px;font-weight:500;color:var(--de-text-secondary, #666);white-space:nowrap}._modeToggle_ddemj_40{grid-column:span 3;display:inline-flex;align-items:center;gap:4px}._switchLabel_ddemj_47{font-size:.625rem;font-weight:600;color:var(--de-text-tertiary, #9ca3af);-webkit-user-select:none;user-select:none;white-space:nowrap}._switchLabelActive_ddemj_55{color:var(--de-text-primary, #374151)}._toggle_ddemj_59{position:relative;width:28px;height:16px;border-radius:8px;background-color:var(--de-border-color, #d1d5db);border:none;cursor:pointer;padding:0;flex-shrink:0;transition:background-color .2s}._toggle_ddemj_59[aria-checked=true]{background-color:var(--de-primary-color, #3b82f6)}._thumb_ddemj_76{position:absolute;top:2px;left:2px;width:12px;height:12px;border-radius:50%;background-color:#fff;transition:left .2s;pointer-events:none}._toggle_ddemj_59[aria-checked=true] ._thumb_ddemj_76{left:14px}._checkboxCell_ddemj_92{display:flex;justify-content:center;align-items:center}._buttonGroup_5h1ft_1{display:flex;flex-direction:column;gap:8px}._button_5h1ft_1{display:flex;align-items:center;justify-content:center;gap:8px;padding:10px 16px;border:1px solid var(--de-border-color, #e0e0e0);border-radius:4px;background-color:var(--de-bg-primary, #fff);color:var(--de-text-primary, #333);font-size:13px;font-weight:500;cursor:pointer;transition:all .2s}._button_5h1ft_1:hover{background-color:var(--de-accent-light, rgba(33, 150, 243, .1));border-color:var(--de-accent-color, #2196f3);color:var(--de-accent-color, #2196f3)}._button_5h1ft_1:active{transform:scale(.98)}._error_5h1ft_33{padding:12px;background-color:var(--de-error-bg, #ffebee);border:1px solid var(--de-error-border, #ef5350);border-radius:4px;color:var(--de-error-text, #c62828);font-size:12px;line-height:1.5;word-break:break-word}._container_16a0l_1{display:flex;flex-direction:column;width:100%;height:100%;background-color:var(--de-bg-secondary, #fafafa);overflow:hidden;box-sizing:border-box}._paletteItems_16a0l_11{flex:1;width:100%;padding:12px;overflow-y:auto;display:flex;flex-direction:column;gap:12px;box-sizing:border-box}._item_16a0l_23{display:flex;flex-direction:column;width:100%;border:1px solid var(--de-border-color, #d1d5db);border-radius:6px;background-color:var(--de-bg-primary, #ffffff);text-align:left;transition:all .2s ease;-webkit-user-select:none;user-select:none;box-sizing:border-box;flex-shrink:0;overflow:hidden}._item_16a0l_23:hover{background-color:var(--de-bg-hover, #f3f4f6);border-color:var(--de-border-hover, #9ca3af);box-shadow:0 2px 4px #0000000d}._item_16a0l_23:focus-visible{outline:2px solid var(--de-primary-color, #3b82f6);outline-offset:2px}._itemName_16a0l_49{width:100%;padding:12px;font-weight:600;font-size:14px;color:var(--de-text-primary, #1f2937);background:transparent;border:none;cursor:grab;text-align:left;transition:background-color .2s ease}._itemName_16a0l_49:hover{background-color:var(--de-bg-hover, #f9fafb)}._itemName_16a0l_49:active{cursor:grabbing;background-color:var(--de-bg-active, #f3f4f6)}._itemName_16a0l_49:focus-visible{outline:2px solid var(--de-primary-color, #3b82f6);outline-offset:-2px}._itemPreview_16a0l_77{width:100%;height:80px;padding:8px;border-top:1px solid var(--de-border-light, #e5e7eb);overflow:hidden;background:var(--de-bg-canvas, #f9fafb);display:flex;align-items:center;justify-content:center;position:relative;flex-shrink:0;box-sizing:border-box}._itemPreview_16a0l_77:after{content:"";position:absolute;top:0;left:0;right:0;bottom:0;z-index:1000;cursor:grab;pointer-events:auto}._itemPreview_16a0l_77>*{width:200px;height:100px;transform:scale(.6);transform-origin:center center;pointer-events:none;border:1px solid var(--de-border-light, #e5e7eb);border-radius:4px;background:var(--de-bg-primary, #ffffff);box-shadow:0 1px 3px #0000001a}._itemPreview_16a0l_77 *,._itemPreview_16a0l_77 *:before,._itemPreview_16a0l_77 *:after{pointer-events:none}._itemInfo_16a0l_126{display:flex;flex-direction:column}._itemDescription_16a0l_131{font-size:12px;color:var(--de-text-secondary, #6b7280);margin-bottom:4px}._itemSize_16a0l_137{font-size:11px;color:var(--de-text-tertiary, #9ca3af)}
|
package/dist/canvas.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./paperSettingsWidget-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./paperSettingsWidget-CIRKgnz4.cjs"),t=require("./sidebarPortal-Dit8f3sD.cjs");function r(i){return{book:{paper:{size:{preset:t.PaperSizePreset.CUSTOM,width:{value:50,unit:"mm"},height:{value:10,unit:"mm"}},margin:{top:{value:0,unit:"mm"},right:{value:0,unit:"mm"},bottom:{value:0,unit:"mm"},left:{value:0,unit:"mm"}},autoHeight:!0,autoWidth:!0},pages:[{grid:{colCount:3,rowCount:1,cols:{1:{value:8,unit:"mm"},2:{value:15,unit:"mm"}}},blocks:[{...e.numberInputBlock(`${i}-value`,`${i}.value`),layout:{x:0,y:0,w:1,h:1}},{id:`${i}-stepper`,kind:"stepper",layout:{x:1,y:0,w:1,h:1},props:{binding:`${i}.value`,step:1,min:0}},{...e.unitSelectBlock(`${i}-unit`,`${i}.unit`),layout:{x:2,y:0,w:1,h:1}}]}]}}}const n={size:{preset:t.PaperSizePreset.CUSTOM,width:{value:120,unit:"mm"},height:{value:8,unit:"mm"}},margin:{top:{value:0,unit:"mm"},right:{value:0,unit:"mm"},bottom:{value:0,unit:"mm"},left:{value:0,unit:"mm"}},autoHeight:!0,autoWidth:!0},o={colCount:9,rowCount:1,cols:{1:{value:8,unit:"mm"},2:{value:16,unit:"mm"},4:{value:8,unit:"mm"},5:{value:16,unit:"mm"},7:{value:8,unit:"mm"},8:{value:16,unit:"mm"}}},a={book:{paper:n,pages:[{grid:o,blocks:[{id:"margin-bulk-label",kind:"text",layout:{x:0,y:0,w:2,h:1},initValue:"一括",behavior:{readOnly:!0},props:{horizontal:"center",vertical:"center"}},{id:"margin-bulk-checkbox",kind:"checkbox",layout:{x:2,y:0,w:1,h:1},props:{binding:"margin.bulk"}},{...e.numberInputBlock("margin-top-value","margin.top.value"),layout:{x:3,y:0,w:1,h:1},hiddenBinding:"margin.bulk"},{id:"margin-top-stepper",kind:"stepper",layout:{x:4,y:0,w:1,h:1},props:{binding:"margin.top.value",step:1,min:0},hiddenBinding:"margin.bulk"},{...e.unitSelectBlock("margin-top-unit","margin.top.unit"),layout:{x:5,y:0,w:1,h:1},hiddenBinding:"margin.bulk"},{...e.numberInputBlock("margin-all-value","margin.all.value"),layout:{x:3,y:0,w:1,h:1},hiddenBinding:{path:"margin.bulk",neq:!0}},{id:"margin-all-stepper",kind:"stepper",layout:{x:4,y:0,w:1,h:1},props:{binding:"margin.all.value",step:1,min:0},hiddenBinding:{path:"margin.bulk",neq:!0}},{...e.unitSelectBlock("margin-all-unit","margin.all.unit"),layout:{x:5,y:0,w:1,h:1},hiddenBinding:{path:"margin.bulk",neq:!0}}]}]}},l={book:{paper:n,pages:[{grid:o,blocks:[{...e.numberInputBlock("margin-left-value","margin.left.value"),layout:{x:0,y:0,w:1,h:1}},{id:"margin-left-stepper",kind:"stepper",layout:{x:1,y:0,w:1,h:1},props:{binding:"margin.left.value",step:1,min:0}},{...e.unitSelectBlock("margin-left-unit","margin.left.unit"),layout:{x:2,y:0,w:1,h:1}},{...e.numberInputBlock("margin-right-value","margin.right.value"),layout:{x:6,y:0,w:1,h:1}},{id:"margin-right-stepper",kind:"stepper",layout:{x:7,y:0,w:1,h:1},props:{binding:"margin.right.value",step:1,min:0}},{...e.unitSelectBlock("margin-right-unit","margin.right.unit"),layout:{x:8,y:0,w:1,h:1}}]}]}},u={book:{paper:n,pages:[{grid:o,blocks:[{...e.numberInputBlock("margin-bottom-value","margin.bottom.value"),layout:{x:3,y:0,w:1,h:1}},{id:"margin-bottom-stepper",kind:"stepper",layout:{x:4,y:0,w:1,h:1},props:{binding:"margin.bottom.value",step:1,min:0}},{...e.unitSelectBlock("margin-bottom-unit","margin.bottom.unit"),layout:{x:5,y:0,w:1,h:1}}]}]}},p={props:{book:{paper:{size:{preset:t.PaperSizePreset.CUSTOM,width:{value:120,unit:"mm"},height:{value:24,unit:"mm"}},margin:{top:{value:0,unit:"mm"},right:{value:0,unit:"mm"},bottom:{value:0,unit:"mm"},left:{value:0,unit:"mm"}},autoHeight:!0,autoWidth:!0},pages:[{grid:{colCount:1,rowCount:3,rows:{0:{value:8,unit:"mm"},1:{value:8,unit:"mm"},2:{value:8,unit:"mm"}}},blocks:[{id:"row-bulk-top",kind:"note",layout:{x:0,y:0,w:1,h:1},behavior:{heightFit:!0},props:a},{id:"row-left-right",kind:"note",layout:{x:0,y:1,w:1,h:1},behavior:{heightFit:!0},props:l,hiddenBinding:"margin.bulk"},{id:"row-bottom",kind:"note",layout:{x:0,y:2,w:1,h:1},behavior:{heightFit:!0},props:u,hiddenBinding:"margin.bulk"}]}]}},plugins:[e.CheckboxPlugin,e.NoteBlockPlugin,e.SelectPlugin,e.StepperPlugin,e.TextPlugin]};exports.BlockBorder=e.BlockBorder;exports.BlockCanvas=e.BlockCanvas;exports.BlockContainer=e.BlockContainer;exports.BlockGuideBorder=e.BlockGuideBorder;exports.BlockLayer=e.BlockLayer;exports.BlockRenderer=e.BlockRenderer;exports.ButtonPlugin=e.ButtonPlugin;exports.ButtonRenderer=e.ButtonRenderer;exports.CheckboxRenderer=e.CheckboxRenderer;exports.DEFAULT_GUIDE_BORDER=e.DEFAULT_GUIDE_BORDER;exports.DragType=e.DragType;exports.InteractionLayer=e.InteractionLayer;exports.InteractionMode=e.InteractionMode;exports.NoteBlockPlugin=e.NoteBlockPlugin;exports.NoteBlockRenderer=e.NoteBlockRenderer;exports.PAPER_SIZE_BLOCKS=e.PAPER_SIZE_BLOCKS;exports.ResizeHandle=e.ResizeHandle;exports.SelectRenderer=e.SelectRenderer;exports.StepperPlugin=e.StepperPlugin;exports.StepperRenderer=e.StepperRenderer;exports.TextRenderer=e.TextRenderer;exports.ValidationOverlay=e.ValidationOverlay;exports.buttonActionProp=e.buttonActionProp;exports.buttonContentProp=e.buttonContentProp;exports.evaluateCheckboxValidation=e.evaluateCheckboxValidation;exports.evaluateValidation=e.evaluateValidation;exports.executeButtonAction=e.executeButtonAction;exports.fontStyleProp=e.fontStyleProp;exports.getButtonActionActive=e.getButtonActionActive;exports.getInteractionMode=e.getInteractionMode;exports.getPaperSize=e.getPaperSize;exports.gridColCountWidget=e.gridColCountWidget;exports.gridRowCountWidget=e.gridRowCountWidget;exports.hasValidationRule=e.hasValidationRule;exports.isButtonActionEnabled=e.isButtonActionEnabled;exports.numberInputBlock=e.numberInputBlock;exports.paddingProp=e.paddingProp;exports.paperOrientationWidget=e.paperOrientationWidget;exports.paperPresetSelectWidget=e.paperPresetSelectWidget;exports.paperSizeWidget=e.paperSizeWidget;exports.placeholderProp=e.placeholderProp;exports.requiredProp=e.requiredProp;exports.resolveEffectivePaper=e.resolveEffectivePaper;exports.selectConfigProp=e.selectConfigProp;exports.stepperBehaviorProp=e.stepperBehaviorProp;exports.stepperStyleProp=e.stepperStyleProp;exports.unitSelectBlock=e.unitSelectBlock;exports.useBookActionContext=e.useBookActionContext;exports.useBookBindingContext=e.useBookBindingContext;exports.useBookHistory=e.useBookHistory;exports.useInteractionState=e.useInteractionState;exports.ACTUAL_UNITS=t.ACTUAL_UNITS;exports.ALL_UNITS=t.ALL_UNITS;exports.BORDER_UNITS=t.BORDER_UNITS;exports.DEFAULT_DPI=t.DEFAULT_DPI;exports.FONT_UNITS=t.FONT_UNITS;exports.GRID_UNITS=t.GRID_UNITS;exports.HorizontalAlign=t.HorizontalAlign;exports.InputType=t.InputType;exports.PADDING_UNITS=t.PADDING_UNITS;exports.PAPER_UNITS=t.PAPER_UNITS;exports.SIZE_UNITS=t.SIZE_UNITS;exports.Units=t.Units;exports.VerticalAlign=t.VerticalAlign;exports.WhiteSpace=t.WhiteSpace;exports.WordWrap=t.WordWrap;exports.alignmentProp=t.alignmentProp;exports.checkboxStyleProp=t.checkboxStyleProp;exports.dimensionToString=t.dimensionToString;exports.isValue=t.isValue;exports.startBlockDrag=t.startBlockDrag;exports.stringToDimension=t.stringToDimension;exports.textBehaviorProp=t.textBehaviorProp;exports.textValidationProp=t.textValidationProp;exports.toMm=t.toMm;exports.toPx=t.toPx;exports.validatePage=t.validatePage;exports.validateValues=t.validateValues;exports.dimensionInputWidget=r;exports.marginSettingsWidget=p;
|
package/dist/canvas.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as a, y as e, C as r, z as u, S as l, d as s, T as m } from "./paperSettingsWidget-
|
|
2
|
-
import { A as x, E as B, F as P, G as w, h as S, H as R, B as T, I as C, J as I, K as f, L as _, M as A, O, P as W, Q as U, R as E, U as D, W as N, X as z, Y as L, Z as V, _ as F, $ as H, a0 as M, a1 as G, a2 as $, a3 as q, a4 as K, a5 as Z, a6 as J, a7 as Q, a8 as j, a9 as X, aa as Y, ab as tt, ac as at, ad as et, ae as it, af as nt, e as ot, ag as rt, ah as ut, ai as lt, b as st, a as mt, u as pt, aj as gt } from "./paperSettingsWidget-
|
|
3
|
-
import { P as i } from "./sidebarPortal-
|
|
4
|
-
import { A as ht,
|
|
1
|
+
import { n as a, y as e, C as r, z as u, S as l, d as s, T as m } from "./paperSettingsWidget-CAIw_Ofm.js";
|
|
2
|
+
import { A as x, E as B, F as P, G as w, h as S, H as R, B as T, I as C, J as I, K as f, L as _, M as A, O, P as W, Q as U, R as E, U as D, W as N, X as z, Y as L, Z as V, _ as F, $ as H, a0 as M, a1 as G, a2 as $, a3 as q, a4 as K, a5 as Z, a6 as J, a7 as Q, a8 as j, a9 as X, aa as Y, ab as tt, ac as at, ad as et, ae as it, af as nt, e as ot, ag as rt, ah as ut, ai as lt, b as st, a as mt, u as pt, aj as gt } from "./paperSettingsWidget-CAIw_Ofm.js";
|
|
3
|
+
import { P as i } from "./sidebarPortal-Bigm11qq.js";
|
|
4
|
+
import { A as ht, q as vt, B as ct, D as yt, F as kt, G as bt, H as xt, I as Bt, r as Pt, t as wt, v as St, U as Rt, V as Tt, W as Ct, w as It, x as ft, y as _t, z as At, C as Ot, E as Wt, J as Ut, K as Et, M as Dt, O as Nt, Q as zt, R as Lt, T as Vt } from "./sidebarPortal-Bigm11qq.js";
|
|
5
5
|
function c(t) {
|
|
6
6
|
return {
|
|
7
7
|
book: {
|
package/dist/index.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./index.css');const i=require("./paperSettingsWidget-CJ4QFjYK.cjs"),p=require("react"),u=require("./sidebarPortal-BCIVv4yO.cjs"),J=require("react-dom"),Q=require("react-dom/client"),r=require("react/jsx-runtime"),b=require("./PalettePanel-0cFP3tbA.cjs");function ee(e){const t={};for(const o of e.properties)Object.assign(t,o.defaultProps);return t}function O(e){const t=new Set;for(const o of e){if(t.has(o.kind))throw new Error(`[createPluginRegistry] duplicate plugin kind: "${o.kind}". Each kind must be registered only once.`);t.add(o.kind)}return Object.fromEntries(e.map(o=>{if(!o.Renderer)throw new Error(`[createPluginRegistry] plugin "${o.kind}" is missing a Renderer. Ensure you are passing a full BlockPlugin.`);return[o.kind,{kind:o.kind,meta:o.meta,properties:o.properties,defaultProps:ee(o),Renderer:o.Renderer,...typeof o.migrateProps=="function"?{migrateProps:o.migrateProps}:{},...typeof o.validateProps=="function"?{validateProps:o.validateProps}:{},...typeof o.validateValue=="function"?{validateValue:o.validateValue}:{}}]}))}const te=[i.CheckboxPlugin,i.SelectPlugin,i.TextPlugin];function oe(e,t){switch(t.type){case"setSelectedBlockIds":return{...e,selectedBlockIds:t.ids};case"setPageIdx":return{...e,pageIdx:t.idx};case"setClipboard":return{...e,clipboard:t.blocks}}}const ne={selectedBlockIds:[],pageIdx:0,clipboard:[]};function ae({book:e,handleBookChange:t}){const[o,n]=p.useReducer(oe,ne),{selectedBlockIds:a,pageIdx:l}=o,v=p.useRef(e);v.current=e;const d=p.useRef(o);d.current=o;const x=p.useCallback((s,c)=>{const h=v.current,g=d.current.pageIdx,P=h.pages[g];if(!P)return;const S=P.blocks.map(z=>{const D=s[z.id];return D?{...z,...D}:z});t(i.setPage(h,g,{...P,blocks:S}),c);const w=d.current.selectedBlockIds,A=w.map(z=>{var L;const D=(L=s[z])==null?void 0:L.id;return typeof D=="string"?D:z});A.some((z,D)=>z!==w[D])&&n({type:"setSelectedBlockIds",ids:A})},[t]),m=p.useCallback(s=>{const c=v.current,h=d.current.pageIdx,g=c.pages[h];if(!g)return;const P=new Set(s),S=g.blocks.filter(w=>!P.has(w.id));t(i.setPage(c,h,{...g,blocks:S})),n({type:"setSelectedBlockIds",ids:[]})},[t]),y=p.useCallback(s=>{const c=v.current,h=d.current.pageIdx,g=c.pages[h];if(!g)return;const P=g.blocks.filter(S=>s.includes(S.id));n({type:"setClipboard",blocks:P})},[]),C=p.useCallback(s=>{const c=v.current,h=d.current.pageIdx,g=c.pages[h];if(!g)return;const P=g.blocks.filter(A=>s.includes(A.id)),S=g.grid,w=P.map(A=>({...A,id:i.createBlockId(A.kind),layout:{...A.layout,x:Math.min(A.layout.x+1,S.colCount-A.layout.w),y:Math.min(A.layout.y+1,S.rowCount-A.layout.h)}}));t(i.setPage(c,h,{...g,blocks:[...g.blocks,...w]})),n({type:"setSelectedBlockIds",ids:w.map(A=>A.id)})},[t]),f=p.useCallback(()=>{const s=d.current.clipboard;if(s.length===0)return;const c=v.current,h=d.current.pageIdx,g=c.pages[h];if(!g)return;const P=g.grid,S=s.map(w=>({...w,id:i.createBlockId(w.kind),layout:{...w.layout,x:Math.min(w.layout.x+1,P.colCount-w.layout.w),y:Math.min(w.layout.y+1,P.rowCount-w.layout.h)}}));t(i.setPage(c,h,{...g,blocks:[...g.blocks,...S]})),n({type:"setSelectedBlockIds",ids:S.map(w=>w.id)})},[t]),I=p.useCallback(()=>{var P;const s=v.current,c=d.current.pageIdx,h=s.pages[c],g={grid:h?h.grid:((P=s.pages[0])==null?void 0:P.grid)??{colCount:12,rowCount:24},blocks:[]};t(i.insertPage(s,c,g)),n({type:"setPageIdx",idx:c+1})},[t]),E=p.useCallback(()=>{const s=v.current,c=d.current.pageIdx;if(s.pages.length<=1)return;const h=i.removePage(s,c);t(h),n({type:"setPageIdx",idx:Math.min(c,h.pages.length-1)})},[t]),T=p.useMemo(()=>({paste:{execute:f,isEnabled:()=>d.current.clipboard.length>0},delete:{execute:()=>m(d.current.selectedBlockIds),isEnabled:()=>d.current.selectedBlockIds.length>0},copy:{execute:()=>y(d.current.selectedBlockIds),isEnabled:()=>d.current.selectedBlockIds.length>0},duplicate:{execute:()=>C(d.current.selectedBlockIds),isEnabled:()=>d.current.selectedBlockIds.length>0},addPage:{execute:I,isEnabled:()=>!0},deletePage:{execute:E,isEnabled:()=>v.current.pages.length>1},selectBlocks:{execute:s=>n({type:"setSelectedBlockIds",ids:s}),isEnabled:()=>!0,validatePayload:s=>Array.isArray(s)&&s.every(c=>typeof c=="string")},goToPage:{execute:s=>n({type:"setPageIdx",idx:s}),isEnabled:()=>!0,validatePayload:s=>typeof s=="number"},updateBlocks:{execute:s=>{const{updates:c,options:h}=s;x(c,h)},isEnabled:()=>!0,validatePayload:s=>typeof s=="object"&&s!==null&&"updates"in s&&typeof s.updates=="object"}}),[f,m,y,C,I,E,x]);return{editorState:p.useMemo(()=>({selectedBlockIds:a,pageIdx:l}),[a,l]),actionHandlers:T,selectedBlockIds:a}}function ie({initialBook:e,pluginRegistry:t,defaultValues:o,extra:n}){const a=p.useRef(null),{book:l,handleBookChange:v,historyActionHandlers:d}=i.useBookHistory({initialBook:e}),[x,m]=p.useState(o??{}),y=p.useCallback(s=>{s.length!==0&&m(c=>{if(!s.some(({id:P,value:S})=>S===void 0?P in c:c[P]!==S))return c;const g={...c};for(const{id:P,value:S}of s)S===void 0?delete g[P]:g[P]=S;return g})},[]),{editorState:C,actionHandlers:f}=ae({book:l,handleBookChange:v}),I={pageIdx:C.pageIdx,...n?{extra:n}:{}},E=i.useBookBindingContext(l,v,I),T=i.useBookActionContext({...d,...f});return{context:p.useMemo(()=>({book:l,onBookChange:v,pluginRegistry:t,containerRef:a,bindingContext:E,actionContext:T,values:x,onValuesChange:y,editorState:C}),[l,v,t,E,T,x,y,C])}}const k={selectAll:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z",deselectAll:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z",delete:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z",copy:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z",paste:"M19 2h-4.18C14.4.84 13.3 0 12 0c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm7 18H5V4h2v3h10V4h2v16z",duplicate:"M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-1 9h-4v4h-2v-4H9V9h4V5h2v4h4v2z",undo:"M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z",redo:"M18.4 10.6C16.55 8.99 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16c1.05-3.19 4.05-5.5 7.6-5.5 1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z",prevPage:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z",nextPage:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",addPage:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z",deletePage:"M19 13H5v-2h14v2z"},_={value:2,unit:"mm"};function B(e,t,o){return{iconPath:e,label:"",action:t,...o?{title:o}:{},top:_,right:_,bottom:_,left:_}}function V(e="canvas-actions"){return{props:{book:{paper:{size:{preset:u.PaperSizePreset.CUSTOM,width:{value:160,unit:"mm"},height:{value:20,unit:"mm"}},margin:{top:{value:0,unit:"mm"},right:{value:0,unit:"mm"},bottom:{value:0,unit:"mm"},left:{value:0,unit:"mm"}}},pages:[{grid:{colCount:8,rowCount:1},blocks:[{id:`${e}-select-all`,kind:"button",layout:{x:0,y:0,w:1,h:1},props:B(k.selectAll,"select_all","すべて選択")},{id:`${e}-deselect-all`,kind:"button",layout:{x:1,y:0,w:1,h:1},props:B(k.deselectAll,"deselect_all","選択を解除")},{id:`${e}-delete`,kind:"button",layout:{x:2,y:0,w:1,h:1},props:B(k.delete,"delete","削除 (Delete / Backspace)")},{id:`${e}-copy`,kind:"button",layout:{x:3,y:0,w:1,h:1},props:B(k.copy,"copy","コピー (Ctrl+C / Cmd+C)")},{id:`${e}-paste`,kind:"button",layout:{x:4,y:0,w:1,h:1},props:B(k.paste,"paste","貼り付け (Ctrl+V / Cmd+V)")},{id:`${e}-duplicate`,kind:"button",layout:{x:5,y:0,w:1,h:1},props:B(k.duplicate,"duplicate","複製 (Ctrl+D / Cmd+D)")},{id:`${e}-undo`,kind:"button",layout:{x:6,y:0,w:1,h:1},props:B(k.undo,"undo","元に戻す (Ctrl+Z / Cmd+Z)")},{id:`${e}-redo`,kind:"button",layout:{x:7,y:0,w:1,h:1},props:B(k.redo,"redo","やり直し (Ctrl+Y / Cmd+Y)")}]}]}},plugins:[i.ButtonPlugin]}}const re=V();function H(e="clipboard"){return{props:{book:{paper:{size:{preset:u.PaperSizePreset.CUSTOM,width:{value:60,unit:"mm"},height:{value:20,unit:"mm"}},margin:{top:{value:0,unit:"mm"},right:{value:0,unit:"mm"},bottom:{value:0,unit:"mm"},left:{value:0,unit:"mm"}}},pages:[{grid:{colCount:3,rowCount:1},blocks:[{id:`${e}-copy`,kind:"button",layout:{x:0,y:0,w:1,h:1},props:B(k.copy,"copy")},{id:`${e}-paste`,kind:"button",layout:{x:1,y:0,w:1,h:1},props:B(k.paste,"paste")},{id:`${e}-duplicate`,kind:"button",layout:{x:2,y:0,w:1,h:1},props:B(k.duplicate,"duplicate")}]}]}},plugins:[i.ButtonPlugin]}}const le=H();function W(e="history"){return{props:{book:{paper:{size:{preset:u.PaperSizePreset.CUSTOM,width:{value:40,unit:"mm"},height:{value:20,unit:"mm"}},margin:{top:{value:0,unit:"mm"},right:{value:0,unit:"mm"},bottom:{value:0,unit:"mm"},left:{value:0,unit:"mm"}}},pages:[{grid:{colCount:2,rowCount:1},blocks:[{id:`${e}-undo`,kind:"button",layout:{x:0,y:0,w:1,h:1},props:B(k.undo,"undo")},{id:`${e}-redo`,kind:"button",layout:{x:1,y:0,w:1,h:1},props:B(k.redo,"redo")}]}]}},plugins:[i.ButtonPlugin]}}const se=W(),j={size:{preset:u.PaperSizePreset.CUSTOM},margin:{top:{value:0,unit:"mm"},right:{value:0,unit:"mm"},bottom:{value:0,unit:"mm"},left:{value:0,unit:"mm"}},autoHeight:!0,autoWidth:!0},ce={margin:j.margin,autoHeight:j.autoHeight,autoWidth:j.autoWidth},de={props:{book:{paper:{...ce,size:{preset:u.PaperSizePreset.CUSTOM,width:{value:160,unit:"mm"},height:{value:8,unit:"mm"}}},pages:[{grid:{colCount:12,rowCount:1,cols:{2:{value:8,unit:"mm"},5:{value:8,unit:"mm"},8:{value:8,unit:"mm"},11:{value:8,unit:"mm"}}},blocks:[{id:"layout-x-label",kind:"text",layout:{x:0,y:0,w:1,h:1},initValue:"X",behavior:{readOnly:!0},props:{horizontal:"center",vertical:"center"}},{...i.numberInputBlock("layout-x-value","layout.x"),layout:{x:1,y:0,w:1,h:1}},{id:"layout-x-stepper",kind:"stepper",layout:{x:2,y:0,w:1,h:1},props:{binding:"layout.x",step:1,min:0}},{id:"layout-y-label",kind:"text",layout:{x:3,y:0,w:1,h:1},initValue:"Y",behavior:{readOnly:!0},props:{horizontal:"center",vertical:"center"}},{...i.numberInputBlock("layout-y-value","layout.y"),layout:{x:4,y:0,w:1,h:1}},{id:"layout-y-stepper",kind:"stepper",layout:{x:5,y:0,w:1,h:1},props:{binding:"layout.y",step:1,min:0}},{id:"layout-w-label",kind:"text",layout:{x:6,y:0,w:1,h:1},initValue:"W",behavior:{readOnly:!0},props:{horizontal:"center",vertical:"center"}},{...i.numberInputBlock("layout-w-value","layout.w"),layout:{x:7,y:0,w:1,h:1}},{id:"layout-w-stepper",kind:"stepper",layout:{x:8,y:0,w:1,h:1},props:{binding:"layout.w",step:1,min:1}},{id:"layout-h-label",kind:"text",layout:{x:9,y:0,w:1,h:1},initValue:"H",behavior:{readOnly:!0},props:{horizontal:"center",vertical:"center"}},{...i.numberInputBlock("layout-h-value","layout.h"),layout:{x:10,y:0,w:1,h:1}},{id:"layout-h-stepper",kind:"stepper",layout:{x:11,y:0,w:1,h:1},props:{binding:"layout.h",step:1,min:1}}]}]}},plugins:[i.TextPlugin,i.StepperPlugin]};function $(e){const{pageIdx:t,pageCount:o}=e,n=t!==void 0?String(t+1):"—",a=o!==void 0?String(o):"—";return{props:{book:{paper:{size:{preset:u.PaperSizePreset.CUSTOM,width:{value:130,unit:"mm"},height:{value:20,unit:"mm"}},margin:{top:{value:0,unit:"mm"},right:{value:0,unit:"mm"},bottom:{value:0,unit:"mm"},left:{value:0,unit:"mm"}}},pages:[{grid:{colCount:7,rowCount:1,cols:{2:{value:10,unit:"mm"}}},blocks:[{id:"prev-page",kind:"button",layout:{x:0,y:0,w:1,h:1},props:{iconPath:k.prevPage,label:"",action:"prev_page"}},{id:"page-current",kind:"text",layout:{x:1,y:0,w:1,h:1},behavior:{readOnly:!0},initValue:n,props:{horizontal:"right",vertical:"center",fontSize:{value:25,unit:"pt"}}},{id:"page-separator",kind:"text",layout:{x:2,y:0,w:1,h:1},behavior:{readOnly:!0},initValue:"/",props:{horizontal:"center",vertical:"center",fontSize:{value:25,unit:"pt"}}},{id:"page-total",kind:"text",layout:{x:3,y:0,w:1,h:1},behavior:{readOnly:!0},initValue:a,props:{horizontal:"left",vertical:"center",fontSize:{value:25,unit:"pt"}}},{id:"next-page",kind:"button",layout:{x:4,y:0,w:1,h:1},props:{iconPath:k.nextPage,label:"",action:"next_page"}},{id:"add-page",kind:"button",layout:{x:5,y:0,w:1,h:1},props:{iconPath:k.addPage,label:"",action:"add_page"}},{id:"delete-page",kind:"button",layout:{x:6,y:0,w:1,h:1},props:{iconPath:k.deletePage,label:"",action:"delete_page"}}]}]}},plugins:[i.ButtonPlugin,i.TextPlugin]}}const ue=$({});function F(e="selection"){return{props:{book:{paper:{size:{preset:u.PaperSizePreset.CUSTOM,width:{value:60,unit:"mm"},height:{value:20,unit:"mm"}},margin:{top:{value:0,unit:"mm"},right:{value:0,unit:"mm"},bottom:{value:0,unit:"mm"},left:{value:0,unit:"mm"}}},pages:[{grid:{colCount:3,rowCount:1},blocks:[{id:`${e}-select-all`,kind:"button",layout:{x:0,y:0,w:1,h:1},props:B(k.selectAll,"select_all")},{id:`${e}-deselect-all`,kind:"button",layout:{x:1,y:0,w:1,h:1},props:B(k.deselectAll,"deselect_all")},{id:`${e}-delete`,kind:"button",layout:{x:2,y:0,w:1,h:1},props:B(k.delete,"delete")}]}]}},plugins:[i.ButtonPlugin]}}const pe=F(),U=({sections:e=[],className:t,style:o})=>r.jsx("div",{className:`${b.styles.container}${t?` ${t}`:""}`,style:o,"data-testid":"action-bar",children:e.map((n,a)=>{const l=p.isValidElement(n)&&n.key!=null?n.key:`section-${a}`;return r.jsxs(p.Fragment,{children:[a>0&&r.jsx(b.ActionBarDivider,{}),r.jsx("div",{className:b.styles.section,children:n})]},l)})});U.displayName="ActionBar";const ge="_printContainer_e2bnt_1",me="_pageBreak_e2bnt_6",N={printContainer:ge,pageBreak:me},G=p.memo(({page:e,paper:t,values:o,pluginRegistry:n})=>{const{paperPx:a,getBlockRectPx:l}=u.useGridCalc(t,e.grid,u.DEFAULT_DPI),v=o?{get:x=>o[x]??null,set:()=>{}}:void 0,d=e.blocks.filter(x=>!i.evalHiddenBinding(x.hiddenBinding,v));return r.jsx("div",{style:{position:"relative",width:`${a.canvas.width}px`,height:`${a.canvas.height}px`,backgroundColor:"#fff"},children:r.jsx(i.BlockLayer,{blocks:d,pluginRegistry:n,mode:u.NoteMode.VIEW,values:o??{},blockDefaults:e.blockDefaults,getBlockRectPx:l,showGuides:!1,showBorder:!0})})});G.displayName="PrintPage";const q=p.forwardRef(({book:e,values:t,pluginRegistry:o,printSettings:n,className:a,style:l},v)=>{const d=i.resolveEffectivePaper(e,n),x=i.buildPageCss(d,n==null?void 0:n.margin);return p.useEffect(()=>{var C,f;(C=document.getElementById("printable-note-page-style"))==null||C.remove(),(f=document.getElementById("tatamicks-book-page-style"))==null||f.remove();const m=document.createElement("style");m.id="printable-note-page-style",m.textContent=x,document.head.appendChild(m);const y=document.createElement("style");return y.id="tatamicks-book-page-style",y.textContent=x,document.head.appendChild(y),()=>{var I,E;(I=document.getElementById("printable-note-page-style"))==null||I.remove(),(E=document.getElementById("tatamicks-book-page-style"))==null||E.remove()}},[x]),r.jsx("div",{ref:v,className:[N.printContainer,a].filter(Boolean).join(" "),style:l,children:e.pages.map((m,y)=>{const C=m.id??(m.blocks.map(f=>f.id).join("_")||`page-${y}`);return r.jsx("div",{className:y<e.pages.length-1?N.pageBreak:void 0,children:r.jsx(G,{page:m,paper:d,values:t,pluginRegistry:o})},C)})})});q.displayName="NotePrint";const ye=p.memo(q);function he(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}function be(e,t){const o=document.title,n=document.createElement("iframe");n.style.cssText="position:fixed;top:0;left:0;width:100%;height:100%;visibility:hidden;z-index:-9999;border:none;",document.body.appendChild(n);const a=n.contentWindow,l=n.contentDocument??(a==null?void 0:a.document);if(!l||!a){document.body.removeChild(n);return}const v=Array.from(document.querySelectorAll("style")).map(y=>y.outerHTML).join(`
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./index.css');const i=require("./paperSettingsWidget-CIRKgnz4.cjs"),p=require("react"),u=require("./sidebarPortal-Dit8f3sD.cjs"),J=require("react-dom"),Q=require("react-dom/client"),r=require("react/jsx-runtime"),b=require("./PalettePanel-BTB1LkgU.cjs");function ee(e){const t={};for(const o of e.properties)Object.assign(t,o.defaultProps);return t}function O(e){const t=new Set;for(const o of e){if(t.has(o.kind))throw new Error(`[createPluginRegistry] duplicate plugin kind: "${o.kind}". Each kind must be registered only once.`);t.add(o.kind)}return Object.fromEntries(e.map(o=>{if(!o.Renderer)throw new Error(`[createPluginRegistry] plugin "${o.kind}" is missing a Renderer. Ensure you are passing a full BlockPlugin.`);return[o.kind,{kind:o.kind,meta:o.meta,properties:o.properties,defaultProps:ee(o),Renderer:o.Renderer,...typeof o.migrateProps=="function"?{migrateProps:o.migrateProps}:{},...typeof o.validateProps=="function"?{validateProps:o.validateProps}:{},...typeof o.validateValue=="function"?{validateValue:o.validateValue}:{}}]}))}const te=[i.CheckboxPlugin,i.SelectPlugin,i.TextPlugin];function oe(e,t){switch(t.type){case"setSelectedBlockIds":return{...e,selectedBlockIds:t.ids};case"setPageIdx":return{...e,pageIdx:t.idx};case"setClipboard":return{...e,clipboard:t.blocks}}}const ne={selectedBlockIds:[],pageIdx:0,clipboard:[]};function ae({book:e,handleBookChange:t}){const[o,n]=p.useReducer(oe,ne),{selectedBlockIds:a,pageIdx:l}=o,v=p.useRef(e);v.current=e;const d=p.useRef(o);d.current=o;const x=p.useCallback((s,c)=>{const h=v.current,g=d.current.pageIdx,P=h.pages[g];if(!P)return;const S=P.blocks.map(D=>{const T=s[D.id];return T?{...D,...T}:D});t(i.setPage(h,g,{...P,blocks:S}),c);const w=d.current.selectedBlockIds,A=w.map(D=>{var R;const T=(R=s[D])==null?void 0:R.id;return typeof T=="string"?T:D});A.some((D,T)=>D!==w[T])&&n({type:"setSelectedBlockIds",ids:A})},[t]),m=p.useCallback(s=>{const c=v.current,h=d.current.pageIdx,g=c.pages[h];if(!g)return;const P=new Set(s),S=g.blocks.filter(w=>!P.has(w.id));t(i.setPage(c,h,{...g,blocks:S})),n({type:"setSelectedBlockIds",ids:[]})},[t]),y=p.useCallback(s=>{const c=v.current,h=d.current.pageIdx,g=c.pages[h];if(!g)return;const P=g.blocks.filter(S=>s.includes(S.id));n({type:"setClipboard",blocks:P})},[]),C=p.useCallback(s=>{const c=v.current,h=d.current.pageIdx,g=c.pages[h];if(!g)return;const P=g.blocks.filter(A=>s.includes(A.id)),S=g.grid,w=P.map(A=>({...A,id:i.createBlockId(A.kind),layout:{...A.layout,x:Math.min(A.layout.x+1,S.colCount-A.layout.w),y:Math.min(A.layout.y+1,S.rowCount-A.layout.h)}}));t(i.setPage(c,h,{...g,blocks:[...g.blocks,...w]})),n({type:"setSelectedBlockIds",ids:w.map(A=>A.id)})},[t]),f=p.useCallback(()=>{const s=d.current.clipboard;if(s.length===0)return;const c=v.current,h=d.current.pageIdx,g=c.pages[h];if(!g)return;const P=g.grid,S=s.map(w=>({...w,id:i.createBlockId(w.kind),layout:{...w.layout,x:Math.min(w.layout.x+1,P.colCount-w.layout.w),y:Math.min(w.layout.y+1,P.rowCount-w.layout.h)}}));t(i.setPage(c,h,{...g,blocks:[...g.blocks,...S]})),n({type:"setSelectedBlockIds",ids:S.map(w=>w.id)})},[t]),I=p.useCallback(()=>{var P;const s=v.current,c=d.current.pageIdx,h=s.pages[c],g={grid:h?h.grid:((P=s.pages[0])==null?void 0:P.grid)??{colCount:12,rowCount:24},blocks:[]};t(i.insertPage(s,c,g)),n({type:"setPageIdx",idx:c+1})},[t]),E=p.useCallback(()=>{const s=v.current,c=d.current.pageIdx;if(s.pages.length<=1)return;const h=i.removePage(s,c);t(h),n({type:"setPageIdx",idx:Math.min(c,h.pages.length-1)})},[t]),z=p.useMemo(()=>({paste:{execute:f,isEnabled:()=>d.current.clipboard.length>0},delete:{execute:()=>m(d.current.selectedBlockIds),isEnabled:()=>d.current.selectedBlockIds.length>0},copy:{execute:()=>y(d.current.selectedBlockIds),isEnabled:()=>d.current.selectedBlockIds.length>0},duplicate:{execute:()=>C(d.current.selectedBlockIds),isEnabled:()=>d.current.selectedBlockIds.length>0},addPage:{execute:I,isEnabled:()=>!0},deletePage:{execute:E,isEnabled:()=>v.current.pages.length>1},selectBlocks:{execute:s=>n({type:"setSelectedBlockIds",ids:s}),isEnabled:()=>!0,validatePayload:s=>Array.isArray(s)&&s.every(c=>typeof c=="string")},goToPage:{execute:s=>n({type:"setPageIdx",idx:s}),isEnabled:()=>!0,validatePayload:s=>typeof s=="number"},updateBlocks:{execute:s=>{const{updates:c,options:h}=s;x(c,h)},isEnabled:()=>!0,validatePayload:s=>typeof s=="object"&&s!==null&&"updates"in s&&typeof s.updates=="object"}}),[f,m,y,C,I,E,x]);return{editorState:p.useMemo(()=>({selectedBlockIds:a,pageIdx:l}),[a,l]),actionHandlers:z,selectedBlockIds:a}}function ie({initialBook:e,pluginRegistry:t,defaultValues:o,extra:n}){const a=p.useRef(null),{book:l,handleBookChange:v,historyActionHandlers:d}=i.useBookHistory({initialBook:e}),[x,m]=p.useState(o??{}),y=p.useCallback(s=>{s.length!==0&&m(c=>{if(!s.some(({id:P,value:S})=>S===void 0?P in c:c[P]!==S))return c;const g={...c};for(const{id:P,value:S}of s)S===void 0?delete g[P]:g[P]=S;return g})},[]),{editorState:C,actionHandlers:f}=ae({book:l,handleBookChange:v}),I={pageIdx:C.pageIdx,...n?{extra:n}:{}},E=i.useBookBindingContext(l,v,I),z=i.useBookActionContext({...d,...f});return{context:p.useMemo(()=>({book:l,onBookChange:v,pluginRegistry:t,containerRef:a,bindingContext:E,actionContext:z,values:x,onValuesChange:y,editorState:C}),[l,v,t,E,z,x,y,C])}}const k={selectAll:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z",deselectAll:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z",delete:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z",copy:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z",paste:"M19 2h-4.18C14.4.84 13.3 0 12 0c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm7 18H5V4h2v3h10V4h2v16z",duplicate:"M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-1 9h-4v4h-2v-4H9V9h4V5h2v4h4v2z",undo:"M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z",redo:"M18.4 10.6C16.55 8.99 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16c1.05-3.19 4.05-5.5 7.6-5.5 1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z",prevPage:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z",nextPage:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",addPage:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z",deletePage:"M19 13H5v-2h14v2z"},M={value:2,unit:"mm"};function B(e,t,o){return{iconPath:e,label:"",action:t,...o?{title:o}:{},top:M,right:M,bottom:M,left:M}}function V(e="canvas-actions"){return{props:{book:{paper:{size:{preset:u.PaperSizePreset.CUSTOM,width:{value:160,unit:"mm"},height:{value:20,unit:"mm"}},margin:{top:{value:0,unit:"mm"},right:{value:0,unit:"mm"},bottom:{value:0,unit:"mm"},left:{value:0,unit:"mm"}}},pages:[{grid:{colCount:8,rowCount:1},blocks:[{id:`${e}-select-all`,kind:"button",layout:{x:0,y:0,w:1,h:1},props:B(k.selectAll,"select_all","すべて選択")},{id:`${e}-deselect-all`,kind:"button",layout:{x:1,y:0,w:1,h:1},props:B(k.deselectAll,"deselect_all","選択を解除")},{id:`${e}-delete`,kind:"button",layout:{x:2,y:0,w:1,h:1},props:B(k.delete,"delete","削除 (Delete / Backspace)")},{id:`${e}-copy`,kind:"button",layout:{x:3,y:0,w:1,h:1},props:B(k.copy,"copy","コピー (Ctrl+C / Cmd+C)")},{id:`${e}-paste`,kind:"button",layout:{x:4,y:0,w:1,h:1},props:B(k.paste,"paste","貼り付け (Ctrl+V / Cmd+V)")},{id:`${e}-duplicate`,kind:"button",layout:{x:5,y:0,w:1,h:1},props:B(k.duplicate,"duplicate","複製 (Ctrl+D / Cmd+D)")},{id:`${e}-undo`,kind:"button",layout:{x:6,y:0,w:1,h:1},props:B(k.undo,"undo","元に戻す (Ctrl+Z / Cmd+Z)")},{id:`${e}-redo`,kind:"button",layout:{x:7,y:0,w:1,h:1},props:B(k.redo,"redo","やり直し (Ctrl+Y / Cmd+Y)")}]}]}},plugins:[i.ButtonPlugin]}}const re=V();function H(e="clipboard"){return{props:{book:{paper:{size:{preset:u.PaperSizePreset.CUSTOM,width:{value:60,unit:"mm"},height:{value:20,unit:"mm"}},margin:{top:{value:0,unit:"mm"},right:{value:0,unit:"mm"},bottom:{value:0,unit:"mm"},left:{value:0,unit:"mm"}}},pages:[{grid:{colCount:3,rowCount:1},blocks:[{id:`${e}-copy`,kind:"button",layout:{x:0,y:0,w:1,h:1},props:B(k.copy,"copy")},{id:`${e}-paste`,kind:"button",layout:{x:1,y:0,w:1,h:1},props:B(k.paste,"paste")},{id:`${e}-duplicate`,kind:"button",layout:{x:2,y:0,w:1,h:1},props:B(k.duplicate,"duplicate")}]}]}},plugins:[i.ButtonPlugin]}}const le=H();function W(e="history"){return{props:{book:{paper:{size:{preset:u.PaperSizePreset.CUSTOM,width:{value:40,unit:"mm"},height:{value:20,unit:"mm"}},margin:{top:{value:0,unit:"mm"},right:{value:0,unit:"mm"},bottom:{value:0,unit:"mm"},left:{value:0,unit:"mm"}}},pages:[{grid:{colCount:2,rowCount:1},blocks:[{id:`${e}-undo`,kind:"button",layout:{x:0,y:0,w:1,h:1},props:B(k.undo,"undo")},{id:`${e}-redo`,kind:"button",layout:{x:1,y:0,w:1,h:1},props:B(k.redo,"redo")}]}]}},plugins:[i.ButtonPlugin]}}const se=W(),N={size:{preset:u.PaperSizePreset.CUSTOM},margin:{top:{value:0,unit:"mm"},right:{value:0,unit:"mm"},bottom:{value:0,unit:"mm"},left:{value:0,unit:"mm"}},autoHeight:!0,autoWidth:!0},ce={margin:N.margin,autoHeight:N.autoHeight,autoWidth:N.autoWidth},de={props:{book:{paper:{...ce,size:{preset:u.PaperSizePreset.CUSTOM,width:{value:160,unit:"mm"},height:{value:8,unit:"mm"}}},pages:[{grid:{colCount:12,rowCount:1,cols:{2:{value:8,unit:"mm"},5:{value:8,unit:"mm"},8:{value:8,unit:"mm"},11:{value:8,unit:"mm"}}},blocks:[{id:"layout-x-label",kind:"text",layout:{x:0,y:0,w:1,h:1},initValue:"X",behavior:{readOnly:!0},props:{horizontal:"center",vertical:"center"}},{...i.numberInputBlock("layout-x-value","layout.x"),layout:{x:1,y:0,w:1,h:1}},{id:"layout-x-stepper",kind:"stepper",layout:{x:2,y:0,w:1,h:1},props:{binding:"layout.x",step:1,min:0}},{id:"layout-y-label",kind:"text",layout:{x:3,y:0,w:1,h:1},initValue:"Y",behavior:{readOnly:!0},props:{horizontal:"center",vertical:"center"}},{...i.numberInputBlock("layout-y-value","layout.y"),layout:{x:4,y:0,w:1,h:1}},{id:"layout-y-stepper",kind:"stepper",layout:{x:5,y:0,w:1,h:1},props:{binding:"layout.y",step:1,min:0}},{id:"layout-w-label",kind:"text",layout:{x:6,y:0,w:1,h:1},initValue:"W",behavior:{readOnly:!0},props:{horizontal:"center",vertical:"center"}},{...i.numberInputBlock("layout-w-value","layout.w"),layout:{x:7,y:0,w:1,h:1}},{id:"layout-w-stepper",kind:"stepper",layout:{x:8,y:0,w:1,h:1},props:{binding:"layout.w",step:1,min:1}},{id:"layout-h-label",kind:"text",layout:{x:9,y:0,w:1,h:1},initValue:"H",behavior:{readOnly:!0},props:{horizontal:"center",vertical:"center"}},{...i.numberInputBlock("layout-h-value","layout.h"),layout:{x:10,y:0,w:1,h:1}},{id:"layout-h-stepper",kind:"stepper",layout:{x:11,y:0,w:1,h:1},props:{binding:"layout.h",step:1,min:1}}]}]}},plugins:[i.TextPlugin,i.StepperPlugin]};function $(e){const{pageIdx:t,pageCount:o}=e,n=t!==void 0?String(t+1):"—",a=o!==void 0?String(o):"—";return{props:{book:{paper:{size:{preset:u.PaperSizePreset.CUSTOM,width:{value:130,unit:"mm"},height:{value:20,unit:"mm"}},margin:{top:{value:0,unit:"mm"},right:{value:0,unit:"mm"},bottom:{value:0,unit:"mm"},left:{value:0,unit:"mm"}}},pages:[{grid:{colCount:7,rowCount:1,cols:{2:{value:10,unit:"mm"}}},blocks:[{id:"prev-page",kind:"button",layout:{x:0,y:0,w:1,h:1},props:{iconPath:k.prevPage,label:"",action:"prev_page"}},{id:"page-current",kind:"text",layout:{x:1,y:0,w:1,h:1},behavior:{readOnly:!0},initValue:n,props:{horizontal:"right",vertical:"center",fontSize:{value:25,unit:"pt"}}},{id:"page-separator",kind:"text",layout:{x:2,y:0,w:1,h:1},behavior:{readOnly:!0},initValue:"/",props:{horizontal:"center",vertical:"center",fontSize:{value:25,unit:"pt"}}},{id:"page-total",kind:"text",layout:{x:3,y:0,w:1,h:1},behavior:{readOnly:!0},initValue:a,props:{horizontal:"left",vertical:"center",fontSize:{value:25,unit:"pt"}}},{id:"next-page",kind:"button",layout:{x:4,y:0,w:1,h:1},props:{iconPath:k.nextPage,label:"",action:"next_page"}},{id:"add-page",kind:"button",layout:{x:5,y:0,w:1,h:1},props:{iconPath:k.addPage,label:"",action:"add_page"}},{id:"delete-page",kind:"button",layout:{x:6,y:0,w:1,h:1},props:{iconPath:k.deletePage,label:"",action:"delete_page"}}]}]}},plugins:[i.ButtonPlugin,i.TextPlugin]}}const ue=$({});function F(e="selection"){return{props:{book:{paper:{size:{preset:u.PaperSizePreset.CUSTOM,width:{value:60,unit:"mm"},height:{value:20,unit:"mm"}},margin:{top:{value:0,unit:"mm"},right:{value:0,unit:"mm"},bottom:{value:0,unit:"mm"},left:{value:0,unit:"mm"}}},pages:[{grid:{colCount:3,rowCount:1},blocks:[{id:`${e}-select-all`,kind:"button",layout:{x:0,y:0,w:1,h:1},props:B(k.selectAll,"select_all")},{id:`${e}-deselect-all`,kind:"button",layout:{x:1,y:0,w:1,h:1},props:B(k.deselectAll,"deselect_all")},{id:`${e}-delete`,kind:"button",layout:{x:2,y:0,w:1,h:1},props:B(k.delete,"delete")}]}]}},plugins:[i.ButtonPlugin]}}const pe=F(),U=({sections:e=[],className:t,style:o})=>r.jsx("div",{className:`${b.styles.container}${t?` ${t}`:""}`,style:o,"data-testid":"action-bar",children:e.map((n,a)=>{const l=p.isValidElement(n)&&n.key!=null?n.key:`section-${a}`;return r.jsxs(p.Fragment,{children:[a>0&&r.jsx(b.ActionBarDivider,{}),r.jsx("div",{className:b.styles.section,children:n})]},l)})});U.displayName="ActionBar";const ge="_printContainer_e2bnt_1",me="_pageBreak_e2bnt_6",L={printContainer:ge,pageBreak:me},G=p.memo(({page:e,paper:t,values:o,pluginRegistry:n})=>{const{paperPx:a,getBlockRectPx:l}=u.useGridCalc(t,e.grid,u.DEFAULT_DPI),v=o?{get:x=>o[x]??null,set:()=>{}}:void 0,d=e.blocks.filter(x=>!i.evalHiddenBinding(x.hiddenBinding,v));return r.jsx("div",{style:{position:"relative",width:`${a.canvas.width}px`,height:`${a.canvas.height}px`,backgroundColor:"#fff"},children:r.jsx(i.BlockLayer,{blocks:d,pluginRegistry:n,mode:u.NoteMode.VIEW,values:o??{},blockDefaults:e.blockDefaults,getBlockRectPx:l,showGuides:!1,showBorder:!0})})});G.displayName="PrintPage";const q=p.forwardRef(({book:e,values:t,pluginRegistry:o,printSettings:n,className:a,style:l},v)=>{const d=i.resolveEffectivePaper(e,n),x=i.buildPageCss(d,n==null?void 0:n.margin);return p.useEffect(()=>{var C,f;(C=document.getElementById("printable-note-page-style"))==null||C.remove(),(f=document.getElementById("tatamicks-book-page-style"))==null||f.remove();const m=document.createElement("style");m.id="printable-note-page-style",m.textContent=x,document.head.appendChild(m);const y=document.createElement("style");return y.id="tatamicks-book-page-style",y.textContent=x,document.head.appendChild(y),()=>{var I,E;(I=document.getElementById("printable-note-page-style"))==null||I.remove(),(E=document.getElementById("tatamicks-book-page-style"))==null||E.remove()}},[x]),r.jsx("div",{ref:v,className:[L.printContainer,a].filter(Boolean).join(" "),style:l,children:e.pages.map((m,y)=>{const C=m.id??(m.blocks.map(f=>f.id).join("_")||`page-${y}`);return r.jsx("div",{className:y<e.pages.length-1?L.pageBreak:void 0,children:r.jsx(G,{page:m,paper:d,values:t,pluginRegistry:o})},C)})})});q.displayName="NotePrint";const ye=p.memo(q);function he(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}function be(e,t){const o=document.title,n=document.createElement("iframe");n.style.cssText="position:fixed;top:0;left:0;width:100%;height:100%;visibility:hidden;z-index:-9999;border:none;",document.body.appendChild(n);const a=n.contentWindow,l=n.contentDocument??(a==null?void 0:a.document);if(!l||!a){document.body.removeChild(n);return}const v=Array.from(document.querySelectorAll("style")).map(y=>y.outerHTML).join(`
|
|
2
2
|
`),d=Array.from(document.querySelectorAll('link[rel="stylesheet"]')).map(y=>y.outerHTML).join(`
|
|
3
|
-
`),x=e.innerHTML;l.open(),l.write(`<!DOCTYPE html><html><head><meta charset="utf-8" /><title>${he(o)}</title>${d}${v}<style>*{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important;}</style></head><body>${x}</body></html>`),l.close();const m=()=>{document.body.contains(n)&&document.body.removeChild(n)};a.addEventListener("afterprint",()=>{m()}),setTimeout(()=>{a.focus(),a.print()},0)}function ve(e,t,o,n){const a=document.createElement("div");a.style.cssText="position:absolute;top:-9999px;left:-9999px;",document.body.appendChild(a);const l=Q.createRoot(a);J.flushSync(()=>{l.render(p.createElement(ye,{book:e,values:t,pluginRegistry:o,printSettings:n}))}),be(a),l.unmount(),document.body.removeChild(a)}function Z(e,t){ve(e.book,e.values,e.pluginRegistry,t)}const
|
|
3
|
+
`),x=e.innerHTML;l.open(),l.write(`<!DOCTYPE html><html><head><meta charset="utf-8" /><title>${he(o)}</title>${d}${v}<style>*{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important;}</style></head><body>${x}</body></html>`),l.close();const m=()=>{document.body.contains(n)&&document.body.removeChild(n)};a.addEventListener("afterprint",()=>{m()}),setTimeout(()=>{a.focus(),a.print()},0)}function ve(e,t,o,n){const a=document.createElement("div");a.style.cssText="position:absolute;top:-9999px;left:-9999px;",document.body.appendChild(a);const l=Q.createRoot(a);J.flushSync(()=>{l.render(p.createElement(ye,{book:e,values:t,pluginRegistry:o,printSettings:n}))}),be(a),l.unmount(),document.body.removeChild(a)}function Z(e,t){ve(e.book,e.values,e.pluginRegistry,t)}const X=({pageIdx:e,pageCount:t,onPageChange:o,onAddPage:n,onDeletePage:a,canDeletePage:l=!0})=>r.jsxs(r.Fragment,{children:[r.jsx(b.IconActionButton,{icon:r.jsx(b.ChevronLeftIcon,{"aria-hidden":"true"}),label:"前のページへ",title:"前のページへ",onClick:()=>o(Math.max(0,e-1)),disabled:e===0,preventFocusOnMouseDown:!0}),r.jsxs("span",{className:b.styles.sectionLabel,children:[e+1," / ",t]}),r.jsx(b.IconActionButton,{icon:r.jsx(b.ChevronRightIcon,{"aria-hidden":"true"}),label:"次のページへ",title:"次のページへ",onClick:()=>o(Math.min(t-1,e+1)),disabled:e>=t-1,preventFocusOnMouseDown:!0}),n!==void 0&&r.jsx(b.IconActionButton,{icon:r.jsx(b.AddPageIcon,{"aria-hidden":"true"}),label:"ページを追加",title:"ページを追加",onClick:n,preventFocusOnMouseDown:!0}),a!==void 0&&r.jsx(b.IconActionButton,{icon:r.jsx(b.DeletePageIcon,{"aria-hidden":"true"}),label:"ページを削除",title:"ページを削除",onClick:a,disabled:!l,preventFocusOnMouseDown:!0})]});X.displayName="PageNavigationSection";function Pe({context:e,onActionFeedback:t,onPrint:o}){const{actionContext:n}=e,{book:a,onBookChange:l}=e,d=e.editorState.pageIdx,x=a.pages[d]??a.pages[0],m=[r.jsx(b.CanvasActionSection,{actionContext:n,onActionFeedback:t,onPrint:o??(()=>Z(e))},"canvas"),r.jsx(b.PaperSettingsSection,{paper:a.paper,onPaperChange:y=>l({...a,paper:y})},"paper"),r.jsx(b.GridSettingsSection,{grid:x.grid,onGridChange:y=>{const C=a.pages.map((f,I)=>I===d?{...f,grid:y}:f);l({...a,pages:C})}},"grid")];return m.push(r.jsx(X,{pageIdx:d,pageCount:a.pages.length,onPageChange:y=>n.execute("goToPage",y),onAddPage:()=>n.execute("addPage"),onDeletePage:()=>n.execute("deletePage"),canDeletePage:a.pages.length>1},"page-nav")),m}const Y=({context:e,gridSize:t,isDragging:o,zIndex:n,onActionFeedback:a})=>{const{book:l,containerRef:v}=e,d=e.editorState,x=p.useRef(null),m=d.selectedBlockIds??[],y=p.useMemo(()=>{const f=new Set(l.pages.flatMap(I=>I.blocks.map(E=>E.id)));return m.filter(I=>f.has(I))},[m,l]),C=b.useSelectionBounds(v??x,y)??null;return r.jsx(b.SelectionActionBarOverlay,{selectionBoundingBox:C,isDragging:o,zIndex:n,children:r.jsx(b.SelectionActionBar,{items:b.getDefaultSelectionActionBarItems({context:e,gridSize:t,onActionFeedback:a}),onPointerDown:f=>f.stopPropagation()})})};Y.displayName="DefaultSelectionActionBarOverlay";function xe({context:e,gridSize:t,onBlockHover:o,onBlockDragChange:n,onActionFeedback:a}){return[{value:"block",label:"ブロック",content:(e.editorState.selectedBlockIds??[]).length>0?r.jsx(b.DefaultBlockPropertyPanel,{context:e,gridSize:t}):r.jsx(b.PalettePanel,{context:e})},{value:"canvas",label:"キャンバス",content:r.jsx(b.DefaultCanvasPanel,{context:e,onBlockHover:o,onBlockDragChange:n,onActionFeedback:a})},{value:"other",label:"その他",content:r.jsx(b.OtherPanel,{context:e})}]}const ke="_container_9e3fp_1",fe="_tabHeader_9e3fp_13",Se="_tabContent_9e3fp_20",j={container:ke,tabHeader:fe,tabContent:Se},K=({tabs:e,defaultTab:t,className:o})=>{var a;const n=t??((a=e[0])==null?void 0:a.value)??"";return r.jsx("div",{className:`${j.container} ${o||""}`,...u.SIDEBAR_PORTAL_PROPS,children:r.jsxs(b.Tabs,{defaultValue:n,variant:"default",children:[r.jsx(b.TabsList,{className:j.tabHeader,children:e.map(l=>r.jsx(b.TabsTrigger,{value:l.value,children:l.label},l.value))}),e.map(l=>r.jsx(b.TabsContent,{value:l.value,className:j.tabContent,children:l.content},l.value))]})})};K.displayName="Sidebar";const Ce={selectedBlockIds:[],pageIdx:0};function we({label:e,widget:t,extraPlugins:o,position:n,isDragging:a,onTitlePointerDown:l,onClose:v,onContainerPointerDown:d,style:x,context:m}){const y=p.useMemo(()=>O([...t.plugins,...o??[]]),[t.plugins,o]),C=p.useRef(null),f=p.useMemo(()=>({get:c=>(m.book,m.bindingContext.get(c)),set:(c,h)=>m.bindingContext.set(c,h)}),[m.bindingContext,m.book]),I=p.useMemo(()=>({book:t.props.book,onBookChange:()=>{},pluginRegistry:y,containerRef:C,bindingContext:f,actionContext:m.actionContext,editorState:Ce,values:{}}),[t.props.book,y,f,m.actionContext]),[E,z]=p.useState(.5),_=p.useRef({x:0,zoom:.5}),s=c=>{c.preventDefault(),c.stopPropagation(),_.current={x:c.clientX,zoom:E};const h=P=>{const S=P.clientX-_.current.x;z(Math.max(.25,Math.min(2,_.current.zoom+S/400)))},g=()=>{window.removeEventListener("pointermove",h),window.removeEventListener("pointerup",g)};window.addEventListener("pointermove",h),window.addEventListener("pointerup",g)};return r.jsx("div",{onPointerDown:d,...u.SIDEBAR_PORTAL_PROPS,style:{position:"fixed",left:n.x,top:n.y,...u.STACKING_ISOLATION_STYLE},children:r.jsxs("div",{style:{position:"relative",zIndex:a?u.Z_INDEX.FLOATING_WIDGET_DRAGGING:u.Z_INDEX.FLOATING_WIDGET,background:"#fff",border:"1px solid #d1d5db",borderRadius:6,boxShadow:a?"0 8px 24px rgba(0,0,0,0.2)":"0 2px 8px rgba(0,0,0,0.12)",...x},children:[r.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"3px 4px 3px 8px",background:"#f9fafb",borderBottom:"1px solid #e5e7eb",borderRadius:"6px 6px 0 0",cursor:"move",userSelect:"none",gap:4},onPointerDown:l,children:[r.jsx("span",{style:{fontSize:11,color:"#555",whiteSpace:"nowrap"},children:e}),r.jsx("button",{type:"button",onPointerDown:c=>c.stopPropagation(),onClick:v,style:{background:"none",border:"none",cursor:"pointer",fontSize:12,color:"#9ca3af",padding:"0 2px",lineHeight:1},children:"✕"})]}),r.jsx("div",{style:{pointerEvents:a?"none":"auto",zoom:E},children:r.jsx(i.Note,{mode:u.NoteMode.EDIT,context:I})}),r.jsx("div",{onPointerDown:s,style:{position:"absolute",bottom:0,right:0,width:14,height:14,cursor:"se-resize",background:"linear-gradient(135deg, transparent 50%, #9ca3af 50%)",borderRadius:"0 0 6px 0"}})]})})}exports.CheckboxPlugin=i.CheckboxPlugin;exports.DEFAULT_BOOK=i.DEFAULT_BOOK;exports.DEFAULT_PAGE=i.DEFAULT_PAGE;exports.Note=i.Note;exports.NoteEdit=i.NoteEdit;exports.NoteForm=i.NoteForm;exports.NoteView=i.NoteView;exports.SelectPlugin=i.SelectPlugin;exports.TextPlugin=i.TextPlugin;exports.ValidationSeverity=i.ValidationSeverity;exports.addPage=i.addPage;exports.cleanValues=i.cleanValues;exports.createBlockId=i.createBlockId;exports.ensurePageIds=i.ensurePageIds;exports.gridSettingsWidget=i.gridSettingsWidget;exports.insertPage=i.insertPage;exports.movePage=i.movePage;exports.paperSettingsWidget=i.paperSettingsWidget;exports.removePage=i.removePage;exports.setPage=i.setPage;exports.validateBook=i.validateBook;exports.DEFAULT_GRID=u.DEFAULT_GRID;exports.DEFAULT_PAPER=u.DEFAULT_PAPER;exports.DEFAULT_PAPER_MARGIN=u.DEFAULT_PAPER_MARGIN;exports.DEFAULT_PAPER_SIZES=u.DEFAULT_PAPER_SIZES;exports.LineType=u.LineType;exports.NoteMode=u.NoteMode;exports.PaperSizePreset=u.PaperSizePreset;exports.deserializeBook=u.deserializeBook;exports.deserializePage=u.deserializePage;exports.deserializeValues=u.deserializeValues;exports.isBook=u.isBook;exports.isLegacyFormSchema=u.isLegacyFormSchema;exports.migrate=u.migrate;exports.migrateBook=u.migrateBook;exports.migrateFormSchemaToBook=u.migrateFormSchemaToBook;exports.migratePage=u.migratePage;exports.parseBook=u.parseBook;exports.serializeBook=u.serializeBook;exports.serializePage=u.serializePage;exports.ActionBar=U;exports.BASE_PLUGINS=te;exports.DefaultSelectionActionBarOverlay=Y;exports.FloatingWidget=we;exports.Sidebar=K;exports.blockLayoutWidget=de;exports.canvasActionsWidget=re;exports.clipboardWidget=le;exports.createCanvasActionsWidget=V;exports.createClipboardWidget=H;exports.createHistoryWidget=W;exports.createPageNavigationWidget=$;exports.createPluginRegistry=O;exports.createSelectionDeleteWidget=F;exports.getDefaultActionBarSections=Pe;exports.getDefaultSidebarTabs=xe;exports.historyWidget=se;exports.pageNavigationWidget=ue;exports.printNote=Z;exports.selectionDeleteWidget=pe;exports.useNoteContext=ie;
|