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.
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/components/app/Footer.d.vue.ts +13 -8
- package/dist/runtime/components/app/Footer.vue +12 -7
- package/dist/runtime/components/app/Footer.vue.d.ts +13 -8
- package/dist/runtime/components/app/Header.d.vue.ts +19 -14
- package/dist/runtime/components/app/Header.vue +15 -10
- package/dist/runtime/components/app/Header.vue.d.ts +19 -14
- package/dist/runtime/components/app/HeaderLayer.d.vue.ts +8 -4
- package/dist/runtime/components/app/HeaderLayer.vue +13 -10
- package/dist/runtime/components/app/HeaderLayer.vue.d.ts +8 -4
- package/dist/runtime/components/app/Image.d.vue.ts +13 -1
- package/dist/runtime/components/app/Image.vue +10 -7
- package/dist/runtime/components/app/Image.vue.d.ts +13 -1
- package/dist/runtime/components/app/Logo.d.vue.ts +13 -1
- package/dist/runtime/components/app/Logo.vue +8 -4
- package/dist/runtime/components/app/Logo.vue.d.ts +13 -1
- package/dist/runtime/components/app/NewsletterSignup.d.vue.ts +13 -1
- package/dist/runtime/components/app/NewsletterSignup.vue +9 -4
- package/dist/runtime/components/app/NewsletterSignup.vue.d.ts +13 -1
- package/dist/runtime/components/app/ScrollToTop.d.vue.ts +17 -4
- package/dist/runtime/components/app/ScrollToTop.vue +20 -12
- package/dist/runtime/components/app/ScrollToTop.vue.d.ts +17 -4
- package/dist/runtime/components/blocks/Block.d.vue.ts +8 -4
- package/dist/runtime/components/blocks/Block.vue +9 -5
- package/dist/runtime/components/blocks/Block.vue.d.ts +8 -4
- package/dist/runtime/components/blocks/BlockEditRenderer.d.vue.ts +13 -1
- package/dist/runtime/components/blocks/BlockEditRenderer.vue +8 -4
- package/dist/runtime/components/blocks/BlockEditRenderer.vue.d.ts +13 -1
- package/dist/runtime/components/blocks/BlockEditor.d.vue.ts +13 -4
- package/dist/runtime/components/blocks/BlockEditor.vue +9 -4
- package/dist/runtime/components/blocks/BlockEditor.vue.d.ts +13 -4
- package/dist/runtime/components/blocks/BlockViewRenderer.d.vue.ts +13 -1
- package/dist/runtime/components/blocks/BlockViewRenderer.vue +8 -4
- package/dist/runtime/components/blocks/BlockViewRenderer.vue.d.ts +13 -1
- package/dist/runtime/components/blocks/TextRenderer.d.vue.ts +13 -1
- package/dist/runtime/components/blocks/TextRenderer.vue +12 -6
- package/dist/runtime/components/blocks/TextRenderer.vue.d.ts +13 -1
- package/dist/runtime/components/blocks/editor/CalloutBlockEditor.d.vue.ts +13 -1
- package/dist/runtime/components/blocks/editor/CalloutBlockEditor.vue +11 -5
- package/dist/runtime/components/blocks/editor/CalloutBlockEditor.vue.d.ts +13 -1
- package/dist/runtime/components/blocks/editor/CardBlockEditor.d.vue.ts +13 -1
- package/dist/runtime/components/blocks/editor/CardBlockEditor.vue +7 -3
- package/dist/runtime/components/blocks/editor/CardBlockEditor.vue.d.ts +13 -1
- package/dist/runtime/components/blocks/editor/ImageBlockEditor.d.vue.ts +21 -5
- package/dist/runtime/components/blocks/editor/ImageBlockEditor.vue +11 -7
- package/dist/runtime/components/blocks/editor/ImageBlockEditor.vue.d.ts +21 -5
- package/dist/runtime/components/blocks/editor/ParagraphBlockEditor.d.vue.ts +13 -1
- package/dist/runtime/components/blocks/editor/ParagraphBlockEditor.vue +12 -8
- package/dist/runtime/components/blocks/editor/ParagraphBlockEditor.vue.d.ts +13 -1
- package/dist/runtime/components/blocks/editor/SectionBlockEditor.d.vue.ts +15 -1
- package/dist/runtime/components/blocks/editor/SectionBlockEditor.vue +9 -5
- package/dist/runtime/components/blocks/editor/SectionBlockEditor.vue.d.ts +15 -1
- package/dist/runtime/components/blocks/editor/TestBlockEditor.d.vue.ts +13 -1
- package/dist/runtime/components/blocks/editor/TestBlockEditor.vue +7 -3
- package/dist/runtime/components/blocks/editor/TestBlockEditor.vue.d.ts +13 -1
- package/dist/runtime/components/blocks/renderer/CalloutBlockRenderer.d.vue.ts +13 -1
- package/dist/runtime/components/blocks/renderer/CalloutBlockRenderer.vue +11 -5
- package/dist/runtime/components/blocks/renderer/CalloutBlockRenderer.vue.d.ts +13 -1
- package/dist/runtime/components/blocks/renderer/CardBlockRenderer.d.vue.ts +13 -1
- package/dist/runtime/components/blocks/renderer/CardBlockRenderer.vue +7 -3
- package/dist/runtime/components/blocks/renderer/CardBlockRenderer.vue.d.ts +13 -1
- package/dist/runtime/components/blocks/renderer/ImageBlockRenderer.d.vue.ts +15 -1
- package/dist/runtime/components/blocks/renderer/ImageBlockRenderer.vue +9 -5
- package/dist/runtime/components/blocks/renderer/ImageBlockRenderer.vue.d.ts +15 -1
- package/dist/runtime/components/blocks/renderer/ParagraphBlockRenderer.d.vue.ts +13 -1
- package/dist/runtime/components/blocks/renderer/ParagraphBlockRenderer.vue +9 -3
- package/dist/runtime/components/blocks/renderer/ParagraphBlockRenderer.vue.d.ts +13 -1
- package/dist/runtime/components/blocks/renderer/SectionBlockRenderer.d.vue.ts +13 -1
- package/dist/runtime/components/blocks/renderer/SectionBlockRenderer.vue +11 -5
- package/dist/runtime/components/blocks/renderer/SectionBlockRenderer.vue.d.ts +13 -1
- package/dist/runtime/components/blocks/renderer/TestBlockRenderer.d.vue.ts +13 -1
- package/dist/runtime/components/blocks/renderer/TestBlockRenderer.vue +9 -3
- package/dist/runtime/components/blocks/renderer/TestBlockRenderer.vue.d.ts +13 -1
- package/dist/runtime/components/cards/TeamCard.d.vue.ts +11 -4
- package/dist/runtime/components/cards/TeamCard.vue +12 -8
- package/dist/runtime/components/cards/TeamCard.vue.d.ts +11 -4
- package/dist/runtime/components/content/Callout.d.vue.ts +8 -4
- package/dist/runtime/components/content/Callout.vue +11 -7
- package/dist/runtime/components/content/Callout.vue.d.ts +8 -4
- package/dist/runtime/components/content/Section.d.vue.ts +14 -10
- package/dist/runtime/components/content/Section.vue +14 -9
- package/dist/runtime/components/content/Section.vue.d.ts +14 -10
- package/dist/runtime/components/content/Test.d.vue.ts +7 -4
- package/dist/runtime/components/content/Test.vue +8 -4
- package/dist/runtime/components/content/Test.vue.d.ts +7 -4
- package/dist/runtime/components/nodes/LinkNode.d.vue.ts +13 -1
- package/dist/runtime/components/nodes/LinkNode.vue +8 -4
- package/dist/runtime/components/nodes/LinkNode.vue.d.ts +13 -1
- package/dist/runtime/components/nodes/TextNode.d.vue.ts +13 -1
- package/dist/runtime/components/nodes/TextNode.vue +8 -4
- package/dist/runtime/components/nodes/TextNode.vue.d.ts +13 -1
- package/dist/runtime/components/page/PageEditor.d.vue.ts +32 -5
- package/dist/runtime/components/page/PageEditor.vue +36 -24
- package/dist/runtime/components/page/PageEditor.vue.d.ts +32 -5
- package/dist/runtime/components/page/PageMention.d.vue.ts +16 -1
- package/dist/runtime/components/page/PageMention.vue +11 -7
- package/dist/runtime/components/page/PageMention.vue.d.ts +16 -1
- package/dist/runtime/components/page/PagePropertiesEditor.d.vue.ts +23 -1
- package/dist/runtime/components/page/PagePropertiesEditor.vue +83 -79
- package/dist/runtime/components/page/PagePropertiesEditor.vue.d.ts +23 -1
- package/dist/runtime/components/page/PagePropertiesRenderer.d.vue.ts +31 -1
- package/dist/runtime/components/page/PagePropertiesRenderer.vue +36 -32
- package/dist/runtime/components/page/PagePropertiesRenderer.vue.d.ts +31 -1
- package/dist/runtime/components/page/PageRenderer.d.vue.ts +23 -1
- package/dist/runtime/components/page/PageRenderer.vue +21 -17
- package/dist/runtime/components/page/PageRenderer.vue.d.ts +23 -1
- package/dist/runtime/components/page/PageSurround.d.vue.ts +21 -1
- package/dist/runtime/components/page/PageSurround.vue +25 -20
- package/dist/runtime/components/page/PageSurround.vue.d.ts +21 -1
- package/dist/runtime/components/page/PageTOC.d.vue.ts +10 -4
- package/dist/runtime/components/page/PageTOC.vue +10 -6
- package/dist/runtime/components/page/PageTOC.vue.d.ts +10 -4
- package/dist/runtime/components/page/modals/CreatePageModal.d.vue.ts +12 -4
- package/dist/runtime/components/page/modals/CreatePageModal.vue +13 -9
- package/dist/runtime/components/page/modals/CreatePageModal.vue.d.ts +12 -4
- package/dist/runtime/components/page/modals/DeletePageModal.d.vue.ts +14 -7
- package/dist/runtime/components/page/modals/DeletePageModal.vue +13 -9
- package/dist/runtime/components/page/modals/DeletePageModal.vue.d.ts +14 -7
- package/dist/runtime/components/swatches/ColorSwatch.d.vue.ts +19 -1
- package/dist/runtime/components/swatches/ColorSwatch.vue +29 -17
- package/dist/runtime/components/swatches/ColorSwatch.vue.d.ts +19 -1
- package/dist/runtime/components/swatches/FontSwatch.d.vue.ts +18 -1
- package/dist/runtime/components/swatches/FontSwatch.vue +16 -12
- package/dist/runtime/components/swatches/FontSwatch.vue.d.ts +18 -1
- package/dist/runtime/components/swatches/ImageSwatch.d.vue.ts +18 -1
- package/dist/runtime/components/swatches/ImageSwatch.vue +16 -12
- package/dist/runtime/components/swatches/ImageSwatch.vue.d.ts +18 -1
- package/dist/runtime/components/utilities/Placeholder.d.vue.ts +8 -4
- package/dist/runtime/components/utilities/Placeholder.vue +9 -4
- package/dist/runtime/components/utilities/Placeholder.vue.d.ts +8 -4
- package/dist/runtime/composables/index.d.ts +1 -0
- package/dist/runtime/composables/index.js +1 -0
- package/dist/runtime/composables/index.mjs +1 -0
- package/dist/runtime/composables/useRC.d.ts +3 -0
- package/dist/runtime/composables/useRC.js +14 -0
- package/dist/runtime/composables/useRC.mjs +14 -0
- package/dist/runtime/types/app.config.d.ts +6 -0
- package/dist/runtime/types/schemas.d.ts +2 -2
- package/dist/runtime/types/tv.d.ts +66 -0
- package/dist/runtime/types/tv.js +0 -0
- package/dist/runtime/types/tv.mjs +0 -0
- package/dist/runtime/utils/index.d.ts +1 -0
- package/dist/runtime/utils/index.js +1 -0
- package/dist/runtime/utils/index.mjs +1 -0
- package/dist/runtime/utils/tv.d.ts +1 -0
- package/dist/runtime/utils/tv.js +4 -0
- package/dist/runtime/utils/tv.mjs +4 -0
- 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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const tv: import("tailwind-variants").TV;
|