UNPKG

@dialpad/dialtone

Version:

Dialpad's Dialtone design system monorepo

80 lines (79 loc) 1.84 kB
//#region components/button/button_constants.js 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 }; //#endregion export { s as BUTTON_ICON_SIZES, r as BUTTON_IMPORTANCE_MODIFIERS, n as BUTTON_KIND_MODIFIERS, t as BUTTON_SIZE_MODIFIERS, i as BUTTON_TYPES, e as BUTTON_UNSTYLED_CLASS, a as ICON_POSITION_MODIFIERS, o as INVALID_COMBINATION, l as default }; //# sourceMappingURL=button-constants.js.map