@k3-tech/react-kit 0.0.70 → 0.0.72

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
@@ -39686,15 +39686,15 @@ function DataTablePagination({
39686
39686
  pageIndex: 0,
39687
39687
  pageSize: 10
39688
39688
  };
39689
- return /* @__PURE__ */ jsxs("div", { className: cn$1("flex items-center justify-between px-2", wrapperClassName), children: [
39690
- showSelectedRowInfo && /* @__PURE__ */ jsxs("div", { className: "text-muted-foreground flex-1 text-sm", children: [
39689
+ return /* @__PURE__ */ jsxs("div", { className: cn$1("flex flex-wrap items-center justify-between gap-x-6 gap-y-2 px-2", wrapperClassName), children: [
39690
+ showSelectedRowInfo && /* @__PURE__ */ jsxs("div", { className: "text-muted-foreground text-sm", children: [
39691
39691
  table.getFilteredSelectedRowModel().rows.length,
39692
39692
  " of",
39693
39693
  " ",
39694
39694
  table.getFilteredRowModel().rows.length,
39695
39695
  " row(s) selected."
39696
39696
  ] }),
39697
- /* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-6 lg:space-x-8", children: [
39697
+ /* @__PURE__ */ jsxs("div", { className: "ml-auto flex flex-wrap items-center gap-x-6 gap-y-2 lg:gap-x-8", children: [
39698
39698
  showRowsPerPageSelection && /* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
39699
39699
  /* @__PURE__ */ jsx("p", { className: "text-sm font-medium", children: "Rows per page" }),
39700
39700
  /* @__PURE__ */ jsxs(
@@ -47551,7 +47551,7 @@ function Page({
47551
47551
  "header",
47552
47552
  {
47553
47553
  className: cn$1(
47554
- "flex items-start justify-between gap-3 py-6",
47554
+ "flex flex-wrap items-start justify-between gap-3 py-6",
47555
47555
  headerClassName
47556
47556
  ),
47557
47557
  children: [
@@ -47564,7 +47564,7 @@ function Page({
47564
47564
  subtitle
47565
47565
  }
47566
47566
  ),
47567
- actions && actions.length > 0 ? /* @__PURE__ */ jsx("div", { className: "flex shrink-0 flex-wrap items-center justify-end gap-2", children: actions.map(renderAction) }) : null
47567
+ actions && actions.length > 0 ? /* @__PURE__ */ jsx("div", { className: "ml-auto flex flex-wrap items-center justify-end gap-2", children: actions.map(renderAction) }) : null
47568
47568
  ]
47569
47569
  }
47570
47570
  ),
@@ -1905,6 +1905,10 @@
1905
1905
  column-gap: calc(var(--spacing) * 2);
1906
1906
  }
1907
1907
 
1908
+ .gap-x-6 {
1909
+ column-gap: calc(var(--spacing) * 6);
1910
+ }
1911
+
1908
1912
  :where(.space-x-1 > :not(:last-child)) {
1909
1913
  --tw-space-x-reverse: 0;
1910
1914
  margin-inline-start: calc(calc(var(--spacing) * 1) * var(--tw-space-x-reverse));
@@ -1923,16 +1927,14 @@
1923
1927
  margin-inline-end: calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-x-reverse)));
1924
1928
  }
1925
1929
 
1926
- :where(.space-x-6 > :not(:last-child)) {
1927
- --tw-space-x-reverse: 0;
1928
- margin-inline-start: calc(calc(var(--spacing) * 6) * var(--tw-space-x-reverse));
1929
- margin-inline-end: calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-x-reverse)));
1930
- }
1931
-
1932
1930
  .gap-y-0\.5 {
1933
1931
  row-gap: calc(var(--spacing) * .5);
1934
1932
  }
1935
1933
 
1934
+ .gap-y-2 {
1935
+ row-gap: calc(var(--spacing) * 2);
1936
+ }
1937
+
1936
1938
  .self-center {
1937
1939
  align-self: center;
1938
1940
  }
@@ -5381,10 +5383,8 @@
5381
5383
  grid-template-columns: repeat(12, minmax(0, 1fr));
5382
5384
  }
5383
5385
 
5384
- :where(.lg\:space-x-8 > :not(:last-child)) {
5385
- --tw-space-x-reverse: 0;
5386
- margin-inline-start: calc(calc(var(--spacing) * 8) * var(--tw-space-x-reverse));
5387
- margin-inline-end: calc(calc(var(--spacing) * 8) * calc(1 - var(--tw-space-x-reverse)));
5386
+ .lg\:gap-x-8 {
5387
+ column-gap: calc(var(--spacing) * 8);
5388
5388
  }
5389
5389
 
5390
5390
  .lg\:p-12 {
@@ -1909,6 +1909,10 @@
1909
1909
  column-gap: calc(var(--spacing) * 2);
1910
1910
  }
1911
1911
 
1912
+ .gap-x-6 {
1913
+ column-gap: calc(var(--spacing) * 6);
1914
+ }
1915
+
1912
1916
  :where(.space-x-1 > :not(:last-child)) {
1913
1917
  --tw-space-x-reverse: 0;
1914
1918
  margin-inline-start: calc(calc(var(--spacing) * 1) * var(--tw-space-x-reverse));
@@ -1927,16 +1931,14 @@
1927
1931
  margin-inline-end: calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-x-reverse)));
1928
1932
  }
1929
1933
 
1930
- :where(.space-x-6 > :not(:last-child)) {
1931
- --tw-space-x-reverse: 0;
1932
- margin-inline-start: calc(calc(var(--spacing) * 6) * var(--tw-space-x-reverse));
1933
- margin-inline-end: calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-x-reverse)));
1934
- }
1935
-
1936
1934
  .gap-y-0\.5 {
1937
1935
  row-gap: calc(var(--spacing) * .5);
1938
1936
  }
1939
1937
 
1938
+ .gap-y-2 {
1939
+ row-gap: calc(var(--spacing) * 2);
1940
+ }
1941
+
1940
1942
  .self-center {
1941
1943
  align-self: center;
1942
1944
  }
@@ -5389,10 +5391,8 @@
5389
5391
  grid-template-columns: repeat(12, minmax(0, 1fr));
5390
5392
  }
5391
5393
 
5392
- :where(.lg\:space-x-8 > :not(:last-child)) {
5393
- --tw-space-x-reverse: 0;
5394
- margin-inline-start: calc(calc(var(--spacing) * 8) * var(--tw-space-x-reverse));
5395
- margin-inline-end: calc(calc(var(--spacing) * 8) * calc(1 - var(--tw-space-x-reverse)));
5394
+ .lg\:gap-x-8 {
5395
+ column-gap: calc(var(--spacing) * 8);
5396
5396
  }
5397
5397
 
5398
5398
  .lg\:p-12 {
@@ -1905,6 +1905,10 @@
1905
1905
  column-gap: calc(var(--spacing) * 2);
1906
1906
  }
1907
1907
 
1908
+ .gap-x-6 {
1909
+ column-gap: calc(var(--spacing) * 6);
1910
+ }
1911
+
1908
1912
  :where(.space-x-1 > :not(:last-child)) {
1909
1913
  --tw-space-x-reverse: 0;
1910
1914
  margin-inline-start: calc(calc(var(--spacing) * 1) * var(--tw-space-x-reverse));
@@ -1923,16 +1927,14 @@
1923
1927
  margin-inline-end: calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-x-reverse)));
1924
1928
  }
1925
1929
 
1926
- :where(.space-x-6 > :not(:last-child)) {
1927
- --tw-space-x-reverse: 0;
1928
- margin-inline-start: calc(calc(var(--spacing) * 6) * var(--tw-space-x-reverse));
1929
- margin-inline-end: calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-x-reverse)));
1930
- }
1931
-
1932
1930
  .gap-y-0\.5 {
1933
1931
  row-gap: calc(var(--spacing) * .5);
1934
1932
  }
1935
1933
 
1934
+ .gap-y-2 {
1935
+ row-gap: calc(var(--spacing) * 2);
1936
+ }
1937
+
1936
1938
  .self-center {
1937
1939
  align-self: center;
1938
1940
  }
@@ -5381,10 +5383,8 @@
5381
5383
  grid-template-columns: repeat(12, minmax(0, 1fr));
5382
5384
  }
5383
5385
 
5384
- :where(.lg\:space-x-8 > :not(:last-child)) {
5385
- --tw-space-x-reverse: 0;
5386
- margin-inline-start: calc(calc(var(--spacing) * 8) * var(--tw-space-x-reverse));
5387
- margin-inline-end: calc(calc(var(--spacing) * 8) * calc(1 - var(--tw-space-x-reverse)));
5386
+ .lg\:gap-x-8 {
5387
+ column-gap: calc(var(--spacing) * 8);
5388
5388
  }
5389
5389
 
5390
5390
  .lg\:p-12 {
@@ -1905,6 +1905,10 @@
1905
1905
  column-gap: calc(var(--spacing) * 2);
1906
1906
  }
1907
1907
 
1908
+ .gap-x-6 {
1909
+ column-gap: calc(var(--spacing) * 6);
1910
+ }
1911
+
1908
1912
  :where(.space-x-1 > :not(:last-child)) {
1909
1913
  --tw-space-x-reverse: 0;
1910
1914
  margin-inline-start: calc(calc(var(--spacing) * 1) * var(--tw-space-x-reverse));
@@ -1923,16 +1927,14 @@
1923
1927
  margin-inline-end: calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-x-reverse)));
1924
1928
  }
1925
1929
 
1926
- :where(.space-x-6 > :not(:last-child)) {
1927
- --tw-space-x-reverse: 0;
1928
- margin-inline-start: calc(calc(var(--spacing) * 6) * var(--tw-space-x-reverse));
1929
- margin-inline-end: calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-x-reverse)));
1930
- }
1931
-
1932
1930
  .gap-y-0\.5 {
1933
1931
  row-gap: calc(var(--spacing) * .5);
1934
1932
  }
1935
1933
 
1934
+ .gap-y-2 {
1935
+ row-gap: calc(var(--spacing) * 2);
1936
+ }
1937
+
1936
1938
  .self-center {
1937
1939
  align-self: center;
1938
1940
  }
@@ -5381,10 +5383,8 @@
5381
5383
  grid-template-columns: repeat(12, minmax(0, 1fr));
5382
5384
  }
5383
5385
 
5384
- :where(.lg\:space-x-8 > :not(:last-child)) {
5385
- --tw-space-x-reverse: 0;
5386
- margin-inline-start: calc(calc(var(--spacing) * 8) * var(--tw-space-x-reverse));
5387
- margin-inline-end: calc(calc(var(--spacing) * 8) * calc(1 - var(--tw-space-x-reverse)));
5386
+ .lg\:gap-x-8 {
5387
+ column-gap: calc(var(--spacing) * 8);
5388
5388
  }
5389
5389
 
5390
5390
  .lg\:p-12 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@k3-tech/react-kit",
3
- "version": "0.0.70",
3
+ "version": "0.0.72",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -92,4 +92,4 @@
92
92
  "tailwindcss": "^4.1.12",
93
93
  "tw-animate-css": "^1.3.7"
94
94
  }
95
- }
95
+ }
@@ -40,14 +40,14 @@ export function DataTablePagination<TData>({
40
40
  };
41
41
 
42
42
  return (
43
- <div className={cn("flex items-center justify-between px-2", wrapperClassName)}>
43
+ <div className={cn("flex flex-wrap items-center justify-between gap-x-6 gap-y-2 px-2", wrapperClassName)}>
44
44
  {showSelectedRowInfo && (
45
- <div className="text-muted-foreground flex-1 text-sm">
45
+ <div className="text-muted-foreground text-sm">
46
46
  {table.getFilteredSelectedRowModel().rows.length} of{' '}
47
47
  {table.getFilteredRowModel().rows.length} row(s) selected.
48
48
  </div>
49
49
  )}
50
- <div className="flex items-center space-x-6 lg:space-x-8">
50
+ <div className="ml-auto flex flex-wrap items-center gap-x-6 gap-y-2 lg:gap-x-8">
51
51
  {showRowsPerPageSelection && (
52
52
  <div className="flex items-center space-x-2">
53
53
  <p className="text-sm font-medium">Rows per page</p>
@@ -166,7 +166,7 @@ export function Page({
166
166
  >
167
167
  <header
168
168
  className={cn(
169
- 'flex items-start justify-between gap-3 py-6',
169
+ 'flex flex-wrap items-start justify-between gap-3 py-6',
170
170
  headerClassName,
171
171
  )}
172
172
  >
@@ -177,7 +177,7 @@ export function Page({
177
177
  subtitle={subtitle}
178
178
  />
179
179
  {actions && actions.length > 0 ? (
180
- <div className="flex shrink-0 flex-wrap items-center justify-end gap-2">
180
+ <div className="ml-auto flex flex-wrap items-center justify-end gap-2">
181
181
  {actions.map(renderAction)}
182
182
  </div>
183
183
  ) : null}