@bookers/ui 0.3.0 → 0.4.0
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.d.ts +1 -1
- package/dist/index.js +46 -33
- package/dist/index.umd.cjs +2 -2
- package/dist/styles.css +1 -1
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -810,7 +810,7 @@ export declare const textareaVariants: (props?: ({
|
|
|
810
810
|
export { toast }
|
|
811
811
|
|
|
812
812
|
export declare const Toaster: {
|
|
813
|
-
({ ...props }: ToasterProps): JSX.Element;
|
|
813
|
+
({ toastOptions, ...props }: ToasterProps): JSX.Element;
|
|
814
814
|
displayName: string;
|
|
815
815
|
};
|
|
816
816
|
|
package/dist/index.js
CHANGED
|
@@ -3418,9 +3418,9 @@ const _g = Ee(
|
|
|
3418
3418
|
variants: {
|
|
3419
3419
|
variant: {
|
|
3420
3420
|
default: "bg-background border-border text-foreground [&>svg]:text-foreground",
|
|
3421
|
-
info: "bg-
|
|
3422
|
-
success: "bg-
|
|
3423
|
-
warning: "bg-
|
|
3421
|
+
info: "bg-info/10 border-info/30 text-foreground [&>svg]:text-info",
|
|
3422
|
+
success: "bg-success/10 border-success/30 text-foreground [&>svg]:text-success",
|
|
3423
|
+
warning: "bg-warning/10 border-warning/30 text-foreground [&>svg]:text-warning",
|
|
3424
3424
|
destructive: "bg-destructive/10 border-destructive/30 text-destructive [&>svg]:text-destructive"
|
|
3425
3425
|
}
|
|
3426
3426
|
},
|
|
@@ -3636,7 +3636,7 @@ const Qg = u.forwardRef(
|
|
|
3636
3636
|
);
|
|
3637
3637
|
Qg.displayName = "Avatar";
|
|
3638
3638
|
const Jg = Ee(
|
|
3639
|
-
"inline-flex items-center rounded-
|
|
3639
|
+
"inline-flex items-center rounded-sm px-2.5 py-0.5 text-xs font-ui font-medium transition-colors",
|
|
3640
3640
|
{
|
|
3641
3641
|
variants: {
|
|
3642
3642
|
variant: {
|
|
@@ -3644,8 +3644,8 @@ const Jg = Ee(
|
|
|
3644
3644
|
secondary: "bg-secondary text-secondary-foreground",
|
|
3645
3645
|
destructive: "bg-destructive text-destructive-foreground",
|
|
3646
3646
|
outline: "border border-border bg-transparent text-foreground",
|
|
3647
|
-
success: "bg-
|
|
3648
|
-
warning: "bg-
|
|
3647
|
+
success: "bg-success/10 text-success",
|
|
3648
|
+
warning: "bg-warning/10 text-foreground"
|
|
3649
3649
|
}
|
|
3650
3650
|
},
|
|
3651
3651
|
defaultVariants: {
|
|
@@ -3667,7 +3667,7 @@ const tv = Ee(
|
|
|
3667
3667
|
[
|
|
3668
3668
|
"relative inline-flex items-center justify-center gap-2",
|
|
3669
3669
|
"cursor-pointer",
|
|
3670
|
-
"whitespace-nowrap rounded-md font-medium",
|
|
3670
|
+
"whitespace-nowrap rounded-md font-ui font-medium",
|
|
3671
3671
|
"ring-offset-background transition-[background-color,color,border-color,scale]",
|
|
3672
3672
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",
|
|
3673
3673
|
"disabled:pointer-events-none disabled:opacity-50",
|
|
@@ -3698,16 +3698,17 @@ const tv = Ee(
|
|
|
3698
3698
|
"focus-visible:ring-ring"
|
|
3699
3699
|
],
|
|
3700
3700
|
link: [
|
|
3701
|
-
"bg-transparent text-
|
|
3702
|
-
"
|
|
3701
|
+
"bg-transparent text-primary underline underline-offset-4",
|
|
3702
|
+
"justify-start",
|
|
3703
|
+
"hover:text-primary/80",
|
|
3703
3704
|
"focus-visible:ring-ring",
|
|
3704
3705
|
"active:scale-100"
|
|
3705
3706
|
]
|
|
3706
3707
|
},
|
|
3707
3708
|
size: {
|
|
3708
3709
|
sm: "h-8 px-3 text-xs",
|
|
3709
|
-
md: "h-10 px-
|
|
3710
|
-
lg: "h-
|
|
3710
|
+
md: "h-10 px-5 text-sm",
|
|
3711
|
+
lg: "h-12 px-6 text-base"
|
|
3711
3712
|
}
|
|
3712
3713
|
},
|
|
3713
3714
|
defaultVariants: {
|
|
@@ -3758,6 +3759,8 @@ const tv = Ee(
|
|
|
3758
3759
|
ref: f,
|
|
3759
3760
|
className: E(
|
|
3760
3761
|
tv({ variant: t, size: n }),
|
|
3762
|
+
// Icon-only: enforce perfect square with no padding (PDF p.48: 48×48)
|
|
3763
|
+
a === "center" && "aspect-square p-0",
|
|
3761
3764
|
c && "active:scale-100",
|
|
3762
3765
|
e
|
|
3763
3766
|
),
|
|
@@ -3776,7 +3779,7 @@ const tv = Ee(
|
|
|
3776
3779
|
gr.displayName = "Button";
|
|
3777
3780
|
const nv = Ee(
|
|
3778
3781
|
[
|
|
3779
|
-
"peer appearance-none rounded-
|
|
3782
|
+
"peer appearance-none rounded-xs border border-input bg-background cursor-pointer",
|
|
3780
3783
|
"checked:bg-primary checked:border-primary",
|
|
3781
3784
|
"indeterminate:bg-primary indeterminate:border-primary",
|
|
3782
3785
|
"transition-[color,border-color,background-color,box-shadow]",
|
|
@@ -7011,7 +7014,7 @@ iw.displayName = "Popover";
|
|
|
7011
7014
|
const cw = Ee(
|
|
7012
7015
|
[
|
|
7013
7016
|
"w-full flex items-center justify-between gap-2",
|
|
7014
|
-
"rounded-
|
|
7017
|
+
"rounded-md border border-border bg-background px-3 py-2 text-sm font-ui text-foreground",
|
|
7015
7018
|
"ring-offset-background",
|
|
7016
7019
|
"transition-[border-color,box-shadow,scale]",
|
|
7017
7020
|
"active:scale-[0.96]",
|
|
@@ -7422,7 +7425,7 @@ const md = u.createContext({
|
|
|
7422
7425
|
}), xw = Ee(
|
|
7423
7426
|
[
|
|
7424
7427
|
"w-full rounded-md border border-input bg-background",
|
|
7425
|
-
"text-foreground placeholder:text-muted-foreground",
|
|
7428
|
+
"font-body text-foreground placeholder:text-muted-foreground",
|
|
7426
7429
|
"transition-[color,border-color,box-shadow]",
|
|
7427
7430
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 ring-offset-background",
|
|
7428
7431
|
"disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",
|
|
@@ -7530,7 +7533,7 @@ const gd = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(
|
|
|
7530
7533
|
gd.displayName = "PaginationRoot";
|
|
7531
7534
|
const Ss = [
|
|
7532
7535
|
"inline-flex items-center justify-center",
|
|
7533
|
-
"size-10 rounded-md text-sm font-medium select-none tabular-nums",
|
|
7536
|
+
"size-10 rounded-md text-sm font-ui font-medium select-none tabular-nums",
|
|
7534
7537
|
"transition-[color,background-color,box-shadow] duration-150",
|
|
7535
7538
|
"active:scale-[0.96]",
|
|
7536
7539
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
@@ -8474,7 +8477,7 @@ var Uw = Nd, Qd = kd, Kw = Dd, qw = Rd, Jd = Td, Xw = Ad, Zw = Wd, eu = $d, tu =
|
|
|
8474
8477
|
const ex = Ee(
|
|
8475
8478
|
[
|
|
8476
8479
|
"w-full flex items-center justify-between gap-2",
|
|
8477
|
-
"rounded-
|
|
8480
|
+
"rounded-md border border-border bg-background px-3 py-2 text-sm font-ui text-foreground",
|
|
8478
8481
|
"ring-offset-background",
|
|
8479
8482
|
"transition-[border-color,box-shadow,scale]",
|
|
8480
8483
|
"active:scale-[0.96]",
|
|
@@ -14002,7 +14005,7 @@ function PS(e) {
|
|
|
14002
14005
|
const OS = Ee(
|
|
14003
14006
|
[
|
|
14004
14007
|
"w-full flex items-center gap-2",
|
|
14005
|
-
"rounded-
|
|
14008
|
+
"rounded-md border border-border bg-background px-3 py-2 text-sm font-ui text-foreground",
|
|
14006
14009
|
"ring-offset-background",
|
|
14007
14010
|
"transition-[border-color,box-shadow,scale]",
|
|
14008
14011
|
"active:scale-[0.96]",
|
|
@@ -14202,7 +14205,7 @@ const em = u.forwardRef(
|
|
|
14202
14205
|
className: E(
|
|
14203
14206
|
"fixed left-1/2 top-1/2 z-50 -translate-x-1/2 -translate-y-1/2",
|
|
14204
14207
|
"w-full max-w-lg rounded-xl bg-background p-6",
|
|
14205
|
-
"ring-1 ring-border/60 shadow-
|
|
14208
|
+
"ring-1 ring-border/60 shadow-lg",
|
|
14206
14209
|
"data-[state=open]:animate-dialog-content-in",
|
|
14207
14210
|
"data-[state=closed]:animate-dialog-content-out",
|
|
14208
14211
|
e
|
|
@@ -14317,7 +14320,7 @@ YS.displayName = "FieldMessage";
|
|
|
14317
14320
|
const VS = Ee(
|
|
14318
14321
|
[
|
|
14319
14322
|
"w-full appearance-none rounded-md border border-input bg-background pr-9",
|
|
14320
|
-
"text-foreground",
|
|
14323
|
+
"font-ui text-foreground",
|
|
14321
14324
|
"transition-[color,border-color,box-shadow]",
|
|
14322
14325
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 ring-offset-background",
|
|
14323
14326
|
"disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50"
|
|
@@ -14735,7 +14738,7 @@ const Cm = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(
|
|
|
14735
14738
|
ref: n,
|
|
14736
14739
|
className: E(
|
|
14737
14740
|
"inline-flex items-center justify-center gap-2 whitespace-nowrap",
|
|
14738
|
-
"rounded-sm px-3 py-1.5 text-sm font-medium",
|
|
14741
|
+
"rounded-sm px-3 py-1.5 text-sm font-ui font-medium",
|
|
14739
14742
|
"text-muted-foreground select-none outline-none",
|
|
14740
14743
|
"transition-[color,background-color,box-shadow] duration-150",
|
|
14741
14744
|
"hover:text-foreground",
|
|
@@ -14775,7 +14778,7 @@ oN.displayName = "Tabs";
|
|
|
14775
14778
|
const aN = Ee(
|
|
14776
14779
|
[
|
|
14777
14780
|
"w-full rounded-md border border-input bg-background",
|
|
14778
|
-
"text-foreground placeholder:text-muted-foreground",
|
|
14781
|
+
"font-body text-foreground placeholder:text-muted-foreground",
|
|
14779
14782
|
"transition-[color,border-color,box-shadow]",
|
|
14780
14783
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 ring-offset-background",
|
|
14781
14784
|
"resize-y",
|
|
@@ -15549,16 +15552,26 @@ const _N = /* @__PURE__ */ S.forwardRef(function(t, n) {
|
|
|
15549
15552
|
});
|
|
15550
15553
|
})) : null;
|
|
15551
15554
|
}));
|
|
15552
|
-
}), AN = ({
|
|
15553
|
-
|
|
15554
|
-
|
|
15555
|
-
|
|
15556
|
-
|
|
15557
|
-
|
|
15558
|
-
|
|
15559
|
-
|
|
15560
|
-
|
|
15561
|
-
|
|
15555
|
+
}), AN = ({ toastOptions: e, ...t }) => {
|
|
15556
|
+
var n;
|
|
15557
|
+
return /* @__PURE__ */ m(
|
|
15558
|
+
_N,
|
|
15559
|
+
{
|
|
15560
|
+
theme: "light",
|
|
15561
|
+
richColors: !0,
|
|
15562
|
+
position: "top-center",
|
|
15563
|
+
closeButton: !0,
|
|
15564
|
+
toastOptions: {
|
|
15565
|
+
...e,
|
|
15566
|
+
classNames: {
|
|
15567
|
+
...e == null ? void 0 : e.classNames,
|
|
15568
|
+
toast: `shadow-lg ${((n = e == null ? void 0 : e.classNames) == null ? void 0 : n.toast) ?? ""}`.trim()
|
|
15569
|
+
}
|
|
15570
|
+
},
|
|
15571
|
+
...t
|
|
15572
|
+
}
|
|
15573
|
+
);
|
|
15574
|
+
};
|
|
15562
15575
|
AN.displayName = "Toaster";
|
|
15563
15576
|
var [Uo] = nt("Tooltip", [
|
|
15564
15577
|
Kt
|
|
@@ -15877,8 +15890,8 @@ const vM = ZN, tM = QN, nM = JN, _m = u.forwardRef(({ className: e, sideOffset:
|
|
|
15877
15890
|
ref: r,
|
|
15878
15891
|
sideOffset: t,
|
|
15879
15892
|
className: E(
|
|
15880
|
-
"z-50 overflow-hidden rounded-md bg-foreground px-3 py-1.5",
|
|
15881
|
-
"text-xs text-background font-medium",
|
|
15893
|
+
"z-50 overflow-hidden rounded-md bg-foreground px-3 py-1.5 shadow-md",
|
|
15894
|
+
"text-xs font-body text-background font-medium",
|
|
15882
15895
|
"origin-(--radix-tooltip-content-transform-origin)",
|
|
15883
15896
|
"data-[state=delayed-open]:animate-tooltip-in",
|
|
15884
15897
|
"data-[state=instant-open]:animate-tooltip-in",
|