Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 20 additions & 1 deletion .changeset/wild-pillows-agree.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,23 @@
'@clickhouse/click-ui': minor
---

DateTimePicker has been renamed to DateTimeRangePicker
Expose `DateTimeRangePicker` component and related types to the public API.

**What's new:**

- `DateTimeRangePicker` - A date/time range picker component for selecting date and time ranges
- `DateTimeRangePickerProps` - TypeScript props for the DateTimeRangePicker component
- `DateRangePickerProps` - TypeScript props for the DateRangePicker component
- `DatePickerProps` - TypeScript props for the DatePicker component

**How to use?**

```tsx
import { DateTimeRangePicker, DateTimeRangePickerProps } from '@clickhouse/click-ui';

const MyComponent = () => (
<DateTimeRangePicker
onChange={(range) => console.log(range)}
/>
);
```
4 changes: 4 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,11 @@

// Date Picker
export { DatePicker } from './components/DatePicker';
export type { DatePickerProps } from './components/DatePicker';
export { DateRangePicker } from './components/DatePicker/DateRangePicker';
export type { DateRangePickerProps } from './components/DatePicker/DateRangePicker';
export { DateTimeRangePicker } from './components/DatePicker/DateTimeRangePicker';
export type { DateTimeRangePickerProps } from './components/DatePicker/DateTimeRangePicker';
export { getPredefinedMonthsForDateRangePicker } from './components/DatePicker/utils';
export type { DateRange } from './components/DatePicker/utils';

Expand Down Expand Up @@ -225,7 +229,7 @@
export { Table } from './components/Table';
export type {
TableColumnConfigProps,
TableHeaderType,

Check warning on line 232 in src/index.ts

View workflow job for this annotation

GitHub Actions / code-quality-checks

`TableHeaderType` is deprecated. The TableHeaderType field have been deprecated to favour TableColumnConfigProps
TableProps,
TableRowType,
} from './components/Table';
Expand Down
Loading