@getgreenline/blaze-ui 1.0.9 → 1.0.11

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.
@@ -1,7 +1,8 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { Slot } from "@radix-ui/react-slot";
3
- import { cva } from "class-variance-authority";
4
- import { cn } from "../lib/utils";
1
+ import { jsx } from 'react/jsx-runtime.js';
2
+ import { Slot } from '@radix-ui/react-slot';
3
+ import { cva } from 'class-variance-authority';
4
+ import { cn } from '../lib/utils.js';
5
+
5
6
  const buttonVariants = cva("tw:inline-flex tw:items-center tw:justify-center tw:gap-2 tw:whitespace-nowrap tw:rounded-md tw:text-sm tw:font-medium tw:transition-all tw:disabled:pointer-events-none tw:disabled:opacity-50 tw:[&_svg]:pointer-events-none tw:[&_svg:not([class*='size-'])]:size-4 tw:shrink-0 tw:[&_svg]:shrink-0 tw:outline-none tw:focus-visible:border-ring tw:focus-visible:ring-ring/50 tw:focus-visible:ring-[3px] tw:aria-invalid:ring-destructive/20 tw:dark:aria-invalid:ring-destructive/40 tw:aria-invalid:border-destructive", {
6
7
  variants: {
7
8
  variant: {
@@ -26,6 +27,7 @@ const buttonVariants = cva("tw:inline-flex tw:items-center tw:justify-center tw:
26
27
  });
27
28
  function Button({ className, variant, size, asChild = false, ...props }) {
28
29
  const Comp = asChild ? Slot : "button";
29
- return (_jsx(Comp, { "data-slot": "button", className: cn(buttonVariants({ variant, size, className })), ...props }));
30
+ return (jsx(Comp, { "data-slot": "button", className: cn(buttonVariants({ variant, size, className })), ...props }));
30
31
  }
32
+
31
33
  export { Button, buttonVariants };
@@ -1,24 +1,26 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { cn } from "../lib/utils";
1
+ import { jsx } from 'react/jsx-runtime.js';
2
+ import { cn } from '../lib/utils.js';
3
+
3
4
  function Card({ className, ...props }) {
4
- return (_jsx("div", { "data-slot": "card", className: cn("tw:bg-card tw:text-card-foreground tw:flex tw:flex-col tw:gap-6 tw:rounded-xl tw:border tw:py-6 tw:shadow-sm", className), ...props }));
5
+ return (jsx("div", { "data-slot": "card", className: cn("tw:bg-card tw:text-card-foreground tw:flex tw:flex-col tw:gap-6 tw:rounded-xl tw:border tw:py-6 tw:shadow-sm", className), ...props }));
5
6
  }
6
7
  function CardHeader({ className, ...props }) {
7
- return (_jsx("div", { "data-slot": "card-header", className: cn("tw:@container/card-header tw:grid tw:auto-rows-min tw:grid-rows-[auto_auto] tw:items-start tw:gap-1.5 tw:px-6 tw:has-data-[slot=card-action]:grid-cols-[1fr_auto] tw:[.border-b]:pb-6", className), ...props }));
8
+ return (jsx("div", { "data-slot": "card-header", className: cn("tw:@container/card-header tw:grid tw:auto-rows-min tw:grid-rows-[auto_auto] tw:items-start tw:gap-1.5 tw:px-6 tw:has-data-[slot=card-action]:grid-cols-[1fr_auto] tw:[.border-b]:pb-6", className), ...props }));
8
9
  }
9
10
  function CardTitle({ className, ...props }) {
10
- return (_jsx("div", { "data-slot": "card-title", className: cn("tw:leading-none tw:font-semibold", className), ...props }));
11
+ return (jsx("div", { "data-slot": "card-title", className: cn("tw:leading-none tw:font-semibold", className), ...props }));
11
12
  }
12
13
  function CardDescription({ className, ...props }) {
13
- return (_jsx("div", { "data-slot": "card-description", className: cn("tw:text-muted-foreground tw:text-sm", className), ...props }));
14
+ return (jsx("div", { "data-slot": "card-description", className: cn("tw:text-muted-foreground tw:text-sm", className), ...props }));
14
15
  }
15
16
  function CardAction({ className, ...props }) {
16
- return (_jsx("div", { "data-slot": "card-action", className: cn("tw:col-start-2 tw:row-span-2 tw:row-start-1 tw:self-start tw:justify-self-end", className), ...props }));
17
+ return (jsx("div", { "data-slot": "card-action", className: cn("tw:col-start-2 tw:row-span-2 tw:row-start-1 tw:self-start tw:justify-self-end", className), ...props }));
17
18
  }
18
19
  function CardContent({ className, ...props }) {
19
- return (_jsx("div", { "data-slot": "card-content", className: cn("tw:px-6", className), ...props }));
20
+ return (jsx("div", { "data-slot": "card-content", className: cn("tw:px-6", className), ...props }));
20
21
  }
21
22
  function CardFooter({ className, ...props }) {
22
- return (_jsx("div", { "data-slot": "card-footer", className: cn("tw:flex tw:items-center tw:px-6 tw:[.border-t]:pt-6", className), ...props }));
23
+ return (jsx("div", { "data-slot": "card-footer", className: cn("tw:flex tw:items-center tw:px-6 tw:[.border-t]:pt-6", className), ...props }));
23
24
  }
24
- export { Card, CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardContent, };
25
+
26
+ export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle };
@@ -1,9 +1,10 @@
1
- "use client";
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
4
- import { CheckIcon } from "lucide-react";
5
- import { cn } from "../lib/utils";
1
+ import { jsx } from 'react/jsx-runtime.js';
2
+ import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
3
+ import { CheckIcon } from 'lucide-react';
4
+ import { cn } from '../lib/utils.js';
5
+
6
6
  function Checkbox({ className, ...props }) {
7
- return (_jsx(CheckboxPrimitive.Root, { "data-slot": "checkbox", className: cn("tw:peer tw:border-input tw:dark:bg-input/30 tw:data-[state=checked]:bg-primary tw:data-[state=checked]:text-primary-foreground tw:dark:data-[state=checked]:bg-primary tw:data-[state=checked]:border-primary tw:focus-visible:border-ring tw:focus-visible:ring-ring/50 tw:aria-invalid:ring-destructive/20 tw:dark:aria-invalid:ring-destructive/40 tw:aria-invalid:border-destructive tw:size-4 tw:shrink-0 tw:rounded-[4px] tw:border tw:shadow-xs tw:transition-shadow tw:outline-none tw:focus-visible:ring-[3px] tw:disabled:cursor-not-allowed tw:disabled:opacity-50", className), ...props, children: _jsx(CheckboxPrimitive.Indicator, { "data-slot": "checkbox-indicator", className: "tw:flex tw:items-center tw:justify-center tw:text-current tw:transition-none", children: _jsx(CheckIcon, { className: "tw:size-3.5" }) }) }));
7
+ return (jsx(CheckboxPrimitive.Root, { "data-slot": "checkbox", className: cn("tw:peer tw:border-input tw:dark:bg-input/30 tw:data-[state=checked]:bg-primary tw:data-[state=checked]:text-primary-foreground tw:dark:data-[state=checked]:bg-primary tw:data-[state=checked]:border-primary tw:focus-visible:border-ring tw:focus-visible:ring-ring/50 tw:aria-invalid:ring-destructive/20 tw:dark:aria-invalid:ring-destructive/40 tw:aria-invalid:border-destructive tw:size-4 tw:shrink-0 tw:rounded-[4px] tw:border tw:shadow-xs tw:transition-shadow tw:outline-none tw:focus-visible:ring-[3px] tw:disabled:cursor-not-allowed tw:disabled:opacity-50", className), ...props, children: jsx(CheckboxPrimitive.Indicator, { "data-slot": "checkbox-indicator", className: "tw:flex tw:items-center tw:justify-center tw:text-current tw:transition-none", children: jsx(CheckIcon, { className: "tw:size-3.5" }) }) }));
8
8
  }
9
+
9
10
  export { Checkbox };
@@ -1,6 +1,8 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { cn } from "../lib/utils";
1
+ import { jsx } from 'react/jsx-runtime.js';
2
+ import { cn } from '../lib/utils.js';
3
+
3
4
  function Input({ className, type, ...props }) {
4
- return (_jsx("input", { type: type, "data-slot": "input", className: cn("tw:file:text-foreground tw:placeholder:text-muted-foreground tw:selection:bg-primary tw:selection:text-primary-foreground tw:dark:bg-input/30 tw:border-input tw:h-9 tw:w-full tw:min-w-0 tw:rounded-md tw:border tw:bg-transparent tw:px-3 tw:py-1 tw:text-base tw:shadow-xs tw:transition-[color,box-shadow] tw:outline-none tw:file:inline-flex tw:file:h-7 tw:file:border-0 tw:file:bg-transparent tw:file:text-sm tw:file:font-medium tw:disabled:pointer-events-none tw:disabled:cursor-not-allowed tw:disabled:opacity-50 tw:md:text-sm", "tw:focus-visible:border-ring tw:focus-visible:ring-ring/50 tw:focus-visible:ring-[3px]", "tw:aria-invalid:ring-destructive/20 tw:dark:aria-invalid:ring-destructive/40 tw:aria-invalid:border-destructive", className), ...props }));
5
+ return (jsx("input", { type: type, "data-slot": "input", className: cn("tw:file:text-foreground tw:placeholder:text-muted-foreground tw:selection:bg-primary tw:selection:text-primary-foreground tw:dark:bg-input/30 tw:border-input tw:h-9 tw:w-full tw:min-w-0 tw:rounded-md tw:border tw:bg-transparent tw:px-3 tw:py-1 tw:text-base tw:shadow-xs tw:transition-[color,box-shadow] tw:outline-none tw:file:inline-flex tw:file:h-7 tw:file:border-0 tw:file:bg-transparent tw:file:text-sm tw:file:font-medium tw:disabled:pointer-events-none tw:disabled:cursor-not-allowed tw:disabled:opacity-50 tw:md:text-sm", "tw:focus-visible:border-ring tw:focus-visible:ring-ring/50 tw:focus-visible:ring-[3px]", "tw:aria-invalid:ring-destructive/20 tw:dark:aria-invalid:ring-destructive/40 tw:aria-invalid:border-destructive", className), ...props }));
5
6
  }
7
+
6
8
  export { Input };
@@ -1,8 +1,9 @@
1
- "use client";
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- import * as LabelPrimitive from "@radix-ui/react-label";
4
- import { cn } from "../lib/utils";
1
+ import { jsx } from 'react/jsx-runtime.js';
2
+ import * as LabelPrimitive from '@radix-ui/react-label';
3
+ import { cn } from '../lib/utils.js';
4
+
5
5
  function Label({ className, ...props }) {
6
- return (_jsx(LabelPrimitive.Root, { "data-slot": "label", className: cn("tw:flex tw:items-center tw:gap-2 tw:text-sm tw:leading-none tw:font-medium tw:select-none tw:group-data-[disabled=true]:pointer-events-none tw:group-data-[disabled=true]:opacity-50 tw:peer-disabled:cursor-not-allowed tw:peer-disabled:opacity-50", className), ...props }));
6
+ return (jsx(LabelPrimitive.Root, { "data-slot": "label", className: cn("tw:flex tw:items-center tw:gap-2 tw:text-sm tw:leading-none tw:font-medium tw:select-none tw:group-data-[disabled=true]:pointer-events-none tw:group-data-[disabled=true]:opacity-50 tw:peer-disabled:cursor-not-allowed tw:peer-disabled:opacity-50", className), ...props }));
7
7
  }
8
+
8
9
  export { Label };
@@ -1,17 +1,18 @@
1
- "use client";
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- import * as PopoverPrimitive from "@radix-ui/react-popover";
4
- import { cn } from "../lib/utils";
1
+ import { jsx } from 'react/jsx-runtime.js';
2
+ import * as PopoverPrimitive from '@radix-ui/react-popover';
3
+ import { cn } from '../lib/utils.js';
4
+
5
5
  function Popover({ ...props }) {
6
- return _jsx(PopoverPrimitive.Root, { "data-slot": "popover", ...props });
6
+ return jsx(PopoverPrimitive.Root, { "data-slot": "popover", ...props });
7
7
  }
8
8
  function PopoverTrigger({ ...props }) {
9
- return _jsx(PopoverPrimitive.Trigger, { "data-slot": "popover-trigger", ...props });
9
+ return jsx(PopoverPrimitive.Trigger, { "data-slot": "popover-trigger", ...props });
10
10
  }
11
11
  function PopoverContent({ className, align = "center", sideOffset = 4, ...props }) {
12
- return (_jsx(PopoverPrimitive.Portal, { children: _jsx(PopoverPrimitive.Content, { "data-slot": "popover-content", align: align, sideOffset: sideOffset, className: cn("tw:bg-popover tw:text-popover-foreground tw:data-[state=open]:animate-in tw:data-[state=closed]:animate-out tw:data-[state=closed]:fade-out-0 tw:data-[state=open]:fade-in-0 tw:data-[state=closed]:zoom-out-95 tw:data-[state=open]:zoom-in-95 tw:data-[side=bottom]:slide-in-from-top-2 tw:data-[side=left]:slide-in-from-right-2 tw:data-[side=right]:slide-in-from-left-2 tw:data-[side=top]:slide-in-from-bottom-2 tw:z-50 tw:w-72 tw:origin-(--radix-popover-content-transform-origin) tw:rounded-md tw:border tw:p-4 tw:shadow-md tw:outline-hidden", className), ...props }) }));
12
+ return (jsx(PopoverPrimitive.Portal, { children: jsx(PopoverPrimitive.Content, { "data-slot": "popover-content", align: align, sideOffset: sideOffset, className: cn("tw:bg-popover tw:text-popover-foreground tw:data-[state=open]:animate-in tw:data-[state=closed]:animate-out tw:data-[state=closed]:fade-out-0 tw:data-[state=open]:fade-in-0 tw:data-[state=closed]:zoom-out-95 tw:data-[state=open]:zoom-in-95 tw:data-[side=bottom]:slide-in-from-top-2 tw:data-[side=left]:slide-in-from-right-2 tw:data-[side=right]:slide-in-from-left-2 tw:data-[side=top]:slide-in-from-bottom-2 tw:z-50 tw:w-72 tw:origin-(--radix-popover-content-transform-origin) tw:rounded-md tw:border tw:p-4 tw:shadow-md tw:outline-hidden", className), ...props }) }));
13
13
  }
14
14
  function PopoverAnchor({ ...props }) {
15
- return _jsx(PopoverPrimitive.Anchor, { "data-slot": "popover-anchor", ...props });
15
+ return jsx(PopoverPrimitive.Anchor, { "data-slot": "popover-anchor", ...props });
16
16
  }
17
- export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor };
17
+
18
+ export { Popover, PopoverAnchor, PopoverContent, PopoverTrigger };
@@ -1,8 +1,9 @@
1
- "use client";
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- import * as SwitchPrimitive from "@radix-ui/react-switch";
4
- import { cn } from "../lib/utils";
1
+ import { jsx } from 'react/jsx-runtime.js';
2
+ import * as SwitchPrimitive from '@radix-ui/react-switch';
3
+ import { cn } from '../lib/utils.js';
4
+
5
5
  function Switch({ className, ...props }) {
6
- return (_jsx(SwitchPrimitive.Root, { "data-slot": "switch", className: cn("tw:peer tw:data-[state=checked]:bg-primary tw:data-[state=unchecked]:bg-input tw:focus-visible:border-ring tw:focus-visible:ring-ring/50 tw:dark:data-[state=unchecked]:bg-input/80 tw:inline-flex tw:h-[1.15rem] tw:w-8 tw:shrink-0 tw:items-center tw:rounded-full tw:border tw:border-transparent tw:shadow-xs tw:transition-all tw:outline-none tw:focus-visible:ring-[3px] tw:disabled:cursor-not-allowed tw:disabled:opacity-50", className), ...props, children: _jsx(SwitchPrimitive.Thumb, { "data-slot": "switch-thumb", className: cn("tw:bg-background tw:dark:data-[state=unchecked]:bg-foreground tw:dark:data-[state=checked]:bg-primary-foreground tw:pointer-events-none tw:block tw:size-4 tw:rounded-full tw:ring-0 tw:transition-transform tw:data-[state=checked]:translate-x-[calc(100%-2px)] tw:data-[state=unchecked]:translate-x-0") }) }));
6
+ return (jsx(SwitchPrimitive.Root, { "data-slot": "switch", className: cn("tw:peer tw:data-[state=checked]:bg-primary tw:data-[state=unchecked]:bg-input tw:focus-visible:border-ring tw:focus-visible:ring-ring/50 tw:dark:data-[state=unchecked]:bg-input/80 tw:inline-flex tw:h-[1.15rem] tw:w-8 tw:shrink-0 tw:items-center tw:rounded-full tw:border tw:border-transparent tw:shadow-xs tw:transition-all tw:outline-none tw:focus-visible:ring-[3px] tw:disabled:cursor-not-allowed tw:disabled:opacity-50", className), ...props, children: jsx(SwitchPrimitive.Thumb, { "data-slot": "switch-thumb", className: cn("tw:bg-background tw:dark:data-[state=unchecked]:bg-foreground tw:dark:data-[state=checked]:bg-primary-foreground tw:pointer-events-none tw:block tw:size-4 tw:rounded-full tw:ring-0 tw:transition-transform tw:data-[state=checked]:translate-x-[calc(100%-2px)] tw:data-[state=unchecked]:translate-x-0") }) }));
7
7
  }
8
+
8
9
  export { Switch };
package/dist/globals.css CHANGED
@@ -8,74 +8,99 @@
8
8
  @custom-variant dark (&:is(.dark *));
9
9
 
10
10
  :root {
11
- --background: oklch(1 0 0);
12
- --foreground: oklch(0.145 0 0);
13
- --card: oklch(1 0 0);
14
- --card-foreground: oklch(0.145 0 0);
15
- --popover: oklch(1 0 0);
16
- --popover-foreground: oklch(0.145 0 0);
17
- --primary: oklch(0.205 0 0);
18
- --primary-foreground: oklch(0.985 0 0);
19
- --secondary: oklch(0.97 0 0);
20
- --secondary-foreground: oklch(0.205 0 0);
21
- --muted: oklch(0.97 0 0);
22
- --muted-foreground: oklch(0.556 0 0);
23
- --accent: oklch(0.97 0 0);
24
- --accent-foreground: oklch(0.205 0 0);
25
- --destructive: oklch(0.577 0.245 27.325);
26
- --destructive-foreground: oklch(0.577 0.245 27.325);
27
- --border: oklch(0.922 0 0);
28
- --input: oklch(0.922 0 0);
29
- --ring: oklch(0.708 0 0);
30
- --chart-1: oklch(0.646 0.222 41.116);
31
- --chart-2: oklch(0.6 0.118 184.704);
32
- --chart-3: oklch(0.398 0.07 227.392);
33
- --chart-4: oklch(0.828 0.189 84.429);
34
- --chart-5: oklch(0.769 0.188 70.08);
35
- --radius: 0.625rem;
36
- --sidebar: oklch(0.985 0 0);
37
- --sidebar-foreground: oklch(0.145 0 0);
38
- --sidebar-primary: oklch(0.205 0 0);
39
- --sidebar-primary-foreground: oklch(0.985 0 0);
40
- --sidebar-accent: oklch(0.97 0 0);
41
- --sidebar-accent-foreground: oklch(0.205 0 0);
42
- --sidebar-border: oklch(0.922 0 0);
43
- --sidebar-ring: oklch(0.708 0 0);
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;
44
57
  }
45
58
 
46
59
  .dark {
47
- --background: oklch(0.145 0 0);
48
- --foreground: oklch(0.985 0 0);
49
- --card: oklch(0.145 0 0);
50
- --card-foreground: oklch(0.985 0 0);
51
- --popover: oklch(0.145 0 0);
52
- --popover-foreground: oklch(0.985 0 0);
53
- --primary: oklch(0.985 0 0);
54
- --primary-foreground: oklch(0.205 0 0);
55
- --secondary: oklch(0.269 0 0);
56
- --secondary-foreground: oklch(0.985 0 0);
57
- --muted: oklch(0.269 0 0);
58
- --muted-foreground: oklch(0.708 0 0);
59
- --accent: oklch(0.269 0 0);
60
- --accent-foreground: oklch(0.985 0 0);
61
- --destructive: oklch(0.396 0.141 25.723);
62
- --destructive-foreground: oklch(0.637 0.237 25.331);
63
- --border: oklch(0.269 0 0);
64
- --input: oklch(0.269 0 0);
65
- --ring: oklch(0.556 0 0);
66
- --chart-1: oklch(0.488 0.243 264.376);
67
- --chart-2: oklch(0.696 0.17 162.48);
68
- --chart-3: oklch(0.769 0.188 70.08);
69
- --chart-4: oklch(0.627 0.265 303.9);
70
- --chart-5: oklch(0.645 0.246 16.439);
71
- --sidebar: oklch(0.205 0 0);
72
- --sidebar-foreground: oklch(0.985 0 0);
73
- --sidebar-primary: oklch(0.488 0.243 264.376);
74
- --sidebar-primary-foreground: oklch(0.985 0 0);
75
- --sidebar-accent: oklch(0.269 0 0);
76
- --sidebar-accent-foreground: oklch(0.985 0 0);
77
- --sidebar-border: oklch(0.269 0 0);
78
- --sidebar-ring: oklch(0.439 0 0);
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);
79
104
  }
80
105
 
81
106
  @theme inline {
@@ -103,10 +128,6 @@
103
128
  --color-chart-3: var(--chart-3);
104
129
  --color-chart-4: var(--chart-4);
105
130
  --color-chart-5: var(--chart-5);
106
- --radius-sm: calc(var(--radius) - 4px);
107
- --radius-md: calc(var(--radius) - 2px);
108
- --radius-lg: var(--radius);
109
- --radius-xl: calc(var(--radius) + 4px);
110
131
  --color-sidebar: var(--sidebar);
111
132
  --color-sidebar-foreground: var(--sidebar-foreground);
112
133
  --color-sidebar-primary: var(--sidebar-primary);
@@ -115,13 +136,32 @@
115
136
  --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
116
137
  --color-sidebar-border: var(--sidebar-border);
117
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);
118
157
  }
119
158
 
120
159
  @layer base {
121
160
  * {
122
161
  @apply tw:border-border tw:outline-ring/50;
123
162
  }
163
+
124
164
  body {
125
165
  @apply tw:bg-background tw:text-foreground;
126
166
  }
127
- }
167
+ }
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
- export * from "./components/button";
2
- export * from "./components/card";
3
- export * from "./components/checkbox";
4
- export * from "./components/input";
5
- export * from "./components/label";
6
- export * from "./components/popover";
7
- export * from "./components/switch";
8
- export * from "./lib/utils";
1
+ export { Button, buttonVariants } from './components/button.js';
2
+ export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from './components/card.js';
3
+ export { Checkbox } from './components/checkbox.js';
4
+ export { Input } from './components/input.js';
5
+ export { Label } from './components/label.js';
6
+ export { Popover, PopoverAnchor, PopoverContent, PopoverTrigger } from './components/popover.js';
7
+ export { Switch } from './components/switch.js';
8
+ export { cn } from './lib/utils.js';
package/dist/lib/utils.js CHANGED
@@ -1,5 +1,8 @@
1
- import { clsx } from "clsx";
2
- import { twMerge } from "tailwind-merge";
3
- export function cn(...inputs) {
1
+ import { clsx } from 'clsx';
2
+ import { twMerge } from 'tailwind-merge';
3
+
4
+ function cn(...inputs) {
4
5
  return twMerge(clsx(inputs));
5
6
  }
7
+
8
+ export { cn };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getgreenline/blaze-ui",
3
- "version": "1.0.9",
3
+ "version": "1.0.11",
4
4
  "type": "module",
5
5
  "dependencies": {
6
6
  "@radix-ui/react-checkbox": "^1.3.3",
@@ -22,13 +22,17 @@
22
22
  "devDependencies": {
23
23
  "@tailwindcss/postcss": "^4.1.11",
24
24
  "@turbo/gen": "^2.5.5",
25
+ "@rollup/plugin-commonjs": "^28.0.0",
26
+ "@rollup/plugin-node-resolve": "^15.3.0",
27
+ "@rollup/plugin-typescript": "^12.1.0",
25
28
  "@types/node": "^20.19.9",
26
29
  "@types/react": "^19.1.9",
27
30
  "@types/react-dom": "^19.1.7",
31
+ "rollup": "^4.52.0",
28
32
  "tailwindcss": "^4.1.11",
29
33
  "typescript": "^5.9.2",
30
- "@workspace/eslint-config": "0.0.0",
31
- "@workspace/typescript-config": "0.0.0"
34
+ "@workspace/typescript-config": "0.0.0",
35
+ "@workspace/eslint-config": "0.0.0"
32
36
  },
33
37
  "main": "./dist/index.js",
34
38
  "module": "./dist/index.js",
@@ -65,8 +69,9 @@
65
69
  }
66
70
  },
67
71
  "scripts": {
68
- "build": "pnpm run clean && pnpm run build:ts && pnpm run build:assets",
69
- "build:ts": "tsc -p tsconfig.build.json",
72
+ "build": "pnpm run clean && pnpm run build:js && pnpm run build:types && pnpm run build:assets",
73
+ "build:js": "rollup -c",
74
+ "build:types": "tsc -p tsconfig.build.json",
70
75
  "build:assets": "mkdir -p dist && cp src/styles/globals.css dist/globals.css",
71
76
  "clean": "rm -rf dist",
72
77
  "lint": "eslint . --max-warnings 0"