@transferwise/components 0.0.0-experimental-7df8816 → 0.0.0-experimental-d2bc8ee

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 (163) hide show
  1. package/build/common/closeButton/CloseButton.messages.js +2 -2
  2. package/build/common/closeButton/CloseButton.messages.js.map +1 -1
  3. package/build/common/closeButton/CloseButton.messages.mjs +2 -2
  4. package/build/common/closeButton/CloseButton.messages.mjs.map +1 -1
  5. package/build/common/closeButton/CloseButton.mjs +2 -2
  6. package/build/common/closeButton/CloseButton.mjs.map +1 -1
  7. package/build/drawer/Drawer.js +9 -18
  8. package/build/drawer/Drawer.js.map +1 -1
  9. package/build/drawer/Drawer.mjs +9 -18
  10. package/build/drawer/Drawer.mjs.map +1 -1
  11. package/build/main.css +476 -223
  12. package/build/modal/Modal.js +21 -20
  13. package/build/modal/Modal.js.map +1 -1
  14. package/build/modal/Modal.mjs +21 -20
  15. package/build/modal/Modal.mjs.map +1 -1
  16. package/build/select/Select.js +1 -2
  17. package/build/select/Select.js.map +1 -1
  18. package/build/select/Select.mjs +1 -2
  19. package/build/select/Select.mjs.map +1 -1
  20. package/build/styles/accordion/Accordion.css +2 -6
  21. package/build/styles/actionButton/ActionButton.css +12 -4
  22. package/build/styles/avatar/Avatar.css +13 -10
  23. package/build/styles/avatarView/AvatarView.css +5 -3
  24. package/build/styles/avatarView/Dot.css +2 -1
  25. package/build/styles/button/Button.css +1 -0
  26. package/build/styles/card/Card.css +2 -2
  27. package/build/styles/carousel/Carousel.css +5 -2
  28. package/build/styles/checkboxButton/CheckboxButton.css +0 -1
  29. package/build/styles/chips/Chip.css +31 -12
  30. package/build/styles/circularButton/CircularButton.css +6 -0
  31. package/build/styles/common/Option/Option.css +2 -2
  32. package/build/styles/common/RadioButton/RadioButton.css +1 -1
  33. package/build/styles/common/bottomSheet/BottomSheet.css +1 -1
  34. package/build/styles/common/card/Card.css +1 -1
  35. package/build/styles/common/closeButton/CloseButton.css +7 -2
  36. package/build/styles/criticalBanner/CriticalCommsBanner.css +4 -0
  37. package/build/styles/dateLookup/DateLookup.css +5 -3
  38. package/build/styles/definitionList/DefinitionList.css +1 -1
  39. package/build/styles/divider/Divider.css +1 -1
  40. package/build/styles/drawer/Drawer.css +58 -11
  41. package/build/styles/emphasis/Emphasis.css +4 -5
  42. package/build/styles/expressiveMoneyInput/ExpressiveMoneyInput.css +2 -0
  43. package/build/styles/expressiveMoneyInput/amountInput/AmountInput.css +1 -0
  44. package/build/styles/expressiveMoneyInput/chevron/Chevron.css +1 -0
  45. package/build/styles/flowNavigation/FlowNavigation.css +2 -1
  46. package/build/styles/header/Header.css +2 -2
  47. package/build/styles/iconButton/IconButton.css +27 -4
  48. package/build/styles/inputs/Input.css +5 -5
  49. package/build/styles/inputs/InputGroup.css +3 -2
  50. package/build/styles/inputs/SelectInput.css +14 -13
  51. package/build/styles/inputs/TextArea.css +5 -5
  52. package/build/styles/instructionsList/InstructionsList.css +2 -0
  53. package/build/styles/listItem/ListItem.css +22 -8
  54. package/build/styles/logo/Logo.css +2 -0
  55. package/build/styles/main.css +476 -223
  56. package/build/styles/modal/Modal.css +68 -6
  57. package/build/styles/moneyInput/MoneyInput.css +2 -2
  58. package/build/styles/navigationOption/NavigationOption.css +1 -3
  59. package/build/styles/nudge/Nudge.css +1 -1
  60. package/build/styles/overlayHeader/OverlayHeader.css +2 -1
  61. package/build/styles/popover/Popover.css +2 -2
  62. package/build/styles/progress/Progress.css +3 -3
  63. package/build/styles/progressBar/ProgressBar.css +2 -2
  64. package/build/styles/promoCard/PromoCard.css +3 -3
  65. package/build/styles/prompt/InlinePrompt/InlinePrompt.css +39 -3
  66. package/build/styles/segmentedControl/SegmentedControl.css +6 -2
  67. package/build/styles/select/Select.css +25 -41
  68. package/build/styles/slidingPanel/SlidingPanel.css +4 -4
  69. package/build/styles/snackbar/Snackbar.css +4 -4
  70. package/build/styles/statusIcon/StatusIcon.css +10 -2
  71. package/build/styles/stepper/Stepper.css +4 -4
  72. package/build/styles/summary/Summary.css +5 -2
  73. package/build/styles/switch/Switch.css +3 -2
  74. package/build/styles/table/Table.css +13 -5
  75. package/build/styles/tabs/Tabs.css +10 -9
  76. package/build/styles/tile/Tile.css +8 -5
  77. package/build/styles/typeahead/Typeahead.css +2 -1
  78. package/build/styles/typeahead/typeaheadOption/TypeaheadOption.css +1 -4
  79. package/build/styles/upload/Upload.css +1 -1
  80. package/build/styles/uploadInput/uploadButton/UploadButton.css +4 -2
  81. package/build/styles/uploadInput/uploadItem/UploadItem.css +8 -4
  82. package/build/types/drawer/Drawer.d.ts.map +1 -1
  83. package/build/types/modal/Modal.d.ts.map +1 -1
  84. package/build/types/select/Select.d.ts +1 -1
  85. package/build/types/select/Select.d.ts.map +1 -1
  86. package/package.json +12 -7
  87. package/src/accordion/Accordion.css +2 -6
  88. package/src/accordion/Accordion.less +0 -7
  89. package/src/accordion/Accordion.story.tsx +1 -1
  90. package/src/actionButton/ActionButton.css +12 -4
  91. package/src/avatar/Avatar.css +13 -10
  92. package/src/avatarLayout/AvatarLayout.story.tsx +0 -1
  93. package/src/avatarView/AvatarView.css +5 -3
  94. package/src/avatarView/AvatarView.story.tsx +0 -1
  95. package/src/avatarView/Dot.css +2 -1
  96. package/src/button/Button.css +1 -0
  97. package/src/card/Card.css +2 -2
  98. package/src/carousel/Carousel.css +5 -2
  99. package/src/checkboxButton/CheckboxButton.css +0 -1
  100. package/src/chips/Chip.css +31 -12
  101. package/src/circularButton/CircularButton.css +6 -0
  102. package/src/common/Option/Option.css +2 -2
  103. package/src/common/RadioButton/RadioButton.css +1 -1
  104. package/src/common/bottomSheet/BottomSheet.css +1 -1
  105. package/src/common/card/Card.css +1 -1
  106. package/src/common/closeButton/CloseButton.css +7 -2
  107. package/src/criticalBanner/CriticalCommsBanner.css +4 -0
  108. package/src/dateLookup/DateLookup.css +5 -3
  109. package/src/definitionList/DefinitionList.css +1 -1
  110. package/src/display/Display.story.tsx +0 -1
  111. package/src/divider/Divider.css +1 -1
  112. package/src/drawer/Drawer.css +58 -11
  113. package/src/drawer/Drawer.less +70 -14
  114. package/src/drawer/Drawer.story.tsx +100 -158
  115. package/src/drawer/Drawer.tsx +7 -26
  116. package/src/emphasis/Emphasis.css +4 -5
  117. package/src/expressiveMoneyInput/ExpressiveMoneyInput.css +2 -0
  118. package/src/expressiveMoneyInput/amountInput/AmountInput.css +1 -0
  119. package/src/expressiveMoneyInput/chevron/Chevron.css +1 -0
  120. package/src/flowNavigation/FlowNavigation.css +2 -1
  121. package/src/header/Header.css +2 -2
  122. package/src/iconButton/IconButton.css +27 -4
  123. package/src/iconButton/IconButton.story.tsx +0 -1
  124. package/src/inputs/Input.css +5 -5
  125. package/src/inputs/InputGroup.css +3 -2
  126. package/src/inputs/SelectInput.css +14 -13
  127. package/src/inputs/TextArea.css +5 -5
  128. package/src/instructionsList/InstructionsList.css +2 -0
  129. package/src/listItem/ListItem.css +22 -8
  130. package/src/logo/Logo.css +2 -0
  131. package/src/main.css +476 -223
  132. package/src/modal/Modal.css +68 -6
  133. package/src/modal/Modal.less +76 -6
  134. package/src/modal/Modal.tsx +23 -23
  135. package/src/moneyInput/MoneyInput.css +2 -2
  136. package/src/navigationOption/NavigationOption.css +1 -3
  137. package/src/nudge/Nudge.css +1 -1
  138. package/src/overlayHeader/OverlayHeader.css +2 -1
  139. package/src/popover/Popover.css +2 -2
  140. package/src/progress/Progress.css +3 -3
  141. package/src/progressBar/ProgressBar.css +2 -2
  142. package/src/promoCard/PromoCard.css +3 -3
  143. package/src/prompt/InlinePrompt/InlinePrompt.css +39 -3
  144. package/src/segmentedControl/SegmentedControl.css +6 -2
  145. package/src/select/Select.css +25 -41
  146. package/src/select/Select.less +0 -25
  147. package/src/select/Select.tsx +1 -6
  148. package/src/slidingPanel/SlidingPanel.css +4 -4
  149. package/src/snackbar/Snackbar.css +4 -4
  150. package/src/snackbar/Snackbar.less +2 -4
  151. package/src/statusIcon/StatusIcon.css +10 -2
  152. package/src/stepper/Stepper.css +4 -4
  153. package/src/summary/Summary.css +5 -2
  154. package/src/switch/Switch.css +3 -2
  155. package/src/table/Table.css +13 -5
  156. package/src/tabs/Tabs.css +10 -9
  157. package/src/tile/Tile.css +8 -5
  158. package/src/typeahead/Typeahead.css +2 -1
  159. package/src/typeahead/typeaheadOption/TypeaheadOption.css +1 -4
  160. package/src/typeahead/typeaheadOption/TypeaheadOption.less +0 -6
  161. package/src/upload/Upload.css +1 -1
  162. package/src/uploadInput/uploadButton/UploadButton.css +4 -2
  163. package/src/uploadInput/uploadItem/UploadItem.css +8 -4
@@ -6,9 +6,14 @@
6
6
  .tw-modal .tw-modal-dialog {
7
7
  transition: transform 0.3s ease-out;
8
8
  transform: translateY(-25%);
9
- box-shadow: none;
9
+ box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
10
+ background: #ffffff;
11
+ background: var(--color-background-elevated);
12
+ }
13
+ .np-theme-personal .tw-modal .tw-modal-dialog {
10
14
  background: #ffffff;
11
15
  background: var(--color-background-elevated);
16
+ box-shadow: none;
12
17
  border-radius: 24px;
13
18
  border-radius: var(--radius-large);
14
19
  }
@@ -17,7 +22,6 @@
17
22
  }
18
23
  .tw-modal .tw-modal-content {
19
24
  width: 100%;
20
- background-color: transparent;
21
25
  }
22
26
  .tw-modal .tw-modal-content .tw-modal-body {
23
27
  flex: 1;
@@ -26,6 +30,25 @@
26
30
  .tw-modal .tw-modal-content .tw-modal-body--scrollable {
27
31
  overflow-y: auto;
28
32
  }
33
+ .tw-modal .tw-modal-content .tw-modal-header {
34
+ box-shadow: inset 0 -1px 0 0 #e2e6e8;
35
+ }
36
+ .np-theme-personal .tw-modal .tw-modal-content .tw-modal-header {
37
+ box-shadow: inset 0 -1px 0 0 rgba(14,15,12,0.12157);
38
+ box-shadow: inset 0 -1px 0 0 var(--color-border-neutral);
39
+ }
40
+ .np-theme-personal .tw-modal .tw-modal-content .tw-modal-header .np-close-button {
41
+ margin: calc(8px * -1) calc(8px * -1) calc(8px * -1) 0;
42
+ margin: calc(var(--size-8) * -1) calc(var(--size-8) * -1) calc(var(--size-8) * -1) 0;
43
+ }
44
+ .tw-modal .tw-modal-content .tw-modal-header.modal--withoutborder {
45
+ box-shadow: none;
46
+ }
47
+ .tw-modal .tw-modal-content .tw-modal-header .tw-icon {
48
+ fill: var(--color-content-accent);
49
+ cursor: pointer;
50
+ display: block;
51
+ }
29
52
  .tw-modal .tw-modal-content .tw-modal-header,
30
53
  .tw-modal .tw-modal-content .tw-modal-footer,
31
54
  .tw-modal .tw-modal-content .tw-modal-body {
@@ -40,16 +63,55 @@
40
63
  padding-top: var(--size-12);
41
64
  padding-bottom: 12px;
42
65
  padding-bottom: var(--size-12);
66
+ box-shadow: inset 0 1px 0 0 #e2e6e8;
67
+ }
68
+ .np-theme-personal .tw-modal .tw-modal-content .tw-modal-footer {
69
+ border-top: 1px solid rgba(14,15,12,0.12157);
70
+ border-top: 1px solid var(--color-border-neutral);
71
+ }
72
+ .np-theme-personal .tw-modal .tw-modal-content .tw-modal-footer,
73
+ .tw-modal .tw-modal-content .tw-modal-footer.modal--withoutborder {
74
+ box-shadow: none;
75
+ }
76
+ .tw-modal .tw-modal-content.tw-modal-no-title .tw-modal-body {
77
+ padding-top: 0 !important;
78
+ }
79
+ .tw-modal .tw-modal-content.tw-modal-no-title .tw-modal-header {
80
+ min-height: 32px;
81
+ min-height: var(--size-32);
82
+ padding-bottom: 4px !important;
83
+ }
84
+ .tw-modal .tw-modal-content .np-theme-personal {
85
+ background-color: transparent;
86
+ }
87
+ .tw-modal table,
88
+ .tw-modal .table {
89
+ background-color: transparent;
43
90
  }
44
91
  @media (min-width: 576px) {
45
92
  .tw-modal .tw-modal-content .tw-modal-header,
46
- .tw-modal .tw-modal-content .tw-modal-footer {
93
+ .tw-modal .tw-modal-content .tw-modal-footer,
94
+ .tw-modal .tw-modal-content .tw-modal-body {
95
+ padding: 32px 24px;
96
+ padding: var(--size-32) var(--size-24);
97
+ }
98
+ .np-theme-personal .tw-modal .tw-modal-content .tw-modal-header,
99
+ .np-theme-personal .tw-modal .tw-modal-content .tw-modal-footer,
100
+ .np-theme-personal .tw-modal .tw-modal-content .tw-modal-body {
47
101
  padding: 24px;
48
102
  padding: var(--size-24);
49
103
  }
50
- .tw-modal .tw-modal-content .tw-modal-body {
51
- padding: 0 24px;
52
- padding: 0 var(--size-24);
104
+ .tw-modal .tw-modal-compact .tw-modal-header {
105
+ min-height: calc(8px * 7);
106
+ min-height: calc(var(--size-8) * 7);
107
+ }
108
+ .tw-modal .tw-modal-compact .tw-modal-header,
109
+ .tw-modal .tw-modal-compact .tw-modal-footer,
110
+ .tw-modal .tw-modal-compact .tw-modal-body {
111
+ padding-top: 16px;
112
+ padding-top: var(--size-16);
113
+ padding-bottom: 16px;
114
+ padding-bottom: var(--size-16);
53
115
  }
54
116
  }
55
117
  @media (min-width: 480px) {
@@ -10,9 +10,14 @@
10
10
  .tw-modal-dialog {
11
11
  transition: transform 0.3s ease-out;
12
12
  transform: translateY(-25%);
13
- box-shadow: none;
13
+ box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
14
14
  background: var(--color-background-elevated);
15
- border-radius: var(--radius-large);
15
+
16
+ .np-theme-personal & {
17
+ background: var(--color-background-elevated);
18
+ box-shadow: none;
19
+ border-radius: var(--radius-large);
20
+ }
16
21
  }
17
22
 
18
23
  &.in {
@@ -23,7 +28,6 @@
23
28
 
24
29
  .tw-modal-content {
25
30
  width: 100%;
26
- background-color: transparent;
27
31
 
28
32
  .tw-modal-body {
29
33
  flex: 1;
@@ -34,6 +38,28 @@
34
38
  }
35
39
  }
36
40
 
41
+ .tw-modal-header {
42
+ box-shadow: inset 0 -1px 0 0 rgb(226 230 232);
43
+
44
+ .np-theme-personal & {
45
+ box-shadow: inset 0 -1px 0 0 var(--color-border-neutral);
46
+
47
+ .np-close-button {
48
+ margin: calc(var(--size-8) * -1) calc(var(--size-8) * -1) calc(var(--size-8) * -1) 0;
49
+ }
50
+ }
51
+
52
+ &.modal--withoutborder {
53
+ box-shadow: none;
54
+ }
55
+
56
+ .tw-icon {
57
+ fill: var(--color-content-accent);
58
+ cursor: pointer;
59
+ display: block;
60
+ }
61
+ }
62
+
37
63
  .tw-modal-header,
38
64
  .tw-modal-footer,
39
65
  .tw-modal-body {
@@ -47,19 +73,63 @@
47
73
  .tw-modal-footer {
48
74
  padding-top: var(--size-12);
49
75
  padding-bottom: var(--size-12);
76
+ box-shadow: inset 0 1px 0 0 rgb(226 230 232);
77
+
78
+ .np-theme-personal & {
79
+ border-top: 1px solid var(--color-border-neutral);
80
+ }
81
+
82
+ .np-theme-personal &,
83
+ &.modal--withoutborder {
84
+ box-shadow: none;
85
+ }
86
+ }
87
+
88
+ &.tw-modal-no-title {
89
+ .tw-modal-body {
90
+ padding-top: 0 !important;
91
+ }
92
+
93
+ .tw-modal-header {
94
+ min-height: var(--size-32);
95
+ padding-bottom: 4px !important;
96
+ }
97
+ }
98
+
99
+ .np-theme-personal {
100
+ background-color: transparent;
50
101
  }
51
102
  }
103
+
104
+ table, .table {
105
+ background-color: transparent;
106
+ }
52
107
  }
53
108
 
54
109
  @media (--screen-sm) {
55
110
  .tw-modal {
56
111
  .tw-modal-content {
57
112
  .tw-modal-header,
58
- .tw-modal-footer {
59
- padding: var(--size-24);
113
+ .tw-modal-footer,
114
+ .tw-modal-body {
115
+ padding: var(--size-32) var(--size-24);
116
+
117
+ .np-theme-personal & {
118
+ padding: var(--size-24);
119
+ }
120
+ }
121
+ }
122
+
123
+ .tw-modal-compact {
124
+ .tw-modal-header {
125
+ min-height: calc(var(--size-8) * 7);
60
126
  }
127
+
128
+ .tw-modal-header,
129
+ .tw-modal-footer,
61
130
  .tw-modal-body {
62
- padding: 0 var(--size-24);
131
+ padding-top: var(--size-16);
132
+ padding-bottom: var(--size-16);
63
133
  }
64
134
  }
65
135
  }
@@ -1,7 +1,6 @@
1
1
  import { clsx } from 'clsx';
2
2
  import { ReactNode, useContext, useId, useRef } from 'react';
3
3
  import { CSSTransition } from 'react-transition-group';
4
- import { useIntl } from 'react-intl';
5
4
 
6
5
  import {
7
6
  Size,
@@ -18,14 +17,12 @@ import {
18
17
  ScrollViewport,
19
18
  Typography,
20
19
  } from '../common';
20
+ import { CloseButton } from '../common/closeButton';
21
21
  import { useLayout } from '../common/hooks';
22
22
  import Dimmer from '../dimmer';
23
23
  import Drawer from '../drawer';
24
24
  import { OverlayIdContext } from '../provider/overlay/OverlayIdProvider';
25
25
  import Title from '../title/Title';
26
- import { Cross } from '@transferwise/icons';
27
- import IconButton from '../iconButton';
28
- import closeBtnMessages from '../common/closeButton/CloseButton.messages';
29
26
 
30
27
  const TRANSITION_DURATION_IN_MILLISECONDS = 150;
31
28
 
@@ -56,9 +53,14 @@ const Modal = ({
56
53
  disableDimmerClickToClose = false,
57
54
  ...otherProps
58
55
  }: ModalProps) => {
59
- const intl = useIntl();
56
+ const checkSpecialClasses = (classToCheck: string) =>
57
+ className?.split(' ').includes(classToCheck);
60
58
  const { isMedium } = useLayout();
61
59
 
60
+ // These should be replaced with props in breaking change.
61
+ const isCompact = checkSpecialClasses('compact');
62
+ const noDivider = checkSpecialClasses('no-divider');
63
+
62
64
  const contentReference = useRef<HTMLDivElement>(null);
63
65
  const titleId = useId();
64
66
 
@@ -119,6 +121,10 @@ const Modal = ({
119
121
  'd-flex',
120
122
  'flex-column',
121
123
  'justify-content-between',
124
+ {
125
+ 'tw-modal-compact': isCompact,
126
+ 'tw-modal-no-title': !title,
127
+ },
122
128
  )}
123
129
  >
124
130
  <div
@@ -126,23 +132,17 @@ const Modal = ({
126
132
  'tw-modal-header',
127
133
  'd-flex',
128
134
  'align-items-center',
129
- title ? 'justify-content-between' : 'justify-content-end',
135
+ 'justify-content-between',
130
136
  'flex-wrap',
137
+ {
138
+ 'modal--withoutborder': !title || noDivider,
139
+ },
131
140
  )}
132
141
  >
133
- {title && (
134
- <Title id={titleId} type={Typography.TITLE_SUBSECTION} className="tw-modal-title">
135
- {title}
136
- </Title>
137
- )}
138
- <IconButton
139
- size={40}
140
- priority="tertiary"
141
- aria-label={intl.formatMessage(closeBtnMessages.ariaLabel)}
142
- onClick={onClose}
143
- >
144
- <Cross />
145
- </IconButton>
142
+ <Title id={titleId} type={Typography.TITLE_BODY} className="tw-modal-title">
143
+ {title}
144
+ </Title>
145
+ <CloseButton onClick={onClose} />
146
146
  </div>
147
147
  <div
148
148
  className={clsx('tw-modal-body', {
@@ -151,14 +151,14 @@ const Modal = ({
151
151
  >
152
152
  {body}
153
153
  </div>
154
- {footer ? (
154
+ {footer && (
155
155
  <div
156
- className={clsx('tw-modal-footer', 'd-flex', 'align-items-center', 'flex-wrap')}
156
+ className={clsx('tw-modal-footer', 'd-flex', 'align-items-center', 'flex-wrap', {
157
+ 'modal--withoutborder': noDivider,
158
+ })}
157
159
  >
158
160
  {footer}
159
161
  </div>
160
- ) : (
161
- <div className="m-t-3" />
162
162
  )}
163
163
  </div>
164
164
  </div>
@@ -10,7 +10,7 @@
10
10
  padding-left: initial !important;
11
11
  }
12
12
  .tw-money-input .tw-money-input__fixed-currency .np-text-title-subsection {
13
- color: #768e9c;
13
+ color: #6a6c6a;
14
14
  color: var(--color-content-tertiary);
15
15
  font-weight: 600;
16
16
  font-weight: var(--font-weight-semi-bold);
@@ -69,6 +69,6 @@
69
69
  box-shadow: none;
70
70
  }
71
71
  .tw-money-input:not(.disabled):not(:disabled):not(.np-button-input:active):has(.np-button-input:focus-visible) {
72
- box-shadow: inset 0 0 0 1px #c9cbce !important;
72
+ box-shadow: inset 0 0 0 1px #868685 !important;
73
73
  box-shadow: inset 0 0 0 1px var(--color-interactive-secondary) !important;
74
74
  }
@@ -31,7 +31,7 @@ html:not([dir="rtl"]) .np-navigation-option {
31
31
  background-color: var(--color-background-screen);
32
32
  }
33
33
  .np-theme-personal .np-navigation-option:not(.disabled):not(:disabled):hover .tw-avatar__content {
34
- background-color: rgba(134,167,189,0.10196);
34
+ background-color: rgba(22,51,0,0.07843);
35
35
  background-color: var(--color-background-neutral);
36
36
  }
37
37
  .np-navigation-option .circle {
@@ -56,11 +56,9 @@ html:not([dir="rtl"]) .np-navigation-option {
56
56
  }
57
57
  .np-navigation-option__chevron:not(.disabled):not(:disabled):hover,
58
58
  .np-navigation-option__chevron:not(.disabled):not(:disabled):focus {
59
- color: #0084b3;
60
59
  color: var(--color-content-accent-hover);
61
60
  }
62
61
  .np-navigation-option__chevron:not(.disabled):not(:disabled):active {
63
- color: #0077a5;
64
62
  color: var(--color-content-accent-active);
65
63
  }
66
64
  .np-theme-personal .np-option__container-aligned {
@@ -14,7 +14,7 @@
14
14
  --nudge-control-width: var(--size-24);
15
15
  --nudge-control-background-color: var(--color-background-neutral);
16
16
  align-items: stretch;
17
- background-color: rgba(134,167,189,0.10196);
17
+ background-color: rgba(22,51,0,0.07843);
18
18
  background-color: var(--nudge-background-color);
19
19
  border-radius: 16px;
20
20
  border-radius: var(--nudge-border-radius);
@@ -5,11 +5,12 @@
5
5
  max-width: 1164px;
6
6
  }
7
7
  .np-theme-personal .np-overlay-header {
8
- border-bottom: 1px solid rgba(0,0,0,0.10196);
8
+ border-bottom: 1px solid rgba(14,15,12,0.12157);
9
9
  border-bottom: 1px solid var(--color-border-neutral);
10
10
  }
11
11
  .np-theme-personal--forest-green .np-overlay-header .np-flow-header__left path,
12
12
  .np-theme-personal--bright-green .np-overlay-header .np-flow-header__left path,
13
13
  .np-theme-personal--dark .np-overlay-header .np-flow-header__left path {
14
+ fill: #163300;
14
15
  fill: var(--color-interactive-primary);
15
16
  }
@@ -3,7 +3,7 @@
3
3
  border-radius: var(--radius-medium);
4
4
  }
5
5
  .np-popover__container .np-popover__content {
6
- color: #5d7079;
6
+ color: #454745;
7
7
  color: var(--color-content-secondary);
8
8
  font-size: 0.875rem;
9
9
  font-size: var(--font-size-14);
@@ -22,7 +22,7 @@
22
22
  }
23
23
  .np-popover__container.np-bottom-sheet .np-popover__title {
24
24
  margin: 0;
25
- color: #37517e;
25
+ color: #0e0f0c;
26
26
  color: var(--color-content-primary);
27
27
  line-height: 1.2;
28
28
  line-height: var(--line-height-title);
@@ -6,27 +6,27 @@
6
6
  height: var(--size-8);
7
7
  }
8
8
  .np-progress::-webkit-progress-bar {
9
- background-color: rgba(134,167,189,0.10196);
9
+ background-color: rgba(22,51,0,0.07843);
10
10
  background-color: var(--color-background-neutral);
11
11
  border-radius: 10px;
12
12
  border-radius: var(--radius-small);
13
13
  }
14
14
  .np-progress::-webkit-progress-value {
15
- background-color: #0097c7;
16
15
  background-color: var(--color-content-accent);
17
16
  border-radius: 10px;
18
17
  border-radius: var(--radius-small);
19
18
  }
20
19
  .np-theme-personal .np-progress::-webkit-progress-value {
20
+ background-color: #163300;
21
21
  background-color: var(--color-interactive-primary);
22
22
  }
23
23
  .np-progress::-moz-progress-bar {
24
- background-color: #0097c7;
25
24
  background-color: var(--color-content-accent);
26
25
  border-radius: 10px;
27
26
  border-radius: var(--radius-small);
28
27
  }
29
28
  .np-theme-personal .np-progress::-moz-progress-bar {
29
+ background-color: #163300;
30
30
  background-color: var(--color-interactive-primary);
31
31
  }
32
32
  @media (prefers-reduced-motion: no-preference) {
@@ -1,11 +1,11 @@
1
1
  .np-progress-bar__title .h4 {
2
- color: #37517e;
2
+ color: #0e0f0c;
3
3
  color: var(--color-content-primary);
4
4
  margin-bottom: 4px;
5
5
  margin-bottom: var(--size-4);
6
6
  }
7
7
  .np-progress-bar p {
8
- color: #37517e;
8
+ color: #0e0f0c;
9
9
  color: var(--color-content-primary);
10
10
  margin-top: 4px;
11
11
  margin-top: var(--size-4);
@@ -32,7 +32,7 @@
32
32
  right: calc(var(--size-24) * -1);
33
33
  }
34
34
  .np-Card-description {
35
- color: #5d7079;
35
+ color: #454745;
36
36
  color: var(--color-content-secondary);
37
37
  }
38
38
  .np-Card-indicator {
@@ -121,7 +121,7 @@
121
121
  outline: none;
122
122
  }
123
123
  .np-Card--link .np-Card-titleLink {
124
- color: #37517e;
124
+ color: #0e0f0c;
125
125
  color: var(--color-content-primary);
126
126
  -webkit-text-decoration: none;
127
127
  text-decoration: none;
@@ -140,7 +140,7 @@
140
140
  z-index: 10;
141
141
  }
142
142
  .np-Card--checked.is-checked {
143
- box-shadow: 0 0 0 4px var(--color-interactive-primary);
143
+ box-shadow: 0 0 0 4px #163300;
144
144
  box-shadow: 0 0 0 var(--size-4) var(--color-interactive-primary);
145
145
  }
146
146
  .np-Card--checked.is-checked .np-Card-check {
@@ -44,66 +44,85 @@
44
44
  }
45
45
  .wds-inline-prompt__media-wrapper .tw-icon-tags,
46
46
  .wds-inline-prompt__media-wrapper .tw-icon-confetti {
47
+ color: #054d28;
47
48
  color: var(--color-sentiment-positive-primary);
48
49
  }
49
50
  .wds-inline-prompt--negative {
51
+ background-color: #fbeaea;
50
52
  background-color: var(--color-sentiment-negative-secondary);
53
+ color: #cb272f;
51
54
  color: var(--color-sentiment-negative-primary);
52
55
  }
53
56
  .wds-inline-prompt--negative a,
54
57
  .wds-inline-prompt--negative button {
58
+ color: #cb272f;
55
59
  color: var(--color-sentiment-negative-primary);
56
60
  }
57
61
  .wds-inline-prompt--negative a:hover,
58
62
  .wds-inline-prompt--negative button:hover {
63
+ color: #b8232b;
59
64
  color: var(--color-sentiment-negative-primary-hover);
60
65
  }
61
66
  .wds-inline-prompt--negative a:active,
62
67
  .wds-inline-prompt--negative button:active {
68
+ color: #a72027;
63
69
  color: var(--color-sentiment-negative-primary-active);
64
70
  }
65
71
  .wds-inline-prompt.wds-inline-prompt--negative:has(a, button):hover {
72
+ background-color: #f9e1e1;
66
73
  background-color: var(--color-sentiment-negative-secondary-hover);
67
74
  }
68
75
  .wds-inline-prompt.wds-inline-prompt--negative:has(a, button):active {
76
+ background-color: #f8d8d8;
69
77
  background-color: var(--color-sentiment-negative-secondary-active);
70
78
  }
71
79
  .wds-inline-prompt--positive {
80
+ background-color: #e2f6d5;
72
81
  background-color: var(--color-sentiment-positive-secondary);
82
+ color: #054d28;
73
83
  color: var(--color-sentiment-positive-primary);
74
84
  }
75
85
  .wds-inline-prompt--positive a,
76
86
  .wds-inline-prompt--positive button {
87
+ color: #054d28;
77
88
  color: var(--color-sentiment-positive-primary);
78
89
  }
79
90
  .wds-inline-prompt--positive a:hover,
80
91
  .wds-inline-prompt--positive button:hover {
92
+ color: #043a1e;
81
93
  color: var(--color-sentiment-positive-primary-hover);
82
94
  }
83
95
  .wds-inline-prompt--positive a:active,
84
96
  .wds-inline-prompt--positive button:active {
97
+ color: #022614;
85
98
  color: var(--color-sentiment-positive-primary-active);
86
99
  }
87
100
  .wds-inline-prompt.wds-inline-prompt--positive:has(a, button):hover {
101
+ background-color: #d3f2c0;
88
102
  background-color: var(--color-sentiment-positive-secondary-hover);
89
103
  }
90
104
  .wds-inline-prompt.wds-inline-prompt--positive:has(a, button):active {
105
+ background-color: #c5edab;
91
106
  background-color: var(--color-sentiment-positive-secondary-active);
92
107
  }
93
108
  .wds-inline-prompt--proposition {
94
109
  background-color: #D2F9F7;
110
+ color: #163300;
95
111
  color: var(--color-interactive-primary);
96
112
  }
97
113
  .wds-inline-prompt--proposition a,
98
114
  .wds-inline-prompt--proposition button {
115
+ color: #163300;
99
116
  color: var(--color-interactive-primary);
100
117
  }
101
118
  .wds-inline-prompt--proposition a:hover,
102
119
  .wds-inline-prompt--proposition button:hover {
120
+ color: #0d1f00;
103
121
  color: var(--color-interactive-primary-hover);
104
122
  }
105
123
  .wds-inline-prompt--proposition a:active,
106
124
  .wds-inline-prompt--proposition button:active {
125
+ color: #0e0f0c;
107
126
  color: var(--color-interactive-primary-active);
108
127
  }
109
128
  .wds-inline-prompt.wds-inline-prompt--proposition:has(a, button):hover {
@@ -113,41 +132,58 @@
113
132
  background-color: #91F0EE;
114
133
  }
115
134
  .wds-inline-prompt--neutral {
116
- background-color: rgba(134,167,189,0.10196);
135
+ background-color: rgba(22,51,0,0.07843);
117
136
  background-color: var(--color-background-neutral);
118
- color: #37517e;
137
+ color: #0e0f0c;
119
138
  color: var(--color-content-primary);
120
139
  }
121
140
  .wds-inline-prompt--neutral a,
122
141
  .wds-inline-prompt--neutral button {
123
- color: #37517e;
142
+ color: #0e0f0c;
124
143
  color: var(--color-content-primary);
125
144
  }
126
145
  .wds-inline-prompt.wds-inline-prompt--neutral:has(a, button):hover {
146
+ background-color: rgba(22,51,0,0.12941);
127
147
  background-color: var(--color-background-neutral-hover);
128
148
  }
129
149
  .wds-inline-prompt.wds-inline-prompt--neutral:has(a, button):active {
150
+ background-color: rgba(22,51,0,0.18039);
130
151
  background-color: var(--color-background-neutral-active);
131
152
  }
132
153
  .wds-inline-prompt--warning {
154
+ background-color: #fff7d7;
133
155
  background-color: var(--color-sentiment-warning-secondary);
156
+ color: #4a3b1c;
134
157
  color: var(--color-sentiment-warning-content);
135
158
  }
136
159
  .wds-inline-prompt--warning a,
137
160
  .wds-inline-prompt--warning button {
161
+ color: #4a3b1c;
138
162
  color: var(--color-sentiment-warning-content);
139
163
  }
140
164
  .wds-inline-prompt--warning a:hover,
141
165
  .wds-inline-prompt--warning button:hover {
166
+ color: #3b2f16;
142
167
  color: var(--color-sentiment-warning-content-hover);
143
168
  }
144
169
  .wds-inline-prompt--warning a:active,
145
170
  .wds-inline-prompt--warning button:active {
171
+ color: #2c2311;
146
172
  color: var(--color-sentiment-warning-content-active);
147
173
  }
174
+ .wds-inline-prompt.wds-inline-prompt--warning:has(a, button):hover {
175
+ background-color: rgb(255, 244, 200);
176
+ }
177
+ @supports (color: color-mix(in lch, red, blue)) {
148
178
  .wds-inline-prompt.wds-inline-prompt--warning:has(a, button):hover {
149
179
  background-color: color-mix(in srgb, var(--color-sentiment-warning-secondary) 92%, var(--color-sentiment-warning-primary));
150
180
  }
181
+ }
182
+ .wds-inline-prompt.wds-inline-prompt--warning:has(a, button):active {
183
+ background-color: rgb(255, 241, 185);
184
+ }
185
+ @supports (color: color-mix(in lch, red, blue)) {
151
186
  .wds-inline-prompt.wds-inline-prompt--warning:has(a, button):active {
152
187
  background-color: color-mix(in srgb, var(--color-sentiment-warning-secondary) 84%, var(--color-sentiment-warning-primary));
153
188
  }
189
+ }
@@ -11,7 +11,7 @@
11
11
  width: 100%;
12
12
  justify-content: center;
13
13
  align-items: center;
14
- background: rgba(134,167,189,0.10196);
14
+ background: rgba(22,51,0,0.07843);
15
15
  background: var(--color-background-neutral);
16
16
  border-radius: 24px;
17
17
  border-radius: var(--size-24);
@@ -19,6 +19,7 @@
19
19
  outline: 2px solid transparent;
20
20
  }
21
21
  .segmented-control--input:has(:focus-visible) > .segmented-control__segments::after {
22
+ outline: 2px solid #163300;
22
23
  outline: 2px solid var(--color-interactive-primary);
23
24
  }
24
25
  .segmented-control__segments::after {
@@ -58,13 +59,14 @@
58
59
  z-index: 1;
59
60
  cursor: pointer;
60
61
  transition: background 300ms;
62
+ color: #163300;
61
63
  color: var(--color-interactive-primary);
62
64
  }
63
65
  .segmented-control__segment:first-child {
64
66
  margin-left: 0;
65
67
  }
66
68
  .segmented-control__segment:hover {
67
- background: rgba(0,0,0,0.10196);
69
+ background: rgba(22,51,0,0.07843);
68
70
  background: var(--color-background-overlay);
69
71
  }
70
72
  .segmented-control__radio-input {
@@ -88,6 +90,7 @@
88
90
  outline-offset: 0px;
89
91
  }
90
92
  .segmented-control__button:focus-visible {
93
+ outline-color: #163300;
91
94
  outline-color: var(--color-interactive-primary);
92
95
  }
93
96
  .segmented-control__selected-segment:hover {
@@ -96,6 +99,7 @@
96
99
  .segmented-control__text {
97
100
  word-wrap: break-word;
98
101
  word-break: break-word;
102
+ color: #163300;
99
103
  color: var(--color-interactive-primary);
100
104
  transition: font-weight 300ms;
101
105
  }