sprint-asia-custom-component 0.1.164 → 0.1.166

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
@@ -29184,9 +29184,7 @@
29184
29184
  className: "text-sm font-normal text-black mb-1"
29185
29185
  }, title), isRequired && /*#__PURE__*/React__default["default"].createElement("p", {
29186
29186
  className: "text-sm font-normal text-danger500 ml-1"
29187
- }, "*")), rightComponent && {
29188
- rightComponent
29189
- }), /*#__PURE__*/React__default["default"].createElement("div", {
29187
+ }, "*")), rightComponent), /*#__PURE__*/React__default["default"].createElement("div", {
29190
29188
  className: "relative rounded-md"
29191
29189
  }, /*#__PURE__*/React__default["default"].createElement("section", {
29192
29190
  className: "absolute inset-y-0 left-0 pl-2 flex items-center justify-center gap-2"
@@ -29206,6 +29204,7 @@
29206
29204
  ${value && mode === "default" && "bg-neutral20 border-black focus:outline-2 outline-primary500"}
29207
29205
  ${isFocused && mode === "default" && "bg-neutral20 border-primary500"}
29208
29206
  ${mode === "disable" && "bg-neutral30 border-neutral50"}
29207
+ ${mode === "white" && "bg-white border-neutral50"}
29209
29208
  ${mode === "danger" && "bg-danger50 border-danger500 focus:outline-2 outline-danger500"}
29210
29209
  ${leftIcon || leftAdornment ? "pl-8" : "pl-3"}
29211
29210
  ${leftIcon && leftAdornment ? "pl-16" : "pl-3"}
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.164",
4
+ "version": "0.1.166",
5
5
  "private": false,
6
6
  "dependencies": {
7
7
  "@headlessui/react": "^1.7.18",
@@ -43,9 +43,7 @@ const TextInput = ({
43
43
  {isRequired && <p className="text-sm font-normal text-danger500 ml-1">*</p>}
44
44
  </div>
45
45
  )}
46
- {
47
- rightComponent && {rightComponent}
48
- }
46
+ {rightComponent}
49
47
  </div>
50
48
 
51
49
  <div className="relative rounded-md">
@@ -75,6 +73,7 @@ const TextInput = ({
75
73
  ${value && mode === "default" && "bg-neutral20 border-black focus:outline-2 outline-primary500"}
76
74
  ${isFocused && mode === "default" && "bg-neutral20 border-primary500"}
77
75
  ${mode === "disable" && "bg-neutral30 border-neutral50"}
76
+ ${mode === "white" && "bg-white border-neutral50"}
78
77
  ${mode === "danger" && "bg-danger50 border-danger500 focus:outline-2 outline-danger500"}
79
78
  ${leftIcon || leftAdornment ? "pl-8" : "pl-3"}
80
79
  ${leftIcon && leftAdornment ? "pl-16" : "pl-3"}