@clasing/ui 0.1.102 → 0.1.104
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.d.ts +24 -2
- package/dist/index.es.js +1241 -1102
- package/dist/index.umd.js +10 -10
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -99,6 +99,7 @@ export declare const Checkbox: ForwardRefExoticComponent<CheckboxProps & RefAttr
|
|
|
99
99
|
|
|
100
100
|
declare interface CheckboxProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
101
101
|
label?: string;
|
|
102
|
+
labelClassName?: string;
|
|
102
103
|
helperText?: string;
|
|
103
104
|
error?: string;
|
|
104
105
|
touched?: boolean;
|
|
@@ -107,7 +108,7 @@ declare interface CheckboxProps extends React.InputHTMLAttributes<HTMLInputEleme
|
|
|
107
108
|
export declare const Chip: ForwardRefExoticComponent<IChipProps & RefAttributes<HTMLButtonElement>>;
|
|
108
109
|
|
|
109
110
|
export declare const chipStyles: (props?: ({
|
|
110
|
-
intent?: "error" | "
|
|
111
|
+
intent?: "error" | "selected" | "unselected" | null | undefined;
|
|
111
112
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
112
113
|
weight?: "light" | "regular" | "semibold" | "bold" | null | undefined;
|
|
113
114
|
} & ClassProp) | undefined) => string;
|
|
@@ -397,6 +398,7 @@ declare interface ISwitchProps extends React.ButtonHTMLAttributes<HTMLButtonElem
|
|
|
397
398
|
declare interface ITextProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof textStyles> {
|
|
398
399
|
as?: 'span' | 'p' | 'div' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'label';
|
|
399
400
|
className?: string;
|
|
401
|
+
htmlFor?: string;
|
|
400
402
|
}
|
|
401
403
|
|
|
402
404
|
declare interface ITooltipProps {
|
|
@@ -454,6 +456,26 @@ export declare const SelectableChips: ({ id, label, options, multiple, selectedO
|
|
|
454
456
|
|
|
455
457
|
export declare const Skeleton: ({ className, ...props }: ISkeletonProps) => JSX.Element;
|
|
456
458
|
|
|
459
|
+
export declare const Slider: ({ id, name, value, range, snap, onChange, className, showValues, label, touched, error, disabled, }: SliderProps) => JSX.Element;
|
|
460
|
+
|
|
461
|
+
declare interface SliderProps {
|
|
462
|
+
id?: string;
|
|
463
|
+
name?: string;
|
|
464
|
+
value?: number;
|
|
465
|
+
range?: {
|
|
466
|
+
min: number;
|
|
467
|
+
max: number;
|
|
468
|
+
};
|
|
469
|
+
snap?: boolean;
|
|
470
|
+
showValues?: boolean;
|
|
471
|
+
onChange?: (score: number) => void;
|
|
472
|
+
className?: string;
|
|
473
|
+
label?: string;
|
|
474
|
+
touched?: boolean;
|
|
475
|
+
error?: string;
|
|
476
|
+
disabled?: boolean;
|
|
477
|
+
}
|
|
478
|
+
|
|
457
479
|
export declare const Spinner: ({ className }: ISpinnerProps) => JSX.Element;
|
|
458
480
|
|
|
459
481
|
export declare const Switch: ForwardRefExoticComponent<ISwitchProps & RefAttributes<HTMLButtonElement>>;
|
|
@@ -464,7 +486,7 @@ declare const switchRootStyles: (props?: ({
|
|
|
464
486
|
|
|
465
487
|
declare type TablerIconName = keyof typeof TablerIcons;
|
|
466
488
|
|
|
467
|
-
declare const Text_2: ({ as, intent, className, weight, ...props }: ITextProps) => JSX.Element;
|
|
489
|
+
declare const Text_2: ({ as, intent, className, weight, htmlFor, ...props }: ITextProps) => JSX.Element;
|
|
468
490
|
export { Text_2 as Text }
|
|
469
491
|
|
|
470
492
|
declare const textStyles: (props?: ({
|