rimelight-components 2.1.18 → 2.1.19

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.
Files changed (149) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/module.mjs +1 -1
  3. package/dist/runtime/components/app/Footer.d.vue.ts +13 -8
  4. package/dist/runtime/components/app/Footer.vue +12 -7
  5. package/dist/runtime/components/app/Footer.vue.d.ts +13 -8
  6. package/dist/runtime/components/app/Header.d.vue.ts +19 -14
  7. package/dist/runtime/components/app/Header.vue +15 -10
  8. package/dist/runtime/components/app/Header.vue.d.ts +19 -14
  9. package/dist/runtime/components/app/HeaderLayer.d.vue.ts +8 -4
  10. package/dist/runtime/components/app/HeaderLayer.vue +13 -10
  11. package/dist/runtime/components/app/HeaderLayer.vue.d.ts +8 -4
  12. package/dist/runtime/components/app/Image.d.vue.ts +13 -1
  13. package/dist/runtime/components/app/Image.vue +10 -7
  14. package/dist/runtime/components/app/Image.vue.d.ts +13 -1
  15. package/dist/runtime/components/app/Logo.d.vue.ts +13 -1
  16. package/dist/runtime/components/app/Logo.vue +8 -4
  17. package/dist/runtime/components/app/Logo.vue.d.ts +13 -1
  18. package/dist/runtime/components/app/NewsletterSignup.d.vue.ts +13 -1
  19. package/dist/runtime/components/app/NewsletterSignup.vue +9 -4
  20. package/dist/runtime/components/app/NewsletterSignup.vue.d.ts +13 -1
  21. package/dist/runtime/components/app/ScrollToTop.d.vue.ts +17 -4
  22. package/dist/runtime/components/app/ScrollToTop.vue +20 -12
  23. package/dist/runtime/components/app/ScrollToTop.vue.d.ts +17 -4
  24. package/dist/runtime/components/blocks/Block.d.vue.ts +8 -4
  25. package/dist/runtime/components/blocks/Block.vue +9 -5
  26. package/dist/runtime/components/blocks/Block.vue.d.ts +8 -4
  27. package/dist/runtime/components/blocks/BlockEditRenderer.d.vue.ts +13 -1
  28. package/dist/runtime/components/blocks/BlockEditRenderer.vue +8 -4
  29. package/dist/runtime/components/blocks/BlockEditRenderer.vue.d.ts +13 -1
  30. package/dist/runtime/components/blocks/BlockEditor.d.vue.ts +13 -4
  31. package/dist/runtime/components/blocks/BlockEditor.vue +9 -4
  32. package/dist/runtime/components/blocks/BlockEditor.vue.d.ts +13 -4
  33. package/dist/runtime/components/blocks/BlockViewRenderer.d.vue.ts +13 -1
  34. package/dist/runtime/components/blocks/BlockViewRenderer.vue +8 -4
  35. package/dist/runtime/components/blocks/BlockViewRenderer.vue.d.ts +13 -1
  36. package/dist/runtime/components/blocks/TextRenderer.d.vue.ts +13 -1
  37. package/dist/runtime/components/blocks/TextRenderer.vue +12 -6
  38. package/dist/runtime/components/blocks/TextRenderer.vue.d.ts +13 -1
  39. package/dist/runtime/components/blocks/editor/CalloutBlockEditor.d.vue.ts +13 -1
  40. package/dist/runtime/components/blocks/editor/CalloutBlockEditor.vue +11 -5
  41. package/dist/runtime/components/blocks/editor/CalloutBlockEditor.vue.d.ts +13 -1
  42. package/dist/runtime/components/blocks/editor/CardBlockEditor.d.vue.ts +13 -1
  43. package/dist/runtime/components/blocks/editor/CardBlockEditor.vue +7 -3
  44. package/dist/runtime/components/blocks/editor/CardBlockEditor.vue.d.ts +13 -1
  45. package/dist/runtime/components/blocks/editor/ImageBlockEditor.d.vue.ts +21 -5
  46. package/dist/runtime/components/blocks/editor/ImageBlockEditor.vue +11 -7
  47. package/dist/runtime/components/blocks/editor/ImageBlockEditor.vue.d.ts +21 -5
  48. package/dist/runtime/components/blocks/editor/ParagraphBlockEditor.d.vue.ts +13 -1
  49. package/dist/runtime/components/blocks/editor/ParagraphBlockEditor.vue +12 -8
  50. package/dist/runtime/components/blocks/editor/ParagraphBlockEditor.vue.d.ts +13 -1
  51. package/dist/runtime/components/blocks/editor/SectionBlockEditor.d.vue.ts +15 -1
  52. package/dist/runtime/components/blocks/editor/SectionBlockEditor.vue +9 -5
  53. package/dist/runtime/components/blocks/editor/SectionBlockEditor.vue.d.ts +15 -1
  54. package/dist/runtime/components/blocks/editor/TestBlockEditor.d.vue.ts +13 -1
  55. package/dist/runtime/components/blocks/editor/TestBlockEditor.vue +7 -3
  56. package/dist/runtime/components/blocks/editor/TestBlockEditor.vue.d.ts +13 -1
  57. package/dist/runtime/components/blocks/renderer/CalloutBlockRenderer.d.vue.ts +13 -1
  58. package/dist/runtime/components/blocks/renderer/CalloutBlockRenderer.vue +11 -5
  59. package/dist/runtime/components/blocks/renderer/CalloutBlockRenderer.vue.d.ts +13 -1
  60. package/dist/runtime/components/blocks/renderer/CardBlockRenderer.d.vue.ts +13 -1
  61. package/dist/runtime/components/blocks/renderer/CardBlockRenderer.vue +7 -3
  62. package/dist/runtime/components/blocks/renderer/CardBlockRenderer.vue.d.ts +13 -1
  63. package/dist/runtime/components/blocks/renderer/ImageBlockRenderer.d.vue.ts +15 -1
  64. package/dist/runtime/components/blocks/renderer/ImageBlockRenderer.vue +9 -5
  65. package/dist/runtime/components/blocks/renderer/ImageBlockRenderer.vue.d.ts +15 -1
  66. package/dist/runtime/components/blocks/renderer/ParagraphBlockRenderer.d.vue.ts +13 -1
  67. package/dist/runtime/components/blocks/renderer/ParagraphBlockRenderer.vue +9 -3
  68. package/dist/runtime/components/blocks/renderer/ParagraphBlockRenderer.vue.d.ts +13 -1
  69. package/dist/runtime/components/blocks/renderer/SectionBlockRenderer.d.vue.ts +13 -1
  70. package/dist/runtime/components/blocks/renderer/SectionBlockRenderer.vue +11 -5
  71. package/dist/runtime/components/blocks/renderer/SectionBlockRenderer.vue.d.ts +13 -1
  72. package/dist/runtime/components/blocks/renderer/TestBlockRenderer.d.vue.ts +13 -1
  73. package/dist/runtime/components/blocks/renderer/TestBlockRenderer.vue +9 -3
  74. package/dist/runtime/components/blocks/renderer/TestBlockRenderer.vue.d.ts +13 -1
  75. package/dist/runtime/components/cards/TeamCard.d.vue.ts +11 -4
  76. package/dist/runtime/components/cards/TeamCard.vue +12 -8
  77. package/dist/runtime/components/cards/TeamCard.vue.d.ts +11 -4
  78. package/dist/runtime/components/content/Callout.d.vue.ts +8 -4
  79. package/dist/runtime/components/content/Callout.vue +11 -7
  80. package/dist/runtime/components/content/Callout.vue.d.ts +8 -4
  81. package/dist/runtime/components/content/Section.d.vue.ts +14 -10
  82. package/dist/runtime/components/content/Section.vue +14 -9
  83. package/dist/runtime/components/content/Section.vue.d.ts +14 -10
  84. package/dist/runtime/components/content/Test.d.vue.ts +7 -4
  85. package/dist/runtime/components/content/Test.vue +8 -4
  86. package/dist/runtime/components/content/Test.vue.d.ts +7 -4
  87. package/dist/runtime/components/nodes/LinkNode.d.vue.ts +13 -1
  88. package/dist/runtime/components/nodes/LinkNode.vue +8 -4
  89. package/dist/runtime/components/nodes/LinkNode.vue.d.ts +13 -1
  90. package/dist/runtime/components/nodes/TextNode.d.vue.ts +13 -1
  91. package/dist/runtime/components/nodes/TextNode.vue +8 -4
  92. package/dist/runtime/components/nodes/TextNode.vue.d.ts +13 -1
  93. package/dist/runtime/components/page/PageEditor.d.vue.ts +32 -5
  94. package/dist/runtime/components/page/PageEditor.vue +36 -24
  95. package/dist/runtime/components/page/PageEditor.vue.d.ts +32 -5
  96. package/dist/runtime/components/page/PageMention.d.vue.ts +16 -1
  97. package/dist/runtime/components/page/PageMention.vue +11 -7
  98. package/dist/runtime/components/page/PageMention.vue.d.ts +16 -1
  99. package/dist/runtime/components/page/PagePropertiesEditor.d.vue.ts +23 -1
  100. package/dist/runtime/components/page/PagePropertiesEditor.vue +83 -79
  101. package/dist/runtime/components/page/PagePropertiesEditor.vue.d.ts +23 -1
  102. package/dist/runtime/components/page/PagePropertiesRenderer.d.vue.ts +31 -1
  103. package/dist/runtime/components/page/PagePropertiesRenderer.vue +36 -32
  104. package/dist/runtime/components/page/PagePropertiesRenderer.vue.d.ts +31 -1
  105. package/dist/runtime/components/page/PageRenderer.d.vue.ts +23 -1
  106. package/dist/runtime/components/page/PageRenderer.vue +21 -17
  107. package/dist/runtime/components/page/PageRenderer.vue.d.ts +23 -1
  108. package/dist/runtime/components/page/PageSurround.d.vue.ts +21 -1
  109. package/dist/runtime/components/page/PageSurround.vue +25 -20
  110. package/dist/runtime/components/page/PageSurround.vue.d.ts +21 -1
  111. package/dist/runtime/components/page/PageTOC.d.vue.ts +10 -4
  112. package/dist/runtime/components/page/PageTOC.vue +10 -6
  113. package/dist/runtime/components/page/PageTOC.vue.d.ts +10 -4
  114. package/dist/runtime/components/page/modals/CreatePageModal.d.vue.ts +12 -4
  115. package/dist/runtime/components/page/modals/CreatePageModal.vue +13 -9
  116. package/dist/runtime/components/page/modals/CreatePageModal.vue.d.ts +12 -4
  117. package/dist/runtime/components/page/modals/DeletePageModal.d.vue.ts +14 -7
  118. package/dist/runtime/components/page/modals/DeletePageModal.vue +13 -9
  119. package/dist/runtime/components/page/modals/DeletePageModal.vue.d.ts +14 -7
  120. package/dist/runtime/components/swatches/ColorSwatch.d.vue.ts +19 -1
  121. package/dist/runtime/components/swatches/ColorSwatch.vue +29 -17
  122. package/dist/runtime/components/swatches/ColorSwatch.vue.d.ts +19 -1
  123. package/dist/runtime/components/swatches/FontSwatch.d.vue.ts +18 -1
  124. package/dist/runtime/components/swatches/FontSwatch.vue +16 -12
  125. package/dist/runtime/components/swatches/FontSwatch.vue.d.ts +18 -1
  126. package/dist/runtime/components/swatches/ImageSwatch.d.vue.ts +18 -1
  127. package/dist/runtime/components/swatches/ImageSwatch.vue +16 -12
  128. package/dist/runtime/components/swatches/ImageSwatch.vue.d.ts +18 -1
  129. package/dist/runtime/components/utilities/Placeholder.d.vue.ts +8 -4
  130. package/dist/runtime/components/utilities/Placeholder.vue +9 -4
  131. package/dist/runtime/components/utilities/Placeholder.vue.d.ts +8 -4
  132. package/dist/runtime/composables/index.d.ts +1 -0
  133. package/dist/runtime/composables/index.js +1 -0
  134. package/dist/runtime/composables/index.mjs +1 -0
  135. package/dist/runtime/composables/useRC.d.ts +3 -0
  136. package/dist/runtime/composables/useRC.js +14 -0
  137. package/dist/runtime/composables/useRC.mjs +14 -0
  138. package/dist/runtime/types/app.config.d.ts +6 -0
  139. package/dist/runtime/types/schemas.d.ts +2 -2
  140. package/dist/runtime/types/tv.d.ts +66 -0
  141. package/dist/runtime/types/tv.js +0 -0
  142. package/dist/runtime/types/tv.mjs +0 -0
  143. package/dist/runtime/utils/index.d.ts +1 -0
  144. package/dist/runtime/utils/index.js +1 -0
  145. package/dist/runtime/utils/index.mjs +1 -0
  146. package/dist/runtime/utils/tv.d.ts +1 -0
  147. package/dist/runtime/utils/tv.js +4 -0
  148. package/dist/runtime/utils/tv.mjs +4 -0
  149. package/package.json +1 -1
package/dist/module.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rimelight-components",
3
- "version": "2.1.18",
3
+ "version": "2.1.19",
4
4
  "docs": "https://rimelight.com/tools/rimelight-components",
5
5
  "configKey": "rimelightComponents",
6
6
  "compatibility": {
package/dist/module.mjs CHANGED
@@ -4,7 +4,7 @@ import { readdirSync } from 'node:fs';
4
4
  import { basename } from 'node:path';
5
5
 
6
6
  const name = "rimelight-components";
7
- const version = "2.1.18";
7
+ const version = "2.1.19";
8
8
  const homepage = "https://rimelight.com/tools/rimelight-components";
9
9
 
10
10
  const defaultOptions = {
@@ -1,15 +1,20 @@
1
1
  export interface FooterProps {
2
+ rc?: {
3
+ root?: string;
4
+ container?: string;
5
+ left?: string;
6
+ center?: string;
7
+ right?: string;
8
+ };
2
9
  }
3
10
  export interface FooterEmits {
4
11
  }
5
- declare var __VLS_7: {}, __VLS_9: {}, __VLS_11: {};
6
- type __VLS_Slots = {} & {
7
- left?: (props: typeof __VLS_7) => any;
8
- } & {
9
- center?: (props: typeof __VLS_9) => any;
10
- } & {
11
- right?: (props: typeof __VLS_11) => any;
12
- };
12
+ export interface FooterSlots {
13
+ left: (props: {}) => any;
14
+ center: (props: {}) => any;
15
+ right: (props: {}) => any;
16
+ }
17
+ type __VLS_Slots = FooterSlots;
13
18
  declare const __VLS_base: import("vue").DefineComponent<FooterProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FooterProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
19
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
15
20
  declare const _default: typeof __VLS_export;
@@ -1,7 +1,12 @@
1
1
  <script setup>
2
- import { tv } from "tailwind-variants";
3
- const {} = defineProps({});
2
+ import { tv } from "../../utils/tv";
3
+ import { useRC } from "../../composables/useRC";
4
+ const { rc: rcProp } = defineProps({
5
+ rc: { type: Object, required: false }
6
+ });
4
7
  const emit = defineEmits([]);
8
+ const slots = defineSlots();
9
+ const { rc } = useRC("Footer", rcProp);
5
10
  const footerStyles = tv({
6
11
  slots: {
7
12
  root: "py-8 lg:py-12",
@@ -15,15 +20,15 @@ const { root, container, left, center, right } = footerStyles();
15
20
  </script>
16
21
 
17
22
  <template>
18
- <footer :class="root()">
19
- <UContainer :class="container()">
20
- <div :class="left()">
23
+ <footer :class="root({ class: rc.root })">
24
+ <UContainer :class="container({ class: rc.container })">
25
+ <div :class="left({ class: rc.left })">
21
26
  <slot name="left" />
22
27
  </div>
23
- <div :class="center()">
28
+ <div :class="center({ class: rc.center })">
24
29
  <slot name="center" />
25
30
  </div>
26
- <div :class="right()">
31
+ <div :class="right({ class: rc.right })">
27
32
  <slot name="right" />
28
33
  </div>
29
34
  </UContainer>
@@ -1,15 +1,20 @@
1
1
  export interface FooterProps {
2
+ rc?: {
3
+ root?: string;
4
+ container?: string;
5
+ left?: string;
6
+ center?: string;
7
+ right?: string;
8
+ };
2
9
  }
3
10
  export interface FooterEmits {
4
11
  }
5
- declare var __VLS_7: {}, __VLS_9: {}, __VLS_11: {};
6
- type __VLS_Slots = {} & {
7
- left?: (props: typeof __VLS_7) => any;
8
- } & {
9
- center?: (props: typeof __VLS_9) => any;
10
- } & {
11
- right?: (props: typeof __VLS_11) => any;
12
- };
12
+ export interface FooterSlots {
13
+ left: (props: {}) => any;
14
+ center: (props: {}) => any;
15
+ right: (props: {}) => any;
16
+ }
17
+ type __VLS_Slots = FooterSlots;
13
18
  declare const __VLS_base: import("vue").DefineComponent<FooterProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FooterProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
19
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
15
20
  declare const _default: typeof __VLS_export;
@@ -1,21 +1,26 @@
1
1
  export interface HeaderProps {
2
+ rc?: {
3
+ root?: string;
4
+ container?: string;
5
+ left?: string;
6
+ center?: string;
7
+ right?: string;
8
+ collapsedLeft?: string;
9
+ collapsedCenter?: string;
10
+ collapsedRight?: string;
11
+ };
2
12
  }
3
13
  export interface HeaderEmits {
4
14
  }
5
- declare var __VLS_7: {}, __VLS_9: {}, __VLS_11: {}, __VLS_13: {}, __VLS_15: {}, __VLS_17: {};
6
- type __VLS_Slots = {} & {
7
- left?: (props: typeof __VLS_7) => any;
8
- } & {
9
- center?: (props: typeof __VLS_9) => any;
10
- } & {
11
- right?: (props: typeof __VLS_11) => any;
12
- } & {
13
- 'collapsed-left'?: (props: typeof __VLS_13) => any;
14
- } & {
15
- 'collapsed-center'?: (props: typeof __VLS_15) => any;
16
- } & {
17
- 'collapsed-right'?: (props: typeof __VLS_17) => any;
18
- };
15
+ export interface HeaderSlots {
16
+ left: (props: {}) => any;
17
+ center: (props: {}) => any;
18
+ right: (props: {}) => any;
19
+ "collapsed-left": (props: {}) => any;
20
+ "collapsed-center": (props: {}) => any;
21
+ "collapsed-right": (props: {}) => any;
22
+ }
23
+ type __VLS_Slots = HeaderSlots;
19
24
  declare const __VLS_base: import("vue").DefineComponent<HeaderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<HeaderProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
20
25
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
21
26
  declare const _default: typeof __VLS_export;
@@ -1,7 +1,12 @@
1
1
  <script setup>
2
- import { tv } from "tailwind-variants";
3
- const {} = defineProps({});
2
+ import { tv } from "../../utils/tv";
3
+ import { useRC } from "../../composables/useRC";
4
+ const { rc: rcProp } = defineProps({
5
+ rc: { type: Object, required: false }
6
+ });
4
7
  const emit = defineEmits([]);
8
+ const slots = defineSlots();
9
+ const { rc } = useRC("Header", rcProp);
5
10
  const headerStyles = tv({
6
11
  slots: {
7
12
  root: "h-(--ui-header-height)",
@@ -27,14 +32,14 @@ const {
27
32
  </script>
28
33
 
29
34
  <template>
30
- <header :class="root()">
31
- <UContainer :class="container()">
32
- <div :class="left()"><slot name="left" /></div>
33
- <div :class="center()"><slot name="center" /></div>
34
- <div :class="right()"><slot name="right" /></div>
35
- <div :class="collapsedLeft()"><slot name="collapsed-left" /></div>
36
- <div :class="collapsedCenter()"><slot name="collapsed-center" /></div>
37
- <div :class="collapsedRight()"><slot name="collapsed-right" /></div>
35
+ <header :class="root({ class: rc.root })">
36
+ <UContainer :class="container({ class: rc.container })">
37
+ <div :class="left({ class: rc.left })"><slot name="left" /></div>
38
+ <div :class="center({ class: rc.center })"><slot name="center" /></div>
39
+ <div :class="right({ class: rc.right })"><slot name="right" /></div>
40
+ <div :class="collapsedLeft({ class: rc.collapsedLeft })"><slot name="collapsed-left" /></div>
41
+ <div :class="collapsedCenter({ class: rc.collapsedCenter })"><slot name="collapsed-center" /></div>
42
+ <div :class="collapsedRight({ class: rc.collapsedRight })"><slot name="collapsed-right" /></div>
38
43
  </UContainer>
39
44
  </header>
40
45
  </template>
@@ -1,21 +1,26 @@
1
1
  export interface HeaderProps {
2
+ rc?: {
3
+ root?: string;
4
+ container?: string;
5
+ left?: string;
6
+ center?: string;
7
+ right?: string;
8
+ collapsedLeft?: string;
9
+ collapsedCenter?: string;
10
+ collapsedRight?: string;
11
+ };
2
12
  }
3
13
  export interface HeaderEmits {
4
14
  }
5
- declare var __VLS_7: {}, __VLS_9: {}, __VLS_11: {}, __VLS_13: {}, __VLS_15: {}, __VLS_17: {};
6
- type __VLS_Slots = {} & {
7
- left?: (props: typeof __VLS_7) => any;
8
- } & {
9
- center?: (props: typeof __VLS_9) => any;
10
- } & {
11
- right?: (props: typeof __VLS_11) => any;
12
- } & {
13
- 'collapsed-left'?: (props: typeof __VLS_13) => any;
14
- } & {
15
- 'collapsed-center'?: (props: typeof __VLS_15) => any;
16
- } & {
17
- 'collapsed-right'?: (props: typeof __VLS_17) => any;
18
- };
15
+ export interface HeaderSlots {
16
+ left: (props: {}) => any;
17
+ center: (props: {}) => any;
18
+ right: (props: {}) => any;
19
+ "collapsed-left": (props: {}) => any;
20
+ "collapsed-center": (props: {}) => any;
21
+ "collapsed-right": (props: {}) => any;
22
+ }
23
+ type __VLS_Slots = HeaderSlots;
19
24
  declare const __VLS_base: import("vue").DefineComponent<HeaderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<HeaderProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
20
25
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
21
26
  declare const _default: typeof __VLS_export;
@@ -2,13 +2,17 @@ export interface HeaderLayerProps {
2
2
  id: string;
3
3
  order?: number;
4
4
  hideOnScroll?: boolean;
5
+ rc?: {
6
+ root?: string;
7
+ content?: string;
8
+ };
5
9
  }
6
10
  export interface HeaderLayerEmits {
7
11
  }
8
- declare var __VLS_1: {};
9
- type __VLS_Slots = {} & {
10
- default?: (props: typeof __VLS_1) => any;
11
- };
12
+ export interface HeaderLayerSlots {
13
+ default: (props: {}) => any;
14
+ }
15
+ type __VLS_Slots = HeaderLayerSlots;
12
16
  declare const __VLS_base: import("vue").DefineComponent<HeaderLayerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<HeaderLayerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
17
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
14
18
  declare const _default: typeof __VLS_export;
@@ -1,14 +1,17 @@
1
1
  <script setup>
2
2
  import { ref, onMounted, onUnmounted, watch, computed, nextTick } from "vue";
3
- import { useHeaderStack } from "../../composables";
3
+ import { useHeaderStack, useRC } from "../../composables";
4
4
  import { useWindowScroll } from "@vueuse/core";
5
- import { tv } from "tailwind-variants";
6
- const props = defineProps({
5
+ import { tv } from "../../utils/tv";
6
+ const { id, order, hideOnScroll = false, rc: rcProp } = defineProps({
7
7
  id: { type: String, required: true },
8
8
  order: { type: Number, required: false },
9
- hideOnScroll: { type: Boolean, required: false }
9
+ hideOnScroll: { type: Boolean, required: false },
10
+ rc: { type: Object, required: false }
10
11
  });
11
12
  const emit = defineEmits([]);
13
+ const slots = defineSlots();
14
+ const { rc } = useRC("HeaderLayer", rcProp);
12
15
  const headerLayerStyles = tv({
13
16
  slots: {
14
17
  root: "fixed left-0 right-0 z-50 overflow-hidden transition-[top,height,opacity] duration-200 ease-in-out",
@@ -22,9 +25,9 @@ const contentRef = ref(null);
22
25
  const isVisible = ref(true);
23
26
  const lastScrollY = ref(0);
24
27
  const naturalHeight = ref(0);
25
- const topOffset = computed(() => getOffsetFor(props.id));
28
+ const topOffset = computed(() => getOffsetFor(id));
26
29
  watch(scrollY, (current) => {
27
- if (!props.hideOnScroll) return;
30
+ if (!hideOnScroll) return;
28
31
  const diff = current - lastScrollY.value;
29
32
  if (Math.abs(diff) < 10) return;
30
33
  if (current <= 50) {
@@ -34,7 +37,7 @@ watch(scrollY, (current) => {
34
37
  });
35
38
  const updateStack = () => {
36
39
  const heightToRegister = isVisible.value ? naturalHeight.value : 0;
37
- registerHeader(props.id, heightToRegister, props.order);
40
+ registerHeader(id, heightToRegister, order);
38
41
  };
39
42
  watch(isVisible, updateStack);
40
43
  let observer = null;
@@ -58,14 +61,14 @@ onMounted(() => {
58
61
  });
59
62
  });
60
63
  onUnmounted(() => {
61
- unregisterHeader(props.id);
64
+ unregisterHeader(id);
62
65
  observer?.disconnect();
63
66
  });
64
67
  </script>
65
68
 
66
69
  <template>
67
70
  <div
68
- :class="root()"
71
+ :class="root({ class: rc.root })"
69
72
  :style="{
70
73
  top: `${topOffset}px`,
71
74
  height: isVisible ? `${naturalHeight}px` : '0px',
@@ -73,7 +76,7 @@ onUnmounted(() => {
73
76
  pointerEvents: isVisible ? 'auto' : 'none'
74
77
  }"
75
78
  >
76
- <div ref="contentRef" :class="content()">
79
+ <div ref="contentRef" :class="content({ class: rc.content })">
77
80
  <slot />
78
81
  </div>
79
82
  </div>
@@ -2,13 +2,17 @@ export interface HeaderLayerProps {
2
2
  id: string;
3
3
  order?: number;
4
4
  hideOnScroll?: boolean;
5
+ rc?: {
6
+ root?: string;
7
+ content?: string;
8
+ };
5
9
  }
6
10
  export interface HeaderLayerEmits {
7
11
  }
8
- declare var __VLS_1: {};
9
- type __VLS_Slots = {} & {
10
- default?: (props: typeof __VLS_1) => any;
11
- };
12
+ export interface HeaderLayerSlots {
13
+ default: (props: {}) => any;
14
+ }
15
+ type __VLS_Slots = HeaderLayerSlots;
12
16
  declare const __VLS_base: import("vue").DefineComponent<HeaderLayerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<HeaderLayerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
17
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
14
18
  declare const _default: typeof __VLS_export;
@@ -5,9 +5,21 @@ export interface ImageProps {
5
5
  width?: string | number;
6
6
  loading?: "lazy" | "eager";
7
7
  fit?: "cover" | "contain" | "fill" | "inside" | "outside";
8
+ rc?: {
9
+ base?: string;
10
+ };
8
11
  }
9
12
  export interface ImageEmits {
10
13
  }
11
- declare const __VLS_export: import("vue").DefineComponent<ImageProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ImageProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
+ export interface ImageSlots {
15
+ }
16
+ type __VLS_Slots = ImageSlots;
17
+ declare const __VLS_base: import("vue").DefineComponent<ImageProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ImageProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
12
19
  declare const _default: typeof __VLS_export;
13
20
  export default _default;
21
+ type __VLS_WithSlots<T, S> = T & {
22
+ new (): {
23
+ $slots: S;
24
+ };
25
+ };
@@ -1,23 +1,27 @@
1
1
  <script setup>
2
2
  import { ref, reactive, onMounted, useTemplateRef, watch, nextTick } from "vue";
3
- import { tv } from "tailwind-variants";
4
- import { useImage } from "#imports";
3
+ import { tv } from "../../utils/tv";
4
+ import { useRC } from "../../composables/useRC";
5
5
  const {
6
6
  src,
7
7
  alt = "Image",
8
8
  height,
9
9
  width,
10
10
  loading = "lazy",
11
- fit = "cover"
11
+ fit = "cover",
12
+ rc: rcProp
12
13
  } = defineProps({
13
14
  src: { type: String, required: true },
14
15
  alt: { type: String, required: false },
15
16
  height: { type: [String, Number], required: false },
16
17
  width: { type: [String, Number], required: false },
17
18
  loading: { type: String, required: false },
18
- fit: { type: String, required: false }
19
+ fit: { type: String, required: false },
20
+ rc: { type: Object, required: false }
19
21
  });
20
22
  const emit = defineEmits([]);
23
+ const slots = defineSlots();
24
+ const { rc } = useRC("Image", rcProp);
21
25
  const imageStyles = tv({
22
26
  slots: {
23
27
  base: "cursor-pointer transition-transform duration-300"
@@ -36,7 +40,6 @@ const imageStyles = tv({
36
40
  const { base } = imageStyles();
37
41
  const img = useImage();
38
42
  const isOpen = ref(false);
39
- const imgRef = ref(null);
40
43
  const imgElement = useTemplateRef("imgRef");
41
44
  const metadata = reactive({
42
45
  width: 0,
@@ -138,7 +141,7 @@ watch(() => imgElement.value, (newVal) => {
138
141
  :height="height"
139
142
  :width="width"
140
143
  :loading="loading"
141
- :class="base({ isExpanded: false })"
144
+ :class="base({ isExpanded: false, class: rc.base })"
142
145
  @click="isOpen = true"
143
146
  @load="handleImageLoad"
144
147
  />
@@ -151,7 +154,7 @@ watch(() => imgElement.value, (newVal) => {
151
154
  <NuxtImg
152
155
  :src="src"
153
156
  :alt="alt"
154
- :class="base({ isExpanded: true })"
157
+ :class="base({ isExpanded: true, class: rc.base })"
155
158
  />
156
159
  </div>
157
160
 
@@ -5,9 +5,21 @@ export interface ImageProps {
5
5
  width?: string | number;
6
6
  loading?: "lazy" | "eager";
7
7
  fit?: "cover" | "contain" | "fill" | "inside" | "outside";
8
+ rc?: {
9
+ base?: string;
10
+ };
8
11
  }
9
12
  export interface ImageEmits {
10
13
  }
11
- declare const __VLS_export: import("vue").DefineComponent<ImageProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ImageProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
+ export interface ImageSlots {
15
+ }
16
+ type __VLS_Slots = ImageSlots;
17
+ declare const __VLS_base: import("vue").DefineComponent<ImageProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ImageProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
12
19
  declare const _default: typeof __VLS_export;
13
20
  export default _default;
21
+ type __VLS_WithSlots<T, S> = T & {
22
+ new (): {
23
+ $slots: S;
24
+ };
25
+ };
@@ -1,8 +1,20 @@
1
1
  export interface LogoProps {
2
2
  variant?: "mark" | "type";
3
+ rc?: {
4
+ root?: string;
5
+ };
3
6
  }
4
7
  export interface LogoEmits {
5
8
  }
6
- declare const __VLS_export: import("vue").DefineComponent<LogoProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LogoProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
+ export interface LogoSlots {
10
+ }
11
+ type __VLS_Slots = LogoSlots;
12
+ declare const __VLS_base: import("vue").DefineComponent<LogoProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LogoProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
7
14
  declare const _default: typeof __VLS_export;
8
15
  export default _default;
16
+ type __VLS_WithSlots<T, S> = T & {
17
+ new (): {
18
+ $slots: S;
19
+ };
20
+ };
@@ -1,11 +1,15 @@
1
1
  <script setup>
2
2
  import { useAppConfig } from "nuxt/app";
3
3
  import { computed } from "#imports";
4
- import { tv } from "tailwind-variants";
5
- const { variant = "mark" } = defineProps({
6
- variant: { type: String, required: false }
4
+ import { tv } from "../../utils/tv";
5
+ import { useRC } from "../../composables/useRC";
6
+ const { variant = "mark", rc: rcProp } = defineProps({
7
+ variant: { type: String, required: false },
8
+ rc: { type: Object, required: false }
7
9
  });
8
10
  const emit = defineEmits([]);
11
+ const slots = defineSlots();
12
+ const { rc } = useRC("Logo", rcProp);
9
13
  const logoStyles = tv({
10
14
  slots: {
11
15
  root: ""
@@ -25,7 +29,7 @@ const logoSrc = computed(() => {
25
29
  </script>
26
30
 
27
31
  <template>
28
- <NuxtLink to="/">
32
+ <NuxtLink to="/" :class="root({ class: rc.root })">
29
33
  <UIcon :name="logoSrc" v-bind="$attrs" />
30
34
  </NuxtLink>
31
35
  </template>
@@ -1,8 +1,20 @@
1
1
  export interface LogoProps {
2
2
  variant?: "mark" | "type";
3
+ rc?: {
4
+ root?: string;
5
+ };
3
6
  }
4
7
  export interface LogoEmits {
5
8
  }
6
- declare const __VLS_export: import("vue").DefineComponent<LogoProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LogoProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
+ export interface LogoSlots {
10
+ }
11
+ type __VLS_Slots = LogoSlots;
12
+ declare const __VLS_base: import("vue").DefineComponent<LogoProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LogoProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
7
14
  declare const _default: typeof __VLS_export;
8
15
  export default _default;
16
+ type __VLS_WithSlots<T, S> = T & {
17
+ new (): {
18
+ $slots: S;
19
+ };
20
+ };
@@ -3,9 +3,21 @@ export interface NewsletterSignupProps {
3
3
  description?: string;
4
4
  placeholder?: string;
5
5
  buttonLabel?: string;
6
+ rc?: {
7
+ group?: string;
8
+ };
6
9
  }
7
10
  export interface NewsletterSignupEmits {
8
11
  }
9
- declare const __VLS_export: import("vue").DefineComponent<NewsletterSignupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NewsletterSignupProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
+ export interface NewsletterSignupSlots {
13
+ }
14
+ type __VLS_Slots = NewsletterSignupSlots;
15
+ declare const __VLS_base: import("vue").DefineComponent<NewsletterSignupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NewsletterSignupProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
10
17
  declare const _default: typeof __VLS_export;
11
18
  export default _default;
19
+ type __VLS_WithSlots<T, S> = T & {
20
+ new (): {
21
+ $slots: S;
22
+ };
23
+ };
@@ -1,17 +1,22 @@
1
1
  <script setup>
2
- import { tv } from "tailwind-variants";
2
+ import { tv } from "../../utils/tv";
3
+ import { useRC } from "../../composables/useRC";
3
4
  const {
4
5
  fieldLabel = "Subscribe to our Newsletter",
5
6
  description = "Stay updated on new posts and updates. Unsubscribe at any time.",
6
7
  placeholder = "email@domain.com",
7
- buttonLabel = "Subscribe"
8
+ buttonLabel = "Subscribe",
9
+ rc: rcProp
8
10
  } = defineProps({
9
11
  fieldLabel: { type: String, required: false },
10
12
  description: { type: String, required: false },
11
13
  placeholder: { type: String, required: false },
12
- buttonLabel: { type: String, required: false }
14
+ buttonLabel: { type: String, required: false },
15
+ rc: { type: Object, required: false }
13
16
  });
14
17
  const emit = defineEmits([]);
18
+ const slots = defineSlots();
19
+ const { rc } = useRC("NewsletterSignup", rcProp);
15
20
  const newsletterSignupStyles = tv({
16
21
  slots: {
17
22
  group: "pt-2"
@@ -23,7 +28,7 @@ const { group } = newsletterSignupStyles();
23
28
  <template>
24
29
  <UForm>
25
30
  <UFormField name="email" :label="fieldLabel" :description="description">
26
- <UFieldGroup :class="group()">
31
+ <UFieldGroup :class="group({ class: rc.group })">
27
32
  <UInput type="email" :placeholder="placeholder" />
28
33
  <UButton type="submit" :label="buttonLabel" />
29
34
  </UFieldGroup>
@@ -3,9 +3,21 @@ export interface NewsletterSignupProps {
3
3
  description?: string;
4
4
  placeholder?: string;
5
5
  buttonLabel?: string;
6
+ rc?: {
7
+ group?: string;
8
+ };
6
9
  }
7
10
  export interface NewsletterSignupEmits {
8
11
  }
9
- declare const __VLS_export: import("vue").DefineComponent<NewsletterSignupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NewsletterSignupProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
+ export interface NewsletterSignupSlots {
13
+ }
14
+ type __VLS_Slots = NewsletterSignupSlots;
15
+ declare const __VLS_base: import("vue").DefineComponent<NewsletterSignupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NewsletterSignupProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
10
17
  declare const _default: typeof __VLS_export;
11
18
  export default _default;
19
+ type __VLS_WithSlots<T, S> = T & {
20
+ new (): {
21
+ $slots: S;
22
+ };
23
+ };
@@ -1,12 +1,25 @@
1
1
  export interface ScrollToTopProps {
2
2
  circleStrokeWidth?: number;
3
3
  duration?: number;
4
+ rc?: {
5
+ button?: string;
6
+ progressBase?: string;
7
+ svg?: string;
8
+ iconContainer?: string;
9
+ icon?: string;
10
+ };
4
11
  }
5
12
  export interface ScrollToTopEmits {
6
13
  }
7
- declare const __VLS_export: import("vue").DefineComponent<ScrollToTopProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ScrollToTopProps> & Readonly<{}>, {
8
- circleStrokeWidth: number;
9
- duration: number;
10
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
+ export interface ScrollToTopSlots {
15
+ }
16
+ type __VLS_Slots = ScrollToTopSlots;
17
+ declare const __VLS_base: import("vue").DefineComponent<ScrollToTopProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ScrollToTopProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
11
19
  declare const _default: typeof __VLS_export;
12
20
  export default _default;
21
+ type __VLS_WithSlots<T, S> = T & {
22
+ new (): {
23
+ $slots: S;
24
+ };
25
+ };