@mudakit/ui 0.1.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.
- package/CHANGELOG.md +7 -0
- package/LICENSE +21 -0
- package/README.md +46 -0
- package/THIRD_PARTY_LICENSES +15 -0
- package/dist/MudaButton-Bw6Fw2-Y.js +42 -0
- package/dist/MudaButtonStack-xCMVwXHf.js +16 -0
- package/dist/MudaCalendar-f1lHTxVw.js +593 -0
- package/dist/MudaCard-C9geam4O.js +10 -0
- package/dist/MudaColorPicker-Ny8v-KZR.js +134 -0
- package/dist/MudaDialog-C6dOmY_K.js +105 -0
- package/dist/MudaDropdown-DJOG_m6C.js +54 -0
- package/dist/MudaErrorBox-C0DvbAfU.js +28 -0
- package/dist/MudaFormCheckbox-CDY-INi6.js +43 -0
- package/dist/MudaFormCombobox-CBaRBOKQ.js +186 -0
- package/dist/MudaFormField-Bt5W7NC1.js +42 -0
- package/dist/MudaFormInput-CI_xfpTj.js +56 -0
- package/dist/MudaFormRadio-DOXXv3mT.js +21 -0
- package/dist/MudaFormRadioGroup-45qiNrzt.js +48 -0
- package/dist/MudaFormSelect-Bt6EW1N-.js +28 -0
- package/dist/MudaFormSwitch-CtdB9qIP.js +33 -0
- package/dist/MudaFormText-s-Y3QoDX.js +23 -0
- package/dist/MudaIcon-BhSsLCZx.js +1886 -0
- package/dist/MudaIconPicker-CZWLPHbE.js +114 -0
- package/dist/MudaMarker-1xxDZJgb.js +24 -0
- package/dist/MudaPagination-BYyElnCp.js +119 -0
- package/dist/MudaPopover-BgwkVjjX.js +67 -0
- package/dist/MudaSpinner-C5_q8Vtn.js +26 -0
- package/dist/MudaTable-DWwTyMmj.js +33 -0
- package/dist/MudaTag-DLqit790.js +27 -0
- package/dist/_plugin-vue_export-helper-B3ysoDQm.js +8 -0
- package/dist/common/components.d.ts +3 -0
- package/dist/common/keymap.d.ts +9 -0
- package/dist/common/range.d.ts +1 -0
- package/dist/components/MudaButton/MudaButton.vue.d.ts +25 -0
- package/dist/components/MudaButton/index.d.ts +1 -0
- package/dist/components/MudaButton/index.js +2 -0
- package/dist/components/MudaButtonStack/MudaButtonStack.vue.d.ts +16 -0
- package/dist/components/MudaButtonStack/index.d.ts +1 -0
- package/dist/components/MudaButtonStack/index.js +2 -0
- package/dist/components/MudaCalendar/MudaCalendar.dayjs.d.ts +3 -0
- package/dist/components/MudaCalendar/MudaCalendar.types.d.ts +30 -0
- package/dist/components/MudaCalendar/MudaCalendar.vue.d.ts +27 -0
- package/dist/components/MudaCalendar/MudaCalendarDatePicker.vue.d.ts +22 -0
- package/dist/components/MudaCalendar/MudaCalendarDays.vue.d.ts +25 -0
- package/dist/components/MudaCalendar/MudaCalendarHead.vue.d.ts +21 -0
- package/dist/components/MudaCalendar/MudaCalendarInput.vue.d.ts +25 -0
- package/dist/components/MudaCalendar/MudaCalendarMonths.vue.d.ts +27 -0
- package/dist/components/MudaCalendar/MudaCalendarWeekDays.vue.d.ts +9 -0
- package/dist/components/MudaCalendar/MudaCalendarYears.vue.d.ts +27 -0
- package/dist/components/MudaCalendar/index.d.ts +4 -0
- package/dist/components/MudaCalendar/index.js +2 -0
- package/dist/components/MudaCalendar/useMudaCalendar.d.ts +18 -0
- package/dist/components/MudaCard/MudaCard.vue.d.ts +13 -0
- package/dist/components/MudaCard/index.d.ts +1 -0
- package/dist/components/MudaCard/index.js +2 -0
- package/dist/components/MudaColorPicker/MudaColorPicker.vue.d.ts +21 -0
- package/dist/components/MudaColorPicker/MudaColorPickerControl.vue.d.ts +18 -0
- package/dist/components/MudaColorPicker/index.d.ts +2 -0
- package/dist/components/MudaColorPicker/index.js +2 -0
- package/dist/components/MudaDialog/MudaDialog.vue.d.ts +20 -0
- package/dist/components/MudaDialog/MudaDialogFocusTrap.vue.d.ts +18 -0
- package/dist/components/MudaDialog/index.d.ts +1 -0
- package/dist/components/MudaDialog/index.js +2 -0
- package/dist/components/MudaDropdown/MudaDropdown.types.d.ts +8 -0
- package/dist/components/MudaDropdown/MudaDropdown.vue.d.ts +33 -0
- package/dist/components/MudaDropdown/index.d.ts +2 -0
- package/dist/components/MudaDropdown/index.js +2 -0
- package/dist/components/MudaErrorBox/MudaErrorBox.vue.d.ts +9 -0
- package/dist/components/MudaErrorBox/index.d.ts +1 -0
- package/dist/components/MudaErrorBox/index.js +2 -0
- package/dist/components/MudaFormCheckbox/MudaFormCheckbox.types.d.ts +1 -0
- package/dist/components/MudaFormCheckbox/MudaFormCheckbox.vue.d.ts +18 -0
- package/dist/components/MudaFormCheckbox/index.d.ts +2 -0
- package/dist/components/MudaFormCheckbox/index.js +2 -0
- package/dist/components/MudaFormCombobox/MudaFormCombobox.types.d.ts +5 -0
- package/dist/components/MudaFormCombobox/MudaFormComboboxMultiple.vue.d.ts +32 -0
- package/dist/components/MudaFormCombobox/MudaFormComboboxSingle.vue.d.ts +34 -0
- package/dist/components/MudaFormCombobox/index.d.ts +3 -0
- package/dist/components/MudaFormCombobox/index.js +2 -0
- package/dist/components/MudaFormField/MudaFormField.vue.d.ts +31 -0
- package/dist/components/MudaFormField/MudaFormFieldErrors.vue.d.ts +8 -0
- package/dist/components/MudaFormField/index.d.ts +2 -0
- package/dist/components/MudaFormField/index.js +2 -0
- package/dist/components/MudaFormInput/MudaFormInput.types.d.ts +5 -0
- package/dist/components/MudaFormInput/MudaFormInput.vue.d.ts +31 -0
- package/dist/components/MudaFormInput/index.d.ts +2 -0
- package/dist/components/MudaFormInput/index.js +2 -0
- package/dist/components/MudaFormRadio/MudaFormRadio.types.d.ts +1 -0
- package/dist/components/MudaFormRadio/MudaFormRadio.vue.d.ts +11 -0
- package/dist/components/MudaFormRadio/index.d.ts +2 -0
- package/dist/components/MudaFormRadio/index.js +2 -0
- package/dist/components/MudaFormRadioGroup/MudaFormRadioGroup.types.d.ts +7 -0
- package/dist/components/MudaFormRadioGroup/MudaFormRadioGroup.vue.d.ts +34 -0
- package/dist/components/MudaFormRadioGroup/index.d.ts +2 -0
- package/dist/components/MudaFormRadioGroup/index.js +2 -0
- package/dist/components/MudaFormSelect/MudaFormSelect.vue.d.ts +24 -0
- package/dist/components/MudaFormSelect/index.d.ts +1 -0
- package/dist/components/MudaFormSelect/index.js +2 -0
- package/dist/components/MudaFormSwitch/MudaFormSwitch.vue.d.ts +14 -0
- package/dist/components/MudaFormSwitch/index.d.ts +1 -0
- package/dist/components/MudaFormSwitch/index.js +2 -0
- package/dist/components/MudaFormText/MudaFormText.types.d.ts +4 -0
- package/dist/components/MudaFormText/MudaFormText.vue.d.ts +13 -0
- package/dist/components/MudaFormText/index.d.ts +2 -0
- package/dist/components/MudaFormText/index.js +2 -0
- package/dist/components/MudaIcon/MudaIcon.types.d.ts +5 -0
- package/dist/components/MudaIcon/MudaIcon.vue.d.ts +13 -0
- package/dist/components/MudaIcon/icons/filled.d.ts +100 -0
- package/dist/components/MudaIcon/icons/index.d.ts +2 -0
- package/dist/components/MudaIcon/icons/outlined.d.ts +100 -0
- package/dist/components/MudaIcon/index.d.ts +3 -0
- package/dist/components/MudaIcon/index.js +2 -0
- package/dist/components/MudaIcon/useMudaIcon.d.ts +109 -0
- package/dist/components/MudaIconPicker/MudaIconPicker.vue.d.ts +24 -0
- package/dist/components/MudaIconPicker/MudaIconPickerList.vue.d.ts +16 -0
- package/dist/components/MudaIconPicker/index.d.ts +1 -0
- package/dist/components/MudaIconPicker/index.js +2 -0
- package/dist/components/MudaIconPicker/useMudaIconPickerList.d.ts +3 -0
- package/dist/components/MudaMarker/MudaMarker.vue.d.ts +22 -0
- package/dist/components/MudaMarker/index.d.ts +1 -0
- package/dist/components/MudaMarker/index.js +2 -0
- package/dist/components/MudaPagination/MudaPagination.vue.d.ts +29 -0
- package/dist/components/MudaPagination/MudaPaginationItem.vue.d.ts +17 -0
- package/dist/components/MudaPagination/index.d.ts +1 -0
- package/dist/components/MudaPagination/index.js +2 -0
- package/dist/components/MudaPopover/MudaPopover.types.d.ts +3 -0
- package/dist/components/MudaPopover/MudaPopover.vue.d.ts +37 -0
- package/dist/components/MudaPopover/index.d.ts +2 -0
- package/dist/components/MudaPopover/index.js +2 -0
- package/dist/components/MudaSpinner/MudaSpinner.vue.d.ts +11 -0
- package/dist/components/MudaSpinner/index.d.ts +1 -0
- package/dist/components/MudaSpinner/index.js +2 -0
- package/dist/components/MudaTable/MudaTable.vue.d.ts +19 -0
- package/dist/components/MudaTable/MudaTableCell.vue.d.ts +13 -0
- package/dist/components/MudaTable/MudaTableHead.vue.d.ts +13 -0
- package/dist/components/MudaTable/MudaTableRow.vue.d.ts +13 -0
- package/dist/components/MudaTable/index.d.ts +4 -0
- package/dist/components/MudaTable/index.js +2 -0
- package/dist/components/MudaTag/MudaTag.vue.d.ts +21 -0
- package/dist/components/MudaTag/index.d.ts +1 -0
- package/dist/components/MudaTag/index.js +2 -0
- package/dist/composables/useBodyScrollLock.d.ts +2 -0
- package/dist/composables/useClickOutside.d.ts +2 -0
- package/dist/composables/useFocusTrap.d.ts +5 -0
- package/dist/composables/useKeyDown.d.ts +1 -0
- package/dist/composables/useResizeObserver.d.ts +2 -0
- package/dist/composables/useZIndex.d.ts +1 -0
- package/dist/index.d.ts +25 -0
- package/dist/index.js +26 -0
- package/dist/keymap-BzfMgdJH.js +6 -0
- package/dist/style.css +2 -0
- package/dist/styles.js +0 -0
- package/dist/useClickOutside-B6tdxsc3.js +15 -0
- package/dist/useKeyDown-B1jmp4nA.js +11 -0
- package/dist/useZIndex-DWnsohLZ.js +8 -0
- package/package.json +79 -0
- package/style.css.d.ts +3 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/**
|
|
3
|
+
* Name of the locale to use.
|
|
4
|
+
*/
|
|
5
|
+
locale?: string;
|
|
6
|
+
/**
|
|
7
|
+
* Disables the input.
|
|
8
|
+
*/
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
min?: string;
|
|
11
|
+
max?: string;
|
|
12
|
+
};
|
|
13
|
+
type __VLS_ModelProps = {
|
|
14
|
+
modelValue?: string | null | undefined;
|
|
15
|
+
};
|
|
16
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
17
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
18
|
+
"update:modelValue": (value: string | null | undefined) => any;
|
|
19
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
20
|
+
"onUpdate:modelValue"?: ((value: string | null | undefined) => any) | undefined;
|
|
21
|
+
}>, {
|
|
22
|
+
locale: string;
|
|
23
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
24
|
+
declare const _default: typeof __VLS_export;
|
|
25
|
+
export default _default;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/**
|
|
3
|
+
* Today's date.
|
|
4
|
+
*/
|
|
5
|
+
today: string;
|
|
6
|
+
min: string | undefined;
|
|
7
|
+
max: string | undefined;
|
|
8
|
+
locale: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_ModelProps = {
|
|
12
|
+
modelValue: string | null | undefined;
|
|
13
|
+
"displayDate": string;
|
|
14
|
+
};
|
|
15
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
16
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
|
+
"update:modelValue": (value: string | null | undefined) => any;
|
|
18
|
+
"update:displayDate": (value: string) => any;
|
|
19
|
+
} & {
|
|
20
|
+
monthClick: () => any;
|
|
21
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
22
|
+
"onUpdate:modelValue"?: ((value: string | null | undefined) => any) | undefined;
|
|
23
|
+
"onUpdate:displayDate"?: ((value: string) => any) | undefined;
|
|
24
|
+
onMonthClick?: (() => any) | undefined;
|
|
25
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
26
|
+
declare const _default: typeof __VLS_export;
|
|
27
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/**
|
|
3
|
+
* Name of the locale to use.
|
|
4
|
+
*/
|
|
5
|
+
locale: string;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/**
|
|
3
|
+
* Today's date.
|
|
4
|
+
*/
|
|
5
|
+
today: string;
|
|
6
|
+
min: string | undefined;
|
|
7
|
+
max: string | undefined;
|
|
8
|
+
locale: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_ModelProps = {
|
|
12
|
+
modelValue: string | null | undefined;
|
|
13
|
+
"displayDate": string;
|
|
14
|
+
};
|
|
15
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
16
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
|
+
"update:modelValue": (value: string | null | undefined) => any;
|
|
18
|
+
"update:displayDate": (value: string) => any;
|
|
19
|
+
} & {
|
|
20
|
+
yearClick: () => any;
|
|
21
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
22
|
+
"onUpdate:modelValue"?: ((value: string | null | undefined) => any) | undefined;
|
|
23
|
+
"onUpdate:displayDate"?: ((value: string) => any) | undefined;
|
|
24
|
+
onYearClick?: (() => any) | undefined;
|
|
25
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
26
|
+
declare const _default: typeof __VLS_export;
|
|
27
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c } from "../../MudaCalendar-f1lHTxVw.js";
|
|
2
|
+
export { n as CALENDAR_DAY_FORMAT, e as CALENDAR_MONTH_FORMAT, a as CALENDAR_VALUE_FORMAT, s as CALENDAR_YEAR_FORMAT, t as MONTH_RANGE_SIZE, i as MudaCalendar, o as MudaCalendarDatePicker, c as MudaCalendarInput, r as YEAR_RANGE_SIZE };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type Ref } from "vue";
|
|
2
|
+
import dayjs, { type Dayjs } from "./MudaCalendar.dayjs";
|
|
3
|
+
import { type MudaCalendarDayItem, type MudaCalendarMonthItem, type MudaCalendarType, type MudaCalendarYearItem } from "./MudaCalendar.types";
|
|
4
|
+
export declare const strToDate: (date: string | null | undefined) => dayjs.Dayjs | null;
|
|
5
|
+
export declare const dateToStr: (date: Dayjs | null) => string | null;
|
|
6
|
+
export declare const useMudaCalendarFirstDayOfTheWeek: (locale: Ref<string>) => import("vue").ComputedRef<number>;
|
|
7
|
+
export declare function useMudaCalendarWeekdays(locale: Ref<string>): import("vue").ComputedRef<{
|
|
8
|
+
name: string;
|
|
9
|
+
isWeekend: boolean;
|
|
10
|
+
}[]>;
|
|
11
|
+
export declare const useMudaCalendarIsSelected: (type: MudaCalendarType) => (dateStr: string, compareWith: string | null | undefined) => boolean;
|
|
12
|
+
export declare const dateIsInRange: (date: Dayjs, dateMin: Dayjs | null, dateMax: Dayjs | null, unit: "day" | "month" | "year") => boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Calculates the date range for the calendar based on the provided parameters.
|
|
15
|
+
*/
|
|
16
|
+
export declare function useMudaCalendarDayRange(displayDate: Ref<string>, today: Ref<string>, min: Ref<string | undefined>, max: Ref<string | undefined>, locale: Ref<string>): Ref<Array<MudaCalendarDayItem>>;
|
|
17
|
+
export declare function useMudaCalendarMonthRange(displayDate: Ref<string>, today: Ref<string>, min: Ref<string | undefined>, max: Ref<string | undefined>, locale: Ref<string>): Ref<MudaCalendarMonthItem[]>;
|
|
18
|
+
export declare function useMudaCalendarYearRange(displayDate: Ref<string>, today: Ref<string>, min: Ref<string | undefined>, max: Ref<string | undefined>, locale: Ref<string>): Ref<MudaCalendarYearItem[]>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare var __VLS_1: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_1) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as MudaCard } from "./MudaCard.vue";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type MudaComponentSize } from "../../common/components";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
size?: MudaComponentSize;
|
|
4
|
+
buttonLabel?: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
appendToBody?: boolean;
|
|
7
|
+
isInvalid?: boolean;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_ModelProps = {
|
|
10
|
+
modelValue?: string;
|
|
11
|
+
};
|
|
12
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
13
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
14
|
+
"update:modelValue": (value: string) => any;
|
|
15
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
16
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
17
|
+
}>, {
|
|
18
|
+
size: MudaComponentSize;
|
|
19
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
20
|
+
declare const _default: typeof __VLS_export;
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
size?: number;
|
|
3
|
+
/**
|
|
4
|
+
* The initial color of the color picker.
|
|
5
|
+
* Since the `useColorPicker` API is not reactive, we simply pass the value through props
|
|
6
|
+
*/
|
|
7
|
+
initialColor?: string;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
10
|
+
change: (value: string) => any;
|
|
11
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
12
|
+
onChange?: ((value: string) => any) | undefined;
|
|
13
|
+
}>, {
|
|
14
|
+
size: number;
|
|
15
|
+
initialColor: string;
|
|
16
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
type __VLS_ModelProps = {
|
|
2
|
+
modelValue: boolean;
|
|
3
|
+
};
|
|
4
|
+
declare var __VLS_23: {};
|
|
5
|
+
type __VLS_Slots = {} & {
|
|
6
|
+
default?: (props: typeof __VLS_23) => any;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_ModelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
+
"update:modelValue": (value: boolean) => any;
|
|
10
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
11
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
12
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|
|
16
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
17
|
+
new (): {
|
|
18
|
+
$slots: S;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
is?: string;
|
|
3
|
+
};
|
|
4
|
+
declare var __VLS_9: {};
|
|
5
|
+
type __VLS_Slots = {} & {
|
|
6
|
+
default?: (props: typeof __VLS_9) => any;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
9
|
+
is: string;
|
|
10
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
15
|
+
new (): {
|
|
16
|
+
$slots: S;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as MudaDialog } from "./MudaDialog.vue";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { MudaComponentVariant } from "../../common/components";
|
|
2
|
+
import type { MudaIconType } from "../MudaIcon";
|
|
3
|
+
export interface MudaDropdownItem<T extends string = string> {
|
|
4
|
+
id: T;
|
|
5
|
+
label: string;
|
|
6
|
+
variant?: MudaComponentVariant;
|
|
7
|
+
icon?: MudaIconType;
|
|
8
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type Slot } from "vue";
|
|
2
|
+
import type { MudaDropdownItem } from "./MudaDropdown.types";
|
|
3
|
+
declare const __VLS_export: <T extends string, TItem extends MudaDropdownItem<T>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<({
|
|
5
|
+
items: Array<TItem>;
|
|
6
|
+
} & {
|
|
7
|
+
modelValue?: boolean;
|
|
8
|
+
}) & {
|
|
9
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
10
|
+
onAction?: ((item: TItem, index: number) => any) | undefined;
|
|
11
|
+
}> & (typeof globalThis extends {
|
|
12
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
13
|
+
} ? P : {});
|
|
14
|
+
expose: (exposed: {}) => void;
|
|
15
|
+
attrs: any;
|
|
16
|
+
slots: {
|
|
17
|
+
item?: Slot<{
|
|
18
|
+
item: TItem;
|
|
19
|
+
index: number;
|
|
20
|
+
}>;
|
|
21
|
+
default?: Slot;
|
|
22
|
+
};
|
|
23
|
+
emit: ((e: "action", item: TItem, index: number) => void) & ((event: "update:modelValue", value: boolean) => void);
|
|
24
|
+
}>) => import("vue").VNode & {
|
|
25
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
26
|
+
};
|
|
27
|
+
declare const _default: typeof __VLS_export;
|
|
28
|
+
export default _default;
|
|
29
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
30
|
+
[K in keyof T]: T[K];
|
|
31
|
+
} : {
|
|
32
|
+
[K in keyof T as K]: T[K];
|
|
33
|
+
}) & {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
title?: string;
|
|
3
|
+
error: unknown;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
6
|
+
title: string;
|
|
7
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as MudaErrorBox } from "./MudaErrorBox.vue";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type MudaFormCheckboxValue = boolean | PropertyKey | Array<PropertyKey> | null | undefined;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { MudaComponentSize } from "../../common/components";
|
|
2
|
+
import type { MudaFormCheckboxValue } from "./MudaFormCheckbox.types";
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
size?: MudaComponentSize;
|
|
5
|
+
};
|
|
6
|
+
type __VLS_ModelProps = {
|
|
7
|
+
modelValue?: MudaFormCheckboxValue;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
10
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
+
"update:modelValue": (value: MudaFormCheckboxValue) => any;
|
|
12
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
13
|
+
"onUpdate:modelValue"?: ((value: MudaFormCheckboxValue) => any) | undefined;
|
|
14
|
+
}>, {
|
|
15
|
+
size: MudaComponentSize;
|
|
16
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { type Slot } from "vue";
|
|
2
|
+
import type { MudaFormComboboxOption } from "./MudaFormCombobox.types";
|
|
3
|
+
declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<({
|
|
5
|
+
options: MudaFormComboboxOption<T>[];
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
} & {
|
|
9
|
+
modelValue?: PropertyKey[];
|
|
10
|
+
}) & {
|
|
11
|
+
"onUpdate:modelValue"?: ((value: PropertyKey[]) => any) | undefined;
|
|
12
|
+
}> & (typeof globalThis extends {
|
|
13
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
14
|
+
} ? P : {});
|
|
15
|
+
expose: (exposed: {}) => void;
|
|
16
|
+
attrs: any;
|
|
17
|
+
slots: {
|
|
18
|
+
label?: Slot<{
|
|
19
|
+
option: MudaFormComboboxOption<T>;
|
|
20
|
+
}>;
|
|
21
|
+
};
|
|
22
|
+
emit: (event: "update:modelValue", value: PropertyKey[]) => void;
|
|
23
|
+
}>) => import("vue").VNode & {
|
|
24
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
25
|
+
};
|
|
26
|
+
declare const _default: typeof __VLS_export;
|
|
27
|
+
export default _default;
|
|
28
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
29
|
+
[K in keyof T]: T[K];
|
|
30
|
+
} : {
|
|
31
|
+
[K in keyof T as K]: T[K];
|
|
32
|
+
}) & {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { type Slot } from "vue";
|
|
2
|
+
import type { MudaFormComboboxOption } from "./MudaFormCombobox.types";
|
|
3
|
+
declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<({
|
|
5
|
+
options: MudaFormComboboxOption<T>[];
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
appendToBody?: boolean;
|
|
9
|
+
isInvalid?: boolean;
|
|
10
|
+
} & {
|
|
11
|
+
modelValue?: PropertyKey | null | undefined;
|
|
12
|
+
}) & {
|
|
13
|
+
"onUpdate:modelValue"?: ((value: PropertyKey | null | undefined) => any) | undefined;
|
|
14
|
+
}> & (typeof globalThis extends {
|
|
15
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
16
|
+
} ? P : {});
|
|
17
|
+
expose: (exposed: {}) => void;
|
|
18
|
+
attrs: any;
|
|
19
|
+
slots: {
|
|
20
|
+
label?: Slot<{
|
|
21
|
+
option: MudaFormComboboxOption<T>;
|
|
22
|
+
}>;
|
|
23
|
+
};
|
|
24
|
+
emit: (event: "update:modelValue", value: PropertyKey | null | undefined) => void;
|
|
25
|
+
}>) => import("vue").VNode & {
|
|
26
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
27
|
+
};
|
|
28
|
+
declare const _default: typeof __VLS_export;
|
|
29
|
+
export default _default;
|
|
30
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
31
|
+
[K in keyof T]: T[K];
|
|
32
|
+
} : {
|
|
33
|
+
[K in keyof T as K]: T[K];
|
|
34
|
+
}) & {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
axis?: "vertical" | "horizontal";
|
|
3
|
+
errors?: Array<{
|
|
4
|
+
message: string;
|
|
5
|
+
}>;
|
|
6
|
+
labelPosition?: "before" | "after";
|
|
7
|
+
as?: "div" | "label";
|
|
8
|
+
};
|
|
9
|
+
declare var __VLS_7: {}, __VLS_9: {}, __VLS_11: {}, __VLS_13: {};
|
|
10
|
+
type __VLS_Slots = {} & {
|
|
11
|
+
label?: (props: typeof __VLS_7) => any;
|
|
12
|
+
} & {
|
|
13
|
+
default?: (props: typeof __VLS_9) => any;
|
|
14
|
+
} & {
|
|
15
|
+
default?: (props: typeof __VLS_11) => any;
|
|
16
|
+
} & {
|
|
17
|
+
label?: (props: typeof __VLS_13) => any;
|
|
18
|
+
};
|
|
19
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
20
|
+
as: "div" | "label";
|
|
21
|
+
axis: "vertical" | "horizontal";
|
|
22
|
+
labelPosition: "before" | "after";
|
|
23
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
24
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
25
|
+
declare const _default: typeof __VLS_export;
|
|
26
|
+
export default _default;
|
|
27
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
28
|
+
new (): {
|
|
29
|
+
$slots: S;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
errors?: Array<{
|
|
3
|
+
message: string;
|
|
4
|
+
}>;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { type Slot } from "vue";
|
|
2
|
+
import type { MudaFormInputProps, MudaFormInputValue } from "./MudaFormInput.types";
|
|
3
|
+
type __VLS_Props = MudaFormInputProps;
|
|
4
|
+
type __VLS_Slots = {
|
|
5
|
+
before?: Slot;
|
|
6
|
+
after?: Slot;
|
|
7
|
+
};
|
|
8
|
+
type __VLS_ModelProps = {
|
|
9
|
+
modelValue?: MudaFormInputValue;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
12
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
13
|
+
input: Readonly<import("vue").ShallowRef<HTMLInputElement | null, HTMLInputElement | null>>;
|
|
14
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
|
+
"update:modelValue": (value: MudaFormInputValue) => any;
|
|
16
|
+
} & {
|
|
17
|
+
"click:before": (event: MouseEvent) => any;
|
|
18
|
+
"click:after": (event: MouseEvent) => any;
|
|
19
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
20
|
+
"onUpdate:modelValue"?: ((value: MudaFormInputValue) => any) | undefined;
|
|
21
|
+
"onClick:before"?: ((event: MouseEvent) => any) | undefined;
|
|
22
|
+
"onClick:after"?: ((event: MouseEvent) => any) | undefined;
|
|
23
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
24
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
25
|
+
declare const _default: typeof __VLS_export;
|
|
26
|
+
export default _default;
|
|
27
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
28
|
+
new (): {
|
|
29
|
+
$slots: S;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type MudaFormRadioValue = PropertyKey | null | undefined;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { MudaFormRadioValue } from "./MudaFormRadio.types";
|
|
2
|
+
type __VLS_ModelProps = {
|
|
3
|
+
modelValue?: MudaFormRadioValue;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
|
+
"update:modelValue": (value: MudaFormRadioValue) => any;
|
|
7
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
8
|
+
"onUpdate:modelValue"?: ((value: MudaFormRadioValue) => any) | undefined;
|
|
9
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { Slot } from "vue";
|
|
2
|
+
import type { MudaComponentSize } from "../../common/components";
|
|
3
|
+
import type { MudaFormRadioGroupItem, MudaFormRadioGroupValue } from "./MudaFormRadioGroup.types";
|
|
4
|
+
declare const __VLS_export: <T extends MudaFormRadioGroupItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
5
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<({
|
|
6
|
+
items: Array<T>;
|
|
7
|
+
size?: MudaComponentSize;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
} & {
|
|
10
|
+
modelValue?: MudaFormRadioGroupValue | undefined;
|
|
11
|
+
}) & {
|
|
12
|
+
"onUpdate:modelValue"?: ((value: MudaFormRadioGroupValue | undefined) => any) | undefined;
|
|
13
|
+
}> & (typeof globalThis extends {
|
|
14
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
15
|
+
} ? P : {});
|
|
16
|
+
expose: (exposed: {}) => void;
|
|
17
|
+
attrs: any;
|
|
18
|
+
slots: {
|
|
19
|
+
label?: Slot<{
|
|
20
|
+
item: T;
|
|
21
|
+
isSelected: boolean;
|
|
22
|
+
}>;
|
|
23
|
+
};
|
|
24
|
+
emit: (event: "update:modelValue", value: MudaFormRadioGroupValue | undefined) => void;
|
|
25
|
+
}>) => import("vue").VNode & {
|
|
26
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
27
|
+
};
|
|
28
|
+
declare const _default: typeof __VLS_export;
|
|
29
|
+
export default _default;
|
|
30
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
31
|
+
[K in keyof T]: T[K];
|
|
32
|
+
} : {
|
|
33
|
+
[K in keyof T as K]: T[K];
|
|
34
|
+
}) & {};
|