node-karin 1.3.6-pr.260.3bcd7a3 → 1.3.6-pr.260.3f01902

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/dist/index.d.ts CHANGED
@@ -185,7 +185,7 @@ type AdapterStandard = 'onebot11' | 'onebot12' | 'oicq' | 'icqq' | 'other';
185
185
  * - `conwechat`: https://justundertaker.github.io/ComWeChatBotClient/
186
186
  * - `lagrange`: https://lagrangedev.github.io/Lagrange.Doc/Lagrange.OneBot/
187
187
  */
188
- type AdapterProtocol = 'qqbot' | 'icqq' | 'gocq-http' | 'napcat' | 'oicq' | 'llonebot' | 'conwechat' | 'lagrange' | 'console';
188
+ type AdapterProtocol = 'qqbot' | 'icqq' | 'gocq-http' | 'napcat' | 'oicq' | 'llonebot' | 'conwechat' | 'lagrange' | 'console' | 'other';
189
189
  /**
190
190
  * 适配器通信方式
191
191
  * - `http`: HTTP 通信
@@ -6362,8 +6362,12 @@ interface PkgData {
6362
6362
  main?: string;
6363
6363
  /** 插件app列表 */
6364
6364
  apps?: string | string[];
6365
+ /** web配置文件 */
6366
+ web?: string;
6365
6367
  /** ts插件app列表 ts专属 仅在ts开发模式下生效 */
6366
6368
  ['ts-apps']?: string | string[];
6369
+ /** ts-web */
6370
+ ['ts-web']?: string;
6367
6371
  /** 静态资源目录 */
6368
6372
  static?: string | string[];
6369
6373
  /** 基本文件夹结构 */
@@ -10455,6 +10459,8 @@ type Children = InputProps | SwitchProps | DividerProps | CheckboxProps | Checkb
10455
10459
  * 手风琴(折叠面板) 类型
10456
10460
  */
10457
10461
  interface Accordion extends ComponentProps {
10462
+ /** 标签 */
10463
+ label?: string;
10458
10464
  /** 子组件 */
10459
10465
  children?: AccordionItemProps[];
10460
10466
  /** 标题 */
@@ -10561,6 +10567,7 @@ declare const accordion: {
10561
10567
  create: (key: string, options?: Omit<AccordionProps, "key" | "componentType">) => {
10562
10568
  componentType: string;
10563
10569
  title?: string;
10570
+ label?: string;
10564
10571
  description?: string;
10565
10572
  children?: AccordionItemProps[];
10566
10573
  variant?: "light" | "shadow" | "bordered" | "splitted";
@@ -10588,6 +10595,7 @@ declare const accordion: {
10588
10595
  default: (key: string) => {
10589
10596
  componentType: string;
10590
10597
  title?: string;
10598
+ label?: string;
10591
10599
  description?: string;
10592
10600
  children?: AccordionItemProps[];
10593
10601
  variant?: "light" | "shadow" | "bordered" | "splitted";
@@ -10644,6 +10652,7 @@ declare const accordionPro: {
10644
10652
  componentType: string;
10645
10653
  data?: Record<string, any>[] | undefined;
10646
10654
  title?: string;
10655
+ label?: string;
10647
10656
  description?: string;
10648
10657
  children?: Omit<AccordionItemProps, "componentType"> | undefined;
10649
10658
  variant?: "light" | "shadow" | "bordered" | "splitted";
@@ -11815,6 +11824,7 @@ declare const components: {
11815
11824
  create: (key: string, options?: Omit<AccordionProps, "key" | "componentType">) => {
11816
11825
  componentType: string;
11817
11826
  title?: string;
11827
+ label?: string;
11818
11828
  description?: string;
11819
11829
  children?: AccordionItemProps[];
11820
11830
  variant?: "light" | "shadow" | "bordered" | "splitted";
@@ -11838,6 +11848,7 @@ declare const components: {
11838
11848
  default: (key: string) => {
11839
11849
  componentType: string;
11840
11850
  title?: string;
11851
+ label?: string;
11841
11852
  description?: string;
11842
11853
  children?: AccordionItemProps[];
11843
11854
  variant?: "light" | "shadow" | "bordered" | "splitted";
@@ -11881,6 +11892,7 @@ declare const components: {
11881
11892
  componentType: string;
11882
11893
  data?: Record<string, any>[] | undefined;
11883
11894
  title?: string;
11895
+ label?: string;
11884
11896
  description?: string;
11885
11897
  children?: Omit<AccordionItemProps, "componentType"> | undefined;
11886
11898
  variant?: "light" | "shadow" | "bordered" | "splitted";
@@ -11937,6 +11949,331 @@ declare const components: {
11937
11949
  key: string;
11938
11950
  };
11939
11951
  };
11952
+ /** 单选框 */
11953
+ radio: {
11954
+ create: (key: string, options: Omit<Radio, "key" | "componentType" | "className">) => {
11955
+ componentType: string;
11956
+ size?: "sm" | "md" | "lg";
11957
+ value?: string | undefined;
11958
+ color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger";
11959
+ label?: string;
11960
+ description?: string;
11961
+ isDisabled?: boolean;
11962
+ disableAnimation?: boolean;
11963
+ className?: string;
11964
+ isRequired?: boolean;
11965
+ isReadOnly?: boolean;
11966
+ isInvalid?: boolean;
11967
+ key: string;
11968
+ };
11969
+ group: (key: string, options: Omit<RadioGroupProps, "key" | "componentType">) => {
11970
+ componentType: string;
11971
+ size?: "sm" | "md" | "lg";
11972
+ name?: string;
11973
+ value?: string;
11974
+ radio?: Radio[] | undefined;
11975
+ color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger";
11976
+ label?: string;
11977
+ description?: string;
11978
+ errorMessage?: string;
11979
+ isDisabled?: boolean;
11980
+ disableAnimation?: boolean;
11981
+ className?: string;
11982
+ defaultValue?: string;
11983
+ isRequired?: boolean;
11984
+ isReadOnly?: boolean;
11985
+ isInvalid?: boolean;
11986
+ orientation?: "horizontal" | "vertical";
11987
+ key: string;
11988
+ };
11989
+ defaultGroup: (key: string, config?: Partial<Omit<RadioGroupProps, "key" | "componentType">>) => {
11990
+ componentType: string;
11991
+ size?: "sm" | "md" | "lg";
11992
+ name?: string;
11993
+ value?: string;
11994
+ radio?: Radio[] | undefined;
11995
+ color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger";
11996
+ label?: string;
11997
+ description?: string;
11998
+ errorMessage?: string;
11999
+ isDisabled?: boolean;
12000
+ disableAnimation?: boolean;
12001
+ className?: string;
12002
+ defaultValue?: string;
12003
+ isRequired?: boolean;
12004
+ isReadOnly?: boolean;
12005
+ isInvalid?: boolean;
12006
+ orientation?: "horizontal" | "vertical";
12007
+ key: string;
12008
+ };
12009
+ default: (key: string, config?: Partial<Omit<Radio, "key" | "componentType" | "className">>) => {
12010
+ componentType: string;
12011
+ size?: "sm" | "md" | "lg";
12012
+ value?: string | undefined;
12013
+ color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger";
12014
+ label?: string;
12015
+ description?: string;
12016
+ isDisabled?: boolean;
12017
+ disableAnimation?: boolean;
12018
+ className?: string;
12019
+ isRequired?: boolean;
12020
+ isReadOnly?: boolean;
12021
+ isInvalid?: boolean;
12022
+ key: string;
12023
+ };
12024
+ required: (key: string, config?: Partial<Omit<Radio, "key" | "componentType" | "className">>) => {
12025
+ componentType: string;
12026
+ size?: "sm" | "md" | "lg";
12027
+ value?: string | undefined;
12028
+ color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger";
12029
+ label?: string;
12030
+ description?: string;
12031
+ isDisabled?: boolean;
12032
+ disableAnimation?: boolean;
12033
+ className?: string;
12034
+ isRequired?: boolean;
12035
+ isReadOnly?: boolean;
12036
+ isInvalid?: boolean;
12037
+ key: string;
12038
+ };
12039
+ disabled: (key: string, config?: Partial<Omit<Radio, "key" | "componentType" | "className">>) => {
12040
+ componentType: string;
12041
+ size?: "sm" | "md" | "lg";
12042
+ value?: string | undefined;
12043
+ color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger";
12044
+ label?: string;
12045
+ description?: string;
12046
+ isDisabled?: boolean;
12047
+ disableAnimation?: boolean;
12048
+ className?: string;
12049
+ isRequired?: boolean;
12050
+ isReadOnly?: boolean;
12051
+ isInvalid?: boolean;
12052
+ key: string;
12053
+ };
12054
+ readonly: (key: string, config?: Partial<Omit<Radio, "key" | "componentType" | "className">>) => {
12055
+ componentType: string;
12056
+ size?: "sm" | "md" | "lg";
12057
+ value?: string | undefined;
12058
+ color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger";
12059
+ label?: string;
12060
+ description?: string;
12061
+ isDisabled?: boolean;
12062
+ disableAnimation?: boolean;
12063
+ className?: string;
12064
+ isRequired?: boolean;
12065
+ isReadOnly?: boolean;
12066
+ isInvalid?: boolean;
12067
+ key: string;
12068
+ };
12069
+ invalid: (key: string, config?: Partial<Omit<Radio, "key" | "componentType" | "className">>) => {
12070
+ componentType: string;
12071
+ size?: "sm" | "md" | "lg";
12072
+ value?: string | undefined;
12073
+ color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger";
12074
+ label?: string;
12075
+ description?: string;
12076
+ isDisabled?: boolean;
12077
+ disableAnimation?: boolean;
12078
+ className?: string;
12079
+ isRequired?: boolean;
12080
+ isReadOnly?: boolean;
12081
+ isInvalid?: boolean;
12082
+ key: string;
12083
+ };
12084
+ };
12085
+ /** 多选框 */
12086
+ checkbox: {
12087
+ create: (key: string, options: Omit<CheckboxProps, "key" | "componentType" | "className">) => {
12088
+ componentType: string;
12089
+ size?: "sm" | "md" | "lg";
12090
+ name?: string;
12091
+ value?: string;
12092
+ color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger";
12093
+ label?: string;
12094
+ description?: string;
12095
+ isDisabled?: boolean;
12096
+ disableAnimation?: boolean;
12097
+ className?: string;
12098
+ radius?: "none" | "sm" | "md" | "lg" | "full";
12099
+ isRequired?: boolean;
12100
+ isReadOnly?: boolean;
12101
+ isInvalid?: boolean;
12102
+ isSelected?: boolean;
12103
+ defaultSelected?: boolean;
12104
+ lineThrough?: boolean;
12105
+ isIndeterminate?: boolean;
12106
+ key: string;
12107
+ };
12108
+ group: (key: string, options: Omit<CheckboxGroupProps, "key" | "componentType">) => {
12109
+ componentType: string;
12110
+ size?: "sm" | "md" | "lg";
12111
+ name?: string;
12112
+ value?: string[];
12113
+ checkbox?: CheckboxProps[] | undefined;
12114
+ color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger";
12115
+ label?: string;
12116
+ description?: string;
12117
+ isDisabled?: boolean;
12118
+ disableAnimation?: boolean;
12119
+ className?: string;
12120
+ defaultValue?: string[];
12121
+ radius?: "none" | "sm" | "md" | "lg" | "full";
12122
+ isRequired?: boolean;
12123
+ isReadOnly?: boolean;
12124
+ isInvalid?: boolean;
12125
+ orientation?: "vertical" | "horizontal";
12126
+ lineThrough?: boolean;
12127
+ key: string;
12128
+ };
12129
+ defaultGroup: (key: string, config?: Partial<Omit<CheckboxGroupProps, "key" | "componentType">>) => {
12130
+ componentType: string;
12131
+ size?: "sm" | "md" | "lg";
12132
+ name?: string;
12133
+ value?: string[];
12134
+ checkbox?: CheckboxProps[] | undefined;
12135
+ color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger";
12136
+ label?: string;
12137
+ description?: string;
12138
+ isDisabled?: boolean;
12139
+ disableAnimation?: boolean;
12140
+ className?: string;
12141
+ defaultValue?: string[];
12142
+ radius?: "none" | "sm" | "md" | "lg" | "full";
12143
+ isRequired?: boolean;
12144
+ isReadOnly?: boolean;
12145
+ isInvalid?: boolean;
12146
+ orientation?: "vertical" | "horizontal";
12147
+ lineThrough?: boolean;
12148
+ key: string;
12149
+ };
12150
+ default: (key: string, config?: Partial<Omit<CheckboxProps, "key" | "componentType" | "className">>) => {
12151
+ componentType: string;
12152
+ size?: "sm" | "md" | "lg";
12153
+ name?: string;
12154
+ value?: string;
12155
+ color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger";
12156
+ label?: string;
12157
+ description?: string;
12158
+ isDisabled?: boolean;
12159
+ disableAnimation?: boolean;
12160
+ className?: string;
12161
+ radius?: "none" | "sm" | "md" | "lg" | "full";
12162
+ isRequired?: boolean;
12163
+ isReadOnly?: boolean;
12164
+ isInvalid?: boolean;
12165
+ isSelected?: boolean;
12166
+ defaultSelected?: boolean;
12167
+ lineThrough?: boolean;
12168
+ isIndeterminate?: boolean;
12169
+ key: string;
12170
+ };
12171
+ required: (key: string, config?: Partial<Omit<CheckboxProps, "key" | "componentType" | "className">>) => {
12172
+ componentType: string;
12173
+ size?: "sm" | "md" | "lg";
12174
+ name?: string;
12175
+ value?: string;
12176
+ color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger";
12177
+ label?: string;
12178
+ description?: string;
12179
+ isDisabled?: boolean;
12180
+ disableAnimation?: boolean;
12181
+ className?: string;
12182
+ radius?: "none" | "sm" | "md" | "lg" | "full";
12183
+ isRequired?: boolean;
12184
+ isReadOnly?: boolean;
12185
+ isInvalid?: boolean;
12186
+ isSelected?: boolean;
12187
+ defaultSelected?: boolean;
12188
+ lineThrough?: boolean;
12189
+ isIndeterminate?: boolean;
12190
+ key: string;
12191
+ };
12192
+ disabled: (key: string, config?: Partial<Omit<CheckboxProps, "key" | "componentType" | "className">>) => {
12193
+ componentType: string;
12194
+ size?: "sm" | "md" | "lg";
12195
+ name?: string;
12196
+ value?: string;
12197
+ color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger";
12198
+ label?: string;
12199
+ description?: string;
12200
+ isDisabled?: boolean;
12201
+ disableAnimation?: boolean;
12202
+ className?: string;
12203
+ radius?: "none" | "sm" | "md" | "lg" | "full";
12204
+ isRequired?: boolean;
12205
+ isReadOnly?: boolean;
12206
+ isInvalid?: boolean;
12207
+ isSelected?: boolean;
12208
+ defaultSelected?: boolean;
12209
+ lineThrough?: boolean;
12210
+ isIndeterminate?: boolean;
12211
+ key: string;
12212
+ };
12213
+ readonly: (key: string, config?: Partial<Omit<CheckboxProps, "key" | "componentType" | "className">>) => {
12214
+ componentType: string;
12215
+ size?: "sm" | "md" | "lg";
12216
+ name?: string;
12217
+ value?: string;
12218
+ color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger";
12219
+ label?: string;
12220
+ description?: string;
12221
+ isDisabled?: boolean;
12222
+ disableAnimation?: boolean;
12223
+ className?: string;
12224
+ radius?: "none" | "sm" | "md" | "lg" | "full";
12225
+ isRequired?: boolean;
12226
+ isReadOnly?: boolean;
12227
+ isInvalid?: boolean;
12228
+ isSelected?: boolean;
12229
+ defaultSelected?: boolean;
12230
+ lineThrough?: boolean;
12231
+ isIndeterminate?: boolean;
12232
+ key: string;
12233
+ };
12234
+ indeterminate: (key: string, config?: Partial<Omit<CheckboxProps, "key" | "componentType" | "className">>) => {
12235
+ componentType: string;
12236
+ size?: "sm" | "md" | "lg";
12237
+ name?: string;
12238
+ value?: string;
12239
+ color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger";
12240
+ label?: string;
12241
+ description?: string;
12242
+ isDisabled?: boolean;
12243
+ disableAnimation?: boolean;
12244
+ className?: string;
12245
+ radius?: "none" | "sm" | "md" | "lg" | "full";
12246
+ isRequired?: boolean;
12247
+ isReadOnly?: boolean;
12248
+ isInvalid?: boolean;
12249
+ isSelected?: boolean;
12250
+ defaultSelected?: boolean;
12251
+ lineThrough?: boolean;
12252
+ isIndeterminate?: boolean;
12253
+ key: string;
12254
+ };
12255
+ invalid: (key: string, config?: Partial<Omit<CheckboxProps, "key" | "componentType" | "className">>) => {
12256
+ componentType: string;
12257
+ size?: "sm" | "md" | "lg";
12258
+ name?: string;
12259
+ value?: string;
12260
+ color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger";
12261
+ label?: string;
12262
+ description?: string;
12263
+ isDisabled?: boolean;
12264
+ disableAnimation?: boolean;
12265
+ className?: string;
12266
+ radius?: "none" | "sm" | "md" | "lg" | "full";
12267
+ isRequired?: boolean;
12268
+ isReadOnly?: boolean;
12269
+ isInvalid?: boolean;
12270
+ isSelected?: boolean;
12271
+ defaultSelected?: boolean;
12272
+ lineThrough?: boolean;
12273
+ isIndeterminate?: boolean;
12274
+ key: string;
12275
+ };
12276
+ };
11940
12277
  };
11941
12278
  type ComponentsClass = typeof divider | ReturnType<typeof input.create> | ReturnType<typeof switchComponent.create>;
11942
12279