@loczer/storefront-sdk 0.201.0 → 0.202.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 +2 -0
- package/dist/index.js +43 -43
- package/dist/pages/BookingPage.js +1 -1
- package/dist/pages/ErrorPage.d.ts.map +1 -1
- package/dist/pages/ErrorPage.js +50 -47
- package/dist/pages/NotFoundPage.d.ts.map +1 -1
- package/dist/pages/NotFoundPage.js +24 -22
- package/dist/storefront.css +1 -1
- package/dist/ui/button.d.ts +2 -1
- package/dist/ui/button.d.ts.map +1 -1
- package/dist/ui/button.js +6 -6
- package/package.json +1 -1
package/dist/ui/button.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import * as React from "react";
|
|
3
|
+
declare const storefrontButtonRadiusClassName = "rounded-[var(--storefront-button-radius,calc(var(--radius)-2px))]";
|
|
3
4
|
declare const buttonVariants: (props?: ({
|
|
4
5
|
variant?: "default" | "link" | "secondary" | "outline" | "destructive" | "ghost" | null | undefined;
|
|
5
6
|
size?: "default" | "icon" | "sm" | "lg" | null | undefined;
|
|
@@ -8,5 +9,5 @@ export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElemen
|
|
|
8
9
|
asChild?: boolean;
|
|
9
10
|
}
|
|
10
11
|
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
11
|
-
export { Button, buttonVariants };
|
|
12
|
+
export { Button, buttonVariants, storefrontButtonRadiusClassName };
|
|
12
13
|
//# sourceMappingURL=button.d.ts.map
|
package/dist/ui/button.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../src/ui/button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAMjE,QAAA,MAAM,cAAc;;;
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../src/ui/button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAMjE,QAAA,MAAM,+BAA+B,sEACgC,CAAA;AAErE,QAAA,MAAM,cAAc;;;8EA8BnB,CAAA;AAED,MAAM,WAAW,WACf,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EACnD,YAAY,CAAC,OAAO,cAAc,CAAC;IACrC,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,QAAA,MAAM,MAAM,uFAWX,CAAA;AAGD,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,+BAA+B,EAAE,CAAA"}
|
package/dist/ui/button.js
CHANGED
|
@@ -4,7 +4,7 @@ import { jsx as n } from "react/jsx-runtime";
|
|
|
4
4
|
import { cn as r } from "@rpcbase/ui";
|
|
5
5
|
import { cva as i } from "class-variance-authority";
|
|
6
6
|
//#region src/ui/button.tsx
|
|
7
|
-
var a = i("inline-flex items-center justify-center gap-2 whitespace-nowrap
|
|
7
|
+
var a = "rounded-[var(--storefront-button-radius,calc(var(--radius)-2px))]", o = i(r("inline-flex items-center justify-center gap-2 whitespace-nowrap text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", a), {
|
|
8
8
|
variants: {
|
|
9
9
|
variant: {
|
|
10
10
|
default: "bg-primary text-primary-foreground hover:bg-primary/90 active:bg-primary/90",
|
|
@@ -25,15 +25,15 @@ var a = i("inline-flex items-center justify-center gap-2 whitespace-nowrap round
|
|
|
25
25
|
variant: "default",
|
|
26
26
|
size: "default"
|
|
27
27
|
}
|
|
28
|
-
}),
|
|
29
|
-
className: r(
|
|
28
|
+
}), s = t.forwardRef(({ className: t, variant: i, size: a, asChild: s = !1, ...c }, l) => /* @__PURE__ */ n(s ? e : "button", {
|
|
29
|
+
className: r(o({
|
|
30
30
|
variant: i,
|
|
31
|
-
size:
|
|
31
|
+
size: a,
|
|
32
32
|
className: t
|
|
33
33
|
})),
|
|
34
34
|
ref: l,
|
|
35
35
|
...c
|
|
36
36
|
}));
|
|
37
|
-
|
|
37
|
+
s.displayName = "Button";
|
|
38
38
|
//#endregion
|
|
39
|
-
export {
|
|
39
|
+
export { s as Button, o as buttonVariants, a as storefrontButtonRadiusClassName };
|