@transferwise/components 46.122.1 → 46.123.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.
Files changed (69) hide show
  1. package/build/inputs/SelectInput.js +32 -1
  2. package/build/inputs/SelectInput.js.map +1 -1
  3. package/build/inputs/SelectInput.mjs +32 -1
  4. package/build/inputs/SelectInput.mjs.map +1 -1
  5. package/build/main.css +97 -77
  6. package/build/prompt/InlinePrompt/InlinePrompt.js +8 -10
  7. package/build/prompt/InlinePrompt/InlinePrompt.js.map +1 -1
  8. package/build/prompt/InlinePrompt/InlinePrompt.mjs +9 -11
  9. package/build/prompt/InlinePrompt/InlinePrompt.mjs.map +1 -1
  10. package/build/prompt/PrimitivePrompt/PrimitivePrompt.js +45 -0
  11. package/build/prompt/PrimitivePrompt/PrimitivePrompt.js.map +1 -0
  12. package/build/prompt/PrimitivePrompt/PrimitivePrompt.mjs +43 -0
  13. package/build/prompt/PrimitivePrompt/PrimitivePrompt.mjs.map +1 -0
  14. package/build/styles/main.css +97 -77
  15. package/build/styles/prompt/InlinePrompt/InlinePrompt.css +2 -23
  16. package/build/styles/prompt/PrimitivePrompt/PrimitivePrompt.css +41 -0
  17. package/build/types/inputs/SelectInput.d.ts +2 -1
  18. package/build/types/inputs/SelectInput.d.ts.map +1 -1
  19. package/build/types/prompt/InlinePrompt/InlinePrompt.d.ts +1 -1
  20. package/build/types/prompt/InlinePrompt/InlinePrompt.d.ts.map +1 -1
  21. package/build/types/prompt/PrimitivePrompt/PrimitivePrompt.d.ts +30 -0
  22. package/build/types/prompt/PrimitivePrompt/PrimitivePrompt.d.ts.map +1 -0
  23. package/build/types/prompt/PrimitivePrompt/index.d.ts +3 -0
  24. package/build/types/prompt/PrimitivePrompt/index.d.ts.map +1 -0
  25. package/package.json +8 -8
  26. package/src/alert/Alert.tests.story.tsx +1 -0
  27. package/src/button/_stories/Button.brightGreen.tests.story.tsx +1 -1
  28. package/src/button/_stories/Button.dark.tests.story.tsx +1 -1
  29. package/src/button/_stories/Button.default.tests.story.tsx +1 -1
  30. package/src/button/_stories/Button.forestGreen.tests.story.tsx +1 -1
  31. package/src/button/_stories/Button.tests.story.tsx +1 -1
  32. package/src/circularButton/CircularButton.tests.story.tsx +1 -0
  33. package/src/dateInput/DateInput.tests.story.tsx +1 -0
  34. package/src/dateLookup/DateLookup.tests.story.tsx +1 -0
  35. package/src/header/Header.tests.story.tsx +1 -1
  36. package/src/inputs/SelectInput.spec.tsx +54 -0
  37. package/src/inputs/SelectInput.story.tsx +68 -0
  38. package/src/inputs/SelectInput.tsx +57 -6
  39. package/src/legacylistItem/LegacyListItem.tests.story.tsx +1 -1
  40. package/src/listItem/ListItem.spec.tsx +6 -8
  41. package/src/listItem/_stories/ListItem.focus.test.story.tsx +1 -1
  42. package/src/listItem/_stories/ListItem.layout.test.story.tsx +1 -1
  43. package/src/listItem/_stories/variants/ListItem.brightGreen.test.story.tsx +1 -1
  44. package/src/listItem/_stories/variants/ListItem.dark.test.story.tsx +1 -1
  45. package/src/listItem/_stories/variants/ListItem.forestGreen.test.story.tsx +1 -1
  46. package/src/listItem/_stories/variants/ListItem.medium.test.story.tsx +1 -1
  47. package/src/listItem/_stories/variants/ListItem.neutral.test.story.tsx +1 -1
  48. package/src/listItem/_stories/variants/ListItem.personal.test.story.tsx +1 -1
  49. package/src/listItem/_stories/variants/ListItem.rtl.test.story.tsx +1 -1
  50. package/src/listItem/_stories/variants/ListItem.small.test.story.tsx +1 -1
  51. package/src/main.css +97 -77
  52. package/src/main.less +2 -1
  53. package/src/prompt/InlinePrompt/InlinePrompt.css +2 -23
  54. package/src/prompt/InlinePrompt/InlinePrompt.less +3 -18
  55. package/src/prompt/InlinePrompt/InlinePrompt.spec.tsx +6 -6
  56. package/src/prompt/InlinePrompt/InlinePrompt.tsx +6 -7
  57. package/src/prompt/PrimitivePrompt/PrimitivePrompt.css +41 -0
  58. package/src/prompt/PrimitivePrompt/PrimitivePrompt.less +37 -0
  59. package/src/prompt/PrimitivePrompt/PrimitivePrompt.tsx +70 -0
  60. package/src/prompt/PrimitivePrompt/index.ts +2 -0
  61. package/src/radioGroup/RadioGroup.test.story.tsx +1 -1
  62. package/src/sentimentSurface/SentimentSurface.tests.story.tsx +1 -1
  63. package/src/snackbar/Snackbar.tests.story.tsx +1 -1
  64. package/src/stepper/Stepper.tests.story.tsx +1 -0
  65. package/src/summary/Summary.tests.story.tsx +1 -0
  66. package/src/title/Title.test.story.tsx +1 -0
  67. package/src/upload/Upload.tests.story.tsx +1 -0
  68. package/src/uploadInput/UploadInput.tests.story.tsx +1 -0
  69. package/src/withId/withId.story.tsx +1 -1
@@ -22,11 +22,11 @@ import { clsx } from 'clsx';
22
22
  import 'react';
23
23
  import 'react-intl';
24
24
  import '../../common/closeButton/CloseButton.messages.mjs';
25
- import { jsxs, jsx } from 'react/jsx-runtime';
25
+ import { jsx } from 'react/jsx-runtime';
26
26
  import ProcessIndicator from '../../processIndicator/ProcessIndicator.mjs';
27
27
  import StatusIcon from '../../statusIcon/StatusIcon.mjs';
28
28
  import Body from '../../body/Body.mjs';
29
- import SentimentSurface from '../../sentimentSurface/SentimentSurface.mjs';
29
+ import { PrimitivePrompt } from '../PrimitivePrompt/PrimitivePrompt.mjs';
30
30
 
31
31
  const InlinePrompt = ({
32
32
  sentiment = Sentiment.POSITIVE,
@@ -38,7 +38,7 @@ const InlinePrompt = ({
38
38
  mediaLabel,
39
39
  width = 'auto',
40
40
  'data-testid': dataTestId,
41
- ...rest
41
+ ...restProps
42
42
  }) => {
43
43
  const surfaceSentiment = sentiment === Sentiment.POSITIVE ? 'success' : sentiment;
44
44
  const renderMedia = () => {
@@ -67,21 +67,19 @@ const InlinePrompt = ({
67
67
  iconLabel: mediaLabel
68
68
  });
69
69
  };
70
- return /*#__PURE__*/jsxs(SentimentSurface, {
70
+ return /*#__PURE__*/jsx(PrimitivePrompt, {
71
71
  sentiment: surfaceSentiment,
72
+ media: renderMedia(),
72
73
  "data-testid": dataTestId,
73
- className: clsx('wds-inline-prompt', `wds-inline-prompt--${sentiment}`, {
74
+ className: clsx('wds-inline-prompt', {
74
75
  'wds-inline-prompt--full-width': width === 'full',
75
76
  'wds-inline-prompt--muted': muted,
76
77
  'wds-inline-prompt--loading': loading
77
78
  }, className),
78
- ...rest,
79
- children: [/*#__PURE__*/jsx("div", {
80
- className: "wds-inline-prompt__media-wrapper",
81
- children: renderMedia()
82
- }), /*#__PURE__*/jsx(Body, {
79
+ ...restProps,
80
+ children: /*#__PURE__*/jsx(Body, {
83
81
  children: children
84
- })]
82
+ })
85
83
  });
86
84
  };
87
85
 
@@ -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 all sentiments. If the sentiment uses StatusIcon by default, it will be\n * replaced by a plain icon.\n */\n media?: React.ReactNode;\n /**\n * Override for the sentiment's-derived, default, accessible name announced by the screen readers.\n */\n mediaLabel?: string;\n /**\n * Defines the sizing strategy of the prompt component - either hugging the content or taking full width of the container.\n * @default auto\n */\n width?: 'auto' | 'full';\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 mediaLabel,\n width = 'auto',\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\" title={mediaLabel} />;\n }\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 === 'proposition') {\n return media || <GiftBox title={mediaLabel} />;\n }\n\n return media || <StatusIcon size={16} sentiment={sentiment} iconLabel={mediaLabel} />;\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--full-width': width === 'full',\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","mediaLabel","width","dataTestId","rest","surfaceSentiment","renderMedia","_jsx","BackslashCircle","size","title","ProcessIndicator","GiftBox","StatusIcon","iconLabel","_jsxs","SentimentSurface","clsx","Body"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoDO,MAAMA,YAAY,GAAGA,CAAC;EAC3BC,SAAS,GAAGC,SAAS,CAACC,QAAQ;AAC9BC,EAAAA,KAAK,GAAG,KAAK;AACbC,EAAAA,OA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,MAAM;AACjD,MAAA,0BAA0B,EAAEN,KAAK;AACjC,MAAA,4BAA4B,EAAEC;KAC/B,EACDC,SAAS,CACT;AAAA,IAAA,GACEM,IAAI;AAAAL,IAAAA,QAAA,gBAERQ,GAAA,CAAA,KAAA,EAAA;AAAKT,MAAAA,SAAS,EAAC,kCAAkC;MAAAC,QAAA,EAAEO,WAAW;AAAE,KAAM,CACtE,eAAAC,GAAA,CAACW,IAAI,EAAA;AAAAnB,MAAAA,QAAA,EAAEA;AAAQ,KAAO,CACxB;AAAA,GAAkB,CAAC;AAEvB;;;;"}
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 { PrimitivePrompt } from '../PrimitivePrompt';\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 all sentiments. If the sentiment uses StatusIcon by default, it will be\n * replaced by a plain icon.\n */\n media?: React.ReactNode;\n /**\n * Override for the sentiment's-derived, default, accessible name announced by the screen readers.\n */\n mediaLabel?: string;\n /**\n * Defines the sizing strategy of the prompt component - either hugging the content or taking full width of the container.\n * @default auto\n */\n width?: 'auto' | 'full';\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 mediaLabel,\n width = 'auto',\n 'data-testid': dataTestId,\n ...restProps\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\" title={mediaLabel} />;\n }\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 === 'proposition') {\n return media || <GiftBox title={mediaLabel} />;\n }\n\n return media || <StatusIcon size={16} sentiment={sentiment} iconLabel={mediaLabel} />;\n };\n\n return (\n <PrimitivePrompt\n sentiment={surfaceSentiment}\n media={renderMedia()}\n data-testid={dataTestId}\n className={clsx(\n 'wds-inline-prompt',\n {\n 'wds-inline-prompt--full-width': width === 'full',\n 'wds-inline-prompt--muted': muted,\n 'wds-inline-prompt--loading': loading,\n },\n className,\n )}\n {...restProps}\n >\n <Body>{children}</Body>\n </PrimitivePrompt>\n );\n};\n"],"names":["InlinePrompt","sentiment","Sentiment","POSITIVE","muted","loading","className","children","media","mediaLabel","width","dataTestId","restProps","surfaceSentiment","renderMedia","_jsx","BackslashCircle","size","title","ProcessIndicator","GiftBox","StatusIcon","iconLabel","PrimitivePrompt","clsx","Body"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoDO,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;EACZC,U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,SAAS,CACT;AAAA,IAAA,GACEM,SAAS;IAAAL,QAAA,eAEbQ,GAAA,CAACU,IAAI,EAAA;AAAAlB,MAAAA,QAAA,EAAEA;KAAe;AACxB,GAAiB,CAAC;AAEtB;;;;"}
@@ -0,0 +1,45 @@
1
+ 'use strict';
2
+
3
+ var icons = require('@transferwise/icons');
4
+ var clsx = require('clsx');
5
+ var SentimentSurface = require('../../sentimentSurface/SentimentSurface.js');
6
+ var IconButton = require('../../iconButton/IconButton.js');
7
+ var reactIntl = require('react-intl');
8
+ var CloseButton_messages = require('../../common/closeButton/CloseButton.messages.js');
9
+ var jsxRuntime = require('react/jsx-runtime');
10
+
11
+ const PrimitivePrompt = ({
12
+ sentiment = 'success',
13
+ media,
14
+ actions,
15
+ onDismiss,
16
+ className,
17
+ children,
18
+ ...restProps
19
+ }) => {
20
+ const intl = reactIntl.useIntl();
21
+ return /*#__PURE__*/jsxRuntime.jsxs(SentimentSurface.default, {
22
+ sentiment: sentiment,
23
+ className: clsx.clsx('wds-prompt', `wds-prompt--${sentiment}`, className),
24
+ ...restProps,
25
+ children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
26
+ className: "wds-prompt__content-wrapper",
27
+ children: [/*#__PURE__*/jsxRuntime.jsx("div", {
28
+ className: clsx.clsx('wds-prompt__media-wrapper'),
29
+ children: media
30
+ }), children, actions && /*#__PURE__*/jsxRuntime.jsx("div", {
31
+ className: "wds-prompt__actions-wrapper",
32
+ children: actions
33
+ })]
34
+ }), onDismiss && /*#__PURE__*/jsxRuntime.jsx(IconButton.default, {
35
+ size: 24,
36
+ priority: "secondary",
37
+ "aria-label": intl.formatMessage(CloseButton_messages.default.ariaLabel),
38
+ onClick: onDismiss,
39
+ children: /*#__PURE__*/jsxRuntime.jsx(icons.Cross, {})
40
+ })]
41
+ });
42
+ };
43
+
44
+ exports.PrimitivePrompt = PrimitivePrompt;
45
+ //# sourceMappingURL=PrimitivePrompt.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PrimitivePrompt.js","sources":["../../../src/prompt/PrimitivePrompt/PrimitivePrompt.tsx"],"sourcesContent":["import { Cross } from '@transferwise/icons';\nimport { clsx } from 'clsx';\nimport SentimentSurface, { Sentiment } from '../../sentimentSurface';\nimport IconButton from '../../iconButton';\nimport { useIntl } from 'react-intl';\nimport closeBtnMessages from '../../common/closeButton/CloseButton.messages';\nimport { ReactNode } from 'react';\n\nexport type PrimitivePromptProps = {\n /**\n * The sentiment determines the colour scheme\n * @default success\n */\n sentiment?: Sentiment;\n /**\n * Media to be displayed on the prompt (icon/image/etc).\n */\n media: ReactNode;\n /**\n * Any actions to be displayed on the prompt.\n */\n actions?: ReactNode;\n /**\n * Handler called when the close button is clicked. If not provided, then the close button is hidden.\n */\n onDismiss?: () => void;\n id?: string;\n className?: string;\n 'data-testid'?: string;\n children: ReactNode;\n};\n\n/**\n * PrimitivePrompt is a low-level component that provides the structure, sentiment support and styling for various prompts.\n * Uses several css variables to handle styling from within the consuming component, e.g. --Prompt-padding. */\nexport const PrimitivePrompt = ({\n sentiment = 'success',\n media,\n actions,\n onDismiss,\n className,\n children,\n ...restProps\n}: PrimitivePromptProps) => {\n const intl = useIntl();\n\n return (\n <SentimentSurface\n sentiment={sentiment}\n className={clsx('wds-prompt', `wds-prompt--${sentiment}`, className)}\n {...restProps}\n >\n <div className=\"wds-prompt__content-wrapper\">\n <div className={clsx('wds-prompt__media-wrapper')}>{media}</div>\n {children}\n {actions && <div className=\"wds-prompt__actions-wrapper\">{actions}</div>}\n </div>\n {onDismiss && (\n <IconButton\n size={24}\n priority=\"secondary\"\n aria-label={intl.formatMessage(closeBtnMessages.ariaLabel)}\n onClick={onDismiss}\n >\n <Cross />\n </IconButton>\n )}\n </SentimentSurface>\n );\n};\n"],"names":["PrimitivePrompt","sentiment","media","actions","onDismiss","className","children","restProps","intl","useIntl","_jsxs","SentimentSurface","clsx","_jsx","IconButton","size","priority","formatMessage","closeBtnMessages","ariaLabel","onClick","Cross"],"mappings":";;;;;;;;;;AAmCO,MAAMA,eAAe,GAAGA,CAAC;AAC9BC,EAAAA,SAAS,GAAG,SAAS;EACrBC,KAAK;EACLC,OAAO;EACPC,SAAS;EACTC,SAAS;EACTC,QAAQ;EACR,GAAGC;AAAS,CACS,KAAI;AACzB,EAAA,MAAMC,IAAI,GAAGC,iBAAO,EAAE;EAEtB,oBACEC,eAAA,CAACC,wBAAgB,EAAA;AACfV,IAAAA,SAAS,EAAEA,SAAU;IACrBI,SAAS,EAAEO,SAAI,CAAC,YAAY,EAAE,eAAeX,SAAS,CAAA,CAAE,EAAEI,SAAS,CAAE;AAAA,IAAA,GACjEE,SAAS;AAAAD,IAAAA,QAAA,gBAEbI,eAAA,CAAA,KAAA,EAAA;AAAKL,MAAAA,SAAS,EAAC,6BAA6B;AAAAC,MAAAA,QAAA,gBAC1CO,cAAA,CAAA,KAAA,EAAA;AAAKR,QAAAA,SAAS,EAAEO,SAAI,CAAC,2BAA2B,CAAE;AAAAN,QAAAA,QAAA,EAAEJ;AAAK,OAAM,CAC/D,EAACI,QAAQ,EACRH,OAAO,iBAAIU,cAAA,CAAA,KAAA,EAAA;AAAKR,QAAAA,SAAS,EAAC,6BAA6B;AAAAC,QAAAA,QAAA,EAAEH;AAAO,OAAM,CAAC;AAAA,KACrE,CACL,EAACC,SAAS,iBACRS,cAAA,CAACC,kBAAU,EAAA;AACTC,MAAAA,IAAI,EAAE,EAAG;AACTC,MAAAA,QAAQ,EAAC,WAAW;AACpB,MAAA,YAAA,EAAYR,IAAI,CAACS,aAAa,CAACC,4BAAgB,CAACC,SAAS,CAAE;AAC3DC,MAAAA,OAAO,EAAEhB,SAAU;AAAAE,MAAAA,QAAA,eAEnBO,cAAA,CAACQ,WAAK,EAAA,EAAA;AACR,KAAY,CACb;AAAA,GACe,CAAC;AAEvB;;;;"}
@@ -0,0 +1,43 @@
1
+ import { Cross } from '@transferwise/icons';
2
+ import { clsx } from 'clsx';
3
+ import SentimentSurface from '../../sentimentSurface/SentimentSurface.mjs';
4
+ import IconButton from '../../iconButton/IconButton.mjs';
5
+ import { useIntl } from 'react-intl';
6
+ import closeBtnMessages from '../../common/closeButton/CloseButton.messages.mjs';
7
+ import { jsxs, jsx } from 'react/jsx-runtime';
8
+
9
+ const PrimitivePrompt = ({
10
+ sentiment = 'success',
11
+ media,
12
+ actions,
13
+ onDismiss,
14
+ className,
15
+ children,
16
+ ...restProps
17
+ }) => {
18
+ const intl = useIntl();
19
+ return /*#__PURE__*/jsxs(SentimentSurface, {
20
+ sentiment: sentiment,
21
+ className: clsx('wds-prompt', `wds-prompt--${sentiment}`, className),
22
+ ...restProps,
23
+ children: [/*#__PURE__*/jsxs("div", {
24
+ className: "wds-prompt__content-wrapper",
25
+ children: [/*#__PURE__*/jsx("div", {
26
+ className: clsx('wds-prompt__media-wrapper'),
27
+ children: media
28
+ }), children, actions && /*#__PURE__*/jsx("div", {
29
+ className: "wds-prompt__actions-wrapper",
30
+ children: actions
31
+ })]
32
+ }), onDismiss && /*#__PURE__*/jsx(IconButton, {
33
+ size: 24,
34
+ priority: "secondary",
35
+ "aria-label": intl.formatMessage(closeBtnMessages.ariaLabel),
36
+ onClick: onDismiss,
37
+ children: /*#__PURE__*/jsx(Cross, {})
38
+ })]
39
+ });
40
+ };
41
+
42
+ export { PrimitivePrompt };
43
+ //# sourceMappingURL=PrimitivePrompt.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PrimitivePrompt.mjs","sources":["../../../src/prompt/PrimitivePrompt/PrimitivePrompt.tsx"],"sourcesContent":["import { Cross } from '@transferwise/icons';\nimport { clsx } from 'clsx';\nimport SentimentSurface, { Sentiment } from '../../sentimentSurface';\nimport IconButton from '../../iconButton';\nimport { useIntl } from 'react-intl';\nimport closeBtnMessages from '../../common/closeButton/CloseButton.messages';\nimport { ReactNode } from 'react';\n\nexport type PrimitivePromptProps = {\n /**\n * The sentiment determines the colour scheme\n * @default success\n */\n sentiment?: Sentiment;\n /**\n * Media to be displayed on the prompt (icon/image/etc).\n */\n media: ReactNode;\n /**\n * Any actions to be displayed on the prompt.\n */\n actions?: ReactNode;\n /**\n * Handler called when the close button is clicked. If not provided, then the close button is hidden.\n */\n onDismiss?: () => void;\n id?: string;\n className?: string;\n 'data-testid'?: string;\n children: ReactNode;\n};\n\n/**\n * PrimitivePrompt is a low-level component that provides the structure, sentiment support and styling for various prompts.\n * Uses several css variables to handle styling from within the consuming component, e.g. --Prompt-padding. */\nexport const PrimitivePrompt = ({\n sentiment = 'success',\n media,\n actions,\n onDismiss,\n className,\n children,\n ...restProps\n}: PrimitivePromptProps) => {\n const intl = useIntl();\n\n return (\n <SentimentSurface\n sentiment={sentiment}\n className={clsx('wds-prompt', `wds-prompt--${sentiment}`, className)}\n {...restProps}\n >\n <div className=\"wds-prompt__content-wrapper\">\n <div className={clsx('wds-prompt__media-wrapper')}>{media}</div>\n {children}\n {actions && <div className=\"wds-prompt__actions-wrapper\">{actions}</div>}\n </div>\n {onDismiss && (\n <IconButton\n size={24}\n priority=\"secondary\"\n aria-label={intl.formatMessage(closeBtnMessages.ariaLabel)}\n onClick={onDismiss}\n >\n <Cross />\n </IconButton>\n )}\n </SentimentSurface>\n );\n};\n"],"names":["PrimitivePrompt","sentiment","media","actions","onDismiss","className","children","restProps","intl","useIntl","_jsxs","SentimentSurface","clsx","_jsx","IconButton","size","priority","formatMessage","closeBtnMessages","ariaLabel","onClick","Cross"],"mappings":";;;;;;;;AAmCO,MAAMA,eAAe,GAAGA,CAAC;AAC9BC,EAAAA,SAAS,GAAG,SAAS;EACrBC,KAAK;EACLC,OAAO;EACPC,SAAS;EACTC,SAAS;EACTC,QAAQ;EACR,GAAGC;AAAS,CACS,KAAI;AACzB,EAAA,MAAMC,IAAI,GAAGC,OAAO,EAAE;EAEtB,oBACEC,IAAA,CAACC,gBAAgB,EAAA;AACfV,IAAAA,SAAS,EAAEA,SAAU;IACrBI,SAAS,EAAEO,IAAI,CAAC,YAAY,EAAE,eAAeX,SAAS,CAAA,CAAE,EAAEI,SAAS,CAAE;AAAA,IAAA,GACjEE,SAAS;AAAAD,IAAAA,QAAA,gBAEbI,IAAA,CAAA,KAAA,EAAA;AAAKL,MAAAA,SAAS,EAAC,6BAA6B;AAAAC,MAAAA,QAAA,gBAC1CO,GAAA,CAAA,KAAA,EAAA;AAAKR,QAAAA,SAAS,EAAEO,IAAI,CAAC,2BAA2B,CAAE;AAAAN,QAAAA,QAAA,EAAEJ;AAAK,OAAM,CAC/D,EAACI,QAAQ,EACRH,OAAO,iBAAIU,GAAA,CAAA,KAAA,EAAA;AAAKR,QAAAA,SAAS,EAAC,6BAA6B;AAAAC,QAAAA,QAAA,EAAEH;AAAO,OAAM,CAAC;AAAA,KACrE,CACL,EAACC,SAAS,iBACRS,GAAA,CAACC,UAAU,EAAA;AACTC,MAAAA,IAAI,EAAE,EAAG;AACTC,MAAAA,QAAQ,EAAC,WAAW;AACpB,MAAA,YAAA,EAAYR,IAAI,CAACS,aAAa,CAACC,gBAAgB,CAACC,SAAS,CAAE;AAC3DC,MAAAA,OAAO,EAAEhB,SAAU;AAAAE,MAAAA,QAAA,eAEnBO,GAAA,CAACQ,KAAK,EAAA,EAAA;AACR,KAAY,CACb;AAAA,GACe,CAAC;AAEvB;;;;"}
@@ -920,83 +920,6 @@
920
920
  .np-theme-personal .tw-avatar--outlined:not(.disabled):not(:disabled):hover {
921
921
  border-color: var(--color-interactive-primary-hover);
922
922
  }
923
- .wds-inline-prompt {
924
- display: inline-flex;
925
- text-align: left;
926
- padding-top: calc(8px / 2);
927
- padding-top: calc(var(--padding-x-small) / 2);
928
- padding-bottom: calc(8px / 2);
929
- padding-bottom: calc(var(--padding-x-small) / 2);
930
- padding-left: calc(8px - 1px);
931
- padding-left: calc(var(--padding-x-small) - 1px);
932
- padding-right: 8px;
933
- padding-right: var(--padding-x-small);
934
- border-radius: 10px;
935
- border-radius: var(--radius-small);
936
- word-break: break-word;
937
- word-wrap: break-word;
938
- }
939
- .wds-inline-prompt:has(a),
940
- .wds-inline-prompt:has(button) {
941
- position: relative;
942
- z-index: 1;
943
- }
944
- .wds-inline-prompt:has(a):hover,
945
- .wds-inline-prompt:has(button):hover {
946
- background-color: var(--color-sentiment-background-surface-hover);
947
- }
948
- .wds-inline-prompt:has(a):active,
949
- .wds-inline-prompt:has(button):active {
950
- background-color: var(--color-sentiment-background-surface-active);
951
- }
952
- .wds-inline-prompt--full-width {
953
- width: 100%;
954
- }
955
- .wds-inline-prompt--muted {
956
- opacity: 0.93;
957
- filter: grayscale(1);
958
- }
959
- .wds-inline-prompt a,
960
- .wds-inline-prompt button {
961
- color: var(--color-sentiment-content-primary);
962
- text-underline-offset: calc(4px / 2);
963
- text-underline-offset: calc(var(--size-4) / 2);
964
- }
965
- .wds-inline-prompt a:hover,
966
- .wds-inline-prompt button:hover {
967
- color: var(--color-sentiment-content-primary-hover);
968
- }
969
- .wds-inline-prompt a:active,
970
- .wds-inline-prompt button:active {
971
- color: var(--color-sentiment-content-primary-active);
972
- }
973
- .wds-inline-prompt a:first-of-type:before,
974
- .wds-inline-prompt button:first-of-type:before {
975
- content: "";
976
- position: absolute;
977
- inset: 0;
978
- }
979
- .wds-inline-prompt__media-wrapper {
980
- padding-right: calc(12px / 2);
981
- padding-right: calc(var(--size-12) / 2);
982
- padding-top: calc(4px - 1px);
983
- padding-top: calc(var(--size-4) - 1px);
984
- padding-bottom: calc(4px - 1px);
985
- padding-bottom: calc(var(--size-4) - 1px);
986
- }
987
- .wds-inline-prompt__media-wrapper .tw-icon-tags,
988
- .wds-inline-prompt__media-wrapper .tw-icon-confetti {
989
- color: var(--color-sentiment-content-primary);
990
- }
991
- .wds-inline-prompt .wds-inline-prompt-process-indicator {
992
- width: 16px;
993
- width: var(--size-16);
994
- height: 16px;
995
- height: var(--size-16);
996
- }
997
- .wds-inline-prompt .wds-inline-prompt-process-indicator .process-circle {
998
- stroke: currentColor;
999
- }
1000
923
  .np-dot {
1001
924
  --np-dot-size: 14px;
1002
925
  position: relative;
@@ -5412,6 +5335,103 @@ html:not([dir="rtl"]) .np-navigation-option {
5412
5335
  .np-CardGroup .np-Card.np-Card--promoCard {
5413
5336
  max-width: 100%;
5414
5337
  }
5338
+ .wds-prompt {
5339
+ border-radius: 10px;
5340
+ border-radius: var(--radius-small);
5341
+ display: flex;
5342
+ word-wrap: break-word;
5343
+ padding: 8px;
5344
+ padding: var(--Prompt-padding, var(--padding-x-small));
5345
+ text-align: left;
5346
+ word-break: break-word;
5347
+ }
5348
+ .wds-prompt__content-wrapper {
5349
+ display: grid;
5350
+ grid-gap: 16px;
5351
+ grid-gap: var(--Prompt-gap, var(--size-16));
5352
+ gap: 16px;
5353
+ gap: var(--Prompt-gap, var(--size-16));
5354
+ grid-template-columns: auto 1fr;
5355
+ width: 100%;
5356
+ }
5357
+ .wds-prompt__media-wrapper {
5358
+ align-self: flex-start;
5359
+ padding-top: calc(4px - 1px);
5360
+ padding-top: calc(var(--size-4) - 1px);
5361
+ }
5362
+ .wds-prompt__media-wrapper .tw-icon-tags,
5363
+ .wds-prompt__media-wrapper .tw-icon-confetti {
5364
+ color: var(--color-sentiment-content-primary);
5365
+ }
5366
+ .wds-prompt__actions-wrapper {
5367
+ display: flex;
5368
+ flex-wrap: wrap;
5369
+ gap: 8px;
5370
+ gap: var(--Prompt-actions-gap, var(--size-8));
5371
+ grid-column-start: 2;
5372
+ }
5373
+ @media (max-width: 991px) {
5374
+ .wds-prompt__actions-wrapper {
5375
+ grid-column: span 2;
5376
+ width: 100%;
5377
+ }
5378
+ }
5379
+ .wds-inline-prompt {
5380
+ --Prompt-gap: calc(var(--size-12) / 2);
5381
+ --Prompt-padding: calc(var(--padding-x-small) / 2) var(--padding-x-small);
5382
+ display: inline-flex;
5383
+ border-radius: 10px;
5384
+ border-radius: var(--radius-small);
5385
+ }
5386
+ .wds-inline-prompt:has(a),
5387
+ .wds-inline-prompt:has(button) {
5388
+ position: relative;
5389
+ z-index: 1;
5390
+ }
5391
+ .wds-inline-prompt:has(a):hover,
5392
+ .wds-inline-prompt:has(button):hover {
5393
+ background-color: var(--color-sentiment-background-surface-hover);
5394
+ }
5395
+ .wds-inline-prompt:has(a):active,
5396
+ .wds-inline-prompt:has(button):active {
5397
+ background-color: var(--color-sentiment-background-surface-active);
5398
+ }
5399
+ .wds-inline-prompt--full-width {
5400
+ width: 100%;
5401
+ }
5402
+ .wds-inline-prompt--muted {
5403
+ opacity: 0.93;
5404
+ filter: grayscale(1);
5405
+ }
5406
+ .wds-inline-prompt a,
5407
+ .wds-inline-prompt button {
5408
+ color: var(--color-sentiment-content-primary);
5409
+ text-underline-offset: calc(4px / 2);
5410
+ text-underline-offset: calc(var(--size-4) / 2);
5411
+ }
5412
+ .wds-inline-prompt a:hover,
5413
+ .wds-inline-prompt button:hover {
5414
+ color: var(--color-sentiment-content-primary-hover);
5415
+ }
5416
+ .wds-inline-prompt a:active,
5417
+ .wds-inline-prompt button:active {
5418
+ color: var(--color-sentiment-content-primary-active);
5419
+ }
5420
+ .wds-inline-prompt a:first-of-type:before,
5421
+ .wds-inline-prompt button:first-of-type:before {
5422
+ content: "";
5423
+ position: absolute;
5424
+ inset: 0;
5425
+ }
5426
+ .wds-inline-prompt .wds-inline-prompt-process-indicator {
5427
+ width: 16px;
5428
+ width: var(--size-16);
5429
+ height: 16px;
5430
+ height: var(--size-16);
5431
+ }
5432
+ .wds-inline-prompt .wds-inline-prompt-process-indicator .process-circle {
5433
+ stroke: currentColor;
5434
+ }
5415
5435
  .wds-radio-group .np-radio:last-child label {
5416
5436
  margin-bottom: 0;
5417
5437
  }
@@ -1,18 +1,9 @@
1
1
  .wds-inline-prompt {
2
+ --Prompt-gap: calc(var(--size-12) / 2);
3
+ --Prompt-padding: calc(var(--padding-x-small) / 2) var(--padding-x-small);
2
4
  display: inline-flex;
3
- text-align: left;
4
- padding-top: calc(8px / 2);
5
- padding-top: calc(var(--padding-x-small) / 2);
6
- padding-bottom: calc(8px / 2);
7
- padding-bottom: calc(var(--padding-x-small) / 2);
8
- padding-left: calc(8px - 1px);
9
- padding-left: calc(var(--padding-x-small) - 1px);
10
- padding-right: 8px;
11
- padding-right: var(--padding-x-small);
12
5
  border-radius: 10px;
13
6
  border-radius: var(--radius-small);
14
- word-break: break-word;
15
- word-wrap: break-word;
16
7
  }
17
8
  .wds-inline-prompt:has(a),
18
9
  .wds-inline-prompt:has(button) {
@@ -54,18 +45,6 @@
54
45
  position: absolute;
55
46
  inset: 0;
56
47
  }
57
- .wds-inline-prompt__media-wrapper {
58
- padding-right: calc(12px / 2);
59
- padding-right: calc(var(--size-12) / 2);
60
- padding-top: calc(4px - 1px);
61
- padding-top: calc(var(--size-4) - 1px);
62
- padding-bottom: calc(4px - 1px);
63
- padding-bottom: calc(var(--size-4) - 1px);
64
- }
65
- .wds-inline-prompt__media-wrapper .tw-icon-tags,
66
- .wds-inline-prompt__media-wrapper .tw-icon-confetti {
67
- color: var(--color-sentiment-content-primary);
68
- }
69
48
  .wds-inline-prompt .wds-inline-prompt-process-indicator {
70
49
  width: 16px;
71
50
  width: var(--size-16);
@@ -0,0 +1,41 @@
1
+ .wds-prompt {
2
+ border-radius: 10px;
3
+ border-radius: var(--radius-small);
4
+ display: flex;
5
+ word-wrap: break-word;
6
+ padding: 8px;
7
+ padding: var(--Prompt-padding, var(--padding-x-small));
8
+ text-align: left;
9
+ word-break: break-word;
10
+ }
11
+ .wds-prompt__content-wrapper {
12
+ display: grid;
13
+ grid-gap: 16px;
14
+ grid-gap: var(--Prompt-gap, var(--size-16));
15
+ gap: 16px;
16
+ gap: var(--Prompt-gap, var(--size-16));
17
+ grid-template-columns: auto 1fr;
18
+ width: 100%;
19
+ }
20
+ .wds-prompt__media-wrapper {
21
+ align-self: flex-start;
22
+ padding-top: calc(4px - 1px);
23
+ padding-top: calc(var(--size-4) - 1px);
24
+ }
25
+ .wds-prompt__media-wrapper .tw-icon-tags,
26
+ .wds-prompt__media-wrapper .tw-icon-confetti {
27
+ color: var(--color-sentiment-content-primary);
28
+ }
29
+ .wds-prompt__actions-wrapper {
30
+ display: flex;
31
+ flex-wrap: wrap;
32
+ gap: 8px;
33
+ gap: var(--Prompt-actions-gap, var(--size-8));
34
+ grid-column-start: 2;
35
+ }
36
+ @media (max-width: 991px) {
37
+ .wds-prompt__actions-wrapper {
38
+ grid-column: span 2;
39
+ width: 100%;
40
+ }
41
+ }
@@ -69,6 +69,7 @@ export interface SelectInputProps<T = string, M extends boolean = false> {
69
69
  }) => React.ReactNode;
70
70
  filterable?: boolean;
71
71
  filterPlaceholder?: string;
72
+ sortFilteredOptions?: (a: SelectInputOptionItem<NonNullable<T>>, b: SelectInputOptionItem<NonNullable<T>>, searchQuery: string) => number;
72
73
  disabled?: boolean;
73
74
  size?: 'sm' | 'md' | 'lg';
74
75
  className?: string;
@@ -86,7 +87,7 @@ export interface SelectInputProps<T = string, M extends boolean = false> {
86
87
  onClose?: () => void;
87
88
  onClear?: () => void;
88
89
  }
89
- export declare function SelectInput<T = string, M extends boolean = false>({ id: idProp, parentId, name, multiple, placeholder, autocomplete, items, defaultValue, value: controlledValue, compareValues, renderValue, renderFooter, renderTrigger, filterable, filterPlaceholder, disabled, size, className, UNSAFE_triggerButtonProps, triggerRef: externalTriggerRef, onFilterChange, onChange, onOpen, onClose, onClear, }: SelectInputProps<T, M>): import("react").JSX.Element;
90
+ export declare function SelectInput<T = string, M extends boolean = false>({ id: idProp, parentId, name, multiple, placeholder, autocomplete, items, defaultValue, value: controlledValue, compareValues, renderValue, renderFooter, renderTrigger, filterable, filterPlaceholder, sortFilteredOptions, disabled, size, className, UNSAFE_triggerButtonProps, triggerRef: externalTriggerRef, onFilterChange, onChange, onOpen, onClose, onClear, }: SelectInputProps<T, M>): import("react").JSX.Element;
90
91
  type SelectInputTriggerButtonElementType = 'button' | React.ComponentType;
91
92
  export type SelectInputTriggerButtonProps<T extends SelectInputTriggerButtonElementType = 'button'> = Merge<React.ComponentPropsWithoutRef<T>, {
92
93
  as?: T;
@@ -1 +1 @@
1
- {"version":3,"file":"SelectInput.d.ts","source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MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACxB;AAED,wBAAgB,wBAAwB,CAAC,EACvC,KAAK,EACL,IAAI,EACJ,WAAW,EACX,IAAI,GACL,EAAE,6BAA6B,+BAiD/B"}
@@ -40,5 +40,5 @@ export type InlinePromptProps = {
40
40
  *
41
41
  * **NB:** It should be used in favour of `InlineAlert` which will be soon deprecated.
42
42
  */
43
- export declare const InlinePrompt: ({ sentiment, muted, loading, className, children, media, mediaLabel, width, "data-testid": dataTestId, ...rest }: InlinePromptProps) => import("react").JSX.Element;
43
+ export declare const InlinePrompt: ({ sentiment, muted, loading, className, children, media, mediaLabel, width, "data-testid": dataTestId, ...restProps }: InlinePromptProps) => import("react").JSX.Element;
44
44
  //# 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;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,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,kHAW1B,iBAAiB,gCA6CnB,CAAC"}
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;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,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,uHAW1B,iBAAiB,gCA4CnB,CAAC"}
@@ -0,0 +1,30 @@
1
+ import { Sentiment } from '../../sentimentSurface';
2
+ import { ReactNode } from 'react';
3
+ export type PrimitivePromptProps = {
4
+ /**
5
+ * The sentiment determines the colour scheme
6
+ * @default success
7
+ */
8
+ sentiment?: Sentiment;
9
+ /**
10
+ * Media to be displayed on the prompt (icon/image/etc).
11
+ */
12
+ media: ReactNode;
13
+ /**
14
+ * Any actions to be displayed on the prompt.
15
+ */
16
+ actions?: ReactNode;
17
+ /**
18
+ * Handler called when the close button is clicked. If not provided, then the close button is hidden.
19
+ */
20
+ onDismiss?: () => void;
21
+ id?: string;
22
+ className?: string;
23
+ 'data-testid'?: string;
24
+ children: ReactNode;
25
+ };
26
+ /**
27
+ * PrimitivePrompt is a low-level component that provides the structure, sentiment support and styling for various prompts.
28
+ * Uses several css variables to handle styling from within the consuming component, e.g. --Prompt-padding. */
29
+ export declare const PrimitivePrompt: ({ sentiment, media, actions, onDismiss, className, children, ...restProps }: PrimitivePromptProps) => import("react").JSX.Element;
30
+ //# sourceMappingURL=PrimitivePrompt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PrimitivePrompt.d.ts","sourceRoot":"","sources":["../../../../src/prompt/PrimitivePrompt/PrimitivePrompt.tsx"],"names":[],"mappings":"AAEA,OAAyB,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAIrE,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,MAAM,MAAM,oBAAoB,GAAG;IACjC;;;OAGG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;OAEG;IACH,KAAK,EAAE,SAAS,CAAC;IACjB;;OAEG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF;;8GAE8G;AAC9G,eAAO,MAAM,eAAe,GAAI,6EAQ7B,oBAAoB,gCA0BtB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export type { PrimitivePromptProps } from './PrimitivePrompt';
2
+ export { PrimitivePrompt } from './PrimitivePrompt';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/prompt/PrimitivePrompt/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transferwise/components",
3
- "version": "46.122.1",
3
+ "version": "46.123.0",
4
4
  "description": "Neptune React components",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -49,11 +49,11 @@
49
49
  "@rollup/plugin-node-resolve": "^16.0.3",
50
50
  "@rollup/plugin-typescript": "^12.3.0",
51
51
  "@rollup/plugin-url": "^8.0.2",
52
- "@storybook/addon-a11y": "^10.2.0-alpha.13",
53
- "@storybook/addon-docs": "^10.2.0-alpha.13",
54
- "@storybook/addon-mcp": "^0.1.8",
52
+ "@storybook/addon-a11y": "^10.3.0-alpha.0",
53
+ "@storybook/addon-docs": "^10.3.0-alpha.0",
54
+ "@storybook/addon-mcp": "^0.2.2",
55
55
  "@storybook/addon-webpack5-compiler-babel": "^4.0.0",
56
- "@storybook/react-webpack5": "10.2.0-alpha.13",
56
+ "@storybook/react-webpack5": "10.3.0-alpha.0",
57
57
  "@testing-library/dom": "^10.4.1",
58
58
  "@testing-library/jest-dom": "^6.9.1",
59
59
  "@testing-library/react": "^16.3.1",
@@ -73,7 +73,7 @@
73
73
  "@wise/eslint-config": "^13.3.0",
74
74
  "babel-plugin-formatjs": "^10.5.39",
75
75
  "eslint": "^9.39.2",
76
- "eslint-plugin-storybook": "^10.2.0-alpha.13",
76
+ "eslint-plugin-storybook": "^10.3.0-alpha.0",
77
77
  "gulp": "^5.0.1",
78
78
  "jest": "^30.2.0",
79
79
  "jest-environment-jsdom": "^29.7.0",
@@ -82,12 +82,12 @@
82
82
  "react-intl": "^7.1.11",
83
83
  "rollup": "^4.54.0",
84
84
  "rollup-preserve-directives": "^1.1.3",
85
- "storybook": "^10.2.0-alpha.13",
85
+ "storybook": "^10.3.0-alpha.0",
86
86
  "storybook-addon-tag-badges": "^3.0.4",
87
87
  "storybook-addon-test-codegen": "^3.0.1",
88
88
  "@transferwise/less-config": "3.1.2",
89
89
  "@transferwise/neptune-css": "14.26.1",
90
- "@wise/components-theming": "1.10.0",
90
+ "@wise/components-theming": "1.10.1",
91
91
  "@wise/wds-configs": "0.0.0"
92
92
  },
93
93
  "peerDependencies": {
@@ -7,6 +7,7 @@ import Alert, { type AlertProps } from './Alert';
7
7
  const meta = {
8
8
  title: 'Prompts/Alert/Tests',
9
9
  component: Alert,
10
+ tags: ['!manifest'],
10
11
  argTypes: {},
11
12
  args: {
12
13
  type: Sentiment.POSITIVE,
@@ -5,7 +5,7 @@ import { generateSurfaceVariant } from './helpers';
5
5
  const meta: Meta<typeof Button> = {
6
6
  component: Button,
7
7
  title: 'Actions/Button/Tests/theme: bright green',
8
- tags: ['!autodocs'],
8
+ tags: ['!autodocs', '!manifest'],
9
9
  };
10
10
  export default meta;
11
11
 
@@ -5,7 +5,7 @@ import { generateSurfaceVariant } from './helpers';
5
5
  const meta: Meta<typeof Button> = {
6
6
  component: Button,
7
7
  title: 'Actions/Button/Tests/theme: dark mode',
8
- tags: ['!autodocs'],
8
+ tags: ['!autodocs', '!manifest'],
9
9
  };
10
10
  export default meta;
11
11
 
@@ -5,7 +5,7 @@ import { generateSurfaceVariant } from './helpers';
5
5
  const meta: Meta<typeof Button> = {
6
6
  component: Button,
7
7
  title: 'Actions/Button/Tests/theme: default',
8
- tags: ['!autodocs'],
8
+ tags: ['!autodocs', '!manifest'],
9
9
  };
10
10
  export default meta;
11
11