Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /var/www/html/wincloud_gateway/node_modules/@buffetjs/core/build/esm/components/Text/ drwxr-xr-x | |
| Viewing file: Select action/file-type: var _templateObject;
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
import styled from 'styled-components';
import PropTypes from 'prop-types';
import colors from '../../theme/colors';
var Text = styled.p(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n margin: 0;\n line-height: ", ";\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n text-transform: ", ";\n ", "\n"])), function (_ref) {
var lineHeight = _ref.lineHeight;
return lineHeight;
}, function (_ref2) {
var theme = _ref2.theme,
color = _ref2.color;
return theme.main.colors[color] || color;
}, function (_ref3) {
var theme = _ref3.theme,
fontSize = _ref3.fontSize;
return theme.main.sizes.fonts[fontSize];
}, function (_ref4) {
var theme = _ref4.theme,
fontWeight = _ref4.fontWeight;
return theme.main.fontWeights[fontWeight];
}, function (_ref5) {
var textTransform = _ref5.textTransform;
return textTransform;
}, function (_ref6) {
var ellipsis = _ref6.ellipsis;
return ellipsis && "\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n ";
});
Text.defaultProps = {
color: 'greyDark',
ellipsis: false,
fontSize: 'md',
fontWeight: 'regular',
lineHeight: 'normal',
textTransform: 'none',
// TODO : This is temporary
theme: {
main: {
colors: colors,
sizes: {
fonts: {
xs: '11px',
sm: '12px',
md: '13px',
lg: '18px',
xl: '24px'
}
},
fontWeights: {
regular: 400,
semiBold: 500,
bold: 600,
black: 900
}
}
}
};
Text.propTypes = {
color: PropTypes.string,
ellipsis: PropTypes.bool,
fontSize: PropTypes.string,
fontWeight: PropTypes.string,
lineHeight: PropTypes.string,
textTransform: PropTypes.string,
// eslint-disable-next-line react/forbid-prop-types
theme: PropTypes.object
};
export default Text; |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0106 ]-- |