UNPKG

@mabi-ui/radio

Version:

Radio group and radio button components for Mabi-UI

57 lines 1.88 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } // src/RadioIcons.tsx var _utils = require("@mabi-ui/utils"); var _react = require("react"); var _react2 = _interopRequireDefault(_react); function SelectedIcon(param) { var color = param.color, isDisabled = param.isDisabled; return /* @__PURE__ */ _react2.default.createElement("svg", { width: 20, height: 20, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ _react2.default.createElement("rect", { x: 1, y: 1, width: 18, height: 18, rx: 9, stroke: "2", className: _utils.cn.call(void 0, !isDisabled ? _utils.computeColor.call(void 0, color, "stroke") : "stroke-black/[0.38] dark:stroke-white/[0.38]", "stroke-2") }), /* @__PURE__ */ _react2.default.createElement("rect", { x: 5, y: 5, width: 10, height: 10, rx: 5, className: _utils.cn.call(void 0, !isDisabled ? _utils.computeColor.call(void 0, color, "fill") : "fill-black/[0.38] dark:fill-white/[0.38]") })); } function UnselectedIcon(param) { var color = param.color, isDisabled = param.isDisabled; return /* @__PURE__ */ _react2.default.createElement("svg", { width: 20, height: 20, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ _react2.default.createElement("rect", { x: 1, y: 1, width: 18, height: 18, rx: 9, className: "dark:stroke-white stroke-black", strokeOpacity: 0.38, strokeWidth: 2 })); } exports.SelectedIcon = SelectedIcon; exports.UnselectedIcon = UnselectedIcon; //# sourceMappingURL=chunk-XXSYQAE2.js.map