sprint-asia-custom-component 0.1.173 → 0.1.174

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
@@ -45172,6 +45172,23 @@
45172
45172
  })));
45173
45173
  };
45174
45174
 
45175
+ const CardInfo = ({
45176
+ title = "Title",
45177
+ value = 1000
45178
+ }) => {
45179
+ return /*#__PURE__*/React__default["default"].createElement("div", {
45180
+ className: "w-full flex items-center h-28 bg-white shadow border border-neutral30 rounded-lg"
45181
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
45182
+ className: "w-4 h-full bg-info300 rounded-l-lg"
45183
+ }), /*#__PURE__*/React__default["default"].createElement("div", {
45184
+ className: "ml-4"
45185
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
45186
+ className: "mb-2 font-medium text-sm"
45187
+ }, title), /*#__PURE__*/React__default["default"].createElement("p", {
45188
+ className: "font-semibold text-lg"
45189
+ }, value.toLocaleString("id"))));
45190
+ };
45191
+
45175
45192
  const ChipBar = ({
45176
45193
  currentTab = "Pulsa",
45177
45194
  dataBar = ["All Client", "Waiting for approval", "Approved", "Declined"],
@@ -53047,6 +53064,7 @@
53047
53064
  exports.BillerList = BillerList;
53048
53065
  exports.BillerProductList = BillerProductList;
53049
53066
  exports.BillingList = BillingList;
53067
+ exports.CardInfo = CardInfo;
53050
53068
  exports.CardInternalProduct = CardInternalProduct;
53051
53069
  exports.CellModelFive = CellModelFive;
53052
53070
  exports.CellModelFour = CellModelFour;
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.173",
4
+ "version": "0.1.174",
5
5
  "private": false,
6
6
  "dependencies": {
7
7
  "@headlessui/react": "^1.7.18",
@@ -0,0 +1,18 @@
1
+ import React from 'react'
2
+
3
+ const CardInfo = ({
4
+ title = "Title",
5
+ value = 1000
6
+ }) => {
7
+ return (
8
+ <div className="w-full flex items-center h-28 bg-white shadow border border-neutral30 rounded-lg">
9
+ <div className="w-4 h-full bg-info300 rounded-l-lg"></div>
10
+ <div className="ml-4">
11
+ <p className="mb-2 font-medium text-sm">{title}</p>
12
+ <p className="font-semibold text-lg">{value.toLocaleString("id")}</p>
13
+ </div>
14
+ </div>
15
+ )
16
+ }
17
+
18
+ export default CardInfo
package/src/index.js CHANGED
@@ -58,6 +58,7 @@ import Notification from "./components/notification";
58
58
  import SearchInput from "./components/searchinput";
59
59
  import Stepper from "./components/stepper";
60
60
  import Switch from "./components/switch";
61
+ import CardInfo from "./components/cardInfo";
61
62
  import ChipBar from "./components/tabLayout/chipBar";
62
63
  import TabBar from "./components/tabLayout/tabBar";
63
64
  import BillerList from "./components/table/listTable/biller";
@@ -117,6 +118,7 @@ export {
117
118
  BillerList,
118
119
  TabBar,
119
120
  ChipBar,
121
+ CardInfo,
120
122
  Switch,
121
123
  Stepper,
122
124
  SearchInput,