@fundamental-styles/mcp 0.41.7-rc.8 → 0.41.7
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/data/AI_USAGE.md +425 -0
- package/data/CHANGELOG.md +53 -3
- package/data/component-catalog.json +62 -209
- package/data/components/README.md +281 -0
- package/data/components/action-bar.md +443 -0
- package/data/components/ai-busy-indicator.md +79 -0
- package/data/components/ai-loading-bar.md +66 -0
- package/data/components/avatar-btp.md +198 -0
- package/data/components/avatar-group.md +2660 -0
- package/data/components/avatar-product-switch.md +476 -0
- package/data/components/avatar.md +993 -0
- package/data/components/bar.md +574 -0
- package/data/components/border-radius.md +148 -0
- package/data/components/border.md +412 -0
- package/data/components/breadcrumb.md +546 -0
- package/data/components/button-2.md +440 -0
- package/data/components/button-action-sheet.md +292 -0
- package/data/components/button-ai.md +730 -0
- package/data/components/button-btp.md +223 -0
- package/data/components/button-button.md +233 -0
- package/data/components/button-counter.md +176 -0
- package/data/components/button-patterns.md +731 -0
- package/data/components/button-split.md +459 -0
- package/data/components/button.md +469 -0
- package/data/components/calendar.md +5784 -0
- package/data/components/card-card-media.md +707 -0
- package/data/components/card-card.md +2426 -0
- package/data/components/card-layouts.md +1201 -0
- package/data/components/card.md +2404 -0
- package/data/components/carousel.md +1506 -0
- package/data/components/code.md +139 -0
- package/data/components/component-reset.md +272 -0
- package/data/components/components-icons-businesssuiteinappsymbol-icons.md +85 -0
- package/data/components/components-icons-sap-icons.md +147 -0
- package/data/components/components-icons-tnt-icons.md +85 -0
- package/data/components/container-queries.md +221 -0
- package/data/components/container.md +227 -0
- package/data/components/dialog-docs-static-busy-indicator.md +165 -0
- package/data/components/dialog-docs-static-dialog.md +949 -0
- package/data/components/dialog-docs-static-patterns.md +147 -0
- package/data/components/dialog-docs-static-settings.md +528 -0
- package/data/components/dialog-docs-static.md +982 -0
- package/data/components/dialog.md +606 -0
- package/data/components/dynamic-page-dynamic-page.md +1914 -0
- package/data/components/dynamic-page.md +973 -0
- package/data/components/dynamic-side.md +197 -0
- package/data/components/elevation.md +110 -0
- package/data/components/feed-input.md +346 -0
- package/data/components/feed-list.md +580 -0
- package/data/components/fieldset-2.md +292 -0
- package/data/components/fieldset-forms.md +169 -0
- package/data/components/fieldset.md +381 -0
- package/data/components/flexible-column-layout.md +205 -0
- package/data/components/form-group.md +287 -0
- package/data/components/form-header.md +71 -0
- package/data/components/form-item-2.md +98 -0
- package/data/components/form-item-3.md +134 -0
- package/data/components/form-item-4.md +556 -0
- package/data/components/form-item-5.md +182 -0
- package/data/components/form-item-6.md +539 -0
- package/data/components/form-item-7.md +239 -0
- package/data/components/form-item-ai.md +158 -0
- package/data/components/form-item-file-uploader.md +445 -0
- package/data/components/form-item-forms.md +234 -0
- package/data/components/form-item-patterns.md +426 -0
- package/data/components/form-item.md +464 -0
- package/data/components/form-label-ai.md +126 -0
- package/data/components/form-label-layouts.md +306 -0
- package/data/components/form-label-patterns.md +1175 -0
- package/data/components/form-label-status-indicator.md +1083 -0
- package/data/components/form-label-step-input.md +620 -0
- package/data/components/form-label.md +2876 -0
- package/data/components/generic-tag.md +747 -0
- package/data/components/grid-list-grid-list.md +1185 -0
- package/data/components/grid-list.md +1449 -0
- package/data/components/heading.md +66 -0
- package/data/components/horizontal-navigation.md +568 -0
- package/data/components/icon-tab-bar-dev.md +190 -0
- package/data/components/icon-tab-bar.md +2620 -0
- package/data/components/icon.md +171 -0
- package/data/components/iconBusinessSuite.md +92 -0
- package/data/components/iconTnt.md +92 -0
- package/data/components/illustrated-message.md +439 -0
- package/data/components/info-label.md +348 -0
- package/data/components/input-group.md +2068 -0
- package/data/components/label.md +66 -0
- package/data/components/layout-grid.md +447 -0
- package/data/components/layout-panel.md +261 -0
- package/data/components/layouts-layout-grid.md +608 -0
- package/data/components/layouts-paddings.md +133 -0
- package/data/components/layouts-section.md +287 -0
- package/data/components/list-2.md +148 -0
- package/data/components/list-3.md +735 -0
- package/data/components/list-list.md +790 -0
- package/data/components/list-object-list.md +1225 -0
- package/data/components/list.md +1286 -0
- package/data/components/media-queries.md +168 -0
- package/data/components/menu.md +946 -0
- package/data/components/message-box-docs-static-ai.md +149 -0
- package/data/components/message-box-docs-static.md +527 -0
- package/data/components/message-page-upload-collection.md +678 -0
- package/data/components/message-page.md +256 -0
- package/data/components/message-strip.md +977 -0
- package/data/components/message-toast.md +119 -0
- package/data/components/micro-process-flow.md +991 -0
- package/data/components/navigation-menu.md +366 -0
- package/data/components/navigation-navigation.md +1245 -0
- package/data/components/navigation.md +2604 -0
- package/data/components/numeric-content.md +317 -0
- package/data/components/object-attribute.md +96 -0
- package/data/components/object-identifier.md +227 -0
- package/data/components/object-marker.md +202 -0
- package/data/components/object-number.md +327 -0
- package/data/components/object-status.md +1538 -0
- package/data/components/off-screen.md +87 -0
- package/data/components/overflow.md +97 -0
- package/data/components/padding.md +122 -0
- package/data/components/paddings.md +130 -0
- package/data/components/page.md +300 -0
- package/data/components/pagination.md +672 -0
- package/data/components/panel-layouts.md +345 -0
- package/data/components/panel.md +514 -0
- package/data/components/patterns-label.md +74 -0
- package/data/components/popover-2.md +906 -0
- package/data/components/popover-ai.md +466 -0
- package/data/components/popover-btp.md +886 -0
- package/data/components/popover-deprecated.md +308 -0
- package/data/components/popover-message-popover.md +683 -0
- package/data/components/popover-notification.md +1511 -0
- package/data/components/popover-patterns.md +1100 -0
- package/data/components/popover-popover.md +1862 -0
- package/data/components/popover-quick-view.md +385 -0
- package/data/components/popover-timepicker.md +1836 -0
- package/data/components/popover-user-menu.md +1303 -0
- package/data/components/popover.md +1938 -0
- package/data/components/progress-indicator.md +351 -0
- package/data/components/prompt-input-ai.md +226 -0
- package/data/components/prompt-input.md +226 -0
- package/data/components/rating-indicator.md +1469 -0
- package/data/components/resizable-card-layout.md +951 -0
- package/data/components/scrollbar.md +86 -0
- package/data/components/search-field.md +287 -0
- package/data/components/section.md +250 -0
- package/data/components/segmented-button.md +324 -0
- package/data/components/shellbar.md +2183 -0
- package/data/components/side-nav.md +1562 -0
- package/data/components/skeleton.md +243 -0
- package/data/components/slider.md +395 -0
- package/data/components/splitter.md +353 -0
- package/data/components/table.md +2749 -0
- package/data/components/tabs.md +658 -0
- package/data/components/text-text.md +380 -0
- package/data/components/text.md +253 -0
- package/data/components/tile.md +1132 -0
- package/data/components/time.md +818 -0
- package/data/components/title.md +153 -0
- package/data/components/titles.md +83 -0
- package/data/components/token.md +311 -0
- package/data/components/tokenizer.md +398 -0
- package/data/components/tool-header.md +1352 -0
- package/data/components/tool-layout.md +199 -0
- package/data/components/toolbar-ai.md +174 -0
- package/data/components/toolbar-btp.md +526 -0
- package/data/components/toolbar-title-bar.md +473 -0
- package/data/components/toolbar.md +432 -0
- package/data/components/tree.md +1031 -0
- package/data/components/typography.md +435 -0
- package/data/components/variant-management.md +360 -0
- package/data/components/vertical-nav.md +589 -0
- package/data/components/wizard.md +1429 -0
- package/data/examples/Components/dialog/device-specifications.example.html +39 -30
- package/data/examples/Components/shellbar/optional-items.example.html +210 -157
- package/data/examples/Components/shellbar/overflow-toolbar.example.html +202 -177
- package/data/examples/Components/shellbar/responsive-paddings.example.html +217 -146
- package/data/examples/Components/shellbar/responsiveness.example.html +825 -613
- package/data/examples/Components/user-menu/default.example.html +241 -83
- package/data/schemas/badge.schema.json +1 -1
- package/data/schemas/button-split.schema.json +1 -1
- package/data/schemas/component-frontmatter.schema.json +123 -0
- package/data/schemas/component-markdown.schema.json +81 -0
- package/data/schemas/counter.schema.json +1 -1
- package/data/schemas/dynamic-page.schema.json +1 -1
- package/data/schemas/dynamic-side-content.schema.json +1 -1
- package/data/schemas/facet.schema.json +1 -1
- package/data/schemas/fieldset.schema.json +1 -1
- package/data/schemas/flexible-column-layout.schema.json +1 -1
- package/data/schemas/form-group.schema.json +3 -2
- package/data/schemas/form-header.schema.json +1 -1
- package/data/schemas/form-label.schema.json +1 -0
- package/data/schemas/form-message.schema.json +1 -1
- package/data/schemas/grid-list.schema.json +1 -1
- package/data/schemas/input-group.schema.json +1 -1
- package/data/schemas/layout-panel.schema.json +1 -1
- package/data/schemas/page.schema.json +1 -1
- package/data/schemas/quick-view.schema.json +2 -1
- package/data/schemas/section.schema.json +1 -1
- package/data/schemas/side-nav.schema.json +1 -1
- package/data/schemas/splitter.schema.json +1 -1
- package/data/schemas/tabs.schema.json +1 -1
- package/data/schemas/tile.schema.json +1 -1
- package/data/schemas/tool-layout.schema.json +1 -1
- package/data/schemas/user-menu.schema.json +10 -0
- package/data/schemas/wizard.schema.json +1 -1
- package/package.json +1 -1
- package/src/data/load-catalog.d.ts +2 -0
- package/src/data/load-catalog.js +5 -1
- package/src/data/load-catalog.js.map +1 -1
- package/src/data/load-markdown-docs.d.ts +44 -0
- package/src/data/load-markdown-docs.js +179 -0
- package/src/data/load-markdown-docs.js.map +1 -0
- package/src/data/markdown-cache.d.ts +60 -0
- package/src/data/markdown-cache.js +218 -0
- package/src/data/markdown-cache.js.map +1 -0
- package/src/server.js +72 -1
- package/src/server.js.map +1 -1
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
---
|
|
2
|
+
component: fd-code
|
|
3
|
+
title: Components/Code
|
|
4
|
+
category: Components
|
|
5
|
+
selector: fd-code
|
|
6
|
+
cssFile: code.css
|
|
7
|
+
sourcePath: packages/styles/stories/Components/code/code.stories.js
|
|
8
|
+
tags: []
|
|
9
|
+
dependencies: ["code"]
|
|
10
|
+
relatedComponents: ["code"]
|
|
11
|
+
stability: stable
|
|
12
|
+
generatedAt: 2026-06-09T18:29:01.331Z
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
# Components/Code
|
|
16
|
+
|
|
17
|
+
The code component helps with formating and styling code snippets. It differantiates the code lines from the normal text.
|
|
18
|
+
|
|
19
|
+
##Usage
|
|
20
|
+
Use the code if: <br>
|
|
21
|
+
- You want to display a block of code. <br>
|
|
22
|
+
- You want to dispaly a line of code.
|
|
23
|
+
|
|
24
|
+
## Usage Guidelines
|
|
25
|
+
|
|
26
|
+
Use the code if: <br>
|
|
27
|
+
- You want to display a block of code. <br>
|
|
28
|
+
- You want to dispaly a line of code.
|
|
29
|
+
|
|
30
|
+
## Dependencies
|
|
31
|
+
|
|
32
|
+
This component depends on the following CSS files:
|
|
33
|
+
|
|
34
|
+
- `code.css`
|
|
35
|
+
|
|
36
|
+
## Installation
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
npm install fundamental-styles
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
```html
|
|
43
|
+
<!-- Include theme -->
|
|
44
|
+
<link href="node_modules/fundamental-styles/dist/theming/sap_horizon.css" rel="stylesheet">
|
|
45
|
+
|
|
46
|
+
<!-- Include component CSS -->
|
|
47
|
+
<link href="node_modules/fundamental-styles/dist/code.css" rel="stylesheet">
|
|
48
|
+
|
|
49
|
+
<!-- Include dependencies -->
|
|
50
|
+
<link href="node_modules/fundamental-styles/dist/code.css" rel="stylesheet">
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Basic Usage
|
|
54
|
+
|
|
55
|
+
```html
|
|
56
|
+
<pre><code class="fd-code">apiVersion: extensions.name/v1alpha1
|
|
57
|
+
kind: Class
|
|
58
|
+
metadata:
|
|
59
|
+
name: fundamental-extension-management
|
|
60
|
+
spec:
|
|
61
|
+
cdmUrl: {{ url.path.version1 }}://{{ .subdomain.domain }}{{ .Values.cdmPath }}
|
|
62
|
+
description: This Extension adds Extension Management to Project1
|
|
63
|
+
displayName: Extension Management
|
|
64
|
+
supportsDynamicCdmUrls: false
|
|
65
|
+
multipleInstallations: false
|
|
66
|
+
image: "data:image/png;base64,sfg87sg98f7gs9d8g7s9fgdfg"
|
|
67
|
+
installableScopes:
|
|
68
|
+
- Cluster
|
|
69
|
+
extensionConfig:
|
|
70
|
+
extensionManagerServiceUrl: https://extension-manager-name.{{ .Values.landscapeDomainName }}/graphql
|
|
71
|
+
</code></pre>
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
## Modifiers
|
|
75
|
+
|
|
76
|
+
| Class | Description |
|
|
77
|
+
|-------|-------------|
|
|
78
|
+
| `fd-code--inline` | Inline Code is used to hightlight a short snippet code inside a paragraph. |
|
|
79
|
+
|
|
80
|
+
## Related Components
|
|
81
|
+
|
|
82
|
+
This component works with or depends on:
|
|
83
|
+
|
|
84
|
+
- `code`
|
|
85
|
+
|
|
86
|
+
## Design Tokens
|
|
87
|
+
|
|
88
|
+
Key CSS variables used by this component:
|
|
89
|
+
|
|
90
|
+
- `--inline`
|
|
91
|
+
- `--sapFontSize`
|
|
92
|
+
- `--sapNeutralBackground`
|
|
93
|
+
|
|
94
|
+
## Examples
|
|
95
|
+
|
|
96
|
+
### Code Block
|
|
97
|
+
|
|
98
|
+
Code Block is a combination of multiple lines of code which can be displayed as a standalone element.
|
|
99
|
+
|
|
100
|
+
```html
|
|
101
|
+
<pre><code class="fd-code">apiVersion: extensions.name/v1alpha1
|
|
102
|
+
kind: Class
|
|
103
|
+
metadata:
|
|
104
|
+
name: fundamental-extension-management
|
|
105
|
+
spec:
|
|
106
|
+
cdmUrl: {{ url.path.version1 }}://{{ .subdomain.domain }}{{ .Values.cdmPath }}
|
|
107
|
+
description: This Extension adds Extension Management to Project1
|
|
108
|
+
displayName: Extension Management
|
|
109
|
+
supportsDynamicCdmUrls: false
|
|
110
|
+
multipleInstallations: false
|
|
111
|
+
image: "data:image/png;base64,sfg87sg98f7gs9d8g7s9fgdfg"
|
|
112
|
+
installableScopes:
|
|
113
|
+
- Cluster
|
|
114
|
+
extensionConfig:
|
|
115
|
+
extensionManagerServiceUrl: https://extension-manager-name.{{ .Values.landscapeDomainName }}/graphql
|
|
116
|
+
</code></pre>
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
### InlineCode
|
|
120
|
+
|
|
121
|
+
Inline Code is used to hightlight a short snippet code inside a paragraph.
|
|
122
|
+
|
|
123
|
+
```html
|
|
124
|
+
You can add inline code like here <code class="fd-code fd-code--inline">FundamentalExtension</code> and add mores
|
|
125
|
+
<code class="fd-code fd-code--inline">ClassName</code>
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
## Accessibility
|
|
129
|
+
|
|
130
|
+
- Use semantic HTML elements where appropriate
|
|
131
|
+
- Include proper ARIA attributes for interactive elements
|
|
132
|
+
- Ensure keyboard navigation support
|
|
133
|
+
- Provide adequate color contrast
|
|
134
|
+
|
|
135
|
+
## Source
|
|
136
|
+
|
|
137
|
+
This documentation was automatically generated from: `packages/styles/stories/Components/code/code.stories.js`
|
|
138
|
+
|
|
139
|
+
For the latest updates and interactive examples, see [Storybook](https://sap.github.io/fundamental-styles/).
|
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
---
|
|
2
|
+
component: reset
|
|
3
|
+
title: Component Reset
|
|
4
|
+
category: reset
|
|
5
|
+
selector:
|
|
6
|
+
cssFile:
|
|
7
|
+
sourcePath: packages/common-css/stories/reset/reset.stories.js
|
|
8
|
+
tags: []
|
|
9
|
+
dependencies: []
|
|
10
|
+
relatedComponents: []
|
|
11
|
+
stability: stable
|
|
12
|
+
generatedAt: 2026-06-09T18:29:01.652Z
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
# Component Reset
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
## Basic Usage
|
|
20
|
+
|
|
21
|
+
```html
|
|
22
|
+
<style>
|
|
23
|
+
.demo {
|
|
24
|
+
gap: 2rem;
|
|
25
|
+
display: flex;
|
|
26
|
+
flex-wrap: wrap;
|
|
27
|
+
align-items: flex-start;
|
|
28
|
+
}
|
|
29
|
+
.demo > div {
|
|
30
|
+
padding: 1.5rem;
|
|
31
|
+
min-width: 200px;
|
|
32
|
+
background: #fff;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/* Demonstrate reset effect */
|
|
36
|
+
.with-reset {
|
|
37
|
+
font-family: "72", "72full", Arial, Helvetica, sans-serif;
|
|
38
|
+
font-size: var(--sapFontSize);
|
|
39
|
+
line-height: normal;
|
|
40
|
+
color: var(--sapTextColor);
|
|
41
|
+
font-weight: normal;
|
|
42
|
+
box-sizing: border-box;
|
|
43
|
+
padding: 1.5rem;
|
|
44
|
+
margin: 0;
|
|
45
|
+
border: 0;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.without-reset ul {
|
|
49
|
+
padding-left: 2rem;
|
|
50
|
+
margin: 1rem 0;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.with-reset ul {
|
|
54
|
+
list-style-type: none;
|
|
55
|
+
padding: 0;
|
|
56
|
+
margin: 0;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.demo-label {
|
|
60
|
+
font-size: 0.75rem;
|
|
61
|
+
font-weight: 600;
|
|
62
|
+
color: #666;
|
|
63
|
+
margin-bottom: 1rem;
|
|
64
|
+
text-transform: uppercase;
|
|
65
|
+
letter-spacing: 0.5px;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.border-example-card {
|
|
69
|
+
background: #f7f8fa;
|
|
70
|
+
border: 0.0625rem solid #eaecee;
|
|
71
|
+
border-radius: 0.5rem;
|
|
72
|
+
padding: 1rem;
|
|
73
|
+
margin-block-end: 1rem;
|
|
74
|
+
}
|
|
75
|
+
.border-example-card h4 {
|
|
76
|
+
margin: 0 0 0.75rem 0;
|
|
77
|
+
color: #0a6ed1;
|
|
78
|
+
font-size: 0.9375rem;
|
|
79
|
+
font-weight: 600;
|
|
80
|
+
}
|
|
81
|
+
.border-example-card pre {
|
|
82
|
+
background: #fff;
|
|
83
|
+
border: 0.0625rem solid #e4e4e4;
|
|
84
|
+
border-radius: 0.25rem;
|
|
85
|
+
padding: 0.75rem 1rem;
|
|
86
|
+
margin: 0.5rem 0;
|
|
87
|
+
font-size: 0.875rem;
|
|
88
|
+
font-family: 'Courier New', Courier, monospace;
|
|
89
|
+
color: #32363a;
|
|
90
|
+
overflow-x: auto;
|
|
91
|
+
line-height: 1.5;
|
|
92
|
+
}
|
|
93
|
+
</style>
|
|
94
|
+
|
|
95
|
+
<div class="demo">
|
|
96
|
+
<div class="without-reset">
|
|
97
|
+
<div class="demo-label">Without Reset</div>
|
|
98
|
+
<ul>
|
|
99
|
+
<li>Default margin</li>
|
|
100
|
+
<li>Default padding</li>
|
|
101
|
+
<li>List style bullets</li>
|
|
102
|
+
</ul>
|
|
103
|
+
</div>
|
|
104
|
+
<div class="with-reset">
|
|
105
|
+
<div class="demo-label">With Reset</div>
|
|
106
|
+
<ul>
|
|
107
|
+
<li>No margin</li>
|
|
108
|
+
<li>No padding</li>
|
|
109
|
+
<li>No list style</li>
|
|
110
|
+
</ul>
|
|
111
|
+
</div>
|
|
112
|
+
</div>
|
|
113
|
+
|
|
114
|
+
<div class="border-example-card">
|
|
115
|
+
<h4>Reset Mixin</h4>
|
|
116
|
+
<pre>@mixin sap-reset {
|
|
117
|
+
font-family: "72", "72full", Arial, Helvetica, sans-serif;
|
|
118
|
+
font-size: var(--sapFontSize);
|
|
119
|
+
line-height: normal;
|
|
120
|
+
color: var(--sapTextColor);
|
|
121
|
+
font-weight: normal;
|
|
122
|
+
box-sizing: border-box;
|
|
123
|
+
padding: 0;
|
|
124
|
+
margin: 0;
|
|
125
|
+
border: 0;
|
|
126
|
+
text-indent: 0;
|
|
127
|
+
list-style-type: none;
|
|
128
|
+
|
|
129
|
+
&::before,
|
|
130
|
+
&::after {
|
|
131
|
+
box-sizing: inherit;
|
|
132
|
+
font-size: inherit;
|
|
133
|
+
}
|
|
134
|
+
}</pre>
|
|
135
|
+
</div>
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
## Examples
|
|
139
|
+
|
|
140
|
+
### Mixin sap-reset
|
|
141
|
+
|
|
142
|
+
The <code>sap-reset()</code> mixin can be added to any HTML element to remove some of the default styling coming from the browsers.
|
|
143
|
+
|
|
144
|
+
```html
|
|
145
|
+
<style>
|
|
146
|
+
.demo {
|
|
147
|
+
gap: 2rem;
|
|
148
|
+
display: flex;
|
|
149
|
+
flex-wrap: wrap;
|
|
150
|
+
align-items: flex-start;
|
|
151
|
+
}
|
|
152
|
+
.demo > div {
|
|
153
|
+
padding: 1.5rem;
|
|
154
|
+
min-width: 200px;
|
|
155
|
+
background: #fff;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/* Demonstrate reset effect */
|
|
159
|
+
.with-reset {
|
|
160
|
+
font-family: "72", "72full", Arial, Helvetica, sans-serif;
|
|
161
|
+
font-size: var(--sapFontSize);
|
|
162
|
+
line-height: normal;
|
|
163
|
+
color: var(--sapTextColor);
|
|
164
|
+
font-weight: normal;
|
|
165
|
+
box-sizing: border-box;
|
|
166
|
+
padding: 1.5rem;
|
|
167
|
+
margin: 0;
|
|
168
|
+
border: 0;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.without-reset ul {
|
|
172
|
+
padding-left: 2rem;
|
|
173
|
+
margin: 1rem 0;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.with-reset ul {
|
|
177
|
+
list-style-type: none;
|
|
178
|
+
padding: 0;
|
|
179
|
+
margin: 0;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.demo-label {
|
|
183
|
+
font-size: 0.75rem;
|
|
184
|
+
font-weight: 600;
|
|
185
|
+
color: #666;
|
|
186
|
+
margin-bottom: 1rem;
|
|
187
|
+
text-transform: uppercase;
|
|
188
|
+
letter-spacing: 0.5px;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.border-example-card {
|
|
192
|
+
background: #f7f8fa;
|
|
193
|
+
border: 0.0625rem solid #eaecee;
|
|
194
|
+
border-radius: 0.5rem;
|
|
195
|
+
padding: 1rem;
|
|
196
|
+
margin-block-end: 1rem;
|
|
197
|
+
}
|
|
198
|
+
.border-example-card h4 {
|
|
199
|
+
margin: 0 0 0.75rem 0;
|
|
200
|
+
color: #0a6ed1;
|
|
201
|
+
font-size: 0.9375rem;
|
|
202
|
+
font-weight: 600;
|
|
203
|
+
}
|
|
204
|
+
.border-example-card pre {
|
|
205
|
+
background: #fff;
|
|
206
|
+
border: 0.0625rem solid #e4e4e4;
|
|
207
|
+
border-radius: 0.25rem;
|
|
208
|
+
padding: 0.75rem 1rem;
|
|
209
|
+
margin: 0.5rem 0;
|
|
210
|
+
font-size: 0.875rem;
|
|
211
|
+
font-family: 'Courier New', Courier, monospace;
|
|
212
|
+
color: #32363a;
|
|
213
|
+
overflow-x: auto;
|
|
214
|
+
line-height: 1.5;
|
|
215
|
+
}
|
|
216
|
+
</style>
|
|
217
|
+
|
|
218
|
+
<div class="demo">
|
|
219
|
+
<div class="without-reset">
|
|
220
|
+
<div class="demo-label">Without Reset</div>
|
|
221
|
+
<ul>
|
|
222
|
+
<li>Default margin</li>
|
|
223
|
+
<li>Default padding</li>
|
|
224
|
+
<li>List style bullets</li>
|
|
225
|
+
</ul>
|
|
226
|
+
</div>
|
|
227
|
+
<div class="with-reset">
|
|
228
|
+
<div class="demo-label">With Reset</div>
|
|
229
|
+
<ul>
|
|
230
|
+
<li>No margin</li>
|
|
231
|
+
<li>No padding</li>
|
|
232
|
+
<li>No list style</li>
|
|
233
|
+
</ul>
|
|
234
|
+
</div>
|
|
235
|
+
</div>
|
|
236
|
+
|
|
237
|
+
<div class="border-example-card">
|
|
238
|
+
<h4>Reset Mixin</h4>
|
|
239
|
+
<pre>@mixin sap-reset {
|
|
240
|
+
font-family: "72", "72full", Arial, Helvetica, sans-serif;
|
|
241
|
+
font-size: var(--sapFontSize);
|
|
242
|
+
line-height: normal;
|
|
243
|
+
color: var(--sapTextColor);
|
|
244
|
+
font-weight: normal;
|
|
245
|
+
box-sizing: border-box;
|
|
246
|
+
padding: 0;
|
|
247
|
+
margin: 0;
|
|
248
|
+
border: 0;
|
|
249
|
+
text-indent: 0;
|
|
250
|
+
list-style-type: none;
|
|
251
|
+
|
|
252
|
+
&::before,
|
|
253
|
+
&::after {
|
|
254
|
+
box-sizing: inherit;
|
|
255
|
+
font-size: inherit;
|
|
256
|
+
}
|
|
257
|
+
}</pre>
|
|
258
|
+
</div>
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
## Accessibility
|
|
262
|
+
|
|
263
|
+
- Use semantic HTML elements where appropriate
|
|
264
|
+
- Include proper ARIA attributes for interactive elements
|
|
265
|
+
- Ensure keyboard navigation support
|
|
266
|
+
- Provide adequate color contrast
|
|
267
|
+
|
|
268
|
+
## Source
|
|
269
|
+
|
|
270
|
+
This documentation was automatically generated from: `packages/common-css/stories/reset/reset.stories.js`
|
|
271
|
+
|
|
272
|
+
For the latest updates and interactive examples, see [Storybook](https://sap.github.io/fundamental-styles/).
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
---
|
|
2
|
+
component: iconBusinessSuite
|
|
3
|
+
title: Components/Icons/BusinessSuiteInAppSymbol Icons
|
|
4
|
+
category: Components
|
|
5
|
+
selector:
|
|
6
|
+
cssFile:
|
|
7
|
+
sourcePath: packages/styles/stories/Components/Icons/icon/BusinessSuiteInAppSymbols/iconBusinessSuite.stories.js
|
|
8
|
+
tags: []
|
|
9
|
+
dependencies: []
|
|
10
|
+
relatedComponents: []
|
|
11
|
+
stability: stable
|
|
12
|
+
generatedAt: 2026-06-09T18:29:01.650Z
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
# Components/Icons/BusinessSuiteInAppSymbol Icons
|
|
16
|
+
|
|
17
|
+
Icons are used to provide visual clarity, save screen space, and help guide users as they navigate an application. They are often used as visual elements within other components, although they can be used independently, given that they can be read by screen readers or have a tooltip for accessibility purposes. See [Project Confirguration](https://sap.github.io/fundamental-styles/?path=/docs/introduction-overview--page) for instructions on how to use the 'BusinessSuiteInAppSymbols' icon font on your page.
|
|
18
|
+
|
|
19
|
+
##Usage
|
|
20
|
+
**Use the icon if:**
|
|
21
|
+
|
|
22
|
+
- You want to display an icon for illustrative purposes only, without interaction states, acting as a non-interactive icon/pictogram.
|
|
23
|
+
- You intend to pair the icon with another method of communication i.e. with text or a tooltip.
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
Note: If an icon needs to be selected or have any interaction states, it is recommended to use the transparent button style. See **Button** for more details on how to implement it.
|
|
27
|
+
|
|
28
|
+
## Usage Guidelines
|
|
29
|
+
|
|
30
|
+
**Use the icon if:**
|
|
31
|
+
|
|
32
|
+
- You want to display an icon for illustrative purposes only, without interaction states, acting as a non-interactive icon/pictogram.
|
|
33
|
+
- You intend to pair the icon with another method of communication i.e. with text or a tooltip.
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
Note: If an icon needs to be selected or have any interaction states, it is recommended to use the transparent button style. See **Button** for more details on how to implement it.
|
|
37
|
+
|
|
38
|
+
## Basic Usage
|
|
39
|
+
|
|
40
|
+
```html
|
|
41
|
+
<span class="sap-icon-businessSuiteInAppSymbols sap-icon-businessSuiteInAppSymbols--heart"></span>
|
|
42
|
+
<span class="sap-icon-businessSuiteInAppSymbols sap-icon-businessSuiteInAppSymbols--heart"></span>
|
|
43
|
+
<span class="sap-icon-businessSuiteInAppSymbols sap-icon-businessSuiteInAppSymbols--heart"></span>
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## Examples
|
|
47
|
+
|
|
48
|
+
### Sizes
|
|
49
|
+
|
|
50
|
+
Icons don’t have predefined sizes because they align with the font size value. They are vector graphics, meaning they can be easily resized without compromising their appearance. And because icons are essentially a font, there are unlimited sizes.
|
|
51
|
+
|
|
52
|
+
```html
|
|
53
|
+
<span class="sap-icon-businessSuiteInAppSymbols sap-icon-businessSuiteInAppSymbols--heart"></span>
|
|
54
|
+
<span class="sap-icon-businessSuiteInAppSymbols sap-icon-businessSuiteInAppSymbols--heart"></span>
|
|
55
|
+
<span class="sap-icon-businessSuiteInAppSymbols sap-icon-businessSuiteInAppSymbols--heart"></span>
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
### Colors
|
|
59
|
+
|
|
60
|
+
```html
|
|
61
|
+
<span class="sap-icon-businessSuiteInAppSymbols sap-icon-businessSuiteInAppSymbols--heart"></span>
|
|
62
|
+
<span class="sap-icon-businessSuiteInAppSymbols sap-icon-businessSuiteInAppSymbols--heart sap-icon-businessSuiteInAppSymbols--color-default"></span>
|
|
63
|
+
<span class="sap-icon-businessSuiteInAppSymbols sap-icon-businessSuiteInAppSymbols--heart sap-icon-businessSuiteInAppSymbols--color-contrast sap-icon-businessSuiteInAppSymbols--background-contrast"></span>
|
|
64
|
+
<span class="sap-icon-businessSuiteInAppSymbols sap-icon-businessSuiteInAppSymbols--heart sap-icon-businessSuiteInAppSymbols--color-non-interactive"></span>
|
|
65
|
+
<span class="sap-icon-businessSuiteInAppSymbols sap-icon-businessSuiteInAppSymbols--heart sap-icon-businessSuiteInAppSymbols--color-tile"></span>
|
|
66
|
+
<span class="sap-icon-businessSuiteInAppSymbols sap-icon-businessSuiteInAppSymbols--heart sap-icon-businessSuiteInAppSymbols--color-marker"></span>
|
|
67
|
+
<span class="sap-icon-businessSuiteInAppSymbols sap-icon-businessSuiteInAppSymbols--heart sap-icon-businessSuiteInAppSymbols--color-critical"></span>
|
|
68
|
+
<span class="sap-icon-businessSuiteInAppSymbols sap-icon-businessSuiteInAppSymbols--heart sap-icon-businessSuiteInAppSymbols--color-negative"></span>
|
|
69
|
+
<span class="sap-icon-businessSuiteInAppSymbols sap-icon-businessSuiteInAppSymbols--heart sap-icon-businessSuiteInAppSymbols--color-neutral"></span>
|
|
70
|
+
<span class="sap-icon-businessSuiteInAppSymbols sap-icon-businessSuiteInAppSymbols--heart sap-icon-businessSuiteInAppSymbols--color-positive"></span>
|
|
71
|
+
<span class="sap-icon-businessSuiteInAppSymbols sap-icon-businessSuiteInAppSymbols--heart sap-icon-businessSuiteInAppSymbols--color-information"></span>
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
## Accessibility
|
|
75
|
+
|
|
76
|
+
- Use semantic HTML elements where appropriate
|
|
77
|
+
- Include proper ARIA attributes for interactive elements
|
|
78
|
+
- Ensure keyboard navigation support
|
|
79
|
+
- Provide adequate color contrast
|
|
80
|
+
|
|
81
|
+
## Source
|
|
82
|
+
|
|
83
|
+
This documentation was automatically generated from: `packages/styles/stories/Components/Icons/icon/BusinessSuiteInAppSymbols/iconBusinessSuite.stories.js`
|
|
84
|
+
|
|
85
|
+
For the latest updates and interactive examples, see [Storybook](https://sap.github.io/fundamental-styles/).
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
---
|
|
2
|
+
component: icon
|
|
3
|
+
title: Components/Icons/SAP Icons
|
|
4
|
+
category: Components
|
|
5
|
+
selector:
|
|
6
|
+
cssFile:
|
|
7
|
+
sourcePath: packages/styles/stories/Components/Icons/icon/SAPIcons/icon.stories.js
|
|
8
|
+
tags: []
|
|
9
|
+
dependencies: []
|
|
10
|
+
relatedComponents: []
|
|
11
|
+
stability: stable
|
|
12
|
+
generatedAt: 2026-06-09T18:29:01.526Z
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
# Components/Icons/SAP Icons
|
|
16
|
+
|
|
17
|
+
Icons are used to provide visual clarity, save screen space, and help guide users as they navigate an application. They are often used as visual elements within other components, although they can be used independently, given that they can be read by screen readers or have a tooltip for accessibility purposes. See [Project Confirguration](https://sap.github.io/fundamental-styles/?path=/docs/introduction--overview#icons) for instructions on how to use the SAP icon font on your page.
|
|
18
|
+
|
|
19
|
+
##Usage
|
|
20
|
+
**Use the icon if:**
|
|
21
|
+
|
|
22
|
+
- You want to display an icon for illustrative purposes only, without interaction states, acting as a non-interactive icon/pictogram.
|
|
23
|
+
- You intend to pair the icon with another method of communication i.e. with text or a tooltip.
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
Note: If an icon needs to be selected or have any interaction states, it is recommended to use the transparent button style. See **Button** for more details on how to implement it.
|
|
27
|
+
|
|
28
|
+
## Usage Guidelines
|
|
29
|
+
|
|
30
|
+
**Use the icon if:**
|
|
31
|
+
|
|
32
|
+
- You want to display an icon for illustrative purposes only, without interaction states, acting as a non-interactive icon/pictogram.
|
|
33
|
+
- You intend to pair the icon with another method of communication i.e. with text or a tooltip.
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
Note: If an icon needs to be selected or have any interaction states, it is recommended to use the transparent button style. See **Button** for more details on how to implement it.
|
|
37
|
+
|
|
38
|
+
## Basic Usage
|
|
39
|
+
|
|
40
|
+
```html
|
|
41
|
+
<span class="sap-icon sap-icon--cart" role="presentation" aria-hidden="true" aria-label="cart"></span>
|
|
42
|
+
<span class="sap-icon sap-icon--cart" role="presentation" aria-hidden="true" aria-label="cart"></span>
|
|
43
|
+
<span class="sap-icon sap-icon--cart" role="presentation" aria-hidden="true" aria-label="cart"></span>
|
|
44
|
+
<span class="sap-icon sap-icon--cart" role="presentation" aria-hidden="true" aria-label="cart"></span>
|
|
45
|
+
<span class="sap-icon sap-icon--cart" role="presentation" aria-hidden="true" aria-label="cart"></span>
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## States
|
|
49
|
+
|
|
50
|
+
| Class | Description |
|
|
51
|
+
|-------|-------------|
|
|
52
|
+
| `is-focus` | Focus state |
|
|
53
|
+
|
|
54
|
+
## Examples
|
|
55
|
+
|
|
56
|
+
### Sizes
|
|
57
|
+
|
|
58
|
+
Icons don’t have predefined sizes because they align with the font size value. They are vector graphics, meaning they can be easily resized without compromising their appearance. And because icons are essentially a font, there are unlimited sizes.
|
|
59
|
+
|
|
60
|
+
```html
|
|
61
|
+
<span class="sap-icon sap-icon--cart" role="presentation" aria-hidden="true" aria-label="cart"></span>
|
|
62
|
+
<span class="sap-icon sap-icon--cart" role="presentation" aria-hidden="true" aria-label="cart"></span>
|
|
63
|
+
<span class="sap-icon sap-icon--cart" role="presentation" aria-hidden="true" aria-label="cart"></span>
|
|
64
|
+
<span class="sap-icon sap-icon--cart" role="presentation" aria-hidden="true" aria-label="cart"></span>
|
|
65
|
+
<span class="sap-icon sap-icon--cart" role="presentation" aria-hidden="true" aria-label="cart"></span>
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
### Colors
|
|
69
|
+
|
|
70
|
+
There are different semantic statuses that can be applied to the icon by adding a modifier class.<br><br>
|
|
71
|
+
|
|
72
|
+
| **Status** | **Modifier class** |
|
|
73
|
+
| --------------: | :------------------------------- |
|
|
74
|
+
| Default | \
|
|
75
|
+
|
|
76
|
+
```html
|
|
77
|
+
<h4>Design</h4>
|
|
78
|
+
<span class="sap-icon sap-icon--da is-focus" tabindex="0" role="button" aria-label="diamond"></span>
|
|
79
|
+
<span class="sap-icon sap-icon--da sap-icon--color-default" role="presentation" aria-label="diamond"></span>
|
|
80
|
+
<span class="sap-icon sap-icon--da sap-icon--color-contrast" role="presentation" aria-hidden="true" aria-label="diamond"></span>
|
|
81
|
+
<span class="sap-icon sap-icon--da sap-icon--color-non-interactive" role="presentation" aria-hidden="true" aria-label="diamond"></span>
|
|
82
|
+
<span class="sap-icon sap-icon--da sap-icon--color-tile" role="presentation" aria-hidden="true" aria-label="diamond"></span>
|
|
83
|
+
<span class="sap-icon sap-icon--da sap-icon--color-marker" role="presentation" aria-hidden="true" aria-label="diamond"></span>
|
|
84
|
+
<span class="sap-icon sap-icon--da sap-icon--color-critical" role="presentation" aria-hidden="true" aria-label="diamond"></span>
|
|
85
|
+
<span class="sap-icon sap-icon--da sap-icon--color-negative" role="presentation" aria-hidden="true" aria-label="diamond"></span>
|
|
86
|
+
<span class="sap-icon sap-icon--da sap-icon--color-neutral" role="presentation" aria-hidden="true" aria-label="diamond"></span>
|
|
87
|
+
<span class="sap-icon sap-icon--da sap-icon--color-positive" role="presentation" aria-hidden="true" aria-label="diamond"></span>
|
|
88
|
+
<span class="sap-icon sap-icon--da sap-icon--color-information" role="presentation" aria-hidden="true" aria-label="diamond"></span>
|
|
89
|
+
|
|
90
|
+
<h4>Custom colors</h4>
|
|
91
|
+
<span class="sap-icon sap-icon--ai" role="button" aria-label="ai" tabindex="0"></span>
|
|
92
|
+
<span class="sap-icon sap-icon--ai" role="presentation" aria-hidden="true" aria-label="ai"></span>
|
|
93
|
+
<span class="sap-icon sap-icon--ai" role="presentation" aria-hidden="true" aria-label="ai"></span>
|
|
94
|
+
<span class="sap-icon sap-icon--ai" role="presentation" aria-hidden="true" aria-label="ai"></span>
|
|
95
|
+
<span class="sap-icon sap-icon--ai" role="presentation" aria-hidden="true" aria-label="ai"></span>
|
|
96
|
+
<span class="sap-icon sap-icon--ai" role="presentation" aria-hidden="true" aria-label="ai"></span>
|
|
97
|
+
<span class="sap-icon sap-icon--ai" role="presentation" aria-hidden="true" aria-label="ai"></span>
|
|
98
|
+
<span class="sap-icon sap-icon--ai" role="presentation" aria-hidden="true" aria-label="ai"></span>
|
|
99
|
+
<span class="sap-icon sap-icon--ai" role="presentation" aria-hidden="true" aria-label="ai"></span>
|
|
100
|
+
<span class="sap-icon sap-icon--ai" role="presentation" aria-hidden="true" aria-label="ai"></span>
|
|
101
|
+
<span class="sap-icon sap-icon--ai" role="presentation" aria-hidden="true" aria-label="ai"></span>
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
### Backgrounds
|
|
105
|
+
|
|
106
|
+
There are different semantic statuses that can be applied to the icon background by adding a modifier class.<br><br>
|
|
107
|
+
|
|
108
|
+
| **Status** | **Modifier class** |
|
|
109
|
+
| --------------: | :------------------------------- |
|
|
110
|
+
| Default | \
|
|
111
|
+
|
|
112
|
+
```html
|
|
113
|
+
<span class="sap-icon sap-icon--video is-focus" role="button" aria-label="video" tabindex="0"></span>
|
|
114
|
+
|
|
115
|
+
<span class="sap-icon sap-icon--wrench sap-icon--background-default" role="presentation" aria-hidden="true" aria-label="wrench"></span>
|
|
116
|
+
|
|
117
|
+
<span class="sap-icon sap-icon--lightbulb sap-icon--background-contrast" role="presentation" aria-hidden="true" aria-label="lightbulb"></span>
|
|
118
|
+
|
|
119
|
+
<span class="sap-icon sap-icon--employee sap-icon--background-non-interactive" role="presentation" aria-hidden="true" aria-label="employee"></span>
|
|
120
|
+
|
|
121
|
+
<span class="sap-icon sap-icon--complete sap-icon--background-tile" role="presentation" aria-hidden="true" aria-label="complete"></span>
|
|
122
|
+
|
|
123
|
+
<span class="sap-icon sap-icon--basket sap-icon--background-marker" role="presentation" aria-hidden="true" aria-label="basket"></span>
|
|
124
|
+
|
|
125
|
+
<span class="sap-icon sap-icon--calendar sap-icon--background-critical" role="presentation" aria-hidden="true" aria-label="calendar"></span>
|
|
126
|
+
|
|
127
|
+
<span class="sap-icon sap-icon--hint sap-icon--background-negative" role="presentation" aria-hidden="true" aria-label="hint"></span>
|
|
128
|
+
|
|
129
|
+
<span class="sap-icon sap-icon--favorite sap-icon--background-neutral" role="presentation" aria-hidden="true" aria-label="favorite"></span>
|
|
130
|
+
|
|
131
|
+
<span class="sap-icon sap-icon--home sap-icon--background-positive" role="presentation" aria-hidden="true" aria-label="home"></span>
|
|
132
|
+
|
|
133
|
+
<span class="sap-icon sap-icon--database sap-icon--background-information" role="presentation" aria-hidden="true" aria-label="database"></span>
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
## Accessibility
|
|
137
|
+
|
|
138
|
+
- Use semantic HTML elements where appropriate
|
|
139
|
+
- Include proper ARIA attributes for interactive elements
|
|
140
|
+
- Ensure keyboard navigation support
|
|
141
|
+
- Provide adequate color contrast
|
|
142
|
+
|
|
143
|
+
## Source
|
|
144
|
+
|
|
145
|
+
This documentation was automatically generated from: `packages/styles/stories/Components/Icons/icon/SAPIcons/icon.stories.js`
|
|
146
|
+
|
|
147
|
+
For the latest updates and interactive examples, see [Storybook](https://sap.github.io/fundamental-styles/).
|