@framingui/ui 0.6.3 → 0.6.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.
Files changed (134) hide show
  1. package/dist/chunk-RWYATDH5.mjs +180 -0
  2. package/dist/index.mjs +186 -174
  3. package/dist/src/components/alert-dialog.stories.js +1 -1
  4. package/dist/src/components/alert-dialog.stories.js.map +1 -1
  5. package/dist/src/components/avatar.js +2 -2
  6. package/dist/src/components/avatar.js.map +1 -1
  7. package/dist/src/components/avatar.stories.js +2 -2
  8. package/dist/src/components/avatar.stories.js.map +1 -1
  9. package/dist/src/components/badge.js +5 -5
  10. package/dist/src/components/badge.js.map +1 -1
  11. package/dist/src/components/breadcrumb.js +7 -7
  12. package/dist/src/components/breadcrumb.js.map +1 -1
  13. package/dist/src/components/button.js +10 -10
  14. package/dist/src/components/button.js.map +1 -1
  15. package/dist/src/components/calendar.js +11 -11
  16. package/dist/src/components/calendar.js.map +1 -1
  17. package/dist/src/components/calendar.stories.js +9 -9
  18. package/dist/src/components/calendar.stories.js.map +1 -1
  19. package/dist/src/components/card.js +5 -5
  20. package/dist/src/components/card.js.map +1 -1
  21. package/dist/src/components/card.stories.js +3 -3
  22. package/dist/src/components/card.stories.js.map +1 -1
  23. package/dist/src/components/checkbox.js +1 -1
  24. package/dist/src/components/checkbox.js.map +1 -1
  25. package/dist/src/components/checkbox.stories.js +2 -2
  26. package/dist/src/components/checkbox.stories.js.map +1 -1
  27. package/dist/src/components/command.d.ts +7 -7
  28. package/dist/src/components/command.js +8 -8
  29. package/dist/src/components/command.js.map +1 -1
  30. package/dist/src/components/command.stories.js +6 -6
  31. package/dist/src/components/command.stories.js.map +1 -1
  32. package/dist/src/components/dialog.stories.js +1 -1
  33. package/dist/src/components/dialog.stories.js.map +1 -1
  34. package/dist/src/components/dropdown-menu.js +8 -8
  35. package/dist/src/components/dropdown-menu.js.map +1 -1
  36. package/dist/src/components/form.js +4 -4
  37. package/dist/src/components/form.js.map +1 -1
  38. package/dist/src/components/input.js +1 -1
  39. package/dist/src/components/input.js.map +1 -1
  40. package/dist/src/components/input.stories.js +2 -2
  41. package/dist/src/components/input.stories.js.map +1 -1
  42. package/dist/src/components/label.stories.js +2 -2
  43. package/dist/src/components/label.stories.js.map +1 -1
  44. package/dist/src/components/navigation-menu.js +4 -4
  45. package/dist/src/components/navigation-menu.js.map +1 -1
  46. package/dist/src/components/navigation-menu.stories.js +2 -2
  47. package/dist/src/components/navigation-menu.stories.js.map +1 -1
  48. package/dist/src/components/popover.js +1 -1
  49. package/dist/src/components/popover.js.map +1 -1
  50. package/dist/src/components/popover.stories.js +2 -2
  51. package/dist/src/components/popover.stories.js.map +1 -1
  52. package/dist/src/components/progress.js +1 -1
  53. package/dist/src/components/progress.js.map +1 -1
  54. package/dist/src/components/radio-group.js +2 -2
  55. package/dist/src/components/radio-group.js.map +1 -1
  56. package/dist/src/components/radio-group.stories.js +2 -2
  57. package/dist/src/components/radio-group.stories.js.map +1 -1
  58. package/dist/src/components/scroll-area.js +1 -1
  59. package/dist/src/components/scroll-area.js.map +1 -1
  60. package/dist/src/components/scroll-area.stories.js +4 -4
  61. package/dist/src/components/scroll-area.stories.js.map +1 -1
  62. package/dist/src/components/select.js +5 -5
  63. package/dist/src/components/select.js.map +1 -1
  64. package/dist/src/components/separator.js +1 -1
  65. package/dist/src/components/separator.js.map +1 -1
  66. package/dist/src/components/separator.stories.js +2 -2
  67. package/dist/src/components/separator.stories.js.map +1 -1
  68. package/dist/src/components/sheet.d.ts +1 -1
  69. package/dist/src/components/sheet.js +11 -11
  70. package/dist/src/components/sheet.js.map +1 -1
  71. package/dist/src/components/sidebar.js +13 -13
  72. package/dist/src/components/sidebar.js.map +1 -1
  73. package/dist/src/components/sidebar.stories.js +2 -2
  74. package/dist/src/components/sidebar.stories.js.map +1 -1
  75. package/dist/src/components/skeleton.js +1 -1
  76. package/dist/src/components/skeleton.js.map +1 -1
  77. package/dist/src/components/skeleton.stories.js +1 -1
  78. package/dist/src/components/skeleton.stories.js.map +1 -1
  79. package/dist/src/components/switch.js +1 -1
  80. package/dist/src/components/switch.js.map +1 -1
  81. package/dist/src/components/switch.stories.js +3 -3
  82. package/dist/src/components/switch.stories.js.map +1 -1
  83. package/dist/src/components/table.js +5 -5
  84. package/dist/src/components/table.js.map +1 -1
  85. package/dist/src/components/tabs.js +3 -3
  86. package/dist/src/components/tabs.js.map +1 -1
  87. package/dist/src/components/tabs.stories.js +2 -2
  88. package/dist/src/components/tabs.stories.js.map +1 -1
  89. package/dist/src/components/textarea.js +1 -1
  90. package/dist/src/components/textarea.js.map +1 -1
  91. package/dist/src/components/textarea.stories.js +4 -4
  92. package/dist/src/components/textarea.stories.js.map +1 -1
  93. package/dist/src/components/toast.js +6 -6
  94. package/dist/src/components/toast.js.map +1 -1
  95. package/dist/src/components/tooltip.js +1 -1
  96. package/dist/src/components/tooltip.js.map +1 -1
  97. package/dist/src/lib/theme-loader.d.ts.map +1 -1
  98. package/dist/src/lib/theme-loader.js +41 -29
  99. package/dist/src/lib/theme-loader.js.map +1 -1
  100. package/dist/src/lib/tokens.d.ts.map +1 -1
  101. package/dist/src/lib/tokens.js +38 -38
  102. package/dist/src/lib/tokens.js.map +1 -1
  103. package/dist/src/templates/auth/forgot-password.js +1 -1
  104. package/dist/src/templates/auth/forgot-password.js.map +1 -1
  105. package/dist/src/templates/auth/login.js +1 -1
  106. package/dist/src/templates/auth/login.js.map +1 -1
  107. package/dist/src/templates/auth/signup.js +1 -1
  108. package/dist/src/templates/auth/signup.js.map +1 -1
  109. package/dist/src/templates/auth/verification.js +1 -1
  110. package/dist/src/templates/auth/verification.js.map +1 -1
  111. package/dist/src/templates/core/landing.js +1 -1
  112. package/dist/src/templates/core/landing.js.map +1 -1
  113. package/dist/src/templates/core/preferences.js +1 -1
  114. package/dist/src/templates/core/preferences.js.map +1 -1
  115. package/dist/src/templates/core/profile.js +1 -1
  116. package/dist/src/templates/core/profile.js.map +1 -1
  117. package/dist/src/templates/dashboard/overview.js +1 -1
  118. package/dist/src/templates/dashboard/overview.js.map +1 -1
  119. package/dist/src/templates/feedback/confirmation.js +1 -1
  120. package/dist/src/templates/feedback/confirmation.js.map +1 -1
  121. package/dist/src/templates/feedback/empty.js +1 -1
  122. package/dist/src/templates/feedback/empty.js.map +1 -1
  123. package/dist/src/templates/feedback/error.js +1 -1
  124. package/dist/src/templates/feedback/error.js.map +1 -1
  125. package/dist/src/templates/feedback/loading.js +1 -1
  126. package/dist/src/templates/feedback/loading.js.map +1 -1
  127. package/dist/src/templates/feedback/success.js +1 -1
  128. package/dist/src/templates/feedback/success.js.map +1 -1
  129. package/dist/src/templates/types.js +6 -6
  130. package/dist/src/templates/types.js.map +1 -1
  131. package/dist/templates/index.mjs +111 -111
  132. package/dist/tsconfig.tsbuildinfo +1 -1
  133. package/package.json +3 -3
  134. package/styles/globals.css +113 -84
@@ -0,0 +1,180 @@
1
+ 'use client';
2
+
3
+ // src/lib/utils.ts
4
+ import { clsx } from "clsx";
5
+ import { twMerge } from "tailwind-merge";
6
+ function cn(...inputs) {
7
+ return twMerge(clsx(inputs));
8
+ }
9
+
10
+ // src/components/button.tsx
11
+ import * as React from "react";
12
+ import { Slot } from "@radix-ui/react-slot";
13
+ import { cva } from "class-variance-authority";
14
+ import { jsx } from "react/jsx-runtime";
15
+ var buttonVariants = cva(
16
+ "inline-flex items-center justify-center whitespace-nowrap rounded-[var(--radius-xl)] text-sm font-medium ring-offset-[var(--bg-background)] transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--border-ring)] focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
17
+ {
18
+ variants: {
19
+ variant: {
20
+ default: "bg-[var(--bg-primary)] text-[var(--bg-primary-foreground)] hover:bg-[var(--bg-primary)]/90",
21
+ destructive: "bg-[var(--bg-destructive)] text-[var(--bg-destructive-foreground)] hover:bg-[var(--bg-destructive)]/90",
22
+ outline: "border border-[var(--border-input)] bg-[var(--bg-background)] hover:bg-[var(--bg-accent)] hover:text-[var(--bg-accent-foreground)]",
23
+ secondary: "bg-[var(--bg-secondary)] text-[var(--bg-secondary-foreground)] hover:bg-[var(--bg-secondary)]/80",
24
+ ghost: "hover:bg-[var(--bg-accent)] hover:text-[var(--bg-accent-foreground)]",
25
+ link: "text-[var(--bg-primary)] underline-offset-4 hover:underline"
26
+ },
27
+ size: {
28
+ default: "h-10 px-[var(--spacing-4)] py-[var(--spacing-2)]",
29
+ sm: "h-9 rounded-[var(--radius-xl)] px-[var(--spacing-3)]",
30
+ lg: "h-11 rounded-[var(--radius-xl)] px-[var(--spacing-8)]",
31
+ icon: "h-10 w-10"
32
+ }
33
+ },
34
+ defaultVariants: {
35
+ variant: "default",
36
+ size: "default"
37
+ }
38
+ }
39
+ );
40
+ var Button = React.forwardRef(
41
+ ({ className, variant, size, asChild = false, ...props }, ref) => {
42
+ const Comp = asChild ? Slot : "button";
43
+ return /* @__PURE__ */ jsx(Comp, { className: cn(buttonVariants({ variant, size, className })), ref, ...props });
44
+ }
45
+ );
46
+ Button.displayName = "Button";
47
+
48
+ // src/components/input.tsx
49
+ import * as React2 from "react";
50
+ import { jsx as jsx2 } from "react/jsx-runtime";
51
+ var Input = React2.forwardRef(
52
+ ({ className, type, ...props }, ref) => {
53
+ return /* @__PURE__ */ jsx2(
54
+ "input",
55
+ {
56
+ type,
57
+ className: cn(
58
+ "flex h-10 w-full rounded-[var(--radius-md)] border border-[var(--border-input)] bg-[var(--bg-background)] px-[var(--spacing-3)] py-[var(--spacing-2)] text-sm ring-offset-[var(--bg-background)] file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-[var(--bg-muted-foreground)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--border-ring)] focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
59
+ className
60
+ ),
61
+ ref,
62
+ ...props
63
+ }
64
+ );
65
+ }
66
+ );
67
+ Input.displayName = "Input";
68
+
69
+ // src/components/label.tsx
70
+ import * as React3 from "react";
71
+ import * as LabelPrimitive from "@radix-ui/react-label";
72
+ import { cva as cva2 } from "class-variance-authority";
73
+ import { jsx as jsx3 } from "react/jsx-runtime";
74
+ var labelVariants = cva2(
75
+ "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
76
+ );
77
+ var Label = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx3(LabelPrimitive.Root, { ref, className: cn(labelVariants(), className), ...props }));
78
+ Label.displayName = LabelPrimitive.Root.displayName;
79
+
80
+ // src/components/card.tsx
81
+ import * as React4 from "react";
82
+ import { jsx as jsx4 } from "react/jsx-runtime";
83
+ var Card = React4.forwardRef(
84
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx4(
85
+ "div",
86
+ {
87
+ ref,
88
+ className: cn(
89
+ "rounded-[var(--radius-lg)] border border-[var(--border-default)] bg-[var(--bg-card)] text-[var(--bg-card-foreground)] shadow-sm",
90
+ className
91
+ ),
92
+ ...props
93
+ }
94
+ )
95
+ );
96
+ Card.displayName = "Card";
97
+ var CardHeader = React4.forwardRef(
98
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx4(
99
+ "div",
100
+ {
101
+ ref,
102
+ className: cn(
103
+ "flex flex-col space-y-[var(--spacing-2)] p-[var(--spacing-6)]",
104
+ className
105
+ ),
106
+ ...props
107
+ }
108
+ )
109
+ );
110
+ CardHeader.displayName = "CardHeader";
111
+ var CardTitle = React4.forwardRef(
112
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx4(
113
+ "h3",
114
+ {
115
+ ref,
116
+ className: cn("text-2xl font-semibold leading-none tracking-tight", className),
117
+ ...props
118
+ }
119
+ )
120
+ );
121
+ CardTitle.displayName = "CardTitle";
122
+ var CardDescription = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx4(
123
+ "p",
124
+ {
125
+ ref,
126
+ className: cn("text-sm text-[var(--bg-muted-foreground)]", className),
127
+ ...props
128
+ }
129
+ ));
130
+ CardDescription.displayName = "CardDescription";
131
+ var CardContent = React4.forwardRef(
132
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx4("div", { ref, className: cn("p-[var(--spacing-6)] pt-0", className), ...props })
133
+ );
134
+ CardContent.displayName = "CardContent";
135
+ var CardFooter = React4.forwardRef(
136
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx4(
137
+ "div",
138
+ {
139
+ ref,
140
+ className: cn("flex items-center p-[var(--spacing-6)] pt-0", className),
141
+ ...props
142
+ }
143
+ )
144
+ );
145
+ CardFooter.displayName = "CardFooter";
146
+
147
+ // src/components/separator.tsx
148
+ import * as React5 from "react";
149
+ import * as SeparatorPrimitive from "@radix-ui/react-separator";
150
+ import { jsx as jsx5 } from "react/jsx-runtime";
151
+ var Separator = React5.forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsx5(
152
+ SeparatorPrimitive.Root,
153
+ {
154
+ ref,
155
+ decorative,
156
+ orientation,
157
+ className: cn(
158
+ "shrink-0 bg-[var(--border-default)]",
159
+ orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
160
+ className
161
+ ),
162
+ ...props
163
+ }
164
+ ));
165
+ Separator.displayName = SeparatorPrimitive.Root.displayName;
166
+
167
+ export {
168
+ cn,
169
+ buttonVariants,
170
+ Button,
171
+ Input,
172
+ Label,
173
+ Card,
174
+ CardHeader,
175
+ CardTitle,
176
+ CardDescription,
177
+ CardContent,
178
+ CardFooter,
179
+ Separator
180
+ };