sprint-asia-custom-component 0.1.68 → 0.1.70
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 +7 -7
- package/package.json +1 -1
- package/src/components/chip/index.js +7 -7
package/dist/index.js
CHANGED
|
@@ -351,13 +351,13 @@
|
|
|
351
351
|
}) => {
|
|
352
352
|
return /*#__PURE__*/React__default["default"].createElement("a", {
|
|
353
353
|
className: `
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
354
|
+
${type == "neutral" && "text-neutral300 border-neutral300 bg-neutral30 cursor-pointer"}
|
|
355
|
+
${type == "success" && "text-success600 border-success600 bg-success50"}
|
|
356
|
+
${type == "primary" && "text-primary500 border-primary500 bg-primary50"}
|
|
357
|
+
${type == "dropdown" && "text-primary500 border-primary500 bg-primary50"}
|
|
358
|
+
${type == "warning" && "text-warning800 border-warning800 bg-warning50"}
|
|
359
|
+
${type == "danger" && "text-danger800 border-danger800 bg-danger50"}
|
|
360
|
+
' rounded-full text-xs border-2 flex items-center px-3 justify-center text-center whitespace-nowrap overflow-hidden text-ellipsis block w-full`,
|
|
361
361
|
onClick: onClick
|
|
362
362
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
363
363
|
className: "flex items-center"
|
package/package.json
CHANGED
|
@@ -4,13 +4,13 @@ const Chip = ({ title = "Approve", type = "success", onClick }) => {
|
|
|
4
4
|
return (
|
|
5
5
|
<a
|
|
6
6
|
className={`
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
7
|
+
${type == "neutral" && "text-neutral300 border-neutral300 bg-neutral30 cursor-pointer"}
|
|
8
|
+
${type == "success" && "text-success600 border-success600 bg-success50"}
|
|
9
|
+
${type == "primary" && "text-primary500 border-primary500 bg-primary50"}
|
|
10
|
+
${type == "dropdown" && "text-primary500 border-primary500 bg-primary50"}
|
|
11
|
+
${type == "warning" && "text-warning800 border-warning800 bg-warning50"}
|
|
12
|
+
${type == "danger" && "text-danger800 border-danger800 bg-danger50"}
|
|
13
|
+
' rounded-full text-xs border-2 flex items-center px-3 justify-center text-center whitespace-nowrap overflow-hidden text-ellipsis block w-full`}
|
|
14
14
|
onClick={onClick}
|
|
15
15
|
>
|
|
16
16
|
<div className="flex items-center">
|