sprint-asia-custom-component 0.1.161 → 0.1.163

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 CHANGED
@@ -29174,7 +29174,7 @@
29174
29174
  return /*#__PURE__*/React__default["default"].createElement("div", {
29175
29175
  className: `w-full ${className}`
29176
29176
  }, /*#__PURE__*/React__default["default"].createElement("div", {
29177
- className: "flex justify-between w-full items-center"
29177
+ className: "flex w-full items-center"
29178
29178
  }, title && /*#__PURE__*/React__default["default"].createElement("div", {
29179
29179
  className: "flex"
29180
29180
  }, /*#__PURE__*/React__default["default"].createElement("p", {
@@ -29227,7 +29227,7 @@
29227
29227
  }, rightAdornment && rightAdornment, rightIcon && /*#__PURE__*/React__default["default"].createElement(PiInfo, {
29228
29228
  size: 16,
29229
29229
  className: `
29230
- ${mode === "primary" && "text-black"}
29230
+ ${mode === "primary" && "text-neutral50"}
29231
29231
  ${mode === "disable" && "text-neutral50"}
29232
29232
  ${mode === "danger" && "text-danger500"}
29233
29233
  `
@@ -47918,7 +47918,7 @@
47918
47918
  "aria-orientation": "vertical",
47919
47919
  "aria-labelledby": "options-menu"
47920
47920
  }, /*#__PURE__*/React__default["default"].createElement("div", {
47921
- className: "px-1 py-2 max-h-56 overflow-y-auto"
47921
+ className: "px-1 py-2 max-h-48 overflow-y-auto"
47922
47922
  }, options?.length > 0 ? options.map((option, index) => /*#__PURE__*/React__default["default"].createElement("div", {
47923
47923
  key: index,
47924
47924
  className: "hover:bg-neutral20 bg-white py-2.5 px-4 my-0.5 rounded-md cursor-pointer",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "sprint-asia-custom-component",
3
3
  "main": "dist/index.js",
4
- "version": "0.1.161",
4
+ "version": "0.1.163",
5
5
  "private": false,
6
6
  "dependencies": {
7
7
  "@headlessui/react": "^1.7.18",
@@ -41,7 +41,7 @@ const SearchDropdown = ({
41
41
  } relative cursor-pointer border-t border-b border-l rounded-tl-md rounded-bl-md`}
42
42
  onClick={() => setIsOpen(!isOpen)}
43
43
  >
44
- <div className="flex items-center bg-white rounded-tl-md rounded-bl-md" style={{minWidth:"144px"}}>
44
+ <div className="flex items-center bg-white rounded-tl-md rounded-bl-md" style={{ minWidth: "144px" }}>
45
45
  <p className="flex items-center w-full py-2.5 text-left pl-4 pr-4 bg-white rounded-md font-bold text-sm text-neutral300">
46
46
  {filterDropdown.option}
47
47
  </p>
@@ -55,7 +55,7 @@ const SearchDropdown = ({
55
55
  aria-orientation="vertical"
56
56
  aria-labelledby="options-menu"
57
57
  >
58
- <div className="px-1 py-2 max-h-56 overflow-y-auto">
58
+ <div className="px-1 py-2 max-h-48 overflow-y-auto">
59
59
  {options?.length > 0 ? (
60
60
  options.map((option, index) => (
61
61
  <div
@@ -36,7 +36,7 @@ const TextInput = ({
36
36
 
37
37
  return (
38
38
  <div className={`w-full ${className}`}>
39
- <div className="flex justify-between w-full items-center">
39
+ <div className="flex w-full items-center">
40
40
  {title && (
41
41
  <div className="flex">
42
42
  <p className="text-sm font-normal text-black mb-1">{title}</p>
@@ -44,7 +44,7 @@ const TextInput = ({
44
44
  </div>
45
45
  )}
46
46
  {
47
- rightComponent && <div>{rightComponent}</div>
47
+ rightComponent && {rightComponent}
48
48
  }
49
49
  </div>
50
50
 
@@ -68,11 +68,10 @@ const TextInput = ({
68
68
  max={maximum !== null && maximum !== undefined && type === "number" ? maximum : undefined}
69
69
  type={type === "password" ? (showPassword ? "text" : "password") : type}
70
70
  className={`py-2.5 px-4 w-full font-normal text-sm text-neutral300 rounded-md border
71
- ${
72
- !value &&
73
- mode === "default" &&
74
- "bg-neutral20 border-neutral50 focus:outline-2 outline-primary500"
75
- }
71
+ ${!value &&
72
+ mode === "default" &&
73
+ "bg-neutral20 border-neutral50 focus:outline-2 outline-primary500"
74
+ }
76
75
  ${value && mode === "default" && "bg-neutral20 border-black focus:outline-2 outline-primary500"}
77
76
  ${isFocused && mode === "default" && "bg-neutral20 border-primary500"}
78
77
  ${mode === "disable" && "bg-neutral30 border-neutral50"}
@@ -109,7 +108,7 @@ const TextInput = ({
109
108
  <PiInfo
110
109
  size={16}
111
110
  className={`
112
- ${mode === "primary" && "text-black"}
111
+ ${mode === "primary" && "text-neutral50"}
113
112
  ${mode === "disable" && "text-neutral50"}
114
113
  ${mode === "danger" && "text-danger500"}
115
114
  `}