@adiba-banking-cloud/backoffice 0.0.69 → 0.0.71
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/build/index.cjs.js/index.js +1281 -69
- package/build/index.esm.js/index.js +1283 -73
- package/build/typings/components/forms/simple/Simple.stories.d.ts +2 -0
- package/build/typings/components/forms/simple/Simple.types.d.ts +5 -1
- package/build/typings/components/index.d.ts +1 -0
- package/build/typings/components/panels/tile/Tile.d.ts +4 -0
- package/build/typings/components/panels/tile/Tile.stories.d.ts +7 -0
- package/build/typings/components/panels/tile/Tile.types.d.ts +7 -0
- package/build/typings/components/theme.d.ts +2 -2
- package/package.json +2 -1
|
@@ -4,3 +4,5 @@ import { SimpleForm } from "./Simple";
|
|
|
4
4
|
declare const _default: Meta<typeof SimpleForm>;
|
|
5
5
|
export default _default;
|
|
6
6
|
export declare const SimpleFormContainer: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Simple.types").SimpleFormProps>;
|
|
7
|
+
export declare const FunctionFormContainer: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Simple.types").SimpleFormProps>;
|
|
8
|
+
export declare const ComponentFormContainer: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Simple.types").SimpleFormProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NumberInputProps, PasswordInputProps, TextareaProps, TextInputProps } from "@mantine/core";
|
|
2
|
-
type FormInput = string | FormInputObject |
|
|
2
|
+
type FormInput = string | FormInputObject | ((props: (name: string) => any) => React.ReactNode);
|
|
3
3
|
export interface FormInputObject {
|
|
4
4
|
component: "Textarea" | "TextInput" | "PasswordInput" | "NumberInput";
|
|
5
5
|
field: TextInputProps | TextareaProps | PasswordInputProps | NumberInputProps;
|
|
@@ -12,5 +12,9 @@ export interface SimpleFormProps {
|
|
|
12
12
|
hasReset?: boolean;
|
|
13
13
|
hasSubmit?: boolean;
|
|
14
14
|
isEditable: boolean;
|
|
15
|
+
initialValues?: Record<string, string>;
|
|
16
|
+
formValidate?: {
|
|
17
|
+
[key: string]: (value: string) => string | null;
|
|
18
|
+
};
|
|
15
19
|
}
|
|
16
20
|
export {};
|
|
@@ -25,3 +25,4 @@ export { SuccessModal } from "./modals/success/Success";
|
|
|
25
25
|
export { TwoFactorModal } from "./modals/twofactor/Twofactor";
|
|
26
26
|
export { Drawer } from "./general/drawer/Drawer";
|
|
27
27
|
export { SimpleForm } from "./forms/simple/Simple";
|
|
28
|
+
export { MaskedTilePanel, TilePanel } from "./panels/tile/Tile";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta } from "@storybook/react/*";
|
|
2
|
+
import { MaskedTilePanel } from "./Tile";
|
|
3
|
+
import "@mantine/core/styles.css";
|
|
4
|
+
import "../../global.css";
|
|
5
|
+
declare const _default: Meta<typeof MaskedTilePanel>;
|
|
6
|
+
export default _default;
|
|
7
|
+
export declare const TilePanelContainer: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react/*").ReactRenderer, import("./Tile.types").TilePanelProps>;
|
|
@@ -7,7 +7,7 @@ import "@fontsource/poppins/600.css";
|
|
|
7
7
|
import "@fontsource/poppins/700.css";
|
|
8
8
|
import "@fontsource/poppins/800.css";
|
|
9
9
|
export declare const theme: {
|
|
10
|
-
focusRing?: "auto" | "
|
|
10
|
+
focusRing?: "auto" | "always" | "never" | undefined;
|
|
11
11
|
scale?: number | undefined;
|
|
12
12
|
fontSmoothing?: boolean | undefined;
|
|
13
13
|
white?: string | undefined;
|
|
@@ -42,7 +42,7 @@ export declare const theme: {
|
|
|
42
42
|
headings?: {
|
|
43
43
|
fontFamily?: string | undefined;
|
|
44
44
|
fontWeight?: string | undefined;
|
|
45
|
-
textWrap?: "
|
|
45
|
+
textWrap?: "nowrap" | "wrap" | "balance" | "pretty" | "stable" | undefined;
|
|
46
46
|
sizes?: {
|
|
47
47
|
h1?: {
|
|
48
48
|
fontSize?: string | undefined;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adiba-banking-cloud/backoffice",
|
|
3
3
|
"author": "TUROG Technologies",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.71",
|
|
5
5
|
"description": "An ADIBA component library for backoffice and dashboard applications",
|
|
6
6
|
"license": "ISC",
|
|
7
7
|
"main": "build/index.cjs.js",
|
|
@@ -57,6 +57,7 @@
|
|
|
57
57
|
"@hello-pangea/dnd": "^16.5.0",
|
|
58
58
|
"@lottiefiles/dotlottie-react": "^0.14.1",
|
|
59
59
|
"@mantine/core": "^7.12.2",
|
|
60
|
+
"@mantine/form": "^8.1.3",
|
|
60
61
|
"@mantine/hooks": "^7.12.2",
|
|
61
62
|
"@mantine/modals": "^7.17.8",
|
|
62
63
|
"@rollup/plugin-babel": "^6.0.3",
|