UNPKG

@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

40 lines 1.36 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getPillSelectorStylesV2 = void 0; const spacings_1 = require("../../../../../designSystem/kubitWireframe/commons/foundations/spacings"); const variants_1 = require("../variants"); const variants_2 = require("./variants"); const buildCommonProps = (COLORS) => ({ rootContainer: { display: 'flex', flex_direction: 'row', max_width: 'fit-content', gap: spacings_1.SPACINGS.spacing_100, }, pill: { variant: variants_1.PillVariantTypeV2.DEFAULT, }, }); const getPillSelectorStylesV2 = (COLORS) => { const commonProps = buildCommonProps(COLORS); return { [variants_2.PillSelectorVariantTypeV2.DEFAULT]: { [variants_2.PillSelectorSizeTypeV2.LARGE]: { ...commonProps, pill: { ...commonProps.pill, size: variants_1.PillSizeTypeV2.LARGE, }, }, [variants_2.PillSelectorSizeTypeV2.SMALL]: { ...commonProps, pill: { ...commonProps.pill, size: variants_1.PillSizeTypeV2.SMALL, }, }, }, }; }; exports.getPillSelectorStylesV2 = getPillSelectorStylesV2; //# sourceMappingURL=styles.js.map