@purpurds/drawer 7.6.0 → 7.7.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.
Files changed (37) hide show
  1. package/dist/LICENSE.txt +4 -4
  2. package/dist/drawer-container.d.ts +3 -8
  3. package/dist/drawer-container.d.ts.map +1 -1
  4. package/dist/drawer-content.d.ts +35 -3
  5. package/dist/drawer-content.d.ts.map +1 -1
  6. package/dist/drawer-frame.d.ts +3 -21
  7. package/dist/drawer-frame.d.ts.map +1 -1
  8. package/dist/drawer-handle.d.ts +3 -9
  9. package/dist/drawer-handle.d.ts.map +1 -1
  10. package/dist/drawer-header.d.ts +3 -12
  11. package/dist/drawer-header.d.ts.map +1 -1
  12. package/dist/drawer-scroll-area.d.ts +3 -7
  13. package/dist/drawer-scroll-area.d.ts.map +1 -1
  14. package/dist/drawer-trigger.d.ts +3 -6
  15. package/dist/drawer-trigger.d.ts.map +1 -1
  16. package/dist/drawer.cjs.js +11 -11
  17. package/dist/drawer.cjs.js.map +1 -1
  18. package/dist/drawer.d.ts +2 -2
  19. package/dist/drawer.d.ts.map +1 -1
  20. package/dist/drawer.es.js +560 -586
  21. package/dist/drawer.es.js.map +1 -1
  22. package/dist/use-swipe-to-dismiss.hook.d.ts +3 -3
  23. package/dist/use-swipe-to-dismiss.hook.d.ts.map +1 -1
  24. package/dist/use-swipe-tracking.hook.d.ts +6 -6
  25. package/dist/use-swipe-tracking.hook.d.ts.map +1 -1
  26. package/package.json +8 -7
  27. package/src/drawer-container.tsx +7 -6
  28. package/src/drawer-content.tsx +20 -6
  29. package/src/drawer-frame.tsx +7 -6
  30. package/src/drawer-handle.tsx +7 -6
  31. package/src/drawer-header.tsx +10 -8
  32. package/src/drawer-scroll-area.tsx +7 -6
  33. package/src/drawer-trigger.tsx +6 -20
  34. package/src/drawer.stories.tsx +1 -1
  35. package/src/drawer.tsx +3 -2
  36. package/src/use-swipe-to-dismiss.hook.ts +4 -4
  37. package/src/use-swipe-tracking.hook.ts +9 -9
package/dist/LICENSE.txt CHANGED
@@ -421,28 +421,28 @@ SOFTWARE.
421
421
  ---
422
422
 
423
423
  Name: @purpurds/button
424
- Version: 7.5.1
424
+ Version: 7.6.1
425
425
  License: AGPL-3.0-only
426
426
  Private: false
427
427
 
428
428
  ---
429
429
 
430
430
  Name: @purpurds/heading
431
- Version: 7.5.1
431
+ Version: 7.6.1
432
432
  License: AGPL-3.0-only
433
433
  Private: false
434
434
 
435
435
  ---
436
436
 
437
437
  Name: @purpurds/icon
438
- Version: 7.5.1
438
+ Version: 7.6.1
439
439
  License: AGPL-3.0-only
440
440
  Private: false
441
441
 
442
442
  ---
443
443
 
444
444
  Name: @purpurds/visually-hidden
445
- Version: 7.5.1
445
+ Version: 7.6.1
446
446
  License: AGPL-3.0-only
447
447
  Private: false
448
448
 
@@ -1,15 +1,10 @@
1
1
  import { default as React, ReactNode } from 'react';
2
+ import { BaseProps } from '@purpurds/common-types';
2
3
 
3
- export type DrawerContainerProps = React.HTMLAttributes<HTMLDivElement> & {
4
- ["data-testid"]?: string;
4
+ export type DrawerContainerProps = Omit<BaseProps, "children"> & {
5
5
  children: ReactNode;
6
6
  stickyFooter: boolean;
7
7
  variant?: "header" | "body" | "footer";
8
8
  };
9
- export declare const DrawerContainer: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
10
- "data-testid"?: string;
11
- children: ReactNode;
12
- stickyFooter: boolean;
13
- variant?: "header" | "body" | "footer";
14
- } & React.RefAttributes<HTMLDivElement>>;
9
+ export declare const DrawerContainer: React.ForwardRefExoticComponent<Omit<DrawerContainerProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
15
10
  //# sourceMappingURL=drawer-container.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"drawer-container.d.ts","sourceRoot":"","sources":["../src/drawer-container.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAiC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAM7E,MAAM,MAAM,oBAAoB,GAAG,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG;IACxE,CAAC,aAAa,CAAC,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,SAAS,CAAC;IACpB,YAAY,EAAE,OAAO,CAAC;IACtB,OAAO,CAAC,EAAE,QAAQ,GAAG,MAAM,GAAG,QAAQ,CAAC;CACxC,CAAC;AAIF,eAAO,MAAM,eAAe;oBARR,MAAM;cACd,SAAS;kBACL,OAAO;cACX,QAAQ,GAAG,MAAM,GAAG,QAAQ;wCAkCvC,CAAC"}
1
+ {"version":3,"file":"drawer-container.d.ts","sourceRoot":"","sources":["../src/drawer-container.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAc,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAOxD,MAAM,MAAM,oBAAoB,GAAG,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,GAAG;IAC/D,QAAQ,EAAE,SAAS,CAAC;IACpB,YAAY,EAAE,OAAO,CAAC;IACtB,OAAO,CAAC,EAAE,QAAQ,GAAG,MAAM,GAAG,QAAQ,CAAC;CACxC,CAAC;AAIF,eAAO,MAAM,eAAe,0GA6B3B,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import { default as React, ReactNode } from 'react';
2
+ import { BaseProps } from '@purpurds/common-types';
2
3
 
3
4
  export type WithBackButton = {
4
5
  backButton: boolean;
@@ -12,8 +13,7 @@ export type WithoutBackButton = {
12
13
  backButtonOnlyIcon?: never;
13
14
  onBackButtonClick?: never;
14
15
  };
15
- export type DrawerContentProps = React.HTMLAttributes<HTMLElement> & {
16
- ["data-testid"]?: string;
16
+ export type DrawerContentProps = Omit<BaseProps, "children"> & {
17
17
  bodyText?: string;
18
18
  children: ReactNode;
19
19
  closeButtonAriaLabel: string;
@@ -28,5 +28,37 @@ export type DrawerContentProps = React.HTMLAttributes<HTMLElement> & {
28
28
  title: string;
29
29
  zIndex?: number;
30
30
  } & (WithoutBackButton | WithBackButton);
31
- export declare const DrawerContent: React.ForwardRefExoticComponent<DrawerContentProps & React.RefAttributes<HTMLDivElement>>;
31
+ export declare const DrawerContent: React.ForwardRefExoticComponent<(Omit<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
32
+ [key: `data-${string}`]: string | undefined;
33
+ }, "children"> & {
34
+ bodyText?: string;
35
+ children: ReactNode;
36
+ closeButtonAriaLabel: string;
37
+ disableCloseOnClickOutside?: boolean;
38
+ /**
39
+ * If true, the drawer height will fit to its content on small screens.
40
+ */
41
+ fitToContent?: boolean;
42
+ footerContent?: ReactNode;
43
+ headerContent?: ReactNode;
44
+ stickyFooter?: boolean;
45
+ title: string;
46
+ zIndex?: number;
47
+ } & WithBackButton, "ref"> | Omit<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
48
+ [key: `data-${string}`]: string | undefined;
49
+ }, "children"> & {
50
+ bodyText?: string;
51
+ children: ReactNode;
52
+ closeButtonAriaLabel: string;
53
+ disableCloseOnClickOutside?: boolean;
54
+ /**
55
+ * If true, the drawer height will fit to its content on small screens.
56
+ */
57
+ fitToContent?: boolean;
58
+ footerContent?: ReactNode;
59
+ headerContent?: ReactNode;
60
+ stickyFooter?: boolean;
61
+ title: string;
62
+ zIndex?: number;
63
+ } & WithoutBackButton, "ref">) & React.RefAttributes<HTMLDivElement>>;
32
64
  //# sourceMappingURL=drawer-content.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"drawer-content.d.ts","sourceRoot":"","sources":["../src/drawer-content.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAiC,KAAK,SAAS,EAAsB,MAAM,OAAO,CAAC;AAWjG,MAAM,MAAM,cAAc,GAAG;IAC3B,UAAU,EAAE,OAAO,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;IACvB,kB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;CAC/B,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,UAAU,CAAC,EAAE,KAAK,CAAC;IACnB,cAAc,CAAC,EAAE,KAAK,CAAC;IACvB,kBAAkB,CAAC,EAAE,KAAK,CAAC;IAC3B,iBAAiB,CAAC,EAAE,KAAK,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,GAAG;IAC7D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,SAAS,CAAC;IACpB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,GAAG,CAAC,iBAAiB,GAAG,cAAc,CAAC,CAAC;AAIzC,eAAO,MAAM,aAAa;;;eAjBb,MAAM;cACP,SAAS;0BACG,MAAM;iCACC,OAAO;IACpC;;OAEG;mBACY,OAAO;oBACN,SAAS;oBACT,SAAS;mBACV,OAAO;WACf,MAAM;aACJ,MAAM;;;;eAZJ,MAAM;cACP,SAAS;0BACG,MAAM;iCACC,OAAO;IACpC;;OAEG;mBACY,OAAO;oBACN,SAAS;oBACT,SAAS;mBACV,OAAO;WACf,MAAM;aACJ,MAAM;qEA+GhB,CAAC"}
@@ -1,8 +1,8 @@
1
1
  import { default as React, ReactNode } from 'react';
2
+ import { BaseProps } from '@purpurds/common-types';
2
3
  import { SwipeEvent } from './types';
3
4
 
4
- export type DrawerFrameProps = React.HTMLAttributes<HTMLDivElement> & {
5
- ["data-testid"]?: string;
5
+ export type DrawerFrameProps = Omit<BaseProps, "children"> & {
6
6
  backButton: boolean;
7
7
  backButtonText?: string;
8
8
  backButtonOnlyIcon: boolean;
@@ -20,23 +20,5 @@ export type DrawerFrameProps = React.HTMLAttributes<HTMLDivElement> & {
20
20
  stickyFooter: boolean;
21
21
  title: string;
22
22
  };
23
- export declare const DrawerFrame: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
24
- "data-testid"?: string;
25
- backButton: boolean;
26
- backButtonText?: string;
27
- backButtonOnlyIcon: boolean;
28
- children: ReactNode;
29
- closeButtonAriaLabel: string;
30
- fitToContent?: boolean;
31
- footerContent?: ReactNode;
32
- headerContent?: ReactNode;
33
- onAnimationEnd: (event: React.AnimationEvent<HTMLDivElement>) => void;
34
- onBackButtonClick?: () => void;
35
- onSwipeStart(): void;
36
- onSwipeMove(event: SwipeEvent): void;
37
- onSwipeCancel(): void;
38
- onSwipeEnd(event: SwipeEvent): void;
39
- stickyFooter: boolean;
40
- title: string;
41
- } & React.RefAttributes<HTMLDivElement>>;
23
+ export declare const DrawerFrame: React.ForwardRefExoticComponent<Omit<DrawerFrameProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
42
24
  //# sourceMappingURL=drawer-frame.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"drawer-frame.d.ts","sourceRoot":"","sources":["../src/drawer-frame.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAiC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAQ7E,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,SAAS,CAAC;AAG1C,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG;IACpE,CAAC,aAAa,CAAC,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,QAAQ,EAAE,SAAS,CAAC;IACpB,oBAAoB,EAAE,MAAM,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AC;IACxB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,QAAQ,EAAE,SAAS,CAAC;IACpB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B,cAAc,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;IACtE,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC/B,YAAY,IAAI,IAAI,CAAC;IACrB,WAAW,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI,CAAC;IACrC,aAAa,IAAI,IAAI,CAAC;IACtB,UAAU,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI,CAAC;IACpC,YAAY,EAAE,OAAO,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAIF,eAAO,MAAM,WAAW,sGA+GvB,CAAC"}
@@ -1,18 +1,12 @@
1
1
  import { default as React } from 'react';
2
+ import { BaseProps } from '@purpurds/common-types';
2
3
  import { SwipeEvent } from './types';
3
4
 
4
- export type DrawerHandleProps = React.HTMLAttributes<HTMLDivElement> & {
5
- ["data-testid"]?: string;
5
+ export type DrawerHandleProps = Omit<BaseProps, "children"> & {
6
6
  onSwipeStart(): void;
7
7
  onSwipeMove(event: SwipeEvent): void;
8
8
  onSwipeCancel(): void;
9
9
  onSwipeEnd(event: SwipeEvent): void;
10
10
  };
11
- export declare const DrawerHandle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
12
- "data-testid"?: string;
13
- onSwipeStart(): void;
14
- onSwipeMove(event: SwipeEvent): void;
15
- onSwipeCancel(): void;
16
- onSwipeEnd(event: SwipeEvent): void;
17
- } & React.RefAttributes<HTMLDivElement>>;
11
+ export declare const DrawerHandle: React.ForwardRefExoticComponent<Omit<DrawerHandleProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
18
12
  //# sourceMappingURL=drawer-handle.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"drawer-handle.d.ts","sourceRoot":"","sources":["../src/drawer-handle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwC,MAAM,OAAO,CAAC;AAI7D,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,SAAS,CAAC;AAI1C,MAAM,MAAM,iBAAiB,GAAG,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG;IACrE,CAAC,aAAa,CAAC,CAAC,EAAE,MAAM,CAAC;IACzB,YAAY,IAAI,IAAI,CAAC;IACrB,WAAW,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI,CAAC;IACrC,aAAa,IAAI,IAAI,CAAC;IACtB,UAAU,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI,CAAC;CACrC,CAAC;AAIF,eAAO,MAAM,YAAY;oBATL,MAAM;oBACR,IAAI;uBACD,UAAU,GAAG,IAAI;qBACnB,IAAI;sBACH,UAAU,GAAG,IAAI;wCA0CpC,CAAC"}
1
+ {"version":3,"file":"drawer-handle.d.ts","sourceRoot":"","sources":["../src/drawer-handle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAIxD,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,SAAS,CAAC;AAK1C,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,GAAG;IAC5D,YAAY,IAAI,IAAI,CAAC;IACrB,WAAW,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI,CAAC;IACrC,aAAa,IAAI,IAAI,CAAC;IACtB,UAAU,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI,CAAC;CACrC,CAAC;AAIF,eAAO,MAAM,YAAY,uGAqCxB,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { default as React } from 'react';
2
+ import { BaseProps } from '@purpurds/common-types';
2
3
 
3
- export type DrawerHeaderProps = React.HTMLAttributes<HTMLDivElement> & {
4
- ["data-testid"]?: string;
4
+ export type DrawerHeaderProps = Omit<BaseProps, "children"> & {
5
5
  backButton: boolean;
6
6
  backButtonText?: string;
7
7
  backButtonOnlyIcon: boolean;
@@ -10,14 +10,5 @@ export type DrawerHeaderProps = React.HTMLAttributes<HTMLDivElement> & {
10
10
  onBackButtonClick?: () => void;
11
11
  title: string;
12
12
  };
13
- export declare const DrawerHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
14
- "data-testid"?: string;
15
- backButton: boolean;
16
- backButtonText?: string;
17
- backButtonOnlyIcon: boolean;
18
- closeButtonAriaLabel: string;
19
- headerContent?: React.ReactNode;
20
- onBackButtonClick?: () => void;
21
- title: string;
22
- } & React.RefAttributes<HTMLDivElement>>;
13
+ export declare const DrawerHeader: React.ForwardRefExoticComponent<Omit<DrawerHeaderProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
23
14
  //# sourceMappingURL=drawer-header.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"drawer-header.d.ts","sourceRoot":"","sources":["../src/drawer-header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwC,MAAM,OAAO,CAAC;AAa7D,MAAM,MAAM,iBAAiB,GAAG,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG;IACrE,CAAC,aAAa,CAAC,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,oBAAoB,EAAE,MAAM,CAAC;IAC7B,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAChC,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC/B,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAIF,eAAO,MAAM,YAAY;oBAZL,MAAM;gBACZ,OAAO;qBACF,MAAM;wBACH,OAAO;0BACL,MAAM;oBACZ,KAAK,CAAC,SAAS;wBACX,MAAM,IAAI;WACvB,MAAM;wCAgHd,CAAC"}
1
+ {"version":3,"file":"drawer-header.d.ts","sourceRoot":"","sources":["../src/drawer-header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAYxD,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,GAAG;IAC5D,UAAU,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,oBAAoB,EAAE,MAAM,CAAC;IAC7B,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAChC,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC/B,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAIF,eAAO,MAAM,YAAY,uGA6GxB,CAAC"}
@@ -1,13 +1,9 @@
1
1
  import { default as React, ReactNode } from 'react';
2
+ import { BaseProps } from '@purpurds/common-types';
2
3
 
3
- export type DrawerScrollAreaProps = React.HTMLAttributes<HTMLDivElement> & {
4
- ["data-testid"]?: string;
4
+ export type DrawerScrollAreaProps = Omit<BaseProps, "children"> & {
5
5
  children: ReactNode;
6
6
  fitToContent?: boolean;
7
7
  };
8
- export declare const DrawerScrollArea: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
9
- "data-testid"?: string;
10
- children: ReactNode;
11
- fitToContent?: boolean;
12
- } & React.RefAttributes<HTMLDivElement>>;
8
+ export declare const DrawerScrollArea: React.ForwardRefExoticComponent<Omit<DrawerScrollAreaProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
13
9
  //# sourceMappingURL=drawer-scroll-area.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"drawer-scroll-area.d.ts","sourceRoot":"","sources":["../src/drawer-scroll-area.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAiC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAO7E,MAAM,MAAM,qBAAqB,GAAG,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG;IACzE,CAAC,aAAa,CAAC,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,SAAS,CAAC;IACpB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AAIF,eAAO,MAAM,gBAAgB;oBAPT,MAAM;cACd,SAAS;mBACJ,OAAO;wCAqCvB,CAAC"}
1
+ {"version":3,"file":"drawer-scroll-area.d.ts","sourceRoot":"","sources":["../src/drawer-scroll-area.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAc,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAQxD,MAAM,MAAM,qBAAqB,GAAG,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,GAAG;IAChE,QAAQ,EAAE,SAAS,CAAC;IACpB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AAIF,eAAO,MAAM,gBAAgB,2GAgC5B,CAAC"}
@@ -1,11 +1,8 @@
1
1
  import { default as React, ReactNode } from 'react';
2
+ import { BaseProps } from '@purpurds/common-types';
2
3
 
3
- export type DrawerTriggerProps = React.HTMLAttributes<HTMLElement> & {
4
- ["data-testid"]?: string;
4
+ export type DrawerTriggerProps = Omit<BaseProps<"button">, "children"> & {
5
5
  children: ReactNode;
6
6
  };
7
- export declare const DrawerTrigger: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & {
8
- "data-testid"?: string;
9
- children: ReactNode;
10
- } & React.RefAttributes<HTMLButtonElement>>;
7
+ export declare const DrawerTrigger: React.ForwardRefExoticComponent<Omit<DrawerTriggerProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
11
8
  //# sourceMappingURL=drawer-trigger.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"drawer-trigger.d.ts","sourceRoot":"","sources":["../src/drawer-trigger.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAiC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAG7E,MAAM,MAAM,kBAAkB,GAAG,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,GAAG;IACnE,CAAC,aAAa,CAAC,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,aAAa;oBAJN,MAAM;cACd,SAAS;2CAyBpB,CAAC"}
1
+ {"version":3,"file":"drawer-trigger.d.ts","sourceRoot":"","sources":["../src/drawer-trigger.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAc,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAGxD,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,EAAE,UAAU,CAAC,GAAG;IACvE,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,aAAa,2GAQzB,CAAC"}