@cognite/aura 0.2.0 → 0.3.1
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 +869 -870
- package/README.md +143 -9
- package/dist/colors.css +30 -0
- package/dist/components/index.d.ts +7 -36
- package/dist/components/index.js +319 -350
- 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/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 +32 -28
- package/dist/components/ui/core/code-block/code-block.d.ts +6 -9
- package/dist/components/ui/core/code-block/code-block.js +48 -44
- 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-picker/date-picker.d.ts +15 -0
- package/dist/components/ui/core/date-time-pickers/date-picker/date-picker.js +84 -0
- package/dist/components/ui/core/date-time-pickers/date-picker/index.d.ts +3 -0
- package/dist/components/ui/core/date-time-pickers/date-picker/types.d.ts +18 -0
- package/dist/components/ui/core/date-time-pickers/date-picker/use-date-picker.d.ts +3 -0
- package/dist/components/ui/core/date-time-pickers/date-picker/use-date-picker.js +63 -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 +8 -0
- package/dist/components/ui/core/date-time-pickers/index.js +8 -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-single-date-state.d.ts +23 -0
- package/dist/components/ui/core/date-time-pickers/shared/hooks/use-single-date-state.js +32 -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 +23 -22
- 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/input.js +1 -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 +387 -99
- 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 +337 -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 +180 -167
- package/dist/components/ui/core/radio-group/radio-group.d.ts +12 -8
- package/dist/components/ui/core/radio-group/radio-group.js +56 -53
- package/dist/components/ui/core/reasoning/reasoning.d.ts +5 -5
- 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 +4 -1
- package/dist/components/ui/core/select/select.d.ts +15 -14
- package/dist/components/ui/core/select/select.js +135 -108
- 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 +5 -5
- package/dist/components/ui/core/shimmer/shimmer.js +91 -52
- 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 +11 -9
- 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/toggle/toggle.d.ts +15 -0
- package/dist/components/ui/core/toggle/toggle.js +74 -0
- package/dist/components/ui/core/tool/tool.d.ts +7 -6
- package/dist/components/ui/core/tool/tool.js +47 -43
- 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/lib/portal-container-context.d.ts +2 -1
- package/dist/lib/portal-container-context.js +3 -5
- package/dist/lib/utils.d.ts +1 -1
- package/dist/lib/utils.js +7 -7
- package/dist/styles.css +1 -1
- package/dist/styles.source.css +12 -1
- package/package.json +217 -14
- 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
- package/dist/index.js +0 -342
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ForwardRefExoticComponent, RefAttributes, ComponentProps, ReactNode } from 'react';
|
|
2
|
+
import { EmptyStateType } from './empty-state.context';
|
|
3
|
+
declare const EmptyState: ForwardRefExoticComponent<Omit<ComponentProps<'div'>, 'ref'> & ({
|
|
4
|
+
variant?: 'compact';
|
|
5
|
+
type?: EmptyStateType;
|
|
6
|
+
} | {
|
|
7
|
+
variant: 'full';
|
|
8
|
+
type: EmptyStateType;
|
|
9
|
+
}) & RefAttributes<HTMLDivElement>>;
|
|
10
|
+
declare const EmptyStateIcon: ForwardRefExoticComponent<ComponentProps<'div'> & RefAttributes<HTMLDivElement>>;
|
|
11
|
+
type TitleAs = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p';
|
|
12
|
+
type EmptyStateTitleProps = ComponentProps<'h2'> & {
|
|
13
|
+
as?: TitleAs;
|
|
14
|
+
};
|
|
15
|
+
declare function EmptyStateTitle({ className, as: Component, ...props }: EmptyStateTitleProps): ReactNode;
|
|
16
|
+
declare const EmptyStateDescription: ForwardRefExoticComponent<ComponentProps<'p'> & RefAttributes<HTMLParagraphElement>>;
|
|
17
|
+
declare const EmptyStateActions: ForwardRefExoticComponent<ComponentProps<'div'> & RefAttributes<HTMLDivElement>>;
|
|
18
|
+
export { EmptyState, EmptyStateIcon, EmptyStateTitle, EmptyStateDescription, EmptyStateActions, };
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as g, useMemo as d } from "react";
|
|
3
|
+
import { IconQuestionMark as u, IconMessageDots as p, IconZoomQuestion as f, IconSearchOff as x, IconLock as y, IconPlus as k, IconAlertOctagon as v } from "@tabler/icons-react";
|
|
4
|
+
import { cn as s } from "../../../../lib/utils.js";
|
|
5
|
+
import { EmptyStateContext as h, useEmptyState as m } from "./empty-state.context.js";
|
|
6
|
+
const w = {
|
|
7
|
+
"error-generic": "[background-image:var(--gradient-fall)]",
|
|
8
|
+
"new-object": "[background-image:var(--gradient-spring)]",
|
|
9
|
+
"no-access": "[background-image:var(--gradient-fall)]",
|
|
10
|
+
"no-results": "[background-image:var(--gradient-spring)]",
|
|
11
|
+
"not-found": "[background-image:var(--gradient-spring)]",
|
|
12
|
+
"new-chat": "[background-image:var(--gradient-summer)]",
|
|
13
|
+
unknown: "[background-image:var(--gradient-spring)]"
|
|
14
|
+
}, b = {
|
|
15
|
+
"error-generic": /* @__PURE__ */ t(v, {}),
|
|
16
|
+
"new-object": /* @__PURE__ */ t(k, {}),
|
|
17
|
+
"no-access": /* @__PURE__ */ t(y, {}),
|
|
18
|
+
"no-results": /* @__PURE__ */ t(x, {}),
|
|
19
|
+
"not-found": /* @__PURE__ */ t(f, {}),
|
|
20
|
+
"new-chat": /* @__PURE__ */ t(p, {}),
|
|
21
|
+
unknown: /* @__PURE__ */ t(u, {})
|
|
22
|
+
}, S = g(
|
|
23
|
+
({ className: n, variant: e = "compact", type: a, children: o, ...i }, r) => {
|
|
24
|
+
const c = e === "full", l = d(() => ({ variant: e, type: a }), [e, a]);
|
|
25
|
+
return /* @__PURE__ */ t(h.Provider, { value: l, children: /* @__PURE__ */ t(
|
|
26
|
+
"div",
|
|
27
|
+
{
|
|
28
|
+
ref: r,
|
|
29
|
+
"data-slot": "empty-state",
|
|
30
|
+
"data-variant": e,
|
|
31
|
+
className: s(
|
|
32
|
+
"flex min-w-0 flex-col items-center text-center text-foreground",
|
|
33
|
+
c ? "gap-8 p-10" : "gap-2",
|
|
34
|
+
!c && "w-full max-w-100",
|
|
35
|
+
n
|
|
36
|
+
),
|
|
37
|
+
...i,
|
|
38
|
+
children: o
|
|
39
|
+
}
|
|
40
|
+
) });
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
S.displayName = "EmptyState";
|
|
44
|
+
const E = g(
|
|
45
|
+
({ className: n, children: e, ...a }, o) => {
|
|
46
|
+
const { variant: i, type: r } = m(), c = i === "full", l = e ?? (r ? b[r] : null);
|
|
47
|
+
return c ? /* @__PURE__ */ t(
|
|
48
|
+
"div",
|
|
49
|
+
{
|
|
50
|
+
ref: o,
|
|
51
|
+
"data-slot": "empty-state-icon",
|
|
52
|
+
className: s(
|
|
53
|
+
"flex size-20 shrink-0 items-center justify-center rounded-2xl p-5 text-foreground [&_svg]:size-10 [&_svg]:stroke-[1.75]",
|
|
54
|
+
r && w[r],
|
|
55
|
+
n
|
|
56
|
+
),
|
|
57
|
+
...a,
|
|
58
|
+
children: l
|
|
59
|
+
}
|
|
60
|
+
) : /* @__PURE__ */ t(
|
|
61
|
+
"div",
|
|
62
|
+
{
|
|
63
|
+
ref: o,
|
|
64
|
+
"data-slot": "empty-state-icon",
|
|
65
|
+
className: s(
|
|
66
|
+
"flex size-6 shrink-0 items-center justify-center text-muted-foreground [&_svg]:size-6 [&_svg]:stroke-[1.75]",
|
|
67
|
+
n
|
|
68
|
+
),
|
|
69
|
+
...a,
|
|
70
|
+
children: l
|
|
71
|
+
}
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
);
|
|
75
|
+
E.displayName = "EmptyStateIcon";
|
|
76
|
+
function A({
|
|
77
|
+
className: n,
|
|
78
|
+
as: e = "h2",
|
|
79
|
+
...a
|
|
80
|
+
}) {
|
|
81
|
+
const { variant: o } = m();
|
|
82
|
+
return /* @__PURE__ */ t(
|
|
83
|
+
e,
|
|
84
|
+
{
|
|
85
|
+
"data-slot": "empty-state-title",
|
|
86
|
+
className: s(
|
|
87
|
+
"max-w-100 break-words font-medium text-foreground",
|
|
88
|
+
o === "full" ? "text-xl leading-6 tracking-tightest" : "text-base leading-5 tracking-tighter",
|
|
89
|
+
n
|
|
90
|
+
),
|
|
91
|
+
...a
|
|
92
|
+
}
|
|
93
|
+
);
|
|
94
|
+
}
|
|
95
|
+
const I = g(
|
|
96
|
+
({ className: n, ...e }, a) => {
|
|
97
|
+
const { variant: o } = m();
|
|
98
|
+
return /* @__PURE__ */ t(
|
|
99
|
+
"p",
|
|
100
|
+
{
|
|
101
|
+
ref: a,
|
|
102
|
+
"data-slot": "empty-state-description",
|
|
103
|
+
className: s(
|
|
104
|
+
"max-w-100 break-words text-muted-foreground",
|
|
105
|
+
o === "full" ? "text-lg leading-6 tracking-tightest" : "text-sm leading-4.5 tracking-tight",
|
|
106
|
+
n
|
|
107
|
+
),
|
|
108
|
+
...e
|
|
109
|
+
}
|
|
110
|
+
);
|
|
111
|
+
}
|
|
112
|
+
);
|
|
113
|
+
I.displayName = "EmptyStateDescription";
|
|
114
|
+
const N = g(
|
|
115
|
+
({ className: n, ...e }, a) => {
|
|
116
|
+
const { variant: o } = m();
|
|
117
|
+
return /* @__PURE__ */ t(
|
|
118
|
+
"div",
|
|
119
|
+
{
|
|
120
|
+
ref: a,
|
|
121
|
+
"data-slot": "empty-state-actions",
|
|
122
|
+
className: s(
|
|
123
|
+
"flex flex-col items-center",
|
|
124
|
+
o === "compact" ? "gap-2" : "gap-4",
|
|
125
|
+
n
|
|
126
|
+
),
|
|
127
|
+
...e
|
|
128
|
+
}
|
|
129
|
+
);
|
|
130
|
+
}
|
|
131
|
+
);
|
|
132
|
+
N.displayName = "EmptyStateActions";
|
|
133
|
+
export {
|
|
134
|
+
S as EmptyState,
|
|
135
|
+
N as EmptyStateActions,
|
|
136
|
+
I as EmptyStateDescription,
|
|
137
|
+
E as EmptyStateIcon,
|
|
138
|
+
A as EmptyStateTitle
|
|
139
|
+
};
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import { HTMLAttributes, ReactNode } from 'react';
|
|
1
|
+
import { ForwardRefExoticComponent, RefAttributes, HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import { VariantProps } from 'class-variance-authority';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
import { ClassProp } from 'class-variance-authority/types';
|
|
4
|
+
interface HelperTextVariantProps {
|
|
5
|
+
size?: 'xs' | 'sm' | null;
|
|
6
|
+
}
|
|
7
|
+
declare const helperTextVariants: (props?: (HelperTextVariantProps & ClassProp) | undefined) => string;
|
|
6
8
|
interface HelperTextProps extends HTMLAttributes<HTMLDivElement>, VariantProps<typeof helperTextVariants> {
|
|
7
9
|
isError?: boolean;
|
|
8
10
|
isSuccess?: boolean;
|
|
9
11
|
icon?: ReactNode;
|
|
10
12
|
}
|
|
11
|
-
declare const HelperText:
|
|
13
|
+
declare const HelperText: ForwardRefExoticComponent<HelperTextProps & RefAttributes<HTMLDivElement>>;
|
|
12
14
|
export { HelperText };
|
|
@@ -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 };
|
|
@@ -4,7 +4,7 @@ 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
6
|
const m = p(null);
|
|
7
|
-
function
|
|
7
|
+
function w({
|
|
8
8
|
openDelay: o,
|
|
9
9
|
closeDelay: e,
|
|
10
10
|
...a
|
|
@@ -15,23 +15,24 @@ function C({
|
|
|
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 };
|