rs-base-ui 0.3.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.
- package/LICENSE +21 -0
- package/README.md +44 -0
- package/dist/index.cjs +849 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.js +728 -0
- package/dist/index.js.map +1 -0
- package/dist/style.css +2 -0
- package/dist/theme.css +39 -0
- package/package.json +65 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Abhay Vatoo
|
|
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,44 @@
|
|
|
1
|
+
# rs-base-ui
|
|
2
|
+
|
|
3
|
+
Shared React UI components (Radix primitives + Tailwind v4, shadcn "new-york" style) with one baked-in theme. No per-app theming or customization surface — install it, pin a version, use what's provided.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
npm install rs-base-ui
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
`react` and `react-dom` (`>=18 <20`) are peer dependencies — install them yourself if not already present.
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```jsx
|
|
16
|
+
import { Button, Input, Dialog, DialogContent, DialogTrigger } from 'rs-base-ui';
|
|
17
|
+
import 'rs-base-ui/styles.css'; // import once, e.g. in your app's entry point
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
The stylesheet is fully self-contained (Tailwind is compiled at build time inside this package), so **consuming apps do not need Tailwind installed** just to render these components. It only sets CSS custom properties and classes scoped to these components — it does not apply any global `*`/`body` reset, so it's safe to drop into an app that already has its own global styles.
|
|
21
|
+
|
|
22
|
+
## Components
|
|
23
|
+
|
|
24
|
+
Button, Input, Textarea, Label, Checkbox, RadioGroup/RadioGroupItem, Select (+ subcomponents), Dialog (+ subcomponents), AlertDialog (+ subcomponents), DropdownMenu (+ subcomponents), Table (+ subcomponents), Badge, Alert (+ AlertTitle/AlertDescription), Breadcrumb (+ subcomponents), Pagination (+ subcomponents), Tooltip (+ subcomponents), Progress.
|
|
25
|
+
|
|
26
|
+
Not included by design: file upload / date-picker / multi-select wrappers. Those wrap specific third-party libraries (`react-dropzone`, `react-datepicker`) that are app-specific integration choices, not look-and-feel — build them in the consuming app using `Input`/`Button`/`Popover` primitives from here.
|
|
27
|
+
|
|
28
|
+
## Releasing
|
|
29
|
+
|
|
30
|
+
```sh
|
|
31
|
+
npm version patch # or minor / major
|
|
32
|
+
git push --follow-tags
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Pushing a version tag triggers `.github/workflows/publish.yml`, which builds and runs `npm publish --access public` using the `NPM_TOKEN` repo secret.
|
|
36
|
+
|
|
37
|
+
## Local development against a consumer app
|
|
38
|
+
|
|
39
|
+
```sh
|
|
40
|
+
npm run build
|
|
41
|
+
npm link
|
|
42
|
+
# in the consumer app:
|
|
43
|
+
npm link rs-base-ui
|
|
44
|
+
```
|