@transferwise/components 0.0.0-experimental-a12c97e → 0.0.0-experimental-302d967

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.
Files changed (87) hide show
  1. package/build/listItem/AvatarLayout/ListItemAvatarLayout.js +2 -0
  2. package/build/listItem/AvatarLayout/ListItemAvatarLayout.js.map +1 -1
  3. package/build/listItem/AvatarLayout/ListItemAvatarLayout.mjs +2 -0
  4. package/build/listItem/AvatarLayout/ListItemAvatarLayout.mjs.map +1 -1
  5. package/build/listItem/AvatarView/ListItemAvatarView.js +2 -0
  6. package/build/listItem/AvatarView/ListItemAvatarView.js.map +1 -1
  7. package/build/listItem/AvatarView/ListItemAvatarView.mjs +2 -0
  8. package/build/listItem/AvatarView/ListItemAvatarView.mjs.map +1 -1
  9. package/build/listItem/Image/ListItemImage.js +6 -2
  10. package/build/listItem/Image/ListItemImage.js.map +1 -1
  11. package/build/listItem/Image/ListItemImage.mjs +6 -2
  12. package/build/listItem/Image/ListItemImage.mjs.map +1 -1
  13. package/build/listItem/ListItem.js +16 -14
  14. package/build/listItem/ListItem.js.map +1 -1
  15. package/build/listItem/ListItem.mjs +16 -14
  16. package/build/listItem/ListItem.mjs.map +1 -1
  17. package/build/listItem/ListItemContext.js.map +1 -1
  18. package/build/listItem/ListItemContext.mjs.map +1 -1
  19. package/build/listItem/Navigation/ListItemNavigation.js +1 -1
  20. package/build/listItem/Navigation/ListItemNavigation.js.map +1 -1
  21. package/build/listItem/Navigation/ListItemNavigation.mjs +1 -1
  22. package/build/listItem/Navigation/ListItemNavigation.mjs.map +1 -1
  23. package/build/listItem/_stories/images/landscape.svg +1 -0
  24. package/build/listItem/_stories/images/portrait.svg +1 -0
  25. package/build/listItem/useListItemMedia.js +21 -0
  26. package/build/listItem/useListItemMedia.js.map +1 -0
  27. package/build/listItem/useListItemMedia.mjs +19 -0
  28. package/build/listItem/useListItemMedia.mjs.map +1 -0
  29. package/build/main.css +64 -101
  30. package/build/styles/avatarView/AvatarView.css +1 -3
  31. package/build/styles/listItem/ListItem.css +63 -98
  32. package/build/styles/listItem/ListItem.grid.css +17 -11
  33. package/build/styles/main.css +64 -101
  34. package/build/switch/Switch.js.map +1 -1
  35. package/build/switch/Switch.mjs.map +1 -1
  36. package/build/types/listItem/AvatarLayout/ListItemAvatarLayout.d.ts.map +1 -1
  37. package/build/types/listItem/AvatarView/ListItemAvatarView.d.ts.map +1 -1
  38. package/build/types/listItem/Image/ListItemImage.d.ts +1 -1
  39. package/build/types/listItem/Image/ListItemImage.d.ts.map +1 -1
  40. package/build/types/listItem/ListItem.d.ts +1 -1
  41. package/build/types/listItem/ListItem.d.ts.map +1 -1
  42. package/build/types/listItem/ListItemContext.d.ts +4 -0
  43. package/build/types/listItem/ListItemContext.d.ts.map +1 -1
  44. package/build/types/listItem/test-utils.d.ts +7 -0
  45. package/build/types/listItem/test-utils.d.ts.map +1 -0
  46. package/build/types/listItem/useListItemMedia.d.ts +6 -0
  47. package/build/types/listItem/useListItemMedia.d.ts.map +1 -0
  48. package/build/types/switch/Switch.d.ts +1 -1
  49. package/build/types/switch/Switch.d.ts.map +1 -1
  50. package/package.json +3 -3
  51. package/src/avatarView/AvatarView.css +1 -3
  52. package/src/avatarView/AvatarView.less +1 -2
  53. package/src/listItem/AdditionalInfo/ListItemAdditionalInfo.story.tsx +8 -58
  54. package/src/listItem/AvatarLayout/ListItemAvatarLayout.story.tsx +0 -3
  55. package/src/listItem/AvatarLayout/ListItemAvatarLayout.tsx +3 -0
  56. package/src/listItem/AvatarView/ListItemAvatarView.story.tsx +3 -21
  57. package/src/listItem/AvatarView/ListItemAvatarView.tsx +3 -0
  58. package/src/listItem/Button/ListItemButton.spec.tsx +10 -35
  59. package/src/listItem/Button/ListItemButton.story.tsx +37 -95
  60. package/src/listItem/Checkbox/ListItemCheckbox.story.tsx +0 -18
  61. package/src/listItem/IconButton/ListItemIconButton.story.tsx +2 -15
  62. package/src/listItem/Image/ListItemImage.spec.tsx +8 -5
  63. package/src/listItem/Image/ListItemImage.story.tsx +23 -6
  64. package/src/listItem/Image/ListItemImage.tsx +12 -4
  65. package/src/listItem/ListItem.css +63 -98
  66. package/src/listItem/ListItem.grid.css +17 -11
  67. package/src/listItem/ListItem.grid.less +24 -16
  68. package/src/listItem/ListItem.less +60 -113
  69. package/src/listItem/ListItem.tsx +24 -18
  70. package/src/listItem/ListItemContext.tsx +5 -0
  71. package/src/listItem/Navigation/ListItemNavigation.story.tsx +2 -5
  72. package/src/listItem/Navigation/ListItemNavigation.tsx +1 -1
  73. package/src/listItem/Radio/ListItemRadio.story.tsx +0 -10
  74. package/src/listItem/Switch/ListItemSwitch.story.tsx +0 -8
  75. package/src/listItem/_stories/ListItem.layout.test.story.tsx +142 -2
  76. package/src/listItem/_stories/ListItem.story.tsx +141 -243
  77. package/src/listItem/_stories/ListItem.variants.test.story.tsx +7 -2
  78. package/src/listItem/_stories/images/landscape.svg +1 -0
  79. package/src/listItem/_stories/images/portrait.svg +1 -0
  80. package/src/listItem/test-utils.tsx +33 -0
  81. package/src/listItem/useListItemMedia.tsx +13 -0
  82. package/src/main.css +64 -101
  83. package/src/switch/Switch.tsx +1 -1
  84. package/build/types/listItem/_stories/helpers.d.ts +0 -27
  85. package/build/types/listItem/_stories/helpers.d.ts.map +0 -1
  86. package/src/listItem/_stories/ListItem.scenarios.story.tsx +0 -209
  87. package/src/listItem/_stories/helpers.tsx +0 -53
@@ -454,8 +454,7 @@
454
454
  right: 0;
455
455
  }
456
456
  .np-avatar-view .np-avatar-view-content {
457
- color: #37517e;
458
- color: var(--color-content-primary);
457
+ color: var(--color-interactive-primary);
459
458
  }
460
459
  .np-avatar-view-interactive {
461
460
  cursor: pointer;
@@ -463,7 +462,6 @@
463
462
  .np-avatar-view-interactive .np-circle {
464
463
  background-color: rgba(134,167,189,0.10196);
465
464
  background-color: var(--color-background-neutral);
466
- color: var(--color-interactive-primary);
467
465
  }
468
466
  .np-avatar-view-non-interactive .np-circle {
469
467
  background-color: transparent;
@@ -2642,21 +2640,21 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
2642
2640
  gap: 4px 16px;
2643
2641
  gap: var(--size-4) var(--size-16);
2644
2642
  }
2645
- @container (min-width: 380px) {
2643
+ @container (min-width: 375px) {
2646
2644
  .wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl.wds-list-item-hasInfo-hasPrompt {
2647
2645
  grid-template-columns: auto 1fr auto;
2648
2646
  grid-template-rows: auto auto auto;
2649
- grid-template-areas: "media body control" "media info control" "media prompt prompt";
2647
+ grid-template-areas: "media body control" ". info ." ". prompt prompt";
2650
2648
  }
2651
2649
  .wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl.wds-list-item-hasInfo-noPrompt {
2652
2650
  grid-template-columns: auto 1fr auto;
2653
2651
  grid-template-rows: auto auto;
2654
- grid-template-areas: "media body control" "media info control";
2652
+ grid-template-areas: "media body control" ". info .";
2655
2653
  }
2656
2654
  .wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl.wds-list-item-noInfo-hasPrompt {
2657
2655
  grid-template-columns: auto 1fr auto;
2658
2656
  grid-template-rows: auto auto;
2659
- grid-template-areas: "media body control" "media prompt prompt";
2657
+ grid-template-areas: "media body control" ". prompt prompt";
2660
2658
  }
2661
2659
  .wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl.wds-list-item-noInfo-noPrompt {
2662
2660
  grid-template-columns: auto 1fr auto;
@@ -2666,17 +2664,17 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
2666
2664
  .wds-list-item-gridWrapper.wds-list-item-hasMedia-noControl.wds-list-item-hasInfo-hasPrompt {
2667
2665
  grid-template-columns: auto 1fr;
2668
2666
  grid-template-rows: auto auto;
2669
- grid-template-areas: "media body" "media info" "media prompt";
2667
+ grid-template-areas: "media body" ". info" ". prompt";
2670
2668
  }
2671
2669
  .wds-list-item-gridWrapper.wds-list-item-hasMedia-noControl.wds-list-item-hasInfo-noPrompt {
2672
2670
  grid-template-columns: auto 1fr;
2673
2671
  grid-template-rows: auto auto auto;
2674
- grid-template-areas: "media body" "media info";
2672
+ grid-template-areas: "media body" ". info";
2675
2673
  }
2676
2674
  .wds-list-item-gridWrapper.wds-list-item-hasMedia-noControl.wds-list-item-noInfo-hasPrompt {
2677
2675
  grid-template-columns: auto 1fr;
2678
2676
  grid-template-rows: auto auto;
2679
- grid-template-areas: "media body" "media prompt";
2677
+ grid-template-areas: "media body" ". prompt";
2680
2678
  }
2681
2679
  .wds-list-item-gridWrapper.wds-list-item-hasMedia-noControl.wds-list-item-noInfo-noPrompt {
2682
2680
  grid-template-columns: auto 1fr;
@@ -2689,12 +2687,12 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
2689
2687
  .wds-list-item-gridWrapper.wds-list-item-noMedia-hasControl.wds-list-item-hasInfo-hasPrompt {
2690
2688
  grid-template-columns: 1fr auto;
2691
2689
  grid-template-rows: auto auto auto;
2692
- grid-template-areas: "body control" "info control" "prompt prompt";
2690
+ grid-template-areas: "body control" "info ." "prompt prompt";
2693
2691
  }
2694
2692
  .wds-list-item-gridWrapper.wds-list-item-noMedia-hasControl.wds-list-item-hasInfo-noPrompt {
2695
2693
  grid-template-columns: 1fr auto;
2696
2694
  grid-template-rows: auto auto;
2697
- grid-template-areas: "body control" "info control";
2695
+ grid-template-areas: "body control" "info .";
2698
2696
  }
2699
2697
  .wds-list-item-gridWrapper.wds-list-item-noMedia-hasControl.wds-list-item-noInfo-hasPrompt {
2700
2698
  grid-template-columns: 1fr auto;
@@ -2730,11 +2728,14 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
2730
2728
  grid-template-areas: "body";
2731
2729
  }
2732
2730
  }
2733
- @container (min-width: 290px) and (max-width: 380px) {
2731
+ @container (min-width: 297px) and (max-width: 375px) {
2734
2732
  .wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl .wds-list-item-media {
2735
2733
  margin-bottom: 12px;
2736
2734
  margin-bottom: var(--size-12);
2737
2735
  }
2736
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl .wds-list-item-media .wds-list-item-media-image {
2737
+ height: auto;
2738
+ }
2738
2739
  .wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl.wds-list-item-hasInfo-hasPrompt {
2739
2740
  grid-template-columns: 1fr auto;
2740
2741
  grid-template-rows: auto auto auto auto;
@@ -2775,6 +2776,9 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
2775
2776
  margin-bottom: 16px;
2776
2777
  margin-bottom: var(--size-16);
2777
2778
  }
2779
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-noControl .wds-list-item-media .wds-list-item-media-image {
2780
+ height: auto;
2781
+ }
2778
2782
  .wds-list-item-gridWrapper.wds-list-item-hasMedia-noControl.wds-list-item-hasInfo-hasPrompt {
2779
2783
  grid-template-columns: auto auto;
2780
2784
  grid-template-rows: auto auto auto auto;
@@ -2858,7 +2862,7 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
2858
2862
  grid-template-areas: "body";
2859
2863
  }
2860
2864
  }
2861
- @container (max-width: 290px) {
2865
+ @container (max-width: 297px) {
2862
2866
  .wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl.wds-list-item-hasInfo-hasPrompt {
2863
2867
  grid-template-columns: auto 1fr;
2864
2868
  grid-template-rows: auto auto auto;
@@ -3005,8 +3009,8 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
3005
3009
  background-color: #ffffff;
3006
3010
  background-color: var(--color-background-screen);
3007
3011
  position: relative;
3008
- padding: 12px 0;
3009
- padding: var(--size-12) 0;
3012
+ padding: 12px;
3013
+ padding: var(--size-12);
3010
3014
  container-type: inline-size;
3011
3015
  }
3012
3016
  .wds-list-item + .wds-list-item-spotlight,
@@ -3040,6 +3044,12 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
3040
3044
  .wds-list-item-interactive .np-checkbox-button:has(input[type="checkbox"]:focus-visible) .tw-checkbox-button {
3041
3045
  outline: none;
3042
3046
  }
3047
+ .wds-list-item-interactive:has(.wds-list-item-control:focus-visible),
3048
+ .wds-list-item-interactive:has(input[type="checkbox"]:focus-visible) {
3049
+ outline: var(--ring-outline-color) solid var(--ring-outline-width);
3050
+ outline-offset: var(--ring-outline-offset);
3051
+ outline-offset: -1px;
3052
+ }
3043
3053
  .wds-list-item-interactive .wds-list-item-additional-info {
3044
3054
  --ring-outline-offset: 0;
3045
3055
  }
@@ -3058,68 +3068,45 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
3058
3068
  position: absolute;
3059
3069
  inset: 0;
3060
3070
  }
3061
- .wds-list-item-interactive.wds-list-item-spotlight:has(.wds-list-item-control:focus-visible),
3062
- .wds-list-item-interactive.wds-list-item-spotlight:has(input[type="checkbox"]:focus-visible) {
3063
- outline: var(--ring-outline-color) solid var(--ring-outline-width);
3064
- outline-offset: var(--ring-outline-offset);
3065
- outline-offset: -1px;
3066
- }
3067
- .wds-list-item-interactive.wds-list-item-spotlight:not(.disabled):not(:disabled):hover {
3071
+ .wds-list-item-interactive:not(.disabled):not(:disabled):hover {
3068
3072
  background-color: var(--color-background-screen-hover);
3069
3073
  }
3070
- .wds-list-item-interactive.wds-list-item-spotlight:not(.disabled):not(:disabled):active {
3071
- background-color: var(--color-background-screen-active);
3072
- }
3073
- .wds-list-item-interactive.wds-list-item-spotlight:has(.wds-list-item-prompt:hover a, .wds-list-item-prompt:hover button):hover {
3074
- background-color: transparent;
3075
- background-color: initial;
3076
- }
3077
- .wds-list-item-interactive:not(.wds-list-item-spotlight):has(.wds-list-item-control:focus-visible):before,
3078
- .wds-list-item-interactive:not(.wds-list-item-spotlight):has(input[type="checkbox"]:focus-visible):before {
3079
- outline: var(--ring-outline-color) solid var(--ring-outline-width);
3080
- outline-offset: var(--ring-outline-offset);
3081
- content: '';
3082
- position: absolute;
3083
- inset: 0 -8px;
3084
- border-radius: 16px;
3085
- border-radius: var(--radius-medium);
3086
- outline-offset: -1px;
3087
- }
3088
- .wds-list-item-interactive:not(.wds-list-item-spotlight):not(.disabled):not(:disabled):hover:before,
3089
- .wds-list-item-interactive:not(.wds-list-item-spotlight):not(.disabled):not(:disabled):active:before {
3090
- content: '';
3091
- position: absolute;
3092
- inset: 0 -8px;
3093
- border-radius: 16px;
3094
- border-radius: var(--radius-medium);
3095
- }
3096
- .wds-list-item-interactive:not(.wds-list-item-spotlight):not(.disabled):not(:disabled):hover:before {
3097
- background-color: var(--color-background-screen-hover);
3098
- }
3099
- .wds-list-item-interactive:not(.wds-list-item-spotlight):not(.disabled):not(:disabled):active:before {
3100
- background-color: var(--color-background-screen-active);
3101
- }
3102
- .wds-list-item-interactive:not(.wds-list-item-spotlight):has(.wds-list-item-prompt:hover a, .wds-list-item-prompt:hover button):hover:before {
3103
- background-color: transparent;
3104
- background-color: initial;
3105
- }
3106
3074
  .wds-list-item-interactive:not(.disabled):not(:disabled):hover .wds-list-item-control-wrapper .wds-Button {
3107
3075
  background-color: var(--Button-background-hover);
3108
3076
  color: var(--Button-color-hover);
3109
3077
  transition: none;
3110
3078
  }
3079
+ .wds-list-item-interactive:not(.disabled):not(:disabled):active {
3080
+ background-color: var(--color-background-screen-active);
3081
+ }
3111
3082
  .wds-list-item-interactive .wds-list-item-button-control .wds-Button {
3112
3083
  transition: none;
3113
3084
  }
3085
+ .wds-list-item-interactive:has(.wds-list-item-prompt:hover a, .wds-list-item-prompt:hover button):hover {
3086
+ background-color: transparent;
3087
+ background-color: initial;
3088
+ }
3114
3089
  .wds-list-item-media {
3115
3090
  grid-area: media;
3091
+ display: flex;
3092
+ align-items: center;
3093
+ }
3094
+ .wds-list-item-media-image-wrapper {
3095
+ width: var(--wds-list-item-media-size);
3096
+ height: var(--wds-list-item-media-size);
3097
+ display: flex;
3098
+ align-items: center;
3099
+ justify-content: center;
3116
3100
  }
3117
3101
  .wds-list-item-media-image {
3118
- width: var(--item-media-image-size);
3119
- height: var(--item-media-image-size);
3102
+ width: 100%;
3103
+ height: 100%;
3104
+ -o-object-fit: contain;
3105
+ object-fit: contain;
3120
3106
  }
3121
3107
  .wds-list-item-body {
3122
3108
  grid-area: body;
3109
+ align-items: center;
3123
3110
  width: 100%;
3124
3111
  display: grid;
3125
3112
  grid-template-columns: 1fr max-content;
@@ -3130,11 +3117,18 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
3130
3117
  gap: var(--size-16);
3131
3118
  word-break: break-word;
3132
3119
  }
3133
- .wds-list-item-title,
3134
- .wds-list-item-title-value {
3120
+ .wds-list-item-title {
3135
3121
  color: #37517e;
3136
3122
  color: var(--color-content-primary);
3137
3123
  }
3124
+ .wds-list-item-value {
3125
+ text-align: right;
3126
+ }
3127
+ .wds-list-item-body-center {
3128
+ display: flex;
3129
+ flex-direction: row;
3130
+ align-items: center;
3131
+ }
3138
3132
  .wds-list-item-additional-info {
3139
3133
  grid-area: info;
3140
3134
  color: #768e9c;
@@ -3142,12 +3136,13 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
3142
3136
  margin-top: calc(4px * -1);
3143
3137
  margin-top: calc(var(--size-4) * -1);
3144
3138
  }
3145
- .wds-list-item-value {
3146
- align-items: end;
3147
- text-align: right;
3148
- }
3149
3139
  .wds-list-item-control-wrapper {
3150
3140
  grid-area: control;
3141
+ align-content: center;
3142
+ }
3143
+ .wds-list-item-navigation .tw-icon-chevron-right {
3144
+ color: #c9cbce;
3145
+ color: var(--color-interactive-secondary);
3151
3146
  }
3152
3147
  .wds-list-item-control {
3153
3148
  flex: 0 0 auto;
@@ -3163,12 +3158,6 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
3163
3158
  color: #768e9c;
3164
3159
  color: var(--color-content-tertiary);
3165
3160
  }
3166
- .wds-list-item-spotlight {
3167
- padding-left: 12px;
3168
- padding-left: var(--size-12);
3169
- padding-right: 12px;
3170
- padding-right: var(--size-12);
3171
- }
3172
3161
  .wds-list-item-spotlight-active {
3173
3162
  background-color: rgba(134,167,189,0.10196);
3174
3163
  background-color: var(--color-background-neutral);
@@ -3181,6 +3170,8 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
3181
3170
  }
3182
3171
  .wds-list-item-spotlight-inactive {
3183
3172
  background-color: rgba(134, 167, 189, 0.025);
3173
+ border: 1px dashed rgba(0,0,0,0.10196);
3174
+ border: 1px dashed var(--color-border-neutral);
3184
3175
  }
3185
3176
  @supports (color: color-mix(in lch, red, blue)) {
3186
3177
  .wds-list-item-spotlight-inactive {
@@ -3193,34 +3184,6 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
3193
3184
  .wds-list-item-spotlight-inactive:not(.disabled):not(:disabled):active {
3194
3185
  background-color: color-mix(in srgb, var(--color-background-neutral-active) 25%, transparent);
3195
3186
  }
3196
- .wds-list-item .wds-list-item-spotlight__border {
3197
- position: absolute;
3198
- inset: 0;
3199
- width: 100%;
3200
- height: 100%;
3201
- }
3202
- .wds-list-item .wds-list-item-spotlight__border rect {
3203
- --wds-list-item-spotlight-borderWidth: 1px;
3204
- --wds-list-item-spotlight-borderWidthOffset: 0.5px;
3205
- --wds-list-item-spotlight-strokeDashSize: calc(var(--size-12) * 0.5);
3206
- fill: none;
3207
- stroke: rgba(0,0,0,0.10196);
3208
- stroke: var(--color-border-neutral);
3209
- width: calc(100% - 1px);
3210
- width: calc(100% - var(--wds-list-item-spotlight-borderWidth));
3211
- height: calc(100% - 1px);
3212
- height: calc(100% - var(--wds-list-item-spotlight-borderWidth));
3213
- x: 0.5px;
3214
- x: var(--wds-list-item-spotlight-borderWidthOffset);
3215
- y: 0.5px;
3216
- y: var(--wds-list-item-spotlight-borderWidthOffset);
3217
- rx: calc(16px - 0.5px);
3218
- rx: calc(var(--radius-medium) - var(--wds-list-item-spotlight-borderWidthOffset));
3219
- ry: calc(16px - 0.5px);
3220
- ry: calc(var(--radius-medium) - var(--wds-list-item-spotlight-borderWidthOffset));
3221
- stroke-dasharray: calc(12px * 0.5) calc(12px * 0.5);
3222
- stroke-dasharray: var(--wds-list-item-spotlight-strokeDashSize) var(--wds-list-item-spotlight-strokeDashSize);
3223
- }
3224
3187
  .wds-list-item-prompt {
3225
3188
  grid-area: prompt;
3226
3189
  display: inline-flex;
@@ -1 +1 @@
1
- {"version":3,"file":"Switch.js","sources":["../../src/switch/Switch.tsx"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { KeyboardEventHandler, MouseEvent } from 'react';\n\nimport type { CommonProps } from '../common';\nimport { useInputAttributes } from '../inputs/contexts';\n\nexport type SwitchProps = CommonProps & {\n /**\n * Used to describe the purpose of the switch. To be used if there is no external label (i.e. aria-labelledby is null)\n * @deprecated Use `Field` wrapper or the `aria-labelledby` attribute instead.\n */\n 'aria-label'?: string;\n /** A reference to a label that describes the purpose of the switch. Ignored if aria-label is provided */\n 'aria-labelledby'?: string;\n /** Identifies the element(s) that describes the element on which the attribute is set */\n 'aria-describedby'?: string;\n /** Whether the switch is checked or not */\n checked?: boolean;\n disabled?: boolean;\n /** ID to apply to the switch container */\n id?: string;\n /** Function called when the switch is toggled */\n onClick: (event?: MouseEvent<HTMLButtonElement>) => void;\n};\n\nconst Switch = (props: SwitchProps) => {\n const inputAttributes = useInputAttributes({ nonLabelable: true });\n\n const {\n checked,\n className,\n id = inputAttributes.id,\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledbyProp,\n 'aria-describedby': ariaDescribedbyProp,\n onClick,\n disabled,\n } = props;\n\n const ariaLabelledby =\n (ariaLabel ? undefined : ariaLabelledbyProp) ?? inputAttributes['aria-labelledby'];\n\n return (\n <button\n className={clsx(\n 'np-switch',\n {\n 'np-switch--unchecked': !checked,\n 'np-switch--checked': checked,\n disabled,\n },\n className,\n )}\n type=\"button\"\n role=\"switch\"\n {...inputAttributes}\n id={id}\n aria-checked={checked}\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledby}\n aria-describedby={ariaDescribedbyProp}\n disabled={disabled}\n onClick={!disabled ? onClick : undefined}\n >\n <span className=\"np-switch--thumb\" />\n </button>\n );\n};\n\nexport default Switch;\n"],"names":["Switch","props","inputAttributes","useInputAttributes","nonLabelable","checked","className","id","ariaLabel","ariaLabelledbyProp","ariaDescribedbyProp","onClick","disabled","ariaLabelledby","undefined","_jsx","clsx","type","role","children"],"mappings":";;;;;;;;AAyBA,MAAMA,MAAM,GAAIC,KAAkB,IAAI;EACpC,MAAMC,eAAe,GAAGC,2BAAkB,CAAC;AAAEC,IAAAA,YAAY,EAAE;AAAI,GAAE,CAAC;EAElE,MAAM;IACJC,OAAO;IACPC,SAAS;IACTC,EAAE,GAAGL,eAAe,CAACK,EAAE;AACvB,IAAA,YAAY,EAAEC,SAAS;AACvB,IAAA,iBAAiB,EAAEC,kBAAkB;AACrC,IAAA,kBAAkB,EAAEC,mBAAmB;IACvCC,OAAO;AACPC,IAAAA;AAAQ,GACT,GAAGX,KAAK;AAET,EAAA,MAAMY,cAAc,GAClB,CAACL,SAAS,GAAGM,SAAS,GAAGL,kBAAkB,KAAKP,eAAe,CAAC,iBAAiB,CAAC;AAEpF,EAAA,oBACEa,cAAA,CAAA,QAAA,EAAA;AACET,IAAAA,SAAS,EAAEU,SAAI,CACb,WAAW,EACX;MACE,sBAAsB,EAAE,CAACX,OAAO;AAChC,MAAA,oBAAoB,EAAEA,OAAO;AAC7BO,MAAAA;KACD,EACDN,SAAS,CACT;AACFW,IAAAA,IAAI,EAAC,QAAQ;AACbC,IAAAA,IAAI,EAAC,QAAQ;AAAA,IAAA,GACThB,eAAe;AACnBK,IAAAA,EAAE,EAAEA,EAAG;AACP,IAAA,cAAA,EAAcF,OAAQ;AACtB,IAAA,YAAA,EAAYG,SAAU;AACtB,IAAA,iBAAA,EAAiBK,cAAe;AAChC,IAAA,kBAAA,EAAkBH,mBAAoB;AACtCE,IAAAA,QAAQ,EAAEA,QAAS;AACnBD,IAAAA,OAAO,EAAE,CAACC,QAAQ,GAAGD,OAAO,GAAGG,SAAU;AAAAK,IAAAA,QAAA,eAEzCJ,cAAA,CAAA,MAAA,EAAA;AAAMT,MAAAA,SAAS,EAAC;KAAkB;AACpC,GAAQ,CAAC;AAEb;;;;"}
1
+ {"version":3,"file":"Switch.js","sources":["../../src/switch/Switch.tsx"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { KeyboardEventHandler, MouseEvent } from 'react';\n\nimport type { CommonProps } from '../common';\nimport { useInputAttributes } from '../inputs/contexts';\n\nexport type SwitchProps = CommonProps & {\n /**\n * Used to describe the purpose of the switch. To be used if there is no external label (i.e. aria-labelledby is null)\n * @deprecated Use `Field` wrapper or the `aria-labelledby` attribute instead.\n */\n 'aria-label'?: string;\n /** A reference to a label that describes the purpose of the switch. Ignored if aria-label is provided */\n 'aria-labelledby'?: string;\n /** Identifies the element(s) that describes the element on which the attribute is set */\n 'aria-describedby'?: string;\n /** Whether the switch is checked or not */\n checked?: boolean;\n disabled?: boolean;\n /** ID to apply to the switch container */\n id?: string;\n /** Function called when the switch is toggled */\n onClick: (event?: MouseEvent<HTMLSpanElement>) => void;\n};\n\nconst Switch = (props: SwitchProps) => {\n const inputAttributes = useInputAttributes({ nonLabelable: true });\n\n const {\n checked,\n className,\n id = inputAttributes.id,\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledbyProp,\n 'aria-describedby': ariaDescribedbyProp,\n onClick,\n disabled,\n } = props;\n\n const ariaLabelledby =\n (ariaLabel ? undefined : ariaLabelledbyProp) ?? inputAttributes['aria-labelledby'];\n\n return (\n <button\n className={clsx(\n 'np-switch',\n {\n 'np-switch--unchecked': !checked,\n 'np-switch--checked': checked,\n disabled,\n },\n className,\n )}\n type=\"button\"\n role=\"switch\"\n {...inputAttributes}\n id={id}\n aria-checked={checked}\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledby}\n aria-describedby={ariaDescribedbyProp}\n disabled={disabled}\n onClick={!disabled ? onClick : undefined}\n >\n <span className=\"np-switch--thumb\" />\n </button>\n );\n};\n\nexport default Switch;\n"],"names":["Switch","props","inputAttributes","useInputAttributes","nonLabelable","checked","className","id","ariaLabel","ariaLabelledbyProp","ariaDescribedbyProp","onClick","disabled","ariaLabelledby","undefined","_jsx","clsx","type","role","children"],"mappings":";;;;;;;;AAyBA,MAAMA,MAAM,GAAIC,KAAkB,IAAI;EACpC,MAAMC,eAAe,GAAGC,2BAAkB,CAAC;AAAEC,IAAAA,YAAY,EAAE;AAAI,GAAE,CAAC;EAElE,MAAM;IACJC,OAAO;IACPC,SAAS;IACTC,EAAE,GAAGL,eAAe,CAACK,EAAE;AACvB,IAAA,YAAY,EAAEC,SAAS;AACvB,IAAA,iBAAiB,EAAEC,kBAAkB;AACrC,IAAA,kBAAkB,EAAEC,mBAAmB;IACvCC,OAAO;AACPC,IAAAA;AAAQ,GACT,GAAGX,KAAK;AAET,EAAA,MAAMY,cAAc,GAClB,CAACL,SAAS,GAAGM,SAAS,GAAGL,kBAAkB,KAAKP,eAAe,CAAC,iBAAiB,CAAC;AAEpF,EAAA,oBACEa,cAAA,CAAA,QAAA,EAAA;AACET,IAAAA,SAAS,EAAEU,SAAI,CACb,WAAW,EACX;MACE,sBAAsB,EAAE,CAACX,OAAO;AAChC,MAAA,oBAAoB,EAAEA,OAAO;AAC7BO,MAAAA;KACD,EACDN,SAAS,CACT;AACFW,IAAAA,IAAI,EAAC,QAAQ;AACbC,IAAAA,IAAI,EAAC,QAAQ;AAAA,IAAA,GACThB,eAAe;AACnBK,IAAAA,EAAE,EAAEA,EAAG;AACP,IAAA,cAAA,EAAcF,OAAQ;AACtB,IAAA,YAAA,EAAYG,SAAU;AACtB,IAAA,iBAAA,EAAiBK,cAAe;AAChC,IAAA,kBAAA,EAAkBH,mBAAoB;AACtCE,IAAAA,QAAQ,EAAEA,QAAS;AACnBD,IAAAA,OAAO,EAAE,CAACC,QAAQ,GAAGD,OAAO,GAAGG,SAAU;AAAAK,IAAAA,QAAA,eAEzCJ,cAAA,CAAA,MAAA,EAAA;AAAMT,MAAAA,SAAS,EAAC;KAAkB;AACpC,GAAQ,CAAC;AAEb;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"Switch.mjs","sources":["../../src/switch/Switch.tsx"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { KeyboardEventHandler, MouseEvent } from 'react';\n\nimport type { CommonProps } from '../common';\nimport { useInputAttributes } from '../inputs/contexts';\n\nexport type SwitchProps = CommonProps & {\n /**\n * Used to describe the purpose of the switch. To be used if there is no external label (i.e. aria-labelledby is null)\n * @deprecated Use `Field` wrapper or the `aria-labelledby` attribute instead.\n */\n 'aria-label'?: string;\n /** A reference to a label that describes the purpose of the switch. Ignored if aria-label is provided */\n 'aria-labelledby'?: string;\n /** Identifies the element(s) that describes the element on which the attribute is set */\n 'aria-describedby'?: string;\n /** Whether the switch is checked or not */\n checked?: boolean;\n disabled?: boolean;\n /** ID to apply to the switch container */\n id?: string;\n /** Function called when the switch is toggled */\n onClick: (event?: MouseEvent<HTMLButtonElement>) => void;\n};\n\nconst Switch = (props: SwitchProps) => {\n const inputAttributes = useInputAttributes({ nonLabelable: true });\n\n const {\n checked,\n className,\n id = inputAttributes.id,\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledbyProp,\n 'aria-describedby': ariaDescribedbyProp,\n onClick,\n disabled,\n } = props;\n\n const ariaLabelledby =\n (ariaLabel ? undefined : ariaLabelledbyProp) ?? inputAttributes['aria-labelledby'];\n\n return (\n <button\n className={clsx(\n 'np-switch',\n {\n 'np-switch--unchecked': !checked,\n 'np-switch--checked': checked,\n disabled,\n },\n className,\n )}\n type=\"button\"\n role=\"switch\"\n {...inputAttributes}\n id={id}\n aria-checked={checked}\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledby}\n aria-describedby={ariaDescribedbyProp}\n disabled={disabled}\n onClick={!disabled ? onClick : undefined}\n >\n <span className=\"np-switch--thumb\" />\n </button>\n );\n};\n\nexport default Switch;\n"],"names":["Switch","props","inputAttributes","useInputAttributes","nonLabelable","checked","className","id","ariaLabel","ariaLabelledbyProp","ariaDescribedbyProp","onClick","disabled","ariaLabelledby","undefined","_jsx","clsx","type","role","children"],"mappings":";;;;AAyBA,MAAMA,MAAM,GAAIC,KAAkB,IAAI;EACpC,MAAMC,eAAe,GAAGC,kBAAkB,CAAC;AAAEC,IAAAA,YAAY,EAAE;AAAI,GAAE,CAAC;EAElE,MAAM;IACJC,OAAO;IACPC,SAAS;IACTC,EAAE,GAAGL,eAAe,CAACK,EAAE;AACvB,IAAA,YAAY,EAAEC,SAAS;AACvB,IAAA,iBAAiB,EAAEC,kBAAkB;AACrC,IAAA,kBAAkB,EAAEC,mBAAmB;IACvCC,OAAO;AACPC,IAAAA;AAAQ,GACT,GAAGX,KAAK;AAET,EAAA,MAAMY,cAAc,GAClB,CAACL,SAAS,GAAGM,SAAS,GAAGL,kBAAkB,KAAKP,eAAe,CAAC,iBAAiB,CAAC;AAEpF,EAAA,oBACEa,GAAA,CAAA,QAAA,EAAA;AACET,IAAAA,SAAS,EAAEU,IAAI,CACb,WAAW,EACX;MACE,sBAAsB,EAAE,CAACX,OAAO;AAChC,MAAA,oBAAoB,EAAEA,OAAO;AAC7BO,MAAAA;KACD,EACDN,SAAS,CACT;AACFW,IAAAA,IAAI,EAAC,QAAQ;AACbC,IAAAA,IAAI,EAAC,QAAQ;AAAA,IAAA,GACThB,eAAe;AACnBK,IAAAA,EAAE,EAAEA,EAAG;AACP,IAAA,cAAA,EAAcF,OAAQ;AACtB,IAAA,YAAA,EAAYG,SAAU;AACtB,IAAA,iBAAA,EAAiBK,cAAe;AAChC,IAAA,kBAAA,EAAkBH,mBAAoB;AACtCE,IAAAA,QAAQ,EAAEA,QAAS;AACnBD,IAAAA,OAAO,EAAE,CAACC,QAAQ,GAAGD,OAAO,GAAGG,SAAU;AAAAK,IAAAA,QAAA,eAEzCJ,GAAA,CAAA,MAAA,EAAA;AAAMT,MAAAA,SAAS,EAAC;KAAkB;AACpC,GAAQ,CAAC;AAEb;;;;"}
1
+ {"version":3,"file":"Switch.mjs","sources":["../../src/switch/Switch.tsx"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { KeyboardEventHandler, MouseEvent } from 'react';\n\nimport type { CommonProps } from '../common';\nimport { useInputAttributes } from '../inputs/contexts';\n\nexport type SwitchProps = CommonProps & {\n /**\n * Used to describe the purpose of the switch. To be used if there is no external label (i.e. aria-labelledby is null)\n * @deprecated Use `Field` wrapper or the `aria-labelledby` attribute instead.\n */\n 'aria-label'?: string;\n /** A reference to a label that describes the purpose of the switch. Ignored if aria-label is provided */\n 'aria-labelledby'?: string;\n /** Identifies the element(s) that describes the element on which the attribute is set */\n 'aria-describedby'?: string;\n /** Whether the switch is checked or not */\n checked?: boolean;\n disabled?: boolean;\n /** ID to apply to the switch container */\n id?: string;\n /** Function called when the switch is toggled */\n onClick: (event?: MouseEvent<HTMLSpanElement>) => void;\n};\n\nconst Switch = (props: SwitchProps) => {\n const inputAttributes = useInputAttributes({ nonLabelable: true });\n\n const {\n checked,\n className,\n id = inputAttributes.id,\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledbyProp,\n 'aria-describedby': ariaDescribedbyProp,\n onClick,\n disabled,\n } = props;\n\n const ariaLabelledby =\n (ariaLabel ? undefined : ariaLabelledbyProp) ?? inputAttributes['aria-labelledby'];\n\n return (\n <button\n className={clsx(\n 'np-switch',\n {\n 'np-switch--unchecked': !checked,\n 'np-switch--checked': checked,\n disabled,\n },\n className,\n )}\n type=\"button\"\n role=\"switch\"\n {...inputAttributes}\n id={id}\n aria-checked={checked}\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledby}\n aria-describedby={ariaDescribedbyProp}\n disabled={disabled}\n onClick={!disabled ? onClick : undefined}\n >\n <span className=\"np-switch--thumb\" />\n </button>\n );\n};\n\nexport default Switch;\n"],"names":["Switch","props","inputAttributes","useInputAttributes","nonLabelable","checked","className","id","ariaLabel","ariaLabelledbyProp","ariaDescribedbyProp","onClick","disabled","ariaLabelledby","undefined","_jsx","clsx","type","role","children"],"mappings":";;;;AAyBA,MAAMA,MAAM,GAAIC,KAAkB,IAAI;EACpC,MAAMC,eAAe,GAAGC,kBAAkB,CAAC;AAAEC,IAAAA,YAAY,EAAE;AAAI,GAAE,CAAC;EAElE,MAAM;IACJC,OAAO;IACPC,SAAS;IACTC,EAAE,GAAGL,eAAe,CAACK,EAAE;AACvB,IAAA,YAAY,EAAEC,SAAS;AACvB,IAAA,iBAAiB,EAAEC,kBAAkB;AACrC,IAAA,kBAAkB,EAAEC,mBAAmB;IACvCC,OAAO;AACPC,IAAAA;AAAQ,GACT,GAAGX,KAAK;AAET,EAAA,MAAMY,cAAc,GAClB,CAACL,SAAS,GAAGM,SAAS,GAAGL,kBAAkB,KAAKP,eAAe,CAAC,iBAAiB,CAAC;AAEpF,EAAA,oBACEa,GAAA,CAAA,QAAA,EAAA;AACET,IAAAA,SAAS,EAAEU,IAAI,CACb,WAAW,EACX;MACE,sBAAsB,EAAE,CAACX,OAAO;AAChC,MAAA,oBAAoB,EAAEA,OAAO;AAC7BO,MAAAA;KACD,EACDN,SAAS,CACT;AACFW,IAAAA,IAAI,EAAC,QAAQ;AACbC,IAAAA,IAAI,EAAC,QAAQ;AAAA,IAAA,GACThB,eAAe;AACnBK,IAAAA,EAAE,EAAEA,EAAG;AACP,IAAA,cAAA,EAAcF,OAAQ;AACtB,IAAA,YAAA,EAAYG,SAAU;AACtB,IAAA,iBAAA,EAAiBK,cAAe;AAChC,IAAA,kBAAA,EAAkBH,mBAAoB;AACtCE,IAAAA,QAAQ,EAAEA,QAAS;AACnBD,IAAAA,OAAO,EAAE,CAACC,QAAQ,GAAGD,OAAO,GAAGG,SAAU;AAAAK,IAAAA,QAAA,eAEzCJ,GAAA,CAAA,MAAA,EAAA;AAAMT,MAAAA,SAAS,EAAC;KAAkB;AACpC,GAAQ,CAAC;AAEb;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"ListItemAvatarLayout.d.ts","sourceRoot":"","sources":["../../../../src/listItem/AvatarLayout/ListItemAvatarLayout.tsx"],"names":[],"mappings":"AAAA,OAAyB,EAAE,KAAK,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAG9E,KAAK,QAAQ,GAAG;IAAE,IAAI,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAA;CAAE,CAAC;AAElD,MAAM,MAAM,yBAAyB,GAAG,IAAI,CAAC,iBAAiB,EAAE,MAAM,GAAG,aAAa,CAAC,GAAG,QAAQ,CAAC;AAEnG;;;;;;GAMG;AACH,eAAO,MAAM,YAAY;oCAAwC,yBAAyB;;CAQzF,CAAC"}
1
+ {"version":3,"file":"ListItemAvatarLayout.d.ts","sourceRoot":"","sources":["../../../../src/listItem/AvatarLayout/ListItemAvatarLayout.tsx"],"names":[],"mappings":"AAAA,OAAyB,EAAE,KAAK,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAI9E,KAAK,QAAQ,GAAG;IAAE,IAAI,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAA;CAAE,CAAC;AAElD,MAAM,MAAM,yBAAyB,GAAG,IAAI,CAAC,iBAAiB,EAAE,MAAM,GAAG,aAAa,CAAC,GAAG,QAAQ,CAAC;AAEnG;;;;;;GAMG;AACH,eAAO,MAAM,YAAY;oCAAwC,yBAAyB;;CAUzF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ListItemAvatarView.d.ts","sourceRoot":"","sources":["../../../../src/listItem/AvatarView/ListItemAvatarView.tsx"],"names":[],"mappings":"AACA,OAAuB,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEnE,MAAM,MAAM,uBAAuB,GAAG,IAAI,CAAC,eAAe,EAAE,MAAM,GAAG,aAAa,CAAC,GAAG;IACpF,IAAI,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;CAC/B,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,UAAU;oCAAwC,uBAAuB;;CAQrF,CAAC"}
1
+ {"version":3,"file":"ListItemAvatarView.d.ts","sourceRoot":"","sources":["../../../../src/listItem/AvatarView/ListItemAvatarView.tsx"],"names":[],"mappings":"AACA,OAAuB,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAGnE,MAAM,MAAM,uBAAuB,GAAG,IAAI,CAAC,eAAe,EAAE,MAAM,GAAG,aAAa,CAAC,GAAG;IACpF,IAAI,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;CAC/B,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,UAAU;oCAAwC,uBAAuB;;CAUrF,CAAC"}
@@ -19,7 +19,7 @@ export type ListItemImageProps = Omit<ImageProps, 'stretch' | 'shrink' | 'id' |
19
19
  * > **NB**: This component is [not intended for use with illustrations](https://wise.design/foundations/illustration#scale).
20
20
  */
21
21
  export declare const Image: {
22
- ({ alt, size, ...props }: ListItemImageProps): import("react").JSX.Element;
22
+ ({ alt, size, className, ...props }: ListItemImageProps): import("react").JSX.Element;
23
23
  displayName: string;
24
24
  };
25
25
  //# sourceMappingURL=ListItemImage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ListItemImage.d.ts","sourceRoot":"","sources":["../../../../src/listItem/Image/ListItemImage.tsx"],"names":[],"mappings":"AAAA,OAAkB,EAAE,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AAKzD,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC,UAAU,EAAE,SAAS,GAAG,QAAQ,GAAG,IAAI,GAAG,KAAK,GAAG,MAAM,CAAC,GAAG;IAChG;;OAEG;IACH,IAAI,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;IAC9B;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,KAAK;8BAAuC,kBAAkB;;CAa1E,CAAC"}
1
+ {"version":3,"file":"ListItemImage.d.ts","sourceRoot":"","sources":["../../../../src/listItem/Image/ListItemImage.tsx"],"names":[],"mappings":"AAAA,OAAkB,EAAE,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AAMzD,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC,UAAU,EAAE,SAAS,GAAG,QAAQ,GAAG,IAAI,GAAG,KAAK,GAAG,MAAM,CAAC,GAAG;IAChG;;OAEG;IACH,IAAI,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;IAC9B;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,KAAK;yCAAkD,kBAAkB;;CAoBrF,CAAC"}
@@ -65,7 +65,7 @@ export type Props = {
65
65
  export declare const ListItem: {
66
66
  ({ as: ListItemElement, title, subtitle, additionalInfo, prompt, inverted, media, spotlight, valueTitle, valueSubtitle, control, disabled, className, valueColumnWidth, role, id, "aria-labelledby": ariaLabelledby, }: Props): import("react").JSX.Element;
67
67
  Image: {
68
- ({ alt, size, ...props }: import("./Image").ListItemImageProps): import("react").JSX.Element;
68
+ ({ alt, size, className, ...props }: import("./Image").ListItemImageProps): import("react").JSX.Element;
69
69
  displayName: string;
70
70
  };
71
71
  AvatarView: {
@@ -1 +1 @@
1
- {"version":3,"file":"ListItem.d.ts","sourceRoot":"","sources":["../../../src/listItem/ListItem.tsx"],"names":[],"mappings":"AACA,OAAO,EAML,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAIf,OAAO,EAAc,KAAK,uBAAuB,EAAE,MAAM,cAAc,CAAC;AACxE,OAAO,EAAY,KAAK,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAClE,OAAO,EAAc,KAAK,uBAAuB,EAAE,MAAM,cAAc,CAAC;AAExE,OAAO,EAAU,KAAK,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAC5D,OAAO,EAAS,KAAK,kBAAkB,EAAE,MAAM,SAAS,CAAC;AACzD,OAAO,EAAU,KAAK,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAQ5D,MAAM,MAAM,aAAa,GACrB,iBAAiB,GACjB,YAAY,GACZ,OAAO,GACP,UAAU,GACV,QAAQ,GACR,QAAQ,GACR,aAAa,CAAC;AAElB,MAAM,MAAM,oBAAoB,GAC5B,uBAAuB,GACvB,qBAAqB,GACrB,mBAAmB,GACnB,uBAAuB,GACvB,kBAAkB,GAClB,mBAAmB,CAAC;AAExB,MAAM,MAAM,KAAK,GAAG;IAClB,EAAE,CAAC,EAAE,IAAI,GAAG,KAAK,CAAC;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,QAAQ,GAAG,UAAU,CAAC;IAClC,KAAK,EAAE,SAAS,CAAC;IACjB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;OAGG;IACH,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B;;;;;OAKG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;;;;;;;OAQG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,QAAQ;4NAkBlB,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmNP,CAAC;AA0GF,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"ListItem.d.ts","sourceRoot":"","sources":["../../../src/listItem/ListItem.tsx"],"names":[],"mappings":"AACA,OAAO,EAOL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAIf,OAAO,EAAc,KAAK,uBAAuB,EAAE,MAAM,cAAc,CAAC;AACxE,OAAO,EAAY,KAAK,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAClE,OAAO,EAAc,KAAK,uBAAuB,EAAE,MAAM,cAAc,CAAC;AAExE,OAAO,EAAU,KAAK,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAC5D,OAAO,EAAS,KAAK,kBAAkB,EAAE,MAAM,SAAS,CAAC;AACzD,OAAO,EAAU,KAAK,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAY5D,MAAM,MAAM,aAAa,GACrB,iBAAiB,GACjB,YAAY,GACZ,OAAO,GACP,UAAU,GACV,QAAQ,GACR,QAAQ,GACR,aAAa,CAAC;AAElB,MAAM,MAAM,oBAAoB,GAC5B,uBAAuB,GACvB,qBAAqB,GACrB,mBAAmB,GACnB,uBAAuB,GACvB,kBAAkB,GAClB,mBAAmB,CAAC;AAExB,MAAM,MAAM,KAAK,GAAG;IAClB,EAAE,CAAC,EAAE,IAAI,GAAG,KAAK,CAAC;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,QAAQ,GAAG,UAAU,CAAC;IAClC,KAAK,EAAE,SAAS,CAAC;IACjB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;OAGG;IACH,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B;;;;;OAKG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;;;;;;;OAQG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,QAAQ;4NAkBlB,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4NP,CAAC;AAkGF,eAAe,QAAQ,CAAC"}
@@ -1,7 +1,10 @@
1
1
  import type { ListItemTypes, ListItemControlProps, Props as ListItemProps } from './ListItem';
2
+ import type { ListItemAvatarViewProps } from './AvatarView';
3
+ export type ListItemMediaSize = 32 | 40 | 48 | 56 | 72;
2
4
  export type ListItemContextData = {
3
5
  setControlType: (type: ListItemTypes) => void;
4
6
  setControlProps: (props: ListItemControlProps) => void;
7
+ setMediaSize: (size: ListItemMediaSize | undefined) => void;
5
8
  ids: {
6
9
  title: string;
7
10
  subtitle?: string;
@@ -12,6 +15,7 @@ export type ListItemContextData = {
12
15
  prompt?: string;
13
16
  };
14
17
  props: Pick<ListItemProps, 'disabled' | 'inverted'>;
18
+ mediaSize?: ListItemAvatarViewProps['size'];
15
19
  describedByIds: string;
16
20
  };
17
21
  export declare const ListItemContext: import("react").Context<ListItemContextData>;
@@ -1 +1 @@
1
- {"version":3,"file":"ListItemContext.d.ts","sourceRoot":"","sources":["../../../src/listItem/ListItemContext.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,oBAAoB,EAAE,KAAK,IAAI,aAAa,EAAE,MAAM,YAAY,CAAC;AAE9F,MAAM,MAAM,mBAAmB,GAAG;IAChC,cAAc,EAAE,CAAC,IAAI,EAAE,aAAa,KAAK,IAAI,CAAC;IAC9C,eAAe,EAAE,CAAC,KAAK,EAAE,oBAAoB,KAAK,IAAI,CAAC;IACvD,GAAG,EAAE;QACH,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,KAAK,EAAE,IAAI,CAAC,aAAa,EAAE,UAAU,GAAG,UAAU,CAAC,CAAC;IACpD,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,eAAe,8CAE3B,CAAC"}
1
+ {"version":3,"file":"ListItemContext.d.ts","sourceRoot":"","sources":["../../../src/listItem/ListItemContext.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,oBAAoB,EAAE,KAAK,IAAI,aAAa,EAAE,MAAM,YAAY,CAAC;AAC9F,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAC;AAE5D,MAAM,MAAM,iBAAiB,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;AAEvD,MAAM,MAAM,mBAAmB,GAAG;IAChC,cAAc,EAAE,CAAC,IAAI,EAAE,aAAa,KAAK,IAAI,CAAC;IAC9C,eAAe,EAAE,CAAC,KAAK,EAAE,oBAAoB,KAAK,IAAI,CAAC;IACvD,YAAY,EAAE,CAAC,IAAI,EAAE,iBAAiB,GAAG,SAAS,KAAK,IAAI,CAAC;IAC5D,GAAG,EAAE;QACH,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,KAAK,EAAE,IAAI,CAAC,aAAa,EAAE,UAAU,GAAG,UAAU,CAAC,CAAC;IACpD,SAAS,CAAC,EAAE,uBAAuB,CAAC,MAAM,CAAC,CAAC;IAC5C,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,eAAe,8CAE3B,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { type RenderResult } from '../test-utils';
2
+ export declare const mockSetControlType: jest.Mock<any, any, any>;
3
+ export declare const mockSetControlProps: jest.Mock<any, any, any>;
4
+ export declare const mockSetMediaSize: jest.Mock<any, any, any>;
5
+ export declare const renderWithListItemContext: (ui: React.ReactNode) => RenderResult;
6
+ export declare const clearListItemMocks: () => void;
7
+ //# sourceMappingURL=test-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test-utils.d.ts","sourceRoot":"","sources":["../../../src/listItem/test-utils.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,YAAY,EAAE,MAAM,eAAe,CAAC;AAG1D,eAAO,MAAM,kBAAkB,0BAAY,CAAC;AAC5C,eAAO,MAAM,mBAAmB,0BAAY,CAAC;AAC7C,eAAO,MAAM,gBAAgB,0BAAY,CAAC;AAE1C,eAAO,MAAM,yBAAyB,GAAI,IAAI,KAAK,CAAC,SAAS,KAAG,YAqB/D,CAAC;AAEF,eAAO,MAAM,kBAAkB,YAE9B,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { ListItemAvatarViewProps } from './AvatarView';
2
+ export declare function useListItemMedia(size?: ListItemAvatarViewProps['size']): {
3
+ mediaSize: 32 | 40 | 48 | 56 | 72 | undefined;
4
+ setMediaSize: (size: import("./ListItemContext").ListItemMediaSize | undefined) => void;
5
+ };
6
+ //# sourceMappingURL=useListItemMedia.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useListItemMedia.d.ts","sourceRoot":"","sources":["../../../src/listItem/useListItemMedia.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAC;AAE5D,wBAAgB,gBAAgB,CAAC,IAAI,CAAC,EAAE,uBAAuB,CAAC,MAAM,CAAC;;;EAQtE"}
@@ -16,7 +16,7 @@ export type SwitchProps = CommonProps & {
16
16
  /** ID to apply to the switch container */
17
17
  id?: string;
18
18
  /** Function called when the switch is toggled */
19
- onClick: (event?: MouseEvent<HTMLButtonElement>) => void;
19
+ onClick: (event?: MouseEvent<HTMLSpanElement>) => void;
20
20
  };
21
21
  declare const Switch: (props: SwitchProps) => import("react").JSX.Element;
22
22
  export default Switch;
@@ -1 +1 @@
1
- {"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/switch/Switch.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAwB,UAAU,EAAE,MAAM,OAAO,CAAC;AAE9D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAG7C,MAAM,MAAM,WAAW,GAAG,WAAW,GAAG;IACtC;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,yGAAyG;IACzG,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,yFAAyF;IACzF,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,2CAA2C;IAC3C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,0CAA0C;IAC1C,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,iDAAiD;IACjD,OAAO,EAAE,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;CAC1D,CAAC;AAEF,QAAA,MAAM,MAAM,GAAI,OAAO,WAAW,gCA0CjC,CAAC;AAEF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/switch/Switch.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAwB,UAAU,EAAE,MAAM,OAAO,CAAC;AAE9D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAG7C,MAAM,MAAM,WAAW,GAAG,WAAW,GAAG;IACtC;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,yGAAyG;IACzG,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,yFAAyF;IACzF,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,2CAA2C;IAC3C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,0CAA0C;IAC1C,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,iDAAiD;IACjD,OAAO,EAAE,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,eAAe,CAAC,KAAK,IAAI,CAAC;CACxD,CAAC;AAEF,QAAA,MAAM,MAAM,GAAI,OAAO,WAAW,gCA0CjC,CAAC;AAEF,eAAe,MAAM,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transferwise/components",
3
- "version": "0.0.0-experimental-a12c97e",
3
+ "version": "0.0.0-experimental-302d967",
4
4
  "description": "Neptune React components",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -85,8 +85,8 @@
85
85
  "storybook-addon-test-codegen": "^2.0.1",
86
86
  "@transferwise/less-config": "3.1.2",
87
87
  "@transferwise/neptune-css": "14.24.5",
88
- "@wise/wds-configs": "0.0.0",
89
- "@wise/components-theming": "1.6.4"
88
+ "@wise/components-theming": "1.6.4",
89
+ "@wise/wds-configs": "0.0.0"
90
90
  },
91
91
  "peerDependencies": {
92
92
  "@transferwise/icons": "^3.22.3",
@@ -19,8 +19,7 @@
19
19
  right: 0;
20
20
  }
21
21
  .np-avatar-view .np-avatar-view-content {
22
- color: #37517e;
23
- color: var(--color-content-primary);
22
+ color: var(--color-interactive-primary);
24
23
  }
25
24
  .np-avatar-view-interactive {
26
25
  cursor: pointer;
@@ -28,7 +27,6 @@
28
27
  .np-avatar-view-interactive .np-circle {
29
28
  background-color: rgba(134,167,189,0.10196);
30
29
  background-color: var(--color-background-neutral);
31
- color: var(--color-interactive-primary);
32
30
  }
33
31
  .np-avatar-view-non-interactive .np-circle {
34
32
  background-color: transparent;
@@ -2,14 +2,13 @@
2
2
 
3
3
  .np-avatar-view {
4
4
  .np-avatar-view-content {
5
- color: var(--color-content-primary);
5
+ color: var(--color-interactive-primary);
6
6
  }
7
7
 
8
8
  &-interactive {
9
9
  cursor: pointer;
10
10
  .np-circle {
11
11
  background-color: var(--color-background-neutral);
12
- color: var(--color-interactive-primary);
13
12
  }
14
13
  }
15
14
 
@@ -1,5 +1,4 @@
1
1
  import { Meta, StoryObj } from '@storybook/react-webpack5';
2
- import { fn } from 'storybook/test';
3
2
  import { action } from 'storybook/actions';
4
3
  import { lorem20 } from '../../test-utils';
5
4
  import { ListItem } from '../ListItem';
@@ -7,7 +6,6 @@ import {
7
6
  SB_LIST_ITEM_CONTROLS as CONTROLS,
8
7
  SB_LIST_ITEM_MEDIA as MEDIA,
9
8
  } from '../_stories/subcomponents';
10
- import { disableControls } from '../_stories/helpers';
11
9
  import type { ListItemAdditionalInfoProps } from './ListItemAdditionalInfo';
12
10
 
13
11
  /**
@@ -24,6 +22,11 @@ export default {
24
22
  },
25
23
  },
26
24
  args: {
25
+ action: {
26
+ label: 'Details about the subject.',
27
+ href: 'https://wise.com',
28
+ target: '_blank',
29
+ },
27
30
  children: lorem20,
28
31
  },
29
32
  argTypes: {
@@ -32,72 +35,21 @@ export default {
32
35
  type: { summary: 'ReactNode' },
33
36
  },
34
37
  },
35
- action: {
36
- table: {
37
- type: { summary: `{ label: string } & Pick<LinkProps, 'href' | 'onClick' | 'target'>` },
38
- },
39
- },
40
38
  },
41
39
  } satisfies Meta<ListItemAdditionalInfoProps>;
42
40
 
43
41
  type Story = StoryObj<ListItemAdditionalInfoProps>;
44
42
 
45
- /**
46
- * Convenience controls for previewing rich markup,
47
- * not otherwise possible via Storybook
48
- */
49
- type PreviewStoryArgs = ListItemAdditionalInfoProps & {
50
- previewAction?: string | ListItemAdditionalInfoProps['action'];
51
- };
52
-
53
- const previewArgGroup = {
54
- category: 'Preview options',
55
- type: {
56
- summary: undefined,
57
- },
58
- };
59
-
60
- const previewArgTypes = {
61
- previewAction: {
62
- name: 'Preview `action`',
63
- control: 'radio',
64
- options: ['unset (undefined)', 'link', 'button'],
65
- mapping: {
66
- 'unset (undefined)': undefined,
67
- link: {
68
- label: 'Details about the subject.',
69
- href: 'https://wise.com',
70
- target: '_blank',
71
- },
72
- button: {
73
- label: 'Details about the subject.',
74
- onClick: fn(),
75
- },
76
- },
77
- table: previewArgGroup,
78
- },
79
- } as const;
80
-
81
- export const Playground: StoryObj<PreviewStoryArgs> = {
43
+ export const Playground: Story = {
82
44
  tags: ['!autodocs'],
83
- argTypes: previewArgTypes,
84
- args: {
85
- children: lorem20,
86
- previewAction: 'link',
87
- },
88
- render: (args: PreviewStoryArgs) => {
89
- const { previewAction, ...props } = args as {
90
- previewAction: ListItemAdditionalInfoProps['action'];
91
- props: ListItemAdditionalInfoProps;
92
- };
93
-
45
+ render: (args: ListItemAdditionalInfoProps) => {
94
46
  return (
95
47
  <ListItem
96
48
  title="List item title"
97
49
  subtitle="Subtitle goes here"
98
50
  media={MEDIA.avatarSingle}
99
51
  control={CONTROLS.partialButton}
100
- additionalInfo={<ListItem.AdditionalInfo {...props} action={previewAction} />}
52
+ additionalInfo={<ListItem.AdditionalInfo {...args} />}
101
53
  />
102
54
  );
103
55
  },
@@ -116,7 +68,6 @@ export const Interactivity: Story = {
116
68
  target: '_blank',
117
69
  },
118
70
  },
119
- argTypes: disableControls()(['action']),
120
71
  render: (args: ListItemAdditionalInfoProps) => {
121
72
  return (
122
73
  <ol className="list-unstyled">
@@ -151,7 +102,6 @@ export const Interactivity: Story = {
151
102
  * Interactive `ListItem.AdditionalInfo` allows for 2 types of actions: a link or a button.
152
103
  */
153
104
  export const Actions: Story = {
154
- argTypes: disableControls()(['action']),
155
105
  render: (args: ListItemAdditionalInfoProps) => {
156
106
  return (
157
107
  <ol className="list-unstyled">