@ctlyst.id/internal-ui 4.1.4 → 4.1.6
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +7 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -10
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
package/dist/index.mjs
CHANGED
@@ -726,6 +726,7 @@ var InputField = React2.forwardRef((props, ref) => {
|
|
726
726
|
ref,
|
727
727
|
type: inputType,
|
728
728
|
value,
|
729
|
+
"data-test-id": `CT_Component_InputField${props.name ? `_${props.name}` : ""}`,
|
729
730
|
isDisabled,
|
730
731
|
isSuccess,
|
731
732
|
...inputProps,
|
@@ -2654,11 +2655,6 @@ var Styles = ({ showHeader }) => {
|
|
2654
2655
|
width: 1px;
|
2655
2656
|
white-space: nowrap;
|
2656
2657
|
}
|
2657
|
-
.react-datepicker__day.react-datepicker__day--in-range.react-datepicker__day--today{
|
2658
|
-
border-radius:0px;
|
2659
|
-
border-color:transparent;
|
2660
|
-
background-color:var(--chakra-colors-primary-50);
|
2661
|
-
}
|
2662
2658
|
.react-datepicker__month-select,.react-datepicker__year-select {
|
2663
2659
|
background-color:transparent;
|
2664
2660
|
font-size:14px;
|
@@ -2752,6 +2748,9 @@ var Datepicker = ({
|
|
2752
2748
|
{
|
2753
2749
|
id: id2,
|
2754
2750
|
name,
|
2751
|
+
onChangeRaw: (e) => {
|
2752
|
+
if (props.selectsRange) e == null ? void 0 : e.preventDefault();
|
2753
|
+
},
|
2755
2754
|
selected,
|
2756
2755
|
popperModifiers: [
|
2757
2756
|
offset(4),
|
@@ -2772,9 +2771,7 @@ var Datepicker = ({
|
|
2772
2771
|
{
|
2773
2772
|
autoComplete: "off",
|
2774
2773
|
isError,
|
2775
|
-
|
2776
|
-
if (props.selectsRange) e.preventDefault();
|
2777
|
-
},
|
2774
|
+
sx: props.selectsRange ? { caretColor: "transparent" } : {},
|
2778
2775
|
addOnRight: /* @__PURE__ */ jsxs10(InputRightElement, { alignSelf: "center", bottom: 0, flexDir: "row-reverse", width: "auto", mr: 2, gap: 2, children: [
|
2779
2776
|
/* @__PURE__ */ jsx27(Calendar, { size: 4, color: "neutral.400" }),
|
2780
2777
|
value && !props.disabled && /* @__PURE__ */ jsx27(
|
@@ -5474,9 +5471,9 @@ var TimeInput2 = forwardRef12(
|
|
5474
5471
|
gap: 3,
|
5475
5472
|
children: [
|
5476
5473
|
/* @__PURE__ */ jsxs29(Flex17, { gap: "1px", width: "100%", alignItems: "center", pl: 2, children: [
|
5477
|
-
/* @__PURE__ */ jsx63(InputTimeArea, { ...hoursProps }),
|
5474
|
+
/* @__PURE__ */ jsx63(InputTimeArea, { "data-test-id": "start-time", ...hoursProps }),
|
5478
5475
|
/* @__PURE__ */ jsx63("span", { children: ":" }),
|
5479
|
-
/* @__PURE__ */ jsx63(InputTimeArea, { ...getInputProps("minutes") }),
|
5476
|
+
/* @__PURE__ */ jsx63(InputTimeArea, { "data-test-id": "end-time", ...getInputProps("minutes") }),
|
5480
5477
|
seconds && /* @__PURE__ */ jsxs29(Fragment10, { children: [
|
5481
5478
|
/* @__PURE__ */ jsx63("span", { children: ":" }),
|
5482
5479
|
/* @__PURE__ */ jsx63(InputTimeArea, { ...getInputProps("seconds") })
|