@widlarzgroup/docusaurus-ui 0.0.1
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/README.md +36 -0
- package/lib/components/PlatformsList/PlatformsList.d.ts +7 -0
- package/lib/components/PlatformsList/PlatformsList.d.ts.map +1 -0
- package/lib/components/PlatformsList/PlatformsList.js +14 -0
- package/lib/components/PlatformsList/PlatformsList.js.map +1 -0
- package/lib/components/PlatformsList/PlatformsList.module.css +10 -0
- package/lib/components/PlusBadge/PlusBadge.d.ts +6 -0
- package/lib/components/PlusBadge/PlusBadge.d.ts.map +1 -0
- package/lib/components/PlusBadge/PlusBadge.js +12 -0
- package/lib/components/PlusBadge/PlusBadge.js.map +1 -0
- package/lib/components/PlusBadge/PlusBadge.module.css +17 -0
- package/lib/components/ProBadge/ProBadge.d.ts +2 -0
- package/lib/components/ProBadge/ProBadge.d.ts.map +1 -0
- package/lib/components/ProBadge/ProBadge.js +12 -0
- package/lib/components/ProBadge/ProBadge.js.map +1 -0
- package/lib/components/ProBadge/ProBadge.module.css +8 -0
- package/lib/components/ProFeature/ProFeature.d.ts +7 -0
- package/lib/components/ProFeature/ProFeature.d.ts.map +1 -0
- package/lib/components/ProFeature/ProFeature.js +12 -0
- package/lib/components/ProFeature/ProFeature.js.map +1 -0
- package/lib/components/ProFeature/ProFeature.module.css +89 -0
- package/lib/components/StatusBadge/StatusBadge.d.ts +7 -0
- package/lib/components/StatusBadge/StatusBadge.d.ts.map +1 -0
- package/lib/components/StatusBadge/StatusBadge.js +26 -0
- package/lib/components/StatusBadge/StatusBadge.js.map +1 -0
- package/lib/components/StatusBadge/StatusBadge.module.css +26 -0
- package/lib/components/TWGBadge/TWGBadge.d.ts +6 -0
- package/lib/components/TWGBadge/TWGBadge.d.ts.map +1 -0
- package/lib/components/TWGBadge/TWGBadge.js +15 -0
- package/lib/components/TWGBadge/TWGBadge.js.map +1 -0
- package/lib/components/TWGBadge/TWGBadge.module.css +107 -0
- package/lib/css/custom.css +614 -0
- package/lib/index.d.ts +4 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +37 -0
- package/lib/index.js.map +1 -0
- package/lib/theme/DocItem/Footer/index.d.ts +3 -0
- package/lib/theme/DocItem/Footer/index.d.ts.map +1 -0
- package/lib/theme/DocItem/Footer/index.js +24 -0
- package/lib/theme/DocItem/Footer/index.js.map +1 -0
- package/lib/theme/DocItem/TOC/Desktop/index.d.ts +3 -0
- package/lib/theme/DocItem/TOC/Desktop/index.d.ts.map +1 -0
- package/lib/theme/DocItem/TOC/Desktop/index.js +15 -0
- package/lib/theme/DocItem/TOC/Desktop/index.js.map +1 -0
- package/lib/theme/DocSidebarItem/Category/index.d.ts +5 -0
- package/lib/theme/DocSidebarItem/Category/index.d.ts.map +1 -0
- package/lib/theme/DocSidebarItem/Category/index.js +224 -0
- package/lib/theme/DocSidebarItem/Category/index.js.map +1 -0
- package/lib/theme/DocSidebarItem/Category/styles.module.css +119 -0
- package/lib/theme/DocSidebarItem/Link/index.d.ts +5 -0
- package/lib/theme/DocSidebarItem/Link/index.d.ts.map +1 -0
- package/lib/theme/DocSidebarItem/Link/index.js +35 -0
- package/lib/theme/DocSidebarItem/Link/index.js.map +1 -0
- package/lib/theme/DocSidebarItem/Link/styles.module.css +18 -0
- package/lib/theme/TOC/index.d.ts +4 -0
- package/lib/theme/TOC/index.d.ts.map +1 -0
- package/lib/theme/TOC/index.js +19 -0
- package/lib/theme/TOC/index.js.map +1 -0
- package/lib/theme/TOC/styles.module.css +16 -0
- package/lib/types/sidebar.d.ts +17 -0
- package/lib/types/sidebar.d.ts.map +1 -0
- package/lib/types/sidebar.js +3 -0
- package/lib/types/sidebar.js.map +1 -0
- package/package.json +41 -0
- package/src/components/PlatformsList/PlatformsList.module.css +10 -0
- package/src/components/PlatformsList/PlatformsList.tsx +28 -0
- package/src/components/PlusBadge/PlusBadge.module.css +17 -0
- package/src/components/PlusBadge/PlusBadge.tsx +23 -0
- package/src/components/ProBadge/ProBadge.module.css +8 -0
- package/src/components/ProBadge/ProBadge.tsx +21 -0
- package/src/components/ProFeature/ProFeature.module.css +89 -0
- package/src/components/ProFeature/ProFeature.tsx +51 -0
- package/src/components/StatusBadge/StatusBadge.module.css +26 -0
- package/src/components/StatusBadge/StatusBadge.tsx +32 -0
- package/src/components/TWGBadge/TWGBadge.module.css +107 -0
- package/src/components/TWGBadge/TWGBadge.tsx +27 -0
- package/src/css/custom.css +614 -0
- package/src/index.ts +22 -0
- package/src/theme/DocItem/Footer/index.tsx +51 -0
- package/src/theme/DocSidebarItem/Category/index.tsx +403 -0
- package/src/theme/DocSidebarItem/Category/styles.module.css +119 -0
- package/src/theme/DocSidebarItem/Link/index.tsx +85 -0
- package/src/theme/DocSidebarItem/Link/styles.module.css +18 -0
- package/src/theme/TOC/index.tsx +25 -0
- package/src/theme/TOC/styles.module.css +16 -0
- package/src/types/sidebar.ts +23 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import styles from './PlusBadge.module.css';
|
|
2
|
+
|
|
3
|
+
interface PlusBadgeProps {
|
|
4
|
+
tooltip?: string;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
const PlusBadge = ({ tooltip = 'Pro feature' }: PlusBadgeProps) => {
|
|
8
|
+
return (
|
|
9
|
+
<span className={styles.badge} title={tooltip}>
|
|
10
|
+
<svg
|
|
11
|
+
width="12"
|
|
12
|
+
height="12"
|
|
13
|
+
viewBox="0 0 24 24"
|
|
14
|
+
fill="currentColor"
|
|
15
|
+
className={styles.icon}
|
|
16
|
+
>
|
|
17
|
+
<path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z" />
|
|
18
|
+
</svg>
|
|
19
|
+
</span>
|
|
20
|
+
);
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export default PlusBadge;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import styles from './ProBadge.module.css';
|
|
3
|
+
|
|
4
|
+
export default function ProBadge() {
|
|
5
|
+
return (
|
|
6
|
+
<span className={styles.badge} title="Pro Player feature">
|
|
7
|
+
<svg
|
|
8
|
+
width="14"
|
|
9
|
+
height="14"
|
|
10
|
+
viewBox="0 0 24 24"
|
|
11
|
+
fill="none"
|
|
12
|
+
stroke="currentColor"
|
|
13
|
+
strokeWidth="2"
|
|
14
|
+
strokeLinecap="round"
|
|
15
|
+
strokeLinejoin="round"
|
|
16
|
+
>
|
|
17
|
+
<path d="M2.7 10.3a2.41 2.41 0 0 0 0 3.41l7.59 7.59a2.41 2.41 0 0 0 3.41 0l7.59-7.59a2.41 2.41 0 0 0 0-3.41L13.7 2.71a2.41 2.41 0 0 0-3.41 0z" />
|
|
18
|
+
</svg>
|
|
19
|
+
</span>
|
|
20
|
+
);
|
|
21
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
.container {
|
|
2
|
+
margin: 1.5rem 0;
|
|
3
|
+
padding: 1.25rem 1.5rem;
|
|
4
|
+
background: rgba(150, 201, 235, 0.08);
|
|
5
|
+
border: 1px solid rgba(150, 201, 235, 0.2);
|
|
6
|
+
border-left: 4px solid #96c9eb;
|
|
7
|
+
border-radius: 8px;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.header {
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
margin-bottom: 0.75rem;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.badge {
|
|
17
|
+
display: inline-flex;
|
|
18
|
+
align-items: center;
|
|
19
|
+
gap: 0.4rem;
|
|
20
|
+
padding: 0.3rem 0.6rem;
|
|
21
|
+
background: linear-gradient(135deg, #96c9eb 0%, #76b8e5 100%);
|
|
22
|
+
border-radius: 4px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.icon {
|
|
26
|
+
color: #171717;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.badgeText {
|
|
30
|
+
font-size: 0.75rem;
|
|
31
|
+
font-weight: 700;
|
|
32
|
+
color: #171717;
|
|
33
|
+
text-transform: uppercase;
|
|
34
|
+
letter-spacing: 0.03em;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.description {
|
|
38
|
+
margin: 0 0 1rem 0;
|
|
39
|
+
font-size: 0.9rem;
|
|
40
|
+
color: var(--color-text-secondary, #b4b4b4);
|
|
41
|
+
line-height: 1.6;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.actions {
|
|
45
|
+
display: flex;
|
|
46
|
+
gap: 0.75rem;
|
|
47
|
+
flex-wrap: wrap;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.primaryButton {
|
|
51
|
+
display: inline-flex;
|
|
52
|
+
align-items: center;
|
|
53
|
+
padding: 0.5rem 1rem;
|
|
54
|
+
background: #96c9eb;
|
|
55
|
+
color: #171717;
|
|
56
|
+
font-size: 0.85rem;
|
|
57
|
+
font-weight: 600;
|
|
58
|
+
border-radius: 6px;
|
|
59
|
+
text-decoration: none;
|
|
60
|
+
transition: all 0.2s ease;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.primaryButton:hover {
|
|
64
|
+
background: #76b8e5;
|
|
65
|
+
color: #171717;
|
|
66
|
+
text-decoration: none;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.secondaryButton {
|
|
70
|
+
display: inline-flex;
|
|
71
|
+
align-items: center;
|
|
72
|
+
padding: 0.5rem 1rem;
|
|
73
|
+
background: transparent;
|
|
74
|
+
color: #96c9eb;
|
|
75
|
+
font-size: 0.85rem;
|
|
76
|
+
font-weight: 600;
|
|
77
|
+
border: 1px solid rgba(150, 201, 235, 0.3);
|
|
78
|
+
border-radius: 6px;
|
|
79
|
+
text-decoration: none;
|
|
80
|
+
transition: all 0.2s ease;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.secondaryButton:hover {
|
|
84
|
+
background: rgba(150, 201, 235, 0.1);
|
|
85
|
+
border-color: rgba(150, 201, 235, 0.5);
|
|
86
|
+
color: #96c9eb;
|
|
87
|
+
text-decoration: none;
|
|
88
|
+
}
|
|
89
|
+
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import styles from './ProFeature.module.css';
|
|
2
|
+
|
|
3
|
+
interface ProFeatureProps {
|
|
4
|
+
title?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
const ProFeature = ({
|
|
9
|
+
title = 'Pro Feature',
|
|
10
|
+
description = 'This feature is part of our commercial offering. Start a free trial to explore all Pro features.',
|
|
11
|
+
}: ProFeatureProps) => {
|
|
12
|
+
return (
|
|
13
|
+
<div className={styles.container}>
|
|
14
|
+
<div className={styles.header}>
|
|
15
|
+
<div className={styles.badge}>
|
|
16
|
+
<svg
|
|
17
|
+
width="14"
|
|
18
|
+
height="14"
|
|
19
|
+
viewBox="0 0 24 24"
|
|
20
|
+
fill="currentColor"
|
|
21
|
+
className={styles.icon}
|
|
22
|
+
>
|
|
23
|
+
<path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z" />
|
|
24
|
+
</svg>
|
|
25
|
+
<span className={styles.badgeText}>{title}</span>
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
28
|
+
<p className={styles.description}>{description}</p>
|
|
29
|
+
<div className={styles.actions}>
|
|
30
|
+
<a
|
|
31
|
+
href="https://sdk.thewidlarzgroup.com/signup?utm_source=rnv&utm_medium=docs&utm_campaign=pro-feature"
|
|
32
|
+
target="_blank"
|
|
33
|
+
rel="noreferrer"
|
|
34
|
+
className={styles.primaryButton}
|
|
35
|
+
>
|
|
36
|
+
Start Free Trial
|
|
37
|
+
</a>
|
|
38
|
+
<a
|
|
39
|
+
href="https://www.thewidlarzgroup.com/?utm_source=rnv&utm_medium=docs&utm_campaign=pro-feature#Contact"
|
|
40
|
+
target="_blank"
|
|
41
|
+
rel="noreferrer"
|
|
42
|
+
className={styles.secondaryButton}
|
|
43
|
+
>
|
|
44
|
+
Contact Sales
|
|
45
|
+
</a>
|
|
46
|
+
</div>
|
|
47
|
+
</div>
|
|
48
|
+
);
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
export default ProFeature;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
.badge {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
margin-left: auto;
|
|
5
|
+
padding: 2px 6px;
|
|
6
|
+
border: 1px solid;
|
|
7
|
+
border-radius: 4px;
|
|
8
|
+
font-size: 0.7em;
|
|
9
|
+
font-weight: 500;
|
|
10
|
+
line-height: 1;
|
|
11
|
+
text-transform: uppercase;
|
|
12
|
+
letter-spacing: 0.5px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.badgePlanned {
|
|
16
|
+
background: var(--color-accent-subtle);
|
|
17
|
+
border-color: var(--color-accent-glow);
|
|
18
|
+
color: var(--color-accent);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.badgeNew {
|
|
22
|
+
background: var(--color-secondary-subtle);
|
|
23
|
+
border-color: var(--color-secondary-glow);
|
|
24
|
+
color: var(--color-secondary);
|
|
25
|
+
}
|
|
26
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import clsx from 'clsx';
|
|
3
|
+
import styles from './StatusBadge.module.css';
|
|
4
|
+
|
|
5
|
+
type StatusBadgeType = 'planned' | 'new';
|
|
6
|
+
|
|
7
|
+
interface StatusBadgeProps {
|
|
8
|
+
type: StatusBadgeType;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
const config = {
|
|
12
|
+
planned: {
|
|
13
|
+
label: 'Planned',
|
|
14
|
+
title: 'Planned feature',
|
|
15
|
+
className: 'badgePlanned',
|
|
16
|
+
},
|
|
17
|
+
new: {
|
|
18
|
+
label: 'New',
|
|
19
|
+
title: 'New feature',
|
|
20
|
+
className: 'badgeNew',
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export default function StatusBadge({ type }: StatusBadgeProps) {
|
|
25
|
+
const { label, title, className } = config[type];
|
|
26
|
+
|
|
27
|
+
return (
|
|
28
|
+
<span className={clsx(styles.badge, styles[className])} title={title}>
|
|
29
|
+
{label}
|
|
30
|
+
</span>
|
|
31
|
+
);
|
|
32
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
.extraContainer {
|
|
2
|
+
position: relative;
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
align-items: center;
|
|
7
|
+
margin-top: 0.5rem;
|
|
8
|
+
text-align: center;
|
|
9
|
+
padding: 1.5rem 1rem;
|
|
10
|
+
gap: 1rem;
|
|
11
|
+
border-radius: 0.75rem;
|
|
12
|
+
background: var(--color-secondary-subtle);
|
|
13
|
+
overflow: hidden;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.extraContainer::before {
|
|
17
|
+
content: '';
|
|
18
|
+
position: absolute;
|
|
19
|
+
top: -50%;
|
|
20
|
+
right: -20%;
|
|
21
|
+
width: 200px;
|
|
22
|
+
height: 200px;
|
|
23
|
+
background: var(--color-secondary-glow);
|
|
24
|
+
border-radius: 50%;
|
|
25
|
+
opacity: 0.2;
|
|
26
|
+
z-index: 0;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.extraContainer::after {
|
|
30
|
+
content: '';
|
|
31
|
+
position: absolute;
|
|
32
|
+
bottom: -30%;
|
|
33
|
+
left: -10%;
|
|
34
|
+
width: 150px;
|
|
35
|
+
height: 150px;
|
|
36
|
+
background: var(--color-secondary-glow);
|
|
37
|
+
border-radius: 50%;
|
|
38
|
+
opacity: 0.2;
|
|
39
|
+
z-index: 0;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.extraText {
|
|
43
|
+
position: relative;
|
|
44
|
+
z-index: 1;
|
|
45
|
+
padding-left: 0.5rem;
|
|
46
|
+
padding-right: 0.5rem;
|
|
47
|
+
font-weight: 600;
|
|
48
|
+
text-wrap: nowrap;
|
|
49
|
+
font-size: 0.95rem;
|
|
50
|
+
color: var(--color-text-primary);
|
|
51
|
+
line-height: 1.4;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.extraButton {
|
|
55
|
+
position: relative;
|
|
56
|
+
z-index: 1;
|
|
57
|
+
width: 90%;
|
|
58
|
+
border: 1.5px solid var(--color-secondary);
|
|
59
|
+
padding: 0.5rem 1rem;
|
|
60
|
+
font-weight: 500;
|
|
61
|
+
background-color: var(--ifm-background-color);
|
|
62
|
+
transition: all 0.3s ease;
|
|
63
|
+
color: var(--color-text-primary);
|
|
64
|
+
border-radius: 0.5rem;
|
|
65
|
+
text-decoration: none;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.extraButton:hover {
|
|
69
|
+
transform: scale(1.05);
|
|
70
|
+
border-color: var(--color-secondary-dim);
|
|
71
|
+
border-width: 2px;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
[data-theme='dark'] .extraContainer {
|
|
75
|
+
background: var(--color-secondary-subtle);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
[data-theme='dark'] .extraContainer::before,
|
|
79
|
+
[data-theme='dark'] .extraContainer::after {
|
|
80
|
+
background: var(--color-secondary-glow);
|
|
81
|
+
opacity: 0.1;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
@media (min-width: 1280px) {
|
|
86
|
+
.visibleOnLarge {
|
|
87
|
+
display: flex;
|
|
88
|
+
}
|
|
89
|
+
.visibleOnSmall {
|
|
90
|
+
display: none;
|
|
91
|
+
}
|
|
92
|
+
.extraContainer {
|
|
93
|
+
margin: 1rem;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
@media (max-width: 1279px) {
|
|
98
|
+
.visibleOnLarge {
|
|
99
|
+
display: none;
|
|
100
|
+
}
|
|
101
|
+
.visibleOnSmall {
|
|
102
|
+
display: flex;
|
|
103
|
+
}
|
|
104
|
+
.extraContainer {
|
|
105
|
+
margin: 2rem 0.2rem 0.2rem 0.2rem;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import styles from './TWGBadge.module.css';
|
|
2
|
+
|
|
3
|
+
interface TWGBadgeProps {
|
|
4
|
+
visibleOnLarge?: boolean;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
const TWGBadge = ({ visibleOnLarge }: TWGBadgeProps) => {
|
|
8
|
+
const visibilityClass = visibleOnLarge
|
|
9
|
+
? styles.visibleOnLarge
|
|
10
|
+
: styles.visibleOnSmall;
|
|
11
|
+
|
|
12
|
+
return (
|
|
13
|
+
<div className={[styles.extraContainer, visibilityClass].join(' ')}>
|
|
14
|
+
<span className={styles.extraText}>We are TheWidlarzGroup</span>
|
|
15
|
+
<a
|
|
16
|
+
target="_blank"
|
|
17
|
+
href="https://www.thewidlarzgroup.com/?utm_source=rnv&utm_medium=docs&utm_campaign=badge&utm_id=enterprise#Contact"
|
|
18
|
+
className={styles.extraButton}
|
|
19
|
+
rel="noreferrer"
|
|
20
|
+
>
|
|
21
|
+
Premium support →
|
|
22
|
+
</a>
|
|
23
|
+
</div>
|
|
24
|
+
);
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export default TWGBadge;
|