@weni/unnnic-system 3.25.3 → 3.25.4
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/{es-Bt0iHoNn.mjs → es-DhZJ3CJX.mjs} +1 -1
- package/dist/{index-BOJS85q7.mjs → index-Cy43R3kL.mjs} +5169 -5133
- package/dist/index.d.ts +179 -31
- package/dist/{pt-br-DJBNmtUV.mjs → pt-br-FleRBCmo.mjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/unnnic.mjs +1 -1
- package/dist/unnnic.umd.js +29 -29
- package/package.json +1 -1
- package/src/components/Drawer/Drawer.vue +10 -0
- package/src/components/Drawer/__tests__/__snapshots__/Drawer.spec.js.snap +1 -1
- package/src/components/ui/dialog/Dialog.vue +35 -3
- package/src/components/ui/dialog/DialogContent.vue +2 -1
- package/src/components/ui/drawer/Drawer.vue +56 -3
- package/src/components/ui/drawer/DrawerContent.vue +2 -1
- package/src/composables/useDelayedUnmount.ts +48 -0
- package/src/stories/Dialog.stories.js +18 -0
- package/src/stories/DrawerNext.stories.js +18 -0
package/dist/index.d.ts
CHANGED
|
@@ -14,7 +14,6 @@ import { DialogDescriptionProps } from 'reka-ui';
|
|
|
14
14
|
import { DialogRootProps } from 'reka-ui';
|
|
15
15
|
import { DialogTitleProps } from 'reka-ui';
|
|
16
16
|
import { DialogTriggerProps } from 'reka-ui';
|
|
17
|
-
import { DrawerRootProps } from 'vaul-vue';
|
|
18
17
|
import { ExtractPropTypes } from 'vue';
|
|
19
18
|
import { FocusOutsideEvent } from 'reka-ui';
|
|
20
19
|
import { GlobalComponents } from 'vue';
|
|
@@ -117,6 +116,33 @@ declare interface DisclaimerProps {
|
|
|
117
116
|
|
|
118
117
|
declare type DisclaimerType = 'informational' | 'success' | 'attention' | 'error' | 'neutral';
|
|
119
118
|
|
|
119
|
+
/**
|
|
120
|
+
* Self-contained props type that mirrors `vaul-vue`'s `DrawerRootProps`.
|
|
121
|
+
*
|
|
122
|
+
* We intentionally avoid extending or intersecting `DrawerRootProps` because
|
|
123
|
+
* its definition includes the internal, non-exported `WithoutFadeFromProps`
|
|
124
|
+
* type, which breaks `vite-plugin-dts` declaration rollup with TS4023 when
|
|
125
|
+
* combined with our extra `lazyMount` / `unmountDelay` props.
|
|
126
|
+
*/
|
|
127
|
+
declare interface DrawerRootProps {
|
|
128
|
+
activeSnapPoint?: number | string | null;
|
|
129
|
+
closeThreshold?: number;
|
|
130
|
+
shouldScaleBackground?: boolean;
|
|
131
|
+
setBackgroundColorOnScale?: boolean;
|
|
132
|
+
scrollLockTimeout?: number;
|
|
133
|
+
fixed?: boolean;
|
|
134
|
+
dismissible?: boolean;
|
|
135
|
+
modal?: boolean;
|
|
136
|
+
open?: boolean;
|
|
137
|
+
defaultOpen?: boolean;
|
|
138
|
+
nested?: boolean;
|
|
139
|
+
direction?: 'top' | 'bottom' | 'left' | 'right';
|
|
140
|
+
noBodyStyles?: boolean;
|
|
141
|
+
handleOnly?: boolean;
|
|
142
|
+
preventScrollRestoration?: boolean;
|
|
143
|
+
snapPoints?: (number | string)[];
|
|
144
|
+
}
|
|
145
|
+
|
|
120
146
|
declare interface FormElementProps {
|
|
121
147
|
size?: 'md' | 'sm';
|
|
122
148
|
label?: string;
|
|
@@ -10389,56 +10415,92 @@ variant: "card" | "popover";
|
|
|
10389
10415
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
10390
10416
|
|
|
10391
10417
|
export declare const UnnnicDialog: {
|
|
10392
|
-
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<DialogRootProps
|
|
10418
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<DialogRootProps & {
|
|
10419
|
+
lazyMount?: boolean;
|
|
10420
|
+
unmountDelay?: number;
|
|
10421
|
+
}> & Readonly<{
|
|
10393
10422
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
10394
10423
|
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
10395
10424
|
"update:open": (value: boolean) => any;
|
|
10396
|
-
}, PublicProps, {
|
|
10425
|
+
}, PublicProps, {
|
|
10426
|
+
lazyMount: boolean;
|
|
10427
|
+
unmountDelay: number;
|
|
10428
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
10397
10429
|
P: {};
|
|
10398
10430
|
B: {};
|
|
10399
10431
|
D: {};
|
|
10400
10432
|
C: {};
|
|
10401
10433
|
M: {};
|
|
10402
10434
|
Defaults: {};
|
|
10403
|
-
}, Readonly<DialogRootProps
|
|
10435
|
+
}, Readonly<DialogRootProps & {
|
|
10436
|
+
lazyMount?: boolean;
|
|
10437
|
+
unmountDelay?: number;
|
|
10438
|
+
}> & Readonly<{
|
|
10404
10439
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
10405
|
-
}>, {}, {}, {}, {}, {
|
|
10440
|
+
}>, {}, {}, {}, {}, {
|
|
10441
|
+
lazyMount: boolean;
|
|
10442
|
+
unmountDelay: number;
|
|
10443
|
+
}>;
|
|
10406
10444
|
__isFragment?: never;
|
|
10407
10445
|
__isTeleport?: never;
|
|
10408
10446
|
__isSuspense?: never;
|
|
10409
|
-
} & ComponentOptionsBase<Readonly<DialogRootProps
|
|
10447
|
+
} & ComponentOptionsBase<Readonly<DialogRootProps & {
|
|
10448
|
+
lazyMount?: boolean;
|
|
10449
|
+
unmountDelay?: number;
|
|
10450
|
+
}> & Readonly<{
|
|
10410
10451
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
10411
10452
|
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
10412
10453
|
"update:open": (value: boolean) => any;
|
|
10413
|
-
}, string, {
|
|
10454
|
+
}, string, {
|
|
10455
|
+
lazyMount: boolean;
|
|
10456
|
+
unmountDelay: number;
|
|
10457
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
10414
10458
|
$slots: {
|
|
10415
10459
|
default?(_: {}): any;
|
|
10416
10460
|
};
|
|
10417
10461
|
});
|
|
10418
10462
|
|
|
10419
10463
|
export declare const unnnicDialog: {
|
|
10420
|
-
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<DialogRootProps
|
|
10464
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<DialogRootProps & {
|
|
10465
|
+
lazyMount?: boolean;
|
|
10466
|
+
unmountDelay?: number;
|
|
10467
|
+
}> & Readonly<{
|
|
10421
10468
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
10422
10469
|
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
10423
10470
|
"update:open": (value: boolean) => any;
|
|
10424
|
-
}, PublicProps, {
|
|
10471
|
+
}, PublicProps, {
|
|
10472
|
+
lazyMount: boolean;
|
|
10473
|
+
unmountDelay: number;
|
|
10474
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
10425
10475
|
P: {};
|
|
10426
10476
|
B: {};
|
|
10427
10477
|
D: {};
|
|
10428
10478
|
C: {};
|
|
10429
10479
|
M: {};
|
|
10430
10480
|
Defaults: {};
|
|
10431
|
-
}, Readonly<DialogRootProps
|
|
10481
|
+
}, Readonly<DialogRootProps & {
|
|
10482
|
+
lazyMount?: boolean;
|
|
10483
|
+
unmountDelay?: number;
|
|
10484
|
+
}> & Readonly<{
|
|
10432
10485
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
10433
|
-
}>, {}, {}, {}, {}, {
|
|
10486
|
+
}>, {}, {}, {}, {}, {
|
|
10487
|
+
lazyMount: boolean;
|
|
10488
|
+
unmountDelay: number;
|
|
10489
|
+
}>;
|
|
10434
10490
|
__isFragment?: never;
|
|
10435
10491
|
__isTeleport?: never;
|
|
10436
10492
|
__isSuspense?: never;
|
|
10437
|
-
} & ComponentOptionsBase<Readonly<DialogRootProps
|
|
10493
|
+
} & ComponentOptionsBase<Readonly<DialogRootProps & {
|
|
10494
|
+
lazyMount?: boolean;
|
|
10495
|
+
unmountDelay?: number;
|
|
10496
|
+
}> & Readonly<{
|
|
10438
10497
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
10439
10498
|
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
10440
10499
|
"update:open": (value: boolean) => any;
|
|
10441
|
-
}, string, {
|
|
10500
|
+
}, string, {
|
|
10501
|
+
lazyMount: boolean;
|
|
10502
|
+
unmountDelay: number;
|
|
10503
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
10442
10504
|
$slots: {
|
|
10443
10505
|
default?(_: {}): any;
|
|
10444
10506
|
};
|
|
@@ -10967,6 +11029,8 @@ export declare const UnnnicDrawer: {
|
|
|
10967
11029
|
modelValue: boolean;
|
|
10968
11030
|
description: string;
|
|
10969
11031
|
closeIcon: string;
|
|
11032
|
+
lazyMount: boolean;
|
|
11033
|
+
unmountDelay: number;
|
|
10970
11034
|
disabledPrimaryButton: boolean;
|
|
10971
11035
|
disabledSecondaryButton: boolean;
|
|
10972
11036
|
loadingPrimaryButton: boolean;
|
|
@@ -10983,6 +11047,8 @@ export declare const UnnnicDrawer: {
|
|
|
10983
11047
|
readonly modelValue?: boolean | undefined;
|
|
10984
11048
|
readonly description?: string | undefined;
|
|
10985
11049
|
readonly closeIcon?: string | undefined;
|
|
11050
|
+
readonly lazyMount?: boolean | undefined;
|
|
11051
|
+
readonly unmountDelay?: number | undefined;
|
|
10986
11052
|
readonly disabledPrimaryButton?: boolean | undefined;
|
|
10987
11053
|
readonly disabledSecondaryButton?: boolean | undefined;
|
|
10988
11054
|
readonly loadingPrimaryButton?: boolean | undefined;
|
|
@@ -11008,6 +11074,8 @@ export declare const UnnnicDrawer: {
|
|
|
11008
11074
|
modelValue: boolean;
|
|
11009
11075
|
description: string;
|
|
11010
11076
|
closeIcon: string;
|
|
11077
|
+
lazyMount: boolean;
|
|
11078
|
+
unmountDelay: number;
|
|
11011
11079
|
disabledPrimaryButton: boolean;
|
|
11012
11080
|
disabledSecondaryButton: boolean;
|
|
11013
11081
|
loadingPrimaryButton: boolean;
|
|
@@ -11024,6 +11092,8 @@ export declare const UnnnicDrawer: {
|
|
|
11024
11092
|
readonly modelValue?: boolean | undefined;
|
|
11025
11093
|
readonly description?: string | undefined;
|
|
11026
11094
|
readonly closeIcon?: string | undefined;
|
|
11095
|
+
readonly lazyMount?: boolean | undefined;
|
|
11096
|
+
readonly unmountDelay?: number | undefined;
|
|
11027
11097
|
readonly disabledPrimaryButton?: boolean | undefined;
|
|
11028
11098
|
readonly disabledSecondaryButton?: boolean | undefined;
|
|
11029
11099
|
readonly loadingPrimaryButton?: boolean | undefined;
|
|
@@ -11046,6 +11116,8 @@ size: string;
|
|
|
11046
11116
|
modelValue: boolean;
|
|
11047
11117
|
description: string;
|
|
11048
11118
|
closeIcon: string;
|
|
11119
|
+
lazyMount: boolean;
|
|
11120
|
+
unmountDelay: number;
|
|
11049
11121
|
disabledPrimaryButton: boolean;
|
|
11050
11122
|
disabledSecondaryButton: boolean;
|
|
11051
11123
|
loadingPrimaryButton: boolean;
|
|
@@ -11062,6 +11134,8 @@ readonly size?: string | undefined;
|
|
|
11062
11134
|
readonly modelValue?: boolean | undefined;
|
|
11063
11135
|
readonly description?: string | undefined;
|
|
11064
11136
|
readonly closeIcon?: string | undefined;
|
|
11137
|
+
readonly lazyMount?: boolean | undefined;
|
|
11138
|
+
readonly unmountDelay?: number | undefined;
|
|
11065
11139
|
readonly disabledPrimaryButton?: boolean | undefined;
|
|
11066
11140
|
readonly disabledSecondaryButton?: boolean | undefined;
|
|
11067
11141
|
readonly loadingPrimaryButton?: boolean | undefined;
|
|
@@ -11088,6 +11162,8 @@ export declare const unnnicDrawer: {
|
|
|
11088
11162
|
modelValue: boolean;
|
|
11089
11163
|
description: string;
|
|
11090
11164
|
closeIcon: string;
|
|
11165
|
+
lazyMount: boolean;
|
|
11166
|
+
unmountDelay: number;
|
|
11091
11167
|
disabledPrimaryButton: boolean;
|
|
11092
11168
|
disabledSecondaryButton: boolean;
|
|
11093
11169
|
loadingPrimaryButton: boolean;
|
|
@@ -11104,6 +11180,8 @@ export declare const unnnicDrawer: {
|
|
|
11104
11180
|
readonly modelValue?: boolean | undefined;
|
|
11105
11181
|
readonly description?: string | undefined;
|
|
11106
11182
|
readonly closeIcon?: string | undefined;
|
|
11183
|
+
readonly lazyMount?: boolean | undefined;
|
|
11184
|
+
readonly unmountDelay?: number | undefined;
|
|
11107
11185
|
readonly disabledPrimaryButton?: boolean | undefined;
|
|
11108
11186
|
readonly disabledSecondaryButton?: boolean | undefined;
|
|
11109
11187
|
readonly loadingPrimaryButton?: boolean | undefined;
|
|
@@ -11129,6 +11207,8 @@ export declare const unnnicDrawer: {
|
|
|
11129
11207
|
modelValue: boolean;
|
|
11130
11208
|
description: string;
|
|
11131
11209
|
closeIcon: string;
|
|
11210
|
+
lazyMount: boolean;
|
|
11211
|
+
unmountDelay: number;
|
|
11132
11212
|
disabledPrimaryButton: boolean;
|
|
11133
11213
|
disabledSecondaryButton: boolean;
|
|
11134
11214
|
loadingPrimaryButton: boolean;
|
|
@@ -11145,6 +11225,8 @@ export declare const unnnicDrawer: {
|
|
|
11145
11225
|
readonly modelValue?: boolean | undefined;
|
|
11146
11226
|
readonly description?: string | undefined;
|
|
11147
11227
|
readonly closeIcon?: string | undefined;
|
|
11228
|
+
readonly lazyMount?: boolean | undefined;
|
|
11229
|
+
readonly unmountDelay?: number | undefined;
|
|
11148
11230
|
readonly disabledPrimaryButton?: boolean | undefined;
|
|
11149
11231
|
readonly disabledSecondaryButton?: boolean | undefined;
|
|
11150
11232
|
readonly loadingPrimaryButton?: boolean | undefined;
|
|
@@ -11167,6 +11249,8 @@ size: string;
|
|
|
11167
11249
|
modelValue: boolean;
|
|
11168
11250
|
description: string;
|
|
11169
11251
|
closeIcon: string;
|
|
11252
|
+
lazyMount: boolean;
|
|
11253
|
+
unmountDelay: number;
|
|
11170
11254
|
disabledPrimaryButton: boolean;
|
|
11171
11255
|
disabledSecondaryButton: boolean;
|
|
11172
11256
|
loadingPrimaryButton: boolean;
|
|
@@ -11183,6 +11267,8 @@ readonly size?: string | undefined;
|
|
|
11183
11267
|
readonly modelValue?: boolean | undefined;
|
|
11184
11268
|
readonly description?: string | undefined;
|
|
11185
11269
|
readonly closeIcon?: string | undefined;
|
|
11270
|
+
readonly lazyMount?: boolean | undefined;
|
|
11271
|
+
readonly unmountDelay?: number | undefined;
|
|
11186
11272
|
readonly disabledPrimaryButton?: boolean | undefined;
|
|
11187
11273
|
readonly disabledSecondaryButton?: boolean | undefined;
|
|
11188
11274
|
readonly loadingPrimaryButton?: boolean | undefined;
|
|
@@ -11553,7 +11639,7 @@ class?: HTMLAttributes["class"];
|
|
|
11553
11639
|
});
|
|
11554
11640
|
|
|
11555
11641
|
export declare const UnnnicDrawerNext: {
|
|
11556
|
-
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<
|
|
11642
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<UnnnicDrawerNextProps> & Readonly<{
|
|
11557
11643
|
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
11558
11644
|
onClose?: (() => any) | undefined;
|
|
11559
11645
|
onDrag?: ((percentageDragged: number) => any) | undefined;
|
|
@@ -11568,6 +11654,8 @@ export declare const UnnnicDrawerNext: {
|
|
|
11568
11654
|
release: (open: boolean) => any;
|
|
11569
11655
|
"update:activeSnapPoint": (val: string | number) => any;
|
|
11570
11656
|
}, PublicProps, {
|
|
11657
|
+
lazyMount: boolean;
|
|
11658
|
+
unmountDelay: number;
|
|
11571
11659
|
shouldScaleBackground: boolean;
|
|
11572
11660
|
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
11573
11661
|
P: {};
|
|
@@ -11576,7 +11664,7 @@ export declare const UnnnicDrawerNext: {
|
|
|
11576
11664
|
C: {};
|
|
11577
11665
|
M: {};
|
|
11578
11666
|
Defaults: {};
|
|
11579
|
-
}, Readonly<
|
|
11667
|
+
}, Readonly<UnnnicDrawerNextProps> & Readonly<{
|
|
11580
11668
|
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
11581
11669
|
onClose?: (() => any) | undefined;
|
|
11582
11670
|
onDrag?: ((percentageDragged: number) => any) | undefined;
|
|
@@ -11584,12 +11672,14 @@ export declare const UnnnicDrawerNext: {
|
|
|
11584
11672
|
onRelease?: ((open: boolean) => any) | undefined;
|
|
11585
11673
|
"onUpdate:activeSnapPoint"?: ((val: string | number) => any) | undefined;
|
|
11586
11674
|
}>, {}, {}, {}, {}, {
|
|
11675
|
+
lazyMount: boolean;
|
|
11676
|
+
unmountDelay: number;
|
|
11587
11677
|
shouldScaleBackground: boolean;
|
|
11588
11678
|
}>;
|
|
11589
11679
|
__isFragment?: never;
|
|
11590
11680
|
__isTeleport?: never;
|
|
11591
11681
|
__isSuspense?: never;
|
|
11592
|
-
} & ComponentOptionsBase<Readonly<
|
|
11682
|
+
} & ComponentOptionsBase<Readonly<UnnnicDrawerNextProps> & Readonly<{
|
|
11593
11683
|
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
11594
11684
|
onClose?: (() => any) | undefined;
|
|
11595
11685
|
onDrag?: ((percentageDragged: number) => any) | undefined;
|
|
@@ -11604,6 +11694,8 @@ animationEnd: (open: boolean) => any;
|
|
|
11604
11694
|
release: (open: boolean) => any;
|
|
11605
11695
|
"update:activeSnapPoint": (val: string | number) => any;
|
|
11606
11696
|
}, string, {
|
|
11697
|
+
lazyMount: boolean;
|
|
11698
|
+
unmountDelay: number;
|
|
11607
11699
|
shouldScaleBackground: boolean;
|
|
11608
11700
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
11609
11701
|
$slots: {
|
|
@@ -11612,7 +11704,7 @@ shouldScaleBackground: boolean;
|
|
|
11612
11704
|
});
|
|
11613
11705
|
|
|
11614
11706
|
export declare const unnnicDrawerNext: {
|
|
11615
|
-
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<
|
|
11707
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<UnnnicDrawerNextProps> & Readonly<{
|
|
11616
11708
|
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
11617
11709
|
onClose?: (() => any) | undefined;
|
|
11618
11710
|
onDrag?: ((percentageDragged: number) => any) | undefined;
|
|
@@ -11627,6 +11719,8 @@ export declare const unnnicDrawerNext: {
|
|
|
11627
11719
|
release: (open: boolean) => any;
|
|
11628
11720
|
"update:activeSnapPoint": (val: string | number) => any;
|
|
11629
11721
|
}, PublicProps, {
|
|
11722
|
+
lazyMount: boolean;
|
|
11723
|
+
unmountDelay: number;
|
|
11630
11724
|
shouldScaleBackground: boolean;
|
|
11631
11725
|
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
11632
11726
|
P: {};
|
|
@@ -11635,7 +11729,7 @@ export declare const unnnicDrawerNext: {
|
|
|
11635
11729
|
C: {};
|
|
11636
11730
|
M: {};
|
|
11637
11731
|
Defaults: {};
|
|
11638
|
-
}, Readonly<
|
|
11732
|
+
}, Readonly<UnnnicDrawerNextProps> & Readonly<{
|
|
11639
11733
|
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
11640
11734
|
onClose?: (() => any) | undefined;
|
|
11641
11735
|
onDrag?: ((percentageDragged: number) => any) | undefined;
|
|
@@ -11643,12 +11737,14 @@ export declare const unnnicDrawerNext: {
|
|
|
11643
11737
|
onRelease?: ((open: boolean) => any) | undefined;
|
|
11644
11738
|
"onUpdate:activeSnapPoint"?: ((val: string | number) => any) | undefined;
|
|
11645
11739
|
}>, {}, {}, {}, {}, {
|
|
11740
|
+
lazyMount: boolean;
|
|
11741
|
+
unmountDelay: number;
|
|
11646
11742
|
shouldScaleBackground: boolean;
|
|
11647
11743
|
}>;
|
|
11648
11744
|
__isFragment?: never;
|
|
11649
11745
|
__isTeleport?: never;
|
|
11650
11746
|
__isSuspense?: never;
|
|
11651
|
-
} & ComponentOptionsBase<Readonly<
|
|
11747
|
+
} & ComponentOptionsBase<Readonly<UnnnicDrawerNextProps> & Readonly<{
|
|
11652
11748
|
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
11653
11749
|
onClose?: (() => any) | undefined;
|
|
11654
11750
|
onDrag?: ((percentageDragged: number) => any) | undefined;
|
|
@@ -11663,6 +11759,8 @@ animationEnd: (open: boolean) => any;
|
|
|
11663
11759
|
release: (open: boolean) => any;
|
|
11664
11760
|
"update:activeSnapPoint": (val: string | number) => any;
|
|
11665
11761
|
}, string, {
|
|
11762
|
+
lazyMount: boolean;
|
|
11763
|
+
unmountDelay: number;
|
|
11666
11764
|
shouldScaleBackground: boolean;
|
|
11667
11765
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
11668
11766
|
$slots: {
|
|
@@ -11670,6 +11768,20 @@ shouldScaleBackground: boolean;
|
|
|
11670
11768
|
};
|
|
11671
11769
|
});
|
|
11672
11770
|
|
|
11771
|
+
declare interface UnnnicDrawerNextProps extends DrawerRootProps {
|
|
11772
|
+
/**
|
|
11773
|
+
* When true, the drawer is only mounted while open and stays mounted for
|
|
11774
|
+
* `unmountDelay` ms after closing so the exit animation can play. Use it
|
|
11775
|
+
* to avoid mounting many drawers eagerly inside lists.
|
|
11776
|
+
*/
|
|
11777
|
+
lazyMount?: boolean;
|
|
11778
|
+
/**
|
|
11779
|
+
* Delay (ms) before the drawer is unmounted after closing. Should match
|
|
11780
|
+
* the leave animation duration. Only applies when `lazyMount` is true.
|
|
11781
|
+
*/
|
|
11782
|
+
unmountDelay?: number;
|
|
11783
|
+
}
|
|
11784
|
+
|
|
11673
11785
|
export declare const UnnnicDrawerTitle: {
|
|
11674
11786
|
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<DialogTitleProps & {
|
|
11675
11787
|
class?: HTMLAttributes["class"];
|
|
@@ -14231,28 +14343,46 @@ default?(_: {}): any;
|
|
|
14231
14343
|
};
|
|
14232
14344
|
});
|
|
14233
14345
|
UnnnicDialog: {
|
|
14234
|
-
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<DialogRootProps
|
|
14346
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<DialogRootProps & {
|
|
14347
|
+
lazyMount?: boolean;
|
|
14348
|
+
unmountDelay?: number;
|
|
14349
|
+
}> & Readonly<{
|
|
14235
14350
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
14236
14351
|
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
14237
14352
|
"update:open": (value: boolean) => any;
|
|
14238
|
-
}, PublicProps, {
|
|
14353
|
+
}, PublicProps, {
|
|
14354
|
+
lazyMount: boolean;
|
|
14355
|
+
unmountDelay: number;
|
|
14356
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
14239
14357
|
P: {};
|
|
14240
14358
|
B: {};
|
|
14241
14359
|
D: {};
|
|
14242
14360
|
C: {};
|
|
14243
14361
|
M: {};
|
|
14244
14362
|
Defaults: {};
|
|
14245
|
-
}, Readonly<DialogRootProps
|
|
14363
|
+
}, Readonly<DialogRootProps & {
|
|
14364
|
+
lazyMount?: boolean;
|
|
14365
|
+
unmountDelay?: number;
|
|
14366
|
+
}> & Readonly<{
|
|
14246
14367
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
14247
|
-
}>, {}, {}, {}, {}, {
|
|
14368
|
+
}>, {}, {}, {}, {}, {
|
|
14369
|
+
lazyMount: boolean;
|
|
14370
|
+
unmountDelay: number;
|
|
14371
|
+
}>;
|
|
14248
14372
|
__isFragment?: never;
|
|
14249
14373
|
__isTeleport?: never;
|
|
14250
14374
|
__isSuspense?: never;
|
|
14251
|
-
} & ComponentOptionsBase<Readonly<DialogRootProps
|
|
14375
|
+
} & ComponentOptionsBase<Readonly<DialogRootProps & {
|
|
14376
|
+
lazyMount?: boolean;
|
|
14377
|
+
unmountDelay?: number;
|
|
14378
|
+
}> & Readonly<{
|
|
14252
14379
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
14253
14380
|
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
14254
14381
|
"update:open": (value: boolean) => any;
|
|
14255
|
-
}, string, {
|
|
14382
|
+
}, string, {
|
|
14383
|
+
lazyMount: boolean;
|
|
14384
|
+
unmountDelay: number;
|
|
14385
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
14256
14386
|
$slots: {
|
|
14257
14387
|
default?(_: {}): any;
|
|
14258
14388
|
};
|
|
@@ -14635,28 +14765,46 @@ default?(_: {}): any;
|
|
|
14635
14765
|
};
|
|
14636
14766
|
});
|
|
14637
14767
|
UnnnicDialog: {
|
|
14638
|
-
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<DialogRootProps
|
|
14768
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<DialogRootProps & {
|
|
14769
|
+
lazyMount?: boolean;
|
|
14770
|
+
unmountDelay?: number;
|
|
14771
|
+
}> & Readonly<{
|
|
14639
14772
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
14640
14773
|
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
14641
14774
|
"update:open": (value: boolean) => any;
|
|
14642
|
-
}, PublicProps, {
|
|
14775
|
+
}, PublicProps, {
|
|
14776
|
+
lazyMount: boolean;
|
|
14777
|
+
unmountDelay: number;
|
|
14778
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
14643
14779
|
P: {};
|
|
14644
14780
|
B: {};
|
|
14645
14781
|
D: {};
|
|
14646
14782
|
C: {};
|
|
14647
14783
|
M: {};
|
|
14648
14784
|
Defaults: {};
|
|
14649
|
-
}, Readonly<DialogRootProps
|
|
14785
|
+
}, Readonly<DialogRootProps & {
|
|
14786
|
+
lazyMount?: boolean;
|
|
14787
|
+
unmountDelay?: number;
|
|
14788
|
+
}> & Readonly<{
|
|
14650
14789
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
14651
|
-
}>, {}, {}, {}, {}, {
|
|
14790
|
+
}>, {}, {}, {}, {}, {
|
|
14791
|
+
lazyMount: boolean;
|
|
14792
|
+
unmountDelay: number;
|
|
14793
|
+
}>;
|
|
14652
14794
|
__isFragment?: never;
|
|
14653
14795
|
__isTeleport?: never;
|
|
14654
14796
|
__isSuspense?: never;
|
|
14655
|
-
} & ComponentOptionsBase<Readonly<DialogRootProps
|
|
14797
|
+
} & ComponentOptionsBase<Readonly<DialogRootProps & {
|
|
14798
|
+
lazyMount?: boolean;
|
|
14799
|
+
unmountDelay?: number;
|
|
14800
|
+
}> & Readonly<{
|
|
14656
14801
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
14657
14802
|
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
14658
14803
|
"update:open": (value: boolean) => any;
|
|
14659
|
-
}, string, {
|
|
14804
|
+
}, string, {
|
|
14805
|
+
lazyMount: boolean;
|
|
14806
|
+
unmountDelay: number;
|
|
14807
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
14660
14808
|
$slots: {
|
|
14661
14809
|
default?(_: {}): any;
|
|
14662
14810
|
};
|