@erden-sh/ui 0.0.0-stage → 0.1.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 (73) hide show
  1. package/LICENSE +120 -0
  2. package/README.md +95 -2
  3. package/THIRD_PARTY_NOTICES +557 -0
  4. package/dist/components/access-review.d.ts +18 -0
  5. package/dist/components/access-review.js +7 -0
  6. package/dist/components/alert-dialog.d.ts +14 -0
  7. package/dist/components/alert-dialog.js +41 -0
  8. package/dist/components/avatar.d.ts +12 -0
  9. package/dist/components/avatar.js +23 -0
  10. package/dist/components/badge.d.ts +9 -0
  11. package/dist/components/badge.js +34 -0
  12. package/dist/components/breadcrumb.d.ts +11 -0
  13. package/dist/components/breadcrumb.js +28 -0
  14. package/dist/components/button.d.ts +10 -0
  15. package/dist/components/button.js +38 -0
  16. package/dist/components/card.d.ts +9 -0
  17. package/dist/components/card.js +31 -0
  18. package/dist/components/checkbox.d.ts +4 -0
  19. package/dist/components/checkbox.js +9 -0
  20. package/dist/components/collapsible.d.ts +5 -0
  21. package/dist/components/collapsible.js +13 -0
  22. package/dist/components/command.d.ts +20 -0
  23. package/dist/components/command.js +37 -0
  24. package/dist/components/copyable-code.d.ts +10 -0
  25. package/dist/components/copyable-code.js +58 -0
  26. package/dist/components/dialog.d.ts +19 -0
  27. package/dist/components/dialog.js +39 -0
  28. package/dist/components/dropdown-menu.d.ts +25 -0
  29. package/dist/components/dropdown-menu.js +55 -0
  30. package/dist/components/input.d.ts +3 -0
  31. package/dist/components/input.js +7 -0
  32. package/dist/components/native-select.d.ts +2 -0
  33. package/dist/components/native-select.js +5 -0
  34. package/dist/components/popover.d.ts +7 -0
  35. package/dist/components/popover.js +17 -0
  36. package/dist/components/quick-actions.d.ts +13 -0
  37. package/dist/components/quick-actions.js +7 -0
  38. package/dist/components/return-focus.d.ts +6 -0
  39. package/dist/components/return-focus.js +26 -0
  40. package/dist/components/scroll-area.d.ts +5 -0
  41. package/dist/components/scroll-area.js +11 -0
  42. package/dist/components/select.d.ts +15 -0
  43. package/dist/components/select.js +38 -0
  44. package/dist/components/separator.d.ts +4 -0
  45. package/dist/components/separator.js +8 -0
  46. package/dist/components/sheet.d.ts +14 -0
  47. package/dist/components/sheet.js +40 -0
  48. package/dist/components/sidebar.d.ts +75 -0
  49. package/dist/components/sidebar.js +271 -0
  50. package/dist/components/skeleton.d.ts +2 -0
  51. package/dist/components/skeleton.js +7 -0
  52. package/dist/components/sonner.d.ts +3 -0
  53. package/dist/components/sonner.js +19 -0
  54. package/dist/components/switch.d.ts +4 -0
  55. package/dist/components/switch.js +8 -0
  56. package/dist/components/table.d.ts +10 -0
  57. package/dist/components/table.js +28 -0
  58. package/dist/components/tabs.d.ts +11 -0
  59. package/dist/components/tabs.js +29 -0
  60. package/dist/components/textarea.d.ts +3 -0
  61. package/dist/components/textarea.js +7 -0
  62. package/dist/components/tooltip.d.ts +7 -0
  63. package/dist/components/tooltip.js +17 -0
  64. package/dist/components/use-mobile.d.ts +1 -0
  65. package/dist/components/use-mobile.js +15 -0
  66. package/dist/index.d.ts +31 -0
  67. package/dist/index.js +32 -0
  68. package/dist/styles.css +2 -0
  69. package/dist/styles.d.ts +1 -0
  70. package/dist/styles.js +1 -0
  71. package/dist/utils.d.ts +3 -0
  72. package/dist/utils.js +6 -0
  73. package/package.json +67 -4
package/LICENSE ADDED
@@ -0,0 +1,120 @@
1
+ # License
2
+
3
+ Copyright (c) 2026 Ingenio Ventures Inc.
4
+
5
+ Trademark notice: Socio, Socio.sh, Erden, and Erden.sh are trademarks of Ingenio Ventures Inc.
6
+ This notice is not part of the license terms below, and the license grants no rights to these marks.
7
+
8
+ Portions of this software are licensed as follows:
9
+
10
+ - Content of branches other than the main branch (i.e. "main") are not licensed.
11
+ - All third party components incorporated into the Socio Software are licensed under the original license
12
+ provided by the owner of the applicable component. This includes the OpenDots code Socio started from
13
+ (see "Third-party notice: OpenDots" below) and the components listed in THIRD_PARTY_NOTICES.
14
+ - Content outside of the above mentioned files or restrictions is available under the "Sustainable Use
15
+ License" as defined below.
16
+
17
+ ## Sustainable Use License
18
+
19
+ Version 1.0
20
+
21
+ ### Acceptance
22
+
23
+ By using the software, you agree to all of the terms and conditions below.
24
+
25
+ ### Copyright License
26
+
27
+ The licensor grants you a non-exclusive, royalty-free, worldwide, non-sublicensable, non-transferable license
28
+ to use, copy, distribute, make available, and prepare derivative works of the software, in each case subject
29
+ to the limitations below.
30
+
31
+ ### Limitations
32
+
33
+ You may use or modify the software only for your own internal business purposes or for non-commercial or
34
+ personal use. You may distribute the software or provide it to others only if you do so free of charge for
35
+ non-commercial purposes. You may not alter, remove, or obscure any licensing, copyright, or other notices of
36
+ the licensor in the software. Any use of the licensor’s trademarks is subject to applicable law.
37
+
38
+ ### Patents
39
+
40
+ The licensor grants you a license, under any patent claims the licensor can license, or becomes able to
41
+ license, to make, have made, use, sell, offer for sale, import and have imported the software, in each case
42
+ subject to the limitations and conditions in this license. This license does not cover any patent claims that
43
+ you cause to be infringed by modifications or additions to the software. If you or your company make any
44
+ written claim that the software infringes or contributes to infringement of any patent, your patent license
45
+ for the software granted under these terms ends immediately. If your company makes such a claim, your patent
46
+ license ends immediately for work on behalf of your company.
47
+
48
+ ### Notices
49
+
50
+ You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these
51
+ terms. If you modify the software, you must include in any modified copies of the software a prominent notice
52
+ stating that you have modified the software.
53
+
54
+ ### No Other Rights
55
+
56
+ These terms do not imply any licenses other than those expressly granted in these terms.
57
+
58
+ ### Termination
59
+
60
+ If you use the software in violation of these terms, such use is not licensed, and your license will
61
+ automatically terminate. If the licensor provides you with a notice of your violation, and you cease all
62
+ violation of this license no later than 30 days after you receive that notice, your license will be reinstated
63
+ retroactively. However, if you violate these terms after such reinstatement, any additional violation of these
64
+ terms will cause your license to terminate automatically and permanently.
65
+
66
+ ### No Liability
67
+
68
+ As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will
69
+ not be liable to you for any damages arising out of these terms or the use or nature of the software, under
70
+ any kind of legal claim.
71
+
72
+ ### Definitions
73
+
74
+ The “licensor” is Ingenio Ventures Inc., the entity offering these terms.
75
+
76
+ The “software” is Socio, the software the licensor makes available under these terms, including any portion
77
+ of it.
78
+
79
+ “You” refers to the individual or entity agreeing to these terms.
80
+
81
+ “Your company” is any legal entity, sole proprietorship, or other kind of organization that you work for, plus
82
+ all organizations that have control over, are under the control of, or are under common control with that
83
+ organization. Control means ownership of substantially all the assets of an entity, or the power to direct its
84
+ management and policies by vote, contract, or otherwise. Control can be direct or indirect.
85
+
86
+ “Your license” is the license granted to you for the software under these terms.
87
+
88
+ “Use” means anything you do with the software requiring your license.
89
+
90
+ “Trademark” means trademarks, service marks, and similar rights.
91
+
92
+ ## Third-party notice: OpenDots
93
+
94
+ Socio started from OpenDots (https://github.com/CopilotKit/OpenDots) at commit 565bf78. The portions of
95
+ Socio that come from OpenDots remain under the MIT license below, whose notice must be kept:
96
+
97
+ > The MIT License
98
+ >
99
+ > Copyright (c) Atai Barkai
100
+ >
101
+ > Permission is hereby granted, free of charge, to any person obtaining a copy
102
+ > of this software and associated documentation files (the "Software"), to deal
103
+ > in the Software without restriction, including without limitation the rights
104
+ > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
105
+ > copies of the Software, and to permit persons to whom the Software is
106
+ > furnished to do so, subject to the following conditions:
107
+ >
108
+ > The above copyright notice and this permission notice shall be included in
109
+ > all copies or substantial portions of the Software.
110
+ >
111
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
112
+ > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
113
+ > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
114
+ > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
115
+ > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
116
+ > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
117
+ > THE SOFTWARE.
118
+
119
+ Other third-party components, including the OpenBot computer services and the vendored T3 Code packages, are
120
+ listed with their licenses in THIRD_PARTY_NOTICES.
package/README.md CHANGED
@@ -1,3 +1,96 @@
1
- # Temporary Holding Version
1
+ # Erden UI
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ `@erden-sh/ui` is the shared UI library for Erden projects. It provides 25 React component families, seven visual themes, and the Quick actions and Access review patterns. The interactive components use Radix for keyboard navigation, focus management and portals. A consumer supplies its routing, data, permissions and persistence.
4
+
5
+ ## Install in a React project
6
+
7
+ Install the public release from npmjs.com.
8
+
9
+ ```sh
10
+ npm install @erden-sh/ui react@19 react-dom@19
11
+ ```
12
+
13
+ ### GitHub Packages prereleases
14
+
15
+ Add the GitHub Packages registry for the Erden scope to the consuming project's `.npmrc`.
16
+
17
+ ```ini
18
+ @erden-sh:registry=https://npm.pkg.github.com/
19
+ ```
20
+
21
+ Sign in with a GitHub account that has access to the package. Use a personal access token (classic) with `read:packages` as the password.
22
+
23
+ ```sh
24
+ npm login --scope=@erden-sh --registry=https://npm.pkg.github.com/ --auth-type=legacy
25
+ npm install @erden-sh/ui react@19 react-dom@19
26
+ ```
27
+
28
+ In GitHub Actions, use the workflow's `GITHUB_TOKEN` if the consuming repository has read access to the package. Otherwise, use a personal access token (classic) with `read:packages`. [GitHub Packages authentication](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-npm-registry#authenticating-to-github-packages)
29
+
30
+ ### Use the components
31
+
32
+ Import the compiled stylesheet once at the application entry. The consuming project can use its existing CSS tooling.
33
+
34
+ ```tsx
35
+ import { Badge, Button, Card, CardAction, CardHeader, CardTitle } from '@erden-sh/ui';
36
+ import '@erden-sh/ui/styles.css';
37
+
38
+ export function WorkspaceCard({ onInvite }: { onInvite: () => void }) {
39
+ return (
40
+ <Card>
41
+ <CardHeader>
42
+ <CardTitle>Workspace members</CardTitle>
43
+ <Badge variant="success">Active</Badge>
44
+ <CardAction>
45
+ <Button onClick={onInvite}>Invite people</Button>
46
+ </CardAction>
47
+ </CardHeader>
48
+ </Card>
49
+ );
50
+ }
51
+ ```
52
+
53
+ Each family also has an entry such as `@erden-sh/ui/components/button`. The archive includes the license and third-party notices.
54
+
55
+ ## Apply a theme
56
+
57
+ Set the palette on `<html>` so content portalled to `document.body` inherits the same tokens. Render the resolved scheme in the initial HTML for SSR, then update both values in place to switch appearance.
58
+
59
+ ```html
60
+ <html lang="en" data-theme="erden-glass" class="dark">
61
+ <!-- Application -->
62
+ </html>
63
+ ```
64
+
65
+ Use `socio`, `indigo`, `erden`, `erden-glass`, `cobalt`, `plum` or `clay`. Include `dark` for dark mode and remove it for light mode. For a system setting, resolve `matchMedia('(prefers-color-scheme: dark)')` and listen for changes. The host decides how to store settings and what theme to set for its users. With no `data-theme` the library uses the default palette.
66
+
67
+ `styles.css` ships the utilities used by the library, theme variables and reset rules for component markup. The host styles its own layout. Erden Glass falls back to solid surfaces with reduced transparency, increased contrast or forced colors.
68
+
69
+ ## Compose product interactions
70
+
71
+ - **Quick actions** renders a searchable command dialog. Provide a trigger, translated labels and `CommandItem` or `CommandGroup` children. Use `open` and `onOpenChange` when an action also closes the dialog or an application shortcut opens it.
72
+ - **Access review** renders a sheet with a title, description and review content. Set `state` to `loading`, `ready`, `partial` or `error`. Supply a `stateMessage` for loading, partial and error. The host performs the review and can use `SheetClose` for actions that close the panel.
73
+
74
+ ## Develop and release
75
+
76
+ Use Node.js 24 and npm 11.
77
+
78
+ ```sh
79
+ npm ci
80
+ npm run typecheck
81
+ npm pack
82
+ ```
83
+
84
+ Install the generated `erden-sh-ui-0.1.0.tgz` with `npm install /absolute/path/to/erden-sh-ui-0.1.0.tgz` from a separate React project to test a release candidate.
85
+
86
+ ### Public releases on npm
87
+
88
+ Bump the version in `package.json` and `package-lock.json` and merge to `main`. The **Publish to npm** workflow publishes the new version automatically and skips versions already on npmjs.com.
89
+
90
+ The package's Trusted Publishing configuration on npmjs.com authorizes direct publishing from the GitHub organization `erden-sh`, repository `erden-ui`, workflow `publish-npm.yml`, and environment `npm`. [npm Trusted Publishing](https://docs.npmjs.com/trusted-publishers/)
91
+
92
+ ### Internal prereleases on GitHub Packages
93
+
94
+ Every push to `main`, including a merged pull request, runs type checking and publishes to GitHub Packages with the repository's `GITHUB_TOKEN`. The workflow appends `-main.<run-number>` to the base version in `package.json` and publishes that prerelease with the `latest` tag. For example, run 42 publishes `0.1.0-main.42` when the base version is `0.1.0`.
95
+
96
+ New packages default to private visibility. Manage consumer access in the package settings. [Publishing to GitHub Packages](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-npm-registry#publishing-a-package)