@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,162 @@
|
|
|
1
|
+
export declare enum BreakpointLabel {
|
|
2
|
+
Narrow = "narrow",
|
|
3
|
+
Medium = "medium",
|
|
4
|
+
Wide = "wide"
|
|
5
|
+
}
|
|
6
|
+
export type Breakpoints = {
|
|
7
|
+
[key in BreakpointLabel]: number;
|
|
8
|
+
};
|
|
9
|
+
export type Sizing = {
|
|
10
|
+
Size1: number;
|
|
11
|
+
Size2: number;
|
|
12
|
+
Size3: number;
|
|
13
|
+
Size4: number;
|
|
14
|
+
Size5: number;
|
|
15
|
+
Size6: number;
|
|
16
|
+
Size7: number;
|
|
17
|
+
Size8: number;
|
|
18
|
+
Size10: number;
|
|
19
|
+
Size12: number;
|
|
20
|
+
Size13: number;
|
|
21
|
+
Size14: number;
|
|
22
|
+
Size16: number;
|
|
23
|
+
Size18: number;
|
|
24
|
+
Size20: number;
|
|
25
|
+
Size24: number;
|
|
26
|
+
Size27: number;
|
|
27
|
+
Size28: number;
|
|
28
|
+
Size30: number;
|
|
29
|
+
Size32: number;
|
|
30
|
+
Size34: number;
|
|
31
|
+
Size35: number;
|
|
32
|
+
Size39: number;
|
|
33
|
+
Size43: number;
|
|
34
|
+
Size50: number;
|
|
35
|
+
Size64: number;
|
|
36
|
+
Size05: number;
|
|
37
|
+
Size15: number;
|
|
38
|
+
Size025: number;
|
|
39
|
+
Size25: number;
|
|
40
|
+
};
|
|
41
|
+
type BorderRadius = {
|
|
42
|
+
BorderRadiusNone: number;
|
|
43
|
+
BorderRadiusXs: number;
|
|
44
|
+
BorderRadiusSm: number;
|
|
45
|
+
BorderRadiusMd: number;
|
|
46
|
+
BorderRadiusLg: number;
|
|
47
|
+
BorderRadiusXl: number;
|
|
48
|
+
BorderRadiusXxl: number;
|
|
49
|
+
BorderRadiusXxxl: number;
|
|
50
|
+
BorderRadiusRounded: number;
|
|
51
|
+
};
|
|
52
|
+
type FontStyle = {
|
|
53
|
+
fontSize: string;
|
|
54
|
+
lineHeight: string;
|
|
55
|
+
fontWeight: number;
|
|
56
|
+
};
|
|
57
|
+
export type TypographySize = {
|
|
58
|
+
display1: FontStyle;
|
|
59
|
+
display2: FontStyle;
|
|
60
|
+
display3: FontStyle;
|
|
61
|
+
heading1: FontStyle;
|
|
62
|
+
heading2: FontStyle;
|
|
63
|
+
heading3: FontStyle;
|
|
64
|
+
subHeading1: FontStyle;
|
|
65
|
+
subHeading2: FontStyle;
|
|
66
|
+
subHeading3: FontStyle;
|
|
67
|
+
body1: FontStyle;
|
|
68
|
+
body2: FontStyle;
|
|
69
|
+
body3: FontStyle;
|
|
70
|
+
body4: FontStyle;
|
|
71
|
+
body5: FontStyle;
|
|
72
|
+
message: FontStyle;
|
|
73
|
+
overline: FontStyle;
|
|
74
|
+
label: FontStyle;
|
|
75
|
+
link1: FontStyle;
|
|
76
|
+
link2: FontStyle;
|
|
77
|
+
link3: FontStyle;
|
|
78
|
+
digits1: FontStyle;
|
|
79
|
+
digits2: FontStyle;
|
|
80
|
+
digits3: FontStyle;
|
|
81
|
+
};
|
|
82
|
+
export type Typography = {
|
|
83
|
+
wide: TypographySize;
|
|
84
|
+
medium: TypographySize;
|
|
85
|
+
narrow: TypographySize;
|
|
86
|
+
};
|
|
87
|
+
export type ColorShades = {
|
|
88
|
+
100?: string;
|
|
89
|
+
200?: string;
|
|
90
|
+
300?: string;
|
|
91
|
+
400?: string;
|
|
92
|
+
500?: string;
|
|
93
|
+
600?: string;
|
|
94
|
+
700?: string;
|
|
95
|
+
800?: string;
|
|
96
|
+
900?: string;
|
|
97
|
+
black?: string;
|
|
98
|
+
white?: string;
|
|
99
|
+
};
|
|
100
|
+
type ColorLayer = {
|
|
101
|
+
textColor: string;
|
|
102
|
+
backgroundColor: string;
|
|
103
|
+
borderColor: string;
|
|
104
|
+
ringColor?: string;
|
|
105
|
+
};
|
|
106
|
+
type ColorState = {
|
|
107
|
+
active: ColorLayer;
|
|
108
|
+
hover: ColorLayer;
|
|
109
|
+
pressed: ColorLayer;
|
|
110
|
+
focussed: ColorLayer;
|
|
111
|
+
disabled: ColorLayer;
|
|
112
|
+
};
|
|
113
|
+
export type ColorMode = {
|
|
114
|
+
primary: ColorState;
|
|
115
|
+
secondary: ColorState;
|
|
116
|
+
tertiary: ColorState;
|
|
117
|
+
};
|
|
118
|
+
export type ColorModes = {
|
|
119
|
+
light: ColorMode;
|
|
120
|
+
dark: ColorMode;
|
|
121
|
+
};
|
|
122
|
+
export type ColorGroup = "red" | "orange" | "yellow" | "green" | "blue" | "purple" | "sky" | "gray";
|
|
123
|
+
type AllColors = {
|
|
124
|
+
red: ColorShades;
|
|
125
|
+
orange: ColorShades;
|
|
126
|
+
yellow: ColorShades;
|
|
127
|
+
green: ColorShades;
|
|
128
|
+
blue: ColorShades;
|
|
129
|
+
purple: ColorShades;
|
|
130
|
+
sky: ColorShades;
|
|
131
|
+
gray: ColorShades;
|
|
132
|
+
};
|
|
133
|
+
type Mode = "light" | "dark";
|
|
134
|
+
export type GenesisTheme = {
|
|
135
|
+
breakpoints: Breakpoints;
|
|
136
|
+
sizing: Sizing;
|
|
137
|
+
borderRadius: BorderRadius;
|
|
138
|
+
typography: Typography;
|
|
139
|
+
allColors: AllColors;
|
|
140
|
+
colors: ColorMode;
|
|
141
|
+
mode: Mode;
|
|
142
|
+
};
|
|
143
|
+
type Button = {
|
|
144
|
+
padding: {
|
|
145
|
+
verPadding: number;
|
|
146
|
+
horPadding: number;
|
|
147
|
+
};
|
|
148
|
+
gap: number;
|
|
149
|
+
radius: number;
|
|
150
|
+
};
|
|
151
|
+
type Components = {
|
|
152
|
+
button: Button;
|
|
153
|
+
};
|
|
154
|
+
export type BaseTokens = {
|
|
155
|
+
breakpoints: Breakpoints;
|
|
156
|
+
sizing: Sizing;
|
|
157
|
+
borderRadius: BorderRadius;
|
|
158
|
+
typography: Typography;
|
|
159
|
+
allColors: AllColors;
|
|
160
|
+
components: Components;
|
|
161
|
+
};
|
|
162
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const GlobalStyles: import('react').NamedExoticComponent<import('styled-components').ExecutionProps & object>;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { f as a } from "../../styled-components.browser.esm-CZ1XM4o4.js";
|
|
2
|
+
const e = a`
|
|
3
|
+
h1, h2, h3, h4, h5, h6 {
|
|
4
|
+
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
5
|
+
font-weight: 700;
|
|
6
|
+
@media (max-width: ${({ theme: o }) => o.breakpoints.narrow}) {
|
|
7
|
+
color: ${({ theme: o }) => o.typography.narrow.heading1.color};
|
|
8
|
+
}
|
|
9
|
+
@media (max-width: ${({ theme: o }) => o.breakpoints.medium}) {
|
|
10
|
+
color: ${({ theme: o }) => o.typography.medium.heading1.color};
|
|
11
|
+
}
|
|
12
|
+
@media (min-width: ${({ theme: o }) => o.breakpoints.wide}) {
|
|
13
|
+
color: ${({ theme: o }) => o.typography.wide.heading1.color};
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
body {
|
|
17
|
+
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
18
|
+
@media (max-width: ${({ theme: o }) => o.breakpoints.narrow}) {
|
|
19
|
+
background: ${({ theme: o }) => o.typography.narrow.body1.background};
|
|
20
|
+
color: ${({ theme: o }) => o.typography.narrow.body1.color};
|
|
21
|
+
}
|
|
22
|
+
@media (max-width: ${({ theme: o }) => o.breakpoints.medium}) {
|
|
23
|
+
background: ${({ theme: o }) => o.typography.medium.body1.background};
|
|
24
|
+
color: ${({ theme: o }) => o.typography.medium.body1.color};
|
|
25
|
+
}
|
|
26
|
+
@media (min-width: ${({ theme: o }) => o.breakpoints.wide}) {
|
|
27
|
+
background: ${({ theme: o }) => o.typography.wide.body1.background};
|
|
28
|
+
color: ${({ theme: o }) => o.typography.wide.body1.color};
|
|
29
|
+
}
|
|
30
|
+
transition: background 0.2s ease-in, color 0.2s ease-in;
|
|
31
|
+
}
|
|
32
|
+
`;
|
|
33
|
+
export {
|
|
34
|
+
e as GlobalStyles
|
|
35
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './genesis-theme';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TypographySizeKey as o, baseTokens as r, breakpoints as a, darkTheme as h, lightTheme as p, sizing as s } from "./genesis-theme.js";
|
|
2
|
+
export {
|
|
3
|
+
o as TypographySizeKey,
|
|
4
|
+
r as baseTokens,
|
|
5
|
+
a as breakpoints,
|
|
6
|
+
h as darkTheme,
|
|
7
|
+
p as lightTheme,
|
|
8
|
+
s as sizing
|
|
9
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { c as f, C as g, V as m } from "./index-BWys7dkb.js";
|
|
2
|
+
import * as u from "react";
|
|
3
|
+
import { V } from "./context-CZsFJmh6.js";
|
|
4
|
+
function b(n, e, a) {
|
|
5
|
+
return f({
|
|
6
|
+
[`${n}-status-success`]: e === "success",
|
|
7
|
+
[`${n}-status-warning`]: e === "warning",
|
|
8
|
+
[`${n}-status-error`]: e === "error",
|
|
9
|
+
[`${n}-status-validating`]: e === "validating",
|
|
10
|
+
[`${n}-has-feedback`]: a
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
const v = (n, e) => e || n, p = function(n, e) {
|
|
14
|
+
let a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : void 0;
|
|
15
|
+
var s, r;
|
|
16
|
+
const {
|
|
17
|
+
variant: d,
|
|
18
|
+
[n]: o
|
|
19
|
+
} = u.useContext(g), i = u.useContext(V), c = o == null ? void 0 : o.variant;
|
|
20
|
+
let t;
|
|
21
|
+
typeof e < "u" ? t = e : a === !1 ? t = "borderless" : t = (r = (s = i ?? c) !== null && s !== void 0 ? s : d) !== null && r !== void 0 ? r : "outlined";
|
|
22
|
+
const l = m.includes(t);
|
|
23
|
+
return [t, l];
|
|
24
|
+
};
|
|
25
|
+
export {
|
|
26
|
+
b as a,
|
|
27
|
+
v as g,
|
|
28
|
+
p as u
|
|
29
|
+
};
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
const d = {
|
|
2
|
+
red: "#da4453",
|
|
3
|
+
green: "#8cc152",
|
|
4
|
+
orange: "#f90",
|
|
5
|
+
mint: "#37bc9b",
|
|
6
|
+
yellow: "#f6bb42",
|
|
7
|
+
skyBlue: "#3bafda",
|
|
8
|
+
oceanBlue: "#4A89DC",
|
|
9
|
+
purple: "#ac92ec",
|
|
10
|
+
pink: "#ffc0cb",
|
|
11
|
+
navy: "#001f3f"
|
|
12
|
+
}, {
|
|
13
|
+
red: s,
|
|
14
|
+
green: u,
|
|
15
|
+
orange: r,
|
|
16
|
+
mint: c,
|
|
17
|
+
yellow: t,
|
|
18
|
+
skyBlue: l,
|
|
19
|
+
oceanBlue: n,
|
|
20
|
+
purple: e,
|
|
21
|
+
pink: i,
|
|
22
|
+
navy: p
|
|
23
|
+
} = d, f = (o, a) => {
|
|
24
|
+
if (o === "type")
|
|
25
|
+
switch (a) {
|
|
26
|
+
case "pick_up":
|
|
27
|
+
case "inventory_pick_up":
|
|
28
|
+
return r;
|
|
29
|
+
case "drop_off":
|
|
30
|
+
return l;
|
|
31
|
+
case "immediate_pick_up":
|
|
32
|
+
return n;
|
|
33
|
+
case "return":
|
|
34
|
+
return e;
|
|
35
|
+
case "retrieve":
|
|
36
|
+
return t;
|
|
37
|
+
case "immediate_retrieve":
|
|
38
|
+
return c;
|
|
39
|
+
case "return_to_sender":
|
|
40
|
+
case "reverse_logistics":
|
|
41
|
+
return u;
|
|
42
|
+
case "cross_dock_delivery":
|
|
43
|
+
case "delivery":
|
|
44
|
+
return p;
|
|
45
|
+
default:
|
|
46
|
+
return i;
|
|
47
|
+
}
|
|
48
|
+
else
|
|
49
|
+
switch (a) {
|
|
50
|
+
case "request_received":
|
|
51
|
+
return t;
|
|
52
|
+
case "confirmed":
|
|
53
|
+
case "shipment_created":
|
|
54
|
+
return u;
|
|
55
|
+
case "fulfillment":
|
|
56
|
+
return r;
|
|
57
|
+
case "ready":
|
|
58
|
+
return r;
|
|
59
|
+
case "loaded":
|
|
60
|
+
return e;
|
|
61
|
+
case "cancelled":
|
|
62
|
+
return s;
|
|
63
|
+
case "scheduled":
|
|
64
|
+
return l;
|
|
65
|
+
case "fulfilled":
|
|
66
|
+
return e;
|
|
67
|
+
case "on_the_way":
|
|
68
|
+
return n;
|
|
69
|
+
case "active":
|
|
70
|
+
return i;
|
|
71
|
+
case "done":
|
|
72
|
+
return t;
|
|
73
|
+
case "staging":
|
|
74
|
+
return e;
|
|
75
|
+
case "completed":
|
|
76
|
+
return n;
|
|
77
|
+
case "started":
|
|
78
|
+
return c;
|
|
79
|
+
case "arrived":
|
|
80
|
+
return c;
|
|
81
|
+
case "incomplete":
|
|
82
|
+
case "failed":
|
|
83
|
+
case "no_show":
|
|
84
|
+
return s;
|
|
85
|
+
default:
|
|
86
|
+
return "black";
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
export {
|
|
90
|
+
f as default
|
|
91
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const isAllEnglishString: (str: string | undefined) => boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { isAllEnglishString as i } from "./isAllEnglishString.js";
|
|
2
|
+
describe("isAllEnglishString", () => {
|
|
3
|
+
test("English string", () => {
|
|
4
|
+
expect(i("this is an english string")).toEqual(!0);
|
|
5
|
+
}), test("French string", () => {
|
|
6
|
+
expect(i("string en français")).toEqual(!1);
|
|
7
|
+
});
|
|
8
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const s = ({
|
|
2
|
+
address: r,
|
|
3
|
+
address_line_1: o,
|
|
4
|
+
address_line_2: t,
|
|
5
|
+
city: e,
|
|
6
|
+
postal_code: i,
|
|
7
|
+
province: n,
|
|
8
|
+
country: p
|
|
9
|
+
}) => [
|
|
10
|
+
o || r,
|
|
11
|
+
t,
|
|
12
|
+
e,
|
|
13
|
+
n,
|
|
14
|
+
i,
|
|
15
|
+
p
|
|
16
|
+
].filter(Boolean).join(", ").trim();
|
|
17
|
+
export {
|
|
18
|
+
s as parseAddress
|
|
19
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/package.json
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@gobolt/genesis",
|
|
3
|
+
"version": "0.0.7",
|
|
4
|
+
"description": "genesis design system",
|
|
5
|
+
"author": "gobolt",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": "SecondCloset/genesis",
|
|
8
|
+
"type": "module",
|
|
9
|
+
"main": "dist/index.js",
|
|
10
|
+
"types": "dist/lib/index.d.ts",
|
|
11
|
+
"files": [
|
|
12
|
+
"dist"
|
|
13
|
+
],
|
|
14
|
+
"scripts": {
|
|
15
|
+
"dev": "vite",
|
|
16
|
+
"build": "tsc --extendedDiagnostics --p ./tsconfig-build.json && vite build",
|
|
17
|
+
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
18
|
+
"preview": "vite preview",
|
|
19
|
+
"prepublishOnly": "npm run build",
|
|
20
|
+
"start": "storybook dev -p 6006",
|
|
21
|
+
"storybook": "storybook dev -p 6006",
|
|
22
|
+
"build-storybook": "storybook build",
|
|
23
|
+
"test": "vitest run",
|
|
24
|
+
"coverage": "vitest run --coverage",
|
|
25
|
+
"generate": "tsx ./lab/generate/generate-component",
|
|
26
|
+
"generate:story": "tsx ./lab/generate/generate-story",
|
|
27
|
+
"test:watch": "vitest"
|
|
28
|
+
},
|
|
29
|
+
"peerDependencies": {
|
|
30
|
+
"react": "^18.0.0",
|
|
31
|
+
"react-dom": "^18.0.0"
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@changesets/cli": "^2.27.8",
|
|
35
|
+
"@rollup/plugin-node-resolve": "^15.3.0",
|
|
36
|
+
"@rollup/plugin-typescript": "^12.1.1",
|
|
37
|
+
"@storybook/addon-essentials": "^8.5.0",
|
|
38
|
+
"@storybook/addon-interactions": "^8.5.0",
|
|
39
|
+
"@storybook/addon-links": "^8.5.0",
|
|
40
|
+
"@storybook/addon-mdx-gfm": "^8.5.0",
|
|
41
|
+
"@storybook/blocks": "^8.5.0",
|
|
42
|
+
"@storybook/react": "^8.5.0",
|
|
43
|
+
"@storybook/react-vite": "^8.5.0",
|
|
44
|
+
"@storybook/test": "^8.5.0",
|
|
45
|
+
"@storybook/test-runner": "^0.19.1",
|
|
46
|
+
"@types/jest": "^29.5.11",
|
|
47
|
+
"@types/react": "^18.2.37",
|
|
48
|
+
"@types/react-dom": "^18.2.15",
|
|
49
|
+
"@typescript-eslint/eslint-plugin": "^6.10.0",
|
|
50
|
+
"@typescript-eslint/parser": "^6.10.0",
|
|
51
|
+
"@vitejs/plugin-react": "^4.2.1",
|
|
52
|
+
"@vitest/browser": "^2.0.2",
|
|
53
|
+
"eslint": "^8.57.1",
|
|
54
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
55
|
+
"eslint-plugin-react-refresh": "^0.4.4",
|
|
56
|
+
"eslint-plugin-storybook": "^0.8.0",
|
|
57
|
+
"glob": "^10.3.10",
|
|
58
|
+
"jest": "^29.7.0",
|
|
59
|
+
"jsdom": "^23.0.1",
|
|
60
|
+
"react": "^18.2.0",
|
|
61
|
+
"react-dom": "^18.2.0",
|
|
62
|
+
"rollup-plugin-dts": "^6.1.1",
|
|
63
|
+
"storybook": "8.5.0",
|
|
64
|
+
"tsx": "^4.19.2",
|
|
65
|
+
"typescript": "^5.2.2",
|
|
66
|
+
"vite": "^5.0.0",
|
|
67
|
+
"vite-plugin-dts": "^3.6.4",
|
|
68
|
+
"vite-plugin-lib-inject-css": "^1.3.0",
|
|
69
|
+
"vitest": "^2.1.8"
|
|
70
|
+
},
|
|
71
|
+
"dependencies": {
|
|
72
|
+
"@ant-design/icons": "^5.5.2",
|
|
73
|
+
"@fontsource/inter": "^5.1.1",
|
|
74
|
+
"@mdx-js/react": "^3.0.1",
|
|
75
|
+
"@secondcloset/types": "^3.4.6",
|
|
76
|
+
"@storybook/addon-a11y": "^8.5.0",
|
|
77
|
+
"@storybook/addon-docs": "^8.5.0",
|
|
78
|
+
"@storybook/addon-styling": "^1.3.7",
|
|
79
|
+
"@testing-library/jest-dom": "^6.1.5",
|
|
80
|
+
"@testing-library/react": "^14.1.2",
|
|
81
|
+
"@testing-library/user-event": "^14.6.0",
|
|
82
|
+
"antd": "^5.23.1",
|
|
83
|
+
"clsx": "^1.1.0",
|
|
84
|
+
"date-fns": "^3.6.0",
|
|
85
|
+
"react-error-boundary": "^4.0.11",
|
|
86
|
+
"rollup-plugin-css-only": "^4.5.2",
|
|
87
|
+
"styled-components": "^6.1.14",
|
|
88
|
+
"vite-plugin-css-injected-by-js": "^3.3.0",
|
|
89
|
+
"vite-tsconfig-paths": "^5.1.4"
|
|
90
|
+
},
|
|
91
|
+
"sideEffects": [
|
|
92
|
+
"**/*.css"
|
|
93
|
+
],
|
|
94
|
+
"eslintConfig": {
|
|
95
|
+
"extends": [
|
|
96
|
+
"plugin:storybook/recommended"
|
|
97
|
+
]
|
|
98
|
+
},
|
|
99
|
+
"publishConfig": {
|
|
100
|
+
"access": "public"
|
|
101
|
+
},
|
|
102
|
+
"keywords": [
|
|
103
|
+
"rollup",
|
|
104
|
+
"react",
|
|
105
|
+
"react component",
|
|
106
|
+
"rollup react",
|
|
107
|
+
"component",
|
|
108
|
+
"example react component",
|
|
109
|
+
"example rollup react component"
|
|
110
|
+
],
|
|
111
|
+
"bugs": {
|
|
112
|
+
"url": "https://github.com/SecondCloset/genesis/issues"
|
|
113
|
+
},
|
|
114
|
+
"homepage": "https://github.com/SecondCloset/genesis#readme"
|
|
115
|
+
}
|