@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 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: getButtonStyle(option),
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: getButtonStyle(option),
170
+ className,
175
171
  style: { pointerEvents: isDisabled && selectedValue !== option.value ? "none" : "auto" }
176
172
  },
177
173
  option.label
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.12-Beta61",
3
+ "version": "0.0.12-Beta63",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",
@@ -1,13 +1,10 @@
1
+ /** @type {import('tailwindcss').Config} */
1
2
  module.exports = {
2
3
  content: [
3
- './src/**/*.{js,jsx,ts,tsx}',
4
+ "./src/**/*.{js,jsx,ts,tsx}",
4
5
  ],
5
-
6
6
  theme: {
7
7
  extend: {},
8
8
  },
9
- variants: {
10
- extend: {},
11
- },
12
9
  plugins: [],
13
- };
10
+ }