Skip to content

Commit

Permalink
chore: Rename Calendar to CalendarPicker (ant-design#6402)
Browse files Browse the repository at this point in the history
* chore: mv

* chore: rename

* chore: move it

* chore: clean up

* test: update test
  • Loading branch information
zombieJ authored Oct 19, 2023
1 parent 969837b commit e5750a1
Show file tree
Hide file tree
Showing 46 changed files with 42,160 additions and 24,328 deletions.
3 changes: 2 additions & 1 deletion config/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ export const components = {
experimental: [
'/guide/what-is-experimental',
'/components/calendar',
'/components/calendar-view',
'/components/calendar-picker',
'/components/calendar-picker-view',
'/components/dropdown',
'/components/floating-bubble',
'/components/image-uploader',
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# CalendarView <Experimental></Experimental>
# CalendarPickerView <Experimental></Experimental>

Used to select a date or date range.

CalendarView is the content area of [Calendar](/components/calendar).
CalendarPickerView is the content area of [CalendarPicker](/components/calendar-picker).

## Demos

Only the simplest content area is shown here, and other more usages can be consulted [Calendar](/zh/components/calendar)
Only the simplest content area is shown here, and other more usages can be consulted [CalendarPicker](/components/calendar-picker)

<code src="./demos/demo1.tsx"></code>

## CalendarView
## CalendarPickerView

### Props

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.adm-calendar,
.adm-calendar-view,
.adm-calendar-popup {
.adm-calendar-picker,
.adm-calendar-picker-view,
.adm-calendar-picker-popup {
& &-title {
flex: auto;
font-size: var(--adm-font-size-10);
Expand All @@ -10,7 +10,7 @@
padding: 12px;
border-bottom: 1px solid var(--adm-color-border);

.adm-calendar-view-title {
.adm-calendar-picker-view-title {
text-align: center;
}
}
Expand All @@ -23,7 +23,7 @@
display: none;
}

.adm-calendar-view-title {
.adm-calendar-picker-view-title {
position: sticky;
top: 0;
padding: 8px 20px;
Expand Down Expand Up @@ -71,8 +71,8 @@
&&-disabled {
color: var(--adm-color-light);

.adm-calendar-view-cell-top,
.adm-calendar-view-cell-bottom {
.adm-calendar-picker-view-cell-top,
.adm-calendar-picker-view-cell-bottom {
color: var(--adm-color-light);
}
}
Expand All @@ -83,8 +83,8 @@
color: var(--adm-color-text);
}

& .adm-calendar-view-cell-top,
& .adm-calendar-view-cell-bottom {
& .adm-calendar-picker-view-cell-top,
& .adm-calendar-picker-view-cell-bottom {
color: var(--adm-color-white);
}

Expand Down
Loading

0 comments on commit e5750a1

Please sign in to comment.