@loja-integrada/admin-components 0.15.2 → 0.15.3

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.
@@ -18,6 +18,10 @@ export interface TableListItemProps {
18
18
  * Timestamp of the item, usually in dd/mm/yyyy
19
19
  */
20
20
  timestampDate?: string;
21
+ /**
22
+ * Addittional content at item
23
+ */
24
+ append?: string | React.ReactNode;
21
25
  /**
22
26
  * Icon to show at item
23
27
  */
@@ -1 +1,4 @@
1
1
  export * from './TableList';
2
+ export * from './TableListItem';
3
+ export * from './TableListItem.interface';
4
+ export * from './TableListItemLoading';
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const Blog: () => JSX.Element;
@@ -13,6 +13,7 @@ export declare const icons: {
13
13
  ban: () => JSX.Element;
14
14
  barcodeRead: () => JSX.Element;
15
15
  bell: () => JSX.Element;
16
+ blog: () => JSX.Element;
16
17
  bullhorn: () => JSX.Element;
17
18
  calendarAlt: () => JSX.Element;
18
19
  check: () => JSX.Element;
@@ -152,6 +152,14 @@ var Bell = function Bell() {
152
152
  });
153
153
  };
154
154
 
155
+ var Blog = function Blog() {
156
+ return React__default.createElement("path", {
157
+ fillRule: "evenodd",
158
+ d: "M4 13v1h3.57c-.041-.159-.07-.323-.07-.495V13H4Zm10.5 2c0 .827-.673 1.5-1.5 1.5H3c-.827 0-1.5-.673-1.5-1.5V3c0-.827.673-1.5 1.5-1.5h10c.827 0 1.5.673 1.5 1.5v.872c.387-.238.831-.372 1.296-.372.069 0 .137.008.204.014V3c0-1.657-1.343-3-3-3H3C1.343 0 0 1.343 0 3v12c0 1.657 1.343 3 3 3h10c1.657 0 3-1.343 3-3v-3.265l-1.5 1.5V15Zm-6.416-4.819L8.265 10H4v1h3.599c.094-.305.253-.588.485-.819ZM4 5h8V4H4v1Zm7.265 2H4v1h6.265l1-1Zm6.445.904-5.951 5.95c-.093.094-.219.146-.35.146H9.495C9.222 14 9 13.778 9 13.505v-1.914c0-.131.052-.257.145-.35l5.951-5.951c.193-.193.447-.29.7-.29.254 0 .507.097.701.29l1.213 1.213c.387.387.387 1.015 0 1.401Z",
159
+ clipRule: "evenodd"
160
+ });
161
+ };
162
+
155
163
  var Bullhorn = function Bullhorn() {
156
164
  return React__default.createElement("path", {
157
165
  fillRule: "evenodd",
@@ -559,6 +567,7 @@ var icons = {
559
567
  ban: Ban,
560
568
  barcodeRead: BarcodeRead,
561
569
  bell: Bell,
570
+ blog: Blog,
562
571
  bullhorn: Bullhorn,
563
572
  calendarAlt: CalendarAlt,
564
573
  check: Check,
@@ -2076,7 +2085,8 @@ var TableListItem = function TableListItem(_ref) {
2076
2085
  withHover = _ref$withHover === void 0 ? false : _ref$withHover,
2077
2086
  _ref$isInsideContaine = _ref.isInsideContainer,
2078
2087
  isInsideContainer = _ref$isInsideContaine === void 0 ? false : _ref$isInsideContaine,
2079
- withIcon = _ref.withIcon;
2088
+ withIcon = _ref.withIcon,
2089
+ append = _ref.append;
2080
2090
  return React__default.createElement("div", {
2081
2091
  className: "table-item border-primary-bold border-opacity-10 border-t first:border-t-0 " + (forceBorderDesktop ? 'lg:first:border-t' : '')
2082
2092
  }, React__default.createElement(TableListItemWrapper, {
@@ -2098,13 +2108,15 @@ var TableListItem = function TableListItem(_ref) {
2098
2108
  className: "table-item-title text-f6 font-semibold"
2099
2109
  }, title), description && React__default.createElement("div", {
2100
2110
  className: "table-item-description"
2101
- }, description)), timestampTime && React__default.createElement("div", {
2102
- className: "table-item-timestamp flex flex-col justify-center items-end shrink-0 gap-1.5 ml-4 min-w-0 max-w-[50%] text-right"
2103
- }, React__default.createElement("div", {
2111
+ }, description)), (timestampTime || timestampDate || append) && React__default.createElement("div", {
2112
+ className: "table-item-timestamp-append flex flex-col justify-center items-end shrink-0 gap-1.5 ml-4 min-w-0 max-w-[50%] text-right"
2113
+ }, timestampTime && React__default.createElement("div", {
2104
2114
  className: "table-item-timestamp-time w-full"
2105
2115
  }, timestampTime), timestampDate && React__default.createElement("div", {
2106
2116
  className: "table-item-timestamp-date w-full hidden lg:block"
2107
- }, timestampDate))));
2117
+ }, timestampDate), append && React__default.createElement("div", {
2118
+ className: "table-item-append w-full"
2119
+ }, append))));
2108
2120
  };
2109
2121
 
2110
2122
  var TableListItemLoading = function TableListItemLoading(_ref) {
@@ -2208,6 +2220,7 @@ var TableListComponent = function TableListComponent(_ref) {
2208
2220
  itemWrapper: itemWrapper,
2209
2221
  itemWrapperProps: item.itemWrapperProps,
2210
2222
  withIcon: item.withIcon,
2223
+ append: item.append,
2211
2224
  withHover: withHover,
2212
2225
  isInsideContainer: isInsideContainer
2213
2226
  });
@@ -3380,6 +3393,8 @@ exports.SidebarSubItem = SidebarSubItem;
3380
3393
  exports.Status = Status;
3381
3394
  exports.Table = Table;
3382
3395
  exports.TableList = TableList;
3396
+ exports.TableListItem = TableListItem;
3397
+ exports.TableListItemLoading = TableListItemLoading;
3383
3398
  exports.Tabs = Tabs;
3384
3399
  exports.Timeline = Timeline;
3385
3400
  exports.Toast = Toast;