@alpic-ai/ui 0.0.0-dev.a6a82e3 → 0.0.0-dev.a8868b6

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.
@@ -6,7 +6,7 @@ import * as _$class_variance_authority_types0 from "class-variance-authority/typ
6
6
 
7
7
  //#region src/components/avatar.d.ts
8
8
  declare const avatarVariants: (props?: ({
9
- size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
9
+ size?: "sm" | "md" | "lg" | "xl" | "xs" | null | undefined;
10
10
  } & _$class_variance_authority_types0.ClassProp) | undefined) => string;
11
11
  type AvatarSize = NonNullable<VariantProps<typeof avatarVariants>["size"]>;
12
12
  type AvatarStatus = "online";
@@ -4,7 +4,7 @@ import * as _$class_variance_authority_types0 from "class-variance-authority/typ
4
4
 
5
5
  //#region src/components/badge.d.ts
6
6
  declare const badgeVariants: (props?: ({
7
- variant?: "warning" | "success" | "secondary" | "primary" | "error" | null | undefined;
7
+ variant?: "primary" | "secondary" | "warning" | "success" | "error" | null | undefined;
8
8
  size?: "sm" | "md" | null | undefined;
9
9
  } & _$class_variance_authority_types0.ClassProp) | undefined) => string;
10
10
  interface BadgeProps extends React.ComponentProps<"span">, VariantProps<typeof badgeVariants> {}
@@ -5,7 +5,7 @@ import * as _$class_variance_authority_types0 from "class-variance-authority/typ
5
5
 
6
6
  //#region src/components/button.d.ts
7
7
  declare const buttonVariants: (props?: ({
8
- variant?: "destructive" | "secondary" | "primary" | "tertiary" | "link" | "link-muted" | null | undefined;
8
+ variant?: "primary" | "secondary" | "destructive" | "tertiary" | "link" | "link-muted" | null | undefined;
9
9
  size?: "default" | "icon" | "icon-rounded" | "pill" | null | undefined;
10
10
  } & _$class_variance_authority_types0.ClassProp) | undefined) => string;
11
11
  interface ButtonProps extends React.ComponentProps<"button">, VariantProps<typeof buttonVariants> {
@@ -108,7 +108,7 @@ declare function SidebarMenuItem({
108
108
  }: React.ComponentProps<"li">): _$react_jsx_runtime0.JSX.Element;
109
109
  declare const sidebarMenuButtonVariants: (props?: ({
110
110
  variant?: "default" | "outline" | null | undefined;
111
- size?: "default" | "sm" | "lg" | null | undefined;
111
+ size?: "sm" | "lg" | "default" | null | undefined;
112
112
  } & _$class_variance_authority_types0.ClassProp) | undefined) => string;
113
113
  declare function SidebarMenuButton({
114
114
  asChild,
@@ -4,7 +4,7 @@ import * as _$class_variance_authority_types0 from "class-variance-authority/typ
4
4
 
5
5
  //#region src/components/spinner.d.ts
6
6
  declare const spinnerVariants: (props?: ({
7
- variant?: "secondary" | "primary" | null | undefined;
7
+ variant?: "primary" | "secondary" | null | undefined;
8
8
  size?: "sm" | "md" | "lg" | "xl" | null | undefined;
9
9
  } & _$class_variance_authority_types0.ClassProp) | undefined) => string;
10
10
  interface SpinnerProps extends Omit<React.ComponentProps<"svg">, "children">, VariantProps<typeof spinnerVariants> {}
@@ -7,7 +7,7 @@ import * as _$class_variance_authority_types0 from "class-variance-authority/typ
7
7
  //#region src/components/toggle-group.d.ts
8
8
  declare const toggleGroupItemVariants: (props?: ({
9
9
  variant?: "default" | "outline" | null | undefined;
10
- size?: "default" | "sm" | null | undefined;
10
+ size?: "sm" | "default" | null | undefined;
11
11
  } & _$class_variance_authority_types0.ClassProp) | undefined) => string;
12
12
  type ToggleGroupContextValue = VariantProps<typeof toggleGroupItemVariants>;
13
13
  declare function ToggleGroup({
@@ -0,0 +1,34 @@
1
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
2
+ import { ReactNode } from "react";
3
+
4
+ //#region src/components/typography.d.ts
5
+ declare function H1({
6
+ children,
7
+ className
8
+ }: {
9
+ children: ReactNode;
10
+ className?: string;
11
+ }): _$react_jsx_runtime0.JSX.Element;
12
+ declare function H2({
13
+ children,
14
+ className
15
+ }: {
16
+ children: ReactNode;
17
+ className?: string;
18
+ }): _$react_jsx_runtime0.JSX.Element;
19
+ declare function H3({
20
+ children,
21
+ className
22
+ }: {
23
+ children: ReactNode;
24
+ className?: string;
25
+ }): _$react_jsx_runtime0.JSX.Element;
26
+ declare function H4({
27
+ children,
28
+ className
29
+ }: {
30
+ children: ReactNode;
31
+ className?: string;
32
+ }): _$react_jsx_runtime0.JSX.Element;
33
+ //#endregion
34
+ export { H1, H2, H3, H4 };
@@ -0,0 +1,29 @@
1
+ import { cn } from "../lib/cn.mjs";
2
+ import { jsx } from "react/jsx-runtime";
3
+ //#region src/components/typography.tsx
4
+ function H1({ children, className }) {
5
+ return /* @__PURE__ */ jsx("h1", {
6
+ className: cn("scroll-m-20 type-display-sm font-bold", className),
7
+ children
8
+ });
9
+ }
10
+ function H2({ children, className }) {
11
+ return /* @__PURE__ */ jsx("h2", {
12
+ className: cn("scroll-m-20 type-display-xs font-semibold", className),
13
+ children
14
+ });
15
+ }
16
+ function H3({ children, className }) {
17
+ return /* @__PURE__ */ jsx("h3", {
18
+ className: cn("scroll-m-20 type-text-lg font-semibold", className),
19
+ children
20
+ });
21
+ }
22
+ function H4({ children, className }) {
23
+ return /* @__PURE__ */ jsx("h4", {
24
+ className: cn("scroll-m-20 type-text-md font-semibold", className),
25
+ children
26
+ });
27
+ }
28
+ //#endregion
29
+ export { H1, H2, H3, H4 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alpic-ai/ui",
3
- "version": "0.0.0-dev.a6a82e3",
3
+ "version": "0.0.0-dev.a8868b6",
4
4
  "description": "Alpic design system — shared UI components",
5
5
  "type": "module",
6
6
  "exports": {
@@ -0,0 +1,19 @@
1
+ import type { ReactNode } from "react";
2
+
3
+ import { cn } from "../lib/cn";
4
+
5
+ export function H1({ children, className }: { children: ReactNode; className?: string }) {
6
+ return <h1 className={cn("scroll-m-20 type-display-sm font-bold", className)}>{children}</h1>;
7
+ }
8
+
9
+ export function H2({ children, className }: { children: ReactNode; className?: string }) {
10
+ return <h2 className={cn("scroll-m-20 type-display-xs font-semibold", className)}>{children}</h2>;
11
+ }
12
+
13
+ export function H3({ children, className }: { children: ReactNode; className?: string }) {
14
+ return <h3 className={cn("scroll-m-20 type-text-lg font-semibold", className)}>{children}</h3>;
15
+ }
16
+
17
+ export function H4({ children, className }: { children: ReactNode; className?: string }) {
18
+ return <h4 className={cn("scroll-m-20 type-text-md font-semibold", className)}>{children}</h4>;
19
+ }