@sikka/hawa 0.17.4-next → 0.17.6-next
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/index.d.mts +13 -22
- package/dist/index.d.ts +13 -22
- package/dist/index.js +15 -24
- package/dist/index.mjs +15 -24
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -888,10 +888,14 @@ type IconCountTypes = {
|
|
|
888
888
|
declare const Count: FC<IconCountTypes>;
|
|
889
889
|
|
|
890
890
|
type TypographyTypes = {
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
891
|
+
/** Function to handle language change. */
|
|
892
|
+
handleLanguage?: (e: any) => void;
|
|
893
|
+
/** Current selected language. */
|
|
894
|
+
currentLanguage?: string;
|
|
895
|
+
/** Function to handle theme color mode change. */
|
|
896
|
+
handleColorMode?: (e: any) => void;
|
|
897
|
+
/** Current selected theme color mode. */
|
|
898
|
+
currentColorMode?: "light" | "dark";
|
|
895
899
|
orientation?: OrientationType;
|
|
896
900
|
width?: "default" | "full";
|
|
897
901
|
};
|
|
@@ -1047,7 +1051,8 @@ type NavbarType = {
|
|
|
1047
1051
|
declare const Navbar: React__default.FC<NavbarType>;
|
|
1048
1052
|
|
|
1049
1053
|
type AppLayoutTypes$1 = {
|
|
1050
|
-
header
|
|
1054
|
+
/** a custom header to replace the logoLink & logoSymbol */
|
|
1055
|
+
header?: React__default.ReactNode;
|
|
1051
1056
|
design?: "default";
|
|
1052
1057
|
/** The pages of the side drawer */
|
|
1053
1058
|
drawerItems: AppSidebarItemProps[];
|
|
@@ -1089,11 +1094,12 @@ type AppLayoutTypes$1 = {
|
|
|
1089
1094
|
* - 'lg': Large width.
|
|
1090
1095
|
* - 'parent': Inherits width from parent element.
|
|
1091
1096
|
*/
|
|
1092
|
-
profileMenuWidth
|
|
1097
|
+
profileMenuWidth?: "default" | "sm" | "lg" | "parent";
|
|
1093
1098
|
/** Event handler for drawer expansion. */
|
|
1094
1099
|
onDrawerExpand?: (e: any) => void;
|
|
1095
1100
|
/** Specifies whether to keep the drawer open. */
|
|
1096
1101
|
keepOpen: boolean;
|
|
1102
|
+
/** The method used to control whether the drawer is expanded or not. */
|
|
1097
1103
|
setKeepOpen: (value: boolean) => void;
|
|
1098
1104
|
/** Specifies additional actions for the drawer footer. */
|
|
1099
1105
|
DrawerFooterActions?: any;
|
|
@@ -1276,15 +1282,8 @@ type NewPasswordTextsTypes = {
|
|
|
1276
1282
|
};
|
|
1277
1283
|
|
|
1278
1284
|
type LoginFormTypes = {
|
|
1285
|
+
/** Object containing text labels used throughout the form. */
|
|
1279
1286
|
texts?: LoginFormTextsTypes;
|
|
1280
|
-
/** Function to handle language change. */
|
|
1281
|
-
handleLanguage?: () => void;
|
|
1282
|
-
/** Current selected language. */
|
|
1283
|
-
currentLanguage?: string;
|
|
1284
|
-
/** Function to handle theme color mode change. */
|
|
1285
|
-
handleColorMode?: () => void;
|
|
1286
|
-
/** Current selected theme color mode. */
|
|
1287
|
-
currentColorMode?: "light" | "dark";
|
|
1288
1287
|
/** If true, only logos are displayed in third-party auth buttons. */
|
|
1289
1288
|
logosOnly?: boolean;
|
|
1290
1289
|
/** Direction of text and UI elements, either left-to-right or right-to-left. */
|
|
@@ -1337,14 +1336,6 @@ declare const LoginForm: FC<LoginFormTypes>;
|
|
|
1337
1336
|
type RegisterFormTypes = {
|
|
1338
1337
|
/** Object containing text labels used throughout the form. */
|
|
1339
1338
|
texts: RegisterFormTextsTypes;
|
|
1340
|
-
/** Callback function triggered to handle language changes.*/
|
|
1341
|
-
handleLanguage?: () => void;
|
|
1342
|
-
/** The current language being used in the application. */
|
|
1343
|
-
currentLanguage?: any;
|
|
1344
|
-
/** Callback function triggered to handle color mode changes. */
|
|
1345
|
-
handleColorMode?: () => void;
|
|
1346
|
-
/** The current color mode being used in the application. */
|
|
1347
|
-
currentColorMode?: any;
|
|
1348
1339
|
/** Direction of text and layout, either 'rtl' (right-to-left) or 'ltr' (left-to-right). */
|
|
1349
1340
|
direction?: DirectionType;
|
|
1350
1341
|
/** Determines whether to display logos only or with text in the social media registration section. */
|
package/dist/index.d.ts
CHANGED
|
@@ -888,10 +888,14 @@ type IconCountTypes = {
|
|
|
888
888
|
declare const Count: FC<IconCountTypes>;
|
|
889
889
|
|
|
890
890
|
type TypographyTypes = {
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
891
|
+
/** Function to handle language change. */
|
|
892
|
+
handleLanguage?: (e: any) => void;
|
|
893
|
+
/** Current selected language. */
|
|
894
|
+
currentLanguage?: string;
|
|
895
|
+
/** Function to handle theme color mode change. */
|
|
896
|
+
handleColorMode?: (e: any) => void;
|
|
897
|
+
/** Current selected theme color mode. */
|
|
898
|
+
currentColorMode?: "light" | "dark";
|
|
895
899
|
orientation?: OrientationType;
|
|
896
900
|
width?: "default" | "full";
|
|
897
901
|
};
|
|
@@ -1047,7 +1051,8 @@ type NavbarType = {
|
|
|
1047
1051
|
declare const Navbar: React__default.FC<NavbarType>;
|
|
1048
1052
|
|
|
1049
1053
|
type AppLayoutTypes$1 = {
|
|
1050
|
-
header
|
|
1054
|
+
/** a custom header to replace the logoLink & logoSymbol */
|
|
1055
|
+
header?: React__default.ReactNode;
|
|
1051
1056
|
design?: "default";
|
|
1052
1057
|
/** The pages of the side drawer */
|
|
1053
1058
|
drawerItems: AppSidebarItemProps[];
|
|
@@ -1089,11 +1094,12 @@ type AppLayoutTypes$1 = {
|
|
|
1089
1094
|
* - 'lg': Large width.
|
|
1090
1095
|
* - 'parent': Inherits width from parent element.
|
|
1091
1096
|
*/
|
|
1092
|
-
profileMenuWidth
|
|
1097
|
+
profileMenuWidth?: "default" | "sm" | "lg" | "parent";
|
|
1093
1098
|
/** Event handler for drawer expansion. */
|
|
1094
1099
|
onDrawerExpand?: (e: any) => void;
|
|
1095
1100
|
/** Specifies whether to keep the drawer open. */
|
|
1096
1101
|
keepOpen: boolean;
|
|
1102
|
+
/** The method used to control whether the drawer is expanded or not. */
|
|
1097
1103
|
setKeepOpen: (value: boolean) => void;
|
|
1098
1104
|
/** Specifies additional actions for the drawer footer. */
|
|
1099
1105
|
DrawerFooterActions?: any;
|
|
@@ -1276,15 +1282,8 @@ type NewPasswordTextsTypes = {
|
|
|
1276
1282
|
};
|
|
1277
1283
|
|
|
1278
1284
|
type LoginFormTypes = {
|
|
1285
|
+
/** Object containing text labels used throughout the form. */
|
|
1279
1286
|
texts?: LoginFormTextsTypes;
|
|
1280
|
-
/** Function to handle language change. */
|
|
1281
|
-
handleLanguage?: () => void;
|
|
1282
|
-
/** Current selected language. */
|
|
1283
|
-
currentLanguage?: string;
|
|
1284
|
-
/** Function to handle theme color mode change. */
|
|
1285
|
-
handleColorMode?: () => void;
|
|
1286
|
-
/** Current selected theme color mode. */
|
|
1287
|
-
currentColorMode?: "light" | "dark";
|
|
1288
1287
|
/** If true, only logos are displayed in third-party auth buttons. */
|
|
1289
1288
|
logosOnly?: boolean;
|
|
1290
1289
|
/** Direction of text and UI elements, either left-to-right or right-to-left. */
|
|
@@ -1337,14 +1336,6 @@ declare const LoginForm: FC<LoginFormTypes>;
|
|
|
1337
1336
|
type RegisterFormTypes = {
|
|
1338
1337
|
/** Object containing text labels used throughout the form. */
|
|
1339
1338
|
texts: RegisterFormTextsTypes;
|
|
1340
|
-
/** Callback function triggered to handle language changes.*/
|
|
1341
|
-
handleLanguage?: () => void;
|
|
1342
|
-
/** The current language being used in the application. */
|
|
1343
|
-
currentLanguage?: any;
|
|
1344
|
-
/** Callback function triggered to handle color mode changes. */
|
|
1345
|
-
handleColorMode?: () => void;
|
|
1346
|
-
/** The current color mode being used in the application. */
|
|
1347
|
-
currentColorMode?: any;
|
|
1348
1339
|
/** Direction of text and layout, either 'rtl' (right-to-left) or 'ltr' (left-to-right). */
|
|
1349
1340
|
direction?: DirectionType;
|
|
1350
1341
|
/** Determines whether to display logos only or with text in the social media registration section. */
|
package/dist/index.js
CHANGED
|
@@ -6681,6 +6681,8 @@ var import_react34 = __toESM(require("react"));
|
|
|
6681
6681
|
var InterfaceSettings = ({
|
|
6682
6682
|
orientation = "horizontal",
|
|
6683
6683
|
width = "default",
|
|
6684
|
+
handleColorMode,
|
|
6685
|
+
handleLanguage,
|
|
6684
6686
|
...props
|
|
6685
6687
|
}) => {
|
|
6686
6688
|
const [color, setColor] = (0, import_react34.useState)(props.currentColorMode);
|
|
@@ -6695,7 +6697,9 @@ var InterfaceSettings = ({
|
|
|
6695
6697
|
width,
|
|
6696
6698
|
defaultValue: language,
|
|
6697
6699
|
onChangeTab: (e) => {
|
|
6698
|
-
|
|
6700
|
+
if (handleLanguage) {
|
|
6701
|
+
handleLanguage(e);
|
|
6702
|
+
}
|
|
6699
6703
|
setLanguage(e);
|
|
6700
6704
|
},
|
|
6701
6705
|
design: "tabs",
|
|
@@ -6710,7 +6714,9 @@ var InterfaceSettings = ({
|
|
|
6710
6714
|
width,
|
|
6711
6715
|
defaultValue: color,
|
|
6712
6716
|
onChangeTab: (e) => {
|
|
6713
|
-
|
|
6717
|
+
if (handleColorMode) {
|
|
6718
|
+
handleColorMode(e);
|
|
6719
|
+
}
|
|
6714
6720
|
setColor(e);
|
|
6715
6721
|
},
|
|
6716
6722
|
design: "tabs",
|
|
@@ -7601,14 +7607,15 @@ var Navbar = ({
|
|
|
7601
7607
|
// components/layout/AppLayout.tsx
|
|
7602
7608
|
var import_react40 = __toESM(require("react"));
|
|
7603
7609
|
var AppLayout = ({
|
|
7610
|
+
profileMenuWidth = "default",
|
|
7611
|
+
DrawerFooterActions,
|
|
7612
|
+
design = "default",
|
|
7604
7613
|
direction = "ltr",
|
|
7605
7614
|
drawerSize = "md",
|
|
7606
|
-
DrawerFooterActions,
|
|
7607
7615
|
currentPage,
|
|
7608
7616
|
clickedItem,
|
|
7609
|
-
keepOpen,
|
|
7610
7617
|
setKeepOpen,
|
|
7611
|
-
|
|
7618
|
+
keepOpen,
|
|
7612
7619
|
...props
|
|
7613
7620
|
}) => {
|
|
7614
7621
|
var _a, _b;
|
|
@@ -7734,7 +7741,7 @@ var AppLayout = ({
|
|
|
7734
7741
|
alignOffset: 8,
|
|
7735
7742
|
side: "bottom",
|
|
7736
7743
|
sideOffset: 5,
|
|
7737
|
-
width:
|
|
7744
|
+
width: profileMenuWidth,
|
|
7738
7745
|
direction: isRTL ? "rtl" : "ltr",
|
|
7739
7746
|
items: props.profileMenuItems,
|
|
7740
7747
|
onItemSelect: (e) => console.log("selecting item ", e),
|
|
@@ -9112,15 +9119,7 @@ var LoginForm = ({
|
|
|
9112
9119
|
handleTwitter: props.onTwitterLogin
|
|
9113
9120
|
}
|
|
9114
9121
|
)
|
|
9115
|
-
) : null)
|
|
9116
|
-
InterfaceSettings,
|
|
9117
|
-
{
|
|
9118
|
-
currentColorMode: props.currentColorMode,
|
|
9119
|
-
currentLanguage: props.currentLanguage,
|
|
9120
|
-
handleColorMode: props.handleColorMode,
|
|
9121
|
-
handleLanguage: props.handleLanguage
|
|
9122
|
-
}
|
|
9123
|
-
));
|
|
9122
|
+
) : null));
|
|
9124
9123
|
};
|
|
9125
9124
|
|
|
9126
9125
|
// components/blocks/auth/RegisterForm.tsx
|
|
@@ -9447,15 +9446,7 @@ var RegisterForm = ({ texts, ...props }) => {
|
|
|
9447
9446
|
handleTwitter: props.onTwitterRegister
|
|
9448
9447
|
}
|
|
9449
9448
|
)
|
|
9450
|
-
) : null)
|
|
9451
|
-
InterfaceSettings,
|
|
9452
|
-
{
|
|
9453
|
-
currentColorMode: props.currentColorMode,
|
|
9454
|
-
currentLanguage: props.currentLanguage,
|
|
9455
|
-
handleColorMode: props.handleColorMode,
|
|
9456
|
-
handleLanguage: props.handleLanguage
|
|
9457
|
-
}
|
|
9458
|
-
));
|
|
9449
|
+
) : null));
|
|
9459
9450
|
};
|
|
9460
9451
|
|
|
9461
9452
|
// components/blocks/auth/AppLanding.tsx
|
package/dist/index.mjs
CHANGED
|
@@ -6474,6 +6474,8 @@ import React57, { useState as useState22 } from "react";
|
|
|
6474
6474
|
var InterfaceSettings = ({
|
|
6475
6475
|
orientation = "horizontal",
|
|
6476
6476
|
width = "default",
|
|
6477
|
+
handleColorMode,
|
|
6478
|
+
handleLanguage,
|
|
6477
6479
|
...props
|
|
6478
6480
|
}) => {
|
|
6479
6481
|
const [color, setColor] = useState22(props.currentColorMode);
|
|
@@ -6488,7 +6490,9 @@ var InterfaceSettings = ({
|
|
|
6488
6490
|
width,
|
|
6489
6491
|
defaultValue: language,
|
|
6490
6492
|
onChangeTab: (e) => {
|
|
6491
|
-
|
|
6493
|
+
if (handleLanguage) {
|
|
6494
|
+
handleLanguage(e);
|
|
6495
|
+
}
|
|
6492
6496
|
setLanguage(e);
|
|
6493
6497
|
},
|
|
6494
6498
|
design: "tabs",
|
|
@@ -6503,7 +6507,9 @@ var InterfaceSettings = ({
|
|
|
6503
6507
|
width,
|
|
6504
6508
|
defaultValue: color,
|
|
6505
6509
|
onChangeTab: (e) => {
|
|
6506
|
-
|
|
6510
|
+
if (handleColorMode) {
|
|
6511
|
+
handleColorMode(e);
|
|
6512
|
+
}
|
|
6507
6513
|
setColor(e);
|
|
6508
6514
|
},
|
|
6509
6515
|
design: "tabs",
|
|
@@ -7396,14 +7402,15 @@ var Navbar = ({
|
|
|
7396
7402
|
// components/layout/AppLayout.tsx
|
|
7397
7403
|
import React66, { useEffect as useEffect17, useRef as useRef10, useState as useState24 } from "react";
|
|
7398
7404
|
var AppLayout = ({
|
|
7405
|
+
profileMenuWidth = "default",
|
|
7406
|
+
DrawerFooterActions,
|
|
7407
|
+
design = "default",
|
|
7399
7408
|
direction = "ltr",
|
|
7400
7409
|
drawerSize = "md",
|
|
7401
|
-
DrawerFooterActions,
|
|
7402
7410
|
currentPage,
|
|
7403
7411
|
clickedItem,
|
|
7404
|
-
keepOpen,
|
|
7405
7412
|
setKeepOpen,
|
|
7406
|
-
|
|
7413
|
+
keepOpen,
|
|
7407
7414
|
...props
|
|
7408
7415
|
}) => {
|
|
7409
7416
|
var _a, _b;
|
|
@@ -7529,7 +7536,7 @@ var AppLayout = ({
|
|
|
7529
7536
|
alignOffset: 8,
|
|
7530
7537
|
side: "bottom",
|
|
7531
7538
|
sideOffset: 5,
|
|
7532
|
-
width:
|
|
7539
|
+
width: profileMenuWidth,
|
|
7533
7540
|
direction: isRTL ? "rtl" : "ltr",
|
|
7534
7541
|
items: props.profileMenuItems,
|
|
7535
7542
|
onItemSelect: (e) => console.log("selecting item ", e),
|
|
@@ -8907,15 +8914,7 @@ var LoginForm = ({
|
|
|
8907
8914
|
handleTwitter: props.onTwitterLogin
|
|
8908
8915
|
}
|
|
8909
8916
|
)
|
|
8910
|
-
) : null)
|
|
8911
|
-
InterfaceSettings,
|
|
8912
|
-
{
|
|
8913
|
-
currentColorMode: props.currentColorMode,
|
|
8914
|
-
currentLanguage: props.currentLanguage,
|
|
8915
|
-
handleColorMode: props.handleColorMode,
|
|
8916
|
-
handleLanguage: props.handleLanguage
|
|
8917
|
-
}
|
|
8918
|
-
));
|
|
8917
|
+
) : null));
|
|
8919
8918
|
};
|
|
8920
8919
|
|
|
8921
8920
|
// components/blocks/auth/RegisterForm.tsx
|
|
@@ -9242,15 +9241,7 @@ var RegisterForm = ({ texts, ...props }) => {
|
|
|
9242
9241
|
handleTwitter: props.onTwitterRegister
|
|
9243
9242
|
}
|
|
9244
9243
|
)
|
|
9245
|
-
) : null)
|
|
9246
|
-
InterfaceSettings,
|
|
9247
|
-
{
|
|
9248
|
-
currentColorMode: props.currentColorMode,
|
|
9249
|
-
currentLanguage: props.currentLanguage,
|
|
9250
|
-
handleColorMode: props.handleColorMode,
|
|
9251
|
-
handleLanguage: props.handleLanguage
|
|
9252
|
-
}
|
|
9253
|
-
));
|
|
9244
|
+
) : null));
|
|
9254
9245
|
};
|
|
9255
9246
|
|
|
9256
9247
|
// components/blocks/auth/AppLanding.tsx
|