@kumix/ui 0.2.0 → 0.2.1

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.
package/README.md CHANGED
@@ -24,15 +24,15 @@ This package is a maintained distribution: imports rewritten for monorepo (`@kum
24
24
  bun add @kumix/ui @kumix/utils
25
25
  ```
26
26
 
27
- Install peers for the components you use (see `package.json` → `peerDependencies`). Common set:
27
+ Install peers (see `package.json` → `peerDependencies`). All listed peers are **required** by the package (no `peerDependenciesMeta`); install what your app needs for the components you import.
28
28
 
29
29
  ```bash
30
30
  bun add @base-ui/react class-variance-authority lucide-react react
31
31
  ```
32
32
 
33
- **Required peers (core):** `react`, `@base-ui/react`, `class-variance-authority`, `lucide-react`, `@kumix/utils`.
33
+ **Core (almost every app):** `react`, `@base-ui/react`, `class-variance-authority`, `lucide-react`, `@kumix/utils`.
34
34
 
35
- All other peers are **optional** — install only what you import:
35
+ **Feature peers** (required in `package.json`; needed at runtime only if you import those components):
36
36
 
37
37
  | Peer | Used by |
38
38
  | --------------------------------------------------- | ---------------------------------------------- |
@@ -1,7 +1,7 @@
1
1
  import { VariantProps } from "class-variance-authority";
2
2
  //#region src/components/reui/alert.d.ts
3
3
  declare const alertVariants: (props?: ({
4
- variant?: "default" | "invert" | "destructive" | "info" | "success" | "warning" | null | undefined;
4
+ variant?: "default" | "invert" | "info" | "success" | "warning" | "destructive" | null | undefined;
5
5
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
6
  declare function Alert({ className, variant, ...props }: React.ComponentProps<"div"> & VariantProps<typeof alertVariants>): import("react").JSX.Element;
7
7
  declare function AlertTitle({ className, ...props }: React.ComponentProps<"div">): import("react").JSX.Element;
@@ -2,7 +2,7 @@ import { VariantProps } from "class-variance-authority";
2
2
  import { Autocomplete as Autocomplete$1 } from "@base-ui/react/autocomplete";
3
3
  //#region src/components/reui/autocomplete.d.ts
4
4
  declare const inputVariants: (props?: ({
5
- size?: "sm" | "default" | "lg" | null | undefined;
5
+ size?: "default" | "sm" | "lg" | null | undefined;
6
6
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
7
  declare const Autocomplete: typeof Autocomplete$1.Root;
8
8
  declare function AutocompleteValue({ ...props }: Autocomplete$1.Value.Props): import("react").JSX.Element;
@@ -2,8 +2,8 @@ import { VariantProps } from "class-variance-authority";
2
2
  import { useRender } from "@base-ui/react/use-render";
3
3
  //#region src/components/reui/badge.d.ts
4
4
  declare const badgeVariants: (props?: ({
5
- variant?: "default" | "outline" | "secondary" | "invert" | "destructive" | "info" | "success" | "warning" | "focus" | "primary-light" | "warning-light" | "success-light" | "info-light" | "destructive-light" | "invert-light" | "focus-light" | "primary-outline" | "warning-outline" | "success-outline" | "info-outline" | "destructive-outline" | "invert-outline" | "focus-outline" | null | undefined;
6
- size?: "sm" | "default" | "lg" | "xs" | "xl" | null | undefined;
5
+ variant?: "outline" | "secondary" | "default" | "invert" | "info" | "success" | "warning" | "destructive" | "focus" | "primary-light" | "warning-light" | "success-light" | "info-light" | "destructive-light" | "invert-light" | "focus-light" | "primary-outline" | "warning-outline" | "success-outline" | "info-outline" | "destructive-outline" | "invert-outline" | "focus-outline" | null | undefined;
6
+ size?: "default" | "sm" | "lg" | "xs" | "xl" | null | undefined;
7
7
  radius?: "default" | "full" | null | undefined;
8
8
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
9
9
  interface BadgeProps extends useRender.ComponentProps<"span"> {
@@ -14,8 +14,8 @@ import { VariantProps } from "class-variance-authority";
14
14
  * :not() or !important needed
15
15
  */
16
16
  declare const frameVariants: (props?: ({
17
- variant?: "default" | "ghost" | "inverse" | null | undefined;
18
- spacing?: "sm" | "default" | "lg" | "xs" | null | undefined;
17
+ variant?: "ghost" | "default" | "inverse" | null | undefined;
18
+ spacing?: "default" | "sm" | "lg" | "xs" | null | undefined;
19
19
  stacked?: boolean | null | undefined;
20
20
  dense?: boolean | null | undefined;
21
21
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
@@ -4,13 +4,13 @@ import { VariantProps } from "class-variance-authority";
4
4
  import { NumberField as NumberField$1 } from "@base-ui/react/number-field";
5
5
  //#region src/components/reui/number-field.d.ts
6
6
  declare const numberFieldGroupVariants: (props?: ({
7
- size?: "sm" | "default" | "lg" | null | undefined;
7
+ size?: "default" | "sm" | "lg" | null | undefined;
8
8
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
9
9
  declare const numberFieldButtonVariants: (props?: ({
10
- size?: "sm" | "default" | "lg" | null | undefined;
10
+ size?: "default" | "sm" | "lg" | null | undefined;
11
11
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
12
12
  declare const numberFieldInputVariants: (props?: ({
13
- size?: "sm" | "default" | "lg" | null | undefined;
13
+ size?: "default" | "sm" | "lg" | null | undefined;
14
14
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
15
15
  declare function NumberField({ id, className, size, ...props }: NumberField$1.Root.Props & VariantProps<typeof numberFieldGroupVariants>): React$1.JSX.Element;
16
16
  declare function NumberFieldGroup({ className, size: sizeProp, ...props }: NumberField$1.Group.Props & Partial<VariantProps<typeof numberFieldGroupVariants>>): React$1.JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import { VariantProps } from "class-variance-authority";
2
2
  //#region src/components/reui/rating.d.ts
3
3
  declare const ratingVariants: (props?: ({
4
- size?: "sm" | "default" | "lg" | null | undefined;
4
+ size?: "default" | "sm" | "lg" | null | undefined;
5
5
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
6
  declare function Rating({ rating, maxRating, size, className, starClassName, showValue, editable, onRatingChange, ...props }: React.ComponentProps<"div"> & VariantProps<typeof ratingVariants> & {
7
7
  /**
@@ -4,8 +4,8 @@ import { VariantProps } from "class-variance-authority";
4
4
  import { useRender } from "@base-ui/react/use-render";
5
5
  //#region src/components/ui/attachment.d.ts
6
6
  declare const attachmentVariants: (props?: ({
7
- size?: "sm" | "default" | "xs" | null | undefined;
8
- orientation?: "horizontal" | "vertical" | null | undefined;
7
+ size?: "default" | "sm" | "xs" | null | undefined;
8
+ orientation?: "vertical" | "horizontal" | null | undefined;
9
9
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
10
10
  declare function Attachment({ className, state, size, orientation, ...props }: React$1.ComponentProps<"div"> & VariantProps<typeof attachmentVariants> & {
11
11
  state?: "idle" | "uploading" | "processing" | "error" | "done";
@@ -2,7 +2,7 @@ import { VariantProps } from "class-variance-authority";
2
2
  import { useRender } from "@base-ui/react/use-render";
3
3
  //#region src/components/ui/badge.d.ts
4
4
  declare const badgeVariants: (props?: ({
5
- variant?: "link" | "default" | "ghost" | "outline" | "secondary" | "destructive" | null | undefined;
5
+ variant?: "ghost" | "outline" | "secondary" | "default" | "link" | "destructive" | null | undefined;
6
6
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
7
  declare function Badge({ className, variant, render, ...props }: useRender.ComponentProps<"span"> & VariantProps<typeof badgeVariants>): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
8
8
  //#endregion
@@ -4,7 +4,7 @@ import { useRender } from "@base-ui/react/use-render";
4
4
  //#region src/components/ui/bubble.d.ts
5
5
  declare function BubbleGroup({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
6
6
  declare const bubbleVariants: (props?: ({
7
- variant?: "default" | "ghost" | "outline" | "secondary" | "destructive" | "muted" | "tinted" | null | undefined;
7
+ variant?: "ghost" | "outline" | "secondary" | "default" | "destructive" | "muted" | "tinted" | null | undefined;
8
8
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
9
9
  declare function Bubble({ variant, align, className, ...props }: React$1.ComponentProps<"div"> & VariantProps<typeof bubbleVariants> & {
10
10
  align?: "start" | "end";
@@ -4,7 +4,7 @@ import { VariantProps } from "class-variance-authority";
4
4
  import { useRender } from "@base-ui/react/use-render";
5
5
  //#region src/components/ui/button-group.d.ts
6
6
  declare const buttonGroupVariants: (props?: ({
7
- orientation?: "horizontal" | "vertical" | null | undefined;
7
+ orientation?: "vertical" | "horizontal" | null | undefined;
8
8
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
9
9
  declare function ButtonGroup({ className, orientation, ...props }: React$1.ComponentProps<"div"> & VariantProps<typeof buttonGroupVariants>): React$1.JSX.Element;
10
10
  declare function ButtonGroupText({ className, render, ...props }: useRender.ComponentProps<"div">): React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>>;
@@ -2,8 +2,8 @@ import { VariantProps } from "class-variance-authority";
2
2
  import { Button as Button$1 } from "@base-ui/react/button";
3
3
  //#region src/components/ui/button.d.ts
4
4
  declare const buttonVariants: (props?: ({
5
- variant?: "link" | "default" | "ghost" | "outline" | "secondary" | "destructive" | null | undefined;
6
- size?: "sm" | "default" | "lg" | "xs" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
5
+ variant?: "ghost" | "outline" | "secondary" | "default" | "link" | "destructive" | null | undefined;
6
+ size?: "default" | "sm" | "lg" | "xs" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
7
7
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
8
8
  declare function Button({ className, variant, size, ...props }: Button$1.Props & VariantProps<typeof buttonVariants>): import("react").JSX.Element;
9
9
  //#endregion
@@ -8,7 +8,7 @@ declare function FieldLegend({ className, variant, ...props }: React$1.Component
8
8
  }): React$1.JSX.Element;
9
9
  declare function FieldGroup({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
10
10
  declare const fieldVariants: (props?: ({
11
- orientation?: "horizontal" | "vertical" | "responsive" | null | undefined;
11
+ orientation?: "vertical" | "horizontal" | "responsive" | null | undefined;
12
12
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
13
13
  declare function Field({ className, orientation, ...props }: React$1.ComponentProps<"div"> & VariantProps<typeof fieldVariants>): React$1.JSX.Element;
14
14
  declare function FieldContent({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
@@ -6,12 +6,12 @@ import { useRender } from "@base-ui/react/use-render";
6
6
  declare function ItemGroup({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
7
7
  declare function ItemSeparator({ className, ...props }: React$1.ComponentProps<typeof Separator>): React$1.JSX.Element;
8
8
  declare const itemVariants: (props?: ({
9
- variant?: "default" | "outline" | "muted" | null | undefined;
10
- size?: "sm" | "default" | "xs" | null | undefined;
9
+ variant?: "outline" | "default" | "muted" | null | undefined;
10
+ size?: "default" | "sm" | "xs" | null | undefined;
11
11
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
12
12
  declare function Item({ className, variant, size, render, ...props }: useRender.ComponentProps<"div"> & VariantProps<typeof itemVariants>): React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>>;
13
13
  declare const itemMediaVariants: (props?: ({
14
- variant?: "image" | "default" | "icon" | null | undefined;
14
+ variant?: "default" | "image" | "icon" | null | undefined;
15
15
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
16
16
  declare function ItemMedia({ className, variant, ...props }: React$1.ComponentProps<"div"> & VariantProps<typeof itemMediaVariants>): React$1.JSX.Element;
17
17
  declare function ItemContent({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
@@ -3,7 +3,7 @@ import { VariantProps } from "class-variance-authority";
3
3
  import { useRender } from "@base-ui/react/use-render";
4
4
  //#region src/components/ui/marker.d.ts
5
5
  declare const markerVariants: (props?: ({
6
- variant?: "separator" | "default" | "border" | null | undefined;
6
+ variant?: "default" | "separator" | "border" | null | undefined;
7
7
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
8
8
  declare function Marker({ className, variant, render, ...props }: useRender.ComponentProps<"div"> & VariantProps<typeof markerVariants>): React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>>;
9
9
  declare function MarkerIcon({ className, ...props }: React$1.ComponentProps<"span">): React$1.JSX.Element;
@@ -41,8 +41,8 @@ declare function SidebarGroupContent({ className, ...props }: React$1.ComponentP
41
41
  declare function SidebarMenu({ className, ...props }: React$1.ComponentProps<"ul">): React$1.JSX.Element;
42
42
  declare function SidebarMenuItem({ className, ...props }: React$1.ComponentProps<"li">): React$1.JSX.Element;
43
43
  declare const sidebarMenuButtonVariants: (props?: ({
44
- variant?: "default" | "outline" | null | undefined;
45
- size?: "sm" | "default" | "lg" | null | undefined;
44
+ variant?: "outline" | "default" | null | undefined;
45
+ size?: "default" | "sm" | "lg" | null | undefined;
46
46
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
47
47
  declare function SidebarMenuButton({ render, isActive, variant, size, tooltip, className, ...props }: useRender.ComponentProps<"button"> & React$1.ComponentProps<"button"> & {
48
48
  isActive?: boolean;
@@ -3,7 +3,7 @@ import { Tabs as Tabs$1 } from "@base-ui/react/tabs";
3
3
  //#region src/components/ui/tabs.d.ts
4
4
  declare function Tabs({ className, orientation, ...props }: Tabs$1.Root.Props): import("react").JSX.Element;
5
5
  declare const tabsListVariants: (props?: ({
6
- variant?: "line" | "default" | null | undefined;
6
+ variant?: "default" | "line" | null | undefined;
7
7
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
8
8
  declare function TabsList({ className, variant, ...props }: Tabs$1.List.Props & VariantProps<typeof tabsListVariants>): import("react").JSX.Element;
9
9
  declare function TabsTrigger({ className, ...props }: Tabs$1.Tab.Props): import("react").JSX.Element;
@@ -2,8 +2,8 @@ import { VariantProps } from "class-variance-authority";
2
2
  import { Toggle as Toggle$1 } from "@base-ui/react/toggle";
3
3
  //#region src/components/ui/toggle.d.ts
4
4
  declare const toggleVariants: (props?: ({
5
- variant?: "default" | "outline" | null | undefined;
6
- size?: "sm" | "default" | "lg" | null | undefined;
5
+ variant?: "outline" | "default" | null | undefined;
6
+ size?: "default" | "sm" | "lg" | null | undefined;
7
7
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
8
8
  declare function Toggle({ className, variant, size, ...props }: Toggle$1.Props & VariantProps<typeof toggleVariants>): import("react").JSX.Element;
9
9
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kumix/ui",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Kumix React UI kit: shadcn/ui (Base UI, base-nova) + ReUI components, Tailwind tokens, and hooks. Per-file ESM exports.",
5
5
  "author": "Kumix Labs <hai@kumix.io>",
6
6
  "license": "MIT",
@@ -75,14 +75,14 @@
75
75
  "@kumix/utils": "^0.1.2",
76
76
  "@shadcn/react": "^0.2.1",
77
77
  "@tanstack/react-table": "^8.21.3",
78
- "@tanstack/react-virtual": "^3.14.7",
78
+ "@tanstack/react-virtual": "^3.14.8",
79
79
  "@types/react": "^19.2.17",
80
80
  "class-variance-authority": "^0.7.1",
81
81
  "cmdk": "^1.1.1",
82
82
  "date-fns": "^4.4.0",
83
83
  "embla-carousel-react": "^8.6.0",
84
84
  "input-otp": "^1.4.2",
85
- "lucide-react": "^1.25.0",
85
+ "lucide-react": "^1.26.0",
86
86
  "next-themes": "^0.4.6",
87
87
  "react": "^19.2.8",
88
88
  "react-day-picker": "^10.0.1",
@@ -90,7 +90,7 @@
90
90
  "react-resizable-panels": "^4.12.2",
91
91
  "recharts": "3.10.0",
92
92
  "sonner": "^2.0.7",
93
- "tsdown": "^0.22.13",
93
+ "tsdown": "^0.22.14",
94
94
  "typescript": "6.0.3"
95
95
  },
96
96
  "peerDependencies": {
@@ -119,65 +119,6 @@
119
119
  "recharts": ">=3.9.0",
120
120
  "sonner": ">=2.0.5"
121
121
  },
122
- "peerDependenciesMeta": {
123
- "@date-fns/tz": {
124
- "optional": true
125
- },
126
- "@dnd-kit/core": {
127
- "optional": true
128
- },
129
- "@dnd-kit/modifiers": {
130
- "optional": true
131
- },
132
- "@dnd-kit/sortable": {
133
- "optional": true
134
- },
135
- "@dnd-kit/utilities": {
136
- "optional": true
137
- },
138
- "@headless-tree/core": {
139
- "optional": true
140
- },
141
- "@shadcn/react": {
142
- "optional": true
143
- },
144
- "@tanstack/react-table": {
145
- "optional": true
146
- },
147
- "@tanstack/react-virtual": {
148
- "optional": true
149
- },
150
- "cmdk": {
151
- "optional": true
152
- },
153
- "date-fns": {
154
- "optional": true
155
- },
156
- "embla-carousel-react": {
157
- "optional": true
158
- },
159
- "input-otp": {
160
- "optional": true
161
- },
162
- "next-themes": {
163
- "optional": true
164
- },
165
- "react-day-picker": {
166
- "optional": true
167
- },
168
- "react-phone-number-input": {
169
- "optional": true
170
- },
171
- "react-resizable-panels": {
172
- "optional": true
173
- },
174
- "recharts": {
175
- "optional": true
176
- },
177
- "sonner": {
178
- "optional": true
179
- }
180
- },
181
122
  "publishConfig": {
182
123
  "registry": "https://registry.npmjs.org/",
183
124
  "access": "public"