@transferwise/components 0.0.0-experimental-1664fea → 0.0.0-experimental-850e2db
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/index.js +1 -0
- package/build/index.js.map +1 -1
- package/build/index.mjs +1 -1
- package/build/main.css +212 -0
- package/build/styles/listItem/ListItem.css +212 -0
- package/build/styles/main.css +212 -0
- package/build/types/index.d.ts +2 -0
- package/build/types/index.d.ts.map +1 -1
- package/build/types/listItem/ListItem.d.ts +50 -0
- package/build/types/listItem/ListItem.d.ts.map +1 -0
- package/build/types/listItem/ListItemAdditionalInfo.d.ts +9 -0
- package/build/types/listItem/ListItemAdditionalInfo.d.ts.map +1 -0
- package/build/types/listItem/ListItemButton.d.ts +6 -0
- package/build/types/listItem/ListItemButton.d.ts.map +1 -0
- package/build/types/listItem/ListItemCheckbox.d.ts +4 -0
- package/build/types/listItem/ListItemCheckbox.d.ts.map +1 -0
- package/build/types/listItem/ListItemIconButton.d.ts +8 -0
- package/build/types/listItem/ListItemIconButton.d.ts.map +1 -0
- package/build/types/listItem/ListItemMedia.d.ts +19 -0
- package/build/types/listItem/ListItemMedia.d.ts.map +1 -0
- package/build/types/listItem/ListItemNavigation.d.ts +4 -0
- package/build/types/listItem/ListItemNavigation.d.ts.map +1 -0
- package/build/types/listItem/ListItemSwitch.d.ts +3 -0
- package/build/types/listItem/ListItemSwitch.d.ts.map +1 -0
- package/build/types/listItem/index.d.ts +6 -0
- package/build/types/listItem/index.d.ts.map +1 -0
- package/build/types/listItem/prompt/Prompt.d.ts +12 -0
- package/build/types/listItem/prompt/Prompt.d.ts.map +1 -0
- package/build/types/listItem/useItemControl.d.ts +5 -0
- package/build/types/listItem/useItemControl.d.ts.map +1 -0
- package/package.json +2 -2
- package/src/index.ts +2 -0
- package/src/listItem/ListItem.css +212 -0
- package/src/listItem/ListItem.less +210 -0
- package/src/listItem/ListItem.spec.tsx +35 -0
- package/src/listItem/ListItem.story.tsx +461 -0
- package/src/listItem/ListItem.tsx +282 -0
- package/src/listItem/ListItemAdditionalInfo.tsx +31 -0
- package/src/listItem/ListItemButton.spec.tsx +92 -0
- package/src/listItem/ListItemButton.tsx +24 -0
- package/src/listItem/ListItemCheckbox.tsx +14 -0
- package/src/listItem/ListItemIconButton.tsx +16 -0
- package/src/listItem/ListItemMedia.tsx +52 -0
- package/src/listItem/ListItemNavigation.tsx +23 -0
- package/src/listItem/ListItemSwitch.tsx +8 -0
- package/src/listItem/index.ts +10 -0
- package/src/listItem/prompt/Prompt.spec.tsx +77 -0
- package/src/listItem/prompt/Prompt.story.tsx +170 -0
- package/src/listItem/prompt/Prompt.tsx +44 -0
- package/src/listItem/useItemControl.tsx +23 -0
- package/src/main.css +212 -0
- package/src/main.less +1 -0
package/build/index.js
CHANGED
|
@@ -272,6 +272,7 @@ Object.defineProperty(exports, "UploadStep", {
|
|
|
272
272
|
get: function () { return Upload.UploadStep; }
|
|
273
273
|
});
|
|
274
274
|
exports.UploadInput = UploadInput.default;
|
|
275
|
+
exports.Item = Table.default;
|
|
275
276
|
exports.Table = Table.default;
|
|
276
277
|
exports.useDirection = useDirection.useDirection;
|
|
277
278
|
exports.useLayout = useLayout.useLayout;
|
package/build/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/build/index.mjs
CHANGED
|
@@ -104,7 +104,7 @@ export { default as Tooltip } from './tooltip/Tooltip.mjs';
|
|
|
104
104
|
export { default as Typeahead } from './typeahead/Typeahead.mjs';
|
|
105
105
|
export { default as Upload, UploadStep } from './upload/Upload.mjs';
|
|
106
106
|
export { default as UploadInput } from './uploadInput/UploadInput.mjs';
|
|
107
|
-
export { default as Table } from './table/Table.mjs';
|
|
107
|
+
export { default as Item, default as Table } from './table/Table.mjs';
|
|
108
108
|
import '@transferwise/neptune-validation';
|
|
109
109
|
export { useDirection } from './common/hooks/useDirection/useDirection.mjs';
|
|
110
110
|
export { useLayout } from './common/hooks/useLayout/useLayout.mjs';
|
package/build/main.css
CHANGED
|
@@ -2618,6 +2618,218 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
|
|
|
2618
2618
|
border-radius: 9999px !important;
|
|
2619
2619
|
border-radius: var(--radius-full) !important;
|
|
2620
2620
|
}
|
|
2621
|
+
.wds-list-item {
|
|
2622
|
+
list-style: none;
|
|
2623
|
+
width: 100%;
|
|
2624
|
+
padding: 0;
|
|
2625
|
+
border-radius: 16px;
|
|
2626
|
+
border-radius: var(--radius-medium);
|
|
2627
|
+
background-color: #ffffff;
|
|
2628
|
+
background-color: var(--color-background-screen);
|
|
2629
|
+
gap: 16px;
|
|
2630
|
+
gap: var(--size-16);
|
|
2631
|
+
}
|
|
2632
|
+
.wds-list-item .partially-interactive {
|
|
2633
|
+
padding: 16px;
|
|
2634
|
+
padding: var(--size-16);
|
|
2635
|
+
}
|
|
2636
|
+
.wds-list-item label,
|
|
2637
|
+
.wds-list-item a {
|
|
2638
|
+
padding: 16px;
|
|
2639
|
+
padding: var(--size-16);
|
|
2640
|
+
}
|
|
2641
|
+
.wds-list-item-interactive label {
|
|
2642
|
+
cursor: pointer;
|
|
2643
|
+
}
|
|
2644
|
+
.wds-list-item-interactive:hover {
|
|
2645
|
+
background-color: var(--color-background-screen-hover);
|
|
2646
|
+
}
|
|
2647
|
+
.wds-list-item-interactive:hover .wds-list-item-control .wds-Button {
|
|
2648
|
+
background-color: var(--Button-background-hover);
|
|
2649
|
+
color: var(--Button-color-hover);
|
|
2650
|
+
transition: none;
|
|
2651
|
+
}
|
|
2652
|
+
.wds-list-item-interactive:active {
|
|
2653
|
+
background-color: var(--color-background-screen-active);
|
|
2654
|
+
}
|
|
2655
|
+
.wds-list-item-interactive .wds-list-item-control .wds-Button {
|
|
2656
|
+
transition: none;
|
|
2657
|
+
}
|
|
2658
|
+
.wds-list-item-media-image {
|
|
2659
|
+
width: var(--item-media-image-size);
|
|
2660
|
+
height: var(--item-media-image-size);
|
|
2661
|
+
}
|
|
2662
|
+
.wds-list-item-body {
|
|
2663
|
+
width: 100%;
|
|
2664
|
+
}
|
|
2665
|
+
.wds-list-item-title {
|
|
2666
|
+
color: #37517e;
|
|
2667
|
+
color: var(--color-content-primary);
|
|
2668
|
+
}
|
|
2669
|
+
.wds-list-item-additional-info {
|
|
2670
|
+
color: #768e9c;
|
|
2671
|
+
color: var(--color-content-tertiary);
|
|
2672
|
+
}
|
|
2673
|
+
.wds-list-item-value {
|
|
2674
|
+
flex: 0 0 auto;
|
|
2675
|
+
}
|
|
2676
|
+
.wds-list-item-control {
|
|
2677
|
+
flex: 0 0 auto;
|
|
2678
|
+
}
|
|
2679
|
+
.wds-list-item-navigation,
|
|
2680
|
+
.wds-list-item-navigation:hover,
|
|
2681
|
+
.wds-list-item-navigation:focus {
|
|
2682
|
+
-webkit-text-decoration: none;
|
|
2683
|
+
text-decoration: none;
|
|
2684
|
+
}
|
|
2685
|
+
.wds-list-item-spotlight-active {
|
|
2686
|
+
background-color: rgba(134,167,189,0.10196);
|
|
2687
|
+
background-color: var(--color-background-neutral);
|
|
2688
|
+
}
|
|
2689
|
+
.wds-list-item-spotlight-active:not(.disabled):not(:disabled):hover {
|
|
2690
|
+
background-color: var(--color-background-neutral-hover);
|
|
2691
|
+
}
|
|
2692
|
+
.wds-list-item-spotlight-active:not(.disabled):not(:disabled):active {
|
|
2693
|
+
background-color: var(--color-background-neutral-active);
|
|
2694
|
+
}
|
|
2695
|
+
.wds-list-item-spotlight-inactive {
|
|
2696
|
+
background-color: rgba(134, 167, 189, 0.025);
|
|
2697
|
+
border: 1px dashed rgba(0,0,0,0.10196);
|
|
2698
|
+
border: 1px dashed var(--color-border-neutral);
|
|
2699
|
+
}
|
|
2700
|
+
@supports (color: color-mix(in lch, red, blue)) {
|
|
2701
|
+
.wds-list-item-spotlight-inactive {
|
|
2702
|
+
background-color: color-mix(in srgb, var(--color-background-neutral) 25%, transparent);
|
|
2703
|
+
}
|
|
2704
|
+
}
|
|
2705
|
+
.wds-list-item-spotlight-inactive:not(.disabled):not(:disabled):hover {
|
|
2706
|
+
background-color: color-mix(in srgb, var(--color-background-neutral-hover) 25%, transparent);
|
|
2707
|
+
}
|
|
2708
|
+
.wds-list-item-spotlight-inactive:not(.disabled):not(:disabled):active {
|
|
2709
|
+
background-color: color-mix(in srgb, var(--color-background-neutral-active) 25%, transparent);
|
|
2710
|
+
}
|
|
2711
|
+
.wds-list-item-prompt {
|
|
2712
|
+
display: inline-flex;
|
|
2713
|
+
padding-top: calc(8px / 2);
|
|
2714
|
+
padding-top: calc(var(--padding-x-small) / 2);
|
|
2715
|
+
padding-bottom: calc(8px / 2);
|
|
2716
|
+
padding-bottom: calc(var(--padding-x-small) / 2);
|
|
2717
|
+
padding-left: calc(8px - 1px);
|
|
2718
|
+
padding-left: calc(var(--padding-x-small) - 1px);
|
|
2719
|
+
padding-right: 8px;
|
|
2720
|
+
padding-right: var(--padding-x-small);
|
|
2721
|
+
border-radius: 10px;
|
|
2722
|
+
border-radius: var(--radius-small);
|
|
2723
|
+
word-break: break-word;
|
|
2724
|
+
word-wrap: break-word;
|
|
2725
|
+
}
|
|
2726
|
+
.wds-list-item-prompt .np-prompt-icon {
|
|
2727
|
+
padding-right: calc(12px / 2);
|
|
2728
|
+
padding-right: calc(var(--size-12) / 2);
|
|
2729
|
+
padding-top: calc(4px - 1px);
|
|
2730
|
+
padding-top: calc(var(--size-4) - 1px);
|
|
2731
|
+
padding-bottom: calc(4px - 1px);
|
|
2732
|
+
padding-bottom: calc(var(--size-4) - 1px);
|
|
2733
|
+
}
|
|
2734
|
+
.wds-list-item-prompt .np-prompt-icon .tw-icon-tags,
|
|
2735
|
+
.wds-list-item-prompt .np-prompt-icon .tw-icon-confetti {
|
|
2736
|
+
color: var(--color-sentiment-positive-primary);
|
|
2737
|
+
}
|
|
2738
|
+
.wds-list-item-prompt a {
|
|
2739
|
+
text-underline-offset: calc(4px / 2);
|
|
2740
|
+
text-underline-offset: calc(var(--size-4) / 2);
|
|
2741
|
+
}
|
|
2742
|
+
.wds-list-item-prompt.np-prompt-interactive {
|
|
2743
|
+
-webkit-text-decoration: none;
|
|
2744
|
+
text-decoration: none;
|
|
2745
|
+
cursor: pointer;
|
|
2746
|
+
border: none;
|
|
2747
|
+
}
|
|
2748
|
+
.wds-list-item-prompt.negative {
|
|
2749
|
+
background-color: var(--color-sentiment-negative-secondary);
|
|
2750
|
+
color: var(--color-sentiment-negative-primary);
|
|
2751
|
+
}
|
|
2752
|
+
.wds-list-item-prompt.negative a {
|
|
2753
|
+
color: var(--color-sentiment-negative-primary);
|
|
2754
|
+
}
|
|
2755
|
+
.wds-list-item-prompt.negative a:hover {
|
|
2756
|
+
color: var(--color-sentiment-negative-primary-hover);
|
|
2757
|
+
}
|
|
2758
|
+
.wds-list-item-prompt.negative a:active {
|
|
2759
|
+
color: var(--color-sentiment-negative-primary-active);
|
|
2760
|
+
}
|
|
2761
|
+
.np-prompt-interactive.wds-list-item-prompt.negative:hover {
|
|
2762
|
+
background-color: color-mix(in srgb, var(--color-sentiment-negative-secondary) 95%, var(--color-sentiment-negative-primary));
|
|
2763
|
+
}
|
|
2764
|
+
.np-prompt-interactive.wds-list-item-prompt.negative:active {
|
|
2765
|
+
background-color: color-mix(in srgb, var(--color-sentiment-negative-secondary) 90%, var(--color-sentiment-negative-primary));
|
|
2766
|
+
}
|
|
2767
|
+
.wds-list-item-prompt.positive,
|
|
2768
|
+
.wds-list-item-prompt.discount,
|
|
2769
|
+
.wds-list-item-prompt.savings {
|
|
2770
|
+
background-color: var(--color-sentiment-positive-secondary);
|
|
2771
|
+
color: var(--color-sentiment-positive-primary);
|
|
2772
|
+
}
|
|
2773
|
+
.wds-list-item-prompt.positive a,
|
|
2774
|
+
.wds-list-item-prompt.discount a,
|
|
2775
|
+
.wds-list-item-prompt.savings a {
|
|
2776
|
+
color: var(--color-sentiment-positive-primary);
|
|
2777
|
+
}
|
|
2778
|
+
.wds-list-item-prompt.positive a:hover,
|
|
2779
|
+
.wds-list-item-prompt.discount a:hover,
|
|
2780
|
+
.wds-list-item-prompt.savings a:hover {
|
|
2781
|
+
color: var(--color-sentiment-positive-primary-hover);
|
|
2782
|
+
}
|
|
2783
|
+
.wds-list-item-prompt.positive a:active,
|
|
2784
|
+
.wds-list-item-prompt.discount a:active,
|
|
2785
|
+
.wds-list-item-prompt.savings a:active {
|
|
2786
|
+
color: var(--color-sentiment-positive-primary-active);
|
|
2787
|
+
}
|
|
2788
|
+
.np-prompt-interactive.wds-list-item-prompt.positive:hover,
|
|
2789
|
+
.np-prompt-interactive.wds-list-item-prompt.discount:hover,
|
|
2790
|
+
.np-prompt-interactive.wds-list-item-prompt.savings:hover {
|
|
2791
|
+
background-color: color-mix(in srgb, var(--color-sentiment-positive-secondary) 95%, var(--color-sentiment-positive-primary));
|
|
2792
|
+
}
|
|
2793
|
+
.np-prompt-interactive.wds-list-item-prompt.positive:active,
|
|
2794
|
+
.np-prompt-interactive.wds-list-item-prompt.discount:active,
|
|
2795
|
+
.np-prompt-interactive.wds-list-item-prompt.savings:active {
|
|
2796
|
+
background-color: color-mix(in srgb, var(--color-sentiment-positive-secondary) 90%, var(--color-sentiment-positive-primary));
|
|
2797
|
+
}
|
|
2798
|
+
.wds-list-item-prompt.neutral {
|
|
2799
|
+
background-color: rgba(134,167,189,0.10196);
|
|
2800
|
+
background-color: var(--color-background-neutral);
|
|
2801
|
+
color: #37517e;
|
|
2802
|
+
color: var(--color-content-primary);
|
|
2803
|
+
}
|
|
2804
|
+
.wds-list-item-prompt.neutral a {
|
|
2805
|
+
color: #37517e;
|
|
2806
|
+
color: var(--color-content-primary);
|
|
2807
|
+
}
|
|
2808
|
+
.np-prompt-interactive.wds-list-item-prompt.neutral:hover {
|
|
2809
|
+
background-color: var(--color-background-neutral-hover);
|
|
2810
|
+
}
|
|
2811
|
+
.np-prompt-interactive.wds-list-item-prompt.neutral:active {
|
|
2812
|
+
background-color: var(--color-background-neutral-active);
|
|
2813
|
+
}
|
|
2814
|
+
.wds-list-item-prompt.warning {
|
|
2815
|
+
background-color: var(--color-sentiment-warning-secondary);
|
|
2816
|
+
color: var(--color-sentiment-warning-content);
|
|
2817
|
+
}
|
|
2818
|
+
.wds-list-item-prompt.warning a {
|
|
2819
|
+
color: var(--color-sentiment-warning-content);
|
|
2820
|
+
}
|
|
2821
|
+
.wds-list-item-prompt.warning a:hover {
|
|
2822
|
+
color: var(--color-sentiment-warning-content-hover);
|
|
2823
|
+
}
|
|
2824
|
+
.wds-list-item-prompt.warning a:active {
|
|
2825
|
+
color: var(--color-sentiment-warning-content-active);
|
|
2826
|
+
}
|
|
2827
|
+
.np-prompt-interactive.wds-list-item-prompt.warning:hover {
|
|
2828
|
+
background-color: color-mix(in srgb, var(--color-sentiment-warning-secondary) 90%, var(--color-sentiment-warning-primary));
|
|
2829
|
+
}
|
|
2830
|
+
.np-prompt-interactive.wds-list-item-prompt.warning:active {
|
|
2831
|
+
background-color: color-mix(in srgb, var(--color-sentiment-warning-secondary) 80%, var(--color-sentiment-warning-primary));
|
|
2832
|
+
}
|
|
2621
2833
|
.np-field-control {
|
|
2622
2834
|
margin-top: 4px;
|
|
2623
2835
|
margin-top: var(--size-4);
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
.wds-list-item {
|
|
2
|
+
list-style: none;
|
|
3
|
+
width: 100%;
|
|
4
|
+
padding: 0;
|
|
5
|
+
border-radius: 16px;
|
|
6
|
+
border-radius: var(--radius-medium);
|
|
7
|
+
background-color: #ffffff;
|
|
8
|
+
background-color: var(--color-background-screen);
|
|
9
|
+
gap: 16px;
|
|
10
|
+
gap: var(--size-16);
|
|
11
|
+
}
|
|
12
|
+
.wds-list-item .partially-interactive {
|
|
13
|
+
padding: 16px;
|
|
14
|
+
padding: var(--size-16);
|
|
15
|
+
}
|
|
16
|
+
.wds-list-item label,
|
|
17
|
+
.wds-list-item a {
|
|
18
|
+
padding: 16px;
|
|
19
|
+
padding: var(--size-16);
|
|
20
|
+
}
|
|
21
|
+
.wds-list-item-interactive label {
|
|
22
|
+
cursor: pointer;
|
|
23
|
+
}
|
|
24
|
+
.wds-list-item-interactive:hover {
|
|
25
|
+
background-color: var(--color-background-screen-hover);
|
|
26
|
+
}
|
|
27
|
+
.wds-list-item-interactive:hover .wds-list-item-control .wds-Button {
|
|
28
|
+
background-color: var(--Button-background-hover);
|
|
29
|
+
color: var(--Button-color-hover);
|
|
30
|
+
transition: none;
|
|
31
|
+
}
|
|
32
|
+
.wds-list-item-interactive:active {
|
|
33
|
+
background-color: var(--color-background-screen-active);
|
|
34
|
+
}
|
|
35
|
+
.wds-list-item-interactive .wds-list-item-control .wds-Button {
|
|
36
|
+
transition: none;
|
|
37
|
+
}
|
|
38
|
+
.wds-list-item-media-image {
|
|
39
|
+
width: var(--item-media-image-size);
|
|
40
|
+
height: var(--item-media-image-size);
|
|
41
|
+
}
|
|
42
|
+
.wds-list-item-body {
|
|
43
|
+
width: 100%;
|
|
44
|
+
}
|
|
45
|
+
.wds-list-item-title {
|
|
46
|
+
color: #37517e;
|
|
47
|
+
color: var(--color-content-primary);
|
|
48
|
+
}
|
|
49
|
+
.wds-list-item-additional-info {
|
|
50
|
+
color: #768e9c;
|
|
51
|
+
color: var(--color-content-tertiary);
|
|
52
|
+
}
|
|
53
|
+
.wds-list-item-value {
|
|
54
|
+
flex: 0 0 auto;
|
|
55
|
+
}
|
|
56
|
+
.wds-list-item-control {
|
|
57
|
+
flex: 0 0 auto;
|
|
58
|
+
}
|
|
59
|
+
.wds-list-item-navigation,
|
|
60
|
+
.wds-list-item-navigation:hover,
|
|
61
|
+
.wds-list-item-navigation:focus {
|
|
62
|
+
-webkit-text-decoration: none;
|
|
63
|
+
text-decoration: none;
|
|
64
|
+
}
|
|
65
|
+
.wds-list-item-spotlight-active {
|
|
66
|
+
background-color: rgba(134,167,189,0.10196);
|
|
67
|
+
background-color: var(--color-background-neutral);
|
|
68
|
+
}
|
|
69
|
+
.wds-list-item-spotlight-active:not(.disabled):not(:disabled):hover {
|
|
70
|
+
background-color: var(--color-background-neutral-hover);
|
|
71
|
+
}
|
|
72
|
+
.wds-list-item-spotlight-active:not(.disabled):not(:disabled):active {
|
|
73
|
+
background-color: var(--color-background-neutral-active);
|
|
74
|
+
}
|
|
75
|
+
.wds-list-item-spotlight-inactive {
|
|
76
|
+
background-color: rgba(134, 167, 189, 0.025);
|
|
77
|
+
border: 1px dashed rgba(0,0,0,0.10196);
|
|
78
|
+
border: 1px dashed var(--color-border-neutral);
|
|
79
|
+
}
|
|
80
|
+
@supports (color: color-mix(in lch, red, blue)) {
|
|
81
|
+
.wds-list-item-spotlight-inactive {
|
|
82
|
+
background-color: color-mix(in srgb, var(--color-background-neutral) 25%, transparent);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
.wds-list-item-spotlight-inactive:not(.disabled):not(:disabled):hover {
|
|
86
|
+
background-color: color-mix(in srgb, var(--color-background-neutral-hover) 25%, transparent);
|
|
87
|
+
}
|
|
88
|
+
.wds-list-item-spotlight-inactive:not(.disabled):not(:disabled):active {
|
|
89
|
+
background-color: color-mix(in srgb, var(--color-background-neutral-active) 25%, transparent);
|
|
90
|
+
}
|
|
91
|
+
.wds-list-item-prompt {
|
|
92
|
+
display: inline-flex;
|
|
93
|
+
padding-top: calc(8px / 2);
|
|
94
|
+
padding-top: calc(var(--padding-x-small) / 2);
|
|
95
|
+
padding-bottom: calc(8px / 2);
|
|
96
|
+
padding-bottom: calc(var(--padding-x-small) / 2);
|
|
97
|
+
padding-left: calc(8px - 1px);
|
|
98
|
+
padding-left: calc(var(--padding-x-small) - 1px);
|
|
99
|
+
padding-right: 8px;
|
|
100
|
+
padding-right: var(--padding-x-small);
|
|
101
|
+
border-radius: 10px;
|
|
102
|
+
border-radius: var(--radius-small);
|
|
103
|
+
word-break: break-word;
|
|
104
|
+
word-wrap: break-word;
|
|
105
|
+
}
|
|
106
|
+
.wds-list-item-prompt .np-prompt-icon {
|
|
107
|
+
padding-right: calc(12px / 2);
|
|
108
|
+
padding-right: calc(var(--size-12) / 2);
|
|
109
|
+
padding-top: calc(4px - 1px);
|
|
110
|
+
padding-top: calc(var(--size-4) - 1px);
|
|
111
|
+
padding-bottom: calc(4px - 1px);
|
|
112
|
+
padding-bottom: calc(var(--size-4) - 1px);
|
|
113
|
+
}
|
|
114
|
+
.wds-list-item-prompt .np-prompt-icon .tw-icon-tags,
|
|
115
|
+
.wds-list-item-prompt .np-prompt-icon .tw-icon-confetti {
|
|
116
|
+
color: var(--color-sentiment-positive-primary);
|
|
117
|
+
}
|
|
118
|
+
.wds-list-item-prompt a {
|
|
119
|
+
text-underline-offset: calc(4px / 2);
|
|
120
|
+
text-underline-offset: calc(var(--size-4) / 2);
|
|
121
|
+
}
|
|
122
|
+
.wds-list-item-prompt.np-prompt-interactive {
|
|
123
|
+
-webkit-text-decoration: none;
|
|
124
|
+
text-decoration: none;
|
|
125
|
+
cursor: pointer;
|
|
126
|
+
border: none;
|
|
127
|
+
}
|
|
128
|
+
.wds-list-item-prompt.negative {
|
|
129
|
+
background-color: var(--color-sentiment-negative-secondary);
|
|
130
|
+
color: var(--color-sentiment-negative-primary);
|
|
131
|
+
}
|
|
132
|
+
.wds-list-item-prompt.negative a {
|
|
133
|
+
color: var(--color-sentiment-negative-primary);
|
|
134
|
+
}
|
|
135
|
+
.wds-list-item-prompt.negative a:hover {
|
|
136
|
+
color: var(--color-sentiment-negative-primary-hover);
|
|
137
|
+
}
|
|
138
|
+
.wds-list-item-prompt.negative a:active {
|
|
139
|
+
color: var(--color-sentiment-negative-primary-active);
|
|
140
|
+
}
|
|
141
|
+
.np-prompt-interactive.wds-list-item-prompt.negative:hover {
|
|
142
|
+
background-color: color-mix(in srgb, var(--color-sentiment-negative-secondary) 95%, var(--color-sentiment-negative-primary));
|
|
143
|
+
}
|
|
144
|
+
.np-prompt-interactive.wds-list-item-prompt.negative:active {
|
|
145
|
+
background-color: color-mix(in srgb, var(--color-sentiment-negative-secondary) 90%, var(--color-sentiment-negative-primary));
|
|
146
|
+
}
|
|
147
|
+
.wds-list-item-prompt.positive,
|
|
148
|
+
.wds-list-item-prompt.discount,
|
|
149
|
+
.wds-list-item-prompt.savings {
|
|
150
|
+
background-color: var(--color-sentiment-positive-secondary);
|
|
151
|
+
color: var(--color-sentiment-positive-primary);
|
|
152
|
+
}
|
|
153
|
+
.wds-list-item-prompt.positive a,
|
|
154
|
+
.wds-list-item-prompt.discount a,
|
|
155
|
+
.wds-list-item-prompt.savings a {
|
|
156
|
+
color: var(--color-sentiment-positive-primary);
|
|
157
|
+
}
|
|
158
|
+
.wds-list-item-prompt.positive a:hover,
|
|
159
|
+
.wds-list-item-prompt.discount a:hover,
|
|
160
|
+
.wds-list-item-prompt.savings a:hover {
|
|
161
|
+
color: var(--color-sentiment-positive-primary-hover);
|
|
162
|
+
}
|
|
163
|
+
.wds-list-item-prompt.positive a:active,
|
|
164
|
+
.wds-list-item-prompt.discount a:active,
|
|
165
|
+
.wds-list-item-prompt.savings a:active {
|
|
166
|
+
color: var(--color-sentiment-positive-primary-active);
|
|
167
|
+
}
|
|
168
|
+
.np-prompt-interactive.wds-list-item-prompt.positive:hover,
|
|
169
|
+
.np-prompt-interactive.wds-list-item-prompt.discount:hover,
|
|
170
|
+
.np-prompt-interactive.wds-list-item-prompt.savings:hover {
|
|
171
|
+
background-color: color-mix(in srgb, var(--color-sentiment-positive-secondary) 95%, var(--color-sentiment-positive-primary));
|
|
172
|
+
}
|
|
173
|
+
.np-prompt-interactive.wds-list-item-prompt.positive:active,
|
|
174
|
+
.np-prompt-interactive.wds-list-item-prompt.discount:active,
|
|
175
|
+
.np-prompt-interactive.wds-list-item-prompt.savings:active {
|
|
176
|
+
background-color: color-mix(in srgb, var(--color-sentiment-positive-secondary) 90%, var(--color-sentiment-positive-primary));
|
|
177
|
+
}
|
|
178
|
+
.wds-list-item-prompt.neutral {
|
|
179
|
+
background-color: rgba(134,167,189,0.10196);
|
|
180
|
+
background-color: var(--color-background-neutral);
|
|
181
|
+
color: #37517e;
|
|
182
|
+
color: var(--color-content-primary);
|
|
183
|
+
}
|
|
184
|
+
.wds-list-item-prompt.neutral a {
|
|
185
|
+
color: #37517e;
|
|
186
|
+
color: var(--color-content-primary);
|
|
187
|
+
}
|
|
188
|
+
.np-prompt-interactive.wds-list-item-prompt.neutral:hover {
|
|
189
|
+
background-color: var(--color-background-neutral-hover);
|
|
190
|
+
}
|
|
191
|
+
.np-prompt-interactive.wds-list-item-prompt.neutral:active {
|
|
192
|
+
background-color: var(--color-background-neutral-active);
|
|
193
|
+
}
|
|
194
|
+
.wds-list-item-prompt.warning {
|
|
195
|
+
background-color: var(--color-sentiment-warning-secondary);
|
|
196
|
+
color: var(--color-sentiment-warning-content);
|
|
197
|
+
}
|
|
198
|
+
.wds-list-item-prompt.warning a {
|
|
199
|
+
color: var(--color-sentiment-warning-content);
|
|
200
|
+
}
|
|
201
|
+
.wds-list-item-prompt.warning a:hover {
|
|
202
|
+
color: var(--color-sentiment-warning-content-hover);
|
|
203
|
+
}
|
|
204
|
+
.wds-list-item-prompt.warning a:active {
|
|
205
|
+
color: var(--color-sentiment-warning-content-active);
|
|
206
|
+
}
|
|
207
|
+
.np-prompt-interactive.wds-list-item-prompt.warning:hover {
|
|
208
|
+
background-color: color-mix(in srgb, var(--color-sentiment-warning-secondary) 90%, var(--color-sentiment-warning-primary));
|
|
209
|
+
}
|
|
210
|
+
.np-prompt-interactive.wds-list-item-prompt.warning:active {
|
|
211
|
+
background-color: color-mix(in srgb, var(--color-sentiment-warning-secondary) 80%, var(--color-sentiment-warning-primary));
|
|
212
|
+
}
|
package/build/styles/main.css
CHANGED
|
@@ -2618,6 +2618,218 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
|
|
|
2618
2618
|
border-radius: 9999px !important;
|
|
2619
2619
|
border-radius: var(--radius-full) !important;
|
|
2620
2620
|
}
|
|
2621
|
+
.wds-list-item {
|
|
2622
|
+
list-style: none;
|
|
2623
|
+
width: 100%;
|
|
2624
|
+
padding: 0;
|
|
2625
|
+
border-radius: 16px;
|
|
2626
|
+
border-radius: var(--radius-medium);
|
|
2627
|
+
background-color: #ffffff;
|
|
2628
|
+
background-color: var(--color-background-screen);
|
|
2629
|
+
gap: 16px;
|
|
2630
|
+
gap: var(--size-16);
|
|
2631
|
+
}
|
|
2632
|
+
.wds-list-item .partially-interactive {
|
|
2633
|
+
padding: 16px;
|
|
2634
|
+
padding: var(--size-16);
|
|
2635
|
+
}
|
|
2636
|
+
.wds-list-item label,
|
|
2637
|
+
.wds-list-item a {
|
|
2638
|
+
padding: 16px;
|
|
2639
|
+
padding: var(--size-16);
|
|
2640
|
+
}
|
|
2641
|
+
.wds-list-item-interactive label {
|
|
2642
|
+
cursor: pointer;
|
|
2643
|
+
}
|
|
2644
|
+
.wds-list-item-interactive:hover {
|
|
2645
|
+
background-color: var(--color-background-screen-hover);
|
|
2646
|
+
}
|
|
2647
|
+
.wds-list-item-interactive:hover .wds-list-item-control .wds-Button {
|
|
2648
|
+
background-color: var(--Button-background-hover);
|
|
2649
|
+
color: var(--Button-color-hover);
|
|
2650
|
+
transition: none;
|
|
2651
|
+
}
|
|
2652
|
+
.wds-list-item-interactive:active {
|
|
2653
|
+
background-color: var(--color-background-screen-active);
|
|
2654
|
+
}
|
|
2655
|
+
.wds-list-item-interactive .wds-list-item-control .wds-Button {
|
|
2656
|
+
transition: none;
|
|
2657
|
+
}
|
|
2658
|
+
.wds-list-item-media-image {
|
|
2659
|
+
width: var(--item-media-image-size);
|
|
2660
|
+
height: var(--item-media-image-size);
|
|
2661
|
+
}
|
|
2662
|
+
.wds-list-item-body {
|
|
2663
|
+
width: 100%;
|
|
2664
|
+
}
|
|
2665
|
+
.wds-list-item-title {
|
|
2666
|
+
color: #37517e;
|
|
2667
|
+
color: var(--color-content-primary);
|
|
2668
|
+
}
|
|
2669
|
+
.wds-list-item-additional-info {
|
|
2670
|
+
color: #768e9c;
|
|
2671
|
+
color: var(--color-content-tertiary);
|
|
2672
|
+
}
|
|
2673
|
+
.wds-list-item-value {
|
|
2674
|
+
flex: 0 0 auto;
|
|
2675
|
+
}
|
|
2676
|
+
.wds-list-item-control {
|
|
2677
|
+
flex: 0 0 auto;
|
|
2678
|
+
}
|
|
2679
|
+
.wds-list-item-navigation,
|
|
2680
|
+
.wds-list-item-navigation:hover,
|
|
2681
|
+
.wds-list-item-navigation:focus {
|
|
2682
|
+
-webkit-text-decoration: none;
|
|
2683
|
+
text-decoration: none;
|
|
2684
|
+
}
|
|
2685
|
+
.wds-list-item-spotlight-active {
|
|
2686
|
+
background-color: rgba(134,167,189,0.10196);
|
|
2687
|
+
background-color: var(--color-background-neutral);
|
|
2688
|
+
}
|
|
2689
|
+
.wds-list-item-spotlight-active:not(.disabled):not(:disabled):hover {
|
|
2690
|
+
background-color: var(--color-background-neutral-hover);
|
|
2691
|
+
}
|
|
2692
|
+
.wds-list-item-spotlight-active:not(.disabled):not(:disabled):active {
|
|
2693
|
+
background-color: var(--color-background-neutral-active);
|
|
2694
|
+
}
|
|
2695
|
+
.wds-list-item-spotlight-inactive {
|
|
2696
|
+
background-color: rgba(134, 167, 189, 0.025);
|
|
2697
|
+
border: 1px dashed rgba(0,0,0,0.10196);
|
|
2698
|
+
border: 1px dashed var(--color-border-neutral);
|
|
2699
|
+
}
|
|
2700
|
+
@supports (color: color-mix(in lch, red, blue)) {
|
|
2701
|
+
.wds-list-item-spotlight-inactive {
|
|
2702
|
+
background-color: color-mix(in srgb, var(--color-background-neutral) 25%, transparent);
|
|
2703
|
+
}
|
|
2704
|
+
}
|
|
2705
|
+
.wds-list-item-spotlight-inactive:not(.disabled):not(:disabled):hover {
|
|
2706
|
+
background-color: color-mix(in srgb, var(--color-background-neutral-hover) 25%, transparent);
|
|
2707
|
+
}
|
|
2708
|
+
.wds-list-item-spotlight-inactive:not(.disabled):not(:disabled):active {
|
|
2709
|
+
background-color: color-mix(in srgb, var(--color-background-neutral-active) 25%, transparent);
|
|
2710
|
+
}
|
|
2711
|
+
.wds-list-item-prompt {
|
|
2712
|
+
display: inline-flex;
|
|
2713
|
+
padding-top: calc(8px / 2);
|
|
2714
|
+
padding-top: calc(var(--padding-x-small) / 2);
|
|
2715
|
+
padding-bottom: calc(8px / 2);
|
|
2716
|
+
padding-bottom: calc(var(--padding-x-small) / 2);
|
|
2717
|
+
padding-left: calc(8px - 1px);
|
|
2718
|
+
padding-left: calc(var(--padding-x-small) - 1px);
|
|
2719
|
+
padding-right: 8px;
|
|
2720
|
+
padding-right: var(--padding-x-small);
|
|
2721
|
+
border-radius: 10px;
|
|
2722
|
+
border-radius: var(--radius-small);
|
|
2723
|
+
word-break: break-word;
|
|
2724
|
+
word-wrap: break-word;
|
|
2725
|
+
}
|
|
2726
|
+
.wds-list-item-prompt .np-prompt-icon {
|
|
2727
|
+
padding-right: calc(12px / 2);
|
|
2728
|
+
padding-right: calc(var(--size-12) / 2);
|
|
2729
|
+
padding-top: calc(4px - 1px);
|
|
2730
|
+
padding-top: calc(var(--size-4) - 1px);
|
|
2731
|
+
padding-bottom: calc(4px - 1px);
|
|
2732
|
+
padding-bottom: calc(var(--size-4) - 1px);
|
|
2733
|
+
}
|
|
2734
|
+
.wds-list-item-prompt .np-prompt-icon .tw-icon-tags,
|
|
2735
|
+
.wds-list-item-prompt .np-prompt-icon .tw-icon-confetti {
|
|
2736
|
+
color: var(--color-sentiment-positive-primary);
|
|
2737
|
+
}
|
|
2738
|
+
.wds-list-item-prompt a {
|
|
2739
|
+
text-underline-offset: calc(4px / 2);
|
|
2740
|
+
text-underline-offset: calc(var(--size-4) / 2);
|
|
2741
|
+
}
|
|
2742
|
+
.wds-list-item-prompt.np-prompt-interactive {
|
|
2743
|
+
-webkit-text-decoration: none;
|
|
2744
|
+
text-decoration: none;
|
|
2745
|
+
cursor: pointer;
|
|
2746
|
+
border: none;
|
|
2747
|
+
}
|
|
2748
|
+
.wds-list-item-prompt.negative {
|
|
2749
|
+
background-color: var(--color-sentiment-negative-secondary);
|
|
2750
|
+
color: var(--color-sentiment-negative-primary);
|
|
2751
|
+
}
|
|
2752
|
+
.wds-list-item-prompt.negative a {
|
|
2753
|
+
color: var(--color-sentiment-negative-primary);
|
|
2754
|
+
}
|
|
2755
|
+
.wds-list-item-prompt.negative a:hover {
|
|
2756
|
+
color: var(--color-sentiment-negative-primary-hover);
|
|
2757
|
+
}
|
|
2758
|
+
.wds-list-item-prompt.negative a:active {
|
|
2759
|
+
color: var(--color-sentiment-negative-primary-active);
|
|
2760
|
+
}
|
|
2761
|
+
.np-prompt-interactive.wds-list-item-prompt.negative:hover {
|
|
2762
|
+
background-color: color-mix(in srgb, var(--color-sentiment-negative-secondary) 95%, var(--color-sentiment-negative-primary));
|
|
2763
|
+
}
|
|
2764
|
+
.np-prompt-interactive.wds-list-item-prompt.negative:active {
|
|
2765
|
+
background-color: color-mix(in srgb, var(--color-sentiment-negative-secondary) 90%, var(--color-sentiment-negative-primary));
|
|
2766
|
+
}
|
|
2767
|
+
.wds-list-item-prompt.positive,
|
|
2768
|
+
.wds-list-item-prompt.discount,
|
|
2769
|
+
.wds-list-item-prompt.savings {
|
|
2770
|
+
background-color: var(--color-sentiment-positive-secondary);
|
|
2771
|
+
color: var(--color-sentiment-positive-primary);
|
|
2772
|
+
}
|
|
2773
|
+
.wds-list-item-prompt.positive a,
|
|
2774
|
+
.wds-list-item-prompt.discount a,
|
|
2775
|
+
.wds-list-item-prompt.savings a {
|
|
2776
|
+
color: var(--color-sentiment-positive-primary);
|
|
2777
|
+
}
|
|
2778
|
+
.wds-list-item-prompt.positive a:hover,
|
|
2779
|
+
.wds-list-item-prompt.discount a:hover,
|
|
2780
|
+
.wds-list-item-prompt.savings a:hover {
|
|
2781
|
+
color: var(--color-sentiment-positive-primary-hover);
|
|
2782
|
+
}
|
|
2783
|
+
.wds-list-item-prompt.positive a:active,
|
|
2784
|
+
.wds-list-item-prompt.discount a:active,
|
|
2785
|
+
.wds-list-item-prompt.savings a:active {
|
|
2786
|
+
color: var(--color-sentiment-positive-primary-active);
|
|
2787
|
+
}
|
|
2788
|
+
.np-prompt-interactive.wds-list-item-prompt.positive:hover,
|
|
2789
|
+
.np-prompt-interactive.wds-list-item-prompt.discount:hover,
|
|
2790
|
+
.np-prompt-interactive.wds-list-item-prompt.savings:hover {
|
|
2791
|
+
background-color: color-mix(in srgb, var(--color-sentiment-positive-secondary) 95%, var(--color-sentiment-positive-primary));
|
|
2792
|
+
}
|
|
2793
|
+
.np-prompt-interactive.wds-list-item-prompt.positive:active,
|
|
2794
|
+
.np-prompt-interactive.wds-list-item-prompt.discount:active,
|
|
2795
|
+
.np-prompt-interactive.wds-list-item-prompt.savings:active {
|
|
2796
|
+
background-color: color-mix(in srgb, var(--color-sentiment-positive-secondary) 90%, var(--color-sentiment-positive-primary));
|
|
2797
|
+
}
|
|
2798
|
+
.wds-list-item-prompt.neutral {
|
|
2799
|
+
background-color: rgba(134,167,189,0.10196);
|
|
2800
|
+
background-color: var(--color-background-neutral);
|
|
2801
|
+
color: #37517e;
|
|
2802
|
+
color: var(--color-content-primary);
|
|
2803
|
+
}
|
|
2804
|
+
.wds-list-item-prompt.neutral a {
|
|
2805
|
+
color: #37517e;
|
|
2806
|
+
color: var(--color-content-primary);
|
|
2807
|
+
}
|
|
2808
|
+
.np-prompt-interactive.wds-list-item-prompt.neutral:hover {
|
|
2809
|
+
background-color: var(--color-background-neutral-hover);
|
|
2810
|
+
}
|
|
2811
|
+
.np-prompt-interactive.wds-list-item-prompt.neutral:active {
|
|
2812
|
+
background-color: var(--color-background-neutral-active);
|
|
2813
|
+
}
|
|
2814
|
+
.wds-list-item-prompt.warning {
|
|
2815
|
+
background-color: var(--color-sentiment-warning-secondary);
|
|
2816
|
+
color: var(--color-sentiment-warning-content);
|
|
2817
|
+
}
|
|
2818
|
+
.wds-list-item-prompt.warning a {
|
|
2819
|
+
color: var(--color-sentiment-warning-content);
|
|
2820
|
+
}
|
|
2821
|
+
.wds-list-item-prompt.warning a:hover {
|
|
2822
|
+
color: var(--color-sentiment-warning-content-hover);
|
|
2823
|
+
}
|
|
2824
|
+
.wds-list-item-prompt.warning a:active {
|
|
2825
|
+
color: var(--color-sentiment-warning-content-active);
|
|
2826
|
+
}
|
|
2827
|
+
.np-prompt-interactive.wds-list-item-prompt.warning:hover {
|
|
2828
|
+
background-color: color-mix(in srgb, var(--color-sentiment-warning-secondary) 90%, var(--color-sentiment-warning-primary));
|
|
2829
|
+
}
|
|
2830
|
+
.np-prompt-interactive.wds-list-item-prompt.warning:active {
|
|
2831
|
+
background-color: color-mix(in srgb, var(--color-sentiment-warning-secondary) 80%, var(--color-sentiment-warning-primary));
|
|
2832
|
+
}
|
|
2621
2833
|
.np-field-control {
|
|
2622
2834
|
margin-top: 4px;
|
|
2623
2835
|
margin-top: var(--size-4);
|
package/build/types/index.d.ts
CHANGED
|
@@ -71,6 +71,7 @@ export type { UploadError, UploadResponse, UploadedFile } from './uploadInput/ty
|
|
|
71
71
|
export type { WithIdProps } from './withId';
|
|
72
72
|
export type { IconButtonProps } from './iconButton';
|
|
73
73
|
export type { TableProps, TableRowType, TableRowClickableType, TableHeaderType, TableCellLeading, TableCellText, TableCellCurrency, TableCellStatus, TableCellType, } from './table';
|
|
74
|
+
export type { ListItemProps, ListItemAdditionalInfoProps, ListItemCheckboxProps } from './listItem';
|
|
74
75
|
/**
|
|
75
76
|
* Components
|
|
76
77
|
*/
|
|
@@ -167,6 +168,7 @@ export { default as Typeahead } from './typeahead';
|
|
|
167
168
|
export { default as Upload } from './upload';
|
|
168
169
|
export { default as UploadInput } from './uploadInput';
|
|
169
170
|
export { default as Table } from './table';
|
|
171
|
+
export { default as Item } from './table';
|
|
170
172
|
/**
|
|
171
173
|
* Hooks
|
|
172
174
|
*/
|