@loja-integrada/admin-components 0.9.4 → 0.9.5

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.
@@ -687,7 +687,7 @@ var LoadingPlaceholderComponent = function LoadingPlaceholderComponent(_ref) {
687
687
  return React__default.createElement("div", {
688
688
  className: "animate-pulse flex " + className
689
689
  }, React__default.createElement("div", {
690
- className: "h-4 bg-inverted-2 bg-opacity-20 rounded w-80 max-w-full"
690
+ className: "h-4 bg-inverted-2 bg-opacity-20 rounded w-full max-w-full"
691
691
  }));
692
692
  };
693
693
 
@@ -1849,10 +1849,12 @@ var TableComponent = function TableComponent(_ref2) {
1849
1849
  }));
1850
1850
  })), React__default.createElement("tbody", Object.assign({}, getTableBodyProps(), {
1851
1851
  className: "text-sm text-on-base"
1852
- }), isLoading ? React__default.createElement("tr", null, React__default.createElement("td", {
1853
- colSpan: columnsLength || 1,
1854
- className: "" + TdClasses
1855
- }, React__default.createElement(TdWrapper, null, React__default.createElement(LoadingPlaceholder, null)))) : !rows || !rows.length ? React__default.createElement("tr", null, React__default.createElement("td", {
1852
+ }), isLoading ? React__default.createElement("tr", null, Array(columnsLength).fill(0).map(function (key) {
1853
+ return React__default.createElement("td", {
1854
+ key: key,
1855
+ className: "" + TdClasses
1856
+ }, React__default.createElement(TdWrapper, null, React__default.createElement(LoadingPlaceholder, null)));
1857
+ })) : !rows || !rows.length ? React__default.createElement("tr", null, React__default.createElement("td", {
1856
1858
  colSpan: columnsLength || 1,
1857
1859
  className: "" + TdClasses
1858
1860
  }, React__default.createElement(TdWrapper, null, React__default.createElement("div", {
@@ -1911,12 +1913,13 @@ var TabsItem = function TabsItem(_ref) {
1911
1913
  active = _ref$active === void 0 ? false : _ref$active,
1912
1914
  onChange = _ref.onChange;
1913
1915
  return React__default.createElement("button", {
1916
+ id: "btnTab" + id,
1914
1917
  className: "tabs-item " + (active ? 'tabs-item-active' : '') + " group min-w-0 flex-shrink-0 overflow-x-hidden px-2 last:-mr-2 first:-ml-2",
1915
1918
  onClick: function onClick() {
1916
1919
  return onChange(id);
1917
1920
  }
1918
1921
  }, React__default.createElement("span", {
1919
- className: "block text-f6 text-sm py-4 border-b-4 break-words group-hover:font-semibold " + activeStyles(active) + " " + boldFixStyle,
1922
+ className: "block text-f6 tracking-4 text-sm py-4 border-b-4 break-words group-hover:font-semibold " + activeStyles(active) + " " + boldFixStyle,
1920
1923
  "data-title": title
1921
1924
  }, title));
1922
1925
  };
@@ -2825,6 +2828,7 @@ var PaginationInfoComponent = function PaginationInfoComponent(_ref) {
2825
2828
  }, React__default.createElement("div", {
2826
2829
  className: "flex items-center mr-5 text-inverted-2 tracking-4 text-f6"
2827
2830
  }, itemsLengthOptions ? React__default.createElement(Select, {
2831
+ id: "selectItemsPerPage",
2828
2832
  options: itemsLengthOptions,
2829
2833
  withoutStyle: true,
2830
2834
  "aria-label": "Itens por p\xE1gina",
@@ -2894,6 +2898,7 @@ var PaginationNavComponent = function PaginationNavComponent(_ref) {
2894
2898
  }, React__default.createElement("div", {
2895
2899
  className: "text-inverted-2 text-f6 tracking-4"
2896
2900
  }, React__default.createElement("span", {
2901
+ id: "btnPaginationActualPage",
2897
2902
  className: "pagination-nav-current text-primary font-semibold",
2898
2903
  ref: inputEl,
2899
2904
  contentEditable: true,
@@ -2903,6 +2908,7 @@ var PaginationNavComponent = function PaginationNavComponent(_ref) {
2903
2908
  onCut: onPreventDefault,
2904
2909
  onPaste: onPreventDefault
2905
2910
  }, currentPage), ' ', "/", ' ', React__default.createElement("button", {
2911
+ id: "btnPaginationLastPage",
2906
2912
  className: "pagination-nav-total focus:outline-none",
2907
2913
  onClick: function onClick() {
2908
2914
  if (currentPage !== maxTotalPages) handleChange(maxTotalPages);
@@ -2910,7 +2916,8 @@ var PaginationNavComponent = function PaginationNavComponent(_ref) {
2910
2916
  }, maxTotalPages)), React__default.createElement("div", {
2911
2917
  className: "text-inverted-2 ml-5 flex items-center"
2912
2918
  }, React__default.createElement("button", {
2913
- className: "pagination-nav-previous mr-3 duration-200 focus:outline-none " + (hasPrev ? 'hover:text-inverted-1' : ''),
2919
+ id: "btnPaginationPrev",
2920
+ className: "pagination-nav-previous mr-3 duration-200 outline-none " + (hasPrev ? 'hover:text-inverted-1' : ''),
2914
2921
  "aria-label": "Ir para p\xE1gina anterior",
2915
2922
  onClick: function onClick() {
2916
2923
  if (hasPrev) handleChange(currentPage - 1);
@@ -2920,7 +2927,8 @@ var PaginationNavComponent = function PaginationNavComponent(_ref) {
2920
2927
  block: true,
2921
2928
  size: 4
2922
2929
  })), React__default.createElement("button", {
2923
- className: "pagination-nav-next duration-200 focus:outline-none " + (hasNext ? 'hover:text-inverted-1' : ''),
2930
+ id: "btnPaginationNext",
2931
+ className: "pagination-nav-next duration-200 outline-none " + (hasNext ? 'hover:text-inverted-1' : ''),
2924
2932
  "aria-label": "Ir para pr\xF3xima p\xE1gina",
2925
2933
  onClick: function onClick() {
2926
2934
  if (hasNext) handleChange(currentPage + 1);