@contentful/f36-spinner 4.0.1 → 4.1.0
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/CHANGELOG.md +11 -0
- package/README.mdx +24 -14
- package/dist/main.js +0 -0
- package/dist/main.js.map +0 -0
- package/dist/module.js +0 -0
- package/dist/module.js.map +0 -0
- package/dist/types.d.ts +11 -259
- package/dist/types.d.ts.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [4.1.0](https://github.com/contentful/forma-36/compare/@contentful/f36-spinner@4.0.1...@contentful/f36-spinner@4.1.0) (2022-01-31)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* implement props list redesign [BAU-535] ([#1756](https://github.com/contentful/forma-36/issues/1756)) ([21c57e7](https://github.com/contentful/forma-36/commit/21c57e72008b75990d03af4e7500edc1c7f3d26d))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [4.0.1](https://github.com/contentful/forma-36/compare/@contentful/f36-spinner@4.0.0...@contentful/f36-spinner@4.0.1) (2022-01-11)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @contentful/f36-spinner
|
package/README.mdx
CHANGED
|
@@ -8,30 +8,40 @@ storybook: 'https://v4-f36-storybook.netlify.app/?path=/story/components-spinner
|
|
|
8
8
|
typescript: ./src/Spinner.tsx
|
|
9
9
|
---
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
`Spinner` is a graphic element that helps communicating to users that an action is in progress and it will take some time to be completed.
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
## Import
|
|
14
14
|
|
|
15
|
-
```
|
|
16
|
-
|
|
15
|
+
```js static=true
|
|
16
|
+
import { Spinner } from '@contentful/f36-components';
|
|
17
|
+
// or
|
|
18
|
+
import { Spinner } from '@contentful/f36-spinner';
|
|
17
19
|
```
|
|
18
20
|
|
|
19
|
-
##
|
|
21
|
+
## Examples
|
|
20
22
|
|
|
21
|
-
###
|
|
23
|
+
### Variants
|
|
24
|
+
|
|
25
|
+
```jsx file=examples/SpinnerVariantsExample.tsx
|
|
26
|
+
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
### Sizes
|
|
22
30
|
|
|
23
|
-
|
|
31
|
+
```jsx file=examples/SpinnerSizesExample.tsx
|
|
24
32
|
|
|
25
|
-
```jsx
|
|
26
|
-
<div>
|
|
27
|
-
Loading <Spinner />
|
|
28
|
-
</div>
|
|
29
33
|
```
|
|
30
34
|
|
|
35
|
+
### With text
|
|
36
|
+
|
|
37
|
+
It’s possible to use the `Spinner` with other elements. A very common pattern is using it together with text.
|
|
38
|
+
|
|
31
39
|
Another good example of the Spinner being used with other components is the loading state of `Button` component.
|
|
32
40
|
|
|
33
|
-
|
|
41
|
+
```jsx file=examples/SpinnerWithTextExample.tsx
|
|
42
|
+
|
|
43
|
+
```
|
|
34
44
|
|
|
35
|
-
|
|
45
|
+
## Props (API reference)
|
|
36
46
|
|
|
37
|
-
<
|
|
47
|
+
<PropsTable of="Spinner" />
|
package/dist/main.js
CHANGED
|
File without changes
|
package/dist/main.js.map
CHANGED
|
File without changes
|
package/dist/module.js
CHANGED
|
File without changes
|
package/dist/module.js.map
CHANGED
|
File without changes
|
package/dist/types.d.ts
CHANGED
|
@@ -18,267 +18,19 @@ type SpinnerInternalProps = CommonProps & {
|
|
|
18
18
|
size?: SpinnerSize;
|
|
19
19
|
};
|
|
20
20
|
export type SpinnerProps = PropsWithHTMLElement<SpinnerInternalProps, 'div'>;
|
|
21
|
-
export const Spinner: React.ForwardRefExoticComponent<{
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
title?: string;
|
|
26
|
-
key?: React.Key;
|
|
27
|
-
defaultChecked?: boolean;
|
|
28
|
-
defaultValue?: string | number | readonly string[];
|
|
29
|
-
suppressContentEditableWarning?: boolean;
|
|
30
|
-
suppressHydrationWarning?: boolean;
|
|
31
|
-
accessKey?: string;
|
|
32
|
-
contentEditable?: "inherit" | (boolean | "true" | "false");
|
|
33
|
-
contextMenu?: string;
|
|
34
|
-
dir?: string;
|
|
35
|
-
draggable?: boolean | "true" | "false";
|
|
36
|
-
hidden?: boolean;
|
|
37
|
-
id?: string;
|
|
38
|
-
lang?: string;
|
|
39
|
-
placeholder?: string;
|
|
40
|
-
spellCheck?: boolean | "true" | "false";
|
|
41
|
-
tabIndex?: number;
|
|
42
|
-
radioGroup?: string;
|
|
43
|
-
role?: string;
|
|
44
|
-
about?: string;
|
|
45
|
-
datatype?: string;
|
|
46
|
-
inlist?: any;
|
|
47
|
-
prefix?: string;
|
|
48
|
-
property?: string;
|
|
49
|
-
resource?: string;
|
|
50
|
-
typeof?: string;
|
|
51
|
-
vocab?: string;
|
|
52
|
-
autoCapitalize?: string;
|
|
53
|
-
autoCorrect?: string;
|
|
54
|
-
autoSave?: string;
|
|
55
|
-
itemProp?: string;
|
|
56
|
-
itemScope?: boolean;
|
|
57
|
-
itemType?: string;
|
|
58
|
-
itemID?: string;
|
|
59
|
-
itemRef?: string;
|
|
60
|
-
results?: number;
|
|
61
|
-
security?: string;
|
|
62
|
-
unselectable?: "on" | "off";
|
|
63
|
-
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search";
|
|
64
|
-
is?: string;
|
|
65
|
-
'aria-activedescendant'?: string;
|
|
66
|
-
'aria-atomic'?: boolean | "true" | "false";
|
|
67
|
-
'aria-autocomplete'?: "both" | "none" | "list" | "inline";
|
|
68
|
-
'aria-busy'?: boolean | "true" | "false";
|
|
69
|
-
'aria-checked'?: boolean | "true" | "false" | "mixed";
|
|
70
|
-
'aria-colcount'?: number;
|
|
71
|
-
'aria-colindex'?: number;
|
|
72
|
-
'aria-colspan'?: number;
|
|
73
|
-
'aria-controls'?: string;
|
|
74
|
-
'aria-current'?: boolean | "time" | "true" | "false" | "step" | "page" | "location" | "date";
|
|
75
|
-
'aria-describedby'?: string;
|
|
76
|
-
'aria-details'?: string;
|
|
77
|
-
'aria-disabled'?: boolean | "true" | "false";
|
|
78
|
-
'aria-dropeffect'?: "none" | "link" | "copy" | "execute" | "move" | "popup";
|
|
79
|
-
'aria-errormessage'?: string;
|
|
80
|
-
'aria-expanded'?: boolean | "true" | "false";
|
|
81
|
-
'aria-flowto'?: string;
|
|
82
|
-
'aria-grabbed'?: boolean | "true" | "false";
|
|
83
|
-
'aria-haspopup'?: boolean | "grid" | "dialog" | "menu" | "true" | "false" | "listbox" | "tree";
|
|
84
|
-
'aria-hidden'?: boolean | "true" | "false";
|
|
85
|
-
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling";
|
|
86
|
-
'aria-keyshortcuts'?: string;
|
|
87
|
-
'aria-label'?: string;
|
|
88
|
-
'aria-labelledby'?: string;
|
|
89
|
-
'aria-level'?: number;
|
|
90
|
-
'aria-live'?: "off" | "assertive" | "polite";
|
|
91
|
-
'aria-modal'?: boolean | "true" | "false";
|
|
92
|
-
'aria-multiline'?: boolean | "true" | "false";
|
|
93
|
-
'aria-multiselectable'?: boolean | "true" | "false";
|
|
94
|
-
'aria-orientation'?: "horizontal" | "vertical";
|
|
95
|
-
'aria-owns'?: string;
|
|
96
|
-
'aria-placeholder'?: string;
|
|
97
|
-
'aria-posinset'?: number;
|
|
98
|
-
'aria-pressed'?: boolean | "true" | "false" | "mixed";
|
|
99
|
-
'aria-readonly'?: boolean | "true" | "false";
|
|
100
|
-
'aria-relevant'?: "all" | "text" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals";
|
|
101
|
-
'aria-required'?: boolean | "true" | "false";
|
|
102
|
-
'aria-roledescription'?: string;
|
|
103
|
-
'aria-rowcount'?: number;
|
|
104
|
-
'aria-rowindex'?: number;
|
|
105
|
-
'aria-rowspan'?: number;
|
|
106
|
-
'aria-selected'?: boolean | "true" | "false";
|
|
107
|
-
'aria-setsize'?: number;
|
|
108
|
-
'aria-sort'?: "none" | "ascending" | "descending" | "other";
|
|
109
|
-
'aria-valuemax'?: number;
|
|
110
|
-
'aria-valuemin'?: number;
|
|
111
|
-
'aria-valuenow'?: number;
|
|
112
|
-
'aria-valuetext'?: string;
|
|
113
|
-
children?: React.ReactNode;
|
|
114
|
-
dangerouslySetInnerHTML?: {
|
|
115
|
-
__html: string;
|
|
116
|
-
};
|
|
117
|
-
onCopy?: React.ClipboardEventHandler<HTMLDivElement>;
|
|
118
|
-
onCopyCapture?: React.ClipboardEventHandler<HTMLDivElement>;
|
|
119
|
-
onCut?: React.ClipboardEventHandler<HTMLDivElement>;
|
|
120
|
-
onCutCapture?: React.ClipboardEventHandler<HTMLDivElement>;
|
|
121
|
-
onPaste?: React.ClipboardEventHandler<HTMLDivElement>;
|
|
122
|
-
onPasteCapture?: React.ClipboardEventHandler<HTMLDivElement>;
|
|
123
|
-
onCompositionEnd?: React.CompositionEventHandler<HTMLDivElement>;
|
|
124
|
-
onCompositionEndCapture?: React.CompositionEventHandler<HTMLDivElement>;
|
|
125
|
-
onCompositionStart?: React.CompositionEventHandler<HTMLDivElement>;
|
|
126
|
-
onCompositionStartCapture?: React.CompositionEventHandler<HTMLDivElement>;
|
|
127
|
-
onCompositionUpdate?: React.CompositionEventHandler<HTMLDivElement>;
|
|
128
|
-
onCompositionUpdateCapture?: React.CompositionEventHandler<HTMLDivElement>;
|
|
129
|
-
onFocus?: React.FocusEventHandler<HTMLDivElement>;
|
|
130
|
-
onFocusCapture?: React.FocusEventHandler<HTMLDivElement>;
|
|
131
|
-
onBlur?: React.FocusEventHandler<HTMLDivElement>;
|
|
132
|
-
onBlurCapture?: React.FocusEventHandler<HTMLDivElement>;
|
|
133
|
-
onChange?: React.FormEventHandler<HTMLDivElement>;
|
|
134
|
-
onChangeCapture?: React.FormEventHandler<HTMLDivElement>;
|
|
135
|
-
onBeforeInput?: React.FormEventHandler<HTMLDivElement>;
|
|
136
|
-
onBeforeInputCapture?: React.FormEventHandler<HTMLDivElement>;
|
|
137
|
-
onInput?: React.FormEventHandler<HTMLDivElement>;
|
|
138
|
-
onInputCapture?: React.FormEventHandler<HTMLDivElement>;
|
|
139
|
-
onReset?: React.FormEventHandler<HTMLDivElement>;
|
|
140
|
-
onResetCapture?: React.FormEventHandler<HTMLDivElement>;
|
|
141
|
-
onSubmit?: React.FormEventHandler<HTMLDivElement>;
|
|
142
|
-
onSubmitCapture?: React.FormEventHandler<HTMLDivElement>;
|
|
143
|
-
onInvalid?: React.FormEventHandler<HTMLDivElement>;
|
|
144
|
-
onInvalidCapture?: React.FormEventHandler<HTMLDivElement>;
|
|
145
|
-
onLoad?: React.ReactEventHandler<HTMLDivElement>;
|
|
146
|
-
onLoadCapture?: React.ReactEventHandler<HTMLDivElement>;
|
|
147
|
-
onError?: React.ReactEventHandler<HTMLDivElement>;
|
|
148
|
-
onErrorCapture?: React.ReactEventHandler<HTMLDivElement>;
|
|
149
|
-
onKeyDown?: React.KeyboardEventHandler<HTMLDivElement>;
|
|
150
|
-
onKeyDownCapture?: React.KeyboardEventHandler<HTMLDivElement>;
|
|
151
|
-
onKeyPress?: React.KeyboardEventHandler<HTMLDivElement>;
|
|
152
|
-
onKeyPressCapture?: React.KeyboardEventHandler<HTMLDivElement>;
|
|
153
|
-
onKeyUp?: React.KeyboardEventHandler<HTMLDivElement>;
|
|
154
|
-
onKeyUpCapture?: React.KeyboardEventHandler<HTMLDivElement>;
|
|
155
|
-
onAbort?: React.ReactEventHandler<HTMLDivElement>;
|
|
156
|
-
onAbortCapture?: React.ReactEventHandler<HTMLDivElement>;
|
|
157
|
-
onCanPlay?: React.ReactEventHandler<HTMLDivElement>;
|
|
158
|
-
onCanPlayCapture?: React.ReactEventHandler<HTMLDivElement>;
|
|
159
|
-
onCanPlayThrough?: React.ReactEventHandler<HTMLDivElement>;
|
|
160
|
-
onCanPlayThroughCapture?: React.ReactEventHandler<HTMLDivElement>;
|
|
161
|
-
onDurationChange?: React.ReactEventHandler<HTMLDivElement>;
|
|
162
|
-
onDurationChangeCapture?: React.ReactEventHandler<HTMLDivElement>;
|
|
163
|
-
onEmptied?: React.ReactEventHandler<HTMLDivElement>;
|
|
164
|
-
onEmptiedCapture?: React.ReactEventHandler<HTMLDivElement>;
|
|
165
|
-
onEncrypted?: React.ReactEventHandler<HTMLDivElement>;
|
|
166
|
-
onEncryptedCapture?: React.ReactEventHandler<HTMLDivElement>;
|
|
167
|
-
onEnded?: React.ReactEventHandler<HTMLDivElement>;
|
|
168
|
-
onEndedCapture?: React.ReactEventHandler<HTMLDivElement>;
|
|
169
|
-
onLoadedData?: React.ReactEventHandler<HTMLDivElement>;
|
|
170
|
-
onLoadedDataCapture?: React.ReactEventHandler<HTMLDivElement>;
|
|
171
|
-
onLoadedMetadata?: React.ReactEventHandler<HTMLDivElement>;
|
|
172
|
-
onLoadedMetadataCapture?: React.ReactEventHandler<HTMLDivElement>;
|
|
173
|
-
onLoadStart?: React.ReactEventHandler<HTMLDivElement>;
|
|
174
|
-
onLoadStartCapture?: React.ReactEventHandler<HTMLDivElement>;
|
|
175
|
-
onPause?: React.ReactEventHandler<HTMLDivElement>;
|
|
176
|
-
onPauseCapture?: React.ReactEventHandler<HTMLDivElement>;
|
|
177
|
-
onPlay?: React.ReactEventHandler<HTMLDivElement>;
|
|
178
|
-
onPlayCapture?: React.ReactEventHandler<HTMLDivElement>;
|
|
179
|
-
onPlaying?: React.ReactEventHandler<HTMLDivElement>;
|
|
180
|
-
onPlayingCapture?: React.ReactEventHandler<HTMLDivElement>;
|
|
181
|
-
onProgress?: React.ReactEventHandler<HTMLDivElement>;
|
|
182
|
-
onProgressCapture?: React.ReactEventHandler<HTMLDivElement>;
|
|
183
|
-
onRateChange?: React.ReactEventHandler<HTMLDivElement>;
|
|
184
|
-
onRateChangeCapture?: React.ReactEventHandler<HTMLDivElement>;
|
|
185
|
-
onSeeked?: React.ReactEventHandler<HTMLDivElement>;
|
|
186
|
-
onSeekedCapture?: React.ReactEventHandler<HTMLDivElement>;
|
|
187
|
-
onSeeking?: React.ReactEventHandler<HTMLDivElement>;
|
|
188
|
-
onSeekingCapture?: React.ReactEventHandler<HTMLDivElement>;
|
|
189
|
-
onStalled?: React.ReactEventHandler<HTMLDivElement>;
|
|
190
|
-
onStalledCapture?: React.ReactEventHandler<HTMLDivElement>;
|
|
191
|
-
onSuspend?: React.ReactEventHandler<HTMLDivElement>;
|
|
192
|
-
onSuspendCapture?: React.ReactEventHandler<HTMLDivElement>;
|
|
193
|
-
onTimeUpdate?: React.ReactEventHandler<HTMLDivElement>;
|
|
194
|
-
onTimeUpdateCapture?: React.ReactEventHandler<HTMLDivElement>;
|
|
195
|
-
onVolumeChange?: React.ReactEventHandler<HTMLDivElement>;
|
|
196
|
-
onVolumeChangeCapture?: React.ReactEventHandler<HTMLDivElement>;
|
|
197
|
-
onWaiting?: React.ReactEventHandler<HTMLDivElement>;
|
|
198
|
-
onWaitingCapture?: React.ReactEventHandler<HTMLDivElement>;
|
|
199
|
-
onAuxClick?: React.MouseEventHandler<HTMLDivElement>;
|
|
200
|
-
onAuxClickCapture?: React.MouseEventHandler<HTMLDivElement>;
|
|
201
|
-
onClick?: React.MouseEventHandler<HTMLDivElement>;
|
|
202
|
-
onClickCapture?: React.MouseEventHandler<HTMLDivElement>;
|
|
203
|
-
onContextMenu?: React.MouseEventHandler<HTMLDivElement>;
|
|
204
|
-
onContextMenuCapture?: React.MouseEventHandler<HTMLDivElement>;
|
|
205
|
-
onDoubleClick?: React.MouseEventHandler<HTMLDivElement>;
|
|
206
|
-
onDoubleClickCapture?: React.MouseEventHandler<HTMLDivElement>;
|
|
207
|
-
onDrag?: React.DragEventHandler<HTMLDivElement>;
|
|
208
|
-
onDragCapture?: React.DragEventHandler<HTMLDivElement>;
|
|
209
|
-
onDragEnd?: React.DragEventHandler<HTMLDivElement>;
|
|
210
|
-
onDragEndCapture?: React.DragEventHandler<HTMLDivElement>;
|
|
211
|
-
onDragEnter?: React.DragEventHandler<HTMLDivElement>;
|
|
212
|
-
onDragEnterCapture?: React.DragEventHandler<HTMLDivElement>;
|
|
213
|
-
onDragExit?: React.DragEventHandler<HTMLDivElement>;
|
|
214
|
-
onDragExitCapture?: React.DragEventHandler<HTMLDivElement>;
|
|
215
|
-
onDragLeave?: React.DragEventHandler<HTMLDivElement>;
|
|
216
|
-
onDragLeaveCapture?: React.DragEventHandler<HTMLDivElement>;
|
|
217
|
-
onDragOver?: React.DragEventHandler<HTMLDivElement>;
|
|
218
|
-
onDragOverCapture?: React.DragEventHandler<HTMLDivElement>;
|
|
219
|
-
onDragStart?: React.DragEventHandler<HTMLDivElement>;
|
|
220
|
-
onDragStartCapture?: React.DragEventHandler<HTMLDivElement>;
|
|
221
|
-
onDrop?: React.DragEventHandler<HTMLDivElement>;
|
|
222
|
-
onDropCapture?: React.DragEventHandler<HTMLDivElement>;
|
|
223
|
-
onMouseDown?: React.MouseEventHandler<HTMLDivElement>;
|
|
224
|
-
onMouseDownCapture?: React.MouseEventHandler<HTMLDivElement>;
|
|
225
|
-
onMouseEnter?: React.MouseEventHandler<HTMLDivElement>;
|
|
226
|
-
onMouseLeave?: React.MouseEventHandler<HTMLDivElement>;
|
|
227
|
-
onMouseMove?: React.MouseEventHandler<HTMLDivElement>;
|
|
228
|
-
onMouseMoveCapture?: React.MouseEventHandler<HTMLDivElement>;
|
|
229
|
-
onMouseOut?: React.MouseEventHandler<HTMLDivElement>;
|
|
230
|
-
onMouseOutCapture?: React.MouseEventHandler<HTMLDivElement>;
|
|
231
|
-
onMouseOver?: React.MouseEventHandler<HTMLDivElement>;
|
|
232
|
-
onMouseOverCapture?: React.MouseEventHandler<HTMLDivElement>;
|
|
233
|
-
onMouseUp?: React.MouseEventHandler<HTMLDivElement>;
|
|
234
|
-
onMouseUpCapture?: React.MouseEventHandler<HTMLDivElement>;
|
|
235
|
-
onSelect?: React.ReactEventHandler<HTMLDivElement>;
|
|
236
|
-
onSelectCapture?: React.ReactEventHandler<HTMLDivElement>;
|
|
237
|
-
onTouchCancel?: React.TouchEventHandler<HTMLDivElement>;
|
|
238
|
-
onTouchCancelCapture?: React.TouchEventHandler<HTMLDivElement>;
|
|
239
|
-
onTouchEnd?: React.TouchEventHandler<HTMLDivElement>;
|
|
240
|
-
onTouchEndCapture?: React.TouchEventHandler<HTMLDivElement>;
|
|
241
|
-
onTouchMove?: React.TouchEventHandler<HTMLDivElement>;
|
|
242
|
-
onTouchMoveCapture?: React.TouchEventHandler<HTMLDivElement>;
|
|
243
|
-
onTouchStart?: React.TouchEventHandler<HTMLDivElement>;
|
|
244
|
-
onTouchStartCapture?: React.TouchEventHandler<HTMLDivElement>;
|
|
245
|
-
onPointerDown?: React.PointerEventHandler<HTMLDivElement>;
|
|
246
|
-
onPointerDownCapture?: React.PointerEventHandler<HTMLDivElement>;
|
|
247
|
-
onPointerMove?: React.PointerEventHandler<HTMLDivElement>;
|
|
248
|
-
onPointerMoveCapture?: React.PointerEventHandler<HTMLDivElement>;
|
|
249
|
-
onPointerUp?: React.PointerEventHandler<HTMLDivElement>;
|
|
250
|
-
onPointerUpCapture?: React.PointerEventHandler<HTMLDivElement>;
|
|
251
|
-
onPointerCancel?: React.PointerEventHandler<HTMLDivElement>;
|
|
252
|
-
onPointerCancelCapture?: React.PointerEventHandler<HTMLDivElement>;
|
|
253
|
-
onPointerEnter?: React.PointerEventHandler<HTMLDivElement>;
|
|
254
|
-
onPointerEnterCapture?: React.PointerEventHandler<HTMLDivElement>;
|
|
255
|
-
onPointerLeave?: React.PointerEventHandler<HTMLDivElement>;
|
|
256
|
-
onPointerLeaveCapture?: React.PointerEventHandler<HTMLDivElement>;
|
|
257
|
-
onPointerOver?: React.PointerEventHandler<HTMLDivElement>;
|
|
258
|
-
onPointerOverCapture?: React.PointerEventHandler<HTMLDivElement>;
|
|
259
|
-
onPointerOut?: React.PointerEventHandler<HTMLDivElement>;
|
|
260
|
-
onPointerOutCapture?: React.PointerEventHandler<HTMLDivElement>;
|
|
261
|
-
onGotPointerCapture?: React.PointerEventHandler<HTMLDivElement>;
|
|
262
|
-
onGotPointerCaptureCapture?: React.PointerEventHandler<HTMLDivElement>;
|
|
263
|
-
onLostPointerCapture?: React.PointerEventHandler<HTMLDivElement>;
|
|
264
|
-
onLostPointerCaptureCapture?: React.PointerEventHandler<HTMLDivElement>;
|
|
265
|
-
onScroll?: React.UIEventHandler<HTMLDivElement>;
|
|
266
|
-
onScrollCapture?: React.UIEventHandler<HTMLDivElement>;
|
|
267
|
-
onWheel?: React.WheelEventHandler<HTMLDivElement>;
|
|
268
|
-
onWheelCapture?: React.WheelEventHandler<HTMLDivElement>;
|
|
269
|
-
onAnimationStart?: React.AnimationEventHandler<HTMLDivElement>;
|
|
270
|
-
onAnimationStartCapture?: React.AnimationEventHandler<HTMLDivElement>;
|
|
271
|
-
onAnimationEnd?: React.AnimationEventHandler<HTMLDivElement>;
|
|
272
|
-
onAnimationEndCapture?: React.AnimationEventHandler<HTMLDivElement>;
|
|
273
|
-
onAnimationIteration?: React.AnimationEventHandler<HTMLDivElement>;
|
|
274
|
-
onAnimationIterationCapture?: React.AnimationEventHandler<HTMLDivElement>;
|
|
275
|
-
onTransitionEnd?: React.TransitionEventHandler<HTMLDivElement>;
|
|
276
|
-
onTransitionEndCapture?: React.TransitionEventHandler<HTMLDivElement>;
|
|
277
|
-
className?: string;
|
|
278
|
-
testId?: string;
|
|
279
|
-
style?: React.CSSProperties;
|
|
21
|
+
export const Spinner: React.ForwardRefExoticComponent<Omit<Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>>, never>, keyof CommonProps | "variant" | "customSize" | "size"> & CommonProps & {
|
|
22
|
+
/**
|
|
23
|
+
* Determines the color that will be used in the `fill` property of the SVG
|
|
24
|
+
*/
|
|
280
25
|
variant?: SpinnerVariant;
|
|
26
|
+
/**
|
|
27
|
+
* Allows resizing the spinner with any N value. The final size will be NxN pixels
|
|
28
|
+
*/
|
|
281
29
|
customSize?: number;
|
|
30
|
+
/**
|
|
31
|
+
* Controls the size of the spinner. The default `medium` size is 20px wide,
|
|
32
|
+
* the `small` size is 14px wide, and the `large` size is 36px wide
|
|
33
|
+
*/
|
|
282
34
|
size?: SpinnerSize;
|
|
283
35
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
284
36
|
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";;AAAA,sBAA6B,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;AAE7D,mBAA0B,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AEkBvD,4BAAmC,WAAW,GAAG;IAC/C;;OAEG;IACH,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC;CACpB,CAAC;AAEF,2BAA2B,qBAAqB,oBAAoB,EAAE,KAAK,CAAC,CAAC;AAE7E,OAAO,MAAM
|
|
1
|
+
{"mappings":";;AAAA,sBAA6B,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;AAE7D,mBAA0B,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AEkBvD,4BAAmC,WAAW,GAAG;IAC/C;;OAEG;IACH,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC;CACpB,CAAC;AAEF,2BAA2B,qBAAqB,oBAAoB,EAAE,KAAK,CAAC,CAAC;AAE7E,OAAO,MAAM;IAjBX;;OAEG;cACO,cAAc;IACxB;;OAEG;iBACU,MAAM;IACnB;;;OAGG;WACI,WAAW;wCAkEnB,CAAC","sources":["packages/components/spinner/src/src/types.ts","packages/components/spinner/src/src/Spinner.styles.ts","packages/components/spinner/src/src/Spinner.tsx","packages/components/spinner/src/src/index.ts","packages/components/spinner/src/index.ts"],"sourcesContent":[null,null,null,null,"export { Spinner } from './Spinner';\nexport type { SpinnerProps } from './Spinner';\n"],"names":[],"version":3,"file":"types.d.ts.map"}
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/f36-spinner",
|
|
3
|
-
"version": "4.0
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"description": "Forma 36: Spinner Component",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "parcel build src/index.ts"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"@babel/runtime": "^7.6.2",
|
|
10
|
-
"@contentful/f36-core": "^4.0
|
|
10
|
+
"@contentful/f36-core": "^4.1.0",
|
|
11
11
|
"@contentful/f36-tokens": "^4.0.0",
|
|
12
12
|
"emotion": "^10.0.17"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@contentful/f36-typography": "^4.0
|
|
15
|
+
"@contentful/f36-typography": "^4.1.0"
|
|
16
16
|
},
|
|
17
17
|
"peerDependencies": {
|
|
18
18
|
"react": ">=16.8"
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"publishConfig": {
|
|
35
35
|
"access": "public"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "2ea3b5b814dbe3fb5e0b1b6adf65aff768e6855e"
|
|
38
38
|
}
|