@khal-os/ui 1.0.0 → 1.0.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.
Files changed (59) hide show
  1. package/LICENSE +94 -0
  2. package/README.md +25 -0
  3. package/dist/index.cjs +2661 -0
  4. package/dist/index.cjs.map +1 -0
  5. package/dist/index.d.cts +926 -0
  6. package/dist/index.d.ts +926 -0
  7. package/dist/index.js +2510 -0
  8. package/dist/index.js.map +1 -0
  9. package/package.json +59 -40
  10. package/tokens.css +260 -238
  11. package/src/components/ContextMenu.tsx +0 -130
  12. package/src/components/avatar.tsx +0 -71
  13. package/src/components/badge.tsx +0 -39
  14. package/src/components/button.tsx +0 -102
  15. package/src/components/command.tsx +0 -165
  16. package/src/components/cost-counter.tsx +0 -75
  17. package/src/components/data-row.tsx +0 -97
  18. package/src/components/dropdown-menu.tsx +0 -233
  19. package/src/components/glass-card.tsx +0 -74
  20. package/src/components/input.tsx +0 -48
  21. package/src/components/khal-logo.tsx +0 -73
  22. package/src/components/live-feed.tsx +0 -109
  23. package/src/components/mesh-gradient.tsx +0 -57
  24. package/src/components/metric-display.tsx +0 -93
  25. package/src/components/note.tsx +0 -55
  26. package/src/components/number-flow.tsx +0 -25
  27. package/src/components/pill-badge.tsx +0 -65
  28. package/src/components/progress-bar.tsx +0 -70
  29. package/src/components/section-card.tsx +0 -76
  30. package/src/components/separator.tsx +0 -25
  31. package/src/components/spinner.tsx +0 -42
  32. package/src/components/status-dot.tsx +0 -90
  33. package/src/components/switch.tsx +0 -36
  34. package/src/components/theme-provider.tsx +0 -58
  35. package/src/components/theme-switcher.tsx +0 -59
  36. package/src/components/ticker-bar.tsx +0 -41
  37. package/src/components/tooltip.tsx +0 -62
  38. package/src/components/window-minimized-context.tsx +0 -29
  39. package/src/hooks/useReducedMotion.ts +0 -21
  40. package/src/index.ts +0 -58
  41. package/src/lib/animations.ts +0 -50
  42. package/src/primitives/collapsible-sidebar.tsx +0 -226
  43. package/src/primitives/dialog.tsx +0 -76
  44. package/src/primitives/empty-state.tsx +0 -43
  45. package/src/primitives/index.ts +0 -22
  46. package/src/primitives/list-view.tsx +0 -155
  47. package/src/primitives/property-panel.tsx +0 -108
  48. package/src/primitives/section-header.tsx +0 -19
  49. package/src/primitives/sidebar-nav.tsx +0 -110
  50. package/src/primitives/split-pane.tsx +0 -146
  51. package/src/primitives/status-badge.tsx +0 -10
  52. package/src/primitives/status-bar.tsx +0 -100
  53. package/src/primitives/toolbar.tsx +0 -152
  54. package/src/server.ts +0 -4
  55. package/src/stores/notification-store.ts +0 -271
  56. package/src/stores/theme-store.ts +0 -33
  57. package/src/tokens/lp-tokens.ts +0 -36
  58. package/src/utils.ts +0 -6
  59. package/tsconfig.json +0 -17
package/LICENSE ADDED
@@ -0,0 +1,94 @@
1
+ Elastic License 2.0 (ELv2)
2
+
3
+ Copyright 2026 KhalOS
4
+
5
+ ## Acceptance
6
+
7
+ In order to get any license under these terms, you must agree to them as both
8
+ strict obligations and conditions to all your licenses.
9
+
10
+ ## Copyright License
11
+
12
+ The licensor grants you a non-exclusive, royalty-free, worldwide,
13
+ non-sublicensable, non-transferable license to use, copy, distribute, make
14
+ available, and prepare derivative works of the software, in each case subject
15
+ to the limitations and conditions below.
16
+
17
+ ## Limitations
18
+
19
+ You may not provide the software to third parties as a hosted or managed
20
+ service, where the service provides users with access to any substantial set
21
+ of the features or functionality of the software.
22
+
23
+ You may not move, change, disable, or circumvent the license key functionality
24
+ in the software, and you may not remove or obscure any functionality in the
25
+ software that is protected by the license key.
26
+
27
+ You may not alter, remove, or obscure any licensing, copyright, or other
28
+ notices of the licensor in the software. Any use of the licensor's trademarks
29
+ is subject to applicable law.
30
+
31
+ ## Patents
32
+
33
+ The licensor grants you a license, under any patent claims the licensor can
34
+ license, or becomes able to license, to make, have made, use, sell, offer for
35
+ sale, import and have imported the software, in each case subject to the
36
+ limitations and conditions in this license. This license does not cover any
37
+ patent claims that you cause to be infringed by modifications or additions to
38
+ the software. If you or your company make any written claim that the software
39
+ infringes or contributes to infringement of any patent, your patent license
40
+ for the software granted under these terms ends immediately. If your company
41
+ makes such a claim, your patent license ends immediately for work on behalf
42
+ of your company.
43
+
44
+ ## Notices
45
+
46
+ You must ensure that anyone who gets a copy of any part of the software from
47
+ you also gets a copy of these terms.
48
+
49
+ If you modify the software, you must include in any modified copies of the
50
+ software prominent notices stating that you have modified the software.
51
+
52
+ ## No Other Rights
53
+
54
+ These terms do not imply any licenses other than those expressly granted in
55
+ these terms.
56
+
57
+ ## Termination
58
+
59
+ If you use the software in violation of these terms, such use is not licensed,
60
+ and your licenses will automatically terminate. If the licensor provides you
61
+ with a notice of your violation, and you cease all violation of this license
62
+ no later than 30 days after you receive that notice, your licenses will be
63
+ reinstated retroactively. However, if you violate these terms after such
64
+ reinstatement, any additional violation of these terms will cause your licenses
65
+ to terminate automatically and permanently.
66
+
67
+ ## No Liability
68
+
69
+ As far as the law allows, the software comes as is, without any warranty or
70
+ condition, and the licensor will not be liable to you for any damages arising
71
+ out of these terms or the use or nature of the software, under any kind of
72
+ legal claim.
73
+
74
+ ## Definitions
75
+
76
+ The **licensor** is the entity offering these terms, and the **software** is
77
+ the software the licensor makes available under these terms, including any
78
+ portion of it.
79
+
80
+ **You** refers to the individual or entity agreeing to these terms.
81
+
82
+ **Your company** is any legal entity, sole proprietorship, or other kind of
83
+ organization that you work for, plus all organizations that have control over,
84
+ are under the control of, or are under common control with that organization.
85
+ **Control** means ownership of substantially all the assets of an entity, or
86
+ the power to direct its management and policies by vote, contract, or
87
+ otherwise. Control can be direct or indirect.
88
+
89
+ **Your licenses** are all the licenses granted to you for the software under
90
+ these terms.
91
+
92
+ **Use** means anything you do with the software requiring one of your licenses.
93
+
94
+ **Trademark** means trademarks, service marks, and similar rights.
package/README.md ADDED
@@ -0,0 +1,25 @@
1
+ # @khal-os/ui
2
+
3
+ Shared UI component library for KhalOS applications. Built on Radix UI primitives with Tailwind CSS styling, motion animations, and a design token system.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npm install @khal-os/ui
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```ts
14
+ import { Button, KhalLogo, Tooltip } from '@khal-os/ui';
15
+ ```
16
+
17
+ Import design tokens CSS:
18
+
19
+ ```ts
20
+ import '@khal-os/ui/tokens.css';
21
+ ```
22
+
23
+ ## License
24
+
25
+ [Elastic License 2.0 (ELv2)](./LICENSE)