@gears-frontx/ui-kit 0.4.6 → 0.4.9

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.
Files changed (131) hide show
  1. package/dist/chunks/data-grid-portal-container-context.js +10 -0
  2. package/dist/chunks/data-grid-portal-container-context.js.map +1 -0
  3. package/dist/chunks/{data-grid.-6P4UQGJ.css → data-grid.DSkYrsay.css} +1 -1
  4. package/dist/chunks/drag-drop.BASVe3_O.css +1 -0
  5. package/dist/chunks/hooked.js +23 -31
  6. package/dist/chunks/hooked.js.map +1 -1
  7. package/dist/chunks/is-record.js +7 -0
  8. package/dist/chunks/is-record.js.map +1 -0
  9. package/dist/chunks/messages.js +12 -1
  10. package/dist/chunks/messages.js.map +1 -1
  11. package/dist/chunks/pagination.DJ7HJSFX.css +1 -0
  12. package/dist/chunks/resolve-body-cell-props.BA5IRWq0.css +1 -0
  13. package/dist/chunks/resolve-body-cell-props.js +80 -96
  14. package/dist/chunks/resolve-body-cell-props.js.map +1 -1
  15. package/dist/chunks/row-click-utils.js +12 -0
  16. package/dist/chunks/row-click-utils.js.map +1 -0
  17. package/dist/chunks/row-number.BxFT_3yP.css +1 -0
  18. package/dist/chunks/segment.js +16 -9
  19. package/dist/chunks/segment.js.map +1 -1
  20. package/dist/chunks/storage-helpers.js +40 -0
  21. package/dist/chunks/storage-helpers.js.map +1 -0
  22. package/dist/chunks/table-helpers.js +20 -0
  23. package/dist/chunks/table-helpers.js.map +1 -0
  24. package/dist/chunks/table-tree.DMtpMddS.css +1 -0
  25. package/dist/chunks/table.biUlW2U6.css +1 -0
  26. package/dist/chunks/use-latest.js +11 -0
  27. package/dist/chunks/use-latest.js.map +1 -0
  28. package/dist/components/data-grid/data-grid-types.d.ts +19 -0
  29. package/dist/components/data-grid/data-grid-types.d.ts.map +1 -1
  30. package/dist/components/data-grid/data-grid.d.ts +1 -1
  31. package/dist/components/data-grid/data-grid.d.ts.map +1 -1
  32. package/dist/components/data-grid/messages.d.ts +9 -0
  33. package/dist/components/data-grid/messages.d.ts.map +1 -1
  34. package/dist/components/data-grid/plugins/actions-menu/components/data-grid-actions-menu.d.ts.map +1 -1
  35. package/dist/components/data-grid/plugins/actions-menu/menu-items/export-menu-items/data-grid-export-menu-item.d.ts +6 -0
  36. package/dist/components/data-grid/plugins/actions-menu/menu-items/export-menu-items/data-grid-export-menu-item.d.ts.map +1 -0
  37. package/dist/components/data-grid/plugins/actions-menu/menu-items/export-menu-items/export-cells.d.ts +18 -0
  38. package/dist/components/data-grid/plugins/actions-menu/menu-items/export-menu-items/export-cells.d.ts.map +1 -0
  39. package/dist/components/data-grid/plugins/actions-menu/menu-items/export-menu-items/export-menu-items.d.ts +9 -0
  40. package/dist/components/data-grid/plugins/actions-menu/menu-items/export-menu-items/export-menu-items.d.ts.map +1 -0
  41. package/dist/components/data-grid/plugins/actions-menu/menu-items/export-menu-items/export-service.d.ts +5 -0
  42. package/dist/components/data-grid/plugins/actions-menu/menu-items/export-menu-items/export-service.d.ts.map +1 -0
  43. package/dist/components/data-grid/plugins/actions-menu/menu-items/export-menu-items/export-types.d.ts +77 -0
  44. package/dist/components/data-grid/plugins/actions-menu/menu-items/export-menu-items/export-types.d.ts.map +1 -0
  45. package/dist/components/data-grid/plugins/actions-menu/menu-items/export-menu-items/formatters/csv-formatter.d.ts +3 -0
  46. package/dist/components/data-grid/plugins/actions-menu/menu-items/export-menu-items/formatters/csv-formatter.d.ts.map +1 -0
  47. package/dist/components/data-grid/plugins/actions-menu/menu-items/export-menu-items/formatters/excel-formatter.d.ts +4 -0
  48. package/dist/components/data-grid/plugins/actions-menu/menu-items/export-menu-items/formatters/excel-formatter.d.ts.map +1 -0
  49. package/dist/components/data-grid/plugins/actions-menu/public.d.ts +2 -0
  50. package/dist/components/data-grid/plugins/actions-menu/public.d.ts.map +1 -1
  51. package/dist/components/data-grid/plugins/drag-drop/components/data-grid-drag-drop-body-cell.d.ts +3 -0
  52. package/dist/components/data-grid/plugins/drag-drop/components/data-grid-drag-drop-body-cell.d.ts.map +1 -0
  53. package/dist/components/data-grid/plugins/drag-drop/components/data-grid-drag-drop-content.d.ts +7 -0
  54. package/dist/components/data-grid/plugins/drag-drop/components/data-grid-drag-drop-content.d.ts.map +1 -0
  55. package/dist/components/data-grid/plugins/drag-drop/components/data-grid-drag-drop-row.d.ts +8 -0
  56. package/dist/components/data-grid/plugins/drag-drop/components/data-grid-drag-drop-row.d.ts.map +1 -0
  57. package/dist/components/data-grid/plugins/drag-drop/drag-data.d.ts +4 -0
  58. package/dist/components/data-grid/plugins/drag-drop/drag-data.d.ts.map +1 -0
  59. package/dist/components/data-grid/plugins/drag-drop/drag-drop-plugin.d.ts +18 -0
  60. package/dist/components/data-grid/plugins/drag-drop/drag-drop-plugin.d.ts.map +1 -0
  61. package/dist/components/data-grid/plugins/drag-drop/drag-drop-types.d.ts +60 -0
  62. package/dist/components/data-grid/plugins/drag-drop/drag-drop-types.d.ts.map +1 -0
  63. package/dist/components/data-grid/plugins/drag-drop/drag-preview.d.ts +2 -0
  64. package/dist/components/data-grid/plugins/drag-drop/drag-preview.d.ts.map +1 -0
  65. package/dist/components/data-grid/plugins/drag-drop/public.d.ts +3 -0
  66. package/dist/components/data-grid/plugins/drag-drop/public.d.ts.map +1 -0
  67. package/dist/components/data-grid/plugins/filters/components/adaptive-popover.d.ts.map +1 -1
  68. package/dist/components/data-grid/plugins/filters/components/all-filters-button.d.ts.map +1 -1
  69. package/dist/components/data-grid/plugins/order/components/data-grid-order-button.d.ts.map +1 -1
  70. package/dist/components/data-grid/plugins/pagination/components/data-grid-pagination.d.ts.map +1 -1
  71. package/dist/components/data-grid/plugins/pagination/components/pager.d.ts +6 -0
  72. package/dist/components/data-grid/plugins/pagination/components/pager.d.ts.map +1 -1
  73. package/dist/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration-trigger.d.ts.map +1 -1
  74. package/dist/components/data-grid/plugins/table-tree/components/data-grid-table-tree-body-cell-content.d.ts +9 -0
  75. package/dist/components/data-grid/plugins/table-tree/components/data-grid-table-tree-body-cell-content.d.ts.map +1 -0
  76. package/dist/components/data-grid/plugins/table-tree/components/data-grid-table-tree-expand.d.ts +3 -0
  77. package/dist/components/data-grid/plugins/table-tree/components/data-grid-table-tree-expand.d.ts.map +1 -0
  78. package/dist/components/data-grid/plugins/table-tree/components/data-grid-table-tree-row.d.ts +8 -0
  79. package/dist/components/data-grid/plugins/table-tree/components/data-grid-table-tree-row.d.ts.map +1 -0
  80. package/dist/components/data-grid/plugins/table-tree/public.d.ts +3 -0
  81. package/dist/components/data-grid/plugins/table-tree/public.d.ts.map +1 -0
  82. package/dist/components/data-grid/plugins/table-tree/table-tree-helpers.d.ts +4 -0
  83. package/dist/components/data-grid/plugins/table-tree/table-tree-helpers.d.ts.map +1 -0
  84. package/dist/components/data-grid/plugins/table-tree/table-tree-plugin.d.ts +5 -0
  85. package/dist/components/data-grid/plugins/table-tree/table-tree-plugin.d.ts.map +1 -0
  86. package/dist/components/data-grid/plugins/table-tree/table-tree-types.d.ts +33 -0
  87. package/dist/components/data-grid/plugins/table-tree/table-tree-types.d.ts.map +1 -0
  88. package/dist/components/data-grid/services/core/data-grid-label-context.d.ts +7 -0
  89. package/dist/components/data-grid/services/core/data-grid-label-context.d.ts.map +1 -0
  90. package/dist/components/data-grid/services/core/data-grid-portal-container-context.d.ts +9 -0
  91. package/dist/components/data-grid/services/core/data-grid-portal-container-context.d.ts.map +1 -0
  92. package/dist/components/data-grid/services/table/components/data-grid-table.d.ts.map +1 -1
  93. package/dist/components/pagination/pagination.d.ts +7 -4
  94. package/dist/components/pagination/pagination.d.ts.map +1 -1
  95. package/dist/data-grid/actions-menu.js +350 -33
  96. package/dist/data-grid/actions-menu.js.map +1 -1
  97. package/dist/data-grid/drag-drop.d.ts +1 -0
  98. package/dist/data-grid/drag-drop.js +261 -0
  99. package/dist/data-grid/drag-drop.js.map +1 -0
  100. package/dist/data-grid/filters.js +368 -364
  101. package/dist/data-grid/filters.js.map +1 -1
  102. package/dist/data-grid/order.js +111 -110
  103. package/dist/data-grid/order.js.map +1 -1
  104. package/dist/data-grid/pagination.js +152 -143
  105. package/dist/data-grid/pagination.js.map +1 -1
  106. package/dist/data-grid/row-click.js +35 -42
  107. package/dist/data-grid/row-click.js.map +1 -1
  108. package/dist/data-grid/row-number.js +6 -6
  109. package/dist/data-grid/table-configuration.js +49 -37
  110. package/dist/data-grid/table-configuration.js.map +1 -1
  111. package/dist/data-grid/table-tree.d.ts +1 -0
  112. package/dist/data-grid/table-tree.js +233 -0
  113. package/dist/data-grid/table-tree.js.map +1 -0
  114. package/dist/data-grid.js +516 -542
  115. package/dist/data-grid.js.map +1 -1
  116. package/dist/docs/data-grid.md +309 -11
  117. package/dist/docs/pagination.md +14 -0
  118. package/dist/docs/table.md +10 -1
  119. package/dist/index.d.ts +2 -0
  120. package/dist/index.d.ts.map +1 -1
  121. package/dist/index.js +375 -370
  122. package/dist/index.js.map +1 -1
  123. package/dist/pagination.js +23 -23
  124. package/dist/pagination.js.map +1 -1
  125. package/dist/table.js +88 -88
  126. package/llms.txt +6 -3
  127. package/package.json +10 -1
  128. package/dist/chunks/pagination.CKDEuWt6.css +0 -1
  129. package/dist/chunks/resolve-body-cell-props.DGczzk1U.css +0 -1
  130. package/dist/chunks/row-number.C7fNu9Bw.css +0 -1
  131. package/dist/chunks/table.Dmz7LEk7.css +0 -1
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,34 +1,34 @@
1
1
  import { jsx as i, jsxs as s, Fragment as c } from "react/jsx-runtime";
2
- import { Button as f } from "@base-ui/react/button";
2
+ import { Button as N } from "@base-ui/react/button";
3
3
  import { cx as o } from "class-variance-authority";
4
- import { MoreHorizontalIcon as g, ChevronRightIcon as h, ChevronLeftIcon as d } from "lucide-react";
5
- import './chunks/pagination.CKDEuWt6.css';const q = "_pagination_7mc4q_16", P = "_content_7mc4q_22", x = "_link_7mc4q_37", T = "_square_7mc4q_120", b = "_previousNextText_7mc4q_125", k = "_icon_7mc4q_138", y = "_chevron_7mc4q_147", C = "_ellipsis_7mc4q_153", E = "_srOnly_7mc4q_164", a = {
6
- pagination: q,
4
+ import { MoreHorizontalIcon as f, ChevronRightIcon as g, ChevronLeftIcon as y } from "lucide-react";
5
+ import './chunks/pagination.DJ7HJSFX.css';const h = "_pagination_1yypd_16", P = "_content_1yypd_28", x = "_link_1yypd_43", T = "_square_1yypd_126", q = "_previousNextText_1yypd_131", b = "_icon_1yypd_162", k = "_chevron_1yypd_171", C = "_ellipsis_1yypd_177", E = "_srOnly_1yypd_188", a = {
6
+ pagination: h,
7
7
  content: P,
8
8
  link: x,
9
9
  square: T,
10
- previousNextText: b,
11
- icon: k,
12
- chevron: y,
10
+ previousNextText: q,
11
+ icon: b,
12
+ chevron: k,
13
13
  ellipsis: C,
14
14
  srOnly: E
15
15
  }, I = "Previous", O = "Next";
16
16
  function l(n) {
17
17
  return /* @__PURE__ */ s(c, { children: [
18
- /* @__PURE__ */ i(d, { className: o(a.icon, a.chevron) }),
18
+ /* @__PURE__ */ i(y, { className: o(a.icon, a.chevron) }),
19
19
  /* @__PURE__ */ i("span", { className: a.previousNextText, children: n })
20
20
  ] });
21
21
  }
22
22
  function u(n) {
23
23
  return /* @__PURE__ */ s(c, { children: [
24
24
  /* @__PURE__ */ i("span", { className: a.previousNextText, children: n }),
25
- /* @__PURE__ */ i(h, { className: o(a.icon, a.chevron) })
25
+ /* @__PURE__ */ i(g, { className: o(a.icon, a.chevron) })
26
26
  ] });
27
27
  }
28
- function m(n) {
28
+ function p(n) {
29
29
  return n.trim() && n !== I ? n : "Go to previous page";
30
30
  }
31
- function p(n) {
31
+ function _(n) {
32
32
  return n.trim() && n !== O ? n : "Go to next page";
33
33
  }
34
34
  function G({ className: n, ...e }) {
@@ -48,7 +48,7 @@ function M({ className: n, ...e }) {
48
48
  function R(n) {
49
49
  return /* @__PURE__ */ i("li", { ...n });
50
50
  }
51
- function _({ className: n, isActive: e, square: t = !0, ...r }) {
51
+ function d({ className: n, isActive: e, square: t = !0, ...r }) {
52
52
  return /* @__PURE__ */ i(
53
53
  "a",
54
54
  {
@@ -65,9 +65,9 @@ function z({
65
65
  ...t
66
66
  }) {
67
67
  return /* @__PURE__ */ i(
68
- _,
68
+ d,
69
69
  {
70
- "aria-label": m(e),
70
+ "aria-label": p(e),
71
71
  square: !1,
72
72
  className: o(a.previous, n),
73
73
  ...t,
@@ -77,9 +77,9 @@ function z({
77
77
  }
78
78
  function F({ className: n, text: e = "Next", ...t }) {
79
79
  return /* @__PURE__ */ i(
80
- _,
80
+ d,
81
81
  {
82
- "aria-label": p(e),
82
+ "aria-label": _(e),
83
83
  square: !1,
84
84
  className: o(a.next, n),
85
85
  ...t,
@@ -92,16 +92,16 @@ function v({
92
92
  isActive: e,
93
93
  square: t = !0,
94
94
  type: r = "button",
95
- ...N
95
+ ...m
96
96
  }) {
97
97
  return /* @__PURE__ */ i(
98
- f,
98
+ N,
99
99
  {
100
100
  type: r,
101
101
  "aria-current": e ? "page" : void 0,
102
102
  "data-active": e || void 0,
103
103
  className: o(a.link, t && a.square, n),
104
- ...N
104
+ ...m
105
105
  }
106
106
  );
107
107
  }
@@ -109,14 +109,14 @@ function H({
109
109
  text: n = "Previous",
110
110
  ...e
111
111
  }) {
112
- return /* @__PURE__ */ i(v, { "aria-label": m(n), square: !1, ...e, children: l(n) });
112
+ return /* @__PURE__ */ i(v, { "aria-label": p(n), square: !1, ...e, children: l(n) });
113
113
  }
114
114
  function S({ text: n = "Next", ...e }) {
115
- return /* @__PURE__ */ i(v, { "aria-label": p(n), square: !1, ...e, children: u(n) });
115
+ return /* @__PURE__ */ i(v, { "aria-label": _(n), square: !1, ...e, children: u(n) });
116
116
  }
117
117
  function U({ className: n, ...e }) {
118
118
  return /* @__PURE__ */ s("span", { "aria-hidden": "true", className: o(a.ellipsis, n), ...e, children: [
119
- /* @__PURE__ */ i(g, { className: a.icon }),
119
+ /* @__PURE__ */ i(f, { className: a.icon }),
120
120
  /* @__PURE__ */ i("span", { className: a.srOnly, children: "More pages" })
121
121
  ] });
122
122
  }
@@ -126,7 +126,7 @@ export {
126
126
  M as PaginationContent,
127
127
  U as PaginationEllipsis,
128
128
  R as PaginationItem,
129
- _ as PaginationLink,
129
+ d as PaginationLink,
130
130
  F as PaginationNext,
131
131
  S as PaginationNextButton,
132
132
  z as PaginationPrevious,
@@ -1 +1 @@
1
- {"version":3,"file":"pagination.js","sources":["../src/components/pagination/pagination.tsx"],"sourcesContent":["import { Button as ButtonPrimitive } from '@base-ui/react/button';\nimport { cx } from 'class-variance-authority';\nimport { ChevronLeftIcon, ChevronRightIcon, MoreHorizontalIcon } from 'lucide-react';\nimport type { ComponentProps } from 'react';\n\nimport styles from './pagination.module.css';\n\n// The default label of each direction, as the name helpers below compare it.\n// The four parts write the same words as the literal default of their `text`\n// prop and not as these constants, on purpose: the contract compiler reads a\n// prop's default from a literal in the destructured parameter and drops it,\n// with a `cannot_extract` note, from one that goes through a constant (tried:\n// `text.default` vanished from four contracts, two of them already shipped).\n// pagination.test.tsx renders every part without `text` and asserts the\n// page-describing name, which is what fails if a literal and a constant part.\nconst PREVIOUS_TEXT = 'Previous';\nconst NEXT_TEXT = 'Next';\n\n// The visible content and the accessible name of the previous/next parts,\n// shared by the anchor and the button forms so the four cannot drift. The\n// chevrons carry `styles.chevron`: it is what mirrors them under a\n// right-to-left direction.\nfunction previousContent(text: string) {\n return (\n <>\n <ChevronLeftIcon className={cx(styles.icon, styles.chevron)} />\n <span className={styles.previousNextText}>{text}</span>\n </>\n );\n}\n\nfunction nextContent(text: string) {\n return (\n <>\n <span className={styles.previousNextText}>{text}</span>\n <ChevronRightIcon className={cx(styles.icon, styles.chevron)} />\n </>\n );\n}\n\n// The default text keeps the longer name that says which page it goes to. A\n// custom text IS the name: the label is hidden below 640px and the chevron is\n// decorative, so a fixed name would leave the words on screen out of it (and\n// out of a voice-control user's reach). An empty or blank text hides the label,\n// which is the icon-only form, so it keeps the default name rather than none (a\n// whitespace-only aria-label is ignored by the accessible name computation).\nfunction previousLabel(text: string) {\n return text.trim() && text !== PREVIOUS_TEXT ? text : 'Go to previous page';\n}\n\nfunction nextLabel(text: string) {\n return text.trim() && text !== NEXT_TEXT ? text : 'Go to next page';\n}\n\nexport type PaginationProps = ComponentProps<'nav'>;\n\nexport function Pagination({ className, ...props }: PaginationProps) {\n return (\n <nav\n role=\"navigation\"\n aria-label=\"pagination\"\n className={cx(styles.pagination, className)}\n {...props}\n />\n );\n}\n\nexport type PaginationContentProps = ComponentProps<'ul'>;\n\nexport function PaginationContent({ className, ...props }: PaginationContentProps) {\n return <ul className={cx(styles.content, className)} {...props} />;\n}\n\nexport type PaginationItemProps = ComponentProps<'li'>;\n\nexport function PaginationItem(props: PaginationItemProps) {\n return <li {...props} />;\n}\n\nexport interface PaginationLinkProps extends Omit<ComponentProps<'a'>, 'className'> {\n className?: string;\n isActive?: boolean;\n /**\n * Square, icon-sized footprint (aspect-ratio 1, no horizontal padding) —\n * the common case for a bare page number, matching upstream's\n * `size=\"icon\"` default. `PaginationPrevious`/`PaginationNext` opt out\n * (`square={false}`): they carry an icon AND a text label side by side,\n * so a fixed-width square would clip the label.\n * @default true\n */\n square?: boolean;\n}\n\nexport function PaginationLink({ className, isActive, square = true, ...props }: PaginationLinkProps) {\n return (\n <a\n aria-current={isActive ? 'page' : undefined}\n data-active={isActive || undefined}\n className={cx(styles.link, square && styles.square, className)}\n {...props}\n />\n );\n}\n\nexport interface PaginationPreviousProps extends Omit<PaginationLinkProps, 'square'> {\n /** Label text, hidden below the `sm` breakpoint (640px) — matching\n * upstream's `hidden sm:block`. Also the accessible name when given, since\n * the label is hidden at that width. @default 'Previous' */\n text?: string;\n}\n\nexport function PaginationPrevious({\n className,\n text = 'Previous',\n ...props\n}: PaginationPreviousProps) {\n return (\n <PaginationLink\n aria-label={previousLabel(text)}\n square={false}\n className={cx(styles.previous, className)}\n {...props}\n >\n {previousContent(text)}\n </PaginationLink>\n );\n}\n\nexport interface PaginationNextProps extends Omit<PaginationLinkProps, 'square'> {\n /** Also the accessible name when given. @default 'Next' */\n text?: string;\n}\n\nexport function PaginationNext({ className, text = 'Next', ...props }: PaginationNextProps) {\n return (\n <PaginationLink\n aria-label={nextLabel(text)}\n square={false}\n className={cx(styles.next, className)}\n {...props}\n >\n {nextContent(text)}\n </PaginationLink>\n );\n}\n\n/*\n * The button forms: the same items for state-driven paging, where a page\n * change is a state update and has no URL of its own. They are separate\n * parts rather than a `render`/`as` on the link because PaginationLink's\n * contract promises a real anchor (see pagination-link.contract.yaml); a\n * button part keeps that promise intact and shares every class with it, so\n * the two forms paint identically.\n */\nexport interface PaginationButtonProps extends Omit<ComponentProps<'button'>, 'className'> {\n className?: string;\n /** Marks the page in view: sets `aria-current=\"page\"` and the active\n * paint, same as PaginationLink's. */\n isActive?: boolean;\n /** Same square footprint as PaginationLink's. @default true */\n square?: boolean;\n /**\n * Keep the button in the tab order while `disabled`, reporting\n * `aria-disabled` instead of the native attribute. Without it a button that\n * holds keyboard focus when it becomes disabled (Previous, paged down to the\n * first page) is blurred by the browser and focus falls to the page. Same\n * name and meaning as Button's, which this renders through the same Base UI\n * primitive.\n * @default false\n */\n focusableWhenDisabled?: boolean;\n}\n\nexport function PaginationButton({\n className,\n isActive,\n square = true,\n type = 'button',\n ...props\n}: PaginationButtonProps) {\n return (\n <ButtonPrimitive\n type={type}\n aria-current={isActive ? 'page' : undefined}\n data-active={isActive || undefined}\n className={cx(styles.link, square && styles.square, className)}\n {...props}\n />\n );\n}\n\nexport interface PaginationPreviousButtonProps extends Omit<PaginationButtonProps, 'square' | 'isActive'> {\n /** Label text, hidden below the `sm` breakpoint (640px). Also the\n * accessible name when given. @default 'Previous' */\n text?: string;\n}\n\nexport function PaginationPreviousButton({\n text = 'Previous',\n ...props\n}: PaginationPreviousButtonProps) {\n return (\n <PaginationButton aria-label={previousLabel(text)} square={false} {...props}>\n {previousContent(text)}\n </PaginationButton>\n );\n}\n\nexport interface PaginationNextButtonProps extends Omit<PaginationButtonProps, 'square' | 'isActive'> {\n /** Also the accessible name when given. @default 'Next' */\n text?: string;\n}\n\nexport function PaginationNextButton({ text = 'Next', ...props }: PaginationNextButtonProps) {\n return (\n <PaginationButton aria-label={nextLabel(text)} square={false} {...props}>\n {nextContent(text)}\n </PaginationButton>\n );\n}\n\nexport type PaginationEllipsisProps = ComponentProps<'span'>;\n\nexport function PaginationEllipsis({ className, ...props }: PaginationEllipsisProps) {\n return (\n <span aria-hidden=\"true\" className={cx(styles.ellipsis, className)} {...props}>\n <MoreHorizontalIcon className={styles.icon} />\n <span className={styles.srOnly}>More pages</span>\n </span>\n );\n}\n"],"names":["PREVIOUS_TEXT","NEXT_TEXT","previousContent","text","jsxs","Fragment","jsx","ChevronLeftIcon","cx","styles","nextContent","ChevronRightIcon","previousLabel","nextLabel","Pagination","className","props","PaginationContent","PaginationItem","PaginationLink","isActive","square","PaginationPrevious","PaginationNext","PaginationButton","type","ButtonPrimitive","PaginationPreviousButton","PaginationNextButton","PaginationEllipsis","MoreHorizontalIcon"],"mappings":";;;;;;;;;;;;;;GAeMA,IAAgB,YAChBC,IAAY;AAMlB,SAASC,EAAgBC,GAAc;AACrC,SACE,gBAAAC,EAAAC,GAAA,EACE,UAAA;AAAA,IAAA,gBAAAC,EAACC,KAAgB,WAAWC,EAAGC,EAAO,MAAMA,EAAO,OAAO,GAAG;AAAA,IAC7D,gBAAAH,EAAC,QAAA,EAAK,WAAWG,EAAO,kBAAmB,UAA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AAGa,KAAoC;AAC3F,SACE,gBAAAV,EAACkB,GAAA,EAAiB,cAAYX,EAAUV,CAAI,GAAG,QAAQ,IAAQ,GAAGa,GAC/D,UAAAN,EAAYP,CAAI,EAAA,CACnB;AAEJ;AAIO,SAAS0B,EAAmB,EAAE,WAAAd,GAAW,GAAGC,KAAkC;AACnF,SACE,gBAAAZ,EAAC,QAAA,EAAK,eAAY,QAAO,WAAWI,EAAGC,EAAO,UAAUM,CAAS,GAAI,GAAGC,GACtE,UAAA;AAAA,IAAA,gBAAAV,EAACwB,GAAA,EAAmB,WAAWrB,EAAO,KAAA,CAAM;AAAA,IAC5C,gBAAAH,EAAC,QAAA,EAAK,WAAWG,EAAO,QAAQ,UAAA,aAAA,CAAU;AAAA,EAAA,GAC5C;AAEJ;"}
1
+ {"version":3,"file":"pagination.js","sources":["../src/components/pagination/pagination.tsx"],"sourcesContent":["import { Button as ButtonPrimitive } from '@base-ui/react/button';\nimport { cx } from 'class-variance-authority';\nimport { ChevronLeftIcon, ChevronRightIcon, MoreHorizontalIcon } from 'lucide-react';\nimport type { ComponentProps } from 'react';\n\nimport styles from './pagination.module.css';\n\n// The default label of each direction, as the name helpers below compare it.\n// The four parts write the same words as the literal default of their `text`\n// prop and not as these constants, on purpose: the contract compiler reads a\n// prop's default from a literal in the destructured parameter and drops it,\n// with a `cannot_extract` note, from one that goes through a constant (tried:\n// `text.default` vanished from four contracts, two of them already shipped).\n// pagination.test.tsx renders every part without `text` and asserts the\n// page-describing name, which is what fails if a literal and a constant part.\nconst PREVIOUS_TEXT = 'Previous';\nconst NEXT_TEXT = 'Next';\n\n// The visible content and the accessible name of the previous/next parts,\n// shared by the anchor and the button forms so the four cannot drift. The\n// chevrons carry `styles.chevron`: it is what mirrors them under a\n// right-to-left direction.\nfunction previousContent(text: string) {\n return (\n <>\n <ChevronLeftIcon className={cx(styles.icon, styles.chevron)} />\n <span className={styles.previousNextText}>{text}</span>\n </>\n );\n}\n\nfunction nextContent(text: string) {\n return (\n <>\n <span className={styles.previousNextText}>{text}</span>\n <ChevronRightIcon className={cx(styles.icon, styles.chevron)} />\n </>\n );\n}\n\n// The default text keeps the longer name that says which page it goes to. A\n// custom text IS the name: the label is hidden below 640px and the chevron is\n// decorative, so a fixed name would leave the words on screen out of it (and\n// out of a voice-control user's reach). An empty or blank text hides the label,\n// which is the icon-only form, so it keeps the default name rather than none (a\n// whitespace-only aria-label is ignored by the accessible name computation).\nfunction previousLabel(text: string) {\n return text.trim() && text !== PREVIOUS_TEXT ? text : 'Go to previous page';\n}\n\nfunction nextLabel(text: string) {\n return text.trim() && text !== NEXT_TEXT ? text : 'Go to next page';\n}\n\nexport type PaginationProps = ComponentProps<'nav'>;\n\nexport function Pagination({ className, ...props }: PaginationProps) {\n return (\n <nav\n role=\"navigation\"\n aria-label=\"pagination\"\n className={cx(styles.pagination, className)}\n {...props}\n />\n );\n}\n\nexport type PaginationContentProps = ComponentProps<'ul'>;\n\nexport function PaginationContent({ className, ...props }: PaginationContentProps) {\n return <ul className={cx(styles.content, className)} {...props} />;\n}\n\nexport type PaginationItemProps = ComponentProps<'li'>;\n\nexport function PaginationItem(props: PaginationItemProps) {\n return <li {...props} />;\n}\n\nexport interface PaginationLinkProps extends Omit<ComponentProps<'a'>, 'className'> {\n className?: string;\n isActive?: boolean;\n /**\n * Square, icon-sized footprint (aspect-ratio 1, no horizontal padding) —\n * the common case for a bare page number, matching upstream's\n * `size=\"icon\"` default. `PaginationPrevious`/`PaginationNext` opt out\n * (`square={false}`): they carry an icon AND a text label side by side,\n * so a fixed-width square would clip the label.\n * @default true\n */\n square?: boolean;\n}\n\nexport function PaginationLink({ className, isActive, square = true, ...props }: PaginationLinkProps) {\n return (\n <a\n aria-current={isActive ? 'page' : undefined}\n data-active={isActive || undefined}\n className={cx(styles.link, square && styles.square, className)}\n {...props}\n />\n );\n}\n\nexport interface PaginationPreviousProps extends Omit<PaginationLinkProps, 'square'> {\n /** Label text, hidden while the `Pagination` root it sits in is narrower\n * than 640px (a container query, so a narrow pane on a wide screen\n * collapses it too); without the root, below a 640px viewport. Also the\n * accessible name when given, since the label is hidden at that width.\n * @default 'Previous' */\n text?: string;\n}\n\nexport function PaginationPrevious({\n className,\n text = 'Previous',\n ...props\n}: PaginationPreviousProps) {\n return (\n <PaginationLink\n aria-label={previousLabel(text)}\n square={false}\n className={cx(styles.previous, className)}\n {...props}\n >\n {previousContent(text)}\n </PaginationLink>\n );\n}\n\nexport interface PaginationNextProps extends Omit<PaginationLinkProps, 'square'> {\n /** Also the accessible name when given. @default 'Next' */\n text?: string;\n}\n\nexport function PaginationNext({ className, text = 'Next', ...props }: PaginationNextProps) {\n return (\n <PaginationLink\n aria-label={nextLabel(text)}\n square={false}\n className={cx(styles.next, className)}\n {...props}\n >\n {nextContent(text)}\n </PaginationLink>\n );\n}\n\n/*\n * The button forms: the same items for state-driven paging, where a page\n * change is a state update and has no URL of its own. They are separate\n * parts rather than a `render`/`as` on the link because PaginationLink's\n * contract promises a real anchor (see pagination-link.contract.yaml); a\n * button part keeps that promise intact and shares every class with it, so\n * the two forms paint identically.\n */\nexport interface PaginationButtonProps extends Omit<ComponentProps<'button'>, 'className'> {\n className?: string;\n /** Marks the page in view: sets `aria-current=\"page\"` and the active\n * paint, same as PaginationLink's. */\n isActive?: boolean;\n /** Same square footprint as PaginationLink's. @default true */\n square?: boolean;\n /**\n * Keep the button in the tab order while `disabled`, reporting\n * `aria-disabled` instead of the native attribute. Without it a button that\n * holds keyboard focus when it becomes disabled (Previous, paged down to the\n * first page) is blurred by the browser and focus falls to the page. Same\n * name and meaning as Button's, which this renders through the same Base UI\n * primitive.\n * @default false\n */\n focusableWhenDisabled?: boolean;\n}\n\nexport function PaginationButton({\n className,\n isActive,\n square = true,\n type = 'button',\n ...props\n}: PaginationButtonProps) {\n return (\n <ButtonPrimitive\n type={type}\n aria-current={isActive ? 'page' : undefined}\n data-active={isActive || undefined}\n className={cx(styles.link, square && styles.square, className)}\n {...props}\n />\n );\n}\n\nexport interface PaginationPreviousButtonProps extends Omit<PaginationButtonProps, 'square' | 'isActive'> {\n /** Label text, hidden while the `Pagination` root it sits in is narrower\n * than 640px; without the root, below a 640px viewport. Also the\n * accessible name when given. @default 'Previous' */\n text?: string;\n}\n\nexport function PaginationPreviousButton({\n text = 'Previous',\n ...props\n}: PaginationPreviousButtonProps) {\n return (\n <PaginationButton aria-label={previousLabel(text)} square={false} {...props}>\n {previousContent(text)}\n </PaginationButton>\n );\n}\n\nexport interface PaginationNextButtonProps extends Omit<PaginationButtonProps, 'square' | 'isActive'> {\n /** Also the accessible name when given. @default 'Next' */\n text?: string;\n}\n\nexport function PaginationNextButton({ text = 'Next', ...props }: PaginationNextButtonProps) {\n return (\n <PaginationButton aria-label={nextLabel(text)} square={false} {...props}>\n {nextContent(text)}\n </PaginationButton>\n );\n}\n\nexport type PaginationEllipsisProps = ComponentProps<'span'>;\n\nexport function PaginationEllipsis({ className, ...props }: PaginationEllipsisProps) {\n return (\n <span aria-hidden=\"true\" className={cx(styles.ellipsis, className)} {...props}>\n <MoreHorizontalIcon className={styles.icon} />\n <span className={styles.srOnly}>More pages</span>\n </span>\n );\n}\n"],"names":["PREVIOUS_TEXT","NEXT_TEXT","previousContent","text","jsxs","Fragment","jsx","ChevronLeftIcon","cx","styles","nextContent","ChevronRightIcon","previousLabel","nextLabel","Pagination","className","props","PaginationContent","PaginationItem","PaginationLink","isActive","square","PaginationPrevious","PaginationNext","PaginationButton","type","ButtonPrimitive","PaginationPreviousButton","PaginationNextButton","PaginationEllipsis","MoreHorizontalIcon"],"mappings":";;;;;;;;;;;;;;GAeMA,IAAgB,YAChBC,IAAY;AAMlB,SAASC,EAAgBC,GAAc;AACrC,SACE,gBAAAC,EAAAC,GAAA,EACE,UAAA;AAAA,IAAA,gBAAAC,EAACC,KAAgB,WAAWC,EAAGC,EAAO,MAAMA,EAAO,OAAO,GAAG;AAAA,IAC7D,gBAAAH,EAAC,QAAA,EAAK,WAAWG,EAAO,kBAAmB,UAAAN,E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,KAAoC;AAC3F,SACE,gBAAAV,EAACkB,GAAA,EAAiB,cAAYX,EAAUV,CAAI,GAAG,QAAQ,IAAQ,GAAGa,GAC/D,UAAAN,EAAYP,CAAI,EAAA,CACnB;AAEJ;AAIO,SAAS0B,EAAmB,EAAE,WAAAd,GAAW,GAAGC,KAAkC;AACnF,SACE,gBAAAZ,EAAC,QAAA,EAAK,eAAY,QAAO,WAAWI,EAAGC,EAAO,UAAUM,CAAS,GAAI,GAAGC,GACtE,UAAA;AAAA,IAAA,gBAAAV,EAACwB,GAAA,EAAmB,WAAWrB,EAAO,KAAA,CAAM;AAAA,IAC5C,gBAAAH,EAAC,QAAA,EAAK,WAAWG,EAAO,QAAQ,UAAA,aAAA,CAAU;AAAA,EAAA,GAC5C;AAEJ;"}
package/dist/table.js CHANGED
@@ -1,14 +1,14 @@
1
1
  "use client";
2
- import { jsx as m, jsxs as X } from "react/jsx-runtime";
3
- import { cx as h, cva as A } from "class-variance-authority";
4
- import { useRef as I, useState as g, useCallback as v, useEffect as B } from "react";
5
- import './chunks/table.Dmz7LEk7.css';const V = "_tableContainer_16yux_8", j = "_table_16yux_8", K = "_stickyHeader_16yux_79", U = "_tableHeader_16yux_91", Y = "_tableHead_16yux_70", q = "_tableRow_16yux_59", G = "_tableBody_16yux_147", J = "_columnResizer_16yux_279", Q = "_tableCell_16yux_127", Z = "_pinned_16yux_397", tt = "_variantCollection_16yux_94", et = "_variantDefault_16yux_439", nt = "_densityCompact_16yux_531", lt = "_tableCaption_16yux_540", at = "_tableFooter_16yux_562", c = {
6
- tableContainer: V,
7
- table: j,
8
- stickyHeader: K,
9
- tableHeader: U,
10
- tableHead: Y,
11
- tableRow: q,
2
+ import { jsx as h, jsxs as S } from "react/jsx-runtime";
3
+ import { cx as C, cva as X } from "class-variance-authority";
4
+ import { useRef as k, useState as w, useCallback as M, useEffect as I } from "react";
5
+ import './chunks/table.biUlW2U6.css';const A = "_tableContainer_qh5zk_8", V = "_table_qh5zk_8", j = "_stickyHeader_qh5zk_79", K = "_tableHeader_qh5zk_91", U = "_tableHead_qh5zk_70", Y = "_tableRow_qh5zk_59", G = "_tableBody_qh5zk_147", J = "_columnResizer_qh5zk_285", Q = "_tableCell_qh5zk_127", Z = "_pinned_qh5zk_403", tt = "_variantCollection_qh5zk_94", et = "_variantDefault_qh5zk_445", nt = "_densityCompact_qh5zk_537", lt = "_tableCaption_qh5zk_546", at = "_tableFooter_qh5zk_568", c = {
6
+ tableContainer: A,
7
+ table: V,
8
+ stickyHeader: j,
9
+ tableHeader: K,
10
+ tableHead: U,
11
+ tableRow: Y,
12
12
  tableBody: G,
13
13
  columnResizer: J,
14
14
  tableCell: Q,
@@ -18,8 +18,8 @@ import './chunks/table.Dmz7LEk7.css';const V = "_tableContainer_16yux_8", j = "_
18
18
  densityCompact: nt,
19
19
  tableCaption: lt,
20
20
  tableFooter: at
21
- }, D = 12, E = 8, ot = 72, rt = 32;
22
- function P(e) {
21
+ }, v = 12, q = 8, ot = 72, rt = 32;
22
+ function E(e) {
23
23
  var t;
24
24
  return Array.from(((t = e.parentElement) == null ? void 0 : t.children) ?? []).filter(
25
25
  (l) => l instanceof HTMLTableCellElement
@@ -29,24 +29,24 @@ function N(e, t) {
29
29
  var l;
30
30
  return t !== void 0 ? t : (l = e.textContent) != null && l.trim() ? ot : rt;
31
31
  }
32
- function F(e) {
33
- const t = P(e), l = e.closest("table");
32
+ function B(e) {
33
+ const t = E(e), l = e.closest("table");
34
34
  if (l && l.style.tableLayout !== "fixed") {
35
35
  for (const o of t)
36
36
  o.style.width = `${Math.round(o.getBoundingClientRect().width)}px`;
37
- l.style.tableLayout = "fixed", W(t);
37
+ l.style.tableLayout = "fixed", F(t);
38
38
  }
39
39
  return t;
40
40
  }
41
41
  function H(e) {
42
42
  return Number.parseFloat(e.style.width) || 0;
43
43
  }
44
- function W(e) {
44
+ function F(e) {
45
45
  var l;
46
46
  const t = (l = e[0]) == null ? void 0 : l.closest("table");
47
47
  t && (t.style.width = `${e.reduce((o, s) => o + H(s), 0)}px`);
48
48
  }
49
- function w(e, t, l, o = H) {
49
+ function x(e, t, l, o = H) {
50
50
  const s = e[t];
51
51
  if (!s)
52
52
  return 0;
@@ -56,54 +56,54 @@ function w(e, t, l, o = H) {
56
56
  const r = Number.parseFloat(getComputedStyle(d).minWidth);
57
57
  if (!Number.isFinite(r))
58
58
  return u;
59
- const _ = e.slice(0, t).reduce((C, y) => C + o(y), 0);
60
- return Math.max(u, Math.ceil(r - _));
59
+ const m = e.slice(0, t).reduce((p, _) => p + o(_), 0);
60
+ return Math.max(u, Math.ceil(r - m));
61
61
  }
62
- function O(e, t, l, o, s, u, d) {
62
+ function D(e, t, l, o, s, u, d) {
63
63
  const r = e[t];
64
64
  if (!r)
65
65
  return l;
66
- const _ = o === null ? null : e[t + 1], C = o === null || !_ ? Number.POSITIVE_INFINITY : l + o - d, y = Math.round(Math.min(Math.max(l + s, u), C));
67
- return r.style.width = `${y}px`, _ && o !== null && (_.style.width = `${l + o - y}px`), W(e), y;
66
+ const m = o === null ? null : e[t + 1], p = o === null || !m ? Number.POSITIVE_INFINITY : l + o - d, _ = Math.round(Math.min(Math.max(l + s, u), p));
67
+ return r.style.width = `${_}px`, m && o !== null && (m.style.width = `${l + o - _}px`), F(e), _;
68
68
  }
69
69
  function it({ minWidth: e }) {
70
- const t = I(null), l = I(null), [o, s] = g(""), [u, d] = g(null), [r, _] = g(null), C = v(() => {
71
- var f, p;
70
+ const t = k(null), l = k(null), [o, s] = w(""), [u, d] = w(null), [r, m] = w(null), p = M(() => {
71
+ var f, y;
72
72
  const n = (f = t.current) == null ? void 0 : f.closest("th");
73
73
  if (!(n instanceof HTMLTableCellElement))
74
74
  return;
75
- const a = P(n), i = Math.round(n.getBoundingClientRect().width), b = (T) => H(T) || T.getBoundingClientRect().width;
76
- _({
75
+ const a = E(n), i = Math.round(n.getBoundingClientRect().width), b = (g) => H(g) || g.getBoundingClientRect().width;
76
+ m({
77
77
  now: i,
78
- min: Math.round(w(a, a.indexOf(n), e, b)),
79
- max: Math.round(((p = n.closest("table")) == null ? void 0 : p.getBoundingClientRect().width) ?? 0)
80
- }), l.current || d((T) => T === null ? null : i);
78
+ min: Math.round(x(a, a.indexOf(n), e, b)),
79
+ max: Math.round(((y = n.closest("table")) == null ? void 0 : y.getBoundingClientRect().width) ?? 0)
80
+ }), l.current || d((g) => g === null ? null : i);
81
81
  }, [e]);
82
- B(() => {
82
+ I(() => {
83
83
  var n, a, i;
84
- s(((i = (a = (n = t.current) == null ? void 0 : n.closest("th")) == null ? void 0 : a.textContent) == null ? void 0 : i.trim()) ?? ""), C();
85
- }, [C]);
86
- const y = u ?? (r == null ? void 0 : r.now) ?? 0, z = Math.min((r == null ? void 0 : r.min) ?? 0, y), L = Math.max((r == null ? void 0 : r.max) ?? 0, y), R = (n) => {
84
+ s(((i = (a = (n = t.current) == null ? void 0 : n.closest("th")) == null ? void 0 : a.textContent) == null ? void 0 : i.trim()) ?? ""), p();
85
+ }, [p]);
86
+ const _ = u ?? (r == null ? void 0 : r.now) ?? 0, O = Math.min((r == null ? void 0 : r.min) ?? 0, _), P = Math.max((r == null ? void 0 : r.max) ?? 0, _), z = (n) => {
87
87
  document.body.style.cursor = n ? "col-resize" : "", document.body.style.userSelect = n ? "none" : "";
88
- }, M = (n, a, i) => {
88
+ }, R = (n, a, i) => {
89
89
  try {
90
90
  i ? n.setPointerCapture(a) : n.hasPointerCapture(a) && n.releasePointerCapture(a);
91
91
  } catch {
92
92
  }
93
- }, x = v(() => {
93
+ }, T = M(() => {
94
94
  const n = l.current;
95
95
  if (!n)
96
96
  return;
97
- l.current = null, R(!1);
97
+ l.current = null, z(!1);
98
98
  const a = t.current;
99
- a && M(a, n.pointerId, !1);
99
+ a && R(a, n.pointerId, !1);
100
100
  }, []);
101
- B(() => x, [x]);
102
- const k = (n) => {
101
+ I(() => T, [T]);
102
+ const W = (n) => {
103
103
  const a = n.currentTarget.closest("th");
104
104
  if (!(a instanceof HTMLTableCellElement) || n.button !== 0)
105
105
  return;
106
- const i = F(a), b = i.indexOf(a), f = i[b + 1] ?? null;
106
+ const i = B(a), b = i.indexOf(a), f = i[b + 1] ?? null;
107
107
  l.current = {
108
108
  pointerId: n.pointerId,
109
109
  startX: n.clientX,
@@ -111,13 +111,13 @@ function it({ minWidth: e }) {
111
111
  index: b,
112
112
  selfStart: a.getBoundingClientRect().width,
113
113
  neighbourStart: f ? f.getBoundingClientRect().width : null,
114
- minSelf: w(i, b, e),
114
+ minSelf: x(i, b, e),
115
115
  minNeighbour: f ? N(f, void 0) : 0
116
- }, M(n.currentTarget, n.pointerId, !0), R(!0), d(Math.round(l.current.selfStart));
117
- }, $ = (n) => {
116
+ }, R(n.currentTarget, n.pointerId, !0), z(!0), d(Math.round(l.current.selfStart));
117
+ }, L = (n) => {
118
118
  const a = l.current;
119
119
  !a || a.pointerId !== n.pointerId || d(
120
- O(
120
+ D(
121
121
  a.cells,
122
122
  a.index,
123
123
  a.selfStart,
@@ -127,50 +127,50 @@ function it({ minWidth: e }) {
127
127
  a.minNeighbour
128
128
  )
129
129
  );
130
- }, S = (n) => {
131
- const a = n.key === "ArrowLeft" ? -D : n.key === "ArrowRight" ? D : 0;
130
+ }, $ = (n) => {
131
+ const a = n.key === "ArrowLeft" ? -v : n.key === "ArrowRight" ? v : 0;
132
132
  if (a === 0)
133
133
  return;
134
134
  const i = n.currentTarget.closest("th");
135
135
  if (!(i instanceof HTMLTableCellElement))
136
136
  return;
137
137
  n.preventDefault();
138
- const b = F(i), f = b.indexOf(i), p = b[f + 1] ?? null;
138
+ const b = B(i), f = b.indexOf(i), y = b[f + 1] ?? null;
139
139
  d(
140
- O(
140
+ D(
141
141
  b,
142
142
  f,
143
143
  i.getBoundingClientRect().width,
144
- p ? p.getBoundingClientRect().width : null,
144
+ y ? y.getBoundingClientRect().width : null,
145
145
  a,
146
- w(b, f, e),
147
- p ? N(p, void 0) : 0
146
+ x(b, f, e),
147
+ y ? N(y, void 0) : 0
148
148
  )
149
149
  );
150
150
  };
151
- return /* @__PURE__ */ m(
151
+ return /* @__PURE__ */ h(
152
152
  "span",
153
153
  {
154
154
  ref: t,
155
155
  role: "separator",
156
156
  "aria-orientation": "vertical",
157
157
  "aria-label": `${o || "Column"} width${u === null ? "" : `, ${u} pixels`}`,
158
- "aria-valuenow": y,
159
- "aria-valuemin": z,
160
- "aria-valuemax": L,
161
- onFocus: C,
158
+ "aria-valuenow": _,
159
+ "aria-valuemin": O,
160
+ "aria-valuemax": P,
161
+ onFocus: p,
162
162
  tabIndex: 0,
163
163
  className: c.columnResizer,
164
- style: { width: E, insetInlineEnd: -E / 2 },
165
- onPointerDown: k,
166
- onPointerMove: $,
167
- onPointerUp: x,
168
- onPointerCancel: x,
169
- onKeyDown: S
164
+ style: { width: q, insetInlineEnd: -q / 2 },
165
+ onPointerDown: W,
166
+ onPointerMove: L,
167
+ onPointerUp: T,
168
+ onPointerCancel: T,
169
+ onKeyDown: $
170
170
  }
171
171
  );
172
172
  }
173
- const ct = A(c.table, {
173
+ const ct = X(c.table, {
174
174
  variants: {
175
175
  /*
176
176
  * `collection` is the spec's own guide word for the dense arrangement:
@@ -195,47 +195,47 @@ function ft({
195
195
  containerStyle: u,
196
196
  containerRef: d,
197
197
  stickyHeader: r,
198
- ..._
198
+ ...m
199
199
  }) {
200
- return /* @__PURE__ */ m(
200
+ return /* @__PURE__ */ h(
201
201
  "div",
202
202
  {
203
203
  ref: d,
204
- className: h(c.tableContainer, s),
204
+ className: C(c.tableContainer, s),
205
205
  style: u,
206
206
  tabIndex: 0,
207
207
  role: t === void 0 ? void 0 : "region",
208
208
  "aria-label": t,
209
- children: /* @__PURE__ */ m(
209
+ children: /* @__PURE__ */ h(
210
210
  "table",
211
211
  {
212
212
  className: ct({
213
213
  variant: o,
214
- className: h(
214
+ className: C(
215
215
  l === "compact" && c.densityCompact,
216
216
  r && c.stickyHeader,
217
217
  e
218
218
  )
219
219
  }),
220
- ..._
220
+ ...m
221
221
  }
222
222
  )
223
223
  }
224
224
  );
225
225
  }
226
226
  function bt({ className: e, ...t }) {
227
- return /* @__PURE__ */ m("thead", { className: h(c.tableHeader, e), ...t });
227
+ return /* @__PURE__ */ h("thead", { className: C(c.tableHeader, e), ...t });
228
+ }
229
+ function ht({ className: e, ...t }) {
230
+ return /* @__PURE__ */ h("tbody", { className: C(c.tableBody, e), ...t });
228
231
  }
229
232
  function mt({ className: e, ...t }) {
230
- return /* @__PURE__ */ m("tbody", { className: h(c.tableBody, e), ...t });
233
+ return /* @__PURE__ */ h("tfoot", { className: C(c.tableFooter, e), ...t });
231
234
  }
232
235
  function _t({ className: e, ...t }) {
233
- return /* @__PURE__ */ m("tfoot", { className: h(c.tableFooter, e), ...t });
234
- }
235
- function yt({ className: e, ...t }) {
236
- return /* @__PURE__ */ m("tr", { className: h(c.tableRow, e), ...t });
236
+ return /* @__PURE__ */ h("tr", { className: C(c.tableRow, e), ...t });
237
237
  }
238
- function ht({
238
+ function Ct({
239
239
  className: e,
240
240
  pinned: t,
241
241
  resizable: l,
@@ -243,25 +243,25 @@ function ht({
243
243
  children: s,
244
244
  ...u
245
245
  }) {
246
- return /* @__PURE__ */ X("th", { className: h(c.tableHead, t && c.pinned, e), ...u, children: [
246
+ return /* @__PURE__ */ S("th", { className: C(c.tableHead, t && c.pinned, e), ...u, children: [
247
247
  s,
248
- l ? /* @__PURE__ */ m(it, { minWidth: o }) : null
248
+ l ? /* @__PURE__ */ h(it, { minWidth: o }) : null
249
249
  ] });
250
250
  }
251
- function Ct({ className: e, pinned: t, ...l }) {
252
- return /* @__PURE__ */ m("td", { className: h(c.tableCell, t && c.pinned, e), ...l });
251
+ function pt({ className: e, pinned: t, ...l }) {
252
+ return /* @__PURE__ */ h("td", { className: C(c.tableCell, t && c.pinned, e), ...l });
253
253
  }
254
- function pt({ className: e, ...t }) {
255
- return /* @__PURE__ */ m("caption", { className: h(c.tableCaption, e), ...t });
254
+ function yt({ className: e, ...t }) {
255
+ return /* @__PURE__ */ h("caption", { className: C(c.tableCaption, e), ...t });
256
256
  }
257
257
  export {
258
258
  ft as Table,
259
- mt as TableBody,
260
- pt as TableCaption,
261
- Ct as TableCell,
262
- _t as TableFooter,
263
- ht as TableHead,
259
+ ht as TableBody,
260
+ yt as TableCaption,
261
+ pt as TableCell,
262
+ mt as TableFooter,
263
+ Ct as TableHead,
264
264
  bt as TableHeader,
265
- yt as TableRow
265
+ _t as TableRow
266
266
  };
267
267
  //# sourceMappingURL=table.js.map
package/llms.txt CHANGED
@@ -228,9 +228,12 @@ Rules for generated code:
228
228
  plugins are opt-in entries of their own - pagination, text search,
229
229
  ordering, filters, a custom empty state, row numbers, row click, a
230
230
  toolbar actions slot, a row actions column, an actions menu, a column
231
- configuration popover and row selection with a bulk-action bar,
232
- imported from `@gears-frontx/ui-kit/data-grid/<plugin>` or the package
233
- root; state can persist to local/session storage, the URL or memory.
231
+ configuration popover, row selection with a bulk-action bar,
232
+ expandable tree rows and drag-and-drop row reordering, imported from
233
+ `@gears-frontx/ui-kit/data-grid/<plugin>` or the package root, and the
234
+ actions menu's `exportMenuItems` for CSV and (with `exceljs` loaded by
235
+ the app) Excel export; state can persist to local/session storage,
236
+ the URL or memory.
234
237
  - [DataTable](dist/docs/data-table.md): sortable, paginated, optionally
235
238
  row-selectable table built on `Table` + `@tanstack/react-table` v9;
236
239
  productizes upstream's data-table *guide* into a real component
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gears-frontx/ui-kit",
3
- "version": "0.4.6",
3
+ "version": "0.4.9",
4
4
  "description": "Standard React component base for FrontX templates - Base UI behavior, CSS Modules styling on semantic tokens, CVA variants",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",
@@ -42,6 +42,8 @@
42
42
  "contracts:enrollment": "tsx scripts/contracts/check.ts enrollment"
43
43
  },
44
44
  "dependencies": {
45
+ "@atlaskit/pragmatic-drag-and-drop": "1.7.7",
46
+ "@atlaskit/pragmatic-drag-and-drop-hitbox": "1.1.0",
45
47
  "@base-ui/react": "1.6.0",
46
48
  "@shadcn/react": "0.3.0",
47
49
  "@tanstack/react-table": "9.1.2",
@@ -56,9 +58,15 @@
56
58
  "zustand": "5.0.15"
57
59
  },
58
60
  "peerDependencies": {
61
+ "exceljs": "^4.4.0",
59
62
  "react": "^19.0.0",
60
63
  "react-dom": "^19.0.0"
61
64
  },
65
+ "peerDependenciesMeta": {
66
+ "exceljs": {
67
+ "optional": true
68
+ }
69
+ },
62
70
  "devDependencies": {
63
71
  "@globaltypesystem/gts-ts": "0.3.0",
64
72
  "@testing-library/jest-dom": "7.0.1",
@@ -71,6 +79,7 @@
71
79
  "@vitest/coverage-v8": "4.1.4",
72
80
  "ajv": "8.18.0",
73
81
  "esbuild": "0.25.12",
82
+ "exceljs": "4.4.0",
74
83
  "jsdom": "26.1.0",
75
84
  "magic-string": "0.30.21",
76
85
  "react": "19.2.8",
@@ -1 +0,0 @@
1
- ._pagination_7mc4q_16{display:flex;width:100%;justify-content:center}._content_7mc4q_22{display:flex;align-items:center;gap:var(--space-1);margin:0;padding:0;list-style:none}._link_7mc4q_37{box-sizing:border-box;display:inline-flex;height:var(--control-height-xs);align-items:center;justify-content:center;gap:var(--space-1);border:0;border-radius:var(--radius-sm);padding-block:0;padding-inline:var(--space-2);background-color:transparent;color:var(--muted-foreground);font-family:inherit;font-size:var(--text-label-size);line-height:var(--text-label-line-height);font-weight:var(--text-label-weight);letter-spacing:var(--text-label-tracking);text-decoration:none;white-space:nowrap;cursor:pointer;transition:color .15s ease,background-color .15s ease}._link_7mc4q_37:hover{color:var(--foreground)}._link_7mc4q_37:focus-visible{outline:var(--border-width-focus) solid var(--ring);outline-offset:2px}@media(forced-colors:active){._link_7mc4q_37:focus-visible{outline-color:Highlight}}._link_7mc4q_37:disabled,._link_7mc4q_37[data-disabled]{pointer-events:none;opacity:var(--opacity-disabled)}._link_7mc4q_37[data-active]{background-color:var(--background);color:var(--primary)}._link_7mc4q_37._square_7mc4q_120{width:var(--control-height-xs);padding-inline:0}._previousNextText_7mc4q_125{display:none}@media(min-width:640px){._previousNextText_7mc4q_125{display:block}}._icon_7mc4q_138{width:var(--icon-size-sm);height:var(--icon-size-sm)}._chevron_7mc4q_147:dir(rtl){transform:scaleX(-1)}._ellipsis_7mc4q_153{display:flex;align-items:center;justify-content:center;width:var(--control-height-xs);height:var(--control-height-xs);color:var(--muted-foreground)}._srOnly_7mc4q_164{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@@ -1 +0,0 @@
1
- ._cell_r09j0_2:first-child{border-inline-start:var(--_data-grid-table-group-border, 0 solid transparent)}._cell_r09j0_2:last-child{border-inline-end:var(--_data-grid-table-group-border, 0 solid transparent)}._contentRow_r09j0_11{display:flex;align-items:center;inline-size:min-content;min-block-size:var(--space-6)}[data-overflow=nowrap] ._contentRow_r09j0_11,[data-capped] ._contentRow_r09j0_11{max-inline-size:100%}[data-overflow=wrap] ._contentRow_r09j0_11,[data-header-fill] ._contentRow_r09j0_11{inline-size:100%}[data-header-fill] ._content_r09j0_10{flex:1 1 auto}._content_r09j0_10{display:block;min-inline-size:0;white-space:normal}[data-overflow=nowrap] ._content_r09j0_10{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-inline-size:var(--_data-grid-col-max, none)}[data-capped][data-overflow=wrap] ._content_r09j0_10{max-inline-size:var(--_data-grid-col-max, none);overflow-wrap:anywhere}._endSlot_r09j0_10{display:flex;flex-shrink:0;align-items:center;gap:var(--space-1)}._endSlot_r09j0_10:not(:empty){margin-inline-start:var(--space-1)}
@@ -1 +0,0 @@
1
- ._rowNumber_1sdux_1{font-family:var(--font-mono);white-space:nowrap}
@@ -1 +0,0 @@
1
- ._tableContainer_16yux_8{position:relative;width:100%;overflow:auto}._tableContainer_16yux_8:focus-visible{outline:var(--border-width-focus) solid var(--ring);outline-offset:2px}@media(forced-colors:active){._tableContainer_16yux_8:focus-visible{outline:2px solid Highlight;outline-offset:2px}}._table_16yux_8{width:100%;border-collapse:collapse;caption-side:bottom;font-size:var(--text-meta-size);line-height:var(--text-meta-line-height);font-weight:var(--text-meta-weight);letter-spacing:var(--text-meta-tracking)}._stickyHeader_16yux_79{border-collapse:separate;border-spacing:0}:where(._stickyHeader_16yux_79) ._tableHeader_16yux_91 ._tableHead_16yux_70{position:sticky;top:0;z-index:2;background-color:var(--table-header-fill, var(--card))}._tableRow_16yux_59{--_table-row-fill: transparent;background-color:var(--_table-row-fill);transition:color .15s ease,background-color .15s ease}._tableBody_16yux_147:last-child ._tableRow_16yux_59:last-child>*{border-bottom:0}._tableBody_16yux_147 ._tableRow_16yux_59:hover,._tableBody_16yux_147 ._tableRow_16yux_59:has([aria-expanded=true]){--_table-row-fill: var(--card-hover)}._tableBody_16yux_147 ._tableRow_16yux_59[data-state=selected]{--_table-row-fill: var(--selection-subtle)}._tableBody_16yux_147 ._tableRow_16yux_59[data-state=stale]{--_table-row-fill: var(--warning-soft)}._tableBody_16yux_147 ._tableRow_16yux_59[data-state=restricted]{--_table-row-fill: var(--danger-soft)}._tableHead_16yux_70{box-sizing:border-box;position:relative;height:var(--control-height-md);padding:0 var(--space-4);border-bottom:var(--border-width) solid var(--border);text-align:start;vertical-align:middle;font-family:var(--font-mono);font-size:var(--text-mono-size);line-height:var(--text-mono-line-height);font-weight:var(--text-mono-weight);letter-spacing:var(--text-mono-tracking);text-transform:uppercase;white-space:nowrap;color:var(--subtle-foreground)}._tableHead_16yux_70:has([role=checkbox]){padding-inline-end:0}._columnResizer_16yux_279{position:absolute;top:0;bottom:0;z-index:1;padding:0;border:0;background:none;cursor:col-resize;touch-action:none;outline:none}._columnResizer_16yux_279:after{content:"";position:absolute;top:0;bottom:0;left:50%;width:var(--border-width);translate:-50% 0;background-color:var(--border);transition:width var(--duration-micro) var(--ease-standard),background-color var(--duration-micro) var(--ease-standard)}._columnResizer_16yux_279:hover:after,._columnResizer_16yux_279:focus-visible:after,._columnResizer_16yux_279:active:after{width:var(--border-width-focus);background-color:var(--primary)}@media(forced-colors:active){._columnResizer_16yux_279:focus-visible:after{background-color:Highlight}}._tableCell_16yux_127{box-sizing:border-box;padding:var(--space-3) var(--space-4);height:var(--control-height-lg);border-bottom:var(--border-width) solid var(--border);vertical-align:middle;white-space:nowrap}._tableCell_16yux_127:has([role=checkbox]){padding-inline-end:0}._pinned_16yux_397{position:sticky;z-index:1;background-color:var(--table-pinned-fill, var(--card));background-image:linear-gradient(var(--_table-row-fill, transparent),var(--_table-row-fill, transparent))}._tableHead_16yux_70._pinned_16yux_397{z-index:2}:where(._stickyHeader_16yux_79) ._tableHeader_16yux_91 ._tableHead_16yux_70._pinned_16yux_397{z-index:3}._variantCollection_16yux_94 ._tableHead_16yux_70._pinned_16yux_397{z-index:3}._variantCollection_16yux_94{table-layout:fixed;min-width:960px}._variantCollection_16yux_94 ._tableHead_16yux_70{position:sticky;top:0;z-index:2;height:var(--control-height-lg);padding:0 var(--space-3);background-color:var(--card);color:var(--muted-foreground);line-height:16px}._variantCollection_16yux_94 ._tableBody_16yux_147 ._tableRow_16yux_59{height:4rem}._variantCollection_16yux_94 ._tableCell_16yux_127{height:auto;padding:var(--space-3) var(--space-2);font-size:var(--text-meta-size);line-height:var(--text-meta-line-height);white-space:normal}._variantCollection_16yux_94 ._tableBody_16yux_147 ._tableRow_16yux_59:focus-visible{outline:none;box-shadow:inset 0 0 0 var(--border-width-focus) var(--primary)}._variantCollection_16yux_94 ._tableBody_16yux_147 ._tableRow_16yux_59:focus-visible>._pinned_16yux_397:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;border-block:var(--border-width-focus) solid var(--primary)}._variantCollection_16yux_94 ._tableBody_16yux_147 ._tableRow_16yux_59:focus-visible>._pinned_16yux_397:first-child:after{border-inline-start:var(--border-width-focus) solid var(--primary)}._variantCollection_16yux_94 ._tableBody_16yux_147 ._tableRow_16yux_59:focus-visible>._pinned_16yux_397:last-child:after{border-inline-end:var(--border-width-focus) solid var(--primary)}._variantCollection_16yux_94 ._tableBody_16yux_147 ._tableRow_16yux_59[tabindex]{cursor:pointer;transition:background-color var(--duration-micro) var(--ease-standard)}._variantCollection_16yux_94 ._tableBody_16yux_147 ._tableRow_16yux_59[data-pending]{--_table-row-fill: var(--muted);cursor:progress}._densityCompact_16yux_531 ._tableHead_16yux_70{height:var(--control-height-sm)}._densityCompact_16yux_531 ._tableCell_16yux_127{padding-block:var(--space-2);height:auto}._tableCaption_16yux_540{margin-top:var(--space-4);font-size:var(--text-body-size);line-height:var(--text-body-line-height);color:var(--muted-foreground)}._tableFooter_16yux_562{font-weight:var(--text-label-weight)}._tableFooter_16yux_562 ._tableRow_16yux_59{--_table-row-fill: var(--muted)}._tableFooter_16yux_562 ._tableRow_16yux_59:last-child>*{border-bottom:0}