@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,13 +1,17 @@
|
|
|
1
|
-
import { HTMLAttributes } from 'react';
|
|
1
|
+
import { ForwardRefExoticComponent, RefAttributes, HTMLAttributes } from 'react';
|
|
2
|
+
import { CheckboxRootProps } from '@base-ui/react/checkbox';
|
|
2
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
|
+
import { ClassProp } from 'class-variance-authority/types';
|
|
3
5
|
type Orientation = 'horizontal' | 'vertical';
|
|
4
|
-
declare const CheckboxGroup:
|
|
6
|
+
declare const CheckboxGroup: ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
5
7
|
orientation?: Orientation;
|
|
6
|
-
} &
|
|
7
|
-
|
|
8
|
-
variant?:
|
|
9
|
-
}
|
|
10
|
-
declare const
|
|
11
|
-
declare const
|
|
12
|
-
declare const
|
|
8
|
+
} & RefAttributes<HTMLDivElement>>;
|
|
9
|
+
interface CheckboxItemVariantProps {
|
|
10
|
+
variant?: 'default' | 'card' | null;
|
|
11
|
+
}
|
|
12
|
+
declare const checkboxItemVariants: (props?: (CheckboxItemVariantProps & ClassProp) | undefined) => string;
|
|
13
|
+
declare const CheckboxItem: ForwardRefExoticComponent<HTMLAttributes<HTMLLabelElement> & VariantProps<typeof checkboxItemVariants> & RefAttributes<HTMLLabelElement>>;
|
|
14
|
+
declare const CheckboxItemControl: ForwardRefExoticComponent<Omit<CheckboxRootProps, 'ref'> & RefAttributes<HTMLElement>>;
|
|
15
|
+
declare const CheckboxItemLabel: ForwardRefExoticComponent<HTMLAttributes<HTMLSpanElement> & RefAttributes<HTMLSpanElement>>;
|
|
16
|
+
declare const CheckboxItemDescription: ForwardRefExoticComponent<HTMLAttributes<HTMLSpanElement> & RefAttributes<HTMLSpanElement>>;
|
|
13
17
|
export { CheckboxGroup, CheckboxItem, CheckboxItemControl, CheckboxItemDescription, CheckboxItemLabel, };
|
|
@@ -3,7 +3,7 @@ import { forwardRef as r } from "react";
|
|
|
3
3
|
import { Checkbox as i } from "@base-ui/react/checkbox";
|
|
4
4
|
import { IconCheck as l, IconMinus as b } from "@tabler/icons-react";
|
|
5
5
|
import { cva as m } from "class-variance-authority";
|
|
6
|
-
import { cn as d,
|
|
6
|
+
import { cn as d, invalidState as h, focusState as k, selectionItemDescription as u, selectionItemLabel as x, selectionItemBase as p, selectionItemCard as g, selectionItemDefault as f } from "../../../../lib/utils.js";
|
|
7
7
|
const I = r(
|
|
8
8
|
({ className: a, orientation: e = "vertical", role: t = "group", ...c }, n) => /* @__PURE__ */ o(
|
|
9
9
|
"div",
|
|
@@ -21,11 +21,11 @@ const I = r(
|
|
|
21
21
|
)
|
|
22
22
|
);
|
|
23
23
|
I.displayName = "CheckboxGroup";
|
|
24
|
-
const C = m(d("group/checkbox-item",
|
|
24
|
+
const C = m(d("group/checkbox-item", p), {
|
|
25
25
|
variants: {
|
|
26
26
|
variant: {
|
|
27
|
-
default:
|
|
28
|
-
card:
|
|
27
|
+
default: f,
|
|
28
|
+
card: g
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
defaultVariants: {
|
|
@@ -55,8 +55,8 @@ const N = r(({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
|
55
55
|
"data-unchecked:not-data-disabled:hover:border-secondary-foreground group-hover/checkbox-item:data-unchecked:not-data-disabled:border-secondary-foreground",
|
|
56
56
|
"data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:border-transparent data-disabled:bg-disabled-background data-disabled:text-disabled-foreground data-disabled:data-unchecked:border-border",
|
|
57
57
|
"[&[data-checked]_[data-slot=checkbox-check]]:block [&[data-indeterminate]_[data-slot=checkbox-dash]]:block",
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
k,
|
|
59
|
+
h,
|
|
60
60
|
a
|
|
61
61
|
),
|
|
62
62
|
...e,
|
|
@@ -90,35 +90,39 @@ const N = r(({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
|
90
90
|
}
|
|
91
91
|
));
|
|
92
92
|
N.displayName = "CheckboxItemControl";
|
|
93
|
-
const y = r(
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
93
|
+
const y = r(
|
|
94
|
+
({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
95
|
+
"span",
|
|
96
|
+
{
|
|
97
|
+
ref: t,
|
|
98
|
+
"data-slot": "checkbox-item-label",
|
|
99
|
+
className: d(
|
|
100
|
+
x,
|
|
101
|
+
"group-has-[[data-checked]]/checkbox-item:text-foreground",
|
|
102
|
+
"group-has-[[data-indeterminate]]/checkbox-item:text-foreground",
|
|
103
|
+
"group-has-[[data-disabled]]/checkbox-item:text-disabled-foreground",
|
|
104
|
+
a
|
|
105
|
+
),
|
|
106
|
+
...e
|
|
107
|
+
}
|
|
108
|
+
)
|
|
109
|
+
);
|
|
108
110
|
y.displayName = "CheckboxItemLabel";
|
|
109
|
-
const z = r(
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
111
|
+
const z = r(
|
|
112
|
+
({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
113
|
+
"span",
|
|
114
|
+
{
|
|
115
|
+
ref: t,
|
|
116
|
+
"data-slot": "checkbox-item-description",
|
|
117
|
+
className: d(
|
|
118
|
+
u,
|
|
119
|
+
"group-has-[[data-disabled]]/checkbox-item:text-disabled-foreground",
|
|
120
|
+
a
|
|
121
|
+
),
|
|
122
|
+
...e
|
|
123
|
+
}
|
|
124
|
+
)
|
|
125
|
+
);
|
|
122
126
|
z.displayName = "CheckboxItemDescription";
|
|
123
127
|
export {
|
|
124
128
|
I as CheckboxGroup,
|
|
@@ -1,32 +1,29 @@
|
|
|
1
|
-
import { ComponentProps, HTMLAttributes } from 'react';
|
|
1
|
+
import { ComponentProps, ForwardRefExoticComponent, HTMLAttributes, RefAttributes } from 'react';
|
|
2
2
|
import { BundledLanguage } from 'shiki';
|
|
3
3
|
import { Button } from '../button/button';
|
|
4
4
|
export declare function getCollapsedPreviewDisplay(code: string): string;
|
|
5
5
|
export declare function isContentLargerThanPreview(code: string): boolean;
|
|
6
6
|
export declare function shouldUsePlainTextInsteadOfShiki(code: string, lineCount: number): boolean;
|
|
7
7
|
export declare function plainPreMarkup(code: string): string;
|
|
8
|
-
declare const CodeBlock:
|
|
8
|
+
declare const CodeBlock: ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
9
9
|
code: string;
|
|
10
10
|
copyText?: string;
|
|
11
11
|
collapsed?: boolean;
|
|
12
12
|
language: BundledLanguage;
|
|
13
13
|
showLineNumbers?: boolean;
|
|
14
|
-
} &
|
|
14
|
+
} & RefAttributes<HTMLDivElement>>;
|
|
15
15
|
type CodeBlockCopyButtonProps = ComponentProps<typeof Button> & {
|
|
16
16
|
onCopy?: () => void;
|
|
17
17
|
onError?: (error: Error) => void;
|
|
18
18
|
timeout?: number;
|
|
19
19
|
};
|
|
20
|
-
declare const CodeBlockCopyButton:
|
|
21
|
-
declare const CodeBlockCollapseButton:
|
|
22
|
-
variant?: "default" | "secondary" | "outline" | "ghost" | "destructive" | null | undefined;
|
|
23
|
-
size?: "default" | "sm" | "lg" | "icon" | "icon-sm" | "icon-lg" | null | undefined;
|
|
24
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string>, "ref"> & import('react').RefAttributes<HTMLElement>, "ref"> & import('react').RefAttributes<HTMLElement>>;
|
|
20
|
+
declare const CodeBlockCopyButton: ForwardRefExoticComponent<Omit<CodeBlockCopyButtonProps, 'ref'> & RefAttributes<HTMLElement>>;
|
|
21
|
+
declare const CodeBlockCollapseButton: ForwardRefExoticComponent<Omit<ComponentProps<typeof Button>, 'ref'> & RefAttributes<HTMLElement>>;
|
|
25
22
|
type CodeBlockDownloadButtonProps = ComponentProps<typeof Button> & {
|
|
26
23
|
fileName?: string;
|
|
27
24
|
mimeType?: string;
|
|
28
25
|
onDownload?: () => void;
|
|
29
26
|
onError?: (error: Error) => void;
|
|
30
27
|
};
|
|
31
|
-
declare const CodeBlockDownloadButton:
|
|
28
|
+
declare const CodeBlockDownloadButton: ForwardRefExoticComponent<Omit<CodeBlockDownloadButtonProps, 'ref'> & RefAttributes<HTMLElement>>;
|
|
32
29
|
export { CodeBlock, CodeBlockCollapseButton, CodeBlockCopyButton, CodeBlockDownloadButton, };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as L, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { forwardRef as w, useState as x, useMemo as D, useEffect as F, useContext as H, createContext as O } from "react";
|
|
3
|
+
import { IconSelector as K, IconCheck as V, IconCopy as $, IconDownload as q } from "@tabler/icons-react";
|
|
4
4
|
import { isStorybookTestEnv as v, highlightCode as M, cn as f } from "../../../../lib/utils.js";
|
|
5
5
|
import { Button as S } from "../button/button.js";
|
|
6
|
-
const I =
|
|
6
|
+
const I = O({
|
|
7
7
|
code: "",
|
|
8
8
|
copyText: "",
|
|
9
9
|
isCollapsed: !1,
|
|
@@ -48,7 +48,7 @@ const ee = "min(60vh, 32rem)", oe = "dark:hidden [&>pre]:m-0 [&>pre]:min-h-10 [&
|
|
|
48
48
|
() => v ? `<pre><code>${P(s)}</code></pre>` : "",
|
|
49
49
|
[s]
|
|
50
50
|
);
|
|
51
|
-
|
|
51
|
+
F(() => {
|
|
52
52
|
if (v) return;
|
|
53
53
|
let g = !1;
|
|
54
54
|
const B = (u) => {
|
|
@@ -169,51 +169,55 @@ const ee = "min(60vh, 32rem)", oe = "dark:hidden [&>pre]:m-0 [&>pre]:min-h-10 [&
|
|
|
169
169
|
}
|
|
170
170
|
);
|
|
171
171
|
ne.displayName = "CodeBlock";
|
|
172
|
-
const re = w(
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
172
|
+
const re = w(
|
|
173
|
+
({ onCopy: e, onError: t, timeout: n = 2e3, children: o, className: a, ...h }, i) => {
|
|
174
|
+
const [C, k] = x(!1), { copyText: b } = H(I), d = async () => {
|
|
175
|
+
if (typeof window > "u" || !navigator?.clipboard?.writeText) {
|
|
176
|
+
t?.(new Error("Clipboard API not available"));
|
|
177
|
+
return;
|
|
178
|
+
}
|
|
179
|
+
try {
|
|
180
|
+
await navigator.clipboard.writeText(b), k(!0), e?.(), setTimeout(() => k(!1), n);
|
|
181
|
+
} catch (c) {
|
|
182
|
+
console.warn("Clipboard write failed:", c), t?.(
|
|
183
|
+
c instanceof Error ? c : new Error("Clipboard write failed")
|
|
184
|
+
);
|
|
185
|
+
}
|
|
186
|
+
}, p = C ? V : $;
|
|
187
|
+
return /* @__PURE__ */ r(
|
|
188
|
+
S,
|
|
189
|
+
{
|
|
190
|
+
ref: i,
|
|
191
|
+
"data-slot": "code-block-copy-button",
|
|
192
|
+
className: f("shrink-0", a),
|
|
193
|
+
onClick: d,
|
|
194
|
+
size: "icon-sm",
|
|
195
|
+
variant: "secondary",
|
|
196
|
+
...h,
|
|
197
|
+
children: o ?? /* @__PURE__ */ r(p, { size: 14 })
|
|
198
|
+
}
|
|
199
|
+
);
|
|
200
|
+
}
|
|
201
|
+
);
|
|
200
202
|
re.displayName = "CodeBlockCopyButton";
|
|
201
|
-
const le = w(
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
203
|
+
const le = w(
|
|
204
|
+
({ children: e, className: t, ...n }, o) => {
|
|
205
|
+
const { isCollapsed: a, setIsCollapsed: h, lineCount: i } = H(I);
|
|
206
|
+
return i <= 1 ? null : /* @__PURE__ */ r(
|
|
207
|
+
S,
|
|
208
|
+
{
|
|
209
|
+
ref: o,
|
|
210
|
+
"data-slot": "code-block-collapse-button",
|
|
211
|
+
className: f("shrink-0", t),
|
|
212
|
+
onClick: () => h(!a),
|
|
213
|
+
size: "icon-sm",
|
|
214
|
+
variant: "secondary",
|
|
215
|
+
...n,
|
|
216
|
+
children: e ?? /* @__PURE__ */ r(K, { size: 14 })
|
|
217
|
+
}
|
|
218
|
+
);
|
|
219
|
+
}
|
|
220
|
+
);
|
|
217
221
|
le.displayName = "CodeBlockCollapseButton";
|
|
218
222
|
const ae = w(
|
|
219
223
|
({
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
declare const
|
|
1
|
+
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
2
|
+
import { CollapsiblePanelProps, CollapsibleRootProps, CollapsibleTriggerProps } from '@base-ui/react/collapsible';
|
|
3
|
+
declare const Collapsible: ForwardRefExoticComponent<Omit<CollapsibleRootProps, 'ref'> & RefAttributes<HTMLDivElement>>;
|
|
4
|
+
declare const CollapsibleTrigger: ForwardRefExoticComponent<Omit<CollapsibleTriggerProps, 'ref'> & RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
declare const CollapsibleContent: ForwardRefExoticComponent<Omit<CollapsiblePanelProps, 'ref'> & RefAttributes<HTMLDivElement>>;
|
|
4
6
|
export { Collapsible, CollapsibleContent, CollapsibleTrigger };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentProps } from 'react';
|
|
1
|
+
import { ForwardRefExoticComponent, RefAttributes, ComponentProps } from 'react';
|
|
2
2
|
import { Button } from '../button/button';
|
|
3
3
|
type ComboboxProps = Omit<ComponentProps<typeof Button>, 'value' | 'onChange'> & {
|
|
4
4
|
options: Array<{
|
|
@@ -11,5 +11,5 @@ type ComboboxProps = Omit<ComponentProps<typeof Button>, 'value' | 'onChange'> &
|
|
|
11
11
|
searchPlaceholder?: string;
|
|
12
12
|
emptyText?: string;
|
|
13
13
|
};
|
|
14
|
-
declare const Combobox:
|
|
14
|
+
declare const Combobox: ForwardRefExoticComponent<Omit<ComboboxProps, 'ref'> & RefAttributes<HTMLElement>>;
|
|
15
15
|
export { Combobox };
|
|
@@ -1,86 +1,19 @@
|
|
|
1
|
-
import { ComponentProps, ReactNode } from 'react';
|
|
1
|
+
import { ForwardRefExoticComponent, RefAttributes, ComponentProps, ReactNode } from 'react';
|
|
2
|
+
import { Command as CommandPrimitive } from 'cmdk';
|
|
2
3
|
import { Dialog } from '../dialog/dialog';
|
|
3
|
-
declare const Command:
|
|
4
|
-
children?: React.ReactNode;
|
|
5
|
-
} & Pick<Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import('react').HTMLAttributes<HTMLDivElement>> & {
|
|
6
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
7
|
-
} & {
|
|
8
|
-
asChild?: boolean;
|
|
9
|
-
}, "key" | keyof import('react').HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
10
|
-
label?: string;
|
|
11
|
-
shouldFilter?: boolean;
|
|
12
|
-
filter?: (value: string, search: string, keywords?: string[]) => number;
|
|
13
|
-
defaultValue?: string;
|
|
14
|
-
value?: string;
|
|
15
|
-
onValueChange?: (value: string) => void;
|
|
16
|
-
loop?: boolean;
|
|
17
|
-
disablePointerSelection?: boolean;
|
|
18
|
-
vimBindings?: boolean;
|
|
19
|
-
} & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
4
|
+
declare const Command: ForwardRefExoticComponent<Omit<ComponentProps<typeof CommandPrimitive>, 'ref'> & RefAttributes<HTMLDivElement>>;
|
|
20
5
|
declare function CommandDialog({ title, description, children, className, showCloseButton, ...props }: Omit<ComponentProps<typeof Dialog>, 'children'> & {
|
|
21
6
|
children?: ReactNode;
|
|
22
7
|
title?: string;
|
|
23
8
|
description?: string;
|
|
24
9
|
className?: string;
|
|
25
10
|
showCloseButton?: boolean;
|
|
26
|
-
}):
|
|
27
|
-
declare
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
declare const
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}, "key" | keyof import('react').InputHTMLAttributes<HTMLInputElement> | "asChild">, "type" | "value" | "onChange"> & {
|
|
35
|
-
value?: string;
|
|
36
|
-
onValueChange?: (search: string) => void;
|
|
37
|
-
} & import('react').RefAttributes<HTMLInputElement>, "ref"> & import('react').RefAttributes<HTMLInputElement>>;
|
|
38
|
-
declare const CommandList: import('react').ForwardRefExoticComponent<Omit<{
|
|
39
|
-
children?: React.ReactNode;
|
|
40
|
-
} & Pick<Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import('react').HTMLAttributes<HTMLDivElement>> & {
|
|
41
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
42
|
-
} & {
|
|
43
|
-
asChild?: boolean;
|
|
44
|
-
}, "key" | keyof import('react').HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
45
|
-
label?: string;
|
|
46
|
-
} & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
47
|
-
declare const CommandEmpty: import('react').ForwardRefExoticComponent<Omit<{
|
|
48
|
-
children?: React.ReactNode;
|
|
49
|
-
} & Pick<Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import('react').HTMLAttributes<HTMLDivElement>> & {
|
|
50
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
51
|
-
} & {
|
|
52
|
-
asChild?: boolean;
|
|
53
|
-
}, "key" | keyof import('react').HTMLAttributes<HTMLDivElement> | "asChild"> & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
54
|
-
declare const CommandGroup: import('react').ForwardRefExoticComponent<Omit<{
|
|
55
|
-
children?: React.ReactNode;
|
|
56
|
-
} & Omit<Pick<Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import('react').HTMLAttributes<HTMLDivElement>> & {
|
|
57
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
58
|
-
} & {
|
|
59
|
-
asChild?: boolean;
|
|
60
|
-
}, "key" | keyof import('react').HTMLAttributes<HTMLDivElement> | "asChild">, "value" | "heading"> & {
|
|
61
|
-
heading?: React.ReactNode;
|
|
62
|
-
value?: string;
|
|
63
|
-
forceMount?: boolean;
|
|
64
|
-
} & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
65
|
-
declare const CommandSeparator: import('react').ForwardRefExoticComponent<Omit<Pick<Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import('react').HTMLAttributes<HTMLDivElement>> & {
|
|
66
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
67
|
-
} & {
|
|
68
|
-
asChild?: boolean;
|
|
69
|
-
}, "key" | keyof import('react').HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
70
|
-
alwaysRender?: boolean;
|
|
71
|
-
} & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
72
|
-
declare const CommandItem: import('react').ForwardRefExoticComponent<Omit<{
|
|
73
|
-
children?: React.ReactNode;
|
|
74
|
-
} & Omit<Pick<Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import('react').HTMLAttributes<HTMLDivElement>> & {
|
|
75
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
76
|
-
} & {
|
|
77
|
-
asChild?: boolean;
|
|
78
|
-
}, "key" | keyof import('react').HTMLAttributes<HTMLDivElement> | "asChild">, "disabled" | "value" | "onSelect"> & {
|
|
79
|
-
disabled?: boolean;
|
|
80
|
-
onSelect?: (value: string) => void;
|
|
81
|
-
value?: string;
|
|
82
|
-
keywords?: string[];
|
|
83
|
-
forceMount?: boolean;
|
|
84
|
-
} & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
85
|
-
declare const CommandShortcut: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & import('react').RefAttributes<HTMLSpanElement>>;
|
|
11
|
+
}): ReactNode;
|
|
12
|
+
declare const CommandInput: ForwardRefExoticComponent<Omit<ComponentProps<typeof CommandPrimitive.Input>, 'ref'> & RefAttributes<HTMLInputElement>>;
|
|
13
|
+
declare const CommandList: ForwardRefExoticComponent<Omit<ComponentProps<typeof CommandPrimitive.List>, 'ref'> & RefAttributes<HTMLDivElement>>;
|
|
14
|
+
declare const CommandEmpty: ForwardRefExoticComponent<Omit<ComponentProps<typeof CommandPrimitive.Empty>, 'ref'> & RefAttributes<HTMLDivElement>>;
|
|
15
|
+
declare const CommandGroup: ForwardRefExoticComponent<Omit<ComponentProps<typeof CommandPrimitive.Group>, 'ref'> & RefAttributes<HTMLDivElement>>;
|
|
16
|
+
declare const CommandSeparator: ForwardRefExoticComponent<Omit<ComponentProps<typeof CommandPrimitive.Separator>, 'ref'> & RefAttributes<HTMLDivElement>>;
|
|
17
|
+
declare const CommandItem: ForwardRefExoticComponent<Omit<ComponentProps<typeof CommandPrimitive.Item>, 'ref'> & RefAttributes<HTMLDivElement>>;
|
|
18
|
+
declare const CommandShortcut: ForwardRefExoticComponent<ComponentProps<'span'> & RefAttributes<HTMLSpanElement>>;
|
|
86
19
|
export { Command, CommandDialog, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandShortcut, CommandSeparator, };
|
|
@@ -4,23 +4,23 @@ import { IconSearch as p } from "@tabler/icons-react";
|
|
|
4
4
|
import { Command as r } from "cmdk";
|
|
5
5
|
import { cn as m } from "../../../../lib/utils.js";
|
|
6
6
|
import { Dialog as u, DialogHeader as g, DialogTitle as h, DialogDescription as f, DialogContent as x } from "../dialog/dialog.js";
|
|
7
|
-
const s = d(({ className: e, ...
|
|
7
|
+
const s = d(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
8
8
|
r,
|
|
9
9
|
{
|
|
10
|
-
ref:
|
|
10
|
+
ref: a,
|
|
11
11
|
"data-slot": "command",
|
|
12
12
|
className: m(
|
|
13
13
|
"rounded-lg bg-background text-muted-foreground flex h-full w-full flex-col overflow-hidden",
|
|
14
14
|
e
|
|
15
15
|
),
|
|
16
|
-
...
|
|
16
|
+
...t
|
|
17
17
|
}
|
|
18
18
|
));
|
|
19
19
|
s.displayName = "Command";
|
|
20
|
-
function
|
|
20
|
+
function G({
|
|
21
21
|
title: e = "Command Palette",
|
|
22
|
-
description:
|
|
23
|
-
children:
|
|
22
|
+
description: t = "Search for a command to run...",
|
|
23
|
+
children: a,
|
|
24
24
|
className: l,
|
|
25
25
|
showCloseButton: c = !0,
|
|
26
26
|
...i
|
|
@@ -28,7 +28,7 @@ function y({
|
|
|
28
28
|
return /* @__PURE__ */ n(u, { ...i, children: [
|
|
29
29
|
/* @__PURE__ */ n(g, { className: "sr-only rounded-lg", children: [
|
|
30
30
|
/* @__PURE__ */ o(h, { children: e }),
|
|
31
|
-
/* @__PURE__ */ o(f, { children:
|
|
31
|
+
/* @__PURE__ */ o(f, { children: t })
|
|
32
32
|
] }),
|
|
33
33
|
/* @__PURE__ */ o(
|
|
34
34
|
x,
|
|
@@ -36,13 +36,12 @@ function y({
|
|
|
36
36
|
"data-slot": "command-dialog",
|
|
37
37
|
className: m("overflow-hidden p-0", l),
|
|
38
38
|
showCloseButton: c,
|
|
39
|
-
children: /* @__PURE__ */ o(s, { className: "**:[[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 **:[[cmdk-group-heading]]:px-2 **:[[cmdk-group-heading]]:font-medium **:[[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 **:[[cmdk-input]]:h-12 **:[[cmdk-item]]:px-2 **:[[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children:
|
|
39
|
+
children: /* @__PURE__ */ o(s, { className: "**:[[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 **:[[cmdk-group-heading]]:px-2 **:[[cmdk-group-heading]]:font-medium **:[[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 **:[[cmdk-input]]:h-12 **:[[cmdk-item]]:px-2 **:[[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children: a })
|
|
40
40
|
}
|
|
41
41
|
)
|
|
42
42
|
] });
|
|
43
43
|
}
|
|
44
|
-
|
|
45
|
-
const k = d(({ className: e, ...a }, t) => /* @__PURE__ */ n(
|
|
44
|
+
const k = d(({ className: e, ...t }, a) => /* @__PURE__ */ n(
|
|
46
45
|
"div",
|
|
47
46
|
{
|
|
48
47
|
"data-slot": "command-input-wrapper",
|
|
@@ -52,99 +51,101 @@ const k = d(({ className: e, ...a }, t) => /* @__PURE__ */ n(
|
|
|
52
51
|
/* @__PURE__ */ o(
|
|
53
52
|
r.Input,
|
|
54
53
|
{
|
|
55
|
-
ref:
|
|
54
|
+
ref: a,
|
|
56
55
|
"data-slot": "command-input",
|
|
57
56
|
className: m(
|
|
58
57
|
"placeholder:text-muted-foreground flex h-10 w-full rounded-lg bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",
|
|
59
58
|
e
|
|
60
59
|
),
|
|
61
|
-
...
|
|
60
|
+
...t
|
|
62
61
|
}
|
|
63
62
|
)
|
|
64
63
|
]
|
|
65
64
|
}
|
|
66
65
|
));
|
|
67
66
|
k.displayName = "CommandInput";
|
|
68
|
-
const
|
|
67
|
+
const y = d(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
69
68
|
r.List,
|
|
70
69
|
{
|
|
71
|
-
ref:
|
|
70
|
+
ref: a,
|
|
72
71
|
"data-slot": "command-list",
|
|
73
72
|
className: m(
|
|
74
73
|
"max-h-75 scroll-py-1 overflow-x-hidden overflow-y-auto",
|
|
75
74
|
e
|
|
76
75
|
),
|
|
77
|
-
...
|
|
76
|
+
...t
|
|
78
77
|
}
|
|
79
78
|
));
|
|
80
|
-
|
|
81
|
-
const
|
|
79
|
+
y.displayName = "CommandList";
|
|
80
|
+
const C = d(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
82
81
|
r.Empty,
|
|
83
82
|
{
|
|
84
|
-
ref:
|
|
83
|
+
ref: a,
|
|
85
84
|
"data-slot": "command-empty",
|
|
86
85
|
className: m("py-6 text-center text-sm", e),
|
|
87
|
-
...
|
|
86
|
+
...t
|
|
88
87
|
}
|
|
89
88
|
));
|
|
90
|
-
|
|
91
|
-
const
|
|
89
|
+
C.displayName = "CommandEmpty";
|
|
90
|
+
const N = d(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
92
91
|
r.Group,
|
|
93
92
|
{
|
|
94
|
-
ref:
|
|
93
|
+
ref: a,
|
|
95
94
|
"data-slot": "command-group",
|
|
96
95
|
className: m(
|
|
97
96
|
"text-foreground font-normal **:[[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 **:[[cmdk-group-heading]]:px-2 **:[[cmdk-group-heading]]:py-1.5 **:[[cmdk-group-heading]]:text-sm **:[[cmdk-group-heading]]:font-medium",
|
|
98
97
|
e
|
|
99
98
|
),
|
|
100
|
-
...
|
|
99
|
+
...t
|
|
101
100
|
}
|
|
102
101
|
));
|
|
103
|
-
|
|
104
|
-
const
|
|
102
|
+
N.displayName = "CommandGroup";
|
|
103
|
+
const v = d(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
105
104
|
r.Separator,
|
|
106
105
|
{
|
|
107
|
-
ref:
|
|
106
|
+
ref: a,
|
|
108
107
|
"data-slot": "command-separator",
|
|
109
108
|
className: m("bg-border -mx-1 h-px", e),
|
|
110
|
-
...
|
|
109
|
+
...t
|
|
111
110
|
}
|
|
112
111
|
));
|
|
113
|
-
|
|
114
|
-
const
|
|
112
|
+
v.displayName = "CommandSeparator";
|
|
113
|
+
const w = d(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
115
114
|
r.Item,
|
|
116
115
|
{
|
|
117
|
-
ref:
|
|
116
|
+
ref: a,
|
|
118
117
|
"data-slot": "command-item",
|
|
119
118
|
className: m(
|
|
120
119
|
"data-[selected=true]:bg-accent-background data-[selected=true]:text-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
121
120
|
e
|
|
122
121
|
),
|
|
123
|
-
...
|
|
122
|
+
...t
|
|
124
123
|
}
|
|
125
124
|
));
|
|
126
|
-
|
|
127
|
-
const
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
125
|
+
w.displayName = "CommandItem";
|
|
126
|
+
const _ = d(
|
|
127
|
+
({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
128
|
+
"span",
|
|
129
|
+
{
|
|
130
|
+
ref: a,
|
|
131
|
+
"data-slot": "command-shortcut",
|
|
132
|
+
className: m(
|
|
133
|
+
"text-muted-foreground ml-auto text-xs tracking-widest",
|
|
134
|
+
e
|
|
135
|
+
),
|
|
136
|
+
...t
|
|
137
|
+
}
|
|
138
|
+
)
|
|
139
|
+
);
|
|
140
|
+
_.displayName = "CommandShortcut";
|
|
140
141
|
export {
|
|
141
142
|
s as Command,
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
143
|
+
G as CommandDialog,
|
|
144
|
+
C as CommandEmpty,
|
|
145
|
+
N as CommandGroup,
|
|
145
146
|
k as CommandInput,
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
147
|
+
w as CommandItem,
|
|
148
|
+
y as CommandList,
|
|
149
|
+
v as CommandSeparator,
|
|
150
|
+
_ as CommandShortcut
|
|
150
151
|
};
|