@transferwise/components 0.0.0-experimental-751dc12 → 0.0.0-experimental-4341b9c
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/button/Button.js +0 -1
- package/build/button/Button.js.map +1 -1
- package/build/button/Button.mjs +0 -1
- package/build/button/Button.mjs.map +1 -1
- package/build/common/RadioButton/RadioButton.js +2 -5
- package/build/common/RadioButton/RadioButton.js.map +1 -1
- package/build/common/RadioButton/RadioButton.mjs +2 -5
- package/build/common/RadioButton/RadioButton.mjs.map +1 -1
- package/build/common/initials.js +4 -1
- package/build/common/initials.js.map +1 -1
- package/build/common/initials.mjs +4 -1
- package/build/common/initials.mjs.map +1 -1
- package/build/i18n/de.json +2 -0
- package/build/i18n/de.json.js +2 -0
- package/build/i18n/de.json.js.map +1 -1
- package/build/i18n/de.json.mjs +2 -0
- package/build/i18n/de.json.mjs.map +1 -1
- package/build/i18n/fr.json +2 -0
- package/build/i18n/fr.json.js +2 -0
- package/build/i18n/fr.json.js.map +1 -1
- package/build/i18n/fr.json.mjs +2 -0
- package/build/i18n/fr.json.mjs.map +1 -1
- package/build/i18n/hu.json +2 -0
- package/build/i18n/hu.json.js +2 -0
- package/build/i18n/hu.json.js.map +1 -1
- package/build/i18n/hu.json.mjs +2 -0
- package/build/i18n/hu.json.mjs.map +1 -1
- package/build/i18n/it.json +2 -0
- package/build/i18n/it.json.js +2 -0
- package/build/i18n/it.json.js.map +1 -1
- package/build/i18n/it.json.mjs +2 -0
- package/build/i18n/it.json.mjs.map +1 -1
- package/build/i18n/ja.json +2 -0
- package/build/i18n/ja.json.js +2 -0
- package/build/i18n/ja.json.js.map +1 -1
- package/build/i18n/ja.json.mjs +2 -0
- package/build/i18n/ja.json.mjs.map +1 -1
- package/build/i18n/pl.json +2 -0
- package/build/i18n/pl.json.js +2 -0
- package/build/i18n/pl.json.js.map +1 -1
- package/build/i18n/pl.json.mjs +2 -0
- package/build/i18n/pl.json.mjs.map +1 -1
- package/build/i18n/pt.json +2 -0
- package/build/i18n/pt.json.js +2 -0
- package/build/i18n/pt.json.js.map +1 -1
- package/build/i18n/pt.json.mjs +2 -0
- package/build/i18n/pt.json.mjs.map +1 -1
- package/build/i18n/ro.json +2 -0
- package/build/i18n/ro.json.js +2 -0
- package/build/i18n/ro.json.js.map +1 -1
- package/build/i18n/ro.json.mjs +2 -0
- package/build/i18n/ro.json.mjs.map +1 -1
- package/build/i18n/ru.json +2 -0
- package/build/i18n/ru.json.js +2 -0
- package/build/i18n/ru.json.js.map +1 -1
- package/build/i18n/ru.json.mjs +2 -0
- package/build/i18n/ru.json.mjs.map +1 -1
- package/build/i18n/tr.json +2 -0
- package/build/i18n/tr.json.js +2 -0
- package/build/i18n/tr.json.js.map +1 -1
- package/build/i18n/tr.json.mjs +2 -0
- package/build/i18n/tr.json.mjs.map +1 -1
- package/build/i18n/zh-CN.json +2 -0
- package/build/i18n/zh-CN.json.js +2 -0
- package/build/i18n/zh-CN.json.js.map +1 -1
- package/build/i18n/zh-CN.json.mjs +2 -0
- package/build/i18n/zh-CN.json.mjs.map +1 -1
- package/build/i18n/zh-HK.json +2 -0
- package/build/i18n/zh-HK.json.js +2 -0
- package/build/i18n/zh-HK.json.js.map +1 -1
- package/build/i18n/zh-HK.json.mjs +2 -0
- package/build/i18n/zh-HK.json.mjs.map +1 -1
- package/build/iconButton/IconButton.js.map +1 -1
- package/build/iconButton/IconButton.mjs.map +1 -1
- package/build/image/Image.js.map +1 -1
- package/build/image/Image.mjs.map +1 -1
- package/build/index.js +0 -2
- package/build/index.js.map +1 -1
- package/build/index.mjs +0 -1
- package/build/index.mjs.map +1 -1
- package/build/main.css +0 -709
- package/build/styles/main.css +0 -709
- package/build/switch/Switch.js +0 -2
- package/build/switch/Switch.js.map +1 -1
- package/build/switch/Switch.mjs +0 -2
- package/build/switch/Switch.mjs.map +1 -1
- package/build/types/button/Button.d.ts.map +1 -1
- package/build/types/button/Button.types.d.ts +1 -1
- package/build/types/button/Button.types.d.ts.map +1 -1
- package/build/types/button/index.d.ts +1 -1
- package/build/types/button/index.d.ts.map +1 -1
- package/build/types/common/RadioButton/RadioButton.d.ts +1 -3
- package/build/types/common/RadioButton/RadioButton.d.ts.map +1 -1
- package/build/types/common/initials.d.ts.map +1 -1
- package/build/types/iconButton/IconButton.d.ts +2 -2
- package/build/types/iconButton/IconButton.d.ts.map +1 -1
- package/build/types/image/Image.d.ts +0 -3
- package/build/types/image/Image.d.ts.map +1 -1
- package/build/types/image/index.d.ts +0 -1
- package/build/types/image/index.d.ts.map +1 -1
- package/build/types/index.d.ts +0 -2
- package/build/types/index.d.ts.map +1 -1
- package/build/types/switch/Switch.d.ts +0 -2
- package/build/types/switch/Switch.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/button/Button.spec.tsx +0 -18
- package/src/button/Button.tsx +1 -5
- package/src/button/Button.types.ts +1 -1
- package/src/button/index.ts +1 -1
- package/src/checkboxButton/CheckboxButton.story.tsx +4 -4
- package/src/common/RadioButton/RadioButton.tsx +1 -6
- package/src/common/initials.spec.tsx +13 -0
- package/src/common/initials.ts +5 -0
- package/src/i18n/de.json +2 -0
- package/src/i18n/fr.json +2 -0
- package/src/i18n/hu.json +2 -0
- package/src/i18n/it.json +2 -0
- package/src/i18n/ja.json +2 -0
- package/src/i18n/pl.json +2 -0
- package/src/i18n/pt.json +2 -0
- package/src/i18n/ro.json +2 -0
- package/src/i18n/ru.json +2 -0
- package/src/i18n/tr.json +2 -0
- package/src/i18n/zh-CN.json +2 -0
- package/src/i18n/zh-HK.json +2 -0
- package/src/iconButton/IconButton.story.tsx +1 -1
- package/src/iconButton/IconButton.tsx +1 -1
- package/src/image/Image.tsx +0 -3
- package/src/image/index.ts +0 -1
- package/src/index.ts +0 -2
- package/src/main.css +0 -709
- package/src/main.less +0 -1
- package/src/switch/Switch.tsx +0 -4
- package/src/test-utils/Parameters.d.ts +77 -0
- package/build/listItem/AdditionalInfo/ListItemAdditionalInfo.js +0 -56
- package/build/listItem/AdditionalInfo/ListItemAdditionalInfo.js.map +0 -1
- package/build/listItem/AdditionalInfo/ListItemAdditionalInfo.mjs +0 -54
- package/build/listItem/AdditionalInfo/ListItemAdditionalInfo.mjs.map +0 -1
- package/build/listItem/AvatarLayout/ListItemAvatarLayout.js +0 -23
- package/build/listItem/AvatarLayout/ListItemAvatarLayout.js.map +0 -1
- package/build/listItem/AvatarLayout/ListItemAvatarLayout.mjs +0 -21
- package/build/listItem/AvatarLayout/ListItemAvatarLayout.mjs.map +0 -1
- package/build/listItem/AvatarView/ListItemAvatarView.js +0 -23
- package/build/listItem/AvatarView/ListItemAvatarView.js.map +0 -1
- package/build/listItem/AvatarView/ListItemAvatarView.mjs +0 -21
- package/build/listItem/AvatarView/ListItemAvatarView.mjs.map +0 -1
- package/build/listItem/Button/ListItemButton.js +0 -43
- package/build/listItem/Button/ListItemButton.js.map +0 -1
- package/build/listItem/Button/ListItemButton.mjs +0 -41
- package/build/listItem/Button/ListItemButton.mjs.map +0 -1
- package/build/listItem/Checkbox/ListItemCheckbox.js +0 -30
- package/build/listItem/Checkbox/ListItemCheckbox.js.map +0 -1
- package/build/listItem/Checkbox/ListItemCheckbox.mjs +0 -28
- package/build/listItem/Checkbox/ListItemCheckbox.mjs.map +0 -1
- package/build/listItem/IconButton/ListItemIconButton.js +0 -42
- package/build/listItem/IconButton/ListItemIconButton.js.map +0 -1
- package/build/listItem/IconButton/ListItemIconButton.mjs +0 -40
- package/build/listItem/IconButton/ListItemIconButton.mjs.map +0 -1
- package/build/listItem/Image/ListItemImage.js +0 -31
- package/build/listItem/Image/ListItemImage.js.map +0 -1
- package/build/listItem/Image/ListItemImage.mjs +0 -29
- package/build/listItem/Image/ListItemImage.mjs.map +0 -1
- package/build/listItem/ListItem.js +0 -308
- package/build/listItem/ListItem.js.map +0 -1
- package/build/listItem/ListItem.mjs +0 -303
- package/build/listItem/ListItem.mjs.map +0 -1
- package/build/listItem/ListItemContext.js +0 -8
- package/build/listItem/ListItemContext.js.map +0 -1
- package/build/listItem/ListItemContext.mjs +0 -6
- package/build/listItem/ListItemContext.mjs.map +0 -1
- package/build/listItem/Navigation/ListItemNavigation.js +0 -45
- package/build/listItem/Navigation/ListItemNavigation.js.map +0 -1
- package/build/listItem/Navigation/ListItemNavigation.mjs +0 -43
- package/build/listItem/Navigation/ListItemNavigation.mjs.map +0 -1
- package/build/listItem/Prompt/ListItemPrompt.js +0 -59
- package/build/listItem/Prompt/ListItemPrompt.js.map +0 -1
- package/build/listItem/Prompt/ListItemPrompt.mjs +0 -54
- package/build/listItem/Prompt/ListItemPrompt.mjs.map +0 -1
- package/build/listItem/Radio/ListItemRadio.js +0 -30
- package/build/listItem/Radio/ListItemRadio.js.map +0 -1
- package/build/listItem/Radio/ListItemRadio.mjs +0 -28
- package/build/listItem/Radio/ListItemRadio.mjs.map +0 -1
- package/build/listItem/Switch/ListItemSwitch.js +0 -30
- package/build/listItem/Switch/ListItemSwitch.js.map +0 -1
- package/build/listItem/Switch/ListItemSwitch.mjs +0 -28
- package/build/listItem/Switch/ListItemSwitch.mjs.map +0 -1
- package/build/listItem/_stories/images/landscape.svg +0 -1
- package/build/listItem/_stories/images/portrait.svg +0 -1
- package/build/listItem/useListItemControl.js +0 -22
- package/build/listItem/useListItemControl.js.map +0 -1
- package/build/listItem/useListItemControl.mjs +0 -20
- package/build/listItem/useListItemControl.mjs.map +0 -1
- package/build/listItem/useListItemMedia.js +0 -21
- package/build/listItem/useListItemMedia.js.map +0 -1
- package/build/listItem/useListItemMedia.mjs +0 -19
- package/build/listItem/useListItemMedia.mjs.map +0 -1
- package/build/styles/listItem/ListItem.css +0 -709
- package/build/styles/listItem/ListItem.grid.css +0 -368
- package/build/types/listItem/AdditionalInfo/ListItemAdditionalInfo.d.ts +0 -15
- package/build/types/listItem/AdditionalInfo/ListItemAdditionalInfo.d.ts.map +0 -1
- package/build/types/listItem/AdditionalInfo/index.d.ts +0 -3
- package/build/types/listItem/AdditionalInfo/index.d.ts.map +0 -1
- package/build/types/listItem/AvatarLayout/ListItemAvatarLayout.d.ts +0 -18
- package/build/types/listItem/AvatarLayout/ListItemAvatarLayout.d.ts.map +0 -1
- package/build/types/listItem/AvatarLayout/index.d.ts +0 -3
- package/build/types/listItem/AvatarLayout/index.d.ts.map +0 -1
- package/build/types/listItem/AvatarView/ListItemAvatarView.d.ts +0 -16
- package/build/types/listItem/AvatarView/ListItemAvatarView.d.ts.map +0 -1
- package/build/types/listItem/AvatarView/index.d.ts +0 -3
- package/build/types/listItem/AvatarView/index.d.ts.map +0 -1
- package/build/types/listItem/Button/ListItemButton.d.ts +0 -20
- package/build/types/listItem/Button/ListItemButton.d.ts.map +0 -1
- package/build/types/listItem/Button/index.d.ts +0 -3
- package/build/types/listItem/Button/index.d.ts.map +0 -1
- package/build/types/listItem/Checkbox/ListItemCheckbox.d.ts +0 -14
- package/build/types/listItem/Checkbox/ListItemCheckbox.d.ts.map +0 -1
- package/build/types/listItem/Checkbox/index.d.ts +0 -3
- package/build/types/listItem/Checkbox/index.d.ts.map +0 -1
- package/build/types/listItem/IconButton/ListItemIconButton.d.ts +0 -18
- package/build/types/listItem/IconButton/ListItemIconButton.d.ts.map +0 -1
- package/build/types/listItem/IconButton/index.d.ts +0 -3
- package/build/types/listItem/IconButton/index.d.ts.map +0 -1
- package/build/types/listItem/Image/ListItemImage.d.ts +0 -25
- package/build/types/listItem/Image/ListItemImage.d.ts.map +0 -1
- package/build/types/listItem/Image/index.d.ts +0 -3
- package/build/types/listItem/Image/index.d.ts.map +0 -1
- package/build/types/listItem/ListItem.d.ts +0 -113
- package/build/types/listItem/ListItem.d.ts.map +0 -1
- package/build/types/listItem/ListItemContext.d.ts +0 -22
- package/build/types/listItem/ListItemContext.d.ts.map +0 -1
- package/build/types/listItem/Navigation/ListItemNavigation.d.ts +0 -15
- package/build/types/listItem/Navigation/ListItemNavigation.d.ts.map +0 -1
- package/build/types/listItem/Navigation/index.d.ts +0 -3
- package/build/types/listItem/Navigation/index.d.ts.map +0 -1
- package/build/types/listItem/Prompt/ListItemPrompt.d.ts +0 -16
- package/build/types/listItem/Prompt/ListItemPrompt.d.ts.map +0 -1
- package/build/types/listItem/Prompt/index.d.ts +0 -3
- package/build/types/listItem/Prompt/index.d.ts.map +0 -1
- package/build/types/listItem/Radio/ListItemRadio.d.ts +0 -14
- package/build/types/listItem/Radio/ListItemRadio.d.ts.map +0 -1
- package/build/types/listItem/Radio/index.d.ts +0 -3
- package/build/types/listItem/Radio/index.d.ts.map +0 -1
- package/build/types/listItem/Switch/ListItemSwitch.d.ts +0 -14
- package/build/types/listItem/Switch/ListItemSwitch.d.ts.map +0 -1
- package/build/types/listItem/Switch/index.d.ts +0 -3
- package/build/types/listItem/Switch/index.d.ts.map +0 -1
- package/build/types/listItem/_stories/subcomponents.d.ts +0 -18
- package/build/types/listItem/_stories/subcomponents.d.ts.map +0 -1
- package/build/types/listItem/index.d.ts +0 -14
- package/build/types/listItem/index.d.ts.map +0 -1
- package/build/types/listItem/test-utils.d.ts +0 -7
- package/build/types/listItem/test-utils.d.ts.map +0 -1
- package/build/types/listItem/useListItemControl.d.ts +0 -5
- package/build/types/listItem/useListItemControl.d.ts.map +0 -1
- package/build/types/listItem/useListItemMedia.d.ts +0 -6
- package/build/types/listItem/useListItemMedia.d.ts.map +0 -1
- package/src/listItem/AdditionalInfo/ListItemAdditionalInfo.spec.tsx +0 -56
- package/src/listItem/AdditionalInfo/ListItemAdditionalInfo.story.tsx +0 -145
- package/src/listItem/AdditionalInfo/ListItemAdditionalInfo.tsx +0 -36
- package/src/listItem/AdditionalInfo/index.ts +0 -2
- package/src/listItem/AvatarLayout/ListItemAvatarLayout.spec.tsx +0 -59
- package/src/listItem/AvatarLayout/ListItemAvatarLayout.story.tsx +0 -118
- package/src/listItem/AvatarLayout/ListItemAvatarLayout.tsx +0 -27
- package/src/listItem/AvatarLayout/index.ts +0 -2
- package/src/listItem/AvatarView/ListItemAvatarView.spec.tsx +0 -75
- package/src/listItem/AvatarView/ListItemAvatarView.story.tsx +0 -318
- package/src/listItem/AvatarView/ListItemAvatarView.tsx +0 -27
- package/src/listItem/AvatarView/index.ts +0 -2
- package/src/listItem/Button/ListItemButton.spec.tsx +0 -68
- package/src/listItem/Button/ListItemButton.story.tsx +0 -408
- package/src/listItem/Button/ListItemButton.tsx +0 -56
- package/src/listItem/Button/index.ts +0 -2
- package/src/listItem/Checkbox/ListItemCheckbox.spec.tsx +0 -82
- package/src/listItem/Checkbox/ListItemCheckbox.story.tsx +0 -107
- package/src/listItem/Checkbox/ListItemCheckbox.tsx +0 -33
- package/src/listItem/Checkbox/index.ts +0 -2
- package/src/listItem/IconButton/ListItemIconButton.spec.tsx +0 -119
- package/src/listItem/IconButton/ListItemIconButton.story.tsx +0 -236
- package/src/listItem/IconButton/ListItemIconButton.tsx +0 -56
- package/src/listItem/IconButton/index.ts +0 -2
- package/src/listItem/Image/ListItemImage.spec.tsx +0 -30
- package/src/listItem/Image/ListItemImage.story.tsx +0 -56
- package/src/listItem/Image/ListItemImage.tsx +0 -48
- package/src/listItem/Image/index.ts +0 -2
- package/src/listItem/ListItem.css +0 -709
- package/src/listItem/ListItem.grid.css +0 -368
- package/src/listItem/ListItem.grid.less +0 -620
- package/src/listItem/ListItem.less +0 -346
- package/src/listItem/ListItem.spec.tsx +0 -1496
- package/src/listItem/ListItem.tsx +0 -441
- package/src/listItem/ListItemContext.tsx +0 -27
- package/src/listItem/Navigation/ListItemNavigation.spec.tsx +0 -59
- package/src/listItem/Navigation/ListItemNavigation.story.tsx +0 -106
- package/src/listItem/Navigation/ListItemNavigation.tsx +0 -40
- package/src/listItem/Navigation/index.ts +0 -2
- package/src/listItem/Prompt/ListItemPrompt.spec.tsx +0 -36
- package/src/listItem/Prompt/ListItemPrompt.story.tsx +0 -201
- package/src/listItem/Prompt/ListItemPrompt.tsx +0 -32
- package/src/listItem/Prompt/index.ts +0 -2
- package/src/listItem/Radio/ListItemRadio.spec.tsx +0 -66
- package/src/listItem/Radio/ListItemRadio.story.tsx +0 -98
- package/src/listItem/Radio/ListItemRadio.tsx +0 -33
- package/src/listItem/Radio/index.ts +0 -2
- package/src/listItem/Switch/ListItemSwitch.spec.tsx +0 -47
- package/src/listItem/Switch/ListItemSwitch.story.tsx +0 -69
- package/src/listItem/Switch/ListItemSwitch.tsx +0 -33
- package/src/listItem/Switch/index.ts +0 -2
- package/src/listItem/_stories/ListItem.focus.test.story.tsx +0 -250
- package/src/listItem/_stories/ListItem.layout.test.story.tsx +0 -338
- package/src/listItem/_stories/ListItem.story.tsx +0 -670
- package/src/listItem/_stories/ListItem.variants.test.story.tsx +0 -271
- package/src/listItem/_stories/images/landscape.svg +0 -1
- package/src/listItem/_stories/images/portrait.svg +0 -1
- package/src/listItem/_stories/subcomponents.tsx +0 -139
- package/src/listItem/index.ts +0 -14
- package/src/listItem/test-utils.tsx +0 -33
- package/src/listItem/useListItemControl.tsx +0 -18
- package/src/listItem/useListItemMedia.tsx +0 -13
|
@@ -1,346 +0,0 @@
|
|
|
1
|
-
@import "./ListItem.grid.less";
|
|
2
|
-
@import (reference) "../../node_modules/@transferwise/neptune-css/src/less/ring.less";
|
|
3
|
-
|
|
4
|
-
.wds-list-item {
|
|
5
|
-
list-style: none;
|
|
6
|
-
width: 100%;
|
|
7
|
-
border-radius: var(--radius-medium);
|
|
8
|
-
background-color: var(--color-background-screen);
|
|
9
|
-
position: relative;
|
|
10
|
-
padding: var(--size-12);
|
|
11
|
-
container-type: inline-size;
|
|
12
|
-
|
|
13
|
-
& + .wds-list-item-spotlight,
|
|
14
|
-
.wds-list-item-spotlight + &{
|
|
15
|
-
margin-top: var(--size-16);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
&:focus-within{
|
|
19
|
-
z-index: 1;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
&-view {
|
|
23
|
-
display: grid;
|
|
24
|
-
grid-column: 1 / -1;
|
|
25
|
-
grid-row: 1 / -1;
|
|
26
|
-
grid-template-columns: subgrid;
|
|
27
|
-
grid-template-rows: subgrid;
|
|
28
|
-
|
|
29
|
-
&.fullyInteractive {
|
|
30
|
-
margin-bottom: 0;
|
|
31
|
-
&:before {
|
|
32
|
-
content: '';
|
|
33
|
-
position: absolute;
|
|
34
|
-
inset: 0;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
a {
|
|
40
|
-
text-underline-offset: calc(var(--size-4) / 2);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
&-interactive {
|
|
44
|
-
.wds-list-item-control:focus-visible,
|
|
45
|
-
// checkboxes are complicated. i could update checkbox but i'd probably break something else
|
|
46
|
-
.np-checkbox-button:has(input[type="checkbox"]:focus-visible) .tw-checkbox-button {
|
|
47
|
-
outline: none;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
&:has(.wds-list-item-control:focus-visible),
|
|
51
|
-
&:has(input[type="checkbox"]:focus-visible) {
|
|
52
|
-
.ring();
|
|
53
|
-
outline-offset: -1px;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.wds-list-item-additional-info {
|
|
57
|
-
.ring-offset-0
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
a.wds-list-item-control {
|
|
61
|
-
&, &:hover, &:focus {
|
|
62
|
-
text-decoration: none;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
&:has(.wds-list-item-control_pseudo-element) {
|
|
66
|
-
position: relative;
|
|
67
|
-
z-index: 1;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
&.wds-list-item-control_pseudo-element {
|
|
71
|
-
&:before {
|
|
72
|
-
content: '';
|
|
73
|
-
position: absolute;
|
|
74
|
-
inset: 0;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
&:not(.disabled, :disabled):hover {
|
|
80
|
-
background-color: var(--color-background-screen-hover);
|
|
81
|
-
|
|
82
|
-
.wds-list-item-control-wrapper {
|
|
83
|
-
.wds-Button {
|
|
84
|
-
background-color: var(--Button-background-hover);
|
|
85
|
-
color: var(--Button-color-hover);
|
|
86
|
-
transition: none;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
&:not(.disabled, :disabled):active {
|
|
92
|
-
background-color: var(--color-background-screen-active);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.wds-list-item-button-control {
|
|
96
|
-
.wds-Button {
|
|
97
|
-
transition: none;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
&:has(.wds-list-item-prompt:hover a, .wds-list-item-prompt:hover button) {
|
|
102
|
-
&:hover {
|
|
103
|
-
background-color: unset;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
&-media {
|
|
109
|
-
grid-area: media;
|
|
110
|
-
display: flex;
|
|
111
|
-
align-items: start;
|
|
112
|
-
|
|
113
|
-
&-image-wrapper {
|
|
114
|
-
width: var(--wds-list-item-media-size);
|
|
115
|
-
height: var(--wds-list-item-media-size);
|
|
116
|
-
display: flex;
|
|
117
|
-
align-items: center;
|
|
118
|
-
justify-content: center;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
&-image {
|
|
122
|
-
width: 100%;
|
|
123
|
-
height: 100%;
|
|
124
|
-
object-fit: contain;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
&-body {
|
|
129
|
-
grid-area: body;
|
|
130
|
-
align-items: center;
|
|
131
|
-
width: 100%;
|
|
132
|
-
display: grid;
|
|
133
|
-
grid-template-columns: var(--wds-list-item-body-left, 1fr) var(--wds-list-item-body-right, max-content);
|
|
134
|
-
gap: var(--size-16);
|
|
135
|
-
word-break: break-word;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
&-title {
|
|
139
|
-
color: var(--color-content-primary);
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
&-value {
|
|
143
|
-
text-align: right;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
&-body-center {
|
|
147
|
-
display: flex;
|
|
148
|
-
flex-direction: row;
|
|
149
|
-
align-items: center;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
&-additional-info {
|
|
153
|
-
grid-area: info;
|
|
154
|
-
color: var(--color-content-tertiary);
|
|
155
|
-
margin-top: calc(var(--size-4) * -1);
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
&-control-wrapper {
|
|
159
|
-
grid-area: control;
|
|
160
|
-
align-content: center;
|
|
161
|
-
height: var(--wds-list-item-control-wrapper-height);
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
&-navigation {
|
|
165
|
-
.tw-icon-chevron-right {
|
|
166
|
-
color: var(--color-interactive-secondary);
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
&-control {
|
|
171
|
-
flex: 0 0 auto;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
&.disabled {
|
|
175
|
-
filter: none;
|
|
176
|
-
opacity: 1;
|
|
177
|
-
|
|
178
|
-
label {
|
|
179
|
-
cursor: not-allowed;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
.tw-icon-backslash-circle {
|
|
183
|
-
color: var(--color-content-tertiary);
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
&-spotlight {
|
|
190
|
-
&-active {
|
|
191
|
-
background-color: var(--color-background-neutral);
|
|
192
|
-
&:not(.disabled, :disabled):hover {
|
|
193
|
-
background-color: var(--color-background-neutral-hover);
|
|
194
|
-
}
|
|
195
|
-
&:not(.disabled, :disabled):active {
|
|
196
|
-
background-color: var(--color-background-neutral-active);
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
&-inactive {
|
|
201
|
-
background-color: color-mix(in srgb, var(--color-background-neutral) 25%, transparent);
|
|
202
|
-
border: 1px dashed var(--color-border-neutral);
|
|
203
|
-
&:not(.disabled, :disabled):hover {
|
|
204
|
-
background-color: color-mix(in srgb, var(--color-background-neutral-hover) 25%, transparent);
|
|
205
|
-
}
|
|
206
|
-
&:not(.disabled, :disabled):active {
|
|
207
|
-
background-color: color-mix(in srgb, var(--color-background-neutral-active) 25%, transparent);
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
&-prompt {
|
|
213
|
-
grid-area: prompt;
|
|
214
|
-
|
|
215
|
-
display: inline-flex;
|
|
216
|
-
justify-self: start;
|
|
217
|
-
text-align: left;
|
|
218
|
-
padding-top: calc(var(--padding-x-small) / 2);
|
|
219
|
-
padding-bottom: calc(var(--padding-x-small) / 2);
|
|
220
|
-
padding-left: calc(var(--padding-x-small) - 1px);
|
|
221
|
-
padding-right: var(--padding-x-small);
|
|
222
|
-
border-radius: var(--radius-small);
|
|
223
|
-
word-break: break-word;
|
|
224
|
-
overflow-wrap: break-word;
|
|
225
|
-
|
|
226
|
-
&:has(a),
|
|
227
|
-
&:has(button) {
|
|
228
|
-
position: relative;
|
|
229
|
-
z-index: 1;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
a, button {
|
|
233
|
-
text-underline-offset: calc(var(--size-4) / 2);
|
|
234
|
-
&:first-of-type {
|
|
235
|
-
&:before {
|
|
236
|
-
content: '';
|
|
237
|
-
position: absolute;
|
|
238
|
-
inset: 0;
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
&.np-prompt-icon {
|
|
244
|
-
padding-left: calc(var(--padding-x-small) - 1px);
|
|
245
|
-
padding-right: var(--padding-x-small);
|
|
246
|
-
display: inline-flex;
|
|
247
|
-
align-items: center;
|
|
248
|
-
gap: var(--size-4);
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
.np-prompt-icon {
|
|
252
|
-
padding-right: calc(var(--size-12) / 2);
|
|
253
|
-
padding-top: calc(var(--size-4) - 1px);
|
|
254
|
-
padding-bottom: calc(var(--size-4) - 1px);
|
|
255
|
-
|
|
256
|
-
.tw-icon-tags,
|
|
257
|
-
.tw-icon-confetti {
|
|
258
|
-
color: var(--color-sentiment-positive-primary);
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
&.negative {
|
|
263
|
-
background-color: var(--color-sentiment-negative-secondary);
|
|
264
|
-
color: var(--color-sentiment-negative-primary);
|
|
265
|
-
a, button {
|
|
266
|
-
color: var(--color-sentiment-negative-primary);
|
|
267
|
-
&:hover {
|
|
268
|
-
color: var(--color-sentiment-negative-primary-hover);
|
|
269
|
-
}
|
|
270
|
-
&:active {
|
|
271
|
-
color: var(--color-sentiment-negative-primary-active);
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
.wds-list-item-prompt&:has(a, button) {
|
|
275
|
-
&:hover {
|
|
276
|
-
background-color: var(--color-sentiment-negative-secondary-hover);
|
|
277
|
-
}
|
|
278
|
-
&:active {
|
|
279
|
-
background-color: var(--color-sentiment-negative-secondary-active);
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
&.positive,
|
|
284
|
-
&.discount,
|
|
285
|
-
&.savings {
|
|
286
|
-
background-color: var(--color-sentiment-positive-secondary);
|
|
287
|
-
color: var(--color-sentiment-positive-primary);
|
|
288
|
-
a, button {
|
|
289
|
-
color: var(--color-sentiment-positive-primary);
|
|
290
|
-
&:hover {
|
|
291
|
-
color: var(--color-sentiment-positive-primary-hover);
|
|
292
|
-
}
|
|
293
|
-
&:active {
|
|
294
|
-
color: var(--color-sentiment-positive-primary-active);
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
.wds-list-item-prompt&:has(a, button) {
|
|
298
|
-
&:hover {
|
|
299
|
-
background-color: var(--color-sentiment-positive-secondary-hover);
|
|
300
|
-
}
|
|
301
|
-
&:active {
|
|
302
|
-
background-color: var(--color-sentiment-positive-secondary-active);
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
&.neutral {
|
|
307
|
-
background-color: var(--color-background-neutral);
|
|
308
|
-
color: var(--color-content-primary);
|
|
309
|
-
a, button {
|
|
310
|
-
color: var(--color-content-primary);
|
|
311
|
-
}
|
|
312
|
-
.wds-list-item-prompt&:has(a, button) {
|
|
313
|
-
&:hover {
|
|
314
|
-
background-color: var(--color-background-neutral-hover);
|
|
315
|
-
}
|
|
316
|
-
&:active {
|
|
317
|
-
background-color: var(--color-background-neutral-active);
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
&.warning {
|
|
322
|
-
background-color: var(--color-sentiment-warning-secondary);
|
|
323
|
-
color: var(--color-sentiment-warning-content);
|
|
324
|
-
a, button {
|
|
325
|
-
color: var(--color-sentiment-warning-content);
|
|
326
|
-
&:hover {
|
|
327
|
-
color: var(--color-sentiment-warning-content-hover);
|
|
328
|
-
}
|
|
329
|
-
&:active {
|
|
330
|
-
color: var(--color-sentiment-warning-content-active);
|
|
331
|
-
}
|
|
332
|
-
}
|
|
333
|
-
.wds-list-item-prompt&:has(a, button) {
|
|
334
|
-
&:hover {
|
|
335
|
-
// someday we'll have hover and active states for warning
|
|
336
|
-
// background-color: var(--color-sentiment-warning-secondary-hover);
|
|
337
|
-
background-color: color-mix(in srgb, var(--color-sentiment-warning-secondary) 92%, var(--color-sentiment-warning-primary));
|
|
338
|
-
}
|
|
339
|
-
&:active {
|
|
340
|
-
// background-color: var(--color-sentiment-warning-secondary-active);
|
|
341
|
-
background-color: color-mix(in srgb, var(--color-sentiment-warning-secondary) 84%, var(--color-sentiment-warning-primary));
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
}
|
|
345
|
-
}
|
|
346
|
-
}
|