@gobolt/genesis 0.0.8 → 0.0.9
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 +10 -0
- package/dist/{AntdIcon-c395a1c4.js → AntdIcon-BoLh1dP8.js} +66 -68
- package/dist/CheckOutlined-CeTKr6II.js +13 -0
- package/dist/{CloseCircleFilled-ddc51e7e.js → CloseCircleFilled-DXCxlIQL.js} +8 -11
- package/dist/{CloseOutlined-14b8bba1.js → CloseOutlined-ClXDNn82.js} +9 -12
- package/dist/{Compact-c39ed20d.js → Compact-CGY560JF.js} +63 -65
- package/dist/ContextIsolator-D5x2Ih51.js +20 -0
- package/dist/{ExclamationCircleFilled-23ef9812.js → ExclamationCircleFilled-C0Kj5KQV.js} +16 -22
- package/dist/KeyCode-DM2sFh3-.js +517 -0
- package/dist/LoadingOutlined-8EnJdZ7I.js +13 -0
- package/dist/{Overflow-a570fa69.js → Overflow-PBZD-PFm.js} +63 -64
- package/dist/{DownOutlined-64a4732a.js → PurePanel-BqPLRtc2.js} +67 -70
- package/dist/{SearchOutlined-a9014e08.js → SearchOutlined-BP3Z2K6j.js} +8 -11
- package/dist/{TextArea-20825221.js → TextArea-DKwCct3i.js} +583 -588
- package/dist/Typography-aGoDUl4R.js +710 -0
- package/dist/bundle.css +1204 -0
- package/dist/{button-fa1c119c.js → button-CDQgO1OK.js} +274 -278
- package/dist/{collapse-345bc884.js → collapse-Dtpt-6W_.js} +2 -2
- package/dist/compact-item-DH13cl8A.js +61 -0
- package/dist/components/Badge/Badge.d.ts +2 -2
- package/dist/components/Badge/Badge.js +63 -62
- package/dist/components/Badge/__tests__/Badge.test.js +11 -65
- package/dist/components/Badge/index.js +2 -21
- package/dist/components/Badge/styles.js +7 -8
- package/dist/components/Breadcrumb/Breadcrumb.js +8 -24
- package/dist/components/Breadcrumb/Breadcrumb.types.d.ts +21 -7
- package/dist/components/Breadcrumb/__tests__/Breadcrumb.test.js +13 -60
- package/dist/components/Breadcrumb/index.js +2 -25
- package/dist/components/Breadcrumb/styles.d.ts +10 -6
- package/dist/components/Breadcrumb/styles.js +787 -808
- package/dist/components/Button/Button.d.ts +6 -4
- package/dist/components/Button/Button.js +20 -40
- package/dist/components/Button/__tests__/Button.test.js +9 -54
- package/dist/components/Button/index.js +2 -20
- package/dist/components/Button/styles.d.ts +9 -5
- package/dist/components/Button/styles.js +19 -30
- package/dist/components/Checkbox/Checkbox.js +8 -38
- package/dist/components/Checkbox/__tests__/Checkbox.test.js +16 -62
- package/dist/components/Checkbox/index.js +2 -47
- package/dist/components/Checkbox/styles.d.ts +8 -1
- package/dist/components/Checkbox/styles.js +181 -188
- package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.d.ts +2 -4
- package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.js +19 -51
- package/dist/components/ErrorBoundaryFallback/index.d.ts +1 -0
- package/dist/components/ErrorBoundaryFallback/index.js +2 -49
- package/dist/components/ErrorBoundaryFallback/styles.d.ts +1 -3
- package/dist/components/ErrorBoundaryFallback/styles.js +34 -37
- package/dist/components/Form/Form.d.ts +18 -5
- package/dist/components/Form/Form.js +4 -45
- package/dist/components/Form/__stories__/FormStory.js +44 -81
- package/dist/components/Form/__tests__/form.test.d.ts +1 -0
- package/dist/components/Form/__tests__/form.test.js +18 -0
- package/dist/components/Form/index.js +2 -46
- package/dist/components/Form/styles.d.ts +3 -0
- package/dist/components/Form/styles.js +5 -0
- package/dist/components/Input/Input.js +6 -29
- package/dist/components/Input/__tests__/Input.test.js +21 -66
- package/dist/components/Input/index.js +2 -29
- package/dist/components/Input/styles.d.ts +5 -2
- package/dist/components/Input/styles.js +319 -332
- package/dist/components/Message/Message.d.ts +4 -4
- package/dist/components/Message/Message.js +53 -80
- package/dist/components/Message/__tests__/Message.test.js +24 -70
- package/dist/components/Message/index.js +2 -48
- package/dist/components/Message/styles.d.ts +4 -1
- package/dist/components/Message/styles.js +24 -18
- package/dist/components/Notification/Notification.d.ts +11 -10
- package/dist/components/Notification/Notification.js +306 -372
- package/dist/components/Notification/NotificationRightChevron.d.ts +2 -0
- package/dist/components/Notification/NotificationRightChevron.js +23 -0
- package/dist/components/Notification/__tests__/Notification.test.js +8 -69
- package/dist/components/Notification/index.js +2 -59
- package/dist/components/Notification/styles.d.ts +13 -3
- package/dist/components/Notification/styles.js +36 -20
- package/dist/components/Radio/Radio.js +20 -106
- package/dist/components/Radio/RadioGroup.js +18 -71
- package/dist/components/Radio/__stories__/RadioGroup.stories.d.ts +1 -1
- package/dist/components/Radio/__tests__/RadioGroup.test.js +15 -70
- package/dist/components/Radio/index.d.ts +1 -1
- package/dist/components/Radio/index.js +2 -56
- package/dist/components/Select/DropdownChevron.d.ts +2 -0
- package/dist/components/Select/DropdownChevron.js +23 -0
- package/dist/components/Select/Select.d.ts +9 -4
- package/dist/components/Select/Select.js +29 -41
- package/dist/components/Select/__tests__/Select.test.js +10752 -93
- package/dist/components/Select/index.js +2 -28
- package/dist/components/Select/styles.d.ts +20 -6
- package/dist/components/Select/styles.js +1381 -1370
- package/dist/components/Toast/Toast.d.ts +4 -4
- package/dist/components/Toast/Toast.js +8 -37
- package/dist/components/Toast/__stories__/Toast.stories.d.ts +1 -0
- package/dist/components/Toast/__tests__/Toast.test.js +10 -55
- package/dist/components/Toast/index.js +2 -46
- package/dist/components/Toast/styles.d.ts +6 -1
- package/dist/components/Toast/styles.js +36 -21
- package/dist/components/Typography/Typography.d.ts +7 -4
- package/dist/components/Typography/Typography.js +2 -42
- package/dist/components/Typography/__stories__/Typography.stories.d.ts +1 -0
- package/dist/components/Typography/__tests__/Typography.test.js +19 -56
- package/dist/components/Typography/index.js +2 -46
- package/dist/components/Typography/styles.d.ts +18 -4
- package/dist/components/Typography/styles.js +36 -43
- package/dist/components/index.d.ts +13 -5
- package/dist/components/index.js +24 -70
- package/dist/{context-3b8a39af.js → context-BMW3aJEf.js} +538 -548
- package/dist/genesis/GenesisThemeBreakdown.js +38 -55
- package/dist/genesis/GenesisThemeDemo.js +3 -53
- package/dist/genesis/styles.d.ts +6 -2
- package/dist/genesis/styles.js +496 -521
- package/dist/{index-e2b72ca8.js → index-1CBpubM3.js} +97 -102
- package/dist/index-BZAhCB_K.js +97 -0
- package/dist/{index-501fc13d.js → index-C0SmxWLS.js} +367 -392
- package/dist/index-C8haFnXI.js +1112 -0
- package/dist/index-CfDY25LP.js +873 -0
- package/dist/index-DPW8XdWj.js +952 -0
- package/dist/{index-8c8d2d0c.js → index-bKlRxQp4.js} +114 -114
- package/dist/index-oK7z6jnz.js +22795 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +31 -77
- package/dist/{isVisible-729780f5.js → isVisible-A-IfeFoT.js} +67 -94
- package/dist/{magic-string.es-b7491176.js → magic-string.es-D2FWSwU3.js} +56 -103
- package/dist/{pickAttrs-00ba4687.js → pickAttrs-B0YTfcV1.js} +1 -1
- package/dist/providers/GenesisProvider.d.ts +0 -5
- package/dist/providers/GenesisProvider.js +9 -59
- package/dist/providers/ThemeProvider.d.ts +1 -2
- package/dist/providers/ThemeProvider.js +11 -13
- package/dist/providers/ToastProvider.d.ts +11 -4
- package/dist/providers/ToastProvider.js +10 -39
- package/dist/providers/index.d.ts +2 -3
- package/dist/providers/index.js +4 -51
- package/dist/providers/useGenesis.d.ts +7 -0
- package/dist/providers/useGenesis.js +6 -0
- package/dist/setup-BvfREoHl.js +33891 -0
- package/dist/{styled-components.browser.esm-02f500bc.js → styled-components.browser.esm-CZ1XM4o4.js} +72 -134
- package/dist/styles/design-tokens/border-tokens/BorderTokenList.js +15 -45
- package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.js +15 -45
- package/dist/styles/design-tokens/{typography → typography-tokens}/TypographyTokens.stories.d.ts +1 -0
- package/dist/styles/design-tokens/variables.d.ts +10 -10
- package/dist/styles/design-tokens/variables.js +1 -1
- package/dist/styles/global-styles.d.ts +1 -0
- package/dist/styles/global-styles.js +14 -31
- package/dist/styles/theme/genesis-theme.js +257 -212
- package/dist/styles/theme/genesis-theme.types.d.ts +46 -0
- package/dist/styles/theme/index.js +4 -5
- package/dist/styles-CT_fyXBd.js +1808 -0
- package/dist/test/setup.js +3 -46
- package/dist/useLocale-DT-z_vQ6.js +16 -0
- package/dist/useVariants-DvhXfgJY.js +30 -0
- package/dist/utils/isAllEnglishString.js +1 -2
- package/dist/{presets-83ccb923.js → warning-C63HNL9U.js} +358 -356
- package/package.json +35 -35
- package/dist/CheckOutlined-52d9ac25.js +0 -29
- package/dist/ContextIsolator-b09b2c52.js +0 -20
- package/dist/EllipsisOutlined-60122660.js +0 -1115
- package/dist/InfoCircleFilled-c5f90c20.js +0 -16
- package/dist/RightOutlined-83515eb4.js +0 -16
- package/dist/compact-item-b8f85aa6.js +0 -75
- package/dist/index-0a886e53.js +0 -100
- package/dist/index-0b9ee239.js +0 -955
- package/dist/index-1a33c134.js +0 -1389
- package/dist/index-4003d75b.js +0 -3748
- package/dist/index-89035ea5.js +0 -3242
- package/dist/providers/ToastWrapper.d.ts +0 -7
- package/dist/providers/ToastWrapper.js +0 -56
- package/dist/setup-aaca7b6f.js +0 -21158
- package/dist/styles/theme/global-styles.d.ts +0 -1
- package/dist/styles/theme/global-styles.js +0 -36
- package/dist/useVariants-a0d64298.js +0 -30
- /package/dist/{presetColors-ccf8cb4c.js → presetColors-Cl8UP3Nw.js} +0 -0
- /package/dist/{reactNode-f4391605.js → reactNode-sKPeiqPL.js} +0 -0
package/package.json
CHANGED
|
@@ -1,22 +1,40 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gobolt/genesis",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.9",
|
|
4
4
|
"description": "genesis design system",
|
|
5
5
|
"author": "gobolt",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": "SecondCloset/genesis",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"main": "dist/index.js",
|
|
10
|
-
"types": "dist/
|
|
10
|
+
"types": "dist/components/index.d.ts",
|
|
11
11
|
"files": [
|
|
12
12
|
"dist"
|
|
13
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
|
+
"type": "tsc --noEmit"
|
|
29
|
+
},
|
|
14
30
|
"peerDependencies": {
|
|
15
|
-
"react": "^
|
|
16
|
-
"react-dom": "^
|
|
31
|
+
"react": "^18.0.0",
|
|
32
|
+
"react-dom": "^18.0.0"
|
|
17
33
|
},
|
|
18
34
|
"devDependencies": {
|
|
19
35
|
"@changesets/cli": "^2.27.8",
|
|
36
|
+
"@fontsource/inter": "^5.1.1",
|
|
37
|
+
"@fontsource/roboto-mono": "^5.1.1",
|
|
20
38
|
"@rollup/plugin-node-resolve": "^15.3.0",
|
|
21
39
|
"@rollup/plugin-typescript": "^12.1.1",
|
|
22
40
|
"@storybook/addon-essentials": "^8.5.0",
|
|
@@ -24,16 +42,18 @@
|
|
|
24
42
|
"@storybook/addon-links": "^8.5.0",
|
|
25
43
|
"@storybook/addon-mdx-gfm": "^8.5.0",
|
|
26
44
|
"@storybook/blocks": "^8.5.0",
|
|
45
|
+
"@storybook/manager-api": "^8.5.2",
|
|
27
46
|
"@storybook/react": "^8.5.0",
|
|
28
47
|
"@storybook/react-vite": "^8.5.0",
|
|
29
48
|
"@storybook/test": "^8.5.0",
|
|
30
49
|
"@storybook/test-runner": "^0.19.1",
|
|
50
|
+
"@storybook/theming": "^8.5.2",
|
|
31
51
|
"@types/jest": "^29.5.11",
|
|
32
|
-
"@types/react": "^
|
|
33
|
-
"@types/react-dom": "^
|
|
52
|
+
"@types/react": "^18.2.37",
|
|
53
|
+
"@types/react-dom": "^18.2.15",
|
|
34
54
|
"@typescript-eslint/eslint-plugin": "^6.10.0",
|
|
35
55
|
"@typescript-eslint/parser": "^6.10.0",
|
|
36
|
-
"@vitejs/plugin-react": "^4.
|
|
56
|
+
"@vitejs/plugin-react": "^4.2.1",
|
|
37
57
|
"@vitest/browser": "^2.0.2",
|
|
38
58
|
"eslint": "^8.57.1",
|
|
39
59
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
@@ -42,23 +62,19 @@
|
|
|
42
62
|
"glob": "^10.3.10",
|
|
43
63
|
"jest": "^29.7.0",
|
|
44
64
|
"jsdom": "^23.0.1",
|
|
45
|
-
"react": "^
|
|
46
|
-
"react-dom": "^
|
|
65
|
+
"react": "^18.2.0",
|
|
66
|
+
"react-dom": "^18.2.0",
|
|
47
67
|
"rollup-plugin-dts": "^6.1.1",
|
|
48
68
|
"storybook": "8.5.0",
|
|
49
69
|
"tsx": "^4.19.2",
|
|
50
70
|
"typescript": "^5.2.2",
|
|
51
|
-
"vite": "^
|
|
71
|
+
"vite": "^5.0.0",
|
|
52
72
|
"vite-plugin-dts": "^3.6.4",
|
|
53
73
|
"vite-plugin-lib-inject-css": "^1.3.0",
|
|
54
|
-
"vitest": "^2.1.8"
|
|
55
|
-
"@testing-library/react": "^12.1.5",
|
|
56
|
-
"@testing-library/dom": "^8.0.0",
|
|
57
|
-
"@testing-library/user-event": "^13.5.0"
|
|
74
|
+
"vitest": "^2.1.8"
|
|
58
75
|
},
|
|
59
76
|
"dependencies": {
|
|
60
77
|
"@ant-design/icons": "^5.5.2",
|
|
61
|
-
"@fontsource/inter": "^5.1.1",
|
|
62
78
|
"@mdx-js/react": "^3.0.1",
|
|
63
79
|
"@secondcloset/types": "^3.4.6",
|
|
64
80
|
"@storybook/addon-a11y": "^8.5.0",
|
|
@@ -71,14 +87,12 @@
|
|
|
71
87
|
"chalk": "^5.4.1",
|
|
72
88
|
"clsx": "^1.1.0",
|
|
73
89
|
"date-fns": "^3.6.0",
|
|
74
|
-
"rc-notification": "^5.6.2",
|
|
75
90
|
"react-error-boundary": "^4.0.11",
|
|
91
|
+
"react-toastify": "^11.0.3",
|
|
76
92
|
"rollup-plugin-css-only": "^4.5.2",
|
|
77
93
|
"styled-components": "^6.1.14",
|
|
78
94
|
"vite-plugin-css-injected-by-js": "^3.3.0",
|
|
79
|
-
"vite-tsconfig-paths": "^5.1.4"
|
|
80
|
-
"react": "^17.0.2",
|
|
81
|
-
"react-dom": "^17.0.2"
|
|
95
|
+
"vite-tsconfig-paths": "^5.1.4"
|
|
82
96
|
},
|
|
83
97
|
"sideEffects": [
|
|
84
98
|
"**/*.css"
|
|
@@ -103,19 +117,5 @@
|
|
|
103
117
|
"bugs": {
|
|
104
118
|
"url": "https://github.com/SecondCloset/genesis/issues"
|
|
105
119
|
},
|
|
106
|
-
"homepage": "https://github.com/SecondCloset/genesis#readme"
|
|
107
|
-
|
|
108
|
-
"dev": "vite",
|
|
109
|
-
"build": "tsc --extendedDiagnostics --p ./tsconfig-build.json && vite build",
|
|
110
|
-
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
111
|
-
"preview": "vite preview",
|
|
112
|
-
"start": "storybook dev -p 6006",
|
|
113
|
-
"storybook": "storybook dev -p 6006",
|
|
114
|
-
"build-storybook": "storybook build",
|
|
115
|
-
"test": "vitest run",
|
|
116
|
-
"coverage": "vitest run --coverage",
|
|
117
|
-
"generate": "tsx ./lab/generate/generate-component",
|
|
118
|
-
"generate:story": "tsx ./lab/generate/generate-story",
|
|
119
|
-
"test:watch": "vitest"
|
|
120
|
-
}
|
|
121
|
-
}
|
|
120
|
+
"homepage": "https://github.com/SecondCloset/genesis#readme"
|
|
121
|
+
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import * as t from "react";
|
|
2
|
-
import { L as d, d as a } from "./index-4003d75b.js";
|
|
3
|
-
import { a as f } from "./presets-83ccb923.js";
|
|
4
|
-
import { A as v } from "./AntdIcon-c395a1c4.js";
|
|
5
|
-
const C = (c, n) => {
|
|
6
|
-
const e = t.useContext(d), r = t.useMemo(() => {
|
|
7
|
-
var o;
|
|
8
|
-
const l = n || a[c], u = (o = e == null ? void 0 : e[c]) !== null && o !== void 0 ? o : {};
|
|
9
|
-
return Object.assign(Object.assign({}, typeof l == "function" ? l() : l), u || {});
|
|
10
|
-
}, [c, n, e]), i = t.useMemo(() => {
|
|
11
|
-
const o = e == null ? void 0 : e.locale;
|
|
12
|
-
return e != null && e.exist && !o ? a.locale : o;
|
|
13
|
-
}, [e]);
|
|
14
|
-
return [r, i];
|
|
15
|
-
}, k = C;
|
|
16
|
-
var h = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" } }] }, name: "check", theme: "outlined" };
|
|
17
|
-
const m = h;
|
|
18
|
-
var O = function(n, e) {
|
|
19
|
-
return /* @__PURE__ */ t.createElement(v, f({}, n, {
|
|
20
|
-
ref: e,
|
|
21
|
-
icon: m
|
|
22
|
-
}));
|
|
23
|
-
}, s = /* @__PURE__ */ t.forwardRef(O);
|
|
24
|
-
process.env.NODE_ENV !== "production" && (s.displayName = "CheckOutlined");
|
|
25
|
-
const x = s;
|
|
26
|
-
export {
|
|
27
|
-
x as C,
|
|
28
|
-
k as u
|
|
29
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import r from "react";
|
|
2
|
-
import { N as a } from "./context-3b8a39af.js";
|
|
3
|
-
import { N as s } from "./Compact-c39ed20d.js";
|
|
4
|
-
const m = (o) => {
|
|
5
|
-
const {
|
|
6
|
-
space: l,
|
|
7
|
-
form: n,
|
|
8
|
-
children: e
|
|
9
|
-
} = o;
|
|
10
|
-
if (e == null)
|
|
11
|
-
return null;
|
|
12
|
-
let t = e;
|
|
13
|
-
return n && (t = /* @__PURE__ */ r.createElement(a, {
|
|
14
|
-
override: !0,
|
|
15
|
-
status: !0
|
|
16
|
-
}, t)), l && (t = /* @__PURE__ */ r.createElement(s, null, t)), t;
|
|
17
|
-
}, i = m;
|
|
18
|
-
export {
|
|
19
|
-
i as C
|
|
20
|
-
};
|