Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(input-date-picker, date-picker): improve date picking experience #8402

Open
wants to merge 192 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 177 commits
Commits
Show all changes
192 commits
Select commit Hold shift + click to select a range
b5d8eff
feat(month-picker): adds month-picker component
anveshmekala Dec 12, 2023
78c58eb
emit change event when month is selected
anveshmekala Dec 12, 2023
963868b
redesign month-picker and adds year-picker
anveshmekala Dec 18, 2023
47449cf
add range and emit change event in year-picker
anveshmekala Dec 19, 2023
2d67c2b
disable years based on start and end year selected
anveshmekala Dec 20, 2023
2657e2c
add year picker and month picker in date-picker-header
anveshmekala Dec 23, 2023
cfad87b
add second date-picker in input-date-picker when range is enabled
anveshmekala Dec 27, 2023
bf7179b
revert input-date-picker changes and update date-picker for range
anveshmekala Dec 29, 2023
d1a0da2
simplify calendar render logic
anveshmekala Jan 3, 2024
11f48d8
allows editing date values and navigating using action buttons
anveshmekala Jan 4, 2024
6967b7b
clean up
anveshmekala Jan 4, 2024
d813943
allows start date in range to be greater than end date, unhide date-…
anveshmekala Jan 6, 2024
ba51c6b
Merge branch 'main' into anveshmekala/3455-add-month-and-year-picker
anveshmekala Jan 8, 2024
8e2dac9
avoid closing date-picker while editing start date & remove methods i…
anveshmekala Jan 8, 2024
2325640
update displayedDate only on blur in date-picker
anveshmekala Jan 10, 2024
33f55a2
refactor updating activeStartDate and activeEndDate
anveshmekala Jan 10, 2024
2ee6fbe
fix minDate for start calendar when activeRange is set to end
anveshmekala Jan 11, 2024
5399e2b
add readme files
anveshmekala Jan 11, 2024
7dcfa61
Merge branch 'main' into anveshmekala/3455-add-month-and-year-picker
anveshmekala Jan 11, 2024
36ed5a3
skip tests related to input year in month-header
anveshmekala Jan 11, 2024
ea4308c
fix keyboard selection
anveshmekala Jan 17, 2024
12b2d84
restore focus on to endinput after day selection
anveshmekala Jan 18, 2024
177d0c6
reset endDate when user select startDate beyond endDate & disable pre…
anveshmekala Jan 18, 2024
c4cd1fa
avoid updating activeDate of date-picker while selecting date range i…
anveshmekala Jan 19, 2024
e9d1863
update demo page for debugging
anveshmekala Jan 19, 2024
1a45455
fixes closing of date-picker while user is editing startDate
anveshmekala Jan 23, 2024
f78fb8a
do not update activeDate when start and endDate is from same month
anveshmekala Jan 25, 2024
42952d9
resolve updating activeDate before closing date-picker
anveshmekala Jan 25, 2024
8e300f5
adds date-picker-month-range component and refactor
anveshmekala Jan 27, 2024
49689bf
fix month-header selection issue when wide names are displayed
anveshmekala Jan 30, 2024
92bedd7
adds readme
anveshmekala Jan 30, 2024
b6ee675
update activeDates when user is actively typing
anveshmekala Jan 30, 2024
aa7f877
fix dimensions of date-picker
anveshmekala Feb 2, 2024
1d507fe
fix date-picker tests
anveshmekala Feb 2, 2024
7b41afd
fix input-date-picker tests
anveshmekala Feb 5, 2024
e165457
refactor test utility methods in input-date-picker
anveshmekala Feb 5, 2024
28031ef
add date-picker visibility assertion for user interaction tests
anveshmekala Feb 6, 2024
fbec450
add more tests
anveshmekala Feb 6, 2024
94ba93a
drop date-picker-month-range component and refactor date-picker-month…
anveshmekala Feb 8, 2024
55d0f76
update tests
anveshmekala Feb 8, 2024
09bbb24
add test and remove watcher for activeRange in date-picker
anveshmekala Feb 9, 2024
c36c694
update test and update calendar when user types a valid date
anveshmekala Feb 13, 2024
237e414
restore watch handler for valueAsDate prop in date-picker for range
anveshmekala Feb 13, 2024
3e74210
fix test failures
anveshmekala Feb 13, 2024
bdb0a8c
fix activeDate when min and max are before the current date
anveshmekala Feb 14, 2024
9abb3b9
lets users to navigate months when valueAsDate is parsed
anveshmekala Feb 15, 2024
f40cb99
restore activeEndDate
anveshmekala Feb 16, 2024
5827054
add more stories
anveshmekala Feb 16, 2024
903cd3d
add delay for stories with open prop
anveshmekala Feb 16, 2024
1a92e37
replace year-picker with select
anveshmekala Mar 18, 2024
96ef22d
drop year-picker and month-picker components
anveshmekala Mar 18, 2024
0952df2
Merge branch 'main' into anveshmekala/3455-add-month-and-year-picker
anveshmekala Mar 19, 2024
4e4aea7
update stencil config
anveshmekala Mar 19, 2024
fe6f1cb
unskip tests in date-picker
anveshmekala Mar 19, 2024
60c2c2d
fix tests
anveshmekala Mar 20, 2024
a9bc158
add more tests and update
anveshmekala Mar 20, 2024
a0151e5
allow users to specify month abbreviations
anveshmekala Mar 21, 2024
033daa9
add hover effect for keyboard navigation of dates
anveshmekala Mar 21, 2024
0d93b2f
update focus order
anveshmekala Mar 22, 2024
e51f3f2
fix navigation chevron positions
anveshmekala Mar 26, 2024
776afa9
add more tests
anveshmekala Mar 26, 2024
704db7f
fix start date selection beyond endDate
anveshmekala Mar 27, 2024
8718c80
update selectDayInMonth test util method
anveshmekala Mar 28, 2024
3ab9b12
fix updating dates from previous and next calendars using keyboard
anveshmekala Mar 28, 2024
0845336
handle keydown events only on calendar container in date-picker-month
anveshmekala Apr 1, 2024
6df3d3e
Merge branch 'main' into anveshmekala/3455-add-month-and-year-picker
anveshmekala Apr 10, 2024
082a9e4
add new focus behavior
anveshmekala Apr 12, 2024
209a45c
fixes updating dates via keyboard
anveshmekala Apr 18, 2024
1f5b745
fix pageUp & pageDown keys
anveshmekala Apr 18, 2024
d8eb8c3
Merge branch 'main' into anveshmekala/3455-add-month-and-year-picker
anveshmekala Apr 18, 2024
18d71eb
do not update activedate when updating start or end dates if selected…
anveshmekala Apr 19, 2024
4e071ea
Merge branch 'main' into anveshmekala/3455-add-month-and-year-picker
anveshmekala Apr 22, 2024
423c05a
fix range hover color and selection
anveshmekala Apr 23, 2024
ca7baae
Merge branch 'main' into anveshmekala/3455-add-month-and-year-picker
anveshmekala Apr 23, 2024
39880ce
fix date-picker tests and merge master
anveshmekala Apr 23, 2024
f01580a
fix input date picker tests
anveshmekala Apr 24, 2024
0e17d56
fixes hover edge cases and adds tests
anveshmekala Apr 24, 2024
9762856
Merge branch 'main' into anveshmekala/3455-add-month-and-year-picker
anveshmekala Apr 24, 2024
d2363a5
add range hover tests in input-date-picker
anveshmekala Apr 25, 2024
91e6616
delete unrelated tests
anveshmekala Apr 25, 2024
2fa6704
do not shift focus onto endDate and do not update activeDate after in…
anveshmekala May 3, 2024
942f4e9
Merge branch 'main' into anveshmekala/3455-add-month-and-year-picker
anveshmekala May 3, 2024
e86dd1d
fix test failures
anveshmekala May 3, 2024
8e6ac05
clean up
anveshmekala May 3, 2024
a1f5305
refactor test utils
anveshmekala May 6, 2024
b92066f
remove overlapping dates in range calendar
anveshmekala May 7, 2024
10bc852
add divider for horizontal input
anveshmekala May 8, 2024
d387989
update vertical arrow indicator positioning
anveshmekala May 8, 2024
c48c8d5
removes redndant wrapper containers and css styling
anveshmekala May 13, 2024
3e8750e
Merge branch 'main' into anveshmekala/3455-add-month-and-year-picker
anveshmekala May 14, 2024
90b7baf
add box-shadow on focus for selected dates
anveshmekala May 16, 2024
2151b09
adds default z-index when focused
anveshmekala May 16, 2024
d61deb1
refactor date-picker header UI
anveshmekala May 17, 2024
942886f
refactor and cleanup date-picker-month styles
anveshmekala May 17, 2024
fdc27b4
fix vertical layout
anveshmekala May 20, 2024
9adc695
fix divider in vertical layout
anveshmekala May 21, 2024
a23038e
fix test failures
anveshmekala May 22, 2024
ab81f66
exclude keydownHandler for date-picker-month-header in date-picker-month
anveshmekala May 22, 2024
3149b83
fix chevron-icon hover and focus color
anveshmekala May 23, 2024
b7ad043
Merge branch 'main' into anveshmekala/3455-add-month-and-year-picker
anveshmekala May 30, 2024
67373e5
fix chevron dimensions
anveshmekala Jun 3, 2024
a360305
fix focus outline for chevrons
anveshmekala Jun 5, 2024
6df6a9a
update test to query calcite-action for navigation & no longer update…
anveshmekala Jun 6, 2024
5cff93b
adds support for arrowUp & fix bugs
anveshmekala Jun 7, 2024
90f5fc9
add interaction tests for input-date-picker
anveshmekala Jun 8, 2024
a26d53b
Merge branch 'main' into anveshmekala/3455-add-month-and-year-picker
anveshmekala Jun 8, 2024
3677c59
restore default story object
anveshmekala Jun 8, 2024
7947648
fix dependency issue
anveshmekala Jun 8, 2024
11368ab
fix play function failure in chromatic
anveshmekala Jun 8, 2024
719aec6
Merge branch 'dev' into anveshmekala/3455-add-month-and-year-picker
anveshmekala Jun 10, 2024
fa118f9
wait for component query in interaction tests
anveshmekala Jun 10, 2024
c0c04c4
Merge branch 'dev' into anveshmekala/3455-add-month-and-year-picker
anveshmekala Jun 10, 2024
7f9e0b5
extend timeout in interaction test
anveshmekala Jun 11, 2024
f80c77b
feedback changes
anveshmekala Jun 12, 2024
c24967f
more feedback changes
anveshmekala Jun 13, 2024
1295da8
Merge branch 'dev' into anveshmekala/3455-add-month-and-year-picker
anveshmekala Jun 13, 2024
58adb4d
dynamic width for select menu and disable month option outside of range
anveshmekala Jun 19, 2024
8943f0a
disable year and month outside of range
anveshmekala Jun 20, 2024
943e890
reset activeDate when first valid month is viewed in end calendar
anveshmekala Jun 20, 2024
ccbb768
Merge branch 'dev' into anveshmekala/3455-add-month-and-year-picker
anveshmekala Jun 20, 2024
4b1325b
Merge branch 'dev' into anveshmekala/3455-add-month-and-year-picker
anveshmekala Jun 21, 2024
9f6e1ac
fix test failures
anveshmekala Jun 21, 2024
bb536c0
Merge branch 'dev' into anveshmekala/3455-add-month-and-year-picker
anveshmekala Jun 21, 2024
f00afc8
restore previous and nextdates in range calendar
anveshmekala Jun 21, 2024
3b1fa1c
add tests
anveshmekala Jun 24, 2024
2ccdd8e
Merge branch 'dev' into anveshmekala/3455-add-month-and-year-picker
anveshmekala Jun 24, 2024
484fedd
Merge branch 'dev' into anveshmekala/3455-add-month-and-year-picker
anveshmekala Jun 25, 2024
9fb89e0
add tests for select menu
anveshmekala Jun 25, 2024
52763e3
Merge branch 'dev' into anveshmekala/3455-add-month-and-year-picker
anveshmekala Jun 25, 2024
4f4a4f3
make noncurrent days in range calendar transparent
anveshmekala Jun 25, 2024
05f542d
fix month picker large scale block size
anveshmekala Jun 27, 2024
ff9bb1b
Merge branch 'dev' into anveshmekala/3455-add-month-and-year-picker
anveshmekala Jun 28, 2024
0a66124
cleanup
anveshmekala Jun 28, 2024
95c24da
Merge branch 'dev' into anveshmekala/3455-add-month-and-year-picker
anveshmekala Jun 28, 2024
1eecd21
refactor
anveshmekala Jul 1, 2024
7e33fd7
fix build errors
anveshmekala Jul 2, 2024
12d474c
Merge branch 'dev' into anveshmekala/3455-add-month-and-year-picker
anveshmekala Jul 2, 2024
25c3190
restore wrapper block size in select small scale
anveshmekala Jul 2, 2024
d6d1a05
reset line height in select component
anveshmekala Jul 2, 2024
fe9ff0f
feedback changes
anveshmekala Jul 3, 2024
8e2c7c4
Merge branch 'dev' into anveshmekala/3455-add-month-and-year-picker
anveshmekala Jul 3, 2024
ff383f2
Merge branch 'dev' into anveshmekala/3455-add-month-and-year-picker
anveshmekala Aug 15, 2024
cc7f046
Merge branch 'dev' into anveshmekala/3455-add-month-and-year-picker
anveshmekala Aug 15, 2024
3d85cc8
add focus border when extending range via mouse
anveshmekala Aug 15, 2024
9a058c2
Merge branch 'dev' into anveshmekala/3455-add-month-and-year-picker
anveshmekala Aug 16, 2024
724ab62
fix tests and remove unused messages
anveshmekala Aug 16, 2024
b88738b
fix tests
anveshmekala Aug 19, 2024
a4a2947
add current day class when in view
anveshmekala Aug 20, 2024
a5a42c9
revert fousing current day when switching between months
anveshmekala Aug 20, 2024
f0808d1
remove unused methods
anveshmekala Aug 20, 2024
cc566a1
Merge branch 'dev' into anveshmekala/3455-add-month-and-year-picker
anveshmekala Aug 20, 2024
03d6624
Merge branch 'dev' into anveshmekala/3455-add-month-and-year-picker
anveshmekala Aug 21, 2024
8c91509
disable next month chevron when user is viewing last month & allow ar…
anveshmekala Aug 26, 2024
63d3718
feedback changes
anveshmekala Aug 30, 2024
edab079
add render test in date-picker-month-header
anveshmekala Sep 3, 2024
1dfb54a
fix tests
anveshmekala Sep 3, 2024
05c9a79
use css tokens where required
anveshmekala Sep 3, 2024
725e701
cleanup
anveshmekala Sep 3, 2024
9cbcb8a
add more tests
anveshmekala Sep 4, 2024
42e1b92
Merge branch 'dev' into anveshmekala/3455-add-month-and-year-picker
anveshmekala Sep 4, 2024
b5d6994
Merge branch 'dev' into anveshmekala/3455-add-month-and-year-picker
anveshmekala Sep 4, 2024
be10a92
fix build failure
anveshmekala Sep 4, 2024
813ef02
add tests #10113
anveshmekala Sep 5, 2024
8ad76ee
refactor tests
anveshmekala Sep 6, 2024
fa404a2
Merge branch 'dev' into anveshmekala/3455-add-month-and-year-picker
anveshmekala Sep 6, 2024
c6d31a2
Merge branch 'dev' into anveshmekala/3455-add-month-and-year-picker
anveshmekala Sep 7, 2024
b64e66f
Merge branch 'dev' into anveshmekala/3455-add-month-and-year-picker
anveshmekala Sep 9, 2024
6b76193
restore input for year in month-header
anveshmekala Sep 12, 2024
f6ca9f2
Merge branch 'dev' into anveshmekala/3455-add-month-and-year-picker
anveshmekala Sep 12, 2024
e7bedd5
add more testing and fix edge cases with min/max
anveshmekala Sep 16, 2024
2f70dc1
Merge branch 'dev' into anveshmekala/3455-add-month-and-year-picker
anveshmekala Sep 16, 2024
a1c540c
fix #10291
anveshmekala Sep 17, 2024
90f1e92
Merge branch 'dev' into anveshmekala/3455-add-month-and-year-picker
anveshmekala Sep 18, 2024
f3f3697
fix closing date-picker when fetching last valid month with action ch…
anveshmekala Sep 19, 2024
50c4bee
fix focus order for year first locales
anveshmekala Sep 24, 2024
ddf6fb4
add delay for input date picker stories
anveshmekala Sep 24, 2024
ab681b7
add wrapper for stories
anveshmekala Sep 24, 2024
4a4f579
remove inline css for wrapper in stories
anveshmekala Sep 25, 2024
8d9f895
add height for story container wrapper
anveshmekala Sep 25, 2024
8c270a2
feedback changes
anveshmekala Sep 26, 2024
f5066a2
more cleanup
anveshmekala Sep 26, 2024
62c9569
more cleanup & refactor
anveshmekala Sep 27, 2024
8cd7f5c
fix rem to px mapping in header
anveshmekala Sep 27, 2024
8c2abfd
fix flaky screenshot test
anveshmekala Sep 27, 2024
3b34c2f
update focus stories
anveshmekala Sep 30, 2024
1abbe21
add test for #10301
anveshmekala Oct 1, 2024
f6eb79a
Merge branch 'dev' into anveshmekala/3455-add-month-and-year-picker
anveshmekala Oct 1, 2024
ef570ea
fix hover outline transition for year
anveshmekala Oct 1, 2024
8d9b339
fix font family for year
anveshmekala Oct 1, 2024
d278bf8
Merge branch 'dev' into anveshmekala/3455-add-month-and-year-picker
anveshmekala Oct 1, 2024
b5f0474
more feedback changes
anveshmekala Oct 2, 2024
71d2cb5
fix flaky test
anveshmekala Oct 3, 2024
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
117 changes: 104 additions & 13 deletions packages/calcite-components/src/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ import { ColorPickerMessages } from "./components/color-picker/assets/color-pick
import { ComboboxChildElement, SelectionDisplay } from "./components/combobox/interfaces";
import { ComboboxMessages } from "./components/combobox/assets/combobox/t9n";
import { DatePickerMessages } from "./components/date-picker/assets/date-picker/t9n";
import { DateLocaleData } from "./components/date-picker/utils";
import { HoverRange } from "./utils/date";
import { DateLocaleData } from "./components/date-picker/utils";
import { DialogMessages } from "./components/dialog/assets/dialog/t9n";
import { DialogPlacement } from "./components/dialog/interfaces";
import { RequestedItem as RequestedItem2 } from "./components/dropdown-group/interfaces";
Expand Down Expand Up @@ -130,8 +130,8 @@ export { ColorPickerMessages } from "./components/color-picker/assets/color-pick
export { ComboboxChildElement, SelectionDisplay } from "./components/combobox/interfaces";
export { ComboboxMessages } from "./components/combobox/assets/combobox/t9n";
export { DatePickerMessages } from "./components/date-picker/assets/date-picker/t9n";
export { DateLocaleData } from "./components/date-picker/utils";
export { HoverRange } from "./utils/date";
export { DateLocaleData } from "./components/date-picker/utils";
export { DialogMessages } from "./components/dialog/assets/dialog/t9n";
export { DialogPlacement } from "./components/dialog/interfaces";
export { RequestedItem as RequestedItem2 } from "./components/dropdown-group/interfaces";
Expand Down Expand Up @@ -1485,6 +1485,10 @@ export namespace Components {
* Specifies the heading level of the component's `heading` for proper document structure, without affecting visual styling.
*/
"headingLevel": HeadingLevel;
/**
* Defines the layout of the component.
*/
"layout": "horizontal" | "vertical";
/**
* Specifies the latest allowed date (`"yyyy-mm-dd"`).
*/
Expand All @@ -1509,6 +1513,10 @@ export namespace Components {
* Specifies the earliest allowed date as a full date object (`new Date("yyyy-mm-dd")`).
*/
"minAsDate": Date;
/**
* Specifies the monthStyle used by the component.
*/
"monthStyle": "abbreviated" | "wide";
/**
* Specifies the Unicode numeral system used by the component for localization. This property cannot be dynamically changed.
*/
Expand Down Expand Up @@ -1617,10 +1625,18 @@ export namespace Components {
* End date currently active.
*/
"endDate"?: Date;
/**
* Specifies the number at which section headings should start.
*/
"headingLevel": HeadingLevel;
/**
* The range of dates currently being hovered.
*/
"hoverRange": HoverRange;
/**
* Specifies the layout of the component.
*/
"layout": "horizontal" | "vertical";
/**
* CLDR locale data for current locale.
*/
Expand All @@ -1629,10 +1645,22 @@ export namespace Components {
* Specifies the latest allowed date (`"yyyy-mm-dd"`).
*/
"max": Date;
/**
* Made into a prop for testing purposes only
*/
"messages": DatePickerMessages;
/**
* Specifies the earliest allowed date (`"yyyy-mm-dd"`).
*/
"min": Date;
/**
* Specifies the monthStyle used by the component.
*/
"monthStyle": "abbreviated" | "wide";
/**
* When `true`, activates the component's range mode which renders two calendars for selecting ranges of dates.
*/
"range": boolean;
/**
* Specifies the size of the component.
*/
Expand Down Expand Up @@ -1672,6 +1700,14 @@ export namespace Components {
* Specifies the earliest allowed date (`"yyyy-mm-dd"`).
*/
"min": Date;
/**
* Specifies the monthStyle used by the component.
*/
"monthStyle": "abbreviated" | "wide";
/**
* Specifies the position of the component in a range date-picker.
*/
"position": Extract<"start" | "end", Position>;
/**
* Specifies the size of the component.
*/
Expand Down Expand Up @@ -2472,6 +2508,10 @@ export namespace Components {
* Specifies the earliest allowed date as a full date object.
*/
"minAsDate": Date;
/**
* Specifies the monthStyle used by the component.
*/
"monthStyle": "abbreviated" | "wide";
/**
* Specifies the name of the component. Required to pass the component's `value` on form submission.
*/
Expand Down Expand Up @@ -6679,10 +6719,14 @@ declare global {
new (): HTMLCalciteDatePickerDayElement;
};
interface HTMLCalciteDatePickerMonthElementEventMap {
"calciteInternalDatePickerSelect": Date;
"calciteInternalDatePickerHover": Date;
"calciteInternalDatePickerActiveDateChange": Date;
"calciteInternalDatePickerMouseOut": void;
"calciteInternalDatePickerDaySelect": Date;
"calciteInternalDatePickerDayHover": Date;
"calciteInternalDatePickerMonthActiveDateChange": Date;
"calciteInternalDatePickerMonthMouseOut": void;
"calciteInternalDatePickerMonthChange": {
date: Date;
position: string;
};
}
interface HTMLCalciteDatePickerMonthElement extends Components.CalciteDatePickerMonth, HTMLStencilElement {
addEventListener<K extends keyof HTMLCalciteDatePickerMonthElementEventMap>(type: K, listener: (this: HTMLCalciteDatePickerMonthElement, ev: CalciteDatePickerMonthCustomEvent<HTMLCalciteDatePickerMonthElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
Expand All @@ -6699,7 +6743,7 @@ declare global {
new (): HTMLCalciteDatePickerMonthElement;
};
interface HTMLCalciteDatePickerMonthHeaderElementEventMap {
"calciteInternalDatePickerSelect": Date;
"calciteInternalDatePickerMonthHeaderSelect": Date;
}
interface HTMLCalciteDatePickerMonthHeaderElement extends Components.CalciteDatePickerMonthHeader, HTMLStencilElement {
addEventListener<K extends keyof HTMLCalciteDatePickerMonthHeaderElementEventMap>(type: K, listener: (this: HTMLCalciteDatePickerMonthHeaderElement, ev: CalciteDatePickerMonthHeaderCustomEvent<HTMLCalciteDatePickerMonthHeaderElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
Expand Down Expand Up @@ -9487,6 +9531,10 @@ declare namespace LocalJSX {
* Specifies the heading level of the component's `heading` for proper document structure, without affecting visual styling.
*/
"headingLevel"?: HeadingLevel;
/**
* Defines the layout of the component.
*/
"layout"?: "horizontal" | "vertical";
/**
* Specifies the latest allowed date (`"yyyy-mm-dd"`).
*/
Expand All @@ -9511,6 +9559,10 @@ declare namespace LocalJSX {
* Specifies the earliest allowed date as a full date object (`new Date("yyyy-mm-dd")`).
*/
"minAsDate"?: Date;
/**
* Specifies the monthStyle used by the component.
*/
"monthStyle"?: "abbreviated" | "wide";
/**
* Specifies the Unicode numeral system used by the component for localization. This property cannot be dynamically changed.
*/
Expand Down Expand Up @@ -9623,10 +9675,18 @@ declare namespace LocalJSX {
* End date currently active.
*/
"endDate"?: Date;
/**
* Specifies the number at which section headings should start.
*/
"headingLevel"?: HeadingLevel;
/**
* The range of dates currently being hovered.
*/
"hoverRange"?: HoverRange;
/**
* Specifies the layout of the component.
*/
"layout"?: "horizontal" | "vertical";
/**
* CLDR locale data for current locale.
*/
Expand All @@ -9635,23 +9695,42 @@ declare namespace LocalJSX {
* Specifies the latest allowed date (`"yyyy-mm-dd"`).
*/
"max"?: Date;
/**
* Made into a prop for testing purposes only
*/
"messages"?: DatePickerMessages;
/**
* Specifies the earliest allowed date (`"yyyy-mm-dd"`).
*/
"min"?: Date;
/**
* Active date for the user keyboard access.
* Specifies the monthStyle used by the component.
*/
"onCalciteInternalDatePickerActiveDateChange"?: (event: CalciteDatePickerMonthCustomEvent<Date>) => void;
"monthStyle"?: "abbreviated" | "wide";
/**
* Fires when user hovers the date.
*/
"onCalciteInternalDatePickerHover"?: (event: CalciteDatePickerMonthCustomEvent<Date>) => void;
"onCalciteInternalDatePickerMouseOut"?: (event: CalciteDatePickerMonthCustomEvent<void>) => void;
"onCalciteInternalDatePickerDayHover"?: (event: CalciteDatePickerMonthCustomEvent<Date>) => void;
/**
* Fires when user selects the date.
*/
"onCalciteInternalDatePickerSelect"?: (event: CalciteDatePickerMonthCustomEvent<Date>) => void;
"onCalciteInternalDatePickerDaySelect"?: (event: CalciteDatePickerMonthCustomEvent<Date>) => void;
/**
* Active date for the user keyboard access.
*/
"onCalciteInternalDatePickerMonthActiveDateChange"?: (event: CalciteDatePickerMonthCustomEvent<Date>) => void;
/**
* Emits when user updates month or year using `calcite-date-picker-month-header` component.
*/
"onCalciteInternalDatePickerMonthChange"?: (event: CalciteDatePickerMonthCustomEvent<{
date: Date;
position: string;
}>) => void;
"onCalciteInternalDatePickerMonthMouseOut"?: (event: CalciteDatePickerMonthCustomEvent<void>) => void;
/**
* When `true`, activates the component's range mode which renders two calendars for selecting ranges of dates.
*/
"range"?: boolean;
/**
* Specifies the size of the component.
*/
Expand Down Expand Up @@ -9691,10 +9770,18 @@ declare namespace LocalJSX {
* Specifies the earliest allowed date (`"yyyy-mm-dd"`).
*/
"min"?: Date;
/**
* Specifies the monthStyle used by the component.
*/
"monthStyle"?: "abbreviated" | "wide";
/**
* Fires to active date
*/
"onCalciteInternalDatePickerSelect"?: (event: CalciteDatePickerMonthHeaderCustomEvent<Date>) => void;
"onCalciteInternalDatePickerMonthHeaderSelect"?: (event: CalciteDatePickerMonthHeaderCustomEvent<Date>) => void;
/**
* Specifies the position of the component in a range date-picker.
*/
"position"?: Extract<"start" | "end", Position>;
/**
* Specifies the size of the component.
*/
Expand Down Expand Up @@ -10515,6 +10602,10 @@ declare namespace LocalJSX {
* Specifies the earliest allowed date as a full date object.
*/
"minAsDate"?: Date;
/**
* Specifies the monthStyle used by the component.
*/
"monthStyle"?: "abbreviated" | "wide";
/**
* Specifies the name of the component. Required to pass the component's `value` on form submission.
*/
Expand Down
9 changes: 6 additions & 3 deletions packages/calcite-components/src/components/action/action.scss
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,8 @@

:host([scale="s"]) {
.button {
@apply text-n2h px-2 py-1 font-normal;
@apply text-n2h px-2 font-normal;
padding-block: var(--calcite-internal-action-padding-block, var(--calcite-size-xxs));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you create an issue or add a comment to #7180 to consider this one? Applies to internal calcite-select custom CSS props as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

action tokens are installed i believe and tokens added in this PR are internal. Adding @alisonailea for review.

Will add a comment in the issue for select & date-picker related.

}
.button--text-visible .icon-container {
margin-inline-end: theme("spacing.2");
Expand All @@ -157,7 +158,8 @@

:host([scale="m"]) {
.button {
@apply text-n1h px-4 py-3 font-normal;
@apply text-n1h px-4 font-normal;
padding-block: var(--calcite-internal-action-padding-block, var(--calcite-size-md));
}
.button--text-visible .icon-container {
margin-inline-end: theme("spacing.3");
Expand All @@ -166,7 +168,8 @@

:host([scale="l"]) {
.button {
@apply text-0h p-5 font-normal;
@apply text-0h px-5 font-normal;
padding-block: var(--calcite-internal-action-padding-block, var(--calcite-size-xl));
}
.button--text-visible .icon-container {
margin-inline-end: theme("spacing.4");
Expand Down
Loading
Loading