@htmlos-next/ui 0.0.0 → 0.0.1

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.
@@ -1,7 +1,8 @@
1
1
  interface ContentProps {
2
2
  expanded?: boolean;
3
+ toolbar?: boolean;
3
4
  children: React.ReactNode;
4
5
  }
5
- export declare function Content({ expanded, children }: ContentProps): import("react/jsx-runtime").JSX.Element;
6
+ export declare function Content({ expanded, toolbar, children, }: ContentProps): import("react/jsx-runtime").JSX.Element;
6
7
  export {};
7
8
  //# sourceMappingURL=Content.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Content.d.ts","sourceRoot":"","sources":["../../../src/components/Content/Content.tsx"],"names":[],"mappings":"AAEA,UAAU,YAAY;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,wBAAgB,OAAO,CAAC,EAAE,QAAgB,EAAE,QAAQ,EAAE,EAAE,YAAY,2CAQnE"}
1
+ {"version":3,"file":"Content.d.ts","sourceRoot":"","sources":["../../../src/components/Content/Content.tsx"],"names":[],"mappings":"AAEA,UAAU,YAAY;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,wBAAgB,OAAO,CAAC,EACtB,QAAe,EACf,OAAc,EACd,QAAQ,GACT,EAAE,YAAY,2CAQd"}
@@ -1 +1 @@
1
- {"version":3,"file":"Toolbar.d.ts","sourceRoot":"","sources":["../../../src/components/Toolbar/Toolbar.tsx"],"names":[],"mappings":"AAGA,UAAU,YAAY;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,wBAAgB,OAAO,CAAC,EAAE,QAAgB,EAAE,QAAQ,EAAE,EAAE,YAAY,2CAUnE"}
1
+ {"version":3,"file":"Toolbar.d.ts","sourceRoot":"","sources":["../../../src/components/Toolbar/Toolbar.tsx"],"names":[],"mappings":"AAGA,UAAU,YAAY;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,wBAAgB,OAAO,CAAC,EAAE,QAAe,EAAE,QAAQ,EAAE,EAAE,YAAY,2CAUlE"}
@@ -1,10 +1,10 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var r=document.createElement("style");r.appendChild(document.createTextNode(`:root{--accent: #0088ff;--button-primary-bg: var(--accent);--button-primary-bg-hover: color-mix(in srgb, var(--accent), black 15%);--button-primary-bg-active: color-mix(in srgb, var(--accent), black 30%);--button-secondary-bg-hover: color-mix(in srgb, var(--accent), white 90%);--button-secondary-bg-active: color-mix(in srgb, var(--accent), white 90%);--button-disabled-bg: color-mix(in srgb, var(--accent), white 60%);--text-disabled: color-mix(in srgb, var(--text-primary), white 40%);--icon-color: var(--accent);--border-color: #0000001a;--surface-bg: #ffffff7a;--surface-bg-hover: #ffffffa1;--surface-bg-active: #ffffffd5;--card-bg: #e5e5e5;--card-bg-secondary: #f5f5f5;--overlay-bg: rgba(0, 0, 0, .4);--muted-bg: rgba(0, 0, 0, .06);--text-primary: #000000;--text-secondary: #8b8b8b;--text-inverse: #ffffff;--sidebar-width: 200px}[data-theme=dark]{--button-secondary-bg-hover: #252628;--button-secondary-bg-active: #2b2f35;--button-disabled-bg: color-mix(in srgb, var(--accent), black 60%);--text-disabled: color-mix(in srgb, var(--text-primary), black 40%);--surface-bg: #1e1e1e7a;--surface-bg-hover: #2a2a2aa1;--surface-bg-active: #3a3a3ad5;--card-bg: #1d1d1d;--card-bg-secondary: #2a2a2a;--overlay-bg: rgba(255, 255, 255, .4);--muted-bg: rgba(255, 255, 255, .12);--text-primary: #ffffff;--text-inverse: #000000;--text-secondary: #b3b3b3}body{color:var(--text-primary);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}[device-type=mobile] body{background-color:var(--card-bg-secondary)!important}*,*:before,*:after{box-sizing:border-box;-webkit-tap-highlight-color:transparent;-webkit-tap-highlight-color:rgba(0,0,0,0)}._sidebar_yoln4_1{width:var(--sidebar-width);background-color:var(--surface-bg);position:absolute;top:0;bottom:5px;height:auto;left:5px;border-radius:9px;transition:left .3s;display:flex;flex-direction:column;z-index:999;border:solid 1px var(--border-color);transform:translate(0)}._sidebarCollapsed_yoln4_18{left:calc(-1 * var(--sidebar-width) - 10px)}[device-type=mobile] ._sidebar_yoln4_1._sidebarMobile_yoln4_22{position:absolute;inset:0;width:auto;height:auto;border-radius:0;transition:transform .25s ease;background-color:var(--card-bg)}[device-type=mobile] ._sidebar_yoln4_1._sidebarMobile_yoln4_22._sidebarMobileHidden_yoln4_35{transform:translate(-105%)}._sidebarContent_yoln4_39{height:100%;padding:0 4px;display:flex;flex-direction:column;overflow-y:auto;gap:2px}._sidebarFooter_yoln4_48{padding:4px}._sidebarTitle_azx8n_1{font-size:.8rem;font-weight:600;margin:8px 8px 8px 4px;color:var(--text-secondary)}[device-type=mobile] ._sidebarTitle_azx8n_1{font-size:1.2rem}._sidebarItem_1e3ru_1{padding:6px;transition:background-color .1s;border-radius:8px;color:var(--text-primary);cursor:pointer;display:flex;flex-direction:row;justify-content:start;align-items:center;gap:8px}[device-type=mobile] ._sidebarItem_1e3ru_1{font-size:1.4rem}._sidebarItem_1e3ru_1:hover{background-color:var(--surface-bg-hover)}._sidebarItem_1e3ru_1._selected_1e3ru_22{background-color:var(--surface-bg-active);color:var(--icon-color)}._sidebarMainBtn_65l8c_1{width:calc(100% - 8px);background-color:var(--button-primary-bg);border:none;outline:none;color:var(--text-inverse);border-radius:5px;height:32px;margin:4px;font-weight:600;font-size:.9rem;transition:background-color .2s;display:flex;flex-direction:row;justify-content:center;align-items:center;gap:8px;cursor:pointer}[device-type=mobile] ._sidebarMainBtn_65l8c_1{font-size:1.4rem;height:48px}._sidebarMainBtn_65l8c_1:hover{background-color:var(--button-primary-bg-hover)}._sidebarMainBtn_65l8c_1:active{background-color:var(--button-primary-bg-active)}._popupContainer_vz8rg_1{position:fixed;top:0;left:0;width:100%;height:100%;background-color:var(--overlay-bg);z-index:9999;display:flex;justify-content:center;align-items:center;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);opacity:1;transition:.2s;pointer-events:auto}._popupClosed_vz8rg_18{opacity:0;pointer-events:none}._popup_vz8rg_1{background-color:var(--card-bg);border-radius:8px;padding:12px;width:300px;height:auto;display:flex;flex-direction:column;justify-content:space-between;gap:12px}._popupIconContainer_vz8rg_35{display:flex;justify-content:center}._popupIcon_vz8rg_35{color:var(--icon-color)}._popupContent_vz8rg_44{display:flex;flex-direction:column;gap:8px}._popupTitle_4z5vb_1{margin:0;text-align:center;font-size:large;font-weight:700}[device-type=mobile] ._popupTitle_4z5vb_1{font-size:1.4rem}._popupDescription_4ewx1_1{text-align:center}[device-type=mobile] ._popupDescription_4ewx1_1{font-size:1.4rem}._popupInput_1b42s_1{width:100%;height:32px;background-color:var(--muted-bg);border:none;border-radius:5px;padding:4px 8px;font-size:1rem;color:var(--text-primary)}[device-type=mobile] ._popupInput_1b42s_1{font-size:1.4rem;height:48px}._popupActions_84v2b_1{display:flex;gap:8px}._popupBtn_ouvtc_1{width:100%;height:32px;border:none;border-radius:5px;font-weight:600;font-size:.9rem;background-color:var(--button-primary-bg);transition:background-color .2s;color:var(--text-inverse);cursor:pointer}[device-type=mobile] ._popupBtn_ouvtc_1{font-size:1.4rem;height:48px}._popupBtn_ouvtc_1:hover{background-color:var(--button-primary-bg-hover)}._popupBtn_ouvtc_1:active{background-color:var(--button-primary-bg-active)}._popupBtn_ouvtc_1._secondary_ouvtc_27{background-color:transparent;color:var(--text-primary);border:solid 1px var(--button-primary-bg);font-weight:400}._popupBtn_ouvtc_1._secondary_ouvtc_27:hover{background-color:var(--button-secondary-bg-hover)}._popupBtn_ouvtc_1._secondary_ouvtc_27:active{background-color:var(--button-secondary-bg-active)}._toolbar_18bqr_1{position:absolute;top:0;left:calc(var(--sidebar-width) + 10px);width:calc(100% - calc(var(--sidebar-width) + 15px));height:32px;display:flex;flex-direction:row;justify-content:space-between;align-items:center;transition:left .3s,width .3s}[device-type=mobile] ._toolbar_18bqr_1{top:5px;height:48px}._toolbarExpanded_18bqr_21{left:5px;width:calc(100% - 10px)}._toolbarTitle_18bqr_26{margin:0;font-size:1rem;font-weight:600}._toolbarActions_18bqr_32{background-color:var(--surface-bg);border-radius:16px;display:flex;flex-direction:row}._toolbarActions_18bqr_32 button{width:32px;height:32px;background-color:transparent;border:none;outline:none;color:var(--icon-color);cursor:pointer}[device-type=mobile] ._toolbarTitle_1p2s8_1{font-size:1.4rem}._toolbarActions_l0jv2_1{background-color:var(--surface-bg);border-radius:16px;display:flex;flex-direction:row}[device-type=mobile] ._toolbarActions_l0jv2_1{border-radius:24px}._toolbarActions_l0jv2_1 button{background-color:transparent}._toolbarBtn_8jy1b_1{width:32px;height:32px;border:none;outline:none;padding:0;display:flex;justify-content:center;align-items:center;background-color:var(--surface-bg);border-radius:16px;color:var(--icon-color);transition:background-color .2s;cursor:pointer}._toolbarBtn_8jy1b_1:hover{background-color:var(--surface-bg-hover)}._toolbarBtn_8jy1b_1:active{background-color:var(--surface-bg-active)}[device-type=mobile] ._toolbarBtn_8jy1b_1{width:48px;height:48px;border-radius:24px}._sidebarIcon_1lib1_1{rotate:0deg;transition:rotate .3s}._sidebarIconExpanded_1lib1_6{rotate:180deg}._content_1ha8s_1{position:absolute;top:37px;left:calc(var(--sidebar-width) + 10px);height:calc(100% - 37px);width:calc(100% - calc(var(--sidebar-width) + 15px));transition:left .3s,width .3s;display:flex;flex-direction:column;justify-content:start;align-items:start;overflow:auto;padding-bottom:5px}._contentExpanded_1ha8s_18{top:37px;left:5px;width:calc(100% - 10px);height:calc(100% - 37px)}[device-type=mobile] ._content_1ha8s_1{top:58px;height:calc(100% - 58px)}._contextMenu_vtnpl_1{background-color:var(--surface-bg-active);position:fixed;border-radius:9px;transition:opacity .1s,transform .1s;display:flex;flex-direction:column;z-index:9999;border:solid 1px var(--border-color);transform:scale(.7) translate(var(--tx-start)) translateY(var(--ty-start));opacity:0;visibility:hidden;pointer-events:none;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);padding:4px}._contextMenuOpen_vtnpl_22{visibility:visible;pointer-events:auto;transform:scale(1) translate(0) translateY(0);opacity:1}._listItem_7ga7e_1{padding:10px;transition:background-color .1s;border-radius:8px;color:var(--text-primary);cursor:pointer;display:flex;flex-direction:row;justify-content:start;align-items:center;gap:8px;width:100%}[device-type=mobile] ._listItem_7ga7e_1{font-size:1.4rem}._listItem_7ga7e_1:hover{background-color:var(--surface-bg-hover)}._listItem_7ga7e_1._selected_7ga7e_23{background-color:var(--surface-bg-active)}._emptyView_1synn_1{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%;color:var(--text-secondary)}._card_zjz9h_1{background-color:var(--surface-bg);border-radius:9px;display:flex;flex-direction:column;border:solid 1px var(--border-color);padding:14px;margin:0 8px;width:calc(100% - 16px);gap:8px}._textInput_on5q4_1{width:100%;height:32px;background-color:var(--muted-bg);border:none;border-radius:5px;padding:4px 8px;font-size:.9rem;color:var(--text-primary);transition:background-color .2s}._textInput_on5q4_1:focus{outline:none;background-color:var(--surface-bg)}._textInput_on5q4_1:disabled{opacity:.5;cursor:not-allowed}._textInput_on5q4_1::placeholder{color:var(--text-secondary)}[device-type=mobile] ._textInput_on5q4_1{font-size:1.4rem;height:48px}._selectInput_3f04b_1{height:32px;background-color:var(--muted-bg);border:none;border-radius:5px;padding:4px 32px 4px 8px;font-size:.9rem;color:var(--text-primary);cursor:pointer;transition:background-color .2s;appearance:none;-webkit-appearance:none;-moz-appearance:none;background-image:url('data:image/svg+xml;utf8,<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4 6L8 10L12 6" stroke="%23666" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');background-repeat:no-repeat;background-position:right 8px center}._selectInput_3f04b_1:hover{background-color:var(--surface-bg-hover)}._selectInput_3f04b_1:focus{outline:none;background-color:var(--surface-bg)}._selectInput_3f04b_1:disabled{opacity:.5;cursor:not-allowed}[device-type=mobile] ._selectInput_3f04b_1{font-size:1.4rem;height:48px}._button_g5rur_1{width:100%;height:32px;border:none;border-radius:5px;font-weight:600;font-size:.9rem;background-color:var(--button-primary-bg);transition:background-color .2s;color:var(--text-inverse);cursor:pointer}[device-type=mobile] ._button_g5rur_1{font-size:1.4rem;height:48px}._button_g5rur_1:hover{background-color:var(--button-primary-bg-hover)}._button_g5rur_1:active{background-color:var(--button-primary-bg-active)}._button_g5rur_1._secondary_g5rur_27{background-color:transparent;color:var(--text-primary);border:solid 1px var(--button-primary-bg);font-weight:400}._button_g5rur_1._secondary_g5rur_27:hover{background-color:var(--button-secondary-bg-hover)}._button_g5rur_1._secondary_g5rur_27:active{background-color:var(--button-secondary-bg-active)}._button_g5rur_1:disabled{background-color:var(--button-disabled-bg);color:var(--text-disabled);cursor:not-allowed;opacity:.6}._balloon_1jdjr_1{position:fixed;z-index:1000;display:flex;flex-direction:column;width:256px;padding:14px;gap:8px;border-radius:9px;background-color:var(--surface-bg);border:solid 1px var(--border-color);align-items:center;box-sizing:border-box;transform-origin:50% calc(100% + 8px);transform:translate(-50%,calc(-100% - 8px)) scale(.1);filter:opacity(0);transition:.3s;pointer-events:none;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}._balloonOpen_1jdjr_22{transform:translate(-50%,calc(-100% - 8px)) scale(1);filter:opacity(1);pointer-events:auto}._balloon_1jdjr_1:after{content:"";position:absolute;bottom:-6px;left:50%;transform:translate(-50%) rotate(45deg);width:10px;height:10px;background-color:var(--surface-bg);border-right:solid 1px var(--border-color);border-bottom:solid 1px var(--border-color);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}[device-type=mobile] ._balloon_1jdjr_1{font-size:1.4rem}`)),document.head.appendChild(r)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
2
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),a=require("react"),C=require("lucide-react"),I=a.createContext({isMobile:!1}),d=()=>a.useContext(I);function B({isMobile:t,sidebar:e,children:o,accentColor:s="#0088ff"}){return a.useLayoutEffect(()=>{s&&document.documentElement.style.setProperty("--accent",s)},[s]),n.jsx(I.Provider,{value:{isMobile:t},children:n.jsxs("div",{children:[n.jsx("aside",{children:e}),n.jsx("main",{children:o})]})})}const E="_sidebar_yoln4_1",S="_sidebarCollapsed_yoln4_18",g="_sidebarMobile_yoln4_22",D="_sidebarMobileHidden_yoln4_35",P="_sidebarContent_yoln4_39",A="_sidebarFooter_yoln4_48",u={sidebar:E,sidebarCollapsed:S,sidebarMobile:g,sidebarMobileHidden:D,sidebarContent:P,sidebarFooter:A};function z({open:t,footer:e,children:o}){const{isMobile:s}=d();return n.jsxs("div",{className:`
1
+ (function(){"use strict";try{if(typeof document<"u"){var r=document.createElement("style");r.appendChild(document.createTextNode(`:root{--accent: #0088ff;--button-primary-bg: var(--accent);--button-primary-bg-hover: color-mix(in srgb, var(--accent), black 15%);--button-primary-bg-active: color-mix(in srgb, var(--accent), black 30%);--button-secondary-bg-hover: color-mix(in srgb, var(--accent), white 90%);--button-secondary-bg-active: color-mix(in srgb, var(--accent), white 90%);--button-disabled-bg: color-mix(in srgb, var(--accent), white 60%);--text-disabled: color-mix(in srgb, var(--text-primary), white 40%);--icon-color: var(--accent);--border-color: #0000001a;--surface-bg: #ffffff7a;--surface-bg-hover: #ffffffa1;--surface-bg-active: #ffffffd5;--card-bg: #e5e5e5;--card-bg-secondary: #f5f5f5;--overlay-bg: rgba(0, 0, 0, .4);--muted-bg: rgba(0, 0, 0, .06);--text-primary: #000000;--text-secondary: #8b8b8b;--text-inverse: #ffffff;--sidebar-width: 200px}[data-theme=dark]{--button-secondary-bg-hover: #252628;--button-secondary-bg-active: #2b2f35;--button-disabled-bg: color-mix(in srgb, var(--accent), black 60%);--text-disabled: color-mix(in srgb, var(--text-primary), black 40%);--surface-bg: #1e1e1e7a;--surface-bg-hover: #2a2a2aa1;--surface-bg-active: #3a3a3ad5;--card-bg: #1d1d1d;--card-bg-secondary: #2a2a2a;--overlay-bg: rgba(255, 255, 255, .4);--muted-bg: rgba(255, 255, 255, .12);--text-primary: #ffffff;--text-inverse: #000000;--text-secondary: #b3b3b3}body{color:var(--text-primary);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}[device-type=mobile] body{background-color:var(--card-bg-secondary)!important}*,*:before,*:after{box-sizing:border-box;-webkit-tap-highlight-color:transparent;-webkit-tap-highlight-color:rgba(0,0,0,0)}._sidebar_yoln4_1{width:var(--sidebar-width);background-color:var(--surface-bg);position:absolute;top:0;bottom:5px;height:auto;left:5px;border-radius:9px;transition:left .3s;display:flex;flex-direction:column;z-index:999;border:solid 1px var(--border-color);transform:translate(0)}._sidebarCollapsed_yoln4_18{left:calc(-1 * var(--sidebar-width) - 10px)}[device-type=mobile] ._sidebar_yoln4_1._sidebarMobile_yoln4_22{position:absolute;inset:0;width:auto;height:auto;border-radius:0;transition:transform .25s ease;background-color:var(--card-bg)}[device-type=mobile] ._sidebar_yoln4_1._sidebarMobile_yoln4_22._sidebarMobileHidden_yoln4_35{transform:translate(-105%)}._sidebarContent_yoln4_39{height:100%;padding:0 4px;display:flex;flex-direction:column;overflow-y:auto;gap:2px}._sidebarFooter_yoln4_48{padding:4px}._sidebarTitle_azx8n_1{font-size:.8rem;font-weight:600;margin:8px 8px 8px 4px;color:var(--text-secondary)}[device-type=mobile] ._sidebarTitle_azx8n_1{font-size:1.2rem}._sidebarItem_1e3ru_1{padding:6px;transition:background-color .1s;border-radius:8px;color:var(--text-primary);cursor:pointer;display:flex;flex-direction:row;justify-content:start;align-items:center;gap:8px}[device-type=mobile] ._sidebarItem_1e3ru_1{font-size:1.4rem}._sidebarItem_1e3ru_1:hover{background-color:var(--surface-bg-hover)}._sidebarItem_1e3ru_1._selected_1e3ru_22{background-color:var(--surface-bg-active);color:var(--icon-color)}._sidebarMainBtn_65l8c_1{width:calc(100% - 8px);background-color:var(--button-primary-bg);border:none;outline:none;color:var(--text-inverse);border-radius:5px;height:32px;margin:4px;font-weight:600;font-size:.9rem;transition:background-color .2s;display:flex;flex-direction:row;justify-content:center;align-items:center;gap:8px;cursor:pointer}[device-type=mobile] ._sidebarMainBtn_65l8c_1{font-size:1.4rem;height:48px}._sidebarMainBtn_65l8c_1:hover{background-color:var(--button-primary-bg-hover)}._sidebarMainBtn_65l8c_1:active{background-color:var(--button-primary-bg-active)}._popupContainer_vz8rg_1{position:fixed;top:0;left:0;width:100%;height:100%;background-color:var(--overlay-bg);z-index:9999;display:flex;justify-content:center;align-items:center;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);opacity:1;transition:.2s;pointer-events:auto}._popupClosed_vz8rg_18{opacity:0;pointer-events:none}._popup_vz8rg_1{background-color:var(--card-bg);border-radius:8px;padding:12px;width:300px;height:auto;display:flex;flex-direction:column;justify-content:space-between;gap:12px}._popupIconContainer_vz8rg_35{display:flex;justify-content:center}._popupIcon_vz8rg_35{color:var(--icon-color)}._popupContent_vz8rg_44{display:flex;flex-direction:column;gap:8px}._popupTitle_4z5vb_1{margin:0;text-align:center;font-size:large;font-weight:700}[device-type=mobile] ._popupTitle_4z5vb_1{font-size:1.4rem}._popupDescription_4ewx1_1{text-align:center}[device-type=mobile] ._popupDescription_4ewx1_1{font-size:1.4rem}._popupInput_1b42s_1{width:100%;height:32px;background-color:var(--muted-bg);border:none;border-radius:5px;padding:4px 8px;font-size:1rem;color:var(--text-primary)}[device-type=mobile] ._popupInput_1b42s_1{font-size:1.4rem;height:48px}._popupActions_84v2b_1{display:flex;gap:8px}._popupBtn_ouvtc_1{width:100%;height:32px;border:none;border-radius:5px;font-weight:600;font-size:.9rem;background-color:var(--button-primary-bg);transition:background-color .2s;color:var(--text-inverse);cursor:pointer}[device-type=mobile] ._popupBtn_ouvtc_1{font-size:1.4rem;height:48px}._popupBtn_ouvtc_1:hover{background-color:var(--button-primary-bg-hover)}._popupBtn_ouvtc_1:active{background-color:var(--button-primary-bg-active)}._popupBtn_ouvtc_1._secondary_ouvtc_27{background-color:transparent;color:var(--text-primary);border:solid 1px var(--button-primary-bg);font-weight:400}._popupBtn_ouvtc_1._secondary_ouvtc_27:hover{background-color:var(--button-secondary-bg-hover)}._popupBtn_ouvtc_1._secondary_ouvtc_27:active{background-color:var(--button-secondary-bg-active)}._toolbar_18bqr_1{position:absolute;top:0;left:calc(var(--sidebar-width) + 10px);width:calc(100% - calc(var(--sidebar-width) + 15px));height:32px;display:flex;flex-direction:row;justify-content:space-between;align-items:center;transition:left .3s,width .3s}[device-type=mobile] ._toolbar_18bqr_1{top:5px;height:48px}._toolbarExpanded_18bqr_21{left:5px;width:calc(100% - 10px)}._toolbarTitle_18bqr_26{margin:0;font-size:1rem;font-weight:600}._toolbarActions_18bqr_32{background-color:var(--surface-bg);border-radius:16px;display:flex;flex-direction:row}._toolbarActions_18bqr_32 button{width:32px;height:32px;background-color:transparent;border:none;outline:none;color:var(--icon-color);cursor:pointer}[device-type=mobile] ._toolbarTitle_1p2s8_1{font-size:1.4rem}._toolbarActions_l0jv2_1{background-color:var(--surface-bg);border-radius:16px;display:flex;flex-direction:row}[device-type=mobile] ._toolbarActions_l0jv2_1{border-radius:24px}._toolbarActions_l0jv2_1 button{background-color:transparent}._toolbarBtn_8jy1b_1{width:32px;height:32px;border:none;outline:none;padding:0;display:flex;justify-content:center;align-items:center;background-color:var(--surface-bg);border-radius:16px;color:var(--icon-color);transition:background-color .2s;cursor:pointer}._toolbarBtn_8jy1b_1:hover{background-color:var(--surface-bg-hover)}._toolbarBtn_8jy1b_1:active{background-color:var(--surface-bg-active)}[device-type=mobile] ._toolbarBtn_8jy1b_1{width:48px;height:48px;border-radius:24px}._sidebarIcon_1lib1_1{rotate:0deg;transition:rotate .3s}._sidebarIconExpanded_1lib1_6{rotate:180deg}._content_1naqr_1{position:absolute;top:0;left:calc(var(--sidebar-width) + 10px);height:100%;width:calc(100% - calc(var(--sidebar-width) + 15px));transition:left .3s,width .3s;display:flex;flex-direction:column;justify-content:start;align-items:start;overflow:auto;padding-bottom:5px}._contentExpanded_1naqr_18{left:5px;width:calc(100% - 10px)}._toolbarPresent_1naqr_23{top:37px;height:calc(100% - 37px)}[device-type=mobile] ._content_1naqr_1._toolbarPresent_1naqr_23{top:58px;height:calc(100% - 58px)}._contextMenu_vtnpl_1{background-color:var(--surface-bg-active);position:fixed;border-radius:9px;transition:opacity .1s,transform .1s;display:flex;flex-direction:column;z-index:9999;border:solid 1px var(--border-color);transform:scale(.7) translate(var(--tx-start)) translateY(var(--ty-start));opacity:0;visibility:hidden;pointer-events:none;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);padding:4px}._contextMenuOpen_vtnpl_22{visibility:visible;pointer-events:auto;transform:scale(1) translate(0) translateY(0);opacity:1}._listItem_7ga7e_1{padding:10px;transition:background-color .1s;border-radius:8px;color:var(--text-primary);cursor:pointer;display:flex;flex-direction:row;justify-content:start;align-items:center;gap:8px;width:100%}[device-type=mobile] ._listItem_7ga7e_1{font-size:1.4rem}._listItem_7ga7e_1:hover{background-color:var(--surface-bg-hover)}._listItem_7ga7e_1._selected_7ga7e_23{background-color:var(--surface-bg-active)}._emptyView_1synn_1{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%;color:var(--text-secondary)}._card_zjz9h_1{background-color:var(--surface-bg);border-radius:9px;display:flex;flex-direction:column;border:solid 1px var(--border-color);padding:14px;margin:0 8px;width:calc(100% - 16px);gap:8px}._textInput_on5q4_1{width:100%;height:32px;background-color:var(--muted-bg);border:none;border-radius:5px;padding:4px 8px;font-size:.9rem;color:var(--text-primary);transition:background-color .2s}._textInput_on5q4_1:focus{outline:none;background-color:var(--surface-bg)}._textInput_on5q4_1:disabled{opacity:.5;cursor:not-allowed}._textInput_on5q4_1::placeholder{color:var(--text-secondary)}[device-type=mobile] ._textInput_on5q4_1{font-size:1.4rem;height:48px}._selectInput_3f04b_1{height:32px;background-color:var(--muted-bg);border:none;border-radius:5px;padding:4px 32px 4px 8px;font-size:.9rem;color:var(--text-primary);cursor:pointer;transition:background-color .2s;appearance:none;-webkit-appearance:none;-moz-appearance:none;background-image:url('data:image/svg+xml;utf8,<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4 6L8 10L12 6" stroke="%23666" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');background-repeat:no-repeat;background-position:right 8px center}._selectInput_3f04b_1:hover{background-color:var(--surface-bg-hover)}._selectInput_3f04b_1:focus{outline:none;background-color:var(--surface-bg)}._selectInput_3f04b_1:disabled{opacity:.5;cursor:not-allowed}[device-type=mobile] ._selectInput_3f04b_1{font-size:1.4rem;height:48px}._button_g5rur_1{width:100%;height:32px;border:none;border-radius:5px;font-weight:600;font-size:.9rem;background-color:var(--button-primary-bg);transition:background-color .2s;color:var(--text-inverse);cursor:pointer}[device-type=mobile] ._button_g5rur_1{font-size:1.4rem;height:48px}._button_g5rur_1:hover{background-color:var(--button-primary-bg-hover)}._button_g5rur_1:active{background-color:var(--button-primary-bg-active)}._button_g5rur_1._secondary_g5rur_27{background-color:transparent;color:var(--text-primary);border:solid 1px var(--button-primary-bg);font-weight:400}._button_g5rur_1._secondary_g5rur_27:hover{background-color:var(--button-secondary-bg-hover)}._button_g5rur_1._secondary_g5rur_27:active{background-color:var(--button-secondary-bg-active)}._button_g5rur_1:disabled{background-color:var(--button-disabled-bg);color:var(--text-disabled);cursor:not-allowed;opacity:.6}._balloon_1jdjr_1{position:fixed;z-index:1000;display:flex;flex-direction:column;width:256px;padding:14px;gap:8px;border-radius:9px;background-color:var(--surface-bg);border:solid 1px var(--border-color);align-items:center;box-sizing:border-box;transform-origin:50% calc(100% + 8px);transform:translate(-50%,calc(-100% - 8px)) scale(.1);filter:opacity(0);transition:.3s;pointer-events:none;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}._balloonOpen_1jdjr_22{transform:translate(-50%,calc(-100% - 8px)) scale(1);filter:opacity(1);pointer-events:auto}._balloon_1jdjr_1:after{content:"";position:absolute;bottom:-6px;left:50%;transform:translate(-50%) rotate(45deg);width:10px;height:10px;background-color:var(--surface-bg);border-right:solid 1px var(--border-color);border-bottom:solid 1px var(--border-color);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}[device-type=mobile] ._balloon_1jdjr_1{font-size:1.4rem}`)),document.head.appendChild(r)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
2
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),l=require("react"),C=require("lucide-react"),I=l.createContext({isMobile:!1}),d=()=>l.useContext(I);function B({isMobile:t,sidebar:e,children:o,accentColor:s="#0088ff"}){return l.useLayoutEffect(()=>{s&&document.documentElement.style.setProperty("--accent",s)},[s]),n.jsx(I.Provider,{value:{isMobile:t},children:n.jsxs("div",{children:[n.jsx("aside",{children:e}),n.jsx("main",{children:o})]})})}const E="_sidebar_yoln4_1",S="_sidebarCollapsed_yoln4_18",g="_sidebarMobile_yoln4_22",P="_sidebarMobileHidden_yoln4_35",D="_sidebarContent_yoln4_39",A="_sidebarFooter_yoln4_48",u={sidebar:E,sidebarCollapsed:S,sidebarMobile:g,sidebarMobileHidden:P,sidebarContent:D,sidebarFooter:A};function z({open:t,footer:e,children:o}){const{isMobile:s}=d();return n.jsxs("div",{className:`
3
3
  ${u.sidebar}
4
4
  ${t?"":u.sidebarCollapsed}
5
5
  ${s?u.sidebarMobile:""}
6
- ${!t&&s?u.sidebarMobileHidden:""}`,children:[n.jsx("div",{className:u.sidebarContent,children:o}),e&&n.jsx("div",{className:u.sidebarFooter,children:e})]})}const w="_sidebarTitle_azx8n_1",R={sidebarTitle:w};function O({children:t}){return n.jsx("h2",{className:R.sidebarTitle,children:t})}const q="_sidebarItem_1e3ru_1",V="_selected_1e3ru_22",y={sidebarItem:q,selected:V};function k({onClick:t,onContextMenu:e,selected:o=!1,children:s}){const r=a.useRef(null),l=c=>{r.current=setTimeout(()=>{e&&(c.preventDefault(),e(c))},500)},i=()=>{r.current&&clearTimeout(r.current)};return n.jsx("div",{className:`${y.sidebarItem} ${o?y.selected:""}`,onClick:t,onContextMenu:c=>{c.preventDefault(),e&&e(c)},onTouchStart:l,onTouchEnd:i,onTouchMove:i,children:s})}const H="_sidebarMainBtn_65l8c_1",F={sidebarMainBtn:H};function L({onClick:t,children:e}){return n.jsx("button",{className:F.sidebarMainBtn,onClick:t,children:e})}const W="_popupContainer_vz8rg_1",K="_popupClosed_vz8rg_18",G="_popup_vz8rg_1",J="_popupContent_vz8rg_44",b={popupContainer:W,popupClosed:K,popup:G,popupContent:J};function Q({open:t=!1,children:e}){return n.jsx("div",{className:`${b.popupContainer} ${t?"":b.popupClosed}`,children:n.jsx("div",{className:b.popup,children:n.jsx("div",{className:b.popupContent,children:e})})})}const U="_popupTitle_4z5vb_1",X={popupTitle:U};function Y({children:t}){return n.jsx("span",{className:X.popupTitle,children:t})}const Z="_popupDescription_4ewx1_1",tt={popupDescription:Z};function et({children:t}){return n.jsx("span",{className:tt.popupDescription,children:t})}const ot="_popupInput_1b42s_1",nt={popupInput:ot},st=a.forwardRef(({placeholder:t="Enter text...",value:e,onChange:o,onSubmit:s,autoFocus:r},l)=>{const i=a.useRef(null),c=l||i;return a.useEffect(()=>{r&&c.current&&c.current.focus()},[r,c]),n.jsx("input",{ref:c,type:"text",className:nt.popupInput,placeholder:t,value:e,onChange:p=>o?.(p.target.value),onKeyDown:p=>{p.key==="Enter"&&s&&s(e||"")}})}),ct="_popupActions_84v2b_1",rt={popupActions:ct};function it({orientation:t="vertical",children:e}){return n.jsx("div",{className:rt.popupActions,style:{flexDirection:t=="vertical"?"column":"row"},children:e})}const lt="_popupBtn_ouvtc_1",at="_secondary_ouvtc_27",m={popupBtn:lt,secondary:at};function pt({type:t="primary",onClick:e,children:o}){return n.jsx("button",{className:`${m.popupBtn} ${t=="secondary"?m.secondary:""}`,onClick:e,children:o})}const ut="_toolbar_18bqr_1",dt="_toolbarExpanded_18bqr_21",f={toolbar:ut,toolbarExpanded:dt};function bt({expanded:t=!1,children:e}){const{isMobile:o}=d();return n.jsx("div",{className:`${f.toolbar} ${t||o?f.toolbarExpanded:""} ${o?f.toolbarMobile:""}`,children:e})}const _t="_toolbarTitle_1p2s8_1",ft={toolbarTitle:_t};function xt({children:t}){return n.jsx("h3",{className:ft.toolbarTitle,children:t})}const yt="_toolbarActions_l0jv2_1",mt={toolbarActions:yt};function $t({children:t}){return n.jsx("div",{className:mt.toolbarActions,children:t})}const jt="_toolbarBtn_8jy1b_1",vt={toolbarBtn:jt};function M({onClick:t,children:e}){return n.jsx("button",{onClick:o=>{o.preventDefault(),t&&t(o)},className:vt.toolbarBtn,children:e})}const Tt="_sidebarIcon_1lib1_1",ht="_sidebarIconExpanded_1lib1_6",$={sidebarIcon:Tt,sidebarIconExpanded:ht};function It({onToggleSidebar:t,expanded:e=!1}){const{isMobile:o}=d();return n.jsx(M,{onClick:t,children:n.jsx(C.Menu,{size:o?24:18,className:`${$.sidebarIcon} ${e?$.sidebarIconExpanded:""}`})})}const Mt="_content_1ha8s_1",Nt="_contentExpanded_1ha8s_18",j={content:Mt,contentExpanded:Nt};function Ct({expanded:t=!1,children:e}){return n.jsx("div",{className:`${j.content} ${t?j.contentExpanded:""}`,children:e})}const Bt="_contextMenu_vtnpl_1",Et="_contextMenuOpen_vtnpl_22",x={contextMenu:Bt,contextMenuOpen:Et};function St({open:t,x:e=20,y:o=20,from:s="top-left",children:r}){const{isMobile:l}=d(),i={"top-left":{tx:"-30%",ty:"-30%"},"top-right":{tx:"30%",ty:"-30%"},"bottom-left":{tx:"-30%",ty:"30%"},"bottom-right":{tx:"30%",ty:"30%"}},{tx:c,ty:p}=i[s],_={top:s.includes("top")?`${o}px`:"auto",bottom:s.includes("bottom")?`${o}px`:"auto",left:s.includes("left")?`${e}px`:"auto",right:s.includes("right")?`${e}px`:"auto","--tx-start":c,"--ty-start":p};return n.jsx("div",{className:`
7
- ${x.contextMenu}
8
- ${t?x.contextMenuOpen:""}
9
- ${l?x.contextMenuMobile:""}
10
- `,style:_,children:r})}const gt="_listItem_7ga7e_1",Dt="_selected_7ga7e_23",v={listItem:gt,selected:Dt};function Pt({onClick:t,onContextMenu:e,selected:o=!1,children:s}){const r=a.useRef(null),l=c=>{r.current=setTimeout(()=>{e&&(c.preventDefault(),e(c))},500)},i=()=>{r.current&&clearTimeout(r.current)};return n.jsx("div",{className:`${v.listItem} ${o?v.selected:""}`,onClick:t,onContextMenu:c=>{c.preventDefault(),e&&e(c)},onTouchStart:l,onTouchEnd:i,onTouchMove:i,children:s})}function N({icon:t,size:e="default",color:o="default",className:s}){const{isMobile:r}=d(),l=e==="default"?r?24:18:e,i=o==="selected"?"var(--icon-color)":o;return o==="default"?n.jsx(t,{size:l,className:s,strokeWidth:r?2.5:2}):n.jsx(t,{size:l,color:i,className:s,strokeWidth:r?2.5:2})}const At="_emptyView_1synn_1",zt={emptyView:At};function wt({icon:t,label:e}){const{isMobile:o}=d(),s=o?64:48;return n.jsxs("div",{className:zt.emptyView,children:[n.jsx(N,{icon:t,size:s,color:"var(--text-secondary)"}),n.jsx("h2",{children:e})]})}const Rt="_card_zjz9h_1",Ot={card:Rt};function qt({children:t}){return n.jsx("div",{className:Ot.card,children:t})}const Vt="_textInput_on5q4_1",kt={textInput:Vt},Ht=a.forwardRef(({placeholder:t,value:e,onChange:o,onFocus:s,onBlur:r,disabled:l=!1,type:i="text",className:c},p)=>n.jsx("input",{ref:p,type:i,className:`${kt.textInput} ${c||""}`,placeholder:t,value:e,onChange:_=>o?.(_.target.value),onFocus:s,onBlur:r,disabled:l})),Ft="_selectInput_3f04b_1",Lt={selectInput:Ft},Wt=a.forwardRef(({className:t,children:e,...o},s)=>n.jsx("select",{ref:s,className:`${Lt.selectInput} ${t||""}`,...o,children:e})),Kt="_button_g5rur_1",Gt="_secondary_g5rur_27",T={button:Kt,secondary:Gt};function Jt({disabled:t=!1,type:e="primary",onClick:o,children:s}){return n.jsx("button",{className:`${T.button} ${e=="secondary"?T.secondary:""}`,onClick:o,disabled:t,children:s})}const Qt="_balloon_1jdjr_1",Ut="_balloonOpen_1jdjr_22",h={balloon:Qt,balloonOpen:Ut};function Xt({open:t,x:e,y:o,children:s,className:r,style:l,...i}){const c={};typeof e=="number"&&(c.left=e),typeof o=="number"&&(c.top=o);const p=[h.balloon,t?h.balloonOpen:"",r??""].filter(Boolean).join(" ");return n.jsx("div",{...i,className:p,style:{...l,...c},children:s})}exports.AppShell=B;exports.Balloon=Xt;exports.Button=Jt;exports.Card=qt;exports.Content=Ct;exports.ContextMenu=St;exports.EmptyView=wt;exports.Icon=N;exports.ListItem=Pt;exports.Popup=Q;exports.PopupActions=it;exports.PopupButton=pt;exports.PopupDescription=et;exports.PopupInput=st;exports.PopupTitle=Y;exports.SelectInput=Wt;exports.Sidebar=z;exports.SidebarButton=L;exports.SidebarItem=k;exports.SidebarTitle=O;exports.TextInput=Ht;exports.Toolbar=bt;exports.ToolbarActions=$t;exports.ToolbarButton=M;exports.ToolbarExpandSidebarButton=It;exports.ToolbarTitle=xt;
6
+ ${!t&&s?u.sidebarMobileHidden:""}`,children:[n.jsx("div",{className:u.sidebarContent,children:o}),e&&n.jsx("div",{className:u.sidebarFooter,children:e})]})}const w="_sidebarTitle_azx8n_1",R={sidebarTitle:w};function q({children:t}){return n.jsx("h2",{className:R.sidebarTitle,children:t})}const O="_sidebarItem_1e3ru_1",V="_selected_1e3ru_22",m={sidebarItem:O,selected:V};function k({onClick:t,onContextMenu:e,selected:o=!1,children:s}){const c=l.useRef(null),i=r=>{c.current=setTimeout(()=>{e&&(r.preventDefault(),e(r))},500)},a=()=>{c.current&&clearTimeout(c.current)};return n.jsx("div",{className:`${m.sidebarItem} ${o?m.selected:""}`,onClick:t,onContextMenu:r=>{r.preventDefault(),e&&e(r)},onTouchStart:i,onTouchEnd:a,onTouchMove:a,children:s})}const H="_sidebarMainBtn_65l8c_1",F={sidebarMainBtn:H};function L({onClick:t,children:e}){return n.jsx("button",{className:F.sidebarMainBtn,onClick:t,children:e})}const W="_popupContainer_vz8rg_1",K="_popupClosed_vz8rg_18",G="_popup_vz8rg_1",J="_popupContent_vz8rg_44",b={popupContainer:W,popupClosed:K,popup:G,popupContent:J};function Q({open:t=!1,children:e}){return n.jsx("div",{className:`${b.popupContainer} ${t?"":b.popupClosed}`,children:n.jsx("div",{className:b.popup,children:n.jsx("div",{className:b.popupContent,children:e})})})}const U="_popupTitle_4z5vb_1",X={popupTitle:U};function Y({children:t}){return n.jsx("span",{className:X.popupTitle,children:t})}const Z="_popupDescription_4ewx1_1",tt={popupDescription:Z};function et({children:t}){return n.jsx("span",{className:tt.popupDescription,children:t})}const ot="_popupInput_1b42s_1",nt={popupInput:ot},st=l.forwardRef(({placeholder:t="Enter text...",value:e,onChange:o,onSubmit:s,autoFocus:c},i)=>{const a=l.useRef(null),r=i||a;return l.useEffect(()=>{c&&r.current&&r.current.focus()},[c,r]),n.jsx("input",{ref:r,type:"text",className:nt.popupInput,placeholder:t,value:e,onChange:p=>o?.(p.target.value),onKeyDown:p=>{p.key==="Enter"&&s&&s(e||"")}})}),rt="_popupActions_84v2b_1",ct={popupActions:rt};function at({orientation:t="vertical",children:e}){return n.jsx("div",{className:ct.popupActions,style:{flexDirection:t=="vertical"?"column":"row"},children:e})}const it="_popupBtn_ouvtc_1",lt="_secondary_ouvtc_27",$={popupBtn:it,secondary:lt};function pt({type:t="primary",onClick:e,children:o}){return n.jsx("button",{className:`${$.popupBtn} ${t=="secondary"?$.secondary:""}`,onClick:e,children:o})}const ut="_toolbar_18bqr_1",dt="_toolbarExpanded_18bqr_21",f={toolbar:ut,toolbarExpanded:dt};function bt({expanded:t=!0,children:e}){const{isMobile:o}=d();return n.jsx("div",{className:`${f.toolbar} ${t||o?f.toolbarExpanded:""} ${o?f.toolbarMobile:""}`,children:e})}const _t="_toolbarTitle_1p2s8_1",ft={toolbarTitle:_t};function xt({children:t}){return n.jsx("h3",{className:ft.toolbarTitle,children:t})}const yt="_toolbarActions_l0jv2_1",mt={toolbarActions:yt};function $t({children:t}){return n.jsx("div",{className:mt.toolbarActions,children:t})}const jt="_toolbarBtn_8jy1b_1",vt={toolbarBtn:jt};function M({onClick:t,children:e}){return n.jsx("button",{onClick:o=>{o.preventDefault(),t&&t(o)},className:vt.toolbarBtn,children:e})}const Tt="_sidebarIcon_1lib1_1",ht="_sidebarIconExpanded_1lib1_6",j={sidebarIcon:Tt,sidebarIconExpanded:ht};function It({onToggleSidebar:t,expanded:e=!1}){const{isMobile:o}=d();return n.jsx(M,{onClick:t,children:n.jsx(C.Menu,{size:o?24:18,className:`${j.sidebarIcon} ${e?j.sidebarIconExpanded:""}`})})}const Mt="_content_1naqr_1",Nt="_contentExpanded_1naqr_18",Ct="_toolbarPresent_1naqr_23",x={content:Mt,contentExpanded:Nt,toolbarPresent:Ct};function Bt({expanded:t=!0,toolbar:e=!0,children:o}){return n.jsx("div",{className:`${x.content} ${t?x.contentExpanded:""} ${e?x.toolbarPresent:""}`,children:o})}const Et="_contextMenu_vtnpl_1",St="_contextMenuOpen_vtnpl_22",y={contextMenu:Et,contextMenuOpen:St};function gt({open:t,x:e=20,y:o=20,from:s="top-left",children:c}){const{isMobile:i}=d(),a={"top-left":{tx:"-30%",ty:"-30%"},"top-right":{tx:"30%",ty:"-30%"},"bottom-left":{tx:"-30%",ty:"30%"},"bottom-right":{tx:"30%",ty:"30%"}},{tx:r,ty:p}=a[s],_={top:s.includes("top")?`${o}px`:"auto",bottom:s.includes("bottom")?`${o}px`:"auto",left:s.includes("left")?`${e}px`:"auto",right:s.includes("right")?`${e}px`:"auto","--tx-start":r,"--ty-start":p};return n.jsx("div",{className:`
7
+ ${y.contextMenu}
8
+ ${t?y.contextMenuOpen:""}
9
+ ${i?y.contextMenuMobile:""}
10
+ `,style:_,children:c})}const Pt="_listItem_7ga7e_1",Dt="_selected_7ga7e_23",v={listItem:Pt,selected:Dt};function At({onClick:t,onContextMenu:e,selected:o=!1,children:s}){const c=l.useRef(null),i=r=>{c.current=setTimeout(()=>{e&&(r.preventDefault(),e(r))},500)},a=()=>{c.current&&clearTimeout(c.current)};return n.jsx("div",{className:`${v.listItem} ${o?v.selected:""}`,onClick:t,onContextMenu:r=>{r.preventDefault(),e&&e(r)},onTouchStart:i,onTouchEnd:a,onTouchMove:a,children:s})}function N({icon:t,size:e="default",color:o="default",className:s}){const{isMobile:c}=d(),i=e==="default"?c?24:18:e,a=o==="selected"?"var(--icon-color)":o;return o==="default"?n.jsx(t,{size:i,className:s,strokeWidth:c?2.5:2}):n.jsx(t,{size:i,color:a,className:s,strokeWidth:c?2.5:2})}const zt="_emptyView_1synn_1",wt={emptyView:zt};function Rt({icon:t,label:e}){const{isMobile:o}=d(),s=o?64:48;return n.jsxs("div",{className:wt.emptyView,children:[n.jsx(N,{icon:t,size:s,color:"var(--text-secondary)"}),n.jsx("h2",{children:e})]})}const qt="_card_zjz9h_1",Ot={card:qt};function Vt({children:t}){return n.jsx("div",{className:Ot.card,children:t})}const kt="_textInput_on5q4_1",Ht={textInput:kt},Ft=l.forwardRef(({placeholder:t,value:e,onChange:o,onFocus:s,onBlur:c,disabled:i=!1,type:a="text",className:r},p)=>n.jsx("input",{ref:p,type:a,className:`${Ht.textInput} ${r||""}`,placeholder:t,value:e,onChange:_=>o?.(_.target.value),onFocus:s,onBlur:c,disabled:i})),Lt="_selectInput_3f04b_1",Wt={selectInput:Lt},Kt=l.forwardRef(({className:t,children:e,...o},s)=>n.jsx("select",{ref:s,className:`${Wt.selectInput} ${t||""}`,...o,children:e})),Gt="_button_g5rur_1",Jt="_secondary_g5rur_27",T={button:Gt,secondary:Jt};function Qt({disabled:t=!1,type:e="primary",onClick:o,children:s}){return n.jsx("button",{className:`${T.button} ${e=="secondary"?T.secondary:""}`,onClick:o,disabled:t,children:s})}const Ut="_balloon_1jdjr_1",Xt="_balloonOpen_1jdjr_22",h={balloon:Ut,balloonOpen:Xt};function Yt({open:t,x:e,y:o,children:s,className:c,style:i,...a}){const r={};typeof e=="number"&&(r.left=e),typeof o=="number"&&(r.top=o);const p=[h.balloon,t?h.balloonOpen:"",c??""].filter(Boolean).join(" ");return n.jsx("div",{...a,className:p,style:{...i,...r},children:s})}exports.AppShell=B;exports.Balloon=Yt;exports.Button=Qt;exports.Card=Vt;exports.Content=Bt;exports.ContextMenu=gt;exports.EmptyView=Rt;exports.Icon=N;exports.ListItem=At;exports.Popup=Q;exports.PopupActions=at;exports.PopupButton=pt;exports.PopupDescription=et;exports.PopupInput=st;exports.PopupTitle=Y;exports.SelectInput=Kt;exports.Sidebar=z;exports.SidebarButton=L;exports.SidebarItem=k;exports.SidebarTitle=q;exports.TextInput=Ft;exports.Toolbar=bt;exports.ToolbarActions=$t;exports.ToolbarButton=M;exports.ToolbarExpandSidebarButton=It;exports.ToolbarTitle=xt;
package/dist/htmlos-ui.js CHANGED
@@ -1,9 +1,9 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var r=document.createElement("style");r.appendChild(document.createTextNode(`:root{--accent: #0088ff;--button-primary-bg: var(--accent);--button-primary-bg-hover: color-mix(in srgb, var(--accent), black 15%);--button-primary-bg-active: color-mix(in srgb, var(--accent), black 30%);--button-secondary-bg-hover: color-mix(in srgb, var(--accent), white 90%);--button-secondary-bg-active: color-mix(in srgb, var(--accent), white 90%);--button-disabled-bg: color-mix(in srgb, var(--accent), white 60%);--text-disabled: color-mix(in srgb, var(--text-primary), white 40%);--icon-color: var(--accent);--border-color: #0000001a;--surface-bg: #ffffff7a;--surface-bg-hover: #ffffffa1;--surface-bg-active: #ffffffd5;--card-bg: #e5e5e5;--card-bg-secondary: #f5f5f5;--overlay-bg: rgba(0, 0, 0, .4);--muted-bg: rgba(0, 0, 0, .06);--text-primary: #000000;--text-secondary: #8b8b8b;--text-inverse: #ffffff;--sidebar-width: 200px}[data-theme=dark]{--button-secondary-bg-hover: #252628;--button-secondary-bg-active: #2b2f35;--button-disabled-bg: color-mix(in srgb, var(--accent), black 60%);--text-disabled: color-mix(in srgb, var(--text-primary), black 40%);--surface-bg: #1e1e1e7a;--surface-bg-hover: #2a2a2aa1;--surface-bg-active: #3a3a3ad5;--card-bg: #1d1d1d;--card-bg-secondary: #2a2a2a;--overlay-bg: rgba(255, 255, 255, .4);--muted-bg: rgba(255, 255, 255, .12);--text-primary: #ffffff;--text-inverse: #000000;--text-secondary: #b3b3b3}body{color:var(--text-primary);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}[device-type=mobile] body{background-color:var(--card-bg-secondary)!important}*,*:before,*:after{box-sizing:border-box;-webkit-tap-highlight-color:transparent;-webkit-tap-highlight-color:rgba(0,0,0,0)}._sidebar_yoln4_1{width:var(--sidebar-width);background-color:var(--surface-bg);position:absolute;top:0;bottom:5px;height:auto;left:5px;border-radius:9px;transition:left .3s;display:flex;flex-direction:column;z-index:999;border:solid 1px var(--border-color);transform:translate(0)}._sidebarCollapsed_yoln4_18{left:calc(-1 * var(--sidebar-width) - 10px)}[device-type=mobile] ._sidebar_yoln4_1._sidebarMobile_yoln4_22{position:absolute;inset:0;width:auto;height:auto;border-radius:0;transition:transform .25s ease;background-color:var(--card-bg)}[device-type=mobile] ._sidebar_yoln4_1._sidebarMobile_yoln4_22._sidebarMobileHidden_yoln4_35{transform:translate(-105%)}._sidebarContent_yoln4_39{height:100%;padding:0 4px;display:flex;flex-direction:column;overflow-y:auto;gap:2px}._sidebarFooter_yoln4_48{padding:4px}._sidebarTitle_azx8n_1{font-size:.8rem;font-weight:600;margin:8px 8px 8px 4px;color:var(--text-secondary)}[device-type=mobile] ._sidebarTitle_azx8n_1{font-size:1.2rem}._sidebarItem_1e3ru_1{padding:6px;transition:background-color .1s;border-radius:8px;color:var(--text-primary);cursor:pointer;display:flex;flex-direction:row;justify-content:start;align-items:center;gap:8px}[device-type=mobile] ._sidebarItem_1e3ru_1{font-size:1.4rem}._sidebarItem_1e3ru_1:hover{background-color:var(--surface-bg-hover)}._sidebarItem_1e3ru_1._selected_1e3ru_22{background-color:var(--surface-bg-active);color:var(--icon-color)}._sidebarMainBtn_65l8c_1{width:calc(100% - 8px);background-color:var(--button-primary-bg);border:none;outline:none;color:var(--text-inverse);border-radius:5px;height:32px;margin:4px;font-weight:600;font-size:.9rem;transition:background-color .2s;display:flex;flex-direction:row;justify-content:center;align-items:center;gap:8px;cursor:pointer}[device-type=mobile] ._sidebarMainBtn_65l8c_1{font-size:1.4rem;height:48px}._sidebarMainBtn_65l8c_1:hover{background-color:var(--button-primary-bg-hover)}._sidebarMainBtn_65l8c_1:active{background-color:var(--button-primary-bg-active)}._popupContainer_vz8rg_1{position:fixed;top:0;left:0;width:100%;height:100%;background-color:var(--overlay-bg);z-index:9999;display:flex;justify-content:center;align-items:center;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);opacity:1;transition:.2s;pointer-events:auto}._popupClosed_vz8rg_18{opacity:0;pointer-events:none}._popup_vz8rg_1{background-color:var(--card-bg);border-radius:8px;padding:12px;width:300px;height:auto;display:flex;flex-direction:column;justify-content:space-between;gap:12px}._popupIconContainer_vz8rg_35{display:flex;justify-content:center}._popupIcon_vz8rg_35{color:var(--icon-color)}._popupContent_vz8rg_44{display:flex;flex-direction:column;gap:8px}._popupTitle_4z5vb_1{margin:0;text-align:center;font-size:large;font-weight:700}[device-type=mobile] ._popupTitle_4z5vb_1{font-size:1.4rem}._popupDescription_4ewx1_1{text-align:center}[device-type=mobile] ._popupDescription_4ewx1_1{font-size:1.4rem}._popupInput_1b42s_1{width:100%;height:32px;background-color:var(--muted-bg);border:none;border-radius:5px;padding:4px 8px;font-size:1rem;color:var(--text-primary)}[device-type=mobile] ._popupInput_1b42s_1{font-size:1.4rem;height:48px}._popupActions_84v2b_1{display:flex;gap:8px}._popupBtn_ouvtc_1{width:100%;height:32px;border:none;border-radius:5px;font-weight:600;font-size:.9rem;background-color:var(--button-primary-bg);transition:background-color .2s;color:var(--text-inverse);cursor:pointer}[device-type=mobile] ._popupBtn_ouvtc_1{font-size:1.4rem;height:48px}._popupBtn_ouvtc_1:hover{background-color:var(--button-primary-bg-hover)}._popupBtn_ouvtc_1:active{background-color:var(--button-primary-bg-active)}._popupBtn_ouvtc_1._secondary_ouvtc_27{background-color:transparent;color:var(--text-primary);border:solid 1px var(--button-primary-bg);font-weight:400}._popupBtn_ouvtc_1._secondary_ouvtc_27:hover{background-color:var(--button-secondary-bg-hover)}._popupBtn_ouvtc_1._secondary_ouvtc_27:active{background-color:var(--button-secondary-bg-active)}._toolbar_18bqr_1{position:absolute;top:0;left:calc(var(--sidebar-width) + 10px);width:calc(100% - calc(var(--sidebar-width) + 15px));height:32px;display:flex;flex-direction:row;justify-content:space-between;align-items:center;transition:left .3s,width .3s}[device-type=mobile] ._toolbar_18bqr_1{top:5px;height:48px}._toolbarExpanded_18bqr_21{left:5px;width:calc(100% - 10px)}._toolbarTitle_18bqr_26{margin:0;font-size:1rem;font-weight:600}._toolbarActions_18bqr_32{background-color:var(--surface-bg);border-radius:16px;display:flex;flex-direction:row}._toolbarActions_18bqr_32 button{width:32px;height:32px;background-color:transparent;border:none;outline:none;color:var(--icon-color);cursor:pointer}[device-type=mobile] ._toolbarTitle_1p2s8_1{font-size:1.4rem}._toolbarActions_l0jv2_1{background-color:var(--surface-bg);border-radius:16px;display:flex;flex-direction:row}[device-type=mobile] ._toolbarActions_l0jv2_1{border-radius:24px}._toolbarActions_l0jv2_1 button{background-color:transparent}._toolbarBtn_8jy1b_1{width:32px;height:32px;border:none;outline:none;padding:0;display:flex;justify-content:center;align-items:center;background-color:var(--surface-bg);border-radius:16px;color:var(--icon-color);transition:background-color .2s;cursor:pointer}._toolbarBtn_8jy1b_1:hover{background-color:var(--surface-bg-hover)}._toolbarBtn_8jy1b_1:active{background-color:var(--surface-bg-active)}[device-type=mobile] ._toolbarBtn_8jy1b_1{width:48px;height:48px;border-radius:24px}._sidebarIcon_1lib1_1{rotate:0deg;transition:rotate .3s}._sidebarIconExpanded_1lib1_6{rotate:180deg}._content_1ha8s_1{position:absolute;top:37px;left:calc(var(--sidebar-width) + 10px);height:calc(100% - 37px);width:calc(100% - calc(var(--sidebar-width) + 15px));transition:left .3s,width .3s;display:flex;flex-direction:column;justify-content:start;align-items:start;overflow:auto;padding-bottom:5px}._contentExpanded_1ha8s_18{top:37px;left:5px;width:calc(100% - 10px);height:calc(100% - 37px)}[device-type=mobile] ._content_1ha8s_1{top:58px;height:calc(100% - 58px)}._contextMenu_vtnpl_1{background-color:var(--surface-bg-active);position:fixed;border-radius:9px;transition:opacity .1s,transform .1s;display:flex;flex-direction:column;z-index:9999;border:solid 1px var(--border-color);transform:scale(.7) translate(var(--tx-start)) translateY(var(--ty-start));opacity:0;visibility:hidden;pointer-events:none;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);padding:4px}._contextMenuOpen_vtnpl_22{visibility:visible;pointer-events:auto;transform:scale(1) translate(0) translateY(0);opacity:1}._listItem_7ga7e_1{padding:10px;transition:background-color .1s;border-radius:8px;color:var(--text-primary);cursor:pointer;display:flex;flex-direction:row;justify-content:start;align-items:center;gap:8px;width:100%}[device-type=mobile] ._listItem_7ga7e_1{font-size:1.4rem}._listItem_7ga7e_1:hover{background-color:var(--surface-bg-hover)}._listItem_7ga7e_1._selected_7ga7e_23{background-color:var(--surface-bg-active)}._emptyView_1synn_1{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%;color:var(--text-secondary)}._card_zjz9h_1{background-color:var(--surface-bg);border-radius:9px;display:flex;flex-direction:column;border:solid 1px var(--border-color);padding:14px;margin:0 8px;width:calc(100% - 16px);gap:8px}._textInput_on5q4_1{width:100%;height:32px;background-color:var(--muted-bg);border:none;border-radius:5px;padding:4px 8px;font-size:.9rem;color:var(--text-primary);transition:background-color .2s}._textInput_on5q4_1:focus{outline:none;background-color:var(--surface-bg)}._textInput_on5q4_1:disabled{opacity:.5;cursor:not-allowed}._textInput_on5q4_1::placeholder{color:var(--text-secondary)}[device-type=mobile] ._textInput_on5q4_1{font-size:1.4rem;height:48px}._selectInput_3f04b_1{height:32px;background-color:var(--muted-bg);border:none;border-radius:5px;padding:4px 32px 4px 8px;font-size:.9rem;color:var(--text-primary);cursor:pointer;transition:background-color .2s;appearance:none;-webkit-appearance:none;-moz-appearance:none;background-image:url('data:image/svg+xml;utf8,<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4 6L8 10L12 6" stroke="%23666" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');background-repeat:no-repeat;background-position:right 8px center}._selectInput_3f04b_1:hover{background-color:var(--surface-bg-hover)}._selectInput_3f04b_1:focus{outline:none;background-color:var(--surface-bg)}._selectInput_3f04b_1:disabled{opacity:.5;cursor:not-allowed}[device-type=mobile] ._selectInput_3f04b_1{font-size:1.4rem;height:48px}._button_g5rur_1{width:100%;height:32px;border:none;border-radius:5px;font-weight:600;font-size:.9rem;background-color:var(--button-primary-bg);transition:background-color .2s;color:var(--text-inverse);cursor:pointer}[device-type=mobile] ._button_g5rur_1{font-size:1.4rem;height:48px}._button_g5rur_1:hover{background-color:var(--button-primary-bg-hover)}._button_g5rur_1:active{background-color:var(--button-primary-bg-active)}._button_g5rur_1._secondary_g5rur_27{background-color:transparent;color:var(--text-primary);border:solid 1px var(--button-primary-bg);font-weight:400}._button_g5rur_1._secondary_g5rur_27:hover{background-color:var(--button-secondary-bg-hover)}._button_g5rur_1._secondary_g5rur_27:active{background-color:var(--button-secondary-bg-active)}._button_g5rur_1:disabled{background-color:var(--button-disabled-bg);color:var(--text-disabled);cursor:not-allowed;opacity:.6}._balloon_1jdjr_1{position:fixed;z-index:1000;display:flex;flex-direction:column;width:256px;padding:14px;gap:8px;border-radius:9px;background-color:var(--surface-bg);border:solid 1px var(--border-color);align-items:center;box-sizing:border-box;transform-origin:50% calc(100% + 8px);transform:translate(-50%,calc(-100% - 8px)) scale(.1);filter:opacity(0);transition:.3s;pointer-events:none;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}._balloonOpen_1jdjr_22{transform:translate(-50%,calc(-100% - 8px)) scale(1);filter:opacity(1);pointer-events:auto}._balloon_1jdjr_1:after{content:"";position:absolute;bottom:-6px;left:50%;transform:translate(-50%) rotate(45deg);width:10px;height:10px;background-color:var(--surface-bg);border-right:solid 1px var(--border-color);border-bottom:solid 1px var(--border-color);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}[device-type=mobile] ._balloon_1jdjr_1{font-size:1.4rem}`)),document.head.appendChild(r)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
2
- import { jsx as o, jsxs as y } from "react/jsx-runtime";
3
- import { createContext as E, useContext as B, useLayoutEffect as g, useRef as m, forwardRef as $, useEffect as D } from "react";
1
+ (function(){"use strict";try{if(typeof document<"u"){var r=document.createElement("style");r.appendChild(document.createTextNode(`:root{--accent: #0088ff;--button-primary-bg: var(--accent);--button-primary-bg-hover: color-mix(in srgb, var(--accent), black 15%);--button-primary-bg-active: color-mix(in srgb, var(--accent), black 30%);--button-secondary-bg-hover: color-mix(in srgb, var(--accent), white 90%);--button-secondary-bg-active: color-mix(in srgb, var(--accent), white 90%);--button-disabled-bg: color-mix(in srgb, var(--accent), white 60%);--text-disabled: color-mix(in srgb, var(--text-primary), white 40%);--icon-color: var(--accent);--border-color: #0000001a;--surface-bg: #ffffff7a;--surface-bg-hover: #ffffffa1;--surface-bg-active: #ffffffd5;--card-bg: #e5e5e5;--card-bg-secondary: #f5f5f5;--overlay-bg: rgba(0, 0, 0, .4);--muted-bg: rgba(0, 0, 0, .06);--text-primary: #000000;--text-secondary: #8b8b8b;--text-inverse: #ffffff;--sidebar-width: 200px}[data-theme=dark]{--button-secondary-bg-hover: #252628;--button-secondary-bg-active: #2b2f35;--button-disabled-bg: color-mix(in srgb, var(--accent), black 60%);--text-disabled: color-mix(in srgb, var(--text-primary), black 40%);--surface-bg: #1e1e1e7a;--surface-bg-hover: #2a2a2aa1;--surface-bg-active: #3a3a3ad5;--card-bg: #1d1d1d;--card-bg-secondary: #2a2a2a;--overlay-bg: rgba(255, 255, 255, .4);--muted-bg: rgba(255, 255, 255, .12);--text-primary: #ffffff;--text-inverse: #000000;--text-secondary: #b3b3b3}body{color:var(--text-primary);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}[device-type=mobile] body{background-color:var(--card-bg-secondary)!important}*,*:before,*:after{box-sizing:border-box;-webkit-tap-highlight-color:transparent;-webkit-tap-highlight-color:rgba(0,0,0,0)}._sidebar_yoln4_1{width:var(--sidebar-width);background-color:var(--surface-bg);position:absolute;top:0;bottom:5px;height:auto;left:5px;border-radius:9px;transition:left .3s;display:flex;flex-direction:column;z-index:999;border:solid 1px var(--border-color);transform:translate(0)}._sidebarCollapsed_yoln4_18{left:calc(-1 * var(--sidebar-width) - 10px)}[device-type=mobile] ._sidebar_yoln4_1._sidebarMobile_yoln4_22{position:absolute;inset:0;width:auto;height:auto;border-radius:0;transition:transform .25s ease;background-color:var(--card-bg)}[device-type=mobile] ._sidebar_yoln4_1._sidebarMobile_yoln4_22._sidebarMobileHidden_yoln4_35{transform:translate(-105%)}._sidebarContent_yoln4_39{height:100%;padding:0 4px;display:flex;flex-direction:column;overflow-y:auto;gap:2px}._sidebarFooter_yoln4_48{padding:4px}._sidebarTitle_azx8n_1{font-size:.8rem;font-weight:600;margin:8px 8px 8px 4px;color:var(--text-secondary)}[device-type=mobile] ._sidebarTitle_azx8n_1{font-size:1.2rem}._sidebarItem_1e3ru_1{padding:6px;transition:background-color .1s;border-radius:8px;color:var(--text-primary);cursor:pointer;display:flex;flex-direction:row;justify-content:start;align-items:center;gap:8px}[device-type=mobile] ._sidebarItem_1e3ru_1{font-size:1.4rem}._sidebarItem_1e3ru_1:hover{background-color:var(--surface-bg-hover)}._sidebarItem_1e3ru_1._selected_1e3ru_22{background-color:var(--surface-bg-active);color:var(--icon-color)}._sidebarMainBtn_65l8c_1{width:calc(100% - 8px);background-color:var(--button-primary-bg);border:none;outline:none;color:var(--text-inverse);border-radius:5px;height:32px;margin:4px;font-weight:600;font-size:.9rem;transition:background-color .2s;display:flex;flex-direction:row;justify-content:center;align-items:center;gap:8px;cursor:pointer}[device-type=mobile] ._sidebarMainBtn_65l8c_1{font-size:1.4rem;height:48px}._sidebarMainBtn_65l8c_1:hover{background-color:var(--button-primary-bg-hover)}._sidebarMainBtn_65l8c_1:active{background-color:var(--button-primary-bg-active)}._popupContainer_vz8rg_1{position:fixed;top:0;left:0;width:100%;height:100%;background-color:var(--overlay-bg);z-index:9999;display:flex;justify-content:center;align-items:center;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);opacity:1;transition:.2s;pointer-events:auto}._popupClosed_vz8rg_18{opacity:0;pointer-events:none}._popup_vz8rg_1{background-color:var(--card-bg);border-radius:8px;padding:12px;width:300px;height:auto;display:flex;flex-direction:column;justify-content:space-between;gap:12px}._popupIconContainer_vz8rg_35{display:flex;justify-content:center}._popupIcon_vz8rg_35{color:var(--icon-color)}._popupContent_vz8rg_44{display:flex;flex-direction:column;gap:8px}._popupTitle_4z5vb_1{margin:0;text-align:center;font-size:large;font-weight:700}[device-type=mobile] ._popupTitle_4z5vb_1{font-size:1.4rem}._popupDescription_4ewx1_1{text-align:center}[device-type=mobile] ._popupDescription_4ewx1_1{font-size:1.4rem}._popupInput_1b42s_1{width:100%;height:32px;background-color:var(--muted-bg);border:none;border-radius:5px;padding:4px 8px;font-size:1rem;color:var(--text-primary)}[device-type=mobile] ._popupInput_1b42s_1{font-size:1.4rem;height:48px}._popupActions_84v2b_1{display:flex;gap:8px}._popupBtn_ouvtc_1{width:100%;height:32px;border:none;border-radius:5px;font-weight:600;font-size:.9rem;background-color:var(--button-primary-bg);transition:background-color .2s;color:var(--text-inverse);cursor:pointer}[device-type=mobile] ._popupBtn_ouvtc_1{font-size:1.4rem;height:48px}._popupBtn_ouvtc_1:hover{background-color:var(--button-primary-bg-hover)}._popupBtn_ouvtc_1:active{background-color:var(--button-primary-bg-active)}._popupBtn_ouvtc_1._secondary_ouvtc_27{background-color:transparent;color:var(--text-primary);border:solid 1px var(--button-primary-bg);font-weight:400}._popupBtn_ouvtc_1._secondary_ouvtc_27:hover{background-color:var(--button-secondary-bg-hover)}._popupBtn_ouvtc_1._secondary_ouvtc_27:active{background-color:var(--button-secondary-bg-active)}._toolbar_18bqr_1{position:absolute;top:0;left:calc(var(--sidebar-width) + 10px);width:calc(100% - calc(var(--sidebar-width) + 15px));height:32px;display:flex;flex-direction:row;justify-content:space-between;align-items:center;transition:left .3s,width .3s}[device-type=mobile] ._toolbar_18bqr_1{top:5px;height:48px}._toolbarExpanded_18bqr_21{left:5px;width:calc(100% - 10px)}._toolbarTitle_18bqr_26{margin:0;font-size:1rem;font-weight:600}._toolbarActions_18bqr_32{background-color:var(--surface-bg);border-radius:16px;display:flex;flex-direction:row}._toolbarActions_18bqr_32 button{width:32px;height:32px;background-color:transparent;border:none;outline:none;color:var(--icon-color);cursor:pointer}[device-type=mobile] ._toolbarTitle_1p2s8_1{font-size:1.4rem}._toolbarActions_l0jv2_1{background-color:var(--surface-bg);border-radius:16px;display:flex;flex-direction:row}[device-type=mobile] ._toolbarActions_l0jv2_1{border-radius:24px}._toolbarActions_l0jv2_1 button{background-color:transparent}._toolbarBtn_8jy1b_1{width:32px;height:32px;border:none;outline:none;padding:0;display:flex;justify-content:center;align-items:center;background-color:var(--surface-bg);border-radius:16px;color:var(--icon-color);transition:background-color .2s;cursor:pointer}._toolbarBtn_8jy1b_1:hover{background-color:var(--surface-bg-hover)}._toolbarBtn_8jy1b_1:active{background-color:var(--surface-bg-active)}[device-type=mobile] ._toolbarBtn_8jy1b_1{width:48px;height:48px;border-radius:24px}._sidebarIcon_1lib1_1{rotate:0deg;transition:rotate .3s}._sidebarIconExpanded_1lib1_6{rotate:180deg}._content_1naqr_1{position:absolute;top:0;left:calc(var(--sidebar-width) + 10px);height:100%;width:calc(100% - calc(var(--sidebar-width) + 15px));transition:left .3s,width .3s;display:flex;flex-direction:column;justify-content:start;align-items:start;overflow:auto;padding-bottom:5px}._contentExpanded_1naqr_18{left:5px;width:calc(100% - 10px)}._toolbarPresent_1naqr_23{top:37px;height:calc(100% - 37px)}[device-type=mobile] ._content_1naqr_1._toolbarPresent_1naqr_23{top:58px;height:calc(100% - 58px)}._contextMenu_vtnpl_1{background-color:var(--surface-bg-active);position:fixed;border-radius:9px;transition:opacity .1s,transform .1s;display:flex;flex-direction:column;z-index:9999;border:solid 1px var(--border-color);transform:scale(.7) translate(var(--tx-start)) translateY(var(--ty-start));opacity:0;visibility:hidden;pointer-events:none;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);padding:4px}._contextMenuOpen_vtnpl_22{visibility:visible;pointer-events:auto;transform:scale(1) translate(0) translateY(0);opacity:1}._listItem_7ga7e_1{padding:10px;transition:background-color .1s;border-radius:8px;color:var(--text-primary);cursor:pointer;display:flex;flex-direction:row;justify-content:start;align-items:center;gap:8px;width:100%}[device-type=mobile] ._listItem_7ga7e_1{font-size:1.4rem}._listItem_7ga7e_1:hover{background-color:var(--surface-bg-hover)}._listItem_7ga7e_1._selected_7ga7e_23{background-color:var(--surface-bg-active)}._emptyView_1synn_1{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%;color:var(--text-secondary)}._card_zjz9h_1{background-color:var(--surface-bg);border-radius:9px;display:flex;flex-direction:column;border:solid 1px var(--border-color);padding:14px;margin:0 8px;width:calc(100% - 16px);gap:8px}._textInput_on5q4_1{width:100%;height:32px;background-color:var(--muted-bg);border:none;border-radius:5px;padding:4px 8px;font-size:.9rem;color:var(--text-primary);transition:background-color .2s}._textInput_on5q4_1:focus{outline:none;background-color:var(--surface-bg)}._textInput_on5q4_1:disabled{opacity:.5;cursor:not-allowed}._textInput_on5q4_1::placeholder{color:var(--text-secondary)}[device-type=mobile] ._textInput_on5q4_1{font-size:1.4rem;height:48px}._selectInput_3f04b_1{height:32px;background-color:var(--muted-bg);border:none;border-radius:5px;padding:4px 32px 4px 8px;font-size:.9rem;color:var(--text-primary);cursor:pointer;transition:background-color .2s;appearance:none;-webkit-appearance:none;-moz-appearance:none;background-image:url('data:image/svg+xml;utf8,<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4 6L8 10L12 6" stroke="%23666" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');background-repeat:no-repeat;background-position:right 8px center}._selectInput_3f04b_1:hover{background-color:var(--surface-bg-hover)}._selectInput_3f04b_1:focus{outline:none;background-color:var(--surface-bg)}._selectInput_3f04b_1:disabled{opacity:.5;cursor:not-allowed}[device-type=mobile] ._selectInput_3f04b_1{font-size:1.4rem;height:48px}._button_g5rur_1{width:100%;height:32px;border:none;border-radius:5px;font-weight:600;font-size:.9rem;background-color:var(--button-primary-bg);transition:background-color .2s;color:var(--text-inverse);cursor:pointer}[device-type=mobile] ._button_g5rur_1{font-size:1.4rem;height:48px}._button_g5rur_1:hover{background-color:var(--button-primary-bg-hover)}._button_g5rur_1:active{background-color:var(--button-primary-bg-active)}._button_g5rur_1._secondary_g5rur_27{background-color:transparent;color:var(--text-primary);border:solid 1px var(--button-primary-bg);font-weight:400}._button_g5rur_1._secondary_g5rur_27:hover{background-color:var(--button-secondary-bg-hover)}._button_g5rur_1._secondary_g5rur_27:active{background-color:var(--button-secondary-bg-active)}._button_g5rur_1:disabled{background-color:var(--button-disabled-bg);color:var(--text-disabled);cursor:not-allowed;opacity:.6}._balloon_1jdjr_1{position:fixed;z-index:1000;display:flex;flex-direction:column;width:256px;padding:14px;gap:8px;border-radius:9px;background-color:var(--surface-bg);border:solid 1px var(--border-color);align-items:center;box-sizing:border-box;transform-origin:50% calc(100% + 8px);transform:translate(-50%,calc(-100% - 8px)) scale(.1);filter:opacity(0);transition:.3s;pointer-events:none;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}._balloonOpen_1jdjr_22{transform:translate(-50%,calc(-100% - 8px)) scale(1);filter:opacity(1);pointer-events:auto}._balloon_1jdjr_1:after{content:"";position:absolute;bottom:-6px;left:50%;transform:translate(-50%) rotate(45deg);width:10px;height:10px;background-color:var(--surface-bg);border-right:solid 1px var(--border-color);border-bottom:solid 1px var(--border-color);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}[device-type=mobile] ._balloon_1jdjr_1{font-size:1.4rem}`)),document.head.appendChild(r)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
2
+ import { jsx as o, jsxs as m } from "react/jsx-runtime";
3
+ import { createContext as E, useContext as B, useLayoutEffect as g, useRef as $, forwardRef as v, useEffect as D } from "react";
4
4
  import { Menu as S } from "lucide-react";
5
5
  const C = E({ isMobile: !1 }), u = () => B(C);
6
- function Pt({
6
+ function qt({
7
7
  isMobile: t,
8
8
  sidebar: e,
9
9
  children: n,
@@ -11,22 +11,22 @@ function Pt({
11
11
  }) {
12
12
  return g(() => {
13
13
  s && document.documentElement.style.setProperty("--accent", s);
14
- }, [s]), /* @__PURE__ */ o(C.Provider, { value: { isMobile: t }, children: /* @__PURE__ */ y("div", { children: [
14
+ }, [s]), /* @__PURE__ */ o(C.Provider, { value: { isMobile: t }, children: /* @__PURE__ */ m("div", { children: [
15
15
  /* @__PURE__ */ o("aside", { children: e }),
16
16
  /* @__PURE__ */ o("main", { children: n })
17
17
  ] }) });
18
18
  }
19
- const z = "_sidebar_yoln4_1", j = "_sidebarCollapsed_yoln4_18", A = "_sidebarMobile_yoln4_22", w = "_sidebarMobileHidden_yoln4_35", O = "_sidebarContent_yoln4_39", P = "_sidebarFooter_yoln4_48", p = {
19
+ const z = "_sidebar_yoln4_1", P = "_sidebarCollapsed_yoln4_18", j = "_sidebarMobile_yoln4_22", A = "_sidebarMobileHidden_yoln4_35", w = "_sidebarContent_yoln4_39", O = "_sidebarFooter_yoln4_48", p = {
20
20
  sidebar: z,
21
- sidebarCollapsed: j,
22
- sidebarMobile: A,
23
- sidebarMobileHidden: w,
24
- sidebarContent: O,
25
- sidebarFooter: P
21
+ sidebarCollapsed: P,
22
+ sidebarMobile: j,
23
+ sidebarMobileHidden: A,
24
+ sidebarContent: w,
25
+ sidebarFooter: O
26
26
  };
27
27
  function Rt({ open: t, footer: e, children: n }) {
28
28
  const { isMobile: s } = u();
29
- return /* @__PURE__ */ y(
29
+ return /* @__PURE__ */ m(
30
30
  "div",
31
31
  {
32
32
  className: `
@@ -41,15 +41,15 @@ function Rt({ open: t, footer: e, children: n }) {
41
41
  }
42
42
  );
43
43
  }
44
- const R = "_sidebarTitle_azx8n_1", k = {
45
- sidebarTitle: R
44
+ const q = "_sidebarTitle_azx8n_1", R = {
45
+ sidebarTitle: q
46
46
  };
47
47
  function kt({ children: t }) {
48
- return /* @__PURE__ */ o("h2", { className: k.sidebarTitle, children: t });
48
+ return /* @__PURE__ */ o("h2", { className: R.sidebarTitle, children: t });
49
49
  }
50
- const V = "_sidebarItem_1e3ru_1", H = "_selected_1e3ru_22", v = {
51
- sidebarItem: V,
52
- selected: H
50
+ const k = "_sidebarItem_1e3ru_1", V = "_selected_1e3ru_22", x = {
51
+ sidebarItem: k,
52
+ selected: V
53
53
  };
54
54
  function Vt({
55
55
  onClick: t,
@@ -57,30 +57,30 @@ function Vt({
57
57
  selected: n = !1,
58
58
  children: s
59
59
  }) {
60
- const r = m(null), l = (c) => {
60
+ const r = $(null), a = (c) => {
61
61
  r.current = setTimeout(() => {
62
62
  e && (c.preventDefault(), e(c));
63
63
  }, 500);
64
- }, i = () => {
64
+ }, l = () => {
65
65
  r.current && clearTimeout(r.current);
66
66
  };
67
67
  return /* @__PURE__ */ o(
68
68
  "div",
69
69
  {
70
- className: `${v.sidebarItem} ${n ? v.selected : ""}`,
70
+ className: `${x.sidebarItem} ${n ? x.selected : ""}`,
71
71
  onClick: t,
72
72
  onContextMenu: (c) => {
73
73
  c.preventDefault(), e && e(c);
74
74
  },
75
- onTouchStart: l,
76
- onTouchEnd: i,
77
- onTouchMove: i,
75
+ onTouchStart: a,
76
+ onTouchEnd: l,
77
+ onTouchMove: l,
78
78
  children: s
79
79
  }
80
80
  );
81
81
  }
82
- const q = "_sidebarMainBtn_65l8c_1", F = {
83
- sidebarMainBtn: q
82
+ const H = "_sidebarMainBtn_65l8c_1", F = {
83
+ sidebarMainBtn: H
84
84
  };
85
85
  function Ht({ onClick: t, children: e }) {
86
86
  return /* @__PURE__ */ o("button", { className: F.sidebarMainBtn, onClick: t, children: e });
@@ -91,7 +91,7 @@ const L = "_popupContainer_vz8rg_1", W = "_popupClosed_vz8rg_18", K = "_popup_vz
91
91
  popup: K,
92
92
  popupContent: G
93
93
  };
94
- function qt({ open: t = !1, children: e }) {
94
+ function Ft({ open: t = !1, children: e }) {
95
95
  return /* @__PURE__ */ o(
96
96
  "div",
97
97
  {
@@ -103,20 +103,20 @@ function qt({ open: t = !1, children: e }) {
103
103
  const J = "_popupTitle_4z5vb_1", Q = {
104
104
  popupTitle: J
105
105
  };
106
- function Ft({ children: t }) {
106
+ function Lt({ children: t }) {
107
107
  return /* @__PURE__ */ o("span", { className: Q.popupTitle, children: t });
108
108
  }
109
109
  const U = "_popupDescription_4ewx1_1", X = {
110
110
  popupDescription: U
111
111
  };
112
- function Lt({ children: t }) {
112
+ function Wt({ children: t }) {
113
113
  return /* @__PURE__ */ o("span", { className: X.popupDescription, children: t });
114
114
  }
115
115
  const Y = "_popupInput_1b42s_1", Z = {
116
116
  popupInput: Y
117
- }, Wt = $(
118
- ({ placeholder: t = "Enter text...", value: e, onChange: n, onSubmit: s, autoFocus: r }, l) => {
119
- const i = m(null), c = l || i;
117
+ }, Kt = v(
118
+ ({ placeholder: t = "Enter text...", value: e, onChange: n, onSubmit: s, autoFocus: r }, a) => {
119
+ const l = $(null), c = a || l;
120
120
  return D(() => {
121
121
  r && c.current && c.current.focus();
122
122
  }, [r, c]), /* @__PURE__ */ o(
@@ -127,9 +127,9 @@ const Y = "_popupInput_1b42s_1", Z = {
127
127
  className: Z.popupInput,
128
128
  placeholder: t,
129
129
  value: e,
130
- onChange: (a) => n?.(a.target.value),
131
- onKeyDown: (a) => {
132
- a.key === "Enter" && s && s(e || "");
130
+ onChange: (i) => n?.(i.target.value),
131
+ onKeyDown: (i) => {
132
+ i.key === "Enter" && s && s(e || "");
133
133
  }
134
134
  }
135
135
  );
@@ -137,7 +137,7 @@ const Y = "_popupInput_1b42s_1", Z = {
137
137
  ), tt = "_popupActions_84v2b_1", et = {
138
138
  popupActions: tt
139
139
  };
140
- function Kt({
140
+ function Gt({
141
141
  orientation: t = "vertical",
142
142
  children: e
143
143
  }) {
@@ -152,11 +152,11 @@ function Kt({
152
152
  }
153
153
  );
154
154
  }
155
- const nt = "_popupBtn_ouvtc_1", ot = "_secondary_ouvtc_27", x = {
155
+ const nt = "_popupBtn_ouvtc_1", ot = "_secondary_ouvtc_27", h = {
156
156
  popupBtn: nt,
157
157
  secondary: ot
158
158
  };
159
- function Gt({
159
+ function Jt({
160
160
  type: t = "primary",
161
161
  onClick: e,
162
162
  children: n
@@ -164,7 +164,7 @@ function Gt({
164
164
  return /* @__PURE__ */ o(
165
165
  "button",
166
166
  {
167
- className: `${x.popupBtn} ${t == "secondary" ? x.secondary : ""}`,
167
+ className: `${h.popupBtn} ${t == "secondary" ? h.secondary : ""}`,
168
168
  onClick: e,
169
169
  children: n
170
170
  }
@@ -174,7 +174,7 @@ const st = "_toolbar_18bqr_1", ct = "_toolbarExpanded_18bqr_21", _ = {
174
174
  toolbar: st,
175
175
  toolbarExpanded: ct
176
176
  };
177
- function Jt({ expanded: t = !1, children: e }) {
177
+ function Qt({ expanded: t = !0, children: e }) {
178
178
  const { isMobile: n } = u();
179
179
  return /* @__PURE__ */ o(
180
180
  "div",
@@ -184,17 +184,17 @@ function Jt({ expanded: t = !1, children: e }) {
184
184
  }
185
185
  );
186
186
  }
187
- const rt = "_toolbarTitle_1p2s8_1", it = {
187
+ const rt = "_toolbarTitle_1p2s8_1", lt = {
188
188
  toolbarTitle: rt
189
189
  };
190
- function Qt({ children: t }) {
191
- return /* @__PURE__ */ o("h3", { className: it.toolbarTitle, children: t });
190
+ function Ut({ children: t }) {
191
+ return /* @__PURE__ */ o("h3", { className: lt.toolbarTitle, children: t });
192
192
  }
193
- const lt = "_toolbarActions_l0jv2_1", at = {
194
- toolbarActions: lt
193
+ const at = "_toolbarActions_l0jv2_1", it = {
194
+ toolbarActions: at
195
195
  };
196
- function Ut({ children: t }) {
197
- return /* @__PURE__ */ o("div", { className: at.toolbarActions, children: t });
196
+ function Xt({ children: t }) {
197
+ return /* @__PURE__ */ o("div", { className: it.toolbarActions, children: t });
198
198
  }
199
199
  const pt = "_toolbarBtn_8jy1b_1", ut = {
200
200
  toolbarBtn: pt
@@ -211,11 +211,11 @@ function dt({ onClick: t, children: e }) {
211
211
  }
212
212
  );
213
213
  }
214
- const bt = "_sidebarIcon_1lib1_1", _t = "_sidebarIconExpanded_1lib1_6", h = {
214
+ const bt = "_sidebarIcon_1lib1_1", _t = "_sidebarIconExpanded_1lib1_6", T = {
215
215
  sidebarIcon: bt,
216
216
  sidebarIconExpanded: _t
217
217
  };
218
- function Xt({
218
+ function Yt({
219
219
  onToggleSidebar: t,
220
220
  expanded: e = !1
221
221
  }) {
@@ -224,75 +224,80 @@ function Xt({
224
224
  S,
225
225
  {
226
226
  size: n ? 24 : 18,
227
- className: `${h.sidebarIcon} ${e ? h.sidebarIconExpanded : ""}`
227
+ className: `${T.sidebarIcon} ${e ? T.sidebarIconExpanded : ""}`
228
228
  }
229
229
  ) });
230
230
  }
231
- const ft = "_content_1ha8s_1", yt = "_contentExpanded_1ha8s_18", T = {
231
+ const ft = "_content_1naqr_1", yt = "_contentExpanded_1naqr_18", mt = "_toolbarPresent_1naqr_23", f = {
232
232
  content: ft,
233
- contentExpanded: yt
233
+ contentExpanded: yt,
234
+ toolbarPresent: mt
234
235
  };
235
- function Yt({ expanded: t = !1, children: e }) {
236
+ function Zt({
237
+ expanded: t = !0,
238
+ toolbar: e = !0,
239
+ children: n
240
+ }) {
236
241
  return /* @__PURE__ */ o(
237
242
  "div",
238
243
  {
239
- className: `${T.content} ${t ? T.contentExpanded : ""}`,
240
- children: e
244
+ className: `${f.content} ${t ? f.contentExpanded : ""} ${e ? f.toolbarPresent : ""}`,
245
+ children: n
241
246
  }
242
247
  );
243
248
  }
244
- const mt = "_contextMenu_vtnpl_1", $t = "_contextMenuOpen_vtnpl_22", f = {
245
- contextMenu: mt,
246
- contextMenuOpen: $t
249
+ const $t = "_contextMenu_vtnpl_1", vt = "_contextMenuOpen_vtnpl_22", y = {
250
+ contextMenu: $t,
251
+ contextMenuOpen: vt
247
252
  };
248
- function Zt({
253
+ function te({
249
254
  open: t,
250
255
  x: e = 20,
251
256
  y: n = 20,
252
257
  from: s = "top-left",
253
258
  children: r
254
259
  }) {
255
- const { isMobile: l } = u(), i = {
260
+ const { isMobile: a } = u(), l = {
256
261
  "top-left": { tx: "-30%", ty: "-30%" },
257
262
  "top-right": { tx: "30%", ty: "-30%" },
258
263
  "bottom-left": { tx: "-30%", ty: "30%" },
259
264
  "bottom-right": { tx: "30%", ty: "30%" }
260
- }, { tx: c, ty: a } = i[s], b = {
265
+ }, { tx: c, ty: i } = l[s], b = {
261
266
  top: s.includes("top") ? `${n}px` : "auto",
262
267
  bottom: s.includes("bottom") ? `${n}px` : "auto",
263
268
  left: s.includes("left") ? `${e}px` : "auto",
264
269
  right: s.includes("right") ? `${e}px` : "auto",
265
270
  "--tx-start": c,
266
- "--ty-start": a
271
+ "--ty-start": i
267
272
  };
268
273
  return /* @__PURE__ */ o(
269
274
  "div",
270
275
  {
271
276
  className: `
272
- ${f.contextMenu}
273
- ${t ? f.contextMenuOpen : ""}
274
- ${l ? f.contextMenuMobile : ""}
277
+ ${y.contextMenu}
278
+ ${t ? y.contextMenuOpen : ""}
279
+ ${a ? y.contextMenuMobile : ""}
275
280
  `,
276
281
  style: b,
277
282
  children: r
278
283
  }
279
284
  );
280
285
  }
281
- const vt = "_listItem_7ga7e_1", xt = "_selected_7ga7e_23", I = {
282
- listItem: vt,
283
- selected: xt
286
+ const xt = "_listItem_7ga7e_1", ht = "_selected_7ga7e_23", I = {
287
+ listItem: xt,
288
+ selected: ht
284
289
  };
285
- function te({
290
+ function ee({
286
291
  onClick: t,
287
292
  onContextMenu: e,
288
293
  selected: n = !1,
289
294
  children: s
290
295
  }) {
291
- const r = m(null), l = (c) => {
296
+ const r = $(null), a = (c) => {
292
297
  r.current = setTimeout(() => {
293
298
  e && (c.preventDefault(), e(c));
294
299
  }, 500);
295
- }, i = () => {
300
+ }, l = () => {
296
301
  r.current && clearTimeout(r.current);
297
302
  };
298
303
  return /* @__PURE__ */ o(
@@ -303,96 +308,96 @@ function te({
303
308
  onContextMenu: (c) => {
304
309
  c.preventDefault(), e && e(c);
305
310
  },
306
- onTouchStart: l,
307
- onTouchEnd: i,
308
- onTouchMove: i,
311
+ onTouchStart: a,
312
+ onTouchEnd: l,
313
+ onTouchMove: l,
309
314
  children: s
310
315
  }
311
316
  );
312
317
  }
313
- function ht({
318
+ function Tt({
314
319
  icon: t,
315
320
  size: e = "default",
316
321
  color: n = "default",
317
322
  className: s
318
323
  }) {
319
- const { isMobile: r } = u(), l = e === "default" ? r ? 24 : 18 : e, i = n === "selected" ? "var(--icon-color)" : n;
324
+ const { isMobile: r } = u(), a = e === "default" ? r ? 24 : 18 : e, l = n === "selected" ? "var(--icon-color)" : n;
320
325
  return n === "default" ? /* @__PURE__ */ o(
321
326
  t,
322
327
  {
323
- size: l,
328
+ size: a,
324
329
  className: s,
325
330
  strokeWidth: r ? 2.5 : 2
326
331
  }
327
332
  ) : /* @__PURE__ */ o(
328
333
  t,
329
334
  {
330
- size: l,
331
- color: i,
335
+ size: a,
336
+ color: l,
332
337
  className: s,
333
338
  strokeWidth: r ? 2.5 : 2
334
339
  }
335
340
  );
336
341
  }
337
- const Tt = "_emptyView_1synn_1", It = {
338
- emptyView: Tt
342
+ const It = "_emptyView_1synn_1", Mt = {
343
+ emptyView: It
339
344
  };
340
- function ee({ icon: t, label: e }) {
345
+ function ne({ icon: t, label: e }) {
341
346
  const { isMobile: n } = u(), s = n ? 64 : 48;
342
- return /* @__PURE__ */ y("div", { className: It.emptyView, children: [
343
- /* @__PURE__ */ o(ht, { icon: t, size: s, color: "var(--text-secondary)" }),
347
+ return /* @__PURE__ */ m("div", { className: Mt.emptyView, children: [
348
+ /* @__PURE__ */ o(Tt, { icon: t, size: s, color: "var(--text-secondary)" }),
344
349
  /* @__PURE__ */ o("h2", { children: e })
345
350
  ] });
346
351
  }
347
- const Mt = "_card_zjz9h_1", Nt = {
348
- card: Mt
352
+ const Nt = "_card_zjz9h_1", Ct = {
353
+ card: Nt
349
354
  };
350
- function ne({ children: t }) {
351
- return /* @__PURE__ */ o("div", { className: Nt.card, children: t });
355
+ function oe({ children: t }) {
356
+ return /* @__PURE__ */ o("div", { className: Ct.card, children: t });
352
357
  }
353
- const Ct = "_textInput_on5q4_1", Et = {
354
- textInput: Ct
355
- }, oe = $(
358
+ const Et = "_textInput_on5q4_1", Bt = {
359
+ textInput: Et
360
+ }, se = v(
356
361
  ({
357
362
  placeholder: t,
358
363
  value: e,
359
364
  onChange: n,
360
365
  onFocus: s,
361
366
  onBlur: r,
362
- disabled: l = !1,
363
- type: i = "text",
367
+ disabled: a = !1,
368
+ type: l = "text",
364
369
  className: c
365
- }, a) => /* @__PURE__ */ o(
370
+ }, i) => /* @__PURE__ */ o(
366
371
  "input",
367
372
  {
368
- ref: a,
369
- type: i,
370
- className: `${Et.textInput} ${c || ""}`,
373
+ ref: i,
374
+ type: l,
375
+ className: `${Bt.textInput} ${c || ""}`,
371
376
  placeholder: t,
372
377
  value: e,
373
378
  onChange: (b) => n?.(b.target.value),
374
379
  onFocus: s,
375
380
  onBlur: r,
376
- disabled: l
381
+ disabled: a
377
382
  }
378
383
  )
379
- ), Bt = "_selectInput_3f04b_1", gt = {
380
- selectInput: Bt
381
- }, se = $(
384
+ ), gt = "_selectInput_3f04b_1", Dt = {
385
+ selectInput: gt
386
+ }, ce = v(
382
387
  ({ className: t, children: e, ...n }, s) => /* @__PURE__ */ o(
383
388
  "select",
384
389
  {
385
390
  ref: s,
386
- className: `${gt.selectInput} ${t || ""}`,
391
+ className: `${Dt.selectInput} ${t || ""}`,
387
392
  ...n,
388
393
  children: e
389
394
  }
390
395
  )
391
- ), Dt = "_button_g5rur_1", St = "_secondary_g5rur_27", M = {
392
- button: Dt,
393
- secondary: St
396
+ ), St = "_button_g5rur_1", zt = "_secondary_g5rur_27", M = {
397
+ button: St,
398
+ secondary: zt
394
399
  };
395
- function ce({
400
+ function re({
396
401
  disabled: t = !1,
397
402
  type: e = "primary",
398
403
  onClick: n,
@@ -408,22 +413,22 @@ function ce({
408
413
  }
409
414
  );
410
415
  }
411
- const zt = "_balloon_1jdjr_1", jt = "_balloonOpen_1jdjr_22", N = {
412
- balloon: zt,
416
+ const Pt = "_balloon_1jdjr_1", jt = "_balloonOpen_1jdjr_22", N = {
417
+ balloon: Pt,
413
418
  balloonOpen: jt
414
419
  };
415
- function re({
420
+ function le({
416
421
  open: t,
417
422
  x: e,
418
423
  y: n,
419
424
  children: s,
420
425
  className: r,
421
- style: l,
422
- ...i
426
+ style: a,
427
+ ...l
423
428
  }) {
424
429
  const c = {};
425
430
  typeof e == "number" && (c.left = e), typeof n == "number" && (c.top = n);
426
- const a = [
431
+ const i = [
427
432
  N.balloon,
428
433
  t ? N.balloonOpen : "",
429
434
  r ?? ""
@@ -431,38 +436,38 @@ function re({
431
436
  return /* @__PURE__ */ o(
432
437
  "div",
433
438
  {
434
- ...i,
435
- className: a,
436
- style: { ...l, ...c },
439
+ ...l,
440
+ className: i,
441
+ style: { ...a, ...c },
437
442
  children: s
438
443
  }
439
444
  );
440
445
  }
441
446
  export {
442
- Pt as AppShell,
443
- re as Balloon,
444
- ce as Button,
445
- ne as Card,
446
- Yt as Content,
447
- Zt as ContextMenu,
448
- ee as EmptyView,
449
- ht as Icon,
450
- te as ListItem,
451
- qt as Popup,
452
- Kt as PopupActions,
453
- Gt as PopupButton,
454
- Lt as PopupDescription,
455
- Wt as PopupInput,
456
- Ft as PopupTitle,
457
- se as SelectInput,
447
+ qt as AppShell,
448
+ le as Balloon,
449
+ re as Button,
450
+ oe as Card,
451
+ Zt as Content,
452
+ te as ContextMenu,
453
+ ne as EmptyView,
454
+ Tt as Icon,
455
+ ee as ListItem,
456
+ Ft as Popup,
457
+ Gt as PopupActions,
458
+ Jt as PopupButton,
459
+ Wt as PopupDescription,
460
+ Kt as PopupInput,
461
+ Lt as PopupTitle,
462
+ ce as SelectInput,
458
463
  Rt as Sidebar,
459
464
  Ht as SidebarButton,
460
465
  Vt as SidebarItem,
461
466
  kt as SidebarTitle,
462
- oe as TextInput,
463
- Jt as Toolbar,
464
- Ut as ToolbarActions,
467
+ se as TextInput,
468
+ Qt as Toolbar,
469
+ Xt as ToolbarActions,
465
470
  dt as ToolbarButton,
466
- Xt as ToolbarExpandSidebarButton,
467
- Qt as ToolbarTitle
471
+ Yt as ToolbarExpandSidebarButton,
472
+ Ut as ToolbarTitle
468
473
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@htmlos-next/ui",
3
- "version": "0.0.0",
3
+ "version": "0.0.1",
4
4
  "type": "module",
5
5
  "main": "./dist/htmlos-ui.cjs",
6
6
  "module": "./dist/htmlos-ui.js",