sprint-asia-custom-component 0.1.125 → 0.1.127

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
@@ -357,7 +357,7 @@
357
357
  return /*#__PURE__*/React__default["default"].createElement("a", {
358
358
  className: `
359
359
  ${type == "white" && "text-black border-black bg-white"}
360
- ${type == "neutral" && "text-neutral300 border-neutral40 bg-neutral10"}
360
+ ${type == "neutral" && "text-neutral300 border-neutral300 bg-neutral30"}
361
361
  ${type == "gray" && "text-neutral300 border-neutral40 bg-white"}
362
362
  ${type == "success" && "text-success600 border-success600 bg-success50"}
363
363
  ${type == "primary" && "text-primary500 border-primary500 bg-primary50"}
@@ -23866,15 +23866,18 @@
23866
23866
  subtitle,
23867
23867
  linkSubtitle,
23868
23868
  onClickSubtitle,
23869
- image
23869
+ image,
23870
+ icon
23870
23871
  }) => {
23871
23872
  return /*#__PURE__*/React__default["default"].createElement("div", {
23872
23873
  className: "w-full"
23873
23874
  }, title && /*#__PURE__*/React__default["default"].createElement("p", {
23874
23875
  className: "text-sm font-normal text-black mb-1"
23875
23876
  }, title), value && /*#__PURE__*/React__default["default"].createElement("div", {
23876
- className: "py-1 whitespace-pre-line"
23877
- }, /*#__PURE__*/React__default["default"].createElement("p", {
23877
+ className: "py-1 whitespace-pre-line flex items-center"
23878
+ }, icon && /*#__PURE__*/React__default["default"].createElement("div", {
23879
+ className: "mr-2"
23880
+ }, icon), /*#__PURE__*/React__default["default"].createElement("p", {
23878
23881
  className: `
23879
23882
  ${textColor == "default" && "text-black font-semibold text-base"}
23880
23883
  ${textColor == "success" && "text-success500 font-semibold text-base"}
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.125",
4
+ "version": "0.1.127",
5
5
  "private": false,
6
6
  "dependencies": {
7
7
  "@headlessui/react": "^1.7.18",
@@ -5,7 +5,7 @@ const Chip = ({ title = "Approve", type = "success", onClick }) => {
5
5
  <a
6
6
  className={`
7
7
  ${type == "white" && "text-black border-black bg-white"}
8
- ${type == "neutral" && "text-neutral300 border-neutral40 bg-neutral10"}
8
+ ${type == "neutral" && "text-neutral300 border-neutral300 bg-neutral30"}
9
9
  ${type == "gray" && "text-neutral300 border-neutral40 bg-white"}
10
10
  ${type == "success" && "text-success600 border-success600 bg-success50"}
11
11
  ${type == "primary" && "text-primary500 border-primary500 bg-primary50"}
@@ -1,11 +1,24 @@
1
1
  import React from "react";
2
+ import { PiArrowRight, PiCalendarBlank } from "react-icons/pi";
2
3
 
3
- const Description = ({ title, value, textColor = "default", subtitle, linkSubtitle, onClickSubtitle, image }) => {
4
+ const Description = ({
5
+ title,
6
+ value,
7
+ textColor = "default",
8
+ subtitle,
9
+ linkSubtitle,
10
+ onClickSubtitle,
11
+ image,
12
+ icon
13
+ }) => {
4
14
  return (
5
15
  <div className="w-full">
6
16
  {title && <p className="text-sm font-normal text-black mb-1">{title}</p>}
7
17
  {value && (
8
- <div className="py-1 whitespace-pre-line">
18
+ <div className="py-1 whitespace-pre-line flex items-center">
19
+ {
20
+ icon && <div className="mr-2">{icon}</div>
21
+ }
9
22
  <p
10
23
  className={`
11
24
  ${textColor == "default" && "text-black font-semibold text-base"}
@@ -19,7 +19,7 @@ import ExportToExcel from "../components/export/excel";
19
19
  import FilterCheckbox from "../components/filter/filterCheckbox";
20
20
  import FilterText from "../components/filter/filterText";
21
21
  import Menu from "../components/menu";
22
- import { PiCaretDown, PiCaretUp } from "react-icons/pi";
22
+ import { PiCalendarBlank, PiCaretDown, PiCaretUp } from "react-icons/pi";
23
23
  import ModalLoading from "../components/modal/modalLoading";
24
24
  import ModalResult from "../components/modal/modalResult";
25
25
  import ModalState from "../components/modal/modalState";
@@ -1090,6 +1090,12 @@ const Templates = () => {
1090
1090
  value={"This is a sample description.\n HHEHEEH \n LOh"}
1091
1091
  // image="https://static.promediateknologi.id/crop/0x0:0x0/0x0/webp/photo/jawapos/2022/09/one-piece-red.jpeg"
1092
1092
  />
1093
+ <Description
1094
+ title="Sample Title"
1095
+ value={"This is a sample description.\n HHEHEEH \n LOh"}
1096
+ icon={<PiCalendarBlank size={20}/>}
1097
+ // image="https://static.promediateknologi.id/crop/0x0:0x0/0x0/webp/photo/jawapos/2022/09/one-piece-red.jpeg"
1098
+ />
1093
1099
 
1094
1100
  <div className="m-9"></div>
1095
1101
  <p className="text-black font-bold text-2xl text-center py-2">Dropdown</p>