@5even7/dlc-ui 0.2.18 → 0.2.20

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 (87) hide show
  1. package/CHANGELOG.md +158 -144
  2. package/EXTENDING.md +114 -0
  3. package/LICENSE +21 -21
  4. package/README.md +389 -338
  5. package/THIRD_PARTY_NOTICES.md +221 -0
  6. package/dist/avatar-creator/styles/humation.mjs +26 -0
  7. package/dist/avatar-creator/styles.mjs +76 -0
  8. package/dist/avatar-creator.cjs +7831 -0
  9. package/dist/avatar-creator.mjs +74 -0
  10. package/dist/capsule.cjs +185 -66
  11. package/dist/capsule.mjs +364 -1340
  12. package/dist/chunks/avatar-creator-DiAmhpRa.mjs +687 -0
  13. package/dist/chunks/color-DnmNceaf.mjs +350 -0
  14. package/dist/chunks/controls-B5_ctvvA.mjs +160 -0
  15. package/dist/chunks/copy-7J0XIj_0.mjs +13 -0
  16. package/dist/chunks/cosmic-fallback-v8G5_ibh.mjs +408 -0
  17. package/dist/chunks/emitter-CxLYMSbw.mjs +38 -0
  18. package/dist/chunks/emo-Dvahy5Qr.mjs +1140 -0
  19. package/dist/chunks/hash-BiO02UNb.mjs +38 -0
  20. package/dist/chunks/humation-B9OPUGL7.mjs +2987 -0
  21. package/dist/chunks/identicon-BUdMd-yf.mjs +3063 -0
  22. package/dist/chunks/index-BchW1tWE.mjs +478 -0
  23. package/dist/chunks/index-BtH8Lbra.mjs +296 -0
  24. package/dist/chunks/index-C02dvGLD.mjs +263 -0
  25. package/dist/chunks/index-CFybYBA1.mjs +278 -0
  26. package/dist/chunks/index-DgI872-7.mjs +241 -0
  27. package/dist/chunks/index-_sf_14Zu.mjs +455 -0
  28. package/dist/chunks/index-w5Pzdwhv.mjs +305 -0
  29. package/dist/chunks/motion-a8_f8_Ui.mjs +177 -0
  30. package/dist/chunks/number-BqWLX0iQ.mjs +231 -0
  31. package/dist/chunks/progress-KweS4Rx0.mjs +1836 -0
  32. package/dist/chunks/size-Bztk2ryJ.mjs +22 -0
  33. package/dist/chunks/wrapper-DXhy1E7Z.mjs +514 -0
  34. package/dist/color.cjs +186 -67
  35. package/dist/color.mjs +341 -1280
  36. package/dist/emo/miao/angry.mjs +4 -0
  37. package/dist/emo/miao/asleep.mjs +4 -0
  38. package/dist/emo/miao/badminton.mjs +4 -0
  39. package/dist/emo/miao/confident.mjs +4 -0
  40. package/dist/emo/miao/cry.mjs +4 -0
  41. package/dist/emo/miao/investigate.mjs +4 -0
  42. package/dist/emo/miao/laugh.mjs +4 -0
  43. package/dist/emo/miao/leisure.mjs +4 -0
  44. package/dist/emo/miao/mock.mjs +4 -0
  45. package/dist/emo/miao/music.mjs +4 -0
  46. package/dist/emo/miao/mute.mjs +4 -0
  47. package/dist/emo/miao/panic.mjs +4 -0
  48. package/dist/emo/miao/ponder.mjs +4 -0
  49. package/dist/emo/miao/question.mjs +4 -0
  50. package/dist/emo/miao/sad.mjs +4 -0
  51. package/dist/emo/miao/shocked.mjs +4 -0
  52. package/dist/emo/miao/shy.mjs +4 -0
  53. package/dist/emo/miao/sigh.mjs +4 -0
  54. package/dist/emo/miao/smile.mjs +4 -0
  55. package/dist/emo/miao/snigger.mjs +4 -0
  56. package/dist/emo/miao/static.mjs +4 -0
  57. package/dist/emo/miao/yawn.mjs +4 -0
  58. package/dist/emo/miao/yummy.mjs +4 -0
  59. package/dist/emo.cjs +27161 -25964
  60. package/dist/emo.mjs +8 -1421
  61. package/dist/index.cjs +32729 -24466
  62. package/dist/index.mjs +16 -4757
  63. package/dist/index.umd.js +33115 -24852
  64. package/dist/index.umd.min.js +3 -1
  65. package/dist/progress.cjs +195 -76
  66. package/dist/progress.mjs +7 -2448
  67. package/dist/vue2.cjs +33282 -25002
  68. package/dist/vue2.mjs +63 -5131
  69. package/dist/vue3.cjs +33282 -25002
  70. package/dist/vue3.mjs +53 -5122
  71. package/package.json +161 -136
  72. package/styles/avatar-creator.css +38 -0
  73. package/styles/base.css +32 -32
  74. package/styles/color.css +18 -18
  75. package/styles/emo.css +110 -89
  76. package/styles/progress.css +96 -96
  77. package/styles/theme.css +1 -0
  78. package/types/avatar-creator-styles.d.ts +10 -0
  79. package/types/avatar-creator.d.ts +143 -0
  80. package/types/capsule.d.ts +15 -15
  81. package/types/color.d.ts +15 -15
  82. package/types/emo-miao.d.ts +9 -0
  83. package/types/emo.d.ts +38 -37
  84. package/types/index.d.ts +593 -554
  85. package/types/progress.d.ts +16 -16
  86. package/types/vue2.d.ts +11 -10
  87. package/types/vue3.d.ts +169 -146
@@ -38,3 +38,224 @@ MIT License 全文:
38
38
  - 来源:https://github.com/airbnb/lottie-web
39
39
  - 许可证:MIT License
40
40
  - 用途:DLC-EMO `type="miao"` 的 Lottie 动画播放器。
41
+
42
+ MIT License 全文:
43
+
44
+ > MIT License
45
+ >
46
+ > Copyright (c) 2015 Airbnb
47
+ >
48
+ > Permission is hereby granted, free of charge, to any person obtaining a copy
49
+ > of this software and associated documentation files (the "Software"), to deal
50
+ > in the Software without restriction, including without limitation the rights
51
+ > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
52
+ > copies of the Software, and to permit persons to whom the Software is
53
+ > furnished to do so, subject to the following conditions:
54
+ >
55
+ > The above copyright notice and this permission notice shall be included in all
56
+ > copies or substantial portions of the Software.
57
+ >
58
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
59
+ > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
60
+ > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
61
+ > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
62
+ > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
63
+ > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
64
+ > SOFTWARE.
65
+
66
+ ## esp_emote_gen_player(ESP Emote Pack 表情素材)
67
+
68
+ - 来源:https://github.com/espressif2022/esp_emote_gen_player(Emote Pack.zip:https://dl.espressif.com/AE/Emote%20Pack.zip)
69
+ - 许可证:Apache License 2.0(组件清单 idf_component.yml 声明)
70
+ - 用途:DLC-EMO `type="miao"` 的 23 个 Lottie 动作素材(`src/dlc-emo/assets/miao/`)源自该仓库提供的 Emote Pack Lottie 源文件,名称一一对应;本地文件已做精简/压缩与重导出(如移除导出工具水印图层、合并形状),属于 Apache-2.0 第 4 条下的修改作品(Derivative Works),修改已在本文档声明。
71
+ - 署名与版权声明:ESP Emote Gen Player © Espressif Systems 开源提供。
72
+
73
+ > **⚠️ 授权状态说明(保守声明):** 上游仓库(espressif2022/esp_emote_gen_player 及同账号下的
74
+ > esp_emote_assets / esp_emote_expression 等仓库)**根目录均无 LICENSE 文件**(GitHub 许可证接口返回 404),
75
+ > Apache-2.0 仅在 ESP-IDF 组件清单 `idf_component.yml` 中声明,且素材托管于乐鑫官方 CDN
76
+ > (dl.espressif.com)。该授权凭据较弱,**用于商业用途前建议先通过乐鑫官方渠道书面确认**;
77
+ > 如未能获得确认,请勿在商用产品中分发/使用本组素材。
78
+
79
+ Apache License 2.0 全文:
80
+
81
+ > Apache License
82
+ > Version 2.0, January 2004
83
+ > http://www.apache.org/licenses/
84
+ >
85
+ > TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
86
+ >
87
+ > 1. Definitions.
88
+ >
89
+ > "License" shall mean the terms and conditions for use, reproduction, and
90
+ > distribution as defined by Sections 1 through 9 of this document.
91
+ >
92
+ > "Licensor" shall mean the copyright owner or entity authorized by the
93
+ > copyright owner that is granting the License.
94
+ >
95
+ > "Legal Entity" shall mean the union of the acting entity and all other
96
+ > entities that control, are controlled by, or are under common control with
97
+ > that entity. For the purposes of this definition, "control" means (i) the
98
+ > power, direct or indirect, to cause the direction or management of such
99
+ > entity, whether by contract or otherwise, or (ii) ownership of fifty percent
100
+ > (50%) or more of the outstanding shares, or (iii) beneficial ownership of
101
+ > such entity.
102
+ >
103
+ > "You" (or "Your") shall mean an individual or Legal Entity exercising
104
+ > permissions granted by this License.
105
+ >
106
+ > "Source" form shall mean the preferred form for making modifications,
107
+ > including but not limited to software source code, documentation source, and
108
+ > configuration files.
109
+ >
110
+ > "Object" form shall mean any form resulting from mechanical transformation
111
+ > or translation of a Source form, including but not limited to compiled object
112
+ > code, generated documentation, and conversions to other media types.
113
+ >
114
+ > "Work" shall mean the work of authorship, whether in Source or Object form,
115
+ > made available under the License, as indicated by a copyright notice that is
116
+ > included in or attached to the work (an example is provided in the Appendix
117
+ > below).
118
+ >
119
+ > "Derivative Works" shall mean any work, whether in Source or Object form,
120
+ > that is based on (or derived from) the Work and for which the editorial
121
+ > revisions, annotations, elaborations, or other modifications represent, as a
122
+ > whole, an original work of authorship. For the purposes of this License,
123
+ > Derivative Works shall not include works that remain separable from, or
124
+ > merely link (or bind by name) to the interfaces of, the Work and Derivative
125
+ > Works thereof.
126
+ >
127
+ > "Contribution" shall mean any work of authorship, including the original
128
+ > version of the Work and any modifications or additions to that Work or
129
+ > Derivative Works thereof, that is intentionally submitted to Licensor for
130
+ > inclusion in the Work by the copyright owner or by an individual or Legal
131
+ > Entity authorized to submit on behalf of the copyright owner. For the
132
+ > purposes of this definition, "submitted" means any form of electronic,
133
+ > verbal, or written communication sent to the Licensor or its
134
+ > representatives, including but not limited to communication on electronic
135
+ > mailing lists, source code control systems, and issue tracking systems that
136
+ > are managed by, or on behalf of, the Licensor for the purpose of discussing
137
+ > and improving the Work, but excluding communication that is conspicuously
138
+ > marked or otherwise designated in writing by the copyright owner as "Not a
139
+ > Contribution."
140
+ >
141
+ > "Contributor" shall mean Licensor and any individual or Legal Entity on
142
+ > behalf of whom a Contribution has been received by Licensor and subsequently
143
+ > incorporated within the Work.
144
+ >
145
+ > 2. Grant of Copyright License. Subject to the terms and conditions of this
146
+ > License, each Contributor hereby grants to You a perpetual, worldwide,
147
+ > non-exclusive, no-charge, royalty-free, irrevocable copyright license to
148
+ > reproduce, prepare Derivative Works of, publicly display, publicly perform,
149
+ > sublicense, and distribute the Work and such Derivative Works in Source or
150
+ > Object form.
151
+ >
152
+ > 3. Grant of Patent License. Subject to the terms and conditions of this
153
+ > License, each Contributor hereby grants to You a perpetual, worldwide,
154
+ > non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this
155
+ > section) patent license to make, have made, use, offer to sell, sell, import,
156
+ > and otherwise transfer the Work, where such license applies only to those
157
+ > patent claims licensable by such Contributor that are necessarily infringed
158
+ > by their Contribution(s) alone or by combination of their Contribution(s)
159
+ > with the Work to which such Contribution(s) was submitted. If You institute
160
+ > patent litigation against any entity (including a cross-claim or counterclaim
161
+ > in a lawsuit) alleging that the Work or a Contribution incorporated within
162
+ > the Work constitutes direct or contributory patent infringement, then any
163
+ > patent licenses granted to You under this License for that Work shall
164
+ > terminate as of the date such litigation is filed.
165
+ >
166
+ > 4. Redistribution. You may reproduce and distribute copies of the Work or
167
+ > Derivative Works thereof in any medium, with or without modifications, and
168
+ > in Source or Object form, provided that You meet the following conditions:
169
+ >
170
+ > (a) You must give any other recipients of the Work or Derivative Works a
171
+ > copy of this License; and
172
+ >
173
+ > (b) You must cause any modified files to carry prominent notices stating
174
+ > that You changed the files; and
175
+ >
176
+ > (c) You must retain, in the Source form of any Derivative Works that You
177
+ > distribute, all copyright, patent, trademark, and attribution notices from
178
+ > the Source form of the Work, excluding those notices that do not pertain to
179
+ > any part of the Derivative Works; and
180
+ >
181
+ > (d) If the Work includes a "NOTICE" text file as part of its distribution,
182
+ > then any Derivative Works that You distribute must include a readable copy
183
+ > of the attribution notices contained within such NOTICE file, excluding
184
+ > those notices that do not pertain to any part of the Derivative Works, in
185
+ > at least one of the following places: within a NOTICE text file distributed
186
+ > as part of the Derivative Works; within the Source form or documentation, if
187
+ > provided along with the Derivative Works; or, within a display generated by
188
+ > the Derivative Works, if and wherever such third-party notices normally
189
+ > appear. The contents of the NOTICE file are for informational purposes only
190
+ > and do not modify the License. You may add Your own attribution notices
191
+ > within Derivative Works that You distribute, alongside or as an addendum to
192
+ > the NOTICE text from the Work, provided that such additional attribution
193
+ > notices cannot be construed as modifying the License.
194
+ >
195
+ > You may add Your own copyright statement to Your modifications and may
196
+ > provide additional or different license terms and conditions for use,
197
+ > reproduction, or distribution of Your modifications, or for any such
198
+ > Derivative Works as a whole, provided Your use, reproduction, and
199
+ > distribution of the Work otherwise complies with the conditions stated in
200
+ > this License.
201
+ >
202
+ > 5. Submission of Contributions. Unless You explicitly state otherwise, any
203
+ > Contribution intentionally submitted for inclusion in the Work by You to the
204
+ > Licensor shall be under the terms and conditions of this License, without
205
+ > any additional terms or conditions. Notwithstanding the above, nothing
206
+ > herein shall supersede or modify the terms of any separate license agreement
207
+ > you may have executed with Licensor regarding such Contributions.
208
+ >
209
+ > 6. Trademarks. This License does not grant permission to use the trade
210
+ > names, trademarks, service marks, or product names of the Licensor, except
211
+ > as required for reasonable and customary use in describing the origin of the
212
+ > Work and reproducing the content of the NOTICE file.
213
+ >
214
+ > 7. Disclaimer of Warranty. Unless required by applicable law or agreed to
215
+ > in writing, Licensor provides the Work (and each Contributor provides its
216
+ > Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
217
+ > KIND, either express or implied, including, without limitation, any
218
+ > warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or
219
+ > FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining
220
+ > the appropriateness of using or redistributing the Work and assume any risks
221
+ > associated with Your exercise of permissions under this License.
222
+ >
223
+ > 8. Limitation of Liability. In no event and under no legal theory, whether
224
+ > in tort (including negligence), contract, or otherwise, unless required by
225
+ > applicable law (such as deliberate and grossly negligent acts) or agreed to
226
+ > in writing, shall any Contributor be liable to You for damages, including
227
+ > any direct, indirect, special, incidental, or consequential damages of any
228
+ > character arising as a result of this License or out of the use or inability
229
+ > to use the Work (including but not limited to damages for loss of goodwill,
230
+ > work stoppage, computer failure or malfunction, or any and all other
231
+ > commercial damages or losses), even if such Contributor has been advised of
232
+ > the possibility of such damages.
233
+ >
234
+ > 9. Accepting Warranty or Additional Liability. While redistributing the Work
235
+ > or Derivative Works thereof, You may choose to offer, and charge a fee for,
236
+ > acceptance of support, warranty, indemnity, or other liability obligations
237
+ > and/or rights consistent with this License. However, in accepting such
238
+ > obligations, You may act only on Your own behalf and on Your sole
239
+ > responsibility, not on behalf of any other Contributor, and only if You
240
+ > agree to indemnify, defend, and hold each Contributor harmless for any
241
+ > liability incurred by, or claims asserted against, such Contributor by
242
+ > reason of your accepting any such warranty or additional liability.
243
+ >
244
+ > END OF TERMS AND CONDITIONS
245
+
246
+ ## DiceBear(@dicebear/core 9.4.2 与 8 个样式)
247
+
248
+ - 来源:https://www.dicebear.com / https://github.com/dicebear/dicebear
249
+ - 许可证:代码 MIT License;8 个样式的设计素材 CC0 1.0(Public Domain)
250
+ - 用途:DLC-Avatar-Creator 的 dicebear 供应商实现(vendored 到
251
+ `src/dlc-avatar-creator/vendors/dicebear`),含 identicon / lorelei /
252
+ lorelei-neutral / notionists / notionists-neutral / open-peeps / rings / shapes。
253
+ - 各样式随附的 LICENSE 文件与设计者署名保留在 vendored 目录内:
254
+ identicon、lorelei(Lisa Wischofsky)、notionists(Zoish)、open-peeps(Pablo Stanley)等。
255
+
256
+ ## Humation(@humation/core 1.0.1 + @humation/assets-humation-1)
257
+
258
+ - 来源:https://github.com/humation-labs/humation(原 endo-yusuke/humation)
259
+ - 许可证:MIT License(https://github.com/humation-labs/humation/blob/main/LICENSE)
260
+ - 用途:DLC-Avatar-Creator 的 humation 供应商实现(vendored 到
261
+ `src/dlc-avatar-creator/vendors/humation`,含 manifest 与嵌入式 SVG 素材)。
@@ -0,0 +1,26 @@
1
+ import humationProvider from '../../chunks/humation-B9OPUGL7.mjs';
2
+ import '../../chunks/controls-B5_ctvvA.mjs';
3
+ import '../../chunks/color-DnmNceaf.mjs';
4
+ import '../../chunks/hash-BiO02UNb.mjs';
5
+
6
+ /**
7
+ * humation 单独入口(约 700 KB):只有显式 import 它才会被打进包。
8
+ */
9
+
10
+ const definition = humationProvider.styles[0];
11
+
12
+ const humation = {
13
+ ...definition,
14
+ render({ seed, size, background, options = {}, strict = false }) {
15
+ return humationProvider.render({
16
+ style: definition.id,
17
+ seed,
18
+ size,
19
+ background,
20
+ options,
21
+ strict
22
+ });
23
+ }
24
+ };
25
+
26
+ export { humation };
@@ -0,0 +1,76 @@
1
+ import { h as defineDicebearStyle, f as schema, e as schema$1, d as schema$2, c as schema$3, b as schema$4, a as schema$5, s as schema$6 } from '../chunks/identicon-BUdMd-yf.mjs';
2
+ export { i as identicon } from '../chunks/identicon-BUdMd-yf.mjs';
3
+ import { m as module$1, a as meta } from '../chunks/index-_sf_14Zu.mjs';
4
+ import { m as module$2, a as meta$1 } from '../chunks/index-BtH8Lbra.mjs';
5
+ import { m as module$3, a as meta$2 } from '../chunks/index-BchW1tWE.mjs';
6
+ import { m as module$4, a as meta$3 } from '../chunks/index-C02dvGLD.mjs';
7
+ import { m as module$5, a as meta$4 } from '../chunks/index-w5Pzdwhv.mjs';
8
+ import { m as module$6, a as meta$5 } from '../chunks/index-CFybYBA1.mjs';
9
+ import { m as module$7, a as meta$6 } from '../chunks/index-DgI872-7.mjs';
10
+ import '../chunks/color-DnmNceaf.mjs';
11
+ import '../chunks/controls-B5_ctvvA.mjs';
12
+
13
+ const lorelei = /*#__PURE__*/ defineDicebearStyle({
14
+ id: 'lorelei',
15
+ module: module$1,
16
+ schema,
17
+ meta: meta,
18
+ label: '洛蕾莱(Lorelei)',
19
+ title: 'Lorelei'
20
+ });
21
+
22
+ const loreleiNeutral = /*#__PURE__*/ defineDicebearStyle({
23
+ id: 'lorelei-neutral',
24
+ module: module$2,
25
+ schema: schema$1,
26
+ meta: meta$1,
27
+ label: '洛蕾莱 · 中性(Lorelei Neutral)',
28
+ title: 'Lorelei Neutral'
29
+ });
30
+
31
+ const notionists = /*#__PURE__*/ defineDicebearStyle({
32
+ id: 'notionists',
33
+ module: module$3,
34
+ schema: schema$2,
35
+ meta: meta$2,
36
+ label: '概念派(Notionists)',
37
+ title: 'Notionists'
38
+ });
39
+
40
+ const notionistsNeutral = /*#__PURE__*/ defineDicebearStyle({
41
+ id: 'notionists-neutral',
42
+ module: module$4,
43
+ schema: schema$3,
44
+ meta: meta$3,
45
+ label: '概念派 · 中性(Notionists Neutral)',
46
+ title: 'Notionists Neutral'
47
+ });
48
+
49
+ const openPeeps = /*#__PURE__*/ defineDicebearStyle({
50
+ id: 'open-peeps',
51
+ module: module$5,
52
+ schema: schema$4,
53
+ meta: meta$4,
54
+ label: '开放小人(Open Peeps)',
55
+ title: 'Open Peeps'
56
+ });
57
+
58
+ const rings = /*#__PURE__*/ defineDicebearStyle({
59
+ id: 'rings',
60
+ module: module$6,
61
+ schema: schema$5,
62
+ meta: meta$5,
63
+ label: '同心圆环(Rings)',
64
+ title: 'Rings'
65
+ });
66
+
67
+ const shapes = /*#__PURE__*/ defineDicebearStyle({
68
+ id: 'shapes',
69
+ module: module$7,
70
+ schema: schema$6,
71
+ meta: meta$6,
72
+ label: '几何形状(Shapes)',
73
+ title: 'Shapes'
74
+ });
75
+
76
+ export { lorelei, loreleiNeutral, notionists, notionistsNeutral, openPeeps, rings, shapes };