@code0-tech/pictor 0.6.1 → 0.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/dist/assets/components/command/Command.style.css +1 -1
- package/dist/assets/components/gantt/Gantt.style.css +1 -0
- package/dist/assets/components/layout/Layout.style.css +1 -1
- package/dist/components/alert/Alert.d.ts +2 -2
- package/dist/components/alert/Alert.js +8 -7
- package/dist/components/avatar/Avatar.d.ts +2 -2
- package/dist/components/avatar/Avatar.js +30 -27
- package/dist/components/badge/Badge.d.ts +2 -2
- package/dist/components/badge/Badge.js +26 -23
- package/dist/components/breadcrumb/Breadcrumb.d.ts +2 -2
- package/dist/components/breadcrumb/Breadcrumb.js +16 -14
- package/dist/components/button/Button.d.ts +3 -3
- package/dist/components/button/Button.js +13 -12
- package/dist/components/button-group/ButtonGroup.d.ts +2 -2
- package/dist/components/button-group/ButtonGroup.js +23 -20
- package/dist/components/card/Card.d.ts +3 -3
- package/dist/components/card/Card.js +19 -16
- package/dist/components/card/CardSection.d.ts +2 -2
- package/dist/components/card/CardSection.js +16 -13
- package/dist/components/col/Col.d.ts +2 -2
- package/dist/components/col/Col.js +22 -19
- package/dist/components/command/Command.d.ts +12 -12
- package/dist/components/command/Command.js +91 -78
- package/dist/components/container/Container.d.ts +2 -2
- package/dist/components/container/Container.js +13 -10
- package/dist/components/context-menu/ContextMenu.d.ts +13 -13
- package/dist/components/context-menu/ContextMenu.js +26 -25
- package/dist/components/data-table/DataTable.d.ts +2 -2
- package/dist/components/data-table/DataTable.js +18 -17
- package/dist/components/data-table/DataTableColumn.d.ts +2 -2
- package/dist/components/data-table/DataTableColumn.js +12 -11
- package/dist/components/data-table/DataTableFilterInput.js +4 -3
- package/dist/components/dialog/Dialog.d.ts +12 -12
- package/dist/components/dialog/Dialog.js +24 -23
- package/dist/components/editor/Editor.d.ts +2 -2
- package/dist/components/editor/Editor.js +4 -3
- package/dist/components/file-tabs/FileTabs.d.ts +5 -5
- package/dist/components/file-tabs/FileTabs.js +38 -35
- package/dist/components/flex/Flex.d.ts +2 -2
- package/dist/components/flex/Flex.js +16 -13
- package/dist/components/form/CheckboxInput.js +17 -15
- package/dist/components/form/Input.d.ts +3 -3
- package/dist/components/form/Input.js +4 -3
- package/dist/components/form/PinInput.d.ts +3 -3
- package/dist/components/form/PinInput.js +33 -30
- package/dist/components/form/RadioGroup.js +22 -19
- package/dist/components/form/RadioInput.d.ts +2 -2
- package/dist/components/form/RadioInput.js +19 -16
- package/dist/components/fullscreen/FullScreen.d.ts +2 -2
- package/dist/components/fullscreen/FullScreen.js +8 -6
- package/dist/components/gantt/Gantt.d.ts +12 -0
- package/dist/components/gantt/Gantt.js +92 -0
- package/dist/components/gantt/GanttFooter.d.ts +2 -0
- package/dist/components/gantt/GanttFooter.js +38 -0
- package/dist/components/gantt/GanttGroup.d.ts +8 -0
- package/dist/components/gantt/GanttGroup.js +134 -0
- package/dist/components/gantt/GanttHeader.d.ts +10 -0
- package/dist/components/gantt/GanttHeader.js +55 -0
- package/dist/components/gantt/GanttItem.d.ts +16 -0
- package/dist/components/gantt/GanttItem.js +23 -0
- package/dist/components/layout/Layout.d.ts +3 -3
- package/dist/components/layout/Layout.js +37 -33
- package/dist/components/menu/Menu.d.ts +15 -15
- package/dist/components/menu/Menu.js +35 -32
- package/dist/components/resizable/Resizable.d.ts +4 -4
- package/dist/components/resizable/Resizable.js +18 -17
- package/dist/components/row/Row.d.ts +2 -2
- package/dist/components/row/Row.js +15 -12
- package/dist/components/scroll-area/ScrollArea.d.ts +6 -6
- package/dist/components/scroll-area/ScrollArea.js +35 -32
- package/dist/components/segmented-control/SegmentedControl.d.ts +3 -3
- package/dist/components/segmented-control/SegmentedControl.js +12 -11
- package/dist/components/spacing/Spacing.d.ts +3 -3
- package/dist/components/spacing/Spacing.js +12 -11
- package/dist/components/tab/Tab.d.ts +5 -5
- package/dist/components/tab/Tab.js +22 -21
- package/dist/components/text/Text.d.ts +3 -3
- package/dist/components/text/Text.js +14 -11
- package/dist/components/toast/Toast.d.ts +2 -2
- package/dist/components/toast/Toast.js +32 -31
- package/dist/components/tooltip/Tooltip.d.ts +6 -6
- package/dist/components/tooltip/Tooltip.js +34 -31
- package/dist/index.d.ts +1 -0
- package/dist/index.js +151 -152
- package/dist/utils/color.d.ts +4 -0
- package/dist/utils/color.js +43 -0
- package/dist/utils/component.d.ts +105 -0
- package/dist/utils/component.js +130 -0
- package/dist/utils/index.d.ts +3 -4
- package/dist/utils/index.js +14 -18
- package/dist/utils/size.d.ts +4 -0
- package/dist/utils/size.js +21 -0
- package/dist/utils/utils.d.ts +0 -55
- package/dist/utils/utils.js +1 -159
- package/package.json +3 -3
- package/dist/utils/nonReactiveArrayService.d.ts +0 -19
- package/dist/utils/nonReactiveArrayService.js +0 -54
- package/dist/utils/objectStore.d.ts +0 -12
- package/dist/utils/objectStore.js +0 -34
- package/dist/utils/types.d.ts +0 -57
- package/dist/utils/types.js +0 -4
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ComponentProps } from '../../utils';
|
|
3
3
|
import { TabsContentProps, TabsListProps, TabsProps, TabsTriggerProps } from '@radix-ui/react-tabs';
|
|
4
|
-
export type TabProps =
|
|
5
|
-
export type TabListProps =
|
|
6
|
-
export type TabTriggerProps =
|
|
7
|
-
export type TabContentProps =
|
|
4
|
+
export type TabProps = ComponentProps & TabsProps;
|
|
5
|
+
export type TabListProps = ComponentProps & TabsListProps;
|
|
6
|
+
export type TabTriggerProps = ComponentProps & TabsTriggerProps;
|
|
7
|
+
export type TabContentProps = ComponentProps & TabsContentProps;
|
|
8
8
|
export declare const Tab: React.FC<TabProps>;
|
|
9
9
|
export declare const TabList: React.FC<TabListProps>;
|
|
10
10
|
export declare const TabTrigger: React.FC<TabTriggerProps>;
|
|
@@ -1,40 +1,41 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { c as
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { c as s } from "../../_virtual/compiler-runtime.js";
|
|
3
3
|
import "../../utils/contextStore.js";
|
|
4
4
|
import "react";
|
|
5
|
-
import {
|
|
5
|
+
import { mergeComponentProps as r } from "../../utils/component.js";
|
|
6
|
+
import "js-md5";
|
|
6
7
|
import { Tabs as c, Content as m, List as b, Trigger as f } from "@radix-ui/react-tabs";
|
|
7
8
|
import '../../assets/components/tab/Tab.style.css';/* empty css */
|
|
8
|
-
const
|
|
9
|
-
const t =
|
|
9
|
+
const C = (a) => {
|
|
10
|
+
const t = s.c(4);
|
|
10
11
|
let e;
|
|
11
12
|
t[0] !== a ? (e = r("tab", a), t[0] = a, t[1] = e) : e = t[1];
|
|
12
13
|
let l;
|
|
13
|
-
return t[2] !== e ? (l = /* @__PURE__ */
|
|
14
|
-
},
|
|
15
|
-
const t =
|
|
14
|
+
return t[2] !== e ? (l = /* @__PURE__ */ n(c, { "data-slot": "tabs", ...e }), t[2] = e, t[3] = l) : l = t[3], l;
|
|
15
|
+
}, L = (a) => {
|
|
16
|
+
const t = s.c(4);
|
|
16
17
|
let e;
|
|
17
18
|
t[0] !== a ? (e = r("tab__list", a), t[0] = a, t[1] = e) : e = t[1];
|
|
18
19
|
let l;
|
|
19
|
-
return t[2] !== e ? (l = /* @__PURE__ */
|
|
20
|
-
},
|
|
21
|
-
const t =
|
|
20
|
+
return t[2] !== e ? (l = /* @__PURE__ */ n(b, { "data-slot": "tabs", ...e }), t[2] = e, t[3] = l) : l = t[3], l;
|
|
21
|
+
}, j = (a) => {
|
|
22
|
+
const t = s.c(5), e = a.value;
|
|
22
23
|
let l;
|
|
23
24
|
t[0] !== a ? (l = r("tab__trigger", a), t[0] = a, t[1] = l) : l = t[1];
|
|
24
|
-
const
|
|
25
|
+
const o = l;
|
|
25
26
|
let i;
|
|
26
|
-
return t[2] !== a.value || t[3] !==
|
|
27
|
-
},
|
|
28
|
-
const t =
|
|
27
|
+
return t[2] !== a.value || t[3] !== o ? (i = /* @__PURE__ */ n(f, { "data-slot": "tabs", "data-value": e, ...o }), t[2] = a.value, t[3] = o, t[4] = i) : i = t[4], i;
|
|
28
|
+
}, E = (a) => {
|
|
29
|
+
const t = s.c(4);
|
|
29
30
|
let e;
|
|
30
31
|
t[0] !== a ? (e = r("tab__content", a), t[0] = a, t[1] = e) : e = t[1];
|
|
31
32
|
const l = e;
|
|
32
|
-
let
|
|
33
|
-
return t[2] !== l ? (
|
|
33
|
+
let o;
|
|
34
|
+
return t[2] !== l ? (o = /* @__PURE__ */ n(m, { "data-slot": "tabs", ...l }), t[2] = l, t[3] = o) : o = t[3], o;
|
|
34
35
|
};
|
|
35
36
|
export {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
C as Tab,
|
|
38
|
+
E as TabContent,
|
|
39
|
+
L as TabList,
|
|
40
|
+
j as TabTrigger
|
|
40
41
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export interface FontType extends Omit<Omit<
|
|
2
|
+
import { Sizes, Component } from '../../utils';
|
|
3
|
+
export interface FontType extends Omit<Omit<Component<HTMLSpanElement>, "children">, "size"> {
|
|
4
4
|
children: React.ReactNode;
|
|
5
|
-
size?:
|
|
5
|
+
size?: Sizes;
|
|
6
6
|
hierarchy?: "primary" | "secondary" | "tertiary";
|
|
7
7
|
}
|
|
8
8
|
export declare const Text: React.FC<FontType>;
|
|
@@ -1,23 +1,26 @@
|
|
|
1
1
|
import { jsx as p } from "react/jsx-runtime";
|
|
2
2
|
import { c as h } from "../../_virtual/compiler-runtime.js";
|
|
3
|
+
import "../../utils/contextStore.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import { mergeComponentProps as l } from "../../utils/component.js";
|
|
6
|
+
import "js-md5";
|
|
3
7
|
import '../../assets/components/text/Text.style.css';/* empty css */
|
|
4
|
-
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
if (e[0] !== i) {
|
|
8
|
+
const g = (i) => {
|
|
9
|
+
const t = h.c(6);
|
|
10
|
+
let e, r;
|
|
11
|
+
if (t[0] !== i) {
|
|
9
12
|
const {
|
|
10
13
|
size: s,
|
|
11
|
-
children:
|
|
12
|
-
hierarchy:
|
|
14
|
+
children: c,
|
|
15
|
+
hierarchy: m,
|
|
13
16
|
...n
|
|
14
17
|
} = i;
|
|
15
|
-
|
|
18
|
+
e = c, r = l(`text text--${m === void 0 ? "secondary" : m} text--${s === void 0 ? "sm" : s}`, n), t[0] = i, t[1] = e, t[2] = r;
|
|
16
19
|
} else
|
|
17
|
-
|
|
20
|
+
e = t[1], r = t[2];
|
|
18
21
|
let o;
|
|
19
|
-
return
|
|
22
|
+
return t[3] !== e || t[4] !== r ? (o = /* @__PURE__ */ p("span", { ...r, children: e }), t[3] = e, t[4] = r, t[5] = o) : o = t[5], o;
|
|
20
23
|
};
|
|
21
24
|
export {
|
|
22
|
-
|
|
25
|
+
g as Text
|
|
23
26
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export interface ToastProps extends Omit<
|
|
2
|
+
import { Component, Color } from '../../utils';
|
|
3
|
+
export interface ToastProps extends Omit<Component<HTMLDivElement>, "title" | "id"> {
|
|
4
4
|
children?: React.ReactNode | React.ReactNode[];
|
|
5
5
|
id: string | number;
|
|
6
6
|
title: React.ReactNode;
|
|
@@ -1,66 +1,67 @@
|
|
|
1
|
-
import { jsxs as r, jsx as
|
|
1
|
+
import { jsxs as r, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { c as p } from "../../_virtual/compiler-runtime.js";
|
|
3
3
|
import { toast as d } from "sonner";
|
|
4
4
|
import '../../assets/components/toast/Toast.style.css';/* empty css */
|
|
5
5
|
import "../../utils/contextStore.js";
|
|
6
6
|
import "react";
|
|
7
|
-
import {
|
|
7
|
+
import { mergeComponentProps as f } from "../../utils/component.js";
|
|
8
|
+
import "js-md5";
|
|
8
9
|
import { IconX as u, IconCircleX as N, IconAlertCircle as y, IconCircleCheck as z, IconInfoCircle as C, IconCircleDot as a } from "@tabler/icons-react";
|
|
9
10
|
import { Text as c } from "../text/Text.js";
|
|
10
11
|
import { Flex as n } from "../flex/Flex.js";
|
|
11
12
|
import { Button as x } from "../button/Button.js";
|
|
12
|
-
function
|
|
13
|
-
return d.custom((e) => /* @__PURE__ */
|
|
14
|
-
duration:
|
|
13
|
+
function E(s) {
|
|
14
|
+
return d.custom((e) => /* @__PURE__ */ o(I, { id: e, ...s, children: s.children }), {
|
|
15
|
+
duration: s.duration ?? 4e3
|
|
15
16
|
});
|
|
16
17
|
}
|
|
17
|
-
function I(
|
|
18
|
+
function I(s) {
|
|
18
19
|
const {
|
|
19
20
|
dismissible: e = !1,
|
|
20
|
-
color:
|
|
21
|
-
title:
|
|
21
|
+
color: t = "secondary",
|
|
22
|
+
title: i,
|
|
22
23
|
onClose: _ = () => {
|
|
23
24
|
},
|
|
24
25
|
children: l,
|
|
25
26
|
duration: m = 4e3,
|
|
26
27
|
...h
|
|
27
|
-
} =
|
|
28
|
-
return /* @__PURE__ */ r("div", { ...f(`toast toast--${
|
|
28
|
+
} = s;
|
|
29
|
+
return /* @__PURE__ */ r("div", { ...f(`toast toast--${t}`, h), children: [
|
|
29
30
|
/* @__PURE__ */ r(n, { className: "toast__header", children: [
|
|
30
31
|
/* @__PURE__ */ r(n, { className: "toast__header-wrapper", children: [
|
|
31
|
-
|
|
32
|
-
/* @__PURE__ */
|
|
32
|
+
t && /* @__PURE__ */ o(g, { color: t }),
|
|
33
|
+
/* @__PURE__ */ o(c, { size: "md", children: i })
|
|
33
34
|
] }),
|
|
34
|
-
e && /* @__PURE__ */
|
|
35
|
+
e && /* @__PURE__ */ o(x, { variant: "none", paddingSize: "xxs", color: t, className: "toast__dismissible", onClick: () => d.dismiss(s.id), children: /* @__PURE__ */ o(u, { size: 16 }) })
|
|
35
36
|
] }),
|
|
36
|
-
l && /* @__PURE__ */
|
|
37
|
+
l && /* @__PURE__ */ o("div", { className: "toast__content", children: l }),
|
|
37
38
|
/* @__PURE__ */ r(n, { className: "toast__duration", style: {
|
|
38
39
|
"--toast-duration": `${m}ms`
|
|
39
40
|
}, children: [
|
|
40
|
-
/* @__PURE__ */
|
|
41
|
+
/* @__PURE__ */ o(c, { hierarchy: "tertiary", children: "This message will close in" }),
|
|
41
42
|
" ",
|
|
42
|
-
/* @__PURE__ */
|
|
43
|
+
/* @__PURE__ */ o(c, { hierarchy: "primary", children: m / 1e3 }),
|
|
43
44
|
" ",
|
|
44
|
-
/* @__PURE__ */
|
|
45
|
+
/* @__PURE__ */ o(c, { children: "seconds" })
|
|
45
46
|
] })
|
|
46
47
|
] });
|
|
47
48
|
}
|
|
48
|
-
const g = (
|
|
49
|
+
const g = (s) => {
|
|
49
50
|
const e = p.c(1), {
|
|
50
|
-
color:
|
|
51
|
-
} =
|
|
52
|
-
let
|
|
53
|
-
return e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
54
|
-
primary: /* @__PURE__ */
|
|
55
|
-
secondary: /* @__PURE__ */
|
|
56
|
-
tertiary: /* @__PURE__ */
|
|
57
|
-
info: /* @__PURE__ */
|
|
58
|
-
success: /* @__PURE__ */
|
|
59
|
-
warning: /* @__PURE__ */
|
|
60
|
-
error: /* @__PURE__ */
|
|
61
|
-
}, e[0] =
|
|
51
|
+
color: t
|
|
52
|
+
} = s;
|
|
53
|
+
let i;
|
|
54
|
+
return e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = {
|
|
55
|
+
primary: /* @__PURE__ */ o(a, { className: "toast__icon", size: 16 }),
|
|
56
|
+
secondary: /* @__PURE__ */ o(a, { className: "toast__icon", size: 16 }),
|
|
57
|
+
tertiary: /* @__PURE__ */ o(a, { className: "toast__icon", size: 16 }),
|
|
58
|
+
info: /* @__PURE__ */ o(C, { className: "toast__icon", size: 16 }),
|
|
59
|
+
success: /* @__PURE__ */ o(z, { className: "toast__icon", size: 16 }),
|
|
60
|
+
warning: /* @__PURE__ */ o(y, { className: "toast__icon", size: 16 }),
|
|
61
|
+
error: /* @__PURE__ */ o(N, { className: "toast__icon", size: 16 })
|
|
62
|
+
}, e[0] = i) : i = e[0], i[t] ?? null;
|
|
62
63
|
};
|
|
63
64
|
export {
|
|
64
65
|
I as Toast,
|
|
65
|
-
|
|
66
|
+
E as toast
|
|
66
67
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Color, ComponentProps } from '../../utils';
|
|
3
3
|
import * as RadixTooltip from "@radix-ui/react-tooltip";
|
|
4
|
-
export type TooltipProps =
|
|
5
|
-
export type TooltipTriggerProps =
|
|
6
|
-
export type TooltipPortalProps =
|
|
7
|
-
export type TooltipContentProps =
|
|
4
|
+
export type TooltipProps = ComponentProps & RadixTooltip.TooltipProps;
|
|
5
|
+
export type TooltipTriggerProps = ComponentProps & RadixTooltip.TooltipTriggerProps;
|
|
6
|
+
export type TooltipPortalProps = ComponentProps & RadixTooltip.TooltipPortalProps;
|
|
7
|
+
export type TooltipContentProps = ComponentProps & RadixTooltip.TooltipContentProps & {
|
|
8
8
|
color?: Color;
|
|
9
9
|
};
|
|
10
|
-
export type TooltipArrowProps =
|
|
10
|
+
export type TooltipArrowProps = ComponentProps & RadixTooltip.TooltipArrowProps & {
|
|
11
11
|
color?: Color;
|
|
12
12
|
};
|
|
13
13
|
export declare const Tooltip: React.FC<TooltipProps>;
|
|
@@ -1,48 +1,51 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { c as s } from "../../_virtual/compiler-runtime.js";
|
|
3
|
+
import "../../utils/contextStore.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import { mergeComponentProps as a } from "../../utils/component.js";
|
|
6
|
+
import "js-md5";
|
|
3
7
|
import * as c from "@radix-ui/react-tooltip";
|
|
4
|
-
import { mergeCode0Props as a } from "../../utils/utils.js";
|
|
5
8
|
import '../../assets/components/tooltip/Tooltip.style.css';/* empty css */
|
|
6
|
-
const
|
|
9
|
+
const w = (o) => {
|
|
7
10
|
const t = s.c(4);
|
|
8
|
-
let
|
|
9
|
-
t[0] !== o ? (
|
|
10
|
-
const
|
|
11
|
+
let i;
|
|
12
|
+
t[0] !== o ? (i = a("tooltip", o), t[0] = o, t[1] = i) : i = t[1];
|
|
13
|
+
const l = i;
|
|
11
14
|
let e;
|
|
12
|
-
return t[2] !==
|
|
13
|
-
},
|
|
15
|
+
return t[2] !== l ? (e = /* @__PURE__ */ r(c.TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ r(c.Tooltip, { ...l }) }), t[2] = l, t[3] = e) : e = t[3], e;
|
|
16
|
+
}, x = (o) => {
|
|
14
17
|
const t = s.c(4);
|
|
15
|
-
let
|
|
16
|
-
t[0] !== o ? (
|
|
17
|
-
const
|
|
18
|
+
let i;
|
|
19
|
+
t[0] !== o ? (i = a("tooltip__trigger", o), t[0] = o, t[1] = i) : i = t[1];
|
|
20
|
+
const l = i;
|
|
18
21
|
let e;
|
|
19
|
-
return t[2] !==
|
|
20
|
-
},
|
|
22
|
+
return t[2] !== l ? (e = /* @__PURE__ */ r(c.TooltipTrigger, { ...l }), t[2] = l, t[3] = e) : e = t[3], e;
|
|
23
|
+
}, P = (o) => {
|
|
21
24
|
const t = s.c(4);
|
|
22
|
-
let
|
|
23
|
-
t[0] !== o ? (
|
|
24
|
-
const
|
|
25
|
+
let i;
|
|
26
|
+
t[0] !== o ? (i = a("tooltip__portal", o), t[0] = o, t[1] = i) : i = t[1];
|
|
27
|
+
const l = i;
|
|
25
28
|
let e;
|
|
26
|
-
return t[2] !==
|
|
27
|
-
},
|
|
28
|
-
const t = s.c(6),
|
|
29
|
+
return t[2] !== l ? (e = /* @__PURE__ */ r(c.TooltipPortal, { ...l }), t[2] = l, t[3] = e) : e = t[3], e;
|
|
30
|
+
}, p = (o) => {
|
|
31
|
+
const t = s.c(6), i = o.align, l = `tooltip__content tooltip__content--${o.color ?? "tertiary"}`;
|
|
29
32
|
let e;
|
|
30
|
-
t[0] !== o || t[1] !==
|
|
33
|
+
t[0] !== o || t[1] !== l ? (e = a(l, o), t[0] = o, t[1] = l, t[2] = e) : e = t[2];
|
|
31
34
|
const n = e;
|
|
32
|
-
let
|
|
33
|
-
return t[3] !== o.align || t[4] !== n ? (
|
|
34
|
-
},
|
|
35
|
-
const t = s.c(5),
|
|
36
|
-
let
|
|
37
|
-
t[0] !== o || t[1] !==
|
|
38
|
-
const e =
|
|
35
|
+
let m;
|
|
36
|
+
return t[3] !== o.align || t[4] !== n ? (m = /* @__PURE__ */ r(c.TooltipContent, { align: i, ...n }), t[3] = o.align, t[4] = n, t[5] = m) : m = t[5], m;
|
|
37
|
+
}, y = (o) => {
|
|
38
|
+
const t = s.c(5), i = `tooltip__arrow tooltip__arrow--${o.color ?? "tertiary"}}`;
|
|
39
|
+
let l;
|
|
40
|
+
t[0] !== o || t[1] !== i ? (l = a(i, o), t[0] = o, t[1] = i, t[2] = l) : l = t[2];
|
|
41
|
+
const e = l;
|
|
39
42
|
let n;
|
|
40
43
|
return t[3] !== e ? (n = /* @__PURE__ */ r(c.TooltipArrow, { ...e }), t[3] = e, t[4] = n) : n = t[4], n;
|
|
41
44
|
};
|
|
42
45
|
export {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
w as Tooltip,
|
|
47
|
+
y as TooltipArrow,
|
|
48
|
+
p as TooltipContent,
|
|
49
|
+
P as TooltipPortal,
|
|
50
|
+
x as TooltipTrigger
|
|
48
51
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export * from './components/flex/Flex';
|
|
|
18
18
|
export * from './components/flex/Flex';
|
|
19
19
|
export * from './components/form/index';
|
|
20
20
|
export * from './components/fullscreen/FullScreen';
|
|
21
|
+
export * from './components/gantt/Gantt';
|
|
21
22
|
export * from './components/layout/Layout';
|
|
22
23
|
export * from './components/menu/Menu';
|
|
23
24
|
export * from './components/quote/Quote';
|