ssovee-os-web-ui 0.1.4

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 SSOVEE
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,157 @@
1
+ # ssovee-os-web-ui
2
+
3
+ A standalone React UI component library that packages the shared, reusable components from this repository into a publishable npm package.
4
+
5
+ ## Features
6
+
7
+ - Shared UI component exports for multiple applications
8
+ - TypeScript-friendly component interfaces
9
+ - Tree-shakeable package build output
10
+ - SemVer-friendly publish workflow
11
+
12
+ ## Installation
13
+
14
+ Install the library in your app:
15
+
16
+ ```bash
17
+ npm install ssovee-os-web-ui
18
+ ```
19
+
20
+ If your app does not already include React and React DOM, install them as well:
21
+
22
+ ```bash
23
+ npm install react react-dom
24
+ ```
25
+
26
+ This library uses Tailwind CSS. Install Tailwind CSS in the consuming application and follow the configuration below so Tailwind generates the library's classes.
27
+
28
+ ## Tailwind CSS setup
29
+
30
+ Import the supplied base theme once from your application's global CSS file:
31
+
32
+ ```css
33
+ @import "ssovee-os-web-ui/theme.css";
34
+ ```
35
+
36
+ For Tailwind v3, add the library build output to `content` and use the supplied preset:
37
+
38
+ ```js
39
+ import ssoveePreset from "ssovee-os-web-ui/tailwind-preset";
40
+
41
+ export default {
42
+ content: [
43
+ "./src/**/*.{js,ts,jsx,tsx}",
44
+ "./node_modules/ssovee-os-web-ui/dist/**/*.{js,mjs,cjs}",
45
+ ],
46
+ presets: [ssoveePreset],
47
+ };
48
+ ```
49
+
50
+ For Tailwind v4, add the package as a source in your global CSS file and load a config containing the same preset:
51
+
52
+ ```css
53
+ @import "tailwindcss";
54
+ @source "../node_modules/ssovee-os-web-ui/dist";
55
+ @config "../tailwind.config.js";
56
+ @import "ssovee-os-web-ui/theme.css";
57
+ ```
58
+
59
+ The preset includes the library's semantic colors (`primary`, `secondary`, `surface-*`, `brand-color`, `border-1`, and `muted`). Override the `--ssovee-*` CSS variables in your application to customize the theme.
60
+
61
+ ## Usage
62
+
63
+ ```tsx
64
+ import { Button, Input, Card } from "ssovee-os-web-ui";
65
+
66
+ export function Example() {
67
+ return (
68
+ <Card>
69
+ <Input placeholder="Search" />
70
+ <Button variant="primary">Save</Button>
71
+ </Card>
72
+ );
73
+ }
74
+ ```
75
+
76
+ ## Available exports
77
+
78
+ The library publishes the following shared UI components from the package entry point:
79
+
80
+ - `Button`
81
+ - `Input`
82
+ - `TextArea`
83
+ - `Select`
84
+ - `Checkbox`
85
+ - `Toggle`
86
+ - `Dropdown`
87
+ - `Loading`
88
+ - `Toast`
89
+ - `Alert`
90
+ - `Modal`
91
+ - `Card`
92
+ - `Badge`
93
+ - `Avatar`
94
+ - `Divider`
95
+ - `Tooltip`
96
+ - `SearchInput`
97
+ - `FileUpload`
98
+ - `Progress`
99
+ - `Pagination`
100
+ - `Radio`
101
+ - `Accordion`
102
+ - `Tabs`
103
+ - `Typography`
104
+ - `ImageWithPlaceholder`
105
+ - `Table` and its table subcomponents
106
+ - `useShortcutFormatter`
107
+ - `cn`
108
+
109
+ ## Package structure
110
+
111
+ ```text
112
+ src/
113
+ components/
114
+ hooks/
115
+ utils/
116
+ index.ts
117
+ ```
118
+
119
+ ## Build
120
+
121
+ ```bash
122
+ npm install
123
+ npm run build
124
+ ```
125
+
126
+ ## Hook and utility usage
127
+
128
+ ```tsx
129
+ import { cn, useShortcutFormatter } from "ssovee-os-web-ui";
130
+
131
+ const { formatKeys } = useShortcutFormatter();
132
+ const className = cn("button", isActive && "button-active");
133
+ const shortcutLabel = formatKeys(["ctrl", "k"]);
134
+ ```
135
+
136
+ ## Versioning and release
137
+
138
+ Use semantic versioning for releases:
139
+
140
+ ```bash
141
+ npm run release:patch
142
+ npm run release:minor
143
+ npm run release:major
144
+ ```
145
+
146
+ Then publish:
147
+
148
+ ```bash
149
+ npm login
150
+ npm publish --access public
151
+ ```
152
+
153
+ ## CI publish workflow
154
+
155
+ This repo is prepared for automated release publishing through GitHub Actions using the `NODE_AUTH_TOKEN` secret.
156
+
157
+ Before publishing, add an npm automation token with publish permission as the repository's `NPM_TOKEN` Actions secret. Create a version commit and matching tag (for example, `v0.1.1`), then push the tag to trigger the workflow.