@gobolt/genesis 0.0.7 → 0.0.8
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 +8 -2
- package/dist/AntdIcon-c395a1c4.js +204 -0
- package/dist/CheckOutlined-52d9ac25.js +29 -0
- package/dist/{CloseCircleFilled-ZIY-u-27.js → CloseCircleFilled-ddc51e7e.js} +11 -8
- package/dist/CloseOutlined-14b8bba1.js +16 -0
- package/dist/Compact-c39ed20d.js +179 -0
- package/dist/ContextIsolator-b09b2c52.js +20 -0
- package/dist/DownOutlined-64a4732a.js +206 -0
- package/dist/EllipsisOutlined-60122660.js +1115 -0
- package/dist/{ExclamationCircleFilled-BICVVQIg.js → ExclamationCircleFilled-23ef9812.js} +22 -16
- package/dist/InfoCircleFilled-c5f90c20.js +16 -0
- package/dist/Overflow-a570fa69.js +361 -0
- package/dist/RightOutlined-83515eb4.js +16 -0
- package/dist/SearchOutlined-a9014e08.js +16 -0
- package/dist/{TextArea-3MOYYuAQ.js → TextArea-20825221.js} +597 -582
- package/dist/{button-BNV2qdrP.js → button-fa1c119c.js} +287 -280
- package/dist/collapse-345bc884.js +20 -0
- package/dist/compact-item-b8f85aa6.js +75 -0
- package/dist/components/Badge/Badge.d.ts +6 -0
- package/dist/components/Badge/Badge.js +102 -0
- package/dist/components/Badge/__stories__/Badge.stories.d.ts +13 -0
- package/dist/components/Badge/__tests__/Badge.test.js +72 -0
- package/dist/components/Badge/icons/ASN.d.ts +2 -0
- package/dist/components/Badge/icons/ASN.js +23 -0
- package/dist/components/Badge/icons/Appointment.d.ts +2 -0
- package/dist/components/Badge/icons/Appointment.js +23 -0
- package/dist/components/Badge/icons/Inventory.d.ts +2 -0
- package/dist/components/Badge/icons/Inventory.js +23 -0
- package/dist/components/Badge/icons/Parcel.d.ts +2 -0
- package/dist/components/Badge/icons/Parcel.js +23 -0
- package/dist/components/Badge/icons/Product.d.ts +2 -0
- package/dist/components/Badge/icons/Product.js +23 -0
- package/dist/components/Badge/icons/Route.d.ts +2 -0
- package/dist/components/Badge/icons/Route.js +23 -0
- package/dist/components/Badge/icons/Shipment.d.ts +2 -0
- package/dist/components/Badge/icons/Shipment.js +23 -0
- package/dist/components/Badge/icons/ShoppingCart.d.ts +2 -0
- package/dist/components/Badge/icons/ShoppingCart.js +23 -0
- package/dist/components/Badge/icons/System.d.ts +2 -0
- package/dist/components/Badge/icons/System.js +23 -0
- package/dist/components/Badge/index.d.ts +2 -0
- package/dist/components/Badge/index.js +23 -0
- package/dist/components/Badge/styles.d.ts +3 -0
- package/dist/components/Badge/styles.js +35 -0
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +8 -0
- package/dist/components/Breadcrumb/Breadcrumb.js +27 -0
- package/dist/components/Breadcrumb/Breadcrumb.types.d.ts +8 -0
- package/dist/components/Breadcrumb/Breadcrumb.types.js +1 -0
- package/dist/components/Breadcrumb/__stories__/Breadcrumb.stories.d.ts +10 -0
- package/dist/components/Breadcrumb/__tests__/Breadcrumb.test.js +70 -0
- package/dist/components/Breadcrumb/index.d.ts +3 -0
- package/dist/components/Breadcrumb/index.js +27 -0
- package/dist/components/Breadcrumb/styles.d.ts +23 -0
- package/dist/components/Breadcrumb/styles.js +2457 -0
- package/dist/components/Button/Button.js +42 -0
- package/dist/components/Button/__tests__/Button.test.js +61 -0
- package/dist/components/Button/index.js +22 -0
- package/dist/components/{atoms/button → Button}/styles.js +30 -19
- package/dist/components/{atoms/checkbox → Checkbox}/Checkbox.d.ts +2 -1
- package/dist/components/Checkbox/Checkbox.js +70 -0
- package/dist/components/Checkbox/__tests__/Checkbox.test.js +64 -0
- package/dist/components/Checkbox/index.js +49 -0
- package/dist/components/{atoms/checkbox → Checkbox}/styles.d.ts +1 -3
- package/dist/components/{atoms/checkbox → Checkbox}/styles.js +165 -157
- package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.js +72 -0
- package/dist/components/ErrorBoundaryFallback/index.js +51 -0
- package/dist/components/ErrorBoundaryFallback/styles.d.ts +3 -0
- package/dist/components/{molecules/error-boundary-fallback → ErrorBoundaryFallback}/styles.js +38 -34
- package/dist/components/{molecules/form → Form}/Form.d.ts +2 -4
- package/dist/components/Form/Form.js +49 -0
- package/dist/components/Form/__stories__/FormStory.js +130 -0
- package/dist/components/Form/index.js +48 -0
- package/dist/components/{atoms/input → Input}/Input.d.ts +1 -3
- package/dist/components/Input/Input.js +42 -0
- package/dist/components/{atoms/input → Input}/__stories__/Input.stories.d.ts +5 -1
- package/dist/components/Input/__tests__/Input.test.d.ts +1 -0
- package/dist/components/Input/__tests__/Input.test.js +69 -0
- package/dist/components/Input/index.js +31 -0
- package/dist/components/{atoms/input → Input}/styles.d.ts +2 -3
- package/dist/components/Input/styles.js +542 -0
- package/dist/components/Message/Message.d.ts +13 -0
- package/dist/components/Message/Message.js +105 -0
- package/dist/components/Message/__stories__/Message.stories.d.ts +15 -0
- package/dist/components/Message/__tests__/Message.test.d.ts +1 -0
- package/dist/components/Message/__tests__/Message.test.js +88 -0
- package/dist/components/Message/index.d.ts +2 -0
- package/dist/components/Message/index.js +50 -0
- package/dist/components/Message/styles.d.ts +5 -0
- package/dist/components/Message/styles.js +35 -0
- package/dist/components/Notification/Notification.d.ts +16 -0
- package/dist/components/Notification/Notification.js +1436 -0
- package/dist/components/Notification/__stories__/Notification.stories.d.ts +10 -0
- package/dist/components/Notification/__tests__/Notification.test.d.ts +1 -0
- package/dist/components/Notification/__tests__/Notification.test.js +76 -0
- package/dist/components/Notification/index.d.ts +2 -0
- package/dist/components/Notification/index.js +61 -0
- package/dist/components/Notification/styles.d.ts +6 -0
- package/dist/components/Notification/styles.js +49 -0
- package/dist/components/Radio/Radio.d.ts +14 -0
- package/dist/components/Radio/Radio.js +114 -0
- package/dist/components/Radio/RadioGroup.d.ts +12 -0
- package/dist/components/Radio/RadioGroup.js +86 -0
- package/dist/components/Radio/__stories__/RadioGroup.stories.d.ts +9 -0
- package/dist/components/Radio/__tests__/RadioGroup.test.d.ts +1 -0
- package/dist/components/Radio/__tests__/RadioGroup.test.js +85 -0
- package/dist/components/Radio/index.d.ts +2 -0
- package/dist/components/Radio/index.js +58 -0
- package/dist/components/Radio/states/RadioChecked.d.ts +2 -0
- package/dist/components/Radio/states/RadioChecked.js +18 -0
- package/dist/components/Radio/states/RadioCheckedDisabled.d.ts +2 -0
- package/dist/components/Radio/states/RadioCheckedDisabled.js +18 -0
- package/dist/components/Radio/states/RadioCheckedFocussed.d.ts +2 -0
- package/dist/components/Radio/states/RadioCheckedFocussed.js +30 -0
- package/dist/components/Radio/states/RadioCheckedHover.d.ts +2 -0
- package/dist/components/Radio/states/RadioCheckedHover.js +18 -0
- package/dist/components/Radio/states/RadioUnchecked.d.ts +2 -0
- package/dist/components/Radio/states/RadioUnchecked.js +15 -0
- package/dist/components/Radio/states/RadioUncheckedDisabled.d.ts +2 -0
- package/dist/components/Radio/states/RadioUncheckedDisabled.js +15 -0
- package/dist/components/Radio/states/RadioUncheckedFocussed.d.ts +2 -0
- package/dist/components/Radio/states/RadioUncheckedFocussed.js +29 -0
- package/dist/components/Radio/states/RadioUncheckedHover.d.ts +2 -0
- package/dist/components/Radio/states/RadioUncheckedHover.js +18 -0
- package/dist/components/{atoms/select → Select}/Select.d.ts +1 -1
- package/dist/components/Select/Select.js +48 -0
- package/dist/components/{atoms/select → Select}/__stories__/Select.stories.d.ts +3 -1
- package/dist/components/Select/__tests__/Select.test.d.ts +1 -0
- package/dist/components/Select/__tests__/Select.test.js +101 -0
- package/dist/components/Select/index.js +30 -0
- package/dist/components/{atoms/select → Select}/styles.d.ts +4 -1
- package/dist/components/Select/styles.js +3723 -0
- package/dist/components/Toast/Toast.d.ts +14 -0
- package/dist/components/Toast/Toast.js +48 -0
- package/dist/components/Toast/__stories__/Toast.stories.d.ts +15 -0
- package/dist/components/Toast/__tests__/Toast.test.d.ts +1 -0
- package/dist/components/Toast/__tests__/Toast.test.js +63 -0
- package/dist/components/Toast/index.d.ts +2 -0
- package/dist/components/Toast/index.js +48 -0
- package/dist/components/Toast/styles.d.ts +5 -0
- package/dist/components/Toast/styles.js +39 -0
- package/dist/components/{atoms/typography → Typography}/Typography.d.ts +2 -1
- package/dist/components/Typography/Typography.js +48 -0
- package/dist/components/Typography/__tests__/Typography.test.d.ts +1 -0
- package/dist/components/Typography/__tests__/Typography.test.js +60 -0
- package/dist/components/Typography/index.js +48 -0
- package/dist/components/Typography/styles.d.ts +7 -0
- package/dist/components/Typography/styles.js +55 -0
- package/dist/components/index.d.ts +18 -14
- package/dist/components/index.js +70 -14
- package/dist/constants/index.d.ts +104 -0
- package/dist/constants/index.js +41 -7
- package/dist/{context-CZsFJmh6.js → context-3b8a39af.js} +547 -536
- package/dist/genesis/GenesisThemeBreakdown.js +69 -22
- package/dist/genesis/GenesisThemeDemo.d.ts +0 -2
- package/dist/genesis/GenesisThemeDemo.js +53 -4
- package/dist/genesis/styles.d.ts +2 -6
- package/dist/genesis/styles.js +1144 -2210
- package/dist/index-0a886e53.js +100 -0
- package/dist/{index-SAAXFt-P.js → index-0b9ee239.js} +347 -338
- package/dist/index-1a33c134.js +1389 -0
- package/dist/index-4003d75b.js +3748 -0
- package/dist/{index-D1v_7IIx.js → index-501fc13d.js} +369 -343
- package/dist/index-89035ea5.js +3242 -0
- package/dist/{index-BQO27mgE.js → index-8c8d2d0c.js} +123 -122
- package/dist/{index-C7kFNqp2.js → index-e2b72ca8.js} +107 -102
- package/dist/index.d.ts +1 -0
- package/dist/index.js +77 -18
- package/dist/{isVisible-CNQjrJPN.js → isVisible-729780f5.js} +110 -82
- package/dist/{magic-string.es-BkUFmFT4.js → magic-string.es-b7491176.js} +103 -56
- package/dist/{SearchOutlined-DuzJkIiQ.js → pickAttrs-00ba4687.js} +16 -26
- package/dist/presets-83ccb923.js +787 -0
- package/dist/providers/GenesisProvider.d.ts +5 -0
- package/dist/providers/GenesisProvider.js +59 -5
- package/dist/providers/ThemeProvider.d.ts +2 -1
- package/dist/providers/ThemeProvider.js +16 -11
- package/dist/providers/ToastProvider.d.ts +6 -0
- package/dist/providers/ToastProvider.js +49 -0
- package/dist/providers/ToastWrapper.d.ts +7 -0
- package/dist/providers/ToastWrapper.js +56 -0
- package/dist/providers/__stories__/GenesisProvider.stories.d.ts +6 -0
- package/dist/providers/index.d.ts +3 -2
- package/dist/providers/index.js +51 -4
- package/dist/setup-aaca7b6f.js +21158 -0
- package/dist/{styled-components.browser.esm-CZ1XM4o4.js → styled-components.browser.esm-02f500bc.js} +134 -72
- package/dist/styles/design-tokens/border-tokens/BorderTokenList.js +54 -18
- package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.js +51 -15
- package/dist/styles/design-tokens/variables.d.ts +7 -7
- package/dist/styles/design-tokens/variables.js +48 -48
- package/dist/styles/global-styles.js +4 -3
- package/dist/styles/theme/genesis-theme.d.ts +3 -0
- package/dist/styles/theme/genesis-theme.js +402 -263
- package/dist/styles/theme/global-styles.js +4 -3
- package/dist/styles/theme/index.js +5 -4
- package/dist/test/setup.js +46 -2
- package/dist/useVariants-a0d64298.js +30 -0
- package/dist/utils/isAllEnglishString.js +2 -1
- package/package.json +34 -28
- package/dist/AntdIcon-Bsnbyy6g.js +0 -200
- package/dist/CheckOutlined-DAynWe12.js +0 -527
- package/dist/Compact-CJBo3f0u.js +0 -185
- package/dist/ContextIsolator-CGkdKtc3.js +0 -20
- package/dist/Form-Cylpi4M4.js +0 -1815
- package/dist/Overflow-CP1M4Z0s.js +0 -369
- package/dist/compact-item-DH13cl8A.js +0 -61
- package/dist/components/atoms/button/Button.js +0 -27
- package/dist/components/atoms/button/index.js +0 -4
- package/dist/components/atoms/checkbox/Checkbox.js +0 -13
- package/dist/components/atoms/checkbox/__tests__/Checkbox.test.js +0 -18
- package/dist/components/atoms/checkbox/index.js +0 -4
- package/dist/components/atoms/index.d.ts +0 -1
- package/dist/components/atoms/index.js +0 -3
- package/dist/components/atoms/input/Input.js +0 -12
- package/dist/components/atoms/input/__tests__/Input.test.js +0 -28
- package/dist/components/atoms/input/index.js +0 -4
- package/dist/components/atoms/input/styles.js +0 -415
- package/dist/components/atoms/select/Select.js +0 -24
- package/dist/components/atoms/select/__tests__/Select.test.js +0 -10735
- package/dist/components/atoms/select/index.js +0 -4
- package/dist/components/atoms/select/styles.js +0 -3868
- package/dist/components/atoms/typography/Typography.js +0 -44
- package/dist/components/atoms/typography/__tests__/Typography.test.js +0 -16
- package/dist/components/atoms/typography/index.js +0 -4
- package/dist/components/atoms/typography/styles.d.ts +0 -11
- package/dist/components/atoms/typography/styles.js +0 -28
- package/dist/components/molecules/error-boundary-fallback/ErrorBoundaryFallback.js +0 -35
- package/dist/components/molecules/error-boundary-fallback/index.js +0 -4
- package/dist/components/molecules/error-boundary-fallback/styles.d.ts +0 -1
- package/dist/components/molecules/form/Form.js +0 -7
- package/dist/components/molecules/form/__stories__/FormStory.js +0 -90
- package/dist/components/molecules/form/index.js +0 -4
- package/dist/index-3MWkSVA1.js +0 -96
- package/dist/index-BPtFqhcp.js +0 -19110
- package/dist/index-BWys7dkb.js +0 -4462
- package/dist/index-VDH3iLaC.js +0 -884
- package/dist/setup-CMYVZCPF.js +0 -33883
- package/dist/useVariants-CEpw6Ww6.js +0 -29
- /package/dist/components/{atoms/checkbox/__tests__/Checkbox.test.d.ts → Badge/__tests__/Badge.test.d.ts} +0 -0
- /package/dist/components/{atoms/input/__tests__/Input.test.d.ts → Breadcrumb/__tests__/Breadcrumb.test.d.ts} +0 -0
- /package/dist/components/{atoms/button → Button}/Button.d.ts +0 -0
- /package/dist/components/{atoms/button → Button}/__stories__/Button.stories.d.ts +0 -0
- /package/dist/components/{atoms/select/__tests__/Select.test.d.ts → Button/__tests__/Button.test.d.ts} +0 -0
- /package/dist/components/{atoms/button → Button}/index.d.ts +0 -0
- /package/dist/components/{atoms/button → Button}/styles.d.ts +0 -0
- /package/dist/components/{atoms/checkbox → Checkbox}/__stories__/Checkbox.stories.d.ts +0 -0
- /package/dist/components/{atoms/typography/__tests__/Typography.test.d.ts → Checkbox/__tests__/Checkbox.test.d.ts} +0 -0
- /package/dist/components/{atoms/checkbox → Checkbox}/index.d.ts +0 -0
- /package/dist/components/{molecules/error-boundary-fallback → ErrorBoundaryFallback}/ErrorBoundaryFallback.d.ts +0 -0
- /package/dist/components/{molecules/error-boundary-fallback → ErrorBoundaryFallback}/__stories__/ErrorBoundaryFallback.stories.d.ts +0 -0
- /package/dist/components/{molecules/error-boundary-fallback → ErrorBoundaryFallback}/index.d.ts +0 -0
- /package/dist/components/{molecules/form → Form}/__stories__/Form.stories.d.ts +0 -0
- /package/dist/components/{molecules/form → Form}/__stories__/FormStory.d.ts +0 -0
- /package/dist/components/{molecules/form → Form}/index.d.ts +0 -0
- /package/dist/components/{atoms/input → Input}/index.d.ts +0 -0
- /package/dist/components/{atoms/select → Select}/index.d.ts +0 -0
- /package/dist/components/{atoms/typography → Typography}/__stories__/Typography.stories.d.ts +0 -0
- /package/dist/components/{atoms/typography → Typography}/index.d.ts +0 -0
- /package/dist/{presetColors-Cl8UP3Nw.js → presetColors-ccf8cb4c.js} +0 -0
- /package/dist/{reactNode-sKPeiqPL.js → reactNode-f4391605.js} +0 -0
|
@@ -1,44 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
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
|
-
});
|
|
@@ -1,11 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,28 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,35 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
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,90 +0,0 @@
|
|
|
1
|
-
import { jsxs as r, Fragment as m, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { a as p, F as d, b as n } from "../../../../Form-Cylpi4M4.js";
|
|
3
|
-
import c from "../../../atoms/button/Button.js";
|
|
4
|
-
import u from "../../../atoms/input/Input.js";
|
|
5
|
-
import h from "../../../atoms/select/Select.js";
|
|
6
|
-
import f from "../../../atoms/checkbox/Checkbox.js";
|
|
7
|
-
import i from "../../../atoms/typography/Typography.js";
|
|
8
|
-
import "../../error-boundary-fallback/styles.js";
|
|
9
|
-
import b from "react";
|
|
10
|
-
import { S as o } from "../../../../index-3MWkSVA1.js";
|
|
11
|
-
const F = [
|
|
12
|
-
{ value: "apple", label: /* @__PURE__ */ e("span", { children: "apple" }) },
|
|
13
|
-
{ value: "pear", label: /* @__PURE__ */ e("span", { children: "pear" }) }
|
|
14
|
-
], q = () => {
|
|
15
|
-
const [a, t] = b.useState(null), [s] = p.useForm();
|
|
16
|
-
return /* @__PURE__ */ r(m, { children: [
|
|
17
|
-
/* @__PURE__ */ e(
|
|
18
|
-
d,
|
|
19
|
-
{
|
|
20
|
-
form: s,
|
|
21
|
-
autoComplete: "off",
|
|
22
|
-
initialValues: { remember: !0 },
|
|
23
|
-
onFinish: (l) => {
|
|
24
|
-
console.log("Success:", l), t(l);
|
|
25
|
-
},
|
|
26
|
-
onFinishFailed: (l) => {
|
|
27
|
-
console.log("Failed:", l);
|
|
28
|
-
},
|
|
29
|
-
children: /* @__PURE__ */ r(o, { direction: "vertical", children: [
|
|
30
|
-
/* @__PURE__ */ e(i, { variant: "heading1", children: "Hello Genesis" }),
|
|
31
|
-
/* @__PURE__ */ e(
|
|
32
|
-
n,
|
|
33
|
-
{
|
|
34
|
-
label: "What is your name?",
|
|
35
|
-
name: "username",
|
|
36
|
-
rules: [{ required: !0, message: "Please input your name!" }],
|
|
37
|
-
labelCol: { span: 24 },
|
|
38
|
-
children: /* @__PURE__ */ e(u, {})
|
|
39
|
-
}
|
|
40
|
-
),
|
|
41
|
-
/* @__PURE__ */ e(
|
|
42
|
-
n,
|
|
43
|
-
{
|
|
44
|
-
label: "What's for lunch?",
|
|
45
|
-
name: "fruit",
|
|
46
|
-
rules: [{ required: !1 }],
|
|
47
|
-
labelCol: { span: 24 },
|
|
48
|
-
children: /* @__PURE__ */ e(h, { options: F, placeholder: "Select a fruit" })
|
|
49
|
-
}
|
|
50
|
-
),
|
|
51
|
-
/* @__PURE__ */ e(
|
|
52
|
-
n,
|
|
53
|
-
{
|
|
54
|
-
name: "subscribe",
|
|
55
|
-
labelCol: { span: 24 },
|
|
56
|
-
label: "Interested in updates?",
|
|
57
|
-
children: /* @__PURE__ */ r(o, { direction: "horizontal ", children: [
|
|
58
|
-
/* @__PURE__ */ e(f, {}),
|
|
59
|
-
/* @__PURE__ */ e(i, { children: "Yes, Sign me up" })
|
|
60
|
-
] })
|
|
61
|
-
}
|
|
62
|
-
),
|
|
63
|
-
/* @__PURE__ */ e(n, { label: null, name: "subscribe", valuePropName: "checked", children: /* @__PURE__ */ r(o, { direction: "horizontal", size: 180, children: [
|
|
64
|
-
/* @__PURE__ */ e(c, { type: "secondary", onClick: () => {
|
|
65
|
-
s.resetFields(), t(null);
|
|
66
|
-
}, children: "Reset" }),
|
|
67
|
-
/* @__PURE__ */ e(c, { htmlType: "submit", children: "Submit" })
|
|
68
|
-
] }) })
|
|
69
|
-
] })
|
|
70
|
-
}
|
|
71
|
-
),
|
|
72
|
-
a && /* @__PURE__ */ r(
|
|
73
|
-
"div",
|
|
74
|
-
{
|
|
75
|
-
style: {
|
|
76
|
-
marginTop: "20px",
|
|
77
|
-
padding: "10px",
|
|
78
|
-
border: "1px solid #ccc"
|
|
79
|
-
},
|
|
80
|
-
children: [
|
|
81
|
-
/* @__PURE__ */ e(i, { variant: "heading3", children: "Form Values:" }),
|
|
82
|
-
/* @__PURE__ */ e("pre", { children: JSON.stringify(a, null, 2) })
|
|
83
|
-
]
|
|
84
|
-
}
|
|
85
|
-
)
|
|
86
|
-
] });
|
|
87
|
-
};
|
|
88
|
-
export {
|
|
89
|
-
q as FormStory
|
|
90
|
-
};
|
package/dist/index-3MWkSVA1.js
DELETED
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import * as l from "react";
|
|
2
|
-
import U from "react";
|
|
3
|
-
import { C as X, c as P } from "./index-BWys7dkb.js";
|
|
4
|
-
import { t as Y } from "./isVisible-CNQjrJPN.js";
|
|
5
|
-
import { C as Z, u as ee } from "./Compact-CJBo3f0u.js";
|
|
6
|
-
function w(e) {
|
|
7
|
-
return ["small", "middle", "large"].includes(e);
|
|
8
|
-
}
|
|
9
|
-
function E(e) {
|
|
10
|
-
return e ? typeof e == "number" && !Number.isNaN(e) : !1;
|
|
11
|
-
}
|
|
12
|
-
const h = /* @__PURE__ */ U.createContext({
|
|
13
|
-
latestIndex: 0
|
|
14
|
-
}), ne = h.Provider, te = (e) => {
|
|
15
|
-
let {
|
|
16
|
-
className: i,
|
|
17
|
-
index: a,
|
|
18
|
-
children: n,
|
|
19
|
-
split: s,
|
|
20
|
-
style: m
|
|
21
|
-
} = e;
|
|
22
|
-
const {
|
|
23
|
-
latestIndex: t
|
|
24
|
-
} = l.useContext(h);
|
|
25
|
-
return n == null ? null : /* @__PURE__ */ l.createElement(l.Fragment, null, /* @__PURE__ */ l.createElement("div", {
|
|
26
|
-
className: i,
|
|
27
|
-
style: m
|
|
28
|
-
}, n), a < t && s && /* @__PURE__ */ l.createElement("span", {
|
|
29
|
-
className: `${i}-split`
|
|
30
|
-
}, s));
|
|
31
|
-
};
|
|
32
|
-
var se = function(e, i) {
|
|
33
|
-
var a = {};
|
|
34
|
-
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && i.indexOf(n) < 0 && (a[n] = e[n]);
|
|
35
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var s = 0, n = Object.getOwnPropertySymbols(e); s < n.length; s++)
|
|
36
|
-
i.indexOf(n[s]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[s]) && (a[n[s]] = e[n[s]]);
|
|
37
|
-
return a;
|
|
38
|
-
};
|
|
39
|
-
const le = /* @__PURE__ */ l.forwardRef((e, i) => {
|
|
40
|
-
var a, n, s;
|
|
41
|
-
const {
|
|
42
|
-
getPrefixCls: m,
|
|
43
|
-
space: t,
|
|
44
|
-
direction: V
|
|
45
|
-
} = l.useContext(X), {
|
|
46
|
-
size: c = (a = t == null ? void 0 : t.size) !== null && a !== void 0 ? a : "small",
|
|
47
|
-
align: S,
|
|
48
|
-
className: I,
|
|
49
|
-
rootClassName: k,
|
|
50
|
-
children: A,
|
|
51
|
-
direction: b = "horizontal",
|
|
52
|
-
prefixCls: G,
|
|
53
|
-
split: R,
|
|
54
|
-
style: H,
|
|
55
|
-
wrap: D = !1,
|
|
56
|
-
classNames: p,
|
|
57
|
-
styles: y
|
|
58
|
-
} = e, F = se(e, ["size", "align", "className", "rootClassName", "children", "direction", "prefixCls", "split", "style", "wrap", "classNames", "styles"]), [d, u] = Array.isArray(c) ? c : [c, c], z = w(u), O = w(d), M = E(u), W = E(d), v = Y(A, {
|
|
59
|
-
keepEmpty: !0
|
|
60
|
-
}), $ = S === void 0 && b === "horizontal" ? "center" : S, r = m("space", G), [q, B, J] = ee(r), K = P(r, t == null ? void 0 : t.className, B, `${r}-${b}`, {
|
|
61
|
-
[`${r}-rtl`]: V === "rtl",
|
|
62
|
-
[`${r}-align-${$}`]: $,
|
|
63
|
-
[`${r}-gap-row-${u}`]: z,
|
|
64
|
-
[`${r}-gap-col-${d}`]: O
|
|
65
|
-
}, I, k, J), _ = P(`${r}-item`, (n = p == null ? void 0 : p.item) !== null && n !== void 0 ? n : (s = t == null ? void 0 : t.classNames) === null || s === void 0 ? void 0 : s.item);
|
|
66
|
-
let C = 0;
|
|
67
|
-
const L = v.map((o, N) => {
|
|
68
|
-
var g, x;
|
|
69
|
-
o != null && (C = N);
|
|
70
|
-
const T = (o == null ? void 0 : o.key) || `${_}-${N}`;
|
|
71
|
-
return /* @__PURE__ */ l.createElement(te, {
|
|
72
|
-
className: _,
|
|
73
|
-
key: T,
|
|
74
|
-
index: N,
|
|
75
|
-
split: R,
|
|
76
|
-
style: (g = y == null ? void 0 : y.item) !== null && g !== void 0 ? g : (x = t == null ? void 0 : t.styles) === null || x === void 0 ? void 0 : x.item
|
|
77
|
-
}, o);
|
|
78
|
-
}), Q = l.useMemo(() => ({
|
|
79
|
-
latestIndex: C
|
|
80
|
-
}), [C]);
|
|
81
|
-
if (v.length === 0)
|
|
82
|
-
return null;
|
|
83
|
-
const f = {};
|
|
84
|
-
return D && (f.flexWrap = "wrap"), !O && W && (f.columnGap = d), !z && M && (f.rowGap = u), q(/* @__PURE__ */ l.createElement("div", Object.assign({
|
|
85
|
-
ref: i,
|
|
86
|
-
className: K,
|
|
87
|
-
style: Object.assign(Object.assign(Object.assign({}, f), t == null ? void 0 : t.style), H)
|
|
88
|
-
}, F), /* @__PURE__ */ l.createElement(ne, {
|
|
89
|
-
value: Q
|
|
90
|
-
}, L)));
|
|
91
|
-
}), j = le;
|
|
92
|
-
j.Compact = Z;
|
|
93
|
-
process.env.NODE_ENV !== "production" && (j.displayName = "Space");
|
|
94
|
-
export {
|
|
95
|
-
j as S
|
|
96
|
-
};
|