@oxide/design-system 1.7.6 → 1.7.7--canary.fdd8ab6.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.
- package/components/dist/asciidoc.css +1 -1
- package/components/dist/index.d.ts +49 -1
- package/components/dist/index.js +2191 -226
- package/components/dist/index.js.map +1 -1
- package/package.json +7 -2
|
@@ -1,10 +1,39 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as _oxide_react_asciidoc from '@oxide/react-asciidoc';
|
|
3
|
+
import { DocumentSection, Block, DocumentBlock } from '@oxide/react-asciidoc';
|
|
4
|
+
import * as _asciidoctor_core from '@asciidoctor/core';
|
|
5
|
+
import { Registry, Document, Html5Converter, Block as Block$1 } from '@asciidoctor/core';
|
|
3
6
|
import * as react from 'react';
|
|
4
7
|
import { ReactNode } from 'react';
|
|
5
8
|
import { TabsProps, TabsTriggerProps, TabsListProps, TabsContentProps } from '@radix-ui/react-tabs';
|
|
6
9
|
import { SetRequired } from 'type-fest';
|
|
7
10
|
|
|
11
|
+
declare function useIntersectionObserver(elements: Element[], callback: IntersectionObserverCallback, options: IntersectionObserverInit): IntersectionObserver | null;
|
|
12
|
+
declare function useActiveSectionTracking(initialSections: Element[], onSectionChange: (element: Element) => void, debug?: boolean): {
|
|
13
|
+
setSections: (sections: Element[]) => void;
|
|
14
|
+
debugNode: react_jsx_runtime.JSX.Element | null;
|
|
15
|
+
};
|
|
16
|
+
declare const DesktopOutline: ({ toc, activeItem, }: {
|
|
17
|
+
toc: DocumentSection[];
|
|
18
|
+
activeItem: string;
|
|
19
|
+
}) => react_jsx_runtime.JSX.Element | null;
|
|
20
|
+
declare const SmallScreenOutline: ({ toc, activeItem, title, }: {
|
|
21
|
+
toc: DocumentSection[];
|
|
22
|
+
activeItem: string;
|
|
23
|
+
title: string;
|
|
24
|
+
}) => react_jsx_runtime.JSX.Element | null;
|
|
25
|
+
|
|
26
|
+
declare const highlight: (block: Block) => Promise<Block>;
|
|
27
|
+
declare const attrs: {
|
|
28
|
+
sectlinks: string;
|
|
29
|
+
stem: string;
|
|
30
|
+
stylesheet: boolean;
|
|
31
|
+
};
|
|
32
|
+
declare const loadAsciidoctor: ({ extensions, }: {
|
|
33
|
+
extensions?: ((this: Registry) => void)[] | undefined;
|
|
34
|
+
}) => _asciidoctor_core.Asciidoctor;
|
|
35
|
+
declare const handleDocument: (document: Document) => Promise<_oxide_react_asciidoc.DocumentBlock>;
|
|
36
|
+
|
|
8
37
|
declare const AsciiDocBlocks: {
|
|
9
38
|
Admonition: ({ node }: {
|
|
10
39
|
node: _oxide_react_asciidoc.AdmonitionBlock;
|
|
@@ -12,7 +41,26 @@ declare const AsciiDocBlocks: {
|
|
|
12
41
|
Table: ({ node }: {
|
|
13
42
|
node: _oxide_react_asciidoc.TableBlock;
|
|
14
43
|
}) => react_jsx_runtime.JSX.Element;
|
|
44
|
+
Section: ({ node }: {
|
|
45
|
+
node: _oxide_react_asciidoc.SectionBlock;
|
|
46
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
47
|
+
MinimalDocument: ({ document }: {
|
|
48
|
+
document: DocumentBlock;
|
|
49
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
15
50
|
};
|
|
51
|
+
/**
|
|
52
|
+
* Adds word break opportunities (<wbr/>) after slashes in text, except within HTML tags.
|
|
53
|
+
* This function is used to improve line breaks for long paths or URLs in rendered content.
|
|
54
|
+
* *
|
|
55
|
+
* renderWithBreaks('/path/to/long/file.txt')
|
|
56
|
+
* '/<wbr/>path/<wbr/>to/<wbr/>long/<wbr/>file.txt'
|
|
57
|
+
*/
|
|
58
|
+
declare const renderWithBreaks: (text: string) => string;
|
|
59
|
+
declare class InlineConverter {
|
|
60
|
+
baseConverter: Html5Converter;
|
|
61
|
+
constructor();
|
|
62
|
+
convert(node: Block$1, transform: string): string;
|
|
63
|
+
}
|
|
16
64
|
|
|
17
65
|
type BadgeColor = 'default' | 'destructive' | 'notice' | 'neutral' | 'purple' | 'blue';
|
|
18
66
|
type BadgeVariant = 'default' | 'solid';
|
|
@@ -96,4 +144,4 @@ interface ListboxProps<Value extends string = string> {
|
|
|
96
144
|
}
|
|
97
145
|
declare const Listbox: <Value extends string = string>({ name, selected, items, placeholder, className, onChange, hasError, disabled, isLoading, ...props }: ListboxProps<Value>) => react_jsx_runtime.JSX.Element;
|
|
98
146
|
|
|
99
|
-
export { AsciiDocBlocks, Badge, BadgeColor, BadgeProps, BadgeVariant, Button, ButtonProps, ButtonSize, Checkbox, CheckboxProps, Listbox, ListboxItem, ListboxProps, Spinner, SpinnerLoader, SpinnerSize, SpinnerVariant, Tabs, TabsRootProps, Variant, badgeColors, buttonSizes, buttonStyle, spinnerSizes, spinnerVariants, variants };
|
|
147
|
+
export { AsciiDocBlocks, Badge, BadgeColor, BadgeProps, BadgeVariant, Button, ButtonProps, ButtonSize, Checkbox, CheckboxProps, DesktopOutline, InlineConverter, Listbox, ListboxItem, ListboxProps, SmallScreenOutline, Spinner, SpinnerLoader, SpinnerSize, SpinnerVariant, Tabs, TabsRootProps, Variant, attrs, badgeColors, buttonSizes, buttonStyle, handleDocument, highlight, loadAsciidoctor, renderWithBreaks, spinnerSizes, spinnerVariants, useActiveSectionTracking, useIntersectionObserver, variants };
|