next-helios-fe 1.1.16 → 1.1.18
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 +1 -1
- package/package.json +1 -1
- package/src/components/table/index.tsx +19 -15
package/package.json
CHANGED
|
@@ -380,12 +380,12 @@ export const Table: TableComponentProps = ({
|
|
|
380
380
|
<div className="flex flex-col">
|
|
381
381
|
<Form.Checkbox
|
|
382
382
|
options={{ disableHover: true }}
|
|
383
|
-
checked={selected.length ===
|
|
383
|
+
checked={selected.length === filteredData.length}
|
|
384
384
|
onChange={(e) => {
|
|
385
|
-
if (selected.length ===
|
|
385
|
+
if (selected.length === filteredData.length) {
|
|
386
386
|
setSelected([]);
|
|
387
387
|
} else {
|
|
388
|
-
setSelected(
|
|
388
|
+
setSelected(filteredData.map((item) => item));
|
|
389
389
|
}
|
|
390
390
|
}}
|
|
391
391
|
/>
|
|
@@ -402,12 +402,14 @@ export const Table: TableComponentProps = ({
|
|
|
402
402
|
<th className="sticky left-0 w-min px-4 py-2 z-10 bg-secondary-bg font-medium text-center whitespace-nowrap">
|
|
403
403
|
<div className="flex flex-col">
|
|
404
404
|
<span>NO.</span>
|
|
405
|
-
|
|
406
|
-
<
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
405
|
+
{options?.toolbar?.columnSearch?.show !== false && (
|
|
406
|
+
<div className="invisible w-0 overflow-hidden">
|
|
407
|
+
<input
|
|
408
|
+
type="search"
|
|
409
|
+
className="w-full px-0 pt-0 pb-0.5 border-default border-t-0 border-b border-x-0 bg-secondary-bg text-sm font-normal placeholder:duration-300 placeholder:translate-x-0 [&::-webkit-search-cancel-button]:appearance-none focus:placeholder:translate-x-1 placeholder:text-slate-300 focus:outline-none focus:ring-0 focus:border-primary-dark disabled:bg-secondary-light disabled:text-slate-400"
|
|
410
|
+
/>
|
|
411
|
+
</div>
|
|
412
|
+
)}
|
|
411
413
|
</div>
|
|
412
414
|
</th>
|
|
413
415
|
)}
|
|
@@ -416,12 +418,14 @@ export const Table: TableComponentProps = ({
|
|
|
416
418
|
<th className="w-min px-4 py-2 bg-secondary-bg font-medium text-center">
|
|
417
419
|
<div className="flex flex-col">
|
|
418
420
|
<span>Actions</span>
|
|
419
|
-
|
|
420
|
-
<
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
421
|
+
{options?.toolbar?.columnSearch?.show !== false && (
|
|
422
|
+
<div className="invisible w-0 overflow-hidden">
|
|
423
|
+
<input
|
|
424
|
+
type="search"
|
|
425
|
+
className="w-full px-0 pt-0 pb-0.5 border-default border-t-0 border-b border-x-0 bg-secondary-bg text-sm font-normal placeholder:duration-300 placeholder:translate-x-0 [&::-webkit-search-cancel-button]:appearance-none focus:placeholder:translate-x-1 placeholder:text-slate-300 focus:outline-none focus:ring-0 focus:border-primary-dark disabled:bg-secondary-light disabled:text-slate-400"
|
|
426
|
+
/>
|
|
427
|
+
</div>
|
|
428
|
+
)}
|
|
425
429
|
</div>
|
|
426
430
|
</th>
|
|
427
431
|
)}
|