@apexcura/ui-components 0.0.12-Beta61 → 0.0.12-Beta63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -5
- package/dist/index.mjs +1 -5
- package/package.json +1 -1
- package/tailwind.config.js +3 -6
package/dist/index.js
CHANGED
|
@@ -187,7 +187,6 @@ var import_react6 = __toESM(require("react"));
|
|
|
187
187
|
var import_antd6 = require("antd");
|
|
188
188
|
var containerClassName = " ";
|
|
189
189
|
var className = "bg-[#F2F2F2] border border-[#919191] !rounded-[8px] !m-[10px] hover:bg-[#F2F2F2] !text-center !text-black !shadow-[0px_0px_1px_1px_#919191]";
|
|
190
|
-
var selectedClassName = "!bg-[#E2D6F8] !border !border-[#B8A4DE] rounded-[8px] p-[6px] m-[10px] shadow-[0px_0px_1px_1px_#B8A4DE] text-center !text-black shadow-[0px_0px_1px_1px_#919191]";
|
|
191
190
|
var RadioElement = (props) => {
|
|
192
191
|
const [isDisabled, setIsDisabled] = (0, import_react6.useState)(props.disabled);
|
|
193
192
|
const [selectedValue, setSelectedValue] = (0, import_react6.useState)(props.value);
|
|
@@ -201,9 +200,6 @@ var RadioElement = (props) => {
|
|
|
201
200
|
props.onChange(selectedOptions);
|
|
202
201
|
}
|
|
203
202
|
};
|
|
204
|
-
const getButtonStyle = (option) => {
|
|
205
|
-
return selectedValue === option.value ? `${selectedClassName} ${option.selectedClassName}` : `${className} ${option.className}`;
|
|
206
|
-
};
|
|
207
203
|
return /* @__PURE__ */ import_react6.default.createElement("div", { className: containerClassName }, /* @__PURE__ */ import_react6.default.createElement(
|
|
208
204
|
import_antd6.Radio.Group,
|
|
209
205
|
{
|
|
@@ -218,7 +214,7 @@ var RadioElement = (props) => {
|
|
|
218
214
|
key: option.value,
|
|
219
215
|
value: option.value,
|
|
220
216
|
disabled: isDisabled && selectedValue !== option.value,
|
|
221
|
-
className
|
|
217
|
+
className,
|
|
222
218
|
style: { pointerEvents: isDisabled && selectedValue !== option.value ? "none" : "auto" }
|
|
223
219
|
},
|
|
224
220
|
option.label
|
package/dist/index.mjs
CHANGED
|
@@ -140,7 +140,6 @@ import React6, { useState as useState2 } from "react";
|
|
|
140
140
|
import { Radio } from "antd";
|
|
141
141
|
var containerClassName = " ";
|
|
142
142
|
var className = "bg-[#F2F2F2] border border-[#919191] !rounded-[8px] !m-[10px] hover:bg-[#F2F2F2] !text-center !text-black !shadow-[0px_0px_1px_1px_#919191]";
|
|
143
|
-
var selectedClassName = "!bg-[#E2D6F8] !border !border-[#B8A4DE] rounded-[8px] p-[6px] m-[10px] shadow-[0px_0px_1px_1px_#B8A4DE] text-center !text-black shadow-[0px_0px_1px_1px_#919191]";
|
|
144
143
|
var RadioElement = (props) => {
|
|
145
144
|
const [isDisabled, setIsDisabled] = useState2(props.disabled);
|
|
146
145
|
const [selectedValue, setSelectedValue] = useState2(props.value);
|
|
@@ -154,9 +153,6 @@ var RadioElement = (props) => {
|
|
|
154
153
|
props.onChange(selectedOptions);
|
|
155
154
|
}
|
|
156
155
|
};
|
|
157
|
-
const getButtonStyle = (option) => {
|
|
158
|
-
return selectedValue === option.value ? `${selectedClassName} ${option.selectedClassName}` : `${className} ${option.className}`;
|
|
159
|
-
};
|
|
160
156
|
return /* @__PURE__ */ React6.createElement("div", { className: containerClassName }, /* @__PURE__ */ React6.createElement(
|
|
161
157
|
Radio.Group,
|
|
162
158
|
{
|
|
@@ -171,7 +167,7 @@ var RadioElement = (props) => {
|
|
|
171
167
|
key: option.value,
|
|
172
168
|
value: option.value,
|
|
173
169
|
disabled: isDisabled && selectedValue !== option.value,
|
|
174
|
-
className
|
|
170
|
+
className,
|
|
175
171
|
style: { pointerEvents: isDisabled && selectedValue !== option.value ? "none" : "auto" }
|
|
176
172
|
},
|
|
177
173
|
option.label
|
package/package.json
CHANGED
package/tailwind.config.js
CHANGED