@transferwise/components 0.0.0-experimental-029bd71 → 0.0.0-experimental-339e531
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/button/Button.js.map +1 -1
- package/build/button/Button.mjs.map +1 -1
- package/build/button/legacyUtils/legacyUtils.js.map +1 -1
- package/build/button/legacyUtils/legacyUtils.mjs.map +1 -1
- package/build/i18n/en.json +0 -5
- package/build/i18n/en.json.js +0 -5
- package/build/i18n/en.json.js.map +1 -1
- package/build/i18n/en.json.mjs +0 -5
- package/build/i18n/en.json.mjs.map +1 -1
- package/build/main.css +0 -300
- package/build/styles/main.css +0 -300
- package/build/types/button/Button.d.ts +1 -1
- package/build/types/button/Button.d.ts.map +1 -1
- package/build/types/button/legacyUtils/legacyUtils.d.ts +2 -2
- package/build/types/button/legacyUtils/legacyUtils.d.ts.map +1 -1
- package/build/types/test-utils/index.d.ts +158 -0
- package/build/types/test-utils/index.d.ts.map +1 -0
- package/build/types/test-utils/jest.setup.d.ts +2 -0
- package/build/types/test-utils/jest.setup.d.ts.map +1 -0
- package/package.json +4 -3
- package/src/button/{Button.spec.js → Button.spec.tsx} +3 -2
- package/src/button/Button.tsx +1 -1
- package/src/button/legacyUtils/{legacyUtils.spec.js → legacyUtils.spec.tsx} +1 -1
- package/src/button/legacyUtils/legacyUtils.ts +2 -2
- package/src/i18n/en.json +0 -5
- package/src/main.css +0 -300
- package/src/main.less +0 -1
- package/src/modal/{Modal.rtl.spec.js → Modal.rtl.spec.tsx} +8 -7
- package/src/slidingPanel/SlidingPanel.spec.js +1 -1
- package/src/ssr.spec.tsx +264 -0
- package/src/test-utils/{index.js → index.tsx} +11 -6
- package/src/test-utils/{jest.setup.js → jest.setup.ts} +13 -8
- package/build/styles/table/Table.css +0 -300
- package/build/types/table/Table.d.ts +0 -23
- package/build/types/table/Table.d.ts.map +0 -1
- package/build/types/table/Table.messages.d.ts +0 -24
- package/build/types/table/Table.messages.d.ts.map +0 -1
- package/build/types/table/TableCell.d.ts +0 -44
- package/build/types/table/TableCell.d.ts.map +0 -1
- package/build/types/table/TableHeader.d.ts +0 -13
- package/build/types/table/TableHeader.d.ts.map +0 -1
- package/build/types/table/TableRow.d.ts +0 -17
- package/build/types/table/TableRow.d.ts.map +0 -1
- package/build/types/table/TableStatusText.d.ts +0 -9
- package/build/types/table/TableStatusText.d.ts.map +0 -1
- package/build/types/table/index.d.ts +0 -6
- package/build/types/table/index.d.ts.map +0 -1
- package/src/ssr.spec.js +0 -256
- package/src/table/Table.css +0 -300
- package/src/table/Table.less +0 -361
- package/src/table/Table.messages.ts +0 -24
- package/src/table/Table.spec.tsx +0 -88
- package/src/table/Table.story.tsx +0 -359
- package/src/table/Table.tsx +0 -166
- package/src/table/TableCell.spec.tsx +0 -304
- package/src/table/TableCell.tsx +0 -170
- package/src/table/TableHeader.spec.tsx +0 -55
- package/src/table/TableHeader.tsx +0 -75
- package/src/table/TableRow.spec.tsx +0 -117
- package/src/table/TableRow.tsx +0 -70
- package/src/table/TableStatusText.spec.tsx +0 -53
- package/src/table/TableStatusText.tsx +0 -36
- package/src/table/index.ts +0 -11
- /package/src/button/__snapshots__/{Button.spec.js.snap → Button.spec.tsx.snap} +0 -0
- /package/src/dimmer/{Dimmer.rtl.spec.js → Dimmer.rtl.spec.tsx} +0 -0
- /package/src/info/{Info.spec.js → Info.spec.jsx} +0 -0
package/build/styles/main.css
CHANGED
|
@@ -5052,306 +5052,6 @@ html:not([dir="rtl"]) .np-navigation-option {
|
|
|
5052
5052
|
padding: 0 var(--size-24);
|
|
5053
5053
|
}
|
|
5054
5054
|
}
|
|
5055
|
-
.np-table {
|
|
5056
|
-
width: 100%;
|
|
5057
|
-
background-color: transparent;
|
|
5058
|
-
}
|
|
5059
|
-
.np-table-outer-container {
|
|
5060
|
-
border-radius: 16px;
|
|
5061
|
-
border-radius: var(--radius-medium);
|
|
5062
|
-
}
|
|
5063
|
-
.np-table-outer-container:focus {
|
|
5064
|
-
outline: none;
|
|
5065
|
-
}
|
|
5066
|
-
.np-table-outer-container:focus-visible {
|
|
5067
|
-
outline: var(--ring-outline-color) solid var(--ring-outline-width);
|
|
5068
|
-
outline-offset: var(--ring-outline-offset);
|
|
5069
|
-
}
|
|
5070
|
-
.np-table-outer-container:focus-visible {
|
|
5071
|
-
outline-offset: 0;
|
|
5072
|
-
}
|
|
5073
|
-
.np-table-outer-container--center {
|
|
5074
|
-
margin-right: auto;
|
|
5075
|
-
margin-left: auto;
|
|
5076
|
-
}
|
|
5077
|
-
@media (max-width: 767px) {
|
|
5078
|
-
.np-table-outer-container--center {
|
|
5079
|
-
width: 100%;
|
|
5080
|
-
}
|
|
5081
|
-
}
|
|
5082
|
-
.np-table-outer-container--full-width {
|
|
5083
|
-
width: 100%;
|
|
5084
|
-
}
|
|
5085
|
-
.np-table-container {
|
|
5086
|
-
padding: 8px;
|
|
5087
|
-
padding: var(--size-8);
|
|
5088
|
-
background-color: rgba(134,167,189,0.10196);
|
|
5089
|
-
background-color: var(--color-background-neutral);
|
|
5090
|
-
border-radius: inherit;
|
|
5091
|
-
}
|
|
5092
|
-
.np-table-container--loading .np-table-inner-container {
|
|
5093
|
-
background-image: none;
|
|
5094
|
-
}
|
|
5095
|
-
.np-table-inner-container {
|
|
5096
|
-
background-image: linear-gradient(to right, var(--color-contrast-overlay), var(--color-contrast-overlay)), linear-gradient(to right, var(--color-contrast-overlay), var(--color-contrast-overlay)), linear-gradient(to right, rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0)), linear-gradient(to left, rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0));
|
|
5097
|
-
background-position: left center, right center, left center, right center;
|
|
5098
|
-
background-repeat: no-repeat;
|
|
5099
|
-
background-color: var(--color-contrast-overlay);
|
|
5100
|
-
background-size: 15px 100%, 15px 100%, 15px 100%, 15px 100%;
|
|
5101
|
-
background-attachment: local, local, scroll, scroll;
|
|
5102
|
-
overflow-x: auto;
|
|
5103
|
-
border-radius: 10px;
|
|
5104
|
-
}
|
|
5105
|
-
.np-theme-personal--dark .np-table-inner-container {
|
|
5106
|
-
background-image: linear-gradient(to right, var(--color-contrast-overlay), var(--color-contrast-overlay)), linear-gradient(to right, var(--color-contrast-overlay), var(--color-contrast-overlay)), linear-gradient(to right, #000000, rgba(0, 0, 0, 0)), linear-gradient(to left, #000000, rgba(0, 0, 0, 0));
|
|
5107
|
-
}
|
|
5108
|
-
.np-table-row:last-child .np-table-cell:first-child {
|
|
5109
|
-
border-bottom-left-radius: 10px;
|
|
5110
|
-
}
|
|
5111
|
-
.np-table-row:last-child .np-table-cell:last-child {
|
|
5112
|
-
border-bottom-right-radius: 10px;
|
|
5113
|
-
}
|
|
5114
|
-
.np-table-row:focus {
|
|
5115
|
-
outline: none;
|
|
5116
|
-
}
|
|
5117
|
-
.np-table-row:focus-visible {
|
|
5118
|
-
outline: var(--ring-outline-color) solid var(--ring-outline-width);
|
|
5119
|
-
outline-offset: var(--ring-outline-offset);
|
|
5120
|
-
}
|
|
5121
|
-
.np-table-row:focus-visible {
|
|
5122
|
-
outline-offset: -2px;
|
|
5123
|
-
border-radius: 6px;
|
|
5124
|
-
}
|
|
5125
|
-
.np-table-row--clickable .np-table-cell {
|
|
5126
|
-
position: relative;
|
|
5127
|
-
}
|
|
5128
|
-
.np-table-row--clickable .np-table-cell:before {
|
|
5129
|
-
display: none;
|
|
5130
|
-
content: "";
|
|
5131
|
-
position: absolute;
|
|
5132
|
-
height: 100%;
|
|
5133
|
-
width: 100%;
|
|
5134
|
-
top: 0;
|
|
5135
|
-
left: 0;
|
|
5136
|
-
background-color: var(--color-background-screen-hover);
|
|
5137
|
-
}
|
|
5138
|
-
.np-table-row--clickable .np-table-cell:first-child:before,
|
|
5139
|
-
.np-table-row--clickable .np-table-cell:last-child:before {
|
|
5140
|
-
width: calc(100% - 8px);
|
|
5141
|
-
width: calc(100% - var(--size-8));
|
|
5142
|
-
}
|
|
5143
|
-
.np-table-row--clickable .np-table-cell:first-child:before {
|
|
5144
|
-
left: 8px;
|
|
5145
|
-
left: var(--size-8);
|
|
5146
|
-
border-top-left-radius: 6px;
|
|
5147
|
-
border-bottom-left-radius: 6px;
|
|
5148
|
-
}
|
|
5149
|
-
.np-table-row--clickable .np-table-cell:last-child:before {
|
|
5150
|
-
border-top-right-radius: 6px;
|
|
5151
|
-
border-bottom-right-radius: 6px;
|
|
5152
|
-
}
|
|
5153
|
-
.np-table-row--clickable:hover .np-table-cell:before {
|
|
5154
|
-
display: block;
|
|
5155
|
-
}
|
|
5156
|
-
.np-table-row--clickable:hover:focus-visible .np-table-cell:first-child:before,
|
|
5157
|
-
.np-table-row--clickable:hover:focus-visible .np-table-cell:last-child:before {
|
|
5158
|
-
width: 100%;
|
|
5159
|
-
}
|
|
5160
|
-
.np-table-row--clickable:hover:focus-visible .np-table-cell:first-child:before {
|
|
5161
|
-
left: 0;
|
|
5162
|
-
}
|
|
5163
|
-
.np-table-row--cosmetic .np-table-cell {
|
|
5164
|
-
height: 8px;
|
|
5165
|
-
height: var(--size-8);
|
|
5166
|
-
padding: 0;
|
|
5167
|
-
}
|
|
5168
|
-
.np-table-header,
|
|
5169
|
-
.np-table-cell {
|
|
5170
|
-
padding: 0;
|
|
5171
|
-
}
|
|
5172
|
-
.np-table-header:first-child,
|
|
5173
|
-
.np-table-cell:first-child {
|
|
5174
|
-
padding-left: 16px;
|
|
5175
|
-
padding-left: var(--size-16);
|
|
5176
|
-
}
|
|
5177
|
-
.np-table-header:first-child .np-table-header-content,
|
|
5178
|
-
.np-table-cell:first-child .np-table-header-content,
|
|
5179
|
-
.np-table-header:first-child .np-table-cell-content,
|
|
5180
|
-
.np-table-cell:first-child .np-table-cell-content {
|
|
5181
|
-
padding-left: 0;
|
|
5182
|
-
}
|
|
5183
|
-
.np-table-header:last-child,
|
|
5184
|
-
.np-table-cell:last-child {
|
|
5185
|
-
padding-right: 16px;
|
|
5186
|
-
padding-right: var(--size-16);
|
|
5187
|
-
}
|
|
5188
|
-
.np-table-header:last-child .np-table-header-content,
|
|
5189
|
-
.np-table-cell:last-child .np-table-header-content,
|
|
5190
|
-
.np-table-header:last-child .np-table-cell-content,
|
|
5191
|
-
.np-table-cell:last-child .np-table-cell-content {
|
|
5192
|
-
padding-right: 0;
|
|
5193
|
-
}
|
|
5194
|
-
.np-table-header .np-table-text-secondary,
|
|
5195
|
-
.np-table-cell .np-table-text-secondary {
|
|
5196
|
-
color: #768e9c;
|
|
5197
|
-
color: var(--color-content-tertiary);
|
|
5198
|
-
font-size: 0.75rem;
|
|
5199
|
-
font-size: var(--font-size-12);
|
|
5200
|
-
font-style: normal;
|
|
5201
|
-
font-weight: 400;
|
|
5202
|
-
font-weight: var(--font-weight-regular);
|
|
5203
|
-
line-height: 1.125rem;
|
|
5204
|
-
line-height: var(--line-height-18);
|
|
5205
|
-
}
|
|
5206
|
-
.np-table-header.np-table-header--right > .np-text-body-default,
|
|
5207
|
-
.np-table-cell.np-table-cell--right > .np-text-body-default {
|
|
5208
|
-
text-align: right;
|
|
5209
|
-
}
|
|
5210
|
-
.np-table-header.np-table-header--right + .np-table-header:not(.np-table-header--right),
|
|
5211
|
-
.np-table-cell.np-table-cell--right + .np-table-cell:not(.np-table-cell--right) {
|
|
5212
|
-
padding-left: calc(8px + 12px);
|
|
5213
|
-
padding-left: calc(var(--size-8) + var(--size-12));
|
|
5214
|
-
}
|
|
5215
|
-
.np-table-header.np-table-header--right .np-table-header-content,
|
|
5216
|
-
.np-table-cell.np-table-cell--right .np-table-content {
|
|
5217
|
-
justify-content: end;
|
|
5218
|
-
}
|
|
5219
|
-
.np-table-header-content,
|
|
5220
|
-
.np-table-content {
|
|
5221
|
-
display: flex;
|
|
5222
|
-
align-items: center;
|
|
5223
|
-
justify-content: start;
|
|
5224
|
-
}
|
|
5225
|
-
.np-table-header {
|
|
5226
|
-
min-width: 160px;
|
|
5227
|
-
padding-right: 8px;
|
|
5228
|
-
padding-right: var(--size-8);
|
|
5229
|
-
padding-bottom: 8px;
|
|
5230
|
-
padding-bottom: var(--size-8);
|
|
5231
|
-
padding-left: 8px;
|
|
5232
|
-
padding-left: var(--size-8);
|
|
5233
|
-
background-color: rgba(134,167,189,0.10196);
|
|
5234
|
-
background-color: var(--color-background-neutral);
|
|
5235
|
-
color: var(--color-interactive-primary);
|
|
5236
|
-
}
|
|
5237
|
-
.np-table-header-content {
|
|
5238
|
-
padding-top: 5px;
|
|
5239
|
-
padding-bottom: 5px;
|
|
5240
|
-
white-space: nowrap;
|
|
5241
|
-
line-height: 1.375rem;
|
|
5242
|
-
line-height: var(--line-height-22);
|
|
5243
|
-
letter-spacing: 0.0125em;
|
|
5244
|
-
letter-spacing: var(--letter-spacing-sm);
|
|
5245
|
-
}
|
|
5246
|
-
.np-table-header--error {
|
|
5247
|
-
color: var(--color-sentiment-negative);
|
|
5248
|
-
}
|
|
5249
|
-
.np-table-header--action {
|
|
5250
|
-
min-width: 0;
|
|
5251
|
-
padding: 0;
|
|
5252
|
-
}
|
|
5253
|
-
.np-table-cell {
|
|
5254
|
-
padding: 16px 8px;
|
|
5255
|
-
padding: var(--size-16) var(--size-8);
|
|
5256
|
-
position: relative;
|
|
5257
|
-
}
|
|
5258
|
-
.np-table-cell--cosmetic {
|
|
5259
|
-
padding: 0;
|
|
5260
|
-
}
|
|
5261
|
-
.np-table-cell--primary {
|
|
5262
|
-
min-width: 200px;
|
|
5263
|
-
}
|
|
5264
|
-
.np-table-cell--currency .np-text-body-default {
|
|
5265
|
-
white-space: nowrap;
|
|
5266
|
-
}
|
|
5267
|
-
.np-table-cell--status .status-circle {
|
|
5268
|
-
width: 24px;
|
|
5269
|
-
height: 24px;
|
|
5270
|
-
}
|
|
5271
|
-
.np-table-cell--status .status-circle .status-icon > svg {
|
|
5272
|
-
width: 21px;
|
|
5273
|
-
height: 21px;
|
|
5274
|
-
}
|
|
5275
|
-
.np-table-cell .tw-chevron {
|
|
5276
|
-
margin-left: 8px;
|
|
5277
|
-
margin-left: var(--size-8);
|
|
5278
|
-
}
|
|
5279
|
-
.np-table-cell-separator {
|
|
5280
|
-
margin-top: 4px;
|
|
5281
|
-
margin-top: var(--size-4);
|
|
5282
|
-
margin-bottom: 4px;
|
|
5283
|
-
margin-bottom: var(--size-4);
|
|
5284
|
-
height: 1px;
|
|
5285
|
-
background-color: rgba(134,167,189,0.10196);
|
|
5286
|
-
background-color: var(--color-background-neutral);
|
|
5287
|
-
padding: 0;
|
|
5288
|
-
}
|
|
5289
|
-
.np-table-cell .np-text-body-default {
|
|
5290
|
-
line-height: 1.375rem;
|
|
5291
|
-
line-height: var(--line-height-22);
|
|
5292
|
-
letter-spacing: 0.01em;
|
|
5293
|
-
letter-spacing: var(--letter-spacing-xs);
|
|
5294
|
-
}
|
|
5295
|
-
.np-table-cell .np-text-body-default-bold {
|
|
5296
|
-
display: flex;
|
|
5297
|
-
align-items: center;
|
|
5298
|
-
color: #37517e;
|
|
5299
|
-
color: var(--color-content-primary);
|
|
5300
|
-
white-space: nowrap;
|
|
5301
|
-
}
|
|
5302
|
-
.np-table-cell .np-table-content--success {
|
|
5303
|
-
color: var(--color-sentiment-positive);
|
|
5304
|
-
}
|
|
5305
|
-
.np-table-cell .np-table-content--error {
|
|
5306
|
-
color: var(--color-sentiment-negative);
|
|
5307
|
-
}
|
|
5308
|
-
.np-table-cell .tw-loader {
|
|
5309
|
-
margin: 150px auto;
|
|
5310
|
-
}
|
|
5311
|
-
@media (max-width: 320px) {
|
|
5312
|
-
.np-table-cell .tw-loader {
|
|
5313
|
-
margin-top: 70px;
|
|
5314
|
-
margin-bottom: 70px;
|
|
5315
|
-
}
|
|
5316
|
-
}
|
|
5317
|
-
.np-table-content {
|
|
5318
|
-
gap: 12px;
|
|
5319
|
-
gap: var(--size-12);
|
|
5320
|
-
}
|
|
5321
|
-
.np-table-content--success,
|
|
5322
|
-
.np-table-content--error {
|
|
5323
|
-
gap: 4px;
|
|
5324
|
-
gap: var(--size-4);
|
|
5325
|
-
}
|
|
5326
|
-
.np-table-content--success .np-table-content-text,
|
|
5327
|
-
.np-table-content--error .np-table-content-text {
|
|
5328
|
-
line-height: 155%;
|
|
5329
|
-
}
|
|
5330
|
-
.np-table-content-media {
|
|
5331
|
-
flex-shrink: 0;
|
|
5332
|
-
}
|
|
5333
|
-
.np-table-content-body {
|
|
5334
|
-
display: flex;
|
|
5335
|
-
flex-direction: column;
|
|
5336
|
-
font-size: 0.75rem;
|
|
5337
|
-
font-size: var(--font-size-12);
|
|
5338
|
-
color: #768e9c;
|
|
5339
|
-
color: var(--color-content-tertiary);
|
|
5340
|
-
}
|
|
5341
|
-
.np-table-content--reversed {
|
|
5342
|
-
flex-direction: row-reverse;
|
|
5343
|
-
}
|
|
5344
|
-
.np-table-content--reversed .np-table-content-body {
|
|
5345
|
-
align-items: end;
|
|
5346
|
-
}
|
|
5347
|
-
.np-table-empty-data {
|
|
5348
|
-
display: flex;
|
|
5349
|
-
align-items: center;
|
|
5350
|
-
}
|
|
5351
|
-
.np-table-empty-data .status-circle {
|
|
5352
|
-
margin-right: 12px;
|
|
5353
|
-
margin-right: var(--size-12);
|
|
5354
|
-
}
|
|
5355
5055
|
.np-tile {
|
|
5356
5056
|
min-width: 120px;
|
|
5357
5057
|
border-radius: 10px;
|
|
@@ -19,7 +19,7 @@ type AnchorProps = CommonProps & Omit<React.ComponentPropsWithRef<'a'>, 'type'>
|
|
|
19
19
|
as?: 'a';
|
|
20
20
|
};
|
|
21
21
|
export type Props = ButtonProps | AnchorProps;
|
|
22
|
-
type ButtonReferenceType = HTMLButtonElement | HTMLAnchorElement;
|
|
22
|
+
export type ButtonReferenceType = HTMLButtonElement | HTMLAnchorElement;
|
|
23
23
|
declare const Button: import("react").ForwardRefExoticComponent<(Omit<ButtonProps, "ref"> | Omit<AnchorProps, "ref">) & import("react").RefAttributes<ButtonReferenceType>>;
|
|
24
24
|
export default Button;
|
|
25
25
|
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot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AiB,GAAG,iBAAiB,CAAC;AAExE,QAAA,MAAM,MAAM,uJAkGX,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -13,8 +13,8 @@ type EstablishNewPriorityType = (originalPriority?: Priority | (string & Record<
|
|
|
13
13
|
export declare const establishNewPriority: EstablishNewPriorityType;
|
|
14
14
|
type DeprecatedTypeMapMessageType = keyof typeof deprecatedTypeMapMessage;
|
|
15
15
|
type LogDeprecationNoticesType = (params: {
|
|
16
|
-
size
|
|
17
|
-
type
|
|
16
|
+
size?: `${Size}`;
|
|
17
|
+
type?: DeprecatedTypeMapMessageType | (string & Record<never, never>) | null;
|
|
18
18
|
}) => void;
|
|
19
19
|
export declare const logDeprecationNotices: LogDeprecationNoticesType;
|
|
20
20
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"legacyUtils.d.ts","sourceRoot":"","sources":["../../../../src/button/legacyUtils/legacyUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAWjE,KAAK,WAAW,GAAG,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC;AAO5D,QAAA,MAAM,wBAAwB;;;;;;CAM7B,CAAC;AAIF,KAAK,oBAAoB,GAAG,CAC1B,YAAY,EAAE,IAAI,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,GAAG,IAAI,KACxD,GAAG,WAAW,EAAE,GAAG,MAAM,GAAG,IAAI,CAAC;AAEtC,eAAO,MAAM,gBAAgB,EAAE,oBAGb,CAAC;AAEnB,KAAK,wBAAwB,GAAG,CAC9B,gBAAgB,CAAC,EAAE,QAAQ,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,GAAG,IAAI,EACpE,YAAY,CAAC,EAAE,WAAW,G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EAAE,wBAalC,CAAC;AAEF,KAAK,4BAA4B,GAAG,MAAM,OAAO,wBAAwB,CAAC;AAC1E,KAAK,yBAAyB,GAAG,CAAC,MAAM,EAAE;IACxC,IAAI,CAAC,EAAE,GAAG,IAAI,EAAE,CAAC;IACjB,IAAI,CAAC,EAAE,4BAA4B,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,GAAG,IAAI,CAAC;CAC9E,KAAK,IAAI,CAAC;AACX,eAAO,MAAM,qBAAqB,EAAE,yBAWnC,CAAC"}
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { render } from '@testing-library/react';
|
|
3
|
+
import { userEvent } from '@testing-library/user-event';
|
|
4
|
+
/**
|
|
5
|
+
* Custom `render` function which wraps passed elements in Provider component
|
|
6
|
+
* Source: https://testing-library.com/docs/example-react-intl/#creating-a-custom-render-function
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
declare function customRender(ui: ReactElement, { locale, messages, ...renderOptions }?: {
|
|
10
|
+
locale?: string | undefined;
|
|
11
|
+
messages?: {
|
|
12
|
+
"neptune.Button.loadingAriaLabel": string;
|
|
13
|
+
"neptune.Chips.ariaLabel": string;
|
|
14
|
+
"neptune.ClearButton.ariaLabel": string;
|
|
15
|
+
"neptune.CloseButton.ariaLabel": string;
|
|
16
|
+
"neptune.DateInput.day.label": string;
|
|
17
|
+
"neptune.DateInput.day.placeholder": string;
|
|
18
|
+
"neptune.DateInput.month.label": string;
|
|
19
|
+
"neptune.DateInput.year.label": string;
|
|
20
|
+
"neptune.DateInput.year.placeholder": string;
|
|
21
|
+
"neptune.DateLookup.day": string;
|
|
22
|
+
"neptune.DateLookup.goTo20YearView": string;
|
|
23
|
+
"neptune.DateLookup.month": string;
|
|
24
|
+
"neptune.DateLookup.next": string;
|
|
25
|
+
"neptune.DateLookup.previous": string;
|
|
26
|
+
"neptune.DateLookup.selected": string;
|
|
27
|
+
"neptune.DateLookup.twentyYears": string;
|
|
28
|
+
"neptune.DateLookup.year": string;
|
|
29
|
+
"neptune.FlowNavigation.back": string;
|
|
30
|
+
"neptune.Info.ariaLabel": string;
|
|
31
|
+
"neptune.Label.optional": string;
|
|
32
|
+
"neptune.Link.opensInNewTab": string;
|
|
33
|
+
"neptune.MoneyInput.Select.placeholder": string;
|
|
34
|
+
"neptune.MoneyInput.Select.selectCurrencyLabel": string;
|
|
35
|
+
"neptune.PhoneNumberInput.SelectInput.placeholder": string;
|
|
36
|
+
"neptune.Select.searchPlaceholder": string;
|
|
37
|
+
"neptune.SelectInput.noResultsFound": string;
|
|
38
|
+
"neptune.SelectOption.action.label": string;
|
|
39
|
+
"neptune.SelectOption.selected.action.label": string;
|
|
40
|
+
"neptune.StatusIcon.iconLabel.error": string;
|
|
41
|
+
"neptune.StatusIcon.iconLabel.information": string;
|
|
42
|
+
"neptune.StatusIcon.iconLabel.pending": string;
|
|
43
|
+
"neptune.StatusIcon.iconLabel.success": string;
|
|
44
|
+
"neptune.StatusIcon.iconLabel.warning": string;
|
|
45
|
+
"neptune.Summary.statusDone": string;
|
|
46
|
+
"neptune.Summary.statusNotDone": string;
|
|
47
|
+
"neptune.Summary.statusPending": string;
|
|
48
|
+
"neptune.Upload.csButtonText": string;
|
|
49
|
+
"neptune.Upload.csFailureText": string;
|
|
50
|
+
"neptune.Upload.csSuccessText": string;
|
|
51
|
+
"neptune.Upload.csTooLargeMessage": string;
|
|
52
|
+
"neptune.Upload.csWrongTypeMessage": string;
|
|
53
|
+
"neptune.Upload.psButtonText": string;
|
|
54
|
+
"neptune.Upload.psProcessingText": string;
|
|
55
|
+
"neptune.Upload.retry": string;
|
|
56
|
+
"neptune.Upload.usButtonText": string;
|
|
57
|
+
"neptune.Upload.usDropMessage": string;
|
|
58
|
+
"neptune.Upload.usPlaceholder": string;
|
|
59
|
+
"neptune.UploadButton.allFileTypes": string;
|
|
60
|
+
"neptune.UploadButton.dropFiles": string;
|
|
61
|
+
"neptune.UploadButton.instructions": string;
|
|
62
|
+
"neptune.UploadButton.uploadFile": string;
|
|
63
|
+
"neptune.UploadButton.uploadFiles": string;
|
|
64
|
+
"neptune.UploadInput.deleteModalBody": string;
|
|
65
|
+
"neptune.UploadInput.deleteModalCancelButtonText": string;
|
|
66
|
+
"neptune.UploadInput.deleteModalConfirmButtonText": string;
|
|
67
|
+
"neptune.UploadInput.deleteModalTitle": string;
|
|
68
|
+
"neptune.UploadInput.fileIsTooLarge": string;
|
|
69
|
+
"neptune.UploadInput.fileTypeNotSupported": string;
|
|
70
|
+
"neptune.UploadInput.maximumFilesAlreadyUploaded": string;
|
|
71
|
+
"neptune.UploadItem.deleting": string;
|
|
72
|
+
"neptune.UploadItem.removeFile": string;
|
|
73
|
+
"neptune.UploadItem.uploaded": string;
|
|
74
|
+
"neptune.UploadItem.uploadedFile": string;
|
|
75
|
+
"neptune.UploadItem.uploading": string;
|
|
76
|
+
"neptune.UploadItem.uploadingFailed": string;
|
|
77
|
+
} | undefined;
|
|
78
|
+
}): ReturnType<typeof render>;
|
|
79
|
+
/**
|
|
80
|
+
* Custom `renderHook` function which wraps passed elements in Provider component
|
|
81
|
+
* For more info: https://react-hooks-testing-library.com/usage/advanced-hooks#context
|
|
82
|
+
*/
|
|
83
|
+
declare function customRenderHook(callback: () => unknown, { locale, messages }?: {
|
|
84
|
+
locale?: string | undefined;
|
|
85
|
+
messages?: {
|
|
86
|
+
"neptune.Button.loadingAriaLabel": string;
|
|
87
|
+
"neptune.Chips.ariaLabel": string;
|
|
88
|
+
"neptune.ClearButton.ariaLabel": string;
|
|
89
|
+
"neptune.CloseButton.ariaLabel": string;
|
|
90
|
+
"neptune.DateInput.day.label": string;
|
|
91
|
+
"neptune.DateInput.day.placeholder": string;
|
|
92
|
+
"neptune.DateInput.month.label": string;
|
|
93
|
+
"neptune.DateInput.year.label": string;
|
|
94
|
+
"neptune.DateInput.year.placeholder": string;
|
|
95
|
+
"neptune.DateLookup.day": string;
|
|
96
|
+
"neptune.DateLookup.goTo20YearView": string;
|
|
97
|
+
"neptune.DateLookup.month": string;
|
|
98
|
+
"neptune.DateLookup.next": string;
|
|
99
|
+
"neptune.DateLookup.previous": string;
|
|
100
|
+
"neptune.DateLookup.selected": string;
|
|
101
|
+
"neptune.DateLookup.twentyYears": string;
|
|
102
|
+
"neptune.DateLookup.year": string;
|
|
103
|
+
"neptune.FlowNavigation.back": string;
|
|
104
|
+
"neptune.Info.ariaLabel": string;
|
|
105
|
+
"neptune.Label.optional": string;
|
|
106
|
+
"neptune.Link.opensInNewTab": string;
|
|
107
|
+
"neptune.MoneyInput.Select.placeholder": string;
|
|
108
|
+
"neptune.MoneyInput.Select.selectCurrencyLabel": string;
|
|
109
|
+
"neptune.PhoneNumberInput.SelectInput.placeholder": string;
|
|
110
|
+
"neptune.Select.searchPlaceholder": string;
|
|
111
|
+
"neptune.SelectInput.noResultsFound": string;
|
|
112
|
+
"neptune.SelectOption.action.label": string;
|
|
113
|
+
"neptune.SelectOption.selected.action.label": string;
|
|
114
|
+
"neptune.StatusIcon.iconLabel.error": string;
|
|
115
|
+
"neptune.StatusIcon.iconLabel.information": string;
|
|
116
|
+
"neptune.StatusIcon.iconLabel.pending": string;
|
|
117
|
+
"neptune.StatusIcon.iconLabel.success": string;
|
|
118
|
+
"neptune.StatusIcon.iconLabel.warning": string;
|
|
119
|
+
"neptune.Summary.statusDone": string;
|
|
120
|
+
"neptune.Summary.statusNotDone": string;
|
|
121
|
+
"neptune.Summary.statusPending": string;
|
|
122
|
+
"neptune.Upload.csButtonText": string;
|
|
123
|
+
"neptune.Upload.csFailureText": string;
|
|
124
|
+
"neptune.Upload.csSuccessText": string;
|
|
125
|
+
"neptune.Upload.csTooLargeMessage": string;
|
|
126
|
+
"neptune.Upload.csWrongTypeMessage": string;
|
|
127
|
+
"neptune.Upload.psButtonText": string;
|
|
128
|
+
"neptune.Upload.psProcessingText": string;
|
|
129
|
+
"neptune.Upload.retry": string;
|
|
130
|
+
"neptune.Upload.usButtonText": string;
|
|
131
|
+
"neptune.Upload.usDropMessage": string;
|
|
132
|
+
"neptune.Upload.usPlaceholder": string;
|
|
133
|
+
"neptune.UploadButton.allFileTypes": string;
|
|
134
|
+
"neptune.UploadButton.dropFiles": string;
|
|
135
|
+
"neptune.UploadButton.instructions": string;
|
|
136
|
+
"neptune.UploadButton.uploadFile": string;
|
|
137
|
+
"neptune.UploadButton.uploadFiles": string;
|
|
138
|
+
"neptune.UploadInput.deleteModalBody": string;
|
|
139
|
+
"neptune.UploadInput.deleteModalCancelButtonText": string;
|
|
140
|
+
"neptune.UploadInput.deleteModalConfirmButtonText": string;
|
|
141
|
+
"neptune.UploadInput.deleteModalTitle": string;
|
|
142
|
+
"neptune.UploadInput.fileIsTooLarge": string;
|
|
143
|
+
"neptune.UploadInput.fileTypeNotSupported": string;
|
|
144
|
+
"neptune.UploadInput.maximumFilesAlreadyUploaded": string;
|
|
145
|
+
"neptune.UploadItem.deleting": string;
|
|
146
|
+
"neptune.UploadItem.removeFile": string;
|
|
147
|
+
"neptune.UploadItem.uploaded": string;
|
|
148
|
+
"neptune.UploadItem.uploadedFile": string;
|
|
149
|
+
"neptune.UploadItem.uploading": string;
|
|
150
|
+
"neptune.UploadItem.uploadingFailed": string;
|
|
151
|
+
} | undefined;
|
|
152
|
+
}): import("@testing-library/react").RenderHookResult<unknown, unknown>;
|
|
153
|
+
export * from '@testing-library/react';
|
|
154
|
+
export * from './fake-data';
|
|
155
|
+
export * from './story-config';
|
|
156
|
+
export * from './window-mock';
|
|
157
|
+
export { customRender as render, customRenderHook as renderHook, userEvent };
|
|
158
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/test-utils/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAM,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,MAAM,EAAc,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAMxD;;;;GAIG;AACH,iBAAS,YAAY,CACnB,EAAE,EAAE,YAAY,EAChB,EAAE,MAAuB,EAAE,QAAa,EAAE,GAAG,aAAa,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAK,GAChE,UAAU,CAAC,OAAO,MAAM,CAAC,CAK3B;AAED;;;GAGG;AACH,iBAAS,gBAAgB,CACvB,QAAQ,EAAE,MAAM,OAAO,EACvB,EAAE,MAAuB,EAAE,QAAa,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAK,uEAKhD;AAED,cAAc,wBAAwB,CAAC;AACvC,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,YAAY,IAAI,MAAM,EAAE,gBAAgB,IAAI,UAAU,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jest.setup.d.ts","sourceRoot":"","sources":["../../../src/test-utils/jest.setup.ts"],"names":[],"mappings":"AACA,OAAO,2BAA2B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@transferwise/components",
|
|
3
|
-
"version": "0.0.0-experimental-
|
|
3
|
+
"version": "0.0.0-experimental-339e531",
|
|
4
4
|
"description": "Neptune React components",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -72,6 +72,7 @@
|
|
|
72
72
|
"@tsconfig/recommended": "^1.0.7",
|
|
73
73
|
"@types/babel__core": "^7.20.5",
|
|
74
74
|
"@types/commonmark": "^0.27.9",
|
|
75
|
+
"@types/enzyme": "^3.10.18",
|
|
75
76
|
"@types/jest": "^29.5.12",
|
|
76
77
|
"@types/lodash": "4.17.6",
|
|
77
78
|
"@types/lodash.clamp": "^4.0.9",
|
|
@@ -91,9 +92,9 @@
|
|
|
91
92
|
"rollup": "^4.18.1",
|
|
92
93
|
"rollup-preserve-directives": "^1.1.1",
|
|
93
94
|
"storybook": "^8.2.2",
|
|
94
|
-
"@transferwise/
|
|
95
|
+
"@transferwise/neptune-css": "14.20.0",
|
|
95
96
|
"@wise/components-theming": "1.6.1",
|
|
96
|
-
"@transferwise/
|
|
97
|
+
"@transferwise/less-config": "3.1.0"
|
|
97
98
|
},
|
|
98
99
|
"peerDependencies": {
|
|
99
100
|
"@transferwise/icons": "^3.13.1",
|
|
@@ -5,6 +5,7 @@ import { render, screen, userEvent } from '../test-utils';
|
|
|
5
5
|
|
|
6
6
|
import Button from '.';
|
|
7
7
|
import messages from './Button.messages';
|
|
8
|
+
import { ButtonReferenceType } from './Button';
|
|
8
9
|
|
|
9
10
|
const { ACCENT, POSITIVE, NEGATIVE } = ControlType;
|
|
10
11
|
const { PAY, LINK, DANGER } = Type;
|
|
@@ -14,7 +15,7 @@ const { SMALL, MEDIUM, LARGE } = Size;
|
|
|
14
15
|
describe('Button', () => {
|
|
15
16
|
// eslint-disable-next-line no-console
|
|
16
17
|
const originalWarn = console.warn;
|
|
17
|
-
let mockedWarn;
|
|
18
|
+
let mockedWarn: typeof originalWarn;
|
|
18
19
|
|
|
19
20
|
const props = {
|
|
20
21
|
onClick: jest.fn(),
|
|
@@ -47,7 +48,7 @@ describe('Button', () => {
|
|
|
47
48
|
});
|
|
48
49
|
|
|
49
50
|
it('set `ref` to be true on Button', () => {
|
|
50
|
-
const reference = createRef();
|
|
51
|
+
const reference = createRef<ButtonReferenceType>();
|
|
51
52
|
|
|
52
53
|
expect(reference.current).toBeFalsy();
|
|
53
54
|
render(<Button ref={reference}>Click me!</Button>);
|
package/src/button/Button.tsx
CHANGED
|
@@ -51,7 +51,7 @@ type AnchorProps = CommonProps &
|
|
|
51
51
|
|
|
52
52
|
export type Props = ButtonProps | AnchorProps;
|
|
53
53
|
|
|
54
|
-
type ButtonReferenceType = HTMLButtonElement | HTMLAnchorElement;
|
|
54
|
+
export type ButtonReferenceType = HTMLButtonElement | HTMLAnchorElement;
|
|
55
55
|
|
|
56
56
|
const Button = forwardRef<ButtonReferenceType, Props>(
|
|
57
57
|
(
|
|
@@ -57,8 +57,8 @@ export const establishNewPriority: EstablishNewPriorityType = (originalPriority,
|
|
|
57
57
|
|
|
58
58
|
type DeprecatedTypeMapMessageType = keyof typeof deprecatedTypeMapMessage;
|
|
59
59
|
type LogDeprecationNoticesType = (params: {
|
|
60
|
-
size
|
|
61
|
-
type
|
|
60
|
+
size?: `${Size}`;
|
|
61
|
+
type?: DeprecatedTypeMapMessageType | (string & Record<never, never>) | null;
|
|
62
62
|
}) => void;
|
|
63
63
|
export const logDeprecationNotices: LogDeprecationNoticesType = ({ size, type }) => {
|
|
64
64
|
logActionRequiredIf(
|
package/src/i18n/en.json
CHANGED
|
@@ -35,11 +35,6 @@
|
|
|
35
35
|
"neptune.Summary.statusDone": "Item done",
|
|
36
36
|
"neptune.Summary.statusNotDone": "Item to do",
|
|
37
37
|
"neptune.Summary.statusPending": "Item pending",
|
|
38
|
-
"neptune.Table.actionHeader": "Action",
|
|
39
|
-
"neptune.Table.emptyData": "No results found",
|
|
40
|
-
"neptune.Table.loaded": "Table data is loaded",
|
|
41
|
-
"neptune.Table.loading": "Table data is loading",
|
|
42
|
-
"neptune.Table.refreshPage": "Refresh page",
|
|
43
38
|
"neptune.Upload.csButtonText": "Upload another file?",
|
|
44
39
|
"neptune.Upload.csFailureText": "Upload failed. Please, try again",
|
|
45
40
|
"neptune.Upload.csSuccessText": "Upload complete!",
|