@medixdeck/ui 0.1.3 → 0.1.5

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 MedixDeck
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,451 +1,118 @@
1
1
  # @medixdeck/ui
2
2
 
3
- > **Shared UI Component Library** for MedixDeck — built with Vite, React 18, TypeScript, and Chakra UI v3.
3
+ > Shared React UI component library for MedixDeck, published as `@medixdeck/ui`.
4
4
 
5
- [![npm version](https://img.shields.io/badge/npm-%400.1.0-blue)](https://npmjs.com/package/@medixdeck/ui)
6
5
  [![TypeScript](https://img.shields.io/badge/TypeScript-5.x-blue)](https://www.typescriptlang.org/)
7
6
  [![Chakra UI](https://img.shields.io/badge/Chakra%20UI-v3-teal)](https://chakra-ui.com/)
8
7
  [![License](https://img.shields.io/badge/license-MIT-green)](./LICENSE)
9
8
 
10
- ---
9
+ `@medixdeck/ui` is a Vite library-mode package built with React 18, TypeScript 5, Chakra UI v3, semantic design tokens, and dual ESM/CJS output for npm publishing.
11
10
 
12
- ## Overview
13
-
14
- `@medixdeck/ui` is a **production-ready, design-system-driven** React component library that provides:
15
-
16
- - **43 components** covering primitives, forms, layout, navigation, feedback, data display, and healthcare-specific UI
17
- - **Full TypeScript support** with exported prop interfaces
18
- - **Light & dark mode** via semantic tokens + `next-themes` (`.dark` class on `<html>`)
19
- - **Satoshi font** (Fontshare CDN) + **Inter** (Google Fonts) — both loaded automatically by `MedixProvider`gi
20
- - **`Logo` component** — inline SVG, 4 color variants (blue/purple/black/white), full + icon-only modes
21
- - **ESM + CJS** dual outputs with `.d.ts` declarations
22
- - **Zero runtime CSS** — styles are generated by Chakra UI v3's Panda CSS engine
23
-
24
- ---
25
-
26
- ## Quick Start
27
-
28
- ### Install
11
+ ## Install
29
12
 
30
13
  ```bash
31
- npm install @medixdeck/ui @chakra-ui/react next-themes
32
- ```
33
-
34
- ### Wrap your root
35
-
36
- ```tsx
37
- // app/layout.tsx (Next.js App Router)
38
- import { MedixProvider } from "@medixdeck/ui";
39
-
40
- export default function RootLayout({ children }: { children: React.ReactNode }) {
41
- return (
42
- <html lang="en">
43
- <body>
44
- {/* MedixProvider injects Satoshi + Inter fonts and all CSS vars automatically */}
45
- <MedixProvider defaultColorMode="light">
46
- {children}
47
- </MedixProvider>
48
- </body>
49
- </html>
50
- );
51
- }
52
- ```
53
-
54
- ```tsx
55
- // main.tsx (Vite)
56
- import { MedixProvider } from "@medixdeck/ui";
57
- import ReactDOM from "react-dom/client";
58
- import App from "./App";
59
-
60
- ReactDOM.createRoot(document.getElementById("root")!).render(
61
- <MedixProvider defaultColorMode="light">
62
- <App />
63
- </MedixProvider>
64
- );
65
- ```
66
-
67
- ### Use components
68
-
69
- ```tsx
70
- import { Button, DoctorCard, OTPInput, PhoneInput, DataTable, Logo } from "@medixdeck/ui";
71
-
72
- // Button
73
- <Button variant="solid" colorScheme="blue">Talk to a Doctor</Button>
74
-
75
- // Logo — inline SVG, no image assets needed
76
- <Logo /> // full blue, 32px
77
- <Logo variant="purple" type="icon" /> // icon-only, purple
78
- <Logo variant="white" height={28} /> // white full logo
79
- <Logo variant="black" type="icon" height={48} /> // black icon
80
-
81
- // Logo in a Navbar (or pass no logo prop for automatic default)
82
- <Navbar logo={<Logo variant="purple" height={28} />} navItems={[...]} />
83
-
84
- // Phone input with country code
85
- <PhoneInput label="Phone number" defaultCountryCode="+234" onChange={setPhone} />
86
-
87
- // OTP verification
88
- <OTPInput length={6} label="Enter verification code" onComplete={verifyCode} />
89
-
90
- // Data table with sorting
91
- <DataTable
92
- columns={[{ key: "name", label: "Patient", sortable: true }]}
93
- data={patients}
94
- rowKey="id"
95
- striped
96
- onRowClick={(row) => router.push(`/patients/${row.id}`)}
97
- />
98
- ```
99
-
100
- ---
101
-
102
- ## Component Index
103
-
104
- ### 🔵 Primitive (8)
105
-
106
- | Component | Props | Description |
107
- | --- | --- | --- |
108
- | `Button` | `variant`, `size`, `colorScheme`, `isLoading`, `leftIcon`, `rightIcon` | Primary action button |
109
- | `IconButton` | `icon`, `label`, `variant`, `size` | Icon-only button |
110
- | `Badge` | `status`, `variant`, `size` | Status indicator label |
111
- | `Avatar` | `src`, `name`, `size`, `showStatus`, `statusColor` | Profile picture with initials fallback |
112
- | `AvatarGroup` | `max`, `size` | Stacked avatar display |
113
- | `Spinner` / `FullPageSpinner` | `size`, `label`, `color` | Loading animation |
114
- | `Tag` | `colorScheme`, `variant`, `onClose` | Filter chip |
115
- | `Divider` | `orientation`, `label` | Section separator |
116
- | `Logo` | `variant`, `type`, `height` | MedixDeck brand logo — inline SVG, no asset files needed |
117
-
118
- ### 📝 Form (10)
119
-
120
- | Component | Props | Description |
121
- | --- | --- | --- |
122
- | `Input` | `type`, `placeholder`, `isInvalid`, `leftIcon`, `rightIcon` | Text field |
123
- | `SearchInput` | `placeholder`, `onChange` | Search field with icon |
124
- | `Textarea` | `rows`, `maxLength`, `showCount` | Multi-line input |
125
- | `Select` | `options[]`, `placeholder`, `isInvalid` | Native dropdown |
126
- | `Checkbox` | `colorScheme`, `description` | Single checkbox |
127
- | `RadioGroup` | `name`, `options[]`, `onChange`, `direction` | Radio button group |
128
- | `Switch` | `label`, `description`, `size`, `colorScheme` | Toggle switch |
129
- | `FormControl` | `label`, `helperText`, `errorMessage`, `isRequired` | Field wrapper with label/error |
130
- | `OTPInput` / `PinInput` | `length`, `value`, `onChange`, `onComplete`, `mask`, `isInvalid` | One-time password boxes |
131
- | `PhoneInput` | `defaultCountryCode`, `placeholder`, `onChange` | Phone + country code selector |
132
- | `DatePicker` | `value`, `min`, `max`, `onChange`, `includeTime` | Styled date/datetime input |
133
-
134
- ### 🧩 Layout (4)
135
-
136
- | Component | Props | Description |
137
- | --- | --- | --- |
138
- | `Card` / `CardHeader` / `CardBody` / `CardFooter` | `hoverable`, `title`, `subtitle` | Surface container |
139
- | `StatCard` | `value`, `label`, `change`, `trend` | KPI metric card |
140
- | `Container` | `maxWidth` | Centered page wrapper |
141
- | `SectionHeader` | `eyebrow`, `title`, `description`, `align` | Section heading block |
142
-
143
- ### 🔗 Navigation (5)
144
-
145
- | Component | Props | Description |
146
- | --- | --- | --- |
147
- | `Navbar` | `logo?`, `navItems[]`, `ctaLabel`, `isSticky`, `renderLink`, `variant` | Responsive header. Falls back to `<Logo />` when `logo` is omitted |
148
- | `Breadcrumb` | `items[]`, `separator`, `renderLink` | Page path navigator |
149
- | `Tabs` | `tabs[]`, `variant`, `activeId`, `onChange` | Line and pill variants |
150
- | `Pagination` | `total`, `pageSize`, `currentPage`, `onChange`, `compact` | Page navigation |
151
- | `Stepper` | `steps[]`, `currentStep`, `orientation`, `colorScheme` | Multi-step progress |
152
-
153
- ### 🔔 Feedback & Overlays (8)
154
-
155
- | Component | Props | Description |
156
- | --- | --- | --- |
157
- | `Alert` | `status`, `variant`, `title`, `description`, `closable` | Inline message |
158
- | `Skeleton` / `SkeletonText` / `SkeletonCard` | `isLoaded`, `lines` | Loading placeholder |
159
- | `Progress` | `value`, `colorScheme`, `size`, `isIndeterminate`, `showLabel` | Progress bar |
160
- | `Modal` | `isOpen`, `onClose`, `title`, `description`, `size`, `footer` | Dialog overlay |
161
- | `Drawer` | `isOpen`, `onClose`, `title`, `placement`, `size`, `footer` | Slide-in panel |
162
- | `Tooltip` | `label`, `placement` | Hover label |
163
- | `EmptyState` | `icon`, `title`, `description`, `actionLabel` | Zero-data screen |
164
-
165
- ### 📊 Data Display (4)
166
-
167
- | Component | Props | Description |
168
- | --- | --- | --- |
169
- | `Accordion` | `items[]`, `allowMultiple`, `variant` | Collapsible FAQ |
170
- | `TestimonialCard` | `quote`, `authorName`, `authorTitle`, `rating` | Review card |
171
- | `BlogCard` | `title`, `excerpt`, `category`, `coverImage`, `href` | Article preview |
172
- | `DataTable` | `columns[]`, `data[]`, `sortable`, `striped`, `onRowClick`, `isLoading` | Sortable data table |
173
-
174
- ### 🏥 Healthcare-Specific (3)
175
-
176
- | Component | Props | Description |
177
- | --- | --- | --- |
178
- | `DoctorCard` | `name`, `specialty`, `rating`, `consultationFee`, `isVerified`, `isAvailable`, `onBookClick` | Doctor profile card |
179
- | `VitalBadge` | `label`, `value`, `unit`, `status` | Vital sign display |
180
- | `AppointmentCard` | `doctorName`, `date`, `time`, `type`, `status`, `onJoin`, `onReschedule`, `onCancel` | Appointment summary |
181
-
182
- ---
183
-
184
- ## Design Tokens
185
-
186
- ### Color Palette
187
-
188
- | Token | Light | Dark | Hex |
189
- | --- | --- | --- | --- |
190
- | `bg` | #FEFEFE | #0A1220 | — |
191
- | `bg.surface` | #F6F6F6 | #152035 | — |
192
- | `text.heading` | #111926 | #F5F6F8 | — |
193
- | `text.body` | #374151 | #CBD5E1 | — |
194
- | `text.muted` | #6B7280 | #94A3B8 | — |
195
- | `border` | #E2E8F0 | #1E3554 | — |
196
- | `blue.500` | — | — | #0685FF |
197
- | `purple.500` | — | — | #7700CC |
198
-
199
- ### Typography
200
-
201
- ```tsx
202
- // CSS custom properties injected by MedixProvider
203
- --font-body: "Satoshi", sans-serif
204
- --font-heading: "Satoshi", sans-serif
14
+ npm install @medixdeck/ui @chakra-ui/react react react-dom
205
15
  ```
206
16
 
207
- ### Using tokens directly
17
+ ## Quick start
208
18
 
209
19
  ```tsx
210
- import { Box } from "@medixdeck/ui";
20
+ import { Button, MedixProvider, Navbar, Logo } from "@medixdeck/ui";
211
21
 
212
- // Use semantic tokens in any Box prop
213
- <Box bg="bg.surface" color="text.heading" border="1px solid" borderColor="border">
214
- Hello World
215
- </Box>
216
- ```
217
-
218
- ### Accessing the raw `system` object
219
-
220
- ```tsx
221
- import { system } from "@medixdeck/ui";
222
- import { ChakraProvider } from "@chakra-ui/react";
223
-
224
- // Use the design system without MedixProvider
225
- <ChakraProvider value={system}>
226
- {children}
227
- </ChakraProvider>
228
- ```
229
-
230
- ---
231
-
232
- ## Dark Mode
233
-
234
- Dark mode is managed by `next-themes`. `MedixProvider` handles it automatically by applying a `.dark` class to `<html>`.
235
-
236
- ```tsx
237
- // next-themes hook — use in any child component
238
- import { useTheme } from "next-themes";
239
-
240
- function DarkModeButton() {
241
- const { theme, setTheme } = useTheme();
22
+ export function App() {
242
23
  return (
243
- <Button onClick={() => setTheme(theme === "light" ? "dark" : "light")}>
244
- {theme === "light" ? "🌙 Dark" : "☀️ Light"}
245
- </Button>
24
+ <MedixProvider defaultColorMode="light">
25
+ <Navbar
26
+ navItems={[{ label: "Docs", href: "#docs" }]}
27
+ ctaLabel="Talk to a Doctor"
28
+ ctaHref="/consult"
29
+ />
30
+ <Button variant="solid" colorScheme="blue">Book appointment</Button>
31
+ <Logo variant="purple" height={28} />
32
+ </MedixProvider>
246
33
  );
247
34
  }
248
35
  ```
249
36
 
250
- Or manage it manually — just add/remove `dark` from `document.documentElement`:
37
+ ## Public API index
251
38
 
252
- ```tsx
253
- // Toggle dark mode without next-themes (e.g. in a Vite dev preview)
254
- useEffect(() => {
255
- document.documentElement.classList.toggle("dark", isDark);
256
- }, [isDark]);
257
- ```
258
-
259
- > **Important:** Always apply the `dark` class on `<html>` (or a root ancestor that wraps **all** components including `<Navbar>`). Applying it on an inner `<Box>` while leaving sticky/portal components outside will break their dark mode.
39
+ | Area | Exports |
40
+ | --- | --- |
41
+ | Provider + theme | `MedixProvider`, `system`, `medixConfig`, token exports |
42
+ | Primitive | `Button`, `IconButton`, `Badge`, `Avatar`, `AvatarGroup`, `Spinner`, `FullPageSpinner`, `Tag`, `Divider`, `Logo` |
43
+ | Form | `Input`, `SearchInput`, `Textarea`, `Select`, `Checkbox`, `RadioGroup`, `Switch`, `FormControl`, `OTPInput`, `PinInput`, `PhoneInput`, `DatePicker`, `DateRangePicker`, `Combobox`, `FileUpload` |
44
+ | Layout | `Card`, `CardHeader`, `CardBody`, `CardFooter`, `StatCard`, `Container`, `SectionHeader`, `DashboardLayout` |
45
+ | Navigation | `Navbar`, `Breadcrumb`, `Tabs`, `Pagination`, `Stepper` |
46
+ | Feedback | `Alert`, `Skeleton`, `SkeletonText`, `SkeletonCard`, `Progress`, `Modal`, `Drawer`, `Tooltip`, `EmptyState`, `Toaster`, `toast`, `dismissToast` |
47
+ | Data display | `Accordion`, `TestimonialCard`, `BlogCard`, `DataTable` |
48
+ | Healthcare | `DoctorCard`, `VitalBadge`, `AppointmentCard` |
49
+ | Chakra re-exports | `Box`, `Flex`, `Grid`, `Stack`, `Text`, `Heading`, `Link`, `Image`, `Icon`, `Center`, `Wrap`, `WrapItem`, others in `lib/index.ts` |
260
50
 
261
- ---
51
+ ## Design-system rules
262
52
 
263
- ## Custom Link Renderer
53
+ - Use Chakra UI **v3** APIs only.
54
+ - All library source lives in `lib\`; `src\` is dev-preview only.
55
+ - Use semantic tokens such as `bg.surface`, `text.heading`, and `border` instead of raw hex for normal component styling.
56
+ - For color-critical interactive controls, prefer the repo's native-first pattern instead of Chakra recipes.
57
+ - Apply dark mode on `document.documentElement`, not an inner container.
264
58
 
265
- For Next.js or React Router routing without anchor reloads:
266
-
267
- ```tsx
268
- import Link from "next/link"; // or from react-router-dom
59
+ ## Repository index
269
60
 
270
- // Navbar
271
- <Navbar
272
- navItems={[{ label: "Home", href: "/" }, { label: "Doctors", href: "/doctors" }]}
273
- renderLink={(item, children) => (
274
- <Link href={item.href} style={{ textDecoration: "none" }}>
275
- {children}
276
- </Link>
277
- )}
278
- />
279
-
280
- // Breadcrumb
281
- <Breadcrumb
282
- items={[{ label: "Home", href: "/" }, { label: "Doctors" }]}
283
- renderLink={(item, children) => <Link href={item.href}>{children}</Link>}
284
- />
285
- ```
286
-
287
- ---
288
-
289
- ## OTPInput / PinInput
290
-
291
- ```tsx
292
- <OTPInput
293
- length={6}
294
- label="Enter verification code"
295
- helperText="We sent a 6-digit code to your registered phone"
296
- value={otp}
297
- onChange={setOtp}
298
- onComplete={(code) => verifyOtp(code)}
299
- />
300
-
301
- // Masked PIN mode
302
- <PinInput length={4} mask label="Enter your PIN" />
61
+ ```txt
62
+ lib\ library source and npm entrypoint
63
+ src\ local showcase app only
64
+ .github\workflows\publish.yml npm publish workflow
65
+ AGENTS.md full multi-agent repo guide
66
+ COPILOT.md concise AI contributor guide
67
+ .github\copilot-instructions.md GitHub Copilot repo instructions
68
+ CONTRIBUTING.md contributor workflow
69
+ CHANGELOG.md release history
70
+ LICENSE package license
71
+ package.json npm metadata and scripts
303
72
  ```
304
73
 
305
- ---
306
-
307
- ## PhoneInput
74
+ ## Development commands
308
75
 
309
- ```tsx
310
- <PhoneInput
311
- label="Phone number"
312
- defaultCountryCode="+234"
313
- placeholder="80 000 0000"
314
- value={phone}
315
- onChange={setPhone}
316
- helperText="We'll send your confirmation here"
317
- />
76
+ ```bash
77
+ npm run dev
78
+ npm run build
79
+ npm run test
80
+ npm run pack:check
318
81
  ```
319
82
 
320
- Supported country codes: 🇳🇬 +234, 🇺🇸 +1, 🇬🇧 +44, 🇬🇭 +233, 🇰🇪 +254, 🇿🇦 +27, 🇪🇹 +251, 🇹🇿 +255
83
+ ## Publishing notes
321
84
 
322
- ---
85
+ - The package publishes from `dist\` with ESM, CJS, sourcemaps, and `.d.ts` declarations.
86
+ - Public API changes must stay in sync across `lib\index.ts`, `README.md`, `src\App.tsx`, Storybook stories, and `CHANGELOG.md`.
87
+ - The GitHub Actions workflow installs dependencies, runs build and test checks, performs `npm pack --dry-run`, and then publishes to npm.
323
88
 
324
- ## DataTable
325
-
326
- ```tsx
327
- <DataTable
328
- columns={[
329
- { key: "name", label: "Patient Name", sortable: true },
330
- { key: "date", label: "Date", sortable: true },
331
- {
332
- key: "status",
333
- label: "Status",
334
- render: (val) => <Badge status={val === "Active" ? "success" : "warning"}>{val}</Badge>,
335
- },
336
- ]}
337
- data={patients}
338
- rowKey="id"
339
- striped
340
- isLoading={isFetching}
341
- onRowClick={(row) => router.push(`/patients/${row.id}`)}
342
- />
343
- ```
344
-
345
- ---
346
-
347
- ## Project Structure
89
+ ## Project structure
348
90
 
349
91
  ```txt
350
- medixdeck-ui/
351
- ├── lib/ ← Library source
352
- │ ├── index.ts ← Single export entry point
353
- │ ├── theme/
354
- │ │ ├── index.ts ← createSystem (Chakra v3)
355
- │ │ ├── colors.ts ← Primitive color tokens
356
- │ │ ├── typography.ts ← Font scale & text styles
357
- │ │ └── spacing.ts ← Spacing, radii, shadows
358
- │ └── components/
359
- │ ├── provider/
360
- │ │ └── MedixProvider.tsx ← Theme + dark mode provider
361
- │ ├── primitive/
362
- │ │ ├── Button.tsx
363
- │ │ ├── IconButton.tsx
364
- │ │ ├── Badge.tsx
365
- │ │ ├── Avatar.tsx ← Avatar + AvatarGroup
366
- │ │ ├── Spinner.tsx
367
- │ │ ├── Tag.tsx
368
- │ │ ├── Divider.tsx
369
- │ │ └── Logo.tsx ← Brand logo, 4 variants, full + icon modes
370
- │ ├── form/
371
- │ │ ├── Input.tsx ← Input + SearchInput
372
- │ │ ├── Textarea.tsx
373
- │ │ ├── Select.tsx
374
- │ │ ├── CheckboxRadio.tsx ← Checkbox + RadioGroup
375
- │ │ ├── Switch.tsx
376
- │ │ ├── FormControl.tsx
377
- │ │ ├── OTPInput.tsx ← OTPInput + PinInput
378
- │ │ ├── PhoneInput.tsx ← With country code selector
379
- │ │ └── DatePicker.tsx
380
- │ ├── layout/
381
- │ │ ├── Card.tsx ← Card + Header/Body/Footer
382
- │ │ ├── StatCard.tsx
383
- │ │ └── Container.tsx ← Container + SectionHeader
384
- │ ├── navigation/
385
- │ │ ├── Navbar.tsx
386
- │ │ ├── Breadcrumb.tsx
387
- │ │ ├── Tabs.tsx
388
- │ │ ├── Pagination.tsx
389
- │ │ └── Stepper.tsx
390
- │ ├── feedback/
391
- │ │ ├── Alert.tsx
392
- │ │ ├── Skeleton.tsx ← Skeleton + SkeletonText + SkeletonCard
393
- │ │ ├── Progress.tsx
394
- │ │ ├── Modal.tsx
395
- │ │ ├── Drawer.tsx
396
- │ │ ├── Tooltip.tsx
397
- │ │ └── EmptyState.tsx
398
- │ ├── data/
399
- │ │ ├── Accordion.tsx
400
- │ │ ├── Cards.tsx ← TestimonialCard + BlogCard
401
- │ │ └── DataTable.tsx
402
- │ └── healthcare/
403
- │ └── DoctorCard.tsx ← DoctorCard + VitalBadge + AppointmentCard
404
- ├── src/
405
- │ ├── main.tsx ← Dev preview entry
406
- │ └── App.tsx ← Component showcase app
407
- ├── dist/ ← Built output (git-ignored)
408
- │ ├── index.js ← ESM build
409
- │ ├── index.cjs ← CJS build
410
- │ └── index.d.ts ← TypeScript declarations
411
- ├── AGENTS.md ← AI agent guidelines
412
- ├── index.html
92
+ medixdeck-ui\
93
+ ├── lib\
94
+ │ ├── index.ts
95
+ │ ├── theme\
96
+ │ └── components\
97
+ │ ├── provider\
98
+ │ ├── primitive\
99
+ │ ├── form\
100
+ │ ├── layout\
101
+ │ ├── navigation\
102
+ │ ├── feedback\
103
+ │ ├── data\
104
+ │ └── healthcare\
105
+ ├── src\
106
+ ├── .github\
107
+ │ ├── copilot-instructions.md
108
+ │ └── workflows\publish.yml
109
+ ├── AGENTS.md
110
+ ├── COPILOT.md
111
+ ├── CONTRIBUTING.md
112
+ ├── CHANGELOG.md
113
+ ├── LICENSE
114
+ ├── package.json
413
115
  ├── vite.config.ts
414
- ├── tsconfig.json
415
- ├── tsconfig.build.json
416
- └── package.json
116
+ ├── vitest.config.ts
117
+ └── tsconfig.build.json
417
118
  ```
418
-
419
- ---
420
-
421
- ## Scripts
422
-
423
- | Script | Command | Description |
424
- | --- | --- | --- |
425
- | Dev preview | `npm run dev` | Start Vite dev server (<http://localhost:5173>) |
426
- | Build library | `npm run build` | Compile to `dist/` (ESM + CJS + types) |
427
- | Type check | `npm run typecheck` | Run `tsc --noEmit` |
428
-
429
- ---
430
-
431
- ## Roadmap
432
-
433
- - [x] Primitive components (Button, Badge, Avatar, Spinner, Tag, Divider, **Logo**)
434
- - [x] Form components (Input, Textarea, Select, Checkbox, RadioGroup, Switch, FormControl)
435
- - [x] OTPInput / PinInput
436
- - [x] PhoneInput with country code selector
437
- - [x] DatePicker
438
- - [x] Layout components (Card, StatCard, Container, SectionHeader)
439
- - [x] Navigation (Navbar with default Logo fallback, Breadcrumb, Tabs, Pagination, Stepper)
440
- - [x] Feedback (Alert, Skeleton, Progress, Modal, Drawer, Tooltip, EmptyState)
441
- - [x] DataTable with sorting + loading state
442
- - [x] Healthcare components (DoctorCard, VitalBadge, AppointmentCard)
443
- - [x] Font auto-injection (Satoshi + Inter via MedixProvider)
444
- - [x] Dark mode via `.dark` class on `<html>` (all components including Navbar respond correctly)
445
- - [x] Storybook interactive docs
446
- - [x] Vitest + React Testing Library unit tests
447
- - [x] GitHub Actions CI/CD for automated publishing
448
- - [x] `DateRangePicker` component
449
- - [x] `Combobox` / searchable select
450
- - [x] `FileUpload` component
451
- - [x] `Notification` / toast system