@zendeskgarden/react-loaders 8.47.2 → 8.48.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/dist/index.cjs.js +30 -25
- package/dist/index.esm.js +31 -26
- package/dist/typings/elements/Dots.d.ts +3 -4
- package/dist/typings/elements/Inline.d.ts +3 -4
- package/dist/typings/elements/Progress.d.ts +1 -2
- package/dist/typings/elements/Skeleton.d.ts +3 -4
- package/dist/typings/elements/Spinner.d.ts +3 -4
- package/dist/typings/index.d.ts +5 -5
- package/dist/typings/styled/StyledInlineTypingIndicator.d.ts +2 -1
- package/dist/typings/styled/index.d.ts +0 -1
- package/package.json +3 -3
package/dist/index.cjs.js
CHANGED
|
@@ -193,7 +193,7 @@ StyledDotsCircleThree.defaultProps = {
|
|
|
193
193
|
var COMPONENT_ID$5 = 'loaders.loading_placeholder';
|
|
194
194
|
var StyledLoadingPlaceholder = styled__default["default"].div.attrs({
|
|
195
195
|
'data-garden-id': COMPONENT_ID$5,
|
|
196
|
-
'data-garden-version': '8.
|
|
196
|
+
'data-garden-version': '8.48.0',
|
|
197
197
|
role: 'progressbar'
|
|
198
198
|
}).withConfig({
|
|
199
199
|
displayName: "StyledLoadingPlaceholder",
|
|
@@ -228,7 +228,7 @@ var PROGRESS_BACKGROUND_COMPONENT_ID = 'loaders.progress_background';
|
|
|
228
228
|
var StyledProgressBackground = styled__default["default"].div.attrs(function (props) {
|
|
229
229
|
return {
|
|
230
230
|
'data-garden-id': PROGRESS_BACKGROUND_COMPONENT_ID,
|
|
231
|
-
'data-garden-version': '8.
|
|
231
|
+
'data-garden-version': '8.48.0',
|
|
232
232
|
borderRadius: props.borderRadius || sizeToBorderRadius(props.size, props.theme)
|
|
233
233
|
};
|
|
234
234
|
}).withConfig({
|
|
@@ -252,7 +252,7 @@ var PROGESS_INDICATOR_COMPONENT_ID = 'loaders.progress_indicator';
|
|
|
252
252
|
var StyledProgressIndicator = styled__default["default"].div.attrs(function (props) {
|
|
253
253
|
return {
|
|
254
254
|
'data-garden-id': PROGESS_INDICATOR_COMPONENT_ID,
|
|
255
|
-
'data-garden-version': '8.
|
|
255
|
+
'data-garden-version': '8.48.0',
|
|
256
256
|
height: props.height || sizeToHeight(props.size, props.theme),
|
|
257
257
|
borderRadius: props.borderRadius || sizeToBorderRadius(props.size, props.theme)
|
|
258
258
|
};
|
|
@@ -298,7 +298,7 @@ var retrieveSkeletonGradient = function retrieveSkeletonGradient(_ref3) {
|
|
|
298
298
|
};
|
|
299
299
|
var StyledSkeleton = styled__default["default"].div.attrs({
|
|
300
300
|
'data-garden-id': COMPONENT_ID$4,
|
|
301
|
-
'data-garden-version': '8.
|
|
301
|
+
'data-garden-version': '8.48.0'
|
|
302
302
|
}).withConfig({
|
|
303
303
|
displayName: "StyledSkeleton",
|
|
304
304
|
componentId: "sc-1raozze-0"
|
|
@@ -339,7 +339,7 @@ StyledSpinnerCircle.defaultProps = {
|
|
|
339
339
|
|
|
340
340
|
var StyledSVG = styled__default["default"].svg.attrs(function (props) {
|
|
341
341
|
return {
|
|
342
|
-
'data-garden-version': '8.
|
|
342
|
+
'data-garden-version': '8.48.0',
|
|
343
343
|
xmlns: 'http://www.w3.org/2000/svg',
|
|
344
344
|
width: props.width,
|
|
345
345
|
height: props.height,
|
|
@@ -381,7 +381,7 @@ StyledCircle.defaultProps = {
|
|
|
381
381
|
var StyledInlineTypingSVG = styled__default["default"].svg.attrs(function (props) {
|
|
382
382
|
return {
|
|
383
383
|
'data-garden-id': COMPONENT_ID$3,
|
|
384
|
-
'data-garden-version': '8.
|
|
384
|
+
'data-garden-version': '8.48.0',
|
|
385
385
|
viewBox: '0 0 16 4',
|
|
386
386
|
width: props.size,
|
|
387
387
|
height: props.size * 0.25
|
|
@@ -404,7 +404,7 @@ StyledInlineTypingSVG.defaultProps = {
|
|
|
404
404
|
|
|
405
405
|
var _excluded$4 = ["size", "color", "duration", "delayMS"];
|
|
406
406
|
var COMPONENT_ID$2 = 'loaders.dots';
|
|
407
|
-
var Dots = function
|
|
407
|
+
var Dots = React.forwardRef(function (_ref, ref) {
|
|
408
408
|
var size = _ref.size,
|
|
409
409
|
color = _ref.color,
|
|
410
410
|
duration = _ref.duration,
|
|
@@ -440,6 +440,7 @@ var Dots = function Dots(_ref) {
|
|
|
440
440
|
}, "\xA0");
|
|
441
441
|
}
|
|
442
442
|
return React__default["default"].createElement(StyledSVG, _extends({
|
|
443
|
+
ref: ref,
|
|
443
444
|
fontSize: size,
|
|
444
445
|
color: color,
|
|
445
446
|
width: "80",
|
|
@@ -457,7 +458,8 @@ var Dots = function Dots(_ref) {
|
|
|
457
458
|
duration: duration,
|
|
458
459
|
ref: dotThree
|
|
459
460
|
})));
|
|
460
|
-
};
|
|
461
|
+
});
|
|
462
|
+
Dots.displayName = 'Dots';
|
|
461
463
|
Dots.propTypes = {
|
|
462
464
|
size: PropTypes__default["default"].any,
|
|
463
465
|
duration: PropTypes__default["default"].number,
|
|
@@ -480,7 +482,7 @@ var Progress = React__default["default"].forwardRef(function (_ref, ref) {
|
|
|
480
482
|
var percentage = Math.max(0, Math.min(100, value));
|
|
481
483
|
return React__default["default"].createElement(StyledProgressBackground, _extends({
|
|
482
484
|
"data-garden-id": COMPONENT_ID$1,
|
|
483
|
-
"data-garden-version": '8.
|
|
485
|
+
"data-garden-version": '8.48.0',
|
|
484
486
|
"aria-valuemax": 100,
|
|
485
487
|
"aria-valuemin": 0,
|
|
486
488
|
"aria-valuenow": percentage,
|
|
@@ -504,17 +506,19 @@ Progress.defaultProps = {
|
|
|
504
506
|
};
|
|
505
507
|
|
|
506
508
|
var _excluded$2 = ["width", "height", "isLight"];
|
|
507
|
-
var Skeleton = function
|
|
509
|
+
var Skeleton = React.forwardRef(function (_ref, ref) {
|
|
508
510
|
var width = _ref.width,
|
|
509
511
|
height = _ref.height,
|
|
510
512
|
isLight = _ref.isLight,
|
|
511
513
|
other = _objectWithoutProperties(_ref, _excluded$2);
|
|
512
514
|
return React__default["default"].createElement(StyledSkeleton, _extends({
|
|
515
|
+
ref: ref,
|
|
513
516
|
isLight: isLight,
|
|
514
517
|
customWidth: width,
|
|
515
518
|
customHeight: height
|
|
516
519
|
}, other), "\xA0");
|
|
517
|
-
};
|
|
520
|
+
});
|
|
521
|
+
Skeleton.displayName = 'Skeleton';
|
|
518
522
|
Skeleton.propTypes = {
|
|
519
523
|
width: PropTypes__default["default"].string,
|
|
520
524
|
height: PropTypes__default["default"].string,
|
|
@@ -615,7 +619,7 @@ var computeFrames = function computeFrames(frames, duration) {
|
|
|
615
619
|
return acc;
|
|
616
620
|
}, {});
|
|
617
621
|
};
|
|
618
|
-
var Spinner = function
|
|
622
|
+
var Spinner = React.forwardRef(function (_ref3, ref) {
|
|
619
623
|
var size = _ref3.size,
|
|
620
624
|
duration = _ref3.duration,
|
|
621
625
|
color = _ref3.color,
|
|
@@ -644,6 +648,7 @@ var Spinner = function Spinner(_ref3) {
|
|
|
644
648
|
}, "\xA0");
|
|
645
649
|
}
|
|
646
650
|
return React__default["default"].createElement(StyledSVG, _extends({
|
|
651
|
+
ref: ref,
|
|
647
652
|
fontSize: size,
|
|
648
653
|
color: color,
|
|
649
654
|
width: WIDTH,
|
|
@@ -656,7 +661,8 @@ var Spinner = function Spinner(_ref3) {
|
|
|
656
661
|
strokeWidthValue: strokeWidthValue,
|
|
657
662
|
transform: "rotate(".concat(rotationValue, ", ").concat(WIDTH / 2, ", ").concat(HEIGHT / 2, ")")
|
|
658
663
|
}));
|
|
659
|
-
};
|
|
664
|
+
});
|
|
665
|
+
Spinner.displayName = 'Spinner';
|
|
660
666
|
Spinner.propTypes = {
|
|
661
667
|
size: PropTypes__default["default"].any,
|
|
662
668
|
duration: PropTypes__default["default"].number,
|
|
@@ -671,24 +677,23 @@ Spinner.defaultProps = {
|
|
|
671
677
|
};
|
|
672
678
|
|
|
673
679
|
var _excluded = ["size", "color"];
|
|
674
|
-
var
|
|
675
|
-
|
|
680
|
+
var Inline = React.forwardRef(function (_ref, ref) {
|
|
681
|
+
var size = _ref.size,
|
|
682
|
+
color = _ref.color,
|
|
683
|
+
other = _objectWithoutProperties(_ref, _excluded);
|
|
684
|
+
return React__default["default"].createElement(StyledInlineTypingSVG, _extends({
|
|
685
|
+
ref: ref,
|
|
686
|
+
size: size,
|
|
687
|
+
color: color
|
|
688
|
+
}, other), React__default["default"].createElement(StyledCircle, {
|
|
676
689
|
cx: "14"
|
|
677
690
|
}), React__default["default"].createElement(StyledCircle, {
|
|
678
691
|
cx: "8"
|
|
679
692
|
}), React__default["default"].createElement(StyledCircle, {
|
|
680
693
|
cx: "2"
|
|
681
694
|
}));
|
|
682
|
-
};
|
|
683
|
-
|
|
684
|
-
var size = _ref.size,
|
|
685
|
-
color = _ref.color,
|
|
686
|
-
other = _objectWithoutProperties(_ref, _excluded);
|
|
687
|
-
return React__default["default"].createElement(InlineTypingIndicator, _extends({
|
|
688
|
-
size: size,
|
|
689
|
-
color: color
|
|
690
|
-
}, other));
|
|
691
|
-
};
|
|
695
|
+
});
|
|
696
|
+
Inline.displayName = 'Inline';
|
|
692
697
|
Inline.propTypes = {
|
|
693
698
|
size: PropTypes__default["default"].number,
|
|
694
699
|
color: PropTypes__default["default"].string
|
package/dist/index.esm.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React, { useContext, useRef, useEffect } from 'react';
|
|
8
|
+
import React, { forwardRef, useContext, useRef, useEffect } from 'react';
|
|
9
9
|
import PropTypes from 'prop-types';
|
|
10
10
|
import styled, { keyframes, css, ThemeContext } from 'styled-components';
|
|
11
11
|
import { useSchedule } from '@zendeskgarden/container-schedule';
|
|
@@ -183,7 +183,7 @@ StyledDotsCircleThree.defaultProps = {
|
|
|
183
183
|
var COMPONENT_ID$5 = 'loaders.loading_placeholder';
|
|
184
184
|
var StyledLoadingPlaceholder = styled.div.attrs({
|
|
185
185
|
'data-garden-id': COMPONENT_ID$5,
|
|
186
|
-
'data-garden-version': '8.
|
|
186
|
+
'data-garden-version': '8.48.0',
|
|
187
187
|
role: 'progressbar'
|
|
188
188
|
}).withConfig({
|
|
189
189
|
displayName: "StyledLoadingPlaceholder",
|
|
@@ -218,7 +218,7 @@ var PROGRESS_BACKGROUND_COMPONENT_ID = 'loaders.progress_background';
|
|
|
218
218
|
var StyledProgressBackground = styled.div.attrs(function (props) {
|
|
219
219
|
return {
|
|
220
220
|
'data-garden-id': PROGRESS_BACKGROUND_COMPONENT_ID,
|
|
221
|
-
'data-garden-version': '8.
|
|
221
|
+
'data-garden-version': '8.48.0',
|
|
222
222
|
borderRadius: props.borderRadius || sizeToBorderRadius(props.size, props.theme)
|
|
223
223
|
};
|
|
224
224
|
}).withConfig({
|
|
@@ -242,7 +242,7 @@ var PROGESS_INDICATOR_COMPONENT_ID = 'loaders.progress_indicator';
|
|
|
242
242
|
var StyledProgressIndicator = styled.div.attrs(function (props) {
|
|
243
243
|
return {
|
|
244
244
|
'data-garden-id': PROGESS_INDICATOR_COMPONENT_ID,
|
|
245
|
-
'data-garden-version': '8.
|
|
245
|
+
'data-garden-version': '8.48.0',
|
|
246
246
|
height: props.height || sizeToHeight(props.size, props.theme),
|
|
247
247
|
borderRadius: props.borderRadius || sizeToBorderRadius(props.size, props.theme)
|
|
248
248
|
};
|
|
@@ -288,7 +288,7 @@ var retrieveSkeletonGradient = function retrieveSkeletonGradient(_ref3) {
|
|
|
288
288
|
};
|
|
289
289
|
var StyledSkeleton = styled.div.attrs({
|
|
290
290
|
'data-garden-id': COMPONENT_ID$4,
|
|
291
|
-
'data-garden-version': '8.
|
|
291
|
+
'data-garden-version': '8.48.0'
|
|
292
292
|
}).withConfig({
|
|
293
293
|
displayName: "StyledSkeleton",
|
|
294
294
|
componentId: "sc-1raozze-0"
|
|
@@ -329,7 +329,7 @@ StyledSpinnerCircle.defaultProps = {
|
|
|
329
329
|
|
|
330
330
|
var StyledSVG = styled.svg.attrs(function (props) {
|
|
331
331
|
return {
|
|
332
|
-
'data-garden-version': '8.
|
|
332
|
+
'data-garden-version': '8.48.0',
|
|
333
333
|
xmlns: 'http://www.w3.org/2000/svg',
|
|
334
334
|
width: props.width,
|
|
335
335
|
height: props.height,
|
|
@@ -371,7 +371,7 @@ StyledCircle.defaultProps = {
|
|
|
371
371
|
var StyledInlineTypingSVG = styled.svg.attrs(function (props) {
|
|
372
372
|
return {
|
|
373
373
|
'data-garden-id': COMPONENT_ID$3,
|
|
374
|
-
'data-garden-version': '8.
|
|
374
|
+
'data-garden-version': '8.48.0',
|
|
375
375
|
viewBox: '0 0 16 4',
|
|
376
376
|
width: props.size,
|
|
377
377
|
height: props.size * 0.25
|
|
@@ -394,7 +394,7 @@ StyledInlineTypingSVG.defaultProps = {
|
|
|
394
394
|
|
|
395
395
|
var _excluded$4 = ["size", "color", "duration", "delayMS"];
|
|
396
396
|
var COMPONENT_ID$2 = 'loaders.dots';
|
|
397
|
-
var Dots = function
|
|
397
|
+
var Dots = forwardRef(function (_ref, ref) {
|
|
398
398
|
var size = _ref.size,
|
|
399
399
|
color = _ref.color,
|
|
400
400
|
duration = _ref.duration,
|
|
@@ -430,6 +430,7 @@ var Dots = function Dots(_ref) {
|
|
|
430
430
|
}, "\xA0");
|
|
431
431
|
}
|
|
432
432
|
return React.createElement(StyledSVG, _extends({
|
|
433
|
+
ref: ref,
|
|
433
434
|
fontSize: size,
|
|
434
435
|
color: color,
|
|
435
436
|
width: "80",
|
|
@@ -447,7 +448,8 @@ var Dots = function Dots(_ref) {
|
|
|
447
448
|
duration: duration,
|
|
448
449
|
ref: dotThree
|
|
449
450
|
})));
|
|
450
|
-
};
|
|
451
|
+
});
|
|
452
|
+
Dots.displayName = 'Dots';
|
|
451
453
|
Dots.propTypes = {
|
|
452
454
|
size: PropTypes.any,
|
|
453
455
|
duration: PropTypes.number,
|
|
@@ -470,7 +472,7 @@ var Progress = React.forwardRef(function (_ref, ref) {
|
|
|
470
472
|
var percentage = Math.max(0, Math.min(100, value));
|
|
471
473
|
return React.createElement(StyledProgressBackground, _extends({
|
|
472
474
|
"data-garden-id": COMPONENT_ID$1,
|
|
473
|
-
"data-garden-version": '8.
|
|
475
|
+
"data-garden-version": '8.48.0',
|
|
474
476
|
"aria-valuemax": 100,
|
|
475
477
|
"aria-valuemin": 0,
|
|
476
478
|
"aria-valuenow": percentage,
|
|
@@ -494,17 +496,19 @@ Progress.defaultProps = {
|
|
|
494
496
|
};
|
|
495
497
|
|
|
496
498
|
var _excluded$2 = ["width", "height", "isLight"];
|
|
497
|
-
var Skeleton = function
|
|
499
|
+
var Skeleton = forwardRef(function (_ref, ref) {
|
|
498
500
|
var width = _ref.width,
|
|
499
501
|
height = _ref.height,
|
|
500
502
|
isLight = _ref.isLight,
|
|
501
503
|
other = _objectWithoutProperties(_ref, _excluded$2);
|
|
502
504
|
return React.createElement(StyledSkeleton, _extends({
|
|
505
|
+
ref: ref,
|
|
503
506
|
isLight: isLight,
|
|
504
507
|
customWidth: width,
|
|
505
508
|
customHeight: height
|
|
506
509
|
}, other), "\xA0");
|
|
507
|
-
};
|
|
510
|
+
});
|
|
511
|
+
Skeleton.displayName = 'Skeleton';
|
|
508
512
|
Skeleton.propTypes = {
|
|
509
513
|
width: PropTypes.string,
|
|
510
514
|
height: PropTypes.string,
|
|
@@ -605,7 +609,7 @@ var computeFrames = function computeFrames(frames, duration) {
|
|
|
605
609
|
return acc;
|
|
606
610
|
}, {});
|
|
607
611
|
};
|
|
608
|
-
var Spinner = function
|
|
612
|
+
var Spinner = forwardRef(function (_ref3, ref) {
|
|
609
613
|
var size = _ref3.size,
|
|
610
614
|
duration = _ref3.duration,
|
|
611
615
|
color = _ref3.color,
|
|
@@ -634,6 +638,7 @@ var Spinner = function Spinner(_ref3) {
|
|
|
634
638
|
}, "\xA0");
|
|
635
639
|
}
|
|
636
640
|
return React.createElement(StyledSVG, _extends({
|
|
641
|
+
ref: ref,
|
|
637
642
|
fontSize: size,
|
|
638
643
|
color: color,
|
|
639
644
|
width: WIDTH,
|
|
@@ -646,7 +651,8 @@ var Spinner = function Spinner(_ref3) {
|
|
|
646
651
|
strokeWidthValue: strokeWidthValue,
|
|
647
652
|
transform: "rotate(".concat(rotationValue, ", ").concat(WIDTH / 2, ", ").concat(HEIGHT / 2, ")")
|
|
648
653
|
}));
|
|
649
|
-
};
|
|
654
|
+
});
|
|
655
|
+
Spinner.displayName = 'Spinner';
|
|
650
656
|
Spinner.propTypes = {
|
|
651
657
|
size: PropTypes.any,
|
|
652
658
|
duration: PropTypes.number,
|
|
@@ -661,24 +667,23 @@ Spinner.defaultProps = {
|
|
|
661
667
|
};
|
|
662
668
|
|
|
663
669
|
var _excluded = ["size", "color"];
|
|
664
|
-
var
|
|
665
|
-
|
|
670
|
+
var Inline = forwardRef(function (_ref, ref) {
|
|
671
|
+
var size = _ref.size,
|
|
672
|
+
color = _ref.color,
|
|
673
|
+
other = _objectWithoutProperties(_ref, _excluded);
|
|
674
|
+
return React.createElement(StyledInlineTypingSVG, _extends({
|
|
675
|
+
ref: ref,
|
|
676
|
+
size: size,
|
|
677
|
+
color: color
|
|
678
|
+
}, other), React.createElement(StyledCircle, {
|
|
666
679
|
cx: "14"
|
|
667
680
|
}), React.createElement(StyledCircle, {
|
|
668
681
|
cx: "8"
|
|
669
682
|
}), React.createElement(StyledCircle, {
|
|
670
683
|
cx: "2"
|
|
671
684
|
}));
|
|
672
|
-
};
|
|
673
|
-
|
|
674
|
-
var size = _ref.size,
|
|
675
|
-
color = _ref.color,
|
|
676
|
-
other = _objectWithoutProperties(_ref, _excluded);
|
|
677
|
-
return React.createElement(InlineTypingIndicator, _extends({
|
|
678
|
-
size: size,
|
|
679
|
-
color: color
|
|
680
|
-
}, other));
|
|
681
|
-
};
|
|
685
|
+
});
|
|
686
|
+
Inline.displayName = 'Inline';
|
|
682
687
|
Inline.propTypes = {
|
|
683
688
|
size: PropTypes.number,
|
|
684
689
|
color: PropTypes.string
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* Use of this source code is governed under the Apache License, Version 2.0
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
|
-
import React from 'react';
|
|
8
|
-
export interface IDotsProps extends
|
|
7
|
+
import React, { SVGAttributes } from 'react';
|
|
8
|
+
export interface IDotsProps extends SVGAttributes<SVGSVGElement> {
|
|
9
9
|
/** Sets the height and width in pixels. Inherits the parent's font size by default. */
|
|
10
10
|
size?: string | number;
|
|
11
11
|
/** Sets the fill color. Inherits the parent's `color` by default. */
|
|
@@ -18,5 +18,4 @@ export interface IDotsProps extends React.SVGAttributes<SVGSVGElement> {
|
|
|
18
18
|
/**
|
|
19
19
|
* @extends SVGAttributes<SVGSVGElement>
|
|
20
20
|
*/
|
|
21
|
-
declare const Dots: React.
|
|
22
|
-
export default Dots;
|
|
21
|
+
export declare const Dots: React.ForwardRefExoticComponent<IDotsProps & React.RefAttributes<SVGSVGElement>>;
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* Use of this source code is governed under the Apache License, Version 2.0
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
|
-
import React from 'react';
|
|
8
|
-
export interface IInlineProps extends
|
|
7
|
+
import React, { SVGAttributes } from 'react';
|
|
8
|
+
export interface IInlineProps extends SVGAttributes<SVGSVGElement> {
|
|
9
9
|
/** Sets the width in pixels and scales the loader proportionally */
|
|
10
10
|
size?: number;
|
|
11
11
|
/** Sets the fill color. Inherits the parent's `color` by default. */
|
|
@@ -14,5 +14,4 @@ export interface IInlineProps extends React.SVGAttributes<SVGSVGElement> {
|
|
|
14
14
|
/**
|
|
15
15
|
* @extends SVGAttributes<SVGSVGElement>
|
|
16
16
|
*/
|
|
17
|
-
declare const Inline: React.
|
|
18
|
-
export default Inline;
|
|
17
|
+
export declare const Inline: React.ForwardRefExoticComponent<IInlineProps & React.RefAttributes<SVGSVGElement>>;
|
|
@@ -16,8 +16,7 @@ export interface IProgressProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
16
16
|
/** Adjusts the height */
|
|
17
17
|
size?: 'small' | 'medium' | 'large';
|
|
18
18
|
}
|
|
19
|
-
declare const _default: React.FunctionComponent<IProgressProps & React.RefAttributes<HTMLDivElement>>;
|
|
20
19
|
/**
|
|
21
20
|
* @extends HTMLAttributes<HTMLDivElement>
|
|
22
21
|
*/
|
|
23
|
-
export
|
|
22
|
+
export declare const Progress: React.ForwardRefExoticComponent<IProgressProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* Use of this source code is governed under the Apache License, Version 2.0
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
|
-
import React from 'react';
|
|
8
|
-
export interface ISkeletonProps extends
|
|
7
|
+
import React, { HTMLAttributes } from 'react';
|
|
8
|
+
export interface ISkeletonProps extends HTMLAttributes<HTMLDivElement> {
|
|
9
9
|
/** Sets the width as a percentage of the the parent element's width */
|
|
10
10
|
width?: string;
|
|
11
11
|
/** Sets the height as a percentage of parent element's height if the height is not already inherited by `line-height` */
|
|
@@ -16,5 +16,4 @@ export interface ISkeletonProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
16
16
|
/**
|
|
17
17
|
* @extends HTMLAttributes<HTMLDivElement>
|
|
18
18
|
*/
|
|
19
|
-
declare const Skeleton: React.
|
|
20
|
-
export default Skeleton;
|
|
19
|
+
export declare const Skeleton: React.ForwardRefExoticComponent<ISkeletonProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* Use of this source code is governed under the Apache License, Version 2.0
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
|
-
import React from 'react';
|
|
8
|
-
export interface ISpinnerProps extends
|
|
7
|
+
import React, { SVGAttributes } from 'react';
|
|
8
|
+
export interface ISpinnerProps extends SVGAttributes<SVGSVGElement> {
|
|
9
9
|
/**
|
|
10
10
|
* Sets the height and width in pixels. Inherits the parent's font size by default.
|
|
11
11
|
**/
|
|
@@ -26,5 +26,4 @@ export interface ISpinnerProps extends React.SVGAttributes<SVGSVGElement> {
|
|
|
26
26
|
/**
|
|
27
27
|
* @extends SVGAttributes<SVGSVGElement>
|
|
28
28
|
*/
|
|
29
|
-
declare const Spinner: React.
|
|
30
|
-
export default Spinner;
|
|
29
|
+
export declare const Spinner: React.ForwardRefExoticComponent<ISpinnerProps & React.RefAttributes<SVGSVGElement>>;
|
package/dist/typings/index.d.ts
CHANGED
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
* Use of this source code is governed under the Apache License, Version 2.0
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
|
-
export {
|
|
7
|
+
export { Dots } from './elements/Dots';
|
|
8
8
|
export type { IDotsProps } from './elements/Dots';
|
|
9
|
-
export {
|
|
9
|
+
export { Progress } from './elements/Progress';
|
|
10
10
|
export type { IProgressProps } from './elements/Progress';
|
|
11
|
-
export {
|
|
11
|
+
export { Skeleton } from './elements/Skeleton';
|
|
12
12
|
export type { ISkeletonProps } from './elements/Skeleton';
|
|
13
|
-
export {
|
|
13
|
+
export { Spinner } from './elements/Spinner';
|
|
14
14
|
export type { ISpinnerProps } from './elements/Spinner';
|
|
15
|
-
export {
|
|
15
|
+
export { Inline } from './elements/Inline';
|
|
16
16
|
export type { IInlineProps } from './elements/Inline';
|
|
@@ -10,8 +10,9 @@ export declare const StyledCircle: import("styled-components").StyledComponent<"
|
|
|
10
10
|
cy: 2;
|
|
11
11
|
r: 2;
|
|
12
12
|
}, "cy" | "fill" | "r">;
|
|
13
|
-
|
|
13
|
+
interface IStyledTypingSvgProps extends React.HTMLAttributes<SVGSVGElement> {
|
|
14
14
|
size: number;
|
|
15
15
|
color: string;
|
|
16
16
|
}
|
|
17
17
|
export declare const StyledInlineTypingSVG: import("styled-components").StyledComponent<"svg", import("styled-components").DefaultTheme, IStyledTypingSvgProps, never>;
|
|
18
|
+
export {};
|
|
@@ -11,4 +11,3 @@ export { StyledSkeleton } from './StyledSkeleton';
|
|
|
11
11
|
export { StyledSpinnerCircle } from './StyledSpinnerCircle';
|
|
12
12
|
export { StyledSVG } from './StyledSVG';
|
|
13
13
|
export { StyledCircle, StyledInlineTypingSVG } from './StyledInlineTypingIndicator';
|
|
14
|
-
export type { IStyledTypingSvgProps } from './StyledInlineTypingIndicator';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zendeskgarden/react-loaders",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.48.0",
|
|
4
4
|
"description": "Components relating to loaders in the Garden Design System",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Zendesk Garden <garden@zendesk.com>",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"styled-components": "^4.2.0 || ^5.0.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@zendeskgarden/react-theming": "^8.
|
|
35
|
+
"@zendeskgarden/react-theming": "^8.48.0"
|
|
36
36
|
},
|
|
37
37
|
"keywords": [
|
|
38
38
|
"components",
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"access": "public"
|
|
45
45
|
},
|
|
46
46
|
"zendeskgarden:src": "src/index.ts",
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "75f36aee62043004650c3eb2e1583b98a87d71f8"
|
|
48
48
|
}
|