@apexcura/ui-components 0.0.14-Beta244 → 0.0.14-Beta246
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.css +12 -0
- package/dist/index.js +19 -10
- package/dist/index.mjs +19 -10
- package/package.json +7 -5
- package/postcss.config.js +7 -6
- package/tailwind.config.js +2 -3
package/dist/index.css
CHANGED
|
@@ -338,6 +338,9 @@ video {
|
|
|
338
338
|
.fixed {
|
|
339
339
|
position: fixed;
|
|
340
340
|
}
|
|
341
|
+
.m-10 {
|
|
342
|
+
margin: 2.5rem;
|
|
343
|
+
}
|
|
341
344
|
.m-\[10px\] {
|
|
342
345
|
margin: 10px;
|
|
343
346
|
}
|
|
@@ -350,6 +353,9 @@ video {
|
|
|
350
353
|
.grid {
|
|
351
354
|
display: grid;
|
|
352
355
|
}
|
|
356
|
+
.flex-col {
|
|
357
|
+
flex-direction: column;
|
|
358
|
+
}
|
|
353
359
|
.rounded-\[8px\] {
|
|
354
360
|
border-radius: 8px;
|
|
355
361
|
}
|
|
@@ -372,12 +378,18 @@ video {
|
|
|
372
378
|
--tw-bg-opacity: 1;
|
|
373
379
|
background-color: rgb(242 242 242 / var(--tw-bg-opacity));
|
|
374
380
|
}
|
|
381
|
+
.p-10 {
|
|
382
|
+
padding: 2.5rem;
|
|
383
|
+
}
|
|
375
384
|
.p-\[6px\] {
|
|
376
385
|
padding: 6px;
|
|
377
386
|
}
|
|
378
387
|
.text-center {
|
|
379
388
|
text-align: center;
|
|
380
389
|
}
|
|
390
|
+
.font-semibold {
|
|
391
|
+
font-weight: 600;
|
|
392
|
+
}
|
|
381
393
|
.italic {
|
|
382
394
|
font-style: italic;
|
|
383
395
|
}
|
package/dist/index.js
CHANGED
|
@@ -189,6 +189,9 @@ var TextareaElement = (props) => {
|
|
|
189
189
|
// src/Components/SelectElement.tsx
|
|
190
190
|
var import_react5 = __toESM(require("react"));
|
|
191
191
|
var import_antd5 = require("antd");
|
|
192
|
+
var filterOptions = (input, option) => {
|
|
193
|
+
return (option?.label ?? "").toLowerCase().includes(input.toLowerCase());
|
|
194
|
+
};
|
|
192
195
|
var SelectElement = (props) => {
|
|
193
196
|
const handleChange = (value) => {
|
|
194
197
|
console.log("++=====", typeof value);
|
|
@@ -205,20 +208,15 @@ var SelectElement = (props) => {
|
|
|
205
208
|
}
|
|
206
209
|
}
|
|
207
210
|
};
|
|
208
|
-
return /* @__PURE__ */ import_react5.default.createElement("div", { className:
|
|
211
|
+
return /* @__PURE__ */ import_react5.default.createElement("div", { className: "flex flex-col p-10 m-10" }, props.label && /* @__PURE__ */ import_react5.default.createElement("label", { htmlFor: props.name, className: "font-semibold text-default-400 text-red" }, props.label), /* @__PURE__ */ import_react5.default.createElement(
|
|
209
212
|
import_antd5.Select,
|
|
210
213
|
{
|
|
211
|
-
mode: props.mode,
|
|
212
214
|
options: props.options,
|
|
213
215
|
placeholder: props.placeholder,
|
|
214
216
|
allowClear: true,
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
id: props.name,
|
|
218
|
-
status: props.status,
|
|
219
|
-
style: props.styles,
|
|
217
|
+
filterOption: filterOptions,
|
|
218
|
+
showSearch: true,
|
|
220
219
|
className: props.className,
|
|
221
|
-
variant: props.variant,
|
|
222
220
|
onChange: handleChange
|
|
223
221
|
}
|
|
224
222
|
));
|
|
@@ -763,6 +761,7 @@ var import_moment = __toESM(require("moment"));
|
|
|
763
761
|
var ModelBody = (props) => {
|
|
764
762
|
return /* @__PURE__ */ import_react19.default.createElement("div", { className: props.modalContent && props.modalContent.className }, props.modalContent && props.modalContent.fields.map(
|
|
765
763
|
(eachField) => {
|
|
764
|
+
console.log(eachField);
|
|
766
765
|
if (eachField.element === "div") {
|
|
767
766
|
return /* @__PURE__ */ import_react19.default.createElement(import_react19.default.Fragment, null, /* @__PURE__ */ import_react19.default.createElement("div", { className: eachField.className }, eachField.label), eachField.dateTime ? /* @__PURE__ */ import_react19.default.createElement(
|
|
768
767
|
"p",
|
|
@@ -1123,13 +1122,21 @@ var DropDownGroup = (props) => {
|
|
|
1123
1122
|
return newValue;
|
|
1124
1123
|
});
|
|
1125
1124
|
};
|
|
1125
|
+
const firstFilterOptions = (input, option) => {
|
|
1126
|
+
return (option?.label ?? "").toLowerCase().includes(input.toLowerCase());
|
|
1127
|
+
};
|
|
1128
|
+
const secondFilterOptions = (input, option) => {
|
|
1129
|
+
return (option?.label ?? "").toLowerCase().includes(input.toLowerCase());
|
|
1130
|
+
};
|
|
1126
1131
|
return /* @__PURE__ */ import_react26.default.createElement("div", { className: props.containerClassName }, props.label && /* @__PURE__ */ import_react26.default.createElement("label", { htmlFor: props.name, className: props.labelClassName }, props.label), /* @__PURE__ */ import_react26.default.createElement("div", { className: props.subContainerClassName }, /* @__PURE__ */ import_react26.default.createElement(
|
|
1127
1132
|
import_antd18.Select,
|
|
1128
1133
|
{
|
|
1129
1134
|
onChange: handleFirstChange,
|
|
1130
1135
|
variant: props.variant,
|
|
1131
1136
|
options: props.firstOptions,
|
|
1132
|
-
className: props.className
|
|
1137
|
+
className: props.className,
|
|
1138
|
+
filterOption: firstFilterOptions,
|
|
1139
|
+
showSearch: true
|
|
1133
1140
|
}
|
|
1134
1141
|
), /* @__PURE__ */ import_react26.default.createElement("div", { style: { borderLeft: "1px solid gray", height: "33px" } }), /* @__PURE__ */ import_react26.default.createElement(
|
|
1135
1142
|
import_antd18.Select,
|
|
@@ -1137,7 +1144,9 @@ var DropDownGroup = (props) => {
|
|
|
1137
1144
|
onChange: handleSecondChange,
|
|
1138
1145
|
variant: props.variant,
|
|
1139
1146
|
options: props.secondOptions,
|
|
1140
|
-
className: props.className
|
|
1147
|
+
className: props.className,
|
|
1148
|
+
filterOption: secondFilterOptions,
|
|
1149
|
+
showSearch: true
|
|
1141
1150
|
}
|
|
1142
1151
|
)));
|
|
1143
1152
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -123,6 +123,9 @@ var TextareaElement = (props) => {
|
|
|
123
123
|
// src/Components/SelectElement.tsx
|
|
124
124
|
import React5 from "react";
|
|
125
125
|
import { Select } from "antd";
|
|
126
|
+
var filterOptions = (input, option) => {
|
|
127
|
+
return (option?.label ?? "").toLowerCase().includes(input.toLowerCase());
|
|
128
|
+
};
|
|
126
129
|
var SelectElement = (props) => {
|
|
127
130
|
const handleChange = (value) => {
|
|
128
131
|
console.log("++=====", typeof value);
|
|
@@ -139,20 +142,15 @@ var SelectElement = (props) => {
|
|
|
139
142
|
}
|
|
140
143
|
}
|
|
141
144
|
};
|
|
142
|
-
return /* @__PURE__ */ React5.createElement("div", { className:
|
|
145
|
+
return /* @__PURE__ */ React5.createElement("div", { className: "flex flex-col p-10 m-10" }, props.label && /* @__PURE__ */ React5.createElement("label", { htmlFor: props.name, className: "font-semibold text-default-400 text-red" }, props.label), /* @__PURE__ */ React5.createElement(
|
|
143
146
|
Select,
|
|
144
147
|
{
|
|
145
|
-
mode: props.mode,
|
|
146
148
|
options: props.options,
|
|
147
149
|
placeholder: props.placeholder,
|
|
148
150
|
allowClear: true,
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
id: props.name,
|
|
152
|
-
status: props.status,
|
|
153
|
-
style: props.styles,
|
|
151
|
+
filterOption: filterOptions,
|
|
152
|
+
showSearch: true,
|
|
154
153
|
className: props.className,
|
|
155
|
-
variant: props.variant,
|
|
156
154
|
onChange: handleChange
|
|
157
155
|
}
|
|
158
156
|
));
|
|
@@ -697,6 +695,7 @@ import moment from "moment";
|
|
|
697
695
|
var ModelBody = (props) => {
|
|
698
696
|
return /* @__PURE__ */ React19.createElement("div", { className: props.modalContent && props.modalContent.className }, props.modalContent && props.modalContent.fields.map(
|
|
699
697
|
(eachField) => {
|
|
698
|
+
console.log(eachField);
|
|
700
699
|
if (eachField.element === "div") {
|
|
701
700
|
return /* @__PURE__ */ React19.createElement(React19.Fragment, null, /* @__PURE__ */ React19.createElement("div", { className: eachField.className }, eachField.label), eachField.dateTime ? /* @__PURE__ */ React19.createElement(
|
|
702
701
|
"p",
|
|
@@ -1057,13 +1056,21 @@ var DropDownGroup = (props) => {
|
|
|
1057
1056
|
return newValue;
|
|
1058
1057
|
});
|
|
1059
1058
|
};
|
|
1059
|
+
const firstFilterOptions = (input, option) => {
|
|
1060
|
+
return (option?.label ?? "").toLowerCase().includes(input.toLowerCase());
|
|
1061
|
+
};
|
|
1062
|
+
const secondFilterOptions = (input, option) => {
|
|
1063
|
+
return (option?.label ?? "").toLowerCase().includes(input.toLowerCase());
|
|
1064
|
+
};
|
|
1060
1065
|
return /* @__PURE__ */ React26.createElement("div", { className: props.containerClassName }, props.label && /* @__PURE__ */ React26.createElement("label", { htmlFor: props.name, className: props.labelClassName }, props.label), /* @__PURE__ */ React26.createElement("div", { className: props.subContainerClassName }, /* @__PURE__ */ React26.createElement(
|
|
1061
1066
|
Select4,
|
|
1062
1067
|
{
|
|
1063
1068
|
onChange: handleFirstChange,
|
|
1064
1069
|
variant: props.variant,
|
|
1065
1070
|
options: props.firstOptions,
|
|
1066
|
-
className: props.className
|
|
1071
|
+
className: props.className,
|
|
1072
|
+
filterOption: firstFilterOptions,
|
|
1073
|
+
showSearch: true
|
|
1067
1074
|
}
|
|
1068
1075
|
), /* @__PURE__ */ React26.createElement("div", { style: { borderLeft: "1px solid gray", height: "33px" } }), /* @__PURE__ */ React26.createElement(
|
|
1069
1076
|
Select4,
|
|
@@ -1071,7 +1078,9 @@ var DropDownGroup = (props) => {
|
|
|
1071
1078
|
onChange: handleSecondChange,
|
|
1072
1079
|
variant: props.variant,
|
|
1073
1080
|
options: props.secondOptions,
|
|
1074
|
-
className: props.className
|
|
1081
|
+
className: props.className,
|
|
1082
|
+
filterOption: secondFilterOptions,
|
|
1083
|
+
showSearch: true
|
|
1075
1084
|
}
|
|
1076
1085
|
)));
|
|
1077
1086
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apexcura/ui-components",
|
|
3
|
-
"version": "0.0.14-
|
|
3
|
+
"version": "0.0.14-Beta246",
|
|
4
4
|
"description": "Apex cura React components library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"apex cura",
|
|
@@ -25,7 +25,9 @@
|
|
|
25
25
|
"types": "./dist/index.d.ts",
|
|
26
26
|
"scripts": {
|
|
27
27
|
"test": "jest",
|
|
28
|
-
"build": "
|
|
28
|
+
"build:css": "postcss src/styles/index.css -o dist/index.css",
|
|
29
|
+
"build:js": "tsup src/index.ts --out-dir dist",
|
|
30
|
+
"build": "npm run build:css && npm run build:js"
|
|
29
31
|
},
|
|
30
32
|
"devDependencies": {
|
|
31
33
|
"@testing-library/jest-dom": "^6.4.2",
|
|
@@ -36,8 +38,10 @@
|
|
|
36
38
|
"@types/react-global-configuration": "^1.3.3",
|
|
37
39
|
"@types/testing-library__react": "^10.2.0",
|
|
38
40
|
"antd": "^5.16.5",
|
|
41
|
+
"autoprefixer": "^10.4.19",
|
|
39
42
|
"jest": "^29.7.0",
|
|
40
43
|
"jest-environment-jsdom": "^29.7.0",
|
|
44
|
+
"postcss-cli": "^11.0.0",
|
|
41
45
|
"react": "^18.3.1",
|
|
42
46
|
"react-dom": "^18.3.1",
|
|
43
47
|
"ts-jest": "^29.1.2",
|
|
@@ -49,7 +53,6 @@
|
|
|
49
53
|
},
|
|
50
54
|
"dependencies": {
|
|
51
55
|
"@tinymce/tinymce-react": "^5.0.1",
|
|
52
|
-
"autoprefixer": "^10.4.19",
|
|
53
56
|
"chart.js": "^4.4.3",
|
|
54
57
|
"date-fns": "^3.6.0",
|
|
55
58
|
"devextreme": "^24.1.3",
|
|
@@ -59,9 +62,8 @@
|
|
|
59
62
|
"highcharts-react-official": "^3.2.1",
|
|
60
63
|
"moment": "^2.30.1",
|
|
61
64
|
"postcss": "^8.4.38",
|
|
62
|
-
"postcss-import": "^16.1.0",
|
|
63
65
|
"react-chartjs-2": "^5.2.0",
|
|
64
66
|
"react-icons": "^5.2.1",
|
|
65
|
-
"tailwindcss": "^3.4.
|
|
67
|
+
"tailwindcss": "^3.4.4"
|
|
66
68
|
}
|
|
67
69
|
}
|
package/postcss.config.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
1
|
+
module.exports = {
|
|
2
|
+
plugins: {
|
|
3
|
+
tailwindcss: {},
|
|
4
|
+
autoprefixer: {},
|
|
5
|
+
},
|
|
6
|
+
}
|
|
7
|
+
|