@gobolt/genesis 0.2.4 → 0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -1
- package/dist/_virtual/index5.cjs +1 -1
- package/dist/_virtual/index5.js +4 -4
- package/dist/_virtual/index6.cjs +1 -1
- package/dist/_virtual/index6.js +4 -4
- package/dist/components/Avatar/styles.cjs +1 -1
- package/dist/components/Avatar/styles.d.ts +12 -1
- package/dist/components/Avatar/styles.js +1 -1
- package/dist/components/Badge/styles.cjs +3 -3
- package/dist/components/Badge/styles.d.ts +8 -1
- package/dist/components/Badge/styles.js +1 -1
- package/dist/components/Breadcrumb/styles.cjs +10 -10
- package/dist/components/Breadcrumb/styles.d.ts +23 -2
- package/dist/components/Breadcrumb/styles.js +1 -1
- package/dist/components/Button/icon-button-styles.cjs +2 -2
- package/dist/components/Button/icon-button-styles.d.ts +12 -1
- package/dist/components/Button/icon-button-styles.js +1 -1
- package/dist/components/Button/styles.cjs +2 -2
- package/dist/components/Button/styles.d.ts +16 -1
- package/dist/components/Button/styles.js +1 -1
- package/dist/components/Card/styles.cjs +4 -4
- package/dist/components/Card/styles.d.ts +10 -1
- package/dist/components/Card/styles.js +1 -1
- package/dist/components/Checkbox/styles.cjs +2 -2
- package/dist/components/Checkbox/styles.d.ts +6 -1
- package/dist/components/Checkbox/styles.js +1 -1
- package/dist/components/Dashboard/styles.d.ts +8 -1
- package/dist/components/ErrorBoundary/styles.d.ts +8 -1
- package/dist/components/ErrorBoundaryFallback/styles.cjs +1 -1
- package/dist/components/ErrorBoundaryFallback/styles.d.ts +1 -1
- package/dist/components/ErrorBoundaryFallback/styles.js +1 -1
- package/dist/components/Form/styles.cjs +1 -1
- package/dist/components/Form/styles.js +1 -1
- package/dist/components/Glyph/styles.d.ts +8 -1
- package/dist/components/Input/styles.cjs +2 -2
- package/dist/components/Input/styles.d.ts +15 -1
- package/dist/components/Input/styles.js +1 -1
- package/dist/components/Layout/Content/styles.cjs +2 -2
- package/dist/components/Layout/Content/styles.d.ts +7 -1
- package/dist/components/Layout/Content/styles.js +1 -1
- package/dist/components/Layout/MainLayout/styles.d.ts +4 -4
- package/dist/components/Message/styles.cjs +4 -4
- package/dist/components/Message/styles.d.ts +9 -3
- package/dist/components/Message/styles.js +1 -1
- package/dist/components/Notification/NotificationBadge/styles.cjs +3 -3
- package/dist/components/Notification/NotificationBadge/styles.d.ts +3 -3
- package/dist/components/Notification/NotificationBadge/styles.js +1 -1
- package/dist/components/Notification/styles.cjs +7 -7
- package/dist/components/Notification/styles.d.ts +16 -5
- package/dist/components/Notification/styles.js +1 -1
- package/dist/components/Popover/styles.cjs +1 -1
- package/dist/components/Popover/styles.d.ts +13 -1
- package/dist/components/Popover/styles.js +1 -1
- package/dist/components/Progress/styles.cjs +1 -1
- package/dist/components/Progress/styles.d.ts +13 -1
- package/dist/components/Progress/styles.js +1 -1
- package/dist/components/Radio/Radio.cjs +2 -2
- package/dist/components/Radio/Radio.d.ts +4 -1
- package/dist/components/Radio/Radio.js +1 -1
- package/dist/components/Row/RowActions/styles.cjs +1 -1
- package/dist/components/Row/RowActions/styles.d.ts +1 -1
- package/dist/components/Row/RowActions/styles.js +1 -1
- package/dist/components/Row/RowLabelValue/styles.cjs +3 -3
- package/dist/components/Row/RowLabelValue/styles.d.ts +12 -2
- package/dist/components/Row/RowLabelValue/styles.js +1 -1
- package/dist/components/Row/styles.cjs +6 -6
- package/dist/components/Row/styles.d.ts +9 -1
- package/dist/components/Row/styles.js +1 -1
- package/dist/components/SegmentedControls/styles.cjs +4 -4
- package/dist/components/SegmentedControls/styles.d.ts +9 -1
- package/dist/components/SegmentedControls/styles.js +1 -1
- package/dist/components/Select/styles.cjs +4 -4
- package/dist/components/Select/styles.d.ts +21 -4
- package/dist/components/Select/styles.js +1 -1
- package/dist/components/Switch/styles.cjs +2 -2
- package/dist/components/Switch/styles.d.ts +7 -1
- package/dist/components/Switch/styles.js +1 -1
- package/dist/components/Table/TableControls/PrimaryTableControlsRow.cjs +1 -1
- package/dist/components/Table/TableControls/PrimaryTableControlsRow.js +1 -1
- package/dist/components/Table/TableControls/styles.d.ts +8 -1
- package/dist/components/Table/styles.cjs +2 -2
- package/dist/components/Table/styles.js +1 -1
- package/dist/components/Tabs/styles.cjs +2 -2
- package/dist/components/Tabs/styles.d.ts +9 -1
- package/dist/components/Tabs/styles.js +1 -1
- package/dist/components/Tile/styles.cjs +4 -4
- package/dist/components/Tile/styles.d.ts +7 -1
- package/dist/components/Tile/styles.js +1 -1
- package/dist/components/Toast/styles.cjs +5 -5
- package/dist/components/Toast/styles.d.ts +9 -3
- package/dist/components/Toast/styles.js +1 -1
- package/dist/components/Tooltip/styles.cjs +2 -2
- package/dist/components/Tooltip/styles.d.ts +14 -1
- package/dist/components/Tooltip/styles.js +1 -1
- package/dist/components/Typography/styles.cjs +12 -12
- package/dist/components/Typography/styles.d.ts +21 -3
- package/dist/components/Typography/styles.js +1 -1
- package/dist/genesis/styles.d.ts +11 -2
- package/dist/node_modules/antd/es/typography/hooks/useCopyClick.cjs +1 -1
- package/dist/node_modules/antd/es/typography/hooks/useCopyClick.js +1 -1
- package/dist/styles/global-styles.d.ts +1 -1
- package/dist/utils/styled.cjs +1 -1
- package/dist/utils/styled.d.ts +5 -6
- package/dist/utils/styled.js +6 -20
- package/package.json +1 -6
- package/dist/components/Button/Button.native.d.ts +0 -12
- package/dist/components/Button/__stories__/Button.native.stories.d.ts +0 -8
- package/dist/components/Button/styles.native.d.ts +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
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;
|
package/dist/utils/styled.js
CHANGED
|
@@ -1,23 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
if (o)
|
|
5
|
-
try {
|
|
6
|
-
e = require("styled-components/native");
|
|
7
|
-
} catch {
|
|
8
|
-
console.warn(
|
|
9
|
-
"Failed to load styled-components/native, falling back to web"
|
|
10
|
-
), e = t;
|
|
11
|
-
}
|
|
12
|
-
else
|
|
13
|
-
e = t;
|
|
14
|
-
const l = e.default, s = e.ThemeProvider, n = e.useTheme;
|
|
15
|
-
e.css;
|
|
16
|
-
const r = o ? () => null : t.createGlobalStyle;
|
|
1
|
+
import { useTheme as e, ThemeProvider as o, createGlobalStyle as r } from "styled-components";
|
|
2
|
+
import { default as T } from "styled-components";
|
|
3
|
+
const a = r, s = o, m = e;
|
|
17
4
|
export {
|
|
18
5
|
s as ThemeProvider,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
n as useTheme
|
|
6
|
+
a as createGlobalStyle,
|
|
7
|
+
T as default,
|
|
8
|
+
m as useTheme
|
|
23
9
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gobolt/genesis",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.5",
|
|
4
4
|
"description": "genesis design system",
|
|
5
5
|
"author": "gobolt",
|
|
6
6
|
"license": "MIT",
|
|
@@ -70,15 +70,11 @@
|
|
|
70
70
|
"peerDependencies": {
|
|
71
71
|
"react": "^18.0.0",
|
|
72
72
|
"react-dom": "^18.0.0",
|
|
73
|
-
"react-native": ">=0.70.0",
|
|
74
73
|
"styled-components": "^6.0.0"
|
|
75
74
|
},
|
|
76
75
|
"peerDependenciesMeta": {
|
|
77
76
|
"react-dom": {
|
|
78
77
|
"optional": true
|
|
79
|
-
},
|
|
80
|
-
"react-native": {
|
|
81
|
-
"optional": true
|
|
82
78
|
}
|
|
83
79
|
},
|
|
84
80
|
"devDependencies": {
|
|
@@ -152,7 +148,6 @@
|
|
|
152
148
|
"debounce": "^2.2.0",
|
|
153
149
|
"react-error-boundary": "^4.0.11",
|
|
154
150
|
"react-icons": "^5.5.0",
|
|
155
|
-
"react-native-web": "^0.19.13",
|
|
156
151
|
"react-router-dom": "^7.2.0",
|
|
157
152
|
"react-toastify": "^11.0.3",
|
|
158
153
|
"recharts": "^2.15.1",
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
export interface ButtonProps {
|
|
3
|
-
children: React.ReactNode;
|
|
4
|
-
type?: "primary" | "secondary" | "tertiary" | "utility" | "icon";
|
|
5
|
-
size?: "small" | "normal" | "large";
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
loading?: boolean;
|
|
8
|
-
onClick?: () => void;
|
|
9
|
-
isIconButton?: boolean;
|
|
10
|
-
}
|
|
11
|
-
declare const Button: React.FC<ButtonProps>;
|
|
12
|
-
export default Button;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { default as Button } from '../Button.native';
|
|
2
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
3
|
-
declare const ButtonMeta: Meta<typeof Button>;
|
|
4
|
-
export default ButtonMeta;
|
|
5
|
-
type ButtonStory = StoryObj<typeof Button>;
|
|
6
|
-
export declare const Default: ButtonStory;
|
|
7
|
-
export declare const Primary: ButtonStory;
|
|
8
|
-
export declare const Secondary: ButtonStory;
|