@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
|
@@ -10,13 +10,17 @@
|
|
|
10
10
|
object-fit: contain;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
+
@media (--screen-xs-max) {
|
|
14
|
+
.wds-action-prompt__action {
|
|
15
|
+
width: 100%;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
13
19
|
&--with-two-actions {
|
|
14
20
|
@media (--screen-xs-max) {
|
|
15
|
-
.wds-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
min-width: fit-content;
|
|
19
|
-
}
|
|
21
|
+
.wds-action-prompt__action {
|
|
22
|
+
flex: 1 1 calc(50% - (var(--Prompt-actions-gap) / 2));
|
|
23
|
+
min-width: fit-content;
|
|
20
24
|
}
|
|
21
25
|
}
|
|
22
26
|
}
|
|
@@ -334,7 +334,7 @@ export const Dismissible: Story = {
|
|
|
334
334
|
* While the component itself will stretch to the full available width, the text container will be
|
|
335
335
|
* capped at `480px` to ensure optimal readability.
|
|
336
336
|
*
|
|
337
|
-
* [Visit wise.design](https://wise.design/components/info-prompt#writing-an-info-prompt) for guidance on writing effective prompt messages that are concise and easy to understand.
|
|
337
|
+
* [Visit wise.design](https://docs.wise.design/components/info-prompt#writing-an-info-prompt) for guidance on writing effective prompt messages that are concise and easy to understand.
|
|
338
338
|
*/
|
|
339
339
|
export const ParagraphWidth: Story = {
|
|
340
340
|
parameters: {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { userEvent } from '@testing-library/user-event';
|
|
2
|
-
import { Breakpoint } from '@transferwise/neptune-tokens';
|
|
3
2
|
import { mockMatchMedia, render, screen } from '../../test-utils';
|
|
4
3
|
import { ActionPrompt, ActionPromptProps } from './ActionPrompt';
|
|
5
4
|
|
|
@@ -221,62 +220,4 @@ describe('ActionPrompt', () => {
|
|
|
221
220
|
expect(screen.getByTestId('prompt')).not.toHaveClass('wds-action-prompt--with-two-actions');
|
|
222
221
|
});
|
|
223
222
|
});
|
|
224
|
-
|
|
225
|
-
describe('Responsive behavior', () => {
|
|
226
|
-
it('renders buttons as block on mobile', () => {
|
|
227
|
-
const mockMatchMediaFn = window.matchMedia as jest.Mock;
|
|
228
|
-
mockMatchMediaFn.mockImplementation((query: string) => ({
|
|
229
|
-
matches: query !== `(min-width: ${Breakpoint.SMALL}px)`,
|
|
230
|
-
media: query,
|
|
231
|
-
onchange: null,
|
|
232
|
-
addListener: jest.fn(),
|
|
233
|
-
removeListener: jest.fn(),
|
|
234
|
-
addEventListener: jest.fn(),
|
|
235
|
-
removeEventListener: jest.fn(),
|
|
236
|
-
dispatchEvent: jest.fn(),
|
|
237
|
-
}));
|
|
238
|
-
|
|
239
|
-
render(
|
|
240
|
-
<ActionPrompt
|
|
241
|
-
{...defaultProps}
|
|
242
|
-
actionSecondary={{ label: 'Secondary', onClick: jest.fn() }}
|
|
243
|
-
/>,
|
|
244
|
-
);
|
|
245
|
-
|
|
246
|
-
expect(screen.getByRole('button', { name: 'Primary Action' })).toHaveClass(
|
|
247
|
-
'wds-Button--block',
|
|
248
|
-
);
|
|
249
|
-
expect(screen.getByRole('button', { name: 'Secondary' })).toHaveClass(
|
|
250
|
-
'wds-Button--block'
|
|
251
|
-
);
|
|
252
|
-
});
|
|
253
|
-
|
|
254
|
-
it('renders buttons as inline on desktop', () => {
|
|
255
|
-
const mockMatchMediaFn = window.matchMedia as jest.Mock;
|
|
256
|
-
mockMatchMediaFn.mockImplementation((query: string) => ({
|
|
257
|
-
matches: query === `(min-width: ${Breakpoint.SMALL}px)`,
|
|
258
|
-
media: query,
|
|
259
|
-
onchange: null,
|
|
260
|
-
addListener: jest.fn(),
|
|
261
|
-
removeListener: jest.fn(),
|
|
262
|
-
addEventListener: jest.fn(),
|
|
263
|
-
removeEventListener: jest.fn(),
|
|
264
|
-
dispatchEvent: jest.fn(),
|
|
265
|
-
}));
|
|
266
|
-
|
|
267
|
-
render(
|
|
268
|
-
<ActionPrompt
|
|
269
|
-
{...defaultProps}
|
|
270
|
-
actionSecondary={{ label: 'Secondary', onClick: jest.fn() }}
|
|
271
|
-
/>,
|
|
272
|
-
);
|
|
273
|
-
|
|
274
|
-
expect(screen.getByRole('button', { name: 'Primary Action' })).not.toHaveClass(
|
|
275
|
-
'wds-Button--block',
|
|
276
|
-
);
|
|
277
|
-
expect(screen.getByRole('button', { name: 'Secondary' })).not.toHaveClass(
|
|
278
|
-
'wds-Button--block',
|
|
279
|
-
);
|
|
280
|
-
});
|
|
281
|
-
});
|
|
282
223
|
});
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { AriaAttributes, ReactNode, useId } from 'react';
|
|
2
|
-
import { Breakpoint } from '@transferwise/neptune-tokens';
|
|
3
2
|
import { clsx } from 'clsx';
|
|
4
3
|
|
|
5
4
|
import Body from '../../body';
|
|
@@ -7,7 +6,6 @@ import Button from '../../button';
|
|
|
7
6
|
import { Typography } from '../../common';
|
|
8
7
|
import { ButtonProps } from '../../button/Button.types';
|
|
9
8
|
import { PrimitivePrompt, PrimitivePromptProps } from '../PrimitivePrompt';
|
|
10
|
-
import { useScreenSize } from '../../common/hooks/useScreenSize';
|
|
11
9
|
import { renderPromptMedia, PromptMedia } from '../helpers/promptMedia';
|
|
12
10
|
|
|
13
11
|
export type ActionPromptProps = {
|
|
@@ -35,7 +33,7 @@ export type ActionPromptProps = {
|
|
|
35
33
|
*
|
|
36
34
|
* If your message is about immediate user feedback (e.g., form submission errors, download failures, missing data warnings), use an [info prompt](https://storybook.wise.design/?path=/docs/prompts-infoprompt--docs) instead.
|
|
37
35
|
*
|
|
38
|
-
* Guidance can be found in the [design system](https://wise.design/components/action-prompt).
|
|
36
|
+
* Guidance can be found in the [design system](https://docs.wise.design/components/action-prompt).
|
|
39
37
|
*/
|
|
40
38
|
export const ActionPrompt = ({
|
|
41
39
|
sentiment = 'neutral',
|
|
@@ -50,8 +48,6 @@ export const ActionPrompt = ({
|
|
|
50
48
|
'data-testid': testId,
|
|
51
49
|
'aria-label': ariaLabel,
|
|
52
50
|
}: ActionPromptProps) => {
|
|
53
|
-
const isMobile = !useScreenSize(Breakpoint.SMALL);
|
|
54
|
-
|
|
55
51
|
const mediaId = useId();
|
|
56
52
|
const titleId = useId();
|
|
57
53
|
const descId = useId();
|
|
@@ -87,11 +83,11 @@ export const ActionPrompt = ({
|
|
|
87
83
|
{actionSecondary && (
|
|
88
84
|
// @ts-expect-error onClick type mismatch
|
|
89
85
|
<Button
|
|
86
|
+
className="wds-action-prompt__action"
|
|
90
87
|
v2
|
|
91
88
|
size="md"
|
|
92
89
|
priority="secondary"
|
|
93
90
|
href={actionSecondary.href}
|
|
94
|
-
block={isMobile}
|
|
95
91
|
onClick={actionSecondary?.onClick}
|
|
96
92
|
>
|
|
97
93
|
{actionSecondary.label}
|
|
@@ -99,11 +95,11 @@ export const ActionPrompt = ({
|
|
|
99
95
|
)}
|
|
100
96
|
{/* @ts-expect-error onClick type mismatch */}
|
|
101
97
|
<Button
|
|
98
|
+
className="wds-action-prompt__action"
|
|
102
99
|
v2
|
|
103
100
|
size="md"
|
|
104
101
|
priority="primary"
|
|
105
102
|
href={action.href}
|
|
106
|
-
block={isMobile}
|
|
107
103
|
onClick={action.onClick}
|
|
108
104
|
>
|
|
109
105
|
{action.label}
|
|
@@ -8,7 +8,7 @@ import { CriticalBanner, type CriticalBannerProps } from './CriticalBanner';
|
|
|
8
8
|
import { withVariantConfig } from '../../../.storybook/helpers';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
|
-
* **Design guidance**: <a href="https://wise.design/components/critical-banner" target="_blank">wise.design/components/critical-banner</a>
|
|
11
|
+
* **Design guidance**: <a href="https://docs.wise.design/components/critical-banner" target="_blank">wise.design/components/critical-banner</a>
|
|
12
12
|
*
|
|
13
13
|
* Can be controlled or uncontrolled. When `onToggle` is provided, the consumer manages the expanded state via `expanded` and the banner calls `onToggle` when the user clicks the chevron. When `onToggle` is not provided, the banner manages its own expanded state internally and toggles it when the user clicks the chevron.
|
|
14
14
|
*/
|
|
@@ -43,7 +43,7 @@ export type CriticalBannerProps = {
|
|
|
43
43
|
* A full-width, non-dismissible banner for critical messages such as account blocks or
|
|
44
44
|
* time-sensitive actions that require immediate user attention.
|
|
45
45
|
|
|
46
|
-
* @see {@link https://wise.design/components/critical-banner Design Spec}
|
|
46
|
+
* @see {@link https://docs.wise.design/components/critical-banner Design Spec}
|
|
47
47
|
*/
|
|
48
48
|
export const CriticalBanner = ({
|
|
49
49
|
sentiment = 'negative',
|
|
@@ -318,7 +318,7 @@ export const MediaTypes: StoryObj<InfoPromptProps> = {
|
|
|
318
318
|
* While the component itself will stretch to the full available width, the text container will be
|
|
319
319
|
* capped at `480px` to ensure optimal readability.
|
|
320
320
|
*
|
|
321
|
-
* [Visit wise.design](https://wise.design/components/info-prompt#writing-an-info-prompt) for guidance on writing effective prompt messages that are concise and easy to understand.
|
|
321
|
+
* [Visit wise.design](https://docs.wise.design/components/info-prompt#writing-an-info-prompt) for guidance on writing effective prompt messages that are concise and easy to understand.
|
|
322
322
|
*/
|
|
323
323
|
export const ParagraphWidth: StoryObj<PreviewStoryArgs> = {
|
|
324
324
|
parameters: {
|
|
@@ -71,7 +71,7 @@ export type InfoPromptProps = Omit<HTMLAttributes<HTMLDivElement>, 'title' | 'ar
|
|
|
71
71
|
*
|
|
72
72
|
* Use this component to replace the deprecated `Alert` component (run codemod to migrate: **`npx \@wise/wds-codemods@latest info-prompt`**).
|
|
73
73
|
*
|
|
74
|
-
* Guidance can be found in the [design system](https://wise.design/components/info-prompt).
|
|
74
|
+
* Guidance can be found in the [design system](https://docs.wise.design/components/info-prompt).
|
|
75
75
|
*/
|
|
76
76
|
export const InfoPrompt = ({
|
|
77
77
|
sentiment = 'neutral',
|
|
@@ -21,7 +21,7 @@ export interface RadioOptionProps<T extends string | number = string>
|
|
|
21
21
|
* @deprecatedSince 46.104.0
|
|
22
22
|
* @see [Source](../listItem/ListItem.tsx)
|
|
23
23
|
* @see [Storybook](https://storybook.wise.design/?path=/docs/content-listitem--docs)
|
|
24
|
-
* @see [Design docs](https://wise.design/components/list-item)
|
|
24
|
+
* @see [Design docs](https://docs.wise.design/components/list-item)
|
|
25
25
|
* @see [Release notes](https://transferwise.atlassian.net/wiki/spaces/DS/pages/3647251055/List+Item+release+notes)
|
|
26
26
|
*/
|
|
27
27
|
function RadioOption<T extends string | number = ''>({
|
|
@@ -185,7 +185,7 @@ describe('SegmentedControl', () => {
|
|
|
185
185
|
],
|
|
186
186
|
});
|
|
187
187
|
}).toThrow(
|
|
188
|
-
'SegmentedControl only supports up to 3 segments. Please refer to: https://wise.design/components/segmented-control',
|
|
188
|
+
'SegmentedControl only supports up to 3 segments. Please refer to: https://docs.wise.design/components/segmented-control',
|
|
189
189
|
);
|
|
190
190
|
});
|
|
191
191
|
|
|
@@ -45,7 +45,7 @@ const SegmentedControl = ({
|
|
|
45
45
|
|
|
46
46
|
if (segments.length > 3) {
|
|
47
47
|
throw new Error(
|
|
48
|
-
'SegmentedControl only supports up to 3 segments. Please refer to: https://wise.design/components/segmented-control',
|
|
48
|
+
'SegmentedControl only supports up to 3 segments. Please refer to: https://docs.wise.design/components/segmented-control',
|
|
49
49
|
);
|
|
50
50
|
}
|
|
51
51
|
|
|
@@ -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 {
|
package/src/summary/Summary.tsx
CHANGED
|
@@ -98,7 +98,7 @@ export interface Props {
|
|
|
98
98
|
* @deprecatedSince 46.104.0
|
|
99
99
|
* @see [Source](../listItem/ListItem.tsx)
|
|
100
100
|
* @see [Storybook](https://storybook.wise.design/?path=/docs/content-listitem--docs)
|
|
101
|
-
* @see [Design docs](https://wise.design/components/list-item)
|
|
101
|
+
* @see [Design docs](https://docs.wise.design/components/list-item)
|
|
102
102
|
* @see [Release notes](https://transferwise.atlassian.net/wiki/spaces/DS/pages/3647251055/List+Item+release+notes)
|
|
103
103
|
*/
|
|
104
104
|
const Summary = ({
|
|
@@ -8,7 +8,7 @@ import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
|
8
8
|
import { Label } from '../label';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
|
-
* **Design guidance**: <a href="https://wise.design/components/switch" target="_blank">wise.design/components/switch</a>
|
|
11
|
+
* **Design guidance**: <a href="https://docs.wise.design/components/switch" target="_blank">wise.design/components/switch</a>
|
|
12
12
|
*/
|
|
13
13
|
const meta: Meta<typeof Switch> = {
|
|
14
14
|
component: Switch,
|
|
@@ -31,7 +31,7 @@ const stopPropagation = (event?: MouseEvent<HTMLSpanElement>) => {
|
|
|
31
31
|
* @deprecatedSince 46.104.0
|
|
32
32
|
* @see [Source](../listItem/ListItem.tsx)
|
|
33
33
|
* @see [Storybook](https://storybook.wise.design/?path=/docs/content-listitem--docs)
|
|
34
|
-
* @see [Design docs](https://wise.design/components/list-item)
|
|
34
|
+
* @see [Design docs](https://docs.wise.design/components/list-item)
|
|
35
35
|
* @see [Release notes](https://transferwise.atlassian.net/wiki/spaces/DS/pages/3647251055/List+Item+release+notes)
|
|
36
36
|
*/
|
|
37
37
|
const SwitchOption = ({
|