@zendeskgarden/react-typography 8.46.0 → 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 +169 -158
- package/dist/index.esm.js +113 -102
- package/dist/typings/elements/Code.d.ts +1 -2
- package/dist/typings/elements/Ellipsis.d.ts +2 -3
- package/dist/typings/elements/LG.d.ts +2 -3
- package/dist/typings/elements/MD.d.ts +2 -3
- package/dist/typings/elements/Paragraph.d.ts +1 -2
- package/dist/typings/elements/SM.d.ts +2 -3
- package/dist/typings/elements/XL.d.ts +2 -3
- package/dist/typings/elements/XXL.d.ts +2 -3
- package/dist/typings/elements/XXXL.d.ts +2 -3
- package/dist/typings/elements/lists/OrderedList.d.ts +7 -8
- package/dist/typings/elements/lists/OrderedListItem.d.ts +2 -3
- package/dist/typings/elements/lists/UnorderedList.d.ts +5 -6
- package/dist/typings/elements/lists/UnorderedListItem.d.ts +2 -3
- package/dist/typings/elements/span/Icon.d.ts +14 -0
- package/dist/typings/elements/{Span.d.ts → span/Span.d.ts} +7 -11
- package/dist/typings/elements/span/StartIcon.d.ts +14 -0
- package/dist/typings/index.d.ts +26 -12
- package/package.json +3 -3
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, { Children, useRef, useMemo, createContext, useContext } from 'react';
|
|
8
|
+
import React, { Children, forwardRef, useRef, useMemo, createContext, useContext } from 'react';
|
|
9
9
|
import PropTypes from 'prop-types';
|
|
10
10
|
import styled, { css } from 'styled-components';
|
|
11
11
|
import { getColor, retrieveComponentStyles, DEFAULT_THEME, isRtl, getLineHeight } from '@zendeskgarden/react-theming';
|
|
@@ -70,7 +70,7 @@ function _objectWithoutProperties(source, excluded) {
|
|
|
70
70
|
var COMPONENT_ID$9 = 'typography.blockquote';
|
|
71
71
|
var StyledBlockquote = styled.blockquote.attrs({
|
|
72
72
|
'data-garden-id': COMPONENT_ID$9,
|
|
73
|
-
'data-garden-version': '8.
|
|
73
|
+
'data-garden-version': '8.48.0'
|
|
74
74
|
}).withConfig({
|
|
75
75
|
displayName: "StyledBlockquote",
|
|
76
76
|
componentId: "sc-1tt3ye0-0"
|
|
@@ -130,7 +130,7 @@ var fontStyles = function fontStyles(props) {
|
|
|
130
130
|
};
|
|
131
131
|
var StyledFont = styled.div.attrs({
|
|
132
132
|
'data-garden-id': COMPONENT_ID$8,
|
|
133
|
-
'data-garden-version': '8.
|
|
133
|
+
'data-garden-version': '8.48.0'
|
|
134
134
|
}).withConfig({
|
|
135
135
|
displayName: "StyledFont",
|
|
136
136
|
componentId: "sc-1iildbo-0"
|
|
@@ -154,7 +154,7 @@ var colorStyles$3 = function colorStyles(props) {
|
|
|
154
154
|
};
|
|
155
155
|
var StyledCode = styled(StyledFont).attrs({
|
|
156
156
|
'data-garden-id': COMPONENT_ID$7,
|
|
157
|
-
'data-garden-version': '8.
|
|
157
|
+
'data-garden-version': '8.48.0',
|
|
158
158
|
as: 'code'
|
|
159
159
|
}).withConfig({
|
|
160
160
|
displayName: "StyledCode",
|
|
@@ -181,7 +181,7 @@ var colorStyles$2 = function colorStyles(props) {
|
|
|
181
181
|
};
|
|
182
182
|
var StyledCodeBlock = styled.pre.attrs({
|
|
183
183
|
'data-garden-id': COMPONENT_ID$6,
|
|
184
|
-
'data-garden-version': '8.
|
|
184
|
+
'data-garden-version': '8.48.0'
|
|
185
185
|
}).withConfig({
|
|
186
186
|
displayName: "StyledCodeBlock",
|
|
187
187
|
componentId: "sc-5wky57-0"
|
|
@@ -199,7 +199,7 @@ StyledCodeBlock.defaultProps = {
|
|
|
199
199
|
var COMPONENT_ID$5 = 'typography.codeblock_container';
|
|
200
200
|
var StyledCodeBlockContainer = styled.div.attrs({
|
|
201
201
|
'data-garden-id': COMPONENT_ID$5,
|
|
202
|
-
'data-garden-version': '8.
|
|
202
|
+
'data-garden-version': '8.48.0'
|
|
203
203
|
}).withConfig({
|
|
204
204
|
displayName: "StyledCodeBlockContainer",
|
|
205
205
|
componentId: "sc-14zgbfw-0"
|
|
@@ -254,7 +254,7 @@ var lineNumberStyles = function lineNumberStyles(props) {
|
|
|
254
254
|
};
|
|
255
255
|
var StyledCodeBlockLine = styled(StyledFont).attrs({
|
|
256
256
|
'data-garden-id': COMPONENT_ID$4,
|
|
257
|
-
'data-garden-version': '8.
|
|
257
|
+
'data-garden-version': '8.48.0',
|
|
258
258
|
as: 'code',
|
|
259
259
|
isMonospace: true
|
|
260
260
|
}).withConfig({
|
|
@@ -300,7 +300,7 @@ var colorStyles = function colorStyles(props) {
|
|
|
300
300
|
};
|
|
301
301
|
var StyledCodeBlockToken = styled.span.attrs({
|
|
302
302
|
'data-garden-id': COMPONENT_ID$3,
|
|
303
|
-
'data-garden-version': '8.
|
|
303
|
+
'data-garden-version': '8.48.0'
|
|
304
304
|
}).withConfig({
|
|
305
305
|
displayName: "StyledCodeBlockToken",
|
|
306
306
|
componentId: "sc-1hkshdq-0"
|
|
@@ -318,7 +318,7 @@ StyledCodeBlockToken.defaultProps = {
|
|
|
318
318
|
var COMPONENT_ID$2 = 'typography.ellipsis';
|
|
319
319
|
var StyledEllipsis = styled.div.attrs({
|
|
320
320
|
'data-garden-id': COMPONENT_ID$2,
|
|
321
|
-
'data-garden-version': '8.
|
|
321
|
+
'data-garden-version': '8.48.0'
|
|
322
322
|
}).withConfig({
|
|
323
323
|
displayName: "StyledEllipsis",
|
|
324
324
|
componentId: "sc-1u4uqmy-0"
|
|
@@ -345,7 +345,7 @@ var StyledIcon = styled(function (_ref) {
|
|
|
345
345
|
return React.cloneElement(Children.only(children), props);
|
|
346
346
|
}).attrs({
|
|
347
347
|
'data-garden-id': COMPONENT_ID$1,
|
|
348
|
-
'data-garden-version': '8.
|
|
348
|
+
'data-garden-version': '8.48.0'
|
|
349
349
|
}).withConfig({
|
|
350
350
|
displayName: "StyledIcon",
|
|
351
351
|
componentId: "sc-10rfb5b-0"
|
|
@@ -365,7 +365,7 @@ var listStyles = function listStyles(props) {
|
|
|
365
365
|
var ORDERED_ID$1 = 'typography.ordered_list';
|
|
366
366
|
var StyledOrderedList = styled.ol.attrs({
|
|
367
367
|
'data-garden-id': ORDERED_ID$1,
|
|
368
|
-
'data-garden-version': '8.
|
|
368
|
+
'data-garden-version': '8.48.0'
|
|
369
369
|
}).withConfig({
|
|
370
370
|
displayName: "StyledList__StyledOrderedList",
|
|
371
371
|
componentId: "sc-jdbsfi-0"
|
|
@@ -380,7 +380,7 @@ StyledOrderedList.defaultProps = {
|
|
|
380
380
|
var UNORDERED_ID$1 = 'typography.unordered_list';
|
|
381
381
|
var StyledUnorderedList = styled.ul.attrs({
|
|
382
382
|
'data-garden-id': UNORDERED_ID$1,
|
|
383
|
-
'data-garden-version': '8.
|
|
383
|
+
'data-garden-version': '8.48.0'
|
|
384
384
|
}).withConfig({
|
|
385
385
|
displayName: "StyledList__StyledUnorderedList",
|
|
386
386
|
componentId: "sc-jdbsfi-1"
|
|
@@ -404,7 +404,7 @@ var listItemStyles = function listItemStyles(props) {
|
|
|
404
404
|
var ORDERED_ID = 'typography.ordered_list_item';
|
|
405
405
|
var StyledOrderedListItem = styled(StyledFont).attrs({
|
|
406
406
|
'data-garden-id': ORDERED_ID,
|
|
407
|
-
'data-garden-version': '8.
|
|
407
|
+
'data-garden-version': '8.48.0',
|
|
408
408
|
as: 'li'
|
|
409
409
|
}).withConfig({
|
|
410
410
|
displayName: "StyledListItem__StyledOrderedListItem",
|
|
@@ -429,7 +429,7 @@ StyledOrderedListItem.defaultProps = {
|
|
|
429
429
|
var UNORDERED_ID = 'typography.unordered_list_item';
|
|
430
430
|
var StyledUnorderedListItem = styled(StyledFont).attrs({
|
|
431
431
|
'data-garden-id': UNORDERED_ID,
|
|
432
|
-
'data-garden-version': '8.
|
|
432
|
+
'data-garden-version': '8.48.0',
|
|
433
433
|
as: 'li'
|
|
434
434
|
}).withConfig({
|
|
435
435
|
displayName: "StyledListItem__StyledUnorderedListItem",
|
|
@@ -447,7 +447,7 @@ StyledUnorderedListItem.defaultProps = {
|
|
|
447
447
|
var COMPONENT_ID = 'typography.paragraph';
|
|
448
448
|
var StyledParagraph = styled.p.attrs({
|
|
449
449
|
'data-garden-id': COMPONENT_ID,
|
|
450
|
-
'data-garden-version': '8.
|
|
450
|
+
'data-garden-version': '8.48.0'
|
|
451
451
|
}).withConfig({
|
|
452
452
|
displayName: "StyledParagraph",
|
|
453
453
|
componentId: "sc-zkuftz-0"
|
|
@@ -464,7 +464,7 @@ StyledParagraph.defaultProps = {
|
|
|
464
464
|
};
|
|
465
465
|
|
|
466
466
|
var _excluded$d = ["tag"];
|
|
467
|
-
var SM =
|
|
467
|
+
var SM = forwardRef(function (_ref, ref) {
|
|
468
468
|
var tag = _ref.tag,
|
|
469
469
|
other = _objectWithoutProperties(_ref, _excluded$d);
|
|
470
470
|
return React.createElement(StyledFont, _extends({
|
|
@@ -484,7 +484,7 @@ SM.defaultProps = {
|
|
|
484
484
|
};
|
|
485
485
|
|
|
486
486
|
var _excluded$c = ["tag"];
|
|
487
|
-
var MD =
|
|
487
|
+
var MD = forwardRef(function (_ref, ref) {
|
|
488
488
|
var tag = _ref.tag,
|
|
489
489
|
other = _objectWithoutProperties(_ref, _excluded$c);
|
|
490
490
|
return React.createElement(StyledFont, _extends({
|
|
@@ -504,7 +504,7 @@ MD.defaultProps = {
|
|
|
504
504
|
};
|
|
505
505
|
|
|
506
506
|
var _excluded$b = ["tag"];
|
|
507
|
-
var LG =
|
|
507
|
+
var LG = forwardRef(function (_ref, ref) {
|
|
508
508
|
var tag = _ref.tag,
|
|
509
509
|
other = _objectWithoutProperties(_ref, _excluded$b);
|
|
510
510
|
return React.createElement(StyledFont, _extends({
|
|
@@ -524,7 +524,7 @@ LG.defaultProps = {
|
|
|
524
524
|
};
|
|
525
525
|
|
|
526
526
|
var _excluded$a = ["tag"];
|
|
527
|
-
var XL =
|
|
527
|
+
var XL = forwardRef(function (_ref, ref) {
|
|
528
528
|
var tag = _ref.tag,
|
|
529
529
|
other = _objectWithoutProperties(_ref, _excluded$a);
|
|
530
530
|
return React.createElement(StyledFont, _extends({
|
|
@@ -543,7 +543,7 @@ XL.defaultProps = {
|
|
|
543
543
|
};
|
|
544
544
|
|
|
545
545
|
var _excluded$9 = ["tag"];
|
|
546
|
-
var XXL =
|
|
546
|
+
var XXL = forwardRef(function (_ref, ref) {
|
|
547
547
|
var tag = _ref.tag,
|
|
548
548
|
other = _objectWithoutProperties(_ref, _excluded$9);
|
|
549
549
|
return React.createElement(StyledFont, _extends({
|
|
@@ -562,7 +562,7 @@ XXL.defaultProps = {
|
|
|
562
562
|
};
|
|
563
563
|
|
|
564
564
|
var _excluded$8 = ["tag"];
|
|
565
|
-
var XXXL =
|
|
565
|
+
var XXXL = forwardRef(function (_ref, ref) {
|
|
566
566
|
var tag = _ref.tag,
|
|
567
567
|
other = _objectWithoutProperties(_ref, _excluded$8);
|
|
568
568
|
return React.createElement(StyledFont, _extends({
|
|
@@ -580,60 +580,60 @@ XXXL.defaultProps = {
|
|
|
580
580
|
tag: 'div'
|
|
581
581
|
};
|
|
582
582
|
|
|
583
|
-
var _excluded$7 = ["size"
|
|
584
|
-
var
|
|
583
|
+
var _excluded$7 = ["size"];
|
|
584
|
+
var Blockquote = React.forwardRef(function (_ref, ref) {
|
|
585
585
|
var size = _ref.size,
|
|
586
|
-
hue = _ref.hue,
|
|
587
586
|
other = _objectWithoutProperties(_ref, _excluded$7);
|
|
588
587
|
var _size;
|
|
589
588
|
if (size === 'small') {
|
|
590
589
|
_size = 'sm';
|
|
591
590
|
} else if (size === 'medium') {
|
|
592
591
|
_size = 'md';
|
|
593
|
-
} else if (size === 'large') {
|
|
594
|
-
_size = 'lg';
|
|
595
592
|
} else {
|
|
596
|
-
_size = '
|
|
593
|
+
_size = 'lg';
|
|
597
594
|
}
|
|
598
|
-
return React.createElement(
|
|
595
|
+
return React.createElement(StyledBlockquote, _extends({
|
|
599
596
|
ref: ref,
|
|
600
|
-
size: _size
|
|
601
|
-
hue: hue
|
|
597
|
+
size: _size
|
|
602
598
|
}, other));
|
|
603
599
|
});
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
size: PropTypes.oneOf(['small', 'medium', 'large', 'inherit'])
|
|
600
|
+
Blockquote.displayName = 'Blockquote';
|
|
601
|
+
Blockquote.propTypes = {
|
|
602
|
+
size: PropTypes.oneOf(['small', 'medium', 'large'])
|
|
608
603
|
};
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
size: 'inherit'
|
|
604
|
+
Blockquote.defaultProps = {
|
|
605
|
+
size: 'medium'
|
|
612
606
|
};
|
|
613
607
|
|
|
614
|
-
var _excluded$6 = ["size"];
|
|
615
|
-
var
|
|
608
|
+
var _excluded$6 = ["size", "hue"];
|
|
609
|
+
var Code = forwardRef(function (_ref, ref) {
|
|
616
610
|
var size = _ref.size,
|
|
611
|
+
hue = _ref.hue,
|
|
617
612
|
other = _objectWithoutProperties(_ref, _excluded$6);
|
|
618
613
|
var _size;
|
|
619
614
|
if (size === 'small') {
|
|
620
615
|
_size = 'sm';
|
|
621
616
|
} else if (size === 'medium') {
|
|
622
617
|
_size = 'md';
|
|
623
|
-
} else {
|
|
618
|
+
} else if (size === 'large') {
|
|
624
619
|
_size = 'lg';
|
|
620
|
+
} else {
|
|
621
|
+
_size = 'inherit';
|
|
625
622
|
}
|
|
626
|
-
return React.createElement(
|
|
623
|
+
return React.createElement(StyledCode, _extends({
|
|
627
624
|
ref: ref,
|
|
628
|
-
size: _size
|
|
625
|
+
size: _size,
|
|
626
|
+
hue: hue
|
|
629
627
|
}, other));
|
|
630
628
|
});
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
629
|
+
Code.displayName = 'Code';
|
|
630
|
+
Code.propTypes = {
|
|
631
|
+
hue: PropTypes.oneOf(['grey', 'red', 'green', 'yellow']),
|
|
632
|
+
size: PropTypes.oneOf(['small', 'medium', 'large', 'inherit'])
|
|
634
633
|
};
|
|
635
|
-
|
|
636
|
-
|
|
634
|
+
Code.defaultProps = {
|
|
635
|
+
hue: 'grey',
|
|
636
|
+
size: 'inherit'
|
|
637
637
|
};
|
|
638
638
|
|
|
639
639
|
var _excluded$5 = ["children", "containerProps", "highlightLines", "isLight", "isNumbered", "language", "size"];
|
|
@@ -725,43 +725,12 @@ CodeBlock.defaultProps = {
|
|
|
725
725
|
size: 'medium'
|
|
726
726
|
};
|
|
727
727
|
|
|
728
|
-
var _excluded$4 = ["tag"];
|
|
729
|
-
var
|
|
730
|
-
var tag = _ref.tag,
|
|
731
|
-
other = _objectWithoutProperties(_ref, _excluded$4);
|
|
732
|
-
return React.createElement(StyledFont, _extends({
|
|
733
|
-
as: tag,
|
|
734
|
-
ref: ref,
|
|
735
|
-
size: "inherit"
|
|
736
|
-
}, other));
|
|
737
|
-
});
|
|
738
|
-
Span.displayName = 'Span';
|
|
739
|
-
Span.propTypes = {
|
|
740
|
-
tag: PropTypes.any,
|
|
741
|
-
isBold: PropTypes.bool,
|
|
742
|
-
isMonospace: PropTypes.bool,
|
|
743
|
-
hue: PropTypes.string
|
|
744
|
-
};
|
|
745
|
-
Span.defaultProps = {
|
|
746
|
-
tag: 'span'
|
|
747
|
-
};
|
|
748
|
-
var StartIcon = function StartIcon(props) {
|
|
749
|
-
return React.createElement(StyledIcon, _extends({
|
|
750
|
-
isStart: true
|
|
751
|
-
}, props));
|
|
752
|
-
};
|
|
753
|
-
var Icon = function Icon(props) {
|
|
754
|
-
return React.createElement(StyledIcon, props);
|
|
755
|
-
};
|
|
756
|
-
Span.StartIcon = StartIcon;
|
|
757
|
-
Span.Icon = Icon;
|
|
758
|
-
|
|
759
|
-
var _excluded$3 = ["children", "title", "tag"];
|
|
760
|
-
var Ellipsis = React.forwardRef(function (_ref, ref) {
|
|
728
|
+
var _excluded$4 = ["children", "title", "tag"];
|
|
729
|
+
var Ellipsis = forwardRef(function (_ref, ref) {
|
|
761
730
|
var children = _ref.children,
|
|
762
731
|
title = _ref.title,
|
|
763
732
|
tag = _ref.tag,
|
|
764
|
-
other = _objectWithoutProperties(_ref, _excluded$
|
|
733
|
+
other = _objectWithoutProperties(_ref, _excluded$4);
|
|
765
734
|
var textContent = undefined;
|
|
766
735
|
if (title !== undefined) {
|
|
767
736
|
textContent = title;
|
|
@@ -783,10 +752,10 @@ Ellipsis.defaultProps = {
|
|
|
783
752
|
tag: 'div'
|
|
784
753
|
};
|
|
785
754
|
|
|
786
|
-
var _excluded$
|
|
787
|
-
var Paragraph =
|
|
755
|
+
var _excluded$3 = ["size"];
|
|
756
|
+
var Paragraph = forwardRef(function (_ref, ref) {
|
|
788
757
|
var size = _ref.size,
|
|
789
|
-
other = _objectWithoutProperties(_ref, _excluded$
|
|
758
|
+
other = _objectWithoutProperties(_ref, _excluded$3);
|
|
790
759
|
var _size;
|
|
791
760
|
if (size === 'small') {
|
|
792
761
|
_size = 'sm';
|
|
@@ -817,7 +786,7 @@ var useOrderedListContext = function useOrderedListContext() {
|
|
|
817
786
|
return listContext;
|
|
818
787
|
};
|
|
819
788
|
|
|
820
|
-
var OrderedListItem =
|
|
789
|
+
var OrderedListItem = forwardRef(function (props, ref) {
|
|
821
790
|
var _useOrderedListContex = useOrderedListContext(),
|
|
822
791
|
size = _useOrderedListContex.size;
|
|
823
792
|
return React.createElement(StyledOrderedListItem, _extends({
|
|
@@ -825,13 +794,14 @@ var OrderedListItem = React.forwardRef(function (props, ref) {
|
|
|
825
794
|
space: size
|
|
826
795
|
}, props));
|
|
827
796
|
});
|
|
828
|
-
OrderedListItem.displayName = '
|
|
797
|
+
OrderedListItem.displayName = 'OrderedList.Item';
|
|
798
|
+
var Item$1 = OrderedListItem;
|
|
829
799
|
|
|
830
|
-
var _excluded$
|
|
831
|
-
var
|
|
800
|
+
var _excluded$2 = ["size", "type"];
|
|
801
|
+
var OrderedListComponent = React.forwardRef(function (_ref, ref) {
|
|
832
802
|
var size = _ref.size,
|
|
833
803
|
type = _ref.type,
|
|
834
|
-
other = _objectWithoutProperties(_ref, _excluded$
|
|
804
|
+
other = _objectWithoutProperties(_ref, _excluded$2);
|
|
835
805
|
var value = useMemo(function () {
|
|
836
806
|
return {
|
|
837
807
|
size: size
|
|
@@ -844,16 +814,17 @@ var OrderedList = React.forwardRef(function (_ref, ref) {
|
|
|
844
814
|
listType: type
|
|
845
815
|
}, other)));
|
|
846
816
|
});
|
|
847
|
-
|
|
848
|
-
|
|
817
|
+
OrderedListComponent.displayName = 'OrderedList';
|
|
818
|
+
OrderedListComponent.propTypes = {
|
|
849
819
|
size: PropTypes.oneOf(['small', 'medium', 'large']),
|
|
850
820
|
type: PropTypes.oneOf(['decimal', 'decimal-leading-zero', 'lower-alpha', 'lower-roman', 'upper-alpha', 'upper-roman'])
|
|
851
821
|
};
|
|
852
|
-
|
|
822
|
+
OrderedListComponent.defaultProps = {
|
|
853
823
|
size: 'medium',
|
|
854
824
|
type: 'decimal'
|
|
855
825
|
};
|
|
856
|
-
OrderedList
|
|
826
|
+
var OrderedList = OrderedListComponent;
|
|
827
|
+
OrderedList.Item = Item$1;
|
|
857
828
|
|
|
858
829
|
var UnorderedListContext = createContext(undefined);
|
|
859
830
|
var useUnorderedListContext = function useUnorderedListContext() {
|
|
@@ -864,7 +835,7 @@ var useUnorderedListContext = function useUnorderedListContext() {
|
|
|
864
835
|
return listContext;
|
|
865
836
|
};
|
|
866
837
|
|
|
867
|
-
var UnorderedListItem =
|
|
838
|
+
var UnorderedListItem = forwardRef(function (props, ref) {
|
|
868
839
|
var _useUnorderedListCont = useUnorderedListContext(),
|
|
869
840
|
size = _useUnorderedListCont.size;
|
|
870
841
|
return React.createElement(StyledUnorderedListItem, _extends({
|
|
@@ -872,13 +843,14 @@ var UnorderedListItem = React.forwardRef(function (props, ref) {
|
|
|
872
843
|
space: size
|
|
873
844
|
}, props));
|
|
874
845
|
});
|
|
875
|
-
UnorderedListItem.displayName = '
|
|
846
|
+
UnorderedListItem.displayName = 'UnorderedList.Item';
|
|
847
|
+
var Item = UnorderedListItem;
|
|
876
848
|
|
|
877
|
-
var _excluded = ["size", "type"];
|
|
878
|
-
var
|
|
849
|
+
var _excluded$1 = ["size", "type"];
|
|
850
|
+
var UnorderedListComponent = forwardRef(function (_ref, ref) {
|
|
879
851
|
var size = _ref.size,
|
|
880
852
|
type = _ref.type,
|
|
881
|
-
other = _objectWithoutProperties(_ref, _excluded);
|
|
853
|
+
other = _objectWithoutProperties(_ref, _excluded$1);
|
|
882
854
|
var value = useMemo(function () {
|
|
883
855
|
return {
|
|
884
856
|
size: size
|
|
@@ -891,15 +863,54 @@ var UnorderedList = React.forwardRef(function (_ref, ref) {
|
|
|
891
863
|
listType: type
|
|
892
864
|
}, other)));
|
|
893
865
|
});
|
|
894
|
-
|
|
895
|
-
|
|
866
|
+
UnorderedListComponent.displayName = 'UnorderedList';
|
|
867
|
+
UnorderedListComponent.propTypes = {
|
|
896
868
|
size: PropTypes.oneOf(['small', 'medium', 'large']),
|
|
897
869
|
type: PropTypes.oneOf(['circle', 'disc', 'square'])
|
|
898
870
|
};
|
|
899
|
-
|
|
871
|
+
UnorderedListComponent.defaultProps = {
|
|
900
872
|
size: 'medium',
|
|
901
873
|
type: 'disc'
|
|
902
874
|
};
|
|
903
|
-
UnorderedList
|
|
875
|
+
var UnorderedList = UnorderedListComponent;
|
|
876
|
+
UnorderedList.Item = Item;
|
|
877
|
+
|
|
878
|
+
var StartIconComponent = function StartIconComponent(props) {
|
|
879
|
+
return React.createElement(StyledIcon, _extends({
|
|
880
|
+
isStart: true
|
|
881
|
+
}, props));
|
|
882
|
+
};
|
|
883
|
+
StartIconComponent.displayName = 'Span.StartIcon';
|
|
884
|
+
var StartIcon = StartIconComponent;
|
|
885
|
+
|
|
886
|
+
var IconComponent = function IconComponent(props) {
|
|
887
|
+
return React.createElement(StyledIcon, props);
|
|
888
|
+
};
|
|
889
|
+
IconComponent.displayName = 'Span.Icon';
|
|
890
|
+
var Icon = IconComponent;
|
|
891
|
+
|
|
892
|
+
var _excluded = ["tag"];
|
|
893
|
+
var SpanComponent = forwardRef(function (_ref, ref) {
|
|
894
|
+
var tag = _ref.tag,
|
|
895
|
+
other = _objectWithoutProperties(_ref, _excluded);
|
|
896
|
+
return React.createElement(StyledFont, _extends({
|
|
897
|
+
as: tag,
|
|
898
|
+
ref: ref,
|
|
899
|
+
size: "inherit"
|
|
900
|
+
}, other));
|
|
901
|
+
});
|
|
902
|
+
SpanComponent.displayName = 'Span';
|
|
903
|
+
SpanComponent.propTypes = {
|
|
904
|
+
tag: PropTypes.any,
|
|
905
|
+
isBold: PropTypes.bool,
|
|
906
|
+
isMonospace: PropTypes.bool,
|
|
907
|
+
hue: PropTypes.string
|
|
908
|
+
};
|
|
909
|
+
SpanComponent.defaultProps = {
|
|
910
|
+
tag: 'span'
|
|
911
|
+
};
|
|
912
|
+
var Span = SpanComponent;
|
|
913
|
+
Span.Icon = Icon;
|
|
914
|
+
Span.StartIcon = StartIcon;
|
|
904
915
|
|
|
905
916
|
export { Blockquote, Code, CodeBlock, Ellipsis, LG, MD, OrderedList, Paragraph, SM, Span, UnorderedList, XL, XXL, XXXL };
|
|
@@ -14,5 +14,4 @@ export interface ICodeProps extends HTMLAttributes<HTMLElement> {
|
|
|
14
14
|
/**
|
|
15
15
|
* @extends HTMLAttributes<HTMLElement>
|
|
16
16
|
*/
|
|
17
|
-
declare const Code: React.
|
|
18
|
-
export default Code;
|
|
17
|
+
export declare const Code: React.ForwardRefExoticComponent<ICodeProps & React.RefAttributes<HTMLElement>>;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
import React, { HTMLAttributes } from 'react';
|
|
8
|
-
interface IEllipsisProps extends HTMLAttributes<HTMLDivElement> {
|
|
8
|
+
export interface IEllipsisProps extends HTMLAttributes<HTMLDivElement> {
|
|
9
9
|
/** Overrides the auto-generated `title` attribute */
|
|
10
10
|
title?: string;
|
|
11
11
|
/** Updates the element's HTML tag */
|
|
@@ -14,5 +14,4 @@ interface IEllipsisProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
14
14
|
/**
|
|
15
15
|
* @extends HTMLAttributes<HTMLDivElement>
|
|
16
16
|
*/
|
|
17
|
-
declare const Ellipsis: React.
|
|
18
|
-
export default Ellipsis;
|
|
17
|
+
export declare const Ellipsis: React.ForwardRefExoticComponent<IEllipsisProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
import React, { HTMLAttributes } from 'react';
|
|
8
|
-
interface ILGProps extends HTMLAttributes<HTMLDivElement> {
|
|
8
|
+
export interface ILGProps extends HTMLAttributes<HTMLDivElement> {
|
|
9
9
|
/** Updates the element's HTML tag */
|
|
10
10
|
tag?: any;
|
|
11
11
|
/** Applies bold font style */
|
|
@@ -16,5 +16,4 @@ interface ILGProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
16
16
|
/**
|
|
17
17
|
* @extends HTMLAttributes<HTMLDivElement>
|
|
18
18
|
*/
|
|
19
|
-
declare const LG: React.
|
|
20
|
-
export default LG;
|
|
19
|
+
export declare const LG: React.ForwardRefExoticComponent<ILGProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
import React, { HTMLAttributes } from 'react';
|
|
8
|
-
interface IMDProps extends HTMLAttributes<HTMLDivElement> {
|
|
8
|
+
export interface IMDProps extends HTMLAttributes<HTMLDivElement> {
|
|
9
9
|
/** Updates the element's HTML tag */
|
|
10
10
|
tag?: any;
|
|
11
11
|
/** Applies bold font style */
|
|
@@ -16,5 +16,4 @@ interface IMDProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
16
16
|
/**
|
|
17
17
|
* @extends HTMLAttributes<HTMLDivElement>
|
|
18
18
|
*/
|
|
19
|
-
declare const MD: React.
|
|
20
|
-
export default MD;
|
|
19
|
+
export declare const MD: React.ForwardRefExoticComponent<IMDProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -12,5 +12,4 @@ export interface IParagraphProps extends HTMLAttributes<HTMLParagraphElement> {
|
|
|
12
12
|
/**
|
|
13
13
|
* @extends HTMLAttributes<HTMLParagraphElement>
|
|
14
14
|
*/
|
|
15
|
-
declare const Paragraph: React.
|
|
16
|
-
export default Paragraph;
|
|
15
|
+
export declare const Paragraph: React.ForwardRefExoticComponent<IParagraphProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
import React, { HTMLAttributes } from 'react';
|
|
8
|
-
interface ISMProps extends HTMLAttributes<HTMLDivElement> {
|
|
8
|
+
export interface ISMProps extends HTMLAttributes<HTMLDivElement> {
|
|
9
9
|
/** Updates the element's HTML tag */
|
|
10
10
|
tag?: any;
|
|
11
11
|
/** Applies bold font style */
|
|
@@ -16,5 +16,4 @@ interface ISMProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
16
16
|
/**
|
|
17
17
|
* @extends HTMLAttributes<HTMLDivElement>
|
|
18
18
|
*/
|
|
19
|
-
declare const SM: React.
|
|
20
|
-
export default SM;
|
|
19
|
+
export declare const SM: React.ForwardRefExoticComponent<ISMProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
import React, { HTMLAttributes } from 'react';
|
|
8
|
-
interface IXLProps extends HTMLAttributes<HTMLDivElement> {
|
|
8
|
+
export interface IXLProps extends HTMLAttributes<HTMLDivElement> {
|
|
9
9
|
/** Updates the element's HTML tag */
|
|
10
10
|
tag?: any;
|
|
11
11
|
/** Applies bold font style */
|
|
@@ -14,5 +14,4 @@ interface IXLProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
14
14
|
/**
|
|
15
15
|
* @extends HTMLAttributes<HTMLDivElement>
|
|
16
16
|
*/
|
|
17
|
-
declare const XL: React.
|
|
18
|
-
export default XL;
|
|
17
|
+
export declare const XL: React.ForwardRefExoticComponent<IXLProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
import React, { HTMLAttributes } from 'react';
|
|
8
|
-
interface IXXLProps extends HTMLAttributes<HTMLDivElement> {
|
|
8
|
+
export interface IXXLProps extends HTMLAttributes<HTMLDivElement> {
|
|
9
9
|
/** Updates the element's HTML tag */
|
|
10
10
|
tag?: any;
|
|
11
11
|
/** Applies bold font style */
|
|
@@ -14,5 +14,4 @@ interface IXXLProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
14
14
|
/**
|
|
15
15
|
* @extends HTMLAttributes<HTMLDivElement>
|
|
16
16
|
*/
|
|
17
|
-
declare const XXL: React.
|
|
18
|
-
export default XXL;
|
|
17
|
+
export declare const XXL: React.ForwardRefExoticComponent<IXXLProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
import React, { HTMLAttributes } from 'react';
|
|
8
|
-
interface IXXXLProps extends HTMLAttributes<HTMLDivElement> {
|
|
8
|
+
export interface IXXXLProps extends HTMLAttributes<HTMLDivElement> {
|
|
9
9
|
/** Updates the element's HTML tag */
|
|
10
10
|
tag?: any;
|
|
11
11
|
/** Applies bold font style */
|
|
@@ -14,5 +14,4 @@ interface IXXXLProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
14
14
|
/**
|
|
15
15
|
* @extends HTMLAttributes<HTMLDivElement>
|
|
16
16
|
*/
|
|
17
|
-
declare const XXXL: React.
|
|
18
|
-
export default XXXL;
|
|
17
|
+
export declare const XXXL: React.ForwardRefExoticComponent<IXXXLProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -4,18 +4,17 @@
|
|
|
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, {
|
|
8
|
-
import
|
|
9
|
-
interface IOrderedListProps extends
|
|
7
|
+
import React, { OlHTMLAttributes } from 'react';
|
|
8
|
+
import { Item } from './OrderedListItem';
|
|
9
|
+
export interface IOrderedListProps extends Omit<OlHTMLAttributes<HTMLOListElement>, 'type'> {
|
|
10
10
|
/** Adjusts the vertical spacing between list items */
|
|
11
11
|
size?: 'small' | 'medium' | 'large';
|
|
12
12
|
/** Sets the marker style */
|
|
13
13
|
type?: 'decimal' | 'decimal-leading-zero' | 'lower-alpha' | 'lower-roman' | 'upper-alpha' | 'upper-roman';
|
|
14
14
|
}
|
|
15
|
-
declare const _default: React.FunctionComponent<IOrderedListProps & React.RefAttributes<HTMLOListElement>> & {
|
|
16
|
-
Item: typeof OrderedListItem;
|
|
17
|
-
};
|
|
18
15
|
/**
|
|
19
|
-
* @extends
|
|
16
|
+
* @extends OlHTMLAttributes<HTMLOListElement>
|
|
20
17
|
*/
|
|
21
|
-
export
|
|
18
|
+
export declare const OrderedList: React.ForwardRefExoticComponent<IOrderedListProps & React.RefAttributes<HTMLOListElement>> & {
|
|
19
|
+
Item: typeof Item;
|
|
20
|
+
};
|
|
@@ -4,9 +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
|
|
8
|
-
declare const OrderedListItem: React.FunctionComponent<LiHTMLAttributes<HTMLLIElement> & React.RefAttributes<HTMLLIElement>>;
|
|
7
|
+
import React from 'react';
|
|
9
8
|
/**
|
|
10
9
|
* @extends LiHTMLAttributes<HTMLLIElement>
|
|
11
10
|
*/
|
|
12
|
-
export
|
|
11
|
+
export declare const Item: React.ForwardRefExoticComponent<React.LiHTMLAttributes<HTMLLIElement> & React.RefAttributes<HTMLLIElement>>;
|
|
@@ -5,17 +5,16 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
import React, { HTMLAttributes } from 'react';
|
|
8
|
-
import
|
|
9
|
-
interface IUnorderedListProps extends HTMLAttributes<HTMLUListElement> {
|
|
8
|
+
import { Item } from './UnorderedListItem';
|
|
9
|
+
export interface IUnorderedListProps extends HTMLAttributes<HTMLUListElement> {
|
|
10
10
|
/** Adjusts the vertical spacing between list items */
|
|
11
11
|
size?: 'small' | 'medium' | 'large';
|
|
12
12
|
/** Sets the marker style */
|
|
13
13
|
type?: 'circle' | 'disc' | 'square';
|
|
14
14
|
}
|
|
15
|
-
declare const _default: React.FunctionComponent<IUnorderedListProps & React.RefAttributes<HTMLUListElement>> & {
|
|
16
|
-
Item: typeof UnorderedListItem;
|
|
17
|
-
};
|
|
18
15
|
/**
|
|
19
16
|
* @extends HTMLAttributes<HTMLUListElement>
|
|
20
17
|
*/
|
|
21
|
-
export
|
|
18
|
+
export declare const UnorderedList: React.ForwardRefExoticComponent<IUnorderedListProps & React.RefAttributes<HTMLUListElement>> & {
|
|
19
|
+
Item: typeof Item;
|
|
20
|
+
};
|