@cmdniels/uikit 1.1.2 → 1.1.4
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/out/clerk.d.ts +1 -0
- package/out/clerk.js +64 -0
- package/out/components/scroll-area/ScrollBar.js +1 -1
- package/package.json +7 -1
package/out/clerk.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const clerkTheme: any;
|
package/out/clerk.js
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { experimental_createTheme } from "@clerk/themes";
|
|
2
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3
|
+
export const clerkTheme = experimental_createTheme({
|
|
4
|
+
name: "uikit",
|
|
5
|
+
cssLayerName: "components",
|
|
6
|
+
variables: {
|
|
7
|
+
colorBackground: "var(--background)",
|
|
8
|
+
colorDanger: "var(--destructive)",
|
|
9
|
+
colorForeground: "var(--foreground)",
|
|
10
|
+
colorInput: "var(--card)",
|
|
11
|
+
colorInputBackground: "var(--card)",
|
|
12
|
+
colorInputForeground: "var(--card-foreground)",
|
|
13
|
+
colorModalBackdrop: "oklch(0 0 0 / 0.5)",
|
|
14
|
+
colorMuted: "var(--muted)",
|
|
15
|
+
colorMutedForeground: "var(--muted-foreground)",
|
|
16
|
+
colorNeutral: "var(--foreground)",
|
|
17
|
+
colorPrimary: "var(--primary)",
|
|
18
|
+
colorPrimaryForeground: "var(--primary-foreground)",
|
|
19
|
+
colorRing: "var(--ring)",
|
|
20
|
+
colorTextOnPrimaryBackground: "var(--primary-foreground)",
|
|
21
|
+
colorTextSecondary: "var(--muted-foreground)",
|
|
22
|
+
borderRadius: "0.375rem",
|
|
23
|
+
fontSize: "0.875rem",
|
|
24
|
+
fontWeight: {
|
|
25
|
+
normal: "400",
|
|
26
|
+
medium: "500",
|
|
27
|
+
semibold: "600",
|
|
28
|
+
bold: "600",
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
elements: {
|
|
32
|
+
// Cards & Containers
|
|
33
|
+
card: "rounded-xl border border-border bg-card shadow-xs text-card-foreground",
|
|
34
|
+
pricingTableCard: "rounded-xl border border-border bg-card shadow-xs text-card-foreground",
|
|
35
|
+
cardBox: "rounded-xl border border-border bg-card shadow-xs text-card-foreground",
|
|
36
|
+
popoverBox: "rounded-md border border-border bg-card shadow-md text-card-foreground",
|
|
37
|
+
userButtonPopoverMain: "rounded-md border border-border bg-card shadow-md text-card-foreground",
|
|
38
|
+
userButtonPopoverFooter: "bg-card",
|
|
39
|
+
navbarMobileMenuRow: "bg-card",
|
|
40
|
+
navbar: "bg-card",
|
|
41
|
+
pageScrollBox: "bg-card",
|
|
42
|
+
footer: "border-border bg-card",
|
|
43
|
+
// Inputs
|
|
44
|
+
formFieldInput: "h-9 rounded-md border border-border bg-card shadow-xs placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-[3px] aria-invalid:ring-destructive/20",
|
|
45
|
+
formFieldLabel: "text-sm font-medium text-foreground",
|
|
46
|
+
// Buttons
|
|
47
|
+
formButtonPrimary: "h-9 rounded-md bg-primary text-primary-foreground hover:bg-primary/80 focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50",
|
|
48
|
+
socialButtonsBlockButton: "h-9 rounded-md border border-border bg-card shadow-xs hover:bg-muted focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50",
|
|
49
|
+
// Remove Clerk's default styling
|
|
50
|
+
button: {
|
|
51
|
+
'&[data-variant="solid"]::after': {
|
|
52
|
+
display: "none",
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
// Provider Icons
|
|
56
|
+
providerIcon__apple: "dark:invert",
|
|
57
|
+
providerIcon__github: "dark:invert",
|
|
58
|
+
providerIcon__okx_wallet: "dark:invert",
|
|
59
|
+
providerIcon__vercel: "dark:invert",
|
|
60
|
+
providerIcon__linear: "dark:invert",
|
|
61
|
+
providerIcon__notion: "dark:invert",
|
|
62
|
+
pricingTableCardTitle: "text-2xl font-semibold",
|
|
63
|
+
},
|
|
64
|
+
});
|
|
@@ -15,5 +15,5 @@ import { ScrollArea as ScrollAreaPrimitive } from "@base-ui/react/scroll-area";
|
|
|
15
15
|
import cn from "../../cn";
|
|
16
16
|
export default function ScrollBar(_a) {
|
|
17
17
|
var { className, orientation = "vertical" } = _a, props = __rest(_a, ["className", "orientation"]);
|
|
18
|
-
return (_jsx(ScrollAreaPrimitive.Scrollbar, Object.assign({ "data-slot": "scroll-area-scrollbar", "data-orientation": orientation, orientation: orientation, className: cn("flex touch-none p-px
|
|
18
|
+
return (_jsx(ScrollAreaPrimitive.Scrollbar, Object.assign({ "data-slot": "scroll-area-scrollbar", "data-orientation": orientation, orientation: orientation, className: cn("flex touch-none p-px select-none data-horizontal:h-2.5 data-horizontal:flex-col data-horizontal:border-t data-horizontal:border-t-transparent data-vertical:h-full data-vertical:w-2.5 data-vertical:border-l data-vertical:border-l-transparent", "opacity-0 transition-opacity duration-300 ease-in-out data-hovering:opacity-100", className) }, props, { children: _jsx(ScrollAreaPrimitive.Thumb, { "data-slot": "scroll-area-thumb", className: "relative flex-1 rounded-full bg-border" }) })));
|
|
19
19
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cmdniels/uikit",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -15,6 +15,10 @@
|
|
|
15
15
|
"types": "./out/cn.d.ts",
|
|
16
16
|
"import": "./out/cn.js"
|
|
17
17
|
},
|
|
18
|
+
"./clerk": {
|
|
19
|
+
"types": "./out/clerk.d.ts",
|
|
20
|
+
"import": "./out/clerk.js"
|
|
21
|
+
},
|
|
18
22
|
"./tailwind.css": "./tailwind.css"
|
|
19
23
|
},
|
|
20
24
|
"files": [
|
|
@@ -25,6 +29,7 @@
|
|
|
25
29
|
],
|
|
26
30
|
"sideEffects": false,
|
|
27
31
|
"peerDependencies": {
|
|
32
|
+
"@clerk/themes": "^2.4.46",
|
|
28
33
|
"next": "^14.0.0 || ^15.0.0 || ^16.0.0",
|
|
29
34
|
"react": "^18.0.0 || ^19.0.0",
|
|
30
35
|
"react-dom": "^18.0.0 || ^19.0.0"
|
|
@@ -50,6 +55,7 @@
|
|
|
50
55
|
"tw-animate-css": "^1.4.0"
|
|
51
56
|
},
|
|
52
57
|
"devDependencies": {
|
|
58
|
+
"@clerk/themes": "^2.4.46",
|
|
53
59
|
"@cmdniels/eslint-config": "^1.0.1",
|
|
54
60
|
"@ladle/react": "^5.1.1",
|
|
55
61
|
"@types/node": "24.10.1",
|