@stokr/components-library 4.0.3 → 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.
Files changed (33) hide show
  1. package/README.md +1 -1
  2. package/dist/components/IdentityInfo/IdentityInfo.styles.js +1 -1
  3. package/dist/components/MaterialIcon/MaterialIcon.d.ts +3 -1
  4. package/dist/components/MaterialIcon/MaterialIcon.js +3 -2
  5. package/dist/components/MaterialIcon/iconConfig.d.ts +1 -1
  6. package/dist/components/Payment/TimerComponent.js +1 -3
  7. package/dist/components/RequestDataBox/RequestDataBox.styles.js +2 -3
  8. package/dist/components/Timeline/Timeline.styles.js +1 -1
  9. package/dist/index.d.ts +0 -4
  10. package/dist/index.js +30 -38
  11. package/dist/styles/global.js +0 -5
  12. package/package.json +3 -4
  13. package/dist/components/Icon/Icon.style.js +0 -71
  14. package/dist/static/fonts/Ionicons/Ionicons.ttf +0 -0
  15. package/dist/static/fonts/Ionicons/Ionicons.ttf.js +0 -4
  16. package/dist/static/fonts/Ionicons/Ionicons.woff +0 -0
  17. package/dist/static/fonts/Ionicons/Ionicons.woff.js +0 -4
  18. package/dist/static/fonts/Ionicons/Ionicons.woff2 +0 -0
  19. package/dist/static/fonts/Ionicons/Ionicons.woff2.js +0 -4
  20. package/dist/static/fonts/Ionicons/ionicons.min.css +0 -2810
  21. package/dist/static/fonts/Ionicons/ionicons.min.css.js +0 -4
  22. package/dist/static/fonts/icomoon/icomoon.eot +0 -0
  23. package/dist/static/fonts/icomoon/icomoon.eot.js +0 -4
  24. package/dist/static/fonts/icomoon/icomoon.svg +0 -53
  25. package/dist/static/fonts/icomoon/icomoon.svg.js +0 -4
  26. package/dist/static/fonts/icomoon/icomoon.ttf +0 -0
  27. package/dist/static/fonts/icomoon/icomoon.ttf.js +0 -4
  28. package/dist/static/fonts/icomoon/icomoon.woff +0 -0
  29. package/dist/static/fonts/icomoon/icomoon.woff.js +0 -4
  30. package/dist/static/fonts/icomoon/selection.json +0 -910
  31. package/dist/static/fonts/icomoon/style.css +0 -139
  32. package/dist/styles/fonts.js +0 -35
  33. package/dist/styles/ioniconsStyles.js +0 -34
package/README.md CHANGED
@@ -80,7 +80,7 @@ export default function App() {
80
80
 
81
81
  **3. Earlier config** (e.g. analytics before mount): `import { configure } from '@stokr/components-library'` with the same shape as `config`.
82
82
 
83
- **4. Icons / fonts** — Optional: `<IoniconsStyles />` at root, or rely on lazy injection when a component uses icons; for Layout / Open Sans: `import '@stokr/components-library/styles.css'`.
83
+ **4. Icons / fonts** — Icons are `MaterialIcon`: register the ones you use (and `requiredMaterialIcons`) with `registerMaterialIcons`. Open Sans comes from the host app; for Layout: `import '@stokr/components-library/styles.css'`.
84
84
 
85
85
  **5. Imports** — `import { ConfirmModal, Button, … } from '@stokr/components-library'`.
86
86
 
@@ -17,7 +17,7 @@ const SectionHeaderIconWrap = styled.span`
17
17
  justify-content: center;
18
18
  flex-shrink: 0;
19
19
 
20
- svg {
20
+ > svg {
21
21
  width: 18px;
22
22
  height: 18px;
23
23
  }
@@ -23,12 +23,14 @@ export interface MaterialIconProps extends IconBaseProps {
23
23
  name: MaterialIconName;
24
24
  variant?: 'outlined' | 'rounded' | 'sharp';
25
25
  filled?: boolean;
26
+ /** Stroke weight of the registered file: 400 (default) or another the app registered, e.g. `600`. */
27
+ weight?: number;
26
28
  }
27
29
  /**
28
30
  * A Material Symbol the app registered with `registerMaterialIcons`, drawn inline (in the server render too, no
29
31
  * request) in the text colour or `color`. An unregistered icon renders nothing.
30
32
  */
31
- export declare const MaterialIcon: ({ name, variant, filled, size, color, label, className, dataCy, }: MaterialIconProps) => import("react/jsx-runtime").JSX.Element;
33
+ export declare const MaterialIcon: ({ name, variant, filled, weight, size, color, label, className, dataCy, }: MaterialIconProps) => import("react/jsx-runtime").JSX.Element;
32
34
  export interface SvgIconProps extends IconBaseProps {
33
35
  /** An SVG React component (`import Logo from './logo.svg?react'`), or the URL of a single-colour SVG. */
34
36
  svg: ComponentType<SVGProps<SVGSVGElement>> | string;
@@ -8,18 +8,19 @@ const toLength = (size) => {
8
8
  return Object.prototype.hasOwnProperty.call(ICON_SIZES, size) ? `${ICON_SIZES[size]}px` : size;
9
9
  };
10
10
  const a11y = (label) => label ? { role: "img", "aria-label": label } : { "aria-hidden": true };
11
- const cssUrl = (url) => `url("${encodeURI(url).replace(/["'()]/g, (c) => `%${c.charCodeAt(0).toString(16)}`)}")`;
11
+ const cssUrl = (url) => `url("${(url.startsWith("data:") ? url : encodeURI(url)).replace(/["'()]/g, (c) => `%${c.charCodeAt(0).toString(16)}`)}")`;
12
12
  const MaterialIcon = ({
13
13
  name,
14
14
  variant = "outlined",
15
15
  filled = false,
16
+ weight = 400,
16
17
  size = "lg",
17
18
  color,
18
19
  label,
19
20
  className,
20
21
  dataCy
21
22
  }) => {
22
- const path = `${variant}/${name}${filled ? "-fill" : ""}`;
23
+ const path = `${variant}/${name}${filled ? "-fill" : ""}${weight === 400 ? "" : `@${weight}`}`;
23
24
  const svg = getRegisteredMaterialIcon(path);
24
25
  if (!svg) {
25
26
  return null;
@@ -11,7 +11,7 @@ export type MaterialIconName = MaterialIconRegistry extends {
11
11
  } ? K : string;
12
12
  type SvgComponent = ComponentType<SVGProps<SVGSVGElement>>;
13
13
  /**
14
- * Registers the Material Symbols an app uses, as SVG components keyed `<variant>/<name>` (`-fill` for filled): the
14
+ * Registers the Material Symbols an app uses, as SVG components keyed `<variant>/<name>` (`-fill` for filled, `@<weight>` for a weight other than 400): the
15
15
  * paths in the `@material-symbols/svg-<weight>` packages. Only these are bundled; `MaterialIcon` draws them inline.
16
16
  * Call once at module scope in an entry shared by server and client; with Module Federation the host's call covers
17
17
  * the remotes (the library is a shared singleton).
@@ -4,7 +4,6 @@ import { useTimer } from "../../hooks/useTimer.js";
4
4
  import styled from "styled-components";
5
5
  import { colors } from "../../styles/colors.js";
6
6
  import { Text } from "../Text/Text.styles.js";
7
- import { Icon } from "../Icon/Icon.style.js";
8
7
  import { MaterialIcon } from "../MaterialIcon/MaterialIcon.js";
9
8
  import { FlexContainer } from "../Grid/Grid.styles.js";
10
9
  import rwd from "../../styles/rwd.js";
@@ -57,7 +56,6 @@ const TimerComponent = memo(
57
56
  className,
58
57
  maxWidth,
59
58
  // Icon props
60
- icon,
61
59
  iconSize = 16,
62
60
  showIcon = true
63
61
  }) => {
@@ -74,7 +72,7 @@ const TimerComponent = memo(
74
72
  const formattedTime = [secondsRemaining / 3600, secondsRemaining % 3600 / 60, secondsRemaining % 60].map((part) => String(Math.floor(part)).padStart(2, "0")).join(":");
75
73
  return /* @__PURE__ */ jsx(TimerBlock, { red: isWarning, maxWidth, style: timerBlockStyle, className, children: /* @__PURE__ */ jsxs("div", { style: containerStyle, children: [
76
74
  /* @__PURE__ */ jsx(Text, { children: /* @__PURE__ */ jsxs(FlexContainer, { itemsCenter: true, style: { gap: 8 }, children: [
77
- showIcon && (icon ? /* @__PURE__ */ jsx(Icon, { icon, size: iconSize }) : /* @__PURE__ */ jsx(MaterialIcon, { name: "search_activity", size: iconSize })),
75
+ showIcon && /* @__PURE__ */ jsx(MaterialIcon, { name: "search_activity", size: iconSize }),
78
76
  /* @__PURE__ */ jsx("p", { children: /* @__PURE__ */ jsx("strong", { children: title }) })
79
77
  ] }) }),
80
78
  /* @__PURE__ */ jsx(Text, { children: /* @__PURE__ */ jsxs("p", { children: [
@@ -31,9 +31,8 @@ const Title = styled.div`
31
31
  letter-spacing: 0.6px;
32
32
  `;
33
33
  const Subtitle = styled.div`
34
- font-size: 9px;
35
- font-style: italic;
36
- line-height: 16px;
34
+ font-size: 12px;
35
+ line-height: 18px;
37
36
  letter-spacing: 0.4px;
38
37
  `;
39
38
  export {
@@ -65,7 +65,7 @@ const StepIcon = styled.div.withConfig({
65
65
  }
66
66
  }}
67
67
 
68
- svg path {
68
+ > svg path {
69
69
  stroke: ${colors.white};
70
70
  }
71
71
  `;
package/dist/index.d.ts CHANGED
@@ -201,8 +201,6 @@ export declare const CardRightText: AnyComponent, CardLeftText: AnyComponent
201
201
  export declare const CardHeader: AnyComponent, CardHeaderRegular: AnyComponent
202
202
  export declare const Wrapper: AnyComponent, Row: AnyComponent, Column: AnyComponent
203
203
  export declare const PageWrapper: AnyComponent, FlexContainer: AnyComponent, FlexGrid: AnyComponent
204
- export declare const Icon: AnyComponent, TooltipIcon: AnyComponent
205
- export declare const iconsMap: AnyValue
206
204
  export declare const SearchInput: AnyComponent
207
205
  export declare const DatePickerInput: AnyComponent
208
206
  export declare const InputPassword: AnyComponent
@@ -290,9 +288,7 @@ export declare const useTimer: AnyFn
290
288
  export declare const useTransactionPolling: AnyFn
291
289
 
292
290
  /* STYLES */
293
- export declare const fontFaces: AnyValue
294
291
  export declare const GlobalStyle: AnyComponent
295
- export declare const IoniconsStyles: ComponentType<{ children?: ReactNode }>
296
292
 
297
293
  /* CONSTANTS & VARIABLES */
298
294
  export declare const ProjectTypes: AnyValue
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";
@@ -111,48 +110,46 @@ import { useTimer } from "./hooks/useTimer.js";
111
110
  import { useTransactionPolling } from "./hooks/useTransactionPolling.js";
112
111
  import { useMediaQuery } from "./hooks/useMediaQuery.js";
113
112
  import { colors } from "./styles/colors.js";
114
- import { default as default3 } from "./styles/fonts.js";
115
113
  import { GlobalStyle } from "./styles/global.js";
116
- import { IoniconsStyles } from "./styles/ioniconsStyles.js";
117
- import { default as default4, layoutGrid } from "./styles/grid.js";
118
- import { DisplayOnBreakpoint, getMedia, media, mediaQuery, default as default5, rwdMax, sizes } from "./styles/rwd.js";
119
- 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";
120
117
  import { elevation } from "./styles/elevation.js";
121
118
  import { fontWeight, typography } from "./styles/typography.js";
122
- import { default as default7 } from "./styles/theme.js";
119
+ import { default as default6 } from "./styles/theme.js";
123
120
  import { ProjectTypes, emailRegex, transactionTypeDisplayNames } from "./constants/globalVariables.js";
124
- import { default as default8 } from "./components/SvgIcons/AdminBadgeSvg.js";
121
+ import { default as default7 } from "./components/SvgIcons/AdminBadgeSvg.js";
125
122
  import { ArrowSimple } from "./components/icons/ArrowSimple.js";
126
123
  import { BackButtonIcon, StyledBackButton, StyledBackButtonExternal, StyledWindowBackButton } from "./components/BackButton/BackButton.styles.js";
127
124
  import { Breakdown } from "./components/breakdown/Breakdown.js";
128
- import { default as default9 } from "./components/SvgIcons/CapsLockSvg.js";
125
+ import { default as default8 } from "./components/SvgIcons/CapsLockSvg.js";
129
126
  import { FaqContent, FaqDropdownIcon, FaqItem, FaqItems, FaqText, FaqTitle } from "./components/FAQ/FAQ.styles.js";
130
127
  import * as Flags from "country-flag-icons/react/3x2";
131
128
  import { FormContainer, FormError, FormField, FormInfo } from "./components/Form/Form.styles.js";
132
129
  import { FieldLabel, FieldValue } from "./components/IdentityInfo/IdentityInfo.styles.js";
133
- import { Container, Icon as Icon2 } from "./components/InfoIcon/InfoIcon.styles.js";
130
+ import { Container, Icon } from "./components/InfoIcon/InfoIcon.styles.js";
134
131
  import { Label, InputWrap, Wrapper as Wrapper2 } from "./components/Input/Input.styles.js";
135
132
  import { LinkText, Scroll, StyledTab, StyledTabs, TabsWrapper } from "./components/TabsNav/TabsNav.styles.js";
136
133
  import { Logo } from "./components/logo/Logo.js";
137
- import { default as default10 } from "./components/SvgIcons/LogoSvg.js";
134
+ import { default as default9 } from "./components/SvgIcons/LogoSvg.js";
138
135
  import { ModalBack, Box, ModalClose, Dimmer, ModalInner, ModalInnerSmartContractAddress, ModalInnerWithBorder, ModalLink, ModalLinkWrap, ModalRoot, ModalScroll } from "./components/Modal/Modal.styles.js";
139
- import { default as default11 } from "./components/SvgIcons/RefreshSvg.js";
136
+ import { default as default10 } from "./components/SvgIcons/RefreshSvg.js";
140
137
  import { SelectContainer, SelectControl, SelectIcon, SelectMenu, SelectMenuList, SelectOption, SelectValueContainer, SelectWrapper } from "./components/Input/Select.styles.js";
141
138
  import { Snackbar } from "./components/Snackbar/Snackbar.js";
142
139
  import { SnackbarContext, SnackbarProvider } from "./components/Snackbar/SnackbarProvider.js";
143
- import { default as default12 } from "./components/SvgIcons/SocialFacebook.js";
144
- import { default as default13 } from "./components/SvgIcons/SocialLinkedIn.js";
145
- import { default as default14 } from "./components/SvgIcons/SocialTelegram.js";
146
- import { default as default15 } from "./components/SvgIcons/SocialTwitter.js";
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";
147
144
  import { StyledReactTable, Styles, TableWrap } from "./components/AdminDashboard/Table/Table.styles.js";
148
145
  import { SuccessModal, SuccessModal as SuccessModal2, showProgress, showSuccess } from "./components/Modal/SuccessModal/SuccessModal.js";
149
146
  import { Tab } from "./components/Tabs/Tabs.styles.js";
150
- import { default as default16 } from "./components/TabsNav/TabNav.js";
151
- import { default as default17 } from "./components/SvgIcons/VerifiedBadge.js";
147
+ import { default as default15 } from "./components/TabsNav/TabNav.js";
148
+ import { default as default16 } from "./components/SvgIcons/VerifiedBadge.js";
152
149
  import { copyTextToClipboard } from "./utils/copy-text-to-clipboard.js";
153
150
  import { useSnackbar } from "./components/Snackbar/useSnackbar.js";
154
151
  export {
155
- default8 as AdminBadgeSvg,
152
+ default7 as AdminBadgeSvg,
156
153
  AgreementItem,
157
154
  AnimatedSpan,
158
155
  ArrowSimple,
@@ -164,7 +161,7 @@ export {
164
161
  Breakdown,
165
162
  Button,
166
163
  CURRENCY_CONFIG,
167
- default9 as CapsLockSvg,
164
+ default8 as CapsLockSvg,
168
165
  Card,
169
166
  CardHeader,
170
167
  CardHeaderRegular,
@@ -223,7 +220,6 @@ export {
223
220
  GlobalStyle,
224
221
  HeroVideoBlock,
225
222
  ICON_SIZES,
226
- Icon,
227
223
  IdentityCountryRow,
228
224
  FieldLabel as IdentityFieldLabel,
229
225
  FieldValue as IdentityFieldValue,
@@ -232,7 +228,7 @@ export {
232
228
  InfoBox,
233
229
  InfoIcon,
234
230
  Container as InfoIconContainer,
235
- Icon2 as InfoIconWrapper,
231
+ Icon as InfoIconWrapper,
236
232
  Inner,
237
233
  Input,
238
234
  Label as InputLabel,
@@ -240,12 +236,11 @@ export {
240
236
  InputWithButton,
241
237
  InputWrap,
242
238
  Wrapper2 as InputWrapper,
243
- IoniconsStyles,
244
239
  LOTTIE_ANIMATIONS,
245
240
  LinkText,
246
241
  LoadingDots,
247
242
  Logo,
248
- default10 as LogoSvg,
243
+ default9 as LogoSvg,
249
244
  LottieAnimation,
250
245
  MaterialIcon,
251
246
  MemoCryptoAddress,
@@ -290,7 +285,7 @@ export {
290
285
  ReactTable,
291
286
  ReactTableWrapper,
292
287
  RefreshButton,
293
- default11 as RefreshSvg,
288
+ default10 as RefreshSvg,
294
289
  RequestDataBox,
295
290
  Row,
296
291
  SIDE_MODAL_BACKDROP,
@@ -319,10 +314,10 @@ export {
319
314
  Snackbar,
320
315
  SnackbarContext,
321
316
  SnackbarProvider,
322
- default12 as SocialFacebook,
323
- default13 as SocialLinkedIn,
324
- default14 as SocialTelegram,
325
- default15 as SocialTwitter,
317
+ default11 as SocialFacebook,
318
+ default12 as SocialLinkedIn,
319
+ default13 as SocialTelegram,
320
+ default14 as SocialTwitter,
326
321
  SpanButton,
327
322
  StatusDot,
328
323
  StatusTag,
@@ -347,7 +342,7 @@ export {
347
342
  TabCard,
348
343
  TabCardBody,
349
344
  TabHighlightBase,
350
- default16 as TabNav,
345
+ default15 as TabNav,
351
346
  TabPanel,
352
347
  TableFilterDropdown,
353
348
  TableWrap,
@@ -366,10 +361,9 @@ export {
366
361
  TimerComponent,
367
362
  Tooltip,
368
363
  Bubble as TooltipBubble,
369
- TooltipIcon,
370
364
  TrackH,
371
365
  TrackV,
372
- default17 as VerifiedBadge,
366
+ default16 as VerifiedBadge,
373
367
  Wrapper,
374
368
  capitalize,
375
369
  colors,
@@ -381,7 +375,6 @@ export {
381
375
  emailRegex,
382
376
  fixDecimals,
383
377
  flatten,
384
- default3 as fontFaces,
385
378
  fontWeight,
386
379
  formatAmount,
387
380
  formatAmountForDisplay,
@@ -402,8 +395,7 @@ export {
402
395
  getPasswordEntropy,
403
396
  getProjectCurrencySign,
404
397
  getUnitInfo,
405
- default4 as grid,
406
- iconsMap,
398
+ default3 as grid,
407
399
  interpolate,
408
400
  isCopyKey,
409
401
  isExternalUrl,
@@ -426,7 +418,7 @@ export {
426
418
  requiredMaterialIcons,
427
419
  resolveCopy,
428
420
  roundTo,
429
- default5 as rwd,
421
+ default4 as rwd,
430
422
  rwdMax,
431
423
  sanitizeAmountInput,
432
424
  saveAs,
@@ -437,10 +429,10 @@ export {
437
429
  showSuccess,
438
430
  sizes,
439
431
  space,
440
- default6 as spacing,
432
+ default5 as spacing,
441
433
  t,
442
434
  tabColorTransition,
443
- default7 as theme,
435
+ default6 as theme,
444
436
  toCsv,
445
437
  toFixedAmount,
446
438
  tokenUnit,
@@ -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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stokr/components-library",
3
- "version": "4.0.3",
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,71 +0,0 @@
1
- import styled, { css } from "styled-components";
2
- import { glyph } from "../MaterialIcon/glyph.js";
3
- const iconsMap = {
4
- expand: "\\e923",
5
- emoji: "\\e922",
6
- arrowDown: "\\e900",
7
- arrowLeft: "\\e901",
8
- arrowRight: "\\e902",
9
- arrowUp: "\\e903",
10
- lock: "\\e905",
11
- trash: "\\e909",
12
- user: "\\e90b",
13
- check: "\\e90d",
14
- inProgress: "\\e90e",
15
- warning: "\\e90f",
16
- logout: "\\e910",
17
- tokenHolder: "\\e911",
18
- teams: "\\e912",
19
- tokenSales: "\\e913",
20
- analytics: "\\e914",
21
- overview: "\\e916",
22
- hamburger: "\\e918"
23
- };
24
- const TooltipIcon = styled.span.attrs({
25
- children: glyph("info", true)
26
- })`
27
- display: inline-flex;
28
- position: relative;
29
- left: -0.4px;
30
- font-size: 18px;
31
- opacity: 0.2;
32
- transform: rotateY(180deg);
33
- margin: 0 14px;
34
- `;
35
- const Icon = styled.i.withConfig({
36
- shouldForwardProp: (props) => !["size", "color", "icon", "checklist"].includes(props)
37
- })`
38
- font-family: 'icomoon' !important;
39
- speak: none;
40
- font-style: normal;
41
- font-weight: normal;
42
- font-variant: normal;
43
- text-transform: none;
44
- line-height: 1;
45
-
46
- ${(props) => props.size && `
47
- font-size: ${props.size}px;
48
- `}
49
-
50
- ${(props) => props.color && `
51
- color: ${props.color};
52
- `}
53
-
54
- /* Better Font Rendering =========== */
55
- -webkit-font-smoothing: antialiased;
56
- -moz-osx-font-smoothing: grayscale;
57
-
58
- &::before {
59
- content: '${(props) => props.icon}';
60
- }
61
-
62
- ${({ checklist }) => checklist && css`
63
- margin-left: 3px;
64
- margin-right: 11px;
65
- `}
66
- `;
67
- export {
68
- Icon,
69
- TooltipIcon,
70
- iconsMap
71
- };