@transferwise/components 46.129.0 → 46.130.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/build/accordion/Accordion.js.map +1 -1
- package/build/accordion/Accordion.mjs.map +1 -1
- package/build/actionButton/ActionButton.js.map +1 -1
- package/build/actionButton/ActionButton.mjs.map +1 -1
- package/build/actionOption/ActionOption.js.map +1 -1
- package/build/actionOption/ActionOption.mjs.map +1 -1
- package/build/alert/Alert.js +1 -1
- package/build/alert/Alert.js.map +1 -1
- package/build/alert/Alert.mjs +1 -1
- package/build/alert/Alert.mjs.map +1 -1
- package/build/avatar/Avatar.js.map +1 -1
- package/build/avatar/Avatar.mjs.map +1 -1
- package/build/avatarLayout/AvatarLayout.js.map +1 -1
- package/build/avatarLayout/AvatarLayout.mjs.map +1 -1
- package/build/badge/Badge.js.map +1 -1
- package/build/badge/Badge.mjs.map +1 -1
- package/build/body/Body.js.map +1 -1
- package/build/body/Body.mjs.map +1 -1
- package/build/button/LegacyButton.js.map +1 -1
- package/build/button/LegacyButton.mjs.map +1 -1
- package/build/card/Card.js.map +1 -1
- package/build/card/Card.mjs.map +1 -1
- package/build/checkboxButton/CheckboxButton.js.map +1 -1
- package/build/checkboxButton/CheckboxButton.mjs.map +1 -1
- package/build/checkboxOption/CheckboxOption.js.map +1 -1
- package/build/checkboxOption/CheckboxOption.mjs.map +1 -1
- package/build/circularButton/CircularButton.js.map +1 -1
- package/build/circularButton/CircularButton.mjs.map +1 -1
- package/build/common/{card/Card.js → baseCard/BaseCard.js} +4 -4
- package/build/common/baseCard/BaseCard.js.map +1 -0
- package/build/common/{card/Card.mjs → baseCard/BaseCard.mjs} +4 -4
- package/build/common/baseCard/BaseCard.mjs.map +1 -0
- package/build/common/propsValues/type.js +1 -1
- package/build/common/propsValues/type.js.map +1 -1
- package/build/common/propsValues/type.mjs +1 -1
- package/build/common/propsValues/type.mjs.map +1 -1
- package/build/common/propsValues/typography.js +1 -1
- package/build/common/propsValues/typography.js.map +1 -1
- package/build/common/propsValues/typography.mjs +1 -1
- package/build/common/propsValues/typography.mjs.map +1 -1
- package/build/criticalBanner/CriticalCommsBanner.js +68 -3
- package/build/criticalBanner/CriticalCommsBanner.js.map +1 -1
- package/build/criticalBanner/CriticalCommsBanner.mjs +69 -4
- package/build/criticalBanner/CriticalCommsBanner.mjs.map +1 -1
- package/build/dateInput/DateInput.js.map +1 -1
- package/build/dateInput/DateInput.mjs.map +1 -1
- package/build/dimmer/Dimmer.js.map +1 -1
- package/build/dimmer/Dimmer.mjs.map +1 -1
- package/build/drawer/Drawer.js.map +1 -1
- package/build/drawer/Drawer.mjs.map +1 -1
- package/build/field/Field.js.map +1 -1
- package/build/field/Field.mjs.map +1 -1
- package/build/flowNavigation/FlowNavigation.js.map +1 -1
- package/build/flowNavigation/FlowNavigation.mjs.map +1 -1
- package/build/header/Header.js.map +1 -1
- package/build/header/Header.mjs.map +1 -1
- package/build/iconButton/IconButton.js.map +1 -1
- package/build/iconButton/IconButton.mjs.map +1 -1
- package/build/index.js +4 -4
- package/build/index.mjs +1 -1
- package/build/legacylistItem/LegacyListItem.js.map +1 -1
- package/build/legacylistItem/LegacyListItem.mjs.map +1 -1
- package/build/list/List.js.map +1 -1
- package/build/list/List.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/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/loader/Loader.js.map +1 -1
- package/build/loader/Loader.mjs.map +1 -1
- package/build/logo/Logo.js.map +1 -1
- package/build/logo/Logo.mjs.map +1 -1
- package/build/main.css +119 -101
- package/build/modal/Modal.js.map +1 -1
- package/build/modal/Modal.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/nudge/Nudge.js.map +1 -1
- package/build/nudge/Nudge.mjs.map +1 -1
- package/build/phoneNumberInput/PhoneNumberInput.js.map +1 -1
- package/build/phoneNumberInput/PhoneNumberInput.mjs.map +1 -1
- package/build/popover/Popover.js.map +1 -1
- package/build/popover/Popover.mjs.map +1 -1
- package/build/processIndicator/ProcessIndicator.js.map +1 -1
- package/build/processIndicator/ProcessIndicator.mjs.map +1 -1
- package/build/promoCard/PromoCard.js +2 -2
- package/build/promoCard/PromoCard.js.map +1 -1
- package/build/promoCard/PromoCard.mjs +2 -2
- package/build/promoCard/PromoCard.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/InlinePrompt/InlinePrompt.js.map +1 -1
- package/build/prompt/InlinePrompt/InlinePrompt.mjs.map +1 -1
- package/build/radioOption/RadioOption.js.map +1 -1
- package/build/radioOption/RadioOption.mjs.map +1 -1
- package/build/select/Select.js.map +1 -1
- package/build/select/Select.mjs.map +1 -1
- package/build/statusIcon/StatusIcon.js.map +1 -1
- package/build/statusIcon/StatusIcon.mjs.map +1 -1
- package/build/styles/criticalBanner/CriticalCommsBanner.css +33 -15
- package/build/styles/listItem/ListItem.css +1 -1
- package/build/styles/main.css +119 -101
- package/build/styles/sentimentSurface/SentimentSurface.css +36 -36
- 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/tabs/Tabs.js.map +1 -1
- package/build/tabs/Tabs.mjs.map +1 -1
- package/build/typeahead/Typeahead.js.map +1 -1
- package/build/typeahead/Typeahead.mjs.map +1 -1
- package/build/types/accordion/Accordion.d.ts +8 -2
- package/build/types/accordion/Accordion.d.ts.map +1 -1
- package/build/types/actionButton/ActionButton.d.ts +6 -4
- package/build/types/actionButton/ActionButton.d.ts.map +1 -1
- package/build/types/actionOption/ActionOption.d.ts +1 -1
- package/build/types/alert/Alert.d.ts +5 -2
- package/build/types/alert/Alert.d.ts.map +1 -1
- package/build/types/avatar/Avatar.d.ts +4 -0
- package/build/types/avatar/Avatar.d.ts.map +1 -1
- package/build/types/avatarLayout/AvatarLayout.d.ts +5 -1
- package/build/types/avatarLayout/AvatarLayout.d.ts.map +1 -1
- package/build/types/badge/Badge.d.ts +2 -0
- package/build/types/badge/Badge.d.ts.map +1 -1
- package/build/types/body/Body.d.ts +2 -6
- package/build/types/body/Body.d.ts.map +1 -1
- package/build/types/button/Button.types.d.ts +4 -1
- package/build/types/button/Button.types.d.ts.map +1 -1
- package/build/types/button/LegacyButton.d.ts +4 -4
- package/build/types/card/Card.d.ts +2 -1
- package/build/types/card/Card.d.ts.map +1 -1
- package/build/types/checkboxButton/CheckboxButton.d.ts +2 -0
- package/build/types/checkboxButton/CheckboxButton.d.ts.map +1 -1
- package/build/types/checkboxOption/CheckboxOption.d.ts +1 -1
- package/build/types/circularButton/CircularButton.d.ts +1 -1
- package/build/types/circularButton/CircularButton.d.ts.map +1 -1
- package/build/types/common/{card/Card.d.ts → baseCard/BaseCard.d.ts} +8 -8
- package/build/types/common/baseCard/BaseCard.d.ts.map +1 -0
- package/build/types/common/baseCard/index.d.ts +3 -0
- package/build/types/common/baseCard/index.d.ts.map +1 -0
- package/build/types/common/propsValues/type.d.ts +1 -1
- package/build/types/common/propsValues/typography.d.ts +2 -2
- package/build/types/criticalBanner/CriticalCommsBanner.d.ts +4 -1
- package/build/types/criticalBanner/CriticalCommsBanner.d.ts.map +1 -1
- package/build/types/criticalBanner/index.d.ts +1 -0
- package/build/types/criticalBanner/index.d.ts.map +1 -1
- package/build/types/dateInput/DateInput.d.ts +5 -0
- package/build/types/dateInput/DateInput.d.ts.map +1 -1
- package/build/types/dimmer/Dimmer.d.ts +6 -0
- package/build/types/dimmer/Dimmer.d.ts.map +1 -1
- package/build/types/drawer/Drawer.d.ts +8 -2
- package/build/types/drawer/Drawer.d.ts.map +1 -1
- package/build/types/field/Field.d.ts +5 -2
- package/build/types/field/Field.d.ts.map +1 -1
- package/build/types/flowNavigation/FlowNavigation.d.ts +3 -0
- package/build/types/flowNavigation/FlowNavigation.d.ts.map +1 -1
- package/build/types/header/Header.d.ts +5 -1
- package/build/types/header/Header.d.ts.map +1 -1
- package/build/types/iconButton/IconButton.d.ts +6 -0
- package/build/types/iconButton/IconButton.d.ts.map +1 -1
- package/build/types/index.d.ts +2 -1
- package/build/types/index.d.ts.map +1 -1
- package/build/types/legacylistItem/LegacyListItem.d.ts +1 -1
- package/build/types/list/List.d.ts +1 -0
- package/build/types/list/List.d.ts.map +1 -1
- package/build/types/listItem/Button/ListItemButton.d.ts +4 -0
- package/build/types/listItem/Button/ListItemButton.d.ts.map +1 -1
- package/build/types/listItem/IconButton/ListItemIconButton.d.ts +3 -1
- package/build/types/listItem/IconButton/ListItemIconButton.d.ts.map +1 -1
- package/build/types/listItem/Image/ListItemImage.d.ts +2 -0
- package/build/types/listItem/Image/ListItemImage.d.ts.map +1 -1
- package/build/types/listItem/ListItem.d.ts +3 -0
- package/build/types/listItem/ListItem.d.ts.map +1 -1
- package/build/types/loader/Loader.d.ts +5 -1
- package/build/types/loader/Loader.d.ts.map +1 -1
- package/build/types/logo/Logo.d.ts +4 -1
- package/build/types/logo/Logo.d.ts.map +1 -1
- package/build/types/modal/Modal.d.ts +6 -0
- package/build/types/modal/Modal.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/nudge/Nudge.d.ts +1 -1
- package/build/types/nudge/Nudge.d.ts.map +1 -1
- package/build/types/phoneNumberInput/PhoneNumberInput.d.ts +7 -1
- package/build/types/phoneNumberInput/PhoneNumberInput.d.ts.map +1 -1
- package/build/types/popover/Popover.d.ts +1 -0
- package/build/types/popover/Popover.d.ts.map +1 -1
- package/build/types/processIndicator/ProcessIndicator.d.ts +2 -0
- package/build/types/processIndicator/ProcessIndicator.d.ts.map +1 -1
- package/build/types/promoCard/PromoCard.d.ts +3 -3
- package/build/types/promoCard/PromoCard.d.ts.map +1 -1
- package/build/types/prompt/ActionPrompt/ActionPrompt.d.ts +8 -1
- package/build/types/prompt/ActionPrompt/ActionPrompt.d.ts.map +1 -1
- package/build/types/prompt/InlinePrompt/InlinePrompt.d.ts +1 -0
- package/build/types/prompt/InlinePrompt/InlinePrompt.d.ts.map +1 -1
- package/build/types/radioOption/RadioOption.d.ts +1 -1
- package/build/types/select/Select.d.ts +4 -0
- package/build/types/select/Select.d.ts.map +1 -1
- package/build/types/statusIcon/StatusIcon.d.ts +3 -1
- package/build/types/statusIcon/StatusIcon.d.ts.map +1 -1
- package/build/types/summary/Summary.d.ts +7 -4
- package/build/types/summary/Summary.d.ts.map +1 -1
- package/build/types/switchOption/SwitchOption.d.ts +1 -1
- package/build/types/tabs/Tabs.d.ts +2 -0
- package/build/types/tabs/Tabs.d.ts.map +1 -1
- package/build/types/typeahead/Typeahead.d.ts +14 -1
- package/build/types/typeahead/Typeahead.d.ts.map +1 -1
- package/build/types/upload/Upload.d.ts +6 -0
- package/build/types/upload/Upload.d.ts.map +1 -1
- package/build/types/uploadInput/UploadInput.d.ts +10 -1
- package/build/types/uploadInput/UploadInput.d.ts.map +1 -1
- package/build/types/withDisplayFormat/WithDisplayFormat.d.ts +3 -0
- package/build/types/withDisplayFormat/WithDisplayFormat.d.ts.map +1 -1
- package/build/upload/Upload.js.map +1 -1
- package/build/upload/Upload.mjs.map +1 -1
- package/build/uploadInput/UploadInput.js.map +1 -1
- package/build/uploadInput/UploadInput.mjs.map +1 -1
- package/build/withDisplayFormat/WithDisplayFormat.js.map +1 -1
- package/build/withDisplayFormat/WithDisplayFormat.mjs.map +1 -1
- package/package.json +2 -2
- package/src/accordion/Accordion.tsx +8 -2
- package/src/actionButton/ActionButton.tsx +4 -3
- package/src/actionOption/ActionOption.tsx +1 -1
- package/src/alert/Alert.tsx +5 -2
- package/src/avatar/Avatar.tsx +4 -0
- package/src/avatarLayout/AvatarLayout.tsx +5 -1
- package/src/badge/Badge.tsx +2 -0
- package/src/body/Body.tsx +2 -6
- package/src/button/Button.types.ts +4 -1
- package/src/button/LegacyButton.tsx +4 -4
- package/src/card/Card.story.tsx +3 -2
- package/src/card/Card.tsx +2 -1
- package/src/checkboxButton/CheckboxButton.tsx +1 -0
- package/src/checkboxOption/CheckboxOption.tsx +1 -1
- package/src/circularButton/CircularButton.tsx +1 -2
- package/src/common/{card/Card.less → baseCard/BaseCard.less} +1 -1
- package/src/common/{card/Card.story.tsx → baseCard/BaseCard.story.tsx} +5 -5
- package/src/common/{card/Card.test.tsx → baseCard/BaseCard.test.tsx} +11 -12
- package/src/common/{card/Card.tsx → baseCard/BaseCard.tsx} +9 -9
- package/src/common/baseCard/index.ts +2 -0
- package/src/common/propsValues/type.ts +1 -1
- package/src/common/propsValues/typography.ts +2 -2
- package/src/criticalBanner/CriticalCommsBanner.css +33 -15
- package/src/criticalBanner/CriticalCommsBanner.less +46 -36
- package/src/criticalBanner/CriticalCommsBanner.story.tsx +9 -15
- package/src/criticalBanner/CriticalCommsBanner.test.story.tsx +70 -0
- package/src/criticalBanner/CriticalCommsBanner.test.tsx +66 -0
- package/src/criticalBanner/CriticalCommsBanner.tsx +54 -5
- package/src/criticalBanner/index.ts +1 -0
- package/src/dateInput/DateInput.tsx +5 -0
- package/src/dimmer/Dimmer.tsx +6 -0
- package/src/drawer/Drawer.tsx +8 -2
- package/src/field/Field.tsx +5 -2
- package/src/flowNavigation/FlowNavigation.tsx +3 -0
- package/src/header/Header.tsx +5 -1
- package/src/iconButton/IconButton.tsx +3 -0
- package/src/index.ts +2 -1
- package/src/legacylistItem/LegacyListItem.tsx +1 -1
- package/src/list/List.tsx +1 -0
- package/src/listItem/Button/ListItemButton.tsx +2 -0
- package/src/listItem/IconButton/ListItemIconButton.tsx +3 -1
- package/src/listItem/Image/ListItemImage.tsx +2 -0
- package/src/listItem/ListItem.css +1 -1
- package/src/listItem/ListItem.less +4 -2
- package/src/listItem/ListItem.tsx +2 -0
- package/src/listItem/_stories/Breakpoints/ListItem.noMedia.test.story.tsx +62 -0
- package/src/listItem/_stories/Breakpoints/ListItem.sideMedia.test.story.tsx +62 -0
- package/src/listItem/_stories/Breakpoints/ListItem.stackedMedia.test.story.tsx +62 -0
- package/src/listItem/_stories/ListItem.story.tsx +3 -2
- package/src/loader/Loader.tsx +6 -2
- package/src/logo/Logo.tsx +4 -1
- package/src/main.css +119 -101
- package/src/main.less +2 -2
- package/src/modal/Modal.tsx +6 -0
- package/src/navigationOption/NavigationOption.tsx +1 -1
- package/src/navigationOptionsList/NavigationOptionsList.tsx +1 -1
- package/src/nudge/Nudge.tsx +1 -1
- package/src/phoneNumberInput/PhoneNumberInput.tsx +7 -1
- package/src/popover/Popover.tsx +1 -0
- package/src/processIndicator/ProcessIndicator.tsx +2 -0
- package/src/promoCard/PromoCard.tsx +6 -5
- package/src/prompt/ActionPrompt/ActionPrompt.tsx +8 -1
- package/src/prompt/InlinePrompt/InlinePrompt.tsx +1 -0
- package/src/radioOption/RadioOption.tsx +1 -1
- package/src/select/Select.tsx +4 -0
- package/src/sentimentSurface/SentimentSurface.css +36 -36
- package/src/sentimentSurface/SentimentSurface.less +12 -12
- package/src/statusIcon/StatusIcon.tsx +3 -1
- package/src/summary/Summary.tsx +7 -4
- package/src/switchOption/SwitchOption.tsx +1 -1
- package/src/tabs/Tabs.tsx +2 -0
- package/src/typeahead/Typeahead.tsx +14 -2
- package/src/upload/Upload.tsx +6 -0
- package/src/uploadInput/UploadInput.tsx +12 -4
- package/src/withDisplayFormat/WithDisplayFormat.tsx +3 -0
- package/build/common/card/Card.js.map +0 -1
- package/build/common/card/Card.mjs.map +0 -1
- package/build/types/common/card/Card.d.ts.map +0 -1
- package/build/types/common/card/index.d.ts +0 -3
- package/build/types/common/card/index.d.ts.map +0 -1
- package/src/common/card/index.ts +0 -2
- /package/build/styles/common/{card/Card.css → baseCard/BaseCard.css} +0 -0
- /package/src/common/{card/Card.css → baseCard/BaseCard.css} +0 -0
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
import List from '../../../list';
|
|
3
|
+
import { ListItem, type ListItemProps } from '../../ListItem';
|
|
4
|
+
import {
|
|
5
|
+
SB_LIST_ITEM_ADDITIONAL_INFO as INFO,
|
|
6
|
+
SB_LIST_ITEM_CONTROLS as CONTROLS,
|
|
7
|
+
SB_LIST_ITEM_PROMPTS as PROMPT,
|
|
8
|
+
SB_LIST_ITEM_TEXT as TEXT,
|
|
9
|
+
SB_LIST_ITEM_MEDIA as MEDIA,
|
|
10
|
+
} from '../subcomponents';
|
|
11
|
+
|
|
12
|
+
export default {
|
|
13
|
+
component: ListItem,
|
|
14
|
+
title: 'Content/ListItem/tests/Breakpoints/NoMedia',
|
|
15
|
+
tags: ['!autodocs', '!manifest'],
|
|
16
|
+
parameters: {
|
|
17
|
+
controls: { disable: true },
|
|
18
|
+
actions: { disable: true },
|
|
19
|
+
knobs: { disable: true },
|
|
20
|
+
},
|
|
21
|
+
} satisfies Meta<ListItemProps>;
|
|
22
|
+
|
|
23
|
+
type Story = StoryObj<ListItemProps>;
|
|
24
|
+
|
|
25
|
+
const widths = [240, 241];
|
|
26
|
+
|
|
27
|
+
const sharedProps: Partial<ListItemProps> = {
|
|
28
|
+
subtitle: TEXT.subtitle,
|
|
29
|
+
valueTitle: TEXT.valueTitle,
|
|
30
|
+
valueSubtitle: TEXT.valueSubtitle,
|
|
31
|
+
additionalInfo: INFO.nonInteractive,
|
|
32
|
+
control: CONTROLS.switch,
|
|
33
|
+
prompt: PROMPT.interactive,
|
|
34
|
+
media: MEDIA.avatarSingle,
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export const NoMedia: Story = {
|
|
38
|
+
render: () => (
|
|
39
|
+
<div
|
|
40
|
+
style={{
|
|
41
|
+
display: 'grid',
|
|
42
|
+
gridTemplateColumns: widths.map((w) => `${w}px`).join(' '),
|
|
43
|
+
gap: 16,
|
|
44
|
+
}}
|
|
45
|
+
>
|
|
46
|
+
{widths.map((w) => (
|
|
47
|
+
<div key={w} style={{ textAlign: 'center', fontWeight: 'bold' }}>
|
|
48
|
+
{w}px
|
|
49
|
+
</div>
|
|
50
|
+
))}
|
|
51
|
+
{widths.map((w) => (
|
|
52
|
+
<div key={w} style={{ width: w }}>
|
|
53
|
+
<List>
|
|
54
|
+
<ListItem {...sharedProps} title="Inactive Spotlight" spotlight="inactive" />
|
|
55
|
+
<ListItem {...sharedProps} title="Active Spotlight" spotlight="active" />
|
|
56
|
+
<ListItem {...sharedProps} title="No Spotlight" />
|
|
57
|
+
</List>
|
|
58
|
+
</div>
|
|
59
|
+
))}
|
|
60
|
+
</div>
|
|
61
|
+
),
|
|
62
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
import List from '../../../list';
|
|
3
|
+
import { ListItem, type ListItemProps } from '../../ListItem';
|
|
4
|
+
import {
|
|
5
|
+
SB_LIST_ITEM_ADDITIONAL_INFO as INFO,
|
|
6
|
+
SB_LIST_ITEM_CONTROLS as CONTROLS,
|
|
7
|
+
SB_LIST_ITEM_MEDIA as MEDIA,
|
|
8
|
+
SB_LIST_ITEM_PROMPTS as PROMPT,
|
|
9
|
+
SB_LIST_ITEM_TEXT as TEXT,
|
|
10
|
+
} from '../subcomponents';
|
|
11
|
+
|
|
12
|
+
export default {
|
|
13
|
+
component: ListItem,
|
|
14
|
+
title: 'Content/ListItem/tests/Breakpoints/SideMedia',
|
|
15
|
+
tags: ['!autodocs', '!manifest'],
|
|
16
|
+
parameters: {
|
|
17
|
+
controls: { disable: true },
|
|
18
|
+
actions: { disable: true },
|
|
19
|
+
knobs: { disable: true },
|
|
20
|
+
},
|
|
21
|
+
} satisfies Meta<ListItemProps>;
|
|
22
|
+
|
|
23
|
+
type Story = StoryObj<ListItemProps>;
|
|
24
|
+
|
|
25
|
+
const widths = [332, 333];
|
|
26
|
+
|
|
27
|
+
const sharedProps: Partial<ListItemProps> = {
|
|
28
|
+
subtitle: TEXT.subtitle,
|
|
29
|
+
valueTitle: TEXT.valueTitle,
|
|
30
|
+
valueSubtitle: TEXT.valueSubtitle,
|
|
31
|
+
additionalInfo: INFO.nonInteractive,
|
|
32
|
+
control: CONTROLS.switch,
|
|
33
|
+
prompt: PROMPT.interactive,
|
|
34
|
+
media: MEDIA.avatarSingle,
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export const SideMedia: Story = {
|
|
38
|
+
render: () => (
|
|
39
|
+
<div
|
|
40
|
+
style={{
|
|
41
|
+
display: 'grid',
|
|
42
|
+
gridTemplateColumns: widths.map((w) => `${w}px`).join(' '),
|
|
43
|
+
gap: 16,
|
|
44
|
+
}}
|
|
45
|
+
>
|
|
46
|
+
{widths.map((w) => (
|
|
47
|
+
<div key={w} style={{ textAlign: 'center', fontWeight: 'bold' }}>
|
|
48
|
+
{w}px
|
|
49
|
+
</div>
|
|
50
|
+
))}
|
|
51
|
+
{widths.map((w) => (
|
|
52
|
+
<div key={w} style={{ width: w }}>
|
|
53
|
+
<List>
|
|
54
|
+
<ListItem {...sharedProps} title="Inactive Spotlight" spotlight="inactive" />
|
|
55
|
+
<ListItem {...sharedProps} title="Active Spotlight" spotlight="active" />
|
|
56
|
+
<ListItem {...sharedProps} title="No Spotlight" />
|
|
57
|
+
</List>
|
|
58
|
+
</div>
|
|
59
|
+
))}
|
|
60
|
+
</div>
|
|
61
|
+
),
|
|
62
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
import List from '../../../list';
|
|
3
|
+
import { ListItem, type ListItemProps } from '../../ListItem';
|
|
4
|
+
import {
|
|
5
|
+
SB_LIST_ITEM_ADDITIONAL_INFO as INFO,
|
|
6
|
+
SB_LIST_ITEM_CONTROLS as CONTROLS,
|
|
7
|
+
SB_LIST_ITEM_MEDIA as MEDIA,
|
|
8
|
+
SB_LIST_ITEM_PROMPTS as PROMPT,
|
|
9
|
+
SB_LIST_ITEM_TEXT as TEXT,
|
|
10
|
+
} from '../subcomponents';
|
|
11
|
+
|
|
12
|
+
export default {
|
|
13
|
+
component: ListItem,
|
|
14
|
+
title: 'Content/ListItem/tests/Breakpoints/StackedMedia',
|
|
15
|
+
tags: ['!autodocs', '!manifest'],
|
|
16
|
+
parameters: {
|
|
17
|
+
controls: { disable: true },
|
|
18
|
+
actions: { disable: true },
|
|
19
|
+
knobs: { disable: true },
|
|
20
|
+
},
|
|
21
|
+
} satisfies Meta<ListItemProps>;
|
|
22
|
+
|
|
23
|
+
type Story = StoryObj<ListItemProps>;
|
|
24
|
+
|
|
25
|
+
const widths = [308, 309];
|
|
26
|
+
|
|
27
|
+
const sharedProps: Partial<ListItemProps> = {
|
|
28
|
+
subtitle: TEXT.subtitle,
|
|
29
|
+
valueTitle: TEXT.valueTitle,
|
|
30
|
+
valueSubtitle: TEXT.valueSubtitle,
|
|
31
|
+
additionalInfo: INFO.nonInteractive,
|
|
32
|
+
control: CONTROLS.switch,
|
|
33
|
+
prompt: PROMPT.interactive,
|
|
34
|
+
media: MEDIA.avatarSingle,
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export const StackedMedia: Story = {
|
|
38
|
+
render: () => (
|
|
39
|
+
<div
|
|
40
|
+
style={{
|
|
41
|
+
display: 'grid',
|
|
42
|
+
gridTemplateColumns: widths.map((w) => `${w}px`).join(' '),
|
|
43
|
+
gap: 16,
|
|
44
|
+
}}
|
|
45
|
+
>
|
|
46
|
+
{widths.map((w) => (
|
|
47
|
+
<div key={w} style={{ textAlign: 'center', fontWeight: 'bold' }}>
|
|
48
|
+
{w}px
|
|
49
|
+
</div>
|
|
50
|
+
))}
|
|
51
|
+
{widths.map((w) => (
|
|
52
|
+
<div key={w} style={{ width: w }}>
|
|
53
|
+
<List>
|
|
54
|
+
<ListItem {...sharedProps} title="Inactive Spotlight" spotlight="inactive" />
|
|
55
|
+
<ListItem {...sharedProps} title="Active Spotlight" spotlight="active" />
|
|
56
|
+
<ListItem {...sharedProps} title="No Spotlight" />
|
|
57
|
+
</List>
|
|
58
|
+
</div>
|
|
59
|
+
))}
|
|
60
|
+
</div>
|
|
61
|
+
),
|
|
62
|
+
};
|
|
@@ -428,8 +428,9 @@ export const Spotlight: StoryObj<PreviewStoryArgs> = {
|
|
|
428
428
|
|
|
429
429
|
return (
|
|
430
430
|
<List>
|
|
431
|
-
<ListItem {...props} {...previewProps} spotlight="inactive" />
|
|
432
|
-
<ListItem {...props} {...previewProps} spotlight="active" />
|
|
431
|
+
<ListItem {...props} {...previewProps} title="Inactive Spotlight" spotlight="inactive" />
|
|
432
|
+
<ListItem {...props} {...previewProps} title="Active Spotlight" spotlight="active" />
|
|
433
|
+
<ListItem {...props} {...previewProps} title="No Spotlight" />
|
|
433
434
|
</List>
|
|
434
435
|
);
|
|
435
436
|
},
|
package/src/loader/Loader.tsx
CHANGED
|
@@ -4,19 +4,23 @@ import { useEffect, useState } from 'react';
|
|
|
4
4
|
|
|
5
5
|
import { Size, SizeExtraSmall, SizeSmall, SizeMedium, SizeLarge, SizeExtraLarge } from '../common';
|
|
6
6
|
|
|
7
|
-
// TODO: We gracefully
|
|
7
|
+
// TODO: We gracefully deprecated xs, lg and xl -- remove these as part of a future breaking change to this component
|
|
8
8
|
type DeprecatedSize = SizeExtraSmall | SizeLarge | SizeExtraLarge;
|
|
9
9
|
|
|
10
10
|
type SizeType = SizeSmall | SizeMedium;
|
|
11
11
|
|
|
12
12
|
export type LoaderProps = {
|
|
13
13
|
/**
|
|
14
|
-
* @deprecated
|
|
14
|
+
* @deprecated Use `size` instead.
|
|
15
|
+
* @default false
|
|
15
16
|
*/
|
|
16
17
|
small?: boolean;
|
|
18
|
+
/** @default 'md' */
|
|
17
19
|
size?: SizeType | DeprecatedSize;
|
|
20
|
+
/** @default false */
|
|
18
21
|
displayInstantly?: boolean;
|
|
19
22
|
// TODO: refactor in favor of prop from `CommonProps` type
|
|
23
|
+
/** @default {} */
|
|
20
24
|
classNames?: Record<string, string>;
|
|
21
25
|
'data-testid'?: string;
|
|
22
26
|
};
|
package/src/logo/Logo.tsx
CHANGED
|
@@ -35,7 +35,10 @@ export interface LogoProps {
|
|
|
35
35
|
className?: string;
|
|
36
36
|
/** If true, will use dark colours for dark on light theme */
|
|
37
37
|
inverse?: boolean;
|
|
38
|
-
/**
|
|
38
|
+
/**
|
|
39
|
+
* What type of logo to display
|
|
40
|
+
* @default 'WISE'
|
|
41
|
+
*/
|
|
39
42
|
type?: `${LogoType}`;
|
|
40
43
|
}
|
|
41
44
|
|
package/src/main.css
CHANGED
|
@@ -226,12 +226,12 @@
|
|
|
226
226
|
.np-theme-platform.wds-sentiment-surface-success-elevated,
|
|
227
227
|
.np-theme-personal--bright-green.wds-sentiment-surface-success-elevated,
|
|
228
228
|
.np-theme-business--bright-green.wds-sentiment-surface-success-elevated {
|
|
229
|
-
--color-sentiment-content-primary: #
|
|
230
|
-
--color-sentiment-content-primary-hover: #
|
|
231
|
-
--color-sentiment-content-primary-active: #
|
|
232
|
-
--color-sentiment-interactive-primary: #
|
|
233
|
-
--color-sentiment-interactive-primary-hover: #
|
|
234
|
-
--color-sentiment-interactive-primary-active: #
|
|
229
|
+
--color-sentiment-content-primary: #CEF1B8;
|
|
230
|
+
--color-sentiment-content-primary-hover: #E0FFCC;
|
|
231
|
+
--color-sentiment-content-primary-active: #E1F4D4;
|
|
232
|
+
--color-sentiment-interactive-primary: #CEF1B8;
|
|
233
|
+
--color-sentiment-interactive-primary-hover: #E0FFCC;
|
|
234
|
+
--color-sentiment-interactive-primary-active: #E1F4D4;
|
|
235
235
|
--color-sentiment-interactive-secondary: #054D28;
|
|
236
236
|
--color-sentiment-interactive-secondary-hover: #043A1E;
|
|
237
237
|
--color-sentiment-interactive-secondary-active: #022614;
|
|
@@ -250,24 +250,24 @@
|
|
|
250
250
|
.np-theme-personal--forest-green.wds-sentiment-surface-success-base,
|
|
251
251
|
.np-theme-business--forest-green.wds-sentiment-surface-success-base,
|
|
252
252
|
.np-theme-platform--forest-green.wds-sentiment-surface-success-base {
|
|
253
|
-
--color-sentiment-content-primary: #
|
|
254
|
-
--color-sentiment-content-primary-hover: #
|
|
255
|
-
--color-sentiment-content-primary-active: #
|
|
256
|
-
--color-sentiment-interactive-primary: #
|
|
257
|
-
--color-sentiment-interactive-primary-hover: #
|
|
258
|
-
--color-sentiment-interactive-primary-active: #
|
|
259
|
-
--color-sentiment-interactive-secondary: #
|
|
260
|
-
--color-sentiment-interactive-secondary-hover: #
|
|
261
|
-
--color-sentiment-interactive-secondary-active: #
|
|
262
|
-
--color-sentiment-interactive-secondary-neutral: #
|
|
263
|
-
--color-sentiment-interactive-secondary-neutral-hover: #
|
|
264
|
-
--color-sentiment-interactive-secondary-neutral-active: #
|
|
265
|
-
--color-sentiment-interactive-control: #
|
|
266
|
-
--color-sentiment-interactive-control-hover: #
|
|
267
|
-
--color-sentiment-interactive-control-active: #
|
|
268
|
-
--color-sentiment-background-surface: #
|
|
269
|
-
--color-sentiment-background-surface-hover: #
|
|
270
|
-
--color-sentiment-background-surface-active: #
|
|
253
|
+
--color-sentiment-content-primary: #CEF1B8;
|
|
254
|
+
--color-sentiment-content-primary-hover: #E0FFCC;
|
|
255
|
+
--color-sentiment-content-primary-active: #E1F4D4;
|
|
256
|
+
--color-sentiment-interactive-primary: #CEF1B8;
|
|
257
|
+
--color-sentiment-interactive-primary-hover: #E0FFCC;
|
|
258
|
+
--color-sentiment-interactive-primary-active: #E1F4D4;
|
|
259
|
+
--color-sentiment-interactive-secondary: #054D28;
|
|
260
|
+
--color-sentiment-interactive-secondary-hover: #043A1E;
|
|
261
|
+
--color-sentiment-interactive-secondary-active: #022614;
|
|
262
|
+
--color-sentiment-interactive-secondary-neutral: #256A43;
|
|
263
|
+
--color-sentiment-interactive-secondary-neutral-hover: #2A794C;
|
|
264
|
+
--color-sentiment-interactive-secondary-neutral-active: #329057;
|
|
265
|
+
--color-sentiment-interactive-control: #054D28;
|
|
266
|
+
--color-sentiment-interactive-control-hover: #043A1E;
|
|
267
|
+
--color-sentiment-interactive-control-active: #022614;
|
|
268
|
+
--color-sentiment-background-surface: #054D28;
|
|
269
|
+
--color-sentiment-background-surface-hover: #043A1E;
|
|
270
|
+
--color-sentiment-background-surface-active: #022614;
|
|
271
271
|
}
|
|
272
272
|
.np-theme-personal--dark.wds-sentiment-surface-success-elevated,
|
|
273
273
|
.np-theme-business--dark.wds-sentiment-surface-success-elevated,
|
|
@@ -448,18 +448,18 @@
|
|
|
448
448
|
--color-sentiment-interactive-primary: #E0F7F7;
|
|
449
449
|
--color-sentiment-interactive-primary-hover: #CAF1F1;
|
|
450
450
|
--color-sentiment-interactive-primary-active: #B6ECEC;
|
|
451
|
-
--color-sentiment-interactive-secondary: #
|
|
452
|
-
--color-sentiment-interactive-secondary-hover: #
|
|
453
|
-
--color-sentiment-interactive-secondary-active: #
|
|
454
|
-
--color-sentiment-interactive-secondary-neutral: #
|
|
455
|
-
--color-sentiment-interactive-secondary-neutral-hover: #
|
|
456
|
-
--color-sentiment-interactive-secondary-neutral-active: #
|
|
457
|
-
--color-sentiment-interactive-control: #
|
|
458
|
-
--color-sentiment-interactive-control-hover: #
|
|
459
|
-
--color-sentiment-interactive-control-active: #
|
|
460
|
-
--color-sentiment-background-surface: #
|
|
461
|
-
--color-sentiment-background-surface-hover: #
|
|
462
|
-
--color-sentiment-background-surface-active: #
|
|
451
|
+
--color-sentiment-interactive-secondary: #054D4D;
|
|
452
|
+
--color-sentiment-interactive-secondary-hover: #043A3A;
|
|
453
|
+
--color-sentiment-interactive-secondary-active: #022626;
|
|
454
|
+
--color-sentiment-interactive-secondary-neutral: #1F6161;
|
|
455
|
+
--color-sentiment-interactive-secondary-neutral-hover: #247070;
|
|
456
|
+
--color-sentiment-interactive-secondary-neutral-active: #298080;
|
|
457
|
+
--color-sentiment-interactive-control: #054D4D;
|
|
458
|
+
--color-sentiment-interactive-control-hover: #043A3A;
|
|
459
|
+
--color-sentiment-interactive-control-active: #022626;
|
|
460
|
+
--color-sentiment-background-surface: #054D4D;
|
|
461
|
+
--color-sentiment-background-surface-hover: #043A3A;
|
|
462
|
+
--color-sentiment-background-surface-active: #022626;
|
|
463
463
|
}
|
|
464
464
|
.np-theme-personal--dark.wds-sentiment-surface-proposition-elevated,
|
|
465
465
|
.np-theme-business--dark.wds-sentiment-surface-proposition-elevated,
|
|
@@ -485,37 +485,55 @@
|
|
|
485
485
|
--color-sentiment-background-surface-hover: #CAF1F1;
|
|
486
486
|
--color-sentiment-background-surface-active: #B6ECEC;
|
|
487
487
|
}
|
|
488
|
-
.
|
|
489
|
-
|
|
490
|
-
|
|
488
|
+
.critical-comms {
|
|
489
|
+
border-radius: 16px;
|
|
490
|
+
border-radius: var(--radius-medium);
|
|
491
|
+
overflow: hidden;
|
|
491
492
|
}
|
|
492
|
-
.
|
|
493
|
-
color: var(--color-
|
|
493
|
+
.critical-comms .alert {
|
|
494
|
+
background-color: var(--color-sentiment-background-surface);
|
|
495
|
+
color: var(--color-sentiment-content-primary);
|
|
496
|
+
margin-bottom: 0;
|
|
497
|
+
}
|
|
498
|
+
.critical-comms .alert .np-text-title-body {
|
|
499
|
+
color: var(--color-sentiment-content-primary);
|
|
494
500
|
}
|
|
495
|
-
.
|
|
501
|
+
.critical-comms .status-circle.negative {
|
|
496
502
|
background-color: #ffffff;
|
|
497
503
|
background-color: var(--color-background-screen);
|
|
498
504
|
}
|
|
499
|
-
.
|
|
500
|
-
color:
|
|
505
|
+
.critical-comms .status-circle.negative .status-icon {
|
|
506
|
+
color: #37517e;
|
|
507
|
+
color: var(--color-content-primary);
|
|
501
508
|
}
|
|
502
|
-
.
|
|
509
|
+
.critical-comms .alert__message .alert__action {
|
|
503
510
|
margin-top: 16px;
|
|
504
511
|
margin-top: var(--size-16);
|
|
505
512
|
}
|
|
506
|
-
.
|
|
507
|
-
--Button-
|
|
508
|
-
--Button-
|
|
509
|
-
--Button-
|
|
513
|
+
.critical-comms .wds-Button {
|
|
514
|
+
--Button-color: var(--color-content-primary);
|
|
515
|
+
--Button-color-hover: var(--color-content-primary);
|
|
516
|
+
--Button-color-active: var(--color-content-primary);
|
|
517
|
+
--Button-background: var(--color-background-screen);
|
|
518
|
+
--Button-background-hover: var(--color-sentiment-interactive-primary-hover);
|
|
519
|
+
--Button-background-active: var(--color-sentiment-interactive-primary-active);
|
|
520
|
+
}
|
|
521
|
+
.critical-comms .alert-warning .wds-Button {
|
|
522
|
+
--Button-background-hover: var(--color-sentiment-interactive-secondary-neutral-hover);
|
|
523
|
+
--Button-background-active: var(--color-sentiment-interactive-secondary-neutral-active);
|
|
510
524
|
}
|
|
511
525
|
@media (min-width: 768px) {
|
|
512
|
-
.
|
|
526
|
+
.critical-comms .alert-warning .alert__message,
|
|
527
|
+
.critical-comms .alert-negative .alert__message,
|
|
528
|
+
.critical-comms .alert-neutral .alert__message {
|
|
513
529
|
flex-direction: row;
|
|
514
530
|
justify-content: space-between;
|
|
515
531
|
align-items: center;
|
|
516
532
|
width: 100%;
|
|
517
533
|
}
|
|
518
|
-
.
|
|
534
|
+
.critical-comms .alert-warning .alert__message .alert__action,
|
|
535
|
+
.critical-comms .alert-negative .alert__message .alert__action,
|
|
536
|
+
.critical-comms .alert-neutral .alert__message .alert__action {
|
|
519
537
|
margin-top: 0;
|
|
520
538
|
margin-left: 16px;
|
|
521
539
|
margin-left: var(--padding-small);
|
|
@@ -1969,6 +1987,55 @@
|
|
|
1969
1987
|
border-radius: var(--radius-full);
|
|
1970
1988
|
box-shadow: inset 0 0 0 var(--circle-border-width) var(--circle-border-color);
|
|
1971
1989
|
}
|
|
1990
|
+
/* @define Card */
|
|
1991
|
+
.np-Card {
|
|
1992
|
+
--Card-background-color: var(--color-background-neutral);
|
|
1993
|
+
--Card-border-radius: var(--size-32);
|
|
1994
|
+
--Card-flex-gap: var(--size-16);
|
|
1995
|
+
--Card-padding: var(--size-24);
|
|
1996
|
+
--Card-closeButton-position: var(--size-16);
|
|
1997
|
+
--Card-max-width: initial;
|
|
1998
|
+
display: flex;
|
|
1999
|
+
flex-direction: column;
|
|
2000
|
+
align-items: stretch;
|
|
2001
|
+
background-color: rgba(134,167,189,0.10196);
|
|
2002
|
+
background-color: var(--Card-background-color);
|
|
2003
|
+
border-radius: 32px;
|
|
2004
|
+
border-radius: var(--Card-border-radius);
|
|
2005
|
+
gap: 16px;
|
|
2006
|
+
gap: var(--Card-flex-gap);
|
|
2007
|
+
padding: 24px;
|
|
2008
|
+
padding: var(--Card-padding);
|
|
2009
|
+
position: relative;
|
|
2010
|
+
box-sizing: border-box;
|
|
2011
|
+
overflow: hidden;
|
|
2012
|
+
}
|
|
2013
|
+
@media (min-width: 576px) {
|
|
2014
|
+
.np-Card {
|
|
2015
|
+
max-width: var(--Card-max-width);
|
|
2016
|
+
}
|
|
2017
|
+
}
|
|
2018
|
+
.np-Card.is-disabled .np-Card-closeButton {
|
|
2019
|
+
cursor: not-allowed;
|
|
2020
|
+
}
|
|
2021
|
+
.np-theme-personal--dark .np-Card {
|
|
2022
|
+
--Card-background-color: var(--color-background-elevated);
|
|
2023
|
+
}
|
|
2024
|
+
.np-Card-closeButton {
|
|
2025
|
+
position: absolute;
|
|
2026
|
+
z-index: 100;
|
|
2027
|
+
top: var(--Card-closeButton-position);
|
|
2028
|
+
right: var(--Card-closeButton-position);
|
|
2029
|
+
}
|
|
2030
|
+
[dir="rtl"] .np-Card-closeButton {
|
|
2031
|
+
left: var(--Card-closeButton-position);
|
|
2032
|
+
right: auto;
|
|
2033
|
+
}
|
|
2034
|
+
.np-Card--small {
|
|
2035
|
+
--Card-border-radius: var(--size-16);
|
|
2036
|
+
--Card-closeButton-position: var(--size-8);
|
|
2037
|
+
--Card-padding: var(--size-16);
|
|
2038
|
+
}
|
|
1972
2039
|
.np-bottom-sheet {
|
|
1973
2040
|
border-radius: 10px 10px 0 0;
|
|
1974
2041
|
}
|
|
@@ -2022,55 +2089,6 @@
|
|
|
2022
2089
|
padding: 0 16px 16px;
|
|
2023
2090
|
padding: 0 var(--size-16) var(--size-16);
|
|
2024
2091
|
}
|
|
2025
|
-
/* @define Card */
|
|
2026
|
-
.np-Card {
|
|
2027
|
-
--Card-background-color: var(--color-background-neutral);
|
|
2028
|
-
--Card-border-radius: var(--size-32);
|
|
2029
|
-
--Card-flex-gap: var(--size-16);
|
|
2030
|
-
--Card-padding: var(--size-24);
|
|
2031
|
-
--Card-closeButton-position: var(--size-16);
|
|
2032
|
-
--Card-max-width: initial;
|
|
2033
|
-
display: flex;
|
|
2034
|
-
flex-direction: column;
|
|
2035
|
-
align-items: stretch;
|
|
2036
|
-
background-color: rgba(134,167,189,0.10196);
|
|
2037
|
-
background-color: var(--Card-background-color);
|
|
2038
|
-
border-radius: 32px;
|
|
2039
|
-
border-radius: var(--Card-border-radius);
|
|
2040
|
-
gap: 16px;
|
|
2041
|
-
gap: var(--Card-flex-gap);
|
|
2042
|
-
padding: 24px;
|
|
2043
|
-
padding: var(--Card-padding);
|
|
2044
|
-
position: relative;
|
|
2045
|
-
box-sizing: border-box;
|
|
2046
|
-
overflow: hidden;
|
|
2047
|
-
}
|
|
2048
|
-
@media (min-width: 576px) {
|
|
2049
|
-
.np-Card {
|
|
2050
|
-
max-width: var(--Card-max-width);
|
|
2051
|
-
}
|
|
2052
|
-
}
|
|
2053
|
-
.np-Card.is-disabled .np-Card-closeButton {
|
|
2054
|
-
cursor: not-allowed;
|
|
2055
|
-
}
|
|
2056
|
-
.np-theme-personal--dark .np-Card {
|
|
2057
|
-
--Card-background-color: var(--color-background-elevated);
|
|
2058
|
-
}
|
|
2059
|
-
.np-Card-closeButton {
|
|
2060
|
-
position: absolute;
|
|
2061
|
-
z-index: 100;
|
|
2062
|
-
top: var(--Card-closeButton-position);
|
|
2063
|
-
right: var(--Card-closeButton-position);
|
|
2064
|
-
}
|
|
2065
|
-
[dir="rtl"] .np-Card-closeButton {
|
|
2066
|
-
left: var(--Card-closeButton-position);
|
|
2067
|
-
right: auto;
|
|
2068
|
-
}
|
|
2069
|
-
.np-Card--small {
|
|
2070
|
-
--Card-border-radius: var(--size-16);
|
|
2071
|
-
--Card-closeButton-position: var(--size-8);
|
|
2072
|
-
--Card-padding: var(--size-16);
|
|
2073
|
-
}
|
|
2074
2092
|
.np-close-button {
|
|
2075
2093
|
transition: color 0.15s ease-in-out;
|
|
2076
2094
|
color: #00a2dd;
|
|
@@ -3692,7 +3710,7 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
|
|
|
3692
3710
|
.wds-list-item.disabled--has-prompt-reason .wds-list-item-prompt {
|
|
3693
3711
|
opacity: 0.93;
|
|
3694
3712
|
}
|
|
3695
|
-
.wds-list-item-spotlight {
|
|
3713
|
+
.wds-list-item-spotlight .wds-list-item-gridWrapper {
|
|
3696
3714
|
padding-left: 12px;
|
|
3697
3715
|
padding-left: var(--size-12);
|
|
3698
3716
|
padding-right: 12px;
|
package/src/main.less
CHANGED
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
@import "./chips/Chip.less";
|
|
20
20
|
@import "./circularButton/CircularButton.less";
|
|
21
21
|
@import "./common/circle/Circle.less";
|
|
22
|
+
@import "./common/baseCard/BaseCard.less";
|
|
22
23
|
@import "./common/bottomSheet/BottomSheet.less";
|
|
23
|
-
@import "./common/card/Card.less";
|
|
24
24
|
@import "./common/closeButton/CloseButton.less";
|
|
25
25
|
@import "./common/Option/Option.less";
|
|
26
26
|
@import "./common/panel/Panel.less";
|
|
@@ -90,4 +90,4 @@
|
|
|
90
90
|
@import "./prompt/ActionPrompt/ActionPrompt.less";
|
|
91
91
|
|
|
92
92
|
// List all less files in src in alphabetical order: find -s src -type f -name '*.less' ! -name 'main.less'
|
|
93
|
-
// Make sure you are not referencing main.less itself in this file!
|
|
93
|
+
// Make sure you are not referencing main.less itself in this file!
|
package/src/modal/Modal.tsx
CHANGED
|
@@ -30,15 +30,21 @@ import closeBtnMessages from '../common/closeButton/CloseButton.messages';
|
|
|
30
30
|
const TRANSITION_DURATION_IN_MILLISECONDS = 150;
|
|
31
31
|
|
|
32
32
|
export type ModalProps = CommonProps & {
|
|
33
|
+
/** @default null */
|
|
33
34
|
title?: ReactNode;
|
|
34
35
|
body: ReactNode;
|
|
36
|
+
/** @default null */
|
|
35
37
|
footer?: ReactNode;
|
|
38
|
+
/** @default 'md' */
|
|
36
39
|
size?: SizeSmall | SizeMedium | SizeLarge | SizeExtraLarge;
|
|
37
40
|
onClose: () => void;
|
|
38
41
|
onUnmount?: () => void;
|
|
39
42
|
open: boolean;
|
|
43
|
+
/** @default 'viewport' */
|
|
40
44
|
scroll?: ScrollContent | ScrollViewport;
|
|
45
|
+
/** @default 'center' */
|
|
41
46
|
position?: PositionTop | PositionCenter;
|
|
47
|
+
/** @default false */
|
|
42
48
|
disableDimmerClickToClose?: boolean;
|
|
43
49
|
};
|
|
44
50
|
|
|
@@ -9,7 +9,7 @@ import { OptionProps, ReferenceType } from '../common/Option/Option';
|
|
|
9
9
|
export type NavigationOptionProps = OptionProps;
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
* @deprecated
|
|
12
|
+
* @deprecated Use `<ListItem />` instead.
|
|
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)
|
|
@@ -6,7 +6,7 @@ export interface NavigationOptionListProps {
|
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
* @deprecated
|
|
9
|
+
* @deprecated Use `<List />` and `<ListItem />` instead.
|
|
10
10
|
* @deprecatedSince 46.104.0
|
|
11
11
|
* @see [List source](../list/List.tsx)
|
|
12
12
|
* @see [ListItem source](../listItem/ListItem.tsx)
|
package/src/nudge/Nudge.tsx
CHANGED
|
@@ -31,11 +31,17 @@ export interface PhoneNumberInputProps {
|
|
|
31
31
|
onFocus?: React.FocusEventHandler<HTMLInputElement>;
|
|
32
32
|
onBlur?: () => void;
|
|
33
33
|
countryCode?: string;
|
|
34
|
+
/** @default 'Prefix' */
|
|
34
35
|
searchPlaceholder?: string;
|
|
36
|
+
/** @default 'md' */
|
|
35
37
|
size?: SizeSmall | SizeMedium | SizeLarge;
|
|
36
38
|
placeholder?: string;
|
|
39
|
+
/** @default {} */
|
|
37
40
|
selectProps?: Partial<SelectInputProps<string | null>>;
|
|
38
|
-
/**
|
|
41
|
+
/**
|
|
42
|
+
* List of iso3 codes of countries to remove from the list
|
|
43
|
+
* @default []
|
|
44
|
+
*/
|
|
39
45
|
disabledCountries?: readonly string[];
|
|
40
46
|
}
|
|
41
47
|
|
package/src/popover/Popover.tsx
CHANGED
|
@@ -26,6 +26,7 @@ export interface PopoverProps {
|
|
|
26
26
|
title?: React.ReactNode;
|
|
27
27
|
/** Screen-reader-friendly title. Must be provided if `title` prop is not set. */
|
|
28
28
|
'aria-label'?: string;
|
|
29
|
+
/** @default 'right' */
|
|
29
30
|
preferredPlacement?: PopoverPreferredPlacement;
|
|
30
31
|
content: React.ReactNode;
|
|
31
32
|
onClose?: () => void;
|
|
@@ -11,7 +11,9 @@ export type ProcessIndicatorStatus =
|
|
|
11
11
|
`${Status.PROCESSING | Status.FAILED | Status.SUCCEEDED | Status.HIDDEN}`;
|
|
12
12
|
|
|
13
13
|
export interface ProcessIndicatorProps {
|
|
14
|
+
/** @default 'processing' */
|
|
14
15
|
status?: ProcessIndicatorStatus;
|
|
16
|
+
/** @default 'sm' */
|
|
15
17
|
size?: 'xxs' | `${Size.EXTRA_SMALL | Size.SMALL | Size.EXTRA_LARGE}`;
|
|
16
18
|
className?: string;
|
|
17
19
|
'data-testid'?: string;
|