@transferwise/components 0.0.0-experimental-d11e9c5 → 0.0.0-experimental-76bb7cd
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 +0 -3
- package/build/avatar/Avatar.js.map +1 -1
- package/build/avatar/Avatar.mjs +0 -3
- package/build/avatar/Avatar.mjs.map +1 -1
- package/build/avatarWrapper/AvatarWrapper.js +4 -10
- package/build/avatarWrapper/AvatarWrapper.js.map +1 -1
- package/build/avatarWrapper/AvatarWrapper.mjs +4 -10
- package/build/avatarWrapper/AvatarWrapper.mjs.map +1 -1
- package/build/badge/Badge.js +1 -3
- package/build/badge/Badge.js.map +1 -1
- package/build/badge/Badge.mjs +1 -3
- package/build/badge/Badge.mjs.map +1 -1
- 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 +1 -17
- package/build/common/circle/Circle.js.map +1 -1
- package/build/common/circle/Circle.mjs +1 -17
- package/build/common/circle/Circle.mjs.map +1 -1
- package/build/index.js +121 -128
- package/build/index.js.map +1 -1
- package/build/index.mjs +29 -33
- package/build/index.mjs.map +1 -1
- package/build/main.css +5 -109
- package/build/styles/badge/Badge.css +5 -6
- package/build/styles/common/circle/Circle.css +0 -32
- package/build/styles/main.css +5 -109
- package/build/types/avatar/Avatar.d.ts +0 -3
- package/build/types/avatar/Avatar.d.ts.map +1 -1
- package/build/types/avatarWrapper/AvatarWrapper.d.ts +0 -3
- package/build/types/avatarWrapper/AvatarWrapper.d.ts.map +1 -1
- package/build/types/badge/Badge.d.ts +1 -5
- package/build/types/badge/Badge.d.ts.map +1 -1
- package/build/types/badge/index.d.ts +0 -2
- 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 +0 -2
- package/build/types/common/circle/Circle.d.ts.map +1 -1
- package/build/types/index.d.ts +1 -3
- package/build/types/index.d.ts.map +1 -1
- package/build/types/test-utils/index.d.ts +158 -0
- package/build/types/test-utils/index.d.ts.map +1 -0
- package/build/types/test-utils/jest.setup.d.ts +2 -0
- package/build/types/test-utils/jest.setup.d.ts.map +1 -0
- package/package.json +4 -3
- package/src/avatar/Avatar.tsx +0 -3
- package/src/avatarWrapper/AvatarWrapper.tsx +0 -3
- package/src/badge/Badge.css +5 -6
- package/src/badge/Badge.less +3 -4
- package/src/badge/Badge.tsx +1 -8
- package/src/badge/index.ts +0 -3
- package/src/button/{Button.spec.js → Button.spec.tsx} +3 -2
- package/src/button/Button.tsx +1 -1
- package/src/button/legacyUtils/{legacyUtils.spec.js → legacyUtils.spec.tsx} +1 -1
- package/src/button/legacyUtils/legacyUtils.ts +2 -2
- package/src/common/circle/Circle.css +0 -32
- package/src/common/circle/Circle.less +0 -35
- package/src/common/circle/Circle.tsx +1 -22
- package/src/decision/Decision.story.tsx +46 -10
- package/src/flowNavigation/FlowNavigation.story.tsx +48 -10
- package/src/index.ts +0 -4
- package/src/listItem/ListItem.story.tsx +43 -5
- package/src/main.css +5 -109
- package/src/main.less +0 -2
- package/src/modal/{Modal.rtl.spec.js → Modal.rtl.spec.tsx} +8 -7
- package/src/navigationOption/NavigationOption.story.tsx +65 -14
- package/src/overlayHeader/OverlayHeader.story.tsx +10 -5
- package/src/radio/Radio.story.tsx +5 -5
- package/src/radioGroup/RadioGroup.story.tsx +3 -3
- package/src/selectOption/SelectOption.story.tsx +30 -31
- package/src/slidingPanel/SlidingPanel.spec.js +1 -1
- package/src/ssr.spec.tsx +264 -0
- package/src/test-utils/{index.js → index.tsx} +11 -6
- package/src/test-utils/{jest.setup.js → jest.setup.ts} +13 -8
- package/src/tile/Tile.story.tsx +6 -2
- package/build/avatarView/AvatarView.js +0 -163
- package/build/avatarView/AvatarView.js.map +0 -1
- package/build/avatarView/AvatarView.mjs +0 -161
- package/build/avatarView/AvatarView.mjs.map +0 -1
- package/build/avatarView/NotificationDot.js +0 -59
- package/build/avatarView/NotificationDot.js.map +0 -1
- package/build/avatarView/NotificationDot.mjs +0 -57
- package/build/avatarView/NotificationDot.mjs.map +0 -1
- package/build/badge/BadgeAssets.js +0 -85
- package/build/badge/BadgeAssets.js.map +0 -1
- package/build/badge/BadgeAssets.mjs +0 -83
- package/build/badge/BadgeAssets.mjs.map +0 -1
- package/build/styles/avatarGroup/AvatarGroup.css +0 -29
- package/build/styles/avatarView/AvatarView.css +0 -42
- package/build/styles/avatarView/NotificationDot.css +0 -20
- package/build/types/avatarGroup/AvatarGroup.d.ts +0 -18
- package/build/types/avatarGroup/AvatarGroup.d.ts.map +0 -1
- package/build/types/avatarGroup/index.d.ts +0 -3
- package/build/types/avatarGroup/index.d.ts.map +0 -1
- package/build/types/avatarView/AvatarView.d.ts +0 -19
- package/build/types/avatarView/AvatarView.d.ts.map +0 -1
- package/build/types/avatarView/NotificationDot.d.ts +0 -8
- package/build/types/avatarView/NotificationDot.d.ts.map +0 -1
- package/build/types/avatarView/index.d.ts +0 -3
- package/build/types/avatarView/index.d.ts.map +0 -1
- package/build/types/badge/BadgeAssets.d.ts +0 -15
- package/build/types/badge/BadgeAssets.d.ts.map +0 -1
- package/src/avatarGroup/AvatarGroup.css +0 -29
- package/src/avatarGroup/AvatarGroup.less +0 -42
- package/src/avatarGroup/AvatarGroup.story.tsx +0 -284
- package/src/avatarGroup/AvatarGroup.tsx +0 -117
- package/src/avatarGroup/index.ts +0 -2
- package/src/avatarView/AvatarView.css +0 -42
- package/src/avatarView/AvatarView.less +0 -33
- package/src/avatarView/AvatarView.story.tsx +0 -425
- package/src/avatarView/AvatarView.tsx +0 -141
- package/src/avatarView/NotificationDot.css +0 -20
- package/src/avatarView/NotificationDot.less +0 -24
- package/src/avatarView/NotificationDot.tsx +0 -35
- package/src/avatarView/index.ts +0 -2
- package/src/badge/BadgeAssets.tsx +0 -65
- package/src/ssr.spec.js +0 -256
- /package/src/button/__snapshots__/{Button.spec.js.snap → Button.spec.tsx.snap} +0 -0
- /package/src/dimmer/{Dimmer.rtl.spec.js → Dimmer.rtl.spec.tsx} +0 -0
- /package/src/info/{Info.spec.js → Info.spec.jsx} +0 -0
package/build/index.js
CHANGED
|
@@ -8,41 +8,8 @@ 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');
|
|
12
11
|
var AvatarWrapper = require('./avatarWrapper/AvatarWrapper.js');
|
|
13
12
|
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');
|
|
46
13
|
var Body = require('./body/Body.js');
|
|
47
14
|
var Button = require('./button/Button.js');
|
|
48
15
|
var Carousel = require('./carousel/Carousel.js');
|
|
@@ -70,6 +37,7 @@ var Emphasis = require('./emphasis/Emphasis.js');
|
|
|
70
37
|
var Field = require('./field/Field.js');
|
|
71
38
|
var FlowNavigation = require('./flowNavigation/FlowNavigation.js');
|
|
72
39
|
var Header = require('./header/Header.js');
|
|
40
|
+
var Image = require('./image/Image.js');
|
|
73
41
|
var infoPresentations = require('./info/infoPresentations.js');
|
|
74
42
|
var Info = require('./info/Info.js');
|
|
75
43
|
var InlineAlert = require('./inlineAlert/InlineAlert.js');
|
|
@@ -116,6 +84,7 @@ var SlidingPanel = require('./slidingPanel/SlidingPanel.js');
|
|
|
116
84
|
var Snackbar = require('./snackbar/Snackbar.js');
|
|
117
85
|
var SnackbarContext = require('./snackbar/SnackbarContext.js');
|
|
118
86
|
var SnackbarProvider = require('./snackbar/SnackbarProvider.js');
|
|
87
|
+
var StatusIcon = require('./statusIcon/StatusIcon.js');
|
|
119
88
|
var Stepper = require('./stepper/Stepper.js');
|
|
120
89
|
var Sticky = require('./sticky/Sticky.js');
|
|
121
90
|
var Summary = require('./summary/Summary.js');
|
|
@@ -129,10 +98,37 @@ var Typeahead = require('./typeahead/Typeahead.js');
|
|
|
129
98
|
var Upload = require('./upload/Upload.js');
|
|
130
99
|
var UploadInput = require('./uploadInput/UploadInput.js');
|
|
131
100
|
require('@transferwise/neptune-validation');
|
|
101
|
+
require('react');
|
|
132
102
|
var useDirection = require('./common/hooks/useDirection/useDirection.js');
|
|
133
103
|
var useLayout = require('./common/hooks/useLayout/useLayout.js');
|
|
134
104
|
var useScreenSize = require('./common/hooks/useScreenSize.js');
|
|
135
105
|
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');
|
|
136
132
|
var index$1 = require('./i18n/index.js');
|
|
137
133
|
var withId = require('./withId/withId.js');
|
|
138
134
|
|
|
@@ -152,103 +148,8 @@ Object.defineProperty(exports, "AvatarType", {
|
|
|
152
148
|
get: function () { return avatarTypes.AvatarType; }
|
|
153
149
|
});
|
|
154
150
|
exports.Avatar = Avatar;
|
|
155
|
-
exports.AvatarView = AvatarView;
|
|
156
151
|
exports.AvatarWrapper = AvatarWrapper;
|
|
157
152
|
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;
|
|
252
153
|
exports.Body = Body;
|
|
253
154
|
exports.Button = Button;
|
|
254
155
|
exports.Carousel = Carousel;
|
|
@@ -284,6 +185,7 @@ exports.Emphasis = Emphasis;
|
|
|
284
185
|
exports.Field = Field.Field;
|
|
285
186
|
exports.FlowNavigation = FlowNavigation;
|
|
286
187
|
exports.Header = Header.Header;
|
|
188
|
+
exports.Image = Image.default;
|
|
287
189
|
Object.defineProperty(exports, "InfoPresentation", {
|
|
288
190
|
enumerable: true,
|
|
289
191
|
get: function () { return infoPresentations.InfoPresentation; }
|
|
@@ -340,6 +242,7 @@ exports.SnackbarPortal = Snackbar.default;
|
|
|
340
242
|
exports.SnackbarConsumer = SnackbarContext.SnackbarConsumer;
|
|
341
243
|
exports.SnackbarContext = SnackbarContext.SnackbarContext;
|
|
342
244
|
exports.SnackbarProvider = SnackbarProvider;
|
|
245
|
+
exports.StatusIcon = StatusIcon;
|
|
343
246
|
exports.Stepper = Stepper;
|
|
344
247
|
exports.Sticky = Sticky;
|
|
345
248
|
exports.Summary = Summary;
|
|
@@ -360,6 +263,96 @@ exports.useDirection = useDirection.useDirection;
|
|
|
360
263
|
exports.useLayout = useLayout.useLayout;
|
|
361
264
|
exports.useScreenSize = useScreenSize.useScreenSize;
|
|
362
265
|
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;
|
|
363
356
|
exports.translations = index$1;
|
|
364
357
|
exports.withId = withId;
|
|
365
358
|
//# 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,41 +6,8 @@ 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';
|
|
10
9
|
export { default as AvatarWrapper } from './avatarWrapper/AvatarWrapper.mjs';
|
|
11
10
|
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';
|
|
44
11
|
export { default as Body } from './body/Body.mjs';
|
|
45
12
|
export { default as Button } from './button/Button.mjs';
|
|
46
13
|
export { default as Carousel } from './carousel/Carousel.mjs';
|
|
@@ -68,6 +35,7 @@ export { default as Emphasis } from './emphasis/Emphasis.mjs';
|
|
|
68
35
|
export { Field } from './field/Field.mjs';
|
|
69
36
|
export { default as FlowNavigation } from './flowNavigation/FlowNavigation.mjs';
|
|
70
37
|
export { Header } from './header/Header.mjs';
|
|
38
|
+
export { default as Image } from './image/Image.mjs';
|
|
71
39
|
export { InfoPresentation } from './info/infoPresentations.mjs';
|
|
72
40
|
export { default as Info } from './info/Info.mjs';
|
|
73
41
|
export { default as InlineAlert } from './inlineAlert/InlineAlert.mjs';
|
|
@@ -114,6 +82,7 @@ export { default as SlidingPanel } from './slidingPanel/SlidingPanel.mjs';
|
|
|
114
82
|
export { default as SnackbarPortal } from './snackbar/Snackbar.mjs';
|
|
115
83
|
export { SnackbarConsumer, SnackbarContext } from './snackbar/SnackbarContext.mjs';
|
|
116
84
|
export { default as SnackbarProvider } from './snackbar/SnackbarProvider.mjs';
|
|
85
|
+
export { default as StatusIcon } from './statusIcon/StatusIcon.mjs';
|
|
117
86
|
export { default as Stepper } from './stepper/Stepper.mjs';
|
|
118
87
|
export { default as Sticky } from './sticky/Sticky.mjs';
|
|
119
88
|
export { default as Summary } from './summary/Summary.mjs';
|
|
@@ -127,10 +96,37 @@ export { default as Typeahead } from './typeahead/Typeahead.mjs';
|
|
|
127
96
|
export { default as Upload, UploadStep } from './upload/Upload.mjs';
|
|
128
97
|
export { default as UploadInput } from './uploadInput/UploadInput.mjs';
|
|
129
98
|
import '@transferwise/neptune-validation';
|
|
99
|
+
import 'react';
|
|
130
100
|
export { useDirection } from './common/hooks/useDirection/useDirection.mjs';
|
|
131
101
|
export { useLayout } from './common/hooks/useLayout/useLayout.mjs';
|
|
132
102
|
export { useScreenSize } from './common/hooks/useScreenSize.mjs';
|
|
133
103
|
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';
|
|
134
130
|
export { default as translations } from './i18n/index.mjs';
|
|
135
131
|
export { default as withId } from './withId/withId.mjs';
|
|
136
132
|
//# 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,77 +469,6 @@ 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
|
-
}
|
|
543
472
|
.tw-badge {
|
|
544
473
|
position: relative;
|
|
545
474
|
display: inline-block;
|
|
@@ -547,7 +476,6 @@ div.critical-comms .critical-comms-body {
|
|
|
547
476
|
--badge-mask: 2px;
|
|
548
477
|
--badge-mask-offset: calc(var(--badge-size) / 2);
|
|
549
478
|
--badge-border-color: rgba(255, 255, 255, 0.08);
|
|
550
|
-
--badge-content-position: 0px;
|
|
551
479
|
}
|
|
552
480
|
.tw-badge.tw-badge-lg {
|
|
553
481
|
--badge-size: 24px;
|
|
@@ -557,8 +485,8 @@ div.critical-comms .critical-comms-body {
|
|
|
557
485
|
--badge-border-color: rgba(0, 0, 0, 0.08);
|
|
558
486
|
}
|
|
559
487
|
.tw-badge > .tw-badge__children {
|
|
560
|
-
-webkit-mask-image: radial-gradient(circle at top calc(100% - var(--badge-mask-offset)
|
|
561
|
-
mask-image: radial-gradient(circle at top calc(100% - var(--badge-mask-offset)
|
|
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));
|
|
562
490
|
}
|
|
563
491
|
[dir="rtl"] .tw-badge > .tw-badge__children {
|
|
564
492
|
-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));
|
|
@@ -568,8 +496,8 @@ div.critical-comms .critical-comms-body {
|
|
|
568
496
|
position: absolute;
|
|
569
497
|
width: var(--badge-size);
|
|
570
498
|
height: var(--badge-size);
|
|
571
|
-
bottom:
|
|
572
|
-
right:
|
|
499
|
+
bottom: 0;
|
|
500
|
+
right: 0;
|
|
573
501
|
box-sizing: border-box;
|
|
574
502
|
border-radius: 50%;
|
|
575
503
|
text-align: center;
|
|
@@ -582,7 +510,7 @@ div.critical-comms .critical-comms-body {
|
|
|
582
510
|
user-select: none;
|
|
583
511
|
}
|
|
584
512
|
[dir="rtl"] .tw-badge > .tw-badge__content {
|
|
585
|
-
left:
|
|
513
|
+
left: 0;
|
|
586
514
|
right: auto;
|
|
587
515
|
right: initial;
|
|
588
516
|
}
|
|
@@ -1283,43 +1211,11 @@ div.critical-comms .critical-comms-body {
|
|
|
1283
1211
|
width: var(--circle-size);
|
|
1284
1212
|
height: var(--circle-size);
|
|
1285
1213
|
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);
|
|
1295
1214
|
}
|
|
1296
1215
|
.np-circle .tw-icon > svg {
|
|
1297
1216
|
height: var(--circle-icon-size);
|
|
1298
1217
|
width: var(--circle-icon-size);
|
|
1299
1218
|
}
|
|
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
|
-
}
|
|
1323
1219
|
.np-bottom-sheet {
|
|
1324
1220
|
border-radius: 10px 10px 0 0;
|
|
1325
1221
|
}
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
--badge-mask: 2px;
|
|
6
6
|
--badge-mask-offset: calc(var(--badge-size) / 2);
|
|
7
7
|
--badge-border-color: rgba(255, 255, 255, 0.08);
|
|
8
|
-
--badge-content-position: 0px;
|
|
9
8
|
}
|
|
10
9
|
.tw-badge.tw-badge-lg {
|
|
11
10
|
--badge-size: 24px;
|
|
@@ -15,8 +14,8 @@
|
|
|
15
14
|
--badge-border-color: rgba(0, 0, 0, 0.08);
|
|
16
15
|
}
|
|
17
16
|
.tw-badge > .tw-badge__children {
|
|
18
|
-
-webkit-mask-image: radial-gradient(circle at top calc(100% - var(--badge-mask-offset)
|
|
19
|
-
mask-image: radial-gradient(circle at top calc(100% - var(--badge-mask-offset)
|
|
17
|
+
-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));
|
|
18
|
+
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));
|
|
20
19
|
}
|
|
21
20
|
[dir="rtl"] .tw-badge > .tw-badge__children {
|
|
22
21
|
-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));
|
|
@@ -26,8 +25,8 @@
|
|
|
26
25
|
position: absolute;
|
|
27
26
|
width: var(--badge-size);
|
|
28
27
|
height: var(--badge-size);
|
|
29
|
-
bottom:
|
|
30
|
-
right:
|
|
28
|
+
bottom: 0;
|
|
29
|
+
right: 0;
|
|
31
30
|
box-sizing: border-box;
|
|
32
31
|
border-radius: 50%;
|
|
33
32
|
text-align: center;
|
|
@@ -40,7 +39,7 @@
|
|
|
40
39
|
user-select: none;
|
|
41
40
|
}
|
|
42
41
|
[dir="rtl"] .tw-badge > .tw-badge__content {
|
|
43
|
-
left:
|
|
42
|
+
left: 0;
|
|
44
43
|
right: auto;
|
|
45
44
|
right: initial;
|
|
46
45
|
}
|
|
@@ -4,40 +4,8 @@
|
|
|
4
4
|
width: var(--circle-size);
|
|
5
5
|
height: var(--circle-size);
|
|
6
6
|
flex-shrink: 0;
|
|
7
|
-
--circle-border-color: var(--color-border-neutral);
|
|
8
|
-
--circle-border-width: 1px;
|
|
9
|
-
font-size: var(--circle-font-size);
|
|
10
|
-
font-weight: 600;
|
|
11
|
-
font-weight: var(--font-weight-semi-bold);
|
|
12
|
-
line-height: 1;
|
|
13
|
-
}
|
|
14
|
-
.np-circle .np-display {
|
|
15
|
-
font-size: var(--circle-font-size);
|
|
16
7
|
}
|
|
17
8
|
.np-circle .tw-icon > svg {
|
|
18
9
|
height: var(--circle-icon-size);
|
|
19
10
|
width: var(--circle-icon-size);
|
|
20
11
|
}
|
|
21
|
-
.np-circle img,
|
|
22
|
-
.np-circle .wds-flag {
|
|
23
|
-
border-radius: 9999px;
|
|
24
|
-
border-radius: var(--radius-full);
|
|
25
|
-
width: 100%;
|
|
26
|
-
height: 100%;
|
|
27
|
-
-o-object-fit: cover;
|
|
28
|
-
object-fit: cover;
|
|
29
|
-
}
|
|
30
|
-
.np-circle-border {
|
|
31
|
-
position: relative;
|
|
32
|
-
}
|
|
33
|
-
.np-circle-border::after {
|
|
34
|
-
content: "";
|
|
35
|
-
position: absolute;
|
|
36
|
-
top: 0;
|
|
37
|
-
left: 0;
|
|
38
|
-
width: 100%;
|
|
39
|
-
height: 100%;
|
|
40
|
-
border-radius: 9999px;
|
|
41
|
-
border-radius: var(--radius-full);
|
|
42
|
-
box-shadow: inset 0 0 0 var(--circle-border-width) var(--circle-border-color);
|
|
43
|
-
}
|