@iress-oss/ids-mcp-server 5.15.0 → 6.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +28 -46
- package/generated/docs/components-alert-docs.md +0 -130
- package/generated/docs/components-autocomplete-docs.md +0 -754
- package/generated/docs/components-autocomplete-recipes-docs.md +0 -104
- package/generated/docs/components-badge-docs.md +0 -148
- package/generated/docs/components-button-docs.md +0 -362
- package/generated/docs/components-button-recipes-docs.md +0 -76
- package/generated/docs/components-buttongroup-docs.md +0 -310
- package/generated/docs/components-card-docs.md +0 -494
- package/generated/docs/components-card-recipes-docs.md +0 -89
- package/generated/docs/components-checkbox-docs.md +0 -193
- package/generated/docs/components-checkboxgroup-docs.md +0 -692
- package/generated/docs/components-checkboxgroup-recipes-docs.md +0 -119
- package/generated/docs/components-col-docs.md +0 -466
- package/generated/docs/components-combobox-docs.md +0 -1016
- package/generated/docs/components-container-docs.md +0 -91
- package/generated/docs/components-divider-docs.md +0 -176
- package/generated/docs/components-expander-docs.md +0 -215
- package/generated/docs/components-field-docs.md +0 -675
- package/generated/docs/components-filter-docs.md +0 -1109
- package/generated/docs/components-form-docs.md +0 -2410
- package/generated/docs/components-form-recipes-docs.md +0 -886
- package/generated/docs/components-hide-docs.md +0 -265
- package/generated/docs/components-icon-docs.md +0 -553
- package/generated/docs/components-inline-docs.md +0 -868
- package/generated/docs/components-input-docs.md +0 -335
- package/generated/docs/components-input-recipes-docs.md +0 -140
- package/generated/docs/components-inputcurrency-docs.md +0 -157
- package/generated/docs/components-inputcurrency-recipes-docs.md +0 -116
- package/generated/docs/components-label-docs.md +0 -135
- package/generated/docs/components-menu-docs.md +0 -704
- package/generated/docs/components-menu-menuitem-docs.md +0 -193
- package/generated/docs/components-modal-docs.md +0 -587
- package/generated/docs/components-navbar-docs.md +0 -291
- package/generated/docs/components-navbar-recipes-docs.md +0 -413
- package/generated/docs/components-panel-docs.md +0 -380
- package/generated/docs/components-placeholder-docs.md +0 -27
- package/generated/docs/components-popover-docs.md +0 -464
- package/generated/docs/components-popover-recipes-docs.md +0 -245
- package/generated/docs/components-progress-docs.md +0 -104
- package/generated/docs/components-provider-docs.md +0 -105
- package/generated/docs/components-radio-docs.md +0 -107
- package/generated/docs/components-radiogroup-docs.md +0 -683
- package/generated/docs/components-readonly-docs.md +0 -89
- package/generated/docs/components-richselect-docs.md +0 -2433
- package/generated/docs/components-row-docs.md +0 -877
- package/generated/docs/components-select-docs.md +0 -456
- package/generated/docs/components-skeleton-docs.md +0 -214
- package/generated/docs/components-skeleton-recipes-docs.md +0 -76
- package/generated/docs/components-skiplink-docs.md +0 -66
- package/generated/docs/components-slideout-docs.md +0 -538
- package/generated/docs/components-slider-docs.md +0 -346
- package/generated/docs/components-spinner-docs.md +0 -59
- package/generated/docs/components-stack-docs.md +0 -265
- package/generated/docs/components-table-ag-grid-docs.md +0 -1074
- package/generated/docs/components-table-docs.md +0 -1305
- package/generated/docs/components-tabset-docs.md +0 -341
- package/generated/docs/components-tabset-tab-docs.md +0 -86
- package/generated/docs/components-tag-docs.md +0 -115
- package/generated/docs/components-text-docs.md +0 -394
- package/generated/docs/components-toaster-docs.md +0 -345
- package/generated/docs/components-toaster-toast-docs.md +0 -157
- package/generated/docs/components-toggle-docs.md +0 -158
- package/generated/docs/components-tooltip-docs.md +0 -311
- package/generated/docs/components-validationmessage-docs.md +0 -241
- package/generated/docs/contact-us-docs.md +0 -27
- package/generated/docs/extensions-editor-docs.md +0 -288
- package/generated/docs/extensions-editor-recipes-docs.md +0 -39
- package/generated/docs/foundations-accessibility-docs.md +0 -62
- package/generated/docs/foundations-colours-docs.md +0 -257
- package/generated/docs/foundations-consistency-docs.md +0 -52
- package/generated/docs/foundations-content-docs.md +0 -23
- package/generated/docs/foundations-introduction-docs.md +0 -17
- package/generated/docs/foundations-principles-docs.md +0 -70
- package/generated/docs/foundations-typography-docs.md +0 -191
- package/generated/docs/foundations-user-experience-docs.md +0 -63
- package/generated/docs/foundations-visual-design-docs.md +0 -46
- package/generated/docs/frequently-asked-questions-docs.md +0 -53
- package/generated/docs/get-started-develop-docs.md +0 -209
- package/generated/docs/get-started-using-storybook-docs.md +0 -68
- package/generated/docs/guidelines.md +0 -812
- package/generated/docs/introduction-docs.md +0 -43
- package/generated/docs/patterns-loading-docs.md +0 -1304
- package/generated/docs/resources-changelog-docs.md +0 -6
- package/generated/docs/resources-code-katas-docs.md +0 -29
- package/generated/docs/resources-migration-guides-from-v4-to-v5-docs.md +0 -437
- package/generated/docs/themes-available-themes-docs.md +0 -66
- package/generated/docs/themes-introduction-docs.md +0 -121
- package/generated/docs/themes-tokens-docs.md +0 -1200
- package/generated/docs/versions-docs.md +0 -17
- /package/{LICENSE.txt → LICENSE} +0 -0
|
@@ -1,456 +0,0 @@
|
|
|
1
|
-
[](#select)Select
|
|
2
|
-
=================
|
|
3
|
-
|
|
4
|
-
Overview
|
|
5
|
-
--------
|
|
6
|
-
|
|
7
|
-
Selects allow users to interact with data and select from a predetermined list of options.
|
|
8
|
-
|
|
9
|
-
Option 1Option 2Option 3Option 4Option 5
|
|
10
|
-
|
|
11
|
-
Hide code
|
|
12
|
-
|
|
13
|
-
\[data-radix-scroll-area-viewport\] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } \[data-radix-scroll-area-viewport\]::-webkit-scrollbar { display: none; } :where(\[data-radix-scroll-area-viewport\]) { display: flex; flex-direction: column; align-items: stretch; } :where(\[data-radix-scroll-area-content\]) { flex-grow: 1; }
|
|
14
|
-
|
|
15
|
-
<IressSelect\>
|
|
16
|
-
<option value\="1"\>
|
|
17
|
-
Option 1 </option\>
|
|
18
|
-
<option value\="2"\>
|
|
19
|
-
Option 2 </option\>
|
|
20
|
-
<option value\="3"\>
|
|
21
|
-
Option 3 </option\>
|
|
22
|
-
<option value\="4"\>
|
|
23
|
-
Option 4 </option\>
|
|
24
|
-
<option value\="5"\>
|
|
25
|
-
Option 5 </option\>
|
|
26
|
-
</IressSelect\>
|
|
27
|
-
|
|
28
|
-
Copy
|
|
29
|
-
|
|
30
|
-
[](#usage)Usage
|
|
31
|
-
---------------
|
|
32
|
-
|
|
33
|
-
Selects allow users to interact with data and select from a predetermined list of options, usually when you are constrained for space and have a limited number of options to choose from.
|
|
34
|
-
|
|
35
|
-
### [](#when-to-use)When To Use
|
|
36
|
-
|
|
37
|
-
* If you have less than 5 options to choose from, consider using `IressRadioGroup` instead.
|
|
38
|
-
* If you need to display rich content in your selects (eg. icons and metadata), you can use `IressRichSelect`.
|
|
39
|
-
* Otherwise, `IressSelect` is the way to go.
|
|
40
|
-
|
|
41
|
-
[](#examples)Examples
|
|
42
|
-
---------------------
|
|
43
|
-
|
|
44
|
-
### [](#options)Options
|
|
45
|
-
|
|
46
|
-
Individual options can be passed directly into `IressSelect` using the native `option` element.
|
|
47
|
-
|
|
48
|
-
**Note:** The `mapSelectOptions` helper function, originally used to map options to `<option>` elements, is now deprecated. Instead, you can use `array.map` to map the options to `<option>` elements.
|
|
49
|
-
|
|
50
|
-
Option 1Option 2Option 3Option 4Option 5
|
|
51
|
-
|
|
52
|
-
Hide code
|
|
53
|
-
|
|
54
|
-
\[data-radix-scroll-area-viewport\] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } \[data-radix-scroll-area-viewport\]::-webkit-scrollbar { display: none; } :where(\[data-radix-scroll-area-viewport\]) { display: flex; flex-direction: column; align-items: stretch; } :where(\[data-radix-scroll-area-content\]) { flex-grow: 1; }
|
|
55
|
-
|
|
56
|
-
<IressSelect\>
|
|
57
|
-
<option value\="1"\>
|
|
58
|
-
Option 1 </option\>
|
|
59
|
-
<option value\="2"\>
|
|
60
|
-
Option 2 </option\>
|
|
61
|
-
<option value\="3"\>
|
|
62
|
-
Option 3 </option\>
|
|
63
|
-
<option value\="4"\>
|
|
64
|
-
Option 4 </option\>
|
|
65
|
-
<option value\="5"\>
|
|
66
|
-
Option 5 </option\>
|
|
67
|
-
</IressSelect\>
|
|
68
|
-
|
|
69
|
-
Copy
|
|
70
|
-
|
|
71
|
-
### [](#option-groups)Option groups
|
|
72
|
-
|
|
73
|
-
Just like the native `<select />` element, `IressSelect` supports option groups.
|
|
74
|
-
|
|
75
|
-
Group 1 / Option 1Group 1 / Option 2Group 1 / Option 3Group 1 / Option 4Group 1 / Option 5Group 2 / Option 1Group 2 / Option 2Group 2 / Option 3Group 2 / Option 4Group 2 / Option 5
|
|
76
|
-
|
|
77
|
-
Hide code
|
|
78
|
-
|
|
79
|
-
\[data-radix-scroll-area-viewport\] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } \[data-radix-scroll-area-viewport\]::-webkit-scrollbar { display: none; } :where(\[data-radix-scroll-area-viewport\]) { display: flex; flex-direction: column; align-items: stretch; } :where(\[data-radix-scroll-area-content\]) { flex-grow: 1; }
|
|
80
|
-
|
|
81
|
-
<IressSelect\>
|
|
82
|
-
<optgroup label\="Group 1"\>
|
|
83
|
-
<option value\="1-1"\>
|
|
84
|
-
Group 1 / Option 1 </option\>
|
|
85
|
-
<option value\="1-2"\>
|
|
86
|
-
Group 1 / Option 2 </option\>
|
|
87
|
-
<option value\="1-3"\>
|
|
88
|
-
Group 1 / Option 3 </option\>
|
|
89
|
-
<option value\="1-4"\>
|
|
90
|
-
Group 1 / Option 4 </option\>
|
|
91
|
-
<option value\="1-5"\>
|
|
92
|
-
Group 1 / Option 5 </option\>
|
|
93
|
-
</optgroup\>
|
|
94
|
-
<optgroup label\="Group 2"\>
|
|
95
|
-
<option value\="2-1"\>
|
|
96
|
-
Group 2 / Option 1 </option\>
|
|
97
|
-
<option value\="2-2"\>
|
|
98
|
-
Group 2 / Option 2 </option\>
|
|
99
|
-
<option value\="2-3"\>
|
|
100
|
-
Group 2 / Option 3 </option\>
|
|
101
|
-
<option value\="2-4"\>
|
|
102
|
-
Group 2 / Option 4 </option\>
|
|
103
|
-
<option value\="2-5"\>
|
|
104
|
-
Group 2 / Option 5 </option\>
|
|
105
|
-
</optgroup\>
|
|
106
|
-
</IressSelect\>
|
|
107
|
-
|
|
108
|
-
Copy
|
|
109
|
-
|
|
110
|
-
### [](#non-string-values)Non-string values
|
|
111
|
-
|
|
112
|
-
If you would like to introduce options with non-string values, you can use the `IressSelectOption` component to define your options.
|
|
113
|
-
|
|
114
|
-
**Note:** Since the `onChange` event of a select relies on strings, it will try to find a string representation of the value. If you are using non-string values, you will need to ensure the `toString` conversion is unique per option.
|
|
115
|
-
|
|
116
|
-
Option 1Option 2Group 1 / Option 1Group 1 / Option 2Group 1 / Option 3
|
|
117
|
-
|
|
118
|
-
Hide code
|
|
119
|
-
|
|
120
|
-
\[data-radix-scroll-area-viewport\] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } \[data-radix-scroll-area-viewport\]::-webkit-scrollbar { display: none; } :where(\[data-radix-scroll-area-viewport\]) { display: flex; flex-direction: column; align-items: stretch; } :where(\[data-radix-scroll-area-content\]) { flex-grow: 1; }
|
|
121
|
-
|
|
122
|
-
<IressSelect\>
|
|
123
|
-
<IressSelectOption value\={1}\>
|
|
124
|
-
Option 1 </IressSelectOption\>
|
|
125
|
-
<IressSelectOption value\={2}\>
|
|
126
|
-
Option 2 </IressSelectOption\>
|
|
127
|
-
<optgroup label\="Group 1"\>
|
|
128
|
-
<IressSelectOption value\="1-1"\>
|
|
129
|
-
Group 1 / Option 1 </IressSelectOption\>
|
|
130
|
-
<IressSelectOption value\="1-2"\>
|
|
131
|
-
Group 1 / Option 2 </IressSelectOption\>
|
|
132
|
-
<IressSelectOption value\="1-3"\>
|
|
133
|
-
Group 1 / Option 3 </IressSelectOption\>
|
|
134
|
-
</optgroup\>
|
|
135
|
-
</IressSelect\>
|
|
136
|
-
|
|
137
|
-
Copy
|
|
138
|
-
|
|
139
|
-
### [](#placeholder)Placeholder
|
|
140
|
-
|
|
141
|
-
A default placeholder option can be set using the `placeholder` prop.
|
|
142
|
-
|
|
143
|
-
Please select an optionOption 1Option 2Option 3Option 4Option 5
|
|
144
|
-
|
|
145
|
-
Hide code
|
|
146
|
-
|
|
147
|
-
\[data-radix-scroll-area-viewport\] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } \[data-radix-scroll-area-viewport\]::-webkit-scrollbar { display: none; } :where(\[data-radix-scroll-area-viewport\]) { display: flex; flex-direction: column; align-items: stretch; } :where(\[data-radix-scroll-area-content\]) { flex-grow: 1; }
|
|
148
|
-
|
|
149
|
-
<IressSelect placeholder\="Please select an option"\>
|
|
150
|
-
<option value\="1"\>
|
|
151
|
-
Option 1 </option\>
|
|
152
|
-
<option value\="2"\>
|
|
153
|
-
Option 2 </option\>
|
|
154
|
-
<option value\="3"\>
|
|
155
|
-
Option 3 </option\>
|
|
156
|
-
<option value\="4"\>
|
|
157
|
-
Option 4 </option\>
|
|
158
|
-
<option value\="5"\>
|
|
159
|
-
Option 5 </option\>
|
|
160
|
-
</IressSelect\>
|
|
161
|
-
|
|
162
|
-
Copy
|
|
163
|
-
|
|
164
|
-
### [](#selected-option)Selected option
|
|
165
|
-
|
|
166
|
-
An option can be selected by using either the `defaultValue` prop for uncontrolled components, or the `value` prop for controlled components.
|
|
167
|
-
|
|
168
|
-
Option 1Option 2Option 3Option 4Option 5
|
|
169
|
-
|
|
170
|
-
Hide code
|
|
171
|
-
|
|
172
|
-
\[data-radix-scroll-area-viewport\] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } \[data-radix-scroll-area-viewport\]::-webkit-scrollbar { display: none; } :where(\[data-radix-scroll-area-viewport\]) { display: flex; flex-direction: column; align-items: stretch; } :where(\[data-radix-scroll-area-content\]) { flex-grow: 1; }
|
|
173
|
-
|
|
174
|
-
<IressSelect defaultValue\={3}\>
|
|
175
|
-
<option value\="1"\>
|
|
176
|
-
Option 1 </option\>
|
|
177
|
-
<option value\="2"\>
|
|
178
|
-
Option 2 </option\>
|
|
179
|
-
<option value\="3"\>
|
|
180
|
-
Option 3 </option\>
|
|
181
|
-
<option value\="4"\>
|
|
182
|
-
Option 4 </option\>
|
|
183
|
-
<option value\="5"\>
|
|
184
|
-
Option 5 </option\>
|
|
185
|
-
</IressSelect\>
|
|
186
|
-
|
|
187
|
-
Copy
|
|
188
|
-
|
|
189
|
-
### [](#sizing)Sizing
|
|
190
|
-
|
|
191
|
-
Selects can be resized to suit a specific number of characters. This sets an expectation of what data is to be presented; for example using the `16` width for a credit card number.
|
|
192
|
-
|
|
193
|
-
Widths can also be set as a percentage, allowing the input to take up a proportion of the width of its container.
|
|
194
|
-
|
|
195
|
-
2Option 1Option 2Option 3Option 4Option 5
|
|
196
|
-
|
|
197
|
-
4Option 1Option 2Option 3Option 4Option 5
|
|
198
|
-
|
|
199
|
-
6Option 1Option 2Option 3Option 4Option 5
|
|
200
|
-
|
|
201
|
-
8Option 1Option 2Option 3Option 4Option 5
|
|
202
|
-
|
|
203
|
-
10Option 1Option 2Option 3Option 4Option 5
|
|
204
|
-
|
|
205
|
-
12Option 1Option 2Option 3Option 4Option 5
|
|
206
|
-
|
|
207
|
-
16Option 1Option 2Option 3Option 4Option 5
|
|
208
|
-
|
|
209
|
-
25percOption 1Option 2Option 3Option 4Option 5
|
|
210
|
-
|
|
211
|
-
50percOption 1Option 2Option 3Option 4Option 5
|
|
212
|
-
|
|
213
|
-
75percOption 1Option 2Option 3Option 4Option 5
|
|
214
|
-
|
|
215
|
-
100percOption 1Option 2Option 3Option 4Option 5
|
|
216
|
-
|
|
217
|
-
Hide code
|
|
218
|
-
|
|
219
|
-
\[data-radix-scroll-area-viewport\] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } \[data-radix-scroll-area-viewport\]::-webkit-scrollbar { display: none; } :where(\[data-radix-scroll-area-viewport\]) { display: flex; flex-direction: column; align-items: stretch; } :where(\[data-radix-scroll-area-content\]) { flex-grow: 1; }
|
|
220
|
-
|
|
221
|
-
<IressStack gutter\="md"\>
|
|
222
|
-
<div\>
|
|
223
|
-
<IressSelect
|
|
224
|
-
placeholder\="2"
|
|
225
|
-
width\="2"
|
|
226
|
-
\>
|
|
227
|
-
<option value\="1"\>
|
|
228
|
-
Option 1 </option\>
|
|
229
|
-
<option value\="2"\>
|
|
230
|
-
Option 2 </option\>
|
|
231
|
-
<option value\="3"\>
|
|
232
|
-
Option 3 </option\>
|
|
233
|
-
<option value\="4"\>
|
|
234
|
-
Option 4 </option\>
|
|
235
|
-
<option value\="5"\>
|
|
236
|
-
Option 5 </option\>
|
|
237
|
-
</IressSelect\>
|
|
238
|
-
</div\>
|
|
239
|
-
<div\>
|
|
240
|
-
<IressSelect
|
|
241
|
-
placeholder\="4"
|
|
242
|
-
width\="4"
|
|
243
|
-
\>
|
|
244
|
-
<option value\="1"\>
|
|
245
|
-
Option 1 </option\>
|
|
246
|
-
<option value\="2"\>
|
|
247
|
-
Option 2 </option\>
|
|
248
|
-
<option value\="3"\>
|
|
249
|
-
Option 3 </option\>
|
|
250
|
-
<option value\="4"\>
|
|
251
|
-
Option 4 </option\>
|
|
252
|
-
<option value\="5"\>
|
|
253
|
-
Option 5 </option\>
|
|
254
|
-
</IressSelect\>
|
|
255
|
-
</div\>
|
|
256
|
-
<div\>
|
|
257
|
-
<IressSelect
|
|
258
|
-
placeholder\="6"
|
|
259
|
-
width\="6"
|
|
260
|
-
\>
|
|
261
|
-
<option value\="1"\>
|
|
262
|
-
Option 1 </option\>
|
|
263
|
-
<option value\="2"\>
|
|
264
|
-
Option 2 </option\>
|
|
265
|
-
<option value\="3"\>
|
|
266
|
-
Option 3 </option\>
|
|
267
|
-
<option value\="4"\>
|
|
268
|
-
Option 4 </option\>
|
|
269
|
-
<option value\="5"\>
|
|
270
|
-
Option 5 </option\>
|
|
271
|
-
</IressSelect\>
|
|
272
|
-
</div\>
|
|
273
|
-
<div\>
|
|
274
|
-
<IressSelect
|
|
275
|
-
placeholder\="8"
|
|
276
|
-
width\="8"
|
|
277
|
-
\>
|
|
278
|
-
<option value\="1"\>
|
|
279
|
-
Option 1 </option\>
|
|
280
|
-
<option value\="2"\>
|
|
281
|
-
Option 2 </option\>
|
|
282
|
-
<option value\="3"\>
|
|
283
|
-
Option 3 </option\>
|
|
284
|
-
<option value\="4"\>
|
|
285
|
-
Option 4 </option\>
|
|
286
|
-
<option value\="5"\>
|
|
287
|
-
Option 5 </option\>
|
|
288
|
-
</IressSelect\>
|
|
289
|
-
</div\>
|
|
290
|
-
<div\>
|
|
291
|
-
<IressSelect
|
|
292
|
-
placeholder\="10"
|
|
293
|
-
width\="10"
|
|
294
|
-
\>
|
|
295
|
-
<option value\="1"\>
|
|
296
|
-
Option 1 </option\>
|
|
297
|
-
<option value\="2"\>
|
|
298
|
-
Option 2 </option\>
|
|
299
|
-
<option value\="3"\>
|
|
300
|
-
Option 3 </option\>
|
|
301
|
-
<option value\="4"\>
|
|
302
|
-
Option 4 </option\>
|
|
303
|
-
<option value\="5"\>
|
|
304
|
-
Option 5 </option\>
|
|
305
|
-
</IressSelect\>
|
|
306
|
-
</div\>
|
|
307
|
-
<div\>
|
|
308
|
-
<IressSelect
|
|
309
|
-
placeholder\="12"
|
|
310
|
-
width\="12"
|
|
311
|
-
\>
|
|
312
|
-
<option value\="1"\>
|
|
313
|
-
Option 1 </option\>
|
|
314
|
-
<option value\="2"\>
|
|
315
|
-
Option 2 </option\>
|
|
316
|
-
<option value\="3"\>
|
|
317
|
-
Option 3 </option\>
|
|
318
|
-
<option value\="4"\>
|
|
319
|
-
Option 4 </option\>
|
|
320
|
-
<option value\="5"\>
|
|
321
|
-
Option 5 </option\>
|
|
322
|
-
</IressSelect\>
|
|
323
|
-
</div\>
|
|
324
|
-
<div\>
|
|
325
|
-
<IressSelect
|
|
326
|
-
placeholder\="16"
|
|
327
|
-
width\="16"
|
|
328
|
-
\>
|
|
329
|
-
<option value\="1"\>
|
|
330
|
-
Option 1 </option\>
|
|
331
|
-
<option value\="2"\>
|
|
332
|
-
Option 2 </option\>
|
|
333
|
-
<option value\="3"\>
|
|
334
|
-
Option 3 </option\>
|
|
335
|
-
<option value\="4"\>
|
|
336
|
-
Option 4 </option\>
|
|
337
|
-
<option value\="5"\>
|
|
338
|
-
Option 5 </option\>
|
|
339
|
-
</IressSelect\>
|
|
340
|
-
</div\>
|
|
341
|
-
<div\>
|
|
342
|
-
<IressSelect
|
|
343
|
-
placeholder\="25perc"
|
|
344
|
-
width\="25perc"
|
|
345
|
-
\>
|
|
346
|
-
<option value\="1"\>
|
|
347
|
-
Option 1 </option\>
|
|
348
|
-
<option value\="2"\>
|
|
349
|
-
Option 2 </option\>
|
|
350
|
-
<option value\="3"\>
|
|
351
|
-
Option 3 </option\>
|
|
352
|
-
<option value\="4"\>
|
|
353
|
-
Option 4 </option\>
|
|
354
|
-
<option value\="5"\>
|
|
355
|
-
Option 5 </option\>
|
|
356
|
-
</IressSelect\>
|
|
357
|
-
</div\>
|
|
358
|
-
<div\>
|
|
359
|
-
<IressSelect
|
|
360
|
-
placeholder\="50perc"
|
|
361
|
-
width\="50perc"
|
|
362
|
-
\>
|
|
363
|
-
<option value\="1"\>
|
|
364
|
-
Option 1 </option\>
|
|
365
|
-
<option value\="2"\>
|
|
366
|
-
Option 2 </option\>
|
|
367
|
-
<option value\="3"\>
|
|
368
|
-
Option 3 </option\>
|
|
369
|
-
<option value\="4"\>
|
|
370
|
-
Option 4 </option\>
|
|
371
|
-
<option value\="5"\>
|
|
372
|
-
Option 5 </option\>
|
|
373
|
-
</IressSelect\>
|
|
374
|
-
</div\>
|
|
375
|
-
<div\>
|
|
376
|
-
<IressSelect
|
|
377
|
-
placeholder\="75perc"
|
|
378
|
-
width\="75perc"
|
|
379
|
-
\>
|
|
380
|
-
<option value\="1"\>
|
|
381
|
-
Option 1 </option\>
|
|
382
|
-
<option value\="2"\>
|
|
383
|
-
Option 2 </option\>
|
|
384
|
-
<option value\="3"\>
|
|
385
|
-
Option 3 </option\>
|
|
386
|
-
<option value\="4"\>
|
|
387
|
-
Option 4 </option\>
|
|
388
|
-
<option value\="5"\>
|
|
389
|
-
Option 5 </option\>
|
|
390
|
-
</IressSelect\>
|
|
391
|
-
</div\>
|
|
392
|
-
<div\>
|
|
393
|
-
<IressSelect
|
|
394
|
-
placeholder\="100perc"
|
|
395
|
-
width\="100perc"
|
|
396
|
-
\>
|
|
397
|
-
<option value\="1"\>
|
|
398
|
-
Option 1 </option\>
|
|
399
|
-
<option value\="2"\>
|
|
400
|
-
Option 2 </option\>
|
|
401
|
-
<option value\="3"\>
|
|
402
|
-
Option 3 </option\>
|
|
403
|
-
<option value\="4"\>
|
|
404
|
-
Option 4 </option\>
|
|
405
|
-
<option value\="5"\>
|
|
406
|
-
Option 5 </option\>
|
|
407
|
-
</IressSelect\>
|
|
408
|
-
</div\>
|
|
409
|
-
</IressStack\>
|
|
410
|
-
|
|
411
|
-
Copy
|
|
412
|
-
|
|
413
|
-
### [](#readonly)Readonly
|
|
414
|
-
|
|
415
|
-
Unlike the standard HTML `select` element, the `IressSelect` component can be set to `readonly`. In this case, an `IressReadonly` component will render the selected label text, while the selected value is rendered in a hidden HTML `input` element for form submission.
|
|
416
|
-
|
|
417
|
-
If you need more control over the read-only state (for example, rendering a stylised version of the value), you can use the [`IressReadonly` component](?path=/docs/components-readonly--docs).
|
|
418
|
-
|
|
419
|
-
Option 2
|
|
420
|
-
|
|
421
|
-
Hide code
|
|
422
|
-
|
|
423
|
-
\[data-radix-scroll-area-viewport\] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } \[data-radix-scroll-area-viewport\]::-webkit-scrollbar { display: none; } :where(\[data-radix-scroll-area-viewport\]) { display: flex; flex-direction: column; align-items: stretch; } :where(\[data-radix-scroll-area-content\]) { flex-grow: 1; }
|
|
424
|
-
|
|
425
|
-
<IressSelect
|
|
426
|
-
readonly
|
|
427
|
-
value\="2"
|
|
428
|
-
\>
|
|
429
|
-
<option value\="1"\>
|
|
430
|
-
Option 1 </option\>
|
|
431
|
-
<option value\="2"\>
|
|
432
|
-
Option 2 </option\>
|
|
433
|
-
<option value\="3"\>
|
|
434
|
-
Option 3 </option\>
|
|
435
|
-
<option value\="4"\>
|
|
436
|
-
Option 4 </option\>
|
|
437
|
-
<option value\="5"\>
|
|
438
|
-
Option 5 </option\>
|
|
439
|
-
</IressSelect\>
|
|
440
|
-
|
|
441
|
-
Copy
|
|
442
|
-
|
|
443
|
-
On this page
|
|
444
|
-
|
|
445
|
-
* [Overview](#overview)
|
|
446
|
-
* [Props](#props)
|
|
447
|
-
* [Usage](#usage)
|
|
448
|
-
* [When To Use](#when-to-use)
|
|
449
|
-
* [Examples](#examples)
|
|
450
|
-
* [Options](#options)
|
|
451
|
-
* [Option groups](#option-groups)
|
|
452
|
-
* [Non-string values](#non-string-values)
|
|
453
|
-
* [Placeholder](#placeholder)
|
|
454
|
-
* [Selected option](#selected-option)
|
|
455
|
-
* [Sizing](#sizing)
|
|
456
|
-
* [Readonly](#readonly)
|
|
@@ -1,214 +0,0 @@
|
|
|
1
|
-
[](#skeleton)Skeleton
|
|
2
|
-
=====================
|
|
3
|
-
|
|
4
|
-
Overview
|
|
5
|
-
--------
|
|
6
|
-
|
|
7
|
-
Skeletons can increase perceived performance for users. As opposed to spinners, skeletons make it feel as though things are happening/loading immediately, then the information is incrementally displayed on the screen.
|
|
8
|
-
|
|
9
|
-
Hide code
|
|
10
|
-
|
|
11
|
-
\[data-radix-scroll-area-viewport\] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } \[data-radix-scroll-area-viewport\]::-webkit-scrollbar { display: none; } :where(\[data-radix-scroll-area-viewport\]) { display: flex; flex-direction: column; align-items: stretch; } :where(\[data-radix-scroll-area-content\]) { flex-grow: 1; }
|
|
12
|
-
|
|
13
|
-
<IressSkeleton />
|
|
14
|
-
|
|
15
|
-
Copy
|
|
16
|
-
|
|
17
|
-
[](#examples)Examples
|
|
18
|
-
---------------------
|
|
19
|
-
|
|
20
|
-
### [](#modes)Modes
|
|
21
|
-
|
|
22
|
-
The `mode` prop can be set to `text` (default), `rect` or `circle`.
|
|
23
|
-
|
|
24
|
-
Hide code
|
|
25
|
-
|
|
26
|
-
\[data-radix-scroll-area-viewport\] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } \[data-radix-scroll-area-viewport\]::-webkit-scrollbar { display: none; } :where(\[data-radix-scroll-area-viewport\]) { display: flex; flex-direction: column; align-items: stretch; } :where(\[data-radix-scroll-area-content\]) { flex-grow: 1; }
|
|
27
|
-
|
|
28
|
-
<IressStack gutter\="md"\>
|
|
29
|
-
<IressSkeleton mode\="text" />
|
|
30
|
-
<IressSkeleton
|
|
31
|
-
height\="100px"
|
|
32
|
-
mode\="rect"
|
|
33
|
-
/>
|
|
34
|
-
<IressSkeleton
|
|
35
|
-
height\="100px"
|
|
36
|
-
mode\="circle"
|
|
37
|
-
width\="100px"
|
|
38
|
-
/>
|
|
39
|
-
</IressStack\>
|
|
40
|
-
|
|
41
|
-
Copy
|
|
42
|
-
|
|
43
|
-
### [](#text)Text
|
|
44
|
-
|
|
45
|
-
`text` mode allows you to use `IressSkeleton` in place of `IressText` and keep the same sizing. To achieve this you can use `text` mode in conjunction with the `textVariant` prop.
|
|
46
|
-
|
|
47
|
-
`text` also accepts the width prop but does not use the `height` prop like other modes. The height is achieved through font size and line height.
|
|
48
|
-
|
|
49
|
-
Toggle load
|
|
50
|
-
|
|
51
|
-
Hide code
|
|
52
|
-
|
|
53
|
-
\[data-radix-scroll-area-viewport\] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } \[data-radix-scroll-area-viewport\]::-webkit-scrollbar { display: none; } :where(\[data-radix-scroll-area-viewport\]) { display: flex; flex-direction: column; align-items: stretch; } :where(\[data-radix-scroll-area-content\]) { flex-grow: 1; }
|
|
54
|
-
|
|
55
|
-
import { useState } from 'react';
|
|
56
|
-
import {
|
|
57
|
-
IressButton,
|
|
58
|
-
IressSkeleton,
|
|
59
|
-
IressSkeletonProps,
|
|
60
|
-
IressStack,
|
|
61
|
-
IressText,
|
|
62
|
-
TEXT\_VARIANTS,
|
|
63
|
-
} from '@iress-oss/ids-components';
|
|
64
|
-
export const SkeletonText \= () \=> {
|
|
65
|
-
const \[loading, setLoading\] \= useState(true);
|
|
66
|
-
return (
|
|
67
|
-
<IressStack gutter\={IressStack.Gutter.Md}\>
|
|
68
|
-
<IressButton onClick\={() \=> setLoading(!loading)}\>
|
|
69
|
-
Toggle load </IressButton\>
|
|
70
|
-
<IressStack gutter\={IressStack.Gutter.Xs}\>
|
|
71
|
-
{TEXT\_VARIANTS.map((textVariant) \=> \[
|
|
72
|
-
loading && <IressSkeleton {...{
|
|
73
|
-
mode: 'text',
|
|
74
|
-
}} textVariant\={textVariant} />,
|
|
75
|
-
!loading && (
|
|
76
|
-
<IressText variant\={textVariant}\>{textVariant}</IressText\>
|
|
77
|
-
),
|
|
78
|
-
\])}
|
|
79
|
-
</IressStack\>
|
|
80
|
-
</IressStack\>
|
|
81
|
-
);
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
Copy
|
|
85
|
-
|
|
86
|
-
### [](#rect)Rect
|
|
87
|
-
|
|
88
|
-
`rect` mode allows you to use `IressSkeleton` in place of block elements, a good example would be in place of images.
|
|
89
|
-
|
|
90
|
-
`rect` accepts both `width` and `height` props for sizing. It will default to 100% and a theme defined fallback height (`--iress-skeleton-bone-fallback-height`).
|
|
91
|
-
|
|
92
|
-
Toggle load
|
|
93
|
-
|
|
94
|
-
Hide code
|
|
95
|
-
|
|
96
|
-
\[data-radix-scroll-area-viewport\] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } \[data-radix-scroll-area-viewport\]::-webkit-scrollbar { display: none; } :where(\[data-radix-scroll-area-viewport\]) { display: flex; flex-direction: column; align-items: stretch; } :where(\[data-radix-scroll-area-content\]) { flex-grow: 1; }
|
|
97
|
-
|
|
98
|
-
import { useState } from 'react';
|
|
99
|
-
import {
|
|
100
|
-
IressButton,
|
|
101
|
-
IressPlaceholder,
|
|
102
|
-
IressSkeleton,
|
|
103
|
-
IressSkeletonProps,
|
|
104
|
-
IressStack,
|
|
105
|
-
} from '@iress-oss/ids-components';
|
|
106
|
-
export const SkeletonRect \= () \=> {
|
|
107
|
-
const \[loading, setLoading\] \= useState(true);
|
|
108
|
-
return (
|
|
109
|
-
<IressStack gutter\={IressStack.Gutter.Md}\>
|
|
110
|
-
<IressButton onClick\={() \=> setLoading(!loading)}\>
|
|
111
|
-
Toggle load </IressButton\>
|
|
112
|
-
{loading && <IressSkeleton {...{
|
|
113
|
-
mode: 'rect',
|
|
114
|
-
width: '250',
|
|
115
|
-
height: '150',
|
|
116
|
-
}} />}
|
|
117
|
-
{!loading && <IressPlaceholder {...{
|
|
118
|
-
mode: 'rect',
|
|
119
|
-
width: '250',
|
|
120
|
-
height: '150',
|
|
121
|
-
}}\>Image</IressPlaceholder\>}
|
|
122
|
-
</IressStack\>
|
|
123
|
-
);
|
|
124
|
-
};
|
|
125
|
-
|
|
126
|
-
Copy
|
|
127
|
-
|
|
128
|
-
### [](#circle)Circle
|
|
129
|
-
|
|
130
|
-
`circle` mode allows you to use `IressSkeleton` in place of circular elements, a good example would be for profile images.
|
|
131
|
-
|
|
132
|
-
`circle` accepts both `width` and `height` props for sizing. It will default to 100% and a theme defined fallback height (`--iress-skeleton-bone-fallback-height`).
|
|
133
|
-
|
|
134
|
-
Toggle load
|
|
135
|
-
|
|
136
|
-
Hide code
|
|
137
|
-
|
|
138
|
-
\[data-radix-scroll-area-viewport\] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } \[data-radix-scroll-area-viewport\]::-webkit-scrollbar { display: none; } :where(\[data-radix-scroll-area-viewport\]) { display: flex; flex-direction: column; align-items: stretch; } :where(\[data-radix-scroll-area-content\]) { flex-grow: 1; }
|
|
139
|
-
|
|
140
|
-
import { useState } from 'react';
|
|
141
|
-
import {
|
|
142
|
-
IressButton,
|
|
143
|
-
IressPlaceholder,
|
|
144
|
-
IressSkeleton,
|
|
145
|
-
IressSkeletonProps,
|
|
146
|
-
IressStack,
|
|
147
|
-
} from '@iress-oss/ids-components';
|
|
148
|
-
export const SkeletonCircle \= () \=> {
|
|
149
|
-
const \[loading, setLoading\] \= useState(true);
|
|
150
|
-
return (
|
|
151
|
-
<IressStack gutter\={IressStack.Gutter.Md}\>
|
|
152
|
-
<IressButton onClick\={() \=> setLoading(!loading)}\>
|
|
153
|
-
Toggle load </IressButton\>
|
|
154
|
-
{loading && <IressSkeleton {...{
|
|
155
|
-
mode: 'circle',
|
|
156
|
-
width: '150',
|
|
157
|
-
height: '150',
|
|
158
|
-
}} />}
|
|
159
|
-
{!loading && (
|
|
160
|
-
<IressPlaceholder {...{
|
|
161
|
-
mode: 'circle',
|
|
162
|
-
width: '150',
|
|
163
|
-
height: '150',
|
|
164
|
-
}} style\={{ borderRadius: '50%' }}\>
|
|
165
|
-
Image </IressPlaceholder\>
|
|
166
|
-
)}
|
|
167
|
-
</IressStack\>
|
|
168
|
-
);
|
|
169
|
-
};
|
|
170
|
-
|
|
171
|
-
Copy
|
|
172
|
-
|
|
173
|
-
### [](#size)Size
|
|
174
|
-
|
|
175
|
-
`width` and `height` props can be used to match the layout of the loaded content.
|
|
176
|
-
|
|
177
|
-
These props accept any unit of dimension, but if no unit is provided it will default to pixels.
|
|
178
|
-
|
|
179
|
-
**Note:** `height` will be ignored for text mode as this is calculated using the `IressText` component.
|
|
180
|
-
|
|
181
|
-
Hide code
|
|
182
|
-
|
|
183
|
-
\[data-radix-scroll-area-viewport\] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } \[data-radix-scroll-area-viewport\]::-webkit-scrollbar { display: none; } :where(\[data-radix-scroll-area-viewport\]) { display: flex; flex-direction: column; align-items: stretch; } :where(\[data-radix-scroll-area-content\]) { flex-grow: 1; }
|
|
184
|
-
|
|
185
|
-
<IressInline gutter\="md"\>
|
|
186
|
-
<IressSkeleton
|
|
187
|
-
height\="150"
|
|
188
|
-
mode\="rect"
|
|
189
|
-
width\="150"
|
|
190
|
-
/>
|
|
191
|
-
<IressSkeleton
|
|
192
|
-
height\="150"
|
|
193
|
-
mode\="circle"
|
|
194
|
-
width\="150"
|
|
195
|
-
/>
|
|
196
|
-
<IressSkeleton
|
|
197
|
-
height\="150"
|
|
198
|
-
mode\="text"
|
|
199
|
-
width\="150"
|
|
200
|
-
/>
|
|
201
|
-
</IressInline\>
|
|
202
|
-
|
|
203
|
-
Copy
|
|
204
|
-
|
|
205
|
-
On this page
|
|
206
|
-
|
|
207
|
-
* [Overview](#overview)
|
|
208
|
-
* [Props](#props)
|
|
209
|
-
* [Examples](#examples)
|
|
210
|
-
* [Modes](#modes)
|
|
211
|
-
* [Text](#text)
|
|
212
|
-
* [Rect](#rect)
|
|
213
|
-
* [Circle](#circle)
|
|
214
|
-
* [Size](#size)
|