@transferwise/components 0.0.0-experimental-b2d320f → 0.0.0-experimental-fe0caa4

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 (198) hide show
  1. package/build/common/{card/Card.js → baseCard/BaseCard.js} +4 -4
  2. package/build/common/baseCard/BaseCard.js.map +1 -0
  3. package/build/common/{card/Card.mjs → baseCard/BaseCard.mjs} +4 -4
  4. package/build/common/baseCard/BaseCard.mjs.map +1 -0
  5. package/build/index.js +4 -4
  6. package/build/index.mjs +1 -1
  7. package/build/main.css +1387 -1277
  8. package/build/promoCard/PromoCard.js +2 -2
  9. package/build/promoCard/PromoCard.js.map +1 -1
  10. package/build/promoCard/PromoCard.mjs +2 -2
  11. package/build/promoCard/PromoCard.mjs.map +1 -1
  12. package/build/styles/accordion/Accordion.css +26 -19
  13. package/build/styles/actionButton/ActionButton.css +8 -6
  14. package/build/styles/alert/Alert.css +2 -2
  15. package/build/styles/avatar/Avatar.css +65 -65
  16. package/build/styles/avatarLayout/AvatarLayout.css +11 -11
  17. package/build/styles/avatarView/AvatarView.css +3 -3
  18. package/build/styles/avatarView/Dot.css +3 -3
  19. package/build/styles/badge/Badge.css +11 -10
  20. package/build/styles/button/Button.css +6 -6
  21. package/build/styles/button/LegacyButton.css +7 -7
  22. package/build/styles/card/Card.css +32 -16
  23. package/build/styles/carousel/Carousel.css +29 -27
  24. package/build/styles/checkboxButton/CheckboxButton.css +13 -13
  25. package/build/styles/chips/Chip.css +31 -27
  26. package/build/styles/common/Option/Option.css +44 -42
  27. package/build/styles/common/{card/Card.css → baseCard/BaseCard.css} +5 -5
  28. package/build/styles/common/bottomSheet/BottomSheet.css +35 -18
  29. package/build/styles/common/circle/Circle.css +10 -10
  30. package/build/styles/common/closeButton/CloseButton.css +36 -36
  31. package/build/styles/common/panel/Panel.css +7 -7
  32. package/build/styles/criticalBanner/CriticalCommsBanner.css +6 -6
  33. package/build/styles/dateInput/DateInput.css +4 -4
  34. package/build/styles/dateLookup/DateLookup.css +11 -9
  35. package/build/styles/dateLookup/dateTrigger/DateTrigger.css +13 -13
  36. package/build/styles/definitionList/DefinitionList.css +12 -12
  37. package/build/styles/dimmer/Dimmer.css +15 -15
  38. package/build/styles/divider/Divider.css +8 -7
  39. package/build/styles/drawer/Drawer.css +19 -15
  40. package/build/styles/dropFade/DropFade.css +2 -2
  41. package/build/styles/expressiveMoneyInput/ExpressiveMoneyInput.css +11 -11
  42. package/build/styles/expressiveMoneyInput/amountInput/AmountInput.css +4 -4
  43. package/build/styles/expressiveMoneyInput/chevron/Chevron.css +5 -5
  44. package/build/styles/field/Field.css +5 -5
  45. package/build/styles/flowNavigation/FlowNavigation.css +29 -28
  46. package/build/styles/flowNavigation/animatedLabel/AnimatedLabel.css +5 -5
  47. package/build/styles/header/Header.css +12 -9
  48. package/build/styles/image/Image.css +7 -7
  49. package/build/styles/info/Info.css +1 -1
  50. package/build/styles/inputs/Input.css +25 -25
  51. package/build/styles/inputs/InputGroup.css +9 -9
  52. package/build/styles/inputs/SelectInput.css +55 -47
  53. package/build/styles/inputs/TextArea.css +27 -27
  54. package/build/styles/instructionsList/InstructionsList.css +5 -5
  55. package/build/styles/legacylistItem/LegacyListItem.css +1 -1
  56. package/build/styles/link/Link.css +6 -6
  57. package/build/styles/listItem/ListItem.css +39 -35
  58. package/build/styles/listItem/ListItem.grid.css +7 -7
  59. package/build/styles/loader/Loader.css +30 -30
  60. package/build/styles/main.css +1387 -1277
  61. package/build/styles/modal/Modal.css +18 -16
  62. package/build/styles/moneyInput/MoneyInput.css +16 -16
  63. package/build/styles/navigationOption/NavigationOption.css +9 -9
  64. package/build/styles/navigationOptionsList/NavigationOptionsList.css +6 -6
  65. package/build/styles/nudge/Nudge.css +72 -70
  66. package/build/styles/overlayHeader/OverlayHeader.css +7 -6
  67. package/build/styles/phoneNumberInput/PhoneNumberInput.css +7 -7
  68. package/build/styles/popover/Popover.css +14 -10
  69. package/build/styles/progress/Progress.css +3 -3
  70. package/build/styles/progressBar/ProgressBar.css +4 -4
  71. package/build/styles/promoCard/PromoCard.css +36 -35
  72. package/build/styles/prompt/ActionPrompt/ActionPrompt.css +8 -8
  73. package/build/styles/prompt/InfoPrompt/InfoPrompt.css +7 -7
  74. package/build/styles/prompt/InlinePrompt/InlinePrompt.css +6 -6
  75. package/build/styles/prompt/PrimitivePrompt/PrimitivePrompt.css +6 -6
  76. package/build/styles/radioGroup/RadioGroup.css +1 -1
  77. package/build/styles/section/Section.css +6 -6
  78. package/build/styles/segmentedControl/SegmentedControl.css +19 -15
  79. package/build/styles/select/Select.css +80 -76
  80. package/build/styles/slidingPanel/SlidingPanel.css +21 -21
  81. package/build/styles/snackbar/Snackbar.css +31 -27
  82. package/build/styles/stepper/Stepper.css +8 -8
  83. package/build/styles/summary/Summary.css +26 -26
  84. package/build/styles/switch/Switch.css +5 -4
  85. package/build/styles/table/Table.css +60 -57
  86. package/build/styles/tabs/Tabs.css +20 -14
  87. package/build/styles/tile/Tile.css +12 -12
  88. package/build/styles/tooltip/Tooltip.css +2 -2
  89. package/build/styles/typeahead/Typeahead.css +48 -48
  90. package/build/styles/upload/Upload.css +11 -10
  91. package/build/styles/uploadInput/UploadInput.css +4 -4
  92. package/build/styles/uploadInput/uploadButton/UploadButton.css +20 -19
  93. package/build/styles/uploadInput/uploadItem/UploadItem.css +46 -44
  94. package/build/types/common/{card/Card.d.ts → baseCard/BaseCard.d.ts} +8 -8
  95. package/build/types/common/baseCard/BaseCard.d.ts.map +1 -0
  96. package/build/types/common/baseCard/index.d.ts +3 -0
  97. package/build/types/common/baseCard/index.d.ts.map +1 -0
  98. package/build/types/index.d.ts +1 -1
  99. package/build/types/index.d.ts.map +1 -1
  100. package/build/types/promoCard/PromoCard.d.ts +3 -3
  101. package/build/types/promoCard/PromoCard.d.ts.map +1 -1
  102. package/package.json +1 -1
  103. package/src/accordion/Accordion.css +26 -19
  104. package/src/actionButton/ActionButton.css +8 -6
  105. package/src/alert/Alert.css +2 -2
  106. package/src/avatar/Avatar.css +65 -65
  107. package/src/avatarLayout/AvatarLayout.css +11 -11
  108. package/src/avatarView/AvatarView.css +3 -3
  109. package/src/avatarView/Dot.css +3 -3
  110. package/src/badge/Badge.css +11 -10
  111. package/src/button/Button.css +6 -6
  112. package/src/button/LegacyButton.css +7 -7
  113. package/src/card/Card.css +32 -16
  114. package/src/carousel/Carousel.css +29 -27
  115. package/src/checkboxButton/CheckboxButton.css +13 -13
  116. package/src/chips/Chip.css +31 -27
  117. package/src/common/Option/Option.css +44 -42
  118. package/src/common/{card/Card.css → baseCard/BaseCard.css} +5 -5
  119. package/src/common/{card/Card.less → baseCard/BaseCard.less} +1 -1
  120. package/src/common/{card/Card.story.tsx → baseCard/BaseCard.story.tsx} +5 -5
  121. package/src/common/{card/Card.test.tsx → baseCard/BaseCard.test.tsx} +11 -12
  122. package/src/common/{card/Card.tsx → baseCard/BaseCard.tsx} +9 -9
  123. package/src/common/baseCard/index.ts +2 -0
  124. package/src/common/bottomSheet/BottomSheet.css +35 -18
  125. package/src/common/circle/Circle.css +10 -10
  126. package/src/common/closeButton/CloseButton.css +36 -36
  127. package/src/common/panel/Panel.css +7 -7
  128. package/src/criticalBanner/CriticalCommsBanner.css +6 -6
  129. package/src/dateInput/DateInput.css +4 -4
  130. package/src/dateLookup/DateLookup.css +11 -9
  131. package/src/dateLookup/dateTrigger/DateTrigger.css +13 -13
  132. package/src/definitionList/DefinitionList.css +12 -12
  133. package/src/dimmer/Dimmer.css +15 -15
  134. package/src/divider/Divider.css +8 -7
  135. package/src/drawer/Drawer.css +19 -15
  136. package/src/dropFade/DropFade.css +2 -2
  137. package/src/expressiveMoneyInput/ExpressiveMoneyInput.css +11 -11
  138. package/src/expressiveMoneyInput/amountInput/AmountInput.css +4 -4
  139. package/src/expressiveMoneyInput/chevron/Chevron.css +5 -5
  140. package/src/field/Field.css +5 -5
  141. package/src/flowNavigation/FlowNavigation.css +29 -28
  142. package/src/flowNavigation/animatedLabel/AnimatedLabel.css +5 -5
  143. package/src/header/Header.css +12 -9
  144. package/src/image/Image.css +7 -7
  145. package/src/index.ts +1 -1
  146. package/src/info/Info.css +1 -1
  147. package/src/inputs/Input.css +25 -25
  148. package/src/inputs/InputGroup.css +9 -9
  149. package/src/inputs/SelectInput.css +55 -47
  150. package/src/inputs/TextArea.css +27 -27
  151. package/src/instructionsList/InstructionsList.css +5 -5
  152. package/src/legacylistItem/LegacyListItem.css +1 -1
  153. package/src/link/Link.css +6 -6
  154. package/src/listItem/ListItem.css +39 -35
  155. package/src/listItem/ListItem.grid.css +7 -7
  156. package/src/loader/Loader.css +30 -30
  157. package/src/main.css +1387 -1277
  158. package/src/main.less +2 -2
  159. package/src/modal/Modal.css +18 -16
  160. package/src/moneyInput/MoneyInput.css +16 -16
  161. package/src/navigationOption/NavigationOption.css +9 -9
  162. package/src/navigationOptionsList/NavigationOptionsList.css +6 -6
  163. package/src/nudge/Nudge.css +72 -70
  164. package/src/overlayHeader/OverlayHeader.css +7 -6
  165. package/src/phoneNumberInput/PhoneNumberInput.css +7 -7
  166. package/src/popover/Popover.css +14 -10
  167. package/src/progress/Progress.css +3 -3
  168. package/src/progressBar/ProgressBar.css +4 -4
  169. package/src/promoCard/PromoCard.css +36 -35
  170. package/src/promoCard/PromoCard.tsx +6 -5
  171. package/src/prompt/ActionPrompt/ActionPrompt.css +8 -8
  172. package/src/prompt/InfoPrompt/InfoPrompt.css +7 -7
  173. package/src/prompt/InlinePrompt/InlinePrompt.css +6 -6
  174. package/src/prompt/PrimitivePrompt/PrimitivePrompt.css +6 -6
  175. package/src/radioGroup/RadioGroup.css +1 -1
  176. package/src/section/Section.css +6 -6
  177. package/src/segmentedControl/SegmentedControl.css +19 -15
  178. package/src/select/Select.css +80 -76
  179. package/src/slidingPanel/SlidingPanel.css +21 -21
  180. package/src/snackbar/Snackbar.css +31 -27
  181. package/src/stepper/Stepper.css +8 -8
  182. package/src/summary/Summary.css +26 -26
  183. package/src/switch/Switch.css +5 -4
  184. package/src/table/Table.css +60 -57
  185. package/src/tabs/Tabs.css +20 -14
  186. package/src/tile/Tile.css +12 -12
  187. package/src/tooltip/Tooltip.css +2 -2
  188. package/src/typeahead/Typeahead.css +48 -48
  189. package/src/upload/Upload.css +11 -10
  190. package/src/uploadInput/UploadInput.css +4 -4
  191. package/src/uploadInput/uploadButton/UploadButton.css +20 -19
  192. package/src/uploadInput/uploadItem/UploadItem.css +46 -44
  193. package/build/common/card/Card.js.map +0 -1
  194. package/build/common/card/Card.mjs.map +0 -1
  195. package/build/types/common/card/Card.d.ts.map +0 -1
  196. package/build/types/common/card/index.d.ts +0 -3
  197. package/build/types/common/card/index.d.ts.map +0 -1
  198. package/src/common/card/index.ts +0 -2
@@ -1,8 +1,8 @@
1
1
  .np-tile {
2
- min-width: 120px;
2
+ min-inline-size: 120px;
3
3
  border-radius: 10px;
4
4
  border-radius: var(--radius-small);
5
- width: 100%;
5
+ inline-size: 100%;
6
6
  }
7
7
  .np-theme-personal .np-tile {
8
8
  background-color: rgba(134,167,189,0.10196);
@@ -12,7 +12,7 @@
12
12
  background-color: var(--color-contrast);
13
13
  }
14
14
  .np-tile.decision {
15
- margin-top: 0;
15
+ margin-block-start: 0;
16
16
  border: 1px solid rgba(0,0,0,0.10196);
17
17
  border: 1px solid var(--color-border-neutral);
18
18
  }
@@ -30,24 +30,24 @@
30
30
  color: var(--color-content-secondary);
31
31
  }
32
32
  .np-tile.np-decision__tile--fixed-width {
33
- width: 300px;
33
+ inline-size: 300px;
34
34
  }
35
35
  .np-tile__media {
36
- width: 100%;
36
+ inline-size: 100%;
37
37
  }
38
38
  .np-tile__description {
39
39
  color: #5d7079;
40
40
  color: var(--color-content-secondary);
41
- margin-top: 12px;
42
- margin-top: var(--size-12);
41
+ margin-block-start: 12px;
42
+ margin-block-start: var(--size-12);
43
43
  display: inline-block;
44
44
  }
45
45
  .np-tile--small.np-decision__tile--fixed-width {
46
- width: 260px;
46
+ inline-size: 260px;
47
47
  }
48
48
  .np-tile--small .np-tile__description {
49
- margin-top: 4px;
50
- margin-top: var(--size-4);
49
+ margin-block-start: 4px;
50
+ margin-block-start: var(--size-4);
51
51
  }
52
52
  .np-tile:hover .tw-avatar {
53
53
  pointer-events: none;
@@ -63,6 +63,6 @@
63
63
  font-weight: var(--font-weight-regular);
64
64
  line-height: 1.5;
65
65
  line-height: var(--line-height-body);
66
- margin-top: 12px;
67
- margin-top: var(--size-12);
66
+ margin-block-start: 12px;
67
+ margin-block-start: var(--size-12);
68
68
  }
@@ -43,8 +43,8 @@
43
43
  visibility: initial;
44
44
  }
45
45
  .np-panel[data-popper-placement^="right"] > .np-panel__content.tooltip-inner .np-panel__arrow {
46
- left: -7px;
46
+ inset-inline-start: -7px;
47
47
  }
48
48
  .np-panel[data-popper-placement^="left"] > .np-panel__content.tooltip-inner .np-panel__arrow {
49
- right: -7px;
49
+ inset-inline-end: -7px;
50
50
  }
@@ -5,8 +5,8 @@
5
5
  display: block;
6
6
  }
7
7
  .typeahead .dropdown-menu {
8
- max-width: 100%;
9
- width: 100%;
8
+ max-inline-size: 100%;
9
+ inline-size: 100%;
10
10
  }
11
11
  .np-theme-personal--forest-green .typeahead .dropdown-menu,
12
12
  .np-theme-personal--bright-green .typeahead .dropdown-menu,
@@ -15,7 +15,7 @@
15
15
  background-color: var(--color-background-elevated);
16
16
  }
17
17
  .typeahead--multiple .np-chip {
18
- margin-bottom: auto;
18
+ margin-block-end: auto;
19
19
  animation-name: slide;
20
20
  animation-duration: 0.03s;
21
21
  animation-timing-function: ease-in-out;
@@ -29,10 +29,10 @@
29
29
  animation-timing-function: ease-in-out;
30
30
  }
31
31
  .typeahead--multiple .form-control {
32
- height: auto;
33
- min-height: auto;
34
- padding-top: 0;
35
- padding-bottom: 0;
32
+ block-size: auto;
33
+ min-block-size: auto;
34
+ padding-block-start: 0;
35
+ padding-block-end: 0;
36
36
  overflow: auto;
37
37
  }
38
38
  .typeahead--multiple .typeahead__input {
@@ -43,9 +43,9 @@
43
43
  padding: 0;
44
44
  }
45
45
  .typeahead--multiple .typeahead__input-aligner {
46
- height: 40px;
46
+ block-size: 40px;
47
47
  display: inline-block;
48
- width: 0;
48
+ inline-size: 0;
49
49
  }
50
50
  .typeahead--multiple .typeahead__input-container {
51
51
  cursor: text;
@@ -55,84 +55,84 @@
55
55
  white-space: pre;
56
56
  position: absolute;
57
57
  visibility: hidden;
58
- width: auto;
58
+ inline-size: auto;
59
59
  }
60
60
  .typeahead--multiple.typeahead--has-value .typeahead__input-container {
61
- padding-left: 8px;
62
- padding-left: var(--size-8);
61
+ padding-inline-start: 8px;
62
+ padding-inline-start: var(--size-8);
63
63
  }
64
64
  [dir="rtl"] .typeahead--multiple.typeahead--has-value .typeahead__input-container {
65
- padding-right: 8px;
66
- padding-right: var(--size-8);
67
- padding-left: 0;
68
- padding-left: initial;
65
+ padding-inline-end: 8px;
66
+ padding-inline-end: var(--size-8);
67
+ padding-inline-start: 0;
68
+ padding-inline-start: initial;
69
69
  }
70
70
  .typeahead--multiple.typeahead--has-value .input-group-addon + .typeahead__input-container {
71
- padding-left: 0;
71
+ padding-inline-start: 0;
72
72
  }
73
73
  .typeahead--multiple.typeahead--has-value .typeahead__input {
74
- margin-bottom: calc(-1 * 8px + 1px);
75
- margin-bottom: calc(-1 * var(--size-8) + 1px);
76
- margin-left: 4px;
77
- margin-left: var(--size-4);
74
+ margin-block-end: calc(-1 * 8px + 1px);
75
+ margin-block-end: calc(-1 * var(--size-8) + 1px);
76
+ margin-inline-start: 4px;
77
+ margin-inline-start: var(--size-4);
78
78
  }
79
79
  [dir="rtl"] .typeahead--multiple.typeahead--has-value .typeahead__input {
80
- margin-right: 4px;
81
- margin-right: var(--size-4);
82
- margin-left: 0;
83
- margin-left: initial;
80
+ margin-inline-end: 4px;
81
+ margin-inline-end: var(--size-4);
82
+ margin-inline-start: 0;
83
+ margin-inline-start: initial;
84
84
  }
85
85
  .typeahead--multiple.typeahead--has-value .typeahead__input-wrapper::after {
86
86
  content: "";
87
- height: calc(8px - 1);
88
- height: calc(var(--size-8) - 1);
89
- width: 100%;
87
+ block-size: calc(8px - 1);
88
+ block-size: calc(var(--size-8) - 1);
89
+ inline-size: 100%;
90
90
  }
91
91
  .typeahead__input-wrapper {
92
- width: 100%;
93
- margin-top: -1px;
92
+ inline-size: 100%;
93
+ margin-block-start: -1px;
94
94
  display: flex;
95
95
  flex-wrap: wrap;
96
96
  flex: 1;
97
97
  align-items: center;
98
98
  }
99
99
  .np-theme-personal .typeahead__input-wrapper {
100
- margin-top: 0;
100
+ margin-block-start: 0;
101
101
  }
102
102
  .typeahead--empty.typeahead--multiple .typeahead__input-wrapper {
103
103
  padding: 0;
104
104
  margin: 0;
105
105
  }
106
106
  .typeahead--prompt {
107
- margin-top: 4px;
108
- margin-top: var(--size-4);
107
+ margin-block-start: 4px;
108
+ margin-block-start: var(--size-4);
109
109
  }
110
110
  .typeahead-sm.typeahead--multiple .typeahead__input-container {
111
- min-height: 32px;
111
+ min-block-size: 32px;
112
112
  }
113
113
  .typeahead-sm.typeahead--multiple .typeahead__input {
114
- padding-top: 0;
114
+ padding-block-start: 0;
115
115
  }
116
116
  .typeahead-md.typeahead--multiple .typeahead__input-container {
117
- min-height: var(--input-height-base);
117
+ min-block-size: var(--input-height-base);
118
118
  }
119
119
  .typeahead-lg.typeahead--multiple .typeahead__input-container {
120
- min-height: var(--input-height-large);
120
+ min-block-size: var(--input-height-large);
121
121
  }
122
122
  .typeahead-lg.typeahead--multiple .typeahead__input {
123
- padding-top: calc(8px - 1);
124
- padding-top: calc(var(--size-8) - 1);
123
+ padding-block-start: calc(8px - 1);
124
+ padding-block-start: calc(var(--size-8) - 1);
125
125
  }
126
126
  .typeahead-lg.typeahead--multiple .typeahead__input-wrapper {
127
- padding-bottom: 8px;
128
- padding-bottom: var(--size-8);
127
+ padding-block-end: 8px;
128
+ padding-block-end: var(--size-8);
129
129
  margin: 0;
130
130
  }
131
131
  .typeahead-lg.typeahead--multiple .typeahead__input-wrapper::after {
132
132
  content: none;
133
133
  }
134
134
  .typeahead-lg.typeahead--multiple .np-chip {
135
- margin-bottom: 0;
135
+ margin-block-end: 0;
136
136
  }
137
137
  @keyframes slide {
138
138
  from {
@@ -161,7 +161,7 @@
161
161
  @media (max-width: 575px) {
162
162
  .typeahead .dropdown.open .dropdown-menu {
163
163
  position: absolute;
164
- bottom: auto;
164
+ inset-block-end: auto;
165
165
  overflow: scroll;
166
166
  }
167
167
  }
@@ -173,15 +173,15 @@
173
173
  color: var(--color-interactive-secondary);
174
174
  }
175
175
  .np-theme-personal .typeahead .np-chip {
176
- margin-top: 9px !important;
176
+ margin-block-start: 9px !important;
177
177
  }
178
178
  .np-theme-personal .typeahead .np-chip--removable .np-text-body-default-bold {
179
- padding-right: 16px;
180
- padding-right: var(--size-16);
179
+ padding-inline-end: 16px;
180
+ padding-inline-end: var(--size-16);
181
181
  }
182
182
  @media (max-width: 320px) {
183
183
  .np-theme-personal .typeahead .np-chip--removable .np-text-body-default-bold {
184
- padding-right: 32px;
185
- padding-right: var(--size-32);
184
+ padding-inline-end: 32px;
185
+ padding-inline-end: var(--size-32);
186
186
  }
187
187
  }
@@ -1,17 +1,17 @@
1
1
  .tw-droppable-lg {
2
- min-height: 346px;
2
+ min-block-size: 346px;
3
3
  }
4
4
  .tw-droppable-lg .thumbnail {
5
- max-height: 72px;
5
+ max-block-size: 72px;
6
6
  }
7
7
  .tw-droppable-md {
8
- min-height: 315px;
8
+ min-block-size: 315px;
9
9
  }
10
10
  .tw-droppable-md .thumbnail {
11
- max-height: 72px;
11
+ max-block-size: 72px;
12
12
  }
13
13
  .tw-droppable-sm {
14
- min-height: 245px;
14
+ min-block-size: 245px;
15
15
  }
16
16
  .tw-droppable-lg .btn:focus-visible,
17
17
  .tw-droppable-md .btn:focus-visible,
@@ -20,14 +20,15 @@
20
20
  outline-offset: var(--ring-outline-offset);
21
21
  }
22
22
  .upload-error-message {
23
- margin-top: 24px;
24
- margin-top: var(--padding-medium);
25
- border-top: 1px solid rgba(0,0,0,0.10196);
26
- border-top: 1px solid var(--color-border-neutral);
23
+ margin-block-start: 24px;
24
+ margin-block-start: var(--padding-medium);
25
+ border-block-start: 1px solid rgba(0,0,0,0.10196);
26
+ border-block-start: 1px solid #0000001a;
27
+ border-block-start: 1px solid var(--color-border-neutral);
27
28
  text-align: start;
28
29
  }
29
30
  .upload-error-message .alert {
30
- min-width: 100px;
31
+ min-inline-size: 100px;
31
32
  }
32
33
  .np-theme-personal .droppable-dropping .droppable-complete-card {
33
34
  display: none;
@@ -9,10 +9,10 @@
9
9
  .np-upload-input .np-upload-input__section:only-child .np-upload-input__item {
10
10
  border-radius: 10px;
11
11
  border-radius: var(--radius-small);
12
- border-bottom: var(--outerBorder);
12
+ border-block-end: var(--outerBorder);
13
13
  }
14
14
  .np-upload-input .np-upload-input__section:has(.np-upload-input__item:last-child.is-interactive:hover):not(:has(.np-upload-input__item-button:hover)) + .np-upload-input__section--uploader .np-upload-input__upload-button::before {
15
- left: 0;
16
- width: 100%;
17
- top: 0;
15
+ inset-inline-start: 0;
16
+ inline-size: 100%;
17
+ inset-block-start: 0;
18
18
  }
@@ -5,10 +5,10 @@
5
5
  display: flex;
6
6
  align-items: center;
7
7
  margin: 0;
8
- border-bottom-left-radius: 10px;
9
- border-bottom-left-radius: var(--radius-small);
10
- border-bottom-right-radius: 10px;
11
- border-bottom-right-radius: var(--radius-small);
8
+ border-end-start-radius: 10px;
9
+ border-end-start-radius: var(--radius-small);
10
+ border-end-end-radius: 10px;
11
+ border-end-end-radius: var(--radius-small);
12
12
  border: var(--outerBorder);
13
13
  cursor: pointer;
14
14
  }
@@ -19,12 +19,12 @@
19
19
  text-underline-offset: 0.3em;
20
20
  }
21
21
  .np-upload-input__upload-button .np-upload-input__title + .np-upload-input__text {
22
- margin-top: 4px;
23
- margin-top: var(--size-4);
22
+ margin-block-start: 4px;
23
+ margin-block-start: var(--size-4);
24
24
  }
25
25
  .np-upload-input__upload-button .np-upload-input__icon {
26
- padding-right: 16px;
27
- padding-right: var(--size-16);
26
+ padding-inline-end: 16px;
27
+ padding-inline-end: var(--size-16);
28
28
  color: var(--color-interactive-primary);
29
29
  }
30
30
  .np-upload-input__upload-button.is-dropping .np-upload-input__icon,
@@ -47,29 +47,30 @@
47
47
  .np-upload-input__upload-button .np-upload-input__drop-file-overlay {
48
48
  display: flex;
49
49
  flex: 1;
50
- padding: 13px 0 !important;
50
+ padding-block: 13px !important;
51
+ padding-inline: 0;
51
52
  background-color: transparent;
52
53
  transition: transform 0.3s ease;
53
54
  position: relative;
54
55
  }
55
56
  .np-upload-input__upload-button--with-entries {
56
- border-top-width: 0;
57
+ border-block-start-width: 0;
57
58
  }
58
59
  .np-upload-input__upload-button--with-entries:before {
59
60
  display: block;
60
61
  position: absolute;
61
- height: 1px;
62
+ block-size: 1px;
62
63
  background-color: rgba(0,0,0,0.10196);
63
64
  background-color: var(--color-border-neutral);
64
65
  content: " ";
65
- left: 16px;
66
- left: var(--size-16);
67
- width: calc(100% - 2 * 16px);
68
- width: calc(100% - 2 * var(--size-16));
69
- top: 0;
66
+ inset-inline-start: 16px;
67
+ inset-inline-start: var(--size-16);
68
+ inline-size: calc(100% - 2 * 16px);
69
+ inline-size: calc(100% - 2 * var(--size-16));
70
+ inset-block-start: 0;
70
71
  }
71
72
  .np-upload-input__upload-button--without-entries {
72
- border-top: var(--outerBorder);
73
+ border-block-start: var(--outerBorder);
73
74
  border-radius: 10px;
74
75
  border-radius: var(--radius-small);
75
76
  }
@@ -82,8 +83,8 @@
82
83
  .np-upload-input__upload-button--enabled.is-dropping:before,
83
84
  .np-upload-input__upload-button--enabled:hover:before,
84
85
  .np-upload-input__upload-button--enabled:active:before {
85
- width: 100%;
86
- left: 0;
86
+ inline-size: 100%;
87
+ inset-inline-start: 0;
87
88
  }
88
89
  .np-upload-input__upload-button--disabled {
89
90
  cursor: inherit;
@@ -4,38 +4,38 @@
4
4
  padding: var(--size-16);
5
5
  display: flex;
6
6
  align-items: flex-start;
7
- border-left: var(--outerBorder);
8
- border-right: var(--outerBorder);
7
+ border-inline-start: var(--outerBorder);
8
+ border-inline-end: var(--outerBorder);
9
9
  }
10
10
  .np-upload-input__item:first-child {
11
- border-top: var(--outerBorder);
12
- border-top-left-radius: 10px;
13
- border-top-left-radius: var(--radius-small);
14
- border-top-right-radius: 10px;
15
- border-top-right-radius: var(--radius-small);
11
+ border-block-start: var(--outerBorder);
12
+ border-start-start-radius: 10px;
13
+ border-start-start-radius: var(--radius-small);
14
+ border-start-end-radius: 10px;
15
+ border-start-end-radius: var(--radius-small);
16
16
  }
17
17
  .np-upload-input__item + .np-upload-input__item:before {
18
18
  content: " ";
19
19
  display: block;
20
20
  position: absolute;
21
- height: 1px;
22
- left: 16px;
23
- left: var(--size-16);
24
- width: calc(100% - 2 * 16px);
25
- width: calc(100% - 2 * var(--size-16));
26
- top: 0;
21
+ block-size: 1px;
22
+ inset-inline-start: 16px;
23
+ inset-inline-start: var(--size-16);
24
+ inline-size: calc(100% - 2 * 16px);
25
+ inline-size: calc(100% - 2 * var(--size-16));
26
+ inset-block-start: 0;
27
27
  background: rgba(0,0,0,0.10196);
28
28
  background: var(--color-border-neutral);
29
29
  }
30
30
  .np-upload-input__item .np-upload-input__item-content {
31
- padding-right: 32px;
32
- padding-right: var(--size-32);
31
+ padding-inline-end: 32px;
32
+ padding-inline-end: var(--size-32);
33
33
  flex: 1;
34
34
  }
35
35
  @media (max-width: 320px) {
36
36
  .np-upload-input__item .np-upload-input__item-content {
37
- padding-right: 64px;
38
- padding-right: var(--size-64);
37
+ padding-inline-end: 64px;
38
+ padding-inline-end: var(--size-64);
39
39
  }
40
40
  }
41
41
  .np-upload-input__item .np-upload-input__title,
@@ -47,18 +47,18 @@
47
47
  color: var(--color-content-secondary);
48
48
  }
49
49
  .np-upload-input__item .np-upload-input__title + .np-upload-input__text {
50
- margin-top: 4px;
51
- margin-top: var(--size-4);
50
+ margin-block-start: 4px;
51
+ margin-block-start: var(--size-4);
52
52
  }
53
53
  .np-upload-input__item .np-upload-input__icon {
54
- padding-right: 16px;
55
- padding-right: var(--size-16);
54
+ padding-inline-end: 16px;
55
+ padding-inline-end: var(--size-16);
56
56
  }
57
57
  .np-upload-input__item .np-upload-input__item-link,
58
58
  .np-upload-input__item .np-upload-input__item-container {
59
59
  align-items: flex-start;
60
60
  display: flex;
61
- width: 100%;
61
+ inline-size: 100%;
62
62
  }
63
63
  .np-upload-input__item .np-upload-input__item-action {
64
64
  --iconSize: var(--size-24);
@@ -66,10 +66,10 @@
66
66
  --buttonTopRightOffset: var(--size-16);
67
67
  --clickAreaTopRightOffset: calc((var(--clickAreaSize) - var(--iconSize)) * -0.5);
68
68
  position: absolute;
69
- right: 16px;
70
- right: var(--buttonTopRightOffset);
71
- top: 16px;
72
- top: var(--buttonTopRightOffset);
69
+ inset-inline-end: 16px;
70
+ inset-inline-end: var(--buttonTopRightOffset);
71
+ inset-block-start: 16px;
72
+ inset-block-start: var(--buttonTopRightOffset);
73
73
  }
74
74
  @media (max-width: 320px) {
75
75
  .np-upload-input__item .np-upload-input__item-action {
@@ -81,10 +81,12 @@
81
81
  -webkit-appearance: none;
82
82
  -moz-appearance: none;
83
83
  appearance: none;
84
- height: var(--iconSize);
85
- width: var(--iconSize);
86
- padding: 0 4px;
87
- padding: 0 var(--size-4);
84
+ block-size: var(--iconSize);
85
+ inline-size: var(--iconSize);
86
+ padding-block: 0;
87
+ padding-inline: 4px;
88
+ padding-block: 0;
89
+ padding-inline: var(--size-4);
88
90
  border-radius: 50%;
89
91
  border: 0;
90
92
  background-color: rgba(134,167,189,0.10196);
@@ -99,12 +101,12 @@
99
101
  .np-upload-input__item .np-upload-input__item-action .np-upload-input__item-button:before {
100
102
  content: '';
101
103
  display: block;
102
- width: var(--clickAreaSize);
103
- height: var(--clickAreaSize);
104
+ inline-size: var(--clickAreaSize);
105
+ block-size: var(--clickAreaSize);
104
106
  border-radius: 50%;
105
107
  position: absolute;
106
- top: var(--clickAreaTopRightOffset);
107
- right: var(--clickAreaTopRightOffset);
108
+ inset-block-start: var(--clickAreaTopRightOffset);
109
+ inset-inline-end: var(--clickAreaTopRightOffset);
108
110
  }
109
111
  .np-upload-input__item .np-upload-input__item-action .np-upload-input__item-button:hover {
110
112
  background-color: var(--color-sentiment-negative);
@@ -118,8 +120,8 @@
118
120
  }
119
121
  .np-upload-input__item.is-interactive:hover:not(:has(.np-upload-input__item-button:hover)):before,
120
122
  .np-upload-input__item.is-interactive:hover:not(:has(.np-upload-input__item-button:hover)) + .np-upload-input__item:before {
121
- width: 100%;
122
- left: 0;
123
+ inline-size: 100%;
124
+ inset-inline-start: 0;
123
125
  }
124
126
  .np-upload-input__item.is-interactive .np-upload-input__item-link {
125
127
  padding: 16px;
@@ -127,7 +129,7 @@
127
129
  -webkit-text-decoration: none;
128
130
  text-decoration: none;
129
131
  border-radius: inherit;
130
- border-top: 1px solid transparent;
132
+ border-block-start: 1px solid transparent;
131
133
  background-clip: padding-box;
132
134
  }
133
135
  .np-upload-input__item.is-interactive .np-upload-input__item-link:focus-visible {
@@ -140,27 +142,27 @@
140
142
  background-color: var(--color-background-neutral);
141
143
  }
142
144
  .np-upload-input__item.is-interactive:first-child .np-upload-input__item-link {
143
- border-top-width: 0;
145
+ border-block-start-width: 0;
144
146
  }
145
147
  .np-upload-input__item .np-upload-input-errors {
146
- padding-left: 0;
148
+ padding-inline-start: 0;
147
149
  list-style-type: "";
148
150
  }
149
151
  .np-upload-input__item .np-upload-input-errors > li {
150
152
  position: relative;
151
- padding-left: 16px;
152
- padding-left: var(--size-16);
153
+ padding-inline-start: 16px;
154
+ padding-inline-start: var(--size-16);
153
155
  }
154
156
  .np-upload-input__item .np-upload-input-errors > li::before {
155
157
  content: '•' ;
156
158
  content: '•' / '';
157
159
  position: absolute;
158
160
  display: block;
159
- left: 0;
161
+ inset-inline-start: 0;
160
162
  }
161
163
  @media (max-width: 320px) {
162
164
  .np-upload-input__item .np-upload-input-errors > li {
163
- padding-left: 32px;
164
- padding-left: var(--size-32);
165
+ padding-inline-start: 32px;
166
+ padding-inline-start: var(--size-32);
165
167
  }
166
168
  }
@@ -1,5 +1,5 @@
1
1
  import { type ReactNode } from 'react';
2
- export interface CardProps {
2
+ export interface BaseCardProps {
3
3
  /** Content to display inside Card. */
4
4
  children: ReactNode;
5
5
  /** Optional prop to specify classNames onto the Card */
@@ -16,9 +16,9 @@ export interface CardProps {
16
16
  testId?: string;
17
17
  }
18
18
  /**
19
- * Card component.
19
+ * BaseCard component.
20
20
  *
21
- * A card is a container for content that is used to group related information.
21
+ * A BaseCard is a container for content that is used to group related information.
22
22
  * It can be used to display information in a structured way, and can be
23
23
  * customized with various props to suit different use cases.
24
24
  *
@@ -32,10 +32,10 @@ export interface CardProps {
32
32
  * @param {string} testId - Optional ID to add to the card container for testing purposes.
33
33
  * @returns {React.JSX.Element} - The card component.
34
34
  * @example
35
- * <Card>
35
+ * <BaseCard>
36
36
  * <p>Hello World!</p>
37
- * </Card>
37
+ * </BaseCard>
38
38
  */
39
- declare const Card: import("react").ForwardRefExoticComponent<CardProps & import("react").RefAttributes<HTMLDivElement>>;
40
- export default Card;
41
- //# sourceMappingURL=Card.d.ts.map
39
+ declare const BaseCard: import("react").ForwardRefExoticComponent<BaseCardProps & import("react").RefAttributes<HTMLDivElement>>;
40
+ export default BaseCard;
41
+ //# sourceMappingURL=BaseCard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BaseCard.d.ts","sourceRoot":"","sources":["../../../../src/common/baseCard/BaseCard.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,SAAS,EAAsB,MAAM,OAAO,CAAC;AAK3D,MAAM,WAAW,aAAa;IAC5B,sCAAsC;IACtC,QAAQ,EAAE,SAAS,CAAC;IAEpB,wDAAwD;IACxD,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,kDAAkD;IAClD,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,mDAAmD;IACnD,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB,qDAAqD;IACrD,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,iDAAiD;IACjD,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IAEvB,uDAAuD;IACvD,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,QAAA,MAAM,QAAQ,0GAgDb,CAAC;AAIF,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { default } from './BaseCard';
2
+ export * from './BaseCard';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/common/baseCard/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,cAAc,YAAY,CAAC"}
@@ -103,7 +103,7 @@ export { Chip, default as Chips } from './chips';
103
103
  export { default as CircularButton } from './circularButton';
104
104
  export { default as Option } from './common/Option';
105
105
  export { default as BottomSheet } from './common/bottomSheet';
106
- export { default as BaseCard } from './common/card';
106
+ export { default as BaseCard } from './common/baseCard';
107
107
  export { default as CriticalCommsBanner } from './criticalBanner';
108
108
  export { default as DateInput } from './dateInput';
109
109
  export { default as DateLookup } from './dateLookup';