@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.
- package/README.md +0 -3
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/app/injections.d.ts +9299 -3
- package/dist/runtime/app/injections.js +35 -0
- package/dist/runtime/components/Accordion.vue +16 -20
- package/dist/runtime/components/Alert.vue +1 -1
- package/dist/runtime/components/Badge.vue +1 -1
- package/dist/runtime/components/Breadcrumb.vue +17 -21
- package/dist/runtime/components/Calendar.vue +15 -6
- package/dist/runtime/components/Carousel.vue +5 -3
- package/dist/runtime/components/Checkbox.vue +12 -7
- package/dist/runtime/components/Drawer.vue +12 -12
- package/dist/runtime/components/DropdownMenu.vue +143 -0
- package/dist/runtime/components/DropdownMenuContent.vue +188 -0
- package/dist/runtime/components/Form.vue +311 -0
- package/dist/runtime/components/FormItem.vue +129 -0
- package/dist/runtime/components/Input.vue +27 -13
- package/dist/runtime/components/InputNumber.vue +22 -14
- package/dist/runtime/components/Link.vue +17 -2
- package/dist/runtime/components/Modal.vue +11 -11
- package/dist/runtime/components/PinInput.vue +22 -13
- package/dist/runtime/components/Popover.vue +3 -3
- package/dist/runtime/components/RadioGroup.vue +50 -46
- package/dist/runtime/components/Select.vue +90 -80
- package/dist/runtime/components/Slider.vue +12 -7
- package/dist/runtime/components/Switch.vue +12 -6
- package/dist/runtime/components/Table.vue +21 -8
- package/dist/runtime/components/Tabs.vue +12 -11
- package/dist/runtime/components/Textarea.vue +19 -13
- package/dist/runtime/components/Toast.vue +6 -3
- package/dist/runtime/components/Tooltip.vue +3 -3
- package/dist/runtime/composables/useFormItem.d.ts +27 -0
- package/dist/runtime/composables/useFormItem.js +64 -0
- package/dist/runtime/composables/useTheme.js +2 -1
- package/dist/runtime/index.d.ts +3 -0
- package/dist/runtime/index.js +3 -0
- package/dist/runtime/theme/app.d.ts +1 -0
- package/dist/runtime/theme/app.js +2 -1
- package/dist/runtime/theme/badge.d.ts +21 -45
- package/dist/runtime/theme/breadcrumb.d.ts +3 -3
- package/dist/runtime/theme/button.d.ts +111 -57
- package/dist/runtime/theme/calendar.d.ts +2 -2
- package/dist/runtime/theme/chip.d.ts +11 -44
- package/dist/runtime/theme/drawer.d.ts +68 -33
- package/dist/runtime/theme/dropdown-menu.d.ts +71 -0
- package/dist/runtime/theme/dropdown-menu.js +83 -0
- package/dist/runtime/theme/form-item.d.ts +76 -0
- package/dist/runtime/theme/form-item.js +34 -0
- package/dist/runtime/theme/form.d.ts +8 -0
- package/dist/runtime/theme/form.js +7 -0
- package/dist/runtime/theme/index.d.ts +3 -0
- package/dist/runtime/theme/index.js +3 -0
- package/dist/runtime/theme/input-number.d.ts +41 -61
- package/dist/runtime/theme/input.d.ts +99 -71
- package/dist/runtime/theme/input.js +2 -2
- package/dist/runtime/theme/modal.d.ts +5 -33
- package/dist/runtime/theme/pinInput.d.ts +42 -42
- package/dist/runtime/theme/pinInput.js +1 -1
- package/dist/runtime/theme/progress.d.ts +117 -53
- package/dist/runtime/theme/select.d.ts +100 -84
- package/dist/runtime/theme/select.js +2 -1
- package/dist/runtime/theme/separator.d.ts +13 -28
- package/dist/runtime/theme/table.d.ts +3 -0
- package/dist/runtime/theme/table.js +2 -1
- package/dist/runtime/theme/tabs.d.ts +51 -68
- package/dist/runtime/theme/textarea.d.ts +37 -43
- package/dist/runtime/theme/textarea.js +1 -1
- package/dist/runtime/theme/toast-provider.d.ts +26 -41
- package/dist/runtime/types/components.d.ts +3 -0
- package/dist/runtime/types/form.d.ts +45 -0
- package/dist/runtime/types/form.js +0 -0
- package/dist/runtime/types/index.d.ts +5 -2
- package/dist/runtime/types/index.js +1 -0
- package/dist/runtime/types/utils.d.ts +32 -11
- package/dist/runtime/utils/extend-theme.js +15 -4
- package/dist/runtime/utils/form.d.ts +5 -0
- package/dist/runtime/utils/form.js +24 -0
- package/dist/runtime/utils/index.d.ts +2 -0
- package/dist/runtime/utils/index.js +4 -0
- package/dist/runtime/utils/link.d.ts +4 -26
- package/dist/runtime/utils/link.js +10 -3
- package/dist/shared/ui.3e7fad19.mjs +5 -0
- package/dist/shared/ui.3e7fad19.mjs.map +1 -0
- package/dist/unocss.mjs +2 -2
- package/dist/unocss.mjs.map +1 -1
- package/dist/unplugin.mjs +1 -1
- package/dist/vite.mjs +1 -1
- package/package.json +16 -14
- package/dist/shared/ui.1a1f119c.mjs +0 -5
- 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:
|
|
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
|
|
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
|
|
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);
|
package/dist/runtime/index.d.ts
CHANGED
|
@@ -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';
|
package/dist/runtime/index.js
CHANGED
|
@@ -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";
|
|
@@ -50,55 +50,31 @@ declare const _default: {
|
|
|
50
50
|
};
|
|
51
51
|
};
|
|
52
52
|
};
|
|
53
|
-
compoundVariants:
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
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
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
59
|
+
} | {
|
|
60
|
+
position: "bottom-right";
|
|
61
|
+
inset: false;
|
|
62
|
+
class: {
|
|
63
|
+
base: string;
|
|
89
64
|
};
|
|
90
|
-
|
|
91
|
-
|
|
65
|
+
} | {
|
|
66
|
+
position: "top-left";
|
|
67
|
+
inset: false;
|
|
68
|
+
class: {
|
|
69
|
+
base: string;
|
|
92
70
|
};
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
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
|
};
|
|
@@ -65,70 +65,124 @@ declare const _default: {
|
|
|
65
65
|
};
|
|
66
66
|
};
|
|
67
67
|
};
|
|
68
|
-
compoundVariants:
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
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
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
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
|
-
|
|
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
|
-
|
|
110
|
-
|
|
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
|
-
|
|
113
|
-
|
|
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
|
-
|
|
116
|
-
|
|
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
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
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
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
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
|
};
|
|
@@ -47,52 +47,19 @@ declare const _default: {
|
|
|
47
47
|
};
|
|
48
48
|
};
|
|
49
49
|
};
|
|
50
|
-
compoundVariants:
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
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
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
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:
|
|
41
|
-
direction:
|
|
42
|
-
|
|
43
|
-
|
|
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
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
45
|
+
inset?: undefined;
|
|
46
|
+
transition?: undefined;
|
|
47
|
+
} | {
|
|
48
|
+
direction: ("left" | "right")[];
|
|
49
|
+
class: {
|
|
50
|
+
content: string;
|
|
59
51
|
};
|
|
60
|
-
inset
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
52
|
+
inset?: undefined;
|
|
53
|
+
transition?: undefined;
|
|
54
|
+
} | {
|
|
55
|
+
direction: "top"[];
|
|
56
|
+
inset: true;
|
|
57
|
+
class: {
|
|
58
|
+
content: string;
|
|
64
59
|
};
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
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: {
|