@stokr/components-library 4.0.1 → 4.0.3

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 (50) hide show
  1. package/dist/components/AdminDashboard/Table/Table.styles.js +6 -2
  2. package/dist/components/BackButton/BackButton.js +10 -14
  3. package/dist/components/BackButton/BackButton.styles.js +7 -4
  4. package/dist/components/ChartLegend/ChartLegend.styles.js +4 -2
  5. package/dist/components/Checkbox/Checkbox.js +5 -1
  6. package/dist/components/Checkbox/Checkbox.styles.js +12 -27
  7. package/dist/components/Checklist/ChecklistCard.js +6 -6
  8. package/dist/components/Checklist/ChecklistCard.styles.js +0 -39
  9. package/dist/components/Chips/Chip.js +14 -1
  10. package/dist/components/Chips/Chip.styles.js +4 -3
  11. package/dist/components/CryptoAddress/CryptoAddress.styles.js +15 -94
  12. package/dist/components/CryptoAddressWrapper/CryptoAddressWrapper.styles.js +7 -10
  13. package/dist/components/FAQ/FAQ.styles.js +6 -2
  14. package/dist/components/Icon/Icon.style.js +5 -26
  15. package/dist/components/InfoBox/InfoBox.js +4 -2
  16. package/dist/components/InfoIcon/InfoIcon.js +24 -28
  17. package/dist/components/InfoIcon/InfoIcon.styles.d.ts +1 -1
  18. package/dist/components/InfoIcon/InfoIcon.styles.js +4 -3
  19. package/dist/components/Input/InputPassword.js +2 -1
  20. package/dist/components/Input/Select.js +0 -2
  21. package/dist/components/Input/Select.styles.js +5 -2
  22. package/dist/components/MaterialIcon/MaterialIcon.d.ts +2 -2
  23. package/dist/components/MaterialIcon/MaterialIcon.js +6 -3
  24. package/dist/components/MaterialIcon/MaterialIcon.styles.d.ts +5 -5
  25. package/dist/components/MaterialIcon/MaterialIcon.styles.js +2 -2
  26. package/dist/components/MaterialIcon/glyph.d.ts +5 -0
  27. package/dist/components/MaterialIcon/glyph.js +8 -0
  28. package/dist/components/MaterialIcon/requiredIcons.d.ts +5 -0
  29. package/dist/components/MaterialIcon/requiredIcons.js +21 -0
  30. package/dist/components/Modal/Modal.js +27 -31
  31. package/dist/components/Modal/Modal.styles.d.ts +3 -3
  32. package/dist/components/Modal/Modal.styles.js +31 -51
  33. package/dist/components/Modal/PaymentModal.js +10 -3
  34. package/dist/components/Modal/SideModal.js +45 -49
  35. package/dist/components/Pagination/Pagination.js +3 -3
  36. package/dist/components/Payment/TimerComponent.js +4 -3
  37. package/dist/components/Process/Process.styles.js +13 -18
  38. package/dist/components/ProfileBox/ProfileBox.styles.js +8 -8
  39. package/dist/components/StatusTag/StatusTag.js +2 -2
  40. package/dist/components/TaxResidenceCard/TaxResidenceCard.js +0 -2
  41. package/dist/components/TaxResidenceCard/TaxResidenceCard.styles.js +4 -2
  42. package/dist/components/TextLink/TextLink.styles.js +11 -20
  43. package/dist/components/Timeline/TimelineStep.js +2 -2
  44. package/dist/index.d.ts +1 -0
  45. package/dist/index.js +2 -0
  46. package/dist/styles/rwd.d.ts +7 -2
  47. package/dist/styles/rwd.js +7 -2
  48. package/package.json +1 -1
  49. package/dist/static/images/copy_icon.svg +0 -4
  50. package/dist/static/images/copy_icon.svg.js +0 -5
@@ -1,11 +1,10 @@
1
- import { jsxs, jsx } from "react/jsx-runtime";
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { useState, useRef, useId, useCallback, useEffect } from "react";
3
3
  import { createPortal } from "react-dom";
4
4
  import { SideModalRoot, Dimmer, SideModalBox, OutlinedCloseButton } from "./SideModal.styles.js";
5
5
  import { SideModalContext } from "./SideModalContext.js";
6
6
  import styled from "styled-components";
7
7
  import { ModalClose } from "./Modal.styles.js";
8
- import { IoniconsStyles } from "../../styles/ioniconsStyles.js";
9
8
  function findScrolledElement() {
10
9
  let best = null;
11
10
  function walk(el) {
@@ -192,7 +191,7 @@ const SideModal = ({
192
191
  };
193
192
  if (!isOpen) return null;
194
193
  return createPortal(
195
- /* @__PURE__ */ jsxs(
194
+ /* @__PURE__ */ jsx(
196
195
  SideModalRoot,
197
196
  {
198
197
  className,
@@ -201,52 +200,49 @@ const SideModal = ({
201
200
  $zIndex: zIndex,
202
201
  $interactiveBehind: !isModal,
203
202
  ...props,
204
- children: [
205
- /* @__PURE__ */ jsx(IoniconsStyles, {}),
206
- /* @__PURE__ */ jsx(
207
- Dimmer,
208
- {
209
- onClick: handleDimmerClick,
210
- $side: side,
211
- $isVisible: isVisible,
212
- $color: isModal ? backdropColor : "transparent",
213
- $interactiveBehind: !isModal,
214
- children: /* @__PURE__ */ jsx(
215
- SideModalBox,
216
- {
217
- ref: boxRef,
218
- tabIndex: -1,
219
- role: "dialog",
220
- "aria-modal": isModal,
221
- "aria-label": labelledBy || hasHeader ? void 0 : label,
222
- "aria-labelledby": labelledBy ?? (hasHeader ? titleId : void 0),
223
- $padding: padding,
224
- $side: side,
225
- $width: width,
226
- $minWidth: minWidth,
227
- $isVisible: isVisible,
228
- $fullWidthOnMobile: fullWidthOnMobile,
229
- onClick: (e) => e.stopPropagation(),
230
- children: /* @__PURE__ */ jsxs(
231
- SideModalContext.Provider,
232
- {
233
- value: {
234
- titleId,
235
- closeButton: closeButton(true),
236
- cornerButton: showCloseButton && closeButtonVariant === "filled",
237
- registerHeader
238
- },
239
- children: [
240
- !hasHeader || closeButtonVariant === "filled" ? closeButton(false) : null,
241
- children
242
- ]
243
- }
244
- )
245
- }
246
- )
247
- }
248
- )
249
- ]
203
+ children: /* @__PURE__ */ jsx(
204
+ Dimmer,
205
+ {
206
+ onClick: handleDimmerClick,
207
+ $side: side,
208
+ $isVisible: isVisible,
209
+ $color: isModal ? backdropColor : "transparent",
210
+ $interactiveBehind: !isModal,
211
+ children: /* @__PURE__ */ jsx(
212
+ SideModalBox,
213
+ {
214
+ ref: boxRef,
215
+ tabIndex: -1,
216
+ role: "dialog",
217
+ "aria-modal": isModal,
218
+ "aria-label": labelledBy || hasHeader ? void 0 : label,
219
+ "aria-labelledby": labelledBy ?? (hasHeader ? titleId : void 0),
220
+ $padding: padding,
221
+ $side: side,
222
+ $width: width,
223
+ $minWidth: minWidth,
224
+ $isVisible: isVisible,
225
+ $fullWidthOnMobile: fullWidthOnMobile,
226
+ onClick: (e) => e.stopPropagation(),
227
+ children: /* @__PURE__ */ jsxs(
228
+ SideModalContext.Provider,
229
+ {
230
+ value: {
231
+ titleId,
232
+ closeButton: closeButton(true),
233
+ cornerButton: showCloseButton && closeButtonVariant === "filled",
234
+ registerHeader
235
+ },
236
+ children: [
237
+ !hasHeader || closeButtonVariant === "filled" ? closeButton(false) : null,
238
+ children
239
+ ]
240
+ }
241
+ )
242
+ }
243
+ )
244
+ }
245
+ )
250
246
  }
251
247
  ),
252
248
  document.body
@@ -3,7 +3,7 @@ import "react";
3
3
  import { usePagination, DOTS } from "./usePagination.js";
4
4
  import { StyledList } from "./Pagination.styles.js";
5
5
  import PropTypes from "prop-types";
6
- import { Icon, iconsMap } from "../Icon/Icon.style.js";
6
+ import { MaterialIcon } from "../MaterialIcon/MaterialIcon.js";
7
7
  const Pagination = (props) => {
8
8
  const { onPageChange, totalCount, siblingCount = 1, currentPage, pageSize = 10 } = props;
9
9
  const paginationRange = usePagination({
@@ -25,7 +25,7 @@ const Pagination = (props) => {
25
25
  const displayRange = paginationRange.length < 2 ? [1] : paginationRange;
26
26
  let lastPage = displayRange[displayRange.length - 1];
27
27
  return /* @__PURE__ */ jsxs(StyledList, { listStyle: props.listStyle, children: [
28
- /* @__PURE__ */ jsx(StyledList.Item, { disabled: currentPage === 1 || displayRange.length === 1, onClick: onPrevious, arrow: true, children: /* @__PURE__ */ jsx(Icon, { icon: iconsMap.arrowLeft }) }),
28
+ /* @__PURE__ */ jsx(StyledList.Item, { disabled: currentPage === 1 || displayRange.length === 1, onClick: onPrevious, arrow: true, children: /* @__PURE__ */ jsx(MaterialIcon, { name: "chevron_left", size: "1em" }) }),
29
29
  displayRange.map((pageNumber, index) => {
30
30
  if (pageNumber === DOTS) {
31
31
  return /* @__PURE__ */ jsx(StyledList.Item, { dots: true, children: "…" }, index === 1 ? "dots-left" : "dots-right");
@@ -41,7 +41,7 @@ const Pagination = (props) => {
41
41
  pageNumber
42
42
  );
43
43
  }),
44
- /* @__PURE__ */ jsx(StyledList.Item, { disabled: currentPage === lastPage || displayRange.length === 1, onClick: onNext, arrow: true, children: /* @__PURE__ */ jsx(Icon, { icon: iconsMap.arrowRight }) })
44
+ /* @__PURE__ */ jsx(StyledList.Item, { disabled: currentPage === lastPage || displayRange.length === 1, onClick: onNext, arrow: true, children: /* @__PURE__ */ jsx(MaterialIcon, { name: "chevron_right", size: "1em" }) })
45
45
  ] });
46
46
  };
47
47
  Pagination.propTypes = {
@@ -4,7 +4,8 @@ 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, iconsMap } from "../Icon/Icon.style.js";
7
+ import { Icon } from "../Icon/Icon.style.js";
8
+ import { MaterialIcon } from "../MaterialIcon/MaterialIcon.js";
8
9
  import { FlexContainer } from "../Grid/Grid.styles.js";
9
10
  import rwd from "../../styles/rwd.js";
10
11
  const TimerBlock = styled.div.withConfig({
@@ -56,7 +57,7 @@ const TimerComponent = memo(
56
57
  className,
57
58
  maxWidth,
58
59
  // Icon props
59
- icon = iconsMap.inProgress,
60
+ icon,
60
61
  iconSize = 16,
61
62
  showIcon = true
62
63
  }) => {
@@ -73,7 +74,7 @@ const TimerComponent = memo(
73
74
  const formattedTime = [secondsRemaining / 3600, secondsRemaining % 3600 / 60, secondsRemaining % 60].map((part) => String(Math.floor(part)).padStart(2, "0")).join(":");
74
75
  return /* @__PURE__ */ jsx(TimerBlock, { red: isWarning, maxWidth, style: timerBlockStyle, className, children: /* @__PURE__ */ jsxs("div", { style: containerStyle, children: [
75
76
  /* @__PURE__ */ jsx(Text, { children: /* @__PURE__ */ jsxs(FlexContainer, { itemsCenter: true, style: { gap: 8 }, children: [
76
- showIcon && /* @__PURE__ */ jsx(Icon, { icon, size: iconSize }),
77
+ showIcon && (icon ? /* @__PURE__ */ jsx(Icon, { icon, size: iconSize }) : /* @__PURE__ */ jsx(MaterialIcon, { name: "search_activity", size: iconSize })),
77
78
  /* @__PURE__ */ jsx("p", { children: /* @__PURE__ */ jsx("strong", { children: title }) })
78
79
  ] }) }),
79
80
  /* @__PURE__ */ jsx(Text, { children: /* @__PURE__ */ jsxs("p", { children: [
@@ -2,8 +2,13 @@ import styled from "styled-components";
2
2
  import rwd from "../../styles/rwd.js";
3
3
  import theme from "../../styles/theme.js";
4
4
  import loader from "../../static/images/process-waiting.gif.js";
5
+ import { withGlyph, glyph } from "../MaterialIcon/glyph.js";
5
6
  const Process = styled.div.withConfig({
6
7
  shouldForwardProp: (props) => !["waiting", "success", "failed"].includes(props)
8
+ }).attrs((props) => {
9
+ if (props.success) return { children: withGlyph(glyph("check_circle", true, 24), props.children) };
10
+ if (props.failed) return { children: withGlyph(glyph("cancel", true, 24), props.children) };
11
+ return {};
7
12
  })`
8
13
  display: block;
9
14
  position: relative;
@@ -21,17 +26,6 @@ const Process = styled.div.withConfig({
21
26
 
22
27
  &:before {
23
28
  content: '';
24
- font-family: 'Ionicons';
25
- speak: none;
26
- font-style: normal;
27
- font-weight: normal;
28
- font-variant: normal;
29
- text-transform: none;
30
- text-rendering: auto;
31
- -webkit-font-smoothing: antialiased;
32
- -moz-osx-font-smoothing: grayscale;
33
- font-size: 19px;
34
- line-height: 16px;
35
29
  display: block;
36
30
  width: 16px;
37
31
  height: 16px;
@@ -41,14 +35,19 @@ const Process = styled.div.withConfig({
41
35
  margin-top: -8px;
42
36
 
43
37
  ${rwd.Medium`
44
- font-size: 24px;
45
- line-height: 20px;
46
38
  width: 20px;
47
39
  height: 20px;
48
40
  margin-top: -10px;
49
41
  `}
50
42
  }
51
43
 
44
+ > [data-icon] {
45
+ position: absolute;
46
+ top: 50%;
47
+ right: -4px;
48
+ margin-top: -12px;
49
+ }
50
+
52
51
  ${(props) => props.waiting && `
53
52
  opacity: 1;
54
53
 
@@ -64,8 +63,7 @@ const Process = styled.div.withConfig({
64
63
  ${(props) => props.success && `
65
64
  opacity: 1;
66
65
 
67
- &:before {
68
- content: '\\f14a';
66
+ > [data-icon] {
69
67
  color: ${theme.cProgressDone};
70
68
  }
71
69
  `}
@@ -74,9 +72,6 @@ const Process = styled.div.withConfig({
74
72
  opacity: 1;
75
73
  color: ${theme.cWarning};
76
74
 
77
- &:before {
78
- content: '\\f14e';
79
- }
80
75
  `}
81
76
  `;
82
77
  export {
@@ -1,5 +1,6 @@
1
1
  import styled from "styled-components";
2
2
  import { Container as Container$1 } from "../Background/Background.styles.js";
3
+ import { glyph } from "../MaterialIcon/glyph.js";
3
4
  const Container = styled.div`
4
5
  width: 100%;
5
6
  height: 100%;
@@ -43,18 +44,17 @@ const Name = styled.div`
43
44
  letter-spacing: 0.6px;
44
45
  text-align: center;
45
46
  `;
46
- const EditIcon = styled.i.attrs({
47
- className: "ion-md-create"
47
+ const EditIcon = styled.span.attrs({
48
+ children: glyph("edit")
48
49
  })`
50
+ display: inline-flex;
49
51
  margin-left: 12px;
50
-
51
- &:before {
52
- transform: rotate(-15deg);
53
- }
52
+ transform: rotate(-15deg);
54
53
  `;
55
- styled.i.attrs({
56
- className: "ion-ios-add-circle-outline"
54
+ styled.span.attrs({
55
+ children: glyph("add_circle")
57
56
  })`
57
+ display: inline-flex;
58
58
  margin-left: 12px;
59
59
  font-size: 30px;
60
60
  `;
@@ -1,7 +1,7 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import "react";
3
3
  import { InfoIcon } from "../InfoIcon/InfoIcon.js";
4
- import { Icon, iconsMap } from "../Icon/Icon.style.js";
4
+ import { MaterialIcon } from "../MaterialIcon/MaterialIcon.js";
5
5
  import SvgTransferIcon from "../../static/images/transfer-icon.svg.js";
6
6
  import SvgCheckmarkCircleIcon from "../../static/images/checkmark-circle-icon.svg.js";
7
7
  import SvgCloseCircleIcon from "../../static/images/close-circle-icon.svg.js";
@@ -17,7 +17,7 @@ const variantConfig = {
17
17
  useStroke: true
18
18
  },
19
19
  initiated: {
20
- icon: /* @__PURE__ */ jsx(Icon, { icon: iconsMap.inProgress, size: 11 }),
20
+ icon: /* @__PURE__ */ jsx(MaterialIcon, { name: "search_activity", size: 14 }),
21
21
  iconColor: "#032F78",
22
22
  hoverColor: "#032F78",
23
23
  disableHoverColor: false
@@ -5,7 +5,6 @@ import { Input } from "../Input/Input.js";
5
5
  import { Checkbox } from "../Checkbox/Checkbox.js";
6
6
  import SvgTrash from "../../static/images/trash.svg.js";
7
7
  import SvgGlobe from "../../static/images/globe.svg.js";
8
- import { IoniconsStyles } from "../../styles/ioniconsStyles.js";
9
8
  import { FlagFor, CountrySelect } from "../Country/CountrySelect.js";
10
9
  import { CardWrapper, CardHeader, HeaderIcon, FlagWrapper, HeaderTitle, HeaderActions, DeleteButton, ChevronIcon, CardBodyCollapse, CardBody, CheckboxRow } from "./TaxResidenceCard.styles.js";
11
10
  const TaxResidenceCard = (props) => {
@@ -70,7 +69,6 @@ const TaxResidenceCard = (props) => {
70
69
  };
71
70
  const cy = dataCy || `tax-residence-card-${id}`;
72
71
  return /* @__PURE__ */ jsxs(CardWrapper, { isOpen, "data-cy": cy, children: [
73
- /* @__PURE__ */ jsx(IoniconsStyles, {}),
74
72
  /* @__PURE__ */ jsxs(
75
73
  CardHeader,
76
74
  {
@@ -1,6 +1,7 @@
1
1
  import styled, { css } from "styled-components";
2
2
  import { Collapse } from "react-collapse";
3
3
  import theme from "../../styles/theme.js";
4
+ import { glyph } from "../MaterialIcon/glyph.js";
4
5
  const CardWrapper = styled.div.withConfig({
5
6
  shouldForwardProp: (prop) => !["isOpen"].includes(prop)
6
7
  })`
@@ -127,11 +128,12 @@ const DeleteButton = styled.button`
127
128
  }
128
129
  }
129
130
  `;
130
- const ChevronIcon = styled.i.withConfig({
131
+ const ChevronIcon = styled.span.withConfig({
131
132
  shouldForwardProp: (prop) => !["isOpen"].includes(prop)
132
133
  }).attrs({
133
- className: "ion ion-ios-arrow-down"
134
+ children: glyph("keyboard_arrow_down")
134
135
  })`
136
+ display: inline-flex;
135
137
  font-size: 20px;
136
138
  line-height: 1;
137
139
  color: ${theme.cBlack};
@@ -1,6 +1,10 @@
1
1
  import styled, { css } from "styled-components";
2
2
  import { Link } from "react-router-dom";
3
3
  import theme from "../../styles/theme.js";
4
+ import { withGlyph, glyph } from "../MaterialIcon/glyph.js";
5
+ const withArrow = (props) => ({
6
+ children: withGlyph(glyph("chevron_right", false, 16), props.children)
7
+ });
4
8
  const styles = css`
5
9
  background: #fff;
6
10
  border: none;
@@ -16,26 +20,13 @@ const styles = css`
16
20
  padding-right: 6px;
17
21
  transition: padding 0.2s;
18
22
 
19
- &:before {
20
- content: '\\f3d1';
21
- font-family: 'Ionicons';
22
- speak: none;
23
- font-style: normal;
24
- font-weight: normal;
25
- font-variant: normal;
26
- text-transform: none;
27
- text-rendering: auto;
28
- -webkit-font-smoothing: antialiased;
29
- -moz-osx-font-smoothing: grayscale;
30
- font-size: 12px;
31
- line-height: 8px;
32
- display: block;
33
- width: 8px;
34
- height: 8px;
23
+ > [data-icon] {
35
24
  position: absolute;
36
25
  top: 50%;
37
- left: 0;
38
- margin-top: -4px;
26
+ left: -4px;
27
+ width: 16px;
28
+ height: 16px;
29
+ margin-top: -8px;
39
30
  color: ${() => theme.cWarning};
40
31
  transform: ${(props) => props.reverse ? "rotate(180deg)" : "none"};
41
32
  }
@@ -52,12 +43,12 @@ const styles = css`
52
43
  `;
53
44
  const TextLink = styled(Link).withConfig({
54
45
  shouldForwardProp: (props) => !["reverse", "disabled"].includes(props)
55
- })`
46
+ }).attrs(withArrow)`
56
47
  ${styles}
57
48
  `;
58
49
  const TextButton = styled.button.withConfig({
59
50
  shouldForwardProp: (props) => !["reverse", "disabled"].includes(props)
60
- })`
51
+ }).attrs(withArrow)`
61
52
  ${styles}
62
53
  `;
63
54
  export {
@@ -1,6 +1,6 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import "react";
3
- import { Icon, iconsMap } from "../Icon/Icon.style.js";
3
+ import { MaterialIcon } from "../MaterialIcon/MaterialIcon.js";
4
4
  import { InfoIcon } from "../InfoIcon/InfoIcon.js";
5
5
  import { TimelineStepWrapper, IconContainer, StepIcon, ConnectingLine, StepContent, StepDate, StepHeader, StepTitle, StepCaption } from "./Timeline.styles.js";
6
6
  import SvgCrossIcon from "../../static/images/cross-icon.svg.js";
@@ -28,7 +28,7 @@ const TimelineStep = ({
28
28
  case "completed":
29
29
  return /* @__PURE__ */ jsx(SvgCheckIcon, { width: 12, height: 12 });
30
30
  case "pending":
31
- return /* @__PURE__ */ jsx(Icon, { icon: iconsMap.inProgress, size: 12, style: { marginLeft: 1 } });
31
+ return /* @__PURE__ */ jsx("span", { style: { display: "inline-flex", marginLeft: 1 }, children: /* @__PURE__ */ jsx(MaterialIcon, { name: "search_activity", size: 12 }) });
32
32
  case "failed":
33
33
  case "cancelled":
34
34
  return /* @__PURE__ */ jsx(SvgCrossIcon, { width: 8, height: 8 });
package/dist/index.d.ts CHANGED
@@ -52,6 +52,7 @@ export { Collapsible } from './components/Collapsible/Collapsible'
52
52
  export { MaterialIcon, SvgIcon, ICON_SIZES } from './components/MaterialIcon/MaterialIcon'
53
53
  export type { MaterialIconProps, SvgIconProps, IconSize } from './components/MaterialIcon/MaterialIcon'
54
54
  export { registerMaterialIcons } from './components/MaterialIcon/iconConfig'
55
+ export { requiredMaterialIcons } from './components/MaterialIcon/requiredIcons'
55
56
  export type { MaterialIconName, MaterialIconRegistry } from './components/MaterialIcon/iconConfig'
56
57
  export type { CollapsibleProps } from './components/Collapsible/Collapsible'
57
58
  export { Section } from './components/Section/Section'
package/dist/index.js CHANGED
@@ -47,6 +47,7 @@ import { Skeleton, SkeletonLines, SkeletonStatus } from "./components/Skeleton/S
47
47
  import { Collapsible } from "./components/Collapsible/Collapsible.js";
48
48
  import { ICON_SIZES, MaterialIcon, SvgIcon } from "./components/MaterialIcon/MaterialIcon.js";
49
49
  import { registerMaterialIcons } from "./components/MaterialIcon/iconConfig.js";
50
+ import { requiredMaterialIcons } from "./components/MaterialIcon/requiredIcons.js";
50
51
  import { Section } from "./components/Section/Section.js";
51
52
  import { CardTabs, TabPanel } from "./components/CardTabs/CardTabs.js";
52
53
  import { TabCard, TabCardBody, TabHighlightBase, tabColorTransition } from "./components/CardTabs/CardTabs.styles.js";
@@ -422,6 +423,7 @@ export {
422
423
  projectUnit,
423
424
  radius,
424
425
  registerMaterialIcons,
426
+ requiredMaterialIcons,
425
427
  resolveCopy,
426
428
  roundTo,
427
429
  default5 as rwd,
@@ -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;
@@ -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.1",
3
+ "version": "4.0.3",
4
4
  "description": "STOKR - Components Library",
5
5
  "author": "Bilal Hodzic <bilal@stokr.io>",
6
6
  "license": "MIT",
@@ -1,4 +0,0 @@
1
- <svg width="19" height="20" viewBox="0 0 19 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M6.21053 7H3C2.44772 7 2 7.44772 2 8V17C2 17.5523 2.44772 18 3 18H11C11.5523 18 12 17.5523 12 17V15.6087" stroke="black" stroke-width="2"/>
3
- <path d="M7 13V3C7 1.89543 7.89543 1 9 1H13.3636L17 5V13C17 14.1046 16.1046 15 15 15H9C7.89543 15 7 14.1046 7 13Z" fill="black"/>
4
- </svg>
@@ -1,5 +0,0 @@
1
- import * as React from "react";
2
- const SvgCopyIcon = (props) => /* @__PURE__ */ React.createElement("svg", { width: 19, height: 20, viewBox: "0 0 19 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props }, /* @__PURE__ */ React.createElement("path", { d: "M6.21053 7H3C2.44772 7 2 7.44772 2 8V17C2 17.5523 2.44772 18 3 18H11C11.5523 18 12 17.5523 12 17V15.6087", stroke: "black", strokeWidth: 2 }), /* @__PURE__ */ React.createElement("path", { d: "M7 13V3C7 1.89543 7.89543 1 9 1H13.3636L17 5V13C17 14.1046 16.1046 15 15 15H9C7.89543 15 7 14.1046 7 13Z", fill: "black" }));
3
- export {
4
- SvgCopyIcon as default
5
- };