@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.
- package/DESIGN.md +34 -92
- package/README.md +33 -0
- package/dist/colors.css +471 -214
- package/dist/components/index.d.ts +17 -33
- package/dist/components/index.js +315 -281
- package/dist/components/ui/core/accordion/accordion.d.ts +7 -7
- package/dist/components/ui/core/accordion/accordion.js +64 -62
- package/dist/components/ui/core/action-toolbar/action-toolbar.d.ts +41 -0
- package/dist/components/ui/core/action-toolbar/action-toolbar.js +176 -0
- package/dist/components/ui/core/alert/alert.d.ts +23 -12
- package/dist/components/ui/core/alert/alert.js +123 -120
- package/dist/components/ui/core/avatar/avatar.d.ts +12 -8
- package/dist/components/ui/core/avatar/avatar.js +10 -10
- package/dist/components/ui/core/badge/badge.d.ts +11 -8
- package/dist/components/ui/core/badge/badge.js +13 -13
- package/dist/components/ui/core/banner/banner.d.ts +18 -28
- package/dist/components/ui/core/banner/banner.js +6 -6
- package/dist/components/ui/core/breadcrumb/breadcrumb.d.ts +12 -0
- package/dist/components/ui/core/breadcrumb/breadcrumb.js +200 -0
- package/dist/components/ui/core/button/button.d.ts +8 -5
- package/dist/components/ui/core/button/button.js +22 -19
- package/dist/components/ui/core/button-group/button-group.d.ts +7 -6
- package/dist/components/ui/core/card/card.d.ts +18 -14
- package/dist/components/ui/core/card/card.js +131 -87
- package/dist/components/ui/core/chart/chart.d.ts +69 -0
- package/dist/components/ui/core/chart/chart.js +215 -0
- package/dist/components/ui/core/chart/index.d.ts +2 -0
- package/dist/components/ui/core/chart/index.js +8 -0
- package/dist/components/ui/core/checkbox/checkbox.d.ts +17 -0
- package/dist/components/ui/core/checkbox/checkbox.js +133 -0
- package/dist/components/ui/core/{badge/badge.metadata.d.ts → checkbox/checkbox.metadata.d.ts} +1 -1
- package/dist/components/ui/core/checkbox/checkbox.metadata.js +8 -0
- package/dist/components/ui/core/code-block/code-block.d.ts +6 -9
- package/dist/components/ui/core/code-block/code-block.js +52 -48
- package/dist/components/ui/core/collapsible/collapsible.d.ts +5 -3
- package/dist/components/ui/core/combobox/combobox.d.ts +2 -2
- package/dist/components/ui/core/command/command.d.ts +11 -78
- package/dist/components/ui/core/command/command.js +53 -52
- package/dist/components/ui/core/count/count.d.ts +9 -0
- package/dist/components/ui/core/count/count.js +32 -0
- package/dist/components/ui/core/date-time-pickers/date-range-picker/date-range-picker.d.ts +15 -0
- package/dist/components/ui/core/date-time-pickers/date-range-picker/date-range-picker.js +99 -0
- package/dist/components/ui/core/date-time-pickers/date-range-picker/index.d.ts +3 -0
- package/dist/components/ui/core/date-time-pickers/date-range-picker/types.d.ts +25 -0
- package/dist/components/ui/core/date-time-pickers/date-range-picker/use-date-range-picker.d.ts +4 -0
- package/dist/components/ui/core/date-time-pickers/date-range-picker/use-date-range-picker.js +82 -0
- package/dist/components/ui/core/date-time-pickers/date-time-range-picker/date-time-range-picker.d.ts +17 -0
- package/dist/components/ui/core/date-time-pickers/date-time-range-picker/date-time-range-picker.js +190 -0
- package/dist/components/ui/core/date-time-pickers/date-time-range-picker/index.d.ts +3 -0
- package/dist/components/ui/core/date-time-pickers/date-time-range-picker/types.d.ts +42 -0
- package/dist/components/ui/core/date-time-pickers/date-time-range-picker/use-date-time-range-picker.d.ts +3 -0
- package/dist/components/ui/core/date-time-pickers/date-time-range-picker/use-date-time-range-picker.js +161 -0
- package/dist/components/ui/core/date-time-pickers/index.d.ts +6 -0
- package/dist/components/ui/core/date-time-pickers/shared/am-pm-scroll/am-pm-scroll.d.ts +7 -0
- package/dist/components/ui/core/date-time-pickers/shared/am-pm-scroll/am-pm-scroll.js +57 -0
- package/dist/components/ui/core/date-time-pickers/shared/calendar/calendar.d.ts +13 -0
- package/dist/components/ui/core/date-time-pickers/shared/calendar/calendar.js +119 -0
- package/dist/components/ui/core/date-time-pickers/shared/calendar-header/calendar-header.d.ts +10 -0
- package/dist/components/ui/core/date-time-pickers/shared/calendar-header/calendar-header.js +93 -0
- package/dist/components/ui/core/date-time-pickers/shared/constants.d.ts +20 -0
- package/dist/components/ui/core/date-time-pickers/shared/constants.js +14 -0
- package/dist/components/ui/core/date-time-pickers/shared/date-time-input/date-time-input.d.ts +19 -0
- package/dist/components/ui/core/date-time-pickers/shared/date-time-input/date-time-input.js +99 -0
- package/dist/components/ui/core/date-time-pickers/shared/date-time-input/range-input-display.d.ts +12 -0
- package/dist/components/ui/core/date-time-pickers/shared/date-time-input/range-input-display.js +68 -0
- package/dist/components/ui/core/date-time-pickers/shared/hooks/use-popover-state.d.ts +12 -0
- package/dist/components/ui/core/date-time-pickers/shared/hooks/use-popover-state.js +40 -0
- package/dist/components/ui/core/date-time-pickers/shared/hooks/use-range-date-state.d.ts +29 -0
- package/dist/components/ui/core/date-time-pickers/shared/hooks/use-range-date-state.js +63 -0
- package/dist/components/ui/core/date-time-pickers/shared/hooks/use-range-step-manager.d.ts +8 -0
- package/dist/components/ui/core/date-time-pickers/shared/hooks/use-range-step-manager.js +19 -0
- package/dist/components/ui/core/date-time-pickers/shared/hooks/use-time-state.d.ts +17 -0
- package/dist/components/ui/core/date-time-pickers/shared/hooks/use-time-state.js +34 -0
- package/dist/components/ui/core/date-time-pickers/shared/scroll-cell-classes.d.ts +8 -0
- package/dist/components/ui/core/date-time-pickers/shared/scroll-cell-classes.js +7 -0
- package/dist/components/ui/core/date-time-pickers/shared/shortcuts-panel/shortcuts-panel.d.ts +13 -0
- package/dist/components/ui/core/date-time-pickers/shared/shortcuts-panel/shortcuts-panel.js +31 -0
- package/dist/components/ui/core/date-time-pickers/shared/time-picker-scroll/time-picker-scroll.d.ts +10 -0
- package/dist/components/ui/core/date-time-pickers/shared/time-picker-scroll/time-picker-scroll.js +52 -0
- package/dist/components/ui/core/date-time-pickers/utils/calendar-utils.d.ts +48 -0
- package/dist/components/ui/core/date-time-pickers/utils/calendar-utils.js +52 -0
- package/dist/components/ui/core/date-time-pickers/utils/date-range-utils.d.ts +26 -0
- package/dist/components/ui/core/date-time-pickers/utils/format-utils.d.ts +37 -0
- package/dist/components/ui/core/date-time-pickers/utils/segment-utils.d.ts +34 -0
- package/dist/components/ui/core/date-time-pickers/utils/time-utils.d.ts +43 -0
- package/dist/components/ui/core/date-time-pickers/utils/time-utils.js +15 -0
- package/dist/components/ui/core/date-time-pickers/utils/time-validation.d.ts +23 -0
- package/dist/components/ui/core/dialog/dialog.d.ts +10 -10
- package/dist/components/ui/core/dialog/dialog.js +12 -3
- package/dist/components/ui/core/dropdown-menu/dropdown-menu.d.ts +24 -47
- package/dist/components/ui/core/dropdown-menu/dropdown-menu.js +125 -123
- package/dist/components/ui/core/empty-state/empty-state.context.d.ts +10 -0
- package/dist/components/ui/core/empty-state/empty-state.context.js +8 -0
- package/dist/components/ui/core/empty-state/empty-state.d.ts +18 -0
- package/dist/components/ui/core/empty-state/empty-state.js +139 -0
- package/dist/components/ui/core/helper-text/helper-text.d.ts +7 -5
- package/dist/components/ui/core/hover-card/hover-card.d.ts +5 -7
- package/dist/components/ui/core/hover-card/hover-card.js +26 -25
- package/dist/components/ui/core/inline-citation/inline-citation.d.ts +10 -10
- package/dist/components/ui/core/inline-citation/inline-citation.js +65 -57
- package/dist/components/ui/core/input/input.d.ts +2 -1
- package/dist/components/ui/core/input-group/input-group.d.ts +17 -13
- package/dist/components/ui/core/input-group/input-group.js +35 -36
- package/dist/components/ui/core/kbd/kbd.d.ts +4 -0
- package/dist/components/ui/core/kbd/kbd.js +36 -0
- package/dist/components/ui/core/label/label.d.ts +3 -2
- package/dist/components/ui/core/loader/loader.d.ts +11 -3
- package/dist/components/ui/core/loader/loader.js +106 -107
- package/dist/components/ui/core/message/message.d.ts +18 -17
- package/dist/components/ui/core/message/message.js +15 -13
- package/dist/components/ui/core/pagination/pagination-size-context.d.ts +5 -0
- package/dist/components/ui/core/pagination/pagination-size-context.js +6 -0
- package/dist/components/ui/core/pagination/pagination-teleport.d.ts +11 -0
- package/dist/components/ui/core/pagination/pagination-teleport.js +108 -0
- package/dist/components/ui/core/pagination/pagination-teleport.utils.d.ts +1 -0
- package/dist/components/ui/core/pagination/pagination-teleport.utils.js +7 -0
- package/dist/components/ui/core/pagination/pagination.d.ts +41 -0
- package/dist/components/ui/core/pagination/pagination.js +335 -0
- package/dist/components/ui/core/popover/popover.d.ts +12 -16
- package/dist/components/ui/core/popover/popover.js +52 -51
- package/dist/components/ui/core/progress/progress.d.ts +7 -4
- package/dist/components/ui/core/prompt-input/prompt-input.d.ts +36 -103
- package/dist/components/ui/core/prompt-input/prompt-input.js +193 -180
- package/dist/components/ui/core/radio-group/radio-group.d.ts +20 -0
- package/dist/components/ui/core/radio-group/radio-group.js +113 -0
- package/dist/components/ui/core/reasoning/reasoning.d.ts +5 -5
- package/dist/components/ui/core/reasoning/reasoning.js +1 -1
- package/dist/components/ui/core/scroll-area/scroll-area.d.ts +4 -2
- package/dist/components/ui/core/search/search.d.ts +10 -0
- package/dist/components/ui/core/search/search.js +99 -0
- package/dist/components/ui/core/segmented-control/segmented-control.d.ts +20 -0
- package/dist/components/ui/core/segmented-control/segmented-control.js +172 -0
- package/dist/components/ui/core/select/select.d.ts +13 -13
- package/dist/components/ui/core/select/select.js +13 -10
- package/dist/components/ui/core/separator/separator.d.ts +2 -4
- package/dist/components/ui/core/separator/separator.js +4 -5
- package/dist/components/ui/core/shimmer/shimmer.d.ts +3 -5
- package/dist/components/ui/core/shimmer/shimmer.js +25 -26
- package/dist/components/ui/core/skeleton/skeleton.d.ts +2 -1
- package/dist/components/ui/core/sonner-toast/sonner-toast.d.ts +4 -0
- package/dist/components/ui/core/sonner-toast/sonner-toast.js +48 -0
- package/dist/components/ui/core/sources/sources.d.ts +3 -3
- package/dist/components/ui/core/sources/sources.js +6 -1
- package/dist/components/ui/core/switch/switch.d.ts +11 -0
- package/dist/components/ui/core/{button/button.metadata.d.ts → switch/switch.metadata.d.ts} +1 -1
- package/dist/components/ui/core/tabs/tabs.d.ts +27 -0
- package/dist/components/ui/core/tabs/tabs.js +224 -0
- package/dist/components/ui/core/tabs/tabs.utils.d.ts +2 -0
- package/dist/components/ui/core/tabs/tabs.utils.js +9 -0
- package/dist/components/ui/core/textarea/textarea.d.ts +2 -1
- package/dist/components/ui/core/textarea/textarea.js +20 -18
- package/dist/components/ui/core/tool/tool.d.ts +7 -6
- package/dist/components/ui/core/tool/tool.js +48 -44
- package/dist/components/ui/core/tooltip/tooltip.d.ts +6 -5
- package/dist/components/ui/core/tooltip/tooltip.js +10 -8
- package/dist/components/ui/core/topbar/topbar.d.ts +28 -0
- package/dist/components/ui/core/topbar/topbar.js +190 -0
- package/dist/eslint/index.d.ts +2 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +298 -273
- package/dist/lib/portal-container-context.d.ts +2 -1
- package/dist/lib/portal-container-context.js +1 -3
- package/dist/lib/utils.d.ts +11 -0
- package/dist/lib/utils.js +40 -29
- package/dist/styles.css +1 -1
- package/dist/styles.source.css +75 -8
- package/package.json +26 -5
- package/dist/components/ui/core/accordion/accordion.metadata.d.ts +0 -2
- package/dist/components/ui/core/accordion/accordion.metadata.js +0 -9
- package/dist/components/ui/core/alert/alert.metadata.d.ts +0 -2
- package/dist/components/ui/core/alert/alert.metadata.js +0 -9
- package/dist/components/ui/core/avatar/avatar.metadata.d.ts +0 -8
- package/dist/components/ui/core/avatar/avatar.metadata.js +0 -9
- package/dist/components/ui/core/badge/badge.metadata.js +0 -8
- package/dist/components/ui/core/banner/banner.metadata.d.ts +0 -2
- package/dist/components/ui/core/banner/banner.metadata.js +0 -9
- package/dist/components/ui/core/button/button.metadata.js +0 -9
- package/dist/components/ui/core/button-group/button-group.metadata.d.ts +0 -2
- package/dist/components/ui/core/button-group/button-group.metadata.js +0 -8
- package/dist/components/ui/core/card/card.metadata.d.ts +0 -8
- package/dist/components/ui/core/card/card.metadata.js +0 -9
- package/dist/components/ui/core/code-block/code-block.metadata.d.ts +0 -2
- package/dist/components/ui/core/code-block/code-block.metadata.js +0 -8
- package/dist/components/ui/core/collapsible/collapsible.metadata.d.ts +0 -2
- package/dist/components/ui/core/collapsible/collapsible.metadata.js +0 -9
- package/dist/components/ui/core/combobox/combobox.metadata.d.ts +0 -2
- package/dist/components/ui/core/command/command.metadata.d.ts +0 -2
- package/dist/components/ui/core/command/command.metadata.js +0 -9
- package/dist/components/ui/core/dialog/dialog.metadata.d.ts +0 -2
- package/dist/components/ui/core/dialog/dialog.metadata.js +0 -9
- package/dist/components/ui/core/dropdown-menu/dropdown-menu.metadata.d.ts +0 -2
- package/dist/components/ui/core/dropdown-menu/dropdown-menu.metadata.js +0 -9
- package/dist/components/ui/core/helper-text/helper-text.metadata.d.ts +0 -2
- package/dist/components/ui/core/helper-text/helper-text.metadata.js +0 -9
- package/dist/components/ui/core/hover-card/hover-card.metadata.d.ts +0 -2
- package/dist/components/ui/core/hover-card/hover-card.metadata.js +0 -8
- package/dist/components/ui/core/inline-citation/inline-citation.metadata.d.ts +0 -2
- package/dist/components/ui/core/inline-citation/inline-citation.metadata.js +0 -8
- package/dist/components/ui/core/input/input.metadata.d.ts +0 -2
- package/dist/components/ui/core/input/input.metadata.js +0 -9
- package/dist/components/ui/core/input-group/input-group.metadata.d.ts +0 -2
- package/dist/components/ui/core/input-group/input-group.metadata.js +0 -9
- package/dist/components/ui/core/label/label.metadata.d.ts +0 -2
- package/dist/components/ui/core/label/label.metadata.js +0 -9
- package/dist/components/ui/core/loader/loader.metadata.d.ts +0 -2
- package/dist/components/ui/core/loader/loader.metadata.js +0 -9
- package/dist/components/ui/core/message/message.metadata.d.ts +0 -2
- package/dist/components/ui/core/popover/popover.metadata.d.ts +0 -2
- package/dist/components/ui/core/popover/popover.metadata.js +0 -9
- package/dist/components/ui/core/progress/progress.metadata.d.ts +0 -2
- package/dist/components/ui/core/progress/progress.metadata.js +0 -9
- package/dist/components/ui/core/prompt-input/prompt-input.metadata.d.ts +0 -2
- package/dist/components/ui/core/prompt-input/prompt-input.metadata.js +0 -9
- package/dist/components/ui/core/reasoning/reasoning.metadata.d.ts +0 -2
- package/dist/components/ui/core/reasoning/reasoning.metadata.js +0 -8
- package/dist/components/ui/core/scroll-area/scroll-area.metadata.d.ts +0 -2
- package/dist/components/ui/core/scroll-area/scroll-area.metadata.js +0 -9
- package/dist/components/ui/core/select/select.metadata.d.ts +0 -2
- package/dist/components/ui/core/select/select.metadata.js +0 -9
- package/dist/components/ui/core/separator/separator.metadata.d.ts +0 -2
- package/dist/components/ui/core/separator/separator.metadata.js +0 -8
- package/dist/components/ui/core/shimmer/shimmer.metadata.d.ts +0 -2
- package/dist/components/ui/core/shimmer/shimmer.metadata.js +0 -9
- package/dist/components/ui/core/skeleton/skeleton.metadata.d.ts +0 -2
- package/dist/components/ui/core/skeleton/skeleton.metadata.js +0 -9
- package/dist/components/ui/core/sources/sources.metadata.d.ts +0 -2
- package/dist/components/ui/core/textarea/textarea.metadata.d.ts +0 -2
- package/dist/components/ui/core/textarea/textarea.metadata.js +0 -9
- package/dist/components/ui/core/tool/tool.metadata.d.ts +0 -2
- package/dist/components/ui/core/tool/tool.metadata.js +0 -8
- package/dist/components/ui/core/tooltip/tooltip.metadata.d.ts +0 -8
- package/dist/components/ui/core/tooltip/tooltip.metadata.js +0 -9
|
@@ -1,119 +1,118 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { cn as
|
|
4
|
-
const
|
|
1
|
+
import { jsx as a, jsxs as l } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as h } from "react";
|
|
3
|
+
import { cn as s } from "../../../../lib/utils.js";
|
|
4
|
+
const n = ({
|
|
5
|
+
size: e = 16,
|
|
6
|
+
className: r,
|
|
7
|
+
strokeClassName: t
|
|
8
|
+
}) => /* @__PURE__ */ l(
|
|
5
9
|
"svg",
|
|
6
10
|
{
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
11
|
+
"aria-hidden": "true",
|
|
12
|
+
focusable: "false",
|
|
13
|
+
className: s("overflow-visible", t, r),
|
|
14
|
+
height: e,
|
|
15
|
+
viewBox: "0 0 167 216",
|
|
16
|
+
width: e,
|
|
17
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
12
18
|
children: [
|
|
13
|
-
/* @__PURE__ */
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
"
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
{
|
|
46
|
-
d: "M12.7023 14.472L10.3511 11.236",
|
|
47
|
-
opacity: "0.4",
|
|
48
|
-
stroke: "currentColor",
|
|
49
|
-
strokeWidth: "1.5"
|
|
50
|
-
}
|
|
51
|
-
),
|
|
52
|
-
/* @__PURE__ */ t(
|
|
53
|
-
"path",
|
|
54
|
-
{
|
|
55
|
-
d: "M3.29773 14.472L5.64887 11.236",
|
|
56
|
-
opacity: "0.6",
|
|
57
|
-
stroke: "currentColor",
|
|
58
|
-
strokeWidth: "1.5"
|
|
59
|
-
}
|
|
60
|
-
),
|
|
61
|
-
/* @__PURE__ */ t(
|
|
62
|
-
"path",
|
|
63
|
-
{
|
|
64
|
-
d: "M15.6085 5.52783L11.8043 6.7639",
|
|
65
|
-
opacity: "0.2",
|
|
66
|
-
stroke: "currentColor",
|
|
67
|
-
strokeWidth: "1.5"
|
|
68
|
-
}
|
|
69
|
-
),
|
|
70
|
-
/* @__PURE__ */ t(
|
|
71
|
-
"path",
|
|
72
|
-
{
|
|
73
|
-
d: "M0.391602 10.472L4.19583 9.23598",
|
|
74
|
-
opacity: "0.7",
|
|
75
|
-
stroke: "currentColor",
|
|
76
|
-
strokeWidth: "1.5"
|
|
77
|
-
}
|
|
78
|
-
),
|
|
79
|
-
/* @__PURE__ */ t(
|
|
80
|
-
"path",
|
|
81
|
-
{
|
|
82
|
-
d: "M15.6085 10.4722L11.8043 9.2361",
|
|
83
|
-
opacity: "0.3",
|
|
84
|
-
stroke: "currentColor",
|
|
85
|
-
strokeWidth: "1.5"
|
|
86
|
-
}
|
|
87
|
-
),
|
|
88
|
-
/* @__PURE__ */ t(
|
|
89
|
-
"path",
|
|
90
|
-
{
|
|
91
|
-
d: "M0.391602 5.52783L4.19583 6.7639",
|
|
92
|
-
opacity: "0.8",
|
|
93
|
-
stroke: "currentColor",
|
|
94
|
-
strokeWidth: "1.5"
|
|
95
|
-
}
|
|
96
|
-
)
|
|
97
|
-
] }),
|
|
98
|
-
/* @__PURE__ */ t("defs", { children: /* @__PURE__ */ t("clipPath", { id: "clip0_2393_1490", children: /* @__PURE__ */ t("rect", { fill: "white", height: "16", width: "16" }) }) })
|
|
19
|
+
/* @__PURE__ */ a(
|
|
20
|
+
"rect",
|
|
21
|
+
{
|
|
22
|
+
className: "aura-loader-rect aura-loader-rect-1",
|
|
23
|
+
"data-slot": "loader-rect",
|
|
24
|
+
x: "10",
|
|
25
|
+
y: "10",
|
|
26
|
+
width: "98",
|
|
27
|
+
height: "196",
|
|
28
|
+
rx: "49",
|
|
29
|
+
fill: "transparent",
|
|
30
|
+
stroke: "currentColor",
|
|
31
|
+
strokeWidth: "20",
|
|
32
|
+
strokeLinecap: "round"
|
|
33
|
+
}
|
|
34
|
+
),
|
|
35
|
+
/* @__PURE__ */ a(
|
|
36
|
+
"rect",
|
|
37
|
+
{
|
|
38
|
+
className: "aura-loader-rect aura-loader-rect-2",
|
|
39
|
+
"data-slot": "loader-rect",
|
|
40
|
+
x: "59",
|
|
41
|
+
y: "10",
|
|
42
|
+
width: "98",
|
|
43
|
+
height: "196",
|
|
44
|
+
rx: "49",
|
|
45
|
+
fill: "transparent",
|
|
46
|
+
stroke: "currentColor",
|
|
47
|
+
strokeWidth: "20",
|
|
48
|
+
strokeLinecap: "round"
|
|
49
|
+
}
|
|
50
|
+
)
|
|
99
51
|
]
|
|
100
52
|
}
|
|
101
|
-
),
|
|
102
|
-
|
|
53
|
+
), x = (e) => e.variant === "page", g = h((e, r) => {
|
|
54
|
+
const t = e.className, i = e.role ?? "status", o = e["aria-label"] ?? "Loading";
|
|
55
|
+
if (!x(e)) {
|
|
56
|
+
const {
|
|
57
|
+
size: u = 16,
|
|
58
|
+
variant: b,
|
|
59
|
+
className: k,
|
|
60
|
+
role: L,
|
|
61
|
+
"aria-label": y,
|
|
62
|
+
...f
|
|
63
|
+
} = e;
|
|
64
|
+
return /* @__PURE__ */ a(
|
|
65
|
+
"div",
|
|
66
|
+
{
|
|
67
|
+
ref: r,
|
|
68
|
+
"data-slot": "loader",
|
|
69
|
+
role: i,
|
|
70
|
+
"aria-label": o,
|
|
71
|
+
className: s("inline-flex items-center justify-center", t),
|
|
72
|
+
...f,
|
|
73
|
+
children: /* @__PURE__ */ a(n, { size: u, strokeClassName: "text-current" })
|
|
74
|
+
}
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
const {
|
|
78
|
+
variant: N,
|
|
79
|
+
className: v,
|
|
80
|
+
role: w,
|
|
81
|
+
"aria-label": p,
|
|
82
|
+
header: d,
|
|
83
|
+
description: c,
|
|
84
|
+
...m
|
|
85
|
+
} = e;
|
|
86
|
+
return /* @__PURE__ */ l(
|
|
103
87
|
"div",
|
|
104
88
|
{
|
|
105
|
-
ref:
|
|
89
|
+
ref: r,
|
|
106
90
|
"data-slot": "loader",
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
91
|
+
role: i,
|
|
92
|
+
"aria-label": o,
|
|
93
|
+
className: s(
|
|
94
|
+
"text-foreground flex h-[11.5rem] w-80 flex-col items-center justify-center gap-2",
|
|
95
|
+
t
|
|
110
96
|
),
|
|
111
|
-
...
|
|
112
|
-
children:
|
|
97
|
+
...m,
|
|
98
|
+
children: [
|
|
99
|
+
/* @__PURE__ */ a(
|
|
100
|
+
n,
|
|
101
|
+
{
|
|
102
|
+
size: 112,
|
|
103
|
+
className: "size-28",
|
|
104
|
+
strokeClassName: "text-current"
|
|
105
|
+
}
|
|
106
|
+
),
|
|
107
|
+
/* @__PURE__ */ l("div", { className: "flex w-full flex-col items-center justify-center gap-1 text-center", children: [
|
|
108
|
+
/* @__PURE__ */ a("p", { className: "text-lg font-medium leading-6 tracking-tightest text-foreground", children: d }),
|
|
109
|
+
c && /* @__PURE__ */ a("p", { className: "w-full text-sm leading-[18px] tracking-tight text-secondary-foreground", children: c })
|
|
110
|
+
] })
|
|
111
|
+
]
|
|
113
112
|
}
|
|
114
|
-
)
|
|
115
|
-
);
|
|
116
|
-
|
|
113
|
+
);
|
|
114
|
+
});
|
|
115
|
+
g.displayName = "Loader";
|
|
117
116
|
export {
|
|
118
|
-
|
|
117
|
+
g as Loader
|
|
119
118
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ComponentProps, HTMLAttributes } from 'react';
|
|
1
|
+
import { ComponentProps, HTMLAttributes, MemoExoticComponent, ReactNode } from 'react';
|
|
2
|
+
import { JSX } from 'react/jsx-runtime';
|
|
2
3
|
import { Streamdown } from 'streamdown';
|
|
3
4
|
import { FileUIPart, UIMessage } from '../../../../lib/ai/types';
|
|
4
5
|
import { Avatar, AvatarIcon } from '../avatar/avatar';
|
|
@@ -6,50 +7,50 @@ import { Button } from '../button/button';
|
|
|
6
7
|
type MessageProps = HTMLAttributes<HTMLDivElement> & {
|
|
7
8
|
isResponse?: boolean;
|
|
8
9
|
};
|
|
9
|
-
declare const Message: ({ className, isResponse, ...props }: MessageProps) =>
|
|
10
|
+
declare const Message: ({ className, isResponse, ...props }: MessageProps) => ReactNode;
|
|
10
11
|
type MessageContentProps = HTMLAttributes<HTMLDivElement>;
|
|
11
|
-
declare const MessageContent: ({ children, className, ...props }: MessageContentProps) =>
|
|
12
|
+
declare const MessageContent: ({ children, className, ...props }: MessageContentProps) => ReactNode;
|
|
12
13
|
type MessageAvatarProps = ComponentProps<typeof Avatar> & {
|
|
13
14
|
avatarUrl?: string;
|
|
14
15
|
name?: string;
|
|
15
16
|
};
|
|
16
|
-
declare const MessageAvatar: ({ avatarUrl, name, className, children, variant, sizes, ...props }: MessageAvatarProps) =>
|
|
17
|
+
declare const MessageAvatar: ({ avatarUrl, name, className, children, variant, sizes, ...props }: MessageAvatarProps) => ReactNode;
|
|
17
18
|
type MessageAvatarIconProps = ComponentProps<typeof AvatarIcon>;
|
|
18
|
-
declare const MessageAvatarIcon: (props: MessageAvatarIconProps) =>
|
|
19
|
+
declare const MessageAvatarIcon: (props: MessageAvatarIconProps) => ReactNode;
|
|
19
20
|
type MessageActionsProps = ComponentProps<'div'>;
|
|
20
|
-
declare const MessageActions: ({ className, children, ...props }: MessageActionsProps) =>
|
|
21
|
+
declare const MessageActions: ({ className, children, ...props }: MessageActionsProps) => ReactNode;
|
|
21
22
|
type MessageActionProps = ComponentProps<typeof Button> & {
|
|
22
23
|
tooltip?: string;
|
|
23
24
|
label?: string;
|
|
24
25
|
};
|
|
25
|
-
declare const MessageAction: ({ tooltip, children, label, className, variant, size, ...props }: MessageActionProps) =>
|
|
26
|
+
declare const MessageAction: ({ tooltip, children, label, className, variant, size, ...props }: MessageActionProps) => ReactNode;
|
|
26
27
|
type MessageBranchProps = HTMLAttributes<HTMLDivElement> & {
|
|
27
28
|
defaultBranch?: number;
|
|
28
29
|
onBranchChange?: (branchIndex: number) => void;
|
|
29
30
|
};
|
|
30
|
-
declare const MessageBranch: ({ defaultBranch, onBranchChange, className, ...props }: MessageBranchProps) =>
|
|
31
|
+
declare const MessageBranch: ({ defaultBranch, onBranchChange, className, ...props }: MessageBranchProps) => ReactNode;
|
|
31
32
|
type MessageBranchContentProps = HTMLAttributes<HTMLDivElement>;
|
|
32
|
-
declare const MessageBranchContent: ({ children, ...props }: MessageBranchContentProps) =>
|
|
33
|
+
declare const MessageBranchContent: ({ children, ...props }: MessageBranchContentProps) => ReactNode[];
|
|
33
34
|
type MessageBranchSelectorProps = HTMLAttributes<HTMLDivElement> & {
|
|
34
35
|
from: UIMessage['role'];
|
|
35
36
|
};
|
|
36
|
-
declare const MessageBranchSelector: ({ ...props }: MessageBranchSelectorProps) =>
|
|
37
|
+
declare const MessageBranchSelector: ({ ...props }: MessageBranchSelectorProps) => ReactNode;
|
|
37
38
|
type MessageBranchPreviousProps = ComponentProps<typeof Button>;
|
|
38
|
-
declare const MessageBranchPrevious: ({ children, ...props }: MessageBranchPreviousProps) =>
|
|
39
|
+
declare const MessageBranchPrevious: ({ children, ...props }: MessageBranchPreviousProps) => ReactNode;
|
|
39
40
|
type MessageBranchNextProps = ComponentProps<typeof Button>;
|
|
40
|
-
declare const MessageBranchNext: ({ children, ...props }: MessageBranchNextProps) =>
|
|
41
|
+
declare const MessageBranchNext: ({ children, ...props }: MessageBranchNextProps) => ReactNode;
|
|
41
42
|
type MessageBranchPageProps = HTMLAttributes<HTMLSpanElement>;
|
|
42
|
-
declare const MessageBranchPage: ({ className, ...props }: MessageBranchPageProps) =>
|
|
43
|
+
declare const MessageBranchPage: ({ className, ...props }: MessageBranchPageProps) => ReactNode;
|
|
43
44
|
type MessageResponseProps = ComponentProps<typeof Streamdown>;
|
|
44
|
-
declare const MessageResponse:
|
|
45
|
+
declare const MessageResponse: MemoExoticComponent<({ className, components, plugins, controls, ...props }: MessageResponseProps) => JSX.Element>;
|
|
45
46
|
type MessageAttachmentProps = HTMLAttributes<HTMLDivElement> & {
|
|
46
47
|
data: FileUIPart;
|
|
47
48
|
className?: string;
|
|
48
49
|
onRemove?: () => void;
|
|
49
50
|
};
|
|
50
|
-
declare function MessageAttachment({ data, className, onRemove, ...props }: MessageAttachmentProps):
|
|
51
|
+
declare function MessageAttachment({ data, className, onRemove, ...props }: MessageAttachmentProps): ReactNode;
|
|
51
52
|
type MessageAttachmentsProps = ComponentProps<'div'>;
|
|
52
|
-
declare function MessageAttachments({ children, className, ...props }: MessageAttachmentsProps):
|
|
53
|
+
declare function MessageAttachments({ children, className, ...props }: MessageAttachmentsProps): ReactNode;
|
|
53
54
|
type MessageToolbarProps = ComponentProps<'div'>;
|
|
54
|
-
declare const MessageToolbar: ({ className, children, ...props }: MessageToolbarProps) =>
|
|
55
|
+
declare const MessageToolbar: ({ className, children, ...props }: MessageToolbarProps) => ReactNode;
|
|
55
56
|
export { Message, MessageAction, MessageActions, MessageAttachment, MessageAttachments, MessageAvatar, MessageAvatarIcon, MessageBranch, MessageBranchContent, MessageBranchNext, MessageBranchPage, MessageBranchPrevious, MessageBranchSelector, MessageContent, MessageResponse, MessageToolbar, };
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import { jsx as e, jsxs as m } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { memo as i, createContext as b } from "react";
|
|
3
3
|
import { mermaid as _ } from "@streamdown/mermaid";
|
|
4
4
|
import "@tabler/icons-react";
|
|
5
5
|
import { Streamdown as p } from "streamdown";
|
|
6
6
|
import { cn as d } from "../../../../lib/utils.js";
|
|
7
|
-
import "../avatar/avatar.js";
|
|
8
7
|
import { Button as u } from "../button/button.js";
|
|
9
|
-
import "../button-group/button-group.js";
|
|
10
8
|
import { Tooltip as w, TooltipTrigger as g, TooltipContent as k } from "../tooltip/tooltip.js";
|
|
11
9
|
import { MESSAGE_RESPONSE_DEFAULT_STREAMDOWN_CONTROLS as v } from "./message-response-default-streamdown-controls.js";
|
|
12
|
-
const
|
|
10
|
+
const R = ({
|
|
11
|
+
className: t,
|
|
12
|
+
isResponse: o = !1,
|
|
13
|
+
...a
|
|
14
|
+
}) => /* @__PURE__ */ e(
|
|
13
15
|
"div",
|
|
14
16
|
{
|
|
15
17
|
"data-slot": "message",
|
|
@@ -20,7 +22,7 @@ const q = ({ className: t, isResponse: o = !1, ...a }) => /* @__PURE__ */ e(
|
|
|
20
22
|
),
|
|
21
23
|
...a
|
|
22
24
|
}
|
|
23
|
-
),
|
|
25
|
+
), j = ({
|
|
24
26
|
children: t,
|
|
25
27
|
className: o,
|
|
26
28
|
...a
|
|
@@ -38,7 +40,7 @@ const q = ({ className: t, isResponse: o = !1, ...a }) => /* @__PURE__ */ e(
|
|
|
38
40
|
...a,
|
|
39
41
|
children: t
|
|
40
42
|
}
|
|
41
|
-
),
|
|
43
|
+
), q = ({
|
|
42
44
|
className: t,
|
|
43
45
|
children: o,
|
|
44
46
|
...a
|
|
@@ -50,7 +52,7 @@ const q = ({ className: t, isResponse: o = !1, ...a }) => /* @__PURE__ */ e(
|
|
|
50
52
|
...a,
|
|
51
53
|
children: o
|
|
52
54
|
}
|
|
53
|
-
),
|
|
55
|
+
), O = ({
|
|
54
56
|
tooltip: t,
|
|
55
57
|
children: o,
|
|
56
58
|
label: a,
|
|
@@ -82,7 +84,7 @@ const q = ({ className: t, isResponse: o = !1, ...a }) => /* @__PURE__ */ e(
|
|
|
82
84
|
/* @__PURE__ */ e(k, { children: /* @__PURE__ */ e("p", { children: t }) })
|
|
83
85
|
] }) : n;
|
|
84
86
|
};
|
|
85
|
-
|
|
87
|
+
b(
|
|
86
88
|
null
|
|
87
89
|
);
|
|
88
90
|
const f = {
|
|
@@ -126,7 +128,7 @@ const f = {
|
|
|
126
128
|
tr: ({ children: t }) => /* @__PURE__ */ e("tr", { className: "m-0 border-t p-0 even:bg-muted-background", children: t }),
|
|
127
129
|
th: ({ children: t }) => /* @__PURE__ */ e("th", { className: "border px-4 py-2 text-left font-bold", children: t }),
|
|
128
130
|
td: ({ children: t }) => /* @__PURE__ */ e("td", { className: "border px-4 py-2 text-left", children: t })
|
|
129
|
-
}, h =
|
|
131
|
+
}, h = i(
|
|
130
132
|
({
|
|
131
133
|
className: t,
|
|
132
134
|
components: o,
|
|
@@ -248,9 +250,9 @@ const f = {
|
|
|
248
250
|
);
|
|
249
251
|
h.displayName = "MessageResponse";
|
|
250
252
|
export {
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
253
|
+
R as Message,
|
|
254
|
+
O as MessageAction,
|
|
255
|
+
q as MessageActions,
|
|
256
|
+
j as MessageContent,
|
|
255
257
|
h as MessageResponse
|
|
256
258
|
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Context } from 'react';
|
|
2
|
+
type PaginationSize = 'default' | 'small';
|
|
3
|
+
declare const PaginationSizeContext: Context<PaginationSize>;
|
|
4
|
+
declare const usePaginationSize: () => PaginationSize;
|
|
5
|
+
export { type PaginationSize, PaginationSizeContext, usePaginationSize };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ForwardRefExoticComponent, RefAttributes, ComponentProps } from 'react';
|
|
2
|
+
import { Input } from '../input/input';
|
|
3
|
+
import { PaginationSize } from './pagination-size-context';
|
|
4
|
+
type PaginationTeleportProps = {
|
|
5
|
+
currentPage: number;
|
|
6
|
+
totalPages: number;
|
|
7
|
+
onPageChange: (page: number) => void;
|
|
8
|
+
size?: PaginationSize;
|
|
9
|
+
} & Omit<ComponentProps<typeof Input>, 'size' | 'value' | 'onChange' | 'children' | 'type'>;
|
|
10
|
+
declare const PaginationTeleport: ForwardRefExoticComponent<Omit<PaginationTeleportProps, 'ref'> & RefAttributes<HTMLInputElement>>;
|
|
11
|
+
export { PaginationTeleport };
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { jsx as P } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as T, useRef as v, useLayoutEffect as k, useState as x } from "react";
|
|
3
|
+
import { cva as N } from "class-variance-authority";
|
|
4
|
+
import { cn as S } from "../../../../lib/utils.js";
|
|
5
|
+
import { Input as V } from "../input/input.js";
|
|
6
|
+
import { usePaginationSize as I } from "./pagination-size-context.js";
|
|
7
|
+
import { getPaginationTeleportWidth as R } from "./pagination-teleport.utils.js";
|
|
8
|
+
const C = N(
|
|
9
|
+
[
|
|
10
|
+
"tabular-nums text-center font-normal",
|
|
11
|
+
"bg-background text-secondary-foreground border-border-emphasized",
|
|
12
|
+
"[&:not(:placeholder-shown):not(:focus)]:bg-background [&:not(:placeholder-shown)]:text-secondary-foreground",
|
|
13
|
+
"hover:bg-accent-background [&:not(:placeholder-shown):not(:focus):hover]:bg-accent-background hover:border-border-emphasized",
|
|
14
|
+
"focus-visible:bg-background focus-visible:text-secondary-foreground focus-visible:border-border-emphasized focus-visible:shadow-focus-ring"
|
|
15
|
+
],
|
|
16
|
+
{
|
|
17
|
+
variants: {
|
|
18
|
+
size: {
|
|
19
|
+
default: "h-9 rounded-lg px-3 py-0 text-base leading-5 tracking-tightest",
|
|
20
|
+
small: "h-7 rounded-md px-2 py-0 text-sm leading-4.5 tracking-tight"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
defaultVariants: {
|
|
24
|
+
size: "default"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
), W = {
|
|
28
|
+
small: {
|
|
29
|
+
minWidthPx: 43,
|
|
30
|
+
paddingPx: 16
|
|
31
|
+
},
|
|
32
|
+
default: {
|
|
33
|
+
minWidthPx: 55,
|
|
34
|
+
paddingPx: 24
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
function B({
|
|
38
|
+
currentPage: o,
|
|
39
|
+
totalPages: c,
|
|
40
|
+
onPageChange: i
|
|
41
|
+
}) {
|
|
42
|
+
const s = Math.max(1, c), [d, r] = x(""), [u, t] = x(!1), n = v(!1);
|
|
43
|
+
return {
|
|
44
|
+
displayValue: u ? d : `${o}/${s}`,
|
|
45
|
+
isEditing: u,
|
|
46
|
+
onChange: (e) => {
|
|
47
|
+
const a = e.target.value;
|
|
48
|
+
(a === "" || /^\d+$/.test(a)) && r(a);
|
|
49
|
+
},
|
|
50
|
+
onFocus: () => {
|
|
51
|
+
n.current = !1, t(!0), r(o.toString());
|
|
52
|
+
},
|
|
53
|
+
onBlur: () => {
|
|
54
|
+
if (t(!1), n.current) {
|
|
55
|
+
n.current = !1;
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
const e = Number.parseInt(d, 10);
|
|
59
|
+
!Number.isNaN(e) && e >= 1 && e <= s && i(e);
|
|
60
|
+
},
|
|
61
|
+
onKeyDown: (e) => {
|
|
62
|
+
e.key === "Enter" ? e.currentTarget.blur() : e.key === "Escape" && (n.current = !0, r(o.toString()), e.currentTarget.blur());
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
const D = T(
|
|
67
|
+
({ className: o, currentPage: c, totalPages: i, onPageChange: s, size: d, style: r, ...u }, t) => {
|
|
68
|
+
const n = I(), l = d ?? n, { displayValue: h, isEditing: g, onChange: m, onFocus: b, onBlur: e, onKeyDown: a } = B({
|
|
69
|
+
currentPage: c,
|
|
70
|
+
totalPages: i,
|
|
71
|
+
onPageChange: s
|
|
72
|
+
}), f = v(null), w = (p) => {
|
|
73
|
+
f.current = p, typeof t == "function" ? t(p) : t && (t.current = p);
|
|
74
|
+
};
|
|
75
|
+
k(() => {
|
|
76
|
+
g && f.current && f.current.select();
|
|
77
|
+
}, [g]);
|
|
78
|
+
const y = W[l], z = R(
|
|
79
|
+
i,
|
|
80
|
+
y.minWidthPx,
|
|
81
|
+
y.paddingPx
|
|
82
|
+
), E = S(
|
|
83
|
+
C({ size: l }),
|
|
84
|
+
o
|
|
85
|
+
);
|
|
86
|
+
return /* @__PURE__ */ P(
|
|
87
|
+
V,
|
|
88
|
+
{
|
|
89
|
+
ref: w,
|
|
90
|
+
type: "text",
|
|
91
|
+
inputMode: "numeric",
|
|
92
|
+
value: h,
|
|
93
|
+
onChange: m,
|
|
94
|
+
onFocus: b,
|
|
95
|
+
onBlur: e,
|
|
96
|
+
onKeyDown: a,
|
|
97
|
+
"data-slot": "pagination-teleport",
|
|
98
|
+
className: E,
|
|
99
|
+
style: { width: z, ...r },
|
|
100
|
+
...u
|
|
101
|
+
}
|
|
102
|
+
);
|
|
103
|
+
}
|
|
104
|
+
);
|
|
105
|
+
D.displayName = "PaginationTeleport";
|
|
106
|
+
export {
|
|
107
|
+
D as PaginationTeleport
|
|
108
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getPaginationTeleportWidth(totalPages: number, minWidthPx: number, paddingPx: number): string;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { ForwardRefExoticComponent, RefAttributes, ComponentProps } from 'react';
|
|
2
|
+
import { SelectTriggerProps } from '@base-ui/react';
|
|
3
|
+
import { PaginationSize } from './pagination-size-context';
|
|
4
|
+
import { PaginationTeleport } from './pagination-teleport';
|
|
5
|
+
declare const Pagination: ForwardRefExoticComponent<Omit<ComponentProps<'nav'> & {
|
|
6
|
+
size?: PaginationSize;
|
|
7
|
+
}, 'ref'> & RefAttributes<HTMLElement>>;
|
|
8
|
+
declare const PaginationContent: ForwardRefExoticComponent<Omit<ComponentProps<'ul'> & {
|
|
9
|
+
size?: PaginationSize;
|
|
10
|
+
}, 'ref'> & RefAttributes<HTMLUListElement>>;
|
|
11
|
+
declare const PaginationItem: ForwardRefExoticComponent<ComponentProps<'li'> & RefAttributes<HTMLLIElement>>;
|
|
12
|
+
declare const PaginationStatus: ForwardRefExoticComponent<ComponentProps<'output'> & RefAttributes<HTMLOutputElement>>;
|
|
13
|
+
declare const PaginationSelectTrigger: ForwardRefExoticComponent<Omit<SelectTriggerProps & {
|
|
14
|
+
size?: 'sm' | 'default';
|
|
15
|
+
errorMessage?: string;
|
|
16
|
+
}, 'ref'> & RefAttributes<HTMLButtonElement>>;
|
|
17
|
+
type PaginationLinkProps = {
|
|
18
|
+
isActive?: boolean;
|
|
19
|
+
isDisabled?: boolean;
|
|
20
|
+
size?: PaginationSize;
|
|
21
|
+
} & ComponentProps<'a'>;
|
|
22
|
+
declare const PaginationLink: ForwardRefExoticComponent<Omit<PaginationLinkProps, 'ref'> & RefAttributes<HTMLAnchorElement>>;
|
|
23
|
+
declare const PaginationFirst: ForwardRefExoticComponent<Omit<Omit<PaginationLinkProps, 'isActive'> & {
|
|
24
|
+
label?: string;
|
|
25
|
+
}, 'ref'> & RefAttributes<HTMLAnchorElement>>;
|
|
26
|
+
declare const PaginationPrevious: ForwardRefExoticComponent<Omit<Omit<PaginationLinkProps, 'isActive'> & {
|
|
27
|
+
label?: string;
|
|
28
|
+
}, 'ref'> & RefAttributes<HTMLAnchorElement>>;
|
|
29
|
+
declare const PaginationNext: ForwardRefExoticComponent<Omit<Omit<PaginationLinkProps, 'isActive'> & {
|
|
30
|
+
label?: string;
|
|
31
|
+
}, 'ref'> & RefAttributes<HTMLAnchorElement>>;
|
|
32
|
+
declare const PaginationLast: ForwardRefExoticComponent<Omit<Omit<PaginationLinkProps, 'isActive'> & {
|
|
33
|
+
label?: string;
|
|
34
|
+
}, 'ref'> & RefAttributes<HTMLAnchorElement>>;
|
|
35
|
+
declare const PaginationEllipsis: ForwardRefExoticComponent<Omit<ComponentProps<'span'> & {
|
|
36
|
+
size?: PaginationSize;
|
|
37
|
+
label?: string;
|
|
38
|
+
}, 'ref'> & RefAttributes<HTMLSpanElement>>;
|
|
39
|
+
declare const PaginationResultsPerPage: ForwardRefExoticComponent<ComponentProps<'li'> & RefAttributes<HTMLLIElement>>;
|
|
40
|
+
declare const PaginationResultsPerPageLabel: ForwardRefExoticComponent<ComponentProps<'span'> & RefAttributes<HTMLSpanElement>>;
|
|
41
|
+
export { Pagination, PaginationContent, PaginationEllipsis, PaginationFirst, PaginationItem, PaginationLast, PaginationLink, PaginationNext, PaginationPrevious, PaginationResultsPerPage, PaginationResultsPerPageLabel, PaginationSelectTrigger, PaginationStatus, PaginationTeleport, };
|