@shwfed/nuxt 0.11.31 → 0.11.33

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/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@shwfed/nuxt",
3
3
  "configKey": "shwfed",
4
- "version": "0.11.31",
4
+ "version": "0.11.33",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -1,8 +1,8 @@
1
1
  import { Effect } from 'effect';
2
2
  import { type FieldsConfigInput } from './ui/fields/Fields.vue.js';
3
3
  import type { FieldsSlotProps } from './ui/fields/slot-props.js';
4
- export { CalendarFieldC, EmptyFieldC, FieldC, FieldsBodyC, FieldsBodyInputC, FieldsConfigC, FieldsConfigInputC, NumberFieldC, SelectFieldC, SlotFieldC, StringFieldC, CURRENT_COMPATIBILITY_DATE, KIND, SUPPORTED_COMPATIBILITY_DATES, createFieldsConfig, } from './ui/fields/Fields.vue.js';
5
- export type { EmptyField, Field, FieldsBody, FieldsBodyInput, FieldsConfig, FieldsConfigInput, SlotField, } from './ui/fields/Fields.vue.js';
4
+ export { CalendarFieldC, EmptyFieldC, FieldC, FieldsBodyC, FieldsBodyInputC, FieldsConfigC, FieldsConfigInputC, NumberFieldC, SelectFieldC, SlotFieldC, StringFieldC, UploadFieldC, CURRENT_COMPATIBILITY_DATE, KIND, SUPPORTED_COMPATIBILITY_DATES, createFieldsConfig, } from './ui/fields/Fields.vue.js';
5
+ export type { EmptyField, Field, FieldsBody, FieldsBodyInput, FieldsConfig, FieldsConfigInput, SlotField, UploadField, } from './ui/fields/Fields.vue.js';
6
6
  export type { FieldsInstance } from './fields-instance.js';
7
7
  export type { FieldsSlotProps } from './ui/fields/slot-props.js';
8
8
  declare const _default: typeof __VLS_export;
@@ -22,6 +22,8 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
22
22
  locale: "en" | "ja" | "ko" | "zh";
23
23
  message: string;
24
24
  }[];
25
+ labelStyle?: string | undefined;
26
+ contentStyle?: string | undefined;
25
27
  required?: boolean | undefined;
26
28
  icon?: string | undefined;
27
29
  style?: string | undefined;
@@ -42,6 +44,8 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
42
44
  locale: "en" | "ja" | "ko" | "zh";
43
45
  message: string;
44
46
  }[];
47
+ labelStyle?: string | undefined;
48
+ contentStyle?: string | undefined;
45
49
  required?: boolean | undefined;
46
50
  icon?: string | undefined;
47
51
  style?: string | undefined;
@@ -62,6 +66,8 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
62
66
  locale: "en" | "ja" | "ko" | "zh";
63
67
  message: string;
64
68
  }[];
69
+ labelStyle?: string | undefined;
70
+ contentStyle?: string | undefined;
65
71
  required?: boolean | undefined;
66
72
  icon?: string | undefined;
67
73
  style?: string | undefined;
@@ -87,6 +93,32 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
87
93
  label: string;
88
94
  value: string;
89
95
  key: string;
96
+ labelStyle?: string | undefined;
97
+ contentStyle?: string | undefined;
98
+ required?: boolean | undefined;
99
+ icon?: string | undefined;
100
+ style?: string | undefined;
101
+ initialValue?: string | undefined;
102
+ hidden?: string | undefined;
103
+ disabled?: string | undefined;
104
+ validation?: readonly Readonly<{
105
+ expression: string;
106
+ message: string;
107
+ }>[] | undefined;
108
+ } | {
109
+ id: string;
110
+ type: "radio";
111
+ path: string;
112
+ title: readonly {
113
+ locale: "en" | "ja" | "ko" | "zh";
114
+ message: string;
115
+ }[];
116
+ options: string;
117
+ label: string;
118
+ value: string;
119
+ key: string;
120
+ labelStyle?: string | undefined;
121
+ contentStyle?: string | undefined;
90
122
  required?: boolean | undefined;
91
123
  icon?: string | undefined;
92
124
  style?: string | undefined;
@@ -107,6 +139,8 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
107
139
  }[];
108
140
  mode: "month" | "year" | "date";
109
141
  value: string;
142
+ labelStyle?: string | undefined;
143
+ contentStyle?: string | undefined;
110
144
  required?: boolean | undefined;
111
145
  icon?: string | undefined;
112
146
  style?: string | undefined;
@@ -119,6 +153,32 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
119
153
  expression: string;
120
154
  message: string;
121
155
  }>[] | undefined;
156
+ } | {
157
+ id: string;
158
+ type: "upload";
159
+ path: string;
160
+ title: readonly {
161
+ locale: "en" | "ja" | "ko" | "zh";
162
+ message: string;
163
+ }[];
164
+ labelStyle?: string | undefined;
165
+ contentStyle?: string | undefined;
166
+ required?: boolean | undefined;
167
+ icon?: string | undefined;
168
+ accept?: readonly string[] | undefined;
169
+ description?: readonly {
170
+ locale: "en" | "ja" | "ko" | "zh";
171
+ message: string;
172
+ }[] | undefined;
173
+ maxCount?: string | undefined;
174
+ style?: string | undefined;
175
+ initialValue?: string | undefined;
176
+ hidden?: string | undefined;
177
+ disabled?: string | undefined;
178
+ validation?: readonly Readonly<{
179
+ expression: string;
180
+ message: string;
181
+ }>[] | undefined;
122
182
  } | {
123
183
  id: string;
124
184
  type: "slot";
@@ -130,7 +190,8 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
130
190
  })[];
131
191
  kind: string;
132
192
  compatibilityDate: string;
133
- orientation?: "vertical" | "horizontal" | "floating" | undefined;
193
+ orientation?: "vertical" | "horizontal" | "floating" | "contents" | undefined;
194
+ bordered?: boolean | undefined;
134
195
  style?: string | undefined;
135
196
  }>) => any;
136
197
  "initial-value-ready": () => any;
@@ -149,6 +210,8 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
149
210
  locale: "en" | "ja" | "ko" | "zh";
150
211
  message: string;
151
212
  }[];
213
+ labelStyle?: string | undefined;
214
+ contentStyle?: string | undefined;
152
215
  required?: boolean | undefined;
153
216
  icon?: string | undefined;
154
217
  style?: string | undefined;
@@ -169,6 +232,8 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
169
232
  locale: "en" | "ja" | "ko" | "zh";
170
233
  message: string;
171
234
  }[];
235
+ labelStyle?: string | undefined;
236
+ contentStyle?: string | undefined;
172
237
  required?: boolean | undefined;
173
238
  icon?: string | undefined;
174
239
  style?: string | undefined;
@@ -189,6 +254,8 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
189
254
  locale: "en" | "ja" | "ko" | "zh";
190
255
  message: string;
191
256
  }[];
257
+ labelStyle?: string | undefined;
258
+ contentStyle?: string | undefined;
192
259
  required?: boolean | undefined;
193
260
  icon?: string | undefined;
194
261
  style?: string | undefined;
@@ -214,6 +281,32 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
214
281
  label: string;
215
282
  value: string;
216
283
  key: string;
284
+ labelStyle?: string | undefined;
285
+ contentStyle?: string | undefined;
286
+ required?: boolean | undefined;
287
+ icon?: string | undefined;
288
+ style?: string | undefined;
289
+ initialValue?: string | undefined;
290
+ hidden?: string | undefined;
291
+ disabled?: string | undefined;
292
+ validation?: readonly Readonly<{
293
+ expression: string;
294
+ message: string;
295
+ }>[] | undefined;
296
+ } | {
297
+ id: string;
298
+ type: "radio";
299
+ path: string;
300
+ title: readonly {
301
+ locale: "en" | "ja" | "ko" | "zh";
302
+ message: string;
303
+ }[];
304
+ options: string;
305
+ label: string;
306
+ value: string;
307
+ key: string;
308
+ labelStyle?: string | undefined;
309
+ contentStyle?: string | undefined;
217
310
  required?: boolean | undefined;
218
311
  icon?: string | undefined;
219
312
  style?: string | undefined;
@@ -234,6 +327,8 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
234
327
  }[];
235
328
  mode: "month" | "year" | "date";
236
329
  value: string;
330
+ labelStyle?: string | undefined;
331
+ contentStyle?: string | undefined;
237
332
  required?: boolean | undefined;
238
333
  icon?: string | undefined;
239
334
  style?: string | undefined;
@@ -246,6 +341,32 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
246
341
  expression: string;
247
342
  message: string;
248
343
  }>[] | undefined;
344
+ } | {
345
+ id: string;
346
+ type: "upload";
347
+ path: string;
348
+ title: readonly {
349
+ locale: "en" | "ja" | "ko" | "zh";
350
+ message: string;
351
+ }[];
352
+ labelStyle?: string | undefined;
353
+ contentStyle?: string | undefined;
354
+ required?: boolean | undefined;
355
+ icon?: string | undefined;
356
+ accept?: readonly string[] | undefined;
357
+ description?: readonly {
358
+ locale: "en" | "ja" | "ko" | "zh";
359
+ message: string;
360
+ }[] | undefined;
361
+ maxCount?: string | undefined;
362
+ style?: string | undefined;
363
+ initialValue?: string | undefined;
364
+ hidden?: string | undefined;
365
+ disabled?: string | undefined;
366
+ validation?: readonly Readonly<{
367
+ expression: string;
368
+ message: string;
369
+ }>[] | undefined;
249
370
  } | {
250
371
  id: string;
251
372
  type: "slot";
@@ -257,7 +378,8 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
257
378
  })[];
258
379
  kind: string;
259
380
  compatibilityDate: string;
260
- orientation?: "vertical" | "horizontal" | "floating" | undefined;
381
+ orientation?: "vertical" | "horizontal" | "floating" | "contents" | undefined;
382
+ bordered?: boolean | undefined;
261
383
  style?: string | undefined;
262
384
  }>) => any) | undefined;
263
385
  "onInitial-value-ready"?: (() => any) | undefined;
@@ -73,6 +73,7 @@ export {
73
73
  SelectFieldC,
74
74
  SlotFieldC,
75
75
  StringFieldC,
76
+ UploadFieldC,
76
77
  CURRENT_COMPATIBILITY_DATE,
77
78
  KIND,
78
79
  SUPPORTED_COMPATIBILITY_DATES,
@@ -1,8 +1,8 @@
1
1
  import { Effect } from 'effect';
2
2
  import { type FieldsConfigInput } from './ui/fields/Fields.vue.js';
3
3
  import type { FieldsSlotProps } from './ui/fields/slot-props.js';
4
- export { CalendarFieldC, EmptyFieldC, FieldC, FieldsBodyC, FieldsBodyInputC, FieldsConfigC, FieldsConfigInputC, NumberFieldC, SelectFieldC, SlotFieldC, StringFieldC, CURRENT_COMPATIBILITY_DATE, KIND, SUPPORTED_COMPATIBILITY_DATES, createFieldsConfig, } from './ui/fields/Fields.vue.js';
5
- export type { EmptyField, Field, FieldsBody, FieldsBodyInput, FieldsConfig, FieldsConfigInput, SlotField, } from './ui/fields/Fields.vue.js';
4
+ export { CalendarFieldC, EmptyFieldC, FieldC, FieldsBodyC, FieldsBodyInputC, FieldsConfigC, FieldsConfigInputC, NumberFieldC, SelectFieldC, SlotFieldC, StringFieldC, UploadFieldC, CURRENT_COMPATIBILITY_DATE, KIND, SUPPORTED_COMPATIBILITY_DATES, createFieldsConfig, } from './ui/fields/Fields.vue.js';
5
+ export type { EmptyField, Field, FieldsBody, FieldsBodyInput, FieldsConfig, FieldsConfigInput, SlotField, UploadField, } from './ui/fields/Fields.vue.js';
6
6
  export type { FieldsInstance } from './fields-instance.js';
7
7
  export type { FieldsSlotProps } from './ui/fields/slot-props.js';
8
8
  declare const _default: typeof __VLS_export;
@@ -22,6 +22,8 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
22
22
  locale: "en" | "ja" | "ko" | "zh";
23
23
  message: string;
24
24
  }[];
25
+ labelStyle?: string | undefined;
26
+ contentStyle?: string | undefined;
25
27
  required?: boolean | undefined;
26
28
  icon?: string | undefined;
27
29
  style?: string | undefined;
@@ -42,6 +44,8 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
42
44
  locale: "en" | "ja" | "ko" | "zh";
43
45
  message: string;
44
46
  }[];
47
+ labelStyle?: string | undefined;
48
+ contentStyle?: string | undefined;
45
49
  required?: boolean | undefined;
46
50
  icon?: string | undefined;
47
51
  style?: string | undefined;
@@ -62,6 +66,8 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
62
66
  locale: "en" | "ja" | "ko" | "zh";
63
67
  message: string;
64
68
  }[];
69
+ labelStyle?: string | undefined;
70
+ contentStyle?: string | undefined;
65
71
  required?: boolean | undefined;
66
72
  icon?: string | undefined;
67
73
  style?: string | undefined;
@@ -87,6 +93,32 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
87
93
  label: string;
88
94
  value: string;
89
95
  key: string;
96
+ labelStyle?: string | undefined;
97
+ contentStyle?: string | undefined;
98
+ required?: boolean | undefined;
99
+ icon?: string | undefined;
100
+ style?: string | undefined;
101
+ initialValue?: string | undefined;
102
+ hidden?: string | undefined;
103
+ disabled?: string | undefined;
104
+ validation?: readonly Readonly<{
105
+ expression: string;
106
+ message: string;
107
+ }>[] | undefined;
108
+ } | {
109
+ id: string;
110
+ type: "radio";
111
+ path: string;
112
+ title: readonly {
113
+ locale: "en" | "ja" | "ko" | "zh";
114
+ message: string;
115
+ }[];
116
+ options: string;
117
+ label: string;
118
+ value: string;
119
+ key: string;
120
+ labelStyle?: string | undefined;
121
+ contentStyle?: string | undefined;
90
122
  required?: boolean | undefined;
91
123
  icon?: string | undefined;
92
124
  style?: string | undefined;
@@ -107,6 +139,8 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
107
139
  }[];
108
140
  mode: "month" | "year" | "date";
109
141
  value: string;
142
+ labelStyle?: string | undefined;
143
+ contentStyle?: string | undefined;
110
144
  required?: boolean | undefined;
111
145
  icon?: string | undefined;
112
146
  style?: string | undefined;
@@ -119,6 +153,32 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
119
153
  expression: string;
120
154
  message: string;
121
155
  }>[] | undefined;
156
+ } | {
157
+ id: string;
158
+ type: "upload";
159
+ path: string;
160
+ title: readonly {
161
+ locale: "en" | "ja" | "ko" | "zh";
162
+ message: string;
163
+ }[];
164
+ labelStyle?: string | undefined;
165
+ contentStyle?: string | undefined;
166
+ required?: boolean | undefined;
167
+ icon?: string | undefined;
168
+ accept?: readonly string[] | undefined;
169
+ description?: readonly {
170
+ locale: "en" | "ja" | "ko" | "zh";
171
+ message: string;
172
+ }[] | undefined;
173
+ maxCount?: string | undefined;
174
+ style?: string | undefined;
175
+ initialValue?: string | undefined;
176
+ hidden?: string | undefined;
177
+ disabled?: string | undefined;
178
+ validation?: readonly Readonly<{
179
+ expression: string;
180
+ message: string;
181
+ }>[] | undefined;
122
182
  } | {
123
183
  id: string;
124
184
  type: "slot";
@@ -130,7 +190,8 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
130
190
  })[];
131
191
  kind: string;
132
192
  compatibilityDate: string;
133
- orientation?: "vertical" | "horizontal" | "floating" | undefined;
193
+ orientation?: "vertical" | "horizontal" | "floating" | "contents" | undefined;
194
+ bordered?: boolean | undefined;
134
195
  style?: string | undefined;
135
196
  }>) => any;
136
197
  "initial-value-ready": () => any;
@@ -149,6 +210,8 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
149
210
  locale: "en" | "ja" | "ko" | "zh";
150
211
  message: string;
151
212
  }[];
213
+ labelStyle?: string | undefined;
214
+ contentStyle?: string | undefined;
152
215
  required?: boolean | undefined;
153
216
  icon?: string | undefined;
154
217
  style?: string | undefined;
@@ -169,6 +232,8 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
169
232
  locale: "en" | "ja" | "ko" | "zh";
170
233
  message: string;
171
234
  }[];
235
+ labelStyle?: string | undefined;
236
+ contentStyle?: string | undefined;
172
237
  required?: boolean | undefined;
173
238
  icon?: string | undefined;
174
239
  style?: string | undefined;
@@ -189,6 +254,8 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
189
254
  locale: "en" | "ja" | "ko" | "zh";
190
255
  message: string;
191
256
  }[];
257
+ labelStyle?: string | undefined;
258
+ contentStyle?: string | undefined;
192
259
  required?: boolean | undefined;
193
260
  icon?: string | undefined;
194
261
  style?: string | undefined;
@@ -214,6 +281,32 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
214
281
  label: string;
215
282
  value: string;
216
283
  key: string;
284
+ labelStyle?: string | undefined;
285
+ contentStyle?: string | undefined;
286
+ required?: boolean | undefined;
287
+ icon?: string | undefined;
288
+ style?: string | undefined;
289
+ initialValue?: string | undefined;
290
+ hidden?: string | undefined;
291
+ disabled?: string | undefined;
292
+ validation?: readonly Readonly<{
293
+ expression: string;
294
+ message: string;
295
+ }>[] | undefined;
296
+ } | {
297
+ id: string;
298
+ type: "radio";
299
+ path: string;
300
+ title: readonly {
301
+ locale: "en" | "ja" | "ko" | "zh";
302
+ message: string;
303
+ }[];
304
+ options: string;
305
+ label: string;
306
+ value: string;
307
+ key: string;
308
+ labelStyle?: string | undefined;
309
+ contentStyle?: string | undefined;
217
310
  required?: boolean | undefined;
218
311
  icon?: string | undefined;
219
312
  style?: string | undefined;
@@ -234,6 +327,8 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
234
327
  }[];
235
328
  mode: "month" | "year" | "date";
236
329
  value: string;
330
+ labelStyle?: string | undefined;
331
+ contentStyle?: string | undefined;
237
332
  required?: boolean | undefined;
238
333
  icon?: string | undefined;
239
334
  style?: string | undefined;
@@ -246,6 +341,32 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
246
341
  expression: string;
247
342
  message: string;
248
343
  }>[] | undefined;
344
+ } | {
345
+ id: string;
346
+ type: "upload";
347
+ path: string;
348
+ title: readonly {
349
+ locale: "en" | "ja" | "ko" | "zh";
350
+ message: string;
351
+ }[];
352
+ labelStyle?: string | undefined;
353
+ contentStyle?: string | undefined;
354
+ required?: boolean | undefined;
355
+ icon?: string | undefined;
356
+ accept?: readonly string[] | undefined;
357
+ description?: readonly {
358
+ locale: "en" | "ja" | "ko" | "zh";
359
+ message: string;
360
+ }[] | undefined;
361
+ maxCount?: string | undefined;
362
+ style?: string | undefined;
363
+ initialValue?: string | undefined;
364
+ hidden?: string | undefined;
365
+ disabled?: string | undefined;
366
+ validation?: readonly Readonly<{
367
+ expression: string;
368
+ message: string;
369
+ }>[] | undefined;
249
370
  } | {
250
371
  id: string;
251
372
  type: "slot";
@@ -257,7 +378,8 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
257
378
  })[];
258
379
  kind: string;
259
380
  compatibilityDate: string;
260
- orientation?: "vertical" | "horizontal" | "floating" | undefined;
381
+ orientation?: "vertical" | "horizontal" | "floating" | "contents" | undefined;
382
+ bordered?: boolean | undefined;
261
383
  style?: string | undefined;
262
384
  }>) => any) | undefined;
263
385
  "onInitial-value-ready"?: (() => any) | undefined;
@@ -1,6 +1,6 @@
1
1
  import type { VariantProps } from 'class-variance-authority';
2
2
  export declare const fieldVariants: (props?: ({
3
- orientation?: "vertical" | "horizontal" | "floating" | "responsive" | null | undefined;
3
+ orientation?: "vertical" | "horizontal" | "floating" | "contents" | "responsive" | null | undefined;
4
4
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
5
5
  export type FieldVariants = VariantProps<typeof fieldVariants>;
6
6
  export { default as Field } from './Field.vue.js';
@@ -34,6 +34,12 @@ export const fieldVariants = cva(
34
34
  "data-[disabled=true]:**:data-[slot=field-label]:text-zinc-400",
35
35
  "*:data-[slot=field-label]:left-3",
36
36
  "has-[[data-slot=input-group-addon][data-align=inline-start]]:**:data-[slot=field-label]:left-7"
37
+ ],
38
+ contents: [
39
+ "contents",
40
+ "*:data-[slot=field-label]:flex *:data-[slot=field-label]:w-full *:data-[slot=field-label]:min-h-full",
41
+ "*:data-[slot=field-label]:items-center *:data-[slot=field-label]:justify-center *:data-[slot=field-label]:text-center",
42
+ "*:data-[slot=field-content]:min-w-0 *:data-[slot=field-content]:w-full *:data-[slot=field-content]:min-h-full"
37
43
  ]
38
44
  }
39
45
  },