@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,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, };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsx as i, jsxs as d, Fragment as
|
|
1
|
+
import { jsx as i, jsxs as d, Fragment as v } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as r } from "react";
|
|
3
3
|
import { cn as o, getHostname as m } from "../../../../lib/utils.js";
|
|
4
4
|
import { Badge as g } from "../badge/badge.js";
|
|
5
|
-
import { HoverCard as
|
|
5
|
+
import { HoverCard as f, HoverCardContent as x, HoverCardTrigger as b } from "../hover-card/hover-card.js";
|
|
6
6
|
const h = r(
|
|
7
7
|
({ className: e, ...n }, t) => /* @__PURE__ */ i(
|
|
8
8
|
"span",
|
|
@@ -15,31 +15,35 @@ 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,
|
|
43
47
|
{
|
|
44
48
|
"data-slot": "inline-citation-card",
|
|
45
49
|
closeDelay: 0,
|
|
@@ -59,14 +63,14 @@ const q = (e) => /* @__PURE__ */ i(
|
|
|
59
63
|
{
|
|
60
64
|
"data-slot": "inline-citation-card-trigger",
|
|
61
65
|
className: o(
|
|
62
|
-
"ml-1 inline-flex items-center justify-center rounded-md border border-transparent bg-decorative-fjord
|
|
66
|
+
"ml-1 inline-flex items-center justify-center rounded-md border border-transparent bg-decorative-background-fjord px-1 text-sm leading-4.5 font-medium text-decorative-foreground-fjord whitespace-nowrap gap-1 transition-[color,box-shadow]",
|
|
63
67
|
"[&>svg]:size-3 [&>svg]:pointer-events-none",
|
|
64
68
|
t
|
|
65
69
|
),
|
|
66
70
|
...a,
|
|
67
71
|
children: [
|
|
68
72
|
n && /* @__PURE__ */ i(n, { className: "size-3" }),
|
|
69
|
-
e[0] ? /* @__PURE__ */ d(
|
|
73
|
+
e[0] ? /* @__PURE__ */ d(v, { children: [
|
|
70
74
|
m(e[0]),
|
|
71
75
|
" ",
|
|
72
76
|
e.length > 1 && `+${e.length - 1}`
|
|
@@ -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
|
({
|
|
@@ -143,9 +151,9 @@ const I = r(
|
|
|
143
151
|
"inline-flex items-center justify-center rounded-md border border-transparent px-1 text-sm leading-4.5 font-medium whitespace-nowrap gap-1 transition-colors",
|
|
144
152
|
"[&>svg]:size-3 [&>svg]:pointer-events-none",
|
|
145
153
|
{
|
|
146
|
-
mountain: "bg-decorative-mountain
|
|
147
|
-
nordic: "bg-decorative-nordic
|
|
148
|
-
fjord: "bg-decorative-fjord
|
|
154
|
+
mountain: "bg-decorative-background-mountain hover:bg-decorative-background-mountain-hover text-decorative-foreground-mountain",
|
|
155
|
+
nordic: "bg-decorative-background-nordic hover:bg-decorative-background-nordic-hover text-decorative-foreground-nordic",
|
|
156
|
+
fjord: "bg-decorative-background-fjord hover:bg-decorative-background-fjord-hover text-decorative-foreground-fjord"
|
|
149
157
|
}[a],
|
|
150
158
|
l
|
|
151
159
|
),
|
|
@@ -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,
|
|
@@ -0,0 +1,4 @@
|
|
|
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>>;
|
|
4
|
+
export { Kbd, KbdGroup };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as n } from "react";
|
|
3
|
+
import { cn as d } from "../../../../lib/utils.js";
|
|
4
|
+
const i = n(
|
|
5
|
+
({ className: t, ...e }, o) => /* @__PURE__ */ a(
|
|
6
|
+
"kbd",
|
|
7
|
+
{
|
|
8
|
+
ref: o,
|
|
9
|
+
"data-slot": "kbd",
|
|
10
|
+
className: d(
|
|
11
|
+
"bg-muted-background text-muted-foreground pointer-events-none inline-flex h-5 w-fit min-w-5 items-center justify-center gap-1 rounded-md px-1 font-sans text-xs font-medium leading-4 select-none aria-disabled:bg-disabled-background aria-disabled:text-disabled-foreground aria-disabled:opacity-100",
|
|
12
|
+
"[&_svg:not([class*='size-'])]:size-3",
|
|
13
|
+
"in-data-[slot=tooltip-content]:bg-background/20 in-data-[slot=tooltip-content]:text-background dark:in-data-[slot=tooltip-content]:bg-background/10",
|
|
14
|
+
t
|
|
15
|
+
),
|
|
16
|
+
...e
|
|
17
|
+
}
|
|
18
|
+
)
|
|
19
|
+
);
|
|
20
|
+
i.displayName = "Kbd";
|
|
21
|
+
const r = n(
|
|
22
|
+
({ className: t, ...e }, o) => /* @__PURE__ */ a(
|
|
23
|
+
"span",
|
|
24
|
+
{
|
|
25
|
+
ref: o,
|
|
26
|
+
"data-slot": "kbd-group",
|
|
27
|
+
className: d("inline-flex items-center gap-1", t),
|
|
28
|
+
...e
|
|
29
|
+
}
|
|
30
|
+
)
|
|
31
|
+
);
|
|
32
|
+
r.displayName = "KbdGroup";
|
|
33
|
+
export {
|
|
34
|
+
i as Kbd,
|
|
35
|
+
r as KbdGroup
|
|
36
|
+
};
|
|
@@ -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,7 +1,15 @@
|
|
|
1
|
-
import { HTMLAttributes } from 'react';
|
|
2
|
-
|
|
1
|
+
import { ForwardRefExoticComponent, RefAttributes, HTMLAttributes } from 'react';
|
|
2
|
+
type LoaderSharedProps = HTMLAttributes<HTMLDivElement>;
|
|
3
|
+
interface InlineLoaderProps extends LoaderSharedProps {
|
|
4
|
+
variant?: 'inline';
|
|
3
5
|
size?: number;
|
|
4
6
|
}
|
|
5
|
-
|
|
7
|
+
interface PageLoaderProps extends LoaderSharedProps {
|
|
8
|
+
variant: 'page';
|
|
9
|
+
header: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
}
|
|
12
|
+
type LoaderProps = InlineLoaderProps | PageLoaderProps;
|
|
13
|
+
declare const Loader: ForwardRefExoticComponent<LoaderProps & RefAttributes<HTMLDivElement>>;
|
|
6
14
|
export { Loader };
|
|
7
15
|
export type { LoaderProps };
|