@solid-design-system/mcp 7.0.0-next.1 → 7.0.0-next.11

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 (115) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/metadata/packages/components/docs/installation.md +9 -117
  3. package/metadata/packages/components/docs/usage.md +4 -4
  4. package/metadata/packages/components/sd-accordion/info.md +1 -1
  5. package/metadata/packages/components/sd-badge/stories/variant.md +1 -1
  6. package/metadata/packages/components/sd-brandshape/info.md +1 -1
  7. package/metadata/packages/components/sd-brandshape/stories/variant.md +0 -1
  8. package/metadata/packages/components/sd-breadcrumb-item/info.md +1 -1
  9. package/metadata/packages/components/sd-button/info.md +2 -2
  10. package/metadata/packages/components/sd-button/stories/visually-disabled.md +4 -4
  11. package/metadata/packages/components/sd-carousel/info.md +2 -1
  12. package/metadata/packages/components/sd-datepicker/stories/visually-disabled.md +1 -1
  13. package/metadata/packages/components/sd-dialog/stories/headline.md +4 -2
  14. package/metadata/packages/components/sd-dialog/stories/no-close-button.md +4 -2
  15. package/metadata/packages/components/sd-dialog/stories/open.md +50 -45
  16. package/metadata/packages/components/sd-drawer/info.md +1 -2
  17. package/metadata/packages/components/sd-drawer/stories/no-header.md +1 -1
  18. package/metadata/packages/components/sd-drawer/stories/open.md +3 -3
  19. package/metadata/packages/components/sd-drawer/stories/placement.md +3 -3
  20. package/metadata/packages/components/sd-dropdown/info.md +1 -1
  21. package/metadata/packages/components/sd-file-selector/info.md +139 -0
  22. package/metadata/packages/components/sd-file-selector/stories/directory.md +6 -0
  23. package/metadata/packages/components/sd-file-selector/stories/disabled.md +5 -0
  24. package/metadata/packages/components/sd-file-selector/stories/help-text.md +19 -0
  25. package/metadata/packages/components/sd-file-selector/stories/hide-value.md +5 -0
  26. package/metadata/packages/components/sd-file-selector/stories/invalid.md +14 -0
  27. package/metadata/packages/components/sd-file-selector/stories/label.md +13 -0
  28. package/metadata/packages/components/sd-file-selector/stories/multiple-files.md +5 -0
  29. package/metadata/packages/components/sd-file-selector/stories/required.md +6 -0
  30. package/metadata/packages/components/sd-file-selector/stories/sizes.md +14 -0
  31. package/metadata/packages/components/sd-file-selector/stories/variant.md +8 -0
  32. package/metadata/packages/components/sd-file-selector/stories/visually-disabled.md +9 -0
  33. package/metadata/packages/components/sd-header/info.md +4 -2
  34. package/metadata/packages/components/sd-header/stories/shadow.md +9 -0
  35. package/metadata/packages/components/sd-icon/stories/custom-libraries.md +1 -1
  36. package/metadata/packages/components/sd-icon/stories/libraries.md +1 -1
  37. package/metadata/packages/components/sd-icon/stories/name.md +1 -1
  38. package/metadata/packages/components/sd-input/info.md +5 -4
  39. package/metadata/packages/components/sd-link/info.md +1 -1
  40. package/metadata/packages/components/sd-link/stories/as-link.md +1 -1
  41. package/metadata/packages/components/sd-link/stories/icon.md +2 -2
  42. package/metadata/packages/components/sd-link/stories/visually-disabled.md +2 -2
  43. package/metadata/packages/components/sd-map-marker/info.md +1 -1
  44. package/metadata/packages/components/sd-menu/stories/grouping.md +1 -1
  45. package/metadata/packages/components/sd-menu/stories/icon.md +1 -2
  46. package/metadata/packages/components/sd-navigation-item/info.md +2 -2
  47. package/metadata/packages/components/sd-navigation-item/stories/accordion.md +4 -4
  48. package/metadata/packages/components/sd-navigation-item/stories/chevron.md +1 -1
  49. package/metadata/packages/components/sd-navigation-item/stories/current.md +2 -2
  50. package/metadata/packages/components/sd-navigation-item/stories/description.md +1 -1
  51. package/metadata/packages/components/sd-navigation-item/stories/disabled.md +1 -1
  52. package/metadata/packages/components/sd-navigation-item/stories/divider.md +1 -1
  53. package/metadata/packages/components/sd-navigation-item/stories/indented.md +1 -1
  54. package/metadata/packages/components/sd-navigation-item/stories/orientation.md +2 -2
  55. package/metadata/packages/components/sd-navigation-item/stories/relaxed.md +1 -1
  56. package/metadata/packages/components/sd-navigation-item/stories/separated.md +4 -4
  57. package/metadata/packages/components/sd-notification/info.md +2 -2
  58. package/metadata/packages/components/sd-notification/stories/duration.md +5 -0
  59. package/metadata/packages/components/sd-notification/stories/toast-notification.md +1 -0
  60. package/metadata/packages/components/sd-popup/info.md +1 -1
  61. package/metadata/packages/components/sd-quickfact/info.md +1 -1
  62. package/metadata/packages/components/sd-quickfact/stories/expandable.md +0 -1
  63. package/metadata/packages/components/sd-radio-group/info.md +1 -1
  64. package/metadata/packages/components/sd-radio-group/stories/required.md +1 -1
  65. package/metadata/packages/components/sd-range/info.md +1 -1
  66. package/metadata/packages/components/sd-select/info.md +3 -3
  67. package/metadata/packages/components/sd-step/stories/size.md +1 -1
  68. package/metadata/packages/components/sd-tab-group/info.md +1 -1
  69. package/metadata/packages/components/sd-tag/info.md +2 -2
  70. package/metadata/packages/components/sd-teaser/info.md +1 -1
  71. package/metadata/packages/components/sd-teaser/stories/breakpoint.md +2 -2
  72. package/metadata/packages/components/sd-teaser/stories/default-and-headline-slot.md +1 -1
  73. package/metadata/packages/components/sd-teaser/stories/distribution.md +1 -1
  74. package/metadata/packages/components/sd-teaser/stories/inset.md +1 -1
  75. package/metadata/packages/components/sd-teaser/stories/media-slot.md +1 -1
  76. package/metadata/packages/components/sd-teaser/stories/meta-slot.md +1 -1
  77. package/metadata/packages/components/sd-teaser/stories/reverse.md +1 -1
  78. package/metadata/packages/components/sd-teaser/stories/variant.md +5 -9
  79. package/metadata/packages/components/sd-teaser-media/info.md +1 -1
  80. package/metadata/packages/components/sd-teaser-media/stories/default-media-and-headline-slot.md +1 -1
  81. package/metadata/packages/components/sd-textarea/info.md +3 -3
  82. package/metadata/packages/components/sd-tooltip/info.md +3 -3
  83. package/metadata/packages/components/sd-tooltip/stories/custom-trigger.md +1 -1
  84. package/metadata/packages/components/sd-tooltip/stories/placement.md +6 -6
  85. package/metadata/packages/icons/default/system.json +15 -15
  86. package/metadata/packages/icons/sd-multi-theming/content.json +10 -10
  87. package/metadata/packages/icons/sd-multi-theming/system.json +118 -128
  88. package/metadata/packages/quickstart/docs/quickstart.md +9 -27
  89. package/metadata/packages/styles/docs/installation.md +8 -56
  90. package/metadata/packages/styles/sd-chip/info.md +12 -8
  91. package/metadata/packages/styles/sd-chip/stories/{variants.md → color.md} +9 -11
  92. package/metadata/packages/styles/sd-chip/stories/outlined.md +8 -0
  93. package/metadata/packages/styles/sd-chip/stories/shade.md +17 -0
  94. package/metadata/packages/styles/sd-chip/stories/sharp.md +8 -0
  95. package/metadata/packages/styles/sd-chip/stories/size.md +8 -0
  96. package/metadata/packages/styles/sd-hidden-links/stories/surrounding-content.md +1 -1
  97. package/metadata/packages/templates/badge.md +1 -1
  98. package/metadata/packages/templates/brandshape.md +5 -6
  99. package/metadata/packages/templates/breadcrumb.md +1 -1
  100. package/metadata/packages/templates/dialog.md +1 -11
  101. package/metadata/packages/templates/header-navigation.md +6 -6
  102. package/metadata/packages/templates/menu.md +1 -1
  103. package/metadata/packages/templates/status-badge.md +3 -3
  104. package/metadata/packages/templates/table.md +14 -12
  105. package/metadata/packages/templates/teaser.md +21 -15
  106. package/metadata/packages/tokens/docs/installation.md +2 -23
  107. package/metadata/packages/tokens/docs/usage.md +4 -28
  108. package/metadata/packages/tokens/tokens.json +4 -0
  109. package/package.json +12 -12
  110. package/metadata/packages/components/sd-spinner/info.md +0 -53
  111. package/metadata/packages/components/sd-spinner/stories/size.md +0 -15
  112. package/metadata/packages/components/sd-spinner/stories/variants.md +0 -43
  113. package/metadata/packages/styles/sd-flag/info.md +0 -45
  114. package/metadata/packages/styles/sd-flag/stories/variants.md +0 -40
  115. package/metadata/packages/templates/flag.md +0 -38
package/CHANGELOG.md CHANGED
@@ -1,5 +1,48 @@
1
1
  # Changelog
2
2
 
3
+ ## 7.0.0-next.11
4
+
5
+ ## 7.0.0-next.10
6
+
7
+ ## 7.0.0-next.9
8
+
9
+ ## 7.0.0-next.8
10
+
11
+ ### Major Changes
12
+
13
+ - Consolidated `sd-chip` and `sd-flag`: _[`#3267`](https://github.com/solid-design-system/solid/pull/3267) [`12db708`](https://github.com/solid-design-system/solid/commit/12db708ea227bc2ce2a7835d12190ee1ae40f891) [@auroraVasconcelos](https://github.com/auroraVasconcelos)_
14
+
15
+ - Removed the `sd-flag` style.
16
+ - Added `sd-chip--color-{primary,neutral,white}`, `sd-chip--shade-{subtle,low,medium,high}`, `sd-chip--size-{sm,lg}`, `sd-chip--outline` and `sd-chip--sharp` classes.
17
+
18
+ ## 7.0.0-next.7
19
+
20
+ ## 7.0.0-next.6
21
+
22
+ ## 7.0.0-next.5
23
+
24
+ ## 7.0.0-next.4
25
+
26
+ ## 7.0.0-next.3
27
+
28
+ ## 7.0.0-next.2
29
+
30
+ ## 6.30.0
31
+
32
+ ### Minor Changes
33
+
34
+ - Add `sd-file-selector` component. _[`#3237`](https://github.com/solid-design-system/solid/pull/3237) [`cdab3e1`](https://github.com/solid-design-system/solid/commit/cdab3e1c704558ad4d437d9d19d5ad8db5062547) [@auroraVasconcelos](https://github.com/auroraVasconcelos)_
35
+
36
+ ## 6.29.1
37
+
38
+ ## 6.29.0
39
+
40
+ ## 6.28.2
41
+
42
+ ### Patch Changes
43
+
44
+ - 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)_
45
+
3
46
  ## 7.0.0-next.1
4
47
 
5
48
  ### Patch Changes
@@ -8,6 +51,8 @@
8
51
 
9
52
  ## 7.0.0-next.0
10
53
 
54
+ ## 6.28.1
55
+
11
56
  ## 6.28.0
12
57
 
13
58
  ## 6.27.2
@@ -1,8 +1,8 @@
1
1
  # Installation
2
2
 
3
- You can load Solid Components via CDN or by installing it locally.
3
+ Solid Components is installed via npm. For environments without a bundler, see [CDN Hosting](?path=/docs/docs-general-cdn-hosting--docs).
4
4
 
5
- <sd-notification type="info" open id="versioning-info">
5
+ <sd-notification variant="info" open id="versioning-info">
6
6
  The `components`, `styles`, and `tokens` packages now always share the same version. We use fixed versioning to keep
7
7
  them fully in sync, so every release updates all three packages, even if only one of them changed. Make sure to
8
8
  install or update them using the same version number.
@@ -40,98 +40,9 @@ Keep the following in mind for nested components:
40
40
  - _Slotted components_, which are added by your app or website, are not automatically versioned. You need to version them yourself if necessary.
41
41
  - _Nested components_, which are generated by the component itself, are automatically versioned (e.g., `sd-%DASHED-COMPONENTS-VERSION%-button` will generate an `sd-%DASHED-COMPONENTS-VERSION%-spinner` when in the loading state).
42
42
 
43
- ## CDN Installation
43
+ ## Installation
44
44
 
45
- ### Bundle
46
-
47
- The bundle registers all Solid Components in a single file. If you're using many Solid Components, this is the most performant way to load and hydrate them. Still, you should ensure that other applications are not loading components with the same tag names via an additional CDN or npm package. This therefore makes most sense in e. g. a CMS context.
48
- You can use the following script tag to load all components:
49
-
50
- <sd-tab-group>
51
- {/* prettier-ignore */}
52
- <sd-tab slot="nav" panel="unversioned"> Unversioned </sd-tab>
53
- {/* prettier-ignore */}
54
- <sd-tab slot="nav" panel="versioned"> Versioned </sd-tab>
55
- <sd-tab-panel name="unversioned">
56
- ```html
57
- <link
58
- rel="stylesheet"
59
- href="https://solid-design-system.fe.union-investment.de/components/%COMPONENTS-VERSION%/cdn/solid-components.css"
60
- />
61
- <link
62
- rel="stylesheet"
63
- href="https://solid-design-system.fe.union-investment.de/tokens/%TOKENS-VERSION%/cdn/themes/ui-light/ui-light.css"
64
- />
65
- <script
66
- type="module"
67
- src="https://solid-design-system.fe.union-investment.de/components/%COMPONENTS-VERSION%/cdn/solid-components.bundle.js"
68
- ></script>
69
- ```
70
- </sd-tab-panel>
71
- <sd-tab-panel name="versioned">
72
- ```html
73
- <link
74
- rel="stylesheet"
75
- href="https://solid-design-system.fe.union-investment.de/components/%COMPONENTS-VERSION%/cdn-versioned/solid-components.css"
76
- />
77
- <link
78
- rel="stylesheet"
79
- href="https://solid-design-system.fe.union-investment.de/tokens/%TOKENS-VERSION%/cdn/themes/ui-light/ui-light.css"
80
- />
81
- <script
82
- type="module"
83
- src="https://solid-design-system.fe.union-investment.de/components/%COMPONENTS-VERSION%/cdn-versioned/solid-components.bundle.js"
84
- ></script>
85
- ```
86
- </sd-tab-panel>
87
- </sd-tab-group>
88
-
89
- ### ESM
90
-
91
- The CDN loader registers all Solid elements up front. Note that, if you're only using a handful of components, it could be more efficient [cherry pick](#cherry-picking) components if you want to load specific ones up front.
92
-
93
- <sd-tab-group>
94
- {/* prettier-ignore */}
95
- <sd-tab slot="nav" panel="unversioned">Unversioned</sd-tab>
96
- {/* prettier-ignore */}
97
- <sd-tab slot="nav" panel="versioned">Versioned</sd-tab>
98
- <sd-tab-panel name="unversioned">
99
- ```html
100
- <link
101
- rel="stylesheet"
102
- href="https://solid-design-system.fe.union-investment.de/components/%COMPONENTS-VERSION%/cdn/solid-components.css"
103
- />
104
- <link
105
- rel="stylesheet"
106
- href="https://solid-design-system.fe.union-investment.de/tokens/%TOKENS-VERSION%/cdn/themes/ui-light/ui-light.css"
107
- />
108
- <script
109
- type="module"
110
- src="https://solid-design-system.fe.union-investment.de/components/%COMPONENTS-VERSION%/cdn/solid-components.js"
111
- ></script>
112
- ```
113
- </sd-tab-panel>
114
- <sd-tab-panel name="versioned">
115
- ```html
116
- <link
117
- rel="stylesheet"
118
- href="https://solid-design-system.fe.union-investment.de/components/%COMPONENTS-VERSION%/cdn-versioned/solid-components.css"
119
- />
120
- <link
121
- rel="stylesheet"
122
- href="https://solid-design-system.fe.union-investment.de/tokens/%TOKENS-VERSION%/cdn/themes/ui-light/ui-light.css"
123
- />
124
- <script
125
- type="module"
126
- src="https://solid-design-system.fe.union-investment.de/components/%COMPONENTS-VERSION%/cdn-versioned/solid-components.js"
127
- ></script>
128
- ```
129
- </sd-tab-panel>
130
- </sd-tab-group>
131
-
132
- ## npm installation
133
-
134
- If you don't want to use the CDN, you can install Solid Components from npm with the following command.
45
+ Install Solid Components from npm:
135
46
 
136
47
  ```bash
137
48
  npm install @solid-design-system/components @solid-design-system/tokens
@@ -166,7 +77,7 @@ Alternatively, [you can use a bundler](#bundling).
166
77
 
167
78
  ## Cherry Picking
168
79
 
169
- Cherry picking can be done from [the CDN](#cdn-installation) or from [npm](#npm-installation). This approach will load only the components you need up front, while limiting the number of files the browser has to download. The disadvantage is that you need to import each individual component.
80
+ Cherry picking loads only the components you need up front, limiting the number of files the browser has to download. The disadvantage is that you need to import each individual component.
170
81
 
171
82
  Here's an example that loads only the button component. Again, if you're not using a module resolver, you'll need to adjust the path to point to the folder Solid is in.
172
83
 
@@ -209,7 +120,7 @@ You can copy and paste the code to import a component from the "Importing" secti
209
120
 
210
121
  ## Bundling
211
122
 
212
- Solid Components are distributed as a collection of standard ES modules that [all modern browsers can understand](https://caniuse.com/es6-module). However, importing a lot of modules can result in a lot of HTTP requests and potentially longer load times. Using a CDN can alleviate this, but some users may wish to further optimize their imports with a bundler.
123
+ Solid Components are distributed as a collection of standard ES modules that [all modern browsers can understand](https://caniuse.com/es6-module). However, importing a lot of modules can result in a lot of HTTP requests and potentially longer load times. You can optimize your imports with a bundler.
213
124
 
214
125
  To use Solid with a bundler, first install Solid along with your bundler of choice.
215
126
 
@@ -245,27 +156,8 @@ Once your bundler is configured, you'll be able to import Solid components and u
245
156
 
246
157
  > Component modules include side effects for registration purposes. Because of this, importing directly from `@solid-design-system/components` may result in a larger bundle size than necessary. For optimal tree shaking, always cherry pick, i.e. import components and utilities from their respective files, as shown above.
247
158
 
248
- ## The difference between CDN and npm
159
+ ## cdn/ vs dist/
249
160
 
250
- CDN links all start with `/cdn/<path>` and npm imports use `/dist/<path>`. The `/cdn` files are bundled separately from the `/dist` files. The `/cdn` files come pre-bundled, which means all dependencies are inlined so you do not need to worry about loading additional libraries. The `/dist` files **DO NOT** come pre-bundled, allowing your bundler of choice to more efficiently deduplicate dependencies, resulting in smaller bundles and optimal code sharing.
161
+ The package ships both `cdn/` and `dist/` artifacts. The `/cdn` files are pre-bundled with all dependencies inlined. The `/dist` files are not pre-bundled, allowing your bundler to deduplicate shared dependencies for a smaller total bundle.
251
162
 
252
- TL;DR:
253
-
254
- <sd-tab-group>
255
- {/* prettier-ignore */}
256
- <sd-tab slot="nav" panel="unversioned">Unversioned</sd-tab>
257
- {/* prettier-ignore */}
258
- <sd-tab slot="nav" panel="versioned">Versioned</sd-tab>
259
- <sd-tab-panel name="unversioned">
260
-
261
- - `@solid-design-system/components/cdn` is for CDN users
262
- - `@solid-design-system/components/dist` is for npm users
263
-
264
- </sd-tab-panel>
265
- <sd-tab-panel name="versioned">
266
-
267
- - `@solid-design-system/components/cdn-versioned` is for CDN users
268
- - `@solid-design-system/components/dist-versioned` is for npm users
269
-
270
- </sd-tab-panel>
271
- </sd-tab-group>
163
+ Use `/dist` with a bundler (recommended). Use `/cdn` only when hosting on your own CDN without build tooling — see [CDN Hosting](?path=/docs/general-cdn-hosting--docs).
@@ -94,10 +94,10 @@ Custom elements cannot have self-closing tags. Similar to `<script>` and `<texta
94
94
 
95
95
  ```html
96
96
  <!-- Don't do this -->
97
- <sd-spinner />
97
+ <sd-button />
98
98
 
99
99
  <!-- Always do this -->
100
- <sd-spinner></sd-spinner>
100
+ <sd-button></sd-button>
101
101
  ```
102
102
 
103
103
  ### Differences from Native Elements
@@ -142,10 +142,10 @@ A way to use this method is to hide the `<body>` with `opacity: 0` and add a cla
142
142
  await Promise.allSettled([
143
143
  customElements.whenDefined('sd-button'),
144
144
  customElements.whenDefined('sd-icon'),
145
- customElements.whenDefined('sd-spinner')
145
+ customElements.whenDefined('sd-loader')
146
146
  ]);
147
147
 
148
- // Button, icon and spinner are registered now! Add
148
+ // Button, icon and loader are registered now! Add
149
149
  // the `ready` class so the UI fades in.
150
150
  document.body.classList.add('ready');
151
151
  </script>
@@ -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.content\_\_slot: The accordion content slot.
44
+ - part.content__slot: The accordion content slot.
45
45
 
46
46
  ## Guidelines
47
47
 
@@ -24,7 +24,7 @@
24
24
  return generateTemplate({ args });
25
25
  }
26
26
  };
27
- /\*\*
27
+ /**
28
28
  Use the `variant` attribute to set the badge’s variant:
29
29
  - `blue`
30
30
  - `green`
@@ -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: |'neutral-100'|'primary'|'white'|'border-primary'|'border-white'|'primary|80'|'white|80'|'image', default='primary' — The brandshape's theme 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.
@@ -33,7 +33,6 @@ options: shapes
33
33
  },
34
34
  decorators: [
35
35
  (story: () => typeof html) => html`
36
-
37
36
  <style>
38
37
  body:not(:has(.sd-theme-ui-light, .sd-theme-ui-dark)) .slot {
39
38
  display: none;
@@ -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: '\_blank'|'\_parent'|'\_self'|'\_top' — Tells the browser where to open the link. Only used when `href` is present.
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: '\_blank'|'\_parent'|'\_self'|'\_top' — Tells the browser where to open the link. Only used when `href` is present.
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]: '\_self'|'\_blank'|'\_parent'|'\_top' — Used to override the form owner's `target` attribute.
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 Disabled" trigger="hover focus" size="sm" placement="top">
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 Disabled" trigger="hover focus" size="sm" placement="top">
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 Disabled" trigger="hover focus" size="sm" placement="top">
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 Disabled" trigger="hover focus" size="sm" placement="top">
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 Disabled" visually-disabled></sd-datepicker>
8
+ <sd-datepicker label="Label" placeholder="Visually disabled" visually-disabled></sd-datepicker>
9
9
  </sd-tooltip>
10
10
  </div>
11
11
  ```
@@ -2,13 +2,15 @@ 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 Dialog</sd-button>
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
9
9
  dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam.
10
10
  </p>
11
- <sd-button slot="footer">Button</sd-button>
11
+ <div slot="footer" class="flex sm:justify-end gap-4">
12
+ <sd-button>Button</sd-button>
13
+ </div>
12
14
  </sd-dialog>
13
15
  </div>
14
16
  <script type="module">
@@ -3,13 +3,15 @@ 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 Dialog</sd-button>
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
10
10
  dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam.
11
11
  </p>
12
- <sd-button class="close-button" slot="footer" variant="primary">Button</sd-button>
12
+ <div slot="footer" class="flex sm:justify-end gap-4">
13
+ <sd-button class="close-button" variant="primary">Button</sd-button>
14
+ </div>
13
15
  </sd-dialog>
14
16
  </div>
15
17
 
@@ -1,49 +1,52 @@
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
- })}
46
- </div>`;
4
+ /
5
+ export default {
6
+ title: 'Components/sd-dialog',
7
+ component: 'sd-dialog',
8
+ tags: ['!dev', 'autodocs'],
9
+ args: overrideArgs([
10
+ {
11
+ type: 'slot',
12
+ name: 'default',
13
+ value: `<div class="slot slot--border slot--text h-16 w-full">Default slot</div>`
14
+ },
15
+ {
16
+ type: 'slot',
17
+ name: 'headline',
18
+ value: `<div slot="headline" class="slot slot--border slot--text h-16">Headline slot</div>`
19
+ },
20
+ {
21
+ type: 'slot',
22
+ name: 'footer',
23
+ value: `<div slot="footer" class="slot slot--border slot--text h-16 w-full">Footer slot</div>`
24
+ }
25
+ ]),
26
+ argTypes,
27
+ parameters: {
28
+ ...parameters,
29
+ design: {
30
+ type: 'figma',
31
+ url: 'https://www.figma.com/design/YDktJcseQIIQbsuCpoKS4V/Component-Docs?node-id=2216-42723&node-type=section&t=5PpAC3TA3kYF7ufX-0'
32
+ }
33
+ }
34
+ };
35
+ export const Default = {
36
+ render: (args: any) => {
37
+ return html`
38
+ <sd-button id="open-default-dialog">Open Dialog</sd-button>
39
+ ${generateTemplate({
40
+ args
41
+ })}
42
+
43
+ <script>
44
+ document.querySelector('#open-default-dialog').addEventListener('click', () => {
45
+ document.querySelector('sd-dialog').show();
46
+ });
47
+ </script>
48
+
49
+ `;
47
50
  }
48
51
  };
49
52
  /**
@@ -51,14 +54,16 @@ Use the `open` attribute to show the dialog.
51
54
 
52
55
  ```html
53
56
  <div class="h-[40vh]">
54
- <sd-button id="drawer-trigger">Open Dialog</sd-button>
57
+ <sd-button id="drawer-trigger">Open dialog</sd-button>
55
58
  <sd-dialog id="dialog" open>
56
59
  <span slot="headline" class="sd-headline sd-headline--size-3xl">Lorem ipsum</span>
57
60
  <p class="sd-paragraph">
58
61
  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et
59
62
  dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam.
60
63
  </p>
61
- <sd-button slot="footer">Button</sd-button>
64
+ <div slot="footer" class="flex sm:justify-end gap-4">
65
+ <sd-button>Button</sd-button>
66
+ </div>
62
67
  </sd-dialog>
63
68
  </div>
64
69
  <script type="module">
@@ -19,7 +19,6 @@ Use the components tool by passing the args `component` and `example` for any of
19
19
  - prop.label: string, default='' — You should always include a relevant label even when using
20
20
  `no-header`, as it is required for proper accessibility.
21
21
  - prop.placement: 'end'|'start', default='end' — The direction from which the drawer will open.
22
- - prop.contained: boolean, default=false — By default, the drawer slides out of its containing block (the viewport). Contained is a hidden feature used only for testing purposes. Please do not use it in production as it will likely change.
23
22
  - prop.noHeader [attr: no-header]: boolean, default=false — Removes the header. This will also remove the default close button, so please ensure you provide an easy, accessible way for users to dismiss the drawer.
24
23
  - prop.dir: 'ltr'|'rtl'|'auto' — The element's directionality.
25
24
  - prop.lang: string — The element's language.
@@ -42,13 +41,13 @@ Use the components tool by passing the args `component` and `example` for any of
42
41
  ### CSS Parts
43
42
 
44
43
  - part.base: The component's base wrapper.
45
- - part.overlay: The overlay that covers the screen behind the drawer.
46
44
  - part.panel: The drawer's panel (where the drawer and its content are rendered).
47
45
  - part.header: The drawer's header. This element wraps the title and the close-button.
48
46
  - part.title: The drawer's title.
49
47
  - part.close-button: The close button, an `<sd-button>`.
50
48
  - part.body: The drawer's body.
51
49
  - part.footer: The drawer's footer.
50
+ - part.overlay: The overlay that covers the screen behind the drawer.
52
51
 
53
52
  ## Guidelines
54
53
 
@@ -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 Drawer</sd-button>
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 Drawer</sd-button>
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 Action</sd-button>
14
- <sd-button variant="secondary">Secondary Action</sd-button>
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 Drawer</sd-button>
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 Action</sd-button>
14
- <sd-button variant="secondary">Secondary Action</sd-button>
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.base\_\_popup: The popup's exported `popup` part. Use this to target the dropdowns' popup container.
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