@transferwise/components 0.0.0-experimental-c6e51c3 → 0.0.0-experimental-575dca7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/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/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.map +1 -1
- 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/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/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/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/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 +1 -1
- 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/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/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/navigationOption/NavigationOption.tsx +1 -1
- package/src/navigationOptionsList/NavigationOptionsList.tsx +1 -1
- package/src/prompt/ActionPrompt/ActionPrompt.story.tsx +1 -1
- package/src/prompt/ActionPrompt/ActionPrompt.tsx +1 -1
- 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/summary/Summary.tsx +1 -1
- package/src/switch/Switch.story.tsx +1 -1
- package/src/switchOption/SwitchOption.tsx +1 -1
|
@@ -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,
|
|
@@ -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) => {
|
|
@@ -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: {
|
|
@@ -35,7 +35,7 @@ export type ActionPromptProps = {
|
|
|
35
35
|
*
|
|
36
36
|
* 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
37
|
*
|
|
38
|
-
* Guidance can be found in the [design system](https://wise.design/components/action-prompt).
|
|
38
|
+
* Guidance can be found in the [design system](https://docs.wise.design/components/action-prompt).
|
|
39
39
|
*/
|
|
40
40
|
export const ActionPrompt = ({
|
|
41
41
|
sentiment = 'neutral',
|
|
@@ -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
|
|
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 = ({
|