@nuxt/ui 2.18.5 → 2.18.6
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/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/components/data/Table.vue +3 -3
- package/dist/runtime/components/data/Table.vue.d.ts +281 -17
- package/dist/runtime/components/elements/Accordion.vue.d.ts +119 -11
- package/dist/runtime/components/elements/Alert.vue.d.ts +203 -15
- package/dist/runtime/components/elements/Avatar.vue.d.ts +66 -4
- package/dist/runtime/components/elements/AvatarGroup.d.ts +7 -1
- package/dist/runtime/components/elements/Badge.vue.d.ts +40 -4
- package/dist/runtime/components/elements/Button.vue.d.ts +91 -8
- package/dist/runtime/components/elements/ButtonGroup.d.ts +103 -2
- package/dist/runtime/components/elements/Carousel.vue.d.ts +121 -11
- package/dist/runtime/components/elements/Chip.vue.d.ts +41 -4
- package/dist/runtime/components/elements/Dropdown.vue.d.ts +152 -10
- package/dist/runtime/components/elements/Kbd.vue.d.ts +23 -4
- package/dist/runtime/components/elements/Link.vue.d.ts +2 -2
- package/dist/runtime/components/elements/Meter.vue.d.ts +83 -4
- package/dist/runtime/components/elements/MeterGroup.d.ts +54 -2
- package/dist/runtime/components/elements/Progress.vue.d.ts +81 -4
- package/dist/runtime/components/forms/Checkbox.vue.d.ts +25 -4
- package/dist/runtime/components/forms/FormGroup.vue.d.ts +32 -4
- package/dist/runtime/components/forms/Input.vue.d.ts +121 -5
- package/dist/runtime/components/forms/InputMenu.vue.d.ts +251 -11
- package/dist/runtime/components/forms/Radio.vue.d.ts +24 -4
- package/dist/runtime/components/forms/RadioGroup.vue.d.ts +61 -10
- package/dist/runtime/components/forms/Range.vue.d.ts +70 -4
- package/dist/runtime/components/forms/Select.vue.d.ts +117 -4
- package/dist/runtime/components/forms/SelectMenu.vue +1 -1
- package/dist/runtime/components/forms/SelectMenu.vue.d.ts +258 -11
- package/dist/runtime/components/forms/Textarea.vue.d.ts +120 -5
- package/dist/runtime/components/forms/Toggle.vue.d.ts +69 -4
- package/dist/runtime/components/layout/Card.vue.d.ts +30 -4
- package/dist/runtime/components/layout/Container.vue.d.ts +12 -4
- package/dist/runtime/components/layout/Divider.vue.d.ts +124 -8
- package/dist/runtime/components/layout/Skeleton.vue.d.ts +12 -4
- package/dist/runtime/components/navigation/Breadcrumb.vue.d.ts +29 -6
- package/dist/runtime/components/navigation/CommandPalette.vue.d.ts +256 -18
- package/dist/runtime/components/navigation/CommandPaletteGroup.vue.d.ts +87 -6
- package/dist/runtime/components/navigation/HorizontalNavigation.vue.d.ts +139 -12
- package/dist/runtime/components/navigation/Pagination.vue.d.ts +131 -11
- package/dist/runtime/components/navigation/Tabs.vue.d.ts +41 -4
- package/dist/runtime/components/navigation/VerticalNavigation.vue.d.ts +269 -19
- package/dist/runtime/components/overlays/ContextMenu.vue.d.ts +37 -4
- package/dist/runtime/components/overlays/Modal.vue +2 -2
- package/dist/runtime/components/overlays/Modal.vue.d.ts +50 -5
- package/dist/runtime/components/overlays/Notification.vue.d.ts +212 -15
- package/dist/runtime/components/overlays/Notifications.vue.d.ts +224 -18
- package/dist/runtime/components/overlays/Popover.vue.d.ts +53 -4
- package/dist/runtime/components/overlays/Slideover.vue +2 -2
- package/dist/runtime/components/overlays/Slideover.vue.d.ts +49 -5
- package/dist/runtime/components/overlays/Tooltip.vue.d.ts +65 -7
- package/dist/runtime/composables/useFormGroup.js +1 -1
- package/dist/runtime/composables/useUI.d.ts +2 -2
- package/dist/runtime/composables/useUI.js +1 -1
- package/dist/runtime/ui.config/navigation/tabs.js +1 -1
- package/package.json +4 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
2
|
import { twJoin } from 'tailwind-merge';
|
|
3
|
-
import type { VerticalNavigationLink, Strategy } from '../../types/index.js';
|
|
3
|
+
import type { VerticalNavigationLink, Strategy, DeepPartial } from '../../types/index.js';
|
|
4
4
|
declare const config: {
|
|
5
5
|
wrapper: string;
|
|
6
6
|
base: string;
|
|
@@ -44,7 +44,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
44
44
|
default: () => string;
|
|
45
45
|
};
|
|
46
46
|
ui: {
|
|
47
|
-
type: PropType<
|
|
47
|
+
type: PropType<DeepPartial<typeof config> & {
|
|
48
48
|
strategy?: Strategy;
|
|
49
49
|
}>;
|
|
50
50
|
default: () => {};
|
|
@@ -100,14 +100,50 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
100
100
|
default: () => string;
|
|
101
101
|
};
|
|
102
102
|
ui: {
|
|
103
|
-
type: PropType<
|
|
103
|
+
type: PropType<DeepPartial<typeof config> & {
|
|
104
104
|
strategy?: Strategy;
|
|
105
105
|
}>;
|
|
106
106
|
default: () => {};
|
|
107
107
|
};
|
|
108
108
|
}>> & Readonly<{}>, {
|
|
109
109
|
class: any;
|
|
110
|
-
ui: {
|
|
110
|
+
ui: {
|
|
111
|
+
wrapper?: string;
|
|
112
|
+
base?: string;
|
|
113
|
+
ring?: string;
|
|
114
|
+
padding?: string;
|
|
115
|
+
width?: string;
|
|
116
|
+
rounded?: string;
|
|
117
|
+
font?: string;
|
|
118
|
+
size?: string;
|
|
119
|
+
active?: string;
|
|
120
|
+
inactive?: string;
|
|
121
|
+
label?: string;
|
|
122
|
+
icon?: DeepPartial<{
|
|
123
|
+
base: string;
|
|
124
|
+
active: string;
|
|
125
|
+
inactive: string;
|
|
126
|
+
}, any>;
|
|
127
|
+
avatar?: DeepPartial<{
|
|
128
|
+
base: string;
|
|
129
|
+
size: "2xs";
|
|
130
|
+
}, any>;
|
|
131
|
+
badge?: DeepPartial<{
|
|
132
|
+
base: string;
|
|
133
|
+
color: "gray";
|
|
134
|
+
variant: "solid";
|
|
135
|
+
size: "xs";
|
|
136
|
+
}, any>;
|
|
137
|
+
divider?: DeepPartial<{
|
|
138
|
+
wrapper: {
|
|
139
|
+
base: string;
|
|
140
|
+
};
|
|
141
|
+
}, any>;
|
|
142
|
+
} & {
|
|
143
|
+
[key: string]: any;
|
|
144
|
+
} & {
|
|
145
|
+
strategy?: Strategy;
|
|
146
|
+
};
|
|
111
147
|
links: VerticalNavigationLink[] | VerticalNavigationLink[][];
|
|
112
148
|
}, {}, {
|
|
113
149
|
UIcon: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
@@ -204,7 +240,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
204
240
|
default: () => "";
|
|
205
241
|
};
|
|
206
242
|
ui: {
|
|
207
|
-
type: PropType<
|
|
243
|
+
type: PropType<DeepPartial<{
|
|
208
244
|
wrapper: string;
|
|
209
245
|
background: string;
|
|
210
246
|
rounded: string;
|
|
@@ -387,7 +423,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
387
423
|
default: () => "";
|
|
388
424
|
};
|
|
389
425
|
ui: {
|
|
390
|
-
type: PropType<
|
|
426
|
+
type: PropType<DeepPartial<{
|
|
391
427
|
wrapper: string;
|
|
392
428
|
background: string;
|
|
393
429
|
rounded: string;
|
|
@@ -456,7 +492,69 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
456
492
|
as: string | Record<string, any>;
|
|
457
493
|
text: string;
|
|
458
494
|
alt: string;
|
|
459
|
-
ui: {
|
|
495
|
+
ui: {
|
|
496
|
+
wrapper?: string;
|
|
497
|
+
background?: string;
|
|
498
|
+
rounded?: string;
|
|
499
|
+
text?: string;
|
|
500
|
+
placeholder?: string;
|
|
501
|
+
size?: DeepPartial<{
|
|
502
|
+
'3xs': string;
|
|
503
|
+
'2xs': string;
|
|
504
|
+
xs: string;
|
|
505
|
+
sm: string;
|
|
506
|
+
md: string;
|
|
507
|
+
lg: string;
|
|
508
|
+
xl: string;
|
|
509
|
+
'2xl': string;
|
|
510
|
+
'3xl': string;
|
|
511
|
+
}, any>;
|
|
512
|
+
chip?: DeepPartial<{
|
|
513
|
+
base: string;
|
|
514
|
+
background: string;
|
|
515
|
+
position: {
|
|
516
|
+
'top-right': string;
|
|
517
|
+
'bottom-right': string;
|
|
518
|
+
'top-left': string;
|
|
519
|
+
'bottom-left': string;
|
|
520
|
+
};
|
|
521
|
+
size: {
|
|
522
|
+
'3xs': string;
|
|
523
|
+
'2xs': string;
|
|
524
|
+
xs: string;
|
|
525
|
+
sm: string;
|
|
526
|
+
md: string;
|
|
527
|
+
lg: string;
|
|
528
|
+
xl: string;
|
|
529
|
+
'2xl': string;
|
|
530
|
+
'3xl': string;
|
|
531
|
+
};
|
|
532
|
+
}, any>;
|
|
533
|
+
icon?: DeepPartial<{
|
|
534
|
+
base: string;
|
|
535
|
+
size: {
|
|
536
|
+
'3xs': string;
|
|
537
|
+
'2xs': string;
|
|
538
|
+
xs: string;
|
|
539
|
+
sm: string;
|
|
540
|
+
md: string;
|
|
541
|
+
lg: string;
|
|
542
|
+
xl: string;
|
|
543
|
+
'2xl': string;
|
|
544
|
+
'3xl': string;
|
|
545
|
+
};
|
|
546
|
+
}, any>;
|
|
547
|
+
default?: DeepPartial<{
|
|
548
|
+
size: string;
|
|
549
|
+
icon: any;
|
|
550
|
+
chipColor: any;
|
|
551
|
+
chipPosition: string;
|
|
552
|
+
}, any>;
|
|
553
|
+
} & {
|
|
554
|
+
[key: string]: any;
|
|
555
|
+
} & {
|
|
556
|
+
strategy?: Strategy;
|
|
557
|
+
};
|
|
460
558
|
icon: string;
|
|
461
559
|
src: string | boolean;
|
|
462
560
|
chipColor: import("../../types/avatar").AvatarChipColor;
|
|
@@ -535,7 +633,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
535
633
|
default: () => "";
|
|
536
634
|
};
|
|
537
635
|
ui: {
|
|
538
|
-
type: PropType<
|
|
636
|
+
type: PropType<DeepPartial<{
|
|
539
637
|
base: string;
|
|
540
638
|
rounded: string;
|
|
541
639
|
font: string;
|
|
@@ -602,7 +700,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
602
700
|
default: () => "";
|
|
603
701
|
};
|
|
604
702
|
ui: {
|
|
605
|
-
type: PropType<
|
|
703
|
+
type: PropType<DeepPartial<{
|
|
606
704
|
base: string;
|
|
607
705
|
rounded: string;
|
|
608
706
|
font: string;
|
|
@@ -645,7 +743,43 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
645
743
|
color: import("../../types/badge").BadgeColor;
|
|
646
744
|
variant: import("../../types/badge").BadgeVariant;
|
|
647
745
|
label: string | number;
|
|
648
|
-
ui: {
|
|
746
|
+
ui: {
|
|
747
|
+
base?: string;
|
|
748
|
+
rounded?: string;
|
|
749
|
+
font?: string;
|
|
750
|
+
size?: DeepPartial<{
|
|
751
|
+
xs: string;
|
|
752
|
+
sm: string;
|
|
753
|
+
md: string;
|
|
754
|
+
lg: string;
|
|
755
|
+
}, any>;
|
|
756
|
+
color?: DeepPartial<{
|
|
757
|
+
white: {
|
|
758
|
+
solid: string;
|
|
759
|
+
};
|
|
760
|
+
gray: {
|
|
761
|
+
solid: string;
|
|
762
|
+
};
|
|
763
|
+
black: {
|
|
764
|
+
solid: string;
|
|
765
|
+
};
|
|
766
|
+
}, any>;
|
|
767
|
+
variant?: DeepPartial<{
|
|
768
|
+
solid: string;
|
|
769
|
+
outline: string;
|
|
770
|
+
soft: string;
|
|
771
|
+
subtle: string;
|
|
772
|
+
}, any>;
|
|
773
|
+
default?: DeepPartial<{
|
|
774
|
+
size: string;
|
|
775
|
+
variant: string;
|
|
776
|
+
color: string;
|
|
777
|
+
}, any>;
|
|
778
|
+
} & {
|
|
779
|
+
[key: string]: any;
|
|
780
|
+
} & {
|
|
781
|
+
strategy?: Strategy;
|
|
782
|
+
};
|
|
649
783
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
650
784
|
ULink: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
651
785
|
as: {
|
|
@@ -850,7 +984,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
850
984
|
};
|
|
851
985
|
}>> & Readonly<{}>, {
|
|
852
986
|
type: string;
|
|
853
|
-
to:
|
|
987
|
+
to: string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric;
|
|
854
988
|
disabled: boolean;
|
|
855
989
|
target: "_blank" | "_parent" | "_self" | "_top" | (string & {});
|
|
856
990
|
activeClass: string;
|
|
@@ -868,7 +1002,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
868
1002
|
exactQuery: boolean;
|
|
869
1003
|
exactHash: boolean;
|
|
870
1004
|
inactiveClass: string;
|
|
871
|
-
href:
|
|
1005
|
+
href: string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric;
|
|
872
1006
|
rel: any;
|
|
873
1007
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
874
1008
|
UDivider: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
@@ -904,7 +1038,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
904
1038
|
default: () => "";
|
|
905
1039
|
};
|
|
906
1040
|
ui: {
|
|
907
|
-
type: PropType<
|
|
1041
|
+
type: PropType<DeepPartial<{
|
|
908
1042
|
wrapper: {
|
|
909
1043
|
base: string;
|
|
910
1044
|
horizontal: string;
|
|
@@ -1050,7 +1184,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1050
1184
|
default: () => "";
|
|
1051
1185
|
};
|
|
1052
1186
|
ui: {
|
|
1053
|
-
type: PropType<
|
|
1187
|
+
type: PropType<DeepPartial<{
|
|
1054
1188
|
wrapper: {
|
|
1055
1189
|
base: string;
|
|
1056
1190
|
horizontal: string;
|
|
@@ -1109,10 +1243,64 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1109
1243
|
type: "solid" | "dotted" | "dashed";
|
|
1110
1244
|
size: import("../../types/divider").DividerSize;
|
|
1111
1245
|
class: any;
|
|
1112
|
-
avatar:
|
|
1246
|
+
avatar: import("../../types/avatar").Avatar;
|
|
1113
1247
|
label: string;
|
|
1114
1248
|
orientation: "horizontal" | "vertical";
|
|
1115
|
-
ui: {
|
|
1249
|
+
ui: {
|
|
1250
|
+
wrapper?: DeepPartial<{
|
|
1251
|
+
base: string;
|
|
1252
|
+
horizontal: string;
|
|
1253
|
+
vertical: string;
|
|
1254
|
+
}, any>;
|
|
1255
|
+
container?: DeepPartial<{
|
|
1256
|
+
base: string;
|
|
1257
|
+
horizontal: string;
|
|
1258
|
+
vertical: string;
|
|
1259
|
+
}, any>;
|
|
1260
|
+
border?: DeepPartial<{
|
|
1261
|
+
base: string;
|
|
1262
|
+
horizontal: string;
|
|
1263
|
+
vertical: string;
|
|
1264
|
+
size: {
|
|
1265
|
+
horizontal: {
|
|
1266
|
+
'2xs': string;
|
|
1267
|
+
xs: string;
|
|
1268
|
+
sm: string;
|
|
1269
|
+
md: string;
|
|
1270
|
+
lg: string;
|
|
1271
|
+
xl: string;
|
|
1272
|
+
};
|
|
1273
|
+
vertical: {
|
|
1274
|
+
'2xs': string;
|
|
1275
|
+
xs: string;
|
|
1276
|
+
sm: string;
|
|
1277
|
+
md: string;
|
|
1278
|
+
lg: string;
|
|
1279
|
+
xl: string;
|
|
1280
|
+
};
|
|
1281
|
+
};
|
|
1282
|
+
type: {
|
|
1283
|
+
solid: string;
|
|
1284
|
+
dotted: string;
|
|
1285
|
+
dashed: string;
|
|
1286
|
+
};
|
|
1287
|
+
}, any>;
|
|
1288
|
+
icon?: DeepPartial<{
|
|
1289
|
+
base: string;
|
|
1290
|
+
}, any>;
|
|
1291
|
+
avatar?: DeepPartial<{
|
|
1292
|
+
base: string;
|
|
1293
|
+
size: "2xs";
|
|
1294
|
+
}, any>;
|
|
1295
|
+
label?: string;
|
|
1296
|
+
default?: DeepPartial<{
|
|
1297
|
+
size: "2xs";
|
|
1298
|
+
}, any>;
|
|
1299
|
+
} & {
|
|
1300
|
+
[key: string]: any;
|
|
1301
|
+
} & {
|
|
1302
|
+
strategy?: Strategy;
|
|
1303
|
+
};
|
|
1116
1304
|
icon: string;
|
|
1117
1305
|
}, {}, {
|
|
1118
1306
|
UIcon: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
@@ -1209,7 +1397,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1209
1397
|
default: () => "";
|
|
1210
1398
|
};
|
|
1211
1399
|
ui: {
|
|
1212
|
-
type: PropType<
|
|
1400
|
+
type: PropType<DeepPartial<{
|
|
1213
1401
|
wrapper: string;
|
|
1214
1402
|
background: string;
|
|
1215
1403
|
rounded: string;
|
|
@@ -1392,7 +1580,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1392
1580
|
default: () => "";
|
|
1393
1581
|
};
|
|
1394
1582
|
ui: {
|
|
1395
|
-
type: PropType<
|
|
1583
|
+
type: PropType<DeepPartial<{
|
|
1396
1584
|
wrapper: string;
|
|
1397
1585
|
background: string;
|
|
1398
1586
|
rounded: string;
|
|
@@ -1461,7 +1649,69 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1461
1649
|
as: string | Record<string, any>;
|
|
1462
1650
|
text: string;
|
|
1463
1651
|
alt: string;
|
|
1464
|
-
ui: {
|
|
1652
|
+
ui: {
|
|
1653
|
+
wrapper?: string;
|
|
1654
|
+
background?: string;
|
|
1655
|
+
rounded?: string;
|
|
1656
|
+
text?: string;
|
|
1657
|
+
placeholder?: string;
|
|
1658
|
+
size?: DeepPartial<{
|
|
1659
|
+
'3xs': string;
|
|
1660
|
+
'2xs': string;
|
|
1661
|
+
xs: string;
|
|
1662
|
+
sm: string;
|
|
1663
|
+
md: string;
|
|
1664
|
+
lg: string;
|
|
1665
|
+
xl: string;
|
|
1666
|
+
'2xl': string;
|
|
1667
|
+
'3xl': string;
|
|
1668
|
+
}, any>;
|
|
1669
|
+
chip?: DeepPartial<{
|
|
1670
|
+
base: string;
|
|
1671
|
+
background: string;
|
|
1672
|
+
position: {
|
|
1673
|
+
'top-right': string;
|
|
1674
|
+
'bottom-right': string;
|
|
1675
|
+
'top-left': string;
|
|
1676
|
+
'bottom-left': string;
|
|
1677
|
+
};
|
|
1678
|
+
size: {
|
|
1679
|
+
'3xs': string;
|
|
1680
|
+
'2xs': string;
|
|
1681
|
+
xs: string;
|
|
1682
|
+
sm: string;
|
|
1683
|
+
md: string;
|
|
1684
|
+
lg: string;
|
|
1685
|
+
xl: string;
|
|
1686
|
+
'2xl': string;
|
|
1687
|
+
'3xl': string;
|
|
1688
|
+
};
|
|
1689
|
+
}, any>;
|
|
1690
|
+
icon?: DeepPartial<{
|
|
1691
|
+
base: string;
|
|
1692
|
+
size: {
|
|
1693
|
+
'3xs': string;
|
|
1694
|
+
'2xs': string;
|
|
1695
|
+
xs: string;
|
|
1696
|
+
sm: string;
|
|
1697
|
+
md: string;
|
|
1698
|
+
lg: string;
|
|
1699
|
+
xl: string;
|
|
1700
|
+
'2xl': string;
|
|
1701
|
+
'3xl': string;
|
|
1702
|
+
};
|
|
1703
|
+
}, any>;
|
|
1704
|
+
default?: DeepPartial<{
|
|
1705
|
+
size: string;
|
|
1706
|
+
icon: any;
|
|
1707
|
+
chipColor: any;
|
|
1708
|
+
chipPosition: string;
|
|
1709
|
+
}, any>;
|
|
1710
|
+
} & {
|
|
1711
|
+
[key: string]: any;
|
|
1712
|
+
} & {
|
|
1713
|
+
strategy?: Strategy;
|
|
1714
|
+
};
|
|
1465
1715
|
icon: string;
|
|
1466
1716
|
src: string | boolean;
|
|
1467
1717
|
chipColor: import("../../types/avatar").AvatarChipColor;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PropType, Ref } from 'vue';
|
|
2
|
-
import type { PopperOptions, Strategy } from '../../types/index.js';
|
|
2
|
+
import type { DeepPartial, PopperOptions, Strategy } from '../../types/index.js';
|
|
3
3
|
declare const config: {
|
|
4
4
|
wrapper: string;
|
|
5
5
|
container: string;
|
|
@@ -48,7 +48,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
48
48
|
default: () => string;
|
|
49
49
|
};
|
|
50
50
|
ui: {
|
|
51
|
-
type: PropType<
|
|
51
|
+
type: PropType<DeepPartial<typeof config> & {
|
|
52
52
|
strategy?: Strategy;
|
|
53
53
|
}>;
|
|
54
54
|
default: () => {};
|
|
@@ -109,7 +109,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
109
109
|
default: () => string;
|
|
110
110
|
};
|
|
111
111
|
ui: {
|
|
112
|
-
type: PropType<
|
|
112
|
+
type: PropType<DeepPartial<typeof config> & {
|
|
113
113
|
strategy?: Strategy;
|
|
114
114
|
}>;
|
|
115
115
|
default: () => {};
|
|
@@ -120,7 +120,40 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
120
120
|
}>, {
|
|
121
121
|
class: any;
|
|
122
122
|
popper: PopperOptions;
|
|
123
|
-
ui: {
|
|
123
|
+
ui: {
|
|
124
|
+
wrapper?: string;
|
|
125
|
+
container?: string;
|
|
126
|
+
width?: string;
|
|
127
|
+
background?: string;
|
|
128
|
+
shadow?: string;
|
|
129
|
+
rounded?: string;
|
|
130
|
+
ring?: string;
|
|
131
|
+
base?: string;
|
|
132
|
+
transition?: DeepPartial<{
|
|
133
|
+
enterActiveClass: string;
|
|
134
|
+
enterFromClass: string;
|
|
135
|
+
enterToClass: string;
|
|
136
|
+
leaveActiveClass: string;
|
|
137
|
+
leaveFromClass: string;
|
|
138
|
+
leaveToClass: string;
|
|
139
|
+
}, any>;
|
|
140
|
+
popper?: DeepPartial<{
|
|
141
|
+
placement: string;
|
|
142
|
+
scroll: boolean;
|
|
143
|
+
}, any>;
|
|
144
|
+
arrow?: DeepPartial<{
|
|
145
|
+
base: string;
|
|
146
|
+
ring: string;
|
|
147
|
+
rounded: string;
|
|
148
|
+
background: string;
|
|
149
|
+
shadow: string;
|
|
150
|
+
placement: string;
|
|
151
|
+
}, any>;
|
|
152
|
+
} & {
|
|
153
|
+
[key: string]: any;
|
|
154
|
+
} & {
|
|
155
|
+
strategy?: Strategy;
|
|
156
|
+
};
|
|
124
157
|
modelValue: boolean;
|
|
125
158
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
126
159
|
export default _default;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<TransitionRoot :appear="appear" :show="isOpen" as="template" @after-leave="onAfterLeave">
|
|
3
3
|
<HDialog :class="ui.wrapper" v-bind="attrs" @close="close">
|
|
4
|
-
<TransitionChild v-if="overlay" as="template" :appear="appear" v-bind="ui.overlay.transition">
|
|
4
|
+
<TransitionChild v-if="overlay" as="template" :appear="appear" v-bind="ui.overlay.transition" :class="ui.overlay.transition.enterFrom">
|
|
5
5
|
<div :class="[ui.overlay.base, ui.overlay.background]" />
|
|
6
6
|
</TransitionChild>
|
|
7
7
|
|
|
8
8
|
<div :class="ui.inner">
|
|
9
9
|
<div :class="[ui.container, !fullscreen && ui.padding]">
|
|
10
|
-
<TransitionChild as="template" :appear="appear" v-bind="transitionClass">
|
|
10
|
+
<TransitionChild as="template" :appear="appear" v-bind="transitionClass" :class="transitionClass.enterFrom">
|
|
11
11
|
<HDialogPanel
|
|
12
12
|
:class="[
|
|
13
13
|
ui.base,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
|
-
import type { Strategy } from '../../types/index.js';
|
|
2
|
+
import type { DeepPartial, Strategy } from '../../types/index.js';
|
|
3
3
|
declare const config: {
|
|
4
4
|
wrapper: string;
|
|
5
5
|
inner: string;
|
|
@@ -65,7 +65,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
65
65
|
default: () => string;
|
|
66
66
|
};
|
|
67
67
|
ui: {
|
|
68
|
-
type: PropType<
|
|
68
|
+
type: PropType<DeepPartial<typeof config> & {
|
|
69
69
|
strategy?: Strategy;
|
|
70
70
|
}>;
|
|
71
71
|
default: () => {};
|
|
@@ -110,7 +110,14 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
110
110
|
[x: string]: unknown;
|
|
111
111
|
}, string>>;
|
|
112
112
|
isOpen: import("vue").WritableComputedRef<boolean, boolean>;
|
|
113
|
-
transitionClass: import("vue").ComputedRef<{
|
|
113
|
+
transitionClass: import("vue").ComputedRef<{
|
|
114
|
+
enter: string;
|
|
115
|
+
enterFrom: string;
|
|
116
|
+
enterTo: string;
|
|
117
|
+
leave: string;
|
|
118
|
+
leaveFrom: string;
|
|
119
|
+
leaveTo: string;
|
|
120
|
+
}>;
|
|
114
121
|
onAfterLeave: () => void;
|
|
115
122
|
close: (value: boolean) => void;
|
|
116
123
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "update:modelValue" | "close-prevented" | "after-leave")[], "close" | "update:modelValue" | "close-prevented" | "after-leave", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -143,7 +150,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
143
150
|
default: () => string;
|
|
144
151
|
};
|
|
145
152
|
ui: {
|
|
146
|
-
type: PropType<
|
|
153
|
+
type: PropType<DeepPartial<typeof config> & {
|
|
147
154
|
strategy?: Strategy;
|
|
148
155
|
}>;
|
|
149
156
|
default: () => {};
|
|
@@ -157,7 +164,45 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
157
164
|
class: any;
|
|
158
165
|
appear: boolean;
|
|
159
166
|
transition: boolean;
|
|
160
|
-
ui: {
|
|
167
|
+
ui: {
|
|
168
|
+
wrapper?: string;
|
|
169
|
+
inner?: string;
|
|
170
|
+
container?: string;
|
|
171
|
+
padding?: string;
|
|
172
|
+
margin?: string;
|
|
173
|
+
base?: string;
|
|
174
|
+
overlay?: DeepPartial<{
|
|
175
|
+
base: string;
|
|
176
|
+
background: string;
|
|
177
|
+
transition: {
|
|
178
|
+
enter: string;
|
|
179
|
+
enterFrom: string;
|
|
180
|
+
enterTo: string;
|
|
181
|
+
leave: string;
|
|
182
|
+
leaveFrom: string;
|
|
183
|
+
leaveTo: string;
|
|
184
|
+
};
|
|
185
|
+
}, any>;
|
|
186
|
+
background?: string;
|
|
187
|
+
ring?: string;
|
|
188
|
+
rounded?: string;
|
|
189
|
+
shadow?: string;
|
|
190
|
+
width?: string;
|
|
191
|
+
height?: string;
|
|
192
|
+
fullscreen?: string;
|
|
193
|
+
transition?: DeepPartial<{
|
|
194
|
+
enter: string;
|
|
195
|
+
enterFrom: string;
|
|
196
|
+
enterTo: string;
|
|
197
|
+
leave: string;
|
|
198
|
+
leaveFrom: string;
|
|
199
|
+
leaveTo: string;
|
|
200
|
+
}, any>;
|
|
201
|
+
} & {
|
|
202
|
+
[key: string]: any;
|
|
203
|
+
} & {
|
|
204
|
+
strategy?: Strategy;
|
|
205
|
+
};
|
|
161
206
|
overlay: boolean;
|
|
162
207
|
preventClose: boolean;
|
|
163
208
|
fullscreen: boolean;
|