@recanica/ui 0.0.0-stage → 0.2.0

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 (147) hide show
  1. package/LICENSE +9 -0
  2. package/dist/components/accordion.d.ts +7 -0
  3. package/dist/components/accordion.js +65 -0
  4. package/dist/components/alert-dialog.d.ts +18 -0
  5. package/dist/components/alert-dialog.js +178 -0
  6. package/dist/components/alert.d.ts +9 -0
  7. package/dist/components/alert.js +66 -0
  8. package/dist/components/app-shell.d.ts +15 -0
  9. package/dist/components/app-shell.js +27 -0
  10. package/dist/components/aspect-ratio.d.ts +3 -0
  11. package/dist/components/aspect-ratio.js +11 -0
  12. package/dist/components/attachment.d.ts +24 -0
  13. package/dist/components/attachment.js +192 -0
  14. package/dist/components/avatar.d.ts +11 -0
  15. package/dist/components/avatar.js +104 -0
  16. package/dist/components/badge.d.ts +12 -0
  17. package/dist/components/badge.js +63 -0
  18. package/dist/components/breadcrumb.d.ts +11 -0
  19. package/dist/components/breadcrumb.js +103 -0
  20. package/dist/components/bubble.d.ts +17 -0
  21. package/dist/components/bubble.js +110 -0
  22. package/dist/components/button-group.d.ts +11 -0
  23. package/dist/components/button-group.js +76 -0
  24. package/dist/components/button.d.ts +10 -0
  25. package/dist/components/button.js +59 -0
  26. package/dist/components/calendar.d.ts +8 -0
  27. package/dist/components/calendar.js +195 -0
  28. package/dist/components/card.d.ts +9 -0
  29. package/dist/components/card.js +90 -0
  30. package/dist/components/carousel.d.ts +19 -0
  31. package/dist/components/carousel.js +199 -0
  32. package/dist/components/chart.d.ts +44 -0
  33. package/dist/components/chart.js +253 -0
  34. package/dist/components/checkbox.d.ts +4 -0
  35. package/dist/components/checkbox.js +33 -0
  36. package/dist/components/choice-card.d.ts +18 -0
  37. package/dist/components/choice-card.js +43 -0
  38. package/dist/components/collapsible.d.ts +5 -0
  39. package/dist/components/collapsible.js +35 -0
  40. package/dist/components/combobox.d.ts +24 -0
  41. package/dist/components/combobox.js +297 -0
  42. package/dist/components/command.d.ts +18 -0
  43. package/dist/components/command.js +177 -0
  44. package/dist/components/context-menu.d.ts +25 -0
  45. package/dist/components/context-menu.js +224 -0
  46. package/dist/components/dialog.d.ts +17 -0
  47. package/dist/components/dialog.js +147 -0
  48. package/dist/components/direction.d.ts +7 -0
  49. package/dist/components/direction.js +15 -0
  50. package/dist/components/drawer.d.ts +13 -0
  51. package/dist/components/drawer.js +129 -0
  52. package/dist/components/dropdown-menu.d.ts +25 -0
  53. package/dist/components/dropdown-menu.js +232 -0
  54. package/dist/components/empty.d.ts +11 -0
  55. package/dist/components/empty.js +102 -0
  56. package/dist/components/field.d.ts +52 -0
  57. package/dist/components/field.js +261 -0
  58. package/dist/components/form.d.ts +24 -0
  59. package/dist/components/form.js +126 -0
  60. package/dist/components/hover-card.d.ts +6 -0
  61. package/dist/components/hover-card.js +39 -0
  62. package/dist/components/input-group.d.ts +16 -0
  63. package/dist/components/input-group.js +160 -0
  64. package/dist/components/input-otp.d.ts +11 -0
  65. package/dist/components/input-otp.js +67 -0
  66. package/dist/components/input.d.ts +3 -0
  67. package/dist/components/input.js +25 -0
  68. package/dist/components/item.d.ts +23 -0
  69. package/dist/components/item.js +187 -0
  70. package/dist/components/kbd.d.ts +3 -0
  71. package/dist/components/kbd.js +31 -0
  72. package/dist/components/label.d.ts +4 -0
  73. package/dist/components/label.js +23 -0
  74. package/dist/components/layout.d.ts +34 -0
  75. package/dist/components/layout.js +46 -0
  76. package/dist/components/loader.d.ts +38 -0
  77. package/dist/components/loader.js +90 -0
  78. package/dist/components/marker.d.ts +11 -0
  79. package/dist/components/marker.js +66 -0
  80. package/dist/components/menubar.d.ts +26 -0
  81. package/dist/components/menubar.js +252 -0
  82. package/dist/components/message-scroller.d.ts +10 -0
  83. package/dist/components/message-scroller.js +118 -0
  84. package/dist/components/message.d.ts +10 -0
  85. package/dist/components/message.js +90 -0
  86. package/dist/components/native-select.d.ts +7 -0
  87. package/dist/components/native-select.js +71 -0
  88. package/dist/components/nav-item.d.ts +18 -0
  89. package/dist/components/nav-item.js +40 -0
  90. package/dist/components/navigation-menu.d.ts +14 -0
  91. package/dist/components/navigation-menu.js +170 -0
  92. package/dist/components/page.d.ts +80 -0
  93. package/dist/components/page.js +84 -0
  94. package/dist/components/pagination.d.ts +13 -0
  95. package/dist/components/pagination.js +122 -0
  96. package/dist/components/popover.d.ts +10 -0
  97. package/dist/components/popover.js +81 -0
  98. package/dist/components/progress.d.ts +4 -0
  99. package/dist/components/progress.js +32 -0
  100. package/dist/components/radio-group.d.ts +5 -0
  101. package/dist/components/radio-group.js +46 -0
  102. package/dist/components/resizable.d.ts +7 -0
  103. package/dist/components/resizable.js +47 -0
  104. package/dist/components/scroll-area.d.ts +5 -0
  105. package/dist/components/scroll-area.js +61 -0
  106. package/dist/components/select.d.ts +15 -0
  107. package/dist/components/select.js +179 -0
  108. package/dist/components/separator.d.ts +4 -0
  109. package/dist/components/separator.js +27 -0
  110. package/dist/components/sheet.d.ts +14 -0
  111. package/dist/components/sheet.js +128 -0
  112. package/dist/components/sidebar.d.ts +69 -0
  113. package/dist/components/sidebar.js +650 -0
  114. package/dist/components/skeleton.d.ts +2 -0
  115. package/dist/components/skeleton.js +15 -0
  116. package/dist/components/slider.d.ts +4 -0
  117. package/dist/components/slider.js +64 -0
  118. package/dist/components/sonner.d.ts +3 -0
  119. package/dist/components/sonner.js +38 -0
  120. package/dist/components/spinner.d.ts +2 -0
  121. package/dist/components/spinner.js +17 -0
  122. package/dist/components/stat.d.ts +47 -0
  123. package/dist/components/stat.js +120 -0
  124. package/dist/components/surface.d.ts +28 -0
  125. package/dist/components/surface.js +39 -0
  126. package/dist/components/switch.d.ts +6 -0
  127. package/dist/components/switch.js +34 -0
  128. package/dist/components/table.d.ts +10 -0
  129. package/dist/components/table.js +115 -0
  130. package/dist/components/tabs.d.ts +11 -0
  131. package/dist/components/tabs.js +92 -0
  132. package/dist/components/textarea.d.ts +3 -0
  133. package/dist/components/textarea.js +22 -0
  134. package/dist/components/toggle-group.d.ts +9 -0
  135. package/dist/components/toggle-group.js +69 -0
  136. package/dist/components/toggle.d.ts +9 -0
  137. package/dist/components/toggle.js +44 -0
  138. package/dist/components/tooltip.d.ts +7 -0
  139. package/dist/components/tooltip.js +56 -0
  140. package/dist/components/web-section.d.ts +40 -0
  141. package/dist/components/web-section.js +72 -0
  142. package/dist/hooks/use-mobile.d.ts +1 -0
  143. package/dist/hooks/use-mobile.js +18 -0
  144. package/dist/lib/utils.d.ts +2 -0
  145. package/dist/lib/utils.js +8 -0
  146. package/package.json +79 -3
  147. package/README.md +0 -3
@@ -0,0 +1,9 @@
1
+ import * as React from "react";
2
+ import { type VariantProps } from "class-variance-authority";
3
+ import { ToggleGroup as ToggleGroupPrimitive } from "radix-ui";
4
+ import { toggleVariants } from "@recanica/ui/components/toggle";
5
+ declare function ToggleGroup({ className, variant, size, spacing, children, ...props }: React.ComponentProps<typeof ToggleGroupPrimitive.Root> & VariantProps<typeof toggleVariants> & {
6
+ spacing?: number;
7
+ }): React.JSX.Element;
8
+ declare function ToggleGroupItem({ className, children, variant, size, ...props }: React.ComponentProps<typeof ToggleGroupPrimitive.Item> & VariantProps<typeof toggleVariants>): React.JSX.Element;
9
+ export { ToggleGroup, ToggleGroupItem };
@@ -0,0 +1,69 @@
1
+ "use client";
2
+ import { jsx } from "react/jsx-runtime";
3
+ import * as React from "react";
4
+ import { cn } from "@recanica/ui/lib/utils";
5
+ import { ToggleGroup as ToggleGroupPrimitive } from "radix-ui";
6
+ import { toggleVariants } from "@recanica/ui/components/toggle";
7
+ const ToggleGroupContext = React.createContext({
8
+ size: "default",
9
+ variant: "default",
10
+ spacing: 0
11
+ });
12
+ function ToggleGroup({
13
+ className,
14
+ variant,
15
+ size,
16
+ spacing = 0,
17
+ children,
18
+ ...props
19
+ }) {
20
+ return /* @__PURE__ */ jsx(
21
+ ToggleGroupPrimitive.Root,
22
+ {
23
+ "data-slot": "toggle-group",
24
+ "data-variant": variant,
25
+ "data-size": size,
26
+ "data-spacing": spacing,
27
+ style: { "--gap": spacing },
28
+ className: cn(
29
+ "group/toggle-group flex w-fit items-center gap-[--spacing(var(--gap))] rounded-md data-[spacing=default]:data-[variant=outline]:shadow-xs",
30
+ className
31
+ ),
32
+ ...props,
33
+ children: /* @__PURE__ */ jsx(ToggleGroupContext.Provider, { value: { variant, size, spacing }, children })
34
+ }
35
+ );
36
+ }
37
+ function ToggleGroupItem({
38
+ className,
39
+ children,
40
+ variant,
41
+ size,
42
+ ...props
43
+ }) {
44
+ const context = React.useContext(ToggleGroupContext);
45
+ return /* @__PURE__ */ jsx(
46
+ ToggleGroupPrimitive.Item,
47
+ {
48
+ "data-slot": "toggle-group-item",
49
+ "data-variant": context.variant || variant,
50
+ "data-size": context.size || size,
51
+ "data-spacing": context.spacing,
52
+ className: cn(
53
+ toggleVariants({
54
+ variant: context.variant || variant,
55
+ size: context.size || size
56
+ }),
57
+ "w-auto min-w-0 shrink-0 px-3 focus:z-10 focus-visible:z-10",
58
+ "data-[spacing=0]:rounded-none data-[spacing=0]:shadow-none data-[spacing=0]:first:rounded-l-md data-[spacing=0]:last:rounded-r-md data-[spacing=0]:data-[variant=outline]:border-l-0 data-[spacing=0]:data-[variant=outline]:first:border-l",
59
+ className
60
+ ),
61
+ ...props,
62
+ children
63
+ }
64
+ );
65
+ }
66
+ export {
67
+ ToggleGroup,
68
+ ToggleGroupItem
69
+ };
@@ -0,0 +1,9 @@
1
+ import * as React from "react";
2
+ import { type VariantProps } from "class-variance-authority";
3
+ import { Toggle as TogglePrimitive } from "radix-ui";
4
+ declare const toggleVariants: (props?: ({
5
+ variant?: "default" | "outline" | null | undefined;
6
+ size?: "default" | "lg" | "sm" | null | undefined;
7
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
8
+ declare function Toggle({ className, variant, size, ...props }: React.ComponentProps<typeof TogglePrimitive.Root> & VariantProps<typeof toggleVariants>): React.JSX.Element;
9
+ export { Toggle, toggleVariants };
@@ -0,0 +1,44 @@
1
+ "use client";
2
+ import { jsx } from "react/jsx-runtime";
3
+ import { cva } from "class-variance-authority";
4
+ import { cn } from "@recanica/ui/lib/utils";
5
+ import { Toggle as TogglePrimitive } from "radix-ui";
6
+ const toggleVariants = cva(
7
+ "inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-[color,box-shadow] outline-none hover:bg-muted hover:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
8
+ {
9
+ variants: {
10
+ variant: {
11
+ default: "bg-transparent",
12
+ outline: "border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"
13
+ },
14
+ size: {
15
+ default: "h-9 min-w-9 px-2",
16
+ sm: "h-8 min-w-8 px-1.5",
17
+ lg: "h-10 min-w-10 px-2.5"
18
+ }
19
+ },
20
+ defaultVariants: {
21
+ variant: "default",
22
+ size: "default"
23
+ }
24
+ }
25
+ );
26
+ function Toggle({
27
+ className,
28
+ variant,
29
+ size,
30
+ ...props
31
+ }) {
32
+ return /* @__PURE__ */ jsx(
33
+ TogglePrimitive.Root,
34
+ {
35
+ "data-slot": "toggle",
36
+ className: cn(toggleVariants({ variant, size, className })),
37
+ ...props
38
+ }
39
+ );
40
+ }
41
+ export {
42
+ Toggle,
43
+ toggleVariants
44
+ };
@@ -0,0 +1,7 @@
1
+ import * as React from "react";
2
+ import { Tooltip as TooltipPrimitive } from "radix-ui";
3
+ declare function TooltipProvider({ delayDuration, ...props }: React.ComponentProps<typeof TooltipPrimitive.Provider>): React.JSX.Element;
4
+ declare function Tooltip({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Root>): React.JSX.Element;
5
+ declare function TooltipTrigger({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Trigger>): React.JSX.Element;
6
+ declare function TooltipContent({ className, sideOffset, children, ...props }: React.ComponentProps<typeof TooltipPrimitive.Content>): React.JSX.Element;
7
+ export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
@@ -0,0 +1,56 @@
1
+ "use client";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ import { cn } from "@recanica/ui/lib/utils";
4
+ import { Tooltip as TooltipPrimitive } from "radix-ui";
5
+ function TooltipProvider({
6
+ delayDuration = 0,
7
+ ...props
8
+ }) {
9
+ return /* @__PURE__ */ jsx(
10
+ TooltipPrimitive.Provider,
11
+ {
12
+ "data-slot": "tooltip-provider",
13
+ delayDuration,
14
+ ...props
15
+ }
16
+ );
17
+ }
18
+ function Tooltip({
19
+ ...props
20
+ }) {
21
+ return /* @__PURE__ */ jsx(TooltipPrimitive.Root, { "data-slot": "tooltip", ...props });
22
+ }
23
+ function TooltipTrigger({
24
+ ...props
25
+ }) {
26
+ return /* @__PURE__ */ jsx(TooltipPrimitive.Trigger, { "data-slot": "tooltip-trigger", ...props });
27
+ }
28
+ function TooltipContent({
29
+ className,
30
+ sideOffset = 0,
31
+ children,
32
+ ...props
33
+ }) {
34
+ return /* @__PURE__ */ jsx(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsxs(
35
+ TooltipPrimitive.Content,
36
+ {
37
+ "data-slot": "tooltip-content",
38
+ sideOffset,
39
+ className: cn(
40
+ "z-50 w-fit origin-(--radix-tooltip-content-transform-origin) animate-in rounded-md bg-foreground px-3 py-1.5 text-xs text-balance text-background fade-in-0 zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
41
+ className
42
+ ),
43
+ ...props,
44
+ children: [
45
+ children,
46
+ /* @__PURE__ */ jsx(TooltipPrimitive.Arrow, { className: "z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground" })
47
+ ]
48
+ }
49
+ ) });
50
+ }
51
+ export {
52
+ Tooltip,
53
+ TooltipContent,
54
+ TooltipProvider,
55
+ TooltipTrigger
56
+ };
@@ -0,0 +1,40 @@
1
+ import * as React from "react";
2
+ /**
3
+ * Web section shell: the single source for marketing-section rhythm and section titles.
4
+ * Page band padding (--spacing-section), content width, and one title style, so every section on a site matches.
5
+ *
6
+ * <WebSection title="Simple pricing" description="…" align="center">…</WebSection>
7
+ */
8
+ declare function WebSection({ id, eyebrow, title, description, actions, align, size, titleAs: Title, className, children, }: {
9
+ id?: string;
10
+ eyebrow?: React.ReactNode;
11
+ title?: React.ReactNode;
12
+ description?: React.ReactNode;
13
+ actions?: React.ReactNode;
14
+ align?: "start" | "center";
15
+ size?: "default" | "compact";
16
+ /** "h1" when the section opens its page */
17
+ titleAs?: "h1" | "h2";
18
+ className?: string;
19
+ children?: React.ReactNode;
20
+ }): React.JSX.Element;
21
+ /** The one section-title block: eyebrow, title, description, actions. Use alone when a section needs a custom body layout. */
22
+ declare function WebSectionHeader({ eyebrow, title, description, actions, align, titleAs: Title, className, }: {
23
+ eyebrow?: React.ReactNode;
24
+ title?: React.ReactNode;
25
+ description?: React.ReactNode;
26
+ actions?: React.ReactNode;
27
+ align?: "start" | "center";
28
+ titleAs?: "h1" | "h2";
29
+ className?: string;
30
+ }): React.JSX.Element;
31
+ /** The one section-title style for web sections. Width limits (max-w-*) may be passed; the type style may not drift. */
32
+ declare function WebSectionTitle({ as: Tag, className, ...props }: React.ComponentProps<"h2"> & {
33
+ as?: "h1" | "h2";
34
+ }): React.JSX.Element;
35
+ /** The one hero headline (the page's h1 on landing pages). Sizes: default, or "lg" for a home hero. Colour may be the brand colour. */
36
+ declare function WebHeroTitle({ size, as: Tag, className, ...props }: React.ComponentProps<"h1"> & {
37
+ size?: "default" | "lg";
38
+ as?: "h1" | "h2";
39
+ }): React.JSX.Element;
40
+ export { WebSection, WebSectionHeader, WebSectionTitle, WebHeroTitle };
@@ -0,0 +1,72 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { cn } from "@recanica/ui/lib/utils";
3
+ function WebSection({
4
+ id,
5
+ eyebrow,
6
+ title,
7
+ description,
8
+ actions,
9
+ align = "start",
10
+ size = "default",
11
+ titleAs: Title = "h2",
12
+ className,
13
+ children
14
+ }) {
15
+ return /* @__PURE__ */ jsx(
16
+ "section",
17
+ {
18
+ id,
19
+ "data-slot": "web-section",
20
+ className: cn("px-gutter", size === "compact" ? "py-section-sm" : "py-section", className),
21
+ children: /* @__PURE__ */ jsxs("div", { className: "mx-auto flex max-w-content flex-col gap-(--spacing-stack)", children: [
22
+ (title || eyebrow || description || actions) && /* @__PURE__ */ jsx(WebSectionHeader, { eyebrow, title, description, actions, align, titleAs: Title }),
23
+ children
24
+ ] })
25
+ }
26
+ );
27
+ }
28
+ function WebSectionHeader({
29
+ eyebrow,
30
+ title,
31
+ description,
32
+ actions,
33
+ align = "start",
34
+ titleAs: Title = "h2",
35
+ className
36
+ }) {
37
+ const center = align === "center";
38
+ return /* @__PURE__ */ jsxs(
39
+ "div",
40
+ {
41
+ "data-slot": "web-section-header",
42
+ className: cn("flex flex-col gap-(--spacing-group)", center ? "items-center text-center" : "sm:flex-row sm:items-end sm:justify-between", className),
43
+ children: [
44
+ /* @__PURE__ */ jsxs("div", { className: cn("flex max-w-2xl flex-col gap-(--spacing-group)", center && "items-center"), children: [
45
+ eyebrow && /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: eyebrow }),
46
+ title && /* @__PURE__ */ jsx(WebSectionTitle, { as: Title, children: title }),
47
+ description && /* @__PURE__ */ jsx("p", { className: "text-lg text-pretty text-muted-foreground", children: description })
48
+ ] }),
49
+ actions && /* @__PURE__ */ jsx("div", { className: "flex shrink-0 flex-wrap gap-2", children: actions })
50
+ ]
51
+ }
52
+ );
53
+ }
54
+ function WebSectionTitle({ as: Tag = "h2", className, ...props }) {
55
+ return /* @__PURE__ */ jsx(Tag, { "data-slot": "web-section-title", className: cn("text-display-sm tracking-tight text-balance", className), ...props });
56
+ }
57
+ function WebHeroTitle({ size = "default", as: Tag = "h1", className, ...props }) {
58
+ return /* @__PURE__ */ jsx(
59
+ Tag,
60
+ {
61
+ "data-slot": "web-hero-title",
62
+ className: cn("text-display-sm tracking-tight text-balance sm:text-display-md", size === "lg" && "lg:text-display-lg", className),
63
+ ...props
64
+ }
65
+ );
66
+ }
67
+ export {
68
+ WebHeroTitle,
69
+ WebSection,
70
+ WebSectionHeader,
71
+ WebSectionTitle
72
+ };
@@ -0,0 +1 @@
1
+ export declare function useIsMobile(): boolean;
@@ -0,0 +1,18 @@
1
+ import * as React from "react";
2
+ const MOBILE_BREAKPOINT = 768;
3
+ function useIsMobile() {
4
+ const [isMobile, setIsMobile] = React.useState(void 0);
5
+ React.useEffect(() => {
6
+ const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
7
+ const onChange = () => {
8
+ setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
9
+ };
10
+ mql.addEventListener("change", onChange);
11
+ setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
12
+ return () => mql.removeEventListener("change", onChange);
13
+ }, []);
14
+ return !!isMobile;
15
+ }
16
+ export {
17
+ useIsMobile
18
+ };
@@ -0,0 +1,2 @@
1
+ import { type ClassValue } from "clsx";
2
+ export declare function cn(...inputs: ClassValue[]): string;
@@ -0,0 +1,8 @@
1
+ import { clsx } from "clsx";
2
+ import { twMerge } from "tailwind-merge";
3
+ function cn(...inputs) {
4
+ return twMerge(clsx(inputs));
5
+ }
6
+ export {
7
+ cn
8
+ };
package/package.json CHANGED
@@ -1,6 +1,82 @@
1
1
  {
2
2
  "name": "@recanica/ui",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.2.0",
4
+ "type": "module",
5
+ "sideEffects": false,
6
+ "exports": {
7
+ "./components/*": {
8
+ "types": "./dist/components/*.d.ts",
9
+ "import": "./dist/components/*.js"
10
+ },
11
+ "./lib/*": {
12
+ "types": "./dist/lib/*.d.ts",
13
+ "import": "./dist/lib/*.js"
14
+ },
15
+ "./hooks/*": {
16
+ "types": "./dist/hooks/*.d.ts",
17
+ "import": "./dist/hooks/*.js"
18
+ }
19
+ },
20
+ "peerDependencies": {
21
+ "@recanica/tokens": "^0.2.0",
22
+ "react": "^19",
23
+ "react-dom": "^19"
24
+ },
25
+ "dependencies": {
26
+ "@base-ui/react": "^1.9.0",
27
+ "@hookform/resolvers": "^7.0.7",
28
+ "@shadcn/react": "^0.3.1",
29
+ "class-variance-authority": "^0.7.1",
30
+ "clsx": "^2.1.1",
31
+ "cmdk": "^1.1.1",
32
+ "date-fns": "^4.4.0",
33
+ "embla-carousel-react": "^8.6.0",
34
+ "input-otp": "^1.5.0",
35
+ "lucide-react": "^1.75.0",
36
+ "next-themes": "^0.4.6",
37
+ "radix-ui": "^1.8.1",
38
+ "react-day-picker": "^10.0.2",
39
+ "react-hook-form": "^7.92.0",
40
+ "react-resizable-panels": "^4",
41
+ "recharts": "3.8.0",
42
+ "sonner": "^2.0.8",
43
+ "tailwind-merge": "^3.7.0",
44
+ "vaul": "^1.1.2",
45
+ "zod": "^4.6.7"
46
+ },
47
+ "devDependencies": {
48
+ "@types/react": "^19.3.0",
49
+ "@types/react-dom": "^19.3.0",
50
+ "react": "^19.3.1",
51
+ "react-dom": "^19.3.1",
52
+ "tsup": "^9.0.0",
53
+ "typescript": "^7.0.2"
54
+ },
55
+ "description": "Recanica React components: 60 accessible primitives on Radix + Tailwind CSS v4, styled with Recanica tokens.",
56
+ "license": "MIT",
57
+ "author": "Aturanica Labs",
58
+ "repository": {
59
+ "type": "git",
60
+ "url": "git+https://github.com/booyen/recanica.git",
61
+ "directory": "packages/ui"
62
+ },
63
+ "keywords": [
64
+ "react",
65
+ "components",
66
+ "radix-ui",
67
+ "tailwindcss",
68
+ "design-system",
69
+ "recanica"
70
+ ],
71
+ "files": [
72
+ "dist",
73
+ "README.md"
74
+ ],
75
+ "publishConfig": {
76
+ "access": "public"
77
+ },
78
+ "scripts": {
79
+ "build": "tsup && tsc -p tsconfig.build.json",
80
+ "typecheck": "tsc --noEmit"
81
+ }
6
82
  }
package/README.md DELETED
@@ -1,3 +0,0 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.