@luminati-io/uikit 3.0.8-beta.0 → 3.0.8
Sign up to get free protection for your applications and to get access to all the features.
@@ -20009,16 +20009,18 @@ var Badge = function Badge(props) {
|
|
20009
20009
|
"default": _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.gray_3,
|
20010
20010
|
negative: _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.red_3,
|
20011
20011
|
positive: _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.green_3,
|
20012
|
+
gold: _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.yellow_3,
|
20012
20013
|
blue: _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.blue_3
|
20013
|
-
}[variant];
|
20014
|
+
}[variant] || _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.gray_3;
|
20014
20015
|
}, [variant]);
|
20015
20016
|
var color = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function () {
|
20016
20017
|
return {
|
20017
20018
|
"default": 'gray_11_25',
|
20018
20019
|
negative: 'red_11',
|
20019
20020
|
positive: 'green_11',
|
20021
|
+
gold: 'yellow_11',
|
20020
20022
|
blue: 'blue_11'
|
20021
|
-
}[variant];
|
20023
|
+
}[variant] || 'gray_11_25';
|
20022
20024
|
}, [variant]);
|
20023
20025
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(BadgeWrapper, {
|
20024
20026
|
className: className,
|
@@ -20040,7 +20042,7 @@ Badge.defaultProps = {
|
|
20040
20042
|
};
|
20041
20043
|
Badge.propTypes = {
|
20042
20044
|
shape: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['rounded', 'square']),
|
20043
|
-
variant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['default', 'negative', 'positive', 'blue']),
|
20045
|
+
variant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['default', 'negative', 'positive', 'gold', 'blue']),
|
20044
20046
|
icon: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_7__.iconNames),
|
20045
20047
|
iconPlacement: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['left', 'right'])
|
20046
20048
|
};
|
@@ -22082,13 +22084,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
22082
22084
|
/* harmony import */ var prismjs_components_prism_python__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(prismjs_components_prism_python__WEBPACK_IMPORTED_MODULE_15__);
|
22083
22085
|
/* harmony import */ var prismjs_components_prism_json__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! prismjs/components/prism-json */ "./node_modules/prismjs/components/prism-json.js");
|
22084
22086
|
/* harmony import */ var prismjs_components_prism_json__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(prismjs_components_prism_json__WEBPACK_IMPORTED_MODULE_16__);
|
22085
|
-
/* harmony import */ var
|
22086
|
-
/* harmony import */ var
|
22087
|
-
/* harmony import */ var
|
22088
|
-
/* harmony import */ var
|
22089
|
-
/* harmony import */ var
|
22090
|
-
/* harmony import */ var
|
22091
|
-
/* harmony import */ var
|
22087
|
+
/* harmony import */ var prismjs_plugins_line_numbers_prism_line_numbers__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! prismjs/plugins/line-numbers/prism-line-numbers */ "./node_modules/prismjs/plugins/line-numbers/prism-line-numbers.js");
|
22088
|
+
/* harmony import */ var prismjs_plugins_line_numbers_prism_line_numbers__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(prismjs_plugins_line_numbers_prism_line_numbers__WEBPACK_IMPORTED_MODULE_17__);
|
22089
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! prop-types */ "prop-types");
|
22090
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_18__);
|
22091
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! styled-components */ "styled-components");
|
22092
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_19__);
|
22093
|
+
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../theme */ "./src/theme.js");
|
22092
22094
|
// LICENSE_CODE ZON
|
22093
22095
|
|
22094
22096
|
|
@@ -22113,6 +22115,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
22113
22115
|
|
22114
22116
|
|
22115
22117
|
|
22118
|
+
|
22119
|
+
(prismjs_components_prism_core__WEBPACK_IMPORTED_MODULE_1___default().manual) = true;
|
22120
|
+
|
22121
|
+
// import 'prismjs/plugins/line-numbers/prism-line-numbers';
|
22116
22122
|
|
22117
22123
|
var Code = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function (props, ref) {
|
22118
22124
|
var text = props.text,
|
@@ -22135,23 +22141,23 @@ Code.defaultProps = {
|
|
22135
22141
|
theme: 'white'
|
22136
22142
|
};
|
22137
22143
|
Code.propTypes = {
|
22138
|
-
text: (
|
22139
|
-
lang:
|
22140
|
-
theme:
|
22141
|
-
lineNumbers: (
|
22144
|
+
text: (prop_types__WEBPACK_IMPORTED_MODULE_18___default().string),
|
22145
|
+
lang: prop_types__WEBPACK_IMPORTED_MODULE_18___default().oneOf(['js', 'javascript', 'css', 'markup', 'shell', 'java', 'csharp', 'vbnet', 'php', 'ruby', 'perl', 'python', 'json']),
|
22146
|
+
theme: prop_types__WEBPACK_IMPORTED_MODULE_18___default().oneOf(['black', 'white']),
|
22147
|
+
lineNumbers: (prop_types__WEBPACK_IMPORTED_MODULE_18___default().bool)
|
22142
22148
|
};
|
22143
|
-
var CodeWrapper =
|
22149
|
+
var CodeWrapper = styled_components__WEBPACK_IMPORTED_MODULE_19___default().pre.withConfig({
|
22144
22150
|
displayName: "CodeWrapper",
|
22145
22151
|
componentId: "sc-1kleg7y-0"
|
22146
|
-
})(["&&&{font-family:", ";margin:0;border:none;background-color:transparent;width:100%;white-space:pre-wrap !important;font-size:", ";line-height:", ";tab-size:4;text-align:left;word-spacing:normal;word-break:break-word;word-wrap:normal;hyphens:none;max-height:none !important;code.content{all:inherit;margin:0;padding:0;border:none;background-color:transparent;text-shadow:none;}&.line-numbers{position:relative;padding-left:3.8rem;counter-reset:linenumber;& > code{position:relative;white-space:inherit;}.line-numbers-rows{position:absolute;pointer-events:none;top:0;font-size:100%;left:-3.8rem;width:3rem;letter-spacing:-1px;border-right:1px solid ", ";-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;& > span{display:block;counter-increment:linenumber;&:before{content:counter(linenumber);color:", ";display:block;padding-right:0.8rem;text-align:right;}}}}", "}"],
|
22152
|
+
})(["&&&{font-family:", ";margin:0;border:none;background-color:transparent;width:100%;white-space:pre-wrap !important;font-size:", ";line-height:", ";tab-size:4;text-align:left;word-spacing:normal;word-break:break-word;word-wrap:normal;hyphens:none;max-height:none !important;code.content{all:inherit;margin:0;padding:0;border:none;background-color:transparent;text-shadow:none;}&.line-numbers{position:relative;padding-left:3.8rem;counter-reset:linenumber;& > code{position:relative;white-space:inherit;}.line-numbers-rows{position:absolute;pointer-events:none;top:0;font-size:100%;left:-3.8rem;width:3rem;letter-spacing:-1px;border-right:1px solid ", ";-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;& > span{display:block;counter-increment:linenumber;&:before{content:counter(linenumber);color:", ";display:block;padding-right:0.8rem;text-align:right;}}}}", "}"], _theme__WEBPACK_IMPORTED_MODULE_20__["default"].font_family.mono, _theme__WEBPACK_IMPORTED_MODULE_20__["default"].font_size.sm, _theme__WEBPACK_IMPORTED_MODULE_20__["default"].line_height.loose, function (props) {
|
22147
22153
|
return props.$theme == 'white' ? '#5F6364' : '#999';
|
22148
22154
|
}, function (props) {
|
22149
22155
|
return props.$theme == 'white' ? '#5F6364' : '#999';
|
22150
22156
|
}, function (props) {
|
22151
22157
|
if (props.$theme == 'white') {
|
22152
|
-
return (0,
|
22158
|
+
return (0,styled_components__WEBPACK_IMPORTED_MODULE_19__.css)(["code.content{color:#c92c2c;}.token.comment,.token.block-comment,.token.prolog,.token.doctype,.token.cdata{color:#7D8B99;}.token.punctuation{color:#5F6364;}.token.property,.token.tag,.token.boolean,.token.number,.token.function-name,.token.constant,.token.symbol,.token.deleted{color:#c92c2c;}.token.selector,.token.attr-name,.token.string,.token.char,.token.function,.token.builtin,.token.inserted{color:#2f9c0a;}.token.operator,.token.entity,.token.url,.token.variable{color:#a67f59;background:rgba(255,255,255,0.5);}.token.atrule,.token.attr-value,.token.keyword,.token.class-name{color:#1990b8;}.token.regex,.token.important{color:#e90;}.language-css .token.string,.style .token.string{color:#a67f59;background:rgba(255,255,255,0.5);}.token.important{font-weight:normal;}.token.bold{font-weight:bold;}.token.italic{font-style:italic;}.token.entity{cursor:help;}.token.namespace{opacity:.7;}"]);
|
22153
22159
|
}
|
22154
|
-
return (0,
|
22160
|
+
return (0,styled_components__WEBPACK_IMPORTED_MODULE_19__.css)(["code.content{color:", ";}.token.comment,.token.prolog,.token.doctype,.token.cdata{color:slategray;}.token.punctuation{color:#999;}.token.namespace{opacity:.7;}.token.property,.token.tag,.token.boolean,.token.constant,.token.symbol,.token.deleted{color:#f8c555;}.token.selector,.token.attr-name,.token.string,.token.char,.token.builtin,.token.inserted{color:#7ec699;}.token.operator,.token.entity,.token.url,.language-css .token.string,.style .token.string{color:#67cdcc;}.token.atrule,.token.attr-value,.token.keyword{color:#cc99cd;}.token.function,.token.number,.token.class-name{color:#f08d49;}.token.regex,.token.important,.token.variable{color:#e90;}.token.important,.token.bold{font-weight:bold;}.token.italic{font-style:italic;}.token.entity{cursor:help;}"], _theme__WEBPACK_IMPORTED_MODULE_20__["default"].color.gray_8);
|
22155
22161
|
});
|
22156
22162
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Code);
|
22157
22163
|
|
@@ -22264,6 +22270,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
22264
22270
|
/* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../layout */ "./src/layout/index.js");
|
22265
22271
|
/* harmony import */ var _code__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./code */ "./src/code/code.js");
|
22266
22272
|
/* harmony import */ var _copy_button__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./copy_button */ "./src/code/copy_button.js");
|
22273
|
+
/* harmony import */ var _skeleton__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./skeleton */ "./src/code/skeleton.js");
|
22267
22274
|
// LICENSE_CODE ZON
|
22268
22275
|
|
22269
22276
|
|
@@ -22275,6 +22282,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
22275
22282
|
|
22276
22283
|
|
22277
22284
|
|
22285
|
+
|
22278
22286
|
var CodeSnippet = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function (props, ref) {
|
22279
22287
|
var code = props.code,
|
22280
22288
|
lang = props.lang,
|
@@ -22282,14 +22290,15 @@ var CodeSnippet = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)
|
|
22282
22290
|
className = props.className,
|
22283
22291
|
themeProp = props.theme,
|
22284
22292
|
lineNumbers = props.lineNumbers,
|
22285
|
-
copyButton = props.copyButton
|
22293
|
+
copyButton = props.copyButton,
|
22294
|
+
loading = props.loading;
|
22286
22295
|
var codeRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
|
22287
22296
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(CodeBlockBody, {
|
22288
22297
|
ref: ref,
|
22289
22298
|
className: className,
|
22290
22299
|
max_height: max_height,
|
22291
22300
|
$theme: themeProp
|
22292
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_code__WEBPACK_IMPORTED_MODULE_5__["default"], {
|
22301
|
+
}, !loading && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_code__WEBPACK_IMPORTED_MODULE_5__["default"], {
|
22293
22302
|
ref: codeRef,
|
22294
22303
|
lang: lang,
|
22295
22304
|
text: code,
|
@@ -22299,6 +22308,8 @@ var CodeSnippet = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)
|
|
22299
22308
|
code: code,
|
22300
22309
|
theme: themeProp,
|
22301
22310
|
codeRef: codeRef
|
22311
|
+
})), !!loading && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_skeleton__WEBPACK_IMPORTED_MODULE_7__["default"], {
|
22312
|
+
theme: themeProp
|
22302
22313
|
}));
|
22303
22314
|
});
|
22304
22315
|
CodeSnippet.displayName = 'CodeSnippet';
|
@@ -22311,7 +22322,8 @@ CodeSnippet.propTypes = {
|
|
22311
22322
|
max_height: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
|
22312
22323
|
theme: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOf(['black', 'white']),
|
22313
22324
|
lineNumbers: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().bool),
|
22314
|
-
copyButton: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().bool)
|
22325
|
+
copyButton: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().bool),
|
22326
|
+
loading: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().bool)
|
22315
22327
|
};
|
22316
22328
|
var CodeBlockBody = styled_components__WEBPACK_IMPORTED_MODULE_1___default()(_layout__WEBPACK_IMPORTED_MODULE_4__.Flex).attrs({
|
22317
22329
|
align_items: 'flex-start',
|
@@ -22502,6 +22514,78 @@ __webpack_require__.r(__webpack_exports__);
|
|
22502
22514
|
|
22503
22515
|
|
22504
22516
|
|
22517
|
+
/***/ }),
|
22518
|
+
|
22519
|
+
/***/ "./src/code/skeleton.js":
|
22520
|
+
/*!******************************!*\
|
22521
|
+
!*** ./src/code/skeleton.js ***!
|
22522
|
+
\******************************/
|
22523
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
22524
|
+
|
22525
|
+
"use strict";
|
22526
|
+
__webpack_require__.r(__webpack_exports__);
|
22527
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
22528
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
22529
|
+
/* harmony export */ });
|
22530
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
22531
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
22532
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! styled-components */ "styled-components");
|
22533
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_1__);
|
22534
|
+
// LICENSE_CODE ZON
|
22535
|
+
|
22536
|
+
|
22537
|
+
/*jslint react:true*/
|
22538
|
+
|
22539
|
+
|
22540
|
+
var Skeleton = function Skeleton(props) {
|
22541
|
+
var themeProp = props.theme;
|
22542
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(StyledSkeleton, {
|
22543
|
+
$theme: themeProp
|
22544
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(SkeletonBox, {
|
22545
|
+
$theme: themeProp,
|
22546
|
+
$width: "53px"
|
22547
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(SkeletonBox, {
|
22548
|
+
$theme: themeProp,
|
22549
|
+
$width: "223px"
|
22550
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(SkeletonBox, {
|
22551
|
+
$theme: themeProp,
|
22552
|
+
$width: "93px"
|
22553
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(SkeletonBox, {
|
22554
|
+
$theme: themeProp,
|
22555
|
+
$width: "93px"
|
22556
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(SkeletonBox, {
|
22557
|
+
$theme: themeProp,
|
22558
|
+
$width: "157px"
|
22559
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(SkeletonBox, {
|
22560
|
+
$theme: themeProp,
|
22561
|
+
$width: "53px"
|
22562
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(SkeletonBox, {
|
22563
|
+
$theme: themeProp,
|
22564
|
+
$width: "90px"
|
22565
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(SkeletonBox, {
|
22566
|
+
$theme: themeProp,
|
22567
|
+
$width: "187px"
|
22568
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(SkeletonBox, {
|
22569
|
+
$theme: themeProp,
|
22570
|
+
$width: "188px"
|
22571
|
+
}));
|
22572
|
+
};
|
22573
|
+
var StyledSkeleton = styled_components__WEBPACK_IMPORTED_MODULE_1___default().div.withConfig({
|
22574
|
+
displayName: "StyledSkeleton",
|
22575
|
+
componentId: "sc-1v7xkdy-0"
|
22576
|
+
})(["flex:1;display:flex;flex-wrap:wrap;column-gap:16px;row-gap:12px;}"]);
|
22577
|
+
var SkeletonBox = styled_components__WEBPACK_IMPORTED_MODULE_1___default().span.withConfig({
|
22578
|
+
displayName: "SkeletonBox",
|
22579
|
+
componentId: "sc-1v7xkdy-1"
|
22580
|
+
})(["display:inline-block;height:10px;width:", ";max-width:100%;background:", ";position:relative;overflow:hidden;&::after{position:absolute;top:0;right:0;bottom:0;left:0;transform:translateX(-100%);border-radius:2px;background:", ";animation:shimmer 5s infinite;content:'';}@keyframes shimmer{100%{transform:translateX(100%);}}"], function (props) {
|
22581
|
+
return props.$width;
|
22582
|
+
}, function (props) {
|
22583
|
+
return props.$theme == 'white' ? '#B4B9BD' : '#333335';
|
22584
|
+
}, function (props) {
|
22585
|
+
return props.$theme == 'white' ? 'linear-gradient(90deg, #B4B9BD 3.16%, #B5BCC6 50.83%, #889096 99.97%,' + ' #B4B9BD 99.97%)' : 'linear-gradient(90deg, #333335 3.16%, #525252 57.39%, #333335 99.97%)';
|
22586
|
+
});
|
22587
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Skeleton);
|
22588
|
+
|
22505
22589
|
/***/ }),
|
22506
22590
|
|
22507
22591
|
/***/ "./src/combo_button/combo_button.js":
|
@@ -30986,6 +31070,7 @@ var Label = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef
|
|
30986
31070
|
var t = (0,_translation__WEBPACK_IMPORTED_MODULE_2__.useReactTranslate)();
|
30987
31071
|
var typographyProps = _objectSpread(_objectSpread({}, (0,_utils__WEBPACK_IMPORTED_MODULE_3__.getTypographyProps)(props)), {}, {
|
30988
31072
|
font_size: {
|
31073
|
+
xxs: 'xxs',
|
30989
31074
|
xs: 'xs',
|
30990
31075
|
sm: 'sm'
|
30991
31076
|
}[props.variant] || 'md',
|
@@ -31000,7 +31085,7 @@ Label.defaultProps = {
|
|
31000
31085
|
variant: 'base'
|
31001
31086
|
};
|
31002
31087
|
Label.propTypes = {
|
31003
|
-
variant: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['xs', 'sm', 'base', 'lg'])
|
31088
|
+
variant: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['xxs', 'xs', 'sm', 'base', 'lg'])
|
31004
31089
|
};
|
31005
31090
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Label);
|
31006
31091
|
|
@@ -31106,19 +31191,16 @@ var Style = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef
|
|
31106
31191
|
var typographyProps = _objectSpread(_objectSpread({}, (0,_utils__WEBPACK_IMPORTED_MODULE_2__.getTypographyProps)(props)), {}, {
|
31107
31192
|
font_size: {
|
31108
31193
|
italic_sm: 'sm',
|
31109
|
-
code: 'sm',
|
31110
31194
|
italic_xs: 'xs',
|
31111
|
-
|
31195
|
+
code: 'sm',
|
31196
|
+
code_xxs: 'xxs',
|
31197
|
+
capitals: 'xs',
|
31198
|
+
capitals_xxs: 'xxs'
|
31112
31199
|
}[props.variant] || 'md',
|
31113
|
-
line_height:
|
31114
|
-
|
31115
|
-
italic_sm: 'snug'
|
31116
|
-
}[props.variant] || 'none',
|
31117
|
-
font_family: {
|
31118
|
-
code: 'mono'
|
31119
|
-
}[props.variant] || 'sans',
|
31200
|
+
line_height: ['italic_lg', 'italic_sm'].includes(props.variant) ? 'snug' : 'none',
|
31201
|
+
font_family: ['code', 'code_xxs'].includes(props.variant) ? 'mono' : 'sans',
|
31120
31202
|
italic: ['italic_lg', 'italic_sm', 'italic_xs'].includes(props.variant),
|
31121
|
-
uppercase: props.variant
|
31203
|
+
uppercase: ['capitals', 'capitals_xxs'].includes(props.variant)
|
31122
31204
|
});
|
31123
31205
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_3__["default"], _extends({
|
31124
31206
|
ref: ref
|
@@ -31129,7 +31211,7 @@ Style.defaultProps = {
|
|
31129
31211
|
variant: 'italic_lg'
|
31130
31212
|
};
|
31131
31213
|
Style.propTypes = {
|
31132
|
-
variant: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['italic_lg', 'italic_sm', 'italic_xs', 'code', 'capitals']),
|
31214
|
+
variant: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['italic_lg', 'italic_sm', 'italic_xs', 'code', 'code_xxs', 'capitals', 'capitals_xxs']),
|
31133
31215
|
whiteSpace: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_2__.whiteSpaces)
|
31134
31216
|
};
|
31135
31217
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Style);
|