@iress-oss/ids-mcp-server 5.14.2 → 5.20.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/generated/docs/components_components-alert-docs.md +492 -0
- package/generated/docs/components_components-autocomplete-docs.md +3485 -0
- package/generated/docs/{components-autocomplete-recipes-docs.md → components_components-autocomplete-recipes-docs.md} +32 -14
- package/generated/docs/{components-badge-docs.md → components_components-badge-docs.md} +222 -30
- package/generated/docs/components_components-button-docs.md +2078 -0
- package/generated/docs/components_components-button-recipes-docs.md +37 -0
- package/generated/docs/components_components-buttongroup-docs.md +1045 -0
- package/generated/docs/components_components-card-docs.md +2276 -0
- package/generated/docs/{components-card-recipes-docs.md → components_components-card-recipes-docs.md} +131 -14
- package/generated/docs/components_components-checkbox-docs.md +1054 -0
- package/generated/docs/{components-checkboxgroup-docs.md → components_components-checkboxgroup-docs.md} +1000 -81
- package/generated/docs/{components-checkboxgroup-recipes-docs.md → components_components-checkboxgroup-recipes-docs.md} +101 -11
- package/generated/docs/{components-col-docs.md → components_components-col-docs.md} +331 -58
- package/generated/docs/components_components-combobox-docs.md +3767 -0
- package/generated/docs/{components-container-docs.md → components_components-container-docs.md} +61 -24
- package/generated/docs/{components-divider-docs.md → components_components-divider-docs.md} +83 -24
- package/generated/docs/{components-expander-docs.md → components_components-expander-docs.md} +264 -33
- package/generated/docs/{components-field-docs.md → components_components-field-docs.md} +814 -120
- package/generated/docs/components_components-filter-docs.md +4080 -0
- package/generated/docs/{components-form-docs.md → components_components-form-docs.md} +1488 -358
- package/generated/docs/{components-form-recipes-docs.md → components_components-form-recipes-docs.md} +174 -64
- package/generated/docs/components_components-hide-docs.md +293 -0
- package/generated/docs/components_components-icon-docs.md +1337 -0
- package/generated/docs/{components-inline-docs.md → components_components-inline-docs.md} +462 -42
- package/generated/docs/components_components-input-docs.md +1468 -0
- package/generated/docs/components_components-input-recipes-docs.md +367 -0
- package/generated/docs/components_components-inputcurrency-docs.md +432 -0
- package/generated/docs/{components-inputcurrency-recipes-docs.md → components_components-inputcurrency-recipes-docs.md} +110 -17
- package/generated/docs/components_components-label-docs.md +323 -0
- package/generated/docs/components_components-menu-docs.md +2345 -0
- package/generated/docs/components_components-menu-menuitem-docs.md +633 -0
- package/generated/docs/{components-modal-docs.md → components_components-modal-docs.md} +1625 -232
- package/generated/docs/components_components-navbar-docs.md +1847 -0
- package/generated/docs/{components-navbar-recipes-docs.md → components_components-navbar-recipes-docs.md} +697 -39
- package/generated/docs/{components-panel-docs.md → components_components-panel-docs.md} +754 -57
- package/generated/docs/components_components-placeholder-docs.md +92 -0
- package/generated/docs/components_components-popover-docs.md +1641 -0
- package/generated/docs/{components-popover-recipes-docs.md → components_components-popover-recipes-docs.md} +347 -17
- package/generated/docs/components_components-progress-docs.md +115 -0
- package/generated/docs/components_components-provider-docs.md +114 -0
- package/generated/docs/components_components-radio-docs.md +491 -0
- package/generated/docs/{components-radiogroup-docs.md → components_components-radiogroup-docs.md} +943 -75
- package/generated/docs/components_components-readonly-docs.md +263 -0
- package/generated/docs/components_components-richselect-docs.md +6497 -0
- package/generated/docs/{components-row-docs.md → components_components-row-docs.md} +353 -43
- package/generated/docs/{components-select-docs.md → components_components-select-docs.md} +719 -61
- package/generated/docs/components_components-skeleton-docs.md +480 -0
- package/generated/docs/{components-skeleton-recipes-docs.md → components_components-skeleton-recipes-docs.md} +50 -10
- package/generated/docs/{components-skiplink-docs.md → components_components-skiplink-docs.md} +53 -14
- package/generated/docs/components_components-slideout-docs.md +2262 -0
- package/generated/docs/components_components-slider-docs.md +1276 -0
- package/generated/docs/components_components-spinner-docs.md +82 -0
- package/generated/docs/{components-stack-docs.md → components_components-stack-docs.md} +223 -40
- package/generated/docs/components_components-table-docs.md +3651 -0
- package/generated/docs/components_components-tabset-docs.md +772 -0
- package/generated/docs/components_components-tabset-tab-docs.md +262 -0
- package/generated/docs/components_components-tag-docs.md +259 -0
- package/generated/docs/{components-text-docs.md → components_components-text-docs.md} +491 -51
- package/generated/docs/{components-toaster-docs.md → components_components-toaster-docs.md} +224 -71
- package/generated/docs/components_components-toaster-toast-docs.md +634 -0
- package/generated/docs/components_components-toggle-docs.md +461 -0
- package/generated/docs/{components-tooltip-docs.md → components_components-tooltip-docs.md} +286 -41
- package/generated/docs/{components-validationmessage-docs.md → components_components-validationmessage-docs.md} +230 -61
- package/generated/docs/components_contact-us-docs.md +12 -0
- package/generated/docs/{foundations-accessibility-docs.md → components_foundations-accessibility-docs.md} +11 -21
- package/generated/docs/{foundations-colours-docs.md → components_foundations-colour-030-colours.md} +8 -15
- package/generated/docs/{foundations-consistency-docs.md → components_foundations-consistency-docs.md} +12 -20
- package/generated/docs/{foundations-content-docs.md → components_foundations-content-docs.md} +6 -11
- package/generated/docs/components_foundations-introduction-docs.md +15 -0
- package/generated/docs/{foundations-principles-docs.md → components_foundations-principles-docs.md} +14 -24
- package/generated/docs/components_foundations-typography-docs.md +608 -0
- package/generated/docs/{foundations-user-experience-docs.md → components_foundations-user-experience-docs.md} +16 -26
- package/generated/docs/{foundations-visual-design-docs.md → components_foundations-visual-design-docs.md} +10 -17
- package/generated/docs/{frequently-asked-questions-docs.md → components_frequently-asked-questions-docs.md} +14 -23
- package/generated/docs/components_get-started-develop-docs.md +84 -0
- package/generated/docs/components_get-started-using-storybook-docs.md +55 -0
- package/generated/docs/components_introduction-docs.md +15 -0
- package/generated/docs/{patterns-loading-docs.md → components_patterns-loading-docs.md} +711 -143
- package/generated/docs/components_resources-changelog-docs.md +4 -0
- package/generated/docs/{resources-code-katas-docs.md → components_resources-code-katas-docs.md} +5 -9
- package/generated/docs/{resources-migration-guides-from-v4-to-v5-docs.md → components_resources-migration-guides-from-v4-to-v5-docs.md} +54 -239
- package/generated/docs/{versions-docs.md → components_versions-docs.md} +5 -8
- package/generated/docs/guidelines.md +484 -200
- package/generated/docs/introduction-docs.md +19 -30
- package/package.json +41 -45
- package/generated/docs/components-alert-docs.md +0 -130
- package/generated/docs/components-autocomplete-docs.md +0 -754
- 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-checkbox-docs.md +0 -193
- package/generated/docs/components-combobox-docs.md +0 -1016
- package/generated/docs/components-filter-docs.md +0 -1109
- package/generated/docs/components-hide-docs.md +0 -265
- package/generated/docs/components-icon-docs.md +0 -553
- 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-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-navbar-docs.md +0 -291
- package/generated/docs/components-placeholder-docs.md +0 -27
- package/generated/docs/components-popover-docs.md +0 -464
- package/generated/docs/components-progress-docs.md +0 -104
- package/generated/docs/components-radio-docs.md +0 -107
- package/generated/docs/components-readonly-docs.md +0 -89
- package/generated/docs/components-richselect-docs.md +0 -2433
- package/generated/docs/components-skeleton-docs.md +0 -214
- 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-table-ag-grid-docs.md +0 -2666
- 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-toaster-toast-docs.md +0 -157
- package/generated/docs/components-toggle-docs.md +0 -158
- 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-introduction-docs.md +0 -17
- package/generated/docs/foundations-typography-docs.md +0 -191
- package/generated/docs/get-started-develop-docs.md +0 -48
- package/generated/docs/get-started-using-storybook-docs.md +0 -68
- package/generated/docs/resources-changelog-docs.md +0 -6
- 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/{LICENSE.txt → LICENSE} +0 -0
|
@@ -0,0 +1,480 @@
|
|
|
1
|
+
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
|
+
[](./iframe.html?id=components-skeleton--default)
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
<IressSkeleton />
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Props
|
|
18
|
+
-----
|
|
19
|
+
|
|
20
|
+
| Name | Description | Default | Control |
|
|
21
|
+
| --- | --- | --- | --- |
|
|
22
|
+
| height |
|
|
23
|
+
Sets the height of the skeleton bones. If no unit is specified it will default to pixels. Will be ignored when in `text` mode.
|
|
24
|
+
|
|
25
|
+
string
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
| \- | Set string |
|
|
30
|
+
| mode |
|
|
31
|
+
|
|
32
|
+
Mode of the skeleton. `rect` and `circle` must have `width` and `height` specified. `text` works with `textVariant`.
|
|
33
|
+
|
|
34
|
+
union
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
|
39
|
+
|
|
40
|
+
'text'
|
|
41
|
+
|
|
42
|
+
| Set object |
|
|
43
|
+
| textVariant |
|
|
44
|
+
|
|
45
|
+
Use `textVariant` to specify what the Skeleton should emulate. If set to `h1` a non-break space with the same font-size and line-height of a h1 will be rendered.
|
|
46
|
+
|
|
47
|
+
union
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
| \- | Set object |
|
|
52
|
+
| width |
|
|
53
|
+
|
|
54
|
+
Sets the width of the skeleton bones. If no unit is specified it will default to pixels.
|
|
55
|
+
|
|
56
|
+
string
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
| \- | Set string |
|
|
61
|
+
|
|
62
|
+
Examples
|
|
63
|
+
--------
|
|
64
|
+
|
|
65
|
+
### Modes
|
|
66
|
+
|
|
67
|
+
The `mode` prop can be set to `text` (default), `rect` or `circle`.
|
|
68
|
+
|
|
69
|
+
[](./iframe.html?id=components-skeleton--mode)
|
|
70
|
+
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
<IressStack gutter\="md"\>
|
|
74
|
+
<IressSkeleton mode\="text" />
|
|
75
|
+
<IressSkeleton
|
|
76
|
+
height\="100px"
|
|
77
|
+
mode\="rect"
|
|
78
|
+
/>
|
|
79
|
+
<IressSkeleton
|
|
80
|
+
height\="100px"
|
|
81
|
+
mode\="circle"
|
|
82
|
+
width\="100px"
|
|
83
|
+
/>
|
|
84
|
+
</IressStack\>
|
|
85
|
+
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
#### Props
|
|
89
|
+
|
|
90
|
+
| Name | Description | Default | Control |
|
|
91
|
+
| --- | --- | --- | --- |
|
|
92
|
+
| height |
|
|
93
|
+
Sets the height of the skeleton bones. If no unit is specified it will default to pixels. Will be ignored when in `text` mode.
|
|
94
|
+
|
|
95
|
+
string
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
| \- | \- |
|
|
100
|
+
| mode |
|
|
101
|
+
|
|
102
|
+
Mode of the skeleton. `rect` and `circle` must have `width` and `height` specified. `text` works with `textVariant`.
|
|
103
|
+
|
|
104
|
+
union
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
|
|
|
109
|
+
|
|
110
|
+
'text'
|
|
111
|
+
|
|
112
|
+
| \- |
|
|
113
|
+
| textVariant |
|
|
114
|
+
|
|
115
|
+
Use `textVariant` to specify what the Skeleton should emulate. If set to `h1` a non-break space with the same font-size and line-height of a h1 will be rendered.
|
|
116
|
+
|
|
117
|
+
union
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
| \- | Set object |
|
|
122
|
+
| width |
|
|
123
|
+
|
|
124
|
+
Sets the width of the skeleton bones. If no unit is specified it will default to pixels.
|
|
125
|
+
|
|
126
|
+
string
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
| \- | \- |
|
|
131
|
+
|
|
132
|
+
### Text
|
|
133
|
+
|
|
134
|
+
`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.
|
|
135
|
+
|
|
136
|
+
`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.
|
|
137
|
+
|
|
138
|
+
[](./iframe.html?id=components-skeleton--text)
|
|
139
|
+
|
|
140
|
+
Toggle load
|
|
141
|
+
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
import { useState } from 'react';
|
|
145
|
+
import {
|
|
146
|
+
IressButton,
|
|
147
|
+
IressSkeleton,
|
|
148
|
+
type IressSkeletonProps,
|
|
149
|
+
IressStack,
|
|
150
|
+
IressText,
|
|
151
|
+
TEXT\_VARIANTS,
|
|
152
|
+
} from '@iress-oss/ids-components';
|
|
153
|
+
export const SkeletonText \= () \=> {
|
|
154
|
+
const \[loading, setLoading\] \= useState(true);
|
|
155
|
+
return (
|
|
156
|
+
<IressStack gutter\={IressStack.Gutter.Md}\>
|
|
157
|
+
<IressButton onClick\={() \=> setLoading(!loading)}\>
|
|
158
|
+
Toggle load </IressButton\>
|
|
159
|
+
<IressStack gutter\={IressStack.Gutter.Xs}\>
|
|
160
|
+
{TEXT\_VARIANTS.map((textVariant) \=> \[
|
|
161
|
+
loading && <IressSkeleton {...{
|
|
162
|
+
mode: 'text',
|
|
163
|
+
}} textVariant\={textVariant} />,
|
|
164
|
+
!loading && (
|
|
165
|
+
<IressText variant\={textVariant}\>{textVariant}</IressText\>
|
|
166
|
+
),
|
|
167
|
+
\])}
|
|
168
|
+
</IressStack\>
|
|
169
|
+
</IressStack\>
|
|
170
|
+
);
|
|
171
|
+
};
|
|
172
|
+
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
#### Props
|
|
176
|
+
|
|
177
|
+
| Name | Description | Default | Control |
|
|
178
|
+
| --- | --- | --- | --- |
|
|
179
|
+
| height |
|
|
180
|
+
Sets the height of the skeleton bones. If no unit is specified it will default to pixels. Will be ignored when in `text` mode.
|
|
181
|
+
|
|
182
|
+
string
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
| \- | Set string |
|
|
187
|
+
| mode |
|
|
188
|
+
|
|
189
|
+
Mode of the skeleton. `rect` and `circle` must have `width` and `height` specified. `text` works with `textVariant`.
|
|
190
|
+
|
|
191
|
+
union
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
|
|
|
196
|
+
|
|
197
|
+
'text'
|
|
198
|
+
|
|
199
|
+
|
|
|
200
|
+
|
|
201
|
+
"text"
|
|
202
|
+
|
|
203
|
+
|
|
|
204
|
+
| textVariant |
|
|
205
|
+
|
|
206
|
+
Use `textVariant` to specify what the Skeleton should emulate. If set to `h1` a non-break space with the same font-size and line-height of a h1 will be rendered.
|
|
207
|
+
|
|
208
|
+
union
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
| \- | \- |
|
|
213
|
+
| width |
|
|
214
|
+
|
|
215
|
+
Sets the width of the skeleton bones. If no unit is specified it will default to pixels.
|
|
216
|
+
|
|
217
|
+
string
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
| \- | Set string |
|
|
222
|
+
|
|
223
|
+
### Rect
|
|
224
|
+
|
|
225
|
+
`rect` mode allows you to use `IressSkeleton` in place of block elements, a good example would be in place of images.
|
|
226
|
+
|
|
227
|
+
`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`).
|
|
228
|
+
|
|
229
|
+
[](./iframe.html?id=components-skeleton--rect)
|
|
230
|
+
|
|
231
|
+
Toggle load
|
|
232
|
+
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
import { useState } from 'react';
|
|
236
|
+
import {
|
|
237
|
+
IressButton,
|
|
238
|
+
IressPlaceholder,
|
|
239
|
+
IressSkeleton,
|
|
240
|
+
type IressSkeletonProps,
|
|
241
|
+
IressStack,
|
|
242
|
+
} from '@iress-oss/ids-components';
|
|
243
|
+
export const SkeletonRect \= () \=> {
|
|
244
|
+
const \[loading, setLoading\] \= useState(true);
|
|
245
|
+
return (
|
|
246
|
+
<IressStack gutter\={IressStack.Gutter.Md}\>
|
|
247
|
+
<IressButton onClick\={() \=> setLoading(!loading)}\>
|
|
248
|
+
Toggle load </IressButton\>
|
|
249
|
+
{loading && <IressSkeleton {...{
|
|
250
|
+
mode: 'rect',
|
|
251
|
+
width: '250',
|
|
252
|
+
height: '150',
|
|
253
|
+
}} />}
|
|
254
|
+
{!loading && <IressPlaceholder {...{
|
|
255
|
+
mode: 'rect',
|
|
256
|
+
width: '250',
|
|
257
|
+
height: '150',
|
|
258
|
+
}}\>Image</IressPlaceholder\>}
|
|
259
|
+
</IressStack\>
|
|
260
|
+
);
|
|
261
|
+
};
|
|
262
|
+
|
|
263
|
+
```
|
|
264
|
+
|
|
265
|
+
#### Props
|
|
266
|
+
|
|
267
|
+
| Name | Description | Default | Control |
|
|
268
|
+
| --- | --- | --- | --- |
|
|
269
|
+
| height |
|
|
270
|
+
Sets the height of the skeleton bones. If no unit is specified it will default to pixels. Will be ignored when in `text` mode.
|
|
271
|
+
|
|
272
|
+
string
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
| \- | 150 |
|
|
277
|
+
| mode |
|
|
278
|
+
|
|
279
|
+
Mode of the skeleton. `rect` and `circle` must have `width` and `height` specified. `text` works with `textVariant`.
|
|
280
|
+
|
|
281
|
+
union
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
|
|
|
286
|
+
|
|
287
|
+
'text'
|
|
288
|
+
|
|
289
|
+
|
|
|
290
|
+
|
|
291
|
+
"rect"
|
|
292
|
+
|
|
293
|
+
|
|
|
294
|
+
| textVariant |
|
|
295
|
+
|
|
296
|
+
Use `textVariant` to specify what the Skeleton should emulate. If set to `h1` a non-break space with the same font-size and line-height of a h1 will be rendered.
|
|
297
|
+
|
|
298
|
+
union
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
| \- | Set object |
|
|
303
|
+
| width |
|
|
304
|
+
|
|
305
|
+
Sets the width of the skeleton bones. If no unit is specified it will default to pixels.
|
|
306
|
+
|
|
307
|
+
string
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
| \- | 250 |
|
|
312
|
+
|
|
313
|
+
### Circle
|
|
314
|
+
|
|
315
|
+
`circle` mode allows you to use `IressSkeleton` in place of circular elements, a good example would be for profile images.
|
|
316
|
+
|
|
317
|
+
`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`).
|
|
318
|
+
|
|
319
|
+
[](./iframe.html?id=components-skeleton--circle)
|
|
320
|
+
|
|
321
|
+
Toggle load
|
|
322
|
+
|
|
323
|
+
```
|
|
324
|
+
|
|
325
|
+
import { useState } from 'react';
|
|
326
|
+
import {
|
|
327
|
+
IressButton,
|
|
328
|
+
IressPlaceholder,
|
|
329
|
+
IressSkeleton,
|
|
330
|
+
type IressSkeletonProps,
|
|
331
|
+
IressStack,
|
|
332
|
+
} from '@iress-oss/ids-components';
|
|
333
|
+
export const SkeletonCircle \= () \=> {
|
|
334
|
+
const \[loading, setLoading\] \= useState(true);
|
|
335
|
+
return (
|
|
336
|
+
<IressStack gutter\={IressStack.Gutter.Md}\>
|
|
337
|
+
<IressButton onClick\={() \=> setLoading(!loading)}\>
|
|
338
|
+
Toggle load </IressButton\>
|
|
339
|
+
{loading && <IressSkeleton {...{
|
|
340
|
+
mode: 'circle',
|
|
341
|
+
width: '150',
|
|
342
|
+
height: '150',
|
|
343
|
+
}} />}
|
|
344
|
+
{!loading && (
|
|
345
|
+
<IressPlaceholder {...{
|
|
346
|
+
mode: 'circle',
|
|
347
|
+
width: '150',
|
|
348
|
+
height: '150',
|
|
349
|
+
}} style\={{ borderRadius: '50%' }}\>
|
|
350
|
+
Image </IressPlaceholder\>
|
|
351
|
+
)}
|
|
352
|
+
</IressStack\>
|
|
353
|
+
);
|
|
354
|
+
};
|
|
355
|
+
|
|
356
|
+
```
|
|
357
|
+
|
|
358
|
+
#### Props
|
|
359
|
+
|
|
360
|
+
| Name | Description | Default | Control |
|
|
361
|
+
| --- | --- | --- | --- |
|
|
362
|
+
| height |
|
|
363
|
+
Sets the height of the skeleton bones. If no unit is specified it will default to pixels. Will be ignored when in `text` mode.
|
|
364
|
+
|
|
365
|
+
string
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+
| \- | 150 |
|
|
370
|
+
| mode |
|
|
371
|
+
|
|
372
|
+
Mode of the skeleton. `rect` and `circle` must have `width` and `height` specified. `text` works with `textVariant`.
|
|
373
|
+
|
|
374
|
+
union
|
|
375
|
+
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
|
|
|
379
|
+
|
|
380
|
+
'text'
|
|
381
|
+
|
|
382
|
+
|
|
|
383
|
+
|
|
384
|
+
"circle"
|
|
385
|
+
|
|
386
|
+
|
|
|
387
|
+
| textVariant |
|
|
388
|
+
|
|
389
|
+
Use `textVariant` to specify what the Skeleton should emulate. If set to `h1` a non-break space with the same font-size and line-height of a h1 will be rendered.
|
|
390
|
+
|
|
391
|
+
union
|
|
392
|
+
|
|
393
|
+
|
|
394
|
+
|
|
395
|
+
| \- | Set object |
|
|
396
|
+
| width |
|
|
397
|
+
|
|
398
|
+
Sets the width of the skeleton bones. If no unit is specified it will default to pixels.
|
|
399
|
+
|
|
400
|
+
string
|
|
401
|
+
|
|
402
|
+
|
|
403
|
+
|
|
404
|
+
| \- | 150 |
|
|
405
|
+
|
|
406
|
+
### Size
|
|
407
|
+
|
|
408
|
+
`width` and `height` props can be used to match the layout of the loaded content.
|
|
409
|
+
|
|
410
|
+
These props accept any unit of dimension, but if no unit is provided it will default to pixels.
|
|
411
|
+
|
|
412
|
+
**Note:** `height` will be ignored for text mode as this is calculated using the `IressText` component.
|
|
413
|
+
|
|
414
|
+
[](./iframe.html?id=components-skeleton--size)
|
|
415
|
+
|
|
416
|
+
```
|
|
417
|
+
|
|
418
|
+
<IressInline gutter\="md"\>
|
|
419
|
+
<IressSkeleton
|
|
420
|
+
height\="150"
|
|
421
|
+
mode\="rect"
|
|
422
|
+
width\="150"
|
|
423
|
+
/>
|
|
424
|
+
<IressSkeleton
|
|
425
|
+
height\="150"
|
|
426
|
+
mode\="circle"
|
|
427
|
+
width\="150"
|
|
428
|
+
/>
|
|
429
|
+
<IressSkeleton
|
|
430
|
+
height\="150"
|
|
431
|
+
mode\="text"
|
|
432
|
+
width\="150"
|
|
433
|
+
/>
|
|
434
|
+
</IressInline\>
|
|
435
|
+
|
|
436
|
+
```
|
|
437
|
+
|
|
438
|
+
#### Props
|
|
439
|
+
|
|
440
|
+
| Name | Description | Default | Control |
|
|
441
|
+
| --- | --- | --- | --- |
|
|
442
|
+
| height |
|
|
443
|
+
Sets the height of the skeleton bones. If no unit is specified it will default to pixels. Will be ignored when in `text` mode.
|
|
444
|
+
|
|
445
|
+
string
|
|
446
|
+
|
|
447
|
+
|
|
448
|
+
|
|
449
|
+
| \- | 150 |
|
|
450
|
+
| mode |
|
|
451
|
+
|
|
452
|
+
Mode of the skeleton. `rect` and `circle` must have `width` and `height` specified. `text` works with `textVariant`.
|
|
453
|
+
|
|
454
|
+
union
|
|
455
|
+
|
|
456
|
+
|
|
457
|
+
|
|
458
|
+
|
|
|
459
|
+
|
|
460
|
+
'text'
|
|
461
|
+
|
|
462
|
+
| \- |
|
|
463
|
+
| textVariant |
|
|
464
|
+
|
|
465
|
+
Use `textVariant` to specify what the Skeleton should emulate. If set to `h1` a non-break space with the same font-size and line-height of a h1 will be rendered.
|
|
466
|
+
|
|
467
|
+
union
|
|
468
|
+
|
|
469
|
+
|
|
470
|
+
|
|
471
|
+
| \- | Set object |
|
|
472
|
+
| width |
|
|
473
|
+
|
|
474
|
+
Sets the width of the skeleton bones. If no unit is specified it will default to pixels.
|
|
475
|
+
|
|
476
|
+
string
|
|
477
|
+
|
|
478
|
+
|
|
479
|
+
|
|
480
|
+
| \- | 150 |
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
Recipes
|
|
2
|
+
=======
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
`IressCard`
|
|
5
|
+
-----------
|
|
6
6
|
|
|
7
7
|
A common use case of the skeleton component is within a card component. Below are some examples of how you might use `IressSkeleton` within `IressCard`.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
[](./iframe.html?id=components-skeleton-recipes--card)
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Toggle load
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
```
|
|
14
14
|
|
|
15
15
|
import { useState } from 'react';
|
|
16
16
|
import {
|
|
@@ -69,8 +69,48 @@ export const SkeletonCard \= () \=> {
|
|
|
69
69
|
);
|
|
70
70
|
};
|
|
71
71
|
|
|
72
|
-
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
#### Props
|
|
75
|
+
|
|
76
|
+
| Name | Description | Default | Control |
|
|
77
|
+
| --- | --- | --- | --- |
|
|
78
|
+
| height |
|
|
79
|
+
Sets the height of the skeleton bones. If no unit is specified it will default to pixels. Will be ignored when in `text` mode.
|
|
80
|
+
|
|
81
|
+
string
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
| \- | Set string |
|
|
86
|
+
| mode |
|
|
87
|
+
|
|
88
|
+
Mode of the skeleton. `rect` and `circle` must have `width` and `height` specified. `text` works with `textVariant`.
|
|
89
|
+
|
|
90
|
+
union
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
|
95
|
+
|
|
96
|
+
'text'
|
|
97
|
+
|
|
98
|
+
| Set object |
|
|
99
|
+
| textVariant |
|
|
100
|
+
|
|
101
|
+
Use `textVariant` to specify what the Skeleton should emulate. If set to `h1` a non-break space with the same font-size and line-height of a h1 will be rendered.
|
|
102
|
+
|
|
103
|
+
union
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
| \- | Set object |
|
|
108
|
+
| width |
|
|
109
|
+
|
|
110
|
+
Sets the width of the skeleton bones. If no unit is specified it will default to pixels.
|
|
111
|
+
|
|
112
|
+
string
|
|
113
|
+
|
|
73
114
|
|
|
74
|
-
On this page
|
|
75
115
|
|
|
76
|
-
|
|
116
|
+
| \- | Set string |
|
package/generated/docs/{components-skiplink-docs.md → components_components-skiplink-docs.md}
RENAMED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
SkipLink
|
|
2
|
+
========
|
|
3
3
|
|
|
4
4
|
Overview
|
|
5
5
|
--------
|
|
6
6
|
|
|
7
7
|
The skip link component allows keyboard users to quickly bypass the top-level navigation links and jump to the main content on a page.
|
|
8
8
|
|
|
9
|
+
[](./iframe.html?id=components-skiplink--skip-link)
|
|
10
|
+
|
|
9
11
|
[Skip to content](#main)
|
|
10
12
|
|
|
11
13
|
This is where the main content `id="main"` of the application is located. It is important that whatever your skip link is targeting is **focusable**. If its a non-interactive element, this can be done by adding `tabindex="-1"` to the element.
|
|
12
14
|
|
|
13
15
|
The skip link is [hidden until it is focused](#skip-link).
|
|
14
16
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
\[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; }
|
|
17
|
+
```
|
|
18
18
|
|
|
19
19
|
<IressContainer\>
|
|
20
20
|
<IressSkipLink
|
|
@@ -25,7 +25,7 @@ Hide code
|
|
|
25
25
|
}}
|
|
26
26
|
/>
|
|
27
27
|
<main
|
|
28
|
-
className\="iress-u-container iress-u-text iress-u-panel ids-styles--highlight-on-focus-
|
|
28
|
+
className\="iress-u-container iress-u-text iress-u-panel ids-styles--highlight-on-focus-v5202"
|
|
29
29
|
id\="main"
|
|
30
30
|
tabIndex\={\-1}
|
|
31
31
|
\>
|
|
@@ -52,15 +52,54 @@ Hide code
|
|
|
52
52
|
</main\>
|
|
53
53
|
</IressContainer\>
|
|
54
54
|
|
|
55
|
-
|
|
55
|
+
```
|
|
56
56
|
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
Props
|
|
58
|
+
-----
|
|
59
|
+
|
|
60
|
+
| Name | Description | Default | Control |
|
|
61
|
+
| --- | --- | --- | --- |
|
|
62
|
+
| children |
|
|
63
|
+
Description of where the skip link jumps to.
|
|
64
|
+
|
|
65
|
+
ReactNode
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
|
70
|
+
|
|
71
|
+
'Skip to content'
|
|
72
|
+
|
|
73
|
+
| Set object |
|
|
74
|
+
| href |
|
|
75
|
+
|
|
76
|
+
The target of the skip link.
|
|
77
|
+
|
|
78
|
+
string
|
|
59
79
|
|
|
60
|
-
* The skip link component is visually hidden until it is tabbed to.
|
|
61
80
|
|
|
62
|
-
On this page
|
|
63
81
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
82
|
+
| \- | #main |
|
|
83
|
+
| id |
|
|
84
|
+
|
|
85
|
+
Unique identifier for the skip link.
|
|
86
|
+
|
|
87
|
+
string
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
| \- | skip-link |
|
|
92
|
+
| targetId |
|
|
93
|
+
|
|
94
|
+
The target ID of the element that the link will skip to. If not provided, will fall back to the `href` property.
|
|
95
|
+
|
|
96
|
+
string
|
|
97
|
+
|
|
98
|
+
<table class="css-3nr4py"><tbody><tr><td colspan="2"><strong>Deprecated</strong>: Use `href` with a `#` instead (eg. #main).</td></tr></tbody></table>
|
|
99
|
+
|
|
100
|
+
| \- | Set string |
|
|
101
|
+
|
|
102
|
+
Behaviour
|
|
103
|
+
---------
|
|
104
|
+
|
|
105
|
+
* The skip link component is visually hidden until it is tabbed to.
|