@crossangle-org/cs-ui 0.1.0 → 0.1.2
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/cs-ui.css +280 -96
- package/dist/index.cjs.js +173 -201
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +25 -1
- package/dist/index.es.js +172 -201
- package/dist/index.es.js.map +1 -1
- package/package.json +9 -7
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AccessorKeyColumnDef } from '@tanstack/react-table';
|
|
2
2
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
3
3
|
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
4
|
+
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
4
5
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
5
6
|
import { ClassProp } from 'class-variance-authority/types';
|
|
6
7
|
import { ClassValue } from 'clsx';
|
|
@@ -81,6 +82,12 @@ export declare function CsAlertDialogTrigger({ ...props }: React_2.ComponentProp
|
|
|
81
82
|
|
|
82
83
|
export declare function CsAreaChart(props: IXChartBodyProps): JSX.Element;
|
|
83
84
|
|
|
85
|
+
export declare const CsAvatar: React_2.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarProps & React_2.RefAttributes<HTMLSpanElement>, "ref"> & React_2.RefAttributes<HTMLSpanElement>>;
|
|
86
|
+
|
|
87
|
+
export declare const CsAvatarFallback: React_2.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React_2.RefAttributes<HTMLSpanElement>, "ref"> & React_2.RefAttributes<HTMLSpanElement>>;
|
|
88
|
+
|
|
89
|
+
export declare const CsAvatarImage: React_2.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React_2.RefAttributes<HTMLImageElement>, "ref"> & React_2.RefAttributes<HTMLImageElement>>;
|
|
90
|
+
|
|
84
91
|
export declare function CsBadge({ className, variant, asChild, ...props }: React_2.ComponentProps<"span"> & VariantProps<typeof csBadgeVariants> & {
|
|
85
92
|
asChild?: boolean;
|
|
86
93
|
}): React_2.JSX.Element;
|
|
@@ -334,7 +341,7 @@ export declare function CsInputGroup({ className, variant, disabled, ...props }:
|
|
|
334
341
|
export declare function CsInputGroupAddon({ className, align, ...props }: React_2.ComponentProps<"div"> & VariantProps<typeof csInputGroupAddonVariants>): React_2.JSX.Element;
|
|
335
342
|
|
|
336
343
|
declare const csInputGroupAddonVariants: (props?: ({
|
|
337
|
-
align?: "
|
|
344
|
+
align?: "block-end" | "block-start" | "inline-end" | "inline-start" | null | undefined;
|
|
338
345
|
} & ClassProp) | undefined) => string;
|
|
339
346
|
|
|
340
347
|
export declare function CsInputGroupButton({ className, type, variant, size, ...props }: Omit<React_2.ComponentProps<typeof CsButton>, "size"> & VariantProps<typeof csInputGroupButtonVariants>): React_2.JSX.Element;
|
|
@@ -468,6 +475,10 @@ export declare const CsSelectTrigger: React_2.ForwardRefExoticComponent<Omit<Sel
|
|
|
468
475
|
size?: "default" | "sm" | null | undefined;
|
|
469
476
|
} & ClassProp) | undefined) => string> & React_2.RefAttributes<HTMLButtonElement>>;
|
|
470
477
|
|
|
478
|
+
export declare const csSelectTriggerVariants: (props?: ({
|
|
479
|
+
size?: "default" | "sm" | null | undefined;
|
|
480
|
+
} & ClassProp) | undefined) => string;
|
|
481
|
+
|
|
471
482
|
export declare function CsSelectValue({ ...props }: React_2.ComponentProps<typeof SelectPrimitive.Value>): React_2.JSX.Element;
|
|
472
483
|
|
|
473
484
|
export declare function CsSeparator({ className, orientation, decorative, ...props }: React_2.ComponentProps<typeof SeparatorPrimitive.Root>): React_2.JSX.Element;
|
|
@@ -495,6 +506,8 @@ export declare interface CsSimpleSelectProps extends Omit<ComponentProps<typeof
|
|
|
495
506
|
}) => void;
|
|
496
507
|
}
|
|
497
508
|
|
|
509
|
+
export declare function CsSimpleTooltip({ children, tooltip, contentProps, variant, ...rootProps }: ICsSimpleTooltipProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | ReactPortal | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | JSX.Element | null | undefined;
|
|
510
|
+
|
|
498
511
|
export declare function CsSkeleton({ className, radius, ...props }: React.ComponentProps<"div"> & {
|
|
499
512
|
radius?: "default" | "max";
|
|
500
513
|
}): JSX.Element;
|
|
@@ -553,14 +566,25 @@ export declare function CsTooltip({ ...props }: React_2.ComponentProps<typeof To
|
|
|
553
566
|
|
|
554
567
|
export declare function CsTooltipContent({ className, sideOffset, children, variant, ...props }: React_2.ComponentProps<typeof TooltipPrimitive.Content> & VariantProps<typeof csTooltipContentVariants>): React_2.JSX.Element;
|
|
555
568
|
|
|
569
|
+
declare type CsTooltipContentProps = Omit<ComponentProps<typeof CsTooltipContent>, 'children'>;
|
|
570
|
+
|
|
556
571
|
export declare const csTooltipContentVariants: (props?: ({
|
|
557
572
|
variant?: "outline" | "solid" | null | undefined;
|
|
558
573
|
} & ClassProp) | undefined) => string;
|
|
559
574
|
|
|
560
575
|
export declare function CsTooltipProvider({ delayDuration, ...props }: React_2.ComponentProps<typeof TooltipPrimitive.Provider>): React_2.JSX.Element;
|
|
561
576
|
|
|
577
|
+
declare type CsTooltipRootProps = ComponentProps<typeof CsTooltip>;
|
|
578
|
+
|
|
562
579
|
export declare function CsTooltipTrigger({ ...props }: React_2.ComponentProps<typeof TooltipPrimitive.Trigger>): React_2.JSX.Element;
|
|
563
580
|
|
|
581
|
+
export declare interface ICsSimpleTooltipProps extends Omit<CsTooltipRootProps, 'children'> {
|
|
582
|
+
children: ReactNode;
|
|
583
|
+
tooltip: ReactNode;
|
|
584
|
+
contentProps?: CsTooltipContentProps;
|
|
585
|
+
variant?: VariantProps<typeof csTooltipContentVariants>['variant'];
|
|
586
|
+
}
|
|
587
|
+
|
|
564
588
|
export declare interface ReturnUseCsAccordion {
|
|
565
589
|
openedItems: string[];
|
|
566
590
|
setOpenedItems: Dispatch<SetStateAction<string[]>>;
|