@byyuurin/ui 0.0.9 → 0.0.10

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 (91) hide show
  1. package/README.md +0 -3
  2. package/dist/module.json +1 -1
  3. package/dist/module.mjs +1 -1
  4. package/dist/runtime/app/injections.d.ts +9299 -3
  5. package/dist/runtime/app/injections.js +35 -0
  6. package/dist/runtime/components/Accordion.vue +16 -20
  7. package/dist/runtime/components/Alert.vue +1 -1
  8. package/dist/runtime/components/Badge.vue +1 -1
  9. package/dist/runtime/components/Breadcrumb.vue +17 -21
  10. package/dist/runtime/components/Calendar.vue +15 -6
  11. package/dist/runtime/components/Carousel.vue +5 -3
  12. package/dist/runtime/components/Checkbox.vue +12 -7
  13. package/dist/runtime/components/Drawer.vue +12 -12
  14. package/dist/runtime/components/DropdownMenu.vue +143 -0
  15. package/dist/runtime/components/DropdownMenuContent.vue +188 -0
  16. package/dist/runtime/components/Form.vue +311 -0
  17. package/dist/runtime/components/FormItem.vue +129 -0
  18. package/dist/runtime/components/Input.vue +27 -13
  19. package/dist/runtime/components/InputNumber.vue +22 -14
  20. package/dist/runtime/components/Link.vue +17 -2
  21. package/dist/runtime/components/Modal.vue +11 -11
  22. package/dist/runtime/components/PinInput.vue +22 -13
  23. package/dist/runtime/components/Popover.vue +3 -3
  24. package/dist/runtime/components/RadioGroup.vue +50 -46
  25. package/dist/runtime/components/Select.vue +90 -80
  26. package/dist/runtime/components/Slider.vue +12 -7
  27. package/dist/runtime/components/Switch.vue +12 -6
  28. package/dist/runtime/components/Table.vue +21 -8
  29. package/dist/runtime/components/Tabs.vue +12 -11
  30. package/dist/runtime/components/Textarea.vue +19 -13
  31. package/dist/runtime/components/Toast.vue +6 -3
  32. package/dist/runtime/components/Tooltip.vue +3 -3
  33. package/dist/runtime/composables/useFormItem.d.ts +27 -0
  34. package/dist/runtime/composables/useFormItem.js +64 -0
  35. package/dist/runtime/composables/useTheme.js +2 -1
  36. package/dist/runtime/index.d.ts +3 -0
  37. package/dist/runtime/index.js +3 -0
  38. package/dist/runtime/theme/app.d.ts +1 -0
  39. package/dist/runtime/theme/app.js +2 -1
  40. package/dist/runtime/theme/badge.d.ts +21 -45
  41. package/dist/runtime/theme/breadcrumb.d.ts +3 -3
  42. package/dist/runtime/theme/button.d.ts +111 -57
  43. package/dist/runtime/theme/calendar.d.ts +2 -2
  44. package/dist/runtime/theme/chip.d.ts +11 -44
  45. package/dist/runtime/theme/drawer.d.ts +68 -33
  46. package/dist/runtime/theme/dropdown-menu.d.ts +71 -0
  47. package/dist/runtime/theme/dropdown-menu.js +83 -0
  48. package/dist/runtime/theme/form-item.d.ts +76 -0
  49. package/dist/runtime/theme/form-item.js +34 -0
  50. package/dist/runtime/theme/form.d.ts +8 -0
  51. package/dist/runtime/theme/form.js +7 -0
  52. package/dist/runtime/theme/index.d.ts +3 -0
  53. package/dist/runtime/theme/index.js +3 -0
  54. package/dist/runtime/theme/input-number.d.ts +41 -61
  55. package/dist/runtime/theme/input.d.ts +99 -71
  56. package/dist/runtime/theme/input.js +2 -2
  57. package/dist/runtime/theme/modal.d.ts +5 -33
  58. package/dist/runtime/theme/pinInput.d.ts +42 -42
  59. package/dist/runtime/theme/pinInput.js +1 -1
  60. package/dist/runtime/theme/progress.d.ts +117 -53
  61. package/dist/runtime/theme/select.d.ts +100 -84
  62. package/dist/runtime/theme/select.js +2 -1
  63. package/dist/runtime/theme/separator.d.ts +13 -28
  64. package/dist/runtime/theme/table.d.ts +3 -0
  65. package/dist/runtime/theme/table.js +2 -1
  66. package/dist/runtime/theme/tabs.d.ts +51 -68
  67. package/dist/runtime/theme/textarea.d.ts +37 -43
  68. package/dist/runtime/theme/textarea.js +1 -1
  69. package/dist/runtime/theme/toast-provider.d.ts +26 -41
  70. package/dist/runtime/types/components.d.ts +3 -0
  71. package/dist/runtime/types/form.d.ts +45 -0
  72. package/dist/runtime/types/form.js +0 -0
  73. package/dist/runtime/types/index.d.ts +5 -2
  74. package/dist/runtime/types/index.js +1 -0
  75. package/dist/runtime/types/utils.d.ts +32 -11
  76. package/dist/runtime/utils/extend-theme.js +15 -4
  77. package/dist/runtime/utils/form.d.ts +5 -0
  78. package/dist/runtime/utils/form.js +24 -0
  79. package/dist/runtime/utils/index.d.ts +2 -0
  80. package/dist/runtime/utils/index.js +4 -0
  81. package/dist/runtime/utils/link.d.ts +4 -26
  82. package/dist/runtime/utils/link.js +10 -3
  83. package/dist/shared/ui.3e7fad19.mjs +5 -0
  84. package/dist/shared/ui.3e7fad19.mjs.map +1 -0
  85. package/dist/unocss.mjs +2 -2
  86. package/dist/unocss.mjs.map +1 -1
  87. package/dist/unplugin.mjs +1 -1
  88. package/dist/vite.mjs +1 -1
  89. package/package.json +16 -14
  90. package/dist/shared/ui.1a1f119c.mjs +0 -5
  91. package/dist/shared/ui.1a1f119c.mjs.map +0 -1
@@ -11,7 +11,7 @@ export interface ToastSlots {
11
11
  title?: (props?: {}) => any
12
12
  description?: (props?: {}) => any
13
13
  actions?: (props?: {}) => any
14
- close?: (props: { ui: any }) => any
14
+ close?: (props: { ui: ComponentAttrs<typeof toast>['ui'] }) => any
15
15
  }
16
16
 
17
17
  type ToastVariants = VariantProps<typeof toast>
@@ -105,7 +105,10 @@ defineExpose({
105
105
  </div>
106
106
  </div>
107
107
 
108
- <div v-if="(props.orientation === 'horizontal' && actions?.length) || props.close || slots.close" :class="style.actions({ class: props.ui?.actions })">
108
+ <div
109
+ v-if="(props.orientation === 'horizontal' && actions?.length) || props.close || slots.close"
110
+ :class="style.actions({ class: props.ui?.actions })"
111
+ >
109
112
  <template v-if="props.orientation === 'horizontal'">
110
113
  <slot name="actions">
111
114
  <ToastAction v-for="(action, index) in props.actions" :key="index" :alt-text="action.label || 'Action'" as-child @click.stop>
@@ -115,7 +118,7 @@ defineExpose({
115
118
  </template>
116
119
 
117
120
  <ToastClose v-if="props.close || slots.close" as-child>
118
- <slot name="close" :ui="ui">
121
+ <slot name="close" :ui="props.ui">
119
122
  <Button
120
123
  :icon="props.closeIcon || theme.app.icons.close"
121
124
  size="sm"
@@ -1,7 +1,7 @@
1
1
  <script lang="ts">
2
- import type { TooltipArrowProps, TooltipContentProps, TooltipRootEmits, TooltipRootProps } from 'reka-ui'
2
+ import type { TooltipArrowProps, TooltipContentEmits, TooltipContentProps, TooltipRootEmits, TooltipRootProps } from 'reka-ui'
3
3
  import type { tooltip } from '../theme'
4
- import type { ComponentAttrs } from '../types'
4
+ import type { ComponentAttrs, EmitsToProps } from '../types'
5
5
 
6
6
  export interface TooltipEmits extends TooltipRootEmits {}
7
7
 
@@ -12,7 +12,7 @@ export interface TooltipSlots {
12
12
 
13
13
  export interface TooltipProps extends ComponentAttrs<typeof tooltip>, TooltipRootProps {
14
14
  text?: string
15
- content?: Omit<TooltipContentProps, 'as' | 'asChild'>
15
+ content?: Omit<TooltipContentProps, 'as' | 'asChild'> & Partial<EmitsToProps<TooltipContentEmits>>
16
16
  arrow?: boolean | Omit<TooltipArrowProps, 'as' | 'asChild'>
17
17
  /** @default true */
18
18
  portal?: boolean
@@ -0,0 +1,27 @@
1
+ import type { GetObjectField } from '../types/index.js';
2
+ interface Props<T> {
3
+ id?: string;
4
+ name?: string;
5
+ size?: GetObjectField<T, 'size'>;
6
+ highlight?: boolean;
7
+ disabled?: boolean;
8
+ }
9
+ export declare function useFormItem<T>(props?: Props<T>, options?: {
10
+ bind?: boolean;
11
+ deferInputValidation?: boolean;
12
+ }): {
13
+ id: import("vue").ComputedRef<string | undefined>;
14
+ name: import("vue").ComputedRef<string | undefined>;
15
+ size: import("vue").ComputedRef<any>;
16
+ highlight: import("vue").ComputedRef<boolean | undefined>;
17
+ disabled: import("vue").ComputedRef<boolean | undefined>;
18
+ emitFormBlur: () => void;
19
+ emitFormInput: import("@vueuse/core").PromisifyFn<() => void>;
20
+ emitFormChange: () => void;
21
+ emitFormFocus: () => void;
22
+ ariaAttrs: import("vue").ComputedRef<{
23
+ 'aria-describedby': string;
24
+ 'aria-invalid': boolean;
25
+ } | undefined>;
26
+ };
27
+ export {};
@@ -0,0 +1,64 @@
1
+ import { useDebounceFn } from "@vueuse/core";
2
+ import { computed } from "vue";
3
+ import {
4
+ injectFormBus,
5
+ injectFormInputId,
6
+ injectFormInputs,
7
+ injectFormItem,
8
+ injectFormOptions
9
+ } from "../app/injections.js";
10
+ export function useFormItem(props, options) {
11
+ const formOptions = injectFormOptions();
12
+ const formBus = injectFormBus();
13
+ const formItem = injectFormItem();
14
+ const formInputs = injectFormInputs();
15
+ const inputId = injectFormInputId();
16
+ if (formItem && inputId) {
17
+ if (options?.bind === false) {
18
+ inputId.value = void 0;
19
+ } else if (props?.id) {
20
+ inputId.value = props?.id;
21
+ }
22
+ if (formInputs && formItem.value.name && inputId.value)
23
+ formInputs.value[formItem.value.name] = { id: inputId.value, pattern: formItem.value.errorPattern };
24
+ }
25
+ function emitFormEvent(type, name, eager) {
26
+ if (formBus && formItem && name)
27
+ formBus.emit({ type, name, eager });
28
+ }
29
+ function emitFormBlur() {
30
+ emitFormEvent("blur", formItem?.value.name);
31
+ }
32
+ function emitFormFocus() {
33
+ emitFormEvent("focus", formItem?.value.name);
34
+ }
35
+ function emitFormChange() {
36
+ emitFormEvent("change", formItem?.value.name);
37
+ }
38
+ const emitFormInput = useDebounceFn(
39
+ () => {
40
+ emitFormEvent("input", formItem?.value.name, !options?.deferInputValidation || formItem?.value.eagerValidation);
41
+ },
42
+ formItem?.value.validateOnInputDelay ?? formOptions?.value.validateOnInputDelay ?? 0
43
+ );
44
+ return {
45
+ id: computed(() => props?.id ?? inputId?.value),
46
+ name: computed(() => props?.name ?? formItem?.value.name),
47
+ size: computed(() => props?.size ?? formItem?.value.size),
48
+ highlight: computed(() => formItem?.value.error ? true : props?.highlight),
49
+ disabled: computed(() => formOptions?.value.disabled || props?.disabled),
50
+ emitFormBlur,
51
+ emitFormInput,
52
+ emitFormChange,
53
+ emitFormFocus,
54
+ ariaAttrs: computed(() => {
55
+ if (!formItem?.value)
56
+ return;
57
+ const descriptiveAttrs = ["error", "hint", "help", "description"].filter((type) => formItem?.value?.[type]).map((type) => `${formItem?.value.ariaId}-${type}`) || [];
58
+ return {
59
+ "aria-describedby": descriptiveAttrs.join(" "),
60
+ "aria-invalid": !!formItem?.value.error
61
+ };
62
+ })
63
+ };
64
+ }
@@ -9,7 +9,8 @@ export const useTheme = createSharedComposable(() => {
9
9
  const unoConfig = injectUnoConfig();
10
10
  const mergeRules = transformUnoRules(toValue(unoConfig));
11
11
  const { createStyler } = prepareStyler(mergeRules);
12
- const theme = computed(() => extendTheme(toValue(themeExtension), uiTheme));
12
+ const themeDefaults = JSON.parse(JSON.stringify(uiTheme));
13
+ const theme = computed(() => extendTheme(toValue(themeExtension), themeDefaults));
13
14
  function generateStyle(name, props) {
14
15
  const styler = createStyler(theme.value[name]);
15
16
  return styler(props);
@@ -14,6 +14,9 @@ export { default as Checkbox } from './components/Checkbox.vue.js';
14
14
  export { default as Chip } from './components/Chip.vue.js';
15
15
  export { default as Collapsible } from './components/Collapsible.vue.js';
16
16
  export { default as Drawer } from './components/Drawer.vue.js';
17
+ export { default as DropdownMenu } from './components/DropdownMenu.vue.js';
18
+ export { default as Form } from './components/Form.vue.js';
19
+ export { default as FormItem } from './components/FormItem.vue.js';
17
20
  export { default as Input } from './components/Input.vue.js';
18
21
  export { default as InputNumber } from './components/InputNumber.vue.js';
19
22
  export { default as Kbd } from './components/Kbd.vue.js';
@@ -14,6 +14,9 @@ export { default as Checkbox } from "./components/Checkbox.vue";
14
14
  export { default as Chip } from "./components/Chip.vue";
15
15
  export { default as Collapsible } from "./components/Collapsible.vue";
16
16
  export { default as Drawer } from "./components/Drawer.vue";
17
+ export { default as DropdownMenu } from "./components/DropdownMenu.vue";
18
+ export { default as Form } from "./components/Form.vue";
19
+ export { default as FormItem } from "./components/FormItem.vue";
17
20
  export { default as Input } from "./components/Input.vue";
18
21
  export { default as InputNumber } from "./components/InputNumber.vue";
19
22
  export { default as Kbd } from "./components/Kbd.vue";
@@ -13,6 +13,7 @@ declare const _default: {
13
13
  ellipsis: string;
14
14
  plus: string;
15
15
  minus: string;
16
+ external: string;
16
17
  };
17
18
  };
18
19
  export default _default;
@@ -13,6 +13,7 @@ export default {
13
13
  chevronDoubleRight: "i-mdi-chevron-double-right",
14
14
  ellipsis: "i-mdi-dots-horizontal",
15
15
  plus: "i-mdi-plus",
16
- minus: "i-mdi-minus"
16
+ minus: "i-mdi-minus",
17
+ external: "i-mdi-arrow-top-right"
17
18
  }
18
19
  };
@@ -50,55 +50,31 @@ declare const _default: {
50
50
  };
51
51
  };
52
52
  };
53
- compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{
54
- size: {
55
- xs: {
56
- root: string;
57
- };
58
- sm: {
59
- root: string;
60
- };
61
- md: {
62
- root: string;
63
- };
64
- lg: {
65
- root: string;
66
- };
67
- xl: {
68
- root: string;
69
- };
70
- };
71
- position: {
72
- 'top-right': {
73
- base: string;
74
- };
75
- 'bottom-right': {
76
- base: string;
77
- };
78
- 'top-left': {
79
- base: string;
80
- };
81
- 'bottom-left': {
82
- base: string;
83
- };
53
+ compoundVariants: ({
54
+ position: "top-right";
55
+ inset: false;
56
+ class: {
57
+ base: string;
84
58
  };
85
- show: {
86
- true: {
87
- base: string;
88
- };
59
+ } | {
60
+ position: "bottom-right";
61
+ inset: false;
62
+ class: {
63
+ base: string;
89
64
  };
90
- inset: {
91
- true: "";
65
+ } | {
66
+ position: "top-left";
67
+ inset: false;
68
+ class: {
69
+ base: string;
92
70
  };
93
- standalone: {
94
- false: {
95
- base: string;
96
- };
71
+ } | {
72
+ position: "bottom-left";
73
+ inset: false;
74
+ class: {
75
+ base: string;
97
76
  };
98
- }, {
99
- root: string;
100
- base: string[];
101
- }, undefined>;
77
+ })[];
102
78
  defaultVariants: {
103
79
  size: "md";
104
80
  };
@@ -29,9 +29,9 @@ declare const _default: {
29
29
  };
30
30
  };
31
31
  compoundVariants: {
32
- disabled: boolean;
33
- active: boolean;
34
- to: boolean;
32
+ disabled: false;
33
+ active: false;
34
+ to: true;
35
35
  class: {
36
36
  link: string;
37
37
  };
@@ -65,70 +65,124 @@ declare const _default: {
65
65
  };
66
66
  };
67
67
  };
68
- compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{
69
- variant: {
70
- solid: {
71
- base: string[];
72
- };
73
- outline: {
74
- base: string[];
75
- };
76
- soft: {
77
- base: string[];
78
- };
79
- 'soft-outline': {
80
- base: string[];
81
- };
82
- ghost: {
83
- base: string[];
84
- };
85
- link: {
86
- base: string[];
87
- };
68
+ compoundVariants: ({
69
+ size: ("xs" | "sm" | "md")[];
70
+ class: {
71
+ base: string;
72
+ label: string;
73
+ leadingIcon?: undefined;
74
+ trailingIcon?: undefined;
88
75
  };
89
- size: {
90
- xs: {
91
- base: string;
92
- };
93
- sm: {
94
- base: string;
95
- };
96
- md: {
97
- base: string;
98
- };
99
- lg: {
100
- base: string;
101
- };
102
- xl: {
103
- base: string;
104
- };
76
+ active?: undefined;
77
+ variant?: undefined;
78
+ loading?: undefined;
79
+ leading?: undefined;
80
+ trailing?: undefined;
81
+ } | {
82
+ size: ("lg" | "xl")[];
83
+ class: {
84
+ base: string;
85
+ label: string;
86
+ leadingIcon?: undefined;
87
+ trailingIcon?: undefined;
105
88
  };
106
- active: {
107
- true: "";
89
+ active?: undefined;
90
+ variant?: undefined;
91
+ loading?: undefined;
92
+ leading?: undefined;
93
+ trailing?: undefined;
94
+ } | {
95
+ active: true;
96
+ variant: "solid";
97
+ class: {
98
+ base: string;
99
+ label?: undefined;
100
+ leadingIcon?: undefined;
101
+ trailingIcon?: undefined;
108
102
  };
109
- leading: {
110
- true: "";
103
+ size?: undefined;
104
+ loading?: undefined;
105
+ leading?: undefined;
106
+ trailing?: undefined;
107
+ } | {
108
+ active: true;
109
+ variant: "outline";
110
+ class: {
111
+ base: string;
112
+ label?: undefined;
113
+ leadingIcon?: undefined;
114
+ trailingIcon?: undefined;
111
115
  };
112
- trailing: {
113
- true: "";
116
+ size?: undefined;
117
+ loading?: undefined;
118
+ leading?: undefined;
119
+ trailing?: undefined;
120
+ } | {
121
+ active: true;
122
+ variant: ("soft" | "soft-outline")[];
123
+ class: {
124
+ base: string;
125
+ label?: undefined;
126
+ leadingIcon?: undefined;
127
+ trailingIcon?: undefined;
114
128
  };
115
- loading: {
116
- true: "";
129
+ size?: undefined;
130
+ loading?: undefined;
131
+ leading?: undefined;
132
+ trailing?: undefined;
133
+ } | {
134
+ active: true;
135
+ variant: "ghost";
136
+ class: {
137
+ base: string;
138
+ label?: undefined;
139
+ leadingIcon?: undefined;
140
+ trailingIcon?: undefined;
117
141
  };
118
- groupOrientation: {
119
- horizontal: {
120
- base: string;
121
- };
122
- vertical: {
123
- base: string;
124
- };
142
+ size?: undefined;
143
+ loading?: undefined;
144
+ leading?: undefined;
145
+ trailing?: undefined;
146
+ } | {
147
+ active: true;
148
+ variant: "link";
149
+ class: {
150
+ base: string;
151
+ label?: undefined;
152
+ leadingIcon?: undefined;
153
+ trailingIcon?: undefined;
125
154
  };
126
- }, {
127
- base: string[];
128
- label: string;
129
- leadingIcon: string;
130
- trailingIcon: string;
131
- }, undefined>;
155
+ size?: undefined;
156
+ loading?: undefined;
157
+ leading?: undefined;
158
+ trailing?: undefined;
159
+ } | {
160
+ loading: true;
161
+ leading: true;
162
+ class: {
163
+ leadingIcon: string;
164
+ base?: undefined;
165
+ label?: undefined;
166
+ trailingIcon?: undefined;
167
+ };
168
+ size?: undefined;
169
+ active?: undefined;
170
+ variant?: undefined;
171
+ trailing?: undefined;
172
+ } | {
173
+ loading: true;
174
+ leading: false;
175
+ trailing: true;
176
+ class: {
177
+ trailingIcon: string;
178
+ base?: undefined;
179
+ label?: undefined;
180
+ leadingIcon?: undefined;
181
+ };
182
+ size?: undefined;
183
+ active?: undefined;
184
+ variant?: undefined;
185
+ })[];
132
186
  defaultVariants: {
133
187
  size: "md";
134
188
  };
@@ -43,8 +43,8 @@ declare const _default: {
43
43
  };
44
44
  };
45
45
  compoundVariants: {
46
- readonly: boolean;
47
- disabled: boolean;
46
+ readonly: false;
47
+ disabled: false;
48
48
  class: {
49
49
  cellTrigger: string;
50
50
  };
@@ -47,52 +47,19 @@ declare const _default: {
47
47
  };
48
48
  };
49
49
  };
50
- compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{
51
- variant: {
52
- solid: {
53
- base: string;
54
- };
55
- outline: {
56
- base: string;
57
- };
58
- soft: {
59
- base: string;
60
- };
61
- 'soft-outline': {
62
- base: string;
63
- };
50
+ compoundVariants: ({
51
+ size: ("xs" | "sm" | "md")[];
52
+ class: {
53
+ base: string;
54
+ label: string;
64
55
  };
65
- size: {
66
- xs: {
67
- base: string;
68
- };
69
- sm: {
70
- base: string;
71
- };
72
- md: {
73
- base: string;
74
- };
75
- lg: {
76
- base: string;
77
- };
78
- xl: {
79
- base: string;
80
- };
81
- };
82
- groupOrientation: {
83
- horizontal: {
84
- base: string;
85
- };
86
- vertical: {
87
- base: string;
88
- };
56
+ } | {
57
+ size: ("lg" | "xl")[];
58
+ class: {
59
+ base: string;
60
+ label: string;
89
61
  };
90
- }, {
91
- base: string;
92
- label: string;
93
- leadingIcon: string;
94
- trailingIcon: string;
95
- }, undefined>;
62
+ })[];
96
63
  defaultVariants: {
97
64
  size: "md";
98
65
  };
@@ -37,42 +37,77 @@ declare const _default: {
37
37
  };
38
38
  };
39
39
  };
40
- compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{
41
- direction: {
42
- top: {
43
- content: string;
44
- };
45
- bottom: {
46
- content: string;
47
- };
48
- left: {
49
- content: string;
50
- };
51
- right: {
52
- content: string;
53
- };
40
+ compoundVariants: ({
41
+ direction: ("top" | "bottom")[];
42
+ class: {
43
+ content: string;
54
44
  };
55
- transition: {
56
- true: {
57
- overlay: string;
58
- };
45
+ inset?: undefined;
46
+ transition?: undefined;
47
+ } | {
48
+ direction: ("left" | "right")[];
49
+ class: {
50
+ content: string;
59
51
  };
60
- inset: {
61
- true: {
62
- content: string;
63
- };
52
+ inset?: undefined;
53
+ transition?: undefined;
54
+ } | {
55
+ direction: "top"[];
56
+ inset: true;
57
+ class: {
58
+ content: string;
64
59
  };
65
- }, {
66
- overlay: string;
67
- content: string;
68
- container: string;
69
- header: string;
70
- body: string;
71
- footer: string;
72
- title: string;
73
- description: string;
74
- close: string;
75
- }, undefined>;
60
+ transition?: undefined;
61
+ } | {
62
+ direction: "top"[];
63
+ transition: true;
64
+ class: {
65
+ content: string;
66
+ };
67
+ inset?: undefined;
68
+ } | {
69
+ direction: "bottom"[];
70
+ inset: true;
71
+ class: {
72
+ content: string;
73
+ };
74
+ transition?: undefined;
75
+ } | {
76
+ direction: "bottom"[];
77
+ transition: true;
78
+ class: {
79
+ content: string;
80
+ };
81
+ inset?: undefined;
82
+ } | {
83
+ direction: "left"[];
84
+ inset: true;
85
+ class: {
86
+ content: string;
87
+ };
88
+ transition?: undefined;
89
+ } | {
90
+ direction: "left"[];
91
+ transition: true;
92
+ class: {
93
+ content: string;
94
+ };
95
+ inset?: undefined;
96
+ } | {
97
+ direction: "right"[];
98
+ inset: true;
99
+ class: {
100
+ content: string;
101
+ };
102
+ transition?: undefined;
103
+ } | {
104
+ direction: "right"[];
105
+ transition: true;
106
+ class: {
107
+ content: string;
108
+ };
109
+ inset?: undefined;
110
+ })[];
76
111
  defaultVariants: import("@byyuurin/ui-kit").CVDefaultVariants<{
77
112
  direction: {
78
113
  top: {