@tuwaio/docs-ui 0.5.0 → 0.5.2

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.
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import * as react from 'react';
2
2
  import { ReactNode } from 'react';
3
3
 
4
4
  /**
@@ -11,6 +11,6 @@ import { ReactNode } from 'react';
11
11
  */
12
12
  declare function NoSSR({ children }: {
13
13
  children: ReactNode;
14
- }): React.JSX.Element | null;
14
+ }): react.JSX.Element | null;
15
15
 
16
16
  export { NoSSR as default };
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import * as react from 'react';
2
2
  import { ReactNode } from 'react';
3
3
 
4
4
  /**
@@ -11,6 +11,6 @@ import { ReactNode } from 'react';
11
11
  */
12
12
  declare function NoSSR({ children }: {
13
13
  children: ReactNode;
14
- }): React.JSX.Element | null;
14
+ }): react.JSX.Element | null;
15
15
 
16
16
  export { NoSSR as default };
@@ -1,4 +1,4 @@
1
- import React__default from 'react';
1
+ import react__default from 'react';
2
2
 
3
3
  /**
4
4
  * A TUWA project with its own brand color and {@link Orb} texture.
@@ -7,13 +7,13 @@ type PackageType = 'orbit' | 'pulsar' | 'satellite' | 'nova' | 'quasar' | 'siwx'
7
7
  /**
8
8
  * Props of {@link Orb}; the other props are applied to the root `div`.
9
9
  */
10
- interface OrbProps extends React__default.HTMLAttributes<HTMLDivElement> {
10
+ interface OrbProps extends react__default.HTMLAttributes<HTMLDivElement> {
11
11
  /** The project, which selects the color and the animated texture */
12
12
  packageType: PackageType;
13
13
  /** Diameter in pixels (default: `120`) */
14
14
  size?: number;
15
15
  /** Icon rendered in the center */
16
- icon?: React__default.ComponentType<React__default.SVGProps<SVGSVGElement>>;
16
+ icon?: react__default.ComponentType<react__default.SVGProps<SVGSVGElement>>;
17
17
  }
18
18
  /**
19
19
  * An animated glass sphere in the brand color of a TUWA project, with an SVG texture (animated SVG filters) and an
@@ -24,7 +24,7 @@ interface OrbProps extends React__default.HTMLAttributes<HTMLDivElement> {
24
24
  * @param ref - Ref of the root `div`.
25
25
  * @returns The orb.
26
26
  */
27
- declare const Orb: React__default.ForwardRefExoticComponent<OrbProps & React__default.RefAttributes<HTMLDivElement>>;
27
+ declare const Orb: react__default.ForwardRefExoticComponent<OrbProps & react__default.RefAttributes<HTMLDivElement>>;
28
28
 
29
29
  export { Orb };
30
30
  export type { OrbProps, PackageType };
@@ -1,4 +1,4 @@
1
- import React__default from 'react';
1
+ import react__default from 'react';
2
2
 
3
3
  /**
4
4
  * A TUWA project with its own brand color and {@link Orb} texture.
@@ -7,13 +7,13 @@ type PackageType = 'orbit' | 'pulsar' | 'satellite' | 'nova' | 'quasar' | 'siwx'
7
7
  /**
8
8
  * Props of {@link Orb}; the other props are applied to the root `div`.
9
9
  */
10
- interface OrbProps extends React__default.HTMLAttributes<HTMLDivElement> {
10
+ interface OrbProps extends react__default.HTMLAttributes<HTMLDivElement> {
11
11
  /** The project, which selects the color and the animated texture */
12
12
  packageType: PackageType;
13
13
  /** Diameter in pixels (default: `120`) */
14
14
  size?: number;
15
15
  /** Icon rendered in the center */
16
- icon?: React__default.ComponentType<React__default.SVGProps<SVGSVGElement>>;
16
+ icon?: react__default.ComponentType<react__default.SVGProps<SVGSVGElement>>;
17
17
  }
18
18
  /**
19
19
  * An animated glass sphere in the brand color of a TUWA project, with an SVG texture (animated SVG filters) and an
@@ -24,7 +24,7 @@ interface OrbProps extends React__default.HTMLAttributes<HTMLDivElement> {
24
24
  * @param ref - Ref of the root `div`.
25
25
  * @returns The orb.
26
26
  */
27
- declare const Orb: React__default.ForwardRefExoticComponent<OrbProps & React__default.RefAttributes<HTMLDivElement>>;
27
+ declare const Orb: react__default.ForwardRefExoticComponent<OrbProps & react__default.RefAttributes<HTMLDivElement>>;
28
28
 
29
29
  export { Orb };
30
30
  export type { OrbProps, PackageType };
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import * as react from 'react';
2
2
  import { PolicySlug, PolicyContent, PolicyDocumentLabels, PolicyLanguage } from '../policies.cjs';
3
3
 
4
4
  /**
@@ -54,7 +54,7 @@ interface PolicyDocumentProps {
54
54
  * @param props - See {@link PolicyDocumentProps}.
55
55
  * @returns The policy page.
56
56
  */
57
- declare function PolicyDocument({ slug, content, source, labels, languageHref, className, classNames, }: PolicyDocumentProps): React.JSX.Element;
57
+ declare function PolicyDocument({ slug, content, source, labels, languageHref, className, classNames, }: PolicyDocumentProps): react.JSX.Element;
58
58
 
59
59
  export { PolicyDocument };
60
60
  export type { PolicyDocumentProps };
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import * as react from 'react';
2
2
  import { PolicySlug, PolicyContent, PolicyDocumentLabels, PolicyLanguage } from '../policies.js';
3
3
 
4
4
  /**
@@ -54,7 +54,7 @@ interface PolicyDocumentProps {
54
54
  * @param props - See {@link PolicyDocumentProps}.
55
55
  * @returns The policy page.
56
56
  */
57
- declare function PolicyDocument({ slug, content, source, labels, languageHref, className, classNames, }: PolicyDocumentProps): React.JSX.Element;
57
+ declare function PolicyDocument({ slug, content, source, labels, languageHref, className, classNames, }: PolicyDocumentProps): react.JSX.Element;
58
58
 
59
59
  export { PolicyDocument };
60
60
  export type { PolicyDocumentProps };
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import * as react from 'react';
2
2
 
3
3
  /**
4
4
  * A full-size canvas of slowly drifting, twinkling stars joined by lines, which move away from the mouse pointer.
@@ -9,6 +9,6 @@ import * as React from 'react';
9
9
  *
10
10
  * @returns The canvas.
11
11
  */
12
- declare function StarryBackground(): React.JSX.Element;
12
+ declare function StarryBackground(): react.JSX.Element;
13
13
 
14
14
  export { StarryBackground as default };
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import * as react from 'react';
2
2
 
3
3
  /**
4
4
  * A full-size canvas of slowly drifting, twinkling stars joined by lines, which move away from the mouse pointer.
@@ -9,6 +9,6 @@ import * as React from 'react';
9
9
  *
10
10
  * @returns The canvas.
11
11
  */
12
- declare function StarryBackground(): React.JSX.Element;
12
+ declare function StarryBackground(): react.JSX.Element;
13
13
 
14
14
  export { StarryBackground as default };
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import * as react from 'react';
2
2
 
3
3
  /**
4
4
  * Props of {@link ThemeSwitcher}.
@@ -17,7 +17,7 @@ interface ThemeSwitcherProps {
17
17
  * @param props - See {@link ThemeSwitcherProps}.
18
18
  * @returns The switch button.
19
19
  */
20
- declare function ThemeSwitcher({ theme, onToggle }: ThemeSwitcherProps): React.JSX.Element;
20
+ declare function ThemeSwitcher({ theme, onToggle }: ThemeSwitcherProps): react.JSX.Element;
21
21
 
22
22
  export { ThemeSwitcher };
23
23
  export type { ThemeSwitcherProps };
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import * as react from 'react';
2
2
 
3
3
  /**
4
4
  * Props of {@link ThemeSwitcher}.
@@ -17,7 +17,7 @@ interface ThemeSwitcherProps {
17
17
  * @param props - See {@link ThemeSwitcherProps}.
18
18
  * @returns The switch button.
19
19
  */
20
- declare function ThemeSwitcher({ theme, onToggle }: ThemeSwitcherProps): React.JSX.Element;
20
+ declare function ThemeSwitcher({ theme, onToggle }: ThemeSwitcherProps): react.JSX.Element;
21
21
 
22
22
  export { ThemeSwitcher };
23
23
  export type { ThemeSwitcherProps };
package/dist/index.cjs CHANGED
@@ -34,6 +34,7 @@ __export(index_exports, {
34
34
  });
35
35
  module.exports = __toCommonJS(index_exports);
36
36
  __reExport(index_exports, require("./components/Footer"), module.exports);
37
+ __reExport(index_exports, require("./components/LocaleSwitcher"), module.exports);
37
38
  __reExport(index_exports, require("./components/Logo"), module.exports);
38
39
  __reExport(index_exports, require("./components/NavBar"), module.exports);
39
40
  var import_NoSSR = __toESM(require("./components/NoSSR"), 1);
@@ -49,6 +50,7 @@ __reExport(index_exports, require("./utils"), module.exports);
49
50
  NoSSR,
50
51
  StarryBackground,
51
52
  ...require("./components/Footer"),
53
+ ...require("./components/LocaleSwitcher"),
52
54
  ...require("./components/Logo"),
53
55
  ...require("./components/NavBar"),
54
56
  ...require("./components/Orb"),