@xenide-io/the-old-ui-theme 0.2.6 → 0.2.9
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-SHF57J7U.mjs +2910 -0
- package/dist/index-CmS6hcUk.d.mts +753 -0
- package/dist/index-CmS6hcUk.d.ts +753 -0
- package/dist/index.d.mts +5 -755
- package/dist/index.d.ts +5 -755
- package/dist/index.js +43 -23
- package/dist/index.mjs +252 -2846
- package/dist/ui.d.mts +3 -0
- package/dist/ui.d.ts +3 -0
- package/dist/ui.js +2946 -0
- package/dist/ui.mjs +139 -0
- package/package.json +11 -3
- package/src/components/charts/index.ts +8 -0
- package/src/components/charts/ph-insight-charts.tsx +162 -0
- package/src/components/dashboard/DashboardFiltersBar.tsx +19 -0
- package/src/components/dashboard/DashboardGrid.tsx +23 -0
- package/src/components/dashboard/DashboardInsightPlaceholder.tsx +37 -0
- package/src/components/dashboard/DashboardKpiCard.tsx +25 -0
- package/src/components/dashboard/DashboardToolbar.tsx +23 -0
- package/src/components/dashboard/DashboardWell.tsx +10 -0
- package/src/components/dashboard/InsightMiniCard.tsx +26 -0
- package/src/components/dashboard/InsightShell.tsx +37 -0
- package/src/components/dashboard/InsightShellHeader.tsx +22 -0
- package/src/components/dashboard/MiniTrendBars.tsx +51 -0
- package/src/components/dashboard/index.ts +31 -0
- package/src/components/dashboard/types.ts +9 -0
- package/src/components/icons/IconBase.tsx +39 -0
- package/src/components/icons/createIconBase.tsx +27 -0
- package/src/components/icons/icons.tsx +367 -0
- package/src/components/icons/index.ts +3 -0
- package/src/components/sections/AccordionShowcase.tsx +45 -0
- package/src/components/sections/AlertShowcase.tsx +39 -0
- package/src/components/sections/AvatarShowcase.tsx +80 -0
- package/src/components/sections/BadgeShowcase.tsx +65 -0
- package/src/components/sections/ButtonShowcase.tsx +312 -0
- package/src/components/sections/CalendarShowcase.tsx +35 -0
- package/src/components/sections/CardShowcase.tsx +143 -0
- package/src/components/sections/ChartShowcase.tsx +190 -0
- package/src/components/sections/CodeMockupShowcase.tsx +56 -0
- package/src/components/sections/ColorPalette.tsx +117 -0
- package/src/components/sections/CommandPaletteShowcase.tsx +48 -0
- package/src/components/sections/CountdownShowcase.tsx +43 -0
- package/src/components/sections/DashboardShowcase.tsx +191 -0
- package/src/components/sections/DiffShowcase.tsx +70 -0
- package/src/components/sections/DrawerShowcase.tsx +97 -0
- package/src/components/sections/DropdownShowcase.tsx +100 -0
- package/src/components/sections/EmptyStateShowcase.tsx +50 -0
- package/src/components/sections/FilterChipsShowcase.tsx +50 -0
- package/src/components/sections/FormShowcase.tsx +126 -0
- package/src/components/sections/HoverCardShowcase.tsx +50 -0
- package/src/components/sections/IconShowcase.tsx +247 -0
- package/src/components/sections/IndicatorShowcase.tsx +52 -0
- package/src/components/sections/KbdShowcase.tsx +31 -0
- package/src/components/sections/ModalShowcase.tsx +210 -0
- package/src/components/sections/NavigationShowcase.tsx +199 -0
- package/src/components/sections/ProgressShowcase.tsx +85 -0
- package/src/components/sections/SegmentedControlShowcase.tsx +49 -0
- package/src/components/sections/SetupThemeShowcase.tsx +262 -0
- package/src/components/sections/StackShowcase.tsx +33 -0
- package/src/components/sections/StatShowcase.tsx +129 -0
- package/src/components/sections/StepperShowcase.tsx +37 -0
- package/src/components/sections/SwapShowcase.tsx +91 -0
- package/src/components/sections/TabShowcase.tsx +84 -0
- package/src/components/sections/TableShowcase.tsx +140 -0
- package/src/components/sections/TimelineShowcase.tsx +83 -0
- package/src/components/sections/ToastShowcase.tsx +108 -0
- package/src/components/sections/TooltipShowcase.tsx +44 -0
- package/src/components/sections/UtilityShowcase.tsx +81 -0
- package/src/components/ui/Accordion.tsx +77 -0
- package/src/components/ui/Alert.tsx +68 -0
- package/src/components/ui/Avatar.tsx +97 -0
- package/src/components/ui/Badge.tsx +55 -0
- package/src/components/ui/Button.tsx +110 -0
- package/src/components/ui/ButtonChrome.tsx +20 -0
- package/src/components/ui/Calendar.tsx +116 -0
- package/src/components/ui/Card.tsx +60 -0
- package/src/components/ui/ChatBubble.tsx +71 -0
- package/src/components/ui/CodeBlock.tsx +48 -0
- package/src/components/ui/CollapsibleSection.tsx +49 -0
- package/src/components/ui/CommandPalette.tsx +137 -0
- package/src/components/ui/ComponentDocs.tsx +52 -0
- package/src/components/ui/Drawer.tsx +71 -0
- package/src/components/ui/DropdownMenu.tsx +138 -0
- package/src/components/ui/EmptyState.tsx +33 -0
- package/src/components/ui/FilterChips.tsx +50 -0
- package/src/components/ui/HoverCard.tsx +36 -0
- package/src/components/ui/Indicator.tsx +61 -0
- package/src/components/ui/Input.tsx +359 -0
- package/src/components/ui/Kbd.tsx +38 -0
- package/src/components/ui/Modal.tsx +75 -0
- package/src/components/ui/Navigation.tsx +94 -0
- package/src/components/ui/Panel.tsx +18 -0
- package/src/components/ui/Progress.tsx +59 -0
- package/src/components/ui/Rating.tsx +65 -0
- package/src/components/ui/SearchInput.tsx +106 -0
- package/src/components/ui/SegmentedControl.tsx +44 -0
- package/src/components/ui/ShowcaseWrapper.tsx +136 -0
- package/src/components/ui/Stat.tsx +39 -0
- package/src/components/ui/Stepper.tsx +75 -0
- package/src/components/ui/Table.tsx +55 -0
- package/src/components/ui/Tabs.tsx +53 -0
- package/src/components/ui/Terminal.tsx +54 -0
- package/src/components/ui/ThemeDomSync.tsx +17 -0
- package/src/components/ui/ThemeManager.tsx +18 -0
- package/src/components/ui/ThemeSwitcher.tsx +46 -0
- package/src/components/ui/Timeline.tsx +60 -0
- package/src/components/ui/Toast.tsx +70 -0
- package/src/components/ui/Typography.tsx +129 -0
- package/src/components/ui/index.ts +92 -0
- package/src/styles/themes.css +118 -0
|
@@ -0,0 +1,2910 @@
|
|
|
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/lib/cn.ts
|
|
19
|
+
function cn(...parts) {
|
|
20
|
+
return parts.filter(Boolean).join(" ");
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// src/components/ui/Button.tsx
|
|
24
|
+
import { Fragment, jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
25
|
+
var variantClass = {
|
|
26
|
+
primary: "ph-btn-primary",
|
|
27
|
+
secondary: "ph-btn-secondary",
|
|
28
|
+
tertiary: "ph-btn-tertiary",
|
|
29
|
+
signal: "ph-btn-signal",
|
|
30
|
+
accent: "ph-btn-accent",
|
|
31
|
+
neutral: "ph-btn-neutral",
|
|
32
|
+
info: "ph-btn-info",
|
|
33
|
+
success: "ph-btn-success",
|
|
34
|
+
warning: "ph-btn-warning",
|
|
35
|
+
danger: "ph-btn-danger",
|
|
36
|
+
ghost: "ph-btn-ghost",
|
|
37
|
+
link: "ph-btn-link"
|
|
38
|
+
};
|
|
39
|
+
var sizeClass = {
|
|
40
|
+
xs: "ph-btn-xs",
|
|
41
|
+
sm: "ph-btn-sm",
|
|
42
|
+
md: "",
|
|
43
|
+
lg: "ph-btn-lg"
|
|
44
|
+
};
|
|
45
|
+
var shapeClass = {
|
|
46
|
+
default: "",
|
|
47
|
+
circle: "ph-btn-circle",
|
|
48
|
+
square: "ph-btn-square",
|
|
49
|
+
wide: "ph-btn-wide"
|
|
50
|
+
};
|
|
51
|
+
function Button(_a) {
|
|
52
|
+
var _b = _a, {
|
|
53
|
+
variant = "secondary",
|
|
54
|
+
size = "md",
|
|
55
|
+
shape = "default",
|
|
56
|
+
outline = false,
|
|
57
|
+
split = false,
|
|
58
|
+
icon,
|
|
59
|
+
sideIcon,
|
|
60
|
+
className,
|
|
61
|
+
children,
|
|
62
|
+
type = "button"
|
|
63
|
+
} = _b, props = __objRest(_b, [
|
|
64
|
+
"variant",
|
|
65
|
+
"size",
|
|
66
|
+
"shape",
|
|
67
|
+
"outline",
|
|
68
|
+
"split",
|
|
69
|
+
"icon",
|
|
70
|
+
"sideIcon",
|
|
71
|
+
"className",
|
|
72
|
+
"children",
|
|
73
|
+
"type"
|
|
74
|
+
]);
|
|
75
|
+
const usesLemonChrome = variant === "primary" || variant === "secondary";
|
|
76
|
+
const content = usesLemonChrome ? /* @__PURE__ */ jsx2(ButtonChrome, { label: children, icon, sideIcon, split }) : /* @__PURE__ */ jsxs2(Fragment, { children: [
|
|
77
|
+
icon != null ? /* @__PURE__ */ jsx2("span", { className: "ph-btn-icon", children: icon }) : null,
|
|
78
|
+
children != null ? /* @__PURE__ */ jsx2("span", { className: "ph-btn-label", children }) : null,
|
|
79
|
+
split ? /* @__PURE__ */ jsx2("span", { className: "ph-btn-split-divider", "aria-hidden": true }) : null,
|
|
80
|
+
sideIcon != null ? /* @__PURE__ */ jsx2("span", { className: "ph-btn-side-icon", children: sideIcon }) : null
|
|
81
|
+
] });
|
|
82
|
+
return /* @__PURE__ */ jsx2(
|
|
83
|
+
"button",
|
|
84
|
+
__spreadProps(__spreadValues({
|
|
85
|
+
type,
|
|
86
|
+
className: cn(
|
|
87
|
+
"ph-btn",
|
|
88
|
+
outline && "ph-btn-outline",
|
|
89
|
+
variantClass[variant],
|
|
90
|
+
sizeClass[size],
|
|
91
|
+
shapeClass[shape],
|
|
92
|
+
split && "ph-btn-split",
|
|
93
|
+
className
|
|
94
|
+
)
|
|
95
|
+
}, props), {
|
|
96
|
+
children: content
|
|
97
|
+
})
|
|
98
|
+
);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
// src/components/icons/IconBase.tsx
|
|
102
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
103
|
+
function IconBase(_a) {
|
|
104
|
+
var _b = _a, {
|
|
105
|
+
className,
|
|
106
|
+
size,
|
|
107
|
+
children,
|
|
108
|
+
viewBox = "0 0 24 24",
|
|
109
|
+
fill: fill2 = "none",
|
|
110
|
+
xmlns = "http://www.w3.org/2000/svg",
|
|
111
|
+
focusable = "false"
|
|
112
|
+
} = _b, props = __objRest(_b, [
|
|
113
|
+
"className",
|
|
114
|
+
"size",
|
|
115
|
+
"children",
|
|
116
|
+
"viewBox",
|
|
117
|
+
"fill",
|
|
118
|
+
"xmlns",
|
|
119
|
+
"focusable"
|
|
120
|
+
]);
|
|
121
|
+
var _a2;
|
|
122
|
+
const dimensionProps = size != null ? { width: size, height: size } : {};
|
|
123
|
+
return /* @__PURE__ */ jsx3(
|
|
124
|
+
"svg",
|
|
125
|
+
__spreadProps(__spreadValues(__spreadProps(__spreadValues({
|
|
126
|
+
className: cn("ph-icon", className)
|
|
127
|
+
}, dimensionProps), {
|
|
128
|
+
viewBox,
|
|
129
|
+
fill: fill2,
|
|
130
|
+
xmlns,
|
|
131
|
+
focusable,
|
|
132
|
+
"aria-hidden": (_a2 = props["aria-hidden"]) != null ? _a2 : true
|
|
133
|
+
}), props), {
|
|
134
|
+
children
|
|
135
|
+
})
|
|
136
|
+
);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
// src/components/icons/createIconBase.tsx
|
|
140
|
+
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
141
|
+
function createIconBase({ viewBox = "0 0 24 24", paths }) {
|
|
142
|
+
return function IconGlyph(props) {
|
|
143
|
+
return /* @__PURE__ */ jsx4(IconBase, __spreadProps(__spreadValues({ viewBox }, props), { children: paths }));
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
function createIconBasePath(d, viewBox = "0 0 24 24") {
|
|
147
|
+
return createIconBase({
|
|
148
|
+
viewBox,
|
|
149
|
+
paths: /* @__PURE__ */ jsx4("path", { d, fill: "currentColor" })
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
// src/components/icons/icons.tsx
|
|
154
|
+
import { Fragment as Fragment2, jsx as jsx5, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
155
|
+
var fill = (d) => /* @__PURE__ */ jsx5("path", { d, fill: "currentColor" });
|
|
156
|
+
var IconAreaChart = createIconBase({
|
|
157
|
+
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")
|
|
158
|
+
});
|
|
159
|
+
var IconCumulativeChart = createIconBase({
|
|
160
|
+
paths: fill(
|
|
161
|
+
"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"
|
|
162
|
+
)
|
|
163
|
+
});
|
|
164
|
+
var IconTableChart = createIconBase({
|
|
165
|
+
paths: fill(
|
|
166
|
+
"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"
|
|
167
|
+
)
|
|
168
|
+
});
|
|
169
|
+
var IconHandClick = createIconBase({
|
|
170
|
+
viewBox: "0 0 18 18",
|
|
171
|
+
paths: fill(
|
|
172
|
+
"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"
|
|
173
|
+
)
|
|
174
|
+
});
|
|
175
|
+
var IconSurveys = createIconBase({
|
|
176
|
+
paths: fill(
|
|
177
|
+
"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"
|
|
178
|
+
)
|
|
179
|
+
});
|
|
180
|
+
var IconCohort = createIconBase({
|
|
181
|
+
paths: fill(
|
|
182
|
+
"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"
|
|
183
|
+
)
|
|
184
|
+
});
|
|
185
|
+
var IconRecording = createIconBase({
|
|
186
|
+
paths: fill(
|
|
187
|
+
"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"
|
|
188
|
+
)
|
|
189
|
+
});
|
|
190
|
+
var IconFlare = createIconBase({
|
|
191
|
+
paths: fill(
|
|
192
|
+
"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"
|
|
193
|
+
)
|
|
194
|
+
});
|
|
195
|
+
var IconSelectEvents = createIconBase({
|
|
196
|
+
paths: /* @__PURE__ */ jsxs3(Fragment2, { children: [
|
|
197
|
+
fill("M17.5 9L16.56 6.94L14.5 6L16.56 5.06L17.5 3L18.44 5.06L20.5 6L18.44 6.94L17.5 9Z"),
|
|
198
|
+
fill("M6 12.5L6.94 14.56L9 15.5L6.94 16.44L6 18.5L5.06 16.44L3 15.5L5.06 14.56L6 12.5Z"),
|
|
199
|
+
fill("M6 9L5.06 6.94L3 6L5.06 5.06L6 3L6.94 5.06L9 6L6.94 6.94L6 9Z"),
|
|
200
|
+
fill("M16.23 14.26L20 13L10 10L13 20L14.26 16.23L18.53 20.5L20.51 18.52L16.23 14.26Z")
|
|
201
|
+
] })
|
|
202
|
+
});
|
|
203
|
+
var IconClipboardEdit = createIconBase({
|
|
204
|
+
paths: fill(
|
|
205
|
+
"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"
|
|
206
|
+
)
|
|
207
|
+
});
|
|
208
|
+
var IconQueryEditor = createIconBase({
|
|
209
|
+
paths: fill(
|
|
210
|
+
"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"
|
|
211
|
+
)
|
|
212
|
+
});
|
|
213
|
+
var IconTuning = createIconBase({
|
|
214
|
+
paths: fill(
|
|
215
|
+
"M3,17V19H9V17H3M3,5V7H13V5H3M13,21V19H21V17H13V15H11V21H13M7,9V11H3V13H7V15H9V9H7M21,13V11H11V13H21M15,9H17V7H21V5H17V3H15V9Z"
|
|
216
|
+
)
|
|
217
|
+
});
|
|
218
|
+
var IconSync = createIconBase({
|
|
219
|
+
paths: fill(
|
|
220
|
+
"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"
|
|
221
|
+
)
|
|
222
|
+
});
|
|
223
|
+
var IconPlayCircle = createIconBase({
|
|
224
|
+
paths: fill(
|
|
225
|
+
"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"
|
|
226
|
+
)
|
|
227
|
+
});
|
|
228
|
+
var IconGridView = createIconBase({
|
|
229
|
+
paths: fill("M3 3v8h8V3H3zm6 6H5V5h4v4zm-6 4v8h8v-8H3zm6 6H5v-4h4v4zm4-16v8h8V3h-8zm6 6h-4V5h4v4zm-6 4v8h8v-8h-8zm6 6h-4v-4h4v4z")
|
|
230
|
+
});
|
|
231
|
+
var IconListView = createIconBase({
|
|
232
|
+
paths: fill(
|
|
233
|
+
"M3,5v14h18V5H3z M7,7v2H5V7H7z M5,13v-2h2v2H5z M5,15h2v2H5V15z M19,17H9v-2h10V17z M19,13H9v-2h10V13z M19,9H9V7h10V9z"
|
|
234
|
+
)
|
|
235
|
+
});
|
|
236
|
+
var IconPremium = createIconBase({
|
|
237
|
+
paths: fill(
|
|
238
|
+
"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"
|
|
239
|
+
)
|
|
240
|
+
});
|
|
241
|
+
var IconGift = createIconBase({
|
|
242
|
+
paths: fill(
|
|
243
|
+
"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"
|
|
244
|
+
)
|
|
245
|
+
});
|
|
246
|
+
var IconRobot = createIconBase({
|
|
247
|
+
paths: fill(
|
|
248
|
+
"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"
|
|
249
|
+
)
|
|
250
|
+
});
|
|
251
|
+
var IconExclamation = createIconBase({
|
|
252
|
+
paths: /* @__PURE__ */ jsxs3("g", { fill: "currentColor", children: [
|
|
253
|
+
/* @__PURE__ */ jsx5("path", { d: "m12 21c1.1046 0 2-.8954 2-2s-.8954-2-2-2-2 .8954-2 2 .8954 2 2 2z" }),
|
|
254
|
+
/* @__PURE__ */ jsx5("path", { d: "m10 3h4v12h-4z" })
|
|
255
|
+
] })
|
|
256
|
+
});
|
|
257
|
+
var IconErrorOutline = createIconBase({
|
|
258
|
+
paths: fill(
|
|
259
|
+
"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"
|
|
260
|
+
)
|
|
261
|
+
});
|
|
262
|
+
var IconCancel = createIconBase({
|
|
263
|
+
paths: fill(
|
|
264
|
+
"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"
|
|
265
|
+
)
|
|
266
|
+
});
|
|
267
|
+
var IconCheckCircle = createIconBase({
|
|
268
|
+
paths: fill(
|
|
269
|
+
"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"
|
|
270
|
+
)
|
|
271
|
+
});
|
|
272
|
+
var IconArrowUp = createIconBase({
|
|
273
|
+
paths: fill("M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z")
|
|
274
|
+
});
|
|
275
|
+
var IconArrowDown = createIconBase({
|
|
276
|
+
paths: fill("M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z")
|
|
277
|
+
});
|
|
278
|
+
var IconChevronLeft = createIconBasePath("M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z");
|
|
279
|
+
var IconChevronRight = createIconBasePath("M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z");
|
|
280
|
+
var IconChevronDown = createIconBasePath("M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z");
|
|
281
|
+
var IconSubArrowRight = createIconBase({
|
|
282
|
+
paths: /* @__PURE__ */ jsx5("g", { transform: "translate(4 5.5)", children: fill("M2 0H0V10H12.01V13L16 9L12.01 5V8H2V0Z") })
|
|
283
|
+
});
|
|
284
|
+
var IconSearch = createIconBasePath(
|
|
285
|
+
"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"
|
|
286
|
+
);
|
|
287
|
+
var IconBell = createIconBasePath(
|
|
288
|
+
"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"
|
|
289
|
+
);
|
|
290
|
+
var IconBellOff = createIconBasePath(
|
|
291
|
+
"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"
|
|
292
|
+
);
|
|
293
|
+
var IconPerson = createIconBasePath(
|
|
294
|
+
"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"
|
|
295
|
+
);
|
|
296
|
+
var IconHome = createIconBasePath("M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z");
|
|
297
|
+
var IconPanelRight = createIconBasePath(
|
|
298
|
+
"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"
|
|
299
|
+
);
|
|
300
|
+
var IconPlus = createIconBasePath("M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z");
|
|
301
|
+
var IconCheck = createIconBasePath("M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z");
|
|
302
|
+
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");
|
|
303
|
+
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");
|
|
304
|
+
var IconDownload = createIconBasePath("M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z");
|
|
305
|
+
var IconUpload = createIconBasePath("M9 16h6v-6h4l-7-7-7 7h4v6zm-4 2h14v2H5v-2z");
|
|
306
|
+
var IconSave = createIconBasePath(
|
|
307
|
+
"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"
|
|
308
|
+
);
|
|
309
|
+
var IconCopy = createIconBasePath(
|
|
310
|
+
"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"
|
|
311
|
+
);
|
|
312
|
+
var IconEdit = createIconBasePath(
|
|
313
|
+
"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"
|
|
314
|
+
);
|
|
315
|
+
var IconLogout = createIconBasePath(
|
|
316
|
+
"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"
|
|
317
|
+
);
|
|
318
|
+
var IconStar = createIconBasePath(
|
|
319
|
+
"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"
|
|
320
|
+
);
|
|
321
|
+
var IconMail = createIconBasePath(
|
|
322
|
+
"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"
|
|
323
|
+
);
|
|
324
|
+
var IconShoppingCart = createIconBasePath(
|
|
325
|
+
"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"
|
|
326
|
+
);
|
|
327
|
+
var IconMoon = createIconBasePath(
|
|
328
|
+
"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"
|
|
329
|
+
);
|
|
330
|
+
var IconSun = createIconBasePath(
|
|
331
|
+
"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"
|
|
332
|
+
);
|
|
333
|
+
var IconVolume = createIconBasePath(
|
|
334
|
+
"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"
|
|
335
|
+
);
|
|
336
|
+
var IconVolumeOff = createIconBasePath(
|
|
337
|
+
"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"
|
|
338
|
+
);
|
|
339
|
+
var IconFlag = createIconBasePath("M14.4 6L14 4H5v17h2v-7h5.6l.4 2h7V6h-5.6z");
|
|
340
|
+
var IconDatabase = createIconBasePath(
|
|
341
|
+
"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"
|
|
342
|
+
);
|
|
343
|
+
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");
|
|
344
|
+
var IconBox = createIconBasePath(
|
|
345
|
+
"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"
|
|
346
|
+
);
|
|
347
|
+
var IconBolt = createIconBasePath(
|
|
348
|
+
"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"
|
|
349
|
+
);
|
|
350
|
+
var IconRadar = createIconBasePath(
|
|
351
|
+
"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"
|
|
352
|
+
);
|
|
353
|
+
var IconToggle = createIconBasePath(
|
|
354
|
+
"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"
|
|
355
|
+
);
|
|
356
|
+
var IconRocket = createIconBasePath(
|
|
357
|
+
"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"
|
|
358
|
+
);
|
|
359
|
+
var IconTerminal = createIconBasePath("M20 4H4c-1.11 0-2 .89-2 2v12c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4V8l8 5 8-5v10zm-8-7L4 6h16l-8 5z");
|
|
360
|
+
var IconActivity = createIconBasePath(
|
|
361
|
+
"M22 12h-4l-3 9L9 3l-3 9H2v2h6.76l2.24-6.72L15 15l2.24-6.72L19 14h3v-2z"
|
|
362
|
+
);
|
|
363
|
+
var IconFlask = createIconBasePath(
|
|
364
|
+
"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"
|
|
365
|
+
);
|
|
366
|
+
function IconSpinner(_a) {
|
|
367
|
+
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
368
|
+
return /* @__PURE__ */ jsx5(IconSync, __spreadValues({ className: cn("ph-icon-spin", className) }, props));
|
|
369
|
+
}
|
|
370
|
+
var PH_ICONS = {
|
|
371
|
+
activity: IconActivity,
|
|
372
|
+
areaChart: IconAreaChart,
|
|
373
|
+
arrowDown: IconArrowDown,
|
|
374
|
+
arrowUp: IconArrowUp,
|
|
375
|
+
bell: IconBell,
|
|
376
|
+
bellOff: IconBellOff,
|
|
377
|
+
bolt: IconBolt,
|
|
378
|
+
box: IconBox,
|
|
379
|
+
cancel: IconCancel,
|
|
380
|
+
check: IconCheck,
|
|
381
|
+
checkCircle: IconCheckCircle,
|
|
382
|
+
chevronDown: IconChevronDown,
|
|
383
|
+
chevronLeft: IconChevronLeft,
|
|
384
|
+
chevronRight: IconChevronRight,
|
|
385
|
+
clipboard: IconClipboardEdit,
|
|
386
|
+
close: IconClose,
|
|
387
|
+
cohort: IconCohort,
|
|
388
|
+
copy: IconCopy,
|
|
389
|
+
cumulativeChart: IconCumulativeChart,
|
|
390
|
+
database: IconDatabase,
|
|
391
|
+
download: IconDownload,
|
|
392
|
+
edit: IconEdit,
|
|
393
|
+
errorOutline: IconErrorOutline,
|
|
394
|
+
exclamation: IconExclamation,
|
|
395
|
+
flag: IconFlag,
|
|
396
|
+
flare: IconFlare,
|
|
397
|
+
flask: IconFlask,
|
|
398
|
+
gift: IconGift,
|
|
399
|
+
grid: IconGridView,
|
|
400
|
+
handClick: IconHandClick,
|
|
401
|
+
home: IconHome,
|
|
402
|
+
info: IconErrorOutline,
|
|
403
|
+
layers: IconLayers,
|
|
404
|
+
list: IconListView,
|
|
405
|
+
logout: IconLogout,
|
|
406
|
+
mail: IconMail,
|
|
407
|
+
moon: IconMoon,
|
|
408
|
+
panelRight: IconPanelRight,
|
|
409
|
+
person: IconPerson,
|
|
410
|
+
play: IconPlayCircle,
|
|
411
|
+
plus: IconPlus,
|
|
412
|
+
premium: IconPremium,
|
|
413
|
+
queryEditor: IconQueryEditor,
|
|
414
|
+
radar: IconRadar,
|
|
415
|
+
recording: IconRecording,
|
|
416
|
+
robot: IconRobot,
|
|
417
|
+
rocket: IconRocket,
|
|
418
|
+
save: IconSave,
|
|
419
|
+
search: IconSearch,
|
|
420
|
+
selectEvents: IconSelectEvents,
|
|
421
|
+
settings: IconTuning,
|
|
422
|
+
shoppingCart: IconShoppingCart,
|
|
423
|
+
spinner: IconSpinner,
|
|
424
|
+
star: IconStar,
|
|
425
|
+
subArrowRight: IconSubArrowRight,
|
|
426
|
+
sun: IconSun,
|
|
427
|
+
surveys: IconSurveys,
|
|
428
|
+
sync: IconSync,
|
|
429
|
+
tableChart: IconTableChart,
|
|
430
|
+
terminal: IconTerminal,
|
|
431
|
+
toggle: IconToggle,
|
|
432
|
+
trash: IconTrash,
|
|
433
|
+
trendingUp: IconArrowUp,
|
|
434
|
+
upload: IconUpload,
|
|
435
|
+
volume: IconVolume,
|
|
436
|
+
volumeOff: IconVolumeOff,
|
|
437
|
+
warning: IconExclamation,
|
|
438
|
+
xCircle: IconCancel
|
|
439
|
+
};
|
|
440
|
+
function IconByName(_a) {
|
|
441
|
+
var _b = _a, { name } = _b, props = __objRest(_b, ["name"]);
|
|
442
|
+
const Icon = PH_ICONS[name];
|
|
443
|
+
return /* @__PURE__ */ jsx5(Icon, __spreadValues({}, props));
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
// src/components/ui/Alert.tsx
|
|
447
|
+
import { jsx as jsx6, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
448
|
+
var statusConfig = {
|
|
449
|
+
info: { icon: IconErrorOutline, color: "text-ph-info" },
|
|
450
|
+
success: { icon: IconCheckCircle, color: "text-ph-success" },
|
|
451
|
+
warning: { icon: IconExclamation, color: "text-ph-warning" },
|
|
452
|
+
danger: { icon: IconCancel, color: "text-ph-danger" }
|
|
453
|
+
};
|
|
454
|
+
var statusClassMap = {
|
|
455
|
+
info: "ph-alert-info",
|
|
456
|
+
success: "ph-alert-success",
|
|
457
|
+
warning: "ph-alert-warning",
|
|
458
|
+
danger: "ph-alert-danger"
|
|
459
|
+
};
|
|
460
|
+
function Alert({
|
|
461
|
+
status = "info",
|
|
462
|
+
title,
|
|
463
|
+
description,
|
|
464
|
+
icon,
|
|
465
|
+
children,
|
|
466
|
+
className,
|
|
467
|
+
onDismiss
|
|
468
|
+
}) {
|
|
469
|
+
const config = statusConfig[status];
|
|
470
|
+
const Icon = config.icon;
|
|
471
|
+
return /* @__PURE__ */ jsxs4(
|
|
472
|
+
"div",
|
|
473
|
+
{
|
|
474
|
+
role: "alert",
|
|
475
|
+
className: cn("ph-alert", statusClassMap[status], className),
|
|
476
|
+
children: [
|
|
477
|
+
icon != null ? icon : /* @__PURE__ */ jsx6(Icon, { className: cn("mt-0.5 h-5 w-5 shrink-0", config.color) }),
|
|
478
|
+
/* @__PURE__ */ jsxs4("div", { className: "flex-1", children: [
|
|
479
|
+
title && /* @__PURE__ */ jsx6("p", { className: "font-semibold", children: title }),
|
|
480
|
+
description && /* @__PURE__ */ jsx6("p", { className: "mt-1 text-sm text-ph-subtle", children: description }),
|
|
481
|
+
children
|
|
482
|
+
] }),
|
|
483
|
+
onDismiss && /* @__PURE__ */ jsx6(
|
|
484
|
+
"button",
|
|
485
|
+
{
|
|
486
|
+
type: "button",
|
|
487
|
+
onClick: onDismiss,
|
|
488
|
+
className: "shrink-0 rounded-md p-1 text-ph-subtle hover:bg-black/5 hover:text-ph-ink",
|
|
489
|
+
"aria-label": "Dismiss",
|
|
490
|
+
children: /* @__PURE__ */ jsx6("svg", { className: "h-4 w-4", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", children: /* @__PURE__ */ jsx6("path", { d: "M18 6L6 18M6 6l12 12" }) })
|
|
491
|
+
}
|
|
492
|
+
)
|
|
493
|
+
]
|
|
494
|
+
}
|
|
495
|
+
);
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
// src/components/ui/Badge.tsx
|
|
499
|
+
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
500
|
+
var variantMap = {
|
|
501
|
+
brand: "ph-badge-brand",
|
|
502
|
+
neutral: "ph-badge-neutral",
|
|
503
|
+
success: "ph-badge-success",
|
|
504
|
+
warning: "ph-badge-warning",
|
|
505
|
+
danger: "ph-badge-danger",
|
|
506
|
+
info: "ph-badge-info",
|
|
507
|
+
outline: "ph-badge-outline"
|
|
508
|
+
};
|
|
509
|
+
var sizeMap = {
|
|
510
|
+
sm: "text-[10px] px-1.5 py-0.5",
|
|
511
|
+
md: ""
|
|
512
|
+
};
|
|
513
|
+
function Badge({
|
|
514
|
+
variant = "neutral",
|
|
515
|
+
size = "md",
|
|
516
|
+
children,
|
|
517
|
+
className
|
|
518
|
+
}) {
|
|
519
|
+
return /* @__PURE__ */ jsx7(
|
|
520
|
+
"span",
|
|
521
|
+
{
|
|
522
|
+
className: cn(
|
|
523
|
+
"ph-badge",
|
|
524
|
+
variantMap[variant],
|
|
525
|
+
sizeMap[size],
|
|
526
|
+
className
|
|
527
|
+
),
|
|
528
|
+
children
|
|
529
|
+
}
|
|
530
|
+
);
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
// src/components/ui/Card.tsx
|
|
534
|
+
import { jsx as jsx8, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
535
|
+
var variantMap2 = {
|
|
536
|
+
default: "bg-ph-surface",
|
|
537
|
+
outlined: "border-2 border-ph-border bg-ph-surface",
|
|
538
|
+
elevated: "bg-ph-surface shadow-ph-md",
|
|
539
|
+
highlighted: "border border-ph-brand/35 bg-orange-50/40 shadow-ph"
|
|
540
|
+
};
|
|
541
|
+
function Card({
|
|
542
|
+
children,
|
|
543
|
+
title,
|
|
544
|
+
description,
|
|
545
|
+
actions,
|
|
546
|
+
footer,
|
|
547
|
+
media,
|
|
548
|
+
variant = "default",
|
|
549
|
+
className,
|
|
550
|
+
bodyClassName
|
|
551
|
+
}) {
|
|
552
|
+
return /* @__PURE__ */ jsxs5(
|
|
553
|
+
"div",
|
|
554
|
+
{
|
|
555
|
+
className: cn(
|
|
556
|
+
"ph-card",
|
|
557
|
+
variantMap2[variant],
|
|
558
|
+
className
|
|
559
|
+
),
|
|
560
|
+
children: [
|
|
561
|
+
media && /* @__PURE__ */ jsx8("div", { className: "-mx-6 -mt-6 mb-4", children: media }),
|
|
562
|
+
/* @__PURE__ */ jsxs5("div", { className: cn("ph-card-body", bodyClassName), children: [
|
|
563
|
+
title && /* @__PURE__ */ jsx8("h3", { className: "ph-card-title", children: title }),
|
|
564
|
+
description && /* @__PURE__ */ jsx8("p", { className: "text-sm text-ph-subtle", children: description }),
|
|
565
|
+
children,
|
|
566
|
+
actions && /* @__PURE__ */ jsx8("div", { className: "ph-card-actions", children: actions })
|
|
567
|
+
] }),
|
|
568
|
+
footer && /* @__PURE__ */ jsx8("div", { className: "border-t border-ph-border px-6 py-4 text-xs text-ph-subtle", children: footer })
|
|
569
|
+
]
|
|
570
|
+
}
|
|
571
|
+
);
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
// src/components/ui/Drawer.tsx
|
|
575
|
+
import { Fragment as Fragment3, jsx as jsx9, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
576
|
+
var sideMap = {
|
|
577
|
+
left: "left-0 border-r",
|
|
578
|
+
right: "right-0 border-l"
|
|
579
|
+
};
|
|
580
|
+
var sizeMap2 = {
|
|
581
|
+
sm: "w-[min(100%,18rem)]",
|
|
582
|
+
md: "w-[min(100%,22rem)]",
|
|
583
|
+
lg: "w-[min(100%,30rem)]"
|
|
584
|
+
};
|
|
585
|
+
function Drawer({
|
|
586
|
+
open = false,
|
|
587
|
+
onClose,
|
|
588
|
+
title,
|
|
589
|
+
children,
|
|
590
|
+
footer,
|
|
591
|
+
side = "right",
|
|
592
|
+
size = "md",
|
|
593
|
+
className,
|
|
594
|
+
showCloseButton = true
|
|
595
|
+
}) {
|
|
596
|
+
if (!open) return null;
|
|
597
|
+
return /* @__PURE__ */ jsxs6(Fragment3, { children: [
|
|
598
|
+
/* @__PURE__ */ jsx9("div", { className: "fixed inset-0 z-[120] bg-black/45 backdrop-blur-[2px]", role: "presentation", onClick: onClose }),
|
|
599
|
+
/* @__PURE__ */ jsxs6(
|
|
600
|
+
"aside",
|
|
601
|
+
{
|
|
602
|
+
className: cn(
|
|
603
|
+
"fixed inset-y-0 z-[130] flex flex-col overflow-y-auto border-ph-border bg-ph-surface shadow-ph-md",
|
|
604
|
+
sideMap[side],
|
|
605
|
+
sizeMap2[size],
|
|
606
|
+
className
|
|
607
|
+
),
|
|
608
|
+
children: [
|
|
609
|
+
(title || showCloseButton) && /* @__PURE__ */ jsxs6("header", { className: "flex items-center justify-between border-b border-ph-border px-4 py-3", children: [
|
|
610
|
+
/* @__PURE__ */ jsx9("span", { className: "text-sm font-bold text-ph-ink", children: title }),
|
|
611
|
+
showCloseButton && onClose && /* @__PURE__ */ jsx9(Button, { variant: "ghost", className: "ph-btn-circle", onClick: onClose, "aria-label": "Close drawer", children: /* @__PURE__ */ jsx9(IconClose, { className: "h-5 w-5" }) })
|
|
612
|
+
] }),
|
|
613
|
+
/* @__PURE__ */ jsx9("div", { className: "flex-1", children }),
|
|
614
|
+
footer && /* @__PURE__ */ jsx9("footer", { className: "border-t border-ph-border px-4 py-3", children: footer })
|
|
615
|
+
]
|
|
616
|
+
}
|
|
617
|
+
)
|
|
618
|
+
] });
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
// src/components/ui/Kbd.tsx
|
|
622
|
+
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
623
|
+
function Kbd(_a) {
|
|
624
|
+
var _b = _a, { variant = "shortcut", keys, children, className } = _b, props = __objRest(_b, ["variant", "keys", "children", "className"]);
|
|
625
|
+
if (variant === "token") {
|
|
626
|
+
return /* @__PURE__ */ jsx10("code", __spreadProps(__spreadValues({ className: cn("ph-kbd text-ph-ink", className) }, props), { children }));
|
|
627
|
+
}
|
|
628
|
+
const content = (keys == null ? void 0 : keys.length) ? keys.join(" ") : normalizeShortcut(children);
|
|
629
|
+
return /* @__PURE__ */ jsx10("kbd", __spreadProps(__spreadValues({ className: cn("ph-shortcut", className) }, props), { children: content }));
|
|
630
|
+
}
|
|
631
|
+
function normalizeShortcut(children) {
|
|
632
|
+
if (typeof children !== "string") return children;
|
|
633
|
+
return children.replace(/\bCommand\b|\bCmd\b/g, "\u2318").replace(/\bOption\b|\bAlt\b/g, "\u2325").replace(/\bShift\b/g, "\u21E7").replace(/\bControl\b|\bCtrl\b/g, "\u2303");
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
// src/components/ui/DropdownMenu.tsx
|
|
637
|
+
import { Fragment as Fragment4, jsx as jsx11, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
638
|
+
var sizeClass2 = {
|
|
639
|
+
xs: "ph-btn-xs",
|
|
640
|
+
sm: "ph-btn-sm",
|
|
641
|
+
md: "",
|
|
642
|
+
lg: "ph-btn-lg"
|
|
643
|
+
};
|
|
644
|
+
var variantClass2 = {
|
|
645
|
+
primary: "ph-btn-primary",
|
|
646
|
+
secondary: "ph-btn-secondary",
|
|
647
|
+
accent: "ph-btn-accent"
|
|
648
|
+
};
|
|
649
|
+
function dropdownPanelClass(align, panelClassName) {
|
|
650
|
+
return cn(
|
|
651
|
+
"ph-dropdown-panel absolute top-full z-50 mt-0",
|
|
652
|
+
align === "end" ? "right-0" : "left-0",
|
|
653
|
+
panelClassName
|
|
654
|
+
);
|
|
655
|
+
}
|
|
656
|
+
function DropdownMenu(_a) {
|
|
657
|
+
var _b = _a, {
|
|
658
|
+
trigger,
|
|
659
|
+
children,
|
|
660
|
+
align = "start",
|
|
661
|
+
className,
|
|
662
|
+
panelClassName,
|
|
663
|
+
"aria-label": ariaLabel
|
|
664
|
+
} = _b, props = __objRest(_b, [
|
|
665
|
+
"trigger",
|
|
666
|
+
"children",
|
|
667
|
+
"align",
|
|
668
|
+
"className",
|
|
669
|
+
"panelClassName",
|
|
670
|
+
"aria-label"
|
|
671
|
+
]);
|
|
672
|
+
return /* @__PURE__ */ jsxs7("details", __spreadProps(__spreadValues({ className: cn("relative", className) }, props), { children: [
|
|
673
|
+
/* @__PURE__ */ jsx11(
|
|
674
|
+
"summary",
|
|
675
|
+
{
|
|
676
|
+
className: "cursor-pointer list-none [&::-webkit-details-marker]:hidden",
|
|
677
|
+
"aria-label": ariaLabel,
|
|
678
|
+
children: trigger
|
|
679
|
+
}
|
|
680
|
+
),
|
|
681
|
+
/* @__PURE__ */ jsx11("div", { className: dropdownPanelClass(align, panelClassName), children })
|
|
682
|
+
] }));
|
|
683
|
+
}
|
|
684
|
+
function DropdownButton(_a) {
|
|
685
|
+
var _b = _a, {
|
|
686
|
+
label,
|
|
687
|
+
variant = "secondary",
|
|
688
|
+
outline = false,
|
|
689
|
+
size = "md",
|
|
690
|
+
split = false,
|
|
691
|
+
icon,
|
|
692
|
+
sideIcon,
|
|
693
|
+
children,
|
|
694
|
+
align = "start",
|
|
695
|
+
className,
|
|
696
|
+
panelClassName,
|
|
697
|
+
"aria-label": ariaLabel
|
|
698
|
+
} = _b, props = __objRest(_b, [
|
|
699
|
+
"label",
|
|
700
|
+
"variant",
|
|
701
|
+
"outline",
|
|
702
|
+
"size",
|
|
703
|
+
"split",
|
|
704
|
+
"icon",
|
|
705
|
+
"sideIcon",
|
|
706
|
+
"children",
|
|
707
|
+
"align",
|
|
708
|
+
"className",
|
|
709
|
+
"panelClassName",
|
|
710
|
+
"aria-label"
|
|
711
|
+
]);
|
|
712
|
+
const usesLemonChrome = variant === "primary" || variant === "secondary";
|
|
713
|
+
const chevron = /* @__PURE__ */ jsx11(IconChevronDown, { className: "h-4 w-4", "aria-hidden": true });
|
|
714
|
+
const trailing = sideIcon != null ? sideIcon : chevron;
|
|
715
|
+
return /* @__PURE__ */ jsxs7("details", __spreadProps(__spreadValues({ className: cn("relative", className) }, props), { children: [
|
|
716
|
+
/* @__PURE__ */ jsx11(
|
|
717
|
+
"summary",
|
|
718
|
+
{
|
|
719
|
+
className: cn(
|
|
720
|
+
"ph-btn cursor-pointer list-none [&::-webkit-details-marker]:hidden",
|
|
721
|
+
variantClass2[variant],
|
|
722
|
+
outline && "ph-btn-outline",
|
|
723
|
+
sizeClass2[size],
|
|
724
|
+
split && "ph-btn-split"
|
|
725
|
+
),
|
|
726
|
+
"aria-label": ariaLabel != null ? ariaLabel : label,
|
|
727
|
+
children: usesLemonChrome ? /* @__PURE__ */ jsx11(ButtonChrome, { label, icon, sideIcon: trailing, split }) : /* @__PURE__ */ jsxs7(Fragment4, { children: [
|
|
728
|
+
icon != null ? /* @__PURE__ */ jsx11("span", { className: "ph-btn-icon", children: icon }) : null,
|
|
729
|
+
/* @__PURE__ */ jsx11("span", { className: "ph-btn-label", children: label }),
|
|
730
|
+
/* @__PURE__ */ jsx11("span", { className: "ph-btn-side-icon", children: trailing })
|
|
731
|
+
] })
|
|
732
|
+
}
|
|
733
|
+
),
|
|
734
|
+
/* @__PURE__ */ jsx11("div", { className: dropdownPanelClass(align, panelClassName), children })
|
|
735
|
+
] }));
|
|
736
|
+
}
|
|
737
|
+
function DropdownItem(_a) {
|
|
738
|
+
var _b = _a, {
|
|
739
|
+
className,
|
|
740
|
+
children
|
|
741
|
+
} = _b, props = __objRest(_b, [
|
|
742
|
+
"className",
|
|
743
|
+
"children"
|
|
744
|
+
]);
|
|
745
|
+
return /* @__PURE__ */ jsx11("button", __spreadProps(__spreadValues({ type: "button", className: cn("ph-dropdown-item w-full text-left", className) }, props), { children }));
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
// src/components/ui/Input.tsx
|
|
749
|
+
import { useId } from "react";
|
|
750
|
+
import { jsx as jsx12, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
751
|
+
var sizeMap3 = {
|
|
752
|
+
sm: "ph-input-sm",
|
|
753
|
+
md: "",
|
|
754
|
+
lg: "ph-input-lg"
|
|
755
|
+
};
|
|
756
|
+
function Input(_a) {
|
|
757
|
+
var _b = _a, {
|
|
758
|
+
id: idProp,
|
|
759
|
+
label,
|
|
760
|
+
hideLabel = false,
|
|
761
|
+
error,
|
|
762
|
+
helperText,
|
|
763
|
+
size = "md",
|
|
764
|
+
variant = "default",
|
|
765
|
+
className,
|
|
766
|
+
wrapperClassName,
|
|
767
|
+
disabled
|
|
768
|
+
} = _b, props = __objRest(_b, [
|
|
769
|
+
"id",
|
|
770
|
+
"label",
|
|
771
|
+
"hideLabel",
|
|
772
|
+
"error",
|
|
773
|
+
"helperText",
|
|
774
|
+
"size",
|
|
775
|
+
"variant",
|
|
776
|
+
"className",
|
|
777
|
+
"wrapperClassName",
|
|
778
|
+
"disabled"
|
|
779
|
+
]);
|
|
780
|
+
const autoId = useId();
|
|
781
|
+
const id = idProp != null ? idProp : autoId;
|
|
782
|
+
const hasError = Boolean(error);
|
|
783
|
+
return /* @__PURE__ */ jsxs8("div", { className: cn("ph-field", wrapperClassName), children: [
|
|
784
|
+
label && /* @__PURE__ */ jsx12(
|
|
785
|
+
"label",
|
|
786
|
+
{
|
|
787
|
+
htmlFor: id,
|
|
788
|
+
className: cn(
|
|
789
|
+
"ph-label",
|
|
790
|
+
hideLabel && "sr-only",
|
|
791
|
+
disabled && "opacity-50"
|
|
792
|
+
),
|
|
793
|
+
children: label
|
|
794
|
+
}
|
|
795
|
+
),
|
|
796
|
+
/* @__PURE__ */ jsx12(
|
|
797
|
+
"input",
|
|
798
|
+
__spreadValues({
|
|
799
|
+
id,
|
|
800
|
+
disabled,
|
|
801
|
+
"aria-invalid": hasError || void 0,
|
|
802
|
+
className: cn(
|
|
803
|
+
"ph-input w-full",
|
|
804
|
+
sizeMap3[size],
|
|
805
|
+
variant === "ghost" && "ph-input-ghost",
|
|
806
|
+
hasError && "ph-input-error",
|
|
807
|
+
disabled && "cursor-not-allowed opacity-60",
|
|
808
|
+
className
|
|
809
|
+
)
|
|
810
|
+
}, props)
|
|
811
|
+
),
|
|
812
|
+
helperText && !hasError && /* @__PURE__ */ jsx12("p", { className: "mt-1 text-xs text-ph-subtle", children: helperText }),
|
|
813
|
+
error && /* @__PURE__ */ jsx12("p", { className: "mt-1 text-xs font-medium text-ph-danger", children: error })
|
|
814
|
+
] });
|
|
815
|
+
}
|
|
816
|
+
function Select(_a) {
|
|
817
|
+
var _b = _a, {
|
|
818
|
+
id: idProp,
|
|
819
|
+
label,
|
|
820
|
+
hideLabel = false,
|
|
821
|
+
error,
|
|
822
|
+
helperText,
|
|
823
|
+
size = "md",
|
|
824
|
+
className,
|
|
825
|
+
wrapperClassName,
|
|
826
|
+
disabled,
|
|
827
|
+
children
|
|
828
|
+
} = _b, props = __objRest(_b, [
|
|
829
|
+
"id",
|
|
830
|
+
"label",
|
|
831
|
+
"hideLabel",
|
|
832
|
+
"error",
|
|
833
|
+
"helperText",
|
|
834
|
+
"size",
|
|
835
|
+
"className",
|
|
836
|
+
"wrapperClassName",
|
|
837
|
+
"disabled",
|
|
838
|
+
"children"
|
|
839
|
+
]);
|
|
840
|
+
const autoId = useId();
|
|
841
|
+
const id = idProp != null ? idProp : autoId;
|
|
842
|
+
const hasError = Boolean(error);
|
|
843
|
+
return /* @__PURE__ */ jsxs8("div", { className: cn("ph-field", wrapperClassName), children: [
|
|
844
|
+
label && /* @__PURE__ */ jsx12(
|
|
845
|
+
"label",
|
|
846
|
+
{
|
|
847
|
+
htmlFor: id,
|
|
848
|
+
className: cn("ph-label", hideLabel && "sr-only", disabled && "opacity-50"),
|
|
849
|
+
children: label
|
|
850
|
+
}
|
|
851
|
+
),
|
|
852
|
+
/* @__PURE__ */ jsx12(
|
|
853
|
+
"select",
|
|
854
|
+
__spreadProps(__spreadValues({
|
|
855
|
+
id,
|
|
856
|
+
disabled,
|
|
857
|
+
"aria-invalid": hasError || void 0,
|
|
858
|
+
className: cn(
|
|
859
|
+
"ph-select w-full",
|
|
860
|
+
sizeMap3[size],
|
|
861
|
+
hasError && "border-ph-danger focus:border-ph-danger focus:ring-ph-danger/20",
|
|
862
|
+
disabled && "cursor-not-allowed opacity-60",
|
|
863
|
+
className
|
|
864
|
+
)
|
|
865
|
+
}, props), {
|
|
866
|
+
children
|
|
867
|
+
})
|
|
868
|
+
),
|
|
869
|
+
helperText && !hasError && /* @__PURE__ */ jsx12("p", { className: "mt-1 text-xs text-ph-subtle", children: helperText }),
|
|
870
|
+
error && /* @__PURE__ */ jsx12("p", { className: "mt-1 text-xs font-medium text-ph-danger", children: error })
|
|
871
|
+
] });
|
|
872
|
+
}
|
|
873
|
+
function Textarea(_a) {
|
|
874
|
+
var _b = _a, {
|
|
875
|
+
id: idProp,
|
|
876
|
+
label,
|
|
877
|
+
hideLabel = false,
|
|
878
|
+
error,
|
|
879
|
+
helperText,
|
|
880
|
+
size = "md",
|
|
881
|
+
className,
|
|
882
|
+
wrapperClassName,
|
|
883
|
+
disabled
|
|
884
|
+
} = _b, props = __objRest(_b, [
|
|
885
|
+
"id",
|
|
886
|
+
"label",
|
|
887
|
+
"hideLabel",
|
|
888
|
+
"error",
|
|
889
|
+
"helperText",
|
|
890
|
+
"size",
|
|
891
|
+
"className",
|
|
892
|
+
"wrapperClassName",
|
|
893
|
+
"disabled"
|
|
894
|
+
]);
|
|
895
|
+
const autoId = useId();
|
|
896
|
+
const id = idProp != null ? idProp : autoId;
|
|
897
|
+
const hasError = Boolean(error);
|
|
898
|
+
return /* @__PURE__ */ jsxs8("div", { className: cn("ph-field", wrapperClassName), children: [
|
|
899
|
+
label && /* @__PURE__ */ jsx12(
|
|
900
|
+
"label",
|
|
901
|
+
{
|
|
902
|
+
htmlFor: id,
|
|
903
|
+
className: cn("ph-label", hideLabel && "sr-only", disabled && "opacity-50"),
|
|
904
|
+
children: label
|
|
905
|
+
}
|
|
906
|
+
),
|
|
907
|
+
/* @__PURE__ */ jsx12(
|
|
908
|
+
"textarea",
|
|
909
|
+
__spreadValues({
|
|
910
|
+
id,
|
|
911
|
+
disabled,
|
|
912
|
+
"aria-invalid": hasError || void 0,
|
|
913
|
+
className: cn(
|
|
914
|
+
"ph-textarea w-full",
|
|
915
|
+
sizeMap3[size],
|
|
916
|
+
hasError && "border-ph-danger focus:border-ph-danger focus:ring-ph-danger/20",
|
|
917
|
+
disabled && "cursor-not-allowed opacity-60",
|
|
918
|
+
className
|
|
919
|
+
)
|
|
920
|
+
}, props)
|
|
921
|
+
),
|
|
922
|
+
helperText && !hasError && /* @__PURE__ */ jsx12("p", { className: "mt-1 text-xs text-ph-subtle", children: helperText }),
|
|
923
|
+
error && /* @__PURE__ */ jsx12("p", { className: "mt-1 text-xs font-medium text-ph-danger", children: error })
|
|
924
|
+
] });
|
|
925
|
+
}
|
|
926
|
+
function Checkbox(_a) {
|
|
927
|
+
var _b = _a, {
|
|
928
|
+
id: idProp,
|
|
929
|
+
label,
|
|
930
|
+
error,
|
|
931
|
+
helperText,
|
|
932
|
+
className,
|
|
933
|
+
wrapperClassName,
|
|
934
|
+
disabled
|
|
935
|
+
} = _b, props = __objRest(_b, [
|
|
936
|
+
"id",
|
|
937
|
+
"label",
|
|
938
|
+
"error",
|
|
939
|
+
"helperText",
|
|
940
|
+
"className",
|
|
941
|
+
"wrapperClassName",
|
|
942
|
+
"disabled"
|
|
943
|
+
]);
|
|
944
|
+
const autoId = useId();
|
|
945
|
+
const id = idProp != null ? idProp : autoId;
|
|
946
|
+
const hasError = Boolean(error);
|
|
947
|
+
return /* @__PURE__ */ jsxs8("div", { className: cn("ph-control-row", wrapperClassName), children: [
|
|
948
|
+
/* @__PURE__ */ jsx12(
|
|
949
|
+
"input",
|
|
950
|
+
__spreadValues({
|
|
951
|
+
id,
|
|
952
|
+
type: "checkbox",
|
|
953
|
+
disabled,
|
|
954
|
+
"aria-invalid": hasError || void 0,
|
|
955
|
+
className: cn(
|
|
956
|
+
"ph-checkbox",
|
|
957
|
+
hasError && "border-ph-danger",
|
|
958
|
+
disabled && "cursor-not-allowed opacity-60",
|
|
959
|
+
className
|
|
960
|
+
)
|
|
961
|
+
}, props)
|
|
962
|
+
),
|
|
963
|
+
/* @__PURE__ */ jsx12("label", { htmlFor: id, className: cn("cursor-pointer", disabled && "opacity-60"), children: label }),
|
|
964
|
+
helperText && !hasError && /* @__PURE__ */ jsx12("p", { className: "mt-0.5 text-xs text-ph-subtle", children: helperText }),
|
|
965
|
+
error && /* @__PURE__ */ jsx12("p", { className: "mt-0.5 text-xs font-medium text-ph-danger", children: error })
|
|
966
|
+
] });
|
|
967
|
+
}
|
|
968
|
+
function Radio(_a) {
|
|
969
|
+
var _b = _a, {
|
|
970
|
+
id: idProp,
|
|
971
|
+
label,
|
|
972
|
+
className,
|
|
973
|
+
wrapperClassName,
|
|
974
|
+
disabled
|
|
975
|
+
} = _b, props = __objRest(_b, [
|
|
976
|
+
"id",
|
|
977
|
+
"label",
|
|
978
|
+
"className",
|
|
979
|
+
"wrapperClassName",
|
|
980
|
+
"disabled"
|
|
981
|
+
]);
|
|
982
|
+
const autoId = useId();
|
|
983
|
+
const id = idProp != null ? idProp : autoId;
|
|
984
|
+
return /* @__PURE__ */ jsxs8("div", { className: cn("ph-control-row", wrapperClassName, disabled && "opacity-60"), children: [
|
|
985
|
+
/* @__PURE__ */ jsx12(
|
|
986
|
+
"input",
|
|
987
|
+
__spreadValues({
|
|
988
|
+
id,
|
|
989
|
+
type: "radio",
|
|
990
|
+
disabled,
|
|
991
|
+
className: cn("ph-radio", disabled && "cursor-not-allowed", className)
|
|
992
|
+
}, props)
|
|
993
|
+
),
|
|
994
|
+
/* @__PURE__ */ jsx12("label", { htmlFor: id, className: cn("cursor-pointer", disabled && "opacity-60"), children: label })
|
|
995
|
+
] });
|
|
996
|
+
}
|
|
997
|
+
function Toggle(_a) {
|
|
998
|
+
var _b = _a, {
|
|
999
|
+
id: idProp,
|
|
1000
|
+
label,
|
|
1001
|
+
className,
|
|
1002
|
+
wrapperClassName,
|
|
1003
|
+
disabled
|
|
1004
|
+
} = _b, props = __objRest(_b, [
|
|
1005
|
+
"id",
|
|
1006
|
+
"label",
|
|
1007
|
+
"className",
|
|
1008
|
+
"wrapperClassName",
|
|
1009
|
+
"disabled"
|
|
1010
|
+
]);
|
|
1011
|
+
const autoId = useId();
|
|
1012
|
+
const id = idProp != null ? idProp : autoId;
|
|
1013
|
+
return /* @__PURE__ */ jsxs8("label", { className: cn("ph-control-row-between", wrapperClassName, disabled && "opacity-60"), children: [
|
|
1014
|
+
/* @__PURE__ */ jsx12("span", { className: disabled ? "opacity-60" : void 0, children: label }),
|
|
1015
|
+
/* @__PURE__ */ jsx12(
|
|
1016
|
+
"input",
|
|
1017
|
+
__spreadValues({
|
|
1018
|
+
id,
|
|
1019
|
+
type: "checkbox",
|
|
1020
|
+
role: "switch",
|
|
1021
|
+
disabled,
|
|
1022
|
+
className: cn("ph-toggle", disabled && "cursor-not-allowed", className)
|
|
1023
|
+
}, props)
|
|
1024
|
+
)
|
|
1025
|
+
] });
|
|
1026
|
+
}
|
|
1027
|
+
function Range(_a) {
|
|
1028
|
+
var _b = _a, {
|
|
1029
|
+
label,
|
|
1030
|
+
minLabel,
|
|
1031
|
+
maxLabel,
|
|
1032
|
+
valueLabel,
|
|
1033
|
+
wrapperClassName,
|
|
1034
|
+
className
|
|
1035
|
+
} = _b, props = __objRest(_b, [
|
|
1036
|
+
"label",
|
|
1037
|
+
"minLabel",
|
|
1038
|
+
"maxLabel",
|
|
1039
|
+
"valueLabel",
|
|
1040
|
+
"wrapperClassName",
|
|
1041
|
+
"className"
|
|
1042
|
+
]);
|
|
1043
|
+
return /* @__PURE__ */ jsxs8("div", { className: cn("ph-field", wrapperClassName), children: [
|
|
1044
|
+
label && /* @__PURE__ */ jsx12("label", { className: "ph-label", children: label }),
|
|
1045
|
+
/* @__PURE__ */ jsx12("input", __spreadValues({ type: "range", className: cn("ph-range", className) }, props)),
|
|
1046
|
+
(minLabel || valueLabel || maxLabel) && /* @__PURE__ */ jsxs8("div", { className: "flex justify-between text-xs text-ph-mutedtext", children: [
|
|
1047
|
+
/* @__PURE__ */ jsx12("span", { children: minLabel }),
|
|
1048
|
+
/* @__PURE__ */ jsx12("span", { children: valueLabel }),
|
|
1049
|
+
/* @__PURE__ */ jsx12("span", { children: maxLabel })
|
|
1050
|
+
] })
|
|
1051
|
+
] });
|
|
1052
|
+
}
|
|
1053
|
+
function FileUpload(_a) {
|
|
1054
|
+
var _b = _a, { label, prompt = "Drop file or browse", wrapperClassName, className } = _b, props = __objRest(_b, ["label", "prompt", "wrapperClassName", "className"]);
|
|
1055
|
+
return /* @__PURE__ */ jsxs8("div", { className: cn("ph-field", wrapperClassName), children: [
|
|
1056
|
+
label && /* @__PURE__ */ jsx12("label", { className: "ph-label", children: label }),
|
|
1057
|
+
/* @__PURE__ */ jsxs8("label", { className: "flex cursor-pointer items-center gap-3 rounded-lg border border-dashed border-ph-border bg-ph-surface px-4 py-6 text-sm text-ph-subtle transition hover:bg-ph-muted/60", children: [
|
|
1058
|
+
/* @__PURE__ */ jsx12("input", __spreadValues({ type: "file", className: cn("sr-only", className) }, props)),
|
|
1059
|
+
prompt
|
|
1060
|
+
] })
|
|
1061
|
+
] });
|
|
1062
|
+
}
|
|
1063
|
+
|
|
1064
|
+
// src/components/ui/Modal.tsx
|
|
1065
|
+
import { jsx as jsx13, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1066
|
+
var sizeMap4 = {
|
|
1067
|
+
sm: "max-w-sm",
|
|
1068
|
+
md: "max-w-lg",
|
|
1069
|
+
lg: "max-w-2xl",
|
|
1070
|
+
xl: "max-w-4xl",
|
|
1071
|
+
full: "max-w-[calc(100%-2rem)]"
|
|
1072
|
+
};
|
|
1073
|
+
function Modal({
|
|
1074
|
+
open = false,
|
|
1075
|
+
onClose,
|
|
1076
|
+
title,
|
|
1077
|
+
description,
|
|
1078
|
+
children,
|
|
1079
|
+
footer,
|
|
1080
|
+
size = "md",
|
|
1081
|
+
className,
|
|
1082
|
+
showCloseButton = true
|
|
1083
|
+
}) {
|
|
1084
|
+
if (!open) return null;
|
|
1085
|
+
return /* @__PURE__ */ jsx13("div", { className: "ph-modal-overlay", role: "presentation", onClick: onClose, children: /* @__PURE__ */ jsxs9(
|
|
1086
|
+
"div",
|
|
1087
|
+
{
|
|
1088
|
+
role: "dialog",
|
|
1089
|
+
"aria-modal": true,
|
|
1090
|
+
className: cn(
|
|
1091
|
+
"ph-modal-panel",
|
|
1092
|
+
sizeMap4[size],
|
|
1093
|
+
className
|
|
1094
|
+
),
|
|
1095
|
+
onClick: (e) => e.stopPropagation(),
|
|
1096
|
+
children: [
|
|
1097
|
+
(title || showCloseButton) && /* @__PURE__ */ jsxs9("header", { className: "flex items-start justify-between gap-4", children: [
|
|
1098
|
+
/* @__PURE__ */ jsxs9("div", { children: [
|
|
1099
|
+
title && /* @__PURE__ */ jsx13("h3", { className: "text-lg font-bold text-ph-ink", children: title }),
|
|
1100
|
+
description && /* @__PURE__ */ jsx13("p", { className: "mt-1 text-sm text-ph-subtle", children: description })
|
|
1101
|
+
] }),
|
|
1102
|
+
showCloseButton && onClose && /* @__PURE__ */ jsx13(
|
|
1103
|
+
"button",
|
|
1104
|
+
{
|
|
1105
|
+
type: "button",
|
|
1106
|
+
onClick: onClose,
|
|
1107
|
+
className: "shrink-0 rounded-md p-1 text-ph-subtle hover:bg-black/5 hover:text-ph-ink",
|
|
1108
|
+
"aria-label": "Close",
|
|
1109
|
+
children: /* @__PURE__ */ jsx13(IconClose, { className: "h-5 w-5" })
|
|
1110
|
+
}
|
|
1111
|
+
)
|
|
1112
|
+
] }),
|
|
1113
|
+
/* @__PURE__ */ jsx13("div", { className: "mt-4", children }),
|
|
1114
|
+
footer && /* @__PURE__ */ jsx13("div", { className: "mt-6 flex justify-end gap-2 border-t border-ph-border pt-5", children: footer })
|
|
1115
|
+
]
|
|
1116
|
+
}
|
|
1117
|
+
) });
|
|
1118
|
+
}
|
|
1119
|
+
|
|
1120
|
+
// src/components/ui/Navigation.tsx
|
|
1121
|
+
import { jsx as jsx14, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1122
|
+
function Breadcrumbs({ items, label = "Breadcrumb", className }) {
|
|
1123
|
+
return /* @__PURE__ */ jsx14("nav", { "aria-label": label, className: cn("ph-breadcrumbs", className), children: items.map((item, index) => /* @__PURE__ */ jsxs10("span", { className: "contents", children: [
|
|
1124
|
+
index > 0 ? /* @__PURE__ */ jsx14("span", { className: "ph-breadcrumb-sep", "aria-hidden": "true", children: "/" }) : null,
|
|
1125
|
+
item.current || !item.href ? /* @__PURE__ */ jsx14("span", { className: "ph-breadcrumb-current", "aria-current": item.current ? "page" : void 0, children: item.label }) : /* @__PURE__ */ jsx14("a", { href: item.href, className: "ph-breadcrumb-link", children: item.label })
|
|
1126
|
+
] }, `${item.label}-${index}`)) });
|
|
1127
|
+
}
|
|
1128
|
+
function Pagination({
|
|
1129
|
+
page,
|
|
1130
|
+
totalPages,
|
|
1131
|
+
onPageChange,
|
|
1132
|
+
label = "Pagination",
|
|
1133
|
+
compact = false,
|
|
1134
|
+
className
|
|
1135
|
+
}) {
|
|
1136
|
+
const pages = compact ? [Math.max(1, page - 1), page, Math.min(totalPages, page + 1)] : [1, 2, 3, totalPages];
|
|
1137
|
+
const uniquePages = Array.from(new Set(pages)).filter((n) => n >= 1 && n <= totalPages);
|
|
1138
|
+
return /* @__PURE__ */ jsxs10("nav", { "aria-label": label, className: cn("ph-pagination", className), children: [
|
|
1139
|
+
/* @__PURE__ */ jsx14(
|
|
1140
|
+
"button",
|
|
1141
|
+
{
|
|
1142
|
+
type: "button",
|
|
1143
|
+
className: "ph-pagination-btn",
|
|
1144
|
+
disabled: page <= 1,
|
|
1145
|
+
"aria-label": "Previous page",
|
|
1146
|
+
onClick: () => onPageChange == null ? void 0 : onPageChange(page - 1),
|
|
1147
|
+
children: /* @__PURE__ */ jsx14(IconChevronLeft, { className: "mx-auto h-4 w-4", "aria-hidden": true })
|
|
1148
|
+
}
|
|
1149
|
+
),
|
|
1150
|
+
uniquePages.map((pageNumber, index) => /* @__PURE__ */ jsxs10("span", { className: "contents", children: [
|
|
1151
|
+
!compact && index === uniquePages.length - 1 && pageNumber > 4 ? /* @__PURE__ */ jsx14("span", { className: "ph-pagination-ellipsis", "aria-hidden": "true", children: "..." }) : null,
|
|
1152
|
+
/* @__PURE__ */ jsx14(
|
|
1153
|
+
"button",
|
|
1154
|
+
{
|
|
1155
|
+
type: "button",
|
|
1156
|
+
className: cn("ph-pagination-btn", pageNumber === page && "ph-pagination-btn-active"),
|
|
1157
|
+
"aria-current": pageNumber === page ? "page" : void 0,
|
|
1158
|
+
onClick: () => onPageChange == null ? void 0 : onPageChange(pageNumber),
|
|
1159
|
+
children: pageNumber
|
|
1160
|
+
}
|
|
1161
|
+
)
|
|
1162
|
+
] }, pageNumber)),
|
|
1163
|
+
/* @__PURE__ */ jsx14(
|
|
1164
|
+
"button",
|
|
1165
|
+
{
|
|
1166
|
+
type: "button",
|
|
1167
|
+
className: "ph-pagination-btn",
|
|
1168
|
+
disabled: page >= totalPages,
|
|
1169
|
+
"aria-label": "Next page",
|
|
1170
|
+
onClick: () => onPageChange == null ? void 0 : onPageChange(page + 1),
|
|
1171
|
+
children: /* @__PURE__ */ jsx14(IconChevronRight, { className: "mx-auto h-4 w-4", "aria-hidden": true })
|
|
1172
|
+
}
|
|
1173
|
+
)
|
|
1174
|
+
] });
|
|
1175
|
+
}
|
|
1176
|
+
|
|
1177
|
+
// src/components/ui/Panel.tsx
|
|
1178
|
+
import { jsx as jsx15, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1179
|
+
function Panel(_a) {
|
|
1180
|
+
var _b = _a, { title, description, children, className } = _b, props = __objRest(_b, ["title", "description", "children", "className"]);
|
|
1181
|
+
return /* @__PURE__ */ jsxs11("div", __spreadProps(__spreadValues({ className: cn("ph-panel", className) }, props), { children: [
|
|
1182
|
+
title && /* @__PURE__ */ jsx15("h3", { className: "text-sm font-semibold uppercase tracking-wider text-ph-mutedtext", children: title }),
|
|
1183
|
+
description && /* @__PURE__ */ jsx15("p", { className: "text-sm text-ph-subtle", children: description }),
|
|
1184
|
+
children
|
|
1185
|
+
] }));
|
|
1186
|
+
}
|
|
1187
|
+
|
|
1188
|
+
// src/components/ui/Rating.tsx
|
|
1189
|
+
import { jsx as jsx16, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1190
|
+
function Rating(_a) {
|
|
1191
|
+
var _b = _a, {
|
|
1192
|
+
label,
|
|
1193
|
+
value = 0,
|
|
1194
|
+
max = 5,
|
|
1195
|
+
readOnly = true,
|
|
1196
|
+
onChange,
|
|
1197
|
+
className,
|
|
1198
|
+
wrapperClassName
|
|
1199
|
+
} = _b, props = __objRest(_b, [
|
|
1200
|
+
"label",
|
|
1201
|
+
"value",
|
|
1202
|
+
"max",
|
|
1203
|
+
"readOnly",
|
|
1204
|
+
"onChange",
|
|
1205
|
+
"className",
|
|
1206
|
+
"wrapperClassName"
|
|
1207
|
+
]);
|
|
1208
|
+
const stars = Array.from({ length: max }, (_, index) => index + 1);
|
|
1209
|
+
return /* @__PURE__ */ jsxs12("div", { className: cn("ph-field", wrapperClassName), children: [
|
|
1210
|
+
label && /* @__PURE__ */ jsx16("span", { className: "ph-label", children: label }),
|
|
1211
|
+
/* @__PURE__ */ jsx16(
|
|
1212
|
+
"div",
|
|
1213
|
+
__spreadProps(__spreadValues({
|
|
1214
|
+
className: cn("ph-rating flex", className),
|
|
1215
|
+
role: readOnly ? "img" : "radiogroup",
|
|
1216
|
+
"aria-label": label != null ? label : `Rating: ${value} out of ${max}`
|
|
1217
|
+
}, props), {
|
|
1218
|
+
children: stars.map((star) => {
|
|
1219
|
+
const active = star <= value;
|
|
1220
|
+
if (readOnly) {
|
|
1221
|
+
return /* @__PURE__ */ jsx16(
|
|
1222
|
+
IconStar,
|
|
1223
|
+
{
|
|
1224
|
+
className: cn("h-6 w-6", active ? "text-amber-500" : "text-ph-border"),
|
|
1225
|
+
"aria-hidden": true
|
|
1226
|
+
},
|
|
1227
|
+
star
|
|
1228
|
+
);
|
|
1229
|
+
}
|
|
1230
|
+
return /* @__PURE__ */ jsx16(
|
|
1231
|
+
"button",
|
|
1232
|
+
{
|
|
1233
|
+
type: "button",
|
|
1234
|
+
className: "rounded p-0.5 transition hover:scale-105 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ph-brand",
|
|
1235
|
+
role: "radio",
|
|
1236
|
+
"aria-checked": active,
|
|
1237
|
+
"aria-label": `${star} out of ${max}`,
|
|
1238
|
+
onClick: () => onChange == null ? void 0 : onChange(star),
|
|
1239
|
+
children: /* @__PURE__ */ jsx16(IconStar, { className: cn("h-6 w-6", active ? "text-amber-500" : "text-ph-border") })
|
|
1240
|
+
},
|
|
1241
|
+
star
|
|
1242
|
+
);
|
|
1243
|
+
})
|
|
1244
|
+
})
|
|
1245
|
+
)
|
|
1246
|
+
] });
|
|
1247
|
+
}
|
|
1248
|
+
|
|
1249
|
+
// src/components/ui/SearchInput.tsx
|
|
1250
|
+
import { useId as useId2 } from "react";
|
|
1251
|
+
import { jsx as jsx17, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1252
|
+
function SearchInput(_a) {
|
|
1253
|
+
var _b = _a, {
|
|
1254
|
+
id: idProp,
|
|
1255
|
+
label = "Search",
|
|
1256
|
+
hideLabel = false,
|
|
1257
|
+
shortcut,
|
|
1258
|
+
density = "default",
|
|
1259
|
+
className,
|
|
1260
|
+
wrapperClassName,
|
|
1261
|
+
placeholder
|
|
1262
|
+
} = _b, props = __objRest(_b, [
|
|
1263
|
+
"id",
|
|
1264
|
+
"label",
|
|
1265
|
+
"hideLabel",
|
|
1266
|
+
"shortcut",
|
|
1267
|
+
"density",
|
|
1268
|
+
"className",
|
|
1269
|
+
"wrapperClassName",
|
|
1270
|
+
"placeholder"
|
|
1271
|
+
]);
|
|
1272
|
+
const autoId = useId2();
|
|
1273
|
+
const id = idProp != null ? idProp : autoId;
|
|
1274
|
+
return /* @__PURE__ */ jsxs13("div", { className: cn("relative", wrapperClassName), children: [
|
|
1275
|
+
/* @__PURE__ */ jsx17("label", { htmlFor: id, className: hideLabel ? "sr-only" : "ph-label mb-1.5 block", children: label }),
|
|
1276
|
+
/* @__PURE__ */ jsxs13("div", { className: "relative", children: [
|
|
1277
|
+
shortcut != null ? /* @__PURE__ */ jsx17(
|
|
1278
|
+
"span",
|
|
1279
|
+
{
|
|
1280
|
+
className: "ph-shortcut pointer-events-none absolute left-3 top-1/2 z-10 -translate-y-1/2 text-xs",
|
|
1281
|
+
"aria-hidden": true,
|
|
1282
|
+
children: shortcut
|
|
1283
|
+
}
|
|
1284
|
+
) : null,
|
|
1285
|
+
/* @__PURE__ */ jsx17(
|
|
1286
|
+
"input",
|
|
1287
|
+
__spreadValues({
|
|
1288
|
+
id,
|
|
1289
|
+
type: "search",
|
|
1290
|
+
placeholder,
|
|
1291
|
+
"aria-label": hideLabel ? label : void 0,
|
|
1292
|
+
className: cn(
|
|
1293
|
+
"ph-input w-full",
|
|
1294
|
+
density === "compact" && "max-w-xs !min-h-[2rem] py-1.5 text-sm",
|
|
1295
|
+
shortcut != null && "pl-[3.25rem]",
|
|
1296
|
+
className
|
|
1297
|
+
)
|
|
1298
|
+
}, props)
|
|
1299
|
+
)
|
|
1300
|
+
] })
|
|
1301
|
+
] });
|
|
1302
|
+
}
|
|
1303
|
+
function SearchGroup(_a) {
|
|
1304
|
+
var _b = _a, {
|
|
1305
|
+
id: idProp,
|
|
1306
|
+
label = "Search records",
|
|
1307
|
+
submitLabel = "Search",
|
|
1308
|
+
placeholder = "Persons, actions, flags\u2026",
|
|
1309
|
+
wrapperClassName,
|
|
1310
|
+
className
|
|
1311
|
+
} = _b, props = __objRest(_b, [
|
|
1312
|
+
"id",
|
|
1313
|
+
"label",
|
|
1314
|
+
"submitLabel",
|
|
1315
|
+
"placeholder",
|
|
1316
|
+
"wrapperClassName",
|
|
1317
|
+
"className"
|
|
1318
|
+
]);
|
|
1319
|
+
const autoId = useId2();
|
|
1320
|
+
const id = idProp != null ? idProp : autoId;
|
|
1321
|
+
return /* @__PURE__ */ jsxs13("div", { className: cn("ph-field", wrapperClassName), children: [
|
|
1322
|
+
/* @__PURE__ */ jsx17("label", { htmlFor: id, className: "ph-label", children: label }),
|
|
1323
|
+
/* @__PURE__ */ jsxs13("div", { className: "ph-search-group flex w-full max-w-lg min-h-[2.3125rem] items-stretch divide-x divide-ph-border", children: [
|
|
1324
|
+
/* @__PURE__ */ jsx17(
|
|
1325
|
+
"input",
|
|
1326
|
+
__spreadValues({
|
|
1327
|
+
id,
|
|
1328
|
+
type: "search",
|
|
1329
|
+
placeholder,
|
|
1330
|
+
className: cn("ph-input ph-input-group-field min-w-0 flex-1", className)
|
|
1331
|
+
}, props)
|
|
1332
|
+
),
|
|
1333
|
+
/* @__PURE__ */ jsx17(
|
|
1334
|
+
Button,
|
|
1335
|
+
{
|
|
1336
|
+
type: "submit",
|
|
1337
|
+
variant: "primary",
|
|
1338
|
+
icon: /* @__PURE__ */ jsx17(IconSearch, { className: "h-4 w-4", "aria-hidden": true }),
|
|
1339
|
+
className: "ph-search-group__submit",
|
|
1340
|
+
"aria-label": submitLabel
|
|
1341
|
+
}
|
|
1342
|
+
)
|
|
1343
|
+
] })
|
|
1344
|
+
] });
|
|
1345
|
+
}
|
|
1346
|
+
|
|
1347
|
+
// src/components/ui/Table.tsx
|
|
1348
|
+
import { jsx as jsx18, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
1349
|
+
function Table({
|
|
1350
|
+
data,
|
|
1351
|
+
columns,
|
|
1352
|
+
zebra = false,
|
|
1353
|
+
compact = false,
|
|
1354
|
+
ribbon = false,
|
|
1355
|
+
getRowStyle,
|
|
1356
|
+
className,
|
|
1357
|
+
caption
|
|
1358
|
+
}) {
|
|
1359
|
+
return /* @__PURE__ */ jsx18("div", { className: cn("ph-table-wrap", compact && "ph-table-compact", className), children: /* @__PURE__ */ jsxs14("table", { className: cn("ph-table", zebra && "ph-table-zebra", ribbon && "ph-table--ribbon"), children: [
|
|
1360
|
+
caption && /* @__PURE__ */ jsx18("caption", { className: "sr-only", children: caption }),
|
|
1361
|
+
/* @__PURE__ */ jsx18("thead", { children: /* @__PURE__ */ jsx18("tr", { children: columns.map((col) => /* @__PURE__ */ jsx18("th", { className: col.className, children: col.header }, col.key)) }) }),
|
|
1362
|
+
/* @__PURE__ */ jsx18("tbody", { children: data.map((row, i) => /* @__PURE__ */ jsx18("tr", { style: getRowStyle == null ? void 0 : getRowStyle(row), children: columns.map((col) => /* @__PURE__ */ jsx18("td", { className: col.className, children: col.cell(row) }, col.key)) }, i)) })
|
|
1363
|
+
] }) });
|
|
1364
|
+
}
|
|
1365
|
+
|
|
1366
|
+
// src/components/ui/Stat.tsx
|
|
1367
|
+
import { jsx as jsx19, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
1368
|
+
var toneMap = {
|
|
1369
|
+
default: "text-ph-ink",
|
|
1370
|
+
brand: "text-ph-brand",
|
|
1371
|
+
blue: "text-ph-blue",
|
|
1372
|
+
purple: "text-ph-purple",
|
|
1373
|
+
warning: "text-amber-900"
|
|
1374
|
+
};
|
|
1375
|
+
var statMap = {
|
|
1376
|
+
default: "",
|
|
1377
|
+
brand: "",
|
|
1378
|
+
blue: "",
|
|
1379
|
+
purple: "",
|
|
1380
|
+
warning: "border-amber-200 bg-amber-50/70"
|
|
1381
|
+
};
|
|
1382
|
+
function Stat(_a) {
|
|
1383
|
+
var _b = _a, { icon, label, value, footer, tone = "default", className } = _b, props = __objRest(_b, ["icon", "label", "value", "footer", "tone", "className"]);
|
|
1384
|
+
return /* @__PURE__ */ jsxs15("article", __spreadProps(__spreadValues({ className: cn("ph-stat", statMap[tone], className) }, props), { children: [
|
|
1385
|
+
icon && /* @__PURE__ */ jsx19("div", { className: cn("mb-2 h-7 w-7", toneMap[tone]), children: icon }),
|
|
1386
|
+
/* @__PURE__ */ jsx19("div", { className: cn("ph-stat-label", tone === "warning" && toneMap[tone]), children: label }),
|
|
1387
|
+
/* @__PURE__ */ jsx19("div", { className: cn("ph-stat-val", toneMap[tone]), children: value }),
|
|
1388
|
+
footer && /* @__PURE__ */ jsx19("p", { className: "text-xs text-ph-subtle", children: footer })
|
|
1389
|
+
] }));
|
|
1390
|
+
}
|
|
1391
|
+
|
|
1392
|
+
// src/components/ui/Toast.tsx
|
|
1393
|
+
import { jsx as jsx20, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
1394
|
+
var statusConfig2 = {
|
|
1395
|
+
info: { icon: IconErrorOutline, color: "text-ph-info", bg: "ph-toast-info" },
|
|
1396
|
+
success: { icon: IconCheckCircle, color: "text-ph-success", bg: "ph-toast-success" },
|
|
1397
|
+
warning: { icon: IconExclamation, color: "text-ph-warning", bg: "ph-toast-warning" },
|
|
1398
|
+
danger: { icon: IconCancel, color: "text-ph-danger", bg: "ph-toast-danger" }
|
|
1399
|
+
};
|
|
1400
|
+
function Toast({
|
|
1401
|
+
status = "info",
|
|
1402
|
+
title,
|
|
1403
|
+
description,
|
|
1404
|
+
onDismiss,
|
|
1405
|
+
className
|
|
1406
|
+
}) {
|
|
1407
|
+
const config = statusConfig2[status];
|
|
1408
|
+
const Icon = config.icon;
|
|
1409
|
+
return /* @__PURE__ */ jsxs16("div", { className: cn("ph-toast", config.bg, className), children: [
|
|
1410
|
+
/* @__PURE__ */ jsx20(Icon, { className: cn("mt-0.5 h-5 w-5 shrink-0", config.color), "aria-hidden": true }),
|
|
1411
|
+
/* @__PURE__ */ jsxs16("div", { className: "pr-8", children: [
|
|
1412
|
+
/* @__PURE__ */ jsx20("div", { className: "font-semibold", children: title }),
|
|
1413
|
+
description && /* @__PURE__ */ jsx20("p", { className: "mt-1 text-xs text-ph-subtle", children: description })
|
|
1414
|
+
] }),
|
|
1415
|
+
onDismiss && /* @__PURE__ */ jsx20(
|
|
1416
|
+
"button",
|
|
1417
|
+
{
|
|
1418
|
+
type: "button",
|
|
1419
|
+
"aria-label": `Dismiss ${title}`,
|
|
1420
|
+
className: "absolute right-2 top-2 ph-btn ph-btn-ghost ph-btn-xs ph-btn-circle",
|
|
1421
|
+
onClick: onDismiss,
|
|
1422
|
+
children: /* @__PURE__ */ jsx20(IconClose, { className: "h-4 w-4" })
|
|
1423
|
+
}
|
|
1424
|
+
)
|
|
1425
|
+
] });
|
|
1426
|
+
}
|
|
1427
|
+
function ToastStack({ children, className }) {
|
|
1428
|
+
return /* @__PURE__ */ jsx20("div", { className: cn("ph-toast-stack", className), children });
|
|
1429
|
+
}
|
|
1430
|
+
|
|
1431
|
+
// src/components/ui/Tabs.tsx
|
|
1432
|
+
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
1433
|
+
function Tabs({ items, value, onChange, variant = "pill", className }) {
|
|
1434
|
+
if (variant === "underline") {
|
|
1435
|
+
return /* @__PURE__ */ jsx21("div", { className: cn("flex gap-6 border-b border-ph-border", className), children: items.map((item) => /* @__PURE__ */ jsx21(
|
|
1436
|
+
"button",
|
|
1437
|
+
{
|
|
1438
|
+
type: "button",
|
|
1439
|
+
onClick: () => onChange(item.value),
|
|
1440
|
+
className: cn(
|
|
1441
|
+
"-mb-px border-b-2 pb-2 text-sm font-semibold transition",
|
|
1442
|
+
value === item.value ? "border-ph-brand text-ph-ink" : "border-transparent text-ph-mutedtext hover:text-ph-ink"
|
|
1443
|
+
),
|
|
1444
|
+
children: item.label
|
|
1445
|
+
},
|
|
1446
|
+
item.value
|
|
1447
|
+
)) });
|
|
1448
|
+
}
|
|
1449
|
+
return /* @__PURE__ */ jsx21("div", { className: cn("ph-tabs-row inline-flex", className), children: items.map((item) => /* @__PURE__ */ jsx21(
|
|
1450
|
+
"button",
|
|
1451
|
+
{
|
|
1452
|
+
type: "button",
|
|
1453
|
+
onClick: () => onChange(item.value),
|
|
1454
|
+
className: cn("ph-tab", value === item.value && "ph-tab-active"),
|
|
1455
|
+
children: item.label
|
|
1456
|
+
},
|
|
1457
|
+
item.value
|
|
1458
|
+
)) });
|
|
1459
|
+
}
|
|
1460
|
+
|
|
1461
|
+
// src/components/ui/ThemeDomSync.tsx
|
|
1462
|
+
import { useLayoutEffect } from "react";
|
|
1463
|
+
|
|
1464
|
+
// src/themes/registry.ts
|
|
1465
|
+
var DEFAULT_THEME_ID = "hedgehog-light";
|
|
1466
|
+
var THEMES = [
|
|
1467
|
+
{
|
|
1468
|
+
id: "hedgehog-light",
|
|
1469
|
+
name: "HedgeHog Light",
|
|
1470
|
+
description: "Default Quill warm greys and orange Lemon chrome.",
|
|
1471
|
+
colorScheme: "light",
|
|
1472
|
+
group: "HedgeHog"
|
|
1473
|
+
},
|
|
1474
|
+
{
|
|
1475
|
+
id: "hedgehog-dark",
|
|
1476
|
+
name: "HedgeHog Dark",
|
|
1477
|
+
description: "Dark app shell with HedgeHog orange accents.",
|
|
1478
|
+
colorScheme: "dark",
|
|
1479
|
+
group: "HedgeHog"
|
|
1480
|
+
},
|
|
1481
|
+
{
|
|
1482
|
+
id: "catppuccin-light",
|
|
1483
|
+
name: "Catppuccin Light",
|
|
1484
|
+
description: "Catppuccin Latte \u2014 soft pastels and mauve accent.",
|
|
1485
|
+
colorScheme: "light",
|
|
1486
|
+
group: "Catppuccin"
|
|
1487
|
+
},
|
|
1488
|
+
{
|
|
1489
|
+
id: "catppuccin-dark",
|
|
1490
|
+
name: "Catppuccin Dark",
|
|
1491
|
+
description: "Catppuccin Mocha \u2014 deep base and lavender peach.",
|
|
1492
|
+
colorScheme: "dark",
|
|
1493
|
+
group: "Catppuccin"
|
|
1494
|
+
},
|
|
1495
|
+
{
|
|
1496
|
+
id: "sheets",
|
|
1497
|
+
name: "Sheets",
|
|
1498
|
+
description: "Spreadsheet green on office neutrals.",
|
|
1499
|
+
colorScheme: "light",
|
|
1500
|
+
group: "Productivity"
|
|
1501
|
+
},
|
|
1502
|
+
{
|
|
1503
|
+
id: "sheets-dark",
|
|
1504
|
+
name: "Sheets Dark",
|
|
1505
|
+
description: "Dark shell with spreadsheet green accent.",
|
|
1506
|
+
colorScheme: "dark",
|
|
1507
|
+
group: "Productivity"
|
|
1508
|
+
},
|
|
1509
|
+
{
|
|
1510
|
+
id: "note",
|
|
1511
|
+
name: "Note",
|
|
1512
|
+
description: "Notebook purple on lavender-white chrome.",
|
|
1513
|
+
colorScheme: "light",
|
|
1514
|
+
group: "Productivity"
|
|
1515
|
+
},
|
|
1516
|
+
{
|
|
1517
|
+
id: "note-dark",
|
|
1518
|
+
name: "Note Dark",
|
|
1519
|
+
description: "Dark notebook purple \u2014 night reading mode.",
|
|
1520
|
+
colorScheme: "dark",
|
|
1521
|
+
group: "Productivity"
|
|
1522
|
+
},
|
|
1523
|
+
{
|
|
1524
|
+
id: "presentation",
|
|
1525
|
+
name: "Presentation",
|
|
1526
|
+
description: "Orange-red on office neutrals.",
|
|
1527
|
+
colorScheme: "light",
|
|
1528
|
+
group: "Productivity"
|
|
1529
|
+
},
|
|
1530
|
+
{
|
|
1531
|
+
id: "presentation-dark",
|
|
1532
|
+
name: "Presentation Dark",
|
|
1533
|
+
description: "Dark shell with orange-red accent.",
|
|
1534
|
+
colorScheme: "dark",
|
|
1535
|
+
group: "Productivity"
|
|
1536
|
+
},
|
|
1537
|
+
{
|
|
1538
|
+
id: "socials",
|
|
1539
|
+
name: "Socials",
|
|
1540
|
+
description: "Meta blue accent on familiar social greys.",
|
|
1541
|
+
colorScheme: "light",
|
|
1542
|
+
group: "Social"
|
|
1543
|
+
},
|
|
1544
|
+
{
|
|
1545
|
+
id: "socials-dark",
|
|
1546
|
+
name: "Socials Dark",
|
|
1547
|
+
description: "Social dark mode \u2014 #18191A base and Meta blue.",
|
|
1548
|
+
colorScheme: "dark",
|
|
1549
|
+
group: "Social"
|
|
1550
|
+
},
|
|
1551
|
+
{
|
|
1552
|
+
id: "chats-light",
|
|
1553
|
+
name: "Chats Light",
|
|
1554
|
+
description: "Aubergine brand on clean workspace neutrals.",
|
|
1555
|
+
colorScheme: "light",
|
|
1556
|
+
group: "Chats"
|
|
1557
|
+
},
|
|
1558
|
+
{
|
|
1559
|
+
id: "chats-dark",
|
|
1560
|
+
name: "Chats Dark",
|
|
1561
|
+
description: "Dark sidebar \u2014 #1A1D21 base and green highlights.",
|
|
1562
|
+
colorScheme: "dark",
|
|
1563
|
+
group: "Chats"
|
|
1564
|
+
},
|
|
1565
|
+
{
|
|
1566
|
+
id: "xenide-light",
|
|
1567
|
+
name: "Xenide Light",
|
|
1568
|
+
description: "xenide.io light \u2014 Excel green + purple on neutral greys.",
|
|
1569
|
+
colorScheme: "light",
|
|
1570
|
+
group: "Xenide"
|
|
1571
|
+
},
|
|
1572
|
+
{
|
|
1573
|
+
id: "xenide-dark",
|
|
1574
|
+
name: "Xenide Dark",
|
|
1575
|
+
description: "xenide.io dark \u2014 #0A0A0F base, emerald green + violet.",
|
|
1576
|
+
colorScheme: "dark",
|
|
1577
|
+
group: "Xenide"
|
|
1578
|
+
},
|
|
1579
|
+
{
|
|
1580
|
+
id: "bikini-bottom",
|
|
1581
|
+
name: "Bikini Bottom",
|
|
1582
|
+
description: "SpongeBob palette \u2014 ocean canvas, readable surfaces, character accents.",
|
|
1583
|
+
colorScheme: "light",
|
|
1584
|
+
group: "Fun"
|
|
1585
|
+
},
|
|
1586
|
+
{
|
|
1587
|
+
id: "bikini-bottom-dark",
|
|
1588
|
+
name: "Bikini Bottom Dark",
|
|
1589
|
+
description: "Bikini Bottom at night \u2014 deep ocean with neon character accents.",
|
|
1590
|
+
colorScheme: "dark",
|
|
1591
|
+
group: "Fun"
|
|
1592
|
+
},
|
|
1593
|
+
{
|
|
1594
|
+
id: "turtletime",
|
|
1595
|
+
name: "TurtleTime",
|
|
1596
|
+
description: "Turtle mascot palette \u2014 shell orange, leaf green, and warm cream.",
|
|
1597
|
+
colorScheme: "light",
|
|
1598
|
+
group: "Fun"
|
|
1599
|
+
},
|
|
1600
|
+
{
|
|
1601
|
+
id: "turtletime-dark",
|
|
1602
|
+
name: "TurtleTime Dark",
|
|
1603
|
+
description: "TurtleTime after dusk \u2014 dark olive shell with bright orange clock accents.",
|
|
1604
|
+
colorScheme: "dark",
|
|
1605
|
+
group: "Fun"
|
|
1606
|
+
},
|
|
1607
|
+
{
|
|
1608
|
+
id: "github-light",
|
|
1609
|
+
name: "GitHub Light",
|
|
1610
|
+
description: "GitHub Primer \u2014 #f6f8fa canvas and emphasis blue accents.",
|
|
1611
|
+
colorScheme: "light",
|
|
1612
|
+
group: "GitHub"
|
|
1613
|
+
},
|
|
1614
|
+
{
|
|
1615
|
+
id: "github-dark",
|
|
1616
|
+
name: "GitHub Dark",
|
|
1617
|
+
description: "GitHub dark dimmed \u2014 #0d1117 base and #4493f8 links.",
|
|
1618
|
+
colorScheme: "dark",
|
|
1619
|
+
group: "GitHub"
|
|
1620
|
+
},
|
|
1621
|
+
{
|
|
1622
|
+
id: "rosepine-light",
|
|
1623
|
+
name: "Ros\xE9 Pine Dawn",
|
|
1624
|
+
description: "Ros\xE9 Pine Dawn \u2014 warm paper base with muted iris accents.",
|
|
1625
|
+
colorScheme: "light",
|
|
1626
|
+
group: "Ros\xE9 Pine"
|
|
1627
|
+
},
|
|
1628
|
+
{
|
|
1629
|
+
id: "rosepine-dark",
|
|
1630
|
+
name: "Ros\xE9 Pine",
|
|
1631
|
+
description: "Ros\xE9 Pine Main \u2014 moonlit base with iris and love accents.",
|
|
1632
|
+
colorScheme: "dark",
|
|
1633
|
+
group: "Ros\xE9 Pine"
|
|
1634
|
+
},
|
|
1635
|
+
{
|
|
1636
|
+
id: "notion",
|
|
1637
|
+
name: "Notion",
|
|
1638
|
+
description: "Notion light \u2014 warm off-white canvas, Notion blue accent, signature dark text.",
|
|
1639
|
+
colorScheme: "light",
|
|
1640
|
+
group: "Productivity"
|
|
1641
|
+
},
|
|
1642
|
+
{
|
|
1643
|
+
id: "notion-dark",
|
|
1644
|
+
name: "Notion Dark",
|
|
1645
|
+
description: "Notion dark mode \u2014 dark charcoal canvas with blue accent and clean typography.",
|
|
1646
|
+
colorScheme: "dark",
|
|
1647
|
+
group: "Productivity"
|
|
1648
|
+
}
|
|
1649
|
+
];
|
|
1650
|
+
var THEME_GROUPS = Array.from(new Set(THEMES.map((theme) => theme.group)));
|
|
1651
|
+
function isThemeId(value) {
|
|
1652
|
+
return THEMES.some((theme) => theme.id === value);
|
|
1653
|
+
}
|
|
1654
|
+
function getTheme(id) {
|
|
1655
|
+
return THEMES.find((theme) => theme.id === id);
|
|
1656
|
+
}
|
|
1657
|
+
|
|
1658
|
+
// src/themes/init-theme.ts
|
|
1659
|
+
var STORAGE_KEY = "ph-theme";
|
|
1660
|
+
var VALID_THEMES = THEMES.map((theme) => theme.id);
|
|
1661
|
+
var THEME_INIT_SCRIPT = `(function(){try{var k="${STORAGE_KEY}",d="${DEFAULT_THEME_ID}",v=${JSON.stringify(VALID_THEMES)},t=localStorage.getItem(k);if(t==="xenide")t="xenide-light";if(!t||v.indexOf(t)<0)t=d;document.documentElement.setAttribute("data-theme",t)}catch(e){document.documentElement.setAttribute("data-theme","${DEFAULT_THEME_ID}")}})();`;
|
|
1662
|
+
function persistTheme(themeId) {
|
|
1663
|
+
if (typeof window === "undefined") {
|
|
1664
|
+
return;
|
|
1665
|
+
}
|
|
1666
|
+
if (!isThemeId(themeId)) {
|
|
1667
|
+
return;
|
|
1668
|
+
}
|
|
1669
|
+
document.documentElement.setAttribute("data-theme", themeId);
|
|
1670
|
+
localStorage.setItem(STORAGE_KEY, themeId);
|
|
1671
|
+
}
|
|
1672
|
+
function readStoredTheme() {
|
|
1673
|
+
if (typeof window === "undefined") {
|
|
1674
|
+
return DEFAULT_THEME_ID;
|
|
1675
|
+
}
|
|
1676
|
+
const stored = localStorage.getItem(STORAGE_KEY);
|
|
1677
|
+
if (stored === "xenide") {
|
|
1678
|
+
return "xenide-light";
|
|
1679
|
+
}
|
|
1680
|
+
return stored && isThemeId(stored) ? stored : DEFAULT_THEME_ID;
|
|
1681
|
+
}
|
|
1682
|
+
|
|
1683
|
+
// src/components/ui/ThemeDomSync.tsx
|
|
1684
|
+
function ThemeDomSync() {
|
|
1685
|
+
useLayoutEffect(() => {
|
|
1686
|
+
persistTheme(readStoredTheme());
|
|
1687
|
+
}, []);
|
|
1688
|
+
return null;
|
|
1689
|
+
}
|
|
1690
|
+
|
|
1691
|
+
// src/components/ui/ThemeManager.tsx
|
|
1692
|
+
import { useLayoutEffect as useLayoutEffect2 } from "react";
|
|
1693
|
+
import { Fragment as Fragment5, jsx as jsx22 } from "react/jsx-runtime";
|
|
1694
|
+
function ThemeManager({ children }) {
|
|
1695
|
+
useLayoutEffect2(() => {
|
|
1696
|
+
persistTheme(readStoredTheme());
|
|
1697
|
+
}, []);
|
|
1698
|
+
return /* @__PURE__ */ jsx22(Fragment5, { children });
|
|
1699
|
+
}
|
|
1700
|
+
|
|
1701
|
+
// src/components/ui/ThemeSwitcher.tsx
|
|
1702
|
+
import { useEffect, useState } from "react";
|
|
1703
|
+
import { jsx as jsx23, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
1704
|
+
function ThemeSwitcher({ className }) {
|
|
1705
|
+
const [themeId, setThemeId] = useState("hedgehog-light");
|
|
1706
|
+
useEffect(() => {
|
|
1707
|
+
const id = readStoredTheme();
|
|
1708
|
+
persistTheme(id);
|
|
1709
|
+
setThemeId(id);
|
|
1710
|
+
}, []);
|
|
1711
|
+
return /* @__PURE__ */ jsxs17("label", { className: cn("flex min-w-0 items-center gap-2", className), children: [
|
|
1712
|
+
/* @__PURE__ */ jsx23("span", { className: "shrink-0 text-xs font-medium text-ph-mutedtext sm:text-sm", children: "Theme" }),
|
|
1713
|
+
/* @__PURE__ */ jsx23(
|
|
1714
|
+
"select",
|
|
1715
|
+
{
|
|
1716
|
+
className: "ph-select max-w-[11rem] !min-h-[2rem] py-1 pl-2.5 pr-8 text-xs sm:max-w-[14rem] sm:text-sm",
|
|
1717
|
+
value: themeId,
|
|
1718
|
+
"aria-label": "Colour theme",
|
|
1719
|
+
onChange: (event) => {
|
|
1720
|
+
const next = event.target.value;
|
|
1721
|
+
persistTheme(next);
|
|
1722
|
+
setThemeId(next);
|
|
1723
|
+
},
|
|
1724
|
+
children: THEME_GROUPS.map((group) => /* @__PURE__ */ jsx23("optgroup", { label: group, children: THEMES.filter((theme) => theme.group === group).map((theme) => /* @__PURE__ */ jsx23("option", { value: theme.id, children: theme.name }, theme.id)) }, group))
|
|
1725
|
+
}
|
|
1726
|
+
)
|
|
1727
|
+
] });
|
|
1728
|
+
}
|
|
1729
|
+
|
|
1730
|
+
// src/components/ui/Accordion.tsx
|
|
1731
|
+
import { useState as useState2 } from "react";
|
|
1732
|
+
import { jsx as jsx24, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
1733
|
+
function Accordion({
|
|
1734
|
+
items,
|
|
1735
|
+
allowMultiple = false,
|
|
1736
|
+
defaultOpen = [],
|
|
1737
|
+
className
|
|
1738
|
+
}) {
|
|
1739
|
+
const [openItems, setOpenItems] = useState2(new Set(defaultOpen));
|
|
1740
|
+
const toggleItem = (id) => {
|
|
1741
|
+
setOpenItems((prev) => {
|
|
1742
|
+
const next = new Set(prev);
|
|
1743
|
+
if (next.has(id)) {
|
|
1744
|
+
next.delete(id);
|
|
1745
|
+
} else {
|
|
1746
|
+
if (!allowMultiple) {
|
|
1747
|
+
next.clear();
|
|
1748
|
+
}
|
|
1749
|
+
next.add(id);
|
|
1750
|
+
}
|
|
1751
|
+
return next;
|
|
1752
|
+
});
|
|
1753
|
+
};
|
|
1754
|
+
return /* @__PURE__ */ jsx24("div", { className: cn("divide-y divide-ph-border rounded-xl border border-ph-border bg-ph-surface", className), children: items.map((item) => {
|
|
1755
|
+
const isOpen = openItems.has(item.id);
|
|
1756
|
+
return /* @__PURE__ */ jsxs18("div", { className: "first:rounded-t-xl last:rounded-b-xl", children: [
|
|
1757
|
+
/* @__PURE__ */ jsxs18(
|
|
1758
|
+
"button",
|
|
1759
|
+
{
|
|
1760
|
+
type: "button",
|
|
1761
|
+
onClick: () => toggleItem(item.id),
|
|
1762
|
+
className: "flex w-full items-center justify-between px-5 py-4 text-left transition hover:bg-ph-muted",
|
|
1763
|
+
children: [
|
|
1764
|
+
/* @__PURE__ */ jsx24("span", { className: "font-semibold text-ph-ink", children: item.title }),
|
|
1765
|
+
/* @__PURE__ */ jsx24(
|
|
1766
|
+
IconChevronDown,
|
|
1767
|
+
{
|
|
1768
|
+
className: cn(
|
|
1769
|
+
"h-5 w-5 text-ph-mutedtext transition-transform duration-200",
|
|
1770
|
+
isOpen && "rotate-180"
|
|
1771
|
+
)
|
|
1772
|
+
}
|
|
1773
|
+
)
|
|
1774
|
+
]
|
|
1775
|
+
}
|
|
1776
|
+
),
|
|
1777
|
+
/* @__PURE__ */ jsx24(
|
|
1778
|
+
"div",
|
|
1779
|
+
{
|
|
1780
|
+
className: cn(
|
|
1781
|
+
"grid transition-all duration-200",
|
|
1782
|
+
isOpen ? "grid-rows-[1fr]" : "grid-rows-[0fr]"
|
|
1783
|
+
),
|
|
1784
|
+
children: /* @__PURE__ */ jsx24("div", { className: "overflow-hidden", children: /* @__PURE__ */ jsx24("div", { className: "px-5 pb-4 text-ph-subtle", children: item.content }) })
|
|
1785
|
+
}
|
|
1786
|
+
)
|
|
1787
|
+
] }, item.id);
|
|
1788
|
+
}) });
|
|
1789
|
+
}
|
|
1790
|
+
|
|
1791
|
+
// src/components/ui/Stepper.tsx
|
|
1792
|
+
import { jsx as jsx25, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
1793
|
+
function Stepper({ steps, currentStep, className }) {
|
|
1794
|
+
return /* @__PURE__ */ jsx25("div", { className: cn("flex items-start gap-2", className), children: steps.map((step, index) => {
|
|
1795
|
+
const isCompleted = index < currentStep;
|
|
1796
|
+
const isCurrent = index === currentStep;
|
|
1797
|
+
const isPending = index > currentStep;
|
|
1798
|
+
const isError = step.status === "error";
|
|
1799
|
+
return /* @__PURE__ */ jsxs19("div", { className: "flex flex-1 items-start gap-2", children: [
|
|
1800
|
+
/* @__PURE__ */ jsxs19("div", { className: "flex flex-1 flex-col items-center", children: [
|
|
1801
|
+
/* @__PURE__ */ jsx25(
|
|
1802
|
+
"div",
|
|
1803
|
+
{
|
|
1804
|
+
className: cn(
|
|
1805
|
+
"flex h-9 w-9 items-center justify-center rounded-full text-sm font-bold transition-colors",
|
|
1806
|
+
isCompleted && "bg-ph-success text-white",
|
|
1807
|
+
isCurrent && !isError && "bg-ph-brand text-white ring-4 ring-ph-brand/20",
|
|
1808
|
+
isCurrent && isError && "bg-ph-danger text-white",
|
|
1809
|
+
isPending && "bg-ph-muted text-ph-mutedtext"
|
|
1810
|
+
),
|
|
1811
|
+
children: isCompleted ? /* @__PURE__ */ jsx25("svg", { className: "h-5 w-5", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "3", children: /* @__PURE__ */ jsx25("path", { d: "M5 13l4 4L19 7" }) }) : index + 1
|
|
1812
|
+
}
|
|
1813
|
+
),
|
|
1814
|
+
/* @__PURE__ */ jsxs19("div", { className: "mt-2 text-center", children: [
|
|
1815
|
+
/* @__PURE__ */ jsx25(
|
|
1816
|
+
"p",
|
|
1817
|
+
{
|
|
1818
|
+
className: cn(
|
|
1819
|
+
"text-sm font-semibold",
|
|
1820
|
+
isCurrent && "text-ph-ink",
|
|
1821
|
+
!isCurrent && "text-ph-mutedtext"
|
|
1822
|
+
),
|
|
1823
|
+
children: step.label
|
|
1824
|
+
}
|
|
1825
|
+
),
|
|
1826
|
+
step.description && /* @__PURE__ */ jsx25("p", { className: "mt-0.5 text-xs text-ph-mutedtext", children: step.description })
|
|
1827
|
+
] })
|
|
1828
|
+
] }),
|
|
1829
|
+
index < steps.length - 1 && /* @__PURE__ */ jsx25(
|
|
1830
|
+
"div",
|
|
1831
|
+
{
|
|
1832
|
+
className: cn(
|
|
1833
|
+
"mt-4 h-0.5 flex-1 rounded-full transition-colors",
|
|
1834
|
+
isCompleted ? "bg-ph-success" : "bg-ph-border"
|
|
1835
|
+
)
|
|
1836
|
+
}
|
|
1837
|
+
)
|
|
1838
|
+
] }, step.id);
|
|
1839
|
+
}) });
|
|
1840
|
+
}
|
|
1841
|
+
|
|
1842
|
+
// src/components/ui/SegmentedControl.tsx
|
|
1843
|
+
import { jsx as jsx26, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
1844
|
+
function SegmentedControl({ options, value, onChange, className }) {
|
|
1845
|
+
return /* @__PURE__ */ jsx26(
|
|
1846
|
+
"div",
|
|
1847
|
+
{
|
|
1848
|
+
className: cn(
|
|
1849
|
+
"inline-flex rounded-lg bg-ph-muted p-1",
|
|
1850
|
+
className
|
|
1851
|
+
),
|
|
1852
|
+
children: options.map((option) => /* @__PURE__ */ jsxs20(
|
|
1853
|
+
"button",
|
|
1854
|
+
{
|
|
1855
|
+
type: "button",
|
|
1856
|
+
onClick: () => onChange(option.value),
|
|
1857
|
+
className: cn(
|
|
1858
|
+
"relative flex items-center gap-1.5 rounded-md px-3.5 py-1.5 text-sm font-medium transition-all",
|
|
1859
|
+
value === option.value ? "bg-ph-surface text-ph-ink shadow-ph" : "text-ph-subtle hover:text-ph-ink"
|
|
1860
|
+
),
|
|
1861
|
+
children: [
|
|
1862
|
+
option.icon && /* @__PURE__ */ jsx26("span", { className: "h-4 w-4", children: option.icon }),
|
|
1863
|
+
option.label
|
|
1864
|
+
]
|
|
1865
|
+
},
|
|
1866
|
+
option.value
|
|
1867
|
+
))
|
|
1868
|
+
}
|
|
1869
|
+
);
|
|
1870
|
+
}
|
|
1871
|
+
|
|
1872
|
+
// src/components/ui/CommandPalette.tsx
|
|
1873
|
+
import { useState as useState3, useEffect as useEffect2, useRef } from "react";
|
|
1874
|
+
import { jsx as jsx27, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
1875
|
+
function CommandPalette({
|
|
1876
|
+
items,
|
|
1877
|
+
isOpen,
|
|
1878
|
+
onClose,
|
|
1879
|
+
placeholder = "Type a command or search...",
|
|
1880
|
+
className
|
|
1881
|
+
}) {
|
|
1882
|
+
const [query, setQuery] = useState3("");
|
|
1883
|
+
const [selectedIndex, setSelectedIndex] = useState3(0);
|
|
1884
|
+
const inputRef = useRef(null);
|
|
1885
|
+
const filtered = items.filter(
|
|
1886
|
+
(item) => item.label.toLowerCase().includes(query.toLowerCase())
|
|
1887
|
+
);
|
|
1888
|
+
useEffect2(() => {
|
|
1889
|
+
var _a;
|
|
1890
|
+
if (isOpen) {
|
|
1891
|
+
setQuery("");
|
|
1892
|
+
setSelectedIndex(0);
|
|
1893
|
+
(_a = inputRef.current) == null ? void 0 : _a.focus();
|
|
1894
|
+
}
|
|
1895
|
+
}, [isOpen]);
|
|
1896
|
+
useEffect2(() => {
|
|
1897
|
+
const handleKeyDown = (e) => {
|
|
1898
|
+
var _a;
|
|
1899
|
+
if (!isOpen) return;
|
|
1900
|
+
switch (e.key) {
|
|
1901
|
+
case "ArrowDown":
|
|
1902
|
+
e.preventDefault();
|
|
1903
|
+
setSelectedIndex((i) => (i + 1) % filtered.length);
|
|
1904
|
+
break;
|
|
1905
|
+
case "ArrowUp":
|
|
1906
|
+
e.preventDefault();
|
|
1907
|
+
setSelectedIndex((i) => (i - 1 + filtered.length) % filtered.length);
|
|
1908
|
+
break;
|
|
1909
|
+
case "Enter":
|
|
1910
|
+
e.preventDefault();
|
|
1911
|
+
(_a = filtered[selectedIndex]) == null ? void 0 : _a.onSelect();
|
|
1912
|
+
onClose();
|
|
1913
|
+
break;
|
|
1914
|
+
case "Escape":
|
|
1915
|
+
onClose();
|
|
1916
|
+
break;
|
|
1917
|
+
}
|
|
1918
|
+
};
|
|
1919
|
+
window.addEventListener("keydown", handleKeyDown);
|
|
1920
|
+
return () => window.removeEventListener("keydown", handleKeyDown);
|
|
1921
|
+
}, [isOpen, filtered, selectedIndex, onClose]);
|
|
1922
|
+
if (!isOpen) return null;
|
|
1923
|
+
return /* @__PURE__ */ jsx27("div", { className: "fixed inset-0 z-50 flex items-start justify-center bg-black/40 pt-[20vh] backdrop-blur-sm", children: /* @__PURE__ */ jsxs21(
|
|
1924
|
+
"div",
|
|
1925
|
+
{
|
|
1926
|
+
className: cn(
|
|
1927
|
+
"w-full max-w-xl overflow-hidden rounded-xl border border-ph-border bg-ph-surface shadow-ph-md",
|
|
1928
|
+
className
|
|
1929
|
+
),
|
|
1930
|
+
children: [
|
|
1931
|
+
/* @__PURE__ */ jsxs21("div", { className: "flex items-center gap-3 border-b border-ph-border px-4 py-3", children: [
|
|
1932
|
+
/* @__PURE__ */ jsx27(IconSearch, { className: "h-5 w-5 text-ph-mutedtext" }),
|
|
1933
|
+
/* @__PURE__ */ jsx27(
|
|
1934
|
+
"input",
|
|
1935
|
+
{
|
|
1936
|
+
ref: inputRef,
|
|
1937
|
+
type: "text",
|
|
1938
|
+
value: query,
|
|
1939
|
+
onChange: (e) => {
|
|
1940
|
+
setQuery(e.target.value);
|
|
1941
|
+
setSelectedIndex(0);
|
|
1942
|
+
},
|
|
1943
|
+
placeholder,
|
|
1944
|
+
className: "flex-1 bg-transparent text-ph-ink outline-none placeholder:text-ph-mutedtext"
|
|
1945
|
+
}
|
|
1946
|
+
),
|
|
1947
|
+
/* @__PURE__ */ jsx27("kbd", { className: "rounded border border-ph-border bg-ph-muted px-1.5 py-0.5 text-xs text-ph-mutedtext", children: "ESC" })
|
|
1948
|
+
] }),
|
|
1949
|
+
/* @__PURE__ */ jsx27("div", { className: "max-h-[50vh] overflow-y-auto py-2", children: filtered.length === 0 ? /* @__PURE__ */ jsx27("div", { className: "px-4 py-8 text-center text-sm text-ph-mutedtext", children: "No results found." }) : filtered.map((item, index) => /* @__PURE__ */ jsxs21(
|
|
1950
|
+
"button",
|
|
1951
|
+
{
|
|
1952
|
+
type: "button",
|
|
1953
|
+
onClick: () => {
|
|
1954
|
+
item.onSelect();
|
|
1955
|
+
onClose();
|
|
1956
|
+
},
|
|
1957
|
+
onMouseEnter: () => setSelectedIndex(index),
|
|
1958
|
+
className: cn(
|
|
1959
|
+
"flex w-full items-center gap-3 px-4 py-2.5 text-left text-sm transition-colors",
|
|
1960
|
+
index === selectedIndex ? "bg-ph-muted text-ph-ink" : "text-ph-subtle"
|
|
1961
|
+
),
|
|
1962
|
+
children: [
|
|
1963
|
+
item.icon && /* @__PURE__ */ jsx27("span", { className: "h-5 w-5", children: item.icon }),
|
|
1964
|
+
/* @__PURE__ */ jsx27("span", { className: "flex-1", children: item.label }),
|
|
1965
|
+
item.shortcut && /* @__PURE__ */ jsx27("kbd", { className: "rounded border border-ph-border bg-ph-surface px-1.5 py-0.5 text-xs text-ph-mutedtext", children: item.shortcut })
|
|
1966
|
+
]
|
|
1967
|
+
},
|
|
1968
|
+
item.id
|
|
1969
|
+
)) })
|
|
1970
|
+
]
|
|
1971
|
+
}
|
|
1972
|
+
) });
|
|
1973
|
+
}
|
|
1974
|
+
|
|
1975
|
+
// src/components/ui/Calendar.tsx
|
|
1976
|
+
import { useState as useState4 } from "react";
|
|
1977
|
+
import { jsx as jsx28, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
1978
|
+
function Calendar({ value, onChange, className }) {
|
|
1979
|
+
const [currentMonth, setCurrentMonth] = useState4(value || /* @__PURE__ */ new Date());
|
|
1980
|
+
const today = /* @__PURE__ */ new Date();
|
|
1981
|
+
const year = currentMonth.getFullYear();
|
|
1982
|
+
const month = currentMonth.getMonth();
|
|
1983
|
+
const firstDay = new Date(year, month, 1).getDay();
|
|
1984
|
+
const daysInMonth = new Date(year, month + 1, 0).getDate();
|
|
1985
|
+
const prevMonth = () => setCurrentMonth(new Date(year, month - 1, 1));
|
|
1986
|
+
const nextMonth = () => setCurrentMonth(new Date(year, month + 1, 1));
|
|
1987
|
+
const monthNames = [
|
|
1988
|
+
"January",
|
|
1989
|
+
"February",
|
|
1990
|
+
"March",
|
|
1991
|
+
"April",
|
|
1992
|
+
"May",
|
|
1993
|
+
"June",
|
|
1994
|
+
"July",
|
|
1995
|
+
"August",
|
|
1996
|
+
"September",
|
|
1997
|
+
"October",
|
|
1998
|
+
"November",
|
|
1999
|
+
"December"
|
|
2000
|
+
];
|
|
2001
|
+
const weekDays = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"];
|
|
2002
|
+
const isSelected = (day) => {
|
|
2003
|
+
if (!value) return false;
|
|
2004
|
+
return value.getDate() === day && value.getMonth() === month && value.getFullYear() === year;
|
|
2005
|
+
};
|
|
2006
|
+
const isToday = (day) => {
|
|
2007
|
+
return today.getDate() === day && today.getMonth() === month && today.getFullYear() === year;
|
|
2008
|
+
};
|
|
2009
|
+
const handleSelect = (day) => {
|
|
2010
|
+
onChange == null ? void 0 : onChange(new Date(year, month, day));
|
|
2011
|
+
};
|
|
2012
|
+
const days = [];
|
|
2013
|
+
for (let i = 0; i < firstDay; i++) {
|
|
2014
|
+
days.push(null);
|
|
2015
|
+
}
|
|
2016
|
+
for (let i = 1; i <= daysInMonth; i++) {
|
|
2017
|
+
days.push(i);
|
|
2018
|
+
}
|
|
2019
|
+
return /* @__PURE__ */ jsxs22("div", { className: cn("w-[280px] rounded-xl border border-ph-border bg-ph-surface p-4 shadow-ph", className), children: [
|
|
2020
|
+
/* @__PURE__ */ jsxs22("div", { className: "mb-4 flex items-center justify-between", children: [
|
|
2021
|
+
/* @__PURE__ */ jsx28(
|
|
2022
|
+
"button",
|
|
2023
|
+
{
|
|
2024
|
+
type: "button",
|
|
2025
|
+
onClick: prevMonth,
|
|
2026
|
+
className: "rounded-lg p-1 text-ph-subtle transition hover:bg-ph-muted hover:text-ph-ink",
|
|
2027
|
+
children: /* @__PURE__ */ jsx28("svg", { className: "h-5 w-5", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: /* @__PURE__ */ jsx28("path", { d: "M15 18l-6-6 6-6" }) })
|
|
2028
|
+
}
|
|
2029
|
+
),
|
|
2030
|
+
/* @__PURE__ */ jsxs22("span", { className: "text-sm font-semibold text-ph-ink", children: [
|
|
2031
|
+
monthNames[month],
|
|
2032
|
+
" ",
|
|
2033
|
+
year
|
|
2034
|
+
] }),
|
|
2035
|
+
/* @__PURE__ */ jsx28(
|
|
2036
|
+
"button",
|
|
2037
|
+
{
|
|
2038
|
+
type: "button",
|
|
2039
|
+
onClick: nextMonth,
|
|
2040
|
+
className: "rounded-lg p-1 text-ph-subtle transition hover:bg-ph-muted hover:text-ph-ink",
|
|
2041
|
+
children: /* @__PURE__ */ jsx28("svg", { className: "h-5 w-5", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: /* @__PURE__ */ jsx28("path", { d: "M9 18l6-6-6-6" }) })
|
|
2042
|
+
}
|
|
2043
|
+
)
|
|
2044
|
+
] }),
|
|
2045
|
+
/* @__PURE__ */ jsxs22("div", { className: "grid grid-cols-7 gap-1", children: [
|
|
2046
|
+
weekDays.map((day) => /* @__PURE__ */ jsx28("div", { className: "py-1 text-center text-xs font-medium text-ph-mutedtext", children: day }, day)),
|
|
2047
|
+
days.map((day, index) => /* @__PURE__ */ jsx28("div", { className: "aspect-square", children: day && /* @__PURE__ */ jsx28(
|
|
2048
|
+
"button",
|
|
2049
|
+
{
|
|
2050
|
+
type: "button",
|
|
2051
|
+
onClick: () => handleSelect(day),
|
|
2052
|
+
className: cn(
|
|
2053
|
+
"flex h-full w-full items-center justify-center rounded-lg text-sm transition-colors",
|
|
2054
|
+
isSelected(day) ? "bg-ph-brand font-semibold text-white shadow-ph" : isToday(day) ? "bg-ph-muted font-semibold text-ph-brand ring-1 ring-ph-brand/30" : "text-ph-ink hover:bg-ph-muted"
|
|
2055
|
+
),
|
|
2056
|
+
children: day
|
|
2057
|
+
}
|
|
2058
|
+
) }, index))
|
|
2059
|
+
] })
|
|
2060
|
+
] });
|
|
2061
|
+
}
|
|
2062
|
+
|
|
2063
|
+
// src/components/ui/HoverCard.tsx
|
|
2064
|
+
import { useState as useState5 } from "react";
|
|
2065
|
+
import { jsx as jsx29, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
2066
|
+
function HoverCard({ trigger, children, className }) {
|
|
2067
|
+
const [isVisible, setIsVisible] = useState5(false);
|
|
2068
|
+
return /* @__PURE__ */ jsxs23(
|
|
2069
|
+
"div",
|
|
2070
|
+
{
|
|
2071
|
+
className: "relative inline-block",
|
|
2072
|
+
onMouseEnter: () => setIsVisible(true),
|
|
2073
|
+
onMouseLeave: () => setIsVisible(false),
|
|
2074
|
+
children: [
|
|
2075
|
+
trigger,
|
|
2076
|
+
/* @__PURE__ */ jsxs23(
|
|
2077
|
+
"div",
|
|
2078
|
+
{
|
|
2079
|
+
className: cn(
|
|
2080
|
+
"absolute left-1/2 top-full z-50 mt-2 w-64 -translate-x-1/2 rounded-lg border border-ph-border bg-ph-surface p-4 shadow-ph-md transition-all duration-150",
|
|
2081
|
+
isVisible ? "visible translate-y-0 opacity-100" : "invisible -translate-y-1 opacity-0",
|
|
2082
|
+
className
|
|
2083
|
+
),
|
|
2084
|
+
children: [
|
|
2085
|
+
/* @__PURE__ */ jsx29("div", { className: "absolute -top-1.5 left-1/2 h-3 w-3 -translate-x-1/2 rotate-45 border-l border-t border-ph-border bg-ph-surface" }),
|
|
2086
|
+
/* @__PURE__ */ jsx29("div", { className: "relative", children })
|
|
2087
|
+
]
|
|
2088
|
+
}
|
|
2089
|
+
)
|
|
2090
|
+
]
|
|
2091
|
+
}
|
|
2092
|
+
);
|
|
2093
|
+
}
|
|
2094
|
+
|
|
2095
|
+
// src/components/ui/EmptyState.tsx
|
|
2096
|
+
import { jsx as jsx30, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
2097
|
+
function EmptyState({ icon, title, description, action, className }) {
|
|
2098
|
+
return /* @__PURE__ */ jsxs24(
|
|
2099
|
+
"div",
|
|
2100
|
+
{
|
|
2101
|
+
className: cn(
|
|
2102
|
+
"flex flex-col items-center justify-center rounded-xl border border-dashed border-ph-border bg-ph-muted/50 px-8 py-16 text-center",
|
|
2103
|
+
className
|
|
2104
|
+
),
|
|
2105
|
+
children: [
|
|
2106
|
+
icon && /* @__PURE__ */ jsx30("div", { className: "mb-4 flex h-14 w-14 items-center justify-center rounded-full bg-ph-muted text-ph-mutedtext", children: icon }),
|
|
2107
|
+
/* @__PURE__ */ jsx30("h3", { className: "text-base font-semibold text-ph-ink", children: title }),
|
|
2108
|
+
description && /* @__PURE__ */ jsx30("p", { className: "mt-1 max-w-sm text-sm text-ph-subtle", children: description }),
|
|
2109
|
+
action && /* @__PURE__ */ jsx30("div", { className: "mt-4", children: action })
|
|
2110
|
+
]
|
|
2111
|
+
}
|
|
2112
|
+
);
|
|
2113
|
+
}
|
|
2114
|
+
|
|
2115
|
+
// src/components/ui/FilterChips.tsx
|
|
2116
|
+
import { jsx as jsx31, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
2117
|
+
function FilterChips({ chips, onToggle, onRemove, className }) {
|
|
2118
|
+
return /* @__PURE__ */ jsx31("div", { className: cn("flex flex-wrap gap-2", className), children: chips.map((chip) => /* @__PURE__ */ jsxs25(
|
|
2119
|
+
"button",
|
|
2120
|
+
{
|
|
2121
|
+
type: "button",
|
|
2122
|
+
onClick: () => onToggle(chip.id),
|
|
2123
|
+
className: cn(
|
|
2124
|
+
"inline-flex items-center gap-1.5 rounded-full px-3 py-1.5 text-sm font-medium transition-colors",
|
|
2125
|
+
chip.active ? "bg-ph-brand text-white" : "bg-ph-muted text-ph-subtle hover:bg-ph-border hover:text-ph-ink"
|
|
2126
|
+
),
|
|
2127
|
+
children: [
|
|
2128
|
+
chip.label,
|
|
2129
|
+
chip.active && /* @__PURE__ */ jsx31(
|
|
2130
|
+
"span",
|
|
2131
|
+
{
|
|
2132
|
+
onClick: (e) => {
|
|
2133
|
+
e.stopPropagation();
|
|
2134
|
+
onRemove(chip.id);
|
|
2135
|
+
},
|
|
2136
|
+
className: "ml-0.5 flex h-4 w-4 cursor-pointer items-center justify-center rounded-full hover:bg-white/20",
|
|
2137
|
+
children: /* @__PURE__ */ jsx31(IconClose, { className: "h-3 w-3" })
|
|
2138
|
+
}
|
|
2139
|
+
)
|
|
2140
|
+
]
|
|
2141
|
+
},
|
|
2142
|
+
chip.id
|
|
2143
|
+
)) });
|
|
2144
|
+
}
|
|
2145
|
+
|
|
2146
|
+
// src/components/ui/CodeBlock.tsx
|
|
2147
|
+
import { useState as useState6 } from "react";
|
|
2148
|
+
import { jsx as jsx32, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
2149
|
+
function CodeBlock({ code, language = "tsx", filename, className }) {
|
|
2150
|
+
const [copied, setCopied] = useState6(false);
|
|
2151
|
+
const handleCopy = async () => {
|
|
2152
|
+
await navigator.clipboard.writeText(code);
|
|
2153
|
+
setCopied(true);
|
|
2154
|
+
setTimeout(() => setCopied(false), 2e3);
|
|
2155
|
+
};
|
|
2156
|
+
return /* @__PURE__ */ jsxs26("div", { className: cn("overflow-hidden rounded-lg border border-ph-border bg-[#1a1a2e]", className), children: [
|
|
2157
|
+
(filename || language) && /* @__PURE__ */ jsxs26("div", { className: "flex items-center justify-between border-b border-white/10 px-4 py-2", children: [
|
|
2158
|
+
/* @__PURE__ */ jsxs26("div", { className: "flex items-center gap-2", children: [
|
|
2159
|
+
/* @__PURE__ */ jsxs26("div", { className: "flex gap-1.5", children: [
|
|
2160
|
+
/* @__PURE__ */ jsx32("div", { className: "h-3 w-3 rounded-full bg-red-400" }),
|
|
2161
|
+
/* @__PURE__ */ jsx32("div", { className: "h-3 w-3 rounded-full bg-amber-400" }),
|
|
2162
|
+
/* @__PURE__ */ jsx32("div", { className: "h-3 w-3 rounded-full bg-emerald-400" })
|
|
2163
|
+
] }),
|
|
2164
|
+
filename && /* @__PURE__ */ jsx32("span", { className: "ml-2 text-xs text-white/60", children: filename })
|
|
2165
|
+
] }),
|
|
2166
|
+
/* @__PURE__ */ jsx32(
|
|
2167
|
+
"button",
|
|
2168
|
+
{
|
|
2169
|
+
type: "button",
|
|
2170
|
+
onClick: handleCopy,
|
|
2171
|
+
className: "text-xs text-white/60 transition hover:text-white",
|
|
2172
|
+
children: copied ? "Copied!" : "Copy"
|
|
2173
|
+
}
|
|
2174
|
+
)
|
|
2175
|
+
] }),
|
|
2176
|
+
/* @__PURE__ */ jsx32("pre", { className: "overflow-x-auto p-4 text-sm leading-relaxed", children: /* @__PURE__ */ jsx32("code", { className: "font-mono text-[#e4e4e7]", children: code }) })
|
|
2177
|
+
] });
|
|
2178
|
+
}
|
|
2179
|
+
|
|
2180
|
+
// src/components/ui/ComponentDocs.tsx
|
|
2181
|
+
import { jsx as jsx33, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
2182
|
+
function ComponentDocs({ title = "Props & variants", rows, defaultOpen = false, className }) {
|
|
2183
|
+
return /* @__PURE__ */ jsxs27("details", { className: cn("ph-panel group overflow-hidden p-0", className), open: defaultOpen, children: [
|
|
2184
|
+
/* @__PURE__ */ jsxs27("summary", { className: "flex cursor-pointer list-none items-center justify-between gap-4 border-b border-ph-border px-4 py-3 transition hover:bg-ph-muted/60 [&::-webkit-details-marker]:hidden", children: [
|
|
2185
|
+
/* @__PURE__ */ jsx33("h3", { className: "text-xs font-semibold uppercase tracking-wider text-ph-mutedtext", children: title }),
|
|
2186
|
+
/* @__PURE__ */ jsxs27("span", { className: "rounded-full border border-ph-border bg-ph-surface px-2 py-1 text-[10px] font-semibold uppercase tracking-wider text-ph-mutedtext transition group-open:bg-ph-brand group-open:text-white", children: [
|
|
2187
|
+
/* @__PURE__ */ jsx33("span", { className: "group-open:hidden", children: "Show" }),
|
|
2188
|
+
/* @__PURE__ */ jsx33("span", { className: "hidden group-open:inline", children: "Hide" })
|
|
2189
|
+
] })
|
|
2190
|
+
] }),
|
|
2191
|
+
/* @__PURE__ */ jsx33("div", { className: "overflow-x-auto border-t border-ph-border", children: /* @__PURE__ */ jsxs27("table", { className: "w-full text-left text-sm", children: [
|
|
2192
|
+
/* @__PURE__ */ jsx33("thead", { className: "bg-ph-muted text-xs uppercase tracking-wider text-ph-mutedtext", children: /* @__PURE__ */ jsxs27("tr", { children: [
|
|
2193
|
+
/* @__PURE__ */ jsx33("th", { className: "px-4 py-2 font-semibold", children: "Prop" }),
|
|
2194
|
+
/* @__PURE__ */ jsx33("th", { className: "px-4 py-2 font-semibold", children: "Type" }),
|
|
2195
|
+
/* @__PURE__ */ jsx33("th", { className: "px-4 py-2 font-semibold", children: "Default" }),
|
|
2196
|
+
/* @__PURE__ */ jsx33("th", { className: "px-4 py-2 font-semibold", children: "Use" })
|
|
2197
|
+
] }) }),
|
|
2198
|
+
/* @__PURE__ */ jsx33("tbody", { className: "divide-y divide-ph-border", children: rows.map((row) => {
|
|
2199
|
+
var _a;
|
|
2200
|
+
return /* @__PURE__ */ jsxs27("tr", { children: [
|
|
2201
|
+
/* @__PURE__ */ jsx33("td", { className: "px-4 py-3 align-top font-mono text-xs text-ph-ink", children: row.name }),
|
|
2202
|
+
/* @__PURE__ */ jsx33("td", { className: "px-4 py-3 align-top font-mono text-xs text-ph-subtle", children: row.type }),
|
|
2203
|
+
/* @__PURE__ */ jsx33("td", { className: "px-4 py-3 align-top font-mono text-xs text-ph-subtle", children: (_a = row.defaultValue) != null ? _a : "-" }),
|
|
2204
|
+
/* @__PURE__ */ jsx33("td", { className: "px-4 py-3 align-top text-ph-subtle", children: row.description })
|
|
2205
|
+
] }, row.name);
|
|
2206
|
+
}) })
|
|
2207
|
+
] }) })
|
|
2208
|
+
] });
|
|
2209
|
+
}
|
|
2210
|
+
|
|
2211
|
+
// src/components/ui/ShowcaseWrapper.tsx
|
|
2212
|
+
import { useState as useState7 } from "react";
|
|
2213
|
+
import { jsx as jsx34, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
2214
|
+
function ShowcaseWrapper({
|
|
2215
|
+
id,
|
|
2216
|
+
title,
|
|
2217
|
+
description,
|
|
2218
|
+
docs,
|
|
2219
|
+
code,
|
|
2220
|
+
filename = "Example.tsx",
|
|
2221
|
+
children,
|
|
2222
|
+
className
|
|
2223
|
+
}) {
|
|
2224
|
+
var _a;
|
|
2225
|
+
const [showCode, setShowCode] = useState7(false);
|
|
2226
|
+
const fallbackId = (_a = titleIdMap[title]) != null ? _a : title.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-|-$/g, "");
|
|
2227
|
+
return /* @__PURE__ */ jsxs28("section", { id: id != null ? id : fallbackId, className: cn("scroll-mt-20", className), children: [
|
|
2228
|
+
/* @__PURE__ */ jsxs28("div", { className: "ph-h2-rule mb-8", children: [
|
|
2229
|
+
/* @__PURE__ */ jsxs28("div", { className: "flex items-center gap-1.5", children: [
|
|
2230
|
+
/* @__PURE__ */ jsx34("h2", { children: title }),
|
|
2231
|
+
/* @__PURE__ */ jsx34(
|
|
2232
|
+
"button",
|
|
2233
|
+
{
|
|
2234
|
+
type: "button",
|
|
2235
|
+
onClick: () => setShowCode(!showCode),
|
|
2236
|
+
className: cn(
|
|
2237
|
+
"flex h-10 w-10 items-center justify-center rounded-full border transition-all",
|
|
2238
|
+
showCode ? "border-ph-brand bg-ph-brand text-white shadow-lg shadow-ph-brand/25" : "border-ph-border bg-ph-surface text-ph-subtle hover:border-ph-brand hover:text-ph-brand"
|
|
2239
|
+
),
|
|
2240
|
+
title: showCode ? "Hide code" : "Show code",
|
|
2241
|
+
children: /* @__PURE__ */ jsxs28(
|
|
2242
|
+
"svg",
|
|
2243
|
+
{
|
|
2244
|
+
className: "h-5 w-5",
|
|
2245
|
+
viewBox: "0 0 24 24",
|
|
2246
|
+
fill: "none",
|
|
2247
|
+
stroke: "currentColor",
|
|
2248
|
+
strokeWidth: "2",
|
|
2249
|
+
strokeLinecap: "round",
|
|
2250
|
+
strokeLinejoin: "round",
|
|
2251
|
+
children: [
|
|
2252
|
+
/* @__PURE__ */ jsx34("rect", { x: "2", y: "3", width: "20", height: "14", rx: "2", ry: "2" }),
|
|
2253
|
+
/* @__PURE__ */ jsx34("line", { x1: "8", y1: "21", x2: "16", y2: "21" }),
|
|
2254
|
+
/* @__PURE__ */ jsx34("line", { x1: "12", y1: "17", x2: "12", y2: "21" }),
|
|
2255
|
+
/* @__PURE__ */ jsx34("line", { x1: "6", y1: "8", x2: "6", y2: "8" }),
|
|
2256
|
+
/* @__PURE__ */ jsx34("line", { x1: "10", y1: "8", x2: "10", y2: "8" })
|
|
2257
|
+
]
|
|
2258
|
+
}
|
|
2259
|
+
)
|
|
2260
|
+
}
|
|
2261
|
+
)
|
|
2262
|
+
] }),
|
|
2263
|
+
/* @__PURE__ */ jsx34("hr", {})
|
|
2264
|
+
] }),
|
|
2265
|
+
description && /* @__PURE__ */ jsx34("p", { className: "mb-6 text-sm text-ph-subtle", children: description }),
|
|
2266
|
+
docs && /* @__PURE__ */ jsx34("div", { className: "mb-6", children: docs }),
|
|
2267
|
+
/* @__PURE__ */ jsxs28(
|
|
2268
|
+
"div",
|
|
2269
|
+
{
|
|
2270
|
+
className: cn(
|
|
2271
|
+
"gap-6",
|
|
2272
|
+
showCode ? "lg:grid lg:grid-cols-[1fr,minmax(360px,420px)]" : "block"
|
|
2273
|
+
),
|
|
2274
|
+
children: [
|
|
2275
|
+
/* @__PURE__ */ jsx34("div", { className: cn("min-w-0", showCode && "lg:pr-2"), children }),
|
|
2276
|
+
/* @__PURE__ */ jsx34(
|
|
2277
|
+
"div",
|
|
2278
|
+
{
|
|
2279
|
+
className: cn(
|
|
2280
|
+
"transition-all duration-300",
|
|
2281
|
+
showCode ? "block opacity-100" : "hidden opacity-0 lg:hidden"
|
|
2282
|
+
),
|
|
2283
|
+
children: /* @__PURE__ */ jsx34("div", { className: "sticky top-20", children: /* @__PURE__ */ jsx34(CodeBlock, { code, filename }) })
|
|
2284
|
+
}
|
|
2285
|
+
)
|
|
2286
|
+
]
|
|
2287
|
+
}
|
|
2288
|
+
)
|
|
2289
|
+
] });
|
|
2290
|
+
}
|
|
2291
|
+
var titleIdMap = {
|
|
2292
|
+
"Icons": "icons",
|
|
2293
|
+
"Colour tokens": "colors",
|
|
2294
|
+
"Buttons": "buttons",
|
|
2295
|
+
"Badges": "badges",
|
|
2296
|
+
"Alerts": "alerts",
|
|
2297
|
+
"Toasts": "toasts",
|
|
2298
|
+
"Cards": "cards",
|
|
2299
|
+
"Forms": "forms",
|
|
2300
|
+
"Inputs & Forms": "forms",
|
|
2301
|
+
"Tables": "tables",
|
|
2302
|
+
"Accordion": "accordion",
|
|
2303
|
+
"Calendar": "calendar",
|
|
2304
|
+
"Hover Card": "hovercard",
|
|
2305
|
+
"Modals": "modals",
|
|
2306
|
+
"Drawers": "drawers",
|
|
2307
|
+
"Navigation chrome": "navigation",
|
|
2308
|
+
"Navigation utilities": "utilities",
|
|
2309
|
+
"Stepper": "stepper",
|
|
2310
|
+
"Command Palette": "command",
|
|
2311
|
+
"Filter Chips": "filters",
|
|
2312
|
+
"Empty State": "emptystate",
|
|
2313
|
+
"Charts (PostHog-style)": "charts",
|
|
2314
|
+
"Dashboard shells": "dashboard",
|
|
2315
|
+
"Tabs": "tabs",
|
|
2316
|
+
"Dropdowns": "dropdowns",
|
|
2317
|
+
"Progress & loading": "progress",
|
|
2318
|
+
"Tooltip": "tooltip",
|
|
2319
|
+
"Avatars": "avatars",
|
|
2320
|
+
"Stats & conversational UI": "stats",
|
|
2321
|
+
"Timeline": "timeline",
|
|
2322
|
+
"Countdown motif": "countdown",
|
|
2323
|
+
"Keyboard glyphs": "kbd",
|
|
2324
|
+
"Icon swap": "swap",
|
|
2325
|
+
"Stacked surfaces": "stack",
|
|
2326
|
+
"Diff slider": "diff",
|
|
2327
|
+
"Badge hotspots": "indicator",
|
|
2328
|
+
"Terminal capture": "code-mockup"
|
|
2329
|
+
};
|
|
2330
|
+
|
|
2331
|
+
// src/components/ui/CollapsibleSection.tsx
|
|
2332
|
+
import { useState as useState8 } from "react";
|
|
2333
|
+
import { jsx as jsx35, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
2334
|
+
function CollapsibleSection({ title, children, defaultOpen = true, id }) {
|
|
2335
|
+
const [isOpen, setIsOpen] = useState8(defaultOpen);
|
|
2336
|
+
return /* @__PURE__ */ jsxs29("section", { id, className: "scroll-mt-20", children: [
|
|
2337
|
+
/* @__PURE__ */ jsxs29(
|
|
2338
|
+
"button",
|
|
2339
|
+
{
|
|
2340
|
+
type: "button",
|
|
2341
|
+
onClick: () => setIsOpen(!isOpen),
|
|
2342
|
+
className: "mb-6 flex w-full items-center justify-between rounded-lg border border-ph-border bg-ph-muted px-5 py-4 text-left transition hover:bg-ph-muted/80",
|
|
2343
|
+
children: [
|
|
2344
|
+
/* @__PURE__ */ jsx35("span", { className: "text-lg font-bold text-ph-ink", children: title }),
|
|
2345
|
+
/* @__PURE__ */ jsx35(
|
|
2346
|
+
"svg",
|
|
2347
|
+
{
|
|
2348
|
+
className: cn(
|
|
2349
|
+
"h-5 w-5 text-ph-subtle transition-transform duration-200",
|
|
2350
|
+
isOpen && "rotate-180"
|
|
2351
|
+
),
|
|
2352
|
+
viewBox: "0 0 24 24",
|
|
2353
|
+
fill: "none",
|
|
2354
|
+
stroke: "currentColor",
|
|
2355
|
+
strokeWidth: "2",
|
|
2356
|
+
strokeLinecap: "round",
|
|
2357
|
+
strokeLinejoin: "round",
|
|
2358
|
+
children: /* @__PURE__ */ jsx35("path", { d: "M6 9l6 6 6-6" })
|
|
2359
|
+
}
|
|
2360
|
+
)
|
|
2361
|
+
]
|
|
2362
|
+
}
|
|
2363
|
+
),
|
|
2364
|
+
/* @__PURE__ */ jsx35(
|
|
2365
|
+
"div",
|
|
2366
|
+
{
|
|
2367
|
+
className: cn(
|
|
2368
|
+
"overflow-hidden transition-all duration-300",
|
|
2369
|
+
isOpen ? "max-h-[50000px] opacity-100" : "max-h-0 opacity-0"
|
|
2370
|
+
),
|
|
2371
|
+
children
|
|
2372
|
+
}
|
|
2373
|
+
)
|
|
2374
|
+
] });
|
|
2375
|
+
}
|
|
2376
|
+
|
|
2377
|
+
// src/components/ui/Typography.tsx
|
|
2378
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
2379
|
+
var toneMap2 = {
|
|
2380
|
+
default: "text-ph-ink",
|
|
2381
|
+
muted: "text-ph-mutedtext",
|
|
2382
|
+
subtle: "text-ph-subtle",
|
|
2383
|
+
brand: "text-ph-brand",
|
|
2384
|
+
danger: "text-ph-danger",
|
|
2385
|
+
success: "text-ph-success",
|
|
2386
|
+
warning: "text-ph-warning",
|
|
2387
|
+
info: "text-ph-info",
|
|
2388
|
+
inherit: ""
|
|
2389
|
+
};
|
|
2390
|
+
var weightMap = {
|
|
2391
|
+
normal: "font-normal",
|
|
2392
|
+
medium: "font-medium",
|
|
2393
|
+
semibold: "font-semibold",
|
|
2394
|
+
bold: "font-bold",
|
|
2395
|
+
extrabold: "font-extrabold"
|
|
2396
|
+
};
|
|
2397
|
+
function textClass(base, tone, weight, truncate, className) {
|
|
2398
|
+
return cn(base, toneMap2[tone], weight && weightMap[weight], truncate && "truncate", className);
|
|
2399
|
+
}
|
|
2400
|
+
function Display({
|
|
2401
|
+
children,
|
|
2402
|
+
tone = "default",
|
|
2403
|
+
weight,
|
|
2404
|
+
truncate,
|
|
2405
|
+
className
|
|
2406
|
+
}) {
|
|
2407
|
+
return /* @__PURE__ */ jsx36("h1", { className: textClass("text-4xl font-extrabold tracking-tight md:text-5xl", tone, weight, truncate, className), children });
|
|
2408
|
+
}
|
|
2409
|
+
function H1({ children, tone = "default", weight, truncate, className }) {
|
|
2410
|
+
return /* @__PURE__ */ jsx36("h1", { className: textClass("text-3xl font-bold tracking-tight md:text-4xl", tone, weight, truncate, className), children });
|
|
2411
|
+
}
|
|
2412
|
+
function H2({ children, tone = "default", weight, truncate, className }) {
|
|
2413
|
+
return /* @__PURE__ */ jsx36("h2", { className: textClass("text-2xl font-bold tracking-tight", tone, weight, truncate, className), children });
|
|
2414
|
+
}
|
|
2415
|
+
function H3({ children, tone = "default", weight, truncate, className }) {
|
|
2416
|
+
return /* @__PURE__ */ jsx36("h3", { className: textClass("text-xl font-semibold", tone, weight, truncate, className), children });
|
|
2417
|
+
}
|
|
2418
|
+
function H4({ children, tone = "default", weight, truncate, className }) {
|
|
2419
|
+
return /* @__PURE__ */ jsx36("h4", { className: textClass("text-lg font-semibold", tone, weight, truncate, className), children });
|
|
2420
|
+
}
|
|
2421
|
+
function H5({ children, tone = "default", weight, truncate, className }) {
|
|
2422
|
+
return /* @__PURE__ */ jsx36("h5", { className: textClass("text-base font-semibold", tone, weight, truncate, className), children });
|
|
2423
|
+
}
|
|
2424
|
+
function P({ children, tone = "default", weight, truncate, className }) {
|
|
2425
|
+
return /* @__PURE__ */ jsx36("p", { className: textClass("text-base leading-relaxed", tone, weight, truncate, className), children });
|
|
2426
|
+
}
|
|
2427
|
+
function Small({ children, tone = "default", weight, truncate, className }) {
|
|
2428
|
+
return /* @__PURE__ */ jsx36("span", { className: textClass("text-sm leading-relaxed", tone, weight, truncate, className), children });
|
|
2429
|
+
}
|
|
2430
|
+
function Caption({ children, tone = "muted", weight, truncate, className }) {
|
|
2431
|
+
return /* @__PURE__ */ jsx36("span", { className: textClass("text-[11px] font-medium uppercase tracking-wider", tone, weight, truncate, className), children });
|
|
2432
|
+
}
|
|
2433
|
+
function Overline({ children, tone = "muted", weight, truncate, className }) {
|
|
2434
|
+
return /* @__PURE__ */ jsx36("span", { className: textClass("text-[10px] font-bold uppercase tracking-[0.15em]", tone, weight, truncate, className), children });
|
|
2435
|
+
}
|
|
2436
|
+
function Lead({ children, tone = "subtle", weight, truncate, className }) {
|
|
2437
|
+
return /* @__PURE__ */ jsx36("p", { className: textClass("text-lg leading-relaxed", tone, weight, truncate, className), children });
|
|
2438
|
+
}
|
|
2439
|
+
function Mono({ children, tone = "default", weight, truncate, className }) {
|
|
2440
|
+
return /* @__PURE__ */ jsx36("code", { className: textClass("text-sm font-mono leading-relaxed", tone, weight, truncate, className), children });
|
|
2441
|
+
}
|
|
2442
|
+
function Label({ children, tone = "default", weight, truncate, className }) {
|
|
2443
|
+
return /* @__PURE__ */ jsx36("label", { className: textClass("text-sm font-medium", tone, weight, truncate, className), children });
|
|
2444
|
+
}
|
|
2445
|
+
|
|
2446
|
+
// src/components/ui/Avatar.tsx
|
|
2447
|
+
import { jsx as jsx37, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
2448
|
+
var sizeMap5 = {
|
|
2449
|
+
xs: "h-8 w-8 text-[10px]",
|
|
2450
|
+
sm: "h-10 w-10 text-xs",
|
|
2451
|
+
md: "h-12 w-12 text-base",
|
|
2452
|
+
lg: "h-16 w-16 text-xl",
|
|
2453
|
+
xl: "h-24 w-24 text-3xl"
|
|
2454
|
+
};
|
|
2455
|
+
var statusMap = {
|
|
2456
|
+
online: "bg-emerald-500",
|
|
2457
|
+
offline: "bg-ph-mutedtext",
|
|
2458
|
+
away: "bg-amber-400",
|
|
2459
|
+
busy: "bg-ph-danger"
|
|
2460
|
+
};
|
|
2461
|
+
function Avatar(_a) {
|
|
2462
|
+
var _b = _a, {
|
|
2463
|
+
label,
|
|
2464
|
+
icon,
|
|
2465
|
+
size = "md",
|
|
2466
|
+
color = "bg-ph-brand text-white",
|
|
2467
|
+
status,
|
|
2468
|
+
badge,
|
|
2469
|
+
className
|
|
2470
|
+
} = _b, props = __objRest(_b, [
|
|
2471
|
+
"label",
|
|
2472
|
+
"icon",
|
|
2473
|
+
"size",
|
|
2474
|
+
"color",
|
|
2475
|
+
"status",
|
|
2476
|
+
"badge",
|
|
2477
|
+
"className"
|
|
2478
|
+
]);
|
|
2479
|
+
return /* @__PURE__ */ jsxs30("div", __spreadProps(__spreadValues({ className: cn("relative inline-flex shrink-0", className) }, props), { children: [
|
|
2480
|
+
/* @__PURE__ */ jsx37(
|
|
2481
|
+
"div",
|
|
2482
|
+
{
|
|
2483
|
+
className: cn(
|
|
2484
|
+
"flex items-center justify-center rounded-full border border-ph-border font-bold shadow-ph",
|
|
2485
|
+
sizeMap5[size],
|
|
2486
|
+
color
|
|
2487
|
+
),
|
|
2488
|
+
children: icon || label
|
|
2489
|
+
}
|
|
2490
|
+
),
|
|
2491
|
+
status && /* @__PURE__ */ jsx37(
|
|
2492
|
+
"span",
|
|
2493
|
+
{
|
|
2494
|
+
className: cn(
|
|
2495
|
+
"absolute bottom-0 right-1 h-2.5 w-2.5 rounded-full border-2 border-white",
|
|
2496
|
+
statusMap[status]
|
|
2497
|
+
)
|
|
2498
|
+
}
|
|
2499
|
+
),
|
|
2500
|
+
badge && /* @__PURE__ */ jsx37("span", { className: "absolute -bottom-1 -right-1 flex min-w-[22px] items-center justify-center rounded-full bg-ph-brand px-1.5 py-px text-[10px] font-bold text-white", children: badge })
|
|
2501
|
+
] }));
|
|
2502
|
+
}
|
|
2503
|
+
function AvatarGroup(_a) {
|
|
2504
|
+
var _b = _a, { children, max, className } = _b, props = __objRest(_b, ["children", "max", "className"]);
|
|
2505
|
+
const items = Array.isArray(children) ? children : [children];
|
|
2506
|
+
const visible = max ? items.slice(0, max) : items;
|
|
2507
|
+
const remaining = max ? items.length - max : 0;
|
|
2508
|
+
return /* @__PURE__ */ jsxs30("div", __spreadProps(__spreadValues({ className: cn("-space-x-3 flex rtl:space-x-reverse", className) }, props), { children: [
|
|
2509
|
+
visible,
|
|
2510
|
+
remaining > 0 && /* @__PURE__ */ jsx37(
|
|
2511
|
+
Avatar,
|
|
2512
|
+
{
|
|
2513
|
+
label: `+${remaining}`,
|
|
2514
|
+
size: "md",
|
|
2515
|
+
color: "bg-ph-toolbar text-ph-subtle"
|
|
2516
|
+
}
|
|
2517
|
+
)
|
|
2518
|
+
] }));
|
|
2519
|
+
}
|
|
2520
|
+
|
|
2521
|
+
// src/components/ui/Progress.tsx
|
|
2522
|
+
import { jsx as jsx38, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
2523
|
+
var sizeMap6 = {
|
|
2524
|
+
sm: "h-1",
|
|
2525
|
+
md: "h-2",
|
|
2526
|
+
lg: "h-3"
|
|
2527
|
+
};
|
|
2528
|
+
function Progress(_a) {
|
|
2529
|
+
var _b = _a, {
|
|
2530
|
+
value,
|
|
2531
|
+
max = 100,
|
|
2532
|
+
color = "bg-ph-brand",
|
|
2533
|
+
label,
|
|
2534
|
+
showPercentage = false,
|
|
2535
|
+
size = "md",
|
|
2536
|
+
className
|
|
2537
|
+
} = _b, props = __objRest(_b, [
|
|
2538
|
+
"value",
|
|
2539
|
+
"max",
|
|
2540
|
+
"color",
|
|
2541
|
+
"label",
|
|
2542
|
+
"showPercentage",
|
|
2543
|
+
"size",
|
|
2544
|
+
"className"
|
|
2545
|
+
]);
|
|
2546
|
+
const percentage = Math.min(100, Math.max(0, value / max * 100));
|
|
2547
|
+
return /* @__PURE__ */ jsxs31("div", __spreadProps(__spreadValues({ className: cn("w-full", className) }, props), { children: [
|
|
2548
|
+
(label || showPercentage) && /* @__PURE__ */ jsxs31("div", { className: "mb-1.5 flex justify-between text-sm text-ph-subtle", children: [
|
|
2549
|
+
label && /* @__PURE__ */ jsx38("span", { children: label }),
|
|
2550
|
+
showPercentage && /* @__PURE__ */ jsxs31("span", { className: "tabular-nums", children: [
|
|
2551
|
+
Math.round(percentage),
|
|
2552
|
+
"%"
|
|
2553
|
+
] })
|
|
2554
|
+
] }),
|
|
2555
|
+
/* @__PURE__ */ jsx38("div", { className: cn("ph-progress", sizeMap6[size]), children: /* @__PURE__ */ jsx38(
|
|
2556
|
+
"div",
|
|
2557
|
+
{
|
|
2558
|
+
className: cn("ph-progress-bar", color),
|
|
2559
|
+
style: { width: `${percentage}%` },
|
|
2560
|
+
role: "progressbar",
|
|
2561
|
+
"aria-valuenow": value,
|
|
2562
|
+
"aria-valuemin": 0,
|
|
2563
|
+
"aria-valuemax": max
|
|
2564
|
+
}
|
|
2565
|
+
) })
|
|
2566
|
+
] }));
|
|
2567
|
+
}
|
|
2568
|
+
|
|
2569
|
+
// src/components/ui/ChatBubble.tsx
|
|
2570
|
+
import { jsx as jsx39, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
2571
|
+
function ChatBubble(_a) {
|
|
2572
|
+
var _b = _a, {
|
|
2573
|
+
children,
|
|
2574
|
+
avatar,
|
|
2575
|
+
name,
|
|
2576
|
+
time,
|
|
2577
|
+
variant = "from",
|
|
2578
|
+
footer,
|
|
2579
|
+
className
|
|
2580
|
+
} = _b, props = __objRest(_b, [
|
|
2581
|
+
"children",
|
|
2582
|
+
"avatar",
|
|
2583
|
+
"name",
|
|
2584
|
+
"time",
|
|
2585
|
+
"variant",
|
|
2586
|
+
"footer",
|
|
2587
|
+
"className"
|
|
2588
|
+
]);
|
|
2589
|
+
const isSelf = variant === "self";
|
|
2590
|
+
return /* @__PURE__ */ jsxs32(
|
|
2591
|
+
"div",
|
|
2592
|
+
__spreadProps(__spreadValues({
|
|
2593
|
+
className: cn(
|
|
2594
|
+
"flex gap-3",
|
|
2595
|
+
isSelf && "flex-row-reverse",
|
|
2596
|
+
className
|
|
2597
|
+
)
|
|
2598
|
+
}, props), {
|
|
2599
|
+
children: [
|
|
2600
|
+
avatar && /* @__PURE__ */ jsx39("div", { className: "shrink-0", children: avatar }),
|
|
2601
|
+
/* @__PURE__ */ jsxs32("div", { className: cn("min-w-0 flex-1", isSelf && "text-right"), children: [
|
|
2602
|
+
(name || time) && /* @__PURE__ */ jsxs32(
|
|
2603
|
+
"header",
|
|
2604
|
+
{
|
|
2605
|
+
className: cn(
|
|
2606
|
+
"flex gap-2 text-xs text-ph-mutedtext",
|
|
2607
|
+
isSelf && "flex-row-reverse justify-end"
|
|
2608
|
+
),
|
|
2609
|
+
children: [
|
|
2610
|
+
name && /* @__PURE__ */ jsx39("span", { className: "font-semibold text-ph-ink", children: name }),
|
|
2611
|
+
time && /* @__PURE__ */ jsx39("span", { children: time })
|
|
2612
|
+
]
|
|
2613
|
+
}
|
|
2614
|
+
),
|
|
2615
|
+
/* @__PURE__ */ jsx39(
|
|
2616
|
+
"div",
|
|
2617
|
+
{
|
|
2618
|
+
className: cn(
|
|
2619
|
+
"mt-2 inline-block text-left shadow-ph",
|
|
2620
|
+
isSelf ? "ph-chat-self" : "ph-chat-from"
|
|
2621
|
+
),
|
|
2622
|
+
children
|
|
2623
|
+
}
|
|
2624
|
+
),
|
|
2625
|
+
footer && /* @__PURE__ */ jsx39("footer", { className: "mt-2 text-[11px] text-ph-mutedtext", children: footer })
|
|
2626
|
+
] })
|
|
2627
|
+
]
|
|
2628
|
+
})
|
|
2629
|
+
);
|
|
2630
|
+
}
|
|
2631
|
+
|
|
2632
|
+
// src/components/ui/Terminal.tsx
|
|
2633
|
+
import { Fragment as Fragment6, jsx as jsx40, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
2634
|
+
function Terminal(_a) {
|
|
2635
|
+
var _b = _a, {
|
|
2636
|
+
title = "sandbox",
|
|
2637
|
+
lines,
|
|
2638
|
+
children,
|
|
2639
|
+
className
|
|
2640
|
+
} = _b, props = __objRest(_b, [
|
|
2641
|
+
"title",
|
|
2642
|
+
"lines",
|
|
2643
|
+
"children",
|
|
2644
|
+
"className"
|
|
2645
|
+
]);
|
|
2646
|
+
return /* @__PURE__ */ jsxs33(
|
|
2647
|
+
"div",
|
|
2648
|
+
__spreadProps(__spreadValues({
|
|
2649
|
+
className: cn(
|
|
2650
|
+
"overflow-hidden rounded-xl border border-ph-border shadow-ph-md",
|
|
2651
|
+
className
|
|
2652
|
+
)
|
|
2653
|
+
}, props), {
|
|
2654
|
+
children: [
|
|
2655
|
+
/* @__PURE__ */ jsxs33("header", { className: "flex items-center gap-2 border-b border-ph-border bg-ph-muted px-4 py-3", children: [
|
|
2656
|
+
/* @__PURE__ */ jsx40("div", { className: "h-3 w-3 rounded-full bg-red-400" }),
|
|
2657
|
+
/* @__PURE__ */ jsx40("div", { className: "h-3 w-3 rounded-full bg-amber-400" }),
|
|
2658
|
+
/* @__PURE__ */ jsx40("div", { className: "h-3 w-3 rounded-full bg-emerald-400" }),
|
|
2659
|
+
title && /* @__PURE__ */ jsx40("span", { className: "text-xs font-medium text-ph-mutedtext", children: title })
|
|
2660
|
+
] }),
|
|
2661
|
+
/* @__PURE__ */ jsx40("div", { className: "ph-code rounded-none border-x-0 border-b-0 text-[13px] leading-relaxed", children: children || /* @__PURE__ */ jsx40(Fragment6, { children: lines == null ? void 0 : lines.map((line, i) => {
|
|
2662
|
+
const text = typeof line === "string" ? line : line.text;
|
|
2663
|
+
const color = typeof line === "string" ? void 0 : line.color;
|
|
2664
|
+
return /* @__PURE__ */ jsxs33("span", { children: [
|
|
2665
|
+
/* @__PURE__ */ jsx40("span", { className: color || "text-neutral-600", children: text }),
|
|
2666
|
+
i < lines.length - 1 && /* @__PURE__ */ jsx40("br", {})
|
|
2667
|
+
] }, i);
|
|
2668
|
+
}) }) })
|
|
2669
|
+
]
|
|
2670
|
+
})
|
|
2671
|
+
);
|
|
2672
|
+
}
|
|
2673
|
+
|
|
2674
|
+
// src/components/ui/Indicator.tsx
|
|
2675
|
+
import { jsx as jsx41, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
2676
|
+
var positionMap = {
|
|
2677
|
+
"top-right": "-right-[2px] -top-[2px]",
|
|
2678
|
+
"top-left": "-left-[2px] -top-[2px]",
|
|
2679
|
+
"bottom-right": "-right-[2px] -bottom-[2px]",
|
|
2680
|
+
"bottom-left": "-left-[2px] -bottom-[2px]"
|
|
2681
|
+
};
|
|
2682
|
+
function Indicator(_a) {
|
|
2683
|
+
var _b = _a, {
|
|
2684
|
+
children,
|
|
2685
|
+
badge,
|
|
2686
|
+
color = "bg-ph-brand",
|
|
2687
|
+
position = "top-right",
|
|
2688
|
+
dot = false,
|
|
2689
|
+
className
|
|
2690
|
+
} = _b, props = __objRest(_b, [
|
|
2691
|
+
"children",
|
|
2692
|
+
"badge",
|
|
2693
|
+
"color",
|
|
2694
|
+
"position",
|
|
2695
|
+
"dot",
|
|
2696
|
+
"className"
|
|
2697
|
+
]);
|
|
2698
|
+
return /* @__PURE__ */ jsxs34("div", __spreadProps(__spreadValues({ className: cn("relative inline-flex items-center justify-center", className) }, props), { children: [
|
|
2699
|
+
dot ? /* @__PURE__ */ jsx41(
|
|
2700
|
+
"span",
|
|
2701
|
+
{
|
|
2702
|
+
className: cn(
|
|
2703
|
+
"absolute z-10 h-2.5 w-2.5 rounded-full border-2 border-white",
|
|
2704
|
+
color,
|
|
2705
|
+
positionMap[position]
|
|
2706
|
+
)
|
|
2707
|
+
}
|
|
2708
|
+
) : badge != null ? /* @__PURE__ */ jsx41(
|
|
2709
|
+
"span",
|
|
2710
|
+
{
|
|
2711
|
+
className: cn(
|
|
2712
|
+
"absolute z-10 flex min-h-[22px] min-w-[22px] items-center justify-center rounded-full px-1 text-[11px] font-bold text-white",
|
|
2713
|
+
color,
|
|
2714
|
+
positionMap[position]
|
|
2715
|
+
),
|
|
2716
|
+
children: badge
|
|
2717
|
+
}
|
|
2718
|
+
) : null,
|
|
2719
|
+
children
|
|
2720
|
+
] }));
|
|
2721
|
+
}
|
|
2722
|
+
|
|
2723
|
+
// src/components/ui/Timeline.tsx
|
|
2724
|
+
import { jsx as jsx42, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
2725
|
+
function Timeline(_a) {
|
|
2726
|
+
var _b = _a, {
|
|
2727
|
+
events,
|
|
2728
|
+
alternate = false,
|
|
2729
|
+
className
|
|
2730
|
+
} = _b, props = __objRest(_b, [
|
|
2731
|
+
"events",
|
|
2732
|
+
"alternate",
|
|
2733
|
+
"className"
|
|
2734
|
+
]);
|
|
2735
|
+
return /* @__PURE__ */ jsx42(
|
|
2736
|
+
"ol",
|
|
2737
|
+
__spreadProps(__spreadValues({
|
|
2738
|
+
className: cn("relative space-y-8", className)
|
|
2739
|
+
}, props), {
|
|
2740
|
+
children: events.map((event, idx) => {
|
|
2741
|
+
const align = alternate && idx % 2 !== 0 ? "lg:flex-row-reverse" : "";
|
|
2742
|
+
return /* @__PURE__ */ jsxs35("li", { className: cn("relative flex gap-6", align), children: [
|
|
2743
|
+
/* @__PURE__ */ jsx42(
|
|
2744
|
+
"div",
|
|
2745
|
+
{
|
|
2746
|
+
className: cn(
|
|
2747
|
+
"relative z-10 flex h-12 w-12 shrink-0 items-center justify-center rounded-full ring-8 ring-ph-muted shadow-md",
|
|
2748
|
+
event.color || "bg-ph-brand text-white"
|
|
2749
|
+
),
|
|
2750
|
+
children: event.icon
|
|
2751
|
+
}
|
|
2752
|
+
),
|
|
2753
|
+
/* @__PURE__ */ jsxs35("article", { className: "flex-1 rounded-xl border border-ph-border bg-ph-surface p-4 shadow-ph", children: [
|
|
2754
|
+
/* @__PURE__ */ jsxs35("div", { className: "flex flex-wrap items-baseline gap-3", children: [
|
|
2755
|
+
/* @__PURE__ */ jsx42("h4", { className: "text-base font-semibold text-ph-ink", children: event.title }),
|
|
2756
|
+
event.time && /* @__PURE__ */ jsx42("time", { className: "text-[11px] font-semibold uppercase tracking-wide text-ph-mutedtext", children: event.time })
|
|
2757
|
+
] }),
|
|
2758
|
+
event.description && /* @__PURE__ */ jsx42("p", { className: "mt-2 text-sm text-ph-subtle", children: event.description })
|
|
2759
|
+
] })
|
|
2760
|
+
] }, event.id);
|
|
2761
|
+
})
|
|
2762
|
+
})
|
|
2763
|
+
);
|
|
2764
|
+
}
|
|
2765
|
+
|
|
2766
|
+
export {
|
|
2767
|
+
ButtonChrome,
|
|
2768
|
+
cn,
|
|
2769
|
+
Button,
|
|
2770
|
+
IconBase,
|
|
2771
|
+
createIconBase,
|
|
2772
|
+
createIconBasePath,
|
|
2773
|
+
IconAreaChart,
|
|
2774
|
+
IconCumulativeChart,
|
|
2775
|
+
IconTableChart,
|
|
2776
|
+
IconHandClick,
|
|
2777
|
+
IconSurveys,
|
|
2778
|
+
IconCohort,
|
|
2779
|
+
IconRecording,
|
|
2780
|
+
IconFlare,
|
|
2781
|
+
IconSelectEvents,
|
|
2782
|
+
IconClipboardEdit,
|
|
2783
|
+
IconQueryEditor,
|
|
2784
|
+
IconTuning,
|
|
2785
|
+
IconSync,
|
|
2786
|
+
IconPlayCircle,
|
|
2787
|
+
IconGridView,
|
|
2788
|
+
IconListView,
|
|
2789
|
+
IconPremium,
|
|
2790
|
+
IconGift,
|
|
2791
|
+
IconRobot,
|
|
2792
|
+
IconExclamation,
|
|
2793
|
+
IconErrorOutline,
|
|
2794
|
+
IconCancel,
|
|
2795
|
+
IconCheckCircle,
|
|
2796
|
+
IconArrowUp,
|
|
2797
|
+
IconArrowDown,
|
|
2798
|
+
IconChevronLeft,
|
|
2799
|
+
IconChevronRight,
|
|
2800
|
+
IconChevronDown,
|
|
2801
|
+
IconSubArrowRight,
|
|
2802
|
+
IconSearch,
|
|
2803
|
+
IconBell,
|
|
2804
|
+
IconBellOff,
|
|
2805
|
+
IconPerson,
|
|
2806
|
+
IconHome,
|
|
2807
|
+
IconPanelRight,
|
|
2808
|
+
IconPlus,
|
|
2809
|
+
IconCheck,
|
|
2810
|
+
IconClose,
|
|
2811
|
+
IconTrash,
|
|
2812
|
+
IconDownload,
|
|
2813
|
+
IconUpload,
|
|
2814
|
+
IconSave,
|
|
2815
|
+
IconCopy,
|
|
2816
|
+
IconEdit,
|
|
2817
|
+
IconLogout,
|
|
2818
|
+
IconStar,
|
|
2819
|
+
IconMail,
|
|
2820
|
+
IconShoppingCart,
|
|
2821
|
+
IconMoon,
|
|
2822
|
+
IconSun,
|
|
2823
|
+
IconVolume,
|
|
2824
|
+
IconVolumeOff,
|
|
2825
|
+
IconFlag,
|
|
2826
|
+
IconDatabase,
|
|
2827
|
+
IconLayers,
|
|
2828
|
+
IconBox,
|
|
2829
|
+
IconBolt,
|
|
2830
|
+
IconRadar,
|
|
2831
|
+
IconToggle,
|
|
2832
|
+
IconRocket,
|
|
2833
|
+
IconTerminal,
|
|
2834
|
+
IconActivity,
|
|
2835
|
+
IconFlask,
|
|
2836
|
+
IconSpinner,
|
|
2837
|
+
PH_ICONS,
|
|
2838
|
+
IconByName,
|
|
2839
|
+
Alert,
|
|
2840
|
+
Badge,
|
|
2841
|
+
Card,
|
|
2842
|
+
Drawer,
|
|
2843
|
+
Kbd,
|
|
2844
|
+
DropdownMenu,
|
|
2845
|
+
DropdownButton,
|
|
2846
|
+
DropdownItem,
|
|
2847
|
+
Input,
|
|
2848
|
+
Select,
|
|
2849
|
+
Textarea,
|
|
2850
|
+
Checkbox,
|
|
2851
|
+
Radio,
|
|
2852
|
+
Toggle,
|
|
2853
|
+
Range,
|
|
2854
|
+
FileUpload,
|
|
2855
|
+
Modal,
|
|
2856
|
+
Breadcrumbs,
|
|
2857
|
+
Pagination,
|
|
2858
|
+
Panel,
|
|
2859
|
+
Rating,
|
|
2860
|
+
SearchInput,
|
|
2861
|
+
SearchGroup,
|
|
2862
|
+
Table,
|
|
2863
|
+
Stat,
|
|
2864
|
+
Toast,
|
|
2865
|
+
ToastStack,
|
|
2866
|
+
Tabs,
|
|
2867
|
+
DEFAULT_THEME_ID,
|
|
2868
|
+
THEMES,
|
|
2869
|
+
THEME_GROUPS,
|
|
2870
|
+
isThemeId,
|
|
2871
|
+
getTheme,
|
|
2872
|
+
THEME_INIT_SCRIPT,
|
|
2873
|
+
persistTheme,
|
|
2874
|
+
readStoredTheme,
|
|
2875
|
+
ThemeDomSync,
|
|
2876
|
+
ThemeManager,
|
|
2877
|
+
ThemeSwitcher,
|
|
2878
|
+
Accordion,
|
|
2879
|
+
Stepper,
|
|
2880
|
+
SegmentedControl,
|
|
2881
|
+
CommandPalette,
|
|
2882
|
+
Calendar,
|
|
2883
|
+
HoverCard,
|
|
2884
|
+
EmptyState,
|
|
2885
|
+
FilterChips,
|
|
2886
|
+
CodeBlock,
|
|
2887
|
+
ComponentDocs,
|
|
2888
|
+
ShowcaseWrapper,
|
|
2889
|
+
CollapsibleSection,
|
|
2890
|
+
Display,
|
|
2891
|
+
H1,
|
|
2892
|
+
H2,
|
|
2893
|
+
H3,
|
|
2894
|
+
H4,
|
|
2895
|
+
H5,
|
|
2896
|
+
P,
|
|
2897
|
+
Small,
|
|
2898
|
+
Caption,
|
|
2899
|
+
Overline,
|
|
2900
|
+
Lead,
|
|
2901
|
+
Mono,
|
|
2902
|
+
Label,
|
|
2903
|
+
Avatar,
|
|
2904
|
+
AvatarGroup,
|
|
2905
|
+
Progress,
|
|
2906
|
+
ChatBubble,
|
|
2907
|
+
Terminal,
|
|
2908
|
+
Indicator,
|
|
2909
|
+
Timeline
|
|
2910
|
+
};
|