'use strict';

var clsx = require('clsx');
var lodashEs = require('lodash-es');
var tailwindMerge = require('tailwind-merge');
var react = require('@tw-classed/react');
var core = require('@tw-classed/core');
var createVariatGroupTransfomer = require('tailwind-group-variant');
var jsxRuntime = require('react/jsx-runtime');

function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }

var clsx__default = /*#__PURE__*/_interopDefault(clsx);
var createVariatGroupTransfomer__default = /*#__PURE__*/_interopDefault(createVariatGroupTransfomer);

// src/styles/position.variants.ts
var positionVariants = {
  "top-center": "-translate-y-1/2 translate-x-1/2 right-1/2",
  "top-left": "-translate-y-1/2 -translate-x-1/2 right-auto top-0 left-0",
  "top-right": "-translate-y-1/2 translate-x-1/2 left-auto top-0 right-0",
  "middle-center": "-translate-y-1/2 -translate-x-1/2 top-2/4 left-1/2",
  "middle-left": "-translate-y-1/2 -translate-x-1/2 right-auto left-0 top-2/4",
  "middle-right": "-translate-y-1/2 translate-x-1/2 left-auto right-0 top-2/4",
  "bottom-center": "translate-y-1/2 translate-x-1/2 bottom-0 right-1/2",
  "bottom-left": "translate-y-1/2 -translate-x-1/2 right-auto bottom-0 left-0",
  "bottom-right": "translate-y-1/2 translate-x-1/2 left-auto bottom-0 right-0"
};
lodashEs.mapValues(
  positionVariants,
  (className) => clsx__default.default(className, "absolute")
);
var twMerge = tailwindMerge.extendTailwindMerge({
  classGroups: {
    "font-size": [
      {
        // Fixes incorect merging of text size
        text: ["h1", "h2", "h3", "h4", "h5", "h6"]
      }
    ]
  }
});
var { classed } = react.createClassed({ merger: twMerge });
core.createClassed({ merger: twMerge });
createVariatGroupTransfomer__default.default({});
var PositionElement = classed("div", "absolute", {
  variants: {
    position: positionVariants
  }
});
var Position = (props) => {
  return /* @__PURE__ */ jsxRuntime.jsx(PositionElement, { ...props });
};

exports.Position = Position;
//# sourceMappingURL=out.js.map
//# sourceMappingURL=index.cjs.map