@shwfed/nuxt 0.10.14 → 0.11.0

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 (80) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/module.mjs +1 -0
  3. package/dist/runtime/components/app.d.vue.ts +2 -1
  4. package/dist/runtime/components/app.vue.d.ts +2 -1
  5. package/dist/runtime/components/button.d.vue.ts +67 -4
  6. package/dist/runtime/components/button.vue +29 -4
  7. package/dist/runtime/components/button.vue.d.ts +67 -4
  8. package/dist/runtime/components/component-config.d.ts +12 -0
  9. package/dist/runtime/components/component-config.js +22 -0
  10. package/dist/runtime/components/fields.d.vue.ts +9 -5
  11. package/dist/runtime/components/fields.vue +14 -5
  12. package/dist/runtime/components/fields.vue.d.ts +9 -5
  13. package/dist/runtime/components/markdown.d.vue.ts +19 -9
  14. package/dist/runtime/components/markdown.vue +15 -3
  15. package/dist/runtime/components/markdown.vue.d.ts +19 -9
  16. package/dist/runtime/components/menu-tabs.d.vue.ts +14 -4
  17. package/dist/runtime/components/menu-tabs.vue +15 -3
  18. package/dist/runtime/components/menu-tabs.vue.d.ts +14 -4
  19. package/dist/runtime/components/modal.d.vue.ts +3 -1
  20. package/dist/runtime/components/modal.vue +3 -1
  21. package/dist/runtime/components/modal.vue.d.ts +3 -1
  22. package/dist/runtime/components/table.d.vue.ts +8 -3
  23. package/dist/runtime/components/table.vue +28 -2
  24. package/dist/runtime/components/table.vue.d.ts +8 -3
  25. package/dist/runtime/components/ui/app/App.d.vue.ts +7 -5
  26. package/dist/runtime/components/ui/app/App.vue +23 -8
  27. package/dist/runtime/components/ui/app/App.vue.d.ts +7 -5
  28. package/dist/runtime/components/ui/app/OverlayHost.d.vue.ts +3 -0
  29. package/dist/runtime/components/ui/app/OverlayHost.vue +91 -0
  30. package/dist/runtime/components/ui/app/OverlayHost.vue.d.ts +3 -0
  31. package/dist/runtime/components/ui/button-configurator/ButtonConfiguratorDialog.d.vue.ts +56 -0
  32. package/dist/runtime/components/ui/button-configurator/ButtonConfiguratorDialog.vue +12 -4
  33. package/dist/runtime/components/ui/button-configurator/ButtonConfiguratorDialog.vue.d.ts +56 -0
  34. package/dist/runtime/components/ui/buttons/Buttons.d.vue.ts +62 -5
  35. package/dist/runtime/components/ui/buttons/Buttons.vue +71 -7
  36. package/dist/runtime/components/ui/buttons/Buttons.vue.d.ts +62 -5
  37. package/dist/runtime/components/ui/buttons/schema.d.ts +562 -2
  38. package/dist/runtime/components/ui/buttons/schema.js +24 -23
  39. package/dist/runtime/components/ui/drawer/Drawer.d.vue.ts +4 -4
  40. package/dist/runtime/components/ui/drawer/Drawer.vue.d.ts +4 -4
  41. package/dist/runtime/components/ui/fields/Fields.d.vue.ts +10 -2
  42. package/dist/runtime/components/ui/fields/Fields.vue +12 -3
  43. package/dist/runtime/components/ui/fields/Fields.vue.d.ts +10 -2
  44. package/dist/runtime/components/ui/fields/schema.d.ts +464 -0
  45. package/dist/runtime/components/ui/fields/schema.js +15 -2
  46. package/dist/runtime/components/ui/fields-configurator/FieldsConfiguratorDialog.d.vue.ts +4 -0
  47. package/dist/runtime/components/ui/fields-configurator/FieldsConfiguratorDialog.vue +10 -4
  48. package/dist/runtime/components/ui/fields-configurator/FieldsConfiguratorDialog.vue.d.ts +4 -0
  49. package/dist/runtime/components/ui/markdown/Markdown.d.vue.ts +18 -8
  50. package/dist/runtime/components/ui/markdown/Markdown.vue +13 -3
  51. package/dist/runtime/components/ui/markdown/Markdown.vue.d.ts +18 -8
  52. package/dist/runtime/components/ui/markdown/schema.d.ts +51 -6
  53. package/dist/runtime/components/ui/markdown/schema.js +15 -2
  54. package/dist/runtime/components/ui/markdown-configurator/MarkdownConfiguratorDialog.d.vue.ts +16 -7
  55. package/dist/runtime/components/ui/markdown-configurator/MarkdownConfiguratorDialog.vue +12 -7
  56. package/dist/runtime/components/ui/markdown-configurator/MarkdownConfiguratorDialog.vue.d.ts +16 -7
  57. package/dist/runtime/components/ui/menu-tabs/MenuTabs.d.vue.ts +14 -4
  58. package/dist/runtime/components/ui/menu-tabs/MenuTabs.vue +16 -5
  59. package/dist/runtime/components/ui/menu-tabs/MenuTabs.vue.d.ts +14 -4
  60. package/dist/runtime/components/ui/menu-tabs/schema.d.ts +42 -5
  61. package/dist/runtime/components/ui/menu-tabs/schema.js +13 -12
  62. package/dist/runtime/components/ui/menu-tabs-configurator/MenuTabsConfiguratorDialog.d.vue.ts +12 -3
  63. package/dist/runtime/components/ui/menu-tabs-configurator/MenuTabsConfiguratorDialog.vue +9 -5
  64. package/dist/runtime/components/ui/menu-tabs-configurator/MenuTabsConfiguratorDialog.vue.d.ts +12 -3
  65. package/dist/runtime/components/ui/table/Table.d.vue.ts +6 -2
  66. package/dist/runtime/components/ui/table/Table.vue +18 -2
  67. package/dist/runtime/components/ui/table/Table.vue.d.ts +6 -2
  68. package/dist/runtime/components/ui/table/schema.d.ts +239 -2
  69. package/dist/runtime/components/ui/table/schema.js +15 -6
  70. package/dist/runtime/components/ui/table-configurator/TableConfiguratorDialog.d.vue.ts +4 -0
  71. package/dist/runtime/components/ui/table-configurator/TableConfiguratorDialog.vue +2 -1
  72. package/dist/runtime/components/ui/table-configurator/TableConfiguratorDialog.vue.d.ts +4 -0
  73. package/dist/runtime/composables/useOverlay.d.ts +86 -0
  74. package/dist/runtime/composables/useOverlay.js +201 -0
  75. package/dist/runtime/layouts/default.d.vue.ts +2 -1
  76. package/dist/runtime/layouts/default.vue.d.ts +2 -1
  77. package/dist/runtime/plugins/overlay/index.d.ts +6 -0
  78. package/dist/runtime/plugins/overlay/index.js +12 -0
  79. package/dist/runtime/plugins/toast/index.d.ts +4 -4
  80. package/package.json +1 -1
@@ -7,7 +7,11 @@ import { computed, nextTick, ref, watch } from "vue";
7
7
  import { useI18n } from "vue-i18n";
8
8
  import { cn } from "../../../utils/cn";
9
9
  import { Button } from "../button";
10
- import { ButtonConfigC, ButtonsStyleC } from "../buttons/schema";
10
+ import {
11
+ ButtonBodyC,
12
+ ButtonConfigC,
13
+ ButtonsStyleC
14
+ } from "../buttons/schema";
11
15
  import { Checkbox } from "../checkbox";
12
16
  import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle } from "../dialog";
13
17
  import { IconPicker } from "../icon-picker";
@@ -492,15 +496,19 @@ function buildDraftConfig() {
492
496
  selectedItemId.value = "general";
493
497
  return;
494
498
  }
495
- const result = ButtonConfigC.safeParse({
499
+ const bodyResult = ButtonBodyC.safeParse({
496
500
  gap: draftGap.value,
497
501
  style: generalStyleResult.data,
498
502
  groups: materializeButtonConfiguratorTree(draftTree.value)
499
503
  });
500
- if (!result.success) {
504
+ if (!bodyResult.success) {
501
505
  return;
502
506
  }
503
- return result.data;
507
+ return ButtonConfigC.parse({
508
+ ...bodyResult.data,
509
+ kind: props.config.kind,
510
+ compatibilityDate: props.config.compatibilityDate
511
+ });
504
512
  }
505
513
  function getValidDraftConfig(errorMessage) {
506
514
  const config = buildDraftConfig();
@@ -24,6 +24,19 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
24
24
  icon?: string | undefined;
25
25
  variant?: "default" | "destructive" | "primary" | "ghost" | undefined;
26
26
  hideTitle?: boolean | undefined;
27
+ modal?: Readonly<{
28
+ title?: readonly {
29
+ locale: "zh" | "ja" | "en" | "ko";
30
+ message: string;
31
+ }[] | undefined;
32
+ description?: readonly {
33
+ locale: "zh" | "ja" | "en" | "ko";
34
+ message: string;
35
+ }[] | undefined;
36
+ showCloseButton?: boolean | undefined;
37
+ breakpoint?: string | undefined;
38
+ dismissible?: boolean | undefined;
39
+ }> | undefined;
27
40
  }> | Readonly<{
28
41
  id: string;
29
42
  title: readonly {
@@ -42,10 +55,25 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
42
55
  }[] | undefined;
43
56
  icon?: string | undefined;
44
57
  variant?: "default" | "destructive" | "primary" | "ghost" | undefined;
58
+ modal?: Readonly<{
59
+ title?: readonly {
60
+ locale: "zh" | "ja" | "en" | "ko";
61
+ message: string;
62
+ }[] | undefined;
63
+ description?: readonly {
64
+ locale: "zh" | "ja" | "en" | "ko";
65
+ message: string;
66
+ }[] | undefined;
67
+ showCloseButton?: boolean | undefined;
68
+ breakpoint?: string | undefined;
69
+ dismissible?: boolean | undefined;
70
+ }> | undefined;
45
71
  }>[];
46
72
  icon?: string | undefined;
47
73
  }>)[];
48
74
  }>[];
75
+ kind: string;
76
+ compatibilityDate: string;
49
77
  gap?: number | undefined;
50
78
  style?: string | undefined;
51
79
  }>) => any;
@@ -67,6 +95,19 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
67
95
  icon?: string | undefined;
68
96
  variant?: "default" | "destructive" | "primary" | "ghost" | undefined;
69
97
  hideTitle?: boolean | undefined;
98
+ modal?: Readonly<{
99
+ title?: readonly {
100
+ locale: "zh" | "ja" | "en" | "ko";
101
+ message: string;
102
+ }[] | undefined;
103
+ description?: readonly {
104
+ locale: "zh" | "ja" | "en" | "ko";
105
+ message: string;
106
+ }[] | undefined;
107
+ showCloseButton?: boolean | undefined;
108
+ breakpoint?: string | undefined;
109
+ dismissible?: boolean | undefined;
110
+ }> | undefined;
70
111
  }> | Readonly<{
71
112
  id: string;
72
113
  title: readonly {
@@ -85,10 +126,25 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
85
126
  }[] | undefined;
86
127
  icon?: string | undefined;
87
128
  variant?: "default" | "destructive" | "primary" | "ghost" | undefined;
129
+ modal?: Readonly<{
130
+ title?: readonly {
131
+ locale: "zh" | "ja" | "en" | "ko";
132
+ message: string;
133
+ }[] | undefined;
134
+ description?: readonly {
135
+ locale: "zh" | "ja" | "en" | "ko";
136
+ message: string;
137
+ }[] | undefined;
138
+ showCloseButton?: boolean | undefined;
139
+ breakpoint?: string | undefined;
140
+ dismissible?: boolean | undefined;
141
+ }> | undefined;
88
142
  }>[];
89
143
  icon?: string | undefined;
90
144
  }>)[];
91
145
  }>[];
146
+ kind: string;
147
+ compatibilityDate: string;
92
148
  gap?: number | undefined;
93
149
  style?: string | undefined;
94
150
  }>) => any) | undefined;
@@ -1,11 +1,12 @@
1
1
  import { Effect } from 'effect';
2
- import { type ButtonConfig } from './schema.js';
3
- export { ButtonActionC, ButtonConfigC, ButtonConfigInputC, ButtonDropdownC, ButtonGroupC, ButtonsStyleC } from './schema.js';
4
- export type { ButtonAction, ButtonConfig, ButtonConfigInput, ButtonDropdown, ButtonGroup, ButtonGroupItem } from './schema.js';
2
+ import { type ButtonConfigInput } from './schema.js';
3
+ export { ButtonActionC, ButtonConfigC, ButtonConfigInputC, ButtonDropdownC, ButtonGroupC, ButtonModalC, ButtonsStyleC } from './schema.js';
4
+ export { ButtonBodyC, ButtonBodyInputC, CURRENT_COMPATIBILITY_DATE, KIND, SUPPORTED_COMPATIBILITY_DATES, createButtonConfig, } from './schema.js';
5
+ export type { ButtonAction, ButtonBody, ButtonBodyInput, ButtonConfig, ButtonConfigInput, ButtonDropdown, ButtonDropdownAction, ButtonGroup, ButtonGroupItem, ButtonModal, } from './schema.js';
5
6
  declare const _default: typeof __VLS_export;
6
7
  export default _default;
7
8
  declare const __VLS_export: import("vue").DefineComponent<{
8
- config: Effect.Effect<ButtonConfig | import("./schema.js").ButtonConfigInput | undefined>;
9
+ config: Effect.Effect<ButtonConfigInput | undefined>;
9
10
  }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
11
  "update:config": (args_0: Readonly<{
11
12
  groups: readonly Readonly<{
@@ -23,6 +24,19 @@ declare const __VLS_export: import("vue").DefineComponent<{
23
24
  icon?: string | undefined;
24
25
  variant?: "default" | "destructive" | "primary" | "ghost" | undefined;
25
26
  hideTitle?: boolean | undefined;
27
+ modal?: Readonly<{
28
+ title?: readonly {
29
+ locale: "zh" | "ja" | "en" | "ko";
30
+ message: string;
31
+ }[] | undefined;
32
+ description?: readonly {
33
+ locale: "zh" | "ja" | "en" | "ko";
34
+ message: string;
35
+ }[] | undefined;
36
+ showCloseButton?: boolean | undefined;
37
+ breakpoint?: string | undefined;
38
+ dismissible?: boolean | undefined;
39
+ }> | undefined;
26
40
  }> | Readonly<{
27
41
  id: string;
28
42
  title: readonly {
@@ -41,15 +55,30 @@ declare const __VLS_export: import("vue").DefineComponent<{
41
55
  }[] | undefined;
42
56
  icon?: string | undefined;
43
57
  variant?: "default" | "destructive" | "primary" | "ghost" | undefined;
58
+ modal?: Readonly<{
59
+ title?: readonly {
60
+ locale: "zh" | "ja" | "en" | "ko";
61
+ message: string;
62
+ }[] | undefined;
63
+ description?: readonly {
64
+ locale: "zh" | "ja" | "en" | "ko";
65
+ message: string;
66
+ }[] | undefined;
67
+ showCloseButton?: boolean | undefined;
68
+ breakpoint?: string | undefined;
69
+ dismissible?: boolean | undefined;
70
+ }> | undefined;
44
71
  }>[];
45
72
  icon?: string | undefined;
46
73
  }>)[];
47
74
  }>[];
75
+ kind: string;
76
+ compatibilityDate: string;
48
77
  gap?: number | undefined;
49
78
  style?: string | undefined;
50
79
  }>) => any;
51
80
  }, string, import("vue").PublicProps, Readonly<{
52
- config: Effect.Effect<ButtonConfig | import("./schema.js").ButtonConfigInput | undefined>;
81
+ config: Effect.Effect<ButtonConfigInput | undefined>;
53
82
  }> & Readonly<{
54
83
  "onUpdate:config"?: ((args_0: Readonly<{
55
84
  groups: readonly Readonly<{
@@ -67,6 +96,19 @@ declare const __VLS_export: import("vue").DefineComponent<{
67
96
  icon?: string | undefined;
68
97
  variant?: "default" | "destructive" | "primary" | "ghost" | undefined;
69
98
  hideTitle?: boolean | undefined;
99
+ modal?: Readonly<{
100
+ title?: readonly {
101
+ locale: "zh" | "ja" | "en" | "ko";
102
+ message: string;
103
+ }[] | undefined;
104
+ description?: readonly {
105
+ locale: "zh" | "ja" | "en" | "ko";
106
+ message: string;
107
+ }[] | undefined;
108
+ showCloseButton?: boolean | undefined;
109
+ breakpoint?: string | undefined;
110
+ dismissible?: boolean | undefined;
111
+ }> | undefined;
70
112
  }> | Readonly<{
71
113
  id: string;
72
114
  title: readonly {
@@ -85,10 +127,25 @@ declare const __VLS_export: import("vue").DefineComponent<{
85
127
  }[] | undefined;
86
128
  icon?: string | undefined;
87
129
  variant?: "default" | "destructive" | "primary" | "ghost" | undefined;
130
+ modal?: Readonly<{
131
+ title?: readonly {
132
+ locale: "zh" | "ja" | "en" | "ko";
133
+ message: string;
134
+ }[] | undefined;
135
+ description?: readonly {
136
+ locale: "zh" | "ja" | "en" | "ko";
137
+ message: string;
138
+ }[] | undefined;
139
+ showCloseButton?: boolean | undefined;
140
+ breakpoint?: string | undefined;
141
+ dismissible?: boolean | undefined;
142
+ }> | undefined;
88
143
  }>[];
89
144
  icon?: string | undefined;
90
145
  }>)[];
91
146
  }>[];
147
+ kind: string;
148
+ compatibilityDate: string;
92
149
  gap?: number | undefined;
93
150
  style?: string | undefined;
94
151
  }>) => any) | undefined;
@@ -1,11 +1,12 @@
1
1
  <script setup>
2
2
  import { useNuxtApp } from "#app";
3
- import { useAttrs, computed, ref, watch } from "vue";
3
+ import { useAttrs, computed, onBeforeUnmount, ref, useSlots, watch } from "vue";
4
4
  import { computedAsync } from "@vueuse/core";
5
5
  import { Icon } from "@iconify/vue";
6
6
  import { Effect } from "effect";
7
7
  import { useI18n } from "vue-i18n";
8
8
  import { useCheating } from "#imports";
9
+ import { provideOverlay, useOverlay } from "../../../composables/useOverlay";
9
10
  import { getLocalizedText, hasVisibleLocaleValue } from "../../../utils/coders";
10
11
  import { cn } from "../../../utils/cn";
11
12
  import ButtonConfiguratorDialog from "../button-configurator/ButtonConfiguratorDialog.vue";
@@ -14,7 +15,10 @@ import { ButtonGroup } from "../button-group";
14
15
  import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from "../dropdown-menu";
15
16
  import { Skeleton } from "../skeleton";
16
17
  import { Tooltip, TooltipContent, TooltipTrigger } from "../tooltip";
17
- import { ButtonConfigC, normalizeButtonConfigInput } from "./schema";
18
+ import {
19
+ ButtonConfigC,
20
+ createButtonConfig
21
+ } from "./schema";
18
22
  defineOptions({
19
23
  inheritAttrs: false
20
24
  });
@@ -22,19 +26,22 @@ const props = defineProps({
22
26
  config: { type: null, required: true }
23
27
  });
24
28
  const emit = defineEmits(["update:config"]);
25
- const defaultConfig = {
29
+ const defaultConfig = createButtonConfig({
26
30
  gap: 4,
27
31
  groups: []
28
- };
32
+ });
29
33
  const uuidPattern = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/iu;
30
34
  const attrs = useAttrs();
35
+ const slots = useSlots();
31
36
  const { locale, t } = useI18n();
32
37
  const { $dsl } = useNuxtApp();
38
+ const overlay = useOverlay();
33
39
  const isCheating = useCheating();
34
40
  const isConfiguratorOpen = ref(false);
35
41
  const pendingIds = ref([]);
42
+ const overlayOwnerId = crypto.randomUUID();
36
43
  const currentConfig = computedAsync(
37
- async () => ButtonConfigC.parse(normalizeButtonConfigInput(await props.config.pipe(Effect.runPromise)))
44
+ async () => ButtonConfigC.parse(await props.config.pipe(Effect.runPromise) ?? defaultConfig)
38
45
  );
39
46
  const displayConfig = ref(defaultConfig);
40
47
  watch(currentConfig, (value) => {
@@ -42,6 +49,43 @@ watch(currentConfig, (value) => {
42
49
  displayConfig.value = value;
43
50
  }
44
51
  }, { immediate: true });
52
+ const modalDefinitions = computed(() => {
53
+ const nextDefinitions = [];
54
+ for (const group of displayConfig.value.groups) {
55
+ for (const item of group.items) {
56
+ if (isDropdownItem(item)) {
57
+ for (const child of item.items) {
58
+ const render2 = slots[child.id];
59
+ if (render2) {
60
+ nextDefinitions.push({
61
+ definitionId: child.id,
62
+ ownerId: overlayOwnerId,
63
+ render: render2,
64
+ shell: getModalShell(child.modal)
65
+ });
66
+ }
67
+ }
68
+ continue;
69
+ }
70
+ const render = slots[item.id];
71
+ if (render) {
72
+ nextDefinitions.push({
73
+ definitionId: item.id,
74
+ ownerId: overlayOwnerId,
75
+ render,
76
+ shell: getModalShell(item.modal)
77
+ });
78
+ }
79
+ }
80
+ }
81
+ return nextDefinitions;
82
+ });
83
+ watch(modalDefinitions, (definitions) => {
84
+ overlay.syncDefinitions(overlayOwnerId, definitions);
85
+ }, { immediate: true });
86
+ onBeforeUnmount(() => {
87
+ overlay.syncDefinitions(overlayOwnerId, []);
88
+ });
45
89
  const actionIds = computed(() => displayConfig.value.groups.flatMap((group) => group.items.flatMap((item) => {
46
90
  if ("items" in item) {
47
91
  return item.items.map((child) => child.id);
@@ -92,6 +136,18 @@ function getDropdownLabel(dropdown) {
92
136
  function getButtonTooltip(button) {
93
137
  return getLocalizedText(button.tooltip, locale.value);
94
138
  }
139
+ function getModalShell(modal) {
140
+ if (!modal) {
141
+ return void 0;
142
+ }
143
+ return {
144
+ title: getLocalizedText(modal.title, locale.value),
145
+ description: getLocalizedText(modal.description, locale.value),
146
+ showCloseButton: modal.showCloseButton,
147
+ breakpoint: modal.breakpoint,
148
+ dismissible: modal.dismissible
149
+ };
150
+ }
95
151
  function getButtonEffect(buttonId) {
96
152
  return Reflect.get(attrs, buttonId);
97
153
  }
@@ -120,7 +176,7 @@ async function runButton(buttonId) {
120
176
  }
121
177
  pendingIds.value = [...pendingIds.value, buttonId];
122
178
  try {
123
- await Effect.runPromise(Effect.scoped(effect));
179
+ await Effect.runPromise(provideOverlay(Effect.scoped(effect), overlay));
124
180
  } finally {
125
181
  pendingIds.value = pendingIds.value.filter((id) => id !== buttonId);
126
182
  }
@@ -146,7 +202,15 @@ function hasLeadingPrimaryGap(items, itemIndex) {
146
202
  </script>
147
203
 
148
204
  <script>
149
- export { ButtonActionC, ButtonConfigC, ButtonConfigInputC, ButtonDropdownC, ButtonGroupC, ButtonsStyleC } from "./schema";
205
+ export { ButtonActionC, ButtonConfigC, ButtonConfigInputC, ButtonDropdownC, ButtonGroupC, ButtonModalC, ButtonsStyleC } from "./schema";
206
+ export {
207
+ ButtonBodyC,
208
+ ButtonBodyInputC,
209
+ CURRENT_COMPATIBILITY_DATE,
210
+ KIND,
211
+ SUPPORTED_COMPATIBILITY_DATES,
212
+ createButtonConfig
213
+ } from "./schema";
150
214
  </script>
151
215
 
152
216
  <template>
@@ -1,11 +1,12 @@
1
1
  import { Effect } from 'effect';
2
- import { type ButtonConfig } from './schema.js';
3
- export { ButtonActionC, ButtonConfigC, ButtonConfigInputC, ButtonDropdownC, ButtonGroupC, ButtonsStyleC } from './schema.js';
4
- export type { ButtonAction, ButtonConfig, ButtonConfigInput, ButtonDropdown, ButtonGroup, ButtonGroupItem } from './schema.js';
2
+ import { type ButtonConfigInput } from './schema.js';
3
+ export { ButtonActionC, ButtonConfigC, ButtonConfigInputC, ButtonDropdownC, ButtonGroupC, ButtonModalC, ButtonsStyleC } from './schema.js';
4
+ export { ButtonBodyC, ButtonBodyInputC, CURRENT_COMPATIBILITY_DATE, KIND, SUPPORTED_COMPATIBILITY_DATES, createButtonConfig, } from './schema.js';
5
+ export type { ButtonAction, ButtonBody, ButtonBodyInput, ButtonConfig, ButtonConfigInput, ButtonDropdown, ButtonDropdownAction, ButtonGroup, ButtonGroupItem, ButtonModal, } from './schema.js';
5
6
  declare const _default: typeof __VLS_export;
6
7
  export default _default;
7
8
  declare const __VLS_export: import("vue").DefineComponent<{
8
- config: Effect.Effect<ButtonConfig | import("./schema.js").ButtonConfigInput | undefined>;
9
+ config: Effect.Effect<ButtonConfigInput | undefined>;
9
10
  }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
11
  "update:config": (args_0: Readonly<{
11
12
  groups: readonly Readonly<{
@@ -23,6 +24,19 @@ declare const __VLS_export: import("vue").DefineComponent<{
23
24
  icon?: string | undefined;
24
25
  variant?: "default" | "destructive" | "primary" | "ghost" | undefined;
25
26
  hideTitle?: boolean | undefined;
27
+ modal?: Readonly<{
28
+ title?: readonly {
29
+ locale: "zh" | "ja" | "en" | "ko";
30
+ message: string;
31
+ }[] | undefined;
32
+ description?: readonly {
33
+ locale: "zh" | "ja" | "en" | "ko";
34
+ message: string;
35
+ }[] | undefined;
36
+ showCloseButton?: boolean | undefined;
37
+ breakpoint?: string | undefined;
38
+ dismissible?: boolean | undefined;
39
+ }> | undefined;
26
40
  }> | Readonly<{
27
41
  id: string;
28
42
  title: readonly {
@@ -41,15 +55,30 @@ declare const __VLS_export: import("vue").DefineComponent<{
41
55
  }[] | undefined;
42
56
  icon?: string | undefined;
43
57
  variant?: "default" | "destructive" | "primary" | "ghost" | undefined;
58
+ modal?: Readonly<{
59
+ title?: readonly {
60
+ locale: "zh" | "ja" | "en" | "ko";
61
+ message: string;
62
+ }[] | undefined;
63
+ description?: readonly {
64
+ locale: "zh" | "ja" | "en" | "ko";
65
+ message: string;
66
+ }[] | undefined;
67
+ showCloseButton?: boolean | undefined;
68
+ breakpoint?: string | undefined;
69
+ dismissible?: boolean | undefined;
70
+ }> | undefined;
44
71
  }>[];
45
72
  icon?: string | undefined;
46
73
  }>)[];
47
74
  }>[];
75
+ kind: string;
76
+ compatibilityDate: string;
48
77
  gap?: number | undefined;
49
78
  style?: string | undefined;
50
79
  }>) => any;
51
80
  }, string, import("vue").PublicProps, Readonly<{
52
- config: Effect.Effect<ButtonConfig | import("./schema.js").ButtonConfigInput | undefined>;
81
+ config: Effect.Effect<ButtonConfigInput | undefined>;
53
82
  }> & Readonly<{
54
83
  "onUpdate:config"?: ((args_0: Readonly<{
55
84
  groups: readonly Readonly<{
@@ -67,6 +96,19 @@ declare const __VLS_export: import("vue").DefineComponent<{
67
96
  icon?: string | undefined;
68
97
  variant?: "default" | "destructive" | "primary" | "ghost" | undefined;
69
98
  hideTitle?: boolean | undefined;
99
+ modal?: Readonly<{
100
+ title?: readonly {
101
+ locale: "zh" | "ja" | "en" | "ko";
102
+ message: string;
103
+ }[] | undefined;
104
+ description?: readonly {
105
+ locale: "zh" | "ja" | "en" | "ko";
106
+ message: string;
107
+ }[] | undefined;
108
+ showCloseButton?: boolean | undefined;
109
+ breakpoint?: string | undefined;
110
+ dismissible?: boolean | undefined;
111
+ }> | undefined;
70
112
  }> | Readonly<{
71
113
  id: string;
72
114
  title: readonly {
@@ -85,10 +127,25 @@ declare const __VLS_export: import("vue").DefineComponent<{
85
127
  }[] | undefined;
86
128
  icon?: string | undefined;
87
129
  variant?: "default" | "destructive" | "primary" | "ghost" | undefined;
130
+ modal?: Readonly<{
131
+ title?: readonly {
132
+ locale: "zh" | "ja" | "en" | "ko";
133
+ message: string;
134
+ }[] | undefined;
135
+ description?: readonly {
136
+ locale: "zh" | "ja" | "en" | "ko";
137
+ message: string;
138
+ }[] | undefined;
139
+ showCloseButton?: boolean | undefined;
140
+ breakpoint?: string | undefined;
141
+ dismissible?: boolean | undefined;
142
+ }> | undefined;
88
143
  }>[];
89
144
  icon?: string | undefined;
90
145
  }>)[];
91
146
  }>[];
147
+ kind: string;
148
+ compatibilityDate: string;
92
149
  gap?: number | undefined;
93
150
  style?: string | undefined;
94
151
  }>) => any) | undefined;