@obolnetwork/obol-ui 1.0.5 → 1.0.6
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/index.es.js +35 -32
- package/dist/index.js +36 -33
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -2,8 +2,8 @@ import { createStitches } from '@stitches/react';
|
|
|
2
2
|
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
3
3
|
import Image$1 from 'next/image';
|
|
4
4
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
5
|
-
import React, { useState, useEffect } from 'react';
|
|
6
5
|
import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
|
6
|
+
import React, { useState, useEffect } from 'react';
|
|
7
7
|
import { useRouter } from 'next/router';
|
|
8
8
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
9
9
|
|
|
@@ -1096,46 +1096,25 @@ var TeamMemberCard = function (props) { return (jsxs(Box, __assign({ css: {
|
|
|
1096
1096
|
gap: "14px",
|
|
1097
1097
|
} }, { children: [props.links.map(function (item) { return (jsx(Link, __assign({ variant: "docs", target: "_blank", href: item.link }, { children: item.network === "twitter" ? jsx(TwitterIcon, {}) : jsx(GithubIcon, {}) }), "icon-".concat(item.network))); }), " "] })))] }))] }))); };
|
|
1098
1098
|
|
|
1099
|
-
function useMediaQuery(query) {
|
|
1100
|
-
var _a = useState(false), matches = _a[0], setMatches = _a[1];
|
|
1101
|
-
useEffect(function () {
|
|
1102
|
-
if (typeof window !== "undefined") {
|
|
1103
|
-
var media_1 = window.matchMedia(query);
|
|
1104
|
-
if (media_1.matches !== matches) {
|
|
1105
|
-
setMatches(media_1.matches);
|
|
1106
|
-
}
|
|
1107
|
-
var listener_1 = function () {
|
|
1108
|
-
setMatches(media_1.matches);
|
|
1109
|
-
};
|
|
1110
|
-
media_1.addListener(listener_1);
|
|
1111
|
-
return function () { return media_1.removeListener(listener_1); };
|
|
1112
|
-
}
|
|
1113
|
-
}, [matches, query]);
|
|
1114
|
-
return matches;
|
|
1115
|
-
}
|
|
1116
|
-
var MediaQueryKeys = {
|
|
1117
|
-
xs: '(max-width: 520px)',
|
|
1118
|
-
sm: '(max-width: 900px)',
|
|
1119
|
-
md: '(max-width: 1200px)',
|
|
1120
|
-
lg: '(max-width: 1800px)',
|
|
1121
|
-
};
|
|
1122
|
-
|
|
1123
1099
|
var LogoCard = function (props) {
|
|
1124
|
-
var screenDownSm = useMediaQuery(MediaQueryKeys.sm);
|
|
1125
1100
|
return (jsx(Box, __assign({ as: "a", className: "logo-card", css: {
|
|
1126
|
-
position: "relative",
|
|
1127
1101
|
width: "288px",
|
|
1128
1102
|
height: "120px",
|
|
1103
|
+
maxWidth: "288px",
|
|
1104
|
+
maxHeight: "120px",
|
|
1129
1105
|
borderRadius: "$4",
|
|
1130
1106
|
backgroundColor: "$bg04",
|
|
1131
|
-
"&:hover": { cursor: "pointer", backgroundColor: "$bg05" },
|
|
1132
1107
|
p: "$sm",
|
|
1108
|
+
"&:hover": { cursor: "pointer", backgroundColor: "$bg05" },
|
|
1133
1109
|
"@sm": {
|
|
1134
|
-
width: "
|
|
1135
|
-
height: "
|
|
1136
|
-
|
|
1110
|
+
width: "100%",
|
|
1111
|
+
height: "120px",
|
|
1112
|
+
},
|
|
1113
|
+
"@xs": {
|
|
1114
|
+
width: "auto",
|
|
1115
|
+
height: "60px",
|
|
1137
1116
|
},
|
|
1138
|
-
}, target: "_blank", href: props.logoCardLink }, { children:
|
|
1117
|
+
}, target: "_blank", href: props.logoCardLink }, { children: jsx(Box, __assign({ css: { position: "relative", width: "100%", height: "100%" } }, { children: jsx(Image, { src: props.image, layout: "fill", objectFit: "contain", alt: props.heading, quality: 100 }) })) })));
|
|
1139
1118
|
};
|
|
1140
1119
|
|
|
1141
1120
|
// Exports
|
|
@@ -1364,6 +1343,30 @@ var Accordion = /*#__PURE__*/Object.freeze({
|
|
|
1364
1343
|
Content: Content
|
|
1365
1344
|
});
|
|
1366
1345
|
|
|
1346
|
+
function useMediaQuery(query) {
|
|
1347
|
+
var _a = useState(false), matches = _a[0], setMatches = _a[1];
|
|
1348
|
+
useEffect(function () {
|
|
1349
|
+
if (typeof window !== "undefined") {
|
|
1350
|
+
var media_1 = window.matchMedia(query);
|
|
1351
|
+
if (media_1.matches !== matches) {
|
|
1352
|
+
setMatches(media_1.matches);
|
|
1353
|
+
}
|
|
1354
|
+
var listener_1 = function () {
|
|
1355
|
+
setMatches(media_1.matches);
|
|
1356
|
+
};
|
|
1357
|
+
media_1.addListener(listener_1);
|
|
1358
|
+
return function () { return media_1.removeListener(listener_1); };
|
|
1359
|
+
}
|
|
1360
|
+
}, [matches, query]);
|
|
1361
|
+
return matches;
|
|
1362
|
+
}
|
|
1363
|
+
var MediaQueryKeys = {
|
|
1364
|
+
xs: '(max-width: 520px)',
|
|
1365
|
+
sm: '(max-width: 900px)',
|
|
1366
|
+
md: '(max-width: 1200px)',
|
|
1367
|
+
lg: '(max-width: 1800px)',
|
|
1368
|
+
};
|
|
1369
|
+
|
|
1367
1370
|
var BASE_PATH = "/assets/hexapod.svg";
|
|
1368
1371
|
var MOBILE_PATH = "/assets/hexapod-mobile.svg";
|
|
1369
1372
|
var HeroSection = function (_a) {
|
package/dist/index.js
CHANGED
|
@@ -6,8 +6,8 @@ var react = require('@stitches/react');
|
|
|
6
6
|
var TabsPrimitive = require('@radix-ui/react-tabs');
|
|
7
7
|
var Image$1 = require('next/image');
|
|
8
8
|
var jsxRuntime = require('react/jsx-runtime');
|
|
9
|
-
var React = require('react');
|
|
10
9
|
var ToggleGroupPrimitive = require('@radix-ui/react-toggle-group');
|
|
10
|
+
var React = require('react');
|
|
11
11
|
var router = require('next/router');
|
|
12
12
|
var AccordionPrimitive = require('@radix-ui/react-accordion');
|
|
13
13
|
|
|
@@ -33,8 +33,8 @@ function _interopNamespace(e) {
|
|
|
33
33
|
|
|
34
34
|
var TabsPrimitive__namespace = /*#__PURE__*/_interopNamespace(TabsPrimitive);
|
|
35
35
|
var Image__default = /*#__PURE__*/_interopDefaultLegacy(Image$1);
|
|
36
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
37
36
|
var ToggleGroupPrimitive__namespace = /*#__PURE__*/_interopNamespace(ToggleGroupPrimitive);
|
|
37
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
38
38
|
var AccordionPrimitive__namespace = /*#__PURE__*/_interopNamespace(AccordionPrimitive);
|
|
39
39
|
|
|
40
40
|
/*! *****************************************************************************
|
|
@@ -1126,46 +1126,25 @@ var TeamMemberCard = function (props) { return (jsxRuntime.jsxs(Box, __assign({
|
|
|
1126
1126
|
gap: "14px",
|
|
1127
1127
|
} }, { children: [props.links.map(function (item) { return (jsxRuntime.jsx(Link, __assign({ variant: "docs", target: "_blank", href: item.link }, { children: item.network === "twitter" ? jsxRuntime.jsx(TwitterIcon, {}) : jsxRuntime.jsx(GithubIcon, {}) }), "icon-".concat(item.network))); }), " "] })))] }))] }))); };
|
|
1128
1128
|
|
|
1129
|
-
function useMediaQuery(query) {
|
|
1130
|
-
var _a = React.useState(false), matches = _a[0], setMatches = _a[1];
|
|
1131
|
-
React.useEffect(function () {
|
|
1132
|
-
if (typeof window !== "undefined") {
|
|
1133
|
-
var media_1 = window.matchMedia(query);
|
|
1134
|
-
if (media_1.matches !== matches) {
|
|
1135
|
-
setMatches(media_1.matches);
|
|
1136
|
-
}
|
|
1137
|
-
var listener_1 = function () {
|
|
1138
|
-
setMatches(media_1.matches);
|
|
1139
|
-
};
|
|
1140
|
-
media_1.addListener(listener_1);
|
|
1141
|
-
return function () { return media_1.removeListener(listener_1); };
|
|
1142
|
-
}
|
|
1143
|
-
}, [matches, query]);
|
|
1144
|
-
return matches;
|
|
1145
|
-
}
|
|
1146
|
-
var MediaQueryKeys = {
|
|
1147
|
-
xs: '(max-width: 520px)',
|
|
1148
|
-
sm: '(max-width: 900px)',
|
|
1149
|
-
md: '(max-width: 1200px)',
|
|
1150
|
-
lg: '(max-width: 1800px)',
|
|
1151
|
-
};
|
|
1152
|
-
|
|
1153
1129
|
var LogoCard = function (props) {
|
|
1154
|
-
var screenDownSm = useMediaQuery(MediaQueryKeys.sm);
|
|
1155
1130
|
return (jsxRuntime.jsx(Box, __assign({ as: "a", className: "logo-card", css: {
|
|
1156
|
-
position: "relative",
|
|
1157
1131
|
width: "288px",
|
|
1158
1132
|
height: "120px",
|
|
1133
|
+
maxWidth: "288px",
|
|
1134
|
+
maxHeight: "120px",
|
|
1159
1135
|
borderRadius: "$4",
|
|
1160
1136
|
backgroundColor: "$bg04",
|
|
1161
|
-
"&:hover": { cursor: "pointer", backgroundColor: "$bg05" },
|
|
1162
1137
|
p: "$sm",
|
|
1138
|
+
"&:hover": { cursor: "pointer", backgroundColor: "$bg05" },
|
|
1163
1139
|
"@sm": {
|
|
1164
|
-
width: "
|
|
1165
|
-
height: "
|
|
1166
|
-
p: "$xxs",
|
|
1140
|
+
width: "100%",
|
|
1141
|
+
height: "120px",
|
|
1167
1142
|
},
|
|
1168
|
-
|
|
1143
|
+
"@xs": {
|
|
1144
|
+
width: "auto",
|
|
1145
|
+
height: "60px",
|
|
1146
|
+
},
|
|
1147
|
+
}, target: "_blank", href: props.logoCardLink }, { children: jsxRuntime.jsx(Box, __assign({ css: { position: "relative", width: "100%", height: "100%" } }, { children: jsxRuntime.jsx(Image, { src: props.image, layout: "fill", objectFit: "contain", alt: props.heading, quality: 100 }) })) })));
|
|
1169
1148
|
};
|
|
1170
1149
|
|
|
1171
1150
|
// Exports
|
|
@@ -1394,6 +1373,30 @@ var Accordion = /*#__PURE__*/Object.freeze({
|
|
|
1394
1373
|
Content: Content
|
|
1395
1374
|
});
|
|
1396
1375
|
|
|
1376
|
+
function useMediaQuery(query) {
|
|
1377
|
+
var _a = React.useState(false), matches = _a[0], setMatches = _a[1];
|
|
1378
|
+
React.useEffect(function () {
|
|
1379
|
+
if (typeof window !== "undefined") {
|
|
1380
|
+
var media_1 = window.matchMedia(query);
|
|
1381
|
+
if (media_1.matches !== matches) {
|
|
1382
|
+
setMatches(media_1.matches);
|
|
1383
|
+
}
|
|
1384
|
+
var listener_1 = function () {
|
|
1385
|
+
setMatches(media_1.matches);
|
|
1386
|
+
};
|
|
1387
|
+
media_1.addListener(listener_1);
|
|
1388
|
+
return function () { return media_1.removeListener(listener_1); };
|
|
1389
|
+
}
|
|
1390
|
+
}, [matches, query]);
|
|
1391
|
+
return matches;
|
|
1392
|
+
}
|
|
1393
|
+
var MediaQueryKeys = {
|
|
1394
|
+
xs: '(max-width: 520px)',
|
|
1395
|
+
sm: '(max-width: 900px)',
|
|
1396
|
+
md: '(max-width: 1200px)',
|
|
1397
|
+
lg: '(max-width: 1800px)',
|
|
1398
|
+
};
|
|
1399
|
+
|
|
1397
1400
|
var BASE_PATH = "/assets/hexapod.svg";
|
|
1398
1401
|
var MOBILE_PATH = "/assets/hexapod-mobile.svg";
|
|
1399
1402
|
var HeroSection = function (_a) {
|