@htmlos-next/ui 0.0.1 → 0.0.3

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,8 +1,9 @@
1
1
  interface ContentProps {
2
2
  expanded?: boolean;
3
3
  toolbar?: boolean;
4
+ margin?: string;
4
5
  children: React.ReactNode;
5
6
  }
6
- export declare function Content({ expanded, toolbar, children, }: ContentProps): import("react/jsx-runtime").JSX.Element;
7
+ export declare function Content({ expanded, toolbar, margin, children, }: ContentProps): import("react/jsx-runtime").JSX.Element;
7
8
  export {};
8
9
  //# 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,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
+ {"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,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,wBAAgB,OAAO,CAAC,EACtB,QAAe,EACf,OAAc,EACd,MAAM,EACN,QAAQ,GACT,EAAE,YAAY,2CAed"}
@@ -1,7 +1,8 @@
1
1
  interface ToolbarProps {
2
2
  expanded?: boolean;
3
+ collapsed?: boolean;
3
4
  children: React.ReactNode;
4
5
  }
5
- export declare function Toolbar({ expanded, children }: ToolbarProps): import("react/jsx-runtime").JSX.Element;
6
+ export declare function Toolbar({ expanded, collapsed, children, }: ToolbarProps): import("react/jsx-runtime").JSX.Element;
6
7
  export {};
7
8
  //# sourceMappingURL=Toolbar.d.ts.map
@@ -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,QAAe,EAAE,QAAQ,EAAE,EAAE,YAAY,2CAUlE"}
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,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,wBAAgB,OAAO,CAAC,EACtB,QAAe,EACf,SAAiB,EACjB,QAAQ,GACT,EAAE,YAAY,2CAUd"}
@@ -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_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:`
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_1rbls_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;z-index:9999;transition:top .3s,left .3s,width .3s}._toolbarCollapsed_1rbls_18{top:-100%}[device-type=mobile] ._toolbar_1rbls_1{top:5px;height:48px}._toolbarExpanded_1rbls_27{left:5px;width:calc(100% - 10px)}._toolbarTitle_1rbls_32{margin:0;font-size:1rem;font-weight:600}._toolbarActions_1rbls_38{background-color:var(--surface-bg);border-radius:16px;display:flex;flex-direction:row}._toolbarActions_1rbls_38 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 s=require("react/jsx-runtime"),i=require("react"),N=require("lucide-react"),I=i.createContext({isMobile:!1}),d=()=>i.useContext(I);function B({isMobile:t,sidebar:e,children:o,accentColor:n="#0088ff"}){return i.useLayoutEffect(()=>{n&&document.documentElement.style.setProperty("--accent",n)},[n]),s.jsx(I.Provider,{value:{isMobile:t},children:s.jsxs("div",{children:[s.jsx("aside",{children:e}),s.jsx("main",{children:o})]})})}const E="_sidebar_yoln4_1",S="_sidebarCollapsed_yoln4_18",P="_sidebarMobile_yoln4_22",g="_sidebarMobileHidden_yoln4_35",D="_sidebarContent_yoln4_39",A="_sidebarFooter_yoln4_48",u={sidebar:E,sidebarCollapsed:S,sidebarMobile:P,sidebarMobileHidden:g,sidebarContent:D,sidebarFooter:A};function z({open:t,footer:e,children:o}){const{isMobile:n}=d();return s.jsxs("div",{className:`
3
3
  ${u.sidebar}
4
4
  ${t?"":u.sidebarCollapsed}
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 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:`
5
+ ${n?u.sidebarMobile:""}
6
+ ${!t&&n?u.sidebarMobileHidden:""}`,children:[s.jsx("div",{className:u.sidebarContent,children:o}),e&&s.jsx("div",{className:u.sidebarFooter,children:e})]})}const w="_sidebarTitle_azx8n_1",R={sidebarTitle:w};function O({children:t}){return s.jsx("h2",{className:R.sidebarTitle,children:t})}const q="_sidebarItem_1e3ru_1",V="_selected_1e3ru_22",m={sidebarItem:q,selected:V};function k({onClick:t,onContextMenu:e,selected:o=!1,children:n}){const l=i.useRef(null),a=r=>{l.current=setTimeout(()=>{e&&(r.preventDefault(),e(r))},500)},c=()=>{l.current&&clearTimeout(l.current)};return s.jsx("div",{className:`${m.sidebarItem} ${o?m.selected:""}`,onClick:t,onContextMenu:r=>{r.preventDefault(),e&&e(r)},onTouchStart:a,onTouchEnd:c,onTouchMove:c,children:n})}const H="_sidebarMainBtn_65l8c_1",F={sidebarMainBtn:H};function L({onClick:t,children:e}){return s.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 s.jsx("div",{className:`${b.popupContainer} ${t?"":b.popupClosed}`,children:s.jsx("div",{className:b.popup,children:s.jsx("div",{className:b.popupContent,children:e})})})}const U="_popupTitle_4z5vb_1",X={popupTitle:U};function Y({children:t}){return s.jsx("span",{className:X.popupTitle,children:t})}const Z="_popupDescription_4ewx1_1",tt={popupDescription:Z};function et({children:t}){return s.jsx("span",{className:tt.popupDescription,children:t})}const ot="_popupInput_1b42s_1",nt={popupInput:ot},st=i.forwardRef(({placeholder:t="Enter text...",value:e,onChange:o,onSubmit:n,autoFocus:l},a)=>{const c=i.useRef(null),r=a||c;return i.useEffect(()=>{l&&r.current&&r.current.focus()},[l,r]),s.jsx("input",{ref:r,type:"text",className:nt.popupInput,placeholder:t,value:e,onChange:p=>o?.(p.target.value),onKeyDown:p=>{p.key==="Enter"&&n&&n(e||"")}})}),rt="_popupActions_84v2b_1",lt={popupActions:rt};function ct({orientation:t="vertical",children:e}){return s.jsx("div",{className:lt.popupActions,style:{flexDirection:t=="vertical"?"column":"row"},children:e})}const at="_popupBtn_ouvtc_1",it="_secondary_ouvtc_27",$={popupBtn:at,secondary:it};function pt({type:t="primary",onClick:e,children:o}){return s.jsx("button",{className:`${$.popupBtn} ${t=="secondary"?$.secondary:""}`,onClick:e,children:o})}const ut="_toolbar_1rbls_1",dt="_toolbarCollapsed_1rbls_18",bt="_toolbarExpanded_1rbls_27",_={toolbar:ut,toolbarCollapsed:dt,toolbarExpanded:bt};function _t({expanded:t=!0,collapsed:e=!1,children:o}){const{isMobile:n}=d();return s.jsx("div",{className:`${_.toolbar} ${t||n?_.toolbarExpanded:""} ${n?_.toolbarMobile:""} ${e?_.toolbarCollapsed:""}`,children:o})}const ft="_toolbarTitle_1p2s8_1",xt={toolbarTitle:ft};function yt({children:t}){return s.jsx("h3",{className:xt.toolbarTitle,children:t})}const mt="_toolbarActions_l0jv2_1",$t={toolbarActions:mt};function jt({children:t}){return s.jsx("div",{className:$t.toolbarActions,children:t})}const vt="_toolbarBtn_8jy1b_1",Tt={toolbarBtn:vt};function M({onClick:t,children:e}){return s.jsx("button",{onClick:o=>{o.preventDefault(),t&&t(o)},className:Tt.toolbarBtn,children:e})}const ht="_sidebarIcon_1lib1_1",It="_sidebarIconExpanded_1lib1_6",j={sidebarIcon:ht,sidebarIconExpanded:It};function Mt({onToggleSidebar:t,expanded:e=!1}){const{isMobile:o}=d();return s.jsx(M,{onClick:t,children:s.jsx(N.Menu,{size:o?24:18,className:`${j.sidebarIcon} ${e?j.sidebarIconExpanded:""}`})})}const Ct="_content_1naqr_1",Nt="_contentExpanded_1naqr_18",Bt="_toolbarPresent_1naqr_23",x={content:Ct,contentExpanded:Nt,toolbarPresent:Bt};function Et({expanded:t=!0,toolbar:e=!0,margin:o,children:n}){return s.jsx("div",{className:`${x.content} ${t?x.contentExpanded:""} ${e?x.toolbarPresent:""}`,style:o?{margin:o}:{},children:n})}const St="_contextMenu_vtnpl_1",Pt="_contextMenuOpen_vtnpl_22",y={contextMenu:St,contextMenuOpen:Pt};function gt({open:t,x:e=20,y:o=20,from:n="top-left",children:l}){const{isMobile:a}=d(),c={"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}=c[n],f={top:n.includes("top")?`${o}px`:"auto",bottom:n.includes("bottom")?`${o}px`:"auto",left:n.includes("left")?`${e}px`:"auto",right:n.includes("right")?`${e}px`:"auto","--tx-start":r,"--ty-start":p};return s.jsx("div",{className:`
7
7
  ${y.contextMenu}
8
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;
9
+ ${a?y.contextMenuMobile:""}
10
+ `,style:f,children:l})}const Dt="_listItem_7ga7e_1",At="_selected_7ga7e_23",v={listItem:Dt,selected:At};function zt({onClick:t,onContextMenu:e,selected:o=!1,children:n}){const l=i.useRef(null),a=r=>{l.current=setTimeout(()=>{e&&(r.preventDefault(),e(r))},500)},c=()=>{l.current&&clearTimeout(l.current)};return s.jsx("div",{className:`${v.listItem} ${o?v.selected:""}`,onClick:t,onContextMenu:r=>{r.preventDefault(),e&&e(r)},onTouchStart:a,onTouchEnd:c,onTouchMove:c,children:n})}function C({icon:t,size:e="default",color:o="default",className:n}){const{isMobile:l}=d(),a=e==="default"?l?24:18:e,c=o==="selected"?"var(--icon-color)":o;return o==="default"?s.jsx(t,{size:a,className:n,strokeWidth:l?2.5:2}):s.jsx(t,{size:a,color:c,className:n,strokeWidth:l?2.5:2})}const wt="_emptyView_1synn_1",Rt={emptyView:wt};function Ot({icon:t,label:e}){const{isMobile:o}=d(),n=o?64:48;return s.jsxs("div",{className:Rt.emptyView,children:[s.jsx(C,{icon:t,size:n,color:"var(--text-secondary)"}),s.jsx("h2",{children:e})]})}const qt="_card_zjz9h_1",Vt={card:qt};function kt({children:t}){return s.jsx("div",{className:Vt.card,children:t})}const Ht="_textInput_on5q4_1",Ft={textInput:Ht},Lt=i.forwardRef(({placeholder:t,value:e,onChange:o,onFocus:n,onBlur:l,disabled:a=!1,type:c="text",className:r},p)=>s.jsx("input",{ref:p,type:c,className:`${Ft.textInput} ${r||""}`,placeholder:t,value:e,onChange:f=>o?.(f.target.value),onFocus:n,onBlur:l,disabled:a})),Wt="_selectInput_3f04b_1",Kt={selectInput:Wt},Gt=i.forwardRef(({className:t,children:e,...o},n)=>s.jsx("select",{ref:n,className:`${Kt.selectInput} ${t||""}`,...o,children:e})),Jt="_button_g5rur_1",Qt="_secondary_g5rur_27",T={button:Jt,secondary:Qt};function Ut({disabled:t=!1,type:e="primary",onClick:o,children:n}){return s.jsx("button",{className:`${T.button} ${e=="secondary"?T.secondary:""}`,onClick:o,disabled:t,children:n})}const Xt="_balloon_1jdjr_1",Yt="_balloonOpen_1jdjr_22",h={balloon:Xt,balloonOpen:Yt};function Zt({open:t,x:e,y:o,children:n,className:l,style:a,...c}){const r={};typeof e=="number"&&(r.left=e),typeof o=="number"&&(r.top=o);const p=[h.balloon,t?h.balloonOpen:"",l??""].filter(Boolean).join(" ");return s.jsx("div",{...c,className:p,style:{...a,...r},children:n})}exports.AppShell=B;exports.Balloon=Zt;exports.Button=Ut;exports.Card=kt;exports.Content=Et;exports.ContextMenu=gt;exports.EmptyView=Ot;exports.Icon=C;exports.ListItem=zt;exports.Popup=Q;exports.PopupActions=ct;exports.PopupButton=pt;exports.PopupDescription=et;exports.PopupInput=st;exports.PopupTitle=Y;exports.SelectInput=Gt;exports.Sidebar=z;exports.SidebarButton=L;exports.SidebarItem=k;exports.SidebarTitle=O;exports.TextInput=Lt;exports.Toolbar=_t;exports.ToolbarActions=jt;exports.ToolbarButton=M;exports.ToolbarExpandSidebarButton=Mt;exports.ToolbarTitle=yt;
package/dist/htmlos-ui.js CHANGED
@@ -1,19 +1,19 @@
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";
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_1rbls_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;z-index:9999;transition:top .3s,left .3s,width .3s}._toolbarCollapsed_1rbls_18{top:-100%}[device-type=mobile] ._toolbar_1rbls_1{top:5px;height:48px}._toolbarExpanded_1rbls_27{left:5px;width:calc(100% - 10px)}._toolbarTitle_1rbls_32{margin:0;font-size:1rem;font-weight:600}._toolbarActions_1rbls_38{background-color:var(--surface-bg);border-radius:16px;display:flex;flex-direction:row}._toolbarActions_1rbls_38 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 s, jsxs as m } from "react/jsx-runtime";
3
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
- const C = E({ isMobile: !1 }), u = () => B(C);
6
- function qt({
5
+ const N = E({ isMobile: !1 }), u = () => B(N);
6
+ function kt({
7
7
  isMobile: t,
8
8
  sidebar: e,
9
- children: n,
10
- accentColor: s = "#0088ff"
9
+ children: o,
10
+ accentColor: n = "#0088ff"
11
11
  }) {
12
12
  return g(() => {
13
- s && document.documentElement.style.setProperty("--accent", s);
14
- }, [s]), /* @__PURE__ */ o(C.Provider, { value: { isMobile: t }, children: /* @__PURE__ */ m("div", { children: [
15
- /* @__PURE__ */ o("aside", { children: e }),
16
- /* @__PURE__ */ o("main", { children: n })
13
+ n && document.documentElement.style.setProperty("--accent", n);
14
+ }, [n]), /* @__PURE__ */ s(N.Provider, { value: { isMobile: t }, children: /* @__PURE__ */ m("div", { children: [
15
+ /* @__PURE__ */ s("aside", { children: e }),
16
+ /* @__PURE__ */ s("main", { children: o })
17
17
  ] }) });
18
18
  }
19
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 = {
@@ -24,66 +24,66 @@ const z = "_sidebar_yoln4_1", P = "_sidebarCollapsed_yoln4_18", j = "_sidebarMob
24
24
  sidebarContent: w,
25
25
  sidebarFooter: O
26
26
  };
27
- function Rt({ open: t, footer: e, children: n }) {
28
- const { isMobile: s } = u();
27
+ function Vt({ open: t, footer: e, children: o }) {
28
+ const { isMobile: n } = u();
29
29
  return /* @__PURE__ */ m(
30
30
  "div",
31
31
  {
32
32
  className: `
33
33
  ${p.sidebar}
34
34
  ${t ? "" : p.sidebarCollapsed}
35
- ${s ? p.sidebarMobile : ""}
36
- ${!t && s ? p.sidebarMobileHidden : ""}`,
35
+ ${n ? p.sidebarMobile : ""}
36
+ ${!t && n ? p.sidebarMobileHidden : ""}`,
37
37
  children: [
38
- /* @__PURE__ */ o("div", { className: p.sidebarContent, children: n }),
39
- e && /* @__PURE__ */ o("div", { className: p.sidebarFooter, children: e })
38
+ /* @__PURE__ */ s("div", { className: p.sidebarContent, children: o }),
39
+ e && /* @__PURE__ */ s("div", { className: p.sidebarFooter, children: e })
40
40
  ]
41
41
  }
42
42
  );
43
43
  }
44
- const q = "_sidebarTitle_azx8n_1", R = {
45
- sidebarTitle: q
44
+ const R = "_sidebarTitle_azx8n_1", k = {
45
+ sidebarTitle: R
46
46
  };
47
- function kt({ children: t }) {
48
- return /* @__PURE__ */ o("h2", { className: R.sidebarTitle, children: t });
47
+ function qt({ children: t }) {
48
+ return /* @__PURE__ */ s("h2", { className: k.sidebarTitle, children: t });
49
49
  }
50
- const k = "_sidebarItem_1e3ru_1", V = "_selected_1e3ru_22", x = {
51
- sidebarItem: k,
52
- selected: V
50
+ const V = "_sidebarItem_1e3ru_1", q = "_selected_1e3ru_22", x = {
51
+ sidebarItem: V,
52
+ selected: q
53
53
  };
54
- function Vt({
54
+ function Ht({
55
55
  onClick: t,
56
56
  onContextMenu: e,
57
- selected: n = !1,
58
- children: s
57
+ selected: o = !1,
58
+ children: n
59
59
  }) {
60
- const r = $(null), a = (c) => {
61
- r.current = setTimeout(() => {
62
- e && (c.preventDefault(), e(c));
60
+ const c = $(null), a = (r) => {
61
+ c.current = setTimeout(() => {
62
+ e && (r.preventDefault(), e(r));
63
63
  }, 500);
64
64
  }, l = () => {
65
- r.current && clearTimeout(r.current);
65
+ c.current && clearTimeout(c.current);
66
66
  };
67
- return /* @__PURE__ */ o(
67
+ return /* @__PURE__ */ s(
68
68
  "div",
69
69
  {
70
- className: `${x.sidebarItem} ${n ? x.selected : ""}`,
70
+ className: `${x.sidebarItem} ${o ? x.selected : ""}`,
71
71
  onClick: t,
72
- onContextMenu: (c) => {
73
- c.preventDefault(), e && e(c);
72
+ onContextMenu: (r) => {
73
+ r.preventDefault(), e && e(r);
74
74
  },
75
75
  onTouchStart: a,
76
76
  onTouchEnd: l,
77
77
  onTouchMove: l,
78
- children: s
78
+ children: n
79
79
  }
80
80
  );
81
81
  }
82
82
  const H = "_sidebarMainBtn_65l8c_1", F = {
83
83
  sidebarMainBtn: H
84
84
  };
85
- function Ht({ onClick: t, children: e }) {
86
- return /* @__PURE__ */ o("button", { className: F.sidebarMainBtn, onClick: t, children: e });
85
+ function Ft({ onClick: t, children: e }) {
86
+ return /* @__PURE__ */ s("button", { className: F.sidebarMainBtn, onClick: t, children: e });
87
87
  }
88
88
  const L = "_popupContainer_vz8rg_1", W = "_popupClosed_vz8rg_18", K = "_popup_vz8rg_1", G = "_popupContent_vz8rg_44", d = {
89
89
  popupContainer: L,
@@ -91,45 +91,45 @@ const L = "_popupContainer_vz8rg_1", W = "_popupClosed_vz8rg_18", K = "_popup_vz
91
91
  popup: K,
92
92
  popupContent: G
93
93
  };
94
- function Ft({ open: t = !1, children: e }) {
95
- return /* @__PURE__ */ o(
94
+ function Lt({ open: t = !1, children: e }) {
95
+ return /* @__PURE__ */ s(
96
96
  "div",
97
97
  {
98
98
  className: `${d.popupContainer} ${t ? "" : d.popupClosed}`,
99
- children: /* @__PURE__ */ o("div", { className: d.popup, children: /* @__PURE__ */ o("div", { className: d.popupContent, children: e }) })
99
+ children: /* @__PURE__ */ s("div", { className: d.popup, children: /* @__PURE__ */ s("div", { className: d.popupContent, children: e }) })
100
100
  }
101
101
  );
102
102
  }
103
103
  const J = "_popupTitle_4z5vb_1", Q = {
104
104
  popupTitle: J
105
105
  };
106
- function Lt({ children: t }) {
107
- return /* @__PURE__ */ o("span", { className: Q.popupTitle, children: t });
106
+ function Wt({ children: t }) {
107
+ return /* @__PURE__ */ s("span", { className: Q.popupTitle, children: t });
108
108
  }
109
109
  const U = "_popupDescription_4ewx1_1", X = {
110
110
  popupDescription: U
111
111
  };
112
- function Wt({ children: t }) {
113
- return /* @__PURE__ */ o("span", { className: X.popupDescription, children: t });
112
+ function Kt({ children: t }) {
113
+ return /* @__PURE__ */ s("span", { className: X.popupDescription, children: t });
114
114
  }
115
115
  const Y = "_popupInput_1b42s_1", Z = {
116
116
  popupInput: Y
117
- }, Kt = v(
118
- ({ placeholder: t = "Enter text...", value: e, onChange: n, onSubmit: s, autoFocus: r }, a) => {
119
- const l = $(null), c = a || l;
117
+ }, Gt = v(
118
+ ({ placeholder: t = "Enter text...", value: e, onChange: o, onSubmit: n, autoFocus: c }, a) => {
119
+ const l = $(null), r = a || l;
120
120
  return D(() => {
121
- r && c.current && c.current.focus();
122
- }, [r, c]), /* @__PURE__ */ o(
121
+ c && r.current && r.current.focus();
122
+ }, [c, r]), /* @__PURE__ */ s(
123
123
  "input",
124
124
  {
125
- ref: c,
125
+ ref: r,
126
126
  type: "text",
127
127
  className: Z.popupInput,
128
128
  placeholder: t,
129
129
  value: e,
130
- onChange: (i) => n?.(i.target.value),
130
+ onChange: (i) => o?.(i.target.value),
131
131
  onKeyDown: (i) => {
132
- i.key === "Enter" && s && s(e || "");
132
+ i.key === "Enter" && n && n(e || "");
133
133
  }
134
134
  }
135
135
  );
@@ -137,11 +137,11 @@ const Y = "_popupInput_1b42s_1", Z = {
137
137
  ), tt = "_popupActions_84v2b_1", et = {
138
138
  popupActions: tt
139
139
  };
140
- function Gt({
140
+ function Jt({
141
141
  orientation: t = "vertical",
142
142
  children: e
143
143
  }) {
144
- return /* @__PURE__ */ o(
144
+ return /* @__PURE__ */ s(
145
145
  "div",
146
146
  {
147
147
  className: et.popupActions,
@@ -152,125 +152,134 @@ function Gt({
152
152
  }
153
153
  );
154
154
  }
155
- const nt = "_popupBtn_ouvtc_1", ot = "_secondary_ouvtc_27", h = {
156
- popupBtn: nt,
157
- secondary: ot
155
+ const ot = "_popupBtn_ouvtc_1", nt = "_secondary_ouvtc_27", h = {
156
+ popupBtn: ot,
157
+ secondary: nt
158
158
  };
159
- function Jt({
159
+ function Qt({
160
160
  type: t = "primary",
161
161
  onClick: e,
162
- children: n
162
+ children: o
163
163
  }) {
164
- return /* @__PURE__ */ o(
164
+ return /* @__PURE__ */ s(
165
165
  "button",
166
166
  {
167
167
  className: `${h.popupBtn} ${t == "secondary" ? h.secondary : ""}`,
168
168
  onClick: e,
169
- children: n
169
+ children: o
170
170
  }
171
171
  );
172
172
  }
173
- const st = "_toolbar_18bqr_1", ct = "_toolbarExpanded_18bqr_21", _ = {
173
+ const st = "_toolbar_1rbls_1", rt = "_toolbarCollapsed_1rbls_18", ct = "_toolbarExpanded_1rbls_27", b = {
174
174
  toolbar: st,
175
+ toolbarCollapsed: rt,
175
176
  toolbarExpanded: ct
176
177
  };
177
- function Qt({ expanded: t = !0, children: e }) {
178
+ function Ut({
179
+ expanded: t = !0,
180
+ collapsed: e = !1,
181
+ children: o
182
+ }) {
178
183
  const { isMobile: n } = u();
179
- return /* @__PURE__ */ o(
184
+ return /* @__PURE__ */ s(
180
185
  "div",
181
186
  {
182
- className: `${_.toolbar} ${t || n ? _.toolbarExpanded : ""} ${n ? _.toolbarMobile : ""}`,
183
- children: e
187
+ className: `${b.toolbar} ${t || n ? b.toolbarExpanded : ""} ${n ? b.toolbarMobile : ""} ${e ? b.toolbarCollapsed : ""}`,
188
+ children: o
184
189
  }
185
190
  );
186
191
  }
187
- const rt = "_toolbarTitle_1p2s8_1", lt = {
188
- toolbarTitle: rt
192
+ const lt = "_toolbarTitle_1p2s8_1", at = {
193
+ toolbarTitle: lt
189
194
  };
190
- function Ut({ children: t }) {
191
- return /* @__PURE__ */ o("h3", { className: lt.toolbarTitle, children: t });
195
+ function Xt({ children: t }) {
196
+ return /* @__PURE__ */ s("h3", { className: at.toolbarTitle, children: t });
192
197
  }
193
- const at = "_toolbarActions_l0jv2_1", it = {
194
- toolbarActions: at
198
+ const it = "_toolbarActions_l0jv2_1", pt = {
199
+ toolbarActions: it
195
200
  };
196
- function Xt({ children: t }) {
197
- return /* @__PURE__ */ o("div", { className: it.toolbarActions, children: t });
201
+ function Yt({ children: t }) {
202
+ return /* @__PURE__ */ s("div", { className: pt.toolbarActions, children: t });
198
203
  }
199
- const pt = "_toolbarBtn_8jy1b_1", ut = {
200
- toolbarBtn: pt
204
+ const ut = "_toolbarBtn_8jy1b_1", dt = {
205
+ toolbarBtn: ut
201
206
  };
202
- function dt({ onClick: t, children: e }) {
203
- return /* @__PURE__ */ o(
207
+ function bt({ onClick: t, children: e }) {
208
+ return /* @__PURE__ */ s(
204
209
  "button",
205
210
  {
206
- onClick: (n) => {
207
- n.preventDefault(), t && t(n);
211
+ onClick: (o) => {
212
+ o.preventDefault(), t && t(o);
208
213
  },
209
- className: ut.toolbarBtn,
214
+ className: dt.toolbarBtn,
210
215
  children: e
211
216
  }
212
217
  );
213
218
  }
214
- const bt = "_sidebarIcon_1lib1_1", _t = "_sidebarIconExpanded_1lib1_6", T = {
215
- sidebarIcon: bt,
216
- sidebarIconExpanded: _t
219
+ const _t = "_sidebarIcon_1lib1_1", ft = "_sidebarIconExpanded_1lib1_6", T = {
220
+ sidebarIcon: _t,
221
+ sidebarIconExpanded: ft
217
222
  };
218
- function Yt({
223
+ function Zt({
219
224
  onToggleSidebar: t,
220
225
  expanded: e = !1
221
226
  }) {
222
- const { isMobile: n } = u();
223
- return /* @__PURE__ */ o(dt, { onClick: t, children: /* @__PURE__ */ o(
227
+ const { isMobile: o } = u();
228
+ return /* @__PURE__ */ s(bt, { onClick: t, children: /* @__PURE__ */ s(
224
229
  S,
225
230
  {
226
- size: n ? 24 : 18,
231
+ size: o ? 24 : 18,
227
232
  className: `${T.sidebarIcon} ${e ? T.sidebarIconExpanded : ""}`
228
233
  }
229
234
  ) });
230
235
  }
231
- const ft = "_content_1naqr_1", yt = "_contentExpanded_1naqr_18", mt = "_toolbarPresent_1naqr_23", f = {
232
- content: ft,
233
- contentExpanded: yt,
234
- toolbarPresent: mt
236
+ const yt = "_content_1naqr_1", mt = "_contentExpanded_1naqr_18", $t = "_toolbarPresent_1naqr_23", f = {
237
+ content: yt,
238
+ contentExpanded: mt,
239
+ toolbarPresent: $t
235
240
  };
236
- function Zt({
241
+ function te({
237
242
  expanded: t = !0,
238
243
  toolbar: e = !0,
244
+ margin: o,
239
245
  children: n
240
246
  }) {
241
- return /* @__PURE__ */ o(
247
+ return /* @__PURE__ */ s(
242
248
  "div",
243
249
  {
244
250
  className: `${f.content} ${t ? f.contentExpanded : ""} ${e ? f.toolbarPresent : ""}`,
251
+ style: o ? {
252
+ margin: o
253
+ } : {},
245
254
  children: n
246
255
  }
247
256
  );
248
257
  }
249
- const $t = "_contextMenu_vtnpl_1", vt = "_contextMenuOpen_vtnpl_22", y = {
250
- contextMenu: $t,
251
- contextMenuOpen: vt
258
+ const vt = "_contextMenu_vtnpl_1", xt = "_contextMenuOpen_vtnpl_22", y = {
259
+ contextMenu: vt,
260
+ contextMenuOpen: xt
252
261
  };
253
- function te({
262
+ function ee({
254
263
  open: t,
255
264
  x: e = 20,
256
- y: n = 20,
257
- from: s = "top-left",
258
- children: r
265
+ y: o = 20,
266
+ from: n = "top-left",
267
+ children: c
259
268
  }) {
260
269
  const { isMobile: a } = u(), l = {
261
270
  "top-left": { tx: "-30%", ty: "-30%" },
262
271
  "top-right": { tx: "30%", ty: "-30%" },
263
272
  "bottom-left": { tx: "-30%", ty: "30%" },
264
273
  "bottom-right": { tx: "30%", ty: "30%" }
265
- }, { tx: c, ty: i } = l[s], b = {
266
- top: s.includes("top") ? `${n}px` : "auto",
267
- bottom: s.includes("bottom") ? `${n}px` : "auto",
268
- left: s.includes("left") ? `${e}px` : "auto",
269
- right: s.includes("right") ? `${e}px` : "auto",
270
- "--tx-start": c,
274
+ }, { tx: r, ty: i } = l[n], _ = {
275
+ top: n.includes("top") ? `${o}px` : "auto",
276
+ bottom: n.includes("bottom") ? `${o}px` : "auto",
277
+ left: n.includes("left") ? `${e}px` : "auto",
278
+ right: n.includes("right") ? `${e}px` : "auto",
279
+ "--tx-start": r,
271
280
  "--ty-start": i
272
281
  };
273
- return /* @__PURE__ */ o(
282
+ return /* @__PURE__ */ s(
274
283
  "div",
275
284
  {
276
285
  className: `
@@ -278,196 +287,196 @@ function te({
278
287
  ${t ? y.contextMenuOpen : ""}
279
288
  ${a ? y.contextMenuMobile : ""}
280
289
  `,
281
- style: b,
282
- children: r
290
+ style: _,
291
+ children: c
283
292
  }
284
293
  );
285
294
  }
286
- const xt = "_listItem_7ga7e_1", ht = "_selected_7ga7e_23", I = {
287
- listItem: xt,
288
- selected: ht
295
+ const ht = "_listItem_7ga7e_1", Tt = "_selected_7ga7e_23", I = {
296
+ listItem: ht,
297
+ selected: Tt
289
298
  };
290
- function ee({
299
+ function oe({
291
300
  onClick: t,
292
301
  onContextMenu: e,
293
- selected: n = !1,
294
- children: s
302
+ selected: o = !1,
303
+ children: n
295
304
  }) {
296
- const r = $(null), a = (c) => {
297
- r.current = setTimeout(() => {
298
- e && (c.preventDefault(), e(c));
305
+ const c = $(null), a = (r) => {
306
+ c.current = setTimeout(() => {
307
+ e && (r.preventDefault(), e(r));
299
308
  }, 500);
300
309
  }, l = () => {
301
- r.current && clearTimeout(r.current);
310
+ c.current && clearTimeout(c.current);
302
311
  };
303
- return /* @__PURE__ */ o(
312
+ return /* @__PURE__ */ s(
304
313
  "div",
305
314
  {
306
- className: `${I.listItem} ${n ? I.selected : ""}`,
315
+ className: `${I.listItem} ${o ? I.selected : ""}`,
307
316
  onClick: t,
308
- onContextMenu: (c) => {
309
- c.preventDefault(), e && e(c);
317
+ onContextMenu: (r) => {
318
+ r.preventDefault(), e && e(r);
310
319
  },
311
320
  onTouchStart: a,
312
321
  onTouchEnd: l,
313
322
  onTouchMove: l,
314
- children: s
323
+ children: n
315
324
  }
316
325
  );
317
326
  }
318
- function Tt({
327
+ function It({
319
328
  icon: t,
320
329
  size: e = "default",
321
- color: n = "default",
322
- className: s
330
+ color: o = "default",
331
+ className: n
323
332
  }) {
324
- const { isMobile: r } = u(), a = e === "default" ? r ? 24 : 18 : e, l = n === "selected" ? "var(--icon-color)" : n;
325
- return n === "default" ? /* @__PURE__ */ o(
333
+ const { isMobile: c } = u(), a = e === "default" ? c ? 24 : 18 : e, l = o === "selected" ? "var(--icon-color)" : o;
334
+ return o === "default" ? /* @__PURE__ */ s(
326
335
  t,
327
336
  {
328
337
  size: a,
329
- className: s,
330
- strokeWidth: r ? 2.5 : 2
338
+ className: n,
339
+ strokeWidth: c ? 2.5 : 2
331
340
  }
332
- ) : /* @__PURE__ */ o(
341
+ ) : /* @__PURE__ */ s(
333
342
  t,
334
343
  {
335
344
  size: a,
336
345
  color: l,
337
- className: s,
338
- strokeWidth: r ? 2.5 : 2
346
+ className: n,
347
+ strokeWidth: c ? 2.5 : 2
339
348
  }
340
349
  );
341
350
  }
342
- const It = "_emptyView_1synn_1", Mt = {
343
- emptyView: It
351
+ const Mt = "_emptyView_1synn_1", Ct = {
352
+ emptyView: Mt
344
353
  };
345
354
  function ne({ icon: t, label: e }) {
346
- const { isMobile: n } = u(), s = n ? 64 : 48;
347
- return /* @__PURE__ */ m("div", { className: Mt.emptyView, children: [
348
- /* @__PURE__ */ o(Tt, { icon: t, size: s, color: "var(--text-secondary)" }),
349
- /* @__PURE__ */ o("h2", { children: e })
355
+ const { isMobile: o } = u(), n = o ? 64 : 48;
356
+ return /* @__PURE__ */ m("div", { className: Ct.emptyView, children: [
357
+ /* @__PURE__ */ s(It, { icon: t, size: n, color: "var(--text-secondary)" }),
358
+ /* @__PURE__ */ s("h2", { children: e })
350
359
  ] });
351
360
  }
352
- const Nt = "_card_zjz9h_1", Ct = {
361
+ const Nt = "_card_zjz9h_1", Et = {
353
362
  card: Nt
354
363
  };
355
- function oe({ children: t }) {
356
- return /* @__PURE__ */ o("div", { className: Ct.card, children: t });
364
+ function se({ children: t }) {
365
+ return /* @__PURE__ */ s("div", { className: Et.card, children: t });
357
366
  }
358
- const Et = "_textInput_on5q4_1", Bt = {
359
- textInput: Et
360
- }, se = v(
367
+ const Bt = "_textInput_on5q4_1", gt = {
368
+ textInput: Bt
369
+ }, re = v(
361
370
  ({
362
371
  placeholder: t,
363
372
  value: e,
364
- onChange: n,
365
- onFocus: s,
366
- onBlur: r,
373
+ onChange: o,
374
+ onFocus: n,
375
+ onBlur: c,
367
376
  disabled: a = !1,
368
377
  type: l = "text",
369
- className: c
370
- }, i) => /* @__PURE__ */ o(
378
+ className: r
379
+ }, i) => /* @__PURE__ */ s(
371
380
  "input",
372
381
  {
373
382
  ref: i,
374
383
  type: l,
375
- className: `${Bt.textInput} ${c || ""}`,
384
+ className: `${gt.textInput} ${r || ""}`,
376
385
  placeholder: t,
377
386
  value: e,
378
- onChange: (b) => n?.(b.target.value),
379
- onFocus: s,
380
- onBlur: r,
387
+ onChange: (_) => o?.(_.target.value),
388
+ onFocus: n,
389
+ onBlur: c,
381
390
  disabled: a
382
391
  }
383
392
  )
384
- ), gt = "_selectInput_3f04b_1", Dt = {
385
- selectInput: gt
393
+ ), Dt = "_selectInput_3f04b_1", St = {
394
+ selectInput: Dt
386
395
  }, ce = v(
387
- ({ className: t, children: e, ...n }, s) => /* @__PURE__ */ o(
396
+ ({ className: t, children: e, ...o }, n) => /* @__PURE__ */ s(
388
397
  "select",
389
398
  {
390
- ref: s,
391
- className: `${Dt.selectInput} ${t || ""}`,
392
- ...n,
399
+ ref: n,
400
+ className: `${St.selectInput} ${t || ""}`,
401
+ ...o,
393
402
  children: e
394
403
  }
395
404
  )
396
- ), St = "_button_g5rur_1", zt = "_secondary_g5rur_27", M = {
397
- button: St,
398
- secondary: zt
405
+ ), zt = "_button_g5rur_1", Pt = "_secondary_g5rur_27", M = {
406
+ button: zt,
407
+ secondary: Pt
399
408
  };
400
- function re({
409
+ function le({
401
410
  disabled: t = !1,
402
411
  type: e = "primary",
403
- onClick: n,
404
- children: s
412
+ onClick: o,
413
+ children: n
405
414
  }) {
406
- return /* @__PURE__ */ o(
415
+ return /* @__PURE__ */ s(
407
416
  "button",
408
417
  {
409
418
  className: `${M.button} ${e == "secondary" ? M.secondary : ""}`,
410
- onClick: n,
419
+ onClick: o,
411
420
  disabled: t,
412
- children: s
421
+ children: n
413
422
  }
414
423
  );
415
424
  }
416
- const Pt = "_balloon_1jdjr_1", jt = "_balloonOpen_1jdjr_22", N = {
417
- balloon: Pt,
418
- balloonOpen: jt
425
+ const jt = "_balloon_1jdjr_1", At = "_balloonOpen_1jdjr_22", C = {
426
+ balloon: jt,
427
+ balloonOpen: At
419
428
  };
420
- function le({
429
+ function ae({
421
430
  open: t,
422
431
  x: e,
423
- y: n,
424
- children: s,
425
- className: r,
432
+ y: o,
433
+ children: n,
434
+ className: c,
426
435
  style: a,
427
436
  ...l
428
437
  }) {
429
- const c = {};
430
- typeof e == "number" && (c.left = e), typeof n == "number" && (c.top = n);
438
+ const r = {};
439
+ typeof e == "number" && (r.left = e), typeof o == "number" && (r.top = o);
431
440
  const i = [
432
- N.balloon,
433
- t ? N.balloonOpen : "",
434
- r ?? ""
441
+ C.balloon,
442
+ t ? C.balloonOpen : "",
443
+ c ?? ""
435
444
  ].filter(Boolean).join(" ");
436
- return /* @__PURE__ */ o(
445
+ return /* @__PURE__ */ s(
437
446
  "div",
438
447
  {
439
448
  ...l,
440
449
  className: i,
441
- style: { ...a, ...c },
442
- children: s
450
+ style: { ...a, ...r },
451
+ children: n
443
452
  }
444
453
  );
445
454
  }
446
455
  export {
447
- qt as AppShell,
448
- le as Balloon,
449
- re as Button,
450
- oe as Card,
451
- Zt as Content,
452
- te as ContextMenu,
456
+ kt as AppShell,
457
+ ae as Balloon,
458
+ le as Button,
459
+ se as Card,
460
+ te as Content,
461
+ ee as ContextMenu,
453
462
  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,
463
+ It as Icon,
464
+ oe as ListItem,
465
+ Lt as Popup,
466
+ Jt as PopupActions,
467
+ Qt as PopupButton,
468
+ Kt as PopupDescription,
469
+ Gt as PopupInput,
470
+ Wt as PopupTitle,
462
471
  ce as SelectInput,
463
- Rt as Sidebar,
464
- Ht as SidebarButton,
465
- Vt as SidebarItem,
466
- kt as SidebarTitle,
467
- se as TextInput,
468
- Qt as Toolbar,
469
- Xt as ToolbarActions,
470
- dt as ToolbarButton,
471
- Yt as ToolbarExpandSidebarButton,
472
- Ut as ToolbarTitle
472
+ Vt as Sidebar,
473
+ Ft as SidebarButton,
474
+ Ht as SidebarItem,
475
+ qt as SidebarTitle,
476
+ re as TextInput,
477
+ Ut as Toolbar,
478
+ Yt as ToolbarActions,
479
+ bt as ToolbarButton,
480
+ Zt as ToolbarExpandSidebarButton,
481
+ Xt as ToolbarTitle
473
482
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@htmlos-next/ui",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "type": "module",
5
5
  "main": "./dist/htmlos-ui.cjs",
6
6
  "module": "./dist/htmlos-ui.js",