@gobolt/genesis 0.0.7 → 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 +18 -2
- package/dist/{AntdIcon-Bsnbyy6g.js → AntdIcon-BoLh1dP8.js} +37 -35
- package/dist/CheckOutlined-CeTKr6II.js +13 -0
- package/dist/{CloseCircleFilled-ZIY-u-27.js → CloseCircleFilled-DXCxlIQL.js} +2 -2
- package/dist/CloseOutlined-ClXDNn82.js +13 -0
- package/dist/{Compact-CJBo3f0u.js → Compact-CGY560JF.js} +45 -53
- package/dist/{ContextIsolator-CGkdKtc3.js → ContextIsolator-D5x2Ih51.js} +2 -2
- package/dist/{ExclamationCircleFilled-BICVVQIg.js → ExclamationCircleFilled-C0Kj5KQV.js} +2 -2
- package/dist/{CheckOutlined-DAynWe12.js → KeyCode-DM2sFh3-.js} +10 -20
- package/dist/LoadingOutlined-8EnJdZ7I.js +13 -0
- package/dist/Overflow-PBZD-PFm.js +360 -0
- package/dist/PurePanel-BqPLRtc2.js +203 -0
- package/dist/SearchOutlined-BP3Z2K6j.js +13 -0
- package/dist/{TextArea-3MOYYuAQ.js → TextArea-DKwCct3i.js} +26 -16
- package/dist/Typography-aGoDUl4R.js +710 -0
- package/dist/bundle.css +1204 -0
- package/dist/{button-BNV2qdrP.js → button-CDQgO1OK.js} +200 -197
- package/dist/collapse-Dtpt-6W_.js +20 -0
- package/dist/components/Badge/Badge.d.ts +6 -0
- package/dist/components/Badge/Badge.js +103 -0
- package/dist/components/Badge/__stories__/Badge.stories.d.ts +13 -0
- package/dist/components/Badge/__tests__/Badge.test.js +18 -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 +4 -0
- package/dist/components/Badge/styles.d.ts +3 -0
- package/dist/components/Badge/styles.js +34 -0
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +8 -0
- package/dist/components/Breadcrumb/Breadcrumb.js +11 -0
- package/dist/components/Breadcrumb/Breadcrumb.types.d.ts +22 -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 +23 -0
- package/dist/components/Breadcrumb/index.d.ts +3 -0
- package/dist/components/Breadcrumb/index.js +4 -0
- package/dist/components/Breadcrumb/styles.d.ts +27 -0
- package/dist/components/Breadcrumb/styles.js +2436 -0
- package/dist/components/Button/Button.d.ts +14 -0
- package/dist/components/Button/Button.js +22 -0
- package/dist/components/Button/__tests__/Button.test.js +16 -0
- package/dist/components/Button/styles.d.ts +16 -0
- package/dist/components/{atoms/button → Button}/styles.js +12 -12
- package/dist/components/{atoms/checkbox → Checkbox}/Checkbox.d.ts +2 -1
- package/dist/components/Checkbox/Checkbox.js +40 -0
- package/dist/components/{atoms/checkbox → Checkbox}/__tests__/Checkbox.test.js +1 -1
- package/dist/components/{atoms/checkbox → Checkbox}/styles.d.ts +5 -0
- package/dist/components/{atoms/checkbox → Checkbox}/styles.js +97 -96
- package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.d.ts +8 -0
- package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.js +40 -0
- package/dist/components/ErrorBoundaryFallback/index.d.ts +2 -0
- package/dist/components/{molecules/error-boundary-fallback → ErrorBoundaryFallback}/styles.js +22 -21
- package/dist/components/Form/Form.d.ts +26 -0
- package/dist/components/Form/Form.js +8 -0
- package/dist/components/Form/__stories__/FormStory.js +93 -0
- 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 +4 -0
- package/dist/components/Form/styles.d.ts +3 -0
- package/dist/components/Form/styles.js +5 -0
- package/dist/components/{atoms/input → Input}/Input.d.ts +1 -3
- package/dist/components/Input/Input.js +19 -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 +24 -0
- package/dist/components/{atoms/input → Input}/styles.d.ts +2 -0
- package/dist/components/Input/styles.js +529 -0
- package/dist/components/Message/Message.d.ts +13 -0
- package/dist/components/Message/Message.js +78 -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 +42 -0
- package/dist/components/Message/index.d.ts +2 -0
- package/dist/components/Message/index.js +4 -0
- package/dist/components/Message/styles.d.ts +8 -0
- package/dist/components/Message/styles.js +41 -0
- package/dist/components/Notification/Notification.d.ts +17 -0
- package/dist/components/Notification/Notification.js +1370 -0
- package/dist/components/Notification/NotificationRightChevron.d.ts +2 -0
- package/dist/components/Notification/NotificationRightChevron.js +23 -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 +15 -0
- package/dist/components/Notification/index.d.ts +2 -0
- package/dist/components/Notification/index.js +4 -0
- package/dist/components/Notification/styles.d.ts +16 -0
- package/dist/components/Notification/styles.js +65 -0
- package/dist/components/Radio/Radio.d.ts +14 -0
- package/dist/components/Radio/Radio.js +28 -0
- package/dist/components/Radio/RadioGroup.d.ts +12 -0
- package/dist/components/Radio/RadioGroup.js +33 -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 +30 -0
- package/dist/components/Radio/index.d.ts +2 -0
- package/dist/components/Radio/index.js +4 -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/Select/DropdownChevron.d.ts +2 -0
- package/dist/components/Select/DropdownChevron.js +23 -0
- package/dist/components/Select/Select.d.ts +16 -0
- package/dist/components/Select/Select.js +36 -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/{atoms/select → Select}/__tests__/Select.test.js +1165 -1140
- package/dist/components/Select/styles.d.ts +32 -0
- package/dist/components/{atoms/select → Select}/styles.js +1517 -1651
- package/dist/components/Toast/Toast.d.ts +14 -0
- package/dist/components/Toast/Toast.js +19 -0
- package/dist/components/Toast/__stories__/Toast.stories.d.ts +16 -0
- package/dist/components/Toast/__tests__/Toast.test.d.ts +1 -0
- package/dist/components/Toast/__tests__/Toast.test.js +18 -0
- package/dist/components/Toast/index.d.ts +2 -0
- package/dist/components/Toast/index.js +4 -0
- package/dist/components/Toast/styles.d.ts +10 -0
- package/dist/components/Toast/styles.js +54 -0
- package/dist/components/Typography/Typography.d.ts +15 -0
- package/dist/components/Typography/Typography.js +8 -0
- package/dist/components/{atoms/typography → Typography}/__stories__/Typography.stories.d.ts +1 -0
- package/dist/components/Typography/__tests__/Typography.test.d.ts +1 -0
- package/dist/components/Typography/__tests__/Typography.test.js +23 -0
- package/dist/components/Typography/index.js +4 -0
- package/dist/components/Typography/styles.d.ts +21 -0
- package/dist/components/Typography/styles.js +48 -0
- package/dist/components/index.d.ts +26 -14
- package/dist/components/index.js +23 -13
- package/dist/constants/index.d.ts +104 -0
- package/dist/constants/index.js +41 -7
- package/dist/{context-CZsFJmh6.js → context-BMW3aJEf.js} +162 -161
- package/dist/genesis/GenesisThemeBreakdown.js +54 -24
- package/dist/genesis/GenesisThemeDemo.d.ts +0 -2
- package/dist/genesis/GenesisThemeDemo.js +3 -4
- package/dist/genesis/styles.js +1095 -2186
- package/dist/{index-C7kFNqp2.js → index-1CBpubM3.js} +36 -36
- package/dist/{index-3MWkSVA1.js → index-BZAhCB_K.js} +6 -5
- package/dist/{index-D1v_7IIx.js → index-C0SmxWLS.js} +95 -94
- package/dist/index-C8haFnXI.js +1112 -0
- package/dist/{index-VDH3iLaC.js → index-CfDY25LP.js} +298 -309
- package/dist/{index-SAAXFt-P.js → index-DPW8XdWj.js} +255 -249
- package/dist/{index-BQO27mgE.js → index-bKlRxQp4.js} +52 -51
- package/dist/index-oK7z6jnz.js +22795 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +31 -18
- package/dist/{isVisible-CNQjrJPN.js → isVisible-A-IfeFoT.js} +34 -33
- package/dist/{magic-string.es-BkUFmFT4.js → magic-string.es-D2FWSwU3.js} +1 -1
- package/dist/{SearchOutlined-DuzJkIiQ.js → pickAttrs-B0YTfcV1.js} +16 -26
- package/dist/providers/GenesisProvider.js +9 -5
- package/dist/providers/ThemeProvider.d.ts +2 -2
- package/dist/providers/ThemeProvider.js +4 -1
- package/dist/providers/ToastProvider.d.ts +13 -0
- package/dist/providers/ToastProvider.js +20 -0
- package/dist/providers/__stories__/GenesisProvider.stories.d.ts +6 -0
- package/dist/providers/index.d.ts +1 -1
- package/dist/providers/index.js +4 -4
- package/dist/providers/useGenesis.d.ts +7 -0
- package/dist/providers/useGenesis.js +6 -0
- package/dist/{setup-CMYVZCPF.js → setup-BvfREoHl.js} +6948 -6940
- package/dist/styles/design-tokens/border-tokens/BorderTokenList.js +22 -16
- package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.js +21 -15
- package/dist/styles/design-tokens/{typography → typography-tokens}/TypographyTokens.stories.d.ts +1 -0
- package/dist/styles/design-tokens/variables.d.ts +17 -17
- package/dist/styles/design-tokens/variables.js +48 -48
- package/dist/styles/global-styles.d.ts +1 -0
- package/dist/styles/global-styles.js +13 -29
- package/dist/styles/theme/genesis-theme.d.ts +3 -0
- package/dist/styles/theme/genesis-theme.js +461 -277
- package/dist/styles/theme/genesis-theme.types.d.ts +46 -0
- package/dist/{Form-Cylpi4M4.js → styles-CT_fyXBd.js} +417 -424
- package/dist/test/setup.js +2 -1
- package/dist/useLocale-DT-z_vQ6.js +16 -0
- package/dist/{useVariants-CEpw6Ww6.js → useVariants-DvhXfgJY.js} +9 -8
- package/dist/warning-C63HNL9U.js +789 -0
- package/package.json +10 -4
- package/dist/Overflow-CP1M4Z0s.js +0 -369
- package/dist/components/atoms/button/Button.d.ts +0 -12
- package/dist/components/atoms/button/Button.js +0 -27
- package/dist/components/atoms/button/styles.d.ts +0 -12
- package/dist/components/atoms/checkbox/Checkbox.js +0 -13
- 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/styles.js +0 -415
- package/dist/components/atoms/select/Select.d.ts +0 -11
- package/dist/components/atoms/select/Select.js +0 -24
- package/dist/components/atoms/select/styles.d.ts +0 -15
- package/dist/components/atoms/typography/Typography.d.ts +0 -11
- 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.d.ts +0 -10
- package/dist/components/molecules/error-boundary-fallback/ErrorBoundaryFallback.js +0 -35
- package/dist/components/molecules/error-boundary-fallback/index.d.ts +0 -1
- package/dist/components/molecules/form/Form.d.ts +0 -15
- 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-BPtFqhcp.js +0 -19110
- package/dist/index-BWys7dkb.js +0 -4462
- package/dist/styles/theme/global-styles.d.ts +0 -1
- package/dist/styles/theme/global-styles.js +0 -35
- /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}/__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}/index.js +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/{atoms/checkbox → Checkbox}/index.js +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.js +0 -0
- /package/dist/components/{molecules/error-boundary-fallback → ErrorBoundaryFallback}/styles.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/input → Input}/index.js +0 -0
- /package/dist/components/{atoms/select → Select}/index.d.ts +0 -0
- /package/dist/components/{atoms/select → Select}/index.js +0 -0
- /package/dist/components/{atoms/typography → Typography}/index.d.ts +0 -0
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,20 +1,33 @@
|
|
|
1
|
-
import { default as
|
|
2
|
-
import { default as
|
|
3
|
-
import { default as
|
|
4
|
-
import { default as
|
|
5
|
-
import { default as
|
|
6
|
-
import { F as
|
|
7
|
-
import { default as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
1
|
+
import { default as r } from "./components/Badge/Badge.js";
|
|
2
|
+
import { default as t } from "./components/Breadcrumb/Breadcrumb.js";
|
|
3
|
+
import { default as s } from "./components/Button/Button.js";
|
|
4
|
+
import { default as u } from "./components/Checkbox/Checkbox.js";
|
|
5
|
+
import { default as d } from "./components/ErrorBoundaryFallback/ErrorBoundaryFallback.js";
|
|
6
|
+
import { F as x, T as i, a as n, u as c } from "./Typography-aGoDUl4R.js";
|
|
7
|
+
import { default as b } from "./components/Input/Input.js";
|
|
8
|
+
import { default as B } from "./components/Message/Message.js";
|
|
9
|
+
import { default as g } from "./components/Notification/Notification.js";
|
|
10
|
+
import { default as F } from "./components/Radio/RadioGroup.js";
|
|
11
|
+
import { default as h } from "./components/Select/Select.js";
|
|
12
|
+
import { GenesisProvider as I } from "./providers/GenesisProvider.js";
|
|
13
|
+
import { default as v } from "./constants/index.js";
|
|
14
|
+
import { GlobalStyles as M } from "./styles/global-styles.js";
|
|
10
15
|
export {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
r as Badge,
|
|
17
|
+
t as Breadcrumb,
|
|
18
|
+
s as Button,
|
|
19
|
+
u as Checkbox,
|
|
20
|
+
d as ErrorBoundaryFallback,
|
|
21
|
+
x as Form,
|
|
22
|
+
v as GENESIS,
|
|
23
|
+
I as GenesisProvider,
|
|
24
|
+
M as GlobalStyles,
|
|
25
|
+
b as Input,
|
|
26
|
+
B as Message,
|
|
27
|
+
g as Notification,
|
|
28
|
+
F as RadioGroup,
|
|
29
|
+
h as Select,
|
|
30
|
+
i as Toast,
|
|
31
|
+
n as Typography,
|
|
32
|
+
c as useGenesis
|
|
20
33
|
};
|
|
@@ -1,34 +1,29 @@
|
|
|
1
|
-
import { i as Z,
|
|
1
|
+
import { i as Z, u as W, b as q, c as z } from "./index-oK7z6jnz.js";
|
|
2
2
|
import $ from "react";
|
|
3
|
+
import { f as D, d as H } from "./warning-C63HNL9U.js";
|
|
3
4
|
function J(i) {
|
|
4
5
|
var c = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, f = [];
|
|
5
6
|
return $.Children.forEach(i, function(u) {
|
|
6
7
|
u == null && !c.keepEmpty || (Array.isArray(u) ? f = f.concat(J(u)) : Z(u) && u.props ? f = f.concat(J(u.props.children, c)) : f.push(u));
|
|
7
8
|
}), f;
|
|
8
9
|
}
|
|
9
|
-
function nt(i, c) {
|
|
10
|
-
var f = Object.assign({}, i);
|
|
11
|
-
return Array.isArray(c) && c.forEach(function(u) {
|
|
12
|
-
delete f[u];
|
|
13
|
-
}), f;
|
|
14
|
-
}
|
|
15
10
|
function B(i) {
|
|
16
11
|
return i !== void 0;
|
|
17
12
|
}
|
|
18
13
|
function ot(i, c) {
|
|
19
14
|
var f = c || {}, u = f.defaultValue, l = f.value, m = f.onChange, p = f.postState, x = W(function() {
|
|
20
15
|
return B(l) ? l : B(u) ? typeof u == "function" ? u() : u : typeof i == "function" ? i() : i;
|
|
21
|
-
}), d =
|
|
22
|
-
|
|
16
|
+
}), d = D(x, 2), h = d[0], G = d[1], E = l !== void 0 ? l : h, A = p ? p(E) : E, C = q(m), T = W([E]), L = D(T, 2), g = L[0], P = L[1];
|
|
17
|
+
z(function() {
|
|
23
18
|
var w = g[0];
|
|
24
19
|
h !== w && C(h, w);
|
|
25
|
-
}, [g]),
|
|
20
|
+
}, [g]), z(function() {
|
|
26
21
|
B(l) || G(l);
|
|
27
22
|
}, [l]);
|
|
28
|
-
var
|
|
29
|
-
G(w,
|
|
23
|
+
var j = q(function(w, k) {
|
|
24
|
+
G(w, k), P([E], k);
|
|
30
25
|
});
|
|
31
|
-
return [A,
|
|
26
|
+
return [A, j];
|
|
32
27
|
}
|
|
33
28
|
function tt() {
|
|
34
29
|
tt = function() {
|
|
@@ -75,17 +70,17 @@ function tt() {
|
|
|
75
70
|
var A = "suspendedStart", C = "suspendedYield", T = "executing", L = "completed", g = {};
|
|
76
71
|
function P() {
|
|
77
72
|
}
|
|
78
|
-
function
|
|
73
|
+
function j() {
|
|
79
74
|
}
|
|
80
75
|
function w() {
|
|
81
76
|
}
|
|
82
|
-
var
|
|
83
|
-
h(
|
|
77
|
+
var k = {};
|
|
78
|
+
h(k, p, function() {
|
|
84
79
|
return this;
|
|
85
80
|
});
|
|
86
81
|
var N = Object.getPrototypeOf, F = N && N(N(R([])));
|
|
87
|
-
F && F !== f && u.call(F, p) && (
|
|
88
|
-
var S = w.prototype = P.prototype = Object.create(
|
|
82
|
+
F && F !== f && u.call(F, p) && (k = F);
|
|
83
|
+
var S = w.prototype = P.prototype = Object.create(k);
|
|
89
84
|
function Y(r) {
|
|
90
85
|
["next", "throw", "return"].forEach(function(t) {
|
|
91
86
|
h(r, t, function(e) {
|
|
@@ -98,14 +93,14 @@ function tt() {
|
|
|
98
93
|
var y = E(r[a], r, o);
|
|
99
94
|
if (y.type !== "throw") {
|
|
100
95
|
var _ = y.arg, b = _.value;
|
|
101
|
-
return b && H(b) == "object" && u.call(b, "__await") ? t.resolve(b.__await).then(function(
|
|
102
|
-
e("next",
|
|
103
|
-
}, function(
|
|
104
|
-
e("throw",
|
|
105
|
-
}) : t.resolve(b).then(function(
|
|
106
|
-
_.value =
|
|
107
|
-
}, function(
|
|
108
|
-
return e("throw",
|
|
96
|
+
return b && H(b) == "object" && u.call(b, "__await") ? t.resolve(b.__await).then(function(O) {
|
|
97
|
+
e("next", O, s, v);
|
|
98
|
+
}, function(O) {
|
|
99
|
+
e("throw", O, s, v);
|
|
100
|
+
}) : t.resolve(b).then(function(O) {
|
|
101
|
+
_.value = O, s(_);
|
|
102
|
+
}, function(O) {
|
|
103
|
+
return e("throw", O, s, v);
|
|
109
104
|
});
|
|
110
105
|
}
|
|
111
106
|
v(y.arg);
|
|
@@ -198,15 +193,15 @@ function tt() {
|
|
|
198
193
|
}
|
|
199
194
|
throw new TypeError(H(r) + " is not iterable");
|
|
200
195
|
}
|
|
201
|
-
return
|
|
196
|
+
return j.prototype = w, l(S, "constructor", {
|
|
202
197
|
value: w,
|
|
203
198
|
configurable: !0
|
|
204
199
|
}), l(w, "constructor", {
|
|
205
|
-
value:
|
|
200
|
+
value: j,
|
|
206
201
|
configurable: !0
|
|
207
|
-
}),
|
|
202
|
+
}), j.displayName = h(w, d, "GeneratorFunction"), c.isGeneratorFunction = function(r) {
|
|
208
203
|
var t = typeof r == "function" && r.constructor;
|
|
209
|
-
return !!t && (t ===
|
|
204
|
+
return !!t && (t === j || (t.displayName || t.name) === "GeneratorFunction");
|
|
210
205
|
}, c.mark = function(r) {
|
|
211
206
|
return Object.setPrototypeOf ? Object.setPrototypeOf(r, w) : (r.__proto__ = w, h(r, d, "GeneratorFunction")), r.prototype = Object.create(S), r;
|
|
212
207
|
}, c.awrap = function(r) {
|
|
@@ -337,7 +332,13 @@ function at(i) {
|
|
|
337
332
|
});
|
|
338
333
|
};
|
|
339
334
|
}
|
|
340
|
-
|
|
335
|
+
function it(i, c) {
|
|
336
|
+
var f = Object.assign({}, i);
|
|
337
|
+
return Array.isArray(c) && c.forEach(function(u) {
|
|
338
|
+
delete f[u];
|
|
339
|
+
}), f;
|
|
340
|
+
}
|
|
341
|
+
const ut = function(i) {
|
|
341
342
|
if (!i)
|
|
342
343
|
return !1;
|
|
343
344
|
if (i instanceof Element) {
|
|
@@ -359,8 +360,8 @@ const it = function(i) {
|
|
|
359
360
|
export {
|
|
360
361
|
at as _,
|
|
361
362
|
tt as a,
|
|
362
|
-
|
|
363
|
-
|
|
363
|
+
ut as i,
|
|
364
|
+
it as o,
|
|
364
365
|
J as t,
|
|
365
366
|
ot as u
|
|
366
367
|
};
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { I as l } from "./AntdIcon-Bsnbyy6g.js";
|
|
4
|
-
var d = `accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
1
|
+
import { _ as i } from "./warning-C63HNL9U.js";
|
|
2
|
+
var s = `accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
5
3
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
6
4
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
7
5
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
@@ -12,41 +10,33 @@ var d = `accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
|
12
10
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
13
11
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
14
12
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
15
|
-
summary tabIndex target title type useMap value width wmode wrap`,
|
|
13
|
+
summary tabIndex target title type useMap value width wmode wrap`, l = `onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
16
14
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
17
15
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
18
16
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
19
17
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
20
18
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
21
|
-
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,
|
|
22
|
-
function r(a,
|
|
23
|
-
return a.indexOf(
|
|
19
|
+
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`, d = "".concat(s, " ").concat(l).split(/[\s\n]+/), c = "aria-", u = "data-";
|
|
20
|
+
function r(a, o) {
|
|
21
|
+
return a.indexOf(o) === 0;
|
|
24
22
|
}
|
|
25
|
-
function
|
|
26
|
-
var
|
|
27
|
-
|
|
23
|
+
function m(a) {
|
|
24
|
+
var o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, e;
|
|
25
|
+
o === !1 ? e = {
|
|
28
26
|
aria: !0,
|
|
29
27
|
data: !0,
|
|
30
28
|
attr: !0
|
|
31
|
-
} :
|
|
29
|
+
} : o === !0 ? e = {
|
|
32
30
|
aria: !0
|
|
33
|
-
} : e = i({},
|
|
31
|
+
} : e = i({}, o);
|
|
34
32
|
var t = {};
|
|
35
|
-
return Object.keys(a).forEach(function(
|
|
33
|
+
return Object.keys(a).forEach(function(n) {
|
|
36
34
|
// Aria
|
|
37
|
-
(e.aria && (
|
|
38
|
-
e.data && r(
|
|
39
|
-
e.attr &&
|
|
35
|
+
(e.aria && (n === "role" || r(n, c)) || // Data
|
|
36
|
+
e.data && r(n, u) || // Attr
|
|
37
|
+
e.attr && d.includes(n)) && (t[n] = a[n]);
|
|
40
38
|
}), t;
|
|
41
39
|
}
|
|
42
|
-
var g = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" } }] }, name: "search", theme: "outlined" }, f = function(n, e) {
|
|
43
|
-
return /* @__PURE__ */ s.createElement(l, c({}, n, {
|
|
44
|
-
ref: e,
|
|
45
|
-
icon: g
|
|
46
|
-
}));
|
|
47
|
-
}, C = /* @__PURE__ */ s.forwardRef(f);
|
|
48
|
-
process.env.NODE_ENV !== "production" && (C.displayName = "SearchOutlined");
|
|
49
40
|
export {
|
|
50
|
-
|
|
51
|
-
y as p
|
|
41
|
+
m as p
|
|
52
42
|
};
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { ThemeProvider as
|
|
3
|
-
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { ThemeProvider as i } from "./ThemeProvider.js";
|
|
3
|
+
import { g as s } from "../Typography-aGoDUl4R.js";
|
|
4
|
+
const d = ({
|
|
5
|
+
children: e,
|
|
6
|
+
isDarkMode: o = !1
|
|
7
|
+
}) => /* @__PURE__ */ r(i, { isDarkMode: o, children: /* @__PURE__ */ r(s, { children: e }) });
|
|
4
8
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
9
|
+
d as GenesisProvider,
|
|
10
|
+
d as default
|
|
7
11
|
};
|
|
@@ -4,6 +4,6 @@ interface ThemeProviderProps {
|
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
isDarkMode?: boolean;
|
|
6
6
|
}
|
|
7
|
-
export declare const ThemeProvider: ({ children, isDarkMode }: ThemeProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export declare const useBreakpoint: () =>
|
|
7
|
+
export declare const ThemeProvider: ({ children, isDarkMode, }: ThemeProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const useBreakpoint: () => "wide" | "medium" | "narrow";
|
|
9
9
|
export {};
|
|
@@ -2,7 +2,10 @@ import { jsx as o } from "react/jsx-runtime";
|
|
|
2
2
|
import { createContext as m, useState as w, useEffect as p, useContext as c } from "react";
|
|
3
3
|
import { o as u } from "../styled-components.browser.esm-CZ1XM4o4.js";
|
|
4
4
|
import { darkTheme as f, lightTheme as h } from "../styles/theme/genesis-theme.js";
|
|
5
|
-
const n = m("Wide"), B = ({
|
|
5
|
+
const n = m("Wide"), B = ({
|
|
6
|
+
children: s,
|
|
7
|
+
isDarkMode: d = !1
|
|
8
|
+
}) => {
|
|
6
9
|
const [a, e] = w("wide"), t = d ? f : h;
|
|
7
10
|
return p(() => {
|
|
8
11
|
const r = () => {
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface ToastContextType {
|
|
4
|
+
show: (message: string, state: string, action?: {
|
|
5
|
+
label: string;
|
|
6
|
+
onClick: unknown;
|
|
7
|
+
}) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const ToastContext: React.Context<ToastContextType>;
|
|
10
|
+
export declare const ToastProvider: ({ children }: {
|
|
11
|
+
children: any;
|
|
12
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare const useToast: () => ToastContextType;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { i as u, g as v, j as C } from "../Typography-aGoDUl4R.js";
|
|
4
|
+
import "../styled-components.browser.esm-CZ1XM4o4.js";
|
|
5
|
+
import "../components/Badge/styles.js";
|
|
6
|
+
import "../components/Breadcrumb/styles.js";
|
|
7
|
+
import "./ThemeProvider.js";
|
|
8
|
+
import "../components/Button/styles.js";
|
|
9
|
+
import "../components/Checkbox/styles.js";
|
|
10
|
+
import "../components/ErrorBoundaryFallback/styles.js";
|
|
11
|
+
import "../components/Input/styles.js";
|
|
12
|
+
import "../components/Message/styles.js";
|
|
13
|
+
import "../components/Notification/styles.js";
|
|
14
|
+
import "../components/Select/styles.js";
|
|
15
|
+
import "../components/Typography/styles.js";
|
|
16
|
+
export {
|
|
17
|
+
u as ToastContext,
|
|
18
|
+
v as ToastProvider,
|
|
19
|
+
C as useToast
|
|
20
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as GenesisProvider } from './GenesisProvider';
|
|
2
|
-
export {
|
|
2
|
+
export { useGenesis } from './useGenesis';
|
package/dist/providers/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { GenesisProvider as
|
|
2
|
-
import {
|
|
1
|
+
import { GenesisProvider as s } from "./GenesisProvider.js";
|
|
2
|
+
import { u as i } from "../Typography-aGoDUl4R.js";
|
|
3
3
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
s as GenesisProvider,
|
|
5
|
+
i as useGenesis
|
|
6
6
|
};
|