@transferwise/components 46.117.1 → 46.118.0
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/index.js +4 -0
- package/build/index.js.map +1 -1
- package/build/index.mjs +2 -0
- package/build/index.mjs.map +1 -1
- package/build/prompt/InlinePrompt/InlinePrompt.js.map +1 -1
- package/build/prompt/InlinePrompt/InlinePrompt.mjs.map +1 -1
- package/build/types/index.d.ts +4 -0
- package/build/types/index.d.ts.map +1 -1
- package/build/types/prompt/InlinePrompt/InlinePrompt.d.ts +3 -1
- package/build/types/prompt/InlinePrompt/InlinePrompt.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/alert/Alert.story.tsx +1 -1
- package/src/alert/Alert.tests.story.tsx +1 -1
- package/src/button/Button.vars.less +28 -7
- package/src/criticalBanner/CriticalCommsBanner.story.tsx +1 -1
- package/src/iconButton/IconButton.story.tsx +2 -2
- package/src/index.ts +4 -0
- package/src/inlineAlert/InlineAlert.story.tsx +1 -1
- package/src/link/Link.story.tsx +2 -2
- package/src/nudge/Nudge.story.tsx +1 -1
- package/src/prompt/InlinePrompt/InlinePrompt.story.tsx +41 -2
- package/src/prompt/InlinePrompt/InlinePrompt.tsx +3 -1
- package/src/provider/theme/ThemeProvider.story.tsx +1 -1
- package/src/sentimentSurface/SentimentSurface.story.tsx +163 -102
- package/src/sentimentSurface/SentimentSurface.tests.story.tsx +6 -2
- package/src/{neptune-css/NeptuneCSS.story.tsx → tokens/tokens.story.tsx} +2 -2
- package/src/withId/withId.story.tsx +1 -0
package/build/index.js
CHANGED
|
@@ -51,6 +51,7 @@ var Header = require('./header/Header.js');
|
|
|
51
51
|
var infoPresentations = require('./info/infoPresentations.js');
|
|
52
52
|
var Info = require('./info/Info.js');
|
|
53
53
|
var InlineAlert = require('./inlineAlert/InlineAlert.js');
|
|
54
|
+
var InlinePrompt = require('./prompt/InlinePrompt/InlinePrompt.js');
|
|
54
55
|
var InputWithDisplayFormat = require('./inputWithDisplayFormat/InputWithDisplayFormat.js');
|
|
55
56
|
var Input = require('./inputs/Input.js');
|
|
56
57
|
var InputGroup = require('./inputs/InputGroup.js');
|
|
@@ -90,6 +91,7 @@ var ResponsivePanel = require('./common/responsivePanel/ResponsivePanel.js');
|
|
|
90
91
|
var Section = require('./section/Section.js');
|
|
91
92
|
var SegmentedControl = require('./segmentedControl/SegmentedControl.js');
|
|
92
93
|
var Select = require('./select/Select.js');
|
|
94
|
+
var SentimentSurface = require('./sentimentSurface/SentimentSurface.js');
|
|
93
95
|
var SlidingPanel = require('./slidingPanel/SlidingPanel.js');
|
|
94
96
|
var Snackbar = require('./snackbar/Snackbar.js');
|
|
95
97
|
var SnackbarContext = require('./snackbar/SnackbarContext.js');
|
|
@@ -208,6 +210,7 @@ Object.defineProperty(exports, "InfoPresentation", {
|
|
|
208
210
|
});
|
|
209
211
|
exports.Info = Info.default;
|
|
210
212
|
exports.InlineAlert = InlineAlert.default;
|
|
213
|
+
exports.InlinePrompt = InlinePrompt.InlinePrompt;
|
|
211
214
|
exports.InputWithDisplayFormat = InputWithDisplayFormat.default;
|
|
212
215
|
exports.Input = Input.Input;
|
|
213
216
|
exports.InputGroup = InputGroup.InputGroup;
|
|
@@ -253,6 +256,7 @@ exports.ResponsivePanel = ResponsivePanel.default;
|
|
|
253
256
|
exports.Section = Section.default;
|
|
254
257
|
exports.SegmentedControl = SegmentedControl.default;
|
|
255
258
|
exports.Select = Select.default;
|
|
259
|
+
exports.SentimentSurface = SentimentSurface.default;
|
|
256
260
|
exports.SlidingPanel = SlidingPanel.default;
|
|
257
261
|
exports.SnackbarPortal = Snackbar.default;
|
|
258
262
|
exports.SnackbarConsumer = SnackbarContext.SnackbarConsumer;
|
package/build/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/build/index.mjs
CHANGED
|
@@ -49,6 +49,7 @@ export { default as Header } from './header/Header.mjs';
|
|
|
49
49
|
export { InfoPresentation } from './info/infoPresentations.mjs';
|
|
50
50
|
export { default as Info } from './info/Info.mjs';
|
|
51
51
|
export { default as InlineAlert } from './inlineAlert/InlineAlert.mjs';
|
|
52
|
+
export { InlinePrompt } from './prompt/InlinePrompt/InlinePrompt.mjs';
|
|
52
53
|
export { default as InputWithDisplayFormat } from './inputWithDisplayFormat/InputWithDisplayFormat.mjs';
|
|
53
54
|
export { Input } from './inputs/Input.mjs';
|
|
54
55
|
export { InputGroup } from './inputs/InputGroup.mjs';
|
|
@@ -88,6 +89,7 @@ export { default as ResponsivePanel } from './common/responsivePanel/ResponsiveP
|
|
|
88
89
|
export { default as Section } from './section/Section.mjs';
|
|
89
90
|
export { default as SegmentedControl } from './segmentedControl/SegmentedControl.mjs';
|
|
90
91
|
export { default as Select } from './select/Select.mjs';
|
|
92
|
+
export { default as SentimentSurface } from './sentimentSurface/SentimentSurface.mjs';
|
|
91
93
|
export { default as SlidingPanel } from './slidingPanel/SlidingPanel.mjs';
|
|
92
94
|
export { default as SnackbarPortal } from './snackbar/Snackbar.mjs';
|
|
93
95
|
export { SnackbarConsumer, SnackbarContext } from './snackbar/SnackbarContext.mjs';
|
package/build/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InlinePrompt.js","sources":["../../../src/prompt/InlinePrompt/InlinePrompt.tsx"],"sourcesContent":["import { Sentiment } from '../../common';\nimport { BackslashCircle, GiftBox } from '@transferwise/icons';\nimport ProcessIndicator from '../../processIndicator';\nimport StatusIcon from '../../statusIcon';\nimport { clsx } from 'clsx';\nimport Body from '../../body';\nimport SentimentSurface from '../../sentimentSurface';\n\nexport type InlinePromptProps = {\n /**\n * The sentiment determines the colour scheme\n */\n sentiment?:\n | `${Sentiment.POSITIVE | Sentiment.NEGATIVE | Sentiment.NEUTRAL | Sentiment.WARNING}`\n | 'proposition';\n /**\n * Replaces the icon with a spinner while waiting for the short-lived action to finish.\n * @default false\n */\n loading?: boolean;\n /**\n * While prompts cannot be fully (visually and functionally) disabled, this prop should be enabled\n * they are associated with actually disabled component (e.g. a disabled list item or input).\n * @default false\n */\n muted?: boolean;\n /**\n * Icon override for `proposition` and `positive` sentiments. Unsupported for remaining ones.\n */\n media?: React.ReactNode;\n id?: string;\n className?: string;\n 'data-testid'?: string;\n children: React.ReactNode;\n};\n\n/**\n * Inline prompts appear alongside a specific component on the screen. They help the user stay\n * informed, fix something, or get more out of what they're doing.\n */\nexport const InlinePrompt = ({\n sentiment = Sentiment.POSITIVE,\n muted = false,\n loading = false,\n className,\n children,\n media = null,\n 'data-testid': dataTestId,\n ...rest\n}: InlinePromptProps) => {\n const surfaceSentiment = sentiment === Sentiment.POSITIVE ? 'success' : sentiment;\n\n const renderMedia = () => {\n if (muted) {\n return <BackslashCircle size={16} data-testid=\"InlinePrompt_Muted\" />;\n }\n if (loading) {\n return (\n <ProcessIndicator\n data-testid=\"InlinePrompt_ProcessIndicator\"\n size=\"xxs\"\n className=\"wds-inline-prompt-process-indicator\"\n />\n );\n }\n\n if (sentiment === 'positive' && media) {\n return media;\n }\n\n if (sentiment === 'proposition') {\n return media || <GiftBox />;\n }\n\n return <StatusIcon size={16} sentiment={sentiment} />;\n };\n\n return (\n <SentimentSurface\n sentiment={surfaceSentiment}\n data-testid={dataTestId}\n className={clsx(\n 'wds-inline-prompt',\n `wds-inline-prompt--${sentiment}`,\n {\n 'wds-inline-prompt--muted': muted,\n 'wds-inline-prompt--loading': loading,\n },\n className,\n )}\n {...rest}\n >\n <div className=\"wds-inline-prompt__media-wrapper\">{renderMedia()}</div>\n <Body>{children}</Body>\n </SentimentSurface>\n );\n};\n"],"names":["InlinePrompt","sentiment","Sentiment","POSITIVE","muted","loading","className","children","media","dataTestId","rest","surfaceSentiment","renderMedia","_jsx","BackslashCircle","size","ProcessIndicator","GiftBox","StatusIcon","_jsxs","SentimentSurface","clsx","Body"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"InlinePrompt.js","sources":["../../../src/prompt/InlinePrompt/InlinePrompt.tsx"],"sourcesContent":["import { Sentiment } from '../../common';\nimport { BackslashCircle, GiftBox } from '@transferwise/icons';\nimport ProcessIndicator from '../../processIndicator';\nimport StatusIcon from '../../statusIcon';\nimport { clsx } from 'clsx';\nimport Body from '../../body';\nimport SentimentSurface from '../../sentimentSurface';\n\nexport type InlinePromptProps = {\n /**\n * The sentiment determines the colour scheme\n */\n sentiment?:\n | `${Sentiment.POSITIVE | Sentiment.NEGATIVE | Sentiment.NEUTRAL | Sentiment.WARNING}`\n | 'proposition';\n /**\n * Replaces the icon with a spinner while waiting for the short-lived action to finish.\n * @default false\n */\n loading?: boolean;\n /**\n * While prompts cannot be fully (visually and functionally) disabled, this prop should be enabled\n * they are associated with actually disabled component (e.g. a disabled list item or input).\n * @default false\n */\n muted?: boolean;\n /**\n * Icon override for `proposition` and `positive` sentiments. Unsupported for remaining ones.\n */\n media?: React.ReactNode;\n id?: string;\n className?: string;\n 'data-testid'?: string;\n children: React.ReactNode;\n};\n\n/**\n * Inline prompts appear alongside a specific component on the screen. They help the user stay\n * informed, fix something, or get more out of what they're doing. <br />\n *\n * **NB:** It should be used in favour of `InlineAlert` which will be soon deprecated.\n */\nexport const InlinePrompt = ({\n sentiment = Sentiment.POSITIVE,\n muted = false,\n loading = false,\n className,\n children,\n media = null,\n 'data-testid': dataTestId,\n ...rest\n}: InlinePromptProps) => {\n const surfaceSentiment = sentiment === Sentiment.POSITIVE ? 'success' : sentiment;\n\n const renderMedia = () => {\n if (muted) {\n return <BackslashCircle size={16} data-testid=\"InlinePrompt_Muted\" />;\n }\n if (loading) {\n return (\n <ProcessIndicator\n data-testid=\"InlinePrompt_ProcessIndicator\"\n size=\"xxs\"\n className=\"wds-inline-prompt-process-indicator\"\n />\n );\n }\n\n if (sentiment === 'positive' && media) {\n return media;\n }\n\n if (sentiment === 'proposition') {\n return media || <GiftBox />;\n }\n\n return <StatusIcon size={16} sentiment={sentiment} />;\n };\n\n return (\n <SentimentSurface\n sentiment={surfaceSentiment}\n data-testid={dataTestId}\n className={clsx(\n 'wds-inline-prompt',\n `wds-inline-prompt--${sentiment}`,\n {\n 'wds-inline-prompt--muted': muted,\n 'wds-inline-prompt--loading': loading,\n },\n className,\n )}\n {...rest}\n >\n <div className=\"wds-inline-prompt__media-wrapper\">{renderMedia()}</div>\n <Body>{children}</Body>\n </SentimentSurface>\n );\n};\n"],"names":["InlinePrompt","sentiment","Sentiment","POSITIVE","muted","loading","className","children","media","dataTestId","rest","surfaceSentiment","renderMedia","_jsx","BackslashCircle","size","ProcessIndicator","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AAW;IACxBH,SAAS,EAAEe,SAAI,CACb,mBAAmB,EACnB,CAAA,mBAAA,EAAsBpB,WAAS,EAAE,EACjC;AACE,MAAA,0BAA0B,EAAEG,KAAK;AACjC,MAAA,4BAA4B,EAAEC;KAC/B,EACDC,SAAS,CACT;AAAA,IAAA,GACEI,IAAI;AAAAH,IAAAA,QAAA,gBAERM,cAAA,CAAA,KAAA,EAAA;AAAKP,MAAAA,SAAS,EAAC,kCAAkC;MAAAC,QAAA,EAAEK,WAAW;AAAE,KAAM,CACtE,eAAAC,cAAA,CAACS,YAAI,EAAA;AAAAf,MAAAA,QAAA,EAAEA;AAAQ,KAAO,CACxB;AAAA,GAAkB,CAAC;AAEvB;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InlinePrompt.mjs","sources":["../../../src/prompt/InlinePrompt/InlinePrompt.tsx"],"sourcesContent":["import { Sentiment } from '../../common';\nimport { BackslashCircle, GiftBox } from '@transferwise/icons';\nimport ProcessIndicator from '../../processIndicator';\nimport StatusIcon from '../../statusIcon';\nimport { clsx } from 'clsx';\nimport Body from '../../body';\nimport SentimentSurface from '../../sentimentSurface';\n\nexport type InlinePromptProps = {\n /**\n * The sentiment determines the colour scheme\n */\n sentiment?:\n | `${Sentiment.POSITIVE | Sentiment.NEGATIVE | Sentiment.NEUTRAL | Sentiment.WARNING}`\n | 'proposition';\n /**\n * Replaces the icon with a spinner while waiting for the short-lived action to finish.\n * @default false\n */\n loading?: boolean;\n /**\n * While prompts cannot be fully (visually and functionally) disabled, this prop should be enabled\n * they are associated with actually disabled component (e.g. a disabled list item or input).\n * @default false\n */\n muted?: boolean;\n /**\n * Icon override for `proposition` and `positive` sentiments. Unsupported for remaining ones.\n */\n media?: React.ReactNode;\n id?: string;\n className?: string;\n 'data-testid'?: string;\n children: React.ReactNode;\n};\n\n/**\n * Inline prompts appear alongside a specific component on the screen. They help the user stay\n * informed, fix something, or get more out of what they're doing.\n */\nexport const InlinePrompt = ({\n sentiment = Sentiment.POSITIVE,\n muted = false,\n loading = false,\n className,\n children,\n media = null,\n 'data-testid': dataTestId,\n ...rest\n}: InlinePromptProps) => {\n const surfaceSentiment = sentiment === Sentiment.POSITIVE ? 'success' : sentiment;\n\n const renderMedia = () => {\n if (muted) {\n return <BackslashCircle size={16} data-testid=\"InlinePrompt_Muted\" />;\n }\n if (loading) {\n return (\n <ProcessIndicator\n data-testid=\"InlinePrompt_ProcessIndicator\"\n size=\"xxs\"\n className=\"wds-inline-prompt-process-indicator\"\n />\n );\n }\n\n if (sentiment === 'positive' && media) {\n return media;\n }\n\n if (sentiment === 'proposition') {\n return media || <GiftBox />;\n }\n\n return <StatusIcon size={16} sentiment={sentiment} />;\n };\n\n return (\n <SentimentSurface\n sentiment={surfaceSentiment}\n data-testid={dataTestId}\n className={clsx(\n 'wds-inline-prompt',\n `wds-inline-prompt--${sentiment}`,\n {\n 'wds-inline-prompt--muted': muted,\n 'wds-inline-prompt--loading': loading,\n },\n className,\n )}\n {...rest}\n >\n <div className=\"wds-inline-prompt__media-wrapper\">{renderMedia()}</div>\n <Body>{children}</Body>\n </SentimentSurface>\n );\n};\n"],"names":["InlinePrompt","sentiment","Sentiment","POSITIVE","muted","loading","className","children","media","dataTestId","rest","surfaceSentiment","renderMedia","_jsx","BackslashCircle","size","ProcessIndicator","GiftBox","StatusIcon","_jsxs","SentimentSurface","clsx","Body"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"InlinePrompt.mjs","sources":["../../../src/prompt/InlinePrompt/InlinePrompt.tsx"],"sourcesContent":["import { Sentiment } from '../../common';\nimport { BackslashCircle, GiftBox } from '@transferwise/icons';\nimport ProcessIndicator from '../../processIndicator';\nimport StatusIcon from '../../statusIcon';\nimport { clsx } from 'clsx';\nimport Body from '../../body';\nimport SentimentSurface from '../../sentimentSurface';\n\nexport type InlinePromptProps = {\n /**\n * The sentiment determines the colour scheme\n */\n sentiment?:\n | `${Sentiment.POSITIVE | Sentiment.NEGATIVE | Sentiment.NEUTRAL | Sentiment.WARNING}`\n | 'proposition';\n /**\n * Replaces the icon with a spinner while waiting for the short-lived action to finish.\n * @default false\n */\n loading?: boolean;\n /**\n * While prompts cannot be fully (visually and functionally) disabled, this prop should be enabled\n * they are associated with actually disabled component (e.g. a disabled list item or input).\n * @default false\n */\n muted?: boolean;\n /**\n * Icon override for `proposition` and `positive` sentiments. Unsupported for remaining ones.\n */\n media?: React.ReactNode;\n id?: string;\n className?: string;\n 'data-testid'?: string;\n children: React.ReactNode;\n};\n\n/**\n * Inline prompts appear alongside a specific component on the screen. They help the user stay\n * informed, fix something, or get more out of what they're doing. <br />\n *\n * **NB:** It should be used in favour of `InlineAlert` which will be soon deprecated.\n */\nexport const InlinePrompt = ({\n sentiment = Sentiment.POSITIVE,\n muted = false,\n loading = false,\n className,\n children,\n media = null,\n 'data-testid': dataTestId,\n ...rest\n}: InlinePromptProps) => {\n const surfaceSentiment = sentiment === Sentiment.POSITIVE ? 'success' : sentiment;\n\n const renderMedia = () => {\n if (muted) {\n return <BackslashCircle size={16} data-testid=\"InlinePrompt_Muted\" />;\n }\n if (loading) {\n return (\n <ProcessIndicator\n data-testid=\"InlinePrompt_ProcessIndicator\"\n size=\"xxs\"\n className=\"wds-inline-prompt-process-indicator\"\n />\n );\n }\n\n if (sentiment === 'positive' && media) {\n return media;\n }\n\n if (sentiment === 'proposition') {\n return media || <GiftBox />;\n }\n\n return <StatusIcon size={16} sentiment={sentiment} />;\n };\n\n return (\n <SentimentSurface\n sentiment={surfaceSentiment}\n data-testid={dataTestId}\n className={clsx(\n 'wds-inline-prompt',\n `wds-inline-prompt--${sentiment}`,\n {\n 'wds-inline-prompt--muted': muted,\n 'wds-inline-prompt--loading': loading,\n },\n className,\n )}\n {...rest}\n >\n <div className=\"wds-inline-prompt__media-wrapper\">{renderMedia()}</div>\n <Body>{children}</Body>\n </SentimentSurface>\n );\n};\n"],"names":["InlinePrompt","sentiment","Sentiment","POSITIVE","muted","loading","className","children","media","dataTestId","rest","surfaceSentiment","renderMedia","_jsx","BackslashCircle","size","ProcessIndicator","GiftBox","StatusIcon","_jsxs","SentimentSurface","clsx","Body"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0CO,MAAMA,YAAY,GAAGA,CAAC;EAC3BC,SAAS,GAAGC,SAAS,CAACC,QAAQ;AAC9BC,EAAAA,KAAK,GAAG,KAAK;AACbC,EAAAA,OAAO,GAAG,KAAK;EACfC,SAAS;EACTC,QAAQ;AACRC,EAAAA,KAAK,GAAG,IAAI;AACZ,EAAA,aAAa,EAAEC,UAAU;EACzB,GAAGC;AAAI,CACW,KAAI;EACtB,MAAMC,gBAAgB,GAAGV,SAAS,KAAKC,SAAS,CAACC,QAAQ,GAAG,SAAS,GAAGF,SAAS;EAEjF,MAAMW,WAAW,GAAGA,MAAK;AACvB,IAAA,IAAIR,KAAK,EAAE;MACT,oBAAOS,GAAA,CAACC,eAAe,EAAA;AAACC,QAAAA,IAAI,EAAE,EAAG;QAAC,aAAA,EAAY;AAAoB,QAAG;AACvE,IAAA;AACA,IAAA,IAAIV,OAAO,EAAE;MACX,oBACEQ,GAAA,CAACG,gBAAgB,EAAA;AACf,QAAA,aAAA,EAAY,+BAA+B;AAC3CD,QAAAA,IAAI,EAAC,KAAK;AACVT,QAAAA,SAAS,EAAC;AAAqC,OAAA,CAC/C;AAEN,IAAA;AAEA,IAAA,IAAIL,SAAS,KAAK,UAAU,IAAIO,KAAK,EAAE;AACrC,MAAA,OAAOA,KAAK;AACd,IAAA;IAEA,IAAIP,SAAS,KAAK,aAAa,EAAE;AAC/B,MAAA,OAAOO,KAAK,iBAAIK,GAAA,CAACI,OAAO,KAAG;AAC7B,IAAA;IAEA,oBAAOJ,GAAA,CAACK,UAAU,EAAA;AAACH,MAAAA,IAAI,EAAE,EAAG;AAACd,MAAAA,SAAS,EAAEA;AAAU,MAAG;EACvD,CAAC;EAED,oBACEkB,IAAA,CAACC,gBAAgB,EAAA;AACfnB,IAAAA,SAAS,EAAEU,gBAAiB;AAC5B,IAAA,aAAA,EAAaF,UAAW;IACxBH,SAAS,EAAEe,IAAI,CACb,mBAAmB,EACnB,CAAA,mBAAA,EAAsBpB,SAAS,EAAE,EACjC;AACE,MAAA,0BAA0B,EAAEG,KAAK;AACjC,MAAA,4BAA4B,EAAEC;KAC/B,EACDC,SAAS,CACT;AAAA,IAAA,GACEI,IAAI;AAAAH,IAAAA,QAAA,gBAERM,GAAA,CAAA,KAAA,EAAA;AAAKP,MAAAA,SAAS,EAAC,kCAAkC;MAAAC,QAAA,EAAEK,WAAW;AAAE,KAAM,CACtE,eAAAC,GAAA,CAACS,IAAI,EAAA;AAAAf,MAAAA,QAAA,EAAEA;AAAQ,KAAO,CACxB;AAAA,GAAkB,CAAC;AAEvB;;;;"}
|
package/build/types/index.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ export type { HeaderProps } from './header';
|
|
|
26
26
|
export type { EmphasisProps } from './emphasis';
|
|
27
27
|
export type { FieldProps } from './field/Field';
|
|
28
28
|
export type { InfoProps } from './info';
|
|
29
|
+
export type { InlinePromptProps } from './prompt';
|
|
29
30
|
export type { InputWithDisplayFormatProps } from './inputWithDisplayFormat';
|
|
30
31
|
export type { InputProps } from './inputs/Input';
|
|
31
32
|
export type { InputGroupProps } from './inputs/InputGroup';
|
|
@@ -62,6 +63,7 @@ export type { SnackbarContextType } from './snackbar/SnackbarContext';
|
|
|
62
63
|
export type { StatusIconProps } from './statusIcon';
|
|
63
64
|
export type { StickyProps } from './sticky';
|
|
64
65
|
export type { SummaryProps } from './summary';
|
|
66
|
+
export type { SentimentSurfaceProps } from './sentimentSurface';
|
|
65
67
|
export type { SwitchProps } from './switch';
|
|
66
68
|
export type { SwitchOptionProps } from './switchOption';
|
|
67
69
|
export type { TabItem, TabsProps } from './tabs';
|
|
@@ -118,6 +120,7 @@ export { default as Header } from './header';
|
|
|
118
120
|
export { default as Image } from './image';
|
|
119
121
|
export { default as Info } from './info';
|
|
120
122
|
export { default as InlineAlert } from './inlineAlert';
|
|
123
|
+
export { InlinePrompt } from './prompt';
|
|
121
124
|
export { default as InputWithDisplayFormat } from './inputWithDisplayFormat';
|
|
122
125
|
export { Input } from './inputs/Input';
|
|
123
126
|
export { InputGroup } from './inputs/InputGroup';
|
|
@@ -154,6 +157,7 @@ export { default as ResponsivePanel } from './common/responsivePanel';
|
|
|
154
157
|
export { default as Section } from './section';
|
|
155
158
|
export { default as SegmentedControl } from './segmentedControl';
|
|
156
159
|
export { default as Select } from './select';
|
|
160
|
+
export { default as SentimentSurface } from './sentimentSurface';
|
|
157
161
|
export { default as SlidingPanel } from './slidingPanel';
|
|
158
162
|
export { default as SnackbarPortal } from './snackbar/Snackbar';
|
|
159
163
|
export { SnackbarConsumer, SnackbarContext } from './snackbar/SnackbarContext';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AACjE,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACxD,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAClE,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACxD,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,YAAY,EAAE,cAAc,IAAI,WAAW,EAAE,MAAM,UAAU,CAAC;AAC9D,YAAY,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACxC,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,YAAY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E,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC;;GAEG;AACH,OAAO,EACL,YAAY,EACZ,cAAc,EACd,aAAa,EACb,mBAAmB,EACnB,YAAY,EACZ,oBAAoB,EACpB,sBAAsB,EACtB,iBAAiB,EACjB,SAAS,EACT,YAAY,EACZ,qBAAqB,GACtB,MAAM,UAAU,CAAC;AAElB;;GAEG;AACH,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEjD;;GAEG;AACH,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -26,7 +26,9 @@ export type InlinePromptProps = {
|
|
|
26
26
|
};
|
|
27
27
|
/**
|
|
28
28
|
* Inline prompts appear alongside a specific component on the screen. They help the user stay
|
|
29
|
-
* informed, fix something, or get more out of what they're doing.
|
|
29
|
+
* informed, fix something, or get more out of what they're doing. <br />
|
|
30
|
+
*
|
|
31
|
+
* **NB:** It should be used in favour of `InlineAlert` which will be soon deprecated.
|
|
30
32
|
*/
|
|
31
33
|
export declare const InlinePrompt: ({ sentiment, muted, loading, className, children, media, "data-testid": dataTestId, ...rest }: InlinePromptProps) => import("react").JSX.Element;
|
|
32
34
|
//# sourceMappingURL=InlinePrompt.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InlinePrompt.d.ts","sourceRoot":"","sources":["../../../../src/prompt/InlinePrompt/InlinePrompt.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAQzC,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,SAAS,CAAC,EACN,GAAG,SAAS,CAAC,QAAQ,GAAG,SAAS,CAAC,QAAQ,GAAG,SAAS,CAAC,OAAO,GAAG,SAAS,CAAC,OAAO,EAAE,GACpF,aAAa,CAAC;IAClB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"InlinePrompt.d.ts","sourceRoot":"","sources":["../../../../src/prompt/InlinePrompt/InlinePrompt.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAQzC,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,SAAS,CAAC,EACN,GAAG,SAAS,CAAC,QAAQ,GAAG,SAAS,CAAC,QAAQ,GAAG,SAAS,CAAC,OAAO,GAAG,SAAS,CAAC,OAAO,EAAE,GACpF,aAAa,CAAC;IAClB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,YAAY,GAAI,+FAS1B,iBAAiB,gCA+CnB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@transferwise/components",
|
|
3
|
-
"version": "46.
|
|
3
|
+
"version": "46.118.0",
|
|
4
4
|
"description": "Neptune React components",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -85,9 +85,9 @@
|
|
|
85
85
|
"storybook-addon-tag-badges": "^3.0.4",
|
|
86
86
|
"storybook-addon-test-codegen": "^3.0.1",
|
|
87
87
|
"@transferwise/less-config": "3.1.2",
|
|
88
|
-
"@
|
|
88
|
+
"@transferwise/neptune-css": "14.26.0",
|
|
89
89
|
"@wise/components-theming": "1.9.1",
|
|
90
|
-
"@
|
|
90
|
+
"@wise/wds-configs": "0.0.0"
|
|
91
91
|
},
|
|
92
92
|
"peerDependencies": {
|
|
93
93
|
"@transferwise/icons": "^3 || ^4",
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
.wds-Button {
|
|
2
|
-
--Button-background: var(
|
|
2
|
+
--Button-background: var(
|
|
3
|
+
--color-sentiment-interactive-primary,
|
|
4
|
+
var(--color-interactive-accent)
|
|
5
|
+
);
|
|
3
6
|
--Button-background-hover: var(
|
|
4
7
|
--color-sentiment-interactive-primary-hover,
|
|
5
8
|
var(--color-interactive-accent-hover)
|
|
@@ -8,7 +11,10 @@
|
|
|
8
11
|
--color-sentiment-interactive-primary-active,
|
|
9
12
|
var(--color-interactive-accent-active)
|
|
10
13
|
);
|
|
11
|
-
--Button-color: var(
|
|
14
|
+
--Button-color: var(
|
|
15
|
+
--color-sentiment-interactive-control,
|
|
16
|
+
var(--color-interactive-control)
|
|
17
|
+
);
|
|
12
18
|
--Button-color-hover: var(
|
|
13
19
|
--color-sentiment-interactive-control-hover,
|
|
14
20
|
var(--color-interactive-control-hover)
|
|
@@ -71,11 +77,26 @@
|
|
|
71
77
|
);
|
|
72
78
|
|
|
73
79
|
--Button-tertiary-background: transparent;
|
|
74
|
-
--Button-tertiary-background-hover: var(
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
--Button-tertiary-
|
|
80
|
+
--Button-tertiary-background-hover: var(
|
|
81
|
+
--color-sentiment-interactive-secondary-neutral,
|
|
82
|
+
var(--color-background-screen-hover)
|
|
83
|
+
);
|
|
84
|
+
--Button-tertiary-background-active: var(
|
|
85
|
+
--color-sentiment-interactive-secondary-neutral-hover,
|
|
86
|
+
var(--color-background-screen-active)
|
|
87
|
+
);
|
|
88
|
+
--Button-tertiary-color: var(
|
|
89
|
+
--color-sentiment-content-primary,
|
|
90
|
+
var(--color-interactive-primary)
|
|
91
|
+
);
|
|
92
|
+
--Button-tertiary-color-hover: var(
|
|
93
|
+
--color-sentiment-content-primary-hover,
|
|
94
|
+
var(--color-interactive-primary-hover)
|
|
95
|
+
);
|
|
96
|
+
--Button-tertiary-color-active: var(
|
|
97
|
+
--color-sentiment-content-primary-active,
|
|
98
|
+
var(--color-interactive-primary-active)
|
|
99
|
+
);
|
|
79
100
|
|
|
80
101
|
--Button-primary-negative-background: var(--color-sentiment-negative-primary);
|
|
81
102
|
--Button-primary-negative-background-hover: var(--color-sentiment-negative-primary-hover);
|
|
@@ -109,8 +109,8 @@ export const Basic: Story = {
|
|
|
109
109
|
};
|
|
110
110
|
|
|
111
111
|
/**
|
|
112
|
-
* `IconButton` is sentiment-aware and will automatically adjust its
|
|
113
|
-
*
|
|
112
|
+
* `IconButton` is sentiment-aware and will automatically adjust its colours if wrapped inside
|
|
113
|
+
* the [SentimentSurface](?path=/docs/foundations-sentimentsurface--docs) component
|
|
114
114
|
*/
|
|
115
115
|
export const SentimentAwareness: Story = {
|
|
116
116
|
render: () => {
|
package/src/index.ts
CHANGED
|
@@ -35,6 +35,7 @@ export type { HeaderProps } from './header';
|
|
|
35
35
|
export type { EmphasisProps } from './emphasis';
|
|
36
36
|
export type { FieldProps } from './field/Field';
|
|
37
37
|
export type { InfoProps } from './info';
|
|
38
|
+
export type { InlinePromptProps } from './prompt';
|
|
38
39
|
export type { InputWithDisplayFormatProps } from './inputWithDisplayFormat';
|
|
39
40
|
export type { InputProps } from './inputs/Input';
|
|
40
41
|
export type { InputGroupProps } from './inputs/InputGroup';
|
|
@@ -89,6 +90,7 @@ export type { SnackbarContextType } from './snackbar/SnackbarContext';
|
|
|
89
90
|
export type { StatusIconProps } from './statusIcon';
|
|
90
91
|
export type { StickyProps } from './sticky';
|
|
91
92
|
export type { SummaryProps } from './summary';
|
|
93
|
+
export type { SentimentSurfaceProps } from './sentimentSurface';
|
|
92
94
|
export type { SwitchProps } from './switch';
|
|
93
95
|
export type { SwitchOptionProps } from './switchOption';
|
|
94
96
|
export type { TabItem, TabsProps } from './tabs';
|
|
@@ -169,6 +171,7 @@ export { default as Header } from './header';
|
|
|
169
171
|
export { default as Image } from './image';
|
|
170
172
|
export { default as Info } from './info';
|
|
171
173
|
export { default as InlineAlert } from './inlineAlert';
|
|
174
|
+
export { InlinePrompt } from './prompt';
|
|
172
175
|
export { default as InputWithDisplayFormat } from './inputWithDisplayFormat';
|
|
173
176
|
export { Input } from './inputs/Input';
|
|
174
177
|
export { InputGroup } from './inputs/InputGroup';
|
|
@@ -209,6 +212,7 @@ export { default as ResponsivePanel } from './common/responsivePanel';
|
|
|
209
212
|
export { default as Section } from './section';
|
|
210
213
|
export { default as SegmentedControl } from './segmentedControl';
|
|
211
214
|
export { default as Select } from './select';
|
|
215
|
+
export { default as SentimentSurface } from './sentimentSurface';
|
|
212
216
|
export { default as SlidingPanel } from './slidingPanel';
|
|
213
217
|
export { default as SnackbarPortal } from './snackbar/Snackbar';
|
|
214
218
|
export { SnackbarConsumer, SnackbarContext } from './snackbar/SnackbarContext';
|
package/src/link/Link.story.tsx
CHANGED
|
@@ -161,8 +161,8 @@ export const Basic = () => {
|
|
|
161
161
|
};
|
|
162
162
|
|
|
163
163
|
/**
|
|
164
|
-
* `Link` is sentiment-aware and will automatically adjust its
|
|
165
|
-
*
|
|
164
|
+
* `Link` is sentiment-aware and will automatically adjust its colours if wrapped inside
|
|
165
|
+
* the [SentimentSurface](?path=/docs/foundations-sentimentsurface--docs) component
|
|
166
166
|
*/
|
|
167
167
|
export const SentimentAwareness = function Render() {
|
|
168
168
|
return (['success', 'warning', 'negative'] as const).map((sentiment) => (
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { ReactElement } from 'react';
|
|
2
2
|
import type { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
3
|
+
import { action } from 'storybook/actions';
|
|
3
4
|
import { Taxi, Travel } from '@transferwise/icons';
|
|
4
5
|
import { lorem5 } from '../../test-utils';
|
|
5
6
|
import Link from '../../link';
|
|
@@ -22,8 +23,9 @@ const withComponentGrid =
|
|
|
22
23
|
);
|
|
23
24
|
|
|
24
25
|
export default {
|
|
25
|
-
title: '
|
|
26
|
+
title: 'Prompts/InlinePrompt',
|
|
26
27
|
component: InlinePrompt,
|
|
28
|
+
tags: ['new'],
|
|
27
29
|
args: {
|
|
28
30
|
loading: false,
|
|
29
31
|
muted: false,
|
|
@@ -158,6 +160,39 @@ export const Loading: StoryObj<PreviewStoryArgs> = {
|
|
|
158
160
|
},
|
|
159
161
|
};
|
|
160
162
|
|
|
163
|
+
/**
|
|
164
|
+
* `InlinePrompt` can include a single instance of the `Link` component, which can be rendered as
|
|
165
|
+
* either HTML anchor or button. That element will spread across the whole surface of the Prompt
|
|
166
|
+
* so it's more accessible for motor–impaired and touch devices users.
|
|
167
|
+
*
|
|
168
|
+
* > ⚠️ For that reason it's crucial to only include **one** interactive element inside a prompt.
|
|
169
|
+
*/
|
|
170
|
+
export const Interactivity: StoryObj<PreviewStoryArgs> = {
|
|
171
|
+
argTypes: previewArgTypes,
|
|
172
|
+
args: {
|
|
173
|
+
muted: true,
|
|
174
|
+
previewMedia: false,
|
|
175
|
+
},
|
|
176
|
+
render: (args: PreviewStoryArgs) => (
|
|
177
|
+
<>
|
|
178
|
+
<InlinePrompt sentiment={args.sentiment}>
|
|
179
|
+
This prompt includes a{' '}
|
|
180
|
+
<Link href="https://wise.com" target="_blank" rel="noreferrer">
|
|
181
|
+
link to some resource
|
|
182
|
+
</Link>{' '}
|
|
183
|
+
to help the user in their journey.
|
|
184
|
+
</InlinePrompt>
|
|
185
|
+
|
|
186
|
+
<InlinePrompt sentiment={args.sentiment}>
|
|
187
|
+
{/* eslint-disable-next-line jsx-a11y/click-events-have-key-events */}
|
|
188
|
+
This prompt includes an <Link onClick={action('inline button')}>inline button</Link> than
|
|
189
|
+
can e.g. trigger a modal.
|
|
190
|
+
</InlinePrompt>
|
|
191
|
+
</>
|
|
192
|
+
),
|
|
193
|
+
decorators: [withComponentGrid()],
|
|
194
|
+
};
|
|
195
|
+
|
|
161
196
|
/**
|
|
162
197
|
* Inline prompt is usually associated with a different component, such as `Input` or `ListItem`.
|
|
163
198
|
* When those components are disabled, the prompt is often used to communicate to the user why they
|
|
@@ -174,7 +209,11 @@ export const Muted: StoryObj<PreviewStoryArgs> = {
|
|
|
174
209
|
},
|
|
175
210
|
render: (args: PreviewStoryArgs) => {
|
|
176
211
|
const [props, previewProps] = getPropsForPreview(args);
|
|
177
|
-
return
|
|
212
|
+
return (
|
|
213
|
+
<InlinePrompt {...props} {...previewProps}>
|
|
214
|
+
Please <Link href="#">confirm your residential address</Link> to activate this feature.
|
|
215
|
+
</InlinePrompt>
|
|
216
|
+
);
|
|
178
217
|
},
|
|
179
218
|
};
|
|
180
219
|
|
|
@@ -36,7 +36,9 @@ export type InlinePromptProps = {
|
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
38
|
* Inline prompts appear alongside a specific component on the screen. They help the user stay
|
|
39
|
-
* informed, fix something, or get more out of what they're doing.
|
|
39
|
+
* informed, fix something, or get more out of what they're doing. <br />
|
|
40
|
+
*
|
|
41
|
+
* **NB:** It should be used in favour of `InlineAlert` which will be soon deprecated.
|
|
40
42
|
*/
|
|
41
43
|
export const InlinePrompt = ({
|
|
42
44
|
sentiment = Sentiment.POSITIVE,
|
|
@@ -22,7 +22,7 @@ function ThemeProvider(props: ThemeProviderProps) {
|
|
|
22
22
|
|
|
23
23
|
export default {
|
|
24
24
|
component: ThemeProvider,
|
|
25
|
-
title: '
|
|
25
|
+
title: 'Foundations/ThemeProvider',
|
|
26
26
|
} satisfies Meta<typeof ThemeProvider>;
|
|
27
27
|
|
|
28
28
|
type Story = StoryObj<typeof ThemeProvider>;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
|
-
import { Defrost } from '@transferwise/icons';
|
|
2
|
+
import { Bank, Defrost } from '@transferwise/icons';
|
|
3
3
|
import Body from '../body';
|
|
4
4
|
import Button from '../button';
|
|
5
5
|
import Header from '../header';
|
|
6
6
|
import Link from '../link';
|
|
7
7
|
import IconButton from '../iconButton';
|
|
8
8
|
import StatusIcon from '../statusIcon';
|
|
9
|
+
import AvatarView from '../avatarView';
|
|
9
10
|
import SentimentSurface from './SentimentSurface';
|
|
10
11
|
import type { Sentiment, Emphasis } from './SentimentSurface.types';
|
|
11
12
|
|
|
@@ -30,7 +31,7 @@ const withComponentGrid = (Story: () => JSX.Element) => (
|
|
|
30
31
|
*/
|
|
31
32
|
const meta: Meta<typeof SentimentSurface> = {
|
|
32
33
|
component: SentimentSurface,
|
|
33
|
-
title: '
|
|
34
|
+
title: 'Foundations/SentimentSurface',
|
|
34
35
|
argTypes: {
|
|
35
36
|
sentiment: {
|
|
36
37
|
control: 'select',
|
|
@@ -228,12 +229,12 @@ export const EmphasisLevels: Story = {
|
|
|
228
229
|
|
|
229
230
|
/**
|
|
230
231
|
* By default, `SentimentSurface` exposes the tokens as CSS custom properties and also applies
|
|
231
|
-
* the base styles for `background-color` and `color`.
|
|
232
|
-
*
|
|
233
|
-
*
|
|
234
|
-
*
|
|
232
|
+
* the base styles for `background-color` and `color`. However, you can choose to expose said
|
|
233
|
+
* properties without rendering them, by setting the `hasBaseStyles` prop to `false`.
|
|
234
|
+
* This is useful when you want to create custom components that adapt to the sentiment context
|
|
235
|
+
* without applying default styles.
|
|
235
236
|
*/
|
|
236
|
-
export const
|
|
237
|
+
export const RenderingBaseStyles: Story = {
|
|
237
238
|
render: (args) => (
|
|
238
239
|
<>
|
|
239
240
|
<SentimentSurface
|
|
@@ -243,8 +244,8 @@ export const BaseStyles: Story = {
|
|
|
243
244
|
<div className="p-a-2">This example exposes and applies the tokens.</div>
|
|
244
245
|
</SentimentSurface>
|
|
245
246
|
<SentimentSurface
|
|
246
|
-
hasBaseStyles={false}
|
|
247
247
|
sentiment="success"
|
|
248
|
+
hasBaseStyles={false}
|
|
248
249
|
style={{ border: `1px dashed var(--color-sentiment-content-primary)` }}
|
|
249
250
|
>
|
|
250
251
|
<div className="p-a-2">This example only exposes the tokens without applying them.</div>
|
|
@@ -260,85 +261,25 @@ export const BaseStyles: Story = {
|
|
|
260
261
|
</SentimentSurface>
|
|
261
262
|
</>
|
|
262
263
|
),
|
|
263
|
-
parameters: {
|
|
264
|
-
controls: { disable: true },
|
|
265
|
-
},
|
|
266
|
-
decorators: [withComponentGrid],
|
|
267
|
-
};
|
|
268
|
-
|
|
269
|
-
/**
|
|
270
|
-
* The component exposes token groups for all 5 sentiment types (`negative`, `warning`, `neutral`, `proposition` and `success`) each of them with two emphasis levels (`base` and `elevated`).
|
|
271
|
-
*/
|
|
272
|
-
export const ExposedTokens: Story = {
|
|
273
|
-
render: () => (
|
|
274
|
-
<section style={{ display: 'flex', flexDirection: 'column', gap: '32px', maxWidth: '100%' }}>
|
|
275
|
-
{sentiments.map((sentiment) =>
|
|
276
|
-
emphasisLevels.map((emphasis) => (
|
|
277
|
-
<SentimentSurface
|
|
278
|
-
key={`${sentiment}-${emphasis}`}
|
|
279
|
-
sentiment={sentiment}
|
|
280
|
-
emphasis={emphasis}
|
|
281
|
-
style={{
|
|
282
|
-
padding: '24px',
|
|
283
|
-
borderRadius: '16px',
|
|
284
|
-
}}
|
|
285
|
-
>
|
|
286
|
-
<h4
|
|
287
|
-
className="d-block m-b-2 text-capitalize np-text-title-body"
|
|
288
|
-
style={{
|
|
289
|
-
color: 'inherit',
|
|
290
|
-
}}
|
|
291
|
-
>
|
|
292
|
-
{sentiment} - {emphasis}
|
|
293
|
-
</h4>
|
|
294
|
-
<div
|
|
295
|
-
style={{
|
|
296
|
-
display: 'grid',
|
|
297
|
-
gridTemplateColumns: 'repeat(auto-fit, minmax(300px, 1fr))',
|
|
298
|
-
gap: '24px',
|
|
299
|
-
}}
|
|
300
|
-
>
|
|
301
|
-
{tokenCategories.map((category) => (
|
|
302
|
-
<div key={category.name}>
|
|
303
|
-
<h5
|
|
304
|
-
style={{
|
|
305
|
-
color: 'inherit',
|
|
306
|
-
fontSize: '12px',
|
|
307
|
-
fontWeight: 600,
|
|
308
|
-
marginBottom: '8px',
|
|
309
|
-
textTransform: 'uppercase',
|
|
310
|
-
letterSpacing: '0.5px',
|
|
311
|
-
opacity: 0.8,
|
|
312
|
-
}}
|
|
313
|
-
>
|
|
314
|
-
{category.name}
|
|
315
|
-
</h5>
|
|
316
|
-
{category.tokens.map((token) => (
|
|
317
|
-
<TokenSwatch key={token} token={token} />
|
|
318
|
-
))}
|
|
319
|
-
</div>
|
|
320
|
-
))}
|
|
321
|
-
</div>
|
|
322
|
-
</SentimentSurface>
|
|
323
|
-
)),
|
|
324
|
-
)}
|
|
325
|
-
</section>
|
|
326
|
-
),
|
|
327
264
|
parameters: {
|
|
328
265
|
controls: { disable: true },
|
|
329
266
|
docs: {
|
|
330
|
-
|
|
331
|
-
|
|
267
|
+
source: {
|
|
268
|
+
// Storybook strips out props that are set to false, so we need to hack it back in :/
|
|
269
|
+
transform: async (source: string) => {
|
|
270
|
+
if (source.includes('hasBaseStyles')) {
|
|
271
|
+
return source;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
return source.replace(
|
|
275
|
+
/(<\/SentimentSurface>\s+<SentimentSurface(\s+)sentiment="success")/g,
|
|
276
|
+
'$1$2hasBaseStyles={false}',
|
|
277
|
+
);
|
|
278
|
+
},
|
|
332
279
|
},
|
|
333
280
|
},
|
|
334
281
|
},
|
|
335
|
-
decorators: [
|
|
336
|
-
(Story: () => JSX.Element) => (
|
|
337
|
-
<div style={{ padding: '2rem', maxWidth: '1200px' }}>
|
|
338
|
-
<Story />
|
|
339
|
-
</div>
|
|
340
|
-
),
|
|
341
|
-
],
|
|
282
|
+
decorators: [withComponentGrid],
|
|
342
283
|
};
|
|
343
284
|
|
|
344
285
|
/**
|
|
@@ -348,6 +289,12 @@ export const NestingSurfaces: Story = {
|
|
|
348
289
|
parameters: {
|
|
349
290
|
controls: { disable: true },
|
|
350
291
|
},
|
|
292
|
+
/**
|
|
293
|
+
* As agreed with the design team, this story is temporarily hidden from the public view until we
|
|
294
|
+
* have proper discussion and documentation around when and how to use nested SentimentSurfaces.
|
|
295
|
+
* This is to prevent misuse and confusion among consumers.
|
|
296
|
+
*/
|
|
297
|
+
tags: ['!dev', '!autodocs'],
|
|
351
298
|
render: (args) => {
|
|
352
299
|
return (
|
|
353
300
|
<SentimentSurface sentiment="success" emphasis="base" className="p-a-1">
|
|
@@ -364,7 +311,9 @@ export const NestingSurfaces: Story = {
|
|
|
364
311
|
};
|
|
365
312
|
|
|
366
313
|
/**
|
|
367
|
-
* Some DS components (namely `Button`, `StatusIcon`,
|
|
314
|
+
* Some DS components (namely `Button`, `Link`, `StatusIcon`, `IconButton`) automatically adapt to the sentiment context when used within a `SentimentSurface`. <br/>
|
|
315
|
+
*
|
|
316
|
+
* > ⚠️ You should not mix sentiments within the same surface. For example, avoid using a `StatusIcon` with `sentiment="negative"` inside a `SentimentSurface` with `sentiment="success"`.
|
|
368
317
|
*/
|
|
369
318
|
export const SentimentAwareComponents: Story = {
|
|
370
319
|
name: 'Sentiment-aware Components',
|
|
@@ -377,34 +326,71 @@ export const SentimentAwareComponents: Story = {
|
|
|
377
326
|
},
|
|
378
327
|
},
|
|
379
328
|
render: function Render(args) {
|
|
380
|
-
const
|
|
381
|
-
<
|
|
382
|
-
<
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
</
|
|
329
|
+
const BODY = [
|
|
330
|
+
<Body key="body">
|
|
331
|
+
This text and its <Link href="#">inline links</Link> should use sentiment-matched colour.
|
|
332
|
+
</Body>,
|
|
333
|
+
<Button key="button1" v2 priority="primary" size="sm">
|
|
334
|
+
Primary
|
|
335
|
+
</Button>,
|
|
336
|
+
<Button key="button2" v2 priority="secondary" size="sm">
|
|
337
|
+
Secondary
|
|
338
|
+
</Button>,
|
|
339
|
+
<IconButton key="iconButton" size={32}>
|
|
340
|
+
<Defrost />
|
|
341
|
+
</IconButton>,
|
|
342
|
+
<AvatarView key="avatar" size={32}>
|
|
343
|
+
<Bank />
|
|
344
|
+
</AvatarView>,
|
|
345
|
+
<AvatarView key="avatar-initials" size={32} profileName="John Doe" />,
|
|
346
|
+
];
|
|
347
|
+
const STATUS_SUCCESS = <StatusIcon size={32} sentiment="success" />;
|
|
348
|
+
const STATUS_NEGATIVE = <StatusIcon size={32} sentiment="negative" />;
|
|
349
|
+
const AVATAR_SUCCESS = (
|
|
350
|
+
<AvatarView
|
|
351
|
+
size={32}
|
|
352
|
+
imgSrc="../avatar-rectangle-fox.webp"
|
|
353
|
+
badge={{ status: 'success' }}
|
|
354
|
+
interactive
|
|
355
|
+
/>
|
|
356
|
+
);
|
|
357
|
+
const AVATAR_NEGATIVE = (
|
|
358
|
+
<AvatarView
|
|
359
|
+
size={32}
|
|
360
|
+
imgSrc="../avatar-rectangle-fox.webp"
|
|
361
|
+
badge={{ status: 'negative' }}
|
|
362
|
+
interactive
|
|
363
|
+
/>
|
|
396
364
|
);
|
|
397
365
|
|
|
398
366
|
return (
|
|
399
367
|
<>
|
|
400
|
-
<Header level="group" title="
|
|
401
|
-
|
|
368
|
+
<Header level="group" title="Plain container" />
|
|
369
|
+
<div className="p-a-2 m-b-2 sentimentAwareComponent">
|
|
370
|
+
{BODY}
|
|
371
|
+
{AVATAR_SUCCESS}
|
|
372
|
+
{AVATAR_NEGATIVE}
|
|
373
|
+
{STATUS_SUCCESS}
|
|
374
|
+
{STATUS_NEGATIVE}
|
|
375
|
+
</div>
|
|
402
376
|
|
|
403
377
|
<Header level="group" title="Success sentiment surface" />
|
|
404
|
-
<SentimentSurface sentiment="success">
|
|
378
|
+
<SentimentSurface sentiment="success">
|
|
379
|
+
<div className="p-a-2 m-b-2 sentimentAwareComponent">
|
|
380
|
+
{BODY}
|
|
381
|
+
{AVATAR_SUCCESS}
|
|
382
|
+
{STATUS_SUCCESS}
|
|
383
|
+
</div>
|
|
384
|
+
</SentimentSurface>
|
|
405
385
|
|
|
406
386
|
<Header level="group" title="Negative sentiment surface" />
|
|
407
|
-
<SentimentSurface sentiment="negative">
|
|
387
|
+
<SentimentSurface sentiment="negative">
|
|
388
|
+
<div className="p-a-2 m-b-2 sentimentAwareComponent">
|
|
389
|
+
{BODY}
|
|
390
|
+
{AVATAR_NEGATIVE}
|
|
391
|
+
{STATUS_NEGATIVE}
|
|
392
|
+
</div>
|
|
393
|
+
</SentimentSurface>
|
|
408
394
|
</>
|
|
409
395
|
);
|
|
410
396
|
},
|
|
@@ -516,3 +502,78 @@ function View() {
|
|
|
516
502
|
},
|
|
517
503
|
},
|
|
518
504
|
};
|
|
505
|
+
|
|
506
|
+
/**
|
|
507
|
+
* The component exposes token groups for all 5 sentiment types (`negative`, `warning`, `neutral`, `proposition` and `success`) each of them with two emphasis levels (`base` and `elevated`).
|
|
508
|
+
*/
|
|
509
|
+
export const ExposedTokens: Story = {
|
|
510
|
+
render: () => (
|
|
511
|
+
<section style={{ display: 'flex', flexDirection: 'column', gap: '32px', maxWidth: '100%' }}>
|
|
512
|
+
{sentiments.map((sentiment) =>
|
|
513
|
+
emphasisLevels.map((emphasis) => (
|
|
514
|
+
<SentimentSurface
|
|
515
|
+
key={`${sentiment}-${emphasis}`}
|
|
516
|
+
sentiment={sentiment}
|
|
517
|
+
emphasis={emphasis}
|
|
518
|
+
style={{
|
|
519
|
+
padding: '24px',
|
|
520
|
+
borderRadius: '16px',
|
|
521
|
+
}}
|
|
522
|
+
>
|
|
523
|
+
<h4
|
|
524
|
+
className="d-block m-b-2 text-capitalize np-text-title-body"
|
|
525
|
+
style={{
|
|
526
|
+
color: 'inherit',
|
|
527
|
+
}}
|
|
528
|
+
>
|
|
529
|
+
{sentiment} - {emphasis}
|
|
530
|
+
</h4>
|
|
531
|
+
<div
|
|
532
|
+
style={{
|
|
533
|
+
display: 'grid',
|
|
534
|
+
gridTemplateColumns: 'repeat(auto-fit, minmax(300px, 1fr))',
|
|
535
|
+
gap: '24px',
|
|
536
|
+
}}
|
|
537
|
+
>
|
|
538
|
+
{tokenCategories.map((category) => (
|
|
539
|
+
<div key={category.name}>
|
|
540
|
+
<h5
|
|
541
|
+
style={{
|
|
542
|
+
color: 'inherit',
|
|
543
|
+
fontSize: '12px',
|
|
544
|
+
fontWeight: 600,
|
|
545
|
+
marginBottom: '8px',
|
|
546
|
+
textTransform: 'uppercase',
|
|
547
|
+
letterSpacing: '0.5px',
|
|
548
|
+
opacity: 0.8,
|
|
549
|
+
}}
|
|
550
|
+
>
|
|
551
|
+
{category.name}
|
|
552
|
+
</h5>
|
|
553
|
+
{category.tokens.map((token) => (
|
|
554
|
+
<TokenSwatch key={token} token={token} />
|
|
555
|
+
))}
|
|
556
|
+
</div>
|
|
557
|
+
))}
|
|
558
|
+
</div>
|
|
559
|
+
</SentimentSurface>
|
|
560
|
+
)),
|
|
561
|
+
)}
|
|
562
|
+
</section>
|
|
563
|
+
),
|
|
564
|
+
parameters: {
|
|
565
|
+
controls: { disable: true },
|
|
566
|
+
docs: {
|
|
567
|
+
canvas: {
|
|
568
|
+
sourceState: 'hidden',
|
|
569
|
+
},
|
|
570
|
+
},
|
|
571
|
+
},
|
|
572
|
+
decorators: [
|
|
573
|
+
(Story: () => JSX.Element) => (
|
|
574
|
+
<div style={{ padding: '2rem', maxWidth: '1200px' }}>
|
|
575
|
+
<Story />
|
|
576
|
+
</div>
|
|
577
|
+
),
|
|
578
|
+
],
|
|
579
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
2
|
import { ThemeProvider, type Theming } from '@wise/components-theming';
|
|
3
|
-
import SentimentSurface from './SentimentSurface';
|
|
4
3
|
import Button from '../button';
|
|
4
|
+
import SentimentSurface from './SentimentSurface';
|
|
5
5
|
import type { Sentiment, Emphasis } from './SentimentSurface.types';
|
|
6
6
|
|
|
7
7
|
const sentiments: Sentiment[] = ['negative', 'success', 'proposition', 'warning', 'neutral'];
|
|
@@ -21,13 +21,14 @@ const screenModes: Theming['screenMode'][] = ['light', 'dark'];
|
|
|
21
21
|
|
|
22
22
|
export default {
|
|
23
23
|
component: SentimentSurface,
|
|
24
|
-
title: '
|
|
24
|
+
title: 'Foundations/SentimentSurface/Tests',
|
|
25
25
|
tags: ['!autodocs'],
|
|
26
26
|
} satisfies Meta<typeof SentimentSurface>;
|
|
27
27
|
|
|
28
28
|
type Story = StoryObj<typeof SentimentSurface>;
|
|
29
29
|
|
|
30
30
|
export const NestedSentiments: Story = {
|
|
31
|
+
tags: ['!dev'],
|
|
31
32
|
render: () => (
|
|
32
33
|
<div style={{ display: 'flex', flexDirection: 'column', gap: '24px' }}>
|
|
33
34
|
<SentimentSurface sentiment="negative" emphasis="base">
|
|
@@ -86,6 +87,9 @@ const ButtonsGrid = () => (
|
|
|
86
87
|
<Button v2 priority="secondary-neutral" style={{ marginLeft: '8px' }}>
|
|
87
88
|
Secondary Neutral
|
|
88
89
|
</Button>
|
|
90
|
+
<Button v2 priority="tertiary" style={{ marginLeft: '8px' }}>
|
|
91
|
+
Tertiary
|
|
92
|
+
</Button>
|
|
89
93
|
</SentimentSurface>
|
|
90
94
|
)),
|
|
91
95
|
)}
|