@willphan1712000/frontend 1.4.0 → 1.4.2

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 CHANGED
@@ -161,6 +161,7 @@ interface Props$4 {
161
161
  *
162
162
  * @param value value of input
163
163
  * @param setValue set value function
164
+ * @param label set label
164
165
  * @param options options object containing focusColor property -> color when input is focused
165
166
  *
166
167
  * @example
@@ -186,6 +187,7 @@ interface Props$3 {
186
187
  *
187
188
  * @param value value of input
188
189
  * @param setValue set value function
190
+ * @param label set label
189
191
  * @param options options object containing focusColor property -> color when input is focused
190
192
  *
191
193
  * @example
@@ -468,6 +470,7 @@ type SessionType = {
468
470
  type SessionContextType = {
469
471
  isLoading: boolean;
470
472
  session: SessionType;
473
+ auth: AuthInterface;
471
474
  };
472
475
 
473
476
  /**
@@ -533,7 +536,7 @@ declare const SessionProvider: ({ value, children, }: {
533
536
  * @example
534
537
  *
535
538
  * const authClient = new auth() // auth class implements AuthInterface
536
- * const { isLoading, session } = useAuthClient(authClient) // auth is an auth object
539
+ * const { isLoading, session, auth } = useAuthClient(authClient) // auth is an auth object
537
540
  *
538
541
  */
539
542
  declare const useAuthClient: (auth: AuthInterface<SessionType>) => SessionContextType;
package/dist/index.d.ts CHANGED
@@ -161,6 +161,7 @@ interface Props$4 {
161
161
  *
162
162
  * @param value value of input
163
163
  * @param setValue set value function
164
+ * @param label set label
164
165
  * @param options options object containing focusColor property -> color when input is focused
165
166
  *
166
167
  * @example
@@ -186,6 +187,7 @@ interface Props$3 {
186
187
  *
187
188
  * @param value value of input
188
189
  * @param setValue set value function
190
+ * @param label set label
189
191
  * @param options options object containing focusColor property -> color when input is focused
190
192
  *
191
193
  * @example
@@ -468,6 +470,7 @@ type SessionType = {
468
470
  type SessionContextType = {
469
471
  isLoading: boolean;
470
472
  session: SessionType;
473
+ auth: AuthInterface;
471
474
  };
472
475
 
473
476
  /**
@@ -533,7 +536,7 @@ declare const SessionProvider: ({ value, children, }: {
533
536
  * @example
534
537
  *
535
538
  * const authClient = new auth() // auth class implements AuthInterface
536
- * const { isLoading, session } = useAuthClient(authClient) // auth is an auth object
539
+ * const { isLoading, session, auth } = useAuthClient(authClient) // auth is an auth object
537
540
  *
538
541
  */
539
542
  declare const useAuthClient: (auth: AuthInterface<SessionType>) => SessionContextType;
package/dist/index.js CHANGED
@@ -1774,7 +1774,7 @@ var others = {
1774
1774
  };
1775
1775
  var button = {
1776
1776
  fontSize: "0.8rem",
1777
- border: "none",
1777
+ border: "solid 1px black",
1778
1778
  borderRadius: "15px",
1779
1779
  padding: "3%",
1780
1780
  display: "flex",
@@ -1782,7 +1782,8 @@ var button = {
1782
1782
  justifyContent: "center",
1783
1783
  alignItems: "center",
1784
1784
  cursor: "pointer",
1785
- position: "absolute"
1785
+ position: "absolute",
1786
+ backgroundColor: "white"
1786
1787
  };
1787
1788
  var styles8 = {
1788
1789
  container: {
@@ -3128,7 +3129,8 @@ var useAuthClient = function(auth) {
3128
3129
  }, []);
3129
3130
  return {
3130
3131
  isLoading: isLoading,
3131
- session: sessionRef.current
3132
+ session: sessionRef.current,
3133
+ auth: auth
3132
3134
  };
3133
3135
  };
3134
3136
  var useAuthClient_default = useAuthClient;
package/dist/index.mjs CHANGED
@@ -1646,7 +1646,7 @@ var others = {
1646
1646
  };
1647
1647
  var button = {
1648
1648
  fontSize: "0.8rem",
1649
- border: "none",
1649
+ border: "solid 1px black",
1650
1650
  borderRadius: "15px",
1651
1651
  padding: "3%",
1652
1652
  display: "flex",
@@ -1654,7 +1654,8 @@ var button = {
1654
1654
  justifyContent: "center",
1655
1655
  alignItems: "center",
1656
1656
  cursor: "pointer",
1657
- position: "absolute"
1657
+ position: "absolute",
1658
+ backgroundColor: "white"
1658
1659
  };
1659
1660
  var styles8 = {
1660
1661
  container: {
@@ -3003,7 +3004,8 @@ var useAuthClient = function(auth) {
3003
3004
  }, []);
3004
3005
  return {
3005
3006
  isLoading: isLoading,
3006
- session: sessionRef.current
3007
+ session: sessionRef.current,
3008
+ auth: auth
3007
3009
  };
3008
3010
  };
3009
3011
  var useAuthClient_default = useAuthClient;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willphan1712000/frontend",
3
- "version": "1.4.0",
3
+ "version": "1.4.2",
4
4
  "description": "Frontend Library",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",