@transferwise/components 0.0.0-experimental-fa3aa98 → 0.0.0-experimental-f4a328f
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 +16 -94
- package/build/Calendar/Calendar.js.map +1 -1
- package/build/Calendar/Calendar.messages.js +0 -12
- package/build/Calendar/Calendar.messages.js.map +1 -1
- package/build/Calendar/Calendar.messages.mjs +0 -12
- package/build/Calendar/Calendar.messages.mjs.map +1 -1
- package/build/Calendar/Calendar.mjs +17 -95
- package/build/Calendar/Calendar.mjs.map +1 -1
- package/build/Calendar/DateHeader/DateHeader.js +1 -5
- package/build/Calendar/DateHeader/DateHeader.js.map +1 -1
- package/build/Calendar/DateHeader/DateHeader.mjs +1 -5
- package/build/Calendar/DateHeader/DateHeader.mjs.map +1 -1
- package/build/Calendar/DayCalendar/DayCalendar.js +0 -14
- package/build/Calendar/DayCalendar/DayCalendar.js.map +1 -1
- package/build/Calendar/DayCalendar/DayCalendar.mjs +0 -14
- package/build/Calendar/DayCalendar/DayCalendar.mjs.map +1 -1
- package/build/Calendar/DayCalendar/Table/DayCalendarTable.js +19 -53
- package/build/Calendar/DayCalendar/Table/DayCalendarTable.js.map +1 -1
- package/build/Calendar/DayCalendar/Table/DayCalendarTable.mjs +19 -53
- package/build/Calendar/DayCalendar/Table/DayCalendarTable.mjs.map +1 -1
- package/build/Calendar/MonthCalendar/MonthCalendar.js +0 -6
- package/build/Calendar/MonthCalendar/MonthCalendar.js.map +1 -1
- package/build/Calendar/MonthCalendar/MonthCalendar.mjs +0 -6
- package/build/Calendar/MonthCalendar/MonthCalendar.mjs.map +1 -1
- package/build/Calendar/MonthCalendar/Table/MonthCalendarTable.js +3 -8
- package/build/Calendar/MonthCalendar/Table/MonthCalendarTable.js.map +1 -1
- package/build/Calendar/MonthCalendar/Table/MonthCalendarTable.mjs +3 -8
- package/build/Calendar/MonthCalendar/Table/MonthCalendarTable.mjs.map +1 -1
- package/build/Calendar/YearCalendar/Table/YearCalendarTable.js +3 -8
- package/build/Calendar/YearCalendar/Table/YearCalendarTable.js.map +1 -1
- package/build/Calendar/YearCalendar/Table/YearCalendarTable.mjs +3 -8
- package/build/Calendar/YearCalendar/Table/YearCalendarTable.mjs.map +1 -1
- package/build/Calendar/YearCalendar/YearCalendar.js +0 -7
- package/build/Calendar/YearCalendar/YearCalendar.js.map +1 -1
- package/build/Calendar/YearCalendar/YearCalendar.mjs +0 -7
- package/build/Calendar/YearCalendar/YearCalendar.mjs.map +1 -1
- package/build/Calendar/{TableLink → tableLink}/TableLink.js +11 -26
- package/build/Calendar/tableLink/TableLink.js.map +1 -0
- package/build/Calendar/{TableLink → tableLink}/TableLink.mjs +11 -26
- package/build/Calendar/tableLink/TableLink.mjs.map +1 -0
- package/build/DateLookup/DateLookup.js +9 -20
- package/build/DateLookup/DateLookup.js.map +1 -1
- package/build/DateLookup/DateLookup.mjs +9 -20
- package/build/DateLookup/DateLookup.mjs.map +1 -1
- package/build/Markup/Markup.js +137 -0
- package/build/Markup/Markup.js.map +1 -0
- package/build/Markup/Markup.mjs +132 -0
- package/build/Markup/Markup.mjs.map +1 -0
- package/build/Markup/constants.js +36 -0
- package/build/Markup/constants.js.map +1 -0
- package/build/Markup/constants.mjs +29 -0
- package/build/Markup/constants.mjs.map +1 -0
- package/build/Markup/utils/parseMarkup.js +236 -0
- package/build/Markup/utils/parseMarkup.js.map +1 -0
- package/build/Markup/utils/parseMarkup.mjs +231 -0
- package/build/Markup/utils/parseMarkup.mjs.map +1 -0
- package/build/Markup/utils/sanitise.js +114 -0
- package/build/Markup/utils/sanitise.js.map +1 -0
- package/build/Markup/utils/sanitise.mjs +111 -0
- package/build/Markup/utils/sanitise.mjs.map +1 -0
- package/build/i18n/en.json +0 -4
- package/build/i18n/en.json.js +0 -4
- package/build/i18n/en.json.js.map +1 -1
- package/build/i18n/en.json.mjs +0 -4
- package/build/i18n/en.json.mjs.map +1 -1
- package/build/index.js +4 -2
- package/build/index.js.map +1 -1
- package/build/index.mjs +2 -1
- package/build/index.mjs.map +1 -1
- package/build/main.css +78 -123
- package/build/styles/Calendar/Calendar.css +37 -112
- package/build/styles/Markup/Markup.css +28 -0
- package/build/styles/Markup/_stories/Vulnerability/Vulnerability.css +69 -0
- package/build/styles/main.css +78 -123
- package/build/types/Body/Body.d.ts +2 -2
- package/build/types/Calendar/Calendar.d.ts +3 -16
- package/build/types/Calendar/Calendar.d.ts.map +1 -1
- package/build/types/Calendar/Calendar.messages.d.ts +0 -20
- package/build/types/Calendar/Calendar.messages.d.ts.map +1 -1
- package/build/types/Calendar/DateHeader/DateHeader.d.ts +0 -2
- package/build/types/Calendar/DateHeader/DateHeader.d.ts.map +1 -1
- package/build/types/Calendar/DayCalendar/DayCalendar.d.ts +1 -5
- package/build/types/Calendar/DayCalendar/DayCalendar.d.ts.map +1 -1
- package/build/types/Calendar/DayCalendar/Table/DayCalendarTable.d.ts +0 -4
- package/build/types/Calendar/DayCalendar/Table/DayCalendarTable.d.ts.map +1 -1
- package/build/types/Calendar/MonthCalendar/MonthCalendar.d.ts +0 -1
- package/build/types/Calendar/MonthCalendar/MonthCalendar.d.ts.map +1 -1
- package/build/types/Calendar/MonthCalendar/Table/MonthCalendarTable.d.ts +1 -2
- package/build/types/Calendar/MonthCalendar/Table/MonthCalendarTable.d.ts.map +1 -1
- package/build/types/Calendar/YearCalendar/Table/YearCalendarTable.d.ts +1 -2
- package/build/types/Calendar/YearCalendar/Table/YearCalendarTable.d.ts.map +1 -1
- package/build/types/Calendar/YearCalendar/YearCalendar.d.ts +0 -1
- package/build/types/Calendar/YearCalendar/YearCalendar.d.ts.map +1 -1
- package/build/types/Calendar/index.d.ts +0 -1
- package/build/types/Calendar/index.d.ts.map +1 -1
- package/build/types/Calendar/{TableLink → tableLink}/TableLink.d.ts +1 -3
- 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/DateLookup/DateLookup.d.ts +5 -24
- package/build/types/DateLookup/DateLookup.d.ts.map +1 -1
- package/build/types/DateLookup/index.d.ts +0 -1
- package/build/types/DateLookup/index.d.ts.map +1 -1
- package/build/types/IconButton/IconButton.d.ts +1 -1
- package/build/types/Markup/Markup.d.ts +18 -0
- package/build/types/Markup/Markup.d.ts.map +1 -0
- package/build/types/Markup/Markup.types.d.ts +77 -0
- package/build/types/Markup/Markup.types.d.ts.map +1 -0
- package/build/types/Markup/_stories/Vulnerability/Vulnerability.d.ts +12 -0
- package/build/types/Markup/_stories/Vulnerability/Vulnerability.d.ts.map +1 -0
- package/build/types/Markup/constants.d.ts +20 -0
- package/build/types/Markup/constants.d.ts.map +1 -0
- package/build/types/Markup/index.d.ts +3 -0
- package/build/types/Markup/index.d.ts.map +1 -0
- package/build/types/Markup/utils/parseMarkup.d.ts +8 -0
- package/build/types/Markup/utils/parseMarkup.d.ts.map +1 -0
- package/build/types/Markup/utils/sanitise.d.ts +4 -0
- package/build/types/Markup/utils/sanitise.d.ts.map +1 -0
- package/build/types/Title/Title.d.ts +2 -2
- package/build/types/Upload/Steps/UploadImageStep/UploadImageStep.d.ts +1 -1
- package/build/types/UploadInput/UploadItem/UploadItemLink.d.ts +1 -1
- package/build/types/common/DateUtils/index.d.ts +0 -2
- package/build/types/common/DateUtils/index.d.ts.map +1 -1
- package/build/types/index.d.ts +4 -3
- package/build/types/index.d.ts.map +1 -1
- package/build/types/test-utils/index.d.ts +0 -8
- package/build/types/test-utils/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/Calendar/Calendar.css +37 -112
- package/src/Calendar/Calendar.less +35 -5
- package/src/Calendar/Calendar.messages.ts +0 -21
- package/src/Calendar/Calendar.test.tsx +27 -288
- package/src/Calendar/Calendar.tsx +19 -136
- package/src/Calendar/DateHeader/DateHeader.tsx +0 -6
- package/src/Calendar/DayCalendar/DayCalendar.tsx +1 -33
- package/src/Calendar/DayCalendar/Table/DayCalendarTable.tsx +28 -62
- package/src/Calendar/MonthCalendar/MonthCalendar.tsx +0 -8
- package/src/Calendar/MonthCalendar/Table/MonthCalendarTable.tsx +3 -15
- package/src/Calendar/YearCalendar/Table/YearCalendarTable.tsx +3 -15
- package/src/Calendar/YearCalendar/YearCalendar.tsx +0 -9
- package/src/Calendar/_stories/Calendar.story.tsx +4 -138
- package/src/Calendar/index.ts +0 -7
- package/src/Calendar/{TableLink → tableLink}/TableLink.tsx +14 -29
- package/src/DateLookup/DateLookup.test.tsx +37 -34
- package/src/DateLookup/DateLookup.tsx +13 -37
- package/src/DateLookup/_stories/DateLookup.story.tsx +2 -124
- package/src/DateLookup/index.ts +0 -6
- package/src/Markup/Markup.css +28 -0
- package/src/Markup/Markup.injection.test.tsx +163 -0
- package/src/Markup/Markup.less +29 -0
- package/src/Markup/Markup.test.tsx +463 -0
- package/src/Markup/Markup.tsx +169 -0
- package/src/Markup/Markup.types.ts +62 -0
- package/src/Markup/_stories/Markup.docs.mdx +75 -0
- package/src/Markup/_stories/Markup.security.docs.mdx +343 -0
- package/src/Markup/_stories/Markup.story.tsx +266 -0
- package/src/Markup/_stories/Vulnerability/Vulnerability.css +69 -0
- package/src/Markup/_stories/Vulnerability/Vulnerability.tsx +30 -0
- package/src/Markup/constants.ts +41 -0
- package/src/Markup/index.ts +2 -0
- package/src/Markup/utils/parseMarkup.test.ts +706 -0
- package/src/Markup/utils/parseMarkup.ts +234 -0
- package/src/Markup/utils/sanitise.test.ts +497 -0
- package/src/Markup/utils/sanitise.ts +133 -0
- package/src/common/DateUtils/index.ts +0 -2
- package/src/i18n/en.json +0 -4
- package/src/index.ts +4 -3
- package/src/main.css +78 -123
- package/src/main.less +1 -0
- package/build/Calendar/TableLink/TableLink.js.map +0 -1
- package/build/Calendar/TableLink/TableLink.mjs.map +0 -1
- package/build/common/DateUtils/hasDisabledDatesInMonth/hasDisabledDatesInMonth.js +0 -33
- package/build/common/DateUtils/hasDisabledDatesInMonth/hasDisabledDatesInMonth.js.map +0 -1
- package/build/common/DateUtils/hasDisabledDatesInMonth/hasDisabledDatesInMonth.mjs +0 -31
- package/build/common/DateUtils/hasDisabledDatesInMonth/hasDisabledDatesInMonth.mjs.map +0 -1
- package/build/common/DateUtils/isDateDisabled/isDateDisabled.js +0 -40
- package/build/common/DateUtils/isDateDisabled/isDateDisabled.js.map +0 -1
- package/build/common/DateUtils/isDateDisabled/isDateDisabled.mjs +0 -38
- package/build/common/DateUtils/isDateDisabled/isDateDisabled.mjs.map +0 -1
- package/build/styles/Calendar/TableLink/TableLink.css +0 -115
- package/build/types/Calendar/Calendar.types.d.ts +0 -32
- package/build/types/Calendar/Calendar.types.d.ts.map +0 -1
- package/build/types/Calendar/TableLink/TableLink.d.ts.map +0 -1
- package/build/types/Calendar/TableLink/index.d.ts.map +0 -1
- package/build/types/common/DateUtils/hasDisabledDatesInMonth/hasDisabledDatesInMonth.d.ts +0 -3
- package/build/types/common/DateUtils/hasDisabledDatesInMonth/hasDisabledDatesInMonth.d.ts.map +0 -1
- package/build/types/common/DateUtils/isDateDisabled/isDateDisabled.d.ts +0 -3
- package/build/types/common/DateUtils/isDateDisabled/isDateDisabled.d.ts.map +0 -1
- package/src/Calendar/Calendar.disabledDates.test.tsx +0 -518
- package/src/Calendar/Calendar.types.ts +0 -35
- package/src/Calendar/TableLink/TableLink.css +0 -115
- package/src/Calendar/TableLink/TableLink.less +0 -68
- package/src/Calendar/_stories/Calendar.accessibility.docs.mdx +0 -118
- package/src/Calendar/_stories/Calendar.test.story.tsx +0 -74
- package/src/DateLookup/DateLookup.disabledDates.test.tsx +0 -293
- package/src/DateLookup/_stories/DateLookup.accessibility.docs.mdx +0 -108
- package/src/common/DateUtils/hasDisabledDatesInMonth/hasDisabledDatesInMonth.test.ts +0 -98
- package/src/common/DateUtils/hasDisabledDatesInMonth/hasDisabledDatesInMonth.ts +0 -45
- package/src/common/DateUtils/isDateDisabled/isDateDisabled.test.ts +0 -169
- package/src/common/DateUtils/isDateDisabled/isDateDisabled.ts +0 -59
- /package/build/types/Calendar/{TableLink → tableLink}/index.d.ts +0 -0
- /package/src/Calendar/{TableLink → tableLink}/index.ts +0 -0
package/build/styles/main.css
CHANGED
|
@@ -27269,12 +27269,46 @@ a[data-toggle="tooltip"] {
|
|
|
27269
27269
|
pointer-events: auto;
|
|
27270
27270
|
}
|
|
27271
27271
|
|
|
27272
|
-
.
|
|
27273
|
-
|
|
27274
|
-
|
|
27272
|
+
.tw-date-lookup-calendar {
|
|
27273
|
+
min-width: 300px;
|
|
27274
|
+
text-align: center;
|
|
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 {
|
|
27275
27307
|
width: 100%;
|
|
27276
27308
|
padding: 4px 0;
|
|
27277
27309
|
padding: var(--size-4) 0;
|
|
27310
|
+
color: #0097c7;
|
|
27311
|
+
color: var(--color-content-accent);
|
|
27278
27312
|
border: transparent;
|
|
27279
27313
|
border-radius: 10px;
|
|
27280
27314
|
border-radius: var(--radius-small);
|
|
@@ -27286,92 +27320,12 @@ a[data-toggle="tooltip"] {
|
|
|
27286
27320
|
}
|
|
27287
27321
|
|
|
27288
27322
|
@media (max-width: 320px) {
|
|
27289
|
-
.
|
|
27290
|
-
.wds-Calendar__option--month,
|
|
27291
|
-
.wds-Calendar__option--year {
|
|
27323
|
+
.tw-date-lookup-calendar > tbody > tr > td button {
|
|
27292
27324
|
padding: 0;
|
|
27293
27325
|
}
|
|
27294
27326
|
}
|
|
27295
27327
|
|
|
27296
|
-
.
|
|
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 {
|
|
27328
|
+
.tw-date-lookup-calendar > tbody > tr > td button.tw-date-lookup-day-option {
|
|
27375
27329
|
height: 40px;
|
|
27376
27330
|
height: var(--size-40);
|
|
27377
27331
|
border-radius: 9999px;
|
|
@@ -27386,53 +27340,19 @@ a[data-toggle="tooltip"] {
|
|
|
27386
27340
|
justify-content: center;
|
|
27387
27341
|
}
|
|
27388
27342
|
|
|
27389
|
-
.
|
|
27343
|
+
.tw-date-lookup-calendar > tbody > tr > td button.tw-date-lookup-day-option.today {
|
|
27390
27344
|
-webkit-text-decoration: underline;
|
|
27391
27345
|
text-decoration: underline;
|
|
27392
27346
|
text-decoration-thickness: 2px;
|
|
27393
27347
|
text-underline-offset: 4px;
|
|
27394
27348
|
}
|
|
27395
27349
|
|
|
27396
|
-
.tw-date-lookup-calendar
|
|
27397
|
-
|
|
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"]) {
|
|
27350
|
+
.tw-date-lookup-calendar > tbody > tr > td:not(.disabled):not(:disabled) button.show-focus,
|
|
27351
|
+
.tw-date-lookup-calendar > tbody > tr > td:hover button:not(.disabled):not(:disabled) {
|
|
27432
27352
|
background-color: var(--color-background-screen-hover);
|
|
27433
27353
|
}
|
|
27434
27354
|
|
|
27435
|
-
.tw-date-lookup-calendar > tbody > tr > td:not(.disabled):not(:disabled) button.active
|
|
27355
|
+
.tw-date-lookup-calendar > tbody > tr > td:not(.disabled):not(:disabled) button.active {
|
|
27436
27356
|
background-color: var(--color-interactive-primary);
|
|
27437
27357
|
color: var(--color-interactive-contrast);
|
|
27438
27358
|
}
|
|
@@ -30967,6 +30887,41 @@ button.np-link {
|
|
|
30967
30887
|
height: var(--wds-logo-height);
|
|
30968
30888
|
}
|
|
30969
30889
|
|
|
30890
|
+
.wds-markup-emphasis {
|
|
30891
|
+
font-weight: 600;
|
|
30892
|
+
font-weight: var(--font-weight-semi-bold);
|
|
30893
|
+
font-style: normal;
|
|
30894
|
+
}
|
|
30895
|
+
|
|
30896
|
+
.wds-markup-emphasis--important {
|
|
30897
|
+
color: #37517e;
|
|
30898
|
+
color: var(--color-content-primary);
|
|
30899
|
+
}
|
|
30900
|
+
|
|
30901
|
+
.wds-markup-emphasis--positive {
|
|
30902
|
+
color: #008026;
|
|
30903
|
+
color: var(--color-content-positive);
|
|
30904
|
+
}
|
|
30905
|
+
|
|
30906
|
+
.wds-markup-emphasis--negative {
|
|
30907
|
+
color: #cf2929;
|
|
30908
|
+
color: var(--color-content-negative);
|
|
30909
|
+
}
|
|
30910
|
+
|
|
30911
|
+
.wds-markup-strong {
|
|
30912
|
+
font-weight: 600;
|
|
30913
|
+
font-weight: var(--font-weight-semi-bold);
|
|
30914
|
+
}
|
|
30915
|
+
|
|
30916
|
+
.wds-markup-strikethrough {
|
|
30917
|
+
-webkit-text-decoration: line-through;
|
|
30918
|
+
text-decoration: line-through;
|
|
30919
|
+
}
|
|
30920
|
+
|
|
30921
|
+
.wds-markup-paragraph {
|
|
30922
|
+
margin: 0;
|
|
30923
|
+
}
|
|
30924
|
+
|
|
30970
30925
|
.tw-modal--scrollable {
|
|
30971
30926
|
max-height: 100%;
|
|
30972
30927
|
/* mobile viewport bug fix */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import { BodyTypes } from '../common/PropsValues/typography';
|
|
3
|
-
declare const Body: import("react").ForwardRefExoticComponent<HTMLAttributes<
|
|
3
|
+
declare const Body: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLSpanElement | HTMLParagraphElement> & {
|
|
4
4
|
/** @default 'body-default' */
|
|
5
5
|
type?: BodyTypes;
|
|
6
6
|
/** @default 'div' */
|
|
@@ -10,6 +10,6 @@ declare const Body: import("react").ForwardRefExoticComponent<HTMLAttributes<HTM
|
|
|
10
10
|
* @default false
|
|
11
11
|
*/
|
|
12
12
|
preserveNewlines?: boolean;
|
|
13
|
-
} & import("react").RefAttributes<HTMLDivElement |
|
|
13
|
+
} & import("react").RefAttributes<HTMLDivElement | HTMLSpanElement | HTMLParagraphElement | null>>;
|
|
14
14
|
export default Body;
|
|
15
15
|
//# sourceMappingURL=Body.d.ts.map
|
|
@@ -1,26 +1,13 @@
|
|
|
1
1
|
import { MonthFormat } from '../common';
|
|
2
|
-
import type { DateChangeMeta, DisabledRules } from './Calendar.types';
|
|
3
2
|
export interface CalendarProps {
|
|
4
|
-
/** The currently selected date, or `null` for no selection. */
|
|
5
3
|
value: Date | null;
|
|
6
|
-
/** Earliest selectable date (inclusive). Dates before this are interactive but not selectable, and show a boundary prompt. */
|
|
7
4
|
min?: Date | null;
|
|
8
|
-
/** Latest selectable date (inclusive). Dates after this are interactive but not selectable, and show a boundary prompt. */
|
|
9
5
|
max?: Date | null;
|
|
10
|
-
/** Month name format in the header. Defaults to `'long'` (e.g. "January"). */
|
|
11
6
|
monthFormat?: `${MonthFormat}`;
|
|
12
|
-
/** Placeholder text shown in the month/year cells when no date is selected. */
|
|
13
7
|
placeholder?: string;
|
|
14
|
-
|
|
15
|
-
|
|
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 | null) => void;
|
|
8
|
+
onChange: (date: Date | null) => void;
|
|
9
|
+
onSelect?: (date: Date) => void;
|
|
20
10
|
}
|
|
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;
|
|
11
|
+
declare const Calendar: ({ value, min: minProp, max: maxProp, monthFormat, placeholder, onChange, onSelect, }: CalendarProps) => import("react").JSX.Element;
|
|
25
12
|
export default Calendar;
|
|
26
13
|
//# 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":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAOxC,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,GAAG,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,GAAG,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,WAAW,CAAC,EAAE,GAAG,WAAW,EAAE,CAAC;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,KAAK,IAAI,CAAC;IACtC,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;CACjC;AAED,QAAA,MAAM,QAAQ,GAAI,sFAQf,aAAa,gCAuIf,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -34,31 +34,11 @@ 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
|
-
};
|
|
42
37
|
goTo20YearView: {
|
|
43
38
|
id: string;
|
|
44
39
|
defaultMessage: string;
|
|
45
40
|
description: string;
|
|
46
41
|
};
|
|
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
|
-
};
|
|
62
42
|
};
|
|
63
43
|
export default _default;
|
|
64
44
|
//# 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,wBAyCG"}
|
|
@@ -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;CAClB;AAED,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAmDzC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
import { MonthFormat } from '../../common';
|
|
2
|
-
import type { DisabledRules } from '../Calendar.types';
|
|
3
2
|
declare const _default: import("react").FC<{
|
|
4
3
|
onSelect: (date: Date) => void;
|
|
5
4
|
max: Date | null;
|
|
6
5
|
min: Date | null;
|
|
6
|
+
monthFormat: `${MonthFormat}`;
|
|
7
7
|
onLabelClick: () => void;
|
|
8
|
-
disabledReasonId?: string | undefined;
|
|
9
8
|
selectedDate: Date | null;
|
|
10
|
-
focusedDate?: (Date | null) | undefined;
|
|
11
9
|
viewMonth: number;
|
|
12
10
|
viewYear: number;
|
|
13
|
-
disabledRules?: DisabledRules | undefined;
|
|
14
|
-
monthFormat: `${MonthFormat}`;
|
|
15
11
|
onViewDateUpdate: (date: {
|
|
16
12
|
month: number;
|
|
17
13
|
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;;cAc/B,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI;SAJzB,IAAI,GAAG,IAAI;SADX,IAAI,GAAG,IAAI;iBAIH,GAAG,WAAW,EAAE;kBAEf,MAAM,IAAI;kBAPV,IAAI,GAAG,IAAI;eAGd,MAAM;cACP,MAAM;sBAIE,CAAC,IAAI,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI;;AAkDnE,wBAAuC"}
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
import type { DisabledRules } from '../../Calendar.types';
|
|
2
1
|
declare const _default: import("react").FC<{
|
|
3
2
|
onSelect: (date: Date) => void;
|
|
4
3
|
max: Date | null;
|
|
5
4
|
min: Date | null;
|
|
6
|
-
disabledReasonId?: string | undefined;
|
|
7
5
|
selectedDate: Date | null;
|
|
8
|
-
focusedDate?: (Date | null) | undefined;
|
|
9
6
|
viewMonth: number;
|
|
10
7
|
viewYear: number;
|
|
11
|
-
disabledRules?: DisabledRules | undefined;
|
|
12
8
|
}>;
|
|
13
9
|
export default _default;
|
|
14
10
|
//# 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":";cAiBY,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI;SAHzB,IAAI,GAAG,IAAI;SADX,IAAI,GAAG,IAAI;kBADF,IAAI,GAAG,IAAI;eAGd,MAAM;cACP,MAAM;;AA4IlB,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":";cAeY,MAAM,IAAI;SAHf,IAAI,GAAG,IAAI;SADX,IAAI,GAAG,IAAI;kBAGF,MAAM;kBAEN,MAAM,IAAI;kBANV,IAAI,GAAG,IAAI;cAGf,MAAM;sBAIE,CAAC,IAAI,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI;;AAiDrE,wBAAyC"}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
interface MonthCalendarTableProps {
|
|
2
2
|
selectedDate: Date | null;
|
|
3
|
-
focusedDate?: Date | null;
|
|
4
3
|
min: Date | null;
|
|
5
4
|
max: Date | null;
|
|
6
5
|
viewYear: number;
|
|
7
6
|
placeholder?: string;
|
|
8
7
|
onSelect: (date: number) => void;
|
|
9
8
|
}
|
|
10
|
-
declare const MonthCalendarTable: ({ selectedDate,
|
|
9
|
+
declare const MonthCalendarTable: ({ selectedDate, min, max, viewYear, placeholder, onSelect, }: MonthCalendarTableProps) => import("react").JSX.Element;
|
|
11
10
|
export default MonthCalendarTable;
|
|
12
11
|
//# 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,
|
|
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,8DAOzB,uBAAuB,gCAyDzB,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
interface YearCalendarTableProps {
|
|
2
2
|
selectedDate: Date | null;
|
|
3
|
-
focusedDate?: Date | null;
|
|
4
3
|
min: Date | null;
|
|
5
4
|
max: Date | null;
|
|
6
5
|
viewYear: number;
|
|
7
6
|
placeholder?: string;
|
|
8
7
|
onSelect: (year: number) => void;
|
|
9
8
|
}
|
|
10
|
-
declare const YearCalendarTable: ({ selectedDate,
|
|
9
|
+
declare const YearCalendarTable: ({ selectedDate, min, max, viewYear, placeholder, onSelect, }: YearCalendarTableProps) => import("react").JSX.Element;
|
|
11
10
|
export default YearCalendarTable;
|
|
12
11
|
//# 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,
|
|
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,8DAOxB,sBAAsB,gCAqDxB,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":";cAcY,MAAM,IAAI;SAHf,IAAI,GAAG,IAAI;SADX,IAAI,GAAG,IAAI;kBAGF,MAAM;kBAJN,IAAI,GAAG,IAAI;cAGf,MAAM;sBAGE,CAAC,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI;;AA8CpD,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"}
|
|
@@ -4,13 +4,11 @@ interface TableLinkProps {
|
|
|
4
4
|
title?: string;
|
|
5
5
|
longTitle?: string;
|
|
6
6
|
active: boolean;
|
|
7
|
-
outOfRange: boolean;
|
|
8
7
|
disabled: boolean;
|
|
9
8
|
today: boolean;
|
|
10
9
|
autofocus?: boolean;
|
|
11
|
-
disabledReasonId?: string;
|
|
12
10
|
onClick: (item: number) => void;
|
|
13
11
|
}
|
|
14
|
-
declare const TableLink: ({ item, type, title, longTitle, active,
|
|
12
|
+
declare const TableLink: ({ item, type, title, longTitle, active, disabled, today, autofocus, onClick, }: TableLinkProps) => import("react").JSX.Element;
|
|
15
13
|
export default TableLink;
|
|
16
14
|
//# sourceMappingURL=TableLink.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableLink.d.ts","sourceRoot":"","sources":["../../../../src/Calendar/tableLink/TableLink.tsx"],"names":[],"mappings":"AAMA,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,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,OAAO,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACjC;AAED,QAAA,MAAM,SAAS,GAAI,gFAUhB,cAAc,gCA8ChB,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,39 +1,20 @@
|
|
|
1
1
|
import { PureComponent, KeyboardEvent } from 'react';
|
|
2
|
-
import type { DateChangeMeta, DisabledRules, OnDateSelectParams } from '../Calendar/Calendar.types';
|
|
3
2
|
import { Size, MonthFormat, type SizeSmall, type SizeMedium, type SizeLarge } from '../common';
|
|
4
3
|
import { WithInputAttributesProps } from '../Inputs/contexts';
|
|
5
4
|
export interface DateLookupProps {
|
|
6
|
-
/** The currently selected date, or `null` for no selection. */
|
|
7
|
-
value: Date | null;
|
|
8
|
-
/** Called when an enabled date is confirmed. Receives `null` when the value is cleared. */
|
|
9
|
-
onChange: (date: Date | null) => void;
|
|
10
|
-
/** HTML `id` applied to the trigger button, used for label association. */
|
|
11
5
|
id?: string;
|
|
12
|
-
|
|
6
|
+
value: Date | null;
|
|
13
7
|
min?: Date | null;
|
|
14
|
-
/** Latest selectable date (inclusive). Dates after this are interactive but not selectable, and show a boundary prompt. */
|
|
15
8
|
max?: Date | null;
|
|
16
|
-
/** Size of the trigger input. Defaults to `'md'`. */
|
|
17
9
|
size?: SizeSmall | SizeMedium | SizeLarge;
|
|
18
|
-
|
|
10
|
+
placeholder?: string;
|
|
19
11
|
label?: string;
|
|
20
|
-
/** ID of an external element that labels the trigger, for use inside custom label contexts. */
|
|
21
12
|
'aria-labelledby'?: string;
|
|
22
|
-
/** Placeholder text shown in the trigger when no date is selected. */
|
|
23
|
-
placeholder?: string;
|
|
24
|
-
/** Month name format in the calendar header. Defaults to `'long'` (e.g. "January"). */
|
|
25
13
|
monthFormat?: `${MonthFormat}`;
|
|
26
|
-
/** When `true`, the trigger and calendar are non-interactive. */
|
|
27
14
|
disabled?: boolean;
|
|
28
|
-
/** When `true`, a clear button is shown in the trigger to reset the value to `null`. */
|
|
29
15
|
clearable?: boolean;
|
|
30
|
-
|
|
31
|
-
disabledRules?: DisabledRules;
|
|
32
|
-
/** Called whenever any date is focused or clicked, including disabled and out-of-range dates. `isEnabled` is `false` when the date is not selectable. */
|
|
33
|
-
onDateSelect?: (params: OnDateSelectParams) => void;
|
|
34
|
-
/** Called when the calendar panel opens. */
|
|
16
|
+
onChange: (date: Date | null) => void;
|
|
35
17
|
onFocus?: () => void;
|
|
36
|
-
/** Called when the calendar panel closes. */
|
|
37
18
|
onBlur?: () => void;
|
|
38
19
|
}
|
|
39
20
|
type DateLookupPropsWithInputAttributes = DateLookupProps & Partial<WithInputAttributesProps>;
|
|
@@ -62,8 +43,8 @@ declare class DateLookup extends PureComponent<DateLookupPropsWithInputAttribute
|
|
|
62
43
|
close: () => void;
|
|
63
44
|
handleKeyDown: (event: KeyboardEvent<HTMLDivElement>) => void;
|
|
64
45
|
focusOn: (preferredElement: string, fallbackElement?: string) => void;
|
|
65
|
-
handleDateChange: (date: Date | null
|
|
66
|
-
handleDateSelect: (date: Date
|
|
46
|
+
handleDateChange: (date: Date | null) => void;
|
|
47
|
+
handleDateSelect: (date: Date) => void;
|
|
67
48
|
getCalendar: () => import("react").JSX.Element;
|
|
68
49
|
handleClear: () => void;
|
|
69
50
|
render(): import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateLookup.d.ts","sourceRoot":"","sources":["../../../src/DateLookup/DateLookup.tsx"],"names":[],"mappings":"AACA,OAAO,EAAa,aAAa,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEhE,OAAO,
|
|
1
|
+
{"version":3,"file":"DateLookup.d.ts","sourceRoot":"","sources":["../../../src/DateLookup/DateLookup.tsx"],"names":[],"mappings":"AACA,OAAO,EAAa,aAAa,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEhE,OAAO,EACL,IAAI,EACJ,WAAW,EAEX,KAAK,SAAS,EACd,KAAK,UAAU,EACf,KAAK,SAAS,EACf,MAAM,WAAW,CAAC;AAEnB,OAAO,EAAE,wBAAwB,EAAuB,MAAM,oBAAoB,CAAC;AAInF,MAAM,WAAW,eAAe;IAC9B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,GAAG,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,GAAG,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,IAAI,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,SAAS,CAAC;IAC1C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,WAAW,CAAC,EAAE,GAAG,WAAW,EAAE,CAAC;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,KAAK,IAAI,CAAC;IACtC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,KAAK,kCAAkC,GAAG,eAAe,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAAC;AAE9F,UAAU,eAAe;IACvB,YAAY,EAAE,IAAI,GAAG,IAAI,CAAC;IAC1B,IAAI,EAAE,OAAO,CAAC;CACf;AAED,cAAM,UAAW,SAAQ,aAAa,CAAC,kCAAkC,EAAE,eAAe,CAAC;IACjF,KAAK,EAAE,kCAAkC,GAC/C,QAAQ,CAAC,IAAI,CAAC,kCAAkC,EAAE,MAAM,OAAO,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC;IAE3F,MAAM,CAAC,YAAY;;;;;;;;;;MAUqC;IAExD,OAAO,4CAA+B;gBAE1B,KAAK,EAAE,UAAU,CAAC,OAAO,CAAC;IAQtC,kBAAkB,CAAC,aAAa,EAAE,kCAAkC;IAMpE,IAAI,aAOF;IAEF,OAAO,aAML;IAEF,KAAK,aAMH;IAEF,aAAa,GAAI,OAAO,aAAa,CAAC,cAAc,CAAC,UAsBnD;IAEF,OAAO,GAAI,kBAAkB,MAAM,EAAE,kBAAkB,MAAM,UAO3D;IAEF,gBAAgB,GAAI,MAAM,IAAI,GAAG,IAAI,UAUnC;IAEF,gBAAgB,GAAI,MAAM,IAAI,UAI5B;IAEF,WAAW,oCAeT;IAEF,WAAW,aAGT;IAEF,MAAM;CAsDP;AAED,eAAO,MAAM,gCAAgC,mBAAa,CAAC;AAE3D,QAAA,MAAM,iBAAiB;;;CAGtB,CAAC;AAGF,eAAe,iBAAiB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/DateLookup/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/DateLookup/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -16,6 +16,6 @@ declare const IconButton: import("react").ForwardRefExoticComponent<{
|
|
|
16
16
|
/** @default 'default' */
|
|
17
17
|
type?: "default" | "negative";
|
|
18
18
|
'data-testid'?: string;
|
|
19
|
-
} & Pick<AnchorHTMLAttributes<HTMLAnchorElement>, "onClick" | "target" | "href"> & Pick<ButtonHTMLAttributes<HTMLButtonElement>, "disabled" | "onClick"> & Pick<HTMLAttributes<HTMLDivElement>, "
|
|
19
|
+
} & Pick<AnchorHTMLAttributes<HTMLAnchorElement>, "onClick" | "target" | "href"> & Pick<ButtonHTMLAttributes<HTMLButtonElement>, "disabled" | "onClick"> & Pick<HTMLAttributes<HTMLDivElement>, "children" | "className" | "id" | "tabIndex" | "role" | "aria-label"> & import("react").RefAttributes<unknown>>;
|
|
20
20
|
export default IconButton;
|
|
21
21
|
//# sourceMappingURL=IconButton.d.ts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { MarkupProps } from './Markup.types';
|
|
3
|
+
/**
|
|
4
|
+
* Parses a markup string and renders it as React elements. Supports `<important>`,
|
|
5
|
+
* `<positive>`, `<negative>`, `<strong>`, `<strikethrough>`, `<paragraph>` (alias `<p>`),
|
|
6
|
+
* and `<link>` (alias `<a>`) with secure href validation.
|
|
7
|
+
*
|
|
8
|
+
* It only processes `string` input, while `ReactNode` is passed-through without processing.
|
|
9
|
+
*
|
|
10
|
+
* > The component supersedes [Emphasis](?path=/docs/typography-emphasis--docs), which will be
|
|
11
|
+
* eventually deprecated.
|
|
12
|
+
*
|
|
13
|
+
* @see http://storybook.wise.design/?path=/docs/typography-markup--docs
|
|
14
|
+
* @link ../emphasis/Emphasis | Emphasis
|
|
15
|
+
*/
|
|
16
|
+
export declare const Markup: React.FC<MarkupProps>;
|
|
17
|
+
export default Markup;
|
|
18
|
+
//# sourceMappingURL=Markup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Markup.d.ts","sourceRoot":"","sources":["../../../src/Markup/Markup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAMjD,OAAO,KAAK,EAA6B,WAAW,EAAE,MAAM,gBAAgB,CAAC;AA+G7E;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAoCxC,CAAC;AAEF,eAAe,MAAM,CAAC"}
|