@codemonster-ru/vueforge-core 1.5.0 → 1.7.0

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 (44) hide show
  1. package/README.md +72 -1
  2. package/dist/components/heading/VfHeading.vue.d.ts +26 -0
  3. package/dist/components/heading/VfHeading.vue.d.ts.map +1 -0
  4. package/dist/components/heading/index.d.ts +2 -0
  5. package/dist/components/heading/index.d.ts.map +1 -0
  6. package/dist/components/index.d.ts +4 -0
  7. package/dist/components/index.d.ts.map +1 -1
  8. package/dist/components/prose/VfProse.vue.d.ts +23 -0
  9. package/dist/components/prose/VfProse.vue.d.ts.map +1 -0
  10. package/dist/components/prose/index.d.ts +2 -0
  11. package/dist/components/prose/index.d.ts.map +1 -0
  12. package/dist/components/switch/VfSwitch.vue.d.ts.map +1 -1
  13. package/dist/components/table-of-contents/VfTableOfContents.vue.d.ts +29 -0
  14. package/dist/components/table-of-contents/VfTableOfContents.vue.d.ts.map +1 -0
  15. package/dist/components/table-of-contents/index.d.ts +2 -0
  16. package/dist/components/table-of-contents/index.d.ts.map +1 -0
  17. package/dist/components/text/VfText.vue.d.ts +28 -0
  18. package/dist/components/text/VfText.vue.d.ts.map +1 -0
  19. package/dist/components/text/index.d.ts +2 -0
  20. package/dist/components/text/index.d.ts.map +1 -0
  21. package/dist/components/theme-switch/VfThemeSwitch.vue.d.ts.map +1 -1
  22. package/dist/composables/index.d.ts +1 -0
  23. package/dist/composables/index.d.ts.map +1 -1
  24. package/dist/composables/useTableOfContents.d.ts +13 -0
  25. package/dist/composables/useTableOfContents.d.ts.map +1 -0
  26. package/dist/composables/useTheme.d.ts +1 -1
  27. package/dist/index.d.ts +3 -3
  28. package/dist/index.d.ts.map +1 -1
  29. package/dist/styles.css +1 -1
  30. package/dist/theme/default-preset-source.d.ts +79 -0
  31. package/dist/theme/default-preset-source.d.ts.map +1 -1
  32. package/dist/theme/public.d.ts +1 -1
  33. package/dist/theme/public.d.ts.map +1 -1
  34. package/dist/theme/utils.d.ts +7 -2
  35. package/dist/theme/utils.d.ts.map +1 -1
  36. package/dist/theme-api.js +3 -221
  37. package/dist/tokens.css +103 -24
  38. package/dist/types/components.d.ts +9 -0
  39. package/dist/types/components.d.ts.map +1 -1
  40. package/dist/types/theme.d.ts +91 -2
  41. package/dist/types/theme.d.ts.map +1 -1
  42. package/dist/utils-T2JkaeUr.js +315 -0
  43. package/dist/vueforge-core.js +1149 -974
  44. package/package.json +1 -1
package/README.md CHANGED
@@ -8,7 +8,7 @@ Stable foundation layer for the VueForge design system.
8
8
 
9
9
  ## Current scope
10
10
 
11
- Version `1.3.x` focuses on:
11
+ Version `1.7.x` focuses on:
12
12
 
13
13
  - Vue 3 library build with Vite
14
14
  - TypeScript declarations
@@ -16,6 +16,7 @@ Version `1.3.x` focuses on:
16
16
  - Theme provider and `useTheme`
17
17
  - CSS design tokens and theme variables
18
18
  - Built-in default theme preset powered by the shared `@codemonster-ru/vueforge-theme` engine
19
+ - Typography primitives and content-navigation patterns for documentation-style pages
19
20
 
20
21
  ## Installation
21
22
 
@@ -120,6 +121,75 @@ VueForge now has two theme layers:
120
121
 
121
122
  This means `vueforge-core` is still the easiest way to consume the default VueForge design language, while higher-level packages can share the same engine without depending on `core` runtime helpers.
122
123
 
124
+ ## Documentation Pattern
125
+
126
+ For long-form docs pages, the recommended pattern is:
127
+
128
+ - `VfProse` for content typography
129
+ - `VfTableOfContents` for section navigation
130
+ - `useTableOfContents()` for active-section tracking
131
+
132
+ ```vue
133
+ <script setup lang="ts">
134
+ import {
135
+ VfProse,
136
+ VfTableOfContents,
137
+ useTableOfContents,
138
+ } from "@codemonster-ru/vueforge-core";
139
+
140
+ const items = [
141
+ { id: "getting-started", label: "Getting started", level: 1 },
142
+ { id: "installation", label: "Installation", level: 2 },
143
+ { id: "theme-api", label: "Theme API", level: 2 },
144
+ ];
145
+
146
+ const { activeId } = useTableOfContents({
147
+ items,
148
+ offset: 96,
149
+ });
150
+ </script>
151
+
152
+ <template>
153
+ <aside>
154
+ <VfTableOfContents
155
+ label="On This Page"
156
+ aria-label="Page navigation"
157
+ :items="items"
158
+ :active-id="activeId"
159
+ />
160
+ </aside>
161
+
162
+ <VfProse>
163
+ <h2 id="getting-started">Getting started</h2>
164
+ <p>Intro copy.</p>
165
+
166
+ <h3 id="installation">Installation</h3>
167
+ <p>Install the package.</p>
168
+
169
+ <h3 id="theme-api">Theme API</h3>
170
+ <p>Customize tokens and theme mode behavior.</p>
171
+ </VfProse>
172
+ </template>
173
+ ```
174
+
175
+ ## Typography Usage
176
+
177
+ Use the typography layers by content shape:
178
+
179
+ - `VfHeading` for short-form UI headings such as page titles, section headers, and table headers
180
+ - `VfText` for short supporting copy, labels, and captions
181
+ - `VfProse` for long-form content such as documentation, guides, and rich text
182
+
183
+ ```vue
184
+ <VfHeading as="h1" size="xl">Page Title</VfHeading>
185
+ <VfText tone="muted">Short supporting copy.</VfText>
186
+
187
+ <VfProse>
188
+ <h2>Getting started</h2>
189
+ <p>Long-form content goes here.</p>
190
+ </VfProse>
191
+ ```
192
+
123
193
  ## Foundation Usage
124
194
 
125
195
  Use the full package when you need VueForge components, styles, and theme runtime together.
@@ -168,6 +238,7 @@ npm run test
168
238
  ## Visual Baseline
169
239
 
170
240
  - [Visual Baseline 1.0](./docs/visual-baseline.md)
241
+ - [Typography API](./docs/typography-api.md)
171
242
  - [Theme API](./docs/theme-api.md)
172
243
  - [Foundation API](./docs/foundation-api.md)
173
244
  - [Overlay API](./docs/overlay-api.md)
@@ -0,0 +1,26 @@
1
+ import { VfHeadingSize } from '../../types/components';
2
+ interface VfHeadingProps {
3
+ as?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "div" | "span";
4
+ size?: VfHeadingSize;
5
+ }
6
+ declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
8
+ slots: {
9
+ default?(_: {}): any;
10
+ };
11
+ refs: {};
12
+ rootEl: any;
13
+ };
14
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
15
+ declare const __VLS_component: import('vue').DefineComponent<VfHeadingProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<VfHeadingProps> & Readonly<{}>, {
16
+ size: VfHeadingSize;
17
+ as: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "div" | "span";
18
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
19
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
20
+ export default _default;
21
+ type __VLS_WithTemplateSlots<T, S> = T & {
22
+ new (): {
23
+ $slots: S;
24
+ };
25
+ };
26
+ //# sourceMappingURL=VfHeading.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VfHeading.vue.d.ts","sourceRoot":"","sources":["../../../src/components/heading/VfHeading.vue"],"names":[],"mappings":"AAgCA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAMxD,UAAU,cAAc;IACtB,EAAE,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,GAAG,MAAM,CAAC;IAC9D,IAAI,CAAC,EAAE,aAAa,CAAC;CACtB;AAiBD,iBAAS,cAAc;WAgCT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAWD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;UAnEZ,aAAa;QADf,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,GAAG,MAAM;6EA2E7D,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { default as VfHeading } from './VfHeading.vue';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/heading/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,iBAAiB,CAAC"}
@@ -8,14 +8,18 @@ export { VfDrawer } from './drawer';
8
8
  export { VfDialog } from './dialog';
9
9
  export { VfDivider } from './divider';
10
10
  export { VfDropdown } from './dropdown';
11
+ export { VfHeading } from './heading';
11
12
  export { VfIconButton } from './icon-button';
12
13
  export { VfInput } from './input';
13
14
  export { VfLink } from './link';
14
15
  export { VfNavMenu } from './nav-menu';
15
16
  export { VfPanel } from './panel';
16
17
  export { VfPopover } from './popover';
18
+ export { VfProse } from './prose';
17
19
  export { VfRadio } from './radio';
18
20
  export { VfSwitch } from './switch';
21
+ export { VfTableOfContents } from './table-of-contents';
22
+ export { VfText } from './text';
19
23
  export { VfThemeSwitch } from './theme-switch';
20
24
  export { VfTag } from './tag';
21
25
  export { VfTabs } from './tabs';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACpC,OAAO,EAAE,QAAQ,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AE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC"}
@@ -0,0 +1,23 @@
1
+ interface VfProseProps {
2
+ as?: string;
3
+ }
4
+ declare function __VLS_template(): {
5
+ attrs: Partial<{}>;
6
+ slots: {
7
+ default?(_: {}): any;
8
+ };
9
+ refs: {};
10
+ rootEl: any;
11
+ };
12
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
13
+ declare const __VLS_component: import('vue').DefineComponent<VfProseProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<VfProseProps> & Readonly<{}>, {
14
+ as: string;
15
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
16
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
17
+ export default _default;
18
+ type __VLS_WithTemplateSlots<T, S> = T & {
19
+ new (): {
20
+ $slots: S;
21
+ };
22
+ };
23
+ //# sourceMappingURL=VfProse.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VfProse.vue.d.ts","sourceRoot":"","sources":["../../../src/components/prose/VfProse.vue"],"names":[],"mappings":"AAkCA,UAAU,YAAY;IACpB,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAeD,iBAAS,cAAc;WAgCT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAWD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;QAjEd,MAAM;6EAwEX,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { default as VfProse } from './VfProse.vue';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/prose/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,eAAe,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"VfSwitch.vue.d.ts","sourceRoot":"","sources":["../../../src/components/switch/VfSwitch.vue"],"names":[],"mappings":"AA+EA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAA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AAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -0,0 +1,29 @@
1
+ import { VfTableOfContentsItem } from '../../types/components';
2
+ interface VfTableOfContentsProps {
3
+ items: VfTableOfContentsItem[];
4
+ activeId?: string;
5
+ ariaLabel?: string;
6
+ label?: string;
7
+ }
8
+ declare function __VLS_template(): {
9
+ attrs: Partial<{}>;
10
+ slots: {
11
+ label?(_: {}): any;
12
+ };
13
+ refs: {};
14
+ rootEl: any;
15
+ };
16
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
17
+ declare const __VLS_component: import('vue').DefineComponent<VfTableOfContentsProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<VfTableOfContentsProps> & Readonly<{}>, {
18
+ label: string;
19
+ ariaLabel: string;
20
+ activeId: string;
21
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
22
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
23
+ export default _default;
24
+ type __VLS_WithTemplateSlots<T, S> = T & {
25
+ new (): {
26
+ $slots: S;
27
+ };
28
+ };
29
+ //# sourceMappingURL=VfTableOfContents.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VfTableOfContents.vue.d.ts","sourceRoot":"","sources":["../../../src/components/table-of-contents/VfTableOfContents.vue"],"names":[],"mappings":"AAmFA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAMhE,UAAU,sBAAsB;IAC9B,KAAK,EAAE,qBAAqB,EAAE,CAAC;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAwCD,iBAAS,cAAc;WAoDT,OAAO,IAA6B;;uBAVvB,GAAG;;;;EAe7B;AAcD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;WAjHX,MAAM;eADF,MAAM;cADP,MAAM;6EA0HjB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { default as VfTableOfContents } from './VfTableOfContents.vue';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/table-of-contents/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,yBAAyB,CAAC"}
@@ -0,0 +1,28 @@
1
+ import { VfTextSize, VfTextTone } from '../../types/components';
2
+ interface VfTextProps {
3
+ as?: "p" | "span" | "div" | "label" | "small";
4
+ size?: VfTextSize;
5
+ tone?: VfTextTone;
6
+ }
7
+ declare function __VLS_template(): {
8
+ attrs: Partial<{}>;
9
+ slots: {
10
+ default?(_: {}): any;
11
+ };
12
+ refs: {};
13
+ rootEl: any;
14
+ };
15
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
+ declare const __VLS_component: import('vue').DefineComponent<VfTextProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<VfTextProps> & Readonly<{}>, {
17
+ size: VfTextSize;
18
+ tone: VfTextTone;
19
+ as: "p" | "span" | "div" | "label" | "small";
20
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
21
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
22
+ export default _default;
23
+ type __VLS_WithTemplateSlots<T, S> = T & {
24
+ new (): {
25
+ $slots: S;
26
+ };
27
+ };
28
+ //# sourceMappingURL=VfText.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VfText.vue.d.ts","sourceRoot":"","sources":["../../../src/components/text/VfText.vue"],"names":[],"mappings":"AAwCA,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAMjE,UAAU,WAAW;IACnB,EAAE,CAAC,EAAE,GAAG,GAAG,MAAM,GAAG,KAAK,GAAG,OAAO,GAAG,OAAO,CAAC;IAC9C,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,IAAI,CAAC,EAAE,UAAU,CAAC;CACnB;AAyBD,iBAAS,cAAc;WAgCT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAWD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;UA5EZ,UAAU;UACV,UAAU;QAFZ,GAAG,GAAG,MAAM,GAAG,KAAK,GAAG,OAAO,GAAG,OAAO;6EAoF7C,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { default as VfText } from './VfText.vue';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/text/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,cAAc,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"VfThemeSwitch.vue.d.ts","sourceRoot":"","sources":["../../../src/components/theme-switch/VfThemeSwitch.vue"],"names":[],"mappings":"AA2DA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAMxD,UAAU,kBAAkB;IAC1B,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AA0BD,iBAAS,cAAc;WAgET,OAAO,IAA6B;;;;YAXvB,GAAG;yBACA,GAAG;;;;EAehC;AAcD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;WA/GX,MAAM;cADH,OAAO;UADX,aAAa;6EAwHpB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"VfThemeSwitch.vue.d.ts","sourceRoot":"","sources":["../../../src/components/theme-switch/VfThemeSwitch.vue"],"names":[],"mappings":"AA+DA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAMxD,UAAU,kBAAkB;IAC1B,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AA4BD,iBAAS,cAAc;WAgET,OAAO,IAA6B;;;;YAXvB,GAAG;yBACA,GAAG;;;;EAehC;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;WAlHX,MAAM;cADH,OAAO;UADX,aAAa;6EA2HpB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -4,5 +4,6 @@ export { useEscapeKey } from './useEscapeKey';
4
4
  export { useFloating } from './useFloating';
5
5
  export { useFocusTrap } from './useFocusTrap';
6
6
  export { useId } from './useId';
7
+ export { useTableOfContents } from './useTableOfContents';
7
8
  export { useTheme } from './useTheme';
8
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/composables/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/composables/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { MaybeRefOrGetter } from 'vue';
2
+ import { VfTableOfContentsItem } from '../types/components';
3
+ interface UseTableOfContentsOptions {
4
+ items: MaybeRefOrGetter<VfTableOfContentsItem[]>;
5
+ offset?: MaybeRefOrGetter<number | undefined>;
6
+ disabled?: MaybeRefOrGetter<boolean | undefined>;
7
+ }
8
+ export declare function useTableOfContents(options: UseTableOfContentsOptions): {
9
+ activeId: import('vue').Ref<string | undefined, string | undefined>;
10
+ updateActiveId: () => void;
11
+ };
12
+ export {};
13
+ //# sourceMappingURL=useTableOfContents.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTableOfContents.d.ts","sourceRoot":"","sources":["../../src/composables/useTableOfContents.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,gBAAgB,EACtB,MAAM,KAAK,CAAC;AACb,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAEhE,UAAU,yBAAyB;IACjC,KAAK,EAAE,gBAAgB,CAAC,qBAAqB,EAAE,CAAC,CAAC;IACjD,MAAM,CAAC,EAAE,gBAAgB,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC9C,QAAQ,CAAC,EAAE,gBAAgB,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;CAClD;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,yBAAyB;;;EAsGpE"}
@@ -1,7 +1,7 @@
1
1
  export declare function useTheme(): {
2
2
  theme: import('vue').Ref<import('@codemonster-ru/vueforge-theme').VfThemeMode, import('@codemonster-ru/vueforge-theme').VfThemeMode>;
3
3
  resolvedTheme: import('vue').Ref<import('@codemonster-ru/vueforge-theme').VfResolvedTheme, import('@codemonster-ru/vueforge-theme').VfResolvedTheme>;
4
- setTheme: (value: import('@codemonster-ru/vueforge-theme').VfThemeMode) => void;
4
+ setTheme: (value: import('..').VfThemeMode) => void;
5
5
  toggleTheme: () => void;
6
6
  };
7
7
  //# sourceMappingURL=useTheme.d.ts.map
package/dist/index.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  export { default, VueForgeCore, createVueForgeCore } from './plugin';
2
2
  export { default as VfThemeProvider } from './providers/VfThemeProvider.vue';
3
- export { VfAccordion, VfAlert, VfBadge, VfButton, VfCard, VfCheckbox, VfDrawer, VfDialog, VfDivider, VfDropdown, VfIconButton, VfInput, VfLink, VfNavMenu, VfPanel, VfPopover, VfRadio, VfSwitch, VfThemeSwitch, VfTag, VfTabs, VfTextarea, VfTooltip, } from './components';
4
- export { useClickOutside, useDisclosure, useEscapeKey, useFloating, useFocusTrap, useId, useTheme, } from './composables';
3
+ export { VfAccordion, VfAlert, VfBadge, VfButton, VfCard, VfCheckbox, VfDrawer, VfDialog, VfDivider, VfDropdown, VfHeading, VfIconButton, VfInput, VfLink, VfNavMenu, VfPanel, VfPopover, VfProse, VfRadio, VfSwitch, VfTableOfContents, VfText, VfThemeSwitch, VfTag, VfTabs, VfTextarea, VfTooltip, } from './components';
4
+ export { useClickOutside, useDisclosure, useEscapeKey, useFloating, useFocusTrap, useId, useTableOfContents, useTheme, } from './composables';
5
5
  export { vfBreakpoints, toMaxWidthQuery, toMinWidthQuery, useBreakpoint, useBreakpoints, useBreakpointValue, useScrollLock, } from './foundation';
6
6
  export { createThemePreset, defaultThemePreset } from './theme/public';
7
- export type { VfBadgeTone, VfButtonVariant, VfControlSize, VfDialogSize, VfDrawerPlacement, VfDividerOrientation, VfDropdownPlacement, VfFeedbackTone, VfNavMenuItem, VfTabItem, VfTooltipPlacement, VfLinkTone, } from './types/components';
7
+ export type { VfBadgeTone, VfButtonVariant, VfControlSize, VfDialogSize, VfDrawerPlacement, VfDividerOrientation, VfDropdownPlacement, VfFeedbackTone, VfHeadingSize, VfNavMenuItem, VfTabItem, VfTableOfContentsItem, VfTextSize, VfTextTone, VfTooltipPlacement, VfLinkTone, } from './types/components';
8
8
  export type { VfResolvedTheme, VfThemeConfig, VfThemeContext, VfThemeMode, VfThemePreset, VfThemePresetOptions, VfThemeProviderProps, VfThemeTokens, VfVueForgeOptions, } from './types/theme';
9
9
  export type { UseBreakpointOptions, UseScrollLockOptions, VfBreakpointName, VfBreakpointValue, VfBreakpointValues, } from './foundation';
10
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,gCAAgC,CAAC;AACxC,OAAO,+BAA+B,CAAC;AACvC,OAAO,yBAAyB,CAAC;AAEjC,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EACL,WAAW,EACX,OAAO,EACP,OAAO,EACP,QAAQ,EACR,MAAM,EACN,UAAU,EACV,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,UAAU,EACV,YAAY,EACZ,OAAO,EACP,MAAM,EACN,SAAS,EACT,OAAO,EACP,SAAS,EACT,OAAO,EACP,QAAQ,EACR,aAAa,EACb,KAAK,EACL,MAAM,EACN,UAAU,EACV,SAAS,GACV,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,eAAe,EACf,aAAa,EACb,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,KAAK,EACL,QAAQ,GACT,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,aAAa,EACb,eAAe,EACf,eAAe,EACf,aAAa,EACb,cAAc,EACd,kBAAkB,EAClB,aAAa,GACd,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACvE,YAAY,EACV,WAAW,EACX,eAAe,EACf,aAAa,EACb,YAAY,EACZ,iBAAiB,EACjB,oBAAoB,EACpB,mBAAmB,EACnB,cAAc,EACd,aAAa,EACb,SAAS,EACT,kBAAkB,EAClB,UAAU,GACX,MAAM,oBAAoB,CAAC;AAC5B,YAAY,EACV,eAAe,EACf,aAAa,EACb,cAAc,EACd,WAAW,EACX,aAAa,EACb,oBAAoB,EACpB,oBAAoB,EACpB,aAAa,EACb,iBAAiB,GAClB,MAAM,eAAe,CAAC;AACvB,YAAY,EACV,oBAAoB,EACpB,oBAAoB,EACpB,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,GACnB,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,gCAAgC,CAAC;AACxC,OAAO,+BAA+B,CAAC;AACvC,OAAO,yBAAyB,CAAC;AAEjC,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EACL,WAAW,EACX,OAAO,EACP,OAAO,EACP,QAAQ,EACR,MAAM,EACN,UAAU,EACV,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,UAAU,EACV,SAAS,EACT,YAAY,EACZ,OAAO,EACP,MAAM,EACN,SAAS,EACT,OAAO,EACP,SAAS,EACT,OAAO,EACP,OAAO,EACP,QAAQ,EACR,iBAAiB,EACjB,MAAM,EACN,aAAa,EACb,KAAK,EACL,MAAM,EACN,UAAU,EACV,SAAS,GACV,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,eAAe,EACf,aAAa,EACb,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,KAAK,EACL,kBAAkB,EAClB,QAAQ,GACT,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,aAAa,EACb,eAAe,EACf,eAAe,EACf,aAAa,EACb,cAAc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