@thunderid/react 0.13.0 → 0.13.1

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.
Files changed (50) hide show
  1. package/dist/api/getUsersMeMeta.d.ts +22 -0
  2. package/dist/api/getUsersMeMeta.d.ts.map +1 -0
  3. package/dist/api/getUsersMeMeta.js +32 -0
  4. package/dist/api/getUsersMeMeta.js.map +1 -0
  5. package/dist/cjs/api/getUsersMeMeta.cjs +34 -0
  6. package/dist/cjs/api/getUsersMeMeta.cjs.map +1 -0
  7. package/dist/cjs/components/adapters/GoogleButton.cjs +425 -31
  8. package/dist/cjs/components/adapters/GoogleButton.cjs.map +1 -1
  9. package/dist/cjs/components/presentation/UserProfile/BaseUserProfile.cjs +91 -35
  10. package/dist/cjs/components/presentation/UserProfile/BaseUserProfile.cjs.map +1 -1
  11. package/dist/cjs/components/presentation/UserProfile/UserProfile.cjs +4 -2
  12. package/dist/cjs/components/presentation/UserProfile/UserProfile.cjs.map +1 -1
  13. package/dist/cjs/contexts/ThunderID/ThunderIDContext.cjs +1 -0
  14. package/dist/cjs/contexts/ThunderID/ThunderIDContext.cjs.map +1 -1
  15. package/dist/cjs/contexts/ThunderID/ThunderIDProvider.cjs +32 -13
  16. package/dist/cjs/contexts/ThunderID/ThunderIDProvider.cjs.map +1 -1
  17. package/dist/cjs/contexts/User/UserContext.cjs +2 -1
  18. package/dist/cjs/contexts/User/UserContext.cjs.map +1 -1
  19. package/dist/cjs/contexts/User/UserProvider.cjs +5 -3
  20. package/dist/cjs/contexts/User/UserProvider.cjs.map +1 -1
  21. package/dist/cjs/index.cjs +2 -0
  22. package/dist/components/adapters/GoogleButton.d.ts.map +1 -1
  23. package/dist/components/adapters/GoogleButton.js +425 -31
  24. package/dist/components/adapters/GoogleButton.js.map +1 -1
  25. package/dist/components/presentation/UserProfile/BaseUserProfile.d.ts +2 -1
  26. package/dist/components/presentation/UserProfile/BaseUserProfile.d.ts.map +1 -1
  27. package/dist/components/presentation/UserProfile/BaseUserProfile.js +91 -35
  28. package/dist/components/presentation/UserProfile/BaseUserProfile.js.map +1 -1
  29. package/dist/components/presentation/UserProfile/UserProfile.d.ts.map +1 -1
  30. package/dist/components/presentation/UserProfile/UserProfile.js +5 -3
  31. package/dist/components/presentation/UserProfile/UserProfile.js.map +1 -1
  32. package/dist/contexts/ThunderID/ThunderIDContext.d.ts +5 -1
  33. package/dist/contexts/ThunderID/ThunderIDContext.d.ts.map +1 -1
  34. package/dist/contexts/ThunderID/ThunderIDContext.js +1 -0
  35. package/dist/contexts/ThunderID/ThunderIDContext.js.map +1 -1
  36. package/dist/contexts/ThunderID/ThunderIDProvider.d.ts.map +1 -1
  37. package/dist/contexts/ThunderID/ThunderIDProvider.js +32 -13
  38. package/dist/contexts/ThunderID/ThunderIDProvider.js.map +1 -1
  39. package/dist/contexts/User/UserContext.d.ts +2 -1
  40. package/dist/contexts/User/UserContext.d.ts.map +1 -1
  41. package/dist/contexts/User/UserContext.js +2 -1
  42. package/dist/contexts/User/UserContext.js.map +1 -1
  43. package/dist/contexts/User/UserProvider.d.ts +5 -2
  44. package/dist/contexts/User/UserProvider.d.ts.map +1 -1
  45. package/dist/contexts/User/UserProvider.js +5 -3
  46. package/dist/contexts/User/UserProvider.js.map +1 -1
  47. package/dist/index.d.ts +2 -0
  48. package/dist/index.d.ts.map +1 -1
  49. package/dist/index.js +2 -1
  50. package/package.json +2 -2
@@ -0,0 +1,22 @@
1
+ import { GetUsersMeMetaConfig as BaseGetUsersMeMetaConfig, UsersMeMetaResponse, AttributeSchema } from '@thunderid/browser';
2
+ export type { AttributeSchema, UsersMeMetaResponse };
3
+ /**
4
+ * Configuration for the getUsersMeMeta request (React-specific)
5
+ */
6
+ export interface GetUsersMeMetaConfig extends Omit<BaseGetUsersMeMetaConfig, 'fetcher'> {
7
+ /**
8
+ * Optional custom fetcher function. If not provided, the ThunderID SPA client's httpClient will be used
9
+ */
10
+ fetcher?: (url: string, config: RequestInit) => Promise<Response>;
11
+ /**
12
+ * Optional instance ID for multi-instance support. Defaults to 0.
13
+ */
14
+ instanceId?: number;
15
+ }
16
+ /**
17
+ * Retrieves the user schema metadata from the specified /users/me/meta endpoint.
18
+ * Uses ThunderID SPA client FetchHttpClient by default with multi-instance support.
19
+ */
20
+ declare const getUsersMeMeta: ({ fetcher, instanceId, ...requestConfig }: GetUsersMeMetaConfig) => Promise<UsersMeMetaResponse>;
21
+ export default getUsersMeMeta;
22
+ //# sourceMappingURL=getUsersMeMeta.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getUsersMeMeta.d.ts","sourceRoot":"","sources":["../../src/api/getUsersMeMeta.ts"],"names":[],"mappings":"AAGA,OAAO,EAKL,oBAAoB,IAAI,wBAAwB,EAChD,mBAAmB,EACnB,eAAe,EAChB,MAAM,oBAAoB,CAAC;AAE5B,YAAY,EAAC,eAAe,EAAE,mBAAmB,EAAC,CAAC;AAEnD;;GAEG;AACH,MAAM,WAAW,oBAAqB,SAAQ,IAAI,CAAC,wBAAwB,EAAE,SAAS,CAAC;IACrF;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC;IAClE;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;GAGG;AACH,QAAA,MAAM,cAAc,GAAU,2CAI3B,oBAAoB,KAAG,OAAO,CAAC,mBAAmB,CAsBpD,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -0,0 +1,32 @@
1
+ import { FetchHttpClient, getUsersMeMeta } from "@thunderid/browser";
2
+
3
+ //#region src/api/getUsersMeMeta.ts
4
+ /**
5
+ * Retrieves the user schema metadata from the specified /users/me/meta endpoint.
6
+ * Uses ThunderID SPA client FetchHttpClient by default with multi-instance support.
7
+ */
8
+ const getUsersMeMeta$1 = async ({ fetcher, instanceId = 0,...requestConfig }) => {
9
+ const defaultFetcher = async (url, config) => {
10
+ const response = await FetchHttpClient.getInstance(instanceId).request({
11
+ headers: config.headers,
12
+ method: config.method ?? "GET",
13
+ url
14
+ });
15
+ return {
16
+ json: () => Promise.resolve(response.data),
17
+ ok: response.status >= 200 && response.status < 300,
18
+ status: response.status,
19
+ statusText: response.statusText || "",
20
+ text: () => Promise.resolve(typeof response.data === "string" ? response.data : JSON.stringify(response.data))
21
+ };
22
+ };
23
+ return getUsersMeMeta({
24
+ ...requestConfig,
25
+ fetcher: fetcher ?? defaultFetcher
26
+ });
27
+ };
28
+ var getUsersMeMeta_default = getUsersMeMeta$1;
29
+
30
+ //#endregion
31
+ export { getUsersMeMeta_default as default };
32
+ //# sourceMappingURL=getUsersMeMeta.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getUsersMeMeta.js","names":["getUsersMeMeta","response: HttpResponse<UsersMeMetaResponse>","baseGetUsersMeMeta"],"sources":["../../src/api/getUsersMeMeta.ts"],"sourcesContent":["// Copyright 2025-2026 The ThunderID Authors\n// SPDX-License-Identifier: Apache-2.0\n\nimport {\n FetchHttpClient,\n HttpRequestConfig,\n HttpResponse,\n getUsersMeMeta as baseGetUsersMeMeta,\n GetUsersMeMetaConfig as BaseGetUsersMeMetaConfig,\n UsersMeMetaResponse,\n AttributeSchema,\n} from '@thunderid/browser';\n\nexport type {AttributeSchema, UsersMeMetaResponse};\n\n/**\n * Configuration for the getUsersMeMeta request (React-specific)\n */\nexport interface GetUsersMeMetaConfig extends Omit<BaseGetUsersMeMetaConfig, 'fetcher'> {\n /**\n * Optional custom fetcher function. If not provided, the ThunderID SPA client's httpClient will be used\n */\n fetcher?: (url: string, config: RequestInit) => Promise<Response>;\n /**\n * Optional instance ID for multi-instance support. Defaults to 0.\n */\n instanceId?: number;\n}\n\n/**\n * Retrieves the user schema metadata from the specified /users/me/meta endpoint.\n * Uses ThunderID SPA client FetchHttpClient by default with multi-instance support.\n */\nconst getUsersMeMeta = async ({\n fetcher,\n instanceId = 0,\n ...requestConfig\n}: GetUsersMeMetaConfig): Promise<UsersMeMetaResponse> => {\n const defaultFetcher = async (url: string, config: RequestInit): Promise<Response> => {\n const httpClient: FetchHttpClient = FetchHttpClient.getInstance(instanceId);\n const response: HttpResponse<UsersMeMetaResponse> = await httpClient.request({\n headers: config.headers as Record<string, string>,\n method: config.method ?? 'GET',\n url,\n } as HttpRequestConfig);\n\n return {\n json: () => Promise.resolve(response.data),\n ok: response.status >= 200 && response.status < 300,\n status: response.status,\n statusText: response.statusText || '',\n text: () => Promise.resolve(typeof response.data === 'string' ? response.data : JSON.stringify(response.data)),\n } as Response;\n };\n\n return baseGetUsersMeMeta({\n ...requestConfig,\n fetcher: fetcher ?? defaultFetcher,\n });\n};\n\nexport default getUsersMeMeta;\n"],"mappings":";;;;;;;AAiCA,MAAMA,mBAAiB,OAAO,EAC5B,SACA,aAAa,EACb,GAAG,oBACqD;CACxD,MAAM,iBAAiB,OAAO,KAAa,WAA2C;EAEpF,MAAMC,WAA8C,MADhB,gBAAgB,YAAY,WAAW,CACN,QAAQ;GAC3E,SAAS,OAAO;GAChB,QAAQ,OAAO,UAAU;GACzB;GACD,CAAsB;AAEvB,SAAO;GACL,YAAY,QAAQ,QAAQ,SAAS,KAAK;GAC1C,IAAI,SAAS,UAAU,OAAO,SAAS,SAAS;GAChD,QAAQ,SAAS;GACjB,YAAY,SAAS,cAAc;GACnC,YAAY,QAAQ,QAAQ,OAAO,SAAS,SAAS,WAAW,SAAS,OAAO,KAAK,UAAU,SAAS,KAAK,CAAC;GAC/G;;AAGH,QAAOC,eAAmB;EACxB,GAAG;EACH,SAAS,WAAW;EACrB,CAAC;;AAGJ,6BAAeF"}
@@ -0,0 +1,34 @@
1
+ const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
2
+ let __thunderid_browser = require("@thunderid/browser");
3
+ __thunderid_browser = require_rolldown_runtime.__toESM(__thunderid_browser);
4
+
5
+ //#region src/api/getUsersMeMeta.ts
6
+ /**
7
+ * Retrieves the user schema metadata from the specified /users/me/meta endpoint.
8
+ * Uses ThunderID SPA client FetchHttpClient by default with multi-instance support.
9
+ */
10
+ const getUsersMeMeta = async ({ fetcher, instanceId = 0,...requestConfig }) => {
11
+ const defaultFetcher = async (url, config) => {
12
+ const response = await __thunderid_browser.FetchHttpClient.getInstance(instanceId).request({
13
+ headers: config.headers,
14
+ method: config.method ?? "GET",
15
+ url
16
+ });
17
+ return {
18
+ json: () => Promise.resolve(response.data),
19
+ ok: response.status >= 200 && response.status < 300,
20
+ status: response.status,
21
+ statusText: response.statusText || "",
22
+ text: () => Promise.resolve(typeof response.data === "string" ? response.data : JSON.stringify(response.data))
23
+ };
24
+ };
25
+ return (0, __thunderid_browser.getUsersMeMeta)({
26
+ ...requestConfig,
27
+ fetcher: fetcher ?? defaultFetcher
28
+ });
29
+ };
30
+ var getUsersMeMeta_default = getUsersMeMeta;
31
+
32
+ //#endregion
33
+ exports.default = getUsersMeMeta_default;
34
+ //# sourceMappingURL=getUsersMeMeta.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getUsersMeMeta.cjs","names":["response: HttpResponse<UsersMeMetaResponse>","FetchHttpClient"],"sources":["../../../src/api/getUsersMeMeta.ts"],"sourcesContent":["// Copyright 2025-2026 The ThunderID Authors\n// SPDX-License-Identifier: Apache-2.0\n\nimport {\n FetchHttpClient,\n HttpRequestConfig,\n HttpResponse,\n getUsersMeMeta as baseGetUsersMeMeta,\n GetUsersMeMetaConfig as BaseGetUsersMeMetaConfig,\n UsersMeMetaResponse,\n AttributeSchema,\n} from '@thunderid/browser';\n\nexport type {AttributeSchema, UsersMeMetaResponse};\n\n/**\n * Configuration for the getUsersMeMeta request (React-specific)\n */\nexport interface GetUsersMeMetaConfig extends Omit<BaseGetUsersMeMetaConfig, 'fetcher'> {\n /**\n * Optional custom fetcher function. If not provided, the ThunderID SPA client's httpClient will be used\n */\n fetcher?: (url: string, config: RequestInit) => Promise<Response>;\n /**\n * Optional instance ID for multi-instance support. Defaults to 0.\n */\n instanceId?: number;\n}\n\n/**\n * Retrieves the user schema metadata from the specified /users/me/meta endpoint.\n * Uses ThunderID SPA client FetchHttpClient by default with multi-instance support.\n */\nconst getUsersMeMeta = async ({\n fetcher,\n instanceId = 0,\n ...requestConfig\n}: GetUsersMeMetaConfig): Promise<UsersMeMetaResponse> => {\n const defaultFetcher = async (url: string, config: RequestInit): Promise<Response> => {\n const httpClient: FetchHttpClient = FetchHttpClient.getInstance(instanceId);\n const response: HttpResponse<UsersMeMetaResponse> = await httpClient.request({\n headers: config.headers as Record<string, string>,\n method: config.method ?? 'GET',\n url,\n } as HttpRequestConfig);\n\n return {\n json: () => Promise.resolve(response.data),\n ok: response.status >= 200 && response.status < 300,\n status: response.status,\n statusText: response.statusText || '',\n text: () => Promise.resolve(typeof response.data === 'string' ? response.data : JSON.stringify(response.data)),\n } as Response;\n };\n\n return baseGetUsersMeMeta({\n ...requestConfig,\n fetcher: fetcher ?? defaultFetcher,\n });\n};\n\nexport default getUsersMeMeta;\n"],"mappings":";;;;;;;;;AAiCA,MAAM,iBAAiB,OAAO,EAC5B,SACA,aAAa,EACb,GAAG,oBACqD;CACxD,MAAM,iBAAiB,OAAO,KAAa,WAA2C;EAEpF,MAAMA,WAA8C,MADhBC,oCAAgB,YAAY,WAAW,CACN,QAAQ;GAC3E,SAAS,OAAO;GAChB,QAAQ,OAAO,UAAU;GACzB;GACD,CAAsB;AAEvB,SAAO;GACL,YAAY,QAAQ,QAAQ,SAAS,KAAK;GAC1C,IAAI,SAAS,UAAU,OAAO,SAAS,SAAS;GAChD,QAAQ,SAAS;GACjB,YAAY,SAAS,cAAc;GACnC,YAAY,QAAQ,QAAQ,OAAO,SAAS,SAAS,WAAW,SAAS,OAAO,KAAK,UAAU,SAAS,KAAK,CAAC;GAC/G;;AAGH,gDAA0B;EACxB,GAAG;EACH,SAAS,WAAW;EACrB,CAAC;;AAGJ,6BAAe"}
@@ -5,6 +5,430 @@ let react_jsx_runtime = require("react/jsx-runtime");
5
5
  react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
6
6
 
7
7
  //#region src/components/adapters/GoogleButton.tsx
8
+ /** Google's gradient "G" mark, matching the icon shipped in `@thunderid/console`'s `GoogleIcon`. */
9
+ const GoogleGlyph = () => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
10
+ width: "18",
11
+ height: "18",
12
+ viewBox: "0 0 268.1522 273.8827",
13
+ xmlns: "http://www.w3.org/2000/svg",
14
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("defs", { children: [
15
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("linearGradient", {
16
+ id: "google-btn-a",
17
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
18
+ offset: "0",
19
+ stopColor: "#0fbc5c"
20
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
21
+ offset: "1",
22
+ stopColor: "#0cba65"
23
+ })]
24
+ }),
25
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("linearGradient", {
26
+ id: "google-btn-g",
27
+ children: [
28
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
29
+ offset: ".2312727",
30
+ stopColor: "#0fbc5f"
31
+ }),
32
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
33
+ offset: ".3115468",
34
+ stopColor: "#0fbc5f"
35
+ }),
36
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
37
+ offset: ".3660131",
38
+ stopColor: "#0fbc5e"
39
+ }),
40
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
41
+ offset: ".4575163",
42
+ stopColor: "#0fbc5d"
43
+ }),
44
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
45
+ offset: ".540305",
46
+ stopColor: "#12bc58"
47
+ }),
48
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
49
+ offset: ".6993464",
50
+ stopColor: "#28bf3c"
51
+ }),
52
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
53
+ offset: ".7712418",
54
+ stopColor: "#38c02b"
55
+ }),
56
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
57
+ offset: ".8605665",
58
+ stopColor: "#52c218"
59
+ }),
60
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
61
+ offset: ".9150327",
62
+ stopColor: "#67c30f"
63
+ }),
64
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
65
+ offset: "1",
66
+ stopColor: "#86c504"
67
+ })
68
+ ]
69
+ }),
70
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("linearGradient", {
71
+ id: "google-btn-h",
72
+ children: [
73
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
74
+ offset: ".1416122",
75
+ stopColor: "#1abd4d"
76
+ }),
77
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
78
+ offset: ".2475151",
79
+ stopColor: "#6ec30d"
80
+ }),
81
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
82
+ offset: ".3115468",
83
+ stopColor: "#8ac502"
84
+ }),
85
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
86
+ offset: ".3660131",
87
+ stopColor: "#a2c600"
88
+ }),
89
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
90
+ offset: ".4456735",
91
+ stopColor: "#c8c903"
92
+ }),
93
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
94
+ offset: ".540305",
95
+ stopColor: "#ebcb03"
96
+ }),
97
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
98
+ offset: ".6156363",
99
+ stopColor: "#f7cd07"
100
+ }),
101
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
102
+ offset: ".6993454",
103
+ stopColor: "#fdcd04"
104
+ }),
105
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
106
+ offset: ".7712418",
107
+ stopColor: "#fdce05"
108
+ }),
109
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
110
+ offset: ".8605661",
111
+ stopColor: "#ffce0a"
112
+ })
113
+ ]
114
+ }),
115
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("linearGradient", {
116
+ id: "google-btn-f",
117
+ children: [
118
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
119
+ offset: ".3159041",
120
+ stopColor: "#ff4c3c"
121
+ }),
122
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
123
+ offset: ".6038179",
124
+ stopColor: "#ff692c"
125
+ }),
126
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
127
+ offset: ".7268366",
128
+ stopColor: "#ff7825"
129
+ }),
130
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
131
+ offset: ".884534",
132
+ stopColor: "#ff8d1b"
133
+ }),
134
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
135
+ offset: "1",
136
+ stopColor: "#ff9f13"
137
+ })
138
+ ]
139
+ }),
140
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("linearGradient", {
141
+ id: "google-btn-b",
142
+ children: [
143
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
144
+ offset: ".2312727",
145
+ stopColor: "#ff4541"
146
+ }),
147
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
148
+ offset: ".3115468",
149
+ stopColor: "#ff4540"
150
+ }),
151
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
152
+ offset: ".4575163",
153
+ stopColor: "#ff4640"
154
+ }),
155
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
156
+ offset: ".540305",
157
+ stopColor: "#ff473f"
158
+ }),
159
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
160
+ offset: ".6993464",
161
+ stopColor: "#ff5138"
162
+ }),
163
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
164
+ offset: ".7712418",
165
+ stopColor: "#ff5b33"
166
+ }),
167
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
168
+ offset: ".8605665",
169
+ stopColor: "#ff6c29"
170
+ }),
171
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
172
+ offset: "1",
173
+ stopColor: "#ff8c18"
174
+ })
175
+ ]
176
+ }),
177
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("linearGradient", {
178
+ id: "google-btn-d",
179
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
180
+ offset: ".4084578",
181
+ stopColor: "#fb4e5a"
182
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
183
+ offset: "1",
184
+ stopColor: "#ff4540"
185
+ })]
186
+ }),
187
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("linearGradient", {
188
+ id: "google-btn-c",
189
+ children: [
190
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
191
+ offset: ".1315461",
192
+ stopColor: "#0cba65"
193
+ }),
194
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
195
+ offset: ".2097843",
196
+ stopColor: "#0bb86d"
197
+ }),
198
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
199
+ offset: ".2972969",
200
+ stopColor: "#09b479"
201
+ }),
202
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
203
+ offset: ".3962575",
204
+ stopColor: "#08ad93"
205
+ }),
206
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
207
+ offset: ".4771242",
208
+ stopColor: "#0aa6a9"
209
+ }),
210
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
211
+ offset: ".5684245",
212
+ stopColor: "#0d9cc6"
213
+ }),
214
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
215
+ offset: ".667385",
216
+ stopColor: "#1893dd"
217
+ }),
218
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
219
+ offset: ".7687273",
220
+ stopColor: "#258bf1"
221
+ }),
222
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
223
+ offset: ".8585063",
224
+ stopColor: "#3086ff"
225
+ })
226
+ ]
227
+ }),
228
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("linearGradient", {
229
+ id: "google-btn-e",
230
+ children: [
231
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
232
+ offset: ".3660131",
233
+ stopColor: "#ff4e3a"
234
+ }),
235
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
236
+ offset: ".4575163",
237
+ stopColor: "#ff8a1b"
238
+ }),
239
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
240
+ offset: ".540305",
241
+ stopColor: "#ffa312"
242
+ }),
243
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
244
+ offset: ".6156363",
245
+ stopColor: "#ffb60c"
246
+ }),
247
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
248
+ offset: ".7712418",
249
+ stopColor: "#ffcd0a"
250
+ }),
251
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
252
+ offset: ".8605665",
253
+ stopColor: "#fecf0a"
254
+ }),
255
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
256
+ offset: ".9150327",
257
+ stopColor: "#fecf08"
258
+ }),
259
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
260
+ offset: "1",
261
+ stopColor: "#fdcd01"
262
+ })
263
+ ]
264
+ }),
265
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("linearGradient", {
266
+ href: "#google-btn-a",
267
+ id: "google-btn-s",
268
+ x1: "219.6997",
269
+ y1: "329.5351",
270
+ x2: "254.4673",
271
+ y2: "329.5351",
272
+ gradientUnits: "userSpaceOnUse"
273
+ }),
274
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("radialGradient", {
275
+ href: "#google-btn-b",
276
+ id: "google-btn-m",
277
+ gradientUnits: "userSpaceOnUse",
278
+ gradientTransform: "matrix(-1.936885,1.043001,1.455731,2.555422,290.5254,-400.6338)",
279
+ cx: "109.6267",
280
+ cy: "135.8619",
281
+ fx: "109.6267",
282
+ fy: "135.8619",
283
+ r: "71.46001"
284
+ }),
285
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("radialGradient", {
286
+ href: "#google-btn-c",
287
+ id: "google-btn-n",
288
+ gradientUnits: "userSpaceOnUse",
289
+ gradientTransform: "matrix(-3.512595,-4.45809,-1.692547,1.260616,870.8006,191.554)",
290
+ cx: "45.25866",
291
+ cy: "279.2738",
292
+ fx: "45.25866",
293
+ fy: "279.2738",
294
+ r: "71.46001"
295
+ }),
296
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("radialGradient", {
297
+ href: "#google-btn-d",
298
+ id: "google-btn-l",
299
+ cx: "304.0166",
300
+ cy: "118.0089",
301
+ fx: "304.0166",
302
+ fy: "118.0089",
303
+ r: "47.85445",
304
+ gradientTransform: "matrix(2.064353,-4.926832e-6,-2.901531e-6,2.592041,-297.6788,-151.7469)",
305
+ gradientUnits: "userSpaceOnUse"
306
+ }),
307
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("radialGradient", {
308
+ href: "#google-btn-e",
309
+ id: "google-btn-o",
310
+ gradientUnits: "userSpaceOnUse",
311
+ gradientTransform: "matrix(-0.2485783,2.083138,2.962486,0.3341668,-255.1463,-331.1636)",
312
+ cx: "181.001",
313
+ cy: "177.2013",
314
+ fx: "181.001",
315
+ fy: "177.2013",
316
+ r: "71.46001"
317
+ }),
318
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("radialGradient", {
319
+ href: "#google-btn-f",
320
+ id: "google-btn-p",
321
+ cx: "207.6733",
322
+ cy: "108.0972",
323
+ fx: "207.6733",
324
+ fy: "108.0972",
325
+ r: "41.1025",
326
+ gradientTransform: "matrix(-1.249206,1.343263,-3.896837,-3.425693,880.5011,194.9051)",
327
+ gradientUnits: "userSpaceOnUse"
328
+ }),
329
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("radialGradient", {
330
+ href: "#google-btn-g",
331
+ id: "google-btn-r",
332
+ gradientUnits: "userSpaceOnUse",
333
+ gradientTransform: "matrix(-1.936885,-1.043001,1.455731,-2.555422,290.5254,838.6834)",
334
+ cx: "109.6267",
335
+ cy: "135.8619",
336
+ fx: "109.6267",
337
+ fy: "135.8619",
338
+ r: "71.46001"
339
+ }),
340
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("radialGradient", {
341
+ href: "#google-btn-h",
342
+ id: "google-btn-j",
343
+ gradientUnits: "userSpaceOnUse",
344
+ gradientTransform: "matrix(-0.081402,-1.93722,2.926737,-0.1162508,-215.1345,632.8606)",
345
+ cx: "154.8697",
346
+ cy: "145.9691",
347
+ fx: "154.8697",
348
+ fy: "145.9691",
349
+ r: "71.46001"
350
+ }),
351
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("filter", {
352
+ id: "google-btn-q",
353
+ x: "-.04842873",
354
+ y: "-.0582241",
355
+ width: "1.096857",
356
+ height: "1.116448",
357
+ colorInterpolationFilters: "sRGB",
358
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("feGaussianBlur", { stdDeviation: "1.700914" })
359
+ }),
360
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("filter", {
361
+ id: "google-btn-k",
362
+ x: "-.01670084",
363
+ y: "-.01009856",
364
+ width: "1.033402",
365
+ height: "1.020197",
366
+ colorInterpolationFilters: "sRGB",
367
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("feGaussianBlur", { stdDeviation: ".2419367" })
368
+ }),
369
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("clipPath", {
370
+ clipPathUnits: "userSpaceOnUse",
371
+ id: "google-btn-i",
372
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
373
+ d: "M371.3784 193.2406H237.0825v53.4375h77.167c-1.2405 7.5627-4.0259 15.0024-8.1049 21.7862-4.6734 7.7723-10.4511 13.6895-16.373 18.1957-17.7389 13.4983-38.42 16.2584-52.7828 16.2584-36.2824 0-67.2833-23.2865-79.2844-54.9287-.4843-1.1482-.8059-2.3344-1.1975-3.5068-2.652-8.0533-4.101-16.5825-4.101-25.4474 0-9.226 1.5691-18.0575 4.4301-26.3985 11.2851-32.8967 42.9849-57.4674 80.1789-57.4674 7.4811 0 14.6854.8843 21.5173 2.6481 15.6135 4.0309 26.6578 11.9698 33.4252 18.2494l40.834-39.7111c-24.839-22.616-57.2194-36.3201-95.8444-36.3201-30.8782-.00066-59.3863 9.55308-82.7477 25.6992-18.9454 13.0941-34.4833 30.6254-44.9695 50.9861-9.75366 18.8785-15.09441 39.7994-15.09441 62.2934 0 22.495 5.34891 43.6334 15.10261 62.3374v.126c10.3023 19.8567 25.3678 36.9537 43.6783 49.9878 15.9962 11.3866 44.6789 26.5516 84.0307 26.5516 22.6301 0 42.6867-4.0517 60.3748-11.6447 12.76-5.4775 24.0655-12.6217 34.3012-21.8036 13.5247-12.1323 24.1168-27.1388 31.3465-44.4041 7.2297-17.2654 11.097-36.7895 11.097-57.957 0-9.858-.9971-19.8694-2.6881-28.9684Z",
374
+ fill: "#000"
375
+ })
376
+ })
377
+ ] }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("g", {
378
+ transform: "matrix(0.957922,0,0,0.985255,-90.17436,-78.85577)",
379
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("g", {
380
+ clipPath: "url(#google-btn-i)",
381
+ children: [
382
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
383
+ d: "M92.07563 219.9585c.14844 22.14 6.5014 44.983 16.11767 63.4234v.1269c6.9482 13.3919 16.4444 23.9704 27.2604 34.4518l65.326-23.67c-12.3593-6.2344-14.2452-10.0546-23.1048-17.0253-9.0537-9.0658-15.8015-19.4735-20.0038-31.677h-.1693l.1693-.1269c-2.7646-8.0587-3.0373-16.6129-3.1393-25.5029Z",
384
+ fill: "url(#google-btn-j)",
385
+ filter: "url(#google-btn-k)"
386
+ }),
387
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
388
+ d: "M237.0835 79.02491c-6.4568 22.52569-3.988 44.42139 0 57.16129 7.4561.0055 14.6388.8881 21.4494 2.6464 15.6135 4.0309 26.6566 11.97 33.424 18.2496l41.8794-40.7256c-24.8094-22.58904-54.6663-37.2961-96.7528-37.33169Z",
389
+ fill: "url(#google-btn-l)",
390
+ filter: "url(#google-btn-k)"
391
+ }),
392
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
393
+ d: "M236.9434 78.84678c-31.6709-.00068-60.9107 9.79833-84.8718 26.35902-8.8968 6.149-17.0612 13.2521-24.3311 21.1509-1.9045 17.7429 14.2569 39.5507 46.2615 39.3702 15.5284-17.9373 38.4946-29.5427 64.0561-29.5427.0233 0 .046.0019.0693.002l-1.0439-57.33536c-.0472-.00003-.0929-.00406-.1401-.00406Z",
394
+ fill: "url(#google-btn-m)",
395
+ filter: "url(#google-btn-k)"
396
+ }),
397
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
398
+ d: "m341.4751 226.3788-28.2685 19.2848c-1.2405 7.5627-4.0278 15.0023-8.1068 21.7861-4.6734 7.7723-10.4506 13.6898-16.3725 18.196-17.7022 13.4704-38.3286 16.2439-52.6877 16.2553-14.8415 25.1018-17.4435 37.6749 1.0439 57.9342 22.8762-.0167 43.157-4.1174 61.0458-11.7965 12.9312-5.551 24.3879-12.7913 34.7609-22.0964 13.7061-12.295 24.4421-27.5034 31.7688-45.0003 7.3267-17.497 11.2446-37.2822 11.2446-58.7336Z",
399
+ fill: "url(#google-btn-n)",
400
+ filter: "url(#google-btn-k)"
401
+ }),
402
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
403
+ d: "M234.9956 191.2104v57.4981h136.0062c1.1962-7.8745 5.1523-18.0644 5.1523-26.5001 0-9.858-.9963-21.899-2.6873-30.998Z",
404
+ fill: "#3086ff",
405
+ filter: "url(#google-btn-k)"
406
+ }),
407
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
408
+ d: "M128.3894 124.3268c-8.393 9.1191-15.5632 19.326-21.2483 30.3646-9.75351 18.8785-15.09402 41.8295-15.09402 64.3235 0 .317.02642.6271.02855.9436 4.31953 8.2244 59.66647 6.6495 62.45617 0-.0035-.3103-.0387-.6128-.0387-.9238 0-9.226 1.5696-16.0262 4.4306-24.3672 3.5294-10.2885 9.0557-19.7628 16.1223-27.9257 1.6019-2.0309 5.8748-6.3969 7.1214-9.0157.4749-.9975-.8621-1.5574-.9369-1.9085-.0836-.3927-1.8762-.0769-2.2778-.3694-1.2751-.9288-3.8001-1.4138-5.3334-1.8449-3.2772-.9215-8.7085-2.9536-11.7252-5.0601-9.5357-6.6586-24.417-14.6122-33.5047-24.2164Z",
409
+ fill: "url(#google-btn-o)",
410
+ filter: "url(#google-btn-k)"
411
+ }),
412
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
413
+ d: "M162.0989 155.8569c22.1123 13.3013 28.4714-6.7139 43.173-12.9771L179.698 90.21568c-9.4075 3.92642-18.2957 8.80465-26.5426 14.50442-12.316 8.5122-23.192 18.8995-32.1763 30.7204Z",
414
+ fill: "url(#google-btn-p)",
415
+ filter: "url(#google-btn-q)"
416
+ }),
417
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
418
+ d: "M171.0987 290.222c-29.6829 10.6413-34.3299 11.023-37.0622 29.2903 5.2213 5.0597 10.8312 9.74 16.7926 13.9835 15.9962 11.3867 46.766 26.5517 86.1178 26.5517.0462 0 .0904-.004.1366-.004v-59.1574c-.0298.0001-.064.002-.0938.002-14.7359 0-26.5113-3.8435-38.5848-10.5273-2.9768-1.6479-8.3775 2.7772-11.1229.799-3.7865-2.7284-12.8991 2.3508-16.1833-.9378Z",
419
+ fill: "url(#google-btn-r)",
420
+ filter: "url(#google-btn-k)"
421
+ }),
422
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
423
+ d: "M219.6997 299.0227v59.9959c5.506.6402 11.2361 1.0289 17.2472 1.0289 6.0259 0 11.8556-.3073 17.5204-.8723v-59.7481c-6.3482 1.0777-12.3272 1.461-17.4776 1.461-5.9318 0-11.7005-.6858-17.29-1.8654Z",
424
+ opacity: ".5",
425
+ fill: "url(#google-btn-s)",
426
+ filter: "url(#google-btn-k)"
427
+ })
428
+ ]
429
+ })
430
+ })]
431
+ });
8
432
  /**
9
433
  * Google Sign-In Button Component.
10
434
  * Handles authentication with Google identity provider.
@@ -18,37 +442,7 @@ const GoogleButton = ({ isLoading, preferences, children,...rest }) => {
18
442
  color: "secondary",
19
443
  variant: "solid",
20
444
  disabled: isLoading,
21
- startIcon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
22
- width: "18",
23
- height: "18",
24
- viewBox: "0 0 67.91 67.901",
25
- xmlns: "http://www.w3.org/2000/svg",
26
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("g", {
27
- transform: "translate(-0.001 -0.001)",
28
- children: [
29
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
30
- d: "M15.049,160.965l-2.364,8.824-8.639.183a34.011,34.011,0,0,1-.25-31.7h0l7.691,1.41,3.369,7.645a20.262,20.262,0,0,0,.19,13.642Z",
31
- transform: "translate(0 -119.93)",
32
- fill: "#fbbb00"
33
- }),
34
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
35
- d: "M294.24,208.176A33.939,33.939,0,0,1,282.137,241h0l-9.687-.494-1.371-8.559a20.235,20.235,0,0,0,8.706-10.333H261.628V208.176Z",
36
- transform: "translate(-226.93 -180.567)",
37
- fill: "#518ef8"
38
- }),
39
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
40
- d: "M81.668,328.8h0a33.962,33.962,0,0,1-51.161-10.387l11-9.006a20.192,20.192,0,0,0,29.1,10.338Z",
41
- transform: "translate(-26.463 -268.374)",
42
- fill: "#28b446"
43
- }),
44
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
45
- d: "M80.451,7.816l-11,9A20.19,20.19,0,0,0,39.686,27.393l-11.06-9.055h0A33.959,33.959,0,0,1,80.451,7.816Z",
46
- transform: "translate(-24.828)",
47
- fill: "#f14336"
48
- })
49
- ]
50
- })
51
- }),
445
+ startIcon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(GoogleGlyph, {}),
52
446
  children: children ?? t("elements.buttons.google.text")
53
447
  });
54
448
  };
@@ -1 +1 @@
1
- {"version":3,"file":"GoogleButton.cjs","names":["GoogleButton: FC<GoogleButtonProps & HTMLAttributes<HTMLButtonElement>>","useTranslation","Button"],"sources":["../../../../src/components/adapters/GoogleButton.tsx"],"sourcesContent":["// Copyright 2025 The ThunderID Authors\n// SPDX-License-Identifier: Apache-2.0\n\nimport {WithPreferences} from '@thunderid/browser';\nimport {FC, HTMLAttributes} from 'react';\nimport useTranslation from '../../hooks/useTranslation';\nimport Button from '../primitives/Button/Button';\n\nexport interface GoogleButtonProps extends WithPreferences {\n /**\n * Whether the component is in loading state.\n */\n isLoading?: boolean;\n}\n\n/**\n * Google Sign-In Button Component.\n * Handles authentication with Google identity provider.\n */\nconst GoogleButton: FC<GoogleButtonProps & HTMLAttributes<HTMLButtonElement>> = ({\n isLoading,\n preferences,\n children,\n ...rest\n}: GoogleButtonProps & HTMLAttributes<HTMLButtonElement>) => {\n const {t} = useTranslation(preferences?.i18n);\n\n return (\n <Button\n {...rest}\n fullWidth\n type=\"button\"\n color=\"secondary\"\n variant=\"solid\"\n disabled={isLoading}\n startIcon={\n <svg width=\"18\" height=\"18\" viewBox=\"0 0 67.91 67.901\" xmlns=\"http://www.w3.org/2000/svg\">\n <g transform=\"translate(-0.001 -0.001)\">\n <path\n d=\"M15.049,160.965l-2.364,8.824-8.639.183a34.011,34.011,0,0,1-.25-31.7h0l7.691,1.41,3.369,7.645a20.262,20.262,0,0,0,.19,13.642Z\"\n transform=\"translate(0 -119.93)\"\n fill=\"#fbbb00\"\n />\n <path\n d=\"M294.24,208.176A33.939,33.939,0,0,1,282.137,241h0l-9.687-.494-1.371-8.559a20.235,20.235,0,0,0,8.706-10.333H261.628V208.176Z\"\n transform=\"translate(-226.93 -180.567)\"\n fill=\"#518ef8\"\n />\n <path\n d=\"M81.668,328.8h0a33.962,33.962,0,0,1-51.161-10.387l11-9.006a20.192,20.192,0,0,0,29.1,10.338Z\"\n transform=\"translate(-26.463 -268.374)\"\n fill=\"#28b446\"\n />\n <path\n d=\"M80.451,7.816l-11,9A20.19,20.19,0,0,0,39.686,27.393l-11.06-9.055h0A33.959,33.959,0,0,1,80.451,7.816Z\"\n transform=\"translate(-24.828)\"\n fill=\"#f14336\"\n />\n </g>\n </svg>\n }\n >\n {children ?? t('elements.buttons.google.text')}\n </Button>\n );\n};\n\nexport default GoogleButton;\n"],"mappings":";;;;;;;;;;;AAmBA,MAAMA,gBAA2E,EAC/E,WACA,aACA,SACA,GAAG,WACwD;CAC3D,MAAM,EAAC,MAAKC,+BAAe,aAAa,KAAK;AAE7C,QACE,2CAACC;EACC,GAAI;EACJ;EACA,MAAK;EACL,OAAM;EACN,SAAQ;EACR,UAAU;EACV,WACE,2CAAC;GAAI,OAAM;GAAK,QAAO;GAAK,SAAQ;GAAmB,OAAM;aAC3D,4CAAC;IAAE,WAAU;;KACX,2CAAC;MACC,GAAE;MACF,WAAU;MACV,MAAK;OACL;KACF,2CAAC;MACC,GAAE;MACF,WAAU;MACV,MAAK;OACL;KACF,2CAAC;MACC,GAAE;MACF,WAAU;MACV,MAAK;OACL;KACF,2CAAC;MACC,GAAE;MACF,WAAU;MACV,MAAK;OACL;;KACA;IACA;YAGP,YAAY,EAAE,+BAA+B;GACvC;;AAIb,2BAAe"}
1
+ {"version":3,"file":"GoogleButton.cjs","names":["GoogleGlyph: FC","GoogleButton: FC<GoogleButtonProps & HTMLAttributes<HTMLButtonElement>>","useTranslation","Button"],"sources":["../../../../src/components/adapters/GoogleButton.tsx"],"sourcesContent":["// Copyright 2025 The ThunderID Authors\n// SPDX-License-Identifier: Apache-2.0\n\nimport {WithPreferences} from '@thunderid/browser';\nimport {FC, HTMLAttributes} from 'react';\nimport useTranslation from '../../hooks/useTranslation';\nimport Button from '../primitives/Button/Button';\n\nexport interface GoogleButtonProps extends WithPreferences {\n /**\n * Whether the component is in loading state.\n */\n isLoading?: boolean;\n}\n\n/** Google's gradient \"G\" mark, matching the icon shipped in `@thunderid/console`'s `GoogleIcon`. */\nconst GoogleGlyph: FC = () => (\n <svg width=\"18\" height=\"18\" viewBox=\"0 0 268.1522 273.8827\" xmlns=\"http://www.w3.org/2000/svg\">\n <defs>\n <linearGradient id=\"google-btn-a\">\n <stop offset=\"0\" stopColor=\"#0fbc5c\" />\n <stop offset=\"1\" stopColor=\"#0cba65\" />\n </linearGradient>\n <linearGradient id=\"google-btn-g\">\n <stop offset=\".2312727\" stopColor=\"#0fbc5f\" />\n <stop offset=\".3115468\" stopColor=\"#0fbc5f\" />\n <stop offset=\".3660131\" stopColor=\"#0fbc5e\" />\n <stop offset=\".4575163\" stopColor=\"#0fbc5d\" />\n <stop offset=\".540305\" stopColor=\"#12bc58\" />\n <stop offset=\".6993464\" stopColor=\"#28bf3c\" />\n <stop offset=\".7712418\" stopColor=\"#38c02b\" />\n <stop offset=\".8605665\" stopColor=\"#52c218\" />\n <stop offset=\".9150327\" stopColor=\"#67c30f\" />\n <stop offset=\"1\" stopColor=\"#86c504\" />\n </linearGradient>\n <linearGradient id=\"google-btn-h\">\n <stop offset=\".1416122\" stopColor=\"#1abd4d\" />\n <stop offset=\".2475151\" stopColor=\"#6ec30d\" />\n <stop offset=\".3115468\" stopColor=\"#8ac502\" />\n <stop offset=\".3660131\" stopColor=\"#a2c600\" />\n <stop offset=\".4456735\" stopColor=\"#c8c903\" />\n <stop offset=\".540305\" stopColor=\"#ebcb03\" />\n <stop offset=\".6156363\" stopColor=\"#f7cd07\" />\n <stop offset=\".6993454\" stopColor=\"#fdcd04\" />\n <stop offset=\".7712418\" stopColor=\"#fdce05\" />\n <stop offset=\".8605661\" stopColor=\"#ffce0a\" />\n </linearGradient>\n <linearGradient id=\"google-btn-f\">\n <stop offset=\".3159041\" stopColor=\"#ff4c3c\" />\n <stop offset=\".6038179\" stopColor=\"#ff692c\" />\n <stop offset=\".7268366\" stopColor=\"#ff7825\" />\n <stop offset=\".884534\" stopColor=\"#ff8d1b\" />\n <stop offset=\"1\" stopColor=\"#ff9f13\" />\n </linearGradient>\n <linearGradient id=\"google-btn-b\">\n <stop offset=\".2312727\" stopColor=\"#ff4541\" />\n <stop offset=\".3115468\" stopColor=\"#ff4540\" />\n <stop offset=\".4575163\" stopColor=\"#ff4640\" />\n <stop offset=\".540305\" stopColor=\"#ff473f\" />\n <stop offset=\".6993464\" stopColor=\"#ff5138\" />\n <stop offset=\".7712418\" stopColor=\"#ff5b33\" />\n <stop offset=\".8605665\" stopColor=\"#ff6c29\" />\n <stop offset=\"1\" stopColor=\"#ff8c18\" />\n </linearGradient>\n <linearGradient id=\"google-btn-d\">\n <stop offset=\".4084578\" stopColor=\"#fb4e5a\" />\n <stop offset=\"1\" stopColor=\"#ff4540\" />\n </linearGradient>\n <linearGradient id=\"google-btn-c\">\n <stop offset=\".1315461\" stopColor=\"#0cba65\" />\n <stop offset=\".2097843\" stopColor=\"#0bb86d\" />\n <stop offset=\".2972969\" stopColor=\"#09b479\" />\n <stop offset=\".3962575\" stopColor=\"#08ad93\" />\n <stop offset=\".4771242\" stopColor=\"#0aa6a9\" />\n <stop offset=\".5684245\" stopColor=\"#0d9cc6\" />\n <stop offset=\".667385\" stopColor=\"#1893dd\" />\n <stop offset=\".7687273\" stopColor=\"#258bf1\" />\n <stop offset=\".8585063\" stopColor=\"#3086ff\" />\n </linearGradient>\n <linearGradient id=\"google-btn-e\">\n <stop offset=\".3660131\" stopColor=\"#ff4e3a\" />\n <stop offset=\".4575163\" stopColor=\"#ff8a1b\" />\n <stop offset=\".540305\" stopColor=\"#ffa312\" />\n <stop offset=\".6156363\" stopColor=\"#ffb60c\" />\n <stop offset=\".7712418\" stopColor=\"#ffcd0a\" />\n <stop offset=\".8605665\" stopColor=\"#fecf0a\" />\n <stop offset=\".9150327\" stopColor=\"#fecf08\" />\n <stop offset=\"1\" stopColor=\"#fdcd01\" />\n </linearGradient>\n <linearGradient\n href=\"#google-btn-a\"\n id=\"google-btn-s\"\n x1=\"219.6997\"\n y1=\"329.5351\"\n x2=\"254.4673\"\n y2=\"329.5351\"\n gradientUnits=\"userSpaceOnUse\"\n />\n <radialGradient\n href=\"#google-btn-b\"\n id=\"google-btn-m\"\n gradientUnits=\"userSpaceOnUse\"\n gradientTransform=\"matrix(-1.936885,1.043001,1.455731,2.555422,290.5254,-400.6338)\"\n cx=\"109.6267\"\n cy=\"135.8619\"\n fx=\"109.6267\"\n fy=\"135.8619\"\n r=\"71.46001\"\n />\n <radialGradient\n href=\"#google-btn-c\"\n id=\"google-btn-n\"\n gradientUnits=\"userSpaceOnUse\"\n gradientTransform=\"matrix(-3.512595,-4.45809,-1.692547,1.260616,870.8006,191.554)\"\n cx=\"45.25866\"\n cy=\"279.2738\"\n fx=\"45.25866\"\n fy=\"279.2738\"\n r=\"71.46001\"\n />\n <radialGradient\n href=\"#google-btn-d\"\n id=\"google-btn-l\"\n cx=\"304.0166\"\n cy=\"118.0089\"\n fx=\"304.0166\"\n fy=\"118.0089\"\n r=\"47.85445\"\n gradientTransform=\"matrix(2.064353,-4.926832e-6,-2.901531e-6,2.592041,-297.6788,-151.7469)\"\n gradientUnits=\"userSpaceOnUse\"\n />\n <radialGradient\n href=\"#google-btn-e\"\n id=\"google-btn-o\"\n gradientUnits=\"userSpaceOnUse\"\n gradientTransform=\"matrix(-0.2485783,2.083138,2.962486,0.3341668,-255.1463,-331.1636)\"\n cx=\"181.001\"\n cy=\"177.2013\"\n fx=\"181.001\"\n fy=\"177.2013\"\n r=\"71.46001\"\n />\n <radialGradient\n href=\"#google-btn-f\"\n id=\"google-btn-p\"\n cx=\"207.6733\"\n cy=\"108.0972\"\n fx=\"207.6733\"\n fy=\"108.0972\"\n r=\"41.1025\"\n gradientTransform=\"matrix(-1.249206,1.343263,-3.896837,-3.425693,880.5011,194.9051)\"\n gradientUnits=\"userSpaceOnUse\"\n />\n <radialGradient\n href=\"#google-btn-g\"\n id=\"google-btn-r\"\n gradientUnits=\"userSpaceOnUse\"\n gradientTransform=\"matrix(-1.936885,-1.043001,1.455731,-2.555422,290.5254,838.6834)\"\n cx=\"109.6267\"\n cy=\"135.8619\"\n fx=\"109.6267\"\n fy=\"135.8619\"\n r=\"71.46001\"\n />\n <radialGradient\n href=\"#google-btn-h\"\n id=\"google-btn-j\"\n gradientUnits=\"userSpaceOnUse\"\n gradientTransform=\"matrix(-0.081402,-1.93722,2.926737,-0.1162508,-215.1345,632.8606)\"\n cx=\"154.8697\"\n cy=\"145.9691\"\n fx=\"154.8697\"\n fy=\"145.9691\"\n r=\"71.46001\"\n />\n <filter\n id=\"google-btn-q\"\n x=\"-.04842873\"\n y=\"-.0582241\"\n width=\"1.096857\"\n height=\"1.116448\"\n colorInterpolationFilters=\"sRGB\"\n >\n <feGaussianBlur stdDeviation=\"1.700914\" />\n </filter>\n <filter\n id=\"google-btn-k\"\n x=\"-.01670084\"\n y=\"-.01009856\"\n width=\"1.033402\"\n height=\"1.020197\"\n colorInterpolationFilters=\"sRGB\"\n >\n <feGaussianBlur stdDeviation=\".2419367\" />\n </filter>\n <clipPath clipPathUnits=\"userSpaceOnUse\" id=\"google-btn-i\">\n <path\n d=\"M371.3784 193.2406H237.0825v53.4375h77.167c-1.2405 7.5627-4.0259 15.0024-8.1049 21.7862-4.6734 7.7723-10.4511 13.6895-16.373 18.1957-17.7389 13.4983-38.42 16.2584-52.7828 16.2584-36.2824 0-67.2833-23.2865-79.2844-54.9287-.4843-1.1482-.8059-2.3344-1.1975-3.5068-2.652-8.0533-4.101-16.5825-4.101-25.4474 0-9.226 1.5691-18.0575 4.4301-26.3985 11.2851-32.8967 42.9849-57.4674 80.1789-57.4674 7.4811 0 14.6854.8843 21.5173 2.6481 15.6135 4.0309 26.6578 11.9698 33.4252 18.2494l40.834-39.7111c-24.839-22.616-57.2194-36.3201-95.8444-36.3201-30.8782-.00066-59.3863 9.55308-82.7477 25.6992-18.9454 13.0941-34.4833 30.6254-44.9695 50.9861-9.75366 18.8785-15.09441 39.7994-15.09441 62.2934 0 22.495 5.34891 43.6334 15.10261 62.3374v.126c10.3023 19.8567 25.3678 36.9537 43.6783 49.9878 15.9962 11.3866 44.6789 26.5516 84.0307 26.5516 22.6301 0 42.6867-4.0517 60.3748-11.6447 12.76-5.4775 24.0655-12.6217 34.3012-21.8036 13.5247-12.1323 24.1168-27.1388 31.3465-44.4041 7.2297-17.2654 11.097-36.7895 11.097-57.957 0-9.858-.9971-19.8694-2.6881-28.9684Z\"\n fill=\"#000\"\n />\n </clipPath>\n </defs>\n <g transform=\"matrix(0.957922,0,0,0.985255,-90.17436,-78.85577)\">\n <g clipPath=\"url(#google-btn-i)\">\n <path\n d=\"M92.07563 219.9585c.14844 22.14 6.5014 44.983 16.11767 63.4234v.1269c6.9482 13.3919 16.4444 23.9704 27.2604 34.4518l65.326-23.67c-12.3593-6.2344-14.2452-10.0546-23.1048-17.0253-9.0537-9.0658-15.8015-19.4735-20.0038-31.677h-.1693l.1693-.1269c-2.7646-8.0587-3.0373-16.6129-3.1393-25.5029Z\"\n fill=\"url(#google-btn-j)\"\n filter=\"url(#google-btn-k)\"\n />\n <path\n d=\"M237.0835 79.02491c-6.4568 22.52569-3.988 44.42139 0 57.16129 7.4561.0055 14.6388.8881 21.4494 2.6464 15.6135 4.0309 26.6566 11.97 33.424 18.2496l41.8794-40.7256c-24.8094-22.58904-54.6663-37.2961-96.7528-37.33169Z\"\n fill=\"url(#google-btn-l)\"\n filter=\"url(#google-btn-k)\"\n />\n <path\n d=\"M236.9434 78.84678c-31.6709-.00068-60.9107 9.79833-84.8718 26.35902-8.8968 6.149-17.0612 13.2521-24.3311 21.1509-1.9045 17.7429 14.2569 39.5507 46.2615 39.3702 15.5284-17.9373 38.4946-29.5427 64.0561-29.5427.0233 0 .046.0019.0693.002l-1.0439-57.33536c-.0472-.00003-.0929-.00406-.1401-.00406Z\"\n fill=\"url(#google-btn-m)\"\n filter=\"url(#google-btn-k)\"\n />\n <path\n d=\"m341.4751 226.3788-28.2685 19.2848c-1.2405 7.5627-4.0278 15.0023-8.1068 21.7861-4.6734 7.7723-10.4506 13.6898-16.3725 18.196-17.7022 13.4704-38.3286 16.2439-52.6877 16.2553-14.8415 25.1018-17.4435 37.6749 1.0439 57.9342 22.8762-.0167 43.157-4.1174 61.0458-11.7965 12.9312-5.551 24.3879-12.7913 34.7609-22.0964 13.7061-12.295 24.4421-27.5034 31.7688-45.0003 7.3267-17.497 11.2446-37.2822 11.2446-58.7336Z\"\n fill=\"url(#google-btn-n)\"\n filter=\"url(#google-btn-k)\"\n />\n <path\n d=\"M234.9956 191.2104v57.4981h136.0062c1.1962-7.8745 5.1523-18.0644 5.1523-26.5001 0-9.858-.9963-21.899-2.6873-30.998Z\"\n fill=\"#3086ff\"\n filter=\"url(#google-btn-k)\"\n />\n <path\n d=\"M128.3894 124.3268c-8.393 9.1191-15.5632 19.326-21.2483 30.3646-9.75351 18.8785-15.09402 41.8295-15.09402 64.3235 0 .317.02642.6271.02855.9436 4.31953 8.2244 59.66647 6.6495 62.45617 0-.0035-.3103-.0387-.6128-.0387-.9238 0-9.226 1.5696-16.0262 4.4306-24.3672 3.5294-10.2885 9.0557-19.7628 16.1223-27.9257 1.6019-2.0309 5.8748-6.3969 7.1214-9.0157.4749-.9975-.8621-1.5574-.9369-1.9085-.0836-.3927-1.8762-.0769-2.2778-.3694-1.2751-.9288-3.8001-1.4138-5.3334-1.8449-3.2772-.9215-8.7085-2.9536-11.7252-5.0601-9.5357-6.6586-24.417-14.6122-33.5047-24.2164Z\"\n fill=\"url(#google-btn-o)\"\n filter=\"url(#google-btn-k)\"\n />\n <path\n d=\"M162.0989 155.8569c22.1123 13.3013 28.4714-6.7139 43.173-12.9771L179.698 90.21568c-9.4075 3.92642-18.2957 8.80465-26.5426 14.50442-12.316 8.5122-23.192 18.8995-32.1763 30.7204Z\"\n fill=\"url(#google-btn-p)\"\n filter=\"url(#google-btn-q)\"\n />\n <path\n d=\"M171.0987 290.222c-29.6829 10.6413-34.3299 11.023-37.0622 29.2903 5.2213 5.0597 10.8312 9.74 16.7926 13.9835 15.9962 11.3867 46.766 26.5517 86.1178 26.5517.0462 0 .0904-.004.1366-.004v-59.1574c-.0298.0001-.064.002-.0938.002-14.7359 0-26.5113-3.8435-38.5848-10.5273-2.9768-1.6479-8.3775 2.7772-11.1229.799-3.7865-2.7284-12.8991 2.3508-16.1833-.9378Z\"\n fill=\"url(#google-btn-r)\"\n filter=\"url(#google-btn-k)\"\n />\n <path\n d=\"M219.6997 299.0227v59.9959c5.506.6402 11.2361 1.0289 17.2472 1.0289 6.0259 0 11.8556-.3073 17.5204-.8723v-59.7481c-6.3482 1.0777-12.3272 1.461-17.4776 1.461-5.9318 0-11.7005-.6858-17.29-1.8654Z\"\n opacity=\".5\"\n fill=\"url(#google-btn-s)\"\n filter=\"url(#google-btn-k)\"\n />\n </g>\n </g>\n </svg>\n);\n\n/**\n * Google Sign-In Button Component.\n * Handles authentication with Google identity provider.\n */\nconst GoogleButton: FC<GoogleButtonProps & HTMLAttributes<HTMLButtonElement>> = ({\n isLoading,\n preferences,\n children,\n ...rest\n}: GoogleButtonProps & HTMLAttributes<HTMLButtonElement>) => {\n const {t} = useTranslation(preferences?.i18n);\n\n return (\n <Button\n {...rest}\n fullWidth\n type=\"button\"\n color=\"secondary\"\n variant=\"solid\"\n disabled={isLoading}\n startIcon={<GoogleGlyph />}\n >\n {children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