windly-ui 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/dist/module.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "windly-ui",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "builder": {
5
5
  "@nuxt/module-builder": "1.0.2",
6
6
  "unbuild": "3.6.1"
package/dist/module.mjs CHANGED
@@ -13,7 +13,7 @@ const module$1 = defineNuxtModule({
13
13
  pages.push({
14
14
  name: "windly-ui-docs",
15
15
  path: "/_windly-ui",
16
- file: resolver.resolve("./docs/index.vue")
16
+ file: resolver.resolve("./runtime/docs/index.vue")
17
17
  });
18
18
  });
19
19
  nuxt.hook("tailwindcss:config", (config) => {
@@ -0,0 +1,28 @@
1
+ declare const _default: typeof __VLS_export;
2
+ export default _default;
3
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
4
+ type __VLS_WithSlots<T, S> = T & (new () => {
5
+ $slots: S;
6
+ });
7
+ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
8
+ title: {
9
+ type: StringConstructor;
10
+ };
11
+ caption: {
12
+ type: StringConstructor;
13
+ default: string;
14
+ };
15
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
16
+ title: {
17
+ type: StringConstructor;
18
+ };
19
+ caption: {
20
+ type: StringConstructor;
21
+ default: string;
22
+ };
23
+ }>> & Readonly<{}>, {
24
+ caption: string;
25
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
26
+ type __VLS_Slots = {
27
+ default?: ((props: {}) => any) | undefined;
28
+ };
@@ -0,0 +1,34 @@
1
+ <script setup>
2
+ const props = defineProps({
3
+ title: {
4
+ type: String
5
+ },
6
+ caption: {
7
+ type: String,
8
+ default: ""
9
+ }
10
+ });
11
+ const sectionId = props.title.split(" ").join("-").toLocaleLowerCase();
12
+ const copySectionLink = async () => {
13
+ const url = `${window.location.origin}${window.location.pathname}#${sectionId}`;
14
+ try {
15
+ await navigator.clipboard.writeText(url);
16
+ console.log("Link copied:", url);
17
+ } catch (err) {
18
+ console.error("Failed to copy link", err);
19
+ }
20
+ };
21
+ </script>
22
+
23
+ <template>
24
+ <div :id="sectionId" class="flex flex-col my-10">
25
+ <h4 class="text-3xl font-semibold text-gray-700 cursor-pointer" @click="copySectionLink"># {{title}}</h4>
26
+ <div v-if="caption" class="text-md font-light mt-2 text-gray-800 pl-7">{{caption}}</div>
27
+ <div class="my-6">
28
+ <UICodeBlock :title="title">
29
+ <slot />
30
+ </UICodeBlock>
31
+ </div>
32
+ <hr/>
33
+ </div>
34
+ </template>
@@ -0,0 +1,28 @@
1
+ declare const _default: typeof __VLS_export;
2
+ export default _default;
3
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
4
+ type __VLS_WithSlots<T, S> = T & (new () => {
5
+ $slots: S;
6
+ });
7
+ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
8
+ title: {
9
+ type: StringConstructor;
10
+ };
11
+ caption: {
12
+ type: StringConstructor;
13
+ default: string;
14
+ };
15
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
16
+ title: {
17
+ type: StringConstructor;
18
+ };
19
+ caption: {
20
+ type: StringConstructor;
21
+ default: string;
22
+ };
23
+ }>> & Readonly<{}>, {
24
+ caption: string;
25
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
26
+ type __VLS_Slots = {
27
+ default?: ((props: {}) => any) | undefined;
28
+ };
@@ -0,0 +1,3 @@
1
+ declare const _default: typeof __VLS_export;
2
+ export default _default;
3
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;