@apexcura/ui-components 0.0.12-Beta46 → 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 +6 -3
- package/dist/index.mjs +6 -3
- 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(
|
|
@@ -487,7 +490,6 @@ var AddMoreTable = (props) => {
|
|
|
487
490
|
})
|
|
488
491
|
};
|
|
489
492
|
eachRow.variable_data.forEach((variable, subIndex) => {
|
|
490
|
-
console.log(variable, subIndex);
|
|
491
493
|
Object.keys(variable).forEach((key) => {
|
|
492
494
|
if (key === "SubRows") {
|
|
493
495
|
rowData[`${key}`] = /* @__PURE__ */ import_react13.default.createElement("div", { key: subIndex }, eachRow.variable_data.length > 1 && /* @__PURE__ */ import_react13.default.createElement(import_antd11.Button, { onClick: () => onHandleSubRowsDelete(rowIndex, subIndex) }, /* @__PURE__ */ import_react13.default.createElement(import_icons2.DeleteOutlined, null)), subIndex === eachRow.variable_data.length - 1 && /* @__PURE__ */ import_react13.default.createElement(import_antd11.Button, { onClick: () => onHandleSubRowsAdd(rowIndex) }, /* @__PURE__ */ import_react13.default.createElement(import_icons2.PlusOutlined, null)));
|
|
@@ -497,6 +499,7 @@ var AddMoreTable = (props) => {
|
|
|
497
499
|
});
|
|
498
500
|
});
|
|
499
501
|
rowData.actions = /* @__PURE__ */ import_react13.default.createElement("div", null, /* @__PURE__ */ import_react13.default.createElement(import_antd11.Button, { onClick: () => onHandleDelete(eachRow.id) }, /* @__PURE__ */ import_react13.default.createElement(import_icons2.DeleteOutlined, null)), rowIndex === rows.length - 1 && /* @__PURE__ */ import_react13.default.createElement(import_antd11.Button, { onClick: onHandleRows }, /* @__PURE__ */ import_react13.default.createElement(import_icons2.PlusOutlined, null)));
|
|
502
|
+
console.log("=====rowdata", rowData);
|
|
500
503
|
return rowData;
|
|
501
504
|
});
|
|
502
505
|
const columns = thead && thead.length > 0 ? thead.map((eachHeadEl) => ({
|
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(
|
|
@@ -440,7 +443,6 @@ var AddMoreTable = (props) => {
|
|
|
440
443
|
})
|
|
441
444
|
};
|
|
442
445
|
eachRow.variable_data.forEach((variable, subIndex) => {
|
|
443
|
-
console.log(variable, subIndex);
|
|
444
446
|
Object.keys(variable).forEach((key) => {
|
|
445
447
|
if (key === "SubRows") {
|
|
446
448
|
rowData[`${key}`] = /* @__PURE__ */ React12.createElement("div", { key: subIndex }, eachRow.variable_data.length > 1 && /* @__PURE__ */ React12.createElement(Button3, { onClick: () => onHandleSubRowsDelete(rowIndex, subIndex) }, /* @__PURE__ */ React12.createElement(DeleteOutlined, null)), subIndex === eachRow.variable_data.length - 1 && /* @__PURE__ */ React12.createElement(Button3, { onClick: () => onHandleSubRowsAdd(rowIndex) }, /* @__PURE__ */ React12.createElement(PlusOutlined, null)));
|
|
@@ -450,6 +452,7 @@ var AddMoreTable = (props) => {
|
|
|
450
452
|
});
|
|
451
453
|
});
|
|
452
454
|
rowData.actions = /* @__PURE__ */ React12.createElement("div", null, /* @__PURE__ */ React12.createElement(Button3, { onClick: () => onHandleDelete(eachRow.id) }, /* @__PURE__ */ React12.createElement(DeleteOutlined, null)), rowIndex === rows.length - 1 && /* @__PURE__ */ React12.createElement(Button3, { onClick: onHandleRows }, /* @__PURE__ */ React12.createElement(PlusOutlined, null)));
|
|
455
|
+
console.log("=====rowdata", rowData);
|
|
453
456
|
return rowData;
|
|
454
457
|
});
|
|
455
458
|
const columns = thead && thead.length > 0 ? thead.map((eachHeadEl) => ({
|
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"
|