@cognite/aura 0.3.2 → 0.3.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/DESIGN.md +134 -5
- package/README.md +24 -3
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +58 -327
- package/dist/components/ui/core/accordion/accordion.js +79 -114
- package/dist/components/ui/core/action-toolbar/action-toolbar.js +108 -176
- package/dist/components/ui/core/alert/alert.js +158 -206
- package/dist/components/ui/core/avatar/avatar.js +64 -90
- package/dist/components/ui/core/badge/badge.js +73 -108
- package/dist/components/ui/core/banner/banner.js +146 -215
- package/dist/components/ui/core/breadcrumb/breadcrumb.js +105 -200
- package/dist/components/ui/core/button/button.js +47 -52
- package/dist/components/ui/core/button-group/button-group.js +40 -79
- package/dist/components/ui/core/card/card.js +102 -185
- package/dist/components/ui/core/chart/chart.js +116 -206
- package/dist/components/ui/core/chart/index.js +2 -8
- package/dist/components/ui/core/checkbox/checkbox.js +67 -132
- package/dist/components/ui/core/checkbox/checkbox.metadata.js +7 -7
- package/dist/components/ui/core/code-block/code-block.d.ts +1 -1
- package/dist/components/ui/core/code-block/code-block.js +179 -267
- package/dist/components/ui/core/collapsible/collapsible.js +29 -49
- package/dist/components/ui/core/combobox/combobox.js +41 -0
- package/dist/components/ui/core/command/command.js +85 -150
- package/dist/components/ui/core/count/count.js +21 -32
- package/dist/components/ui/core/date-time-pickers/date-picker/date-picker.js +60 -72
- package/dist/components/ui/core/date-time-pickers/date-picker/use-date-picker.js +36 -51
- package/dist/components/ui/core/date-time-pickers/date-range-picker/date-range-picker.js +63 -87
- package/dist/components/ui/core/date-time-pickers/date-range-picker/use-date-range-picker.js +60 -68
- package/dist/components/ui/core/date-time-pickers/date-time-range-picker/date-time-range-picker.js +118 -174
- package/dist/components/ui/core/date-time-pickers/date-time-range-picker/use-date-time-range-picker.js +104 -145
- package/dist/components/ui/core/date-time-pickers/index.js +5 -10
- package/dist/components/ui/core/date-time-pickers/shared/am-pm-scroll/am-pm-scroll.js +42 -56
- package/dist/components/ui/core/date-time-pickers/shared/calendar/calendar.js +66 -117
- package/dist/components/ui/core/date-time-pickers/shared/calendar-header/calendar-header.js +63 -93
- package/dist/components/ui/core/date-time-pickers/shared/date-time-input/date-time-input.js +64 -98
- package/dist/components/ui/core/date-time-pickers/shared/date-time-input/range-input-display.js +38 -67
- package/dist/components/ui/core/date-time-pickers/shared/hooks/use-popover-state.js +23 -23
- package/dist/components/ui/core/date-time-pickers/shared/hooks/use-range-date-state.js +52 -62
- package/dist/components/ui/core/date-time-pickers/shared/hooks/use-range-step-manager.js +18 -18
- package/dist/components/ui/core/date-time-pickers/shared/hooks/use-single-date-state.js +24 -31
- package/dist/components/ui/core/date-time-pickers/shared/hooks/use-time-state.js +24 -33
- package/dist/components/ui/core/date-time-pickers/shared/scroll-cell-classes.js +4 -7
- package/dist/components/ui/core/date-time-pickers/shared/shortcuts-panel/shortcuts-panel.js +17 -31
- package/dist/components/ui/core/date-time-pickers/shared/time-picker-panel/time-picker-panel.js +40 -40
- package/dist/components/ui/core/date-time-pickers/shared/time-picker-scroll/time-picker-scroll.js +33 -50
- package/dist/components/ui/core/date-time-pickers/time-picker/time-picker.js +78 -99
- package/dist/components/ui/core/date-time-pickers/time-picker/use-time-picker.js +41 -63
- package/dist/components/ui/core/date-time-pickers/utils/calendar-utils.js +39 -52
- package/dist/components/ui/core/date-time-pickers/utils/time-utils.js +7 -15
- package/dist/components/ui/core/dialog/dialog.js +82 -155
- package/dist/components/ui/core/dropdown-menu/dropdown-menu.d.ts +2 -2
- package/dist/components/ui/core/dropdown-menu/dropdown-menu.js +150 -248
- package/dist/components/ui/core/empty-state/empty-state.context.js +5 -8
- package/dist/components/ui/core/empty-state/empty-state.js +86 -138
- package/dist/components/ui/core/helper-text/helper-text.js +37 -65
- package/dist/components/ui/core/hover-card/hover-card.js +54 -80
- package/dist/components/ui/core/inline-citation/inline-citation.js +98 -181
- package/dist/components/ui/core/input/input.js +12 -27
- package/dist/components/ui/core/input-group/input-group.js +76 -173
- package/dist/components/ui/core/kbd/kbd.js +20 -36
- package/dist/components/ui/core/label/label.js +26 -43
- package/dist/components/ui/core/loader/loader.js +80 -117
- package/dist/components/ui/core/message/message-response-default-streamdown-controls.js +12 -12
- package/dist/components/ui/core/message/message.d.ts +2 -2
- package/dist/components/ui/core/message/message.js +316 -542
- package/dist/components/ui/core/pagination/pagination-size-context.js +5 -6
- package/dist/components/ui/core/pagination/pagination-teleport.js +86 -106
- package/dist/components/ui/core/pagination/pagination-teleport.utils.js +6 -6
- package/dist/components/ui/core/pagination/pagination.js +231 -334
- package/dist/components/ui/core/popover/popover.js +90 -157
- package/dist/components/ui/core/progress/progress.js +36 -61
- package/dist/components/ui/core/prompt-input/prompt-input.js +274 -413
- package/dist/components/ui/core/radio-group/radio-group.js +58 -113
- package/dist/components/ui/core/reasoning/reasoning.js +55 -86
- package/dist/components/ui/core/scroll-area/scroll-area.js +41 -71
- package/dist/components/ui/core/search/search.js +77 -99
- package/dist/components/ui/core/segmented-control/segmented-control.js +110 -167
- package/dist/components/ui/core/select/select.js +168 -293
- package/dist/components/ui/core/separator/separator.js +13 -23
- package/dist/components/ui/core/shimmer/shimmer.d.ts +2 -4
- package/dist/components/ui/core/shimmer/shimmer.js +40 -107
- package/dist/components/ui/core/skeleton/skeleton.js +13 -18
- package/dist/components/ui/core/sonner-toast/sonner-toast.js +54 -47
- package/dist/components/ui/core/sources/sources.d.ts +5 -1
- package/dist/components/ui/core/sources/sources.js +58 -79
- package/dist/components/ui/core/switch/switch.js +62 -0
- package/dist/components/ui/core/tabs/tabs.js +149 -223
- package/dist/components/ui/core/tabs/tabs.utils.js +6 -8
- package/dist/components/ui/core/textarea/textarea.js +13 -27
- package/dist/components/ui/core/toggle/toggle.js +55 -74
- package/dist/components/ui/core/tool/tool.js +127 -163
- package/dist/components/ui/core/tooltip/tooltip.js +47 -86
- package/dist/components/ui/core/topbar/topbar.js +106 -190
- package/dist/eslint/index.js +5 -10
- package/dist/eslint/no-overriding-styles.js +178 -237
- package/dist/icons/index.d.ts +1 -0
- package/dist/icons/index.js +1 -0
- package/dist/lib/highlight-code.d.ts +9 -0
- package/dist/lib/highlight-code.js +42 -0
- package/dist/lib/portal-container-context.js +8 -9
- package/dist/lib/style-scope.js +6 -6
- package/dist/lib/use-controllable-state.js +21 -30
- package/dist/lib/utils.d.ts +0 -2
- package/dist/lib/utils.js +32 -112
- package/dist/styles.css +1 -1
- package/dist/styles.source.css +23 -0
- package/package.json +23 -7
- package/dist/components/ui/core/date-time-pickers/shared/constants.js +0 -14
|
@@ -1,163 +1,127 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
/* @__PURE__ */ e(f, {})
|
|
129
|
-
] })), l ? /* @__PURE__ */ e(
|
|
130
|
-
"div",
|
|
131
|
-
{
|
|
132
|
-
ref: i,
|
|
133
|
-
"data-slot": "tool-output",
|
|
134
|
-
className: s("space-y-2 px-3.25", t),
|
|
135
|
-
...r,
|
|
136
|
-
children: /* @__PURE__ */ n("div", { className: "flex flex-col gap-2 text-sm", children: [
|
|
137
|
-
/* @__PURE__ */ e("span", { className: "font-medium text-destructive-foreground", children: "ERROR" }),
|
|
138
|
-
/* @__PURE__ */ e("span", { className: "text-foreground", children: l })
|
|
139
|
-
] })
|
|
140
|
-
}
|
|
141
|
-
) : /* @__PURE__ */ n(
|
|
142
|
-
"div",
|
|
143
|
-
{
|
|
144
|
-
ref: i,
|
|
145
|
-
"data-slot": "tool-output",
|
|
146
|
-
className: s("space-y-2 px-3.25", t),
|
|
147
|
-
...r,
|
|
148
|
-
children: [
|
|
149
|
-
/* @__PURE__ */ e("h4", { className: "text-sm font-medium uppercase tracking-wide text-muted-foreground", children: "Result" }),
|
|
150
|
-
/* @__PURE__ */ e("div", { className: "min-h-0 overflow-x-auto rounded-md bg-muted-background/50 text-xs text-foreground [&_table]:w-full", children: a })
|
|
151
|
-
]
|
|
152
|
-
}
|
|
153
|
-
);
|
|
154
|
-
}
|
|
155
|
-
);
|
|
156
|
-
C.displayName = "ToolOutput";
|
|
157
|
-
export {
|
|
158
|
-
y as Tool,
|
|
159
|
-
j as ToolContent,
|
|
160
|
-
v as ToolHeader,
|
|
161
|
-
w as ToolInput,
|
|
162
|
-
C as ToolOutput
|
|
163
|
-
};
|
|
1
|
+
import { cn as e } from "../../../../lib/utils.js";
|
|
2
|
+
import { Button as t } from "../button/button.js";
|
|
3
|
+
import { CodeBlock as n, CodeBlockCollapseButton as r, CodeBlockCopyButton as i, CodeBlockDownloadButton as a } from "../code-block/code-block.js";
|
|
4
|
+
import { Badge as o } from "../badge/badge.js";
|
|
5
|
+
import { Collapsible as s, CollapsibleContent as c, CollapsibleTrigger as l } from "../collapsible/collapsible.js";
|
|
6
|
+
import { forwardRef as u } from "react";
|
|
7
|
+
import { IconSelector as d } from "@tabler/icons-react";
|
|
8
|
+
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
9
|
+
//#region libs/aura/src/components/ui/core/tool/tool.tsx
|
|
10
|
+
var m = u(({ className: t, ...n }, r) => /* @__PURE__ */ f(s, {
|
|
11
|
+
ref: r,
|
|
12
|
+
"data-slot": "tool",
|
|
13
|
+
className: e("group not-prose w-full bg-background rounded-md flex flex-col gap-2", t),
|
|
14
|
+
...n
|
|
15
|
+
}));
|
|
16
|
+
m.displayName = "Tool";
|
|
17
|
+
var h = u(({ className: e, title: n, type: r, hasError: i = !1, ...a }, s) => /* @__PURE__ */ f(l, {
|
|
18
|
+
ref: s,
|
|
19
|
+
"data-slot": "tool-header",
|
|
20
|
+
className: e,
|
|
21
|
+
render: /* @__PURE__ */ p(t, {
|
|
22
|
+
variant: "ghost",
|
|
23
|
+
className: "w-full justify-between text-base leading-5 tracking-tighter",
|
|
24
|
+
children: [/* @__PURE__ */ f("span", { children: n ?? r.substring(r.indexOf("-") + 1) }), /* @__PURE__ */ p("div", {
|
|
25
|
+
className: "flex items-center gap-2",
|
|
26
|
+
children: [i ? /* @__PURE__ */ f(o, {
|
|
27
|
+
outline: !0,
|
|
28
|
+
className: "bg-background text-destructive-foreground border-border",
|
|
29
|
+
children: "Error"
|
|
30
|
+
}) : null, /* @__PURE__ */ f(d, { className: "h-4 w-4" })]
|
|
31
|
+
})]
|
|
32
|
+
}),
|
|
33
|
+
...a
|
|
34
|
+
}));
|
|
35
|
+
h.displayName = "ToolHeader";
|
|
36
|
+
var g = u(({ className: t, ...n }, r) => /* @__PURE__ */ f(c, {
|
|
37
|
+
ref: r,
|
|
38
|
+
"data-slot": "tool-content",
|
|
39
|
+
className: e("flex min-h-0 flex-col gap-4 py-3 text-popover-foreground outline-none", t),
|
|
40
|
+
...n
|
|
41
|
+
}));
|
|
42
|
+
g.displayName = "ToolContent";
|
|
43
|
+
var _ = u(({ className: t, input: o, ...s }, c) => /* @__PURE__ */ p("div", {
|
|
44
|
+
ref: c,
|
|
45
|
+
"data-slot": "tool-input",
|
|
46
|
+
className: e("min-h-0 space-y-2 overflow-x-hidden overflow-y-visible px-3.25", t),
|
|
47
|
+
...s,
|
|
48
|
+
children: [/* @__PURE__ */ f("h4", {
|
|
49
|
+
className: "text-sm font-medium uppercase tracking-wide text-muted-foreground",
|
|
50
|
+
children: "Parameters"
|
|
51
|
+
}), /* @__PURE__ */ f("div", {
|
|
52
|
+
className: "min-h-0 rounded-md bg-muted/50",
|
|
53
|
+
children: /* @__PURE__ */ p(n, {
|
|
54
|
+
code: JSON.stringify(o, null, 2),
|
|
55
|
+
language: "json",
|
|
56
|
+
collapsed: !0,
|
|
57
|
+
children: [
|
|
58
|
+
/* @__PURE__ */ f(i, {}),
|
|
59
|
+
/* @__PURE__ */ f(a, { fileName: "tool-parameters.json" }),
|
|
60
|
+
/* @__PURE__ */ f(r, {})
|
|
61
|
+
]
|
|
62
|
+
})
|
|
63
|
+
})]
|
|
64
|
+
}));
|
|
65
|
+
_.displayName = "ToolInput";
|
|
66
|
+
var v = u(({ className: t, output: o, errorText: s, ...c }, l) => {
|
|
67
|
+
if (o == null && !s) return null;
|
|
68
|
+
let u = null;
|
|
69
|
+
return typeof o == "string" ? u = /* @__PURE__ */ p(n, {
|
|
70
|
+
code: o,
|
|
71
|
+
language: "json",
|
|
72
|
+
collapsed: !0,
|
|
73
|
+
children: [
|
|
74
|
+
/* @__PURE__ */ f(i, {}),
|
|
75
|
+
/* @__PURE__ */ f(a, { fileName: "tool-result.json" }),
|
|
76
|
+
/* @__PURE__ */ f(r, {})
|
|
77
|
+
]
|
|
78
|
+
}) : o == null ? u = null : typeof o == "object" ? u = /* @__PURE__ */ p(n, {
|
|
79
|
+
code: JSON.stringify(o, null, 2),
|
|
80
|
+
language: "json",
|
|
81
|
+
collapsed: !0,
|
|
82
|
+
children: [
|
|
83
|
+
/* @__PURE__ */ f(i, {}),
|
|
84
|
+
/* @__PURE__ */ f(a, { fileName: "tool-result.json" }),
|
|
85
|
+
/* @__PURE__ */ f(r, {})
|
|
86
|
+
]
|
|
87
|
+
}) : (typeof o == "number" || typeof o == "boolean" || typeof o == "bigint") && (u = /* @__PURE__ */ p(n, {
|
|
88
|
+
code: String(o),
|
|
89
|
+
language: "json",
|
|
90
|
+
collapsed: !0,
|
|
91
|
+
children: [
|
|
92
|
+
/* @__PURE__ */ f(i, {}),
|
|
93
|
+
/* @__PURE__ */ f(a, { fileName: "tool-result.json" }),
|
|
94
|
+
/* @__PURE__ */ f(r, {})
|
|
95
|
+
]
|
|
96
|
+
})), s ? /* @__PURE__ */ f("div", {
|
|
97
|
+
ref: l,
|
|
98
|
+
"data-slot": "tool-output",
|
|
99
|
+
className: e("space-y-2 px-3.25", t),
|
|
100
|
+
...c,
|
|
101
|
+
children: /* @__PURE__ */ p("div", {
|
|
102
|
+
className: "flex flex-col gap-2 text-sm",
|
|
103
|
+
children: [/* @__PURE__ */ f("span", {
|
|
104
|
+
className: "font-medium text-destructive-foreground",
|
|
105
|
+
children: "ERROR"
|
|
106
|
+
}), /* @__PURE__ */ f("span", {
|
|
107
|
+
className: "text-foreground",
|
|
108
|
+
children: s
|
|
109
|
+
})]
|
|
110
|
+
})
|
|
111
|
+
}) : /* @__PURE__ */ p("div", {
|
|
112
|
+
ref: l,
|
|
113
|
+
"data-slot": "tool-output",
|
|
114
|
+
className: e("space-y-2 px-3.25", t),
|
|
115
|
+
...c,
|
|
116
|
+
children: [/* @__PURE__ */ f("h4", {
|
|
117
|
+
className: "text-sm font-medium uppercase tracking-wide text-muted-foreground",
|
|
118
|
+
children: "Result"
|
|
119
|
+
}), /* @__PURE__ */ f("div", {
|
|
120
|
+
className: "min-h-0 overflow-x-auto rounded-md bg-muted-background/50 text-xs text-foreground [&_table]:w-full",
|
|
121
|
+
children: u
|
|
122
|
+
})]
|
|
123
|
+
});
|
|
124
|
+
});
|
|
125
|
+
v.displayName = "ToolOutput";
|
|
126
|
+
//#endregion
|
|
127
|
+
export { m as Tool, g as ToolContent, h as ToolHeader, _ as ToolInput, v as ToolOutput };
|
|
@@ -1,88 +1,49 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
"data-slot": "tooltip-provider",
|
|
14
|
-
delay: t,
|
|
15
|
-
...a
|
|
16
|
-
}
|
|
17
|
-
);
|
|
1
|
+
import { cn as e } from "../../../../lib/utils.js";
|
|
2
|
+
import { usePortalContainer as t } from "../../../../lib/portal-container-context.js";
|
|
3
|
+
import { forwardRef as n } from "react";
|
|
4
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
+
import { Tooltip as a } from "@base-ui/react/tooltip";
|
|
6
|
+
//#region libs/aura/src/components/ui/core/tooltip/tooltip.tsx
|
|
7
|
+
function o({ delayDuration: e = 300, ...t }) {
|
|
8
|
+
return /* @__PURE__ */ r(a.Provider, {
|
|
9
|
+
"data-slot": "tooltip-provider",
|
|
10
|
+
delay: e,
|
|
11
|
+
...t
|
|
12
|
+
});
|
|
18
13
|
}
|
|
19
|
-
function
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
{
|
|
26
|
-
"data-slot": "tooltip",
|
|
27
|
-
disableHoverablePopup: t,
|
|
28
|
-
...a
|
|
29
|
-
}
|
|
30
|
-
);
|
|
14
|
+
function s({ disableHoverableContent: e, ...t }) {
|
|
15
|
+
return /* @__PURE__ */ r(a.Root, {
|
|
16
|
+
"data-slot": "tooltip",
|
|
17
|
+
disableHoverablePopup: e,
|
|
18
|
+
...t
|
|
19
|
+
});
|
|
31
20
|
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
className: "isolate z-50 min-w-max",
|
|
62
|
-
children: /* @__PURE__ */ f(
|
|
63
|
-
e.Popup,
|
|
64
|
-
{
|
|
65
|
-
ref: m,
|
|
66
|
-
"data-slot": "tooltip-content",
|
|
67
|
-
className: c(
|
|
68
|
-
"data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=inline-end]:slide-in-from-left-2 bg-raised-background text-foreground-fixed-light z-50 inline-flex min-h-9 w-fit max-w-80 items-center origin-(--transform-origin) rounded-lg px-3 py-2 text-sm font-medium leading-4.5 shadow-sm",
|
|
69
|
-
t
|
|
70
|
-
),
|
|
71
|
-
...l,
|
|
72
|
-
children: [
|
|
73
|
-
s,
|
|
74
|
-
/* @__PURE__ */ i(e.Arrow, { className: "size-2.5 -translate-y-1/2 rotate-45 rounded-xs data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-1 data-[side=inline-start]:-translate-y-1/2 bg-raised-background fill-raised-background z-50 data-[side=bottom]:top-1 data-[side=bottom]:-mt-0.5 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5 data-[side=top]:-mt-0.5" })
|
|
75
|
-
]
|
|
76
|
-
}
|
|
77
|
-
)
|
|
78
|
-
}
|
|
79
|
-
) });
|
|
80
|
-
}
|
|
81
|
-
);
|
|
82
|
-
h.displayName = "TooltipContent";
|
|
83
|
-
export {
|
|
84
|
-
w as Tooltip,
|
|
85
|
-
h as TooltipContent,
|
|
86
|
-
P as TooltipProvider,
|
|
87
|
-
u as TooltipTrigger
|
|
88
|
-
};
|
|
21
|
+
var c = n((e, t) => /* @__PURE__ */ r(a.Trigger, {
|
|
22
|
+
ref: t,
|
|
23
|
+
"data-slot": "tooltip-trigger",
|
|
24
|
+
...e
|
|
25
|
+
}));
|
|
26
|
+
c.displayName = "TooltipTrigger";
|
|
27
|
+
var l = n(({ className: n, side: o = "top", sideOffset: s = 9, align: c = "center", alignOffset: l = 0, children: u, ...d }, f) => {
|
|
28
|
+
let p = t();
|
|
29
|
+
return /* @__PURE__ */ r(a.Portal, {
|
|
30
|
+
container: p,
|
|
31
|
+
children: /* @__PURE__ */ r(a.Positioner, {
|
|
32
|
+
align: c,
|
|
33
|
+
alignOffset: l,
|
|
34
|
+
side: o,
|
|
35
|
+
sideOffset: s,
|
|
36
|
+
className: "isolate z-50 min-w-max",
|
|
37
|
+
children: /* @__PURE__ */ i(a.Popup, {
|
|
38
|
+
ref: f,
|
|
39
|
+
"data-slot": "tooltip-content",
|
|
40
|
+
className: e("data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=inline-end]:slide-in-from-left-2 bg-raised-background text-foreground-fixed-light z-50 inline-flex min-h-9 w-fit max-w-80 items-center origin-(--transform-origin) rounded-lg px-3 py-2 text-sm font-medium leading-4.5 shadow-sm", n),
|
|
41
|
+
...d,
|
|
42
|
+
children: [u, /* @__PURE__ */ r(a.Arrow, { className: "size-2.5 -translate-y-1/2 rotate-45 rounded-xs data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-1 data-[side=inline-start]:-translate-y-1/2 bg-raised-background fill-raised-background z-50 data-[side=bottom]:top-1 data-[side=bottom]:-mt-0.5 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5 data-[side=top]:-mt-0.5" })]
|
|
43
|
+
})
|
|
44
|
+
})
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
l.displayName = "TooltipContent";
|
|
48
|
+
//#endregion
|
|
49
|
+
export { s as Tooltip, l as TooltipContent, o as TooltipProvider, c as TooltipTrigger };
|