@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.
Files changed (110) hide show
  1. package/dist/chunk-SHF57J7U.mjs +2910 -0
  2. package/dist/index-CmS6hcUk.d.mts +753 -0
  3. package/dist/index-CmS6hcUk.d.ts +753 -0
  4. package/dist/index.d.mts +5 -755
  5. package/dist/index.d.ts +5 -755
  6. package/dist/index.js +43 -23
  7. package/dist/index.mjs +252 -2846
  8. package/dist/ui.d.mts +3 -0
  9. package/dist/ui.d.ts +3 -0
  10. package/dist/ui.js +2946 -0
  11. package/dist/ui.mjs +139 -0
  12. package/package.json +11 -3
  13. package/src/components/charts/index.ts +8 -0
  14. package/src/components/charts/ph-insight-charts.tsx +162 -0
  15. package/src/components/dashboard/DashboardFiltersBar.tsx +19 -0
  16. package/src/components/dashboard/DashboardGrid.tsx +23 -0
  17. package/src/components/dashboard/DashboardInsightPlaceholder.tsx +37 -0
  18. package/src/components/dashboard/DashboardKpiCard.tsx +25 -0
  19. package/src/components/dashboard/DashboardToolbar.tsx +23 -0
  20. package/src/components/dashboard/DashboardWell.tsx +10 -0
  21. package/src/components/dashboard/InsightMiniCard.tsx +26 -0
  22. package/src/components/dashboard/InsightShell.tsx +37 -0
  23. package/src/components/dashboard/InsightShellHeader.tsx +22 -0
  24. package/src/components/dashboard/MiniTrendBars.tsx +51 -0
  25. package/src/components/dashboard/index.ts +31 -0
  26. package/src/components/dashboard/types.ts +9 -0
  27. package/src/components/icons/IconBase.tsx +39 -0
  28. package/src/components/icons/createIconBase.tsx +27 -0
  29. package/src/components/icons/icons.tsx +367 -0
  30. package/src/components/icons/index.ts +3 -0
  31. package/src/components/sections/AccordionShowcase.tsx +45 -0
  32. package/src/components/sections/AlertShowcase.tsx +39 -0
  33. package/src/components/sections/AvatarShowcase.tsx +80 -0
  34. package/src/components/sections/BadgeShowcase.tsx +65 -0
  35. package/src/components/sections/ButtonShowcase.tsx +312 -0
  36. package/src/components/sections/CalendarShowcase.tsx +35 -0
  37. package/src/components/sections/CardShowcase.tsx +143 -0
  38. package/src/components/sections/ChartShowcase.tsx +190 -0
  39. package/src/components/sections/CodeMockupShowcase.tsx +56 -0
  40. package/src/components/sections/ColorPalette.tsx +117 -0
  41. package/src/components/sections/CommandPaletteShowcase.tsx +48 -0
  42. package/src/components/sections/CountdownShowcase.tsx +43 -0
  43. package/src/components/sections/DashboardShowcase.tsx +191 -0
  44. package/src/components/sections/DiffShowcase.tsx +70 -0
  45. package/src/components/sections/DrawerShowcase.tsx +97 -0
  46. package/src/components/sections/DropdownShowcase.tsx +100 -0
  47. package/src/components/sections/EmptyStateShowcase.tsx +50 -0
  48. package/src/components/sections/FilterChipsShowcase.tsx +50 -0
  49. package/src/components/sections/FormShowcase.tsx +126 -0
  50. package/src/components/sections/HoverCardShowcase.tsx +50 -0
  51. package/src/components/sections/IconShowcase.tsx +247 -0
  52. package/src/components/sections/IndicatorShowcase.tsx +52 -0
  53. package/src/components/sections/KbdShowcase.tsx +31 -0
  54. package/src/components/sections/ModalShowcase.tsx +210 -0
  55. package/src/components/sections/NavigationShowcase.tsx +199 -0
  56. package/src/components/sections/ProgressShowcase.tsx +85 -0
  57. package/src/components/sections/SegmentedControlShowcase.tsx +49 -0
  58. package/src/components/sections/SetupThemeShowcase.tsx +262 -0
  59. package/src/components/sections/StackShowcase.tsx +33 -0
  60. package/src/components/sections/StatShowcase.tsx +129 -0
  61. package/src/components/sections/StepperShowcase.tsx +37 -0
  62. package/src/components/sections/SwapShowcase.tsx +91 -0
  63. package/src/components/sections/TabShowcase.tsx +84 -0
  64. package/src/components/sections/TableShowcase.tsx +140 -0
  65. package/src/components/sections/TimelineShowcase.tsx +83 -0
  66. package/src/components/sections/ToastShowcase.tsx +108 -0
  67. package/src/components/sections/TooltipShowcase.tsx +44 -0
  68. package/src/components/sections/UtilityShowcase.tsx +81 -0
  69. package/src/components/ui/Accordion.tsx +77 -0
  70. package/src/components/ui/Alert.tsx +68 -0
  71. package/src/components/ui/Avatar.tsx +97 -0
  72. package/src/components/ui/Badge.tsx +55 -0
  73. package/src/components/ui/Button.tsx +110 -0
  74. package/src/components/ui/ButtonChrome.tsx +20 -0
  75. package/src/components/ui/Calendar.tsx +116 -0
  76. package/src/components/ui/Card.tsx +60 -0
  77. package/src/components/ui/ChatBubble.tsx +71 -0
  78. package/src/components/ui/CodeBlock.tsx +48 -0
  79. package/src/components/ui/CollapsibleSection.tsx +49 -0
  80. package/src/components/ui/CommandPalette.tsx +137 -0
  81. package/src/components/ui/ComponentDocs.tsx +52 -0
  82. package/src/components/ui/Drawer.tsx +71 -0
  83. package/src/components/ui/DropdownMenu.tsx +138 -0
  84. package/src/components/ui/EmptyState.tsx +33 -0
  85. package/src/components/ui/FilterChips.tsx +50 -0
  86. package/src/components/ui/HoverCard.tsx +36 -0
  87. package/src/components/ui/Indicator.tsx +61 -0
  88. package/src/components/ui/Input.tsx +359 -0
  89. package/src/components/ui/Kbd.tsx +38 -0
  90. package/src/components/ui/Modal.tsx +75 -0
  91. package/src/components/ui/Navigation.tsx +94 -0
  92. package/src/components/ui/Panel.tsx +18 -0
  93. package/src/components/ui/Progress.tsx +59 -0
  94. package/src/components/ui/Rating.tsx +65 -0
  95. package/src/components/ui/SearchInput.tsx +106 -0
  96. package/src/components/ui/SegmentedControl.tsx +44 -0
  97. package/src/components/ui/ShowcaseWrapper.tsx +136 -0
  98. package/src/components/ui/Stat.tsx +39 -0
  99. package/src/components/ui/Stepper.tsx +75 -0
  100. package/src/components/ui/Table.tsx +55 -0
  101. package/src/components/ui/Tabs.tsx +53 -0
  102. package/src/components/ui/Terminal.tsx +54 -0
  103. package/src/components/ui/ThemeDomSync.tsx +17 -0
  104. package/src/components/ui/ThemeManager.tsx +18 -0
  105. package/src/components/ui/ThemeSwitcher.tsx +46 -0
  106. package/src/components/ui/Timeline.tsx +60 -0
  107. package/src/components/ui/Toast.tsx +70 -0
  108. package/src/components/ui/Typography.tsx +129 -0
  109. package/src/components/ui/index.ts +92 -0
  110. 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]" }) {