@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.
Files changed (85) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/metadata/packages/components/sd-datepicker/stories/alignment.md +1 -1
  3. package/metadata/packages/components/sd-datepicker/stories/disabled-dates.md +1 -1
  4. package/metadata/packages/components/sd-datepicker/stories/disabled-weekends.md +1 -1
  5. package/metadata/packages/components/sd-datepicker/stories/disabled.md +1 -1
  6. package/metadata/packages/components/sd-datepicker/stories/floating-label.md +1 -1
  7. package/metadata/packages/components/sd-datepicker/stories/help-text.md +7 -3
  8. package/metadata/packages/components/sd-datepicker/stories/invalid.md +1 -1
  9. package/metadata/packages/components/sd-datepicker/stories/label.md +3 -3
  10. package/metadata/packages/components/sd-datepicker/stories/placeholder.md +1 -1
  11. package/metadata/packages/components/sd-datepicker/stories/range.md +1 -1
  12. package/metadata/packages/components/sd-datepicker/stories/required.md +1 -1
  13. package/metadata/packages/components/sd-datepicker/stories/size.md +1 -1
  14. package/metadata/packages/components/sd-datepicker/stories/valid.md +1 -1
  15. package/metadata/packages/components/sd-datepicker/stories/visible-month.md +1 -1
  16. package/metadata/packages/components/sd-datepicker/stories/visually-disabled.md +1 -1
  17. package/metadata/packages/components/sd-input/stories/clearable.md +1 -1
  18. package/metadata/packages/components/sd-input/stories/disabled.md +1 -1
  19. package/metadata/packages/components/sd-input/stories/floating-label.md +1 -1
  20. package/metadata/packages/components/sd-input/stories/help-text.md +3 -3
  21. package/metadata/packages/components/sd-input/stories/icon.md +3 -3
  22. package/metadata/packages/components/sd-input/stories/invalid.md +7 -1
  23. package/metadata/packages/components/sd-input/stories/label.md +3 -3
  24. package/metadata/packages/components/sd-input/stories/max-length.md +1 -1
  25. package/metadata/packages/components/sd-input/stories/max.md +1 -1
  26. package/metadata/packages/components/sd-input/stories/min-length.md +1 -1
  27. package/metadata/packages/components/sd-input/stories/min.md +1 -1
  28. package/metadata/packages/components/sd-input/stories/pattern.md +1 -1
  29. package/metadata/packages/components/sd-input/stories/placeholder.md +1 -1
  30. package/metadata/packages/components/sd-input/stories/read-only.md +1 -1
  31. package/metadata/packages/components/sd-input/stories/required.md +1 -1
  32. package/metadata/packages/components/sd-input/stories/size.md +4 -4
  33. package/metadata/packages/components/sd-input/stories/spin-buttons.md +1 -1
  34. package/metadata/packages/components/sd-input/stories/toggle-password.md +1 -1
  35. package/metadata/packages/components/sd-input/stories/type.md +33 -4
  36. package/metadata/packages/components/sd-input/stories/valid.md +1 -1
  37. package/metadata/packages/components/sd-input/stories/value.md +1 -1
  38. package/metadata/packages/components/sd-input/stories/visually-disabled.md +1 -1
  39. package/metadata/packages/components/sd-select/stories/clearable.md +1 -1
  40. package/metadata/packages/components/sd-select/stories/disabled.md +1 -1
  41. package/metadata/packages/components/sd-select/stories/floating-label.md +1 -1
  42. package/metadata/packages/components/sd-select/stories/help-text.md +10 -3
  43. package/metadata/packages/components/sd-select/stories/invalid.md +1 -1
  44. package/metadata/packages/components/sd-select/stories/label.md +9 -3
  45. package/metadata/packages/components/sd-select/stories/max-options-visible.md +1 -1
  46. package/metadata/packages/components/sd-select/stories/multiple.md +1 -1
  47. package/metadata/packages/components/sd-select/stories/placeholder.md +1 -1
  48. package/metadata/packages/components/sd-select/stories/placement.md +9 -3
  49. package/metadata/packages/components/sd-select/stories/required.md +1 -1
  50. package/metadata/packages/components/sd-select/stories/size.md +25 -4
  51. package/metadata/packages/components/sd-select/stories/use-tags.md +1 -1
  52. package/metadata/packages/components/sd-select/stories/valid.md +1 -1
  53. package/metadata/packages/components/sd-select/stories/visually-disabled.md +1 -1
  54. package/metadata/packages/components/sd-teaser/stories/breakpoint.md +2 -2
  55. package/metadata/packages/components/sd-teaser/stories/default-and-headline-slot.md +1 -1
  56. package/metadata/packages/components/sd-teaser/stories/distribution.md +1 -1
  57. package/metadata/packages/components/sd-teaser/stories/inset.md +1 -1
  58. package/metadata/packages/components/sd-teaser/stories/media-slot.md +1 -1
  59. package/metadata/packages/components/sd-teaser/stories/meta-slot.md +1 -1
  60. package/metadata/packages/components/sd-teaser/stories/reverse.md +1 -1
  61. package/metadata/packages/components/sd-teaser/stories/variant.md +9 -5
  62. package/metadata/packages/components/sd-textarea/stories/disabled.md +1 -1
  63. package/metadata/packages/components/sd-textarea/stories/floating-label.md +9 -2
  64. package/metadata/packages/components/sd-textarea/stories/help-text.md +9 -3
  65. package/metadata/packages/components/sd-textarea/stories/invalid.md +1 -1
  66. package/metadata/packages/components/sd-textarea/stories/label.md +9 -3
  67. package/metadata/packages/components/sd-textarea/stories/max-length.md +1 -1
  68. package/metadata/packages/components/sd-textarea/stories/min-length.md +1 -1
  69. package/metadata/packages/components/sd-textarea/stories/placeholder.md +1 -1
  70. package/metadata/packages/components/sd-textarea/stories/readonly.md +1 -1
  71. package/metadata/packages/components/sd-textarea/stories/required.md +1 -1
  72. package/metadata/packages/components/sd-textarea/stories/rows.md +22 -4
  73. package/metadata/packages/components/sd-textarea/stories/size.md +25 -4
  74. package/metadata/packages/components/sd-textarea/stories/valid.md +1 -1
  75. package/metadata/packages/components/sd-textarea/stories/visually-disabled.md +1 -1
  76. package/metadata/packages/icons/default/content.json +41 -11
  77. package/metadata/packages/icons/default/system.json +22 -22
  78. package/metadata/packages/templates/bottom-navigation.md +2 -4
  79. package/metadata/packages/templates/combobox.md +4 -4
  80. package/metadata/packages/templates/datepicker.md +3 -3
  81. package/metadata/packages/templates/input.md +1 -1
  82. package/metadata/packages/templates/select.md +18 -4
  83. package/metadata/packages/templates/teaser.md +1 -1
  84. package/metadata/packages/templates/tooltip.md +6 -6
  85. 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"
@@ -1,7 +1,7 @@
1
1
  Use the `disabled-weekends` attribute to manually disable days in your datepicker.
2
2
 
3
3
  ```html
4
- <div class="w-[370px] h-[500px]">
4
+ <div class="max-w-[370px] h-[500px]">
5
5
  <sd-datepicker label="Label" disabled-weekends></sd-datepicker>
6
6
  </div>
7
7
  ```
@@ -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 gap-12 h-[500px] w-[370px] h-[500px]">
6
- <sd-datepicker label="Label" help-text="Help text attribute"></sd-datepicker>
7
- <sd-datepicker label="Label">
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>
@@ -1,7 +1,7 @@
1
1
  Use the `placeholder` attribute to add a placeholder text.
2
2
 
3
3
  ```html
4
- <div class="w-[370px] h-[500px]">
4
+ <div class="max-w-[370px] h-[500px]">
5
5
  <sd-datepicker label="Label" placeholder="Select date"></sd-datepicker>
6
6
  </div>
7
7
  ```
@@ -1,7 +1,7 @@
1
1
  Use the `range` attribute to enable range selection.
2
2
 
3
3
  ```html
4
- <div class="w-[370px] h-[500px]">
4
+ <div class="max-w-[370px] h-[500px]">
5
5
  <sd-datepicker label="Label" range range-start="2025-11-02" range-end="2025-11-12"></sd-datepicker>
6
6
  </div>
7
7
  ```
@@ -1,7 +1,7 @@
1
1
  Use the `required` attribute to mark the element as required.
2
2
 
3
3
  ```html
4
- <div class="w-[370px] h-[500px]">
4
+ <div class="max-w-[370px] h-[500px]">
5
5
  <sd-datepicker label="Label" required></sd-datepicker>
6
6
  </div>
7
7
  ```
@@ -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">
@@ -1,7 +1,7 @@
1
1
  Use the `view-month` attribute to set the initially visible month.
2
2
 
3
3
  ```html
4
- <div class="w-[370px] h-[500px]">
4
+ <div class="max-w-[370px] h-[500px]">
5
5
  <sd-datepicker label="Label" view-month="2026-08"></sd-datepicker>
6
6
  </div>
7
7
  ```
@@ -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>
@@ -1,7 +1,7 @@
1
1
  Use the `clearable` attribute to add a clear button when the input has content.
2
2
 
3
3
  ```html
4
- <div class="w-[250px]">
4
+ <div class="max-w-[400px]">
5
5
  <sd-input label="Clearable" clearable spellcheck value="Input text"></sd-input>
6
6
  </div>
7
7
  ```
@@ -1,7 +1,7 @@
1
1
  Use the `disabled` attribute to disable the input.
2
2
 
3
3
  ```html
4
- <div class="w-[250px]">
4
+ <div class="max-w-[400px]">
5
5
  <sd-input label="Label" value="Disabled" disabled></sd-input>
6
6
  </div>
7
7
  ```
@@ -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-[350px]">
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-rows gap-12">
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-rows gap-12">
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 id="invalid-input" class="w-[250px]" label="Label" style-on-valid placeholder="Placeholder text"></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-row gap-12 items-baseline">
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-[250px]">
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-[250px]">
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-[250px]">
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-[250px]">
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-[250px]">
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
  ```
@@ -1,7 +1,7 @@
1
1
  Use the `placeholder` attribute to add a placeholder.
2
2
 
3
3
  ```html
4
- <div class="w-[250px]">
4
+ <div class="max-w-[400px]">
5
5
  <sd-input placeholder="Placeholder example" label="Label" spellcheck></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-[250px]">
5
+ <div class="max-w-[400px]">
6
6
  <sd-input label="Label" value="Read only example" readonly></sd-input>
7
7
  </div>
8
8
  ```
@@ -1,7 +1,7 @@
1
1
  Use the `required` attribute to mark the element as required. This can be used for form validation purposes.
2
2
 
3
3
  ```html
4
- <div class="w-[250px]">
4
+ <div class="max-w-[400px]">
5
5
  <sd-input label="Label" required></sd-input>
6
6
  </div>
7
7
  ```
@@ -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="grid grid-cols-2 gap-12 content-end">
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
  ```
@@ -1,7 +1,7 @@
1
1
  Use the `spin-buttons` attribute display custom spin buttons for number inputs.
2
2
 
3
3
  ```html
4
- <div class="w-[250px]">
4
+ <div class="max-w-[400px]">
5
5
  <sd-input
6
6
  label="Spin buttons"
7
7
  type="number"
@@ -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-[250px]">
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 type="text" placeholder="Lorem ipsum" label="Text (default)" help-text="Default type" spellcheck></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 type="search" placeholder="Search term" label="Search" help-text="Use search format" spellcheck></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 type="time" label="Time" value="10:30" help-text="Value is restricted to time format" spellcheck></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-[250px]" label="Label" style-on-valid value="Input text here"></sd-input>
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(() => {
@@ -1,7 +1,7 @@
1
1
  Use the `value` attribute to set the value.
2
2
 
3
3
  ```html
4
- <div class="w-[250px]">
4
+ <div class="max-w-[400px]">
5
5
  <sd-input label="Label" value="Value example"> </sd-input>
6
6
  </div>
7
7
  ```
@@ -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-[250px] h-[200px] pt-12">
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="flex gap-12 w-[400px] h-[500px]">
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 size="lg" label="Label" placement="bottom" value="" help-text="Help text attribute">
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>
@@ -1,7 +1,7 @@
1
1
  The component gets `invalid` state when the form is not valid.
2
2
 
3
3
  ```html
4
- <div class="w-[400px] h-[300px]">
4
+ <div class="max-w-[400px] h-[300px]">
5
5
  <sd-select
6
6
  size="lg"
7
7
  placement="bottom"
@@ -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 size="lg" label="Label attribute" placement="bottom" value="">
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>
@@ -4,7 +4,7 @@ Once the maximum number of options is reached, the selection will display a mess
4
4
  To remove the limit, set the attribute to `0`.
5
5
 
6
6
  ```html
7
- <div class="w-[400px] h-[500px]">
7
+ <div class="max-w-[400px] h-[500px]">
8
8
  <sd-select
9
9
  size="lg"
10
10
  label="Label"