@gobolt/genesis 0.0.11 → 0.1.0
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 +6 -0
- package/dist/ClockCircleOutlined-BaXQuLIn.js +13 -0
- package/dist/{Compact-DBh6nSYB.js → Compact-Du9689ax.js} +8 -8
- package/dist/{ContextIsolator-CwuJooYf.js → ContextIsolator-BmfhJgG0.js} +2 -2
- package/dist/{DownOutlined-5-15jS0h.js → DownOutlined-Dcq69ZKM.js} +9 -9
- package/dist/{EllipsisOutlined-CJ2pgE2d.js → EllipsisOutlined-DGMph0Bj.js} +110 -110
- package/dist/{Keyframes-sPZXYuXt.js → Keyframes-C9_aCDvn.js} +1 -1
- package/dist/{Overflow-DdNKJLQh.js → Overflow-DWf4XIal.js} +31 -31
- package/dist/{Skeleton-B3vg9CbL.js → Skeleton-BVN4pcVe.js} +2 -2
- package/dist/TextArea-Bkf9hh7l.js +708 -0
- package/dist/{Typography-DqI7RslA.js → Typography-CoZ5qD-t.js} +3 -3
- package/dist/{button-B2Rgggx2.js → button-BwqpCxVM.js} +5 -5
- package/dist/components/Avatar/Avatar.js +3 -3
- package/dist/components/Avatar/__tests__/Avatar.test.js +1 -1
- package/dist/components/Avatar/styles.js +42 -42
- package/dist/components/Badge/Badge.js +3 -3
- package/dist/components/Badge/__tests__/Badge.test.js +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
- package/dist/components/Breadcrumb/__tests__/Breadcrumb.test.js +1 -1
- package/dist/components/Breadcrumb/styles.js +4 -4
- package/dist/components/Button/__tests__/Button.test.js +1 -1
- package/dist/components/Button/styles.js +1 -1
- package/dist/components/Card/__tests__/Card.test.js +1 -1
- package/dist/components/Card/styles.js +1 -1
- package/dist/components/Checkbox/Checkbox.js +3 -3
- package/dist/components/Checkbox/__tests__/Checkbox.test.js +1 -1
- package/dist/components/Checkbox/styles.js +1 -1
- package/dist/components/Dashboard/__stories__/DashboardLayoutContent.js +8 -8
- package/dist/components/Dashboard/__stories__/DashboardLayoutHeader.js +4 -4
- package/dist/components/Dashboard/__tests__/Dashboard.test.js +1 -1
- package/dist/components/DatePicker/DatePicker.d.ts +6 -0
- package/dist/components/DatePicker/DatePicker.js +5 -0
- package/dist/components/DatePicker/__stories__/DatePicker.stories.d.ts +10 -0
- package/dist/components/DatePicker/__tests__/DatePicker.test.d.ts +1 -0
- package/dist/components/DatePicker/__tests__/DatePicker.test.js +19 -0
- package/dist/components/DatePicker/index.d.ts +2 -0
- package/dist/components/DatePicker/index.js +4 -0
- package/dist/components/DateRangePicker/DateRangePicker.d.ts +5 -0
- package/dist/components/DateRangePicker/DateRangePicker.js +5 -0
- package/dist/components/DateRangePicker/__stories__/DateRangePicker.stories.d.ts +9 -0
- package/dist/components/DateRangePicker/__tests__/DateRangePicker.test.d.ts +1 -0
- package/dist/components/DateRangePicker/__tests__/DateRangePicker.test.js +23 -0
- package/dist/components/DateRangePicker/index.d.ts +2 -0
- package/dist/components/DateRangePicker/index.js +4 -0
- package/dist/components/ErrorBoundary/ErrorBoundary.js +3 -3
- package/dist/components/ErrorBoundary/__tests__/ErrorBoundary.test.js +1 -1
- package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.js +3 -3
- package/dist/components/ErrorBoundaryFallback/styles.js +1 -1
- package/dist/components/Form/Form.js +2 -2
- package/dist/components/Form/__stories__/FormStory.js +4 -4
- package/dist/components/Form/__tests__/form.test.js +2 -2
- package/dist/components/Form/index.js +1 -1
- package/dist/components/Form/styles.js +1 -1
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/Input/__tests__/Input.test.js +1 -1
- package/dist/components/Input/styles.js +1 -1
- package/dist/components/Layout/Content/ResponsiveContent.js +3 -3
- package/dist/components/Layout/MainLayout/MainLayout.js +1 -1
- package/dist/components/Layout/__tests__/Layout.test.js +1 -1
- package/dist/components/Message/Message.js +3 -3
- package/dist/components/Message/__tests__/Message.test.js +1 -1
- package/dist/components/Notification/Notification.js +3 -3
- package/dist/components/Notification/NotificationBadge/__tests__/NotificationBadge.test.js +1 -1
- package/dist/components/Notification/__tests__/Notification.test.js +1 -1
- package/dist/components/Popover/Popover.js +1 -1
- package/dist/components/Popover/__tests__/Popover.test.js +1 -1
- package/dist/components/Popover/styles.js +1 -1
- package/dist/components/Progress/Progress.js +3 -3
- package/dist/components/Progress/Progress.util.js +3 -3
- package/dist/components/Progress/ProgressText.js +3 -3
- package/dist/components/Progress/__tests__/Progress.test.js +1 -1
- package/dist/components/Progress/styles.js +3 -3
- package/dist/components/Radio/Radio.js +3 -3
- package/dist/components/Radio/RadioGroup.js +1 -1
- package/dist/components/Radio/__tests__/RadioGroup.test.js +1 -1
- package/dist/components/Row/Row.js +1 -1
- package/dist/components/Row/RowActions/RowActions.js +3 -3
- package/dist/components/Row/RowLabelValue/RowLabelValue.js +3 -3
- package/dist/components/Row/RowLabelValue/styles.js +1 -1
- package/dist/components/Row/__tests__/Row.test.js +1 -1
- package/dist/components/SegmentedControls/__tests__/SegmentedControls.test.js +1 -1
- package/dist/components/SegmentedControls/styles.js +27 -27
- package/dist/components/Select/Select.js +1 -1
- package/dist/components/Select/__tests__/Select.test.js +1 -1
- package/dist/components/Select/styles.js +1 -1
- package/dist/components/Shapes/__tests__/Shapes.test.js +1 -1
- package/dist/components/Switch/__tests__/Switch.test.js +1 -1
- package/dist/components/Switch/styles.js +15 -15
- package/dist/components/Table/Table.js +1 -1
- package/dist/components/Table/__mocks__/table-mocks.js +3 -3
- package/dist/components/Table/__tests__/Table.test.js +1 -1
- package/dist/components/Table/styles.js +1 -1
- package/dist/components/Tabs/__tests__/Tabs.test.js +1 -1
- package/dist/components/Tabs/styles.js +1 -1
- package/dist/components/Tile/__tests__/Tile.test.js +1 -1
- package/dist/components/Toast/Toast.js +3 -3
- package/dist/components/Toast/__tests__/Toast.test.js +2 -2
- package/dist/components/Toast/index.js +1 -1
- package/dist/components/Tooltip/Tooltip.js +3 -3
- package/dist/components/Tooltip/__tests__/Tooltip.test.js +1 -1
- package/dist/components/Tooltip/styles.js +1 -1
- package/dist/components/Typography/Typography.js +1 -1
- package/dist/components/Typography/__tests__/Typography.test.js +2 -2
- package/dist/components/Typography/index.js +1 -1
- package/dist/components/Typography/styles.js +1 -1
- package/dist/components/index.d.ts +4 -0
- package/dist/components/index.js +46 -42
- package/dist/{context-Cx7GtZpz.js → context-DIFtNa4d.js} +70 -70
- package/dist/{dropdown-zGGFIyJ_.js → dropdown-Dp_PTQ2u.js} +60 -59
- package/dist/genesis/GenesisThemeBreakdown.js +86 -44
- package/dist/genesis/labs/Lab.stories.d.ts +6 -0
- package/dist/genesis/styles.js +2 -2
- package/dist/{index-CdiHBmVe.js → index-BPVue1Yd.js} +44 -44
- package/dist/{index-CRotrkWm.js → index-BQM5OniU.js} +7 -7
- package/dist/{index-BTGF--50.js → index-B_1Ge8na.js} +20 -19
- package/dist/{index-ByspLxrB.js → index-BbTV2Cw5.js} +32 -31
- package/dist/index-BeGv28kJ.js +5173 -0
- package/dist/{index-Dyl-ddV6.js → index-BpZSuIUV.js} +16 -16
- package/dist/{index-CodMmNWv.js → index-BvOLXELm.js} +3 -3
- package/dist/{index-hoPiccJv.js → index-CLSrpQRW.js} +9 -8
- package/dist/{index-D0P16DlX.js → index-CbVOl2U6.js} +26 -24
- package/dist/{index-DWUXwgXK.js → index-D0U6r5O7.js} +265 -294
- package/dist/{index-BW_7pvTr.js → index-DEu2PVzQ.js} +4 -4
- package/dist/{index-DmZOkMjs.js → index-DNQ-jnBx.js} +1207 -1514
- package/dist/index-DOsPeIWJ.js +1000 -0
- package/dist/{index-CSPlXIlA.js → index-DRGX1Wem.js} +7 -7
- package/dist/index-DWjq9XYj.js +899 -0
- package/dist/index.js +53 -49
- package/dist/motion-CUN72xsH.js +33 -0
- package/dist/providers/GenesisProvider.js +1 -1
- package/dist/providers/ToastProvider.js +3 -3
- package/dist/providers/index.js +1 -1
- package/dist/providers/useGenesis.js +1 -1
- package/dist/{responsiveObserver-O1kw80RG.js → responsiveObserver-dCkpy7Cb.js} +1 -1
- package/dist/roundedArrow-DI_Q-xdU.js +65 -0
- package/dist/{setup-CKu7-AfI.js → setup-CUbCc8fQ.js} +2 -2
- package/dist/styles/design-tokens/border-tokens/BorderTokenList.js +7 -7
- package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.js +3 -3
- package/dist/styles/theme/genesis-theme.js +211 -349
- package/dist/styles/theme/theme-tree/ThemeTree.js +114 -113
- package/dist/{styles-BSD221S5.js → styles-CWdUpZom.js} +12 -12
- package/dist/{styles-BDbHpHsc.js → styles-D1vKDy9V.js} +9 -9
- package/dist/{styles-D9iYILpv.js → styles-qerRs7Rn.js} +493 -492
- package/dist/test/setup.js +2 -2
- package/dist/{toArray-DGvPoJP_.js → toArray-U3Az44CO.js} +1 -1
- package/dist/{useBreakpoint-CAMzKscx.js → useBreakpoint-TkMv121M.js} +2 -2
- package/dist/{useCSSVarCls-C-MlZC6a.js → useCSSVarCls-Dau77fzS.js} +1 -1
- package/dist/useIcons-Ck4JP1m9.js +321 -0
- package/dist/{useLocale-DWRfeMSS.js → useLocale-CTfNpakL.js} +1 -1
- package/dist/{useMergedState-BoELfaU9.js → useMergedState-D6toxSxh.js} +1 -1
- package/dist/{useSize-CPo2bUE3.js → useSize-DSq4r6zy.js} +1 -1
- package/dist/{useVariants-Cin23jEC.js → useVariants-DrLzUVLU.js} +2 -2
- package/dist/{useZIndex-D81lkWy4.js → useZIndex-DhyHuZTN.js} +1 -1
- package/dist/utils/icon-util.js +38 -44
- package/package.json +2 -1
- package/dist/TextArea-CKWbFr0u.js +0 -1698
- package/dist/index-CqqwGTME.js +0 -956
package/README.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
<div style="display: flex; justify-content: center; width: 100%; position: relative; height: 200px">
|
|
2
|
+
<div style="display: flex; position: absolute; bottom: 0; left: 40%">
|
|
3
|
+
<img src="./public/genesis-conveyor-mark.svg" width="150">
|
|
4
|
+
</div>
|
|
5
|
+
</div>
|
|
6
|
+
|
|
1
7
|
# GENESIS Design System
|
|
2
8
|
|
|
3
9
|
 
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { d as r } from "./presets-Djh_L_6R.js";
|
|
2
|
+
import * as e from "react";
|
|
3
|
+
import { I as o } from "./AntdIcon-nCNB0J1E.js";
|
|
4
|
+
var a = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }, { tag: "path", attrs: { d: "M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z" } }] }, name: "clock-circle", theme: "outlined" }, l = function(c, t) {
|
|
5
|
+
return /* @__PURE__ */ e.createElement(o, r({}, c, {
|
|
6
|
+
ref: t,
|
|
7
|
+
icon: a
|
|
8
|
+
}));
|
|
9
|
+
}, i = /* @__PURE__ */ e.forwardRef(l);
|
|
10
|
+
process.env.NODE_ENV !== "production" && (i.displayName = "ClockCircleOutlined");
|
|
11
|
+
export {
|
|
12
|
+
i as R
|
|
13
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as o from "react";
|
|
2
2
|
import { e as g } from "./presets-Djh_L_6R.js";
|
|
3
|
-
import { t as h } from "./toArray-
|
|
4
|
-
import {
|
|
5
|
-
import { u as P } from "./useSize-
|
|
3
|
+
import { t as h } from "./toArray-U3Az44CO.js";
|
|
4
|
+
import { j as w, m as O, C as N } from "./index-BbTV2Cw5.js";
|
|
5
|
+
import { u as P } from "./useSize-DSq4r6zy.js";
|
|
6
6
|
import "./index-DLdU7Tpd.js";
|
|
7
7
|
const D = (e) => {
|
|
8
8
|
const {
|
|
@@ -57,7 +57,7 @@ const D = (e) => {
|
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
};
|
|
60
|
-
},
|
|
60
|
+
}, j = (e) => {
|
|
61
61
|
const {
|
|
62
62
|
componentCls: t
|
|
63
63
|
} = e;
|
|
@@ -83,13 +83,13 @@ const D = (e) => {
|
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
};
|
|
86
|
-
},
|
|
86
|
+
}, M = w("Space", (e) => {
|
|
87
87
|
const t = O(e, {
|
|
88
88
|
spaceGapSmallSize: e.paddingXS,
|
|
89
89
|
spaceGapMiddleSize: e.padding,
|
|
90
90
|
spaceGapLargeSize: e.paddingLG
|
|
91
91
|
});
|
|
92
|
-
return [L(t),
|
|
92
|
+
return [L(t), j(t), D(t)];
|
|
93
93
|
}, () => ({}), {
|
|
94
94
|
// Space component don't apply extra font style
|
|
95
95
|
// https://github.com/ant-design/ant-design/issues/40315
|
|
@@ -148,7 +148,7 @@ const p = /* @__PURE__ */ o.createContext(null), R = (e, t) => {
|
|
|
148
148
|
className: l,
|
|
149
149
|
rootClassName: C,
|
|
150
150
|
children: y
|
|
151
|
-
} = e, x = S(e, ["size", "direction", "block", "prefixCls", "className", "rootClassName", "children"]), I = P((i) => a ?? i), s = t("space-compact", u), [z, G] =
|
|
151
|
+
} = e, x = S(e, ["size", "direction", "block", "prefixCls", "className", "rootClassName", "children"]), I = P((i) => a ?? i), s = t("space-compact", u), [z, G] = M(s), b = g(s, G, {
|
|
152
152
|
[`${s}-rtl`]: n === "rtl",
|
|
153
153
|
[`${s}-block`]: d,
|
|
154
154
|
[`${s}-vertical`]: c === "vertical"
|
|
@@ -169,6 +169,6 @@ const p = /* @__PURE__ */ o.createContext(null), R = (e, t) => {
|
|
|
169
169
|
export {
|
|
170
170
|
V as C,
|
|
171
171
|
T as N,
|
|
172
|
-
|
|
172
|
+
M as a,
|
|
173
173
|
R as u
|
|
174
174
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { q as K, C as x } from "./index-BbTV2Cw5.js";
|
|
2
2
|
import * as t from "react";
|
|
3
3
|
import { d as E } from "./presets-Djh_L_6R.js";
|
|
4
|
-
import { K as r } from "./Keyframes-
|
|
5
|
-
import { i as j } from "./index-
|
|
6
|
-
import { u as D } from "./useMergedState-
|
|
4
|
+
import { K as r } from "./Keyframes-C9_aCDvn.js";
|
|
5
|
+
import { i as j } from "./index-D0U6r5O7.js";
|
|
6
|
+
import { u as D } from "./useMergedState-D6toxSxh.js";
|
|
7
7
|
import { I as $ } from "./AntdIcon-nCNB0J1E.js";
|
|
8
8
|
const z = new r("antMoveDownIn", {
|
|
9
9
|
"0%": {
|
|
@@ -130,7 +130,7 @@ const z = new r("antMoveDownIn", {
|
|
|
130
130
|
}
|
|
131
131
|
}];
|
|
132
132
|
};
|
|
133
|
-
function
|
|
133
|
+
function q(e) {
|
|
134
134
|
return (n) => /* @__PURE__ */ t.createElement(K, {
|
|
135
135
|
theme: {
|
|
136
136
|
token: {
|
|
@@ -140,7 +140,7 @@ function F(e) {
|
|
|
140
140
|
}
|
|
141
141
|
}, /* @__PURE__ */ t.createElement(e, Object.assign({}, n)));
|
|
142
142
|
}
|
|
143
|
-
const k = (e, n, s, o, i) =>
|
|
143
|
+
const k = (e, n, s, o, i) => q((f) => {
|
|
144
144
|
const {
|
|
145
145
|
prefixCls: y,
|
|
146
146
|
style: w
|
|
@@ -190,10 +190,10 @@ const k = (e, n, s, o, i) => F((f) => {
|
|
|
190
190
|
style: R
|
|
191
191
|
}, /* @__PURE__ */ t.createElement(e, Object.assign({}, d)));
|
|
192
192
|
});
|
|
193
|
-
var
|
|
193
|
+
var F = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" } }] }, name: "down", theme: "outlined" }, N = function(n, s) {
|
|
194
194
|
return /* @__PURE__ */ t.createElement($, E({}, n, {
|
|
195
195
|
ref: s,
|
|
196
|
-
icon:
|
|
196
|
+
icon: F
|
|
197
197
|
}));
|
|
198
198
|
}, V = /* @__PURE__ */ t.forwardRef(N);
|
|
199
199
|
process.env.NODE_ENV !== "production" && (V.displayName = "DownOutlined");
|
|
@@ -201,5 +201,5 @@ export {
|
|
|
201
201
|
V as R,
|
|
202
202
|
k as g,
|
|
203
203
|
Z as i,
|
|
204
|
-
|
|
204
|
+
q as w
|
|
205
205
|
};
|