@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
package/dist/index.js
CHANGED
|
@@ -1838,6 +1838,20 @@ var THEMES = [
|
|
|
1838
1838
|
description: "Ros\xE9 Pine Main \u2014 moonlit base with iris and love accents.",
|
|
1839
1839
|
colorScheme: "dark",
|
|
1840
1840
|
group: "Ros\xE9 Pine"
|
|
1841
|
+
},
|
|
1842
|
+
{
|
|
1843
|
+
id: "notion",
|
|
1844
|
+
name: "Notion",
|
|
1845
|
+
description: "Notion light \u2014 warm off-white canvas, Notion blue accent, signature dark text.",
|
|
1846
|
+
colorScheme: "light",
|
|
1847
|
+
group: "Productivity"
|
|
1848
|
+
},
|
|
1849
|
+
{
|
|
1850
|
+
id: "notion-dark",
|
|
1851
|
+
name: "Notion Dark",
|
|
1852
|
+
description: "Notion dark mode \u2014 dark charcoal canvas with blue accent and clean typography.",
|
|
1853
|
+
colorScheme: "dark",
|
|
1854
|
+
group: "Productivity"
|
|
1841
1855
|
}
|
|
1842
1856
|
];
|
|
1843
1857
|
var THEME_GROUPS = Array.from(new Set(THEMES.map((theme) => theme.group)));
|
|
@@ -2958,7 +2972,35 @@ function Timeline(_a) {
|
|
|
2958
2972
|
|
|
2959
2973
|
// src/components/charts/ph-insight-charts.tsx
|
|
2960
2974
|
var import_react15 = require("react");
|
|
2975
|
+
|
|
2976
|
+
// src/lib/chart/register-chartjs.ts
|
|
2961
2977
|
var import_chart = require("chart.js");
|
|
2978
|
+
function synchroniseChartJsFontFamily() {
|
|
2979
|
+
if (typeof document === "undefined") {
|
|
2980
|
+
return;
|
|
2981
|
+
}
|
|
2982
|
+
const family = window.getComputedStyle(document.body).fontFamily;
|
|
2983
|
+
const trimmed = family == null ? void 0 : family.trim();
|
|
2984
|
+
if (trimmed) {
|
|
2985
|
+
import_chart.Chart.defaults.font.family = trimmed;
|
|
2986
|
+
}
|
|
2987
|
+
}
|
|
2988
|
+
import_chart.Chart.register(
|
|
2989
|
+
import_chart.CategoryScale,
|
|
2990
|
+
import_chart.LinearScale,
|
|
2991
|
+
import_chart.RadialLinearScale,
|
|
2992
|
+
import_chart.BarController,
|
|
2993
|
+
import_chart.BarElement,
|
|
2994
|
+
import_chart.DoughnutController,
|
|
2995
|
+
import_chart.PolarAreaController,
|
|
2996
|
+
import_chart.ArcElement,
|
|
2997
|
+
import_chart.Title,
|
|
2998
|
+
import_chart.Tooltip,
|
|
2999
|
+
import_chart.Legend
|
|
3000
|
+
);
|
|
3001
|
+
synchroniseChartJsFontFamily();
|
|
3002
|
+
|
|
3003
|
+
// src/components/charts/ph-insight-charts.tsx
|
|
2962
3004
|
var import_react_chartjs_2 = require("react-chartjs-2");
|
|
2963
3005
|
|
|
2964
3006
|
// src/lib/chart/with-alpha.ts
|
|
@@ -3701,31 +3743,9 @@ function CanvasTrendLineChart({
|
|
|
3701
3743
|
// src/components/charts/ph-insight-charts.tsx
|
|
3702
3744
|
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
3703
3745
|
var DEMO_LABELS = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"];
|
|
3704
|
-
var chartJsRegistered = false;
|
|
3705
|
-
function registerChartJs() {
|
|
3706
|
-
if (chartJsRegistered) return;
|
|
3707
|
-
if (typeof window === "undefined") return;
|
|
3708
|
-
import_chart.Chart.register(
|
|
3709
|
-
import_chart.CategoryScale,
|
|
3710
|
-
import_chart.LinearScale,
|
|
3711
|
-
import_chart.RadialLinearScale,
|
|
3712
|
-
import_chart.BarController,
|
|
3713
|
-
import_chart.BarElement,
|
|
3714
|
-
import_chart.DoughnutController,
|
|
3715
|
-
import_chart.PolarAreaController,
|
|
3716
|
-
import_chart.ArcElement,
|
|
3717
|
-
import_chart.Title,
|
|
3718
|
-
import_chart.Tooltip,
|
|
3719
|
-
import_chart.Legend
|
|
3720
|
-
);
|
|
3721
|
-
chartJsRegistered = true;
|
|
3722
|
-
}
|
|
3723
3746
|
function useClientMounted() {
|
|
3724
3747
|
const [mounted, setMounted] = (0, import_react15.useState)(false);
|
|
3725
|
-
(0, import_react15.useEffect)(() =>
|
|
3726
|
-
setMounted(true);
|
|
3727
|
-
registerChartJs();
|
|
3728
|
-
}, []);
|
|
3748
|
+
(0, import_react15.useEffect)(() => setMounted(true), []);
|
|
3729
3749
|
return mounted;
|
|
3730
3750
|
}
|
|
3731
3751
|
function ChartSkeleton({ className = "h-[280px]" }) {
|