@demokit-ui/demokit 0.1.0

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 (231) hide show
  1. package/README.md +128 -0
  2. package/dist/app/background-decor.d.ts +1 -0
  3. package/dist/app/background-decor.js +38 -0
  4. package/dist/app/container.d.ts +12 -0
  5. package/dist/app/container.js +29 -0
  6. package/dist/app/demo1-shell.d.ts +43 -0
  7. package/dist/app/demo1-shell.js +616 -0
  8. package/dist/app/tweak-panel.d.ts +22 -0
  9. package/dist/app/tweak-panel.js +182 -0
  10. package/dist/components/apexcharts.css +101 -0
  11. package/dist/components/scrollable.css +120 -0
  12. package/dist/config/settings.config.d.ts +2 -0
  13. package/dist/config/settings.config.js +33 -0
  14. package/dist/config/types.d.ts +50 -0
  15. package/dist/config.reui.css +337 -0
  16. package/dist/demos/demo1.css +176 -0
  17. package/dist/index.d.ts +14 -0
  18. package/dist/index.js +484 -0
  19. package/dist/kit/components/chart/chart/chart.d.ts +57 -0
  20. package/dist/kit/components/chart/chart/chart.js +206 -0
  21. package/dist/kit/components/composite/action-bar/action-bar.d.ts +10 -0
  22. package/dist/kit/components/composite/action-bar/action-bar.js +38 -0
  23. package/dist/kit/components/composite/action-card/action-card.d.ts +13 -0
  24. package/dist/kit/components/composite/action-card/action-card.js +35 -0
  25. package/dist/kit/components/composite/activity-feed/activity-feed.d.ts +17 -0
  26. package/dist/kit/components/composite/activity-feed/activity-feed.js +26 -0
  27. package/dist/kit/components/composite/alert-card/alert-card.d.ts +10 -0
  28. package/dist/kit/components/composite/alert-card/alert-card.js +37 -0
  29. package/dist/kit/components/composite/approval-flow/approval-flow.d.ts +51 -0
  30. package/dist/kit/components/composite/approval-flow/approval-flow.js +185 -0
  31. package/dist/kit/components/composite/auth-shell/auth-shell.d.ts +10 -0
  32. package/dist/kit/components/composite/auth-shell/auth-shell.js +32 -0
  33. package/dist/kit/components/composite/board-toolbar/board-toolbar.d.ts +12 -0
  34. package/dist/kit/components/composite/board-toolbar/board-toolbar.js +44 -0
  35. package/dist/kit/components/composite/chart-card/chart-card.d.ts +14 -0
  36. package/dist/kit/components/composite/chart-card/chart-card.js +64 -0
  37. package/dist/kit/components/composite/chart-toolbar/chart-toolbar.d.ts +17 -0
  38. package/dist/kit/components/composite/chart-toolbar/chart-toolbar.js +48 -0
  39. package/dist/kit/components/composite/data-section/data-section.d.ts +17 -0
  40. package/dist/kit/components/composite/data-section/data-section.js +73 -0
  41. package/dist/kit/components/composite/description-grid/description-grid.d.ts +12 -0
  42. package/dist/kit/components/composite/description-grid/description-grid.js +36 -0
  43. package/dist/kit/components/composite/detail-header/detail-header.d.ts +19 -0
  44. package/dist/kit/components/composite/detail-header/detail-header.js +43 -0
  45. package/dist/kit/components/composite/filter-panel/filter-panel.d.ts +18 -0
  46. package/dist/kit/components/composite/filter-panel/filter-panel.js +86 -0
  47. package/dist/kit/components/composite/filter-toolbar/filter-toolbar.d.ts +14 -0
  48. package/dist/kit/components/composite/filter-toolbar/filter-toolbar.js +59 -0
  49. package/dist/kit/components/composite/forgot-password-form/forgot-password-form.d.ts +9 -0
  50. package/dist/kit/components/composite/forgot-password-form/forgot-password-form.js +34 -0
  51. package/dist/kit/components/composite/form-section/form-section.d.ts +9 -0
  52. package/dist/kit/components/composite/form-section/form-section.js +16 -0
  53. package/dist/kit/components/composite/kanban-board/kanban-board.d.ts +50 -0
  54. package/dist/kit/components/composite/kanban-board/kanban-board.js +55 -0
  55. package/dist/kit/components/composite/login-card/login-card.d.ts +33 -0
  56. package/dist/kit/components/composite/login-card/login-card.js +138 -0
  57. package/dist/kit/components/composite/message-list-card/message-list-card.d.ts +20 -0
  58. package/dist/kit/components/composite/message-list-card/message-list-card.js +83 -0
  59. package/dist/kit/components/composite/metric-card/metric-card.d.ts +18 -0
  60. package/dist/kit/components/composite/metric-card/metric-card.js +37 -0
  61. package/dist/kit/components/composite/milestone-card/milestone-card.d.ts +12 -0
  62. package/dist/kit/components/composite/milestone-card/milestone-card.js +33 -0
  63. package/dist/kit/components/composite/oauth-login-buttons/oauth-login-buttons.d.ts +14 -0
  64. package/dist/kit/components/composite/oauth-login-buttons/oauth-login-buttons.js +32 -0
  65. package/dist/kit/components/composite/page-header/page-header.d.ts +12 -0
  66. package/dist/kit/components/composite/page-header/page-header.js +66 -0
  67. package/dist/kit/components/composite/profile-card/profile-card.d.ts +16 -0
  68. package/dist/kit/components/composite/profile-card/profile-card.js +28 -0
  69. package/dist/kit/components/composite/progress-card/progress-card.d.ts +16 -0
  70. package/dist/kit/components/composite/progress-card/progress-card.js +23 -0
  71. package/dist/kit/components/composite/project-card/project-card.d.ts +17 -0
  72. package/dist/kit/components/composite/project-card/project-card.js +46 -0
  73. package/dist/kit/components/composite/shortcut-card/shortcut-card.d.ts +13 -0
  74. package/dist/kit/components/composite/shortcut-card/shortcut-card.js +35 -0
  75. package/dist/kit/components/composite/sprint-summary/sprint-summary.d.ts +15 -0
  76. package/dist/kit/components/composite/sprint-summary/sprint-summary.js +43 -0
  77. package/dist/kit/components/composite/state-panel/state-panel.d.ts +12 -0
  78. package/dist/kit/components/composite/state-panel/state-panel.js +79 -0
  79. package/dist/kit/components/composite/summary-card/summary-card.d.ts +15 -0
  80. package/dist/kit/components/composite/summary-card/summary-card.js +25 -0
  81. package/dist/kit/components/composite/task-card/task-card.d.ts +14 -0
  82. package/dist/kit/components/composite/task-card/task-card.js +49 -0
  83. package/dist/kit/components/composite/timeline/timeline.d.ts +46 -0
  84. package/dist/kit/components/composite/timeline/timeline.js +176 -0
  85. package/dist/kit/components/composite/todo-card/todo-card.d.ts +26 -0
  86. package/dist/kit/components/composite/todo-card/todo-card.js +101 -0
  87. package/dist/kit/components/data-display/avatar/avatar.d.ts +12 -0
  88. package/dist/kit/components/data-display/avatar/avatar.js +61 -0
  89. package/dist/kit/components/data-display/avatar-group/avatar-group.d.ts +22 -0
  90. package/dist/kit/components/data-display/avatar-group/avatar-group.js +184 -0
  91. package/dist/kit/components/data-display/badge/badge.d.ts +29 -0
  92. package/dist/kit/components/data-display/badge/badge.js +203 -0
  93. package/dist/kit/components/data-display/card/card.d.ts +15 -0
  94. package/dist/kit/components/data-display/card/card.js +119 -0
  95. package/dist/kit/components/data-display/data-grid/data-grid-column-filter.d.ts +15 -0
  96. package/dist/kit/components/data-display/data-grid/data-grid-column-filter.js +74 -0
  97. package/dist/kit/components/data-display/data-grid/data-grid-column-header.d.ts +12 -0
  98. package/dist/kit/components/data-display/data-grid/data-grid-column-header.js +171 -0
  99. package/dist/kit/components/data-display/data-grid/data-grid-column-visibility.d.ts +7 -0
  100. package/dist/kit/components/data-display/data-grid/data-grid-column-visibility.js +24 -0
  101. package/dist/kit/components/data-display/data-grid/data-grid-pagination.d.ts +15 -0
  102. package/dist/kit/components/data-display/data-grid/data-grid-pagination.js +132 -0
  103. package/dist/kit/components/data-display/data-grid/data-grid-table-dnd-rows.d.ts +9 -0
  104. package/dist/kit/components/data-display/data-grid/data-grid-table-dnd-rows.js +61 -0
  105. package/dist/kit/components/data-display/data-grid/data-grid-table-dnd.d.ts +5 -0
  106. package/dist/kit/components/data-display/data-grid/data-grid-table-dnd.js +86 -0
  107. package/dist/kit/components/data-display/data-grid/data-grid-table.d.ts +59 -0
  108. package/dist/kit/components/data-display/data-grid/data-grid-table.js +356 -0
  109. package/dist/kit/components/data-display/data-grid/data-grid.d.ts +87 -0
  110. package/dist/kit/components/data-display/data-grid/data-grid.js +87 -0
  111. package/dist/kit/components/data-display/kbd/kbd.d.ts +8 -0
  112. package/dist/kit/components/data-display/kbd/kbd.js +27 -0
  113. package/dist/kit/components/data-display/money-amount/money-amount.d.ts +27 -0
  114. package/dist/kit/components/data-display/money-amount/money-amount.js +91 -0
  115. package/dist/kit/components/data-display/progress/progress.d.ts +6 -0
  116. package/dist/kit/components/data-display/progress/progress.js +29 -0
  117. package/dist/kit/components/data-display/skeleton/skeleton.d.ts +3 -0
  118. package/dist/kit/components/data-display/skeleton/skeleton.js +8 -0
  119. package/dist/kit/components/data-display/sliding-number/sliding-number.d.ts +7 -0
  120. package/dist/kit/components/data-display/sliding-number/sliding-number.js +41 -0
  121. package/dist/kit/components/data-display/stepper/stepper.d.ts +61 -0
  122. package/dist/kit/components/data-display/stepper/stepper.js +230 -0
  123. package/dist/kit/components/data-display/table/table.d.ts +28 -0
  124. package/dist/kit/components/data-display/table/table.js +156 -0
  125. package/dist/kit/components/decorative/aurora-background/aurora-background.d.ts +7 -0
  126. package/dist/kit/components/decorative/aurora-background/aurora-background.js +60 -0
  127. package/dist/kit/components/decorative/grid-background/grid-background.d.ts +22 -0
  128. package/dist/kit/components/decorative/grid-background/grid-background.js +46 -0
  129. package/dist/kit/components/decorative/shimmering-text/shimmering-text.d.ts +29 -0
  130. package/dist/kit/components/decorative/shimmering-text/shimmering-text.js +64 -0
  131. package/dist/kit/components/decorative/text-reveal/text-reveal.d.ts +17 -0
  132. package/dist/kit/components/decorative/text-reveal/text-reveal.js +277 -0
  133. package/dist/kit/components/feedback/alert/alert.d.ts +21 -0
  134. package/dist/kit/components/feedback/alert/alert.js +236 -0
  135. package/dist/kit/components/feedback/alert-dialog/alert-dialog.d.ts +16 -0
  136. package/dist/kit/components/feedback/alert-dialog/alert-dialog.js +117 -0
  137. package/dist/kit/components/feedback/context-menu/context-menu.d.ts +24 -0
  138. package/dist/kit/components/feedback/context-menu/context-menu.js +183 -0
  139. package/dist/kit/components/feedback/dialog/dialog.d.ts +22 -0
  140. package/dist/kit/components/feedback/dialog/dialog.js +120 -0
  141. package/dist/kit/components/feedback/drawer/drawer.d.ts +13 -0
  142. package/dist/kit/components/feedback/drawer/drawer.js +76 -0
  143. package/dist/kit/components/feedback/dropdown-menu/dropdown-menu.d.ts +25 -0
  144. package/dist/kit/components/feedback/dropdown-menu/dropdown-menu.js +200 -0
  145. package/dist/kit/components/feedback/hover-card/hover-card.d.ts +6 -0
  146. package/dist/kit/components/feedback/hover-card/hover-card.js +34 -0
  147. package/dist/kit/components/feedback/popover/popover.d.ts +6 -0
  148. package/dist/kit/components/feedback/popover/popover.js +34 -0
  149. package/dist/kit/components/feedback/sheet/sheet.d.ts +22 -0
  150. package/dist/kit/components/feedback/sheet/sheet.js +128 -0
  151. package/dist/kit/components/feedback/sonner/sonner.d.ts +5 -0
  152. package/dist/kit/components/feedback/sonner/sonner.js +21 -0
  153. package/dist/kit/components/feedback/title-help/title-help.d.ts +10 -0
  154. package/dist/kit/components/feedback/title-help/title-help.js +44 -0
  155. package/dist/kit/components/feedback/tooltip/tooltip.d.ts +11 -0
  156. package/dist/kit/components/feedback/tooltip/tooltip.js +49 -0
  157. package/dist/kit/components/form/button/button.d.ts +23 -0
  158. package/dist/kit/components/form/button/button.js +380 -0
  159. package/dist/kit/components/form/calendar/calendar.d.ts +4 -0
  160. package/dist/kit/components/form/calendar/calendar.js +47 -0
  161. package/dist/kit/components/form/checkbox/checkbox.d.ts +8 -0
  162. package/dist/kit/components/form/checkbox/checkbox.js +39 -0
  163. package/dist/kit/components/form/command/command.d.ts +21 -0
  164. package/dist/kit/components/form/command/command.js +116 -0
  165. package/dist/kit/components/form/datefield/datefield.d.ts +14 -0
  166. package/dist/kit/components/form/datefield/datefield.js +74 -0
  167. package/dist/kit/components/form/file-upload/file-upload.d.ts +56 -0
  168. package/dist/kit/components/form/file-upload/file-upload.js +338 -0
  169. package/dist/kit/components/form/form/form.d.ts +24 -0
  170. package/dist/kit/components/form/form/form.js +86 -0
  171. package/dist/kit/components/form/input/input.d.ts +22 -0
  172. package/dist/kit/components/form/input/input.js +182 -0
  173. package/dist/kit/components/form/label/label.d.ts +8 -0
  174. package/dist/kit/components/form/label/label.js +28 -0
  175. package/dist/kit/components/form/radio-group/radio-group.d.ts +13 -0
  176. package/dist/kit/components/form/radio-group/radio-group.js +79 -0
  177. package/dist/kit/components/form/select/select.d.ts +25 -0
  178. package/dist/kit/components/form/select/select.js +194 -0
  179. package/dist/kit/components/form/slider/slider.d.ts +5 -0
  180. package/dist/kit/components/form/slider/slider.js +34 -0
  181. package/dist/kit/components/form/switch/switch.d.ts +20 -0
  182. package/dist/kit/components/form/switch/switch.js +158 -0
  183. package/dist/kit/components/form/textarea/textarea.d.ts +7 -0
  184. package/dist/kit/components/form/textarea/textarea.js +34 -0
  185. package/dist/kit/components/form/toggle/toggle.d.ts +9 -0
  186. package/dist/kit/components/form/toggle/toggle.js +36 -0
  187. package/dist/kit/components/form/toggle-group/toggle-group.d.ts +7 -0
  188. package/dist/kit/components/form/toggle-group/toggle-group.js +62 -0
  189. package/dist/kit/components/index.d.ts +108 -0
  190. package/dist/kit/components/layout/accordion/accordion.d.ts +13 -0
  191. package/dist/kit/components/layout/accordion/accordion.js +124 -0
  192. package/dist/kit/components/layout/aspect-ratio/aspect-ratio.d.ts +4 -0
  193. package/dist/kit/components/layout/aspect-ratio/aspect-ratio.js +8 -0
  194. package/dist/kit/components/layout/collapsible/collapsible.d.ts +6 -0
  195. package/dist/kit/components/layout/collapsible/collapsible.js +32 -0
  196. package/dist/kit/components/layout/resizable/resizable.d.ts +24 -0
  197. package/dist/kit/components/layout/resizable/resizable.js +32 -0
  198. package/dist/kit/components/layout/scroll-area/scroll-area.d.ts +8 -0
  199. package/dist/kit/components/layout/scroll-area/scroll-area.js +48 -0
  200. package/dist/kit/components/layout/separator/separator.d.ts +4 -0
  201. package/dist/kit/components/layout/separator/separator.js +23 -0
  202. package/dist/kit/components/navigation/accordion-menu/accordion-menu.d.ts +51 -0
  203. package/dist/kit/components/navigation/accordion-menu/accordion-menu.js +290 -0
  204. package/dist/kit/components/navigation/breadcrumb/breadcrumb.d.ts +13 -0
  205. package/dist/kit/components/navigation/breadcrumb/breadcrumb.js +76 -0
  206. package/dist/kit/components/navigation/menubar/menubar.d.ts +25 -0
  207. package/dist/kit/components/navigation/menubar/menubar.js +218 -0
  208. package/dist/kit/components/navigation/navigation-menu/navigation-menu.d.ts +14 -0
  209. package/dist/kit/components/navigation/navigation-menu/navigation-menu.js +137 -0
  210. package/dist/kit/components/navigation/pagination/pagination.d.ts +6 -0
  211. package/dist/kit/components/navigation/pagination/pagination.js +38 -0
  212. package/dist/kit/components/navigation/scrollspy/scrollspy.d.ts +14 -0
  213. package/dist/kit/components/navigation/scrollspy/scrollspy.js +84 -0
  214. package/dist/kit/components/navigation/tabs/tabs.d.ts +16 -0
  215. package/dist/kit/components/navigation/tabs/tabs.js +172 -0
  216. package/dist/kit/themes/theme-toggle.d.ts +1 -0
  217. package/dist/kit/themes/theme-toggle.js +56 -0
  218. package/dist/kit/tokens/chart-palette.d.ts +1 -0
  219. package/dist/kit/tokens/chart-palette.js +12 -0
  220. package/dist/lib/utils.d.ts +8 -0
  221. package/dist/lib/utils.js +8 -0
  222. package/dist/providers/demokit-provider.d.ts +4 -0
  223. package/dist/providers/demokit-provider.js +9 -0
  224. package/dist/providers/settings-provider.d.ts +15 -0
  225. package/dist/providers/settings-provider.js +78 -0
  226. package/dist/providers/theme-provider.d.ts +4 -0
  227. package/dist/providers/theme-provider.js +9 -0
  228. package/dist/providers/tooltips-provider.d.ts +4 -0
  229. package/dist/providers/tooltips-provider.js +8 -0
  230. package/dist/styles.css +237 -0
  231. package/package.json +72 -0
@@ -0,0 +1,203 @@
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import { cn as i } from "../../../../lib/utils.js";
3
+ import { cva as o } from "class-variance-authority";
4
+ import { Slot as c } from "radix-ui";
5
+ const u = o(
6
+ "inline-flex items-center justify-center border border-transparent font-medium focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 [&_svg]:-ms-px [&_svg]:shrink-0",
7
+ {
8
+ variants: {
9
+ variant: {
10
+ primary: "bg-primary text-primary-foreground",
11
+ secondary: "bg-secondary text-secondary-foreground",
12
+ success: "bg-success text-success-foreground",
13
+ warning: "bg-warning text-warning-foreground",
14
+ info: "bg-info text-info-foreground",
15
+ outline: "bg-transparent border border-border text-secondary-foreground",
16
+ destructive: "bg-destructive text-destructive-foreground"
17
+ },
18
+ appearance: {
19
+ default: "",
20
+ light: "",
21
+ outline: "",
22
+ ghost: "border-transparent bg-transparent"
23
+ },
24
+ disabled: {
25
+ true: "opacity-50 pointer-events-none"
26
+ },
27
+ size: {
28
+ lg: "rounded-md px-[0.5rem] h-7 min-w-7 gap-1.5 text-xs [&_svg]:size-3.5",
29
+ md: "rounded-md px-[0.45rem] h-6 min-w-6 gap-1.5 text-xs [&_svg]:size-3.5 ",
30
+ sm: "rounded-sm px-[0.325rem] h-5 min-w-5 gap-1 text-[0.6875rem] leading-[0.75rem] [&_svg]:size-3",
31
+ xs: "rounded-sm px-[0.25rem] h-4 min-w-4 gap-1 text-[0.625rem] leading-[0.5rem] [&_svg]:size-3"
32
+ },
33
+ shape: {
34
+ default: "",
35
+ circle: "rounded-full"
36
+ }
37
+ },
38
+ compoundVariants: [
39
+ /* Light */
40
+ {
41
+ variant: "primary",
42
+ appearance: "light",
43
+ className: "bg-primary-light text-primary"
44
+ },
45
+ {
46
+ variant: "secondary",
47
+ appearance: "light",
48
+ className: "bg-secondary text-secondary-foreground"
49
+ },
50
+ {
51
+ variant: "success",
52
+ appearance: "light",
53
+ className: "bg-success-light text-success"
54
+ },
55
+ {
56
+ variant: "warning",
57
+ appearance: "light",
58
+ className: "bg-warning-light text-warning"
59
+ },
60
+ {
61
+ variant: "info",
62
+ appearance: "light",
63
+ className: "bg-info-light text-info"
64
+ },
65
+ {
66
+ variant: "destructive",
67
+ appearance: "light",
68
+ className: "bg-destructive-light text-destructive"
69
+ },
70
+ /* Outline */
71
+ {
72
+ variant: "primary",
73
+ appearance: "outline",
74
+ className: "border-primary/20 bg-primary-light text-primary"
75
+ },
76
+ {
77
+ variant: "success",
78
+ appearance: "outline",
79
+ className: "border-success/20 bg-success-light text-success"
80
+ },
81
+ {
82
+ variant: "warning",
83
+ appearance: "outline",
84
+ className: "border-warning/20 bg-warning-light text-warning"
85
+ },
86
+ {
87
+ variant: "info",
88
+ appearance: "outline",
89
+ className: "border-info/20 bg-info-light text-info"
90
+ },
91
+ {
92
+ variant: "destructive",
93
+ appearance: "outline",
94
+ className: "border-destructive/20 bg-destructive-light text-destructive"
95
+ },
96
+ /* Ghost */
97
+ {
98
+ variant: "primary",
99
+ appearance: "ghost",
100
+ className: "text-primary"
101
+ },
102
+ {
103
+ variant: "secondary",
104
+ appearance: "ghost",
105
+ className: "text-secondary-foreground"
106
+ },
107
+ {
108
+ variant: "success",
109
+ appearance: "ghost",
110
+ className: "text-success"
111
+ },
112
+ {
113
+ variant: "warning",
114
+ appearance: "ghost",
115
+ className: "text-warning"
116
+ },
117
+ {
118
+ variant: "info",
119
+ appearance: "ghost",
120
+ className: "text-info"
121
+ },
122
+ {
123
+ variant: "destructive",
124
+ appearance: "ghost",
125
+ className: "text-destructive"
126
+ },
127
+ { size: "lg", appearance: "ghost", className: "px-0" },
128
+ { size: "md", appearance: "ghost", className: "px-0" },
129
+ { size: "sm", appearance: "ghost", className: "px-0" },
130
+ { size: "xs", appearance: "ghost", className: "px-0" }
131
+ ],
132
+ defaultVariants: {
133
+ variant: "primary",
134
+ appearance: "default",
135
+ size: "md"
136
+ }
137
+ }
138
+ ), m = o(
139
+ "cursor-pointer transition-all inline-flex items-center justify-center leading-none size-3.5 [&>svg]:opacity-100! [&>svg]:size-3.5 p-0 rounded-md -me-0.5 opacity-60 hover:opacity-100",
140
+ {
141
+ variants: {
142
+ variant: {
143
+ default: ""
144
+ }
145
+ },
146
+ defaultVariants: {
147
+ variant: "default"
148
+ }
149
+ }
150
+ );
151
+ function h({
152
+ className: a,
153
+ variant: e,
154
+ size: t,
155
+ appearance: r,
156
+ shape: s,
157
+ asChild: g = !1,
158
+ disabled: p,
159
+ ...d
160
+ }) {
161
+ const l = g ? c.Slot : "span";
162
+ return /* @__PURE__ */ n(
163
+ l,
164
+ {
165
+ "data-slot": "badge",
166
+ className: i(u({ variant: e, size: t, appearance: r, shape: s, disabled: p }), a),
167
+ ...d
168
+ }
169
+ );
170
+ }
171
+ function y({
172
+ className: a,
173
+ variant: e,
174
+ asChild: t = !1,
175
+ ...r
176
+ }) {
177
+ const s = t ? c.Slot : "span";
178
+ return /* @__PURE__ */ n(
179
+ s,
180
+ {
181
+ "data-slot": "badge-button",
182
+ className: i(m({ variant: e, className: a })),
183
+ role: "button",
184
+ ...r
185
+ }
186
+ );
187
+ }
188
+ function N({ className: a, ...e }) {
189
+ return /* @__PURE__ */ n(
190
+ "span",
191
+ {
192
+ "data-slot": "badge-dot",
193
+ className: i("size-1.5 rounded-full bg-[currentColor] opacity-75", a),
194
+ ...e
195
+ }
196
+ );
197
+ }
198
+ export {
199
+ h as Badge,
200
+ y as BadgeButton,
201
+ N as BadgeDot,
202
+ u as badgeVariants
203
+ };
@@ -0,0 +1,15 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import * as React from 'react';
3
+ declare const cardVariants: (props?: ({
4
+ variant?: "default" | "accent" | null | undefined;
5
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
6
+ declare function Card({ className, variant, ...props }: React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof cardVariants>): import("react/jsx-runtime").JSX.Element;
7
+ declare function CardHeader({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
8
+ declare function CardContent({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
9
+ declare function CardTable({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
10
+ declare function CardFooter({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
11
+ declare function CardHeading({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
12
+ declare function CardToolbar({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
13
+ declare function CardTitle({ className, ...props }: React.HTMLAttributes<HTMLHeadingElement>): import("react/jsx-runtime").JSX.Element;
14
+ declare function CardDescription({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
15
+ export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardHeading, CardTable, CardTitle, CardToolbar };
@@ -0,0 +1,119 @@
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import * as c from "react";
3
+ import { cn as e } from "../../../../lib/utils.js";
4
+ import { cva as n } from "class-variance-authority";
5
+ const i = c.createContext({
6
+ variant: "default"
7
+ // Default value
8
+ }), o = () => {
9
+ const a = c.useContext(i);
10
+ if (!a)
11
+ throw new Error("useCardContext must be used within a Card component");
12
+ return a;
13
+ }, s = n("flex flex-col items-stretch rounded-[var(--dk-radius-card)] text-card-foreground", {
14
+ variants: {
15
+ variant: {
16
+ default: "bg-card border border-border shadow-xs black/5",
17
+ accent: "bg-muted shadow-xs p-1"
18
+ }
19
+ },
20
+ defaultVariants: {
21
+ variant: "default"
22
+ }
23
+ }), l = n(
24
+ "flex min-h-[var(--dk-card-header-height)] flex-wrap items-center justify-between gap-[var(--dk-control-gap)] px-[var(--dk-card-padding-x)]",
25
+ {
26
+ variants: {
27
+ variant: {
28
+ default: "border-b border-border",
29
+ accent: ""
30
+ }
31
+ },
32
+ defaultVariants: {
33
+ variant: "default"
34
+ }
35
+ }
36
+ ), u = n("grow p-[var(--dk-card-padding)]", {
37
+ variants: {
38
+ variant: {
39
+ default: "",
40
+ accent: "rounded-t-[var(--dk-radius-card)] bg-card [&:last-child]:rounded-b-[var(--dk-radius-card)]"
41
+ }
42
+ },
43
+ defaultVariants: {
44
+ variant: "default"
45
+ }
46
+ }), f = n("grid grow", {
47
+ variants: {
48
+ variant: {
49
+ default: "",
50
+ accent: "rounded-[var(--dk-radius-card)] bg-card"
51
+ }
52
+ },
53
+ defaultVariants: {
54
+ variant: "default"
55
+ }
56
+ }), v = n("flex min-h-[var(--dk-card-header-height)] items-center px-[var(--dk-card-padding-x)]", {
57
+ variants: {
58
+ variant: {
59
+ default: "border-t border-border",
60
+ accent: "mt-[2px] rounded-b-[var(--dk-radius-card)] bg-card"
61
+ }
62
+ },
63
+ defaultVariants: {
64
+ variant: "default"
65
+ }
66
+ });
67
+ function g({
68
+ className: a,
69
+ variant: r = "default",
70
+ ...d
71
+ }) {
72
+ return /* @__PURE__ */ t(i.Provider, { value: { variant: r || "default" }, children: /* @__PURE__ */ t("div", { "data-slot": "card", className: e(s({ variant: r }), a), ...d }) });
73
+ }
74
+ function p({ className: a, ...r }) {
75
+ const { variant: d } = o();
76
+ return /* @__PURE__ */ t("div", { "data-slot": "card-header", className: e(l({ variant: d }), a), ...r });
77
+ }
78
+ function C({ className: a, ...r }) {
79
+ const { variant: d } = o();
80
+ return /* @__PURE__ */ t("div", { "data-slot": "card-content", className: e(u({ variant: d }), a), ...r });
81
+ }
82
+ function h({ className: a, ...r }) {
83
+ const { variant: d } = o();
84
+ return /* @__PURE__ */ t("div", { "data-slot": "card-table", className: e(f({ variant: d }), a), ...r });
85
+ }
86
+ function k({ className: a, ...r }) {
87
+ const { variant: d } = o();
88
+ return /* @__PURE__ */ t("div", { "data-slot": "card-footer", className: e(v({ variant: d }), a), ...r });
89
+ }
90
+ function V({ className: a, ...r }) {
91
+ return /* @__PURE__ */ t("div", { "data-slot": "card-heading", className: e("space-y-1", a), ...r });
92
+ }
93
+ function w({ className: a, ...r }) {
94
+ return /* @__PURE__ */ t("div", { "data-slot": "card-toolbar", className: e("flex items-center gap-[var(--dk-control-gap)]", a), ...r });
95
+ }
96
+ function N({ className: a, ...r }) {
97
+ return /* @__PURE__ */ t(
98
+ "h3",
99
+ {
100
+ "data-slot": "card-title",
101
+ className: e("text-base font-semibold leading-none tracking-tight", a),
102
+ ...r
103
+ }
104
+ );
105
+ }
106
+ function T({ className: a, ...r }) {
107
+ return /* @__PURE__ */ t("div", { "data-slot": "card-description", className: e("text-sm text-muted-foreground", a), ...r });
108
+ }
109
+ export {
110
+ g as Card,
111
+ C as CardContent,
112
+ T as CardDescription,
113
+ k as CardFooter,
114
+ p as CardHeader,
115
+ V as CardHeading,
116
+ h as CardTable,
117
+ N as CardTitle,
118
+ w as CardToolbar
119
+ };
@@ -0,0 +1,15 @@
1
+ import { Column } from '@tanstack/react-table';
2
+ import * as React from 'react';
3
+ interface DataGridColumnFilterProps<TData, TValue> {
4
+ column?: Column<TData, TValue>;
5
+ title?: string;
6
+ options: {
7
+ label: string;
8
+ value: string;
9
+ icon?: React.ComponentType<{
10
+ className?: string;
11
+ }>;
12
+ }[];
13
+ }
14
+ declare function DataGridColumnFilter<TData, TValue>({ column, title, options }: DataGridColumnFilterProps<TData, TValue>): import("react/jsx-runtime").JSX.Element;
15
+ export { DataGridColumnFilter, type DataGridColumnFilterProps };
@@ -0,0 +1,74 @@
1
+ import { jsxs as l, jsx as e, Fragment as o } from "react/jsx-runtime";
2
+ import { cn as u } from "../../../../lib/utils.js";
3
+ import { Badge as s } from "../badge/badge.js";
4
+ import { Button as p } from "../../form/button/button.js";
5
+ import { Command as v, CommandInput as x, CommandList as g, CommandEmpty as C, CommandGroup as h, CommandItem as f, CommandSeparator as N } from "../../form/command/command.js";
6
+ import { Popover as y, PopoverTrigger as z, PopoverContent as b } from "../../feedback/popover/popover.js";
7
+ import { Separator as w } from "../../layout/separator/separator.js";
8
+ import { CirclePlus as F, Check as S } from "lucide-react";
9
+ function A({ column: t, title: n, options: i }) {
10
+ const m = t?.getFacetedUniqueValues(), a = new Set(t?.getFilterValue());
11
+ return /* @__PURE__ */ l(y, { children: [
12
+ /* @__PURE__ */ e(z, { asChild: !0, children: /* @__PURE__ */ l(p, { variant: "outline", size: "sm", children: [
13
+ /* @__PURE__ */ e(F, { className: "size-4" }),
14
+ n,
15
+ a?.size > 0 && /* @__PURE__ */ l(o, { children: [
16
+ /* @__PURE__ */ e(w, { orientation: "vertical", className: "mx-2 h-4" }),
17
+ /* @__PURE__ */ e(s, { variant: "secondary", className: "rounded-sm px-1 font-normal lg:hidden", children: a.size }),
18
+ /* @__PURE__ */ e("div", { className: "hidden space-x-1 lg:flex", children: a.size > 2 ? /* @__PURE__ */ l(s, { variant: "secondary", className: "rounded-sm px-1 font-normal", children: [
19
+ a.size,
20
+ " selected"
21
+ ] }) : i.filter((r) => a.has(r.value)).map((r) => /* @__PURE__ */ e(s, { variant: "secondary", className: "rounded-sm px-1 font-normal", children: r.label }, r.value)) })
22
+ ] })
23
+ ] }) }),
24
+ /* @__PURE__ */ e(b, { className: "w-[200px] p-0", align: "start", children: /* @__PURE__ */ l(v, { children: [
25
+ /* @__PURE__ */ e(x, { placeholder: n }),
26
+ /* @__PURE__ */ l(g, { children: [
27
+ /* @__PURE__ */ e(C, { children: "No results found." }),
28
+ /* @__PURE__ */ e(h, { children: i.map((r) => {
29
+ const d = a.has(r.value);
30
+ return /* @__PURE__ */ l(
31
+ f,
32
+ {
33
+ onSelect: () => {
34
+ d ? a.delete(r.value) : a.add(r.value);
35
+ const c = Array.from(a);
36
+ t?.setFilterValue(c.length ? c : void 0);
37
+ },
38
+ children: [
39
+ /* @__PURE__ */ e(
40
+ "div",
41
+ {
42
+ className: u(
43
+ "me-2 flex h-4 w-4 items-center justify-center rounded-sm border border-primary",
44
+ d ? "bg-primary text-primary-foreground" : "opacity-50 [&_svg]:invisible"
45
+ ),
46
+ children: /* @__PURE__ */ e(S, { className: u("h-4 w-4") })
47
+ }
48
+ ),
49
+ r.icon && /* @__PURE__ */ e(r.icon, { className: "mr-2 h-4 w-4 text-muted-foreground" }),
50
+ /* @__PURE__ */ e("span", { children: r.label }),
51
+ m?.get(r.value) && /* @__PURE__ */ e("span", { className: "ms-auto flex h-4 w-4 items-center justify-center font-mono text-xs", children: m.get(r.value) })
52
+ ]
53
+ },
54
+ r.value
55
+ );
56
+ }) }),
57
+ a.size > 0 && /* @__PURE__ */ l(o, { children: [
58
+ /* @__PURE__ */ e(N, {}),
59
+ /* @__PURE__ */ e(h, { children: /* @__PURE__ */ e(
60
+ f,
61
+ {
62
+ onSelect: () => t?.setFilterValue(void 0),
63
+ className: "justify-center text-center",
64
+ children: "Clear filters"
65
+ }
66
+ ) })
67
+ ] })
68
+ ] })
69
+ ] }) })
70
+ ] });
71
+ }
72
+ export {
73
+ A as DataGridColumnFilter
74
+ };
@@ -0,0 +1,12 @@
1
+ import { HTMLAttributes, ReactNode } from 'react';
2
+ import { Column } from '@tanstack/react-table';
3
+ interface DataGridColumnHeaderProps<TData, TValue> extends HTMLAttributes<HTMLDivElement> {
4
+ column: Column<TData, TValue>;
5
+ title?: string;
6
+ icon?: ReactNode;
7
+ pinnable?: boolean;
8
+ filter?: ReactNode;
9
+ visibility?: boolean;
10
+ }
11
+ declare function DataGridColumnHeader<TData, TValue>({ column, title, icon, className, filter, visibility, }: DataGridColumnHeaderProps<TData, TValue>): import("react/jsx-runtime").JSX.Element;
12
+ export { DataGridColumnHeader, type DataGridColumnHeaderProps };
@@ -0,0 +1,171 @@
1
+ import { jsx as t, jsxs as n, Fragment as C } from "react/jsx-runtime";
2
+ import { cn as x } from "../../../../lib/utils.js";
3
+ import { Button as y } from "../../form/button/button.js";
4
+ import { useDataGrid as k } from "./data-grid.js";
5
+ import { DropdownMenu as O, DropdownMenuTrigger as A, DropdownMenuContent as R, DropdownMenuLabel as T, DropdownMenuSeparator as f, DropdownMenuItem as l, DropdownMenuSub as V, DropdownMenuSubTrigger as U, DropdownMenuPortal as j, DropdownMenuSubContent as B, DropdownMenuCheckboxItem as F } from "../../feedback/dropdown-menu/dropdown-menu.js";
6
+ import { ArrowUp as z, Check as m, ArrowDown as P, ArrowLeftToLine as G, ArrowRightToLine as H, ArrowLeft as _, ArrowRight as $, Settings2 as q, ChevronsUpDown as E, PinOff as J } from "lucide-react";
7
+ function ee({
8
+ column: e,
9
+ title: h = "",
10
+ icon: p,
11
+ className: b,
12
+ filter: d,
13
+ visibility: c = !1
14
+ }) {
15
+ const { isLoading: I, table: g, props: s, recordCount: D } = k(), S = (r) => {
16
+ const a = [...g.getState().columnOrder], i = a.indexOf(e.id);
17
+ if (r === "left" && i > 0) {
18
+ const o = [...a], [u] = o.splice(i, 1);
19
+ o.splice(i - 1, 0, u), g.setColumnOrder(o);
20
+ }
21
+ if (r === "right" && i < a.length - 1) {
22
+ const o = [...a], [u] = o.splice(i, 1);
23
+ o.splice(i + 1, 0, u), g.setColumnOrder(o);
24
+ }
25
+ }, w = (r) => {
26
+ const a = g.getState().columnOrder, i = a.indexOf(e.id);
27
+ return r === "left" ? i > 0 : i < a.length - 1;
28
+ }, L = () => /* @__PURE__ */ n(
29
+ "div",
30
+ {
31
+ className: x(
32
+ "text-accent-foreground font-normal inline-flex h-full items-center gap-1.5 text-[0.8125rem] leading-[calc(1.125/0.8125)] [&_svg]:size-3.5 [&_svg]:opacity-60",
33
+ b
34
+ ),
35
+ children: [
36
+ p && p,
37
+ h
38
+ ]
39
+ }
40
+ ), N = () => /* @__PURE__ */ n(
41
+ y,
42
+ {
43
+ variant: "ghost",
44
+ className: x(
45
+ "text-secondary-foreground rounded-md font-normal -ms-2 px-2 h-7 hover:bg-secondary data-[state=open]:bg-secondary hover:text-foreground data-[state=open]:text-foreground",
46
+ b
47
+ ),
48
+ disabled: I || D === 0,
49
+ onClick: () => {
50
+ const r = e.getIsSorted();
51
+ r === "asc" ? e.toggleSorting(!0) : r === "desc" ? e.clearSorting() : e.toggleSorting(!1);
52
+ },
53
+ children: [
54
+ p && p,
55
+ h,
56
+ e.getCanSort() && (e.getIsSorted() === "desc" ? /* @__PURE__ */ t(P, { className: "size-[0.7rem]! mt-px" }) : e.getIsSorted() === "asc" ? /* @__PURE__ */ t(z, { className: "size-[0.7rem]! mt-px" }) : /* @__PURE__ */ t(E, { className: "size-[0.7rem]! mt-px" }))
57
+ ]
58
+ }
59
+ ), M = () => /* @__PURE__ */ t(
60
+ y,
61
+ {
62
+ mode: "icon",
63
+ size: "sm",
64
+ variant: "ghost",
65
+ className: "-me-1 size-7 rounded-md",
66
+ onClick: () => e.pin(!1),
67
+ "aria-label": `Unpin ${h} column`,
68
+ title: `Unpin ${h} column`,
69
+ children: /* @__PURE__ */ t(J, { className: "size-3.5! opacity-50!", "aria-hidden": "true" })
70
+ }
71
+ ), v = () => /* @__PURE__ */ n("div", { className: "flex items-center h-full gap-1.5 justify-between", children: [
72
+ /* @__PURE__ */ n(O, { children: [
73
+ /* @__PURE__ */ t(A, { asChild: !0, children: N() }),
74
+ /* @__PURE__ */ n(R, { className: "w-40", align: "start", children: [
75
+ d && /* @__PURE__ */ t(T, { children: d }),
76
+ d && (e.getCanSort() || e.getCanPin() || c) && /* @__PURE__ */ t(f, {}),
77
+ e.getCanSort() && /* @__PURE__ */ n(C, { children: [
78
+ /* @__PURE__ */ n(
79
+ l,
80
+ {
81
+ onClick: () => {
82
+ e.getIsSorted() === "asc" ? e.clearSorting() : e.toggleSorting(!1);
83
+ },
84
+ disabled: !e.getCanSort(),
85
+ children: [
86
+ /* @__PURE__ */ t(z, { className: "size-3.5!" }),
87
+ /* @__PURE__ */ t("span", { className: "grow", children: "Asc" }),
88
+ e.getIsSorted() === "asc" && /* @__PURE__ */ t(m, { className: "size-4 opacity-100! text-primary" })
89
+ ]
90
+ }
91
+ ),
92
+ /* @__PURE__ */ n(
93
+ l,
94
+ {
95
+ onClick: () => {
96
+ e.getIsSorted() === "desc" ? e.clearSorting() : e.toggleSorting(!0);
97
+ },
98
+ disabled: !e.getCanSort(),
99
+ children: [
100
+ /* @__PURE__ */ t(P, { className: "size-3.5!" }),
101
+ /* @__PURE__ */ t("span", { className: "grow", children: "Desc" }),
102
+ e.getIsSorted() === "desc" && /* @__PURE__ */ t(m, { className: "size-4 opacity-100! text-primary" })
103
+ ]
104
+ }
105
+ )
106
+ ] }),
107
+ (d || e.getCanSort()) && (e.getCanSort() || e.getCanPin() || c) && /* @__PURE__ */ t(f, {}),
108
+ s.tableLayout?.columnsPinnable && e.getCanPin() && /* @__PURE__ */ n(C, { children: [
109
+ /* @__PURE__ */ n(l, { onClick: () => e.pin(e.getIsPinned() === "left" ? !1 : "left"), children: [
110
+ /* @__PURE__ */ t(G, { className: "size-3.5!", "aria-hidden": "true" }),
111
+ /* @__PURE__ */ t("span", { className: "grow", children: "Pin to left" }),
112
+ e.getIsPinned() === "left" && /* @__PURE__ */ t(m, { className: "size-4 opacity-100! text-primary" })
113
+ ] }),
114
+ /* @__PURE__ */ n(l, { onClick: () => e.pin(e.getIsPinned() === "right" ? !1 : "right"), children: [
115
+ /* @__PURE__ */ t(H, { className: "size-3.5!", "aria-hidden": "true" }),
116
+ /* @__PURE__ */ t("span", { className: "grow", children: "Pin to right" }),
117
+ e.getIsPinned() === "right" && /* @__PURE__ */ t(m, { className: "size-4 opacity-100! text-primary" })
118
+ ] })
119
+ ] }),
120
+ s.tableLayout?.columnsMovable && /* @__PURE__ */ n(C, { children: [
121
+ /* @__PURE__ */ t(f, {}),
122
+ /* @__PURE__ */ n(
123
+ l,
124
+ {
125
+ onClick: () => S("left"),
126
+ disabled: !w("left") || e.getIsPinned() !== !1,
127
+ children: [
128
+ /* @__PURE__ */ t(_, { className: "size-3.5!", "aria-hidden": "true" }),
129
+ /* @__PURE__ */ t("span", { children: "Move to Left" })
130
+ ]
131
+ }
132
+ ),
133
+ /* @__PURE__ */ n(
134
+ l,
135
+ {
136
+ onClick: () => S("right"),
137
+ disabled: !w("right") || e.getIsPinned() !== !1,
138
+ children: [
139
+ /* @__PURE__ */ t($, { className: "size-3.5!", "aria-hidden": "true" }),
140
+ /* @__PURE__ */ t("span", { children: "Move to Right" })
141
+ ]
142
+ }
143
+ )
144
+ ] }),
145
+ s.tableLayout?.columnsVisibility && c && (e.getCanSort() || e.getCanPin() || d) && /* @__PURE__ */ t(f, {}),
146
+ s.tableLayout?.columnsVisibility && c && /* @__PURE__ */ n(V, { children: [
147
+ /* @__PURE__ */ n(U, { children: [
148
+ /* @__PURE__ */ t(q, { className: "size-3.5!" }),
149
+ /* @__PURE__ */ t("span", { children: "Columns" })
150
+ ] }),
151
+ /* @__PURE__ */ t(j, { children: /* @__PURE__ */ t(B, { children: g.getAllColumns().filter((r) => typeof r.accessorFn < "u" && r.getCanHide()).map((r) => /* @__PURE__ */ t(
152
+ F,
153
+ {
154
+ checked: r.getIsVisible(),
155
+ onSelect: (a) => a.preventDefault(),
156
+ onCheckedChange: (a) => r.toggleVisibility(!!a),
157
+ className: "capitalize",
158
+ children: r.columnDef.meta?.headerTitle || r.id
159
+ },
160
+ r.id
161
+ )) }) })
162
+ ] })
163
+ ] })
164
+ ] }),
165
+ s.tableLayout?.columnsPinnable && e.getCanPin() && e.getIsPinned() && M()
166
+ ] });
167
+ return s.tableLayout?.columnsMovable || s.tableLayout?.columnsVisibility && c || s.tableLayout?.columnsPinnable && e.getCanPin() || d ? v() : e.getCanSort() || s.tableLayout?.columnsResizable && e.getCanResize() ? /* @__PURE__ */ t("div", { className: "flex items-center h-full", children: N() }) : L();
168
+ }
169
+ export {
170
+ ee as DataGridColumnHeader
171
+ };
@@ -0,0 +1,7 @@
1
+ import { ReactNode } from 'react';
2
+ import { Table } from '@tanstack/react-table';
3
+ declare function DataGridColumnVisibility<TData>({ table, trigger }: {
4
+ table: Table<TData>;
5
+ trigger: ReactNode;
6
+ }): import("react/jsx-runtime").JSX.Element;
7
+ export { DataGridColumnVisibility };
@@ -0,0 +1,24 @@
1
+ import { jsxs as r, jsx as n } from "react/jsx-runtime";
2
+ import { DropdownMenu as d, DropdownMenuTrigger as l, DropdownMenuContent as a, DropdownMenuLabel as s, DropdownMenuCheckboxItem as c } from "../../feedback/dropdown-menu/dropdown-menu.js";
3
+ function g({ table: t, trigger: o }) {
4
+ return /* @__PURE__ */ r(d, { children: [
5
+ /* @__PURE__ */ n(l, { asChild: !0, children: o }),
6
+ /* @__PURE__ */ r(a, { align: "end", className: "min-w-[150px]", children: [
7
+ /* @__PURE__ */ n(s, { className: "font-medium", children: "Toggle Columns" }),
8
+ t.getAllColumns().filter((e) => typeof e.accessorFn < "u" && e.getCanHide()).map((e) => /* @__PURE__ */ n(
9
+ c,
10
+ {
11
+ className: "capitalize",
12
+ checked: e.getIsVisible(),
13
+ onSelect: (i) => i.preventDefault(),
14
+ onCheckedChange: (i) => e.toggleVisibility(!!i),
15
+ children: e.columnDef.meta?.headerTitle || e.id
16
+ },
17
+ e.id
18
+ ))
19
+ ] })
20
+ ] });
21
+ }
22
+ export {
23
+ g as DataGridColumnVisibility
24
+ };
@@ -0,0 +1,15 @@
1
+ import { ReactNode } from 'react';
2
+ interface DataGridPaginationProps {
3
+ sizes?: number[];
4
+ sizesInfo?: string;
5
+ sizesLabel?: string;
6
+ sizesDescription?: string;
7
+ sizesSkeleton?: ReactNode;
8
+ more?: boolean;
9
+ moreLimit?: number;
10
+ info?: string;
11
+ infoSkeleton?: ReactNode;
12
+ className?: string;
13
+ }
14
+ declare function DataGridPagination(props: DataGridPaginationProps): import("react/jsx-runtime").JSX.Element;
15
+ export { DataGridPagination, type DataGridPaginationProps };