PageSourceSearch

https://shadcnui-boilerplate.vercel.app/assets/data-table-column-header-BWLsedk4.js

js shadcnui-boilerplate.vercel.app collected 2026-10-03 07:43:04 UTC 2,654 bytes, 21 lines download raw bytes

1import{j as e}from"./success-Cf8x2fCZ.js";import{B as c}from"./button-Bbk5UIR2.js";import{D as l,a as m,b as p,f as a,d as h}from"./dropdown-menu-X3r_cyx1.js";import{c as t}from"./utils-D64OaFpV.js";import{c as r}from"./createLucideIcon-Ci8kEGNB.js";/**
2 * @license lucide-react v0.429.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const d=r("ArrowDown",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);/**
7 * @license lucide-react v0.429.0 - ISC
8 *
9 * This source code is licensed under the ISC license.
10 * See the LICENSE file in the root directory of this source tree.
11 */const x=r("ArrowUpDown",[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]]);/**
12 * @license lucide-react v0.429.0 - ISC
13 *
14 * This source code is licensed under the ISC license.
15 * See the LICENSE file in the root directory of this source tree.
16 */const i=r("ArrowUp",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);/**
17 * @license lucide-react v0.429.0 - ISC
18 *
19 * This source code is licensed under the ISC license.
20 * See the LICENSE file in the root directory of this source tree.
21 */const j=r("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);function k({column:s,title:o,className:n}){return s.getCanSort()?e.jsx("div",{className:t("flex items-center space-x-2"),children:e.jsxs(l,{children:[e.jsx(m,{asChild:!0,children:e.jsxs(c,{variant:"ghost",size:"sm",className:"h-8 data-[state=open]:bg-accent",children:[e.jsx("span",{className:t(n),children:o}),s.getIsSorted()==="desc"?e.jsx(d,{className:"ml-2 size-4"}):s.getIsSorted()==="asc"?e.jsx(i,{className:"ml-2 size-4"}):e.jsx(x,{className:"ml-2 size-4"})]})}),e.jsxs(p,{align:"start",children:[e.jsxs(a,{onClick:()=>s.toggleSorting(!1),children:[e.jsx(i,{className:"mr-2 size-3.5 text-muted-foreground/70"}),"Asc"]}),e.jsxs(a,{onClick:()=>s.toggleSorting(!0),children:[e.jsx(d,{className:"mr-2 size-3.5 text-muted-foreground/70"}),"Desc"]}),e.jsx(h,{}),e.jsxs(a,{onClick:()=>s.toggleVisibility(!1),children:[e.jsx(j,{className:"mr-2 size-3.5 text-muted-foreground/70"}),"Hide"]})]})]})}):e.jsx("div",{className:t(n),children:o})}export{k as D};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.