BenixBenix DSv1.1.0

Changelog

All notable changes to @kactostecnologia/benix-ds will be documented here. Follows Keep a Changelog and SemVer.

v1.1.0

June 25, 2026Latest

Provider patterns + DX polish based on feedback from real consumer projects. Toast and Confirm gain global imperative APIs; Card and Table gain shadcn-compatible composition; the package finally declares sideEffects so bundlers stop dragging the whole tree on `import { Button }`.

Added

  • ·`<ToastProvider>` + `toast.success/error/warning/info` on `/toast` subpath — single global queue, sonner-style call from anywhere, no boilerplate.
  • ·`<ConfirmProvider>` + `confirm.danger/warning/info` on `/confirm` subpath — Promise-based, `const ok = await confirm.danger({...})`.
  • ·Card composition: `<CardHeader>`, `<CardTitle>`, `<CardDescription>`, `<CardContent>`, `<CardFooter>` (shadcn pattern). Shorthand `<Card title actions>` still works.
  • ·Headless Table primitives: `Table`, `TableHeader`, `TableBody`, `TableFooter`, `TableHead`, `TableRow`, `TableCell`, `TableCaption` — no `@tanstack/react-table` dependency.
  • ·`Progress` primitive — determinate bar with 4 variants (default / success / warning / destructive).
  • ·`Label` exported as alias of `FormLabel` — drop-in for shadcn migrations.
  • ·`Select.onValueChange` — first-class prop (Radix/shadcn idiom). `onChange` kept as deprecated alias.
  • ·`SelectProps<T extends string>` / `SelectOption<T extends string>` — TypeScript infers union literals from `options`, no more `(v) => set(v as MyKind)` casts.
  • ·`useConfirm()` hook — same shape as the module helper, attached to the nearest `<ConfirmProvider>`, throws if used outside.

Changed

  • ·`"sideEffects": ["**/*.css"]` declared in package.json — bundlers now tree-shake the barrel properly. Importing `{ Button }` stops pulling charts / colorpicker / emoji-picker.
  • ·`@tanstack/react-table` is now an **optional** peer dependency — only ManagedDataTable / InfiniteDataTable need it. Apps without tables skip the ~50 KB peer.
  • ·ToastContainer gains a `position` prop with 6 anchors (4 corners + top/bottom center). Mobile collapses to a full-width strip. Default unchanged (`top-right`).
  • ·Docs site: new `/theming` page covering tokens, override cascade and ThemeProvider. `/installation` shows a yellow warning under the `@source` line (silent purge trap on Tailwind 4) and a worked example with react-hook-form + Zod.

v1.0.1

June 24, 2026

Polish patch — friendlier README on the npm page and cleaner badges. No component changes.

Changed

  • ·README badges trimmed to the essentials: npm version, MIT license, tests passing, bundle size.
  • ·Product name shown as **Benix DS** (proper case) throughout the docs and README.
  • ·README wording polished — clearer install path, fewer dead links.

v1.0.0

June 24, 2026

First public release. ~28 accessible React components, fully themeable via CSS variables, with an install CLI and 106 unit tests.

Added

  • ·~28 components across Primitives, Forms, Overlays, Feedbacks and Data Display
  • ·CLI: `npx @kactostecnologia/benix-ds init` (Vite + Next.js 16)
  • ·Tailwind CSS 4 theme tokens — fully overridable CSS variables
  • ·Dark mode wired by default + exported `ThemeProvider`
  • ·Tree-shakeable subpaths: `/primitives`, `/forms`, `/overlays`, `/feedbacks`, `/data-display`, `/charts`, `/icons`, `/theme`, `/utils`
  • ·Built-in `label`, `required`, `helperText`, `error` props on Input, Textarea, Select, OTPInput, MaskedInput
  • ·OTPInput: `align`, `label`, `helperText`, `error` props (was previously composition-only)
  • ·Vitest setup with 106 passing unit tests
  • ·CI workflow on every PR (typecheck, lint, build, test)

Suggestions, bug reports or feature requests? contato@kactostecnologia.com.br