UNPKG

@dialpad/dialtone

Version:

Dialpad's Dialtone design system monorepo

6 lines 1.66 kB
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});var e=`d-btn--unstyled`,t={xs:`d-btn--xs`,sm:`d-btn--sm`,md:``,lg:`d-btn--lg`,xl:`d-btn--xl`},n={default:``,muted:`d-btn--muted`,danger:`d-btn--danger`,positive:`d-btn--positive`,inverted:`d-btn--inverted`,unstyled:`d-btn--unstyled`},r={clear:``,outlined:`d-btn--outlined`,primary:`d-btn--primary`},i=[`submit`,`reset`,`button`],a={left:`d-btn__icon--left`,right:`d-btn__icon--right`,top:`d-btn__icon--top`,bottom:`d-btn__icon--bottom`},o=[{circle:!0,kind:`default`,importance:`primary`,message:c(!0,`default`,`primary`)},{circle:!0,kind:`danger`,importance:`outlined`,message:c(!0,`danger`,`outlined`)},{circle:!0,kind:`muted`,importance:`primary`,message:c(!0,`muted`,`primary`)},{circle:!1,kind:`muted`,importance:`primary`,message:c(!1,`muted`,`primary`)}],s={xs:`200`,sm:`200`,md:`300`,lg:`400`,xl:`500`};function c(e,t,n){return`You cannot have a ${e?`circle `:``}button \ with kind: ${t} and importance: ${n} as it \ does not exist in our design system. \ See https://dialtone.dialpad.com/components/button.html for a \ list of available button styles`}var l={BUTTON_SIZE_MODIFIERS:t,BUTTON_KIND_MODIFIERS:n,BUTTON_IMPORTANCE_MODIFIERS:r,BUTTON_TYPES:i,BUTTON_UNSTYLED_CLASS:e,ICON_POSITION_MODIFIERS:a,INVALID_COMBINATION:o,BUTTON_ICON_SIZES:s};exports.BUTTON_ICON_SIZES=s,exports.BUTTON_IMPORTANCE_MODIFIERS=r,exports.BUTTON_KIND_MODIFIERS=n,exports.BUTTON_SIZE_MODIFIERS=t,exports.BUTTON_TYPES=i,exports.BUTTON_UNSTYLED_CLASS=e,exports.ICON_POSITION_MODIFIERS=a,exports.INVALID_COMBINATION=o,exports.default=l; //# sourceMappingURL=button-constants.cjs.map