@skyloft/windvane 0.1.5 → 0.1.7

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
@@ -1,3 +1,87 @@
1
1
  # @skyloft/windvane
2
2
 
3
3
  A UI library based on Tailwind and inspired by Material UI.
4
+
5
+ ## Installation
6
+
7
+ You must have Tailwind installed, preferably `^4.0.0`.
8
+
9
+ Then install Windvane.
10
+
11
+ ```
12
+ npm install @skyloft/windvane
13
+ ```
14
+
15
+ Install plugin in Vue startup:
16
+
17
+ ```TypeScript
18
+ // main.ts
19
+
20
+ import './assets/main.css';
21
+ import { createApp } from 'vue';
22
+ import App from './App.vue';
23
+ import router from './router';
24
+
25
+ // Perform Windvane imports
26
+ import '@skyloft/windvane/windvane.css';
27
+ import Windvane from '@skyloft/windvane';
28
+
29
+ const app = createApp(App);
30
+
31
+ app.use(router);
32
+
33
+ // Install as plugin
34
+ app.use(Windvane);
35
+
36
+ app.mount('#app');
37
+
38
+ ```
39
+
40
+ in your css, set up some theming
41
+
42
+ ```CSS
43
+ /* main.css */
44
+
45
+ @import 'tailwindcss';
46
+
47
+ /* Windvane setup */
48
+ @source '../../node_modules/@skyloft/windvane';
49
+ @theme {
50
+ --color-primary: rgb(0, 189, 126);
51
+ --color-card: #1a1a1a;
52
+ --color-bg: black;
53
+ }
54
+ /* Windvane setup end */
55
+
56
+ :root {
57
+ color: white;
58
+ }
59
+
60
+ body {
61
+ background-color: black;
62
+ }
63
+
64
+ ```
65
+
66
+ Then you're ready to go!
67
+
68
+ ```vue
69
+ <script setup lang="ts">
70
+ const selectedTab = ref('general');
71
+ </script>
72
+
73
+ <template>
74
+ <div class="flex flex-col gap-4">
75
+ <Tabs v-model="selectedTab" active-color="primary">
76
+ <Tab name="general">General</Tab>
77
+ <Tab name="security">Security</Tab>
78
+ <Tab name="privacy">Privacy</Tab>
79
+ <Tab name="utilities">Utilities</Tab>
80
+ </Tabs>
81
+
82
+ <div v-if="selectedTab === 'general'">
83
+ <h1>General</h1>
84
+ </div>
85
+ </div>
86
+ </template>
87
+ ```
@@ -0,0 +1,6 @@
1
+ export declare const rippleDirective: {
2
+ mounted: (parent: HTMLElement, directiveData: {
3
+ value: boolean;
4
+ }) => void;
5
+ getSSRProps: () => {};
6
+ };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { default as TestComponent } from './components/TestComponent.vue';
1
+ import { App } from 'vue';
2
2
  import { default as Badge } from './components/Badge.vue';
3
3
  import { default as Button } from './components/Button.vue';
4
4
  import { default as ButtonToggle } from './components/ButtonToggle.vue';
@@ -27,4 +27,8 @@ import { default as Tabs } from './components/Tabs.vue';
27
27
  import { default as Tooltip } from './components/Tooltip.vue';
28
28
  import { default as TouchNumberInput } from './components/TouchNumberInput.vue';
29
29
  import { default as TransitionGroupFadeSlide } from './components/TransitionGroupFadeSlide.vue';
30
- export { TestComponent, Badge, Button, ButtonToggle, Card, Checkbox, Date, Dialog, EllipsisText, ExpansionItem, Fab, FabAction, Header, Icon, Input, MathOperationButtons, NavMenu, PullToRefresh, ScrollArea, Select, SlideItem, Spinner, Stepper, StepperStep, Tab, Tabs, Tooltip, TouchNumberInput, TransitionGroupFadeSlide, };
30
+ declare const Windvane: {
31
+ install: (app: App) => void;
32
+ };
33
+ export default Windvane;
34
+ export { Badge, Button, ButtonToggle, Card, Checkbox, Date, Dialog, EllipsisText, ExpansionItem, Fab, FabAction, Header, Icon, Input, MathOperationButtons, NavMenu, PullToRefresh, ScrollArea, Select, SlideItem, Spinner, Stepper, StepperStep, Tab, Tabs, Tooltip, TouchNumberInput, TransitionGroupFadeSlide, };