@gobolt/genesis 0.2.3 → 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/Avatar.cjs +1 -1
- package/dist/components/Avatar/Avatar.d.ts +7 -3
- package/dist/components/Avatar/Avatar.js +61 -30
- package/dist/components/Avatar/__stories__/Avatar.stories.d.ts +4 -2
- 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 +5 -5
- package/dist/components/Button/icon-button-styles.d.ts +12 -1
- package/dist/components/Button/icon-button-styles.js +5 -5
- package/dist/components/Button/styles.cjs +11 -11
- package/dist/components/Button/styles.d.ts +16 -1
- package/dist/components/Button/styles.js +14 -14
- 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/RowActions.cjs +1 -1
- package/dist/components/Row/RowActions/RowActions.js +9 -24
- package/dist/components/Row/RowActions/styles.cjs +2 -22
- package/dist/components/Row/RowActions/styles.d.ts +1 -2
- package/dist/components/Row/RowActions/styles.js +3 -24
- 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/dist/utils/user-util.cjs +1 -0
- package/dist/utils/user-util.d.ts +2 -0
- package/dist/utils/user-util.js +10 -0
- 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,6 +1,13 @@
|
|
|
1
|
+
import { GenesisTheme } from '../../styles/theme/genesis-theme.types';
|
|
2
|
+
interface StyledDashboardProps {
|
|
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 StyledDashboard:
|
|
12
|
+
export declare const StyledDashboard: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledDashboardProps>> & string;
|
|
13
|
+
export {};
|
|
@@ -1,6 +1,13 @@
|
|
|
1
|
+
import { GenesisTheme } from '../../styles/theme/genesis-theme.types';
|
|
2
|
+
interface StyledErrorBoundaryProps {
|
|
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 StyledErrorBoundary:
|
|
12
|
+
export declare const StyledErrorBoundary: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledErrorBoundaryProps>> & string;
|
|
13
|
+
export {};
|
|
@@ -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=require("../../node_modules/antd/es/result/index.cjs"),r=e(t.default)`
|
|
2
2
|
height: 100vh;
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const StyledErrorBoundaryFallback: any
|
|
1
|
+
export declare const StyledErrorBoundaryFallback: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('antd').ResultProps, never>> & string & Omit<import('antd/es/result').ResultType, keyof import('react').Component<any, {}, any>>;
|
|
@@ -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=require("../../node_modules/antd/es/form/index.cjs"),r=e(t)`
|
|
2
2
|
label,
|
|
3
3
|
.ant-form-item-label > label,
|
|
4
4
|
.ant-form-item-required,
|
|
@@ -1,6 +1,13 @@
|
|
|
1
|
+
import { GenesisTheme } from '../../styles/theme/genesis-theme.types';
|
|
2
|
+
interface StyledGlyphProps {
|
|
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 StyledGlyph:
|
|
12
|
+
export declare const StyledGlyph: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledGlyphProps>> & string;
|
|
13
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("styled-components"),i=require("../../constants/index.cjs"),p=require("../../node_modules/antd/es/input/index.cjs"),x=(o,n,e)=>{const r={color:o.inputs.onsurface.active,borderColor:o[i.TYPE.secondary].active.borderColor,ringColor:o[n].focussed.ringColor},s={color:o.status.success.default,borderColor:o.status.success.default,ringColor:o.status.success.ringColor},u={color:o.status.error.default,borderColor:o.status.error.default,ringColor:o.status.error.ringColor},a=e!==i.STATE.error&&e!==i.STATE.success&&e!==i.STATE.filled?{color:o.inputs.onsurface.active,backgroundColor:o.inputs.surface.active,borderColor:o.inputs.surface.border,ringColor:o[n][e].ringColor}:null;return{filled:r,error:u,success:s,themeState:a}[(d=>[i.STATE.filled,i.STATE.error,i.STATE.success].includes(d)?d:"themeState")(e)]},g=({colors:o,borderRadius:n,components:e},r,s,u,a)=>{const t=x(o,r,s),l=(f,d)=>d&&!f?`${n.BorderRadiusMd}px 0px 0px ${n.BorderRadiusMd}px`:f&&!d?`0px ${n.BorderRadiusMd}px ${n.BorderRadiusMd}px 0px`:"0px";return`
|
|
2
2
|
&.ant-input {
|
|
3
3
|
font-family: 'Inter', sans-serif;
|
|
4
4
|
color: ${t.color};
|
|
@@ -86,6 +86,6 @@
|
|
|
86
86
|
padding-bottom: ${e.input.suffixPrefixVerPadding};
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
|
-
`},b=c
|
|
89
|
+
`},b=c(p)`
|
|
90
90
|
${({theme:o,state:n,type:e=i.TYPE.primary,...r})=>{const s=!!r.addonBefore,u=!!r.addonAfter;return g(o,e,n,s,u)}}
|
|
91
91
|
`;exports.Input=b;
|
|
@@ -1 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
import { InputProps as AntInputProps } from 'antd';
|
|
2
|
+
import { STATE } from '../../constants';
|
|
3
|
+
interface InputStyledProps extends AntInputProps {
|
|
4
|
+
state?: keyof typeof STATE;
|
|
5
|
+
}
|
|
6
|
+
export declare const Input: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<Omit<AntInputProps & import('react').RefAttributes<import('rc-input').InputRef>, "ref"> & {
|
|
7
|
+
ref?: import('react').Ref<import('rc-input').InputRef>;
|
|
8
|
+
}, InputStyledProps>> & string & Omit<import('react').ForwardRefExoticComponent<AntInputProps & import('react').RefAttributes<import('rc-input').InputRef>> & {
|
|
9
|
+
Group: import('react').FC<import('antd/es/input').GroupProps>;
|
|
10
|
+
Search: import('react').ForwardRefExoticComponent<import('antd/es/input').SearchProps & import('react').RefAttributes<import('rc-input').InputRef>>;
|
|
11
|
+
TextArea: import('react').ForwardRefExoticComponent<import('antd/es/input').TextAreaProps & import('react').RefAttributes<import('antd/es/input/TextArea').TextAreaRef>>;
|
|
12
|
+
Password: import('react').ForwardRefExoticComponent<import('antd/es/input').PasswordProps & import('react').RefAttributes<import('rc-input').InputRef>>;
|
|
13
|
+
OTP: import('react').ForwardRefExoticComponent<import('antd/es/input/OTP').OTPProps & import('react').RefAttributes<import('antd/es/input/OTP').OTPRef>>;
|
|
14
|
+
}, keyof import('react').Component<any, {}, any>>;
|
|
15
|
+
export {};
|
|
@@ -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=({sizing:e},t)=>`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: ${t?"column":"row"};
|
|
4
4
|
width: 100%;
|
|
@@ -6,6 +6,6 @@
|
|
|
6
6
|
padding: ${e.Size4}px;
|
|
7
7
|
margin: 0;
|
|
8
8
|
box-sizing: border-box;
|
|
9
|
-
`,s=n.
|
|
9
|
+
`,s=n.div`
|
|
10
10
|
${({theme:e,$isColumn:t})=>i(e,t)}
|
|
11
11
|
`;exports.Content=s;exports.getGenesisClass=i;
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
+
import { GenesisTheme } from '../../../styles/theme/genesis-theme.types';
|
|
2
|
+
interface StyledContentProps {
|
|
3
|
+
theme?: GenesisTheme;
|
|
4
|
+
$isColumn?: boolean;
|
|
5
|
+
}
|
|
1
6
|
export declare const getGenesisClass: ({ sizing }: {
|
|
2
7
|
sizing: any;
|
|
3
8
|
}, $isColumn: any) => string;
|
|
4
|
-
export declare const Content:
|
|
9
|
+
export declare const Content: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledContentProps>> & string;
|
|
10
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const Sidebar:
|
|
2
|
-
export declare const Header:
|
|
3
|
-
export declare const Main:
|
|
4
|
-
export declare const Footer:
|
|
1
|
+
export declare const Sidebar: 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 Header: 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 Main: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
4
|
+
export declare const Footer: 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 o=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("styled-components"),i=require("../../constants/index.cjs"),r=o.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: space-between;
|
|
4
4
|
align-items: center;
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
pointer-events: none;
|
|
10
10
|
cursor: default;
|
|
11
11
|
border-radius: ${({theme:e})=>e.borderRadius.BorderRadiusSm}px;
|
|
12
|
-
`,
|
|
12
|
+
`,a=o.div`
|
|
13
13
|
display: flex;
|
|
14
14
|
align-items: center;
|
|
15
15
|
gap: ${({theme:e})=>e.sizing.Size2}px;
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
line-height: ${({theme:e,size:t})=>t===i.SIZE.standard?e.typography.lineHeight:"23px"};
|
|
25
25
|
font-size: ${({theme:e,size:t})=>t==="standard"?e.typography.body2:e.typography.body1};
|
|
26
26
|
}
|
|
27
|
-
`,
|
|
27
|
+
`,s=o.button`
|
|
28
28
|
text-decoration: underline;
|
|
29
29
|
border: none;
|
|
30
30
|
background: none;
|
|
@@ -35,4 +35,4 @@
|
|
|
35
35
|
&:hover {
|
|
36
36
|
color: ${({theme:e})=>e.colors.interactive.link.hover};
|
|
37
37
|
}
|
|
38
|
-
`;exports.ActionButton=
|
|
38
|
+
`;exports.ActionButton=s;exports.MessageContent=a;exports.MessageRow=r;
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
-
export declare const MessageRow:
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export declare const MessageRow: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
2
|
+
state: string;
|
|
3
|
+
size: string;
|
|
4
|
+
}>> & string;
|
|
5
|
+
export declare const MessageContent: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
6
|
+
size?: string;
|
|
7
|
+
action?: unknown;
|
|
8
|
+
}>> & string;
|
|
9
|
+
export declare const ActionButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
|
|
@@ -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 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),r=require("./styles.cjs"),i=require("../../Button/UtilityButton.cjs"),s=({action:{onClick:t,label:e}})=>n.jsx(i,{onClick:t,style:{boxShadow:"0px 1px 2px 0px #00000026",width:"100%"},children:e}),c=({actions:t})=>t?n.jsx(r.ActionsContainer,{children:t.map((e,o)=>n.jsx(s,{action:e},o))}):null;exports.RowActions=c;
|
|
@@ -1,32 +1,17 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
const d = ({ action: { onClick: r, label: t } }) => /* @__PURE__ */ o(
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { ActionsContainer as i } from "./styles.js";
|
|
3
|
+
import p from "../../Button/UtilityButton.js";
|
|
4
|
+
const e = ({ action: { onClick: t, label: o } }) => /* @__PURE__ */ r(
|
|
6
5
|
p,
|
|
7
6
|
{
|
|
8
|
-
onClick:
|
|
7
|
+
onClick: t,
|
|
9
8
|
style: {
|
|
10
|
-
cursor: "pointer",
|
|
11
|
-
display: "100%",
|
|
12
|
-
alignItems: "center",
|
|
13
|
-
background: "#fff",
|
|
14
|
-
borderRadius: 4,
|
|
15
|
-
padding: 8,
|
|
16
9
|
boxShadow: "0px 1px 2px 0px #00000026",
|
|
17
|
-
width: "100%"
|
|
18
|
-
border: "1px solid #cbcbcb"
|
|
10
|
+
width: "100%"
|
|
19
11
|
},
|
|
20
|
-
children:
|
|
21
|
-
c,
|
|
22
|
-
{
|
|
23
|
-
variant: n.label1,
|
|
24
|
-
isFullWidth: !0,
|
|
25
|
-
children: t
|
|
26
|
-
}
|
|
27
|
-
)
|
|
12
|
+
children: o
|
|
28
13
|
}
|
|
29
|
-
),
|
|
14
|
+
), l = ({ actions: t }) => t ? /* @__PURE__ */ r(i, { children: t.map((o, n) => /* @__PURE__ */ r(e, { action: o }, n)) }) : null;
|
|
30
15
|
export {
|
|
31
|
-
|
|
16
|
+
l as RowActions
|
|
32
17
|
};
|
|
@@ -1,27 +1,7 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
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;
|
|
5
5
|
width: 100%;
|
|
6
6
|
padding: 0px 26px;
|
|
7
|
-
|
|
8
|
-
cursor: pointer;
|
|
9
|
-
display: flex;
|
|
10
|
-
align-items: center;
|
|
11
|
-
text-align: center;
|
|
12
|
-
background: #fff;
|
|
13
|
-
border: 1px solid #cbcbcb !important;
|
|
14
|
-
border-radius: 4px;
|
|
15
|
-
padding: 8px;
|
|
16
|
-
box-shadow: ${({theme:o})=>o.shadows.general[1]};
|
|
17
|
-
width: 100%;
|
|
18
|
-
border: none;
|
|
19
|
-
|
|
20
|
-
&:hover {
|
|
21
|
-
background: #fafafa;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
&:active {
|
|
25
|
-
background: #f0f0f0;
|
|
26
|
-
}
|
|
27
|
-
`;exports.ActionsContainer=e;exports.RowActionButton=n;
|
|
7
|
+
`;exports.ActionsContainer=t;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export declare const ActionsContainer:
|
|
2
|
-
export declare const RowActionButton: any;
|
|
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,32 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
const
|
|
1
|
+
import i from "styled-components";
|
|
2
|
+
const p = i.div`
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
5
5
|
gap: 16px;
|
|
6
6
|
width: 100%;
|
|
7
7
|
padding: 0px 26px;
|
|
8
|
-
`, e = o.button`
|
|
9
|
-
cursor: pointer;
|
|
10
|
-
display: flex;
|
|
11
|
-
align-items: center;
|
|
12
|
-
text-align: center;
|
|
13
|
-
background: #fff;
|
|
14
|
-
border: 1px solid #cbcbcb !important;
|
|
15
|
-
border-radius: 4px;
|
|
16
|
-
padding: 8px;
|
|
17
|
-
box-shadow: ${({ theme: n }) => n.shadows.general[1]};
|
|
18
|
-
width: 100%;
|
|
19
|
-
border: none;
|
|
20
|
-
|
|
21
|
-
&:hover {
|
|
22
|
-
background: #fafafa;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
&:active {
|
|
26
|
-
background: #f0f0f0;
|
|
27
|
-
}
|
|
28
8
|
`;
|
|
29
9
|
export {
|
|
30
|
-
|
|
31
|
-
e as RowActionButton
|
|
10
|
+
p as ActionsContainer
|
|
32
11
|
};
|
|
@@ -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;
|