@work-rjkashyap/unified-ui 0.2.0 → 0.2.2

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/CHANGELOG.md CHANGED
@@ -1,287 +1,183 @@
1
- # Unified UI Changelog
2
- All notable changes to the Unified UI design system will be documented in this file.
1
+ # Changelog
2
+ All notable changes to the **Unified UI** design system will be documented in this file.
3
3
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
4
4
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
5
- ---
6
5
  ## [Unreleased]
7
- ### Planned
8
- - Migration guide — mapping from legacy `--ds-*` tokens to new plain `--*` tokens
9
- - CI/CD pipeline for automated publishing on git tags
10
- - `UnifiedUIProvider` component for optional auto CSS injection
11
- - Component tests with Vitest + Testing Library
12
- ---
13
-
6
+ ## [0.2.2] — 2026-03-07
7
+ ### 🚀 Features
8
+ - Add dynamic favicon (icon.tsx) and Apple touch icon using the CircuitBoard logo
9
+ - Add OG image generation (opengraph-image.tsx) with branded design, CTA, and tech stack
10
+ - Add OpenGraph and Twitter card metadata to root layout
11
+ - Fix docs OG route to display "Unified UI" instead of "My App"
12
+ - Optimize OG title (59 chars) and description (160 chars) for SEO best practices
13
+ ### 🐛 Bug Fixes
14
+ - Enhance changelog script to scan all commits if no tags are found ([fdbb105](https://github.com/imrj05/unified-ui/commit/fdbb105c47e4afa1f999b0eddfe884a903b76466))
15
+ - Update component links from /docs/components to /components ([d511280](https://github.com/imrj05/unified-ui/commit/d511280063616413efb9235d81d21eabf467b2ca))
16
+ ### 🔧 Refactors
17
+ - **changelog-renderer:** Enhance changelog parsing and rendering logic
18
+ - Improved parsing logic to handle multi-line items and indented sub-items.
19
+ - Added support for section titles with emojis by stripping them before processing.
20
+ - Enhanced section color mapping to include additional categories and keywords.
21
+ - Refactored the rendering of changelog items and sections for better readability and maintainability.
22
+ - Updated the stats calculation to normalize section titles for accurate feature and fix counts. ([f3b47fe](https://github.com/imrj05/unified-ui/commit/f3b47fe55a9c7637570e833b6256b2adb969dbcc))
23
+ ### 🏗️ Miscellaneous
24
+ - **changelog:** Auto-update unreleased entries [skip ci] ([6658a0a](https://github.com/imrj05/unified-ui/commit/6658a0a50017a21e4fe868d86381ea0b9a76601e))
25
+ - **changelog:** Auto-update unreleased entries [skip ci] ([8dc0ab8](https://github.com/imrj05/unified-ui/commit/8dc0ab8f9ed198e4b0da315a91869ca374626fd5))
26
+ - Stop tracking CHANGELOG.md locally ([4973cf5](https://github.com/imrj05/unified-ui/commit/4973cf5a401970d23922e39e7590187a40497307))
27
+ ### Other
28
+ - Add CHANGELOG for packages/unified-ui ([06dc82a](https://github.com/imrj05/unified-ui/commit/06dc82a36328e9a289adea9eaade36abd0f49bdf))
29
+ - Add changelog generator and update workflow
30
+ Add .github/scripts/generate-changelog.sh and call it from the
31
+ changelog workflow. Also add .zed/settings.json with editor/assistant
32
+ settings. ([bbd4f82](https://github.com/imrj05/unified-ui/commit/bbd4f827837dd91acbf5be5005ca3c4cc50c38aa))
33
+ - Ignore CI changelog and set workflow shell to bash ([ac4da0a](https://github.com/imrj05/unified-ui/commit/ac4da0a4851cfd75930bc8208df04fc395963bfc))
34
+ - Merge branch 'main' of github.com:imrj05/unified-ui ([1ae2200](https://github.com/imrj05/unified-ui/commit/1ae2200684ee757e24fa6ba7f7a342c76dc4d959))
35
+ - Automate changelog and release workflow
36
+ Add a custom changelog workflow that parses Conventional Commits and
37
+ prepends entries into packages/unified-ui/CHANGELOG.md without
38
+ overwriting
39
+ hand-written release notes. Overhaul the release pipeline to validate
40
+ tag
41
+ versions, build and publish the design system, promote [Unreleased] → a
42
+ versioned changelog entry, and create the GitHub Release with notes.
43
+ Update cliff.toml comments to reflect its role for GitHub release notes. ([a1167e7](https://github.com/imrj05/unified-ui/commit/a1167e7bef2fb78093408738c450a8d2da70f3af))
44
+ ## [0.2.1] — 2026-03-06
45
+ ### 🐛 Bug Fixes
46
+ - Update placeholder API key in ConfirmDialog documentation ([6ca53c5](https://github.com/imrj05/unified-ui/commit/6ca53c5d1cecaee31afb376b860908981d9bf04c))
47
+ ### 🔧 Refactors
48
+ - Clean up formatting and remove unnecessary whitespace in ConfirmDialog documentation ([a8c382f](https://github.com/imrj05/unified-ui/commit/a8c382fbdcf0038b9e85160e472e45ac98da7579))
49
+ ### Other
50
+ - Add automated changelog and release workflows
51
+ Include git-cliff config and CI workflows for changelog generation
52
+ and releases
53
+ - Add cliff.toml and .github/workflows/changelog.yml to auto-generate
54
+ packages/unified-ui/CHANGELOG.md from Conventional Commits on pushes
55
+ to main
56
+ - Add .github/workflows/release.yml to validate tag, build the design
57
+ system, publish to npm, and create a GitHub Release with changelog
58
+ notes
59
+ - Add server-side changelog page and renderer under src to surface the
60
+ generated CHANGELOG.md in the docs site
61
+ - Commit generated CHANGELOG.md and bump @work-rjkashyap/unified-ui to
62
+ 0.2.1 ([8e036bd](https://github.com/imrj05/unified-ui/commit/8e036bdf7e9004f43a28f01a8a220a49f4afd8fd))
63
+ - Use unified-ui-rajeshwar registry
64
+ Add a build:registry step to the root build script; update CLI and
65
+ registry build scripts to use the new registry homepage and tweak
66
+ imports/formatting. Bump typography and spacing across home components
67
+ for improved readability. ([c55b091](https://github.com/imrj05/unified-ui/commit/c55b091dfb5843ad1a89230740cf5646f918f897))
68
+ - Format Confirm Dialog MDX and fix examples
69
+ Adjust whitespace and indentation in
70
+ content/components/confirm-dialog.mdx.
71
+ Separate the AlertDialog primitives example from the barrel import and
72
+ clean
73
+ up code fences for usage, variants, and preview snippets. ([50a0c83](https://github.com/imrj05/unified-ui/commit/50a0c830ac27441b9fdcd6bb415f2bf8d7f6e260))
14
74
  ## [0.2.0] — 2026-03-05
15
- ### Added
16
- #### 40 New Components
17
- - **AlertDialog** Radix-based modal confirmation dialog with composable header/body/footer
18
- - **AspectRatio** Radix-based responsive aspect-ratio container
19
- - **Banner** — Full-width notification banner with variants
20
- - **Calendar** Date calendar component for date selection
21
- - **Callout** Highlighted contextual message block with icon support
22
- - **Carousel** Scrollable content carousel with navigation controls
23
- - **Code** Styled code block with syntax formatting
24
- - **Collapsible** Radix-based expandable/collapsible content region
25
- - **Combobox** Searchable dropdown with keyboard navigation and filtering
26
- - **Command** Command palette / search interface (cmdk-style)
27
- - **ConfirmDialog** Simplified confirmation dialog with accept/cancel actions
28
- - **ContextMenu** Radix-based right-click context menu with items, sub-menus, and shortcuts
29
- - **CopyButton** — Click-to-copy button with success feedback
30
- - **DataList** Key-value display list for structured data
31
- - **DatePicker**Calendar-powered date input with popover picker
32
- - **EmptyState** — Placeholder for empty content areas with icon, title, description, and action
33
- - **FileUpload** Drag-and-drop file upload zone with file list management
34
- - **FormField** Form field wrapper with label, description, error message, and validation state
35
- - **HoverCard** Radix-based hover-triggered floating card
36
- - **InputGroup** Grouped input with addon/prefix/suffix slots
37
- - **Kbd** Keyboard shortcut key display
38
- - **Label** Standalone form label component (extracted from primitives)
39
- - **Menubar** Radix-based horizontal menu bar with dropdowns, checkbox items, and radio items
40
- - **NavigationMenu** Radix-based site navigation with flyout content panels
41
- - **NumberInput** — Numeric input with increment/decrement controls
42
- - **PinInput** Multi-digit OTP / PIN code input with auto-focus advancement
43
- - **Progress** — Determinate and indeterminate progress bar with label
44
- - **Resizable** — Resizable panel layout powered by `react-resizable-panels`
45
- - **ScrollArea** Radix-based custom scrollbar container (vertical + horizontal)
46
- - **SearchInput** Input with search icon, clear button, and keyboard shortcut hint
47
- - **Sidebar** Collapsible application sidebar with sections, items, and nested groups
48
- - **Slider** Radix-based range slider with single and multi-thumb support
49
- - **Spinner** — Loading spinner with size variants
50
- - **Stat** — Statistic display with label, value, and trend indicator
51
- - **Steps** — Multi-step progress indicator with vertical/horizontal orientation
52
- - **Tag** — Compact label/tag with removable action
53
- - **Timeline** — Vertical timeline with customizable markers and connectors
54
- - **Toggle** — Radix-based toggle button with multiple visual variants, sizes, and icon support
55
- - **ToggleGroup** — Radix-based single/multi toggle group with shared styling
56
- - **VisuallyHidden** — Accessible screen-reader-only content wrapper
57
-
58
- #### 13 New Motion Presets
59
- - **`shakeX`** — Horizontal shake for invalid input feedback
60
- - **`springHover`** — Spring-based hover micro-interaction
61
- - **`springPress`** — Spring-based press micro-interaction
62
- - **`countUp`** — Animated number count-up
63
- - **`crossfade`** — Crossfade transition between elements
64
- - **`dragDismiss`** — Drag-to-dismiss gesture preset
65
- - **`numberRoll`** — Rolling number transition
66
- - **`revealMask`** — Mask-based content reveal
67
- - **`slidePanelTop`** — Directional slide panel from top
68
- - **`slidePanelBottom`** — Directional slide panel from bottom
69
- - **`slidePanelLeft`** — Directional slide panel from left
70
- - **`slidePanelRight`** — Directional slide panel from right
71
-
72
- ### Changed
73
- #### Component Refactors
74
- - **Accordion** — Major rewrite with improved variant composition and accessibility
75
- - **Breadcrumb** — Refactored with enhanced composability and truncation logic
76
- - **Button** — Expanded with new variants and improved styles (618 lines changed)
77
- - **Card** — Restructured composable sub-components
78
- - **Checkbox** — Overhauled with `CheckboxGroup` improvements
79
- - **DataTable** — Major refactor with enhanced filtering, sorting, and pagination (3480 lines changed)
80
- - **Dialog** — Restructured with improved sizing and scroll behavior
81
- - **DropdownMenu** — Refactored sub-component exports and styling
82
- - **Input** — Enhanced with new slot patterns and error states
83
- - **Pagination** — Rewritten with improved responsive behavior
84
- - **Popover** — Cleaned up code structure and formatting
85
- - **Radio** — Refactored `RadioGroup` / `RadioGroupItem` / `RadioCard` styling
86
- - **Select** — Updated compositional sub-component pattern
87
- - **Sheet** — Improved directional slide-out behavior
88
- - **Switch** — Enhanced with new size and label options
89
- - **Table** — Expanded density and styling options
90
- - **Tabs** — Reworked variant composition for underline/segment/pills
91
- - **Textarea** — Improved auto-resize and character count logic
92
- - **Toast** — Major refactor with improved stacking and animations (1209 lines changed)
93
-
94
- #### Code Cleanup
95
- - Cleaned up formatting and structure in **NavigationMenu**, **Popover**, and **ScrollArea** components
96
- - Updated `styles.css` with restructured CSS custom properties and new token categories
97
- - Improved `tokens/colors.ts` with expanded palette definitions
98
- - Updated `utils/contrast.ts` with refined WCAG checking utilities
99
- - Updated `motion/presets.ts` — `reduceMotion()` signature cleaned up (unused parameter prefixed with `_`)
100
-
101
- #### Other
102
- - Updated `UNIFIED_UI_VERSION` exported constant from `"0.1.2"` to `"0.2.0"`
103
- - Component count increased from 23 to 63+
104
- - Barrel exports in `components/index.ts` and `src/index.ts` expanded for all new components
105
- ---
106
- ## [0.1.2] — 2026-03-03
107
- ### Added
108
- #### Theme Customizer System
109
- - **`ThemeCustomizerProvider`** — React context provider for runtime theme management with `localStorage` persistence and cross-tab sync via `StorageEvent`
110
- - **`useThemeCustomizer()`** — hook exposing `config`, `setColorPreset`, `setRadius`, `setFont`, `setShadow`, `setSurfaceStyle`, `resetConfig`, `isDefault`, `generateCSS`
111
- - **`ThemeCustomizer`** — drop-in UI component with color swatch picker, radius preview, font preview, shadow/surface style toggles, "Copy CSS" button, and reset
112
- - **13 color presets**: 5 neutral (`Zinc`, `Slate`, `Gray`, `Stone`, `Neutral`) + 8 chromatic (`Blue`, `Green`, `Violet`, `Rose`, `Orange`, `Red`, `Teal`, `Brand`)
113
- - **7 radius presets**: None (0px) through XL (16px), default 10px
114
- - **5 font presets**: Outfit, Inter, System, Serif, Mono
115
- - **4 shadow presets**: None, Subtle, Default, Heavy (each with light/dark scales)
116
- - **3 surface style presets**: Bordered, Elevated, Mixed
117
- - `ThemeConfig` type, `DEFAULT_THEME_CONFIG`, `buildThemeOverrides()`, `generateThemeCSS()` utilities
118
- - `COLOR_PRESET_KEYS`, `COLOR_PRESETS`, `getColorPreset`, `getFontPreset`, `getRadiusPreset`, `getShadowPreset` helpers
119
- - Exported types: `ColorPreset`, `ColorPresetKey`, `FontPreset`, `RadiusPreset`, `ShadowPreset`, `SurfaceStylePreset`, `PresetSemanticColors`, `ThemeCustomizerContextValue`, `ThemeCustomizerProps`, `ThemeCustomizerProviderProps`
120
- #### New Tokens
121
- - `neutral` color palette added to `tokens/colors`
122
- - New CSS custom properties: `--card`, `--card-foreground`, `--popover`, `--popover-foreground`, `--accent`, `--accent-foreground`, `--destructive`, `--destructive-foreground`, `--ring`, `--radius`, `--chart-1` through `--chart-5`, `--sidebar-*` (8 tokens)
123
- #### Select Sub-component Exports
124
- - Newly exported: `SelectContent`, `SelectContentProps`, `SelectTrigger`, `SelectTriggerProps`, `SelectValue`, `SelectScrollUpButton`, `SelectScrollUpButtonProps`, `SelectScrollDownButton`, `SelectScrollDownButtonProps`
125
- ### Changed
126
- #### Color Format: RGB → oklch
127
- - All color tokens migrated from RGB channel strings (e.g. `"79 70 229"`) to complete `oklch()` values (e.g. `"oklch(0.585 0.233 277.117)"`)
128
- - Affects all palettes: `slate`, `gray`, `zinc`, `brand`, `blue`, `green`, `red`, `amber`, `teal`
129
- - Semantic colors (light + dark) updated to use oklch values
130
- - Shadow tokens updated from `rgba()` to `oklch()` syntax
131
- - `dsColorVar()` now returns `var(--{name})` and uses `color-mix(in oklch, ...)` for alpha variants instead of `rgb(... / alpha)`
132
- #### CSS Variable Prefix Removal (`--ds-*` → `--*`)
133
- - Removed the `PREFIX` constant from `contract.ts`
134
- - All CSS custom properties simplified: `--ds-color-primary` → `--primary`, `--ds-radius-md` → `--radius-md`, `--ds-shadow-lg` → `--shadow-lg`, `--ds-z-modal` → `--z-modal`, `--ds-duration-fast` → `--duration-fast`, `--ds-easing-standard` → `--easing-standard`, `--ds-font-sans` → `--font-sans`
135
- - All Tailwind utility classes updated: `bg-ds-primary` → `bg-primary`, `text-ds-foreground` → `text-foreground`, `rounded-ds-md` → `rounded-md`, etc.
136
- - All 25 components, 3 primitives, and all utilities updated for the new naming
137
- #### Focus Ring System Overhaul
138
- - Redesigned from ring-based (`focus-visible:ring-2 focus-visible:ring-ds-focus-ring focus-visible:ring-offset-2`) to border-based (`focus-visible:border-border-strong`) focus indicators
139
- - All focus ring variants updated: `focusRingClasses`, `focusRingInsetClasses`, `focusRingCompactClasses`, `focusWithinRingClasses`, `focusRingGroupRingClasses`, `focusRingGroupTriggerClasses`
140
- #### Component Updates
141
- - **Button** — Added `not-prose no-underline` to base styles to prevent prose typography overrides on `<a>` buttons
142
- - **Select** — Refactored to compositional sub-component pattern; removed `SelectProps` type (use sub-component props instead)
143
- - **DropdownMenu** — Major refactor (618 lines changed)
144
- - **Popover** — Major refactor (332 lines changed)
145
- - **DataTable** — Updated for new token naming and focus styles
146
- #### Other
147
- - Updated `UNIFIED_UI_VERSION` exported constant from `"0.1.1"` to `"0.1.2"`
148
- - `@theme` block in `styles.css` completely rewritten with plain `--{name}` properties and new token categories
149
- - `dsVar()` now generates `--{category}-{name}` (was `--ds-{category}-{name}`)
150
- ---
75
+ ### 🚀 Features
76
+ - Enhance component previews and theme customizer
77
+ - Added VSCodeCodeBlock for improved code display in ComponentPage.
78
+ - Introduced CustomizerPanel for theme customization options including color, radius, font, shadow, and surface styles.
79
+ - Updated input-previews to streamline imports.
80
+ - Renamed Tag components to Badge for consistency and clarity in tag previews.
81
+ - Implemented ThemeToggle previews for various configurations and sizes.
82
+ - Enhanced ThemeCustomizerTrigger with mode selection for light, dark, and system themes.
83
+ - Updated MDX components to include new previews and components for better documentation. ([7148072](https://github.com/imrj05/unified-ui/commit/7148072478ceb2857e40c70251380c4be244ede1))
84
+ - Add Toggle component and related previews
85
+ - Implemented Toggle component using Radix UI's Toggle primitive with support for multiple visual variants, sizes, and icons.
86
+ - Added Toggle to the unified-ui index for export.
87
+ - Created navigation component previews for ContextMenu, Menubar, Steps, and Command, showcasing various states and interactions.
88
+ - Updated MDX components to include new previews for documentation. ([63b0f57](https://github.com/imrj05/unified-ui/commit/63b0f57dcc8150f5648b7541b8d93d70f42ebd45))
89
+ ### 🔧 Refactors
90
+ - Clean up component code formatting and structure in navigation menu, popover, and scroll area ([c0935d9](https://github.com/imrj05/unified-ui/commit/c0935d92ca5324338f590d25a2406ca85e0921f3))
91
+ ## [0.1.2]2026-03-02
92
+ ### 🚀 Features
93
+ - Integrate theme customizer and improve UI components
94
+ - Added ThemeCustomizerProvider and ThemeCustomizerTrigger to layout for theme customization.
95
+ - Updated button styles to enhance focus visibility and hover effects.
96
+ - Refactored collapsible component to improve readability and maintainability.
97
+ - Updated navigation menu and popover components to use new radix-ui imports.
98
+ - Enhanced data table demo with consistent text color updates.
99
+ - Improved scroll area component for better overflow handling.
100
+ - Updated TypeScript configuration to include new unified-ui paths for better module resolution. ([69bb594](https://github.com/imrj05/unified-ui/commit/69bb5940835fb0d45f29d21e4bf4bb44f67c66e1))
101
+ ### 🏗️ Miscellaneous
102
+ - Bump version to 0.1.2 and update changelog ([b09bbbf](https://github.com/imrj05/unified-ui/commit/b09bbbf4de830fad0211f8491e622436dc0ce783))
103
+ ### Other
104
+ - Regenerate package-lock
105
+ Bump @biomejs/biome to 2.4.4 and shikijs packages to 3.23.0.
106
+ Consolidate duplicated @radix-ui/react-slot entries into one resolved
107
+ entry. Lockfile churn from dependency updates only. ([2d0f0ed](https://github.com/imrj05/unified-ui/commit/2d0f0ed95660e49b64c5135e27e732747541b2b1))
108
+ - Revise README with expanded overview and docs ([f67f910](https://github.com/imrj05/unified-ui/commit/f67f910d6542877e57f6ad54b62d10538021b5f8))
151
109
  ## [0.1.1] — 2026-02-28
152
- ### Added
153
- #### DataTable Component
154
- - **DataTable** Full-featured data table powered by TanStack Table (`@tanstack/react-table` ≥ 8.0.0)
155
- - Column sorting, filtering (text + faceted), row selection, column visibility toggles
156
- - Built-in pagination with configurable page sizes
157
- - `useDataTable` hook for headless table state management
158
- - `createColumnHelper` re-export for type-safe column definitions
159
- - Exported types: `DataTableProps`, `DataTableColumnMeta`, `DataTableFacetedFilter`, `UseDataTableOptions`, `UseDataTableReturn`, `ColumnDef`, `ColumnFiltersState`, `PaginationState`, `Row`, `RowSelectionState`, `SortingState`, `VisibilityState`
160
- - `@tanstack/react-table` added as an optional peer dependency
161
- #### Motion Hooks
162
- - `useMotion()` hook for accessing motion presets with reduced-motion awareness
163
- - `useMotionProps()` hook that returns spread-ready motion props
164
- - `useMotionSpringConfig()` hook for accessing spring configuration tokens
165
- - `useReducedMotion()` hook for detecting `prefers-reduced-motion` user preference
166
- - `MotionSafe` wrapper component that conditionally renders motion based on user preference
167
- ### Changed
168
- - Updated `UNIFIED_UI_VERSION` exported constant from `"0.1.0"` to `"0.1.1"`
169
- - Component count updated from 22 to 23 across documentation and metadata
170
- - Package description updated to reflect 23+ components
171
- ### Fixed
172
- - Removed self-referential dependency (`@work-rjkashyap/unified-ui` depending on itself) from `package.json`
173
- - Added missing `homepage` and `bugs` fields to `package.json`
174
- - Added `funding` field to `package.json`
175
- - Expanded `keywords` in `package.json` for better npm discoverability (`tailwind-css-v4`, `design-tokens`, `css-variables`, `theming`, `dark-mode`, `typescript`, `tree-shakeable`)
176
- ---
110
+ ### Other
111
+ - Add DataTable, docs overhaul, and bump version
112
+ Implement a full DataTable component (TanStack Table) and export
113
+ hooks/types.
114
+ Bump UNIFIED_UI_VERSION to 0.1.1 and update package metadata (homepage,
115
+ bugs,
116
+ funding). Revamp many MDX component pages to use interactive
117
+ ComponentPage
118
+ previews and update icons/imports. Add ToastPreview demo component and
119
+ adjust
120
+ site links/README/CHANGELOG accordingly. ([8fb7338](https://github.com/imrj05/unified-ui/commit/8fb7338ca305daac24a6b595bf1ea30022d1e250))
121
+ - Add DataTable component and docs
122
+ Introduce DataTable powered by TanStack Table with sorting,
123
+ filtering, pagination, row selection, column visibility and a
124
+ useDataTable hook. Add a DataTableDemo component and a full MDX
125
+ documentation page. Also add a global hide-scrollbar CSS utility
126
+ and miscellaneous layout/formatting updates to notebook/sidebar
127
+ components. ([f10f8f0](https://github.com/imrj05/unified-ui/commit/f10f8f0fbc04321d545a0b1abe2e538a861b140b))
128
+ - Add @work-rjkashyap/unified-ui dependency
129
+ Move framer-motion to optionalDependencies and reorder devDependencies.
130
+ Format typesVersions arrays and update package-lock.json accordingly ([a3dec68](https://github.com/imrj05/unified-ui/commit/a3dec6872110b6db3de18ccb3152e8a3b4a3fd85))
177
131
  ## [0.1.0] — 2026-02-27
178
- ### Added
179
- #### Design Tokens
180
- - Color palettes: `slate`, `gray`, `zinc`, `neutral`, `red`, `green`, `blue`, `amber`, `teal`, `brand`, `pure`
181
- - Semantic color mappings for light and dark themes (`semanticLight`, `semanticDark`)
182
- - Spacing scale (0–96 + custom values)
183
- - Typography tokens: `fontFamily` (display, sans, serif, mono, inherit), `fontSize`, `fontWeight`, `lineHeight`, `letterSpacing`, typography variant presets
184
- - Radius scale (`none` through `full`)
185
- - Shadow scale with light and dark variants
186
- - Z-index scale (`hide`, `base`, `dropdown`, `sticky`, `overlay`, `modal`, `popover`, `toast`, `max`)
187
- - Motion tokens: `duration`, `easing`, `spring`, `stagger` (with CSS and seconds variants)
188
- #### Theme System
189
- - CSS variable contract mapping all tokens to plain CSS custom properties
190
- - `DSThemeProvider` component with light/dark/system mode support
191
- - `useDSTheme()` hook for programmatic theme access
192
- - `buildLightThemeVars()` / `buildDarkThemeVars()` / `buildThemeCSS()` utilities
193
- - `cssVar()` helper for type-safe CSS variable references
194
- #### Typography System
195
- - Multi-font architecture with four font families:
196
- - **Outfit** (`--font-outfit`) primary sans-serif UI typeface
197
- - **Inter** (`--font-inter`) display / headings
198
- - **Lora** (`--font-lora`) serif / editorial
199
- - **JetBrains Mono** (`--font-jetbrains`) monospace / code
200
- - `font` prop on `Typography` component for runtime font switching
201
- - Graceful fallback to system font stacks when web fonts are unavailable
202
- #### Tailwind CSS v4 Integration
203
- - `styles.css` with full `@theme` block mapping all tokens to Tailwind utilities
204
- - Direct Tailwind utilities for colors, radius, shadows, transitions, fonts (no prefix)
205
- - Font CSS custom properties (`--font-outfit`, `--font-inter`, `--font-lora`, `--font-jetbrains`)
206
- #### Primitive Components
207
- - **Typography** polymorphic text component with `variant`, `font`, `color`, `align`, `truncate` props
208
- - **Heading** semantic heading (h1–h6) with automatic size mapping
209
- - **Subheading** secondary heading variant
210
- - **Body** paragraph text with size variants
211
- - **Caption** small supporting text
212
- - **Label** form label with required indicator support
213
- - **Overline** uppercase label text
214
- - **InlineCode** inline code formatting
215
- - **Container** responsive max-width wrapper (`sm` through `2xl`)
216
- - **Stack** flexbox layout with `direction`, `gap`, `align`, `justify`
217
- - **Grid** — CSS grid layout with responsive column configuration
218
- - **Divider** horizontal/vertical separator with label support
219
- #### Composite Components (22 total)
220
- - **Button** primary, secondary, outline, ghost, danger, link variants; sm/md/lg sizes; icon-only mode; loading state
221
- - **Input** text input with prefix/suffix slots, error state, disabled state
222
- - **Textarea** auto-resize support, character count, error state
223
- - **Select** Radix-based with groups, labels, separators; searchable variant
224
- - **Checkbox** with `CheckboxGroup` for managing groups; indeterminate state
225
- - **Radio** `RadioGroup` + `RadioGroupItem` + `RadioCard` variant
226
- - **Switch** toggle with label positioning (start/end), sizes
227
- - **Card** composable `Card` / `CardHeader` / `CardBody` / `CardFooter`; elevated, outline, ghost variants
228
- - **Badge** — default, secondary, outline, success, warning, danger variants; sm/md/lg sizes
229
- - **Avatar** image with fallback initials, status indicator, `AvatarGroup` stacking
230
- - **Tooltip** — Radix-based with configurable side, align, delay
231
- - **Popover** — Radix-based with arrow, close button, controlled/uncontrolled
232
- - **DropdownMenu** — full Radix menu with items, checkbox items, radio items, sub-menus, shortcuts
233
- - **Dialog** — modal with sm/md/lg/xl/full sizes; composable header/body/footer; scroll locking
234
- - **Sheet** — slide-out drawer from top/right/bottom/left; sm/md/lg/xl sizes
235
- - **Tabs** — underline, segment, pills variants; horizontal/vertical orientation
236
- - **Accordion** — single/multiple mode; default/bordered/ghost variants; sm/md/lg sizes
237
- - **Toast** — portal-based with stacking, auto-dismiss, pause-on-hover, progress bar, `useToast()` hook
238
- - **Alert** — info, success, warning, error variants with icon, title, description
239
- - **Skeleton** — base `Skeleton` + `SkeletonText`, `SkeletonCircle`, `SkeletonRect` presets; pulse animation
240
- - **Table** — semantic table with striped rows, hover highlight, sticky header, responsive wrapper; compact/default/relaxed density
241
- - **Pagination** — page numbers with ellipsis, prev/next, compact variant, controlled/uncontrolled
242
- - **Breadcrumb** — composable sub-components + `BreadcrumbNav` shorthand; truncation with ellipsis
243
- #### Motion System
244
- - Fade presets: `fadeIn`, `fadeInFast`, `fadeInSlow`
245
- - Slide presets: `slideUp`, `slideUpSm`, `slideUpLg`, `slideUpSpring`, `slideDown`, `slideDownSm`, `slideLeft`, `slideRight`, `slideInFromLeft`, `slideInFromRight`, `slideInFromBottom`
246
- - Scale presets: `scaleIn`, `scaleInLg`, `scaleInSpring`
247
- - Blur presets: `blurIn`, `blurInSubtle`
248
- - Overlay/modal: `overlayBackdrop`, `modalContent`, `modalContentSpring`
249
- - Toast: `toastSlideIn`, `toastSlideUp`
250
- - Expand/collapse: `expandHeight`, `expandHeightSlow`
251
- - Micro-interactions: `press`, `tapScale`, `hoverScale`, `hoverLift`, `pop`, `popSubtle`
252
- - Loading: `pulse`, `spin`
253
- - Stagger containers: `staggerContainer`, `staggerContainerFast`, `staggerContainerSlow`
254
- - `motionProps()` spread helper for clean JSX usage
255
- - `reduceMotion` / `withReducedMotion()` utilities for `prefers-reduced-motion` support
256
- #### Utilities
257
- - `cn()` — class name merger (clsx + tailwind-merge)
258
- - `mergeSlots()` — slot-based class merging for composite components
259
- - `composeRefs()` — compose multiple React refs into one
260
- - `dsAttr()` / `dsDataAttrs()` — data attribute generators for component identification
261
- - `dsStateAttr()` — conditional data attribute for component states
262
- - `dsVar()` / `dsColorVar()` — CSS custom property reference helpers
263
- - `typedKeys()` — type-safe `Object.keys`
264
- - `noop` — no-operation function
265
- - Focus ring utilities: `focusRingClasses`, `focusRingInsetClasses`, `focusRingCompactClasses`, `focusWithinRingClasses`, `focusRingGroupRingClasses`, `focusRingGroupTriggerClasses`, `focusRingVariantOverrides`
266
- - WCAG contrast checking: `checkHexContrast`, `checkDSContrast`, `auditContrast`, `contrastRatio`, `relativeLuminance`, `meetsAA`, `meetsAAA`, `meetsNonTextAA`, `parseHex`, `parseRGBString`, `toRGBString`
267
- - Polymorphic component types: `AsProp`, `PolymorphicProps`, `PolymorphicPropsWithRef`, `PolymorphicRef`, `PolymorphicComponent`
268
- - Slot types: `SlotClasses`, `SlotConfig`, `SlotDefinition`, `SlotRenderFn`, `Slots`
269
- - Component types: `ComponentSize`, `ComponentIntent`, `ChildrenProps`, `OptionalChildrenProps`
270
- #### Package & Build
271
- - `tsup` build pipeline producing ESM (`.mjs`) and CJS (`.cjs`) with TypeScript declarations (`.d.ts` / `.d.cts`)
272
- - 7 entry points: `index`, `tokens`, `theme`, `primitives`, `components`, `motion`, `utils`
273
- - Selective `"use client"` directive — applied only to client entry points (not tokens/utils)
274
- - Radix UI packages externalized as optional peer dependencies
275
- - Tree-shakeable with code splitting enabled
276
- - `styles.css` exported as `@work-rjkashyap/unified-ui/styles.css` for Tailwind `@theme` integration
277
- - `@unified-ui/*` TypeScript path aliases (zero relative cross-directory imports)
278
- #### Infrastructure
279
- - `UNIFIED_UI_VERSION` exported constant for runtime version checking
280
- - `.npmignore` for clean package distribution
281
- - `sideEffects` field for optimal tree-shaking
282
- - Conditional `exports` map with full `import`/`require`/`types` resolution
283
- - `typesVersions` fallback for older TypeScript resolvers
284
- ---
285
- _Design system: Unified UI_
286
- _Maintainer: Rajeshwar Kashyap_
287
- _Repository: [github.com/imrj05/unified-ui](https://github.com/imrj05/unified-ui)_
132
+ ### 🚀 Features
133
+ - Publish @work-rjkashyap/unified-ui@0.1.0 to npm
134
+ Rename package scope from @unified-ui/react to
135
+ @work-rjkashyap/unified-ui
136
+ to match npm organization ownership.
137
+ Updated references across 39 files:
138
+ - packages/unified-ui/package.json (package name)
139
+ - Root package.json (workspace scripts + dependency)
140
+ - src/app/global.css (CSS import)
141
+ - All 22 component MDX docs (imports + code examples)
142
+ - 8 design system MDX docs (tokens, colors, motion, etc.)
143
+ - README.md, TODO.md, copilot-instructions.md ([4872c9a](https://github.com/imrj05/unified-ui/commit/4872c9a6b68b99eee42c8f3e2795b3c46ad22ade))
144
+ - Enhance layout components and navigation
145
+ - Refactored HomeLayout to improve structure and readability.
146
+ - Updated Nav component to include type safety for link items and improved rendering logic.
147
+ - Enhanced DocsLayout and DocsSidebar for better sidebar management and navigation.
148
+ - Added new legal, company, and resource sources in the source loader for better content organization.
149
+ - Improved styling and responsiveness in various layout components. ([c6f5803](https://github.com/imrj05/unified-ui/commit/c6f58032da8c7e07b3b1d3877ccc93b076875ad6))
150
+ - Add new components including Collapsible, Popover, Scroll Area, and Navigation Menu; update existing components with icons ([8907f41](https://github.com/imrj05/unified-ui/commit/8907f410b1d4abd94ff3613e32bf082b0c24a2c3))
151
+ - Enhance HomePage layout and HeroSection design, improve sidebar component structure ([e894c85](https://github.com/imrj05/unified-ui/commit/e894c85dbb9b18bb41fe1020602df20912d983d6))
152
+ - Update layout components with new Logo and navigation structure, enhance HeroSection design ([6a5bb28](https://github.com/imrj05/unified-ui/commit/6a5bb28aaea526e8b643b3fc805e54180bc31d4f))
153
+ - Add showcase and testimonials sections, enhance layout components
154
+ - Introduced `ShowcaseSection` component showcasing key features with interactive elements.
155
+ - Added `TestimonialsSection` component to display user feedback and experiences.
156
+ - Created `ComponentPage` layout for displaying component details, including preview and code tabs.
157
+ - Implemented `Logo` component for branding in the layout.
158
+ - Developed `Nav` component for navigation with links to documentation and components.
159
+ - Added `NavbarLinkItem` and `Navbar` components for structured navigation.
160
+ - Created `DocsSidebar` for sidebar navigation with page tree and tabs.
161
+ - Defined `SIDEBAR_TABS` for easy management of sidebar navigation items. ([88212b5](https://github.com/imrj05/unified-ui/commit/88212b5b150e0c41d5f87a87ffc4de1619fd7e84))
162
+ - Add sidebar link item and page tree components
163
+ - Implemented `createLinkItemRenderer` for rendering sidebar items based on the page tree structure.
164
+ - Added `createPageTreeRenderer` to manage the rendering of page tree items, including folders and separators.
165
+ - Introduced a dropdown component for sidebar tabs with enhanced accessibility and styling.
166
+ - Created utility functions for managing sidebar tabs and their properties.
167
+ - Added theme toggle functionality with improved user experience.
168
+ - Developed a table of contents (TOC) component with dynamic resizing and rendering based on headings.
169
+ - Enhanced UI components including buttons, collapsibles, navigation menus, and popovers for better usability and aesthetics.
170
+ - Introduced utility functions for merging refs and normalizing URLs. ([1b5c1da](https://github.com/imrj05/unified-ui/commit/1b5c1dad14d4720dc37cf3f388ea30d7afc5efae))
171
+ ### 🔧 Refactors
172
+ - Streamline HomeLayout component structure and improve readability ([4b3321d](https://github.com/imrj05/unified-ui/commit/4b3321de6a308a3a93938ed4af0e6d07f0bf17c9))
173
+ - Improve layout components and sidebar functionality
174
+ - Refactored LayoutContext and LayoutContextProvider for better readability and performance.
175
+ - Updated LayoutHeader and LayoutBody components to enhance styling and structure.
176
+ - Adjusted sidebar components to improve usability and visual consistency.
177
+ - Enhanced ThemeToggle component to support button type and improved accessibility.
178
+ - Added a new StatusPage component to display system status and incident history.
179
+ - Updated Popover and ScrollArea components for better z-index management and scroll behavior. ([1ae241f](https://github.com/imrj05/unified-ui/commit/1ae241f315563fd789bc176bdb0c45226ee1160a))
180
+ - Improve code formatting and readability across layout components ([08653fd](https://github.com/imrj05/unified-ui/commit/08653fdb7bccc8201ea9c826c663d0b2298a85a4))
181
+ - Format code for improved readability in HomeLayout component ([830877e](https://github.com/imrj05/unified-ui/commit/830877e2120c14ae964ca79186e99992fd4b9a9b))
182
+ ### Other
183
+ - Initial commit from Create Fumadocs App ([8fd3237](https://github.com/imrj05/unified-ui/commit/8fd3237b58fb87870e9db4b5aac9ec98060d2362))
package/bin/cli.mjs CHANGED
@@ -13,7 +13,7 @@
13
13
  // npx @work-rjkashyap/unified-ui init
14
14
  //
15
15
  // Components are fetched from the registry at:
16
- // https://unified-ui.vercel.app/r/<name>.json
16
+ // https://unified-ui-rajeshwar.vercel.app/r/<name>.json
17
17
  //
18
18
  // Files are written into the user's project at:
19
19
  // src/components/ui/<component>.tsx
@@ -35,12 +35,12 @@ import { createInterface } from "node:readline";
35
35
 
36
36
  const REGISTRY_BASE_URL =
37
37
  process.env.UNIFIED_UI_REGISTRY_URL ||
38
- "https://unified-ui.vercel.app/r";
38
+ "https://unified-ui-rajeshwar.vercel.app/r";
39
39
 
40
40
  const CONFIG_FILE = "unified-ui.json";
41
41
 
42
42
  const DEFAULT_CONFIG = {
43
- $schema: "https://unified-ui.vercel.app/r/schema/config.json",
43
+ $schema: "https://unified-ui-rajeshwar.vercel.app/r/schema/config.json",
44
44
  srcDir: "src",
45
45
  aliases: {
46
46
  components: "@/components/ui",