Skip to content

Commit 62c188c

Browse files
committed
main 🧊 add new demo
1 parent 8f0bb5a commit 62c188c

3 files changed

Lines changed: 12 additions & 7 deletions

File tree

‎packages/newdocs/generated/demos/hooks/useActiveElement.demo.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
'use client'
1+
'use client';
22

33
import { useActiveElement } from '@siberiacancode/reactuse';
44
import { AtSignIcon } from 'lucide-react';
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// <reference types="next" />
22
/// <reference types="next/image-types/global" />
3-
import "./.next/types/routes.d.ts";
3+
import "./.next/dev/types/routes.d.ts";
44

55
// NOTE: This file should not be edited
66
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

‎packages/newdocs/styles/global.css‎

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -518,6 +518,16 @@
518518
@apply text-sm font-semibold tracking-tight;
519519
}
520520

521+
.demo-ui input {
522+
@apply border-input h-8 w-full min-w-0 rounded-lg border bg-transparent px-2.5 py-1 text-base transition-colors outline-none;
523+
@apply file:text-foreground file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium;
524+
@apply placeholder:text-muted-foreground;
525+
@apply focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-3;
526+
@apply disabled:bg-input/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50;
527+
@apply aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-invalid:ring-3;
528+
@apply dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 md:text-sm;
529+
}
530+
521531
.demo-ui textarea {
522532
@apply border-input flex min-h-16 w-full rounded-lg border bg-transparent px-2.5 py-2 text-base transition-colors outline-none;
523533
@apply placeholder:text-muted-foreground;
@@ -574,11 +584,6 @@
574584
@apply flex-1 text-sm outline-none;
575585
}
576586

577-
.demo-ui label {
578-
@apply flex items-center gap-2 text-sm leading-none font-medium select-none;
579-
@apply has-[:disabled]:cursor-not-allowed has-[:disabled]:opacity-50;
580-
}
581-
582587
.demo-ui input[type='checkbox'][role='switch'] {
583588
position: relative;
584589
display: inline-block;

0 commit comments

Comments
 (0)