@clasing/ui 0.1.123 → 0.1.125
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/badge-BnerQ2lF.js +85 -0
- package/dist/badge-Czof3oqL.cjs +1 -0
- package/dist/button-Cegl49Yi.cjs +1 -0
- package/dist/button-DddHyyHa.js +504 -0
- package/dist/calendar-BAQkzm4v.js +117 -0
- package/dist/calendar-DL8gqdRp.cjs +1 -0
- package/dist/card-BCgtou88.cjs +1 -0
- package/dist/card-BfBXE5Kq.js +90 -0
- package/dist/chip-A32aAc-8.cjs +1 -0
- package/dist/chip-ZZHZ8i1Q.js +127 -0
- package/dist/command-BGCSJ9vX.js +506 -0
- package/dist/command-D9M8dk1M.cjs +1 -0
- package/dist/components/accordion.cjs.js +1 -0
- package/dist/components/accordion.d.ts +7 -0
- package/dist/components/accordion.es.js +70 -0
- package/dist/components/alert-dialog.cjs.js +1 -0
- package/dist/components/alert-dialog.d.ts +14 -0
- package/dist/components/alert-dialog.es.js +146 -0
- package/dist/components/alert.cjs.js +1 -0
- package/dist/components/alert.d.ts +15 -0
- package/dist/components/alert.es.js +97 -0
- package/dist/components/avatar.cjs.js +1 -0
- package/dist/components/avatar.d.ts +6 -0
- package/dist/components/avatar.es.js +53 -0
- package/dist/components/badge.cjs.js +1 -0
- package/dist/components/badge.d.ts +18 -0
- package/dist/components/badge.es.js +4 -0
- package/dist/components/blocks/date-picker.cjs.js +1 -0
- package/dist/components/blocks/date-picker.d.ts +30 -0
- package/dist/components/blocks/date-picker.es.js +181 -0
- package/dist/components/blocks/date-range-picker.cjs.js +1 -0
- package/dist/components/blocks/date-range-picker.d.ts +29 -0
- package/dist/components/blocks/date-range-picker.es.js +238 -0
- package/dist/components/blocks/interactive-card.cjs.js +1 -0
- package/dist/components/blocks/interactive-card.d.ts +26 -0
- package/dist/components/blocks/interactive-card.es.js +138 -0
- package/dist/components/blocks/selectable-chips.cjs.js +1 -0
- package/dist/components/blocks/selectable-chips.d.ts +16 -0
- package/dist/components/blocks/selectable-chips.es.js +57 -0
- package/dist/components/breadcrumb.cjs.js +1 -0
- package/dist/components/breadcrumb.d.ts +11 -0
- package/dist/components/breadcrumb.es.js +106 -0
- package/dist/components/button.cjs.js +1 -0
- package/dist/components/button.d.ts +39 -0
- package/dist/components/button.es.js +7 -0
- package/dist/components/calendar.cjs.js +1 -0
- package/dist/components/calendar.d.ts +15 -0
- package/dist/components/calendar.es.js +4 -0
- package/dist/components/card.cjs.js +1 -0
- package/dist/components/card.d.ts +9 -0
- package/dist/components/card.es.js +10 -0
- package/dist/components/chart.cjs.js +7 -0
- package/dist/components/chart.d.ts +43 -0
- package/dist/components/chart.es.js +213 -0
- package/dist/components/checkbox.cjs.js +1 -0
- package/dist/components/checkbox.d.ts +4 -0
- package/dist/components/checkbox.es.js +31 -0
- package/dist/components/chip.cjs.js +1 -0
- package/dist/components/chip.d.ts +25 -0
- package/dist/components/chip.es.js +5 -0
- package/dist/components/collapsible.cjs.js +1 -0
- package/dist/components/collapsible.d.ts +5 -0
- package/dist/components/collapsible.es.js +34 -0
- package/dist/components/command.cjs.js +1 -0
- package/dist/components/command.d.ts +18 -0
- package/dist/components/command.es.js +12 -0
- package/dist/components/context-menu.cjs.js +1 -0
- package/dist/components/context-menu.d.ts +25 -0
- package/dist/components/context-menu.es.js +229 -0
- package/dist/components/dialog.cjs.js +1 -0
- package/dist/components/dialog.d.ts +15 -0
- package/dist/components/dialog.es.js +13 -0
- package/dist/components/divider.cjs.js +1 -0
- package/dist/components/divider.d.ts +6 -0
- package/dist/components/divider.es.js +21 -0
- package/dist/components/drawer.cjs.js +3 -0
- package/dist/components/drawer.d.ts +13 -0
- package/dist/components/drawer.es.js +1161 -0
- package/dist/components/dropdown-menu.cjs.js +1 -0
- package/dist/components/dropdown-menu.d.ts +25 -0
- package/dist/components/dropdown-menu.es.js +237 -0
- package/dist/components/hover-card.cjs.js +1 -0
- package/dist/components/hover-card.d.ts +6 -0
- package/dist/components/hover-card.es.js +38 -0
- package/dist/components/icon-component.cjs.js +1 -0
- package/dist/components/icon-component.d.ts +12 -0
- package/dist/components/icon-component.es.js +4 -0
- package/dist/components/input-otp.cjs.js +20 -0
- package/dist/components/input-otp.d.ts +11 -0
- package/dist/components/input-otp.es.js +253 -0
- package/dist/components/input.cjs.js +1 -0
- package/dist/components/input.d.ts +32 -0
- package/dist/components/input.es.js +4 -0
- package/dist/components/label.cjs.js +1 -0
- package/dist/components/label.d.ts +4 -0
- package/dist/components/label.es.js +4 -0
- package/dist/components/menubar.cjs.js +1 -0
- package/dist/components/menubar.d.ts +26 -0
- package/dist/components/menubar.es.js +257 -0
- package/dist/components/multi-select.cjs.js +1 -0
- package/dist/components/multi-select.d.ts +32 -0
- package/dist/components/multi-select.es.js +233 -0
- package/dist/components/navigation-menu.cjs.js +1 -0
- package/dist/components/navigation-menu.d.ts +14 -0
- package/dist/components/navigation-menu.es.js +171 -0
- package/dist/components/phone-input.cjs.js +1 -0
- package/dist/components/phone-input.d.ts +14 -0
- package/dist/components/phone-input.es.js +253 -0
- package/dist/components/popover.cjs.js +1 -0
- package/dist/components/popover.d.ts +7 -0
- package/dist/components/popover.es.js +7 -0
- package/dist/components/progress.cjs.js +1 -0
- package/dist/components/progress.d.ts +4 -0
- package/dist/components/progress.es.js +31 -0
- package/dist/components/resizable.cjs.js +1 -0
- package/dist/components/resizable.d.ts +8 -0
- package/dist/components/resizable.es.js +1551 -0
- package/dist/components/scroll-area.cjs.js +1 -0
- package/dist/components/scroll-area.d.ts +5 -0
- package/dist/components/scroll-area.es.js +5 -0
- package/dist/components/select.cjs.js +1 -0
- package/dist/components/select.d.ts +15 -0
- package/dist/components/select.es.js +179 -0
- package/dist/components/sheet.cjs.js +1 -0
- package/dist/components/sheet.d.ts +13 -0
- package/dist/components/sheet.es.js +126 -0
- package/dist/components/skeleton.cjs.js +1 -0
- package/dist/components/skeleton.d.ts +2 -0
- package/dist/components/skeleton.es.js +15 -0
- package/dist/components/slider.cjs.js +1 -0
- package/dist/components/slider.d.ts +4 -0
- package/dist/components/slider.es.js +63 -0
- package/dist/components/sonner.cjs.js +1 -0
- package/dist/components/sonner.d.ts +3 -0
- package/dist/components/sonner.es.js +68 -0
- package/dist/components/switch.cjs.js +1 -0
- package/dist/components/switch.d.ts +11 -0
- package/dist/components/switch.es.js +82 -0
- package/dist/components/table.cjs.js +1 -0
- package/dist/components/table.d.ts +10 -0
- package/dist/components/table.es.js +114 -0
- package/dist/components/toggle-group.cjs.js +1 -0
- package/dist/components/toggle-group.d.ts +7 -0
- package/dist/components/toggle-group.es.js +62 -0
- package/dist/components/toggle.cjs.js +1 -0
- package/dist/components/toggle.d.ts +9 -0
- package/dist/components/toggle.es.js +5 -0
- package/dist/components/tooltip.cjs.js +1 -0
- package/dist/components/tooltip.d.ts +7 -0
- package/dist/components/tooltip.es.js +7 -0
- package/dist/dialog-BKm2PZl2.cjs +1 -0
- package/dist/dialog-DZpF7OXg.js +136 -0
- package/dist/entries/accordion.d.ts +2 -0
- package/dist/entries/alert-dialog.d.ts +2 -0
- package/dist/entries/alert.d.ts +2 -0
- package/dist/entries/avatar.d.ts +2 -0
- package/dist/entries/badge.d.ts +2 -0
- package/dist/entries/blocks/date-picker.d.ts +2 -0
- package/dist/entries/blocks/date-range-picker.d.ts +2 -0
- package/dist/entries/blocks/interactive-card.d.ts +2 -0
- package/dist/entries/blocks/selectable-chips.d.ts +2 -0
- package/dist/entries/breadcrumb.d.ts +2 -0
- package/dist/entries/button.d.ts +2 -0
- package/dist/entries/calendar.d.ts +2 -0
- package/dist/entries/card.d.ts +2 -0
- package/dist/entries/chart.d.ts +2 -0
- package/dist/entries/checkbox.d.ts +2 -0
- package/dist/entries/chip.d.ts +2 -0
- package/dist/entries/collapsible.d.ts +2 -0
- package/dist/entries/command.d.ts +2 -0
- package/dist/entries/context-menu.d.ts +2 -0
- package/dist/entries/dialog.d.ts +2 -0
- package/dist/entries/divider.d.ts +2 -0
- package/dist/entries/drawer.d.ts +2 -0
- package/dist/entries/dropdown-menu.d.ts +2 -0
- package/dist/entries/hooks/useOutsideClick.d.ts +2 -0
- package/dist/entries/hover-card.d.ts +2 -0
- package/dist/entries/icon-component.d.ts +2 -0
- package/dist/entries/input-otp.d.ts +2 -0
- package/dist/entries/input.d.ts +2 -0
- package/dist/entries/label.d.ts +2 -0
- package/dist/entries/menubar.d.ts +2 -0
- package/dist/entries/multi-select.d.ts +2 -0
- package/dist/entries/navigation-menu.d.ts +2 -0
- package/dist/entries/phone-input.d.ts +2 -0
- package/dist/entries/popover.d.ts +2 -0
- package/dist/entries/progress.d.ts +2 -0
- package/dist/entries/resizable.d.ts +2 -0
- package/dist/entries/scroll-area.d.ts +2 -0
- package/dist/entries/select.d.ts +2 -0
- package/dist/entries/sheet.d.ts +2 -0
- package/dist/entries/skeleton.d.ts +2 -0
- package/dist/entries/slider.d.ts +2 -0
- package/dist/entries/sonner.d.ts +2 -0
- package/dist/entries/switch.d.ts +2 -0
- package/dist/entries/table.d.ts +2 -0
- package/dist/entries/toggle-group.d.ts +2 -0
- package/dist/entries/toggle.d.ts +2 -0
- package/dist/entries/tooltip.d.ts +2 -0
- package/dist/entries/utils/types.d.ts +2 -0
- package/dist/hooks/useOutsideClick.cjs.js +1 -0
- package/dist/hooks/useOutsideClick.d.ts +6 -0
- package/dist/hooks/useOutsideClick.es.js +14 -0
- package/dist/icon-component-BZ-4FDV6.js +49 -0
- package/dist/icon-component-LY_vGYHZ.cjs +1 -0
- package/dist/index-BqtVL8d-.js +34 -0
- package/dist/index-C8P6Mn4U.cjs +1 -0
- package/dist/index-CRiPKpXj.js +2743 -0
- package/dist/index-DoxiiusW.cjs +1 -0
- package/dist/input-DFPJ_mtM.cjs +1 -0
- package/dist/input-DwPDvbRE.js +174 -0
- package/dist/jsx-runtime-C5mzlN2N.js +284 -0
- package/dist/jsx-runtime-DUiatUiq.cjs +22 -0
- package/dist/label-BpDUqtrC.js +22 -0
- package/dist/label-CbzkBbPT.cjs +1 -0
- package/dist/popover-B8wp2cHF.cjs +1 -0
- package/dist/popover-BoDRCUh2.js +44 -0
- package/dist/scroll-area-CNsThIs_.js +60 -0
- package/dist/scroll-area-Dr-7opp_.cjs +1 -0
- package/dist/style-BNIXVvBA.js +1172 -0
- package/dist/style-CA5976Oh.cjs +1 -0
- package/dist/tests/setup.d.ts +1 -0
- package/dist/toggle-Dgd7L2Mq.cjs +1 -0
- package/dist/toggle-DjbiWYXD.js +44 -0
- package/dist/tooltip-Btr9ROSo.js +55 -0
- package/dist/tooltip-W9iE1O--.cjs +1 -0
- package/dist/ui.css +427 -16
- package/dist/utils/index.d.ts +5 -0
- package/dist/utils/types/index.d.ts +36 -0
- package/dist/utils/types.cjs.js +1 -0
- package/dist/utils/types.es.js +1 -0
- package/package.json +301 -38
- package/dist/index.d.ts +0 -566
- package/dist/index.es.js +0 -7538
- package/dist/index.umd.js +0 -22
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import 'react-day-picker/dist/style.css';
|
|
2
|
+
export interface ICalendarProps {
|
|
3
|
+
locale?: 'enGB' | 'enUS' | 'es' | 'fr';
|
|
4
|
+
disabledDates?: string | string[] | Date | Date[] | undefined;
|
|
5
|
+
enabledDates?: string | string[] | Date | Date[] | undefined;
|
|
6
|
+
dropdownsSelectors?: boolean;
|
|
7
|
+
hideNavigation?: boolean;
|
|
8
|
+
showOutsideDays?: boolean;
|
|
9
|
+
minDate?: Date;
|
|
10
|
+
maxDate?: Date;
|
|
11
|
+
value?: string;
|
|
12
|
+
onChange?: (value: string | undefined) => void | undefined;
|
|
13
|
+
className?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const Calendar: React.FC<ICalendarProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../card-BCgtou88.cjs");exports.Card=r.Card;exports.CardAction=r.CardAction;exports.CardContent=r.CardContent;exports.CardDescription=r.CardDescription;exports.CardFooter=r.CardFooter;exports.CardHeader=r.CardHeader;exports.CardTitle=r.CardTitle;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare function Card({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare function CardHeader({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function CardTitle({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function CardDescription({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function CardAction({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function CardContent({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function CardFooter({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../jsx-runtime-DUiatUiq.cjs"),P=require("react"),S=require("recharts"),a=require("../index-DoxiiusW.cjs");function _(s){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const r in s)if(r!=="default"){const t=Object.getOwnPropertyDescriptor(s,r);Object.defineProperty(e,r,t.get?t:{enumerable:!0,get:()=>s[r]})}}return e.default=s,Object.freeze(e)}const m=_(P),b=_(S),T={light:"",dark:".dark"},k=m.createContext(null);function y(){const s=m.useContext(k);if(!s)throw new Error("useChart must be used within a <ChartContainer />");return s}function $({id:s,className:e,children:r,config:t,...i}){const u=m.useId(),c=`chart-${s||u.replace(/:/g,"")}`;return n.jsxRuntimeExports.jsx(k.Provider,{value:{config:t},children:n.jsxRuntimeExports.jsxs("div",{"data-slot":"chart","data-chart":c,className:a.cn("[&_.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-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 flex aspect-video justify-center text-xs [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden",e),...i,children:[n.jsxRuntimeExports.jsx(w,{id:c,config:t}),n.jsxRuntimeExports.jsx(b.ResponsiveContainer,{children:r})]})})}const w=({id:s,config:e})=>{const r=Object.entries(e).filter(([,t])=>t.theme||t.color);return r.length?n.jsxRuntimeExports.jsx("style",{dangerouslySetInnerHTML:{__html:Object.entries(T).map(([t,i])=>`
|
|
2
|
+
${i} [data-chart=${s}] {
|
|
3
|
+
${r.map(([u,c])=>{const l=c.theme?.[t]||c.color;return l?` --color-${u}: ${l};`:null}).join(`
|
|
4
|
+
`)}
|
|
5
|
+
}
|
|
6
|
+
`).join(`
|
|
7
|
+
`)}}):null},O=b.Tooltip;function q({active:s,payload:e,className:r,indicator:t="dot",hideLabel:i=!1,hideIndicator:u=!1,label:c,labelFormatter:l,labelClassName:d,formatter:C,color:N,nameKey:L,labelKey:p}){const{config:h}=y(),R=m.useMemo(()=>{if(i||!e?.length)return null;const[o]=e,g=`${p||o?.dataKey||o?.name||"value"}`,j=v(h,o,g),x=!p&&typeof c=="string"?h[c]?.label||c:j?.label;return l?n.jsxRuntimeExports.jsx("div",{className:a.cn("font-semibold",d),children:l(x,e)}):x?n.jsxRuntimeExports.jsx("div",{className:a.cn("font-semibold",d),children:x}):null},[c,l,e,i,d,h,p]);if(!s||!e?.length)return null;const f=e.length===1&&t!=="dot";return n.jsxRuntimeExports.jsxs("div",{className:a.cn("border-border/50 bg-background grid min-w-[8rem] items-start gap-1.5 rounded-lg border px-2.5 py-1.5 text-xs shadow-xl",r),children:[f?null:R,n.jsxRuntimeExports.jsx("div",{className:"grid gap-1.5",children:e.map((o,g)=>{const j=`${L||o.name||o.dataKey||"value"}`,x=v(h,o,j),E=N||o.payload.fill||o.color;return n.jsxRuntimeExports.jsx("div",{className:a.cn("[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5",t==="dot"&&"items-center"),children:C&&o?.value!==void 0&&o.name?C(o.value,o.name,o,g,o.payload):n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[x?.icon?n.jsxRuntimeExports.jsx(x.icon,{}):!u&&n.jsxRuntimeExports.jsx("div",{className:a.cn("shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)",{"h-2.5 w-2.5":t==="dot","w-1":t==="line","w-0 border-[1.5px] border-dashed bg-transparent":t==="dashed","my-0.5":f&&t==="dashed"}),style:{"--color-bg":E,"--color-border":E}}),n.jsxRuntimeExports.jsxs("div",{className:a.cn("flex flex-1 justify-between leading-none",f?"items-end":"items-center"),children:[n.jsxRuntimeExports.jsxs("div",{className:"grid gap-1.5",children:[f?R:null,n.jsxRuntimeExports.jsx("span",{className:"text-muted-foreground",children:x?.label||o.name})]}),o.value&&n.jsxRuntimeExports.jsx("span",{className:"text-foreground font-mono font-semibold tabular-nums",children:o.value.toLocaleString()})]})]})},o.dataKey)})})]})}const M=b.Legend;function I({className:s,hideIcon:e=!1,payload:r,verticalAlign:t="bottom",nameKey:i}){const{config:u}=y();return r?.length?n.jsxRuntimeExports.jsx("div",{className:a.cn("flex items-center justify-center gap-4",t==="top"?"pb-3":"pt-3",s),children:r?.map(c=>{const l=`${i||c.dataKey||"value"}`,d=v(u,c,l);return n.jsxRuntimeExports.jsxs("div",{className:a.cn("[&>svg]:text-muted-foreground flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3"),children:[d?.icon&&!e?n.jsxRuntimeExports.jsx(d.icon,{}):n.jsxRuntimeExports.jsx("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:c.color}}),d?.label]},c.value)})}):null}function v(s,e,r){if(typeof e!="object"||e===null)return;const t="payload"in e&&typeof e.payload=="object"&&e.payload!==null?e.payload:void 0;let i=r;return r in e&&typeof e[r]=="string"?i=e[r]:t&&r in t&&typeof t[r]=="string"&&(i=t[r]),i in s?s[i]:s[r]}exports.ChartContainer=$;exports.ChartLegend=M;exports.ChartLegendContent=I;exports.ChartStyle=w;exports.ChartTooltip=O;exports.ChartTooltipContent=q;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as RechartsPrimitive from 'recharts';
|
|
3
|
+
declare const THEMES: {
|
|
4
|
+
readonly light: "";
|
|
5
|
+
readonly dark: ".dark";
|
|
6
|
+
};
|
|
7
|
+
export type ChartConfig = {
|
|
8
|
+
[k in string]: {
|
|
9
|
+
label?: React.ReactNode;
|
|
10
|
+
icon?: React.ComponentType;
|
|
11
|
+
} & ({
|
|
12
|
+
color?: string;
|
|
13
|
+
theme?: never;
|
|
14
|
+
} | {
|
|
15
|
+
color?: never;
|
|
16
|
+
theme: Record<keyof typeof THEMES, string>;
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
declare function ChartContainer({ id, className, children, config, ...props }: React.ComponentProps<'div'> & {
|
|
20
|
+
config: ChartConfig;
|
|
21
|
+
children: React.ComponentProps<typeof RechartsPrimitive.ResponsiveContainer>['children'];
|
|
22
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
declare const ChartStyle: ({ id, config }: {
|
|
24
|
+
id: string;
|
|
25
|
+
config: ChartConfig;
|
|
26
|
+
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
27
|
+
declare const ChartTooltip: typeof RechartsPrimitive.Tooltip;
|
|
28
|
+
declare function ChartTooltipContent({ active, payload, className, indicator, hideLabel, hideIndicator, label, labelFormatter, labelClassName, formatter, color, nameKey, labelKey, }: React.ComponentProps<typeof RechartsPrimitive.Tooltip> & React.ComponentProps<'div'> & {
|
|
29
|
+
hideLabel?: boolean;
|
|
30
|
+
hideIndicator?: boolean;
|
|
31
|
+
indicator?: 'line' | 'dot' | 'dashed';
|
|
32
|
+
nameKey?: string;
|
|
33
|
+
labelKey?: string;
|
|
34
|
+
payload?: any[];
|
|
35
|
+
label?: string;
|
|
36
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
37
|
+
declare const ChartLegend: typeof RechartsPrimitive.Legend;
|
|
38
|
+
declare function ChartLegendContent({ className, hideIcon, payload, verticalAlign, nameKey, }: React.ComponentProps<'div'> & Pick<RechartsPrimitive.LegendProps, 'verticalAlign'> & {
|
|
39
|
+
hideIcon?: boolean;
|
|
40
|
+
nameKey?: string;
|
|
41
|
+
payload?: any[];
|
|
42
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
43
|
+
export { ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, };
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
import { j as r } from "../jsx-runtime-C5mzlN2N.js";
|
|
2
|
+
import * as x from "react";
|
|
3
|
+
import * as b from "recharts";
|
|
4
|
+
import { c as l } from "../index-CRiPKpXj.js";
|
|
5
|
+
const L = { light: "", dark: ".dark" }, w = x.createContext(null);
|
|
6
|
+
function N() {
|
|
7
|
+
const c = x.useContext(w);
|
|
8
|
+
if (!c)
|
|
9
|
+
throw new Error("useChart must be used within a <ChartContainer />");
|
|
10
|
+
return c;
|
|
11
|
+
}
|
|
12
|
+
function I({
|
|
13
|
+
id: c,
|
|
14
|
+
className: e,
|
|
15
|
+
children: s,
|
|
16
|
+
config: t,
|
|
17
|
+
...a
|
|
18
|
+
}) {
|
|
19
|
+
const d = x.useId(), o = `chart-${c || d.replace(/:/g, "")}`;
|
|
20
|
+
return /* @__PURE__ */ r.jsx(w.Provider, { value: { config: t }, children: /* @__PURE__ */ r.jsxs(
|
|
21
|
+
"div",
|
|
22
|
+
{
|
|
23
|
+
"data-slot": "chart",
|
|
24
|
+
"data-chart": o,
|
|
25
|
+
className: l(
|
|
26
|
+
"[&_.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-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 flex aspect-video justify-center text-xs [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden",
|
|
27
|
+
e
|
|
28
|
+
),
|
|
29
|
+
...a,
|
|
30
|
+
children: [
|
|
31
|
+
/* @__PURE__ */ r.jsx(P, { id: o, config: t }),
|
|
32
|
+
/* @__PURE__ */ r.jsx(b.ResponsiveContainer, { children: s })
|
|
33
|
+
]
|
|
34
|
+
}
|
|
35
|
+
) });
|
|
36
|
+
}
|
|
37
|
+
const P = ({ id: c, config: e }) => {
|
|
38
|
+
const s = Object.entries(e).filter(
|
|
39
|
+
([, t]) => t.theme || t.color
|
|
40
|
+
);
|
|
41
|
+
return s.length ? /* @__PURE__ */ r.jsx(
|
|
42
|
+
"style",
|
|
43
|
+
{
|
|
44
|
+
dangerouslySetInnerHTML: {
|
|
45
|
+
__html: Object.entries(L).map(
|
|
46
|
+
([t, a]) => `
|
|
47
|
+
${a} [data-chart=${c}] {
|
|
48
|
+
${s.map(([d, o]) => {
|
|
49
|
+
const i = o.theme?.[t] || o.color;
|
|
50
|
+
return i ? ` --color-${d}: ${i};` : null;
|
|
51
|
+
}).join(`
|
|
52
|
+
`)}
|
|
53
|
+
}
|
|
54
|
+
`
|
|
55
|
+
).join(`
|
|
56
|
+
`)
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
) : null;
|
|
60
|
+
}, S = b.Tooltip;
|
|
61
|
+
function K({
|
|
62
|
+
active: c,
|
|
63
|
+
payload: e,
|
|
64
|
+
className: s,
|
|
65
|
+
indicator: t = "dot",
|
|
66
|
+
hideLabel: a = !1,
|
|
67
|
+
hideIndicator: d = !1,
|
|
68
|
+
label: o,
|
|
69
|
+
labelFormatter: i,
|
|
70
|
+
labelClassName: u,
|
|
71
|
+
formatter: C,
|
|
72
|
+
color: y,
|
|
73
|
+
nameKey: $,
|
|
74
|
+
labelKey: m
|
|
75
|
+
}) {
|
|
76
|
+
const { config: f } = N(), _ = x.useMemo(() => {
|
|
77
|
+
if (a || !e?.length)
|
|
78
|
+
return null;
|
|
79
|
+
const [n] = e, p = `${m || n?.dataKey || n?.name || "value"}`, v = j(f, n, p), h = !m && typeof o == "string" ? f[o]?.label || o : v?.label;
|
|
80
|
+
return i ? /* @__PURE__ */ r.jsx("div", { className: l("font-semibold", u), children: i(h, e) }) : h ? /* @__PURE__ */ r.jsx("div", { className: l("font-semibold", u), children: h }) : null;
|
|
81
|
+
}, [
|
|
82
|
+
o,
|
|
83
|
+
i,
|
|
84
|
+
e,
|
|
85
|
+
a,
|
|
86
|
+
u,
|
|
87
|
+
f,
|
|
88
|
+
m
|
|
89
|
+
]);
|
|
90
|
+
if (!c || !e?.length)
|
|
91
|
+
return null;
|
|
92
|
+
const g = e.length === 1 && t !== "dot";
|
|
93
|
+
return /* @__PURE__ */ r.jsxs(
|
|
94
|
+
"div",
|
|
95
|
+
{
|
|
96
|
+
className: l(
|
|
97
|
+
"border-border/50 bg-background grid min-w-[8rem] items-start gap-1.5 rounded-lg border px-2.5 py-1.5 text-xs shadow-xl",
|
|
98
|
+
s
|
|
99
|
+
),
|
|
100
|
+
children: [
|
|
101
|
+
g ? null : _,
|
|
102
|
+
/* @__PURE__ */ r.jsx("div", { className: "grid gap-1.5", children: e.map((n, p) => {
|
|
103
|
+
const v = `${$ || n.name || n.dataKey || "value"}`, h = j(f, n, v), k = y || n.payload.fill || n.color;
|
|
104
|
+
return /* @__PURE__ */ r.jsx(
|
|
105
|
+
"div",
|
|
106
|
+
{
|
|
107
|
+
className: l(
|
|
108
|
+
"[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5",
|
|
109
|
+
t === "dot" && "items-center"
|
|
110
|
+
),
|
|
111
|
+
children: C && n?.value !== void 0 && n.name ? C(n.value, n.name, n, p, n.payload) : /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
112
|
+
h?.icon ? /* @__PURE__ */ r.jsx(h.icon, {}) : !d && /* @__PURE__ */ r.jsx(
|
|
113
|
+
"div",
|
|
114
|
+
{
|
|
115
|
+
className: l(
|
|
116
|
+
"shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)",
|
|
117
|
+
{
|
|
118
|
+
"h-2.5 w-2.5": t === "dot",
|
|
119
|
+
"w-1": t === "line",
|
|
120
|
+
"w-0 border-[1.5px] border-dashed bg-transparent": t === "dashed",
|
|
121
|
+
"my-0.5": g && t === "dashed"
|
|
122
|
+
}
|
|
123
|
+
),
|
|
124
|
+
style: {
|
|
125
|
+
"--color-bg": k,
|
|
126
|
+
"--color-border": k
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
),
|
|
130
|
+
/* @__PURE__ */ r.jsxs(
|
|
131
|
+
"div",
|
|
132
|
+
{
|
|
133
|
+
className: l(
|
|
134
|
+
"flex flex-1 justify-between leading-none",
|
|
135
|
+
g ? "items-end" : "items-center"
|
|
136
|
+
),
|
|
137
|
+
children: [
|
|
138
|
+
/* @__PURE__ */ r.jsxs("div", { className: "grid gap-1.5", children: [
|
|
139
|
+
g ? _ : null,
|
|
140
|
+
/* @__PURE__ */ r.jsx("span", { className: "text-muted-foreground", children: h?.label || n.name })
|
|
141
|
+
] }),
|
|
142
|
+
n.value && /* @__PURE__ */ r.jsx("span", { className: "text-foreground font-mono font-semibold tabular-nums", children: n.value.toLocaleString() })
|
|
143
|
+
]
|
|
144
|
+
}
|
|
145
|
+
)
|
|
146
|
+
] })
|
|
147
|
+
},
|
|
148
|
+
n.dataKey
|
|
149
|
+
);
|
|
150
|
+
}) })
|
|
151
|
+
]
|
|
152
|
+
}
|
|
153
|
+
);
|
|
154
|
+
}
|
|
155
|
+
const M = b.Legend;
|
|
156
|
+
function R({
|
|
157
|
+
className: c,
|
|
158
|
+
hideIcon: e = !1,
|
|
159
|
+
payload: s,
|
|
160
|
+
verticalAlign: t = "bottom",
|
|
161
|
+
nameKey: a
|
|
162
|
+
}) {
|
|
163
|
+
const { config: d } = N();
|
|
164
|
+
return s?.length ? /* @__PURE__ */ r.jsx(
|
|
165
|
+
"div",
|
|
166
|
+
{
|
|
167
|
+
className: l(
|
|
168
|
+
"flex items-center justify-center gap-4",
|
|
169
|
+
t === "top" ? "pb-3" : "pt-3",
|
|
170
|
+
c
|
|
171
|
+
),
|
|
172
|
+
children: s?.map((o) => {
|
|
173
|
+
const i = `${a || o.dataKey || "value"}`, u = j(d, o, i);
|
|
174
|
+
return /* @__PURE__ */ r.jsxs(
|
|
175
|
+
"div",
|
|
176
|
+
{
|
|
177
|
+
className: l(
|
|
178
|
+
"[&>svg]:text-muted-foreground flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3"
|
|
179
|
+
),
|
|
180
|
+
children: [
|
|
181
|
+
u?.icon && !e ? /* @__PURE__ */ r.jsx(u.icon, {}) : /* @__PURE__ */ r.jsx(
|
|
182
|
+
"div",
|
|
183
|
+
{
|
|
184
|
+
className: "h-2 w-2 shrink-0 rounded-[2px]",
|
|
185
|
+
style: {
|
|
186
|
+
backgroundColor: o.color
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
),
|
|
190
|
+
u?.label
|
|
191
|
+
]
|
|
192
|
+
},
|
|
193
|
+
o.value
|
|
194
|
+
);
|
|
195
|
+
})
|
|
196
|
+
}
|
|
197
|
+
) : null;
|
|
198
|
+
}
|
|
199
|
+
function j(c, e, s) {
|
|
200
|
+
if (typeof e != "object" || e === null)
|
|
201
|
+
return;
|
|
202
|
+
const t = "payload" in e && typeof e.payload == "object" && e.payload !== null ? e.payload : void 0;
|
|
203
|
+
let a = s;
|
|
204
|
+
return s in e && typeof e[s] == "string" ? a = e[s] : t && s in t && typeof t[s] == "string" && (a = t[s]), a in c ? c[a] : c[s];
|
|
205
|
+
}
|
|
206
|
+
export {
|
|
207
|
+
I as ChartContainer,
|
|
208
|
+
M as ChartLegend,
|
|
209
|
+
R as ChartLegendContent,
|
|
210
|
+
P as ChartStyle,
|
|
211
|
+
S as ChartTooltip,
|
|
212
|
+
K as ChartTooltipContent
|
|
213
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../jsx-runtime-DUiatUiq.cjs"),c=require("@radix-ui/react-checkbox"),a=require("../index-DoxiiusW.cjs"),s=require("../icon-component-LY_vGYHZ.cjs");function d(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const o=d(c);function u({className:e,...t}){return n.jsxRuntimeExports.jsx(o.Root,{"data-slot":"checkbox",className:a.cn("peer border-input dark:bg-input/30 data-[state=checked]:bg-secondary data-[state=checked]:text-secondary-foreground dark:data-[state=checked]:bg-secondary data-[state=checked]:border-secondary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:n.jsxRuntimeExports.jsx(o.Indicator,{"data-slot":"checkbox-indicator",className:"flex items-center justify-center text-current transition-none",children:n.jsxRuntimeExports.jsx(s.IconComponent,{iconName:"IconCheck",className:"size-3.5"})})})}exports.Checkbox=u;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { j as e } from "../jsx-runtime-C5mzlN2N.js";
|
|
2
|
+
import * as r from "@radix-ui/react-checkbox";
|
|
3
|
+
import { c as a } from "../index-CRiPKpXj.js";
|
|
4
|
+
import { I as o } from "../icon-component-BZ-4FDV6.js";
|
|
5
|
+
function d({
|
|
6
|
+
className: i,
|
|
7
|
+
...t
|
|
8
|
+
}) {
|
|
9
|
+
return /* @__PURE__ */ e.jsx(
|
|
10
|
+
r.Root,
|
|
11
|
+
{
|
|
12
|
+
"data-slot": "checkbox",
|
|
13
|
+
className: a(
|
|
14
|
+
"peer border-input dark:bg-input/30 data-[state=checked]:bg-secondary data-[state=checked]:text-secondary-foreground dark:data-[state=checked]:bg-secondary data-[state=checked]:border-secondary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
|
|
15
|
+
i
|
|
16
|
+
),
|
|
17
|
+
...t,
|
|
18
|
+
children: /* @__PURE__ */ e.jsx(
|
|
19
|
+
r.Indicator,
|
|
20
|
+
{
|
|
21
|
+
"data-slot": "checkbox-indicator",
|
|
22
|
+
className: "flex items-center justify-center text-current transition-none",
|
|
23
|
+
children: /* @__PURE__ */ e.jsx(o, { iconName: "IconCheck", className: "size-3.5" })
|
|
24
|
+
}
|
|
25
|
+
)
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
export {
|
|
30
|
+
d as Checkbox
|
|
31
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../chip-A32aAc-8.cjs");exports.Chip=e.ChipComponent;exports.chipStyles=e.chipStyles;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { TablerIconName } from './icon-component';
|
|
4
|
+
export interface IChipProps extends VariantProps<typeof chipStyles> {
|
|
5
|
+
iconLeft?: {
|
|
6
|
+
name: TablerIconName;
|
|
7
|
+
stroke?: string;
|
|
8
|
+
} | TablerIconName;
|
|
9
|
+
iconRight?: {
|
|
10
|
+
name: TablerIconName;
|
|
11
|
+
stroke?: string;
|
|
12
|
+
} | TablerIconName;
|
|
13
|
+
notification?: boolean;
|
|
14
|
+
onClick?: () => void;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
className?: string;
|
|
17
|
+
children?: React.ReactNode;
|
|
18
|
+
}
|
|
19
|
+
declare const chipStyles: (props?: ({
|
|
20
|
+
intent?: "selected" | "error" | "unselected" | null | undefined;
|
|
21
|
+
size?: "lg" | "md" | "sm" | null | undefined;
|
|
22
|
+
weight?: "bold" | "light" | "regular" | "semibold" | null | undefined;
|
|
23
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
24
|
+
declare const ChipComponent: React.ForwardRefExoticComponent<IChipProps & React.RefAttributes<HTMLButtonElement | HTMLDivElement>>;
|
|
25
|
+
export { ChipComponent as Chip, chipStyles };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../jsx-runtime-DUiatUiq.cjs"),n=require("@radix-ui/react-collapsible");function s(e){const l=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(l,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return l.default=e,Object.freeze(l)}const i=s(n);function a({...e}){return o.jsxRuntimeExports.jsx(i.Root,{"data-slot":"collapsible",...e})}function u({...e}){return o.jsxRuntimeExports.jsx(i.CollapsibleTrigger,{"data-slot":"collapsible-trigger",...e})}function c({...e}){return o.jsxRuntimeExports.jsx(i.CollapsibleContent,{"data-slot":"collapsible-content",...e})}exports.Collapsible=a;exports.CollapsibleContent=c;exports.CollapsibleTrigger=u;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
|
|
2
|
+
declare function Collapsible({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare function CollapsibleTrigger({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleTrigger>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function CollapsibleContent({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleContent>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export { Collapsible, CollapsibleContent, CollapsibleTrigger };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { j as o } from "../jsx-runtime-C5mzlN2N.js";
|
|
2
|
+
import * as t from "@radix-ui/react-collapsible";
|
|
3
|
+
function i({
|
|
4
|
+
...l
|
|
5
|
+
}) {
|
|
6
|
+
return /* @__PURE__ */ o.jsx(t.Root, { "data-slot": "collapsible", ...l });
|
|
7
|
+
}
|
|
8
|
+
function r({
|
|
9
|
+
...l
|
|
10
|
+
}) {
|
|
11
|
+
return /* @__PURE__ */ o.jsx(
|
|
12
|
+
t.CollapsibleTrigger,
|
|
13
|
+
{
|
|
14
|
+
"data-slot": "collapsible-trigger",
|
|
15
|
+
...l
|
|
16
|
+
}
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
function s({
|
|
20
|
+
...l
|
|
21
|
+
}) {
|
|
22
|
+
return /* @__PURE__ */ o.jsx(
|
|
23
|
+
t.CollapsibleContent,
|
|
24
|
+
{
|
|
25
|
+
"data-slot": "collapsible-content",
|
|
26
|
+
...l
|
|
27
|
+
}
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
export {
|
|
31
|
+
i as Collapsible,
|
|
32
|
+
s as CollapsibleContent,
|
|
33
|
+
r as CollapsibleTrigger
|
|
34
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("../command-D9M8dk1M.cjs");exports.Command=m.Command;exports.CommandDialog=m.CommandDialog;exports.CommandEmpty=m.CommandEmpty;exports.CommandGroup=m.CommandGroup;exports.CommandInput=m.CommandInput;exports.CommandItem=m.CommandItem;exports.CommandList=m.CommandList;exports.CommandSeparator=m.CommandSeparator;exports.CommandShortcut=m.CommandShortcut;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Command as CommandPrimitive } from 'cmdk';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { Dialog } from '@/components/dialog';
|
|
4
|
+
declare function Command({ className, ...props }: React.ComponentProps<typeof CommandPrimitive>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function CommandDialog({ title, description, children, className, showCloseButton, ...props }: React.ComponentProps<typeof Dialog> & {
|
|
6
|
+
title?: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
className?: string;
|
|
9
|
+
showCloseButton?: boolean;
|
|
10
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare function CommandInput({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Input>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare function CommandList({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.List>): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare function CommandEmpty({ ...props }: React.ComponentProps<typeof CommandPrimitive.Empty>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare function CommandGroup({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
declare function CommandSeparator({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Separator>): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
declare function CommandItem({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Item>): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
declare function CommandShortcut({ className, ...props }: React.ComponentProps<'span'>): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { C as o, a as d, b as n, c as s, d as C, e as t, f as r, g as p, h as e } from "../command-BGCSJ9vX.js";
|
|
2
|
+
export {
|
|
3
|
+
o as Command,
|
|
4
|
+
d as CommandDialog,
|
|
5
|
+
n as CommandEmpty,
|
|
6
|
+
s as CommandGroup,
|
|
7
|
+
C as CommandInput,
|
|
8
|
+
t as CommandItem,
|
|
9
|
+
r as CommandList,
|
|
10
|
+
p as CommandSeparator,
|
|
11
|
+
e as CommandShortcut
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../jsx-runtime-DUiatUiq.cjs"),u=require("@radix-ui/react-context-menu"),a=require("../index-DoxiiusW.cjs"),i=require("../icon-component-LY_vGYHZ.cjs");function d(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const s in t)if(s!=="default"){const r=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(n,s,r.get?r:{enumerable:!0,get:()=>t[s]})}}return n.default=t,Object.freeze(n)}const o=d(u);function c({...t}){return e.jsxRuntimeExports.jsx(o.Root,{"data-slot":"context-menu",...t})}function x({...t}){return e.jsxRuntimeExports.jsx(o.Trigger,{"data-slot":"context-menu-trigger",...t})}function m({...t}){return e.jsxRuntimeExports.jsx(o.Group,{"data-slot":"context-menu-group",...t})}function l({...t}){return e.jsxRuntimeExports.jsx(o.Portal,{"data-slot":"context-menu-portal",...t})}function p({...t}){return e.jsxRuntimeExports.jsx(o.Sub,{"data-slot":"context-menu-sub",...t})}function f({...t}){return e.jsxRuntimeExports.jsx(o.RadioGroup,{"data-slot":"context-menu-radio-group",...t})}function g({className:t,inset:n,children:s,...r}){return e.jsxRuntimeExports.jsxs(o.SubTrigger,{"data-slot":"context-menu-sub-trigger","data-inset":n,className:a.cn("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...r,children:[s,e.jsxRuntimeExports.jsx(i.IconComponent,{iconName:"IconChevronRight",className:"ml-auto"})]})}function b({className:t,...n}){return e.jsxRuntimeExports.jsx(o.SubContent,{"data-slot":"context-menu-sub-content",className:a.cn("bg-popover text-popover-foreground 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 z-50 min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",t),...n})}function v({className:t,...n}){return e.jsxRuntimeExports.jsx(o.Portal,{children:e.jsxRuntimeExports.jsx(o.Content,{"data-slot":"context-menu-content",className:a.cn("bg-popover text-popover-foreground 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 z-50 max-h-(--radix-context-menu-content-available-height) min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",t),...n})})}function j({className:t,inset:n,variant:s="default",...r}){return e.jsxRuntimeExports.jsx(o.Item,{"data-slot":"context-menu-item","data-inset":n,"data-variant":s,className:a.cn("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...r})}function C({className:t,children:n,checked:s,...r}){return e.jsxRuntimeExports.jsxs(o.CheckboxItem,{"data-slot":"context-menu-checkbox-item",className:a.cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),checked:s,...r,children:[e.jsxRuntimeExports.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:e.jsxRuntimeExports.jsx(o.ItemIndicator,{children:e.jsxRuntimeExports.jsx(i.IconComponent,{iconName:"IconCheck",className:"size-4"})})}),n]})}function h({className:t,children:n,...s}){return e.jsxRuntimeExports.jsxs(o.RadioItem,{"data-slot":"context-menu-radio-item",className:a.cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...s,children:[e.jsxRuntimeExports.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:e.jsxRuntimeExports.jsx(o.ItemIndicator,{children:e.jsxRuntimeExports.jsx(i.IconComponent,{iconName:"IconCircleFilled",className:"size-2 fill-current"})})}),n]})}function M({className:t,inset:n,...s}){return e.jsxRuntimeExports.jsx(o.Label,{"data-slot":"context-menu-label","data-inset":n,className:a.cn("text-foreground px-2 py-1.5 text-sm font-semibold data-[inset]:pl-8",t),...s})}function R({className:t,...n}){return e.jsxRuntimeExports.jsx(o.Separator,{"data-slot":"context-menu-separator",className:a.cn("bg-border -mx-1 my-1 h-px",t),...n})}function E({className:t,...n}){return e.jsxRuntimeExports.jsx("span",{"data-slot":"context-menu-shortcut",className:a.cn("text-muted-foreground ml-auto text-xs tracking-widest",t),...n})}exports.ContextMenu=c;exports.ContextMenuCheckboxItem=C;exports.ContextMenuContent=v;exports.ContextMenuGroup=m;exports.ContextMenuItem=j;exports.ContextMenuLabel=M;exports.ContextMenuPortal=l;exports.ContextMenuRadioGroup=f;exports.ContextMenuRadioItem=h;exports.ContextMenuSeparator=R;exports.ContextMenuShortcut=E;exports.ContextMenuSub=p;exports.ContextMenuSubContent=b;exports.ContextMenuSubTrigger=g;exports.ContextMenuTrigger=x;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare function ContextMenu({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function ContextMenuTrigger({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function ContextMenuGroup({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function ContextMenuPortal({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function ContextMenuSub({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Sub>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function ContextMenuRadioGroup({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.RadioGroup>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare function ContextMenuSubTrigger({ className, inset, children, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.SubTrigger> & {
|
|
10
|
+
inset?: boolean;
|
|
11
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare function ContextMenuSubContent({ className, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.SubContent>): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare function ContextMenuContent({ className, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare function ContextMenuItem({ className, inset, variant, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Item> & {
|
|
15
|
+
inset?: boolean;
|
|
16
|
+
variant?: 'default' | 'destructive';
|
|
17
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
declare function ContextMenuCheckboxItem({ className, children, checked, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.CheckboxItem>): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
declare function ContextMenuRadioItem({ className, children, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.RadioItem>): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
declare function ContextMenuLabel({ className, inset, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Label> & {
|
|
21
|
+
inset?: boolean;
|
|
22
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
declare function ContextMenuSeparator({ className, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Separator>): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
declare function ContextMenuShortcut({ className, ...props }: React.ComponentProps<'span'>): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export { ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, };
|