@cognite/aura 0.2.0 → 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/README.md +36 -3
- package/dist/colors.css +30 -0
- package/dist/components/index.d.ts +6 -36
- package/dist/components/index.js +311 -347
- package/dist/components/ui/core/accordion/accordion.d.ts +7 -7
- package/dist/components/ui/core/accordion/accordion.js +49 -47
- 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/badge/badge.d.ts +11 -8
- 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 +10 -9
- package/dist/components/ui/core/breadcrumb/breadcrumb.js +98 -88
- 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 +17 -16
- 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 +13 -9
- package/dist/components/ui/core/checkbox/checkbox.js +38 -34
- 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 +7 -6
- 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 +57 -49
- 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 +3 -2
- package/dist/components/ui/core/label/label.d.ts +3 -2
- package/dist/components/ui/core/loader/loader.d.ts +2 -2
- 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 +12 -8
- package/dist/components/ui/core/radio-group/radio-group.js +58 -55
- 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 +15 -11
- package/dist/components/ui/core/segmented-control/segmented-control.js +7 -4
- 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 +2 -1
- 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 +21 -17
- package/dist/components/ui/core/tabs/tabs.js +14 -12
- 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 +11 -13
- package/dist/eslint/index.d.ts +2 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +302 -336
- package/dist/lib/portal-container-context.d.ts +2 -1
- package/dist/lib/portal-container-context.js +1 -3
- package/dist/styles.css +1 -1
- package/dist/styles.source.css +9 -1
- package/package.json +22 -1
- 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.d.ts +0 -2
- 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/breadcrumb/breadcrumb.metadata.d.ts +0 -2
- package/dist/components/ui/core/breadcrumb/breadcrumb.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/kbd/kbd.metadata.d.ts +0 -2
- package/dist/components/ui/core/kbd/kbd.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/radio-group/radio-group.metadata.d.ts +0 -2
- package/dist/components/ui/core/radio-group/radio-group.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/sonner-toast/sonner-toast.metadata.d.ts +0 -2
- package/dist/components/ui/core/sonner-toast/sonner-toast.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,12 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ForwardRefExoticComponent, RefAttributes, ReactNode } from 'react';
|
|
2
|
+
import { PreviewCardPopupProps, PreviewCardPositionerProps, PreviewCard as PreviewCardPrimitive } from '@base-ui/react/preview-card';
|
|
2
3
|
type HoverCardDelay = {
|
|
3
4
|
openDelay?: number;
|
|
4
5
|
closeDelay?: number;
|
|
5
6
|
};
|
|
6
|
-
declare function HoverCard({ openDelay, closeDelay, ...props }: PreviewCardPrimitive.Root.Props & HoverCardDelay):
|
|
7
|
-
declare
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
declare const HoverCardTrigger: import('react').ForwardRefExoticComponent<Omit<PreviewCardPrimitive.Trigger.Props<unknown>, "ref"> & import('react').RefAttributes<HTMLAnchorElement>>;
|
|
11
|
-
declare const HoverCardContent: import('react').ForwardRefExoticComponent<Omit<import('@base-ui/react').PreviewCardPopupProps & Pick<import('@base-ui/react').PreviewCardPositionerProps, "align" | "alignOffset" | "side" | "sideOffset">, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
7
|
+
declare function HoverCard({ openDelay, closeDelay, ...props }: PreviewCardPrimitive.Root.Props & HoverCardDelay): ReactNode;
|
|
8
|
+
declare const HoverCardTrigger: ForwardRefExoticComponent<Omit<PreviewCardPrimitive.Trigger.Props<unknown>, 'ref'> & RefAttributes<HTMLAnchorElement>>;
|
|
9
|
+
declare const HoverCardContent: ForwardRefExoticComponent<Omit<PreviewCardPopupProps & Pick<PreviewCardPositionerProps, 'align' | 'alignOffset' | 'side' | 'sideOffset'>, 'ref'> & RefAttributes<HTMLDivElement>>;
|
|
12
10
|
export { HoverCard, HoverCardTrigger, HoverCardContent };
|
|
@@ -1,37 +1,38 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { useMemo as p, forwardRef as l, useContext as f, createContext as u } from "react";
|
|
3
3
|
import { PreviewCard as d } from "@base-ui/react/preview-card";
|
|
4
4
|
import { usePortalContainer as g } from "../../../../lib/portal-container-context.js";
|
|
5
5
|
import { cn as v } from "../../../../lib/utils.js";
|
|
6
|
-
const m =
|
|
7
|
-
function
|
|
6
|
+
const m = u(null);
|
|
7
|
+
function w({
|
|
8
8
|
openDelay: o,
|
|
9
9
|
closeDelay: e,
|
|
10
10
|
...a
|
|
11
11
|
}) {
|
|
12
|
-
const r =
|
|
12
|
+
const r = p(
|
|
13
13
|
() => ({ openDelay: o, closeDelay: e }),
|
|
14
14
|
[o, e]
|
|
15
15
|
);
|
|
16
16
|
return /* @__PURE__ */ t(m.Provider, { value: r, children: /* @__PURE__ */ t(d.Root, { "data-slot": "hover-card", ...a }) });
|
|
17
17
|
}
|
|
18
|
-
C
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
|
|
18
|
+
const C = l(
|
|
19
|
+
({ children: o, ...e }, a) => {
|
|
20
|
+
const r = f(m), { delay: n, closeDelay: i, ...s } = e;
|
|
21
|
+
return /* @__PURE__ */ t(
|
|
22
|
+
d.Trigger,
|
|
23
|
+
{
|
|
24
|
+
ref: a,
|
|
25
|
+
"data-slot": "hover-card-trigger",
|
|
26
|
+
delay: n ?? r?.openDelay,
|
|
27
|
+
closeDelay: i ?? r?.closeDelay,
|
|
28
|
+
...s,
|
|
29
|
+
children: o
|
|
30
|
+
}
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
);
|
|
34
|
+
C.displayName = "HoverCardTrigger";
|
|
35
|
+
const h = l(
|
|
35
36
|
({
|
|
36
37
|
className: o,
|
|
37
38
|
side: e = "bottom",
|
|
@@ -72,9 +73,9 @@ const y = l(
|
|
|
72
73
|
);
|
|
73
74
|
}
|
|
74
75
|
);
|
|
75
|
-
|
|
76
|
+
h.displayName = "HoverCardContent";
|
|
76
77
|
export {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
w as HoverCard,
|
|
79
|
+
h as HoverCardContent,
|
|
80
|
+
C as HoverCardTrigger
|
|
80
81
|
};
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { ComponentProps, ComponentType } from 'react';
|
|
1
|
+
import { ForwardRefExoticComponent, RefAttributes, ComponentProps, ComponentType, ReactNode } from 'react';
|
|
2
2
|
import { Badge } from '../badge/badge';
|
|
3
3
|
import { HoverCard } from '../hover-card/hover-card';
|
|
4
|
-
declare const InlineCitation:
|
|
5
|
-
declare const InlineCitationGroup:
|
|
6
|
-
declare const InlineCitationText:
|
|
4
|
+
declare const InlineCitation: ForwardRefExoticComponent<ComponentProps<'span'> & RefAttributes<HTMLSpanElement>>;
|
|
5
|
+
declare const InlineCitationGroup: ForwardRefExoticComponent<ComponentProps<'div'> & RefAttributes<HTMLDivElement>>;
|
|
6
|
+
declare const InlineCitationText: ForwardRefExoticComponent<ComponentProps<'span'> & RefAttributes<HTMLSpanElement>>;
|
|
7
7
|
type InlineCitationCardProps = ComponentProps<typeof HoverCard>;
|
|
8
|
-
declare const InlineCitationCard: (props: InlineCitationCardProps) =>
|
|
8
|
+
declare const InlineCitationCard: (props: InlineCitationCardProps) => ReactNode;
|
|
9
9
|
type InlineCitationCardTriggerProps = ComponentProps<typeof Badge> & {
|
|
10
10
|
sources: string[];
|
|
11
11
|
icon?: ComponentType<{
|
|
12
12
|
className?: string;
|
|
13
13
|
}>;
|
|
14
14
|
};
|
|
15
|
-
declare const InlineCitationCardTrigger: ({ sources, icon: Icon, className, ...props }: InlineCitationCardTriggerProps) =>
|
|
15
|
+
declare const InlineCitationCardTrigger: ({ sources, icon: Icon, className, ...props }: InlineCitationCardTriggerProps) => ReactNode;
|
|
16
16
|
type InlineCitationCardBodyProps = ComponentProps<'div'>;
|
|
17
|
-
declare const InlineCitationCardBody: ({ className, ...props }: InlineCitationCardBodyProps) =>
|
|
17
|
+
declare const InlineCitationCardBody: ({ className, ...props }: InlineCitationCardBodyProps) => ReactNode;
|
|
18
18
|
type InlineCitationSourceProps = ComponentProps<'div'> & {
|
|
19
19
|
title?: string;
|
|
20
20
|
url?: string;
|
|
21
21
|
description?: string;
|
|
22
22
|
};
|
|
23
|
-
declare const InlineCitationSource:
|
|
24
|
-
declare const InlineCitationQuote:
|
|
23
|
+
declare const InlineCitationSource: ForwardRefExoticComponent<Omit<InlineCitationSourceProps, 'ref'> & RefAttributes<HTMLDivElement>>;
|
|
24
|
+
declare const InlineCitationQuote: ForwardRefExoticComponent<ComponentProps<'blockquote'> & RefAttributes<HTMLQuoteElement>>;
|
|
25
25
|
export type InlineCitationLinkProps = Omit<ComponentProps<'a'>, 'target'> & {
|
|
26
26
|
target?: '_blank' | '_self';
|
|
27
27
|
icon?: ComponentType<{
|
|
@@ -29,5 +29,5 @@ export type InlineCitationLinkProps = Omit<ComponentProps<'a'>, 'target'> & {
|
|
|
29
29
|
}>;
|
|
30
30
|
variant?: 'mountain' | 'nordic' | 'fjord';
|
|
31
31
|
};
|
|
32
|
-
declare const InlineCitationLink:
|
|
32
|
+
declare const InlineCitationLink: ForwardRefExoticComponent<Omit<InlineCitationLinkProps, 'ref'> & RefAttributes<HTMLAnchorElement>>;
|
|
33
33
|
export { InlineCitation, InlineCitationCard, InlineCitationCardBody, InlineCitationCardTrigger, InlineCitationGroup, InlineCitationLink, InlineCitationQuote, InlineCitationSource, InlineCitationText, };
|
|
@@ -15,28 +15,32 @@ const h = r(
|
|
|
15
15
|
)
|
|
16
16
|
);
|
|
17
17
|
h.displayName = "InlineCitation";
|
|
18
|
-
const C = r(
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
18
|
+
const C = r(
|
|
19
|
+
({ className: e, ...n }, t) => /* @__PURE__ */ i(
|
|
20
|
+
"div",
|
|
21
|
+
{
|
|
22
|
+
ref: t,
|
|
23
|
+
"data-slot": "inline-citation-group",
|
|
24
|
+
className: o("flex flex-wrap gap-2", e),
|
|
25
|
+
...n
|
|
26
|
+
}
|
|
27
|
+
)
|
|
28
|
+
);
|
|
27
29
|
C.displayName = "InlineCitationGroup";
|
|
28
|
-
const N = r(
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
30
|
+
const N = r(
|
|
31
|
+
({ className: e, ...n }, t) => /* @__PURE__ */ i(
|
|
32
|
+
"span",
|
|
33
|
+
{
|
|
34
|
+
ref: t,
|
|
35
|
+
"data-slot": "inline-citation-text",
|
|
36
|
+
className: o(
|
|
37
|
+
"transition-colors group-hover:bg-accent-background",
|
|
38
|
+
e
|
|
39
|
+
),
|
|
40
|
+
...n
|
|
41
|
+
}
|
|
42
|
+
)
|
|
43
|
+
);
|
|
40
44
|
N.displayName = "InlineCitationText";
|
|
41
45
|
const q = (e) => /* @__PURE__ */ i(
|
|
42
46
|
f,
|
|
@@ -85,35 +89,39 @@ const q = (e) => /* @__PURE__ */ i(
|
|
|
85
89
|
className: o("relative w-80 p-0", e),
|
|
86
90
|
...n
|
|
87
91
|
}
|
|
88
|
-
), k = r(
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
92
|
+
), k = r(
|
|
93
|
+
({ title: e, url: n, description: t, className: a, children: l, ...s }, c) => /* @__PURE__ */ d(
|
|
94
|
+
"div",
|
|
95
|
+
{
|
|
96
|
+
ref: c,
|
|
97
|
+
"data-slot": "inline-citation-source",
|
|
98
|
+
className: o("space-y-1", a),
|
|
99
|
+
...s,
|
|
100
|
+
children: [
|
|
101
|
+
e && /* @__PURE__ */ i("h4", { className: "truncate font-medium text-sm leading-tight", children: e }),
|
|
102
|
+
n && /* @__PURE__ */ i("p", { className: "truncate break-all text-muted-foreground text-xs", children: n }),
|
|
103
|
+
t && /* @__PURE__ */ i("p", { className: "line-clamp-3 text-muted-foreground text-sm leading-relaxed", children: t }),
|
|
104
|
+
l
|
|
105
|
+
]
|
|
106
|
+
}
|
|
107
|
+
)
|
|
108
|
+
);
|
|
103
109
|
k.displayName = "InlineCitationSource";
|
|
104
|
-
const y = r(
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
110
|
+
const y = r(
|
|
111
|
+
({ children: e, className: n, ...t }, a) => /* @__PURE__ */ i(
|
|
112
|
+
"blockquote",
|
|
113
|
+
{
|
|
114
|
+
ref: a,
|
|
115
|
+
"data-slot": "inline-citation-quote",
|
|
116
|
+
className: o(
|
|
117
|
+
"border-muted-background border-l-2 pl-3 text-muted-foreground text-sm italic",
|
|
118
|
+
n
|
|
119
|
+
),
|
|
120
|
+
...t,
|
|
121
|
+
children: e
|
|
122
|
+
}
|
|
123
|
+
)
|
|
124
|
+
);
|
|
117
125
|
y.displayName = "InlineCitationQuote";
|
|
118
126
|
const I = r(
|
|
119
127
|
({
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import { ForwardRefExoticComponent, RefAttributes, ComponentProps } from 'react';
|
|
2
|
+
declare const Input: ForwardRefExoticComponent<ComponentProps<'input'> & RefAttributes<HTMLInputElement>>;
|
|
2
3
|
export { Input };
|
|
@@ -1,15 +1,19 @@
|
|
|
1
|
+
import { ForwardRefExoticComponent, RefAttributes, ComponentProps } from 'react';
|
|
1
2
|
import { VariantProps } from 'class-variance-authority';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
declare const
|
|
3
|
+
import { ClassProp } from 'class-variance-authority/types';
|
|
4
|
+
import { Button } from '../button/button';
|
|
5
|
+
declare const InputGroup: ForwardRefExoticComponent<ComponentProps<'div'> & RefAttributes<HTMLDivElement>>;
|
|
6
|
+
interface InputGroupAddonVariantProps {
|
|
7
|
+
align?: 'inline-start' | 'inline-end' | 'block-start' | 'block-end' | null;
|
|
8
|
+
}
|
|
9
|
+
declare const inputGroupAddonVariants: (props?: (InputGroupAddonVariantProps & ClassProp) | undefined) => string;
|
|
10
|
+
declare const InputGroupAddon: ForwardRefExoticComponent<ComponentProps<'div'> & VariantProps<typeof inputGroupAddonVariants> & RefAttributes<HTMLDivElement>>;
|
|
11
|
+
interface InputGroupButtonVariantProps {
|
|
12
|
+
size?: 'xs' | 'sm' | 'icon-xs' | 'icon-sm' | null;
|
|
13
|
+
}
|
|
14
|
+
type InputGroupButtonProps = Omit<ComponentProps<typeof Button>, 'size'> & InputGroupButtonVariantProps;
|
|
15
|
+
declare const InputGroupButton: ForwardRefExoticComponent<Omit<InputGroupButtonProps, 'ref'> & RefAttributes<HTMLElement>>;
|
|
16
|
+
declare const InputGroupText: ForwardRefExoticComponent<ComponentProps<'span'> & RefAttributes<HTMLSpanElement>>;
|
|
17
|
+
declare const InputGroupInput: ForwardRefExoticComponent<ComponentProps<'input'> & RefAttributes<HTMLInputElement>>;
|
|
18
|
+
declare const InputGroupTextarea: ForwardRefExoticComponent<ComponentProps<'textarea'> & RefAttributes<HTMLTextAreaElement>>;
|
|
15
19
|
export { InputGroup, InputGroupAddon, InputGroupButton, InputGroupText, InputGroupInput, InputGroupTextarea, };
|
|
@@ -74,22 +74,19 @@ const u = "[&>svg:not([class*='size-'])]:size-4 [&>svg]:shrink-0 [&>svg]:text-mu
|
|
|
74
74
|
}
|
|
75
75
|
));
|
|
76
76
|
f.displayName = "InputGroupAddon";
|
|
77
|
-
const m = l(
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
"icon-xs": "size-6 rounded-xs p-0 has-[>svg]:p-0",
|
|
85
|
-
"icon-sm": "size-7 p-0 has-[>svg]:p-0"
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
defaultVariants: {
|
|
89
|
-
size: "xs"
|
|
77
|
+
const m = l("text-sm shadow-none flex gap-2 items-center", {
|
|
78
|
+
variants: {
|
|
79
|
+
size: {
|
|
80
|
+
xs: "h-6 gap-1 px-2 rounded-sm [&>svg:not([class*='size-'])]:size-3.5 has-[>svg]:px-2",
|
|
81
|
+
sm: "h-7 px-2.5 gap-1.5 rounded-md has-[>svg]:px-2.5",
|
|
82
|
+
"icon-xs": "size-6 rounded-xs p-0 has-[>svg]:p-0",
|
|
83
|
+
"icon-sm": "size-7 p-0 has-[>svg]:p-0"
|
|
90
84
|
}
|
|
85
|
+
},
|
|
86
|
+
defaultVariants: {
|
|
87
|
+
size: "xs"
|
|
91
88
|
}
|
|
92
|
-
), x = s(
|
|
89
|
+
}), x = s(
|
|
93
90
|
({ className: t, type: o = "button", variant: r = "ghost", size: i = "xs", ...a }, p) => /* @__PURE__ */ e(
|
|
94
91
|
g,
|
|
95
92
|
{
|
|
@@ -141,28 +138,30 @@ const k = s(
|
|
|
141
138
|
)
|
|
142
139
|
);
|
|
143
140
|
k.displayName = "InputGroupInput";
|
|
144
|
-
const w = s(
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
141
|
+
const w = s(
|
|
142
|
+
({ className: t, ...o }, r) => /* @__PURE__ */ e(
|
|
143
|
+
b,
|
|
144
|
+
{
|
|
145
|
+
ref: r,
|
|
146
|
+
"data-slot": "input-group-control",
|
|
147
|
+
className: n(
|
|
148
|
+
"min-h-0 flex-1 resize-none rounded-lg border-0 bg-transparent py-3 shadow-none",
|
|
149
|
+
"tracking-[-0.04em]",
|
|
150
|
+
"hover:border-0 hover:bg-transparent hover:text-muted-foreground",
|
|
151
|
+
"filled:border-transparent",
|
|
152
|
+
"focus-visible:shadow-none focus-visible:border-transparent",
|
|
153
|
+
"read-only:focus-visible:bg-muted-background",
|
|
154
|
+
"aria-invalid:shadow-none aria-invalid:border-transparent",
|
|
155
|
+
"aria-invalid:[&:not(:placeholder-shown)]:border-transparent",
|
|
156
|
+
"aria-invalid:focus-visible:not(:read-only):bg-background aria-invalid:focus-visible:shadow-none aria-invalid:focus-visible:border-transparent",
|
|
157
|
+
"read-only:aria-invalid:focus-visible:bg-muted-background",
|
|
158
|
+
"read-only:text-muted-foreground [&:read-only:not(:placeholder-shown)]:text-muted-foreground",
|
|
159
|
+
t
|
|
160
|
+
),
|
|
161
|
+
...o
|
|
162
|
+
}
|
|
163
|
+
)
|
|
164
|
+
);
|
|
166
165
|
w.displayName = "InputGroupTextarea";
|
|
167
166
|
export {
|
|
168
167
|
h as InputGroup,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
declare const
|
|
1
|
+
import { ForwardRefExoticComponent, RefAttributes, ComponentProps } from 'react';
|
|
2
|
+
declare const Kbd: ForwardRefExoticComponent<ComponentProps<'kbd'> & RefAttributes<HTMLElement>>;
|
|
3
|
+
declare const KbdGroup: ForwardRefExoticComponent<ComponentProps<'span'> & RefAttributes<HTMLSpanElement>>;
|
|
3
4
|
export { Kbd, KbdGroup };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { ComponentProps, ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
2
|
+
declare const Label: ForwardRefExoticComponent<ComponentProps<'label'> & {
|
|
2
3
|
required?: boolean;
|
|
3
|
-
} &
|
|
4
|
+
} & RefAttributes<HTMLLabelElement>>;
|
|
4
5
|
export { Label };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HTMLAttributes } from 'react';
|
|
1
|
+
import { ForwardRefExoticComponent, RefAttributes, HTMLAttributes } from 'react';
|
|
2
2
|
type LoaderSharedProps = HTMLAttributes<HTMLDivElement>;
|
|
3
3
|
interface InlineLoaderProps extends LoaderSharedProps {
|
|
4
4
|
variant?: 'inline';
|
|
@@ -10,6 +10,6 @@ interface PageLoaderProps extends LoaderSharedProps {
|
|
|
10
10
|
description?: string;
|
|
11
11
|
}
|
|
12
12
|
type LoaderProps = InlineLoaderProps | PageLoaderProps;
|
|
13
|
-
declare const Loader:
|
|
13
|
+
declare const Loader: ForwardRefExoticComponent<LoaderProps & RefAttributes<HTMLDivElement>>;
|
|
14
14
|
export { Loader };
|
|
15
15
|
export type { LoaderProps };
|
|
@@ -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 };
|