@lateralus-ai/shipping-ui 1.0.4 → 1.1.1
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/ModalPanel.d.ts +2 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/index.cjs +10 -10
- package/dist/index.esm.js +1083 -790
- package/package.json +1 -1
- package/src/components/ModalPanel.tsx +6 -1
- package/src/components/index.ts +1 -0
- package/src/stories/PDFViewer.stories.tsx +1 -1
package/package.json
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
import { IconButton } from "@material-tailwind/react";
|
|
2
2
|
import XIcon from "./icons/XIcon";
|
|
3
|
+
import { PropsWithChildren } from "react";
|
|
3
4
|
|
|
4
5
|
interface HeaderProps {
|
|
5
6
|
onClose: () => void;
|
|
6
7
|
right?: React.ReactNode;
|
|
7
8
|
}
|
|
8
9
|
|
|
9
|
-
const Header = ({
|
|
10
|
+
const Header = ({
|
|
11
|
+
onClose,
|
|
12
|
+
right,
|
|
13
|
+
children,
|
|
14
|
+
}: PropsWithChildren<HeaderProps>) => {
|
|
10
15
|
return (
|
|
11
16
|
<div className="bg-gray-50 flex gap-2 items-center px-2 py-3 rounded-t-xl">
|
|
12
17
|
<div className="grow text-subheader-em">{children}</div>
|
package/src/components/index.ts
CHANGED