@authhero/widget 0.2.2 → 0.4.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.
- package/dist/authhero-widget/authhero-widget.esm.js +1 -0
- package/dist/authhero-widget/index.esm.js +1 -0
- package/dist/authhero-widget/p-2e93c814.entry.js +1 -0
- package/dist/authhero-widget/p-539fc666.entry.js +1 -0
- package/dist/authhero-widget/p-DQuL1Twl.js +1 -0
- package/dist/authhero-widget/p-Doiemx6o.js +2 -0
- package/dist/cjs/app-globals-V2Kpy_OQ.js +5 -0
- package/dist/cjs/authhero-node.cjs.entry.js +255 -0
- package/dist/cjs/authhero-widget.cjs.entry.js +577 -0
- package/dist/cjs/authhero-widget.cjs.js +25 -0
- package/dist/cjs/index-D0xitTOL.js +3788 -0
- package/dist/cjs/index.cjs.js +8123 -0
- package/dist/cjs/loader.cjs.js +13 -0
- package/dist/collection/collection-manifest.json +13 -0
- package/dist/collection/components/authhero-node/authhero-node.css +298 -0
- package/dist/collection/components/authhero-node/authhero-node.js +360 -0
- package/dist/collection/components/authhero-widget/authhero-widget.css +186 -0
- package/dist/collection/components/authhero-widget/authhero-widget.js +628 -0
- package/dist/collection/index.js +2 -0
- package/dist/collection/server/index.js +453 -0
- package/dist/collection/themes/index.js +71 -0
- package/dist/collection/types/components.js +8 -0
- package/dist/collection/utils/branding.js +248 -0
- package/dist/components/authhero-node.d.ts +11 -0
- package/dist/components/authhero-node.js +1 -0
- package/dist/components/authhero-widget.d.ts +11 -0
- package/dist/components/authhero-widget.js +1 -0
- package/dist/components/index.d.ts +35 -0
- package/dist/components/index.js +1 -0
- package/dist/components/p-086EZrPM.js +1 -0
- package/dist/components/p-DS6y_iDJ.js +1 -0
- package/dist/esm/app-globals-DQuL1Twl.js +3 -0
- package/dist/esm/authhero-node.entry.js +253 -0
- package/dist/esm/authhero-widget.entry.js +575 -0
- package/dist/esm/authhero-widget.js +21 -0
- package/dist/esm/index-Doiemx6o.js +3780 -0
- package/dist/esm/index.js +8122 -0
- package/dist/esm/loader.js +11 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/types/components/authhero-node/authhero-node.d.ts +72 -0
- package/dist/types/components/authhero-widget/authhero-widget.d.ts +172 -0
- package/dist/types/components.d.ts +215 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/server/index.d.ts +85 -0
- package/dist/types/stencil-public-runtime.d.ts +1839 -0
- package/dist/types/themes/index.d.ts +40 -0
- package/dist/types/types/components.d.ts +8 -0
- package/dist/types/utils/branding.d.ts +119 -0
- package/hydrate/index.d.ts +287 -0
- package/hydrate/index.js +23729 -0
- package/hydrate/index.mjs +23719 -0
- package/hydrate/package.json +12 -0
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/package.json +2 -2
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-D0xitTOL.js');
|
|
4
|
+
var appGlobals = require('./app-globals-V2Kpy_OQ.js');
|
|
5
|
+
|
|
6
|
+
const defineCustomElements = async (win, options) => {
|
|
7
|
+
if (typeof window === 'undefined') return undefined;
|
|
8
|
+
await appGlobals.globalScripts();
|
|
9
|
+
return index.bootstrapLazy([["authhero-node.cjs",[[513,"authhero-node",{"component":[16],"value":[1],"disabled":[4]}]]],["authhero-widget.cjs",[[513,"authhero-widget",{"screen":[1],"apiUrl":[1,"api-url"],"branding":[1],"theme":[1],"loading":[1028],"autoSubmit":[4,"auto-submit"],"_screen":[32],"_branding":[32],"_theme":[32],"formData":[32]},null,{"screen":[{"watchScreen":0}],"branding":[{"watchBranding":0}],"theme":[{"watchTheme":0}]}]]]], options);
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
exports.setNonce = index.setNonce;
|
|
13
|
+
exports.defineCustomElements = defineCustomElements;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"entries": [
|
|
3
|
+
"components/authhero-widget/authhero-widget.js",
|
|
4
|
+
"components/authhero-node/authhero-node.js"
|
|
5
|
+
],
|
|
6
|
+
"compiler": {
|
|
7
|
+
"name": "@stencil/core",
|
|
8
|
+
"version": "4.41.0",
|
|
9
|
+
"typescriptVersion": "5.8.3"
|
|
10
|
+
},
|
|
11
|
+
"collections": [],
|
|
12
|
+
"bundles": []
|
|
13
|
+
}
|
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AuthHero Node Component Styles
|
|
3
|
+
*
|
|
4
|
+
* Uses CSS custom properties from themes/variables.css
|
|
5
|
+
* Exposes CSS parts for external styling via ::part()
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
:host {
|
|
9
|
+
display: block;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/* ==========================================================================
|
|
13
|
+
Input Wrapper
|
|
14
|
+
Part: input-wrapper
|
|
15
|
+
========================================================================== */
|
|
16
|
+
|
|
17
|
+
.input-wrapper {
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
gap: var(--ah-space-1, 0.25rem);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/* ==========================================================================
|
|
24
|
+
Labels
|
|
25
|
+
Part: label
|
|
26
|
+
========================================================================== */
|
|
27
|
+
|
|
28
|
+
.input-label {
|
|
29
|
+
font-size: var(--ah-font-size-sm, 0.875rem);
|
|
30
|
+
font-weight: var(--ah-font-weight-medium, 500);
|
|
31
|
+
color: var(--ah-color-text-label, #374151);
|
|
32
|
+
line-height: var(--ah-line-height-normal, 1.5);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.required {
|
|
36
|
+
color: var(--ah-color-error, #dc2626);
|
|
37
|
+
margin-left: var(--ah-space-1, 0.25rem);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/* ==========================================================================
|
|
41
|
+
Text Inputs
|
|
42
|
+
Part: input
|
|
43
|
+
========================================================================== */
|
|
44
|
+
|
|
45
|
+
.input-field {
|
|
46
|
+
padding: var(--ah-input-padding-y, 0.75rem) var(--ah-input-padding-x, 1rem);
|
|
47
|
+
font-size: var(--ah-font-size-base, 1rem);
|
|
48
|
+
font-family: inherit;
|
|
49
|
+
color: var(--ah-color-text, #1f2937);
|
|
50
|
+
background-color: var(--ah-color-bg, #ffffff);
|
|
51
|
+
border: var(--ah-input-border-width, 1px) solid var(--ah-color-border, #d1d5db);
|
|
52
|
+
border-radius: var(--ah-input-radius, 6px);
|
|
53
|
+
outline: none;
|
|
54
|
+
transition: border-color var(--ah-transition-base, 200ms ease),
|
|
55
|
+
box-shadow var(--ah-transition-base, 200ms ease);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.input-field::placeholder {
|
|
59
|
+
color: var(--ah-color-text-muted, #9ca3af);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.input-field:focus {
|
|
63
|
+
border-color: var(--ah-color-primary, #0066cc);
|
|
64
|
+
box-shadow: 0 0 0 3px var(--ah-color-primary-focus-ring, rgba(0, 102, 204, 0.1));
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.input-field.has-error {
|
|
68
|
+
border-color: var(--ah-color-error, #dc2626);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.input-field.has-error:focus {
|
|
72
|
+
box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.input-field:disabled {
|
|
76
|
+
background-color: var(--ah-color-bg-disabled, #f3f4f6);
|
|
77
|
+
cursor: not-allowed;
|
|
78
|
+
opacity: 0.7;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/* ==========================================================================
|
|
82
|
+
Helper & Error Text
|
|
83
|
+
Part: helper-text, error-text
|
|
84
|
+
========================================================================== */
|
|
85
|
+
|
|
86
|
+
.error-text {
|
|
87
|
+
font-size: var(--ah-font-size-xs, 0.75rem);
|
|
88
|
+
color: var(--ah-color-error, #dc2626);
|
|
89
|
+
margin-top: var(--ah-space-1, 0.25rem);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.helper-text {
|
|
93
|
+
font-size: var(--ah-font-size-xs, 0.75rem);
|
|
94
|
+
color: var(--ah-color-text-muted, #6b7280);
|
|
95
|
+
margin-top: var(--ah-space-1, 0.25rem);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/* ==========================================================================
|
|
99
|
+
Checkbox
|
|
100
|
+
Part: checkbox, checkbox-label
|
|
101
|
+
========================================================================== */
|
|
102
|
+
|
|
103
|
+
.checkbox-wrapper {
|
|
104
|
+
display: flex;
|
|
105
|
+
align-items: flex-start;
|
|
106
|
+
gap: var(--ah-space-2, 0.5rem);
|
|
107
|
+
cursor: pointer;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.checkbox-wrapper input[type='checkbox'] {
|
|
111
|
+
width: 1rem;
|
|
112
|
+
height: 1rem;
|
|
113
|
+
margin-top: 0.125rem;
|
|
114
|
+
accent-color: var(--ah-color-primary, #0066cc);
|
|
115
|
+
cursor: pointer;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.checkbox-label {
|
|
119
|
+
font-size: var(--ah-font-size-sm, 0.875rem);
|
|
120
|
+
color: var(--ah-color-text-label, #374151);
|
|
121
|
+
line-height: var(--ah-line-height-normal, 1.5);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/* ==========================================================================
|
|
125
|
+
Buttons
|
|
126
|
+
Part: button, button-primary, button-secondary
|
|
127
|
+
========================================================================== */
|
|
128
|
+
|
|
129
|
+
.btn {
|
|
130
|
+
display: inline-flex;
|
|
131
|
+
align-items: center;
|
|
132
|
+
justify-content: center;
|
|
133
|
+
gap: var(--ah-space-2, 0.5rem);
|
|
134
|
+
width: 100%;
|
|
135
|
+
padding: var(--ah-btn-padding-y, 0.875rem) var(--ah-btn-padding-x, 1.5rem);
|
|
136
|
+
font-size: var(--ah-font-size-base, 1rem);
|
|
137
|
+
font-weight: var(--ah-btn-font-weight, 500);
|
|
138
|
+
font-family: inherit;
|
|
139
|
+
line-height: var(--ah-line-height-tight, 1.25);
|
|
140
|
+
text-align: center;
|
|
141
|
+
text-decoration: none;
|
|
142
|
+
border: none;
|
|
143
|
+
border-radius: var(--ah-btn-radius, 8px);
|
|
144
|
+
cursor: pointer;
|
|
145
|
+
transition: background-color var(--ah-transition-base, 200ms ease),
|
|
146
|
+
transform var(--ah-transition-fast, 150ms ease),
|
|
147
|
+
box-shadow var(--ah-transition-base, 200ms ease);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.btn:disabled {
|
|
151
|
+
opacity: 0.6;
|
|
152
|
+
cursor: not-allowed;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.btn:not(:disabled):active {
|
|
156
|
+
transform: scale(0.98);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.btn:focus-visible {
|
|
160
|
+
outline: 2px solid var(--ah-color-primary, #0066cc);
|
|
161
|
+
outline-offset: 2px;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
/* Primary Button */
|
|
165
|
+
.btn-primary {
|
|
166
|
+
background-color: var(--ah-color-primary, #0066cc);
|
|
167
|
+
color: var(--ah-color-text-on-primary, #ffffff);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.btn-primary:not(:disabled):hover {
|
|
171
|
+
background-color: var(--ah-color-primary-hover, #0052a3);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
/* Secondary Button (OIDC/Social) */
|
|
175
|
+
.btn-secondary {
|
|
176
|
+
background-color: var(--ah-color-bg, #ffffff);
|
|
177
|
+
color: var(--ah-color-text, #374151);
|
|
178
|
+
border: 1px solid var(--ah-color-border-muted, #e5e7eb);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.btn-secondary:not(:disabled):hover {
|
|
182
|
+
background-color: var(--ah-color-bg-muted, #f9fafb);
|
|
183
|
+
border-color: var(--ah-color-border, #d1d5db);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
/* ==========================================================================
|
|
187
|
+
Text Content
|
|
188
|
+
Part: text-title, text-description
|
|
189
|
+
========================================================================== */
|
|
190
|
+
|
|
191
|
+
.text-title {
|
|
192
|
+
font-size: var(--ah-font-size-xl, 1.25rem);
|
|
193
|
+
font-weight: var(--ah-font-weight-semibold, 600);
|
|
194
|
+
color: var(--ah-color-text, #1f2937);
|
|
195
|
+
margin: var(--ah-space-2, 0.5rem) 0;
|
|
196
|
+
line-height: var(--ah-line-height-tight, 1.25);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.text-title.text-success {
|
|
200
|
+
color: var(--ah-color-success, #16a34a);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.text-description {
|
|
204
|
+
font-size: var(--ah-font-size-sm, 0.875rem);
|
|
205
|
+
color: var(--ah-color-text-muted, #6b7280);
|
|
206
|
+
margin: var(--ah-space-1, 0.25rem) 0;
|
|
207
|
+
line-height: var(--ah-line-height-normal, 1.5);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
/* ==========================================================================
|
|
211
|
+
Images
|
|
212
|
+
Part: image
|
|
213
|
+
========================================================================== */
|
|
214
|
+
|
|
215
|
+
.image {
|
|
216
|
+
display: block;
|
|
217
|
+
max-width: 100%;
|
|
218
|
+
height: auto;
|
|
219
|
+
border-radius: var(--ah-radius-lg, 8px);
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.image-centered {
|
|
223
|
+
margin: 0 auto var(--ah-space-4, 1rem);
|
|
224
|
+
width: var(--ah-logo-size, 48px);
|
|
225
|
+
height: var(--ah-logo-size, 48px);
|
|
226
|
+
object-fit: contain;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
/* ==========================================================================
|
|
230
|
+
Links
|
|
231
|
+
Part: link
|
|
232
|
+
========================================================================== */
|
|
233
|
+
|
|
234
|
+
.link {
|
|
235
|
+
color: var(--ah-color-primary, #0066cc);
|
|
236
|
+
text-decoration: none;
|
|
237
|
+
font-size: var(--ah-font-size-sm, 0.875rem);
|
|
238
|
+
transition: color var(--ah-transition-fast, 150ms ease);
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.link:hover {
|
|
242
|
+
text-decoration: underline;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.link:focus-visible {
|
|
246
|
+
outline: 2px solid var(--ah-color-primary, #0066cc);
|
|
247
|
+
outline-offset: 2px;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
/* ==========================================================================
|
|
251
|
+
Messages / Alerts
|
|
252
|
+
Part: message, message-error, message-success
|
|
253
|
+
========================================================================== */
|
|
254
|
+
|
|
255
|
+
.node-error {
|
|
256
|
+
padding: var(--ah-space-3, 0.75rem) var(--ah-space-4, 1rem);
|
|
257
|
+
background-color: var(--ah-color-error-bg, #fee2e2);
|
|
258
|
+
color: var(--ah-color-error, #dc2626);
|
|
259
|
+
border: 1px solid var(--ah-color-error-border, #fecaca);
|
|
260
|
+
border-radius: var(--ah-radius-md, 6px);
|
|
261
|
+
font-size: var(--ah-font-size-sm, 0.875rem);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.node-success {
|
|
265
|
+
padding: var(--ah-space-3, 0.75rem) var(--ah-space-4, 1rem);
|
|
266
|
+
background-color: var(--ah-color-success-bg, #dcfce7);
|
|
267
|
+
color: var(--ah-color-success, #16a34a);
|
|
268
|
+
border: 1px solid var(--ah-color-success-border, #bbf7d0);
|
|
269
|
+
border-radius: var(--ah-radius-md, 6px);
|
|
270
|
+
font-size: var(--ah-font-size-sm, 0.875rem);
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
/* ==========================================================================
|
|
274
|
+
Divider
|
|
275
|
+
Part: divider
|
|
276
|
+
========================================================================== */
|
|
277
|
+
|
|
278
|
+
.divider {
|
|
279
|
+
display: flex;
|
|
280
|
+
align-items: center;
|
|
281
|
+
text-align: center;
|
|
282
|
+
margin: var(--ah-space-4, 1rem) 0;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
.divider::before,
|
|
286
|
+
.divider::after {
|
|
287
|
+
content: '';
|
|
288
|
+
flex: 1;
|
|
289
|
+
border-bottom: 1px solid var(--ah-color-border-muted, #e5e7eb);
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.divider-text {
|
|
293
|
+
padding: 0 var(--ah-space-4, 1rem);
|
|
294
|
+
font-size: var(--ah-font-size-sm, 0.875rem);
|
|
295
|
+
color: var(--ah-color-text-muted, #9ca3af);
|
|
296
|
+
text-transform: uppercase;
|
|
297
|
+
letter-spacing: 0.05em;
|
|
298
|
+
}
|