Skip to content

Commit 845e6c6

Browse files
authored
Merge pull request #648 from PolymathNetwork/release
VRTM
2 parents aee4886 + 0af6b6c commit 845e6c6

File tree

38 files changed

+3537
-14
lines changed

38 files changed

+3537
-14
lines changed

packages/new-polymath-ui/src/components/CardFeatureState/CardFeatureState.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,27 @@ export interface CardFeatureStateProps {
88
status: 'inactive' | 'idle' | 'warning';
99
IconAsset: React.ComponentType<React.SVGAttributes<SVGElement>>;
1010
children: React.ReactNode;
11+
style: Object,
12+
maxWidth: Number,
1113
}
1214

1315
export const CardFeatureState = ({
1416
status,
1517
IconAsset,
1618
children,
19+
style,
20+
maxWidth,
1721
}: CardFeatureStateProps) => {
1822
return (
1923
<sc.Wrapper
2024
status={status}
2125
rounded
2226
textAlign="center"
23-
maxWidth={355}
27+
maxWidth={maxWidth}
2428
ml="auto"
2529
p={0}
2630
>
27-
<Box p={4}>
31+
<Box style={style} p={4}>
2832
<Icon Asset={IconAsset} width={64} height={64} color={status} />
2933
{children}
3034
</Box>
@@ -34,4 +38,6 @@ export const CardFeatureState = ({
3438

3539
CardFeatureState.defaultProps = {
3640
status: 'idle',
41+
maxWidth: 355,
42+
style: {},
3743
};
Lines changed: 6 additions & 0 deletions
Loading
Lines changed: 6 additions & 0 deletions
Loading
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import * as React from 'react';
2+
export const Svg24H = (props: React.SVGProps<SVGSVGElement>) => (
3+
<svg width="1em" height="1em" viewBox="0 0 64 64" fill="none" {...props}>
4+
<path
5+
fillRule="evenodd"
6+
clipRule="evenodd"
7+
d="M32 5.333c14.667 0 26.667 12 26.667 26.667 0 14.667-12 26.667-26.667 26.667-14.667 0-26.667-12-26.667-26.667 0-14.667 12-26.667 26.667-26.667zM32 0C14.4 0 0 14.4 0 32s14.4 32 32 32 32-14.4 32-32S49.6 0 32 0z"
8+
fill="currentColor"
9+
/>
10+
<path
11+
fillRule="evenodd"
12+
clipRule="evenodd"
13+
d="M23.923 26.428v2.286h4.615V31h-4.615v6.857h6.923v-2.286H26.23v-2.285h4.616v-6.858h-6.923zM38.923 31v-4.572h-2.307V31h-1.154v-4.572h-2.308v6.858H36.616v4.571h2.307v-4.571h2.308V31h-2.308z"
14+
fill="currentColor"
15+
/>
16+
<path
17+
fillRule="evenodd"
18+
clipRule="evenodd"
19+
d="M45.75 26.199l-2.114.915a12.378 12.378 0 011.056 5.029c0 6.931-5.694 12.571-12.692 12.571s-12.692-5.64-12.692-12.571c0-6.932 5.694-12.572 12.692-12.572v2.286l5.77-3.428L32 15v2.286c-8.27 0-15 6.665-15 14.857S23.73 47 32 47c8.272 0 15-6.665 15-14.857a14.6 14.6 0 00-1.25-5.944z"
20+
fill="currentColor"
21+
/>
22+
</svg>
23+
);
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import * as React from 'react';
2+
export const SvgCalendarOutline = (props: React.SVGProps<SVGSVGElement>) => (
3+
<svg width="1em" height="1em" viewBox="0 0 64 64" fill="none" {...props}>
4+
<path
5+
fillRule="evenodd"
6+
clipRule="evenodd"
7+
d="M19 19.555V48h27V19.555H19zm3.375 24.89V26.665h20.25v17.778h-20.25z"
8+
fill="currentColor"
9+
/>
10+
<path
11+
fillRule="evenodd"
12+
clipRule="evenodd"
13+
d="M25.85 23.573h-3.374v-7.032h3.375v7.032zm16.876 0H39.35v-7.032h3.375v7.032zM35.943 39.883v-1.521h-2.187v-8.406h-1.85l-2.848 1.678.675 1.366 2.281-1.351v6.713h-2.443v1.521h6.372z"
14+
fill="currentColor"
15+
/>
16+
<path
17+
fillRule="evenodd"
18+
clipRule="evenodd"
19+
d="M32 5.333c14.667 0 26.667 12 26.667 26.667 0 14.667-12 26.667-26.667 26.667-14.667 0-26.667-12-26.667-26.667 0-14.667 12-26.667 26.667-26.667zM32 0C14.4 0 0 14.4 0 32s14.4 32 32 32 32-14.4 32-32S49.6 0 32 0z"
20+
fill="currentColor"
21+
/>
22+
</svg>
23+
);
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import * as React from 'react';
2+
export const SvgRestriction = (props: React.SVGProps<SVGSVGElement>) => (
3+
<svg width="1em" height="1em" viewBox="0 0 64 64" fill="none" {...props}>
4+
<path
5+
fillRule="evenodd"
6+
clipRule="evenodd"
7+
d="M32 5.333c14.667 0 26.667 12 26.667 26.667 0 14.667-12 26.667-26.667 26.667-14.667 0-26.667-12-26.667-26.667 0-14.667 12-26.667 26.667-26.667zM32 0C14.4 0 0 14.4 0 32s14.4 32 32 32 32-14.4 32-32S49.6 0 32 0z"
8+
fill="currentColor"
9+
/>
10+
<path
11+
fillRule="evenodd"
12+
clipRule="evenodd"
13+
d="M28.667 26.333c0-.736.597-1.333 1.333-1.333h4c.736 0 1.333.597 1.333 1.333v1.334H34v-1a.333.333 0 00-.333-.334h-3.334a.333.333 0 00-.333.334v1h-1.333v-1.334zm-4.667 12h16v-10H24v10z"
14+
fill="currentColor"
15+
/>
16+
<path
17+
fill="currentColor"
18+
d="M16 16h6v6h-6zM16 42h6v6h-6zM42 16h6v6h-6zM42 42h6v6h-6zM18 22h2v18h-2zM44 24h2v18h-2zM24 18h18v2H24zM22 44h19v2H22z"
19+
/>
20+
</svg>
21+
);

packages/new-polymath-ui/src/images/icons/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,6 @@ export * from './generated/PlusPlain';
2828
export * from './generated/Token';
2929
export * from './generated/Warning';
3030
export * from './generated/Wallet';
31+
export * from './generated/24H';
32+
export * from './generated/CalendarOutline';
33+
export * from './generated/Restriction';
Lines changed: 12 additions & 0 deletions
Loading

packages/new-polymath-ui/src/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ import { SvgDelete } from './images/icons/generated/Delete';
2424
import { SvgGusd } from './images/icons/generated/gusd';
2525
import { SvgUsdc } from './images/icons/generated/usdc';
2626
import { SvgUsdt } from './images/icons/generated/usdt';
27+
import { Svg24H } from './images/icons/generated/24H';
28+
import { SvgCalendarOutline } from './images/icons/generated/CalendarOutline';
29+
import { SvgRestriction } from './images/icons/generated/Restriction';
2730
import { SvgPax } from './images/icons/generated/pax';
2831

2932
export { Field, FastField };
@@ -119,6 +122,9 @@ export const icons = {
119122
SvgUsdc,
120123
SvgUsdt,
121124
SvgPax,
125+
SvgCalendarOutline,
126+
Svg24H,
127+
SvgRestriction,
122128
};
123129

124130
export { validator } from './validator';
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
ETH Address,24h Start Date,24h End Date,24h Restriction Type,24h Allowed Tokens,Custom Start Date,Custom End Date,Custom Restriction Type,Custom Allowed Tokens,Rolling Period In Days
2+
0x1B2D2797A56c9eBa12aa821D643aB0dBa66C3772,1/1/2022,6/4/2024,0,1000,1/1/2022,6/4/2024,0,120,20
3+
0xd9f346Bf88cA2cb7e11B0106018DE80A0169764D,,,,,1/1/2022,6/4/2024,0,1000,10

0 commit comments

Comments
 (0)