@framingui/ui 0.6.11 → 0.6.12

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.
Files changed (67) hide show
  1. package/README.md +3 -0
  2. package/dist/src/components/badge.d.ts +1 -1
  3. package/dist/src/components/breadcrumb.d.ts +1 -1
  4. package/dist/src/components/button.d.ts +2 -2
  5. package/dist/src/components/command.d.ts +3 -3
  6. package/dist/src/components/sheet.d.ts +1 -1
  7. package/dist/src/primitives/badge.d.ts +1 -1
  8. package/dist/src/primitives/button.d.ts +2 -2
  9. package/dist/src/primitives/heading.d.ts +1 -1
  10. package/dist/src/primitives/text.d.ts +2 -2
  11. package/dist/tsconfig.tsbuildinfo +1 -1
  12. package/package.json +1 -1
  13. package/styles/tokens.css +3 -0
  14. package/dist/chunk-7UBERMRE.mjs +0 -180
  15. package/dist/chunk-RWYATDH5.mjs +0 -180
  16. package/dist/src/templates/auth/forgot-password.stories.d.ts +0 -14
  17. package/dist/src/templates/auth/forgot-password.stories.d.ts.map +0 -1
  18. package/dist/src/templates/auth/forgot-password.stories.js +0 -14
  19. package/dist/src/templates/auth/forgot-password.stories.js.map +0 -1
  20. package/dist/src/templates/auth/login.stories.d.ts +0 -95
  21. package/dist/src/templates/auth/login.stories.d.ts.map +0 -1
  22. package/dist/src/templates/auth/login.stories.js +0 -77
  23. package/dist/src/templates/auth/login.stories.js.map +0 -1
  24. package/dist/src/templates/auth/signup.stories.d.ts +0 -18
  25. package/dist/src/templates/auth/signup.stories.d.ts.map +0 -1
  26. package/dist/src/templates/auth/signup.stories.js +0 -21
  27. package/dist/src/templates/auth/signup.stories.js.map +0 -1
  28. package/dist/src/templates/auth/verification.stories.d.ts +0 -19
  29. package/dist/src/templates/auth/verification.stories.d.ts.map +0 -1
  30. package/dist/src/templates/auth/verification.stories.js +0 -19
  31. package/dist/src/templates/auth/verification.stories.js.map +0 -1
  32. package/dist/src/templates/core/landing.stories.d.ts +0 -14
  33. package/dist/src/templates/core/landing.stories.d.ts.map +0 -1
  34. package/dist/src/templates/core/landing.stories.js +0 -14
  35. package/dist/src/templates/core/landing.stories.js.map +0 -1
  36. package/dist/src/templates/core/preferences.stories.d.ts +0 -14
  37. package/dist/src/templates/core/preferences.stories.d.ts.map +0 -1
  38. package/dist/src/templates/core/preferences.stories.js +0 -14
  39. package/dist/src/templates/core/preferences.stories.js.map +0 -1
  40. package/dist/src/templates/core/profile.stories.d.ts +0 -19
  41. package/dist/src/templates/core/profile.stories.d.ts.map +0 -1
  42. package/dist/src/templates/core/profile.stories.js +0 -19
  43. package/dist/src/templates/core/profile.stories.js.map +0 -1
  44. package/dist/src/templates/dashboard/overview.stories.d.ts +0 -55
  45. package/dist/src/templates/dashboard/overview.stories.d.ts.map +0 -1
  46. package/dist/src/templates/dashboard/overview.stories.js +0 -51
  47. package/dist/src/templates/dashboard/overview.stories.js.map +0 -1
  48. package/dist/src/templates/feedback/confirmation.stories.d.ts +0 -14
  49. package/dist/src/templates/feedback/confirmation.stories.d.ts.map +0 -1
  50. package/dist/src/templates/feedback/confirmation.stories.js +0 -14
  51. package/dist/src/templates/feedback/confirmation.stories.js.map +0 -1
  52. package/dist/src/templates/feedback/empty.stories.d.ts +0 -14
  53. package/dist/src/templates/feedback/empty.stories.d.ts.map +0 -1
  54. package/dist/src/templates/feedback/empty.stories.js +0 -14
  55. package/dist/src/templates/feedback/empty.stories.js.map +0 -1
  56. package/dist/src/templates/feedback/error.stories.d.ts +0 -14
  57. package/dist/src/templates/feedback/error.stories.d.ts.map +0 -1
  58. package/dist/src/templates/feedback/error.stories.js +0 -14
  59. package/dist/src/templates/feedback/error.stories.js.map +0 -1
  60. package/dist/src/templates/feedback/loading.stories.d.ts +0 -14
  61. package/dist/src/templates/feedback/loading.stories.d.ts.map +0 -1
  62. package/dist/src/templates/feedback/loading.stories.js +0 -14
  63. package/dist/src/templates/feedback/loading.stories.js.map +0 -1
  64. package/dist/src/templates/feedback/success.stories.d.ts +0 -14
  65. package/dist/src/templates/feedback/success.stories.d.ts.map +0 -1
  66. package/dist/src/templates/feedback/success.stories.js +0 -14
  67. package/dist/src/templates/feedback/success.stories.js.map +0 -1
package/README.md CHANGED
@@ -8,6 +8,7 @@ Use this package when you want FramingUI components directly in an app, whether
8
8
 
9
9
  ```bash
10
10
  pnpm add @framingui/ui
11
+ pnpm add -D tailwindcss-animate
11
12
  ```
12
13
 
13
14
  Import the shared styles once at the app root when your app uses the FramingUI-native style contract:
@@ -17,6 +18,8 @@ Import the shared styles once at the app root when your app uses the FramingUI-n
17
18
  @import '@framingui/ui/styles';
18
19
  ```
19
20
 
21
+ In Tailwind v4 projects, that import also registers FramingUI's packaged utility sources and the `tailwindcss-animate` plugin hook.
22
+
20
23
  Then mount `FramingUIProvider` near your root layout. Pass a full theme object when you want FramingUI to inject the CSS variables for you.
21
24
 
22
25
  ```tsx
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { type VariantProps } from 'class-variance-authority';
3
3
  declare const badgeVariants: (props?: ({
4
- variant?: "default" | "destructive" | "outline" | "secondary" | null | undefined;
4
+ variant?: "default" | "outline" | "destructive" | "secondary" | null | undefined;
5
5
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
6
  export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
7
7
  }
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { type VariantProps } from 'class-variance-authority';
3
3
  declare const breadcrumbVariants: (props?: ({
4
- size?: "default" | "sm" | "lg" | null | undefined;
4
+ size?: "sm" | "default" | "lg" | null | undefined;
5
5
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
6
  declare const breadcrumbLinkVariants: (props?: ({
7
7
  active?: boolean | null | undefined;
@@ -1,8 +1,8 @@
1
1
  import * as React from 'react';
2
2
  import { type VariantProps } from 'class-variance-authority';
3
3
  declare const buttonVariants: (props?: ({
4
- variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
5
- size?: "default" | "sm" | "lg" | "icon" | null | undefined;
4
+ variant?: "link" | "default" | "outline" | "destructive" | "secondary" | "ghost" | null | undefined;
5
+ size?: "sm" | "default" | "lg" | "icon" | null | undefined;
6
6
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
7
  export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
8
8
  asChild?: boolean;
@@ -22,7 +22,7 @@ declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<
22
22
  ref?: React.Ref<HTMLInputElement>;
23
23
  } & {
24
24
  asChild?: boolean;
25
- }, "key" | "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "type" | "value" | "onChange"> & {
25
+ }, "key" | "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "type" | "value"> & {
26
26
  value?: string;
27
27
  onValueChange?: (search: string) => void;
28
28
  } & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
@@ -48,7 +48,7 @@ declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
48
48
  ref?: React.Ref<HTMLDivElement>;
49
49
  } & {
50
50
  asChild?: boolean;
51
- }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>>, "value" | "heading"> & {
51
+ }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>>, "heading" | "value"> & {
52
52
  heading?: React.ReactNode;
53
53
  value?: string;
54
54
  forceMount?: boolean;
@@ -66,7 +66,7 @@ declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
66
66
  ref?: React.Ref<HTMLDivElement>;
67
67
  } & {
68
68
  asChild?: boolean;
69
- }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>>, "disabled" | "value" | "onSelect"> & {
69
+ }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>>, "onSelect" | "disabled" | "value"> & {
70
70
  disabled?: boolean;
71
71
  onSelect?: (value: string) => void;
72
72
  value?: string;
@@ -7,7 +7,7 @@ declare const SheetClose: React.ForwardRefExoticComponent<SheetPrimitive.DialogC
7
7
  declare const SheetPortal: React.FC<SheetPrimitive.DialogPortalProps>;
8
8
  declare const SheetOverlay: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
9
9
  declare const sheetVariants: (props?: ({
10
- side?: "left" | "right" | "top" | "bottom" | null | undefined;
10
+ side?: "bottom" | "left" | "right" | "top" | null | undefined;
11
11
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
12
12
  interface SheetContentProps extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>, VariantProps<typeof sheetVariants> {
13
13
  }
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { type VariantProps } from 'class-variance-authority';
3
3
  declare const badgeVariants: (props?: ({
4
- variant?: "default" | "destructive" | "outline" | "secondary" | null | undefined;
4
+ variant?: "default" | "outline" | "destructive" | "secondary" | null | undefined;
5
5
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
6
  export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
7
7
  }
@@ -1,8 +1,8 @@
1
1
  import * as React from 'react';
2
2
  import { type VariantProps } from 'class-variance-authority';
3
3
  declare const buttonVariants: (props?: ({
4
- variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
5
- size?: "default" | "sm" | "lg" | "icon" | null | undefined;
4
+ variant?: "link" | "default" | "outline" | "destructive" | "secondary" | "ghost" | null | undefined;
5
+ size?: "sm" | "default" | "lg" | "icon" | null | undefined;
6
6
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
7
  export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
8
8
  asChild?: boolean;
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { type VariantProps } from 'class-variance-authority';
3
3
  declare const headingVariants: (props?: ({
4
- level?: 1 | 2 | 4 | 3 | 5 | 6 | null | undefined;
4
+ level?: 1 | 2 | 3 | 4 | 5 | 6 | null | undefined;
5
5
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
6
  export interface HeadingProps extends React.HTMLAttributes<HTMLHeadingElement>, VariantProps<typeof headingVariants> {
7
7
  level?: 1 | 2 | 3 | 4 | 5 | 6;
@@ -1,8 +1,8 @@
1
1
  import * as React from 'react';
2
2
  import { type VariantProps } from 'class-variance-authority';
3
3
  declare const textVariants: (props?: ({
4
- variant?: "caption" | "label" | "body" | "code" | null | undefined;
5
- size?: "default" | "sm" | "lg" | null | undefined;
4
+ variant?: "body" | "caption" | "code" | "label" | null | undefined;
5
+ size?: "sm" | "default" | "lg" | null | undefined;
6
6
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
7
  export interface TextProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof textVariants> {
8
8
  as?: 'span' | 'p' | 'div';