@sikka/hawa 0.17.5-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 +9 -20
- package/dist/index.d.ts +9 -20
- package/dist/index.js +10 -20
- package/dist/index.mjs +10 -20
- 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
|
};
|
|
@@ -1278,15 +1282,8 @@ type NewPasswordTextsTypes = {
|
|
|
1278
1282
|
};
|
|
1279
1283
|
|
|
1280
1284
|
type LoginFormTypes = {
|
|
1285
|
+
/** Object containing text labels used throughout the form. */
|
|
1281
1286
|
texts?: LoginFormTextsTypes;
|
|
1282
|
-
/** Function to handle language change. */
|
|
1283
|
-
handleLanguage?: () => void;
|
|
1284
|
-
/** Current selected language. */
|
|
1285
|
-
currentLanguage?: string;
|
|
1286
|
-
/** Function to handle theme color mode change. */
|
|
1287
|
-
handleColorMode?: () => void;
|
|
1288
|
-
/** Current selected theme color mode. */
|
|
1289
|
-
currentColorMode?: "light" | "dark";
|
|
1290
1287
|
/** If true, only logos are displayed in third-party auth buttons. */
|
|
1291
1288
|
logosOnly?: boolean;
|
|
1292
1289
|
/** Direction of text and UI elements, either left-to-right or right-to-left. */
|
|
@@ -1339,14 +1336,6 @@ declare const LoginForm: FC<LoginFormTypes>;
|
|
|
1339
1336
|
type RegisterFormTypes = {
|
|
1340
1337
|
/** Object containing text labels used throughout the form. */
|
|
1341
1338
|
texts: RegisterFormTextsTypes;
|
|
1342
|
-
/** Callback function triggered to handle language changes.*/
|
|
1343
|
-
handleLanguage?: () => void;
|
|
1344
|
-
/** The current language being used in the application. */
|
|
1345
|
-
currentLanguage?: any;
|
|
1346
|
-
/** Callback function triggered to handle color mode changes. */
|
|
1347
|
-
handleColorMode?: () => void;
|
|
1348
|
-
/** The current color mode being used in the application. */
|
|
1349
|
-
currentColorMode?: any;
|
|
1350
1339
|
/** Direction of text and layout, either 'rtl' (right-to-left) or 'ltr' (left-to-right). */
|
|
1351
1340
|
direction?: DirectionType;
|
|
1352
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
|
};
|
|
@@ -1278,15 +1282,8 @@ type NewPasswordTextsTypes = {
|
|
|
1278
1282
|
};
|
|
1279
1283
|
|
|
1280
1284
|
type LoginFormTypes = {
|
|
1285
|
+
/** Object containing text labels used throughout the form. */
|
|
1281
1286
|
texts?: LoginFormTextsTypes;
|
|
1282
|
-
/** Function to handle language change. */
|
|
1283
|
-
handleLanguage?: () => void;
|
|
1284
|
-
/** Current selected language. */
|
|
1285
|
-
currentLanguage?: string;
|
|
1286
|
-
/** Function to handle theme color mode change. */
|
|
1287
|
-
handleColorMode?: () => void;
|
|
1288
|
-
/** Current selected theme color mode. */
|
|
1289
|
-
currentColorMode?: "light" | "dark";
|
|
1290
1287
|
/** If true, only logos are displayed in third-party auth buttons. */
|
|
1291
1288
|
logosOnly?: boolean;
|
|
1292
1289
|
/** Direction of text and UI elements, either left-to-right or right-to-left. */
|
|
@@ -1339,14 +1336,6 @@ declare const LoginForm: FC<LoginFormTypes>;
|
|
|
1339
1336
|
type RegisterFormTypes = {
|
|
1340
1337
|
/** Object containing text labels used throughout the form. */
|
|
1341
1338
|
texts: RegisterFormTextsTypes;
|
|
1342
|
-
/** Callback function triggered to handle language changes.*/
|
|
1343
|
-
handleLanguage?: () => void;
|
|
1344
|
-
/** The current language being used in the application. */
|
|
1345
|
-
currentLanguage?: any;
|
|
1346
|
-
/** Callback function triggered to handle color mode changes. */
|
|
1347
|
-
handleColorMode?: () => void;
|
|
1348
|
-
/** The current color mode being used in the application. */
|
|
1349
|
-
currentColorMode?: any;
|
|
1350
1339
|
/** Direction of text and layout, either 'rtl' (right-to-left) or 'ltr' (left-to-right). */
|
|
1351
1340
|
direction?: DirectionType;
|
|
1352
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",
|
|
@@ -9113,15 +9119,7 @@ var LoginForm = ({
|
|
|
9113
9119
|
handleTwitter: props.onTwitterLogin
|
|
9114
9120
|
}
|
|
9115
9121
|
)
|
|
9116
|
-
) : null)
|
|
9117
|
-
InterfaceSettings,
|
|
9118
|
-
{
|
|
9119
|
-
currentColorMode: props.currentColorMode,
|
|
9120
|
-
currentLanguage: props.currentLanguage,
|
|
9121
|
-
handleColorMode: props.handleColorMode,
|
|
9122
|
-
handleLanguage: props.handleLanguage
|
|
9123
|
-
}
|
|
9124
|
-
));
|
|
9122
|
+
) : null));
|
|
9125
9123
|
};
|
|
9126
9124
|
|
|
9127
9125
|
// components/blocks/auth/RegisterForm.tsx
|
|
@@ -9448,15 +9446,7 @@ var RegisterForm = ({ texts, ...props }) => {
|
|
|
9448
9446
|
handleTwitter: props.onTwitterRegister
|
|
9449
9447
|
}
|
|
9450
9448
|
)
|
|
9451
|
-
) : null)
|
|
9452
|
-
InterfaceSettings,
|
|
9453
|
-
{
|
|
9454
|
-
currentColorMode: props.currentColorMode,
|
|
9455
|
-
currentLanguage: props.currentLanguage,
|
|
9456
|
-
handleColorMode: props.handleColorMode,
|
|
9457
|
-
handleLanguage: props.handleLanguage
|
|
9458
|
-
}
|
|
9459
|
-
));
|
|
9449
|
+
) : null));
|
|
9460
9450
|
};
|
|
9461
9451
|
|
|
9462
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",
|
|
@@ -8908,15 +8914,7 @@ var LoginForm = ({
|
|
|
8908
8914
|
handleTwitter: props.onTwitterLogin
|
|
8909
8915
|
}
|
|
8910
8916
|
)
|
|
8911
|
-
) : null)
|
|
8912
|
-
InterfaceSettings,
|
|
8913
|
-
{
|
|
8914
|
-
currentColorMode: props.currentColorMode,
|
|
8915
|
-
currentLanguage: props.currentLanguage,
|
|
8916
|
-
handleColorMode: props.handleColorMode,
|
|
8917
|
-
handleLanguage: props.handleLanguage
|
|
8918
|
-
}
|
|
8919
|
-
));
|
|
8917
|
+
) : null));
|
|
8920
8918
|
};
|
|
8921
8919
|
|
|
8922
8920
|
// components/blocks/auth/RegisterForm.tsx
|
|
@@ -9243,15 +9241,7 @@ var RegisterForm = ({ texts, ...props }) => {
|
|
|
9243
9241
|
handleTwitter: props.onTwitterRegister
|
|
9244
9242
|
}
|
|
9245
9243
|
)
|
|
9246
|
-
) : null)
|
|
9247
|
-
InterfaceSettings,
|
|
9248
|
-
{
|
|
9249
|
-
currentColorMode: props.currentColorMode,
|
|
9250
|
-
currentLanguage: props.currentLanguage,
|
|
9251
|
-
handleColorMode: props.handleColorMode,
|
|
9252
|
-
handleLanguage: props.handleLanguage
|
|
9253
|
-
}
|
|
9254
|
-
));
|
|
9244
|
+
) : null));
|
|
9255
9245
|
};
|
|
9256
9246
|
|
|
9257
9247
|
// components/blocks/auth/AppLanding.tsx
|