@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
package/README.md
CHANGED
|
@@ -17,7 +17,6 @@ It unifies frontend app development around these core libraries:
|
|
|
17
17
|
- [Typescript](https://www.typescriptlang.org/) v5
|
|
18
18
|
- [React](https://react.dev/) v18
|
|
19
19
|
|
|
20
|
-
This library is intended to be universally imported into both React & React-Native apps.
|
|
21
20
|
|
|
22
21
|
## 📦 Development
|
|
23
22
|
|
package/dist/_virtual/index5.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const r=require("./_commonjsHelpers.cjs"),e=require("../node_modules/copy-to-clipboard/index.cjs");var o=e.__require();const s=r.getDefaultExportFromCjs(o);module.exports=s;
|
package/dist/_virtual/index5.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { getDefaultExportFromCjs as
|
|
2
|
-
import { __require as r } from "../node_modules/
|
|
3
|
-
var
|
|
4
|
-
const a = /* @__PURE__ */
|
|
1
|
+
import { getDefaultExportFromCjs as o } from "./_commonjsHelpers.js";
|
|
2
|
+
import { __require as r } from "../node_modules/copy-to-clipboard/index.js";
|
|
3
|
+
var p = r();
|
|
4
|
+
const a = /* @__PURE__ */ o(p);
|
|
5
5
|
export {
|
|
6
6
|
a as default
|
|
7
7
|
};
|
package/dist/_virtual/index6.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const e=require("./_commonjsHelpers.cjs"),r=require("../node_modules/debounce/index.cjs");var o=r.__require();const s=e.getDefaultExportFromCjs(o);module.exports=s;
|
package/dist/_virtual/index6.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { getDefaultExportFromCjs as
|
|
2
|
-
import { __require as r } from "../node_modules/
|
|
3
|
-
var
|
|
4
|
-
const a = /* @__PURE__ */ o
|
|
1
|
+
import { getDefaultExportFromCjs as e } from "./_commonjsHelpers.js";
|
|
2
|
+
import { __require as r } from "../node_modules/debounce/index.js";
|
|
3
|
+
var o = /* @__PURE__ */ r();
|
|
4
|
+
const a = /* @__PURE__ */ e(o);
|
|
5
5
|
export {
|
|
6
6
|
a as default
|
|
7
7
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
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/avatar/index.cjs"),r=({colors:e,borderRadius:t,sizing:s},o="primary",c="active")=>"",n=i(a)`
|
|
2
2
|
${({theme:e,type:t,state:s})=>r(e,t,s)}
|
|
3
3
|
`;exports.Avatar=n;exports.getGenesisClass=r;
|
|
@@ -1,6 +1,17 @@
|
|
|
1
|
+
import { GenesisTheme } from '../../styles/theme/genesis-theme.types';
|
|
2
|
+
interface StyledAvatarProps {
|
|
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 Avatar:
|
|
12
|
+
export declare const Avatar: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<Omit<import('antd').AvatarProps & import('react').RefAttributes<HTMLSpanElement>, "ref"> & {
|
|
13
|
+
ref?: import('react').Ref<HTMLSpanElement>;
|
|
14
|
+
}, StyledAvatarProps>> & string & Omit<import('react').ForwardRefExoticComponent<import('antd').AvatarProps & import('react').RefAttributes<HTMLSpanElement>> & {
|
|
15
|
+
Group: import('react').FC<import('antd/es/avatar/AvatarGroup').AvatarGroupProps>;
|
|
16
|
+
}, keyof import('react').Component<any, {}, any>>;
|
|
17
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from "styled-components";
|
|
2
2
|
import o from "../../node_modules/antd/es/avatar/index.js";
|
|
3
3
|
const a = ({ colors: r, borderRadius: t, sizing: s }, i = "primary", m = "active") => "", c = e(o)`
|
|
4
4
|
${({ theme: r, type: t, state: s }) => a(r, t, s)}
|
|
@@ -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 a=require("styled-components"),e=(o,r)=>r==="hollow"?o.colors.inputs.surface.border:o.colors.status[r].surface,n=(o,r,d,s)=>`
|
|
2
2
|
display: flex;
|
|
3
3
|
gap: 4px;
|
|
4
4
|
justify-content: center;
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
padding-left: ${o.components.badge["left-padding"]}px;
|
|
10
10
|
padding-right: ${o.components.badge["right-padding"]}px;
|
|
11
11
|
border-radius: ${o.components.badge.radius}px;
|
|
12
|
-
border: 1px solid ${
|
|
12
|
+
border: 1px solid ${e(o,r)};
|
|
13
13
|
background-color: ${o.colors.status[r].surface};
|
|
14
14
|
|
|
15
15
|
&:not(:disabled):hover {
|
|
@@ -26,6 +26,6 @@
|
|
|
26
26
|
cursor: not-allowed;
|
|
27
27
|
}
|
|
28
28
|
`:""}
|
|
29
|
-
`,t=
|
|
29
|
+
`,t=a.div`
|
|
30
30
|
${({theme:o,state:r,label:d,disabled:s})=>n(o,r,d,s)}
|
|
31
31
|
`;exports.Badge=t;exports.getGenesisClass=n;
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import { GenesisTheme } from '../../styles/theme/genesis-theme.types';
|
|
2
2
|
import { State } from './Badge';
|
|
3
|
+
interface StyledBadgeProps {
|
|
4
|
+
theme?: GenesisTheme;
|
|
5
|
+
state?: State;
|
|
6
|
+
label?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
}
|
|
3
9
|
export declare const getGenesisClass: (theme: GenesisTheme, state: State, label?: string, disabled?: boolean) => string;
|
|
4
|
-
export declare const Badge:
|
|
10
|
+
export declare const Badge: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledBadgeProps>> & string;
|
|
11
|
+
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("styled-components"),i=require("../../node_modules/antd/es/breadcrumb/Breadcrumb.cjs"),a=({colors:n,typography:e},o="wide")=>`
|
|
2
2
|
&.ant-breadcrumb {
|
|
3
|
-
font-size: ${
|
|
3
|
+
font-size: ${e[o].body1.fontSize};
|
|
4
4
|
|
|
5
5
|
.ant-breadcrumb-link,
|
|
6
6
|
span[class*="ant-breadcrumb-link"] > a {
|
|
7
|
-
color: ${
|
|
7
|
+
color: ${n.interactive.link.active};
|
|
8
8
|
transition: color 0.2s ease-in-out;
|
|
9
9
|
text-decoration: underline;
|
|
10
10
|
background: none !important;
|
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
span[class*="ant-breadcrumb-link"] > span,
|
|
17
17
|
span[class*="ant-breadcrumb-link"] > a {
|
|
18
18
|
text-decoration: none !important;
|
|
19
|
-
color: ${
|
|
19
|
+
color: ${n.onsurface["copy-light"]} !important;
|
|
20
20
|
cursor: default !important;
|
|
21
21
|
pointer-events: none;
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
.ant-breadcrumb-separator {
|
|
26
|
-
color: ${
|
|
26
|
+
color: ${n.interactive.link.active};
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
.ant-dropdown-menu-item,
|
|
@@ -43,15 +43,15 @@
|
|
|
43
43
|
background: none !important;
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
`,s=r.
|
|
47
|
-
${({$isDisabled:
|
|
46
|
+
`,s=r.div`
|
|
47
|
+
${({$isDisabled:n})=>n&&`
|
|
48
48
|
cursor: not-allowed;
|
|
49
49
|
.ant-breadcrumb {
|
|
50
50
|
pointer-events: none;
|
|
51
51
|
opacity: 0.5;
|
|
52
52
|
}
|
|
53
53
|
`}
|
|
54
|
-
opacity: ${({$isDisabled:
|
|
55
|
-
`,t=r
|
|
56
|
-
${({theme:
|
|
54
|
+
opacity: ${({$isDisabled:n})=>n?.5:1};
|
|
55
|
+
`,t=r(i)`
|
|
56
|
+
${({theme:n,breakpoint:e})=>n&&a(n,e)}
|
|
57
57
|
`;exports.Breadcrumb=t;exports.BreadcrumbWrapper=s;exports.default=t;exports.getGenesisClass=a;
|
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
import { GenesisTheme } from '../../styles/theme/genesis-theme.types';
|
|
2
|
+
interface StyledBreadcrumbProps {
|
|
3
|
+
theme?: GenesisTheme;
|
|
4
|
+
$isDisabled?: boolean;
|
|
5
|
+
}
|
|
6
|
+
interface StyledBreadcrumbComponentProps extends StyledBreadcrumbProps {
|
|
7
|
+
type?: string;
|
|
8
|
+
state?: string;
|
|
9
|
+
breakpoint?: string;
|
|
10
|
+
role?: string;
|
|
11
|
+
}
|
|
2
12
|
export declare const getGenesisClass: ({ colors, typography }: GenesisTheme, breakpoint?: string) => string;
|
|
3
|
-
export declare const BreadcrumbWrapper:
|
|
4
|
-
export declare const Breadcrumb:
|
|
13
|
+
export declare const BreadcrumbWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledBreadcrumbProps>> & string;
|
|
14
|
+
export declare const Breadcrumb: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('antd').BreadcrumbProps<import('antd/es/_util/type').AnyObject>, StyledBreadcrumbComponentProps>> & string & Omit<{
|
|
15
|
+
<T extends import('antd/es/_util/type').AnyObject = import('antd/es/_util/type').AnyObject>(props: import('antd').BreadcrumbProps<T>): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
16
|
+
Item: React.FC<import('antd').BreadcrumbItemProps> & {
|
|
17
|
+
__ANT_BREADCRUMB_ITEM: boolean;
|
|
18
|
+
};
|
|
19
|
+
Separator: React.FC<{
|
|
20
|
+
children?: React.ReactNode | undefined;
|
|
21
|
+
}> & {
|
|
22
|
+
__ANT_BREADCRUMB_SEPARATOR: boolean;
|
|
23
|
+
};
|
|
24
|
+
displayName: string;
|
|
25
|
+
}, keyof import('react').Component<any, {}, any>>;
|
|
5
26
|
export default Breadcrumb;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("styled-components"),e=(o,d)=>o==="small"?`${d.Size1}px ${d.Size1}px`:`${d.Size2}px ${d.Size2}px`,b=({colors:o,sizing:d,borderRadius:n,components:t},r,a,i,l)=>`
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
justify-content: center;
|
|
@@ -56,6 +56,6 @@
|
|
|
56
56
|
`,c=(o,d,n,t,r)=>`
|
|
57
57
|
font-family: 'Inter', sans-serif;
|
|
58
58
|
${b(o,d,n,t,r)}
|
|
59
|
-
`,s=u.
|
|
59
|
+
`,s=u.button`
|
|
60
60
|
${({theme:o,$themeType:d,$state:n,size:t,$isSelected:r})=>c(o,d,n,t,r)}
|
|
61
61
|
`;exports.Button=s;
|
|
@@ -1 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
import { GenesisTheme } from '../../styles/theme/genesis-theme.types';
|
|
2
|
+
interface StyledIconButtonProps {
|
|
3
|
+
theme?: GenesisTheme;
|
|
4
|
+
$themeType?: "primary" | "secondary" | "tertiary" | "utility" | "icon";
|
|
5
|
+
$state?: "active" | "hover" | "pressed" | "focus" | "disabled" | "selected";
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
$isIconButton?: boolean;
|
|
8
|
+
$isSelected?: boolean;
|
|
9
|
+
size?: "small" | "normal" | "large";
|
|
10
|
+
}
|
|
11
|
+
export declare const Button: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, StyledIconButtonProps>> & string;
|
|
12
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import u from "styled-components";
|
|
2
2
|
const b = (o, d) => o === "small" ? `${d.Size1}px ${d.Size1}px` : `${d.Size2}px ${d.Size2}px`, c = ({ colors: o, sizing: d, borderRadius: n, components: a }, r, i, t, l) => `
|
|
3
3
|
display: flex;
|
|
4
4
|
align-items: center;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("styled-components"),e=require("../../node_modules/antd/es/button/button.cjs"),i=(r,l,d,n)=>n&&(r==="normal"||r==="large")?`${d.Size2}px ${d.Size2}px`:n&&r==="small"?`${d.Size1}px ${d.Size1}px`:l==="utility"&&r==="small"?`${d.Size1_5}px ${d.Size2}px`:l==="utility"&&(r==="normal"||r==="large")?`${d.Size2_5}px ${d.Size3}px`:r==="small"?`${d.Size1_5}px ${d.Size4}px`:r==="normal"||r==="large"?`${d.Size2_5}px ${d.Size6}px`:`${d.Size2}px ${d.Size2}px`,c=r=>r==="normal"||r==="large"?"40px":r==="small"?"32px":"40px",x=({colors:r,sizing:l,borderRadius:d,components:n},o,a,t,u)=>(r[o][a].backgroundColor,`
|
|
2
2
|
&.ant-btn {
|
|
3
3
|
|
|
4
4
|
color: ${r[o][a].color};
|
|
@@ -61,6 +61,6 @@
|
|
|
61
61
|
|
|
62
62
|
${x(r,l,d,o,n)}
|
|
63
63
|
}
|
|
64
|
-
`,p=b
|
|
64
|
+
`,p=b(e)`
|
|
65
65
|
${({theme:r,$themeType:l,$state:d,children:n,$isIconButton:o,size:a})=>f(r,l,d,o,a)}
|
|
66
66
|
`;exports.Button=p;
|
|
@@ -1 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
import { ButtonProps as AntButtonProps } from 'antd/es/button';
|
|
2
|
+
import { GenesisTheme } from '../../styles/theme/genesis-theme.types';
|
|
3
|
+
interface StyledButtonProps extends Omit<AntButtonProps, "type" | "size"> {
|
|
4
|
+
theme?: GenesisTheme;
|
|
5
|
+
$themeType?: "primary" | "secondary" | "tertiary" | "utility" | "icon";
|
|
6
|
+
$state?: "active" | "hover" | "pressed" | "focus" | "disabled" | "selected";
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
$isIconButton?: boolean;
|
|
9
|
+
size?: "small" | "normal" | "large";
|
|
10
|
+
}
|
|
11
|
+
export declare const Button: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<Omit<AntButtonProps & import('react').RefAttributes<HTMLAnchorElement | HTMLButtonElement>, "ref"> & {
|
|
12
|
+
ref?: import('react').Ref<HTMLAnchorElement | HTMLButtonElement>;
|
|
13
|
+
}, StyledButtonProps>> & string & Omit<import('react').ForwardRefExoticComponent<AntButtonProps & import('react').RefAttributes<HTMLAnchorElement | HTMLButtonElement>> & {
|
|
14
|
+
Group: import('react').FC<import('antd/es/button').ButtonGroupProps>;
|
|
15
|
+
}, keyof import('react').Component<any, {}, any>>;
|
|
16
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import b from "styled-components";
|
|
2
2
|
import x from "../../node_modules/antd/es/button/button.js";
|
|
3
3
|
const i = (r, l, d, a) => a && (r === "normal" || r === "large") ? `${d.Size2}px ${d.Size2}px` : a && r === "small" ? `${d.Size1}px ${d.Size1}px` : l === "utility" && r === "small" ? `${d.Size1_5}px ${d.Size2}px` : l === "utility" && (r === "normal" || r === "large") ? `${d.Size2_5}px ${d.Size3}px` : r === "small" ? `${d.Size1_5}px ${d.Size4}px` : r === "normal" || r === "large" ? `${d.Size2_5}px ${d.Size6}px` : `${d.Size2}px ${d.Size2}px`, c = (r) => r === "normal" || r === "large" ? "40px" : r === "small" ? "32px" : "40px", e = ({ colors: r, sizing: l, borderRadius: d, components: a }, o, n, t, u) => (r[o][n].backgroundColor, `
|
|
4
4
|
&.ant-btn {
|
|
@@ -1,6 +1,6 @@
|
|
|
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/card/index.cjs"),t=({colors:e,borderRadius:s,sizing:r},o="primary",c="active")=>`
|
|
2
2
|
.class-name-here {
|
|
3
3
|
}
|
|
4
|
-
`,n=i
|
|
5
|
-
${({theme:e,type:s,state:
|
|
6
|
-
`;exports.Card=n;exports.getGenesisClass=
|
|
4
|
+
`,n=i(a)`
|
|
5
|
+
${({theme:e,type:s,state:r})=>t(e,s,r)}
|
|
6
|
+
`;exports.Card=n;exports.getGenesisClass=t;
|
|
@@ -1,6 +1,15 @@
|
|
|
1
|
+
import { GenesisTheme } from '../../styles/theme/genesis-theme.types';
|
|
2
|
+
interface StyledCardProps {
|
|
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 Card:
|
|
12
|
+
export declare const Card: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<Omit<import('antd').CardProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & {
|
|
13
|
+
ref?: import('react').Ref<HTMLDivElement>;
|
|
14
|
+
}, StyledCardProps>> & string & Omit<import('antd/es/card').CardInterface, keyof import('react').Component<any, {}, any>>;
|
|
15
|
+
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"),b=require("../../node_modules/antd/es/checkbox/index.cjs"),r=({colors:e,borderRadius:c},o="primary",n="active")=>`
|
|
2
2
|
.ant-checkbox-inner {
|
|
3
3
|
background-color: #FFFFFF;
|
|
4
4
|
border-color: #9A9A9A;
|
|
@@ -137,6 +137,6 @@
|
|
|
137
137
|
border-color: #9A9A9A;
|
|
138
138
|
transition: box-shadow 0.2s ease-in-out;
|
|
139
139
|
}
|
|
140
|
-
`,t=a
|
|
140
|
+
`,t=a(b)`
|
|
141
141
|
${({theme:e,type:c,state:o})=>r(e,c,o)}
|
|
142
142
|
`;exports.StyledCheckbox=t;exports.getGenesisClass=r;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CheckboxProps } from './Checkbox';
|
|
1
2
|
import { GenesisTheme } from '../../styles/theme/genesis-theme.types';
|
|
2
3
|
declare module "styled-components" {
|
|
3
4
|
interface DefaultTheme extends GenesisTheme {
|
|
@@ -7,4 +8,8 @@ export declare const getGenesisClass: ({ colors, borderRadius }: {
|
|
|
7
8
|
colors: any;
|
|
8
9
|
borderRadius: any;
|
|
9
10
|
}, type?: string, state?: string) => string;
|
|
10
|
-
export declare const StyledCheckbox:
|
|
11
|
+
export declare const StyledCheckbox: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<Omit<import('antd').CheckboxProps & import('react').RefAttributes<import('rc-checkbox').CheckboxRef>, "ref"> & {
|
|
12
|
+
ref?: import('react').Ref<import('rc-checkbox').CheckboxRef>;
|
|
13
|
+
}, CheckboxProps>> & string & Omit<import('react').ForwardRefExoticComponent<import('antd').CheckboxProps & import('react').RefAttributes<import('rc-checkbox').CheckboxRef>> & {
|
|
14
|
+
Group: <T = any>(props: import('antd/es/checkbox').CheckboxGroupProps<T> & React.RefAttributes<HTMLDivElement>) => React.ReactElement;
|
|
15
|
+
}, keyof import('react').Component<any, {}, any>>;
|
|
@@ -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;
|