@getgreenline/blaze-ui 1.0.0 → 1.0.1
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/components/button.d.ts +12 -0
- package/dist/components/button.d.ts.map +1 -0
- package/dist/components/button.js +54 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +3 -0
- package/dist/lib/utils.d.ts +3 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/lib/utils.js +5 -0
- package/dist/styles/styles.d.ts +3 -0
- package/dist/styles/styles.d.ts.map +1 -0
- package/dist/styles/styles.js +5 -0
- package/package.json +67 -7
- package/postcss.config.mjs +6 -0
- package/src/styles/blaze-ui.css +157 -0
- package/src/styles/styles.ts +6 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type VariantProps } from "class-variance-authority";
|
|
3
|
+
declare const buttonVariants: (props?: ({
|
|
4
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
|
|
5
|
+
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
+
declare function Button({ className, variant, size, asChild, loading, children, ...props }: React.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
|
|
8
|
+
asChild?: boolean;
|
|
9
|
+
loading?: boolean;
|
|
10
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export { Button, buttonVariants };
|
|
12
|
+
//# sourceMappingURL=button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../src/components/button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAIjE,QAAA,MAAM,cAAc;;;8EA6BnB,CAAA;AAED,iBAAS,MAAM,CAAC,EACd,SAAS,EACT,OAAO,EACP,IAAI,EACJ,OAAe,EACf,OAAe,EACf,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,GAC/B,YAAY,CAAC,OAAO,cAAc,CAAC,GAAG;IACpC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,2CA4EF;AAED,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
4
|
+
import { cva } from "class-variance-authority";
|
|
5
|
+
import { cn } from "../lib/utils";
|
|
6
|
+
const buttonVariants = cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive", {
|
|
7
|
+
variants: {
|
|
8
|
+
variant: {
|
|
9
|
+
default: "bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",
|
|
10
|
+
destructive: "bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
|
|
11
|
+
outline: "border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
|
|
12
|
+
secondary: "bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",
|
|
13
|
+
ghost: "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
|
|
14
|
+
link: "text-primary underline-offset-4 hover:underline",
|
|
15
|
+
},
|
|
16
|
+
size: {
|
|
17
|
+
default: "h-9 px-4 py-2 has-[>svg]:px-3",
|
|
18
|
+
sm: "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",
|
|
19
|
+
lg: "h-10 rounded-md px-6 has-[>svg]:px-4",
|
|
20
|
+
icon: "size-9",
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
defaultVariants: {
|
|
24
|
+
variant: "default",
|
|
25
|
+
size: "default",
|
|
26
|
+
},
|
|
27
|
+
});
|
|
28
|
+
function Button({ className, variant, size, asChild = false, loading = false, children, ...props }) {
|
|
29
|
+
const Comp = asChild ? Slot : "button";
|
|
30
|
+
// Wrap raw text nodes so we can hide them via opacity
|
|
31
|
+
const wrapTextNodes = (node) => {
|
|
32
|
+
if (typeof node === "string" || typeof node === "number") {
|
|
33
|
+
return _jsx("span", { "data-loading-text": true, children: node });
|
|
34
|
+
}
|
|
35
|
+
if (Array.isArray(node)) {
|
|
36
|
+
return node.map((n, i) => _jsx(React.Fragment, { children: wrapTextNodes(n) }, i));
|
|
37
|
+
}
|
|
38
|
+
if (React.isValidElement(node) && node.props?.children != null) {
|
|
39
|
+
return React.cloneElement(node, undefined, wrapTextNodes(node.props.children));
|
|
40
|
+
}
|
|
41
|
+
return node;
|
|
42
|
+
};
|
|
43
|
+
const renderedChildren = wrapTextNodes(children);
|
|
44
|
+
const spinner = (_jsx("span", { "data-loading-spinner": true, "aria-hidden": "true", className: "absolute inset-0 flex items-center justify-center", children: _jsx("span", { className: "inline-block size-4 animate-spin rounded-full border-2 border-current border-t-transparent" }) }));
|
|
45
|
+
if (asChild) {
|
|
46
|
+
const onlyChild = React.Children.only(renderedChildren);
|
|
47
|
+
const childWithSpinner = React.cloneElement(onlyChild, undefined, _jsxs(_Fragment, { children: [loading && spinner, onlyChild.props?.children] }));
|
|
48
|
+
return (_jsx(Comp, { "data-slot": "button", "aria-busy": loading || undefined, "aria-disabled": props?.disabled || loading || undefined, className: cn(buttonVariants({ variant, size, className }), loading &&
|
|
49
|
+
"relative [&>*:not([data-loading-spinner])]:opacity-0 [&>*:not([data-loading-spinner])]:transition-opacity"), ...props, children: childWithSpinner }));
|
|
50
|
+
}
|
|
51
|
+
return (_jsxs(Comp, { "data-slot": "button", "aria-busy": loading || undefined, "aria-disabled": props?.disabled || loading || undefined, disabled: props?.disabled || loading, className: cn(buttonVariants({ variant, size, className }), loading &&
|
|
52
|
+
"relative [&>*:not([data-loading-spinner])]:opacity-0 [&>*:not([data-loading-spinner])]:transition-opacity"), ...props, children: [loading && spinner, renderedChildren] }));
|
|
53
|
+
}
|
|
54
|
+
export { Button, buttonVariants };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAC5D,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAA;AAChC,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/lib/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,UAAU,EAAE,MAAM,MAAM,CAAA;AAG5C,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,UAEzC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/styles/styles.ts"],"names":[],"mappings":"AAGA,OAAO,qCAAqC,CAAA;AAE5C,eAAO,MAAM,MAAM,EAAG,IAAa,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// Import CSS as a side-effect via the package subpath export so
|
|
2
|
+
// it resolves in both workspace dev and when published to npm.
|
|
3
|
+
// Consumers can do: import { styles } from '@getgreenline/blaze-ui'
|
|
4
|
+
import '@getgreenline/blaze-ui/blaze-ui.css';
|
|
5
|
+
export const styles = true;
|
package/package.json
CHANGED
|
@@ -1,12 +1,72 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getgreenline/blaze-ui",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"private": false,
|
|
6
6
|
"scripts": {
|
|
7
|
-
"
|
|
7
|
+
"dev": "tsc -p tsconfig.json --watch",
|
|
8
|
+
"build": "tsc -p tsconfig.json",
|
|
9
|
+
"lint": "eslint . --max-warnings 0",
|
|
10
|
+
"prepublishOnly": "pnpm run build"
|
|
8
11
|
},
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
+
"dependencies": {
|
|
13
|
+
"@radix-ui/react-slot": "^1.2.3",
|
|
14
|
+
"class-variance-authority": "^0.7.1",
|
|
15
|
+
"clsx": "^2.1.1",
|
|
16
|
+
"lucide-react": "^0.475.0",
|
|
17
|
+
"next-themes": "^0.4.6",
|
|
18
|
+
"tailwind-merge": "^3.3.1",
|
|
19
|
+
"tw-animate-css": "^1.3.6",
|
|
20
|
+
"zod": "^3.25.76"
|
|
21
|
+
},
|
|
22
|
+
"peerDependencies": {
|
|
23
|
+
"react": ">=18",
|
|
24
|
+
"react-dom": ">=18"
|
|
25
|
+
},
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"@tailwindcss/postcss": "^4.1.11",
|
|
28
|
+
"@turbo/gen": "^2.5.5",
|
|
29
|
+
"@types/node": "^20.19.9",
|
|
30
|
+
"@types/react": "^18.3.24",
|
|
31
|
+
"@types/react-dom": "^18.3.7",
|
|
32
|
+
"@workspace/eslint-config": "workspace:*",
|
|
33
|
+
"@workspace/typescript-config": "workspace:*",
|
|
34
|
+
"tailwindcss": "^4.1.11",
|
|
35
|
+
"typescript": "^5.9.2"
|
|
36
|
+
},
|
|
37
|
+
"main": "./dist/index.js",
|
|
38
|
+
"module": "./dist/index.js",
|
|
39
|
+
"types": "./dist/index.d.ts",
|
|
40
|
+
"exports": {
|
|
41
|
+
".": {
|
|
42
|
+
"types": "./dist/index.d.ts",
|
|
43
|
+
"import": "./dist/index.js"
|
|
44
|
+
},
|
|
45
|
+
"./blaze-ui.css": "./src/styles/blaze-ui.css",
|
|
46
|
+
"./styles": {
|
|
47
|
+
"types": "./dist/styles/styles.d.ts",
|
|
48
|
+
"import": "./dist/styles/styles.js"
|
|
49
|
+
},
|
|
50
|
+
"./postcss.config": "./postcss.config.mjs",
|
|
51
|
+
"./lib/*": {
|
|
52
|
+
"types": "./dist/lib/*.d.ts",
|
|
53
|
+
"import": "./dist/lib/*.js"
|
|
54
|
+
},
|
|
55
|
+
"./components/*": {
|
|
56
|
+
"types": "./dist/components/*.d.ts",
|
|
57
|
+
"import": "./dist/components/*.js"
|
|
58
|
+
},
|
|
59
|
+
"./hooks/*": {
|
|
60
|
+
"types": "./dist/hooks/*.d.ts",
|
|
61
|
+
"import": "./dist/hooks/*.js"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"files": [
|
|
65
|
+
"dist/**",
|
|
66
|
+
"src/styles/**",
|
|
67
|
+
"postcss.config.mjs"
|
|
68
|
+
],
|
|
69
|
+
"publishConfig": {
|
|
70
|
+
"access": "restricted"
|
|
71
|
+
}
|
|
12
72
|
}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
@import "tailwindcss";
|
|
2
|
+
@import "tw-animate-css";
|
|
3
|
+
|
|
4
|
+
@source "../../../apps/**/*.{ts,tsx}";
|
|
5
|
+
@source "../../../components/**/*.{ts,tsx}";
|
|
6
|
+
@source "../**/*.{ts,tsx}";
|
|
7
|
+
|
|
8
|
+
@custom-variant dark (&:is(.dark *));
|
|
9
|
+
|
|
10
|
+
:root {
|
|
11
|
+
--background: oklch(0.9842 0.0034 247.8575);
|
|
12
|
+
--foreground: oklch(0.2795 0.0368 260.0310);
|
|
13
|
+
--card: oklch(1.0000 0 0);
|
|
14
|
+
--card-foreground: oklch(0.2795 0.0368 260.0310);
|
|
15
|
+
--popover: oklch(1.0000 0 0);
|
|
16
|
+
--popover-foreground: oklch(0.2795 0.0368 260.0310);
|
|
17
|
+
--primary: oklch(0.7127 0.1242 224.5720);
|
|
18
|
+
--primary-foreground: oklch(1.0000 0 0);
|
|
19
|
+
--secondary: oklch(0.9276 0.0058 264.5313);
|
|
20
|
+
--secondary-foreground: oklch(0.3729 0.0306 259.7328);
|
|
21
|
+
--muted: oklch(0.9670 0.0029 264.5419);
|
|
22
|
+
--muted-foreground: oklch(0.5510 0.0234 264.3637);
|
|
23
|
+
--accent: oklch(0.9299 0.0334 272.7879);
|
|
24
|
+
--accent-foreground: oklch(0.3729 0.0306 259.7328);
|
|
25
|
+
--destructive: oklch(0.6368 0.2078 25.3313);
|
|
26
|
+
--destructive-foreground: oklch(1.0000 0 0);
|
|
27
|
+
--border: oklch(0.8717 0.0093 258.3382);
|
|
28
|
+
--input: oklch(0.8717 0.0093 258.3382);
|
|
29
|
+
--ring: oklch(0.5854 0.2041 277.1173);
|
|
30
|
+
--chart-1: oklch(0.5854 0.2041 277.1173);
|
|
31
|
+
--chart-2: oklch(0.5106 0.2301 276.9656);
|
|
32
|
+
--chart-3: oklch(0.4568 0.2146 277.0229);
|
|
33
|
+
--chart-4: oklch(0.3984 0.1773 277.3662);
|
|
34
|
+
--chart-5: oklch(0.3588 0.1354 278.6973);
|
|
35
|
+
--sidebar: oklch(0.9670 0.0029 264.5419);
|
|
36
|
+
--sidebar-foreground: oklch(0.2795 0.0368 260.0310);
|
|
37
|
+
--sidebar-primary: oklch(0.5854 0.2041 277.1173);
|
|
38
|
+
--sidebar-primary-foreground: oklch(1.0000 0 0);
|
|
39
|
+
--sidebar-accent: oklch(0.9299 0.0334 272.7879);
|
|
40
|
+
--sidebar-accent-foreground: oklch(0.3729 0.0306 259.7328);
|
|
41
|
+
--sidebar-border: oklch(0.8717 0.0093 258.3382);
|
|
42
|
+
--sidebar-ring: oklch(0.5854 0.2041 277.1173);
|
|
43
|
+
--font-sans: Inter, sans-serif;
|
|
44
|
+
--font-serif: Merriweather, serif;
|
|
45
|
+
--font-mono: JetBrains Mono, monospace;
|
|
46
|
+
--radius: 0.5rem;
|
|
47
|
+
--shadow-2xs: 0px 4px 8px -1px hsl(0 0% 0% / 0.05);
|
|
48
|
+
--shadow-xs: 0px 4px 8px -1px hsl(0 0% 0% / 0.05);
|
|
49
|
+
--shadow-sm: 0px 4px 8px -1px hsl(0 0% 0% / 0.10), 0px 1px 2px -2px hsl(0 0% 0% / 0.10);
|
|
50
|
+
--shadow: 0px 4px 8px -1px hsl(0 0% 0% / 0.10), 0px 1px 2px -2px hsl(0 0% 0% / 0.10);
|
|
51
|
+
--shadow-md: 0px 4px 8px -1px hsl(0 0% 0% / 0.10), 0px 2px 4px -2px hsl(0 0% 0% / 0.10);
|
|
52
|
+
--shadow-lg: 0px 4px 8px -1px hsl(0 0% 0% / 0.10), 0px 4px 6px -2px hsl(0 0% 0% / 0.10);
|
|
53
|
+
--shadow-xl: 0px 4px 8px -1px hsl(0 0% 0% / 0.10), 0px 8px 10px -2px hsl(0 0% 0% / 0.10);
|
|
54
|
+
--shadow-2xl: 0px 4px 8px -1px hsl(0 0% 0% / 0.25);
|
|
55
|
+
--tracking-normal: 0em;
|
|
56
|
+
--spacing: 0.25rem;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.dark {
|
|
60
|
+
--background: oklch(0.2077 0.0398 265.7549);
|
|
61
|
+
--foreground: oklch(0.9288 0.0126 255.5078);
|
|
62
|
+
--card: oklch(0.2795 0.0368 260.0310);
|
|
63
|
+
--card-foreground: oklch(0.9288 0.0126 255.5078);
|
|
64
|
+
--popover: oklch(0.2795 0.0368 260.0310);
|
|
65
|
+
--popover-foreground: oklch(0.9288 0.0126 255.5078);
|
|
66
|
+
--primary: oklch(0.6801 0.1583 276.9349);
|
|
67
|
+
--primary-foreground: oklch(0.2077 0.0398 265.7549);
|
|
68
|
+
--secondary: oklch(0.3351 0.0331 260.9120);
|
|
69
|
+
--secondary-foreground: oklch(0.8717 0.0093 258.3382);
|
|
70
|
+
--muted: oklch(0.2795 0.0368 260.0310);
|
|
71
|
+
--muted-foreground: oklch(0.7137 0.0192 261.3246);
|
|
72
|
+
--accent: oklch(0.3729 0.0306 259.7328);
|
|
73
|
+
--accent-foreground: oklch(0.8717 0.0093 258.3382);
|
|
74
|
+
--destructive: oklch(0.6368 0.2078 25.3313);
|
|
75
|
+
--destructive-foreground: oklch(0.2077 0.0398 265.7549);
|
|
76
|
+
--border: oklch(0.4461 0.0263 256.8018);
|
|
77
|
+
--input: oklch(0.4461 0.0263 256.8018);
|
|
78
|
+
--ring: oklch(0.6801 0.1583 276.9349);
|
|
79
|
+
--chart-1: oklch(0.6801 0.1583 276.9349);
|
|
80
|
+
--chart-2: oklch(0.5854 0.2041 277.1173);
|
|
81
|
+
--chart-3: oklch(0.5106 0.2301 276.9656);
|
|
82
|
+
--chart-4: oklch(0.4568 0.2146 277.0229);
|
|
83
|
+
--chart-5: oklch(0.3984 0.1773 277.3662);
|
|
84
|
+
--sidebar: oklch(0.2795 0.0368 260.0310);
|
|
85
|
+
--sidebar-foreground: oklch(0.9288 0.0126 255.5078);
|
|
86
|
+
--sidebar-primary: oklch(0.6801 0.1583 276.9349);
|
|
87
|
+
--sidebar-primary-foreground: oklch(0.2077 0.0398 265.7549);
|
|
88
|
+
--sidebar-accent: oklch(0.3729 0.0306 259.7328);
|
|
89
|
+
--sidebar-accent-foreground: oklch(0.8717 0.0093 258.3382);
|
|
90
|
+
--sidebar-border: oklch(0.4461 0.0263 256.8018);
|
|
91
|
+
--sidebar-ring: oklch(0.6801 0.1583 276.9349);
|
|
92
|
+
--font-sans: Inter, sans-serif;
|
|
93
|
+
--font-serif: Merriweather, serif;
|
|
94
|
+
--font-mono: JetBrains Mono, monospace;
|
|
95
|
+
--radius: 0.5rem;
|
|
96
|
+
--shadow-2xs: 0px 4px 8px -1px hsl(0 0% 0% / 0.05);
|
|
97
|
+
--shadow-xs: 0px 4px 8px -1px hsl(0 0% 0% / 0.05);
|
|
98
|
+
--shadow-sm: 0px 4px 8px -1px hsl(0 0% 0% / 0.10), 0px 1px 2px -2px hsl(0 0% 0% / 0.10);
|
|
99
|
+
--shadow: 0px 4px 8px -1px hsl(0 0% 0% / 0.10), 0px 1px 2px -2px hsl(0 0% 0% / 0.10);
|
|
100
|
+
--shadow-md: 0px 4px 8px -1px hsl(0 0% 0% / 0.10), 0px 2px 4px -2px hsl(0 0% 0% / 0.10);
|
|
101
|
+
--shadow-lg: 0px 4px 8px -1px hsl(0 0% 0% / 0.10), 0px 4px 6px -2px hsl(0 0% 0% / 0.10);
|
|
102
|
+
--shadow-xl: 0px 4px 8px -1px hsl(0 0% 0% / 0.10), 0px 8px 10px -2px hsl(0 0% 0% / 0.10);
|
|
103
|
+
--shadow-2xl: 0px 4px 8px -1px hsl(0 0% 0% / 0.25);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
@theme inline {
|
|
107
|
+
--color-background: var(--background);
|
|
108
|
+
--color-foreground: var(--foreground);
|
|
109
|
+
--color-card: var(--card);
|
|
110
|
+
--color-card-foreground: var(--card-foreground);
|
|
111
|
+
--color-popover: var(--popover);
|
|
112
|
+
--color-popover-foreground: var(--popover-foreground);
|
|
113
|
+
--color-primary: var(--primary);
|
|
114
|
+
--color-primary-foreground: var(--primary-foreground);
|
|
115
|
+
--color-secondary: var(--secondary);
|
|
116
|
+
--color-secondary-foreground: var(--secondary-foreground);
|
|
117
|
+
--color-muted: var(--muted);
|
|
118
|
+
--color-muted-foreground: var(--muted-foreground);
|
|
119
|
+
--color-accent: var(--accent);
|
|
120
|
+
--color-accent-foreground: var(--accent-foreground);
|
|
121
|
+
--color-destructive: var(--destructive);
|
|
122
|
+
--color-destructive-foreground: var(--destructive-foreground);
|
|
123
|
+
--color-border: var(--border);
|
|
124
|
+
--color-input: var(--input);
|
|
125
|
+
--color-ring: var(--ring);
|
|
126
|
+
--color-chart-1: var(--chart-1);
|
|
127
|
+
--color-chart-2: var(--chart-2);
|
|
128
|
+
--color-chart-3: var(--chart-3);
|
|
129
|
+
--color-chart-4: var(--chart-4);
|
|
130
|
+
--color-chart-5: var(--chart-5);
|
|
131
|
+
--color-sidebar: var(--sidebar);
|
|
132
|
+
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
133
|
+
--color-sidebar-primary: var(--sidebar-primary);
|
|
134
|
+
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
135
|
+
--color-sidebar-accent: var(--sidebar-accent);
|
|
136
|
+
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
137
|
+
--color-sidebar-border: var(--sidebar-border);
|
|
138
|
+
--color-sidebar-ring: var(--sidebar-ring);
|
|
139
|
+
|
|
140
|
+
--font-sans: var(--font-sans);
|
|
141
|
+
--font-mono: var(--font-mono);
|
|
142
|
+
--font-serif: var(--font-serif);
|
|
143
|
+
|
|
144
|
+
--radius-sm: calc(var(--radius) - 4px);
|
|
145
|
+
--radius-md: calc(var(--radius) - 2px);
|
|
146
|
+
--radius-lg: var(--radius);
|
|
147
|
+
--radius-xl: calc(var(--radius) + 4px);
|
|
148
|
+
|
|
149
|
+
--shadow-2xs: var(--shadow-2xs);
|
|
150
|
+
--shadow-xs: var(--shadow-xs);
|
|
151
|
+
--shadow-sm: var(--shadow-sm);
|
|
152
|
+
--shadow: var(--shadow);
|
|
153
|
+
--shadow-md: var(--shadow-md);
|
|
154
|
+
--shadow-lg: var(--shadow-lg);
|
|
155
|
+
--shadow-xl: var(--shadow-xl);
|
|
156
|
+
--shadow-2xl: var(--shadow-2xl);
|
|
157
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// Import CSS as a side-effect via the package subpath export so
|
|
2
|
+
// it resolves in both workspace dev and when published to npm.
|
|
3
|
+
// Consumers can do: import { styles } from '@getgreenline/blaze-ui'
|
|
4
|
+
import '@getgreenline/blaze-ui/blaze-ui.css'
|
|
5
|
+
|
|
6
|
+
export const styles = true as const
|