"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const jsxRuntime = require("react/jsx-runtime");
const RadixLabel = require("@radix-ui/react-label");
const React = require("react");
const classNames = require("../../utils/classNames.cjs");
require("../../utils/globals.cjs");
const config_context = require("../config/config.context.cjs");
require("./label.theme.css.cjs");
function _interopNamespaceDefault(e) {
  const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
  if (e) {
    for (const k in e) {
      if (k !== "default") {
        const d = Object.getOwnPropertyDescriptor(e, k);
        Object.defineProperty(n, k, d.get ? d : {
          enumerable: true,
          get: () => e[k]
        });
      }
    }
  }
  n.default = e;
  return Object.freeze(n);
}
const RadixLabel__namespace = /* @__PURE__ */ _interopNamespaceDefault(RadixLabel);
const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
const Label = React__namespace.forwardRef(({ required, className, requiredIndicator, children, displaySize, ...nativeProps }, ref) => {
  const globals = config_context.useArmstrongConfig({
    inputDisplaySize: displaySize,
    requiredIndicator
  });
  return jsxRuntime.jsxs(RadixLabel__namespace.Root, { className: classNames.concat("arm-label", className), ref, "data-size": globals.inputDisplaySize, ...nativeProps, children: [children, required && jsxRuntime.jsxs("span", { className: "arm-label-required-indicator", children: [" ", globals.requiredIndicator] })] });
});
Label.displayName = "Label";
exports.Label = Label;
//# sourceMappingURL=label.component.cjs.map
