@gobolt/genesis 0.0.7
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 +86 -0
- package/dist/AntdIcon-Bsnbyy6g.js +200 -0
- package/dist/CheckOutlined-DAynWe12.js +527 -0
- package/dist/CloseCircleFilled-ZIY-u-27.js +13 -0
- package/dist/Compact-CJBo3f0u.js +185 -0
- package/dist/ContextIsolator-CGkdKtc3.js +20 -0
- package/dist/ExclamationCircleFilled-BICVVQIg.js +21 -0
- package/dist/Form-Cylpi4M4.js +1815 -0
- package/dist/Overflow-CP1M4Z0s.js +369 -0
- package/dist/SearchOutlined-DuzJkIiQ.js +52 -0
- package/dist/TextArea-3MOYYuAQ.js +1680 -0
- package/dist/bundle.css +1 -0
- package/dist/button-BNV2qdrP.js +1392 -0
- package/dist/compact-item-DH13cl8A.js +61 -0
- package/dist/components/atoms/button/Button.d.ts +12 -0
- package/dist/components/atoms/button/Button.js +27 -0
- package/dist/components/atoms/button/__stories__/Button.stories.d.ts +13 -0
- package/dist/components/atoms/button/index.d.ts +2 -0
- package/dist/components/atoms/button/index.js +4 -0
- package/dist/components/atoms/button/styles.d.ts +12 -0
- package/dist/components/atoms/button/styles.js +71 -0
- package/dist/components/atoms/checkbox/Checkbox.d.ts +10 -0
- package/dist/components/atoms/checkbox/Checkbox.js +13 -0
- package/dist/components/atoms/checkbox/__stories__/Checkbox.stories.d.ts +8 -0
- package/dist/components/atoms/checkbox/__tests__/Checkbox.test.d.ts +1 -0
- package/dist/components/atoms/checkbox/__tests__/Checkbox.test.js +18 -0
- package/dist/components/atoms/checkbox/index.d.ts +2 -0
- package/dist/components/atoms/checkbox/index.js +4 -0
- package/dist/components/atoms/checkbox/styles.d.ts +11 -0
- package/dist/components/atoms/checkbox/styles.js +582 -0
- package/dist/components/atoms/index.d.ts +1 -0
- package/dist/components/atoms/index.js +3 -0
- package/dist/components/atoms/input/Input.d.ts +11 -0
- package/dist/components/atoms/input/Input.js +12 -0
- package/dist/components/atoms/input/__stories__/Input.stories.d.ts +10 -0
- package/dist/components/atoms/input/__tests__/Input.test.d.ts +1 -0
- package/dist/components/atoms/input/__tests__/Input.test.js +28 -0
- package/dist/components/atoms/input/index.d.ts +2 -0
- package/dist/components/atoms/input/index.js +4 -0
- package/dist/components/atoms/input/styles.d.ts +14 -0
- package/dist/components/atoms/input/styles.js +415 -0
- package/dist/components/atoms/select/Select.d.ts +11 -0
- package/dist/components/atoms/select/Select.js +24 -0
- package/dist/components/atoms/select/__stories__/Select.stories.d.ts +8 -0
- package/dist/components/atoms/select/__tests__/Select.test.d.ts +1 -0
- package/dist/components/atoms/select/__tests__/Select.test.js +10735 -0
- package/dist/components/atoms/select/index.d.ts +2 -0
- package/dist/components/atoms/select/index.js +4 -0
- package/dist/components/atoms/select/styles.d.ts +15 -0
- package/dist/components/atoms/select/styles.js +3868 -0
- package/dist/components/atoms/typography/Typography.d.ts +11 -0
- package/dist/components/atoms/typography/Typography.js +44 -0
- package/dist/components/atoms/typography/__stories__/Typography.stories.d.ts +12 -0
- package/dist/components/atoms/typography/__tests__/Typography.test.d.ts +1 -0
- package/dist/components/atoms/typography/__tests__/Typography.test.js +16 -0
- package/dist/components/atoms/typography/index.d.ts +2 -0
- package/dist/components/atoms/typography/index.js +4 -0
- package/dist/components/atoms/typography/styles.d.ts +11 -0
- package/dist/components/atoms/typography/styles.js +28 -0
- package/dist/components/index.d.js +1 -0
- package/dist/components/index.d.ts +14 -0
- package/dist/components/index.js +16 -0
- package/dist/components/molecules/error-boundary-fallback/ErrorBoundaryFallback.d.ts +10 -0
- package/dist/components/molecules/error-boundary-fallback/ErrorBoundaryFallback.js +35 -0
- package/dist/components/molecules/error-boundary-fallback/__stories__/ErrorBoundaryFallback.stories.d.ts +8 -0
- package/dist/components/molecules/error-boundary-fallback/index.d.ts +1 -0
- package/dist/components/molecules/error-boundary-fallback/index.js +4 -0
- package/dist/components/molecules/error-boundary-fallback/styles.d.ts +1 -0
- package/dist/components/molecules/error-boundary-fallback/styles.js +930 -0
- package/dist/components/molecules/form/Form.d.ts +15 -0
- package/dist/components/molecules/form/Form.js +7 -0
- package/dist/components/molecules/form/__stories__/Form.stories.d.ts +7 -0
- package/dist/components/molecules/form/__stories__/FormStory.d.ts +1 -0
- package/dist/components/molecules/form/__stories__/FormStory.js +90 -0
- package/dist/components/molecules/form/index.d.ts +2 -0
- package/dist/components/molecules/form/index.js +4 -0
- package/dist/constants/index.d.ts +51 -0
- package/dist/constants/index.js +54 -0
- package/dist/context-CZsFJmh6.js +2093 -0
- package/dist/declaration.d.js +1 -0
- package/dist/genesis/GenesisThemeBreakdown.d.ts +4 -0
- package/dist/genesis/GenesisThemeBreakdown.js +56 -0
- package/dist/genesis/GenesisThemeDemo.d.ts +8 -0
- package/dist/genesis/GenesisThemeDemo.js +8 -0
- package/dist/genesis/GenesisThemeDemo.stories.d.ts +7 -0
- package/dist/genesis/styles.d.ts +12 -0
- package/dist/genesis/styles.js +4038 -0
- package/dist/index-3MWkSVA1.js +96 -0
- package/dist/index-BPtFqhcp.js +19110 -0
- package/dist/index-BQO27mgE.js +402 -0
- package/dist/index-BWys7dkb.js +4462 -0
- package/dist/index-C7kFNqp2.js +276 -0
- package/dist/index-D1v_7IIx.js +1057 -0
- package/dist/index-SAAXFt-P.js +946 -0
- package/dist/index-VDH3iLaC.js +884 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +20 -0
- package/dist/isVisible-CNQjrJPN.js +366 -0
- package/dist/magic-string.es-BkUFmFT4.js +858 -0
- package/dist/presetColors-Cl8UP3Nw.js +4 -0
- package/dist/providers/GenesisProvider.d.ts +8 -0
- package/dist/providers/GenesisProvider.js +7 -0
- package/dist/providers/ThemeProvider.d.ts +9 -0
- package/dist/providers/ThemeProvider.js +18 -0
- package/dist/providers/index.d.ts +2 -0
- package/dist/providers/index.js +6 -0
- package/dist/reactNode-sKPeiqPL.js +12 -0
- package/dist/setup-CMYVZCPF.js +33883 -0
- package/dist/styled-components.browser.esm-CZ1XM4o4.js +1144 -0
- package/dist/styles/design-tokens/border-tokens/BorderTokenList.d.ts +1 -0
- package/dist/styles/design-tokens/border-tokens/BorderTokenList.js +37 -0
- package/dist/styles/design-tokens/border-tokens/BorderTokens.stories.d.ts +6 -0
- package/dist/styles/design-tokens/color-tokens/ColorTokens.stories.d.ts +7 -0
- package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.d.ts +3 -0
- package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.js +36 -0
- package/dist/styles/design-tokens/sizing-tokens/index.stories.d.ts +7 -0
- package/dist/styles/design-tokens/typography/TypographyTokens.stories.d.ts +7 -0
- package/dist/styles/design-tokens/variables.d.ts +704 -0
- package/dist/styles/design-tokens/variables.js +697 -0
- package/dist/styles/global-styles.d.ts +1 -0
- package/dist/styles/global-styles.js +35 -0
- package/dist/styles/theme/genesis-theme.d.ts +75 -0
- package/dist/styles/theme/genesis-theme.js +896 -0
- package/dist/styles/theme/genesis-theme.types.d.ts +162 -0
- package/dist/styles/theme/genesis-theme.types.js +4 -0
- package/dist/styles/theme/global-styles.d.ts +1 -0
- package/dist/styles/theme/global-styles.js +35 -0
- package/dist/styles/theme/index.d.ts +1 -0
- package/dist/styles/theme/index.js +9 -0
- package/dist/test/setup.d.ts +5 -0
- package/dist/test/setup.js +7 -0
- package/dist/useVariants-CEpw6Ww6.js +29 -0
- package/dist/utils/getAppointmentColor.d.ts +4 -0
- package/dist/utils/getAppointmentColor.js +91 -0
- package/dist/utils/isAllEnglishString.d.ts +1 -0
- package/dist/utils/isAllEnglishString.js +8 -0
- package/dist/utils/isAllEnglishString.test.d.ts +1 -0
- package/dist/utils/isAllEnglishString.test.js +8 -0
- package/dist/utils/parseAddress.d.ts +3 -0
- package/dist/utils/parseAddress.js +19 -0
- package/dist/vite-env.d.js +1 -0
- package/package.json +115 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { TYPE, TYPOGRAPHY_VARIANT } from '../../../constants';
|
|
3
|
+
|
|
4
|
+
export interface TypographyProps {
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
variant?: keyof typeof TYPOGRAPHY_VARIANT;
|
|
7
|
+
type?: keyof typeof TYPE;
|
|
8
|
+
state?: STATE.active | STATE.disabled;
|
|
9
|
+
}
|
|
10
|
+
declare const Typography: React.FC<TypographyProps>;
|
|
11
|
+
export default Typography;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
2
|
+
import { Text as c, Headline as m } from "./styles.js";
|
|
3
|
+
import { useBreakpoint as u } from "../../../providers/ThemeProvider.js";
|
|
4
|
+
import { BREAKPOINTS as T, TYPE as t, TYPOGRAPHY_VARIANT as f, STATE as l } from "../../../constants/index.js";
|
|
5
|
+
const a = ({
|
|
6
|
+
children: o,
|
|
7
|
+
type: r = t.primary,
|
|
8
|
+
variant: e = f.body1,
|
|
9
|
+
state: s = l.active,
|
|
10
|
+
...d
|
|
11
|
+
}) => {
|
|
12
|
+
const i = u() ?? T.wide;
|
|
13
|
+
switch (e) {
|
|
14
|
+
case e.includes("display"):
|
|
15
|
+
case e.includes("heading"):
|
|
16
|
+
return /* @__PURE__ */ p(
|
|
17
|
+
m,
|
|
18
|
+
{
|
|
19
|
+
state: s,
|
|
20
|
+
type: r,
|
|
21
|
+
variant: e,
|
|
22
|
+
breakpoint: i,
|
|
23
|
+
...d,
|
|
24
|
+
children: o
|
|
25
|
+
}
|
|
26
|
+
);
|
|
27
|
+
case e.includes("body"):
|
|
28
|
+
default:
|
|
29
|
+
return /* @__PURE__ */ p(
|
|
30
|
+
c,
|
|
31
|
+
{
|
|
32
|
+
state: s,
|
|
33
|
+
type: r,
|
|
34
|
+
variant: e,
|
|
35
|
+
breakpoint: i,
|
|
36
|
+
...d,
|
|
37
|
+
children: o
|
|
38
|
+
}
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
export {
|
|
43
|
+
a as default
|
|
44
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { default as Typography } from '../Typography';
|
|
3
|
+
|
|
4
|
+
declare const meta: Meta<typeof Typography>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<typeof Typography>;
|
|
7
|
+
export declare const Default: Story;
|
|
8
|
+
export declare const Display: Story;
|
|
9
|
+
export declare const Heading: Story;
|
|
10
|
+
export declare const Body: Story;
|
|
11
|
+
export declare const Message: Story;
|
|
12
|
+
export declare const Digits: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { d as r, i, c, a, g as p, s as m } from "../../../../setup-CMYVZCPF.js";
|
|
3
|
+
import y from "../Typography.js";
|
|
4
|
+
import { TYPE as n, TYPOGRAPHY_VARIANT as d } from "../../../../constants/index.js";
|
|
5
|
+
r("Typography", () => {
|
|
6
|
+
i("renders type and variant correctly", () => {
|
|
7
|
+
const t = Object.keys(n), s = Object.keys(d);
|
|
8
|
+
t.forEach((f) => {
|
|
9
|
+
s.forEach((e) => {
|
|
10
|
+
c(), a(
|
|
11
|
+
/* @__PURE__ */ o(y, { type: e, variant: e, children: "Logistics, Simplified." })
|
|
12
|
+
), p(m.getByText("Logistics, Simplified.")).toBeInTheDocument();
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
});
|
|
16
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TitleProps as AntTypographyProps } from 'antd/es/typography/Title';
|
|
2
|
+
|
|
3
|
+
interface TypographyStyledProps extends AntTypographyProps {
|
|
4
|
+
}
|
|
5
|
+
export declare const Headline: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<Omit<AntTypographyProps & import('react').RefAttributes<HTMLElement>, "ref"> & {
|
|
6
|
+
ref?: import('react').Ref<HTMLElement>;
|
|
7
|
+
}, TypographyStyledProps>> & string & Omit<import('react').ForwardRefExoticComponent<AntTypographyProps & import('react').RefAttributes<HTMLElement>>, keyof import('react').Component<any, {}, any>>;
|
|
8
|
+
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"> & {
|
|
9
|
+
ref?: import('react').Ref<HTMLSpanElement>;
|
|
10
|
+
}, TypographyStyledProps>> & string & Omit<import('react').ForwardRefExoticComponent<import('antd/es/typography/Text').TextProps & import('react').RefAttributes<HTMLSpanElement>>, keyof import('react').Component<any, {}, any>>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { d as r } from "../../../styled-components.browser.esm-CZ1XM4o4.js";
|
|
2
|
+
import { T as f } from "../../../index-D1v_7IIx.js";
|
|
3
|
+
const c = (e, n, t) => {
|
|
4
|
+
var s, i;
|
|
5
|
+
return `
|
|
6
|
+
font-size: ${((i = (s = e[t]) == null ? void 0 : s[n]) == null ? void 0 : i.fontSize) ?? 16}px;
|
|
7
|
+
line-height: ${e[t][n].lineHeight}px;
|
|
8
|
+
letter-spacing: ${e[t][n].letterSpacing}px;
|
|
9
|
+
font-weight: ${e[t][n].fontWeight};
|
|
10
|
+
`;
|
|
11
|
+
}, g = ({ colors: e, sizing: n, typography: t }, s, i, l, $) => {
|
|
12
|
+
var o;
|
|
13
|
+
return `
|
|
14
|
+
&.ant-typography {
|
|
15
|
+
font-family: 'Inter', sans-serif;
|
|
16
|
+
color: ${((o = e[s]) == null ? void 0 : o[l]) ?? "#000"};
|
|
17
|
+
${c(t, i, $)}
|
|
18
|
+
}
|
|
19
|
+
`;
|
|
20
|
+
}, h = r(f.Title)`
|
|
21
|
+
${({ theme: e, type: n, variant: t, state: s, breakpoint: i }) => g(e, n, t, s, i)}
|
|
22
|
+
`, m = r(f.Text)`
|
|
23
|
+
${({ theme: e, type: n, variant: t, state: s, breakpoint: i }) => g(e, n, t, s, i)}
|
|
24
|
+
`;
|
|
25
|
+
export {
|
|
26
|
+
h as Headline,
|
|
27
|
+
m as Text
|
|
28
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export { default as Button } from './atoms/button';
|
|
2
|
+
export type { ButtonProps } from './atoms/button';
|
|
3
|
+
export { default as Input } from './atoms/input';
|
|
4
|
+
export type { InputProps } from './atoms/input';
|
|
5
|
+
export { default as Select } from './atoms/select';
|
|
6
|
+
export type { SelectProps } from './atoms/select';
|
|
7
|
+
export { default as Checkbox } from './atoms/checkbox';
|
|
8
|
+
export type { CheckboxProps } from './atoms/checkbox';
|
|
9
|
+
export { default as Typography } from './atoms/typography';
|
|
10
|
+
export type { TypographyProps } from './atoms/typography';
|
|
11
|
+
export { default as Form } from './molecules/form';
|
|
12
|
+
export type { FormProps } from './molecules/form';
|
|
13
|
+
export { default as ErrorBoundaryFallback } from './molecules/error-boundary-fallback';
|
|
14
|
+
export type { ErrorBoundaryFallbackProps } from './molecules/error-boundary-fallback';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { default as a } from "./atoms/button/Button.js";
|
|
2
|
+
import { default as e } from "./atoms/input/Input.js";
|
|
3
|
+
import { default as p } from "./atoms/select/Select.js";
|
|
4
|
+
import { default as u } from "./atoms/checkbox/Checkbox.js";
|
|
5
|
+
import { default as x } from "./atoms/typography/Typography.js";
|
|
6
|
+
import { F as s } from "../Form-Cylpi4M4.js";
|
|
7
|
+
import { default as n } from "./molecules/error-boundary-fallback/ErrorBoundaryFallback.js";
|
|
8
|
+
export {
|
|
9
|
+
a as Button,
|
|
10
|
+
u as Checkbox,
|
|
11
|
+
n as ErrorBoundaryFallback,
|
|
12
|
+
s as Form,
|
|
13
|
+
e as Input,
|
|
14
|
+
p as Select,
|
|
15
|
+
x as Typography
|
|
16
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
interface FallbackProps {
|
|
4
|
+
error?: Error | null;
|
|
5
|
+
componentStack?: string | null;
|
|
6
|
+
eventId: string | null;
|
|
7
|
+
resetError: () => void;
|
|
8
|
+
}
|
|
9
|
+
declare const ErrorBoundaryFallback: React.FC<FallbackProps>;
|
|
10
|
+
export default ErrorBoundaryFallback;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { jsx as r, jsxs as o } from "react/jsx-runtime";
|
|
2
|
+
import { StyledErrorBoundaryFallback as s } from "./styles.js";
|
|
3
|
+
import t from "../../atoms/button/Button.js";
|
|
4
|
+
import "../../atoms/input/styles.js";
|
|
5
|
+
import "../../../providers/ThemeProvider.js";
|
|
6
|
+
import { TYPE as a } from "../../../constants/index.js";
|
|
7
|
+
import "../../atoms/select/styles.js";
|
|
8
|
+
import "../../atoms/checkbox/styles.js";
|
|
9
|
+
import i from "../../atoms/typography/Typography.js";
|
|
10
|
+
import { S as c } from "../../../index-3MWkSVA1.js";
|
|
11
|
+
const g = (e) => {
|
|
12
|
+
const n = () => window.location.href = "/";
|
|
13
|
+
return /* @__PURE__ */ r(
|
|
14
|
+
s,
|
|
15
|
+
{
|
|
16
|
+
status: "500",
|
|
17
|
+
title: "Sorry, It looks like we're having some internal issues.",
|
|
18
|
+
subTitle: /* @__PURE__ */ o(c, { direction: "vertical", children: [
|
|
19
|
+
/* @__PURE__ */ r(i, { type: "secondary", strong: !0, children: "Our team has been notified. If this issue persist contact customer service." }),
|
|
20
|
+
/* @__PURE__ */ o(i, { type: "secondary", children: [
|
|
21
|
+
"(reference: ",
|
|
22
|
+
e.eventId,
|
|
23
|
+
")"
|
|
24
|
+
] })
|
|
25
|
+
] }),
|
|
26
|
+
extra: [
|
|
27
|
+
/* @__PURE__ */ r(t, { type: a.secondary, onClick: e.resetError, children: "Try again" }, "reset"),
|
|
28
|
+
/* @__PURE__ */ r(t, { onClick: n, children: "Take me home" }, "back-home")
|
|
29
|
+
]
|
|
30
|
+
}
|
|
31
|
+
);
|
|
32
|
+
};
|
|
33
|
+
export {
|
|
34
|
+
g as default
|
|
35
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { default as ErrorBoundaryFallback } from '../ErrorBoundaryFallback';
|
|
3
|
+
|
|
4
|
+
declare const meta: Meta<typeof ErrorBoundaryFallback>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<typeof ErrorBoundaryFallback>;
|
|
7
|
+
export declare const Default: Story;
|
|
8
|
+
export declare const WithError: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './ErrorBoundaryFallback';
|
|
@@ -0,0 +1 @@
|
|
|
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>>;
|