@orion-ds/react 1.2.7 → 2.0.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.
Files changed (106) hide show
  1. package/AI_COMPONENTS.md +37 -26
  2. package/AI_GUIDE.md +547 -0
  3. package/AI_QUICKREF.md +14 -2
  4. package/README.md +97 -15
  5. package/dist/components/Accordion/index.d.ts +16 -1
  6. package/dist/components/Accordion/index.d.ts.map +1 -1
  7. package/dist/components/Alert/index.d.ts +11 -1
  8. package/dist/components/Alert/index.d.ts.map +1 -1
  9. package/dist/components/Avatar/index.d.ts +10 -1
  10. package/dist/components/Avatar/index.d.ts.map +1 -1
  11. package/dist/components/Badge/index.d.ts +11 -1
  12. package/dist/components/Badge/index.d.ts.map +1 -1
  13. package/dist/components/Breadcrumb/index.d.ts +15 -1
  14. package/dist/components/Breadcrumb/index.d.ts.map +1 -1
  15. package/dist/components/Button/index.d.ts +11 -1
  16. package/dist/components/Button/index.d.ts.map +1 -1
  17. package/dist/components/Card/index.d.ts +14 -1
  18. package/dist/components/Card/index.d.ts.map +1 -1
  19. package/dist/components/Carousel/index.d.ts +16 -1
  20. package/dist/components/Carousel/index.d.ts.map +1 -1
  21. package/dist/components/Checkbox/index.d.ts +10 -1
  22. package/dist/components/Checkbox/index.d.ts.map +1 -1
  23. package/dist/components/Chip/index.d.ts +11 -1
  24. package/dist/components/Chip/index.d.ts.map +1 -1
  25. package/dist/components/Combobox/index.d.ts +17 -1
  26. package/dist/components/Combobox/index.d.ts.map +1 -1
  27. package/dist/components/Divider/index.d.ts +11 -1
  28. package/dist/components/Divider/index.d.ts.map +1 -1
  29. package/dist/components/Drawer/index.d.ts +16 -1
  30. package/dist/components/Drawer/index.d.ts.map +1 -1
  31. package/dist/components/Dropdown/index.d.ts +17 -1
  32. package/dist/components/Dropdown/index.d.ts.map +1 -1
  33. package/dist/components/EmptyState/index.d.ts +14 -1
  34. package/dist/components/EmptyState/index.d.ts.map +1 -1
  35. package/dist/components/Field/index.d.ts +11 -1
  36. package/dist/components/Field/index.d.ts.map +1 -1
  37. package/dist/components/FontLoader/index.d.ts +15 -2
  38. package/dist/components/FontLoader/index.d.ts.map +1 -1
  39. package/dist/components/Icon/index.d.ts +16 -1
  40. package/dist/components/Icon/index.d.ts.map +1 -1
  41. package/dist/components/IconGallery/index.d.ts +14 -1
  42. package/dist/components/IconGallery/index.d.ts.map +1 -1
  43. package/dist/components/Link/index.d.ts +11 -1
  44. package/dist/components/Link/index.d.ts.map +1 -1
  45. package/dist/components/List/index.d.ts +15 -1
  46. package/dist/components/List/index.d.ts.map +1 -1
  47. package/dist/components/Modal/index.d.ts +15 -1
  48. package/dist/components/Modal/index.d.ts.map +1 -1
  49. package/dist/components/Navbar/index.d.ts +20 -1
  50. package/dist/components/Navbar/index.d.ts.map +1 -1
  51. package/dist/components/Pagination/index.d.ts +13 -1
  52. package/dist/components/Pagination/index.d.ts.map +1 -1
  53. package/dist/components/Popover/index.d.ts +17 -1
  54. package/dist/components/Popover/index.d.ts.map +1 -1
  55. package/dist/components/ProgressBar/index.d.ts +10 -1
  56. package/dist/components/ProgressBar/index.d.ts.map +1 -1
  57. package/dist/components/Radio/index.d.ts +10 -1
  58. package/dist/components/Radio/index.d.ts.map +1 -1
  59. package/dist/components/SearchInput/index.d.ts +10 -1
  60. package/dist/components/SearchInput/index.d.ts.map +1 -1
  61. package/dist/components/Select/index.d.ts +17 -1
  62. package/dist/components/Select/index.d.ts.map +1 -1
  63. package/dist/components/Skeleton/index.d.ts +10 -1
  64. package/dist/components/Skeleton/index.d.ts.map +1 -1
  65. package/dist/components/Slider/index.d.ts +10 -1
  66. package/dist/components/Slider/index.d.ts.map +1 -1
  67. package/dist/components/Spinner/index.d.ts +10 -1
  68. package/dist/components/Spinner/index.d.ts.map +1 -1
  69. package/dist/components/Stepper/index.d.ts +15 -1
  70. package/dist/components/Stepper/index.d.ts.map +1 -1
  71. package/dist/components/Switch/index.d.ts +10 -1
  72. package/dist/components/Switch/index.d.ts.map +1 -1
  73. package/dist/components/Table/index.d.ts +18 -1
  74. package/dist/components/Table/index.d.ts.map +1 -1
  75. package/dist/components/Tabs/index.d.ts +15 -1
  76. package/dist/components/Tabs/index.d.ts.map +1 -1
  77. package/dist/components/Textarea/index.d.ts +10 -1
  78. package/dist/components/Textarea/index.d.ts.map +1 -1
  79. package/dist/components/ThemeController/index.d.ts +15 -1
  80. package/dist/components/ThemeController/index.d.ts.map +1 -1
  81. package/dist/components/Toast/index.d.ts +22 -1
  82. package/dist/components/Toast/index.d.ts.map +1 -1
  83. package/dist/components/Tooltip/index.d.ts +14 -1
  84. package/dist/components/Tooltip/index.d.ts.map +1 -1
  85. package/dist/contexts/ThemeContext.d.ts +12 -1
  86. package/dist/contexts/ThemeContext.d.ts.map +1 -1
  87. package/dist/index.cjs +14 -14
  88. package/dist/index.cjs.map +1 -1
  89. package/dist/index.d.ts +2 -2
  90. package/dist/index.d.ts.map +1 -1
  91. package/dist/index.mjs +1519 -1494
  92. package/dist/index.mjs.map +1 -1
  93. package/dist/sections/CTA/CTA.d.ts +1 -1
  94. package/dist/sections/CTA/CTA.d.ts.map +1 -1
  95. package/dist/sections/CTA/CTA.types.d.ts +8 -4
  96. package/dist/sections/CTA/CTA.types.d.ts.map +1 -1
  97. package/dist/sections/DetailPanel/DetailPanel.d.ts +1 -0
  98. package/dist/sections/DetailPanel/DetailPanel.d.ts.map +1 -1
  99. package/dist/sections/DetailPanel/DetailPanel.types.d.ts +7 -2
  100. package/dist/sections/DetailPanel/DetailPanel.types.d.ts.map +1 -1
  101. package/dist/sections/Hero/Hero.d.ts +3 -3
  102. package/dist/sections/Hero/Hero.d.ts.map +1 -1
  103. package/dist/sections/Hero/Hero.types.d.ts +9 -5
  104. package/dist/sections/Hero/Hero.types.d.ts.map +1 -1
  105. package/dist/templates/marketing/LandingPageTemplate/LandingPageTemplate.d.ts +1 -1
  106. package/package.json +11 -3
package/AI_QUICKREF.md CHANGED
@@ -11,7 +11,8 @@ import '@orion-ds/react/styles.css';
11
11
 
12
12
  import { ThemeProvider } from '@orion-ds/react';
13
13
 
14
- <ThemeProvider>
14
+ // New flat props API (preferred)
15
+ <ThemeProvider defaultBrand="orion" defaultTheme="light">
15
16
  <App />
16
17
  </ThemeProvider>
17
18
  ```
@@ -31,6 +32,10 @@ Avatar, Table, List, Chip, Pagination, Stepper
31
32
  ## Sections (Landing Pages)
32
33
  Hero, Features, CTA, Footer, Pricing, Testimonials, Stats, FAQ, Carousel, Team, Contact, Newsletter, LogoCloud, Blog, Gallery, Timeline, Comparison, Banner, SocialProof, AppDownload
33
34
 
35
+ ## Templates (Full Pages)
36
+ **Marketing:** LandingPageTemplate, PricingPageTemplate, AboutPageTemplate, ContactPageTemplate
37
+ **App:** DashboardTemplate, SettingsTemplate, ProfilePageTemplate, KanbanPageTemplate, LoginTemplate
38
+
34
39
  ## Icon Usage
35
40
  ```tsx
36
41
  import { Search } from 'lucide-react';
@@ -61,4 +66,11 @@ const { theme, brand, setTheme, setBrand } = useThemeContext();
61
66
  - ALWAYS import styles.css (or both CSS files separately)
62
67
  - ALWAYS add `aria-label` to iconOnly buttons
63
68
 
64
- ## Full docs: AI_COMPONENTS.md
69
+ ## Deprecated Props (v2.0)
70
+ | Old | New | Component |
71
+ |-----|-----|-----------|
72
+ | `headline` | `title` | Hero, CTA |
73
+ | `subtitle` | `description` | DetailPanel |
74
+ | `options` | flat props | ThemeProvider |
75
+
76
+ ## Full docs: AI_GUIDE.md, AI_COMPONENTS.md
package/README.md CHANGED
@@ -1,8 +1,8 @@
1
- # @orion/react
1
+ # @orion-ds/react
2
2
 
3
- > **Orion Design System** - React Component Library
3
+ > **Orion Design System** - AI-First React Component Library
4
4
 
5
- TypeScript-first React component library built on the Orion Design System tokens. Features 22 production-ready components with full type safety, theme switching, and multi-brand support.
5
+ TypeScript-first React component library built on the Orion Design System. Features 40+ components, 30+ sections, and 9 page templates with full type safety, theme switching, and multi-brand support.
6
6
 
7
7
  [![TypeScript](https://img.shields.io/badge/TypeScript-100%25-blue)](https://www.typescriptlang.org/)
8
8
  [![Tests](https://img.shields.io/badge/tests-passing-brightgreen)](#)
@@ -10,15 +10,15 @@ TypeScript-first React component library built on the Orion Design System tokens
10
10
 
11
11
  ## Features
12
12
 
13
- - **22 TypeScript Components** - Fully typed with IntelliSense support
13
+ - 🤖 **AI-First Design** - Optimized for AI/LLM code generation (see AI_GUIDE.md)
14
+ - ✅ **40+ Components** - Fully typed with IntelliSense support
15
+ - 📐 **30+ Sections** - Pre-built page sections (Hero, Features, Pricing, etc.)
16
+ - 📄 **9 Templates** - Complete page templates (Landing, Dashboard, Profile, etc.)
14
17
  - 🎨 **Theme Switching** - Light/Dark modes with CSS variables
15
- - 🏢 **Multi-Brand** - Orion, UVM, Unitec, Laureate brands
16
- - 🎯 **Lucide Icons** - 5000+ icons built-in (icon support in Button, Field, Alert, etc.)
17
- - ♿ **Accessible** - WCAG AA compliant, keyboard navigation
18
- - 📦 **Tree-Shakeable** - Import only what you need (ESM + CJS)
19
- - 🎭 **CSS Modules** - Scoped styling, no conflicts
20
- - 🧪 **Tested** - 19+ unit tests with Vitest
21
- - 📚 **Documented** - 50+ Storybook stories
18
+ - 🏢 **Multi-Brand** - orion, red, deepblue, orange, lemon brands
19
+ - 🎯 **Lucide Icons** - 5000+ icons built-in
20
+ - ♿ **Accessible** - WCAG AA compliant
21
+ - 📦 **Tree-Shakeable** - ESM + CJS
22
22
 
23
23
  ## Installation
24
24
 
@@ -88,6 +88,18 @@ function MyApp() {
88
88
  }
89
89
  \`\`\`
90
90
 
91
+ ## AI / LLM Integration
92
+
93
+ This library is optimized for AI code generation. When using with Claude, Cursor, Copilot, or other AI tools:
94
+
95
+ | Document | Purpose |
96
+ |----------|---------|
97
+ | `AI_GUIDE.md` | Complete integration guide, decision trees, anti-patterns |
98
+ | `AI_QUICKREF.md` | Quick reference for common patterns |
99
+ | `AI_COMPONENTS.md` | All components with examples |
100
+
101
+ These files are included in the npm package.
102
+
91
103
  ## Google Fonts (Automatic)
92
104
 
93
105
  **Fonts are loaded automatically by `ThemeProvider`** (since v1.1.4). No manual setup required!
@@ -180,12 +192,58 @@ if (missing.length > 0) {
180
192
  - **ThemeController** - Theme & brand selector
181
193
  - **useTheme** - Theme management hook
182
194
 
195
+ ## Sections
196
+
197
+ Pre-built page sections for rapid development:
198
+
199
+ | Category | Sections |
200
+ |----------|----------|
201
+ | **Marketing** | Hero, Features, Pricing, CTA, Testimonials, FAQ, Footer |
202
+ | **App** | Sidebar, Header, DetailPanel, StatCards |
203
+ | **Content** | ArticleContent, MediaGallery, Timeline |
204
+
205
+ \`\`\`tsx
206
+ import { Hero, Features, Pricing } from '@orion-ds/react';
207
+
208
+ <Hero title="Welcome" description="Build faster" />
209
+ <Features items={[...]} columns={3} />
210
+ <Pricing plans={[...]} />
211
+ \`\`\`
212
+
213
+ [View all 30+ sections in AI_COMPONENTS.md](./AI_COMPONENTS.md)
214
+
215
+ ## Templates
216
+
217
+ Complete page templates ready to use:
218
+
219
+ | Template | Use Case |
220
+ |----------|----------|
221
+ | `LandingPageTemplate` | Marketing landing pages |
222
+ | `DashboardTemplate` | Admin dashboards |
223
+ | `ProfilePageTemplate` | User profile pages |
224
+ | `SettingsTemplate` | Settings pages |
225
+ | `LoginTemplate` | Authentication pages |
226
+ | `OnboardingTemplate` | User onboarding flows |
227
+ | `NotFoundTemplate` | 404 error pages |
228
+ | `MaintenanceTemplate` | Maintenance pages |
229
+ | `ComingSoonTemplate` | Pre-launch pages |
230
+
231
+ \`\`\`tsx
232
+ import { LandingPageTemplate } from '@orion-ds/react';
233
+
234
+ <LandingPageTemplate
235
+ hero={{ title: 'Welcome', description: '...' }}
236
+ features={{ items: [...] }}
237
+ pricing={{ plans: [...] }}
238
+ />
239
+ \`\`\`
240
+
183
241
  ## Lucide Icons
184
242
 
185
243
  All components support **Lucide icons** - 5000+ beautiful, consistent icons.
186
244
 
187
245
  \`\`\`tsx
188
- import { Button, Field, Alert } from '@orion/react';
246
+ import { Button, Field, Alert } from '@orion-ds/react';
189
247
  import { Search, Download, AlertCircle } from 'lucide-react';
190
248
 
191
249
  // Icon in button (left side)
@@ -217,7 +275,7 @@ See [LUCIDE_ICONS.md](./LUCIDE_ICONS.md) for complete icon documentation.
217
275
  ### Using the Hook
218
276
 
219
277
  \`\`\`tsx
220
- import { useTheme } from '@orion/react';
278
+ import { useTheme } from '@orion-ds/react';
221
279
 
222
280
  function ThemeSwitcher() {
223
281
  const { theme, brand, setTheme, setBrand, toggleTheme } = useTheme();
@@ -227,14 +285,38 @@ function ThemeSwitcher() {
227
285
  <button onClick={toggleTheme}>
228
286
  Current: {theme}
229
287
  </button>
230
- <button onClick={() => setBrand('uvm')}>
231
- Switch to UVM Brand
288
+ <button onClick={() => setBrand('deepblue')}>
289
+ Switch to Deepblue Brand
232
290
  </button>
233
291
  </>
234
292
  );
235
293
  }
236
294
  \`\`\`
237
295
 
296
+ ## v2.0.0 Migration Guide
297
+
298
+ ### Breaking Changes
299
+
300
+ #### Hero & CTA: `headline` → `title`
301
+ \`\`\`diff
302
+ - <Hero headline="Welcome" description="..." />
303
+ + <Hero title="Welcome" description="..." />
304
+ \`\`\`
305
+
306
+ #### DetailPanel: `subtitle` → `description`
307
+ \`\`\`diff
308
+ - <DetailPanel title="Edit" subtitle="User profile" />
309
+ + <DetailPanel title="Edit" description="User profile" />
310
+ \`\`\`
311
+
312
+ #### ThemeProvider: Flat Props (Optional)
313
+ \`\`\`diff
314
+ - <ThemeProvider options={{ defaultBrand: 'red' }}>
315
+ + <ThemeProvider defaultBrand="red">
316
+ \`\`\`
317
+
318
+ > **Backward Compatibility**: The old props still work but show deprecation warnings in development.
319
+
238
320
  ## License
239
321
 
240
322
  MIT © Orion Team
@@ -1,5 +1,20 @@
1
1
  /**
2
- * Accordion Component Export
2
+ * Accordion Component - Collapsible content sections.
3
+ *
4
+ * @example
5
+ * ```tsx
6
+ * import { Accordion } from '@orion-ds/react';
7
+ *
8
+ * <Accordion
9
+ * items={[
10
+ * { id: '1', title: 'Section 1', content: <p>Content for section 1</p> },
11
+ * { id: '2', title: 'Section 2', content: <p>Content for section 2</p> },
12
+ * { id: '3', title: 'Section 3', content: <p>Content for section 3</p> },
13
+ * ]}
14
+ * variant="bordered"
15
+ * allowMultiple
16
+ * />
17
+ * ```
3
18
  */
4
19
  export { Accordion } from './Accordion';
5
20
  export type { AccordionProps, AccordionItem, AccordionVariant, AccordionItemProps, } from './Accordion.types';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Accordion/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EACV,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,kBAAkB,GACnB,MAAM,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Accordion/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EACV,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,kBAAkB,GACnB,MAAM,mBAAmB,CAAC"}
@@ -1,5 +1,15 @@
1
1
  /**
2
- * Alert Component Exports
2
+ * Alert Component - System messages and notifications.
3
+ *
4
+ * @example
5
+ * ```tsx
6
+ * import { Alert } from '@orion-ds/react';
7
+ *
8
+ * <Alert variant="info" title="Info">This is an informational alert.</Alert>
9
+ * <Alert variant="success" title="Success">Operation completed.</Alert>
10
+ * <Alert variant="warning" title="Warning">Please review.</Alert>
11
+ * <Alert variant="error" title="Error" onClose={() => {}}>Something went wrong.</Alert>
12
+ * ```
3
13
  */
4
14
  export { Alert } from './Alert';
5
15
  export type { AlertProps, AlertVariant } from './Alert.types';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Alert/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Alert/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC"}
@@ -1,5 +1,14 @@
1
1
  /**
2
- * Avatar Component Exports
2
+ * Avatar Component - User/entity profile images.
3
+ *
4
+ * @example
5
+ * ```tsx
6
+ * import { Avatar } from '@orion-ds/react';
7
+ *
8
+ * <Avatar src="/user.jpg" name="John Doe" />
9
+ * <Avatar name="Jane Smith" /> // Shows initials "JS"
10
+ * <Avatar src="/profile.jpg" size="lg" />
11
+ * ```
3
12
  */
4
13
  export { Avatar } from './Avatar';
5
14
  export type { AvatarProps, AvatarSize } from './Avatar.types';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Avatar/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Avatar/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC"}
@@ -1,5 +1,15 @@
1
1
  /**
2
- * Badge Component Exports
2
+ * Badge Component - Status indicators and counts.
3
+ *
4
+ * @example
5
+ * ```tsx
6
+ * import { Badge } from '@orion-ds/react';
7
+ *
8
+ * <Badge>Default</Badge>
9
+ * <Badge variant="success">Active</Badge>
10
+ * <Badge variant="error">Failed</Badge>
11
+ * <Badge variant="brand" size="sm">New</Badge>
12
+ * ```
3
13
  */
4
14
  export { Badge } from './Badge';
5
15
  export type { BadgeProps, BadgeVariant, BadgeSize } from './Badge.types';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC"}
@@ -1,5 +1,19 @@
1
1
  /**
2
- * Breadcrumb Component Exports
2
+ * Breadcrumb Component - Navigation hierarchy display.
3
+ *
4
+ * @example
5
+ * ```tsx
6
+ * import { Breadcrumb } from '@orion-ds/react';
7
+ *
8
+ * <Breadcrumb
9
+ * items={[
10
+ * { label: 'Home', href: '/' },
11
+ * { label: 'Products', href: '/products' },
12
+ * { label: 'Category', href: '/products/category' },
13
+ * { label: 'Item' }, // Current page (no href)
14
+ * ]}
15
+ * />
16
+ * ```
3
17
  */
4
18
  export { Breadcrumb } from './Breadcrumb';
5
19
  export type { BreadcrumbProps, BreadcrumbItem, BreadcrumbSize, BreadcrumbSeparator, } from './Breadcrumb.types';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Breadcrumb/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EACV,eAAe,EACf,cAAc,EACd,cAAc,EACd,mBAAmB,GACpB,MAAM,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Breadcrumb/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EACV,eAAe,EACf,cAAc,EACd,cAAc,EACd,mBAAmB,GACpB,MAAM,oBAAoB,CAAC"}
@@ -1,5 +1,15 @@
1
1
  /**
2
- * Button Component Exports
2
+ * Button Component - Primary action element for triggering events.
3
+ *
4
+ * @example
5
+ * ```tsx
6
+ * import { Button } from '@orion-ds/react';
7
+ *
8
+ * <Button variant="primary">Click me</Button>
9
+ * <Button variant="secondary" icon={<Plus size={20} />}>Add Item</Button>
10
+ * <Button iconOnly icon={<Settings size={20} />} aria-label="Settings" />
11
+ * <Button variant="danger" size="sm">Delete</Button>
12
+ * ```
3
13
  */
4
14
  export { Button } from './Button';
5
15
  export type { ButtonProps, ButtonVariant, ButtonSize } from './Button.types';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Button/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Button/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC"}
@@ -1,5 +1,18 @@
1
1
  /**
2
- * Card Component Exports
2
+ * Card Component - Container for grouping related content.
3
+ *
4
+ * @example
5
+ * ```tsx
6
+ * import { Card, Button } from '@orion-ds/react';
7
+ *
8
+ * <Card variant="elevated">
9
+ * <Card.Header>Card Title</Card.Header>
10
+ * <Card.Body>Card content goes here.</Card.Body>
11
+ * <Card.Footer>
12
+ * <Button>Action</Button>
13
+ * </Card.Footer>
14
+ * </Card>
15
+ * ```
3
16
  */
4
17
  export { Card } from './Card';
5
18
  export type { CardProps, CardHeaderProps, CardBodyProps, CardFooterProps, CardVariant } from './Card.types';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Card/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,YAAY,EAAE,SAAS,EAAE,eAAe,EAAE,aAAa,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Card/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,YAAY,EAAE,SAAS,EAAE,eAAe,EAAE,aAAa,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC"}
@@ -1,8 +1,23 @@
1
1
  /**
2
- * Carousel Component Exports
2
+ * Carousel Component - Image/content slider.
3
3
  *
4
4
  * Atomic carousel component for use within cards, modals, or custom layouts.
5
5
  * For full-page carousel sections, use CarouselSection from sections.
6
+ *
7
+ * @example
8
+ * ```tsx
9
+ * import { Carousel } from '@orion-ds/react';
10
+ *
11
+ * <Carousel
12
+ * items={[
13
+ * { id: '1', image: '/slide1.jpg', title: 'Slide 1' },
14
+ * { id: '2', image: '/slide2.jpg', title: 'Slide 2' },
15
+ * { id: '3', image: '/slide3.jpg', title: 'Slide 3' },
16
+ * ]}
17
+ * autoPlay
18
+ * showNavigation
19
+ * />
20
+ * ```
6
21
  */
7
22
  export { Carousel } from './Carousel';
8
23
  export { CarouselCard } from './CarouselCard';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Carousel/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,YAAY,EACV,aAAa,EACb,YAAY,EACZ,iBAAiB,EACjB,eAAe,EACf,mBAAmB,EACnB,WAAW,EACX,eAAe,EACf,aAAa,EACb,uBAAuB,GACxB,MAAM,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Carousel/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,YAAY,EACV,aAAa,EACb,YAAY,EACZ,iBAAiB,EACjB,eAAe,EACf,mBAAmB,EACnB,WAAW,EACX,eAAe,EACf,aAAa,EACb,uBAAuB,GACxB,MAAM,kBAAkB,CAAC"}
@@ -1,5 +1,14 @@
1
1
  /**
2
- * Checkbox Component Exports
2
+ * Checkbox Component - Boolean selection with label.
3
+ *
4
+ * @example
5
+ * ```tsx
6
+ * import { Checkbox } from '@orion-ds/react';
7
+ *
8
+ * <Checkbox label="I agree to the terms" />
9
+ * <Checkbox label="Select all" checked={selectAll} indeterminate={someSelected} />
10
+ * <Checkbox label="Remember me" checked={remember} onChange={setRemember} />
11
+ * ```
3
12
  */
4
13
  export { Checkbox } from './Checkbox';
5
14
  export type { CheckboxProps, CheckboxSize } from './Checkbox.types';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC"}
@@ -1,5 +1,15 @@
1
1
  /**
2
- * Chip Component Export
2
+ * Chip Component - Tags and filter labels.
3
+ *
4
+ * @example
5
+ * ```tsx
6
+ * import { Chip } from '@orion-ds/react';
7
+ *
8
+ * <Chip>Default</Chip>
9
+ * <Chip variant="brand">Featured</Chip>
10
+ * <Chip onRemove={() => handleRemove()}>Removable</Chip>
11
+ * <Chip selected onClick={() => toggle()}>Selectable</Chip>
12
+ * ```
3
13
  */
4
14
  export { Chip } from './Chip';
5
15
  export type { ChipProps, ChipVariant, ChipSize } from './Chip.types';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Chip/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,YAAY,EAAE,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Chip/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,YAAY,EAAE,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC"}
@@ -1,5 +1,21 @@
1
1
  /**
2
- * Combobox Component Export
2
+ * Combobox Component - Autocomplete/typeahead input.
3
+ *
4
+ * @example
5
+ * ```tsx
6
+ * import { Combobox } from '@orion-ds/react';
7
+ *
8
+ * <Combobox
9
+ * label="Select a country"
10
+ * placeholder="Search countries..."
11
+ * options={[
12
+ * { value: 'us', label: 'United States' },
13
+ * { value: 'uk', label: 'United Kingdom' },
14
+ * { value: 'ca', label: 'Canada' },
15
+ * ]}
16
+ * onSelect={(option) => setCountry(option.value)}
17
+ * />
18
+ * ```
3
19
  */
4
20
  export { Combobox } from './Combobox';
5
21
  export type { ComboboxProps, ComboboxOption, ComboboxGroup, ComboboxSize } from './Combobox.types';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC"}
@@ -1,5 +1,15 @@
1
1
  /**
2
- * Divider Component Export
2
+ * Divider Component - Visual content separator.
3
+ *
4
+ * @example
5
+ * ```tsx
6
+ * import { Divider } from '@orion-ds/react';
7
+ *
8
+ * <Divider />
9
+ * <Divider variant="dashed" />
10
+ * <Divider orientation="vertical" />
11
+ * <Divider>OR</Divider>
12
+ * ```
3
13
  */
4
14
  export { Divider } from './Divider';
5
15
  export type { DividerProps, DividerOrientation, DividerVariant } from './Divider.types';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Divider/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,YAAY,EAAE,YAAY,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Divider/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,YAAY,EAAE,YAAY,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC"}
@@ -1,5 +1,20 @@
1
1
  /**
2
- * Drawer Component Export
2
+ * Drawer Component - Side panel overlay.
3
+ *
4
+ * @example
5
+ * ```tsx
6
+ * import { Drawer, Button } from '@orion-ds/react';
7
+ *
8
+ * <Drawer isOpen={isOpen} onClose={() => setIsOpen(false)} placement="right" size="md">
9
+ * <Drawer.Header>Settings</Drawer.Header>
10
+ * <Drawer.Body>
11
+ * <p>Drawer content here</p>
12
+ * </Drawer.Body>
13
+ * <Drawer.Footer>
14
+ * <Button onClick={() => setIsOpen(false)}>Close</Button>
15
+ * </Drawer.Footer>
16
+ * </Drawer>
17
+ * ```
3
18
  */
4
19
  export { Drawer } from './Drawer';
5
20
  export type { DrawerProps, DrawerPlacement, DrawerSize, DrawerHeaderProps, DrawerBodyProps, DrawerFooterProps, } from './Drawer.types';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Drawer/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,YAAY,EACV,WAAW,EACX,eAAe,EACf,UAAU,EACV,iBAAiB,EACjB,eAAe,EACf,iBAAiB,GAClB,MAAM,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Drawer/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,YAAY,EACV,WAAW,EACX,eAAe,EACf,UAAU,EACV,iBAAiB,EACjB,eAAe,EACf,iBAAiB,GAClB,MAAM,gBAAgB,CAAC"}
@@ -1,5 +1,21 @@
1
1
  /**
2
- * Dropdown Component Export
2
+ * Dropdown Component - Action menu with items.
3
+ *
4
+ * @example
5
+ * ```tsx
6
+ * import { Dropdown, Button } from '@orion-ds/react';
7
+ * import { Edit, Trash, Copy } from 'lucide-react';
8
+ *
9
+ * <Dropdown
10
+ * trigger={<Button>Actions</Button>}
11
+ * items={[
12
+ * { label: 'Edit', icon: <Edit size={16} />, onClick: handleEdit },
13
+ * { label: 'Duplicate', icon: <Copy size={16} />, onClick: handleCopy },
14
+ * { type: 'divider' },
15
+ * { label: 'Delete', icon: <Trash size={16} />, onClick: handleDelete, danger: true },
16
+ * ]}
17
+ * />
18
+ * ```
3
19
  */
4
20
  export { Dropdown } from './Dropdown';
5
21
  export type { DropdownProps, DropdownItem, DropdownGroup, DropdownPlacement, } from './Dropdown.types';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EACV,aAAa,EACb,YAAY,EACZ,aAAa,EACb,iBAAiB,GAClB,MAAM,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EACV,aAAa,EACb,YAAY,EACZ,aAAa,EACb,iBAAiB,GAClB,MAAM,kBAAkB,CAAC"}
@@ -1,5 +1,18 @@
1
1
  /**
2
- * EmptyState Component Export
2
+ * EmptyState Component - Placeholder for empty data views.
3
+ *
4
+ * @example
5
+ * ```tsx
6
+ * import { EmptyState, Button } from '@orion-ds/react';
7
+ * import { Inbox } from 'lucide-react';
8
+ *
9
+ * <EmptyState
10
+ * icon={<Inbox size={48} />}
11
+ * title="No messages"
12
+ * description="You don't have any messages yet."
13
+ * action={<Button>Compose</Button>}
14
+ * />
15
+ * ```
3
16
  */
4
17
  export { EmptyState } from './EmptyState';
5
18
  export type { EmptyStateProps, EmptyStateSize } from './EmptyState.types';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/EmptyState/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/EmptyState/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC"}
@@ -1,5 +1,15 @@
1
1
  /**
2
- * Field Component Exports
2
+ * Field Component - Text input with label, validation, and icons.
3
+ *
4
+ * @example
5
+ * ```tsx
6
+ * import { Field } from '@orion-ds/react';
7
+ * import { Mail, Eye } from 'lucide-react';
8
+ *
9
+ * <Field label="Email" type="email" placeholder="you@example.com" />
10
+ * <Field label="Password" type="password" error="Required" />
11
+ * <Field label="Search" icon={<Search size={18} />} />
12
+ * ```
3
13
  */
4
14
  export { Field } from './Field';
5
15
  export type { FieldProps } from './Field.types';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Field/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,YAAY,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Field/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,YAAY,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC"}
@@ -1,7 +1,20 @@
1
1
  /**
2
- * FontLoader Component
2
+ * FontLoader Component - Loads brand fonts from Google Fonts.
3
3
  *
4
- * Automatically loads Google Fonts required by Orion Design System brands.
4
+ * Note: ThemeProvider automatically includes FontLoader by default.
5
+ * Only use directly if disabling auto-loading.
6
+ *
7
+ * @example
8
+ * ```tsx
9
+ * import { FontLoader } from '@orion-ds/react';
10
+ *
11
+ * // Usually not needed - ThemeProvider handles this automatically
12
+ * // Only use if you disabled auto-loading:
13
+ * <ThemeProvider disableAutoFontLoading>
14
+ * <FontLoader />
15
+ * <App />
16
+ * </ThemeProvider>
17
+ * ```
5
18
  */
6
19
  export { FontLoader } from './FontLoader';
7
20
  export type { FontLoaderProps } from './FontLoader';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/FontLoader/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/FontLoader/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC"}