@apexcura/ui-components 0.0.12-Beta47 → 0.0.12-Beta48
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 +5 -2
- package/dist/index.mjs +5 -2
- package/package.json +4 -1
- package/postcss.config.js +6 -0
- package/tailwind.config.js +10 -0
package/dist/index.js
CHANGED
|
@@ -185,6 +185,9 @@ var SelectElement = (props) => {
|
|
|
185
185
|
// src/Components/RadioElement.tsx
|
|
186
186
|
var import_react6 = __toESM(require("react"));
|
|
187
187
|
var import_antd6 = require("antd");
|
|
188
|
+
var containerClassName = "w-[224px] h-[192px] top-[218px] left-[146px] gap-[8px] mt-[15px]";
|
|
189
|
+
var className = "bg-[#F2F2F2] border border-[#919191] w-[183px] h-[42px] rounded-[8px] p-[6px_6px] m-[10px] hover:bg-[#F2F2F2] text-center !text-black";
|
|
190
|
+
var selectedClassName = "!bg-[#E2D6F8] !border !border-[#B8A4DE] w-[183px] h-[42px] rounded-[8px] p-[6px_6px] m-[10px] shadow-[0px_0px_1px_1px_#B8A4DE] text-center !text-black";
|
|
188
191
|
var RadioElement = (props) => {
|
|
189
192
|
const [isDisabled, setIsDisabled] = (0, import_react6.useState)(props.disabled);
|
|
190
193
|
const [selectedValue, setSelectedValue] = (0, import_react6.useState)(props.value);
|
|
@@ -202,14 +205,14 @@ var RadioElement = (props) => {
|
|
|
202
205
|
}
|
|
203
206
|
};
|
|
204
207
|
const getButtonStyle = (option) => {
|
|
205
|
-
return selectedValue === option.value ? option.selectedClassName : option.className
|
|
208
|
+
return selectedValue === option.value ? `${selectedClassName} ${option.selectedClassName}` : `${className} ${option.className}`;
|
|
206
209
|
};
|
|
207
210
|
return /* @__PURE__ */ import_react6.default.createElement("div", null, /* @__PURE__ */ import_react6.default.createElement(
|
|
208
211
|
import_antd6.Radio.Group,
|
|
209
212
|
{
|
|
210
213
|
onChange: handleChange,
|
|
211
214
|
optionType,
|
|
212
|
-
className:
|
|
215
|
+
className: `${containerClassName} ${className && className}`,
|
|
213
216
|
value: selectedValue
|
|
214
217
|
},
|
|
215
218
|
props.options && props.options.map((option) => /* @__PURE__ */ import_react6.default.createElement(
|
package/dist/index.mjs
CHANGED
|
@@ -138,6 +138,9 @@ var SelectElement = (props) => {
|
|
|
138
138
|
// src/Components/RadioElement.tsx
|
|
139
139
|
import React6, { useState as useState2 } from "react";
|
|
140
140
|
import { Radio } from "antd";
|
|
141
|
+
var containerClassName = "w-[224px] h-[192px] top-[218px] left-[146px] gap-[8px] mt-[15px]";
|
|
142
|
+
var className = "bg-[#F2F2F2] border border-[#919191] w-[183px] h-[42px] rounded-[8px] p-[6px_6px] m-[10px] hover:bg-[#F2F2F2] text-center !text-black";
|
|
143
|
+
var selectedClassName = "!bg-[#E2D6F8] !border !border-[#B8A4DE] w-[183px] h-[42px] rounded-[8px] p-[6px_6px] m-[10px] shadow-[0px_0px_1px_1px_#B8A4DE] text-center !text-black";
|
|
141
144
|
var RadioElement = (props) => {
|
|
142
145
|
const [isDisabled, setIsDisabled] = useState2(props.disabled);
|
|
143
146
|
const [selectedValue, setSelectedValue] = useState2(props.value);
|
|
@@ -155,14 +158,14 @@ var RadioElement = (props) => {
|
|
|
155
158
|
}
|
|
156
159
|
};
|
|
157
160
|
const getButtonStyle = (option) => {
|
|
158
|
-
return selectedValue === option.value ? option.selectedClassName : option.className
|
|
161
|
+
return selectedValue === option.value ? `${selectedClassName} ${option.selectedClassName}` : `${className} ${option.className}`;
|
|
159
162
|
};
|
|
160
163
|
return /* @__PURE__ */ React6.createElement("div", null, /* @__PURE__ */ React6.createElement(
|
|
161
164
|
Radio.Group,
|
|
162
165
|
{
|
|
163
166
|
onChange: handleChange,
|
|
164
167
|
optionType,
|
|
165
|
-
className:
|
|
168
|
+
className: `${containerClassName} ${className && className}`,
|
|
166
169
|
value: selectedValue
|
|
167
170
|
},
|
|
168
171
|
props.options && props.options.map((option) => /* @__PURE__ */ React6.createElement(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apexcura/ui-components",
|
|
3
|
-
"version": "0.0.12-
|
|
3
|
+
"version": "0.0.12-Beta48",
|
|
4
4
|
"description": "Apex cura React components library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"apex cura",
|
|
@@ -36,10 +36,13 @@
|
|
|
36
36
|
"@types/react-global-configuration": "^1.3.3",
|
|
37
37
|
"@types/testing-library__react": "^10.2.0",
|
|
38
38
|
"antd": "^5.16.5",
|
|
39
|
+
"autoprefixer": "^10.4.19",
|
|
39
40
|
"jest": "^29.7.0",
|
|
40
41
|
"jest-environment-jsdom": "^29.7.0",
|
|
42
|
+
"postcss": "^8.4.38",
|
|
41
43
|
"react": "^18.3.1",
|
|
42
44
|
"react-dom": "^18.3.1",
|
|
45
|
+
"tailwindcss": "^3.4.3",
|
|
43
46
|
"ts-jest": "^29.1.2",
|
|
44
47
|
"tsup": "^8.0.2",
|
|
45
48
|
"typescript": "^5.4.5"
|