UNPKG

@payfit/unity-components

Version:

24 lines (23 loc) 713 B
import { useSelectOptionContext as e } from "./SelectOption.context.js"; import { forwardRef as t } from "react"; import { uyTv as n } from "@payfit/unity-themes"; import { jsx as r } from "react/jsx-runtime"; //#region src/components/select/parts/SelectOptionHelper.tsx var i = n({ base: "uy:typography-body", variants: { isDisabled: { true: "uy:text-content-neutral-disabled", false: "uy:text-content-neutral-low" } } }), a = t(({ children: t }, n) => { let { isDisabled: a } = e(); return /* @__PURE__ */ r("span", { className: i({ isDisabled: a }), ref: n, "data-dd-privacy": "mask", children: t }); }); a.displayName = "SelectOptionHelper"; //#endregion export { a as SelectOptionHelper };