@cognite/aura 0.1.7 → 0.3.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 (232) hide show
  1. package/DESIGN.md +34 -92
  2. package/README.md +33 -0
  3. package/dist/colors.css +471 -214
  4. package/dist/components/index.d.ts +17 -33
  5. package/dist/components/index.js +315 -281
  6. package/dist/components/ui/core/accordion/accordion.d.ts +7 -7
  7. package/dist/components/ui/core/accordion/accordion.js +64 -62
  8. package/dist/components/ui/core/action-toolbar/action-toolbar.d.ts +41 -0
  9. package/dist/components/ui/core/action-toolbar/action-toolbar.js +176 -0
  10. package/dist/components/ui/core/alert/alert.d.ts +23 -12
  11. package/dist/components/ui/core/alert/alert.js +123 -120
  12. package/dist/components/ui/core/avatar/avatar.d.ts +12 -8
  13. package/dist/components/ui/core/avatar/avatar.js +10 -10
  14. package/dist/components/ui/core/badge/badge.d.ts +11 -8
  15. package/dist/components/ui/core/badge/badge.js +13 -13
  16. package/dist/components/ui/core/banner/banner.d.ts +18 -28
  17. package/dist/components/ui/core/banner/banner.js +6 -6
  18. package/dist/components/ui/core/breadcrumb/breadcrumb.d.ts +12 -0
  19. package/dist/components/ui/core/breadcrumb/breadcrumb.js +200 -0
  20. package/dist/components/ui/core/button/button.d.ts +8 -5
  21. package/dist/components/ui/core/button/button.js +22 -19
  22. package/dist/components/ui/core/button-group/button-group.d.ts +7 -6
  23. package/dist/components/ui/core/card/card.d.ts +18 -14
  24. package/dist/components/ui/core/card/card.js +131 -87
  25. package/dist/components/ui/core/chart/chart.d.ts +69 -0
  26. package/dist/components/ui/core/chart/chart.js +215 -0
  27. package/dist/components/ui/core/chart/index.d.ts +2 -0
  28. package/dist/components/ui/core/chart/index.js +8 -0
  29. package/dist/components/ui/core/checkbox/checkbox.d.ts +17 -0
  30. package/dist/components/ui/core/checkbox/checkbox.js +133 -0
  31. package/dist/components/ui/core/{badge/badge.metadata.d.ts → checkbox/checkbox.metadata.d.ts} +1 -1
  32. package/dist/components/ui/core/checkbox/checkbox.metadata.js +8 -0
  33. package/dist/components/ui/core/code-block/code-block.d.ts +6 -9
  34. package/dist/components/ui/core/code-block/code-block.js +52 -48
  35. package/dist/components/ui/core/collapsible/collapsible.d.ts +5 -3
  36. package/dist/components/ui/core/combobox/combobox.d.ts +2 -2
  37. package/dist/components/ui/core/command/command.d.ts +11 -78
  38. package/dist/components/ui/core/command/command.js +53 -52
  39. package/dist/components/ui/core/count/count.d.ts +9 -0
  40. package/dist/components/ui/core/count/count.js +32 -0
  41. package/dist/components/ui/core/date-time-pickers/date-range-picker/date-range-picker.d.ts +15 -0
  42. package/dist/components/ui/core/date-time-pickers/date-range-picker/date-range-picker.js +99 -0
  43. package/dist/components/ui/core/date-time-pickers/date-range-picker/index.d.ts +3 -0
  44. package/dist/components/ui/core/date-time-pickers/date-range-picker/types.d.ts +25 -0
  45. package/dist/components/ui/core/date-time-pickers/date-range-picker/use-date-range-picker.d.ts +4 -0
  46. package/dist/components/ui/core/date-time-pickers/date-range-picker/use-date-range-picker.js +82 -0
  47. package/dist/components/ui/core/date-time-pickers/date-time-range-picker/date-time-range-picker.d.ts +17 -0
  48. package/dist/components/ui/core/date-time-pickers/date-time-range-picker/date-time-range-picker.js +190 -0
  49. package/dist/components/ui/core/date-time-pickers/date-time-range-picker/index.d.ts +3 -0
  50. package/dist/components/ui/core/date-time-pickers/date-time-range-picker/types.d.ts +42 -0
  51. package/dist/components/ui/core/date-time-pickers/date-time-range-picker/use-date-time-range-picker.d.ts +3 -0
  52. package/dist/components/ui/core/date-time-pickers/date-time-range-picker/use-date-time-range-picker.js +161 -0
  53. package/dist/components/ui/core/date-time-pickers/index.d.ts +6 -0
  54. package/dist/components/ui/core/date-time-pickers/shared/am-pm-scroll/am-pm-scroll.d.ts +7 -0
  55. package/dist/components/ui/core/date-time-pickers/shared/am-pm-scroll/am-pm-scroll.js +57 -0
  56. package/dist/components/ui/core/date-time-pickers/shared/calendar/calendar.d.ts +13 -0
  57. package/dist/components/ui/core/date-time-pickers/shared/calendar/calendar.js +119 -0
  58. package/dist/components/ui/core/date-time-pickers/shared/calendar-header/calendar-header.d.ts +10 -0
  59. package/dist/components/ui/core/date-time-pickers/shared/calendar-header/calendar-header.js +93 -0
  60. package/dist/components/ui/core/date-time-pickers/shared/constants.d.ts +20 -0
  61. package/dist/components/ui/core/date-time-pickers/shared/constants.js +14 -0
  62. package/dist/components/ui/core/date-time-pickers/shared/date-time-input/date-time-input.d.ts +19 -0
  63. package/dist/components/ui/core/date-time-pickers/shared/date-time-input/date-time-input.js +99 -0
  64. package/dist/components/ui/core/date-time-pickers/shared/date-time-input/range-input-display.d.ts +12 -0
  65. package/dist/components/ui/core/date-time-pickers/shared/date-time-input/range-input-display.js +68 -0
  66. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-popover-state.d.ts +12 -0
  67. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-popover-state.js +40 -0
  68. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-range-date-state.d.ts +29 -0
  69. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-range-date-state.js +63 -0
  70. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-range-step-manager.d.ts +8 -0
  71. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-range-step-manager.js +19 -0
  72. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-time-state.d.ts +17 -0
  73. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-time-state.js +34 -0
  74. package/dist/components/ui/core/date-time-pickers/shared/scroll-cell-classes.d.ts +8 -0
  75. package/dist/components/ui/core/date-time-pickers/shared/scroll-cell-classes.js +7 -0
  76. package/dist/components/ui/core/date-time-pickers/shared/shortcuts-panel/shortcuts-panel.d.ts +13 -0
  77. package/dist/components/ui/core/date-time-pickers/shared/shortcuts-panel/shortcuts-panel.js +31 -0
  78. package/dist/components/ui/core/date-time-pickers/shared/time-picker-scroll/time-picker-scroll.d.ts +10 -0
  79. package/dist/components/ui/core/date-time-pickers/shared/time-picker-scroll/time-picker-scroll.js +52 -0
  80. package/dist/components/ui/core/date-time-pickers/utils/calendar-utils.d.ts +48 -0
  81. package/dist/components/ui/core/date-time-pickers/utils/calendar-utils.js +52 -0
  82. package/dist/components/ui/core/date-time-pickers/utils/date-range-utils.d.ts +26 -0
  83. package/dist/components/ui/core/date-time-pickers/utils/format-utils.d.ts +37 -0
  84. package/dist/components/ui/core/date-time-pickers/utils/segment-utils.d.ts +34 -0
  85. package/dist/components/ui/core/date-time-pickers/utils/time-utils.d.ts +43 -0
  86. package/dist/components/ui/core/date-time-pickers/utils/time-utils.js +15 -0
  87. package/dist/components/ui/core/date-time-pickers/utils/time-validation.d.ts +23 -0
  88. package/dist/components/ui/core/dialog/dialog.d.ts +10 -10
  89. package/dist/components/ui/core/dialog/dialog.js +12 -3
  90. package/dist/components/ui/core/dropdown-menu/dropdown-menu.d.ts +24 -47
  91. package/dist/components/ui/core/dropdown-menu/dropdown-menu.js +125 -123
  92. package/dist/components/ui/core/empty-state/empty-state.context.d.ts +10 -0
  93. package/dist/components/ui/core/empty-state/empty-state.context.js +8 -0
  94. package/dist/components/ui/core/empty-state/empty-state.d.ts +18 -0
  95. package/dist/components/ui/core/empty-state/empty-state.js +139 -0
  96. package/dist/components/ui/core/helper-text/helper-text.d.ts +7 -5
  97. package/dist/components/ui/core/hover-card/hover-card.d.ts +5 -7
  98. package/dist/components/ui/core/hover-card/hover-card.js +26 -25
  99. package/dist/components/ui/core/inline-citation/inline-citation.d.ts +10 -10
  100. package/dist/components/ui/core/inline-citation/inline-citation.js +65 -57
  101. package/dist/components/ui/core/input/input.d.ts +2 -1
  102. package/dist/components/ui/core/input-group/input-group.d.ts +17 -13
  103. package/dist/components/ui/core/input-group/input-group.js +35 -36
  104. package/dist/components/ui/core/kbd/kbd.d.ts +4 -0
  105. package/dist/components/ui/core/kbd/kbd.js +36 -0
  106. package/dist/components/ui/core/label/label.d.ts +3 -2
  107. package/dist/components/ui/core/loader/loader.d.ts +11 -3
  108. package/dist/components/ui/core/loader/loader.js +106 -107
  109. package/dist/components/ui/core/message/message.d.ts +18 -17
  110. package/dist/components/ui/core/message/message.js +15 -13
  111. package/dist/components/ui/core/pagination/pagination-size-context.d.ts +5 -0
  112. package/dist/components/ui/core/pagination/pagination-size-context.js +6 -0
  113. package/dist/components/ui/core/pagination/pagination-teleport.d.ts +11 -0
  114. package/dist/components/ui/core/pagination/pagination-teleport.js +108 -0
  115. package/dist/components/ui/core/pagination/pagination-teleport.utils.d.ts +1 -0
  116. package/dist/components/ui/core/pagination/pagination-teleport.utils.js +7 -0
  117. package/dist/components/ui/core/pagination/pagination.d.ts +41 -0
  118. package/dist/components/ui/core/pagination/pagination.js +335 -0
  119. package/dist/components/ui/core/popover/popover.d.ts +12 -16
  120. package/dist/components/ui/core/popover/popover.js +52 -51
  121. package/dist/components/ui/core/progress/progress.d.ts +7 -4
  122. package/dist/components/ui/core/prompt-input/prompt-input.d.ts +36 -103
  123. package/dist/components/ui/core/prompt-input/prompt-input.js +193 -180
  124. package/dist/components/ui/core/radio-group/radio-group.d.ts +20 -0
  125. package/dist/components/ui/core/radio-group/radio-group.js +113 -0
  126. package/dist/components/ui/core/reasoning/reasoning.d.ts +5 -5
  127. package/dist/components/ui/core/reasoning/reasoning.js +1 -1
  128. package/dist/components/ui/core/scroll-area/scroll-area.d.ts +4 -2
  129. package/dist/components/ui/core/search/search.d.ts +10 -0
  130. package/dist/components/ui/core/search/search.js +99 -0
  131. package/dist/components/ui/core/segmented-control/segmented-control.d.ts +20 -0
  132. package/dist/components/ui/core/segmented-control/segmented-control.js +172 -0
  133. package/dist/components/ui/core/select/select.d.ts +13 -13
  134. package/dist/components/ui/core/select/select.js +13 -10
  135. package/dist/components/ui/core/separator/separator.d.ts +2 -4
  136. package/dist/components/ui/core/separator/separator.js +4 -5
  137. package/dist/components/ui/core/shimmer/shimmer.d.ts +3 -5
  138. package/dist/components/ui/core/shimmer/shimmer.js +25 -26
  139. package/dist/components/ui/core/skeleton/skeleton.d.ts +2 -1
  140. package/dist/components/ui/core/sonner-toast/sonner-toast.d.ts +4 -0
  141. package/dist/components/ui/core/sonner-toast/sonner-toast.js +48 -0
  142. package/dist/components/ui/core/sources/sources.d.ts +3 -3
  143. package/dist/components/ui/core/sources/sources.js +6 -1
  144. package/dist/components/ui/core/switch/switch.d.ts +11 -0
  145. package/dist/components/ui/core/{button/button.metadata.d.ts → switch/switch.metadata.d.ts} +1 -1
  146. package/dist/components/ui/core/tabs/tabs.d.ts +27 -0
  147. package/dist/components/ui/core/tabs/tabs.js +224 -0
  148. package/dist/components/ui/core/tabs/tabs.utils.d.ts +2 -0
  149. package/dist/components/ui/core/tabs/tabs.utils.js +9 -0
  150. package/dist/components/ui/core/textarea/textarea.d.ts +2 -1
  151. package/dist/components/ui/core/textarea/textarea.js +20 -18
  152. package/dist/components/ui/core/tool/tool.d.ts +7 -6
  153. package/dist/components/ui/core/tool/tool.js +48 -44
  154. package/dist/components/ui/core/tooltip/tooltip.d.ts +6 -5
  155. package/dist/components/ui/core/tooltip/tooltip.js +10 -8
  156. package/dist/components/ui/core/topbar/topbar.d.ts +28 -0
  157. package/dist/components/ui/core/topbar/topbar.js +190 -0
  158. package/dist/eslint/index.d.ts +2 -1
  159. package/dist/index.d.ts +1 -1
  160. package/dist/index.js +298 -273
  161. package/dist/lib/portal-container-context.d.ts +2 -1
  162. package/dist/lib/portal-container-context.js +1 -3
  163. package/dist/lib/utils.d.ts +11 -0
  164. package/dist/lib/utils.js +40 -29
  165. package/dist/styles.css +1 -1
  166. package/dist/styles.source.css +75 -8
  167. package/package.json +26 -5
  168. package/dist/components/ui/core/accordion/accordion.metadata.d.ts +0 -2
  169. package/dist/components/ui/core/accordion/accordion.metadata.js +0 -9
  170. package/dist/components/ui/core/alert/alert.metadata.d.ts +0 -2
  171. package/dist/components/ui/core/alert/alert.metadata.js +0 -9
  172. package/dist/components/ui/core/avatar/avatar.metadata.d.ts +0 -8
  173. package/dist/components/ui/core/avatar/avatar.metadata.js +0 -9
  174. package/dist/components/ui/core/badge/badge.metadata.js +0 -8
  175. package/dist/components/ui/core/banner/banner.metadata.d.ts +0 -2
  176. package/dist/components/ui/core/banner/banner.metadata.js +0 -9
  177. package/dist/components/ui/core/button/button.metadata.js +0 -9
  178. package/dist/components/ui/core/button-group/button-group.metadata.d.ts +0 -2
  179. package/dist/components/ui/core/button-group/button-group.metadata.js +0 -8
  180. package/dist/components/ui/core/card/card.metadata.d.ts +0 -8
  181. package/dist/components/ui/core/card/card.metadata.js +0 -9
  182. package/dist/components/ui/core/code-block/code-block.metadata.d.ts +0 -2
  183. package/dist/components/ui/core/code-block/code-block.metadata.js +0 -8
  184. package/dist/components/ui/core/collapsible/collapsible.metadata.d.ts +0 -2
  185. package/dist/components/ui/core/collapsible/collapsible.metadata.js +0 -9
  186. package/dist/components/ui/core/combobox/combobox.metadata.d.ts +0 -2
  187. package/dist/components/ui/core/command/command.metadata.d.ts +0 -2
  188. package/dist/components/ui/core/command/command.metadata.js +0 -9
  189. package/dist/components/ui/core/dialog/dialog.metadata.d.ts +0 -2
  190. package/dist/components/ui/core/dialog/dialog.metadata.js +0 -9
  191. package/dist/components/ui/core/dropdown-menu/dropdown-menu.metadata.d.ts +0 -2
  192. package/dist/components/ui/core/dropdown-menu/dropdown-menu.metadata.js +0 -9
  193. package/dist/components/ui/core/helper-text/helper-text.metadata.d.ts +0 -2
  194. package/dist/components/ui/core/helper-text/helper-text.metadata.js +0 -9
  195. package/dist/components/ui/core/hover-card/hover-card.metadata.d.ts +0 -2
  196. package/dist/components/ui/core/hover-card/hover-card.metadata.js +0 -8
  197. package/dist/components/ui/core/inline-citation/inline-citation.metadata.d.ts +0 -2
  198. package/dist/components/ui/core/inline-citation/inline-citation.metadata.js +0 -8
  199. package/dist/components/ui/core/input/input.metadata.d.ts +0 -2
  200. package/dist/components/ui/core/input/input.metadata.js +0 -9
  201. package/dist/components/ui/core/input-group/input-group.metadata.d.ts +0 -2
  202. package/dist/components/ui/core/input-group/input-group.metadata.js +0 -9
  203. package/dist/components/ui/core/label/label.metadata.d.ts +0 -2
  204. package/dist/components/ui/core/label/label.metadata.js +0 -9
  205. package/dist/components/ui/core/loader/loader.metadata.d.ts +0 -2
  206. package/dist/components/ui/core/loader/loader.metadata.js +0 -9
  207. package/dist/components/ui/core/message/message.metadata.d.ts +0 -2
  208. package/dist/components/ui/core/popover/popover.metadata.d.ts +0 -2
  209. package/dist/components/ui/core/popover/popover.metadata.js +0 -9
  210. package/dist/components/ui/core/progress/progress.metadata.d.ts +0 -2
  211. package/dist/components/ui/core/progress/progress.metadata.js +0 -9
  212. package/dist/components/ui/core/prompt-input/prompt-input.metadata.d.ts +0 -2
  213. package/dist/components/ui/core/prompt-input/prompt-input.metadata.js +0 -9
  214. package/dist/components/ui/core/reasoning/reasoning.metadata.d.ts +0 -2
  215. package/dist/components/ui/core/reasoning/reasoning.metadata.js +0 -8
  216. package/dist/components/ui/core/scroll-area/scroll-area.metadata.d.ts +0 -2
  217. package/dist/components/ui/core/scroll-area/scroll-area.metadata.js +0 -9
  218. package/dist/components/ui/core/select/select.metadata.d.ts +0 -2
  219. package/dist/components/ui/core/select/select.metadata.js +0 -9
  220. package/dist/components/ui/core/separator/separator.metadata.d.ts +0 -2
  221. package/dist/components/ui/core/separator/separator.metadata.js +0 -8
  222. package/dist/components/ui/core/shimmer/shimmer.metadata.d.ts +0 -2
  223. package/dist/components/ui/core/shimmer/shimmer.metadata.js +0 -9
  224. package/dist/components/ui/core/skeleton/skeleton.metadata.d.ts +0 -2
  225. package/dist/components/ui/core/skeleton/skeleton.metadata.js +0 -9
  226. package/dist/components/ui/core/sources/sources.metadata.d.ts +0 -2
  227. package/dist/components/ui/core/textarea/textarea.metadata.d.ts +0 -2
  228. package/dist/components/ui/core/textarea/textarea.metadata.js +0 -9
  229. package/dist/components/ui/core/tool/tool.metadata.d.ts +0 -2
  230. package/dist/components/ui/core/tool/tool.metadata.js +0 -8
  231. package/dist/components/ui/core/tooltip/tooltip.metadata.d.ts +0 -8
  232. package/dist/components/ui/core/tooltip/tooltip.metadata.js +0 -9
@@ -0,0 +1,335 @@
1
+ import { jsx as i, jsxs as L } from "react/jsx-runtime";
2
+ import { forwardRef as r } from "react";
3
+ import { IconDots as I, IconChevronsLeft as w, IconChevronsRight as C, IconChevronRight as T, IconChevronLeft as B } from "@tabler/icons-react";
4
+ import { cva as x } from "class-variance-authority";
5
+ import { cn as l } from "../../../../lib/utils.js";
6
+ import { Button as z } from "../button/button.js";
7
+ import { SelectTrigger as _ } from "../select/select.js";
8
+ import { PaginationSizeContext as k, usePaginationSize as g } from "./pagination-size-context.js";
9
+ const y = x(
10
+ "text-base font-normal leading-5 tracking-tightest text-secondary-foreground hover:bg-active-muted-background-hover hover:text-active-foreground focus-visible:bg-active-muted-background focus-visible:text-active-foreground focus-visible:shadow-focus-ring",
11
+ {
12
+ variants: {
13
+ size: {
14
+ default: "",
15
+ small: "text-sm leading-4.5 tracking-tight"
16
+ },
17
+ active: {
18
+ true: "bg-active-muted-background text-active-foreground",
19
+ false: ""
20
+ }
21
+ },
22
+ defaultVariants: {
23
+ size: "default",
24
+ active: !1
25
+ }
26
+ }
27
+ ), R = x(
28
+ "flex items-center justify-center text-secondary-foreground",
29
+ {
30
+ variants: {
31
+ size: {
32
+ default: "h-9 w-9",
33
+ small: "h-7 w-7"
34
+ }
35
+ },
36
+ defaultVariants: {
37
+ size: "default"
38
+ }
39
+ }
40
+ ), W = x(
41
+ [
42
+ "w-auto whitespace-nowrap min-h-0 py-1.75 text-sm leading-4.5 tracking-normal font-medium",
43
+ "bg-background text-foreground border-border-emphasized",
44
+ "hover:bg-accent-background hover:border-border-emphasized",
45
+ "focus-visible:bg-background focus-visible:text-foreground focus-visible:border-border-emphasized",
46
+ "dark:bg-background dark:hover:bg-accent-background"
47
+ ],
48
+ {
49
+ variants: {
50
+ size: {
51
+ default: "h-9 gap-2 rounded-lg px-3 min-w-19",
52
+ sm: "h-7 gap-1.5 rounded-md px-2 min-w-16"
53
+ }
54
+ },
55
+ defaultVariants: {
56
+ size: "default"
57
+ }
58
+ }
59
+ ), E = {
60
+ small: "max-w-7",
61
+ default: "max-w-9"
62
+ }, V = {
63
+ small: "min-w-7",
64
+ default: "min-w-9"
65
+ }, N = (a = "default") => {
66
+ const t = a === "small" ? "sm" : "default", e = a === "small" ? "rounded-md" : "rounded-lg", n = E[a], o = V[a];
67
+ return {
68
+ buttonSize: t,
69
+ radiusClass: e,
70
+ iconButtonWidth: n,
71
+ textLinkWidth: o
72
+ };
73
+ }, j = r(({ className: a, size: t = "default", ...e }, n) => /* @__PURE__ */ i(k.Provider, { value: t, children: /* @__PURE__ */ i(
74
+ "nav",
75
+ {
76
+ ref: n,
77
+ "aria-label": "pagination",
78
+ "data-slot": "pagination",
79
+ className: l("mx-auto flex w-full justify-center gap-2", a),
80
+ ...e
81
+ }
82
+ ) }));
83
+ j.displayName = "Pagination";
84
+ const G = r(({ className: a, size: t, ...e }, n) => {
85
+ const o = g(), s = t ?? o;
86
+ return /* @__PURE__ */ i(k.Provider, { value: s, children: /* @__PURE__ */ i(
87
+ "ul",
88
+ {
89
+ ref: n,
90
+ "data-slot": "pagination-content",
91
+ "data-size": s,
92
+ className: l("flex flex-row items-center gap-1", a),
93
+ ...e
94
+ }
95
+ ) });
96
+ });
97
+ G.displayName = "PaginationContent";
98
+ const F = r((a, t) => /* @__PURE__ */ i("li", { ref: t, "data-slot": "pagination-item", ...a }));
99
+ F.displayName = "PaginationItem";
100
+ const H = r(
101
+ ({ className: a, ...t }, e) => /* @__PURE__ */ i(
102
+ "output",
103
+ {
104
+ ref: e,
105
+ "data-slot": "pagination-status",
106
+ className: l(
107
+ "flex items-center text-sm leading-4.5 tracking-tight font-normal text-muted-foreground",
108
+ a
109
+ ),
110
+ ...t
111
+ }
112
+ )
113
+ );
114
+ H.displayName = "PaginationStatus";
115
+ const O = r(({ className: a, size: t, style: e, ...n }, o) => {
116
+ const d = g() === "small" && t === void 0, c = t ?? (d ? "sm" : "default");
117
+ return /* @__PURE__ */ i(
118
+ _,
119
+ {
120
+ ref: o,
121
+ size: c,
122
+ "data-slot": "pagination-select-trigger",
123
+ style: e,
124
+ className: l(
125
+ W({ size: c }),
126
+ a
127
+ ),
128
+ ...n
129
+ }
130
+ );
131
+ });
132
+ O.displayName = "PaginationSelectTrigger";
133
+ const Y = r(
134
+ ({ children: a, className: t, isActive: e, isDisabled: n, onClick: o, size: s, ...d }, c) => {
135
+ const v = g(), m = s ?? v, { buttonSize: p, radiusClass: h, textLinkWidth: P } = N(m), b = (f) => {
136
+ if (n) {
137
+ f.preventDefault();
138
+ return;
139
+ }
140
+ o?.(f);
141
+ };
142
+ return /* @__PURE__ */ i(
143
+ z,
144
+ {
145
+ variant: "ghost",
146
+ size: p,
147
+ "data-slot": "pagination-link",
148
+ "data-active": e,
149
+ className: l(
150
+ h,
151
+ P,
152
+ y({ size: m, active: e }),
153
+ n && "pointer-events-none opacity-50",
154
+ t
155
+ ),
156
+ render: /* @__PURE__ */ i(
157
+ "a",
158
+ {
159
+ ref: c,
160
+ "aria-current": e ? "page" : void 0,
161
+ "aria-disabled": n || void 0,
162
+ onClick: b,
163
+ tabIndex: n ? -1 : void 0,
164
+ ...d,
165
+ children: a
166
+ }
167
+ )
168
+ }
169
+ );
170
+ }
171
+ );
172
+ Y.displayName = "PaginationLink";
173
+ const u = r(
174
+ ({
175
+ ariaLabel: a,
176
+ className: t,
177
+ dataSlot: e,
178
+ icon: n,
179
+ isDisabled: o,
180
+ onClick: s,
181
+ size: d,
182
+ ...c
183
+ }, v) => {
184
+ const m = g(), p = d ?? m, { buttonSize: h, radiusClass: P, iconButtonWidth: b } = N(p), f = (S) => {
185
+ if (o) {
186
+ S.preventDefault();
187
+ return;
188
+ }
189
+ s?.(S);
190
+ };
191
+ return /* @__PURE__ */ i(
192
+ z,
193
+ {
194
+ variant: "ghost",
195
+ size: h,
196
+ "data-slot": e,
197
+ className: l(
198
+ P,
199
+ b,
200
+ y({ size: p, active: !1 }),
201
+ o && "pointer-events-none opacity-50",
202
+ t
203
+ ),
204
+ render: /* @__PURE__ */ i(
205
+ "a",
206
+ {
207
+ ref: v,
208
+ "aria-label": a,
209
+ "aria-disabled": o || void 0,
210
+ onClick: f,
211
+ tabIndex: o ? -1 : void 0,
212
+ ...c,
213
+ children: n
214
+ }
215
+ )
216
+ }
217
+ );
218
+ }
219
+ );
220
+ u.displayName = "PaginationIconLink";
221
+ const Z = r(({ className: a, size: t, label: e = "Go to first page", ...n }, o) => /* @__PURE__ */ i(
222
+ u,
223
+ {
224
+ ref: o,
225
+ dataSlot: "pagination-first",
226
+ ariaLabel: e,
227
+ icon: /* @__PURE__ */ i(w, {}),
228
+ className: a,
229
+ size: t,
230
+ ...n
231
+ }
232
+ ));
233
+ Z.displayName = "PaginationFirst";
234
+ const K = r(({ className: a, size: t, label: e = "Go to previous page", ...n }, o) => /* @__PURE__ */ i(
235
+ u,
236
+ {
237
+ ref: o,
238
+ dataSlot: "pagination-previous",
239
+ ariaLabel: e,
240
+ icon: /* @__PURE__ */ i(B, {}),
241
+ className: a,
242
+ size: t,
243
+ ...n
244
+ }
245
+ ));
246
+ K.displayName = "PaginationPrevious";
247
+ const M = r(({ className: a, size: t, label: e = "Go to next page", ...n }, o) => /* @__PURE__ */ i(
248
+ u,
249
+ {
250
+ ref: o,
251
+ dataSlot: "pagination-next",
252
+ ariaLabel: e,
253
+ icon: /* @__PURE__ */ i(T, {}),
254
+ className: a,
255
+ size: t,
256
+ ...n
257
+ }
258
+ ));
259
+ M.displayName = "PaginationNext";
260
+ const U = r(({ className: a, size: t, label: e = "Go to last page", ...n }, o) => /* @__PURE__ */ i(
261
+ u,
262
+ {
263
+ ref: o,
264
+ dataSlot: "pagination-last",
265
+ ariaLabel: e,
266
+ icon: /* @__PURE__ */ i(C, {}),
267
+ className: a,
268
+ size: t,
269
+ ...n
270
+ }
271
+ ));
272
+ U.displayName = "PaginationLast";
273
+ const X = r(({ className: a, size: t, label: e = "More pages", ...n }, o) => {
274
+ const s = g(), d = t ?? s, { iconButtonWidth: c } = N(d);
275
+ return /* @__PURE__ */ L(
276
+ "span",
277
+ {
278
+ ref: o,
279
+ "data-slot": "pagination-ellipsis",
280
+ className: l(
281
+ c,
282
+ R({ size: d }),
283
+ a
284
+ ),
285
+ ...n,
286
+ children: [
287
+ /* @__PURE__ */ i(I, { "aria-hidden": "true", className: "h-4 w-4" }),
288
+ /* @__PURE__ */ i("span", { className: "sr-only", children: e })
289
+ ]
290
+ }
291
+ );
292
+ });
293
+ X.displayName = "PaginationEllipsis";
294
+ const q = r(
295
+ ({ className: a, ...t }, e) => /* @__PURE__ */ i(
296
+ "li",
297
+ {
298
+ ref: e,
299
+ "data-slot": "pagination-results-per-page",
300
+ className: l("flex items-center gap-2 pl-3", a),
301
+ ...t
302
+ }
303
+ )
304
+ );
305
+ q.displayName = "PaginationResultsPerPage";
306
+ const J = r(
307
+ ({ className: a, ...t }, e) => /* @__PURE__ */ i(
308
+ "span",
309
+ {
310
+ ref: e,
311
+ "data-slot": "pagination-results-per-page-label",
312
+ className: l(
313
+ "text-sm leading-4.5 tracking-tight font-normal text-muted-foreground",
314
+ a
315
+ ),
316
+ ...t
317
+ }
318
+ )
319
+ );
320
+ J.displayName = "PaginationResultsPerPageLabel";
321
+ export {
322
+ j as Pagination,
323
+ G as PaginationContent,
324
+ X as PaginationEllipsis,
325
+ Z as PaginationFirst,
326
+ F as PaginationItem,
327
+ U as PaginationLast,
328
+ Y as PaginationLink,
329
+ M as PaginationNext,
330
+ K as PaginationPrevious,
331
+ q as PaginationResultsPerPage,
332
+ J as PaginationResultsPerPageLabel,
333
+ O as PaginationSelectTrigger,
334
+ H as PaginationStatus
335
+ };
@@ -1,17 +1,13 @@
1
- import { Popover as PopoverPrimitive } from '@base-ui/react/popover';
2
- declare function Popover(props: PopoverPrimitive.Root.Props): import("react/jsx-runtime").JSX.Element;
3
- declare namespace Popover {
4
- var displayName: string;
5
- }
6
- declare function PopoverTrigger({ children, ...props }: PopoverPrimitive.Trigger.Props): import("react/jsx-runtime").JSX.Element;
7
- declare const PopoverHeader: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
8
- declare const PopoverHeaderContent: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
9
- declare const PopoverTitle: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref"> & import('react').RefAttributes<HTMLHeadingElement>>;
10
- declare const PopoverDescription: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref"> & import('react').RefAttributes<HTMLParagraphElement>>;
11
- declare const PopoverSlot: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
12
- declare const PopoverClose: import('react').ForwardRefExoticComponent<Omit<Omit<import('@base-ui/react').ButtonProps & import('class-variance-authority').VariantProps<(props?: ({
13
- variant?: "default" | "secondary" | "outline" | "ghost" | "destructive" | null | undefined;
14
- size?: "icon" | "default" | "sm" | "lg" | "icon-sm" | "icon-lg" | null | undefined;
15
- } & import('class-variance-authority/types').ClassProp) | undefined) => string>, "ref"> & import('react').RefAttributes<HTMLElement>, "ref"> & import('react').RefAttributes<HTMLElement>>;
16
- declare const PopoverContent: import('react').ForwardRefExoticComponent<Omit<import('@base-ui/react').PopoverPopupProps & Pick<import('@base-ui/react').PopoverPositionerProps, "align" | "alignOffset" | "side" | "sideOffset">, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
1
+ import { ForwardRefExoticComponent, RefAttributes, ComponentProps, ReactNode } from 'react';
2
+ import { PopoverPopupProps, PopoverPositionerProps, Popover as PopoverPrimitive } from '@base-ui/react/popover';
3
+ import { Button } from '../button/button';
4
+ declare function Popover(props: PopoverPrimitive.Root.Props): ReactNode;
5
+ declare function PopoverTrigger({ children, ...props }: PopoverPrimitive.Trigger.Props): ReactNode;
6
+ declare const PopoverHeader: ForwardRefExoticComponent<ComponentProps<'div'> & RefAttributes<HTMLDivElement>>;
7
+ declare const PopoverHeaderContent: ForwardRefExoticComponent<ComponentProps<'div'> & RefAttributes<HTMLDivElement>>;
8
+ declare const PopoverTitle: ForwardRefExoticComponent<ComponentProps<'h3'> & RefAttributes<HTMLHeadingElement>>;
9
+ declare const PopoverDescription: ForwardRefExoticComponent<ComponentProps<'p'> & RefAttributes<HTMLParagraphElement>>;
10
+ declare const PopoverSlot: ForwardRefExoticComponent<ComponentProps<'div'> & RefAttributes<HTMLDivElement>>;
11
+ declare const PopoverClose: ForwardRefExoticComponent<Omit<ComponentProps<typeof Button>, 'ref'> & RefAttributes<HTMLElement>>;
12
+ declare const PopoverContent: ForwardRefExoticComponent<Omit<PopoverPopupProps & Pick<PopoverPositionerProps, 'align' | 'alignOffset' | 'side' | 'sideOffset'>, 'ref'> & RefAttributes<HTMLDivElement>>;
17
13
  export { Popover, PopoverClose, PopoverContent, PopoverDescription, PopoverHeader, PopoverHeaderContent, PopoverSlot, PopoverTitle, PopoverTrigger, };
@@ -1,21 +1,20 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
2
  import { forwardRef as a } from "react";
3
- import { Popover as i } from "@base-ui/react/popover";
4
- import { IconX as c } from "@tabler/icons-react";
3
+ import { Popover as n } from "@base-ui/react/popover";
4
+ import { IconX as m } from "@tabler/icons-react";
5
5
  import { usePortalContainer as f } from "../../../../lib/portal-container-context.js";
6
6
  import { cn as s } from "../../../../lib/utils.js";
7
7
  import { Button as v } from "../button/button.js";
8
- function u(e) {
9
- return /* @__PURE__ */ r(i.Root, { "data-slot": "popover", ...e });
8
+ function j(e) {
9
+ return /* @__PURE__ */ r(n.Root, { "data-slot": "popover", ...e });
10
10
  }
11
- u.displayName = "Popover";
12
11
  function D({
13
12
  children: e,
14
13
  ...o
15
14
  }) {
16
- return /* @__PURE__ */ r(i.Trigger, { "data-slot": "popover-trigger", ...o, children: e });
15
+ return /* @__PURE__ */ r(n.Trigger, { "data-slot": "popover-trigger", ...o, children: e });
17
16
  }
18
- const g = a(
17
+ const u = a(
19
18
  ({ className: e, ...o }, t) => /* @__PURE__ */ r(
20
19
  "div",
21
20
  {
@@ -29,8 +28,8 @@ const g = a(
29
28
  }
30
29
  )
31
30
  );
32
- g.displayName = "PopoverHeader";
33
- const h = a(
31
+ u.displayName = "PopoverHeader";
32
+ const g = a(
34
33
  ({ className: e, ...o }, t) => /* @__PURE__ */ r(
35
34
  "div",
36
35
  {
@@ -44,12 +43,12 @@ const h = a(
44
43
  }
45
44
  )
46
45
  );
47
- h.displayName = "PopoverHeaderContent";
48
- const P = a(
49
- ({ className: e, children: o, ...t }, n) => /* @__PURE__ */ r(
46
+ g.displayName = "PopoverHeaderContent";
47
+ const h = a(
48
+ ({ className: e, children: o, ...t }, i) => /* @__PURE__ */ r(
50
49
  "h3",
51
50
  {
52
- ref: n,
51
+ ref: i,
53
52
  "data-slot": "popover-title",
54
53
  className: s(
55
54
  "flex h-7 flex-1 flex-col justify-center self-stretch overflow-hidden text-ellipsis whitespace-nowrap text-base font-medium text-foreground leading-5 tracking-tighter",
@@ -60,21 +59,23 @@ const P = a(
60
59
  }
61
60
  )
62
61
  );
63
- P.displayName = "PopoverTitle";
64
- const x = a(({ className: e, ...o }, t) => /* @__PURE__ */ r(
65
- "p",
66
- {
67
- ref: t,
68
- "data-slot": "popover-description",
69
- className: s(
70
- "self-stretch text-sm font-normal text-secondary-foreground leading-[18px] tracking-tight",
71
- e
72
- ),
73
- ...o
74
- }
75
- ));
76
- x.displayName = "PopoverDescription";
77
- const N = a(
62
+ h.displayName = "PopoverTitle";
63
+ const P = a(
64
+ ({ className: e, ...o }, t) => /* @__PURE__ */ r(
65
+ "p",
66
+ {
67
+ ref: t,
68
+ "data-slot": "popover-description",
69
+ className: s(
70
+ "self-stretch text-sm font-normal text-secondary-foreground leading-[18px] tracking-tight",
71
+ e
72
+ ),
73
+ ...o
74
+ }
75
+ )
76
+ );
77
+ P.displayName = "PopoverDescription";
78
+ const x = a(
78
79
  ({ className: e, ...o }, t) => /* @__PURE__ */ r(
79
80
  "div",
80
81
  {
@@ -88,10 +89,10 @@ const N = a(
88
89
  }
89
90
  )
90
91
  );
91
- N.displayName = "PopoverSlot";
92
- const b = a(
93
- ({ className: e, children: o, "aria-label": t = "Close", ...n }, l) => /* @__PURE__ */ r(
94
- i.Close,
92
+ x.displayName = "PopoverSlot";
93
+ const N = a(
94
+ ({ className: e, children: o, "aria-label": t = "Close", ...i }, l) => /* @__PURE__ */ r(
95
+ n.Close,
95
96
  {
96
97
  "data-slot": "popover-close",
97
98
  render: /* @__PURE__ */ r(
@@ -102,34 +103,34 @@ const b = a(
102
103
  size: "icon-sm",
103
104
  className: s("h-7 w-7 shrink-0", e),
104
105
  "aria-label": t,
105
- ...n,
106
- children: o ?? /* @__PURE__ */ r(c, { className: "h-4 w-4" })
106
+ ...i,
107
+ children: o ?? /* @__PURE__ */ r(m, { className: "h-4 w-4" })
107
108
  }
108
109
  )
109
110
  }
110
111
  )
111
112
  );
112
- b.displayName = "PopoverClose";
113
- const y = a(
113
+ N.displayName = "PopoverClose";
114
+ const b = a(
114
115
  ({
115
116
  className: e,
116
117
  align: o = "center",
117
118
  alignOffset: t = 0,
118
- side: n = "bottom",
119
+ side: i = "bottom",
119
120
  sideOffset: l = 4,
120
121
  ...p
121
122
  }, d) => {
122
- const m = f();
123
- return /* @__PURE__ */ r(i.Portal, { container: m, children: /* @__PURE__ */ r(
124
- i.Positioner,
123
+ const c = f();
124
+ return /* @__PURE__ */ r(n.Portal, { container: c, children: /* @__PURE__ */ r(
125
+ n.Positioner,
125
126
  {
126
127
  align: o,
127
128
  alignOffset: t,
128
- side: n,
129
+ side: i,
129
130
  sideOffset: l,
130
131
  className: "isolate z-50",
131
132
  children: /* @__PURE__ */ r(
132
- i.Popup,
133
+ n.Popup,
133
134
  {
134
135
  ref: d,
135
136
  "data-slot": "popover-content",
@@ -144,15 +145,15 @@ const y = a(
144
145
  ) });
145
146
  }
146
147
  );
147
- y.displayName = "PopoverContent";
148
+ b.displayName = "PopoverContent";
148
149
  export {
149
- u as Popover,
150
- b as PopoverClose,
151
- y as PopoverContent,
152
- x as PopoverDescription,
153
- g as PopoverHeader,
154
- h as PopoverHeaderContent,
155
- N as PopoverSlot,
156
- P as PopoverTitle,
150
+ j as Popover,
151
+ N as PopoverClose,
152
+ b as PopoverContent,
153
+ P as PopoverDescription,
154
+ u as PopoverHeader,
155
+ g as PopoverHeaderContent,
156
+ x as PopoverSlot,
157
+ h as PopoverTitle,
157
158
  D as PopoverTrigger
158
159
  };
@@ -1,10 +1,13 @@
1
+ import { ForwardRefExoticComponent, RefAttributes } from 'react';
1
2
  import { Progress as ProgressPrimitive } from '@base-ui/react/progress';
2
3
  import { VariantProps } from 'class-variance-authority';
3
- declare const progressTrackVariants: (props?: ({
4
- size?: "default" | "sm" | null | undefined;
5
- } & import('class-variance-authority/types').ClassProp) | undefined) => string;
4
+ import { ClassProp } from 'class-variance-authority/types';
5
+ interface ProgressTrackVariantProps {
6
+ size?: 'default' | 'sm' | null;
7
+ }
8
+ declare const progressTrackVariants: (props?: (ProgressTrackVariantProps & ClassProp) | undefined) => string;
6
9
  type ProgressProps = ProgressPrimitive.Root.Props & VariantProps<typeof progressTrackVariants> & {
7
10
  max?: number;
8
11
  };
9
- declare const Progress: import('react').ForwardRefExoticComponent<Omit<ProgressProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
12
+ declare const Progress: ForwardRefExoticComponent<Omit<ProgressProps, 'ref'> & RefAttributes<HTMLDivElement>>;
10
13
  export { Progress };