@clasing/ui 0.1.45 → 0.1.48

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 CHANGED
@@ -93,6 +93,14 @@ declare interface CheckboxProps extends React.InputHTMLAttributes<HTMLInputEleme
93
93
  touched?: boolean;
94
94
  }
95
95
 
96
+ export declare const Chip: ForwardRefExoticComponent<IChipProps & RefAttributes<HTMLButtonElement>>;
97
+
98
+ export declare const chipStyles: (props?: ({
99
+ intent?: "error" | "disabled" | "selected" | "unselected" | null | undefined;
100
+ size?: "sm" | "md" | "lg" | null | undefined;
101
+ weight?: "bold" | "light" | "regular" | "semibold" | null | undefined;
102
+ } & ClassProp) | undefined) => string;
103
+
96
104
  export declare const Datepicker: ForwardRefExoticComponent<IDatepickerProps & RefAttributes<HTMLInputElement>>;
97
105
 
98
106
  export declare const DateRangePicker: ForwardRefExoticComponent<IDateRangePickerProps & RefAttributes<HTMLInputElement>>;
@@ -110,7 +118,12 @@ declare interface DropdownSelectProps<T extends string | number | readonly strin
110
118
  error?: string;
111
119
  touched?: boolean;
112
120
  iconName?: TablerIconName;
121
+ placement?: PopoverPlacement;
113
122
  placeholder?: string;
123
+ canSearch?: boolean;
124
+ searchPlaceholder?: string;
125
+ canSelectAll?: boolean;
126
+ selectAllLabel?: string;
114
127
  options?: DropdownOption<T>[];
115
128
  value?: T;
116
129
  onChange?: (value: T | null) => void;
@@ -170,6 +183,18 @@ declare interface IButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElem
170
183
  declare interface ICardProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof cardStyles> {
171
184
  }
172
185
 
186
+ declare interface IChipProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof chipStyles> {
187
+ iconLeft?: {
188
+ name: TablerIconName;
189
+ stroke?: number;
190
+ } | TablerIconName;
191
+ iconRight?: {
192
+ name: TablerIconName;
193
+ stroke?: number;
194
+ } | TablerIconName;
195
+ notification?: boolean;
196
+ }
197
+
173
198
  export declare const IconComponent: ForwardRefExoticComponent<IIconComponentProps & RefAttributes<SVGSVGElement>>;
174
199
 
175
200
  declare interface IDatepickerProps extends React.InputHTMLAttributes<HTMLInputElement> {
@@ -232,7 +257,7 @@ declare interface InputProps extends React.InputHTMLAttributes<HTMLInputElement
232
257
  helperText?: string;
233
258
  error?: string;
234
259
  touched?: boolean;
235
- type?: 'text' | 'textarea' | 'password' | 'email' | 'number' | 'tel' | 'url';
260
+ type?: 'text' | 'textarea' | 'password' | 'email' | 'number' | 'tel' | 'url' | 'color';
236
261
  iconName?: {
237
262
  name: TablerIconName;
238
263
  stroke?: number;
@@ -253,6 +278,8 @@ declare interface IPopoverProps {
253
278
  placement?: PopoverPlacement;
254
279
  closeOnAction?: boolean;
255
280
  className?: string;
281
+ onMouseDown?: (e: default_2.MouseEvent) => void;
282
+ onMouseUp?: (e: default_2.MouseEvent) => void;
256
283
  }
257
284
 
258
285
  declare interface IProgressBarProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'children'>, VariantProps<typeof progressBarStyles> {
@@ -273,6 +300,9 @@ declare interface ISelectableChipsProps {
273
300
  touched?: boolean;
274
301
  }
275
302
 
303
+ declare interface ISkeletonProps extends React.HTMLAttributes<HTMLDivElement> {
304
+ }
305
+
276
306
  declare interface ISpinnerProps {
277
307
  className?: string;
278
308
  }
@@ -324,6 +354,8 @@ declare const progressBarStyles: (props?: ({
324
354
 
325
355
  export declare const SelectableChips: ({ id, label, options, multiple, selectedOptions, setSelectedOptions, className, disabled, helperText, error, touched, }: ISelectableChipsProps) => JSX_2.Element | null;
326
356
 
357
+ export declare const Skeleton: ({ className, ...props }: ISkeletonProps) => JSX_2.Element;
358
+
327
359
  export declare const Spinner: ({ className }: ISpinnerProps) => JSX_2.Element;
328
360
 
329
361
  declare type TablerIconName = keyof typeof TablerIcons;