"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.wordBreak = exports.maxLines = exports.isTruncated = void 0;
const styled_components_1 = require("@xstyled/styled-components");
/** Provides styling to truncate single-line text. */
exports.isTruncated = (0, styled_components_1.style)({
    prop: 'isTruncated',
    cssProperty: function () {
        return {
            overflow: 'hidden',
            'text-overflow': 'ellipsis',
            'white-space': 'nowrap',
        };
    },
    states: {},
});
/** Provides styling to truncate multi-line text. */
exports.maxLines = (0, styled_components_1.style)({
    prop: 'maxLines',
    cssProperty: function (value) {
        return {
            display: '-webkit-box',
            overflow: 'hidden',
            '-webkit-line-clamp': `${value}`,
            '-webkit-box-orient': 'vertical',
        };
    },
    states: {},
});
exports.wordBreak = (0, styled_components_1.style)({
    prop: 'wordBreak',
});
//# sourceMappingURL=custom.js.map