@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
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
const i = (o) => ({
|
|
2
|
+
[o.componentCls]: {
|
|
3
|
+
// For common/openAnimation
|
|
4
|
+
[`${o.antCls}-motion-collapse-legacy`]: {
|
|
5
|
+
overflow: "hidden",
|
|
6
|
+
"&-active": {
|
|
7
|
+
transition: `height ${o.motionDurationMid} ${o.motionEaseInOut},
|
|
8
|
+
opacity ${o.motionDurationMid} ${o.motionEaseInOut} !important`
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
[`${o.antCls}-motion-collapse`]: {
|
|
12
|
+
overflow: "hidden",
|
|
13
|
+
transition: `height ${o.motionDurationMid} ${o.motionEaseInOut},
|
|
14
|
+
opacity ${o.motionDurationMid} ${o.motionEaseInOut} !important`
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}), t = i;
|
|
18
|
+
export {
|
|
19
|
+
t as g
|
|
20
|
+
};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { a as u } from "./presets-83ccb923.js";
|
|
2
|
+
import * as r from "react";
|
|
3
|
+
import { A as l } from "./AntdIcon-c395a1c4.js";
|
|
4
|
+
var $ = { icon: { tag: "svg", attrs: { viewBox: "0 0 1024 1024", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z" } }] }, name: "loading", theme: "outlined" };
|
|
5
|
+
const g = $;
|
|
6
|
+
var f = function(t, i) {
|
|
7
|
+
return /* @__PURE__ */ r.createElement(l, u({}, t, {
|
|
8
|
+
ref: i,
|
|
9
|
+
icon: g
|
|
10
|
+
}));
|
|
11
|
+
}, s = /* @__PURE__ */ r.forwardRef(f);
|
|
12
|
+
process.env.NODE_ENV !== "production" && (s.displayName = "LoadingOutlined");
|
|
13
|
+
const h = s;
|
|
14
|
+
function b(n, t, i) {
|
|
15
|
+
const {
|
|
16
|
+
focusElCls: e,
|
|
17
|
+
focus: o,
|
|
18
|
+
borderElCls: c
|
|
19
|
+
} = i, a = c ? "> *" : "", d = ["hover", o ? "focus" : null, "active"].filter(Boolean).map((m) => `&:${m} ${a}`).join(",");
|
|
20
|
+
return {
|
|
21
|
+
[`&-item:not(${t}-last-item)`]: {
|
|
22
|
+
marginInlineEnd: n.calc(n.lineWidth).mul(-1).equal()
|
|
23
|
+
},
|
|
24
|
+
"&-item": Object.assign(Object.assign({
|
|
25
|
+
[d]: {
|
|
26
|
+
zIndex: 2
|
|
27
|
+
}
|
|
28
|
+
}, e ? {
|
|
29
|
+
[`&${e}`]: {
|
|
30
|
+
zIndex: 2
|
|
31
|
+
}
|
|
32
|
+
} : {}), {
|
|
33
|
+
[`&[disabled] ${a}`]: {
|
|
34
|
+
zIndex: 0
|
|
35
|
+
}
|
|
36
|
+
})
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function E(n, t, i) {
|
|
40
|
+
const {
|
|
41
|
+
borderElCls: e
|
|
42
|
+
} = i, o = e ? `> ${e}` : "";
|
|
43
|
+
return {
|
|
44
|
+
[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]: {
|
|
45
|
+
borderRadius: 0
|
|
46
|
+
},
|
|
47
|
+
[`&-item:not(${t}-last-item)${t}-first-item`]: {
|
|
48
|
+
[`& ${o}, &${n}-sm ${o}, &${n}-lg ${o}`]: {
|
|
49
|
+
borderStartEndRadius: 0,
|
|
50
|
+
borderEndEndRadius: 0
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
[`&-item:not(${t}-first-item)${t}-last-item`]: {
|
|
54
|
+
[`& ${o}, &${n}-sm ${o}, &${n}-lg ${o}`]: {
|
|
55
|
+
borderStartStartRadius: 0,
|
|
56
|
+
borderEndStartRadius: 0
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
function I(n) {
|
|
62
|
+
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
63
|
+
focus: !0
|
|
64
|
+
};
|
|
65
|
+
const {
|
|
66
|
+
componentCls: i
|
|
67
|
+
} = n, e = `${i}-compact`;
|
|
68
|
+
return {
|
|
69
|
+
[e]: Object.assign(Object.assign({}, b(n, e, t)), E(i, e, t))
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
export {
|
|
73
|
+
h as L,
|
|
74
|
+
I as g
|
|
75
|
+
};
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { jsx as r, jsxs as m } from "react/jsx-runtime";
|
|
2
|
+
import p from "./icons/Appointment.js";
|
|
3
|
+
import C from "./icons/ASN.js";
|
|
4
|
+
import g from "./icons/Inventory.js";
|
|
5
|
+
import v from "./icons/Parcel.js";
|
|
6
|
+
import S from "./icons/Product.js";
|
|
7
|
+
import F from "./icons/Route.js";
|
|
8
|
+
import h from "./icons/Shipment.js";
|
|
9
|
+
import y from "./icons/ShoppingCart.js";
|
|
10
|
+
import B from "./icons/System.js";
|
|
11
|
+
import { BADGE as o, STATE as t } from "../../constants/index.js";
|
|
12
|
+
import { n as z } from "../../styled-components.browser.esm-02f500bc.js";
|
|
13
|
+
import { BadgeWrapper as w, Badge as E, BadgeState as k } from "./styles.js";
|
|
14
|
+
import { I as x } from "../../InfoCircleFilled-c5f90c20.js";
|
|
15
|
+
import { a as l } from "../../presets-83ccb923.js";
|
|
16
|
+
import * as i from "react";
|
|
17
|
+
import { A as u } from "../../AntdIcon-c395a1c4.js";
|
|
18
|
+
import { C as I, E as M } from "../../ExclamationCircleFilled-23ef9812.js";
|
|
19
|
+
import { C as $ } from "../../CloseCircleFilled-ddc51e7e.js";
|
|
20
|
+
var N = { 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 64zm176.5 585.7l-28.6 39a7.99 7.99 0 01-11.2 1.7L483.3 569.8a7.92 7.92 0 01-3.3-6.5V288c0-4.4 3.6-8 8-8h48.1c4.4 0 8 3.6 8 8v247.5l142.6 103.1c3.6 2.5 4.4 7.5 1.8 11.1z" } }] }, name: "clock-circle", theme: "filled" };
|
|
21
|
+
const R = N;
|
|
22
|
+
var A = function(e, n) {
|
|
23
|
+
return /* @__PURE__ */ i.createElement(u, l({}, e, {
|
|
24
|
+
ref: n,
|
|
25
|
+
icon: R
|
|
26
|
+
}));
|
|
27
|
+
}, f = /* @__PURE__ */ i.forwardRef(A);
|
|
28
|
+
process.env.NODE_ENV !== "production" && (f.displayName = "ClockCircleFilled");
|
|
29
|
+
const b = f;
|
|
30
|
+
var D = { 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 64zm192 472c0 4.4-3.6 8-8 8H328c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h368c4.4 0 8 3.6 8 8v48z" } }] }, name: "minus-circle", theme: "filled" };
|
|
31
|
+
const V = D;
|
|
32
|
+
var _ = function(e, n) {
|
|
33
|
+
return /* @__PURE__ */ i.createElement(u, l({}, e, {
|
|
34
|
+
ref: n,
|
|
35
|
+
icon: V
|
|
36
|
+
}));
|
|
37
|
+
}, d = /* @__PURE__ */ i.forwardRef(_);
|
|
38
|
+
process.env.NODE_ENV !== "production" && (d.displayName = "MinusCircleFilled");
|
|
39
|
+
const j = d, c = 14, O = (s, e) => {
|
|
40
|
+
switch (s) {
|
|
41
|
+
case t.error:
|
|
42
|
+
return e.colors.status.error.onsurface;
|
|
43
|
+
case t.success:
|
|
44
|
+
return e.colors.status.success.onsurface;
|
|
45
|
+
case t.warning:
|
|
46
|
+
return e.colors.status.warning.default;
|
|
47
|
+
case t.removed:
|
|
48
|
+
return e.colors.status.generic.default;
|
|
49
|
+
case t.progress:
|
|
50
|
+
return e.colors.timebox.evening.default;
|
|
51
|
+
case t.info:
|
|
52
|
+
default:
|
|
53
|
+
return e.colors.status.info.onsurface;
|
|
54
|
+
}
|
|
55
|
+
}, T = (s, e) => {
|
|
56
|
+
switch (s) {
|
|
57
|
+
case t.warning:
|
|
58
|
+
return /* @__PURE__ */ r(M, { style: { color: e, fontSize: c } });
|
|
59
|
+
case t.error:
|
|
60
|
+
return /* @__PURE__ */ r($, { style: { color: e, fontSize: c } });
|
|
61
|
+
case t.success:
|
|
62
|
+
return /* @__PURE__ */ r(I, { style: { color: e, fontSize: c } });
|
|
63
|
+
case t.progress:
|
|
64
|
+
return /* @__PURE__ */ r(b, { style: { color: e, fontSize: c } });
|
|
65
|
+
case t.removed:
|
|
66
|
+
return /* @__PURE__ */ r(j, { style: { color: e, fontSize: c } });
|
|
67
|
+
case t.info:
|
|
68
|
+
default:
|
|
69
|
+
return /* @__PURE__ */ r(x, { style: { color: e, fontSize: c } });
|
|
70
|
+
}
|
|
71
|
+
}, G = (s, e) => {
|
|
72
|
+
switch (s) {
|
|
73
|
+
case o.appointment:
|
|
74
|
+
return /* @__PURE__ */ r(p, {});
|
|
75
|
+
case o.asn:
|
|
76
|
+
return /* @__PURE__ */ r(C, {});
|
|
77
|
+
case o.inventory:
|
|
78
|
+
return /* @__PURE__ */ r(g, {});
|
|
79
|
+
case o.parcel:
|
|
80
|
+
return /* @__PURE__ */ r(v, {});
|
|
81
|
+
case o.product:
|
|
82
|
+
return /* @__PURE__ */ r(S, {});
|
|
83
|
+
case o.route:
|
|
84
|
+
return /* @__PURE__ */ r(F, {});
|
|
85
|
+
case o.shipment:
|
|
86
|
+
return /* @__PURE__ */ r(h, {});
|
|
87
|
+
case o.shoppingCart:
|
|
88
|
+
return /* @__PURE__ */ r(y, {});
|
|
89
|
+
case o.system:
|
|
90
|
+
default:
|
|
91
|
+
return /* @__PURE__ */ r(B, {});
|
|
92
|
+
}
|
|
93
|
+
}, ne = ({ badge: s = o.product, state: e = t.info }) => {
|
|
94
|
+
const n = z(), a = O(e, n);
|
|
95
|
+
return /* @__PURE__ */ r(w, { children: /* @__PURE__ */ m(E, { "data-testid": "Badge", children: [
|
|
96
|
+
/* @__PURE__ */ r(k, { "data-testid": "BadgeState", color: a, children: T(e, a) }),
|
|
97
|
+
G(s)
|
|
98
|
+
] }) });
|
|
99
|
+
};
|
|
100
|
+
export {
|
|
101
|
+
ne as default
|
|
102
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { default as Badge } from '../Badge';
|
|
3
|
+
|
|
4
|
+
declare const meta: Meta<typeof Badge>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<typeof Badge>;
|
|
7
|
+
export declare const Default: Story;
|
|
8
|
+
export declare const Success: Story;
|
|
9
|
+
export declare const Warning: Story;
|
|
10
|
+
export declare const Removed: Story;
|
|
11
|
+
export declare const Progress: Story;
|
|
12
|
+
export declare const Error: Story;
|
|
13
|
+
export declare const Info: Story;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import p from "../Badge.js";
|
|
3
|
+
import { BADGE as i, STATE as e } from "../../../constants/index.js";
|
|
4
|
+
import { c as d } from "../../../setup-aaca7b6f.js";
|
|
5
|
+
import "../icons/Appointment.js";
|
|
6
|
+
import "../icons/ASN.js";
|
|
7
|
+
import "../icons/Inventory.js";
|
|
8
|
+
import "../icons/Parcel.js";
|
|
9
|
+
import "../icons/Product.js";
|
|
10
|
+
import "../icons/Route.js";
|
|
11
|
+
import "../icons/Shipment.js";
|
|
12
|
+
import "../icons/ShoppingCart.js";
|
|
13
|
+
import "../icons/System.js";
|
|
14
|
+
import "../../../styled-components.browser.esm-02f500bc.js";
|
|
15
|
+
import "react";
|
|
16
|
+
import "../styles.js";
|
|
17
|
+
import "../../../InfoCircleFilled-c5f90c20.js";
|
|
18
|
+
import "../../../presets-83ccb923.js";
|
|
19
|
+
import "../../../AntdIcon-c395a1c4.js";
|
|
20
|
+
import "../../../ExclamationCircleFilled-23ef9812.js";
|
|
21
|
+
import "../../../CloseCircleFilled-ddc51e7e.js";
|
|
22
|
+
import "@testing-library/react";
|
|
23
|
+
import "../../../providers/GenesisProvider.js";
|
|
24
|
+
import "../../../providers/ThemeProvider.js";
|
|
25
|
+
import "../../../styles/theme/genesis-theme.js";
|
|
26
|
+
import "../../../styles/design-tokens/variables.js";
|
|
27
|
+
import "../../../index-89035ea5.js";
|
|
28
|
+
import "../../Button/styles.js";
|
|
29
|
+
import "../../../button-fa1c119c.js";
|
|
30
|
+
import "../../../isVisible-729780f5.js";
|
|
31
|
+
import "../../../index-4003d75b.js";
|
|
32
|
+
import "react-dom";
|
|
33
|
+
import "../../../index-e2b72ca8.js";
|
|
34
|
+
import "../../../reactNode-f4391605.js";
|
|
35
|
+
import "../../../Compact-c39ed20d.js";
|
|
36
|
+
import "../../../presetColors-ccf8cb4c.js";
|
|
37
|
+
import "../../../compact-item-b8f85aa6.js";
|
|
38
|
+
import "../../Checkbox/styles.js";
|
|
39
|
+
import "../../../context-3b8a39af.js";
|
|
40
|
+
import "../../ErrorBoundaryFallback/styles.js";
|
|
41
|
+
import "../../Input/styles.js";
|
|
42
|
+
import "../../../TextArea-20825221.js";
|
|
43
|
+
import "../../../index-8c8d2d0c.js";
|
|
44
|
+
import "../../../useVariants-a0d64298.js";
|
|
45
|
+
import "../../../ContextIsolator-b09b2c52.js";
|
|
46
|
+
import "../../../pickAttrs-00ba4687.js";
|
|
47
|
+
import "../../../SearchOutlined-a9014e08.js";
|
|
48
|
+
import "../../Select/styles.js";
|
|
49
|
+
import "../../../index-1a33c134.js";
|
|
50
|
+
import "../../../Overflow-a570fa69.js";
|
|
51
|
+
import "../../../DownOutlined-64a4732a.js";
|
|
52
|
+
import "../../../CheckOutlined-52d9ac25.js";
|
|
53
|
+
import "../../../CloseOutlined-14b8bba1.js";
|
|
54
|
+
import "../../Typography/styles.js";
|
|
55
|
+
import "../../../index-501fc13d.js";
|
|
56
|
+
import "../../../index-0b9ee239.js";
|
|
57
|
+
import "../../Toast/styles.js";
|
|
58
|
+
import "../../../collapse-345bc884.js";
|
|
59
|
+
describe("<Badge />", () => {
|
|
60
|
+
let t;
|
|
61
|
+
beforeEach(() => {
|
|
62
|
+
t = {
|
|
63
|
+
badge: i.product,
|
|
64
|
+
state: e.info
|
|
65
|
+
};
|
|
66
|
+
});
|
|
67
|
+
const r = () => d(/* @__PURE__ */ m(p, { ...t }));
|
|
68
|
+
it("should render badge and state elements", () => {
|
|
69
|
+
const { getByTestId: o } = r();
|
|
70
|
+
expect(o("Badge")).toBeInTheDocument(), expect(o("BadgeState")).toBeInTheDocument();
|
|
71
|
+
});
|
|
72
|
+
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as h } from "react/jsx-runtime";
|
|
2
|
+
const l = (a) => /* @__PURE__ */ h(
|
|
3
|
+
"svg",
|
|
4
|
+
{
|
|
5
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6
|
+
width: 24,
|
|
7
|
+
height: 24,
|
|
8
|
+
fill: "none",
|
|
9
|
+
...a,
|
|
10
|
+
children: /* @__PURE__ */ h(
|
|
11
|
+
"path",
|
|
12
|
+
{
|
|
13
|
+
fill: "#3E3E3E",
|
|
14
|
+
fillRule: "evenodd",
|
|
15
|
+
d: "M12 2.182H3.273a1.09 1.09 0 0 0-1.091 1.09V12c0 .602.488 1.09 1.09 1.09h1.092V7.637a3.273 3.273 0 0 1 3.272-3.272h5.455V3.273A1.09 1.09 0 0 0 12 2.182Zm-8.727 13.09h1.09v1.092a3.273 3.273 0 0 0 3.273 3.272h1.091v1.091A3.273 3.273 0 0 0 12 24h8.727A3.273 3.273 0 0 0 24 20.727V12a3.273 3.273 0 0 0-3.273-3.273h-1.09v-1.09a3.273 3.273 0 0 0-3.273-3.273h-1.091V3.273A3.273 3.273 0 0 0 12 0H3.273A3.273 3.273 0 0 0 0 3.273V12a3.273 3.273 0 0 0 3.273 3.273Zm14.181-6.545v-1.09a1.09 1.09 0 0 0-1.09-1.092H7.636a1.09 1.09 0 0 0-1.09 1.091v8.727c0 .603.488 1.091 1.09 1.091h1.091V12A3.273 3.273 0 0 1 12 8.727h5.454Zm2.182 2.182H12A1.09 1.09 0 0 0 10.91 12V20.727c0 .603.488 1.091 1.09 1.091h8.727a1.09 1.09 0 0 0 1.091-1.09V12a1.09 1.09 0 0 0-1.09-1.09h-1.092Z",
|
|
16
|
+
clipRule: "evenodd"
|
|
17
|
+
}
|
|
18
|
+
)
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
export {
|
|
22
|
+
l as default
|
|
23
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
+
const t = (e) => /* @__PURE__ */ l(
|
|
3
|
+
"svg",
|
|
4
|
+
{
|
|
5
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6
|
+
width: 24,
|
|
7
|
+
height: 24,
|
|
8
|
+
fill: "none",
|
|
9
|
+
...e,
|
|
10
|
+
children: /* @__PURE__ */ l(
|
|
11
|
+
"path",
|
|
12
|
+
{
|
|
13
|
+
fill: "#3E3E3E",
|
|
14
|
+
fillRule: "evenodd",
|
|
15
|
+
d: "M11.293 2.293a1 1 0 0 1 1.414 0l9 9a1 1 0 0 1-1.414 1.414L20 12.414V20a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-7.586l-.293.293a1 1 0 0 1-1.414-1.414l9-9ZM6 10.414V20h3v-4a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v4h3v-9.586l-6-6-6 6ZM13 20v-4h-2v4h2Z",
|
|
16
|
+
clipRule: "evenodd"
|
|
17
|
+
}
|
|
18
|
+
)
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
export {
|
|
22
|
+
t as default
|
|
23
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
const e = (h) => /* @__PURE__ */ a(
|
|
3
|
+
"svg",
|
|
4
|
+
{
|
|
5
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6
|
+
width: 24,
|
|
7
|
+
height: 24,
|
|
8
|
+
fill: "none",
|
|
9
|
+
...h,
|
|
10
|
+
children: /* @__PURE__ */ a(
|
|
11
|
+
"path",
|
|
12
|
+
{
|
|
13
|
+
fill: "#3E3E3E",
|
|
14
|
+
fillRule: "evenodd",
|
|
15
|
+
d: "M7 4a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h3v2H7a3 3 0 0 1-3-3V5a3 3 0 0 1 3-3h5.586A2 2 0 0 1 14 2.586L19.414 8A2 2 0 0 1 20 9.414V10a4.974 4.974 0 0 0-2.376-.961L12.586 4H7Zm12.83 16H14v2h6v-2h-.17ZM12 22v-3a1 1 0 0 1 1-1h3v-1.17A3.01 3.01 0 0 1 14.17 15a2.997 2.997 0 0 1 0-2 3.01 3.01 0 0 1 1.537-1.708A2.997 2.997 0 0 1 20 14a3.004 3.004 0 0 1-2 2.83V18h3a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1v-1Zm6-8a1 1 0 1 0-2 0 1 1 0 0 0 2 0Zm-9-3h4a4.977 4.977 0 0 0-.9 2H9a1 1 0 1 1 0-2Zm3.44 5.052A4.958 4.958 0 0 1 12.1 15H9a1 1 0 1 0 0 2h1.764a2.996 2.996 0 0 1 1.675-.948Z",
|
|
16
|
+
clipRule: "evenodd"
|
|
17
|
+
}
|
|
18
|
+
)
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
export {
|
|
22
|
+
e as default
|
|
23
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
+
const t = (e) => /* @__PURE__ */ l(
|
|
3
|
+
"svg",
|
|
4
|
+
{
|
|
5
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6
|
+
width: 24,
|
|
7
|
+
height: 24,
|
|
8
|
+
fill: "none",
|
|
9
|
+
...e,
|
|
10
|
+
children: /* @__PURE__ */ l(
|
|
11
|
+
"path",
|
|
12
|
+
{
|
|
13
|
+
fill: "#3E3E3E",
|
|
14
|
+
fillRule: "evenodd",
|
|
15
|
+
d: "M11.553 2.106a1 1 0 0 1 .894 0l8 4A1 1 0 0 1 21 7v10a1 1 0 0 1-.553.894l-8 4a1 1 0 0 1-.894 0l-8-4A1 1 0 0 1 3 17V7a1 1 0 0 1 .553-.894l8-4ZM9 10.618V14a.5.5 0 0 1-.724.447l-1-.5A.5.5 0 0 1 7 13.5V9.618l-2-1v7.764l6 3v-7.764l-2-1Zm1.364-1.554L12 9.882 17.764 7l-2.285-1.142a.5.5 0 0 1-.242.583l-4.873 2.623Zm3.462-4.033a.508.508 0 0 0-.063.029L8.27 8.017 6.236 7 12 4.118l1.826.913ZM13 19.382l6-3V8.618l-6 3v7.764Z",
|
|
16
|
+
clipRule: "evenodd"
|
|
17
|
+
}
|
|
18
|
+
)
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
export {
|
|
22
|
+
t as default
|
|
23
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
+
const t = (e) => /* @__PURE__ */ l(
|
|
3
|
+
"svg",
|
|
4
|
+
{
|
|
5
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6
|
+
width: 24,
|
|
7
|
+
height: 24,
|
|
8
|
+
fill: "none",
|
|
9
|
+
...e,
|
|
10
|
+
children: /* @__PURE__ */ l(
|
|
11
|
+
"path",
|
|
12
|
+
{
|
|
13
|
+
fill: "#3E3E3E",
|
|
14
|
+
fillRule: "evenodd",
|
|
15
|
+
d: "M11.553 2.106a1 1 0 0 1 .894 0l8 4A1 1 0 0 1 21 7v10a1 1 0 0 1-.553.894l-8 4a1 1 0 0 1-.894 0l-8-4A1 1 0 0 1 3 17V7a1 1 0 0 1 .553-.894l8-4ZM5 8.618l6 3v7.764l-6-3V8.618Zm8 10.764 6-3V8.618l-6 3v7.764Zm-1-9.5L17.764 7 12 4.118 6.236 7 12 9.882Z",
|
|
16
|
+
clipRule: "evenodd"
|
|
17
|
+
}
|
|
18
|
+
)
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
export {
|
|
22
|
+
t as default
|
|
23
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
+
const o = (e) => /* @__PURE__ */ l(
|
|
3
|
+
"svg",
|
|
4
|
+
{
|
|
5
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6
|
+
width: 24,
|
|
7
|
+
height: 24,
|
|
8
|
+
fill: "none",
|
|
9
|
+
...e,
|
|
10
|
+
children: /* @__PURE__ */ l(
|
|
11
|
+
"path",
|
|
12
|
+
{
|
|
13
|
+
fill: "#3E3E3E",
|
|
14
|
+
fillRule: "evenodd",
|
|
15
|
+
d: "M14.553 3.106a1 1 0 0 1 .894 0l5.447 2.723A2 2 0 0 1 22 7.618v10.764a2 2 0 0 1-2.894 1.789L15 18.118l-5.553 2.776a1 1 0 0 1-.894 0l-5.447-2.723A2 2 0 0 1 2 16.382V5.618a2 2 0 0 1 2.894-1.789L9 5.882l5.553-2.776ZM8 7.618l-4-2v10.764l4 2V7.618Zm2 10.764 4-2V5.618l-4 2v10.764Zm6-12.764v10.764l4 2V7.618l-4-2Z",
|
|
16
|
+
clipRule: "evenodd"
|
|
17
|
+
}
|
|
18
|
+
)
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
export {
|
|
22
|
+
o as default
|
|
23
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
const e = (h) => /* @__PURE__ */ a(
|
|
3
|
+
"svg",
|
|
4
|
+
{
|
|
5
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6
|
+
width: 24,
|
|
7
|
+
height: 24,
|
|
8
|
+
fill: "none",
|
|
9
|
+
...h,
|
|
10
|
+
children: /* @__PURE__ */ a(
|
|
11
|
+
"path",
|
|
12
|
+
{
|
|
13
|
+
fill: "#3E3E3E",
|
|
14
|
+
fillRule: "evenodd",
|
|
15
|
+
d: "M12 2a3.001 3.001 0 0 0-2.83 2H8a3 3 0 0 0-3 3v5H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h4a2 2 0 0 0 1.732-1H18a3 3 0 0 0 3-3V7a3 3 0 0 0-3-3h-1.17A3.001 3.001 0 0 0 14 2h-2ZM5 14h3v1.5H4V14h1Zm-1 3.5V21h4v-3.5H4Zm6-3.5v6h8a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1h-1.17A3.001 3.001 0 0 1 14 8h-2a3.001 3.001 0 0 1-2.83-2H8a1 1 0 0 0-1 1v5h1a2 2 0 0 1 2 2Zm1-9a1 1 0 0 1 1-1h2a1 1 0 1 1 0 2h-2a1 1 0 0 1-1-1Zm2 6a1 1 0 0 0-1 1v5a1 1 0 1 0 2 0v-5a1 1 0 0 0-1-1Zm2 4a1 1 0 1 1 2 0v2a1 1 0 1 1-2 0v-2Z",
|
|
16
|
+
clipRule: "evenodd"
|
|
17
|
+
}
|
|
18
|
+
)
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
export {
|
|
22
|
+
e as default
|
|
23
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
+
const t = (a) => /* @__PURE__ */ l(
|
|
3
|
+
"svg",
|
|
4
|
+
{
|
|
5
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6
|
+
width: 24,
|
|
7
|
+
height: 24,
|
|
8
|
+
fill: "none",
|
|
9
|
+
...a,
|
|
10
|
+
children: /* @__PURE__ */ l(
|
|
11
|
+
"path",
|
|
12
|
+
{
|
|
13
|
+
fill: "#3E3E3E",
|
|
14
|
+
fillRule: "evenodd",
|
|
15
|
+
d: "M2 3a1 1 0 0 1 1-1h2a1 1 0 0 1 .98.804L6.22 4H21a1 1 0 0 1 .894 1.447l-4 8A1 1 0 0 1 17 14H7.414l-2 2H17a3 3 0 1 1-2.83 2H9.83a3 3 0 1 1-5.521-.326c-.98-.65-1.268-2.129-.309-3.088l1.914-1.915L4.18 4H3a1 1 0 0 1-1-1Zm5.82 9h8.562l3-6H6.62l1.2 6ZM7 18a1 1 0 1 0 0 2 1 1 0 0 0 0-2Zm10 0a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z",
|
|
16
|
+
clipRule: "evenodd"
|
|
17
|
+
}
|
|
18
|
+
)
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
export {
|
|
22
|
+
t as default
|
|
23
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
+
const h = (a) => /* @__PURE__ */ l(
|
|
3
|
+
"svg",
|
|
4
|
+
{
|
|
5
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6
|
+
width: 24,
|
|
7
|
+
height: 24,
|
|
8
|
+
fill: "none",
|
|
9
|
+
...a,
|
|
10
|
+
children: /* @__PURE__ */ l(
|
|
11
|
+
"path",
|
|
12
|
+
{
|
|
13
|
+
fill: "#3E3E3E",
|
|
14
|
+
fillRule: "evenodd",
|
|
15
|
+
d: "M2 5a3 3 0 0 1 3-3h14a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3h-3.47l.373 1.489.804.804A1 1 0 0 1 16 22H8a1 1 0 0 1-.707-1.707l.804-.804L8.469 18H5a3 3 0 0 1-3-3V5Zm2 9v1a1 1 0 0 0 1 1H19a1 1 0 0 0 1-1v-1H4Zm16-2H4V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v7Zm-6.53 6h-2.94l-.5 2h3.94l-.5-2Z",
|
|
16
|
+
clipRule: "evenodd"
|
|
17
|
+
}
|
|
18
|
+
)
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
export {
|
|
22
|
+
h as default
|
|
23
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { default as s } from "./Badge.js";
|
|
2
|
+
import "react/jsx-runtime";
|
|
3
|
+
import "./icons/Appointment.js";
|
|
4
|
+
import "./icons/ASN.js";
|
|
5
|
+
import "./icons/Inventory.js";
|
|
6
|
+
import "./icons/Parcel.js";
|
|
7
|
+
import "./icons/Product.js";
|
|
8
|
+
import "./icons/Route.js";
|
|
9
|
+
import "./icons/Shipment.js";
|
|
10
|
+
import "./icons/ShoppingCart.js";
|
|
11
|
+
import "./icons/System.js";
|
|
12
|
+
import "../../constants/index.js";
|
|
13
|
+
import "../../styled-components.browser.esm-02f500bc.js";
|
|
14
|
+
import "react";
|
|
15
|
+
import "./styles.js";
|
|
16
|
+
import "../../InfoCircleFilled-c5f90c20.js";
|
|
17
|
+
import "../../presets-83ccb923.js";
|
|
18
|
+
import "../../AntdIcon-c395a1c4.js";
|
|
19
|
+
import "../../ExclamationCircleFilled-23ef9812.js";
|
|
20
|
+
import "../../CloseCircleFilled-ddc51e7e.js";
|
|
21
|
+
export {
|
|
22
|
+
s as default
|
|
23
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const BadgeState: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
2
|
+
export declare const Badge: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
|
+
export declare const BadgeWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { d as o } from "../../styled-components.browser.esm-02f500bc.js";
|
|
2
|
+
import "react";
|
|
3
|
+
const r = o.div`
|
|
4
|
+
position: relative;
|
|
5
|
+
display: flex;
|
|
6
|
+
position: absolute;
|
|
7
|
+
justify-content: center;
|
|
8
|
+
align-items: center;
|
|
9
|
+
top: -10px;
|
|
10
|
+
left: 16px;
|
|
11
|
+
width: 20px;
|
|
12
|
+
height: 20px;
|
|
13
|
+
border: 2px solid ${({ color: e }) => e};
|
|
14
|
+
border-radius: 50%;
|
|
15
|
+
box-sizing: border-box;
|
|
16
|
+
background-color: white;
|
|
17
|
+
`, d = o.div`
|
|
18
|
+
display: flex;
|
|
19
|
+
position: relative;
|
|
20
|
+
`, s = o.div`
|
|
21
|
+
display: flex;
|
|
22
|
+
justify-content: center;
|
|
23
|
+
align-items: center;
|
|
24
|
+
position: relative;
|
|
25
|
+
width: 40px;
|
|
26
|
+
height: 40px;
|
|
27
|
+
border-radius: 50%;
|
|
28
|
+
border: 1px solid ${({ theme: e }) => e.colors.surface.border};
|
|
29
|
+
background-color: ${({ theme: e }) => e.colors.surface.default};
|
|
30
|
+
`;
|
|
31
|
+
export {
|
|
32
|
+
d as Badge,
|
|
33
|
+
r as BadgeState,
|
|
34
|
+
s as BadgeWrapper
|
|
35
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BreadcrumbItem } from './Breadcrumb.types';
|
|
2
|
+
|
|
3
|
+
export interface BreadcrumbProps {
|
|
4
|
+
items: BreadcrumbItem[];
|
|
5
|
+
isDisabled?: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare const Breadcrumb: ({ items, isDisabled }: BreadcrumbProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default Breadcrumb;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { BreadcrumbWrapper as m, Breadcrumb as t } from "./styles.js";
|
|
3
|
+
import "../../styled-components.browser.esm-02f500bc.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import "../../presets-83ccb923.js";
|
|
6
|
+
import "../../isVisible-729780f5.js";
|
|
7
|
+
import "../../index-4003d75b.js";
|
|
8
|
+
import "react-dom";
|
|
9
|
+
import "../../pickAttrs-00ba4687.js";
|
|
10
|
+
import "../../reactNode-f4391605.js";
|
|
11
|
+
import "../../DownOutlined-64a4732a.js";
|
|
12
|
+
import "../../index-1a33c134.js";
|
|
13
|
+
import "../../index-8c8d2d0c.js";
|
|
14
|
+
import "../../AntdIcon-c395a1c4.js";
|
|
15
|
+
import "../../RightOutlined-83515eb4.js";
|
|
16
|
+
import "../../EllipsisOutlined-60122660.js";
|
|
17
|
+
import "../../Overflow-a570fa69.js";
|
|
18
|
+
import "../../index-0b9ee239.js";
|
|
19
|
+
import "../../ContextIsolator-b09b2c52.js";
|
|
20
|
+
import "../../context-3b8a39af.js";
|
|
21
|
+
import "../../Compact-c39ed20d.js";
|
|
22
|
+
import "../../presetColors-ccf8cb4c.js";
|
|
23
|
+
import "../../collapse-345bc884.js";
|
|
24
|
+
const y = ({ items: o, isDisabled: i = !1 }) => /* @__PURE__ */ r(m, { $isDisabled: i, role: "navigation", children: /* @__PURE__ */ r(t, { items: o, role: "link" }) });
|
|
25
|
+
export {
|
|
26
|
+
y as default
|
|
27
|
+
};
|