-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add toggle for "Use Entity Field" vs "Use Constant Value" (#70)
toggle only available on valid types still. "type.string" and "type.phone" now using radio https://github.com/user-attachments/assets/f88fe607-daa6-41f6-8536-3a7abcfd0851 --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
b690248
commit a5bfe5e
Showing
8 changed files
with
310 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8684,18 +8684,23 @@ The following npm packages may be included in this product: | |
- @radix-ui/[email protected] | ||
- @radix-ui/[email protected] | ||
- @radix-ui/[email protected] | ||
- @radix-ui/[email protected] | ||
- @radix-ui/[email protected] | ||
- @radix-ui/[email protected].0 | ||
- @radix-ui/[email protected].1 | ||
- @radix-ui/[email protected] | ||
- @radix-ui/[email protected] | ||
- @radix-ui/[email protected] | ||
- @radix-ui/[email protected] | ||
- @radix-ui/[email protected] | ||
- @radix-ui/[email protected] | ||
- @radix-ui/[email protected] | ||
- @radix-ui/[email protected] | ||
- @radix-ui/[email protected] | ||
- @radix-ui/[email protected] | ||
- @radix-ui/[email protected] | ||
- @radix-ui/[email protected] | ||
- @radix-ui/[email protected] | ||
- @radix-ui/[email protected] | ||
- @radix-ui/[email protected] | ||
- @radix-ui/[email protected] | ||
- @radix-ui/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import * as React from "react"; | ||
import * as LabelPrimitive from "@radix-ui/react-label"; | ||
import { cva, type VariantProps } from "class-variance-authority"; | ||
import { cn } from "../../utils/cn.ts"; | ||
|
||
const labelVariants = cva( | ||
"ve-text-sm ve-font-medium ve-leading-none peer-disabled:ve-cursor-not-allowed peer-disabled:ve-opacity-70" | ||
); | ||
|
||
const Label = React.forwardRef< | ||
React.ElementRef<typeof LabelPrimitive.Root>, | ||
React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> & | ||
VariantProps<typeof labelVariants> | ||
>(({ className, ...props }, ref) => ( | ||
<LabelPrimitive.Root | ||
ref={ref} | ||
className={cn(labelVariants(), className)} | ||
{...props} | ||
/> | ||
)); | ||
Label.displayName = LabelPrimitive.Root.displayName; | ||
|
||
export { Label }; |
Oops, something went wrong.