warqadui 0.0.28 → 0.0.29

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
@@ -3339,6 +3339,9 @@ function PostTable({
3339
3339
  finalColumns.unshift({
3340
3340
  id: "_index",
3341
3341
  header: "#",
3342
+ size: 40,
3343
+ minSize: 40,
3344
+ maxSize: 40,
3342
3345
  cell: ({ row }) => /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "flex items-center gap-2", children: [
3343
3346
  /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "text-gray-500 font-medium ml-1", children: row.index + 1 }),
3344
3347
  renderSubComponent && hasSubComponent(row.original) && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
@@ -3388,7 +3391,7 @@ function PostTable({
3388
3391
  rowPadding,
3389
3392
  "text-sm font-semibold text-gray-900 dark:text-zinc-100 text-left",
3390
3393
  verticalLines && "border-x border-gray-200 dark:border-zinc-800",
3391
- header.id === "_index" && "w-px whitespace-nowrap",
3394
+ header.id === "_index" && "w-[1%] min-w-[40px] max-w-[40px] whitespace-nowrap",
3392
3395
  header.column.columnDef.meta?.className
3393
3396
  ),
3394
3397
  style: {
@@ -3450,7 +3453,7 @@ function PostTable({
3450
3453
  rowPadding,
3451
3454
  "text-sm text-gray-700 dark:text-gray-200",
3452
3455
  verticalLines && "border-x border-gray-200 dark:border-zinc-800",
3453
- cell.column.id === "_index" && "w-px whitespace-nowrap",
3456
+ cell.column.id === "_index" && "w-[1%] min-w-[40px] max-w-[40px] whitespace-nowrap",
3454
3457
  cell.column.columnDef.meta?.className
3455
3458
  ),
3456
3459
  style: {
@@ -3585,7 +3588,7 @@ function PostTable({
3585
3588
  "py-1! text-sm align-middle transition-colors duration-200",
3586
3589
  column.id !== "_index" ? "cursor-text" : "",
3587
3590
  verticalLines ? "border-x border-gray-200 dark:border-zinc-800" : "",
3588
- column.id === "_index" ? "w-px whitespace-nowrap" : "",
3591
+ column.id === "_index" ? "w-[1%] min-w-[40px] max-w-[40px] whitespace-nowrap" : "",
3589
3592
  hasError && "ring-1 ring-inset ring-red-500",
3590
3593
  column.columnDef.meta?.className
3591
3594
  ),
@@ -3602,7 +3605,7 @@ function PostTable({
3602
3605
  column.id === "_index" ? "" : "h-9",
3603
3606
  !column.columnDef.meta?.className?.match(
3604
3607
  /\b(w-|min-w-|max-w-)/
3605
- ) && !column.columnDef.meta?.width && "min-w-32"
3608
+ ) && !column.columnDef.meta?.width && (!column.columnDef.maxSize || column.columnDef.maxSize >= 128) && (!column.columnDef.size || column.columnDef.size >= 128) && "min-w-32"
3606
3609
  ),
3607
3610
  onKeyDown: (e) => {
3608
3611
  if (e.key === "Enter") {
@@ -3660,7 +3663,7 @@ function PostTable({
3660
3663
  rowPadding,
3661
3664
  "text-sm font-semibold text-gray-900 dark:text-zinc-100 text-left",
3662
3665
  verticalLines && "border-x border-gray-200 dark:border-zinc-800",
3663
- header.id === "_index" && "w-px whitespace-nowrap",
3666
+ header.id === "_index" && "w-[1%] min-w-[40px] max-w-[40px] whitespace-nowrap",
3664
3667
  header.column.columnDef.meta?.className
3665
3668
  ),
3666
3669
  style: {
package/dist/index.mjs CHANGED
@@ -3297,6 +3297,9 @@ function PostTable({
3297
3297
  finalColumns.unshift({
3298
3298
  id: "_index",
3299
3299
  header: "#",
3300
+ size: 40,
3301
+ minSize: 40,
3302
+ maxSize: 40,
3300
3303
  cell: ({ row }) => /* @__PURE__ */ jsxs18("div", { className: "flex items-center gap-2", children: [
3301
3304
  /* @__PURE__ */ jsx24("span", { className: "text-gray-500 font-medium ml-1", children: row.index + 1 }),
3302
3305
  renderSubComponent && hasSubComponent(row.original) && /* @__PURE__ */ jsx24(
@@ -3346,7 +3349,7 @@ function PostTable({
3346
3349
  rowPadding,
3347
3350
  "text-sm font-semibold text-gray-900 dark:text-zinc-100 text-left",
3348
3351
  verticalLines && "border-x border-gray-200 dark:border-zinc-800",
3349
- header.id === "_index" && "w-px whitespace-nowrap",
3352
+ header.id === "_index" && "w-[1%] min-w-[40px] max-w-[40px] whitespace-nowrap",
3350
3353
  header.column.columnDef.meta?.className
3351
3354
  ),
3352
3355
  style: {
@@ -3408,7 +3411,7 @@ function PostTable({
3408
3411
  rowPadding,
3409
3412
  "text-sm text-gray-700 dark:text-gray-200",
3410
3413
  verticalLines && "border-x border-gray-200 dark:border-zinc-800",
3411
- cell.column.id === "_index" && "w-px whitespace-nowrap",
3414
+ cell.column.id === "_index" && "w-[1%] min-w-[40px] max-w-[40px] whitespace-nowrap",
3412
3415
  cell.column.columnDef.meta?.className
3413
3416
  ),
3414
3417
  style: {
@@ -3543,7 +3546,7 @@ function PostTable({
3543
3546
  "py-1! text-sm align-middle transition-colors duration-200",
3544
3547
  column.id !== "_index" ? "cursor-text" : "",
3545
3548
  verticalLines ? "border-x border-gray-200 dark:border-zinc-800" : "",
3546
- column.id === "_index" ? "w-px whitespace-nowrap" : "",
3549
+ column.id === "_index" ? "w-[1%] min-w-[40px] max-w-[40px] whitespace-nowrap" : "",
3547
3550
  hasError && "ring-1 ring-inset ring-red-500",
3548
3551
  column.columnDef.meta?.className
3549
3552
  ),
@@ -3560,7 +3563,7 @@ function PostTable({
3560
3563
  column.id === "_index" ? "" : "h-9",
3561
3564
  !column.columnDef.meta?.className?.match(
3562
3565
  /\b(w-|min-w-|max-w-)/
3563
- ) && !column.columnDef.meta?.width && "min-w-32"
3566
+ ) && !column.columnDef.meta?.width && (!column.columnDef.maxSize || column.columnDef.maxSize >= 128) && (!column.columnDef.size || column.columnDef.size >= 128) && "min-w-32"
3564
3567
  ),
3565
3568
  onKeyDown: (e) => {
3566
3569
  if (e.key === "Enter") {
@@ -3618,7 +3621,7 @@ function PostTable({
3618
3621
  rowPadding,
3619
3622
  "text-sm font-semibold text-gray-900 dark:text-zinc-100 text-left",
3620
3623
  verticalLines && "border-x border-gray-200 dark:border-zinc-800",
3621
- header.id === "_index" && "w-px whitespace-nowrap",
3624
+ header.id === "_index" && "w-[1%] min-w-[40px] max-w-[40px] whitespace-nowrap",
3622
3625
  header.column.columnDef.meta?.className
3623
3626
  ),
3624
3627
  style: {
package/dist/styles.js CHANGED
@@ -699,6 +699,9 @@ select:-webkit-autofill:focus {
699
699
  .w-8 {
700
700
  width: 2rem;
701
701
  }
702
+ .w-\\[1\\%\\] {
703
+ width: 1%;
704
+ }
702
705
  .w-full {
703
706
  width: 100%;
704
707
  }
@@ -714,9 +717,15 @@ select:-webkit-autofill:focus {
714
717
  .min-w-32 {
715
718
  min-width: 8rem;
716
719
  }
720
+ .min-w-\\[40px\\] {
721
+ min-width: 40px;
722
+ }
717
723
  .max-w-2xl {
718
724
  max-width: 42rem;
719
725
  }
726
+ .max-w-\\[40px\\] {
727
+ max-width: 40px;
728
+ }
720
729
  .max-w-full {
721
730
  max-width: 100%;
722
731
  }
package/dist/styles.mjs CHANGED
@@ -697,6 +697,9 @@ select:-webkit-autofill:focus {
697
697
  .w-8 {
698
698
  width: 2rem;
699
699
  }
700
+ .w-\\[1\\%\\] {
701
+ width: 1%;
702
+ }
700
703
  .w-full {
701
704
  width: 100%;
702
705
  }
@@ -712,9 +715,15 @@ select:-webkit-autofill:focus {
712
715
  .min-w-32 {
713
716
  min-width: 8rem;
714
717
  }
718
+ .min-w-\\[40px\\] {
719
+ min-width: 40px;
720
+ }
715
721
  .max-w-2xl {
716
722
  max-width: 42rem;
717
723
  }
724
+ .max-w-\\[40px\\] {
725
+ max-width: 40px;
726
+ }
718
727
  .max-w-full {
719
728
  max-width: 100%;
720
729
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "warqadui",
3
- "version": "0.0.28",
3
+ "version": "0.0.29",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",