UNPKG

maz-ui

Version:

A standalone components library for Vue.Js 3 & Nuxt.Js 3

97 lines (96 loc) 3.2 kB
import { getColors } from "./utils/colors.js"; import { screens } from "./variables/breakpoints.js"; import { getNumericScreensFromTailwind } from "./variables/breakpoints.js"; import { designTokens } from "./variables/design-tokens.js"; import { utilities } from "./variables/utilities.js"; import { zIndex } from "./variables/z-indexes.js"; import "./variables/colors.js"; function getDefaultExportFromCjs(x) { return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x.default : x; } var createPlugin$1 = {}, createPlugin = {}, hasRequiredCreatePlugin$1; function requireCreatePlugin$1() { return hasRequiredCreatePlugin$1 || (hasRequiredCreatePlugin$1 = 1, function(exports) { Object.defineProperty(exports, "__esModule", { value: !0 }), Object.defineProperty(exports, "default", { enumerable: !0, get: function() { return _default; } }); function createPlugin2(plugin2, config) { return { handler: plugin2, config }; } createPlugin2.withOptions = function(pluginFunction, configFunction = () => ({})) { const optionsFunction = function(options) { return { __options: options, handler: pluginFunction(options), config: configFunction(options) }; }; return optionsFunction.__isOptionsFunction = !0, optionsFunction.__pluginFunction = pluginFunction, optionsFunction.__configFunction = configFunction, optionsFunction; }; const _default = createPlugin2; }(createPlugin)), createPlugin; } var hasRequiredCreatePlugin; function requireCreatePlugin() { return hasRequiredCreatePlugin || (hasRequiredCreatePlugin = 1, function(exports) { Object.defineProperty(exports, "__esModule", { value: !0 }), Object.defineProperty(exports, "default", { enumerable: !0, get: function() { return _default; } }); const _createPlugin = /* @__PURE__ */ _interop_require_default(/* @__PURE__ */ requireCreatePlugin$1()); function _interop_require_default(obj) { return obj && obj.__esModule ? obj : { default: obj }; } const _default = _createPlugin.default; }(createPlugin$1)), createPlugin$1; } var plugin$1, hasRequiredPlugin; function requirePlugin() { if (hasRequiredPlugin) return plugin$1; hasRequiredPlugin = 1; let createPlugin2 = /* @__PURE__ */ requireCreatePlugin(); return plugin$1 = (createPlugin2.__esModule ? createPlugin2 : { default: createPlugin2 }).default, plugin$1; } var pluginExports = /* @__PURE__ */ requirePlugin(); const plugin = /* @__PURE__ */ getDefaultExportFromCjs(pluginExports); function defineMazTailwindConfig(config, { utilities: utilities$1 } = {}) { return { darkMode: ["class", '[class~="dark"]'], content: [], theme: { extend: { ...designTokens, colors: getColors(), screens, zIndex } }, plugins: [ plugin(({ addUtilities }) => { addUtilities({ ...utilities, ...utilities$1 }); }) ], ...config }; } export { defineMazTailwindConfig, getNumericScreensFromTailwind };