luxen-ui 0.9.3 → 0.11.0
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/cdn/chunks/picker.js +5 -0
- package/cdn/chunks/picker.js.map +1 -0
- package/cdn/custom-elements.json +242 -218
- package/cdn/elements/avatar/avatar.d.ts +1 -0
- package/cdn/elements/avatar/avatar.d.ts.map +1 -1
- package/cdn/elements/avatar/avatar.js +1 -1
- package/cdn/elements/avatar/avatar.js.map +1 -1
- package/cdn/elements/prose-editor/prose-editor.d.ts +39 -11
- package/cdn/elements/prose-editor/prose-editor.d.ts.map +1 -1
- package/cdn/elements/prose-editor/prose-editor.js +36 -36
- package/cdn/elements/prose-editor/prose-editor.js.map +1 -1
- package/cdn/elements/tooltip/tooltip.d.ts +1 -1
- package/cdn/elements/tooltip/tooltip.js +1 -1
- package/cdn/elements/tooltip/tooltip.js.map +1 -1
- package/cdn/standalone.css +12 -0
- package/cdn/standalone.js +1769 -4167
- package/cdn/standalone.js.map +1 -1
- package/cdn/styles/preset.css +12 -0
- package/cdn/styles/tokens.css +12 -0
- package/dist/css/preset.css +12 -0
- package/dist/css/tokens.css +12 -0
- package/dist/custom-elements.json +242 -218
- package/dist/elements/avatar/avatar.css +10 -10
- package/dist/elements/avatar/avatar.d.ts +1 -0
- package/dist/elements/avatar/avatar.d.ts.map +1 -1
- package/dist/elements/avatar/avatar.js +1 -0
- package/dist/elements/prose-editor/prose-editor.d.ts +39 -11
- package/dist/elements/prose-editor/prose-editor.d.ts.map +1 -1
- package/dist/elements/prose-editor/prose-editor.js +114 -38
- package/dist/elements/tooltip/tooltip.css +1 -1
- package/dist/elements/tooltip/tooltip.d.ts +1 -1
- package/dist/elements/tooltip/tooltip.js +1 -1
- package/dist/metadata/avatar.json +5 -0
- package/dist/metadata/index.json +15 -2
- package/dist/metadata/prose-editor.json +8 -0
- package/dist/metadata/tooltip.json +1 -1
- package/dist/templates/elements/avatar.md +23 -0
- package/dist/templates/elements/carousel.md +653 -0
- package/dist/templates/elements/disclosure.md +171 -0
- package/dist/templates/elements/divider.md +95 -0
- package/dist/templates/elements/dropdown.md +375 -0
- package/dist/templates/elements/icon.md +104 -0
- package/dist/templates/elements/input-otp.md +191 -0
- package/dist/templates/elements/input-stepper.md +214 -0
- package/dist/templates/elements/kbd.md +55 -0
- package/dist/templates/elements/popover.md +391 -0
- package/dist/templates/elements/prose-editor.md +11 -0
- package/dist/templates/elements/rating.md +262 -0
- package/dist/templates/elements/skeleton.md +112 -0
- package/dist/templates/elements/spinner.md +63 -0
- package/dist/templates/elements/stories-viewer.md +102 -0
- package/dist/templates/elements/stories.md +281 -0
- package/dist/templates/elements/story.md +59 -0
- package/dist/templates/elements/tabs.md +139 -0
- package/dist/templates/elements/tooltip.md +397 -0
- package/dist/templates/elements/tree-item.md +71 -0
- package/elements.json +18 -18
- package/package.json +2 -3
- package/cdn/chunks/module.js +0 -717
- package/cdn/chunks/module.js.map +0 -1
- package/cdn/chunks/native.js +0 -2
- package/cdn/chunks/native.js.map +0 -1
package/cdn/custom-elements.json
CHANGED
|
@@ -11,6 +11,11 @@
|
|
|
11
11
|
"description": "",
|
|
12
12
|
"name": "Avatar",
|
|
13
13
|
"cssProperties": [
|
|
14
|
+
{
|
|
15
|
+
"description": "Box size (any length). Set it inline (e.g. `style=\"--size: 20px\"`) for an arbitrary size beyond the `size` token scale; the font then follows proportionally. The `size` attribute sets it to the matching token.",
|
|
16
|
+
"name": "--size",
|
|
17
|
+
"default": "40px"
|
|
18
|
+
},
|
|
14
19
|
{
|
|
15
20
|
"description": "Background fill color for initials and the default icon.",
|
|
16
21
|
"name": "--color"
|
|
@@ -172,127 +177,6 @@
|
|
|
172
177
|
}
|
|
173
178
|
]
|
|
174
179
|
},
|
|
175
|
-
{
|
|
176
|
-
"kind": "javascript-module",
|
|
177
|
-
"path": "src/html/elements/badge/badge.ts",
|
|
178
|
-
"declarations": [
|
|
179
|
-
{
|
|
180
|
-
"kind": "class",
|
|
181
|
-
"description": "",
|
|
182
|
-
"name": "Badge",
|
|
183
|
-
"members": [
|
|
184
|
-
{
|
|
185
|
-
"kind": "field",
|
|
186
|
-
"name": "variant",
|
|
187
|
-
"type": {
|
|
188
|
-
"text": "BadgeVariant | undefined"
|
|
189
|
-
},
|
|
190
|
-
"description": "Style variant: `info`, `success`, `warning`, `danger`, or `neutral` (default)",
|
|
191
|
-
"attribute": "variant",
|
|
192
|
-
"reflects": true
|
|
193
|
-
},
|
|
194
|
-
{
|
|
195
|
-
"kind": "field",
|
|
196
|
-
"name": "pill",
|
|
197
|
-
"type": {
|
|
198
|
-
"text": "boolean"
|
|
199
|
-
},
|
|
200
|
-
"default": "false",
|
|
201
|
-
"description": "Display as pill shape",
|
|
202
|
-
"attribute": "pill",
|
|
203
|
-
"reflects": true
|
|
204
|
-
},
|
|
205
|
-
{
|
|
206
|
-
"kind": "field",
|
|
207
|
-
"name": "size",
|
|
208
|
-
"type": {
|
|
209
|
-
"text": "BadgeSize | undefined"
|
|
210
|
-
},
|
|
211
|
-
"description": "Badge size: `sm`, `lg`. Default is md.",
|
|
212
|
-
"attribute": "size",
|
|
213
|
-
"reflects": true
|
|
214
|
-
},
|
|
215
|
-
{
|
|
216
|
-
"kind": "field",
|
|
217
|
-
"name": "appearance",
|
|
218
|
-
"type": {
|
|
219
|
-
"text": "BadgeAppearance | undefined"
|
|
220
|
-
},
|
|
221
|
-
"description": "Visual appearance: `filled`, `filled-outlined`, `accent`. Default is outlined.",
|
|
222
|
-
"attribute": "appearance",
|
|
223
|
-
"reflects": true
|
|
224
|
-
}
|
|
225
|
-
],
|
|
226
|
-
"attributes": [
|
|
227
|
-
{
|
|
228
|
-
"name": "variant",
|
|
229
|
-
"type": {
|
|
230
|
-
"text": "BadgeVariant | undefined"
|
|
231
|
-
},
|
|
232
|
-
"description": "Style variant: `info`, `success`, `warning`, `danger`, or `neutral` (default)",
|
|
233
|
-
"fieldName": "variant"
|
|
234
|
-
},
|
|
235
|
-
{
|
|
236
|
-
"name": "pill",
|
|
237
|
-
"type": {
|
|
238
|
-
"text": "boolean"
|
|
239
|
-
},
|
|
240
|
-
"default": "false",
|
|
241
|
-
"description": "Display as pill shape",
|
|
242
|
-
"fieldName": "pill"
|
|
243
|
-
},
|
|
244
|
-
{
|
|
245
|
-
"name": "size",
|
|
246
|
-
"type": {
|
|
247
|
-
"text": "BadgeSize | undefined"
|
|
248
|
-
},
|
|
249
|
-
"description": "Badge size: `sm`, `lg`. Default is md.",
|
|
250
|
-
"fieldName": "size"
|
|
251
|
-
},
|
|
252
|
-
{
|
|
253
|
-
"name": "appearance",
|
|
254
|
-
"type": {
|
|
255
|
-
"text": "BadgeAppearance | undefined"
|
|
256
|
-
},
|
|
257
|
-
"description": "Visual appearance: `filled`, `filled-outlined`, `accent`. Default is outlined.",
|
|
258
|
-
"fieldName": "appearance"
|
|
259
|
-
}
|
|
260
|
-
],
|
|
261
|
-
"superclass": {
|
|
262
|
-
"name": "LuxenElement",
|
|
263
|
-
"module": "/src/html/shared/luxen-element.js"
|
|
264
|
-
},
|
|
265
|
-
"tagName": "l-badge",
|
|
266
|
-
"customElement": true,
|
|
267
|
-
"summary": "A badge component for displaying small status indicators."
|
|
268
|
-
}
|
|
269
|
-
],
|
|
270
|
-
"exports": [
|
|
271
|
-
{
|
|
272
|
-
"kind": "js",
|
|
273
|
-
"name": "Badge",
|
|
274
|
-
"declaration": {
|
|
275
|
-
"name": "Badge",
|
|
276
|
-
"module": "src/html/elements/badge/badge.ts"
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
]
|
|
280
|
-
},
|
|
281
|
-
{
|
|
282
|
-
"kind": "javascript-module",
|
|
283
|
-
"path": "src/html/elements/badge/index.ts",
|
|
284
|
-
"declarations": [],
|
|
285
|
-
"exports": [
|
|
286
|
-
{
|
|
287
|
-
"kind": "js",
|
|
288
|
-
"name": "*",
|
|
289
|
-
"declaration": {
|
|
290
|
-
"name": "*",
|
|
291
|
-
"module": "src/html/elements/badge/badge.js"
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
]
|
|
295
|
-
},
|
|
296
180
|
{
|
|
297
181
|
"kind": "javascript-module",
|
|
298
182
|
"path": "src/html/elements/button/button.meta.ts",
|
|
@@ -446,6 +330,127 @@
|
|
|
446
330
|
}
|
|
447
331
|
]
|
|
448
332
|
},
|
|
333
|
+
{
|
|
334
|
+
"kind": "javascript-module",
|
|
335
|
+
"path": "src/html/elements/badge/badge.ts",
|
|
336
|
+
"declarations": [
|
|
337
|
+
{
|
|
338
|
+
"kind": "class",
|
|
339
|
+
"description": "",
|
|
340
|
+
"name": "Badge",
|
|
341
|
+
"members": [
|
|
342
|
+
{
|
|
343
|
+
"kind": "field",
|
|
344
|
+
"name": "variant",
|
|
345
|
+
"type": {
|
|
346
|
+
"text": "BadgeVariant | undefined"
|
|
347
|
+
},
|
|
348
|
+
"description": "Style variant: `info`, `success`, `warning`, `danger`, or `neutral` (default)",
|
|
349
|
+
"attribute": "variant",
|
|
350
|
+
"reflects": true
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
"kind": "field",
|
|
354
|
+
"name": "pill",
|
|
355
|
+
"type": {
|
|
356
|
+
"text": "boolean"
|
|
357
|
+
},
|
|
358
|
+
"default": "false",
|
|
359
|
+
"description": "Display as pill shape",
|
|
360
|
+
"attribute": "pill",
|
|
361
|
+
"reflects": true
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
"kind": "field",
|
|
365
|
+
"name": "size",
|
|
366
|
+
"type": {
|
|
367
|
+
"text": "BadgeSize | undefined"
|
|
368
|
+
},
|
|
369
|
+
"description": "Badge size: `sm`, `lg`. Default is md.",
|
|
370
|
+
"attribute": "size",
|
|
371
|
+
"reflects": true
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
"kind": "field",
|
|
375
|
+
"name": "appearance",
|
|
376
|
+
"type": {
|
|
377
|
+
"text": "BadgeAppearance | undefined"
|
|
378
|
+
},
|
|
379
|
+
"description": "Visual appearance: `filled`, `filled-outlined`, `accent`. Default is outlined.",
|
|
380
|
+
"attribute": "appearance",
|
|
381
|
+
"reflects": true
|
|
382
|
+
}
|
|
383
|
+
],
|
|
384
|
+
"attributes": [
|
|
385
|
+
{
|
|
386
|
+
"name": "variant",
|
|
387
|
+
"type": {
|
|
388
|
+
"text": "BadgeVariant | undefined"
|
|
389
|
+
},
|
|
390
|
+
"description": "Style variant: `info`, `success`, `warning`, `danger`, or `neutral` (default)",
|
|
391
|
+
"fieldName": "variant"
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
"name": "pill",
|
|
395
|
+
"type": {
|
|
396
|
+
"text": "boolean"
|
|
397
|
+
},
|
|
398
|
+
"default": "false",
|
|
399
|
+
"description": "Display as pill shape",
|
|
400
|
+
"fieldName": "pill"
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
"name": "size",
|
|
404
|
+
"type": {
|
|
405
|
+
"text": "BadgeSize | undefined"
|
|
406
|
+
},
|
|
407
|
+
"description": "Badge size: `sm`, `lg`. Default is md.",
|
|
408
|
+
"fieldName": "size"
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
"name": "appearance",
|
|
412
|
+
"type": {
|
|
413
|
+
"text": "BadgeAppearance | undefined"
|
|
414
|
+
},
|
|
415
|
+
"description": "Visual appearance: `filled`, `filled-outlined`, `accent`. Default is outlined.",
|
|
416
|
+
"fieldName": "appearance"
|
|
417
|
+
}
|
|
418
|
+
],
|
|
419
|
+
"superclass": {
|
|
420
|
+
"name": "LuxenElement",
|
|
421
|
+
"module": "/src/html/shared/luxen-element.js"
|
|
422
|
+
},
|
|
423
|
+
"tagName": "l-badge",
|
|
424
|
+
"customElement": true,
|
|
425
|
+
"summary": "A badge component for displaying small status indicators."
|
|
426
|
+
}
|
|
427
|
+
],
|
|
428
|
+
"exports": [
|
|
429
|
+
{
|
|
430
|
+
"kind": "js",
|
|
431
|
+
"name": "Badge",
|
|
432
|
+
"declaration": {
|
|
433
|
+
"name": "Badge",
|
|
434
|
+
"module": "src/html/elements/badge/badge.ts"
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
]
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
"kind": "javascript-module",
|
|
441
|
+
"path": "src/html/elements/badge/index.ts",
|
|
442
|
+
"declarations": [],
|
|
443
|
+
"exports": [
|
|
444
|
+
{
|
|
445
|
+
"kind": "js",
|
|
446
|
+
"name": "*",
|
|
447
|
+
"declaration": {
|
|
448
|
+
"name": "*",
|
|
449
|
+
"module": "src/html/elements/badge/badge.js"
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
]
|
|
453
|
+
},
|
|
449
454
|
{
|
|
450
455
|
"kind": "javascript-module",
|
|
451
456
|
"path": "src/html/elements/button-group/button-group.ts",
|
|
@@ -1195,93 +1200,85 @@
|
|
|
1195
1200
|
},
|
|
1196
1201
|
{
|
|
1197
1202
|
"kind": "javascript-module",
|
|
1198
|
-
"path": "src/html/elements/
|
|
1203
|
+
"path": "src/html/elements/close-button/close-button.meta.ts",
|
|
1199
1204
|
"declarations": [
|
|
1200
1205
|
{
|
|
1201
1206
|
"kind": "class",
|
|
1202
1207
|
"description": "",
|
|
1203
|
-
"name": "
|
|
1208
|
+
"name": "CloseButtonMeta",
|
|
1204
1209
|
"cssProperties": [
|
|
1205
1210
|
{
|
|
1206
|
-
"description": "
|
|
1211
|
+
"description": "Button size.",
|
|
1207
1212
|
"name": "--size",
|
|
1208
|
-
"default": "
|
|
1213
|
+
"default": "36px"
|
|
1209
1214
|
},
|
|
1210
1215
|
{
|
|
1211
|
-
"description": "
|
|
1212
|
-
"name": "--
|
|
1213
|
-
"default": "var(--l-form-control-activated-color)"
|
|
1216
|
+
"description": "Icon color.",
|
|
1217
|
+
"name": "--icon-color"
|
|
1214
1218
|
},
|
|
1215
1219
|
{
|
|
1216
|
-
"description": "
|
|
1217
|
-
"name": "--
|
|
1218
|
-
|
|
1219
|
-
],
|
|
1220
|
-
"attributes": [
|
|
1221
|
-
{
|
|
1222
|
-
"description": "Whether the checkbox is checked.",
|
|
1223
|
-
"name": "checked"
|
|
1220
|
+
"description": "Icon size.",
|
|
1221
|
+
"name": "--icon-size",
|
|
1222
|
+
"default": "24px"
|
|
1224
1223
|
},
|
|
1225
1224
|
{
|
|
1226
|
-
"description": "
|
|
1227
|
-
"name": "
|
|
1225
|
+
"description": "Hover ring color (`ring` appearance only).",
|
|
1226
|
+
"name": "--ring-color"
|
|
1228
1227
|
},
|
|
1229
1228
|
{
|
|
1230
|
-
"description": "
|
|
1231
|
-
"name": "
|
|
1229
|
+
"description": "Hover ring thickness (`ring` appearance only).",
|
|
1230
|
+
"name": "--ring-tickness"
|
|
1231
|
+
}
|
|
1232
|
+
],
|
|
1233
|
+
"attributes": [
|
|
1234
|
+
{
|
|
1235
|
+
"description": "ring | square | circle — Visual appearance (matches the imported appearance CSS).",
|
|
1236
|
+
"name": "data-appearance"
|
|
1232
1237
|
},
|
|
1233
1238
|
{
|
|
1234
|
-
"description": "
|
|
1235
|
-
"name": "
|
|
1239
|
+
"description": "Invoker command (typically `close`).",
|
|
1240
|
+
"name": "command"
|
|
1236
1241
|
},
|
|
1237
1242
|
{
|
|
1238
|
-
"description": "
|
|
1239
|
-
"name": "
|
|
1243
|
+
"description": "ID of the target element to close.",
|
|
1244
|
+
"name": "commandfor"
|
|
1240
1245
|
}
|
|
1241
1246
|
],
|
|
1242
|
-
"summary": "
|
|
1247
|
+
"summary": "A circular/square icon button that renders an X via CSS mask, for dismissing dialogs and panels.",
|
|
1243
1248
|
"examples": [
|
|
1244
1249
|
{
|
|
1245
|
-
"title": "
|
|
1246
|
-
"language": "html",
|
|
1247
|
-
"code": "<input type=\"checkbox\" class=\"l-checkbox\" checked />"
|
|
1248
|
-
},
|
|
1249
|
-
{
|
|
1250
|
-
"title": "In a field (no class needed)",
|
|
1250
|
+
"title": "Ring appearance",
|
|
1251
1251
|
"language": "html",
|
|
1252
|
-
"code": "<l-
|
|
1252
|
+
"code": "<button class=\"l-close\" data-appearance=\"ring\" aria-label=\"Close\"></button>"
|
|
1253
1253
|
}
|
|
1254
1254
|
],
|
|
1255
1255
|
"_cssClasses": [
|
|
1256
1256
|
{
|
|
1257
|
-
"name": ".l-
|
|
1258
|
-
"description": "Base
|
|
1257
|
+
"name": ".l-close",
|
|
1258
|
+
"description": "Base close button with X icon via CSS mask."
|
|
1259
1259
|
}
|
|
1260
1260
|
],
|
|
1261
1261
|
"customElement": false,
|
|
1262
1262
|
"_native": true,
|
|
1263
|
-
"_nativeTag": "
|
|
1264
|
-
"selector": ".l-
|
|
1263
|
+
"_nativeTag": "button",
|
|
1264
|
+
"selector": ".l-close",
|
|
1265
1265
|
"_attributes": [
|
|
1266
1266
|
{
|
|
1267
|
-
"name": "
|
|
1268
|
-
"
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
{
|
|
1275
|
-
"name": "required",
|
|
1276
|
-
"description": "Marks the checkbox as required for form submission."
|
|
1267
|
+
"name": "data-appearance",
|
|
1268
|
+
"values": [
|
|
1269
|
+
"ring",
|
|
1270
|
+
"square",
|
|
1271
|
+
"circle"
|
|
1272
|
+
],
|
|
1273
|
+
"description": "Visual appearance (matches the imported appearance CSS)."
|
|
1277
1274
|
},
|
|
1278
1275
|
{
|
|
1279
|
-
"name": "
|
|
1280
|
-
"description": "
|
|
1276
|
+
"name": "command",
|
|
1277
|
+
"description": "Invoker command (typically `close`)."
|
|
1281
1278
|
},
|
|
1282
1279
|
{
|
|
1283
|
-
"name": "
|
|
1284
|
-
"description": "
|
|
1280
|
+
"name": "commandfor",
|
|
1281
|
+
"description": "ID of the target element to close."
|
|
1285
1282
|
}
|
|
1286
1283
|
]
|
|
1287
1284
|
}
|
|
@@ -1289,95 +1286,103 @@
|
|
|
1289
1286
|
"exports": [
|
|
1290
1287
|
{
|
|
1291
1288
|
"kind": "js",
|
|
1292
|
-
"name": "
|
|
1289
|
+
"name": "CloseButtonMeta",
|
|
1293
1290
|
"declaration": {
|
|
1294
|
-
"name": "
|
|
1295
|
-
"module": "src/html/elements/
|
|
1291
|
+
"name": "CloseButtonMeta",
|
|
1292
|
+
"module": "src/html/elements/close-button/close-button.meta.ts"
|
|
1296
1293
|
}
|
|
1297
1294
|
}
|
|
1298
1295
|
]
|
|
1299
1296
|
},
|
|
1300
1297
|
{
|
|
1301
1298
|
"kind": "javascript-module",
|
|
1302
|
-
"path": "src/html/elements/
|
|
1299
|
+
"path": "src/html/elements/checkbox/checkbox.meta.ts",
|
|
1303
1300
|
"declarations": [
|
|
1304
1301
|
{
|
|
1305
1302
|
"kind": "class",
|
|
1306
1303
|
"description": "",
|
|
1307
|
-
"name": "
|
|
1304
|
+
"name": "CheckboxMeta",
|
|
1308
1305
|
"cssProperties": [
|
|
1309
1306
|
{
|
|
1310
|
-
"description": "
|
|
1307
|
+
"description": "Box size. Defaults to `--l-form-control-toggle-size`.",
|
|
1311
1308
|
"name": "--size",
|
|
1312
|
-
"default": "
|
|
1313
|
-
},
|
|
1314
|
-
{
|
|
1315
|
-
"description": "Icon color.",
|
|
1316
|
-
"name": "--icon-color"
|
|
1317
|
-
},
|
|
1318
|
-
{
|
|
1319
|
-
"description": "Icon size.",
|
|
1320
|
-
"name": "--icon-size",
|
|
1321
|
-
"default": "24px"
|
|
1309
|
+
"default": "1.25em"
|
|
1322
1310
|
},
|
|
1323
1311
|
{
|
|
1324
|
-
"description": "
|
|
1325
|
-
"name": "--
|
|
1312
|
+
"description": "Checked/indeterminate fill color.",
|
|
1313
|
+
"name": "--accent",
|
|
1314
|
+
"default": "var(--l-form-control-activated-color)"
|
|
1326
1315
|
},
|
|
1327
1316
|
{
|
|
1328
|
-
"description": "
|
|
1329
|
-
"name": "--
|
|
1317
|
+
"description": "Checkmark icon as a `url()`. Override to swap the SVG (color is baked into the image).",
|
|
1318
|
+
"name": "--checkmark"
|
|
1330
1319
|
}
|
|
1331
1320
|
],
|
|
1332
1321
|
"attributes": [
|
|
1333
1322
|
{
|
|
1334
|
-
"description": "
|
|
1335
|
-
"name": "
|
|
1323
|
+
"description": "Whether the checkbox is checked.",
|
|
1324
|
+
"name": "checked"
|
|
1336
1325
|
},
|
|
1337
1326
|
{
|
|
1338
|
-
"description": "
|
|
1339
|
-
"name": "
|
|
1327
|
+
"description": "Disables the checkbox.",
|
|
1328
|
+
"name": "disabled"
|
|
1340
1329
|
},
|
|
1341
1330
|
{
|
|
1342
|
-
"description": "
|
|
1343
|
-
"name": "
|
|
1331
|
+
"description": "Marks the checkbox as required for form submission.",
|
|
1332
|
+
"name": "required"
|
|
1333
|
+
},
|
|
1334
|
+
{
|
|
1335
|
+
"description": "Indeterminate state (DOM property `el.indeterminate = true`; renders a dash). Typically the parent of a group.",
|
|
1336
|
+
"name": "indeterminate"
|
|
1337
|
+
},
|
|
1338
|
+
{
|
|
1339
|
+
"description": "Set to `true` to force the invalid style (otherwise applied via `:user-invalid`). `l-form-field` manages this automatically.",
|
|
1340
|
+
"name": "aria-invalid"
|
|
1344
1341
|
}
|
|
1345
1342
|
],
|
|
1346
|
-
"summary": "
|
|
1343
|
+
"summary": "Checkboxes let users select one or more options, or toggle a single setting on or off.",
|
|
1347
1344
|
"examples": [
|
|
1348
1345
|
{
|
|
1349
|
-
"title": "
|
|
1346
|
+
"title": "Default",
|
|
1350
1347
|
"language": "html",
|
|
1351
|
-
"code": "<
|
|
1348
|
+
"code": "<input type=\"checkbox\" class=\"l-checkbox\" checked />"
|
|
1349
|
+
},
|
|
1350
|
+
{
|
|
1351
|
+
"title": "In a field (no class needed)",
|
|
1352
|
+
"language": "html",
|
|
1353
|
+
"code": "<l-form-field>\n<label>Subscribe to the newsletter</label>\n<input type=\"checkbox\" />\n<l-hint>One email a month.</l-hint>\n</l-form-field>"
|
|
1352
1354
|
}
|
|
1353
1355
|
],
|
|
1354
1356
|
"_cssClasses": [
|
|
1355
1357
|
{
|
|
1356
|
-
"name": ".l-
|
|
1357
|
-
"description": "Base
|
|
1358
|
+
"name": ".l-checkbox",
|
|
1359
|
+
"description": "Base checkbox style, applied to `<input type=\"checkbox\">`. Inside `l-form-field` a bare checkbox is auto-styled, so the class is optional there."
|
|
1358
1360
|
}
|
|
1359
1361
|
],
|
|
1360
1362
|
"customElement": false,
|
|
1361
1363
|
"_native": true,
|
|
1362
|
-
"_nativeTag": "
|
|
1363
|
-
"selector": ".l-
|
|
1364
|
+
"_nativeTag": "input",
|
|
1365
|
+
"selector": ".l-checkbox",
|
|
1364
1366
|
"_attributes": [
|
|
1365
1367
|
{
|
|
1366
|
-
"name": "
|
|
1367
|
-
"
|
|
1368
|
-
"ring",
|
|
1369
|
-
"square",
|
|
1370
|
-
"circle"
|
|
1371
|
-
],
|
|
1372
|
-
"description": "Visual appearance (matches the imported appearance CSS)."
|
|
1368
|
+
"name": "checked",
|
|
1369
|
+
"description": "Whether the checkbox is checked."
|
|
1373
1370
|
},
|
|
1374
1371
|
{
|
|
1375
|
-
"name": "
|
|
1376
|
-
"description": "
|
|
1372
|
+
"name": "disabled",
|
|
1373
|
+
"description": "Disables the checkbox."
|
|
1377
1374
|
},
|
|
1378
1375
|
{
|
|
1379
|
-
"name": "
|
|
1380
|
-
"description": "
|
|
1376
|
+
"name": "required",
|
|
1377
|
+
"description": "Marks the checkbox as required for form submission."
|
|
1378
|
+
},
|
|
1379
|
+
{
|
|
1380
|
+
"name": "indeterminate",
|
|
1381
|
+
"description": "Indeterminate state (DOM property `el.indeterminate = true`; renders a dash). Typically the parent of a group."
|
|
1382
|
+
},
|
|
1383
|
+
{
|
|
1384
|
+
"name": "aria-invalid",
|
|
1385
|
+
"description": "Set to `true` to force the invalid style (otherwise applied via `:user-invalid`). `l-form-field` manages this automatically."
|
|
1381
1386
|
}
|
|
1382
1387
|
]
|
|
1383
1388
|
}
|
|
@@ -1385,10 +1390,10 @@
|
|
|
1385
1390
|
"exports": [
|
|
1386
1391
|
{
|
|
1387
1392
|
"kind": "js",
|
|
1388
|
-
"name": "
|
|
1393
|
+
"name": "CheckboxMeta",
|
|
1389
1394
|
"declaration": {
|
|
1390
|
-
"name": "
|
|
1391
|
-
"module": "src/html/elements/
|
|
1395
|
+
"name": "CheckboxMeta",
|
|
1396
|
+
"module": "src/html/elements/checkbox/checkbox.meta.ts"
|
|
1392
1397
|
}
|
|
1393
1398
|
}
|
|
1394
1399
|
]
|
|
@@ -3803,6 +3808,16 @@
|
|
|
3803
3808
|
"description": "Placeholder shown when the editor is empty.",
|
|
3804
3809
|
"attribute": "placeholder"
|
|
3805
3810
|
},
|
|
3811
|
+
{
|
|
3812
|
+
"kind": "field",
|
|
3813
|
+
"name": "emojiDataSource",
|
|
3814
|
+
"type": {
|
|
3815
|
+
"text": "string"
|
|
3816
|
+
},
|
|
3817
|
+
"default": "''",
|
|
3818
|
+
"description": "URL the emoji picker fetches its data from. Point this at a locally served\n`emojibase-data` JSON to run fully offline (no CDN). Defaults to the\npicker's bundled CDN source.",
|
|
3819
|
+
"attribute": "emoji-data-source"
|
|
3820
|
+
},
|
|
3806
3821
|
{
|
|
3807
3822
|
"kind": "field",
|
|
3808
3823
|
"name": "validationTarget",
|
|
@@ -3997,6 +4012,15 @@
|
|
|
3997
4012
|
"default": "''",
|
|
3998
4013
|
"description": "Placeholder shown when the editor is empty.",
|
|
3999
4014
|
"fieldName": "placeholder"
|
|
4015
|
+
},
|
|
4016
|
+
{
|
|
4017
|
+
"name": "emoji-data-source",
|
|
4018
|
+
"type": {
|
|
4019
|
+
"text": "string"
|
|
4020
|
+
},
|
|
4021
|
+
"default": "''",
|
|
4022
|
+
"description": "URL the emoji picker fetches its data from. Point this at a locally served\n`emojibase-data` JSON to run fully offline (no CDN). Defaults to the\npicker's bundled CDN source.",
|
|
4023
|
+
"fieldName": "emojiDataSource"
|
|
4000
4024
|
}
|
|
4001
4025
|
],
|
|
4002
4026
|
"superclass": {
|
|
@@ -5823,7 +5847,7 @@
|
|
|
5823
5847
|
"name": "Tooltip",
|
|
5824
5848
|
"cssProperties": [
|
|
5825
5849
|
{
|
|
5826
|
-
"description": "Background color.
|
|
5850
|
+
"description": "Background color for this tooltip instance. Defaults to the global `--l-tooltip-background-color` token (a neutral inverse surface, dark in light mode / light in dark mode) — override that token to re-skin every tooltip at once.",
|
|
5827
5851
|
"name": "--background-color"
|
|
5828
5852
|
},
|
|
5829
5853
|
{
|
|
@@ -3,6 +3,7 @@ import { LuxenElement } from '../../shared/luxen-element.js';
|
|
|
3
3
|
* @summary An avatar component for displaying user images, initials, or a default icon.
|
|
4
4
|
* @customElement l-avatar
|
|
5
5
|
*
|
|
6
|
+
* @cssproperty [--size=40px] - Box size (any length). Set it inline (e.g. `style="--size: 20px"`) for an arbitrary size beyond the `size` token scale; the font then follows proportionally. The `size` attribute sets it to the matching token.
|
|
6
7
|
* @cssproperty --color - Background fill color for initials and the default icon.
|
|
7
8
|
* @cssproperty --text-color - Initials/icon color over `--color`. Defaults to an auto-derived readable color; set it to enforce a specific brand color (overrides the automatic choice).
|
|
8
9
|
* @cssproperty --appearance - Set to `circle` for a fully circular avatar (default is a rounded square).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../../src/html/elements/avatar/avatar.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAqB7D
|
|
1
|
+
{"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../../src/html/elements/avatar/avatar.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAqB7D;;;;;;;;;;;;GAYG;AACH,qBAAa,MAAO,SAAQ,YAAY;IACtC,MAAM,CAAC,MAAM,4BAAwB;IAErC,qFAAqF;IAErF,GAAG,SAAM;IAET,6EAA6E;IAE7E,IAAI,SAAM;IAEV,8DAA8D;IAE9D,IAAI,SAAQ;IAEZ,4DAA4D;IAE5D,KAAK,SAAK;IAEV,+DAA+D;IAE/D,WAAW,UAAS;IAEX,OAAO,CAAC,SAAS,CAAS;IAEnC,UAAU,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC;IAMxC,iBAAiB;IAOjB,OAAO;IASP,OAAO,KAAK,IAAI,GAEf;IAED,MAAM;IA6BN,OAAO,CAAC,QAAQ,CAEd;CACH"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as e}from"../../chunks/lit.js";import{a as t,o as n,t as r}from"../../chunks/lit-html.js";import{LuxenElement as i}from"../../shared/luxen-element.js";import{r as a,t as o}from"../../chunks/static-html.js";import{i as s,r as c,t as l}from"../../chunks/decorate.js";import u from"../../shared/styles/host.styles.js";var d=e(`:host{--
|
|
1
|
+
import{i as e}from"../../chunks/lit.js";import{a as t,o as n,t as r}from"../../chunks/lit-html.js";import{LuxenElement as i}from"../../shared/luxen-element.js";import{r as a,t as o}from"../../chunks/static-html.js";import{i as s,r as c,t as l}from"../../chunks/decorate.js";import u from"../../shared/styles/host.styles.js";var d=e(`:host{--size:40px;--_font-size:calc(var(--size) * .4);width:var(--size);height:var(--size);border-radius:calc(var(--size) * .15);isolation:isolate;vertical-align:middle;color:var(--l-color-text-secondary);flex-shrink:0;justify-content:center;align-items:center;display:inline-flex;position:relative}:host([size=xs]){--size:24px;--_font-size:.75rem}:host([size=sm]){--size:32px;--_font-size:.875rem}:host([size=lg]){--size:48px;--_font-size:1.25rem}:host([size=xl]){--size:56px;--_font-size:1.25rem}img{object-fit:cover;border-radius:inherit;width:100%;height:100%}.initials{margin:auto}.icon{color:currentColor;width:60%;height:60%}.badge{z-index:1;min-width:12px;height:12px;box-shadow:0 0 0 2px var(--l-color-surface);background-color:var(--l-color-surface);font-variant-numeric:tabular-nums;color:var(--l-color-text-primary);border-radius:3px;justify-content:center;align-items:center;padding-inline:2px;font-size:.625rem;font-weight:500;line-height:1;display:flex;position:absolute;bottom:0;right:0;overflow:hidden}.base:after{content:"";border-radius:inherit;pointer-events:none;position:absolute;inset:0;box-shadow:inset 0 0 0 1px var(--lightningcss-light,oklch(0% 0 0/.07))var(--lightningcss-dark,oklch(100% 0 0/.1))}.base{border-radius:calc(var(--size) * .15);background-color:var(--color,var(--l-color-bg-fill-neutral-soft));--_on:calc(255 * ( 1 - sign(.2126 * (r / 255) * (r / 255) + .7152 * (g / 255) * (g / 255) + .0722 * (b / 255) * (b / 255) - .2) ) / 2);width:100%;height:100%;color:var(--text-color,rgb(from var(--color) var(--_on) var(--_on) var(--_on)));font-size:var(--_font-size);text-transform:uppercase;cursor:inherit;border:none;justify-content:center;align-items:center;padding:0;font-weight:500;line-height:1;display:inline-flex}@supports (color:contrast-color(red)){.base{color:var(--text-color,contrast-color(var(--color)))}}button.base{cursor:pointer}button.base:focus-visible{outline:2px solid var(--l-focus-ring);outline-offset:2px}button.base:hover{box-shadow:inset 0 0 0 1.5px var(--l-color-border-interactive)}@container style(--appearance:circle){.base{border-radius:50%}}`);function f(e){return e.match(/(\b\S)?/g).join(``).match(/(^\S|\S$)?/g).join(``).toUpperCase()}var p=n`<svg class="icon" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
|
|
2
2
|
<path d="M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z" />
|
|
3
3
|
</svg>`,m=class extends i{constructor(...e){super(...e),this.src=``,this.name=``,this.size=`md`,this.badge=0,this.interactive=!1,this._hasError=!1,this._onError=()=>{this._hasError=!0}}static{this.styles=[u,d]}willUpdate(e){e.has(`src`)&&(this._hasError=!1)}connectedCallback(){super.connectedCallback(),this.hasAttribute(`role`)||this.setAttribute(`role`,`img`)}updated(){this.name&&this.setAttribute(`aria-label`,this.name);let e=getComputedStyle(this).getPropertyValue(`--appearance`).trim()===`circle`;this.style.borderRadius=e?`50%`:``}get _tag(){return this.interactive?o`button`:o`div`}render(){let e=this.src&&!this._hasError?t`<img
|
|
4
4
|
src=${this.src}
|