@apexcura/ui-components 0.0.14-Beta245 → 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 +14 -3
- package/dist/index.mjs +14 -3
- package/package.json +1 -1
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
|
@@ -208,7 +208,7 @@ var SelectElement = (props) => {
|
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
210
|
};
|
|
211
|
-
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(
|
|
212
212
|
import_antd5.Select,
|
|
213
213
|
{
|
|
214
214
|
options: props.options,
|
|
@@ -761,6 +761,7 @@ var import_moment = __toESM(require("moment"));
|
|
|
761
761
|
var ModelBody = (props) => {
|
|
762
762
|
return /* @__PURE__ */ import_react19.default.createElement("div", { className: props.modalContent && props.modalContent.className }, props.modalContent && props.modalContent.fields.map(
|
|
763
763
|
(eachField) => {
|
|
764
|
+
console.log(eachField);
|
|
764
765
|
if (eachField.element === "div") {
|
|
765
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(
|
|
766
767
|
"p",
|
|
@@ -1121,13 +1122,21 @@ var DropDownGroup = (props) => {
|
|
|
1121
1122
|
return newValue;
|
|
1122
1123
|
});
|
|
1123
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
|
+
};
|
|
1124
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(
|
|
1125
1132
|
import_antd18.Select,
|
|
1126
1133
|
{
|
|
1127
1134
|
onChange: handleFirstChange,
|
|
1128
1135
|
variant: props.variant,
|
|
1129
1136
|
options: props.firstOptions,
|
|
1130
|
-
className: props.className
|
|
1137
|
+
className: props.className,
|
|
1138
|
+
filterOption: firstFilterOptions,
|
|
1139
|
+
showSearch: true
|
|
1131
1140
|
}
|
|
1132
1141
|
), /* @__PURE__ */ import_react26.default.createElement("div", { style: { borderLeft: "1px solid gray", height: "33px" } }), /* @__PURE__ */ import_react26.default.createElement(
|
|
1133
1142
|
import_antd18.Select,
|
|
@@ -1135,7 +1144,9 @@ var DropDownGroup = (props) => {
|
|
|
1135
1144
|
onChange: handleSecondChange,
|
|
1136
1145
|
variant: props.variant,
|
|
1137
1146
|
options: props.secondOptions,
|
|
1138
|
-
className: props.className
|
|
1147
|
+
className: props.className,
|
|
1148
|
+
filterOption: secondFilterOptions,
|
|
1149
|
+
showSearch: true
|
|
1139
1150
|
}
|
|
1140
1151
|
)));
|
|
1141
1152
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -142,7 +142,7 @@ var SelectElement = (props) => {
|
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
144
|
};
|
|
145
|
-
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(
|
|
146
146
|
Select,
|
|
147
147
|
{
|
|
148
148
|
options: props.options,
|
|
@@ -695,6 +695,7 @@ import moment from "moment";
|
|
|
695
695
|
var ModelBody = (props) => {
|
|
696
696
|
return /* @__PURE__ */ React19.createElement("div", { className: props.modalContent && props.modalContent.className }, props.modalContent && props.modalContent.fields.map(
|
|
697
697
|
(eachField) => {
|
|
698
|
+
console.log(eachField);
|
|
698
699
|
if (eachField.element === "div") {
|
|
699
700
|
return /* @__PURE__ */ React19.createElement(React19.Fragment, null, /* @__PURE__ */ React19.createElement("div", { className: eachField.className }, eachField.label), eachField.dateTime ? /* @__PURE__ */ React19.createElement(
|
|
700
701
|
"p",
|
|
@@ -1055,13 +1056,21 @@ var DropDownGroup = (props) => {
|
|
|
1055
1056
|
return newValue;
|
|
1056
1057
|
});
|
|
1057
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
|
+
};
|
|
1058
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(
|
|
1059
1066
|
Select4,
|
|
1060
1067
|
{
|
|
1061
1068
|
onChange: handleFirstChange,
|
|
1062
1069
|
variant: props.variant,
|
|
1063
1070
|
options: props.firstOptions,
|
|
1064
|
-
className: props.className
|
|
1071
|
+
className: props.className,
|
|
1072
|
+
filterOption: firstFilterOptions,
|
|
1073
|
+
showSearch: true
|
|
1065
1074
|
}
|
|
1066
1075
|
), /* @__PURE__ */ React26.createElement("div", { style: { borderLeft: "1px solid gray", height: "33px" } }), /* @__PURE__ */ React26.createElement(
|
|
1067
1076
|
Select4,
|
|
@@ -1069,7 +1078,9 @@ var DropDownGroup = (props) => {
|
|
|
1069
1078
|
onChange: handleSecondChange,
|
|
1070
1079
|
variant: props.variant,
|
|
1071
1080
|
options: props.secondOptions,
|
|
1072
|
-
className: props.className
|
|
1081
|
+
className: props.className,
|
|
1082
|
+
filterOption: secondFilterOptions,
|
|
1083
|
+
showSearch: true
|
|
1073
1084
|
}
|
|
1074
1085
|
)));
|
|
1075
1086
|
};
|