@vverchonov/web-components 0.1.1 → 0.1.3
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/README.md +6 -1
- package/package.json +20 -2
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ A library of reusable UI components built with [Lit 3](https://lit.dev/), shippe
|
|
|
4
4
|
|
|
5
5
|
## Features
|
|
6
6
|
|
|
7
|
-
- **
|
|
7
|
+
- **13 components** — Button, Input, Toggle, Table, Menu, Modal, Tabs, Selector, Dropdown Button, Layout, Form Layout, Card, Radio Group
|
|
8
8
|
- **React wrappers** via `@lit/react` — use every component as a native React element
|
|
9
9
|
- **Dark mode** — automatic (system preference) and manual (`data-theme`)
|
|
10
10
|
- **Fully typed** — written in TypeScript with exported types for every component
|
|
@@ -75,6 +75,8 @@ import { Button, Input, Table } from '@vverchonov/web-components/react'
|
|
|
75
75
|
| `app-dropdown-button` | `DropdownButton` | `./dropdown-button` | Dropdown menu button with nested submenus |
|
|
76
76
|
| `app-layout` | `Layout` | `./layouts` | Page layout with sidebar slot |
|
|
77
77
|
| `app-form-layout` | `FormLayout` | `./layouts` | Form shell with multi-step support and column grids |
|
|
78
|
+
| `app-card` | `Card` | `./card` | Collapsible content card (elevated, outlined, filled) |
|
|
79
|
+
| `app-radio-group` | `RadioGroup` | `./radio-group` | Radio button group with validation states |
|
|
78
80
|
|
|
79
81
|
## Theming
|
|
80
82
|
|
|
@@ -113,6 +115,9 @@ Available values: `"dark"`, `"light"` (overrides system preference), or omit the
|
|
|
113
115
|
| Menu | `--menu-width`, `--menu-collapsed-width` |
|
|
114
116
|
| Toggle | `--toggle-track-width`, `--toggle-thumb-size` |
|
|
115
117
|
| Tabs | `--tab-padding-block`, `--tab-indicator-height` |
|
|
118
|
+
| Dropdown | `--dropdown-padding`, `--dropdown-item-padding-block`, `--dropdown-item-font-size` |
|
|
119
|
+
| Radio Group | `--radio-size`, `--radio-dot-size`, `--radio-gap` |
|
|
120
|
+
| Card | `--card-padding`, `--card-gap`, `--card-transition-duration` |
|
|
116
121
|
| Selector | `--selector-min-height`, `--selector-panel-max-height` |
|
|
117
122
|
|
|
118
123
|
See `src/styles/theme.css` for the full list of tokens and their default values.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vverchonov/web-components",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -21,7 +21,9 @@
|
|
|
21
21
|
"./dist/input.js",
|
|
22
22
|
"./dist/modal.js",
|
|
23
23
|
"./dist/tabs.js",
|
|
24
|
-
"./dist/selector.js"
|
|
24
|
+
"./dist/selector.js",
|
|
25
|
+
"./dist/card.js",
|
|
26
|
+
"./dist/radio-group.js"
|
|
25
27
|
],
|
|
26
28
|
"files": [
|
|
27
29
|
"dist"
|
|
@@ -74,6 +76,14 @@
|
|
|
74
76
|
"types": "./dist/components/selector/index.d.ts",
|
|
75
77
|
"import": "./dist/selector.js"
|
|
76
78
|
},
|
|
79
|
+
"./card": {
|
|
80
|
+
"types": "./dist/components/card/index.d.ts",
|
|
81
|
+
"import": "./dist/card.js"
|
|
82
|
+
},
|
|
83
|
+
"./radio-group": {
|
|
84
|
+
"types": "./dist/components/radio-group/index.d.ts",
|
|
85
|
+
"import": "./dist/radio-group.js"
|
|
86
|
+
},
|
|
77
87
|
"./react": {
|
|
78
88
|
"types": "./dist/react/index.d.ts",
|
|
79
89
|
"import": "./dist/react.js"
|
|
@@ -118,9 +128,17 @@
|
|
|
118
128
|
"types": "./dist/react/layout.d.ts",
|
|
119
129
|
"import": "./dist/react/layout.js"
|
|
120
130
|
},
|
|
131
|
+
"./react/card": {
|
|
132
|
+
"types": "./dist/react/card.d.ts",
|
|
133
|
+
"import": "./dist/react/card.js"
|
|
134
|
+
},
|
|
121
135
|
"./react/form-layout": {
|
|
122
136
|
"types": "./dist/react/form-layout.d.ts",
|
|
123
137
|
"import": "./dist/react/form-layout.js"
|
|
138
|
+
},
|
|
139
|
+
"./react/radio-group": {
|
|
140
|
+
"types": "./dist/react/radio-group.d.ts",
|
|
141
|
+
"import": "./dist/react/radio-group.js"
|
|
124
142
|
}
|
|
125
143
|
},
|
|
126
144
|
"peerDependencies": {
|