@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,5 +1,15 @@
|
|
|
1
|
+
interface StyledRowLabelValueProps {
|
|
2
|
+
$isFullWidth?: boolean;
|
|
3
|
+
}
|
|
1
4
|
export declare const getGenesisRowLabelValueClass: ({ components }: {
|
|
2
5
|
components: any;
|
|
3
6
|
}, $isFullWidth?: boolean) => string;
|
|
4
|
-
export declare const RowLabelValue:
|
|
5
|
-
export declare const Skeleton:
|
|
7
|
+
export declare const RowLabelValue: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledRowLabelValueProps>> & string;
|
|
8
|
+
export declare const Skeleton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('antd').SkeletonProps, never>> & string & Omit<import('react').FC<import('antd').SkeletonProps> & {
|
|
9
|
+
Button: import('react').FC<import('antd/es/skeleton/Button').SkeletonButtonProps>;
|
|
10
|
+
Avatar: import('react').FC<import('antd/es/skeleton/Avatar').AvatarProps>;
|
|
11
|
+
Input: import('react').FC<import('antd/es/skeleton/Input').SkeletonInputProps>;
|
|
12
|
+
Image: import('react').FC<import('antd/es/skeleton/Image').SkeletonImageProps>;
|
|
13
|
+
Node: import('react').FC<import('antd/es/skeleton/Node').SkeletonNodeProps>;
|
|
14
|
+
}, keyof import('react').Component<any, {}, any>>;
|
|
15
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import n from "styled-components";
|
|
2
2
|
import r from "../../../node_modules/antd/es/skeleton/Skeleton.js";
|
|
3
3
|
const a = (e) => `${e.row["ver-padding"]}px ${e.row["hor-padding"]}px`, o = ({ components: e }, t = !1) => `
|
|
4
4
|
display: flex;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("styled-components"),d=e=>`1px solid ${e.surface["border-light"]}`,s=({colors:e,borderRadius:o,sizing:n},t=!1,r=!1,l=null)=>`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: 100%;
|
|
5
5
|
border-bottom: ${t?d(e):"none"};
|
|
6
|
-
padding-bottom:${
|
|
7
|
-
align-items: ${
|
|
8
|
-
`,u=i.
|
|
9
|
-
${({theme:e,$hasBorder:o,$isFullWidth:
|
|
10
|
-
`;exports.Column=u;exports.getGenesisColumnClass=
|
|
6
|
+
padding-bottom:${l?"24px":"0"};
|
|
7
|
+
align-items: ${r?"flex-start !important":"center"};
|
|
8
|
+
`,u=i.div`
|
|
9
|
+
${({theme:e,$hasBorder:o,$isFullWidth:n,actions:t})=>s(e,o,n,t)}
|
|
10
|
+
`;exports.Column=u;exports.getGenesisColumnClass=s;
|
|
@@ -1,6 +1,14 @@
|
|
|
1
|
+
import { GenesisTheme } from '../../styles/theme/genesis-theme.types';
|
|
2
|
+
interface StyledColumnProps {
|
|
3
|
+
theme?: GenesisTheme;
|
|
4
|
+
$hasBorder?: boolean;
|
|
5
|
+
$isFullWidth?: boolean;
|
|
6
|
+
actions?: unknown;
|
|
7
|
+
}
|
|
1
8
|
export declare const getGenesisColumnClass: ({ colors, borderRadius, sizing }: {
|
|
2
9
|
colors: any;
|
|
3
10
|
borderRadius: any;
|
|
4
11
|
sizing: any;
|
|
5
12
|
}, $hasBorder?: boolean, $isFullWidth?: boolean, actions?: any) => string;
|
|
6
|
-
export declare const Column:
|
|
13
|
+
export declare const Column: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledColumnProps>> & string;
|
|
14
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import i from "styled-components";
|
|
2
2
|
const l = (e) => `1px solid ${e.surface["border-light"]}`, d = ({ colors: e, borderRadius: o, sizing: r }, t = !1, n = !1, s = null) => `
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("styled-components"),a=require("../../node_modules/antd/es/segmented/index.cjs"),s=({colors:e,borderRadius:r,sizing:n},t="primary",o="active")=>`
|
|
2
2
|
&.ant-segmented {
|
|
3
3
|
border-radius: ${r.BorderRadiusMd};
|
|
4
4
|
color: ${e.onsurface.copy};
|
|
@@ -17,6 +17,6 @@
|
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
`,d=i
|
|
21
|
-
${({theme:e,type:r="primary",state:
|
|
22
|
-
`;exports.SegmentedControls=d;exports.getGenesisClass=
|
|
20
|
+
`,d=i(a)`
|
|
21
|
+
${({theme:e,type:r="primary",state:n="active"})=>s(e,r,n)}
|
|
22
|
+
`;exports.SegmentedControls=d;exports.getGenesisClass=s;
|
|
@@ -1,3 +1,11 @@
|
|
|
1
1
|
import { GenesisTheme } from '../../styles/theme/genesis-theme.types';
|
|
2
|
+
interface StyledSegmentedControlsProps {
|
|
3
|
+
theme?: GenesisTheme;
|
|
4
|
+
type?: "primary" | "secondary";
|
|
5
|
+
state?: "active" | "disabled";
|
|
6
|
+
}
|
|
2
7
|
export declare const getGenesisClass: ({ colors, borderRadius, sizing }: GenesisTheme, type?: string, state?: string) => string;
|
|
3
|
-
export declare const SegmentedControls:
|
|
8
|
+
export declare const SegmentedControls: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<Omit<import('antd').SegmentedProps<unknown> & import('react').RefAttributes<HTMLDivElement>, "ref"> & {
|
|
9
|
+
ref?: import('react').Ref<HTMLDivElement>;
|
|
10
|
+
}, StyledSegmentedControlsProps>> & string & Omit<(<ValueType>(props: import('antd').SegmentedProps<ValueType> & React.RefAttributes<HTMLDivElement>) => ReturnType<import('react').ForwardRefExoticComponent<Omit<import('antd').SegmentedProps<import('rc-segmented').SegmentedValue>, "ref"> & import('react').RefAttributes<HTMLDivElement>>>) & Pick<import('react').FC<{}>, "displayName">, keyof import('react').Component<any, {}, any>>;
|
|
11
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("styled-components"),d=require("../../node_modules/antd/es/select/index.cjs"),c=a.div`
|
|
2
2
|
position: relative;
|
|
3
3
|
border: 2px solid transparent;
|
|
4
4
|
background-color: transparent;
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
|
-
`,m=a.
|
|
85
|
+
`,m=a.div`
|
|
86
86
|
.ant-select-item-option {
|
|
87
87
|
transition: ${({theme:e,type:o})=>l(e)};
|
|
88
88
|
border-radius: 0px;
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
|
-
`,b=a.
|
|
108
|
+
`,b=a.div`
|
|
109
109
|
.ant-select-dropdown {
|
|
110
110
|
animation-duration: ${({theme:e})=>`${e.motion.veryfast}s`} !important;
|
|
111
111
|
transition: all ${({theme:e})=>`${e.motion.veryfast}s`}
|
|
@@ -124,6 +124,6 @@
|
|
|
124
124
|
&.ant-slide-up-leave {
|
|
125
125
|
animation-duration: ${({theme:e})=>`${e.motion.veryfast}s`} !important;
|
|
126
126
|
}
|
|
127
|
-
`,$=a
|
|
127
|
+
`,$=a(d)`
|
|
128
128
|
${({theme:e,type:o="primary",state:t="active",$variant:r="none"})=>u(e,o,t,r)}
|
|
129
129
|
`;exports.Select=$;exports.SelectDropdown=b;exports.SelectWrapper=c;exports.StyledMenuItem=m;
|
|
@@ -1,13 +1,30 @@
|
|
|
1
1
|
import { Select as AntSelect, SelectProps } from 'antd';
|
|
2
2
|
import { BaseSelectRef } from 'rc-select';
|
|
3
3
|
import { StyledComponent } from '../../utils/styled';
|
|
4
|
-
import { GenesisTheme } from '../../styles/theme/genesis-theme.types';
|
|
4
|
+
import { GenesisTheme, Breakpoint } from '../../styles/theme/genesis-theme.types';
|
|
5
|
+
import { TYPE } from '../../constants';
|
|
5
6
|
interface StyledSelectProps extends SelectProps {
|
|
6
7
|
theme?: GenesisTheme;
|
|
7
8
|
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
interface SelectWrapperProps {
|
|
10
|
+
theme?: GenesisTheme;
|
|
11
|
+
$isFocused: boolean;
|
|
12
|
+
type: keyof typeof TYPE;
|
|
13
|
+
variant?: "simple" | "none";
|
|
14
|
+
}
|
|
15
|
+
export declare const SelectWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, SelectWrapperProps>> & string;
|
|
16
|
+
interface SelectMenuItemProps {
|
|
17
|
+
theme: GenesisTheme;
|
|
18
|
+
type?: keyof typeof TYPE;
|
|
19
|
+
state?: keyof Breakpoint;
|
|
20
|
+
}
|
|
21
|
+
export declare const StyledMenuItem: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, SelectMenuItemProps>> & string;
|
|
22
|
+
interface SelectDropdownProps {
|
|
23
|
+
theme: GenesisTheme;
|
|
24
|
+
type?: keyof typeof TYPE;
|
|
25
|
+
state?: keyof Breakpoint;
|
|
26
|
+
}
|
|
27
|
+
export declare const SelectDropdown: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, SelectDropdownProps>> & string;
|
|
11
28
|
type StyledSelectComponent = StyledComponent<typeof AntSelect, any, StyledSelectProps & {
|
|
12
29
|
ref?: React.Ref<BaseSelectRef>;
|
|
13
30
|
}, never>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("styled-components"),t=require("../../node_modules/antd/es/switch/index.cjs"),n=({colors:e,borderRadius:c})=>`
|
|
2
2
|
&.ant-switch {
|
|
3
3
|
background-color: ${e.primary.active};
|
|
4
4
|
border-radius: ${c==null?void 0:c.BorderRadiusMd};
|
|
@@ -53,6 +53,6 @@
|
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
`,s=t
|
|
56
|
+
`,s=u(t)`
|
|
57
57
|
${({theme:e})=>n(e)}
|
|
58
58
|
`;exports.Switch=s;exports.default=s;
|
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import { GenesisTheme } from '../../styles/theme/genesis-theme.types';
|
|
2
|
+
interface StyledSwitchProps extends React.HTMLAttributes<HTMLButtonElement> {
|
|
3
|
+
theme?: GenesisTheme;
|
|
4
|
+
}
|
|
5
|
+
export declare const Switch: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<Omit<import('antd').SwitchProps & import('react').RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
6
|
+
ref?: import('react').Ref<HTMLButtonElement>;
|
|
7
|
+
}, StyledSwitchProps>> & string & Omit<import('react').ForwardRefExoticComponent<import('antd').SwitchProps & import('react').RefAttributes<HTMLButtonElement>>, keyof import('react').Component<any, {}, any>>;
|
|
2
8
|
export default Switch;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),j=require("../../../node_modules/react-icons/hi2/index.cjs"),c=require("../../../node_modules/react-icons/hi/index.cjs"),m=require("../../../node_modules/react-icons/fi/index.cjs"),q=require("../../../_virtual/
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),j=require("../../../node_modules/react-icons/hi2/index.cjs"),c=require("../../../node_modules/react-icons/hi/index.cjs"),m=require("../../../node_modules/react-icons/fi/index.cjs"),q=require("../../../_virtual/index6.cjs"),I=require("../../Input/Input.cjs"),d=require("../../Button/UtilityButton.cjs"),f=require("../../Typography/Typography.cjs"),k=require("../../Select/Select.cjs"),S=require("../../Button/IconButton.cjs"),b=({sortOptions:s,searchByPlaceholder:p="",searchField:x="address",isSortedAscending:n=!0,onChange:t})=>{const a=i=>{const v={event:"inputChange",payload:{value:i.target.value,field:x}};q(()=>{t==null||t(v)},200)()},r=i=>{const u={event:"primaryChange",payload:{value:i}};t==null||t(u)},l=()=>{const i={event:"filterClick",payload:{}};t==null||t(i)},o=()=>{const i={event:"settingsClick",payload:{}};t==null||t(i)},y=()=>{const i={event:"orderClick",payload:{value:n?"desc":"asc"}};t==null||t(i)};return e.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",minWidth:800},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[e.jsx(I,{size:"normal",placeholder:p,prefix:e.jsx(c.HiSearch,{}),style:{padding:"5px 8px"},onChange:a}),l&&e.jsx(d,{isIconButton:!0,icon:e.jsx(j.HiMiniAdjustmentsVertical,{}),onClick:l}),o&&e.jsx(d,{isIconButton:!0,icon:e.jsx(m.FiSettings,{}),onClick:o})]}),e.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[e.jsx(f,{variant:"body3",color:"#6C6C6C",children:"Sort by"}),s&&r?e.jsx(k,{options:s,defaultValue:s[0].value,variant:"simple",onChange:r}):null,e.jsx(S,{icon:n?e.jsx(c.HiOutlineSortDescending,{}):e.jsx(c.HiOutlineSortAscending,{}),onClick:y})]})]})};module.exports=b;
|
|
@@ -2,7 +2,7 @@ import { jsxs as r, jsx as i } from "react/jsx-runtime";
|
|
|
2
2
|
import { HiMiniAdjustmentsVertical as v } from "../../../node_modules/react-icons/hi2/index.js";
|
|
3
3
|
import { HiSearch as I, HiOutlineSortDescending as k, HiOutlineSortAscending as x } from "../../../node_modules/react-icons/hi/index.js";
|
|
4
4
|
import { FiSettings as b } from "../../../node_modules/react-icons/fi/index.js";
|
|
5
|
-
import S from "../../../_virtual/
|
|
5
|
+
import S from "../../../_virtual/index6.js";
|
|
6
6
|
import A from "../../Input/Input.js";
|
|
7
7
|
import d from "../../Button/UtilityButton.js";
|
|
8
8
|
import E from "../../Typography/Typography.js";
|
|
@@ -1,6 +1,13 @@
|
|
|
1
|
+
import { GenesisTheme } from '../../../styles/theme/genesis-theme.types';
|
|
2
|
+
interface StyledTableControlsProps {
|
|
3
|
+
theme?: GenesisTheme;
|
|
4
|
+
type?: "primary" | "secondary";
|
|
5
|
+
state?: "active" | "disabled";
|
|
6
|
+
}
|
|
1
7
|
export declare const getGenesisClass: ({ colors, borderRadius, sizing }: {
|
|
2
8
|
colors: any;
|
|
3
9
|
borderRadius: any;
|
|
4
10
|
sizing: any;
|
|
5
11
|
}, type?: string, state?: string) => string;
|
|
6
|
-
export declare const StyledTableControls:
|
|
12
|
+
export declare const StyledTableControls: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledTableControlsProps>> & string;
|
|
13
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("styled-components"),r=require("../../node_modules/antd/es/table/Table.cjs"),t=({colors:e,borderRadius:a,sizing:l})=>`
|
|
2
2
|
&.ant-table-wrapper {
|
|
3
3
|
// Add your custom styles here
|
|
4
4
|
}
|
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
font-family: 'Inter', sans-serif;
|
|
21
21
|
font-size: 14px;
|
|
22
22
|
}
|
|
23
|
-
`,o=s
|
|
23
|
+
`,o=s(r)`
|
|
24
24
|
${({theme:e})=>t(e)}
|
|
25
25
|
`;exports.Table=o;exports.getGenesisClass=t;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("styled-components"),i=require("../../node_modules/antd/es/tabs/index.cjs"),r=({colors:t,borderRadius:e,sizing:a},s="primary",b="active")=>`
|
|
2
2
|
&.ant-tabs {
|
|
3
3
|
background: #F4F4F4;
|
|
4
4
|
|
|
@@ -91,6 +91,6 @@
|
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
|
-
`,o=n
|
|
94
|
+
`,o=n(i)`
|
|
95
95
|
${({theme:t,type:e,state:a})=>r(t,e,a)}
|
|
96
96
|
`;exports.Tabs=o;exports.getGenesisClass=r;
|
|
@@ -1,3 +1,11 @@
|
|
|
1
1
|
import { GenesisTheme } from '../../styles/theme/genesis-theme.types';
|
|
2
|
+
interface StyledTabsProps {
|
|
3
|
+
theme?: GenesisTheme;
|
|
4
|
+
state: "active" | "hovered" | "focussed" | "disabled";
|
|
5
|
+
type: "card";
|
|
6
|
+
}
|
|
2
7
|
export declare const getGenesisClass: ({ colors, borderRadius, sizing }: GenesisTheme, type?: string, state?: string) => string;
|
|
3
|
-
export declare const Tabs:
|
|
8
|
+
export declare const Tabs: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('antd').TabsProps, StyledTabsProps>> & string & Omit<import('react').FC<import('antd').TabsProps> & {
|
|
9
|
+
TabPane: import('react').FC<import('antd').TabPaneProps>;
|
|
10
|
+
}, keyof import('react').Component<any, {}, any>>;
|
|
11
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("styled-components"),i=({sizing:e},s=!1)=>`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: ${s?"row":"column"};
|
|
4
4
|
padding: ${e.Size4};
|
|
5
|
-
`,l=
|
|
6
|
-
${({theme:e,$isHorizontal:s})=>
|
|
7
|
-
`;exports.Tile=l;exports.getGenesisClass=
|
|
5
|
+
`,l=t.div`
|
|
6
|
+
${({theme:e,$isHorizontal:s})=>i(e,s)}
|
|
7
|
+
`;exports.Tile=l;exports.getGenesisClass=i;
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
+
import { GenesisTheme } from '../../styles/theme/genesis-theme.types';
|
|
2
|
+
interface StyledTileProps {
|
|
3
|
+
theme?: GenesisTheme;
|
|
4
|
+
$isHorizontal?: boolean;
|
|
5
|
+
}
|
|
1
6
|
export declare const getGenesisClass: ({ sizing }: {
|
|
2
7
|
sizing: any;
|
|
3
8
|
}, $isHorizontal?: boolean) => string;
|
|
4
|
-
export declare const Tile:
|
|
9
|
+
export declare const Tile: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledTileProps>> & string;
|
|
10
|
+
export {};
|
|
@@ -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"),n=require("../../constants/index.cjs"),a=i.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
gap: ${({theme:e})=>e.sizing.Size4}px;
|
|
@@ -12,13 +12,13 @@
|
|
|
12
12
|
width: ${({theme:e,state:t,size:o})=>o==="standard"?"340px":"240px"};
|
|
13
13
|
background-color: ${({theme:e,state:t})=>e.colors.surface.default};
|
|
14
14
|
box-shadow: 0px 4px 16px 0px #00000026;
|
|
15
|
-
`,
|
|
15
|
+
`,s=i.button`
|
|
16
16
|
text-decoration: underline;
|
|
17
17
|
border: none;
|
|
18
18
|
background: none;
|
|
19
19
|
cursor: pointer;
|
|
20
20
|
pointer-events: all;
|
|
21
|
-
`,r=
|
|
21
|
+
`,r=i.div`
|
|
22
22
|
display: flex;
|
|
23
23
|
align-items: center;
|
|
24
24
|
gap: ${({theme:e})=>e.sizing.Size2}px;
|
|
@@ -33,6 +33,6 @@
|
|
|
33
33
|
text-overflow: ellipsis;
|
|
34
34
|
font-size: 16px;
|
|
35
35
|
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
36
|
-
line-height: ${({theme:e,size:t})=>t===
|
|
36
|
+
line-height: ${({theme:e,size:t})=>t===n.SIZE.standard?e.typography.lineHeight:"16px"};
|
|
37
37
|
}
|
|
38
|
-
`;exports.ToastCloseButton=
|
|
38
|
+
`;exports.ToastCloseButton=s;exports.ToastContent=r;exports.ToastRow=a;
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
-
export declare const ToastRow:
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export declare const ToastRow: 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 ToastCloseButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
|
|
6
|
+
export declare const ToastContent: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
7
|
+
state: string;
|
|
8
|
+
size: string;
|
|
9
|
+
}>> & string;
|
|
@@ -1,5 +1,5 @@
|
|
|
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"),r=require("../../node_modules/antd/es/tooltip/index.cjs"),i=({colors:e,borderRadius:t,sizing:s},l="primary",a="active")=>`
|
|
2
2
|
|
|
3
|
-
`,n=o
|
|
3
|
+
`,n=o(r)`
|
|
4
4
|
${({theme:e,type:t,state:s})=>i(e,t,s)}
|
|
5
5
|
`;exports.Tooltip=n;exports.getGenesisClass=i;
|
|
@@ -1,6 +1,19 @@
|
|
|
1
|
+
import { GenesisTheme } from '../../styles/theme/genesis-theme.types';
|
|
2
|
+
interface StyledTooltipProps {
|
|
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 Tooltip:
|
|
12
|
+
export declare const Tooltip: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<(Omit<import('antd/es/tooltip').TooltipPropsWithTitle & import('react').RefAttributes<import('antd/es/tooltip').TooltipRef>, "ref"> & {
|
|
13
|
+
ref?: import('react').Ref<import('antd/es/tooltip').TooltipRef>;
|
|
14
|
+
}) | (Omit<import('antd/es/tooltip').TooltipPropsWithOverlay & import('react').RefAttributes<import('antd/es/tooltip').TooltipRef>, "ref"> & {
|
|
15
|
+
ref?: import('react').Ref<import('antd/es/tooltip').TooltipRef>;
|
|
16
|
+
}), StyledTooltipProps>> & string & Omit<import('react').ForwardRefExoticComponent<import('antd').TooltipProps & import('react').RefAttributes<import('antd/es/tooltip').TooltipRef>> & {
|
|
17
|
+
_InternalPanelDoNotUseOrYouWillBeFired: import('react').FC<import('antd/es/tooltip/PurePanel').PurePanelProps>;
|
|
18
|
+
}, keyof import('react').Component<any, {}, any>>;
|
|
19
|
+
export {};
|
|
@@ -1,17 +1,17 @@
|
|
|
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"),l=require("../../node_modules/antd/es/typography/index.cjs"),g=(t,e,n)=>`
|
|
2
2
|
font-size: ${t[n][e].fontSize}px !important;
|
|
3
3
|
line-height: ${t[n][e].lineHeight};
|
|
4
4
|
letter-spacing: ${t[n][e].letterSpacing}px;
|
|
5
5
|
font-weight: ${t[n][e].fontWeight};
|
|
6
|
-
`,
|
|
6
|
+
`,d=(t,e,n)=>t||e[n].active.color,$=t=>`
|
|
7
7
|
${t.includes("digits")?"'Roboto Mono', sans-serif":"'Inter', sans-serif"} !important;
|
|
8
|
-
`,c=({colors:t,typography:e},n,r,
|
|
8
|
+
`,c=({colors:t,typography:e},n,r,s,o,i,u)=>`
|
|
9
9
|
&.ant-typography {
|
|
10
10
|
font-family: ${$(r)};
|
|
11
|
-
color: ${
|
|
12
|
-
${
|
|
11
|
+
color: ${d(i,t,n)} !important;
|
|
12
|
+
${g(e,r,o)}
|
|
13
13
|
margin-bottom: 0 !important;
|
|
14
|
-
width: ${
|
|
14
|
+
width: ${u?"100%":"auto"};
|
|
15
15
|
line-height: 1;
|
|
16
16
|
|
|
17
17
|
&:disabled {
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
cursor: not-allowed;
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
-
`,f=l.
|
|
24
|
-
${({theme:t,$themeType:e,variant:n,state:r,breakpoint:
|
|
25
|
-
`,h=l.
|
|
26
|
-
${({theme:t,$themeType:e,variant:n,state:r,breakpoint:
|
|
27
|
-
`,m=l.
|
|
28
|
-
${({theme:t,$themeType:e,variant:n,state:r,breakpoint:
|
|
23
|
+
`,f=a(l.Title)`
|
|
24
|
+
${({theme:t,$themeType:e,variant:n,state:r,breakpoint:s,color:o,$isFullWidth:i})=>c(t,e,n,r,s,o,i)}
|
|
25
|
+
`,h=a(l.Paragraph)`
|
|
26
|
+
${({theme:t,$themeType:e,variant:n,state:r,breakpoint:s,color:o,$isFullWidth:i})=>c(t,e,n,r,s,o,i)}
|
|
27
|
+
`,m=a(l.Text)`
|
|
28
|
+
${({theme:t,$themeType:e,variant:n,state:r,breakpoint:s,color:o,$isFullWidth:i})=>c(t,e,n,r,s,o,i)}
|
|
29
29
|
`;exports.Headline=f;exports.Paragraph=h;exports.Text=m;
|
|
@@ -1,3 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { GenesisTheme } from '../../styles/theme/genesis-theme.types';
|
|
2
|
+
import { TYPE, STATE } from '../../constants';
|
|
3
|
+
interface TypographyStyledProps {
|
|
4
|
+
theme: GenesisTheme;
|
|
5
|
+
$themeType?: keyof typeof TYPE;
|
|
6
|
+
variant?: string;
|
|
7
|
+
state?: keyof typeof STATE;
|
|
8
|
+
breakpoint?: string;
|
|
9
|
+
color?: string;
|
|
10
|
+
$isFullWidth?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare const Headline: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<Omit<import('antd/es/typography/Title').TitleProps & import('react').RefAttributes<HTMLElement>, "ref"> & {
|
|
13
|
+
ref?: import('react').Ref<HTMLElement>;
|
|
14
|
+
}, TypographyStyledProps>> & string & Omit<import('react').ForwardRefExoticComponent<import('antd/es/typography/Title').TitleProps & import('react').RefAttributes<HTMLElement>>, keyof import('react').Component<any, {}, any>>;
|
|
15
|
+
export declare const Paragraph: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<Omit<import('antd/es/typography/Paragraph').ParagraphProps & import('react').RefAttributes<HTMLElement>, "ref"> & {
|
|
16
|
+
ref?: import('react').Ref<HTMLElement>;
|
|
17
|
+
}, TypographyStyledProps>> & string & Omit<import('react').ForwardRefExoticComponent<import('antd/es/typography/Paragraph').ParagraphProps & import('react').RefAttributes<HTMLElement>>, keyof import('react').Component<any, {}, any>>;
|
|
18
|
+
export declare const Text: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<Omit<import('antd/es/typography/Text').TextProps & import('react').RefAttributes<HTMLSpanElement>, "ref"> & {
|
|
19
|
+
ref?: import('react').Ref<HTMLSpanElement>;
|
|
20
|
+
}, TypographyStyledProps>> & string & Omit<import('react').ForwardRefExoticComponent<import('antd/es/typography/Text').TextProps & import('react').RefAttributes<HTMLSpanElement>>, keyof import('react').Component<any, {}, any>>;
|
|
21
|
+
export {};
|
package/dist/genesis/styles.d.ts
CHANGED
|
@@ -1,2 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { DefaultTheme } from 'styled-components';
|
|
2
|
+
interface StyledProps {
|
|
3
|
+
theme: DefaultTheme;
|
|
4
|
+
}
|
|
5
|
+
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"> & {
|
|
6
|
+
ref?: import('react').Ref<HTMLDivElement>;
|
|
7
|
+
}, StyledProps>> & string & Omit<import('antd/es/card').CardInterface, keyof import('react').Component<any, {}, any>>;
|
|
8
|
+
export declare const Headline: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<Omit<import('antd/es/typography/Title').TitleProps & import('react').RefAttributes<HTMLElement>, "ref"> & {
|
|
9
|
+
ref?: import('react').Ref<HTMLElement>;
|
|
10
|
+
}, StyledProps>> & string & Omit<import('react').ForwardRefExoticComponent<import('antd/es/typography/Title').TitleProps & import('react').RefAttributes<HTMLElement>>, keyof import('react').Component<any, {}, any>>;
|
|
11
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const v=require("react"),m=require("../../../../../_virtual/
|
|
1
|
+
"use strict";const v=require("react"),m=require("../../../../../_virtual/index5.cjs"),x=require("../../../../rc-util/es/hooks/useEvent.cjs"),C=require("../../_util/toList.cjs");function _(o){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const e in o)if(e!=="default"){const c=Object.getOwnPropertyDescriptor(o,e);Object.defineProperty(t,e,c.get?c:{enumerable:!0,get:()=>o[e]})}}return t.default=o,Object.freeze(t)}const d=_(v);var h=function(o,t,e,c){function s(u){return u instanceof e?u:new e(function(r){r(u)})}return new(e||(e=Promise))(function(u,r){function f(i){try{a(c.next(i))}catch(n){r(n)}}function l(i){try{a(c.throw(i))}catch(n){r(n)}}function a(i){i.done?u(i.value):s(i.value).then(f,l)}a((c=c.apply(o,t||[])).next())})};const w=o=>{let{copyConfig:t,children:e}=o;const[c,s]=d.useState(!1),[u,r]=d.useState(!1),f=d.useRef(null),l=()=>{f.current&&clearTimeout(f.current)},a={};t.format&&(a.format=t.format),d.useEffect(()=>l,[]);const i=x(n=>h(void 0,void 0,void 0,function*(){var p;n==null||n.preventDefault(),n==null||n.stopPropagation(),r(!0);try{const y=typeof t.text=="function"?yield t.text():t.text;m(y||C(e,!0).join("")||"",a),r(!1),s(!0),l(),f.current=setTimeout(()=>{s(!1)},3e3),(p=t.onCopy)===null||p===void 0||p.call(t,n)}catch(y){throw r(!1),y}}));return{copied:c,copyLoading:u,onClick:i}};module.exports=w;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const GlobalStyles:
|
|
1
|
+
export declare const GlobalStyles: import('react').NamedExoticComponent<import('styled-components').ExecutionProps & object>;
|
package/dist/utils/styled.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("styled-components"),t=e.createGlobalStyle,l=e.ThemeProvider,r=e.useTheme;exports.default=e;exports.ThemeProvider=l;exports.createGlobalStyle=t;exports.useTheme=r;
|
package/dist/utils/styled.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const ThemeProvider:
|
|
4
|
-
export declare const useTheme:
|
|
5
|
-
export declare const css:
|
|
6
|
-
export declare const createGlobalStyle: (() => any) | typeof styledComponents.createGlobalStyle;
|
|
1
|
+
import { default as styled, createGlobalStyle as styledCreateGlobalStyle, ThemeProvider as styledThemeProvider, useTheme as styledUseTheme, css as styledCss } from 'styled-components';
|
|
2
|
+
export declare const createGlobalStyle: typeof styledCreateGlobalStyle;
|
|
3
|
+
export declare const ThemeProvider: typeof styledThemeProvider;
|
|
4
|
+
export declare const useTheme: typeof styledUseTheme;
|
|
5
|
+
export declare const css: typeof styledCss;
|
|
7
6
|
export default styled;
|