@livestorm/ui-vue 2.0.0 → 2.0.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/README.md +2 -12
- package/dist/{UiTimelineItem.vue_vue_type_style_index_0_lang-DOLFRKcb.mjs → UiTimelineItem.vue_vue_type_style_index_0_lang-BN5208td.mjs} +1226 -1339
- package/dist/a11y--y7uaY4j.mjs +217 -0
- package/dist/components.mjs +73 -72
- package/dist/index.mjs +28 -27
- package/dist/types/src/components/UiButton/UiButton.vue.d.ts +31 -0
- package/dist/types/src/components/UiDropdown/UiDropdown.vue.d.ts +2 -2
- package/dist/types/src/components/UiFieldWrapper/UiFieldWrapper.vue.d.ts +4 -4
- package/dist/types/src/components/UiTooltip/UiTooltip.vue.d.ts +28 -5
- package/dist/ui-vue.css +1 -1
- package/dist/utils.mjs +117 -82
- package/package.json +3 -4
- package/src/components/UiButton/UiButton.vue +49 -46
- package/src/components/UiFieldWrapper/UiFieldWrapper.vue +7 -5
- package/src/components/UiInputCheckbox/UiInputCheckbox.vue +14 -10
- package/src/components/UiLabel/UiLabel.vue +11 -9
- package/src/components/UiTooltip/UiTooltip.vue +56 -4
- package/src/utils/clipboard.js +80 -13
- package/dist/a11y-DIdrv5Mn.mjs +0 -66
package/README.md
CHANGED
|
@@ -103,19 +103,10 @@ registerComponents(app, 'Ls') // optional custom prefix: LsButton, LsTag, ...
|
|
|
103
103
|
|
|
104
104
|
### App setup
|
|
105
105
|
|
|
106
|
-
Beyond the Tailwind CSS setup above,
|
|
107
|
-
|
|
108
|
-
- **`@livestorm/ui-vue/responsive`** installs the `$responsive` global that layout components (`UiPage`, the toast layout) read; without it those components won't render correctly.
|
|
109
|
-
- **`floating-vue`** backs the tooltips on `UiButton`, `UiLabel`, `UiFieldWrapper` and `UiInputCheckbox` (the `v-tooltip` directive). Install it alongside the library and import its stylesheet:
|
|
110
|
-
|
|
111
|
-
```bash
|
|
112
|
-
pnpm add floating-vue
|
|
113
|
-
```
|
|
106
|
+
Beyond the Tailwind CSS setup above, one runtime plugin must be registered when you create the app. `@livestorm/ui-vue/responsive` installs the `$responsive` global that layout components (`UiPage`, the toast layout) read; without it those components won't render correctly.
|
|
114
107
|
|
|
115
108
|
```ts
|
|
116
109
|
import { createApp } from 'vue'
|
|
117
|
-
import FloatingVue from 'floating-vue'
|
|
118
|
-
import 'floating-vue/dist/style.css'
|
|
119
110
|
import Responsive from '@livestorm/ui-vue/responsive'
|
|
120
111
|
import { registerComponents } from '@livestorm/ui-vue/components-vite'
|
|
121
112
|
import '@livestorm/ui-vue/style'
|
|
@@ -124,13 +115,12 @@ import App from './App.vue'
|
|
|
124
115
|
const app = createApp(App)
|
|
125
116
|
|
|
126
117
|
app.use(Responsive) // provides $responsive (required by UiPage, toasts)
|
|
127
|
-
app.use(FloatingVue) // enables v-tooltip on UiButton, UiLabel, UiFieldWrapper, UiInputCheckbox
|
|
128
118
|
registerComponents(app) // optional: register all Ui* components globally
|
|
129
119
|
|
|
130
120
|
app.mount('#app')
|
|
131
121
|
```
|
|
132
122
|
|
|
133
|
-
The overlay components (dialogs, dropdowns, menus, popovers) render through client-only teleports; under SSR they hydrate on the client with no extra setup.
|
|
123
|
+
The overlay components (dialogs, dropdowns, menus, popovers, tooltips) render through client-only teleports; under SSR they hydrate on the client with no extra setup.
|
|
134
124
|
|
|
135
125
|
### Storybook
|
|
136
126
|
|