@kuzenbo/core 0.0.4 → 0.0.5
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/dist/avatar-CXhwmJgG.js +65 -0
- package/dist/avatar-CXhwmJgG.js.map +1 -0
- package/dist/{avatar-image-Ce26D2fb.d.ts → avatar-DpiupAAM.d.ts} +35 -2
- package/dist/avatar-DpiupAAM.d.ts.map +1 -0
- package/dist/badge-BKRm6jL7.js +58 -0
- package/dist/badge-BKRm6jL7.js.map +1 -0
- package/dist/button-nAbTNrxA.d.ts +78 -0
- package/dist/button-nAbTNrxA.d.ts.map +1 -0
- package/dist/{dialog-trigger-BUF3elAP.js → dialog-CD5lfQA9.js} +33 -10
- package/dist/dialog-CD5lfQA9.js.map +1 -0
- package/dist/{dialog-viewport-Ce1huyAI.d.ts → dialog-DEkdr-9K.d.ts} +64 -2
- package/dist/dialog-DEkdr-9K.d.ts.map +1 -0
- package/dist/{dropdown-menu-trigger-COnFGfDa.js → dropdown-menu-BJi-V71O.js} +137 -101
- package/dist/dropdown-menu-BJi-V71O.js.map +1 -0
- package/dist/{dropdown-menu-trigger-BpgtLUvf.d.ts → dropdown-menu-Bpj576m0.d.ts} +259 -123
- package/dist/dropdown-menu-Bpj576m0.d.ts.map +1 -0
- package/dist/input-Ex9ZRqbo.js +38 -0
- package/dist/input-Ex9ZRqbo.js.map +1 -0
- package/dist/input-WWoBCgxe.d.ts +46 -0
- package/dist/input-WWoBCgxe.d.ts.map +1 -0
- package/dist/{input-group-textarea-B-rP98r5.js → input-group-CjcHP0L4.js} +50 -31
- package/dist/input-group-CjcHP0L4.js.map +1 -0
- package/dist/provider.js +2 -2
- package/dist/scroll-bar-C4qEUKlT.js.map +1 -1
- package/dist/separator-C8Qw2ADs.d.ts +13 -0
- package/dist/separator-C8Qw2ADs.d.ts.map +1 -0
- package/dist/{sheet-trigger-D7neoTF5.js → sheet-imSHXfFH.js} +29 -10
- package/dist/sheet-imSHXfFH.js.map +1 -0
- package/dist/{size-context-BjRwqlSg.js → size-context-CvLl3pMC.js} +3 -3
- package/dist/size-context-CvLl3pMC.js.map +1 -0
- package/dist/size-context-DXfCAlWF.d.ts.map +1 -1
- package/dist/size-provider-18EvJgDT.js.map +1 -1
- package/dist/size-provider-Bd2C6gKd.d.ts.map +1 -1
- package/dist/size-system-BTsMqZRQ.js +99 -0
- package/dist/size-system-BTsMqZRQ.js.map +1 -0
- package/dist/size-system-wzOLSuax.d.ts.map +1 -1
- package/dist/size.js +2 -2
- package/dist/{slider-root-presentation-ChJHPMIV.js → slider-root-presentation-B6OO_iCT.js} +19 -19
- package/dist/slider-root-presentation-B6OO_iCT.js.map +1 -0
- package/dist/{slider-value-Db8SCu0c.d.ts → slider-style-tokens-CZezJilZ.d.ts} +55 -55
- package/dist/slider-style-tokens-CZezJilZ.d.ts.map +1 -0
- package/dist/textarea-C8dsnn8D.d.ts +37 -0
- package/dist/textarea-C8dsnn8D.d.ts.map +1 -0
- package/dist/textarea-CkiM1N_I.js +39 -0
- package/dist/textarea-CkiM1N_I.js.map +1 -0
- package/dist/toggle-CxkIncmZ.d.ts +53 -0
- package/dist/toggle-CxkIncmZ.d.ts.map +1 -0
- package/dist/{tooltip-trigger-qXw-_nbh.js → tooltip-D0BEpCQx.js} +38 -13
- package/dist/tooltip-D0BEpCQx.js.map +1 -0
- package/dist/{tooltip-viewport-csA6luqI.d.ts → tooltip-DbJxt69l.d.ts} +61 -13
- package/dist/tooltip-DbJxt69l.d.ts.map +1 -0
- package/dist/ui/accordion.d.ts +4 -4
- package/dist/ui/accordion.d.ts.map +1 -1
- package/dist/ui/accordion.js +53 -52
- package/dist/ui/accordion.js.map +1 -1
- package/dist/ui/affix.d.ts +3 -2
- package/dist/ui/affix.d.ts.map +1 -1
- package/dist/ui/affix.js +8 -7
- package/dist/ui/affix.js.map +1 -1
- package/dist/ui/alert-dialog.d.ts +3 -1
- package/dist/ui/alert-dialog.d.ts.map +1 -1
- package/dist/ui/alert-dialog.js +10 -9
- package/dist/ui/alert-dialog.js.map +1 -1
- package/dist/ui/alert.d.ts +32 -32
- package/dist/ui/alert.d.ts.map +1 -1
- package/dist/ui/alert.js +86 -86
- package/dist/ui/alert.js.map +1 -1
- package/dist/ui/announcement.d.ts.map +1 -1
- package/dist/ui/announcement.js +5 -3
- package/dist/ui/announcement.js.map +1 -1
- package/dist/ui/aspect-ratio.d.ts.map +1 -1
- package/dist/ui/aspect-ratio.js.map +1 -1
- package/dist/ui/autocomplete.d.ts +74 -74
- package/dist/ui/autocomplete.d.ts.map +1 -1
- package/dist/ui/autocomplete.js +55 -53
- package/dist/ui/autocomplete.js.map +1 -1
- package/dist/ui/avatar.d.ts +2 -39
- package/dist/ui/avatar.js +2 -24
- package/dist/ui/badge.d.ts +28 -28
- package/dist/ui/badge.d.ts.map +1 -1
- package/dist/ui/badge.js +2 -54
- package/dist/ui/breadcrumb.d.ts +64 -64
- package/dist/ui/breadcrumb.d.ts.map +1 -1
- package/dist/ui/breadcrumb.js +47 -45
- package/dist/ui/breadcrumb.js.map +1 -1
- package/dist/ui/button-group.d.ts +34 -34
- package/dist/ui/button-group.d.ts.map +1 -1
- package/dist/ui/button-group.js +29 -28
- package/dist/ui/button-group.js.map +1 -1
- package/dist/ui/button.d.ts +2 -78
- package/dist/ui/button.js +42 -42
- package/dist/ui/button.js.map +1 -1
- package/dist/ui/card.d.ts.map +1 -1
- package/dist/ui/card.js +6 -6
- package/dist/ui/card.js.map +1 -1
- package/dist/ui/carousel.d.ts +1 -1
- package/dist/ui/carousel.d.ts.map +1 -1
- package/dist/ui/carousel.js +36 -17
- package/dist/ui/carousel.js.map +1 -1
- package/dist/ui/checkbox-group.d.ts.map +1 -1
- package/dist/ui/checkbox-group.js.map +1 -1
- package/dist/ui/checkbox.d.ts +20 -20
- package/dist/ui/checkbox.js +13 -13
- package/dist/ui/checkbox.js.map +1 -1
- package/dist/ui/code.d.ts.map +1 -1
- package/dist/ui/code.js +5 -5
- package/dist/ui/code.js.map +1 -1
- package/dist/ui/collapsible.js +1 -1
- package/dist/ui/collapsible.js.map +1 -1
- package/dist/ui/combobox.d.ts +107 -107
- package/dist/ui/combobox.d.ts.map +1 -1
- package/dist/ui/combobox.js +88 -87
- package/dist/ui/combobox.js.map +1 -1
- package/dist/ui/command.d.ts +57 -58
- package/dist/ui/command.d.ts.map +1 -1
- package/dist/ui/command.js +54 -64
- package/dist/ui/command.js.map +1 -1
- package/dist/ui/container.d.ts.map +1 -1
- package/dist/ui/container.js.map +1 -1
- package/dist/ui/context-menu.d.ts +132 -132
- package/dist/ui/context-menu.d.ts.map +1 -1
- package/dist/ui/context-menu.js +100 -98
- package/dist/ui/context-menu.js.map +1 -1
- package/dist/ui/copy-button.d.ts +1 -3
- package/dist/ui/copy-button.d.ts.map +1 -1
- package/dist/ui/copy-button.js +12 -13
- package/dist/ui/copy-button.js.map +1 -1
- package/dist/ui/dialog.d.ts +2 -66
- package/dist/ui/dialog.js +2 -24
- package/dist/ui/drawer.d.ts +91 -91
- package/dist/ui/drawer.d.ts.map +1 -1
- package/dist/ui/drawer.js +68 -66
- package/dist/ui/drawer.js.map +1 -1
- package/dist/ui/dropdown-menu.d.ts +3 -144
- package/dist/ui/dropdown-menu.js +2 -39
- package/dist/ui/dropzone.d.ts +55 -55
- package/dist/ui/dropzone.d.ts.map +1 -1
- package/dist/ui/dropzone.js +77 -72
- package/dist/ui/dropzone.js.map +1 -1
- package/dist/ui/emoji-picker.d.ts +79 -79
- package/dist/ui/emoji-picker.d.ts.map +1 -1
- package/dist/ui/emoji-picker.js +92 -87
- package/dist/ui/emoji-picker.js.map +1 -1
- package/dist/ui/empty.d.ts +61 -59
- package/dist/ui/empty.d.ts.map +1 -1
- package/dist/ui/empty.js +47 -44
- package/dist/ui/empty.js.map +1 -1
- package/dist/ui/field.d.ts +11 -11
- package/dist/ui/field.d.ts.map +1 -1
- package/dist/ui/field.js +9 -7
- package/dist/ui/field.js.map +1 -1
- package/dist/ui/fieldset.d.ts.map +1 -1
- package/dist/ui/fieldset.js.map +1 -1
- package/dist/ui/form.d.ts +8 -8
- package/dist/ui/form.d.ts.map +1 -1
- package/dist/ui/form.js.map +1 -1
- package/dist/ui/input-group.d.ts +35 -35
- package/dist/ui/input-group.d.ts.map +1 -1
- package/dist/ui/input-group.js +2 -28
- package/dist/ui/input-otp.d.ts +36 -36
- package/dist/ui/input-otp.d.ts.map +1 -1
- package/dist/ui/input-otp.js +29 -28
- package/dist/ui/input-otp.js.map +1 -1
- package/dist/ui/input.d.ts +2 -46
- package/dist/ui/input.js +2 -34
- package/dist/ui/item.d.ts +20 -20
- package/dist/ui/item.d.ts.map +1 -1
- package/dist/ui/item.js +22 -22
- package/dist/ui/item.js.map +1 -1
- package/dist/ui/kbd.d.ts.map +1 -1
- package/dist/ui/kbd.js +8 -8
- package/dist/ui/kbd.js.map +1 -1
- package/dist/ui/label.d.ts.map +1 -1
- package/dist/ui/label.js.map +1 -1
- package/dist/ui/marquee.d.ts.map +1 -1
- package/dist/ui/marquee.js +1 -1
- package/dist/ui/marquee.js.map +1 -1
- package/dist/ui/menubar.d.ts +133 -134
- package/dist/ui/menubar.d.ts.map +1 -1
- package/dist/ui/menubar.js +82 -81
- package/dist/ui/menubar.js.map +1 -1
- package/dist/ui/meter.d.ts.map +1 -1
- package/dist/ui/meter.js.map +1 -1
- package/dist/ui/navigation-list.d.ts +226 -226
- package/dist/ui/navigation-list.d.ts.map +1 -1
- package/dist/ui/navigation-list.js +240 -235
- package/dist/ui/navigation-list.js.map +1 -1
- package/dist/ui/navigation-menu.d.ts +82 -82
- package/dist/ui/navigation-menu.d.ts.map +1 -1
- package/dist/ui/navigation-menu.js +70 -67
- package/dist/ui/navigation-menu.js.map +1 -1
- package/dist/ui/number-field.d.ts +34 -34
- package/dist/ui/number-field.d.ts.map +1 -1
- package/dist/ui/number-field.js +24 -23
- package/dist/ui/number-field.js.map +1 -1
- package/dist/ui/pagination.d.ts +42 -42
- package/dist/ui/pagination.d.ts.map +1 -1
- package/dist/ui/pagination.js +43 -41
- package/dist/ui/pagination.js.map +1 -1
- package/dist/ui/pill.d.ts +2 -3
- package/dist/ui/pill.d.ts.map +1 -1
- package/dist/ui/pill.js +34 -23
- package/dist/ui/pill.js.map +1 -1
- package/dist/ui/popover.d.ts +13 -11
- package/dist/ui/popover.d.ts.map +1 -1
- package/dist/ui/popover.js +17 -14
- package/dist/ui/popover.js.map +1 -1
- package/dist/ui/portal.d.ts.map +1 -1
- package/dist/ui/portal.js +52 -11
- package/dist/ui/portal.js.map +1 -1
- package/dist/ui/preview-card.js +5 -5
- package/dist/ui/preview-card.js.map +1 -1
- package/dist/ui/progress.js.map +1 -1
- package/dist/ui/qr-code.d.ts.map +1 -1
- package/dist/ui/qr-code.js +7 -7
- package/dist/ui/qr-code.js.map +1 -1
- package/dist/ui/radio-group.d.ts +22 -22
- package/dist/ui/radio-group.js +15 -15
- package/dist/ui/radio-group.js.map +1 -1
- package/dist/ui/range-slider.d.ts +1 -1
- package/dist/ui/range-slider.d.ts.map +1 -1
- package/dist/ui/range-slider.js +4 -7
- package/dist/ui/range-slider.js.map +1 -1
- package/dist/ui/rating.d.ts +35 -35
- package/dist/ui/rating.d.ts.map +1 -1
- package/dist/ui/rating.js +55 -46
- package/dist/ui/rating.js.map +1 -1
- package/dist/ui/resizable.d.ts.map +1 -1
- package/dist/ui/resizable.js +2 -2
- package/dist/ui/resizable.js.map +1 -1
- package/dist/ui/scroll-area.js.map +1 -1
- package/dist/ui/select.d.ts +87 -87
- package/dist/ui/select.d.ts.map +1 -1
- package/dist/ui/select.js +85 -84
- package/dist/ui/select.js.map +1 -1
- package/dist/ui/separator.d.ts +2 -13
- package/dist/ui/separator.js.map +1 -1
- package/dist/ui/sheet.d.ts.map +1 -1
- package/dist/ui/sheet.js +2 -24
- package/dist/ui/sidebar.d.ts +73 -74
- package/dist/ui/sidebar.d.ts.map +1 -1
- package/dist/ui/sidebar.js +85 -84
- package/dist/ui/sidebar.js.map +1 -1
- package/dist/ui/skeleton.d.ts.map +1 -1
- package/dist/ui/skeleton.js +1 -1
- package/dist/ui/skeleton.js.map +1 -1
- package/dist/ui/slider.d.ts +1 -1
- package/dist/ui/slider.d.ts.map +1 -1
- package/dist/ui/slider.js +3 -1
- package/dist/ui/slider.js.map +1 -1
- package/dist/ui/spacer.d.ts.map +1 -1
- package/dist/ui/spacer.js +2 -2
- package/dist/ui/spacer.js.map +1 -1
- package/dist/ui/spinner.d.ts.map +1 -1
- package/dist/ui/spinner.js +2 -2
- package/dist/ui/spinner.js.map +1 -1
- package/dist/ui/switch.d.ts +11 -11
- package/dist/ui/switch.js +7 -7
- package/dist/ui/switch.js.map +1 -1
- package/dist/ui/table.d.ts +60 -60
- package/dist/ui/table.d.ts.map +1 -1
- package/dist/ui/table.js +52 -46
- package/dist/ui/table.js.map +1 -1
- package/dist/ui/tabs.d.ts +25 -25
- package/dist/ui/tabs.d.ts.map +1 -1
- package/dist/ui/tabs.js +75 -68
- package/dist/ui/tabs.js.map +1 -1
- package/dist/ui/textarea.d.ts +2 -37
- package/dist/ui/textarea.js +2 -35
- package/dist/ui/theme-icon.d.ts +30 -30
- package/dist/ui/theme-icon.d.ts.map +1 -1
- package/dist/ui/theme-icon.js +22 -22
- package/dist/ui/theme-icon.js.map +1 -1
- package/dist/ui/timeline.d.ts +6 -6
- package/dist/ui/timeline.d.ts.map +1 -1
- package/dist/ui/timeline.js +163 -163
- package/dist/ui/timeline.js.map +1 -1
- package/dist/ui/toggle-group.d.ts +32 -32
- package/dist/ui/toggle-group.d.ts.map +1 -1
- package/dist/ui/toggle-group.js +22 -16
- package/dist/ui/toggle-group.js.map +1 -1
- package/dist/ui/toggle.d.ts +2 -53
- package/dist/ui/toggle.js +15 -15
- package/dist/ui/toggle.js.map +1 -1
- package/dist/ui/toolbar.d.ts +54 -54
- package/dist/ui/toolbar.d.ts.map +1 -1
- package/dist/ui/toolbar.js +43 -40
- package/dist/ui/toolbar.js.map +1 -1
- package/dist/ui/tooltip.d.ts +2 -54
- package/dist/ui/tooltip.js +2 -28
- package/dist/ui/typography.d.ts +50 -36
- package/dist/ui/typography.d.ts.map +1 -1
- package/dist/ui/typography.js +28 -17
- package/dist/ui/typography.js.map +1 -1
- package/package.json +15 -15
- package/dist/avatar-image-BQ_NEKH4.js +0 -47
- package/dist/avatar-image-BQ_NEKH4.js.map +0 -1
- package/dist/avatar-image-Ce26D2fb.d.ts.map +0 -1
- package/dist/dialog-trigger-BUF3elAP.js.map +0 -1
- package/dist/dialog-viewport-Ce1huyAI.d.ts.map +0 -1
- package/dist/dropdown-menu-trigger-BpgtLUvf.d.ts.map +0 -1
- package/dist/dropdown-menu-trigger-COnFGfDa.js.map +0 -1
- package/dist/input-group-textarea-B-rP98r5.js.map +0 -1
- package/dist/sheet-trigger-D7neoTF5.js.map +0 -1
- package/dist/size-context-BjRwqlSg.js.map +0 -1
- package/dist/size-system-DTXmtQXw.js +0 -47
- package/dist/size-system-DTXmtQXw.js.map +0 -1
- package/dist/slider-root-presentation-ChJHPMIV.js.map +0 -1
- package/dist/slider-value-Db8SCu0c.d.ts.map +0 -1
- package/dist/tooltip-trigger-qXw-_nbh.js.map +0 -1
- package/dist/tooltip-viewport-csA6luqI.d.ts.map +0 -1
- package/dist/ui/avatar.d.ts.map +0 -1
- package/dist/ui/avatar.js.map +0 -1
- package/dist/ui/badge.js.map +0 -1
- package/dist/ui/button.d.ts.map +0 -1
- package/dist/ui/dialog.d.ts.map +0 -1
- package/dist/ui/dialog.js.map +0 -1
- package/dist/ui/dropdown-menu.d.ts.map +0 -1
- package/dist/ui/dropdown-menu.js.map +0 -1
- package/dist/ui/input-group.js.map +0 -1
- package/dist/ui/input.d.ts.map +0 -1
- package/dist/ui/input.js.map +0 -1
- package/dist/ui/separator.d.ts.map +0 -1
- package/dist/ui/sheet.js.map +0 -1
- package/dist/ui/textarea.d.ts.map +0 -1
- package/dist/ui/textarea.js.map +0 -1
- package/dist/ui/toggle.d.ts.map +0 -1
- package/dist/ui/tooltip.d.ts.map +0 -1
- package/dist/ui/tooltip.js.map +0 -1
- package/dist/use-badge-default-props-8d9wPL0k.js +0 -8
- package/dist/use-badge-default-props-8d9wPL0k.js.map +0 -1
- package/dist/use-input-default-props-B6VgKXGM.js +0 -8
- package/dist/use-input-default-props-B6VgKXGM.js.map +0 -1
- package/dist/use-textarea-default-props-7MlOxkDO.js +0 -8
- package/dist/use-textarea-default-props-7MlOxkDO.js.map +0 -1
package/dist/ui/command.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { InputSize } from "
|
|
2
|
-
import "../dialog-
|
|
3
|
-
import { Dialog } from "./dialog.js";
|
|
1
|
+
import { r as InputSize } from "../input-WWoBCgxe.js";
|
|
2
|
+
import { t as Dialog } from "../dialog-DEkdr-9K.js";
|
|
4
3
|
import { ComponentProps, ReactNode } from "react";
|
|
5
4
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
6
5
|
import * as tailwind_variants0 from "tailwind-variants";
|
|
@@ -27,27 +26,27 @@ declare const CommandDialog: ({
|
|
|
27
26
|
//#region src/ui/command/command-empty.d.ts
|
|
28
27
|
declare const commandEmptyVariants: tailwind_variants0.TVReturnType<{
|
|
29
28
|
size: {
|
|
30
|
-
xs: string;
|
|
31
|
-
sm: string;
|
|
32
|
-
md: string;
|
|
33
29
|
lg: string;
|
|
30
|
+
md: string;
|
|
31
|
+
sm: string;
|
|
34
32
|
xl: string;
|
|
33
|
+
xs: string;
|
|
35
34
|
};
|
|
36
35
|
}, undefined, "text-center", {
|
|
37
36
|
size: {
|
|
38
|
-
xs: string;
|
|
39
|
-
sm: string;
|
|
40
|
-
md: string;
|
|
41
37
|
lg: string;
|
|
38
|
+
md: string;
|
|
39
|
+
sm: string;
|
|
42
40
|
xl: string;
|
|
41
|
+
xs: string;
|
|
43
42
|
};
|
|
44
43
|
}, undefined, tailwind_variants0.TVReturnType<{
|
|
45
44
|
size: {
|
|
46
|
-
xs: string;
|
|
47
|
-
sm: string;
|
|
48
|
-
md: string;
|
|
49
45
|
lg: string;
|
|
46
|
+
md: string;
|
|
47
|
+
sm: string;
|
|
50
48
|
xl: string;
|
|
49
|
+
xs: string;
|
|
51
50
|
};
|
|
52
51
|
}, undefined, "text-center", unknown, unknown, undefined>>;
|
|
53
52
|
type CommandEmptyProps = ComponentProps<typeof Command$1.Empty> & VariantProps<typeof commandEmptyVariants>;
|
|
@@ -60,29 +59,29 @@ declare const CommandEmpty: ({
|
|
|
60
59
|
//#region src/ui/command/command-group.d.ts
|
|
61
60
|
declare const commandGroupVariants: tailwind_variants0.TVReturnType<{
|
|
62
61
|
size: {
|
|
63
|
-
xs: string;
|
|
64
|
-
sm: string;
|
|
65
|
-
md: string;
|
|
66
62
|
lg: string;
|
|
63
|
+
md: string;
|
|
64
|
+
sm: string;
|
|
67
65
|
xl: string;
|
|
66
|
+
xs: string;
|
|
68
67
|
};
|
|
69
|
-
}, undefined, "overflow-hidden
|
|
68
|
+
}, undefined, "text-foreground overflow-hidden", {
|
|
70
69
|
size: {
|
|
71
|
-
xs: string;
|
|
72
|
-
sm: string;
|
|
73
|
-
md: string;
|
|
74
70
|
lg: string;
|
|
71
|
+
md: string;
|
|
72
|
+
sm: string;
|
|
75
73
|
xl: string;
|
|
74
|
+
xs: string;
|
|
76
75
|
};
|
|
77
76
|
}, undefined, tailwind_variants0.TVReturnType<{
|
|
78
77
|
size: {
|
|
79
|
-
xs: string;
|
|
80
|
-
sm: string;
|
|
81
|
-
md: string;
|
|
82
78
|
lg: string;
|
|
79
|
+
md: string;
|
|
80
|
+
sm: string;
|
|
83
81
|
xl: string;
|
|
82
|
+
xs: string;
|
|
84
83
|
};
|
|
85
|
-
}, undefined, "overflow-hidden
|
|
84
|
+
}, undefined, "text-foreground overflow-hidden", unknown, unknown, undefined>>;
|
|
86
85
|
type CommandGroupProps = ComponentProps<typeof Command$1.Group> & VariantProps<typeof commandGroupVariants>;
|
|
87
86
|
declare const CommandGroup: ({
|
|
88
87
|
className,
|
|
@@ -107,23 +106,23 @@ declare const CommandInput: ({
|
|
|
107
106
|
//#region src/ui/command/command-item.d.ts
|
|
108
107
|
declare const commandItemVariants: tailwind_variants0.TVReturnType<{
|
|
109
108
|
size: {
|
|
110
|
-
|
|
109
|
+
lg: {
|
|
111
110
|
indicator: string;
|
|
112
111
|
root: string;
|
|
113
112
|
};
|
|
114
|
-
|
|
113
|
+
md: {
|
|
115
114
|
indicator: string;
|
|
116
115
|
root: string;
|
|
117
116
|
};
|
|
118
|
-
|
|
117
|
+
sm: {
|
|
119
118
|
indicator: string;
|
|
120
119
|
root: string;
|
|
121
120
|
};
|
|
122
|
-
|
|
121
|
+
xl: {
|
|
123
122
|
indicator: string;
|
|
124
123
|
root: string;
|
|
125
124
|
};
|
|
126
|
-
|
|
125
|
+
xs: {
|
|
127
126
|
indicator: string;
|
|
128
127
|
root: string;
|
|
129
128
|
};
|
|
@@ -133,23 +132,23 @@ declare const commandItemVariants: tailwind_variants0.TVReturnType<{
|
|
|
133
132
|
root: string;
|
|
134
133
|
}, undefined, {
|
|
135
134
|
size: {
|
|
136
|
-
|
|
135
|
+
lg: {
|
|
137
136
|
indicator: string;
|
|
138
137
|
root: string;
|
|
139
138
|
};
|
|
140
|
-
|
|
139
|
+
md: {
|
|
141
140
|
indicator: string;
|
|
142
141
|
root: string;
|
|
143
142
|
};
|
|
144
|
-
|
|
143
|
+
sm: {
|
|
145
144
|
indicator: string;
|
|
146
145
|
root: string;
|
|
147
146
|
};
|
|
148
|
-
|
|
147
|
+
xl: {
|
|
149
148
|
indicator: string;
|
|
150
149
|
root: string;
|
|
151
150
|
};
|
|
152
|
-
|
|
151
|
+
xs: {
|
|
153
152
|
indicator: string;
|
|
154
153
|
root: string;
|
|
155
154
|
};
|
|
@@ -159,23 +158,23 @@ declare const commandItemVariants: tailwind_variants0.TVReturnType<{
|
|
|
159
158
|
root: string;
|
|
160
159
|
}, tailwind_variants0.TVReturnType<{
|
|
161
160
|
size: {
|
|
162
|
-
|
|
161
|
+
lg: {
|
|
163
162
|
indicator: string;
|
|
164
163
|
root: string;
|
|
165
164
|
};
|
|
166
|
-
|
|
165
|
+
md: {
|
|
167
166
|
indicator: string;
|
|
168
167
|
root: string;
|
|
169
168
|
};
|
|
170
|
-
|
|
169
|
+
sm: {
|
|
171
170
|
indicator: string;
|
|
172
171
|
root: string;
|
|
173
172
|
};
|
|
174
|
-
|
|
173
|
+
xl: {
|
|
175
174
|
indicator: string;
|
|
176
175
|
root: string;
|
|
177
176
|
};
|
|
178
|
-
|
|
177
|
+
xs: {
|
|
179
178
|
indicator: string;
|
|
180
179
|
root: string;
|
|
181
180
|
};
|
|
@@ -195,27 +194,27 @@ declare const CommandItem: ({
|
|
|
195
194
|
//#region src/ui/command/command-list.d.ts
|
|
196
195
|
declare const commandListVariants: tailwind_variants0.TVReturnType<{
|
|
197
196
|
size: {
|
|
198
|
-
xs: string;
|
|
199
|
-
sm: string;
|
|
200
|
-
md: string;
|
|
201
197
|
lg: string;
|
|
198
|
+
md: string;
|
|
199
|
+
sm: string;
|
|
202
200
|
xl: string;
|
|
201
|
+
xs: string;
|
|
203
202
|
};
|
|
204
203
|
}, undefined, "no-scrollbar overflow-x-hidden overflow-y-auto outline-none", {
|
|
205
204
|
size: {
|
|
206
|
-
xs: string;
|
|
207
|
-
sm: string;
|
|
208
|
-
md: string;
|
|
209
205
|
lg: string;
|
|
206
|
+
md: string;
|
|
207
|
+
sm: string;
|
|
210
208
|
xl: string;
|
|
209
|
+
xs: string;
|
|
211
210
|
};
|
|
212
211
|
}, undefined, tailwind_variants0.TVReturnType<{
|
|
213
212
|
size: {
|
|
214
|
-
xs: string;
|
|
215
|
-
sm: string;
|
|
216
|
-
md: string;
|
|
217
213
|
lg: string;
|
|
214
|
+
md: string;
|
|
215
|
+
sm: string;
|
|
218
216
|
xl: string;
|
|
217
|
+
xs: string;
|
|
219
218
|
};
|
|
220
219
|
}, undefined, "no-scrollbar overflow-x-hidden overflow-y-auto outline-none", unknown, unknown, undefined>>;
|
|
221
220
|
type CommandListProps = ComponentProps<typeof Command$1.List> & VariantProps<typeof commandListVariants>;
|
|
@@ -235,29 +234,29 @@ declare const CommandSeparator: ({
|
|
|
235
234
|
//#region src/ui/command/command-shortcut.d.ts
|
|
236
235
|
declare const commandShortcutVariants: tailwind_variants0.TVReturnType<{
|
|
237
236
|
size: {
|
|
238
|
-
xs: string;
|
|
239
|
-
sm: string;
|
|
240
|
-
md: string;
|
|
241
237
|
lg: string;
|
|
238
|
+
md: string;
|
|
239
|
+
sm: string;
|
|
242
240
|
xl: string;
|
|
241
|
+
xs: string;
|
|
243
242
|
};
|
|
244
|
-
}, undefined, "
|
|
243
|
+
}, undefined, "text-muted-foreground group-data-[selected=true]/command-item:text-foreground ml-auto", {
|
|
245
244
|
size: {
|
|
246
|
-
xs: string;
|
|
247
|
-
sm: string;
|
|
248
|
-
md: string;
|
|
249
245
|
lg: string;
|
|
246
|
+
md: string;
|
|
247
|
+
sm: string;
|
|
250
248
|
xl: string;
|
|
249
|
+
xs: string;
|
|
251
250
|
};
|
|
252
251
|
}, undefined, tailwind_variants0.TVReturnType<{
|
|
253
252
|
size: {
|
|
254
|
-
xs: string;
|
|
255
|
-
sm: string;
|
|
256
|
-
md: string;
|
|
257
253
|
lg: string;
|
|
254
|
+
md: string;
|
|
255
|
+
sm: string;
|
|
258
256
|
xl: string;
|
|
257
|
+
xs: string;
|
|
259
258
|
};
|
|
260
|
-
}, undefined, "
|
|
259
|
+
}, undefined, "text-muted-foreground group-data-[selected=true]/command-item:text-foreground ml-auto", unknown, unknown, undefined>>;
|
|
261
260
|
type CommandShortcutProps = ComponentProps<"span"> & VariantProps<typeof commandShortcutVariants>;
|
|
262
261
|
declare const CommandShortcut: ({
|
|
263
262
|
className,
|
package/dist/ui/command.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command.d.ts","names":[],"sources":["../../src/ui/command/command-dialog.tsx","../../src/ui/command/command-empty.tsx","../../src/ui/command/command-group.tsx","../../src/ui/command/command-input.tsx","../../src/ui/command/command-item.tsx","../../src/ui/command/command-list.tsx","../../src/ui/command/command-separator.tsx","../../src/ui/command/command-shortcut.tsx","../../src/ui/command/command.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"command.d.ts","names":[],"sources":["../../src/ui/command/command-dialog.tsx","../../src/ui/command/command-empty.tsx","../../src/ui/command/command-group.tsx","../../src/ui/command/command-input.tsx","../../src/ui/command/command-item.tsx","../../src/ui/command/command-list.tsx","../../src/ui/command/command-separator.tsx","../../src/ui/command/command-shortcut.tsx","../../src/ui/command/command.tsx"],"mappings":";;;;;;;;;KAYY,kBAAA,GAAqB,IAAA,CAC/B,cAAA,QAAsB,MAAA;EAGtB,KAAA;EACA,WAAA;EACA,SAAA;EACA,eAAA;EACA,QAAA,EAAU,SAAA;AAAA;AAAA,cAGN,aAAA;EAAiB,KAAA;EAAA,WAAA;EAAA,QAAA;EAAA,SAAA;EAAA,eAAA;EAAA,GAAA;AAAA,GAOpB,kBAAA,KAAkB,kBAAA,CAAA,GAAA,CAAA,OAAA;;;cCnBf,oBAAA,EAcJ,kBAAA,CAdwB,YAAA;;;;;;;;;;;;;;;;cAcxB,kBAAA,CAAA,YAAA;;;;;;;;;KAEU,iBAAA,GAAoB,cAAA,QAAsB,SAAA,CAAiB,KAAA,IACrE,YAAA,QAAoB,oBAAA;AAAA,cAEhB,YAAA;EAAgB,SAAA;EAAA,IAAA;EAAA,GAAA;AAAA,GAA+B,iBAAA,KAAiB,kBAAA,CAAA,GAAA,CAAA,OAAA;;;cCnBhE,oBAAA,EAcJ,kBAAA,CAdwB,YAAA;;;;;;;;;;;;;;;;cAcxB,kBAAA,CAAA,YAAA;;;;;;;;;KAEU,iBAAA,GAAoB,cAAA,QAAsB,SAAA,CAAiB,KAAA,IACrE,YAAA,QAAoB,oBAAA;AAAA,cAEhB,YAAA;EAAgB,SAAA;EAAA,IAAA;EAAA,GAAA;AAAA,GAA+B,iBAAA,KAAiB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;;;;cAc3B,kBAAA,CAAA,YAAA;;;;;;;;;KAEU,oBAAA,GAAuB,cAAA,WACjC,YAAA,QAAoB,uBAAA;AAAA,cAEhB,eAAA;EAAmB,SAAA;EAAA,IAAA;EAAA,GAAA;AAAA,GAItB,oBAAA,KAAoB,kBAAA,CAAA,GAAA,CAAA,OAAA;;;KCfX,YAAA,GAAe,cAAA,QAAsB,SAAA;EAC/C,IAAA,GAAO,SAAA;AAAA;AAAA,cAGH,OAAA;EAAA;;;;KAAwD,YAAA,GAAY,kBAAA,CAAA,GAAA,CAAA,OAAA"}
|
package/dist/ui/command.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
import { a as useComponentSize } from "../size-provider-18EvJgDT.js";
|
|
4
|
-
import {
|
|
5
|
-
import { InputGroup } from "
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { createContext, useContext } from "react";
|
|
4
|
+
import { o as resolveFieldTextClassBySize, r as resolveDefaultIconClassBySize } from "../size-system-BTsMqZRQ.js";
|
|
5
|
+
import { o as InputGroupAddon, t as InputGroup } from "../input-group-CjcHP0L4.js";
|
|
6
|
+
import { a as DialogHeader, c as DialogContent, r as DialogTitle, s as DialogDescription, t as Dialog } from "../dialog-CD5lfQA9.js";
|
|
7
|
+
import { createContext, useContext, useMemo } from "react";
|
|
9
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
9
|
import { cn, tv } from "tailwind-variants";
|
|
11
10
|
import { SearchIcon, Tick02Icon } from "@hugeicons/core-free-icons";
|
|
@@ -34,14 +33,14 @@ const CommandDialog = ({ title = "Command Palette", description = "Search for a
|
|
|
34
33
|
//#region src/ui/command/command-empty.tsx
|
|
35
34
|
const commandEmptyVariants = tv({
|
|
36
35
|
base: "text-center",
|
|
36
|
+
defaultVariants: { size: "md" },
|
|
37
37
|
variants: { size: {
|
|
38
|
-
xs: "py-4 text-xs",
|
|
39
|
-
sm: "py-5 text-sm",
|
|
40
|
-
md: "py-6 text-sm",
|
|
41
38
|
lg: "py-7 text-sm",
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
39
|
+
md: "py-6 text-sm",
|
|
40
|
+
sm: "py-5 text-sm",
|
|
41
|
+
xl: "py-8 text-base",
|
|
42
|
+
xs: "py-4 text-xs"
|
|
43
|
+
} }
|
|
45
44
|
});
|
|
46
45
|
const CommandEmpty = ({ className, size, ...props }) => {
|
|
47
46
|
const { size: rootSize } = useContext(CommandContext);
|
|
@@ -57,15 +56,15 @@ const CommandEmpty = ({ className, size, ...props }) => {
|
|
|
57
56
|
//#endregion
|
|
58
57
|
//#region src/ui/command/command-group.tsx
|
|
59
58
|
const commandGroupVariants = tv({
|
|
60
|
-
base: "overflow-hidden
|
|
59
|
+
base: "text-foreground overflow-hidden",
|
|
60
|
+
defaultVariants: { size: "md" },
|
|
61
61
|
variants: { size: {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
} }
|
|
68
|
-
defaultVariants: { size: "md" }
|
|
62
|
+
lg: "[&_[cmdk-group-heading]]:text-muted-foreground p-1.5 [&_[cmdk-group-heading]]:px-2.5 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-sm [&_[cmdk-group-heading]]:font-medium",
|
|
63
|
+
md: "[&_[cmdk-group-heading]]:text-muted-foreground p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",
|
|
64
|
+
sm: "[&_[cmdk-group-heading]]:text-muted-foreground p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",
|
|
65
|
+
xl: "[&_[cmdk-group-heading]]:text-muted-foreground p-2 [&_[cmdk-group-heading]]:px-3 [&_[cmdk-group-heading]]:py-2 [&_[cmdk-group-heading]]:text-sm [&_[cmdk-group-heading]]:font-medium",
|
|
66
|
+
xs: "[&_[cmdk-group-heading]]:text-muted-foreground p-0.5 [&_[cmdk-group-heading]]:px-1.5 [&_[cmdk-group-heading]]:py-0.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium"
|
|
67
|
+
} }
|
|
69
68
|
});
|
|
70
69
|
const CommandGroup = ({ className, size, ...props }) => {
|
|
71
70
|
const { size: rootSize } = useContext(CommandContext);
|
|
@@ -80,17 +79,6 @@ const CommandGroup = ({ className, size, ...props }) => {
|
|
|
80
79
|
|
|
81
80
|
//#endregion
|
|
82
81
|
//#region src/ui/command/command-input.tsx
|
|
83
|
-
const getCommandSearchIconSizeClassName = (size) => {
|
|
84
|
-
if (size === "xs") return "size-3";
|
|
85
|
-
if (size === "sm") return "size-3.5";
|
|
86
|
-
if (size === "xl") return "size-5";
|
|
87
|
-
return "size-4";
|
|
88
|
-
};
|
|
89
|
-
const getCommandInputTextSizeClassName = (size) => {
|
|
90
|
-
if (size === "xs") return "text-xs";
|
|
91
|
-
if (size === "xl") return "text-base";
|
|
92
|
-
return "text-sm";
|
|
93
|
-
};
|
|
94
82
|
const CommandInput = ({ className, htmlSize, size, ...props }) => {
|
|
95
83
|
const { size: rootSize } = useContext(CommandContext);
|
|
96
84
|
const resolvedSize = size ?? rootSize ?? "md";
|
|
@@ -99,16 +87,16 @@ const CommandInput = ({ className, htmlSize, size, ...props }) => {
|
|
|
99
87
|
"data-size": resolvedSize,
|
|
100
88
|
"data-slot": "command-input-wrapper",
|
|
101
89
|
children: /* @__PURE__ */ jsxs(InputGroup, {
|
|
102
|
-
className: "
|
|
90
|
+
className: "border-input/30 bg-input/30 rounded-lg! shadow-none! *:data-[slot=input-group-addon]:pl-2!",
|
|
103
91
|
size: resolvedSize,
|
|
104
92
|
children: [/* @__PURE__ */ jsx(Command$1.Input, {
|
|
105
|
-
className: cn("w-full outline-hidden disabled:cursor-not-allowed disabled:opacity-50",
|
|
93
|
+
className: cn("w-full outline-hidden disabled:cursor-not-allowed disabled:opacity-50", resolveFieldTextClassBySize(resolvedSize), className),
|
|
106
94
|
"data-size": resolvedSize,
|
|
107
95
|
"data-slot": "command-input",
|
|
108
96
|
size: htmlSize,
|
|
109
97
|
...props
|
|
110
98
|
}), /* @__PURE__ */ jsx(InputGroupAddon, { children: /* @__PURE__ */ jsx(HugeiconsIcon, {
|
|
111
|
-
className: cn(
|
|
99
|
+
className: cn(resolveDefaultIconClassBySize(resolvedSize), "shrink-0 opacity-50"),
|
|
112
100
|
icon: SearchIcon,
|
|
113
101
|
strokeWidth: 2
|
|
114
102
|
}) })]
|
|
@@ -119,37 +107,38 @@ const CommandInput = ({ className, htmlSize, size, ...props }) => {
|
|
|
119
107
|
//#endregion
|
|
120
108
|
//#region src/ui/command/command-item.tsx
|
|
121
109
|
const commandItemVariants = tv({
|
|
110
|
+
defaultVariants: { size: "md" },
|
|
122
111
|
slots: {
|
|
123
|
-
indicator: "ml-auto opacity-0 group-has-[[data-slot=command-shortcut]]/command-item:hidden group-data-[checked=true]/command-item:opacity-100
|
|
124
|
-
root: "group/command-item
|
|
112
|
+
indicator: "data-[selected=true]:*:[svg]:text-foreground ml-auto opacity-0 group-has-[[data-slot=command-shortcut]]/command-item:hidden group-data-[checked=true]/command-item:opacity-100",
|
|
113
|
+
root: "group/command-item cursor-clickable data-[selected=true]:bg-muted data-[selected=true]:text-foreground relative flex items-center rounded-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [[data-slot=dialog-content]_&]:rounded-lg!"
|
|
125
114
|
},
|
|
126
115
|
variants: { size: {
|
|
127
|
-
|
|
128
|
-
indicator: "size-
|
|
129
|
-
root: "gap-
|
|
130
|
-
},
|
|
131
|
-
sm: {
|
|
132
|
-
indicator: "size-3.5",
|
|
133
|
-
root: "gap-1.5 px-2 py-1 text-sm [&_svg:not([class*='size-'])]:size-3.5"
|
|
116
|
+
lg: {
|
|
117
|
+
indicator: "size-4",
|
|
118
|
+
root: "gap-2 px-2.5 py-2 text-sm [&_svg:not([class*='size-'])]:size-4"
|
|
134
119
|
},
|
|
135
120
|
md: {
|
|
136
121
|
indicator: "size-4",
|
|
137
122
|
root: "gap-2 px-2 py-1.5 text-sm [&_svg:not([class*='size-'])]:size-4"
|
|
138
123
|
},
|
|
139
|
-
|
|
140
|
-
indicator: "size-
|
|
141
|
-
root: "gap-
|
|
124
|
+
sm: {
|
|
125
|
+
indicator: "size-3.5",
|
|
126
|
+
root: "gap-1.5 px-2 py-1 text-sm [&_svg:not([class*='size-'])]:size-3.5"
|
|
142
127
|
},
|
|
143
128
|
xl: {
|
|
144
129
|
indicator: "size-5",
|
|
145
130
|
root: "gap-2.5 px-3 py-2.5 text-base [&_svg:not([class*='size-'])]:size-5"
|
|
131
|
+
},
|
|
132
|
+
xs: {
|
|
133
|
+
indicator: "size-3",
|
|
134
|
+
root: "gap-1 px-1.5 py-1 text-xs [&_svg:not([class*='size-'])]:size-3"
|
|
146
135
|
}
|
|
147
|
-
} }
|
|
148
|
-
defaultVariants: { size: "md" }
|
|
136
|
+
} }
|
|
149
137
|
});
|
|
150
138
|
const CommandItem = ({ className, children, size, ...props }) => {
|
|
151
139
|
const { size: rootSize } = useContext(CommandContext);
|
|
152
140
|
const resolvedSize = size ?? rootSize ?? "md";
|
|
141
|
+
const contextValue = useMemo(() => ({ size: resolvedSize }), [resolvedSize]);
|
|
153
142
|
const { indicator, root } = commandItemVariants({ size: resolvedSize });
|
|
154
143
|
return /* @__PURE__ */ jsxs(Command$1.Item, {
|
|
155
144
|
className: cn(root(), className),
|
|
@@ -157,7 +146,7 @@ const CommandItem = ({ className, children, size, ...props }) => {
|
|
|
157
146
|
"data-slot": "command-item",
|
|
158
147
|
...props,
|
|
159
148
|
children: [/* @__PURE__ */ jsx(CommandItemContext.Provider, {
|
|
160
|
-
value:
|
|
149
|
+
value: contextValue,
|
|
161
150
|
children
|
|
162
151
|
}), /* @__PURE__ */ jsx(HugeiconsIcon, {
|
|
163
152
|
className: indicator(),
|
|
@@ -171,14 +160,14 @@ const CommandItem = ({ className, children, size, ...props }) => {
|
|
|
171
160
|
//#region src/ui/command/command-list.tsx
|
|
172
161
|
const commandListVariants = tv({
|
|
173
162
|
base: "no-scrollbar overflow-x-hidden overflow-y-auto outline-none",
|
|
163
|
+
defaultVariants: { size: "md" },
|
|
174
164
|
variants: { size: {
|
|
175
|
-
xs: "max-h-60 scroll-py-0.5",
|
|
176
|
-
sm: "max-h-64 scroll-py-1",
|
|
177
|
-
md: "max-h-72 scroll-py-1",
|
|
178
165
|
lg: "max-h-80 scroll-py-1.5",
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
166
|
+
md: "max-h-72 scroll-py-1",
|
|
167
|
+
sm: "max-h-64 scroll-py-1",
|
|
168
|
+
xl: "max-h-96 scroll-py-2",
|
|
169
|
+
xs: "max-h-60 scroll-py-0.5"
|
|
170
|
+
} }
|
|
182
171
|
});
|
|
183
172
|
const CommandList = ({ className, size, ...props }) => {
|
|
184
173
|
const { size: rootSize } = useContext(CommandContext);
|
|
@@ -194,7 +183,7 @@ const CommandList = ({ className, size, ...props }) => {
|
|
|
194
183
|
//#endregion
|
|
195
184
|
//#region src/ui/command/command-separator.tsx
|
|
196
185
|
const CommandSeparator = ({ className, ...props }) => /* @__PURE__ */ jsx(Command$1.Separator, {
|
|
197
|
-
className: cn("-mx-1 h-px
|
|
186
|
+
className: cn("bg-border -mx-1 h-px", className),
|
|
198
187
|
"data-slot": "command-separator",
|
|
199
188
|
...props
|
|
200
189
|
});
|
|
@@ -202,15 +191,15 @@ const CommandSeparator = ({ className, ...props }) => /* @__PURE__ */ jsx(Comman
|
|
|
202
191
|
//#endregion
|
|
203
192
|
//#region src/ui/command/command-shortcut.tsx
|
|
204
193
|
const commandShortcutVariants = tv({
|
|
205
|
-
base: "
|
|
194
|
+
base: "text-muted-foreground group-data-[selected=true]/command-item:text-foreground ml-auto",
|
|
195
|
+
defaultVariants: { size: "md" },
|
|
206
196
|
variants: { size: {
|
|
207
|
-
xs: "text-[10px] tracking-wide",
|
|
208
|
-
sm: "text-xs tracking-wide",
|
|
209
|
-
md: "text-xs tracking-widest",
|
|
210
197
|
lg: "text-xs tracking-widest",
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
198
|
+
md: "text-xs tracking-widest",
|
|
199
|
+
sm: "text-xs tracking-wide",
|
|
200
|
+
xl: "text-sm tracking-widest",
|
|
201
|
+
xs: "text-[10px] tracking-wide"
|
|
202
|
+
} }
|
|
214
203
|
});
|
|
215
204
|
const CommandShortcut = ({ className, size, ...props }) => {
|
|
216
205
|
const { size: rootSize } = useContext(CommandContext);
|
|
@@ -228,10 +217,11 @@ const CommandShortcut = ({ className, size, ...props }) => {
|
|
|
228
217
|
//#region src/ui/command/command.tsx
|
|
229
218
|
const Command = ({ className, size: providedSize, ...props }) => {
|
|
230
219
|
const size = useComponentSize(providedSize);
|
|
220
|
+
const contextValue = useMemo(() => ({ size }), [size]);
|
|
231
221
|
return /* @__PURE__ */ jsx(CommandContext.Provider, {
|
|
232
|
-
value:
|
|
222
|
+
value: contextValue,
|
|
233
223
|
children: /* @__PURE__ */ jsx(Command$1, {
|
|
234
|
-
className: cn("flex size-full flex-col overflow-hidden rounded-xl!
|
|
224
|
+
className: cn("bg-popover text-popover-foreground flex size-full flex-col overflow-hidden rounded-xl! p-1", className),
|
|
235
225
|
"data-size": size,
|
|
236
226
|
"data-slot": "command",
|
|
237
227
|
...props
|
package/dist/ui/command.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command.js","names":["CommandPrimitive","CommandPrimitive","CommandPrimitive","CommandPrimitive","CommandPrimitive","CommandPrimitive","CommandPrimitive"],"sources":["../../src/ui/command/command-context.tsx","../../src/ui/command/command-dialog.tsx","../../src/ui/command/command-empty.tsx","../../src/ui/command/command-group.tsx","../../src/ui/command/command-input.tsx","../../src/ui/command/command-item.tsx","../../src/ui/command/command-list.tsx","../../src/ui/command/command-separator.tsx","../../src/ui/command/command-shortcut.tsx","../../src/ui/command/command.tsx"],"sourcesContent":["\"use client\";\n\nimport { createContext } from \"react\";\n\nimport type { InputSize } from \"../input/input\";\n\nexport interface CommandContextValue {\n size?: InputSize;\n}\n\nexport interface CommandItemContextValue {\n size?: InputSize;\n}\n\nconst CommandContext = createContext<CommandContextValue>({\n size: \"md\",\n});\n\nconst CommandItemContext = createContext<CommandItemContextValue>({});\n\nexport { CommandContext, CommandItemContext };\n","\"use client\";\n\nimport type { ComponentProps, ReactNode } from \"react\";\n\nimport { cn } from \"tailwind-variants\";\n\nimport {\n Dialog,\n DialogContent,\n DialogDescription,\n DialogHeader,\n DialogTitle,\n} from \"../dialog/dialog\";\nexport type CommandDialogProps = Omit<\n ComponentProps<typeof Dialog>,\n \"children\"\n> & {\n title?: string;\n description?: string;\n className?: string;\n showCloseButton?: boolean;\n children: ReactNode;\n};\n\nconst CommandDialog = ({\n title = \"Command Palette\",\n description = \"Search for a command to run...\",\n children,\n className,\n showCloseButton = false,\n ...props\n}: CommandDialogProps) => (\n <Dialog {...props}>\n <DialogHeader className=\"sr-only\">\n <DialogTitle>{title}</DialogTitle>\n <DialogDescription>{description}</DialogDescription>\n </DialogHeader>\n <DialogContent\n className={cn(\"overflow-hidden rounded-xl! p-0\", className)}\n showCloseButton={showCloseButton}\n >\n {children}\n </DialogContent>\n </Dialog>\n);\n\nexport { CommandDialog };\n","\"use client\";\n\nimport type { ComponentProps } from \"react\";\n\nimport { Command as CommandPrimitive } from \"cmdk\";\nimport { useContext } from \"react\";\nimport { cn, tv, type VariantProps } from \"tailwind-variants\";\n\nimport type { InputSize } from \"../input/input\";\n\nimport { CommandContext } from \"./command-context\";\n\nconst commandEmptyVariants = tv({\n base: \"text-center\",\n variants: {\n size: {\n xs: \"py-4 text-xs\",\n sm: \"py-5 text-sm\",\n md: \"py-6 text-sm\",\n lg: \"py-7 text-sm\",\n xl: \"py-8 text-base\",\n },\n },\n defaultVariants: {\n size: \"md\",\n },\n});\n\nexport type CommandEmptyProps = ComponentProps<typeof CommandPrimitive.Empty> &\n VariantProps<typeof commandEmptyVariants>;\n\nconst CommandEmpty = ({ className, size, ...props }: CommandEmptyProps) => {\n const { size: rootSize } = useContext(CommandContext);\n const resolvedSize: InputSize = size ?? rootSize ?? \"md\";\n\n return (\n <CommandPrimitive.Empty\n className={cn(commandEmptyVariants({ size: resolvedSize }), className)}\n data-size={resolvedSize}\n data-slot=\"command-empty\"\n {...props}\n />\n );\n};\n\nexport { CommandEmpty };\n","\"use client\";\n\nimport type { ComponentProps } from \"react\";\n\nimport { Command as CommandPrimitive } from \"cmdk\";\nimport { useContext } from \"react\";\nimport { cn, tv, type VariantProps } from \"tailwind-variants\";\n\nimport type { InputSize } from \"../input/input\";\n\nimport { CommandContext } from \"./command-context\";\n\nconst commandGroupVariants = tv({\n base: \"overflow-hidden text-foreground\",\n variants: {\n size: {\n xs: \"p-0.5 [&_[cmdk-group-heading]]:px-1.5 [&_[cmdk-group-heading]]:py-0.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground\",\n sm: \"p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground\",\n md: \"p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground\",\n lg: \"p-1.5 [&_[cmdk-group-heading]]:px-2.5 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-sm [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground\",\n xl: \"p-2 [&_[cmdk-group-heading]]:px-3 [&_[cmdk-group-heading]]:py-2 [&_[cmdk-group-heading]]:text-sm [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground\",\n },\n },\n defaultVariants: {\n size: \"md\",\n },\n});\n\nexport type CommandGroupProps = ComponentProps<typeof CommandPrimitive.Group> &\n VariantProps<typeof commandGroupVariants>;\n\nconst CommandGroup = ({ className, size, ...props }: CommandGroupProps) => {\n const { size: rootSize } = useContext(CommandContext);\n const resolvedSize: InputSize = size ?? rootSize ?? \"md\";\n\n return (\n <CommandPrimitive.Group\n className={cn(commandGroupVariants({ size: resolvedSize }), className)}\n data-size={resolvedSize}\n data-slot=\"command-group\"\n {...props}\n />\n );\n};\n\nexport { CommandGroup };\n","\"use client\";\n\nimport type { ComponentProps } from \"react\";\n\nimport { SearchIcon } from \"@hugeicons/core-free-icons\";\nimport { HugeiconsIcon } from \"@hugeicons/react\";\nimport { Command as CommandPrimitive } from \"cmdk\";\nimport { useContext } from \"react\";\nimport { cn } from \"tailwind-variants\";\n\nimport type { InputSize } from \"../input/input\";\n\nimport { InputGroup, InputGroupAddon } from \"../input-group/input-group\";\nimport { CommandContext } from \"./command-context\";\ntype NativeCommandInputProps = ComponentProps<typeof CommandPrimitive.Input>;\ntype NativeCommandInputSize = NativeCommandInputProps[\"size\"];\n\nexport type CommandInputProps = Omit<NativeCommandInputProps, \"size\"> & {\n htmlSize?: NativeCommandInputSize;\n size?: InputSize;\n};\n\nconst getCommandSearchIconSizeClassName = (size: InputSize) => {\n if (size === \"xs\") {\n return \"size-3\";\n }\n\n if (size === \"sm\") {\n return \"size-3.5\";\n }\n\n if (size === \"xl\") {\n return \"size-5\";\n }\n\n return \"size-4\";\n};\n\nconst getCommandInputTextSizeClassName = (size: InputSize) => {\n if (size === \"xs\") {\n return \"text-xs\";\n }\n\n if (size === \"xl\") {\n return \"text-base\";\n }\n\n return \"text-sm\";\n};\n\nconst CommandInput = ({\n className,\n htmlSize,\n size,\n ...props\n}: CommandInputProps) => {\n const { size: rootSize } = useContext(CommandContext);\n const resolvedSize = size ?? rootSize ?? \"md\";\n\n return (\n <div\n className=\"p-1 pb-0\"\n data-size={resolvedSize}\n data-slot=\"command-input-wrapper\"\n >\n <InputGroup\n className=\"rounded-lg! border-input/30 bg-input/30 shadow-none! *:data-[slot=input-group-addon]:pl-2!\"\n size={resolvedSize}\n >\n <CommandPrimitive.Input\n className={cn(\n \"w-full outline-hidden disabled:cursor-not-allowed disabled:opacity-50\",\n getCommandInputTextSizeClassName(resolvedSize),\n className\n )}\n data-size={resolvedSize}\n data-slot=\"command-input\"\n size={htmlSize}\n {...props}\n />\n <InputGroupAddon>\n <HugeiconsIcon\n className={cn(\n getCommandSearchIconSizeClassName(resolvedSize),\n \"shrink-0 opacity-50\"\n )}\n icon={SearchIcon}\n strokeWidth={2}\n />\n </InputGroupAddon>\n </InputGroup>\n </div>\n );\n};\n\nexport { CommandInput };\n","\"use client\";\n\nimport type { ComponentProps } from \"react\";\n\nimport { Tick02Icon } from \"@hugeicons/core-free-icons\";\nimport { HugeiconsIcon } from \"@hugeicons/react\";\nimport { Command as CommandPrimitive } from \"cmdk\";\nimport { useContext } from \"react\";\nimport { cn, tv, type VariantProps } from \"tailwind-variants\";\n\nimport type { InputSize } from \"../input/input\";\n\nimport { CommandContext, CommandItemContext } from \"./command-context\";\n\nconst commandItemVariants = tv({\n slots: {\n indicator:\n \"ml-auto opacity-0 group-has-[[data-slot=command-shortcut]]/command-item:hidden group-data-[checked=true]/command-item:opacity-100 data-[selected=true]:*:[svg]:text-foreground\",\n root: \"group/command-item relative flex cursor-pointer items-center rounded-sm outline-hidden select-none data-[selected=true]:bg-muted data-[selected=true]:text-foreground data-[disabled=true]:pointer-events-none data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [[data-slot=dialog-content]_&]:rounded-lg!\",\n },\n variants: {\n size: {\n xs: {\n indicator: \"size-3\",\n root: \"gap-1 px-1.5 py-1 text-xs [&_svg:not([class*='size-'])]:size-3\",\n },\n sm: {\n indicator: \"size-3.5\",\n root: \"gap-1.5 px-2 py-1 text-sm [&_svg:not([class*='size-'])]:size-3.5\",\n },\n md: {\n indicator: \"size-4\",\n root: \"gap-2 px-2 py-1.5 text-sm [&_svg:not([class*='size-'])]:size-4\",\n },\n lg: {\n indicator: \"size-4\",\n root: \"gap-2 px-2.5 py-2 text-sm [&_svg:not([class*='size-'])]:size-4\",\n },\n xl: {\n indicator: \"size-5\",\n root: \"gap-2.5 px-3 py-2.5 text-base [&_svg:not([class*='size-'])]:size-5\",\n },\n },\n },\n defaultVariants: {\n size: \"md\",\n },\n});\n\nexport type CommandItemProps = ComponentProps<typeof CommandPrimitive.Item> &\n VariantProps<typeof commandItemVariants>;\n\nconst CommandItem = ({\n className,\n children,\n size,\n ...props\n}: CommandItemProps) => {\n const { size: rootSize } = useContext(CommandContext);\n const resolvedSize: InputSize = size ?? rootSize ?? \"md\";\n const { indicator, root } = commandItemVariants({ size: resolvedSize });\n\n return (\n <CommandPrimitive.Item\n className={cn(root(), className)}\n data-size={resolvedSize}\n data-slot=\"command-item\"\n {...props}\n >\n <CommandItemContext.Provider value={{ size: resolvedSize }}>\n {children}\n </CommandItemContext.Provider>\n <HugeiconsIcon\n className={indicator()}\n icon={Tick02Icon}\n strokeWidth={2}\n />\n </CommandPrimitive.Item>\n );\n};\n\nexport { CommandItem };\n","\"use client\";\n\nimport type { ComponentProps } from \"react\";\n\nimport { Command as CommandPrimitive } from \"cmdk\";\nimport { useContext } from \"react\";\nimport { cn, tv, type VariantProps } from \"tailwind-variants\";\n\nimport type { InputSize } from \"../input/input\";\n\nimport { CommandContext } from \"./command-context\";\n\nconst commandListVariants = tv({\n base: \"no-scrollbar overflow-x-hidden overflow-y-auto outline-none\",\n variants: {\n size: {\n xs: \"max-h-60 scroll-py-0.5\",\n sm: \"max-h-64 scroll-py-1\",\n md: \"max-h-72 scroll-py-1\",\n lg: \"max-h-80 scroll-py-1.5\",\n xl: \"max-h-96 scroll-py-2\",\n },\n },\n defaultVariants: {\n size: \"md\",\n },\n});\n\nexport type CommandListProps = ComponentProps<typeof CommandPrimitive.List> &\n VariantProps<typeof commandListVariants>;\n\nconst CommandList = ({ className, size, ...props }: CommandListProps) => {\n const { size: rootSize } = useContext(CommandContext);\n const resolvedSize: InputSize = size ?? rootSize ?? \"md\";\n\n return (\n <CommandPrimitive.List\n className={cn(commandListVariants({ size: resolvedSize }), className)}\n data-size={resolvedSize}\n data-slot=\"command-list\"\n {...props}\n />\n );\n};\n\nexport { CommandList };\n","\"use client\";\n\nimport type { ComponentProps } from \"react\";\n\nimport { Command as CommandPrimitive } from \"cmdk\";\nimport { cn } from \"tailwind-variants\";\nexport type CommandSeparatorProps = ComponentProps<\n typeof CommandPrimitive.Separator\n>;\n\nconst CommandSeparator = ({ className, ...props }: CommandSeparatorProps) => (\n <CommandPrimitive.Separator\n className={cn(\"-mx-1 h-px bg-border\", className)}\n data-slot=\"command-separator\"\n {...props}\n />\n);\n\nexport { CommandSeparator };\n","\"use client\";\n\nimport type { ComponentProps } from \"react\";\n\nimport { useContext } from \"react\";\nimport { cn, tv, type VariantProps } from \"tailwind-variants\";\n\nimport type { InputSize } from \"../input/input\";\n\nimport { CommandContext, CommandItemContext } from \"./command-context\";\n\nconst commandShortcutVariants = tv({\n base: \"ml-auto text-muted-foreground group-data-[selected=true]/command-item:text-foreground\",\n variants: {\n size: {\n xs: \"text-[10px] tracking-wide\",\n sm: \"text-xs tracking-wide\",\n md: \"text-xs tracking-widest\",\n lg: \"text-xs tracking-widest\",\n xl: \"text-sm tracking-widest\",\n },\n },\n defaultVariants: {\n size: \"md\",\n },\n});\n\nexport type CommandShortcutProps = ComponentProps<\"span\"> &\n VariantProps<typeof commandShortcutVariants>;\n\nconst CommandShortcut = ({\n className,\n size,\n ...props\n}: CommandShortcutProps) => {\n const { size: rootSize } = useContext(CommandContext);\n const { size: itemSize } = useContext(CommandItemContext);\n const resolvedSize: InputSize = size ?? itemSize ?? rootSize ?? \"md\";\n\n return (\n <span\n className={cn(commandShortcutVariants({ size: resolvedSize }), className)}\n data-size={resolvedSize}\n data-slot=\"command-shortcut\"\n {...props}\n />\n );\n};\n\nexport { CommandShortcut };\n","\"use client\";\n\nimport type { ComponentProps } from \"react\";\n\nimport { Command as CommandPrimitive } from \"cmdk\";\nimport { cn } from \"tailwind-variants\";\n\nimport type { InputSize } from \"../input/input\";\n\nimport { useComponentSize } from \"../shared/size/size-provider\";\nimport { CommandContext } from \"./command-context\";\nimport { CommandDialog } from \"./command-dialog\";\nimport { CommandEmpty } from \"./command-empty\";\nimport { CommandGroup } from \"./command-group\";\nimport { CommandInput } from \"./command-input\";\nimport { CommandItem } from \"./command-item\";\nimport { CommandList } from \"./command-list\";\nimport { CommandSeparator } from \"./command-separator\";\nimport { CommandShortcut } from \"./command-shortcut\";\nexport type CommandProps = ComponentProps<typeof CommandPrimitive> & {\n size?: InputSize;\n};\n\nconst Command = ({ className, size: providedSize, ...props }: CommandProps) => {\n const size = useComponentSize(providedSize);\n\n return (\n <CommandContext.Provider value={{ size }}>\n <CommandPrimitive\n className={cn(\n \"flex size-full flex-col overflow-hidden rounded-xl! bg-popover p-1 text-popover-foreground\",\n className\n )}\n data-size={size}\n data-slot=\"command\"\n {...props}\n />\n </CommandContext.Provider>\n );\n};\n\nCommand.Dialog = CommandDialog;\nCommand.Empty = CommandEmpty;\nCommand.Group = CommandGroup;\nCommand.Input = CommandInput;\nCommand.Item = CommandItem;\nCommand.List = CommandList;\nCommand.Separator = CommandSeparator;\nCommand.Shortcut = CommandShortcut;\n\nexport {\n Command,\n CommandDialog,\n CommandEmpty,\n CommandGroup,\n CommandInput,\n CommandItem,\n CommandList,\n CommandSeparator,\n CommandShortcut,\n};\n\nexport type { CommandDialogProps } from \"./command-dialog\";\nexport type { CommandEmptyProps } from \"./command-empty\";\nexport type { CommandGroupProps } from \"./command-group\";\nexport type { CommandInputProps } from \"./command-input\";\nexport type { CommandItemProps } from \"./command-item\";\nexport type { CommandListProps } from \"./command-list\";\nexport type { CommandSeparatorProps } from \"./command-separator\";\nexport type { CommandShortcutProps } from \"./command-shortcut\";\n"],"mappings":";;;;;;;;;;;;;;;AAcA,MAAM,iBAAiB,cAAmC,EACxD,MAAM,MACP,CAAC;AAEF,MAAM,qBAAqB,cAAuC,EAAE,CAAC;;;;ACMrE,MAAM,iBAAiB,EACrB,QAAQ,mBACR,cAAc,kCACd,UACA,WACA,kBAAkB,OAClB,GAAG,YAEH,qBAAC;CAAO,GAAI;YACV,qBAAC;EAAa,WAAU;aACtB,oBAAC,yBAAa,QAAoB,EAClC,oBAAC,+BAAmB,cAAgC;GACvC,EACf,oBAAC;EACC,WAAW,GAAG,mCAAmC,UAAU;EAC1C;EAEhB;GACa;EACT;;;;AC/BX,MAAM,uBAAuB,GAAG;CAC9B,MAAM;CACN,UAAU,EACR,MAAM;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACL,EACF;CACD,iBAAiB,EACf,MAAM,MACP;CACF,CAAC;AAKF,MAAM,gBAAgB,EAAE,WAAW,MAAM,GAAG,YAA+B;CACzE,MAAM,EAAE,MAAM,aAAa,WAAW,eAAe;CACrD,MAAM,eAA0B,QAAQ,YAAY;AAEpD,QACE,oBAACA,UAAiB;EAChB,WAAW,GAAG,qBAAqB,EAAE,MAAM,cAAc,CAAC,EAAE,UAAU;EACtE,aAAW;EACX,aAAU;EACV,GAAI;GACJ;;;;;AC7BN,MAAM,uBAAuB,GAAG;CAC9B,MAAM;CACN,UAAU,EACR,MAAM;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACL,EACF;CACD,iBAAiB,EACf,MAAM,MACP;CACF,CAAC;AAKF,MAAM,gBAAgB,EAAE,WAAW,MAAM,GAAG,YAA+B;CACzE,MAAM,EAAE,MAAM,aAAa,WAAW,eAAe;CACrD,MAAM,eAA0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,YAAY;AAEhE,QACE,oBAAC;EACC,WAAW,GAAG,wBAAwB,EAAE,MAAM,cAAc,CAAC,EAAE,UAAU;EACzE,aAAW;EACX,aAAU;EACV,GAAI;GACJ;;;;;ACtBN,MAAM,WAAW,EAAE,WAAW,MAAM,cAAc,GAAG,YAA0B;CAC7E,MAAM,OAAO,iBAAiB,aAAa;AAE3C,QACE,oBAAC,eAAe;EAAS,OAAO,EAAE,MAAM;YACtC,oBAACC;GACC,WAAW,GACT,8FACA,UACD;GACD,aAAW;GACX,aAAU;GACV,GAAI;IACJ;GACsB;;AAI9B,QAAQ,SAAS;AACjB,QAAQ,QAAQ;AAChB,QAAQ,QAAQ;AAChB,QAAQ,QAAQ;AAChB,QAAQ,OAAO;AACf,QAAQ,OAAO;AACf,QAAQ,YAAY;AACpB,QAAQ,WAAW"}
|
|
1
|
+
{"version":3,"file":"command.js","names":["CommandPrimitive","CommandPrimitive","CommandPrimitive","CommandPrimitive","CommandPrimitive","CommandPrimitive","CommandPrimitive"],"sources":["../../src/ui/command/command-context.tsx","../../src/ui/command/command-dialog.tsx","../../src/ui/command/command-empty.tsx","../../src/ui/command/command-group.tsx","../../src/ui/command/command-input.tsx","../../src/ui/command/command-item.tsx","../../src/ui/command/command-list.tsx","../../src/ui/command/command-separator.tsx","../../src/ui/command/command-shortcut.tsx","../../src/ui/command/command.tsx"],"sourcesContent":["\"use client\";\n\nimport { createContext } from \"react\";\n\nimport type { InputSize } from \"../input/input\";\n\nexport interface CommandContextValue {\n size?: InputSize;\n}\n\nexport interface CommandItemContextValue {\n size?: InputSize;\n}\n\nconst CommandContext = createContext<CommandContextValue>({\n size: \"md\",\n});\n\nconst CommandItemContext = createContext<CommandItemContextValue>({});\n\nexport { CommandContext, CommandItemContext };\n","\"use client\";\n\nimport type { ComponentProps, ReactNode } from \"react\";\nimport { cn } from \"tailwind-variants\";\n\nimport {\n Dialog,\n DialogContent,\n DialogDescription,\n DialogHeader,\n DialogTitle,\n} from \"../dialog/dialog\";\nexport type CommandDialogProps = Omit<\n ComponentProps<typeof Dialog>,\n \"children\"\n> & {\n title?: string;\n description?: string;\n className?: string;\n showCloseButton?: boolean;\n children: ReactNode;\n};\n\nconst CommandDialog = ({\n title = \"Command Palette\",\n description = \"Search for a command to run...\",\n children,\n className,\n showCloseButton = false,\n ...props\n}: CommandDialogProps) => (\n <Dialog {...props}>\n <DialogHeader className=\"sr-only\">\n <DialogTitle>{title}</DialogTitle>\n <DialogDescription>{description}</DialogDescription>\n </DialogHeader>\n <DialogContent\n className={cn(\"overflow-hidden rounded-xl! p-0\", className)}\n showCloseButton={showCloseButton}\n >\n {children}\n </DialogContent>\n </Dialog>\n);\n\nexport { CommandDialog };\n","\"use client\";\n\nimport { Command as CommandPrimitive } from \"cmdk\";\nimport type { ComponentProps } from \"react\";\nimport { useContext } from \"react\";\nimport { cn, tv } from \"tailwind-variants\";\nimport type { VariantProps } from \"tailwind-variants\";\n\nimport type { InputSize } from \"../input/input\";\nimport { CommandContext } from \"./command-context\";\n\nconst commandEmptyVariants = tv({\n base: \"text-center\",\n defaultVariants: {\n size: \"md\",\n },\n variants: {\n size: {\n lg: \"py-7 text-sm\",\n md: \"py-6 text-sm\",\n sm: \"py-5 text-sm\",\n xl: \"py-8 text-base\",\n xs: \"py-4 text-xs\",\n },\n },\n});\n\nexport type CommandEmptyProps = ComponentProps<typeof CommandPrimitive.Empty> &\n VariantProps<typeof commandEmptyVariants>;\n\nconst CommandEmpty = ({ className, size, ...props }: CommandEmptyProps) => {\n const { size: rootSize } = useContext(CommandContext);\n const resolvedSize: InputSize = size ?? rootSize ?? \"md\";\n\n return (\n <CommandPrimitive.Empty\n className={cn(commandEmptyVariants({ size: resolvedSize }), className)}\n data-size={resolvedSize}\n data-slot=\"command-empty\"\n {...props}\n />\n );\n};\n\nexport { CommandEmpty };\n","\"use client\";\n\nimport { Command as CommandPrimitive } from \"cmdk\";\nimport type { ComponentProps } from \"react\";\nimport { useContext } from \"react\";\nimport { cn, tv } from \"tailwind-variants\";\nimport type { VariantProps } from \"tailwind-variants\";\n\nimport type { InputSize } from \"../input/input\";\nimport { CommandContext } from \"./command-context\";\n\nconst commandGroupVariants = tv({\n base: \"text-foreground overflow-hidden\",\n defaultVariants: {\n size: \"md\",\n },\n variants: {\n size: {\n lg: \"[&_[cmdk-group-heading]]:text-muted-foreground p-1.5 [&_[cmdk-group-heading]]:px-2.5 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-sm [&_[cmdk-group-heading]]:font-medium\",\n md: \"[&_[cmdk-group-heading]]:text-muted-foreground p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium\",\n sm: \"[&_[cmdk-group-heading]]:text-muted-foreground p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium\",\n xl: \"[&_[cmdk-group-heading]]:text-muted-foreground p-2 [&_[cmdk-group-heading]]:px-3 [&_[cmdk-group-heading]]:py-2 [&_[cmdk-group-heading]]:text-sm [&_[cmdk-group-heading]]:font-medium\",\n xs: \"[&_[cmdk-group-heading]]:text-muted-foreground p-0.5 [&_[cmdk-group-heading]]:px-1.5 [&_[cmdk-group-heading]]:py-0.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium\",\n },\n },\n});\n\nexport type CommandGroupProps = ComponentProps<typeof CommandPrimitive.Group> &\n VariantProps<typeof commandGroupVariants>;\n\nconst CommandGroup = ({ className, size, ...props }: CommandGroupProps) => {\n const { size: rootSize } = useContext(CommandContext);\n const resolvedSize: InputSize = size ?? rootSize ?? \"md\";\n\n return (\n <CommandPrimitive.Group\n className={cn(commandGroupVariants({ size: resolvedSize }), className)}\n data-size={resolvedSize}\n data-slot=\"command-group\"\n {...props}\n />\n );\n};\n\nexport { CommandGroup };\n","\"use client\";\n\nimport { SearchIcon } from \"@hugeicons/core-free-icons\";\nimport { HugeiconsIcon } from \"@hugeicons/react\";\nimport { Command as CommandPrimitive } from \"cmdk\";\nimport type { ComponentProps } from \"react\";\nimport { useContext } from \"react\";\nimport { cn } from \"tailwind-variants\";\n\nimport { InputGroup, InputGroupAddon } from \"../input-group/input-group\";\nimport type { InputSize } from \"../input/input\";\nimport {\n resolveDefaultIconClassBySize,\n resolveFieldTextClassBySize,\n} from \"../shared/size/size-system\";\nimport { CommandContext } from \"./command-context\";\ntype NativeCommandInputProps = ComponentProps<typeof CommandPrimitive.Input>;\ntype NativeCommandInputSize = NativeCommandInputProps[\"size\"];\n\nexport type CommandInputProps = Omit<NativeCommandInputProps, \"size\"> & {\n htmlSize?: NativeCommandInputSize;\n size?: InputSize;\n};\n\nconst CommandInput = ({\n className,\n htmlSize,\n size,\n ...props\n}: CommandInputProps) => {\n const { size: rootSize } = useContext(CommandContext);\n const resolvedSize = size ?? rootSize ?? \"md\";\n\n return (\n <div\n className=\"p-1 pb-0\"\n data-size={resolvedSize}\n data-slot=\"command-input-wrapper\"\n >\n <InputGroup\n className=\"border-input/30 bg-input/30 rounded-lg! shadow-none! *:data-[slot=input-group-addon]:pl-2!\"\n size={resolvedSize}\n >\n <CommandPrimitive.Input\n className={cn(\n \"w-full outline-hidden disabled:cursor-not-allowed disabled:opacity-50\",\n resolveFieldTextClassBySize(resolvedSize),\n className\n )}\n data-size={resolvedSize}\n data-slot=\"command-input\"\n size={htmlSize}\n {...props}\n />\n <InputGroupAddon>\n <HugeiconsIcon\n className={cn(\n resolveDefaultIconClassBySize(resolvedSize),\n \"shrink-0 opacity-50\"\n )}\n icon={SearchIcon}\n strokeWidth={2}\n />\n </InputGroupAddon>\n </InputGroup>\n </div>\n );\n};\n\nexport { CommandInput };\n","\"use client\";\n\nimport { Tick02Icon } from \"@hugeicons/core-free-icons\";\nimport { HugeiconsIcon } from \"@hugeicons/react\";\nimport { Command as CommandPrimitive } from \"cmdk\";\nimport type { ComponentProps } from \"react\";\nimport { useContext, useMemo } from \"react\";\nimport { cn, tv } from \"tailwind-variants\";\nimport type { VariantProps } from \"tailwind-variants\";\n\nimport type { InputSize } from \"../input/input\";\nimport { CommandContext, CommandItemContext } from \"./command-context\";\n\nconst commandItemVariants = tv({\n defaultVariants: {\n size: \"md\",\n },\n slots: {\n indicator:\n \"data-[selected=true]:*:[svg]:text-foreground ml-auto opacity-0 group-has-[[data-slot=command-shortcut]]/command-item:hidden group-data-[checked=true]/command-item:opacity-100\",\n root: \"group/command-item cursor-clickable data-[selected=true]:bg-muted data-[selected=true]:text-foreground relative flex items-center rounded-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [[data-slot=dialog-content]_&]:rounded-lg!\",\n },\n variants: {\n size: {\n lg: {\n indicator: \"size-4\",\n root: \"gap-2 px-2.5 py-2 text-sm [&_svg:not([class*='size-'])]:size-4\",\n },\n md: {\n indicator: \"size-4\",\n root: \"gap-2 px-2 py-1.5 text-sm [&_svg:not([class*='size-'])]:size-4\",\n },\n sm: {\n indicator: \"size-3.5\",\n root: \"gap-1.5 px-2 py-1 text-sm [&_svg:not([class*='size-'])]:size-3.5\",\n },\n xl: {\n indicator: \"size-5\",\n root: \"gap-2.5 px-3 py-2.5 text-base [&_svg:not([class*='size-'])]:size-5\",\n },\n xs: {\n indicator: \"size-3\",\n root: \"gap-1 px-1.5 py-1 text-xs [&_svg:not([class*='size-'])]:size-3\",\n },\n },\n },\n});\n\nexport type CommandItemProps = ComponentProps<typeof CommandPrimitive.Item> &\n VariantProps<typeof commandItemVariants>;\n\nconst CommandItem = ({\n className,\n children,\n size,\n ...props\n}: CommandItemProps) => {\n const { size: rootSize } = useContext(CommandContext);\n const resolvedSize: InputSize = size ?? rootSize ?? \"md\";\n const contextValue = useMemo(() => ({ size: resolvedSize }), [resolvedSize]);\n const { indicator, root } = commandItemVariants({ size: resolvedSize });\n\n return (\n <CommandPrimitive.Item\n className={cn(root(), className)}\n data-size={resolvedSize}\n data-slot=\"command-item\"\n {...props}\n >\n <CommandItemContext.Provider value={contextValue}>\n {children}\n </CommandItemContext.Provider>\n <HugeiconsIcon\n className={indicator()}\n icon={Tick02Icon}\n strokeWidth={2}\n />\n </CommandPrimitive.Item>\n );\n};\n\nexport { CommandItem };\n","\"use client\";\n\nimport { Command as CommandPrimitive } from \"cmdk\";\nimport type { ComponentProps } from \"react\";\nimport { useContext } from \"react\";\nimport { cn, tv } from \"tailwind-variants\";\nimport type { VariantProps } from \"tailwind-variants\";\n\nimport type { InputSize } from \"../input/input\";\nimport { CommandContext } from \"./command-context\";\n\nconst commandListVariants = tv({\n base: \"no-scrollbar overflow-x-hidden overflow-y-auto outline-none\",\n defaultVariants: {\n size: \"md\",\n },\n variants: {\n size: {\n lg: \"max-h-80 scroll-py-1.5\",\n md: \"max-h-72 scroll-py-1\",\n sm: \"max-h-64 scroll-py-1\",\n xl: \"max-h-96 scroll-py-2\",\n xs: \"max-h-60 scroll-py-0.5\",\n },\n },\n});\n\nexport type CommandListProps = ComponentProps<typeof CommandPrimitive.List> &\n VariantProps<typeof commandListVariants>;\n\nconst CommandList = ({ className, size, ...props }: CommandListProps) => {\n const { size: rootSize } = useContext(CommandContext);\n const resolvedSize: InputSize = size ?? rootSize ?? \"md\";\n\n return (\n <CommandPrimitive.List\n className={cn(commandListVariants({ size: resolvedSize }), className)}\n data-size={resolvedSize}\n data-slot=\"command-list\"\n {...props}\n />\n );\n};\n\nexport { CommandList };\n","\"use client\";\n\nimport { Command as CommandPrimitive } from \"cmdk\";\nimport type { ComponentProps } from \"react\";\nimport { cn } from \"tailwind-variants\";\nexport type CommandSeparatorProps = ComponentProps<\n typeof CommandPrimitive.Separator\n>;\n\nconst CommandSeparator = ({ className, ...props }: CommandSeparatorProps) => (\n <CommandPrimitive.Separator\n className={cn(\"bg-border -mx-1 h-px\", className)}\n data-slot=\"command-separator\"\n {...props}\n />\n);\n\nexport { CommandSeparator };\n","\"use client\";\n\nimport type { ComponentProps } from \"react\";\nimport { useContext } from \"react\";\nimport { cn, tv } from \"tailwind-variants\";\nimport type { VariantProps } from \"tailwind-variants\";\n\nimport type { InputSize } from \"../input/input\";\nimport { CommandContext, CommandItemContext } from \"./command-context\";\n\nconst commandShortcutVariants = tv({\n base: \"text-muted-foreground group-data-[selected=true]/command-item:text-foreground ml-auto\",\n defaultVariants: {\n size: \"md\",\n },\n variants: {\n size: {\n lg: \"text-xs tracking-widest\",\n md: \"text-xs tracking-widest\",\n sm: \"text-xs tracking-wide\",\n xl: \"text-sm tracking-widest\",\n xs: \"text-[10px] tracking-wide\",\n },\n },\n});\n\nexport type CommandShortcutProps = ComponentProps<\"span\"> &\n VariantProps<typeof commandShortcutVariants>;\n\nconst CommandShortcut = ({\n className,\n size,\n ...props\n}: CommandShortcutProps) => {\n const { size: rootSize } = useContext(CommandContext);\n const { size: itemSize } = useContext(CommandItemContext);\n const resolvedSize: InputSize = size ?? itemSize ?? rootSize ?? \"md\";\n\n return (\n <span\n className={cn(commandShortcutVariants({ size: resolvedSize }), className)}\n data-size={resolvedSize}\n data-slot=\"command-shortcut\"\n {...props}\n />\n );\n};\n\nexport { CommandShortcut };\n","\"use client\";\n\nimport { Command as CommandPrimitive } from \"cmdk\";\nimport type { ComponentProps } from \"react\";\nimport { useMemo } from \"react\";\nimport { cn } from \"tailwind-variants\";\n\nimport type { InputSize } from \"../input/input\";\nimport { useComponentSize } from \"../shared/size/size-provider\";\nimport { CommandContext } from \"./command-context\";\nimport { CommandDialog } from \"./command-dialog\";\nimport { CommandEmpty } from \"./command-empty\";\nimport { CommandGroup } from \"./command-group\";\nimport { CommandInput } from \"./command-input\";\nimport { CommandItem } from \"./command-item\";\nimport { CommandList } from \"./command-list\";\nimport { CommandSeparator } from \"./command-separator\";\nimport { CommandShortcut } from \"./command-shortcut\";\nexport type CommandProps = ComponentProps<typeof CommandPrimitive> & {\n size?: InputSize;\n};\n\nconst Command = ({ className, size: providedSize, ...props }: CommandProps) => {\n const size = useComponentSize(providedSize);\n const contextValue = useMemo(() => ({ size }), [size]);\n\n return (\n <CommandContext.Provider value={contextValue}>\n <CommandPrimitive\n className={cn(\n \"bg-popover text-popover-foreground flex size-full flex-col overflow-hidden rounded-xl! p-1\",\n className\n )}\n data-size={size}\n data-slot=\"command\"\n {...props}\n />\n </CommandContext.Provider>\n );\n};\n\nCommand.Dialog = CommandDialog;\nCommand.Empty = CommandEmpty;\nCommand.Group = CommandGroup;\nCommand.Input = CommandInput;\nCommand.Item = CommandItem;\nCommand.List = CommandList;\nCommand.Separator = CommandSeparator;\nCommand.Shortcut = CommandShortcut;\n\nexport {\n Command,\n CommandDialog,\n CommandEmpty,\n CommandGroup,\n CommandInput,\n CommandItem,\n CommandList,\n CommandSeparator,\n CommandShortcut,\n};\n\nexport type { CommandDialogProps } from \"./command-dialog\";\nexport type { CommandEmptyProps } from \"./command-empty\";\nexport type { CommandGroupProps } from \"./command-group\";\nexport type { CommandInputProps } from \"./command-input\";\nexport type { CommandItemProps } from \"./command-item\";\nexport type { CommandListProps } from \"./command-list\";\nexport type { CommandSeparatorProps } from \"./command-separator\";\nexport type { CommandShortcutProps } from \"./command-shortcut\";\n"],"mappings":";;;;;;;;;;;;;;AAcA,MAAM,iBAAiB,cAAmC,EACxD,MAAM,MACP,CAAC;AAEF,MAAM,qBAAqB,cAAuC,EAAE,CAAC;;;;ACKrE,MAAM,iBAAiB,EACrB,QAAQ,mBACR,cAAc,kCACd,UACA,WACA,kBAAkB,OAClB,GAAG,YAEH,qBAAC,QAAD;CAAQ,GAAI;WAAZ,CACE,qBAAC,cAAD;EAAc,WAAU;YAAxB,CACE,oBAAC,aAAD,YAAc,OAAoB,GAClC,oBAAC,mBAAD,YAAoB,aAAgC,EACvC;KACf,oBAAC,eAAD;EACE,WAAW,GAAG,mCAAmC,UAAU;EAC1C;EAEhB;EACa,EACT;;;;;AC/BX,MAAM,uBAAuB,GA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ts","names":[],"sources":["../../src/ui/container/container.tsx"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"container.d.ts","names":[],"sources":["../../src/ui/container/container.tsx"],"mappings":";;;;KAGY,cAAA,GAAiB,cAAA;AAAA,cAEhB,SAAA;EAAa,SAAA;EAAA,GAAA;AAAA,GAAyB,cAAA,KAAc,kBAAA,CAAA,GAAA,CAAA,OAAA"}
|
package/dist/ui/container.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"container.js","names":[],"sources":["../../src/ui/container/container.tsx"],"sourcesContent":["import type { ComponentProps } from \"react\";\
|
|
1
|
+
{"version":3,"file":"container.js","names":[],"sources":["../../src/ui/container/container.tsx"],"sourcesContent":["import type { ComponentProps } from \"react\";\nimport { cn } from \"tailwind-variants\";\n\nexport type ContainerProps = ComponentProps<\"div\">;\n\nexport const Container = ({ className, ...props }: ContainerProps) => (\n <div\n className={cn(\"mx-auto w-full max-w-[86rem] px-4\", className)}\n data-slot=\"container\"\n {...props}\n />\n);\n"],"mappings":";;;;AAKA,MAAa,aAAa,EAAE,WAAW,GAAG,YACxC,oBAAC,OAAD;CACE,WAAW,GAAG,qCAAqC,UAAU;CAC7D,aAAU;CACV,GAAI;CACJ"}
|