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