@transferwise/components 0.0.0-experimental-b6b6dc1 → 0.0.0-experimental-a308934
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/expressiveMoneyInput/currencySelector/CurrencySelector.js +2 -3
- package/build/expressiveMoneyInput/currencySelector/CurrencySelector.js.map +1 -1
- package/build/expressiveMoneyInput/currencySelector/CurrencySelector.mjs +2 -3
- package/build/expressiveMoneyInput/currencySelector/CurrencySelector.mjs.map +1 -1
- package/build/field/Field.js +5 -4
- package/build/field/Field.js.map +1 -1
- package/build/field/Field.mjs +5 -4
- package/build/field/Field.mjs.map +1 -1
- package/build/i18n/en.json +2 -0
- package/build/i18n/en.json.js +2 -0
- package/build/i18n/en.json.js.map +1 -1
- package/build/i18n/en.json.mjs +2 -0
- package/build/i18n/en.json.mjs.map +1 -1
- package/build/index.js +2 -0
- package/build/index.js.map +1 -1
- package/build/index.mjs +1 -0
- package/build/index.mjs.map +1 -1
- package/build/listItem/Prompt/ListItemPrompt.js +5 -4
- package/build/listItem/Prompt/ListItemPrompt.js.map +1 -1
- package/build/listItem/Prompt/ListItemPrompt.mjs +5 -4
- package/build/listItem/Prompt/ListItemPrompt.mjs.map +1 -1
- package/build/main.css +85 -29
- package/build/prompt/ActionPrompt/ActionPrompt.js +8 -40
- package/build/prompt/ActionPrompt/ActionPrompt.js.map +1 -1
- package/build/prompt/ActionPrompt/ActionPrompt.mjs +8 -40
- package/build/prompt/ActionPrompt/ActionPrompt.mjs.map +1 -1
- package/build/prompt/CriticalBanner/CriticalBanner.js +145 -0
- package/build/prompt/CriticalBanner/CriticalBanner.js.map +1 -0
- package/build/prompt/CriticalBanner/CriticalBanner.mjs +143 -0
- package/build/prompt/CriticalBanner/CriticalBanner.mjs.map +1 -0
- package/build/prompt/CriticalBanner/helpers.js +29 -0
- package/build/prompt/CriticalBanner/helpers.js.map +1 -0
- package/build/prompt/CriticalBanner/helpers.mjs +26 -0
- package/build/prompt/CriticalBanner/helpers.mjs.map +1 -0
- package/build/prompt/PrimitivePrompt/PrimitivePrompt.js +2 -0
- package/build/prompt/PrimitivePrompt/PrimitivePrompt.js.map +1 -1
- package/build/prompt/PrimitivePrompt/PrimitivePrompt.mjs +2 -0
- package/build/prompt/PrimitivePrompt/PrimitivePrompt.mjs.map +1 -1
- package/build/prompt/common/Expander/Expander.js +47 -0
- package/build/prompt/common/Expander/Expander.js.map +1 -0
- package/build/prompt/common/Expander/Expander.messages.js +17 -0
- package/build/prompt/common/Expander/Expander.messages.js.map +1 -0
- package/build/prompt/common/Expander/Expander.messages.mjs +13 -0
- package/build/prompt/common/Expander/Expander.messages.mjs.map +1 -0
- package/build/prompt/common/Expander/Expander.mjs +44 -0
- package/build/prompt/common/Expander/Expander.mjs.map +1 -0
- package/build/prompt/helpers/promptMedia.js +52 -0
- package/build/prompt/helpers/promptMedia.js.map +1 -0
- package/build/prompt/helpers/promptMedia.mjs +50 -0
- package/build/prompt/helpers/promptMedia.mjs.map +1 -0
- package/build/styles/main.css +85 -29
- package/build/styles/prompt/CriticalBanner/CriticalBanner.css +39 -0
- package/build/styles/prompt/common/Expander/Expander.css +8 -0
- package/build/typeahead/Typeahead.js +5 -4
- package/build/typeahead/Typeahead.js.map +1 -1
- package/build/typeahead/Typeahead.mjs +5 -4
- package/build/typeahead/Typeahead.mjs.map +1 -1
- package/build/types/expressiveMoneyInput/currencySelector/CurrencySelector.d.ts.map +1 -1
- package/build/types/index.d.ts +2 -2
- package/build/types/index.d.ts.map +1 -1
- package/build/types/prompt/ActionPrompt/ActionPrompt.d.ts +2 -11
- package/build/types/prompt/ActionPrompt/ActionPrompt.d.ts.map +1 -1
- package/build/types/prompt/CriticalBanner/CriticalBanner.d.ts +43 -0
- package/build/types/prompt/CriticalBanner/CriticalBanner.d.ts.map +1 -0
- package/build/types/prompt/CriticalBanner/helpers.d.ts +18 -0
- package/build/types/prompt/CriticalBanner/helpers.d.ts.map +1 -0
- package/build/types/prompt/CriticalBanner/index.d.ts +3 -0
- package/build/types/prompt/CriticalBanner/index.d.ts.map +1 -0
- package/build/types/prompt/PrimitivePrompt/PrimitivePrompt.d.ts +8 -3
- package/build/types/prompt/PrimitivePrompt/PrimitivePrompt.d.ts.map +1 -1
- package/build/types/prompt/common/Expander/Expander.d.ts +20 -0
- package/build/types/prompt/common/Expander/Expander.d.ts.map +1 -0
- package/build/types/prompt/common/Expander/Expander.messages.d.ts +14 -0
- package/build/types/prompt/common/Expander/Expander.messages.d.ts.map +1 -0
- package/build/types/prompt/helpers/promptMedia.d.ts +22 -0
- package/build/types/prompt/helpers/promptMedia.d.ts.map +1 -0
- package/build/types/prompt/index.d.ts +2 -0
- package/build/types/prompt/index.d.ts.map +1 -1
- package/build/types/test-utils/index.d.ts +4 -0
- package/build/types/test-utils/index.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/expressiveMoneyInput/currencySelector/CurrencySelector.tsx +2 -3
- package/src/i18n/en.json +2 -0
- package/src/index.ts +2 -2
- package/src/main.css +85 -29
- package/src/main.less +3 -1
- package/src/prompt/ActionPrompt/ActionPrompt.tsx +9 -62
- package/src/prompt/CriticalBanner/CriticalBanner.accessibility.docs.mdx +131 -0
- package/src/prompt/CriticalBanner/CriticalBanner.css +39 -0
- package/src/prompt/CriticalBanner/CriticalBanner.less +45 -0
- package/src/prompt/CriticalBanner/CriticalBanner.story.tsx +476 -0
- package/src/prompt/CriticalBanner/CriticalBanner.test.story.tsx +67 -0
- package/src/prompt/CriticalBanner/CriticalBanner.tsx +188 -0
- package/src/prompt/CriticalBanner/helpers.ts +39 -0
- package/src/prompt/CriticalBanner/index.ts +2 -0
- package/src/prompt/PrimitivePrompt/PrimitivePrompt.tsx +9 -2
- package/src/prompt/common/Expander/Expander.css +8 -0
- package/src/prompt/common/Expander/Expander.less +9 -0
- package/src/prompt/common/Expander/Expander.messages.ts +14 -0
- package/src/prompt/common/Expander/Expander.test.tsx +167 -0
- package/src/prompt/common/Expander/Expander.tsx +83 -0
- package/src/prompt/helpers/promptMedia.tsx +79 -0
- package/src/prompt/index.ts +4 -0
- package/src/sentimentSurface/SentimentSurface.story.tsx +43 -17
|
@@ -202,18 +202,26 @@ const TokenSwatch = ({ token }: { token: string }) => (
|
|
|
202
202
|
export const EmphasisLevels: Story = {
|
|
203
203
|
render: (args) => (
|
|
204
204
|
<>
|
|
205
|
-
|
|
206
|
-
<div
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
205
|
+
{sentiments.map((sentiment) => (
|
|
206
|
+
<div key={sentiment}>
|
|
207
|
+
<SentimentSurface
|
|
208
|
+
key={`${sentiment}-base`}
|
|
209
|
+
{...args}
|
|
210
|
+
sentiment={sentiment}
|
|
211
|
+
emphasis="base"
|
|
212
|
+
>
|
|
213
|
+
<div className="p-a-2 text-capitalize">{sentiment} - Base emphasis</div>
|
|
214
|
+
</SentimentSurface>
|
|
215
|
+
<SentimentSurface
|
|
216
|
+
key={`${sentiment}-elevated`}
|
|
217
|
+
{...args}
|
|
218
|
+
sentiment={sentiment}
|
|
219
|
+
emphasis="elevated"
|
|
220
|
+
>
|
|
221
|
+
<div className="p-a-2 text-capitalize">{sentiment} - Elevated emphasis</div>
|
|
222
|
+
</SentimentSurface>
|
|
223
|
+
</div>
|
|
224
|
+
))}
|
|
217
225
|
</>
|
|
218
226
|
),
|
|
219
227
|
parameters: {
|
|
@@ -369,8 +377,8 @@ export const SentimentAwareComponents: Story = {
|
|
|
369
377
|
{STATUS_NEGATIVE}
|
|
370
378
|
</div>
|
|
371
379
|
|
|
372
|
-
<Header level="group" title="Success sentiment surface" />
|
|
373
|
-
<SentimentSurface sentiment="success">
|
|
380
|
+
<Header level="group" title="Success sentiment surface - Base emphasis" />
|
|
381
|
+
<SentimentSurface sentiment="success" emphasis="base">
|
|
374
382
|
<div className="p-a-2 m-b-2 sentimentAwareComponent">
|
|
375
383
|
{BODY}
|
|
376
384
|
{AVATAR_SUCCESS}
|
|
@@ -378,8 +386,26 @@ export const SentimentAwareComponents: Story = {
|
|
|
378
386
|
</div>
|
|
379
387
|
</SentimentSurface>
|
|
380
388
|
|
|
381
|
-
<Header level="group" title="
|
|
382
|
-
<SentimentSurface sentiment="
|
|
389
|
+
<Header level="group" title="Success sentiment surface - Elevated emphasis" />
|
|
390
|
+
<SentimentSurface sentiment="success" emphasis="elevated">
|
|
391
|
+
<div className="p-a-2 m-b-2 sentimentAwareComponent">
|
|
392
|
+
{BODY}
|
|
393
|
+
{AVATAR_SUCCESS}
|
|
394
|
+
{STATUS_SUCCESS}
|
|
395
|
+
</div>
|
|
396
|
+
</SentimentSurface>
|
|
397
|
+
|
|
398
|
+
<Header level="group" title="Negative sentiment surface - Base emphasis" />
|
|
399
|
+
<SentimentSurface sentiment="negative" emphasis="base">
|
|
400
|
+
<div className="p-a-2 m-b-2 sentimentAwareComponent">
|
|
401
|
+
{BODY}
|
|
402
|
+
{AVATAR_NEGATIVE}
|
|
403
|
+
{STATUS_NEGATIVE}
|
|
404
|
+
</div>
|
|
405
|
+
</SentimentSurface>
|
|
406
|
+
|
|
407
|
+
<Header level="group" title="Negative sentiment surface - Elevated emphasis" />
|
|
408
|
+
<SentimentSurface sentiment="negative" emphasis="elevated">
|
|
383
409
|
<div className="p-a-2 m-b-2 sentimentAwareComponent">
|
|
384
410
|
{BODY}
|
|
385
411
|
{AVATAR_NEGATIVE}
|
|
@@ -427,7 +453,7 @@ function CustomCard({ children, className }: { className?: string; children: Rea
|
|
|
427
453
|
|
|
428
454
|
export const CustomComponents: Story = {
|
|
429
455
|
tags: ['!autodocs', '!dev'],
|
|
430
|
-
render: (
|
|
456
|
+
render: () => (
|
|
431
457
|
<>
|
|
432
458
|
<style>{`
|
|
433
459
|
.custom-card {
|