@solid-design-system/mcp 6.28.1 → 6.29.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/CHANGELOG.md +8 -0
- package/metadata/packages/components/sd-accordion/info.md +1 -1
- package/metadata/packages/components/sd-badge/stories/variant.md +1 -1
- package/metadata/packages/components/sd-brandshape/info.md +1 -1
- package/metadata/packages/components/sd-brandshape/stories/variant.md +0 -1
- package/metadata/packages/components/sd-breadcrumb-item/info.md +1 -1
- package/metadata/packages/components/sd-button/info.md +2 -2
- package/metadata/packages/components/sd-button/stories/visually-disabled.md +4 -4
- package/metadata/packages/components/sd-carousel/info.md +2 -1
- package/metadata/packages/components/sd-datepicker/stories/visually-disabled.md +1 -1
- package/metadata/packages/components/sd-dialog/stories/headline.md +1 -1
- package/metadata/packages/components/sd-dialog/stories/no-close-button.md +1 -1
- package/metadata/packages/components/sd-dialog/stories/open.md +44 -43
- package/metadata/packages/components/sd-drawer/stories/no-header.md +1 -1
- package/metadata/packages/components/sd-drawer/stories/open.md +3 -3
- package/metadata/packages/components/sd-drawer/stories/placement.md +3 -3
- package/metadata/packages/components/sd-dropdown/info.md +1 -1
- package/metadata/packages/components/sd-icon/stories/name.md +1 -1
- package/metadata/packages/components/sd-input/info.md +4 -4
- package/metadata/packages/components/sd-link/info.md +1 -1
- package/metadata/packages/components/sd-link/stories/as-link.md +1 -1
- package/metadata/packages/components/sd-link/stories/icon.md +2 -2
- package/metadata/packages/components/sd-link/stories/visually-disabled.md +2 -2
- package/metadata/packages/components/sd-map-marker/info.md +1 -1
- package/metadata/packages/components/sd-menu/stories/icon.md +0 -1
- package/metadata/packages/components/sd-navigation-item/info.md +2 -2
- package/metadata/packages/components/sd-navigation-item/stories/accordion.md +4 -4
- package/metadata/packages/components/sd-navigation-item/stories/chevron.md +1 -1
- package/metadata/packages/components/sd-navigation-item/stories/current.md +2 -2
- package/metadata/packages/components/sd-navigation-item/stories/description.md +1 -1
- package/metadata/packages/components/sd-navigation-item/stories/disabled.md +1 -1
- package/metadata/packages/components/sd-navigation-item/stories/divider.md +1 -1
- package/metadata/packages/components/sd-navigation-item/stories/indented.md +1 -1
- package/metadata/packages/components/sd-navigation-item/stories/orientation.md +2 -2
- package/metadata/packages/components/sd-navigation-item/stories/relaxed.md +1 -1
- package/metadata/packages/components/sd-navigation-item/stories/separated.md +4 -4
- package/metadata/packages/components/sd-notification/info.md +2 -2
- package/metadata/packages/components/sd-notification/stories/toast-notification.md +1 -0
- package/metadata/packages/components/sd-popup/info.md +1 -1
- package/metadata/packages/components/sd-quickfact/info.md +1 -1
- package/metadata/packages/components/sd-quickfact/stories/expandable.md +0 -1
- package/metadata/packages/components/sd-radio-group/info.md +1 -1
- package/metadata/packages/components/sd-radio-group/stories/required.md +1 -1
- package/metadata/packages/components/sd-range/info.md +1 -1
- package/metadata/packages/components/sd-select/info.md +3 -3
- package/metadata/packages/components/sd-spinner/stories/variants.md +1 -1
- package/metadata/packages/components/sd-step/stories/size.md +1 -1
- package/metadata/packages/components/sd-tab-group/info.md +1 -1
- package/metadata/packages/components/sd-tag/info.md +1 -1
- package/metadata/packages/components/sd-teaser/info.md +1 -1
- package/metadata/packages/components/sd-teaser-media/info.md +1 -1
- package/metadata/packages/components/sd-teaser-media/stories/default-media-and-headline-slot.md +1 -1
- package/metadata/packages/components/sd-textarea/info.md +2 -2
- package/metadata/packages/components/sd-tooltip/info.md +3 -3
- package/metadata/packages/components/sd-tooltip/stories/custom-trigger.md +1 -1
- package/metadata/packages/components/sd-tooltip/stories/placement.md +6 -6
- package/metadata/packages/styles/sd-chip/stories/variants.md +2 -2
- package/metadata/packages/styles/sd-flag/stories/variants.md +2 -2
- package/metadata/packages/templates/brandshape.md +5 -6
- package/metadata/packages/templates/dialog.md +1 -1
- package/metadata/packages/templates/table.md +14 -12
- package/metadata/packages/tokens/docs/usage.md +1 -1
- package/package.json +12 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 6.29.0
|
|
4
|
+
|
|
5
|
+
## 6.28.2
|
|
6
|
+
|
|
7
|
+
### Patch Changes
|
|
8
|
+
|
|
9
|
+
- Updated dependencies. See details in the Pull Request _[`#3163`](https://github.com/solid-design-system/solid/pull/3163) [`91ff1c8`](https://github.com/solid-design-system/solid/commit/91ff1c81831fb3522c534306a61b8a5be3562f64) [@rahulsuvarna18](https://github.com/rahulsuvarna18)_
|
|
10
|
+
|
|
3
11
|
## 6.28.1
|
|
4
12
|
|
|
5
13
|
## 6.28.0
|
|
@@ -41,7 +41,7 @@ Use the components tool by passing the args `component` and `example` for any of
|
|
|
41
41
|
- part.summary-icon: The container that wraps the expand/collapse icons.
|
|
42
42
|
- part.summary-border: The container that wraps the currently active accordions border.
|
|
43
43
|
- part.content: The container that wraps the accordion content slot.
|
|
44
|
-
- part.
|
|
44
|
+
- part.content__slot: The accordion content slot.
|
|
45
45
|
|
|
46
46
|
## Guidelines
|
|
47
47
|
|
|
@@ -15,7 +15,7 @@ Use the components tool by passing the args `component` and `example` for any of
|
|
|
15
15
|
|
|
16
16
|
### Key Properties
|
|
17
17
|
|
|
18
|
-
- prop.variant:
|
|
18
|
+
- prop.variant: 'neutral-100'|'primary'|'white'|'border-primary'|'border-white'|'primary|80'|'white|80'|'image', default='primary' — The brandshape's theme variant.
|
|
19
19
|
- prop.shapes: ('top'|'middle'|'bottom')[], default=['top', 'middle', 'bottom'] — Defines which shapes of the brandshape should be displayed.
|
|
20
20
|
- prop.dir: 'ltr'|'rtl'|'auto' — The element's directionality.
|
|
21
21
|
- prop.lang: string — The element's language.
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
### Key Properties
|
|
8
8
|
|
|
9
9
|
- prop.href: string, default='' — When not set, the breadcrumb will render as disabled.
|
|
10
|
-
- prop.target: '
|
|
10
|
+
- prop.target: '_blank'|'_parent'|'_self'|'_top' — Tells the browser where to open the link. Only used when `href` is present.
|
|
11
11
|
- prop.current: boolean, default=false — When set, the attribute `aria-current="page"` will be applied.
|
|
12
12
|
- prop.dir: 'ltr'|'rtl'|'auto' — The element's directionality.
|
|
13
13
|
- prop.lang: string — The element's language.
|
|
@@ -33,7 +33,7 @@ Use the components tool by passing the args `component` and `example` for any of
|
|
|
33
33
|
- prop.value: string, default='' — The value of the button, submitted as a pair with the button's name as part of the form data, but only when this
|
|
34
34
|
button is the submitter. This attribute is ignored when `href` is present.
|
|
35
35
|
- prop.href: string, default='' — When set, the underlying button will be rendered as an `<a>` with this `href` instead of a `<button>`.
|
|
36
|
-
- prop.target: '
|
|
36
|
+
- prop.target: '_blank'|'_parent'|'_self'|'_top' — Tells the browser where to open the link. Only used when `href` is present.
|
|
37
37
|
- prop.download: string|undefined — Tells the browser to download the linked file as this filename. Only used when `href` is present.
|
|
38
38
|
- prop.form: string — The "form owner" to associate the button with. If omitted, the closest containing form will be used instead. The
|
|
39
39
|
value of this attribute must be an id of a form in the same document or shadow root as the button.
|
|
@@ -41,7 +41,7 @@ Use the components tool by passing the args `component` and `example` for any of
|
|
|
41
41
|
- prop.formEnctype [attr: formenctype]: 'application/x-www-form-urlencoded'|'multipart/form-data'|'text/plain' — Used to override the form owner's `enctype` attribute.
|
|
42
42
|
- prop.formMethod [attr: formmethod]: 'post'|'get' — Used to override the form owner's `method` attribute.
|
|
43
43
|
- prop.formNoValidate [attr: formnovalidate]: boolean — Used to override the form owner's `novalidate` attribute.
|
|
44
|
-
- prop.formTarget [attr: formtarget]: '
|
|
44
|
+
- prop.formTarget [attr: formtarget]: '_self'|'_blank'|'_parent'|'_top' — Used to override the form owner's `target` attribute.
|
|
45
45
|
- prop.validity: — Gets the validity state object
|
|
46
46
|
- prop.validationMessage: — Gets the validation message
|
|
47
47
|
- prop.dir: 'ltr'|'rtl'|'auto' — The element's directionality.
|
|
@@ -4,19 +4,19 @@ Use the `visually-disabled` attribute to style the component as if it was disabl
|
|
|
4
4
|
|
|
5
5
|
```html
|
|
6
6
|
<div class="flex gap-12 h-[100px] mt-12">
|
|
7
|
-
<sd-tooltip content="Visually
|
|
7
|
+
<sd-tooltip content="Visually disabled" trigger="hover focus" size="sm" placement="top">
|
|
8
8
|
<sd-button variant="primary" visually-disabled>Visually disabled</sd-button>
|
|
9
9
|
</sd-tooltip>
|
|
10
10
|
|
|
11
|
-
<sd-tooltip content="Visually
|
|
11
|
+
<sd-tooltip content="Visually disabled" trigger="hover focus" size="sm" placement="top">
|
|
12
12
|
<sd-button variant="secondary" visually-disabled>Visually disabled</sd-button>
|
|
13
13
|
</sd-tooltip>
|
|
14
14
|
|
|
15
|
-
<sd-tooltip content="Visually
|
|
15
|
+
<sd-tooltip content="Visually disabled" trigger="hover focus" size="sm" placement="top">
|
|
16
16
|
<sd-button variant="tertiary" visually-disabled>Visually disabled</sd-button>
|
|
17
17
|
</sd-tooltip>
|
|
18
18
|
|
|
19
|
-
<sd-tooltip content="Visually
|
|
19
|
+
<sd-tooltip content="Visually disabled" trigger="hover focus" size="sm" placement="top">
|
|
20
20
|
<sd-button variant="cta" visually-disabled>Visually disabled</sd-button>
|
|
21
21
|
</sd-tooltip>
|
|
22
22
|
</div>
|
|
@@ -27,7 +27,8 @@ Use the components tool by passing the args `component` and `example` for any of
|
|
|
27
27
|
- prop.fade: boolean, default=false — When set, slides will fade between each other instead of scrolling.
|
|
28
28
|
- prop.slidesPerPage [attr: slides-per-page]: number, default=1 — Specifies how many slides should be shown at a given time.
|
|
29
29
|
- prop.slidesPerMove [attr: slides-per-move]: number, default=1 — Use `slides-per-move` to set how many slides the carousel advances when scrolling. This is useful when specifying a `slides-per-page` greater than one. By setting `slides-per-move` to the same value as `slides-per-page`, the carousel will advance by one page at a time.<br>
|
|
30
|
-
<b>Note:</b><br>
|
|
30
|
+
<b>Note:</b><br>
|
|
31
|
+
|
|
31
32
|
<li> The number of slides should be divisible by the number of `slides-per-page` to maintain consistent scroll behavior.</li>
|
|
32
33
|
<li>Variations between `slides-per-move` and `slides-per-page` can lead to unexpected scrolling behavior. Keep your intended UX in mind when adjusting these values.</li>
|
|
33
34
|
- prop.dir: 'ltr'|'rtl'|'auto' — The element's directionality.
|
|
@@ -5,7 +5,7 @@ Use the `visually-disabled` attribute to style the component as if it was disa
|
|
|
5
5
|
```html
|
|
6
6
|
<div class="max-w-[370px] h-[500px]">
|
|
7
7
|
<sd-tooltip content="Visually Disabled" trigger="hover focus" size="sm" placement="top">
|
|
8
|
-
<sd-datepicker label="Label" placeholder="Visually
|
|
8
|
+
<sd-datepicker label="Label" placeholder="Visually disabled" visually-disabled></sd-datepicker>
|
|
9
9
|
</sd-tooltip>
|
|
10
10
|
</div>
|
|
11
11
|
```
|
|
@@ -2,7 +2,7 @@ Use the `headline` attribute to set the headline of the dialog. If you need to u
|
|
|
2
2
|
|
|
3
3
|
```html
|
|
4
4
|
<div class="h-[40vh]">
|
|
5
|
-
<sd-button id="headline-drawer-trigger">Open
|
|
5
|
+
<sd-button id="headline-drawer-trigger">Open dialog</sd-button>
|
|
6
6
|
<sd-dialog id="headline-dialog" open headline="Headline">
|
|
7
7
|
<p class="sd-paragraph">
|
|
8
8
|
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et
|
|
@@ -3,7 +3,7 @@ Use the `no-close-button` attribute to hide the close button in the dialog.
|
|
|
3
3
|
|
|
4
4
|
```html
|
|
5
5
|
<div class="h-[40vh]">
|
|
6
|
-
<sd-button id="no-close-drawer-trigger">Open
|
|
6
|
+
<sd-button id="no-close-drawer-trigger">Open dialog</sd-button>
|
|
7
7
|
<sd-dialog id="no-close-dialog" headline="Headline" open no-close-button>
|
|
8
8
|
<p class="sd-paragraph">
|
|
9
9
|
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et
|
|
@@ -1,48 +1,49 @@
|
|
|
1
1
|
**Known browser issues:**
|
|
2
2
|
|
|
3
3
|
- When the headline is set by slot instead of attribute, the dialog name is not being announced by VoiceOver in Chrome and Firefox.
|
|
4
|
-
/
|
|
5
|
-
export default {
|
|
6
|
-
title: 'Components/sd-dialog',
|
|
7
|
-
component: 'sd-dialog',
|
|
8
|
-
tags: ['!dev', 'autodocs'],
|
|
9
|
-
args: overrideArgs([
|
|
10
|
-
{
|
|
11
|
-
type: 'attribute',
|
|
12
|
-
name: 'open',
|
|
13
|
-
value: true
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
type: 'slot',
|
|
17
|
-
name: 'default',
|
|
18
|
-
value: `<div class="slot slot--border slot--text h-16 w-full">Default slot</div>`
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
type: 'slot',
|
|
22
|
-
name: 'headline',
|
|
23
|
-
value: `<div slot="headline" class="slot slot--border slot--text h-16">Headline slot</div>`
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
type: 'slot',
|
|
27
|
-
name: 'footer',
|
|
28
|
-
value: `<div slot="footer" class="slot slot--border slot--text h-16 w-full">Footer slot</div>`
|
|
29
|
-
}
|
|
30
|
-
]),
|
|
31
|
-
argTypes,
|
|
32
|
-
parameters: {
|
|
33
|
-
...parameters,
|
|
34
|
-
design: {
|
|
35
|
-
type: 'figma',
|
|
36
|
-
url: 'https://www.figma.com/design/YDktJcseQIIQbsuCpoKS4V/Component-Docs?node-id=2216-42723&node-type=section&t=5PpAC3TA3kYF7ufX-0'
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
export const Default = {
|
|
41
|
-
render: (args: any) => {
|
|
42
|
-
return html` <div style="height: 40vh;">
|
|
43
|
-
${generateTemplate({
|
|
44
|
-
args
|
|
45
|
-
})}
|
|
4
|
+
/
|
|
5
|
+
export default {
|
|
6
|
+
title: 'Components/sd-dialog',
|
|
7
|
+
component: 'sd-dialog',
|
|
8
|
+
tags: ['!dev', 'autodocs'],
|
|
9
|
+
args: overrideArgs([
|
|
10
|
+
{
|
|
11
|
+
type: 'attribute',
|
|
12
|
+
name: 'open',
|
|
13
|
+
value: true
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
type: 'slot',
|
|
17
|
+
name: 'default',
|
|
18
|
+
value: `<div class="slot slot--border slot--text h-16 w-full">Default slot</div>`
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
type: 'slot',
|
|
22
|
+
name: 'headline',
|
|
23
|
+
value: `<div slot="headline" class="slot slot--border slot--text h-16">Headline slot</div>`
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
type: 'slot',
|
|
27
|
+
name: 'footer',
|
|
28
|
+
value: `<div slot="footer" class="slot slot--border slot--text h-16 w-full">Footer slot</div>`
|
|
29
|
+
}
|
|
30
|
+
]),
|
|
31
|
+
argTypes,
|
|
32
|
+
parameters: {
|
|
33
|
+
...parameters,
|
|
34
|
+
design: {
|
|
35
|
+
type: 'figma',
|
|
36
|
+
url: 'https://www.figma.com/design/YDktJcseQIIQbsuCpoKS4V/Component-Docs?node-id=2216-42723&node-type=section&t=5PpAC3TA3kYF7ufX-0'
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
export const Default = {
|
|
41
|
+
render: (args: any) => {
|
|
42
|
+
return html` <div style="height: 40vh;">
|
|
43
|
+
${generateTemplate({
|
|
44
|
+
args
|
|
45
|
+
})}
|
|
46
|
+
|
|
46
47
|
</div>`;
|
|
47
48
|
}
|
|
48
49
|
};
|
|
@@ -51,7 +52,7 @@ Use the `open` attribute to show the dialog.
|
|
|
51
52
|
|
|
52
53
|
```html
|
|
53
54
|
<div class="h-[40vh]">
|
|
54
|
-
<sd-button id="drawer-trigger">Open
|
|
55
|
+
<sd-button id="drawer-trigger">Open dialog</sd-button>
|
|
55
56
|
<sd-dialog id="dialog" open>
|
|
56
57
|
<span slot="headline" class="sd-headline sd-headline--size-3xl">Lorem ipsum</span>
|
|
57
58
|
<p class="sd-paragraph">
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Use the `no-header` attribute to remove the header from the drawer.
|
|
2
2
|
|
|
3
3
|
```html
|
|
4
|
-
<sd-button id="noHeaderButton">Open
|
|
4
|
+
<sd-button id="noHeaderButton">Open drawer</sd-button>
|
|
5
5
|
<div style="width: auto; height: 40vh; position: relative;">
|
|
6
6
|
<sd-drawer open no-header placement="start" id="noHeaderDrawer" label="No header drawer">
|
|
7
7
|
<div class="slot slot--border slot--text h-full">Default slot</div>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Use the `open` attribute to set the state of the drawer to open.
|
|
2
2
|
|
|
3
3
|
```html
|
|
4
|
-
<sd-button id="openButton">Open
|
|
4
|
+
<sd-button id="openButton">Open drawer</sd-button>
|
|
5
5
|
<div style="width: auto; height: 40vh; position: relative;">
|
|
6
6
|
<sd-drawer open label="example" placement="start" id="openDrawer">
|
|
7
7
|
<sd-button slot="header" variant="tertiary">
|
|
@@ -10,8 +10,8 @@ Use the `open` attribute to set the state of the drawer to open.
|
|
|
10
10
|
</sd-button>
|
|
11
11
|
<div class="slot slot--border slot--text h-full">Default slot</div>
|
|
12
12
|
<div slot="footer" class="flex flex-col w-full gap-4">
|
|
13
|
-
<sd-button variant="primary">Primary
|
|
14
|
-
<sd-button variant="secondary">Secondary
|
|
13
|
+
<sd-button variant="primary">Primary action</sd-button>
|
|
14
|
+
<sd-button variant="secondary">Secondary action</sd-button>
|
|
15
15
|
</div>
|
|
16
16
|
</sd-drawer>
|
|
17
17
|
</div>
|
|
@@ -4,14 +4,14 @@ Use the `placement` attribute to change the position of the drawer:
|
|
|
4
4
|
- `end`: The drawer will be positioned on the right side of the screen.
|
|
5
5
|
|
|
6
6
|
```html
|
|
7
|
-
<sd-button id="placementButton">Open
|
|
7
|
+
<sd-button id="placementButton">Open drawer</sd-button>
|
|
8
8
|
<div style="width: auto; height: 40vh; position: relative;">
|
|
9
9
|
<sd-drawer open placement="start" id="placementDrawer" label="Placement drawer">
|
|
10
10
|
<sd-input slot="header" type="search" size="lg" placeholder="Start typing" label="Search"></sd-input>
|
|
11
11
|
<div class="slot slot--border slot--text h-full">Default slot</div>
|
|
12
12
|
<div slot="footer" class="flex flex-col w-full gap-4">
|
|
13
|
-
<sd-button variant="primary">Primary
|
|
14
|
-
<sd-button variant="secondary">Secondary
|
|
13
|
+
<sd-button variant="primary">Primary action</sd-button>
|
|
14
|
+
<sd-button variant="secondary">Secondary action</sd-button>
|
|
15
15
|
</div>
|
|
16
16
|
</sd-drawer>
|
|
17
17
|
</div>
|
|
@@ -52,7 +52,7 @@ Use the components tool by passing the args `component` and `example` for any of
|
|
|
52
52
|
### CSS Parts
|
|
53
53
|
|
|
54
54
|
- part.base: The component's base wrapper.
|
|
55
|
-
- part.
|
|
55
|
+
- part.base__popup: The popup's exported `popup` part. Use this to target the dropdowns' popup container.
|
|
56
56
|
- part.trigger: The container that wraps the trigger.
|
|
57
57
|
- part.panel: The panel that gets shown when the dropdown is open.
|
|
58
58
|
|
|
@@ -17,7 +17,7 @@ Icons can be used to indicate an action or to represent content.
|
|
|
17
17
|
return generateTemplate({ args });
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
|
-
|
|
20
|
+
/**
|
|
21
21
|
Use the `name` attribute to change the icon. Checkout these lists of Union Investment's icons for available names:
|
|
22
22
|
- [Content Icons](?path=/story/components-sd-icon-default--library-default-content)
|
|
23
23
|
- [System Icons](?path=/story/components-sd-icon-default--library-default-system)
|
|
@@ -33,10 +33,10 @@ Use the components tool by passing the args `component` and `example` for any of
|
|
|
33
33
|
|
|
34
34
|
### Key Properties
|
|
35
35
|
|
|
36
|
-
- prop.type:
|
|
36
|
+
- prop.type: 'date'|'datetime-local'|'email'|'number'|'password'|'search'|'tel'|'text'|'time'|'url', default='text' — The type of input. Works the same as a native `<input>` element, but only a subset of types are supported. Defaults
|
|
37
37
|
to `text`.
|
|
38
38
|
- prop.size: 'lg'|'md'|'sm', default='lg' — The input's size.
|
|
39
|
-
- prop.inputmode:
|
|
39
|
+
- prop.inputmode: 'none'|'text'|'decimal'|'numeric'|'tel'|'search'|'email'|'url' — Tells the browser what type of data will be entered by the user, allowing it to display the appropriate virtual
|
|
40
40
|
keyboard on supportive devices.
|
|
41
41
|
- prop.value: string, default='' — The current value of the input, submitted as a name/value pair with form data.
|
|
42
42
|
- prop.defaultValue: string, default='' — The default value of the form control. Primarily used for resetting the form control.
|
|
@@ -64,11 +64,11 @@ Use the components tool by passing the args `component` and `example` for any of
|
|
|
64
64
|
- prop.pattern: string — A regular expression pattern to validate input against.
|
|
65
65
|
- prop.step: number|'any' — Specifies the granularity that the value must adhere to, or the special value `any` which means no stepping is
|
|
66
66
|
implied, allowing any numeric value. Only applies to date and number input types.
|
|
67
|
-
- prop.autocapitalize:
|
|
67
|
+
- prop.autocapitalize: 'off'|'none'|'on'|'sentences'|'words'|'characters' — Controls whether and how text input is automatically capitalized as it is entered by the user.
|
|
68
68
|
- prop.autocomplete: string — Specifies what permission the browser has to provide assistance in filling out form field values. Refer to
|
|
69
69
|
[this page on MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) for available values.
|
|
70
70
|
- prop.autofocus: boolean — Indicates that the input should receive focus on page load.
|
|
71
|
-
- prop.enterkeyhint:
|
|
71
|
+
- prop.enterkeyhint: 'enter'|'done'|'go'|'next'|'previous'|'search'|'send' — Used to customize the label or icon of the Enter key on virtual keyboards.
|
|
72
72
|
- prop.styleOnValid [attr: style-on-valid]: boolean, default=false — Shows success styles if the validity of the input is valid.
|
|
73
73
|
- prop.spellcheck: boolean, default=true — Enables spell checking on the input.
|
|
74
74
|
- prop.valueAsDate: — Gets or sets the current value as a `Date` object. Returns `null` if the value can't be converted.
|
|
@@ -23,7 +23,7 @@ Use the components tool by passing the args `component` and `example` for any of
|
|
|
23
23
|
- prop.inverted: boolean, default=false — Inverts the link.
|
|
24
24
|
- prop.href: string, default='' — When not set, the link will render as disabled.
|
|
25
25
|
- prop.visuallyDisabled [attr: visually-disabled]: boolean, default=false — Styles the link as if it was disabled and enables aria-disabled
|
|
26
|
-
- prop.target: '
|
|
26
|
+
- prop.target: '_blank'|'_parent'|'_self'|'_top' — Tells the browser where to open the link. Only used when `href` is present.
|
|
27
27
|
- prop.download: string|undefined — Tells the browser to download the linked file as this filename. Only used when `href` is present.
|
|
28
28
|
- prop.dir: 'ltr'|'rtl'|'auto' — The element's directionality.
|
|
29
29
|
- prop.lang: string — The element's language.
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<div class="flex gap-12">
|
|
7
7
|
<sd-link href="https://solid-design-system.fe.union-investment.de/docs/?path=/docs/docs-general-introduction--docs"
|
|
8
8
|
>Link</sd-link
|
|
9
|
-
><sd-link href="https://union-investment.com" target="_blank">New
|
|
9
|
+
><sd-link href="https://union-investment.com" target="_blank">New window</sd-link
|
|
10
10
|
><sd-link href="./placeholders/src/images/collaboration.jpg" download>Download</sd-link>
|
|
11
11
|
</div>
|
|
12
12
|
```
|
|
@@ -4,10 +4,10 @@ Use the `icon-left` and `icon-right` slots to add system icons to each side of t
|
|
|
4
4
|
<div class="flex gap-12">
|
|
5
5
|
<sd-link href="https://solid-design-system.fe.union-investment.de/docs/" standalone>
|
|
6
6
|
<sd-icon name="system/image" slot="icon-left"></sd-icon>
|
|
7
|
-
Icon
|
|
7
|
+
Icon left
|
|
8
8
|
</sd-link>
|
|
9
9
|
<sd-link href="https://solid-design-system.fe.union-investment.de/docs/" standalone>
|
|
10
|
-
Icon
|
|
10
|
+
Icon right
|
|
11
11
|
<sd-icon name="system/image" slot="icon-right"></sd-icon>
|
|
12
12
|
</sd-link>
|
|
13
13
|
</div>
|
|
@@ -4,13 +4,13 @@ Use the `visually-disabled` attribute to style the component as if it was disabl
|
|
|
4
4
|
|
|
5
5
|
```html
|
|
6
6
|
<div class="flex gap-12 h-[100px] pt-12">
|
|
7
|
-
<sd-tooltip content="Visually
|
|
7
|
+
<sd-tooltip content="Visually disabled" trigger="hover focus" size="sm">
|
|
8
8
|
<sd-link
|
|
9
9
|
size="lg"
|
|
10
10
|
href="https://solid-design-system.fe.union-investment.de/docs/"
|
|
11
11
|
visually-disabled
|
|
12
12
|
class="visually-disabled-link"
|
|
13
|
-
>Visually
|
|
13
|
+
>Visually disabled</sd-link
|
|
14
14
|
>
|
|
15
15
|
</sd-tooltip>
|
|
16
16
|
</div>
|
|
@@ -22,7 +22,7 @@ Use the components tool by passing the args `component` and `example` for any of
|
|
|
22
22
|
- prop.animated: boolean, default=false — The map-marker's is animated when displayed.
|
|
23
23
|
- prop.notInteractive [attr: not-interactive]: boolean, default=false — Determines if the map-marker is interactive.
|
|
24
24
|
- prop.href: string, default='' — When set, the underlying button will be rendered as an `<a>` with this `href` instead of a `<button>`.
|
|
25
|
-
- prop.target: '
|
|
25
|
+
- prop.target: '_blank'|'_parent'|'_self'|'_top' — Tells the browser where to open the link. Only used when `href` is present.
|
|
26
26
|
- prop.label: string, default='' — Only relevant when map-marker is interactive.
|
|
27
27
|
When set, it will be used to announce the name of the map-marker to screenreaders,
|
|
28
28
|
otherwise, screenreaders will announce the content inside the default slot.
|
|
@@ -27,7 +27,7 @@ Use the components tool by passing the args `component` and `example` for any of
|
|
|
27
27
|
- prop.vertical: boolean, default=false — The navigation item's orientation. If false, properties below this point are not used.
|
|
28
28
|
- prop.size: 'md'|'lg'|'sm', default='md' — The navigation item's font size.
|
|
29
29
|
- prop.href: string — The navigation item's href target. If provided, the navigation item will use an anchor tag otherwise it will use a button tag. The 'children' slot and accordion behavior will be ignored if an 'href' is provided.
|
|
30
|
-
- prop.target: '
|
|
30
|
+
- prop.target: '_blank'|'_parent'|'_self'|'_top' — Tells the browser where to open the link. Only used when `href` is defined.
|
|
31
31
|
- prop.download: string|undefined — Tells the browser to download the linked file as this filename. Only used when `href` is defined.
|
|
32
32
|
- prop.current: boolean, default=false — Indicates that the navigation item is currently selected. The aria-current attribute is set to "page" on the host if true.
|
|
33
33
|
- prop.disabled: boolean, default=false — Disables the navigation item.
|
|
@@ -48,7 +48,7 @@ Use the components tool by passing the args `component` and `example` for any of
|
|
|
48
48
|
### Slots
|
|
49
49
|
|
|
50
50
|
- slot.default: The navigation item's label.
|
|
51
|
-
- slot.description:
|
|
51
|
+
- slot.description: *Vertical only: Slot used to provide a description for the navigation item.
|
|
52
52
|
- slot.children: Slot used to provide nested child navigation elements. If provided, details and summary elements will be used. A chevron will be shown on the right side regardless of the chevron property.
|
|
53
53
|
|
|
54
54
|
### CSS Parts
|
|
@@ -7,9 +7,9 @@ Add `children` slot to the navigation item to create an accordion.
|
|
|
7
7
|
|
|
8
8
|
```html
|
|
9
9
|
<sd-navigation-item vertical>
|
|
10
|
-
<div>Vertical
|
|
11
|
-
<sd-navigation-item vertical indented slot="children"> Sub
|
|
12
|
-
<sd-navigation-item vertical indented slot="children"> Sub
|
|
13
|
-
<sd-navigation-item vertical indented slot="children"> Sub
|
|
10
|
+
<div>Vertical navigation with accordion</div>
|
|
11
|
+
<sd-navigation-item vertical indented slot="children"> Sub navigation 1 </sd-navigation-item>
|
|
12
|
+
<sd-navigation-item vertical indented slot="children"> Sub navigation 2 </sd-navigation-item>
|
|
13
|
+
<sd-navigation-item vertical indented slot="children"> Sub navigation 3 </sd-navigation-item>
|
|
14
14
|
</sd-navigation-item>
|
|
15
15
|
```
|
|
@@ -6,5 +6,5 @@ Use the `chevron` attribute to add a chevron to the navigation item.
|
|
|
6
6
|
- `Accordion` variant always show up / down chevron to reflect open state.
|
|
7
7
|
|
|
8
8
|
```html
|
|
9
|
-
<sd-navigation-item vertical chevron>Vertical
|
|
9
|
+
<sd-navigation-item vertical chevron>Vertical navigation with chevron</sd-navigation-item>
|
|
10
10
|
```
|
|
@@ -2,7 +2,7 @@ Use the `current` attribute to change the navigation item to a current state and
|
|
|
2
2
|
|
|
3
3
|
```html
|
|
4
4
|
<div class="flex flex-col gap-6">
|
|
5
|
-
<sd-navigation-item class="w-[174px]" current>Current
|
|
6
|
-
<sd-navigation-item vertical current>Current
|
|
5
|
+
<sd-navigation-item class="w-[174px]" current>Current horizontal</sd-navigation-item>
|
|
6
|
+
<sd-navigation-item vertical current>Current vertical</sd-navigation-item>
|
|
7
7
|
</div>
|
|
8
8
|
```
|
|
@@ -3,7 +3,7 @@ Use the `description` slot to provide a description for the navigation item.
|
|
|
3
3
|
|
|
4
4
|
```html
|
|
5
5
|
<sd-navigation-item vertical>
|
|
6
|
-
Vertical
|
|
6
|
+
Vertical navigation with description
|
|
7
7
|
<p slot="description" class="sd-paragraph">
|
|
8
8
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nibh justo ullam.
|
|
9
9
|
</p>
|
|
@@ -2,5 +2,5 @@ Use the `divider` attribute to add a divider above the navigation item.
|
|
|
2
2
|
**Hint:** Only works with `vertical` attribute.
|
|
3
3
|
|
|
4
4
|
```html
|
|
5
|
-
<sd-navigation-item vertical divider>Vertical
|
|
5
|
+
<sd-navigation-item vertical divider>Vertical navigation with divider</sd-navigation-item>
|
|
6
6
|
```
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Use the `vertical` attribute to set the axis of the navigation-item.
|
|
2
2
|
|
|
3
3
|
```html
|
|
4
|
-
<sd-navigation-item>Horizontal
|
|
5
|
-
<sd-navigation-item vertical>Vertical
|
|
4
|
+
<sd-navigation-item>Horizontal navigation</sd-navigation-item>
|
|
5
|
+
<sd-navigation-item vertical>Vertical navigation</sd-navigation-item>
|
|
6
6
|
```
|
|
@@ -6,9 +6,9 @@ Use the `separated` attribute, to have more that only one action. It is possible
|
|
|
6
6
|
|
|
7
7
|
```html
|
|
8
8
|
<sd-navigation-item href="https://www.union-investment.de/" target="_blank" vertical separated>
|
|
9
|
-
<div>Vertical
|
|
10
|
-
<sd-navigation-item vertical indented slot="children"> Sub
|
|
11
|
-
<sd-navigation-item vertical indented slot="children"> Sub
|
|
12
|
-
<sd-navigation-item vertical indented slot="children"> Sub
|
|
9
|
+
<div>Vertical navigation separated</div>
|
|
10
|
+
<sd-navigation-item vertical indented slot="children"> Sub navigation 1 </sd-navigation-item>
|
|
11
|
+
<sd-navigation-item vertical indented slot="children"> Sub navigation 2 </sd-navigation-item>
|
|
12
|
+
<sd-navigation-item vertical indented slot="children"> Sub navigation 3 </sd-navigation-item>
|
|
13
13
|
</sd-navigation-item>
|
|
14
14
|
```
|
|
@@ -50,8 +50,8 @@ Use the components tool by passing the args `component` and `example` for any of
|
|
|
50
50
|
- part.icon: The container that wraps the optional icon.
|
|
51
51
|
- part.content: The container that wraps the notifications's main content and the close button.
|
|
52
52
|
- part.message: The container that wraps the notifications's main content.
|
|
53
|
-
- part.duration-
|
|
54
|
-
- part.duration-
|
|
53
|
+
- part.duration-indicator__elapsed: The current duration indicator.
|
|
54
|
+
- part.duration-indicator__total: The total duration indicator.
|
|
55
55
|
- part.close-button: The close button, an `<sd-icon-button>`.
|
|
56
56
|
|
|
57
57
|
## Guidelines
|
|
@@ -24,6 +24,7 @@ Use the `toastStack` attribute to change the position of the toast notifications
|
|
|
24
24
|
|
|
25
25
|
- It requires the use of the `toast` method to work. Click on the `Show code` button to see the JavaScript code responsible for generating the toast notification.
|
|
26
26
|
- Click on one of the buttons below to see the corresponding toast notification.
|
|
27
|
+
|
|
27
28
|
<h4 class="sd-headline sd-headline--size-lg">Toast placement top right</h4>
|
|
28
29
|
Use the `data-notification-position` attribute with the value `top-right` to align the toast to the top right.
|
|
29
30
|
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
- prop.arrow: boolean, default=false — Attaches an arrow to the popup. The arrow's size and color can be customized using the `--arrow-size` and
|
|
20
20
|
`--arrow-color` custom properties. For additional customizations, you can also target the arrow using
|
|
21
21
|
`::part(arrow)` in your stylesheet.
|
|
22
|
-
- prop.arrowPlacement [attr: arrow-placement]:
|
|
22
|
+
- prop.arrowPlacement [attr: arrow-placement]: 'start'|'end'|'center'|'anchor', default='anchor' — The placement of the arrow. The default is `anchor`, which will align the arrow as close to the center of the
|
|
23
23
|
anchor as possible, considering available space and `arrow-padding`. A value of `start`, `end`, or `center` will
|
|
24
24
|
align the arrow to the start, end, or center of the popover instead.
|
|
25
25
|
- prop.arrowPadding [attr: arrow-padding]: number, default=10 — The amount of padding between the arrow and the edges of the popup. If the popup has a border-radius, for example,
|
|
@@ -45,7 +45,7 @@ Use the components tool by passing the args `component` and `example` for any of
|
|
|
45
45
|
- part.summary-icon: The container that wraps the expand/collapse icons.
|
|
46
46
|
- part.summary-border: The container that wraps the currently active accordions border.
|
|
47
47
|
- part.content: The container that wraps the accordion content slot.
|
|
48
|
-
- part.
|
|
48
|
+
- part.content__slot: The accordion content slot.
|
|
49
49
|
|
|
50
50
|
## Guidelines
|
|
51
51
|
|
|
@@ -10,7 +10,6 @@ args: overrideArgs([
|
|
|
10
10
|
type: 'slot',
|
|
11
11
|
name: 'summary',
|
|
12
12
|
value: `<div slot="summary" class="flex flex-col sm:gap-4"> <p class="text-base font-normal leading-normal sm:text-4xl sm:leading-tight">Lorem Ipsum</p>
|
|
13
|
-
|
|
14
13
|
<div class="text-base font-normal leading-normal sm:text-xl">Con sectetur adipiscing elit</div></div>`
|
|
15
14
|
},
|
|
16
15
|
{
|
|
@@ -56,7 +56,7 @@ Use the components tool by passing the args `component` and `example` for any of
|
|
|
56
56
|
- part.form-control-label: The label's wrapper.
|
|
57
57
|
- part.form-control-input: The input's wrapper.
|
|
58
58
|
- part.button-group: The button group that wraps radio buttons.
|
|
59
|
-
- part.button-
|
|
59
|
+
- part.button-group__base: The button group's `base` part.
|
|
60
60
|
|
|
61
61
|
## Guidelines
|
|
62
62
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Use the `required` attribute to mark the element as required. This can be used for form validation purposes.
|
|
2
|
-
**Accessibility Hint:** To ensure screen-reader compatibility, consider including a statement such as "Fields marked with an asterisk (
|
|
2
|
+
**Accessibility Hint:** To ensure screen-reader compatibility, consider including a statement such as "Fields marked with an asterisk (*) are required" at the start of the form.
|
|
3
3
|
|
|
4
4
|
```html
|
|
5
5
|
<form id="required-form" class="flex flex-col gap-8">
|
|
@@ -24,7 +24,7 @@ Use the components tool by passing the args `component` and `example` for any of
|
|
|
24
24
|
- prop.disabled: boolean, default=false — Disables the range.
|
|
25
25
|
- prop.visuallyDisabled [attr: visually-disabled]: boolean, default=false — Disables the range visually.
|
|
26
26
|
- prop.noTrackBar [attr: no-track-bar]: boolean, default=false — Disables the active track bar.
|
|
27
|
-
- prop.tooltip:
|
|
27
|
+
- prop.tooltip: 'on-interaction'|'hidden'|'always-visible', default='on-interaction' — Defines the thumbs tooltip behaviour.
|
|
28
28
|
- prop.defaultValue: string, default='' — The default value of the form control. Primarily used for resetting the form control.
|
|
29
29
|
- prop.value: — The current values of the input (in ascending order) as a string of space separated values
|
|
30
30
|
- prop.valueAsArray: — Gets or sets the current values of the range as an array of numbers
|
|
@@ -93,9 +93,9 @@ Use the components tool by passing the args `component` and `example` for any of
|
|
|
93
93
|
- part.listbox: The listbox container where options are slotted.
|
|
94
94
|
- part.tags: The container that houses option tags when `multiselect` is used.
|
|
95
95
|
- part.tag: The individual tags that represent each multiselect option.
|
|
96
|
-
- part.
|
|
97
|
-
- part.
|
|
98
|
-
- part.
|
|
96
|
+
- part.tag__base: The tag's base part.
|
|
97
|
+
- part.tag__content: The tag's content part.
|
|
98
|
+
- part.tag__removable-indicator: The tag's remove button.
|
|
99
99
|
- part.clear-button: The clear button.
|
|
100
100
|
- part.expand-icon: The container that wraps the expand icon.
|
|
101
101
|
|
|
@@ -13,7 +13,7 @@ Use the `size` attribute to set the size of a step:
|
|
|
13
13
|
<span slot="label">Small</span>
|
|
14
14
|
</sd-step>
|
|
15
15
|
<sd-step size="xs" orientation="vertical" class="pl-16">
|
|
16
|
-
<span slot="label">Extra
|
|
16
|
+
<span slot="label">Extra small</span>
|
|
17
17
|
</sd-step>
|
|
18
18
|
</div>
|
|
19
19
|
```
|
|
@@ -38,7 +38,7 @@ Use the components tool by passing the args `component` and `example` for any of
|
|
|
38
38
|
- part.body: The tab group's body where tab panels are slotted in.
|
|
39
39
|
- part.scroll-button--start: The starting scroll button.
|
|
40
40
|
- part.scroll-button--end: The ending scroll button.
|
|
41
|
-
- part.scroll-
|
|
41
|
+
- part.scroll-button__base: The scroll button's exported `base` part.
|
|
42
42
|
|
|
43
43
|
## Guidelines
|
|
44
44
|
|
|
@@ -23,7 +23,7 @@ Use the components tool by passing the args `component` and `example` for any of
|
|
|
23
23
|
- prop.removable: boolean, default=false — Displays the tag with a removability indicator.
|
|
24
24
|
- prop.disabled: boolean, default=false — Displays the tag in a disabled state.
|
|
25
25
|
- prop.href: string, default='' — When set, the underlying button will be rendered as an `<a>` with this `href` instead of a `<button>`.
|
|
26
|
-
- prop.target: '
|
|
26
|
+
- prop.target: '_blank'|'_parent'|'_self'|'_top' — Tells the browser where to open the link. Only used when `href` is present.
|
|
27
27
|
- prop.download: string|undefined — Tells the browser to download the linked file as this filename. Only used when `href` is present.
|
|
28
28
|
- prop.dir: 'ltr'|'rtl'|'auto' — The element's directionality.
|
|
29
29
|
- prop.lang: string — The element's language.
|
|
@@ -19,7 +19,7 @@ Use the components tool by passing the args `component` and `example` for any of
|
|
|
19
19
|
|
|
20
20
|
### Key Properties
|
|
21
21
|
|
|
22
|
-
- prop.variant:
|
|
22
|
+
- prop.variant: 'white'|'white border-neutral-400'|'neutral-100'|'primary'|'primary-100', default='white' — Variant of the teaser
|
|
23
23
|
- prop.breakpoint: number, default=448 — Breakpoint where the teaser switches from `vertical` to `horizontal`. `0` is always `horizontal`, `9999` is always `vertical`.
|
|
24
24
|
- prop.inset: boolean, default=false — The teaser's inner padding. This is always set in `white border-neutral-400`.
|
|
25
25
|
- prop.reversedLayout [attr: reversed-layout]: boolean, default=false — Reverses the layout in horizontal variant
|
|
@@ -15,7 +15,7 @@ Use the components tool by passing the args `component` and `example` for any of
|
|
|
15
15
|
|
|
16
16
|
### Key Properties
|
|
17
17
|
|
|
18
|
-
- prop.variant:
|
|
18
|
+
- prop.variant: 'white'|'neutral-100'|'primary'|'primary-100'|'gradient-light'|'gradient-dark', default='white' — Variant of the teaser
|
|
19
19
|
- prop.open: boolean, default=false — Controls whether the expandable content is visible
|
|
20
20
|
- prop.dir: 'ltr'|'rtl'|'auto' — The element's directionality.
|
|
21
21
|
- prop.lang: string — The element's language.
|
package/metadata/packages/components/sd-teaser-media/stories/default-media-and-headline-slot.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
- Use the `default` slot to display main information and/or action elements below the headline.
|
|
2
2
|
- Use the `media` slot to add an image to the teaser.
|
|
3
|
-
- Use the `headline` slot to display titles. It should always contain a <h
|
|
3
|
+
- Use the `headline` slot to display titles. It should always contain a <h*> element.
|
|
4
4
|
**Accessibility Hint:**
|
|
5
5
|
- Please make sure to use semantically correct headline tags for the headline slot to provide accessible content.
|
|
6
6
|
- The heading in a teaser should be the first item in the DOM. A heading introduces a new thematic region and separates the following content from the previous region.
|
|
@@ -43,12 +43,12 @@ Use the components tool by passing the args `component` and `example` for any of
|
|
|
43
43
|
- prop.floatingLabel [attr: floating-label]: boolean, default=false — Enables the floating label behavior for the input.
|
|
44
44
|
- prop.minlength: number — The minimum length of input that will be considered valid.
|
|
45
45
|
- prop.maxlength: number — The maximum length of input that will be considered valid.
|
|
46
|
-
- prop.autocapitalize:
|
|
46
|
+
- prop.autocapitalize: 'off'|'none'|'on'|'sentences'|'words'|'characters' — Controls whether and how text input is automatically capitalized as it is entered by the user.
|
|
47
47
|
- prop.autocorrect: 'off'|'on' — Indicates whether the browser's autocorrect feature is on or off.
|
|
48
48
|
- prop.autocomplete: string — Specifies what permission the browser has to provide assistance in filling out form field values. Refer to
|
|
49
49
|
[this page on MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) for available values.
|
|
50
50
|
- prop.autofocus: boolean — Indicates that the input should receive focus on page load.
|
|
51
|
-
- prop.enterkeyhint:
|
|
51
|
+
- prop.enterkeyhint: 'enter'|'done'|'go'|'next'|'previous'|'search'|'send' — Used to customize the label or icon of the Enter key on virtual keyboards.
|
|
52
52
|
- prop.styleOnValid [attr: style-on-valid]: boolean, default=false — Shows success styles if the validity of the input is valid.
|
|
53
53
|
- prop.spellcheck: boolean, default=true — Enables spell checking on the textarea.
|
|
54
54
|
- prop.inputmode: 'none'|'text' — Tells the browser what type of data will be entered by the user, allowing it to display the appropriate virtual
|
|
@@ -20,7 +20,7 @@ Use the components tool by passing the args `component` and `example` for any of
|
|
|
20
20
|
|
|
21
21
|
- prop.size: 'lg'|'sm', default='lg' — Sets the size of the default trigger icon.
|
|
22
22
|
- prop.content: string, default='' — The tooltip's content. If you need to display HTML, use the `content` slot instead.
|
|
23
|
-
- prop.placement:
|
|
23
|
+
- prop.placement: 'top'|'top-start'|'top-end'|'bottom'|'bottom-start'|'bottom-end', default='top' — The preferred placement of the tooltip. Note that the actual placement may vary as needed to keep the tooltip
|
|
24
24
|
inside of the viewport.
|
|
25
25
|
- prop.disabled: boolean, default=false — Disables the tooltip so it won't show when triggered.
|
|
26
26
|
- prop.open: boolean, default=false — Indicates whether or not the tooltip is open. You can use this in lieu of the show/hide methods.
|
|
@@ -52,8 +52,8 @@ Use the components tool by passing the args `component` and `example` for any of
|
|
|
52
52
|
### CSS Parts
|
|
53
53
|
|
|
54
54
|
- part.base: The component's base wrapper, an `<sd-popup>` element.
|
|
55
|
-
- part.
|
|
56
|
-
- part.
|
|
55
|
+
- part.base__popup: The popup's exported `popup` part. Use this to target the tooltip's popup container.
|
|
56
|
+
- part.base__arrow: The popup's exported `arrow` part. Use this to target the tooltip's arrow.
|
|
57
57
|
- part.body: The tooltip's body where its content is rendered.
|
|
58
58
|
|
|
59
59
|
## Guidelines
|
|
@@ -4,7 +4,7 @@ In this example we provide a solution to this problem by using a live region to
|
|
|
4
4
|
|
|
5
5
|
```html
|
|
6
6
|
<sd-tooltip size="lg" content="This tooltip is accessible" placement="bottom" trigger="click" class="custom-tooltip">
|
|
7
|
-
<sd-button class="custom-button">Custom
|
|
7
|
+
<sd-button class="custom-button">Custom trigger</sd-button>
|
|
8
8
|
</sd-tooltip>
|
|
9
9
|
<div aria-live="assertive" class="sr-only live-region"></div>
|
|
10
10
|
<script>
|
|
@@ -10,17 +10,17 @@ Use the `placement` attribute to set the placement:
|
|
|
10
10
|
```html
|
|
11
11
|
<div class="grid grid-cols-1 justify-items-center md:grid-cols-3 md:justify-items-start gap-24 p-12">
|
|
12
12
|
<div>
|
|
13
|
-
<sd-tooltip content="Top Start
|
|
13
|
+
<sd-tooltip content="Top Start positioning" placement="top-start" open size="lg" trigger="click focus"></sd-tooltip>
|
|
14
14
|
</div>
|
|
15
15
|
<div>
|
|
16
|
-
<sd-tooltip content="Top
|
|
16
|
+
<sd-tooltip content="Top positioning" placement="top" open size="lg" trigger="click focus"></sd-tooltip>
|
|
17
17
|
</div>
|
|
18
18
|
<div>
|
|
19
|
-
<sd-tooltip content="Top End
|
|
19
|
+
<sd-tooltip content="Top End positioning" placement="top-end" open size="lg" trigger="click focus"></sd-tooltip>
|
|
20
20
|
</div>
|
|
21
21
|
<div>
|
|
22
22
|
<sd-tooltip
|
|
23
|
-
content="Bottom Start
|
|
23
|
+
content="Bottom Start positioning"
|
|
24
24
|
placement="bottom-start"
|
|
25
25
|
open
|
|
26
26
|
size="lg"
|
|
@@ -28,11 +28,11 @@ Use the `placement` attribute to set the placement:
|
|
|
28
28
|
></sd-tooltip>
|
|
29
29
|
</div>
|
|
30
30
|
<div>
|
|
31
|
-
<sd-tooltip content="Bottom
|
|
31
|
+
<sd-tooltip content="Bottom positioning" placement="bottom" open size="lg" trigger="click focus"></sd-tooltip>
|
|
32
32
|
</div>
|
|
33
33
|
<div>
|
|
34
34
|
<sd-tooltip
|
|
35
|
-
content="Bottom End
|
|
35
|
+
content="Bottom End positioning"
|
|
36
36
|
placement="bottom-end"
|
|
37
37
|
open
|
|
38
38
|
size="lg"
|
|
@@ -39,14 +39,13 @@ version: 1.0.0
|
|
|
39
39
|
</style>
|
|
40
40
|
<div class="brandshape-wrapper">
|
|
41
41
|
<sd-brandshape variant="primary|80">
|
|
42
|
-
<h4 class="sd-headline sd-headline--3xl mb-4 text-white">
|
|
43
|
-
|
|
42
|
+
<h4 class="sd-headline sd-headline--3xl mb-4 !text-white">
|
|
43
|
+
Diversification benefits from shifting from USD to euro credits
|
|
44
44
|
</h4>
|
|
45
45
|
<p class="sd-paragraph text-white">
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
are additionally reviewed in a two-stage research process.
|
|
46
|
+
Euro-denominated corporate bonds with good to very good credit ratings offer an attractive risk-return ratio,
|
|
47
|
+
especially in turbulent times. Christian Kopf, Head of Fixed Income and FX at Union Investment, explains what else
|
|
48
|
+
speaks in favour of this fixed-income segment – especially from an international perspective.
|
|
50
49
|
</p>
|
|
51
50
|
<sd-button variant="cta" class="mt-4">Find out more</sd-button>
|
|
52
51
|
</sd-brandshape>
|
|
@@ -189,7 +189,7 @@ version: 1.0.0
|
|
|
189
189
|
<div style="height: 40vh;">
|
|
190
190
|
<div class="flex gap-2">
|
|
191
191
|
<sd-button id="open-dialog">Open Dialog</sd-button>
|
|
192
|
-
<sd-button id="open-timed-dialog">Open
|
|
192
|
+
<sd-button id="open-timed-dialog">Open timed Dialog</sd-button>
|
|
193
193
|
</div>
|
|
194
194
|
|
|
195
195
|
<sd-dialog id="default-dialog">
|
|
@@ -835,18 +835,20 @@ version: 1.0.0
|
|
|
835
835
|
sortData[columnIndex] === 'none' || !header.sortable ? undefined : 'ascending'
|
|
836
836
|
)}
|
|
837
837
|
>
|
|
838
|
-
${
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
838
|
+
${
|
|
839
|
+
header.sortable
|
|
840
|
+
? html` <button
|
|
841
|
+
class="sd-interactive flex items-center gap-1"
|
|
842
|
+
@click="${() => sortTable(columnIndex)}"
|
|
843
|
+
>
|
|
844
|
+
${header.label}<sd-icon
|
|
845
|
+
id="sortIcon-${columnIndex}"
|
|
846
|
+
name=${sortData[columnIndex] === 'none' ? 'system/sort-down' : 'system/sort-down-filled'}
|
|
847
|
+
class="text-[12px]"
|
|
848
|
+
></sd-icon>
|
|
849
|
+
</button>`
|
|
850
|
+
: header.label
|
|
851
|
+
}
|
|
850
852
|
</th>`;
|
|
851
853
|
})}
|
|
852
854
|
</tr>`;
|
|
@@ -331,7 +331,7 @@ Coordinate with the Theme Host team on versioning:
|
|
|
331
331
|
- If you upgrade your components or styles, notify the host so they can upgrade their theme accordingly.
|
|
332
332
|
- This will become a hard requirement in a future release — aligning now avoids breakage later.
|
|
333
333
|
|
|
334
|
-
{
|
|
334
|
+
{/* */}
|
|
335
335
|
|
|
336
336
|
</sd-tab-panel>
|
|
337
337
|
|
package/package.json
CHANGED
|
@@ -6,23 +6,23 @@
|
|
|
6
6
|
"solid-mcp": "./dist/bin/start.js"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@modelcontextprotocol/sdk": "^1.
|
|
10
|
-
"globby": "^16.
|
|
11
|
-
"zod": "^4.3
|
|
9
|
+
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
10
|
+
"globby": "^16.2.1",
|
|
11
|
+
"zod": "^4.4.3"
|
|
12
12
|
},
|
|
13
13
|
"description": "MCP Server for the Solid Design System",
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@types/node": "^
|
|
15
|
+
"@types/node": "^26.1.1",
|
|
16
16
|
"change-case": "^5.4.4",
|
|
17
17
|
"custom-elements-manifest": "^2.1.0",
|
|
18
|
-
"eslint": "^
|
|
19
|
-
"ora": "^9.
|
|
20
|
-
"prettier": "^3.
|
|
21
|
-
"tsx": "^4.
|
|
18
|
+
"eslint": "^10.7.0",
|
|
19
|
+
"ora": "^9.4.1",
|
|
20
|
+
"prettier": "^3.9.5",
|
|
21
|
+
"tsx": "^4.23.1",
|
|
22
22
|
"typescript": "^5.9.3",
|
|
23
|
-
"@solid-design-system/components": "6.
|
|
24
|
-
"@solid-design-system/styles": "6.
|
|
25
|
-
"@solid-design-system/tokens": "6.
|
|
23
|
+
"@solid-design-system/components": "6.29.0",
|
|
24
|
+
"@solid-design-system/styles": "6.29.0",
|
|
25
|
+
"@solid-design-system/tokens": "6.29.0"
|
|
26
26
|
},
|
|
27
27
|
"exports": {
|
|
28
28
|
".": {
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"directory": "packages/mcp"
|
|
60
60
|
},
|
|
61
61
|
"type": "module",
|
|
62
|
-
"version": "6.
|
|
62
|
+
"version": "6.29.0",
|
|
63
63
|
"scripts": {
|
|
64
64
|
"build": "pnpm run build:components && pnpm run build:tokens && pnpm run build:ts && pnpm run build:metadata && cd ../.. && pnpm exec prettier --write --log-level warn packages/mcp/metadata",
|
|
65
65
|
"build:components": "cd ../components && pnpm exec node scripts/make-metadata.js --outdir dist",
|