@ctlyst.id/internal-ui 4.1.12 → 4.1.14

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.d.mts CHANGED
@@ -731,6 +731,7 @@ declare class Time {
731
731
  }
732
732
  declare const timeFromString: (timeString: string) => Time;
733
733
  interface TimeInputProps {
734
+ name?: string;
734
735
  config?: TimeOptions;
735
736
  value?: Time;
736
737
  seconds?: boolean;
package/dist/index.d.ts CHANGED
@@ -731,6 +731,7 @@ declare class Time {
731
731
  }
732
732
  declare const timeFromString: (timeString: string) => Time;
733
733
  interface TimeInputProps {
734
+ name?: string;
734
735
  config?: TimeOptions;
735
736
  value?: Time;
736
737
  seconds?: boolean;
package/dist/index.js CHANGED
@@ -3122,6 +3122,7 @@ var Datepicker = ({
3122
3122
  {
3123
3123
  autoComplete: "off",
3124
3124
  isError,
3125
+ name,
3125
3126
  sx: props.selectsRange ? { caretColor: "transparent" } : {},
3126
3127
  addOnRight: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_react20.InputRightElement, { alignSelf: "center", bottom: 0, flexDir: "row-reverse", width: "auto", mr: 2, gap: 2, children: [
3127
3128
  /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_internal_icon6.Calendar, { size: 4, color: "neutral.400" }),
@@ -5541,6 +5542,7 @@ var InputTimeArea = (0, import_react85.forwardRef)((props, ref) => {
5541
5542
  });
5542
5543
  var TimeInput2 = (0, import_react85.forwardRef)(
5543
5544
  ({
5545
+ name,
5544
5546
  config: config2,
5545
5547
  label,
5546
5548
  isError,
@@ -5623,6 +5625,7 @@ var TimeInput2 = (0, import_react85.forwardRef)(
5623
5625
  cursor: isDisabled ? "not-allowed" : "default",
5624
5626
  alignItems: "center",
5625
5627
  gap: 3,
5628
+ "data-test-id": `CT_Component_TimeInput${name ? `_${name}` : ""}`,
5626
5629
  children: [
5627
5630
  /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_react85.Flex, { gap: "1px", width: "100%", alignItems: "center", pl: 2, children: [
5628
5631
  /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(InputTimeArea, { "data-test-id": "start-time", ...hoursProps }),