@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,398 @@
|
|
|
1
|
+
---
|
|
2
|
+
component: fd-tokenizer
|
|
3
|
+
title: Components/Tokenizer
|
|
4
|
+
category: Components
|
|
5
|
+
selector: fd-tokenizer
|
|
6
|
+
cssFile: tokenizer.css
|
|
7
|
+
sourcePath: packages/styles/stories/Components/tokenizer/tokenizer.stories.js
|
|
8
|
+
tags: []
|
|
9
|
+
dependencies: ["input","token","tokenizer"]
|
|
10
|
+
relatedComponents: ["input","token","tokenizer"]
|
|
11
|
+
stability: stable
|
|
12
|
+
generatedAt: 2026-06-09T18:29:01.477Z
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
# Components/Tokenizer
|
|
16
|
+
|
|
17
|
+
Tokenizer is a container that wraps multiple tokens. The Tokenizer is used either stand alone or within Input controls such as **MultiInput**.In cozy mode the user can swipe the tokens to the left or right.
|
|
18
|
+
|
|
19
|
+
##Usage
|
|
20
|
+
- Use tokenizer in the **Multi Input**, **Multi Combobox**, or as a standalone component.
|
|
21
|
+
|
|
22
|
+
## Usage Guidelines
|
|
23
|
+
|
|
24
|
+
- Use tokenizer in the **Multi Input**, **Multi Combobox**, or as a standalone component.
|
|
25
|
+
|
|
26
|
+
## Dependencies
|
|
27
|
+
|
|
28
|
+
This component depends on the following CSS files:
|
|
29
|
+
|
|
30
|
+
- `input.css`
|
|
31
|
+
- `token.css`
|
|
32
|
+
- `tokenizer.css`
|
|
33
|
+
|
|
34
|
+
## Installation
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
npm install fundamental-styles
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
```html
|
|
41
|
+
<!-- Include theme -->
|
|
42
|
+
<link href="node_modules/fundamental-styles/dist/theming/sap_horizon.css" rel="stylesheet">
|
|
43
|
+
|
|
44
|
+
<!-- Include component CSS -->
|
|
45
|
+
<link href="node_modules/fundamental-styles/dist/tokenizer.css" rel="stylesheet">
|
|
46
|
+
|
|
47
|
+
<!-- Include dependencies -->
|
|
48
|
+
<link href="node_modules/fundamental-styles/dist/input.css" rel="stylesheet">
|
|
49
|
+
<link href="node_modules/fundamental-styles/dist/token.css" rel="stylesheet">
|
|
50
|
+
<link href="node_modules/fundamental-styles/dist/tokenizer.css" rel="stylesheet">
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Basic Usage
|
|
54
|
+
|
|
55
|
+
```html
|
|
56
|
+
<div class="fd-tokenizer ">
|
|
57
|
+
<div class="fd-tokenizer__inner">
|
|
58
|
+
<input class="fd-input fd-tokenizer__input" aria-label="Tokenizer input" placeholder="Type Ahead"/>
|
|
59
|
+
</div>
|
|
60
|
+
</div>
|
|
61
|
+
<div class="fd-tokenizer">
|
|
62
|
+
<div class="fd-tokenizer__inner">
|
|
63
|
+
<span class="fd-token" role="button" tabindex="0">
|
|
64
|
+
<span class="fd-token__text">
|
|
65
|
+
Bibendum
|
|
66
|
+
</span>
|
|
67
|
+
<button class="fd-token__close" tabindex="-1" aria-label="Token close"></button>
|
|
68
|
+
</span>
|
|
69
|
+
<span class="fd-token" role="button" tabindex="0">
|
|
70
|
+
<span class="fd-token__text">
|
|
71
|
+
Lorem
|
|
72
|
+
</span>
|
|
73
|
+
<button class="fd-token__close" tabindex="-1" aria-label="Token close"></button>
|
|
74
|
+
</span>
|
|
75
|
+
<span class="fd-token" role="button" tabindex="0">
|
|
76
|
+
<span class="fd-token__text">
|
|
77
|
+
Dolor
|
|
78
|
+
</span>
|
|
79
|
+
<button class="fd-token__close" tabindex="-1" aria-label="Token close"></button>
|
|
80
|
+
</span>
|
|
81
|
+
<span class="fd-token" role="button" tabindex="0">
|
|
82
|
+
<span class="fd-token__text">
|
|
83
|
+
Filter
|
|
84
|
+
</span>
|
|
85
|
+
<button class="fd-token__close" tabindex="-1" aria-label="Token close"></button>
|
|
86
|
+
</span>
|
|
87
|
+
<span class="fd-token fd-token--readonly">
|
|
88
|
+
<span class="fd-token__text">
|
|
89
|
+
Lorem
|
|
90
|
+
</span>
|
|
91
|
+
</span>
|
|
92
|
+
<input class="fd-input fd-tokenizer__input" aria-label="Tokenizer input" placeholder="Type Ahead"/>
|
|
93
|
+
</div>
|
|
94
|
+
</div>
|
|
95
|
+
<div class="fd-tokenizer is-focus">
|
|
96
|
+
<div class="fd-tokenizer__inner">
|
|
97
|
+
<span class="fd-token" role="button" tabindex="0">
|
|
98
|
+
<span class="fd-token__text">
|
|
99
|
+
Bibendum
|
|
100
|
+
</span>
|
|
101
|
+
<button class="fd-token__close" tabindex="-1" aria-label="Token close"></button>
|
|
102
|
+
</span>
|
|
103
|
+
<span class="fd-token" role="button" tabindex="0">
|
|
104
|
+
<span class="fd-token__text">
|
|
105
|
+
Lorem
|
|
106
|
+
</span>
|
|
107
|
+
<button class="fd-token__close" tabindex="-1" aria-label="Token close"></button>
|
|
108
|
+
</span>
|
|
109
|
+
<span class="fd-token" role="button" tabindex="0">
|
|
110
|
+
<span class="fd-token__text">
|
|
111
|
+
Dolor
|
|
112
|
+
</span>
|
|
113
|
+
<button class="fd-token__close" tabindex="-1" aria-label="Token close"></button>
|
|
114
|
+
</span>
|
|
115
|
+
<span class="fd-token" role="button" tabindex="0">
|
|
116
|
+
<span class="fd-token__text">
|
|
117
|
+
Filter
|
|
118
|
+
</span>
|
|
119
|
+
<button class="fd-token__close" tabindex="-1" aria-label="Token close"></button>
|
|
120
|
+
</span>
|
|
121
|
+
<span class="fd-token fd-token--readonly">
|
|
122
|
+
<span class="fd-token__text">
|
|
123
|
+
Lorem
|
|
124
|
+
</span>
|
|
125
|
+
</span>
|
|
126
|
+
<input class="fd-input fd-tokenizer__input" aria-label="Tokenizer input"/>
|
|
127
|
+
</div>
|
|
128
|
+
</div>
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
## Modifiers
|
|
132
|
+
|
|
133
|
+
| Class | Description |
|
|
134
|
+
|-------|-------------|
|
|
135
|
+
| `fd-tokenizer--display` | Style variant |
|
|
136
|
+
| `fd-tokenizer--readonly` | Style variant |
|
|
137
|
+
| `fd-tokenizer--scrollable` | The tokenizer can be scrollable by adding the \ |
|
|
138
|
+
|
|
139
|
+
## States
|
|
140
|
+
|
|
141
|
+
| Class | Description |
|
|
142
|
+
|-------|-------------|
|
|
143
|
+
| `is-focus` | Focus state |
|
|
144
|
+
|
|
145
|
+
## BEM Elements
|
|
146
|
+
|
|
147
|
+
This component uses the following BEM elements:
|
|
148
|
+
|
|
149
|
+
- `fd-tokenizer__inner`
|
|
150
|
+
- `fd-tokenizer__input`
|
|
151
|
+
|
|
152
|
+
## Related Components
|
|
153
|
+
|
|
154
|
+
This component works with or depends on:
|
|
155
|
+
|
|
156
|
+
- `input`
|
|
157
|
+
- `token`
|
|
158
|
+
- `tokenizer`
|
|
159
|
+
|
|
160
|
+
## Design Tokens
|
|
161
|
+
|
|
162
|
+
Key CSS variables used by this component:
|
|
163
|
+
|
|
164
|
+
- `--button`
|
|
165
|
+
- `--compact`
|
|
166
|
+
- `--display`
|
|
167
|
+
- `--fdInput_Field_Compact_Min_Width`
|
|
168
|
+
- `--fdTokenizer_Indicator_Color`
|
|
169
|
+
- `--fdTokenizer_Inner_Padding`
|
|
170
|
+
- `--readonly`
|
|
171
|
+
- `--sapContent_FocusColor`
|
|
172
|
+
- `--sapContent_FocusStyle`
|
|
173
|
+
- `--sapContent_FocusWidth`
|
|
174
|
+
- `--sapField_ReadOnly_Background`
|
|
175
|
+
- `--scrollable`
|
|
176
|
+
|
|
177
|
+
## Examples
|
|
178
|
+
|
|
179
|
+
### Tokenizer
|
|
180
|
+
|
|
181
|
+
```html
|
|
182
|
+
<div class="fd-tokenizer ">
|
|
183
|
+
<div class="fd-tokenizer__inner">
|
|
184
|
+
<input class="fd-input fd-tokenizer__input" aria-label="Tokenizer input" placeholder="Type Ahead"/>
|
|
185
|
+
</div>
|
|
186
|
+
</div>
|
|
187
|
+
<div class="fd-tokenizer">
|
|
188
|
+
<div class="fd-tokenizer__inner">
|
|
189
|
+
<span class="fd-token" role="button" tabindex="0">
|
|
190
|
+
<span class="fd-token__text">
|
|
191
|
+
Bibendum
|
|
192
|
+
</span>
|
|
193
|
+
<button class="fd-token__close" tabindex="-1" aria-label="Token close"></button>
|
|
194
|
+
</span>
|
|
195
|
+
<span class="fd-token" role="button" tabindex="0">
|
|
196
|
+
<span class="fd-token__text">
|
|
197
|
+
Lorem
|
|
198
|
+
</span>
|
|
199
|
+
<button class="fd-token__close" tabindex="-1" aria-label="Token close"></button>
|
|
200
|
+
</span>
|
|
201
|
+
<span class="fd-token" role="button" tabindex="0">
|
|
202
|
+
<span class="fd-token__text">
|
|
203
|
+
Dolor
|
|
204
|
+
</span>
|
|
205
|
+
<button class="fd-token__close" tabindex="-1" aria-label="Token close"></button>
|
|
206
|
+
</span>
|
|
207
|
+
<span class="fd-token" role="button" tabindex="0">
|
|
208
|
+
<span class="fd-token__text">
|
|
209
|
+
Filter
|
|
210
|
+
</span>
|
|
211
|
+
<button class="fd-token__close" tabindex="-1" aria-label="Token close"></button>
|
|
212
|
+
</span>
|
|
213
|
+
<span class="fd-token fd-token--readonly">
|
|
214
|
+
<span class="fd-token__text">
|
|
215
|
+
Lorem
|
|
216
|
+
</span>
|
|
217
|
+
</span>
|
|
218
|
+
<input class="fd-input fd-tokenizer__input" aria-label="Tokenizer input" placeholder="Type Ahead"/>
|
|
219
|
+
</div>
|
|
220
|
+
</div>
|
|
221
|
+
<div class="fd-tokenizer is-focus">
|
|
222
|
+
<div class="fd-tokenizer__inner">
|
|
223
|
+
<span class="fd-token" role="button" tabindex="0">
|
|
224
|
+
<span class="fd-token__text">
|
|
225
|
+
Bibendum
|
|
226
|
+
</span>
|
|
227
|
+
<button class="fd-token__close" tabindex="-1" aria-label="Token close"></button>
|
|
228
|
+
</span>
|
|
229
|
+
<span class="fd-token" role="button" tabindex="0">
|
|
230
|
+
<span class="fd-token__text">
|
|
231
|
+
Lorem
|
|
232
|
+
</span>
|
|
233
|
+
<button class="fd-token__close" tabindex="-1" aria-label="Token close"></button>
|
|
234
|
+
</span>
|
|
235
|
+
<span class="fd-token" role="button" tabindex="0">
|
|
236
|
+
<span class="fd-token__text">
|
|
237
|
+
Dolor
|
|
238
|
+
</span>
|
|
239
|
+
<button class="fd-token__close" tabindex="-1" aria-label="Token close"></button>
|
|
240
|
+
</span>
|
|
241
|
+
<span class="fd-token" role="button" tabindex="0">
|
|
242
|
+
<span class="fd-token__text">
|
|
243
|
+
Filter
|
|
244
|
+
</span>
|
|
245
|
+
<button class="fd-token__close" tabindex="-1" aria-label="Token close"></button>
|
|
246
|
+
</span>
|
|
247
|
+
<span class="fd-token fd-token--readonly">
|
|
248
|
+
<span class="fd-token__text">
|
|
249
|
+
Lorem
|
|
250
|
+
</span>
|
|
251
|
+
</span>
|
|
252
|
+
<input class="fd-input fd-tokenizer__input" aria-label="Tokenizer input"/>
|
|
253
|
+
</div>
|
|
254
|
+
</div>
|
|
255
|
+
```
|
|
256
|
+
|
|
257
|
+
### Readonly and Display-only Modes
|
|
258
|
+
|
|
259
|
+
```html
|
|
260
|
+
<style>
|
|
261
|
+
.docs-tokenizer {
|
|
262
|
+
width: 100%;
|
|
263
|
+
}
|
|
264
|
+
</style>
|
|
265
|
+
|
|
266
|
+
<section class="docs-tokenizer">
|
|
267
|
+
<div>
|
|
268
|
+
<div>Readonly Mode:</div>
|
|
269
|
+
<div class="fd-tokenizer fd-tokenizer--readonly">
|
|
270
|
+
<div class="fd-tokenizer__inner">
|
|
271
|
+
<span class="fd-token fd-token--readonly" role="button" tabindex="0">
|
|
272
|
+
<span class="fd-token__text"> Bibendum </span>
|
|
273
|
+
</span>
|
|
274
|
+
<span class="fd-token fd-token--readonly" role="button" tabindex="0">
|
|
275
|
+
<span class="fd-token__text"> Lorem </span>
|
|
276
|
+
</span>
|
|
277
|
+
<span class="fd-token fd-token--readonly" role="button" tabindex="0">
|
|
278
|
+
<span class="fd-token__text"> Dolor </span>
|
|
279
|
+
</span>
|
|
280
|
+
<span class="fd-token fd-token--readonly" role="button" tabindex="0">
|
|
281
|
+
<span class="fd-token__text"> Filter </span>
|
|
282
|
+
</span>
|
|
283
|
+
<span class="fd-token fd-token--readonly" role="button" tabindex="0">
|
|
284
|
+
<span class="fd-token__text"> Lorem </span>
|
|
285
|
+
</span>
|
|
286
|
+
<input class="fd-input fd-tokenizer__input" aria-label="Tokenizer input" />
|
|
287
|
+
</div>
|
|
288
|
+
</div>
|
|
289
|
+
</div>
|
|
290
|
+
<div>
|
|
291
|
+
<div>Display-only Mode:</div>
|
|
292
|
+
<div class="fd-tokenizer fd-tokenizer--display">
|
|
293
|
+
<div class="fd-tokenizer__inner">
|
|
294
|
+
<span class="fd-token fd-token--display" role="presentation" tabindex="0">
|
|
295
|
+
<span class="fd-token__text"> Bibendum </span>
|
|
296
|
+
</span>
|
|
297
|
+
<span class="fd-token fd-token--display" role="presentation" tabindex="0">
|
|
298
|
+
<span class="fd-token__text"> Lorem </span>
|
|
299
|
+
</span>
|
|
300
|
+
<span class="fd-token fd-token--display" role="presentation" tabindex="0">
|
|
301
|
+
<span class="fd-token__text"> Dolor </span>
|
|
302
|
+
</span>
|
|
303
|
+
<span class="fd-token fd-token--display" role="presentation" tabindex="0">
|
|
304
|
+
<span class="fd-token__text"> Filter </span>
|
|
305
|
+
</span>
|
|
306
|
+
<span class="fd-token fd-token--display" role="presentation" tabindex="0">
|
|
307
|
+
<span class="fd-token__text"> Lorem </span>
|
|
308
|
+
</span>
|
|
309
|
+
<input class="fd-input fd-tokenizer__input" aria-label="Tokenizer input" />
|
|
310
|
+
</div>
|
|
311
|
+
</div>
|
|
312
|
+
</div>
|
|
313
|
+
</section>
|
|
314
|
+
```
|
|
315
|
+
|
|
316
|
+
### Scrollable tokenizer
|
|
317
|
+
|
|
318
|
+
The tokenizer can be scrollable by adding the \
|
|
319
|
+
|
|
320
|
+
```html
|
|
321
|
+
<div class="fd-tokenizer fd-tokenizer--scrollable">
|
|
322
|
+
<div class="fd-tokenizer__inner" id="tokenizer-scrollable">
|
|
323
|
+
<span class="fd-token" role="button" tabindex="0">
|
|
324
|
+
<span class="fd-token__text">
|
|
325
|
+
Long Token Option 1
|
|
326
|
+
</span>
|
|
327
|
+
<button class="fd-token__close" tabindex="-1" aria-label="Token close"></button>
|
|
328
|
+
</span>
|
|
329
|
+
<span class="fd-token" role="button" tabindex="0">
|
|
330
|
+
<span class="fd-token__text">
|
|
331
|
+
Long Token Option 2
|
|
332
|
+
</span>
|
|
333
|
+
<button class="fd-token__close" tabindex="-1" aria-label="Token close"></button>
|
|
334
|
+
</span>
|
|
335
|
+
<span class="fd-token" role="button" tabindex="0">
|
|
336
|
+
<span class="fd-token__text">
|
|
337
|
+
Long Token Option 3
|
|
338
|
+
</span>
|
|
339
|
+
<button class="fd-token__close" tabindex="-1" aria-label="Token close"></button>
|
|
340
|
+
</span>
|
|
341
|
+
<span class="fd-token" role="button" tabindex="0">
|
|
342
|
+
<span class="fd-token__text">
|
|
343
|
+
Long Token Option 4
|
|
344
|
+
</span>
|
|
345
|
+
<button class="fd-token__close" tabindex="-1" aria-label="Token close"></button>
|
|
346
|
+
</span>
|
|
347
|
+
<span class="fd-token" role="button" tabindex="0">
|
|
348
|
+
<span class="fd-token__text">
|
|
349
|
+
Long Token Option 5
|
|
350
|
+
</span>
|
|
351
|
+
<button class="fd-token__close" tabindex="-1" aria-label="Token close"></button>
|
|
352
|
+
</span>
|
|
353
|
+
<span class="fd-token" role="button" tabindex="0">
|
|
354
|
+
<span class="fd-token__text">
|
|
355
|
+
Long Token Option 6
|
|
356
|
+
</span>
|
|
357
|
+
<button class="fd-token__close" tabindex="-1" aria-label="Token close"></button>
|
|
358
|
+
</span>
|
|
359
|
+
<span class="fd-token" role="button" tabindex="0">
|
|
360
|
+
<span class="fd-token__text">
|
|
361
|
+
Long Token Option 7
|
|
362
|
+
</span>
|
|
363
|
+
<button class="fd-token__close" tabindex="-1" aria-label="Token close"></button>
|
|
364
|
+
</span>
|
|
365
|
+
<span class="fd-token" role="button" tabindex="0">
|
|
366
|
+
<span class="fd-token__text">
|
|
367
|
+
Long Token Option 8
|
|
368
|
+
</span>
|
|
369
|
+
<button class="fd-token__close" tabindex="-1" aria-label="Token close"></button>
|
|
370
|
+
</span>
|
|
371
|
+
<span class="fd-token" role="button" tabindex="0">
|
|
372
|
+
<span class="fd-token__text">
|
|
373
|
+
Long Token Option 9
|
|
374
|
+
</span>
|
|
375
|
+
<button class="fd-token__close" tabindex="-1" aria-label="Token close"></button>
|
|
376
|
+
</span>
|
|
377
|
+
<span class="fd-token fd-token--readonly">
|
|
378
|
+
<span class="fd-token__text">
|
|
379
|
+
Long Token Option 10
|
|
380
|
+
</span>
|
|
381
|
+
</span>
|
|
382
|
+
<input class="fd-input fd-tokenizer__input" aria-label="Tokenizer input"/>
|
|
383
|
+
</div>
|
|
384
|
+
</div>
|
|
385
|
+
```
|
|
386
|
+
|
|
387
|
+
## Accessibility
|
|
388
|
+
|
|
389
|
+
- Use semantic HTML elements where appropriate
|
|
390
|
+
- Include proper ARIA attributes for interactive elements
|
|
391
|
+
- Ensure keyboard navigation support
|
|
392
|
+
- Provide adequate color contrast
|
|
393
|
+
|
|
394
|
+
## Source
|
|
395
|
+
|
|
396
|
+
This documentation was automatically generated from: `packages/styles/stories/Components/tokenizer/tokenizer.stories.js`
|
|
397
|
+
|
|
398
|
+
For the latest updates and interactive examples, see [Storybook](https://sap.github.io/fundamental-styles/).
|