@xenide-io/the-old-ui-theme 0.3.2 → 0.4.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/dist/chunk-54ZR4VL5.mjs +4641 -0
- package/dist/chunk-G53YLHVE.mjs +1023 -0
- package/dist/{index-BgG8Homu.d.mts → index-B5NOyoKS.d.mts} +100 -100
- package/dist/{index-BgG8Homu.d.ts → index-B5NOyoKS.d.ts} +100 -100
- package/dist/index.d.mts +9 -145
- package/dist/index.d.ts +9 -145
- package/dist/index.js +653 -1111
- package/dist/index.mjs +86 -342
- package/dist/suite.d.mts +760 -0
- package/dist/suite.d.ts +760 -0
- package/dist/suite.js +2800 -0
- package/dist/suite.mjs +2441 -0
- package/dist/ui.d.mts +1 -2
- package/dist/ui.d.ts +1 -2
- package/dist/ui.js +14 -10
- package/dist/ui.mjs +13 -11
- package/package.json +43 -24
- package/src/components/icons/icons.tsx +0 -2
- package/src/components/icons/index.ts +0 -3
- package/src/components/sections/IconShowcase.tsx +1 -110
- package/src/components/sections/NewComponentsShowcase.tsx +4 -4
- package/src/components/sections/SidebarShowcase.tsx +3 -3
- package/src/components/sections/SuiteShowcase.tsx +669 -0
- package/src/components/ui/ComponentDocs.tsx +2 -2
- package/src/components/ui/ContextMenu.tsx +1 -1
- package/src/components/ui/Menubar.tsx +1 -1
- package/src/components/ui/Sidebar.tsx +10 -8
- package/src/styles/suite-skin.css +255 -0
- package/src/suite/components/ai-panel.tsx +202 -0
- package/src/suite/components/app-switcher.tsx +196 -0
- package/src/suite/components/command-palette-host.tsx +62 -0
- package/src/suite/components/deferred-chrome.tsx +12 -0
- package/src/suite/components/suite-app-layout.tsx +69 -0
- package/src/suite/components/suite-bottom-nav.tsx +113 -0
- package/src/suite/components/suite-layout.tsx +285 -0
- package/src/suite/components/suite-mobile-drawer.tsx +150 -0
- package/src/suite/components/suite-mobile-header.tsx +71 -0
- package/src/suite/components/suite-notification-bell.tsx +227 -0
- package/src/suite/components/suite-settings-mobile-nav.tsx +83 -0
- package/src/suite/components/suite-sidebar.tsx +198 -0
- package/src/suite/components/suite-skeleton.tsx +191 -0
- package/src/suite/components/suite-user-menu.tsx +109 -0
- package/src/suite/components/theme-provider.tsx +174 -0
- package/src/suite/components/today-calibrating.tsx +95 -0
- package/src/suite/components/today-page-frame.tsx +28 -0
- package/src/suite/components/today-ui.tsx +370 -0
- package/src/suite/icons/app-accents.ts +75 -0
- package/src/suite/icons/glyph-parts.tsx +67 -0
- package/src/suite/icons/glyphs.ts +203 -0
- package/src/suite/icons/index.ts +12 -0
- package/src/suite/icons/suite-app-icon.tsx +68 -0
- package/src/suite/icons/suite-icon.tsx +93 -0
- package/src/suite/index.ts +108 -0
- package/src/suite/lib/apps.ts +75 -0
- package/src/suite/lib/cn.ts +6 -0
- package/src/suite/lib/injected.ts +54 -0
- package/src/suite/lib/motion.tsx +48 -0
- package/src/suite/lib/use-idle-mount.ts +25 -0
- package/dist/chunk-5HSOBJ4F.mjs +0 -5968
- package/src/components/icons/lemon-brand-icons.tsx +0 -16
- package/src/components/icons/lemon-category-icons.tsx +0 -72
- package/src/components/icons/lemon-icons.tsx +0 -57
|
@@ -0,0 +1,1023 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__objRest,
|
|
3
|
+
__spreadProps,
|
|
4
|
+
__spreadValues
|
|
5
|
+
} from "./chunk-FWCSY2DS.mjs";
|
|
6
|
+
|
|
7
|
+
// src/components/ui/ButtonChrome.tsx
|
|
8
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
function ButtonChrome({ label, icon, sideIcon, split }) {
|
|
10
|
+
return /* @__PURE__ */ jsxs("span", { className: "ph-btn-chrome", children: [
|
|
11
|
+
icon != null ? /* @__PURE__ */ jsx("span", { className: "ph-btn-icon", children: icon }) : null,
|
|
12
|
+
label != null ? /* @__PURE__ */ jsx("span", { className: "ph-btn-label", children: label }) : null,
|
|
13
|
+
split ? /* @__PURE__ */ jsx("span", { className: "ph-btn-split-divider", "aria-hidden": true }) : null,
|
|
14
|
+
sideIcon != null ? /* @__PURE__ */ jsx("span", { className: "ph-btn-side-icon", children: sideIcon }) : null
|
|
15
|
+
] });
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
// src/components/icons/IconBase.tsx
|
|
19
|
+
import { forwardRef } from "react";
|
|
20
|
+
|
|
21
|
+
// src/lib/cn.ts
|
|
22
|
+
function cn(...parts) {
|
|
23
|
+
return parts.filter(Boolean).join(" ");
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
// src/components/icons/IconBase.tsx
|
|
27
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
28
|
+
var IconBase = forwardRef(function IconBase2(_a, ref) {
|
|
29
|
+
var _b = _a, {
|
|
30
|
+
className,
|
|
31
|
+
size,
|
|
32
|
+
children,
|
|
33
|
+
viewBox = "0 0 24 24",
|
|
34
|
+
fill: fill2 = "none",
|
|
35
|
+
xmlns = "http://www.w3.org/2000/svg",
|
|
36
|
+
focusable = "false",
|
|
37
|
+
style,
|
|
38
|
+
role,
|
|
39
|
+
"aria-hidden": ariaHidden,
|
|
40
|
+
"aria-label": ariaLabel,
|
|
41
|
+
"aria-labelledby": ariaLabelledBy
|
|
42
|
+
} = _b, props = __objRest(_b, [
|
|
43
|
+
"className",
|
|
44
|
+
"size",
|
|
45
|
+
"children",
|
|
46
|
+
"viewBox",
|
|
47
|
+
"fill",
|
|
48
|
+
"xmlns",
|
|
49
|
+
"focusable",
|
|
50
|
+
"style",
|
|
51
|
+
"role",
|
|
52
|
+
"aria-hidden",
|
|
53
|
+
"aria-label",
|
|
54
|
+
"aria-labelledby"
|
|
55
|
+
]);
|
|
56
|
+
const hasAccessibleName = Boolean(ariaLabel || ariaLabelledBy);
|
|
57
|
+
return /* @__PURE__ */ jsx2(
|
|
58
|
+
"svg",
|
|
59
|
+
__spreadProps(__spreadValues({
|
|
60
|
+
ref,
|
|
61
|
+
className: cn("ph-icon", className),
|
|
62
|
+
viewBox,
|
|
63
|
+
fill: fill2,
|
|
64
|
+
xmlns,
|
|
65
|
+
focusable,
|
|
66
|
+
role: role != null ? role : hasAccessibleName ? "img" : void 0,
|
|
67
|
+
"aria-hidden": ariaHidden != null ? ariaHidden : hasAccessibleName ? void 0 : true,
|
|
68
|
+
"aria-label": ariaLabel,
|
|
69
|
+
"aria-labelledby": ariaLabelledBy,
|
|
70
|
+
style: __spreadValues({ width: size, height: size }, style)
|
|
71
|
+
}, props), {
|
|
72
|
+
children
|
|
73
|
+
})
|
|
74
|
+
);
|
|
75
|
+
});
|
|
76
|
+
IconBase.displayName = "IconBase";
|
|
77
|
+
|
|
78
|
+
// src/components/icons/createIconBase.tsx
|
|
79
|
+
import { forwardRef as forwardRef2 } from "react";
|
|
80
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
81
|
+
function createIconBase({ name = "IconGlyph", viewBox = "0 0 24 24", paths }) {
|
|
82
|
+
const IconGlyph = forwardRef2(function IconGlyph2(props, ref) {
|
|
83
|
+
return /* @__PURE__ */ jsx3(IconBase, __spreadProps(__spreadValues({ ref, viewBox }, props), { children: paths }));
|
|
84
|
+
});
|
|
85
|
+
IconGlyph.displayName = name;
|
|
86
|
+
return IconGlyph;
|
|
87
|
+
}
|
|
88
|
+
function createIconBasePath(d, viewBox = "0 0 24 24", name) {
|
|
89
|
+
return createIconBase({
|
|
90
|
+
name,
|
|
91
|
+
viewBox,
|
|
92
|
+
paths: /* @__PURE__ */ jsx3("path", { d, fill: "currentColor" })
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
// src/components/icons/icons.tsx
|
|
97
|
+
import { forwardRef as forwardRef3 } from "react";
|
|
98
|
+
import { Fragment, jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
99
|
+
var fill = (d) => /* @__PURE__ */ jsx4("path", { d, fill: "currentColor" });
|
|
100
|
+
var IconAreaChart = createIconBase({
|
|
101
|
+
paths: fill("M3 20V7l4 3 5-7 5 4h4v13Zm5-3 4-5.5 7 5.45V9h-2.7l-3.9-3.125-4.95 6.95L5 11v3.6Z")
|
|
102
|
+
});
|
|
103
|
+
var IconCumulativeChart = createIconBase({
|
|
104
|
+
paths: fill(
|
|
105
|
+
"M20.8805 7.97408C15.0614 18.7809 6.51281 19.5979 2.71265 18.4578L3.28734 16.5422C6.15384 17.4021 13.7386 17.0191 19.1195 7.02588L20.8805 7.97408Z"
|
|
106
|
+
)
|
|
107
|
+
});
|
|
108
|
+
var IconTableChart = createIconBase({
|
|
109
|
+
paths: fill(
|
|
110
|
+
"M20 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h15c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 2v3H5V5h15zm-5 14h-5v-9h5v9zM5 10h3v9H5v-9zm12 9v-9h3v9h-3z"
|
|
111
|
+
)
|
|
112
|
+
});
|
|
113
|
+
var IconHandClick = createIconBase({
|
|
114
|
+
viewBox: "0 0 18 18",
|
|
115
|
+
paths: fill(
|
|
116
|
+
"M14.9942 7.90164C14.9942 7.82992 14.9583 7.46993 14.6342 7.10993C14.2925 6.71407 13.7524 6.49822 13.05 6.44407C12.9783 6.33579 12.8883 6.22822 12.7442 6.11993C12.3483 5.81407 11.7359 5.65164 10.9442 5.63407C10.8724 5.54407 10.7459 5.43578 10.6024 5.32822C10.2425 5.0765 9.79245 4.93236 9.23416 4.87822V3.41993C9.23416 3.27579 9.25244 2.66407 8.83831 2.23164C8.65831 2.03335 8.31659 1.79993 7.74002 1.79993C7.14587 1.79993 6.80416 2.03407 6.60587 2.23164C6.22759 2.64578 6.22759 3.18578 6.22759 3.31164V8.46C5.88587 8.1 5.50759 7.70414 5.29173 7.56C4.84173 7.21829 3.99587 7.39828 3.51002 7.75829C3.04173 8.1 2.88002 8.62243 3.06002 9.12658C3.38416 10.0266 4.19416 10.9266 4.39173 11.1424C4.57173 11.4841 5.38173 12.9782 6.10173 13.5182C6.48002 13.8065 6.76759 14.9941 6.84002 15.7499L6.87588 16.1457H13.6801V14.364C13.7701 14.1123 13.9859 13.5723 14.2201 13.3199C14.7783 12.7616 14.9583 11.3582 14.9583 10.9257V7.91986L14.9942 7.90164ZM14.1117 10.89C14.1117 11.4117 13.8959 12.4017 13.6259 12.6717C13.1576 13.14 12.87 14.04 12.8517 14.13L12.8335 14.1841V15.2283H7.68583C7.64997 15.03 7.61411 14.7783 7.54169 14.5083C7.32583 13.6441 7.03754 13.0866 6.65998 12.7983C6.13826 12.4024 5.39998 11.1241 5.16583 10.6566L5.09411 10.5484C5.09411 10.5301 4.2124 9.63008 3.90582 8.80251C3.86996 8.69423 3.86996 8.60422 3.99582 8.47836C4.22997 8.26251 4.67997 8.20836 4.78754 8.24422C5.05754 8.46008 5.88582 9.34251 6.35339 9.86422L7.12754 10.7284L7.12824 3.29418V3.25762C7.12824 3.1859 7.14652 2.95176 7.27238 2.82591C7.36238 2.71763 7.52409 2.66419 7.75824 2.66419C7.95652 2.66419 8.09995 2.71833 8.20824 2.80833C8.35238 2.97005 8.36996 3.25833 8.36996 3.36662V8.02826H9.25167V5.7599C10.0617 5.8499 10.2958 6.19161 10.3317 6.24575L10.3675 6.33575V8.02747H11.2492V6.53332C12.0051 6.60504 12.2934 6.83918 12.3651 6.94747V8.65747H13.2468V7.34332C14.021 7.4516 14.1468 7.86504 14.1651 7.95504L14.1658 10.8899L14.1117 10.89Z"
|
|
117
|
+
)
|
|
118
|
+
});
|
|
119
|
+
var IconSurveys = createIconBase({
|
|
120
|
+
paths: fill(
|
|
121
|
+
"M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H5.17l-.59.59-.58.58V4h16v12zm-9.5-2H18v-2h-5.5zm3.86-5.87c.2-.2.2-.51 0-.71l-1.77-1.77c-.2-.2-.51-.2-.71 0L6 11.53V14h2.47l5.89-5.87z"
|
|
122
|
+
)
|
|
123
|
+
});
|
|
124
|
+
var IconCohort = createIconBase({
|
|
125
|
+
paths: fill(
|
|
126
|
+
"m4 13c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm1.13 1.1c-.37-.06-.74-.1-1.13-.1-.99 0-1.93.21-2.78.58-.74.32-1.22 1.04-1.22 1.85v1.57h4.5v-1.61c0-.83.23-1.61.63-2.29zm14.87-1.1c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm4 3.43c0-.81-.48-1.53-1.22-1.85-.85-.37-1.79-.58-2.78-.58-.39 0-.76.04-1.13.1.4.68.63 1.46.63 2.29v1.61h4.5zm-7.76-2.78c-1.17-.52-2.61-.9-4.24-.9s-3.07.39-4.24.9c-1.08.48-1.76 1.56-1.76 2.74v1.61h12v-1.61c0-1.18-.68-2.26-1.76-2.74zm-8.17 2.35c.09-.23.13-.39.91-.69.97-.38 1.99-.56 3.02-.56s2.05.18 3.02.56c.77.3.81.46.91.69zm3.93-8c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm0-2c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"
|
|
127
|
+
)
|
|
128
|
+
});
|
|
129
|
+
var IconRecording = createIconBase({
|
|
130
|
+
paths: fill(
|
|
131
|
+
"m10 8v8l5-4zm9-5h-14c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-14c0-1.1-.9-2-2-2zm0 16h-14v-14h14z"
|
|
132
|
+
)
|
|
133
|
+
});
|
|
134
|
+
var IconFlare = createIconBase({
|
|
135
|
+
paths: fill(
|
|
136
|
+
"m7 11h-6v2h6zm2.17-3.24-2.12-2.12-1.41 1.41 2.12 2.12zm3.83-6.76h-2v6h2zm5.36 6.05-1.41-1.41-2.12 2.12 1.41 1.41zm-1.36 3.95v2h6v-2zm-5-2c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3zm2.83 7.24 2.12 2.12 1.41-1.41-2.12-2.12zm-9.19.71 1.41 1.41 2.12-2.12-1.41-1.41zm5.36 6.05h2v-6h-2z"
|
|
137
|
+
)
|
|
138
|
+
});
|
|
139
|
+
var IconSelectEvents = createIconBase({
|
|
140
|
+
paths: /* @__PURE__ */ jsxs2(Fragment, { children: [
|
|
141
|
+
fill("M17.5 9L16.56 6.94L14.5 6L16.56 5.06L17.5 3L18.44 5.06L20.5 6L18.44 6.94L17.5 9Z"),
|
|
142
|
+
fill("M6 12.5L6.94 14.56L9 15.5L6.94 16.44L6 18.5L5.06 16.44L3 15.5L5.06 14.56L6 12.5Z"),
|
|
143
|
+
fill("M6 9L5.06 6.94L3 6L5.06 5.06L6 3L6.94 5.06L9 6L6.94 6.94L6 9Z"),
|
|
144
|
+
fill("M16.23 14.26L20 13L10 10L13 20L14.26 16.23L18.53 20.5L20.51 18.52L16.23 14.26Z")
|
|
145
|
+
] })
|
|
146
|
+
});
|
|
147
|
+
var IconClipboardEdit = createIconBase({
|
|
148
|
+
paths: fill(
|
|
149
|
+
"M21.04 12.13C21.18 12.13 21.31 12.19 21.42 12.3L22.7 13.58C22.92 13.79 22.92 14.14 22.7 14.35L21.7 15.35L19.65 13.3L20.65 12.3C20.76 12.19 20.9 12.13 21.04 12.13M19.07 13.88L21.12 15.93L15.06 22H13V19.94L19.07 13.88M11 19L9 21H5C3.9 21 3 20.1 3 19V5C3 3.9 3.9 3 5 3H9.18C9.6 1.84 10.7 1 12 1C13.3 1 14.4 1.84 14.82 3H19C20.1 3 21 3.9 21 5V9L19 11V5H17V7H7V5H5V19H11M12 3C11.45 3 11 3.45 11 4C11 4.55 11.45 5 12 5C12.55 5 13 4.55 13 4C13 3.45 12.55 3 12 3Z"
|
|
150
|
+
)
|
|
151
|
+
});
|
|
152
|
+
var IconQueryEditor = createIconBase({
|
|
153
|
+
paths: fill(
|
|
154
|
+
"M4,14V17C4,19 7.05,20.72 11,21V18.11L11.13,18C7.12,17.76 4,16.06 4,14M12,13C7.58,13 4,11.21 4,9V12C4,14.21 7.58,16 12,16C12.39,16 12.77,16 13.16,16L17,12.12C15.4,12.72 13.71,13 12,13M12,3C7.58,3 4,4.79 4,7C4,9.21 7.58,11 12,11C16.42,11 20,9.21 20,7C20,4.79 16.42,3 12,3M21,11.13C20.85,11.13 20.71,11.19 20.61,11.3L19.61,12.3L21.66,14.3L22.66,13.3C22.87,13.1 22.88,12.76 22.66,12.53L21.42,11.3C21.32,11.19 21.18,11.13 21.04,11.13M19.04,12.88L13,18.94V21H15.06L21.12,14.93L19.04,12.88Z"
|
|
155
|
+
)
|
|
156
|
+
});
|
|
157
|
+
var IconTuning = createIconBase({
|
|
158
|
+
paths: fill(
|
|
159
|
+
"M3,17V19H9V17H3M3,5V7H13V5H3M13,21V19H21V17H13V15H11V21H13M7,9V11H3V13H7V15H9V9H7M21,13V11H11V13H21M15,9H17V7H21V5H17V3H15V9Z"
|
|
160
|
+
)
|
|
161
|
+
});
|
|
162
|
+
var IconSync = createIconBase({
|
|
163
|
+
paths: fill(
|
|
164
|
+
"m12.5 4v-3l-4 4 4 4v-3c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46c.78-1.23 1.24-2.69 1.24-4.26 0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8l-1.46-1.46c-.78 1.23-1.24 2.69-1.24 4.26 0 4.42 3.58 8 8 8v3l4-4-4-4z"
|
|
165
|
+
)
|
|
166
|
+
});
|
|
167
|
+
var IconPlayCircle = createIconBase({
|
|
168
|
+
paths: fill(
|
|
169
|
+
"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM9.5 16.5L16.5 12L9.5 7.5V16.5Z"
|
|
170
|
+
)
|
|
171
|
+
});
|
|
172
|
+
var IconGridView = createIconBase({
|
|
173
|
+
paths: fill("M3 3v8h8V3H3zm6 6H5V5h4v4zm-6 4v8h8v-8H3zm6 6H5v-4h4v4zm4-16v8h8V3h-8zm6 6h-4V5h4v4zm-6 4v8h8v-8h-8zm6 6h-4v-4h4v4z")
|
|
174
|
+
});
|
|
175
|
+
var IconListView = createIconBase({
|
|
176
|
+
paths: fill(
|
|
177
|
+
"M3,5v14h18V5H3z M7,7v2H5V7H7z M5,13v-2h2v2H5z M5,15h2v2H5V15z M19,17H9v-2h10V17z M19,13H9v-2h10V13z M19,9H9V7h10V9z"
|
|
178
|
+
)
|
|
179
|
+
});
|
|
180
|
+
var IconPremium = createIconBase({
|
|
181
|
+
paths: fill(
|
|
182
|
+
"m9.68 13.69 2.32-1.76 2.31 1.76-.88-2.85 2.32-1.84h-2.84l-.91-2.81-.91 2.81h-2.84l2.31 1.84zm10.32-3.69c0-4.42-3.58-8-8-8s-8 3.58-8 8c0 2.03.76 3.87 2 5.28v7.72l6-2 6 2v-7.72c1.24-1.41 2-3.25 2-5.28zm-8-6c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6 2.69-6 6-6zm0 15-4 1.02v-3.1c1.18.68 2.54 1.08 4 1.08s2.82-.4 4-1.08v3.1z"
|
|
183
|
+
)
|
|
184
|
+
});
|
|
185
|
+
var IconGift = createIconBase({
|
|
186
|
+
paths: fill(
|
|
187
|
+
"M14.4495 4.55495C15.264 4.31223 15.8631 4.48426 16.1 4.80007C16.4013 5.20182 16.4765 5.57305 16.4336 5.91424C16.3888 6.27088 16.2084 6.63998 15.9211 7.00139C15.3397 7.73275 14.4193 8.30877 13.8244 8.53186C13.598 8.61674 13.4648 8.85138 13.508 9.08924C13.5511 9.32709 13.7582 9.50002 13.9999 9.50002L19.4999 9.50002V12.5H17.9999C17.7237 12.5 17.4999 12.7239 17.4999 13V20.5H6.49988V14.5C6.49988 14.2239 6.27602 14 5.99988 14C5.72374 14 5.49988 14.2239 5.49988 14.5V21C5.49988 21.2762 5.72374 21.5 5.99988 21.5H17.9999C18.276 21.5 18.4999 21.2762 18.4999 21V13.5H19.9999C20.276 13.5 20.4999 13.2762 20.4999 13V9.00002C20.4999 8.86741 20.4472 8.74023 20.3534 8.64646C20.2597 8.5527 20.1325 8.50002 19.9999 8.50002L15.8202 8.50002C16.1407 8.24235 16.4465 7.94742 16.7039 7.62365C17.0625 7.17257 17.3508 6.63541 17.4258 6.03894C17.5027 5.42702 17.3487 4.79826 16.8999 4.20003C16.2882 3.3845 15.1373 3.30652 14.1639 3.5966C13.3806 3.83005 12.5842 4.3279 12.0008 5.07014C11.4285 4.33982 10.6586 3.86464 9.88727 3.64427C8.91382 3.36616 7.82238 3.47045 7.14633 4.14645C6.65753 4.63523 6.41235 5.18234 6.41347 5.75925C6.41457 6.32144 6.64952 6.84016 6.97799 7.28883C7.30058 7.72946 7.7389 8.13769 8.22434 8.50002L3.99988 8.50002C3.86727 8.50002 3.74009 8.5527 3.64632 8.64646C3.55256 8.74023 3.49988 8.86741 3.49988 9.00002V13C3.49988 13.2762 3.72374 13.5 3.99988 13.5H15.4999C15.776 13.5 15.9999 13.2762 15.9999 13C15.9999 12.7239 15.776 12.5 15.4999 12.5H4.49988V9.50002L9.99995 9.50002C10.2318 9.50002 10.4333 9.34058 10.4866 9.1149C10.5398 8.88921 10.431 8.65651 10.2236 8.55281C9.25206 8.06706 8.29723 7.39797 7.78487 6.69811C7.53216 6.35292 7.41402 6.03722 7.41347 5.7573C7.41295 5.49209 7.51758 5.1894 7.85342 4.85358C8.17738 4.52964 8.83597 4.38393 9.61256 4.6058C10.3657 4.82096 11.1212 5.36045 11.5528 6.22359C11.6375 6.39298 11.8106 6.49997 12 6.49997C12.1894 6.49997 12.3625 6.39297 12.4472 6.22358C12.8783 5.36141 13.672 4.78667 14.4495 4.55495Z"
|
|
188
|
+
)
|
|
189
|
+
});
|
|
190
|
+
var IconRobot = createIconBase({
|
|
191
|
+
paths: fill(
|
|
192
|
+
"M17.5 15.5C17.5 16.61 16.61 17.5 15.5 17.5S13.5 16.61 13.5 15.5 14.4 13.5 15.5 13.5 17.5 14.4 17.5 15.5M8.5 13.5C7.4 13.5 6.5 14.4 6.5 15.5S7.4 17.5 8.5 17.5 10.5 16.61 10.5 15.5 9.61 13.5 8.5 13.5M23 15V18C23 18.55 22.55 19 22 19H21V20C21 21.11 20.11 22 19 22H5C3.9 22 3 21.11 3 20V19H2C1.45 19 1 18.55 1 18V15C1 14.45 1.45 14 2 14H3C3 10.13 6.13 7 10 7H11V5.73C10.4 5.39 10 4.74 10 4C10 2.9 10.9 2 12 2S14 2.9 14 4C14 4.74 13.6 5.39 13 5.73V7H14C17.87 7 21 10.13 21 14H22C22.55 14 23 14.45 23 15M21 16H19V14C19 11.24 16.76 9 14 9H10C7.24 9 5 11.24 5 14V16H3V17H5V20H19V17H21V16Z"
|
|
193
|
+
)
|
|
194
|
+
});
|
|
195
|
+
var IconExclamation = createIconBase({
|
|
196
|
+
paths: /* @__PURE__ */ jsxs2("g", { fill: "currentColor", children: [
|
|
197
|
+
/* @__PURE__ */ jsx4("path", { d: "m12 21c1.1046 0 2-.8954 2-2s-.8954-2-2-2-2 .8954-2 2 .8954 2 2 2z" }),
|
|
198
|
+
/* @__PURE__ */ jsx4("path", { d: "m10 3h4v12h-4z" })
|
|
199
|
+
] })
|
|
200
|
+
});
|
|
201
|
+
var IconErrorOutline = createIconBase({
|
|
202
|
+
paths: fill(
|
|
203
|
+
"m11 15h2v2h-2zm0-8h2v6h-2zm.99-5c-5.52 0-9.99 4.48-9.99 10s4.47 10 9.99 10c5.53 0 10.01-4.48 10.01-10s-4.48-10-10.01-10zm.01 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"
|
|
204
|
+
)
|
|
205
|
+
});
|
|
206
|
+
var IconInfo = createIconBase({
|
|
207
|
+
name: "IconInfo",
|
|
208
|
+
paths: fill(
|
|
209
|
+
"M11 10h2v7h-2v-7zm0-3h2v2h-2V7zm1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"
|
|
210
|
+
)
|
|
211
|
+
});
|
|
212
|
+
var IconCancel = createIconBase({
|
|
213
|
+
paths: fill(
|
|
214
|
+
"m12 2c-5.53 0-10 4.47-10 10s4.47 10 10 10 10-4.47 10-10-4.47-10-10-10zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm3.59-13-3.59 3.59-3.59-3.59-1.41 1.41 3.59 3.59-3.59 3.59 1.41 1.41 3.59-3.59 3.59 3.59 1.41-1.41-3.59-3.59 3.59-3.59z"
|
|
215
|
+
)
|
|
216
|
+
});
|
|
217
|
+
var IconCheckCircle = createIconBase({
|
|
218
|
+
paths: fill(
|
|
219
|
+
"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"
|
|
220
|
+
)
|
|
221
|
+
});
|
|
222
|
+
var IconArrowUp = createIconBase({
|
|
223
|
+
paths: fill("M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z")
|
|
224
|
+
});
|
|
225
|
+
var IconArrowDown = createIconBase({
|
|
226
|
+
paths: fill("M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z")
|
|
227
|
+
});
|
|
228
|
+
var IconChevronLeft = createIconBasePath("M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z");
|
|
229
|
+
var IconChevronRight = createIconBasePath("M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z");
|
|
230
|
+
var IconChevronDown = createIconBasePath("M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z");
|
|
231
|
+
var IconSubArrowRight = createIconBase({
|
|
232
|
+
paths: /* @__PURE__ */ jsx4("g", { transform: "translate(4 5.5)", children: fill("M2 0H0V10H12.01V13L16 9L12.01 5V8H2V0Z") })
|
|
233
|
+
});
|
|
234
|
+
var IconSearch = createIconBasePath(
|
|
235
|
+
"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"
|
|
236
|
+
);
|
|
237
|
+
var IconBell = createIconBasePath(
|
|
238
|
+
"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2m6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1z"
|
|
239
|
+
);
|
|
240
|
+
var IconBellOff = createIconBasePath(
|
|
241
|
+
"M20 18.69 7.84 6.14 5.27 3.49 4 4.76l2.8 2.8v.01c-.52.99-.8 2.16-.8 3.42v5l-2 2v1h13.73l2 2L21 19.72zM12 22c1.11 0 2-.89 2-2h-4c0 1.11.89 2 2 2m6-7.32V11c0-3.08-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68c-.15.03-.29.08-.42.12-.1.03-.2.07-.3.11h-.01c-.01 0-.01 0-.02.01-.23.09-.46.2-.68.31 0 0-.01 0-.01.01z"
|
|
242
|
+
);
|
|
243
|
+
var IconPerson = createIconBasePath(
|
|
244
|
+
"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"
|
|
245
|
+
);
|
|
246
|
+
var IconHome = createIconBasePath("M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z");
|
|
247
|
+
var IconPanelRight = createIconBasePath(
|
|
248
|
+
"M3 5v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2zm12 4h-5v10h5V9zm-7 0H5v10h3V9z"
|
|
249
|
+
);
|
|
250
|
+
var IconPlus = createIconBasePath("M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z");
|
|
251
|
+
var IconCheck = createIconBasePath("M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z");
|
|
252
|
+
var IconClose = createIconBasePath("M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z");
|
|
253
|
+
var IconTrash = createIconBasePath("M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z");
|
|
254
|
+
var IconDownload = createIconBasePath("M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z");
|
|
255
|
+
var IconUpload = createIconBasePath("M9 16h6v-6h4l-7-7-7 7h4v6zm-4 2h14v2H5v-2z");
|
|
256
|
+
var IconSave = createIconBasePath(
|
|
257
|
+
"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7l-4-4zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-10H5V5h10v4z"
|
|
258
|
+
);
|
|
259
|
+
var IconCopy = createIconBasePath(
|
|
260
|
+
"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"
|
|
261
|
+
);
|
|
262
|
+
var IconEdit = createIconBasePath(
|
|
263
|
+
"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"
|
|
264
|
+
);
|
|
265
|
+
var IconLogout = createIconBasePath(
|
|
266
|
+
"M17 7l-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.59L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4V5z"
|
|
267
|
+
);
|
|
268
|
+
var IconStar = createIconBasePath(
|
|
269
|
+
"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"
|
|
270
|
+
);
|
|
271
|
+
var IconMail = createIconBasePath(
|
|
272
|
+
"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"
|
|
273
|
+
);
|
|
274
|
+
var IconShoppingCart = createIconBasePath(
|
|
275
|
+
"M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.08-.14.12-.31.12-.48 0-.55-.45-1-1-1H5.21l-.94-2H1zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z"
|
|
276
|
+
);
|
|
277
|
+
var IconMoon = createIconBasePath(
|
|
278
|
+
"M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1z"
|
|
279
|
+
);
|
|
280
|
+
var IconSun = createIconBasePath(
|
|
281
|
+
"M6.76 4.84l-1.8-1.79-1.41 1.41 1.79 1.79 1.42-1.41zM4 10.5H1v2h3v-2zm9-9.95h-2V3.5h2V.55zm7.45 3.91l-1.41-1.41-1.79 1.79 1.41 1.41 1.79-1.79zm-3.21 13.7l1.79 1.8 1.41-1.41-1.8-1.79-1.4 1.4zM20 10.5v2h3v-2h-3zm-8-5c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zm-1 16.95h2V19.5h-2v2.95zm-7.45-3.91l1.41 1.41 1.79-1.8-1.41-1.41-1.79 1.8z"
|
|
282
|
+
);
|
|
283
|
+
var IconVolume = createIconBasePath(
|
|
284
|
+
"M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z"
|
|
285
|
+
);
|
|
286
|
+
var IconVolumeOff = createIconBasePath(
|
|
287
|
+
"M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zM4.27 3L3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9L4.27 3zM12 4L9.91 6.09 12 8.18V4z"
|
|
288
|
+
);
|
|
289
|
+
var IconFlag = createIconBasePath("M14.4 6L14 4H5v17h2v-7h5.6l.4 2h7V6h-5.6z");
|
|
290
|
+
var IconDatabase = createIconBasePath(
|
|
291
|
+
"M12 3C7.58 3 4 4.79 4 7s3.58 4 8 4 8-1.79 8-4-3.58-4-8-4zM4 9v3c0 2.21 3.58 4 8 4s8-1.79 8-4V9c0 2.21-3.58 4-8 4s-8-1.79-8-4zm0 5v3c0 2.21 3.58 4 8 4s8-1.79 8-4v-3c0 2.21-3.58 4-8 4s-8-1.79-8-4z"
|
|
292
|
+
);
|
|
293
|
+
var IconLayers = createIconBasePath("M11.99 18.54l-7.37-5.73L3 14.07l9 7 9-7-1.63-1.27-7.38 5.74zM12 16l7.36-5.73L21 9l-9-7-9 7 1.63 1.27L12 16z");
|
|
294
|
+
var IconBox = createIconBasePath(
|
|
295
|
+
"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"
|
|
296
|
+
);
|
|
297
|
+
var IconBolt = createIconBasePath(
|
|
298
|
+
"M11 21h-1l1-7H7.5c-.58 0-.57-.32-.38-.66-.19-.34-.04-.12-.07-.12C8.48 10.94 10.42 7.54 11 7V3h1v4c.58 0 .57.32.38.66-.19-.34-.04-.12-.07-.12-.95 2.28-2.96 5.66-3.31 6.22H13l-1 7h-1z"
|
|
299
|
+
);
|
|
300
|
+
var IconRadar = createIconBasePath(
|
|
301
|
+
"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm-5.5-2.5l7.51-3.49L17.5 6.5 9.99 9.99 6.5 17.5zm5.5-6.6c.61 0 1.1.49 1.1 1.1s-.49 1.1-1.1 1.1-1.1-.49-1.1-1.1.49-1.1 1.1-1.1z"
|
|
302
|
+
);
|
|
303
|
+
var IconToggle = createIconBasePath(
|
|
304
|
+
"M17 7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h10c2.76 0 5-2.24 5-5s-2.24-5-5-5zm0 8H7c-1.66 0-3-1.34-3-3s1.34-3 3-3h10c1.66 0 3 1.34 3 3s-1.34 3-3 3zM7 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"
|
|
305
|
+
);
|
|
306
|
+
var IconRocket = createIconBasePath(
|
|
307
|
+
"M9.19 6.35c-2.04 2.29-3.44 5.58-3.57 5.89L2 10.69l4.05-4.05c.47-.47 1.15-.68 1.81-.55l1.33 1.26zm5.45 8.67l-1.33-1.26c-.66-.13-1.34.08-1.81.55L2 18.31l3.62 3.57c.31-.13 3.6-1.53 5.89-3.57 1.53-1.72 2.52-3.76 2.87-5.02zM12 2c-1.1 0-2 .9-2 2v1.09c2.84.48 5 2.94 5 5.91 0 2.97-2.16 5.43-5 5.91V20c0 1.1.9 2 2 2s2-.9 2-2v-1.09c-2.84-.48-5-2.94-5-5.91 0-2.97 2.16-5.43 5-5.91V4c0-1.1-.9-2-2-2z"
|
|
308
|
+
);
|
|
309
|
+
var IconTerminal = createIconBase({
|
|
310
|
+
name: "IconTerminal",
|
|
311
|
+
paths: /* @__PURE__ */ jsx4(
|
|
312
|
+
"path",
|
|
313
|
+
{
|
|
314
|
+
d: "M3 4v16h18V4H3zm2 2h14v12H5V6zm2 2.2L10.8 12 7 15.8 8.4 17.2l5.2-5.2-5.2-5.2L7 8.2zM13 17h5v-2h-5v2z",
|
|
315
|
+
fill: "currentColor",
|
|
316
|
+
fillRule: "evenodd",
|
|
317
|
+
clipRule: "evenodd"
|
|
318
|
+
}
|
|
319
|
+
)
|
|
320
|
+
});
|
|
321
|
+
var IconOldWindow = createIconBase({
|
|
322
|
+
name: "IconOldWindow",
|
|
323
|
+
paths: /* @__PURE__ */ jsx4(
|
|
324
|
+
"path",
|
|
325
|
+
{
|
|
326
|
+
d: "M3 3v18h18V3H3zm2 7v9h14v-9H5zm1-4h2v1H6V6zm3 0h2v1H9V6z",
|
|
327
|
+
fill: "currentColor",
|
|
328
|
+
fillRule: "evenodd",
|
|
329
|
+
clipRule: "evenodd"
|
|
330
|
+
}
|
|
331
|
+
)
|
|
332
|
+
});
|
|
333
|
+
var IconCommandCursor = createIconBase({
|
|
334
|
+
name: "IconCommandCursor",
|
|
335
|
+
paths: /* @__PURE__ */ jsx4(
|
|
336
|
+
"path",
|
|
337
|
+
{
|
|
338
|
+
d: "M4 3v18h16V3H4zm2 2h12v14H6V5zm1.5 3.5L11 12l-3.5 3.5L9 17l5-5-5-5-1.5 1.5zM13 17h4v-2h-4v2z",
|
|
339
|
+
fill: "currentColor",
|
|
340
|
+
fillRule: "evenodd",
|
|
341
|
+
clipRule: "evenodd"
|
|
342
|
+
}
|
|
343
|
+
)
|
|
344
|
+
});
|
|
345
|
+
var IconDataReel = createIconBase({
|
|
346
|
+
name: "IconDataReel",
|
|
347
|
+
paths: /* @__PURE__ */ jsx4(
|
|
348
|
+
"path",
|
|
349
|
+
{
|
|
350
|
+
d: "M3 5v14h18V5H3zm2 2h14v10H5V7zm3 1a3 3 0 1 0 0 6 3 3 0 0 0 0-6zm8 0a3 3 0 1 0 0 6 3 3 0 0 0 0-6zM10 11h4v1.5h-4V11z",
|
|
351
|
+
fill: "currentColor",
|
|
352
|
+
fillRule: "evenodd",
|
|
353
|
+
clipRule: "evenodd"
|
|
354
|
+
}
|
|
355
|
+
)
|
|
356
|
+
});
|
|
357
|
+
var IconCodePreview = createIconBase({
|
|
358
|
+
name: "IconCodePreview",
|
|
359
|
+
paths: /* @__PURE__ */ jsx4(
|
|
360
|
+
"path",
|
|
361
|
+
{
|
|
362
|
+
d: "M3 3v15h18V3H3zm2 2h14v11H5V5zm3.5 2L5 10.5 8.5 14l1.4-1.4-2.1-2.1 2.1-2.1L8.5 7zm7 0-1.4 1.4 2.1 2.1-2.1 2.1 1.4 1.4 3.5-3.5L15.5 7zM9 20h6v2H9v-2z",
|
|
363
|
+
fill: "currentColor",
|
|
364
|
+
fillRule: "evenodd",
|
|
365
|
+
clipRule: "evenodd"
|
|
366
|
+
}
|
|
367
|
+
)
|
|
368
|
+
});
|
|
369
|
+
var IconInsightBoard = createIconBase({
|
|
370
|
+
name: "IconInsightBoard",
|
|
371
|
+
paths: /* @__PURE__ */ jsx4(
|
|
372
|
+
"path",
|
|
373
|
+
{
|
|
374
|
+
d: "M3 3v18h18V3H3zm2 2h14v3H5V5zm0 5h6v9H5v-9zm8 0h6v4h-6v-4zm0 6h6v3h-6v-3zM6 6h2v1H6V6zm3 0h2v1H9V6z",
|
|
375
|
+
fill: "currentColor",
|
|
376
|
+
fillRule: "evenodd",
|
|
377
|
+
clipRule: "evenodd"
|
|
378
|
+
}
|
|
379
|
+
)
|
|
380
|
+
});
|
|
381
|
+
var IconEventStream = createIconBase({
|
|
382
|
+
name: "IconEventStream",
|
|
383
|
+
paths: /* @__PURE__ */ jsxs2(Fragment, { children: [
|
|
384
|
+
/* @__PURE__ */ jsx4("path", { d: "M5 4h2v16H5V4z", fill: "currentColor", opacity: "0.45" }),
|
|
385
|
+
fill("M6 3a3 3 0 1 0 0 6 3 3 0 0 0 0-6zm0 8a3 3 0 1 0 0 6 3 3 0 0 0 0-6zm5-6h10v2H11V5zm0 8h7v2h-7v-2zm0 5h10v2H11v-2z")
|
|
386
|
+
] })
|
|
387
|
+
});
|
|
388
|
+
var IconFeatureGate = createIconBase({
|
|
389
|
+
name: "IconFeatureGate",
|
|
390
|
+
paths: /* @__PURE__ */ jsx4(
|
|
391
|
+
"path",
|
|
392
|
+
{
|
|
393
|
+
d: "M4 3h2v18H4V3zm3 2h12l-3 4 3 4H7V5zm4 1-2.2 4H12l-1 4 4.2-5H12l1-3h-2z",
|
|
394
|
+
fill: "currentColor",
|
|
395
|
+
fillRule: "evenodd",
|
|
396
|
+
clipRule: "evenodd"
|
|
397
|
+
}
|
|
398
|
+
)
|
|
399
|
+
});
|
|
400
|
+
var IconReplayFrame = createIconBase({
|
|
401
|
+
name: "IconReplayFrame",
|
|
402
|
+
paths: /* @__PURE__ */ jsx4(
|
|
403
|
+
"path",
|
|
404
|
+
{
|
|
405
|
+
d: "M3 3v18h18V3H3zm2 2h14v11H5V5zm5 2v7l6-3.5L10 7zm-5 11h9v1H5v-1zm11 0h3v1h-3v-1z",
|
|
406
|
+
fill: "currentColor",
|
|
407
|
+
fillRule: "evenodd",
|
|
408
|
+
clipRule: "evenodd"
|
|
409
|
+
}
|
|
410
|
+
)
|
|
411
|
+
});
|
|
412
|
+
var IconQueryStack = createIconBase({
|
|
413
|
+
name: "IconQueryStack",
|
|
414
|
+
paths: fill(
|
|
415
|
+
"M4 5c0-1.66 3.58-3 8-3s8 1.34 8 3-3.58 3-8 3-8-1.34-8-3zm0 3v3c0 1.66 3.58 3 8 3 .7 0 1.38-.04 2-.12V11.8c-.64.13-1.31.2-2 .2-4.42 0-8-1.34-8-3zm0 6v3c0 1.66 3.58 3 8 3 .7 0 1.38-.04 2-.12v-2.08c-.64.13-1.31.2-2 .2-4.42 0-8-1.34-8-3zm12-1 5 4-5 4v-3h-4v-2h4v-3z"
|
|
416
|
+
)
|
|
417
|
+
});
|
|
418
|
+
var IconExperimentSplit = createIconBase({
|
|
419
|
+
name: "IconExperimentSplit",
|
|
420
|
+
paths: fill(
|
|
421
|
+
"M5 3a3 3 0 1 0 0 6 3 3 0 0 0 0-6zm14 0a3 3 0 1 0 0 6 3 3 0 0 0 0-6zM5 15a3 3 0 1 0 0 6 3 3 0 0 0 0-6zm1-6h2c0 2.2 1.8 4 4 4h2.17A3 3 0 0 1 19 11v2a3 3 0 0 1-4.83-2H12a6 6 0 0 1-6-6v4zm0 4a6 6 0 0 0 6-6h2a8 8 0 0 1-8 8v-2z"
|
|
422
|
+
)
|
|
423
|
+
});
|
|
424
|
+
var IconSurveyCard = createIconBase({
|
|
425
|
+
name: "IconSurveyCard",
|
|
426
|
+
paths: /* @__PURE__ */ jsx4(
|
|
427
|
+
"path",
|
|
428
|
+
{
|
|
429
|
+
d: "M3 3v18h18V3H3zm2 2h14v14H5V5zm2 2h7v2H7V7zm0 4h4v2H7v-2zm7-.4-2.5 2.5-1-1-1.4 1.4 2.4 2.4 3.9-3.9-1.4-1.4zM7 16h10v1H7v-1z",
|
|
430
|
+
fill: "currentColor",
|
|
431
|
+
fillRule: "evenodd",
|
|
432
|
+
clipRule: "evenodd"
|
|
433
|
+
}
|
|
434
|
+
)
|
|
435
|
+
});
|
|
436
|
+
var OLD_UI_ICONS = {
|
|
437
|
+
oldWindow: IconOldWindow,
|
|
438
|
+
commandCursor: IconCommandCursor,
|
|
439
|
+
dataReel: IconDataReel,
|
|
440
|
+
codePreview: IconCodePreview,
|
|
441
|
+
insightBoard: IconInsightBoard,
|
|
442
|
+
eventStream: IconEventStream,
|
|
443
|
+
featureGate: IconFeatureGate,
|
|
444
|
+
replayFrame: IconReplayFrame,
|
|
445
|
+
queryStack: IconQueryStack,
|
|
446
|
+
experimentSplit: IconExperimentSplit,
|
|
447
|
+
surveyCard: IconSurveyCard
|
|
448
|
+
};
|
|
449
|
+
var IconActivity = createIconBasePath(
|
|
450
|
+
"M22 12h-4l-3 9L9 3l-3 9H2v2h6.76l2.24-6.72L15 15l2.24-6.72L19 14h3v-2z"
|
|
451
|
+
);
|
|
452
|
+
var IconFlask = createIconBasePath(
|
|
453
|
+
"M19.8 18.4L14 10.67V6.5l1.35-1.35c.39-.39.39-1.02 0-1.41L14.65 2.7a.9959.9959 0 0 0-1.41 0L9.35 6.54c-.39.39-.39 1.02 0 1.41L10.7 9.3v4.17L4.2 18.4C3.53 19.07 4.04 20.25 5 20.25h14c.96 0 1.47-1.18.8-1.85zM6.91 18.25l5.09-5.09 5.09 5.09H6.91z"
|
|
454
|
+
);
|
|
455
|
+
var IconSpinner = forwardRef3(function IconSpinner2(_a, ref) {
|
|
456
|
+
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
457
|
+
return /* @__PURE__ */ jsx4(IconSync, __spreadValues({ ref, className: cn("ph-icon-spin", className) }, props));
|
|
458
|
+
});
|
|
459
|
+
IconSpinner.displayName = "IconSpinner";
|
|
460
|
+
var CANONICAL_ICONS = {
|
|
461
|
+
activity: IconActivity,
|
|
462
|
+
areaChart: IconAreaChart,
|
|
463
|
+
arrowDown: IconArrowDown,
|
|
464
|
+
arrowUp: IconArrowUp,
|
|
465
|
+
bell: IconBell,
|
|
466
|
+
bellOff: IconBellOff,
|
|
467
|
+
bolt: IconBolt,
|
|
468
|
+
box: IconBox,
|
|
469
|
+
cancel: IconCancel,
|
|
470
|
+
check: IconCheck,
|
|
471
|
+
checkCircle: IconCheckCircle,
|
|
472
|
+
chevronDown: IconChevronDown,
|
|
473
|
+
chevronLeft: IconChevronLeft,
|
|
474
|
+
chevronRight: IconChevronRight,
|
|
475
|
+
clipboardEdit: IconClipboardEdit,
|
|
476
|
+
close: IconClose,
|
|
477
|
+
codePreview: IconCodePreview,
|
|
478
|
+
cohort: IconCohort,
|
|
479
|
+
commandCursor: IconCommandCursor,
|
|
480
|
+
copy: IconCopy,
|
|
481
|
+
cumulativeChart: IconCumulativeChart,
|
|
482
|
+
dataReel: IconDataReel,
|
|
483
|
+
database: IconDatabase,
|
|
484
|
+
download: IconDownload,
|
|
485
|
+
edit: IconEdit,
|
|
486
|
+
errorOutline: IconErrorOutline,
|
|
487
|
+
eventStream: IconEventStream,
|
|
488
|
+
exclamation: IconExclamation,
|
|
489
|
+
experimentSplit: IconExperimentSplit,
|
|
490
|
+
featureGate: IconFeatureGate,
|
|
491
|
+
flag: IconFlag,
|
|
492
|
+
flare: IconFlare,
|
|
493
|
+
flask: IconFlask,
|
|
494
|
+
gift: IconGift,
|
|
495
|
+
gridView: IconGridView,
|
|
496
|
+
handClick: IconHandClick,
|
|
497
|
+
home: IconHome,
|
|
498
|
+
info: IconInfo,
|
|
499
|
+
insightBoard: IconInsightBoard,
|
|
500
|
+
layers: IconLayers,
|
|
501
|
+
listView: IconListView,
|
|
502
|
+
logout: IconLogout,
|
|
503
|
+
mail: IconMail,
|
|
504
|
+
moon: IconMoon,
|
|
505
|
+
oldWindow: IconOldWindow,
|
|
506
|
+
panelRight: IconPanelRight,
|
|
507
|
+
person: IconPerson,
|
|
508
|
+
playCircle: IconPlayCircle,
|
|
509
|
+
plus: IconPlus,
|
|
510
|
+
premium: IconPremium,
|
|
511
|
+
queryEditor: IconQueryEditor,
|
|
512
|
+
queryStack: IconQueryStack,
|
|
513
|
+
radar: IconRadar,
|
|
514
|
+
recording: IconRecording,
|
|
515
|
+
replayFrame: IconReplayFrame,
|
|
516
|
+
robot: IconRobot,
|
|
517
|
+
rocket: IconRocket,
|
|
518
|
+
save: IconSave,
|
|
519
|
+
search: IconSearch,
|
|
520
|
+
selectEvents: IconSelectEvents,
|
|
521
|
+
shoppingCart: IconShoppingCart,
|
|
522
|
+
spinner: IconSpinner,
|
|
523
|
+
star: IconStar,
|
|
524
|
+
subArrowRight: IconSubArrowRight,
|
|
525
|
+
sun: IconSun,
|
|
526
|
+
surveyCard: IconSurveyCard,
|
|
527
|
+
surveys: IconSurveys,
|
|
528
|
+
sync: IconSync,
|
|
529
|
+
tableChart: IconTableChart,
|
|
530
|
+
terminal: IconTerminal,
|
|
531
|
+
toggle: IconToggle,
|
|
532
|
+
trash: IconTrash,
|
|
533
|
+
tuning: IconTuning,
|
|
534
|
+
upload: IconUpload,
|
|
535
|
+
volume: IconVolume,
|
|
536
|
+
volumeOff: IconVolumeOff
|
|
537
|
+
};
|
|
538
|
+
var PH_ICON_ALIASES = {
|
|
539
|
+
clipboard: IconClipboardEdit,
|
|
540
|
+
grid: IconGridView,
|
|
541
|
+
list: IconListView,
|
|
542
|
+
play: IconPlayCircle,
|
|
543
|
+
settings: IconTuning,
|
|
544
|
+
trendingUp: IconArrowUp,
|
|
545
|
+
warning: IconExclamation,
|
|
546
|
+
xCircle: IconCancel
|
|
547
|
+
};
|
|
548
|
+
var PH_ICONS = __spreadValues(__spreadValues({}, CANONICAL_ICONS), PH_ICON_ALIASES);
|
|
549
|
+
for (const [name, Icon] of Object.entries(CANONICAL_ICONS)) {
|
|
550
|
+
const namedIcon = Icon;
|
|
551
|
+
if (!namedIcon.displayName || namedIcon.displayName === "IconGlyph") {
|
|
552
|
+
namedIcon.displayName = `Icon${name[0].toUpperCase()}${name.slice(1)}`;
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
var IconByName = forwardRef3(function IconByName2(_a, ref) {
|
|
556
|
+
var _b = _a, { name } = _b, props = __objRest(_b, ["name"]);
|
|
557
|
+
const Icon = PH_ICONS[name];
|
|
558
|
+
return /* @__PURE__ */ jsx4(Icon, __spreadValues({ ref }, props));
|
|
559
|
+
});
|
|
560
|
+
IconByName.displayName = "IconByName";
|
|
561
|
+
|
|
562
|
+
// src/components/ui/DropdownMenu.tsx
|
|
563
|
+
import * as DropdownPrimitive from "@radix-ui/react-dropdown-menu";
|
|
564
|
+
import { jsx as jsx5, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
565
|
+
var sizeClass = {
|
|
566
|
+
xs: "ph-btn-xs",
|
|
567
|
+
sm: "ph-btn-sm",
|
|
568
|
+
md: "",
|
|
569
|
+
lg: "ph-btn-lg"
|
|
570
|
+
};
|
|
571
|
+
var variantClass = {
|
|
572
|
+
primary: "ph-btn-primary",
|
|
573
|
+
secondary: "ph-btn-secondary",
|
|
574
|
+
accent: "ph-btn-accent"
|
|
575
|
+
};
|
|
576
|
+
function DropdownContent({
|
|
577
|
+
children,
|
|
578
|
+
align = "start",
|
|
579
|
+
side = "bottom",
|
|
580
|
+
sideOffset = 7,
|
|
581
|
+
alignOffset = 0,
|
|
582
|
+
collisionPadding = 8,
|
|
583
|
+
avoidCollisions = true,
|
|
584
|
+
panelClassName
|
|
585
|
+
}) {
|
|
586
|
+
return /* @__PURE__ */ jsx5(DropdownPrimitive.Portal, { children: /* @__PURE__ */ jsxs3(
|
|
587
|
+
DropdownPrimitive.Content,
|
|
588
|
+
{
|
|
589
|
+
className: cn("ph-dropdown-panel", panelClassName),
|
|
590
|
+
align,
|
|
591
|
+
side,
|
|
592
|
+
sideOffset,
|
|
593
|
+
alignOffset,
|
|
594
|
+
collisionPadding,
|
|
595
|
+
avoidCollisions,
|
|
596
|
+
sticky: "partial",
|
|
597
|
+
children: [
|
|
598
|
+
children,
|
|
599
|
+
/* @__PURE__ */ jsx5(DropdownPrimitive.Arrow, { className: "ph-dropdown-arrow", width: 12, height: 6 })
|
|
600
|
+
]
|
|
601
|
+
}
|
|
602
|
+
) });
|
|
603
|
+
}
|
|
604
|
+
function DropdownMenu(_a) {
|
|
605
|
+
var _b = _a, {
|
|
606
|
+
trigger,
|
|
607
|
+
children,
|
|
608
|
+
align,
|
|
609
|
+
side,
|
|
610
|
+
sideOffset,
|
|
611
|
+
alignOffset,
|
|
612
|
+
collisionPadding,
|
|
613
|
+
avoidCollisions,
|
|
614
|
+
className,
|
|
615
|
+
panelClassName,
|
|
616
|
+
"aria-label": ariaLabel,
|
|
617
|
+
open,
|
|
618
|
+
defaultOpen,
|
|
619
|
+
onOpenChange,
|
|
620
|
+
modal = false,
|
|
621
|
+
disabled
|
|
622
|
+
} = _b, props = __objRest(_b, [
|
|
623
|
+
"trigger",
|
|
624
|
+
"children",
|
|
625
|
+
"align",
|
|
626
|
+
"side",
|
|
627
|
+
"sideOffset",
|
|
628
|
+
"alignOffset",
|
|
629
|
+
"collisionPadding",
|
|
630
|
+
"avoidCollisions",
|
|
631
|
+
"className",
|
|
632
|
+
"panelClassName",
|
|
633
|
+
"aria-label",
|
|
634
|
+
"open",
|
|
635
|
+
"defaultOpen",
|
|
636
|
+
"onOpenChange",
|
|
637
|
+
"modal",
|
|
638
|
+
"disabled"
|
|
639
|
+
]);
|
|
640
|
+
return /* @__PURE__ */ jsx5("div", __spreadProps(__spreadValues({ className: cn("ph-dropdown", className) }, props), { children: /* @__PURE__ */ jsxs3(
|
|
641
|
+
DropdownPrimitive.Root,
|
|
642
|
+
{
|
|
643
|
+
open,
|
|
644
|
+
defaultOpen,
|
|
645
|
+
onOpenChange,
|
|
646
|
+
modal,
|
|
647
|
+
children: [
|
|
648
|
+
/* @__PURE__ */ jsx5(DropdownPrimitive.Trigger, { asChild: true, disabled, children: /* @__PURE__ */ jsx5("button", { type: "button", className: "ph-dropdown-trigger", "aria-label": ariaLabel, children: trigger }) }),
|
|
649
|
+
/* @__PURE__ */ jsx5(
|
|
650
|
+
DropdownContent,
|
|
651
|
+
{
|
|
652
|
+
align,
|
|
653
|
+
side,
|
|
654
|
+
sideOffset,
|
|
655
|
+
alignOffset,
|
|
656
|
+
collisionPadding,
|
|
657
|
+
avoidCollisions,
|
|
658
|
+
panelClassName,
|
|
659
|
+
children
|
|
660
|
+
}
|
|
661
|
+
)
|
|
662
|
+
]
|
|
663
|
+
}
|
|
664
|
+
) }));
|
|
665
|
+
}
|
|
666
|
+
function DropdownButton(_a) {
|
|
667
|
+
var _b = _a, {
|
|
668
|
+
label,
|
|
669
|
+
variant = "secondary",
|
|
670
|
+
outline = false,
|
|
671
|
+
size = "md",
|
|
672
|
+
split = false,
|
|
673
|
+
icon,
|
|
674
|
+
sideIcon,
|
|
675
|
+
children,
|
|
676
|
+
align,
|
|
677
|
+
side,
|
|
678
|
+
sideOffset,
|
|
679
|
+
alignOffset,
|
|
680
|
+
collisionPadding,
|
|
681
|
+
avoidCollisions,
|
|
682
|
+
className,
|
|
683
|
+
panelClassName,
|
|
684
|
+
"aria-label": ariaLabel,
|
|
685
|
+
open,
|
|
686
|
+
defaultOpen,
|
|
687
|
+
onOpenChange,
|
|
688
|
+
modal = false,
|
|
689
|
+
disabled
|
|
690
|
+
} = _b, props = __objRest(_b, [
|
|
691
|
+
"label",
|
|
692
|
+
"variant",
|
|
693
|
+
"outline",
|
|
694
|
+
"size",
|
|
695
|
+
"split",
|
|
696
|
+
"icon",
|
|
697
|
+
"sideIcon",
|
|
698
|
+
"children",
|
|
699
|
+
"align",
|
|
700
|
+
"side",
|
|
701
|
+
"sideOffset",
|
|
702
|
+
"alignOffset",
|
|
703
|
+
"collisionPadding",
|
|
704
|
+
"avoidCollisions",
|
|
705
|
+
"className",
|
|
706
|
+
"panelClassName",
|
|
707
|
+
"aria-label",
|
|
708
|
+
"open",
|
|
709
|
+
"defaultOpen",
|
|
710
|
+
"onOpenChange",
|
|
711
|
+
"modal",
|
|
712
|
+
"disabled"
|
|
713
|
+
]);
|
|
714
|
+
const trailing = sideIcon != null ? sideIcon : /* @__PURE__ */ jsx5(IconChevronDown, { className: "h-4 w-4", "aria-hidden": true });
|
|
715
|
+
return /* @__PURE__ */ jsx5("div", __spreadProps(__spreadValues({ className: cn("ph-dropdown", className) }, props), { children: /* @__PURE__ */ jsxs3(
|
|
716
|
+
DropdownPrimitive.Root,
|
|
717
|
+
{
|
|
718
|
+
open,
|
|
719
|
+
defaultOpen,
|
|
720
|
+
onOpenChange,
|
|
721
|
+
modal,
|
|
722
|
+
children: [
|
|
723
|
+
/* @__PURE__ */ jsx5(DropdownPrimitive.Trigger, { asChild: true, disabled, children: /* @__PURE__ */ jsx5(
|
|
724
|
+
"button",
|
|
725
|
+
{
|
|
726
|
+
type: "button",
|
|
727
|
+
disabled,
|
|
728
|
+
className: cn(
|
|
729
|
+
"ph-btn ph-btn-raised ph-dropdown-button",
|
|
730
|
+
variantClass[variant],
|
|
731
|
+
outline && "ph-btn-outline",
|
|
732
|
+
sizeClass[size],
|
|
733
|
+
split && "ph-btn-split"
|
|
734
|
+
),
|
|
735
|
+
"aria-label": ariaLabel,
|
|
736
|
+
children: /* @__PURE__ */ jsx5(ButtonChrome, { label, icon, sideIcon: trailing, split })
|
|
737
|
+
}
|
|
738
|
+
) }),
|
|
739
|
+
/* @__PURE__ */ jsx5(
|
|
740
|
+
DropdownContent,
|
|
741
|
+
{
|
|
742
|
+
align,
|
|
743
|
+
side,
|
|
744
|
+
sideOffset,
|
|
745
|
+
alignOffset,
|
|
746
|
+
collisionPadding,
|
|
747
|
+
avoidCollisions,
|
|
748
|
+
panelClassName,
|
|
749
|
+
children
|
|
750
|
+
}
|
|
751
|
+
)
|
|
752
|
+
]
|
|
753
|
+
}
|
|
754
|
+
) }));
|
|
755
|
+
}
|
|
756
|
+
function DropdownItem(_a) {
|
|
757
|
+
var _b = _a, { className, children, disabled } = _b, props = __objRest(_b, ["className", "children", "disabled"]);
|
|
758
|
+
return /* @__PURE__ */ jsx5(DropdownPrimitive.Item, { asChild: true, disabled, children: /* @__PURE__ */ jsx5(
|
|
759
|
+
"button",
|
|
760
|
+
__spreadProps(__spreadValues({
|
|
761
|
+
type: "button",
|
|
762
|
+
disabled,
|
|
763
|
+
className: cn("ph-dropdown-item w-full text-left", className)
|
|
764
|
+
}, props), {
|
|
765
|
+
children
|
|
766
|
+
})
|
|
767
|
+
) });
|
|
768
|
+
}
|
|
769
|
+
function DropdownRadioGroup(props) {
|
|
770
|
+
return /* @__PURE__ */ jsx5(DropdownPrimitive.RadioGroup, __spreadValues({}, props));
|
|
771
|
+
}
|
|
772
|
+
function DropdownRadioItem(_a) {
|
|
773
|
+
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
774
|
+
return /* @__PURE__ */ jsxs3(DropdownPrimitive.RadioItem, __spreadProps(__spreadValues({ className: cn("ph-dropdown-item ph-dropdown-radio-item", className) }, props), { children: [
|
|
775
|
+
/* @__PURE__ */ jsx5("span", { className: "ph-dropdown-item-indicator", "aria-hidden": true, children: /* @__PURE__ */ jsx5(DropdownPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx5(IconCheck, { className: "h-3.5 w-3.5" }) }) }),
|
|
776
|
+
/* @__PURE__ */ jsx5("span", { children })
|
|
777
|
+
] }));
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
// src/components/ui/Tooltip.tsx
|
|
781
|
+
import {
|
|
782
|
+
cloneElement,
|
|
783
|
+
createContext,
|
|
784
|
+
useContext,
|
|
785
|
+
useEffect,
|
|
786
|
+
useId,
|
|
787
|
+
useRef,
|
|
788
|
+
useState
|
|
789
|
+
} from "react";
|
|
790
|
+
import { createPortal } from "react-dom";
|
|
791
|
+
import { Fragment as Fragment2, jsx as jsx6, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
792
|
+
var TooltipDelayContext = createContext(0);
|
|
793
|
+
function TooltipProvider({
|
|
794
|
+
children,
|
|
795
|
+
delayDuration = 0
|
|
796
|
+
}) {
|
|
797
|
+
return /* @__PURE__ */ jsx6(TooltipDelayContext.Provider, { value: delayDuration, children });
|
|
798
|
+
}
|
|
799
|
+
function tooltipPosition(trigger, side, align, offset) {
|
|
800
|
+
const horizontal = align === "start" ? trigger.left : align === "end" ? trigger.right : trigger.left + trigger.width / 2;
|
|
801
|
+
const vertical = align === "start" ? trigger.top : align === "end" ? trigger.bottom : trigger.top + trigger.height / 2;
|
|
802
|
+
if (side === "top")
|
|
803
|
+
return {
|
|
804
|
+
left: horizontal,
|
|
805
|
+
top: trigger.top - offset,
|
|
806
|
+
transform: "translate(-50%, -100%)"
|
|
807
|
+
};
|
|
808
|
+
if (side === "bottom")
|
|
809
|
+
return {
|
|
810
|
+
left: horizontal,
|
|
811
|
+
top: trigger.bottom + offset,
|
|
812
|
+
transform: "translate(-50%, 0)"
|
|
813
|
+
};
|
|
814
|
+
if (side === "left")
|
|
815
|
+
return {
|
|
816
|
+
left: trigger.left - offset,
|
|
817
|
+
top: vertical,
|
|
818
|
+
transform: "translate(-100%, -50%)"
|
|
819
|
+
};
|
|
820
|
+
return {
|
|
821
|
+
left: trigger.right + offset,
|
|
822
|
+
top: vertical,
|
|
823
|
+
transform: "translate(0, -50%)"
|
|
824
|
+
};
|
|
825
|
+
}
|
|
826
|
+
function Tooltip({
|
|
827
|
+
content,
|
|
828
|
+
children,
|
|
829
|
+
side = "top",
|
|
830
|
+
align = "center",
|
|
831
|
+
sideOffset = 7,
|
|
832
|
+
className,
|
|
833
|
+
open,
|
|
834
|
+
defaultOpen = false,
|
|
835
|
+
onOpenChange,
|
|
836
|
+
delayDuration
|
|
837
|
+
}) {
|
|
838
|
+
const providerDelay = useContext(TooltipDelayContext);
|
|
839
|
+
const generatedId = useId().replace(/:/g, "");
|
|
840
|
+
const triggerRef = useRef(null);
|
|
841
|
+
const timerRef = useRef(null);
|
|
842
|
+
const [internalOpen, setInternalOpen] = useState(defaultOpen);
|
|
843
|
+
const [position, setPosition] = useState(null);
|
|
844
|
+
const isOpen = open != null ? open : internalOpen;
|
|
845
|
+
const triggerId = children.props.id;
|
|
846
|
+
const tooltipId = triggerId ? `${triggerId}-tooltip` : `ph-tooltip-${generatedId}`;
|
|
847
|
+
function setOpen(next) {
|
|
848
|
+
if (open === void 0) setInternalOpen(next);
|
|
849
|
+
onOpenChange == null ? void 0 : onOpenChange(next);
|
|
850
|
+
}
|
|
851
|
+
function clearTimer() {
|
|
852
|
+
if (timerRef.current) clearTimeout(timerRef.current);
|
|
853
|
+
timerRef.current = null;
|
|
854
|
+
}
|
|
855
|
+
function updatePosition() {
|
|
856
|
+
if (!triggerRef.current) return;
|
|
857
|
+
setPosition(
|
|
858
|
+
tooltipPosition(
|
|
859
|
+
triggerRef.current.getBoundingClientRect(),
|
|
860
|
+
side,
|
|
861
|
+
align,
|
|
862
|
+
sideOffset
|
|
863
|
+
)
|
|
864
|
+
);
|
|
865
|
+
}
|
|
866
|
+
function show(immediate) {
|
|
867
|
+
clearTimer();
|
|
868
|
+
updatePosition();
|
|
869
|
+
const delay = immediate ? 0 : delayDuration != null ? delayDuration : providerDelay;
|
|
870
|
+
if (!delay) setOpen(true);
|
|
871
|
+
else timerRef.current = setTimeout(() => setOpen(true), delay);
|
|
872
|
+
}
|
|
873
|
+
function hide() {
|
|
874
|
+
clearTimer();
|
|
875
|
+
setOpen(false);
|
|
876
|
+
}
|
|
877
|
+
useEffect(() => {
|
|
878
|
+
if (!isOpen) return;
|
|
879
|
+
const reposition = () => updatePosition();
|
|
880
|
+
window.addEventListener("resize", reposition);
|
|
881
|
+
window.addEventListener("scroll", reposition, true);
|
|
882
|
+
return () => {
|
|
883
|
+
window.removeEventListener("resize", reposition);
|
|
884
|
+
window.removeEventListener("scroll", reposition, true);
|
|
885
|
+
};
|
|
886
|
+
});
|
|
887
|
+
useEffect(() => () => clearTimer(), []);
|
|
888
|
+
const describedBy = [children.props["aria-describedby"], tooltipId].filter(Boolean).join(" ");
|
|
889
|
+
const trigger = cloneElement(children, { "aria-describedby": describedBy });
|
|
890
|
+
return /* @__PURE__ */ jsxs4(Fragment2, { children: [
|
|
891
|
+
/* @__PURE__ */ jsx6(
|
|
892
|
+
"span",
|
|
893
|
+
{
|
|
894
|
+
ref: triggerRef,
|
|
895
|
+
className: "inline-flex",
|
|
896
|
+
onMouseEnter: () => show(false),
|
|
897
|
+
onMouseLeave: hide,
|
|
898
|
+
onFocusCapture: () => show(true),
|
|
899
|
+
onBlurCapture: hide,
|
|
900
|
+
onKeyDown: (event) => {
|
|
901
|
+
if (event.key === "Escape") hide();
|
|
902
|
+
},
|
|
903
|
+
children: trigger
|
|
904
|
+
}
|
|
905
|
+
),
|
|
906
|
+
isOpen && position && typeof document !== "undefined" ? createPortal(
|
|
907
|
+
/* @__PURE__ */ jsx6(
|
|
908
|
+
"span",
|
|
909
|
+
{
|
|
910
|
+
style: __spreadValues({ position: "fixed" }, position),
|
|
911
|
+
className: "pointer-events-none z-[200]",
|
|
912
|
+
children: /* @__PURE__ */ jsx6(
|
|
913
|
+
"span",
|
|
914
|
+
{
|
|
915
|
+
id: tooltipId,
|
|
916
|
+
role: "tooltip",
|
|
917
|
+
"data-side": side,
|
|
918
|
+
className: cn("ph-tooltip-content", className),
|
|
919
|
+
children: content
|
|
920
|
+
}
|
|
921
|
+
)
|
|
922
|
+
}
|
|
923
|
+
),
|
|
924
|
+
document.body
|
|
925
|
+
) : null
|
|
926
|
+
] });
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
export {
|
|
930
|
+
ButtonChrome,
|
|
931
|
+
cn,
|
|
932
|
+
IconBase,
|
|
933
|
+
createIconBase,
|
|
934
|
+
createIconBasePath,
|
|
935
|
+
IconAreaChart,
|
|
936
|
+
IconCumulativeChart,
|
|
937
|
+
IconTableChart,
|
|
938
|
+
IconHandClick,
|
|
939
|
+
IconSurveys,
|
|
940
|
+
IconCohort,
|
|
941
|
+
IconRecording,
|
|
942
|
+
IconFlare,
|
|
943
|
+
IconSelectEvents,
|
|
944
|
+
IconClipboardEdit,
|
|
945
|
+
IconQueryEditor,
|
|
946
|
+
IconTuning,
|
|
947
|
+
IconSync,
|
|
948
|
+
IconPlayCircle,
|
|
949
|
+
IconGridView,
|
|
950
|
+
IconListView,
|
|
951
|
+
IconPremium,
|
|
952
|
+
IconGift,
|
|
953
|
+
IconRobot,
|
|
954
|
+
IconExclamation,
|
|
955
|
+
IconErrorOutline,
|
|
956
|
+
IconInfo,
|
|
957
|
+
IconCancel,
|
|
958
|
+
IconCheckCircle,
|
|
959
|
+
IconArrowUp,
|
|
960
|
+
IconArrowDown,
|
|
961
|
+
IconChevronLeft,
|
|
962
|
+
IconChevronRight,
|
|
963
|
+
IconChevronDown,
|
|
964
|
+
IconSubArrowRight,
|
|
965
|
+
IconSearch,
|
|
966
|
+
IconBell,
|
|
967
|
+
IconBellOff,
|
|
968
|
+
IconPerson,
|
|
969
|
+
IconHome,
|
|
970
|
+
IconPanelRight,
|
|
971
|
+
IconPlus,
|
|
972
|
+
IconCheck,
|
|
973
|
+
IconClose,
|
|
974
|
+
IconTrash,
|
|
975
|
+
IconDownload,
|
|
976
|
+
IconUpload,
|
|
977
|
+
IconSave,
|
|
978
|
+
IconCopy,
|
|
979
|
+
IconEdit,
|
|
980
|
+
IconLogout,
|
|
981
|
+
IconStar,
|
|
982
|
+
IconMail,
|
|
983
|
+
IconShoppingCart,
|
|
984
|
+
IconMoon,
|
|
985
|
+
IconSun,
|
|
986
|
+
IconVolume,
|
|
987
|
+
IconVolumeOff,
|
|
988
|
+
IconFlag,
|
|
989
|
+
IconDatabase,
|
|
990
|
+
IconLayers,
|
|
991
|
+
IconBox,
|
|
992
|
+
IconBolt,
|
|
993
|
+
IconRadar,
|
|
994
|
+
IconToggle,
|
|
995
|
+
IconRocket,
|
|
996
|
+
IconTerminal,
|
|
997
|
+
IconOldWindow,
|
|
998
|
+
IconCommandCursor,
|
|
999
|
+
IconDataReel,
|
|
1000
|
+
IconCodePreview,
|
|
1001
|
+
IconInsightBoard,
|
|
1002
|
+
IconEventStream,
|
|
1003
|
+
IconFeatureGate,
|
|
1004
|
+
IconReplayFrame,
|
|
1005
|
+
IconQueryStack,
|
|
1006
|
+
IconExperimentSplit,
|
|
1007
|
+
IconSurveyCard,
|
|
1008
|
+
OLD_UI_ICONS,
|
|
1009
|
+
IconActivity,
|
|
1010
|
+
IconFlask,
|
|
1011
|
+
IconSpinner,
|
|
1012
|
+
CANONICAL_ICONS,
|
|
1013
|
+
PH_ICON_ALIASES,
|
|
1014
|
+
PH_ICONS,
|
|
1015
|
+
IconByName,
|
|
1016
|
+
DropdownMenu,
|
|
1017
|
+
DropdownButton,
|
|
1018
|
+
DropdownItem,
|
|
1019
|
+
DropdownRadioGroup,
|
|
1020
|
+
DropdownRadioItem,
|
|
1021
|
+
TooltipProvider,
|
|
1022
|
+
Tooltip
|
|
1023
|
+
};
|