@olwiba/ui 0.0.28

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 (74) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +98 -0
  3. package/dist/index.d.ts +762 -0
  4. package/dist/index.js +2102 -0
  5. package/dist/index.js.map +1 -0
  6. package/package.json +88 -0
  7. package/src/app/AppShell.tsx +365 -0
  8. package/src/app/AuthSection.tsx +141 -0
  9. package/src/app/EmptyState.tsx +34 -0
  10. package/src/app/ErrorPage.tsx +78 -0
  11. package/src/app/UpgradePrompt.tsx +203 -0
  12. package/src/blog/PostCard.tsx +66 -0
  13. package/src/blog/PostList.tsx +27 -0
  14. package/src/components/ConfirmDialog.tsx +43 -0
  15. package/src/components/ContextMenu.tsx +86 -0
  16. package/src/components/DevBanner.tsx +22 -0
  17. package/src/components/Dock.tsx +94 -0
  18. package/src/components/FeatureCard.tsx +45 -0
  19. package/src/components/GlassCard.tsx +30 -0
  20. package/src/components/ImageCard.tsx +60 -0
  21. package/src/components/PageHeader.tsx +101 -0
  22. package/src/components/PricingCard.tsx +90 -0
  23. package/src/components/RegisterHotkeys.tsx +43 -0
  24. package/src/components/RootErrorFallback.tsx +29 -0
  25. package/src/components/Spinner.tsx +14 -0
  26. package/src/components/Spotlight.tsx +104 -0
  27. package/src/components/StatCard.tsx +44 -0
  28. package/src/components/Suspensed.tsx +17 -0
  29. package/src/components/TestimonialCard.tsx +64 -0
  30. package/src/components/ThemeColorUpdater.tsx +23 -0
  31. package/src/components/ThemeSwitchMinimal.tsx +28 -0
  32. package/src/components/VersionBanner.tsx +38 -0
  33. package/src/context/OlwibaUIContext.tsx +58 -0
  34. package/src/hooks/use-confirm.ts +64 -0
  35. package/src/hooks/use-controlled-open.ts +33 -0
  36. package/src/hooks/use-copy-to-clipboard.ts +20 -0
  37. package/src/hooks/use-debounce.ts +14 -0
  38. package/src/hooks/use-intersection-observer.ts +25 -0
  39. package/src/hooks/use-local-storage.ts +31 -0
  40. package/src/hooks/use-media-query.ts +21 -0
  41. package/src/hooks/use-mounted.ts +11 -0
  42. package/src/hooks/use-pagination.ts +31 -0
  43. package/src/hooks/use-scrolled-past.ts +27 -0
  44. package/src/index.ts +113 -0
  45. package/src/lib/utils.ts +6 -0
  46. package/src/marketing/ContactSection.tsx +110 -0
  47. package/src/marketing/CtaSection.tsx +74 -0
  48. package/src/marketing/FaqSection.tsx +44 -0
  49. package/src/marketing/FeaturesSection.tsx +42 -0
  50. package/src/marketing/Footer.tsx +87 -0
  51. package/src/marketing/HeroSection.tsx +112 -0
  52. package/src/marketing/LogoStrip.tsx +94 -0
  53. package/src/marketing/Navbar.tsx +142 -0
  54. package/src/marketing/NewsletterSection.tsx +64 -0
  55. package/src/marketing/PricingSection.tsx +120 -0
  56. package/src/marketing/SectionTitle.tsx +30 -0
  57. package/src/marketing/StatsSection.tsx +63 -0
  58. package/src/marketing/TeamSection.tsx +110 -0
  59. package/src/marketing/TestimonialsSection.tsx +56 -0
  60. package/src/motion/CountUp.tsx +64 -0
  61. package/src/motion/FadeIn.tsx +69 -0
  62. package/src/motion/PageTransition.tsx +49 -0
  63. package/src/motion/StaggerChildren.tsx +74 -0
  64. package/src/overlays/Overlay.tsx +88 -0
  65. package/src/overlays/Underlay.tsx +114 -0
  66. package/src/primitives/Badge.tsx +11 -0
  67. package/src/primitives/Button.tsx +16 -0
  68. package/src/primitives/Card.tsx +22 -0
  69. package/src/primitives/Checkbox.tsx +17 -0
  70. package/src/primitives/Input.tsx +16 -0
  71. package/src/primitives/Switch.tsx +16 -0
  72. package/src/primitives/Textarea.tsx +16 -0
  73. package/src/primitives/index.ts +7 -0
  74. package/src/types/external-packages.d.ts +79 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Olwiba
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 ADDED
@@ -0,0 +1,98 @@
1
+ <p align="center">
2
+ <picture>
3
+ <source media="(prefers-color-scheme: light)" srcset="./public/olwibaUI--light.gif" />
4
+ <source media="(prefers-color-scheme: dark)" srcset="./public/olwibaUI.gif" />
5
+ <img src="./public/olwibaUI.gif" alt="olwibaUI" style="width: 100%;" />
6
+ </picture>
7
+ </p>
8
+
9
+ <p align="center">
10
+ <strong>Olwiba's app-level package. Shells, sections, interactive blocks, and hooks.</strong>
11
+ </p>
12
+
13
+ <p align="center">
14
+ <a href="https://ui.olwiba.com">Documentation</a>
15
+ </p>
16
+
17
+ <p align="center">
18
+ <a href="https://github.com/Olwiba/olwibaUI/issues/new?template=bug_report.md">🪲 Report a bug</a> ·
19
+ <a href="https://github.com/Olwiba/olwibaUI/issues/new?template=feature_request.md">✨ Feature request</a>
20
+ </p>
21
+
22
+ <p align="center">
23
+ <a href="https://github.com/sponsors/Olwiba"><img src="https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D%A4&logo=GitHub&color=22c55e" alt="Sponsor" /></a>
24
+ <a href="LICENSE"><img src="https://img.shields.io/github/license/Olwiba/olwibaUI?label=license&logo=github" alt="License" /></a>
25
+ <a href="https://github.com/Olwiba/olwibaUI/issues"><img src="https://img.shields.io/github/issues/Olwiba/olwibaUI" alt="Issues" /></a>
26
+ </p>
27
+
28
+ ## What This Is
29
+
30
+ `@olwiba/ui` is the app-level package in the Nexus ecosystem.
31
+
32
+ It provides application shells, auth surfaces, marketing sections, interactive components, motion primitives, and utility hooks - all built on `@olwiba/cn`.
33
+
34
+ Use `@olwiba/docs` for documentation layout and navigation primitives such as `DocsLayout` and `DocsSidebar`.
35
+
36
+ ## Package Chain
37
+
38
+ ```text
39
+ @olwiba/cn -> base primitives and styling foundations
40
+ @olwiba/docs -> documentation layouts and docs shell components
41
+ @olwiba/ui -> app shells, marketing sections, interactive blocks, and hooks
42
+ ```
43
+
44
+ ## Installation
45
+
46
+ ```bash
47
+ bun add @olwiba/ui @olwiba/cn
48
+ ```
49
+
50
+ Peer dependencies: `@olwiba/cn`, `react`, `react-dom`
51
+
52
+ ```tsx
53
+ import { AppShell, EmptyState, OlwibaUIProvider } from "@olwiba/ui";
54
+
55
+ function App() {
56
+ return (
57
+ <OlwibaUIProvider mode="smooth">
58
+ <AppShell pageTitle="Dashboard">
59
+ <EmptyState
60
+ title="No projects yet"
61
+ description="Create your first project to get started."
62
+ />
63
+ </AppShell>
64
+ </OlwibaUIProvider>
65
+ );
66
+ }
67
+ ```
68
+
69
+ ## What's Included
70
+
71
+ **App Surfaces** AppShell, AuthSection, EmptyState, ErrorPage, UpgradePrompt
72
+ **Marketing** HeroSection, FeaturesSection, CtaSection, PricingSection, Navbar, Footer, and more
73
+ **Interactive** Spotlight, Dock, ContextMenu, ConfirmDialog
74
+ **Cards** GlassCard, FeatureCard, StatCard, TestimonialCard, PricingCard, ImageCard
75
+ **Motion** FadeIn, StaggerChildren, CountUp, PageTransition
76
+ **Layering** Underlay, Overlay
77
+ **Hooks** useMounted, useConfirm, useControlledOpen, useScrolledPast, and more
78
+
79
+ ## Ecosystem
80
+
81
+ - [@olwiba/cn](https://github.com/Olwiba/olwibaCN) - base primitives
82
+ - [@olwiba/docs](https://github.com/Olwiba/olwibaDOCS) - documentation framework
83
+
84
+ ## Contributing
85
+
86
+ Bug reports, pull requests & feature requests are welcome.
87
+ Open an issue first for anything beyond a small fix.
88
+
89
+ <br/>
90
+ <br/>
91
+
92
+ <p align="center">
93
+ Built with 💖 by <a href="https://github.com/Olwiba">Olwiba</a>
94
+ </p>
95
+
96
+ <p align="center">
97
+ <a href="https://buymeacoffee.com/olwiba"><img src="https://img.shields.io/badge/Buy%20Me%20A%20Coffee-FFDD00?logo=buymeacoffee&logoColor=black" alt="Buy Me A Coffee" /></a>
98
+ </p>