@gobolt/genesis 0.2.4 → 0.2.6
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/Button.d.ts +2 -1
- package/dist/components/Button/__stories__/Button.stories.d.ts +1 -0
- 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 +12 -12
- package/dist/components/Button/styles.d.ts +16 -1
- package/dist/components/Button/styles.js +9 -9
- package/dist/components/Card/__stories__/Card.stories.d.ts +2 -0
- 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/Input.cjs +1 -1
- package/dist/components/Input/Input.js +20 -14
- 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 +20 -6
- package/dist/components/Notification/NotificationBadge/styles.d.ts +3 -3
- package/dist/components/Notification/NotificationBadge/styles.js +17 -3
- 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 +21 -7
- package/dist/components/SegmentedControls/styles.d.ts +10 -2
- package/dist/components/SegmentedControls/styles.js +24 -10
- package/dist/components/Select/Select.cjs +2 -2
- package/dist/components/Select/Select.js +16 -15
- package/dist/components/Select/styles.cjs +18 -5
- package/dist/components/Select/styles.d.ts +21 -4
- package/dist/components/Select/styles.js +14 -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/components/shared/DropdownChevron.cjs +1 -0
- package/dist/components/shared/DropdownChevron.js +27 -0
- package/dist/constants/index.cjs +1 -1
- package/dist/constants/index.d.ts +2 -0
- package/dist/constants/index.js +13 -12
- package/dist/genesis/styles.d.ts +11 -2
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +57 -50
- 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/node_modules/react-icons/pi/index.cjs +1 -0
- package/dist/node_modules/react-icons/pi/index.js +12 -0
- package/dist/node_modules/react-icons/tb/index.cjs +1 -1
- package/dist/node_modules/react-icons/tb/index.js +4 -8
- package/dist/styles/global-styles.d.ts +1 -1
- package/dist/styles/theme/genesis-theme.cjs +1 -1
- package/dist/styles/theme/genesis-theme.js +292 -223
- package/dist/styles/theme/genesis-theme.types.d.ts +1 -0
- package/dist/styles/theme/index.d.ts +1 -0
- package/dist/utils/icon-util.cjs +1 -1
- package/dist/utils/icon-util.js +24 -24
- 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/dist/components/Select/DropdownChevron.cjs +0 -1
- package/dist/components/Select/DropdownChevron.js +0 -23
- /package/dist/components/{Select → shared}/DropdownChevron.d.ts +0 -0
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,7 +1,7 @@
|
|
|
1
1
|
import { default as React, MouseEvent } from 'react';
|
|
2
2
|
import { ButtonProps as AntButtonProps } from 'antd/es/button';
|
|
3
3
|
import { STATE } from '../../constants';
|
|
4
|
-
type ButtonThemeType = "primary" | "secondary" | "tertiary" | "utility" | "icon";
|
|
4
|
+
type ButtonThemeType = "primary" | "secondary" | "tertiary" | "destructive" | "utility" | "icon";
|
|
5
5
|
export interface ButtonProps extends Omit<AntButtonProps, "type" | "size"> {
|
|
6
6
|
onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
7
7
|
children?: React.ReactNode;
|
|
@@ -10,6 +10,7 @@ export interface ButtonProps extends Omit<AntButtonProps, "type" | "size"> {
|
|
|
10
10
|
isIconButton?: boolean;
|
|
11
11
|
size?: "small" | "normal" | "large";
|
|
12
12
|
isSelected?: boolean;
|
|
13
|
+
icon?: React.ReactNode;
|
|
13
14
|
}
|
|
14
15
|
declare const Button: React.FC<ButtonProps>;
|
|
15
16
|
export default Button;
|
|
@@ -7,5 +7,6 @@ export declare const Focussed: Story;
|
|
|
7
7
|
export declare const Primary: Story;
|
|
8
8
|
export declare const Secondary: Story;
|
|
9
9
|
export declare const Tertiary: Story;
|
|
10
|
+
export declare const Destructive: Story;
|
|
10
11
|
export declare const LeftIcon: Story;
|
|
11
12
|
export declare const RightIcon: Story;
|
|
@@ -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" | "destructive" | "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,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 e=require("styled-components"),b=require("../../node_modules/antd/es/button/button.cjs"),x=(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`,i=r=>r==="normal"||r==="large"?"40px":r==="small"?"32px":"40px",c=(r,l)=>l?r==="normal"||r==="large"?"40px":r==="small"?"32px":"40px":"auto",f=({colors:r,sizing:l,borderRadius:d,components:n},o,t,a,u)=>(r[o][t].backgroundColor,`
|
|
2
2
|
&.ant-btn {
|
|
3
3
|
|
|
4
|
-
color: ${r[o][
|
|
4
|
+
color: ${r[o][t].color};
|
|
5
5
|
font-size: ${l.Size4}px;
|
|
6
6
|
line-height: ${l.Size6}px;
|
|
7
7
|
letter-spacing: 0;
|
|
@@ -9,18 +9,18 @@
|
|
|
9
9
|
border-width: 1px;
|
|
10
10
|
line-height: 1 !important;
|
|
11
11
|
|
|
12
|
-
width:
|
|
13
|
-
height: ${
|
|
12
|
+
width: ${c(a,u)}; !important;
|
|
13
|
+
height: ${i(a)}; !important;
|
|
14
14
|
|
|
15
|
-
background-color: ${r[o][
|
|
16
|
-
padding: ${
|
|
15
|
+
background-color: ${r[o][t].backgroundColor};
|
|
16
|
+
padding: ${x(a,o,l,u)};
|
|
17
17
|
|
|
18
18
|
box-shadow: ${o==="utility"?"0px 1px 2px 0px #00000026":"none"};
|
|
19
19
|
|
|
20
20
|
border-radius: ${d.BorderRadiusMd}px;
|
|
21
21
|
gap: ${n.button.gap}px;
|
|
22
22
|
border-style: solid;
|
|
23
|
-
border-color: ${r[o][
|
|
23
|
+
border-color: ${r[o][t].borderColor};
|
|
24
24
|
|
|
25
25
|
transition: all 0.2s ease-in-out;
|
|
26
26
|
|
|
@@ -55,12 +55,12 @@
|
|
|
55
55
|
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
`),
|
|
58
|
+
`),p=(r,l,d,n,o)=>`
|
|
59
59
|
&.ant-btn {
|
|
60
60
|
font-family: 'Inter', sans-serif;
|
|
61
61
|
|
|
62
|
-
${
|
|
62
|
+
${f(r,l,d,o,n)}
|
|
63
63
|
}
|
|
64
|
-
`,
|
|
65
|
-
${({theme:r,$themeType:l,$state:d,children:n,$isIconButton:o,size:
|
|
66
|
-
`;exports.Button=
|
|
64
|
+
`,g=e(b)`
|
|
65
|
+
${({theme:r,$themeType:l,$state:d,children:n,$isIconButton:o,size:t})=>p(r,l,d,o,t)}
|
|
66
|
+
`;exports.Button=g;
|
|
@@ -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" | "destructive" | "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,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
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",
|
|
1
|
+
import x from "styled-components";
|
|
2
|
+
import b from "../../node_modules/antd/es/button/button.js";
|
|
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`, e = (r) => r === "normal" || r === "large" ? "40px" : r === "small" ? "32px" : "40px", c = (r, l) => l ? r === "normal" || r === "large" ? "40px" : r === "small" ? "32px" : "40px" : "auto", f = ({ colors: r, sizing: l, borderRadius: d, components: a }, o, n, t, u) => (r[o][n].backgroundColor, `
|
|
4
4
|
&.ant-btn {
|
|
5
5
|
|
|
6
6
|
color: ${r[o][n].color};
|
|
@@ -11,8 +11,8 @@ const i = (r, l, d, a) => a && (r === "normal" || r === "large") ? `${d.Size2}px
|
|
|
11
11
|
border-width: 1px;
|
|
12
12
|
line-height: 1 !important;
|
|
13
13
|
|
|
14
|
-
width:
|
|
15
|
-
height: ${
|
|
14
|
+
width: ${c(t, u)}; !important;
|
|
15
|
+
height: ${e(t)}; !important;
|
|
16
16
|
|
|
17
17
|
background-color: ${r[o][n].backgroundColor};
|
|
18
18
|
padding: ${i(t, o, l, u)};
|
|
@@ -57,14 +57,14 @@ const i = (r, l, d, a) => a && (r === "normal" || r === "large") ? `${d.Size2}px
|
|
|
57
57
|
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
`),
|
|
60
|
+
`), p = (r, l, d, a, o) => `
|
|
61
61
|
&.ant-btn {
|
|
62
62
|
font-family: 'Inter', sans-serif;
|
|
63
63
|
|
|
64
|
-
${
|
|
64
|
+
${f(r, l, d, o, a)}
|
|
65
65
|
}
|
|
66
|
-
`, S = b
|
|
67
|
-
${({ theme: r, $themeType: l, $state: d, children: a, $isIconButton: o, size: n }) =>
|
|
66
|
+
`, S = x(b)`
|
|
67
|
+
${({ theme: r, $themeType: l, $state: d, children: a, $isIconButton: o, size: n }) => p(
|
|
68
68
|
r,
|
|
69
69
|
l,
|
|
70
70
|
d,
|
|
@@ -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 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const o=require("react/jsx-runtime"),t=require("react"),c=require("./styles.cjs"),a=require("../../constants/index.cjs"),l=require("../shared/DropdownChevron.cjs"),u=require("../../node_modules/antd/es/select/index.cjs"),f=({state:n=a.STATE.active,size:d="normal",...e})=>{const{type:x,...i}=e,r=d==="normal"?"middle":d,s=t.isValidElement(e.addonAfter)&&e.addonAfter.type===u?t.cloneElement(e.addonAfter,{suffixIcon:o.jsx(l,{})}):e.addonAfter;return o.jsx(c.Input,{size:r,state:n,disabled:n==="disabled"||e.disabled,...i,addonAfter:s})};module.exports=f;
|
|
@@ -1,22 +1,28 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import n from "react";
|
|
3
|
+
import { Input as m } from "./styles.js";
|
|
4
|
+
import { STATE as f } from "../../constants/index.js";
|
|
5
|
+
import l from "../shared/DropdownChevron.js";
|
|
6
|
+
import p from "../../node_modules/antd/es/select/index.js";
|
|
7
|
+
const x = ({
|
|
8
|
+
state: d = f.active,
|
|
9
|
+
size: t = "normal",
|
|
7
10
|
...o
|
|
8
11
|
}) => {
|
|
9
|
-
const { type:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
+
const { type: c, ...r } = o, a = t === "normal" ? "middle" : t, i = n.isValidElement(o.addonAfter) && o.addonAfter.type === p ? n.cloneElement(o.addonAfter, {
|
|
13
|
+
suffixIcon: /* @__PURE__ */ e(l, {})
|
|
14
|
+
}) : o.addonAfter;
|
|
15
|
+
return /* @__PURE__ */ e(
|
|
16
|
+
m,
|
|
12
17
|
{
|
|
13
|
-
size:
|
|
14
|
-
state:
|
|
15
|
-
disabled:
|
|
16
|
-
...
|
|
18
|
+
size: a,
|
|
19
|
+
state: d,
|
|
20
|
+
disabled: d === "disabled" || o.disabled,
|
|
21
|
+
...r,
|
|
22
|
+
addonAfter: i
|
|
17
23
|
}
|
|
18
24
|
);
|
|
19
25
|
};
|
|
20
26
|
export {
|
|
21
|
-
|
|
27
|
+
x as default
|
|
22
28
|
};
|