@quidgest/ui 0.0.9 → 0.1.0
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 +33 -20
- package/dist/ui.esm.js +673 -583
- package/dist/ui.esm.js.map +1 -1
- package/dist/ui.js +3 -3
- package/dist/ui.js.map +1 -1
- package/dist/ui.min.js +142 -135
- package/dist/ui.min.js.map +1 -1
- package/lib/components/QButton/QButton.vue.d.ts +10 -0
- package/lib/components/QButton/QButton.vue.d.ts.map +1 -1
- package/lib/components/QOverlay/QOverlay.vue.d.ts +9 -0
- package/lib/components/QOverlay/QOverlay.vue.d.ts.map +1 -1
- package/lib/components/QPopover/QPopover.vue.d.ts +9 -0
- package/lib/components/QPopover/QPopover.vue.d.ts.map +1 -1
- package/lib/composables/defaults/index.d.ts +7 -0
- package/lib/composables/defaults/index.d.ts.map +1 -0
- package/lib/composables/index.d.ts +4 -0
- package/lib/composables/index.d.ts.map +1 -0
- package/lib/composables/{overlay.d.ts → overlay/index.d.ts} +1 -1
- package/lib/composables/overlay/index.d.ts.map +1 -0
- package/lib/composables/theme/index.d.ts +55 -0
- package/lib/composables/theme/index.d.ts.map +1 -0
- package/lib/framework.d.ts +4 -2
- package/lib/framework.d.ts.map +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/styles/ui.css +10 -14
- package/lib/styles/ui.min.css +1 -1
- package/lib/styles/ui.scss +11 -15
- package/package.json +1 -1
- package/lib/composables/defaults.d.ts +0 -5
- package/lib/composables/defaults.d.ts.map +0 -1
- package/lib/composables/overlay.d.ts.map +0 -1
- package/lib/composables/theme.d.ts +0 -35
- package/lib/composables/theme.d.ts.map +0 -1
package/README.md
CHANGED
|
@@ -17,23 +17,42 @@ pnpm add @quidgest/ui
|
|
|
17
17
|
|
|
18
18
|
## Usage
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
Start by installing the framework. We recommend placing this logic in a dedicated file, such as `src/plugins/quidgest-ui.ts`.
|
|
21
21
|
|
|
22
|
-
```
|
|
22
|
+
```ts
|
|
23
|
+
// src/plugins/quidgest-ui.ts
|
|
24
|
+
|
|
25
|
+
import { createFramework } from '@quidgest/ui'
|
|
26
|
+
|
|
27
|
+
const framework = createFramework()
|
|
28
|
+
|
|
29
|
+
export default framework
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Then, use the plugin in `main.ts`, as follows:
|
|
33
|
+
|
|
34
|
+
```ts
|
|
35
|
+
// src/main.ts
|
|
36
|
+
|
|
37
|
+
import { createApp } from 'vue'
|
|
38
|
+
import App from './App.vue'
|
|
39
|
+
|
|
40
|
+
import framework from './plugins/quidgest-ui'
|
|
41
|
+
|
|
42
|
+
createApp(App).use(framework).mount('#app')
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Once installed, the components become globally available and can be used like so:
|
|
46
|
+
|
|
47
|
+
```ts
|
|
23
48
|
<template>
|
|
24
|
-
<
|
|
25
|
-
<q-button>Click me</q-button>
|
|
26
|
-
</div>
|
|
49
|
+
<q-button @click="handleClick">Click me</q-button>
|
|
27
50
|
</template>
|
|
28
51
|
|
|
29
|
-
<script>
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
components: {
|
|
34
|
-
QButton
|
|
35
|
-
}
|
|
36
|
-
}
|
|
52
|
+
<script setup lang="ts">
|
|
53
|
+
function handleClick() {
|
|
54
|
+
console.log("Parallel lines have so much in common. It's a shame they'll never meet.")
|
|
55
|
+
}
|
|
37
56
|
</script>
|
|
38
57
|
```
|
|
39
58
|
|
|
@@ -41,13 +60,7 @@ Once installed, you can import and use components as follows:
|
|
|
41
60
|
|
|
42
61
|
The package utilizes Storybook for component development and organization. You can view the components locally in the Storybook documentation explorer.
|
|
43
62
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
```cli
|
|
47
|
-
cd ui
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
Next, run Storybook:
|
|
63
|
+
Execute the following command to run Storybook:
|
|
51
64
|
|
|
52
65
|
```cli
|
|
53
66
|
npm run storybook
|