@shwfed/nuxt 0.11.31 → 0.11.32

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.32",
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,8 @@ 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;
90
98
  required?: boolean | undefined;
91
99
  icon?: string | undefined;
92
100
  style?: string | undefined;
@@ -107,6 +115,8 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
107
115
  }[];
108
116
  mode: "month" | "year" | "date";
109
117
  value: string;
118
+ labelStyle?: string | undefined;
119
+ contentStyle?: string | undefined;
110
120
  required?: boolean | undefined;
111
121
  icon?: string | undefined;
112
122
  style?: string | undefined;
@@ -119,6 +129,32 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
119
129
  expression: string;
120
130
  message: string;
121
131
  }>[] | undefined;
132
+ } | {
133
+ id: string;
134
+ type: "upload";
135
+ path: string;
136
+ title: readonly {
137
+ locale: "en" | "ja" | "ko" | "zh";
138
+ message: string;
139
+ }[];
140
+ labelStyle?: string | undefined;
141
+ contentStyle?: string | undefined;
142
+ required?: boolean | undefined;
143
+ icon?: string | undefined;
144
+ accept?: readonly string[] | undefined;
145
+ description?: readonly {
146
+ locale: "en" | "ja" | "ko" | "zh";
147
+ message: string;
148
+ }[] | undefined;
149
+ maxCount?: string | undefined;
150
+ style?: string | undefined;
151
+ initialValue?: string | undefined;
152
+ hidden?: string | undefined;
153
+ disabled?: string | undefined;
154
+ validation?: readonly Readonly<{
155
+ expression: string;
156
+ message: string;
157
+ }>[] | undefined;
122
158
  } | {
123
159
  id: string;
124
160
  type: "slot";
@@ -130,7 +166,8 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
130
166
  })[];
131
167
  kind: string;
132
168
  compatibilityDate: string;
133
- orientation?: "vertical" | "horizontal" | "floating" | undefined;
169
+ orientation?: "vertical" | "horizontal" | "floating" | "contents" | undefined;
170
+ bordered?: boolean | undefined;
134
171
  style?: string | undefined;
135
172
  }>) => any;
136
173
  "initial-value-ready": () => any;
@@ -149,6 +186,8 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
149
186
  locale: "en" | "ja" | "ko" | "zh";
150
187
  message: string;
151
188
  }[];
189
+ labelStyle?: string | undefined;
190
+ contentStyle?: string | undefined;
152
191
  required?: boolean | undefined;
153
192
  icon?: string | undefined;
154
193
  style?: string | undefined;
@@ -169,6 +208,8 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
169
208
  locale: "en" | "ja" | "ko" | "zh";
170
209
  message: string;
171
210
  }[];
211
+ labelStyle?: string | undefined;
212
+ contentStyle?: string | undefined;
172
213
  required?: boolean | undefined;
173
214
  icon?: string | undefined;
174
215
  style?: string | undefined;
@@ -189,6 +230,8 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
189
230
  locale: "en" | "ja" | "ko" | "zh";
190
231
  message: string;
191
232
  }[];
233
+ labelStyle?: string | undefined;
234
+ contentStyle?: string | undefined;
192
235
  required?: boolean | undefined;
193
236
  icon?: string | undefined;
194
237
  style?: string | undefined;
@@ -214,6 +257,8 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
214
257
  label: string;
215
258
  value: string;
216
259
  key: string;
260
+ labelStyle?: string | undefined;
261
+ contentStyle?: string | undefined;
217
262
  required?: boolean | undefined;
218
263
  icon?: string | undefined;
219
264
  style?: string | undefined;
@@ -234,6 +279,8 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
234
279
  }[];
235
280
  mode: "month" | "year" | "date";
236
281
  value: string;
282
+ labelStyle?: string | undefined;
283
+ contentStyle?: string | undefined;
237
284
  required?: boolean | undefined;
238
285
  icon?: string | undefined;
239
286
  style?: string | undefined;
@@ -246,6 +293,32 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
246
293
  expression: string;
247
294
  message: string;
248
295
  }>[] | undefined;
296
+ } | {
297
+ id: string;
298
+ type: "upload";
299
+ path: string;
300
+ title: readonly {
301
+ locale: "en" | "ja" | "ko" | "zh";
302
+ message: string;
303
+ }[];
304
+ labelStyle?: string | undefined;
305
+ contentStyle?: string | undefined;
306
+ required?: boolean | undefined;
307
+ icon?: string | undefined;
308
+ accept?: readonly string[] | undefined;
309
+ description?: readonly {
310
+ locale: "en" | "ja" | "ko" | "zh";
311
+ message: string;
312
+ }[] | undefined;
313
+ maxCount?: string | undefined;
314
+ style?: string | undefined;
315
+ initialValue?: string | undefined;
316
+ hidden?: string | undefined;
317
+ disabled?: string | undefined;
318
+ validation?: readonly Readonly<{
319
+ expression: string;
320
+ message: string;
321
+ }>[] | undefined;
249
322
  } | {
250
323
  id: string;
251
324
  type: "slot";
@@ -257,7 +330,8 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
257
330
  })[];
258
331
  kind: string;
259
332
  compatibilityDate: string;
260
- orientation?: "vertical" | "horizontal" | "floating" | undefined;
333
+ orientation?: "vertical" | "horizontal" | "floating" | "contents" | undefined;
334
+ bordered?: boolean | undefined;
261
335
  style?: string | undefined;
262
336
  }>) => any) | undefined;
263
337
  "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,8 @@ 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;
90
98
  required?: boolean | undefined;
91
99
  icon?: string | undefined;
92
100
  style?: string | undefined;
@@ -107,6 +115,8 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
107
115
  }[];
108
116
  mode: "month" | "year" | "date";
109
117
  value: string;
118
+ labelStyle?: string | undefined;
119
+ contentStyle?: string | undefined;
110
120
  required?: boolean | undefined;
111
121
  icon?: string | undefined;
112
122
  style?: string | undefined;
@@ -119,6 +129,32 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
119
129
  expression: string;
120
130
  message: string;
121
131
  }>[] | undefined;
132
+ } | {
133
+ id: string;
134
+ type: "upload";
135
+ path: string;
136
+ title: readonly {
137
+ locale: "en" | "ja" | "ko" | "zh";
138
+ message: string;
139
+ }[];
140
+ labelStyle?: string | undefined;
141
+ contentStyle?: string | undefined;
142
+ required?: boolean | undefined;
143
+ icon?: string | undefined;
144
+ accept?: readonly string[] | undefined;
145
+ description?: readonly {
146
+ locale: "en" | "ja" | "ko" | "zh";
147
+ message: string;
148
+ }[] | undefined;
149
+ maxCount?: string | undefined;
150
+ style?: string | undefined;
151
+ initialValue?: string | undefined;
152
+ hidden?: string | undefined;
153
+ disabled?: string | undefined;
154
+ validation?: readonly Readonly<{
155
+ expression: string;
156
+ message: string;
157
+ }>[] | undefined;
122
158
  } | {
123
159
  id: string;
124
160
  type: "slot";
@@ -130,7 +166,8 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
130
166
  })[];
131
167
  kind: string;
132
168
  compatibilityDate: string;
133
- orientation?: "vertical" | "horizontal" | "floating" | undefined;
169
+ orientation?: "vertical" | "horizontal" | "floating" | "contents" | undefined;
170
+ bordered?: boolean | undefined;
134
171
  style?: string | undefined;
135
172
  }>) => any;
136
173
  "initial-value-ready": () => any;
@@ -149,6 +186,8 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
149
186
  locale: "en" | "ja" | "ko" | "zh";
150
187
  message: string;
151
188
  }[];
189
+ labelStyle?: string | undefined;
190
+ contentStyle?: string | undefined;
152
191
  required?: boolean | undefined;
153
192
  icon?: string | undefined;
154
193
  style?: string | undefined;
@@ -169,6 +208,8 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
169
208
  locale: "en" | "ja" | "ko" | "zh";
170
209
  message: string;
171
210
  }[];
211
+ labelStyle?: string | undefined;
212
+ contentStyle?: string | undefined;
172
213
  required?: boolean | undefined;
173
214
  icon?: string | undefined;
174
215
  style?: string | undefined;
@@ -189,6 +230,8 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
189
230
  locale: "en" | "ja" | "ko" | "zh";
190
231
  message: string;
191
232
  }[];
233
+ labelStyle?: string | undefined;
234
+ contentStyle?: string | undefined;
192
235
  required?: boolean | undefined;
193
236
  icon?: string | undefined;
194
237
  style?: string | undefined;
@@ -214,6 +257,8 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
214
257
  label: string;
215
258
  value: string;
216
259
  key: string;
260
+ labelStyle?: string | undefined;
261
+ contentStyle?: string | undefined;
217
262
  required?: boolean | undefined;
218
263
  icon?: string | undefined;
219
264
  style?: string | undefined;
@@ -234,6 +279,8 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
234
279
  }[];
235
280
  mode: "month" | "year" | "date";
236
281
  value: string;
282
+ labelStyle?: string | undefined;
283
+ contentStyle?: string | undefined;
237
284
  required?: boolean | undefined;
238
285
  icon?: string | undefined;
239
286
  style?: string | undefined;
@@ -246,6 +293,32 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
246
293
  expression: string;
247
294
  message: string;
248
295
  }>[] | undefined;
296
+ } | {
297
+ id: string;
298
+ type: "upload";
299
+ path: string;
300
+ title: readonly {
301
+ locale: "en" | "ja" | "ko" | "zh";
302
+ message: string;
303
+ }[];
304
+ labelStyle?: string | undefined;
305
+ contentStyle?: string | undefined;
306
+ required?: boolean | undefined;
307
+ icon?: string | undefined;
308
+ accept?: readonly string[] | undefined;
309
+ description?: readonly {
310
+ locale: "en" | "ja" | "ko" | "zh";
311
+ message: string;
312
+ }[] | undefined;
313
+ maxCount?: string | undefined;
314
+ style?: string | undefined;
315
+ initialValue?: string | undefined;
316
+ hidden?: string | undefined;
317
+ disabled?: string | undefined;
318
+ validation?: readonly Readonly<{
319
+ expression: string;
320
+ message: string;
321
+ }>[] | undefined;
249
322
  } | {
250
323
  id: string;
251
324
  type: "slot";
@@ -257,7 +330,8 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
257
330
  })[];
258
331
  kind: string;
259
332
  compatibilityDate: string;
260
- orientation?: "vertical" | "horizontal" | "floating" | undefined;
333
+ orientation?: "vertical" | "horizontal" | "floating" | "contents" | undefined;
334
+ bordered?: boolean | undefined;
261
335
  style?: string | undefined;
262
336
  }>) => any) | undefined;
263
337
  "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
  },