luxen-ui 0.17.0 → 0.18.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/custom-elements.json +336 -181
- package/cdn/elements/alert/alert.d.ts +0 -5
- package/cdn/elements/alert/alert.d.ts.map +1 -1
- package/cdn/elements/alert/alert.js.map +1 -1
- package/cdn/elements/alert-dialog/alert-dialog.d.ts.map +1 -1
- package/cdn/elements/alert-dialog/alert-dialog.js +8 -8
- package/cdn/elements/alert-dialog/alert-dialog.js.map +1 -1
- package/cdn/elements/avatar/avatar.js +3 -3
- package/cdn/elements/dropdown-item/dropdown-item.d.ts +4 -0
- package/cdn/elements/dropdown-item/dropdown-item.d.ts.map +1 -1
- package/cdn/elements/dropdown-item/dropdown-item.js +2 -2
- package/cdn/elements/dropdown-item/dropdown-item.js.map +1 -1
- package/cdn/elements/form-field/form-field.d.ts.map +1 -1
- package/cdn/elements/form-field/form-field.js +1 -1
- package/cdn/elements/form-field/form-field.js.map +1 -1
- package/cdn/elements/input-otp/input-otp.d.ts.map +1 -1
- package/cdn/elements/input-otp/input-otp.js +1 -1
- package/cdn/elements/input-otp/input-otp.js.map +1 -1
- package/cdn/elements/input-stepper/input-stepper.js +1 -1
- package/cdn/elements/input-stepper/input-stepper.js.map +1 -1
- package/cdn/elements/prose-editor/prose-editor.d.ts +1 -0
- package/cdn/elements/prose-editor/prose-editor.d.ts.map +1 -1
- package/cdn/elements/prose-editor/prose-editor.js +8 -8
- package/cdn/elements/prose-editor/prose-editor.js.map +1 -1
- package/cdn/elements/select/select.js +1 -1
- package/cdn/elements/slider/slider.d.ts +0 -5
- package/cdn/elements/slider/slider.d.ts.map +1 -1
- package/cdn/elements/slider/slider.js.map +1 -1
- package/cdn/elements/stories-viewer/stories-viewer.d.ts.map +1 -1
- package/cdn/elements/stories-viewer/stories-viewer.js +13 -13
- package/cdn/elements/stories-viewer/stories-viewer.js.map +1 -1
- package/cdn/elements/story/story.d.ts.map +1 -1
- package/cdn/elements/story/story.js +11 -11
- package/cdn/elements/story/story.js.map +1 -1
- package/cdn/elements/tag/tag.d.ts +51 -2
- package/cdn/elements/tag/tag.d.ts.map +1 -1
- package/cdn/elements/tag/tag.js +53 -17
- package/cdn/elements/tag/tag.js.map +1 -1
- package/cdn/elements/tree-item/tree-item.js +6 -6
- package/cdn/elements/tree-item/tree-item.js.map +1 -1
- package/cdn/shared/styles/button-core.styles.js.map +1 -1
- package/cdn/shared/styles/checkbox-appearance.styles.js +1 -1
- package/cdn/shared/styles/checkbox-appearance.styles.js.map +1 -1
- package/cdn/standalone.css +277 -24
- package/cdn/styles/elements/button.css +6 -0
- package/cdn/styles/elements/checkbox.css +49 -0
- package/cdn/styles/elements/form-field.css +50 -0
- package/cdn/styles/elements/input-otp.css +7 -2
- package/cdn/styles/elements/input-stepper/default.css +10 -4
- package/cdn/styles/elements/input-stepper/rounded.css +6 -2
- package/cdn/styles/elements/input.css +19 -1
- package/cdn/styles/elements/prose-editor.css +46 -0
- package/cdn/styles/elements/radio.css +23 -1
- package/cdn/styles/elements/segmented-control.css +26 -7
- package/cdn/styles/elements/switch.css +28 -2
- package/cdn/styles/preset.css +7 -5
- package/cdn/styles/tokens/forms.css +7 -5
- package/cdn/styles/tokens.css +7 -5
- package/dist/css/elements/button.css +6 -0
- package/dist/css/elements/checkbox.css +49 -0
- package/dist/css/elements/form-field.css +50 -0
- package/dist/css/elements/input-otp.css +7 -2
- package/dist/css/elements/input-stepper/default.css +10 -4
- package/dist/css/elements/input-stepper/rounded.css +6 -2
- package/dist/css/elements/input.css +19 -1
- package/dist/css/elements/prose-editor.css +46 -0
- package/dist/css/elements/radio.css +23 -1
- package/dist/css/elements/segmented-control.css +26 -7
- package/dist/css/elements/switch.css +28 -2
- package/dist/css/preset.css +7 -5
- package/dist/css/tokens/forms.css +7 -5
- package/dist/css/tokens.css +7 -5
- package/dist/custom-elements.json +336 -181
- package/dist/elements/alert/alert.d.ts +0 -5
- package/dist/elements/alert/alert.d.ts.map +1 -1
- package/dist/elements/alert-dialog/alert-dialog.d.ts.map +1 -1
- package/dist/elements/alert-dialog/alert-dialog.js +15 -3
- package/dist/elements/dropdown-item/dropdown-item.css +18 -0
- package/dist/elements/dropdown-item/dropdown-item.d.ts +4 -0
- package/dist/elements/dropdown-item/dropdown-item.d.ts.map +1 -1
- package/dist/elements/dropdown-item/dropdown-item.js +11 -2
- package/dist/elements/form-field/form-field.d.ts.map +1 -1
- package/dist/elements/form-field/form-field.js +5 -3
- package/dist/elements/input-otp/input-otp.d.ts.map +1 -1
- package/dist/elements/input-otp/input-otp.js +4 -3
- package/dist/elements/input-stepper/input-stepper.js +4 -4
- package/dist/elements/prose-editor/prose-editor.css +31 -0
- package/dist/elements/prose-editor/prose-editor.d.ts +1 -0
- package/dist/elements/prose-editor/prose-editor.d.ts.map +1 -1
- package/dist/elements/prose-editor/prose-editor.js +1 -0
- package/dist/elements/slider/slider.css +6 -0
- package/dist/elements/slider/slider.d.ts +0 -5
- package/dist/elements/slider/slider.d.ts.map +1 -1
- package/dist/elements/stories-viewer/stories-viewer.d.ts.map +1 -1
- package/dist/elements/stories-viewer/stories-viewer.js +4 -1
- package/dist/elements/story/story.d.ts.map +1 -1
- package/dist/elements/story/story.js +9 -4
- package/dist/elements/tag/tag.css +202 -16
- package/dist/elements/tag/tag.d.ts +51 -2
- package/dist/elements/tag/tag.d.ts.map +1 -1
- package/dist/elements/tag/tag.js +151 -22
- package/dist/elements/tree-item/tree-item.js +2 -2
- package/dist/metadata/dropdown-item.json +16 -1
- package/dist/metadata/index.json +91 -5
- package/dist/metadata/prose-editor.json +5 -0
- package/dist/metadata/tag.json +69 -3
- package/dist/shared/styles/button-core.css +6 -0
- package/dist/shared/styles/checkbox-appearance.css +49 -0
- package/dist/templates/elements/checkbox.md +2 -0
- package/dist/templates/elements/dropdown.md +52 -0
- package/dist/templates/elements/form-field.md +33 -0
- package/dist/templates/elements/input.md +1 -1
- package/dist/templates/elements/prose-editor.md +2 -1
- package/dist/templates/elements/radio.md +2 -0
- package/dist/templates/elements/select.md +14 -0
- package/dist/templates/elements/tag.md +225 -8
- package/dist/templates/elements/textarea.md +1 -1
- package/package.json +1 -1
- package/vite-plugin.ts +7 -0
package/cdn/custom-elements.json
CHANGED
|
@@ -172,6 +172,181 @@
|
|
|
172
172
|
}
|
|
173
173
|
]
|
|
174
174
|
},
|
|
175
|
+
{
|
|
176
|
+
"kind": "javascript-module",
|
|
177
|
+
"path": "src/html/elements/avatar/avatar.ts",
|
|
178
|
+
"declarations": [
|
|
179
|
+
{
|
|
180
|
+
"kind": "class",
|
|
181
|
+
"description": "",
|
|
182
|
+
"name": "Avatar",
|
|
183
|
+
"cssProperties": [
|
|
184
|
+
{
|
|
185
|
+
"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.",
|
|
186
|
+
"name": "--size",
|
|
187
|
+
"default": "40px"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"description": "Background fill color for initials and the default icon.",
|
|
191
|
+
"name": "--color"
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"description": "Initials/icon color over `--color`. Defaults to an auto-derived readable color; set it to enforce a specific brand color (overrides the automatic choice).",
|
|
195
|
+
"name": "--text-color"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"description": "Set to `circle` for a fully circular avatar (default is a rounded square).",
|
|
199
|
+
"name": "--appearance"
|
|
200
|
+
}
|
|
201
|
+
],
|
|
202
|
+
"cssParts": [
|
|
203
|
+
{
|
|
204
|
+
"description": "The avatar container that paints `--color`; style it (e.g. `color`) to override the auto-derived text color.",
|
|
205
|
+
"name": "base"
|
|
206
|
+
}
|
|
207
|
+
],
|
|
208
|
+
"members": [
|
|
209
|
+
{
|
|
210
|
+
"kind": "field",
|
|
211
|
+
"name": "src",
|
|
212
|
+
"type": {
|
|
213
|
+
"text": "string"
|
|
214
|
+
},
|
|
215
|
+
"default": "''",
|
|
216
|
+
"description": "Image URL. Falls back to initials (then the default icon) if it fails to load.",
|
|
217
|
+
"attribute": "src"
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"kind": "field",
|
|
221
|
+
"name": "name",
|
|
222
|
+
"type": {
|
|
223
|
+
"text": "string"
|
|
224
|
+
},
|
|
225
|
+
"default": "''",
|
|
226
|
+
"description": "Name used as the accessible label and to derive the initials fallback.",
|
|
227
|
+
"attribute": "name"
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"kind": "field",
|
|
231
|
+
"name": "size",
|
|
232
|
+
"type": {
|
|
233
|
+
"text": "string"
|
|
234
|
+
},
|
|
235
|
+
"default": "'md'",
|
|
236
|
+
"description": "Avatar size: `xs`, `sm`, `md` (default), `lg`, or `xl`.",
|
|
237
|
+
"attribute": "size",
|
|
238
|
+
"reflects": true
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
"kind": "field",
|
|
242
|
+
"name": "badge",
|
|
243
|
+
"type": {
|
|
244
|
+
"text": "number"
|
|
245
|
+
},
|
|
246
|
+
"default": "0",
|
|
247
|
+
"description": "Count shown in the corner badge. `0` hides the badge.",
|
|
248
|
+
"attribute": "badge"
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"kind": "field",
|
|
252
|
+
"name": "interactive",
|
|
253
|
+
"type": {
|
|
254
|
+
"text": "boolean"
|
|
255
|
+
},
|
|
256
|
+
"default": "false",
|
|
257
|
+
"description": "Render as a `<button>` with focus ring and hover states.",
|
|
258
|
+
"attribute": "interactive",
|
|
259
|
+
"reflects": true
|
|
260
|
+
}
|
|
261
|
+
],
|
|
262
|
+
"attributes": [
|
|
263
|
+
{
|
|
264
|
+
"name": "src",
|
|
265
|
+
"type": {
|
|
266
|
+
"text": "string"
|
|
267
|
+
},
|
|
268
|
+
"default": "''",
|
|
269
|
+
"description": "Image URL. Falls back to initials (then the default icon) if it fails to load.",
|
|
270
|
+
"fieldName": "src"
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"name": "name",
|
|
274
|
+
"type": {
|
|
275
|
+
"text": "string"
|
|
276
|
+
},
|
|
277
|
+
"default": "''",
|
|
278
|
+
"description": "Name used as the accessible label and to derive the initials fallback.",
|
|
279
|
+
"fieldName": "name"
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
"name": "size",
|
|
283
|
+
"type": {
|
|
284
|
+
"text": "string"
|
|
285
|
+
},
|
|
286
|
+
"default": "'md'",
|
|
287
|
+
"description": "Avatar size: `xs`, `sm`, `md` (default), `lg`, or `xl`.",
|
|
288
|
+
"fieldName": "size"
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"name": "badge",
|
|
292
|
+
"type": {
|
|
293
|
+
"text": "number"
|
|
294
|
+
},
|
|
295
|
+
"default": "0",
|
|
296
|
+
"description": "Count shown in the corner badge. `0` hides the badge.",
|
|
297
|
+
"fieldName": "badge"
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
"name": "interactive",
|
|
301
|
+
"type": {
|
|
302
|
+
"text": "boolean"
|
|
303
|
+
},
|
|
304
|
+
"default": "false",
|
|
305
|
+
"description": "Render as a `<button>` with focus ring and hover states.",
|
|
306
|
+
"fieldName": "interactive"
|
|
307
|
+
}
|
|
308
|
+
],
|
|
309
|
+
"superclass": {
|
|
310
|
+
"name": "LuxenElement",
|
|
311
|
+
"module": "/src/html/shared/luxen-element.js"
|
|
312
|
+
},
|
|
313
|
+
"tagName": "l-avatar",
|
|
314
|
+
"customElement": true,
|
|
315
|
+
"summary": "An avatar component for displaying user images, initials, or a default icon.",
|
|
316
|
+
"_cssClasses": [
|
|
317
|
+
{
|
|
318
|
+
"name": ".l-avatar-group",
|
|
319
|
+
"description": "Flex wrapper that overlaps a row of stacked avatars."
|
|
320
|
+
}
|
|
321
|
+
]
|
|
322
|
+
}
|
|
323
|
+
],
|
|
324
|
+
"exports": [
|
|
325
|
+
{
|
|
326
|
+
"kind": "js",
|
|
327
|
+
"name": "Avatar",
|
|
328
|
+
"declaration": {
|
|
329
|
+
"name": "Avatar",
|
|
330
|
+
"module": "src/html/elements/avatar/avatar.ts"
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
]
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
"kind": "javascript-module",
|
|
337
|
+
"path": "src/html/elements/avatar/index.ts",
|
|
338
|
+
"declarations": [],
|
|
339
|
+
"exports": [
|
|
340
|
+
{
|
|
341
|
+
"kind": "js",
|
|
342
|
+
"name": "*",
|
|
343
|
+
"declaration": {
|
|
344
|
+
"name": "*",
|
|
345
|
+
"module": "src/html/elements/avatar/avatar.js"
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
]
|
|
349
|
+
},
|
|
175
350
|
{
|
|
176
351
|
"kind": "javascript-module",
|
|
177
352
|
"path": "src/html/elements/alert-dialog/alert-dialog.ts",
|
|
@@ -652,181 +827,6 @@
|
|
|
652
827
|
}
|
|
653
828
|
]
|
|
654
829
|
},
|
|
655
|
-
{
|
|
656
|
-
"kind": "javascript-module",
|
|
657
|
-
"path": "src/html/elements/avatar/avatar.ts",
|
|
658
|
-
"declarations": [
|
|
659
|
-
{
|
|
660
|
-
"kind": "class",
|
|
661
|
-
"description": "",
|
|
662
|
-
"name": "Avatar",
|
|
663
|
-
"cssProperties": [
|
|
664
|
-
{
|
|
665
|
-
"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.",
|
|
666
|
-
"name": "--size",
|
|
667
|
-
"default": "40px"
|
|
668
|
-
},
|
|
669
|
-
{
|
|
670
|
-
"description": "Background fill color for initials and the default icon.",
|
|
671
|
-
"name": "--color"
|
|
672
|
-
},
|
|
673
|
-
{
|
|
674
|
-
"description": "Initials/icon color over `--color`. Defaults to an auto-derived readable color; set it to enforce a specific brand color (overrides the automatic choice).",
|
|
675
|
-
"name": "--text-color"
|
|
676
|
-
},
|
|
677
|
-
{
|
|
678
|
-
"description": "Set to `circle` for a fully circular avatar (default is a rounded square).",
|
|
679
|
-
"name": "--appearance"
|
|
680
|
-
}
|
|
681
|
-
],
|
|
682
|
-
"cssParts": [
|
|
683
|
-
{
|
|
684
|
-
"description": "The avatar container that paints `--color`; style it (e.g. `color`) to override the auto-derived text color.",
|
|
685
|
-
"name": "base"
|
|
686
|
-
}
|
|
687
|
-
],
|
|
688
|
-
"members": [
|
|
689
|
-
{
|
|
690
|
-
"kind": "field",
|
|
691
|
-
"name": "src",
|
|
692
|
-
"type": {
|
|
693
|
-
"text": "string"
|
|
694
|
-
},
|
|
695
|
-
"default": "''",
|
|
696
|
-
"description": "Image URL. Falls back to initials (then the default icon) if it fails to load.",
|
|
697
|
-
"attribute": "src"
|
|
698
|
-
},
|
|
699
|
-
{
|
|
700
|
-
"kind": "field",
|
|
701
|
-
"name": "name",
|
|
702
|
-
"type": {
|
|
703
|
-
"text": "string"
|
|
704
|
-
},
|
|
705
|
-
"default": "''",
|
|
706
|
-
"description": "Name used as the accessible label and to derive the initials fallback.",
|
|
707
|
-
"attribute": "name"
|
|
708
|
-
},
|
|
709
|
-
{
|
|
710
|
-
"kind": "field",
|
|
711
|
-
"name": "size",
|
|
712
|
-
"type": {
|
|
713
|
-
"text": "string"
|
|
714
|
-
},
|
|
715
|
-
"default": "'md'",
|
|
716
|
-
"description": "Avatar size: `xs`, `sm`, `md` (default), `lg`, or `xl`.",
|
|
717
|
-
"attribute": "size",
|
|
718
|
-
"reflects": true
|
|
719
|
-
},
|
|
720
|
-
{
|
|
721
|
-
"kind": "field",
|
|
722
|
-
"name": "badge",
|
|
723
|
-
"type": {
|
|
724
|
-
"text": "number"
|
|
725
|
-
},
|
|
726
|
-
"default": "0",
|
|
727
|
-
"description": "Count shown in the corner badge. `0` hides the badge.",
|
|
728
|
-
"attribute": "badge"
|
|
729
|
-
},
|
|
730
|
-
{
|
|
731
|
-
"kind": "field",
|
|
732
|
-
"name": "interactive",
|
|
733
|
-
"type": {
|
|
734
|
-
"text": "boolean"
|
|
735
|
-
},
|
|
736
|
-
"default": "false",
|
|
737
|
-
"description": "Render as a `<button>` with focus ring and hover states.",
|
|
738
|
-
"attribute": "interactive",
|
|
739
|
-
"reflects": true
|
|
740
|
-
}
|
|
741
|
-
],
|
|
742
|
-
"attributes": [
|
|
743
|
-
{
|
|
744
|
-
"name": "src",
|
|
745
|
-
"type": {
|
|
746
|
-
"text": "string"
|
|
747
|
-
},
|
|
748
|
-
"default": "''",
|
|
749
|
-
"description": "Image URL. Falls back to initials (then the default icon) if it fails to load.",
|
|
750
|
-
"fieldName": "src"
|
|
751
|
-
},
|
|
752
|
-
{
|
|
753
|
-
"name": "name",
|
|
754
|
-
"type": {
|
|
755
|
-
"text": "string"
|
|
756
|
-
},
|
|
757
|
-
"default": "''",
|
|
758
|
-
"description": "Name used as the accessible label and to derive the initials fallback.",
|
|
759
|
-
"fieldName": "name"
|
|
760
|
-
},
|
|
761
|
-
{
|
|
762
|
-
"name": "size",
|
|
763
|
-
"type": {
|
|
764
|
-
"text": "string"
|
|
765
|
-
},
|
|
766
|
-
"default": "'md'",
|
|
767
|
-
"description": "Avatar size: `xs`, `sm`, `md` (default), `lg`, or `xl`.",
|
|
768
|
-
"fieldName": "size"
|
|
769
|
-
},
|
|
770
|
-
{
|
|
771
|
-
"name": "badge",
|
|
772
|
-
"type": {
|
|
773
|
-
"text": "number"
|
|
774
|
-
},
|
|
775
|
-
"default": "0",
|
|
776
|
-
"description": "Count shown in the corner badge. `0` hides the badge.",
|
|
777
|
-
"fieldName": "badge"
|
|
778
|
-
},
|
|
779
|
-
{
|
|
780
|
-
"name": "interactive",
|
|
781
|
-
"type": {
|
|
782
|
-
"text": "boolean"
|
|
783
|
-
},
|
|
784
|
-
"default": "false",
|
|
785
|
-
"description": "Render as a `<button>` with focus ring and hover states.",
|
|
786
|
-
"fieldName": "interactive"
|
|
787
|
-
}
|
|
788
|
-
],
|
|
789
|
-
"superclass": {
|
|
790
|
-
"name": "LuxenElement",
|
|
791
|
-
"module": "/src/html/shared/luxen-element.js"
|
|
792
|
-
},
|
|
793
|
-
"tagName": "l-avatar",
|
|
794
|
-
"customElement": true,
|
|
795
|
-
"summary": "An avatar component for displaying user images, initials, or a default icon.",
|
|
796
|
-
"_cssClasses": [
|
|
797
|
-
{
|
|
798
|
-
"name": ".l-avatar-group",
|
|
799
|
-
"description": "Flex wrapper that overlaps a row of stacked avatars."
|
|
800
|
-
}
|
|
801
|
-
]
|
|
802
|
-
}
|
|
803
|
-
],
|
|
804
|
-
"exports": [
|
|
805
|
-
{
|
|
806
|
-
"kind": "js",
|
|
807
|
-
"name": "Avatar",
|
|
808
|
-
"declaration": {
|
|
809
|
-
"name": "Avatar",
|
|
810
|
-
"module": "src/html/elements/avatar/avatar.ts"
|
|
811
|
-
}
|
|
812
|
-
}
|
|
813
|
-
]
|
|
814
|
-
},
|
|
815
|
-
{
|
|
816
|
-
"kind": "javascript-module",
|
|
817
|
-
"path": "src/html/elements/avatar/index.ts",
|
|
818
|
-
"declarations": [],
|
|
819
|
-
"exports": [
|
|
820
|
-
{
|
|
821
|
-
"kind": "js",
|
|
822
|
-
"name": "*",
|
|
823
|
-
"declaration": {
|
|
824
|
-
"name": "*",
|
|
825
|
-
"module": "src/html/elements/avatar/avatar.js"
|
|
826
|
-
}
|
|
827
|
-
}
|
|
828
|
-
]
|
|
829
|
-
},
|
|
830
830
|
{
|
|
831
831
|
"kind": "javascript-module",
|
|
832
832
|
"path": "src/html/elements/badge/badge.ts",
|
|
@@ -3750,6 +3750,17 @@
|
|
|
3750
3750
|
"description": "The type of item: `normal` or `checkbox`.",
|
|
3751
3751
|
"attribute": "type"
|
|
3752
3752
|
},
|
|
3753
|
+
{
|
|
3754
|
+
"kind": "field",
|
|
3755
|
+
"name": "variant",
|
|
3756
|
+
"type": {
|
|
3757
|
+
"text": "'destructive' | undefined"
|
|
3758
|
+
},
|
|
3759
|
+
"default": "undefined",
|
|
3760
|
+
"description": "Visual variant. `destructive` marks a delete-style action in red.",
|
|
3761
|
+
"attribute": "variant",
|
|
3762
|
+
"reflects": true
|
|
3763
|
+
},
|
|
3753
3764
|
{
|
|
3754
3765
|
"kind": "field",
|
|
3755
3766
|
"name": "checked",
|
|
@@ -3813,6 +3824,15 @@
|
|
|
3813
3824
|
}
|
|
3814
3825
|
],
|
|
3815
3826
|
"attributes": [
|
|
3827
|
+
{
|
|
3828
|
+
"description": "Visual variant. `destructive` marks a delete-style action in red.",
|
|
3829
|
+
"name": "variant",
|
|
3830
|
+
"type": {
|
|
3831
|
+
"text": "'destructive' | undefined"
|
|
3832
|
+
},
|
|
3833
|
+
"default": "undefined",
|
|
3834
|
+
"fieldName": "variant"
|
|
3835
|
+
},
|
|
3816
3836
|
{
|
|
3817
3837
|
"name": "value",
|
|
3818
3838
|
"type": {
|
|
@@ -3864,7 +3884,13 @@
|
|
|
3864
3884
|
"module": "/src/html/shared/luxen-element.js"
|
|
3865
3885
|
},
|
|
3866
3886
|
"tagName": "l-dropdown-item",
|
|
3867
|
-
"customElement": true
|
|
3887
|
+
"customElement": true,
|
|
3888
|
+
"_attributes": [
|
|
3889
|
+
{
|
|
3890
|
+
"name": "variant",
|
|
3891
|
+
"description": "destructive — Renders the item as a destructive action (red), for delete-style entries."
|
|
3892
|
+
}
|
|
3893
|
+
]
|
|
3868
3894
|
}
|
|
3869
3895
|
],
|
|
3870
3896
|
"exports": [
|
|
@@ -5251,6 +5277,10 @@
|
|
|
5251
5277
|
"description": "Color of the editor frame border.",
|
|
5252
5278
|
"name": "--border-color"
|
|
5253
5279
|
},
|
|
5280
|
+
{
|
|
5281
|
+
"description": "Color of the editor frame border while the editable area has focus.",
|
|
5282
|
+
"name": "--border-color-focus"
|
|
5283
|
+
},
|
|
5254
5284
|
{
|
|
5255
5285
|
"description": "Width of the editor frame border.",
|
|
5256
5286
|
"name": "--border-width"
|
|
@@ -8701,13 +8731,45 @@
|
|
|
8701
8731
|
},
|
|
8702
8732
|
{
|
|
8703
8733
|
"kind": "class",
|
|
8704
|
-
"description": "
|
|
8734
|
+
"description": "Fired when a `selectable` tag is toggled. Bubbles; not composed.",
|
|
8735
|
+
"name": "TagChangeEvent",
|
|
8736
|
+
"members": [
|
|
8737
|
+
{
|
|
8738
|
+
"kind": "field",
|
|
8739
|
+
"name": "selected",
|
|
8740
|
+
"type": {
|
|
8741
|
+
"text": "boolean"
|
|
8742
|
+
},
|
|
8743
|
+
"readonly": true,
|
|
8744
|
+
"default": "selected"
|
|
8745
|
+
}
|
|
8746
|
+
],
|
|
8747
|
+
"superclass": {
|
|
8748
|
+
"name": "Event",
|
|
8749
|
+
"module": "src/html/elements/tag/tag.ts"
|
|
8750
|
+
}
|
|
8751
|
+
},
|
|
8752
|
+
{
|
|
8753
|
+
"kind": "class",
|
|
8754
|
+
"description": "A compact chip for tokens, filters, and multi-select values. Shadow DOM so its\nstyles are self-contained and it renders correctly **anywhere**, including\ninside another element's shadow root (e.g. the `<l-select>` multi-select\ntrigger).\n\nAdd `selectable` to turn the chip into a filter control: the tag itself\nbecomes a toggle button (`aria-pressed`), and re-activating a selected tag\ndeselects it — the affordance a radio group cannot offer, so a facet always\nhas a way back to \"all\". Add `control=\"checkbox\"` for a multi-select axis and\nthe library's own checkbox rides inside, with the chip as its label.",
|
|
8705
8755
|
"name": "Tag",
|
|
8706
8756
|
"cssProperties": [
|
|
8707
8757
|
{
|
|
8708
8758
|
"description": "Corner radius. Defaults to a full pill.",
|
|
8709
8759
|
"name": "--border-radius"
|
|
8710
8760
|
},
|
|
8761
|
+
{
|
|
8762
|
+
"description": "Chip height. Defaults to the `size` step (a selectable chip is taller, to keep a comfortable target).",
|
|
8763
|
+
"name": "--height"
|
|
8764
|
+
},
|
|
8765
|
+
{
|
|
8766
|
+
"description": "Label size. Defaults to the `size` step — 12px, or 14px at `size=\"lg\"`. Set it with `--height` to land between the two steps in a dense filter panel.",
|
|
8767
|
+
"name": "--font-size"
|
|
8768
|
+
},
|
|
8769
|
+
{
|
|
8770
|
+
"description": "Horizontal padding. Defaults to the `size` step.",
|
|
8771
|
+
"name": "--padding-inline"
|
|
8772
|
+
},
|
|
8711
8773
|
{
|
|
8712
8774
|
"description": "Chip background.",
|
|
8713
8775
|
"name": "--background"
|
|
@@ -8715,6 +8777,14 @@
|
|
|
8715
8777
|
{
|
|
8716
8778
|
"description": "Text color.",
|
|
8717
8779
|
"name": "--color"
|
|
8780
|
+
},
|
|
8781
|
+
{
|
|
8782
|
+
"description": "Text, border, and checkbox accent when selected. Defaults to the library's form-control accent, lightened in dark mode.",
|
|
8783
|
+
"name": "--selected-color"
|
|
8784
|
+
},
|
|
8785
|
+
{
|
|
8786
|
+
"description": "Chip background when selected. Defaults to a tint of `--selected-color`.",
|
|
8787
|
+
"name": "--selected-background"
|
|
8718
8788
|
}
|
|
8719
8789
|
],
|
|
8720
8790
|
"cssParts": [
|
|
@@ -8726,6 +8796,14 @@
|
|
|
8726
8796
|
"description": "The label wrapper.",
|
|
8727
8797
|
"name": "content"
|
|
8728
8798
|
},
|
|
8799
|
+
{
|
|
8800
|
+
"description": "The toggle button rendered by `selectable` (not with `control=\"checkbox\"`).",
|
|
8801
|
+
"name": "toggle"
|
|
8802
|
+
},
|
|
8803
|
+
{
|
|
8804
|
+
"description": "The native checkbox rendered by `control=\"checkbox\"`.",
|
|
8805
|
+
"name": "checkbox"
|
|
8806
|
+
},
|
|
8729
8807
|
{
|
|
8730
8808
|
"description": "The remove button.",
|
|
8731
8809
|
"name": "remove"
|
|
@@ -8739,6 +8817,10 @@
|
|
|
8739
8817
|
{
|
|
8740
8818
|
"description": "Leading content, e.g. an `<l-icon>` or `<l-avatar>`.",
|
|
8741
8819
|
"name": "prefix"
|
|
8820
|
+
},
|
|
8821
|
+
{
|
|
8822
|
+
"description": "Trailing content, e.g. a result count. Gets the chip's own gutter, so no margin is needed.",
|
|
8823
|
+
"name": "suffix"
|
|
8742
8824
|
}
|
|
8743
8825
|
],
|
|
8744
8826
|
"members": [
|
|
@@ -8764,6 +8846,39 @@
|
|
|
8764
8846
|
"attribute": "removable",
|
|
8765
8847
|
"reflects": true
|
|
8766
8848
|
},
|
|
8849
|
+
{
|
|
8850
|
+
"kind": "field",
|
|
8851
|
+
"name": "selectable",
|
|
8852
|
+
"type": {
|
|
8853
|
+
"text": "boolean"
|
|
8854
|
+
},
|
|
8855
|
+
"default": "false",
|
|
8856
|
+
"description": "Make the tag a filter control the user can toggle on and off.",
|
|
8857
|
+
"attribute": "selectable",
|
|
8858
|
+
"reflects": true
|
|
8859
|
+
},
|
|
8860
|
+
{
|
|
8861
|
+
"kind": "field",
|
|
8862
|
+
"name": "selected",
|
|
8863
|
+
"type": {
|
|
8864
|
+
"text": "boolean"
|
|
8865
|
+
},
|
|
8866
|
+
"default": "false",
|
|
8867
|
+
"description": "Whether the tag is selected. Reflected, so `[selected]` is styleable.",
|
|
8868
|
+
"attribute": "selected",
|
|
8869
|
+
"reflects": true
|
|
8870
|
+
},
|
|
8871
|
+
{
|
|
8872
|
+
"kind": "field",
|
|
8873
|
+
"name": "control",
|
|
8874
|
+
"type": {
|
|
8875
|
+
"text": "TagControl"
|
|
8876
|
+
},
|
|
8877
|
+
"default": "'none'",
|
|
8878
|
+
"description": "What drives the selection: `none` (default) makes the chip itself a toggle\nbutton; `checkbox` renders a checkbox inside and makes the chip its label —\nthe right choice for a multi-select facet. Implies `selectable`.",
|
|
8879
|
+
"attribute": "control",
|
|
8880
|
+
"reflects": true
|
|
8881
|
+
},
|
|
8767
8882
|
{
|
|
8768
8883
|
"kind": "field",
|
|
8769
8884
|
"name": "disabled",
|
|
@@ -8771,7 +8886,7 @@
|
|
|
8771
8886
|
"text": "boolean"
|
|
8772
8887
|
},
|
|
8773
8888
|
"default": "false",
|
|
8774
|
-
"description": "Disable the tag — dims it and blocks removal.",
|
|
8889
|
+
"description": "Disable the tag — dims it and blocks selection and removal.",
|
|
8775
8890
|
"attribute": "disabled",
|
|
8776
8891
|
"reflects": true
|
|
8777
8892
|
}
|
|
@@ -8781,6 +8896,11 @@
|
|
|
8781
8896
|
"name": "remove",
|
|
8782
8897
|
"description": "Fired when the user removes the tag (× click or Backspace/Delete). Cancelable; if not prevented the tag removes itself. Not composed, does not bubble.",
|
|
8783
8898
|
"cancelable": true
|
|
8899
|
+
},
|
|
8900
|
+
{
|
|
8901
|
+
"name": "change",
|
|
8902
|
+
"description": "Fired when a `selectable` tag is toggled. Not cancelable — like the platform's own `change`, and like `l-segmented-control`. Bubbles. Properties: `selected: boolean`. The chip is uncontrolled: it applies the new state before dispatching, so a host that vetoes a toggle (a \"max 3 filters\" rule, an async guard) sets `selected` back in the listener — the revert lands in the same render and is never painted.",
|
|
8903
|
+
"cancelable": false
|
|
8784
8904
|
}
|
|
8785
8905
|
],
|
|
8786
8906
|
"attributes": [
|
|
@@ -8802,13 +8922,40 @@
|
|
|
8802
8922
|
"description": "Show a remove button (and enable Backspace/Delete removal).",
|
|
8803
8923
|
"fieldName": "removable"
|
|
8804
8924
|
},
|
|
8925
|
+
{
|
|
8926
|
+
"name": "selectable",
|
|
8927
|
+
"type": {
|
|
8928
|
+
"text": "boolean"
|
|
8929
|
+
},
|
|
8930
|
+
"default": "false",
|
|
8931
|
+
"description": "Make the tag a filter control the user can toggle on and off.",
|
|
8932
|
+
"fieldName": "selectable"
|
|
8933
|
+
},
|
|
8934
|
+
{
|
|
8935
|
+
"name": "selected",
|
|
8936
|
+
"type": {
|
|
8937
|
+
"text": "boolean"
|
|
8938
|
+
},
|
|
8939
|
+
"default": "false",
|
|
8940
|
+
"description": "Whether the tag is selected. Reflected, so `[selected]` is styleable.",
|
|
8941
|
+
"fieldName": "selected"
|
|
8942
|
+
},
|
|
8943
|
+
{
|
|
8944
|
+
"name": "control",
|
|
8945
|
+
"type": {
|
|
8946
|
+
"text": "TagControl"
|
|
8947
|
+
},
|
|
8948
|
+
"default": "'none'",
|
|
8949
|
+
"description": "What drives the selection: `none` (default) makes the chip itself a toggle\nbutton; `checkbox` renders a checkbox inside and makes the chip its label —\nthe right choice for a multi-select facet. Implies `selectable`.",
|
|
8950
|
+
"fieldName": "control"
|
|
8951
|
+
},
|
|
8805
8952
|
{
|
|
8806
8953
|
"name": "disabled",
|
|
8807
8954
|
"type": {
|
|
8808
8955
|
"text": "boolean"
|
|
8809
8956
|
},
|
|
8810
8957
|
"default": "false",
|
|
8811
|
-
"description": "Disable the tag — dims it and blocks removal.",
|
|
8958
|
+
"description": "Disable the tag — dims it and blocks selection and removal.",
|
|
8812
8959
|
"fieldName": "disabled"
|
|
8813
8960
|
}
|
|
8814
8961
|
],
|
|
@@ -8818,11 +8965,11 @@
|
|
|
8818
8965
|
},
|
|
8819
8966
|
"tagName": "l-tag",
|
|
8820
8967
|
"customElement": true,
|
|
8821
|
-
"summary": "A compact, optionally removable chip.",
|
|
8968
|
+
"summary": "A compact, optionally removable or selectable chip.",
|
|
8822
8969
|
"examples": [
|
|
8823
8970
|
{
|
|
8824
8971
|
"language": "html",
|
|
8825
|
-
"code": "<l-tag removable>Design</l-tag>"
|
|
8972
|
+
"code": "<l-tag removable>Design</l-tag>\n<l-tag selectable selected>A3</l-tag>\n<l-tag selectable control=\"checkbox\">Color <span slot=\"suffix\">79</span></l-tag>"
|
|
8826
8973
|
}
|
|
8827
8974
|
]
|
|
8828
8975
|
}
|
|
@@ -8836,6 +8983,14 @@
|
|
|
8836
8983
|
"module": "src/html/elements/tag/tag.ts"
|
|
8837
8984
|
}
|
|
8838
8985
|
},
|
|
8986
|
+
{
|
|
8987
|
+
"kind": "js",
|
|
8988
|
+
"name": "TagChangeEvent",
|
|
8989
|
+
"declaration": {
|
|
8990
|
+
"name": "TagChangeEvent",
|
|
8991
|
+
"module": "src/html/elements/tag/tag.ts"
|
|
8992
|
+
}
|
|
8993
|
+
},
|
|
8839
8994
|
{
|
|
8840
8995
|
"kind": "js",
|
|
8841
8996
|
"name": "Tag",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../src/html/elements/alert/alert.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAE1C,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAK7D,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;AAWrE;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,qBAAa,KAAM,SAAQ,YAAY;IAC5B,gBAAgB;IAIzB,uFAAuF;IAEvF,OAAO,CAAC,EAAE,YAAY,CAAC;IAEvB,oFAAoF;IAEpF,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,sCAAsC;IAEtC,WAAW,UAAS;IAEpB,iEAAiE;IAEjE,WAAW,UAAS;IAEpB,OAAO,CAAC,SAAS,CAAgC;IACjD,OAAO,CAAC,aAAa,CAAC,CAAgC;IAKtD,OAAO,CAAC,SAAS,CAA4C;IAEpD,iBAAiB;IAKjB,oBAAoB;IAMpB,OAAO,CAAC,QAAQ,EAAE,cAAc,CAAC,IAAI,CAAC;IAI/C,mFAAmF;IACnF,OAAO,CAAC,KAAK;IASb,OAAO,CAAC,SAAS;IAMjB,OAAO,CAAC,SAAS;IAsBjB;;;;;OAKG;IACH,OAAO,CAAC,YAAY;IA0BpB,OAAO,CAAC,UAAU;IAwBlB,OAAO,CAAC,QAAQ,CAQd;IAEF,OAAO,CAAC,WAAW;CA4BpB
|
|
1
|
+
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../src/html/elements/alert/alert.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAE1C,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAK7D,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;AAWrE;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,qBAAa,KAAM,SAAQ,YAAY;IAC5B,gBAAgB;IAIzB,uFAAuF;IAEvF,OAAO,CAAC,EAAE,YAAY,CAAC;IAEvB,oFAAoF;IAEpF,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,sCAAsC;IAEtC,WAAW,UAAS;IAEpB,iEAAiE;IAEjE,WAAW,UAAS;IAEpB,OAAO,CAAC,SAAS,CAAgC;IACjD,OAAO,CAAC,aAAa,CAAC,CAAgC;IAKtD,OAAO,CAAC,SAAS,CAA4C;IAEpD,iBAAiB;IAKjB,oBAAoB;IAMpB,OAAO,CAAC,QAAQ,EAAE,cAAc,CAAC,IAAI,CAAC;IAI/C,mFAAmF;IACnF,OAAO,CAAC,KAAK;IASb,OAAO,CAAC,SAAS;IAMjB,OAAO,CAAC,SAAS;IAsBjB;;;;;OAKG;IACH,OAAO,CAAC,YAAY;IA0BpB,OAAO,CAAC,UAAU;IAwBlB,OAAO,CAAC,QAAQ,CAQd;IAEF,OAAO,CAAC,WAAW;CA4BpB"}
|