@transferwise/components 0.0.0-experimental-bb32303 → 0.0.0-experimental-d11e9c5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/avatar/Avatar.js +3 -0
- package/build/avatar/Avatar.js.map +1 -1
- package/build/avatar/Avatar.mjs +3 -0
- package/build/avatar/Avatar.mjs.map +1 -1
- package/build/avatarView/AvatarView.js +163 -0
- package/build/avatarView/AvatarView.js.map +1 -0
- package/build/avatarView/AvatarView.mjs +161 -0
- package/build/avatarView/AvatarView.mjs.map +1 -0
- package/build/avatarView/NotificationDot.js +59 -0
- package/build/avatarView/NotificationDot.js.map +1 -0
- package/build/avatarView/NotificationDot.mjs +57 -0
- package/build/avatarView/NotificationDot.mjs.map +1 -0
- package/build/avatarWrapper/AvatarWrapper.js +10 -4
- package/build/avatarWrapper/AvatarWrapper.js.map +1 -1
- package/build/avatarWrapper/AvatarWrapper.mjs +10 -4
- package/build/avatarWrapper/AvatarWrapper.mjs.map +1 -1
- package/build/badge/Badge.js +3 -1
- package/build/badge/Badge.js.map +1 -1
- package/build/badge/Badge.mjs +3 -1
- package/build/badge/Badge.mjs.map +1 -1
- package/build/badge/BadgeAssets.js +85 -0
- package/build/badge/BadgeAssets.js.map +1 -0
- package/build/badge/BadgeAssets.mjs +83 -0
- package/build/badge/BadgeAssets.mjs.map +1 -0
- package/build/button/Button.js.map +1 -1
- package/build/button/Button.mjs.map +1 -1
- package/build/button/legacyUtils/legacyUtils.js.map +1 -1
- package/build/button/legacyUtils/legacyUtils.mjs.map +1 -1
- package/build/common/circle/Circle.js +17 -1
- package/build/common/circle/Circle.js.map +1 -1
- package/build/common/circle/Circle.mjs +17 -1
- package/build/common/circle/Circle.mjs.map +1 -1
- package/build/i18n/th.json +5 -0
- package/build/i18n/th.json.js +5 -0
- package/build/i18n/th.json.js.map +1 -1
- package/build/i18n/th.json.mjs +5 -0
- package/build/i18n/th.json.mjs.map +1 -1
- package/build/index.js +128 -121
- package/build/index.js.map +1 -1
- package/build/index.mjs +33 -29
- package/build/index.mjs.map +1 -1
- package/build/main.css +109 -5
- package/build/styles/avatarGroup/AvatarGroup.css +29 -0
- package/build/styles/avatarView/AvatarView.css +42 -0
- package/build/styles/avatarView/NotificationDot.css +20 -0
- package/build/styles/badge/Badge.css +6 -5
- package/build/styles/common/circle/Circle.css +32 -0
- package/build/styles/main.css +109 -5
- package/build/types/avatar/Avatar.d.ts +3 -0
- package/build/types/avatar/Avatar.d.ts.map +1 -1
- package/build/types/avatarGroup/AvatarGroup.d.ts +18 -0
- package/build/types/avatarGroup/AvatarGroup.d.ts.map +1 -0
- package/build/types/avatarGroup/index.d.ts +3 -0
- package/build/types/avatarGroup/index.d.ts.map +1 -0
- package/build/types/avatarView/AvatarView.d.ts +19 -0
- package/build/types/avatarView/AvatarView.d.ts.map +1 -0
- package/build/types/avatarView/NotificationDot.d.ts +8 -0
- package/build/types/avatarView/NotificationDot.d.ts.map +1 -0
- package/build/types/avatarView/index.d.ts +3 -0
- package/build/types/avatarView/index.d.ts.map +1 -0
- package/build/types/avatarWrapper/AvatarWrapper.d.ts +3 -0
- package/build/types/avatarWrapper/AvatarWrapper.d.ts.map +1 -1
- package/build/types/badge/Badge.d.ts +5 -1
- package/build/types/badge/Badge.d.ts.map +1 -1
- package/build/types/badge/BadgeAssets.d.ts +15 -0
- package/build/types/badge/BadgeAssets.d.ts.map +1 -0
- package/build/types/badge/index.d.ts +2 -0
- package/build/types/badge/index.d.ts.map +1 -1
- package/build/types/button/Button.d.ts +1 -1
- package/build/types/button/Button.d.ts.map +1 -1
- package/build/types/button/legacyUtils/legacyUtils.d.ts +2 -2
- package/build/types/button/legacyUtils/legacyUtils.d.ts.map +1 -1
- package/build/types/common/circle/Circle.d.ts +2 -0
- package/build/types/common/circle/Circle.d.ts.map +1 -1
- package/build/types/index.d.ts +3 -1
- package/build/types/index.d.ts.map +1 -1
- package/package.json +3 -4
- package/src/avatar/Avatar.tsx +3 -0
- package/src/avatarGroup/AvatarGroup.css +29 -0
- package/src/avatarGroup/AvatarGroup.less +42 -0
- package/src/avatarGroup/AvatarGroup.story.tsx +284 -0
- package/src/avatarGroup/AvatarGroup.tsx +117 -0
- package/src/avatarGroup/index.ts +2 -0
- package/src/avatarView/AvatarView.css +42 -0
- package/src/avatarView/AvatarView.less +33 -0
- package/src/avatarView/AvatarView.story.tsx +425 -0
- package/src/avatarView/AvatarView.tsx +141 -0
- package/src/avatarView/NotificationDot.css +20 -0
- package/src/avatarView/NotificationDot.less +24 -0
- package/src/avatarView/NotificationDot.tsx +35 -0
- package/src/avatarView/index.ts +2 -0
- package/src/avatarWrapper/AvatarWrapper.tsx +3 -0
- package/src/badge/Badge.css +6 -5
- package/src/badge/Badge.less +4 -3
- package/src/badge/Badge.tsx +8 -1
- package/src/badge/BadgeAssets.tsx +65 -0
- package/src/badge/index.ts +3 -0
- package/src/button/{Button.spec.tsx → Button.spec.js} +2 -3
- package/src/button/Button.tsx +1 -1
- package/src/button/legacyUtils/{legacyUtils.spec.tsx → legacyUtils.spec.js} +1 -1
- package/src/button/legacyUtils/legacyUtils.ts +2 -2
- package/src/common/circle/Circle.css +32 -0
- package/src/common/circle/Circle.less +35 -0
- package/src/common/circle/Circle.tsx +22 -1
- package/src/decision/Decision.story.tsx +10 -46
- package/src/flowNavigation/FlowNavigation.story.tsx +10 -48
- package/src/i18n/th.json +5 -0
- package/src/index.ts +4 -0
- package/src/listItem/ListItem.story.tsx +5 -43
- package/src/main.css +109 -5
- package/src/main.less +2 -0
- package/src/modal/{Modal.rtl.spec.tsx → Modal.rtl.spec.js} +7 -8
- package/src/navigationOption/NavigationOption.story.tsx +14 -65
- package/src/overlayHeader/OverlayHeader.story.tsx +5 -10
- package/src/radio/Radio.story.tsx +5 -5
- package/src/radioGroup/RadioGroup.story.tsx +3 -3
- package/src/selectOption/SelectOption.story.tsx +31 -30
- package/src/slidingPanel/SlidingPanel.spec.js +1 -1
- package/src/ssr.spec.js +256 -0
- package/src/test-utils/{index.tsx → index.js} +6 -11
- package/src/test-utils/{jest.setup.ts → jest.setup.js} +8 -13
- package/src/tile/Tile.story.tsx +2 -6
- package/build/types/test-utils/index.d.ts +0 -158
- package/build/types/test-utils/index.d.ts.map +0 -1
- package/build/types/test-utils/jest.setup.d.ts +0 -2
- package/build/types/test-utils/jest.setup.d.ts.map +0 -1
- package/src/ssr.spec.tsx +0 -264
- /package/src/button/__snapshots__/{Button.spec.tsx.snap → Button.spec.js.snap} +0 -0
- /package/src/dimmer/{Dimmer.rtl.spec.tsx → Dimmer.rtl.spec.js} +0 -0
- /package/src/info/{Info.spec.jsx → Info.spec.js} +0 -0
package/build/i18n/th.json.js
CHANGED
|
@@ -29,6 +29,11 @@ var th = {
|
|
|
29
29
|
"neptune.SelectInput.noResultsFound": "ไม่พบผลลัพธ์",
|
|
30
30
|
"neptune.SelectOption.action.label": "เลือก",
|
|
31
31
|
"neptune.SelectOption.selected.action.label": "เปลี่ยนตัวเลือกที่เลือกไว้",
|
|
32
|
+
"neptune.StatusIcon.iconLabel.error": "ข้อผิดพลาด:",
|
|
33
|
+
"neptune.StatusIcon.iconLabel.information": "ข้อมูล:",
|
|
34
|
+
"neptune.StatusIcon.iconLabel.pending": "รอดำเนินการ:",
|
|
35
|
+
"neptune.StatusIcon.iconLabel.success": "สำเร็จ:",
|
|
36
|
+
"neptune.StatusIcon.iconLabel.warning": "คำเตือน:",
|
|
32
37
|
"neptune.Summary.statusDone": "รายการที่ทำแล้ว",
|
|
33
38
|
"neptune.Summary.statusNotDone": "รายการที่ต้องทำ",
|
|
34
39
|
"neptune.Summary.statusPending": "รายการที่รอดำเนินการ",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"th.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"th.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/build/i18n/th.json.mjs
CHANGED
|
@@ -27,6 +27,11 @@ var th = {
|
|
|
27
27
|
"neptune.SelectInput.noResultsFound": "ไม่พบผลลัพธ์",
|
|
28
28
|
"neptune.SelectOption.action.label": "เลือก",
|
|
29
29
|
"neptune.SelectOption.selected.action.label": "เปลี่ยนตัวเลือกที่เลือกไว้",
|
|
30
|
+
"neptune.StatusIcon.iconLabel.error": "ข้อผิดพลาด:",
|
|
31
|
+
"neptune.StatusIcon.iconLabel.information": "ข้อมูล:",
|
|
32
|
+
"neptune.StatusIcon.iconLabel.pending": "รอดำเนินการ:",
|
|
33
|
+
"neptune.StatusIcon.iconLabel.success": "สำเร็จ:",
|
|
34
|
+
"neptune.StatusIcon.iconLabel.warning": "คำเตือน:",
|
|
30
35
|
"neptune.Summary.statusDone": "รายการที่ทำแล้ว",
|
|
31
36
|
"neptune.Summary.statusNotDone": "รายการที่ต้องทำ",
|
|
32
37
|
"neptune.Summary.statusPending": "รายการที่รอดำเนินการ",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"th.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"th.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/build/index.js
CHANGED
|
@@ -8,8 +8,41 @@ var SelectOption = require('./selectOption/SelectOption.js');
|
|
|
8
8
|
var Alert = require('./alert/Alert.js');
|
|
9
9
|
var avatarTypes = require('./avatar/avatarTypes.js');
|
|
10
10
|
var Avatar = require('./avatar/Avatar.js');
|
|
11
|
+
var AvatarView = require('./avatarView/AvatarView.js');
|
|
11
12
|
var AvatarWrapper = require('./avatarWrapper/AvatarWrapper.js');
|
|
12
13
|
var Badge = require('./badge/Badge.js');
|
|
14
|
+
var StatusIcon = require('./statusIcon/StatusIcon.js');
|
|
15
|
+
require('@wise/art');
|
|
16
|
+
require('react');
|
|
17
|
+
require('clsx');
|
|
18
|
+
var breakpoint = require('./common/propsValues/breakpoint.js');
|
|
19
|
+
require('react/jsx-runtime');
|
|
20
|
+
var Image = require('./image/Image.js');
|
|
21
|
+
require('@transferwise/icons');
|
|
22
|
+
var documentIosClick = require('./common/domHelpers/documentIosClick.js');
|
|
23
|
+
var theme = require('./common/theme.js');
|
|
24
|
+
var direction = require('./common/direction.js');
|
|
25
|
+
var control = require('./common/propsValues/control.js');
|
|
26
|
+
var size = require('./common/propsValues/size.js');
|
|
27
|
+
var typography = require('./common/propsValues/typography.js');
|
|
28
|
+
var width = require('./common/propsValues/width.js');
|
|
29
|
+
var type = require('./common/propsValues/type.js');
|
|
30
|
+
var dateMode = require('./common/propsValues/dateMode.js');
|
|
31
|
+
var monthFormat = require('./common/propsValues/monthFormat.js');
|
|
32
|
+
var position = require('./common/propsValues/position.js');
|
|
33
|
+
var layouts = require('./common/propsValues/layouts.js');
|
|
34
|
+
var status = require('./common/propsValues/status.js');
|
|
35
|
+
var sentiment = require('./common/propsValues/sentiment.js');
|
|
36
|
+
var profileType = require('./common/propsValues/profileType.js');
|
|
37
|
+
var variant = require('./common/propsValues/variant.js');
|
|
38
|
+
var scroll = require('./common/propsValues/scroll.js');
|
|
39
|
+
var markdownNodeType = require('./common/propsValues/markdownNodeType.js');
|
|
40
|
+
var fileType = require('./common/fileType.js');
|
|
41
|
+
var index = require('./common/locale/index.js');
|
|
42
|
+
var initials = require('./common/initials.js');
|
|
43
|
+
var colors = require('./common/colors.js');
|
|
44
|
+
require('react-intl');
|
|
45
|
+
require('./common/closeButton/CloseButton.messages.js');
|
|
13
46
|
var Body = require('./body/Body.js');
|
|
14
47
|
var Button = require('./button/Button.js');
|
|
15
48
|
var Carousel = require('./carousel/Carousel.js');
|
|
@@ -37,7 +70,6 @@ var Emphasis = require('./emphasis/Emphasis.js');
|
|
|
37
70
|
var Field = require('./field/Field.js');
|
|
38
71
|
var FlowNavigation = require('./flowNavigation/FlowNavigation.js');
|
|
39
72
|
var Header = require('./header/Header.js');
|
|
40
|
-
var Image = require('./image/Image.js');
|
|
41
73
|
var infoPresentations = require('./info/infoPresentations.js');
|
|
42
74
|
var Info = require('./info/Info.js');
|
|
43
75
|
var InlineAlert = require('./inlineAlert/InlineAlert.js');
|
|
@@ -84,7 +116,6 @@ var SlidingPanel = require('./slidingPanel/SlidingPanel.js');
|
|
|
84
116
|
var Snackbar = require('./snackbar/Snackbar.js');
|
|
85
117
|
var SnackbarContext = require('./snackbar/SnackbarContext.js');
|
|
86
118
|
var SnackbarProvider = require('./snackbar/SnackbarProvider.js');
|
|
87
|
-
var StatusIcon = require('./statusIcon/StatusIcon.js');
|
|
88
119
|
var Stepper = require('./stepper/Stepper.js');
|
|
89
120
|
var Sticky = require('./sticky/Sticky.js');
|
|
90
121
|
var Summary = require('./summary/Summary.js');
|
|
@@ -98,37 +129,10 @@ var Typeahead = require('./typeahead/Typeahead.js');
|
|
|
98
129
|
var Upload = require('./upload/Upload.js');
|
|
99
130
|
var UploadInput = require('./uploadInput/UploadInput.js');
|
|
100
131
|
require('@transferwise/neptune-validation');
|
|
101
|
-
require('react');
|
|
102
132
|
var useDirection = require('./common/hooks/useDirection/useDirection.js');
|
|
103
133
|
var useLayout = require('./common/hooks/useLayout/useLayout.js');
|
|
104
134
|
var useScreenSize = require('./common/hooks/useScreenSize.js');
|
|
105
135
|
var useSnackbar = require('./snackbar/useSnackbar.js');
|
|
106
|
-
var documentIosClick = require('./common/domHelpers/documentIosClick.js');
|
|
107
|
-
var theme = require('./common/theme.js');
|
|
108
|
-
var direction = require('./common/direction.js');
|
|
109
|
-
var control = require('./common/propsValues/control.js');
|
|
110
|
-
var breakpoint = require('./common/propsValues/breakpoint.js');
|
|
111
|
-
var size = require('./common/propsValues/size.js');
|
|
112
|
-
var typography = require('./common/propsValues/typography.js');
|
|
113
|
-
var width = require('./common/propsValues/width.js');
|
|
114
|
-
var type = require('./common/propsValues/type.js');
|
|
115
|
-
var dateMode = require('./common/propsValues/dateMode.js');
|
|
116
|
-
var monthFormat = require('./common/propsValues/monthFormat.js');
|
|
117
|
-
var position = require('./common/propsValues/position.js');
|
|
118
|
-
var layouts = require('./common/propsValues/layouts.js');
|
|
119
|
-
var status = require('./common/propsValues/status.js');
|
|
120
|
-
var sentiment = require('./common/propsValues/sentiment.js');
|
|
121
|
-
var profileType = require('./common/propsValues/profileType.js');
|
|
122
|
-
var variant = require('./common/propsValues/variant.js');
|
|
123
|
-
var scroll = require('./common/propsValues/scroll.js');
|
|
124
|
-
var markdownNodeType = require('./common/propsValues/markdownNodeType.js');
|
|
125
|
-
var fileType = require('./common/fileType.js');
|
|
126
|
-
var index = require('./common/locale/index.js');
|
|
127
|
-
require('@transferwise/icons');
|
|
128
|
-
require('clsx');
|
|
129
|
-
require('react-intl');
|
|
130
|
-
require('./common/closeButton/CloseButton.messages.js');
|
|
131
|
-
require('react/jsx-runtime');
|
|
132
136
|
var index$1 = require('./i18n/index.js');
|
|
133
137
|
var withId = require('./withId/withId.js');
|
|
134
138
|
|
|
@@ -148,8 +152,103 @@ Object.defineProperty(exports, "AvatarType", {
|
|
|
148
152
|
get: function () { return avatarTypes.AvatarType; }
|
|
149
153
|
});
|
|
150
154
|
exports.Avatar = Avatar;
|
|
155
|
+
exports.AvatarView = AvatarView;
|
|
151
156
|
exports.AvatarWrapper = AvatarWrapper;
|
|
152
157
|
exports.Badge = Badge;
|
|
158
|
+
exports.StatusIcon = StatusIcon;
|
|
159
|
+
Object.defineProperty(exports, "Breakpoint", {
|
|
160
|
+
enumerable: true,
|
|
161
|
+
get: function () { return breakpoint.Breakpoint; }
|
|
162
|
+
});
|
|
163
|
+
exports.Image = Image.default;
|
|
164
|
+
exports.isBrowser = documentIosClick.isBrowser;
|
|
165
|
+
exports.isServerSide = documentIosClick.isServerSide;
|
|
166
|
+
Object.defineProperty(exports, "Theme", {
|
|
167
|
+
enumerable: true,
|
|
168
|
+
get: function () { return theme.Theme; }
|
|
169
|
+
});
|
|
170
|
+
Object.defineProperty(exports, "Direction", {
|
|
171
|
+
enumerable: true,
|
|
172
|
+
get: function () { return direction.Direction; }
|
|
173
|
+
});
|
|
174
|
+
Object.defineProperty(exports, "ControlType", {
|
|
175
|
+
enumerable: true,
|
|
176
|
+
get: function () { return control.ControlType; }
|
|
177
|
+
});
|
|
178
|
+
Object.defineProperty(exports, "Priority", {
|
|
179
|
+
enumerable: true,
|
|
180
|
+
get: function () { return control.Priority; }
|
|
181
|
+
});
|
|
182
|
+
Object.defineProperty(exports, "Size", {
|
|
183
|
+
enumerable: true,
|
|
184
|
+
get: function () { return size.Size; }
|
|
185
|
+
});
|
|
186
|
+
Object.defineProperty(exports, "Typography", {
|
|
187
|
+
enumerable: true,
|
|
188
|
+
get: function () { return typography.Typography; }
|
|
189
|
+
});
|
|
190
|
+
Object.defineProperty(exports, "Width", {
|
|
191
|
+
enumerable: true,
|
|
192
|
+
get: function () { return width.Width; }
|
|
193
|
+
});
|
|
194
|
+
Object.defineProperty(exports, "Type", {
|
|
195
|
+
enumerable: true,
|
|
196
|
+
get: function () { return type.Type; }
|
|
197
|
+
});
|
|
198
|
+
Object.defineProperty(exports, "DateMode", {
|
|
199
|
+
enumerable: true,
|
|
200
|
+
get: function () { return dateMode.DateMode; }
|
|
201
|
+
});
|
|
202
|
+
Object.defineProperty(exports, "MonthFormat", {
|
|
203
|
+
enumerable: true,
|
|
204
|
+
get: function () { return monthFormat.MonthFormat; }
|
|
205
|
+
});
|
|
206
|
+
Object.defineProperty(exports, "Position", {
|
|
207
|
+
enumerable: true,
|
|
208
|
+
get: function () { return position.Position; }
|
|
209
|
+
});
|
|
210
|
+
Object.defineProperty(exports, "Layout", {
|
|
211
|
+
enumerable: true,
|
|
212
|
+
get: function () { return layouts.Layout; }
|
|
213
|
+
});
|
|
214
|
+
Object.defineProperty(exports, "Status", {
|
|
215
|
+
enumerable: true,
|
|
216
|
+
get: function () { return status.Status; }
|
|
217
|
+
});
|
|
218
|
+
Object.defineProperty(exports, "Sentiment", {
|
|
219
|
+
enumerable: true,
|
|
220
|
+
get: function () { return sentiment.Sentiment; }
|
|
221
|
+
});
|
|
222
|
+
Object.defineProperty(exports, "ProfileType", {
|
|
223
|
+
enumerable: true,
|
|
224
|
+
get: function () { return profileType.ProfileType; }
|
|
225
|
+
});
|
|
226
|
+
Object.defineProperty(exports, "Variant", {
|
|
227
|
+
enumerable: true,
|
|
228
|
+
get: function () { return variant.Variant; }
|
|
229
|
+
});
|
|
230
|
+
Object.defineProperty(exports, "Scroll", {
|
|
231
|
+
enumerable: true,
|
|
232
|
+
get: function () { return scroll.Scroll; }
|
|
233
|
+
});
|
|
234
|
+
Object.defineProperty(exports, "MarkdownNodeType", {
|
|
235
|
+
enumerable: true,
|
|
236
|
+
get: function () { return markdownNodeType.MarkdownNodeType; }
|
|
237
|
+
});
|
|
238
|
+
Object.defineProperty(exports, "FileType", {
|
|
239
|
+
enumerable: true,
|
|
240
|
+
get: function () { return fileType.FileType; }
|
|
241
|
+
});
|
|
242
|
+
exports.DEFAULT_LANG = index.DEFAULT_LANG;
|
|
243
|
+
exports.DEFAULT_LOCALE = index.DEFAULT_LOCALE;
|
|
244
|
+
exports.RTL_LANGUAGES = index.RTL_LANGUAGES;
|
|
245
|
+
exports.SUPPORTED_LANGUAGES = index.SUPPORTED_LANGUAGES;
|
|
246
|
+
exports.adjustLocale = index.adjustLocale;
|
|
247
|
+
exports.getCountryFromLocale = index.getCountryFromLocale;
|
|
248
|
+
exports.getDirectionFromLocale = index.getDirectionFromLocale;
|
|
249
|
+
exports.getLangFromLocale = index.getLangFromLocale;
|
|
250
|
+
exports.getInitials = initials.getInitials;
|
|
251
|
+
exports.getBrandColorFromSeed = colors.getBrandColorFromSeed;
|
|
153
252
|
exports.Body = Body;
|
|
154
253
|
exports.Button = Button;
|
|
155
254
|
exports.Carousel = Carousel;
|
|
@@ -185,7 +284,6 @@ exports.Emphasis = Emphasis;
|
|
|
185
284
|
exports.Field = Field.Field;
|
|
186
285
|
exports.FlowNavigation = FlowNavigation;
|
|
187
286
|
exports.Header = Header.Header;
|
|
188
|
-
exports.Image = Image.default;
|
|
189
287
|
Object.defineProperty(exports, "InfoPresentation", {
|
|
190
288
|
enumerable: true,
|
|
191
289
|
get: function () { return infoPresentations.InfoPresentation; }
|
|
@@ -242,7 +340,6 @@ exports.SnackbarPortal = Snackbar.default;
|
|
|
242
340
|
exports.SnackbarConsumer = SnackbarContext.SnackbarConsumer;
|
|
243
341
|
exports.SnackbarContext = SnackbarContext.SnackbarContext;
|
|
244
342
|
exports.SnackbarProvider = SnackbarProvider;
|
|
245
|
-
exports.StatusIcon = StatusIcon;
|
|
246
343
|
exports.Stepper = Stepper;
|
|
247
344
|
exports.Sticky = Sticky;
|
|
248
345
|
exports.Summary = Summary;
|
|
@@ -263,96 +360,6 @@ exports.useDirection = useDirection.useDirection;
|
|
|
263
360
|
exports.useLayout = useLayout.useLayout;
|
|
264
361
|
exports.useScreenSize = useScreenSize.useScreenSize;
|
|
265
362
|
exports.useSnackbar = useSnackbar;
|
|
266
|
-
exports.isBrowser = documentIosClick.isBrowser;
|
|
267
|
-
exports.isServerSide = documentIosClick.isServerSide;
|
|
268
|
-
Object.defineProperty(exports, "Theme", {
|
|
269
|
-
enumerable: true,
|
|
270
|
-
get: function () { return theme.Theme; }
|
|
271
|
-
});
|
|
272
|
-
Object.defineProperty(exports, "Direction", {
|
|
273
|
-
enumerable: true,
|
|
274
|
-
get: function () { return direction.Direction; }
|
|
275
|
-
});
|
|
276
|
-
Object.defineProperty(exports, "ControlType", {
|
|
277
|
-
enumerable: true,
|
|
278
|
-
get: function () { return control.ControlType; }
|
|
279
|
-
});
|
|
280
|
-
Object.defineProperty(exports, "Priority", {
|
|
281
|
-
enumerable: true,
|
|
282
|
-
get: function () { return control.Priority; }
|
|
283
|
-
});
|
|
284
|
-
Object.defineProperty(exports, "Breakpoint", {
|
|
285
|
-
enumerable: true,
|
|
286
|
-
get: function () { return breakpoint.Breakpoint; }
|
|
287
|
-
});
|
|
288
|
-
Object.defineProperty(exports, "Size", {
|
|
289
|
-
enumerable: true,
|
|
290
|
-
get: function () { return size.Size; }
|
|
291
|
-
});
|
|
292
|
-
Object.defineProperty(exports, "Typography", {
|
|
293
|
-
enumerable: true,
|
|
294
|
-
get: function () { return typography.Typography; }
|
|
295
|
-
});
|
|
296
|
-
Object.defineProperty(exports, "Width", {
|
|
297
|
-
enumerable: true,
|
|
298
|
-
get: function () { return width.Width; }
|
|
299
|
-
});
|
|
300
|
-
Object.defineProperty(exports, "Type", {
|
|
301
|
-
enumerable: true,
|
|
302
|
-
get: function () { return type.Type; }
|
|
303
|
-
});
|
|
304
|
-
Object.defineProperty(exports, "DateMode", {
|
|
305
|
-
enumerable: true,
|
|
306
|
-
get: function () { return dateMode.DateMode; }
|
|
307
|
-
});
|
|
308
|
-
Object.defineProperty(exports, "MonthFormat", {
|
|
309
|
-
enumerable: true,
|
|
310
|
-
get: function () { return monthFormat.MonthFormat; }
|
|
311
|
-
});
|
|
312
|
-
Object.defineProperty(exports, "Position", {
|
|
313
|
-
enumerable: true,
|
|
314
|
-
get: function () { return position.Position; }
|
|
315
|
-
});
|
|
316
|
-
Object.defineProperty(exports, "Layout", {
|
|
317
|
-
enumerable: true,
|
|
318
|
-
get: function () { return layouts.Layout; }
|
|
319
|
-
});
|
|
320
|
-
Object.defineProperty(exports, "Status", {
|
|
321
|
-
enumerable: true,
|
|
322
|
-
get: function () { return status.Status; }
|
|
323
|
-
});
|
|
324
|
-
Object.defineProperty(exports, "Sentiment", {
|
|
325
|
-
enumerable: true,
|
|
326
|
-
get: function () { return sentiment.Sentiment; }
|
|
327
|
-
});
|
|
328
|
-
Object.defineProperty(exports, "ProfileType", {
|
|
329
|
-
enumerable: true,
|
|
330
|
-
get: function () { return profileType.ProfileType; }
|
|
331
|
-
});
|
|
332
|
-
Object.defineProperty(exports, "Variant", {
|
|
333
|
-
enumerable: true,
|
|
334
|
-
get: function () { return variant.Variant; }
|
|
335
|
-
});
|
|
336
|
-
Object.defineProperty(exports, "Scroll", {
|
|
337
|
-
enumerable: true,
|
|
338
|
-
get: function () { return scroll.Scroll; }
|
|
339
|
-
});
|
|
340
|
-
Object.defineProperty(exports, "MarkdownNodeType", {
|
|
341
|
-
enumerable: true,
|
|
342
|
-
get: function () { return markdownNodeType.MarkdownNodeType; }
|
|
343
|
-
});
|
|
344
|
-
Object.defineProperty(exports, "FileType", {
|
|
345
|
-
enumerable: true,
|
|
346
|
-
get: function () { return fileType.FileType; }
|
|
347
|
-
});
|
|
348
|
-
exports.DEFAULT_LANG = index.DEFAULT_LANG;
|
|
349
|
-
exports.DEFAULT_LOCALE = index.DEFAULT_LOCALE;
|
|
350
|
-
exports.RTL_LANGUAGES = index.RTL_LANGUAGES;
|
|
351
|
-
exports.SUPPORTED_LANGUAGES = index.SUPPORTED_LANGUAGES;
|
|
352
|
-
exports.adjustLocale = index.adjustLocale;
|
|
353
|
-
exports.getCountryFromLocale = index.getCountryFromLocale;
|
|
354
|
-
exports.getDirectionFromLocale = index.getDirectionFromLocale;
|
|
355
|
-
exports.getLangFromLocale = index.getLangFromLocale;
|
|
356
363
|
exports.translations = index$1;
|
|
357
364
|
exports.withId = withId;
|
|
358
365
|
//# sourceMappingURL=index.js.map
|
package/build/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/build/index.mjs
CHANGED
|
@@ -6,8 +6,41 @@ export { default as SelectOption } from './selectOption/SelectOption.mjs';
|
|
|
6
6
|
export { default as Alert, AlertArrowPosition } from './alert/Alert.mjs';
|
|
7
7
|
export { AvatarType } from './avatar/avatarTypes.mjs';
|
|
8
8
|
export { default as Avatar } from './avatar/Avatar.mjs';
|
|
9
|
+
export { default as AvatarView } from './avatarView/AvatarView.mjs';
|
|
9
10
|
export { default as AvatarWrapper } from './avatarWrapper/AvatarWrapper.mjs';
|
|
10
11
|
export { default as Badge } from './badge/Badge.mjs';
|
|
12
|
+
export { default as StatusIcon } from './statusIcon/StatusIcon.mjs';
|
|
13
|
+
import '@wise/art';
|
|
14
|
+
import 'react';
|
|
15
|
+
import 'clsx';
|
|
16
|
+
export { Breakpoint } from './common/propsValues/breakpoint.mjs';
|
|
17
|
+
import 'react/jsx-runtime';
|
|
18
|
+
export { default as Image } from './image/Image.mjs';
|
|
19
|
+
import '@transferwise/icons';
|
|
20
|
+
export { isBrowser, isServerSide } from './common/domHelpers/documentIosClick.mjs';
|
|
21
|
+
export { Theme } from './common/theme.mjs';
|
|
22
|
+
export { Direction } from './common/direction.mjs';
|
|
23
|
+
export { ControlType, Priority } from './common/propsValues/control.mjs';
|
|
24
|
+
export { Size } from './common/propsValues/size.mjs';
|
|
25
|
+
export { Typography } from './common/propsValues/typography.mjs';
|
|
26
|
+
export { Width } from './common/propsValues/width.mjs';
|
|
27
|
+
export { Type } from './common/propsValues/type.mjs';
|
|
28
|
+
export { DateMode } from './common/propsValues/dateMode.mjs';
|
|
29
|
+
export { MonthFormat } from './common/propsValues/monthFormat.mjs';
|
|
30
|
+
export { Position } from './common/propsValues/position.mjs';
|
|
31
|
+
export { Layout } from './common/propsValues/layouts.mjs';
|
|
32
|
+
export { Status } from './common/propsValues/status.mjs';
|
|
33
|
+
export { Sentiment } from './common/propsValues/sentiment.mjs';
|
|
34
|
+
export { ProfileType } from './common/propsValues/profileType.mjs';
|
|
35
|
+
export { Variant } from './common/propsValues/variant.mjs';
|
|
36
|
+
export { Scroll } from './common/propsValues/scroll.mjs';
|
|
37
|
+
export { MarkdownNodeType } from './common/propsValues/markdownNodeType.mjs';
|
|
38
|
+
export { FileType } from './common/fileType.mjs';
|
|
39
|
+
export { DEFAULT_LANG, DEFAULT_LOCALE, RTL_LANGUAGES, SUPPORTED_LANGUAGES, adjustLocale, getCountryFromLocale, getDirectionFromLocale, getLangFromLocale } from './common/locale/index.mjs';
|
|
40
|
+
export { getInitials } from './common/initials.mjs';
|
|
41
|
+
export { getBrandColorFromSeed } from './common/colors.mjs';
|
|
42
|
+
import 'react-intl';
|
|
43
|
+
import './common/closeButton/CloseButton.messages.mjs';
|
|
11
44
|
export { default as Body } from './body/Body.mjs';
|
|
12
45
|
export { default as Button } from './button/Button.mjs';
|
|
13
46
|
export { default as Carousel } from './carousel/Carousel.mjs';
|
|
@@ -35,7 +68,6 @@ export { default as Emphasis } from './emphasis/Emphasis.mjs';
|
|
|
35
68
|
export { Field } from './field/Field.mjs';
|
|
36
69
|
export { default as FlowNavigation } from './flowNavigation/FlowNavigation.mjs';
|
|
37
70
|
export { Header } from './header/Header.mjs';
|
|
38
|
-
export { default as Image } from './image/Image.mjs';
|
|
39
71
|
export { InfoPresentation } from './info/infoPresentations.mjs';
|
|
40
72
|
export { default as Info } from './info/Info.mjs';
|
|
41
73
|
export { default as InlineAlert } from './inlineAlert/InlineAlert.mjs';
|
|
@@ -82,7 +114,6 @@ export { default as SlidingPanel } from './slidingPanel/SlidingPanel.mjs';
|
|
|
82
114
|
export { default as SnackbarPortal } from './snackbar/Snackbar.mjs';
|
|
83
115
|
export { SnackbarConsumer, SnackbarContext } from './snackbar/SnackbarContext.mjs';
|
|
84
116
|
export { default as SnackbarProvider } from './snackbar/SnackbarProvider.mjs';
|
|
85
|
-
export { default as StatusIcon } from './statusIcon/StatusIcon.mjs';
|
|
86
117
|
export { default as Stepper } from './stepper/Stepper.mjs';
|
|
87
118
|
export { default as Sticky } from './sticky/Sticky.mjs';
|
|
88
119
|
export { default as Summary } from './summary/Summary.mjs';
|
|
@@ -96,37 +127,10 @@ export { default as Typeahead } from './typeahead/Typeahead.mjs';
|
|
|
96
127
|
export { default as Upload, UploadStep } from './upload/Upload.mjs';
|
|
97
128
|
export { default as UploadInput } from './uploadInput/UploadInput.mjs';
|
|
98
129
|
import '@transferwise/neptune-validation';
|
|
99
|
-
import 'react';
|
|
100
130
|
export { useDirection } from './common/hooks/useDirection/useDirection.mjs';
|
|
101
131
|
export { useLayout } from './common/hooks/useLayout/useLayout.mjs';
|
|
102
132
|
export { useScreenSize } from './common/hooks/useScreenSize.mjs';
|
|
103
133
|
export { default as useSnackbar } from './snackbar/useSnackbar.mjs';
|
|
104
|
-
export { isBrowser, isServerSide } from './common/domHelpers/documentIosClick.mjs';
|
|
105
|
-
export { Theme } from './common/theme.mjs';
|
|
106
|
-
export { Direction } from './common/direction.mjs';
|
|
107
|
-
export { ControlType, Priority } from './common/propsValues/control.mjs';
|
|
108
|
-
export { Breakpoint } from './common/propsValues/breakpoint.mjs';
|
|
109
|
-
export { Size } from './common/propsValues/size.mjs';
|
|
110
|
-
export { Typography } from './common/propsValues/typography.mjs';
|
|
111
|
-
export { Width } from './common/propsValues/width.mjs';
|
|
112
|
-
export { Type } from './common/propsValues/type.mjs';
|
|
113
|
-
export { DateMode } from './common/propsValues/dateMode.mjs';
|
|
114
|
-
export { MonthFormat } from './common/propsValues/monthFormat.mjs';
|
|
115
|
-
export { Position } from './common/propsValues/position.mjs';
|
|
116
|
-
export { Layout } from './common/propsValues/layouts.mjs';
|
|
117
|
-
export { Status } from './common/propsValues/status.mjs';
|
|
118
|
-
export { Sentiment } from './common/propsValues/sentiment.mjs';
|
|
119
|
-
export { ProfileType } from './common/propsValues/profileType.mjs';
|
|
120
|
-
export { Variant } from './common/propsValues/variant.mjs';
|
|
121
|
-
export { Scroll } from './common/propsValues/scroll.mjs';
|
|
122
|
-
export { MarkdownNodeType } from './common/propsValues/markdownNodeType.mjs';
|
|
123
|
-
export { FileType } from './common/fileType.mjs';
|
|
124
|
-
export { DEFAULT_LANG, DEFAULT_LOCALE, RTL_LANGUAGES, SUPPORTED_LANGUAGES, adjustLocale, getCountryFromLocale, getDirectionFromLocale, getLangFromLocale } from './common/locale/index.mjs';
|
|
125
|
-
import '@transferwise/icons';
|
|
126
|
-
import 'clsx';
|
|
127
|
-
import 'react-intl';
|
|
128
|
-
import './common/closeButton/CloseButton.messages.mjs';
|
|
129
|
-
import 'react/jsx-runtime';
|
|
130
134
|
export { default as translations } from './i18n/index.mjs';
|
|
131
135
|
export { default as withId } from './withId/withId.mjs';
|
|
132
136
|
//# sourceMappingURL=index.mjs.map
|
package/build/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/build/main.css
CHANGED
|
@@ -469,6 +469,77 @@ div.critical-comms .critical-comms-body {
|
|
|
469
469
|
.np-theme-personal .tw-avatar--outlined:not(.disabled):not(:disabled):hover {
|
|
470
470
|
border-color: var(--color-interactive-primary-hover);
|
|
471
471
|
}
|
|
472
|
+
.np-notification-dot {
|
|
473
|
+
--np-notification-dot-size: 14px;
|
|
474
|
+
position: relative;
|
|
475
|
+
display: inline-block;
|
|
476
|
+
}
|
|
477
|
+
.np-notification-dot-mask {
|
|
478
|
+
-webkit-mask-image: radial-gradient(circle at bottom calc(100% - (var(--np-notification-dot-size) / 2)) left calc(100% - (var(--np-notification-dot-size) / 2)), transparent 0, transparent calc(var(--np-notification-dot-size) / 2 + var(--np-notification-dot-offset)), black 0);
|
|
479
|
+
mask-image: radial-gradient(circle at bottom calc(100% - (var(--np-notification-dot-size) / 2)) left calc(100% - (var(--np-notification-dot-size) / 2)), transparent 0, transparent calc(var(--np-notification-dot-size) / 2 + var(--np-notification-dot-offset)), black 0);
|
|
480
|
+
-webkit-mask-image: radial-gradient(circle at bottom calc(100% - calc(var(--np-notification-dot-size) / 2)) left calc(100% - calc(var(--np-notification-dot-size) / 2)), transparent 0, transparent calc(var(--np-notification-dot-size) / 2 + var(--np-notification-dot-offset)), black 0);
|
|
481
|
+
mask-image: radial-gradient(circle at bottom calc(100% - calc(var(--np-notification-dot-size) / 2)) left calc(100% - calc(var(--np-notification-dot-size) / 2)), transparent 0, transparent calc(var(--np-notification-dot-size) / 2 + var(--np-notification-dot-offset)), black 0);
|
|
482
|
+
}
|
|
483
|
+
.np-notification-dot-badge {
|
|
484
|
+
position: absolute;
|
|
485
|
+
width: var(--np-notification-dot-size);
|
|
486
|
+
height: var(--np-notification-dot-size);
|
|
487
|
+
background-color: var(--color-sentiment-negative);
|
|
488
|
+
border-radius: 9999px;
|
|
489
|
+
border-radius: var(--radius-full);
|
|
490
|
+
right: 0;
|
|
491
|
+
}
|
|
492
|
+
.np-avatar-view .np-avatar-view-content {
|
|
493
|
+
color: var(--color-interactive-primary);
|
|
494
|
+
}
|
|
495
|
+
.np-avatar-view-interactive {
|
|
496
|
+
cursor: pointer;
|
|
497
|
+
}
|
|
498
|
+
.np-avatar-view-interactive .np-circle {
|
|
499
|
+
background-color: rgba(134,167,189,0.10196);
|
|
500
|
+
background-color: var(--color-background-neutral);
|
|
501
|
+
}
|
|
502
|
+
.np-avatar-view-interactive:hover {
|
|
503
|
+
background-color: var(--color-background-neutral-hover);
|
|
504
|
+
}
|
|
505
|
+
.np-avatar-view-interactive:active {
|
|
506
|
+
background-color: var(--color-background-neutral-active);
|
|
507
|
+
}
|
|
508
|
+
.np-avatar-view-non-interactive .np-circle {
|
|
509
|
+
background-color: transparent;
|
|
510
|
+
}
|
|
511
|
+
.np-avatar-view-non-interactive .np-avatar-view-content .wds-flag {
|
|
512
|
+
box-shadow: none;
|
|
513
|
+
}
|
|
514
|
+
.np-avatar-group {
|
|
515
|
+
display: inline-flex;
|
|
516
|
+
position: relative;
|
|
517
|
+
}
|
|
518
|
+
.np-avatar-group-diagonal {
|
|
519
|
+
width: var(--np-avatar-group-size);
|
|
520
|
+
height: var(--np-avatar-group-size);
|
|
521
|
+
}
|
|
522
|
+
.np-avatar-group-diagonal-mask {
|
|
523
|
+
-webkit-mask-image: radial-gradient(circle at bottom calc(100% - var(--np-avatar-group-size) / 1.5) right calc(100% - var(--np-avatar-group-size) / 1.5), transparent 0, transparent calc(var(--np-avatar-group-single-size) / 2 + 0.5px), black 0);
|
|
524
|
+
mask-image: radial-gradient(circle at bottom calc(100% - var(--np-avatar-group-size) / 1.5) right calc(100% - var(--np-avatar-group-size) / 1.5), transparent 0, transparent calc(var(--np-avatar-group-single-size) / 2 + 0.5px), black 0);
|
|
525
|
+
}
|
|
526
|
+
.np-avatar-group-diagonal-child {
|
|
527
|
+
position: absolute;
|
|
528
|
+
top: var(--np-avatar-group-diagonal-child-position);
|
|
529
|
+
right: 0;
|
|
530
|
+
}
|
|
531
|
+
.np-avatar-group-horizontal {
|
|
532
|
+
height: var(--np-avatar-group-size);
|
|
533
|
+
}
|
|
534
|
+
.np-avatar-group-horizontal-mask {
|
|
535
|
+
-webkit-mask-image: radial-gradient(circle at top calc(100% - var(--np-avatar-group-single-size) / 2) right calc((100% - var(--np-avatar-group-single-size) / 1.5) * -1), transparent 0, transparent calc((var(--np-avatar-group-single-size) / 2.5) + var(--np-avatar-group-horizontal-child-position)), black 0);
|
|
536
|
+
mask-image: radial-gradient(circle at top calc(100% - var(--np-avatar-group-single-size) / 2) right calc((100% - var(--np-avatar-group-single-size) / 1.5) * -1), transparent 0, transparent calc((var(--np-avatar-group-single-size) / 2.5) + var(--np-avatar-group-horizontal-child-position)), black 0);
|
|
537
|
+
-webkit-mask-image: radial-gradient(circle at top calc(100% - var(--np-avatar-group-single-size) / 2) right calc(calc(100% - var(--np-avatar-group-single-size) / 1.5) * -1), transparent 0, transparent calc(calc(var(--np-avatar-group-single-size) / 2.5) + var(--np-avatar-group-horizontal-child-position)), black 0);
|
|
538
|
+
mask-image: radial-gradient(circle at top calc(100% - var(--np-avatar-group-single-size) / 2) right calc(calc(100% - var(--np-avatar-group-single-size) / 1.5) * -1), transparent 0, transparent calc(calc(var(--np-avatar-group-single-size) / 2.5) + var(--np-avatar-group-horizontal-child-position)), black 0);
|
|
539
|
+
}
|
|
540
|
+
.np-avatar-group-horizontal-child {
|
|
541
|
+
margin-left: calc(var(--np-avatar-group-horizontal-child-position) * -1);
|
|
542
|
+
}
|
|
472
543
|
.tw-badge {
|
|
473
544
|
position: relative;
|
|
474
545
|
display: inline-block;
|
|
@@ -476,6 +547,7 @@ div.critical-comms .critical-comms-body {
|
|
|
476
547
|
--badge-mask: 2px;
|
|
477
548
|
--badge-mask-offset: calc(var(--badge-size) / 2);
|
|
478
549
|
--badge-border-color: rgba(255, 255, 255, 0.08);
|
|
550
|
+
--badge-content-position: 0px;
|
|
479
551
|
}
|
|
480
552
|
.tw-badge.tw-badge-lg {
|
|
481
553
|
--badge-size: 24px;
|
|
@@ -485,8 +557,8 @@ div.critical-comms .critical-comms-body {
|
|
|
485
557
|
--badge-border-color: rgba(0, 0, 0, 0.08);
|
|
486
558
|
}
|
|
487
559
|
.tw-badge > .tw-badge__children {
|
|
488
|
-
-webkit-mask-image: radial-gradient(circle at top calc(100% - var(--badge-mask-offset)) left calc(100% - var(--badge-mask-offset)), transparent 0, transparent calc(var(--badge-size) / 2 + var(--badge-mask)), black calc(var(--badge-size) / 2 + var(--badge-mask) + 0.5px));
|
|
489
|
-
mask-image: radial-gradient(circle at top calc(100% - var(--badge-mask-offset)) left calc(100% - var(--badge-mask-offset)), transparent 0, transparent calc(var(--badge-size) / 2 + var(--badge-mask)), black calc(var(--badge-size) / 2 + var(--badge-mask) + 0.5px));
|
|
560
|
+
-webkit-mask-image: radial-gradient(circle at top calc(100% - var(--badge-mask-offset) - var(--badge-content-position)) left calc(100% - var(--badge-mask-offset) - var(--badge-content-position)), transparent 0, transparent calc(var(--badge-size) / 2 + var(--badge-mask)), black calc(var(--badge-size) / 2 + var(--badge-mask) + 0.5px));
|
|
561
|
+
mask-image: radial-gradient(circle at top calc(100% - var(--badge-mask-offset) - var(--badge-content-position)) left calc(100% - var(--badge-mask-offset) - var(--badge-content-position)), transparent 0, transparent calc(var(--badge-size) / 2 + var(--badge-mask)), black calc(var(--badge-size) / 2 + var(--badge-mask) + 0.5px));
|
|
490
562
|
}
|
|
491
563
|
[dir="rtl"] .tw-badge > .tw-badge__children {
|
|
492
564
|
-webkit-mask-image: radial-gradient(circle at top calc(100% - var(--badge-mask-offset)) right calc(100% - var(--badge-mask-offset)), transparent 0, transparent calc(var(--badge-size) / 2 + var(--badge-mask)), black calc(var(--badge-size) / 2 + var(--badge-mask) + 0.5px));
|
|
@@ -496,8 +568,8 @@ div.critical-comms .critical-comms-body {
|
|
|
496
568
|
position: absolute;
|
|
497
569
|
width: var(--badge-size);
|
|
498
570
|
height: var(--badge-size);
|
|
499
|
-
bottom:
|
|
500
|
-
right:
|
|
571
|
+
bottom: var(--badge-content-position);
|
|
572
|
+
right: var(--badge-content-position);
|
|
501
573
|
box-sizing: border-box;
|
|
502
574
|
border-radius: 50%;
|
|
503
575
|
text-align: center;
|
|
@@ -510,7 +582,7 @@ div.critical-comms .critical-comms-body {
|
|
|
510
582
|
user-select: none;
|
|
511
583
|
}
|
|
512
584
|
[dir="rtl"] .tw-badge > .tw-badge__content {
|
|
513
|
-
left:
|
|
585
|
+
left: var(--badge-content-position);
|
|
514
586
|
right: auto;
|
|
515
587
|
right: initial;
|
|
516
588
|
}
|
|
@@ -1211,11 +1283,43 @@ div.critical-comms .critical-comms-body {
|
|
|
1211
1283
|
width: var(--circle-size);
|
|
1212
1284
|
height: var(--circle-size);
|
|
1213
1285
|
flex-shrink: 0;
|
|
1286
|
+
--circle-border-color: var(--color-border-neutral);
|
|
1287
|
+
--circle-border-width: 1px;
|
|
1288
|
+
font-size: var(--circle-font-size);
|
|
1289
|
+
font-weight: 600;
|
|
1290
|
+
font-weight: var(--font-weight-semi-bold);
|
|
1291
|
+
line-height: 1;
|
|
1292
|
+
}
|
|
1293
|
+
.np-circle .np-display {
|
|
1294
|
+
font-size: var(--circle-font-size);
|
|
1214
1295
|
}
|
|
1215
1296
|
.np-circle .tw-icon > svg {
|
|
1216
1297
|
height: var(--circle-icon-size);
|
|
1217
1298
|
width: var(--circle-icon-size);
|
|
1218
1299
|
}
|
|
1300
|
+
.np-circle img,
|
|
1301
|
+
.np-circle .wds-flag {
|
|
1302
|
+
border-radius: 9999px;
|
|
1303
|
+
border-radius: var(--radius-full);
|
|
1304
|
+
width: 100%;
|
|
1305
|
+
height: 100%;
|
|
1306
|
+
-o-object-fit: cover;
|
|
1307
|
+
object-fit: cover;
|
|
1308
|
+
}
|
|
1309
|
+
.np-circle-border {
|
|
1310
|
+
position: relative;
|
|
1311
|
+
}
|
|
1312
|
+
.np-circle-border::after {
|
|
1313
|
+
content: "";
|
|
1314
|
+
position: absolute;
|
|
1315
|
+
top: 0;
|
|
1316
|
+
left: 0;
|
|
1317
|
+
width: 100%;
|
|
1318
|
+
height: 100%;
|
|
1319
|
+
border-radius: 9999px;
|
|
1320
|
+
border-radius: var(--radius-full);
|
|
1321
|
+
box-shadow: inset 0 0 0 var(--circle-border-width) var(--circle-border-color);
|
|
1322
|
+
}
|
|
1219
1323
|
.np-bottom-sheet {
|
|
1220
1324
|
border-radius: 10px 10px 0 0;
|
|
1221
1325
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
.np-avatar-group {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
position: relative;
|
|
4
|
+
}
|
|
5
|
+
.np-avatar-group-diagonal {
|
|
6
|
+
width: var(--np-avatar-group-size);
|
|
7
|
+
height: var(--np-avatar-group-size);
|
|
8
|
+
}
|
|
9
|
+
.np-avatar-group-diagonal-mask {
|
|
10
|
+
-webkit-mask-image: radial-gradient(circle at bottom calc(100% - var(--np-avatar-group-size) / 1.5) right calc(100% - var(--np-avatar-group-size) / 1.5), transparent 0, transparent calc(var(--np-avatar-group-single-size) / 2 + 0.5px), black 0);
|
|
11
|
+
mask-image: radial-gradient(circle at bottom calc(100% - var(--np-avatar-group-size) / 1.5) right calc(100% - var(--np-avatar-group-size) / 1.5), transparent 0, transparent calc(var(--np-avatar-group-single-size) / 2 + 0.5px), black 0);
|
|
12
|
+
}
|
|
13
|
+
.np-avatar-group-diagonal-child {
|
|
14
|
+
position: absolute;
|
|
15
|
+
top: var(--np-avatar-group-diagonal-child-position);
|
|
16
|
+
right: 0;
|
|
17
|
+
}
|
|
18
|
+
.np-avatar-group-horizontal {
|
|
19
|
+
height: var(--np-avatar-group-size);
|
|
20
|
+
}
|
|
21
|
+
.np-avatar-group-horizontal-mask {
|
|
22
|
+
-webkit-mask-image: radial-gradient(circle at top calc(100% - var(--np-avatar-group-single-size) / 2) right calc((100% - var(--np-avatar-group-single-size) / 1.5) * -1), transparent 0, transparent calc((var(--np-avatar-group-single-size) / 2.5) + var(--np-avatar-group-horizontal-child-position)), black 0);
|
|
23
|
+
mask-image: radial-gradient(circle at top calc(100% - var(--np-avatar-group-single-size) / 2) right calc((100% - var(--np-avatar-group-single-size) / 1.5) * -1), transparent 0, transparent calc((var(--np-avatar-group-single-size) / 2.5) + var(--np-avatar-group-horizontal-child-position)), black 0);
|
|
24
|
+
-webkit-mask-image: radial-gradient(circle at top calc(100% - var(--np-avatar-group-single-size) / 2) right calc(calc(100% - var(--np-avatar-group-single-size) / 1.5) * -1), transparent 0, transparent calc(calc(var(--np-avatar-group-single-size) / 2.5) + var(--np-avatar-group-horizontal-child-position)), black 0);
|
|
25
|
+
mask-image: radial-gradient(circle at top calc(100% - var(--np-avatar-group-single-size) / 2) right calc(calc(100% - var(--np-avatar-group-single-size) / 1.5) * -1), transparent 0, transparent calc(calc(var(--np-avatar-group-single-size) / 2.5) + var(--np-avatar-group-horizontal-child-position)), black 0);
|
|
26
|
+
}
|
|
27
|
+
.np-avatar-group-horizontal-child {
|
|
28
|
+
margin-left: calc(var(--np-avatar-group-horizontal-child-position) * -1);
|
|
29
|
+
}
|