@htmlos-next/ui 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +73 -0
- package/dist/components/AppShell/AppShell.d.ts +10 -0
- package/dist/components/AppShell/AppShell.d.ts.map +1 -0
- package/dist/components/Balloon/Balloon.d.ts +10 -0
- package/dist/components/Balloon/Balloon.d.ts.map +1 -0
- package/dist/components/Button/Button.d.ts +9 -0
- package/dist/components/Button/Button.d.ts.map +1 -0
- package/dist/components/Card/Card.d.ts +6 -0
- package/dist/components/Card/Card.d.ts.map +1 -0
- package/dist/components/Content/Content.d.ts +7 -0
- package/dist/components/Content/Content.d.ts.map +1 -0
- package/dist/components/ContextMenu/ContextMenu.d.ts +11 -0
- package/dist/components/ContextMenu/ContextMenu.d.ts.map +1 -0
- package/dist/components/DeviceContext/DeviceContext.d.ts +7 -0
- package/dist/components/DeviceContext/DeviceContext.d.ts.map +1 -0
- package/dist/components/EmptyView/EmptyView.d.ts +14 -0
- package/dist/components/EmptyView/EmptyView.d.ts.map +1 -0
- package/dist/components/Icon/Icon.d.ts +16 -0
- package/dist/components/Icon/Icon.d.ts.map +1 -0
- package/dist/components/ListItem/ListItem.d.ts +10 -0
- package/dist/components/ListItem/ListItem.d.ts.map +1 -0
- package/dist/components/Popup/Popup.d.ts +7 -0
- package/dist/components/Popup/Popup.d.ts.map +1 -0
- package/dist/components/PopupActions/PopupActions.d.ts +7 -0
- package/dist/components/PopupActions/PopupActions.d.ts.map +1 -0
- package/dist/components/PopupButton/PopupButton.d.ts +8 -0
- package/dist/components/PopupButton/PopupButton.d.ts.map +1 -0
- package/dist/components/PopupDescription/PopupDescription.d.ts +6 -0
- package/dist/components/PopupDescription/PopupDescription.d.ts.map +1 -0
- package/dist/components/PopupInput/PopupInput.d.ts +10 -0
- package/dist/components/PopupInput/PopupInput.d.ts.map +1 -0
- package/dist/components/PopupTitle/PopupTitle.d.ts +6 -0
- package/dist/components/PopupTitle/PopupTitle.d.ts.map +1 -0
- package/dist/components/SelectInput/SelectInput.d.ts +7 -0
- package/dist/components/SelectInput/SelectInput.d.ts.map +1 -0
- package/dist/components/Sidebar/Sidebar.d.ts +9 -0
- package/dist/components/Sidebar/Sidebar.d.ts.map +1 -0
- package/dist/components/SidebarButton/SidebarButton.d.ts +8 -0
- package/dist/components/SidebarButton/SidebarButton.d.ts.map +1 -0
- package/dist/components/SidebarItem/SidebarItem.d.ts +10 -0
- package/dist/components/SidebarItem/SidebarItem.d.ts.map +1 -0
- package/dist/components/SidebarTitle/SidebarTitle.d.ts +7 -0
- package/dist/components/SidebarTitle/SidebarTitle.d.ts.map +1 -0
- package/dist/components/TextInput/TextInput.d.ts +13 -0
- package/dist/components/TextInput/TextInput.d.ts.map +1 -0
- package/dist/components/Toolbar/Toolbar.d.ts +7 -0
- package/dist/components/Toolbar/Toolbar.d.ts.map +1 -0
- package/dist/components/ToolbarActions/ToolbarActions.d.ts +6 -0
- package/dist/components/ToolbarActions/ToolbarActions.d.ts.map +1 -0
- package/dist/components/ToolbarButton/ToolbarButton.d.ts +7 -0
- package/dist/components/ToolbarButton/ToolbarButton.d.ts.map +1 -0
- package/dist/components/ToolbarExpandSidebarButton/ToolbarExpandSidebarButton.d.ts +7 -0
- package/dist/components/ToolbarExpandSidebarButton/ToolbarExpandSidebarButton.d.ts.map +1 -0
- package/dist/components/ToolbarTitle/ToolbarTitle.d.ts +6 -0
- package/dist/components/ToolbarTitle/ToolbarTitle.d.ts.map +1 -0
- package/dist/htmlos-ui.cjs +10 -0
- package/dist/htmlos-ui.js +468 -0
- package/dist/index.d.ts +27 -0
- package/dist/index.d.ts.map +1 -0
- package/package.json +48 -0
package/README.md
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# React + TypeScript + Vite
|
|
2
|
+
|
|
3
|
+
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
|
|
4
|
+
|
|
5
|
+
Currently, two official plugins are available:
|
|
6
|
+
|
|
7
|
+
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Babel](https://babeljs.io/) (or [oxc](https://oxc.rs) when used in [rolldown-vite](https://vite.dev/guide/rolldown)) for Fast Refresh
|
|
8
|
+
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
|
|
9
|
+
|
|
10
|
+
## React Compiler
|
|
11
|
+
|
|
12
|
+
The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see [this documentation](https://react.dev/learn/react-compiler/installation).
|
|
13
|
+
|
|
14
|
+
## Expanding the ESLint configuration
|
|
15
|
+
|
|
16
|
+
If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
|
|
17
|
+
|
|
18
|
+
```js
|
|
19
|
+
export default defineConfig([
|
|
20
|
+
globalIgnores(['dist']),
|
|
21
|
+
{
|
|
22
|
+
files: ['**/*.{ts,tsx}'],
|
|
23
|
+
extends: [
|
|
24
|
+
// Other configs...
|
|
25
|
+
|
|
26
|
+
// Remove tseslint.configs.recommended and replace with this
|
|
27
|
+
tseslint.configs.recommendedTypeChecked,
|
|
28
|
+
// Alternatively, use this for stricter rules
|
|
29
|
+
tseslint.configs.strictTypeChecked,
|
|
30
|
+
// Optionally, add this for stylistic rules
|
|
31
|
+
tseslint.configs.stylisticTypeChecked,
|
|
32
|
+
|
|
33
|
+
// Other configs...
|
|
34
|
+
],
|
|
35
|
+
languageOptions: {
|
|
36
|
+
parserOptions: {
|
|
37
|
+
project: ['./tsconfig.node.json', './tsconfig.app.json'],
|
|
38
|
+
tsconfigRootDir: import.meta.dirname,
|
|
39
|
+
},
|
|
40
|
+
// other options...
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
])
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules:
|
|
47
|
+
|
|
48
|
+
```js
|
|
49
|
+
// eslint.config.js
|
|
50
|
+
import reactX from 'eslint-plugin-react-x'
|
|
51
|
+
import reactDom from 'eslint-plugin-react-dom'
|
|
52
|
+
|
|
53
|
+
export default defineConfig([
|
|
54
|
+
globalIgnores(['dist']),
|
|
55
|
+
{
|
|
56
|
+
files: ['**/*.{ts,tsx}'],
|
|
57
|
+
extends: [
|
|
58
|
+
// Other configs...
|
|
59
|
+
// Enable lint rules for React
|
|
60
|
+
reactX.configs['recommended-typescript'],
|
|
61
|
+
// Enable lint rules for React DOM
|
|
62
|
+
reactDom.configs.recommended,
|
|
63
|
+
],
|
|
64
|
+
languageOptions: {
|
|
65
|
+
parserOptions: {
|
|
66
|
+
project: ['./tsconfig.node.json', './tsconfig.app.json'],
|
|
67
|
+
tsconfigRootDir: import.meta.dirname,
|
|
68
|
+
},
|
|
69
|
+
// other options...
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
])
|
|
73
|
+
```
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface AppShellProps {
|
|
2
|
+
isMobile: boolean;
|
|
3
|
+
sidebarOpen: boolean;
|
|
4
|
+
sidebar: React.ReactNode;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
accentColor?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function AppShell({ isMobile, sidebar, children, accentColor, }: AppShellProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=AppShell.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AppShell.d.ts","sourceRoot":"","sources":["../../../src/components/AppShell/AppShell.tsx"],"names":[],"mappings":"AAGA,UAAU,aAAa;IACrB,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,EAAE,OAAO,CAAC;IACrB,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,wBAAgB,QAAQ,CAAC,EACvB,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,WAAuB,GACxB,EAAE,aAAa,2CAgBf"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
interface BalloonProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
open: boolean;
|
|
4
|
+
x?: number;
|
|
5
|
+
y?: number;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare function Balloon({ open, x, y, children, className, style, ...rest }: BalloonProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=Balloon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Balloon.d.ts","sourceRoot":"","sources":["../../../src/components/Balloon/Balloon.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAiB,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEtE,UAAU,YAAa,SAAQ,cAAc,CAAC,cAAc,CAAC;IAC3D,IAAI,EAAE,OAAO,CAAC;IACd,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,wBAAgB,OAAO,CAAC,EACtB,IAAI,EACJ,CAAC,EACD,CAAC,EACD,QAAQ,EACR,SAAS,EACT,KAAK,EACL,GAAG,IAAI,EACR,EAAE,YAAY,2CA4Bd"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
interface ButtonProps {
|
|
2
|
+
type?: "primary" | "secondary";
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
onClick?: () => void;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export declare function Button({ disabled, type, onClick, children, }: ButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAEA,UAAU,WAAW;IACnB,IAAI,CAAC,EAAE,SAAS,GAAG,WAAW,CAAC;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,wBAAgB,MAAM,CAAC,EACrB,QAAgB,EAChB,IAAgB,EAChB,OAAO,EACP,QAAQ,GACT,EAAE,WAAW,2CAUb"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../src/components/Card/Card.tsx"],"names":[],"mappings":"AAEA,UAAU,SAAS;IACjB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,wBAAgB,IAAI,CAAC,EAAE,QAAQ,EAAE,EAAE,SAAS,2CAE3C"}
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface ContextMenuProps {
|
|
3
|
+
open: boolean;
|
|
4
|
+
x?: number;
|
|
5
|
+
y?: number;
|
|
6
|
+
from?: "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
}
|
|
9
|
+
export declare function ContextMenu({ open, x, y, from, children, }: ContextMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=ContextMenu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContextMenu.d.ts","sourceRoot":"","sources":["../../../src/components/ContextMenu/ContextMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,gBAAgB;IACxB,IAAI,EAAE,OAAO,CAAC;IACd,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,UAAU,GAAG,WAAW,GAAG,aAAa,GAAG,cAAc,CAAC;IACjE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,wBAAgB,WAAW,CAAC,EAC1B,IAAI,EACJ,CAAM,EACN,CAAM,EACN,IAAiB,EACjB,QAAQ,GACT,EAAE,gBAAgB,2CAiClB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeviceContext.d.ts","sourceRoot":"","sources":["../../../src/components/DeviceContext/DeviceContext.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa;;EAAqC,CAAC;AAEhE,eAAO,MAAM,SAAS;;CAAkC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface IconComponentProps {
|
|
3
|
+
size?: number | string;
|
|
4
|
+
color?: string;
|
|
5
|
+
strokeWidth?: number | string;
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
interface IconProps {
|
|
9
|
+
icon: React.ComponentType<IconComponentProps>;
|
|
10
|
+
label: string;
|
|
11
|
+
}
|
|
12
|
+
export declare function EmptyView({ icon, label }: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=EmptyView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EmptyView.d.ts","sourceRoot":"","sources":["../../../src/components/EmptyView/EmptyView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,UAAU,kBAAkB;IAC1B,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,UAAU,SAAS;IACjB,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,kBAAkB,CAAC,CAAC;IAC9C,KAAK,EAAE,MAAM,CAAC;CACf;AAED,wBAAgB,SAAS,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,SAAS,2CAWnD"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface IconComponentProps {
|
|
3
|
+
size?: number | string;
|
|
4
|
+
color?: string;
|
|
5
|
+
strokeWidth?: number | string;
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
interface IconProps {
|
|
9
|
+
icon: React.ComponentType<IconComponentProps>;
|
|
10
|
+
size?: number | "default";
|
|
11
|
+
color?: string | "default" | "selected";
|
|
12
|
+
className?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare function Icon({ icon: IconComponent, size, color, className, }: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=Icon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/Icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,kBAAkB;IAC1B,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,UAAU,SAAS;IACjB,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,kBAAkB,CAAC,CAAC;IAC9C,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,UAAU,CAAC;IACxC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,IAAI,CAAC,EACnB,IAAI,EAAE,aAAa,EACnB,IAAgB,EAChB,KAAiB,EACjB,SAAS,GACV,EAAE,SAAS,2CAuBX"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface ListItemProps {
|
|
3
|
+
onClick?: () => void;
|
|
4
|
+
onContextMenu?: (e: React.MouseEvent<HTMLDivElement> | React.TouchEvent<HTMLDivElement>) => void;
|
|
5
|
+
selected?: boolean;
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare function ListItem({ onClick, onContextMenu, selected, children, }: ListItemProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=ListItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListItem.d.ts","sourceRoot":"","sources":["../../../src/components/ListItem/ListItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiB,MAAM,OAAO,CAAC;AAGtC,UAAU,aAAa;IACrB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,aAAa,CAAC,EAAE,CACd,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC,GAAG,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC,KACnE,IAAI,CAAC;IACV,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,wBAAgB,QAAQ,CAAC,EACvB,OAAO,EACP,aAAa,EACb,QAAgB,EAChB,QAAQ,GACT,EAAE,aAAa,2CAiCf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Popup.d.ts","sourceRoot":"","sources":["../../../src/components/Popup/Popup.tsx"],"names":[],"mappings":"AAEA,UAAU,UAAU;IAClB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,wBAAgB,KAAK,CAAC,EAAE,IAAY,EAAE,QAAQ,EAAE,EAAE,UAAU,2CAU3D"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
interface PopupActionsProps {
|
|
2
|
+
orientation?: "horizontal" | "vertical";
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
}
|
|
5
|
+
export declare function PopupActions({ orientation, children, }: PopupActionsProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=PopupActions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PopupActions.d.ts","sourceRoot":"","sources":["../../../src/components/PopupActions/PopupActions.tsx"],"names":[],"mappings":"AAEA,UAAU,iBAAiB;IACzB,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IACxC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,wBAAgB,YAAY,CAAC,EAC3B,WAAwB,EACxB,QAAQ,GACT,EAAE,iBAAiB,2CAWnB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface PopupButtonProps {
|
|
2
|
+
type?: "primary" | "secondary";
|
|
3
|
+
onClick?: () => void;
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export declare function PopupButton({ type, onClick, children, }: PopupButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=PopupButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PopupButton.d.ts","sourceRoot":"","sources":["../../../src/components/PopupButton/PopupButton.tsx"],"names":[],"mappings":"AAEA,UAAU,gBAAgB;IACxB,IAAI,CAAC,EAAE,SAAS,GAAG,WAAW,CAAC;IAC/B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,wBAAgB,WAAW,CAAC,EAC1B,IAAgB,EAChB,OAAO,EACP,QAAQ,GACT,EAAE,gBAAgB,2CASlB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PopupDescription.d.ts","sourceRoot":"","sources":["../../../src/components/PopupDescription/PopupDescription.tsx"],"names":[],"mappings":"AAEA,UAAU,qBAAqB;IAC7B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,wBAAgB,gBAAgB,CAAC,EAAE,QAAQ,EAAE,EAAE,qBAAqB,2CAEnE"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface PopupInputProps {
|
|
2
|
+
placeholder?: string;
|
|
3
|
+
value?: string;
|
|
4
|
+
onChange?: (value: string) => void;
|
|
5
|
+
onSubmit?: (value: string) => void;
|
|
6
|
+
autoFocus?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const PopupInput: import('react').ForwardRefExoticComponent<PopupInputProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=PopupInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PopupInput.d.ts","sourceRoot":"","sources":["../../../src/components/PopupInput/PopupInput.tsx"],"names":[],"mappings":"AAGA,UAAU,eAAe;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,UAAU,8GA8BtB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PopupTitle.d.ts","sourceRoot":"","sources":["../../../src/components/PopupTitle/PopupTitle.tsx"],"names":[],"mappings":"AAEA,UAAU,eAAe;IACvB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,wBAAgB,UAAU,CAAC,EAAE,QAAQ,EAAE,EAAE,eAAe,2CAEvD"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
interface SelectInputProps extends React.SelectHTMLAttributes<HTMLSelectElement> {
|
|
2
|
+
className?: string;
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
}
|
|
5
|
+
export declare const SelectInput: import('react').ForwardRefExoticComponent<SelectInputProps & import('react').RefAttributes<HTMLSelectElement>>;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=SelectInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelectInput.d.ts","sourceRoot":"","sources":["../../../src/components/SelectInput/SelectInput.tsx"],"names":[],"mappings":"AAGA,UAAU,gBAAiB,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;IAC9E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,eAAO,MAAM,WAAW,gHAYvB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface SidebarProps {
|
|
3
|
+
open: boolean;
|
|
4
|
+
footer?: React.ReactNode;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export declare function Sidebar({ open, footer, children }: SidebarProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=Sidebar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Sidebar.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/Sidebar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,YAAY;IACpB,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,wBAAgB,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,YAAY,2CAe/D"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface SidebarButtonProps {
|
|
3
|
+
onClick?: () => void;
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export declare function SidebarButton({ onClick, children }: SidebarButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=SidebarButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SidebarButton.d.ts","sourceRoot":"","sources":["../../../src/components/SidebarButton/SidebarButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,kBAAkB;IAC1B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,wBAAgB,aAAa,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,kBAAkB,2CAMtE"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface SidebarItemProps {
|
|
3
|
+
onClick?: () => void;
|
|
4
|
+
onContextMenu?: (e: React.MouseEvent<HTMLDivElement> | React.TouchEvent<HTMLDivElement>) => void;
|
|
5
|
+
selected?: boolean;
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare function SidebarItem({ onClick, onContextMenu, selected, children, }: SidebarItemProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=SidebarItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SidebarItem.d.ts","sourceRoot":"","sources":["../../../src/components/SidebarItem/SidebarItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiB,MAAM,OAAO,CAAC;AAGtC,UAAU,gBAAgB;IACxB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,aAAa,CAAC,EAAE,CACd,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC,GAAG,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC,KACnE,IAAI,CAAC;IACV,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,wBAAgB,WAAW,CAAC,EAC1B,OAAO,EACP,aAAa,EACb,QAAgB,EAChB,QAAQ,GACT,EAAE,gBAAgB,2CAiClB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface SidebarTitleProps {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
}
|
|
5
|
+
export declare function SidebarTitle({ children }: SidebarTitleProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=SidebarTitle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SidebarTitle.d.ts","sourceRoot":"","sources":["../../../src/components/SidebarTitle/SidebarTitle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,iBAAiB;IACzB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,wBAAgB,YAAY,CAAC,EAAE,QAAQ,EAAE,EAAE,iBAAiB,2CAE3D"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
interface TextInputProps {
|
|
2
|
+
placeholder?: string;
|
|
3
|
+
value?: string;
|
|
4
|
+
onChange?: (value: string) => void;
|
|
5
|
+
onFocus?: () => void;
|
|
6
|
+
onBlur?: () => void;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
type?: "text" | "password" | "email" | "number" | "search" | "url" | "tel";
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const TextInput: import('react').ForwardRefExoticComponent<TextInputProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=TextInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextInput.d.ts","sourceRoot":"","sources":["../../../src/components/TextInput/TextInput.tsx"],"names":[],"mappings":"AAGA,UAAU,cAAc;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,GAAG,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,KAAK,GAAG,KAAK,CAAC;IAC3E,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,SAAS,6GA4BrB,CAAC"}
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToolbarActions.d.ts","sourceRoot":"","sources":["../../../src/components/ToolbarActions/ToolbarActions.tsx"],"names":[],"mappings":"AAEA,UAAU,mBAAmB;IAC3B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,wBAAgB,cAAc,CAAC,EAAE,QAAQ,EAAE,EAAE,mBAAmB,2CAE/D"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
interface ToolbarButtonProps {
|
|
2
|
+
onClick?: (e: React.MouseEvent<HTMLButtonElement> | React.TouchEvent<HTMLButtonElement>) => void;
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
}
|
|
5
|
+
export declare function ToolbarButton({ onClick, children }: ToolbarButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=ToolbarButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToolbarButton.d.ts","sourceRoot":"","sources":["../../../src/components/ToolbarButton/ToolbarButton.tsx"],"names":[],"mappings":"AAEA,UAAU,kBAAkB;IAC1B,OAAO,CAAC,EAAE,CACR,CAAC,EACG,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,GACnC,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KACpC,IAAI,CAAC;IACV,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,wBAAgB,aAAa,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,kBAAkB,2CAYtE"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
interface ToolbarExpandSidebarButtonProps {
|
|
2
|
+
onToggleSidebar?: () => void;
|
|
3
|
+
expanded?: boolean;
|
|
4
|
+
}
|
|
5
|
+
export declare function ToolbarExpandSidebarButton({ onToggleSidebar, expanded, }: ToolbarExpandSidebarButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=ToolbarExpandSidebarButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToolbarExpandSidebarButton.d.ts","sourceRoot":"","sources":["../../../src/components/ToolbarExpandSidebarButton/ToolbarExpandSidebarButton.tsx"],"names":[],"mappings":"AAMA,UAAU,+BAA+B;IACvC,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,wBAAgB,0BAA0B,CAAC,EACzC,eAAe,EACf,QAAgB,GACjB,EAAE,+BAA+B,2CAWjC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToolbarTitle.d.ts","sourceRoot":"","sources":["../../../src/components/ToolbarTitle/ToolbarTitle.tsx"],"names":[],"mappings":"AAEA,UAAU,iBAAiB;IACzB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,wBAAgB,YAAY,CAAC,EAAE,QAAQ,EAAE,EAAE,iBAAiB,2CAE3D"}
|
|
@@ -0,0 +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:`
|
|
3
|
+
${u.sidebar}
|
|
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 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;
|
|
@@ -0,0 +1,468 @@
|
|
|
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";
|
|
4
|
+
import { Menu as S } from "lucide-react";
|
|
5
|
+
const C = E({ isMobile: !1 }), u = () => B(C);
|
|
6
|
+
function Pt({
|
|
7
|
+
isMobile: t,
|
|
8
|
+
sidebar: e,
|
|
9
|
+
children: n,
|
|
10
|
+
accentColor: s = "#0088ff"
|
|
11
|
+
}) {
|
|
12
|
+
return g(() => {
|
|
13
|
+
s && document.documentElement.style.setProperty("--accent", s);
|
|
14
|
+
}, [s]), /* @__PURE__ */ o(C.Provider, { value: { isMobile: t }, children: /* @__PURE__ */ y("div", { children: [
|
|
15
|
+
/* @__PURE__ */ o("aside", { children: e }),
|
|
16
|
+
/* @__PURE__ */ o("main", { children: n })
|
|
17
|
+
] }) });
|
|
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 = {
|
|
20
|
+
sidebar: z,
|
|
21
|
+
sidebarCollapsed: j,
|
|
22
|
+
sidebarMobile: A,
|
|
23
|
+
sidebarMobileHidden: w,
|
|
24
|
+
sidebarContent: O,
|
|
25
|
+
sidebarFooter: P
|
|
26
|
+
};
|
|
27
|
+
function Rt({ open: t, footer: e, children: n }) {
|
|
28
|
+
const { isMobile: s } = u();
|
|
29
|
+
return /* @__PURE__ */ y(
|
|
30
|
+
"div",
|
|
31
|
+
{
|
|
32
|
+
className: `
|
|
33
|
+
${p.sidebar}
|
|
34
|
+
${t ? "" : p.sidebarCollapsed}
|
|
35
|
+
${s ? p.sidebarMobile : ""}
|
|
36
|
+
${!t && s ? p.sidebarMobileHidden : ""}`,
|
|
37
|
+
children: [
|
|
38
|
+
/* @__PURE__ */ o("div", { className: p.sidebarContent, children: n }),
|
|
39
|
+
e && /* @__PURE__ */ o("div", { className: p.sidebarFooter, children: e })
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
const R = "_sidebarTitle_azx8n_1", k = {
|
|
45
|
+
sidebarTitle: R
|
|
46
|
+
};
|
|
47
|
+
function kt({ children: t }) {
|
|
48
|
+
return /* @__PURE__ */ o("h2", { className: k.sidebarTitle, children: t });
|
|
49
|
+
}
|
|
50
|
+
const V = "_sidebarItem_1e3ru_1", H = "_selected_1e3ru_22", v = {
|
|
51
|
+
sidebarItem: V,
|
|
52
|
+
selected: H
|
|
53
|
+
};
|
|
54
|
+
function Vt({
|
|
55
|
+
onClick: t,
|
|
56
|
+
onContextMenu: e,
|
|
57
|
+
selected: n = !1,
|
|
58
|
+
children: s
|
|
59
|
+
}) {
|
|
60
|
+
const r = m(null), l = (c) => {
|
|
61
|
+
r.current = setTimeout(() => {
|
|
62
|
+
e && (c.preventDefault(), e(c));
|
|
63
|
+
}, 500);
|
|
64
|
+
}, i = () => {
|
|
65
|
+
r.current && clearTimeout(r.current);
|
|
66
|
+
};
|
|
67
|
+
return /* @__PURE__ */ o(
|
|
68
|
+
"div",
|
|
69
|
+
{
|
|
70
|
+
className: `${v.sidebarItem} ${n ? v.selected : ""}`,
|
|
71
|
+
onClick: t,
|
|
72
|
+
onContextMenu: (c) => {
|
|
73
|
+
c.preventDefault(), e && e(c);
|
|
74
|
+
},
|
|
75
|
+
onTouchStart: l,
|
|
76
|
+
onTouchEnd: i,
|
|
77
|
+
onTouchMove: i,
|
|
78
|
+
children: s
|
|
79
|
+
}
|
|
80
|
+
);
|
|
81
|
+
}
|
|
82
|
+
const q = "_sidebarMainBtn_65l8c_1", F = {
|
|
83
|
+
sidebarMainBtn: q
|
|
84
|
+
};
|
|
85
|
+
function Ht({ onClick: t, children: e }) {
|
|
86
|
+
return /* @__PURE__ */ o("button", { className: F.sidebarMainBtn, onClick: t, children: e });
|
|
87
|
+
}
|
|
88
|
+
const L = "_popupContainer_vz8rg_1", W = "_popupClosed_vz8rg_18", K = "_popup_vz8rg_1", G = "_popupContent_vz8rg_44", d = {
|
|
89
|
+
popupContainer: L,
|
|
90
|
+
popupClosed: W,
|
|
91
|
+
popup: K,
|
|
92
|
+
popupContent: G
|
|
93
|
+
};
|
|
94
|
+
function qt({ open: t = !1, children: e }) {
|
|
95
|
+
return /* @__PURE__ */ o(
|
|
96
|
+
"div",
|
|
97
|
+
{
|
|
98
|
+
className: `${d.popupContainer} ${t ? "" : d.popupClosed}`,
|
|
99
|
+
children: /* @__PURE__ */ o("div", { className: d.popup, children: /* @__PURE__ */ o("div", { className: d.popupContent, children: e }) })
|
|
100
|
+
}
|
|
101
|
+
);
|
|
102
|
+
}
|
|
103
|
+
const J = "_popupTitle_4z5vb_1", Q = {
|
|
104
|
+
popupTitle: J
|
|
105
|
+
};
|
|
106
|
+
function Ft({ children: t }) {
|
|
107
|
+
return /* @__PURE__ */ o("span", { className: Q.popupTitle, children: t });
|
|
108
|
+
}
|
|
109
|
+
const U = "_popupDescription_4ewx1_1", X = {
|
|
110
|
+
popupDescription: U
|
|
111
|
+
};
|
|
112
|
+
function Lt({ children: t }) {
|
|
113
|
+
return /* @__PURE__ */ o("span", { className: X.popupDescription, children: t });
|
|
114
|
+
}
|
|
115
|
+
const Y = "_popupInput_1b42s_1", Z = {
|
|
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;
|
|
120
|
+
return D(() => {
|
|
121
|
+
r && c.current && c.current.focus();
|
|
122
|
+
}, [r, c]), /* @__PURE__ */ o(
|
|
123
|
+
"input",
|
|
124
|
+
{
|
|
125
|
+
ref: c,
|
|
126
|
+
type: "text",
|
|
127
|
+
className: Z.popupInput,
|
|
128
|
+
placeholder: t,
|
|
129
|
+
value: e,
|
|
130
|
+
onChange: (a) => n?.(a.target.value),
|
|
131
|
+
onKeyDown: (a) => {
|
|
132
|
+
a.key === "Enter" && s && s(e || "");
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
);
|
|
136
|
+
}
|
|
137
|
+
), tt = "_popupActions_84v2b_1", et = {
|
|
138
|
+
popupActions: tt
|
|
139
|
+
};
|
|
140
|
+
function Kt({
|
|
141
|
+
orientation: t = "vertical",
|
|
142
|
+
children: e
|
|
143
|
+
}) {
|
|
144
|
+
return /* @__PURE__ */ o(
|
|
145
|
+
"div",
|
|
146
|
+
{
|
|
147
|
+
className: et.popupActions,
|
|
148
|
+
style: {
|
|
149
|
+
flexDirection: t == "vertical" ? "column" : "row"
|
|
150
|
+
},
|
|
151
|
+
children: e
|
|
152
|
+
}
|
|
153
|
+
);
|
|
154
|
+
}
|
|
155
|
+
const nt = "_popupBtn_ouvtc_1", ot = "_secondary_ouvtc_27", x = {
|
|
156
|
+
popupBtn: nt,
|
|
157
|
+
secondary: ot
|
|
158
|
+
};
|
|
159
|
+
function Gt({
|
|
160
|
+
type: t = "primary",
|
|
161
|
+
onClick: e,
|
|
162
|
+
children: n
|
|
163
|
+
}) {
|
|
164
|
+
return /* @__PURE__ */ o(
|
|
165
|
+
"button",
|
|
166
|
+
{
|
|
167
|
+
className: `${x.popupBtn} ${t == "secondary" ? x.secondary : ""}`,
|
|
168
|
+
onClick: e,
|
|
169
|
+
children: n
|
|
170
|
+
}
|
|
171
|
+
);
|
|
172
|
+
}
|
|
173
|
+
const st = "_toolbar_18bqr_1", ct = "_toolbarExpanded_18bqr_21", _ = {
|
|
174
|
+
toolbar: st,
|
|
175
|
+
toolbarExpanded: ct
|
|
176
|
+
};
|
|
177
|
+
function Jt({ expanded: t = !1, children: e }) {
|
|
178
|
+
const { isMobile: n } = u();
|
|
179
|
+
return /* @__PURE__ */ o(
|
|
180
|
+
"div",
|
|
181
|
+
{
|
|
182
|
+
className: `${_.toolbar} ${t || n ? _.toolbarExpanded : ""} ${n ? _.toolbarMobile : ""}`,
|
|
183
|
+
children: e
|
|
184
|
+
}
|
|
185
|
+
);
|
|
186
|
+
}
|
|
187
|
+
const rt = "_toolbarTitle_1p2s8_1", it = {
|
|
188
|
+
toolbarTitle: rt
|
|
189
|
+
};
|
|
190
|
+
function Qt({ children: t }) {
|
|
191
|
+
return /* @__PURE__ */ o("h3", { className: it.toolbarTitle, children: t });
|
|
192
|
+
}
|
|
193
|
+
const lt = "_toolbarActions_l0jv2_1", at = {
|
|
194
|
+
toolbarActions: lt
|
|
195
|
+
};
|
|
196
|
+
function Ut({ children: t }) {
|
|
197
|
+
return /* @__PURE__ */ o("div", { className: at.toolbarActions, children: t });
|
|
198
|
+
}
|
|
199
|
+
const pt = "_toolbarBtn_8jy1b_1", ut = {
|
|
200
|
+
toolbarBtn: pt
|
|
201
|
+
};
|
|
202
|
+
function dt({ onClick: t, children: e }) {
|
|
203
|
+
return /* @__PURE__ */ o(
|
|
204
|
+
"button",
|
|
205
|
+
{
|
|
206
|
+
onClick: (n) => {
|
|
207
|
+
n.preventDefault(), t && t(n);
|
|
208
|
+
},
|
|
209
|
+
className: ut.toolbarBtn,
|
|
210
|
+
children: e
|
|
211
|
+
}
|
|
212
|
+
);
|
|
213
|
+
}
|
|
214
|
+
const bt = "_sidebarIcon_1lib1_1", _t = "_sidebarIconExpanded_1lib1_6", h = {
|
|
215
|
+
sidebarIcon: bt,
|
|
216
|
+
sidebarIconExpanded: _t
|
|
217
|
+
};
|
|
218
|
+
function Xt({
|
|
219
|
+
onToggleSidebar: t,
|
|
220
|
+
expanded: e = !1
|
|
221
|
+
}) {
|
|
222
|
+
const { isMobile: n } = u();
|
|
223
|
+
return /* @__PURE__ */ o(dt, { onClick: t, children: /* @__PURE__ */ o(
|
|
224
|
+
S,
|
|
225
|
+
{
|
|
226
|
+
size: n ? 24 : 18,
|
|
227
|
+
className: `${h.sidebarIcon} ${e ? h.sidebarIconExpanded : ""}`
|
|
228
|
+
}
|
|
229
|
+
) });
|
|
230
|
+
}
|
|
231
|
+
const ft = "_content_1ha8s_1", yt = "_contentExpanded_1ha8s_18", T = {
|
|
232
|
+
content: ft,
|
|
233
|
+
contentExpanded: yt
|
|
234
|
+
};
|
|
235
|
+
function Yt({ expanded: t = !1, children: e }) {
|
|
236
|
+
return /* @__PURE__ */ o(
|
|
237
|
+
"div",
|
|
238
|
+
{
|
|
239
|
+
className: `${T.content} ${t ? T.contentExpanded : ""}`,
|
|
240
|
+
children: e
|
|
241
|
+
}
|
|
242
|
+
);
|
|
243
|
+
}
|
|
244
|
+
const mt = "_contextMenu_vtnpl_1", $t = "_contextMenuOpen_vtnpl_22", f = {
|
|
245
|
+
contextMenu: mt,
|
|
246
|
+
contextMenuOpen: $t
|
|
247
|
+
};
|
|
248
|
+
function Zt({
|
|
249
|
+
open: t,
|
|
250
|
+
x: e = 20,
|
|
251
|
+
y: n = 20,
|
|
252
|
+
from: s = "top-left",
|
|
253
|
+
children: r
|
|
254
|
+
}) {
|
|
255
|
+
const { isMobile: l } = u(), i = {
|
|
256
|
+
"top-left": { tx: "-30%", ty: "-30%" },
|
|
257
|
+
"top-right": { tx: "30%", ty: "-30%" },
|
|
258
|
+
"bottom-left": { tx: "-30%", ty: "30%" },
|
|
259
|
+
"bottom-right": { tx: "30%", ty: "30%" }
|
|
260
|
+
}, { tx: c, ty: a } = i[s], b = {
|
|
261
|
+
top: s.includes("top") ? `${n}px` : "auto",
|
|
262
|
+
bottom: s.includes("bottom") ? `${n}px` : "auto",
|
|
263
|
+
left: s.includes("left") ? `${e}px` : "auto",
|
|
264
|
+
right: s.includes("right") ? `${e}px` : "auto",
|
|
265
|
+
"--tx-start": c,
|
|
266
|
+
"--ty-start": a
|
|
267
|
+
};
|
|
268
|
+
return /* @__PURE__ */ o(
|
|
269
|
+
"div",
|
|
270
|
+
{
|
|
271
|
+
className: `
|
|
272
|
+
${f.contextMenu}
|
|
273
|
+
${t ? f.contextMenuOpen : ""}
|
|
274
|
+
${l ? f.contextMenuMobile : ""}
|
|
275
|
+
`,
|
|
276
|
+
style: b,
|
|
277
|
+
children: r
|
|
278
|
+
}
|
|
279
|
+
);
|
|
280
|
+
}
|
|
281
|
+
const vt = "_listItem_7ga7e_1", xt = "_selected_7ga7e_23", I = {
|
|
282
|
+
listItem: vt,
|
|
283
|
+
selected: xt
|
|
284
|
+
};
|
|
285
|
+
function te({
|
|
286
|
+
onClick: t,
|
|
287
|
+
onContextMenu: e,
|
|
288
|
+
selected: n = !1,
|
|
289
|
+
children: s
|
|
290
|
+
}) {
|
|
291
|
+
const r = m(null), l = (c) => {
|
|
292
|
+
r.current = setTimeout(() => {
|
|
293
|
+
e && (c.preventDefault(), e(c));
|
|
294
|
+
}, 500);
|
|
295
|
+
}, i = () => {
|
|
296
|
+
r.current && clearTimeout(r.current);
|
|
297
|
+
};
|
|
298
|
+
return /* @__PURE__ */ o(
|
|
299
|
+
"div",
|
|
300
|
+
{
|
|
301
|
+
className: `${I.listItem} ${n ? I.selected : ""}`,
|
|
302
|
+
onClick: t,
|
|
303
|
+
onContextMenu: (c) => {
|
|
304
|
+
c.preventDefault(), e && e(c);
|
|
305
|
+
},
|
|
306
|
+
onTouchStart: l,
|
|
307
|
+
onTouchEnd: i,
|
|
308
|
+
onTouchMove: i,
|
|
309
|
+
children: s
|
|
310
|
+
}
|
|
311
|
+
);
|
|
312
|
+
}
|
|
313
|
+
function ht({
|
|
314
|
+
icon: t,
|
|
315
|
+
size: e = "default",
|
|
316
|
+
color: n = "default",
|
|
317
|
+
className: s
|
|
318
|
+
}) {
|
|
319
|
+
const { isMobile: r } = u(), l = e === "default" ? r ? 24 : 18 : e, i = n === "selected" ? "var(--icon-color)" : n;
|
|
320
|
+
return n === "default" ? /* @__PURE__ */ o(
|
|
321
|
+
t,
|
|
322
|
+
{
|
|
323
|
+
size: l,
|
|
324
|
+
className: s,
|
|
325
|
+
strokeWidth: r ? 2.5 : 2
|
|
326
|
+
}
|
|
327
|
+
) : /* @__PURE__ */ o(
|
|
328
|
+
t,
|
|
329
|
+
{
|
|
330
|
+
size: l,
|
|
331
|
+
color: i,
|
|
332
|
+
className: s,
|
|
333
|
+
strokeWidth: r ? 2.5 : 2
|
|
334
|
+
}
|
|
335
|
+
);
|
|
336
|
+
}
|
|
337
|
+
const Tt = "_emptyView_1synn_1", It = {
|
|
338
|
+
emptyView: Tt
|
|
339
|
+
};
|
|
340
|
+
function ee({ icon: t, label: e }) {
|
|
341
|
+
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)" }),
|
|
344
|
+
/* @__PURE__ */ o("h2", { children: e })
|
|
345
|
+
] });
|
|
346
|
+
}
|
|
347
|
+
const Mt = "_card_zjz9h_1", Nt = {
|
|
348
|
+
card: Mt
|
|
349
|
+
};
|
|
350
|
+
function ne({ children: t }) {
|
|
351
|
+
return /* @__PURE__ */ o("div", { className: Nt.card, children: t });
|
|
352
|
+
}
|
|
353
|
+
const Ct = "_textInput_on5q4_1", Et = {
|
|
354
|
+
textInput: Ct
|
|
355
|
+
}, oe = $(
|
|
356
|
+
({
|
|
357
|
+
placeholder: t,
|
|
358
|
+
value: e,
|
|
359
|
+
onChange: n,
|
|
360
|
+
onFocus: s,
|
|
361
|
+
onBlur: r,
|
|
362
|
+
disabled: l = !1,
|
|
363
|
+
type: i = "text",
|
|
364
|
+
className: c
|
|
365
|
+
}, a) => /* @__PURE__ */ o(
|
|
366
|
+
"input",
|
|
367
|
+
{
|
|
368
|
+
ref: a,
|
|
369
|
+
type: i,
|
|
370
|
+
className: `${Et.textInput} ${c || ""}`,
|
|
371
|
+
placeholder: t,
|
|
372
|
+
value: e,
|
|
373
|
+
onChange: (b) => n?.(b.target.value),
|
|
374
|
+
onFocus: s,
|
|
375
|
+
onBlur: r,
|
|
376
|
+
disabled: l
|
|
377
|
+
}
|
|
378
|
+
)
|
|
379
|
+
), Bt = "_selectInput_3f04b_1", gt = {
|
|
380
|
+
selectInput: Bt
|
|
381
|
+
}, se = $(
|
|
382
|
+
({ className: t, children: e, ...n }, s) => /* @__PURE__ */ o(
|
|
383
|
+
"select",
|
|
384
|
+
{
|
|
385
|
+
ref: s,
|
|
386
|
+
className: `${gt.selectInput} ${t || ""}`,
|
|
387
|
+
...n,
|
|
388
|
+
children: e
|
|
389
|
+
}
|
|
390
|
+
)
|
|
391
|
+
), Dt = "_button_g5rur_1", St = "_secondary_g5rur_27", M = {
|
|
392
|
+
button: Dt,
|
|
393
|
+
secondary: St
|
|
394
|
+
};
|
|
395
|
+
function ce({
|
|
396
|
+
disabled: t = !1,
|
|
397
|
+
type: e = "primary",
|
|
398
|
+
onClick: n,
|
|
399
|
+
children: s
|
|
400
|
+
}) {
|
|
401
|
+
return /* @__PURE__ */ o(
|
|
402
|
+
"button",
|
|
403
|
+
{
|
|
404
|
+
className: `${M.button} ${e == "secondary" ? M.secondary : ""}`,
|
|
405
|
+
onClick: n,
|
|
406
|
+
disabled: t,
|
|
407
|
+
children: s
|
|
408
|
+
}
|
|
409
|
+
);
|
|
410
|
+
}
|
|
411
|
+
const zt = "_balloon_1jdjr_1", jt = "_balloonOpen_1jdjr_22", N = {
|
|
412
|
+
balloon: zt,
|
|
413
|
+
balloonOpen: jt
|
|
414
|
+
};
|
|
415
|
+
function re({
|
|
416
|
+
open: t,
|
|
417
|
+
x: e,
|
|
418
|
+
y: n,
|
|
419
|
+
children: s,
|
|
420
|
+
className: r,
|
|
421
|
+
style: l,
|
|
422
|
+
...i
|
|
423
|
+
}) {
|
|
424
|
+
const c = {};
|
|
425
|
+
typeof e == "number" && (c.left = e), typeof n == "number" && (c.top = n);
|
|
426
|
+
const a = [
|
|
427
|
+
N.balloon,
|
|
428
|
+
t ? N.balloonOpen : "",
|
|
429
|
+
r ?? ""
|
|
430
|
+
].filter(Boolean).join(" ");
|
|
431
|
+
return /* @__PURE__ */ o(
|
|
432
|
+
"div",
|
|
433
|
+
{
|
|
434
|
+
...i,
|
|
435
|
+
className: a,
|
|
436
|
+
style: { ...l, ...c },
|
|
437
|
+
children: s
|
|
438
|
+
}
|
|
439
|
+
);
|
|
440
|
+
}
|
|
441
|
+
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,
|
|
458
|
+
Rt as Sidebar,
|
|
459
|
+
Ht as SidebarButton,
|
|
460
|
+
Vt as SidebarItem,
|
|
461
|
+
kt as SidebarTitle,
|
|
462
|
+
oe as TextInput,
|
|
463
|
+
Jt as Toolbar,
|
|
464
|
+
Ut as ToolbarActions,
|
|
465
|
+
dt as ToolbarButton,
|
|
466
|
+
Xt as ToolbarExpandSidebarButton,
|
|
467
|
+
Qt as ToolbarTitle
|
|
468
|
+
};
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export * from './components/AppShell/AppShell';
|
|
2
|
+
export * from './components/Sidebar/Sidebar';
|
|
3
|
+
export * from './components/SidebarTitle/SidebarTitle';
|
|
4
|
+
export * from './components/SidebarItem/SidebarItem';
|
|
5
|
+
export * from './components/SidebarButton/SidebarButton';
|
|
6
|
+
export * from './components/Popup/Popup';
|
|
7
|
+
export * from './components/PopupTitle/PopupTitle';
|
|
8
|
+
export * from './components/PopupDescription/PopupDescription';
|
|
9
|
+
export * from './components/PopupInput/PopupInput';
|
|
10
|
+
export * from './components/PopupActions/PopupActions';
|
|
11
|
+
export * from './components/PopupButton/PopupButton';
|
|
12
|
+
export * from './components/Toolbar/Toolbar';
|
|
13
|
+
export * from './components/ToolbarTitle/ToolbarTitle';
|
|
14
|
+
export * from './components/ToolbarActions/ToolbarActions';
|
|
15
|
+
export * from './components/ToolbarButton/ToolbarButton';
|
|
16
|
+
export * from './components/ToolbarExpandSidebarButton/ToolbarExpandSidebarButton';
|
|
17
|
+
export * from './components/Content/Content';
|
|
18
|
+
export * from './components/ContextMenu/ContextMenu';
|
|
19
|
+
export * from './components/ListItem/ListItem';
|
|
20
|
+
export * from './components/Icon/Icon';
|
|
21
|
+
export * from './components/EmptyView/EmptyView';
|
|
22
|
+
export * from './components/Card/Card';
|
|
23
|
+
export * from './components/TextInput/TextInput';
|
|
24
|
+
export * from './components/SelectInput/SelectInput';
|
|
25
|
+
export * from './components/Button/Button';
|
|
26
|
+
export * from './components/Balloon/Balloon';
|
|
27
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,CAAC;AAE7B,cAAc,gCAAgC,CAAC;AAE/C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wCAAwC,CAAC;AACvD,cAAc,sCAAsC,CAAC;AACrD,cAAc,0CAA0C,CAAC;AAEzD,cAAc,0BAA0B,CAAC;AACzC,cAAc,oCAAoC,CAAC;AACnD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,oCAAoC,CAAC;AACnD,cAAc,wCAAwC,CAAC;AACvD,cAAc,sCAAsC,CAAC;AAErD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wCAAwC,CAAC;AACvD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,0CAA0C,CAAC;AACzD,cAAc,oEAAoE,CAAC;AAEnF,cAAc,8BAA8B,CAAC;AAE7C,cAAc,sCAAsC,CAAC;AAErD,cAAc,gCAAgC,CAAC;AAE/C,cAAc,wBAAwB,CAAC;AAEvC,cAAc,kCAAkC,CAAC;AAEjD,cAAc,wBAAwB,CAAC;AAEvC,cAAc,kCAAkC,CAAC;AAEjD,cAAc,sCAAsC,CAAC;AAErD,cAAc,4BAA4B,CAAC;AAE3C,cAAc,8BAA8B,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@htmlos-next/ui",
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "./dist/htmlos-ui.cjs",
|
|
6
|
+
"module": "./dist/htmlos-ui.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"publishConfig": {
|
|
9
|
+
"access": "public"
|
|
10
|
+
},
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
14
|
+
"import": "./dist/htmlos-ui.js",
|
|
15
|
+
"require": "./dist/htmlos-ui.cjs"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"dist"
|
|
20
|
+
],
|
|
21
|
+
"scripts": {
|
|
22
|
+
"dev": "vite",
|
|
23
|
+
"build": "tsc -p tsconfig.json && vite build",
|
|
24
|
+
"preview": "vite preview"
|
|
25
|
+
},
|
|
26
|
+
"peerDependencies": {
|
|
27
|
+
"lucide-react": "^0.564.0",
|
|
28
|
+
"react": ">=18",
|
|
29
|
+
"react-dom": ">=18"
|
|
30
|
+
},
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"@eslint/js": "^9.39.1",
|
|
33
|
+
"@types/node": "^24.10.1",
|
|
34
|
+
"@types/react": "^19.2.7",
|
|
35
|
+
"@types/react-dom": "^19.2.3",
|
|
36
|
+
"@vitejs/plugin-react": "^5.1.1",
|
|
37
|
+
"eslint": "^9.39.1",
|
|
38
|
+
"eslint-plugin-react-hooks": "^7.0.1",
|
|
39
|
+
"eslint-plugin-react-refresh": "^0.4.24",
|
|
40
|
+
"globals": "^16.5.0",
|
|
41
|
+
"lucide-react": "^0.564.0",
|
|
42
|
+
"typescript": "~5.9.3",
|
|
43
|
+
"typescript-eslint": "^8.14.0",
|
|
44
|
+
"vite": "^7.3.1",
|
|
45
|
+
"vite-plugin-css-injected-by-js": "^3.5.2",
|
|
46
|
+
"vite-plugin-dts": "^4.5.4"
|
|
47
|
+
}
|
|
48
|
+
}
|