@semcore/illustration 17.0.1-prerelease.0 → 17.0.2-prerelease.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/CHANGELOG.md +85 -3
- package/README.md +5 -32
- package/lib/MailSent/index.js +14 -3
- package/lib/MailSent/index.mjs +14 -3
- package/lib/cjs/index.js +7 -8
- package/lib/cjs/index.js.map +1 -1
- package/lib/es6/index.js +6 -8
- package/lib/es6/index.js.map +1 -1
- package/lib/esm/index.mjs +6 -8
- package/package.json +171 -178
- package/svg/MailSent.svg +1 -27
- package/transform.ts +21 -20
- package/types/svg-to-jsx.d.ts +1 -1
- package/vite.config.ts +24 -0
- package/AccessDenied/index.d.ts +0 -28
- package/AccessDenied/index.js +0 -242
- package/AccessDenied/index.mjs +0 -220
- package/AccessLogIn/index.d.ts +0 -28
- package/AccessLogIn/index.js +0 -344
- package/AccessLogIn/index.mjs +0 -322
- package/AreaChart/index.d.ts +0 -28
- package/AreaChart/index.js +0 -89
- package/AreaChart/index.mjs +0 -67
- package/Blocked/index.d.ts +0 -28
- package/Blocked/index.js +0 -493
- package/Blocked/index.mjs +0 -471
- package/ChoroplethMapChart/index.d.ts +0 -28
- package/ChoroplethMapChart/index.js +0 -111
- package/ChoroplethMapChart/index.mjs +0 -89
- package/Coffee/index.d.ts +0 -28
- package/Coffee/index.js +0 -96
- package/Coffee/index.mjs +0 -74
- package/Collection/index.d.ts +0 -28
- package/Collection/index.js +0 -90
- package/Collection/index.mjs +0 -68
- package/CombinedChart/index.d.ts +0 -28
- package/CombinedChart/index.js +0 -118
- package/CombinedChart/index.mjs +0 -96
- package/Configuration/index.d.ts +0 -28
- package/Configuration/index.js +0 -197
- package/Configuration/index.mjs +0 -175
- package/Confirmation/index.d.ts +0 -28
- package/Confirmation/index.js +0 -267
- package/Confirmation/index.mjs +0 -245
- package/Congrats/index.d.ts +0 -28
- package/Congrats/index.js +0 -147
- package/Congrats/index.mjs +0 -125
- package/ConnectionLost/index.d.ts +0 -28
- package/ConnectionLost/index.js +0 -299
- package/ConnectionLost/index.mjs +0 -277
- package/DeletedAccount/index.d.ts +0 -28
- package/DeletedAccount/index.js +0 -376
- package/DeletedAccount/index.mjs +0 -354
- package/DeletedPage/index.d.ts +0 -28
- package/DeletedPage/index.js +0 -81
- package/DeletedPage/index.mjs +0 -59
- package/Dns/index.d.ts +0 -28
- package/Dns/index.js +0 -180
- package/Dns/index.mjs +0 -158
- package/DonutChart/index.d.ts +0 -28
- package/DonutChart/index.js +0 -131
- package/DonutChart/index.mjs +0 -109
- package/Duplicates/index.d.ts +0 -28
- package/Duplicates/index.js +0 -108
- package/Duplicates/index.mjs +0 -86
- package/Feedback/index.d.ts +0 -28
- package/Feedback/index.js +0 -96
- package/Feedback/index.mjs +0 -74
- package/FunnelChart/index.d.ts +0 -28
- package/FunnelChart/index.js +0 -98
- package/FunnelChart/index.mjs +0 -76
- package/Good/index.d.ts +0 -28
- package/Good/index.js +0 -131
- package/Good/index.mjs +0 -109
- package/HeatMapChart/index.d.ts +0 -28
- package/HeatMapChart/index.js +0 -116
- package/HeatMapChart/index.mjs +0 -94
- package/HorizontalBarChart/index.d.ts +0 -28
- package/HorizontalBarChart/index.js +0 -102
- package/HorizontalBarChart/index.mjs +0 -80
- package/KagiChart/index.d.ts +0 -28
- package/KagiChart/index.js +0 -83
- package/KagiChart/index.mjs +0 -61
- package/LineChart/index.d.ts +0 -28
- package/LineChart/index.js +0 -86
- package/LineChart/index.mjs +0 -64
- package/LollipopChart/index.d.ts +0 -28
- package/LollipopChart/index.js +0 -103
- package/LollipopChart/index.mjs +0 -81
- package/MailSent/index.d.ts +0 -28
- package/MailSent/index.js +0 -142
- package/MailSent/index.mjs +0 -120
- package/Maintenance/index.d.ts +0 -28
- package/Maintenance/index.js +0 -363
- package/Maintenance/index.mjs +0 -341
- package/Nexttime/index.d.ts +0 -28
- package/Nexttime/index.js +0 -110
- package/Nexttime/index.mjs +0 -88
- package/NoPayment/index.d.ts +0 -28
- package/NoPayment/index.js +0 -304
- package/NoPayment/index.mjs +0 -282
- package/NothingFound/index.d.ts +0 -28
- package/NothingFound/index.js +0 -134
- package/NothingFound/index.mjs +0 -112
- package/OtherData/index.d.ts +0 -28
- package/OtherData/index.js +0 -117
- package/OtherData/index.mjs +0 -95
- package/PageError/index.d.ts +0 -28
- package/PageError/index.js +0 -224
- package/PageError/index.mjs +0 -202
- package/PageNotFound/index.d.ts +0 -28
- package/PageNotFound/index.js +0 -284
- package/PageNotFound/index.mjs +0 -262
- package/PieChart/index.d.ts +0 -28
- package/PieChart/index.js +0 -116
- package/PieChart/index.mjs +0 -94
- package/Processing/index.d.ts +0 -28
- package/Processing/index.js +0 -96
- package/Processing/index.mjs +0 -74
- package/ProjectNotFound/index.d.ts +0 -28
- package/ProjectNotFound/index.js +0 -247
- package/ProjectNotFound/index.mjs +0 -225
- package/RadarChart/index.d.ts +0 -28
- package/RadarChart/index.js +0 -95
- package/RadarChart/index.mjs +0 -73
- package/RadialTreeChart/index.d.ts +0 -28
- package/RadialTreeChart/index.js +0 -137
- package/RadialTreeChart/index.mjs +0 -115
- package/SankeyChart/index.d.ts +0 -28
- package/SankeyChart/index.js +0 -123
- package/SankeyChart/index.mjs +0 -101
- package/ScatterPlotChart/index.d.ts +0 -28
- package/ScatterPlotChart/index.js +0 -108
- package/ScatterPlotChart/index.mjs +0 -86
- package/StackedAreaChart/index.d.ts +0 -28
- package/StackedAreaChart/index.js +0 -110
- package/StackedAreaChart/index.mjs +0 -88
- package/Suggestion/index.d.ts +0 -28
- package/Suggestion/index.js +0 -94
- package/Suggestion/index.mjs +0 -72
- package/Suggestions/index.d.ts +0 -28
- package/Suggestions/index.js +0 -97
- package/Suggestions/index.mjs +0 -75
- package/Table/index.d.ts +0 -28
- package/Table/index.js +0 -81
- package/Table/index.mjs +0 -59
- package/TagCloud/index.d.ts +0 -28
- package/TagCloud/index.js +0 -108
- package/TagCloud/index.mjs +0 -86
- package/TextLinksEtc/index.d.ts +0 -28
- package/TextLinksEtc/index.js +0 -84
- package/TextLinksEtc/index.mjs +0 -62
- package/Timeout/index.d.ts +0 -28
- package/Timeout/index.js +0 -381
- package/Timeout/index.mjs +0 -359
- package/UnderConstruction/index.d.ts +0 -28
- package/UnderConstruction/index.js +0 -143
- package/UnderConstruction/index.mjs +0 -121
- package/VennChart/index.d.ts +0 -28
- package/VennChart/index.js +0 -109
- package/VennChart/index.mjs +0 -87
- package/VerticalBarChart/index.d.ts +0 -28
- package/VerticalBarChart/index.js +0 -103
- package/VerticalBarChart/index.mjs +0 -81
- package/Waiting/index.d.ts +0 -28
- package/Waiting/index.js +0 -96
- package/Waiting/index.mjs +0 -74
- package/Warning/index.d.ts +0 -28
- package/Warning/index.js +0 -91
- package/Warning/index.mjs +0 -69
- package/clear.ts +0 -25
package/Warning/index.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { BoxProps } from '@semcore/flex-box';
|
|
3
|
-
import { Intergalactic } from '@semcore/core';
|
|
4
|
-
|
|
5
|
-
type IllustrationProps = BoxProps & {
|
|
6
|
-
/**
|
|
7
|
-
* Main color of the illustration
|
|
8
|
-
**/
|
|
9
|
-
primaryColor?: string;
|
|
10
|
-
/**
|
|
11
|
-
* Secondary color of the illustration
|
|
12
|
-
**/
|
|
13
|
-
secondaryColor?: string;
|
|
14
|
-
/**
|
|
15
|
-
* Changes background fill of the illustration
|
|
16
|
-
**/
|
|
17
|
-
fill?: string;
|
|
18
|
-
/**
|
|
19
|
-
* Width of the illustration
|
|
20
|
-
**/
|
|
21
|
-
width?: string | number;
|
|
22
|
-
/**
|
|
23
|
-
* Height of the illustration
|
|
24
|
-
**/
|
|
25
|
-
height?: string | number;
|
|
26
|
-
}
|
|
27
|
-
declare const Illustration: Intergalactic.Component<'svg', IllustrationProps>;
|
|
28
|
-
export default Illustration;
|
package/Warning/index.js
DELETED
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
|
|
20
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
21
|
-
var stdin_exports = {};
|
|
22
|
-
__export(stdin_exports, {
|
|
23
|
-
default: () => stdin_default
|
|
24
|
-
});
|
|
25
|
-
module.exports = __toCommonJS(stdin_exports);
|
|
26
|
-
var import_react = __toESM(require("react"));
|
|
27
|
-
var import_core = require("@semcore/core");
|
|
28
|
-
var import_flex_box = require("@semcore/flex-box");
|
|
29
|
-
var import_useColorResolver = require("@semcore/core/lib/utils/use/useColorResolver");
|
|
30
|
-
const Warning = ({ fill = "none", width = "80", height = "80", viewBox = "0 0 80 80", primaryColor = "#E0E1E9", secondaryColor = "#6C6E79", ...props }, ref) => {
|
|
31
|
-
const colorResolver = (0, import_useColorResolver.useColorResolver)();
|
|
32
|
-
const resolvedPrimaryColor = colorResolver(primaryColor);
|
|
33
|
-
const resolvedSecondaryColor = colorResolver(secondaryColor);
|
|
34
|
-
return /* @__PURE__ */ import_react.default.createElement(import_flex_box.Box, {
|
|
35
|
-
ref,
|
|
36
|
-
width,
|
|
37
|
-
height,
|
|
38
|
-
viewBox,
|
|
39
|
-
fill,
|
|
40
|
-
tag: "svg",
|
|
41
|
-
"aria-hidden": true,
|
|
42
|
-
...props
|
|
43
|
-
}, /* @__PURE__ */ import_react.default.createElement("path", {
|
|
44
|
-
d: "M40.51 79.997C62.49 79.714 79.977 61.39 79.977 39.4V.99a.994.994 0 0 0-.99-.99H54.306a.994.994 0 0 0-.99.99v2.753H27.638a.994.994 0 0 0-.99.99v35.265H.991A.985.985 0 0 0 0 41.01c.544 21.806 18.52 39.27 40.52 38.987",
|
|
45
|
-
fill: resolvedPrimaryColor
|
|
46
|
-
}), /* @__PURE__ */ import_react.default.createElement("path", {
|
|
47
|
-
d: "M66.16 57.374s.087-.054.12-.087l6.521-4.323-3.147-1.697-3.147.756-8.334-31.681a5.73 5.73 0 0 0-6.707-4.15l-39.74 8.063-1.4-3.124-3.428 5.88a6.507 6.507 0 0 0-.217.368v.021a5.618 5.618 0 0 0-.456 4.248l10.472 36.654a2.599 2.599 0 0 0 3.19 1.794l45.459-12.344c.271-.076.52-.205.749-.346l.054-.032h.01Z",
|
|
48
|
-
fill: resolvedPrimaryColor,
|
|
49
|
-
stroke: resolvedSecondaryColor,
|
|
50
|
-
strokeLinecap: "round",
|
|
51
|
-
strokeLinejoin: "round",
|
|
52
|
-
strokeWidth: ".7"
|
|
53
|
-
}), /* @__PURE__ */ import_react.default.createElement("path", {
|
|
54
|
-
d: "M72.02 53.31 24.152 66.313a2.747 2.747 0 0 1-3.364-1.892L9.752 25.822c-.966-3.372 1.16-6.853 4.612-7.556l43.05-8.744c3.146-.638 6.25 1.286 7.053 4.377L73.95 49.98a2.729 2.729 0 0 1-1.931 3.33Z",
|
|
55
|
-
fill: "#fff",
|
|
56
|
-
stroke: resolvedSecondaryColor,
|
|
57
|
-
strokeLinecap: "round",
|
|
58
|
-
strokeLinejoin: "round",
|
|
59
|
-
strokeWidth: ".7"
|
|
60
|
-
}), /* @__PURE__ */ import_react.default.createElement("path", {
|
|
61
|
-
d: "M65.682 18.57 11.076 30.512l-1.346-4.69c-.966-3.373 1.161-6.854 4.612-7.556l43.05-8.734c3.146-.638 6.25 1.286 7.053 4.378l1.226 4.669.011-.01Z",
|
|
62
|
-
fill: resolvedSecondaryColor
|
|
63
|
-
}), /* @__PURE__ */ import_react.default.createElement("path", {
|
|
64
|
-
d: "M18.433 23.174a1.873 1.873 0 0 1-1.421 2.367c-1.097.238-2.236-.454-2.54-1.524a1.868 1.868 0 0 1 1.433-2.367c1.096-.227 2.224.465 2.528 1.535v-.011Z",
|
|
65
|
-
fill: "#fff"
|
|
66
|
-
}), /* @__PURE__ */ import_react.default.createElement("path", {
|
|
67
|
-
d: "M25.443 21.693c.293 1.06-.325 2.108-1.4 2.335-1.074.227-2.192-.454-2.485-1.524-.293-1.07.326-2.12 1.411-2.346 1.085-.227 2.181.465 2.474 1.524v.01Z",
|
|
68
|
-
fill: resolvedPrimaryColor
|
|
69
|
-
}), /* @__PURE__ */ import_react.default.createElement("path", {
|
|
70
|
-
d: "M11.097 30.6s.326-3.157.608-6.389l-1.378-3.08-3.43 5.88a6.507 6.507 0 0 0-.216.367v.022a5.619 5.619 0 0 0-.456 4.248l1.4 4.908 3.472-5.967v.01Z",
|
|
71
|
-
fill: resolvedSecondaryColor
|
|
72
|
-
}), /* @__PURE__ */ import_react.default.createElement("path", {
|
|
73
|
-
d: "m40.481 27.976-7.447 28.427a.98.98 0 0 0 1.22 1.197l27.762-7.62c.73-.197.97-1.1.447-1.645L42.147 27.53c-.533-.545-1.47-.305-1.666.435v.01Z",
|
|
74
|
-
fill: resolvedPrimaryColor,
|
|
75
|
-
stroke: resolvedSecondaryColor,
|
|
76
|
-
strokeLinecap: "round",
|
|
77
|
-
strokeLinejoin: "round",
|
|
78
|
-
strokeWidth: ".7"
|
|
79
|
-
}), /* @__PURE__ */ import_react.default.createElement("path", {
|
|
80
|
-
d: "m43.443 35.477 2.373 8.645",
|
|
81
|
-
stroke: resolvedSecondaryColor,
|
|
82
|
-
strokeLinecap: "round",
|
|
83
|
-
strokeLinejoin: "round",
|
|
84
|
-
strokeWidth: "2"
|
|
85
|
-
}), /* @__PURE__ */ import_react.default.createElement("path", {
|
|
86
|
-
d: "M48.353 48.346c.185.675-.24 1.372-.947 1.557-.708.185-1.438-.196-1.623-.871-.185-.675.24-1.372.947-1.557.708-.185 1.427.207 1.612.871h.01Z",
|
|
87
|
-
fill: resolvedSecondaryColor
|
|
88
|
-
}));
|
|
89
|
-
};
|
|
90
|
-
Warning.displayName = "Warning";
|
|
91
|
-
var stdin_default = (0, import_core.createBaseComponent)(Warning);
|
package/Warning/index.mjs
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { createBaseComponent } from "@semcore/core";
|
|
3
|
-
import { Box } from "@semcore/flex-box";
|
|
4
|
-
import { useColorResolver } from "@semcore/core/lib/utils/use/useColorResolver";
|
|
5
|
-
const Warning = ({ fill = "none", width = "80", height = "80", viewBox = "0 0 80 80", primaryColor = "#E0E1E9", secondaryColor = "#6C6E79", ...props }, ref) => {
|
|
6
|
-
const colorResolver = useColorResolver();
|
|
7
|
-
const resolvedPrimaryColor = colorResolver(primaryColor);
|
|
8
|
-
const resolvedSecondaryColor = colorResolver(secondaryColor);
|
|
9
|
-
return /* @__PURE__ */ React.createElement(Box, {
|
|
10
|
-
ref,
|
|
11
|
-
width,
|
|
12
|
-
height,
|
|
13
|
-
viewBox,
|
|
14
|
-
fill,
|
|
15
|
-
tag: "svg",
|
|
16
|
-
"aria-hidden": true,
|
|
17
|
-
...props
|
|
18
|
-
}, /* @__PURE__ */ React.createElement("path", {
|
|
19
|
-
d: "M40.51 79.997C62.49 79.714 79.977 61.39 79.977 39.4V.99a.994.994 0 0 0-.99-.99H54.306a.994.994 0 0 0-.99.99v2.753H27.638a.994.994 0 0 0-.99.99v35.265H.991A.985.985 0 0 0 0 41.01c.544 21.806 18.52 39.27 40.52 38.987",
|
|
20
|
-
fill: resolvedPrimaryColor
|
|
21
|
-
}), /* @__PURE__ */ React.createElement("path", {
|
|
22
|
-
d: "M66.16 57.374s.087-.054.12-.087l6.521-4.323-3.147-1.697-3.147.756-8.334-31.681a5.73 5.73 0 0 0-6.707-4.15l-39.74 8.063-1.4-3.124-3.428 5.88a6.507 6.507 0 0 0-.217.368v.021a5.618 5.618 0 0 0-.456 4.248l10.472 36.654a2.599 2.599 0 0 0 3.19 1.794l45.459-12.344c.271-.076.52-.205.749-.346l.054-.032h.01Z",
|
|
23
|
-
fill: resolvedPrimaryColor,
|
|
24
|
-
stroke: resolvedSecondaryColor,
|
|
25
|
-
strokeLinecap: "round",
|
|
26
|
-
strokeLinejoin: "round",
|
|
27
|
-
strokeWidth: ".7"
|
|
28
|
-
}), /* @__PURE__ */ React.createElement("path", {
|
|
29
|
-
d: "M72.02 53.31 24.152 66.313a2.747 2.747 0 0 1-3.364-1.892L9.752 25.822c-.966-3.372 1.16-6.853 4.612-7.556l43.05-8.744c3.146-.638 6.25 1.286 7.053 4.377L73.95 49.98a2.729 2.729 0 0 1-1.931 3.33Z",
|
|
30
|
-
fill: "#fff",
|
|
31
|
-
stroke: resolvedSecondaryColor,
|
|
32
|
-
strokeLinecap: "round",
|
|
33
|
-
strokeLinejoin: "round",
|
|
34
|
-
strokeWidth: ".7"
|
|
35
|
-
}), /* @__PURE__ */ React.createElement("path", {
|
|
36
|
-
d: "M65.682 18.57 11.076 30.512l-1.346-4.69c-.966-3.373 1.161-6.854 4.612-7.556l43.05-8.734c3.146-.638 6.25 1.286 7.053 4.378l1.226 4.669.011-.01Z",
|
|
37
|
-
fill: resolvedSecondaryColor
|
|
38
|
-
}), /* @__PURE__ */ React.createElement("path", {
|
|
39
|
-
d: "M18.433 23.174a1.873 1.873 0 0 1-1.421 2.367c-1.097.238-2.236-.454-2.54-1.524a1.868 1.868 0 0 1 1.433-2.367c1.096-.227 2.224.465 2.528 1.535v-.011Z",
|
|
40
|
-
fill: "#fff"
|
|
41
|
-
}), /* @__PURE__ */ React.createElement("path", {
|
|
42
|
-
d: "M25.443 21.693c.293 1.06-.325 2.108-1.4 2.335-1.074.227-2.192-.454-2.485-1.524-.293-1.07.326-2.12 1.411-2.346 1.085-.227 2.181.465 2.474 1.524v.01Z",
|
|
43
|
-
fill: resolvedPrimaryColor
|
|
44
|
-
}), /* @__PURE__ */ React.createElement("path", {
|
|
45
|
-
d: "M11.097 30.6s.326-3.157.608-6.389l-1.378-3.08-3.43 5.88a6.507 6.507 0 0 0-.216.367v.022a5.619 5.619 0 0 0-.456 4.248l1.4 4.908 3.472-5.967v.01Z",
|
|
46
|
-
fill: resolvedSecondaryColor
|
|
47
|
-
}), /* @__PURE__ */ React.createElement("path", {
|
|
48
|
-
d: "m40.481 27.976-7.447 28.427a.98.98 0 0 0 1.22 1.197l27.762-7.62c.73-.197.97-1.1.447-1.645L42.147 27.53c-.533-.545-1.47-.305-1.666.435v.01Z",
|
|
49
|
-
fill: resolvedPrimaryColor,
|
|
50
|
-
stroke: resolvedSecondaryColor,
|
|
51
|
-
strokeLinecap: "round",
|
|
52
|
-
strokeLinejoin: "round",
|
|
53
|
-
strokeWidth: ".7"
|
|
54
|
-
}), /* @__PURE__ */ React.createElement("path", {
|
|
55
|
-
d: "m43.443 35.477 2.373 8.645",
|
|
56
|
-
stroke: resolvedSecondaryColor,
|
|
57
|
-
strokeLinecap: "round",
|
|
58
|
-
strokeLinejoin: "round",
|
|
59
|
-
strokeWidth: "2"
|
|
60
|
-
}), /* @__PURE__ */ React.createElement("path", {
|
|
61
|
-
d: "M48.353 48.346c.185.675-.24 1.372-.947 1.557-.708.185-1.438-.196-1.623-.871-.185-.675.24-1.372.947-1.557.708-.185 1.427.207 1.612.871h.01Z",
|
|
62
|
-
fill: resolvedSecondaryColor
|
|
63
|
-
}));
|
|
64
|
-
};
|
|
65
|
-
Warning.displayName = "Warning";
|
|
66
|
-
var stdin_default = createBaseComponent(Warning);
|
|
67
|
-
export {
|
|
68
|
-
stdin_default as default
|
|
69
|
-
};
|
package/clear.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import fs from 'fs/promises';
|
|
2
|
-
import { resolve as resolvePath } from 'path';
|
|
3
|
-
|
|
4
|
-
const fsEntities = await fs.readdir('.');
|
|
5
|
-
const arraysShallowEqual = <T>(a: T[], b: T[]) =>
|
|
6
|
-
a.length === b.length && a.every((item) => b.includes(item));
|
|
7
|
-
const needToBeRemoved = await Promise.all(
|
|
8
|
-
fsEntities.map(async (name) => {
|
|
9
|
-
const path = resolvePath('.', name);
|
|
10
|
-
const stat = await fs.stat(path);
|
|
11
|
-
if (!stat.isDirectory()) return false;
|
|
12
|
-
const subEntities = await fs.readdir(path);
|
|
13
|
-
if (subEntities.length === 0) return true;
|
|
14
|
-
if (arraysShallowEqual(subEntities, ['index.d.ts', 'index.js', 'index.mjs'])) return true;
|
|
15
|
-
if (arraysShallowEqual(subEntities, ['cjs', 'es6', 'types'])) return true;
|
|
16
|
-
|
|
17
|
-
return false;
|
|
18
|
-
}),
|
|
19
|
-
);
|
|
20
|
-
|
|
21
|
-
await Promise.all(
|
|
22
|
-
fsEntities
|
|
23
|
-
.filter((_, index) => needToBeRemoved[index])
|
|
24
|
-
.map((name) => fs.rm(name, { recursive: true, force: true })),
|
|
25
|
-
);
|