@transferwise/components 0.0.0-experimental-15273df → 0.0.0-experimental-d6d5b6e
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/build/Calendar/Calendar.js +94 -16
- package/build/Calendar/Calendar.js.map +1 -1
- package/build/Calendar/Calendar.messages.js +12 -0
- package/build/Calendar/Calendar.messages.js.map +1 -1
- package/build/Calendar/Calendar.messages.mjs +12 -0
- package/build/Calendar/Calendar.messages.mjs.map +1 -1
- package/build/Calendar/Calendar.mjs +95 -17
- package/build/Calendar/Calendar.mjs.map +1 -1
- package/build/Calendar/DateHeader/DateHeader.js +5 -1
- package/build/Calendar/DateHeader/DateHeader.js.map +1 -1
- package/build/Calendar/DateHeader/DateHeader.mjs +5 -1
- package/build/Calendar/DateHeader/DateHeader.mjs.map +1 -1
- package/build/Calendar/DayCalendar/DayCalendar.js +14 -0
- package/build/Calendar/DayCalendar/DayCalendar.js.map +1 -1
- package/build/Calendar/DayCalendar/DayCalendar.mjs +14 -0
- package/build/Calendar/DayCalendar/DayCalendar.mjs.map +1 -1
- package/build/Calendar/DayCalendar/Table/DayCalendarTable.js +53 -19
- package/build/Calendar/DayCalendar/Table/DayCalendarTable.js.map +1 -1
- package/build/Calendar/DayCalendar/Table/DayCalendarTable.mjs +53 -19
- package/build/Calendar/DayCalendar/Table/DayCalendarTable.mjs.map +1 -1
- package/build/Calendar/MonthCalendar/MonthCalendar.js +6 -0
- package/build/Calendar/MonthCalendar/MonthCalendar.js.map +1 -1
- package/build/Calendar/MonthCalendar/MonthCalendar.mjs +6 -0
- package/build/Calendar/MonthCalendar/MonthCalendar.mjs.map +1 -1
- package/build/Calendar/MonthCalendar/Table/MonthCalendarTable.js +8 -3
- package/build/Calendar/MonthCalendar/Table/MonthCalendarTable.js.map +1 -1
- package/build/Calendar/MonthCalendar/Table/MonthCalendarTable.mjs +8 -3
- package/build/Calendar/MonthCalendar/Table/MonthCalendarTable.mjs.map +1 -1
- package/build/Calendar/{tableLink → TableLink}/TableLink.js +26 -11
- package/build/Calendar/TableLink/TableLink.js.map +1 -0
- package/build/Calendar/{tableLink → TableLink}/TableLink.mjs +26 -11
- package/build/Calendar/TableLink/TableLink.mjs.map +1 -0
- package/build/Calendar/YearCalendar/Table/YearCalendarTable.js +8 -3
- package/build/Calendar/YearCalendar/Table/YearCalendarTable.js.map +1 -1
- package/build/Calendar/YearCalendar/Table/YearCalendarTable.mjs +8 -3
- package/build/Calendar/YearCalendar/Table/YearCalendarTable.mjs.map +1 -1
- package/build/Calendar/YearCalendar/YearCalendar.js +7 -0
- package/build/Calendar/YearCalendar/YearCalendar.js.map +1 -1
- package/build/Calendar/YearCalendar/YearCalendar.mjs +7 -0
- package/build/Calendar/YearCalendar/YearCalendar.mjs.map +1 -1
- package/build/DateLookup/DateLookup.js +19 -9
- package/build/DateLookup/DateLookup.js.map +1 -1
- package/build/DateLookup/DateLookup.mjs +19 -9
- package/build/DateLookup/DateLookup.mjs.map +1 -1
- package/build/Sticky/Sticky.js +0 -1
- package/build/Sticky/Sticky.js.map +1 -1
- package/build/Sticky/Sticky.mjs +0 -1
- package/build/Sticky/Sticky.mjs.map +1 -1
- package/build/common/DateUtils/hasDisabledDatesInMonth/hasDisabledDatesInMonth.js +33 -0
- package/build/common/DateUtils/hasDisabledDatesInMonth/hasDisabledDatesInMonth.js.map +1 -0
- package/build/common/DateUtils/hasDisabledDatesInMonth/hasDisabledDatesInMonth.mjs +31 -0
- package/build/common/DateUtils/hasDisabledDatesInMonth/hasDisabledDatesInMonth.mjs.map +1 -0
- package/build/common/DateUtils/isDateDisabled/isDateDisabled.js +40 -0
- package/build/common/DateUtils/isDateDisabled/isDateDisabled.js.map +1 -0
- package/build/common/DateUtils/isDateDisabled/isDateDisabled.mjs +38 -0
- package/build/common/DateUtils/isDateDisabled/isDateDisabled.mjs.map +1 -0
- package/build/i18n/en.json +4 -0
- package/build/i18n/en.json.js +4 -0
- package/build/i18n/en.json.js.map +1 -1
- package/build/i18n/en.json.mjs +4 -0
- package/build/i18n/en.json.mjs.map +1 -1
- package/build/index.js +2 -2
- package/build/index.mjs +1 -1
- package/build/main.css +123 -48
- package/build/styles/Calendar/Calendar.css +112 -37
- package/build/styles/Calendar/TableLink/TableLink.css +115 -0
- package/build/styles/main.css +123 -48
- package/build/types/Calendar/Calendar.d.ts +16 -3
- package/build/types/Calendar/Calendar.d.ts.map +1 -1
- package/build/types/Calendar/Calendar.messages.d.ts +20 -0
- package/build/types/Calendar/Calendar.messages.d.ts.map +1 -1
- package/build/types/Calendar/Calendar.types.d.ts +32 -0
- package/build/types/Calendar/Calendar.types.d.ts.map +1 -0
- package/build/types/Calendar/DateHeader/DateHeader.d.ts +2 -0
- package/build/types/Calendar/DateHeader/DateHeader.d.ts.map +1 -1
- package/build/types/Calendar/DayCalendar/DayCalendar.d.ts +5 -1
- package/build/types/Calendar/DayCalendar/DayCalendar.d.ts.map +1 -1
- package/build/types/Calendar/DayCalendar/Table/DayCalendarTable.d.ts +4 -0
- package/build/types/Calendar/DayCalendar/Table/DayCalendarTable.d.ts.map +1 -1
- package/build/types/Calendar/MonthCalendar/MonthCalendar.d.ts +1 -0
- package/build/types/Calendar/MonthCalendar/MonthCalendar.d.ts.map +1 -1
- package/build/types/Calendar/MonthCalendar/Table/MonthCalendarTable.d.ts +2 -1
- package/build/types/Calendar/MonthCalendar/Table/MonthCalendarTable.d.ts.map +1 -1
- package/build/types/Calendar/{tableLink → TableLink}/TableLink.d.ts +3 -1
- package/build/types/Calendar/TableLink/TableLink.d.ts.map +1 -0
- package/build/types/Calendar/TableLink/index.d.ts.map +1 -0
- package/build/types/Calendar/YearCalendar/Table/YearCalendarTable.d.ts +2 -1
- package/build/types/Calendar/YearCalendar/Table/YearCalendarTable.d.ts.map +1 -1
- package/build/types/Calendar/YearCalendar/YearCalendar.d.ts +1 -0
- package/build/types/Calendar/YearCalendar/YearCalendar.d.ts.map +1 -1
- package/build/types/Calendar/index.d.ts +1 -0
- package/build/types/Calendar/index.d.ts.map +1 -1
- package/build/types/DateLookup/DateLookup.d.ts +23 -4
- package/build/types/DateLookup/DateLookup.d.ts.map +1 -1
- package/build/types/DateLookup/index.d.ts +1 -0
- package/build/types/DateLookup/index.d.ts.map +1 -1
- package/build/types/Sticky/Sticky.d.ts.map +1 -1
- package/build/types/common/DateUtils/hasDisabledDatesInMonth/hasDisabledDatesInMonth.d.ts +3 -0
- package/build/types/common/DateUtils/hasDisabledDatesInMonth/hasDisabledDatesInMonth.d.ts.map +1 -0
- package/build/types/common/DateUtils/index.d.ts +2 -0
- package/build/types/common/DateUtils/index.d.ts.map +1 -1
- package/build/types/common/DateUtils/isDateDisabled/isDateDisabled.d.ts +3 -0
- package/build/types/common/DateUtils/isDateDisabled/isDateDisabled.d.ts.map +1 -0
- package/build/types/index.d.ts +3 -2
- package/build/types/index.d.ts.map +1 -1
- package/build/types/test-utils/index.d.ts +8 -0
- package/build/types/test-utils/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/Calendar/Calendar.css +112 -37
- package/src/Calendar/Calendar.disabledDates.test.tsx +518 -0
- package/src/Calendar/Calendar.less +5 -35
- package/src/Calendar/Calendar.messages.ts +21 -0
- package/src/Calendar/Calendar.test.tsx +217 -28
- package/src/Calendar/Calendar.tsx +136 -19
- package/src/Calendar/Calendar.types.ts +35 -0
- package/src/Calendar/DateHeader/DateHeader.tsx +6 -0
- package/src/Calendar/DayCalendar/DayCalendar.tsx +33 -1
- package/src/Calendar/DayCalendar/Table/DayCalendarTable.tsx +62 -28
- package/src/Calendar/MonthCalendar/MonthCalendar.tsx +8 -0
- package/src/Calendar/MonthCalendar/Table/MonthCalendarTable.tsx +15 -3
- package/src/Calendar/TableLink/TableLink.css +115 -0
- package/src/Calendar/TableLink/TableLink.less +68 -0
- package/src/Calendar/{tableLink → TableLink}/TableLink.tsx +29 -14
- package/src/Calendar/YearCalendar/Table/YearCalendarTable.tsx +15 -3
- package/src/Calendar/YearCalendar/YearCalendar.tsx +9 -0
- package/src/Calendar/_stories/Calendar.accessibility.docs.mdx +118 -0
- package/src/Calendar/_stories/Calendar.story.tsx +138 -4
- package/src/Calendar/index.ts +7 -0
- package/src/DateLookup/DateLookup.disabledDates.test.tsx +293 -0
- package/src/DateLookup/DateLookup.test.tsx +34 -37
- package/src/DateLookup/DateLookup.tsx +36 -13
- package/src/DateLookup/_stories/DateLookup.accessibility.docs.mdx +108 -0
- package/src/DateLookup/_stories/DateLookup.story.tsx +124 -2
- package/src/DateLookup/index.ts +6 -0
- package/src/Sticky/Sticky.test.tsx +0 -1
- package/src/Sticky/Sticky.tsx +0 -1
- package/src/common/DateUtils/hasDisabledDatesInMonth/hasDisabledDatesInMonth.test.ts +98 -0
- package/src/common/DateUtils/hasDisabledDatesInMonth/hasDisabledDatesInMonth.ts +45 -0
- package/src/common/DateUtils/index.ts +2 -0
- package/src/common/DateUtils/isDateDisabled/isDateDisabled.test.ts +159 -0
- package/src/common/DateUtils/isDateDisabled/isDateDisabled.ts +59 -0
- package/src/i18n/en.json +4 -0
- package/src/index.ts +3 -2
- package/src/main.css +123 -48
- package/src/main.less +0 -1
- package/build/Calendar/tableLink/TableLink.js.map +0 -1
- package/build/Calendar/tableLink/TableLink.mjs.map +0 -1
- package/build/styles/Sticky/Sticky.css +0 -4
- package/build/types/Calendar/tableLink/TableLink.d.ts.map +0 -1
- package/build/types/Calendar/tableLink/index.d.ts.map +0 -1
- package/src/Sticky/Sticky.css +0 -4
- package/src/Sticky/Sticky.less +0 -6
- package/src/Sticky/_stories/Sticky.test.story.tsx +0 -177
- /package/build/types/Calendar/{tableLink → TableLink}/index.d.ts +0 -0
- /package/src/Calendar/{tableLink → TableLink}/index.ts +0 -0
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
.wds-Calendar__option--day,
|
|
2
|
+
.wds-Calendar__option--month,
|
|
3
|
+
.wds-Calendar__option--year {
|
|
4
|
+
width: 100%;
|
|
5
|
+
padding: 4px 0;
|
|
6
|
+
padding: var(--size-4) 0;
|
|
7
|
+
border: transparent;
|
|
8
|
+
border-radius: 10px;
|
|
9
|
+
border-radius: var(--radius-small);
|
|
10
|
+
background-color: transparent;
|
|
11
|
+
font-weight: 600;
|
|
12
|
+
font-weight: var(--font-weight-semi-bold);
|
|
13
|
+
color: #37517e;
|
|
14
|
+
color: var(--color-content-primary);
|
|
15
|
+
}
|
|
16
|
+
@media (max-width: 320px) {
|
|
17
|
+
.wds-Calendar__option--day,
|
|
18
|
+
.wds-Calendar__option--month,
|
|
19
|
+
.wds-Calendar__option--year {
|
|
20
|
+
padding: 0;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
.wds-Calendar__option--day:focus,
|
|
24
|
+
.wds-Calendar__option--month:focus,
|
|
25
|
+
.wds-Calendar__option--year:focus {
|
|
26
|
+
background-color: var(--color-background-screen-hover);
|
|
27
|
+
}
|
|
28
|
+
.wds-Calendar__option--day.disabled,
|
|
29
|
+
.wds-Calendar__option--month.disabled,
|
|
30
|
+
.wds-Calendar__option--year.disabled,
|
|
31
|
+
.wds-Calendar__option--day[aria-disabled="true"],
|
|
32
|
+
.wds-Calendar__option--month[aria-disabled="true"],
|
|
33
|
+
.wds-Calendar__option--year[aria-disabled="true"] {
|
|
34
|
+
--ring-outline-color: var(--color-sentiment-content-primary);
|
|
35
|
+
color: #768e9c;
|
|
36
|
+
color: var(--color-content-tertiary);
|
|
37
|
+
cursor: not-allowed;
|
|
38
|
+
}
|
|
39
|
+
.wds-Calendar__option--day.disabled:hover,
|
|
40
|
+
.wds-Calendar__option--month.disabled:hover,
|
|
41
|
+
.wds-Calendar__option--year.disabled:hover,
|
|
42
|
+
.wds-Calendar__option--day[aria-disabled="true"]:hover,
|
|
43
|
+
.wds-Calendar__option--month[aria-disabled="true"]:hover,
|
|
44
|
+
.wds-Calendar__option--year[aria-disabled="true"]:hover,
|
|
45
|
+
.wds-Calendar__option--day.disabled:focus,
|
|
46
|
+
.wds-Calendar__option--month.disabled:focus,
|
|
47
|
+
.wds-Calendar__option--year.disabled:focus,
|
|
48
|
+
.wds-Calendar__option--day[aria-disabled="true"]:focus,
|
|
49
|
+
.wds-Calendar__option--month[aria-disabled="true"]:focus,
|
|
50
|
+
.wds-Calendar__option--year[aria-disabled="true"]:focus {
|
|
51
|
+
filter: initial;
|
|
52
|
+
opacity: 1;
|
|
53
|
+
opacity: initial;
|
|
54
|
+
background-color: var(--color-sentiment-background-surface);
|
|
55
|
+
color: var(--color-sentiment-content-primary);
|
|
56
|
+
}
|
|
57
|
+
.wds-Calendar__option--day.disabled.active,
|
|
58
|
+
.wds-Calendar__option--month.disabled.active,
|
|
59
|
+
.wds-Calendar__option--year.disabled.active,
|
|
60
|
+
.wds-Calendar__option--day[aria-disabled="true"].active,
|
|
61
|
+
.wds-Calendar__option--month[aria-disabled="true"].active,
|
|
62
|
+
.wds-Calendar__option--year[aria-disabled="true"].active,
|
|
63
|
+
.wds-Calendar__option--day.disabled.active:hover,
|
|
64
|
+
.wds-Calendar__option--month.disabled.active:hover,
|
|
65
|
+
.wds-Calendar__option--year.disabled.active:hover,
|
|
66
|
+
.wds-Calendar__option--day[aria-disabled="true"].active:hover,
|
|
67
|
+
.wds-Calendar__option--month[aria-disabled="true"].active:hover,
|
|
68
|
+
.wds-Calendar__option--year[aria-disabled="true"].active:hover,
|
|
69
|
+
.wds-Calendar__option--day.disabled.active:active,
|
|
70
|
+
.wds-Calendar__option--month.disabled.active:active,
|
|
71
|
+
.wds-Calendar__option--year.disabled.active:active,
|
|
72
|
+
.wds-Calendar__option--day[aria-disabled="true"].active:active,
|
|
73
|
+
.wds-Calendar__option--month[aria-disabled="true"].active:active,
|
|
74
|
+
.wds-Calendar__option--year[aria-disabled="true"].active:active,
|
|
75
|
+
.wds-Calendar__option--day.disabled.active:focus,
|
|
76
|
+
.wds-Calendar__option--month.disabled.active:focus,
|
|
77
|
+
.wds-Calendar__option--year.disabled.active:focus,
|
|
78
|
+
.wds-Calendar__option--day[aria-disabled="true"].active:focus,
|
|
79
|
+
.wds-Calendar__option--month[aria-disabled="true"].active:focus,
|
|
80
|
+
.wds-Calendar__option--year[aria-disabled="true"].active:focus {
|
|
81
|
+
filter: initial;
|
|
82
|
+
opacity: 1;
|
|
83
|
+
opacity: initial;
|
|
84
|
+
background-color: var(--color-sentiment-interactive-primary);
|
|
85
|
+
color: var(--color-sentiment-interactive-secondary);
|
|
86
|
+
}
|
|
87
|
+
.wds-Calendar__option--day.disabled.today,
|
|
88
|
+
.wds-Calendar__option--month.disabled.today,
|
|
89
|
+
.wds-Calendar__option--year.disabled.today,
|
|
90
|
+
.wds-Calendar__option--day[aria-disabled="true"].today,
|
|
91
|
+
.wds-Calendar__option--month[aria-disabled="true"].today,
|
|
92
|
+
.wds-Calendar__option--year[aria-disabled="true"].today {
|
|
93
|
+
text-decoration-color: #768e9c;
|
|
94
|
+
text-decoration-color: var(--color-content-tertiary);
|
|
95
|
+
}
|
|
96
|
+
.wds-Calendar__option--day {
|
|
97
|
+
height: 40px;
|
|
98
|
+
height: var(--size-40);
|
|
99
|
+
border-radius: 9999px;
|
|
100
|
+
border-radius: var(--radius-full);
|
|
101
|
+
line-height: 40px;
|
|
102
|
+
line-height: var(--size-40);
|
|
103
|
+
width: 40px;
|
|
104
|
+
width: var(--size-40);
|
|
105
|
+
padding: 0;
|
|
106
|
+
display: inline-flex;
|
|
107
|
+
align-items: center;
|
|
108
|
+
justify-content: center;
|
|
109
|
+
}
|
|
110
|
+
.wds-Calendar__option--day.today {
|
|
111
|
+
-webkit-text-decoration: underline;
|
|
112
|
+
text-decoration: underline;
|
|
113
|
+
text-decoration-thickness: 2px;
|
|
114
|
+
text-underline-offset: 4px;
|
|
115
|
+
}
|
package/build/styles/main.css
CHANGED
|
@@ -27269,46 +27269,12 @@ a[data-toggle="tooltip"] {
|
|
|
27269
27269
|
pointer-events: auto;
|
|
27270
27270
|
}
|
|
27271
27271
|
|
|
27272
|
-
.
|
|
27273
|
-
|
|
27274
|
-
|
|
27275
|
-
table-layout: fixed;
|
|
27276
|
-
border: none;
|
|
27277
|
-
background-color: inherit;
|
|
27278
|
-
}
|
|
27279
|
-
|
|
27280
|
-
.tw-date-lookup-calendar thead {
|
|
27281
|
-
background-color: transparent;
|
|
27282
|
-
background-color: initial;
|
|
27283
|
-
}
|
|
27284
|
-
|
|
27285
|
-
.tw-date-lookup-calendar > tbody > tr > td.weekend button {
|
|
27286
|
-
color: #5d7079;
|
|
27287
|
-
color: var(--color-content-secondary);
|
|
27288
|
-
}
|
|
27289
|
-
|
|
27290
|
-
.tw-date-lookup-calendar > tbody > tr > td {
|
|
27291
|
-
border: none;
|
|
27292
|
-
padding: 4px;
|
|
27293
|
-
padding: var(--size-4);
|
|
27294
|
-
}
|
|
27295
|
-
|
|
27296
|
-
@media (max-width: 320px) {
|
|
27297
|
-
.tw-date-lookup-calendar > tbody > tr > td {
|
|
27298
|
-
padding: 0;
|
|
27299
|
-
}
|
|
27300
|
-
}
|
|
27301
|
-
|
|
27302
|
-
.tw-date-lookup-calendar > tbody > tr > td:has(.tw-date-lookup-day-option) {
|
|
27303
|
-
padding: 1px;
|
|
27304
|
-
}
|
|
27305
|
-
|
|
27306
|
-
.tw-date-lookup-calendar > tbody > tr > td button {
|
|
27272
|
+
.wds-Calendar__option--day,
|
|
27273
|
+
.wds-Calendar__option--month,
|
|
27274
|
+
.wds-Calendar__option--year {
|
|
27307
27275
|
width: 100%;
|
|
27308
27276
|
padding: 4px 0;
|
|
27309
27277
|
padding: var(--size-4) 0;
|
|
27310
|
-
color: #0097c7;
|
|
27311
|
-
color: var(--color-content-accent);
|
|
27312
27278
|
border: transparent;
|
|
27313
27279
|
border-radius: 10px;
|
|
27314
27280
|
border-radius: var(--radius-small);
|
|
@@ -27320,12 +27286,92 @@ a[data-toggle="tooltip"] {
|
|
|
27320
27286
|
}
|
|
27321
27287
|
|
|
27322
27288
|
@media (max-width: 320px) {
|
|
27323
|
-
.
|
|
27289
|
+
.wds-Calendar__option--day,
|
|
27290
|
+
.wds-Calendar__option--month,
|
|
27291
|
+
.wds-Calendar__option--year {
|
|
27324
27292
|
padding: 0;
|
|
27325
27293
|
}
|
|
27326
27294
|
}
|
|
27327
27295
|
|
|
27328
|
-
.
|
|
27296
|
+
.wds-Calendar__option--day:focus,
|
|
27297
|
+
.wds-Calendar__option--month:focus,
|
|
27298
|
+
.wds-Calendar__option--year:focus {
|
|
27299
|
+
background-color: var(--color-background-screen-hover);
|
|
27300
|
+
}
|
|
27301
|
+
|
|
27302
|
+
.wds-Calendar__option--day.disabled,
|
|
27303
|
+
.wds-Calendar__option--month.disabled,
|
|
27304
|
+
.wds-Calendar__option--year.disabled,
|
|
27305
|
+
.wds-Calendar__option--day[aria-disabled="true"],
|
|
27306
|
+
.wds-Calendar__option--month[aria-disabled="true"],
|
|
27307
|
+
.wds-Calendar__option--year[aria-disabled="true"] {
|
|
27308
|
+
--ring-outline-color: var(--color-sentiment-content-primary);
|
|
27309
|
+
color: #768e9c;
|
|
27310
|
+
color: var(--color-content-tertiary);
|
|
27311
|
+
cursor: not-allowed;
|
|
27312
|
+
}
|
|
27313
|
+
|
|
27314
|
+
.wds-Calendar__option--day.disabled:hover,
|
|
27315
|
+
.wds-Calendar__option--month.disabled:hover,
|
|
27316
|
+
.wds-Calendar__option--year.disabled:hover,
|
|
27317
|
+
.wds-Calendar__option--day[aria-disabled="true"]:hover,
|
|
27318
|
+
.wds-Calendar__option--month[aria-disabled="true"]:hover,
|
|
27319
|
+
.wds-Calendar__option--year[aria-disabled="true"]:hover,
|
|
27320
|
+
.wds-Calendar__option--day.disabled:focus,
|
|
27321
|
+
.wds-Calendar__option--month.disabled:focus,
|
|
27322
|
+
.wds-Calendar__option--year.disabled:focus,
|
|
27323
|
+
.wds-Calendar__option--day[aria-disabled="true"]:focus,
|
|
27324
|
+
.wds-Calendar__option--month[aria-disabled="true"]:focus,
|
|
27325
|
+
.wds-Calendar__option--year[aria-disabled="true"]:focus {
|
|
27326
|
+
filter: initial;
|
|
27327
|
+
opacity: 1;
|
|
27328
|
+
opacity: initial;
|
|
27329
|
+
background-color: var(--color-sentiment-background-surface);
|
|
27330
|
+
color: var(--color-sentiment-content-primary);
|
|
27331
|
+
}
|
|
27332
|
+
|
|
27333
|
+
.wds-Calendar__option--day.disabled.active,
|
|
27334
|
+
.wds-Calendar__option--month.disabled.active,
|
|
27335
|
+
.wds-Calendar__option--year.disabled.active,
|
|
27336
|
+
.wds-Calendar__option--day[aria-disabled="true"].active,
|
|
27337
|
+
.wds-Calendar__option--month[aria-disabled="true"].active,
|
|
27338
|
+
.wds-Calendar__option--year[aria-disabled="true"].active,
|
|
27339
|
+
.wds-Calendar__option--day.disabled.active:hover,
|
|
27340
|
+
.wds-Calendar__option--month.disabled.active:hover,
|
|
27341
|
+
.wds-Calendar__option--year.disabled.active:hover,
|
|
27342
|
+
.wds-Calendar__option--day[aria-disabled="true"].active:hover,
|
|
27343
|
+
.wds-Calendar__option--month[aria-disabled="true"].active:hover,
|
|
27344
|
+
.wds-Calendar__option--year[aria-disabled="true"].active:hover,
|
|
27345
|
+
.wds-Calendar__option--day.disabled.active:active,
|
|
27346
|
+
.wds-Calendar__option--month.disabled.active:active,
|
|
27347
|
+
.wds-Calendar__option--year.disabled.active:active,
|
|
27348
|
+
.wds-Calendar__option--day[aria-disabled="true"].active:active,
|
|
27349
|
+
.wds-Calendar__option--month[aria-disabled="true"].active:active,
|
|
27350
|
+
.wds-Calendar__option--year[aria-disabled="true"].active:active,
|
|
27351
|
+
.wds-Calendar__option--day.disabled.active:focus,
|
|
27352
|
+
.wds-Calendar__option--month.disabled.active:focus,
|
|
27353
|
+
.wds-Calendar__option--year.disabled.active:focus,
|
|
27354
|
+
.wds-Calendar__option--day[aria-disabled="true"].active:focus,
|
|
27355
|
+
.wds-Calendar__option--month[aria-disabled="true"].active:focus,
|
|
27356
|
+
.wds-Calendar__option--year[aria-disabled="true"].active:focus {
|
|
27357
|
+
filter: initial;
|
|
27358
|
+
opacity: 1;
|
|
27359
|
+
opacity: initial;
|
|
27360
|
+
background-color: var(--color-sentiment-interactive-primary);
|
|
27361
|
+
color: var(--color-sentiment-interactive-secondary);
|
|
27362
|
+
}
|
|
27363
|
+
|
|
27364
|
+
.wds-Calendar__option--day.disabled.today,
|
|
27365
|
+
.wds-Calendar__option--month.disabled.today,
|
|
27366
|
+
.wds-Calendar__option--year.disabled.today,
|
|
27367
|
+
.wds-Calendar__option--day[aria-disabled="true"].today,
|
|
27368
|
+
.wds-Calendar__option--month[aria-disabled="true"].today,
|
|
27369
|
+
.wds-Calendar__option--year[aria-disabled="true"].today {
|
|
27370
|
+
text-decoration-color: #768e9c;
|
|
27371
|
+
text-decoration-color: var(--color-content-tertiary);
|
|
27372
|
+
}
|
|
27373
|
+
|
|
27374
|
+
.wds-Calendar__option--day {
|
|
27329
27375
|
height: 40px;
|
|
27330
27376
|
height: var(--size-40);
|
|
27331
27377
|
border-radius: 9999px;
|
|
@@ -27340,19 +27386,53 @@ a[data-toggle="tooltip"] {
|
|
|
27340
27386
|
justify-content: center;
|
|
27341
27387
|
}
|
|
27342
27388
|
|
|
27343
|
-
.
|
|
27389
|
+
.wds-Calendar__option--day.today {
|
|
27344
27390
|
-webkit-text-decoration: underline;
|
|
27345
27391
|
text-decoration: underline;
|
|
27346
27392
|
text-decoration-thickness: 2px;
|
|
27347
27393
|
text-underline-offset: 4px;
|
|
27348
27394
|
}
|
|
27349
27395
|
|
|
27350
|
-
.tw-date-lookup-calendar
|
|
27351
|
-
|
|
27396
|
+
.tw-date-lookup-calendar {
|
|
27397
|
+
min-width: 300px;
|
|
27398
|
+
text-align: center;
|
|
27399
|
+
table-layout: fixed;
|
|
27400
|
+
border: none;
|
|
27401
|
+
background-color: inherit;
|
|
27402
|
+
}
|
|
27403
|
+
|
|
27404
|
+
.tw-date-lookup-calendar thead {
|
|
27405
|
+
background-color: transparent;
|
|
27406
|
+
background-color: initial;
|
|
27407
|
+
}
|
|
27408
|
+
|
|
27409
|
+
.tw-date-lookup-calendar > tbody > tr > td.weekend button {
|
|
27410
|
+
color: #5d7079;
|
|
27411
|
+
color: var(--color-content-secondary);
|
|
27412
|
+
}
|
|
27413
|
+
|
|
27414
|
+
.tw-date-lookup-calendar > tbody > tr > td {
|
|
27415
|
+
border: none;
|
|
27416
|
+
padding: 4px;
|
|
27417
|
+
padding: var(--size-4);
|
|
27418
|
+
}
|
|
27419
|
+
|
|
27420
|
+
@media (max-width: 320px) {
|
|
27421
|
+
.tw-date-lookup-calendar > tbody > tr > td {
|
|
27422
|
+
padding: 0;
|
|
27423
|
+
}
|
|
27424
|
+
}
|
|
27425
|
+
|
|
27426
|
+
.tw-date-lookup-calendar > tbody > tr > td:has(.wds-Calendar__option--day) {
|
|
27427
|
+
padding: 1px;
|
|
27428
|
+
}
|
|
27429
|
+
|
|
27430
|
+
.tw-date-lookup-calendar > tbody > tr > td:not(.disabled):not(:disabled) button.show-focus:not(.disabled):not([aria-disabled="true"]),
|
|
27431
|
+
.tw-date-lookup-calendar > tbody > tr > td:hover button:not(.disabled):not(:disabled):not([aria-disabled="true"]) {
|
|
27352
27432
|
background-color: var(--color-background-screen-hover);
|
|
27353
27433
|
}
|
|
27354
27434
|
|
|
27355
|
-
.tw-date-lookup-calendar > tbody > tr > td:not(.disabled):not(:disabled) button.active {
|
|
27435
|
+
.tw-date-lookup-calendar > tbody > tr > td:not(.disabled):not(:disabled) button.active:not([aria-disabled="true"]) {
|
|
27356
27436
|
background-color: var(--color-interactive-primary);
|
|
27357
27437
|
color: var(--color-interactive-contrast);
|
|
27358
27438
|
}
|
|
@@ -32682,11 +32762,6 @@ html:not([dir="rtl"]) .np-navigation-option {
|
|
|
32682
32762
|
will-change: width;
|
|
32683
32763
|
}
|
|
32684
32764
|
|
|
32685
|
-
.np-sticky.sliding-panel--open-bottom {
|
|
32686
|
-
padding-bottom: env(safe-area-inset-bottom, 0px);
|
|
32687
|
-
padding-bottom: var(--np-sticky-safe-area-inset-bottom, env(safe-area-inset-bottom, 0px));
|
|
32688
|
-
}
|
|
32689
|
-
|
|
32690
32765
|
.np-select .np-dropdown-toggle {
|
|
32691
32766
|
background-color: #ffffff;
|
|
32692
32767
|
background-color: var(--color-background-screen);
|
|
@@ -1,13 +1,26 @@
|
|
|
1
1
|
import { MonthFormat } from '../common';
|
|
2
|
+
import type { DateChangeMeta, DisabledRules } from './Calendar.types';
|
|
2
3
|
export interface CalendarProps {
|
|
4
|
+
/** The currently selected date, or `null` for no selection. */
|
|
3
5
|
value: Date | null;
|
|
6
|
+
/** Earliest selectable date (inclusive). Dates before this are interactive but not selectable, and show a boundary prompt. */
|
|
4
7
|
min?: Date | null;
|
|
8
|
+
/** Latest selectable date (inclusive). Dates after this are interactive but not selectable, and show a boundary prompt. */
|
|
5
9
|
max?: Date | null;
|
|
10
|
+
/** Month name format in the header. Defaults to `'long'` (e.g. "January"). */
|
|
6
11
|
monthFormat?: `${MonthFormat}`;
|
|
12
|
+
/** Placeholder text shown in the month/year cells when no date is selected. */
|
|
7
13
|
placeholder?: string;
|
|
8
|
-
|
|
9
|
-
|
|
14
|
+
/** Rules for disabling specific weekdays, individual dates, or date ranges. The required `reason` is shown in an inline prompt and linked to disabled cells via `aria-describedby` for screen reader accessibility. */
|
|
15
|
+
disabledRules?: DisabledRules;
|
|
16
|
+
/** Called whenever the focused date changes — including disabled and out-of-range dates. `meta.isEnabled` is `false` when the date is not selectable. */
|
|
17
|
+
onDateFocus?: (date: Date | null, meta: DateChangeMeta) => void;
|
|
18
|
+
/** Called when a date is confirmed (click or Enter). Only fires for enabled dates. */
|
|
19
|
+
onChange?: (date: Date) => void;
|
|
10
20
|
}
|
|
11
|
-
|
|
21
|
+
/**
|
|
22
|
+
* Inline calendar for selecting a single date. Powers [DateLookup](?path=/docs/forms-datelookup--docs).
|
|
23
|
+
*/
|
|
24
|
+
declare const Calendar: ({ value, min: minProp, max: maxProp, monthFormat, placeholder, disabledRules, onDateFocus, onChange, }: CalendarProps) => import("react").JSX.Element;
|
|
12
25
|
export default Calendar;
|
|
13
26
|
//# sourceMappingURL=Calendar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Calendar.d.ts","sourceRoot":"","sources":["../../../src/Calendar/Calendar.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Calendar.d.ts","sourceRoot":"","sources":["../../../src/Calendar/Calendar.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AASxC,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAOtE,MAAM,WAAW,aAAa;IAC5B,+DAA+D;IAC/D,KAAK,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,8HAA8H;IAC9H,GAAG,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,2HAA2H;IAC3H,GAAG,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,8EAA8E;IAC9E,WAAW,CAAC,EAAE,GAAG,WAAW,EAAE,CAAC;IAC/B,+EAA+E;IAC/E,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,uNAAuN;IACvN,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,yJAAyJ;IACzJ,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,EAAE,IAAI,EAAE,cAAc,KAAK,IAAI,CAAC;IAChE,sFAAsF;IACtF,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;CACjC;AAED;;GAEG;AACH,QAAA,MAAM,QAAQ,GAAI,wGASf,aAAa,gCAoOf,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -34,11 +34,31 @@ declare const _default: {
|
|
|
34
34
|
defaultMessage: string;
|
|
35
35
|
description: string;
|
|
36
36
|
};
|
|
37
|
+
notAvailable: {
|
|
38
|
+
id: string;
|
|
39
|
+
defaultMessage: string;
|
|
40
|
+
description: string;
|
|
41
|
+
};
|
|
37
42
|
goTo20YearView: {
|
|
38
43
|
id: string;
|
|
39
44
|
defaultMessage: string;
|
|
40
45
|
description: string;
|
|
41
46
|
};
|
|
47
|
+
outOfRangeBetween: {
|
|
48
|
+
id: string;
|
|
49
|
+
defaultMessage: string;
|
|
50
|
+
description: string;
|
|
51
|
+
};
|
|
52
|
+
outOfRangeAfter: {
|
|
53
|
+
id: string;
|
|
54
|
+
defaultMessage: string;
|
|
55
|
+
description: string;
|
|
56
|
+
};
|
|
57
|
+
outOfRangeBefore: {
|
|
58
|
+
id: string;
|
|
59
|
+
defaultMessage: string;
|
|
60
|
+
description: string;
|
|
61
|
+
};
|
|
42
62
|
};
|
|
43
63
|
export default _default;
|
|
44
64
|
//# sourceMappingURL=Calendar.messages.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Calendar.messages.d.ts","sourceRoot":"","sources":["../../../src/Calendar/Calendar.messages.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Calendar.messages.d.ts","sourceRoot":"","sources":["../../../src/Calendar/Calendar.messages.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,wBA8DG"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export interface DisabledDateRange {
|
|
2
|
+
start: Date;
|
|
3
|
+
end: Date;
|
|
4
|
+
}
|
|
5
|
+
export type WeekDayType = 'mon' | 'tue' | 'wed' | 'thu' | 'fri' | 'sat' | 'sun';
|
|
6
|
+
export interface DisabledRules {
|
|
7
|
+
/** Days of the week to disable (e.g. `['sat', 'sun']` for weekends). */
|
|
8
|
+
weekdays?: WeekDayType[];
|
|
9
|
+
/** Specific calendar dates to disable. */
|
|
10
|
+
dates?: Date[];
|
|
11
|
+
/** Inclusive date ranges to disable. */
|
|
12
|
+
ranges?: DisabledDateRange[];
|
|
13
|
+
/**
|
|
14
|
+
* Human-readable explanation shown in an InlinePrompt below the calendar grid when a
|
|
15
|
+
* disabled date is focused or clicked. Required for accessibility: it is linked to
|
|
16
|
+
* disabled cells via `aria-describedby` so screen reader users understand why a date
|
|
17
|
+
* is unavailable. Also used as the prompt text when `min`/`max` out-of-range dates
|
|
18
|
+
* are focused, overriding the built-in default message.
|
|
19
|
+
*/
|
|
20
|
+
reason: string;
|
|
21
|
+
}
|
|
22
|
+
export interface DateChangeMeta {
|
|
23
|
+
/** Whether the focused date is selectable (not disabled or out of range). */
|
|
24
|
+
isEnabled: boolean;
|
|
25
|
+
}
|
|
26
|
+
export interface OnDateSelectParams {
|
|
27
|
+
/** The date that was focused or clicked. */
|
|
28
|
+
date: Date;
|
|
29
|
+
/** Whether the date is selectable (not disabled or out of range). */
|
|
30
|
+
isEnabled: boolean;
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=Calendar.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Calendar.types.d.ts","sourceRoot":"","sources":["../../../src/Calendar/Calendar.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,IAAI,CAAC;IACZ,GAAG,EAAE,IAAI,CAAC;CACX;AAED,MAAM,MAAM,WAAW,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;AAEhF,MAAM,WAAW,aAAa;IAC5B,wEAAwE;IACxE,QAAQ,CAAC,EAAE,WAAW,EAAE,CAAC;IACzB,0CAA0C;IAC1C,KAAK,CAAC,EAAE,IAAI,EAAE,CAAC;IACf,wCAAwC;IACxC,MAAM,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAC7B;;;;;;OAMG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,cAAc;IAC7B,6EAA6E;IAC7E,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,kBAAkB;IACjC,4CAA4C;IAC5C,IAAI,EAAE,IAAI,CAAC;IACX,qEAAqE;IACrE,SAAS,EAAE,OAAO,CAAC;CACpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateHeader.d.ts","sourceRoot":"","sources":["../../../../src/Calendar/DateHeader/DateHeader.tsx"],"names":[],"mappings":"AAWA,UAAU,eAAe;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"DateHeader.d.ts","sourceRoot":"","sources":["../../../../src/Calendar/DateHeader/DateHeader.tsx"],"names":[],"mappings":"AAWA,UAAU,eAAe;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAuDzC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import { MonthFormat } from '../../common';
|
|
2
|
+
import type { DisabledRules } from '../Calendar.types';
|
|
2
3
|
declare const _default: import("react").FC<{
|
|
3
4
|
onSelect: (date: Date) => void;
|
|
4
5
|
max: Date | null;
|
|
5
6
|
min: Date | null;
|
|
6
|
-
monthFormat: `${MonthFormat}`;
|
|
7
7
|
onLabelClick: () => void;
|
|
8
|
+
disabledReasonId?: string | undefined;
|
|
8
9
|
selectedDate: Date | null;
|
|
10
|
+
focusedDate?: (Date | null) | undefined;
|
|
9
11
|
viewMonth: number;
|
|
10
12
|
viewYear: number;
|
|
13
|
+
disabledRules?: DisabledRules | undefined;
|
|
14
|
+
monthFormat: `${MonthFormat}`;
|
|
11
15
|
onViewDateUpdate: (date: {
|
|
12
16
|
month: number;
|
|
13
17
|
year: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DayCalendar.d.ts","sourceRoot":"","sources":["../../../../src/Calendar/DayCalendar/DayCalendar.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;;
|
|
1
|
+
{"version":3,"file":"DayCalendar.d.ts","sourceRoot":"","sources":["../../../../src/Calendar/DayCalendar/DayCalendar.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;;cAiB3C,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI;SANzB,IAAI,GAAG,IAAI;SADX,IAAI,GAAG,IAAI;kBAQF,MAAM,IAAI;uBAFL,MAAM;kBARX,IAAI,GAAG,IAAI;mBACX,IAAI,GAAG,IAAI;eAGd,MAAM;cACP,MAAM;oBAEA,aAAa;iBADhB,GAAG,WAAW,EAAE;sBAKX,CAAC,IAAI,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI;;AA8EnE,wBAAuC"}
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
+
import type { DisabledRules } from '../../Calendar.types';
|
|
1
2
|
declare const _default: import("react").FC<{
|
|
2
3
|
onSelect: (date: Date) => void;
|
|
3
4
|
max: Date | null;
|
|
4
5
|
min: Date | null;
|
|
6
|
+
disabledReasonId?: string | undefined;
|
|
5
7
|
selectedDate: Date | null;
|
|
8
|
+
focusedDate?: (Date | null) | undefined;
|
|
6
9
|
viewMonth: number;
|
|
7
10
|
viewYear: number;
|
|
11
|
+
disabledRules?: DisabledRules | undefined;
|
|
8
12
|
}>;
|
|
9
13
|
export default _default;
|
|
10
14
|
//# sourceMappingURL=DayCalendarTable.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DayCalendarTable.d.ts","sourceRoot":"","sources":["../../../../../src/Calendar/DayCalendar/Table/DayCalendarTable.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DayCalendarTable.d.ts","sourceRoot":"","sources":["../../../../../src/Calendar/DayCalendar/Table/DayCalendarTable.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;;cAqB9C,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI;SALzB,IAAI,GAAG,IAAI;SADX,IAAI,GAAG,IAAI;uBAKG,MAAM;kBAPX,IAAI,GAAG,IAAI;mBACX,IAAI,GAAG,IAAI;eAGd,MAAM;cACP,MAAM;oBACA,aAAa;;AAsK/B,wBAA4C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MonthCalendar.d.ts","sourceRoot":"","sources":["../../../../src/Calendar/MonthCalendar/MonthCalendar.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"MonthCalendar.d.ts","sourceRoot":"","sources":["../../../../src/Calendar/MonthCalendar/MonthCalendar.tsx"],"names":[],"mappings":";cAgBY,MAAM,IAAI;SAHf,IAAI,GAAG,IAAI;SADX,IAAI,GAAG,IAAI;kBAGF,MAAM;kBAEN,MAAM,IAAI;kBAPV,IAAI,GAAG,IAAI;mBACX,IAAI,GAAG,IAAI;cAGf,MAAM;sBAIE,CAAC,IAAI,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI;;AAwDrE,wBAAyC"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
interface MonthCalendarTableProps {
|
|
2
2
|
selectedDate: Date | null;
|
|
3
|
+
focusedDate?: Date | null;
|
|
3
4
|
min: Date | null;
|
|
4
5
|
max: Date | null;
|
|
5
6
|
viewYear: number;
|
|
6
7
|
placeholder?: string;
|
|
7
8
|
onSelect: (date: number) => void;
|
|
8
9
|
}
|
|
9
|
-
declare const MonthCalendarTable: ({ selectedDate, min, max, viewYear, placeholder, onSelect, }: MonthCalendarTableProps) => import("react").JSX.Element;
|
|
10
|
+
declare const MonthCalendarTable: ({ selectedDate, focusedDate, min, max, viewYear, placeholder, onSelect, }: MonthCalendarTableProps) => import("react").JSX.Element;
|
|
10
11
|
export default MonthCalendarTable;
|
|
11
12
|
//# sourceMappingURL=MonthCalendarTable.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MonthCalendarTable.d.ts","sourceRoot":"","sources":["../../../../../src/Calendar/MonthCalendar/Table/MonthCalendarTable.tsx"],"names":[],"mappings":"AAMA,UAAU,uBAAuB;IAC/B,YAAY,EAAE,IAAI,GAAG,IAAI,CAAC;IAC1B,GAAG,EAAE,IAAI,GAAG,IAAI,CAAC;IACjB,GAAG,EAAE,IAAI,GAAG,IAAI,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CAClC;AAMD,QAAA,MAAM,kBAAkB,GAAI,
|
|
1
|
+
{"version":3,"file":"MonthCalendarTable.d.ts","sourceRoot":"","sources":["../../../../../src/Calendar/MonthCalendar/Table/MonthCalendarTable.tsx"],"names":[],"mappings":"AAMA,UAAU,uBAAuB;IAC/B,YAAY,EAAE,IAAI,GAAG,IAAI,CAAC;IAC1B,WAAW,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAC1B,GAAG,EAAE,IAAI,GAAG,IAAI,CAAC;IACjB,GAAG,EAAE,IAAI,GAAG,IAAI,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CAClC;AAMD,QAAA,MAAM,kBAAkB,GAAI,2EAQzB,uBAAuB,gCAmEzB,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -4,11 +4,13 @@ interface TableLinkProps {
|
|
|
4
4
|
title?: string;
|
|
5
5
|
longTitle?: string;
|
|
6
6
|
active: boolean;
|
|
7
|
+
outOfRange: boolean;
|
|
7
8
|
disabled: boolean;
|
|
8
9
|
today: boolean;
|
|
9
10
|
autofocus?: boolean;
|
|
11
|
+
disabledReasonId?: string;
|
|
10
12
|
onClick: (item: number) => void;
|
|
11
13
|
}
|
|
12
|
-
declare const TableLink: ({ item, type, title, longTitle, active, disabled, today, autofocus, onClick, }: TableLinkProps) => import("react").JSX.Element;
|
|
14
|
+
declare const TableLink: ({ item, type, title, longTitle, active, outOfRange, disabled, today, autofocus, disabledReasonId, onClick, }: TableLinkProps) => import("react").JSX.Element;
|
|
13
15
|
export default TableLink;
|
|
14
16
|
//# sourceMappingURL=TableLink.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableLink.d.ts","sourceRoot":"","sources":["../../../../src/Calendar/TableLink/TableLink.tsx"],"names":[],"mappings":"AAOA,UAAU,cAAc;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,KAAK,GAAG,OAAO,GAAG,MAAM,CAAC;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,OAAO,CAAC;IAChB,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,OAAO,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACjC;AAED,QAAA,MAAM,SAAS,GAAI,8GAYhB,cAAc,gCAwDhB,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Calendar/TableLink/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
interface YearCalendarTableProps {
|
|
2
2
|
selectedDate: Date | null;
|
|
3
|
+
focusedDate?: Date | null;
|
|
3
4
|
min: Date | null;
|
|
4
5
|
max: Date | null;
|
|
5
6
|
viewYear: number;
|
|
6
7
|
placeholder?: string;
|
|
7
8
|
onSelect: (year: number) => void;
|
|
8
9
|
}
|
|
9
|
-
declare const YearCalendarTable: ({ selectedDate, min, max, viewYear, placeholder, onSelect, }: YearCalendarTableProps) => import("react").JSX.Element;
|
|
10
|
+
declare const YearCalendarTable: ({ selectedDate, focusedDate, min, max, viewYear, placeholder, onSelect, }: YearCalendarTableProps) => import("react").JSX.Element;
|
|
10
11
|
export default YearCalendarTable;
|
|
11
12
|
//# sourceMappingURL=YearCalendarTable.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"YearCalendarTable.d.ts","sourceRoot":"","sources":["../../../../../src/Calendar/YearCalendar/Table/YearCalendarTable.tsx"],"names":[],"mappings":"AAMA,UAAU,sBAAsB;IAC9B,YAAY,EAAE,IAAI,GAAG,IAAI,CAAC;IAC1B,GAAG,EAAE,IAAI,GAAG,IAAI,CAAC;IACjB,GAAG,EAAE,IAAI,GAAG,IAAI,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CAClC;AAMD,QAAA,MAAM,iBAAiB,GAAI,
|
|
1
|
+
{"version":3,"file":"YearCalendarTable.d.ts","sourceRoot":"","sources":["../../../../../src/Calendar/YearCalendar/Table/YearCalendarTable.tsx"],"names":[],"mappings":"AAMA,UAAU,sBAAsB;IAC9B,YAAY,EAAE,IAAI,GAAG,IAAI,CAAC;IAC1B,WAAW,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAC1B,GAAG,EAAE,IAAI,GAAG,IAAI,CAAC;IACjB,GAAG,EAAE,IAAI,GAAG,IAAI,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CAClC;AAMD,QAAA,MAAM,iBAAiB,GAAI,2EAQxB,sBAAsB,gCA+DxB,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"YearCalendar.d.ts","sourceRoot":"","sources":["../../../../src/Calendar/YearCalendar/YearCalendar.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"YearCalendar.d.ts","sourceRoot":"","sources":["../../../../src/Calendar/YearCalendar/YearCalendar.tsx"],"names":[],"mappings":";cAeY,MAAM,IAAI;SAHf,IAAI,GAAG,IAAI;SADX,IAAI,GAAG,IAAI;kBAGF,MAAM;kBALN,IAAI,GAAG,IAAI;mBACX,IAAI,GAAG,IAAI;cAGf,MAAM;sBAGE,CAAC,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI;;AAsDpD,wBAAwC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Calendar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Calendar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,YAAY,EACV,cAAc,EACd,aAAa,EACb,iBAAiB,EACjB,WAAW,EACX,kBAAkB,GACnB,MAAM,kBAAkB,CAAC"}
|