@pisell/materials 1.0.402 → 1.0.404
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/build/lowcode/assets-daily.json +13 -13
- package/build/lowcode/assets-dev.json +4 -4
- package/build/lowcode/assets-prod.json +13 -13
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +2 -2
- package/build/lowcode/preview.js +142 -142
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +16 -59
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +19 -62
- package/dist/umd/materials.min.css +1 -0
- package/dist/umd/materials.min.js +1 -0
- package/dist/umd/static/DotsSix.57d66266.svg +1 -0
- package/dist/umd/static/arrow-left.e542294f.svg +1 -0
- package/dist/umd/static/arrow-right.763f03e0.svg +1 -0
- package/dist/umd/static/filter-lines.04a54ae9.svg +1 -0
- package/dist/umd/static/help-circle.31c9be40.svg +1 -0
- package/dist/umd/static/switch-vertical-01.7ebe3ba8.svg +1 -0
- package/es/components/date-picker/index.js +2 -2
- package/es/components/drag-sort-tree/index.d.ts +1 -0
- package/es/components/drag-sort-tree/index.js +1 -2
- package/es/components/pisell-config-provider/index.js +0 -2
- package/es/components/pisellModal/components/functions/index.d.ts +5 -23
- package/es/components/pisellModal/components/functions/index.js +2 -7
- package/es/components/pisellModal/index.d.ts +5 -20
- package/es/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +3 -3
- package/es/components/table/Actions/component/ExportImport/components/ExportFile/index.js +26 -30
- package/es/components/table/Actions/component/ExportImport/components/ExportTable/function.js +1 -3
- package/es/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +3 -3
- package/es/components/table/Actions/component/ExportImport/components/ImportLog/index.js +21 -25
- package/es/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +3 -3
- package/es/components/table/Actions/component/ExportImport/components/ImportTable/index.js +31 -34
- package/es/components/table/Actions/component/ExportImport/index.d.ts +3 -3
- package/es/components/table/Actions/component/ExportImport/index.js +25 -32
- package/es/components/table/BasicTable/index.js +2 -1
- package/es/components/table/Gallery/index.js +1 -2
- package/es/components/table/Table/fields/rangePicker/Edit/index.js +11 -13
- package/es/components/table/Table/index.d.ts +2 -2
- package/es/components/table/Table/index.js +42 -68
- package/es/components/table/Table/index.less +0 -3
- package/es/components/table/Table/utils.d.ts +3 -15
- package/es/components/table/Table/utils.js +2 -6
- package/es/components/table/View/index.d.ts +2 -2
- package/es/components/table/View/index.js +16 -20
- package/es/components/table/hooks/useTableSetting.js +7 -29
- package/es/components/table/hooks/useTransDataSource.d.ts +0 -1
- package/es/components/table/hooks/useTransDataSource.js +4 -6
- package/es/components/table/index.js +5 -8
- package/es/components/table/index.less +0 -4
- package/es/components/table/serve.d.ts +0 -1
- package/es/components/table/serve.js +7 -38
- package/es/components/table/types.d.ts +0 -2
- package/es/index.d.ts +1 -3
- package/es/index.js +1 -3
- package/es/locales/en-US.d.ts +0 -12
- package/es/locales/en-US.js +0 -13
- package/es/locales/zh-CN.d.ts +0 -12
- package/es/locales/zh-CN.js +0 -13
- package/es/locales/zh-TW.d.ts +0 -12
- package/es/locales/zh-TW.js +0 -13
- package/lib/components/date-picker/index.js +2 -2
- package/lib/components/drag-sort-tree/index.d.ts +1 -0
- package/lib/components/drag-sort-tree/index.js +1 -0
- package/lib/components/pisell-config-provider/index.js +0 -2
- package/lib/components/pisellModal/components/functions/index.d.ts +5 -23
- package/lib/components/pisellModal/components/functions/index.js +7 -13
- package/lib/components/pisellModal/index.d.ts +5 -20
- package/lib/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +3 -3
- package/lib/components/table/Actions/component/ExportImport/components/ExportFile/index.js +2 -6
- package/lib/components/table/Actions/component/ExportImport/components/ExportTable/function.js +1 -2
- package/lib/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +3 -3
- package/lib/components/table/Actions/component/ExportImport/components/ImportLog/index.js +2 -6
- package/lib/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +3 -3
- package/lib/components/table/Actions/component/ExportImport/components/ImportTable/index.js +2 -4
- package/lib/components/table/Actions/component/ExportImport/index.d.ts +3 -3
- package/lib/components/table/Actions/component/ExportImport/index.js +8 -13
- package/lib/components/table/BasicTable/index.js +2 -1
- package/lib/components/table/Gallery/index.js +1 -2
- package/lib/components/table/Table/fields/rangePicker/Edit/index.js +9 -1
- package/lib/components/table/Table/index.d.ts +2 -2
- package/lib/components/table/Table/index.js +34 -61
- package/lib/components/table/Table/index.less +0 -3
- package/lib/components/table/Table/utils.d.ts +3 -15
- package/lib/components/table/Table/utils.js +1 -7
- package/lib/components/table/View/index.d.ts +2 -2
- package/lib/components/table/View/index.js +19 -23
- package/lib/components/table/hooks/useTableSetting.js +11 -26
- package/lib/components/table/hooks/useTransDataSource.d.ts +0 -1
- package/lib/components/table/hooks/useTransDataSource.js +4 -5
- package/lib/components/table/index.js +4 -5
- package/lib/components/table/index.less +0 -4
- package/lib/components/table/serve.d.ts +0 -1
- package/lib/components/table/serve.js +4 -24
- package/lib/components/table/types.d.ts +0 -2
- package/lib/index.d.ts +1 -3
- package/lib/index.js +0 -6
- package/lib/locales/en-US.d.ts +0 -12
- package/lib/locales/en-US.js +0 -13
- package/lib/locales/zh-CN.d.ts +0 -12
- package/lib/locales/zh-CN.js +0 -13
- package/lib/locales/zh-TW.d.ts +0 -12
- package/lib/locales/zh-TW.js +0 -13
- package/package.json +3 -3
- package/es/components/browserSelect/chevron-down.png +0 -0
- package/es/components/browserSelect/index.d.ts +0 -15
- package/es/components/browserSelect/index.js +0 -36
- package/es/components/browserSelect/index.less +0 -18
- package/es/components/date-picker/constants.d.ts +0 -39
- package/es/components/date-picker/constants.js +0 -76
- package/es/components/date-picker/datePickerCpt.d.ts +0 -8
- package/es/components/date-picker/datePickerCpt.js +0 -370
- package/es/components/date-picker/hooks/useMediaQuery.d.ts +0 -2
- package/es/components/date-picker/hooks/useMediaQuery.js +0 -28
- package/es/components/date-picker/index.less +0 -1880
- package/es/components/picker-view/index.d.ts +0 -2
- package/es/components/picker-view/index.js +0 -2
- package/es/components/pisellTags/index.d.ts +0 -13
- package/es/components/pisellTags/index.js +0 -83
- package/es/components/pisellTags/index.less +0 -17
- package/es/components/pisellTags/utils.d.ts +0 -1
- package/es/components/pisellTags/utils.js +0 -89
- package/lib/components/browserSelect/chevron-down.png +0 -0
- package/lib/components/browserSelect/index.d.ts +0 -15
- package/lib/components/browserSelect/index.js +0 -59
- package/lib/components/browserSelect/index.less +0 -18
- package/lib/components/date-picker/constants.d.ts +0 -39
- package/lib/components/date-picker/constants.js +0 -78
- package/lib/components/date-picker/datePickerCpt.d.ts +0 -8
- package/lib/components/date-picker/datePickerCpt.js +0 -403
- package/lib/components/date-picker/hooks/useMediaQuery.d.ts +0 -2
- package/lib/components/date-picker/hooks/useMediaQuery.js +0 -43
- package/lib/components/date-picker/index.less +0 -1880
- package/lib/components/picker-view/index.d.ts +0 -2
- package/lib/components/picker-view/index.js +0 -36
- package/lib/components/pisellTags/index.d.ts +0 -13
- package/lib/components/pisellTags/index.js +0 -113
- package/lib/components/pisellTags/index.less +0 -17
- package/lib/components/pisellTags/utils.d.ts +0 -1
- package/lib/components/pisellTags/utils.js +0 -86
|
@@ -1,36 +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(
|
|
20
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
-
mod
|
|
26
|
-
));
|
|
27
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
-
|
|
29
|
-
// src/components/picker-view/index.tsx
|
|
30
|
-
var picker_view_exports = {};
|
|
31
|
-
__export(picker_view_exports, {
|
|
32
|
-
default: () => picker_view_default
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(picker_view_exports);
|
|
35
|
-
var import_picker_view = __toESM(require("antd-mobile/es/components/picker-view"));
|
|
36
|
-
var picker_view_default = import_picker_view.default;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
export declare type PisellTagsType = 'pill_color' | 'pill_outline';
|
|
4
|
-
export declare type PisellTagsColor = 'success' | 'warning' | 'error' | 'gray' | string;
|
|
5
|
-
export interface PisellTagsProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement> {
|
|
6
|
-
children?: React.ReactNode;
|
|
7
|
-
others?: React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>;
|
|
8
|
-
type: PisellTagsType;
|
|
9
|
-
icon?: React.ReactNode;
|
|
10
|
-
color?: PisellTagsColor;
|
|
11
|
-
}
|
|
12
|
-
declare const PisellTags: (props: PisellTagsProps) => React.JSX.Element;
|
|
13
|
-
export default PisellTags;
|
|
@@ -1,113 +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(
|
|
20
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
-
mod
|
|
26
|
-
));
|
|
27
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
-
|
|
29
|
-
// src/components/pisellTags/index.tsx
|
|
30
|
-
var pisellTags_exports = {};
|
|
31
|
-
__export(pisellTags_exports, {
|
|
32
|
-
default: () => pisellTags_default
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(pisellTags_exports);
|
|
35
|
-
var import_react = __toESM(require("react"));
|
|
36
|
-
var import_classnames = __toESM(require("classnames"));
|
|
37
|
-
var import_utils = require("./utils");
|
|
38
|
-
var import_index = require("./index.less");
|
|
39
|
-
var pisellTagsColors = {
|
|
40
|
-
success: "#067647",
|
|
41
|
-
warning: "#B54708",
|
|
42
|
-
error: "#B42318",
|
|
43
|
-
gray: "#344054"
|
|
44
|
-
};
|
|
45
|
-
var getColor = (_color) => {
|
|
46
|
-
if (_color) {
|
|
47
|
-
return pisellTagsColors[_color] || _color;
|
|
48
|
-
}
|
|
49
|
-
return "#344054";
|
|
50
|
-
};
|
|
51
|
-
var getPillColorStyles = (_color) => {
|
|
52
|
-
const colorShades = (0, import_utils.generateColorShades)(_color);
|
|
53
|
-
return {
|
|
54
|
-
"--pisell-tags-bg-color": colorShades["color_50"],
|
|
55
|
-
"--pisell-tags-font-color": colorShades["color_700"],
|
|
56
|
-
"--pisell-tags-border-color": colorShades["color_200"]
|
|
57
|
-
};
|
|
58
|
-
};
|
|
59
|
-
var getPillOutlineStyles = (_color) => {
|
|
60
|
-
const colorShades = (0, import_utils.generateColorShades)(_color);
|
|
61
|
-
return {
|
|
62
|
-
"--pisell-tags-bg-color": "transparent",
|
|
63
|
-
"--pisell-tags-font-color": colorShades["color_700"],
|
|
64
|
-
"--pisell-tags-border-color": colorShades["color_600"]
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
var PisellTags = (props) => {
|
|
68
|
-
const {
|
|
69
|
-
children,
|
|
70
|
-
type,
|
|
71
|
-
icon,
|
|
72
|
-
color,
|
|
73
|
-
style = {},
|
|
74
|
-
others = {},
|
|
75
|
-
...otherProps
|
|
76
|
-
} = props;
|
|
77
|
-
const styles = (0, import_react.useMemo)(() => {
|
|
78
|
-
let obj = {
|
|
79
|
-
...style,
|
|
80
|
-
...others.style
|
|
81
|
-
};
|
|
82
|
-
const _color = getColor(props.color);
|
|
83
|
-
if (type === "pill_color") {
|
|
84
|
-
obj = {
|
|
85
|
-
...obj,
|
|
86
|
-
...getPillColorStyles(_color)
|
|
87
|
-
};
|
|
88
|
-
}
|
|
89
|
-
if (type === "pill_outline") {
|
|
90
|
-
obj = {
|
|
91
|
-
...obj,
|
|
92
|
-
...getPillOutlineStyles(_color)
|
|
93
|
-
};
|
|
94
|
-
}
|
|
95
|
-
return obj;
|
|
96
|
-
}, [color, style, others.style, type]);
|
|
97
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
98
|
-
"span",
|
|
99
|
-
{
|
|
100
|
-
style: { ...styles, ...style },
|
|
101
|
-
...others,
|
|
102
|
-
...otherProps,
|
|
103
|
-
className: (0, import_classnames.default)(
|
|
104
|
-
"pisell-tags",
|
|
105
|
-
others.className,
|
|
106
|
-
otherProps.className
|
|
107
|
-
)
|
|
108
|
-
},
|
|
109
|
-
icon ? icon : null,
|
|
110
|
-
children
|
|
111
|
-
);
|
|
112
|
-
};
|
|
113
|
-
var pisellTags_default = PisellTags;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
.pisell-tags {
|
|
2
|
-
--pisell-tags-bg-color: #F9FAFB;
|
|
3
|
-
--pisell-tags-font-color: #344054;
|
|
4
|
-
--pisell-tags-border-color: #EAECF0;
|
|
5
|
-
border-radius: 16px;
|
|
6
|
-
border: 1px solid var(--pisell-tags-border-color);
|
|
7
|
-
background: var(--pisell-tags-bg-color);
|
|
8
|
-
display: inline-flex;
|
|
9
|
-
padding: 4px 12px;
|
|
10
|
-
align-items: center;
|
|
11
|
-
gap: 6px;
|
|
12
|
-
|
|
13
|
-
color: var(--pisell-tags-font-color);
|
|
14
|
-
font-size: 14px;
|
|
15
|
-
font-style: normal;
|
|
16
|
-
font-weight: 500;
|
|
17
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const generateColorShades: (color: string) => Record<string, string>;
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
|
|
19
|
-
// src/components/pisellTags/utils.ts
|
|
20
|
-
var utils_exports = {};
|
|
21
|
-
__export(utils_exports, {
|
|
22
|
-
generateColorShades: () => generateColorShades
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(utils_exports);
|
|
25
|
-
var hexToRgb = (hex) => {
|
|
26
|
-
hex = hex.replace(/^#/, "");
|
|
27
|
-
if (hex.length === 3) {
|
|
28
|
-
hex = hex.split("").map((h) => h + h).join("");
|
|
29
|
-
}
|
|
30
|
-
const intVal = parseInt(hex, 16);
|
|
31
|
-
return {
|
|
32
|
-
r: intVal >> 16 & 255,
|
|
33
|
-
// 提取红色分量
|
|
34
|
-
g: intVal >> 8 & 255,
|
|
35
|
-
// 提取绿色分量
|
|
36
|
-
b: intVal & 255
|
|
37
|
-
// 提取蓝色分量
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
var rgbToHex = (r, g, b) => {
|
|
41
|
-
return "#" + [r, g, b].map((x) => {
|
|
42
|
-
const hex = x.toString(16);
|
|
43
|
-
return hex.length === 1 ? "0" + hex : hex;
|
|
44
|
-
}).join("");
|
|
45
|
-
};
|
|
46
|
-
var parseColor = (color) => {
|
|
47
|
-
if (color.startsWith("#")) {
|
|
48
|
-
return hexToRgb(color);
|
|
49
|
-
} else if (color.startsWith("rgb")) {
|
|
50
|
-
const rgba = color.replace(/rgba?\(|\s+|\)/g, "").split(",").map(Number);
|
|
51
|
-
return { r: rgba[0], g: rgba[1], b: rgba[2], a: rgba[3] !== void 0 ? rgba[3] : 1 };
|
|
52
|
-
} else {
|
|
53
|
-
throw new Error("无效的颜色格式");
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
var generateColorShades = (color) => {
|
|
57
|
-
const { r, g, b, a } = parseColor(color);
|
|
58
|
-
const max = 700;
|
|
59
|
-
const gap = 1 / max;
|
|
60
|
-
const ratios = {
|
|
61
|
-
50: gap * 50,
|
|
62
|
-
200: gap * 200,
|
|
63
|
-
500: gap * 500,
|
|
64
|
-
600: gap * 600,
|
|
65
|
-
700: gap * 700
|
|
66
|
-
};
|
|
67
|
-
const adjustColorComponent = (component, ratio) => Math.round(component * ratio + 255 * (1 - ratio));
|
|
68
|
-
const shades = {
|
|
69
|
-
"color_50": rgbToHex(adjustColorComponent(r, ratios[50]), adjustColorComponent(g, ratios[50]), adjustColorComponent(b, ratios[50])),
|
|
70
|
-
"color_200": rgbToHex(adjustColorComponent(r, ratios[200]), adjustColorComponent(g, ratios[200]), adjustColorComponent(b, ratios[200])),
|
|
71
|
-
"color_500": rgbToHex(adjustColorComponent(r, ratios[500]), adjustColorComponent(g, ratios[500]), adjustColorComponent(b, ratios[500])),
|
|
72
|
-
"color_600": rgbToHex(adjustColorComponent(r, ratios[600]), adjustColorComponent(g, ratios[600]), adjustColorComponent(b, ratios[600])),
|
|
73
|
-
"color_700": color
|
|
74
|
-
};
|
|
75
|
-
if (a !== void 0) {
|
|
76
|
-
shades["color_50"] = `rgba(${adjustColorComponent(r, ratios[50])}, ${adjustColorComponent(g, ratios[50])}, ${adjustColorComponent(b, ratios[50])}, ${a})`;
|
|
77
|
-
shades["color_200"] = `rgba(${adjustColorComponent(r, ratios[200])}, ${adjustColorComponent(g, ratios[200])}, ${adjustColorComponent(b, ratios[200])}, ${a})`;
|
|
78
|
-
shades["color_500"] = `rgba(${adjustColorComponent(r, ratios[500])}, ${adjustColorComponent(g, ratios[500])}, ${adjustColorComponent(b, ratios[500])}, ${a})`;
|
|
79
|
-
shades["color_600"] = `rgba(${adjustColorComponent(r, ratios[600])}, ${adjustColorComponent(g, ratios[600])}, ${adjustColorComponent(b, ratios[600])}, ${a})`;
|
|
80
|
-
}
|
|
81
|
-
return shades;
|
|
82
|
-
};
|
|
83
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
84
|
-
0 && (module.exports = {
|
|
85
|
-
generateColorShades
|
|
86
|
-
});
|