7onic 0.1.6 → 0.1.8
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/index.js +24 -17
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6000,7 +6000,7 @@ const DrawerContent = React.forwardRef<
|
|
|
6000
6000
|
<DialogPrimitive.Content
|
|
6001
6001
|
ref={ref}
|
|
6002
6002
|
className={cn(
|
|
6003
|
-
'fixed z-modal flex flex-col bg-background shadow-xl',
|
|
6003
|
+
'fixed z-modal flex flex-col bg-background text-foreground shadow-xl',
|
|
6004
6004
|
'focus:outline-none',
|
|
6005
6005
|
SIDE_POSITION[side],
|
|
6006
6006
|
isHorizontal ? 'max-w-full h-full' : 'max-h-full w-full',
|
|
@@ -6253,7 +6253,7 @@ const DropdownMenuContent = React.forwardRef<
|
|
|
6253
6253
|
onCloseAutoFocus?.(e)
|
|
6254
6254
|
}}
|
|
6255
6255
|
className={cn(
|
|
6256
|
-
'z-dropdown min-w-[8rem] overflow-hidden border border-border bg-background shadow-lg',
|
|
6256
|
+
'z-dropdown min-w-[8rem] overflow-hidden border border-border bg-background text-foreground shadow-lg',
|
|
6257
6257
|
flush ? 'py-1' : 'p-1',
|
|
6258
6258
|
contentRadiusMap[radius],
|
|
6259
6259
|
className
|
|
@@ -6445,7 +6445,7 @@ const DropdownMenuSubContent = React.forwardRef<
|
|
|
6445
6445
|
<DropdownMenuPrimitive.SubContent
|
|
6446
6446
|
ref={ref}
|
|
6447
6447
|
className={cn(
|
|
6448
|
-
'z-dropdown min-w-[8rem] overflow-hidden border border-border bg-background shadow-lg',
|
|
6448
|
+
'z-dropdown min-w-[8rem] overflow-hidden border border-border bg-background text-foreground shadow-lg',
|
|
6449
6449
|
flush ? 'py-1' : 'p-1',
|
|
6450
6450
|
contentRadiusMap[radius],
|
|
6451
6451
|
className
|
|
@@ -6821,7 +6821,7 @@ import { useFieldContext } from './field'
|
|
|
6821
6821
|
const inputVariants = cva(
|
|
6822
6822
|
[
|
|
6823
6823
|
'flex w-full bg-background text-foreground placeholder:text-foreground/30',
|
|
6824
|
-
'border transition-colors duration-micro',
|
|
6824
|
+
'border transition-colors duration-micro outline-transparent',
|
|
6825
6825
|
'focus:[outline:2px_solid_transparent]',
|
|
6826
6826
|
'disabled:cursor-not-allowed disabled:opacity-50 disabled:bg-background-muted',
|
|
6827
6827
|
'file:border-0 file:bg-transparent file:text-sm file:font-semibold',
|
|
@@ -7490,7 +7490,7 @@ const ModalContent = React.forwardRef<
|
|
|
7490
7490
|
<div className="flex min-h-full items-center justify-center p-4">
|
|
7491
7491
|
<div
|
|
7492
7492
|
className={cn(
|
|
7493
|
-
'relative w-full rounded-xl bg-background shadow-xl overflow-hidden',
|
|
7493
|
+
'relative w-full rounded-xl bg-background text-foreground shadow-xl overflow-hidden',
|
|
7494
7494
|
modalContentVariants({ size }),
|
|
7495
7495
|
className,
|
|
7496
7496
|
)}
|
|
@@ -7516,7 +7516,7 @@ const ModalContent = React.forwardRef<
|
|
|
7516
7516
|
<DialogPrimitive.Content
|
|
7517
7517
|
ref={ref}
|
|
7518
7518
|
className={cn(
|
|
7519
|
-
'relative w-full rounded-xl bg-background shadow-xl overflow-hidden',
|
|
7519
|
+
'relative w-full rounded-xl bg-background text-foreground shadow-xl overflow-hidden',
|
|
7520
7520
|
'focus:outline-none',
|
|
7521
7521
|
'data-[state=open]:animate-modal-content-enter data-[state=closed]:animate-modal-content-exit',
|
|
7522
7522
|
modalContentVariants({ size }),
|
|
@@ -7668,7 +7668,7 @@ const AlertModalContent = React.forwardRef<
|
|
|
7668
7668
|
<AlertDialogPrimitive.Content
|
|
7669
7669
|
ref={ref}
|
|
7670
7670
|
className={cn(
|
|
7671
|
-
'relative w-full rounded-xl bg-background shadow-xl',
|
|
7671
|
+
'relative w-full rounded-xl bg-background text-foreground shadow-xl',
|
|
7672
7672
|
'focus:outline-none',
|
|
7673
7673
|
'data-[state=open]:animate-modal-content-enter data-[state=closed]:animate-modal-content-exit',
|
|
7674
7674
|
alertModalContentVariants({ size }),
|
|
@@ -8857,9 +8857,8 @@ const PaginationRoot = React.forwardRef<HTMLElement, PaginationProps>(
|
|
|
8857
8857
|
color = 'default',
|
|
8858
8858
|
radius = 'md',
|
|
8859
8859
|
disabled = false,
|
|
8860
|
-
|
|
8861
|
-
|
|
8862
|
-
withEdges: _withEdges = false,
|
|
8860
|
+
withControls = true,
|
|
8861
|
+
withEdges = false,
|
|
8863
8862
|
loop = false,
|
|
8864
8863
|
children,
|
|
8865
8864
|
...props
|
|
@@ -8902,7 +8901,15 @@ const PaginationRoot = React.forwardRef<HTMLElement, PaginationProps>(
|
|
|
8902
8901
|
className={cn('', className)}
|
|
8903
8902
|
{...props}
|
|
8904
8903
|
>
|
|
8905
|
-
{children
|
|
8904
|
+
{children ?? (
|
|
8905
|
+
<PaginationContent>
|
|
8906
|
+
{withEdges && <PaginationItem><PaginationFirst /></PaginationItem>}
|
|
8907
|
+
{withControls && <PaginationItem><PaginationPrevious /></PaginationItem>}
|
|
8908
|
+
<PaginationItems />
|
|
8909
|
+
{withControls && <PaginationItem><PaginationNext /></PaginationItem>}
|
|
8910
|
+
{withEdges && <PaginationItem><PaginationLast /></PaginationItem>}
|
|
8911
|
+
</PaginationContent>
|
|
8912
|
+
)}
|
|
8906
8913
|
</nav>
|
|
8907
8914
|
</PaginationContext.Provider>
|
|
8908
8915
|
)
|
|
@@ -9266,8 +9273,8 @@ const popoverContentVariants = cva(
|
|
|
9266
9273
|
{
|
|
9267
9274
|
variants: {
|
|
9268
9275
|
variant: {
|
|
9269
|
-
default: 'bg-background-paper border border-border shadow-lg',
|
|
9270
|
-
elevated: 'bg-background-paper/95 border border-border-subtle shadow-xl backdrop-blur-sm',
|
|
9276
|
+
default: 'bg-background-paper text-foreground border border-border shadow-lg',
|
|
9277
|
+
elevated: 'bg-background-paper/95 text-foreground border border-border-subtle shadow-xl backdrop-blur-sm',
|
|
9271
9278
|
},
|
|
9272
9279
|
size: {
|
|
9273
9280
|
sm: 'text-sm p-3 rounded-lg',
|
|
@@ -10531,7 +10538,7 @@ const SelectTrigger = React.forwardRef<
|
|
|
10531
10538
|
'flex w-full items-center justify-between bg-background text-foreground hover:bg-background-muted',
|
|
10532
10539
|
'border border-border',
|
|
10533
10540
|
triggerRadiusMap[radius],
|
|
10534
|
-
'transition-colors duration-micro',
|
|
10541
|
+
'transition-colors duration-micro outline-transparent',
|
|
10535
10542
|
'focus-visible:shadow-[0_0_0_2px_var(--color-focus-ring)] focus:[outline:2px_solid_transparent]',
|
|
10536
10543
|
'disabled:cursor-not-allowed disabled:opacity-50',
|
|
10537
10544
|
'data-[placeholder]:text-foreground/30',
|
|
@@ -10612,7 +10619,7 @@ const SelectContent = React.forwardRef<
|
|
|
10612
10619
|
onCloseAutoFocus?.(e)
|
|
10613
10620
|
}}
|
|
10614
10621
|
className={cn(
|
|
10615
|
-
'relative z-dropdown min-w-[var(--radix-select-trigger-width)] overflow-hidden border border-border bg-background shadow-lg',
|
|
10622
|
+
'relative z-dropdown min-w-[var(--radix-select-trigger-width)] overflow-hidden border border-border bg-background text-foreground shadow-lg',
|
|
10616
10623
|
flush ? 'py-1' : 'p-1',
|
|
10617
10624
|
contentRadiusMap[contentRadius],
|
|
10618
10625
|
position === 'popper' &&
|
|
@@ -12586,7 +12593,7 @@ import { useFieldContext } from './field'
|
|
|
12586
12593
|
const textareaVariants = cva(
|
|
12587
12594
|
[
|
|
12588
12595
|
'flex w-full bg-background text-foreground placeholder:text-foreground/30',
|
|
12589
|
-
'border transition-colors duration-micro',
|
|
12596
|
+
'border transition-colors duration-micro outline-transparent',
|
|
12590
12597
|
'focus:[outline:2px_solid_transparent]',
|
|
12591
12598
|
'disabled:cursor-not-allowed disabled:opacity-50 disabled:bg-background-muted',
|
|
12592
12599
|
].join(' '),
|
|
@@ -14479,7 +14486,7 @@ function showSetupHints(names) {
|
|
|
14479
14486
|
|
|
14480
14487
|
// cli/src/index.ts
|
|
14481
14488
|
var import_picocolors4 = __toESM(require_picocolors());
|
|
14482
|
-
var VERSION = "0.1.
|
|
14489
|
+
var VERSION = "0.1.8";
|
|
14483
14490
|
var HELP = `
|
|
14484
14491
|
${import_picocolors4.default.bold("7onic")} \u2014 Add 7onic design system components to your project
|
|
14485
14492
|
|