@ctlyst.id/internal-ui 3.3.7 → 3.3.9
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 +33 -26
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +36 -36
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
@@ -1218,14 +1218,7 @@ var DataTable = React5.forwardRef((props, ref) => {
|
|
1218
1218
|
var data_table_default = DataTable;
|
1219
1219
|
|
1220
1220
|
// src/components/datepicker/components/datepicker.tsx
|
1221
|
-
import {
|
1222
|
-
FormControl as FormControl3,
|
1223
|
-
FormErrorMessage as FormErrorMessage3,
|
1224
|
-
FormHelperText as FormHelperText3,
|
1225
|
-
IconButton as IconButton4,
|
1226
|
-
InputGroup as InputGroup4,
|
1227
|
-
InputRightElement as InputRightElement3
|
1228
|
-
} from "@chakra-ui/react";
|
1221
|
+
import { FormControl as FormControl3, FormErrorMessage as FormErrorMessage3, FormHelperText as FormHelperText3, IconButton as IconButton4 } from "@chakra-ui/react";
|
1229
1222
|
import { cx as cx8 } from "@chakra-ui/shared-utils";
|
1230
1223
|
import { Calendar, Close as Close3 } from "@ctlyst.id/internal-icon";
|
1231
1224
|
import ReactDatePicker from "react-datepicker";
|
@@ -2162,7 +2155,33 @@ var Datepicker = ({
|
|
2162
2155
|
id,
|
2163
2156
|
name,
|
2164
2157
|
selected,
|
2165
|
-
customInput: /* @__PURE__ */ jsx27(
|
2158
|
+
customInput: /* @__PURE__ */ jsx27(
|
2159
|
+
input_field_default,
|
2160
|
+
{
|
2161
|
+
label,
|
2162
|
+
isRequired,
|
2163
|
+
autoComplete: "off",
|
2164
|
+
isError,
|
2165
|
+
addOnRight: /* @__PURE__ */ jsxs10(InputRightElement, { alignSelf: "center", bottom: 0, flexDir: "row-reverse", width: "auto", mr: 2, gap: 2, children: [
|
2166
|
+
/* @__PURE__ */ jsx27(Calendar, { size: 4, color: "neutral.400" }),
|
2167
|
+
value && /* @__PURE__ */ jsx27(
|
2168
|
+
IconButton4,
|
2169
|
+
{
|
2170
|
+
"data-test-id": "H0rseVCzGIaqoLho-EPbu",
|
2171
|
+
display: "flex",
|
2172
|
+
alignItems: "center",
|
2173
|
+
variant: "unstyled",
|
2174
|
+
"aria-label": "Remove",
|
2175
|
+
onClick: onClear,
|
2176
|
+
cursor: "pointer",
|
2177
|
+
size: "sm",
|
2178
|
+
minW: "unset",
|
2179
|
+
icon: /* @__PURE__ */ jsx27(Close3, { size: 4, color: "neutral.600" })
|
2180
|
+
}
|
2181
|
+
)
|
2182
|
+
] })
|
2183
|
+
}
|
2184
|
+
),
|
2166
2185
|
showPopperArrow: false,
|
2167
2186
|
calendarClassName: cx8({ inline: props.inline }),
|
2168
2187
|
dropdownMode: "select",
|
@@ -2180,27 +2199,7 @@ var Datepicker = ({
|
|
2180
2199
|
return component;
|
2181
2200
|
}
|
2182
2201
|
return /* @__PURE__ */ jsxs10(FormControl3, { "data-test-id": "CT_Component_datepicker_wrapper", isInvalid: isError, children: [
|
2183
|
-
|
2184
|
-
component,
|
2185
|
-
/* @__PURE__ */ jsxs10(InputRightElement3, { alignSelf: "center", bottom: 0, flexDir: "row-reverse", width: "auto", mr: 2, gap: 2, children: [
|
2186
|
-
/* @__PURE__ */ jsx27(Calendar, { size: 4, color: "neutral.400" }),
|
2187
|
-
value && /* @__PURE__ */ jsx27(
|
2188
|
-
IconButton4,
|
2189
|
-
{
|
2190
|
-
"data-test-id": "H0rseVCzGIaqoLho-EPbu",
|
2191
|
-
display: "flex",
|
2192
|
-
alignItems: "center",
|
2193
|
-
variant: "unstyled",
|
2194
|
-
"aria-label": "Remove",
|
2195
|
-
onClick: onClear,
|
2196
|
-
cursor: "pointer",
|
2197
|
-
size: "sm",
|
2198
|
-
minW: "unset",
|
2199
|
-
icon: /* @__PURE__ */ jsx27(Close3, { size: 4, color: "neutral.600" })
|
2200
|
-
}
|
2201
|
-
)
|
2202
|
-
] })
|
2203
|
-
] }),
|
2202
|
+
component,
|
2204
2203
|
!isError ? /* @__PURE__ */ jsx27(FormHelperText3, { fontSize: "text.xs", mt: 1, children: helperText }) : /* @__PURE__ */ jsx27(FormErrorMessage3, { fontSize: "text.xs", mt: 1, children: error })
|
2205
2204
|
] });
|
2206
2205
|
};
|
@@ -4642,7 +4641,7 @@ import {
|
|
4642
4641
|
import { Code, CodeProps, Heading, HeadingProps, Link as Link5, LinkProps, Text as Text17, TextProps } from "@chakra-ui/react";
|
4643
4642
|
|
4644
4643
|
// src/components/time-input/components/index.tsx
|
4645
|
-
import { Box as Box29, Flex as Flex17, forwardRef as forwardRef12, Input as Input3, InputGroup as
|
4644
|
+
import { Box as Box29, Flex as Flex17, forwardRef as forwardRef12, Input as Input3, InputGroup as InputGroup4 } from "@chakra-ui/react";
|
4646
4645
|
import { Clock } from "@ctlyst.id/internal-icon";
|
4647
4646
|
import { useEffect as useEffect3, useImperativeHandle as useImperativeHandle2 } from "react";
|
4648
4647
|
|
@@ -4745,9 +4744,10 @@ var InputTimeArea = forwardRef12((props, ref) => {
|
|
4745
4744
|
bg: "neutral.300"
|
4746
4745
|
},
|
4747
4746
|
boxSizing: "content-box",
|
4748
|
-
height: "
|
4747
|
+
height: "22px",
|
4749
4748
|
ref,
|
4750
|
-
|
4749
|
+
px: "2px",
|
4750
|
+
py: 0,
|
4751
4751
|
sx: {
|
4752
4752
|
fontVariantNumeric: "tabular-nums"
|
4753
4753
|
},
|
@@ -4830,7 +4830,7 @@ var TimeInput2 = forwardRef12(
|
|
4830
4830
|
borderColor: focusColor
|
4831
4831
|
},
|
4832
4832
|
children: /* @__PURE__ */ jsxs29(
|
4833
|
-
|
4833
|
+
InputGroup4,
|
4834
4834
|
{
|
4835
4835
|
borderRadius: "sm",
|
4836
4836
|
backgroundColor: isDisabled ? "neutral.300" : "white.high",
|
@@ -4838,7 +4838,7 @@ var TimeInput2 = forwardRef12(
|
|
4838
4838
|
alignItems: "center",
|
4839
4839
|
gap: 3,
|
4840
4840
|
children: [
|
4841
|
-
/* @__PURE__ */ jsxs29(Flex17, { gap:
|
4841
|
+
/* @__PURE__ */ jsxs29(Flex17, { gap: "1px", width: "100%", alignItems: "center", pl: 2, children: [
|
4842
4842
|
/* @__PURE__ */ jsx63(InputTimeArea, { ...hoursProps }),
|
4843
4843
|
/* @__PURE__ */ jsx63("span", { children: ":" }),
|
4844
4844
|
/* @__PURE__ */ jsx63(InputTimeArea, { ...getInputProps("minutes") }),
|
@@ -4848,7 +4848,7 @@ var TimeInput2 = forwardRef12(
|
|
4848
4848
|
] }),
|
4849
4849
|
options.hour12 && /* @__PURE__ */ jsx63(Input3, { p: 0, ...getInputProps("am/pm") })
|
4850
4850
|
] }),
|
4851
|
-
/* @__PURE__ */ jsx63(Clock, { color: "neutral.400" }),
|
4851
|
+
/* @__PURE__ */ jsx63(Clock, { color: "neutral.400", size: 4 }),
|
4852
4852
|
addOnRight
|
4853
4853
|
]
|
4854
4854
|
}
|