@telefonica/mistica 12.6.0 → 12.8.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/dist/carousel.d.ts +2 -0
- package/dist/carousel.js +23 -6
- package/dist/carousel.js.flow +2 -0
- package/dist/fixed-footer-layout.js +31 -9
- package/dist/generated/mistica-icons/icon-buy-data-light.js +5 -11
- package/dist/generated/mistica-icons/icon-buy-data-regular.js +1 -1
- package/dist/generated/mistica-icons/icon-eco-light.js +1 -1
- package/dist/generated/mistica-icons/icon-justice-regular.js +1 -1
- package/dist/generated/mistica-icons/icon-tokens-filled.d.ts +4 -0
- package/dist/generated/mistica-icons/icon-tokens-filled.js +109 -0
- package/dist/generated/mistica-icons/icon-tokens-filled.js.flow +6 -0
- package/dist/generated/mistica-icons/icon-tokens-light.d.ts +4 -0
- package/dist/generated/mistica-icons/icon-tokens-light.js +109 -0
- package/dist/generated/mistica-icons/icon-tokens-light.js.flow +6 -0
- package/dist/generated/mistica-icons/icon-tokens-regular.d.ts +4 -0
- package/dist/generated/mistica-icons/icon-tokens-regular.js +109 -0
- package/dist/generated/mistica-icons/icon-tokens-regular.js.flow +6 -0
- package/dist/hooks.d.ts +3 -0
- package/dist/hooks.js +16 -3
- package/dist/hooks.js.flow +3 -0
- package/dist/image.d.ts +2 -0
- package/dist/image.js +118 -80
- package/dist/image.js.flow +2 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +21 -0
- package/dist/index.js.flow +3 -0
- package/dist/list.d.ts +1 -0
- package/dist/list.js +4 -2
- package/dist/list.js.flow +1 -0
- package/dist/package-version.js +1 -1
- package/dist/skeletons.d.ts +5 -2
- package/dist/skeletons.js +50 -87
- package/dist/skeletons.js.flow +4 -4
- package/dist/skins/o2.js +1 -1
- package/dist/text-field-base.d.ts +0 -1
- package/dist/text-field-base.js +2 -0
- package/dist/text-field-base.js.flow +0 -1
- package/dist/text-field-components.d.ts +1 -0
- package/dist/text-field-components.js +7 -3
- package/dist/text-field-components.js.flow +1 -0
- package/dist/utils/aspect-ratio-support.d.ts +10 -0
- package/dist/utils/aspect-ratio-support.js +115 -1
- package/dist/utils/aspect-ratio-support.js.flow +14 -0
- package/dist/video.js +20 -79
- package/dist-es/carousel.js +23 -6
- package/dist-es/fixed-footer-layout.js +32 -10
- package/dist-es/generated/mistica-icons/icon-buy-data-light.js +6 -12
- package/dist-es/generated/mistica-icons/icon-buy-data-regular.js +1 -1
- package/dist-es/generated/mistica-icons/icon-eco-light.js +1 -1
- package/dist-es/generated/mistica-icons/icon-justice-regular.js +1 -1
- package/dist-es/generated/mistica-icons/icon-tokens-filled.js +85 -0
- package/dist-es/generated/mistica-icons/icon-tokens-light.js +85 -0
- package/dist-es/generated/mistica-icons/icon-tokens-regular.js +85 -0
- package/dist-es/hooks.js +14 -2
- package/dist-es/image.js +115 -83
- package/dist-es/index.js +3 -0
- package/dist-es/list.js +4 -2
- package/dist-es/package-version.js +1 -1
- package/dist-es/skeletons.js +50 -87
- package/dist-es/skins/o2.js +1 -1
- package/dist-es/text-field-base.js +2 -0
- package/dist-es/text-field-components.js +7 -3
- package/dist-es/utils/aspect-ratio-support.js +112 -0
- package/dist-es/video.js +21 -81
- package/package.json +1 -1
package/dist-es/carousel.js
CHANGED
|
@@ -118,6 +118,7 @@ var useBulletsStyles = createUseStyles(function(theme) {
|
|
|
118
118
|
height: 8,
|
|
119
119
|
borderRadius: "50%",
|
|
120
120
|
transition: "transform 0.3s ease-in-out, background-color 0.3s ease-in-out",
|
|
121
|
+
zIndex: 2,
|
|
121
122
|
"&.active": {
|
|
122
123
|
backgroundColor: function(param) {
|
|
123
124
|
var isInverse = param.isInverse;
|
|
@@ -209,7 +210,7 @@ var useStyles = createUseStyles(function(theme) {
|
|
|
209
210
|
},
|
|
210
211
|
arrowButton: _objectSpread({}, arrowButtonStyle(theme), {
|
|
211
212
|
position: "absolute",
|
|
212
|
-
zIndex:
|
|
213
|
+
zIndex: 2,
|
|
213
214
|
top: "calc(50% - ".concat(arrowButtonSize / 2, "px)"),
|
|
214
215
|
"&.prev": {
|
|
215
216
|
left: function(param) {
|
|
@@ -392,7 +393,7 @@ var calcCurrentPageIndex = function(scrollPosition, pagesScrollPositions) {
|
|
|
392
393
|
};
|
|
393
394
|
var DEFAULT_AUTOPLAY_TIME = 5000;
|
|
394
395
|
var BaseCarousel = function(param) {
|
|
395
|
-
var items = param.items, itemStyle = param.itemStyle, itemClassName = param.itemClassName, withBullets = param.withBullets, renderBullets = param.renderBullets, itemsPerPage = param.itemsPerPage, itemsToScroll = param.itemsToScroll, _mobilePageOffset = param.mobilePageOffset, mobilePageOffset = _mobilePageOffset === void 0 ? 16 : _mobilePageOffset, gapProp = param.gap, free = param.free, centered = param.centered, autoplay = param.autoplay, onPageChange = param.onPageChange, dataAttributes = param.dataAttributes;
|
|
396
|
+
var items = param.items, itemStyle = param.itemStyle, itemClassName = param.itemClassName, withBullets = param.withBullets, renderBullets = param.renderBullets, initialActiveItem = param.initialActiveItem, itemsPerPage = param.itemsPerPage, itemsToScroll = param.itemsToScroll, _mobilePageOffset = param.mobilePageOffset, mobilePageOffset = _mobilePageOffset === void 0 ? 16 : _mobilePageOffset, gapProp = param.gap, free = param.free, centered = param.centered, autoplay = param.autoplay, onPageChange = param.onPageChange, dataAttributes = param.dataAttributes;
|
|
396
397
|
var texts = useTheme().texts;
|
|
397
398
|
var containerType = useContainerType();
|
|
398
399
|
var itemsPerPageConfig = normalizeItemsPerPage(itemsPerPage);
|
|
@@ -417,7 +418,12 @@ var BaseCarousel = function(param) {
|
|
|
417
418
|
scrollRight: 0
|
|
418
419
|
}), 2), ref2 = ref1[0], scrollLeft1 = ref2.scrollLeft, scrollRight1 = ref2.scrollRight, setScroll = ref1[1];
|
|
419
420
|
var ref3 = _slicedToArray(React.useState([]), 2), itemScrollPositions = ref3[0], setItemScrollPositions = ref3[1];
|
|
420
|
-
var pagesScrollPositions =
|
|
421
|
+
var pagesScrollPositions = React.useMemo(function() {
|
|
422
|
+
return calcPagesScrollPositions(itemScrollPositions, pagesCount);
|
|
423
|
+
}, [
|
|
424
|
+
itemScrollPositions,
|
|
425
|
+
pagesCount
|
|
426
|
+
]);
|
|
421
427
|
var scrollPositions = itemsToScroll ? calcPagesScrollPositions(itemScrollPositions, Math.ceil(items.length / itemsToScroll)) : pagesScrollPositions;
|
|
422
428
|
var showNextArrow = scrollRight1 !== 0;
|
|
423
429
|
var showPrevArrow = scrollLeft1 !== 0;
|
|
@@ -525,6 +531,15 @@ var BaseCarousel = function(param) {
|
|
|
525
531
|
scrollPositions
|
|
526
532
|
]);
|
|
527
533
|
var shouldAutoplay = useShouldAutoplay(!!autoplay, carouselRef);
|
|
534
|
+
React.useEffect(function() {
|
|
535
|
+
if (initialActiveItem !== undefined) {
|
|
536
|
+
goToPage(Math.floor(initialActiveItem / itemsPerPageFloor));
|
|
537
|
+
}
|
|
538
|
+
}, [
|
|
539
|
+
initialActiveItem,
|
|
540
|
+
goToPage,
|
|
541
|
+
itemsPerPageFloor
|
|
542
|
+
]);
|
|
528
543
|
React.useEffect(function() {
|
|
529
544
|
if (shouldAutoplay && autoplay) {
|
|
530
545
|
var time = typeof autoplay === "boolean" ? DEFAULT_AUTOPLAY_TIME : autoplay.time;
|
|
@@ -639,7 +654,7 @@ export var Carousel = function(props) {
|
|
|
639
654
|
return /*#__PURE__*/ _jsx(BaseCarousel, _objectSpread({}, props));
|
|
640
655
|
};
|
|
641
656
|
export var CenteredCarousel = function(param) {
|
|
642
|
-
var items = param.items, itemStyle = param.itemStyle, itemClassName = param.itemClassName, withBullets = param.withBullets, renderBullets = param.renderBullets, onPageChange = param.onPageChange, dataAttributes = param.dataAttributes;
|
|
657
|
+
var items = param.items, itemStyle = param.itemStyle, itemClassName = param.itemClassName, withBullets = param.withBullets, renderBullets = param.renderBullets, initialActiveItem = param.initialActiveItem, onPageChange = param.onPageChange, dataAttributes = param.dataAttributes;
|
|
643
658
|
return /*#__PURE__*/ _jsx(BaseCarousel, {
|
|
644
659
|
items: items,
|
|
645
660
|
itemStyle: itemStyle,
|
|
@@ -654,6 +669,7 @@ export var CenteredCarousel = function(param) {
|
|
|
654
669
|
gap: 0,
|
|
655
670
|
withBullets: withBullets,
|
|
656
671
|
renderBullets: renderBullets,
|
|
672
|
+
initialActiveItem: initialActiveItem,
|
|
657
673
|
onPageChange: onPageChange,
|
|
658
674
|
dataAttributes: dataAttributes
|
|
659
675
|
});
|
|
@@ -683,7 +699,7 @@ var useSlideshowStyles = createUseStyles(function(theme) {
|
|
|
683
699
|
arrowButton: _objectSpread({}, arrowButtonStyle(theme), {
|
|
684
700
|
border: "none",
|
|
685
701
|
position: "absolute",
|
|
686
|
-
zIndex:
|
|
702
|
+
zIndex: 2,
|
|
687
703
|
top: "calc(50% - ".concat(arrowButtonSize / 2, "px)"),
|
|
688
704
|
"&.prev": _defineProperty({
|
|
689
705
|
left: 24
|
|
@@ -701,7 +717,8 @@ var useSlideshowStyles = createUseStyles(function(theme) {
|
|
|
701
717
|
bottom: 24,
|
|
702
718
|
display: "flex",
|
|
703
719
|
justifyContent: "center",
|
|
704
|
-
width: "100%"
|
|
720
|
+
width: "100%",
|
|
721
|
+
zIndex: 2
|
|
705
722
|
}
|
|
706
723
|
};
|
|
707
724
|
});
|
|
@@ -63,8 +63,9 @@ import classnames from "classnames";
|
|
|
63
63
|
import debounce from "lodash/debounce";
|
|
64
64
|
import { createUseStyles } from "./jss";
|
|
65
65
|
import { isRunningAcceptanceTest } from "./utils/platform";
|
|
66
|
-
import { useElementDimensions, useIsomorphicLayoutEffect, useScreenSize, useTheme } from "./hooks";
|
|
66
|
+
import { useElementDimensions, useIsomorphicLayoutEffect, useScreenHeight, useScreenSize, useTheme, useWindowHeight } from "./hooks";
|
|
67
67
|
import { addPassiveEventListener, getScrollableParentElement, getScrollDistanceToBottom, hasScroll, removePassiveEventListener } from "./utils/dom";
|
|
68
|
+
var FOOTER_CANVAS_RATIO = 2;
|
|
68
69
|
var getScrollEventTarget = function(el) {
|
|
69
70
|
return el === document.documentElement ? window : el;
|
|
70
71
|
};
|
|
@@ -91,8 +92,8 @@ var useStyles = createUseStyles(function(theme) {
|
|
|
91
92
|
},
|
|
92
93
|
containerSmall: {
|
|
93
94
|
paddingBottom: function(param) {
|
|
94
|
-
var
|
|
95
|
-
return
|
|
95
|
+
var footerHeight = param.footerHeight;
|
|
96
|
+
return footerHeight;
|
|
96
97
|
},
|
|
97
98
|
backgroundColor: function(param) {
|
|
98
99
|
var containerBgColor = param.containerBgColor;
|
|
@@ -100,8 +101,17 @@ var useStyles = createUseStyles(function(theme) {
|
|
|
100
101
|
}
|
|
101
102
|
}
|
|
102
103
|
}, theme.mq.tabletOrSmaller, {
|
|
104
|
+
containerSmall: {
|
|
105
|
+
paddingBottom: function(param) {
|
|
106
|
+
var footerHeight = param.footerHeight, isContentWithScroll = param.isContentWithScroll, hasContentEnoughVSpace = param.hasContentEnoughVSpace;
|
|
107
|
+
return hasContentEnoughVSpace || !isContentWithScroll ? footerHeight : 0;
|
|
108
|
+
}
|
|
109
|
+
},
|
|
103
110
|
footer: {
|
|
104
|
-
position:
|
|
111
|
+
position: function(param) {
|
|
112
|
+
var hasContentEnoughVSpace = param.hasContentEnoughVSpace, isContentWithScroll = param.isContentWithScroll;
|
|
113
|
+
return hasContentEnoughVSpace || !isContentWithScroll ? "fixed" : "initial";
|
|
114
|
+
},
|
|
105
115
|
left: 0,
|
|
106
116
|
bottom: 0,
|
|
107
117
|
zIndex: 1
|
|
@@ -117,12 +127,18 @@ var FixedFooterLayout = function(param) {
|
|
|
117
127
|
var containerRef = React.useRef(null);
|
|
118
128
|
var isTabletOrSmaller = useScreenSize().isTabletOrSmaller;
|
|
119
129
|
var platformOverrides = useTheme().platformOverrides;
|
|
120
|
-
var ref1 = useElementDimensions(),
|
|
130
|
+
var ref1 = useElementDimensions(), realFooterHeight = ref1.height, ref2 = ref1.ref;
|
|
131
|
+
var windowHeight = useWindowHeight();
|
|
132
|
+
var screenHeight = useScreenHeight();
|
|
133
|
+
var hasContentEnoughVSpace = windowHeight - realFooterHeight > screenHeight / FOOTER_CANVAS_RATIO;
|
|
134
|
+
var hasContentScroll = function() {
|
|
135
|
+
return hasScroll(getScrollableParentElement(containerRef.current));
|
|
136
|
+
};
|
|
121
137
|
useIsomorphicLayoutEffect(function() {
|
|
122
|
-
onChangeFooterHeight === null || onChangeFooterHeight === void 0 ? void 0 : onChangeFooterHeight(
|
|
138
|
+
onChangeFooterHeight === null || onChangeFooterHeight === void 0 ? void 0 : onChangeFooterHeight(realFooterHeight);
|
|
123
139
|
}, [
|
|
124
140
|
onChangeFooterHeight,
|
|
125
|
-
|
|
141
|
+
realFooterHeight
|
|
126
142
|
]);
|
|
127
143
|
React.useEffect(function() {
|
|
128
144
|
var scrollable = getScrollableParentElement(containerRef.current);
|
|
@@ -130,6 +146,9 @@ var FixedFooterLayout = function(param) {
|
|
|
130
146
|
if (isRunningAcceptanceTest(platformOverrides)) {
|
|
131
147
|
return false;
|
|
132
148
|
}
|
|
149
|
+
if (!hasContentEnoughVSpace) {
|
|
150
|
+
return false;
|
|
151
|
+
}
|
|
133
152
|
if (hasScroll(scrollable)) {
|
|
134
153
|
return getScrollDistanceToBottom(scrollable) > 1; // This is 1 and not 0 because a weird bug with Safari
|
|
135
154
|
}
|
|
@@ -152,14 +171,17 @@ var FixedFooterLayout = function(param) {
|
|
|
152
171
|
transitionAwaiter.cancel();
|
|
153
172
|
};
|
|
154
173
|
}, [
|
|
155
|
-
|
|
156
|
-
containerRef,
|
|
174
|
+
hasContentEnoughVSpace,
|
|
157
175
|
platformOverrides
|
|
158
176
|
]);
|
|
159
177
|
var classes = useStyles({
|
|
160
178
|
footerBgColor: footerBgColor,
|
|
161
179
|
containerBgColor: containerBgColor,
|
|
162
|
-
|
|
180
|
+
footerHeight: realFooterHeight,
|
|
181
|
+
windowHeight: windowHeight,
|
|
182
|
+
screenHeight: screenHeight,
|
|
183
|
+
isContentWithScroll: hasContentScroll(),
|
|
184
|
+
hasContentEnoughVSpace: hasContentEnoughVSpace
|
|
163
185
|
});
|
|
164
186
|
var _obj;
|
|
165
187
|
return /*#__PURE__*/ _jsxs(_Fragment, {
|
|
@@ -53,7 +53,7 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|
|
53
53
|
}
|
|
54
54
|
return target;
|
|
55
55
|
}
|
|
56
|
-
import { jsx as _jsx
|
|
56
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
57
57
|
/*
|
|
58
58
|
* This file was autogenerated. Don't edit this file!
|
|
59
59
|
*
|
|
@@ -70,22 +70,16 @@ var IconBuyDataLight = function(_param) {
|
|
|
70
70
|
var colors = useTheme().colors;
|
|
71
71
|
var isInverse = useIsInverseVariant();
|
|
72
72
|
var fillColor = color !== null && color !== void 0 ? color : isInverse ? colors.inverse : colors.neutralHigh;
|
|
73
|
-
return /*#__PURE__*/
|
|
73
|
+
return /*#__PURE__*/ _jsx("svg", _objectSpread({
|
|
74
74
|
width: size,
|
|
75
75
|
height: size,
|
|
76
76
|
viewBox: "0 0 24 24",
|
|
77
77
|
role: "presentation"
|
|
78
78
|
}, rest, {
|
|
79
|
-
children:
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}),
|
|
84
|
-
/*#__PURE__*/ _jsx("path", {
|
|
85
|
-
d: "M11.201 5.599v.003c0 .039.134.238.754.423.588.176 1.378.274 2.224.274.846 0 1.633-.098 2.224-.274.622-.188.753-.387.753-.426h-5.955zm0 0a.281.281 0 00-.28-.277.281.281 0 00-.28.277h.56zm-.571 16.235c-.871 0-1.373-.501-1.373-1.372 0-.872.502-1.373 1.373-1.373.87 0 1.372.501 1.372 1.373 0 .87-.498 1.372-1.372 1.372zm-.813-1.372c0 .563.25.812.813.812s.812-.25.812-.812c0-.564-.25-.813-.812-.813-.563 0-.813.25-.813.813zm6.275 1.372c-.871 0-1.373-.501-1.373-1.372 0-.872.502-1.373 1.373-1.373s1.372.501 1.372 1.373c0 .87-.498 1.372-1.372 1.372zm-.812-1.372c0 .563.249.812.812.812.563 0 .812-.25.812-.812 0-.564-.25-.813-.812-.813-.563 0-.812.25-.812.813z",
|
|
86
|
-
fill: fillColor
|
|
87
|
-
})
|
|
88
|
-
]
|
|
79
|
+
children: /*#__PURE__*/ _jsx("path", {
|
|
80
|
+
d: "M17.274 17.004h-6.662c-.777 0-1.466-.26-1.987-.752-.555-.524-.914-1.284-1.07-2.263C7.408 13.075 6.05 4.909 5.888 4a1.637 1.637 0 00-.65-1.013 2.138 2.138 0 00-1.289-.419H2.285A.286.286 0 012 2.285C2 2.128 2.128 2 2.285 2H3.95a2.72 2.72 0 011.634.532c.464.348.772.835.869 1.37.058.325.269 1.577.522 3.094h3.649V5.5c0-.88 1.864-1.281 3.595-1.281s3.596.401 3.596 1.28V7h3.9a.286.286 0 01.276.356l-.398 1.596-.37 1.482a623.86 623.86 0 01-.897 3.587c-.256.99-.626 1.717-1.125 2.218-.515.506-1.161.766-1.927.766zm.54-9.435v5.879c0 .88-1.861 1.278-3.595 1.278-1.73 0-3.595-.401-3.595-1.281v-5.88H7.07c.44 2.636.963 5.788 1.048 6.335.256 1.634 1.145 2.537 2.494 2.537h6.662c.618 0 1.116-.2 1.523-.606.421-.422.749-1.08.977-1.956.075-.29.259-1.027.481-1.918.13-.522.273-1.097.416-1.664l.015-.064.002-.006c.256-1.028.499-2.006.663-2.654h-3.536zm-3.355 4.507l-.24.002h-.028c-1.133-.003-2.318-.176-2.998-.543v1.913c0 .04.136.242.766.43.598.179 1.4.279 2.26.279.86 0 1.66-.1 2.26-.28.633-.19.767-.392.767-.43v-1.912c-.636.344-1.72.518-2.787.54zm2.787-1.276V8.887c-.64.346-1.73.52-2.803.541l-.224.003c-.83 0-1.688-.092-2.36-.285a3.353 3.353 0 01-.666-.261v1.912c0 .04.136.242.766.43.598.182 1.4.282 2.26.282.86 0 1.66-.1 2.26-.28.633-.19.767-.392.767-.429zm0-4.56c-.684.37-1.885.543-3.027.543-1.141 0-2.34-.177-3.026-.547V8.15c0 .04.136.242.766.43.598.18 1.4.282 2.26.282.86 0 1.66-.1 2.26-.279.633-.19.767-.393.767-.43V6.24zm0-.741c0-.04-.137-.242-.766-.433-.601-.176-1.401-.276-2.26-.276-.858 0-1.66.1-2.261.279-.63.19-.766.393-.766.433 0 .04.136.242.766.43.598.179 1.4.279 2.26.279.86 0 1.66-.1 2.26-.28.633-.19.767-.392.767-.432zM10.612 22c-.885 0-1.395-.51-1.395-1.395s.51-1.395 1.395-1.395c.886 0 1.395.51 1.395 1.395S11.5 22 10.612 22zm0-2.22c-.572 0-.826.253-.826.825s.254.826.826.826.826-.254.826-.826-.254-.826-.826-.826zM16.164 22c-.886 0-1.395-.51-1.395-1.395s.51-1.395 1.395-1.395 1.395.51 1.395 1.395S17.052 22 16.164 22zm0-2.22c-.573 0-.826.253-.826.825s.254.826.826.826.825-.254.825-.826-.253-.826-.825-.826z",
|
|
81
|
+
fill: fillColor
|
|
82
|
+
})
|
|
89
83
|
}));
|
|
90
84
|
};
|
|
91
85
|
export default IconBuyDataLight;
|
|
@@ -77,7 +77,7 @@ var IconBuyDataRegular = function(_param) {
|
|
|
77
77
|
role: "presentation"
|
|
78
78
|
}, rest, {
|
|
79
79
|
children: /*#__PURE__*/ _jsx("path", {
|
|
80
|
-
d: "M16.
|
|
80
|
+
d: "M16.974 17.285H10.61c-.852 0-1.607-.288-2.185-.83-.602-.566-.992-1.384-1.157-2.43-.131-.834-1.476-8.638-1.664-9.689-.123-.684-.835-1.196-1.661-1.196H2.57A.571.571 0 012 2.57c0-.314.256-.57.57-.57h1.376c1.39 0 2.561.897 2.783 2.137.05.277.226 1.289.446 2.564h3.304V5.49a.442.442 0 01.002-.063c.034-.455.46-.81 1.271-1.054.664-.2 1.541-.31 2.464-.31.924 0 1.801.11 2.465.31.765.23 1.188.56 1.262.978a.43.43 0 01.017.139v1.214h3.459a.571.571 0 01.552.71l-.443 1.77a2593.494 2593.494 0 01-.67 2.684c-.253 1.02-.47 1.89-.556 2.215-.27 1.042-.664 1.809-1.202 2.347-.567.567-1.282.855-2.126.855zm.986-9.442v5.596c0 .484-.427.86-1.273 1.114-.664.202-1.542.31-2.468.31-.926 0-1.8-.11-2.467-.31-.846-.254-1.273-.63-1.273-1.114V7.84H7.372c.435 2.524.942 5.476 1.027 6.009.125.79.396 1.385.812 1.778.364.345.837.521 1.402.521h6.361c.695 0 1.681-.242 2.225-2.35.078-.3.273-1.08.506-2.013l.392-1.569.143-.572c.166-.67.323-1.298.45-1.8h-2.73zm-.886-2.356c-.077-.068-.288-.208-.809-.345-.564-.145-1.29-.225-2.046-.225-.755 0-1.481.08-2.045.225-.522.137-.732.277-.81.345.058.051.19.143.47.243.095.033.207.068.34.102.564.145 1.29.225 2.045.225.755 0 1.482-.08 2.046-.225.522-.135.733-.277.809-.345zm-5.735.967l-.006 1.651c.034.043.211.214.84.376.565.146 1.291.226 2.046.226.755 0 1.482-.08 2.046-.226.63-.162.806-.336.84-.376V6.453a4.303 4.303 0 01-.418.151c-.664.2-1.542.31-2.465.31-.923 0-1.8-.11-2.464-.31a3.96 3.96 0 01-.419-.15zm.413 2.8a3.925 3.925 0 01-.416-.15l-.003 1.651c.034.043.211.214.84.376.565.145 1.291.225 2.046.225.755 0 1.482-.08 2.046-.225.63-.162.806-.336.84-.376V9.104a3.924 3.924 0 01-.418.15 5.48 5.48 0 01-.259.07c-.625.155-1.398.24-2.206.24h-.003c-.926 0-1.8-.111-2.467-.31zm-.419 4.156c.037.043.217.214.84.376.565.146 1.291.225 2.046.225.755 0 1.482-.08 2.046-.225.624-.16.803-.33.84-.376v-1.655a4.314 4.314 0 01-.418.151c-.664.2-1.542.31-2.465.31-.923 0-1.8-.11-2.467-.31a4.314 4.314 0 01-.419-.151l-.003 1.655zM10.61 22c-.51 0-.918-.145-1.214-.43-.31-.3-.467-.718-.467-1.25 0-.534.156-.953.467-1.252.296-.285.707-.43 1.214-.43s.917.145 1.213.43c.31.3.468.718.468 1.251 0 .533-.157.952-.468 1.25-.293.286-.703.431-1.213.431zm0-2.222c-.416 0-.542.125-.542.541 0 .416.126.541.542.541.416 0 .541-.125.541-.54 0-.417-.125-.542-.541-.542zM16.165 22c-.51 0-.917-.145-1.213-.43-.311-.3-.468-.718-.468-1.25 0-.534.157-.953.468-1.252.296-.285.706-.43 1.213-.43.507 0 .918.145 1.214.43.308.3.467.718.467 1.251 0 .533-.157.952-.467 1.25-.294.286-.704.431-1.214.431zm0-2.222c-.416 0-.541.125-.541.541 0 .416.125.541.541.541.416 0 .542-.125.542-.54 0-.417-.126-.542-.542-.542z",
|
|
81
81
|
fill: fillColor
|
|
82
82
|
})
|
|
83
83
|
}));
|
|
@@ -96,7 +96,7 @@ var IconEcoLight = function(_param) {
|
|
|
96
96
|
role: "presentation"
|
|
97
97
|
}, rest, {
|
|
98
98
|
children: /*#__PURE__*/ _jsx("path", {
|
|
99
|
-
d: "
|
|
99
|
+
d: "M3.437 3.002c-.79.003-1.434.65-1.437 1.44v3.265c0 .02.002.04.006.059.053 1.318.447 2.341 1.177 3.043.756.727 1.856 1.097 3.267 1.097 1.38 0 2.459-.351 3.21-1.045.278.547.521 1.151.728 1.812.718 2.295.858 4.773.95 6.412l.002.043c.036.621.064 1.113.117 1.437a.272.272 0 00.228.225c.014.003.028.003.043.003a.272.272 0 00.265-.228c.332-2.039.973-4.861 2.165-7.133.047.05.095.1.144.148.753.727 1.85 1.095 3.259 1.095 1.411 0 2.506-.368 3.256-1.095.725-.696 1.118-1.709 1.173-3.016a.256.256 0 00.01-.075V7.225c0-.784-.642-1.423-1.425-1.426H17.56c-1.409 0-2.506.368-3.259 1.095-.781.756-1.177 1.879-1.177 3.344 0 1.108.227 2.023.677 2.729-.253.459-.491.957-.714 1.49-.59 1.414-.985 2.86-1.243 4.011-.131-2.182-.42-5.452-1.794-8.036.562-.736.844-1.734.844-2.973 0-1.472-.399-2.598-1.183-3.356-.755-.73-1.851-1.1-3.26-1.1a371.8 371.8 0 00-3.015 0zm-.873 4.454V4.442a.88.88 0 01.873-.875h3.01c2.578 0 3.884 1.309 3.884 3.889 0 1.003-.198 1.815-.592 2.431-.801-1.294-1.916-2.365-3.477-2.962a.272.272 0 00-.194.508c1.368.522 2.474 1.497 3.309 2.91-.649.664-1.627.999-2.93.999-2.577 0-3.883-1.309-3.883-3.886zm11.097 2.782c0-2.591 1.311-3.903 3.9-3.903h3.016a.898.898 0 01.89.89v2.958a.266.266 0 00-.006.055c0 2.59-1.311 3.9-3.9 3.9-1.438 0-2.482-.404-3.125-1.207.972-1.662 2.274-2.946 4.015-3.263a.27.27 0 00-.098-.53c-1.197.216-2.283.864-3.23 1.924a9.646 9.646 0 00-1.01 1.37c-.301-.583-.452-1.315-.452-2.194z",
|
|
100
100
|
fill: fillColor
|
|
101
101
|
})
|
|
102
102
|
}));
|
|
@@ -90,7 +90,7 @@ var IconJusticeRegular = function(_param) {
|
|
|
90
90
|
role: "presentation"
|
|
91
91
|
}, rest, {
|
|
92
92
|
children: /*#__PURE__*/ _jsx("path", {
|
|
93
|
-
d: "
|
|
93
|
+
d: "M20.352 15.383c-.216.216-.538.344-.96.373a59.137 59.137 0 01-1.906.002c-.444-.02-.786-.148-1.016-.375a1.281 1.281 0 01-.316-.584h4.511a1.253 1.253 0 01-.313.584zm-2.308-7.654l2.37 5.758h-4.106l1.736-5.758zm-2.772 12.168c.466 0 .814.114 1.039.338.113.117.199.268.259.456H7.425c.057-.188.145-.339.256-.456.222-.224.572-.338 1.039-.338h6.552zm-3.828-13.44h.173c.009 0 .017.006.026.006.008 0 .219-.003.398-.003v.003h.313c.009 0 .017-.006.026-.006h.17v12.128h-1.106V6.457zm-3.76 7.03H3.577l2.37-5.758 1.737 5.758zm-.162 1.896c-.228.227-.573.353-1.014.375a59.142 59.142 0 01-1.907-.003c-.42-.028-.742-.153-.962-.372a1.253 1.253 0 01-.313-.584h4.511c-.065.242-.17.439-.315.584zm14.475-1.241c0-.029-.014-.054-.017-.086a.569.569 0 00-.034-.17l-3-7.284c.137.06.262.128.359.222a.606.606 0 00.888-.02.678.678 0 00-.02-.928c-.444-.444-1.048-.688-1.796-.725-.06-.003-3.387-.006-5.317-.006a1.35 1.35 0 00.21-.165c.288-.29.436-.72.436-1.275 0-.56-.145-.99-.435-1.28-.276-.283-.678-.425-1.19-.425-.003 0-.008 0-.011.003V2h-.148c-.513 0-.914.142-1.19.424-.287.29-.435.72-.435 1.28 0 .556.145.986.435 1.276a1.1 1.1 0 00.21.165c-1.932 0-5.26 0-5.316.006-.749.037-1.352.281-1.796.725a.675.675 0 00-.02.928.602.602 0 00.453.202c.156 0 .313-.06.432-.182.094-.094.222-.165.356-.222l-3 7.284c-.023.054-.025.113-.034.17-.003.029-.017.057-.017.086v.003c0 .933.262 1.667.771 2.183.436.438 1.022.686 1.745.737a66.277 66.277 0 002.046.005c.763-.037 1.38-.284 1.833-.74.504-.503.757-1.218.772-2.114 0-.006 0-.012.002-.017 0-.02.003-.034.003-.054 0-.037-.014-.069-.02-.103-.005-.031 0-.063-.008-.097L6.884 6.46c.928 0 2.217 0 3.307-.003v12.128H8.725c-.805 0-1.445.239-1.912.708-.484.487-.729 1.179-.729 2.052 0 .362.282.655.63.655.02 0 .036-.009.056-.011.017.002.034.011.054.011H17.18c.02 0 .037-.009.056-.011.018.002.035.011.055.011a.642.642 0 00.629-.655c0-.876-.245-1.565-.729-2.052-.467-.47-1.107-.708-1.91-.708h-1.468V6.457c1.09 0 2.382 0 3.31.003l-2.257 7.485c-.012.034-.006.066-.012.097-.005.034-.02.066-.02.103 0 .017.003.034.003.054 0 .005 0 .011.003.017.014.896.27 1.61.771 2.114.456.456 1.073.703 1.836.74a65.907 65.907 0 002.04-.006c.72-.05 1.31-.298 1.745-.736.504-.518.766-1.253.766-2.186z",
|
|
94
94
|
fill: fillColor
|
|
95
95
|
})
|
|
96
96
|
}));
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
function _defineProperty(obj, key, value) {
|
|
2
|
+
if (key in obj) {
|
|
3
|
+
Object.defineProperty(obj, key, {
|
|
4
|
+
value: value,
|
|
5
|
+
enumerable: true,
|
|
6
|
+
configurable: true,
|
|
7
|
+
writable: true
|
|
8
|
+
});
|
|
9
|
+
} else {
|
|
10
|
+
obj[key] = value;
|
|
11
|
+
}
|
|
12
|
+
return obj;
|
|
13
|
+
}
|
|
14
|
+
function _objectSpread(target) {
|
|
15
|
+
for(var i = 1; i < arguments.length; i++){
|
|
16
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
17
|
+
var ownKeys = Object.keys(source);
|
|
18
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
19
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
20
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
21
|
+
}));
|
|
22
|
+
}
|
|
23
|
+
ownKeys.forEach(function(key) {
|
|
24
|
+
_defineProperty(target, key, source[key]);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
return target;
|
|
28
|
+
}
|
|
29
|
+
function _objectWithoutProperties(source, excluded) {
|
|
30
|
+
if (source == null) return {};
|
|
31
|
+
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
32
|
+
var key, i;
|
|
33
|
+
if (Object.getOwnPropertySymbols) {
|
|
34
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
35
|
+
for(i = 0; i < sourceSymbolKeys.length; i++){
|
|
36
|
+
key = sourceSymbolKeys[i];
|
|
37
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
38
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
39
|
+
target[key] = source[key];
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return target;
|
|
43
|
+
}
|
|
44
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
45
|
+
if (source == null) return {};
|
|
46
|
+
var target = {};
|
|
47
|
+
var sourceKeys = Object.keys(source);
|
|
48
|
+
var key, i;
|
|
49
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
50
|
+
key = sourceKeys[i];
|
|
51
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
52
|
+
target[key] = source[key];
|
|
53
|
+
}
|
|
54
|
+
return target;
|
|
55
|
+
}
|
|
56
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
57
|
+
/*
|
|
58
|
+
* This file was autogenerated. Don't edit this file!
|
|
59
|
+
*
|
|
60
|
+
* To update, execute "yarn start" inside "import-mistica-icons"
|
|
61
|
+
*/ import * as React from "react";
|
|
62
|
+
import { useTheme } from "../../hooks";
|
|
63
|
+
import { useIsInverseVariant } from "../../theme-variant-context";
|
|
64
|
+
var IconTokensFilled = function(_param) {
|
|
65
|
+
var color = _param.color, _size = _param.size, size = _size === void 0 ? 24 : _size, children = _param.children, rest = _objectWithoutProperties(_param, [
|
|
66
|
+
"color",
|
|
67
|
+
"size",
|
|
68
|
+
"children"
|
|
69
|
+
]);
|
|
70
|
+
var colors = useTheme().colors;
|
|
71
|
+
var isInverse = useIsInverseVariant();
|
|
72
|
+
var fillColor = color !== null && color !== void 0 ? color : isInverse ? colors.inverse : colors.neutralHigh;
|
|
73
|
+
return /*#__PURE__*/ _jsx("svg", _objectSpread({
|
|
74
|
+
width: size,
|
|
75
|
+
height: size,
|
|
76
|
+
viewBox: "0 0 24 24",
|
|
77
|
+
role: "presentation"
|
|
78
|
+
}, rest, {
|
|
79
|
+
children: /*#__PURE__*/ _jsx("path", {
|
|
80
|
+
d: "M13.43 4.63l-.016.034-.029.066-.005.01a11.525 11.525 0 01-1.845 2.881 11.612 11.612 0 01-3.95 2.931 12.737 12.737 0 00-2.032-2.457 8.422 8.422 0 002.19-1.11 8.586 8.586 0 002.83-3.4.9.9 0 00.03-.068l.005-.013a1.52 1.52 0 012.763-.125l.027.063.02.045.014.03.008.018c.133.353.13.744-.01 1.095zM8.207 16.026a12.725 12.725 0 00-2.95 1.346 8.572 8.572 0 00-.327-2.294 8.515 8.515 0 00-2.386-3.885l-.005-.005a2.844 2.844 0 00-.074-.067l-.006-.006A1.516 1.516 0 013.49 8.511h.024a1.51 1.51 0 011.072.445c.02.02.042.038.065.055a11.46 11.46 0 012.115 2.671l.003.006a11.612 11.612 0 011.437 4.338zm10.659 2.754a8.579 8.579 0 011.247-5.97 12.745 12.745 0 01-3.117-.657 11.576 11.576 0 00-.87 8.3c.109.29.302.542.555.721h.002l.014.009.04.027a1.52 1.52 0 002.303-1.61l-.029-.114a8.117 8.117 0 01-.145-.707zm-6.83.99c.924.005 1.84.16 2.714.457a12.796 12.796 0 01-.302-3.226 11.577 11.577 0 00-5.386.115c-1.17.308-2.283.8-3.298 1.455l-.012.008c-.083.053-.17.11-.26.173a1.51 1.51 0 00-.476.692 8.235 8.235 0 01-.055.21 1.52 1.52 0 002.402 1.495l.01-.007A8.494 8.494 0 0112 19.77h.036zm2.52-4.057c.19-1.407.611-2.774 1.246-4.044a12.917 12.917 0 01-3.785-2.679 12.91 12.91 0 01-3.798 2.687 12.937 12.937 0 011.242 4.031 12.876 12.876 0 015.095.005zm7.002-4.615c.284-.284.444-.67.445-1.072a1.523 1.523 0 00-1.395-1.512l-.074-.005h-.015a8.462 8.462 0 01-5.992-3.188 12.775 12.775 0 01-1.657 2.705 11.593 11.593 0 004.065 2.734c1.096.435 2.253.698 3.43.78h.016l.025.001a1.518 1.518 0 001.152-.443z",
|
|
81
|
+
fill: fillColor
|
|
82
|
+
})
|
|
83
|
+
}));
|
|
84
|
+
};
|
|
85
|
+
export default IconTokensFilled;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
function _defineProperty(obj, key, value) {
|
|
2
|
+
if (key in obj) {
|
|
3
|
+
Object.defineProperty(obj, key, {
|
|
4
|
+
value: value,
|
|
5
|
+
enumerable: true,
|
|
6
|
+
configurable: true,
|
|
7
|
+
writable: true
|
|
8
|
+
});
|
|
9
|
+
} else {
|
|
10
|
+
obj[key] = value;
|
|
11
|
+
}
|
|
12
|
+
return obj;
|
|
13
|
+
}
|
|
14
|
+
function _objectSpread(target) {
|
|
15
|
+
for(var i = 1; i < arguments.length; i++){
|
|
16
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
17
|
+
var ownKeys = Object.keys(source);
|
|
18
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
19
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
20
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
21
|
+
}));
|
|
22
|
+
}
|
|
23
|
+
ownKeys.forEach(function(key) {
|
|
24
|
+
_defineProperty(target, key, source[key]);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
return target;
|
|
28
|
+
}
|
|
29
|
+
function _objectWithoutProperties(source, excluded) {
|
|
30
|
+
if (source == null) return {};
|
|
31
|
+
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
32
|
+
var key, i;
|
|
33
|
+
if (Object.getOwnPropertySymbols) {
|
|
34
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
35
|
+
for(i = 0; i < sourceSymbolKeys.length; i++){
|
|
36
|
+
key = sourceSymbolKeys[i];
|
|
37
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
38
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
39
|
+
target[key] = source[key];
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return target;
|
|
43
|
+
}
|
|
44
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
45
|
+
if (source == null) return {};
|
|
46
|
+
var target = {};
|
|
47
|
+
var sourceKeys = Object.keys(source);
|
|
48
|
+
var key, i;
|
|
49
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
50
|
+
key = sourceKeys[i];
|
|
51
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
52
|
+
target[key] = source[key];
|
|
53
|
+
}
|
|
54
|
+
return target;
|
|
55
|
+
}
|
|
56
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
57
|
+
/*
|
|
58
|
+
* This file was autogenerated. Don't edit this file!
|
|
59
|
+
*
|
|
60
|
+
* To update, execute "yarn start" inside "import-mistica-icons"
|
|
61
|
+
*/ import * as React from "react";
|
|
62
|
+
import { useTheme } from "../../hooks";
|
|
63
|
+
import { useIsInverseVariant } from "../../theme-variant-context";
|
|
64
|
+
var IconTokensLight = function(_param) {
|
|
65
|
+
var color = _param.color, _size = _param.size, size = _size === void 0 ? 24 : _size, children = _param.children, rest = _objectWithoutProperties(_param, [
|
|
66
|
+
"color",
|
|
67
|
+
"size",
|
|
68
|
+
"children"
|
|
69
|
+
]);
|
|
70
|
+
var colors = useTheme().colors;
|
|
71
|
+
var isInverse = useIsInverseVariant();
|
|
72
|
+
var fillColor = color !== null && color !== void 0 ? color : isInverse ? colors.inverse : colors.neutralHigh;
|
|
73
|
+
return /*#__PURE__*/ _jsx("svg", _objectSpread({
|
|
74
|
+
width: size,
|
|
75
|
+
height: size,
|
|
76
|
+
viewBox: "0 0 24 24",
|
|
77
|
+
role: "presentation"
|
|
78
|
+
}, rest, {
|
|
79
|
+
children: /*#__PURE__*/ _jsx("path", {
|
|
80
|
+
d: "M22 10.196a2.254 2.254 0 00-2.07-2.246l-.021-.001-.063-.005h-.009a6.868 6.868 0 01-5.723-4.013 2.256 2.256 0 00-4.194-.009v.003l-.009.023-.003.006c-.09.193-.182.37-.292.562a6.865 6.865 0 01-5.421 3.428H4.19c-.06.002-.12.006-.176.012l-.011.001h-.004a2.254 2.254 0 00-1.231 3.936l.004.004a6.852 6.852 0 011.938 3.15 6.961 6.961 0 01.079 3.504c-.026.08-.047.163-.064.246l-.006.03a2.258 2.258 0 003.402 2.332l.01-.006.005-.004a4.28 4.28 0 01.116-.077l.005-.003a6.882 6.882 0 013.741-1.107h.031a6.926 6.926 0 013.758 1.13l.004.002.004.002.013.01.027.017.004.003a2.251 2.251 0 002.212.14 2.26 2.26 0 001.223-2.528c0-.006-.003-.013-.005-.019a6.673 6.673 0 01-.144-.674 6.941 6.941 0 012.134-6.18l.043-.04A2.249 2.249 0 0022 10.196zm-2.902-1.774c.231.04.467.07.701.088h.009l.07.005h.001a1.687 1.687 0 01-.134 3.368c-.028 0-.058 0-.087-.002l-.035-.002h-.01a10.754 10.754 0 01-3.22-.733 10.893 10.893 0 01-4-2.763 11.38 11.38 0 001.662-2.659l.001-.004a2.28 2.28 0 00.05-.113l.004-.009c.043-.108.078-.22.105-.334a7.425 7.425 0 004.883 3.158zm-4.505 7.33a11.43 11.43 0 00-5.171-.005 11.49 11.49 0 00-1.289-4.191 11.472 11.472 0 003.883-2.744 11.469 11.469 0 003.87 2.738 11.497 11.497 0 00-1.293 4.201zM10.107 4.799a7.045 7.045 0 00.334-.652l.005-.014a1.69 1.69 0 013.08-.13l.003.009c.013.032.028.063.04.094l.024.05c.152.398.148.837-.011 1.232l-.044.099-.002.005v.002a10.81 10.81 0 01-1.734 2.707 10.891 10.891 0 01-3.952 2.858 11.342 11.342 0 00-2.02-2.476 2.295 2.295 0 00-.349-.279 7.36 7.36 0 002.458-1.13 7.536 7.536 0 002.168-2.375zM3.668 12a7.545 7.545 0 00-.507-.518l-.003-.003a4.351 4.351 0 00-.073-.067 1.687 1.687 0 011.136-2.9h.033a1.676 1.676 0 011.193.493.289.289 0 00.037.032 10.77 10.77 0 012 2.52 10.914 10.914 0 011.382 4.334c-1.07.306-2.089.768-3.023 1.371l-.008.005c-.09.059-.183.12-.285.19l-.017.012-.008.008A7.468 7.468 0 003.668 12zm8.33 7.394a7.453 7.453 0 00-4.054 1.202l-.003.002-.004.002a1.69 1.69 0 01-2.659-1.674l.001-.006c.02-.072.039-.145.056-.214.101-.31.29-.583.544-.787a8.51 8.51 0 01.257-.17l.007-.005c.954-.616 2-1.078 3.098-1.367a10.874 10.874 0 015.306-.051 11.375 11.375 0 00.3 3.297v.006c.026.11.056.223.086.337a.333.333 0 00.006.02l.005.014a7.514 7.514 0 00-2.914-.605h-.031zm6.765-4.51a7.544 7.544 0 00-.07 3.874c.009.035.018.07.029.105a1.692 1.692 0 01-2.565 1.794l-.002-.002-.035-.023-.01-.007-.003-.002a1.708 1.708 0 01-.626-.818 9.122 9.122 0 01-.081-.314l-.002-.007a10.87 10.87 0 011.02-7.721c1.012.377 2.074.606 3.152.681h.002l.057.004a2.304 2.304 0 00.348-.01 7.526 7.526 0 00-1.214 2.446z",
|
|
81
|
+
fill: fillColor
|
|
82
|
+
})
|
|
83
|
+
}));
|
|
84
|
+
};
|
|
85
|
+
export default IconTokensLight;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
function _defineProperty(obj, key, value) {
|
|
2
|
+
if (key in obj) {
|
|
3
|
+
Object.defineProperty(obj, key, {
|
|
4
|
+
value: value,
|
|
5
|
+
enumerable: true,
|
|
6
|
+
configurable: true,
|
|
7
|
+
writable: true
|
|
8
|
+
});
|
|
9
|
+
} else {
|
|
10
|
+
obj[key] = value;
|
|
11
|
+
}
|
|
12
|
+
return obj;
|
|
13
|
+
}
|
|
14
|
+
function _objectSpread(target) {
|
|
15
|
+
for(var i = 1; i < arguments.length; i++){
|
|
16
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
17
|
+
var ownKeys = Object.keys(source);
|
|
18
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
19
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
20
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
21
|
+
}));
|
|
22
|
+
}
|
|
23
|
+
ownKeys.forEach(function(key) {
|
|
24
|
+
_defineProperty(target, key, source[key]);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
return target;
|
|
28
|
+
}
|
|
29
|
+
function _objectWithoutProperties(source, excluded) {
|
|
30
|
+
if (source == null) return {};
|
|
31
|
+
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
32
|
+
var key, i;
|
|
33
|
+
if (Object.getOwnPropertySymbols) {
|
|
34
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
35
|
+
for(i = 0; i < sourceSymbolKeys.length; i++){
|
|
36
|
+
key = sourceSymbolKeys[i];
|
|
37
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
38
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
39
|
+
target[key] = source[key];
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return target;
|
|
43
|
+
}
|
|
44
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
45
|
+
if (source == null) return {};
|
|
46
|
+
var target = {};
|
|
47
|
+
var sourceKeys = Object.keys(source);
|
|
48
|
+
var key, i;
|
|
49
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
50
|
+
key = sourceKeys[i];
|
|
51
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
52
|
+
target[key] = source[key];
|
|
53
|
+
}
|
|
54
|
+
return target;
|
|
55
|
+
}
|
|
56
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
57
|
+
/*
|
|
58
|
+
* This file was autogenerated. Don't edit this file!
|
|
59
|
+
*
|
|
60
|
+
* To update, execute "yarn start" inside "import-mistica-icons"
|
|
61
|
+
*/ import * as React from "react";
|
|
62
|
+
import { useTheme } from "../../hooks";
|
|
63
|
+
import { useIsInverseVariant } from "../../theme-variant-context";
|
|
64
|
+
var IconTokensRegular = function(_param) {
|
|
65
|
+
var color = _param.color, _size = _param.size, size = _size === void 0 ? 24 : _size, children = _param.children, rest = _objectWithoutProperties(_param, [
|
|
66
|
+
"color",
|
|
67
|
+
"size",
|
|
68
|
+
"children"
|
|
69
|
+
]);
|
|
70
|
+
var colors = useTheme().colors;
|
|
71
|
+
var isInverse = useIsInverseVariant();
|
|
72
|
+
var fillColor = color !== null && color !== void 0 ? color : isInverse ? colors.inverse : colors.neutralHigh;
|
|
73
|
+
return /*#__PURE__*/ _jsx("svg", _objectSpread({
|
|
74
|
+
width: size,
|
|
75
|
+
height: size,
|
|
76
|
+
viewBox: "0 0 24 24",
|
|
77
|
+
role: "presentation"
|
|
78
|
+
}, rest, {
|
|
79
|
+
children: /*#__PURE__*/ _jsx("path", {
|
|
80
|
+
d: "M22 10.254a2.482 2.482 0 00-2.276-2.472l-.034-.003a.438.438 0 01-.051-.004h-.013a6.373 6.373 0 01-5.305-3.721 2.483 2.483 0 00-4.614 0l-.002.006-.004.01v.003a6.371 6.371 0 01-5.297 3.7h-.005a2.481 2.481 0 00-1.56 4.34l.006.006a6.312 6.312 0 011.797 2.923 6.46 6.46 0 01.074 3.246c-.026.085-.048.17-.065.258l-.007.035a2.485 2.485 0 003.744 2.565l.02-.012.006-.005.108-.072.005-.002.003-.003a6.388 6.388 0 016.982.022h.002l.007.005.008.006.029.018.01.007a2.48 2.48 0 002.435.154 2.486 2.486 0 001.313-2.905 6.443 6.443 0 011.425-5.814 5.91 5.91 0 01.37-.381l.002-.003a4.014 4.014 0 01.124-.115l.014-.016A2.474 2.474 0 0022 10.254zm-3.16-1.433c.233.04.471.07.708.088h.01l.068.005a1.344 1.344 0 01-.108 2.683c-.023 0-.047 0-.07-.002h-.037a10.135 10.135 0 01-3.04-.692 10.275 10.275 0 01-3.6-2.422c.587-.735 1.08-1.54 1.468-2.397a7.497 7.497 0 004.6 2.737zm-4.575 6.471a11.408 11.408 0 00-4.515-.004 11.468 11.468 0 00-1.1-3.572 11.436 11.436 0 003.364-2.38c.965.987 2.101 1.79 3.353 2.373a11.467 11.467 0 00-1.103 3.583zM10.416 5.164a7.045 7.045 0 00.343-.674l.004-.01a1.346 1.346 0 012.449-.117v.002l.042.095.02.042c.117.313.114.66-.01.97-.013.028-.026.06-.04.088a.074.074 0 00-.003.009v.001a10.193 10.193 0 01-1.635 2.553 10.283 10.283 0 01-3.499 2.597 11.303 11.303 0 00-1.8-2.178 7.454 7.454 0 001.94-.983 7.601 7.601 0 002.189-2.397v.002zM4.132 11.81a7.397 7.397 0 00-.512-.522l-.004-.004a4.177 4.177 0 00-.066-.06l-.004-.004a1.344 1.344 0 01.785-2.3l.127-.008a1.337 1.337 0 01.974.393.612.612 0 00.057.05c.74.69 1.37 1.488 1.874 2.366a10.287 10.287 0 011.277 3.85c-.918.285-1.797.686-2.613 1.193a7.539 7.539 0 00-1.895-4.954zm4.308 7.974a7.701 7.701 0 00-.54.32l-.008.005a1.348 1.348 0 01-2.128-1.324l.048-.186c.08-.24.226-.453.422-.614l.23-.153.01-.006a10.17 10.17 0 012.923-1.29 10.26 10.26 0 014.772-.102c-.033.96.057 1.921.267 2.859a7.531 7.531 0 00-5.996.491zm9.842-5.06a7.616 7.616 0 00-.07 3.912 1.348 1.348 0 01-2.015 1.528l-.039-.026-.01-.006a1.36 1.36 0 01-.49-.64c-.027-.096-.051-.192-.074-.284l-.002-.008c-.57-2.379-.27-4.884.845-7.062.893.309 1.82.504 2.762.581a7.592 7.592 0 00-.907 2.005z",
|
|
81
|
+
fill: fillColor
|
|
82
|
+
})
|
|
83
|
+
}));
|
|
84
|
+
};
|
|
85
|
+
export default IconTokensRegular;
|
package/dist-es/hooks.js
CHANGED
|
@@ -147,10 +147,14 @@ export var useWindowSize = function() {
|
|
|
147
147
|
), 2), windowHeight = ref[0], setWindowHeight = ref[1];
|
|
148
148
|
var ref6 = _slicedToArray(React.useState(typeof window !== "undefined" ? window.innerWidth : 800 // Best guess
|
|
149
149
|
), 2), windowWidth = ref6[0], setWindowWidth = ref6[1];
|
|
150
|
+
var ref7 = _slicedToArray(React.useState(typeof window !== "undefined" ? window.screen.availHeight : 1200), 2), screenHeight = ref7[0], setScreenHeight = ref7[1];
|
|
151
|
+
var ref8 = _slicedToArray(React.useState(typeof window !== "undefined" ? window.screen.availWidth : 800), 2), screenWidth = ref8[0], setScreenWidth = ref8[1];
|
|
150
152
|
React.useEffect(function() {
|
|
151
153
|
var handleResize = function() {
|
|
152
154
|
setWindowHeight(window.innerHeight);
|
|
153
155
|
setWindowWidth(window.innerWidth);
|
|
156
|
+
setScreenHeight(window.screen.availHeight);
|
|
157
|
+
setScreenWidth(window.screen.availWidth);
|
|
154
158
|
};
|
|
155
159
|
window.addEventListener("resize", handleResize);
|
|
156
160
|
return function() {
|
|
@@ -161,11 +165,15 @@ export var useWindowSize = function() {
|
|
|
161
165
|
return React.useMemo(function() {
|
|
162
166
|
return {
|
|
163
167
|
height: windowHeight,
|
|
164
|
-
width: windowWidth
|
|
168
|
+
width: windowWidth,
|
|
169
|
+
screenHeight: screenHeight,
|
|
170
|
+
screenWidth: screenWidth
|
|
165
171
|
};
|
|
166
172
|
}, [
|
|
167
173
|
windowHeight,
|
|
168
|
-
windowWidth
|
|
174
|
+
windowWidth,
|
|
175
|
+
screenHeight,
|
|
176
|
+
screenWidth
|
|
169
177
|
]);
|
|
170
178
|
};
|
|
171
179
|
export var useWindowHeight = function() {
|
|
@@ -176,6 +184,10 @@ export var useWindowWidth = function() {
|
|
|
176
184
|
var width = useWindowSize().width;
|
|
177
185
|
return width;
|
|
178
186
|
};
|
|
187
|
+
export var useScreenHeight = function() {
|
|
188
|
+
var screenHeight = useWindowSize().screenHeight;
|
|
189
|
+
return screenHeight;
|
|
190
|
+
};
|
|
179
191
|
// React currently throws a warning when using useLayoutEffect on the server.
|
|
180
192
|
// To get around it, we can conditionally useEffect on the server (no-op) and
|
|
181
193
|
// useLayoutEffect in the browser
|