gladvn 0.2.16 → 0.2.18
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/bin/cli.js +9 -6
- package/dist/components/macro/accordion-preset.d.ts.map +1 -1
- package/dist/components/macro/alert-dialog-preset.d.ts.map +1 -1
- package/dist/components/macro/alert-preset.d.ts.map +1 -1
- package/dist/components/macro/avatar-preset.d.ts.map +1 -1
- package/dist/components/macro/breadcrumb-preset.d.ts.map +1 -1
- package/dist/components/macro/card-preset.d.ts.map +1 -1
- package/dist/components/macro/carousel-preset.d.ts.map +1 -1
- package/dist/components/macro/checkbox-preset.d.ts.map +1 -1
- package/dist/components/macro/combobox-preset.d.ts.map +1 -1
- package/dist/components/macro/command-preset.d.ts +1 -1
- package/dist/components/macro/command-preset.d.ts.map +1 -1
- package/dist/components/macro/date-picker.d.ts.map +1 -1
- package/dist/components/macro/dialog-preset.d.ts.map +1 -1
- package/dist/components/macro/empty-preset.d.ts.map +1 -1
- package/dist/components/macro/field-preset.d.ts.map +1 -1
- package/dist/components/macro/input-otp-preset.d.ts +6 -0
- package/dist/components/macro/input-otp-preset.d.ts.map +1 -1
- package/dist/components/macro/input-preset.d.ts +1 -1
- package/dist/components/macro/input-preset.d.ts.map +1 -1
- package/dist/components/macro/pagination-preset.d.ts.map +1 -1
- package/dist/components/macro/progress-preset.d.ts.map +1 -1
- package/dist/components/macro/radio-group-preset.d.ts.map +1 -1
- package/dist/components/macro/select-preset.d.ts.map +1 -1
- package/dist/components/macro/slider-preset.d.ts.map +1 -1
- package/dist/components/macro/switch-preset.d.ts.map +1 -1
- package/dist/components/macro/tabs-preset.d.ts +1 -1
- package/dist/components/macro/tabs-preset.d.ts.map +1 -1
- package/dist/components/macro/textarea-preset.d.ts +1 -1
- package/dist/components/macro/textarea-preset.d.ts.map +1 -1
- package/dist/components/micro/accordion.d.ts +7 -0
- package/dist/components/micro/accordion.d.ts.map +1 -1
- package/dist/components/micro/alert-dialog.d.ts.map +1 -1
- package/dist/components/micro/alert.d.ts +7 -0
- package/dist/components/micro/alert.d.ts.map +1 -1
- package/dist/components/micro/aspect-ratio.d.ts +7 -0
- package/dist/components/micro/aspect-ratio.d.ts.map +1 -1
- package/dist/components/micro/avatar.d.ts.map +1 -1
- package/dist/components/micro/badge.d.ts +8 -1
- package/dist/components/micro/badge.d.ts.map +1 -1
- package/dist/components/micro/breadcrumb.d.ts +7 -0
- package/dist/components/micro/breadcrumb.d.ts.map +1 -1
- package/dist/components/micro/button.d.ts +8 -1
- package/dist/components/micro/button.d.ts.map +1 -1
- package/dist/components/micro/calendar.d.ts +2 -2
- package/dist/components/micro/calendar.d.ts.map +1 -1
- package/dist/components/micro/carousel.d.ts.map +1 -1
- package/dist/components/micro/chart.d.ts.map +1 -1
- package/dist/components/micro/checkbox.d.ts.map +1 -1
- package/dist/components/micro/collapsible.d.ts.map +1 -1
- package/dist/components/micro/combobox.d.ts.map +1 -1
- package/dist/components/micro/command.d.ts.map +1 -1
- package/dist/components/micro/context-menu.d.ts.map +1 -1
- package/dist/components/micro/dialog.d.ts.map +1 -1
- package/dist/components/micro/drawer.d.ts.map +1 -1
- package/dist/components/micro/dropdown-menu.d.ts.map +1 -1
- package/dist/components/micro/empty.d.ts +7 -0
- package/dist/components/micro/empty.d.ts.map +1 -1
- package/dist/components/micro/field.d.ts.map +1 -1
- package/dist/components/micro/hover-card.d.ts +1 -1
- package/dist/components/micro/hover-card.d.ts.map +1 -1
- package/dist/components/micro/input-group.d.ts.map +1 -1
- package/dist/components/micro/input-otp.d.ts.map +1 -1
- package/dist/components/micro/input.d.ts +7 -0
- package/dist/components/micro/input.d.ts.map +1 -1
- package/dist/components/micro/item.d.ts.map +1 -1
- package/dist/components/micro/label.d.ts.map +1 -1
- package/dist/components/micro/menubar.d.ts.map +1 -1
- package/dist/components/micro/navigation-menu.d.ts +8 -1
- package/dist/components/micro/navigation-menu.d.ts.map +1 -1
- package/dist/components/micro/pagination.d.ts.map +1 -1
- package/dist/components/micro/popover.d.ts.map +1 -1
- package/dist/components/micro/progress.d.ts.map +1 -1
- package/dist/components/micro/radio-group.d.ts.map +1 -1
- package/dist/components/micro/select.d.ts +1 -1
- package/dist/components/micro/select.d.ts.map +1 -1
- package/dist/components/micro/sheet.d.ts.map +1 -1
- package/dist/components/micro/sidebar.d.ts.map +1 -1
- package/dist/components/micro/skeleton.d.ts +7 -0
- package/dist/components/micro/skeleton.d.ts.map +1 -1
- package/dist/components/micro/slider.d.ts +7 -0
- package/dist/components/micro/slider.d.ts.map +1 -1
- package/dist/components/micro/sonner.d.ts.map +1 -1
- package/dist/components/micro/spinner.d.ts.map +1 -1
- package/dist/components/micro/switch.d.ts.map +1 -1
- package/dist/components/micro/table.d.ts.map +1 -1
- package/dist/components/micro/tabs.d.ts +1 -1
- package/dist/components/micro/tabs.d.ts.map +1 -1
- package/dist/components/micro/textarea.d.ts +7 -0
- package/dist/components/micro/textarea.d.ts.map +1 -1
- package/dist/components/micro/toggle-group.d.ts.map +1 -1
- package/dist/components/micro/toggle.d.ts.map +1 -1
- package/dist/components/micro/tooltip.d.ts +1 -1
- package/dist/components/micro/tooltip.d.ts.map +1 -1
- package/dist/dev/App.d.ts.map +1 -1
- package/dist/dev/components/code-highlighter.d.ts.map +1 -1
- package/dist/dev/components/dev-context.d.ts.map +1 -1
- package/dist/dev/components/showcase.d.ts +1 -1
- package/dist/dev/components/showcase.d.ts.map +1 -1
- package/dist/dev/data.d.ts.map +1 -1
- package/dist/dev/main.d.ts.map +1 -1
- package/dist/dev/sections/buttons.d.ts.map +1 -1
- package/dist/dev/sections/feedback.d.ts.map +1 -1
- package/dist/dev/sections/overview.d.ts.map +1 -1
- package/dist/dev/showcase/accordion.d.ts.map +1 -1
- package/dist/dev/showcase/alert-dialog.d.ts.map +1 -1
- package/dist/dev/showcase/alert.d.ts.map +1 -1
- package/dist/dev/showcase/aspect-ratio.d.ts.map +1 -1
- package/dist/dev/showcase/avatar.d.ts.map +1 -1
- package/dist/dev/showcase/breadcrumb.d.ts.map +1 -1
- package/dist/dev/showcase/button.d.ts.map +1 -1
- package/dist/dev/showcase/calendar.d.ts.map +1 -1
- package/dist/dev/showcase/card.d.ts.map +1 -1
- package/dist/dev/showcase/carousel.d.ts.map +1 -1
- package/dist/dev/showcase/chart.d.ts.map +1 -1
- package/dist/dev/showcase/checkbox.d.ts.map +1 -1
- package/dist/dev/showcase/collapsible.d.ts.map +1 -1
- package/dist/dev/showcase/combobox.d.ts.map +1 -1
- package/dist/dev/showcase/command.d.ts.map +1 -1
- package/dist/dev/showcase/context-menu.d.ts.map +1 -1
- package/dist/dev/showcase/dialog.d.ts.map +1 -1
- package/dist/dev/showcase/drawer.d.ts.map +1 -1
- package/dist/dev/showcase/dropdown-menu.d.ts.map +1 -1
- package/dist/dev/showcase/empty.d.ts.map +1 -1
- package/dist/dev/showcase/hover-card.d.ts.map +1 -1
- package/dist/dev/showcase/input-group.d.ts.map +1 -1
- package/dist/dev/showcase/input-otp.d.ts.map +1 -1
- package/dist/dev/showcase/input.d.ts.map +1 -1
- package/dist/dev/showcase/item.d.ts.map +1 -1
- package/dist/dev/showcase/kbd.d.ts.map +1 -1
- package/dist/dev/showcase/label.d.ts.map +1 -1
- package/dist/dev/showcase/menubar.d.ts.map +1 -1
- package/dist/dev/showcase/navigation-menu.d.ts.map +1 -1
- package/dist/dev/showcase/overview.d.ts.map +1 -1
- package/dist/dev/showcase/pagination.d.ts.map +1 -1
- package/dist/dev/showcase/popover.d.ts.map +1 -1
- package/dist/dev/showcase/progress.d.ts.map +1 -1
- package/dist/dev/showcase/radio-group.d.ts.map +1 -1
- package/dist/dev/showcase/resizable.d.ts.map +1 -1
- package/dist/dev/showcase/scroll-area.d.ts.map +1 -1
- package/dist/dev/showcase/select.d.ts.map +1 -1
- package/dist/dev/showcase/separator.d.ts.map +1 -1
- package/dist/dev/showcase/sheet.d.ts.map +1 -1
- package/dist/dev/showcase/sidebar.d.ts.map +1 -1
- package/dist/dev/showcase/skeleton.d.ts.map +1 -1
- package/dist/dev/showcase/slider.d.ts.map +1 -1
- package/dist/dev/showcase/sonner.d.ts.map +1 -1
- package/dist/dev/showcase/spinner.d.ts.map +1 -1
- package/dist/dev/showcase/switch.d.ts.map +1 -1
- package/dist/dev/showcase/table.d.ts.map +1 -1
- package/dist/dev/showcase/tabs.d.ts.map +1 -1
- package/dist/dev/showcase/textarea.d.ts.map +1 -1
- package/dist/dev/showcase/theme-provider.d.ts.map +1 -1
- package/dist/dev/showcase/toast.d.ts.map +1 -1
- package/dist/dev/showcase/toggle-group.d.ts.map +1 -1
- package/dist/dev/showcase/toggle.d.ts.map +1 -1
- package/dist/dev/showcase/tooltip.d.ts.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/lib/utils.d.ts.map +1 -1
- package/package.json +3 -1
- package/scripts/format-codestrings.ts +87 -0
- package/scripts/organize-imports.ts +21 -0
- package/scripts/regex-format.cjs +67 -0
- package/scripts/tmp.tsx +25 -0
- package/src/components/macro/accordion-preset.test.tsx +1 -0
- package/src/components/macro/accordion-preset.tsx +2 -1
- package/src/components/macro/alert-dialog-preset.tsx +44 -43
- package/src/components/macro/alert-preset.tsx +7 -3
- package/src/components/macro/avatar-preset.tsx +2 -1
- package/src/components/macro/breadcrumb-preset.tsx +2 -1
- package/src/components/macro/card-preset.tsx +2 -1
- package/src/components/macro/carousel-preset.tsx +5 -2
- package/src/components/macro/checkbox-preset.test.tsx +1 -0
- package/src/components/macro/checkbox-preset.tsx +6 -2
- package/src/components/macro/combobox-preset.tsx +6 -3
- package/src/components/macro/command-preset.tsx +7 -3
- package/src/components/macro/date-picker.tsx +77 -59
- package/src/components/macro/dialog-preset.tsx +42 -38
- package/src/components/macro/empty-preset.tsx +2 -1
- package/src/components/macro/field-preset.test.tsx +1 -0
- package/src/components/macro/field-preset.tsx +2 -1
- package/src/components/macro/input-otp-preset.tsx +6 -2
- package/src/components/macro/input-preset.test.tsx +1 -0
- package/src/components/macro/input-preset.tsx +4 -2
- package/src/components/macro/pagination-preset.tsx +3 -1
- package/src/components/macro/progress-preset.test.tsx +1 -0
- package/src/components/macro/progress-preset.tsx +2 -1
- package/src/components/macro/radio-group-preset.tsx +4 -1
- package/src/components/macro/select-preset.tsx +35 -30
- package/src/components/macro/slider-preset.test.tsx +1 -0
- package/src/components/macro/slider-preset.tsx +4 -1
- package/src/components/macro/switch-preset.test.tsx +1 -0
- package/src/components/macro/switch-preset.tsx +4 -1
- package/src/components/macro/tabs-preset.test.tsx +1 -0
- package/src/components/macro/tabs-preset.tsx +4 -2
- package/src/components/macro/textarea-preset.test.tsx +1 -0
- package/src/components/macro/textarea-preset.tsx +4 -1
- package/src/components/micro/accordion.tsx +3 -2
- package/src/components/micro/alert-dialog.tsx +2 -1
- package/src/components/micro/alert.tsx +3 -2
- package/src/components/micro/aspect-ratio.tsx +2 -1
- package/src/components/micro/avatar.tsx +2 -1
- package/src/components/micro/badge.tsx +3 -3
- package/src/components/micro/breadcrumb.tsx +3 -2
- package/src/components/micro/button.test.tsx +1 -0
- package/src/components/micro/button.tsx +3 -3
- package/src/components/micro/calendar.tsx +10 -9
- package/src/components/micro/carousel.tsx +3 -2
- package/src/components/micro/chart.tsx +1 -0
- package/src/components/micro/checkbox.tsx +2 -2
- package/src/components/micro/collapsible.tsx +4 -2
- package/src/components/micro/combobox.tsx +47 -29
- package/src/components/micro/command.tsx +23 -16
- package/src/components/micro/context-menu.tsx +3 -2
- package/src/components/micro/dialog.tsx +2 -1
- package/src/components/micro/drawer.tsx +2 -1
- package/src/components/micro/dropdown-menu.tsx +3 -2
- package/src/components/micro/empty.tsx +2 -1
- package/src/components/micro/field.tsx +4 -3
- package/src/components/micro/hover-card.tsx +20 -19
- package/src/components/micro/input-group.tsx +5 -4
- package/src/components/micro/input-otp.tsx +3 -2
- package/src/components/micro/input.tsx +3 -2
- package/src/components/micro/item.tsx +1 -0
- package/src/components/micro/label.tsx +2 -1
- package/src/components/micro/menubar.tsx +2 -1
- package/src/components/micro/navigation-menu.tsx +18 -17
- package/src/components/micro/pagination.tsx +2 -1
- package/src/components/micro/popover.tsx +2 -1
- package/src/components/micro/progress.tsx +2 -1
- package/src/components/micro/radio-group.tsx +3 -3
- package/src/components/micro/select.tsx +5 -4
- package/src/components/micro/sheet.tsx +2 -1
- package/src/components/micro/sidebar.tsx +4 -1
- package/src/components/micro/skeleton.tsx +2 -1
- package/src/components/micro/slider.tsx +4 -1
- package/src/components/micro/sonner.tsx +2 -1
- package/src/components/micro/spinner.tsx +1 -2
- package/src/components/micro/switch.tsx +2 -2
- package/src/components/micro/table.tsx +2 -1
- package/src/components/micro/tabs.tsx +4 -3
- package/src/components/micro/textarea.tsx +2 -1
- package/src/components/micro/toggle-group.tsx +1 -0
- package/src/components/micro/toggle.tsx +1 -3
- package/src/components/micro/tooltip.tsx +9 -3
- package/src/dev/App.tsx +66 -41
- package/src/dev/components/code-highlighter.tsx +2 -1
- package/src/dev/components/dev-context.tsx +1 -0
- package/src/dev/components/showcase.tsx +13 -14
- package/src/dev/data.ts +206 -52
- package/src/dev/main.tsx +4 -4
- package/src/dev/sections/buttons.tsx +14 -12
- package/src/dev/sections/feedback.tsx +7 -2
- package/src/dev/sections/forms.tsx +11 -11
- package/src/dev/sections/overview.tsx +2 -1
- package/src/dev/showcase/accordion.tsx +399 -314
- package/src/dev/showcase/alert-dialog.tsx +387 -384
- package/src/dev/showcase/alert.tsx +271 -258
- package/src/dev/showcase/aspect-ratio.tsx +102 -105
- package/src/dev/showcase/avatar.tsx +216 -145
- package/src/dev/showcase/badge.tsx +78 -50
- package/src/dev/showcase/breadcrumb.tsx +88 -85
- package/src/dev/showcase/button.tsx +72 -96
- package/src/dev/showcase/calendar.tsx +41 -39
- package/src/dev/showcase/card.tsx +170 -148
- package/src/dev/showcase/carousel.tsx +239 -77
- package/src/dev/showcase/chart.tsx +5 -4
- package/src/dev/showcase/checkbox.tsx +206 -140
- package/src/dev/showcase/collapsible.tsx +108 -84
- package/src/dev/showcase/combobox.tsx +272 -199
- package/src/dev/showcase/command.tsx +31 -28
- package/src/dev/showcase/context-menu.tsx +94 -77
- package/src/dev/showcase/dialog.tsx +445 -424
- package/src/dev/showcase/drawer.tsx +142 -135
- package/src/dev/showcase/dropdown-menu.tsx +165 -161
- package/src/dev/showcase/empty.tsx +173 -158
- package/src/dev/showcase/hover-card.tsx +92 -52
- package/src/dev/showcase/input-group.tsx +193 -160
- package/src/dev/showcase/input-otp.tsx +109 -99
- package/src/dev/showcase/input.tsx +78 -42
- package/src/dev/showcase/item.tsx +101 -98
- package/src/dev/showcase/kbd.tsx +78 -62
- package/src/dev/showcase/label.tsx +16 -23
- package/src/dev/showcase/menubar.tsx +274 -251
- package/src/dev/showcase/navigation-menu.tsx +175 -170
- package/src/dev/showcase/overview.tsx +164 -148
- package/src/dev/showcase/pagination.tsx +101 -69
- package/src/dev/showcase/popover.tsx +113 -86
- package/src/dev/showcase/progress.tsx +99 -69
- package/src/dev/showcase/radio-group.tsx +217 -134
- package/src/dev/showcase/resizable.tsx +65 -55
- package/src/dev/showcase/scroll-area.tsx +32 -22
- package/src/dev/showcase/select.tsx +192 -136
- package/src/dev/showcase/separator.tsx +28 -24
- package/src/dev/showcase/sheet.tsx +182 -134
- package/src/dev/showcase/sidebar.tsx +9 -5
- package/src/dev/showcase/skeleton.tsx +54 -59
- package/src/dev/showcase/slider.tsx +158 -129
- package/src/dev/showcase/sonner.tsx +3 -5
- package/src/dev/showcase/spinner.tsx +22 -18
- package/src/dev/showcase/switch.tsx +207 -110
- package/src/dev/showcase/table.tsx +44 -32
- package/src/dev/showcase/tabs.tsx +272 -267
- package/src/dev/showcase/textarea.tsx +162 -116
- package/src/dev/showcase/theme-provider.tsx +596 -534
- package/src/dev/showcase/toast.tsx +37 -38
- package/src/dev/showcase/toggle-group.tsx +87 -39
- package/src/dev/showcase/toggle.tsx +36 -27
- package/src/dev/showcase/tooltip.tsx +154 -119
- package/src/lib/utils.test.ts +1 -0
- package/src/lib/utils.ts +1 -1
- package/src/styles/gladvn.css +1 -1
|
@@ -7,9 +7,10 @@
|
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
9
|
|
|
10
|
-
import { Avatar as AvatarPrimitive } from "@base-ui/react/avatar";
|
|
11
10
|
import * as React from "react";
|
|
12
11
|
|
|
12
|
+
import { Avatar as AvatarPrimitive } from "@base-ui/react/avatar";
|
|
13
|
+
|
|
13
14
|
import { type Size } from "../../lib/types";
|
|
14
15
|
import { cn } from "../../lib/utils";
|
|
15
16
|
|
|
@@ -5,9 +5,11 @@
|
|
|
5
5
|
* - Form Control Parity
|
|
6
6
|
* - CSS Delegated Logic
|
|
7
7
|
*/
|
|
8
|
+
import * as React from "react";
|
|
9
|
+
|
|
8
10
|
import { mergeProps } from "@base-ui/react/merge-props";
|
|
9
11
|
import { useRender } from "@base-ui/react/use-render";
|
|
10
|
-
import {
|
|
12
|
+
import { type VariantProps, cva } from "class-variance-authority";
|
|
11
13
|
|
|
12
14
|
import { cn } from "../../lib/utils";
|
|
13
15
|
|
|
@@ -169,8 +171,6 @@ const badgeVariants = cva(
|
|
|
169
171
|
},
|
|
170
172
|
);
|
|
171
173
|
|
|
172
|
-
import * as React from "react";
|
|
173
|
-
|
|
174
174
|
/**
|
|
175
175
|
* @description Displays a badge or a component that looks like a badge.
|
|
176
176
|
* @example
|
|
@@ -5,12 +5,13 @@
|
|
|
5
5
|
* - Form Control Parity
|
|
6
6
|
* - CSS Delegated Logic
|
|
7
7
|
*/
|
|
8
|
+
import * as React from "react";
|
|
9
|
+
|
|
8
10
|
import { mergeProps } from "@base-ui/react/merge-props";
|
|
9
11
|
import { useRender } from "@base-ui/react/use-render";
|
|
10
|
-
import
|
|
12
|
+
import { ChevronRightIcon, MoreHorizontalIcon } from "lucide-react";
|
|
11
13
|
|
|
12
14
|
import { cn } from "../../lib/utils";
|
|
13
|
-
import { ChevronRightIcon, MoreHorizontalIcon } from "lucide-react";
|
|
14
15
|
|
|
15
16
|
/**
|
|
16
17
|
* @description Displays the path to the current resource using a hierarchy of links.
|
|
@@ -5,10 +5,12 @@
|
|
|
5
5
|
* - Form Control Parity
|
|
6
6
|
* - CSS Delegated Logic
|
|
7
7
|
*/
|
|
8
|
+
import * as React from "react";
|
|
9
|
+
|
|
8
10
|
import { Button as ButtonPrimitive } from "@base-ui/react/button";
|
|
9
11
|
import { mergeProps } from "@base-ui/react/merge-props";
|
|
10
12
|
import { useRender } from "@base-ui/react/use-render";
|
|
11
|
-
import {
|
|
13
|
+
import { type VariantProps, cva } from "class-variance-authority";
|
|
12
14
|
|
|
13
15
|
import { cn } from "../../lib/utils";
|
|
14
16
|
|
|
@@ -291,8 +293,6 @@ const buttonVariants = cva(
|
|
|
291
293
|
},
|
|
292
294
|
);
|
|
293
295
|
|
|
294
|
-
import * as React from "react";
|
|
295
|
-
|
|
296
296
|
/**
|
|
297
297
|
* @description Displays a button or a component that looks like a button.
|
|
298
298
|
* @example
|
|
@@ -7,14 +7,19 @@
|
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
9
|
|
|
10
|
-
import { type Size } from "../../lib/types";
|
|
11
|
-
import { cva, type VariantProps } from "class-variance-authority";
|
|
12
10
|
import * as React from "react";
|
|
11
|
+
|
|
12
|
+
import { type VariantProps, cva } from "class-variance-authority";
|
|
13
|
+
import {
|
|
14
|
+
ChevronDownIcon,
|
|
15
|
+
ChevronLeftIcon,
|
|
16
|
+
ChevronRightIcon,
|
|
17
|
+
} from "lucide-react";
|
|
13
18
|
import {
|
|
14
|
-
DayPicker,
|
|
15
|
-
getDefaultClassNames,
|
|
16
19
|
type DayButton,
|
|
20
|
+
DayPicker,
|
|
17
21
|
type Locale,
|
|
22
|
+
getDefaultClassNames,
|
|
18
23
|
} from "react-day-picker";
|
|
19
24
|
|
|
20
25
|
import { buttonVariants } from "../../components/micro/button";
|
|
@@ -24,12 +29,8 @@ import {
|
|
|
24
29
|
SelectItem,
|
|
25
30
|
SelectTrigger,
|
|
26
31
|
} from "../../components/micro/select";
|
|
32
|
+
import { type Size } from "../../lib/types";
|
|
27
33
|
import { cn } from "../../lib/utils";
|
|
28
|
-
import {
|
|
29
|
-
ChevronDownIcon,
|
|
30
|
-
ChevronLeftIcon,
|
|
31
|
-
ChevronRightIcon,
|
|
32
|
-
} from "lucide-react";
|
|
33
34
|
|
|
34
35
|
function getDropdownLabel(
|
|
35
36
|
options: Array<{ value: number | string; label: string }> | undefined,
|
|
@@ -7,13 +7,14 @@
|
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
9
|
|
|
10
|
+
import * as React from "react";
|
|
11
|
+
|
|
10
12
|
import useEmblaCarousel, {
|
|
11
13
|
type UseEmblaCarouselType,
|
|
12
14
|
} from "embla-carousel-react";
|
|
13
|
-
import
|
|
15
|
+
import { ChevronLeftIcon, ChevronRightIcon } from "lucide-react";
|
|
14
16
|
|
|
15
17
|
import { cn } from "../../lib/utils";
|
|
16
|
-
import { ChevronLeftIcon, ChevronRightIcon } from "lucide-react";
|
|
17
18
|
|
|
18
19
|
type CarouselApi = UseEmblaCarouselType[1];
|
|
19
20
|
type UseCarouselParameters = Parameters<typeof useEmblaCarousel>;
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
9
|
|
|
10
|
-
import { Checkbox as CheckboxPrimitive } from "@base-ui/react/checkbox";
|
|
11
10
|
import * as React from "react";
|
|
12
11
|
|
|
13
|
-
import {
|
|
12
|
+
import { Checkbox as CheckboxPrimitive } from "@base-ui/react/checkbox";
|
|
13
|
+
import { type VariantProps, cva } from "class-variance-authority";
|
|
14
14
|
|
|
15
15
|
import { type Size } from "../../lib/types";
|
|
16
16
|
import { cn } from "../../lib/utils";
|
|
@@ -7,10 +7,12 @@
|
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
9
|
|
|
10
|
-
import { cn } from "../../lib/utils";
|
|
11
|
-
import { Collapsible as CollapsiblePrimitive } from "@base-ui/react/collapsible";
|
|
12
10
|
import * as React from "react";
|
|
13
11
|
|
|
12
|
+
import { Collapsible as CollapsiblePrimitive } from "@base-ui/react/collapsible";
|
|
13
|
+
|
|
14
|
+
import { cn } from "../../lib/utils";
|
|
15
|
+
|
|
14
16
|
/**
|
|
15
17
|
* @description An interactive component which expands/collapses a panel.
|
|
16
18
|
* @requires CollapsibleTrigger, CollapsibleContent
|
|
@@ -14,13 +14,14 @@
|
|
|
14
14
|
*/
|
|
15
15
|
"use client";
|
|
16
16
|
|
|
17
|
-
import { Combobox as ComboboxPrimitive } from "@base-ui/react";
|
|
18
17
|
import * as React from "react";
|
|
19
18
|
|
|
19
|
+
import { Combobox as ComboboxPrimitive } from "@base-ui/react";
|
|
20
|
+
import { type VariantProps, cva } from "class-variance-authority";
|
|
21
|
+
import { CheckIcon, ChevronDownIcon, XIcon } from "lucide-react";
|
|
22
|
+
|
|
20
23
|
import { InputGroupButton } from "../../components/micro/input-group";
|
|
21
|
-
import { ThemeWrapper } from "../../components/micro/theme-provider";
|
|
22
24
|
import { cn } from "../../lib/utils";
|
|
23
|
-
import { CheckIcon, ChevronDownIcon, XIcon } from "lucide-react";
|
|
24
25
|
|
|
25
26
|
const ComboboxContext = React.createContext<{
|
|
26
27
|
anchor: Element | null;
|
|
@@ -78,6 +79,12 @@ function ComboboxInput({ className, ...props }: ComboboxPrimitive.Input.Props) {
|
|
|
78
79
|
data-slot="combobox-input"
|
|
79
80
|
className={cn(
|
|
80
81
|
"flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
|
|
82
|
+
// Clear standalone styles when inside InputGroup
|
|
83
|
+
"group-data-[slot=input-group]/input-group:border-0",
|
|
84
|
+
"group-data-[slot=input-group]/input-group:shadow-none",
|
|
85
|
+
"group-data-[slot=input-group]/input-group:h-auto",
|
|
86
|
+
"group-data-[slot=input-group]/input-group:rounded-none",
|
|
87
|
+
"group-data-[slot=input-group]/input-group:focus-visible:ring-0",
|
|
81
88
|
className,
|
|
82
89
|
)}
|
|
83
90
|
{...props}
|
|
@@ -92,30 +99,43 @@ const ComboboxContent = React.forwardRef<
|
|
|
92
99
|
ComboboxPrimitive.Positioner.Props,
|
|
93
100
|
"side" | "align" | "sideOffset" | "alignOffset" | "anchor"
|
|
94
101
|
>
|
|
95
|
-
>(
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
side=
|
|
100
|
-
sideOffset=
|
|
101
|
-
align=
|
|
102
|
-
alignOffset=
|
|
103
|
-
anchor
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
{
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
102
|
+
>(
|
|
103
|
+
(
|
|
104
|
+
{
|
|
105
|
+
className,
|
|
106
|
+
side = "bottom",
|
|
107
|
+
sideOffset = 4,
|
|
108
|
+
align = "start",
|
|
109
|
+
alignOffset = 0,
|
|
110
|
+
anchor,
|
|
111
|
+
...props
|
|
112
|
+
},
|
|
113
|
+
ref,
|
|
114
|
+
) => {
|
|
115
|
+
const { anchor: contextAnchor } = React.useContext(ComboboxContext);
|
|
116
|
+
return (
|
|
117
|
+
<ComboboxPrimitive.Positioner
|
|
118
|
+
side={side}
|
|
119
|
+
sideOffset={sideOffset}
|
|
120
|
+
align={align}
|
|
121
|
+
alignOffset={alignOffset}
|
|
122
|
+
anchor={anchor || contextAnchor}
|
|
123
|
+
className="isolate z-50"
|
|
124
|
+
>
|
|
125
|
+
<ComboboxPrimitive.Popup
|
|
126
|
+
ref={ref}
|
|
127
|
+
data-slot="combobox-content"
|
|
128
|
+
data-chips={!!anchor}
|
|
129
|
+
className={cn(
|
|
130
|
+
"group/combobox-content relative max-h-(--available-height) min-w-(--anchor-width) max-w-(--available-width) origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 p-1 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 [&_[data-slot=input-group]]:mb-1 [&_[data-slot=input-group]]:w-full [&_[data-slot=input-group]]:border-input/30 [&_[data-slot=input-group]]:bg-input/30 [&_[data-slot=input-group]]:shadow-none data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
|
|
131
|
+
className,
|
|
132
|
+
)}
|
|
133
|
+
{...props}
|
|
134
|
+
/>
|
|
135
|
+
</ComboboxPrimitive.Positioner>
|
|
136
|
+
);
|
|
137
|
+
},
|
|
138
|
+
);
|
|
119
139
|
ComboboxContent.displayName = "ComboboxContent";
|
|
120
140
|
|
|
121
141
|
function ComboboxList({ className, ...props }: ComboboxPrimitive.List.Props) {
|
|
@@ -214,8 +234,6 @@ function ComboboxSeparator({
|
|
|
214
234
|
|
|
215
235
|
const ComboboxPortal = ComboboxPrimitive.Portal;
|
|
216
236
|
|
|
217
|
-
import { cva, type VariantProps } from "class-variance-authority";
|
|
218
|
-
|
|
219
237
|
const comboboxChipsVariants = cva(
|
|
220
238
|
"group/combobox-chips flex flex-wrap items-center gap-1 rounded-lg border border-input bg-transparent bg-clip-padding transition-colors focus-within:border-ring focus-within:ring-3 focus-within:ring-ring/50 has-aria-invalid:border-destructive has-aria-invalid:focus-within:ring-3 has-aria-invalid:focus-within:ring-destructive/20 has-[[data-slot=combobox-chip]]:px-1 dark:bg-input/30 dark:has-aria-invalid:border-destructive/50 dark:has-aria-invalid:focus-within:ring-destructive/40 has-disabled:opacity-50 has-disabled:cursor-not-allowed has-disabled:pointer-events-none",
|
|
221
239
|
{
|
|
@@ -7,14 +7,18 @@
|
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
9
|
|
|
10
|
-
import { Command as CommandPrimitive } from "cmdk";
|
|
11
10
|
import * as React from "react";
|
|
12
|
-
import { cva, type VariantProps } from "class-variance-authority";
|
|
13
11
|
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
12
|
+
import { cva } from "class-variance-authority";
|
|
13
|
+
import { Command as CommandPrimitive } from "cmdk";
|
|
16
14
|
import { SearchIcon } from "lucide-react";
|
|
15
|
+
|
|
16
|
+
import {
|
|
17
|
+
InputGroup,
|
|
18
|
+
InputGroupAddon,
|
|
19
|
+
} from "../../components/micro/input-group";
|
|
17
20
|
import { type Size } from "../../lib/types";
|
|
21
|
+
import { cn } from "../../lib/utils";
|
|
18
22
|
|
|
19
23
|
const CommandContext = React.createContext<{ size: Size }>({ size: "md" });
|
|
20
24
|
|
|
@@ -38,7 +42,6 @@ const Command = React.forwardRef<
|
|
|
38
42
|
));
|
|
39
43
|
Command.displayName = "Command";
|
|
40
44
|
|
|
41
|
-
|
|
42
45
|
const commandInputVariants = cva(
|
|
43
46
|
"w-full outline-hidden disabled:cursor-not-allowed disabled:opacity-50",
|
|
44
47
|
{
|
|
@@ -52,7 +55,7 @@ const commandInputVariants = cva(
|
|
|
52
55
|
defaultVariants: {
|
|
53
56
|
size: "md",
|
|
54
57
|
},
|
|
55
|
-
}
|
|
58
|
+
},
|
|
56
59
|
);
|
|
57
60
|
|
|
58
61
|
const CommandInput = React.forwardRef<
|
|
@@ -61,21 +64,21 @@ const CommandInput = React.forwardRef<
|
|
|
61
64
|
>(({ className, ...props }, ref) => {
|
|
62
65
|
const { size } = React.useContext(CommandContext);
|
|
63
66
|
return (
|
|
64
|
-
<div
|
|
65
|
-
data-slot="command-input-wrapper"
|
|
67
|
+
<div
|
|
68
|
+
data-slot="command-input-wrapper"
|
|
66
69
|
className={cn(
|
|
67
70
|
"pb-0",
|
|
68
71
|
size === "sm" && "p-1",
|
|
69
72
|
size === "md" && "p-2",
|
|
70
|
-
size === "lg" && "p-3"
|
|
73
|
+
size === "lg" && "p-3",
|
|
71
74
|
)}
|
|
72
75
|
>
|
|
73
|
-
<InputGroup
|
|
76
|
+
<InputGroup
|
|
74
77
|
className={cn(
|
|
75
78
|
"rounded-lg border-input/30 bg-input/30 shadow-none",
|
|
76
79
|
size === "sm" && "h-8",
|
|
77
80
|
size === "md" && "h-10",
|
|
78
|
-
size === "lg" && "h-11"
|
|
81
|
+
size === "lg" && "h-11",
|
|
79
82
|
)}
|
|
80
83
|
>
|
|
81
84
|
<CommandPrimitive.Input
|
|
@@ -84,8 +87,12 @@ const CommandInput = React.forwardRef<
|
|
|
84
87
|
className={cn(commandInputVariants({ size }), className)}
|
|
85
88
|
{...props}
|
|
86
89
|
/>
|
|
87
|
-
<InputGroupAddon
|
|
88
|
-
|
|
90
|
+
<InputGroupAddon
|
|
91
|
+
className={cn("shrink-0", size === "lg" ? "pl-3" : "pl-2")}
|
|
92
|
+
>
|
|
93
|
+
<SearchIcon
|
|
94
|
+
className={cn("opacity-50", size === "lg" ? "size-5" : "size-4")}
|
|
95
|
+
/>
|
|
89
96
|
</InputGroupAddon>
|
|
90
97
|
</InputGroup>
|
|
91
98
|
</div>
|
|
@@ -123,7 +130,7 @@ const CommandEmpty = React.forwardRef<
|
|
|
123
130
|
size === "sm" && "py-4 text-xs",
|
|
124
131
|
size === "md" && "py-6 text-sm",
|
|
125
132
|
size === "lg" && "py-8 text-base",
|
|
126
|
-
className
|
|
133
|
+
className,
|
|
127
134
|
)}
|
|
128
135
|
{...props}
|
|
129
136
|
/>
|
|
@@ -144,7 +151,7 @@ const commandGroupVariants = cva(
|
|
|
144
151
|
defaultVariants: {
|
|
145
152
|
size: "md",
|
|
146
153
|
},
|
|
147
|
-
}
|
|
154
|
+
},
|
|
148
155
|
);
|
|
149
156
|
|
|
150
157
|
const CommandGroup = React.forwardRef<
|
|
@@ -189,7 +196,7 @@ const commandItemVariants = cva(
|
|
|
189
196
|
defaultVariants: {
|
|
190
197
|
size: "md",
|
|
191
198
|
},
|
|
192
|
-
}
|
|
199
|
+
},
|
|
193
200
|
);
|
|
194
201
|
|
|
195
202
|
const CommandItem = React.forwardRef<
|
|
@@ -7,12 +7,13 @@
|
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
9
|
|
|
10
|
-
import { ContextMenu as ContextMenuPrimitive } from "@base-ui/react/context-menu";
|
|
11
10
|
import * as React from "react";
|
|
12
11
|
|
|
13
|
-
import {
|
|
12
|
+
import { ContextMenu as ContextMenuPrimitive } from "@base-ui/react/context-menu";
|
|
14
13
|
import { CheckIcon, ChevronRightIcon, CircleIcon } from "lucide-react";
|
|
15
14
|
|
|
15
|
+
import { cn } from "../../lib/utils";
|
|
16
|
+
|
|
16
17
|
type ContextMenuVariant = "destructive";
|
|
17
18
|
|
|
18
19
|
/**
|
|
@@ -7,9 +7,10 @@
|
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
9
|
|
|
10
|
-
import { Dialog as DialogPrimitive } from "@base-ui/react/dialog";
|
|
11
10
|
import * as React from "react";
|
|
12
11
|
|
|
12
|
+
import { Dialog as DialogPrimitive } from "@base-ui/react/dialog";
|
|
13
|
+
|
|
13
14
|
import { cn } from "../../lib/utils";
|
|
14
15
|
|
|
15
16
|
function Dialog({ ...props }: DialogPrimitive.Root.Props) {
|
|
@@ -8,9 +8,10 @@
|
|
|
8
8
|
"use client";
|
|
9
9
|
|
|
10
10
|
import * as React from "react";
|
|
11
|
-
|
|
11
|
+
|
|
12
12
|
// Fix TS2883: The inferred type cannot be named without a reference to @radix-ui/react-dialog
|
|
13
13
|
import type {} from "@radix-ui/react-dialog";
|
|
14
|
+
import { Drawer as DrawerPrimitive } from "vaul";
|
|
14
15
|
|
|
15
16
|
import { cn } from "../../lib/utils";
|
|
16
17
|
|
|
@@ -7,12 +7,13 @@
|
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
9
|
|
|
10
|
-
import { Menu as MenuPrimitive } from "@base-ui/react/menu";
|
|
11
10
|
import * as React from "react";
|
|
12
11
|
|
|
13
|
-
import {
|
|
12
|
+
import { Menu as MenuPrimitive } from "@base-ui/react/menu";
|
|
14
13
|
import { CheckIcon, ChevronRightIcon, CircleIcon } from "lucide-react";
|
|
15
14
|
|
|
15
|
+
import { cn } from "../../lib/utils";
|
|
16
|
+
|
|
16
17
|
export type DropdownMenuVariant = "destructive";
|
|
17
18
|
|
|
18
19
|
function DropdownMenu({ ...props }: MenuPrimitive.Root.Props) {
|
|
@@ -5,9 +5,10 @@
|
|
|
5
5
|
* - Form Control Parity
|
|
6
6
|
* - CSS Delegated Logic
|
|
7
7
|
*/
|
|
8
|
-
import { cva, type VariantProps } from "class-variance-authority";
|
|
9
8
|
import * as React from "react";
|
|
10
9
|
|
|
10
|
+
import { type VariantProps, cva } from "class-variance-authority";
|
|
11
|
+
|
|
11
12
|
import { cn } from "../../lib/utils";
|
|
12
13
|
|
|
13
14
|
/**
|
|
@@ -7,10 +7,11 @@
|
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
9
|
|
|
10
|
-
import { cva, type VariantProps } from "class-variance-authority";
|
|
11
|
-
import { AlertCircleIcon } from "lucide-react";
|
|
12
10
|
import * as React from "react";
|
|
13
11
|
|
|
12
|
+
import { type VariantProps, cva } from "class-variance-authority";
|
|
13
|
+
import { AlertCircleIcon } from "lucide-react";
|
|
14
|
+
|
|
14
15
|
import { Label } from "../../components/micro/label";
|
|
15
16
|
import { Separator } from "../../components/micro/separator";
|
|
16
17
|
import { cn } from "../../lib/utils";
|
|
@@ -112,7 +113,7 @@ const fieldVariants = cva("group/field flex min-w-fit", {
|
|
|
112
113
|
const Field = React.forwardRef<
|
|
113
114
|
HTMLDivElement,
|
|
114
115
|
React.ComponentProps<"div"> &
|
|
115
|
-
|
|
116
|
+
VariantProps<typeof fieldVariants> & { error?: boolean | string }
|
|
116
117
|
>(
|
|
117
118
|
(
|
|
118
119
|
{ className, orientation = "vertical", size = "md", error, ...props },
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"use client";
|
|
9
9
|
|
|
10
10
|
import * as React from "react";
|
|
11
|
+
|
|
11
12
|
import { PreviewCard as PreviewCardPrimitive } from "@base-ui/react/preview-card";
|
|
12
13
|
|
|
13
14
|
import { cn } from "../../lib/utils";
|
|
@@ -60,27 +61,27 @@ const HoverCardContent = React.forwardRef<
|
|
|
60
61
|
) => {
|
|
61
62
|
return (
|
|
62
63
|
<PreviewCardPrimitive.Positioner
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
64
|
+
align={align}
|
|
65
|
+
alignOffset={alignOffset}
|
|
66
|
+
side={side}
|
|
67
|
+
sideOffset={sideOffset}
|
|
68
|
+
className="isolate"
|
|
69
|
+
>
|
|
70
|
+
<PreviewCardPrimitive.Popup
|
|
71
|
+
ref={ref}
|
|
72
|
+
data-slot="hover-card-content"
|
|
73
|
+
className={cn(
|
|
74
|
+
"z-50 w-64 origin-(--transform-origin) rounded-lg bg-popover p-2.5 text-sm text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-hidden duration-100",
|
|
75
|
+
"data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
76
|
+
"data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 motion-reduce:animate-none motion-reduce:transition-none",
|
|
77
|
+
className,
|
|
78
|
+
)}
|
|
79
|
+
{...props}
|
|
80
|
+
/>
|
|
81
|
+
</PreviewCardPrimitive.Positioner>
|
|
81
82
|
);
|
|
82
83
|
},
|
|
83
84
|
);
|
|
84
85
|
HoverCardContent.displayName = "HoverCardContent";
|
|
85
86
|
|
|
86
|
-
export { HoverCard, HoverCardContent,
|
|
87
|
+
export { HoverCard, HoverCardContent, HoverCardPortal, HoverCardTrigger };
|
|
@@ -7,9 +7,10 @@
|
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
9
|
|
|
10
|
-
import { cva, type VariantProps } from "class-variance-authority";
|
|
11
10
|
import * as React from "react";
|
|
12
11
|
|
|
12
|
+
import { type VariantProps, cva } from "class-variance-authority";
|
|
13
|
+
|
|
13
14
|
import { cn } from "../../lib/utils";
|
|
14
15
|
|
|
15
16
|
/* ── InputGroup ─────────────────────────────────────────────────
|
|
@@ -224,9 +225,9 @@ const InputGroupInput = React.forwardRef<
|
|
|
224
225
|
data-slot="input-group-control"
|
|
225
226
|
className={cn(
|
|
226
227
|
"min-w-0 flex-1 bg-transparent outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed",
|
|
227
|
-
"group-data-[size=sm]/input-group:
|
|
228
|
-
"group-data-[size=md]/input-group:
|
|
229
|
-
"group-data-[size=lg]/input-group:
|
|
228
|
+
"group-data-[size=sm]/input-group:px-2 group-data-[size=sm]/input-group:py-0.5 group-data-[size=sm]/input-group:text-xs",
|
|
229
|
+
"group-data-[size=md]/input-group:px-2.5 group-data-[size=md]/input-group:py-1 group-data-[size=md]/input-group:text-sm",
|
|
230
|
+
"group-data-[size=lg]/input-group:px-3 group-data-[size=lg]/input-group:py-1.5 group-data-[size=lg]/input-group:text-sm",
|
|
230
231
|
className,
|
|
231
232
|
)}
|
|
232
233
|
{...props}
|
|
@@ -7,10 +7,11 @@
|
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
9
|
|
|
10
|
-
import { cva, type VariantProps } from "class-variance-authority";
|
|
11
|
-
import { OTPInput, OTPInputContext } from "input-otp";
|
|
12
10
|
import * as React from "react";
|
|
13
11
|
|
|
12
|
+
import { type VariantProps, cva } from "class-variance-authority";
|
|
13
|
+
import { OTPInput, OTPInputContext } from "input-otp";
|
|
14
|
+
|
|
14
15
|
import { cn } from "../../lib/utils";
|
|
15
16
|
|
|
16
17
|
const inputOTPVariants = cva(
|
|
@@ -5,10 +5,11 @@
|
|
|
5
5
|
* - Form Control Parity
|
|
6
6
|
* - CSS Delegated Logic
|
|
7
7
|
*/
|
|
8
|
-
import { Input as InputPrimitive } from "@base-ui/react/input";
|
|
9
|
-
import { cva, type VariantProps } from "class-variance-authority";
|
|
10
8
|
import * as React from "react";
|
|
11
9
|
|
|
10
|
+
import { Input as InputPrimitive } from "@base-ui/react/input";
|
|
11
|
+
import { type VariantProps, cva } from "class-variance-authority";
|
|
12
|
+
|
|
12
13
|
import { type Size } from "../../lib/types";
|
|
13
14
|
import { cn } from "../../lib/utils";
|
|
14
15
|
|
|
@@ -7,9 +7,10 @@
|
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
9
|
|
|
10
|
-
import { cva, type VariantProps } from "class-variance-authority";
|
|
11
10
|
import * as React from "react";
|
|
12
11
|
|
|
12
|
+
import { type VariantProps, cva } from "class-variance-authority";
|
|
13
|
+
|
|
13
14
|
import { cn } from "../../lib/utils";
|
|
14
15
|
|
|
15
16
|
const labelVariants = cva(
|
|
@@ -8,8 +8,10 @@
|
|
|
8
8
|
"use client";
|
|
9
9
|
|
|
10
10
|
import * as React from "react";
|
|
11
|
+
|
|
11
12
|
import { Menu as MenuPrimitive } from "@base-ui/react/menu";
|
|
12
13
|
import { Menubar as MenubarPrimitive } from "@base-ui/react/menubar";
|
|
14
|
+
import { CheckIcon } from "lucide-react";
|
|
13
15
|
|
|
14
16
|
import {
|
|
15
17
|
DropdownMenu,
|
|
@@ -27,7 +29,6 @@ import {
|
|
|
27
29
|
DropdownMenuTrigger,
|
|
28
30
|
} from "../../components/micro/dropdown-menu";
|
|
29
31
|
import { cn } from "../../lib/utils";
|
|
30
|
-
import { CheckIcon } from "lucide-react";
|
|
31
32
|
|
|
32
33
|
/**
|
|
33
34
|
* @description A visually persistent menu common in desktop applications.
|