@douglasneuroinformatics/libui 2.0.4 → 2.0.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/components/AlertDialog/AlertDialogFooter.js +1 -1
- package/dist/components/Dialog/DialogFooter.js +1 -1
- package/dist/components/Tooltip/TooltipContent.d.ts +1 -0
- package/dist/components/Tooltip/TooltipContent.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/AlertDialog/AlertDialogFooter.tsx +1 -1
- package/src/components/Dialog/DialogFooter.tsx +1 -1
- package/src/components/Tooltip/TooltipContent.tsx +1 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { cn } from '../../utils.js';
|
|
3
|
-
export const AlertDialogFooter = ({ className, ...props }) => (React.createElement("div", { className: cn('flex flex-col
|
|
3
|
+
export const AlertDialogFooter = ({ className, ...props }) => (React.createElement("div", { className: cn('flex flex-col gap-x-2 gap-y-0.5 sm:flex-row', className), ...props }));
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { cn } from '../../utils.js';
|
|
3
|
-
export const DialogFooter = ({ className, ...props }) => (React.createElement("div", { className: cn('flex flex-col
|
|
3
|
+
export const DialogFooter = ({ className, ...props }) => (React.createElement("div", { className: cn('flex flex-col gap-x-2 gap-y-0.5 sm:flex-row', className), ...props }));
|
|
@@ -8,6 +8,7 @@ export type TooltipContentProps = {
|
|
|
8
8
|
className?: string;
|
|
9
9
|
/** The distance in pixels from the viewport edges where collision detection should occur */
|
|
10
10
|
collisionPadding?: number;
|
|
11
|
+
side?: 'bottom' | 'left' | 'right' | 'top';
|
|
11
12
|
/** The distance in pixels from the trigger */
|
|
12
13
|
sideOffset?: number;
|
|
13
14
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TooltipContent.d.ts","sourceRoot":"","sources":["../../../src/components/Tooltip/TooltipContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,MAAM,MAAM,mBAAmB,GAAG;IAChC,2FAA2F;IAC3F,KAAK,CAAC,EAAE,QAAQ,GAAG,KAAK,GAAG,OAAO,CAAC;IACnC,2EAA2E;IAC3E,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,6FAA6F;IAC7F,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4FAA4F;IAC5F,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,8CAA8C;IAC9C,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,cAAc,4FAe1B,CAAC"}
|
|
1
|
+
{"version":3,"file":"TooltipContent.d.ts","sourceRoot":"","sources":["../../../src/components/Tooltip/TooltipContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,MAAM,MAAM,mBAAmB,GAAG;IAChC,2FAA2F;IAC3F,KAAK,CAAC,EAAE,QAAQ,GAAG,KAAK,GAAG,OAAO,CAAC;IACnC,2EAA2E;IAC3E,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,6FAA6F;IAC7F,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4FAA4F;IAC5F,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,IAAI,CAAC,EAAE,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,CAAC;IAC3C,8CAA8C;IAC9C,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,cAAc,4FAe1B,CAAC"}
|
package/package.json
CHANGED
|
@@ -3,5 +3,5 @@ import React from 'react';
|
|
|
3
3
|
import { cn } from '../../utils.js';
|
|
4
4
|
|
|
5
5
|
export const AlertDialogFooter = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (
|
|
6
|
-
<div className={cn('flex flex-col
|
|
6
|
+
<div className={cn('flex flex-col gap-x-2 gap-y-0.5 sm:flex-row', className)} {...props} />
|
|
7
7
|
);
|
|
@@ -3,5 +3,5 @@ import React from 'react';
|
|
|
3
3
|
import { cn } from '../../utils.js';
|
|
4
4
|
|
|
5
5
|
export const DialogFooter = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (
|
|
6
|
-
<div className={cn('flex flex-col
|
|
6
|
+
<div className={cn('flex flex-col gap-x-2 gap-y-0.5 sm:flex-row', className)} {...props} />
|
|
7
7
|
);
|
|
@@ -13,6 +13,7 @@ export type TooltipContentProps = {
|
|
|
13
13
|
className?: string;
|
|
14
14
|
/** The distance in pixels from the viewport edges where collision detection should occur */
|
|
15
15
|
collisionPadding?: number;
|
|
16
|
+
side?: 'bottom' | 'left' | 'right' | 'top';
|
|
16
17
|
/** The distance in pixels from the trigger */
|
|
17
18
|
sideOffset?: number;
|
|
18
19
|
};
|