@calcom/atoms 2.10.0 → 2.11.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/dist/availability/components/date-override-input-dialog.js +12 -12
- package/dist/booker/components/out-of-office-in-slots.d.ts +1 -0
- package/dist/booker/components/out-of-office-in-slots.d.ts.map +1 -1
- package/dist/booker/components/out-of-office-in-slots.js +25 -24
- package/dist/booker/components/verify-code-dialog.d.ts.map +1 -1
- package/dist/booker/components/verify-code-dialog.js +48 -45
- package/dist/components/ui/button.d.ts +1 -1
- package/dist/components/ui/button.d.ts.map +1 -1
- package/dist/components/ui/button.js +53 -48
- package/dist/components/ui/confirmation-dialog-content.js +1 -1
- package/dist/components/ui/dialog.d.ts +28 -42
- package/dist/components/ui/dialog.d.ts.map +1 -1
- package/dist/components/ui/dialog.js +83 -116
- package/dist/components/ui/dropdown.d.ts +2 -2
- package/dist/components/ui/select.d.ts +0 -7
- package/dist/components/ui/select.d.ts.map +1 -1
- package/dist/components/ui/select.js +76 -95
- package/dist/components/ui/switch.js +23 -23
- package/dist/components/ui/toast.d.ts +1 -1
- package/dist/components/ui/tooltip.d.ts +1 -1
- package/dist/components/ui/tooltip.d.ts.map +1 -1
- package/dist/components/ui/tooltip.js +33 -33
- package/package.json +1 -1
|
@@ -3,7 +3,6 @@ import { Label } from './label';
|
|
|
3
3
|
import type * as React from "react";
|
|
4
4
|
export type SelectProps<Option, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>> = ReactSelectProps<Option, IsMulti, Group> & {
|
|
5
5
|
variant?: "default" | "checkbox";
|
|
6
|
-
"data-testid"?: string;
|
|
7
6
|
size?: "sm" | "md";
|
|
8
7
|
grow?: boolean;
|
|
9
8
|
innerClassNames?: {
|
|
@@ -27,10 +26,4 @@ export declare const SelectField: <Option, IsMulti extends boolean = false, Grou
|
|
|
27
26
|
className?: string;
|
|
28
27
|
error?: string;
|
|
29
28
|
} & SelectProps<Option, IsMulti, Group>) => JSX.Element;
|
|
30
|
-
export declare function SelectWithValidation<Option extends {
|
|
31
|
-
label: string;
|
|
32
|
-
value: string;
|
|
33
|
-
}, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>({ required, onChange, value, ...remainingProps }: SelectProps<Option, IsMulti, Group> & {
|
|
34
|
-
required?: boolean;
|
|
35
|
-
}): JSX.Element;
|
|
36
29
|
//# sourceMappingURL=select.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../src/components/ui/select.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAEpC,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../src/components/ui/select.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAEpC,OAAO,KAAK,EAAgB,SAAS,EAAc,KAAK,IAAI,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAGnG,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAmChC,MAAM,MAAM,WAAW,CACrB,MAAM,EACN,OAAO,SAAS,OAAO,GAAG,KAAK,EAC/B,KAAK,SAAS,SAAS,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,MAAM,CAAC,IACjD,gBAAgB,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,CAAC,GAAG;IAC7C,OAAO,CAAC,EAAE,SAAS,GAAG,UAAU,CAAC;IACjC,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,eAAe,CAAC,EAAE;QAChB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,CAAC;CACH,CAAC;AAEF,eAAO,MAAM,MAAM,GACjB,MAAM,EACN,OAAO,SAAS,OAAO,GAAG,KAAK,EAC/B,KAAK,SAAS,SAAS,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,MAAM,CAAC,EACnD,+CAMC,WAAW,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,CAAC,gBAkGrC,CAAC;AAEF,eAAO,MAAM,WAAW,GACtB,MAAM,EACN,OAAO,SAAS,OAAO,GAAG,KAAK,EAC/B,KAAK,SAAS,SAAS,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,MAAM,CAAC,EAEnD,OAAO;IACL,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,KAAK,CAAC,CAAC;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,GAAG,WAAW,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,CAAC,gBAgBxC,CAAC"}
|
|
@@ -1,125 +1,106 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useMemo as
|
|
3
|
-
import
|
|
4
|
-
import { cn as
|
|
5
|
-
import { Label as
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { jsx as d, jsxs as g } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo as b, useId as w } from "react";
|
|
3
|
+
import y, { components as p } from "react-select";
|
|
4
|
+
import { cn as e } from "../../lib/utils.js";
|
|
5
|
+
import { Label as I } from "./label.js";
|
|
6
|
+
import { inputStyles as j } from "./text-field.js";
|
|
7
|
+
const v = ({
|
|
8
|
+
inputClassName: l,
|
|
9
|
+
...n
|
|
10
|
+
}) => /* @__PURE__ */ d(
|
|
11
|
+
p.Input,
|
|
12
|
+
{
|
|
13
|
+
inputClassName: e("focus:ring-0 focus:ring-offset-0 !text-default dark:text-white!", l),
|
|
14
|
+
...n
|
|
15
|
+
}
|
|
16
|
+
), L = (l) => {
|
|
17
|
+
const n = l.selectProps["data-testid"] ?? "select-control";
|
|
18
|
+
return /* @__PURE__ */ d("span", { "data-testid": n, children: /* @__PURE__ */ d(p.Control, { ...l }) });
|
|
19
|
+
}, S = ({
|
|
20
|
+
components: l,
|
|
21
|
+
variant: n = "default",
|
|
22
|
+
size: r = "md",
|
|
23
|
+
grow: i = !0,
|
|
24
|
+
...s
|
|
14
25
|
}) => {
|
|
15
|
-
const {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
26
|
+
const {
|
|
27
|
+
classNames: c,
|
|
28
|
+
innerClassNames: t,
|
|
29
|
+
menuPlacement: u = "auto",
|
|
30
|
+
styles: a,
|
|
31
|
+
...x
|
|
32
|
+
} = s, f = b(() => ({
|
|
33
|
+
menuPlacement: u,
|
|
34
|
+
components: {
|
|
35
|
+
Input: v,
|
|
36
|
+
Control: L,
|
|
37
|
+
...l
|
|
38
|
+
},
|
|
39
|
+
unstyled: !0
|
|
40
|
+
}), [l, u]), m = s.isMulti || s.isLoading || s.isClearable;
|
|
41
|
+
return /* @__PURE__ */ d(
|
|
42
|
+
y,
|
|
21
43
|
{
|
|
22
|
-
...
|
|
23
|
-
menuPlacement:
|
|
44
|
+
...f,
|
|
45
|
+
menuPlacement: u,
|
|
24
46
|
styles: {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
47
|
+
...a,
|
|
48
|
+
control: (o, h) => ({
|
|
49
|
+
...o,
|
|
50
|
+
minHeight: r === "sm" ? "28px" : "32px",
|
|
51
|
+
height: i ? "auto" : r === "sm" ? "28px" : "32px",
|
|
52
|
+
...a != null && a.control ? a.control(o, h) : {}
|
|
29
53
|
})
|
|
30
54
|
},
|
|
31
55
|
classNames: {
|
|
32
|
-
input: () =>
|
|
33
|
-
option: (
|
|
56
|
+
input: () => e("text-emphasis", t == null ? void 0 : t.input),
|
|
57
|
+
option: (o) => e(
|
|
34
58
|
"bg-default flex cursor-pointer justify-between py-2 px-3 rounded-md text-default items-center",
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
59
|
+
o.isFocused && "bg-subtle",
|
|
60
|
+
o.isDisabled && "bg-cal-muted",
|
|
61
|
+
o.isSelected && "bg-emphasis text-default",
|
|
38
62
|
t == null ? void 0 : t.option
|
|
39
63
|
),
|
|
40
|
-
placeholder: (
|
|
41
|
-
dropdownIndicator: () =>
|
|
42
|
-
control: (
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
64
|
+
placeholder: (o) => e("text-muted", o.isFocused && n !== "checkbox" && "hidden"),
|
|
65
|
+
dropdownIndicator: () => e("text-default", "w-4 h-4", "flex items-center justify-center"),
|
|
66
|
+
control: (o) => e(
|
|
67
|
+
j({ size: r }),
|
|
68
|
+
o.isMulti ? n === "checkbox" ? "px-3 h-fit" : o.hasValue ? "p-1 h-fit" : "px-3 h-fit" : r === "sm" ? "h-7 px-2 py-0.5" : "h-8 px-3 py-1",
|
|
69
|
+
o.isDisabled && "bg-subtle !cursor-not-allowed !pointer-events-auto hover:border-subtle",
|
|
46
70
|
"rounded-[10px]",
|
|
47
71
|
"[&:focus-within]:border-emphasis [&:focus-within]:shadow-outline-gray-focused focus-within:ring-0 flex! **:[input]:leading-none text-sm",
|
|
48
72
|
t == null ? void 0 : t.control
|
|
49
73
|
),
|
|
50
|
-
singleValue: () =>
|
|
51
|
-
valueContainer: () =>
|
|
52
|
-
multiValue: () =>
|
|
74
|
+
singleValue: () => e("text-default placeholder:text-muted", t == null ? void 0 : t.singleValue),
|
|
75
|
+
valueContainer: () => e("text-default placeholder:text-muted flex gap-1", t == null ? void 0 : t.valueContainer),
|
|
76
|
+
multiValue: () => e(
|
|
53
77
|
"font-medium inline-flex items-center justify-center rounded bg-emphasis text-emphasis leading-none text-xs",
|
|
54
|
-
|
|
78
|
+
r === "sm" ? "px-1.5 py-px rounded-md" : "py-1 px-1.5 leading-none rounded-lg"
|
|
55
79
|
),
|
|
56
|
-
menu: () =>
|
|
80
|
+
menu: () => e(
|
|
57
81
|
"rounded-lg bg-default text-sm leading-4 text-default mt-1 border border-subtle shadow-dropdown p-1",
|
|
58
82
|
t == null ? void 0 : t.menu
|
|
59
83
|
),
|
|
60
84
|
groupHeading: () => "leading-none text-xs text-muted p-2 font-medium ml-1",
|
|
61
|
-
menuList: () =>
|
|
62
|
-
indicatorsContainer: (
|
|
85
|
+
menuList: () => e("scroll-bar scrollbar-track-w-20 rounded-md flex flex-col space-y-1", t == null ? void 0 : t.menuList),
|
|
86
|
+
indicatorsContainer: (o) => e(
|
|
63
87
|
"flex items-start! justify-center mt-1 h-full",
|
|
64
|
-
|
|
88
|
+
o.selectProps.menuIsOpen ? m ? "[&>*:last-child]:rotate-180 [&>*:last-child]:transition-transform [&>*:last-child]:w-4 [&>*:last-child]:h-4" : "rotate-180 transition-transform w-4 h-4" : m ? "[&>*:last-child]:transition-transform [&>*:last-child]:w-4 [&>*:last-child]:h-4 text-default" : "transition-transform w-4 h-4 text-default"
|
|
65
89
|
),
|
|
66
90
|
multiValueRemove: () => "text-default py-auto",
|
|
67
91
|
...c
|
|
68
92
|
},
|
|
69
|
-
...
|
|
93
|
+
...x
|
|
70
94
|
}
|
|
71
95
|
);
|
|
72
|
-
}, H = (
|
|
73
|
-
const { label:
|
|
74
|
-
return /* @__PURE__ */
|
|
75
|
-
/* @__PURE__ */
|
|
76
|
-
/* @__PURE__ */
|
|
96
|
+
}, H = (l) => {
|
|
97
|
+
const { label: n, containerClassName: r, labelProps: i, className: s, error: c, ...t } = l, u = w();
|
|
98
|
+
return /* @__PURE__ */ g("div", { className: e(r), children: [
|
|
99
|
+
/* @__PURE__ */ d("div", { className: e(s), children: n && /* @__PURE__ */ d(I, { htmlFor: u, ...i, className: e(c && "text-error", i == null ? void 0 : i.className), children: n }) }),
|
|
100
|
+
/* @__PURE__ */ d(S, { ...t })
|
|
77
101
|
] });
|
|
78
102
|
};
|
|
79
|
-
function M({
|
|
80
|
-
required: s = !1,
|
|
81
|
-
onChange: r,
|
|
82
|
-
value: e,
|
|
83
|
-
...n
|
|
84
|
-
}) {
|
|
85
|
-
const [d, c] = React.useState(() => e instanceof Array || !e ? "" : e.value || ""), t = React.useCallback((i) => {
|
|
86
|
-
let a = "";
|
|
87
|
-
i instanceof Array ? a = i.map((m) => m.value).join(",") : a = (i == null ? void 0 : i.value) || "", c(a);
|
|
88
|
-
}, []);
|
|
89
|
-
return React.useEffect(() => {
|
|
90
|
-
e && t(e);
|
|
91
|
-
}, [e, t]), /* @__PURE__ */ f("div", { className: o("relative", n.className), children: [
|
|
92
|
-
/* @__PURE__ */ u(
|
|
93
|
-
h,
|
|
94
|
-
{
|
|
95
|
-
value: e,
|
|
96
|
-
...n,
|
|
97
|
-
onChange: (i, ...a) => {
|
|
98
|
-
t(i), r && r(i, ...a);
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
),
|
|
102
|
-
s && /* @__PURE__ */ u(
|
|
103
|
-
"input",
|
|
104
|
-
{
|
|
105
|
-
tabIndex: -1,
|
|
106
|
-
autoComplete: "off",
|
|
107
|
-
style: {
|
|
108
|
-
opacity: 0,
|
|
109
|
-
width: "100%",
|
|
110
|
-
height: 1,
|
|
111
|
-
position: "absolute"
|
|
112
|
-
},
|
|
113
|
-
value: d,
|
|
114
|
-
onChange: () => {
|
|
115
|
-
},
|
|
116
|
-
required: s
|
|
117
|
-
}
|
|
118
|
-
)
|
|
119
|
-
] });
|
|
120
|
-
}
|
|
121
103
|
export {
|
|
122
|
-
|
|
123
|
-
H as SelectField
|
|
124
|
-
M as SelectWithValidation
|
|
104
|
+
S as Select,
|
|
105
|
+
H as SelectField
|
|
125
106
|
};
|
|
@@ -1,26 +1,27 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
2
|
-
import { useId as
|
|
1
|
+
import { jsx as t, jsxs as b, Fragment as f } from "react/jsx-runtime";
|
|
2
|
+
import { useId as p } from "@radix-ui/react-id";
|
|
3
3
|
import * as l from "@radix-ui/react-switch";
|
|
4
|
-
import { cn as
|
|
5
|
-
import { Tooltip as
|
|
6
|
-
const
|
|
4
|
+
import { cn as n } from "../../lib/utils.js";
|
|
5
|
+
import { Tooltip as x } from "./tooltip.js";
|
|
6
|
+
const w = ({ children: a, tooltip: r }) => r ? /* @__PURE__ */ t(x, { content: r, children: a }) : /* @__PURE__ */ t(f, { children: a }), y = (a) => {
|
|
7
7
|
const {
|
|
8
|
-
label:
|
|
8
|
+
label: r,
|
|
9
9
|
fitToHeight: h,
|
|
10
10
|
classNames: e,
|
|
11
|
-
labelOnLeading:
|
|
11
|
+
labelOnLeading: o,
|
|
12
12
|
LockedIcon: s,
|
|
13
13
|
padding: m,
|
|
14
|
-
size:
|
|
14
|
+
size: i = "base",
|
|
15
|
+
tooltip: u,
|
|
15
16
|
...d
|
|
16
|
-
} =
|
|
17
|
-
return /* @__PURE__ */ t(
|
|
17
|
+
} = a, c = p();
|
|
18
|
+
return /* @__PURE__ */ t(w, { tooltip: u, children: /* @__PURE__ */ b(
|
|
18
19
|
"div",
|
|
19
20
|
{
|
|
20
|
-
className:
|
|
21
|
+
className: n(
|
|
21
22
|
"flex h-auto w-fit flex-row items-center",
|
|
22
23
|
h && "h-fit",
|
|
23
|
-
|
|
24
|
+
o && "flex-row-reverse justify-between",
|
|
24
25
|
m && "hover:bg-subtle rounded-md p-1.5",
|
|
25
26
|
e == null ? void 0 : e.container
|
|
26
27
|
),
|
|
@@ -31,35 +32,34 @@ const x = ({ children: r, tooltip: a }) => a ? /* @__PURE__ */ t(p, { content: a
|
|
|
31
32
|
{
|
|
32
33
|
...d,
|
|
33
34
|
id: c,
|
|
34
|
-
className:
|
|
35
|
-
n === "sm" ? "h-3 w-[20px]" : "h-4 w-[28px]",
|
|
35
|
+
className: n(
|
|
36
36
|
"focus:ring-brand-default data-[state=checked]:bg-brand-default dark:data-[state=checked]:bg-brand-emphasis data-[state=unchecked]:bg-emphasis peer inline-flex shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-inner transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
|
37
|
-
|
|
37
|
+
i === "sm" ? "h-4 w-7" : "h-6 w-11",
|
|
38
38
|
e == null ? void 0 : e.container
|
|
39
39
|
),
|
|
40
40
|
children: /* @__PURE__ */ t(
|
|
41
41
|
l.Thumb,
|
|
42
42
|
{
|
|
43
|
-
className:
|
|
43
|
+
className: n(
|
|
44
44
|
"bg-default data-[state=checked]:bg-brand-accent shadow-switch-thumb pointer-events-none block rounded-full shadow-lg ring-0 transition-transform",
|
|
45
|
-
|
|
45
|
+
i === "sm" ? "h-3 w-3 data-[state=checked]:translate-x-3 data-[state=unchecked]:translate-x-0 rtl:data-[state=checked]:-translate-x-3" : "h-5 w-5 data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0 rtl:data-[state=checked]:-translate-x-5",
|
|
46
46
|
e == null ? void 0 : e.thumb
|
|
47
47
|
)
|
|
48
48
|
}
|
|
49
49
|
)
|
|
50
50
|
}
|
|
51
51
|
),
|
|
52
|
-
|
|
52
|
+
r && /* @__PURE__ */ t(
|
|
53
53
|
"label",
|
|
54
54
|
{
|
|
55
55
|
htmlFor: c,
|
|
56
|
-
className:
|
|
56
|
+
className: n(
|
|
57
57
|
"text-emphasis font-medium",
|
|
58
|
-
|
|
58
|
+
i === "sm" ? "m-1 text-xs" : o ? "mr-2 text-sm" : "ml-2 text-sm",
|
|
59
59
|
d.disabled ? "cursor-not-allowed opacity-25" : "cursor-pointer",
|
|
60
|
-
|
|
60
|
+
o && "flex-1"
|
|
61
61
|
),
|
|
62
|
-
children:
|
|
62
|
+
children: r
|
|
63
63
|
}
|
|
64
64
|
)
|
|
65
65
|
]
|
|
@@ -67,5 +67,5 @@ const x = ({ children: r, tooltip: a }) => a ? /* @__PURE__ */ t(p, { content: a
|
|
|
67
67
|
) });
|
|
68
68
|
};
|
|
69
69
|
export {
|
|
70
|
-
|
|
70
|
+
y as Switch
|
|
71
71
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ForwardRefExoticComponent, ReactElement, RefAttributes } from 'react';
|
|
2
2
|
import * as ToastPrimitives from "@radix-ui/react-toast";
|
|
3
3
|
declare const ToastProvider: import('react').FC<ToastPrimitives.ToastProviderProps>;
|
|
4
|
-
declare const ToastViewport: ForwardRefExoticComponent<Pick<ToastPrimitives.ToastViewportProps & RefAttributes<HTMLOListElement>, "className" | "color" | "id" | "lang" | "style" | "type" | "role" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "label" | "slot" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "nonce" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "asChild" | "
|
|
4
|
+
declare const ToastViewport: ForwardRefExoticComponent<Pick<ToastPrimitives.ToastViewportProps & RefAttributes<HTMLOListElement>, "className" | "color" | "id" | "lang" | "style" | "type" | "role" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "label" | "slot" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "nonce" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "asChild" | "start" | "reversed" | "hotkey"> & RefAttributes<HTMLOListElement>>;
|
|
5
5
|
declare const Toast: ForwardRefExoticComponent<ToastPrimitives.ToastProps & RefAttributes<HTMLLIElement>>;
|
|
6
6
|
declare const ToastAction: ForwardRefExoticComponent<Pick<ToastPrimitives.ToastActionProps & RefAttributes<HTMLButtonElement>, "name" | "className" | "color" | "id" | "lang" | "style" | "type" | "role" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "form" | "slot" | "title" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "nonce" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "asChild" | "altText"> & RefAttributes<HTMLButtonElement>>;
|
|
7
7
|
declare const ToastClose: ForwardRefExoticComponent<Pick<ToastPrimitives.ToastCloseProps & RefAttributes<HTMLButtonElement>, "name" | "className" | "color" | "id" | "lang" | "style" | "type" | "role" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "form" | "slot" | "title" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "nonce" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "asChild"> & RefAttributes<HTMLButtonElement>>;
|
|
@@ -2,7 +2,7 @@ import { ComponentPropsWithoutRef, ReactElement, ReactNode } from 'react';
|
|
|
2
2
|
import * as TooltipPrimitives from "@radix-ui/react-tooltip";
|
|
3
3
|
export declare function Tooltip({ children, content, open, defaultOpen, onOpenChange, delayDuration, side, align, className, sideOffset, ...props }: {
|
|
4
4
|
children: ReactNode;
|
|
5
|
-
content
|
|
5
|
+
content?: ReactNode;
|
|
6
6
|
delayDuration?: number;
|
|
7
7
|
open?: boolean;
|
|
8
8
|
defaultOpen?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/ui/tooltip.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,iBAAiB,MAAM,yBAAyB,CAAC;AAC7D,OAAO,KAAK,EAAE,wBAAwB,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAK/E,wBAAgB,OAAO,CAAC,EACtB,QAAQ,EACR,OAAO,EACP,IAAI,EACJ,WAAW,EACX,YAAY,EACZ,aAAa,EACb,IAAY,EACZ,KAAgB,EAChB,SAAS,EACT,
|
|
1
|
+
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/ui/tooltip.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,iBAAiB,MAAM,yBAAyB,CAAC;AAC7D,OAAO,KAAK,EAAE,wBAAwB,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAK/E,wBAAgB,OAAO,CAAC,EACtB,QAAQ,EACR,OAAO,EACP,IAAI,EACJ,WAAW,EACX,YAAY,EACZ,aAAa,EACb,IAAY,EACZ,KAAgB,EAChB,SAAS,EACT,UAAc,EACd,GAAG,KAAK,EACT,EAAE;IACD,QAAQ,EAAE,SAAS,CAAC;IACpB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,IAAI,CAAC,EAAE,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;IAC3C,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;IACnC,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CACxC,GAAG,wBAAwB,CAAC,OAAO,iBAAiB,CAAC,OAAO,CAAC,eAqC7D;AAED,eAAO,MAAM,cAAc,qIAA4B,CAAC;AACxD,eAAO,MAAM,cAAc,kIAA4B,CAAC;AACxD,eAAO,MAAM,YAAY,+HAA0B,CAAC;AACpD,eAAO,MAAM,eAAe,4DAA6B,CAAC;AAC1D,eAAO,MAAM,MAAM,iBAlEqB;IAAE,QAAQ,EAAE,YAAY,CAAA;CAAE,gBAkE5B,CAAC;AACvC,eAAO,MAAM,OAAO,qIAA4B,CAAC;AACjD,eAAO,MAAM,QAAQ,4DAA6B,CAAC;AACnD,eAAO,MAAM,OAAO,kIAA4B,CAAC;AACjD,eAAO,MAAM,KAAK,+HAA0B,CAAC;AAC7C,eAAO,MAAM,IAAI,oDAAyB,CAAC;AAC3C,eAAO,MAAM,kBAAkB,EAAE,OAAO,iBAAiB,CAAC,kBACpB,CAAC;AACvC,eAAO,MAAM,aAAa,iBA1Ec;IAAE,QAAQ,EAAE,YAAY,CAAA;CAAE,gBA0ErB,CAAC"}
|
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as t, jsxs as P, Fragment as i } from "react/jsx-runtime";
|
|
2
2
|
import * as o from "@radix-ui/react-tooltip";
|
|
3
3
|
import { cn as x } from "../../lib/utils.js";
|
|
4
|
-
const
|
|
4
|
+
const c = ({ children: r }) => /* @__PURE__ */ t(i, { children: r });
|
|
5
5
|
function h({
|
|
6
|
-
children:
|
|
7
|
-
content:
|
|
8
|
-
open:
|
|
9
|
-
defaultOpen:
|
|
10
|
-
onOpenChange:
|
|
11
|
-
delayDuration:
|
|
12
|
-
side:
|
|
13
|
-
align:
|
|
14
|
-
className:
|
|
15
|
-
sideOffset:
|
|
16
|
-
...
|
|
6
|
+
children: r,
|
|
7
|
+
content: n,
|
|
8
|
+
open: l,
|
|
9
|
+
defaultOpen: s,
|
|
10
|
+
onOpenChange: p,
|
|
11
|
+
delayDuration: a,
|
|
12
|
+
side: e = "top",
|
|
13
|
+
align: m = "center",
|
|
14
|
+
className: g,
|
|
15
|
+
sideOffset: T = 4,
|
|
16
|
+
...d
|
|
17
17
|
}) {
|
|
18
|
-
const
|
|
18
|
+
const v = /* @__PURE__ */ t(
|
|
19
19
|
o.Content,
|
|
20
20
|
{
|
|
21
|
-
...
|
|
21
|
+
...d,
|
|
22
22
|
className: x(
|
|
23
23
|
"calcom-tooltip",
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
e === "top" && "-mt-7",
|
|
25
|
+
e === "left" && "mr-2",
|
|
26
|
+
e === "right" && "ml-2",
|
|
27
27
|
"bg-inverted text-inverted relative z-50 rounded-sm px-2 py-1 text-xs font-semibold shadow-lg",
|
|
28
|
-
|
|
28
|
+
g
|
|
29
29
|
),
|
|
30
|
-
side:
|
|
31
|
-
align:
|
|
32
|
-
sideOffset:
|
|
33
|
-
children:
|
|
30
|
+
side: e,
|
|
31
|
+
align: m,
|
|
32
|
+
sideOffset: T,
|
|
33
|
+
children: n
|
|
34
34
|
}
|
|
35
35
|
);
|
|
36
|
-
return /* @__PURE__ */
|
|
36
|
+
return /* @__PURE__ */ t(
|
|
37
37
|
o.Root,
|
|
38
38
|
{
|
|
39
|
-
delayDuration:
|
|
40
|
-
open:
|
|
41
|
-
defaultOpen:
|
|
42
|
-
onOpenChange:
|
|
43
|
-
children: [
|
|
44
|
-
/* @__PURE__ */
|
|
45
|
-
/* @__PURE__ */
|
|
46
|
-
]
|
|
39
|
+
delayDuration: a ?? 50,
|
|
40
|
+
open: l,
|
|
41
|
+
defaultOpen: s,
|
|
42
|
+
onOpenChange: p,
|
|
43
|
+
children: n === void 0 ? r : /* @__PURE__ */ P(i, { children: [
|
|
44
|
+
/* @__PURE__ */ t(o.Trigger, { asChild: !0, children: r }),
|
|
45
|
+
/* @__PURE__ */ t(o.Portal, { children: v })
|
|
46
|
+
] })
|
|
47
47
|
}
|
|
48
48
|
);
|
|
49
49
|
}
|
|
50
|
-
const u = o.Trigger, w = o.Content, A = o.Arrow, R = o.Provider, b =
|
|
50
|
+
const u = o.Trigger, w = o.Content, A = o.Arrow, R = o.Provider, b = c, j = o.Trigger, y = o.Provider, F = o.Content, S = o.Arrow, z = o.Root, D = o.createTooltipScope, N = c;
|
|
51
51
|
export {
|
|
52
52
|
S as Arrow,
|
|
53
53
|
F as Content,
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"description": "Customizable UI components to integrate scheduling into your product.",
|
|
6
6
|
"author": "Cal.com, Inc.",
|
|
7
7
|
"license": "AGPL-3.0-or-later",
|
|
8
|
-
"version": "2.
|
|
8
|
+
"version": "2.11.0",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
11
|
"url": "https://github.com/calcom/atoms",
|