@obolnetwork/obol-ui 1.0.39 → 1.0.40-beta
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/__test__/components/atoms/Button.test.d.ts +1 -1
- package/dist/__test__/components/atoms/Link.test.d.ts +1 -0
- package/dist/components/atoms/Flex/Flex.d.ts +483 -0
- package/dist/components/atoms/Link/Link.d.ts +30 -1
- package/dist/components/atoms/UnstyledTextField/UnstyledTextField.d.ts +963 -0
- package/dist/components/atoms/index.d.ts +2 -0
- package/dist/components/molecules/ENSInputField/ENSInputField.d.ts +11 -0
- package/dist/components/molecules/index.d.ts +1 -0
- package/dist/components/organisms/Advisory/Advisory.d.ts +0 -961
- package/dist/index.es.js +66 -22
- package/dist/index.js +68 -21
- package/dist/stitches.config.d.ts +6 -6
- package/package.json +13 -11
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { createStitches } from '@stitches/react';
|
|
2
|
+
import NextLink from 'next/link';
|
|
2
3
|
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
3
4
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
4
5
|
import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
|
@@ -12,7 +13,7 @@ import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
|
12
13
|
import { useRouter } from 'next/router';
|
|
13
14
|
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
14
15
|
|
|
15
|
-
|
|
16
|
+
/******************************************************************************
|
|
16
17
|
Copyright (c) Microsoft Corporation.
|
|
17
18
|
|
|
18
19
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -499,10 +500,12 @@ var Button = styled("button", {
|
|
|
499
500
|
"&:hover": {
|
|
500
501
|
$$color: "$colors$textGreenHover",
|
|
501
502
|
$$background: "$colors$obolGreenHover",
|
|
502
|
-
"
|
|
503
|
-
"&
|
|
504
|
-
|
|
505
|
-
|
|
503
|
+
"&:not([class*='disableColorChange']):hover": {
|
|
504
|
+
"& svg": {
|
|
505
|
+
"& path": {
|
|
506
|
+
fill: "$textGreenHover",
|
|
507
|
+
stroke: "$textGreenHover",
|
|
508
|
+
},
|
|
506
509
|
},
|
|
507
510
|
},
|
|
508
511
|
},
|
|
@@ -527,10 +530,12 @@ var Button = styled("button", {
|
|
|
527
530
|
"&:hover": {
|
|
528
531
|
$$background: "$colors$createHover",
|
|
529
532
|
$$color: "$colors$textCreateHover",
|
|
530
|
-
"
|
|
531
|
-
"&
|
|
532
|
-
|
|
533
|
-
|
|
533
|
+
"&:not([class*='disableColorChange']):hover": {
|
|
534
|
+
"& svg": {
|
|
535
|
+
"& path": {
|
|
536
|
+
fill: "$textCreateHover",
|
|
537
|
+
stroke: "$textCreateHover",
|
|
538
|
+
},
|
|
534
539
|
},
|
|
535
540
|
},
|
|
536
541
|
},
|
|
@@ -540,10 +545,12 @@ var Button = styled("button", {
|
|
|
540
545
|
"&:hover": {
|
|
541
546
|
$$background: "$colors$testHover",
|
|
542
547
|
$$color: "$colors$textGrayHover",
|
|
543
|
-
"
|
|
544
|
-
"&
|
|
545
|
-
|
|
546
|
-
|
|
548
|
+
"&:not([class*='disableColorChange']):hover": {
|
|
549
|
+
"& svg": {
|
|
550
|
+
"& path": {
|
|
551
|
+
fill: "$textGrayHover",
|
|
552
|
+
stroke: "$textGrayHover",
|
|
553
|
+
},
|
|
547
554
|
},
|
|
548
555
|
},
|
|
549
556
|
},
|
|
@@ -553,10 +560,12 @@ var Button = styled("button", {
|
|
|
553
560
|
"&:hover": {
|
|
554
561
|
$$background: "$colors$coordinateHover",
|
|
555
562
|
$$color: "$colors$textGrayHover",
|
|
556
|
-
"
|
|
557
|
-
"&
|
|
558
|
-
|
|
559
|
-
|
|
563
|
+
"&:not([class*='disableColorChange']):hover": {
|
|
564
|
+
"& svg": {
|
|
565
|
+
"& path": {
|
|
566
|
+
fill: "$textGrayHover",
|
|
567
|
+
stroke: "$textGrayHover",
|
|
568
|
+
},
|
|
560
569
|
},
|
|
561
570
|
},
|
|
562
571
|
},
|
|
@@ -624,7 +633,7 @@ var Button = styled("button", {
|
|
|
624
633
|
var ButtonStory = modifyVariantsForStory(Button);
|
|
625
634
|
// export const WalletButton =
|
|
626
635
|
|
|
627
|
-
var Link = styled(
|
|
636
|
+
var Link = styled(NextLink, {
|
|
628
637
|
display: "flex",
|
|
629
638
|
gap: "$xxs",
|
|
630
639
|
alignItems: "center",
|
|
@@ -1633,6 +1642,31 @@ var DialogIconButton = styled("button", {
|
|
|
1633
1642
|
});
|
|
1634
1643
|
var DialogComponent = function (props) { return (jsxs(Dialog, __assign({ css: props.css }, { children: [jsx(DialogTrigger, __assign({ asChild: true }, { children: props.triggerElement })), jsxs(DialogContent, { children: [jsx(DialogTitle, __assign({ className: "dialog-title", css: { mb: "$xl" } }, { children: props.title })), jsx(DialogDescription, __assign({ className: "dialog-description" }, { children: props.description })), props.children, jsx(DialogClose, __assign({ asChild: true }, { children: jsx(DialogIconButton, __assign({ "aria-label": "Close" }, { children: jsx(Cross2Icon, {}) })) }))] })] }))); };
|
|
1635
1644
|
|
|
1645
|
+
var UnstyledTextField = styled(TextField, {
|
|
1646
|
+
fontSize: "$4",
|
|
1647
|
+
border: "none",
|
|
1648
|
+
borderRadius: "0",
|
|
1649
|
+
backgroundColor: "transparent",
|
|
1650
|
+
px: 0,
|
|
1651
|
+
py: 0,
|
|
1652
|
+
"&:focus": {
|
|
1653
|
+
backgroundColor: "transparent",
|
|
1654
|
+
},
|
|
1655
|
+
});
|
|
1656
|
+
|
|
1657
|
+
var Flex = styled("div", {
|
|
1658
|
+
boxSizing: "border-box",
|
|
1659
|
+
display: "flex",
|
|
1660
|
+
width: "$full",
|
|
1661
|
+
variants: {
|
|
1662
|
+
direction: {
|
|
1663
|
+
column: {
|
|
1664
|
+
fd: "column",
|
|
1665
|
+
},
|
|
1666
|
+
},
|
|
1667
|
+
},
|
|
1668
|
+
});
|
|
1669
|
+
|
|
1636
1670
|
var slideDown = keyframes({
|
|
1637
1671
|
from: { height: 0 },
|
|
1638
1672
|
to: { height: "var(--radix-accordion-content-height)" },
|
|
@@ -1752,7 +1786,9 @@ var AdvisoryToggleBullet = function (props) {
|
|
|
1752
1786
|
fontSize: "$3",
|
|
1753
1787
|
fontWeight: "$bold",
|
|
1754
1788
|
color: props.state === "upcoming" ? "$muted" : "$obolGreen",
|
|
1755
|
-
} }, { children: props.rank })) })), jsx(Text, __assign({
|
|
1789
|
+
} }, { children: props.rank })) })), jsx(Text, __assign({ css: {
|
|
1790
|
+
lineHeight: "$lg",
|
|
1791
|
+
}, color: color }, { children: props.children }))] })));
|
|
1756
1792
|
};
|
|
1757
1793
|
|
|
1758
1794
|
var CardImage = styled(Image, {
|
|
@@ -2203,6 +2239,15 @@ var Table = function (_a) {
|
|
|
2203
2239
|
}) }, "row ".concat(rowIndex))); }) })] }));
|
|
2204
2240
|
};
|
|
2205
2241
|
|
|
2242
|
+
var ENSInputField = function (_a) {
|
|
2243
|
+
var children = _a.children, ensName = _a.ensName, value = _a.value, handleOnChange = _a.handleOnChange, nonEditable = _a.nonEditable, css = _a.css;
|
|
2244
|
+
return (jsx(Flex, __assign({ direction: "column", css: css }, { children: jsxs(Flex, __assign({ css: { gap: "$xxs" } }, { children: [jsxs(Flex, __assign({ direction: "column" }, { children: [ensName && (jsx(Text, __assign({ size: "4", color: "textLight" }, { children: ensName }))), jsx(UnstyledTextField, { css: {
|
|
2245
|
+
color: "$obolGreen",
|
|
2246
|
+
}, placeholder: "Ethereum address or ENS name", onChange: function (e) {
|
|
2247
|
+
return handleOnChange(e.target.value);
|
|
2248
|
+
}, value: value, readOnly: nonEditable })] })), children] })) })));
|
|
2249
|
+
};
|
|
2250
|
+
|
|
2206
2251
|
var Advisory = function (_a) {
|
|
2207
2252
|
var onUpdateState = _a.onUpdateState, onItemChange = _a.onItemChange, onComplete = _a.onComplete, onBack = _a.onBack, itemSelected = _a.itemSelected, props = __rest(_a, ["onUpdateState", "onItemChange", "onComplete", "onBack", "itemSelected"]);
|
|
2208
2253
|
var handleOnBack = function (value) {
|
|
@@ -2246,8 +2291,7 @@ var Advisory = function (_a) {
|
|
|
2246
2291
|
btrr: "$2",
|
|
2247
2292
|
bbrr: "$2",
|
|
2248
2293
|
} }, { children: itemSelected.content(itemSelected.rank, itemSelected.enableNextStep, handleOnAccept, handleOnBack, onComplete) }))] })));
|
|
2249
|
-
};
|
|
2250
|
-
var Flex = styled(Box, { display: "flex", fd: "column" });
|
|
2294
|
+
};
|
|
2251
2295
|
|
|
2252
2296
|
var defaultLinks = [
|
|
2253
2297
|
{
|
|
@@ -2408,4 +2452,4 @@ var TwoColumnSection = function (_a) {
|
|
|
2408
2452
|
} }, { children: !screenDownSm ? (jsx(Image, { src: image.basePath, width: "100%", height: "100%", alt: "Obol Logo" })) : (jsx(Image, { src: image.mobilePath || image.basePath, width: "100%", height: "100%", alt: "Obol Logo" })) }))] })));
|
|
2409
2453
|
};
|
|
2410
2454
|
|
|
2411
|
-
export { Accordion, Advisory, AdvisoryToggleBullet, AdvisoryToggleItem, AlertIcon, AloneIcon, ArrowForward, Box, BulletCheckIcon, Button, ButtonStory, Card, CheckIcon, Checkbox, CheckboxIcon, CheckboxIndicator, CheckboxRoot, ChevronDownIcon, ChevronUpIcon, CloseIcon, CodeIcon, Container, CopyIcon, CreateIcon, Dialog, DialogClose, DialogComponent, DialogContent, DialogDescription, DialogIconButton, DialogOverlay, DialogPortal, DialogStyledContent, DialogTitle, DialogTrigger, Download, ExistingGroupIcon, Flex, Footer, GithubIcon, GroupIcon, HelpIcon, HeroSection, Hexapod, HexapodMobile, IconButton, IconButtonStory, Image, Link, LinkStory, LoadingButton, LogoCard, MediaQueryKeys, MenuIcon, MigrateIcon, MinusIcon, Navbar, NotificationCard, NotificationContainer, NumberField, ObolDarkBgH, ObolDarkBgMark, ObolDarkBgV, ObolDarkCircle, ObolLightBgH, ObolLightBgMark, ObolLightBgV, ObolLightCircle, ObolSolidDarkBgH, ObolSolidDarkBgMark, ObolSolidDarkBgV, ObolSolidLightBgH, ObolSolidLightBgMark, ObolSolidLightBgV, OpenInNew, PlanetBlue, PlanetGreen, PlanetGrey, PlanetMagenta, PlanetOrange, PlusIcon, ProgressTracker, Provider, PublicGoodIcon, RadioGroup, RadioGroupComponent, RadioGroupIndicator, RadioGroupItem, RadioGroupItemLabel, RadioGroupRadio, RunIcon, Spin, SplitterTable, SvgIcon, Switch, SwitchRoot, SwitchThumb, Table, Tabs$1 as Tabs, TeamMemberCard, TestIcon, Text, TextField, TextFieldWithCopy, TextStory, ToggleCardItem, ToggleGroup, ToggleGroupItem, Tooltip, TooltipArrow, TooltipComponent, TooltipContent, TooltipTrigger, TrashIcon, TrustMinimisedIcon, TwitterIcon, TwoColumnSection, WaitingIcon, config, createTheme, css, getCssText, globalCss, keyframes, modifyVariantsForStory, reset, styled, theme, useMediaQuery };
|
|
2455
|
+
export { Accordion, Advisory, AdvisoryToggleBullet, AdvisoryToggleItem, AlertIcon, AloneIcon, ArrowForward, Box, BulletCheckIcon, Button, ButtonStory, Card, CheckIcon, Checkbox, CheckboxIcon, CheckboxIndicator, CheckboxRoot, ChevronDownIcon, ChevronUpIcon, CloseIcon, CodeIcon, Container, CopyIcon, CreateIcon, Dialog, DialogClose, DialogComponent, DialogContent, DialogDescription, DialogIconButton, DialogOverlay, DialogPortal, DialogStyledContent, DialogTitle, DialogTrigger, Download, ENSInputField, ExistingGroupIcon, Flex, Footer, GithubIcon, GroupIcon, HelpIcon, HeroSection, Hexapod, HexapodMobile, IconButton, IconButtonStory, Image, Link, LinkStory, LoadingButton, LogoCard, MediaQueryKeys, MenuIcon, MigrateIcon, MinusIcon, Navbar, NotificationCard, NotificationContainer, NumberField, ObolDarkBgH, ObolDarkBgMark, ObolDarkBgV, ObolDarkCircle, ObolLightBgH, ObolLightBgMark, ObolLightBgV, ObolLightCircle, ObolSolidDarkBgH, ObolSolidDarkBgMark, ObolSolidDarkBgV, ObolSolidLightBgH, ObolSolidLightBgMark, ObolSolidLightBgV, OpenInNew, PlanetBlue, PlanetGreen, PlanetGrey, PlanetMagenta, PlanetOrange, PlusIcon, ProgressTracker, Provider, PublicGoodIcon, RadioGroup, RadioGroupComponent, RadioGroupIndicator, RadioGroupItem, RadioGroupItemLabel, RadioGroupRadio, RunIcon, Spin, SplitterTable, SvgIcon, Switch, SwitchRoot, SwitchThumb, Table, Tabs$1 as Tabs, TeamMemberCard, TestIcon, Text, TextField, TextFieldWithCopy, TextStory, ToggleCardItem, ToggleGroup, ToggleGroupItem, Tooltip, TooltipArrow, TooltipComponent, TooltipContent, TooltipTrigger, TrashIcon, TrustMinimisedIcon, TwitterIcon, TwoColumnSection, UnstyledTextField, WaitingIcon, config, createTheme, css, getCssText, globalCss, keyframes, modifyVariantsForStory, reset, styled, theme, useMediaQuery };
|
package/dist/index.js
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var react = require('@stitches/react');
|
|
6
|
+
var NextLink = require('next/link');
|
|
6
7
|
var TabsPrimitive = require('@radix-ui/react-tabs');
|
|
7
8
|
var jsxRuntime = require('react/jsx-runtime');
|
|
8
9
|
var ToggleGroupPrimitive = require('@radix-ui/react-toggle-group');
|
|
@@ -36,6 +37,7 @@ function _interopNamespace(e) {
|
|
|
36
37
|
return Object.freeze(n);
|
|
37
38
|
}
|
|
38
39
|
|
|
40
|
+
var NextLink__default = /*#__PURE__*/_interopDefaultLegacy(NextLink);
|
|
39
41
|
var TabsPrimitive__namespace = /*#__PURE__*/_interopNamespace(TabsPrimitive);
|
|
40
42
|
var ToggleGroupPrimitive__namespace = /*#__PURE__*/_interopNamespace(ToggleGroupPrimitive);
|
|
41
43
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
@@ -46,7 +48,7 @@ var DialogPrimitive__namespace = /*#__PURE__*/_interopNamespace(DialogPrimitive)
|
|
|
46
48
|
var AccordionPrimitive__namespace = /*#__PURE__*/_interopNamespace(AccordionPrimitive);
|
|
47
49
|
var RadioGroupPrimitive__namespace = /*#__PURE__*/_interopNamespace(RadioGroupPrimitive);
|
|
48
50
|
|
|
49
|
-
|
|
51
|
+
/******************************************************************************
|
|
50
52
|
Copyright (c) Microsoft Corporation.
|
|
51
53
|
|
|
52
54
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -533,10 +535,12 @@ var Button = styled("button", {
|
|
|
533
535
|
"&:hover": {
|
|
534
536
|
$$color: "$colors$textGreenHover",
|
|
535
537
|
$$background: "$colors$obolGreenHover",
|
|
536
|
-
"
|
|
537
|
-
"&
|
|
538
|
-
|
|
539
|
-
|
|
538
|
+
"&:not([class*='disableColorChange']):hover": {
|
|
539
|
+
"& svg": {
|
|
540
|
+
"& path": {
|
|
541
|
+
fill: "$textGreenHover",
|
|
542
|
+
stroke: "$textGreenHover",
|
|
543
|
+
},
|
|
540
544
|
},
|
|
541
545
|
},
|
|
542
546
|
},
|
|
@@ -561,10 +565,12 @@ var Button = styled("button", {
|
|
|
561
565
|
"&:hover": {
|
|
562
566
|
$$background: "$colors$createHover",
|
|
563
567
|
$$color: "$colors$textCreateHover",
|
|
564
|
-
"
|
|
565
|
-
"&
|
|
566
|
-
|
|
567
|
-
|
|
568
|
+
"&:not([class*='disableColorChange']):hover": {
|
|
569
|
+
"& svg": {
|
|
570
|
+
"& path": {
|
|
571
|
+
fill: "$textCreateHover",
|
|
572
|
+
stroke: "$textCreateHover",
|
|
573
|
+
},
|
|
568
574
|
},
|
|
569
575
|
},
|
|
570
576
|
},
|
|
@@ -574,10 +580,12 @@ var Button = styled("button", {
|
|
|
574
580
|
"&:hover": {
|
|
575
581
|
$$background: "$colors$testHover",
|
|
576
582
|
$$color: "$colors$textGrayHover",
|
|
577
|
-
"
|
|
578
|
-
"&
|
|
579
|
-
|
|
580
|
-
|
|
583
|
+
"&:not([class*='disableColorChange']):hover": {
|
|
584
|
+
"& svg": {
|
|
585
|
+
"& path": {
|
|
586
|
+
fill: "$textGrayHover",
|
|
587
|
+
stroke: "$textGrayHover",
|
|
588
|
+
},
|
|
581
589
|
},
|
|
582
590
|
},
|
|
583
591
|
},
|
|
@@ -587,10 +595,12 @@ var Button = styled("button", {
|
|
|
587
595
|
"&:hover": {
|
|
588
596
|
$$background: "$colors$coordinateHover",
|
|
589
597
|
$$color: "$colors$textGrayHover",
|
|
590
|
-
"
|
|
591
|
-
"&
|
|
592
|
-
|
|
593
|
-
|
|
598
|
+
"&:not([class*='disableColorChange']):hover": {
|
|
599
|
+
"& svg": {
|
|
600
|
+
"& path": {
|
|
601
|
+
fill: "$textGrayHover",
|
|
602
|
+
stroke: "$textGrayHover",
|
|
603
|
+
},
|
|
594
604
|
},
|
|
595
605
|
},
|
|
596
606
|
},
|
|
@@ -658,7 +668,7 @@ var Button = styled("button", {
|
|
|
658
668
|
var ButtonStory = modifyVariantsForStory(Button);
|
|
659
669
|
// export const WalletButton =
|
|
660
670
|
|
|
661
|
-
var Link = styled("
|
|
671
|
+
var Link = styled(NextLink__default["default"], {
|
|
662
672
|
display: "flex",
|
|
663
673
|
gap: "$xxs",
|
|
664
674
|
alignItems: "center",
|
|
@@ -1667,6 +1677,31 @@ var DialogIconButton = styled("button", {
|
|
|
1667
1677
|
});
|
|
1668
1678
|
var DialogComponent = function (props) { return (jsxRuntime.jsxs(Dialog, __assign({ css: props.css }, { children: [jsxRuntime.jsx(DialogTrigger, __assign({ asChild: true }, { children: props.triggerElement })), jsxRuntime.jsxs(DialogContent, { children: [jsxRuntime.jsx(DialogTitle, __assign({ className: "dialog-title", css: { mb: "$xl" } }, { children: props.title })), jsxRuntime.jsx(DialogDescription, __assign({ className: "dialog-description" }, { children: props.description })), props.children, jsxRuntime.jsx(DialogClose, __assign({ asChild: true }, { children: jsxRuntime.jsx(DialogIconButton, __assign({ "aria-label": "Close" }, { children: jsxRuntime.jsx(reactIcons.Cross2Icon, {}) })) }))] })] }))); };
|
|
1669
1679
|
|
|
1680
|
+
var UnstyledTextField = styled(TextField, {
|
|
1681
|
+
fontSize: "$4",
|
|
1682
|
+
border: "none",
|
|
1683
|
+
borderRadius: "0",
|
|
1684
|
+
backgroundColor: "transparent",
|
|
1685
|
+
px: 0,
|
|
1686
|
+
py: 0,
|
|
1687
|
+
"&:focus": {
|
|
1688
|
+
backgroundColor: "transparent",
|
|
1689
|
+
},
|
|
1690
|
+
});
|
|
1691
|
+
|
|
1692
|
+
var Flex = styled("div", {
|
|
1693
|
+
boxSizing: "border-box",
|
|
1694
|
+
display: "flex",
|
|
1695
|
+
width: "$full",
|
|
1696
|
+
variants: {
|
|
1697
|
+
direction: {
|
|
1698
|
+
column: {
|
|
1699
|
+
fd: "column",
|
|
1700
|
+
},
|
|
1701
|
+
},
|
|
1702
|
+
},
|
|
1703
|
+
});
|
|
1704
|
+
|
|
1670
1705
|
var slideDown = keyframes({
|
|
1671
1706
|
from: { height: 0 },
|
|
1672
1707
|
to: { height: "var(--radix-accordion-content-height)" },
|
|
@@ -1786,7 +1821,9 @@ var AdvisoryToggleBullet = function (props) {
|
|
|
1786
1821
|
fontSize: "$3",
|
|
1787
1822
|
fontWeight: "$bold",
|
|
1788
1823
|
color: props.state === "upcoming" ? "$muted" : "$obolGreen",
|
|
1789
|
-
} }, { children: props.rank })) })), jsxRuntime.jsx(Text, __assign({
|
|
1824
|
+
} }, { children: props.rank })) })), jsxRuntime.jsx(Text, __assign({ css: {
|
|
1825
|
+
lineHeight: "$lg",
|
|
1826
|
+
}, color: color }, { children: props.children }))] })));
|
|
1790
1827
|
};
|
|
1791
1828
|
|
|
1792
1829
|
var CardImage = styled(Image, {
|
|
@@ -2237,6 +2274,15 @@ var Table = function (_a) {
|
|
|
2237
2274
|
}) }, "row ".concat(rowIndex))); }) })] }));
|
|
2238
2275
|
};
|
|
2239
2276
|
|
|
2277
|
+
var ENSInputField = function (_a) {
|
|
2278
|
+
var children = _a.children, ensName = _a.ensName, value = _a.value, handleOnChange = _a.handleOnChange, nonEditable = _a.nonEditable, css = _a.css;
|
|
2279
|
+
return (jsxRuntime.jsx(Flex, __assign({ direction: "column", css: css }, { children: jsxRuntime.jsxs(Flex, __assign({ css: { gap: "$xxs" } }, { children: [jsxRuntime.jsxs(Flex, __assign({ direction: "column" }, { children: [ensName && (jsxRuntime.jsx(Text, __assign({ size: "4", color: "textLight" }, { children: ensName }))), jsxRuntime.jsx(UnstyledTextField, { css: {
|
|
2280
|
+
color: "$obolGreen",
|
|
2281
|
+
}, placeholder: "Ethereum address or ENS name", onChange: function (e) {
|
|
2282
|
+
return handleOnChange(e.target.value);
|
|
2283
|
+
}, value: value, readOnly: nonEditable })] })), children] })) })));
|
|
2284
|
+
};
|
|
2285
|
+
|
|
2240
2286
|
var Advisory = function (_a) {
|
|
2241
2287
|
var onUpdateState = _a.onUpdateState, onItemChange = _a.onItemChange, onComplete = _a.onComplete, onBack = _a.onBack, itemSelected = _a.itemSelected, props = __rest(_a, ["onUpdateState", "onItemChange", "onComplete", "onBack", "itemSelected"]);
|
|
2242
2288
|
var handleOnBack = function (value) {
|
|
@@ -2280,8 +2326,7 @@ var Advisory = function (_a) {
|
|
|
2280
2326
|
btrr: "$2",
|
|
2281
2327
|
bbrr: "$2",
|
|
2282
2328
|
} }, { children: itemSelected.content(itemSelected.rank, itemSelected.enableNextStep, handleOnAccept, handleOnBack, onComplete) }))] })));
|
|
2283
|
-
};
|
|
2284
|
-
var Flex = styled(Box, { display: "flex", fd: "column" });
|
|
2329
|
+
};
|
|
2285
2330
|
|
|
2286
2331
|
var defaultLinks = [
|
|
2287
2332
|
{
|
|
@@ -2478,6 +2523,7 @@ exports.DialogStyledContent = DialogStyledContent;
|
|
|
2478
2523
|
exports.DialogTitle = DialogTitle;
|
|
2479
2524
|
exports.DialogTrigger = DialogTrigger;
|
|
2480
2525
|
exports.Download = Download;
|
|
2526
|
+
exports.ENSInputField = ENSInputField;
|
|
2481
2527
|
exports.ExistingGroupIcon = ExistingGroupIcon;
|
|
2482
2528
|
exports.Flex = Flex;
|
|
2483
2529
|
exports.Footer = Footer;
|
|
@@ -2559,6 +2605,7 @@ exports.TrashIcon = TrashIcon;
|
|
|
2559
2605
|
exports.TrustMinimisedIcon = TrustMinimisedIcon;
|
|
2560
2606
|
exports.TwitterIcon = TwitterIcon;
|
|
2561
2607
|
exports.TwoColumnSection = TwoColumnSection;
|
|
2608
|
+
exports.UnstyledTextField = UnstyledTextField;
|
|
2562
2609
|
exports.WaitingIcon = WaitingIcon;
|
|
2563
2610
|
exports.config = config;
|
|
2564
2611
|
exports.createTheme = createTheme;
|
|
@@ -407,11 +407,11 @@ export declare const styled: <Type extends import("@stitches/react/types/util").
|
|
|
407
407
|
[x: number]: CSS_1;
|
|
408
408
|
};
|
|
409
409
|
} | undefined;
|
|
410
|
-
compoundVariants?: (("variants" extends keyof Composers[K] ?
|
|
410
|
+
compoundVariants?: (("variants" extends keyof Composers[K] ? Composers[K][keyof Composers[K] & "variants"] extends infer T ? { [Name in keyof T]?: import("@stitches/react/types/util").String | import("@stitches/react/types/util").Widen<keyof Composers[K][keyof Composers[K] & "variants"][Name]> | undefined; } : never : import("@stitches/react/types/util").WideObject) & {
|
|
411
411
|
css: CSS_1;
|
|
412
412
|
})[] | undefined;
|
|
413
|
-
defaultVariants?: ("variants" extends keyof Composers[K] ?
|
|
414
|
-
} & CSS_1 & { [K2 in keyof
|
|
413
|
+
defaultVariants?: ("variants" extends keyof Composers[K] ? Composers[K][keyof Composers[K] & "variants"] extends infer T_1 ? { [Name_1 in keyof T_1]?: import("@stitches/react/types/util").String | import("@stitches/react/types/util").Widen<keyof Composers[K][keyof Composers[K] & "variants"][Name_1]> | undefined; } : never : import("@stitches/react/types/util").WideObject) | undefined;
|
|
414
|
+
} & CSS_1 & (Composers[K] extends infer T_2 ? { [K2 in keyof T_2]: K2 extends "compoundVariants" | "defaultVariants" | "variants" ? unknown : K2 extends keyof CSS_1 ? CSS_1[K2] : unknown; } : never); }) => import("@stitches/react/types/styled-component").StyledComponent<Type, import("@stitches/react/types/styled-component").StyledComponentProps<Composers>, {
|
|
415
415
|
motion: "(prefers-reduced-motion)";
|
|
416
416
|
hover: "(any-hover: hover)";
|
|
417
417
|
dark: "(prefers-color-scheme: dark)";
|
|
@@ -1210,11 +1210,11 @@ export declare const styled: <Type extends import("@stitches/react/types/util").
|
|
|
1210
1210
|
[x: number]: CSS_1;
|
|
1211
1211
|
};
|
|
1212
1212
|
} | undefined;
|
|
1213
|
-
compoundVariants?: (("variants" extends keyof Composers[K] ?
|
|
1213
|
+
compoundVariants?: (("variants" extends keyof Composers[K] ? Composers[K][keyof Composers[K] & "variants"] extends infer T ? { [Name in keyof T]?: import("@stitches/react/types/util").String | import("@stitches/react/types/util").Widen<keyof Composers[K][keyof Composers[K] & "variants"][Name]> | undefined; } : never : import("@stitches/react/types/util").WideObject) & {
|
|
1214
1214
|
css: CSS_1;
|
|
1215
1215
|
})[] | undefined;
|
|
1216
|
-
defaultVariants?: ("variants" extends keyof Composers[K] ?
|
|
1217
|
-
} & CSS_1 & { [K2 in keyof
|
|
1216
|
+
defaultVariants?: ("variants" extends keyof Composers[K] ? Composers[K][keyof Composers[K] & "variants"] extends infer T_1 ? { [Name_1 in keyof T_1]?: import("@stitches/react/types/util").String | import("@stitches/react/types/util").Widen<keyof Composers[K][keyof Composers[K] & "variants"][Name_1]> | undefined; } : never : import("@stitches/react/types/util").WideObject) | undefined;
|
|
1217
|
+
} & CSS_1 & (Composers[K] extends infer T_2 ? { [K2 in keyof T_2]: K2 extends "compoundVariants" | "defaultVariants" | "variants" ? unknown : K2 extends keyof CSS_1 ? CSS_1[K2] : unknown; } : never); }) => import("@stitches/react/types/styled-component").CssComponent<import("@stitches/react/types/styled-component").StyledComponentType<Composers>, import("@stitches/react/types/styled-component").StyledComponentProps<Composers>, {
|
|
1218
1218
|
motion: "(prefers-reduced-motion)";
|
|
1219
1219
|
hover: "(any-hover: hover)";
|
|
1220
1220
|
dark: "(prefers-color-scheme: dark)";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@obolnetwork/obol-ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.40-beta",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/index.es.js",
|
|
6
6
|
"license": "MIT",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"storybook": "start-storybook -p 6006",
|
|
17
17
|
"build-storybook": "build-storybook",
|
|
18
18
|
"ds:build": "rollup -c",
|
|
19
|
-
"ds:release": "
|
|
19
|
+
"ds:release": "np patch --no-2fa",
|
|
20
20
|
"test": "jest",
|
|
21
21
|
"prepare": "husky install",
|
|
22
22
|
"format:write": "prettier --write \"**/*.{css,js,json,jsx,ts,tsx}\"",
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
"@radix-ui/react-toggle-group": "^0.1.5",
|
|
34
34
|
"@radix-ui/react-tooltip": "^0.1.7",
|
|
35
35
|
"@stitches/react": "~1.2.8",
|
|
36
|
-
"next": "
|
|
37
|
-
"react": "
|
|
38
|
-
"react-dom": "
|
|
36
|
+
"next": "^13.3.0",
|
|
37
|
+
"react": "^18.2.0",
|
|
38
|
+
"react-dom": "^18.2.0",
|
|
39
39
|
"uuidv4": "^6.2.13"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
@@ -45,22 +45,22 @@
|
|
|
45
45
|
"@storybook/addon-interactions": "^6.5.12",
|
|
46
46
|
"@storybook/addon-links": "^6.5.12",
|
|
47
47
|
"@storybook/react": "^6.5.12",
|
|
48
|
-
"@storybook/testing-library": "^0.0
|
|
49
|
-
"@testing-library/dom": "^9.
|
|
48
|
+
"@storybook/testing-library": "^0.1.0",
|
|
49
|
+
"@testing-library/dom": "^9.2.0",
|
|
50
50
|
"@testing-library/jest-dom": "^5.16.5",
|
|
51
|
-
"@testing-library/react": "
|
|
51
|
+
"@testing-library/react": "^14.0.0",
|
|
52
52
|
"@testing-library/user-event": "^14.4.3",
|
|
53
53
|
"@types/node": "17.0.21",
|
|
54
54
|
"@types/react": "17.0.40",
|
|
55
55
|
"babel-loader": "^8.2.4",
|
|
56
56
|
"cross-env": "^7.0.3",
|
|
57
57
|
"eslint": "8.11.0",
|
|
58
|
-
"eslint-config-next": "
|
|
58
|
+
"eslint-config-next": "^13.3.1-canary.6",
|
|
59
59
|
"eslint-config-prettier": "^8.6.0",
|
|
60
60
|
"eslint-plugin-storybook": "^0.6.4",
|
|
61
61
|
"figma-api": "^1.10.1",
|
|
62
62
|
"husky": ">=7",
|
|
63
|
-
"jest": "^29.
|
|
63
|
+
"jest": "^29.5.0",
|
|
64
64
|
"jest-environment-jsdom": "^29.4.3",
|
|
65
65
|
"lint-staged": ">=10",
|
|
66
66
|
"np": "^7.6.1",
|
|
@@ -68,8 +68,10 @@
|
|
|
68
68
|
"rollup": "^2.70.1",
|
|
69
69
|
"rollup-plugin-typescript2": "^0.31.2",
|
|
70
70
|
"storybook-addon-designs": "^6.3.1",
|
|
71
|
+
"ts-node": "^10.9.1",
|
|
71
72
|
"tslib": "^2.3.1",
|
|
72
|
-
"typescript": "
|
|
73
|
+
"typescript": "~4.7.4",
|
|
74
|
+
"use": "^3.1.1"
|
|
73
75
|
},
|
|
74
76
|
"publishConfig": {
|
|
75
77
|
"registry": "https://registry.npmjs.org/",
|