opui-css 1.2.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 +21 -0
- package/README.md +59 -0
- package/dist/ui.css +4417 -0
- package/package.json +33 -0
- package/src/components/accordion.css +172 -0
- package/src/components/alert.css +85 -0
- package/src/components/avatar.css +68 -0
- package/src/components/badge.css +101 -0
- package/src/components/button-group.css +69 -0
- package/src/components/button.css +272 -0
- package/src/components/card.css +82 -0
- package/src/components/checkbox-radio.css +123 -0
- package/src/components/chip.css +135 -0
- package/src/components/definition-list.css +65 -0
- package/src/components/description-list.css +0 -0
- package/src/components/dialog.css +61 -0
- package/src/components/divider.css +7 -0
- package/src/components/field-group.css +83 -0
- package/src/components/field.css +500 -0
- package/src/components/icon-button.css +40 -0
- package/src/components/link.css +21 -0
- package/src/components/list.css +317 -0
- package/src/components/progress.css +80 -0
- package/src/components/range.css +121 -0
- package/src/components/rich-text.css +210 -0
- package/src/components/select.css +166 -0
- package/src/components/snackbar.css +152 -0
- package/src/components/spinner.css +38 -0
- package/src/components/switch.css +189 -0
- package/src/components/tab-buttons.css +124 -0
- package/src/components/table.css +107 -0
- package/src/components/text-field.css +57 -0
- package/src/components/textarea.css +25 -0
- package/src/components/toggle-button-group.css +142 -0
- package/src/components/tooltip.css +94 -0
- package/src/components/typography.css +209 -0
- package/src/main.css +59 -0
- package/src/normalize.css +194 -0
- package/src/theme.css +160 -0
- package/src/utils.css +60 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Felix
|
|
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,59 @@
|
|
|
1
|
+
# ui-css
|
|
2
|
+
|
|
3
|
+
Lightweight, CSS component library. Ships plain CSS with a prebuilt bundle and full source files.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
Use your preferred package manager:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
pnpm add ui-css
|
|
11
|
+
# or
|
|
12
|
+
npm install ui-css
|
|
13
|
+
# or
|
|
14
|
+
yarn add ui-css
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Usage
|
|
18
|
+
|
|
19
|
+
- Quick start (single bundle):
|
|
20
|
+
|
|
21
|
+
Import the prebuilt stylesheet in your app entry or HTML:
|
|
22
|
+
|
|
23
|
+
```css
|
|
24
|
+
/* app.css */
|
|
25
|
+
@import "ui-css/dist/ui.css";
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Or in JS/TS (bundlers like Vite, Webpack, Next.js):
|
|
29
|
+
|
|
30
|
+
```ts
|
|
31
|
+
import "ui-css/dist/ui.css";
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
- Granular usage (raw sources):
|
|
35
|
+
|
|
36
|
+
If you have PostCSS or a bundler handling CSS imports, you can import from `src` to tree-pick only what you need:
|
|
37
|
+
|
|
38
|
+
```css
|
|
39
|
+
@import "ui-css/src/normalize.css";
|
|
40
|
+
@import "ui-css/src/theme.css";
|
|
41
|
+
@import "ui-css/src/components/button.css";
|
|
42
|
+
/* ... */
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Exports
|
|
46
|
+
|
|
47
|
+
- `"ui-css"` and `"ui-css/dist/ui.css"` point to the prebuilt CSS bundle.
|
|
48
|
+
- `"ui-css/dist/*"` exposes all built files in `dist/`.
|
|
49
|
+
- `"ui-css/src/*"` exposes the raw, unprocessed sources for advanced setups.
|
|
50
|
+
|
|
51
|
+
## Publishing
|
|
52
|
+
|
|
53
|
+
The package auto-builds before publish via `prepublishOnly`. To publish:
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
pnpm publish --access public
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Ensure you are logged in to npm and have the proper permissions.
|