@solid-design-system/mcp 6.27.1 → 7.0.0-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/metadata/packages/components/sd-datepicker/stories/alignment.md +1 -1
- package/metadata/packages/components/sd-datepicker/stories/disabled-dates.md +1 -1
- package/metadata/packages/components/sd-datepicker/stories/disabled-weekends.md +1 -1
- package/metadata/packages/components/sd-datepicker/stories/disabled.md +1 -1
- package/metadata/packages/components/sd-datepicker/stories/floating-label.md +1 -1
- package/metadata/packages/components/sd-datepicker/stories/help-text.md +7 -3
- package/metadata/packages/components/sd-datepicker/stories/invalid.md +1 -1
- package/metadata/packages/components/sd-datepicker/stories/label.md +3 -3
- package/metadata/packages/components/sd-datepicker/stories/placeholder.md +1 -1
- package/metadata/packages/components/sd-datepicker/stories/range.md +1 -1
- package/metadata/packages/components/sd-datepicker/stories/required.md +1 -1
- package/metadata/packages/components/sd-datepicker/stories/size.md +1 -1
- package/metadata/packages/components/sd-datepicker/stories/valid.md +1 -1
- package/metadata/packages/components/sd-datepicker/stories/visible-month.md +1 -1
- package/metadata/packages/components/sd-datepicker/stories/visually-disabled.md +1 -1
- package/metadata/packages/components/sd-input/stories/clearable.md +1 -1
- package/metadata/packages/components/sd-input/stories/disabled.md +1 -1
- package/metadata/packages/components/sd-input/stories/floating-label.md +1 -1
- package/metadata/packages/components/sd-input/stories/help-text.md +3 -3
- package/metadata/packages/components/sd-input/stories/icon.md +3 -3
- package/metadata/packages/components/sd-input/stories/invalid.md +7 -1
- package/metadata/packages/components/sd-input/stories/label.md +3 -3
- package/metadata/packages/components/sd-input/stories/max-length.md +1 -1
- package/metadata/packages/components/sd-input/stories/max.md +1 -1
- package/metadata/packages/components/sd-input/stories/min-length.md +1 -1
- package/metadata/packages/components/sd-input/stories/min.md +1 -1
- package/metadata/packages/components/sd-input/stories/pattern.md +1 -1
- package/metadata/packages/components/sd-input/stories/placeholder.md +1 -1
- package/metadata/packages/components/sd-input/stories/read-only.md +1 -1
- package/metadata/packages/components/sd-input/stories/required.md +1 -1
- package/metadata/packages/components/sd-input/stories/size.md +4 -4
- package/metadata/packages/components/sd-input/stories/spin-buttons.md +1 -1
- package/metadata/packages/components/sd-input/stories/toggle-password.md +1 -1
- package/metadata/packages/components/sd-input/stories/type.md +33 -4
- package/metadata/packages/components/sd-input/stories/valid.md +1 -1
- package/metadata/packages/components/sd-input/stories/value.md +1 -1
- package/metadata/packages/components/sd-input/stories/visually-disabled.md +1 -1
- package/metadata/packages/components/sd-select/stories/clearable.md +1 -1
- package/metadata/packages/components/sd-select/stories/disabled.md +1 -1
- package/metadata/packages/components/sd-select/stories/floating-label.md +1 -1
- package/metadata/packages/components/sd-select/stories/help-text.md +10 -3
- package/metadata/packages/components/sd-select/stories/invalid.md +1 -1
- package/metadata/packages/components/sd-select/stories/label.md +9 -3
- package/metadata/packages/components/sd-select/stories/max-options-visible.md +1 -1
- package/metadata/packages/components/sd-select/stories/multiple.md +1 -1
- package/metadata/packages/components/sd-select/stories/placeholder.md +1 -1
- package/metadata/packages/components/sd-select/stories/placement.md +9 -3
- package/metadata/packages/components/sd-select/stories/required.md +1 -1
- package/metadata/packages/components/sd-select/stories/size.md +25 -4
- package/metadata/packages/components/sd-select/stories/use-tags.md +1 -1
- package/metadata/packages/components/sd-select/stories/valid.md +1 -1
- package/metadata/packages/components/sd-select/stories/visually-disabled.md +1 -1
- package/metadata/packages/components/sd-teaser/stories/breakpoint.md +2 -2
- package/metadata/packages/components/sd-teaser/stories/default-and-headline-slot.md +1 -1
- package/metadata/packages/components/sd-teaser/stories/distribution.md +1 -1
- package/metadata/packages/components/sd-teaser/stories/inset.md +1 -1
- package/metadata/packages/components/sd-teaser/stories/media-slot.md +1 -1
- package/metadata/packages/components/sd-teaser/stories/meta-slot.md +1 -1
- package/metadata/packages/components/sd-teaser/stories/reverse.md +1 -1
- package/metadata/packages/components/sd-teaser/stories/variant.md +9 -5
- package/metadata/packages/components/sd-textarea/stories/disabled.md +1 -1
- package/metadata/packages/components/sd-textarea/stories/floating-label.md +9 -2
- package/metadata/packages/components/sd-textarea/stories/help-text.md +9 -3
- package/metadata/packages/components/sd-textarea/stories/invalid.md +1 -1
- package/metadata/packages/components/sd-textarea/stories/label.md +9 -3
- package/metadata/packages/components/sd-textarea/stories/max-length.md +1 -1
- package/metadata/packages/components/sd-textarea/stories/min-length.md +1 -1
- package/metadata/packages/components/sd-textarea/stories/placeholder.md +1 -1
- package/metadata/packages/components/sd-textarea/stories/readonly.md +1 -1
- package/metadata/packages/components/sd-textarea/stories/required.md +1 -1
- package/metadata/packages/components/sd-textarea/stories/rows.md +22 -4
- package/metadata/packages/components/sd-textarea/stories/size.md +25 -4
- package/metadata/packages/components/sd-textarea/stories/valid.md +1 -1
- package/metadata/packages/components/sd-textarea/stories/visually-disabled.md +1 -1
- package/metadata/packages/icons/default/content.json +41 -11
- package/metadata/packages/icons/default/system.json +22 -22
- package/metadata/packages/templates/bottom-navigation.md +2 -4
- package/metadata/packages/templates/combobox.md +4 -4
- package/metadata/packages/templates/datepicker.md +3 -3
- package/metadata/packages/templates/input.md +1 -1
- package/metadata/packages/templates/select.md +18 -4
- package/metadata/packages/templates/teaser.md +1 -1
- package/metadata/packages/templates/tooltip.md +6 -6
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 7.0.0-next.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Fix versioned icons to work with next versions. _[`#3186`](https://github.com/solid-design-system/solid/pull/3186) [`30af3ad`](https://github.com/solid-design-system/solid/commit/30af3ad6d2e8daebeaa9d6a863fdd5794a015da9) [@auroraVasconcelos](https://github.com/auroraVasconcelos)_
|
|
8
|
+
|
|
9
|
+
## 7.0.0-next.0
|
|
10
|
+
|
|
11
|
+
## 6.28.0
|
|
12
|
+
|
|
13
|
+
## 6.27.2
|
|
14
|
+
|
|
3
15
|
## 6.27.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -4,7 +4,7 @@ Use the `alignment` attribute to define where the flyout should appear:
|
|
|
4
4
|
- `right`
|
|
5
5
|
|
|
6
6
|
```html
|
|
7
|
-
<div class="w-[370px] h-[500px]">
|
|
7
|
+
<div class="max-w-[370px] h-[500px]">
|
|
8
8
|
<sd-datepicker label="Label" size="lg" alignment="right" value="2025.11.10"></sd-datepicker>
|
|
9
9
|
</div>
|
|
10
10
|
```
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Use the `disable-dates` attribute to manually disable days in your datepicker. If this attribute is active the range selection will not be possible.
|
|
2
2
|
|
|
3
3
|
```html
|
|
4
|
-
<div class="w-[370px] h-[500px]">
|
|
4
|
+
<div class="max-w-[370px] h-[500px]">
|
|
5
5
|
<sd-datepicker
|
|
6
6
|
label="Label"
|
|
7
7
|
value="2025-11-10"
|
|
@@ -2,7 +2,7 @@ Use the `disabled` attribute to disable the datepicker.
|
|
|
2
2
|
**Hint**: Clicks will be suppressed until the disabled state is removed.
|
|
3
3
|
|
|
4
4
|
```html
|
|
5
|
-
<div class="w-[370px] h-[500px]">
|
|
5
|
+
<div class="max-w-[370px] h-[500px]">
|
|
6
6
|
<sd-datepicker label="Label" placeholder="Disabled" disabled></sd-datepicker>
|
|
7
7
|
</div>
|
|
8
8
|
```
|
|
@@ -2,7 +2,7 @@ Use the `floating-label` attribute to enable a floating label on the datepicker.
|
|
|
2
2
|
**Note:** Floating labels only work with the `label` attribute. The `label` slot is not supported. Only the `lg` and `md` sizes are available.
|
|
3
3
|
|
|
4
4
|
```html
|
|
5
|
-
<div class="flex gap-12 h-[500px] w-[370px]">
|
|
5
|
+
<div class="flex gap-12 h-[500px] max-w-[370px]">
|
|
6
6
|
<sd-datepicker label="Floating Label" floating-label></sd-datepicker>
|
|
7
7
|
</div>
|
|
8
8
|
```
|
|
@@ -2,9 +2,13 @@ Use the `help-text` attribute to add a descriptive “help text”.
|
|
|
2
2
|
For help texts that contain HTML, use the `help-text` slot instead.
|
|
3
3
|
|
|
4
4
|
```html
|
|
5
|
-
<div class="flex
|
|
6
|
-
<sd-datepicker
|
|
7
|
-
|
|
5
|
+
<div class="flex flex-wrap md:flex-nowrap gap-12 h-[500px]">
|
|
6
|
+
<sd-datepicker
|
|
7
|
+
label="Label"
|
|
8
|
+
help-text="Help text attribute"
|
|
9
|
+
class="min-w-[200px] md:min-w-0 max-w-[370px]"
|
|
10
|
+
></sd-datepicker>
|
|
11
|
+
<sd-datepicker label="Label" class="min-w-[200px] md:min-w-0 max-w-[370px]">
|
|
8
12
|
<div slot="help-text">Help text slot</div>
|
|
9
13
|
</sd-datepicker>
|
|
10
14
|
</div>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
The component gets `invalid` state when the datepicker is not valid.
|
|
2
2
|
|
|
3
3
|
```html
|
|
4
|
-
<div class="w-[370px] h-[500px]">
|
|
4
|
+
<div class="max-w-[370px] h-[500px]">
|
|
5
5
|
<sd-datepicker id="invalid-example" label="Label" style-on-valid="" required></sd-datepicker>
|
|
6
6
|
</div>
|
|
7
7
|
<script type="module">
|
|
@@ -2,9 +2,9 @@ Use the `label` attribute to give the datepicker an accessible label.
|
|
|
2
2
|
For labels that contain HTML, use the `label` slot instead.
|
|
3
3
|
|
|
4
4
|
```html
|
|
5
|
-
<div class="flex gap-12 h-[500px]">
|
|
6
|
-
<sd-datepicker label="Label attribute"></sd-datepicker>
|
|
7
|
-
<sd-datepicker>
|
|
5
|
+
<div class="flex flex-wrap md:flex-nowrap gap-12 h-[500px]">
|
|
6
|
+
<sd-datepicker label="Label attribute" class="min-w-[200px] md:min-w-0 max-w-[370px]"></sd-datepicker>
|
|
7
|
+
<sd-datepicker class="min-w-[200px] md:min-w-0 max-w-[370px]">
|
|
8
8
|
<div slot="label">Label slot</div>
|
|
9
9
|
</sd-datepicker>
|
|
10
10
|
</div>
|
|
@@ -6,7 +6,7 @@ Use the `size` attribute to change the size:
|
|
|
6
6
|
**Note:** On the `floating-label` variant “sm” size is not available.
|
|
7
7
|
|
|
8
8
|
```html
|
|
9
|
-
<div class="flex flex-col gap-4 w-[370px] h-[500px]">
|
|
9
|
+
<div class="flex flex-col gap-4 max-w-[370px] h-[500px]">
|
|
10
10
|
<sd-datepicker size="lg" placeholder="Large" label="Label"></sd-datepicker>
|
|
11
11
|
<sd-datepicker size="md" placeholder="Medium" label="Label"></sd-datepicker>
|
|
12
12
|
<sd-datepicker size="sm" placeholder="Small" label="Label"></sd-datepicker>
|
|
@@ -2,7 +2,7 @@ The component gets `valid` state when the datepicker is valid.
|
|
|
2
2
|
Use the `style-on-valid` attribute to automatically indicate and show a valid state.
|
|
3
3
|
|
|
4
4
|
```html
|
|
5
|
-
<div class="w-[370px] h-[500px]">
|
|
5
|
+
<div class="max-w-[370px] h-[500px]">
|
|
6
6
|
<sd-datepicker id="valid-example" label="Label" value="2025.11.10" style-on-valid=""></sd-datepicker>
|
|
7
7
|
</div>
|
|
8
8
|
<script type="module">
|
|
@@ -3,7 +3,7 @@ Use the `visually-disabled` attribute to style the component as if it was disa
|
|
|
3
3
|
**Accessibility Hint:** Disabling elements is not recommended for accessibility reasons.
|
|
4
4
|
|
|
5
5
|
```html
|
|
6
|
-
<div class="w-[370px] h-[500px]">
|
|
6
|
+
<div class="max-w-[370px] h-[500px]">
|
|
7
7
|
<sd-tooltip content="Visually Disabled" trigger="hover focus" size="sm" placement="top">
|
|
8
8
|
<sd-datepicker label="Label" placeholder="Visually Disabled" visually-disabled></sd-datepicker>
|
|
9
9
|
</sd-tooltip>
|
|
@@ -2,7 +2,7 @@ Use the `floating-label` attribute to enable a floating label on the input.
|
|
|
2
2
|
**Note:** Floating labels only work with the `label` attribute. The `label` slot is not supported. Only the `lg` and `md` sizes are available.
|
|
3
3
|
|
|
4
4
|
```html
|
|
5
|
-
<div class="w-[
|
|
5
|
+
<div class="max-w-[400px]">
|
|
6
6
|
<sd-input label="Floating Label" floating-label></sd-input>
|
|
7
7
|
</div>
|
|
8
8
|
```
|
|
@@ -2,9 +2,9 @@ Use the `help-text` attribute to add a descriptive “help text”.
|
|
|
2
2
|
For help texts that contain HTML, use the `help-text` slot instead.
|
|
3
3
|
|
|
4
4
|
```html
|
|
5
|
-
<div class="flex flex-
|
|
6
|
-
<sd-input label="Label" help-text="Help text attribute"></sd-input>
|
|
7
|
-
<sd-input label="Label">
|
|
5
|
+
<div class="flex flex-wrap md:flex-nowrap gap-12">
|
|
6
|
+
<sd-input label="Label" help-text="Help text attribute" class="min-w-[200px] md:min-w-0 max-w-[400px]"></sd-input>
|
|
7
|
+
<sd-input label="Label" class="min-w-[200px] md:min-w-0 max-w-[400px]">
|
|
8
8
|
<div slot="help-text" class="text-lg">Help text slot</div>
|
|
9
9
|
</sd-input>
|
|
10
10
|
</div>
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
Use the `left` or `right` slot to add system icons.
|
|
2
2
|
|
|
3
3
|
```html
|
|
4
|
-
<div class="flex flex-
|
|
5
|
-
<sd-input label="Label" spellcheck>
|
|
4
|
+
<div class="flex flex-wrap md:flex-nowrap gap-12">
|
|
5
|
+
<sd-input label="Label" spellcheck class="min-w-[200px] md:min-w-0 max-w-[400px]">
|
|
6
6
|
<sd-icon label="landscape" name="system/image" slot="left"></sd-icon>
|
|
7
7
|
</sd-input>
|
|
8
8
|
|
|
9
|
-
<sd-input label="Label" spellcheck>
|
|
9
|
+
<sd-input label="Label" spellcheck class="min-w-[200px] md:min-w-0 max-w-[400px]">
|
|
10
10
|
<sd-icon label="landscape" name="system/image" slot="right"></sd-icon>
|
|
11
11
|
</sd-input>
|
|
12
12
|
</div>
|
|
@@ -2,7 +2,13 @@ The component gets `invalid` state when the form is not valid.
|
|
|
2
2
|
|
|
3
3
|
```html
|
|
4
4
|
<form id="invalid-form">
|
|
5
|
-
<sd-input
|
|
5
|
+
<sd-input
|
|
6
|
+
id="invalid-input"
|
|
7
|
+
class="max-w-[400px]"
|
|
8
|
+
label="Label"
|
|
9
|
+
style-on-valid
|
|
10
|
+
placeholder="Placeholder text"
|
|
11
|
+
></sd-input>
|
|
6
12
|
</form>
|
|
7
13
|
<script type="module">
|
|
8
14
|
await Promise.all([customElements.whenDefined('sd-input')]).then(() => {
|
|
@@ -2,9 +2,9 @@ Use the `label` attribute to give the input an accessible label.
|
|
|
2
2
|
For labels that contain HTML, use the `label` slot instead.
|
|
3
3
|
|
|
4
4
|
```html
|
|
5
|
-
<div class="flex flex-
|
|
6
|
-
<sd-input label="Label attribute" spellcheck></sd-input>
|
|
7
|
-
<sd-input spellcheck>
|
|
5
|
+
<div class="flex flex-wrap md:flex-nowrap gap-12 items-baseline">
|
|
6
|
+
<sd-input label="Label attribute" spellcheck class="min-w-[200px] md:min-w-0 max-w-[400px]"></sd-input>
|
|
7
|
+
<sd-input spellcheck class="min-w-[200px] md:min-w-0 max-w-[400px]">
|
|
8
8
|
<div slot="label" class="text-lg">Label slot</div>
|
|
9
9
|
</sd-input>
|
|
10
10
|
</div>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Use the `maxlength` attribute to set the maximum length of the input to be valid.
|
|
2
2
|
|
|
3
3
|
```html
|
|
4
|
-
<div class="w-[
|
|
4
|
+
<div class="max-w-[400px]">
|
|
5
5
|
<sd-input label="Maxlength" maxlength="25" help-text="25 is the maximum allowed characters" required></sd-input>
|
|
6
6
|
</div>
|
|
7
7
|
```
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Use the `max` attribute to set the maximum number value of the input to be valid.
|
|
2
2
|
|
|
3
3
|
```html
|
|
4
|
-
<div class="w-[
|
|
4
|
+
<div class="max-w-[400px]">
|
|
5
5
|
<sd-input label="Max" type="number" max="5000" help-text="Maximum value is 5000" required></sd-input>
|
|
6
6
|
</div>
|
|
7
7
|
```
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Use the `minlength` attribute to set the minimum length of the input to be valid.
|
|
2
2
|
|
|
3
3
|
```html
|
|
4
|
-
<div class="w-[
|
|
4
|
+
<div class="max-w-[400px]">
|
|
5
5
|
<sd-input label="Minlength" minlength="5" help-text="5 is the minimum allowed characters" required></sd-input>
|
|
6
6
|
</div>
|
|
7
7
|
```
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Use the `min` attribute to set the minimum number value of the input to be valid.
|
|
2
2
|
|
|
3
3
|
```html
|
|
4
|
-
<div class="w-[
|
|
4
|
+
<div class="max-w-[400px]">
|
|
5
5
|
<sd-input label="Min" type="number" min="1000" help-text="Minimum value is 1000" required></sd-input>
|
|
6
6
|
</div>
|
|
7
7
|
```
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Use the `pattern` attribute to use a regular expression to validate the input.
|
|
2
2
|
|
|
3
3
|
```html
|
|
4
|
-
<div class="w-[
|
|
4
|
+
<div class="max-w-[400px]">
|
|
5
5
|
<sd-input label="Pattern" pattern="[A-Za-z]{3,}" help-text="Required pattern is [A-Za-z]{3,}" required></sd-input>
|
|
6
6
|
</div>
|
|
7
7
|
```
|
|
@@ -2,7 +2,7 @@ Use the `read-only` attribute to render an input as read only.
|
|
|
2
2
|
Interaction is enabled, but the textarea cannot be edited. Events will be fired.
|
|
3
3
|
|
|
4
4
|
```html
|
|
5
|
-
<div class="w-[
|
|
5
|
+
<div class="max-w-[400px]">
|
|
6
6
|
<sd-input label="Label" value="Read only example" readonly></sd-input>
|
|
7
7
|
</div>
|
|
8
8
|
```
|
|
@@ -6,9 +6,9 @@ Use the `size` attribute to change the size:
|
|
|
6
6
|
**Note:** On the `floating-label` variant “sm” size is not available.
|
|
7
7
|
|
|
8
8
|
```html
|
|
9
|
-
<div class="
|
|
10
|
-
<sd-input size="lg" label="Label" placeholder="Large"></sd-input>
|
|
11
|
-
<sd-input size="md" label="Label" placeholder="Medium"></sd-input>
|
|
12
|
-
<sd-input size="sm" label="Label" placeholder="Small"></sd-input>
|
|
9
|
+
<div class="flex flex-wrap md:flex-nowrap gap-12">
|
|
10
|
+
<sd-input size="lg" label="Label" placeholder="Large" class="min-w-[200px] md:min-w-0 max-w-[400px]"></sd-input>
|
|
11
|
+
<sd-input size="md" label="Label" placeholder="Medium" class="min-w-[200px] md:min-w-0 max-w-[400px]"></sd-input>
|
|
12
|
+
<sd-input size="sm" label="Label" placeholder="Small" class="min-w-[200px] md:min-w-0 max-w-[400px]"></sd-input>
|
|
13
13
|
</div>
|
|
14
14
|
```
|
|
@@ -2,7 +2,7 @@ Use the `password-toggle` attribute to add a toggle button that will show the pa
|
|
|
2
2
|
**Hint:** Only works with `type=password`.
|
|
3
3
|
|
|
4
4
|
```html
|
|
5
|
-
<div class="w-[
|
|
5
|
+
<div class="max-w-[400px]">
|
|
6
6
|
<sd-input type="password" label="Toggle password" password-toggle spellcheck></sd-input>
|
|
7
7
|
</div>
|
|
8
8
|
```
|
|
@@ -1,10 +1,24 @@
|
|
|
1
1
|
Use the `type` attribute to control the type of input the browser renders.
|
|
2
2
|
|
|
3
3
|
```html
|
|
4
|
-
<div class="grid grid-cols-2 gap-12 content-end">
|
|
5
|
-
<sd-input
|
|
4
|
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-12 content-end">
|
|
5
|
+
<sd-input
|
|
6
|
+
type="text"
|
|
7
|
+
placeholder="Lorem ipsum"
|
|
8
|
+
label="Text (default)"
|
|
9
|
+
help-text="Default type"
|
|
10
|
+
spellcheck
|
|
11
|
+
class="max-w-[400px]"
|
|
12
|
+
></sd-input>
|
|
6
13
|
|
|
7
|
-
<sd-input
|
|
14
|
+
<sd-input
|
|
15
|
+
type="search"
|
|
16
|
+
placeholder="Search term"
|
|
17
|
+
label="Search"
|
|
18
|
+
help-text="Use search format"
|
|
19
|
+
spellcheck
|
|
20
|
+
class="max-w-[400px]"
|
|
21
|
+
></sd-input>
|
|
8
22
|
|
|
9
23
|
<sd-input
|
|
10
24
|
type="date"
|
|
@@ -12,6 +26,7 @@ Use the `type` attribute to control the type of input the browser renders.
|
|
|
12
26
|
value="2025-03-01"
|
|
13
27
|
help-text="Value is restricted to date format"
|
|
14
28
|
spellcheck
|
|
29
|
+
class="max-w-[400px]"
|
|
15
30
|
></sd-input>
|
|
16
31
|
|
|
17
32
|
<sd-input
|
|
@@ -20,9 +35,17 @@ Use the `type` attribute to control the type of input the browser renders.
|
|
|
20
35
|
value="2025-03-01T10:30"
|
|
21
36
|
help-text="Value is restricted to datetime format"
|
|
22
37
|
spellcheck
|
|
38
|
+
class="max-w-[400px]"
|
|
23
39
|
></sd-input>
|
|
24
40
|
|
|
25
|
-
<sd-input
|
|
41
|
+
<sd-input
|
|
42
|
+
type="time"
|
|
43
|
+
label="Time"
|
|
44
|
+
value="10:30"
|
|
45
|
+
help-text="Value is restricted to time format"
|
|
46
|
+
spellcheck
|
|
47
|
+
class="max-w-[400px]"
|
|
48
|
+
></sd-input>
|
|
26
49
|
|
|
27
50
|
<sd-input
|
|
28
51
|
type="number"
|
|
@@ -31,6 +54,7 @@ Use the `type` attribute to control the type of input the browser renders.
|
|
|
31
54
|
help-text="Value is restricted to numbers"
|
|
32
55
|
spin-buttons
|
|
33
56
|
spellcheck
|
|
57
|
+
class="max-w-[400px]"
|
|
34
58
|
></sd-input>
|
|
35
59
|
|
|
36
60
|
<sd-input
|
|
@@ -39,6 +63,7 @@ Use the `type` attribute to control the type of input the browser renders.
|
|
|
39
63
|
label="Email"
|
|
40
64
|
help-text="Validate with email address format"
|
|
41
65
|
spellcheck
|
|
66
|
+
class="max-w-[400px]"
|
|
42
67
|
></sd-input>
|
|
43
68
|
|
|
44
69
|
<sd-input
|
|
@@ -47,6 +72,7 @@ Use the `type` attribute to control the type of input the browser renders.
|
|
|
47
72
|
label="Tel"
|
|
48
73
|
help-text="Shows optimized keyboard on touch devices or similar"
|
|
49
74
|
spellcheck
|
|
75
|
+
class="max-w-[400px]"
|
|
50
76
|
></sd-input>
|
|
51
77
|
|
|
52
78
|
<sd-input
|
|
@@ -56,6 +82,7 @@ Use the `type` attribute to control the type of input the browser renders.
|
|
|
56
82
|
help-text="Use password display format"
|
|
57
83
|
password-toggle
|
|
58
84
|
spellcheck
|
|
85
|
+
class="max-w-[400px]"
|
|
59
86
|
></sd-input>
|
|
60
87
|
|
|
61
88
|
<sd-input
|
|
@@ -66,6 +93,7 @@ Use the `type` attribute to control the type of input the browser renders.
|
|
|
66
93
|
password-toggle
|
|
67
94
|
password-visible
|
|
68
95
|
spellcheck
|
|
96
|
+
class="max-w-[400px]"
|
|
69
97
|
></sd-input>
|
|
70
98
|
|
|
71
99
|
<sd-input
|
|
@@ -75,6 +103,7 @@ Use the `type` attribute to control the type of input the browser renders.
|
|
|
75
103
|
help-text="Validate with url format"
|
|
76
104
|
name="url field"
|
|
77
105
|
spellcheck
|
|
106
|
+
class="max-w-[400px]"
|
|
78
107
|
></sd-input>
|
|
79
108
|
</div>
|
|
80
109
|
```
|
|
@@ -3,7 +3,7 @@ Use the `style-on-valid` attribute to automatically indicate and show a valid st
|
|
|
3
3
|
|
|
4
4
|
```html
|
|
5
5
|
<form id="valid-form">
|
|
6
|
-
<sd-input id="valid-input" class="w-[
|
|
6
|
+
<sd-input id="valid-input" class="max-w-[400px]" label="Label" style-on-valid value="Input text here"></sd-input>
|
|
7
7
|
</form>
|
|
8
8
|
<script type="module">
|
|
9
9
|
await Promise.all([customElements.whenDefined('sd-input')]).then(() => {
|
|
@@ -3,7 +3,7 @@ Use the `visually-disabled` attribute to style the component as if it was disabl
|
|
|
3
3
|
**Accessibility Hint:** Disabling elements is not recommended for accessibility reasons.
|
|
4
4
|
|
|
5
5
|
```html
|
|
6
|
-
<div class="w-[
|
|
6
|
+
<div class="max-w-[400px] h-[200px] pt-12">
|
|
7
7
|
<sd-tooltip content="Visually disabled" trigger="hover focus" size="sm" placement="top">
|
|
8
8
|
<sd-input label="Label" value="Visually disabled" visually-disabled></sd-input>
|
|
9
9
|
</sd-tooltip>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Use the `clearable` attribute to add a clear button that removes the selected value.
|
|
2
2
|
|
|
3
3
|
```html
|
|
4
|
-
<div class="w-[400px] h-[500px]">
|
|
4
|
+
<div class="max-w-[400px] h-[500px]">
|
|
5
5
|
<sd-select size="lg" label="Label" placement="bottom" clearable="" value="option-1">
|
|
6
6
|
<sd-option value="option-1">Option 1</sd-option>
|
|
7
7
|
<sd-option value="option-2">Option 2</sd-option>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Use the `disabled` attribute to disable the select.
|
|
2
2
|
|
|
3
3
|
```html
|
|
4
|
-
<div class="w-[400px]">
|
|
4
|
+
<div class="max-w-[400px]">
|
|
5
5
|
<sd-select size="lg" label="Label" placeholder="Disabled" placement="bottom" value="" disabled>
|
|
6
6
|
<sd-option value="option-1">Option 1</sd-option>
|
|
7
7
|
<sd-option value="option-2">Option 2</sd-option>
|
|
@@ -2,7 +2,7 @@ Use the `floating-label` attribute to enable a floating label on the select.
|
|
|
2
2
|
**Note:** Floating labels only work with the `label` attribute. The `label` slot is not supported. Only the `lg` and `md` sizes are available.
|
|
3
3
|
|
|
4
4
|
```html
|
|
5
|
-
<div class="
|
|
5
|
+
<div class="max-w-[400px] h-[500px]">
|
|
6
6
|
<sd-select size="lg" label="Floating Label" floating-label placement="bottom" value="">
|
|
7
7
|
<sd-option value="option-1">Option 1</sd-option>
|
|
8
8
|
<sd-option value="option-2">Option 2</sd-option>
|
|
@@ -2,8 +2,15 @@ Use the `help-text` attribute to provide additional context or instructions.
|
|
|
2
2
|
For help texts that contain HTML, use the `help-text` slot instead.
|
|
3
3
|
|
|
4
4
|
```html
|
|
5
|
-
<div class="flex gap-12 h-[500px]">
|
|
6
|
-
<sd-select
|
|
5
|
+
<div class="flex flex-wrap md:flex-nowrap gap-12 h-[500px]">
|
|
6
|
+
<sd-select
|
|
7
|
+
size="lg"
|
|
8
|
+
label="Label"
|
|
9
|
+
placement="bottom"
|
|
10
|
+
value=""
|
|
11
|
+
help-text="Help text attribute"
|
|
12
|
+
class="w-full min-w-[200px] md:min-w-0 max-w-[400px]"
|
|
13
|
+
>
|
|
7
14
|
<sd-option value="option-1">Option 1</sd-option>
|
|
8
15
|
<sd-option value="option-2">Option 2</sd-option>
|
|
9
16
|
<sd-option value="option-3">Option 3</sd-option>
|
|
@@ -11,7 +18,7 @@ For help texts that contain HTML, use the `help-text` slot instead.
|
|
|
11
18
|
<sd-option value="option-5">Option 5</sd-option>
|
|
12
19
|
</sd-select>
|
|
13
20
|
|
|
14
|
-
<sd-select size="lg" label="Label" placement="bottom" value="">
|
|
21
|
+
<sd-select size="lg" label="Label" placement="bottom" value="" class="w-full min-w-[200px] md:min-w-0 max-w-[400px]">
|
|
15
22
|
<div slot="help-text" class="text-lg">Help text slot</div>
|
|
16
23
|
<sd-option value="option-1">Option 1</sd-option>
|
|
17
24
|
<sd-option value="option-2">Option 2</sd-option>
|
|
@@ -2,8 +2,14 @@ Use the `label` attribute to give the select element an accessible label.
|
|
|
2
2
|
For labels that contain HTML, use the `label` slot instead.
|
|
3
3
|
|
|
4
4
|
```html
|
|
5
|
-
<div class="flex gap-12 h-[500px]">
|
|
6
|
-
<sd-select
|
|
5
|
+
<div class="flex flex-wrap md:flex-nowrap gap-12 h-[500px]">
|
|
6
|
+
<sd-select
|
|
7
|
+
size="lg"
|
|
8
|
+
label="Label attribute"
|
|
9
|
+
placement="bottom"
|
|
10
|
+
value=""
|
|
11
|
+
class="w-full min-w-[200px] md:min-w-0 max-w-[400px]"
|
|
12
|
+
>
|
|
7
13
|
<sd-option value="option-1">Option 1</sd-option>
|
|
8
14
|
<sd-option value="option-2">Option 2</sd-option>
|
|
9
15
|
<sd-option value="option-3">Option 3</sd-option>
|
|
@@ -11,7 +17,7 @@ For labels that contain HTML, use the `label` slot instead.
|
|
|
11
17
|
<sd-option value="option-5">Option 5</sd-option>
|
|
12
18
|
</sd-select>
|
|
13
19
|
|
|
14
|
-
<sd-select size="lg" placement="bottom" value="">
|
|
20
|
+
<sd-select size="lg" placement="bottom" value="" class="w-full min-w-[200px] md:min-w-0 max-w-[400px]">
|
|
15
21
|
<div slot="label" class="text-lg">Label slot</div>
|
|
16
22
|
<sd-option value="option-1">Option 1</sd-option>
|
|
17
23
|
<sd-option value="option-2">Option 2</sd-option>
|