rimelight-components 2.1.18 → 2.1.20

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 (146) 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 +17 -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/internal/tv.d.ts +1 -0
  139. package/dist/runtime/internal/tv.js +4 -0
  140. package/dist/runtime/internal/tv.mjs +4 -0
  141. package/dist/runtime/types/app.config.d.ts +6 -0
  142. package/dist/runtime/types/schemas.d.ts +2 -2
  143. package/dist/runtime/types/tv.d.ts +66 -0
  144. package/dist/runtime/types/tv.js +0 -0
  145. package/dist/runtime/types/tv.mjs +0 -0
  146. package/package.json +1 -1
@@ -0,0 +1,66 @@
1
+ import type { ClassValue, TVVariants, TVCompoundVariants, TVDefaultVariants } from 'tailwind-variants';
2
+ /**
3
+ * Defines the AppConfig object based on the tailwind-variants configuration.
4
+ */
5
+ export type TVConfig<T extends Record<string, any>> = {
6
+ [P in keyof T]?: {
7
+ [K in keyof T[P] as K extends 'base' | 'slots' | 'variants' | 'defaultVariants' ? K : never]?: K extends 'base' ? ClassValue : K extends 'slots' ? {
8
+ [S in keyof T[P]['slots']]?: ClassValue;
9
+ } : K extends 'variants' ? TVVariants<T[P]['slots'], ClassValue, WidenVariantsValues<T[P]['variants']>> : K extends 'defaultVariants' ? TVDefaultVariants<WidenVariantsValues<T[P]['variants']>, T[P]['slots'], object, undefined> : never;
10
+ };
11
+ } & {
12
+ [P in keyof T]?: {
13
+ compoundVariants?: TVCompoundVariants<WidenVariantsValues<T[P]['variants']>, T[P]['slots'], ClassValue, object, undefined>;
14
+ };
15
+ };
16
+ type WidenVariantsValues<V extends Record<string, any> | undefined> = V extends Record<string, any> ? V & {
17
+ [K in keyof V]: V[K] extends Record<string, any> ? V[K] & Record<string & {}, any> : V[K];
18
+ } : V;
19
+ /**
20
+ * Utility type to flatten intersection types for better IDE hover information.
21
+ * @template T The type to flatten.
22
+ */
23
+ type Id<T> = {} & {
24
+ [P in keyof T]: T[P];
25
+ };
26
+ type ComponentVariants<T extends {
27
+ variants?: Record<string, Record<string, any>>;
28
+ }> = {
29
+ [K in keyof T['variants']]: keyof T['variants'][K];
30
+ };
31
+ type ComponentSlots<T extends {
32
+ slots?: Record<string, any>;
33
+ }> = Id<{
34
+ [K in keyof T['slots']]?: ClassValue;
35
+ }>;
36
+ type ComponentUI<T extends {
37
+ slots?: Record<string, any>;
38
+ }> = Id<{
39
+ [K in keyof Required<T['slots']>]: (props?: Record<string, any>) => string;
40
+ }>;
41
+ type GetComponentAppConfig<A, U extends string, K extends string> = A extends Record<U, Record<K, any>> ? A[U][K] : {};
42
+ type ComponentAppConfig<T, A extends Record<string, any>, K extends string, U extends string = 'ui' | 'ui.prose'> = A & (U extends 'ui.prose' ? {
43
+ ui?: {
44
+ prose?: {
45
+ [k in K]?: Partial<T>;
46
+ };
47
+ };
48
+ } : {
49
+ [key in Exclude<U, 'ui.prose'>]?: {
50
+ [k in K]?: Partial<T>;
51
+ };
52
+ });
53
+ /**
54
+ * Defines the configuration shape expected for a component.
55
+ * @template T The component's theme imported from `#build/rimelight-components/*`.
56
+ * @template A The base AppConfig type from `@nuxt/schema`.
57
+ * @template K The key identifying the component (e.g., 'badge').
58
+ * @template U The top-level key in AppConfig ('rimelightComponents').
59
+ */
60
+ export type ComponentConfig<T extends Record<string, any>, A extends Record<string, any>, K extends string, U extends 'rimelightComponents'> = {
61
+ AppConfig: ComponentAppConfig<T, A, K, U>;
62
+ variants: ComponentVariants<T & GetComponentAppConfig<A, U, K>>;
63
+ slots: ComponentSlots<T>;
64
+ ui: ComponentUI<T>;
65
+ };
66
+ export {};
File without changes
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rimelight-components",
3
- "version": "2.1.18",
3
+ "version": "2.1.20",
4
4
  "description": "A component library by Rimelight Entertainment.",
5
5
  "keywords": [
6
6
  "nuxt",