@gobolt/genesis 0.2.4 → 0.2.5
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/README.md +0 -1
- package/dist/_virtual/index5.cjs +1 -1
- package/dist/_virtual/index5.js +4 -4
- package/dist/_virtual/index6.cjs +1 -1
- package/dist/_virtual/index6.js +4 -4
- package/dist/components/Avatar/styles.cjs +1 -1
- package/dist/components/Avatar/styles.d.ts +12 -1
- package/dist/components/Avatar/styles.js +1 -1
- package/dist/components/Badge/styles.cjs +3 -3
- package/dist/components/Badge/styles.d.ts +8 -1
- package/dist/components/Badge/styles.js +1 -1
- package/dist/components/Breadcrumb/styles.cjs +10 -10
- package/dist/components/Breadcrumb/styles.d.ts +23 -2
- package/dist/components/Breadcrumb/styles.js +1 -1
- package/dist/components/Button/icon-button-styles.cjs +2 -2
- package/dist/components/Button/icon-button-styles.d.ts +12 -1
- package/dist/components/Button/icon-button-styles.js +1 -1
- package/dist/components/Button/styles.cjs +2 -2
- package/dist/components/Button/styles.d.ts +16 -1
- package/dist/components/Button/styles.js +1 -1
- package/dist/components/Card/styles.cjs +4 -4
- package/dist/components/Card/styles.d.ts +10 -1
- package/dist/components/Card/styles.js +1 -1
- package/dist/components/Checkbox/styles.cjs +2 -2
- package/dist/components/Checkbox/styles.d.ts +6 -1
- package/dist/components/Checkbox/styles.js +1 -1
- package/dist/components/Dashboard/styles.d.ts +8 -1
- package/dist/components/ErrorBoundary/styles.d.ts +8 -1
- package/dist/components/ErrorBoundaryFallback/styles.cjs +1 -1
- package/dist/components/ErrorBoundaryFallback/styles.d.ts +1 -1
- package/dist/components/ErrorBoundaryFallback/styles.js +1 -1
- package/dist/components/Form/styles.cjs +1 -1
- package/dist/components/Form/styles.js +1 -1
- package/dist/components/Glyph/styles.d.ts +8 -1
- package/dist/components/Input/styles.cjs +2 -2
- package/dist/components/Input/styles.d.ts +15 -1
- package/dist/components/Input/styles.js +1 -1
- package/dist/components/Layout/Content/styles.cjs +2 -2
- package/dist/components/Layout/Content/styles.d.ts +7 -1
- package/dist/components/Layout/Content/styles.js +1 -1
- package/dist/components/Layout/MainLayout/styles.d.ts +4 -4
- package/dist/components/Message/styles.cjs +4 -4
- package/dist/components/Message/styles.d.ts +9 -3
- package/dist/components/Message/styles.js +1 -1
- package/dist/components/Notification/NotificationBadge/styles.cjs +3 -3
- package/dist/components/Notification/NotificationBadge/styles.d.ts +3 -3
- package/dist/components/Notification/NotificationBadge/styles.js +1 -1
- package/dist/components/Notification/styles.cjs +7 -7
- package/dist/components/Notification/styles.d.ts +16 -5
- package/dist/components/Notification/styles.js +1 -1
- package/dist/components/Popover/styles.cjs +1 -1
- package/dist/components/Popover/styles.d.ts +13 -1
- package/dist/components/Popover/styles.js +1 -1
- package/dist/components/Progress/styles.cjs +1 -1
- package/dist/components/Progress/styles.d.ts +13 -1
- package/dist/components/Progress/styles.js +1 -1
- package/dist/components/Radio/Radio.cjs +2 -2
- package/dist/components/Radio/Radio.d.ts +4 -1
- package/dist/components/Radio/Radio.js +1 -1
- package/dist/components/Row/RowActions/styles.cjs +1 -1
- package/dist/components/Row/RowActions/styles.d.ts +1 -1
- package/dist/components/Row/RowActions/styles.js +1 -1
- package/dist/components/Row/RowLabelValue/styles.cjs +3 -3
- package/dist/components/Row/RowLabelValue/styles.d.ts +12 -2
- package/dist/components/Row/RowLabelValue/styles.js +1 -1
- package/dist/components/Row/styles.cjs +6 -6
- package/dist/components/Row/styles.d.ts +9 -1
- package/dist/components/Row/styles.js +1 -1
- package/dist/components/SegmentedControls/styles.cjs +4 -4
- package/dist/components/SegmentedControls/styles.d.ts +9 -1
- package/dist/components/SegmentedControls/styles.js +1 -1
- package/dist/components/Select/styles.cjs +4 -4
- package/dist/components/Select/styles.d.ts +21 -4
- package/dist/components/Select/styles.js +1 -1
- package/dist/components/Switch/styles.cjs +2 -2
- package/dist/components/Switch/styles.d.ts +7 -1
- package/dist/components/Switch/styles.js +1 -1
- package/dist/components/Table/TableControls/PrimaryTableControlsRow.cjs +1 -1
- package/dist/components/Table/TableControls/PrimaryTableControlsRow.js +1 -1
- package/dist/components/Table/TableControls/styles.d.ts +8 -1
- package/dist/components/Table/styles.cjs +2 -2
- package/dist/components/Table/styles.js +1 -1
- package/dist/components/Tabs/styles.cjs +2 -2
- package/dist/components/Tabs/styles.d.ts +9 -1
- package/dist/components/Tabs/styles.js +1 -1
- package/dist/components/Tile/styles.cjs +4 -4
- package/dist/components/Tile/styles.d.ts +7 -1
- package/dist/components/Tile/styles.js +1 -1
- package/dist/components/Toast/styles.cjs +5 -5
- package/dist/components/Toast/styles.d.ts +9 -3
- package/dist/components/Toast/styles.js +1 -1
- package/dist/components/Tooltip/styles.cjs +2 -2
- package/dist/components/Tooltip/styles.d.ts +14 -1
- package/dist/components/Tooltip/styles.js +1 -1
- package/dist/components/Typography/styles.cjs +12 -12
- package/dist/components/Typography/styles.d.ts +21 -3
- package/dist/components/Typography/styles.js +1 -1
- package/dist/genesis/styles.d.ts +11 -2
- package/dist/node_modules/antd/es/typography/hooks/useCopyClick.cjs +1 -1
- package/dist/node_modules/antd/es/typography/hooks/useCopyClick.js +1 -1
- package/dist/styles/global-styles.d.ts +1 -1
- package/dist/utils/styled.cjs +1 -1
- package/dist/utils/styled.d.ts +5 -6
- package/dist/utils/styled.js +6 -20
- package/package.json +1 -6
- package/dist/components/Button/Button.native.d.ts +0 -12
- package/dist/components/Button/__stories__/Button.native.stories.d.ts +0 -8
- package/dist/components/Button/styles.native.d.ts +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("styled-components"),o=t.div`
|
|
2
2
|
position: relative;
|
|
3
3
|
display: flex;
|
|
4
4
|
position: absolute;
|
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
border-radius: 50%;
|
|
13
13
|
box-sizing: border-box;
|
|
14
14
|
background-color: white;
|
|
15
|
-
`,r=t.
|
|
15
|
+
`,r=t.div`
|
|
16
16
|
display: flex;
|
|
17
17
|
position: relative;
|
|
18
|
-
`,i=t.
|
|
18
|
+
`,i=t.div`
|
|
19
19
|
display: flex;
|
|
20
20
|
justify-content: center;
|
|
21
21
|
align-items: center;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const BadgeState:
|
|
2
|
-
export declare const Badge:
|
|
3
|
-
export declare const BadgeWrapper:
|
|
1
|
+
export declare const BadgeState: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
2
|
+
export declare const Badge: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
|
+
export declare const BadgeWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("styled-components"),o=require("../../constants/index.cjs"),n=i.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: space-between;
|
|
4
4
|
align-items: center;
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
border-radius: ${({theme:t})=>t.borderRadius.BorderRadiusSm}px;
|
|
10
10
|
height: 85px;
|
|
11
11
|
width: 500px;
|
|
12
|
-
background-color: ${({theme:t,$isUnread:
|
|
13
|
-
`,r=
|
|
12
|
+
background-color: ${({theme:t,$isUnread:e})=>e?"#F4F4F4":t.colors.surface.default};
|
|
13
|
+
`,r=i.div`
|
|
14
14
|
display: flex;
|
|
15
15
|
align-items: center;
|
|
16
16
|
gap: ${({theme:t})=>t.sizing.Size2}px;
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
overflow: hidden;
|
|
25
25
|
text-overflow: ellipsis;
|
|
26
26
|
font-family: ${({theme:t})=>t.typography.fontFamily};
|
|
27
|
-
line-height: ${({theme:t,size:
|
|
27
|
+
line-height: ${({theme:t,size:e})=>e===o.SIZE.standard?t.typography.lineHeight:"16px"};
|
|
28
28
|
}
|
|
29
|
-
`,d=
|
|
29
|
+
`,d=i.div`
|
|
30
30
|
display: flex;
|
|
31
31
|
justify-content: center;
|
|
32
32
|
align-items: center;
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
width: 8px;
|
|
37
37
|
aspect-ratio: 1;
|
|
38
38
|
min-height: 8px;
|
|
39
|
-
`,a=t=>`1px solid ${t.colors.interactive.utility.border}`;
|
|
39
|
+
`,a=t=>`1px solid ${t.colors.interactive.utility.border}`;i.button`
|
|
40
40
|
border: ${({theme:t})=>a(t)};
|
|
41
41
|
background: "none";
|
|
42
42
|
cursor: "pointer";
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
padding-bottom: "2px";
|
|
48
48
|
padding-left: ${({theme:t})=>t.components.utilityButton.padding.horPadding};
|
|
49
49
|
padding-right: ${({theme:t})=>t.components.utilityButton.padding.horPadding};
|
|
50
|
-
`;const s=
|
|
50
|
+
`;const s=i.button`
|
|
51
51
|
text-decoration: underline;
|
|
52
52
|
border: none;
|
|
53
53
|
background: none;
|
|
@@ -1,5 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
type NotificationRowProps = {
|
|
2
|
+
state: string;
|
|
3
|
+
size: string;
|
|
4
|
+
$isUnread: boolean;
|
|
5
|
+
};
|
|
6
|
+
export declare const NotificationRow: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, NotificationRowProps>> & string;
|
|
7
|
+
export declare const NotificationContent: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
8
|
+
size: string;
|
|
9
|
+
}>> & string;
|
|
10
|
+
export declare const NotificationUnread: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
11
|
+
state: string;
|
|
12
|
+
size: string;
|
|
13
|
+
}>> & string;
|
|
14
|
+
export declare const NotificationActionButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
|
|
15
|
+
export declare const ChevronButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
|
|
16
|
+
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("styled-components"),o=require("../../node_modules/antd/es/popconfirm/index.cjs"),e=t=>"",r=s(o)`
|
|
2
2
|
${({theme:t})=>e()}
|
|
3
3
|
`;exports.Popover=r;exports.getGenesisClass=e;
|
|
@@ -1,2 +1,14 @@
|
|
|
1
|
+
import { GenesisTheme } from '../../styles/theme/genesis-theme.types';
|
|
2
|
+
interface StyledPopoverProps {
|
|
3
|
+
theme?: GenesisTheme;
|
|
4
|
+
align?: "left" | "right" | "top" | "bottom";
|
|
5
|
+
placement?: "top" | "topleft" | "topright";
|
|
6
|
+
title?: string;
|
|
7
|
+
}
|
|
1
8
|
export declare const getGenesisClass: (theme: any) => string;
|
|
2
|
-
export declare const Popover:
|
|
9
|
+
export declare const Popover: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<Omit<import('antd').PopconfirmProps & import('react').RefAttributes<import('antd/es/tooltip').TooltipRef>, "ref"> & {
|
|
10
|
+
ref?: import('react').Ref<import('antd/es/tooltip').TooltipRef>;
|
|
11
|
+
}, StyledPopoverProps>> & string & Omit<import('react').ForwardRefExoticComponent<import('antd').PopconfirmProps & import('react').RefAttributes<import('antd/es/tooltip').TooltipRef>> & {
|
|
12
|
+
_InternalPanelDoNotUseOrYouWillBeFired: import('react').FC<import('antd/es/popconfirm/PurePanel').PurePanelProps>;
|
|
13
|
+
}, keyof import('react').Component<any, {}, any>>;
|
|
14
|
+
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("styled-components"),o=require("../../node_modules/antd/es/progress/progress.cjs"),r=({colors:e},s="info")=>"",n=t(o)`
|
|
2
2
|
${({theme:e,state:s})=>r(e,s)}
|
|
3
3
|
`;exports.Progress=n;exports.getGenesisClass=r;
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
+
import { ProgressProps } from 'antd';
|
|
2
|
+
import { GenesisTheme } from '../../styles/theme/genesis-theme.types';
|
|
3
|
+
import { Percent } from './Progress';
|
|
4
|
+
interface StyledProgressProps extends ProgressProps {
|
|
5
|
+
theme?: GenesisTheme;
|
|
6
|
+
percent?: number;
|
|
7
|
+
success?: Percent | null;
|
|
8
|
+
state?: "success" | "error" | "info";
|
|
9
|
+
}
|
|
1
10
|
export declare const getGenesisClass: ({ colors }: {
|
|
2
11
|
colors: any;
|
|
3
12
|
}, state?: string) => string;
|
|
4
|
-
export declare const Progress:
|
|
13
|
+
export declare const Progress: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<Omit<ProgressProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & {
|
|
14
|
+
ref?: import('react').Ref<HTMLDivElement>;
|
|
15
|
+
}, StyledProgressProps>> & string & Omit<import('react').ForwardRefExoticComponent<ProgressProps & import('react').RefAttributes<HTMLDivElement>>, keyof import('react').Component<any, {}, any>>;
|
|
16
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),o=require("react"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),o=require("react"),v=require("../../constants/index.cjs"),y=require("./states/RadioChecked.cjs"),g=require("./states/RadioCheckedHover.cjs"),x=require("./states/RadioCheckedFocussed.cjs"),C=require("./states/RadioCheckedDisabled.cjs"),I=require("./states/RadioUnchecked.cjs"),F=require("./states/RadioUncheckedHover.cjs"),H=require("./states/RadioUncheckedFocussed.cjs"),S=require("./states/RadioUncheckedDisabled.cjs"),T=require("styled-components"),m=require("../Typography/Typography.cjs"),R=T.div`
|
|
2
2
|
outline: none;
|
|
3
3
|
display: flex;
|
|
4
4
|
align-items: center;
|
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
cursor: ${({$isDisabled:t})=>t?"not-allowed":"pointer"};
|
|
7
7
|
pointer-events: ${({$isDisabled:t})=>t?"none":"auto"};
|
|
8
8
|
position: relative;
|
|
9
|
-
`,w=({id:t,label:i,selectedId:u,onChange:p,isDisabled:r})=>{const[c,j]=o.useState(!1),[a,d]=o.useState(!1),[s,f]=o.useState(!1),l=o.useRef(null);o.useEffect(()=>{j(u===t)},[u,t]);const h=()=>{r||p(t)},k=n=>{r||(n.key==="Enter"||n.key===" ")&&(n.preventDefault(),h())},q=()=>c?r?e.jsx(C,{}):s?e.jsx(x,{}):s?e.jsx(x,{}):a?e.jsx(g,{}):e.jsx(
|
|
9
|
+
`,w=({id:t,label:i,selectedId:u,onChange:p,isDisabled:r})=>{const[c,j]=o.useState(!1),[a,d]=o.useState(!1),[s,f]=o.useState(!1),l=o.useRef(null);o.useEffect(()=>{j(u===t)},[u,t]);const h=()=>{r||p(t)},k=n=>{r||(n.key==="Enter"||n.key===" ")&&(n.preventDefault(),h())},q=()=>c?r?e.jsx(C,{}):s?e.jsx(x,{}):s?e.jsx(x,{}):a?e.jsx(g,{}):e.jsx(y,{}):s?e.jsx(H,{}):a?e.jsx(F,{}):r?e.jsx(S,{}):e.jsx(I,{});return e.jsxs(R,{ref:l,$isDisabled:r,onFocus:n=>{r||n.target!==l.current||f(!0)},onBlur:()=>{r||f(!1)},onMouseEnter:()=>!r&&d(!0),onMouseLeave:()=>d(!1),onClick:h,onKeyDown:k,tabIndex:r?-1:0,role:"radio","aria-checked":c,"aria-disabled":r,children:[e.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:26,height:26,pointerEvents:"none"},children:q()}),i&&e.jsx(m,{variant:v.TYPOGRAPHY_VARIANT.label1,isText:!0,children:i})]})};exports.RadioWrapper=R;exports.default=w;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
interface RadioProps {
|
|
2
3
|
id: string;
|
|
3
4
|
label?: string;
|
|
@@ -5,6 +6,8 @@ interface RadioProps {
|
|
|
5
6
|
onChange: (id: string) => void;
|
|
6
7
|
isDisabled?: boolean;
|
|
7
8
|
}
|
|
8
|
-
export declare const RadioWrapper:
|
|
9
|
+
export declare const RadioWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
10
|
+
$isDisabled: boolean;
|
|
11
|
+
}>> & string;
|
|
9
12
|
declare const Radio: ({ id, label, selectedId, onChange, isDisabled }: RadioProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
13
|
export default Radio;
|
|
@@ -9,7 +9,7 @@ import w from "./states/RadioUnchecked.js";
|
|
|
9
9
|
import F from "./states/RadioUncheckedHover.js";
|
|
10
10
|
import H from "./states/RadioUncheckedFocussed.js";
|
|
11
11
|
import E from "./states/RadioUncheckedDisabled.js";
|
|
12
|
-
import
|
|
12
|
+
import T from "styled-components";
|
|
13
13
|
import U from "../Typography/Typography.js";
|
|
14
14
|
const j = T.div`
|
|
15
15
|
outline: none;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("styled-components"),t=e.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: 16px;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const ActionsContainer:
|
|
1
|
+
export declare const ActionsContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("styled-components"),r=require("../../../node_modules/antd/es/skeleton/Skeleton.cjs"),o=e=>`${e.row["ver-padding"]}px ${e.row["hor-padding"]}px`,a=({components:e},t=!1)=>`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: ${t?"column":"row"};
|
|
4
4
|
align-items: ${t?"flex-start":"center"};
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
width: 100%;
|
|
7
7
|
padding: ${o(e)};
|
|
8
8
|
gap: 8px;
|
|
9
|
-
`,l=n.
|
|
9
|
+
`,l=n.div`
|
|
10
10
|
${({theme:e,$isFullWidth:t})=>a(e,t)}
|
|
11
|
-
`,s=n
|
|
11
|
+
`,s=n(r)`
|
|
12
12
|
&& {
|
|
13
13
|
.ant-skeleton-content .ant-skeleton-paragraph > li {
|
|
14
14
|
border-radius: 50px !important;
|
|
@@ -1,5 +1,15 @@
|
|
|
1
|
+
interface StyledRowLabelValueProps {
|
|
2
|
+
$isFullWidth?: boolean;
|
|
3
|
+
}
|
|
1
4
|
export declare const getGenesisRowLabelValueClass: ({ components }: {
|
|
2
5
|
components: any;
|
|
3
6
|
}, $isFullWidth?: boolean) => string;
|
|
4
|
-
export declare const RowLabelValue:
|
|
5
|
-
export declare const Skeleton:
|
|
7
|
+
export declare const RowLabelValue: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledRowLabelValueProps>> & string;
|
|
8
|
+
export declare const Skeleton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('antd').SkeletonProps, never>> & string & Omit<import('react').FC<import('antd').SkeletonProps> & {
|
|
9
|
+
Button: import('react').FC<import('antd/es/skeleton/Button').SkeletonButtonProps>;
|
|
10
|
+
Avatar: import('react').FC<import('antd/es/skeleton/Avatar').AvatarProps>;
|
|
11
|
+
Input: import('react').FC<import('antd/es/skeleton/Input').SkeletonInputProps>;
|
|
12
|
+
Image: import('react').FC<import('antd/es/skeleton/Image').SkeletonImageProps>;
|
|
13
|
+
Node: import('react').FC<import('antd/es/skeleton/Node').SkeletonNodeProps>;
|
|
14
|
+
}, keyof import('react').Component<any, {}, any>>;
|
|
15
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import n from "styled-components";
|
|
2
2
|
import r from "../../../node_modules/antd/es/skeleton/Skeleton.js";
|
|
3
3
|
const a = (e) => `${e.row["ver-padding"]}px ${e.row["hor-padding"]}px`, o = ({ components: e }, t = !1) => `
|
|
4
4
|
display: flex;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("styled-components"),d=e=>`1px solid ${e.surface["border-light"]}`,s=({colors:e,borderRadius:o,sizing:n},t=!1,r=!1,l=null)=>`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: 100%;
|
|
5
5
|
border-bottom: ${t?d(e):"none"};
|
|
6
|
-
padding-bottom:${
|
|
7
|
-
align-items: ${
|
|
8
|
-
`,u=i.
|
|
9
|
-
${({theme:e,$hasBorder:o,$isFullWidth:
|
|
10
|
-
`;exports.Column=u;exports.getGenesisColumnClass=
|
|
6
|
+
padding-bottom:${l?"24px":"0"};
|
|
7
|
+
align-items: ${r?"flex-start !important":"center"};
|
|
8
|
+
`,u=i.div`
|
|
9
|
+
${({theme:e,$hasBorder:o,$isFullWidth:n,actions:t})=>s(e,o,n,t)}
|
|
10
|
+
`;exports.Column=u;exports.getGenesisColumnClass=s;
|
|
@@ -1,6 +1,14 @@
|
|
|
1
|
+
import { GenesisTheme } from '../../styles/theme/genesis-theme.types';
|
|
2
|
+
interface StyledColumnProps {
|
|
3
|
+
theme?: GenesisTheme;
|
|
4
|
+
$hasBorder?: boolean;
|
|
5
|
+
$isFullWidth?: boolean;
|
|
6
|
+
actions?: unknown;
|
|
7
|
+
}
|
|
1
8
|
export declare const getGenesisColumnClass: ({ colors, borderRadius, sizing }: {
|
|
2
9
|
colors: any;
|
|
3
10
|
borderRadius: any;
|
|
4
11
|
sizing: any;
|
|
5
12
|
}, $hasBorder?: boolean, $isFullWidth?: boolean, actions?: any) => string;
|
|
6
|
-
export declare const Column:
|
|
13
|
+
export declare const Column: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledColumnProps>> & string;
|
|
14
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import i from "styled-components";
|
|
2
2
|
const l = (e) => `1px solid ${e.surface["border-light"]}`, d = ({ colors: e, borderRadius: o, sizing: r }, t = !1, n = !1, s = null) => `
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("styled-components"),a=require("../../node_modules/antd/es/segmented/index.cjs"),s=({colors:e,borderRadius:r,sizing:n},t="primary",o="active")=>`
|
|
2
2
|
&.ant-segmented {
|
|
3
3
|
border-radius: ${r.BorderRadiusMd};
|
|
4
4
|
color: ${e.onsurface.copy};
|
|
@@ -17,6 +17,6 @@
|
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
`,d=i
|
|
21
|
-
${({theme:e,type:r="primary",state:
|
|
22
|
-
`;exports.SegmentedControls=d;exports.getGenesisClass=
|
|
20
|
+
`,d=i(a)`
|
|
21
|
+
${({theme:e,type:r="primary",state:n="active"})=>s(e,r,n)}
|
|
22
|
+
`;exports.SegmentedControls=d;exports.getGenesisClass=s;
|
|
@@ -1,3 +1,11 @@
|
|
|
1
1
|
import { GenesisTheme } from '../../styles/theme/genesis-theme.types';
|
|
2
|
+
interface StyledSegmentedControlsProps {
|
|
3
|
+
theme?: GenesisTheme;
|
|
4
|
+
type?: "primary" | "secondary";
|
|
5
|
+
state?: "active" | "disabled";
|
|
6
|
+
}
|
|
2
7
|
export declare const getGenesisClass: ({ colors, borderRadius, sizing }: GenesisTheme, type?: string, state?: string) => string;
|
|
3
|
-
export declare const SegmentedControls:
|
|
8
|
+
export declare const SegmentedControls: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<Omit<import('antd').SegmentedProps<unknown> & import('react').RefAttributes<HTMLDivElement>, "ref"> & {
|
|
9
|
+
ref?: import('react').Ref<HTMLDivElement>;
|
|
10
|
+
}, StyledSegmentedControlsProps>> & string & Omit<(<ValueType>(props: import('antd').SegmentedProps<ValueType> & React.RefAttributes<HTMLDivElement>) => ReturnType<import('react').ForwardRefExoticComponent<Omit<import('antd').SegmentedProps<import('rc-segmented').SegmentedValue>, "ref"> & import('react').RefAttributes<HTMLDivElement>>>) & Pick<import('react').FC<{}>, "displayName">, keyof import('react').Component<any, {}, any>>;
|
|
11
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("styled-components"),d=require("../../node_modules/antd/es/select/index.cjs"),c=a.div`
|
|
2
2
|
position: relative;
|
|
3
3
|
border: 2px solid transparent;
|
|
4
4
|
background-color: transparent;
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
|
-
`,m=a.
|
|
85
|
+
`,m=a.div`
|
|
86
86
|
.ant-select-item-option {
|
|
87
87
|
transition: ${({theme:e,type:o})=>l(e)};
|
|
88
88
|
border-radius: 0px;
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
|
-
`,b=a.
|
|
108
|
+
`,b=a.div`
|
|
109
109
|
.ant-select-dropdown {
|
|
110
110
|
animation-duration: ${({theme:e})=>`${e.motion.veryfast}s`} !important;
|
|
111
111
|
transition: all ${({theme:e})=>`${e.motion.veryfast}s`}
|
|
@@ -124,6 +124,6 @@
|
|
|
124
124
|
&.ant-slide-up-leave {
|
|
125
125
|
animation-duration: ${({theme:e})=>`${e.motion.veryfast}s`} !important;
|
|
126
126
|
}
|
|
127
|
-
`,$=a
|
|
127
|
+
`,$=a(d)`
|
|
128
128
|
${({theme:e,type:o="primary",state:t="active",$variant:r="none"})=>u(e,o,t,r)}
|
|
129
129
|
`;exports.Select=$;exports.SelectDropdown=b;exports.SelectWrapper=c;exports.StyledMenuItem=m;
|
|
@@ -1,13 +1,30 @@
|
|
|
1
1
|
import { Select as AntSelect, SelectProps } from 'antd';
|
|
2
2
|
import { BaseSelectRef } from 'rc-select';
|
|
3
3
|
import { StyledComponent } from '../../utils/styled';
|
|
4
|
-
import { GenesisTheme } from '../../styles/theme/genesis-theme.types';
|
|
4
|
+
import { GenesisTheme, Breakpoint } from '../../styles/theme/genesis-theme.types';
|
|
5
|
+
import { TYPE } from '../../constants';
|
|
5
6
|
interface StyledSelectProps extends SelectProps {
|
|
6
7
|
theme?: GenesisTheme;
|
|
7
8
|
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
interface SelectWrapperProps {
|
|
10
|
+
theme?: GenesisTheme;
|
|
11
|
+
$isFocused: boolean;
|
|
12
|
+
type: keyof typeof TYPE;
|
|
13
|
+
variant?: "simple" | "none";
|
|
14
|
+
}
|
|
15
|
+
export declare const SelectWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, SelectWrapperProps>> & string;
|
|
16
|
+
interface SelectMenuItemProps {
|
|
17
|
+
theme: GenesisTheme;
|
|
18
|
+
type?: keyof typeof TYPE;
|
|
19
|
+
state?: keyof Breakpoint;
|
|
20
|
+
}
|
|
21
|
+
export declare const StyledMenuItem: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, SelectMenuItemProps>> & string;
|
|
22
|
+
interface SelectDropdownProps {
|
|
23
|
+
theme: GenesisTheme;
|
|
24
|
+
type?: keyof typeof TYPE;
|
|
25
|
+
state?: keyof Breakpoint;
|
|
26
|
+
}
|
|
27
|
+
export declare const SelectDropdown: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, SelectDropdownProps>> & string;
|
|
11
28
|
type StyledSelectComponent = StyledComponent<typeof AntSelect, any, StyledSelectProps & {
|
|
12
29
|
ref?: React.Ref<BaseSelectRef>;
|
|
13
30
|
}, never>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("styled-components"),t=require("../../node_modules/antd/es/switch/index.cjs"),n=({colors:e,borderRadius:c})=>`
|
|
2
2
|
&.ant-switch {
|
|
3
3
|
background-color: ${e.primary.active};
|
|
4
4
|
border-radius: ${c==null?void 0:c.BorderRadiusMd};
|
|
@@ -53,6 +53,6 @@
|
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
`,s=t
|
|
56
|
+
`,s=u(t)`
|
|
57
57
|
${({theme:e})=>n(e)}
|
|
58
58
|
`;exports.Switch=s;exports.default=s;
|
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import { GenesisTheme } from '../../styles/theme/genesis-theme.types';
|
|
2
|
+
interface StyledSwitchProps extends React.HTMLAttributes<HTMLButtonElement> {
|
|
3
|
+
theme?: GenesisTheme;
|
|
4
|
+
}
|
|
5
|
+
export declare const Switch: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<Omit<import('antd').SwitchProps & import('react').RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
6
|
+
ref?: import('react').Ref<HTMLButtonElement>;
|
|
7
|
+
}, StyledSwitchProps>> & string & Omit<import('react').ForwardRefExoticComponent<import('antd').SwitchProps & import('react').RefAttributes<HTMLButtonElement>>, keyof import('react').Component<any, {}, any>>;
|
|
2
8
|
export default Switch;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),j=require("../../../node_modules/react-icons/hi2/index.cjs"),c=require("../../../node_modules/react-icons/hi/index.cjs"),m=require("../../../node_modules/react-icons/fi/index.cjs"),q=require("../../../_virtual/
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),j=require("../../../node_modules/react-icons/hi2/index.cjs"),c=require("../../../node_modules/react-icons/hi/index.cjs"),m=require("../../../node_modules/react-icons/fi/index.cjs"),q=require("../../../_virtual/index6.cjs"),I=require("../../Input/Input.cjs"),d=require("../../Button/UtilityButton.cjs"),f=require("../../Typography/Typography.cjs"),k=require("../../Select/Select.cjs"),S=require("../../Button/IconButton.cjs"),b=({sortOptions:s,searchByPlaceholder:p="",searchField:x="address",isSortedAscending:n=!0,onChange:t})=>{const a=i=>{const v={event:"inputChange",payload:{value:i.target.value,field:x}};q(()=>{t==null||t(v)},200)()},r=i=>{const u={event:"primaryChange",payload:{value:i}};t==null||t(u)},l=()=>{const i={event:"filterClick",payload:{}};t==null||t(i)},o=()=>{const i={event:"settingsClick",payload:{}};t==null||t(i)},y=()=>{const i={event:"orderClick",payload:{value:n?"desc":"asc"}};t==null||t(i)};return e.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",minWidth:800},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[e.jsx(I,{size:"normal",placeholder:p,prefix:e.jsx(c.HiSearch,{}),style:{padding:"5px 8px"},onChange:a}),l&&e.jsx(d,{isIconButton:!0,icon:e.jsx(j.HiMiniAdjustmentsVertical,{}),onClick:l}),o&&e.jsx(d,{isIconButton:!0,icon:e.jsx(m.FiSettings,{}),onClick:o})]}),e.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[e.jsx(f,{variant:"body3",color:"#6C6C6C",children:"Sort by"}),s&&r?e.jsx(k,{options:s,defaultValue:s[0].value,variant:"simple",onChange:r}):null,e.jsx(S,{icon:n?e.jsx(c.HiOutlineSortDescending,{}):e.jsx(c.HiOutlineSortAscending,{}),onClick:y})]})]})};module.exports=b;
|
|
@@ -2,7 +2,7 @@ import { jsxs as r, jsx as i } from "react/jsx-runtime";
|
|
|
2
2
|
import { HiMiniAdjustmentsVertical as v } from "../../../node_modules/react-icons/hi2/index.js";
|
|
3
3
|
import { HiSearch as I, HiOutlineSortDescending as k, HiOutlineSortAscending as x } from "../../../node_modules/react-icons/hi/index.js";
|
|
4
4
|
import { FiSettings as b } from "../../../node_modules/react-icons/fi/index.js";
|
|
5
|
-
import S from "../../../_virtual/
|
|
5
|
+
import S from "../../../_virtual/index6.js";
|
|
6
6
|
import A from "../../Input/Input.js";
|
|
7
7
|
import d from "../../Button/UtilityButton.js";
|
|
8
8
|
import E from "../../Typography/Typography.js";
|
|
@@ -1,6 +1,13 @@
|
|
|
1
|
+
import { GenesisTheme } from '../../../styles/theme/genesis-theme.types';
|
|
2
|
+
interface StyledTableControlsProps {
|
|
3
|
+
theme?: GenesisTheme;
|
|
4
|
+
type?: "primary" | "secondary";
|
|
5
|
+
state?: "active" | "disabled";
|
|
6
|
+
}
|
|
1
7
|
export declare const getGenesisClass: ({ colors, borderRadius, sizing }: {
|
|
2
8
|
colors: any;
|
|
3
9
|
borderRadius: any;
|
|
4
10
|
sizing: any;
|
|
5
11
|
}, type?: string, state?: string) => string;
|
|
6
|
-
export declare const StyledTableControls:
|
|
12
|
+
export declare const StyledTableControls: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledTableControlsProps>> & string;
|
|
13
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("styled-components"),r=require("../../node_modules/antd/es/table/Table.cjs"),t=({colors:e,borderRadius:a,sizing:l})=>`
|
|
2
2
|
&.ant-table-wrapper {
|
|
3
3
|
// Add your custom styles here
|
|
4
4
|
}
|
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
font-family: 'Inter', sans-serif;
|
|
21
21
|
font-size: 14px;
|
|
22
22
|
}
|
|
23
|
-
`,o=s
|
|
23
|
+
`,o=s(r)`
|
|
24
24
|
${({theme:e})=>t(e)}
|
|
25
25
|
`;exports.Table=o;exports.getGenesisClass=t;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("styled-components"),i=require("../../node_modules/antd/es/tabs/index.cjs"),r=({colors:t,borderRadius:e,sizing:a},s="primary",b="active")=>`
|
|
2
2
|
&.ant-tabs {
|
|
3
3
|
background: #F4F4F4;
|
|
4
4
|
|
|
@@ -91,6 +91,6 @@
|
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
|
-
`,o=n
|
|
94
|
+
`,o=n(i)`
|
|
95
95
|
${({theme:t,type:e,state:a})=>r(t,e,a)}
|
|
96
96
|
`;exports.Tabs=o;exports.getGenesisClass=r;
|
|
@@ -1,3 +1,11 @@
|
|
|
1
1
|
import { GenesisTheme } from '../../styles/theme/genesis-theme.types';
|
|
2
|
+
interface StyledTabsProps {
|
|
3
|
+
theme?: GenesisTheme;
|
|
4
|
+
state: "active" | "hovered" | "focussed" | "disabled";
|
|
5
|
+
type: "card";
|
|
6
|
+
}
|
|
2
7
|
export declare const getGenesisClass: ({ colors, borderRadius, sizing }: GenesisTheme, type?: string, state?: string) => string;
|
|
3
|
-
export declare const Tabs:
|
|
8
|
+
export declare const Tabs: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('antd').TabsProps, StyledTabsProps>> & string & Omit<import('react').FC<import('antd').TabsProps> & {
|
|
9
|
+
TabPane: import('react').FC<import('antd').TabPaneProps>;
|
|
10
|
+
}, keyof import('react').Component<any, {}, any>>;
|
|
11
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("styled-components"),i=({sizing:e},s=!1)=>`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: ${s?"row":"column"};
|
|
4
4
|
padding: ${e.Size4};
|
|
5
|
-
`,l=
|
|
6
|
-
${({theme:e,$isHorizontal:s})=>
|
|
7
|
-
`;exports.Tile=l;exports.getGenesisClass=
|
|
5
|
+
`,l=t.div`
|
|
6
|
+
${({theme:e,$isHorizontal:s})=>i(e,s)}
|
|
7
|
+
`;exports.Tile=l;exports.getGenesisClass=i;
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
+
import { GenesisTheme } from '../../styles/theme/genesis-theme.types';
|
|
2
|
+
interface StyledTileProps {
|
|
3
|
+
theme?: GenesisTheme;
|
|
4
|
+
$isHorizontal?: boolean;
|
|
5
|
+
}
|
|
1
6
|
export declare const getGenesisClass: ({ sizing }: {
|
|
2
7
|
sizing: any;
|
|
3
8
|
}, $isHorizontal?: boolean) => string;
|
|
4
|
-
export declare const Tile:
|
|
9
|
+
export declare const Tile: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledTileProps>> & string;
|
|
10
|
+
export {};
|