webcake-ui-kit 1.0.4 → 1.0.5
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
CHANGED
|
@@ -12,7 +12,7 @@ Ship the same components to Vue 2.7 _and_ Vue 3 — from a single source, with o
|
|
|
12
12
|
[](https://www.npmjs.com/package/webcake-ui-kit)
|
|
13
13
|
[](https://vuejs.org/)
|
|
14
14
|
[](#-why-ship-raw-sfc)
|
|
15
|
-
[](LICENSE)
|
|
16
16
|
|
|
17
17
|
<br />
|
|
18
18
|
|
|
@@ -35,7 +35,7 @@ Most Vue component libraries force you to **pick a side**. Choose Vue 2 → you'
|
|
|
35
35
|
**webcake-ui-kit refuses that tradeoff.** Every component is hand-authored under strict dual-compatibility rules so the _same import_ compiles, renders, and behaves identically on **Vue 2.7** and **Vue 3.4+** — from a codebase you can grep, fork, and theme as if it were your own.
|
|
36
36
|
|
|
37
37
|
```js
|
|
38
|
-
import {
|
|
38
|
+
import { WkButton, WkDialog, WkInput } from 'webcake-ui-kit'
|
|
39
39
|
// ✅ Vue 2.7 — works
|
|
40
40
|
// ✅ Vue 3.x — works
|
|
41
41
|
// ✅ Same API. Same styles. Same behavior. One source of truth.
|
|
@@ -92,14 +92,14 @@ import 'webcake-ui-kit/styles'
|
|
|
92
92
|
```js
|
|
93
93
|
// main.js
|
|
94
94
|
import { createApp } from 'vue'
|
|
95
|
-
import {
|
|
95
|
+
import { WkButton, WkDialog, WkInput } from 'webcake-ui-kit'
|
|
96
96
|
import 'webcake-ui-kit/styles'
|
|
97
97
|
import App from './App.vue'
|
|
98
98
|
|
|
99
99
|
const app = createApp(App)
|
|
100
|
-
app.component('
|
|
101
|
-
app.component('
|
|
102
|
-
app.component('
|
|
100
|
+
app.component('WkButton', WkButton)
|
|
101
|
+
app.component('WkDialog', WkDialog)
|
|
102
|
+
app.component('WkInput', WkInput)
|
|
103
103
|
app.mount('#app')
|
|
104
104
|
```
|
|
105
105
|
|
|
@@ -109,13 +109,13 @@ app.mount('#app')
|
|
|
109
109
|
```js
|
|
110
110
|
// main.js
|
|
111
111
|
import Vue from 'vue'
|
|
112
|
-
import {
|
|
112
|
+
import { WkButton, WkDialog, WkInput } from 'webcake-ui-kit'
|
|
113
113
|
import 'webcake-ui-kit/styles'
|
|
114
114
|
import App from './App.vue'
|
|
115
115
|
|
|
116
|
-
Vue.component('
|
|
117
|
-
Vue.component('
|
|
118
|
-
Vue.component('
|
|
116
|
+
Vue.component('WkButton', WkButton)
|
|
117
|
+
Vue.component('WkDialog', WkDialog)
|
|
118
|
+
Vue.component('WkInput', WkInput)
|
|
119
119
|
|
|
120
120
|
new Vue({ render: h => h(App) }).$mount('#app')
|
|
121
121
|
```
|
|
@@ -129,11 +129,11 @@ new Vue({ render: h => h(App) }).$mount('#app')
|
|
|
129
129
|
```vue
|
|
130
130
|
<template>
|
|
131
131
|
<div>
|
|
132
|
-
<
|
|
132
|
+
<WkButton variant="primary" @click="open = true">Open dialog</WkButton>
|
|
133
133
|
|
|
134
|
-
<
|
|
135
|
-
<
|
|
136
|
-
</
|
|
134
|
+
<WkDialog v-model="open" title="Hello from webcake 👋">
|
|
135
|
+
<WkInput v-model="name" placeholder="Your name" />
|
|
136
|
+
</WkDialog>
|
|
137
137
|
</div>
|
|
138
138
|
</template>
|
|
139
139
|
|
|
@@ -203,23 +203,24 @@ Every component, every variant, every prop — browsable before you `npm install
|
|
|
203
203
|
|
|
204
204
|
## 🧩 Components
|
|
205
205
|
|
|
206
|
+
All exports are prefixed with **`Wk`** to avoid global name collisions and to be greppable across consumer apps.
|
|
207
|
+
|
|
206
208
|
<div align="center">
|
|
207
209
|
|
|
208
|
-
| Forms
|
|
209
|
-
|
|
|
210
|
-
|
|
|
211
|
-
|
|
|
212
|
-
|
|
|
213
|
-
|
|
|
214
|
-
|
|
|
215
|
-
|
|
|
216
|
-
|
|
|
217
|
-
|
|
|
218
|
-
|
|
|
219
|
-
|
|
|
220
|
-
|
|
|
221
|
-
|
|
|
222
|
-
| RichSwitchGroup | | | |
|
|
210
|
+
| Forms | Overlays | Layout | Display |
|
|
211
|
+
| :------------------------ | :------------ | :------------------ | :----------- |
|
|
212
|
+
| WkButton | WkDialog | WkAccordion | WkBadge |
|
|
213
|
+
| WkButtonGroup | WkAlertDialog | WkAccordionItem | WkTag |
|
|
214
|
+
| WkInput | WkTooltip\* | WkTabs | WkDivider |
|
|
215
|
+
| WkCheckbox | | WkBreadcrumb | WkSpinner |
|
|
216
|
+
| WkCheckboxGroup | | WkPagination | WkTypography |
|
|
217
|
+
| WkRadio / WkRadioGroup | | WkSidebarItem | |
|
|
218
|
+
| WkSelect / WkSelectOption | | WkSidebarGroupLabel | |
|
|
219
|
+
| WkSwitch / WkSwitchGroup | | | |
|
|
220
|
+
| WkToggle / WkToggleGroup | | | |
|
|
221
|
+
| WkSlider | | | |
|
|
222
|
+
| WkRichCheckboxGroup | | | |
|
|
223
|
+
| WkRichSwitchGroup | | | |
|
|
223
224
|
|
|
224
225
|
<sub>\* coming soon · _more on the way_</sub>
|
|
225
226
|
|
|
@@ -351,7 +352,7 @@ Before opening one:
|
|
|
351
352
|
|
|
352
353
|
## 📜 License
|
|
353
354
|
|
|
354
|
-
**
|
|
355
|
+
**MIT** © Webcake Team — use it, fork it, ship it.
|
|
355
356
|
|
|
356
357
|
---
|
|
357
358
|
|
package/package.json
CHANGED