@transferwise/components 46.143.1 → 46.144.1
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/README.md +2 -2
- package/build/actionOption/ActionOption.js.map +1 -1
- package/build/actionOption/ActionOption.mjs.map +1 -1
- package/build/checkboxOption/CheckboxOption.js.map +1 -1
- package/build/checkboxOption/CheckboxOption.mjs.map +1 -1
- package/build/container/Container.js.map +1 -1
- package/build/container/Container.mjs.map +1 -1
- package/build/legacylistItem/LegacyListItem.js.map +1 -1
- package/build/legacylistItem/LegacyListItem.mjs.map +1 -1
- package/build/listItem/AvatarLayout/ListItemAvatarLayout.js.map +1 -1
- package/build/listItem/AvatarLayout/ListItemAvatarLayout.mjs.map +1 -1
- package/build/listItem/AvatarView/ListItemAvatarView.js.map +1 -1
- package/build/listItem/AvatarView/ListItemAvatarView.mjs.map +1 -1
- package/build/listItem/Button/ListItemButton.js.map +1 -1
- package/build/listItem/Button/ListItemButton.mjs.map +1 -1
- package/build/listItem/Checkbox/ListItemCheckbox.js.map +1 -1
- package/build/listItem/Checkbox/ListItemCheckbox.mjs.map +1 -1
- package/build/listItem/IconButton/ListItemIconButton.js.map +1 -1
- package/build/listItem/IconButton/ListItemIconButton.mjs.map +1 -1
- package/build/listItem/Image/ListItemImage.js.map +1 -1
- package/build/listItem/Image/ListItemImage.mjs.map +1 -1
- package/build/listItem/ListItem.js.map +1 -1
- package/build/listItem/ListItem.mjs.map +1 -1
- package/build/listItem/Navigation/ListItemNavigation.js.map +1 -1
- package/build/listItem/Navigation/ListItemNavigation.mjs.map +1 -1
- package/build/listItem/Prompt/ListItemPrompt.js.map +1 -1
- package/build/listItem/Prompt/ListItemPrompt.mjs.map +1 -1
- package/build/listItem/Radio/ListItemRadio.js.map +1 -1
- package/build/listItem/Radio/ListItemRadio.mjs.map +1 -1
- package/build/listItem/Switch/ListItemSwitch.js.map +1 -1
- package/build/listItem/Switch/ListItemSwitch.mjs.map +1 -1
- package/build/loader/Loader.js +1 -1
- package/build/loader/Loader.js.map +1 -1
- package/build/loader/Loader.mjs +1 -1
- package/build/loader/Loader.mjs.map +1 -1
- package/build/logo/Logo.js +1 -1
- package/build/logo/Logo.js.map +1 -1
- package/build/logo/Logo.mjs +1 -1
- package/build/logo/Logo.mjs.map +1 -1
- package/build/main.css +18 -12
- package/build/navigationOption/NavigationOption.js.map +1 -1
- package/build/navigationOption/NavigationOption.mjs.map +1 -1
- package/build/navigationOptionsList/NavigationOptionsList.js.map +1 -1
- package/build/navigationOptionsList/NavigationOptionsList.mjs.map +1 -1
- package/build/prompt/ActionPrompt/ActionPrompt.js +3 -5
- package/build/prompt/ActionPrompt/ActionPrompt.js.map +1 -1
- package/build/prompt/ActionPrompt/ActionPrompt.mjs +3 -5
- package/build/prompt/ActionPrompt/ActionPrompt.mjs.map +1 -1
- package/build/prompt/CriticalBanner/CriticalBanner.js.map +1 -1
- package/build/prompt/CriticalBanner/CriticalBanner.mjs.map +1 -1
- package/build/prompt/InfoPrompt/InfoPrompt.js.map +1 -1
- package/build/prompt/InfoPrompt/InfoPrompt.mjs.map +1 -1
- package/build/radioOption/RadioOption.js.map +1 -1
- package/build/radioOption/RadioOption.mjs.map +1 -1
- package/build/segmentedControl/SegmentedControl.js +1 -1
- package/build/segmentedControl/SegmentedControl.js.map +1 -1
- package/build/segmentedControl/SegmentedControl.mjs +1 -1
- package/build/segmentedControl/SegmentedControl.mjs.map +1 -1
- package/build/styles/css/neptune.css +11 -11
- package/build/styles/less/legacy-variables.less +1 -1
- package/build/styles/less/neptune-tokens.less +2 -2
- package/build/styles/main.css +18 -12
- package/build/styles/prompt/ActionPrompt/ActionPrompt.css +6 -1
- package/build/styles/props/custom-media.css +1 -1
- package/build/styles/props/neptune-tokens.css +1 -1
- package/build/styles/styles/less/neptune.css +11 -11
- package/build/summary/Summary.js +1 -1
- package/build/summary/Summary.js.map +1 -1
- package/build/summary/Summary.mjs +1 -1
- package/build/summary/Summary.mjs.map +1 -1
- package/build/switchOption/SwitchOption.js +1 -1
- package/build/switchOption/SwitchOption.js.map +1 -1
- package/build/switchOption/SwitchOption.mjs +1 -1
- package/build/switchOption/SwitchOption.mjs.map +1 -1
- package/build/types/actionOption/ActionOption.d.ts +1 -1
- package/build/types/checkboxOption/CheckboxOption.d.ts +1 -1
- package/build/types/container/Container.d.ts +1 -1
- package/build/types/flowNavigation/index.d.ts +3 -0
- package/build/types/flowNavigation/index.d.ts.map +1 -0
- package/build/types/iconButton/IconButton.d.ts +1 -1
- package/build/types/index.d.ts +3 -1
- package/build/types/index.d.ts.map +1 -1
- package/build/types/legacylistItem/LegacyListItem.d.ts +1 -1
- package/build/types/listItem/AvatarLayout/ListItemAvatarLayout.d.ts +1 -1
- package/build/types/listItem/AvatarView/ListItemAvatarView.d.ts +1 -1
- package/build/types/listItem/Button/ListItemButton.d.ts +1 -1
- package/build/types/listItem/Checkbox/ListItemCheckbox.d.ts +1 -1
- package/build/types/listItem/IconButton/ListItemIconButton.d.ts +1 -1
- package/build/types/listItem/Image/ListItemImage.d.ts +1 -1
- package/build/types/listItem/ListItem.d.ts +1 -1
- package/build/types/listItem/Navigation/ListItemNavigation.d.ts +1 -1
- package/build/types/listItem/Prompt/ListItemPrompt.d.ts +1 -1
- package/build/types/listItem/Radio/ListItemRadio.d.ts +1 -1
- package/build/types/listItem/Switch/ListItemSwitch.d.ts +1 -1
- package/build/types/logo/Logo.d.ts +1 -1
- package/build/types/logo/index.d.ts +1 -0
- package/build/types/logo/index.d.ts.map +1 -1
- package/build/types/navigationOption/NavigationOption.d.ts +1 -1
- package/build/types/navigationOptionsList/NavigationOptionsList.d.ts +1 -1
- package/build/types/prompt/ActionPrompt/ActionPrompt.d.ts +1 -1
- package/build/types/prompt/ActionPrompt/ActionPrompt.d.ts.map +1 -1
- package/build/types/prompt/CriticalBanner/CriticalBanner.d.ts +1 -1
- package/build/types/prompt/InfoPrompt/InfoPrompt.d.ts +1 -1
- package/build/types/radioOption/RadioOption.d.ts +1 -1
- package/build/types/summary/Summary.d.ts +1 -1
- package/build/types/switchOption/SwitchOption.d.ts +1 -1
- package/package.json +20 -21
- package/src/actionButton/ActionButton.story.tsx +1 -1
- package/src/actionOption/ActionOption.tsx +1 -1
- package/src/button/_stories/Button.accessibility.docs.mdx +1 -1
- package/src/button/_stories/Button.story.tsx +6 -6
- package/src/checkboxButton/CheckboxButton.story.tsx +1 -1
- package/src/checkboxOption/CheckboxOption.tsx +1 -1
- package/src/chips/Chips.story.tsx +3 -3
- package/src/circularButton/CircularButton.story.tsx +4 -4
- package/src/container/Container.tsx +1 -1
- package/src/divider/Divider.story.tsx +2 -2
- package/src/flowNavigation/index.ts +2 -0
- package/src/header/Header.accessibility.docs.mdx +1 -1
- package/src/header/Header.story.tsx +1 -1
- package/src/iconButton/IconButton.story.tsx +4 -4
- package/src/index.ts +3 -1
- package/src/legacylistItem/LegacyListItem.tsx +1 -1
- package/src/listItem/AdditionalInfo/ListItemAdditionalInfo.story.tsx +1 -1
- package/src/listItem/AvatarLayout/ListItemAvatarLayout.story.tsx +1 -1
- package/src/listItem/AvatarLayout/ListItemAvatarLayout.tsx +1 -1
- package/src/listItem/AvatarView/ListItemAvatarView.story.tsx +3 -3
- package/src/listItem/AvatarView/ListItemAvatarView.tsx +1 -1
- package/src/listItem/Button/ListItemButton.story.tsx +3 -3
- package/src/listItem/Button/ListItemButton.tsx +1 -1
- package/src/listItem/Checkbox/ListItemCheckbox.tsx +1 -1
- package/src/listItem/IconButton/ListItemIconButton.story.tsx +4 -4
- package/src/listItem/IconButton/ListItemIconButton.tsx +1 -1
- package/src/listItem/Image/ListItemImage.tsx +1 -1
- package/src/listItem/ListItem.tsx +1 -1
- package/src/listItem/Navigation/ListItemNavigation.tsx +1 -1
- package/src/listItem/Prompt/ListItemPrompt.tsx +1 -1
- package/src/listItem/Radio/ListItemRadio.tsx +1 -1
- package/src/listItem/Switch/ListItemSwitch.tsx +1 -1
- package/src/listItem/_stories/ListItem.disabled.story.tsx +1 -1
- package/src/listItem/_stories/ListItem.story.tsx +5 -5
- package/src/loader/Loader.tsx +1 -1
- package/src/logo/Logo.story.tsx +1 -1
- package/src/logo/Logo.tsx +1 -1
- package/src/logo/index.ts +1 -0
- package/src/main.css +18 -12
- package/src/navigationOption/NavigationOption.tsx +1 -1
- package/src/navigationOptionsList/NavigationOptionsList.tsx +1 -1
- package/src/prompt/ActionPrompt/ActionPrompt.css +6 -1
- package/src/prompt/ActionPrompt/ActionPrompt.less +9 -5
- package/src/prompt/ActionPrompt/ActionPrompt.story.tsx +1 -1
- package/src/prompt/ActionPrompt/ActionPrompt.test.tsx +0 -59
- package/src/prompt/ActionPrompt/ActionPrompt.tsx +3 -7
- package/src/prompt/CriticalBanner/CriticalBanner.story.tsx +1 -1
- package/src/prompt/CriticalBanner/CriticalBanner.tsx +1 -1
- package/src/prompt/InfoPrompt/InfoPrompt.story.tsx +1 -1
- package/src/prompt/InfoPrompt/InfoPrompt.tsx +1 -1
- package/src/radioOption/RadioOption.tsx +1 -1
- package/src/segmentedControl/SegmentedControl.test.tsx +1 -1
- package/src/segmentedControl/SegmentedControl.tsx +1 -1
- package/src/styles/less/neptune.css +11 -11
- package/src/summary/Summary.tsx +1 -1
- package/src/switch/Switch.story.tsx +1 -1
- package/src/switchOption/SwitchOption.tsx +1 -1
|
@@ -9,7 +9,7 @@ import SentimentSurface from '../sentimentSurface';
|
|
|
9
9
|
/**
|
|
10
10
|
* An <a href="?path=/docs/actions-iconbutton--docs">IconButton</a> with a text label below it.
|
|
11
11
|
*
|
|
12
|
-
* **Design guidance**: <a href="https://wise.design/components/circular-button" target="_blank">wise.design/components/circular-button</a>
|
|
12
|
+
* **Design guidance**: <a href="https://docs.wise.design/components/circular-button" target="_blank">wise.design/components/circular-button</a>
|
|
13
13
|
*/
|
|
14
14
|
export default {
|
|
15
15
|
component: CircularButton,
|
|
@@ -45,7 +45,7 @@ export const Playground: Story = {};
|
|
|
45
45
|
/**
|
|
46
46
|
* Priorities set a visual hierarchy amongst the buttons displayed on the
|
|
47
47
|
* screen to help more important buttons to take precedence over others. <br />
|
|
48
|
-
* [Design documentation](https://wise.design/components/circular-button#priority)
|
|
48
|
+
* [Design documentation](https://docs.wise.design/components/circular-button#priority)
|
|
49
49
|
*/
|
|
50
50
|
export const Priority: Story = {
|
|
51
51
|
args: {
|
|
@@ -83,7 +83,7 @@ export const Priority: Story = {
|
|
|
83
83
|
|
|
84
84
|
/**
|
|
85
85
|
* There are two different types of button – default and negative – designed to emphasise the nature of the action. <br />
|
|
86
|
-
* [Design documentation](https://wise.design/components/circular-button#types)
|
|
86
|
+
* [Design documentation](https://docs.wise.design/components/circular-button#types)
|
|
87
87
|
*/
|
|
88
88
|
export const Type: Story = {
|
|
89
89
|
args: {
|
|
@@ -163,7 +163,7 @@ export const Disabled: Story = {
|
|
|
163
163
|
/**
|
|
164
164
|
* `CircularButton` is sentiment-aware and will automatically adjust its colours if wrapped inside
|
|
165
165
|
* the <a href="?path=/docs/foundations-sentimentsurface--docs">SentimentSurface</a> component. <br />
|
|
166
|
-
* [Design documentation](https://wise.design/components/circular-button)
|
|
166
|
+
* [Design documentation](https://docs.wise.design/components/circular-button)
|
|
167
167
|
*/
|
|
168
168
|
export const SentimentAwareness: Story = {
|
|
169
169
|
render: () => {
|
|
@@ -17,7 +17,7 @@ export type ContainerProps<T extends ElementType = 'div'> = PropsWithChildren<
|
|
|
17
17
|
/**
|
|
18
18
|
* Centers page content within a responsive max-width boundary, with automatic horizontal padding that adapts to the viewport size.
|
|
19
19
|
*
|
|
20
|
-
* **Design guidance**: <a href="https://wise.design/foundations/grid" target="_blank">wise.design/foundations/grid</a>
|
|
20
|
+
* **Design guidance**: <a href="https://docs.wise.design/foundations/grid" target="_blank">wise.design/foundations/grid</a>
|
|
21
21
|
*/
|
|
22
22
|
const Container = <T extends ElementType = 'div'>({
|
|
23
23
|
size = 'standard',
|
|
@@ -24,7 +24,7 @@ const hideControls = (args: string[]) => {
|
|
|
24
24
|
* The stories below document the `<Divider />` component, which can be rendered as either a semantic `<hr>` or a non-semantic `<div>`.
|
|
25
25
|
* levels allow customization for different visual separation needs.
|
|
26
26
|
*
|
|
27
|
-
* For more details, please refer to the [design documentation](https://wise.design/components/divider).
|
|
27
|
+
* For more details, please refer to the [design documentation](https://docs.wise.design/components/divider).
|
|
28
28
|
*/
|
|
29
29
|
const meta: Meta<typeof Divider> = {
|
|
30
30
|
component: Divider,
|
|
@@ -89,7 +89,7 @@ export const Playground: Story = {
|
|
|
89
89
|
/**
|
|
90
90
|
* There are three different types of divider – `section`, `subsection`, and `content` –
|
|
91
91
|
* each designed to visually separate or group content. <br />
|
|
92
|
-
* [Design documentation](https://wise.design/components/divider)
|
|
92
|
+
* [Design documentation](https://docs.wise.design/components/divider)
|
|
93
93
|
*/
|
|
94
94
|
export const Level: Story = {
|
|
95
95
|
argTypes: {
|
|
@@ -12,7 +12,7 @@ Given the `Header` is a key component for structuring content and conveying hier
|
|
|
12
12
|
<ListItem
|
|
13
13
|
title="Design guidance"
|
|
14
14
|
subtitle="Before you start, familiarise yourself with the provided guidance."
|
|
15
|
-
control={<ListItem.Navigation href="https://wise.design/components/section-header" />}
|
|
15
|
+
control={<ListItem.Navigation href="https://docs.wise.design/components/section-header" />}
|
|
16
16
|
media={
|
|
17
17
|
<ListItem.AvatarView>
|
|
18
18
|
<Bulb />
|
|
@@ -15,7 +15,7 @@ const hideControls = (args: string[]) =>
|
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* The stories below document the `Header` component, which is used to structure content and convey hierarchy. <br />
|
|
18
|
-
* For more details, refer to the [design documentation](https://wise.design/components/section-header).
|
|
18
|
+
* For more details, refer to the [design documentation](https://docs.wise.design/components/section-header).
|
|
19
19
|
*/
|
|
20
20
|
const meta: Meta<typeof Header> = {
|
|
21
21
|
component: Header,
|
|
@@ -17,7 +17,7 @@ import IconButton, { Props } from './IconButton';
|
|
|
17
17
|
import SentimentSurface from '../sentimentSurface';
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
|
-
* **Design guidance**: <a href="https://wise.design/components/icon-button" target="_blank">wise.design/components/icon-button</a>
|
|
20
|
+
* **Design guidance**: <a href="https://docs.wise.design/components/icon-button" target="_blank">wise.design/components/icon-button</a>
|
|
21
21
|
*/
|
|
22
22
|
export default {
|
|
23
23
|
title: 'Actions/IconButton',
|
|
@@ -64,7 +64,7 @@ export const Playground: Story = {
|
|
|
64
64
|
/**
|
|
65
65
|
* Priorities set a visual hierarchy amongst the buttons displayed on the
|
|
66
66
|
* screen to help more important buttons to take precedence over others. <br />
|
|
67
|
-
* <a href="https://wise.design/components/icon-button#priorities" target="_blank">Design documentation</a>
|
|
67
|
+
* <a href="https://docs.wise.design/components/icon-button#priorities" target="_blank">Design documentation</a>
|
|
68
68
|
*/
|
|
69
69
|
export const Priority: Story = {
|
|
70
70
|
args: {
|
|
@@ -109,7 +109,7 @@ export const Priority: Story = {
|
|
|
109
109
|
|
|
110
110
|
/**
|
|
111
111
|
* There are two different types of button – default and negative – designed to emphasise the nature of the action. <br />
|
|
112
|
-
* <a href="https://wise.design/components/icon-button#types" target="_blank">Design documentation</a>
|
|
112
|
+
* <a href="https://docs.wise.design/components/icon-button#types" target="_blank">Design documentation</a>
|
|
113
113
|
*/
|
|
114
114
|
export const Type: Story = {
|
|
115
115
|
args: {
|
|
@@ -148,7 +148,7 @@ export const Type: Story = {
|
|
|
148
148
|
|
|
149
149
|
/**
|
|
150
150
|
* IconButton is available in 7 sizes: 16, 24, 32, 40, 48, 56, 72. <br />
|
|
151
|
-
* <a href="https://wise.design/components/icon-button#sizes" target="_blank">Design documentation</a>
|
|
151
|
+
* <a href="https://docs.wise.design/components/icon-button#sizes" target="_blank">Design documentation</a>
|
|
152
152
|
*/
|
|
153
153
|
export const Size: Story = {
|
|
154
154
|
args: {
|
package/src/index.ts
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
* Types
|
|
5
5
|
*/
|
|
6
6
|
export type { ContainerProps } from './container';
|
|
7
|
+
export type { LogoProps } from './logo';
|
|
8
|
+
export type { FlowNavigationProps } from './flowNavigation';
|
|
7
9
|
export type { AccordionItem, AccordionProps } from './accordion';
|
|
8
10
|
export type { ActionOptionProps } from './actionOption';
|
|
9
11
|
export type { AlertAction, AlertProps, AlertType } from './alert';
|
|
@@ -170,7 +172,7 @@ export { default as Drawer } from './drawer';
|
|
|
170
172
|
export { default as DropFade } from './dropFade';
|
|
171
173
|
export { default as Emphasis } from './emphasis';
|
|
172
174
|
export { Field } from './field/Field';
|
|
173
|
-
export { default as FlowNavigation } from './flowNavigation
|
|
175
|
+
export { default as FlowNavigation } from './flowNavigation';
|
|
174
176
|
export { default as Header } from './header';
|
|
175
177
|
export { default as Image } from './image';
|
|
176
178
|
export { default as Info } from './info';
|
|
@@ -18,7 +18,7 @@ export type LegacyListItemProps = {
|
|
|
18
18
|
* @deprecatedSince 46.104.0
|
|
19
19
|
* @see [Source](../listItem/ListItem.tsx)
|
|
20
20
|
* @see [Storybook](https://storybook.wise.design/?path=/docs/content-listitem--docs)
|
|
21
|
-
* @see [Design docs](https://wise.design/components/list-item)
|
|
21
|
+
* @see [Design docs](https://docs.wise.design/components/list-item)
|
|
22
22
|
* @see [Release notes](https://transferwise.atlassian.net/wiki/spaces/DS/pages/3647251055/List+Item+release+notes)
|
|
23
23
|
*/
|
|
24
24
|
const LegacyListItem: FC<LegacyListItemProps> = ({
|
|
@@ -14,7 +14,7 @@ import type { ListItemAdditionalInfoProps } from './ListItemAdditionalInfo';
|
|
|
14
14
|
/**
|
|
15
15
|
* Use additional information to add extra details that help make the information clearer for users. Use additional information only after you've used the subtitle.
|
|
16
16
|
*
|
|
17
|
-
* Refer to the [design documentation](https://wise.design/components/list-item#content:~:text=StatusIcon.iconLabel.error-,Additional%20information,-Use%20additional%20information) for more details.
|
|
17
|
+
* Refer to the [design documentation](https://docs.wise.design/components/list-item#content:~:text=StatusIcon.iconLabel.error-,Additional%20information,-Use%20additional%20information) for more details.
|
|
18
18
|
*/
|
|
19
19
|
export default {
|
|
20
20
|
component: ListItem.AdditionalInfo,
|
|
@@ -58,7 +58,7 @@ export const Playground: Story = {
|
|
|
58
58
|
|
|
59
59
|
/**
|
|
60
60
|
* AvatarLayout supports two orientations: horizontal (default) and diagonal. <br />
|
|
61
|
-
* Please refer to the [design documentation](https://wise.design/components/avatar#double) for more details.
|
|
61
|
+
* Please refer to the [design documentation](https://docs.wise.design/components/avatar#double) for more details.
|
|
62
62
|
*/
|
|
63
63
|
export const Orientations: Story = {
|
|
64
64
|
argTypes: disableControls()(['orientation']),
|
|
@@ -12,7 +12,7 @@ export type ListItemAvatarLayoutProps = Omit<AvatarLayoutProps, 'size' | 'intera
|
|
|
12
12
|
* [AvatarLayout component](https://storybook.wise.design/?path=/docs/content-avatarlayout--docs), but offers only
|
|
13
13
|
* a subset of its sizes, and disallows interactive mode, in line with the ListItem's constraints. <br />
|
|
14
14
|
* <br />
|
|
15
|
-
* Please refer to the [Design documentation](https://wise.design/components/list-item#avatar) for details.
|
|
15
|
+
* Please refer to the [Design documentation](https://docs.wise.design/components/list-item#avatar) for details.
|
|
16
16
|
*/
|
|
17
17
|
export const AvatarLayout = ({ className, size = 48, ...props }: ListItemAvatarLayoutProps) => {
|
|
18
18
|
useListItemMedia(size);
|
|
@@ -134,7 +134,7 @@ export const Playground: Story = {
|
|
|
134
134
|
|
|
135
135
|
/**
|
|
136
136
|
* AvatarView can display different types of content including icons, profile images, and initials. <br />
|
|
137
|
-
* Refer to the [design documentation](https://wise.design/components/avatar#:~:text=56%2C%20%E2%80%A8and%2072.-,Media,-There%20are%204) for details.
|
|
137
|
+
* Refer to the [design documentation](https://docs.wise.design/components/avatar#:~:text=56%2C%20%E2%80%A8and%2072.-,Media,-There%20are%204) for details.
|
|
138
138
|
*/
|
|
139
139
|
export const ContentTypes: Story = {
|
|
140
140
|
args: {
|
|
@@ -208,7 +208,7 @@ export const ContentTypes: Story = {
|
|
|
208
208
|
|
|
209
209
|
/**
|
|
210
210
|
* AvatarView supports 6 sizes to fit different list item contexts: `24`, `32`, `40`, `48`, `56`, `72`. If decorated with a Badge, those will be sized accordingly as well. <br />
|
|
211
|
-
* Please refer to the [design documentation](https://wise.design/components/list-item#avatar:~:text=of%20the%20avatar.-,Avatar%20sizes,-List%20item%20supports) for details on when to use which one.
|
|
211
|
+
* Please refer to the [design documentation](https://docs.wise.design/components/list-item#avatar:~:text=of%20the%20avatar.-,Avatar%20sizes,-List%20item%20supports) for details on when to use which one.
|
|
212
212
|
*/
|
|
213
213
|
export const Sizes: Story = {
|
|
214
214
|
parameters: {
|
|
@@ -242,7 +242,7 @@ export const Sizes: Story = {
|
|
|
242
242
|
|
|
243
243
|
/**
|
|
244
244
|
* AvatarView supports different types of badges for additional context and information. <br />
|
|
245
|
-
* Refer to the [design documentation](https://wise.design/components/avatar#:~:text=support%20the%20information.-,With%20badge,-Badges%20contain%20additional) for details.
|
|
245
|
+
* Refer to the [design documentation](https://docs.wise.design/components/avatar#:~:text=support%20the%20information.-,With%20badge,-Badges%20contain%20additional) for details.
|
|
246
246
|
*/
|
|
247
247
|
export const Badges: Story = {
|
|
248
248
|
args: {
|
|
@@ -12,7 +12,7 @@ export type ListItemAvatarViewProps = Omit<AvatarViewProps, 'size' | 'interactiv
|
|
|
12
12
|
* [AvatarView component](https://storybook.wise.design/?path=/docs/content-avatarview--docs), but offers only
|
|
13
13
|
* a subset of its sizes, in line with the ListItem's constraints. <br />
|
|
14
14
|
* <br />
|
|
15
|
-
* Please refer to the [Design documentation](https://wise.design/components/list-item#avatar) for details.
|
|
15
|
+
* Please refer to the [Design documentation](https://docs.wise.design/components/list-item#avatar) for details.
|
|
16
16
|
*/
|
|
17
17
|
export const AvatarView = ({ className, size = 48, ...props }: ListItemAvatarViewProps) => {
|
|
18
18
|
useListItemMedia(size);
|
|
@@ -184,7 +184,7 @@ export const Playground: StoryObj<PreviewStoryArgs> = {
|
|
|
184
184
|
* If you still require a fully interactive ListItem, you can alternatively use `ListItem.Prompt`
|
|
185
185
|
* which allows for a single instance of a link or an inline button.
|
|
186
186
|
*
|
|
187
|
-
* Refer to the [design documentation](https://wise.design/components/list-item#interaction) for details.
|
|
187
|
+
* Refer to the [design documentation](https://docs.wise.design/components/list-item#interaction) for details.
|
|
188
188
|
*/
|
|
189
189
|
export const Interactivity: StoryObj<PreviewStoryArgs> = {
|
|
190
190
|
args: {
|
|
@@ -253,7 +253,7 @@ export const AsAnchor: StoryObj<PreviewStoryArgs> = {
|
|
|
253
253
|
/**
|
|
254
254
|
* There are two different types of button – default and negative – designed to emphasise the nature of the action. <br />
|
|
255
255
|
* **NB:** Sentiment only applies to `primary` and `secondary` priorities. <br />
|
|
256
|
-
* [Design documentation](https://wise.design/components/button#types)
|
|
256
|
+
* [Design documentation](https://docs.wise.design/components/button#types)
|
|
257
257
|
*/
|
|
258
258
|
export const Sentiment: StoryObj<PreviewStoryArgs> = {
|
|
259
259
|
args: {
|
|
@@ -318,7 +318,7 @@ export const Sentiment: StoryObj<PreviewStoryArgs> = {
|
|
|
318
318
|
/**
|
|
319
319
|
* Priorities set a visual hierarchy amongst the buttons displayed on the
|
|
320
320
|
* screen to help more important buttons to take precedence over others. <br />
|
|
321
|
-
* [Design documentation](https://wise.design/components/button#priorities)
|
|
321
|
+
* [Design documentation](https://docs.wise.design/components/button#priorities)
|
|
322
322
|
*/
|
|
323
323
|
export const Priority: StoryObj<PreviewStoryArgs> = {
|
|
324
324
|
args: {
|
|
@@ -22,7 +22,7 @@ export type ListItemButtonProps = Omit<
|
|
|
22
22
|
* [Button component](https://storybook.wise.design/?path=/docs/content-button--docs), but offers only
|
|
23
23
|
* a subset of its features in line with the ListItem's constraints. <br />
|
|
24
24
|
* <br />
|
|
25
|
-
* Please refer to the [Design documentation](https://wise.design/components/list-item---button) for details.
|
|
25
|
+
* Please refer to the [Design documentation](https://docs.wise.design/components/list-item---button) for details.
|
|
26
26
|
*/
|
|
27
27
|
export const Button = forwardRef<HTMLButtonElement, ListItemButtonProps>(
|
|
28
28
|
(
|
|
@@ -13,7 +13,7 @@ export type ListItemCheckboxProps = Pick<
|
|
|
13
13
|
* [CheckboxButton component](https://storybook.wise.design/?path=/docs/actions-checkboxbutton--docs),
|
|
14
14
|
* but offers only a subset of its features in line with the ListItem's constraints. <br />
|
|
15
15
|
*
|
|
16
|
-
* Please refer to the [Design documentation](https://wise.design/components/list-item---checkbox) for details.
|
|
16
|
+
* Please refer to the [Design documentation](https://docs.wise.design/components/list-item---checkbox) for details.
|
|
17
17
|
*/
|
|
18
18
|
export const Checkbox = function (props: ListItemCheckboxProps) {
|
|
19
19
|
const { baseItemProps } = useListItemControl('checkbox', { ...props });
|
|
@@ -22,7 +22,7 @@ const hideControls = disableControls([
|
|
|
22
22
|
/**
|
|
23
23
|
* Use IconButton to provide compact action controls within a ListItem context using iconography.
|
|
24
24
|
*
|
|
25
|
-
* Refer to the [design documentation](https://wise.design/components/list-item) for more details.
|
|
25
|
+
* Refer to the [design documentation](https://docs.wise.design/components/list-item) for more details.
|
|
26
26
|
*/
|
|
27
27
|
const meta: Meta<ListItemIconButtonProps> = {
|
|
28
28
|
component: ListItem.IconButton,
|
|
@@ -142,7 +142,7 @@ export const AccessibleName: Story = {
|
|
|
142
142
|
* If you still require a fully interactive ListItem, you can alternatively use `ListItem.Prompt`
|
|
143
143
|
* which allows for a single instance of a link or an inline button.
|
|
144
144
|
*
|
|
145
|
-
* Refer to the [design documentation](https://wise.design/components/list-item#interaction) for details.
|
|
145
|
+
* Refer to the [design documentation](https://docs.wise.design/components/list-item#interaction) for details.
|
|
146
146
|
*/
|
|
147
147
|
export const Interactivity: Story = {
|
|
148
148
|
args: {
|
|
@@ -177,7 +177,7 @@ export const Interactivity: Story = {
|
|
|
177
177
|
/**
|
|
178
178
|
* There are two different types of icon button – default and negative – designed to emphasise the nature of the action. <br />
|
|
179
179
|
* **NB:** Sentiment only applies to `primary` and `secondary` priorities. <br />
|
|
180
|
-
* [Design documentation](https://wise.design/components/icon-button#types)
|
|
180
|
+
* [Design documentation](https://docs.wise.design/components/icon-button#types)
|
|
181
181
|
*/
|
|
182
182
|
export const Sentiment: Story = {
|
|
183
183
|
argTypes: hideControls(['sentiment', 'priority']),
|
|
@@ -216,7 +216,7 @@ export const Sentiment: Story = {
|
|
|
216
216
|
/**
|
|
217
217
|
* Priorities set a visual hierarchy amongst the buttons displayed on the
|
|
218
218
|
* screen to help more important buttons to take precedence over others. <br />
|
|
219
|
-
* [Design documentation](https://wise.design/components/icon-button#priorities)
|
|
219
|
+
* [Design documentation](https://docs.wise.design/components/icon-button#priorities)
|
|
220
220
|
*/
|
|
221
221
|
export const Priority: Story = {
|
|
222
222
|
argTypes: hideControls(['sentiment', 'priority']),
|
|
@@ -19,7 +19,7 @@ export type ListItemIconButtonProps = Pick<
|
|
|
19
19
|
* [IconButton component](https://storybook.wise.design/?path=/docs/actions-iconbutton--docs), but offers only
|
|
20
20
|
* a subset of its features in line with the ListItem's constraints. <br />
|
|
21
21
|
* <br />
|
|
22
|
-
* Please refer to the [Design documentation](https://wise.design/components/list-item---icon-button) for details.
|
|
22
|
+
* Please refer to the [Design documentation](https://docs.wise.design/components/list-item---icon-button) for details.
|
|
23
23
|
*/
|
|
24
24
|
export const IconButton = function ({
|
|
25
25
|
priority = 'minimal',
|
|
@@ -23,7 +23,7 @@ export type ListItemImageProps = Omit<ImageProps, 'stretch' | 'shrink' | 'id' |
|
|
|
23
23
|
* [Image component](https://storybook.wise.design/?path=/docs/content-image--docs), but offers only
|
|
24
24
|
* a subset of its props, in line with the ListItem's constraints.
|
|
25
25
|
*
|
|
26
|
-
* > **NB**: This component is [not intended for use with illustrations](https://wise.design/foundations/illustration#scale).
|
|
26
|
+
* > **NB**: This component is [not intended for use with illustrations](https://docs.wise.design/foundations/illustration#scale).
|
|
27
27
|
*/
|
|
28
28
|
export const Image = ({ alt = '', size = 48, className, ...props }: ListItemImageProps) => {
|
|
29
29
|
useListItemMedia(size);
|
|
@@ -106,7 +106,7 @@ export type ListItemProps = {
|
|
|
106
106
|
};
|
|
107
107
|
|
|
108
108
|
/**
|
|
109
|
-
* @see [Design documentation](https://wise.design/components/list-item)
|
|
109
|
+
* @see [Design documentation](https://docs.wise.design/components/list-item)
|
|
110
110
|
* @see [Storybook documentation](https://storybook.wise.design/?path=/docs/content-listitem--docs)
|
|
111
111
|
*/
|
|
112
112
|
export const ListItem = ({
|
|
@@ -13,7 +13,7 @@ export type ListItemNavigationProps = Pick<ButtonProps, 'onClick' | 'href' | 'ta
|
|
|
13
13
|
* step in a flow. It offers only a subset of features of the HTML element in line with the
|
|
14
14
|
* ListItem's constraints.<br />
|
|
15
15
|
* <br />
|
|
16
|
-
* Please refer to the [Design documentation](https://wise.design/components/list-item---navigation) for details.
|
|
16
|
+
* Please refer to the [Design documentation](https://docs.wise.design/components/list-item---navigation) for details.
|
|
17
17
|
*/
|
|
18
18
|
export const Navigation = function Navigation({ href, ...props }: ListItemNavigationProps) {
|
|
19
19
|
const { baseItemProps } = useListItemControl('navigation', { href, ...props });
|
|
@@ -12,7 +12,7 @@ export type ListItemPromptProps = Pick<
|
|
|
12
12
|
* This component allows for rendering an Inline Prompt. <br />
|
|
13
13
|
* In the future it will be a thin wrapper around a standalone component.<br />
|
|
14
14
|
*
|
|
15
|
-
* Please refer to the [Design documentation](https://wise.design/components/list-item#prompt) for details.
|
|
15
|
+
* Please refer to the [Design documentation](https://docs.wise.design/components/list-item#prompt) for details.
|
|
16
16
|
*/
|
|
17
17
|
export const Prompt = ({
|
|
18
18
|
sentiment = Sentiment.NEUTRAL,
|
|
@@ -13,7 +13,7 @@ export type ListItemRadioProps = Omit<
|
|
|
13
13
|
* [Button component](https://storybook.wise.design/?path=/docs/content-button--docs), but offers only
|
|
14
14
|
* a subset of its features in line with the ListItem's constraints. <br />
|
|
15
15
|
* <br />
|
|
16
|
-
* Please refer to the [Design documentation](https://wise.design/components/list-item---button) for details.
|
|
16
|
+
* Please refer to the [Design documentation](https://docs.wise.design/components/list-item---button) for details.
|
|
17
17
|
*/
|
|
18
18
|
export const Radio = function (props: ListItemRadioProps) {
|
|
19
19
|
const { baseItemProps } = useListItemControl('radio', { ...props });
|
|
@@ -13,7 +13,7 @@ export type ListItemSwitchProps = Omit<
|
|
|
13
13
|
* [CheckboxButton component](https://storybook.wise.design/?path=/docs/actions-switch--docs),
|
|
14
14
|
* but offers only a subset of its features in line with the ListItem's constraints. <br />
|
|
15
15
|
*
|
|
16
|
-
* Please refer to the [Design documentation](https://wise.design/components/list-item---switch) for details.
|
|
16
|
+
* Please refer to the [Design documentation](https://docs.wise.design/components/list-item---switch) for details.
|
|
17
17
|
*/
|
|
18
18
|
export const Switch = function (props: ListItemSwitchProps) {
|
|
19
19
|
const { baseItemProps } = useListItemControl('switch', { ...props });
|
|
@@ -42,7 +42,7 @@ const disabledPromptMessage = (
|
|
|
42
42
|
);
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
|
-
* Please refer to the [design documentation](https://wise.design/components/list-item#accessibility:~:text=-,Disabled%20states,-) for more details
|
|
45
|
+
* Please refer to the [design documentation](https://docs.wise.design/components/list-item#accessibility:~:text=-,Disabled%20states,-) for more details
|
|
46
46
|
*/
|
|
47
47
|
export default {
|
|
48
48
|
component: ListItem,
|
|
@@ -27,7 +27,7 @@ const hideControls = disableControls([
|
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
29
|
* List Items let users review or select options from a dynamic list.<br />
|
|
30
|
-
* For more details please refer to the [release notes](https://transferwise.atlassian.net/wiki/spaces/DS/pages/3647251055/List+Item+release+notes) and the [design spec](https://wise.design/components/list-item). <br />
|
|
30
|
+
* For more details please refer to the [release notes](https://transferwise.atlassian.net/wiki/spaces/DS/pages/3647251055/List+Item+release+notes) and the [design spec](https://docs.wise.design/components/list-item). <br />
|
|
31
31
|
*
|
|
32
32
|
* > This component replaces now deprecated `LegacyListItem`, `Summary` and all `*Option` components (run codemod to migrate: **`npx @wise/wds-codemods@latest info-prompt`**).
|
|
33
33
|
*/
|
|
@@ -373,7 +373,7 @@ export const ContentRatio: StoryObj<PreviewStoryArgs> = {
|
|
|
373
373
|
* List item supports default and inverted title and description to allow for further flexibility
|
|
374
374
|
* in the component. No other content elements are affected by this prop.
|
|
375
375
|
*
|
|
376
|
-
* Refer to the [design documentation](https://wise.design/components/list-item#content-hierarchy) for more details.
|
|
376
|
+
* Refer to the [design documentation](https://docs.wise.design/components/list-item#content-hierarchy) for more details.
|
|
377
377
|
*/
|
|
378
378
|
export const ContentHierarchy: StoryObj<PreviewStoryArgs> = {
|
|
379
379
|
args: {
|
|
@@ -401,7 +401,7 @@ export const ContentHierarchy: StoryObj<PreviewStoryArgs> = {
|
|
|
401
401
|
/**
|
|
402
402
|
* Interactive list items can alternatively be displayed with a spotlight.
|
|
403
403
|
*
|
|
404
|
-
* Refer to the [design documentation](https://wise.design/components/list-item#spotlight) for more details.
|
|
404
|
+
* Refer to the [design documentation](https://docs.wise.design/components/list-item#spotlight) for more details.
|
|
405
405
|
*/
|
|
406
406
|
export const Spotlight: StoryObj<PreviewStoryArgs> = {
|
|
407
407
|
argTypes: {
|
|
@@ -447,7 +447,7 @@ export const Spotlight: StoryObj<PreviewStoryArgs> = {
|
|
|
447
447
|
* All of these limitations were put in place to ensure that the list item is compliant with
|
|
448
448
|
* accessibility guidance and offers consistent experience across all engineering platforms.
|
|
449
449
|
*
|
|
450
|
-
* Please refer to the [design documentation](https://wise.design/components/list-item#interaction) for more details.
|
|
450
|
+
* Please refer to the [design documentation](https://docs.wise.design/components/list-item#interaction) for more details.
|
|
451
451
|
*/
|
|
452
452
|
export const Interactivity: StoryObj<PreviewStoryArgs> = storySourceWithoutNoise({
|
|
453
453
|
argTypes: {
|
|
@@ -567,7 +567,7 @@ export const Interactivity: StoryObj<PreviewStoryArgs> = storySourceWithoutNoise
|
|
|
567
567
|
* and `valueSubtitle` which can be augmented with sentiment colours, strikethrough or bold
|
|
568
568
|
* styles. <br />
|
|
569
569
|
*
|
|
570
|
-
* Please refer to the [design documentation](https://wise.design/components/list-item#content) for more details.
|
|
570
|
+
* Please refer to the [design documentation](https://docs.wise.design/components/list-item#content) for more details.
|
|
571
571
|
*/
|
|
572
572
|
export const StylingLabels: Story = {
|
|
573
573
|
argTypes: {
|
package/src/loader/Loader.tsx
CHANGED
|
@@ -76,7 +76,7 @@ const Loader = ({
|
|
|
76
76
|
if (theme === 'forest-green') {
|
|
77
77
|
// eslint-disable-next-line no-console
|
|
78
78
|
console.warn(
|
|
79
|
-
'Loader is forbidden to use with Forest Green theme. Check the https://wise.design/components/screen-loader for more info.',
|
|
79
|
+
'Loader is forbidden to use with Forest Green theme. Check the https://docs.wise.design/components/screen-loader for more info.',
|
|
80
80
|
);
|
|
81
81
|
return <></>;
|
|
82
82
|
}
|
package/src/logo/Logo.story.tsx
CHANGED
|
@@ -6,7 +6,7 @@ import { withVariantConfig } from '../../.storybook/helpers';
|
|
|
6
6
|
import Body from '../body';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
* **Design guidance**: <a href="https://wise.design/foundations/logo" target="_blank">wise.design/foundations/logo</a>
|
|
9
|
+
* **Design guidance**: <a href="https://docs.wise.design/foundations/logo" target="_blank">wise.design/foundations/logo</a>
|
|
10
10
|
*/
|
|
11
11
|
const meta: Meta<typeof Logo> = {
|
|
12
12
|
component: Logo,
|
package/src/logo/Logo.tsx
CHANGED
|
@@ -94,7 +94,7 @@ const logoAssets: Record<LogoAssetName, () => JSX.Element> = {
|
|
|
94
94
|
* Renders the Wise wordmark logo. Responsive — shows the flag-only mark on small viewports
|
|
95
95
|
* and the full wordmark on ≥600px (small breakpoint and above).
|
|
96
96
|
*
|
|
97
|
-
* @see {@link https://wise.design/foundations/logo Design Spec}
|
|
97
|
+
* @see {@link https://docs.wise.design/foundations/logo Design Spec}
|
|
98
98
|
*/
|
|
99
99
|
export default function Logo({
|
|
100
100
|
className,
|
package/src/logo/index.ts
CHANGED
package/src/main.css
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly, this file was auto-generated.
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Wed, 27 May 2026 15:50:09 GMT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
:root {
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
|
|
145
145
|
/**
|
|
146
146
|
* Do not edit directly, this file was auto-generated.
|
|
147
|
-
* Generated on
|
|
147
|
+
* Generated on Wed, 27 May 2026 15:50:10 GMT
|
|
148
148
|
*/
|
|
149
149
|
|
|
150
150
|
.np-theme-personal {
|
|
@@ -328,7 +328,7 @@
|
|
|
328
328
|
|
|
329
329
|
/**
|
|
330
330
|
* Do not edit directly, this file was auto-generated.
|
|
331
|
-
* Generated on
|
|
331
|
+
* Generated on Wed, 27 May 2026 15:50:10 GMT
|
|
332
332
|
*/
|
|
333
333
|
|
|
334
334
|
.np-theme-personal--forest-green {
|
|
@@ -512,7 +512,7 @@
|
|
|
512
512
|
|
|
513
513
|
/**
|
|
514
514
|
* Do not edit directly, this file was auto-generated.
|
|
515
|
-
* Generated on
|
|
515
|
+
* Generated on Wed, 27 May 2026 15:50:10 GMT
|
|
516
516
|
*/
|
|
517
517
|
|
|
518
518
|
.np-theme-personal--bright-green {
|
|
@@ -696,7 +696,7 @@
|
|
|
696
696
|
|
|
697
697
|
/**
|
|
698
698
|
* Do not edit directly, this file was auto-generated.
|
|
699
|
-
* Generated on
|
|
699
|
+
* Generated on Wed, 27 May 2026 15:50:10 GMT
|
|
700
700
|
*/
|
|
701
701
|
|
|
702
702
|
.np-theme-personal--dark {
|
|
@@ -880,7 +880,7 @@
|
|
|
880
880
|
|
|
881
881
|
/**
|
|
882
882
|
* Do not edit directly, this file was auto-generated.
|
|
883
|
-
* Generated on
|
|
883
|
+
* Generated on Wed, 27 May 2026 15:50:10 GMT
|
|
884
884
|
*/
|
|
885
885
|
|
|
886
886
|
.np-theme-platform {
|
|
@@ -1064,7 +1064,7 @@
|
|
|
1064
1064
|
|
|
1065
1065
|
/**
|
|
1066
1066
|
* Do not edit directly, this file was auto-generated.
|
|
1067
|
-
* Generated on
|
|
1067
|
+
* Generated on Wed, 27 May 2026 15:50:10 GMT
|
|
1068
1068
|
*/
|
|
1069
1069
|
|
|
1070
1070
|
.np-theme-platform--forest-green {
|
|
@@ -1248,7 +1248,7 @@
|
|
|
1248
1248
|
|
|
1249
1249
|
/**
|
|
1250
1250
|
* Do not edit directly, this file was auto-generated.
|
|
1251
|
-
* Generated on
|
|
1251
|
+
* Generated on Wed, 27 May 2026 15:50:10 GMT
|
|
1252
1252
|
*/
|
|
1253
1253
|
|
|
1254
1254
|
.np-theme-business {
|
|
@@ -1433,7 +1433,7 @@
|
|
|
1433
1433
|
|
|
1434
1434
|
/**
|
|
1435
1435
|
* Do not edit directly, this file was auto-generated.
|
|
1436
|
-
* Generated on
|
|
1436
|
+
* Generated on Wed, 27 May 2026 15:50:10 GMT
|
|
1437
1437
|
*/
|
|
1438
1438
|
|
|
1439
1439
|
.np-theme-business--dark {
|
|
@@ -1618,7 +1618,7 @@
|
|
|
1618
1618
|
|
|
1619
1619
|
/**
|
|
1620
1620
|
* Do not edit directly, this file was auto-generated.
|
|
1621
|
-
* Generated on
|
|
1621
|
+
* Generated on Wed, 27 May 2026 15:50:10 GMT
|
|
1622
1622
|
*/
|
|
1623
1623
|
|
|
1624
1624
|
.np-theme-business--forest-green {
|
|
@@ -1803,7 +1803,7 @@
|
|
|
1803
1803
|
|
|
1804
1804
|
/**
|
|
1805
1805
|
* Do not edit directly, this file was auto-generated.
|
|
1806
|
-
* Generated on
|
|
1806
|
+
* Generated on Wed, 27 May 2026 15:50:11 GMT
|
|
1807
1807
|
*/
|
|
1808
1808
|
|
|
1809
1809
|
.np-theme-business--bright-green {
|
|
@@ -31962,7 +31962,13 @@ html:not([dir="rtl"]) .np-navigation-option {
|
|
|
31962
31962
|
}
|
|
31963
31963
|
|
|
31964
31964
|
@media (max-width: 599.98px) {
|
|
31965
|
-
.wds-action-prompt
|
|
31965
|
+
.wds-action-prompt .wds-action-prompt__action {
|
|
31966
|
+
width: 100%;
|
|
31967
|
+
}
|
|
31968
|
+
}
|
|
31969
|
+
|
|
31970
|
+
@media (max-width: 599.98px) {
|
|
31971
|
+
.wds-action-prompt--with-two-actions .wds-action-prompt__action {
|
|
31966
31972
|
flex: 1 1 calc(50% - (var(--Prompt-actions-gap) / 2));
|
|
31967
31973
|
min-width: -moz-fit-content;
|
|
31968
31974
|
min-width: fit-content;
|
|
@@ -13,7 +13,7 @@ export type NavigationOptionProps = OptionProps;
|
|
|
13
13
|
* @deprecatedSince 46.104.0
|
|
14
14
|
* @see [Source](../listItem/ListItem.tsx)
|
|
15
15
|
* @see [Storybook](https://storybook.wise.design/?path=/docs/content-listitem--docs)
|
|
16
|
-
* @see [Design docs](https://wise.design/components/list-item)
|
|
16
|
+
* @see [Design docs](https://docs.wise.design/components/list-item)
|
|
17
17
|
* @see [Release notes](https://transferwise.atlassian.net/wiki/spaces/DS/pages/3647251055/List+Item+release+notes)
|
|
18
18
|
*/
|
|
19
19
|
const NavigationOption = forwardRef<ReferenceType, NavigationOptionProps>(
|
|
@@ -11,7 +11,7 @@ export interface NavigationOptionListProps {
|
|
|
11
11
|
* @see [List source](../list/List.tsx)
|
|
12
12
|
* @see [ListItem source](../listItem/ListItem.tsx)
|
|
13
13
|
* @see [Storybook](https://storybook.wise.design/?path=/docs/content-listitem--docs)
|
|
14
|
-
* @see [Design docs](https://wise.design/components/list-item)
|
|
14
|
+
* @see [Design docs](https://docs.wise.design/components/list-item)
|
|
15
15
|
* @see [Release notes](https://transferwise.atlassian.net/wiki/spaces/DS/pages/3647251055/List+Item+release+notes)
|
|
16
16
|
*/
|
|
17
17
|
const NavigationOptionList = ({ children }: NavigationOptionListProps) => {
|
|
@@ -13,7 +13,12 @@
|
|
|
13
13
|
object-fit: contain;
|
|
14
14
|
}
|
|
15
15
|
@media (max-width: 599.98px) {
|
|
16
|
-
.wds-action-prompt
|
|
16
|
+
.wds-action-prompt .wds-action-prompt__action {
|
|
17
|
+
width: 100%;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
@media (max-width: 599.98px) {
|
|
21
|
+
.wds-action-prompt--with-two-actions .wds-action-prompt__action {
|
|
17
22
|
flex: 1 1 calc(50% - (var(--Prompt-actions-gap) / 2));
|
|
18
23
|
min-width: -moz-fit-content;
|
|
19
24
|
min-width: fit-content;
|