@blinkdotnew/ui 0.3.0 → 0.4.0

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/index.js CHANGED
@@ -29,7 +29,7 @@ var sonner = require('sonner');
29
29
  var core = require('@dnd-kit/core');
30
30
  var sortable = require('@dnd-kit/sortable');
31
31
  var utilities = require('@dnd-kit/utilities');
32
- var recharts = require('recharts');
32
+ var RechartsPrimitive = require('recharts');
33
33
  var AccordionPrimitive = require('@radix-ui/react-accordion');
34
34
  var AlertDialogPrimitive = require('@radix-ui/react-alert-dialog');
35
35
  var AspectRatioPrimitive = require('@radix-ui/react-aspect-ratio');
@@ -41,6 +41,12 @@ var NavigationMenuPrimitive = require('@radix-ui/react-navigation-menu');
41
41
  var ScrollAreaPrimitive = require('@radix-ui/react-scroll-area');
42
42
  var TogglePrimitive = require('@radix-ui/react-toggle');
43
43
  var ToggleGroupPrimitive = require('@radix-ui/react-toggle-group');
44
+ var reactDayPicker = require('react-day-picker');
45
+ var cmdk = require('cmdk');
46
+ var vaul = require('vaul');
47
+ var inputOtp = require('input-otp');
48
+ var MenubarPrimitive = require('@radix-ui/react-menubar');
49
+ var ResizablePrimitive = require('react-resizable-panels');
44
50
 
45
51
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
46
52
 
@@ -78,6 +84,7 @@ var SeparatorPrimitive__namespace = /*#__PURE__*/_interopNamespace(SeparatorPrim
78
84
  var ProgressPrimitive__namespace = /*#__PURE__*/_interopNamespace(ProgressPrimitive);
79
85
  var TabsPrimitive__namespace = /*#__PURE__*/_interopNamespace(TabsPrimitive);
80
86
  var z__namespace = /*#__PURE__*/_interopNamespace(z);
87
+ var RechartsPrimitive__namespace = /*#__PURE__*/_interopNamespace(RechartsPrimitive);
81
88
  var AccordionPrimitive__namespace = /*#__PURE__*/_interopNamespace(AccordionPrimitive);
82
89
  var AlertDialogPrimitive__namespace = /*#__PURE__*/_interopNamespace(AlertDialogPrimitive);
83
90
  var AspectRatioPrimitive__namespace = /*#__PURE__*/_interopNamespace(AspectRatioPrimitive);
@@ -88,6 +95,8 @@ var NavigationMenuPrimitive__namespace = /*#__PURE__*/_interopNamespace(Navigati
88
95
  var ScrollAreaPrimitive__namespace = /*#__PURE__*/_interopNamespace(ScrollAreaPrimitive);
89
96
  var TogglePrimitive__namespace = /*#__PURE__*/_interopNamespace(TogglePrimitive);
90
97
  var ToggleGroupPrimitive__namespace = /*#__PURE__*/_interopNamespace(ToggleGroupPrimitive);
98
+ var MenubarPrimitive__namespace = /*#__PURE__*/_interopNamespace(MenubarPrimitive);
99
+ var ResizablePrimitive__namespace = /*#__PURE__*/_interopNamespace(ResizablePrimitive);
91
100
 
92
101
  // src/provider/blink-ui-provider.tsx
93
102
  var BlinkUIContext = React66.createContext(null);
@@ -2550,12 +2559,12 @@ function AreaChart({
2550
2559
  }) {
2551
2560
  const keys = Array.isArray(dataKey) ? dataKey : [dataKey];
2552
2561
  const curve = curved ? "monotone" : "linear";
2553
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("w-full overflow-hidden", className), style: { minWidth: 0 }, children: /* @__PURE__ */ jsxRuntime.jsx(recharts.ResponsiveContainer, { width: "100%", height, children: /* @__PURE__ */ jsxRuntime.jsxs(recharts.AreaChart, { data, margin: { top: 4, right: 4, left: -20, bottom: 0 }, children: [
2554
- showGrid && /* @__PURE__ */ jsxRuntime.jsx(recharts.CartesianGrid, { strokeDasharray: "3 3", stroke: "hsl(var(--border))" }),
2555
- /* @__PURE__ */ jsxRuntime.jsx(recharts.XAxis, { dataKey: xAxisKey, tick: { fontSize: 12, fill: "hsl(var(--muted-foreground))" }, axisLine: false, tickLine: false }),
2556
- /* @__PURE__ */ jsxRuntime.jsx(recharts.YAxis, { tick: { fontSize: 12, fill: "hsl(var(--muted-foreground))" }, axisLine: false, tickLine: false }),
2562
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("w-full overflow-hidden", className), style: { minWidth: 0 }, children: /* @__PURE__ */ jsxRuntime.jsx(RechartsPrimitive.ResponsiveContainer, { width: "100%", height, children: /* @__PURE__ */ jsxRuntime.jsxs(RechartsPrimitive.AreaChart, { data, margin: { top: 4, right: 4, left: -20, bottom: 0 }, children: [
2563
+ showGrid && /* @__PURE__ */ jsxRuntime.jsx(RechartsPrimitive.CartesianGrid, { strokeDasharray: "3 3", stroke: "hsl(var(--border))" }),
2564
+ /* @__PURE__ */ jsxRuntime.jsx(RechartsPrimitive.XAxis, { dataKey: xAxisKey, tick: { fontSize: 12, fill: "hsl(var(--muted-foreground))" }, axisLine: false, tickLine: false }),
2565
+ /* @__PURE__ */ jsxRuntime.jsx(RechartsPrimitive.YAxis, { tick: { fontSize: 12, fill: "hsl(var(--muted-foreground))" }, axisLine: false, tickLine: false }),
2557
2566
  showTooltip && /* @__PURE__ */ jsxRuntime.jsx(
2558
- recharts.Tooltip,
2567
+ RechartsPrimitive.Tooltip,
2559
2568
  {
2560
2569
  contentStyle: {
2561
2570
  background: "hsl(var(--card))",
@@ -2565,9 +2574,9 @@ function AreaChart({
2565
2574
  }
2566
2575
  }
2567
2576
  ),
2568
- showLegend && /* @__PURE__ */ jsxRuntime.jsx(recharts.Legend, { wrapperStyle: { fontSize: 12 } }),
2577
+ showLegend && /* @__PURE__ */ jsxRuntime.jsx(RechartsPrimitive.Legend, { wrapperStyle: { fontSize: 12 } }),
2569
2578
  keys.map((key, i) => /* @__PURE__ */ jsxRuntime.jsx(
2570
- recharts.Area,
2579
+ RechartsPrimitive.Area,
2571
2580
  {
2572
2581
  type: curve,
2573
2582
  dataKey: key,
@@ -2602,17 +2611,17 @@ function BarChart({
2602
2611
  }) {
2603
2612
  const keys = Array.isArray(dataKey) ? dataKey : [dataKey];
2604
2613
  const isVertical = layout === "vertical";
2605
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("w-full overflow-hidden", className), style: { minWidth: 0 }, children: /* @__PURE__ */ jsxRuntime.jsx(recharts.ResponsiveContainer, { width: "100%", height, children: /* @__PURE__ */ jsxRuntime.jsxs(recharts.BarChart, { data, layout, margin: { top: 4, right: 4, left: -20, bottom: 0 }, children: [
2606
- showGrid && /* @__PURE__ */ jsxRuntime.jsx(recharts.CartesianGrid, { strokeDasharray: "3 3", stroke: "hsl(var(--border))" }),
2614
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("w-full overflow-hidden", className), style: { minWidth: 0 }, children: /* @__PURE__ */ jsxRuntime.jsx(RechartsPrimitive.ResponsiveContainer, { width: "100%", height, children: /* @__PURE__ */ jsxRuntime.jsxs(RechartsPrimitive.BarChart, { data, layout, margin: { top: 4, right: 4, left: -20, bottom: 0 }, children: [
2615
+ showGrid && /* @__PURE__ */ jsxRuntime.jsx(RechartsPrimitive.CartesianGrid, { strokeDasharray: "3 3", stroke: "hsl(var(--border))" }),
2607
2616
  isVertical ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
2608
- /* @__PURE__ */ jsxRuntime.jsx(recharts.XAxis, { type: "number", tick: { fontSize: 12, fill: "hsl(var(--muted-foreground))" }, axisLine: false, tickLine: false }),
2609
- /* @__PURE__ */ jsxRuntime.jsx(recharts.YAxis, { type: "category", dataKey: xAxisKey, tick: { fontSize: 12, fill: "hsl(var(--muted-foreground))" }, axisLine: false, tickLine: false })
2617
+ /* @__PURE__ */ jsxRuntime.jsx(RechartsPrimitive.XAxis, { type: "number", tick: { fontSize: 12, fill: "hsl(var(--muted-foreground))" }, axisLine: false, tickLine: false }),
2618
+ /* @__PURE__ */ jsxRuntime.jsx(RechartsPrimitive.YAxis, { type: "category", dataKey: xAxisKey, tick: { fontSize: 12, fill: "hsl(var(--muted-foreground))" }, axisLine: false, tickLine: false })
2610
2619
  ] }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
2611
- /* @__PURE__ */ jsxRuntime.jsx(recharts.XAxis, { dataKey: xAxisKey, tick: { fontSize: 12, fill: "hsl(var(--muted-foreground))" }, axisLine: false, tickLine: false }),
2612
- /* @__PURE__ */ jsxRuntime.jsx(recharts.YAxis, { tick: { fontSize: 12, fill: "hsl(var(--muted-foreground))" }, axisLine: false, tickLine: false })
2620
+ /* @__PURE__ */ jsxRuntime.jsx(RechartsPrimitive.XAxis, { dataKey: xAxisKey, tick: { fontSize: 12, fill: "hsl(var(--muted-foreground))" }, axisLine: false, tickLine: false }),
2621
+ /* @__PURE__ */ jsxRuntime.jsx(RechartsPrimitive.YAxis, { tick: { fontSize: 12, fill: "hsl(var(--muted-foreground))" }, axisLine: false, tickLine: false })
2613
2622
  ] }),
2614
2623
  showTooltip && /* @__PURE__ */ jsxRuntime.jsx(
2615
- recharts.Tooltip,
2624
+ RechartsPrimitive.Tooltip,
2616
2625
  {
2617
2626
  contentStyle: {
2618
2627
  background: "hsl(var(--card))",
@@ -2622,9 +2631,9 @@ function BarChart({
2622
2631
  }
2623
2632
  }
2624
2633
  ),
2625
- showLegend && /* @__PURE__ */ jsxRuntime.jsx(recharts.Legend, { wrapperStyle: { fontSize: 12 } }),
2634
+ showLegend && /* @__PURE__ */ jsxRuntime.jsx(RechartsPrimitive.Legend, { wrapperStyle: { fontSize: 12 } }),
2626
2635
  keys.map((key, i) => /* @__PURE__ */ jsxRuntime.jsx(
2627
- recharts.Bar,
2636
+ RechartsPrimitive.Bar,
2628
2637
  {
2629
2638
  dataKey: key,
2630
2639
  fill: colors[i % colors.length],
@@ -2659,12 +2668,12 @@ function LineChart({
2659
2668
  const keys = Array.isArray(dataKey) ? dataKey : [dataKey];
2660
2669
  const curve = curved ? "monotone" : "linear";
2661
2670
  const dash = dotted ? "4 4" : void 0;
2662
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("w-full overflow-hidden", className), style: { minWidth: 0 }, children: /* @__PURE__ */ jsxRuntime.jsx(recharts.ResponsiveContainer, { width: "100%", height, children: /* @__PURE__ */ jsxRuntime.jsxs(recharts.LineChart, { data, margin: { top: 4, right: 4, left: -20, bottom: 0 }, children: [
2663
- showGrid && /* @__PURE__ */ jsxRuntime.jsx(recharts.CartesianGrid, { strokeDasharray: "3 3", stroke: "hsl(var(--border))" }),
2664
- /* @__PURE__ */ jsxRuntime.jsx(recharts.XAxis, { dataKey: xAxisKey, tick: { fontSize: 12, fill: "hsl(var(--muted-foreground))" }, axisLine: false, tickLine: false }),
2665
- /* @__PURE__ */ jsxRuntime.jsx(recharts.YAxis, { tick: { fontSize: 12, fill: "hsl(var(--muted-foreground))" }, axisLine: false, tickLine: false }),
2671
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("w-full overflow-hidden", className), style: { minWidth: 0 }, children: /* @__PURE__ */ jsxRuntime.jsx(RechartsPrimitive.ResponsiveContainer, { width: "100%", height, children: /* @__PURE__ */ jsxRuntime.jsxs(RechartsPrimitive.LineChart, { data, margin: { top: 4, right: 4, left: -20, bottom: 0 }, children: [
2672
+ showGrid && /* @__PURE__ */ jsxRuntime.jsx(RechartsPrimitive.CartesianGrid, { strokeDasharray: "3 3", stroke: "hsl(var(--border))" }),
2673
+ /* @__PURE__ */ jsxRuntime.jsx(RechartsPrimitive.XAxis, { dataKey: xAxisKey, tick: { fontSize: 12, fill: "hsl(var(--muted-foreground))" }, axisLine: false, tickLine: false }),
2674
+ /* @__PURE__ */ jsxRuntime.jsx(RechartsPrimitive.YAxis, { tick: { fontSize: 12, fill: "hsl(var(--muted-foreground))" }, axisLine: false, tickLine: false }),
2666
2675
  showTooltip && /* @__PURE__ */ jsxRuntime.jsx(
2667
- recharts.Tooltip,
2676
+ RechartsPrimitive.Tooltip,
2668
2677
  {
2669
2678
  contentStyle: {
2670
2679
  background: "hsl(var(--card))",
@@ -2674,9 +2683,9 @@ function LineChart({
2674
2683
  }
2675
2684
  }
2676
2685
  ),
2677
- showLegend && /* @__PURE__ */ jsxRuntime.jsx(recharts.Legend, { wrapperStyle: { fontSize: 12 } }),
2686
+ showLegend && /* @__PURE__ */ jsxRuntime.jsx(RechartsPrimitive.Legend, { wrapperStyle: { fontSize: 12 } }),
2678
2687
  keys.map((key, i) => /* @__PURE__ */ jsxRuntime.jsx(
2679
- recharts.Line,
2688
+ RechartsPrimitive.Line,
2680
2689
  {
2681
2690
  type: curve,
2682
2691
  dataKey: key,
@@ -4754,6 +4763,833 @@ var ToggleGroupItem = React66__namespace.forwardRef(({ className, children, vari
4754
4763
  );
4755
4764
  });
4756
4765
  ToggleGroupItem.displayName = ToggleGroupPrimitive__namespace.Item.displayName;
4766
+ function Calendar3({
4767
+ className,
4768
+ classNames,
4769
+ showOutsideDays = true,
4770
+ captionLayout = "label",
4771
+ buttonVariant = "ghost",
4772
+ formatters,
4773
+ components,
4774
+ ...props
4775
+ }) {
4776
+ const defaultClassNames = reactDayPicker.getDefaultClassNames();
4777
+ return /* @__PURE__ */ jsxRuntime.jsx(
4778
+ reactDayPicker.DayPicker,
4779
+ {
4780
+ showOutsideDays,
4781
+ className: cn(
4782
+ "bg-background group/calendar p-3 [--cell-size:2rem] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",
4783
+ String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,
4784
+ String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,
4785
+ className
4786
+ ),
4787
+ captionLayout,
4788
+ formatters: {
4789
+ formatMonthDropdown: (date) => date.toLocaleString("default", { month: "short" }),
4790
+ ...formatters
4791
+ },
4792
+ classNames: {
4793
+ root: cn("w-fit", defaultClassNames.root),
4794
+ months: cn(
4795
+ "relative flex flex-col gap-4 md:flex-row",
4796
+ defaultClassNames.months
4797
+ ),
4798
+ month: cn("flex w-full flex-col gap-4", defaultClassNames.month),
4799
+ nav: cn(
4800
+ "absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1",
4801
+ defaultClassNames.nav
4802
+ ),
4803
+ button_previous: cn(
4804
+ buttonVariants({ variant: buttonVariant }),
4805
+ "h-[--cell-size] w-[--cell-size] select-none p-0 aria-disabled:opacity-50",
4806
+ defaultClassNames.button_previous
4807
+ ),
4808
+ button_next: cn(
4809
+ buttonVariants({ variant: buttonVariant }),
4810
+ "h-[--cell-size] w-[--cell-size] select-none p-0 aria-disabled:opacity-50",
4811
+ defaultClassNames.button_next
4812
+ ),
4813
+ month_caption: cn(
4814
+ "flex h-[--cell-size] w-full items-center justify-center px-[--cell-size]",
4815
+ defaultClassNames.month_caption
4816
+ ),
4817
+ dropdowns: cn(
4818
+ "flex h-[--cell-size] w-full items-center justify-center gap-1.5 text-sm font-medium",
4819
+ defaultClassNames.dropdowns
4820
+ ),
4821
+ dropdown_root: cn(
4822
+ "has-focus:border-ring border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] relative rounded-md border",
4823
+ defaultClassNames.dropdown_root
4824
+ ),
4825
+ dropdown: cn(
4826
+ "bg-popover absolute inset-0 opacity-0",
4827
+ defaultClassNames.dropdown
4828
+ ),
4829
+ caption_label: cn(
4830
+ "select-none font-medium",
4831
+ captionLayout === "label" ? "text-sm" : "[&>svg]:text-muted-foreground flex h-8 items-center gap-1 rounded-md pl-2 pr-1 text-sm [&>svg]:size-3.5",
4832
+ defaultClassNames.caption_label
4833
+ ),
4834
+ table: "w-full border-collapse",
4835
+ weekdays: cn("flex", defaultClassNames.weekdays),
4836
+ weekday: cn(
4837
+ "text-muted-foreground flex-1 select-none rounded-md text-[0.8rem] font-normal",
4838
+ defaultClassNames.weekday
4839
+ ),
4840
+ week: cn("mt-2 flex w-full", defaultClassNames.week),
4841
+ week_number_header: cn(
4842
+ "w-[--cell-size] select-none",
4843
+ defaultClassNames.week_number_header
4844
+ ),
4845
+ week_number: cn(
4846
+ "text-muted-foreground select-none text-[0.8rem]",
4847
+ defaultClassNames.week_number
4848
+ ),
4849
+ day: cn(
4850
+ "group/day relative aspect-square h-full w-full select-none p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md",
4851
+ defaultClassNames.day
4852
+ ),
4853
+ range_start: cn(
4854
+ "bg-accent rounded-l-md",
4855
+ defaultClassNames.range_start
4856
+ ),
4857
+ range_middle: cn("rounded-none", defaultClassNames.range_middle),
4858
+ range_end: cn("bg-accent rounded-r-md", defaultClassNames.range_end),
4859
+ today: cn(
4860
+ "bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none",
4861
+ defaultClassNames.today
4862
+ ),
4863
+ outside: cn(
4864
+ "text-muted-foreground aria-selected:text-muted-foreground",
4865
+ defaultClassNames.outside
4866
+ ),
4867
+ disabled: cn(
4868
+ "text-muted-foreground opacity-50",
4869
+ defaultClassNames.disabled
4870
+ ),
4871
+ hidden: cn("invisible", defaultClassNames.hidden),
4872
+ ...classNames
4873
+ },
4874
+ components: {
4875
+ Root: ({ className: className2, rootRef, ...props2 }) => {
4876
+ return /* @__PURE__ */ jsxRuntime.jsx(
4877
+ "div",
4878
+ {
4879
+ "data-slot": "calendar",
4880
+ ref: rootRef,
4881
+ className: cn(className2),
4882
+ ...props2
4883
+ }
4884
+ );
4885
+ },
4886
+ Chevron: ({ className: className2, orientation, ...props2 }) => {
4887
+ if (orientation === "left") {
4888
+ return /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronLeftIcon, { className: cn("size-4", className2), ...props2 });
4889
+ }
4890
+ if (orientation === "right") {
4891
+ return /* @__PURE__ */ jsxRuntime.jsx(
4892
+ lucideReact.ChevronRightIcon,
4893
+ {
4894
+ className: cn("size-4", className2),
4895
+ ...props2
4896
+ }
4897
+ );
4898
+ }
4899
+ return /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDownIcon, { className: cn("size-4", className2), ...props2 });
4900
+ },
4901
+ DayButton: CalendarDayButton,
4902
+ WeekNumber: ({ children, ...props2 }) => {
4903
+ return /* @__PURE__ */ jsxRuntime.jsx("td", { ...props2, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex size-[--cell-size] items-center justify-center text-center", children }) });
4904
+ },
4905
+ ...components
4906
+ },
4907
+ ...props
4908
+ }
4909
+ );
4910
+ }
4911
+ function CalendarDayButton({
4912
+ className,
4913
+ day,
4914
+ modifiers,
4915
+ ...props
4916
+ }) {
4917
+ const defaultClassNames = reactDayPicker.getDefaultClassNames();
4918
+ const ref = React66__namespace.useRef(null);
4919
+ React66__namespace.useEffect(() => {
4920
+ if (modifiers.focused)
4921
+ ref.current?.focus();
4922
+ }, [modifiers.focused]);
4923
+ return /* @__PURE__ */ jsxRuntime.jsx(
4924
+ Button,
4925
+ {
4926
+ ref,
4927
+ variant: "ghost",
4928
+ size: "icon",
4929
+ "data-day": day.date.toLocaleDateString(),
4930
+ "data-selected-single": modifiers.selected && !modifiers.range_start && !modifiers.range_end && !modifiers.range_middle,
4931
+ "data-range-start": modifiers.range_start,
4932
+ "data-range-end": modifiers.range_end,
4933
+ "data-range-middle": modifiers.range_middle,
4934
+ className: cn(
4935
+ "data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 flex aspect-square h-auto w-full min-w-[--cell-size] flex-col gap-1 font-normal leading-none data-[range-end=true]:rounded-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] [&>span]:text-xs [&>span]:opacity-70",
4936
+ defaultClassNames.day,
4937
+ className
4938
+ ),
4939
+ ...props
4940
+ }
4941
+ );
4942
+ }
4943
+ var THEMES = { light: "", dark: ".dark" };
4944
+ var ChartContext = React66__namespace.createContext(null);
4945
+ function useChart() {
4946
+ const context = React66__namespace.useContext(ChartContext);
4947
+ if (!context) {
4948
+ throw new Error("useChart must be used within a <ChartContainer />");
4949
+ }
4950
+ return context;
4951
+ }
4952
+ var ChartContainer = React66__namespace.forwardRef(({ id, className, children, config, ...props }, ref) => {
4953
+ const uniqueId = React66__namespace.useId();
4954
+ const chartId = `chart-${id || uniqueId.replace(/:/g, "")}`;
4955
+ return /* @__PURE__ */ jsxRuntime.jsx(ChartContext.Provider, { value: { config }, children: /* @__PURE__ */ jsxRuntime.jsxs(
4956
+ "div",
4957
+ {
4958
+ "data-chart": chartId,
4959
+ ref,
4960
+ className: cn(
4961
+ "flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",
4962
+ className
4963
+ ),
4964
+ ...props,
4965
+ children: [
4966
+ /* @__PURE__ */ jsxRuntime.jsx(ChartStyle, { id: chartId, config }),
4967
+ /* @__PURE__ */ jsxRuntime.jsx(RechartsPrimitive__namespace.ResponsiveContainer, { children })
4968
+ ]
4969
+ }
4970
+ ) });
4971
+ });
4972
+ ChartContainer.displayName = "Chart";
4973
+ var ChartStyle = ({ id, config }) => {
4974
+ const colorConfig = Object.entries(config).filter(
4975
+ ([, config2]) => config2.theme || config2.color
4976
+ );
4977
+ if (!colorConfig.length) {
4978
+ return null;
4979
+ }
4980
+ return /* @__PURE__ */ jsxRuntime.jsx(
4981
+ "style",
4982
+ {
4983
+ dangerouslySetInnerHTML: {
4984
+ __html: Object.entries(THEMES).map(
4985
+ ([theme, prefix]) => `
4986
+ ${prefix} [data-chart=${id}] {
4987
+ ${colorConfig.map(([key, itemConfig]) => {
4988
+ const color = itemConfig.theme?.[theme] || itemConfig.color;
4989
+ return color ? ` --color-${key}: ${color};` : null;
4990
+ }).join("\n")}
4991
+ }
4992
+ `
4993
+ ).join("\n")
4994
+ }
4995
+ }
4996
+ );
4997
+ };
4998
+ var ChartTooltip = RechartsPrimitive__namespace.Tooltip;
4999
+ var ChartTooltipContent = React66__namespace.forwardRef(
5000
+ ({
5001
+ active,
5002
+ payload,
5003
+ className,
5004
+ indicator = "dot",
5005
+ hideLabel = false,
5006
+ hideIndicator = false,
5007
+ label,
5008
+ labelFormatter,
5009
+ labelClassName,
5010
+ formatter,
5011
+ color,
5012
+ nameKey,
5013
+ labelKey
5014
+ }, ref) => {
5015
+ const { config } = useChart();
5016
+ const tooltipLabel = React66__namespace.useMemo(() => {
5017
+ if (hideLabel || !payload?.length) {
5018
+ return null;
5019
+ }
5020
+ const [item] = payload;
5021
+ const key = `${labelKey || item?.dataKey || item?.name || "value"}`;
5022
+ const itemConfig = getPayloadConfigFromPayload(config, item, key);
5023
+ const value = !labelKey && typeof label === "string" ? config[label]?.label || label : itemConfig?.label;
5024
+ if (labelFormatter) {
5025
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("font-medium", labelClassName), children: labelFormatter(value, payload) });
5026
+ }
5027
+ if (!value) {
5028
+ return null;
5029
+ }
5030
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("font-medium", labelClassName), children: value });
5031
+ }, [
5032
+ label,
5033
+ labelFormatter,
5034
+ payload,
5035
+ hideLabel,
5036
+ labelClassName,
5037
+ config,
5038
+ labelKey
5039
+ ]);
5040
+ if (!active || !payload?.length) {
5041
+ return null;
5042
+ }
5043
+ const nestLabel = payload.length === 1 && indicator !== "dot";
5044
+ return /* @__PURE__ */ jsxRuntime.jsxs(
5045
+ "div",
5046
+ {
5047
+ ref,
5048
+ className: cn(
5049
+ "grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",
5050
+ className
5051
+ ),
5052
+ children: [
5053
+ !nestLabel ? tooltipLabel : null,
5054
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid gap-1.5", children: payload.filter((item) => item.type !== "none").map((item, index) => {
5055
+ const key = `${nameKey || item.name || item.dataKey || "value"}`;
5056
+ const itemConfig = getPayloadConfigFromPayload(config, item, key);
5057
+ const indicatorColor = color || item.payload.fill || item.color;
5058
+ return /* @__PURE__ */ jsxRuntime.jsx(
5059
+ "div",
5060
+ {
5061
+ className: cn(
5062
+ "flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground",
5063
+ indicator === "dot" && "items-center"
5064
+ ),
5065
+ children: formatter && item?.value !== void 0 && item.name ? formatter(item.value, item.name, item, index, item.payload) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
5066
+ itemConfig?.icon ? /* @__PURE__ */ jsxRuntime.jsx(itemConfig.icon, {}) : !hideIndicator && /* @__PURE__ */ jsxRuntime.jsx(
5067
+ "div",
5068
+ {
5069
+ className: cn(
5070
+ "shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]",
5071
+ {
5072
+ "h-2.5 w-2.5": indicator === "dot",
5073
+ "w-1": indicator === "line",
5074
+ "w-0 border-[1.5px] border-dashed bg-transparent": indicator === "dashed",
5075
+ "my-0.5": nestLabel && indicator === "dashed"
5076
+ }
5077
+ ),
5078
+ style: {
5079
+ "--color-bg": indicatorColor,
5080
+ "--color-border": indicatorColor
5081
+ }
5082
+ }
5083
+ ),
5084
+ /* @__PURE__ */ jsxRuntime.jsxs(
5085
+ "div",
5086
+ {
5087
+ className: cn(
5088
+ "flex flex-1 justify-between leading-none",
5089
+ nestLabel ? "items-end" : "items-center"
5090
+ ),
5091
+ children: [
5092
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid gap-1.5", children: [
5093
+ nestLabel ? tooltipLabel : null,
5094
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-muted-foreground", children: itemConfig?.label || item.name })
5095
+ ] }),
5096
+ item.value && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-mono font-medium tabular-nums text-foreground", children: item.value.toLocaleString() })
5097
+ ]
5098
+ }
5099
+ )
5100
+ ] })
5101
+ },
5102
+ item.dataKey
5103
+ );
5104
+ }) })
5105
+ ]
5106
+ }
5107
+ );
5108
+ }
5109
+ );
5110
+ ChartTooltipContent.displayName = "ChartTooltip";
5111
+ var ChartLegend = RechartsPrimitive__namespace.Legend;
5112
+ var ChartLegendContent = React66__namespace.forwardRef(
5113
+ ({ className, hideIcon = false, payload, verticalAlign = "bottom", nameKey }, ref) => {
5114
+ const { config } = useChart();
5115
+ if (!payload?.length) {
5116
+ return null;
5117
+ }
5118
+ return /* @__PURE__ */ jsxRuntime.jsx(
5119
+ "div",
5120
+ {
5121
+ ref,
5122
+ className: cn(
5123
+ "flex items-center justify-center gap-4",
5124
+ verticalAlign === "top" ? "pb-3" : "pt-3",
5125
+ className
5126
+ ),
5127
+ children: payload.filter((item) => item.type !== "none").map((item) => {
5128
+ const key = `${nameKey || item.dataKey || "value"}`;
5129
+ const itemConfig = getPayloadConfigFromPayload(config, item, key);
5130
+ return /* @__PURE__ */ jsxRuntime.jsxs(
5131
+ "div",
5132
+ {
5133
+ className: cn(
5134
+ "flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"
5135
+ ),
5136
+ children: [
5137
+ itemConfig?.icon && !hideIcon ? /* @__PURE__ */ jsxRuntime.jsx(itemConfig.icon, {}) : /* @__PURE__ */ jsxRuntime.jsx(
5138
+ "div",
5139
+ {
5140
+ className: "h-2 w-2 shrink-0 rounded-[2px]",
5141
+ style: {
5142
+ backgroundColor: item.color
5143
+ }
5144
+ }
5145
+ ),
5146
+ itemConfig?.label
5147
+ ]
5148
+ },
5149
+ item.value
5150
+ );
5151
+ })
5152
+ }
5153
+ );
5154
+ }
5155
+ );
5156
+ ChartLegendContent.displayName = "ChartLegend";
5157
+ function getPayloadConfigFromPayload(config, payload, key) {
5158
+ if (typeof payload !== "object" || payload === null) {
5159
+ return void 0;
5160
+ }
5161
+ const payloadPayload = "payload" in payload && typeof payload.payload === "object" && payload.payload !== null ? payload.payload : void 0;
5162
+ let configLabelKey = key;
5163
+ if (key in payload && typeof payload[key] === "string") {
5164
+ configLabelKey = payload[key];
5165
+ } else if (payloadPayload && key in payloadPayload && typeof payloadPayload[key] === "string") {
5166
+ configLabelKey = payloadPayload[key];
5167
+ }
5168
+ return configLabelKey in config ? config[configLabelKey] : config[key];
5169
+ }
5170
+ var Command = React66__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
5171
+ cmdk.Command,
5172
+ {
5173
+ ref,
5174
+ className: cn(
5175
+ "flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",
5176
+ className
5177
+ ),
5178
+ ...props
5179
+ }
5180
+ ));
5181
+ Command.displayName = cmdk.Command.displayName;
5182
+ var CommandDialog = ({ children, ...props }) => {
5183
+ return /* @__PURE__ */ jsxRuntime.jsx(Dialog, { ...props, children: /* @__PURE__ */ jsxRuntime.jsx(DialogContent, { className: "overflow-hidden p-0", children: /* @__PURE__ */ jsxRuntime.jsx(Command, { className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children }) }) });
5184
+ };
5185
+ var CommandInput = React66__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
5186
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Search, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
5187
+ /* @__PURE__ */ jsxRuntime.jsx(
5188
+ cmdk.Command.Input,
5189
+ {
5190
+ ref,
5191
+ className: cn(
5192
+ "flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
5193
+ className
5194
+ ),
5195
+ ...props
5196
+ }
5197
+ )
5198
+ ] }));
5199
+ CommandInput.displayName = cmdk.Command.Input.displayName;
5200
+ var CommandList = React66__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
5201
+ cmdk.Command.List,
5202
+ {
5203
+ ref,
5204
+ className: cn("max-h-[300px] overflow-y-auto overflow-x-hidden", className),
5205
+ ...props
5206
+ }
5207
+ ));
5208
+ CommandList.displayName = cmdk.Command.List.displayName;
5209
+ var CommandEmpty = React66__namespace.forwardRef((props, ref) => /* @__PURE__ */ jsxRuntime.jsx(
5210
+ cmdk.Command.Empty,
5211
+ {
5212
+ ref,
5213
+ className: "py-6 text-center text-sm",
5214
+ ...props
5215
+ }
5216
+ ));
5217
+ CommandEmpty.displayName = cmdk.Command.Empty.displayName;
5218
+ var CommandGroup = React66__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
5219
+ cmdk.Command.Group,
5220
+ {
5221
+ ref,
5222
+ className: cn(
5223
+ "overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",
5224
+ className
5225
+ ),
5226
+ ...props
5227
+ }
5228
+ ));
5229
+ CommandGroup.displayName = cmdk.Command.Group.displayName;
5230
+ var CommandSeparator = React66__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
5231
+ cmdk.Command.Separator,
5232
+ {
5233
+ ref,
5234
+ className: cn("-mx-1 h-px bg-border", className),
5235
+ ...props
5236
+ }
5237
+ ));
5238
+ CommandSeparator.displayName = cmdk.Command.Separator.displayName;
5239
+ var CommandItem2 = React66__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
5240
+ cmdk.Command.Item,
5241
+ {
5242
+ ref,
5243
+ className: cn(
5244
+ "relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
5245
+ className
5246
+ ),
5247
+ ...props
5248
+ }
5249
+ ));
5250
+ CommandItem2.displayName = cmdk.Command.Item.displayName;
5251
+ var Drawer = ({
5252
+ shouldScaleBackground = true,
5253
+ ...props
5254
+ }) => /* @__PURE__ */ jsxRuntime.jsx(
5255
+ vaul.Drawer.Root,
5256
+ {
5257
+ shouldScaleBackground,
5258
+ ...props
5259
+ }
5260
+ );
5261
+ Drawer.displayName = "Drawer";
5262
+ var DrawerTrigger = vaul.Drawer.Trigger;
5263
+ var DrawerPortal = vaul.Drawer.Portal;
5264
+ var DrawerClose = vaul.Drawer.Close;
5265
+ var DrawerOverlay = React66__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
5266
+ vaul.Drawer.Overlay,
5267
+ {
5268
+ ref,
5269
+ className: cn("fixed inset-0 z-50 bg-black/80", className),
5270
+ ...props
5271
+ }
5272
+ ));
5273
+ DrawerOverlay.displayName = vaul.Drawer.Overlay.displayName;
5274
+ var DrawerContent = React66__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(DrawerPortal, { children: [
5275
+ /* @__PURE__ */ jsxRuntime.jsx(DrawerOverlay, {}),
5276
+ /* @__PURE__ */ jsxRuntime.jsxs(
5277
+ vaul.Drawer.Content,
5278
+ {
5279
+ ref,
5280
+ className: cn(
5281
+ "fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",
5282
+ className
5283
+ ),
5284
+ ...props,
5285
+ children: [
5286
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" }),
5287
+ children
5288
+ ]
5289
+ }
5290
+ )
5291
+ ] }));
5292
+ DrawerContent.displayName = "DrawerContent";
5293
+ var DrawerHeader = ({
5294
+ className,
5295
+ ...props
5296
+ }) => /* @__PURE__ */ jsxRuntime.jsx(
5297
+ "div",
5298
+ {
5299
+ className: cn("grid gap-1.5 p-4 text-center sm:text-left", className),
5300
+ ...props
5301
+ }
5302
+ );
5303
+ DrawerHeader.displayName = "DrawerHeader";
5304
+ var DrawerFooter = ({
5305
+ className,
5306
+ ...props
5307
+ }) => /* @__PURE__ */ jsxRuntime.jsx(
5308
+ "div",
5309
+ {
5310
+ className: cn("mt-auto flex flex-col gap-2 p-4", className),
5311
+ ...props
5312
+ }
5313
+ );
5314
+ DrawerFooter.displayName = "DrawerFooter";
5315
+ var DrawerTitle = React66__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
5316
+ vaul.Drawer.Title,
5317
+ {
5318
+ ref,
5319
+ className: cn(
5320
+ "text-lg font-semibold leading-none tracking-tight",
5321
+ className
5322
+ ),
5323
+ ...props
5324
+ }
5325
+ ));
5326
+ DrawerTitle.displayName = vaul.Drawer.Title.displayName;
5327
+ var DrawerDescription = React66__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
5328
+ vaul.Drawer.Description,
5329
+ {
5330
+ ref,
5331
+ className: cn("text-sm text-muted-foreground", className),
5332
+ ...props
5333
+ }
5334
+ ));
5335
+ DrawerDescription.displayName = vaul.Drawer.Description.displayName;
5336
+ var InputOTP = React66__namespace.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
5337
+ inputOtp.OTPInput,
5338
+ {
5339
+ ref,
5340
+ containerClassName: cn(
5341
+ "flex items-center gap-2 has-[:disabled]:opacity-50",
5342
+ containerClassName
5343
+ ),
5344
+ className: cn("disabled:cursor-not-allowed", className),
5345
+ ...props
5346
+ }
5347
+ ));
5348
+ InputOTP.displayName = "InputOTP";
5349
+ var InputOTPGroup = React66__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn("flex items-center", className), ...props }));
5350
+ InputOTPGroup.displayName = "InputOTPGroup";
5351
+ var InputOTPSlot = React66__namespace.forwardRef(({ index, className, ...props }, ref) => {
5352
+ const inputOTPContext = React66__namespace.useContext(inputOtp.OTPInputContext);
5353
+ const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index];
5354
+ return /* @__PURE__ */ jsxRuntime.jsxs(
5355
+ "div",
5356
+ {
5357
+ ref,
5358
+ className: cn(
5359
+ "relative flex h-9 w-9 items-center justify-center border-y border-r border-input text-sm shadow-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md",
5360
+ isActive && "z-10 ring-1 ring-ring",
5361
+ className
5362
+ ),
5363
+ ...props,
5364
+ children: [
5365
+ char,
5366
+ hasFakeCaret && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-4 w-px animate-caret-blink bg-foreground duration-1000" }) })
5367
+ ]
5368
+ }
5369
+ );
5370
+ });
5371
+ InputOTPSlot.displayName = "InputOTPSlot";
5372
+ var InputOTPSeparator = React66__namespace.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, role: "separator", ...props, children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Minus, {}) }));
5373
+ InputOTPSeparator.displayName = "InputOTPSeparator";
5374
+ function MenubarMenu({
5375
+ ...props
5376
+ }) {
5377
+ return /* @__PURE__ */ jsxRuntime.jsx(MenubarPrimitive__namespace.Menu, { ...props });
5378
+ }
5379
+ function MenubarGroup({
5380
+ ...props
5381
+ }) {
5382
+ return /* @__PURE__ */ jsxRuntime.jsx(MenubarPrimitive__namespace.Group, { ...props });
5383
+ }
5384
+ function MenubarPortal({
5385
+ ...props
5386
+ }) {
5387
+ return /* @__PURE__ */ jsxRuntime.jsx(MenubarPrimitive__namespace.Portal, { ...props });
5388
+ }
5389
+ function MenubarRadioGroup({
5390
+ ...props
5391
+ }) {
5392
+ return /* @__PURE__ */ jsxRuntime.jsx(MenubarPrimitive__namespace.RadioGroup, { ...props });
5393
+ }
5394
+ function MenubarSub({
5395
+ ...props
5396
+ }) {
5397
+ return /* @__PURE__ */ jsxRuntime.jsx(MenubarPrimitive__namespace.Sub, { "data-slot": "menubar-sub", ...props });
5398
+ }
5399
+ var Menubar = React66__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
5400
+ MenubarPrimitive__namespace.Root,
5401
+ {
5402
+ ref,
5403
+ className: cn(
5404
+ "flex h-9 items-center space-x-1 rounded-md border bg-background p-1 shadow-sm",
5405
+ className
5406
+ ),
5407
+ ...props
5408
+ }
5409
+ ));
5410
+ Menubar.displayName = MenubarPrimitive__namespace.Root.displayName;
5411
+ var MenubarTrigger = React66__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
5412
+ MenubarPrimitive__namespace.Trigger,
5413
+ {
5414
+ ref,
5415
+ className: cn(
5416
+ "flex cursor-default select-none items-center rounded-sm px-3 py-1 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",
5417
+ className
5418
+ ),
5419
+ ...props
5420
+ }
5421
+ ));
5422
+ MenubarTrigger.displayName = MenubarPrimitive__namespace.Trigger.displayName;
5423
+ var MenubarSubTrigger = React66__namespace.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
5424
+ MenubarPrimitive__namespace.SubTrigger,
5425
+ {
5426
+ ref,
5427
+ className: cn(
5428
+ "flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",
5429
+ inset && "pl-8",
5430
+ className
5431
+ ),
5432
+ ...props,
5433
+ children: [
5434
+ children,
5435
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRight, { className: "ml-auto h-4 w-4" })
5436
+ ]
5437
+ }
5438
+ ));
5439
+ MenubarSubTrigger.displayName = MenubarPrimitive__namespace.SubTrigger.displayName;
5440
+ var MenubarSubContent = React66__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
5441
+ MenubarPrimitive__namespace.SubContent,
5442
+ {
5443
+ ref,
5444
+ className: cn(
5445
+ "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-menubar-content-transform-origin]",
5446
+ className
5447
+ ),
5448
+ ...props
5449
+ }
5450
+ ));
5451
+ MenubarSubContent.displayName = MenubarPrimitive__namespace.SubContent.displayName;
5452
+ var MenubarContent = React66__namespace.forwardRef(
5453
+ ({ className, align = "start", alignOffset = -4, sideOffset = 8, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(MenubarPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
5454
+ MenubarPrimitive__namespace.Content,
5455
+ {
5456
+ ref,
5457
+ align,
5458
+ alignOffset,
5459
+ sideOffset,
5460
+ className: cn(
5461
+ "z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-menubar-content-transform-origin]",
5462
+ className
5463
+ ),
5464
+ ...props
5465
+ }
5466
+ ) })
5467
+ );
5468
+ MenubarContent.displayName = MenubarPrimitive__namespace.Content.displayName;
5469
+ var MenubarItem = React66__namespace.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
5470
+ MenubarPrimitive__namespace.Item,
5471
+ {
5472
+ ref,
5473
+ className: cn(
5474
+ "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
5475
+ inset && "pl-8",
5476
+ className
5477
+ ),
5478
+ ...props
5479
+ }
5480
+ ));
5481
+ MenubarItem.displayName = MenubarPrimitive__namespace.Item.displayName;
5482
+ var MenubarCheckboxItem = React66__namespace.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
5483
+ MenubarPrimitive__namespace.CheckboxItem,
5484
+ {
5485
+ ref,
5486
+ className: cn(
5487
+ "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
5488
+ className
5489
+ ),
5490
+ checked,
5491
+ ...props,
5492
+ children: [
5493
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(MenubarPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Check, { className: "h-4 w-4" }) }) }),
5494
+ children
5495
+ ]
5496
+ }
5497
+ ));
5498
+ MenubarCheckboxItem.displayName = MenubarPrimitive__namespace.CheckboxItem.displayName;
5499
+ var MenubarRadioItem = React66__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
5500
+ MenubarPrimitive__namespace.RadioItem,
5501
+ {
5502
+ ref,
5503
+ className: cn(
5504
+ "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
5505
+ className
5506
+ ),
5507
+ ...props,
5508
+ children: [
5509
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(MenubarPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Circle, { className: "h-4 w-4 fill-current" }) }) }),
5510
+ children
5511
+ ]
5512
+ }
5513
+ ));
5514
+ MenubarRadioItem.displayName = MenubarPrimitive__namespace.RadioItem.displayName;
5515
+ var MenubarLabel = React66__namespace.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
5516
+ MenubarPrimitive__namespace.Label,
5517
+ {
5518
+ ref,
5519
+ className: cn(
5520
+ "px-2 py-1.5 text-sm font-semibold",
5521
+ inset && "pl-8",
5522
+ className
5523
+ ),
5524
+ ...props
5525
+ }
5526
+ ));
5527
+ MenubarLabel.displayName = MenubarPrimitive__namespace.Label.displayName;
5528
+ var MenubarSeparator = React66__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
5529
+ MenubarPrimitive__namespace.Separator,
5530
+ {
5531
+ ref,
5532
+ className: cn("-mx-1 my-1 h-px bg-muted", className),
5533
+ ...props
5534
+ }
5535
+ ));
5536
+ MenubarSeparator.displayName = MenubarPrimitive__namespace.Separator.displayName;
5537
+ var MenubarShortcut = ({
5538
+ className,
5539
+ ...props
5540
+ }) => {
5541
+ return /* @__PURE__ */ jsxRuntime.jsx(
5542
+ "span",
5543
+ {
5544
+ className: cn(
5545
+ "ml-auto text-xs tracking-widest text-muted-foreground",
5546
+ className
5547
+ ),
5548
+ ...props
5549
+ }
5550
+ );
5551
+ };
5552
+ MenubarShortcut.displayname = "MenubarShortcut";
5553
+ var ResizablePanelGroup = ({
5554
+ className,
5555
+ ...props
5556
+ }) => /* @__PURE__ */ jsxRuntime.jsx(
5557
+ ResizablePrimitive__namespace.PanelGroup,
5558
+ {
5559
+ className: cn(
5560
+ "flex h-full w-full data-[panel-group-direction=vertical]:flex-col",
5561
+ className
5562
+ ),
5563
+ ...props
5564
+ }
5565
+ );
5566
+ var ResizablePanel = ResizablePrimitive__namespace.Panel;
5567
+ var ResizableHandle = ({
5568
+ withHandle,
5569
+ className,
5570
+ ...props
5571
+ }) => /* @__PURE__ */ jsxRuntime.jsx(
5572
+ ResizablePrimitive__namespace.PanelResizeHandle,
5573
+ {
5574
+ className: cn(
5575
+ "relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",
5576
+ className
5577
+ ),
5578
+ ...props,
5579
+ children: withHandle && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.GripVertical, { className: "h-2.5 w-2.5" }) })
5580
+ }
5581
+ );
5582
+ function Spinner({ className, ...props }) {
5583
+ return /* @__PURE__ */ jsxRuntime.jsx(
5584
+ lucideReact.Loader2Icon,
5585
+ {
5586
+ role: "status",
5587
+ "aria-label": "Loading",
5588
+ className: cn("size-4 animate-spin", className),
5589
+ ...props
5590
+ }
5591
+ );
5592
+ }
4757
5593
 
4758
5594
  Object.defineProperty(exports, "Form", {
4759
5595
  enumerable: true,
@@ -4802,6 +5638,7 @@ exports.BreadcrumbPage = BreadcrumbPage;
4802
5638
  exports.BreadcrumbSeparator = BreadcrumbSeparator;
4803
5639
  exports.BulkActions = BulkActions;
4804
5640
  exports.Button = Button;
5641
+ exports.Calendar = Calendar3;
4805
5642
  exports.Card = Card;
4806
5643
  exports.CardContent = CardContent;
4807
5644
  exports.CardDescription = CardDescription;
@@ -4813,6 +5650,11 @@ exports.CarouselContent = CarouselContent;
4813
5650
  exports.CarouselItem = CarouselItem;
4814
5651
  exports.CarouselNext = CarouselNext;
4815
5652
  exports.CarouselPrevious = CarouselPrevious;
5653
+ exports.ChartContainer = ChartContainer;
5654
+ exports.ChartLegend = ChartLegend;
5655
+ exports.ChartLegendContent = ChartLegendContent;
5656
+ exports.ChartTooltip = ChartTooltip;
5657
+ exports.ChartTooltipContent = ChartTooltipContent;
4816
5658
  exports.ChatDetail = ChatDetail;
4817
5659
  exports.Checkbox = Checkbox;
4818
5660
  exports.Collapsible = Collapsible;
@@ -4822,7 +5664,14 @@ exports.CommandBar = CommandBar;
4822
5664
  exports.CommandBarEmpty = CommandBarEmpty;
4823
5665
  exports.CommandBarGroup = CommandBarGroup;
4824
5666
  exports.CommandBarItem = CommandBarItem;
5667
+ exports.CommandDialog = CommandDialog;
5668
+ exports.CommandEmpty = CommandEmpty;
5669
+ exports.CommandGroup = CommandGroup;
5670
+ exports.CommandInput = CommandInput;
4825
5671
  exports.CommandItem = CommandItem;
5672
+ exports.CommandList = CommandList;
5673
+ exports.CommandPrimitive = Command;
5674
+ exports.CommandSeparator = CommandSeparator;
4826
5675
  exports.Container = Container;
4827
5676
  exports.ContextMenu = ContextMenu;
4828
5677
  exports.ContextMenuCheckboxItem = ContextMenuCheckboxItem;
@@ -4855,6 +5704,16 @@ exports.DialogOverlay = DialogOverlay;
4855
5704
  exports.DialogPortal = DialogPortal;
4856
5705
  exports.DialogTitle = DialogTitle;
4857
5706
  exports.DialogTrigger = DialogTrigger;
5707
+ exports.Drawer = Drawer;
5708
+ exports.DrawerClose = DrawerClose;
5709
+ exports.DrawerContent = DrawerContent;
5710
+ exports.DrawerDescription = DrawerDescription;
5711
+ exports.DrawerFooter = DrawerFooter;
5712
+ exports.DrawerHeader = DrawerHeader;
5713
+ exports.DrawerOverlay = DrawerOverlay;
5714
+ exports.DrawerPortal = DrawerPortal;
5715
+ exports.DrawerTitle = DrawerTitle;
5716
+ exports.DrawerTrigger = DrawerTrigger;
4858
5717
  exports.DropdownMenu = DropdownMenu;
4859
5718
  exports.DropdownMenuCheckboxItem = DropdownMenuCheckboxItem;
4860
5719
  exports.DropdownMenuContent = DropdownMenuContent;
@@ -4897,6 +5756,10 @@ exports.HoverCardContent = HoverCardContent;
4897
5756
  exports.HoverCardTrigger = HoverCardTrigger;
4898
5757
  exports.IconBadge = IconBadge;
4899
5758
  exports.Input = Input;
5759
+ exports.InputOTP = InputOTP;
5760
+ exports.InputOTPGroup = InputOTPGroup;
5761
+ exports.InputOTPSeparator = InputOTPSeparator;
5762
+ exports.InputOTPSlot = InputOTPSlot;
4900
5763
  exports.IntegrationCard = IntegrationCard;
4901
5764
  exports.InviteModal = InviteModal;
4902
5765
  exports.Kanban = Kanban;
@@ -4906,6 +5769,22 @@ exports.Label = Label5;
4906
5769
  exports.LineChart = LineChart;
4907
5770
  exports.LoadingOverlay = LoadingOverlay;
4908
5771
  exports.ManageTagsModal = ManageTagsModal;
5772
+ exports.Menubar = Menubar;
5773
+ exports.MenubarCheckboxItem = MenubarCheckboxItem;
5774
+ exports.MenubarContent = MenubarContent;
5775
+ exports.MenubarGroup = MenubarGroup;
5776
+ exports.MenubarItem = MenubarItem;
5777
+ exports.MenubarLabel = MenubarLabel;
5778
+ exports.MenubarMenu = MenubarMenu;
5779
+ exports.MenubarPortal = MenubarPortal;
5780
+ exports.MenubarRadioGroup = MenubarRadioGroup;
5781
+ exports.MenubarRadioItem = MenubarRadioItem;
5782
+ exports.MenubarSeparator = MenubarSeparator;
5783
+ exports.MenubarShortcut = MenubarShortcut;
5784
+ exports.MenubarSub = MenubarSub;
5785
+ exports.MenubarSubContent = MenubarSubContent;
5786
+ exports.MenubarSubTrigger = MenubarSubTrigger;
5787
+ exports.MenubarTrigger = MenubarTrigger;
4909
5788
  exports.MessagesCard = MessagesCard;
4910
5789
  exports.MetricCard = MetricCard;
4911
5790
  exports.MetricCardWithButton = MetricCardWithButton;
@@ -4950,6 +5829,9 @@ exports.PropertyItem = PropertyItem;
4950
5829
  exports.PropertyList = PropertyList;
4951
5830
  exports.RadioGroup = RadioGroup;
4952
5831
  exports.RadioGroupItem = RadioGroupItem;
5832
+ exports.ResizableHandle = ResizableHandle;
5833
+ exports.ResizablePanel = ResizablePanel;
5834
+ exports.ResizablePanelGroup = ResizablePanelGroup;
4953
5835
  exports.ResizeBox = ResizeBox;
4954
5836
  exports.ResizeHandle = ResizeHandle;
4955
5837
  exports.RolesMenu = RolesMenu;
@@ -4995,6 +5877,7 @@ exports.Skeleton = Skeleton;
4995
5877
  exports.Slider = Slider;
4996
5878
  exports.SortableTaskList = SortableTaskList;
4997
5879
  exports.Sparkline = Sparkline;
5880
+ exports.Spinner = Spinner;
4998
5881
  exports.SplitPage = SplitPage;
4999
5882
  exports.SplitPageDetail = SplitPageDetail;
5000
5883
  exports.SplitPageList = SplitPageList;