@kubit-ui-web/react-components
Version:
Kubit React Components is a customizable, accessible library of React web components, designed to enhance your application's user experience
60 lines (57 loc) • 2.33 kB
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.TableRowStyled = exports.ItemRoveStyled = exports.ElementEmptyStyled = exports.ElementStyled = exports.ListStyled = void 0;
const styled_components_1 = __importDefault(require("styled-components"));
const constants_1 = require("../constants/constants");
const state_1 = require("./types/state");
exports.ListStyled = styled_components_1.default.tbody `
display: flex;
flex-direction: row;
flex-wrap: wrap;
position: relative;
gap: ${({ styles }) => styles?.[state_1.ListDaysStateType.DEFAULT]?.gap_days};
`;
exports.ElementStyled = styled_components_1.default.button ``;
exports.ElementEmptyStyled = styled_components_1.default.td `
width: calc(100% / ${constants_1.WEEK_DAYS});
aspect-ratio: 1 / 1;
`;
exports.ItemRoveStyled = styled_components_1.default.td `
width: calc(100% / ${constants_1.WEEK_DAYS});
aspect-ratio: 1 / 1;
${exports.ElementStyled} {
width: 100%;
height: 100%;
text-align: ${props => props.styles?.[props.state]?.label_font_align};
color: ${props => props.styles?.[props.state]?.label_font_color};
display: inline-flex;
align-items: center;
justify-content: center;
background-color: ${props => props.styles?.[props.state]?.background_color};
border: ${props => props.styles?.[props.state]?.border};
border-top: ${props => props.styles?.[props.state]?.border_top};
border-bottom: ${props => props.styles?.[props.state]?.border_bottom};
border-radius: ${props => props.styles?.[props.state]?.radius_size};
cursor: pointer;
&:hover {
background-color: ${props => props.styles?.[state_1.ListDaysStateType.HOVER]?.background_color};
color: ${props => props.styles?.[state_1.ListDaysStateType.HOVER]?.label_font_color};
}
${({ $disabled, styles }) => $disabled &&
`
cursor: auto;
pointer-events: none;
background-color: transparent;
border: 0;
color: ${styles?.[state_1.ListDaysStateType.DISABLED]?.label_font_color};
`}
}
`;
exports.TableRowStyled = styled_components_1.default.tr `
display: flex;
width: 100%;
`;
//# sourceMappingURL=list.styled.js.map