@luscii-healthtech/web-ui 2.8.0 → 2.9.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.
- package/dist/components/Container/FlexColumn.d.ts +7 -0
- package/dist/components/Container/FlexContainer.d.ts +9 -0
- package/dist/components/Container/FlexRow.d.ts +7 -0
- package/dist/components/Container/types/FlexContainerProps.type.d.ts +15 -0
- package/dist/index.d.ts +3 -0
- package/dist/web-ui-tailwind.css +4 -0
- package/dist/web-ui.cjs.development.js +164 -95
- package/dist/web-ui.cjs.development.js.map +1 -1
- package/dist/web-ui.cjs.production.min.js +1 -1
- package/dist/web-ui.cjs.production.min.js.map +1 -1
- package/dist/web-ui.esm.js +163 -96
- package/dist/web-ui.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Container/FlexColumn.tsx +18 -0
- package/src/components/Container/FlexContainer.tsx +46 -0
- package/src/components/Container/FlexRow.tsx +18 -0
- package/src/components/Container/types/FlexContainerProps.type.ts +18 -0
- package/src/index.tsx +4 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { FlexContainerProps } from "./types/FlexContainerProps.type";
|
|
3
|
+
/**
|
|
4
|
+
* Container to be used for layouting instead of divs around the project.
|
|
5
|
+
* The spacing here has been coded according to our guidelines.
|
|
6
|
+
*/
|
|
7
|
+
export declare const FlexColumn: React.FC<FlexContainerProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { FlexContainerBaseProps } from "./types/FlexContainerProps.type";
|
|
3
|
+
/**
|
|
4
|
+
* Container to be used for layouting instead of divs around the project.
|
|
5
|
+
* The spacing here has been coded according to our guidelines.
|
|
6
|
+
*/
|
|
7
|
+
export declare const FlexContainer: React.FC<FlexContainerBaseProps & {
|
|
8
|
+
type: "column" | "row";
|
|
9
|
+
}>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { FlexContainerProps } from "./types/FlexContainerProps.type";
|
|
3
|
+
/**
|
|
4
|
+
* Container to be used for layouting instead of divs around the project.
|
|
5
|
+
* The spacing here has been coded according to our guidelines.
|
|
6
|
+
*/
|
|
7
|
+
export declare const FlexRow: React.FC<FlexContainerProps>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare type FlexContainerBase = {
|
|
3
|
+
alignItems?: "center" | "start" | "end";
|
|
4
|
+
justifyContent?: "center" | "start" | "end" | "between";
|
|
5
|
+
verticallySpaced?: boolean;
|
|
6
|
+
horitontallySpaced?: boolean;
|
|
7
|
+
hasPadding?: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare type FlexContainerBaseProps = FlexContainerBase & {
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
};
|
|
12
|
+
export declare type FlexContainerProps = Omit<FlexContainerBaseProps, "verticallySpaced" | "horitontallySpaced"> & {
|
|
13
|
+
spaced?: boolean;
|
|
14
|
+
};
|
|
15
|
+
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
export { FlexColumn } from "./components/Container/FlexColumn";
|
|
2
|
+
export { FlexRow } from "./components/Container/FlexRow";
|
|
3
|
+
export type { FlexContainerProps } from "./components/Container/types/FlexContainerProps.type";
|
|
1
4
|
export { default as Toaster, TOASTER_TYPE_OPTIONS, } from "./components/Toaster/Toaster";
|
|
2
5
|
export { toast } from "./components/Toaster/toast";
|
|
3
6
|
export { default as Avatar } from "./components/Avatar/Avatar";
|