@clickhouse/click-ui 0.0.201 → 0.0.203

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.
@@ -0,0 +1,33 @@
1
+ import { ReactNode } from 'react';
2
+ import { useCalendar, UseCalendarOptions } from '@h6s/calendar';
3
+
4
+ interface DatePickerInputProps {
5
+ isActive: boolean;
6
+ disabled: boolean;
7
+ id?: string;
8
+ placeholder?: string;
9
+ selectedDate?: Date;
10
+ }
11
+ export declare const DatePickerInput: ({ isActive, disabled, id, placeholder, selectedDate, }: DatePickerInputProps) => import("react/jsx-runtime").JSX.Element;
12
+ interface DateRangePickerInputProps {
13
+ isActive: boolean;
14
+ disabled: boolean;
15
+ id?: string;
16
+ placeholder?: string;
17
+ selectedEndDate?: Date;
18
+ selectedStartDate?: Date;
19
+ }
20
+ export declare const DateRangePickerInput: ({ isActive, disabled, id, placeholder, selectedEndDate, selectedStartDate, }: DateRangePickerInputProps) => import("react/jsx-runtime").JSX.Element;
21
+ export declare const DateTableCell: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, {
22
+ $isCurrentMonth?: boolean;
23
+ $isDisabled?: boolean;
24
+ $isSelected?: boolean;
25
+ $isToday?: boolean;
26
+ }>> & string;
27
+ export type Body = ReturnType<typeof useCalendar>["body"];
28
+ interface CalendarRendererProps {
29
+ calendarOptions?: UseCalendarOptions;
30
+ children: (body: Body) => ReactNode;
31
+ }
32
+ export declare const CalendarRenderer: ({ calendarOptions, children, ...props }: CalendarRendererProps) => import("react/jsx-runtime").JSX.Element;
33
+ export {};
@@ -0,0 +1,9 @@
1
+ export interface DatePickerProps {
2
+ endDate?: Date;
3
+ disabled?: boolean;
4
+ futureDatesDisabled?: boolean;
5
+ onSelectDateRange: (selectedStartDate: Date, selectedEndDate: Date) => void;
6
+ placeholder?: string;
7
+ startDate?: Date;
8
+ }
9
+ export declare const DateRangePicker: ({ endDate, startDate, disabled, futureDatesDisabled, onSelectDateRange, placeholder, }: DatePickerProps) => import("react/jsx-runtime").JSX.Element;
@@ -8,7 +8,8 @@ interface FileUploadProps {
8
8
  failureMessage?: string;
9
9
  onRetry?: () => void;
10
10
  onFileSelect?: (file: File) => void;
11
- onFileSelectFailure?: () => void;
11
+ onFileFailure?: () => void;
12
+ onFileClose?: () => void;
12
13
  }
13
- export declare const FileUpload: ({ title, supportedFileTypes, size, onFileSelect, onRetry, progress, failureMessage, showProgress, showSuccess, onFileSelectFailure, }: FileUploadProps) => import("react/jsx-runtime").JSX.Element;
14
+ export declare const FileUpload: ({ title, supportedFileTypes, size, onFileSelect, onRetry, progress, failureMessage, showProgress, showSuccess, onFileFailure, onFileClose, }: FileUploadProps) => import("react/jsx-runtime").JSX.Element;
14
15
  export type { FileUploadProps };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clickhouse/click-ui",
3
- "version": "0.0.201",
3
+ "version": "0.0.203",
4
4
  "description": "Official ClickHouse design system react library",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",