@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.
Files changed (201) hide show
  1. package/build/Calendar/Calendar.js +16 -94
  2. package/build/Calendar/Calendar.js.map +1 -1
  3. package/build/Calendar/Calendar.messages.js +0 -12
  4. package/build/Calendar/Calendar.messages.js.map +1 -1
  5. package/build/Calendar/Calendar.messages.mjs +0 -12
  6. package/build/Calendar/Calendar.messages.mjs.map +1 -1
  7. package/build/Calendar/Calendar.mjs +17 -95
  8. package/build/Calendar/Calendar.mjs.map +1 -1
  9. package/build/Calendar/DateHeader/DateHeader.js +1 -5
  10. package/build/Calendar/DateHeader/DateHeader.js.map +1 -1
  11. package/build/Calendar/DateHeader/DateHeader.mjs +1 -5
  12. package/build/Calendar/DateHeader/DateHeader.mjs.map +1 -1
  13. package/build/Calendar/DayCalendar/DayCalendar.js +0 -14
  14. package/build/Calendar/DayCalendar/DayCalendar.js.map +1 -1
  15. package/build/Calendar/DayCalendar/DayCalendar.mjs +0 -14
  16. package/build/Calendar/DayCalendar/DayCalendar.mjs.map +1 -1
  17. package/build/Calendar/DayCalendar/Table/DayCalendarTable.js +19 -53
  18. package/build/Calendar/DayCalendar/Table/DayCalendarTable.js.map +1 -1
  19. package/build/Calendar/DayCalendar/Table/DayCalendarTable.mjs +19 -53
  20. package/build/Calendar/DayCalendar/Table/DayCalendarTable.mjs.map +1 -1
  21. package/build/Calendar/MonthCalendar/MonthCalendar.js +0 -6
  22. package/build/Calendar/MonthCalendar/MonthCalendar.js.map +1 -1
  23. package/build/Calendar/MonthCalendar/MonthCalendar.mjs +0 -6
  24. package/build/Calendar/MonthCalendar/MonthCalendar.mjs.map +1 -1
  25. package/build/Calendar/MonthCalendar/Table/MonthCalendarTable.js +3 -8
  26. package/build/Calendar/MonthCalendar/Table/MonthCalendarTable.js.map +1 -1
  27. package/build/Calendar/MonthCalendar/Table/MonthCalendarTable.mjs +3 -8
  28. package/build/Calendar/MonthCalendar/Table/MonthCalendarTable.mjs.map +1 -1
  29. package/build/Calendar/YearCalendar/Table/YearCalendarTable.js +3 -8
  30. package/build/Calendar/YearCalendar/Table/YearCalendarTable.js.map +1 -1
  31. package/build/Calendar/YearCalendar/Table/YearCalendarTable.mjs +3 -8
  32. package/build/Calendar/YearCalendar/Table/YearCalendarTable.mjs.map +1 -1
  33. package/build/Calendar/YearCalendar/YearCalendar.js +0 -7
  34. package/build/Calendar/YearCalendar/YearCalendar.js.map +1 -1
  35. package/build/Calendar/YearCalendar/YearCalendar.mjs +0 -7
  36. package/build/Calendar/YearCalendar/YearCalendar.mjs.map +1 -1
  37. package/build/Calendar/{TableLink → tableLink}/TableLink.js +11 -26
  38. package/build/Calendar/tableLink/TableLink.js.map +1 -0
  39. package/build/Calendar/{TableLink → tableLink}/TableLink.mjs +11 -26
  40. package/build/Calendar/tableLink/TableLink.mjs.map +1 -0
  41. package/build/DateLookup/DateLookup.js +9 -20
  42. package/build/DateLookup/DateLookup.js.map +1 -1
  43. package/build/DateLookup/DateLookup.mjs +9 -20
  44. package/build/DateLookup/DateLookup.mjs.map +1 -1
  45. package/build/Markup/Markup.js +137 -0
  46. package/build/Markup/Markup.js.map +1 -0
  47. package/build/Markup/Markup.mjs +132 -0
  48. package/build/Markup/Markup.mjs.map +1 -0
  49. package/build/Markup/constants.js +36 -0
  50. package/build/Markup/constants.js.map +1 -0
  51. package/build/Markup/constants.mjs +29 -0
  52. package/build/Markup/constants.mjs.map +1 -0
  53. package/build/Markup/utils/parseMarkup.js +236 -0
  54. package/build/Markup/utils/parseMarkup.js.map +1 -0
  55. package/build/Markup/utils/parseMarkup.mjs +231 -0
  56. package/build/Markup/utils/parseMarkup.mjs.map +1 -0
  57. package/build/Markup/utils/sanitise.js +114 -0
  58. package/build/Markup/utils/sanitise.js.map +1 -0
  59. package/build/Markup/utils/sanitise.mjs +111 -0
  60. package/build/Markup/utils/sanitise.mjs.map +1 -0
  61. package/build/i18n/en.json +0 -4
  62. package/build/i18n/en.json.js +0 -4
  63. package/build/i18n/en.json.js.map +1 -1
  64. package/build/i18n/en.json.mjs +0 -4
  65. package/build/i18n/en.json.mjs.map +1 -1
  66. package/build/index.js +4 -2
  67. package/build/index.js.map +1 -1
  68. package/build/index.mjs +2 -1
  69. package/build/index.mjs.map +1 -1
  70. package/build/main.css +78 -123
  71. package/build/styles/Calendar/Calendar.css +37 -112
  72. package/build/styles/Markup/Markup.css +28 -0
  73. package/build/styles/Markup/_stories/Vulnerability/Vulnerability.css +69 -0
  74. package/build/styles/main.css +78 -123
  75. package/build/types/Body/Body.d.ts +2 -2
  76. package/build/types/Calendar/Calendar.d.ts +3 -16
  77. package/build/types/Calendar/Calendar.d.ts.map +1 -1
  78. package/build/types/Calendar/Calendar.messages.d.ts +0 -20
  79. package/build/types/Calendar/Calendar.messages.d.ts.map +1 -1
  80. package/build/types/Calendar/DateHeader/DateHeader.d.ts +0 -2
  81. package/build/types/Calendar/DateHeader/DateHeader.d.ts.map +1 -1
  82. package/build/types/Calendar/DayCalendar/DayCalendar.d.ts +1 -5
  83. package/build/types/Calendar/DayCalendar/DayCalendar.d.ts.map +1 -1
  84. package/build/types/Calendar/DayCalendar/Table/DayCalendarTable.d.ts +0 -4
  85. package/build/types/Calendar/DayCalendar/Table/DayCalendarTable.d.ts.map +1 -1
  86. package/build/types/Calendar/MonthCalendar/MonthCalendar.d.ts +0 -1
  87. package/build/types/Calendar/MonthCalendar/MonthCalendar.d.ts.map +1 -1
  88. package/build/types/Calendar/MonthCalendar/Table/MonthCalendarTable.d.ts +1 -2
  89. package/build/types/Calendar/MonthCalendar/Table/MonthCalendarTable.d.ts.map +1 -1
  90. package/build/types/Calendar/YearCalendar/Table/YearCalendarTable.d.ts +1 -2
  91. package/build/types/Calendar/YearCalendar/Table/YearCalendarTable.d.ts.map +1 -1
  92. package/build/types/Calendar/YearCalendar/YearCalendar.d.ts +0 -1
  93. package/build/types/Calendar/YearCalendar/YearCalendar.d.ts.map +1 -1
  94. package/build/types/Calendar/index.d.ts +0 -1
  95. package/build/types/Calendar/index.d.ts.map +1 -1
  96. package/build/types/Calendar/{TableLink → tableLink}/TableLink.d.ts +1 -3
  97. package/build/types/Calendar/tableLink/TableLink.d.ts.map +1 -0
  98. package/build/types/Calendar/tableLink/index.d.ts.map +1 -0
  99. package/build/types/DateLookup/DateLookup.d.ts +5 -24
  100. package/build/types/DateLookup/DateLookup.d.ts.map +1 -1
  101. package/build/types/DateLookup/index.d.ts +0 -1
  102. package/build/types/DateLookup/index.d.ts.map +1 -1
  103. package/build/types/IconButton/IconButton.d.ts +1 -1
  104. package/build/types/Markup/Markup.d.ts +18 -0
  105. package/build/types/Markup/Markup.d.ts.map +1 -0
  106. package/build/types/Markup/Markup.types.d.ts +77 -0
  107. package/build/types/Markup/Markup.types.d.ts.map +1 -0
  108. package/build/types/Markup/_stories/Vulnerability/Vulnerability.d.ts +12 -0
  109. package/build/types/Markup/_stories/Vulnerability/Vulnerability.d.ts.map +1 -0
  110. package/build/types/Markup/constants.d.ts +20 -0
  111. package/build/types/Markup/constants.d.ts.map +1 -0
  112. package/build/types/Markup/index.d.ts +3 -0
  113. package/build/types/Markup/index.d.ts.map +1 -0
  114. package/build/types/Markup/utils/parseMarkup.d.ts +8 -0
  115. package/build/types/Markup/utils/parseMarkup.d.ts.map +1 -0
  116. package/build/types/Markup/utils/sanitise.d.ts +4 -0
  117. package/build/types/Markup/utils/sanitise.d.ts.map +1 -0
  118. package/build/types/Title/Title.d.ts +2 -2
  119. package/build/types/Upload/Steps/UploadImageStep/UploadImageStep.d.ts +1 -1
  120. package/build/types/UploadInput/UploadItem/UploadItemLink.d.ts +1 -1
  121. package/build/types/common/DateUtils/index.d.ts +0 -2
  122. package/build/types/common/DateUtils/index.d.ts.map +1 -1
  123. package/build/types/index.d.ts +4 -3
  124. package/build/types/index.d.ts.map +1 -1
  125. package/build/types/test-utils/index.d.ts +0 -8
  126. package/build/types/test-utils/index.d.ts.map +1 -1
  127. package/package.json +1 -1
  128. package/src/Calendar/Calendar.css +37 -112
  129. package/src/Calendar/Calendar.less +35 -5
  130. package/src/Calendar/Calendar.messages.ts +0 -21
  131. package/src/Calendar/Calendar.test.tsx +27 -288
  132. package/src/Calendar/Calendar.tsx +19 -136
  133. package/src/Calendar/DateHeader/DateHeader.tsx +0 -6
  134. package/src/Calendar/DayCalendar/DayCalendar.tsx +1 -33
  135. package/src/Calendar/DayCalendar/Table/DayCalendarTable.tsx +28 -62
  136. package/src/Calendar/MonthCalendar/MonthCalendar.tsx +0 -8
  137. package/src/Calendar/MonthCalendar/Table/MonthCalendarTable.tsx +3 -15
  138. package/src/Calendar/YearCalendar/Table/YearCalendarTable.tsx +3 -15
  139. package/src/Calendar/YearCalendar/YearCalendar.tsx +0 -9
  140. package/src/Calendar/_stories/Calendar.story.tsx +4 -138
  141. package/src/Calendar/index.ts +0 -7
  142. package/src/Calendar/{TableLink → tableLink}/TableLink.tsx +14 -29
  143. package/src/DateLookup/DateLookup.test.tsx +37 -34
  144. package/src/DateLookup/DateLookup.tsx +13 -37
  145. package/src/DateLookup/_stories/DateLookup.story.tsx +2 -124
  146. package/src/DateLookup/index.ts +0 -6
  147. package/src/Markup/Markup.css +28 -0
  148. package/src/Markup/Markup.injection.test.tsx +163 -0
  149. package/src/Markup/Markup.less +29 -0
  150. package/src/Markup/Markup.test.tsx +463 -0
  151. package/src/Markup/Markup.tsx +169 -0
  152. package/src/Markup/Markup.types.ts +62 -0
  153. package/src/Markup/_stories/Markup.docs.mdx +75 -0
  154. package/src/Markup/_stories/Markup.security.docs.mdx +343 -0
  155. package/src/Markup/_stories/Markup.story.tsx +266 -0
  156. package/src/Markup/_stories/Vulnerability/Vulnerability.css +69 -0
  157. package/src/Markup/_stories/Vulnerability/Vulnerability.tsx +30 -0
  158. package/src/Markup/constants.ts +41 -0
  159. package/src/Markup/index.ts +2 -0
  160. package/src/Markup/utils/parseMarkup.test.ts +706 -0
  161. package/src/Markup/utils/parseMarkup.ts +234 -0
  162. package/src/Markup/utils/sanitise.test.ts +497 -0
  163. package/src/Markup/utils/sanitise.ts +133 -0
  164. package/src/common/DateUtils/index.ts +0 -2
  165. package/src/i18n/en.json +0 -4
  166. package/src/index.ts +4 -3
  167. package/src/main.css +78 -123
  168. package/src/main.less +1 -0
  169. package/build/Calendar/TableLink/TableLink.js.map +0 -1
  170. package/build/Calendar/TableLink/TableLink.mjs.map +0 -1
  171. package/build/common/DateUtils/hasDisabledDatesInMonth/hasDisabledDatesInMonth.js +0 -33
  172. package/build/common/DateUtils/hasDisabledDatesInMonth/hasDisabledDatesInMonth.js.map +0 -1
  173. package/build/common/DateUtils/hasDisabledDatesInMonth/hasDisabledDatesInMonth.mjs +0 -31
  174. package/build/common/DateUtils/hasDisabledDatesInMonth/hasDisabledDatesInMonth.mjs.map +0 -1
  175. package/build/common/DateUtils/isDateDisabled/isDateDisabled.js +0 -40
  176. package/build/common/DateUtils/isDateDisabled/isDateDisabled.js.map +0 -1
  177. package/build/common/DateUtils/isDateDisabled/isDateDisabled.mjs +0 -38
  178. package/build/common/DateUtils/isDateDisabled/isDateDisabled.mjs.map +0 -1
  179. package/build/styles/Calendar/TableLink/TableLink.css +0 -115
  180. package/build/types/Calendar/Calendar.types.d.ts +0 -32
  181. package/build/types/Calendar/Calendar.types.d.ts.map +0 -1
  182. package/build/types/Calendar/TableLink/TableLink.d.ts.map +0 -1
  183. package/build/types/Calendar/TableLink/index.d.ts.map +0 -1
  184. package/build/types/common/DateUtils/hasDisabledDatesInMonth/hasDisabledDatesInMonth.d.ts +0 -3
  185. package/build/types/common/DateUtils/hasDisabledDatesInMonth/hasDisabledDatesInMonth.d.ts.map +0 -1
  186. package/build/types/common/DateUtils/isDateDisabled/isDateDisabled.d.ts +0 -3
  187. package/build/types/common/DateUtils/isDateDisabled/isDateDisabled.d.ts.map +0 -1
  188. package/src/Calendar/Calendar.disabledDates.test.tsx +0 -518
  189. package/src/Calendar/Calendar.types.ts +0 -35
  190. package/src/Calendar/TableLink/TableLink.css +0 -115
  191. package/src/Calendar/TableLink/TableLink.less +0 -68
  192. package/src/Calendar/_stories/Calendar.accessibility.docs.mdx +0 -118
  193. package/src/Calendar/_stories/Calendar.test.story.tsx +0 -74
  194. package/src/DateLookup/DateLookup.disabledDates.test.tsx +0 -293
  195. package/src/DateLookup/_stories/DateLookup.accessibility.docs.mdx +0 -108
  196. package/src/common/DateUtils/hasDisabledDatesInMonth/hasDisabledDatesInMonth.test.ts +0 -98
  197. package/src/common/DateUtils/hasDisabledDatesInMonth/hasDisabledDatesInMonth.ts +0 -45
  198. package/src/common/DateUtils/isDateDisabled/isDateDisabled.test.ts +0 -169
  199. package/src/common/DateUtils/isDateDisabled/isDateDisabled.ts +0 -59
  200. /package/build/types/Calendar/{TableLink → tableLink}/index.d.ts +0 -0
  201. /package/src/Calendar/{TableLink → tableLink}/index.ts +0 -0
@@ -27269,12 +27269,46 @@ a[data-toggle="tooltip"] {
27269
27269
  pointer-events: auto;
27270
27270
  }
27271
27271
 
27272
- .wds-Calendar__option--day,
27273
- .wds-Calendar__option--month,
27274
- .wds-Calendar__option--year {
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
- .wds-Calendar__option--day,
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
- .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 {
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
- .wds-Calendar__option--day.today {
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
- 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"]) {
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:not([aria-disabled="true"]) {
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<HTMLParagraphElement | HTMLSpanElement> & {
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 | HTMLParagraphElement | HTMLSpanElement | null>>;
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
- /** 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 | 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":"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,GAAG,IAAI,KAAK,IAAI,CAAC;CACxC;AAED;;GAEG;AACH,QAAA,MAAM,QAAQ,GAAI,wGASf,aAAa,gCAoOf,CAAC;AAEF,eAAe,QAAQ,CAAC"}
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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,wBA8DG"}
1
+ {"version":3,"file":"Calendar.messages.d.ts","sourceRoot":"","sources":["../../../src/Calendar/Calendar.messages.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,wBAyCG"}
@@ -4,8 +4,6 @@ interface DateHeaderProps {
4
4
  onPreviousClick: () => void;
5
5
  onNextClick: () => void;
6
6
  dateMode: string;
7
- isPreviousDisabled?: boolean;
8
- isNextDisabled?: boolean;
9
7
  }
10
8
  declare const DateHeader: React.FC<DateHeaderProps>;
11
9
  export default DateHeader;
@@ -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;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
+ {"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;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
+ {"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":"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
+ {"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"}
@@ -5,7 +5,6 @@ declare const _default: import("react").FC<{
5
5
  placeholder?: string | undefined;
6
6
  onLabelClick: () => void;
7
7
  selectedDate: Date | null;
8
- focusedDate?: (Date | null) | undefined;
9
8
  viewYear: number;
10
9
  onViewDateUpdate: (date: {
11
10
  year?: number;
@@ -1 +1 @@
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
+ {"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, focusedDate, min, max, viewYear, placeholder, onSelect, }: MonthCalendarTableProps) => import("react").JSX.Element;
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,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"}
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, focusedDate, min, max, viewYear, placeholder, onSelect, }: YearCalendarTableProps) => import("react").JSX.Element;
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,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
+ {"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"}
@@ -4,7 +4,6 @@ declare const _default: import("react").FC<{
4
4
  min: Date | null;
5
5
  placeholder?: string | undefined;
6
6
  selectedDate: Date | null;
7
- focusedDate?: (Date | null) | undefined;
8
7
  viewYear: number;
9
8
  onViewDateUpdate: (date: {
10
9
  year: number;
@@ -1 +1 @@
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
+ {"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,4 +1,3 @@
1
1
  export { default } from './Calendar';
2
2
  export type { CalendarProps } from './Calendar';
3
- export type { DateChangeMeta, DisabledRules, DisabledDateRange, WeekDayType, OnDateSelectParams, } from './Calendar.types';
4
3
  //# sourceMappingURL=index.d.ts.map
@@ -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;AAChD,YAAY,EACV,cAAc,EACd,aAAa,EACb,iBAAiB,EACjB,WAAW,EACX,kBAAkB,GACnB,MAAM,kBAAkB,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, outOfRange, disabled, today, autofocus, disabledReasonId, onClick, }: TableLinkProps) => import("react").JSX.Element;
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
- /** Earliest selectable date (inclusive). Dates before this are interactive but not selectable, and show a boundary prompt. */
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
- /** Label text rendered above the trigger input. */
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
- /** 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. */
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, meta: DateChangeMeta) => void;
66
- handleDateSelect: (date: Date | null) => void;
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,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AACpG,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,+DAA+D;IAC/D,KAAK,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,2FAA2F;IAC3F,QAAQ,EAAE,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,KAAK,IAAI,CAAC;IACtC,2EAA2E;IAC3E,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,8HAA8H;IAC9H,GAAG,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,2HAA2H;IAC3H,GAAG,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,qDAAqD;IACrD,IAAI,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,SAAS,CAAC;IAC1C,mDAAmD;IACnD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+FAA+F;IAC/F,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,sEAAsE;IACtE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,uFAAuF;IACvF,WAAW,CAAC,EAAE,GAAG,WAAW,EAAE,CAAC;IAC/B,iEAAiE;IACjE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,wFAAwF;IACxF,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,uNAAuN;IACvN,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,yJAAyJ;IACzJ,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,kBAAkB,KAAK,IAAI,CAAC;IACpD,4CAA4C;IAC5C,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,6CAA6C;IAC7C,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,EAAE,MAAM,cAAc,UAKzD;IAEF,gBAAgB,GAAI,MAAM,IAAI,GAAG,IAAI,UAanC;IAEF,WAAW,oCAgBT;IAEF,WAAW,aAGT;IAEF,MAAM;CAsDP;AAED,eAAO,MAAM,gCAAgC,mBAAa,CAAC;AAE3D,QAAA,MAAM,iBAAiB;;;CAGtB,CAAC;AAGF,eAAe,iBAAiB,CAAC"}
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,4 +1,3 @@
1
1
  export { default } from './DateLookup';
2
2
  export type { DateLookupProps } from './DateLookup';
3
- export type { DisabledRules, DisabledDateRange, WeekDayType, OnDateSelectParams, } from '../Calendar/Calendar.types';
4
3
  //# sourceMappingURL=index.d.ts.map
@@ -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;AACpD,YAAY,EACV,aAAa,EACb,iBAAiB,EACjB,WAAW,EACX,kBAAkB,GACnB,MAAM,4BAA4B,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>, "id" | "className" | "tabIndex" | "role" | "aria-label" | "children"> & import("react").RefAttributes<unknown>>;
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"}