rappel-ui 1.0.0 → 1.0.1

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.
Files changed (163) hide show
  1. package/package.json +5 -2
  2. package/cjs/_virtual/_plugin-vue_export-helper.js +0 -1
  3. package/cjs/components/button/index.d.ts +0 -33
  4. package/cjs/components/button/index.js +0 -1
  5. package/cjs/components/button/src/button.d.ts +0 -3
  6. package/cjs/components/button/src/button.vue.js +0 -1
  7. package/cjs/components/button/src/button.vue2.js +0 -1
  8. package/cjs/components/button/src/constants.d.ts +0 -4
  9. package/cjs/components/button/src/constants.js +0 -1
  10. package/cjs/components/button/src/types.d.ts +0 -16
  11. package/cjs/components/button/style/css.d.ts +0 -0
  12. package/cjs/components/button/style/index.d.ts +0 -0
  13. package/cjs/components/colors/index.d.ts +0 -7
  14. package/cjs/components/colors/index.js +0 -1
  15. package/cjs/components/colors/src/colors.vue.js +0 -1
  16. package/cjs/components/colors/src/colors.vue2.js +0 -1
  17. package/cjs/components/colors/src/neutral-color.css +0 -1
  18. package/cjs/components/colors/src/neutral-color.vue.js +0 -1
  19. package/cjs/components/colors/src/neutral-color.vue2.js +0 -1
  20. package/cjs/components/colors/src/primary-color.css +0 -1
  21. package/cjs/components/colors/src/primary-color.vue.js +0 -1
  22. package/cjs/components/colors/src/primary-color.vue2.js +0 -1
  23. package/cjs/components/colors/src/secondary-color.css +0 -1
  24. package/cjs/components/colors/src/secondary-color.vue.js +0 -1
  25. package/cjs/components/colors/src/secondary-color.vue2.js +0 -1
  26. package/cjs/components/index.d.ts +0 -4
  27. package/cjs/components/index.js +0 -1
  28. package/cjs/components/input/index.d.ts +0 -25
  29. package/cjs/components/input/index.js +0 -1
  30. package/cjs/components/input/src/input.vue.js +0 -1
  31. package/cjs/components/input/src/input.vue2.js +0 -1
  32. package/cjs/components/tabs/index.d.ts +0 -20
  33. package/cjs/components/tabs/index.js +0 -1
  34. package/cjs/components/tabs/src/tabs.vue.js +0 -1
  35. package/cjs/composables/index.d.ts +0 -6
  36. package/cjs/composables/use-namespace/index.d.ts +0 -12
  37. package/cjs/composables/use-namespace/index.js +0 -1
  38. package/cjs/composables/useDateFormat.d.ts +0 -7
  39. package/cjs/composables/useDateFormat.js +0 -1
  40. package/cjs/composables/useDraggable.d.ts +0 -10
  41. package/cjs/composables/useDraggable.js +0 -1
  42. package/cjs/composables/useOnceFn.d.ts +0 -24
  43. package/cjs/composables/useOnceFn.js +0 -1
  44. package/cjs/composables/useTimeNodes.d.ts +0 -3
  45. package/cjs/composables/useTimeNodes.js +0 -1
  46. package/cjs/composables/useWaterFallLayout.d.ts +0 -10
  47. package/cjs/composables/useWaterFallLayout.js +0 -1
  48. package/cjs/constants/index.d.ts +0 -1
  49. package/cjs/constants/svgLoading.d.ts +0 -2
  50. package/cjs/constants/svgLoading.js +0 -36
  51. package/cjs/directives/index.d.ts +0 -3
  52. package/cjs/directives/vDraggable.d.ts +0 -2
  53. package/cjs/directives/vDraggable.js +0 -1
  54. package/cjs/directives/vResizable.d.ts +0 -14
  55. package/cjs/directives/vResizable.js +0 -21
  56. package/cjs/directives/vSvgLoading.d.ts +0 -4
  57. package/cjs/directives/vSvgLoading.js +0 -1
  58. package/cjs/index.d.ts +0 -86
  59. package/cjs/index.js +0 -1
  60. package/cjs/package.json.js +0 -1
  61. package/cjs/purple-ui/index.d.ts +0 -1
  62. package/cjs/purple-ui/resolver.d.ts +0 -2
  63. package/cjs/purple-ui/resolver.js +0 -1
  64. package/cjs/theme-chalk/src/base.css +0 -1
  65. package/cjs/theme-chalk/src/button.css +0 -1
  66. package/cjs/utils/index.d.ts +0 -2
  67. package/cjs/utils/util.d.ts +0 -143
  68. package/cjs/utils/util.js +0 -3
  69. package/cjs/utils/vue/index.d.ts +0 -17
  70. package/cjs/utils/vue/index.js +0 -1
  71. package/es/_virtual/_plugin-vue_export-helper.mjs +0 -9
  72. package/es/components/button/index.d.ts +0 -33
  73. package/es/components/button/index.mjs +0 -6
  74. package/es/components/button/src/button.d.ts +0 -3
  75. package/es/components/button/src/button.vue.mjs +0 -74
  76. package/es/components/button/src/button.vue2.mjs +0 -4
  77. package/es/components/button/src/constants.d.ts +0 -4
  78. package/es/components/button/src/constants.mjs +0 -5
  79. package/es/components/button/src/types.d.ts +0 -16
  80. package/es/components/button/style/css.d.ts +0 -0
  81. package/es/components/button/style/index.d.ts +0 -0
  82. package/es/components/colors/index.d.ts +0 -7
  83. package/es/components/colors/index.mjs +0 -16
  84. package/es/components/colors/src/colors.vue.mjs +0 -21
  85. package/es/components/colors/src/colors.vue2.mjs +0 -4
  86. package/es/components/colors/src/neutral-color.css +0 -1
  87. package/es/components/colors/src/neutral-color.vue.mjs +0 -7
  88. package/es/components/colors/src/neutral-color.vue2.mjs +0 -195
  89. package/es/components/colors/src/primary-color.css +0 -1
  90. package/es/components/colors/src/primary-color.vue.mjs +0 -7
  91. package/es/components/colors/src/primary-color.vue2.mjs +0 -33
  92. package/es/components/colors/src/secondary-color.css +0 -1
  93. package/es/components/colors/src/secondary-color.vue.mjs +0 -7
  94. package/es/components/colors/src/secondary-color.vue2.mjs +0 -54
  95. package/es/components/index.d.ts +0 -4
  96. package/es/components/index.mjs +0 -20
  97. package/es/components/input/index.d.ts +0 -25
  98. package/es/components/input/index.mjs +0 -6
  99. package/es/components/input/src/input.vue.mjs +0 -15
  100. package/es/components/input/src/input.vue2.mjs +0 -4
  101. package/es/components/tabs/index.d.ts +0 -20
  102. package/es/components/tabs/index.mjs +0 -6
  103. package/es/components/tabs/src/tabs.vue.mjs +0 -17
  104. package/es/composables/index.d.ts +0 -6
  105. package/es/composables/use-namespace/index.d.ts +0 -12
  106. package/es/composables/use-namespace/index.mjs +0 -21
  107. package/es/composables/useDateFormat.d.ts +0 -7
  108. package/es/composables/useDateFormat.mjs +0 -20
  109. package/es/composables/useDraggable.d.ts +0 -10
  110. package/es/composables/useDraggable.mjs +0 -55
  111. package/es/composables/useOnceFn.d.ts +0 -24
  112. package/es/composables/useOnceFn.mjs +0 -32
  113. package/es/composables/useTimeNodes.d.ts +0 -3
  114. package/es/composables/useTimeNodes.mjs +0 -24
  115. package/es/composables/useWaterFallLayout.d.ts +0 -10
  116. package/es/composables/useWaterFallLayout.mjs +0 -51
  117. package/es/constants/index.d.ts +0 -1
  118. package/es/constants/svgLoading.d.ts +0 -2
  119. package/es/constants/svgLoading.mjs +0 -39
  120. package/es/directives/index.d.ts +0 -3
  121. package/es/directives/vDraggable.d.ts +0 -2
  122. package/es/directives/vDraggable.mjs +0 -13
  123. package/es/directives/vResizable.d.ts +0 -14
  124. package/es/directives/vResizable.mjs +0 -136
  125. package/es/directives/vSvgLoading.d.ts +0 -4
  126. package/es/directives/vSvgLoading.mjs +0 -48
  127. package/es/index.d.ts +0 -86
  128. package/es/index.mjs +0 -76
  129. package/es/package.json.mjs +0 -4
  130. package/es/purple-ui/index.d.ts +0 -1
  131. package/es/purple-ui/resolver.d.ts +0 -2
  132. package/es/purple-ui/resolver.mjs +0 -18
  133. package/es/theme-chalk/src/base.css +0 -1
  134. package/es/theme-chalk/src/button.css +0 -1
  135. package/es/utils/index.d.ts +0 -2
  136. package/es/utils/util.d.ts +0 -143
  137. package/es/utils/util.mjs +0 -151
  138. package/es/utils/vue/index.d.ts +0 -17
  139. package/es/utils/vue/index.mjs +0 -36
  140. package/global.d.ts +0 -7
  141. package/theme-chalk/base.css +0 -148
  142. package/theme-chalk/css-vars/_button.css +0 -35
  143. package/theme-chalk/css-vars/_colors.css +0 -51
  144. package/theme-chalk/function/_button.css +0 -35
  145. package/theme-chalk/function/index.css +0 -35
  146. package/theme-chalk/index.css +0 -560
  147. package/theme-chalk/mixins/_button.css +0 -35
  148. package/theme-chalk/mixins/index.css +0 -35
  149. package/theme-chalk/pu-button.css +0 -446
  150. package/theme-chalk/root-vars.css +0 -132
  151. package/theme-chalk/src/base.scss +0 -30
  152. package/theme-chalk/src/button.scss +0 -104
  153. package/theme-chalk/src/common/_function.scss +0 -46
  154. package/theme-chalk/src/css-vars/_button.scss +0 -47
  155. package/theme-chalk/src/css-vars/_colors.scss +0 -82
  156. package/theme-chalk/src/css-vars/_namespace.scss +0 -12
  157. package/theme-chalk/src/function/_button.scss +0 -2
  158. package/theme-chalk/src/function/index.scss +0 -155
  159. package/theme-chalk/src/index.scss +0 -2
  160. package/theme-chalk/src/mixins/_button.scss +0 -140
  161. package/theme-chalk/src/mixins/index.scss +0 -25
  162. package/theme-chalk/src/root-vars.scss +0 -13
  163. package/umd/index.js +0 -59
@@ -1,143 +0,0 @@
1
- /**
2
- * 将对象转换为 FormData 对象
3
- * @param { Object } params 要转换的对象
4
- * @returns 转换后的 FormData 对象
5
- */
6
- export declare function paramsToFormData(params: Record<string, any>): FormData;
7
- /**
8
- * 设置URLSearchParams对象并返回新的URL字符串
9
- * @param { string } urlString - URL字符串
10
- * @param { Object } params - 要设置的参数对象
11
- * @returns { string }设置参数后的新的URL字符串
12
- */
13
- export declare function setURLSearchParams(urlString: string, params: Record<string, any>): string;
14
- /**
15
- * 合并URL字符串
16
- * @param { string[] } ...urls 可变参数: URL字符串参数
17
- * @returns { string } 合并后的URL字符串
18
- */
19
- export declare function joinURLs(...urls: string[]): string;
20
- /**
21
- * 深度拷贝
22
- * @param arr
23
- * @returns
24
- */
25
- export declare function deepClone(arr: any[]): any[] | null;
26
- /**
27
- * 自动将文件大小转换成合适的带单位大小
28
- * @param byte {number} - 文件大小(B)
29
- * @returns
30
- */
31
- export declare function autoCalcFileSize(byte: number): string;
32
- /**
33
- * 根据编码读取txt文件
34
- * @param file {File} - 文件对象
35
- * @param encode {string} - 编码格式
36
- * @returns
37
- */
38
- export declare function readTxtFile(file: File, encode: string): Promise<string>;
39
- /**
40
- * 用不同编码读取txt文件
41
- * @param file {File} - 文件对象
42
- * @param encodes {string[]} - 编码格式数组
43
- * @returns
44
- */
45
- export declare function readTxtByEncodes(file: File, encodes?: string[]): Promise<string>;
46
- /**
47
- * 将以逗号或者换行符分隔的字符串转为只用逗号分隔的字符串――去除空格和重复逗号
48
- * @param str {string} - 以逗号或者换行符分隔的字符串
49
- */
50
- export declare function lineBreakToComma(str: string): string;
51
- /**
52
- * 单例模式函数
53
- * @param {Function} fn - 要执行的函数 / class类
54
- */
55
- export declare function singleton(fn: (...args: unknown[]) => unknown): unknown;
56
- /**
57
- * 函数重载
58
- * @example
59
- * const overload = createOverload()
60
- * overload.add('string', (arg: string) => { console.log('string', arg) })
61
- * overload.add('number','string', (arg1: number, arg2: string) => { console.log('number,string', arg1, arg2) })
62
- * @returns {Function} 重载函数
63
- */
64
- export declare function createOverload(): {
65
- (...args: any[]): any;
66
- add(...args: any[]): void;
67
- };
68
- /**
69
- * 平铺数据构建树结构
70
- * @param data {Array} - 数据源
71
- * @param props {Object} - 属性映射
72
- * @returns {Array} - 树结构
73
- */
74
- export declare function buildTree(data: any[], props?: {
75
- label: string;
76
- value: string;
77
- children: string;
78
- parentId: string;
79
- }): any[];
80
- /**
81
- * 计算半透明颜色与白色背景混合后的等效不透明颜色值
82
- * @param hexColor 原始十六进制颜色值 (例如 '#7e69dc')
83
- * @param opacity 透明度值 (0-1之间,默认为0.9)
84
- * @returns 等效的不透明颜色值 (十六进制格式)
85
- */
86
- export declare function getEqualOpacityColor(hexColor: string, opacity?: number): string;
87
- /**
88
- * 将颜色向黑色靠近(变暗)
89
- * @param hexColor 原始十六进制颜色值 (例如 '#7e69dc')
90
- * @param factor 混合因子 (0-1, 0表示完全不改变,1表示完全变为黑色)
91
- * @returns 调整后的颜色值
92
- */
93
- export declare function darkenColor(hexColor: string, factor?: number): string;
94
- /**
95
- * @description 创建层次颜色数组,包含一个变暗的颜色和多个不同透明度的颜色
96
- * @param baseColor - 基础颜色的十六进制字符串 (例如 '#7e69dc')
97
- * @param darkeness - 变暗程度,默认为0.15,取值范围为0-1,0表示不变,1表示完全变为黑色
98
- * @param opacitySteps - 透明度数组,默认为 [0.9, 0.8, 0.7, 0.6, 0.5, 0.4, 0.3, 0.2, 0.1]
99
- * @returns 层次颜色数组
100
- */
101
- export declare function createColors(baseColor: string, darkeness?: number, opacitySteps?: number[]): string[];
102
- /**
103
- * @description 判断对象是否具有指定的键.
104
- *
105
- * @param { Record<string, unknown> } obj - 待判断的对象.
106
- * @param { string } key - 待判断的键.
107
- * @returns { boolean } - 是否具有指定的键
108
- */
109
- export declare function hasOwnProperty(obj: Record<string, unknown>, key: string): boolean;
110
- /**
111
- * @description 判断对象是否为普通对象.
112
- *
113
- * @param { unknown } obj - 待判断的对象.
114
- * @returns { boolean } - 是否为普通对象
115
- */
116
- export declare function isPlainObject(obj: unknown): boolean;
117
- /**
118
- * @description 删除对象中的指定键.
119
- *
120
- * @param { Record<string, unknown> } obj - 目标对象.
121
- * @param { string[] } keys - 要删除的键/键数组.
122
- * @returns { Record<string, unknown> } - 删除键后的新对象
123
- */
124
- export declare function deleteKeys<T extends Record<string, unknown>, K extends keyof T>(obj: T, keys: K[] | K): Omit<T, K>;
125
- /**
126
- * @description 数组深度扁平化,支持数组子元素为基本类型、对象、数组.
127
- *
128
- * @param { Record<string, unknown>[] } arr - 目标数组.
129
- * @param { string } key - 拍平的键.
130
- * @returns { Record<string, unknown>[] } - 拍平后的数组
131
- */
132
- export declare function flatArr<T extends Record<string, unknown>, K extends keyof T>(arr: T[], key?: K): T[];
133
- /**
134
- * @description 删除对象中的空值.
135
- *
136
- * @param { Record<string, unknown> } obj - 目标对象.
137
- * @param { unknown[] } emptyValues - 空值数组 (默认为 ['', undefined, null],支持数组和对象的空值判断['', undefined,
138
- * null, {}, [], false, 0])
139
- * @returns { Partial<T> | T } - 删除空值后的新对象
140
- */
141
- export declare function omitEmptyKeys<T extends Record<string, unknown> & {
142
- length?: never;
143
- }>(obj: T, emptyValues?: unknown[]): Partial<T> | T;
package/es/utils/util.mjs DELETED
@@ -1,151 +0,0 @@
1
- function O(n) {
2
- const e = new FormData();
3
- for (const t in n)
4
- e.append(t, n[t]);
5
- return e;
6
- }
7
- function A(n, e) {
8
- const t = new URL(n), c = new URLSearchParams(t.search);
9
- for (const r in e)
10
- !["", void 0, null].includes(e[r]) && c.set(r, e[r]);
11
- return t.search = c.toString(), t.href;
12
- }
13
- function S(...n) {
14
- let e = n[0];
15
- for (let t = 1; t < n.length; t++)
16
- e[e.length - 1] === "/" && n[t][0] === "/" ? e += n[t].slice(1) : e[e.length - 1] === "/" || n[t][0] === "/" ? e += n[t] : e += "/" + n[t];
17
- return e;
18
- }
19
- function B(n) {
20
- try {
21
- return JSON.parse(JSON.stringify(n));
22
- } catch {
23
- return null;
24
- }
25
- }
26
- function M(n) {
27
- const e = ["B", "KB", "MB", "GB", "TB"];
28
- let t = 0, c = e[0];
29
- for (; n >= 1024 && t < e.length - 1; )
30
- n /= 1024, t++, c = e[t];
31
- const r = n.toString(), o = r.indexOf(".");
32
- return n = o === -1 ? n : parseFloat(r.substring(0, o + 3)), `${n}${c}}`;
33
- }
34
- function p(n, e) {
35
- return new Promise((t, c) => {
36
- const r = new FileReader();
37
- r.onload = (o) => {
38
- t(o.target?.result);
39
- }, r.onerror = (o) => {
40
- c(o);
41
- }, r.readAsText(n, e);
42
- });
43
- }
44
- async function b(n, e = ["UTF-8", "GBK", "GB2312"]) {
45
- for (const t of e) {
46
- const c = await p(n, t);
47
- if (!(c && c.indexOf("�") > -1))
48
- return c;
49
- }
50
- return "";
51
- }
52
- function P(n) {
53
- if (!n) return "";
54
- let e = "";
55
- return n.includes(",") ? e = n.replace(/,/g, ",") : n.includes(`\r
56
- `) ? e = n.replace(/\r\n/g, ",") : n.includes(`
57
- `) ? e = n.replace(/\n/g, ",") : n.includes("\r") ? e = n.replace(/\r/g, ",") : n.includes("↵") && (e = n.replace(/↵/g, ",")), e.replace(/,+/g, ",").replace(/^,|,$/g, "").replace(/\s+/g, "");
58
- }
59
- function E(n) {
60
- let e;
61
- const t = new Proxy(n, {
62
- construct(c, r) {
63
- return e || (e = Reflect.construct(c, r), e);
64
- }
65
- });
66
- return t.prototype.constructor = t, t;
67
- }
68
- function I() {
69
- const n = /* @__PURE__ */ new Map();
70
- function e(...t) {
71
- const c = t.map((o) => typeof o).join(","), r = n.get(c);
72
- if (!r)
73
- throw new Error("没有找到对应的实现");
74
- return r.apply(this, t);
75
- }
76
- return e.add = function(...t) {
77
- const c = t.pop();
78
- if (typeof c != "function")
79
- throw new Error("最后一个参数必须是函数");
80
- const r = t.join(",");
81
- n.set(r, c);
82
- }, e;
83
- }
84
- function R(n, e = { label: "label", value: "value", children: "children", parentId: "parentId" }) {
85
- const t = [], c = /* @__PURE__ */ new WeakMap();
86
- return n.forEach((r) => {
87
- r.label = r[e.label], r.value = r[e.value], r.children = [], c.set(r[e.value], r);
88
- }), n.forEach((r) => {
89
- const o = c.get(r[e.parentId]);
90
- o ? o.children.push(r) : t.push(r);
91
- }), t;
92
- }
93
- function g(n, e = 1) {
94
- n = n.replace("#", "");
95
- const t = parseInt(n.substring(0, 2), 16), c = parseInt(n.substring(2, 4), 16), r = parseInt(n.substring(4, 6), 16), o = { r: 255, g: 255, b: 255 }, s = Math.round(t * e + o.r * (1 - e)), l = Math.round(c * e + o.g * (1 - e)), u = Math.round(r * e + o.b * (1 - e)), i = (d) => d.toString(16).padStart(2, "0");
96
- return `#${i(s)}${i(l)}${i(u)}`;
97
- }
98
- function h(n, e = 0.15) {
99
- n = n.replace("#", ""), n.length === 3 && (n = n.split("").map((i) => i + i).join(""));
100
- const t = parseInt(n.substring(0, 2), 16), c = parseInt(n.substring(2, 4), 16), r = parseInt(n.substring(4, 6), 16), o = Math.round(t * (1 - e)), s = Math.round(c * (1 - e)), l = Math.round(r * (1 - e)), u = (i) => Math.round(i).toString(16).padStart(2, "0");
101
- return `#${u(o)}${u(s)}${u(l)}`;
102
- }
103
- function $(n, e = 0.15, t = [0.9, 0.8, 0.7, 0.6, 0.5, 0.4, 0.3, 0.2, 0.1]) {
104
- return [h(n, e)].concat(
105
- t.map((c) => g(n, c))
106
- );
107
- }
108
- function w(n, e) {
109
- return Object.prototype.hasOwnProperty.call(n, e);
110
- }
111
- function a(n) {
112
- return n !== null && typeof n == "object" && Object.getPrototypeOf(n) === Object.prototype;
113
- }
114
- function y(n, e) {
115
- if (!n || !e || !a(n)) return n;
116
- const t = { ...n };
117
- return (Array.isArray(e) ? e : [e]).forEach((c) => {
118
- Reflect.deleteProperty(t, c);
119
- }), t;
120
- }
121
- function f(n, e = "children") {
122
- return !n || !Array.isArray(n) ? [] : n.reduce((t, c) => Array.isArray(c) ? t.concat(f(c, e)) : c && a(c) && c[e] ? t.concat(y(c, [e]), f(c[e], e)) : t.concat(c), []);
123
- }
124
- function m(n, e = ["", void 0, null]) {
125
- if (!n || !a(n)) return n;
126
- const t = {}, c = (r) => e.some((o) => Array.isArray(o) && Array.isArray(r) ? o.length === 0 && r.length === 0 : a(o) && a(r) ? Object.keys(o).length === 0 && Object.keys(r).length === 0 : o === r);
127
- for (const r in n)
128
- w(n, r) && (c(n[r]) || (t[r] = n[r]));
129
- return t;
130
- }
131
- export {
132
- M as autoCalcFileSize,
133
- R as buildTree,
134
- $ as createColors,
135
- I as createOverload,
136
- h as darkenColor,
137
- B as deepClone,
138
- y as deleteKeys,
139
- f as flatArr,
140
- g as getEqualOpacityColor,
141
- w as hasOwnProperty,
142
- a as isPlainObject,
143
- S as joinURLs,
144
- P as lineBreakToComma,
145
- m as omitEmptyKeys,
146
- O as paramsToFormData,
147
- b as readTxtByEncodes,
148
- p as readTxtFile,
149
- A as setURLSearchParams,
150
- E as singleton
151
- };
@@ -1,17 +0,0 @@
1
- import { App } from 'vue';
2
- export declare const INSTALLED_KEY: unique symbol;
3
- declare module 'vue' {
4
- interface App {
5
- [INSTALLED_KEY]?: boolean;
6
- }
7
- }
8
- export declare const withInstall: <T extends Record<string, any>, E extends Record<string, any>>(main: T, extra?: E) => T;
9
- export declare function withMultiInstall<T extends Record<string, any>>(compEntries: T): T;
10
- export declare function createGlobalInstaller(comps?: {
11
- install: (app: App) => void;
12
- [key: string]: any;
13
- }[]): {
14
- install: (app: App) => void;
15
- version: string;
16
- };
17
- export declare function toLowerCase(input: string): string;
@@ -1,36 +0,0 @@
1
- import { version as s } from "../../package.json.mjs";
2
- const l = Symbol("INSTALLED_KEY"), a = (t, n) => {
3
- if (t.install = (e) => {
4
- e.component(t.name, t);
5
- }, n)
6
- for (const [e, o] of Object.entries(n))
7
- t[e] = o, o.install = (r) => {
8
- r.component(o.name, o);
9
- };
10
- return t;
11
- };
12
- function u(t) {
13
- return Object.values(t).forEach((n) => {
14
- n.install = (e) => {
15
- e.component(n.name, n);
16
- };
17
- }), t;
18
- }
19
- function i(t = []) {
20
- return {
21
- install: (e) => {
22
- e[l] || (e[l] = !0, t.forEach((o) => e.use(o)));
23
- },
24
- version: s
25
- };
26
- }
27
- function f(t) {
28
- return t.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase().replace(/\s+/g, "-");
29
- }
30
- export {
31
- l as INSTALLED_KEY,
32
- i as createGlobalInstaller,
33
- f as toLowerCase,
34
- a as withInstall,
35
- u as withMultiInstall
36
- };
package/global.d.ts DELETED
@@ -1,7 +0,0 @@
1
- declare module 'vue' {
2
- export interface GlobalComponents {
3
- PuButton: (typeof import('purple-ui'))['PuButton']
4
- }
5
- }
6
-
7
- export {}
@@ -1,148 +0,0 @@
1
- @charset "UTF-8";
2
- /**
3
- * 将十六进制颜色转换为RGB颜色
4
- * @param $hex 十六进制颜色值
5
- * @returns RGB颜色值
6
- * color.channel($color, "red", $space: rgb)
7
- */
8
- /**
9
- * 将RGB颜色转换为十六进制颜色
10
- * @param $value RGB颜色值
11
- * @returns 十六进制颜色值
12
- */
13
- /**
14
- * 将RGB颜色转换为十六进制颜色
15
- * @param $color RGB颜色值
16
- * @returns 十六进制颜色值
17
- */
18
- /**
19
- * 创建一个等效的透明度颜色,并返回一个等效的透明度颜色
20
- * @param $color 颜色
21
- * @param $opacity 透明度,默认值为1
22
- * @returns 一个等效的透明度颜色
23
- */
24
- /**
25
- * 创建一个变暗的颜色,并返回一个变暗的颜色
26
- * @param $color 颜色
27
- * @param $factor 颜色变暗的度量,默认为0.15
28
- * @returns 一个变暗的颜色
29
- */
30
- /**
31
- * 创建层级颜色
32
- * @param $base-color 基础颜色
33
- * @param $darkness 变暗的度量,默认为0.15
34
- * @returns 主题色映射
35
- */
36
- /**
37
- * 生成不同(0.9-0.1)透明度对应的等值颜色:
38
- primary: (
39
- base: #937bff,
40
- hover: #7e69dc,
41
- shade-9: #9e88ff,
42
- shade-8: #a995ff,
43
- shade-7: #b3a3ff,
44
- shade-6: #beb0ff,
45
- shade-5: #c9bdff,
46
- shade-4: #d4caff,
47
- shade-3: #ded7ff,
48
- shade-2: #e9e5ff,
49
- shade-1: #f4f2ff
50
- ),
51
- */
52
- :root {
53
- --pu-color-primary: #937bff;
54
- --pu-color-text-darkest: #000000;
55
- --pu-color-text-base: #303131;
56
- --pu-color-text-secondary: #606062;
57
- --pu-color-text-neutral: #909093;
58
- --pu-color-text-placeholder: #b2b2b6;
59
- --pu-color-text-disabled: #cdcdd1;
60
- --pu-color-text-lightest: #ffffff;
61
- --pu-color-border-darker: #c3c3cb;
62
- --pu-color-border-dark: #d0d0d8;
63
- --pu-color-border-base: #dbdbe0;
64
- --pu-color-border-light: #e4e4e8;
65
- --pu-color-border-lighter: #ededef;
66
- --pu-color-border-extra-light: #efeff3;
67
- --pu-color-border-theme: #d4caff;
68
- --pu-color-fill-darker: #d7d7dc;
69
- --pu-color-fill-dark: #e8e8ec;
70
- --pu-color-fill-base: #ededf0;
71
- --pu-color-fill-light: #f1f1f4;
72
- --pu-color-fill-lighter: #f6f6f7;
73
- --pu-color-fill-extra-light: #f8f8f9;
74
- --pu-color-fill-theme: #f7f7fb;
75
- --pu-color-fill-blank: #ffffff;
76
- --pu-color-fill-transparent: transparent;
77
- --pu-color-primary-base: #937bff;
78
- --pu-color-primary-hover: #7d69d9;
79
- --pu-color-primary-shade-9: #9e88ff;
80
- --pu-color-primary-shade-8: #a995ff;
81
- --pu-color-primary-shade-7: #b3a3ff;
82
- --pu-color-primary-shade-6: #beb0ff;
83
- --pu-color-primary-shade-5: #c9bdff;
84
- --pu-color-primary-shade-4: #d4caff;
85
- --pu-color-primary-shade-3: #dfd7ff;
86
- --pu-color-primary-shade-2: #e9e5ff;
87
- --pu-color-primary-shade-1: #f4f2ff;
88
- --pu-color-success-base: #06b56d;
89
- --pu-color-success-hover: #059a5d;
90
- --pu-color-success-shade-9: #1fbc7c;
91
- --pu-color-success-shade-8: #38c48a;
92
- --pu-color-success-shade-7: #51cb99;
93
- --pu-color-success-shade-6: #6ad3a7;
94
- --pu-color-success-shade-5: #83dab6;
95
- --pu-color-success-shade-4: #9be1c5;
96
- --pu-color-success-shade-3: #b4e9d3;
97
- --pu-color-success-shade-2: #cdf0e2;
98
- --pu-color-success-shade-1: #e6f8f0;
99
- --pu-color-danger-base: #ee6979;
100
- --pu-color-danger-hover: #ca5967;
101
- --pu-color-danger-shade-9: #f07886;
102
- --pu-color-danger-shade-8: #f18794;
103
- --pu-color-danger-shade-7: #f396a1;
104
- --pu-color-danger-shade-6: #f5a5af;
105
- --pu-color-danger-shade-5: #f7b4bc;
106
- --pu-color-danger-shade-4: #f8c3c9;
107
- --pu-color-danger-shade-3: #fad2d7;
108
- --pu-color-danger-shade-2: #fce1e4;
109
- --pu-color-danger-shade-1: #fdf0f2;
110
- --pu-color-warning-base: #cd9a0a;
111
- --pu-color-warning-hover: #ae8309;
112
- --pu-color-warning-shade-9: #d2a422;
113
- --pu-color-warning-shade-8: #d7ae3b;
114
- --pu-color-warning-shade-7: #dcb853;
115
- --pu-color-warning-shade-6: #e1c26c;
116
- --pu-color-warning-shade-5: #e6cd85;
117
- --pu-color-warning-shade-4: #ebd79d;
118
- --pu-color-warning-shade-3: #f0e1b6;
119
- --pu-color-warning-shade-2: #f5ebce;
120
- --pu-color-warning-shade-1: #faf5e7;
121
- --pu-color-info-base: #8e8e91;
122
- --pu-color-info-hover: #79797b;
123
- --pu-color-info-shade-9: #99999c;
124
- --pu-color-info-shade-8: #a5a5a7;
125
- --pu-color-info-shade-7: #b0b0b2;
126
- --pu-color-info-shade-6: #bbbbbd;
127
- --pu-color-info-shade-5: #c7c7c8;
128
- --pu-color-info-shade-4: #d2d2d3;
129
- --pu-color-info-shade-3: #ddddde;
130
- --pu-color-info-shade-2: #e8e8e9;
131
- --pu-color-info-shade-1: #f4f4f4;
132
- }
133
-
134
- *,
135
- *::before,
136
- *::after {
137
- box-sizing: border-box;
138
- font-weight: normal;
139
- -webkit-tap-highlight-color: transparent;
140
- -webkit-font-smoothing: antialiased;
141
- }
142
-
143
- body {
144
- margin: 0;
145
- padding: 0;
146
- font-size: 14px;
147
- font-family: -apple-system, BlinkMacSystemFont, Microsoft YaHei, 微软雅黑, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
148
- }
@@ -1,35 +0,0 @@
1
- @charset "UTF-8";
2
- /**
3
- * 将十六进制颜色转换为RGB颜色
4
- * @param $hex 十六进制颜色值
5
- * @returns RGB颜色值
6
- * color.channel($color, "red", $space: rgb)
7
- */
8
- /**
9
- * 将RGB颜色转换为十六进制颜色
10
- * @param $value RGB颜色值
11
- * @returns 十六进制颜色值
12
- */
13
- /**
14
- * 将RGB颜色转换为十六进制颜色
15
- * @param $color RGB颜色值
16
- * @returns 十六进制颜色值
17
- */
18
- /**
19
- * 创建一个等效的透明度颜色,并返回一个等效的透明度颜色
20
- * @param $color 颜色
21
- * @param $opacity 透明度,默认值为1
22
- * @returns 一个等效的透明度颜色
23
- */
24
- /**
25
- * 创建一个变暗的颜色,并返回一个变暗的颜色
26
- * @param $color 颜色
27
- * @param $factor 颜色变暗的度量,默认为0.15
28
- * @returns 一个变暗的颜色
29
- */
30
- /**
31
- * 创建层级颜色
32
- * @param $base-color 基础颜色
33
- * @param $darkness 变暗的度量,默认为0.15
34
- * @returns 主题色映射
35
- */
@@ -1,51 +0,0 @@
1
- @charset "UTF-8";
2
- /**
3
- * 将十六进制颜色转换为RGB颜色
4
- * @param $hex 十六进制颜色值
5
- * @returns RGB颜色值
6
- * color.channel($color, "red", $space: rgb)
7
- */
8
- /**
9
- * 将RGB颜色转换为十六进制颜色
10
- * @param $value RGB颜色值
11
- * @returns 十六进制颜色值
12
- */
13
- /**
14
- * 将RGB颜色转换为十六进制颜色
15
- * @param $color RGB颜色值
16
- * @returns 十六进制颜色值
17
- */
18
- /**
19
- * 创建一个等效的透明度颜色,并返回一个等效的透明度颜色
20
- * @param $color 颜色
21
- * @param $opacity 透明度,默认值为1
22
- * @returns 一个等效的透明度颜色
23
- */
24
- /**
25
- * 创建一个变暗的颜色,并返回一个变暗的颜色
26
- * @param $color 颜色
27
- * @param $factor 颜色变暗的度量,默认为0.15
28
- * @returns 一个变暗的颜色
29
- */
30
- /**
31
- * 创建层级颜色
32
- * @param $base-color 基础颜色
33
- * @param $darkness 变暗的度量,默认为0.15
34
- * @returns 主题色映射
35
- */
36
- /**
37
- * 生成不同(0.9-0.1)透明度对应的等值颜色:
38
- primary: (
39
- base: #937bff,
40
- hover: #7e69dc,
41
- shade-9: #9e88ff,
42
- shade-8: #a995ff,
43
- shade-7: #b3a3ff,
44
- shade-6: #beb0ff,
45
- shade-5: #c9bdff,
46
- shade-4: #d4caff,
47
- shade-3: #ded7ff,
48
- shade-2: #e9e5ff,
49
- shade-1: #f4f2ff
50
- ),
51
- */
@@ -1,35 +0,0 @@
1
- @charset "UTF-8";
2
- /**
3
- * 将十六进制颜色转换为RGB颜色
4
- * @param $hex 十六进制颜色值
5
- * @returns RGB颜色值
6
- * color.channel($color, "red", $space: rgb)
7
- */
8
- /**
9
- * 将RGB颜色转换为十六进制颜色
10
- * @param $value RGB颜色值
11
- * @returns 十六进制颜色值
12
- */
13
- /**
14
- * 将RGB颜色转换为十六进制颜色
15
- * @param $color RGB颜色值
16
- * @returns 十六进制颜色值
17
- */
18
- /**
19
- * 创建一个等效的透明度颜色,并返回一个等效的透明度颜色
20
- * @param $color 颜色
21
- * @param $opacity 透明度,默认值为1
22
- * @returns 一个等效的透明度颜色
23
- */
24
- /**
25
- * 创建一个变暗的颜色,并返回一个变暗的颜色
26
- * @param $color 颜色
27
- * @param $factor 颜色变暗的度量,默认为0.15
28
- * @returns 一个变暗的颜色
29
- */
30
- /**
31
- * 创建层级颜色
32
- * @param $base-color 基础颜色
33
- * @param $darkness 变暗的度量,默认为0.15
34
- * @returns 主题色映射
35
- */
@@ -1,35 +0,0 @@
1
- @charset "UTF-8";
2
- /**
3
- * 将十六进制颜色转换为RGB颜色
4
- * @param $hex 十六进制颜色值
5
- * @returns RGB颜色值
6
- * color.channel($color, "red", $space: rgb)
7
- */
8
- /**
9
- * 将RGB颜色转换为十六进制颜色
10
- * @param $value RGB颜色值
11
- * @returns 十六进制颜色值
12
- */
13
- /**
14
- * 将RGB颜色转换为十六进制颜色
15
- * @param $color RGB颜色值
16
- * @returns 十六进制颜色值
17
- */
18
- /**
19
- * 创建一个等效的透明度颜色,并返回一个等效的透明度颜色
20
- * @param $color 颜色
21
- * @param $opacity 透明度,默认值为1
22
- * @returns 一个等效的透明度颜色
23
- */
24
- /**
25
- * 创建一个变暗的颜色,并返回一个变暗的颜色
26
- * @param $color 颜色
27
- * @param $factor 颜色变暗的度量,默认为0.15
28
- * @returns 一个变暗的颜色
29
- */
30
- /**
31
- * 创建层级颜色
32
- * @param $base-color 基础颜色
33
- * @param $darkness 变暗的度量,默认为0.15
34
- * @returns 主题色映射
35
- */