@zuzjs/ui 0.5.6 → 0.5.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.js +0 -0
- package/dist/comps/Accordion/index.d.ts +6 -0
- package/dist/comps/Accordion/index.js +12 -0
- package/dist/comps/Accordion/types.d.ts +10 -0
- package/dist/comps/Actionbar/index.d.ts +21 -0
- package/dist/comps/Actionbar/index.js +58 -0
- package/dist/comps/Actionbar/item.d.ts +6 -0
- package/dist/comps/Actionbar/item.js +7 -0
- package/dist/comps/Actionbar/types.d.ts +29 -0
- package/dist/comps/Actionbar/types.js +1 -0
- package/dist/comps/Avatar/index.d.ts +19 -0
- package/dist/comps/Avatar/index.js +35 -0
- package/dist/comps/Box/index.d.ts +7 -0
- package/dist/comps/Box/index.js +24 -0
- package/dist/comps/Button/index.d.ts +10 -0
- package/dist/comps/Button/index.js +12 -0
- package/dist/comps/CheckBox/index.d.ts +7 -0
- package/dist/comps/{checkbox.js → CheckBox/index.js} +10 -9
- package/dist/comps/CheckBox/types.d.ts +10 -0
- package/dist/comps/CheckBox/types.js +1 -0
- package/dist/comps/ContextMenu/index.d.ts +6 -0
- package/dist/comps/ContextMenu/index.js +37 -0
- package/dist/comps/ContextMenu/item.d.ts +3 -0
- package/dist/comps/ContextMenu/item.js +11 -0
- package/dist/comps/ContextMenu/types.d.ts +20 -0
- package/dist/comps/ContextMenu/types.js +1 -0
- package/dist/comps/Cover/index.d.ts +17 -0
- package/dist/comps/Cover/index.js +19 -0
- package/dist/comps/Drawer/index.d.ts +12 -0
- package/dist/comps/{drawer.js → Drawer/index.js} +8 -10
- package/dist/comps/{drawer.d.ts → Drawer/types.d.ts} +4 -5
- package/dist/comps/Drawer/types.js +1 -0
- package/dist/comps/Editor/Timeline/index.d.ts +3 -0
- package/dist/comps/Editor/Timeline/index.js +57 -0
- package/dist/comps/Editor/Timeline/layer.d.ts +3 -0
- package/dist/comps/Editor/Timeline/layer.js +67 -0
- package/dist/comps/Editor/Timeline/prop.d.ts +3 -0
- package/dist/comps/Editor/Timeline/prop.js +33 -0
- package/dist/comps/Editor/index.d.ts +4 -0
- package/dist/comps/Editor/index.js +9 -0
- package/dist/comps/Editor/selectionBox.d.ts +4 -0
- package/dist/comps/Editor/selectionBox.js +48 -0
- package/dist/comps/Editor/types.d.ts +58 -0
- package/dist/comps/Editor/types.js +15 -0
- package/dist/comps/Editor/withEditor.d.ts +3 -0
- package/dist/comps/Editor/withEditor.js +13 -0
- package/dist/comps/{form.d.ts → Form/index.d.ts} +34 -10
- package/dist/comps/{form.js → Form/index.js} +11 -15
- package/dist/comps/Icon/index.d.ts +11 -0
- package/dist/comps/Icon/index.js +11 -0
- package/dist/comps/Image/index.d.ts +4 -0
- package/dist/comps/Image/index.js +9 -0
- package/dist/comps/Input/index.d.ts +8 -0
- package/dist/comps/Input/index.js +15 -0
- package/dist/comps/Label/index.d.ts +4 -0
- package/dist/comps/Label/index.js +9 -0
- package/dist/comps/Overlay/index.d.ts +8 -0
- package/dist/comps/Overlay/index.js +12 -0
- package/dist/comps/Password/index.d.ts +4 -0
- package/dist/comps/Password/index.js +18 -0
- package/dist/comps/PinInput/index.d.ts +12 -0
- package/dist/comps/{otp → PinInput}/index.js +10 -18
- package/dist/comps/ProgressBar/index.d.ts +7 -0
- package/dist/comps/ProgressBar/index.js +21 -0
- package/dist/comps/ProgressBar/types.d.ts +9 -0
- package/dist/comps/ProgressBar/types.js +1 -0
- package/dist/comps/Search/index.d.ts +14 -0
- package/dist/comps/{search → Search}/index.js +9 -19
- package/dist/comps/Segmented/index.d.ts +26 -0
- package/dist/comps/{segmented → Segmented}/index.js +3 -9
- package/dist/comps/Segmented/item.d.ts +3 -0
- package/dist/comps/{segmented → Segmented}/item.js +3 -9
- package/dist/comps/Segmented/types.d.ts +31 -0
- package/dist/comps/Segmented/types.js +1 -0
- package/dist/comps/Select/index.d.ts +13 -0
- package/dist/comps/Select/index.js +60 -0
- package/dist/comps/Select/optionItem.d.ts +3 -0
- package/dist/comps/Select/optionItem.js +6 -0
- package/dist/comps/Select/types.d.ts +53 -0
- package/dist/comps/Select/types.js +1 -0
- package/dist/comps/{sheet.d.ts → Sheet/index.d.ts} +16 -5
- package/dist/comps/Sheet/index.js +175 -0
- package/dist/comps/Slider/index.d.ts +21 -0
- package/dist/comps/Slider/index.js +81 -0
- package/dist/comps/Span/index.d.ts +4 -0
- package/dist/comps/Span/index.js +10 -0
- package/dist/comps/Spinner/index.d.ts +21 -0
- package/dist/comps/Spinner/index.js +31 -0
- package/dist/comps/Switch/index.d.ts +7 -0
- package/dist/comps/Switch/index.js +8 -0
- package/dist/comps/TabView/index.d.ts +9 -0
- package/dist/comps/TabView/index.js +41 -0
- package/dist/comps/TabView/tab.d.ts +3 -0
- package/dist/comps/TabView/tab.js +9 -0
- package/dist/comps/{tabview.d.ts → TabView/types.d.ts} +10 -5
- package/dist/comps/TabView/types.js +1 -0
- package/dist/comps/Text/index.d.ts +11 -0
- package/dist/comps/Text/index.js +12 -0
- package/dist/comps/TextWheel/index.d.ts +8 -0
- package/dist/comps/{textwheel.js → TextWheel/index.js} +9 -9
- package/dist/comps/TextWheel/types.d.ts +10 -0
- package/dist/comps/TextWheel/types.js +1 -0
- package/dist/comps/Tooltip/index.d.ts +4 -0
- package/dist/comps/Tooltip/index.js +19 -0
- package/dist/comps/Treeview/index.d.ts +11 -0
- package/dist/comps/{treeview → Treeview}/index.js +3 -3
- package/dist/comps/Treeview/item.d.ts +11 -0
- package/dist/comps/Treeview/item.js +26 -0
- package/dist/comps/{treeview/index.d.ts → Treeview/types.d.ts} +14 -5
- package/dist/comps/Treeview/types.js +1 -0
- package/dist/comps/index.d.ts +48 -0
- package/dist/comps/index.js +48 -0
- package/dist/comps/svgicons.d.ts +26 -2
- package/dist/comps/svgicons.js +44 -5
- package/dist/funs/css.js +52 -6
- package/dist/funs/index.d.ts +18 -17
- package/dist/funs/index.js +70 -69
- package/dist/funs/stylesheet.d.ts +3 -2
- package/dist/funs/stylesheet.js +26 -1
- package/dist/hooks/index.d.ts +7 -3
- package/dist/hooks/index.js +8 -3
- package/dist/hooks/useBase.d.ts +8 -0
- package/dist/{comps/useBase/index.js → hooks/useBase.js} +24 -6
- package/dist/hooks/useContextMenu.d.ts +7 -0
- package/dist/hooks/useContextMenu.js +21 -0
- package/dist/hooks/useDebounce.d.ts +2 -0
- package/dist/hooks/useDebounce.js +14 -0
- package/dist/hooks/useDrag.d.ts +21 -0
- package/dist/hooks/useDrag.js +71 -0
- package/dist/index.d.ts +5 -31
- package/dist/index.js +5 -32
- package/dist/styles.css +1 -1
- package/dist/types/enums.d.ts +9 -0
- package/dist/types/enums.js +11 -0
- package/dist/types/index.d.ts +54 -20
- package/dist/types/interfaces.d.ts +45 -51
- package/package.json +3 -4
- package/dist/comps/accordion.d.ts +0 -12
- package/dist/comps/accordion.js +0 -10
- package/dist/comps/alert.d.ts +0 -15
- package/dist/comps/alert.js +0 -15
- package/dist/comps/animate.d.ts +0 -6
- package/dist/comps/animate.js +0 -8
- package/dist/comps/avatar.d.ts +0 -13
- package/dist/comps/avatar.js +0 -11
- package/dist/comps/base.d.ts +0 -15
- package/dist/comps/base.js +0 -68
- package/dist/comps/box.d.ts +0 -6
- package/dist/comps/box.js +0 -12
- package/dist/comps/button.d.ts +0 -7
- package/dist/comps/button.js +0 -19
- package/dist/comps/checkbox.d.ts +0 -18
- package/dist/comps/contextmenu.d.ts +0 -15
- package/dist/comps/contextmenu.js +0 -9
- package/dist/comps/cover.d.ts +0 -15
- package/dist/comps/cover.js +0 -31
- package/dist/comps/dialog.d.ts +0 -0
- package/dist/comps/dialog.js +0 -1
- package/dist/comps/editor.d.ts +0 -12
- package/dist/comps/editor.js +0 -92
- package/dist/comps/grid/index.d.ts +0 -10
- package/dist/comps/grid/index.js +0 -16
- package/dist/comps/heading.d.ts +0 -8
- package/dist/comps/heading.js +0 -16
- package/dist/comps/icon.d.ts +0 -7
- package/dist/comps/icon.js +0 -23
- package/dist/comps/image.d.ts +0 -13
- package/dist/comps/image.js +0 -8
- package/dist/comps/input.d.ts +0 -6
- package/dist/comps/input.js +0 -19
- package/dist/comps/otp/index.d.ts +0 -6
- package/dist/comps/password.d.ts +0 -3
- package/dist/comps/password.js +0 -30
- package/dist/comps/progressbar.d.ts +0 -11
- package/dist/comps/progressbar.js +0 -14
- package/dist/comps/search/index.d.ts +0 -7
- package/dist/comps/segmented/index.d.ts +0 -46
- package/dist/comps/segmented/item.d.ts +0 -8
- package/dist/comps/select/index.d.ts +0 -15
- package/dist/comps/select/index.js +0 -79
- package/dist/comps/select/select.d.ts +0 -0
- package/dist/comps/select/select.js +0 -1
- package/dist/comps/sheet.js +0 -229
- package/dist/comps/span.d.ts +0 -6
- package/dist/comps/span.js +0 -12
- package/dist/comps/spinner.d.ts +0 -16
- package/dist/comps/spinner.js +0 -42
- package/dist/comps/tabview.js +0 -64
- package/dist/comps/textwheel.d.ts +0 -15
- package/dist/comps/treeview/item.d.ts +0 -15
- package/dist/comps/treeview/item.js +0 -23
- package/dist/comps/useBase/base.types.d.ts +0 -80
- package/dist/comps/useBase/index.d.ts +0 -10
- package/dist/funs/lexer.d.ts +0 -3
- package/dist/funs/lexer.js +0 -37
- package/dist/hooks/useCompEditor.d.ts +0 -2
- package/dist/hooks/useCompEditor.js +0 -5
- package/dist/hooks/useInteractionObserver.d.ts +0 -8
- package/dist/hooks/useInteractionObserver.js +0 -21
- package/dist/hooks/usePub.d.ts +0 -0
- package/dist/hooks/usePub.js +0 -1
- package/dist/hooks/usePubSub.d.ts +0 -3
- package/dist/hooks/usePubSub.js +0 -19
- package/dist/hooks/useSub.d.ts +0 -3
- package/dist/hooks/useSub.js +0 -17
- package/dist/hooks/useToast.d.ts +0 -2
- package/dist/hooks/useToast.js +0 -10
- package/dist/hooks/useWindowFocus.d.ts +0 -2
- package/dist/hooks/useWindowFocus.js +0 -11
- package/dist/media/edit-ui.d.ts +0 -2
- package/dist/media/edit-ui.js +0 -2
- package/dist/mixins.css +0 -1
- /package/dist/comps/{useBase/base.types.js → Accordion/types.js} +0 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { BoxProps } from "../Box";
|
|
2
|
+
import { SPINNER } from "../../types/enums";
|
|
3
|
+
export type SpinnerProps = BoxProps & {
|
|
4
|
+
type?: SPINNER;
|
|
5
|
+
size?: number;
|
|
6
|
+
width?: number;
|
|
7
|
+
color?: string;
|
|
8
|
+
background?: string;
|
|
9
|
+
foreground?: string;
|
|
10
|
+
speed?: number;
|
|
11
|
+
};
|
|
12
|
+
declare const Spinner: import("react").ForwardRefExoticComponent<BoxProps & {
|
|
13
|
+
type?: SPINNER;
|
|
14
|
+
size?: number;
|
|
15
|
+
width?: number;
|
|
16
|
+
color?: string;
|
|
17
|
+
background?: string;
|
|
18
|
+
foreground?: string;
|
|
19
|
+
speed?: number;
|
|
20
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
21
|
+
export default Spinner;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef } from "react";
|
|
4
|
+
import Box from "../Box";
|
|
5
|
+
import { SPINNER } from "../../types/enums";
|
|
6
|
+
import { useBase } from "../../hooks";
|
|
7
|
+
import { hexToRgba } from "../../funs";
|
|
8
|
+
const Spinner = forwardRef((props, ref) => {
|
|
9
|
+
const { type, size, width, speed, color, background, foreground, ...pops } = props;
|
|
10
|
+
const defaultColor = `#000000`;
|
|
11
|
+
const { className, style, rest } = useBase(pops);
|
|
12
|
+
const build = () => {
|
|
13
|
+
const c = color && color.startsWith(`var`) ? color : hexToRgba(color || defaultColor);
|
|
14
|
+
const bg = color && color.startsWith(`var`) ? color : hexToRgba(color || defaultColor, .3);
|
|
15
|
+
const _props = {
|
|
16
|
+
width: size || 30,
|
|
17
|
+
height: size || 30,
|
|
18
|
+
border: `${width || 3}px solid ${bg}`,
|
|
19
|
+
borderRadius: `50%`,
|
|
20
|
+
borderTopColor: c,
|
|
21
|
+
animationDuration: `${speed || .6}s`,
|
|
22
|
+
animationTimingFunction: `linear`
|
|
23
|
+
};
|
|
24
|
+
return _props;
|
|
25
|
+
};
|
|
26
|
+
return _jsx(Box, { className: `${className} --spinner --${(type || SPINNER.Simple).toLowerCase()}`.trim(), style: {
|
|
27
|
+
...style,
|
|
28
|
+
...build()
|
|
29
|
+
}, ...rest });
|
|
30
|
+
});
|
|
31
|
+
export default Spinner;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CheckboxHandler } from "../CheckBox/types";
|
|
2
|
+
import { CHECKBOX } from "../../types/enums";
|
|
3
|
+
declare const Switch: import("react").ForwardRefExoticComponent<import("../..").ZuzProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, keyof import("../..").ZuzProps> & {
|
|
4
|
+
type?: CHECKBOX;
|
|
5
|
+
onChange?: (checked: boolean, value: string | number | readonly string[]) => void;
|
|
6
|
+
} & import("react").RefAttributes<CheckboxHandler>>;
|
|
7
|
+
export default Switch;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef } from "react";
|
|
3
|
+
import CheckBox from "../CheckBox";
|
|
4
|
+
import { CHECKBOX } from "../../types/enums";
|
|
5
|
+
const Switch = forwardRef((props, ref) => {
|
|
6
|
+
return _jsx(CheckBox, { type: CHECKBOX.Switch, ...props, ref: ref });
|
|
7
|
+
});
|
|
8
|
+
export default Switch;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Tab, TabViewHandler } from "./types";
|
|
2
|
+
import { BoxProps } from "../Box";
|
|
3
|
+
declare const TabView: import("react").ForwardRefExoticComponent<BoxProps & {
|
|
4
|
+
onChange?: (tab: Tab, index: number) => void;
|
|
5
|
+
speed?: number;
|
|
6
|
+
tabs: Tab[];
|
|
7
|
+
prerender?: boolean;
|
|
8
|
+
} & import("react").RefAttributes<TabViewHandler>>;
|
|
9
|
+
export default TabView;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef, useEffect, useMemo, useRef, useState } from "react";
|
|
3
|
+
import { uuid } from "../../funs";
|
|
4
|
+
import { useResizeObserver } from "../../hooks";
|
|
5
|
+
import Box from "../Box";
|
|
6
|
+
import TabItem from "./tab";
|
|
7
|
+
const TabView = forwardRef((props, ref) => {
|
|
8
|
+
const { as, tabs: _tabs, speed, prerender, onChange, ...rest } = props;
|
|
9
|
+
const tabs = useMemo(() => _tabs.reduce((ts, t) => {
|
|
10
|
+
ts.push({
|
|
11
|
+
...t,
|
|
12
|
+
key: t.key || uuid()
|
|
13
|
+
});
|
|
14
|
+
return ts;
|
|
15
|
+
}, []), [_tabs]);
|
|
16
|
+
const tabview = useRef(null);
|
|
17
|
+
const tabViewID = useMemo(() => uuid(), []);
|
|
18
|
+
const [activeTab, setActiveTab] = useState(0);
|
|
19
|
+
const size = useResizeObserver(tabview);
|
|
20
|
+
const render = useMemo(() => prerender == undefined || prerender == true ? true : false, []);
|
|
21
|
+
const handleTabClick = (index) => {
|
|
22
|
+
setActiveTab(index);
|
|
23
|
+
};
|
|
24
|
+
useEffect(() => {
|
|
25
|
+
onChange && onChange(tabs[0], 0);
|
|
26
|
+
}, []);
|
|
27
|
+
return _jsxs(Box, { ref: tabview, className: `--tabview flex cols`, children: [_jsx(Box, { className: `--head flex aic`, children: tabs.map((tab, index) => _jsx(TabItem, { tab: tab, index: index, activeTab: activeTab, onClick: idx => {
|
|
28
|
+
handleTabClick(idx);
|
|
29
|
+
tab.onSelect && tab.onSelect(tab, idx);
|
|
30
|
+
onChange && onChange(tab, idx);
|
|
31
|
+
} }, `tab-${tabViewID}-${tab.key || index}`)) }), _jsx(Box, { className: `--body rel`, children: _jsx(Box, { className: `--track flex aic`, style: {
|
|
32
|
+
transition: `all ${speed || 0.3}s ease-in-out 0s`, transform: `translate(-${activeTab * size.width}px, 0)`
|
|
33
|
+
}, children: tabs.map((tab, index) => _jsx(Box, { style: {
|
|
34
|
+
width: size.width,
|
|
35
|
+
minWidth: size.width,
|
|
36
|
+
maxWidth: size.width,
|
|
37
|
+
opacity: index === activeTab ? 1 : 0,
|
|
38
|
+
transition: 'opacity 0.5s ease',
|
|
39
|
+
}, className: `--content`, children: (render || activeTab == index) && tab.body })) }) })] });
|
|
40
|
+
});
|
|
41
|
+
export default TabView;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import Button from "../Button";
|
|
3
|
+
import Icon from "../Icon";
|
|
4
|
+
import Text from "../Text";
|
|
5
|
+
const TabItem = ({ tab, index, activeTab, onClick }) => {
|
|
6
|
+
const { icon, label } = tab;
|
|
7
|
+
return _jsxs(Button, { onClick: e => onClick(index), className: `--tab jcc ${index === activeTab ? '--active' : ''}`.trim(), children: [icon && (typeof icon === 'string' ? _jsx(Icon, { className: `--icon`, name: icon }) : icon), _jsx(Text, { className: `--label rel`, children: label })] });
|
|
8
|
+
};
|
|
9
|
+
export default TabItem;
|
|
@@ -1,21 +1,26 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { BoxProps } from "../Box";
|
|
3
3
|
export interface Tab {
|
|
4
4
|
onSelect: (tab: Tab, index: number) => void;
|
|
5
5
|
tag?: string;
|
|
6
6
|
key?: string;
|
|
7
|
+
icon?: string | ReactNode | ReactNode[];
|
|
7
8
|
label: string | ReactNode | ReactNode[];
|
|
8
9
|
body: string | ReactNode | ReactNode[];
|
|
9
10
|
render?: boolean;
|
|
10
11
|
}
|
|
11
|
-
export
|
|
12
|
+
export type TabProps = {
|
|
13
|
+
tab: Tab;
|
|
14
|
+
index: number;
|
|
15
|
+
activeTab: number;
|
|
16
|
+
onClick: (index: number) => void;
|
|
17
|
+
};
|
|
18
|
+
export type TabViewProps = BoxProps & {
|
|
12
19
|
onChange?: (tab: Tab, index: number) => void;
|
|
13
20
|
speed?: number;
|
|
14
21
|
tabs: Tab[];
|
|
15
22
|
prerender?: boolean;
|
|
16
|
-
}
|
|
23
|
+
};
|
|
17
24
|
export interface TabViewHandler {
|
|
18
25
|
setTab: (index: number) => void;
|
|
19
26
|
}
|
|
20
|
-
declare const TabView: import("react").ForwardRefExoticComponent<TabViewProps & BaseProps & import("react").RefAttributes<TabViewHandler>>;
|
|
21
|
-
export default TabView;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import { Props } from '../../types';
|
|
3
|
+
export type TextProps = Props<`h1` | `h2` | `h3` | `h4` | `h5` | `h6`> & {
|
|
4
|
+
h?: number;
|
|
5
|
+
html?: ReactNode | string;
|
|
6
|
+
};
|
|
7
|
+
declare const Text: import("react").ForwardRefExoticComponent<import("../../types").ZuzProps & Omit<Omit<import("react").DetailedHTMLProps<HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref">, keyof import("../../types").ZuzProps> & {
|
|
8
|
+
h?: number;
|
|
9
|
+
html?: ReactNode | string;
|
|
10
|
+
} & import("react").RefAttributes<HTMLHeadingElement>>;
|
|
11
|
+
export default Text;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef } from 'react';
|
|
4
|
+
import { useBase } from '../../hooks';
|
|
5
|
+
import Span from '../Span';
|
|
6
|
+
const Text = forwardRef((props, ref) => {
|
|
7
|
+
const { h, html, children, ...pops } = props;
|
|
8
|
+
const { style, className, rest } = useBase(pops);
|
|
9
|
+
const Tag = `h${props.h || 1}`;
|
|
10
|
+
return _jsx(Tag, { ref: ref, style: style, className: className, ...rest, children: html ? _jsx(Span, { dangerouslySetInnerHTML: { __html: html } }) : children });
|
|
11
|
+
});
|
|
12
|
+
export default Text;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TextWheelHandler } from './types';
|
|
3
|
+
declare const TextWheel: React.ForwardRefExoticComponent<Omit<import("../Box").BoxProps, "name"> & {
|
|
4
|
+
value?: number | string;
|
|
5
|
+
color?: string;
|
|
6
|
+
direction?: `up` | `down`;
|
|
7
|
+
} & React.RefAttributes<TextWheelHandler>>;
|
|
8
|
+
export default TextWheel;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect, useImperativeHandle, useRef, useState } from 'react';
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
|
-
import
|
|
4
|
+
import Box from '../Box';
|
|
5
|
+
import Span from '../Span';
|
|
5
6
|
const TextWheel = forwardRef((props, ref) => {
|
|
6
7
|
const { as, value, color, direction, ...rest } = props;
|
|
7
8
|
const divRef = useRef(null);
|
|
8
9
|
const [_value, _setValue] = useState(value || 0);
|
|
9
10
|
useImperativeHandle(ref, () => ({
|
|
10
11
|
updateValue(v) {
|
|
11
|
-
// console.log(_value != v, _value.toString().length != v.toString().length)
|
|
12
12
|
if (_value.toString().length != v.toString().length) {
|
|
13
13
|
_setValue(v);
|
|
14
14
|
}
|
|
@@ -34,18 +34,18 @@ const TextWheel = forwardRef((props, ref) => {
|
|
|
34
34
|
// console.log(value)
|
|
35
35
|
_setValue(value || 0);
|
|
36
36
|
}, [value]);
|
|
37
|
-
return _jsxs(
|
|
37
|
+
return _jsxs(Box, { className: `text-wheel flex aic jcc rel`, "aria-hidden": true, as: as, ref: divRef, ...rest, children: [(_value || 0).toString().split('').map((char, index) => {
|
|
38
38
|
if (isNaN(parseInt(char, 10))) {
|
|
39
|
-
return _jsx(
|
|
39
|
+
return _jsx(Span, { className: "wheel-char wheel-char-symbol grid", children: char }, `wheel-char-${index}`);
|
|
40
40
|
}
|
|
41
|
-
return _jsx(
|
|
41
|
+
return _jsx(Span, { "data-value": char, className: `wheel-char grid ${index > char.toString().split('').length - 3 ? 'wheel-fraction' : ''}`.trim(), children: _jsxs(Span, { className: `wheel-char-track wheel-track-${direction || `down`} grid`, style: {
|
|
42
42
|
'--v': char
|
|
43
|
-
}, children: [_jsx(
|
|
43
|
+
}, children: [_jsx(Span, { children: !direction || direction == `down` ? 0 : 9 }), (!direction || direction == `down` ?
|
|
44
44
|
[9, 8, 7, 6, 5, 4, 3, 2, 1, 0]
|
|
45
45
|
: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]).map((val, indx) => {
|
|
46
|
-
return _jsx(
|
|
47
|
-
}), _jsx(
|
|
48
|
-
}), color && _jsx(
|
|
46
|
+
return _jsx(Span, { children: val }, `${index}--${indx}`);
|
|
47
|
+
}), _jsx(Span, { children: !direction || direction == `down` ? 9 : 0 })] }) }, `wheel-char-${index}`);
|
|
48
|
+
}), color && _jsx(Box, { className: `abs fillx`, style: {
|
|
49
49
|
zIndex: 1,
|
|
50
50
|
background: `linear-gradient(0deg, ${color}, transparent, transparent, transparent, ${color})`,
|
|
51
51
|
} })] });
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BoxProps } from "../Box";
|
|
2
|
+
export type TextWheelProps = Omit<BoxProps, "name"> & {
|
|
3
|
+
value?: number | string;
|
|
4
|
+
color?: string;
|
|
5
|
+
direction?: `up` | `down`;
|
|
6
|
+
};
|
|
7
|
+
export interface TextWheelHandler {
|
|
8
|
+
setValue: (v: number | string) => void;
|
|
9
|
+
updateValue: (v: number | string) => void;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef, useState } from 'react';
|
|
4
|
+
import { useBase } from '../../hooks';
|
|
5
|
+
import Box from '../Box';
|
|
6
|
+
import Text from '../Text';
|
|
7
|
+
import { TRANSITION_CURVES } from '../../types/enums';
|
|
8
|
+
const ToolTip = forwardRef((props, ref) => {
|
|
9
|
+
const { title, children, ...pops } = props;
|
|
10
|
+
const { style, className, rest } = useBase(pops);
|
|
11
|
+
const [hovered, setHovered] = useState(false);
|
|
12
|
+
return _jsxs(Box, { className: `--with-tooltip rel`, onMouseEnter: e => setHovered(true), onMouseLeave: e => setHovered(false), children: [_jsx(Box, { className: `--tooltip abs ${className}`.trim(), animate: {
|
|
13
|
+
from: { opacity: 0, x: `-50%`, y: -5 },
|
|
14
|
+
to: { opacity: 1, x: `-50%`, y: 0 },
|
|
15
|
+
curve: TRANSITION_CURVES.EaseInOut,
|
|
16
|
+
when: hovered
|
|
17
|
+
}, children: _jsx(Text, { className: `--text rel`, children: title }) }), children] });
|
|
18
|
+
});
|
|
19
|
+
export default ToolTip;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TreeViewHandler } from "./types";
|
|
2
|
+
import { BoxProps } from "../Box";
|
|
3
|
+
declare const TreeView: import("react").ForwardRefExoticComponent<Omit<BoxProps, "tag"> & {
|
|
4
|
+
tag?: string;
|
|
5
|
+
roots: string[];
|
|
6
|
+
nodes: import("./types").TreeNode[];
|
|
7
|
+
onSelect: (tag: string) => void;
|
|
8
|
+
icons?: import("./types").TreeNodeIcons;
|
|
9
|
+
selected?: string;
|
|
10
|
+
} & import("react").RefAttributes<TreeViewHandler>>;
|
|
11
|
+
export default TreeView;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef, useEffect, useImperativeHandle, useState } from "react";
|
|
3
|
-
import
|
|
3
|
+
import Box from "../Box";
|
|
4
4
|
import TreeItem from "./item";
|
|
5
5
|
const TreeView = forwardRef((props, ref) => {
|
|
6
6
|
const { as, nodes, onSelect, tag: treeViewTag, icons, roots, selected: _selected, ...rest } = props;
|
|
@@ -17,8 +17,8 @@ const TreeView = forwardRef((props, ref) => {
|
|
|
17
17
|
setSelected(_selected);
|
|
18
18
|
}
|
|
19
19
|
}, [_selected]);
|
|
20
|
-
return _jsx(
|
|
20
|
+
return _jsx(Box, { className: `--treeview flex cols`, children: nodes
|
|
21
21
|
.filter(node => roots.includes(node.tag))
|
|
22
|
-
.map(node => _jsx(TreeItem, { treeTag: treeViewTag ? `-${treeViewTag}` : ``, selected: selected, onSelect: handleSelect, icons: icons, meta: node, nodes: nodes },
|
|
22
|
+
.map(node => _jsx(TreeItem, { treeTag: treeViewTag ? `-${treeViewTag}` : ``, selected: selected, onSelect: e => handleSelect(e), icons: icons, meta: node, nodes: nodes }, `--node-${node.tag}`)) });
|
|
23
23
|
});
|
|
24
24
|
export default TreeView;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TreeItemHandler } from "./types";
|
|
2
|
+
import { BoxProps } from "../Box";
|
|
3
|
+
declare const TreeItem: import("react").ForwardRefExoticComponent<BoxProps & {
|
|
4
|
+
treeTag: string;
|
|
5
|
+
meta: import("./types").TreeNode;
|
|
6
|
+
nodes: import("./types").TreeNode[];
|
|
7
|
+
onSelect: (tag: string) => void;
|
|
8
|
+
selected?: String;
|
|
9
|
+
icons?: import("./types").TreeNodeIcons;
|
|
10
|
+
} & import("react").RefAttributes<TreeItemHandler>>;
|
|
11
|
+
export default TreeItem;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef, useEffect, useState } from "react";
|
|
3
|
+
import Box from "../Box";
|
|
4
|
+
import Button from "../Button";
|
|
5
|
+
import Icon from "../Icon";
|
|
6
|
+
import Text from "../Text";
|
|
7
|
+
const TreeItem = forwardRef((props, ref) => {
|
|
8
|
+
const { as, meta, nodes, icons, onSelect, treeTag, selected, ...rest } = props;
|
|
9
|
+
const { tag, label, under } = meta;
|
|
10
|
+
const [isOpen, setIsOpen] = useState(tag == `root`);
|
|
11
|
+
const toggle = () => {
|
|
12
|
+
localStorage.setItem(`--tn${treeTag}-${tag}`, isOpen ? `0` : `1`);
|
|
13
|
+
setIsOpen(!isOpen);
|
|
14
|
+
};
|
|
15
|
+
useEffect(() => {
|
|
16
|
+
if (tag == `root` && !localStorage.getItem(`--tn${treeTag}-${tag}`)) {
|
|
17
|
+
localStorage.setItem(`--tn${treeTag}-${tag}`, `1`);
|
|
18
|
+
setIsOpen(true);
|
|
19
|
+
}
|
|
20
|
+
else
|
|
21
|
+
setIsOpen(localStorage.getItem(`--tn${treeTag}-${tag}`) == `1`);
|
|
22
|
+
}, []);
|
|
23
|
+
const _nodes = nodes.filter(x => x.under == tag);
|
|
24
|
+
return _jsxs(Box, { className: `--treenode --treenode-${tag} flex cols`, children: [_jsxs(Box, { className: `--node --node-${tag} flex aic${selected == tag ? ` --selected` : ``}`, children: [_jsx(Button, { onClick: toggle, className: `--node-aro-btn`, children: _jsx(Icon, { className: `--node-aro-icon`, name: isOpen ? icons?.arrowOpen : icons?.arrowClose }) }), _jsxs(Button, { className: `--node-meta flex aic`, onClick: (e) => onSelect(tag), children: [_jsx(Icon, { className: `--node-icon`, name: isOpen ? icons?.dirOpen : icons?.dirClose }), _jsx(Text, { ...{ className: `--node-label` }, children: label })] })] }), isOpen && _nodes.length > 0 && _jsx(Box, { className: `--sub-node tree-sub-node-${tag} flex cols`, children: _nodes.map(node => _jsx(TreeItem, { treeTag: treeTag, selected: selected, onSelect: onSelect, icons: icons, meta: node, nodes: nodes }, `--node-${node.tag}`)) })] });
|
|
25
|
+
});
|
|
26
|
+
export default TreeItem;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { BoxProps } from "../Box";
|
|
3
3
|
export interface TreeNodeIcons {
|
|
4
4
|
dirOpen: ReactNode;
|
|
5
5
|
dirClose: ReactNode;
|
|
6
6
|
arrowOpen: ReactNode;
|
|
7
7
|
arrowClose: ReactNode;
|
|
8
8
|
}
|
|
9
|
-
export
|
|
9
|
+
export type TreeViewProps = Omit<BoxProps, `tag`> & {
|
|
10
10
|
tag?: string;
|
|
11
11
|
roots: string[];
|
|
12
12
|
nodes: TreeNode[];
|
|
13
13
|
onSelect: (tag: string) => void;
|
|
14
14
|
icons?: TreeNodeIcons;
|
|
15
15
|
selected?: string;
|
|
16
|
-
}
|
|
16
|
+
};
|
|
17
17
|
export interface TreeViewHandler {
|
|
18
18
|
getSelected?: () => String;
|
|
19
19
|
}
|
|
@@ -24,5 +24,14 @@ export interface TreeNode {
|
|
|
24
24
|
selected?: string;
|
|
25
25
|
expanded?: boolean;
|
|
26
26
|
}
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
export type TreeItemProps = BoxProps & {
|
|
28
|
+
treeTag: string;
|
|
29
|
+
meta: TreeNode;
|
|
30
|
+
nodes: TreeNode[];
|
|
31
|
+
onSelect: (tag: string) => void;
|
|
32
|
+
selected?: String;
|
|
33
|
+
icons?: TreeNodeIcons;
|
|
34
|
+
};
|
|
35
|
+
export interface TreeItemHandler {
|
|
36
|
+
onSelect?: (v: TreeNode) => void;
|
|
37
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**Components */
|
|
2
|
+
export { default as ActionBar } from './Actionbar';
|
|
3
|
+
export * from './Actionbar/types';
|
|
4
|
+
export { default as Accordion } from './Accordion';
|
|
5
|
+
export * from './Accordion/types';
|
|
6
|
+
export { type AvatarProps, default as Avatar } from './Avatar';
|
|
7
|
+
export { type BoxProps, default as Box } from './Box';
|
|
8
|
+
export { type ButtonProps, default as Button } from './Button';
|
|
9
|
+
export { default as CheckBox } from './CheckBox';
|
|
10
|
+
export * from './CheckBox/types';
|
|
11
|
+
export { default as ContextMenu } from './ContextMenu';
|
|
12
|
+
export * from './ContextMenu/types';
|
|
13
|
+
export { type CoverProps, default as Cover } from './Cover';
|
|
14
|
+
export { default as Drawer } from './Drawer';
|
|
15
|
+
export * from './Drawer/types';
|
|
16
|
+
/**Editor */
|
|
17
|
+
export { default as ZuzBuilder } from './Editor';
|
|
18
|
+
export { default as TimeLine } from './Editor/Timeline';
|
|
19
|
+
export * from './Editor/types';
|
|
20
|
+
export { default as withEditor } from './Editor/withEditor';
|
|
21
|
+
export { type FormProps, default as Form } from './Form';
|
|
22
|
+
export { type IconProps, default as Icon } from './Icon';
|
|
23
|
+
export { type ImageProps, default as Image } from './Image';
|
|
24
|
+
export { type InputProps, default as Input } from './Input';
|
|
25
|
+
export { type LabelProps, default as Label } from './Label';
|
|
26
|
+
export { type OverlayProps, default as Overlay } from './Overlay';
|
|
27
|
+
export { type PasswordProps, default as Password } from './Password';
|
|
28
|
+
export { type PinInputProps, default as PinInput } from './PinInput';
|
|
29
|
+
export { default as ProgressBar } from './ProgressBar';
|
|
30
|
+
export * from './ProgressBar/types';
|
|
31
|
+
export { type SearchProps, default as Search } from './Search';
|
|
32
|
+
export { default as SelectTabs } from './Segmented';
|
|
33
|
+
export * from './Segmented/types';
|
|
34
|
+
export { default as Select } from './Select';
|
|
35
|
+
export * from './Select/types';
|
|
36
|
+
export { type SheetProps, default as Sheet } from './Sheet';
|
|
37
|
+
export { type SliderProps, default as Slider } from './Slider';
|
|
38
|
+
export { type SpanProps, default as Span } from './Span';
|
|
39
|
+
export { type SpinnerProps, default as Spinner } from './Spinner';
|
|
40
|
+
export { default as Switch } from './Switch';
|
|
41
|
+
export { default as TabView } from './TabView';
|
|
42
|
+
export * from './TabView/types';
|
|
43
|
+
export { type TextProps, default as Text } from './Text';
|
|
44
|
+
export { default as TextWheel } from './TextWheel';
|
|
45
|
+
export * from './TextWheel/types';
|
|
46
|
+
export { type ToolTipProps, default as ToolTip } from './Tooltip';
|
|
47
|
+
export { default as TreeView } from './Treeview';
|
|
48
|
+
export * from './Treeview/types';
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**Components */
|
|
2
|
+
export { default as ActionBar } from './Actionbar';
|
|
3
|
+
export * from './Actionbar/types';
|
|
4
|
+
export { default as Accordion } from './Accordion';
|
|
5
|
+
export * from './Accordion/types';
|
|
6
|
+
export { default as Avatar } from './Avatar';
|
|
7
|
+
export { default as Box } from './Box';
|
|
8
|
+
export { default as Button } from './Button';
|
|
9
|
+
export { default as CheckBox } from './CheckBox';
|
|
10
|
+
export * from './CheckBox/types';
|
|
11
|
+
export { default as ContextMenu } from './ContextMenu';
|
|
12
|
+
export * from './ContextMenu/types';
|
|
13
|
+
export { default as Cover } from './Cover';
|
|
14
|
+
export { default as Drawer } from './Drawer';
|
|
15
|
+
export * from './Drawer/types';
|
|
16
|
+
/**Editor */
|
|
17
|
+
export { default as ZuzBuilder } from './Editor';
|
|
18
|
+
export { default as TimeLine } from './Editor/Timeline';
|
|
19
|
+
export * from './Editor/types';
|
|
20
|
+
export { default as withEditor } from './Editor/withEditor';
|
|
21
|
+
export { default as Form } from './Form';
|
|
22
|
+
export { default as Icon } from './Icon';
|
|
23
|
+
export { default as Image } from './Image';
|
|
24
|
+
export { default as Input } from './Input';
|
|
25
|
+
export { default as Label } from './Label';
|
|
26
|
+
export { default as Overlay } from './Overlay';
|
|
27
|
+
export { default as Password } from './Password';
|
|
28
|
+
export { default as PinInput } from './PinInput';
|
|
29
|
+
export { default as ProgressBar } from './ProgressBar';
|
|
30
|
+
export * from './ProgressBar/types';
|
|
31
|
+
export { default as Search } from './Search';
|
|
32
|
+
export { default as SelectTabs } from './Segmented';
|
|
33
|
+
export * from './Segmented/types';
|
|
34
|
+
export { default as Select } from './Select';
|
|
35
|
+
export * from './Select/types';
|
|
36
|
+
export { default as Sheet } from './Sheet';
|
|
37
|
+
export { default as Slider } from './Slider';
|
|
38
|
+
export { default as Span } from './Span';
|
|
39
|
+
export { default as Spinner } from './Spinner';
|
|
40
|
+
export { default as Switch } from './Switch';
|
|
41
|
+
export { default as TabView } from './TabView';
|
|
42
|
+
export * from './TabView/types';
|
|
43
|
+
export { default as Text } from './Text';
|
|
44
|
+
export { default as TextWheel } from './TextWheel';
|
|
45
|
+
export * from './TextWheel/types';
|
|
46
|
+
export { default as ToolTip } from './Tooltip';
|
|
47
|
+
export { default as TreeView } from './Treeview';
|
|
48
|
+
export * from './Treeview/types';
|
package/dist/comps/svgicons.d.ts
CHANGED
|
@@ -1,3 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
declare const SVGIcons: {
|
|
2
|
+
arrowDown: import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
arrowUp: import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
search: import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
close: import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
eye: import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
eyeSlash: import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
check: import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
layers: import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
play: import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
pause: import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
next: import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
prev: import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
add: import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
chevronUp: import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
chevronBottom: import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
chevronRight: import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
chevronLeft: import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
chevronRightOutline: import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
chevronLeftOutline: import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
chevronUpOutline: import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
chevronDownOutline: import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
bezier: import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
mouse: import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
addKey: import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
};
|
|
3
27
|
export default SVGIcons;
|
package/dist/comps/svgicons.js
CHANGED
|
@@ -1,8 +1,47 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
const SVGIcons = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
arrowDown: _jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", children: _jsx("path", { fill: "#292D32", d: "M17.919 8.18H6.079c-.96 0-1.44 1.16-.76 1.84l5.18 5.18c.83.83 2.18.83 3.01 0l1.97-1.97 3.21-3.21c.67-.68.19-1.84-.77-1.84z" }) }),
|
|
4
|
+
arrowUp: _jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", children: _jsx("path", { fill: "#292D32", d: "M18.68 13.978l-3.21-3.21-1.96-1.97a2.13 2.13 0 00-3.01 0l-5.18 5.18c-.68.68-.19 1.84.76 1.84h11.84c.96 0 1.44-1.16.76-1.84z" }) }),
|
|
5
|
+
search: _jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 34 34", children: _jsx("path", { d: "M27.414,24.586l-5.077-5.077C23.386,17.928,24,16.035,24,14c0-5.514-4.486-10-10-10S4,8.486,4,14 s4.486,10,10,10c2.035,0,3.928-0.614,5.509-1.663l5.077,5.077c0.78,0.781,2.048,0.781,2.828,0 C28.195,26.633,28.195,25.367,27.414,24.586z M7,14c0-3.86,3.14-7,7-7s7,3.14,7,7s-3.14,7-7,7S7,17.86,7,14z" }) }),
|
|
6
|
+
close: _jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: _jsx("path", { d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" }) }),
|
|
7
|
+
eye: _jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", children: [_jsx("path", { fill: "#333", d: "M12 20.5c-4.299 0-8.24-3.023-10.544-8.086a1 1 0 010-.828C3.759 6.523 7.701 3.5 12 3.5s8.24 3.023 10.544 8.086a1.001 1.001 0 010 .828 18.14 18.14 0 01-1.391 2.52 1 1 0 11-1.666-1.106A15.87 15.87 0 0020.529 12C18.543 7.92 15.379 5.5 12 5.5S5.457 7.92 3.471 12c1.986 4.08 5.15 6.5 8.529 6.5a7.964 7.964 0 005.036-1.92 1 1 0 111.265 1.55A9.94 9.94 0 0112 20.5z" }), _jsx("path", { fill: "#333", d: "M12 16a4.004 4.004 0 01-3.929-4.756 1 1 0 011.965.375A2 2 0 1014 12a2.034 2.034 0 00-2.053-1.999 1.04 1.04 0 01-1.043-.947.963.963 0 01.902-1.05L12 8a4 4 0 010 8z" })] }),
|
|
8
|
+
eyeSlash: _jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", children: [_jsx("path", { fill: "#333", d: "M12 15c-4.132 0-7.98-1.214-10.294-3.249a1 1 0 111.32-1.502C4.986 11.972 8.34 13 12 13s7.014-1.028 8.974-2.751a1 1 0 111.32 1.502C19.98 13.786 16.132 15 12 15z" }), _jsx("path", { fill: "#333", d: "M12 18a1 1 0 01-1-1v-3a1 1 0 012 0v3a1 1 0 01-1 1zM7.749 17.667a.964.964 0 01-.17-.014 1 1 0 01-.817-1.155l.505-2.935a1 1 0 111.97.339l-.504 2.935a1 1 0 01-.984.83zM3.636 16.306a1.001 1.001 0 01-.942-1.336l.978-2.745a1 1 0 111.884.672l-.978 2.745a1 1 0 01-.942.664zM16.251 17.667a1 1 0 01-.984-.83l-.505-2.935a1 1 0 011.97-.339l.506 2.935a1 1 0 01-.816 1.155.964.964 0 01-.17.014zM20.364 16.306a1 1 0 01-.942-.664l-.978-2.745a1 1 0 111.884-.672l.978 2.745a1.001 1.001 0 01-.942 1.336z" })] }),
|
|
9
|
+
check: _jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: [" ", _jsx("path", { d: "M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z" }), " "] }),
|
|
10
|
+
//Editor
|
|
11
|
+
layers: _jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "100%", height: "100%", viewBox: "0 0 24 24", fill: "none", children: [_jsx("path", { d: "M19.3697 4.89109L13.5097 2.28109C12.6497 1.90109 11.3497 1.90109 10.4897 2.28109L4.62969 4.89109C3.14969 5.55109 2.92969 6.45109 2.92969 6.93109C2.92969 7.41109 3.14969 8.31109 4.62969 8.97109L10.4897 11.5811C10.9197 11.7711 11.4597 11.8711 11.9997 11.8711C12.5397 11.8711 13.0797 11.7711 13.5097 11.5811L19.3697 8.97109C20.8497 8.31109 21.0697 7.41109 21.0697 6.93109C21.0697 6.45109 20.8597 5.55109 19.3697 4.89109Z", fill: "#292D32" }), _jsx("path", { d: "M12.0003 17.04C11.6203 17.04 11.2403 16.96 10.8903 16.81L4.15031 13.81C3.12031 13.35 2.32031 12.12 2.32031 10.99C2.32031 10.58 2.65031 10.25 3.06031 10.25C3.47031 10.25 3.80031 10.58 3.80031 10.99C3.80031 11.53 4.25031 12.23 4.75031 12.45L11.4903 15.45C11.8103 15.59 12.1803 15.59 12.5003 15.45L19.2403 12.45C19.7403 12.23 20.1903 11.54 20.1903 10.99C20.1903 10.58 20.5203 10.25 20.9303 10.25C21.3403 10.25 21.6703 10.58 21.6703 10.99C21.6703 12.11 20.8703 13.35 19.8403 13.81L13.1003 16.81C12.7603 16.96 12.3803 17.04 12.0003 17.04Z", fill: "#292D32" }), _jsx("path", { d: "M12.0003 22.0009C11.6203 22.0009 11.2403 21.9209 10.8903 21.7709L4.15031 18.7709C3.04031 18.2809 2.32031 17.1709 2.32031 15.9509C2.32031 15.5409 2.65031 15.2109 3.06031 15.2109C3.47031 15.2109 3.80031 15.5409 3.80031 15.9509C3.80031 16.5809 4.17031 17.1509 4.75031 17.4109L11.4903 20.4109C11.8103 20.5509 12.1803 20.5509 12.5003 20.4109L19.2403 17.4109C19.8103 17.1609 20.1903 16.5809 20.1903 15.9509C20.1903 15.5409 20.5203 15.2109 20.9303 15.2109C21.3403 15.2109 21.6703 15.5409 21.6703 15.9509C21.6703 17.1709 20.9503 18.2709 19.8403 18.7709L13.1003 21.7709C12.7603 21.9209 12.3803 22.0009 12.0003 22.0009Z", fill: "#292D32" })] }),
|
|
12
|
+
play: _jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: _jsx("path", { d: "M8 5v14l11-7z" }) }),
|
|
13
|
+
pause: _jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: _jsx("path", { d: "M6 19h4V5H6zm8-14v14h4V5z" }) }),
|
|
14
|
+
next: _jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: _jsx("path", { d: "m6 18 8.5-6L6 6zM16 6v12h2V6z" }) }),
|
|
15
|
+
prev: _jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: _jsx("path", { d: "M6 6h2v12H6zm3.5 6 8.5 6V6z" }) }),
|
|
16
|
+
add: _jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", children: _jsx("path", { fill: "#292D32", d: "M12 2C6.49 2 2 6.49 2 12s4.49 10 10 10 10-4.49 10-10S17.51 2 12 2m4 10.75h-3.25V16c0 .41-.34.75-.75.75s-.75-.34-.75-.75v-3.25H8c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h3.25V8c0-.41.34-.75.75-.75s.75.34.75.75v3.25H16c.41 0 .75.34.75.75s-.34.75-.75.75" }) }),
|
|
17
|
+
chevronUp: _jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "100%", height: "100%", viewBox: "0 0 24 24", children: _jsx("path", { d: "m7 14 5-5 5 5z" }) }),
|
|
18
|
+
chevronBottom: _jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "100%", height: "100%", viewBox: "0 0 24 24", children: _jsx("path", { d: "m7 10 5 5 5-5z" }) }),
|
|
19
|
+
chevronRight: _jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "100%", height: "100%", viewBox: "0 0 24 24", children: _jsx("path", { d: "m10 17 5-5-5-5v10z" }) }),
|
|
20
|
+
chevronLeft: _jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "100%", height: "100%", viewBox: "0 0 24 24", children: _jsx("path", { d: "m14 7-5 5 5 5V7z" }) }),
|
|
21
|
+
chevronRightOutline: _jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "100%", height: "100%", viewBox: "0 0 24 24", children: _jsx("path", { d: "M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z" }) }),
|
|
22
|
+
chevronLeftOutline: _jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "100%", height: "100%", viewBox: "0 0 24 24", children: _jsx("path", { d: "M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z" }) }),
|
|
23
|
+
chevronUpOutline: _jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "100%", height: "100%", viewBox: "0 0 24 24", children: _jsx("path", { d: "M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z" }) }),
|
|
24
|
+
chevronDownOutline: _jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "100%", height: "100%", viewBox: "0 0 24 24", children: _jsx("path", { d: "M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z" }) }),
|
|
25
|
+
bezier: _jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "100%", height: "100%", viewBox: "0 0 24 24", fill: "none", children: _jsx("path", { d: "M19.14 7.72C19.43 8.47 20.15 9 21 9C22.1 9 23 8.1 23 7C23 5.9 22.1 5 21 5C20.15 5 19.43 5.53 19.14 6.28C19.09 6.27 19.05 6.25 19 6.25H15V5.5C15 4.68 14.32 4 13.5 4H10.5C9.68 4 9 4.68 9 5.5V6.25H5C4.95 6.25 4.91 6.27 4.86 6.28C4.57 5.53 3.85 5 3 5C1.9 5 1 5.9 1 7C1 8.1 1.9 9 3 9C3.85 9 4.57 8.47 4.86 7.72C4.91 7.73 4.95 7.75 5 7.75H7.57C5.52 9.27 4.25 11.79 4.25 14.5C4.25 14.67 4.26 14.83 4.28 15H4C3.17 15 2.5 15.67 2.5 16.5V18.5C2.5 19.33 3.17 20 4 20H6C6.22 20 6.42 19.95 6.61 19.86C7.13 19.64 7.5 19.11 7.5 18.5V16.5C7.5 15.67 6.83 15 6 15H5.77C5.77 14.97 5.78 14.94 5.78 14.91C5.76 14.77 5.76 14.64 5.76 14.5C5.76 12.03 7.03 9.77 9.02 8.6C9.06 9.37 9.71 10 10.5 10H13.5C14.29 10 14.94 9.37 14.99 8.6C16.98 9.77 18.25 12.04 18.25 14.5C18.25 14.64 18.24 14.77 18.23 14.91C18.23 14.94 18.24 14.97 18.24 15H18C17.17 15 16.5 15.67 16.5 16.5V18.5C16.5 19.11 16.87 19.64 17.39 19.86C17.58 19.95 17.78 20 18 20H20C20.83 20 21.5 19.33 21.5 18.5V16.5C21.5 15.67 20.83 15 20 15H19.72C19.74 14.83 19.75 14.67 19.75 14.5C19.75 11.79 18.48 9.27 16.43 7.75H19C19.05 7.75 19.09 7.73 19.14 7.72Z", fill: "#292D32" }) }),
|
|
26
|
+
mouse: _jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "100%", height: "100%", viewBox: "0 0 24 24", fill: "none", children: _jsx("path", { d: "M13.2978 2.11468C13.0064 2.06339 12.75 2.29593 12.75 2.59185V5.45262C12.75 5.65098 12.8709 5.82564 13.0359 5.93583C13.5391 6.27202 13.87 6.84597 13.87 7.49906V9.49906C13.87 10.5291 13.03 11.3791 12 11.3791C10.96 11.3791 10.12 10.5291 10.12 9.49906V7.49906C10.12 6.84578 10.4583 6.27168 10.9639 5.93554C11.1291 5.82572 11.25 5.65098 11.25 5.45262V2.59249C11.25 2.29634 10.9935 2.0637 10.7019 2.11513C9.15243 2.38834 7.76579 3.13327 6.7 4.19906C5.34 5.55906 4.5 7.43906 4.5 9.49906V14.4991C4.5 18.6291 7.87 21.9991 12 21.9991C16.13 21.9991 19.5 18.6291 19.5 14.4991V9.49906C19.5 5.80857 16.813 2.73328 13.2978 2.11468Z", fill: "#292D32" }) }),
|
|
27
|
+
addKey: _jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "100%", height: "100%", viewBox: "0 0 24 24", fill: "none", children: _jsx("path", { d: "M20.9498 14.55L14.5598 20.94C13.1598 22.34 10.8598 22.34 9.44977 20.94L3.05977 14.55C1.65977 13.15 1.65977 10.85 3.05977 9.44L9.44977 3.05C10.8498 1.65 13.1498 1.65 14.5598 3.05L20.9498 9.44C22.3498 10.85 22.3498 13.15 20.9498 14.55Z", fill: "#292D32" }) }),
|
|
28
|
+
// animation: <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
|
29
|
+
// <path fill="#292D32" d="m15.39 5.211 1.41 2.82c.19.39.7.76 1.13.84l2.55.42c1.63.27 2.01 1.45.84 2.63l-1.99 1.99c-.33.33-.52.98-.41 1.45l.57 2.46c.45 1.94-.59 2.7-2.3 1.68l-2.39-1.42c-.43-.26-1.15-.26-1.58 0l-2.39 1.42c-1.71 1.01-2.75.26-2.3-1.68l.57-2.46c.09-.48-.1-1.13-.43-1.46l-1.99-1.99c-1.17-1.17-.79-2.35.84-2.63l2.55-.42c.43-.07.94-.45 1.13-.84l1.41-2.82c.77-1.52 2.01-1.52 2.78.01M8 5.75H2c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h6c.41 0 .75.34.75.75s-.34.75-.75.75M5 19.75H2c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h3c.41 0 .75.34.75.75s-.34.75-.75.75M3 12.75H2c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h1c.41 0 .75.34.75.75s-.34.75-.75.75" />
|
|
30
|
+
// </svg>,
|
|
31
|
+
// style: <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
|
32
|
+
// <path fill="#292D32" d="M21.3 7.58h-5.58c-.39 0-.7-.31-.7-.7s.31-.7.7-.7h5.58c.39 0 .7.31.7.7s-.31.7-.7.7M6.42 7.58H2.7c-.39 0-.7-.31-.7-.7s.31-.7.7-.7h3.72c.39 0 .7.31.7.7s-.32.7-.7.7" />
|
|
33
|
+
// <path fill="#292D32" d="M10.14 10.83a3.95 3.95 0 1 0 0-7.9 3.95 3.95 0 0 0 0 7.9M21.3 17.81h-3.72c-.39 0-.7-.31-.7-.7s.31-.7.7-.7h3.72c.39 0 .7.31.7.7s-.31.7-.7.7M8.28 17.81H2.7c-.39 0-.7-.31-.7-.7s.31-.7.7-.7h5.58c.39 0 .7.31.7.7s-.32.7-.7.7" />
|
|
34
|
+
// <path fill="#292D32" d="M13.86 21.072a3.95 3.95 0 1 0 0-7.9 3.95 3.95 0 0 0 0 7.9" />
|
|
35
|
+
// </svg>,
|
|
36
|
+
// play: <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
|
37
|
+
// <path fill="#292D32" d="M11.969 2c-5.52 0-10 4.48-10 10s4.48 10 10 10 10-4.48 10-10-4.47-10-10-10m3 12.23-2.9 1.67a2.28 2.28 0 0 1-2.3 0 2.29 2.29 0 0 1-1.15-2v-3.35c0-.83.43-1.58 1.15-2s1.58-.42 2.31 0l2.9 1.67c.72.42 1.15 1.16 1.15 2s-.43 1.59-1.16 2.01" />
|
|
38
|
+
// </svg>,
|
|
39
|
+
// pause: <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
|
40
|
+
// <path fill="#292D32" d="M10.65 19.11V4.89c0-1.35-.57-1.89-2.01-1.89H5.01C3.57 3 3 3.54 3 4.89v14.22C3 20.46 3.57 21 5.01 21h3.63c1.44 0 2.01-.54 2.01-1.89M21.002 19.11V4.89c0-1.35-.57-1.89-2.01-1.89h-3.63c-1.43 0-2.01.54-2.01 1.89v14.22c0 1.35.57 1.89 2.01 1.89h3.63c1.44 0 2.01-.54 2.01-1.89" />
|
|
41
|
+
// </svg>,
|
|
42
|
+
// mouse: <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
|
43
|
+
// <path fill="#292D32" d="M21 7.52v5.88c0 .34-.33.58-.65.48l-3.93-1.22a3.02 3.02 0 0 0-3.78 3.79l1.21 3.9c.1.32-.14.65-.48.65H7.52C4.07 21 2 18.94 2 15.48V7.52C2 4.06 4.07 2 7.52 2h7.96C18.93 2 21 4.06 21 7.52" />
|
|
44
|
+
// <path fill="#292D32" d="m21.96 18.839-1.63.55c-.45.15-.81.5-.96.96l-.55 1.63c-.47 1.41-2.45 1.38-2.89-.03l-1.85-5.95c-.36-1.18.73-2.28 1.9-1.91l5.96 1.85c1.4.44 1.42 2.43.02 2.9" />
|
|
45
|
+
// </svg>,
|
|
7
46
|
};
|
|
8
47
|
export default SVGIcons;
|