@solid-design-system/components 1.7.0 → 1.9.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/dist/components/es/accordion-group.js +1 -1
- package/dist/components/es/accordion.js +1 -1
- package/dist/components/es/drawer.js +1 -0
- package/dist/components/es/dropdown.js +1 -0
- package/dist/components/es/event.js +1 -0
- package/dist/components/es/popup.js +1 -0
- package/dist/components/es/solid-components2.js +1 -1
- package/dist/components/es/solid-element.js +4 -4
- package/dist/components/es/tabbable.js +1 -0
- package/dist/components/umd/solid-components.js +16 -16
- package/dist/custom-elements.json +1 -1
- package/dist/package/components/drawer/drawer.d.ts +34 -0
- package/dist/package/components/drawer/drawer.js +283 -0
- package/dist/package/components/dropdown/dropdown.d.ts +49 -0
- package/dist/package/components/dropdown/dropdown.js +335 -0
- package/dist/package/components/icon/library.system.d.ts +1 -0
- package/dist/package/components/icon/library.system.js +6 -1
- package/dist/package/components/popup/popup.d.ts +42 -0
- package/dist/package/components/popup/popup.js +318 -0
- package/dist/package/internal/modal.d.ts +12 -0
- package/dist/package/internal/modal.js +52 -0
- package/dist/package/internal/offset.d.ts +4 -0
- package/dist/package/internal/offset.js +9 -0
- package/dist/package/internal/scroll.d.ts +3 -0
- package/dist/package/internal/scroll.js +49 -0
- package/dist/package/internal/string.d.ts +1 -0
- package/dist/package/internal/string.js +6 -0
- package/dist/package/internal/tabbable.d.ts +4 -0
- package/dist/package/internal/tabbable.js +50 -0
- package/dist/package/solid-components.d.ts +3 -0
- package/dist/package/solid-components.js +16 -10
- package/dist/package/styles/tailwind.css.js +1 -1
- package/dist/versioned-components/es/accordion-group.js +1 -1
- package/dist/versioned-components/es/accordion.js +1 -1
- package/dist/versioned-components/es/badge.js +1 -1
- package/dist/versioned-components/es/brandshape.js +1 -1
- package/dist/versioned-components/es/button.js +2 -2
- package/dist/versioned-components/es/divider.js +1 -1
- package/dist/versioned-components/es/drawer.js +1 -0
- package/dist/versioned-components/es/dropdown.js +1 -0
- package/dist/versioned-components/es/event.js +1 -0
- package/dist/versioned-components/es/icon.js +1 -1
- package/dist/versioned-components/es/include.js +1 -1
- package/dist/versioned-components/es/link.js +1 -1
- package/dist/versioned-components/es/popup.js +1 -0
- package/dist/versioned-components/es/solid-components2.js +1 -1
- package/dist/versioned-components/es/solid-element.js +4 -4
- package/dist/versioned-components/es/spinner.js +1 -1
- package/dist/versioned-components/es/tabbable.js +1 -0
- package/dist/versioned-components/es/teaser.js +1 -1
- package/dist/versioned-package/components/accordion/accordion.d.ts +1 -1
- package/dist/versioned-package/components/accordion/accordion.js +2 -2
- package/dist/versioned-package/components/accordion-group/accordion-group.d.ts +1 -1
- package/dist/versioned-package/components/accordion-group/accordion-group.js +3 -3
- package/dist/versioned-package/components/badge/badge.d.ts +1 -1
- package/dist/versioned-package/components/badge/badge.js +1 -1
- package/dist/versioned-package/components/brandshape/brandshape.d.ts +1 -1
- package/dist/versioned-package/components/brandshape/brandshape.js +1 -1
- package/dist/versioned-package/components/button/button.d.ts +1 -1
- package/dist/versioned-package/components/button/button.js +4 -4
- package/dist/versioned-package/components/divider/divider.d.ts +1 -1
- package/dist/versioned-package/components/divider/divider.js +2 -2
- package/dist/versioned-package/components/drawer/drawer.d.ts +34 -0
- package/dist/versioned-package/components/drawer/drawer.js +283 -0
- package/dist/versioned-package/components/dropdown/dropdown.d.ts +49 -0
- package/dist/versioned-package/components/dropdown/dropdown.js +335 -0
- package/dist/versioned-package/components/icon/icon.d.ts +1 -1
- package/dist/versioned-package/components/icon/icon.js +1 -1
- package/dist/versioned-package/components/icon/library.system.d.ts +1 -0
- package/dist/versioned-package/components/icon/library.system.js +6 -1
- package/dist/versioned-package/components/include/include.d.ts +1 -1
- package/dist/versioned-package/components/include/include.js +1 -1
- package/dist/versioned-package/components/link/link.d.ts +1 -1
- package/dist/versioned-package/components/link/link.js +2 -2
- package/dist/versioned-package/components/popup/popup.d.ts +42 -0
- package/dist/versioned-package/components/popup/popup.js +318 -0
- package/dist/versioned-package/components/spinner/spinner.d.ts +1 -1
- package/dist/versioned-package/components/spinner/spinner.js +1 -1
- package/dist/versioned-package/components/teaser/teaser.js +1 -1
- package/dist/versioned-package/internal/form.js +1 -1
- package/dist/versioned-package/internal/modal.d.ts +12 -0
- package/dist/versioned-package/internal/modal.js +52 -0
- package/dist/versioned-package/internal/offset.d.ts +4 -0
- package/dist/versioned-package/internal/offset.js +9 -0
- package/dist/versioned-package/internal/scroll.d.ts +3 -0
- package/dist/versioned-package/internal/scroll.js +49 -0
- package/dist/versioned-package/internal/string.d.ts +1 -0
- package/dist/versioned-package/internal/string.js +6 -0
- package/dist/versioned-package/internal/tabbable.d.ts +4 -0
- package/dist/versioned-package/internal/tabbable.js +50 -0
- package/dist/versioned-package/solid-components.d.ts +3 -0
- package/dist/versioned-package/solid-components.js +16 -10
- package/dist/versioned-package/styles/tailwind.css.js +1 -1
- package/dist/vscode.html-custom-data.json +731 -11
- package/dist/web-types.json +2107 -625
- package/package.json +4 -3
|
@@ -305,6 +305,142 @@
|
|
|
305
305
|
],
|
|
306
306
|
"references": []
|
|
307
307
|
},
|
|
308
|
+
{
|
|
309
|
+
"name": "sd-drawer",
|
|
310
|
+
"description": "Drawers slide in from a container to expose additional options and information.\n\n\n---\n\n\n\n\n### **Events:**\n - **sd-show** - Emitted when the drawer opens.\n- **sd-after-show** - Emitted after the drawer opens and all animations are complete.\n- **sd-hide** - Emitted when the drawer closes.\n- **sd-after-hide** - Emitted after the drawer closes and all animations are complete.\n- **sd-initial-focus** - Emitted when the drawer opens and is ready to receive focus. Calling `event.preventDefault()` will prevent focusing and allow you to set it on a different element, such as an input.\n- **sd-request-close** - Emitted when the user attempts to close the drawer by clicking the close button, clicking the overlay, or pressing escape. Calling `event.preventDefault()` will keep the drawer open. Avoid using this unless closing the drawer will result in destructive behavior such as data loss.\n\n### **Methods:**\n - **show()** - Shows the drawer.\n- **hide()** - Hides the drawer\n\n### **Slots:**\n - _default_ - The drawer's main content.\n- **header** - The drawer's header, usually a title.\n- **footer** - The drawer's footer, usually one or more buttons representing various options.\n\n### **CSS Properties:**\n - **--width** - The preferred width of the drawer. depending on its `placement`. Note that the drawer will shrink to accommodate smaller screens. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **overlay** - The overlay that covers the screen behind the drawer.\n- **panel** - The drawer's panel (where the drawer and its content are rendered).\n- **header** - The drawer's header. This element wraps the title and the close-button.\n- **title** - The drawer's title.\n- **close-button** - The close button, an `<sd-button>`.\n- **body** - The drawer's body.\n- **footer** - The drawer's footer.",
|
|
311
|
+
"attributes": [
|
|
312
|
+
{
|
|
313
|
+
"name": "open",
|
|
314
|
+
"description": "Indicates whether or not the drawer is open. You can toggle this attribute to show and hide the drawer, or you can\nuse the `show()` and `hide()` methods and this attribute will reflect the drawer's open state.",
|
|
315
|
+
"values": []
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
"name": "label",
|
|
319
|
+
"description": "You should always include a relevant label even when using\n`no-header`, as it is required for proper accessibility.",
|
|
320
|
+
"values": []
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"name": "placement",
|
|
324
|
+
"description": "The direction from which the drawer will open.",
|
|
325
|
+
"values": [
|
|
326
|
+
{
|
|
327
|
+
"name": "end"
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
"name": "start"
|
|
331
|
+
}
|
|
332
|
+
]
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
"name": "contained",
|
|
336
|
+
"description": "By default, the drawer slides out of its containing block (the viewport). Contained is a hidden feature used only for testing purposes. Please do not use it in production as it will likely change.",
|
|
337
|
+
"values": []
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
"name": "no-header",
|
|
341
|
+
"description": "Removes the header. This will also remove the default close button, so please ensure you provide an easy, accessible way for users to dismiss the drawer.",
|
|
342
|
+
"values": []
|
|
343
|
+
}
|
|
344
|
+
],
|
|
345
|
+
"references": []
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"name": "sd-dropdown",
|
|
349
|
+
"description": "Dropdowns expose additional content that \"drops down\" in a panel.\n\n\n---\n\n\n\n\n### **Events:**\n - **sd-show** - Emitted when the dropdown opens.\n- **sd-after-show** - Emitted after the dropdown opens and all animations are complete.\n- **sd-hide** - Emitted when the dropdown closes.\n- **sd-after-hide** - Emitted after the dropdown closes and all animations are complete.\n\n### **Methods:**\n - **show()** - Shows the dropdown panel.\n- **hide()** - Hides the dropdown panel\n- **reposition()** - Instructs the dropdown menu to reposition. Useful when the position or size of the trigger changes when the menu\nis activated.\n\n### **Slots:**\n - _default_ - The dropdown's main content.\n- **trigger** - The dropdown's trigger, usually a `<sd-button>` element.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **trigger** - The container that wraps the trigger.\n- **panel** - The panel that gets shown when the dropdown is open.",
|
|
350
|
+
"attributes": [
|
|
351
|
+
{
|
|
352
|
+
"name": "open",
|
|
353
|
+
"description": "Indicates whether or not the dropdown is open. You can toggle this attribute to show and hide the dropdown, or you\ncan use the `show()` and `hide()` methods and this attribute will reflect the dropdown's open state.",
|
|
354
|
+
"values": []
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
"name": "rounded",
|
|
358
|
+
"description": "Indicates whether or not the dropdown should be styled with rounded corners.",
|
|
359
|
+
"values": []
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
"name": "placement",
|
|
363
|
+
"description": "The preferred placement of the dropdown panel. Note that the actual placement may vary as needed to keep the panel\ninside of the viewport.",
|
|
364
|
+
"values": [
|
|
365
|
+
{
|
|
366
|
+
"name": ""
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
"name": "top"
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
"name": "top-start"
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
"name": "top-end"
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
"name": "bottom"
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
"name": "bottom-start"
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
"name": "bottom-end"
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
"name": "right"
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
"name": "right-start"
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
"name": "right-end"
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
"name": "left"
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
"name": "left-start"
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
"name": "left-end"
|
|
403
|
+
}
|
|
404
|
+
]
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
"name": "disabled",
|
|
408
|
+
"description": "Disables the dropdown so the panel will not open.",
|
|
409
|
+
"values": []
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
"name": "stay-open-on-select",
|
|
413
|
+
"description": "By default, the dropdown is closed when an item is selected. This attribute will keep it open instead. Useful for\ndropdowns that allow for multiple interactions.",
|
|
414
|
+
"values": []
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
"name": "distance",
|
|
418
|
+
"description": "The distance in pixels from which to offset the panel away from its trigger. This defaults to `0` for `rounded=false` and to a minimum of `1` for `rounded=true`.",
|
|
419
|
+
"values": []
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
"name": "skidding",
|
|
423
|
+
"description": "The distance in pixels from which to offset the panel along its trigger.",
|
|
424
|
+
"values": []
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
"name": "no-auto-size",
|
|
428
|
+
"description": "Indicates whether or not the dropdown should automatically resize its content's width/height regarding the available space on screen.",
|
|
429
|
+
"values": []
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
"name": "no-flip",
|
|
433
|
+
"description": "When set to true, the placement of the dropdown will not flip to the opposite site to keep it in view.",
|
|
434
|
+
"values": []
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
"name": "hoist",
|
|
438
|
+
"description": "Enable this option to prevent the panel from being clipped when the component is placed inside a container with\n`overflow: auto|scroll`. Hoisting uses a fixed positioning strategy that works in many, but not all, scenarios.",
|
|
439
|
+
"values": []
|
|
440
|
+
}
|
|
441
|
+
],
|
|
442
|
+
"references": []
|
|
443
|
+
},
|
|
308
444
|
{
|
|
309
445
|
"name": "sd-icon",
|
|
310
446
|
"description": "Icons are symbols that can be used to represent various options within an application.\n\n\n---\n\n\n\n\n### **Events:**\n - **sd-load** - Emitted when the icon has loaded.\n- **sd-error** - Emitted when the icon fails to load due to an error.",
|
|
@@ -439,6 +575,230 @@
|
|
|
439
575
|
],
|
|
440
576
|
"references": []
|
|
441
577
|
},
|
|
578
|
+
{
|
|
579
|
+
"name": "sd-popup",
|
|
580
|
+
"description": "Popup is a utility that lets you declaratively anchor \"popup\" containers to another element.\n\n\n---\n\n\n\n\n### **Events:**\n - **sd-reposition** - Emitted when the popup is repositioned. This event can fire a lot, so avoid putting expensive operations in your listener or consider debouncing it.\n\n### **Methods:**\n - **reposition()** - Forces the popup to recalculate and reposition itself.\n\n### **Slots:**\n - _default_ - The popup's content.\n- **anchor** - The element the popup will be anchored to. If the anchor lives outside of the popup, you can use the `anchor` attribute or property instead.\n\n### **CSS Properties:**\n - **--arrow-size** - The size of the arrow. Note that an arrow won't be shown unless the `arrow` attribute is used. _(default: 6px)_\n- **--arrow-color** - The color of the arrow. _(default: var(--sd-color-neutral-0))_\n- **--auto-size-available-width** - A read-only custom property that determines the amount of width the popup can be before overflowing. Useful for positioning child elements that need to overflow. This property is only available when using `auto-size`. _(default: undefined)_\n- **--auto-size-available-height** - A read-only custom property that determines the amount of height the popup can be before overflowing. Useful for positioning child elements that need to overflow. This property is only available when using `auto-size`. _(default: undefined)_\n\n### **CSS Parts:**\n - **arrow** - The arrow's container. Avoid setting `top|bottom|left|right` properties, as these values are assigned dynamically as the popup moves. This is most useful for applying a background color to match the popup, and maybe a border or box shadow.\n- **popup** - The popup's container. Useful for setting a background color, box shadow, etc.",
|
|
581
|
+
"attributes": [
|
|
582
|
+
{
|
|
583
|
+
"name": "anchor",
|
|
584
|
+
"description": "The element the popup will be anchored to. If the anchor lives outside of the popup, you can provide its `id` or a\nreference to it here. If the anchor lives inside the popup, use the `anchor` slot instead.",
|
|
585
|
+
"values": [
|
|
586
|
+
{
|
|
587
|
+
"name": "Element"
|
|
588
|
+
}
|
|
589
|
+
]
|
|
590
|
+
},
|
|
591
|
+
{
|
|
592
|
+
"name": "active",
|
|
593
|
+
"description": "Activates the positioning logic and shows the popup. When this attribute is removed, the positioning logic is torn\ndown and the popup will be hidden.",
|
|
594
|
+
"values": []
|
|
595
|
+
},
|
|
596
|
+
{
|
|
597
|
+
"name": "placement",
|
|
598
|
+
"description": "The preferred placement of the popup. Note that the actual placement will vary as configured to keep the\npanel inside of the viewport.",
|
|
599
|
+
"values": [
|
|
600
|
+
{
|
|
601
|
+
"name": ""
|
|
602
|
+
},
|
|
603
|
+
{
|
|
604
|
+
"name": "top"
|
|
605
|
+
},
|
|
606
|
+
{
|
|
607
|
+
"name": "top-start"
|
|
608
|
+
},
|
|
609
|
+
{
|
|
610
|
+
"name": "top-end"
|
|
611
|
+
},
|
|
612
|
+
{
|
|
613
|
+
"name": "bottom"
|
|
614
|
+
},
|
|
615
|
+
{
|
|
616
|
+
"name": "bottom-start"
|
|
617
|
+
},
|
|
618
|
+
{
|
|
619
|
+
"name": "bottom-end"
|
|
620
|
+
},
|
|
621
|
+
{
|
|
622
|
+
"name": "right"
|
|
623
|
+
},
|
|
624
|
+
{
|
|
625
|
+
"name": "right-start"
|
|
626
|
+
},
|
|
627
|
+
{
|
|
628
|
+
"name": "right-end"
|
|
629
|
+
},
|
|
630
|
+
{
|
|
631
|
+
"name": "left"
|
|
632
|
+
},
|
|
633
|
+
{
|
|
634
|
+
"name": "left-start"
|
|
635
|
+
},
|
|
636
|
+
{
|
|
637
|
+
"name": "left-end"
|
|
638
|
+
}
|
|
639
|
+
]
|
|
640
|
+
},
|
|
641
|
+
{
|
|
642
|
+
"name": "strategy",
|
|
643
|
+
"description": "Determines how the popup is positioned. The `absolute` strategy works well in most cases, but if\noverflow is clipped, using a `fixed` position strategy can often workaround it.",
|
|
644
|
+
"values": [
|
|
645
|
+
{
|
|
646
|
+
"name": "absolute"
|
|
647
|
+
},
|
|
648
|
+
{
|
|
649
|
+
"name": "fixed"
|
|
650
|
+
}
|
|
651
|
+
]
|
|
652
|
+
},
|
|
653
|
+
{
|
|
654
|
+
"name": "distance",
|
|
655
|
+
"description": "The distance in pixels from which to offset the panel away from its anchor.",
|
|
656
|
+
"values": []
|
|
657
|
+
},
|
|
658
|
+
{
|
|
659
|
+
"name": "skidding",
|
|
660
|
+
"description": "The distance in pixels from which to offset the panel along its anchor.",
|
|
661
|
+
"values": []
|
|
662
|
+
},
|
|
663
|
+
{
|
|
664
|
+
"name": "arrow",
|
|
665
|
+
"description": "Attaches an arrow to the popup. The arrow's size and color can be customized using the `--arrow-size` and\n`--arrow-color` custom properties. For additional customizations, you can also target the arrow using\n`::part(arrow)` in your stylesheet.",
|
|
666
|
+
"values": []
|
|
667
|
+
},
|
|
668
|
+
{
|
|
669
|
+
"name": "arrow-placement",
|
|
670
|
+
"description": "The placement of the arrow. The default is `anchor`, which will align the arrow as close to the center of the\nanchor as possible, considering available space and `arrow-padding`. A value of `start`, `end`, or `center` will\nalign the arrow to the start, end, or center of the popover instead.",
|
|
671
|
+
"values": [
|
|
672
|
+
{
|
|
673
|
+
"name": "start"
|
|
674
|
+
},
|
|
675
|
+
{
|
|
676
|
+
"name": "end"
|
|
677
|
+
},
|
|
678
|
+
{
|
|
679
|
+
"name": "center"
|
|
680
|
+
},
|
|
681
|
+
{
|
|
682
|
+
"name": "anchor"
|
|
683
|
+
}
|
|
684
|
+
]
|
|
685
|
+
},
|
|
686
|
+
{
|
|
687
|
+
"name": "arrow-padding",
|
|
688
|
+
"description": "The amount of padding between the arrow and the edges of the popup. If the popup has a border-radius, for example,\nthis will prevent it from overflowing the corners.",
|
|
689
|
+
"values": []
|
|
690
|
+
},
|
|
691
|
+
{
|
|
692
|
+
"name": "flip",
|
|
693
|
+
"description": "When set, placement of the popup will flip to the opposite site to keep it in view. You can use\n`flipFallbackPlacements` to further configure how the fallback placement is determined.",
|
|
694
|
+
"values": []
|
|
695
|
+
},
|
|
696
|
+
{
|
|
697
|
+
"name": "flip-fallback-placements",
|
|
698
|
+
"description": "If the preferred placement doesn't fit, popup will be tested in these fallback placements until one fits. Must be a\nstring of any number of placements separated by a space, e.g. \"top bottom left\". If no placement fits, the flip\nfallback strategy will be used instead.",
|
|
699
|
+
"values": []
|
|
700
|
+
},
|
|
701
|
+
{
|
|
702
|
+
"name": "flip-fallback-strategy",
|
|
703
|
+
"description": "When neither the preferred placement nor the fallback placements fit, this value will be used to determine whether\nthe popup should be positioned using the best available fit based on available space or as it was initially\npreferred.",
|
|
704
|
+
"values": [
|
|
705
|
+
{
|
|
706
|
+
"name": "best-fit"
|
|
707
|
+
},
|
|
708
|
+
{
|
|
709
|
+
"name": "initial"
|
|
710
|
+
}
|
|
711
|
+
]
|
|
712
|
+
},
|
|
713
|
+
{
|
|
714
|
+
"name": "flipBoundary",
|
|
715
|
+
"description": "The flip boundary describes clipping element(s) that overflow will be checked relative to when flipping. By\ndefault, the boundary includes overflow ancestors that will cause the element to be clipped. If needed, you can\nchange the boundary by passing a reference to one or more elements to this property.",
|
|
716
|
+
"values": [
|
|
717
|
+
{
|
|
718
|
+
"name": "Element"
|
|
719
|
+
},
|
|
720
|
+
{
|
|
721
|
+
"name": "Element[]"
|
|
722
|
+
}
|
|
723
|
+
]
|
|
724
|
+
},
|
|
725
|
+
{
|
|
726
|
+
"name": "flip-padding",
|
|
727
|
+
"description": "The amount of padding, in pixels, to exceed before the flip behavior will occur.",
|
|
728
|
+
"values": []
|
|
729
|
+
},
|
|
730
|
+
{
|
|
731
|
+
"name": "shift",
|
|
732
|
+
"description": "Moves the popup along the axis to keep it in view when clipped.",
|
|
733
|
+
"values": []
|
|
734
|
+
},
|
|
735
|
+
{
|
|
736
|
+
"name": "shiftBoundary",
|
|
737
|
+
"description": "The shift boundary describes clipping element(s) that overflow will be checked relative to when shifting. By\ndefault, the boundary includes overflow ancestors that will cause the element to be clipped. If needed, you can\nchange the boundary by passing a reference to one or more elements to this property.",
|
|
738
|
+
"values": [
|
|
739
|
+
{
|
|
740
|
+
"name": "Element"
|
|
741
|
+
},
|
|
742
|
+
{
|
|
743
|
+
"name": "Element[]"
|
|
744
|
+
}
|
|
745
|
+
]
|
|
746
|
+
},
|
|
747
|
+
{
|
|
748
|
+
"name": "shift-padding",
|
|
749
|
+
"description": "The amount of padding, in pixels, to exceed before the shift behavior will occur.",
|
|
750
|
+
"values": []
|
|
751
|
+
},
|
|
752
|
+
{
|
|
753
|
+
"name": "auto-size",
|
|
754
|
+
"description": "When set, this will cause the popup to automatically resize itself to prevent it from overflowing.",
|
|
755
|
+
"values": [
|
|
756
|
+
{
|
|
757
|
+
"name": "horizontal"
|
|
758
|
+
},
|
|
759
|
+
{
|
|
760
|
+
"name": "vertical"
|
|
761
|
+
},
|
|
762
|
+
{
|
|
763
|
+
"name": "both"
|
|
764
|
+
}
|
|
765
|
+
]
|
|
766
|
+
},
|
|
767
|
+
{
|
|
768
|
+
"name": "sync",
|
|
769
|
+
"description": "Syncs the popup's width or height to that of the anchor element.",
|
|
770
|
+
"values": [
|
|
771
|
+
{
|
|
772
|
+
"name": "width"
|
|
773
|
+
},
|
|
774
|
+
{
|
|
775
|
+
"name": "height"
|
|
776
|
+
},
|
|
777
|
+
{
|
|
778
|
+
"name": "both"
|
|
779
|
+
}
|
|
780
|
+
]
|
|
781
|
+
},
|
|
782
|
+
{
|
|
783
|
+
"name": "autoSizeBoundary",
|
|
784
|
+
"description": "The auto-size boundary describes clipping element(s) that overflow will be checked relative to when resizing. By\ndefault, the boundary includes overflow ancestors that will cause the element to be clipped. If needed, you can\nchange the boundary by passing a reference to one or more elements to this property.",
|
|
785
|
+
"values": [
|
|
786
|
+
{
|
|
787
|
+
"name": "Element"
|
|
788
|
+
},
|
|
789
|
+
{
|
|
790
|
+
"name": "Element[]"
|
|
791
|
+
}
|
|
792
|
+
]
|
|
793
|
+
},
|
|
794
|
+
{
|
|
795
|
+
"name": "auto-size-padding",
|
|
796
|
+
"description": "The amount of padding, in pixels, to exceed before the auto-size behavior will occur.",
|
|
797
|
+
"values": []
|
|
798
|
+
}
|
|
799
|
+
],
|
|
800
|
+
"references": []
|
|
801
|
+
},
|
|
442
802
|
{
|
|
443
803
|
"name": "sd-spinner",
|
|
444
804
|
"description": "Spinners are used to show the progress of an indeterminate operation.\n\n\n---\n\n\n",
|
|
@@ -499,7 +859,7 @@
|
|
|
499
859
|
"references": []
|
|
500
860
|
},
|
|
501
861
|
{
|
|
502
|
-
"name": "sd-1-
|
|
862
|
+
"name": "sd-1-9-0-accordion-group",
|
|
503
863
|
"description": "Short summary of the component's intended use.\n\n\n---\n\n\n\n\n### **Slots:**\n - _default_ - The default slot where `<sd-accordion>` elements are placed.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
504
864
|
"attributes": [
|
|
505
865
|
{
|
|
@@ -511,7 +871,7 @@
|
|
|
511
871
|
"references": []
|
|
512
872
|
},
|
|
513
873
|
{
|
|
514
|
-
"name": "sd-1-
|
|
874
|
+
"name": "sd-1-9-0-accordion",
|
|
515
875
|
"description": "Accordion shows a brief summary and expands to show additional content.\n\n\n---\n\n\n\n\n### **Events:**\n - **sd-show** - Emitted when the accordion opens.\n- **sd-after-show** - Emitted after the accordion opens and all animations are complete.\n- **sd-hide** - Emitted when the accordion closes.\n- **sd-after-hide** - Emitted after the accordion closes and all animations are complete.\n\n### **Methods:**\n - **show()** - Shows the accordion.\n- **hide()** - Hides the accordion\n\n### **Slots:**\n - _default_ - The accordion main content.\n- **summary** - The accordion summary. Alternatively, you can use the `summary` attribute.\n- **expand-icon** - Optional expand icon to use instead of the default. Works best with `<sd-icon>`.\n- **collapse-icon** - Optional collapse icon to use instead of the default. Works best with `<sd-icon>`.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **header** - The header that wraps both the summary and the expand/collapse icon.\n- **summary** - The container that wraps the summary.\n- **summary-icon** - The container that wraps the expand/collapse icons.\n- **content** - The accordion content.",
|
|
516
876
|
"attributes": [
|
|
517
877
|
{
|
|
@@ -528,7 +888,7 @@
|
|
|
528
888
|
"references": []
|
|
529
889
|
},
|
|
530
890
|
{
|
|
531
|
-
"name": "sd-1-
|
|
891
|
+
"name": "sd-1-9-0-badge",
|
|
532
892
|
"description": "Badges are used to draw attention and display statuses or counts.\n\n\n---\n\n\n\n\n### **Slots:**\n - _default_ - The badge's content.\n\n### **CSS Parts:**\n - **base** - The badge's base wrapper.\n- **content** - The badge's main content.",
|
|
533
893
|
"attributes": [
|
|
534
894
|
{
|
|
@@ -570,7 +930,7 @@
|
|
|
570
930
|
"references": []
|
|
571
931
|
},
|
|
572
932
|
{
|
|
573
|
-
"name": "sd-1-
|
|
933
|
+
"name": "sd-1-9-0-brandshape",
|
|
574
934
|
"description": "The Brandshape highlights a piece of content.\n\n\n---\n\n\n\n\n### **Slots:**\n - _default_ - The content inside the brandshape.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **content** - Middle content wrapper.\n- **shape-top** - Top shape.\n- **shape-middle** - Middle shape.\n- **shape-bottom** - Bottom shape.",
|
|
575
935
|
"attributes": [
|
|
576
936
|
{
|
|
@@ -607,7 +967,7 @@
|
|
|
607
967
|
"references": []
|
|
608
968
|
},
|
|
609
969
|
{
|
|
610
|
-
"name": "sd-1-
|
|
970
|
+
"name": "sd-1-9-0-button",
|
|
611
971
|
"description": "Buttons represent actions that are available to the user.\n\n\n---\n\n\n\n\n### **Events:**\n - **sd-blur** - Emitted when the button loses focus.\n- **sd-focus** - Emitted when the button gains focus.\n\n### **Methods:**\n - **click()** - Simulates a click on the button.\n- **focus(options: _FocusOptions_)** - Sets focus on the button.\n- **blur()** - Removes focus from the button.\n- **checkValidity()** - Checks for validity but does not show the browser's validation message.\n- **reportValidity()** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(message: _string_)** - Sets a custom validation message. Pass an empty string to restore validity.\n\n### **Slots:**\n - _default_ - The button's label.\n- **icon-left** - A prefix icon or similar element.\n- **icon-right** - A suffix icon or similar element.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **icon-left** - The container that wraps the left icon area.\n- **label** - The button's label.\n- **icon-right** - The container that wraps the right icon area.",
|
|
612
972
|
"attributes": [
|
|
613
973
|
{
|
|
@@ -779,7 +1139,7 @@
|
|
|
779
1139
|
"references": []
|
|
780
1140
|
},
|
|
781
1141
|
{
|
|
782
|
-
"name": "sd-1-
|
|
1142
|
+
"name": "sd-1-9-0-divider",
|
|
783
1143
|
"description": "Dividers are used to visually separate or group elements.\n\n\n---\n\n\n",
|
|
784
1144
|
"attributes": [
|
|
785
1145
|
{
|
|
@@ -803,7 +1163,143 @@
|
|
|
803
1163
|
"references": []
|
|
804
1164
|
},
|
|
805
1165
|
{
|
|
806
|
-
"name": "sd-1-
|
|
1166
|
+
"name": "sd-1-9-0-drawer",
|
|
1167
|
+
"description": "Drawers slide in from a container to expose additional options and information.\n\n\n---\n\n\n\n\n### **Events:**\n - **sd-show** - Emitted when the drawer opens.\n- **sd-after-show** - Emitted after the drawer opens and all animations are complete.\n- **sd-hide** - Emitted when the drawer closes.\n- **sd-after-hide** - Emitted after the drawer closes and all animations are complete.\n- **sd-initial-focus** - Emitted when the drawer opens and is ready to receive focus. Calling `event.preventDefault()` will prevent focusing and allow you to set it on a different element, such as an input.\n- **sd-request-close** - Emitted when the user attempts to close the drawer by clicking the close button, clicking the overlay, or pressing escape. Calling `event.preventDefault()` will keep the drawer open. Avoid using this unless closing the drawer will result in destructive behavior such as data loss.\n\n### **Methods:**\n - **show()** - Shows the drawer.\n- **hide()** - Hides the drawer\n\n### **Slots:**\n - _default_ - The drawer's main content.\n- **header** - The drawer's header, usually a title.\n- **footer** - The drawer's footer, usually one or more buttons representing various options.\n\n### **CSS Properties:**\n - **--width** - The preferred width of the drawer. depending on its `placement`. Note that the drawer will shrink to accommodate smaller screens. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **overlay** - The overlay that covers the screen behind the drawer.\n- **panel** - The drawer's panel (where the drawer and its content are rendered).\n- **header** - The drawer's header. This element wraps the title and the close-button.\n- **title** - The drawer's title.\n- **close-button** - The close button, an `<sd-button>`.\n- **body** - The drawer's body.\n- **footer** - The drawer's footer.",
|
|
1168
|
+
"attributes": [
|
|
1169
|
+
{
|
|
1170
|
+
"name": "open",
|
|
1171
|
+
"description": "Indicates whether or not the drawer is open. You can toggle this attribute to show and hide the drawer, or you can\nuse the `show()` and `hide()` methods and this attribute will reflect the drawer's open state.",
|
|
1172
|
+
"values": []
|
|
1173
|
+
},
|
|
1174
|
+
{
|
|
1175
|
+
"name": "label",
|
|
1176
|
+
"description": "You should always include a relevant label even when using\n`no-header`, as it is required for proper accessibility.",
|
|
1177
|
+
"values": []
|
|
1178
|
+
},
|
|
1179
|
+
{
|
|
1180
|
+
"name": "placement",
|
|
1181
|
+
"description": "The direction from which the drawer will open.",
|
|
1182
|
+
"values": [
|
|
1183
|
+
{
|
|
1184
|
+
"name": "end"
|
|
1185
|
+
},
|
|
1186
|
+
{
|
|
1187
|
+
"name": "start"
|
|
1188
|
+
}
|
|
1189
|
+
]
|
|
1190
|
+
},
|
|
1191
|
+
{
|
|
1192
|
+
"name": "contained",
|
|
1193
|
+
"description": "By default, the drawer slides out of its containing block (the viewport). Contained is a hidden feature used only for testing purposes. Please do not use it in production as it will likely change.",
|
|
1194
|
+
"values": []
|
|
1195
|
+
},
|
|
1196
|
+
{
|
|
1197
|
+
"name": "no-header",
|
|
1198
|
+
"description": "Removes the header. This will also remove the default close button, so please ensure you provide an easy, accessible way for users to dismiss the drawer.",
|
|
1199
|
+
"values": []
|
|
1200
|
+
}
|
|
1201
|
+
],
|
|
1202
|
+
"references": []
|
|
1203
|
+
},
|
|
1204
|
+
{
|
|
1205
|
+
"name": "sd-1-9-0-dropdown",
|
|
1206
|
+
"description": "Dropdowns expose additional content that \"drops down\" in a panel.\n\n\n---\n\n\n\n\n### **Events:**\n - **sd-show** - Emitted when the dropdown opens.\n- **sd-after-show** - Emitted after the dropdown opens and all animations are complete.\n- **sd-hide** - Emitted when the dropdown closes.\n- **sd-after-hide** - Emitted after the dropdown closes and all animations are complete.\n\n### **Methods:**\n - **show()** - Shows the dropdown panel.\n- **hide()** - Hides the dropdown panel\n- **reposition()** - Instructs the dropdown menu to reposition. Useful when the position or size of the trigger changes when the menu\nis activated.\n\n### **Slots:**\n - _default_ - The dropdown's main content.\n- **trigger** - The dropdown's trigger, usually a `<sd-button>` element.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **trigger** - The container that wraps the trigger.\n- **panel** - The panel that gets shown when the dropdown is open.",
|
|
1207
|
+
"attributes": [
|
|
1208
|
+
{
|
|
1209
|
+
"name": "open",
|
|
1210
|
+
"description": "Indicates whether or not the dropdown is open. You can toggle this attribute to show and hide the dropdown, or you\ncan use the `show()` and `hide()` methods and this attribute will reflect the dropdown's open state.",
|
|
1211
|
+
"values": []
|
|
1212
|
+
},
|
|
1213
|
+
{
|
|
1214
|
+
"name": "rounded",
|
|
1215
|
+
"description": "Indicates whether or not the dropdown should be styled with rounded corners.",
|
|
1216
|
+
"values": []
|
|
1217
|
+
},
|
|
1218
|
+
{
|
|
1219
|
+
"name": "placement",
|
|
1220
|
+
"description": "The preferred placement of the dropdown panel. Note that the actual placement may vary as needed to keep the panel\ninside of the viewport.",
|
|
1221
|
+
"values": [
|
|
1222
|
+
{
|
|
1223
|
+
"name": ""
|
|
1224
|
+
},
|
|
1225
|
+
{
|
|
1226
|
+
"name": "top"
|
|
1227
|
+
},
|
|
1228
|
+
{
|
|
1229
|
+
"name": "top-start"
|
|
1230
|
+
},
|
|
1231
|
+
{
|
|
1232
|
+
"name": "top-end"
|
|
1233
|
+
},
|
|
1234
|
+
{
|
|
1235
|
+
"name": "bottom"
|
|
1236
|
+
},
|
|
1237
|
+
{
|
|
1238
|
+
"name": "bottom-start"
|
|
1239
|
+
},
|
|
1240
|
+
{
|
|
1241
|
+
"name": "bottom-end"
|
|
1242
|
+
},
|
|
1243
|
+
{
|
|
1244
|
+
"name": "right"
|
|
1245
|
+
},
|
|
1246
|
+
{
|
|
1247
|
+
"name": "right-start"
|
|
1248
|
+
},
|
|
1249
|
+
{
|
|
1250
|
+
"name": "right-end"
|
|
1251
|
+
},
|
|
1252
|
+
{
|
|
1253
|
+
"name": "left"
|
|
1254
|
+
},
|
|
1255
|
+
{
|
|
1256
|
+
"name": "left-start"
|
|
1257
|
+
},
|
|
1258
|
+
{
|
|
1259
|
+
"name": "left-end"
|
|
1260
|
+
}
|
|
1261
|
+
]
|
|
1262
|
+
},
|
|
1263
|
+
{
|
|
1264
|
+
"name": "disabled",
|
|
1265
|
+
"description": "Disables the dropdown so the panel will not open.",
|
|
1266
|
+
"values": []
|
|
1267
|
+
},
|
|
1268
|
+
{
|
|
1269
|
+
"name": "stay-open-on-select",
|
|
1270
|
+
"description": "By default, the dropdown is closed when an item is selected. This attribute will keep it open instead. Useful for\ndropdowns that allow for multiple interactions.",
|
|
1271
|
+
"values": []
|
|
1272
|
+
},
|
|
1273
|
+
{
|
|
1274
|
+
"name": "distance",
|
|
1275
|
+
"description": "The distance in pixels from which to offset the panel away from its trigger. This defaults to `0` for `rounded=false` and to a minimum of `1` for `rounded=true`.",
|
|
1276
|
+
"values": []
|
|
1277
|
+
},
|
|
1278
|
+
{
|
|
1279
|
+
"name": "skidding",
|
|
1280
|
+
"description": "The distance in pixels from which to offset the panel along its trigger.",
|
|
1281
|
+
"values": []
|
|
1282
|
+
},
|
|
1283
|
+
{
|
|
1284
|
+
"name": "no-auto-size",
|
|
1285
|
+
"description": "Indicates whether or not the dropdown should automatically resize its content's width/height regarding the available space on screen.",
|
|
1286
|
+
"values": []
|
|
1287
|
+
},
|
|
1288
|
+
{
|
|
1289
|
+
"name": "no-flip",
|
|
1290
|
+
"description": "When set to true, the placement of the dropdown will not flip to the opposite site to keep it in view.",
|
|
1291
|
+
"values": []
|
|
1292
|
+
},
|
|
1293
|
+
{
|
|
1294
|
+
"name": "hoist",
|
|
1295
|
+
"description": "Enable this option to prevent the panel from being clipped when the component is placed inside a container with\n`overflow: auto|scroll`. Hoisting uses a fixed positioning strategy that works in many, but not all, scenarios.",
|
|
1296
|
+
"values": []
|
|
1297
|
+
}
|
|
1298
|
+
],
|
|
1299
|
+
"references": []
|
|
1300
|
+
},
|
|
1301
|
+
{
|
|
1302
|
+
"name": "sd-1-9-0-icon",
|
|
807
1303
|
"description": "Icons are symbols that can be used to represent various options within an application.\n\n\n---\n\n\n\n\n### **Events:**\n - **sd-load** - Emitted when the icon has loaded.\n- **sd-error** - Emitted when the icon fails to load due to an error.",
|
|
808
1304
|
"attributes": [
|
|
809
1305
|
{
|
|
@@ -845,7 +1341,7 @@
|
|
|
845
1341
|
"references": []
|
|
846
1342
|
},
|
|
847
1343
|
{
|
|
848
|
-
"name": "sd-1-
|
|
1344
|
+
"name": "sd-1-9-0-include",
|
|
849
1345
|
"description": "Includes give you the power to embed external HTML files into the page.\n\n\n---\n\n\n\n\n### **Events:**\n - **sd-load** - Emitted when the included file is loaded.\n- **sd-error** - Emitted when the included file fails to load due to an error.",
|
|
850
1346
|
"attributes": [
|
|
851
1347
|
{
|
|
@@ -877,7 +1373,7 @@
|
|
|
877
1373
|
"references": []
|
|
878
1374
|
},
|
|
879
1375
|
{
|
|
880
|
-
"name": "sd-1-
|
|
1376
|
+
"name": "sd-1-9-0-link",
|
|
881
1377
|
"description": "A link component.\n\n\n---\n\n\n\n\n### **Events:**\n - **sd-blur** - Emitted when the link loses focus.\n- **sd-focus** - Emitted when the link gains focus.\n\n### **Methods:**\n - **focus(options: _FocusOptions_)** - Sets focus on the button.\n- **blur()** - Removes focus from the button.\n\n### **Slots:**\n - _default_ - The default slot.\n- **icon-left** - The icon to display on the left side of the link.\n- **icon-right** - The icon to display on the right side of the link.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **icon-left** - The container that wraps the left icon area.\n- **label** - The link's label.\n- **icon-right** - The container that wraps the right icon area.",
|
|
882
1378
|
"attributes": [
|
|
883
1379
|
{
|
|
@@ -937,7 +1433,231 @@
|
|
|
937
1433
|
"references": []
|
|
938
1434
|
},
|
|
939
1435
|
{
|
|
940
|
-
"name": "sd-1-
|
|
1436
|
+
"name": "sd-1-9-0-popup",
|
|
1437
|
+
"description": "Popup is a utility that lets you declaratively anchor \"popup\" containers to another element.\n\n\n---\n\n\n\n\n### **Events:**\n - **sd-reposition** - Emitted when the popup is repositioned. This event can fire a lot, so avoid putting expensive operations in your listener or consider debouncing it.\n\n### **Methods:**\n - **reposition()** - Forces the popup to recalculate and reposition itself.\n\n### **Slots:**\n - _default_ - The popup's content.\n- **anchor** - The element the popup will be anchored to. If the anchor lives outside of the popup, you can use the `anchor` attribute or property instead.\n\n### **CSS Properties:**\n - **--arrow-size** - The size of the arrow. Note that an arrow won't be shown unless the `arrow` attribute is used. _(default: 6px)_\n- **--arrow-color** - The color of the arrow. _(default: var(--sd-color-neutral-0))_\n- **--auto-size-available-width** - A read-only custom property that determines the amount of width the popup can be before overflowing. Useful for positioning child elements that need to overflow. This property is only available when using `auto-size`. _(default: undefined)_\n- **--auto-size-available-height** - A read-only custom property that determines the amount of height the popup can be before overflowing. Useful for positioning child elements that need to overflow. This property is only available when using `auto-size`. _(default: undefined)_\n\n### **CSS Parts:**\n - **arrow** - The arrow's container. Avoid setting `top|bottom|left|right` properties, as these values are assigned dynamically as the popup moves. This is most useful for applying a background color to match the popup, and maybe a border or box shadow.\n- **popup** - The popup's container. Useful for setting a background color, box shadow, etc.",
|
|
1438
|
+
"attributes": [
|
|
1439
|
+
{
|
|
1440
|
+
"name": "anchor",
|
|
1441
|
+
"description": "The element the popup will be anchored to. If the anchor lives outside of the popup, you can provide its `id` or a\nreference to it here. If the anchor lives inside the popup, use the `anchor` slot instead.",
|
|
1442
|
+
"values": [
|
|
1443
|
+
{
|
|
1444
|
+
"name": "Element"
|
|
1445
|
+
}
|
|
1446
|
+
]
|
|
1447
|
+
},
|
|
1448
|
+
{
|
|
1449
|
+
"name": "active",
|
|
1450
|
+
"description": "Activates the positioning logic and shows the popup. When this attribute is removed, the positioning logic is torn\ndown and the popup will be hidden.",
|
|
1451
|
+
"values": []
|
|
1452
|
+
},
|
|
1453
|
+
{
|
|
1454
|
+
"name": "placement",
|
|
1455
|
+
"description": "The preferred placement of the popup. Note that the actual placement will vary as configured to keep the\npanel inside of the viewport.",
|
|
1456
|
+
"values": [
|
|
1457
|
+
{
|
|
1458
|
+
"name": ""
|
|
1459
|
+
},
|
|
1460
|
+
{
|
|
1461
|
+
"name": "top"
|
|
1462
|
+
},
|
|
1463
|
+
{
|
|
1464
|
+
"name": "top-start"
|
|
1465
|
+
},
|
|
1466
|
+
{
|
|
1467
|
+
"name": "top-end"
|
|
1468
|
+
},
|
|
1469
|
+
{
|
|
1470
|
+
"name": "bottom"
|
|
1471
|
+
},
|
|
1472
|
+
{
|
|
1473
|
+
"name": "bottom-start"
|
|
1474
|
+
},
|
|
1475
|
+
{
|
|
1476
|
+
"name": "bottom-end"
|
|
1477
|
+
},
|
|
1478
|
+
{
|
|
1479
|
+
"name": "right"
|
|
1480
|
+
},
|
|
1481
|
+
{
|
|
1482
|
+
"name": "right-start"
|
|
1483
|
+
},
|
|
1484
|
+
{
|
|
1485
|
+
"name": "right-end"
|
|
1486
|
+
},
|
|
1487
|
+
{
|
|
1488
|
+
"name": "left"
|
|
1489
|
+
},
|
|
1490
|
+
{
|
|
1491
|
+
"name": "left-start"
|
|
1492
|
+
},
|
|
1493
|
+
{
|
|
1494
|
+
"name": "left-end"
|
|
1495
|
+
}
|
|
1496
|
+
]
|
|
1497
|
+
},
|
|
1498
|
+
{
|
|
1499
|
+
"name": "strategy",
|
|
1500
|
+
"description": "Determines how the popup is positioned. The `absolute` strategy works well in most cases, but if\noverflow is clipped, using a `fixed` position strategy can often workaround it.",
|
|
1501
|
+
"values": [
|
|
1502
|
+
{
|
|
1503
|
+
"name": "absolute"
|
|
1504
|
+
},
|
|
1505
|
+
{
|
|
1506
|
+
"name": "fixed"
|
|
1507
|
+
}
|
|
1508
|
+
]
|
|
1509
|
+
},
|
|
1510
|
+
{
|
|
1511
|
+
"name": "distance",
|
|
1512
|
+
"description": "The distance in pixels from which to offset the panel away from its anchor.",
|
|
1513
|
+
"values": []
|
|
1514
|
+
},
|
|
1515
|
+
{
|
|
1516
|
+
"name": "skidding",
|
|
1517
|
+
"description": "The distance in pixels from which to offset the panel along its anchor.",
|
|
1518
|
+
"values": []
|
|
1519
|
+
},
|
|
1520
|
+
{
|
|
1521
|
+
"name": "arrow",
|
|
1522
|
+
"description": "Attaches an arrow to the popup. The arrow's size and color can be customized using the `--arrow-size` and\n`--arrow-color` custom properties. For additional customizations, you can also target the arrow using\n`::part(arrow)` in your stylesheet.",
|
|
1523
|
+
"values": []
|
|
1524
|
+
},
|
|
1525
|
+
{
|
|
1526
|
+
"name": "arrow-placement",
|
|
1527
|
+
"description": "The placement of the arrow. The default is `anchor`, which will align the arrow as close to the center of the\nanchor as possible, considering available space and `arrow-padding`. A value of `start`, `end`, or `center` will\nalign the arrow to the start, end, or center of the popover instead.",
|
|
1528
|
+
"values": [
|
|
1529
|
+
{
|
|
1530
|
+
"name": "start"
|
|
1531
|
+
},
|
|
1532
|
+
{
|
|
1533
|
+
"name": "end"
|
|
1534
|
+
},
|
|
1535
|
+
{
|
|
1536
|
+
"name": "center"
|
|
1537
|
+
},
|
|
1538
|
+
{
|
|
1539
|
+
"name": "anchor"
|
|
1540
|
+
}
|
|
1541
|
+
]
|
|
1542
|
+
},
|
|
1543
|
+
{
|
|
1544
|
+
"name": "arrow-padding",
|
|
1545
|
+
"description": "The amount of padding between the arrow and the edges of the popup. If the popup has a border-radius, for example,\nthis will prevent it from overflowing the corners.",
|
|
1546
|
+
"values": []
|
|
1547
|
+
},
|
|
1548
|
+
{
|
|
1549
|
+
"name": "flip",
|
|
1550
|
+
"description": "When set, placement of the popup will flip to the opposite site to keep it in view. You can use\n`flipFallbackPlacements` to further configure how the fallback placement is determined.",
|
|
1551
|
+
"values": []
|
|
1552
|
+
},
|
|
1553
|
+
{
|
|
1554
|
+
"name": "flip-fallback-placements",
|
|
1555
|
+
"description": "If the preferred placement doesn't fit, popup will be tested in these fallback placements until one fits. Must be a\nstring of any number of placements separated by a space, e.g. \"top bottom left\". If no placement fits, the flip\nfallback strategy will be used instead.",
|
|
1556
|
+
"values": []
|
|
1557
|
+
},
|
|
1558
|
+
{
|
|
1559
|
+
"name": "flip-fallback-strategy",
|
|
1560
|
+
"description": "When neither the preferred placement nor the fallback placements fit, this value will be used to determine whether\nthe popup should be positioned using the best available fit based on available space or as it was initially\npreferred.",
|
|
1561
|
+
"values": [
|
|
1562
|
+
{
|
|
1563
|
+
"name": "best-fit"
|
|
1564
|
+
},
|
|
1565
|
+
{
|
|
1566
|
+
"name": "initial"
|
|
1567
|
+
}
|
|
1568
|
+
]
|
|
1569
|
+
},
|
|
1570
|
+
{
|
|
1571
|
+
"name": "flipBoundary",
|
|
1572
|
+
"description": "The flip boundary describes clipping element(s) that overflow will be checked relative to when flipping. By\ndefault, the boundary includes overflow ancestors that will cause the element to be clipped. If needed, you can\nchange the boundary by passing a reference to one or more elements to this property.",
|
|
1573
|
+
"values": [
|
|
1574
|
+
{
|
|
1575
|
+
"name": "Element"
|
|
1576
|
+
},
|
|
1577
|
+
{
|
|
1578
|
+
"name": "Element[]"
|
|
1579
|
+
}
|
|
1580
|
+
]
|
|
1581
|
+
},
|
|
1582
|
+
{
|
|
1583
|
+
"name": "flip-padding",
|
|
1584
|
+
"description": "The amount of padding, in pixels, to exceed before the flip behavior will occur.",
|
|
1585
|
+
"values": []
|
|
1586
|
+
},
|
|
1587
|
+
{
|
|
1588
|
+
"name": "shift",
|
|
1589
|
+
"description": "Moves the popup along the axis to keep it in view when clipped.",
|
|
1590
|
+
"values": []
|
|
1591
|
+
},
|
|
1592
|
+
{
|
|
1593
|
+
"name": "shiftBoundary",
|
|
1594
|
+
"description": "The shift boundary describes clipping element(s) that overflow will be checked relative to when shifting. By\ndefault, the boundary includes overflow ancestors that will cause the element to be clipped. If needed, you can\nchange the boundary by passing a reference to one or more elements to this property.",
|
|
1595
|
+
"values": [
|
|
1596
|
+
{
|
|
1597
|
+
"name": "Element"
|
|
1598
|
+
},
|
|
1599
|
+
{
|
|
1600
|
+
"name": "Element[]"
|
|
1601
|
+
}
|
|
1602
|
+
]
|
|
1603
|
+
},
|
|
1604
|
+
{
|
|
1605
|
+
"name": "shift-padding",
|
|
1606
|
+
"description": "The amount of padding, in pixels, to exceed before the shift behavior will occur.",
|
|
1607
|
+
"values": []
|
|
1608
|
+
},
|
|
1609
|
+
{
|
|
1610
|
+
"name": "auto-size",
|
|
1611
|
+
"description": "When set, this will cause the popup to automatically resize itself to prevent it from overflowing.",
|
|
1612
|
+
"values": [
|
|
1613
|
+
{
|
|
1614
|
+
"name": "horizontal"
|
|
1615
|
+
},
|
|
1616
|
+
{
|
|
1617
|
+
"name": "vertical"
|
|
1618
|
+
},
|
|
1619
|
+
{
|
|
1620
|
+
"name": "both"
|
|
1621
|
+
}
|
|
1622
|
+
]
|
|
1623
|
+
},
|
|
1624
|
+
{
|
|
1625
|
+
"name": "sync",
|
|
1626
|
+
"description": "Syncs the popup's width or height to that of the anchor element.",
|
|
1627
|
+
"values": [
|
|
1628
|
+
{
|
|
1629
|
+
"name": "width"
|
|
1630
|
+
},
|
|
1631
|
+
{
|
|
1632
|
+
"name": "height"
|
|
1633
|
+
},
|
|
1634
|
+
{
|
|
1635
|
+
"name": "both"
|
|
1636
|
+
}
|
|
1637
|
+
]
|
|
1638
|
+
},
|
|
1639
|
+
{
|
|
1640
|
+
"name": "autoSizeBoundary",
|
|
1641
|
+
"description": "The auto-size boundary describes clipping element(s) that overflow will be checked relative to when resizing. By\ndefault, the boundary includes overflow ancestors that will cause the element to be clipped. If needed, you can\nchange the boundary by passing a reference to one or more elements to this property.",
|
|
1642
|
+
"values": [
|
|
1643
|
+
{
|
|
1644
|
+
"name": "Element"
|
|
1645
|
+
},
|
|
1646
|
+
{
|
|
1647
|
+
"name": "Element[]"
|
|
1648
|
+
}
|
|
1649
|
+
]
|
|
1650
|
+
},
|
|
1651
|
+
{
|
|
1652
|
+
"name": "auto-size-padding",
|
|
1653
|
+
"description": "The amount of padding, in pixels, to exceed before the auto-size behavior will occur.",
|
|
1654
|
+
"values": []
|
|
1655
|
+
}
|
|
1656
|
+
],
|
|
1657
|
+
"references": []
|
|
1658
|
+
},
|
|
1659
|
+
{
|
|
1660
|
+
"name": "sd-1-9-0-spinner",
|
|
941
1661
|
"description": "Spinners are used to show the progress of an indeterminate operation.\n\n\n---\n\n\n",
|
|
942
1662
|
"attributes": [
|
|
943
1663
|
{
|
|
@@ -959,7 +1679,7 @@
|
|
|
959
1679
|
"references": []
|
|
960
1680
|
},
|
|
961
1681
|
{
|
|
962
|
-
"name": "sd-1-
|
|
1682
|
+
"name": "sd-1-9-0-teaser",
|
|
963
1683
|
"description": "Teasers group information into flexible containers so users can browse a collection of related items and actions.\n\n\n---\n\n\n\n\n### **Slots:**\n - _default_ - An optional main content slot.\n- **media** - An optional media slot.\n- **meta** - An optional meta slot.\n- **headline** - headline slot.\n\n### **CSS Properties:**\n - **--distribution-media** - The distribution ratio of the media. _(default: undefined)_\n- **--distribution-content** - The distribution ratio of the content. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **media** - The container that wraps the media.\n- **content** - The container that wraps the content.\n- **meta** - The container that wraps the meta.\n- **headline** - The container that wraps the headline.\n- **main** - The container that wraps the main content.",
|
|
964
1684
|
"attributes": [
|
|
965
1685
|
{
|