@useblu/ocean-react 1.59.0 → 1.59.1

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/CHANGELOG.md CHANGED
@@ -3,6 +3,12 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.59.1](https://github.com/ocean-ds/ocean-web/compare/v1.59.0...v1.59.1) (2024-05-29)
7
+
8
+ ### Bug Fixes
9
+
10
+ - adjust on transaction list item ([#1101](https://github.com/ocean-ds/ocean-web/issues/1101)) ([a8fd429](https://github.com/ocean-ds/ocean-web/commit/a8fd42946502676a556e93897d1167139b34ef8e))
11
+
6
12
  # [1.59.0](https://github.com/ocean-ds/ocean-web/compare/v1.58.0...v1.59.0) (2024-05-16)
7
13
 
8
14
  ### Features
@@ -9,6 +9,9 @@ export declare type TransactionListItemProps = {
9
9
  tags?: string | React.ReactElement;
10
10
  icon?: React.ReactElement;
11
11
  subItens?: React.ReactElement;
12
+ withChevron?: boolean;
13
+ readOnly?: boolean;
14
+ isLoading?: boolean;
12
15
  } & React.ComponentPropsWithoutRef<'div'>;
13
16
  declare const TransactionListItem: React.ForwardRefExoticComponent<{
14
17
  level2?: string | React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
@@ -20,6 +23,9 @@ declare const TransactionListItem: React.ForwardRefExoticComponent<{
20
23
  tags?: string | React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
21
24
  icon?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
22
25
  subItens?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
26
+ withChevron?: boolean | undefined;
27
+ readOnly?: boolean | undefined;
28
+ isLoading?: boolean | undefined;
23
29
  } & Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & React.RefAttributes<HTMLDivElement>>;
24
30
  export default TransactionListItem;
25
31
  //# sourceMappingURL=TransactionListItem.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TransactionListItem.d.ts","sourceRoot":"","sources":["../../src/TransactionListItem/TransactionListItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,oBAAY,wBAAwB,GAAG;IAIrC,MAAM,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,YAAY,CAAC;IAIrC,MAAM,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,YAAY,CAAC;IAIrC,MAAM,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,YAAY,CAAC;IAIrC,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,YAAY,CAAC;IAIpC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAInB,IAAI,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,YAAY,CAAC;IAInC,IAAI,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,YAAY,CAAC;IAInC,IAAI,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;IAI1B,QAAQ,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;CAC/B,GAAG,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,CAAC;AAE1C,QAAA,MAAM,mBAAmB;;;;;;;;;;kLA6DxB,CAAC;AAIF,eAAe,mBAAmB,CAAC"}
1
+ {"version":3,"file":"TransactionListItem.d.ts","sourceRoot":"","sources":["../../src/TransactionListItem/TransactionListItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,oBAAY,wBAAwB,GAAG;IAIrC,MAAM,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,YAAY,CAAC;IAIrC,MAAM,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,YAAY,CAAC;IAIrC,MAAM,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,YAAY,CAAC;IAIrC,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,YAAY,CAAC;IAIpC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAInB,IAAI,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,YAAY,CAAC;IAInC,IAAI,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,YAAY,CAAC;IAInC,IAAI,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;IAI1B,QAAQ,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;IAC9B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,GAAG,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,CAAC;AAE1C,QAAA,MAAM,mBAAmB;;;;;;;;;;;;;kLA2ExB,CAAC;AAIF,eAAe,mBAAmB,CAAC"}
package/index.es.js CHANGED
@@ -275,8 +275,8 @@ var SubHeader = e.forwardRef(function (_a, ref) {
275
275
  SubHeader.displayName = 'SubHeader';
276
276
 
277
277
  var TransactionListItem = e.forwardRef(function (_a, ref) {
278
- var children = _a.children, level2 = _a.level2, level3 = _a.level3, level4 = _a.level4, icon = _a.icon, value = _a.value, positive = _a.positive, tags = _a.tags, time = _a.time, subItens = _a.subItens, className = _a.className, rest = __rest$2(_a, ["children", "level2", "level3", "level4", "icon", "value", "positive", "tags", "time", "subItens", "className"]);
279
- return (e.createElement("div", __assign$2({ ref: ref, className: classNames('ods-transaction-list-item', className) }, rest),
278
+ var children = _a.children, level2 = _a.level2, level3 = _a.level3, level4 = _a.level4, icon = _a.icon, value = _a.value, positive = _a.positive, tags = _a.tags, time = _a.time, subItens = _a.subItens, className = _a.className, withChevron = _a.withChevron, readOnly = _a.readOnly, isLoading = _a.isLoading, rest = __rest$2(_a, ["children", "level2", "level3", "level4", "icon", "value", "positive", "tags", "time", "subItens", "className", "withChevron", "readOnly", "isLoading"]);
279
+ return (e.createElement("div", __assign$2({ ref: ref, className: classNames('ods-transaction-list-item', { 'ods-transaction-list-item--chevron': withChevron }, { 'ods-transaction-list-item--readonly': readOnly }, { 'ods-transaction-list-item--isloading': isLoading }, className) }, rest),
280
280
  e.createElement("div", { className: "ods-transaction-list-item__content" },
281
281
  icon && e.createElement("div", { className: "ods-transaction-list-item__icon" }, icon),
282
282
  e.createElement("div", { className: "ods-transaction-list-item__information" },
@@ -289,7 +289,9 @@ var TransactionListItem = e.forwardRef(function (_a, ref) {
289
289
  'ods-transaction-list-item__value--positive': positive
290
290
  }) }, value),
291
291
  tags && (e.createElement("div", { className: "ods-transaction-list-item__tags" }, tags)),
292
- time && (e.createElement("div", { className: "ods-transaction-list-item__time" }, time)))),
292
+ time && (e.createElement("div", { className: "ods-transaction-list-item__time" }, time))),
293
+ withChevron && !readOnly && (e.createElement("span", { className: "ods-transaction-list-item__chevron" },
294
+ e.createElement(ee, { size: 20 })))),
293
295
  subItens && (e.createElement("div", { className: "ods-transaction-list-item__sub-itens" }, subItens))));
294
296
  });
295
297
  TransactionListItem.displayName = 'TransactionListItem';