@arkyn/components 1.4.11 → 1.4.13
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/bundle.js +42022 -18676
- package/dist/bundle.umd.cjs +720 -200
- package/dist/components/Popover/index.d.ts.map +1 -1
- package/dist/components/Popover/index.js +2 -2
- package/package.json +1 -1
- package/src/components/Popover/index.tsx +8 -2
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Popover/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAI5C,OAAO,cAAc,CAAC;AAEtB,iBAAS,OAAO,CAAC,KAAK,EAAE,YAAY,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Popover/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAI5C,OAAO,cAAc,CAAC;AAEtB,iBAAS,OAAO,CAAC,KAAK,EAAE,YAAY,2CAsCnC;AAED,OAAO,EAAE,OAAO,EAAE,CAAC"}
|
@@ -3,10 +3,10 @@ import { motion } from "framer-motion";
|
|
3
3
|
import { useState } from "react";
|
4
4
|
import "./styles.css";
|
5
5
|
function Popover(props) {
|
6
|
-
const { children, button, closeOnClick, orientation = "bottomLeft" } = props;
|
6
|
+
const { children, button, closeOnClick, className: baseClassName = "", orientation = "bottomLeft", } = props;
|
7
7
|
const [isOpen, setIsOpen] = useState(false);
|
8
8
|
const visible = isOpen ? "visibleTrue" : "visibleFalse";
|
9
|
-
const className = `arkynPopover ${orientation} ${visible}`;
|
9
|
+
const className = `arkynPopover ${orientation} ${visible} ${baseClassName}`;
|
10
10
|
function handleOpenPopover() {
|
11
11
|
if (!isOpen)
|
12
12
|
setIsOpen(true);
|
package/package.json
CHANGED
@@ -5,11 +5,17 @@ import { useState } from "react";
|
|
5
5
|
import "./styles.css";
|
6
6
|
|
7
7
|
function Popover(props: PopoverProps) {
|
8
|
-
const {
|
8
|
+
const {
|
9
|
+
children,
|
10
|
+
button,
|
11
|
+
closeOnClick,
|
12
|
+
className: baseClassName = "",
|
13
|
+
orientation = "bottomLeft",
|
14
|
+
} = props;
|
9
15
|
const [isOpen, setIsOpen] = useState(false);
|
10
16
|
|
11
17
|
const visible = isOpen ? "visibleTrue" : "visibleFalse";
|
12
|
-
const className = `arkynPopover ${orientation} ${visible}`;
|
18
|
+
const className = `arkynPopover ${orientation} ${visible} ${baseClassName}`;
|
13
19
|
|
14
20
|
function handleOpenPopover() {
|
15
21
|
if (!isOpen) setIsOpen(true);
|