@transferwise/components 0.0.0-experimental-93b1fe9 → 0.0.0-experimental-f87649c

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 (44) hide show
  1. package/build/dateInput/DateInput.js.map +1 -1
  2. package/build/dateInput/DateInput.mjs.map +1 -1
  3. package/build/listItem/ListItem.js +4 -1
  4. package/build/listItem/ListItem.js.map +1 -1
  5. package/build/listItem/ListItem.mjs +4 -1
  6. package/build/listItem/ListItem.mjs.map +1 -1
  7. package/build/listItem/Navigation/ListItemNavigation.js +3 -1
  8. package/build/listItem/Navigation/ListItemNavigation.js.map +1 -1
  9. package/build/listItem/Navigation/ListItemNavigation.mjs +4 -2
  10. package/build/listItem/Navigation/ListItemNavigation.mjs.map +1 -1
  11. package/build/listItem/Prompt/ListItemPrompt.js +6 -10
  12. package/build/listItem/Prompt/ListItemPrompt.js.map +1 -1
  13. package/build/listItem/Prompt/ListItemPrompt.mjs +7 -11
  14. package/build/listItem/Prompt/ListItemPrompt.mjs.map +1 -1
  15. package/build/main.css +18 -21
  16. package/build/styles/listItem/ListItem.css +18 -21
  17. package/build/styles/listItem/ListItem.vars.css +0 -0
  18. package/build/styles/listItem/Prompt/ListItemPrompt.css +4 -9
  19. package/build/styles/main.css +18 -21
  20. package/build/types/dateInput/DateInput.d.ts.map +1 -1
  21. package/build/types/listItem/ListItem.d.ts.map +1 -1
  22. package/build/types/listItem/Navigation/ListItemNavigation.d.ts.map +1 -1
  23. package/build/types/listItem/Prompt/ListItemPrompt.d.ts.map +1 -1
  24. package/package.json +1 -1
  25. package/src/dateInput/DateInput.tsx +3 -1
  26. package/src/listItem/ListItem.css +18 -21
  27. package/src/listItem/ListItem.grid.less +6 -4
  28. package/src/listItem/ListItem.less +16 -11
  29. package/src/listItem/ListItem.tsx +9 -3
  30. package/src/listItem/ListItem.vars.css +0 -0
  31. package/src/listItem/ListItem.vars.less +8 -0
  32. package/src/listItem/Navigation/ListItemNavigation.spec.tsx +10 -1
  33. package/src/listItem/Navigation/ListItemNavigation.tsx +3 -2
  34. package/src/listItem/Prompt/ListItemPrompt.css +4 -9
  35. package/src/listItem/Prompt/ListItemPrompt.less +1 -2
  36. package/src/listItem/Prompt/ListItemPrompt.spec.tsx +0 -11
  37. package/src/listItem/Prompt/ListItemPrompt.tsx +4 -9
  38. package/src/listItem/_stories/ListItem.story.tsx +1 -2
  39. package/src/listItem/_stories/ListItem.variants.test.story.tsx +13 -1
  40. package/src/listItem/_stories/subcomponents.tsx +1 -1
  41. package/src/main.css +18 -21
  42. package/build/styles/listItem/Switch/ListItemSwitch.css +0 -3
  43. package/src/listItem/Switch/ListItemSwitch.css +0 -3
  44. package/src/listItem/Switch/ListItemSwitch.less +0 -3
@@ -1,4 +1,4 @@
1
- import { ChevronRight } from '@transferwise/icons';
1
+ import { BackslashCircle, ChevronRight } from '@transferwise/icons';
2
2
  import { useListItemControl } from '../useListItemControl.mjs';
3
3
  import PrimitiveButton from '../../primitives/PrimitiveButton/PrimitiveButton.mjs';
4
4
  import '../../primitives/PrimitiveAnchor/PrimitiveAnchor.mjs';
@@ -23,12 +23,14 @@ const Navigation = function Navigation({
23
23
  const icon = /*#__PURE__*/jsx(ChevronRight, {
24
24
  size: 16
25
25
  });
26
+ if (baseItemProps.disabled) return /*#__PURE__*/jsx(BackslashCircle, {
27
+ size: 24
28
+ });
26
29
  return href ? /*#__PURE__*/jsx(Fragment, {
27
30
  children: icon
28
31
  }) : /*#__PURE__*/jsx(PrimitiveButton, {
29
32
  "aria-describedby": describedByIds,
30
33
  id: ids.control,
31
- disabled: baseItemProps.disabled,
32
34
  className: "btn-unstyled wds-list-item-control",
33
35
  onClick: props.onClick,
34
36
  children: icon
@@ -1 +1 @@
1
- {"version":3,"file":"ListItemNavigation.mjs","sources":["../../../src/listItem/Navigation/ListItemNavigation.tsx"],"sourcesContent":["import { ChevronRight } from '@transferwise/icons';\nimport type { ButtonProps } from '../../button/Button.types';\nimport { useListItemControl } from '../useListItemControl';\nimport { PrimitiveButton } from '../../primitives';\nimport { useContext } from 'react';\nimport { ListItemContext } from '../ListItemContext';\n\nexport type ListItemNavigationProps = Pick<ButtonProps, 'onClick' | 'href' | 'target'>;\n\n/**\n * This component allows for rendering a control functionally synonymous with HTML `anchor` or a\n * `button`, giving users a rich way to choose between options and navigate to another screen or\n * step in a flow. It offers only a subset of features of the HTML element in line with the\n * ListItem's constraints.<br />\n * <br />\n * Please refer to the [Design documentation](https://wise.design/components/list-item---navigation) for details.\n */\nexport const Navigation = function Navigation({ href, ...props }: ListItemNavigationProps) {\n const { baseItemProps } = useListItemControl('navigation', { href, ...props });\n const { ids, describedByIds } = useContext(ListItemContext);\n const icon = <ChevronRight size={16} />;\n\n return href ? (\n <>{icon}</>\n ) : (\n <PrimitiveButton\n aria-describedby={describedByIds}\n id={ids.control}\n disabled={baseItemProps.disabled}\n className=\"btn-unstyled wds-list-item-control\"\n onClick={props.onClick as React.MouseEventHandler<HTMLButtonElement> | undefined}\n >\n {icon}\n </PrimitiveButton>\n );\n};\n\nNavigation.displayName = 'ListItem.Navigation';\n"],"names":["Navigation","href","props","baseItemProps","useListItemControl","ids","describedByIds","useContext","ListItemContext","icon","_jsx","ChevronRight","size","_Fragment","children","PrimitiveButton","id","control","disabled","className","onClick","displayName"],"mappings":";;;;;;;;AAiBO,MAAMA,UAAU,GAAG,SAASA,UAAUA,CAAC;EAAEC,IAAI;EAAE,GAAGC;AAAK,CAA2B,EAAA;EACvF,MAAM;AAAEC,IAAAA;AAAa,GAAE,GAAGC,kBAAkB,CAAC,YAAY,EAAE;IAAEH,IAAI;IAAE,GAAGC;AAAK,GAAE,CAAC;EAC9E,MAAM;IAAEG,GAAG;AAAEC,IAAAA;AAAc,GAAE,GAAGC,UAAU,CAACC,eAAe,CAAC;AAC3D,EAAA,MAAMC,IAAI,gBAAGC,GAAA,CAACC,YAAY,EAAA;AAACC,IAAAA,IAAI,EAAE;AAAG,GAAA,CAAG;AAEvC,EAAA,OAAOX,IAAI,gBACTS,GAAA,CAAAG,QAAA,EAAA;AAAAC,IAAAA,QAAA,EAAGL;AAAI,GAAC,CAAG,gBAEXC,GAAA,CAACK,eAAe,EAAA;AACd,IAAA,kBAAA,EAAkBT,cAAe;IACjCU,EAAE,EAAEX,GAAG,CAACY,OAAQ;IAChBC,QAAQ,EAAEf,aAAa,CAACe,QAAS;AACjCC,IAAAA,SAAS,EAAC,oCAAoC;IAC9CC,OAAO,EAAElB,KAAK,CAACkB,OAAkE;AAAAN,IAAAA,QAAA,EAEhFL;AAAI,GACU,CAClB;AACH;AAEAT,UAAU,CAACqB,WAAW,GAAG,qBAAqB;;;;"}
1
+ {"version":3,"file":"ListItemNavigation.mjs","sources":["../../../src/listItem/Navigation/ListItemNavigation.tsx"],"sourcesContent":["import { ChevronRight, BackslashCircle } from '@transferwise/icons';\nimport type { ButtonProps } from '../../button/Button.types';\nimport { useListItemControl } from '../useListItemControl';\nimport { PrimitiveButton } from '../../primitives';\nimport { useContext } from 'react';\nimport { ListItemContext } from '../ListItemContext';\n\nexport type ListItemNavigationProps = Pick<ButtonProps, 'onClick' | 'href' | 'target'>;\n\n/**\n * This component allows for rendering a control functionally synonymous with HTML `anchor` or a\n * `button`, giving users a rich way to choose between options and navigate to another screen or\n * step in a flow. It offers only a subset of features of the HTML element in line with the\n * ListItem's constraints.<br />\n * <br />\n * Please refer to the [Design documentation](https://wise.design/components/list-item---navigation) for details.\n */\nexport const Navigation = function Navigation({ href, ...props }: ListItemNavigationProps) {\n const { baseItemProps } = useListItemControl('navigation', { href, ...props });\n const { ids, describedByIds } = useContext(ListItemContext);\n const icon = <ChevronRight size={16} />;\n\n if (baseItemProps.disabled) return <BackslashCircle size={24} />;\n\n return href ? (\n <>{icon}</>\n ) : (\n <PrimitiveButton\n aria-describedby={describedByIds}\n id={ids.control}\n className=\"btn-unstyled wds-list-item-control\"\n onClick={props.onClick as React.MouseEventHandler<HTMLButtonElement> | undefined}\n >\n {icon}\n </PrimitiveButton>\n );\n};\n\nNavigation.displayName = 'ListItem.Navigation';\n"],"names":["Navigation","href","props","baseItemProps","useListItemControl","ids","describedByIds","useContext","ListItemContext","icon","_jsx","ChevronRight","size","disabled","BackslashCircle","_Fragment","children","PrimitiveButton","id","control","className","onClick","displayName"],"mappings":";;;;;;;;AAiBO,MAAMA,UAAU,GAAG,SAASA,UAAUA,CAAC;EAAEC,IAAI;EAAE,GAAGC;AAAK,CAA2B,EAAA;EACvF,MAAM;AAAEC,IAAAA;AAAa,GAAE,GAAGC,kBAAkB,CAAC,YAAY,EAAE;IAAEH,IAAI;IAAE,GAAGC;AAAK,GAAE,CAAC;EAC9E,MAAM;IAAEG,GAAG;AAAEC,IAAAA;AAAc,GAAE,GAAGC,UAAU,CAACC,eAAe,CAAC;AAC3D,EAAA,MAAMC,IAAI,gBAAGC,GAAA,CAACC,YAAY,EAAA;AAACC,IAAAA,IAAI,EAAE;AAAG,GAAA,CAAG;AAEvC,EAAA,IAAIT,aAAa,CAACU,QAAQ,EAAE,oBAAOH,GAAA,CAACI,eAAe,EAAA;AAACF,IAAAA,IAAI,EAAE;AAAG,GAAA,CAAG;AAEhE,EAAA,OAAOX,IAAI,gBACTS,GAAA,CAAAK,QAAA,EAAA;AAAAC,IAAAA,QAAA,EAAGP;AAAI,IAAI,gBAEXC,GAAA,CAACO,eAAe,EAAA;AACd,IAAA,kBAAA,EAAkBX,cAAe;IACjCY,EAAE,EAAEb,GAAG,CAACc,OAAQ;AAChBC,IAAAA,SAAS,EAAC,oCAAoC;IAC9CC,OAAO,EAAEnB,KAAK,CAACmB,OAAkE;AAAAL,IAAAA,QAAA,EAEhFP;AAAI,GACU,CAClB;AACH;AAEAT,UAAU,CAACsB,WAAW,GAAG,qBAAqB;;;;"}
@@ -23,7 +23,7 @@ require('../../common/propsValues/variant.js');
23
23
  require('../../common/propsValues/scroll.js');
24
24
  require('../../common/propsValues/markdownNodeType.js');
25
25
  require('../../common/fileType.js');
26
- var icons = require('@transferwise/icons');
26
+ require('@transferwise/icons');
27
27
  require('react-intl');
28
28
  require('../../common/closeButton/CloseButton.messages.js');
29
29
  var jsxRuntime = require('react/jsx-runtime');
@@ -36,21 +36,17 @@ const Prompt = ({
36
36
  children
37
37
  }) => {
38
38
  const {
39
- ids,
40
- props
39
+ ids
41
40
  } = React.useContext(ListItemContext.ListItemContext);
42
- const icon = props.disabled ? /*#__PURE__*/jsxRuntime.jsx(icons.BackslashCircle, {
43
- size: 16
44
- }) : /*#__PURE__*/jsxRuntime.jsx(StatusIcon.default, {
45
- size: 16,
46
- sentiment: sentiment$1
47
- });
48
41
  return /*#__PURE__*/jsxRuntime.jsxs("div", {
49
42
  id: ids.prompt,
50
43
  className: clsx.clsx('wds-list-item-prompt', sentiment$1),
51
44
  children: [/*#__PURE__*/jsxRuntime.jsx("div", {
52
45
  className: "np-prompt-icon",
53
- children: icon
46
+ children: /*#__PURE__*/jsxRuntime.jsx(StatusIcon.default, {
47
+ size: 16,
48
+ sentiment: sentiment$1
49
+ })
54
50
  }), /*#__PURE__*/jsxRuntime.jsx(Body.default, {
55
51
  children: children
56
52
  })]
@@ -1 +1 @@
1
- {"version":3,"file":"ListItemPrompt.js","sources":["../../../src/listItem/Prompt/ListItemPrompt.tsx"],"sourcesContent":["import { useContext } from 'react';\nimport { clsx } from 'clsx';\nimport { Sentiment } from '../../common';\nimport StatusIcon from '../../statusIcon';\nimport Body from '../../body';\nimport { ListItemContext, type ListItemContextData } from '../ListItemContext';\nimport { BackslashCircle } from '@transferwise/icons';\n\nexport type ListItemPromptProps = {\n sentiment?: `${Sentiment.POSITIVE | Sentiment.NEGATIVE | Sentiment.NEUTRAL | Sentiment.WARNING}`;\n children: React.ReactNode;\n};\n\n/**\n * This component allows for rendering an Inline Prompt. <br />In the future it will be a thin wrapper around a standalone component.<br />\n *\n * Please refer to the [Design documentation](https://wise.design/components/list-item#prompt) for details.\n */\nexport const Prompt = ({ sentiment = Sentiment.NEUTRAL, children }: ListItemPromptProps) => {\n const { ids, props } = useContext<ListItemContextData>(ListItemContext);\n\n const icon = props.disabled ? (\n <BackslashCircle size={16} />\n ) : (\n <StatusIcon size={16} sentiment={sentiment} />\n );\n\n return (\n <div id={ids.prompt} className={clsx('wds-list-item-prompt', sentiment)}>\n <div className=\"np-prompt-icon\">{icon}</div>\n <Body>{children}</Body>\n </div>\n );\n};\n\nPrompt.displayName = 'ListItem.Prompt';\nexport default Prompt;\n"],"names":["Prompt","sentiment","Sentiment","NEUTRAL","children","ids","props","useContext","ListItemContext","icon","disabled","_jsx","BackslashCircle","size","StatusIcon","_jsxs","id","prompt","className","clsx","Body","displayName"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkBO,MAAMA,MAAM,GAAGA,CAAC;aAAEC,WAAS,GAAGC,mBAAS,CAACC,OAAO;AAAEC,EAAAA;AAAQ,CAAuB,KAAI;EACzF,MAAM;IAAEC,GAAG;AAAEC,IAAAA;AAAK,GAAE,GAAGC,gBAAU,CAAsBC,+BAAe,CAAC;EAEvE,MAAMC,IAAI,GAAGH,KAAK,CAACI,QAAQ,gBACzBC,cAAA,CAACC,qBAAe,EAAA;AAACC,IAAAA,IAAI,EAAE;AAAG,GAAA,CAAG,gBAE7BF,cAAA,CAACG,kBAAU,EAAA;AAACD,IAAAA,IAAI,EAAE,EAAG;AAACZ,IAAAA,SAAS,EAAEA;AAAU,GAAA,CAC5C;AAED,EAAA,oBACEc,eAAA,CAAA,KAAA,EAAA;IAAKC,EAAE,EAAEX,GAAG,CAACY,MAAO;AAACC,IAAAA,SAAS,EAAEC,SAAI,CAAC,sBAAsB,EAAElB,WAAS,CAAE;AAAAG,IAAAA,QAAA,gBACtEO,cAAA,CAAA,KAAA,EAAA;AAAKO,MAAAA,SAAS,EAAC,gBAAgB;AAAAd,MAAAA,QAAA,EAAEK;AAAI,KAAM,CAC3C,eAAAE,cAAA,CAACS,YAAI,EAAA;AAAAhB,MAAAA,QAAA,EAAEA;AAAQ,KAAO,CACxB;AAAA,GAAK,CAAC;AAEV;AAEAJ,MAAM,CAACqB,WAAW,GAAG,iBAAiB;;;;;"}
1
+ {"version":3,"file":"ListItemPrompt.js","sources":["../../../src/listItem/Prompt/ListItemPrompt.tsx"],"sourcesContent":["import { useContext } from 'react';\nimport { clsx } from 'clsx';\nimport { Sentiment } from '../../common';\nimport StatusIcon from '../../statusIcon';\nimport Body from '../../body';\nimport { ListItemContext, type ListItemContextData } from '../ListItemContext';\n\nexport type ListItemPromptProps = {\n sentiment?: `${Sentiment.POSITIVE | Sentiment.NEGATIVE | Sentiment.NEUTRAL | Sentiment.WARNING}`;\n children: React.ReactNode;\n};\n\n/**\n * This component allows for rendering an Inline Prompt. <br />In the future it will be a thin wrapper around a standalone component.<br />\n *\n * Please refer to the [Design documentation](https://wise.design/components/list-item#prompt) for details.\n */\nexport const Prompt = ({ sentiment = Sentiment.NEUTRAL, children }: ListItemPromptProps) => {\n const { ids } = useContext<ListItemContextData>(ListItemContext);\n\n return (\n <div id={ids.prompt} className={clsx('wds-list-item-prompt', sentiment)}>\n <div className=\"np-prompt-icon\">\n <StatusIcon size={16} sentiment={sentiment} />\n </div>\n <Body>{children}</Body>\n </div>\n );\n};\n\nPrompt.displayName = 'ListItem.Prompt';\nexport default Prompt;\n"],"names":["Prompt","sentiment","Sentiment","NEUTRAL","children","ids","useContext","ListItemContext","_jsxs","id","prompt","className","clsx","_jsx","StatusIcon","size","Body","displayName"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiBO,MAAMA,MAAM,GAAGA,CAAC;aAAEC,WAAS,GAAGC,mBAAS,CAACC,OAAO;AAAEC,EAAAA;AAAQ,CAAuB,KAAI;EACzF,MAAM;AAAEC,IAAAA;AAAG,GAAE,GAAGC,gBAAU,CAAsBC,+BAAe,CAAC;AAEhE,EAAA,oBACEC,eAAA,CAAA,KAAA,EAAA;IAAKC,EAAE,EAAEJ,GAAG,CAACK,MAAO;AAACC,IAAAA,SAAS,EAAEC,SAAI,CAAC,sBAAsB,EAAEX,WAAS,CAAE;AAAAG,IAAAA,QAAA,gBACtES,cAAA,CAAA,KAAA,EAAA;AAAKF,MAAAA,SAAS,EAAC,gBAAgB;MAAAP,QAAA,eAC7BS,cAAA,CAACC,kBAAU,EAAA;AAACC,QAAAA,IAAI,EAAE,EAAG;AAACd,QAAAA,SAAS,EAAEA;OAAU;AAC7C,KAAK,CACL,eAAAY,cAAA,CAACG,YAAI,EAAA;AAAAZ,MAAAA,QAAA,EAAEA;AAAQ,KAAO,CACxB;AAAA,GAAK,CAAC;AAEV;AAEAJ,MAAM,CAACiB,WAAW,GAAG,iBAAiB;;;;;"}
@@ -19,10 +19,10 @@ import '../../common/propsValues/variant.mjs';
19
19
  import '../../common/propsValues/scroll.mjs';
20
20
  import '../../common/propsValues/markdownNodeType.mjs';
21
21
  import '../../common/fileType.mjs';
22
- import { BackslashCircle } from '@transferwise/icons';
22
+ import '@transferwise/icons';
23
23
  import 'react-intl';
24
24
  import '../../common/closeButton/CloseButton.messages.mjs';
25
- import { jsx, jsxs } from 'react/jsx-runtime';
25
+ import { jsxs, jsx } from 'react/jsx-runtime';
26
26
  import StatusIcon from '../../statusIcon/StatusIcon.mjs';
27
27
  import Body from '../../body/Body.mjs';
28
28
  import { ListItemContext } from '../ListItemContext.mjs';
@@ -32,21 +32,17 @@ const Prompt = ({
32
32
  children
33
33
  }) => {
34
34
  const {
35
- ids,
36
- props
35
+ ids
37
36
  } = useContext(ListItemContext);
38
- const icon = props.disabled ? /*#__PURE__*/jsx(BackslashCircle, {
39
- size: 16
40
- }) : /*#__PURE__*/jsx(StatusIcon, {
41
- size: 16,
42
- sentiment: sentiment
43
- });
44
37
  return /*#__PURE__*/jsxs("div", {
45
38
  id: ids.prompt,
46
39
  className: clsx('wds-list-item-prompt', sentiment),
47
40
  children: [/*#__PURE__*/jsx("div", {
48
41
  className: "np-prompt-icon",
49
- children: icon
42
+ children: /*#__PURE__*/jsx(StatusIcon, {
43
+ size: 16,
44
+ sentiment: sentiment
45
+ })
50
46
  }), /*#__PURE__*/jsx(Body, {
51
47
  children: children
52
48
  })]
@@ -1 +1 @@
1
- {"version":3,"file":"ListItemPrompt.mjs","sources":["../../../src/listItem/Prompt/ListItemPrompt.tsx"],"sourcesContent":["import { useContext } from 'react';\nimport { clsx } from 'clsx';\nimport { Sentiment } from '../../common';\nimport StatusIcon from '../../statusIcon';\nimport Body from '../../body';\nimport { ListItemContext, type ListItemContextData } from '../ListItemContext';\nimport { BackslashCircle } from '@transferwise/icons';\n\nexport type ListItemPromptProps = {\n sentiment?: `${Sentiment.POSITIVE | Sentiment.NEGATIVE | Sentiment.NEUTRAL | Sentiment.WARNING}`;\n children: React.ReactNode;\n};\n\n/**\n * This component allows for rendering an Inline Prompt. <br />In the future it will be a thin wrapper around a standalone component.<br />\n *\n * Please refer to the [Design documentation](https://wise.design/components/list-item#prompt) for details.\n */\nexport const Prompt = ({ sentiment = Sentiment.NEUTRAL, children }: ListItemPromptProps) => {\n const { ids, props } = useContext<ListItemContextData>(ListItemContext);\n\n const icon = props.disabled ? (\n <BackslashCircle size={16} />\n ) : (\n <StatusIcon size={16} sentiment={sentiment} />\n );\n\n return (\n <div id={ids.prompt} className={clsx('wds-list-item-prompt', sentiment)}>\n <div className=\"np-prompt-icon\">{icon}</div>\n <Body>{children}</Body>\n </div>\n );\n};\n\nPrompt.displayName = 'ListItem.Prompt';\nexport default Prompt;\n"],"names":["Prompt","sentiment","Sentiment","NEUTRAL","children","ids","props","useContext","ListItemContext","icon","disabled","_jsx","BackslashCircle","size","StatusIcon","_jsxs","id","prompt","className","clsx","Body","displayName"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkBO,MAAMA,MAAM,GAAGA,CAAC;EAAEC,SAAS,GAAGC,SAAS,CAACC,OAAO;AAAEC,EAAAA;AAAQ,CAAuB,KAAI;EACzF,MAAM;IAAEC,GAAG;AAAEC,IAAAA;AAAK,GAAE,GAAGC,UAAU,CAAsBC,eAAe,CAAC;EAEvE,MAAMC,IAAI,GAAGH,KAAK,CAACI,QAAQ,gBACzBC,GAAA,CAACC,eAAe,EAAA;AAACC,IAAAA,IAAI,EAAE;AAAG,GAAA,CAAG,gBAE7BF,GAAA,CAACG,UAAU,EAAA;AAACD,IAAAA,IAAI,EAAE,EAAG;AAACZ,IAAAA,SAAS,EAAEA;AAAU,GAAA,CAC5C;AAED,EAAA,oBACEc,IAAA,CAAA,KAAA,EAAA;IAAKC,EAAE,EAAEX,GAAG,CAACY,MAAO;AAACC,IAAAA,SAAS,EAAEC,IAAI,CAAC,sBAAsB,EAAElB,SAAS,CAAE;AAAAG,IAAAA,QAAA,gBACtEO,GAAA,CAAA,KAAA,EAAA;AAAKO,MAAAA,SAAS,EAAC,gBAAgB;AAAAd,MAAAA,QAAA,EAAEK;AAAI,KAAM,CAC3C,eAAAE,GAAA,CAACS,IAAI,EAAA;AAAAhB,MAAAA,QAAA,EAAEA;AAAQ,KAAO,CACxB;AAAA,GAAK,CAAC;AAEV;AAEAJ,MAAM,CAACqB,WAAW,GAAG,iBAAiB;;;;"}
1
+ {"version":3,"file":"ListItemPrompt.mjs","sources":["../../../src/listItem/Prompt/ListItemPrompt.tsx"],"sourcesContent":["import { useContext } from 'react';\nimport { clsx } from 'clsx';\nimport { Sentiment } from '../../common';\nimport StatusIcon from '../../statusIcon';\nimport Body from '../../body';\nimport { ListItemContext, type ListItemContextData } from '../ListItemContext';\n\nexport type ListItemPromptProps = {\n sentiment?: `${Sentiment.POSITIVE | Sentiment.NEGATIVE | Sentiment.NEUTRAL | Sentiment.WARNING}`;\n children: React.ReactNode;\n};\n\n/**\n * This component allows for rendering an Inline Prompt. <br />In the future it will be a thin wrapper around a standalone component.<br />\n *\n * Please refer to the [Design documentation](https://wise.design/components/list-item#prompt) for details.\n */\nexport const Prompt = ({ sentiment = Sentiment.NEUTRAL, children }: ListItemPromptProps) => {\n const { ids } = useContext<ListItemContextData>(ListItemContext);\n\n return (\n <div id={ids.prompt} className={clsx('wds-list-item-prompt', sentiment)}>\n <div className=\"np-prompt-icon\">\n <StatusIcon size={16} sentiment={sentiment} />\n </div>\n <Body>{children}</Body>\n </div>\n );\n};\n\nPrompt.displayName = 'ListItem.Prompt';\nexport default Prompt;\n"],"names":["Prompt","sentiment","Sentiment","NEUTRAL","children","ids","useContext","ListItemContext","_jsxs","id","prompt","className","clsx","_jsx","StatusIcon","size","Body","displayName"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiBO,MAAMA,MAAM,GAAGA,CAAC;EAAEC,SAAS,GAAGC,SAAS,CAACC,OAAO;AAAEC,EAAAA;AAAQ,CAAuB,KAAI;EACzF,MAAM;AAAEC,IAAAA;AAAG,GAAE,GAAGC,UAAU,CAAsBC,eAAe,CAAC;AAEhE,EAAA,oBACEC,IAAA,CAAA,KAAA,EAAA;IAAKC,EAAE,EAAEJ,GAAG,CAACK,MAAO;AAACC,IAAAA,SAAS,EAAEC,IAAI,CAAC,sBAAsB,EAAEX,SAAS,CAAE;AAAAG,IAAAA,QAAA,gBACtES,GAAA,CAAA,KAAA,EAAA;AAAKF,MAAAA,SAAS,EAAC,gBAAgB;MAAAP,QAAA,eAC7BS,GAAA,CAACC,UAAU,EAAA;AAACC,QAAAA,IAAI,EAAE,EAAG;AAACd,QAAAA,SAAS,EAAEA;OAAU;AAC7C,KAAK,CACL,eAAAY,GAAA,CAACG,IAAI,EAAA;AAAAZ,MAAAA,QAAA,EAAEA;AAAQ,KAAO,CACxB;AAAA,GAAK,CAAC;AAEV;AAEAJ,MAAM,CAACiB,WAAW,GAAG,iBAAiB;;;;"}
package/build/main.css CHANGED
@@ -3136,26 +3136,21 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
3136
3136
  .wds-list-item-prompt.wds-list-item-prompt.savings:has(a, button):active {
3137
3137
  background-color: var(--color-sentiment-positive-secondary-active);
3138
3138
  }
3139
- .wds-list-item-prompt.neutral,
3140
- .disabled.wds-list-item .wds-list-item-prompt {
3139
+ .wds-list-item-prompt.neutral {
3141
3140
  background-color: rgba(134,167,189,0.10196);
3142
3141
  background-color: var(--color-background-neutral);
3143
3142
  color: #37517e;
3144
3143
  color: var(--color-content-primary);
3145
3144
  }
3146
3145
  .wds-list-item-prompt.neutral a,
3147
- .disabled.wds-list-item .wds-list-item-prompt a,
3148
- .wds-list-item-prompt.neutral button,
3149
- .disabled.wds-list-item .wds-list-item-prompt button {
3146
+ .wds-list-item-prompt.neutral button {
3150
3147
  color: #37517e;
3151
3148
  color: var(--color-content-primary);
3152
3149
  }
3153
- .wds-list-item-prompt.wds-list-item-prompt.neutral:has(a, button):hover,
3154
- .wds-list-item-prompt.disabled.wds-list-item .wds-list-item-prompt:has(a, button):hover {
3150
+ .wds-list-item-prompt.wds-list-item-prompt.neutral:has(a, button):hover {
3155
3151
  background-color: var(--color-background-neutral-hover);
3156
3152
  }
3157
- .wds-list-item-prompt.wds-list-item-prompt.neutral:has(a, button):active,
3158
- .wds-list-item-prompt.disabled.wds-list-item .wds-list-item-prompt:has(a, button):active {
3153
+ .wds-list-item-prompt.wds-list-item-prompt.neutral:has(a, button):active {
3159
3154
  background-color: var(--color-background-neutral-active);
3160
3155
  }
3161
3156
  .wds-list-item-prompt.warning {
@@ -3180,9 +3175,6 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
3180
3175
  .wds-list-item-prompt.wds-list-item-prompt.warning:has(a, button):active {
3181
3176
  background-color: color-mix(in srgb, var(--color-sentiment-warning-secondary) 84%, var(--color-sentiment-warning-primary));
3182
3177
  }
3183
- .wds-list-item.disabled .np-switch.disabled {
3184
- overflow: visible;
3185
- }
3186
3178
  .wds-list-item {
3187
3179
  list-style: none;
3188
3180
  width: 100%;
@@ -3306,7 +3298,7 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
3306
3298
  }
3307
3299
  .wds-list-item-body {
3308
3300
  grid-area: body;
3309
- align-items: center;
3301
+ align-items: start;
3310
3302
  width: 100%;
3311
3303
  display: grid;
3312
3304
  grid-template-columns: 1fr max-content;
@@ -3317,6 +3309,13 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
3317
3309
  gap: var(--size-16);
3318
3310
  word-break: break-word;
3319
3311
  }
3312
+ @container (min-width: 375px) {
3313
+ .wds-list-item-titles,
3314
+ .wds-list-item-value {
3315
+ min-height: 100%;
3316
+ min-height: var(--wds-list-item-value-min-height, 100%);
3317
+ }
3318
+ }
3320
3319
  .wds-list-item-title,
3321
3320
  .wds-list-item-title-value {
3322
3321
  color: #37517e;
@@ -3324,6 +3323,9 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
3324
3323
  }
3325
3324
  .wds-list-item-value {
3326
3325
  text-align: right;
3326
+ display: flex;
3327
+ flex-direction: column;
3328
+ justify-content: center;
3327
3329
  }
3328
3330
  .wds-list-item-body-center {
3329
3331
  display: flex;
@@ -3351,18 +3353,13 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
3351
3353
  flex: 0 0 auto;
3352
3354
  }
3353
3355
  .wds-list-item.disabled {
3354
- mix-blend-mode: luminosity;
3355
- opacity: 0.93;
3356
+ filter: none;
3357
+ opacity: 1;
3356
3358
  }
3357
3359
  .wds-list-item.disabled label {
3358
3360
  cursor: not-allowed;
3359
3361
  }
3360
- .wds-list-item.disabled .wds-list-item-media .np-avatar-view-content,
3361
- .wds-list-item.disabled .wds-list-item-title,
3362
- .wds-list-item.disabled .wds-list-item-title-value,
3363
- .wds-list-item.disabled .wds-list-item-subtitle,
3364
- .wds-list-item.disabled .wds-list-item-subtitle-value,
3365
- .wds-list-item.disabled .wds-list-item-additional-info {
3362
+ .wds-list-item.disabled .tw-icon-backslash-circle {
3366
3363
  color: #768e9c;
3367
3364
  color: var(--color-content-tertiary);
3368
3365
  }
@@ -492,26 +492,21 @@
492
492
  .wds-list-item-prompt.wds-list-item-prompt.savings:has(a, button):active {
493
493
  background-color: var(--color-sentiment-positive-secondary-active);
494
494
  }
495
- .wds-list-item-prompt.neutral,
496
- .disabled.wds-list-item .wds-list-item-prompt {
495
+ .wds-list-item-prompt.neutral {
497
496
  background-color: rgba(134,167,189,0.10196);
498
497
  background-color: var(--color-background-neutral);
499
498
  color: #37517e;
500
499
  color: var(--color-content-primary);
501
500
  }
502
501
  .wds-list-item-prompt.neutral a,
503
- .disabled.wds-list-item .wds-list-item-prompt a,
504
- .wds-list-item-prompt.neutral button,
505
- .disabled.wds-list-item .wds-list-item-prompt button {
502
+ .wds-list-item-prompt.neutral button {
506
503
  color: #37517e;
507
504
  color: var(--color-content-primary);
508
505
  }
509
- .wds-list-item-prompt.wds-list-item-prompt.neutral:has(a, button):hover,
510
- .wds-list-item-prompt.disabled.wds-list-item .wds-list-item-prompt:has(a, button):hover {
506
+ .wds-list-item-prompt.wds-list-item-prompt.neutral:has(a, button):hover {
511
507
  background-color: var(--color-background-neutral-hover);
512
508
  }
513
- .wds-list-item-prompt.wds-list-item-prompt.neutral:has(a, button):active,
514
- .wds-list-item-prompt.disabled.wds-list-item .wds-list-item-prompt:has(a, button):active {
509
+ .wds-list-item-prompt.wds-list-item-prompt.neutral:has(a, button):active {
515
510
  background-color: var(--color-background-neutral-active);
516
511
  }
517
512
  .wds-list-item-prompt.warning {
@@ -536,9 +531,6 @@
536
531
  .wds-list-item-prompt.wds-list-item-prompt.warning:has(a, button):active {
537
532
  background-color: color-mix(in srgb, var(--color-sentiment-warning-secondary) 84%, var(--color-sentiment-warning-primary));
538
533
  }
539
- .wds-list-item.disabled .np-switch.disabled {
540
- overflow: visible;
541
- }
542
534
  .wds-list-item {
543
535
  list-style: none;
544
536
  width: 100%;
@@ -662,7 +654,7 @@
662
654
  }
663
655
  .wds-list-item-body {
664
656
  grid-area: body;
665
- align-items: center;
657
+ align-items: start;
666
658
  width: 100%;
667
659
  display: grid;
668
660
  grid-template-columns: 1fr max-content;
@@ -673,6 +665,13 @@
673
665
  gap: var(--size-16);
674
666
  word-break: break-word;
675
667
  }
668
+ @container (min-width: 375px) {
669
+ .wds-list-item-titles,
670
+ .wds-list-item-value {
671
+ min-height: 100%;
672
+ min-height: var(--wds-list-item-value-min-height, 100%);
673
+ }
674
+ }
676
675
  .wds-list-item-title,
677
676
  .wds-list-item-title-value {
678
677
  color: #37517e;
@@ -680,6 +679,9 @@
680
679
  }
681
680
  .wds-list-item-value {
682
681
  text-align: right;
682
+ display: flex;
683
+ flex-direction: column;
684
+ justify-content: center;
683
685
  }
684
686
  .wds-list-item-body-center {
685
687
  display: flex;
@@ -707,18 +709,13 @@
707
709
  flex: 0 0 auto;
708
710
  }
709
711
  .wds-list-item.disabled {
710
- mix-blend-mode: luminosity;
711
- opacity: 0.93;
712
+ filter: none;
713
+ opacity: 1;
712
714
  }
713
715
  .wds-list-item.disabled label {
714
716
  cursor: not-allowed;
715
717
  }
716
- .wds-list-item.disabled .wds-list-item-media .np-avatar-view-content,
717
- .wds-list-item.disabled .wds-list-item-title,
718
- .wds-list-item.disabled .wds-list-item-title-value,
719
- .wds-list-item.disabled .wds-list-item-subtitle,
720
- .wds-list-item.disabled .wds-list-item-subtitle-value,
721
- .wds-list-item.disabled .wds-list-item-additional-info {
718
+ .wds-list-item.disabled .tw-icon-backslash-circle {
722
719
  color: #768e9c;
723
720
  color: var(--color-content-tertiary);
724
721
  }
File without changes
@@ -116,26 +116,21 @@
116
116
  .wds-list-item-prompt.wds-list-item-prompt.savings:has(a, button):active {
117
117
  background-color: var(--color-sentiment-positive-secondary-active);
118
118
  }
119
- .wds-list-item-prompt.neutral,
120
- .disabled.wds-list-item .wds-list-item-prompt {
119
+ .wds-list-item-prompt.neutral {
121
120
  background-color: rgba(134,167,189,0.10196);
122
121
  background-color: var(--color-background-neutral);
123
122
  color: #37517e;
124
123
  color: var(--color-content-primary);
125
124
  }
126
125
  .wds-list-item-prompt.neutral a,
127
- .disabled.wds-list-item .wds-list-item-prompt a,
128
- .wds-list-item-prompt.neutral button,
129
- .disabled.wds-list-item .wds-list-item-prompt button {
126
+ .wds-list-item-prompt.neutral button {
130
127
  color: #37517e;
131
128
  color: var(--color-content-primary);
132
129
  }
133
- .wds-list-item-prompt.wds-list-item-prompt.neutral:has(a, button):hover,
134
- .wds-list-item-prompt.disabled.wds-list-item .wds-list-item-prompt:has(a, button):hover {
130
+ .wds-list-item-prompt.wds-list-item-prompt.neutral:has(a, button):hover {
135
131
  background-color: var(--color-background-neutral-hover);
136
132
  }
137
- .wds-list-item-prompt.wds-list-item-prompt.neutral:has(a, button):active,
138
- .wds-list-item-prompt.disabled.wds-list-item .wds-list-item-prompt:has(a, button):active {
133
+ .wds-list-item-prompt.wds-list-item-prompt.neutral:has(a, button):active {
139
134
  background-color: var(--color-background-neutral-active);
140
135
  }
141
136
  .wds-list-item-prompt.warning {
@@ -3136,26 +3136,21 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
3136
3136
  .wds-list-item-prompt.wds-list-item-prompt.savings:has(a, button):active {
3137
3137
  background-color: var(--color-sentiment-positive-secondary-active);
3138
3138
  }
3139
- .wds-list-item-prompt.neutral,
3140
- .disabled.wds-list-item .wds-list-item-prompt {
3139
+ .wds-list-item-prompt.neutral {
3141
3140
  background-color: rgba(134,167,189,0.10196);
3142
3141
  background-color: var(--color-background-neutral);
3143
3142
  color: #37517e;
3144
3143
  color: var(--color-content-primary);
3145
3144
  }
3146
3145
  .wds-list-item-prompt.neutral a,
3147
- .disabled.wds-list-item .wds-list-item-prompt a,
3148
- .wds-list-item-prompt.neutral button,
3149
- .disabled.wds-list-item .wds-list-item-prompt button {
3146
+ .wds-list-item-prompt.neutral button {
3150
3147
  color: #37517e;
3151
3148
  color: var(--color-content-primary);
3152
3149
  }
3153
- .wds-list-item-prompt.wds-list-item-prompt.neutral:has(a, button):hover,
3154
- .wds-list-item-prompt.disabled.wds-list-item .wds-list-item-prompt:has(a, button):hover {
3150
+ .wds-list-item-prompt.wds-list-item-prompt.neutral:has(a, button):hover {
3155
3151
  background-color: var(--color-background-neutral-hover);
3156
3152
  }
3157
- .wds-list-item-prompt.wds-list-item-prompt.neutral:has(a, button):active,
3158
- .wds-list-item-prompt.disabled.wds-list-item .wds-list-item-prompt:has(a, button):active {
3153
+ .wds-list-item-prompt.wds-list-item-prompt.neutral:has(a, button):active {
3159
3154
  background-color: var(--color-background-neutral-active);
3160
3155
  }
3161
3156
  .wds-list-item-prompt.warning {
@@ -3180,9 +3175,6 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
3180
3175
  .wds-list-item-prompt.wds-list-item-prompt.warning:has(a, button):active {
3181
3176
  background-color: color-mix(in srgb, var(--color-sentiment-warning-secondary) 84%, var(--color-sentiment-warning-primary));
3182
3177
  }
3183
- .wds-list-item.disabled .np-switch.disabled {
3184
- overflow: visible;
3185
- }
3186
3178
  .wds-list-item {
3187
3179
  list-style: none;
3188
3180
  width: 100%;
@@ -3306,7 +3298,7 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
3306
3298
  }
3307
3299
  .wds-list-item-body {
3308
3300
  grid-area: body;
3309
- align-items: center;
3301
+ align-items: start;
3310
3302
  width: 100%;
3311
3303
  display: grid;
3312
3304
  grid-template-columns: 1fr max-content;
@@ -3317,6 +3309,13 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
3317
3309
  gap: var(--size-16);
3318
3310
  word-break: break-word;
3319
3311
  }
3312
+ @container (min-width: 375px) {
3313
+ .wds-list-item-titles,
3314
+ .wds-list-item-value {
3315
+ min-height: 100%;
3316
+ min-height: var(--wds-list-item-value-min-height, 100%);
3317
+ }
3318
+ }
3320
3319
  .wds-list-item-title,
3321
3320
  .wds-list-item-title-value {
3322
3321
  color: #37517e;
@@ -3324,6 +3323,9 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
3324
3323
  }
3325
3324
  .wds-list-item-value {
3326
3325
  text-align: right;
3326
+ display: flex;
3327
+ flex-direction: column;
3328
+ justify-content: center;
3327
3329
  }
3328
3330
  .wds-list-item-body-center {
3329
3331
  display: flex;
@@ -3351,18 +3353,13 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
3351
3353
  flex: 0 0 auto;
3352
3354
  }
3353
3355
  .wds-list-item.disabled {
3354
- mix-blend-mode: luminosity;
3355
- opacity: 0.93;
3356
+ filter: none;
3357
+ opacity: 1;
3356
3358
  }
3357
3359
  .wds-list-item.disabled label {
3358
3360
  cursor: not-allowed;
3359
3361
  }
3360
- .wds-list-item.disabled .wds-list-item-media .np-avatar-view-content,
3361
- .wds-list-item.disabled .wds-list-item-title,
3362
- .wds-list-item.disabled .wds-list-item-title-value,
3363
- .wds-list-item.disabled .wds-list-item-subtitle,
3364
- .wds-list-item.disabled .wds-list-item-subtitle-value,
3365
- .wds-list-item.disabled .wds-list-item-additional-info {
3362
+ .wds-list-item.disabled .tw-icon-backslash-circle {
3366
3363
  color: #768e9c;
3367
3364
  color: var(--color-content-tertiary);
3368
3365
  }
@@ -1 +1 @@
1
- {"version":3,"file":"DateInput.d.ts","sourceRoot":"","sources":["../../../src/dateInput/DateInput.tsx"],"names":[],"mappings":"AAMA,OAAO,EAGL,KAAK,gBAAgB,EACtB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,QAAQ,EACR,WAAW,EAEX,SAAS,EACT,UAAU,EACV,SAAS,EAEV,MAAM,WAAW,CAAC;AAMnB,MAAM,WAAW,cAAc;IAC7B,kFAAkF;IAClF,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,SAAS,CAAC;IAC1C,KAAK,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;IACtB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,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C,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,EAAE,CAAC,EAAE,MAAM,CAAC;CACb,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,QAAQ;mLAgBlB,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwOf,CAAC;AAiGF,eAAe,QAAQ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ListItemNavigation.d.ts","sourceRoot":"","sources":["../../../../src/listItem/Navigation/ListItemNavigation.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAM7D,MAAM,MAAM,uBAAuB,GAAG,IAAI,CAAC,WAAW,EAAE,SAAS,GAAG,MAAM,GAAG,QAAQ,CAAC,CAAC;AAEvF;;;;;;;GAOG;AACH,eAAO,MAAM,UAAU;yBAA2C,uBAAuB;;CAkBxF,CAAC"}
1
+ {"version":3,"file":"ListItemNavigation.d.ts","sourceRoot":"","sources":["../../../../src/listItem/Navigation/ListItemNavigation.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAM7D,MAAM,MAAM,uBAAuB,GAAG,IAAI,CAAC,WAAW,EAAE,SAAS,GAAG,MAAM,GAAG,QAAQ,CAAC,CAAC;AAEvF;;;;;;;GAOG;AACH,eAAO,MAAM,UAAU;yBAA2C,uBAAuB;;CAmBxF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ListItemPrompt.d.ts","sourceRoot":"","sources":["../../../../src/listItem/Prompt/ListItemPrompt.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAMzC,MAAM,MAAM,mBAAmB,GAAG;IAChC,SAAS,CAAC,EAAE,GAAG,SAAS,CAAC,QAAQ,GAAG,SAAS,CAAC,QAAQ,GAAG,SAAS,CAAC,OAAO,GAAG,SAAS,CAAC,OAAO,EAAE,CAAC;IACjG,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,MAAM;8BAAiD,mBAAmB;;CAetF,CAAC;AAGF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"ListItemPrompt.d.ts","sourceRoot":"","sources":["../../../../src/listItem/Prompt/ListItemPrompt.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAKzC,MAAM,MAAM,mBAAmB,GAAG;IAChC,SAAS,CAAC,EAAE,GAAG,SAAS,CAAC,QAAQ,GAAG,SAAS,CAAC,QAAQ,GAAG,SAAS,CAAC,OAAO,GAAG,SAAS,CAAC,OAAO,EAAE,CAAC;IACjG,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,MAAM;8BAAiD,mBAAmB;;CAWtF,CAAC;AAGF,eAAe,MAAM,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transferwise/components",
3
- "version": "0.0.0-experimental-93b1fe9",
3
+ "version": "0.0.0-experimental-f87649c",
4
4
  "description": "Neptune React components",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -317,7 +317,9 @@ const DateInput = ({
317
317
  onFocus={(event) =>
318
318
  shouldPropagateOnFocus(event) ? onFocus?.(event) : event.stopPropagation()
319
319
  }
320
- onBlur={(event) => (shouldPropagateOnBlur(event) ? onBlur?.(event) : event.stopPropagation())}
320
+ onBlur={(event) =>
321
+ shouldPropagateOnBlur(event) ? onBlur?.(event) : event.stopPropagation()
322
+ }
321
323
  >
322
324
  <div className="row">
323
325
  {(() => {
@@ -492,26 +492,21 @@
492
492
  .wds-list-item-prompt.wds-list-item-prompt.savings:has(a, button):active {
493
493
  background-color: var(--color-sentiment-positive-secondary-active);
494
494
  }
495
- .wds-list-item-prompt.neutral,
496
- .disabled.wds-list-item .wds-list-item-prompt {
495
+ .wds-list-item-prompt.neutral {
497
496
  background-color: rgba(134,167,189,0.10196);
498
497
  background-color: var(--color-background-neutral);
499
498
  color: #37517e;
500
499
  color: var(--color-content-primary);
501
500
  }
502
501
  .wds-list-item-prompt.neutral a,
503
- .disabled.wds-list-item .wds-list-item-prompt a,
504
- .wds-list-item-prompt.neutral button,
505
- .disabled.wds-list-item .wds-list-item-prompt button {
502
+ .wds-list-item-prompt.neutral button {
506
503
  color: #37517e;
507
504
  color: var(--color-content-primary);
508
505
  }
509
- .wds-list-item-prompt.wds-list-item-prompt.neutral:has(a, button):hover,
510
- .wds-list-item-prompt.disabled.wds-list-item .wds-list-item-prompt:has(a, button):hover {
506
+ .wds-list-item-prompt.wds-list-item-prompt.neutral:has(a, button):hover {
511
507
  background-color: var(--color-background-neutral-hover);
512
508
  }
513
- .wds-list-item-prompt.wds-list-item-prompt.neutral:has(a, button):active,
514
- .wds-list-item-prompt.disabled.wds-list-item .wds-list-item-prompt:has(a, button):active {
509
+ .wds-list-item-prompt.wds-list-item-prompt.neutral:has(a, button):active {
515
510
  background-color: var(--color-background-neutral-active);
516
511
  }
517
512
  .wds-list-item-prompt.warning {
@@ -536,9 +531,6 @@
536
531
  .wds-list-item-prompt.wds-list-item-prompt.warning:has(a, button):active {
537
532
  background-color: color-mix(in srgb, var(--color-sentiment-warning-secondary) 84%, var(--color-sentiment-warning-primary));
538
533
  }
539
- .wds-list-item.disabled .np-switch.disabled {
540
- overflow: visible;
541
- }
542
534
  .wds-list-item {
543
535
  list-style: none;
544
536
  width: 100%;
@@ -662,7 +654,7 @@
662
654
  }
663
655
  .wds-list-item-body {
664
656
  grid-area: body;
665
- align-items: center;
657
+ align-items: start;
666
658
  width: 100%;
667
659
  display: grid;
668
660
  grid-template-columns: 1fr max-content;
@@ -673,6 +665,13 @@
673
665
  gap: var(--size-16);
674
666
  word-break: break-word;
675
667
  }
668
+ @container (min-width: 375px) {
669
+ .wds-list-item-titles,
670
+ .wds-list-item-value {
671
+ min-height: 100%;
672
+ min-height: var(--wds-list-item-value-min-height, 100%);
673
+ }
674
+ }
676
675
  .wds-list-item-title,
677
676
  .wds-list-item-title-value {
678
677
  color: #37517e;
@@ -680,6 +679,9 @@
680
679
  }
681
680
  .wds-list-item-value {
682
681
  text-align: right;
682
+ display: flex;
683
+ flex-direction: column;
684
+ justify-content: center;
683
685
  }
684
686
  .wds-list-item-body-center {
685
687
  display: flex;
@@ -707,18 +709,13 @@
707
709
  flex: 0 0 auto;
708
710
  }
709
711
  .wds-list-item.disabled {
710
- mix-blend-mode: luminosity;
711
- opacity: 0.93;
712
+ filter: none;
713
+ opacity: 1;
712
714
  }
713
715
  .wds-list-item.disabled label {
714
716
  cursor: not-allowed;
715
717
  }
716
- .wds-list-item.disabled .wds-list-item-media .np-avatar-view-content,
717
- .wds-list-item.disabled .wds-list-item-title,
718
- .wds-list-item.disabled .wds-list-item-title-value,
719
- .wds-list-item.disabled .wds-list-item-subtitle,
720
- .wds-list-item.disabled .wds-list-item-subtitle-value,
721
- .wds-list-item.disabled .wds-list-item-additional-info {
718
+ .wds-list-item.disabled .tw-icon-backslash-circle {
722
719
  color: #768e9c;
723
720
  color: var(--color-content-tertiary);
724
721
  }
@@ -1,3 +1,5 @@
1
+ @import (reference) "./ListItem.vars.less";
2
+
1
3
  .wds-list-item {
2
4
  &-gridWrapper {
3
5
  display: grid;
@@ -10,9 +12,9 @@
10
12
  margin-top: -2px;
11
13
  }
12
14
  }
13
- }
15
+ }
14
16
 
15
- @container (min-width: 375px) {
17
+ @container (min-width: @wds-list-item-cq-max) {
16
18
  .wds-list-item-control-wrapper {
17
19
  height: var(--wds-list-item-control-wrapper-height);
18
20
  align-content: center;
@@ -167,7 +169,7 @@
167
169
  }
168
170
  }
169
171
 
170
- @container (min-width: 297px) and (max-width: 375px) {
172
+ @container (min-width: @wds-list-item-cq-min) and (max-width: @wds-list-item-cq-max) {
171
173
  .wds-list-item-media-image{
172
174
  object-position: bottom left;
173
175
  }
@@ -398,7 +400,7 @@
398
400
  }
399
401
  }
400
402
 
401
- @container (max-width: 297px) {
403
+ @container (max-width: @wds-list-item-cq-min) {
402
404
  .wds-list-item-control-wrapper {
403
405
  align-content: start;
404
406
  }