mikuru 1.0.38 → 1.0.39
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 +8 -0
- package/components/MikuruAlertDialog.mikuru +183 -0
- package/components/MikuruAvatar.mikuru +60 -0
- package/components/MikuruAvatarGroup.mikuru +66 -0
- package/components/MikuruBadge.mikuru +62 -0
- package/components/MikuruBreadcrumb.mikuru +86 -0
- package/components/MikuruCalendar.mikuru +142 -0
- package/components/MikuruChip.mikuru +64 -0
- package/components/MikuruCodeBlock.mikuru +20 -13
- package/components/MikuruCodeView.mikuru +21 -0
- package/components/MikuruColorPicker.mikuru +63 -0
- package/components/MikuruCommandPalette.mikuru +197 -0
- package/components/MikuruContextMenu.mikuru +137 -0
- package/components/MikuruDataList.mikuru +61 -0
- package/components/MikuruDatePicker.mikuru +293 -0
- package/components/MikuruDrawer.mikuru +115 -0
- package/components/MikuruEmptyState.mikuru +72 -0
- package/components/MikuruFileUpload.mikuru +161 -0
- package/components/MikuruKbd.mikuru +28 -0
- package/components/MikuruMarkdownEditor.mikuru +561 -0
- package/components/MikuruPagination.mikuru +109 -0
- package/components/MikuruPopover.mikuru +152 -0
- package/components/MikuruRadioGroup.mikuru +111 -0
- package/components/MikuruRangeSlider.mikuru +96 -0
- package/components/MikuruRating.mikuru +72 -0
- package/components/MikuruSearchInput.mikuru +97 -0
- package/components/MikuruSegmentedControl.mikuru +70 -0
- package/components/MikuruSkeleton.mikuru +74 -0
- package/components/MikuruSlider.mikuru +77 -0
- package/components/MikuruStatCard.mikuru +63 -0
- package/components/MikuruStepper.mikuru +123 -0
- package/components/MikuruSwitch.mikuru +104 -0
- package/components/MikuruTable.mikuru +242 -0
- package/components/MikuruTagInput.mikuru +127 -0
- package/components/MikuruTimePicker.mikuru +61 -0
- package/components/MikuruTimeline.mikuru +93 -0
- package/components/MikuruTreeView.mikuru +72 -0
- package/components/MikuruWysiwygEditor.mikuru +259 -0
- package/package.json +289 -1
- package/types/components/MikuruAlertDialog.d.ts +16 -0
- package/types/components/MikuruAvatar.d.ts +12 -0
- package/types/components/MikuruAvatarGroup.d.ts +19 -0
- package/types/components/MikuruBadge.d.ts +11 -0
- package/types/components/MikuruBreadcrumb.d.ts +16 -0
- package/types/components/MikuruCalendar.d.ts +11 -0
- package/types/components/MikuruChip.d.ts +12 -0
- package/types/components/MikuruCodeView.d.ts +11 -0
- package/types/components/MikuruColorPicker.d.ts +11 -0
- package/types/components/MikuruCommandPalette.d.ts +20 -0
- package/types/components/MikuruContextMenu.d.ts +18 -0
- package/types/components/MikuruDataList.d.ts +17 -0
- package/types/components/MikuruDatePicker.d.ts +12 -0
- package/types/components/MikuruDrawer.d.ts +14 -0
- package/types/components/MikuruEmptyState.d.ts +12 -0
- package/types/components/MikuruFileUpload.d.ts +14 -0
- package/types/components/MikuruKbd.d.ts +9 -0
- package/types/components/MikuruMarkdownEditor.d.ts +15 -0
- package/types/components/MikuruPagination.d.ts +12 -0
- package/types/components/MikuruPopover.d.ts +13 -0
- package/types/components/MikuruRadioGroup.d.ts +21 -0
- package/types/components/MikuruRangeSlider.d.ts +15 -0
- package/types/components/MikuruRating.d.ts +13 -0
- package/types/components/MikuruSearchInput.d.ts +12 -0
- package/types/components/MikuruSegmentedControl.d.ts +18 -0
- package/types/components/MikuruSkeleton.d.ts +13 -0
- package/types/components/MikuruSlider.d.ts +15 -0
- package/types/components/MikuruStatCard.d.ts +12 -0
- package/types/components/MikuruStepper.d.ts +19 -0
- package/types/components/MikuruSwitch.d.ts +12 -0
- package/types/components/MikuruTable.d.ts +27 -0
- package/types/components/MikuruTagInput.d.ts +13 -0
- package/types/components/MikuruTimePicker.d.ts +12 -0
- package/types/components/MikuruTimeline.d.ts +17 -0
- package/types/components/MikuruTreeView.d.ts +17 -0
- package/types/components/MikuruWysiwygEditor.d.ts +12 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { MikuruComponent } from "../env";
|
|
2
|
+
|
|
3
|
+
export type MikuruRatingProps = {
|
|
4
|
+
label?: string;
|
|
5
|
+
modelValue?: number;
|
|
6
|
+
max?: number;
|
|
7
|
+
symbol?: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
declare const component: MikuruComponent<MikuruRatingProps>;
|
|
12
|
+
export default component;
|
|
13
|
+
export const mount: MikuruComponent<MikuruRatingProps>["mount"];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { MikuruComponent } from "../env";
|
|
2
|
+
|
|
3
|
+
export type MikuruSearchInputProps = {
|
|
4
|
+
label?: string;
|
|
5
|
+
modelValue?: string;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
declare const component: MikuruComponent<MikuruSearchInputProps>;
|
|
11
|
+
export default component;
|
|
12
|
+
export const mount: MikuruComponent<MikuruSearchInputProps>["mount"];
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { MikuruComponent } from "../env";
|
|
2
|
+
|
|
3
|
+
export type MikuruSegmentedControlOption = {
|
|
4
|
+
label: string;
|
|
5
|
+
value: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export type MikuruSegmentedControlProps = {
|
|
10
|
+
label?: string;
|
|
11
|
+
modelValue?: string;
|
|
12
|
+
options?: MikuruSegmentedControlOption[];
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
declare const component: MikuruComponent<MikuruSegmentedControlProps>;
|
|
17
|
+
export default component;
|
|
18
|
+
export const mount: MikuruComponent<MikuruSegmentedControlProps>["mount"];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { MikuruComponent } from "../env";
|
|
2
|
+
|
|
3
|
+
export type MikuruSkeletonProps = {
|
|
4
|
+
lines?: number;
|
|
5
|
+
width?: string;
|
|
6
|
+
height?: string;
|
|
7
|
+
shape?: "text" | "card" | "circle" | string;
|
|
8
|
+
animated?: boolean;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
declare const component: MikuruComponent<MikuruSkeletonProps>;
|
|
12
|
+
export default component;
|
|
13
|
+
export const mount: MikuruComponent<MikuruSkeletonProps>["mount"];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { MikuruComponent } from "../env";
|
|
2
|
+
|
|
3
|
+
export type MikuruSliderProps = {
|
|
4
|
+
label?: string;
|
|
5
|
+
modelValue?: number;
|
|
6
|
+
min?: number;
|
|
7
|
+
max?: number;
|
|
8
|
+
step?: number;
|
|
9
|
+
help?: string;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
declare const component: MikuruComponent<MikuruSliderProps>;
|
|
14
|
+
export default component;
|
|
15
|
+
export const mount: MikuruComponent<MikuruSliderProps>["mount"];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { MikuruComponent } from "../env";
|
|
2
|
+
|
|
3
|
+
export type MikuruStatCardProps = {
|
|
4
|
+
label?: string;
|
|
5
|
+
value?: string;
|
|
6
|
+
detail?: string;
|
|
7
|
+
tone?: "neutral" | "success" | "info" | "warning" | string;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
declare const component: MikuruComponent<MikuruStatCardProps>;
|
|
11
|
+
export default component;
|
|
12
|
+
export const mount: MikuruComponent<MikuruStatCardProps>["mount"];
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { MikuruComponent } from "../env";
|
|
2
|
+
|
|
3
|
+
export type MikuruStepperStep = {
|
|
4
|
+
label: string;
|
|
5
|
+
value: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
completed?: boolean;
|
|
8
|
+
index?: string | number;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export type MikuruStepperProps = {
|
|
12
|
+
steps?: MikuruStepperStep[];
|
|
13
|
+
current?: string;
|
|
14
|
+
orientation?: "horizontal" | "vertical" | string;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
declare const component: MikuruComponent<MikuruStepperProps>;
|
|
18
|
+
export default component;
|
|
19
|
+
export const mount: MikuruComponent<MikuruStepperProps>["mount"];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { MikuruComponent } from "../env";
|
|
2
|
+
|
|
3
|
+
export type MikuruSwitchProps = {
|
|
4
|
+
label?: string;
|
|
5
|
+
modelValue?: boolean;
|
|
6
|
+
help?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
declare const component: MikuruComponent<MikuruSwitchProps>;
|
|
11
|
+
export default component;
|
|
12
|
+
export const mount: MikuruComponent<MikuruSwitchProps>["mount"];
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { MikuruComponent } from "../env";
|
|
2
|
+
|
|
3
|
+
export type MikuruTableColumn = string | {
|
|
4
|
+
key?: string;
|
|
5
|
+
value?: string;
|
|
6
|
+
label?: string;
|
|
7
|
+
sortable?: boolean;
|
|
8
|
+
align?: "left" | "center" | "right" | string;
|
|
9
|
+
width?: string;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export type MikuruTableRow = Record<string, unknown>;
|
|
13
|
+
|
|
14
|
+
export type MikuruTableProps = {
|
|
15
|
+
columns?: MikuruTableColumn[];
|
|
16
|
+
rows?: MikuruTableRow[];
|
|
17
|
+
caption?: string;
|
|
18
|
+
emptyText?: string;
|
|
19
|
+
loading?: boolean;
|
|
20
|
+
rowKey?: string;
|
|
21
|
+
sortKey?: string;
|
|
22
|
+
sortDirection?: "asc" | "desc" | string;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
declare const component: MikuruComponent<MikuruTableProps>;
|
|
26
|
+
export default component;
|
|
27
|
+
export const mount: MikuruComponent<MikuruTableProps>["mount"];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { MikuruComponent } from "../env";
|
|
2
|
+
|
|
3
|
+
export type MikuruTagInputProps = {
|
|
4
|
+
label?: string;
|
|
5
|
+
modelValue?: string[];
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
help?: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
declare const component: MikuruComponent<MikuruTagInputProps>;
|
|
12
|
+
export default component;
|
|
13
|
+
export const mount: MikuruComponent<MikuruTagInputProps>["mount"];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { MikuruComponent } from "../env";
|
|
2
|
+
|
|
3
|
+
export type MikuruTimePickerProps = {
|
|
4
|
+
label?: string;
|
|
5
|
+
modelValue?: string;
|
|
6
|
+
step?: number;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
declare const component: MikuruComponent<MikuruTimePickerProps>;
|
|
11
|
+
export default component;
|
|
12
|
+
export const mount: MikuruComponent<MikuruTimePickerProps>["mount"];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { MikuruComponent } from "../env";
|
|
2
|
+
|
|
3
|
+
export type MikuruTimelineItem = {
|
|
4
|
+
id?: string;
|
|
5
|
+
title: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
time?: string;
|
|
8
|
+
tone?: "neutral" | "success" | "info" | "warning" | string;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export type MikuruTimelineProps = {
|
|
12
|
+
items?: MikuruTimelineItem[];
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
declare const component: MikuruComponent<MikuruTimelineProps>;
|
|
16
|
+
export default component;
|
|
17
|
+
export const mount: MikuruComponent<MikuruTimelineProps>["mount"];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { MikuruComponent } from "../env";
|
|
2
|
+
|
|
3
|
+
export type MikuruTreeViewNode = {
|
|
4
|
+
id?: string;
|
|
5
|
+
value?: string;
|
|
6
|
+
label: string;
|
|
7
|
+
children?: MikuruTreeViewNode[];
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export type MikuruTreeViewProps = {
|
|
11
|
+
label?: string;
|
|
12
|
+
nodes?: MikuruTreeViewNode[];
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
declare const component: MikuruComponent<MikuruTreeViewProps>;
|
|
16
|
+
export default component;
|
|
17
|
+
export const mount: MikuruComponent<MikuruTreeViewProps>["mount"];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { MikuruComponent } from "../env";
|
|
2
|
+
|
|
3
|
+
export type MikuruWysiwygEditorProps = {
|
|
4
|
+
label?: string;
|
|
5
|
+
modelValue?: string;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
help?: string;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
declare const component: MikuruComponent<MikuruWysiwygEditorProps>;
|
|
11
|
+
export default component;
|
|
12
|
+
export const mount: MikuruComponent<MikuruWysiwygEditorProps>["mount"];
|