@stokr/components-library 4.0.1 → 4.1.0
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/README.md +1 -1
- package/dist/components/AdminDashboard/Table/Table.styles.js +6 -2
- package/dist/components/BackButton/BackButton.js +10 -14
- package/dist/components/BackButton/BackButton.styles.js +7 -4
- package/dist/components/ChartLegend/ChartLegend.styles.js +4 -2
- package/dist/components/Checkbox/Checkbox.js +5 -1
- package/dist/components/Checkbox/Checkbox.styles.js +12 -27
- package/dist/components/Checklist/ChecklistCard.js +6 -6
- package/dist/components/Checklist/ChecklistCard.styles.js +0 -39
- package/dist/components/Chips/Chip.js +14 -1
- package/dist/components/Chips/Chip.styles.js +4 -3
- package/dist/components/CryptoAddress/CryptoAddress.styles.js +15 -94
- package/dist/components/CryptoAddressWrapper/CryptoAddressWrapper.styles.js +7 -10
- package/dist/components/FAQ/FAQ.styles.js +6 -2
- package/dist/components/IdentityInfo/IdentityInfo.styles.js +1 -1
- package/dist/components/InfoBox/InfoBox.js +4 -2
- package/dist/components/InfoIcon/InfoIcon.js +24 -28
- package/dist/components/InfoIcon/InfoIcon.styles.d.ts +1 -1
- package/dist/components/InfoIcon/InfoIcon.styles.js +4 -3
- package/dist/components/Input/InputPassword.js +2 -1
- package/dist/components/Input/Select.js +0 -2
- package/dist/components/Input/Select.styles.js +5 -2
- package/dist/components/MaterialIcon/MaterialIcon.d.ts +5 -3
- package/dist/components/MaterialIcon/MaterialIcon.js +9 -5
- package/dist/components/MaterialIcon/MaterialIcon.styles.d.ts +5 -5
- package/dist/components/MaterialIcon/MaterialIcon.styles.js +2 -2
- package/dist/components/MaterialIcon/glyph.d.ts +5 -0
- package/dist/components/MaterialIcon/glyph.js +8 -0
- package/dist/components/MaterialIcon/iconConfig.d.ts +1 -1
- package/dist/components/MaterialIcon/requiredIcons.d.ts +5 -0
- package/dist/components/MaterialIcon/requiredIcons.js +21 -0
- package/dist/components/Modal/Modal.js +27 -31
- package/dist/components/Modal/Modal.styles.d.ts +3 -3
- package/dist/components/Modal/Modal.styles.js +31 -51
- package/dist/components/Modal/PaymentModal.js +10 -3
- package/dist/components/Modal/SideModal.js +45 -49
- package/dist/components/Pagination/Pagination.js +3 -3
- package/dist/components/Payment/TimerComponent.js +2 -3
- package/dist/components/Process/Process.styles.js +13 -18
- package/dist/components/ProfileBox/ProfileBox.styles.js +8 -8
- package/dist/components/RequestDataBox/RequestDataBox.styles.js +2 -3
- package/dist/components/StatusTag/StatusTag.js +2 -2
- package/dist/components/TaxResidenceCard/TaxResidenceCard.js +0 -2
- package/dist/components/TaxResidenceCard/TaxResidenceCard.styles.js +4 -2
- package/dist/components/TextLink/TextLink.styles.js +11 -20
- package/dist/components/Timeline/Timeline.styles.js +1 -1
- package/dist/components/Timeline/TimelineStep.js +2 -2
- package/dist/index.d.ts +1 -4
- package/dist/index.js +32 -38
- package/dist/styles/global.js +0 -5
- package/dist/styles/rwd.d.ts +7 -2
- package/dist/styles/rwd.js +7 -2
- package/package.json +3 -4
- package/dist/components/Icon/Icon.style.js +0 -92
- package/dist/static/fonts/Ionicons/Ionicons.ttf +0 -0
- package/dist/static/fonts/Ionicons/Ionicons.ttf.js +0 -4
- package/dist/static/fonts/Ionicons/Ionicons.woff +0 -0
- package/dist/static/fonts/Ionicons/Ionicons.woff.js +0 -4
- package/dist/static/fonts/Ionicons/Ionicons.woff2 +0 -0
- package/dist/static/fonts/Ionicons/Ionicons.woff2.js +0 -4
- package/dist/static/fonts/Ionicons/ionicons.min.css +0 -2810
- package/dist/static/fonts/Ionicons/ionicons.min.css.js +0 -4
- package/dist/static/fonts/icomoon/icomoon.eot +0 -0
- package/dist/static/fonts/icomoon/icomoon.eot.js +0 -4
- package/dist/static/fonts/icomoon/icomoon.svg +0 -53
- package/dist/static/fonts/icomoon/icomoon.svg.js +0 -4
- package/dist/static/fonts/icomoon/icomoon.ttf +0 -0
- package/dist/static/fonts/icomoon/icomoon.ttf.js +0 -4
- package/dist/static/fonts/icomoon/icomoon.woff +0 -0
- package/dist/static/fonts/icomoon/icomoon.woff.js +0 -4
- package/dist/static/fonts/icomoon/selection.json +0 -910
- package/dist/static/fonts/icomoon/style.css +0 -139
- package/dist/static/images/copy_icon.svg +0 -4
- package/dist/static/images/copy_icon.svg.js +0 -5
- package/dist/styles/fonts.js +0 -35
- package/dist/styles/ioniconsStyles.js +0 -34
package/dist/index.js
CHANGED
|
@@ -19,7 +19,6 @@ import { FAQ } from "./components/FAQ/FAQ.js";
|
|
|
19
19
|
import { Form } from "./components/Form/Form.js";
|
|
20
20
|
import { Card, CardHeader, CardHeaderRegular, CardLeftText, CardRightText, CardTitle, CardTitleContainer } from "./components/Card/Card.styles.js";
|
|
21
21
|
import { Column, FlexContainer, FlexGrid, PageWrapper, Row, Wrapper } from "./components/Grid/Grid.styles.js";
|
|
22
|
-
import { Icon, TooltipIcon, iconsMap } from "./components/Icon/Icon.style.js";
|
|
23
22
|
import { InfoIcon } from "./components/InfoIcon/InfoIcon.js";
|
|
24
23
|
import { Tooltip } from "./components/Tooltip/Tooltip.js";
|
|
25
24
|
import { Bubble } from "./components/Tooltip/Tooltip.styles.js";
|
|
@@ -47,6 +46,7 @@ import { Skeleton, SkeletonLines, SkeletonStatus } from "./components/Skeleton/S
|
|
|
47
46
|
import { Collapsible } from "./components/Collapsible/Collapsible.js";
|
|
48
47
|
import { ICON_SIZES, MaterialIcon, SvgIcon } from "./components/MaterialIcon/MaterialIcon.js";
|
|
49
48
|
import { registerMaterialIcons } from "./components/MaterialIcon/iconConfig.js";
|
|
49
|
+
import { requiredMaterialIcons } from "./components/MaterialIcon/requiredIcons.js";
|
|
50
50
|
import { Section } from "./components/Section/Section.js";
|
|
51
51
|
import { CardTabs, TabPanel } from "./components/CardTabs/CardTabs.js";
|
|
52
52
|
import { TabCard, TabCardBody, TabHighlightBase, tabColorTransition } from "./components/CardTabs/CardTabs.styles.js";
|
|
@@ -110,48 +110,46 @@ import { useTimer } from "./hooks/useTimer.js";
|
|
|
110
110
|
import { useTransactionPolling } from "./hooks/useTransactionPolling.js";
|
|
111
111
|
import { useMediaQuery } from "./hooks/useMediaQuery.js";
|
|
112
112
|
import { colors } from "./styles/colors.js";
|
|
113
|
-
import { default as default3 } from "./styles/fonts.js";
|
|
114
113
|
import { GlobalStyle } from "./styles/global.js";
|
|
115
|
-
import {
|
|
116
|
-
import { default as default4,
|
|
117
|
-
import {
|
|
118
|
-
import { radius, space, default as default6 } from "./styles/spacing.js";
|
|
114
|
+
import { default as default3, layoutGrid } from "./styles/grid.js";
|
|
115
|
+
import { DisplayOnBreakpoint, getMedia, media, mediaQuery, default as default4, rwdMax, sizes } from "./styles/rwd.js";
|
|
116
|
+
import { radius, space, default as default5 } from "./styles/spacing.js";
|
|
119
117
|
import { elevation } from "./styles/elevation.js";
|
|
120
118
|
import { fontWeight, typography } from "./styles/typography.js";
|
|
121
|
-
import { default as
|
|
119
|
+
import { default as default6 } from "./styles/theme.js";
|
|
122
120
|
import { ProjectTypes, emailRegex, transactionTypeDisplayNames } from "./constants/globalVariables.js";
|
|
123
|
-
import { default as
|
|
121
|
+
import { default as default7 } from "./components/SvgIcons/AdminBadgeSvg.js";
|
|
124
122
|
import { ArrowSimple } from "./components/icons/ArrowSimple.js";
|
|
125
123
|
import { BackButtonIcon, StyledBackButton, StyledBackButtonExternal, StyledWindowBackButton } from "./components/BackButton/BackButton.styles.js";
|
|
126
124
|
import { Breakdown } from "./components/breakdown/Breakdown.js";
|
|
127
|
-
import { default as
|
|
125
|
+
import { default as default8 } from "./components/SvgIcons/CapsLockSvg.js";
|
|
128
126
|
import { FaqContent, FaqDropdownIcon, FaqItem, FaqItems, FaqText, FaqTitle } from "./components/FAQ/FAQ.styles.js";
|
|
129
127
|
import * as Flags from "country-flag-icons/react/3x2";
|
|
130
128
|
import { FormContainer, FormError, FormField, FormInfo } from "./components/Form/Form.styles.js";
|
|
131
129
|
import { FieldLabel, FieldValue } from "./components/IdentityInfo/IdentityInfo.styles.js";
|
|
132
|
-
import { Container, Icon
|
|
130
|
+
import { Container, Icon } from "./components/InfoIcon/InfoIcon.styles.js";
|
|
133
131
|
import { Label, InputWrap, Wrapper as Wrapper2 } from "./components/Input/Input.styles.js";
|
|
134
132
|
import { LinkText, Scroll, StyledTab, StyledTabs, TabsWrapper } from "./components/TabsNav/TabsNav.styles.js";
|
|
135
133
|
import { Logo } from "./components/logo/Logo.js";
|
|
136
|
-
import { default as
|
|
134
|
+
import { default as default9 } from "./components/SvgIcons/LogoSvg.js";
|
|
137
135
|
import { ModalBack, Box, ModalClose, Dimmer, ModalInner, ModalInnerSmartContractAddress, ModalInnerWithBorder, ModalLink, ModalLinkWrap, ModalRoot, ModalScroll } from "./components/Modal/Modal.styles.js";
|
|
138
|
-
import { default as
|
|
136
|
+
import { default as default10 } from "./components/SvgIcons/RefreshSvg.js";
|
|
139
137
|
import { SelectContainer, SelectControl, SelectIcon, SelectMenu, SelectMenuList, SelectOption, SelectValueContainer, SelectWrapper } from "./components/Input/Select.styles.js";
|
|
140
138
|
import { Snackbar } from "./components/Snackbar/Snackbar.js";
|
|
141
139
|
import { SnackbarContext, SnackbarProvider } from "./components/Snackbar/SnackbarProvider.js";
|
|
142
|
-
import { default as
|
|
143
|
-
import { default as
|
|
144
|
-
import { default as
|
|
145
|
-
import { default as
|
|
140
|
+
import { default as default11 } from "./components/SvgIcons/SocialFacebook.js";
|
|
141
|
+
import { default as default12 } from "./components/SvgIcons/SocialLinkedIn.js";
|
|
142
|
+
import { default as default13 } from "./components/SvgIcons/SocialTelegram.js";
|
|
143
|
+
import { default as default14 } from "./components/SvgIcons/SocialTwitter.js";
|
|
146
144
|
import { StyledReactTable, Styles, TableWrap } from "./components/AdminDashboard/Table/Table.styles.js";
|
|
147
145
|
import { SuccessModal, SuccessModal as SuccessModal2, showProgress, showSuccess } from "./components/Modal/SuccessModal/SuccessModal.js";
|
|
148
146
|
import { Tab } from "./components/Tabs/Tabs.styles.js";
|
|
149
|
-
import { default as
|
|
150
|
-
import { default as
|
|
147
|
+
import { default as default15 } from "./components/TabsNav/TabNav.js";
|
|
148
|
+
import { default as default16 } from "./components/SvgIcons/VerifiedBadge.js";
|
|
151
149
|
import { copyTextToClipboard } from "./utils/copy-text-to-clipboard.js";
|
|
152
150
|
import { useSnackbar } from "./components/Snackbar/useSnackbar.js";
|
|
153
151
|
export {
|
|
154
|
-
|
|
152
|
+
default7 as AdminBadgeSvg,
|
|
155
153
|
AgreementItem,
|
|
156
154
|
AnimatedSpan,
|
|
157
155
|
ArrowSimple,
|
|
@@ -163,7 +161,7 @@ export {
|
|
|
163
161
|
Breakdown,
|
|
164
162
|
Button,
|
|
165
163
|
CURRENCY_CONFIG,
|
|
166
|
-
|
|
164
|
+
default8 as CapsLockSvg,
|
|
167
165
|
Card,
|
|
168
166
|
CardHeader,
|
|
169
167
|
CardHeaderRegular,
|
|
@@ -222,7 +220,6 @@ export {
|
|
|
222
220
|
GlobalStyle,
|
|
223
221
|
HeroVideoBlock,
|
|
224
222
|
ICON_SIZES,
|
|
225
|
-
Icon,
|
|
226
223
|
IdentityCountryRow,
|
|
227
224
|
FieldLabel as IdentityFieldLabel,
|
|
228
225
|
FieldValue as IdentityFieldValue,
|
|
@@ -231,7 +228,7 @@ export {
|
|
|
231
228
|
InfoBox,
|
|
232
229
|
InfoIcon,
|
|
233
230
|
Container as InfoIconContainer,
|
|
234
|
-
|
|
231
|
+
Icon as InfoIconWrapper,
|
|
235
232
|
Inner,
|
|
236
233
|
Input,
|
|
237
234
|
Label as InputLabel,
|
|
@@ -239,12 +236,11 @@ export {
|
|
|
239
236
|
InputWithButton,
|
|
240
237
|
InputWrap,
|
|
241
238
|
Wrapper2 as InputWrapper,
|
|
242
|
-
IoniconsStyles,
|
|
243
239
|
LOTTIE_ANIMATIONS,
|
|
244
240
|
LinkText,
|
|
245
241
|
LoadingDots,
|
|
246
242
|
Logo,
|
|
247
|
-
|
|
243
|
+
default9 as LogoSvg,
|
|
248
244
|
LottieAnimation,
|
|
249
245
|
MaterialIcon,
|
|
250
246
|
MemoCryptoAddress,
|
|
@@ -289,7 +285,7 @@ export {
|
|
|
289
285
|
ReactTable,
|
|
290
286
|
ReactTableWrapper,
|
|
291
287
|
RefreshButton,
|
|
292
|
-
|
|
288
|
+
default10 as RefreshSvg,
|
|
293
289
|
RequestDataBox,
|
|
294
290
|
Row,
|
|
295
291
|
SIDE_MODAL_BACKDROP,
|
|
@@ -318,10 +314,10 @@ export {
|
|
|
318
314
|
Snackbar,
|
|
319
315
|
SnackbarContext,
|
|
320
316
|
SnackbarProvider,
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
317
|
+
default11 as SocialFacebook,
|
|
318
|
+
default12 as SocialLinkedIn,
|
|
319
|
+
default13 as SocialTelegram,
|
|
320
|
+
default14 as SocialTwitter,
|
|
325
321
|
SpanButton,
|
|
326
322
|
StatusDot,
|
|
327
323
|
StatusTag,
|
|
@@ -346,7 +342,7 @@ export {
|
|
|
346
342
|
TabCard,
|
|
347
343
|
TabCardBody,
|
|
348
344
|
TabHighlightBase,
|
|
349
|
-
|
|
345
|
+
default15 as TabNav,
|
|
350
346
|
TabPanel,
|
|
351
347
|
TableFilterDropdown,
|
|
352
348
|
TableWrap,
|
|
@@ -365,10 +361,9 @@ export {
|
|
|
365
361
|
TimerComponent,
|
|
366
362
|
Tooltip,
|
|
367
363
|
Bubble as TooltipBubble,
|
|
368
|
-
TooltipIcon,
|
|
369
364
|
TrackH,
|
|
370
365
|
TrackV,
|
|
371
|
-
|
|
366
|
+
default16 as VerifiedBadge,
|
|
372
367
|
Wrapper,
|
|
373
368
|
capitalize,
|
|
374
369
|
colors,
|
|
@@ -380,7 +375,6 @@ export {
|
|
|
380
375
|
emailRegex,
|
|
381
376
|
fixDecimals,
|
|
382
377
|
flatten,
|
|
383
|
-
default3 as fontFaces,
|
|
384
378
|
fontWeight,
|
|
385
379
|
formatAmount,
|
|
386
380
|
formatAmountForDisplay,
|
|
@@ -401,8 +395,7 @@ export {
|
|
|
401
395
|
getPasswordEntropy,
|
|
402
396
|
getProjectCurrencySign,
|
|
403
397
|
getUnitInfo,
|
|
404
|
-
|
|
405
|
-
iconsMap,
|
|
398
|
+
default3 as grid,
|
|
406
399
|
interpolate,
|
|
407
400
|
isCopyKey,
|
|
408
401
|
isExternalUrl,
|
|
@@ -422,9 +415,10 @@ export {
|
|
|
422
415
|
projectUnit,
|
|
423
416
|
radius,
|
|
424
417
|
registerMaterialIcons,
|
|
418
|
+
requiredMaterialIcons,
|
|
425
419
|
resolveCopy,
|
|
426
420
|
roundTo,
|
|
427
|
-
|
|
421
|
+
default4 as rwd,
|
|
428
422
|
rwdMax,
|
|
429
423
|
sanitizeAmountInput,
|
|
430
424
|
saveAs,
|
|
@@ -435,10 +429,10 @@ export {
|
|
|
435
429
|
showSuccess,
|
|
436
430
|
sizes,
|
|
437
431
|
space,
|
|
438
|
-
|
|
432
|
+
default5 as spacing,
|
|
439
433
|
t,
|
|
440
434
|
tabColorTransition,
|
|
441
|
-
|
|
435
|
+
default6 as theme,
|
|
442
436
|
toCsv,
|
|
443
437
|
toFixedAmount,
|
|
444
438
|
tokenUnit,
|
package/dist/styles/global.js
CHANGED
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import { createGlobalStyle } from "styled-components";
|
|
2
2
|
import "react-day-picker/style.css";
|
|
3
3
|
import { colors } from "./colors.js";
|
|
4
|
-
import fontFaces from "./fonts.js";
|
|
5
|
-
import ioniconsCss from "../static/fonts/Ionicons/ionicons.min.css.js";
|
|
6
4
|
const GlobalStyle = createGlobalStyle`
|
|
7
|
-
${fontFaces}
|
|
8
|
-
${ioniconsCss}
|
|
9
|
-
|
|
10
5
|
* ,
|
|
11
6
|
*:before ,
|
|
12
7
|
*:after {
|
package/dist/styles/rwd.d.ts
CHANGED
|
@@ -6,15 +6,17 @@ export declare const sizes: {
|
|
|
6
6
|
readonly MLarge: "992px";
|
|
7
7
|
readonly Large: "1024px";
|
|
8
8
|
readonly XLarge: "1440px";
|
|
9
|
+
/** Max width of the public pages. */
|
|
10
|
+
readonly Wide: "1920px";
|
|
9
11
|
readonly XXLarge: "2560px";
|
|
10
12
|
};
|
|
11
13
|
export type Breakpoint = keyof typeof sizes;
|
|
12
14
|
/** `css` tagged template that wraps its rules in a media query: rwd.MLarge`display: none;` */
|
|
13
15
|
type MediaTemplate = <P extends object = any>(first: TemplateStringsArray | CSSObject, ...interpolations: Interpolation<P>[]) => RuleSet<P>;
|
|
14
16
|
/** Rules from the breakpoint up (min-width). */
|
|
15
|
-
export declare const rwd: Record<"Small" | "Mobile" | "Medium" | "MLarge" | "Large" | "XLarge" | "XXLarge", MediaTemplate>;
|
|
17
|
+
export declare const rwd: Record<"Small" | "Mobile" | "Medium" | "MLarge" | "Large" | "XLarge" | "Wide" | "XXLarge", MediaTemplate>;
|
|
16
18
|
/** Rules up to the breakpoint (max-width). */
|
|
17
|
-
export declare const rwdMax: Record<"Small" | "Mobile" | "Medium" | "MLarge" | "Large" | "XLarge" | "XXLarge", MediaTemplate>;
|
|
19
|
+
export declare const rwdMax: Record<"Small" | "Mobile" | "Medium" | "MLarge" | "Large" | "XLarge" | "Wide" | "XXLarge", MediaTemplate>;
|
|
18
20
|
/** Media query string for `matchMedia`, e.g. `(min-width: 992px)`. */
|
|
19
21
|
export declare const getMedia: (breakpoint: Breakpoint) => string;
|
|
20
22
|
/** Media query strings, for `matchMedia` / `useMediaQuery`. */
|
|
@@ -24,6 +26,7 @@ export declare const mediaQuery: {
|
|
|
24
26
|
/** Below this (992px) is the mobile layout. */
|
|
25
27
|
readonly desktopUp: string;
|
|
26
28
|
readonly desktopXlUp: string;
|
|
29
|
+
readonly wideUp: string;
|
|
27
30
|
};
|
|
28
31
|
/** `@media` rules for styled-components. `belowX` is the exact complement of `xUp`. */
|
|
29
32
|
export declare const media: {
|
|
@@ -31,10 +34,12 @@ export declare const media: {
|
|
|
31
34
|
readonly tabletUp: `@media ${string}`;
|
|
32
35
|
readonly desktopUp: `@media ${string}`;
|
|
33
36
|
readonly desktopXlUp: `@media ${string}`;
|
|
37
|
+
readonly wideUp: `@media ${string}`;
|
|
34
38
|
readonly belowMobile: `@media not all and ${string}`;
|
|
35
39
|
readonly belowTablet: `@media not all and ${string}`;
|
|
36
40
|
readonly belowDesktop: `@media not all and ${string}`;
|
|
37
41
|
readonly belowDesktopXl: `@media not all and ${string}`;
|
|
42
|
+
readonly belowWide: `@media not all and ${string}`;
|
|
38
43
|
};
|
|
39
44
|
interface DisplayOnBreakpointProps {
|
|
40
45
|
breakpoint: Breakpoint;
|
package/dist/styles/rwd.js
CHANGED
|
@@ -6,6 +6,8 @@ const sizes = {
|
|
|
6
6
|
MLarge: "992px",
|
|
7
7
|
Large: "1024px",
|
|
8
8
|
XLarge: "1440px",
|
|
9
|
+
/** Max width of the public pages. */
|
|
10
|
+
Wide: "1920px",
|
|
9
11
|
XXLarge: "2560px"
|
|
10
12
|
};
|
|
11
13
|
const sizeNames = Object.keys(sizes);
|
|
@@ -27,17 +29,20 @@ const mediaQuery = {
|
|
|
27
29
|
tabletUp: getMedia("Medium"),
|
|
28
30
|
/** Below this (992px) is the mobile layout. */
|
|
29
31
|
desktopUp: getMedia("MLarge"),
|
|
30
|
-
desktopXlUp: getMedia("XLarge")
|
|
32
|
+
desktopXlUp: getMedia("XLarge"),
|
|
33
|
+
wideUp: getMedia("Wide")
|
|
31
34
|
};
|
|
32
35
|
const media = {
|
|
33
36
|
mobileUp: `@media ${mediaQuery.mobileUp}`,
|
|
34
37
|
tabletUp: `@media ${mediaQuery.tabletUp}`,
|
|
35
38
|
desktopUp: `@media ${mediaQuery.desktopUp}`,
|
|
36
39
|
desktopXlUp: `@media ${mediaQuery.desktopXlUp}`,
|
|
40
|
+
wideUp: `@media ${mediaQuery.wideUp}`,
|
|
37
41
|
belowMobile: `@media not all and ${mediaQuery.mobileUp}`,
|
|
38
42
|
belowTablet: `@media not all and ${mediaQuery.tabletUp}`,
|
|
39
43
|
belowDesktop: `@media not all and ${mediaQuery.desktopUp}`,
|
|
40
|
-
belowDesktopXl: `@media not all and ${mediaQuery.desktopXlUp}
|
|
44
|
+
belowDesktopXl: `@media not all and ${mediaQuery.desktopXlUp}`,
|
|
45
|
+
belowWide: `@media not all and ${mediaQuery.wideUp}`
|
|
41
46
|
};
|
|
42
47
|
const DisplayOnBreakpoint = styled.div.withConfig({
|
|
43
48
|
shouldForwardProp: (prop) => !["fullscreen", "down", "up", "breakpoint"].includes(prop)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stokr/components-library",
|
|
3
|
-
"version": "4.0
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"description": "STOKR - Components Library",
|
|
5
5
|
"author": "Bilal Hodzic <bilal@stokr.io>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -18,13 +18,11 @@
|
|
|
18
18
|
"import": "./dist/index.js",
|
|
19
19
|
"default": "./dist/index.js"
|
|
20
20
|
},
|
|
21
|
-
"./ionicons.css": "./dist/static/fonts/Ionicons/ionicons.min.css",
|
|
22
21
|
"./dist/*": "./dist/static/*"
|
|
23
22
|
},
|
|
24
23
|
"sideEffects": [
|
|
25
24
|
"**/*.css",
|
|
26
|
-
"./dist/styles/global.js"
|
|
27
|
-
"./dist/styles/ioniconsStyles.js"
|
|
25
|
+
"./dist/styles/global.js"
|
|
28
26
|
],
|
|
29
27
|
"repository": {
|
|
30
28
|
"type": "git",
|
|
@@ -84,6 +82,7 @@
|
|
|
84
82
|
"@eslint-react/eslint-plugin": "^1.53.1",
|
|
85
83
|
"@eslint/js": "^9.39.2",
|
|
86
84
|
"@material-symbols/svg-400": "0.48.0",
|
|
85
|
+
"@material-symbols/svg-600": "0.48.0",
|
|
87
86
|
"@storybook/addon-docs": "^10.6.0",
|
|
88
87
|
"@storybook/addon-links": "^10.6.0",
|
|
89
88
|
"@storybook/builder-vite": "^10.6.0",
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import styled, { css } from "styled-components";
|
|
2
|
-
const iconsMap = {
|
|
3
|
-
expand: "\\e923",
|
|
4
|
-
shrink: "\\e924",
|
|
5
|
-
emoji: "\\e922",
|
|
6
|
-
arrowDown: "\\e900",
|
|
7
|
-
arrowLeft: "\\e901",
|
|
8
|
-
arrowRight: "\\e902",
|
|
9
|
-
arrowUp: "\\e903",
|
|
10
|
-
heart: "\\e904",
|
|
11
|
-
heartFill: "\\e921",
|
|
12
|
-
lock: "\\e905",
|
|
13
|
-
menu: "\\e906",
|
|
14
|
-
pen: "\\e907",
|
|
15
|
-
star: "\\e908",
|
|
16
|
-
trash: "\\e909",
|
|
17
|
-
unread: "\\e90a",
|
|
18
|
-
user: "\\e90b",
|
|
19
|
-
edit: "\\e90c",
|
|
20
|
-
check: "\\e90d",
|
|
21
|
-
inProgress: "\\e90e",
|
|
22
|
-
warning: "\\e90f",
|
|
23
|
-
logout: "\\e910",
|
|
24
|
-
tokenHolder: "\\e911",
|
|
25
|
-
teams: "\\e912",
|
|
26
|
-
tokenSales: "\\e913",
|
|
27
|
-
analytics: "\\e914",
|
|
28
|
-
updates: "\\e915",
|
|
29
|
-
overview: "\\e916",
|
|
30
|
-
comments: "\\e917",
|
|
31
|
-
hamburger: "\\e918",
|
|
32
|
-
share: "\\e919",
|
|
33
|
-
facebook: "\\e91a",
|
|
34
|
-
linkedin: "\\e91b",
|
|
35
|
-
medium: "\\e91c",
|
|
36
|
-
reddit: "\\e91d",
|
|
37
|
-
telegram: "\\e91e",
|
|
38
|
-
twitter: "\\e91f",
|
|
39
|
-
youtube: "\\e920",
|
|
40
|
-
cog: "\\e926",
|
|
41
|
-
pin: "\\e925",
|
|
42
|
-
cross: "\\274C",
|
|
43
|
-
euro: "\\e93c"
|
|
44
|
-
};
|
|
45
|
-
const TooltipIcon = styled.i.attrs({
|
|
46
|
-
className: "ion ion-md-information-circle"
|
|
47
|
-
})`
|
|
48
|
-
position: relative;
|
|
49
|
-
left: -0.4px;
|
|
50
|
-
font-size: 18px;
|
|
51
|
-
opacity: 0.2;
|
|
52
|
-
transform: rotateY(180deg);
|
|
53
|
-
margin: 0 14px;
|
|
54
|
-
`;
|
|
55
|
-
const Icon = styled.i.withConfig({
|
|
56
|
-
shouldForwardProp: (props) => !["size", "color", "icon", "checklist"].includes(props)
|
|
57
|
-
})`
|
|
58
|
-
font-family: 'icomoon' !important;
|
|
59
|
-
speak: none;
|
|
60
|
-
font-style: normal;
|
|
61
|
-
font-weight: normal;
|
|
62
|
-
font-variant: normal;
|
|
63
|
-
text-transform: none;
|
|
64
|
-
line-height: 1;
|
|
65
|
-
|
|
66
|
-
${(props) => props.size && `
|
|
67
|
-
font-size: ${props.size}px;
|
|
68
|
-
`}
|
|
69
|
-
|
|
70
|
-
${(props) => props.color && `
|
|
71
|
-
color: ${props.color};
|
|
72
|
-
`}
|
|
73
|
-
|
|
74
|
-
/* Better Font Rendering =========== */
|
|
75
|
-
-webkit-font-smoothing: antialiased;
|
|
76
|
-
-moz-osx-font-smoothing: grayscale;
|
|
77
|
-
|
|
78
|
-
&::before {
|
|
79
|
-
content: '${(props) => props.icon}';
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
${({ checklist }) => checklist && css`
|
|
83
|
-
margin-left: 3px;
|
|
84
|
-
margin-right: 11px;
|
|
85
|
-
`}
|
|
86
|
-
`;
|
|
87
|
-
export {
|
|
88
|
-
Icon,
|
|
89
|
-
TooltipIcon,
|
|
90
|
-
Icon as default,
|
|
91
|
-
iconsMap
|
|
92
|
-
};
|
|
Binary file
|