@wso2/oxygen-ui 0.0.1-alpha.9 → 0.1.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/.ai/AGENTS.md +78 -0
- package/.ai/components.md +798 -0
- package/.ai/migration.md +279 -0
- package/.ai/patterns.md +1185 -0
- package/.ai/theming.md +318 -0
- package/.claude/components.md +798 -0
- package/.claude/migration.md +279 -0
- package/.claude/patterns.md +1185 -0
- package/.claude/skills/oxygen-component/SKILL.md +141 -0
- package/.claude/skills/oxygen-form/SKILL.md +410 -0
- package/.claude/skills/oxygen-layout/SKILL.md +233 -0
- package/.claude/skills/oxygen-migrate/SKILL.md +277 -0
- package/.claude/theming.md +318 -0
- package/README.md +182 -2
- package/bin/cli.js +480 -0
- package/dist/animations/ParticleBackground/ParticleBackground.d.ts +66 -0
- package/dist/animations/ParticleBackground/index.d.ts +19 -0
- package/dist/animations/index.d.ts +18 -0
- package/dist/components/AppShell/AppShell.d.ts +69 -0
- package/dist/components/AppShell/AppShellFooter.d.ts +41 -0
- package/dist/components/AppShell/AppShellMain.d.ts +41 -0
- package/dist/components/AppShell/AppShellNavbar.d.ts +41 -0
- package/dist/components/AppShell/AppShellNotificationPanel.d.ts +41 -0
- package/dist/components/AppShell/AppShellSidebar.d.ts +41 -0
- package/dist/components/AppShell/index.d.ts +29 -0
- package/dist/components/CodeBlock/CodeBlock.d.ts +47 -0
- package/dist/components/CodeBlock/index.d.ts +19 -0
- package/dist/components/ColorSchemeImage/index.d.ts +19 -0
- package/dist/components/ColorSchemeToggle/index.d.ts +18 -0
- package/dist/components/ComplexSelect/ComplexSelect.d.ts +25 -0
- package/dist/components/ComplexSelect/ComplexSelectDivider.d.ts +4 -0
- package/dist/components/ComplexSelect/ComplexSelectListHeader.d.ts +7 -0
- package/dist/components/ComplexSelect/ComplexSelectMenuItem.d.ts +16 -0
- package/dist/components/ComplexSelect/ComplexSelectMenuItemAvatar.d.ts +7 -0
- package/dist/components/ComplexSelect/ComplexSelectMenuItemIcon.d.ts +7 -0
- package/dist/components/ComplexSelect/ComplexSelectMenuItemText.d.ts +8 -0
- package/dist/components/ComplexSelect/index.d.ts +21 -0
- package/dist/components/Footer/Footer.d.ts +71 -0
- package/dist/components/Footer/index.d.ts +19 -0
- package/dist/components/Form/CardButton.d.ts +30 -0
- package/dist/components/Form/ElementWrapper.d.ts +24 -0
- package/dist/components/Form/Section.d.ts +21 -0
- package/dist/components/Form/Stack.d.ts +19 -0
- package/dist/components/Form/Typography.d.ts +21 -0
- package/dist/components/Form/Wizard.d.ts +27 -0
- package/dist/components/Form/index.d.ts +38 -0
- package/dist/components/Header/Header.d.ts +89 -0
- package/dist/components/Header/HeaderActions.d.ts +42 -0
- package/dist/components/Header/HeaderBrand.d.ts +48 -0
- package/dist/components/Header/HeaderBrandLogo.d.ts +45 -0
- package/dist/components/Header/HeaderBrandTitle.d.ts +45 -0
- package/dist/components/Header/HeaderSwitchers.d.ts +45 -0
- package/dist/components/Header/HeaderToggle.d.ts +52 -0
- package/dist/components/Header/context.d.ts +34 -0
- package/dist/components/Header/index.d.ts +33 -0
- package/dist/components/ListingTable/ListingTable/ListingTable.d.ts +54 -0
- package/dist/components/ListingTable/ListingTable/ListingTableBody.d.ts +6 -0
- package/dist/components/ListingTable/ListingTable/ListingTableCell.d.ts +15 -0
- package/dist/components/ListingTable/ListingTable/ListingTableContainer.d.ts +17 -0
- package/dist/components/ListingTable/ListingTable/ListingTableFooter.d.ts +6 -0
- package/dist/components/ListingTable/ListingTable/ListingTableHead.d.ts +6 -0
- package/dist/components/ListingTable/ListingTable/ListingTableRow.d.ts +18 -0
- package/dist/components/ListingTable/ListingTable/index.d.ts +21 -0
- package/dist/components/ListingTable/ListingTableProvider.d.ts +28 -0
- package/dist/components/ListingTable/context.d.ts +78 -0
- package/dist/components/ListingTable/index.d.ts +22 -0
- package/dist/components/ListingTable/shared/ListingTableCellIcon.d.ts +31 -0
- package/dist/components/ListingTable/shared/ListingTableDensityControl.d.ts +26 -0
- package/dist/components/ListingTable/shared/ListingTableEmptyState.d.ts +32 -0
- package/dist/components/ListingTable/shared/ListingTableRowActions.d.ts +24 -0
- package/dist/components/ListingTable/shared/ListingTableSortLabel.d.ts +37 -0
- package/dist/components/ListingTable/shared/ListingTableToolbar.d.ts +52 -0
- package/dist/components/ListingTable/shared/index.d.ts +14 -0
- package/dist/components/ListingTable/shared/types.d.ts +5 -0
- package/dist/components/NotificationBanner/NotificationBanner.d.ts +69 -0
- package/dist/components/NotificationBanner/index.d.ts +19 -0
- package/dist/components/NotificationPanel/NotificationActions.d.ts +44 -0
- package/dist/components/NotificationPanel/NotificationEmptyState.d.ts +41 -0
- package/dist/components/NotificationPanel/NotificationHeader.d.ts +47 -0
- package/dist/components/NotificationPanel/NotificationHeaderBadge.d.ts +46 -0
- package/dist/components/NotificationPanel/NotificationHeaderClose.d.ts +46 -0
- package/dist/components/NotificationPanel/NotificationHeaderIcon.d.ts +43 -0
- package/dist/components/NotificationPanel/NotificationHeaderTitle.d.ts +43 -0
- package/dist/components/NotificationPanel/NotificationItem.d.ts +64 -0
- package/dist/components/NotificationPanel/NotificationItemAction.d.ts +46 -0
- package/dist/components/NotificationPanel/NotificationItemAvatar.d.ts +44 -0
- package/dist/components/NotificationPanel/NotificationItemContext.d.ts +52 -0
- package/dist/components/NotificationPanel/NotificationItemMessage.d.ts +47 -0
- package/dist/components/NotificationPanel/NotificationItemTimestamp.d.ts +46 -0
- package/dist/components/NotificationPanel/NotificationItemTitle.d.ts +49 -0
- package/dist/components/NotificationPanel/NotificationList.d.ts +37 -0
- package/dist/components/NotificationPanel/NotificationPanel.d.ts +122 -0
- package/dist/components/NotificationPanel/NotificationTabs.d.ts +51 -0
- package/dist/components/NotificationPanel/context.d.ts +34 -0
- package/dist/components/NotificationPanel/index.d.ts +55 -0
- package/dist/components/NotificationPanel/utils.d.ts +46 -0
- package/dist/components/PageContent/PageContent.d.ts +71 -0
- package/dist/components/PageContent/index.d.ts +2 -0
- package/dist/components/PageTitle/PageTitle.d.ts +34 -0
- package/dist/components/PageTitle/PageTitleAvatar.d.ts +16 -0
- package/dist/components/PageTitle/PageTitleHeader.d.ts +16 -0
- package/dist/components/PageTitle/PageTitleLink.d.ts +20 -0
- package/dist/components/PageTitle/PageTitleSubHeader.d.ts +16 -0
- package/dist/components/PageTitle/index.d.ts +27 -0
- package/dist/components/SearchBar/SearchBar.d.ts +5 -0
- package/dist/components/SearchBar/SearchBarWithAdvancedFilter.d.ts +26 -0
- package/dist/components/Sidebar/Sidebar.d.ts +120 -0
- package/dist/components/Sidebar/SidebarCategory.d.ts +47 -0
- package/dist/components/Sidebar/SidebarCategoryLabel.d.ts +47 -0
- package/dist/components/Sidebar/SidebarFooter.d.ts +38 -0
- package/dist/components/Sidebar/SidebarItem.d.ts +61 -0
- package/dist/components/Sidebar/SidebarItemBadge.d.ts +47 -0
- package/dist/components/Sidebar/SidebarItemContext.d.ts +49 -0
- package/dist/components/Sidebar/SidebarItemIcon.d.ts +47 -0
- package/dist/components/Sidebar/SidebarItemLabel.d.ts +44 -0
- package/dist/components/Sidebar/SidebarNav.d.ts +42 -0
- package/dist/components/Sidebar/SidebarUser.d.ts +57 -0
- package/dist/components/Sidebar/SidebarUserAvatar.d.ts +51 -0
- package/dist/components/Sidebar/SidebarUserEmail.d.ts +48 -0
- package/dist/components/Sidebar/SidebarUserName.d.ts +45 -0
- package/dist/components/Sidebar/context.d.ts +42 -0
- package/dist/components/Sidebar/index.d.ts +47 -0
- package/dist/components/StatCard/StatCard.d.ts +48 -0
- package/dist/components/StatCard/index.d.ts +2 -0
- package/dist/components/ThemeSwitcher/ThemeSelect.d.ts +37 -0
- package/dist/components/ThemeSwitcher/ThemeSwitcher.d.ts +65 -0
- package/dist/components/ThemeSwitcher/index.d.ts +4 -0
- package/dist/components/UserMenu/UserMenu.d.ts +74 -0
- package/dist/components/UserMenu/index.d.ts +19 -0
- package/dist/components/index.d.ts +54 -0
- package/dist/contexts/OxygenUIThemeProvider/OxygenUIThemeProvider.d.ts +58 -3
- package/dist/contexts/OxygenUIThemeProvider/index.d.ts +20 -0
- package/dist/contexts/index.d.ts +19 -0
- package/dist/hooks/index.d.ts +22 -0
- package/dist/hooks/useAppShell/index.d.ts +19 -0
- package/dist/hooks/useAppShell/useAppShell.d.ts +81 -0
- package/dist/hooks/useNotifications/index.d.ts +19 -0
- package/dist/hooks/useNotifications/useNotifications.d.ts +105 -0
- package/dist/hooks/useThemeContent/index.d.ts +18 -0
- package/dist/hooks/useThemeContent/useThemeContent.d.ts +57 -0
- package/dist/index.d.ts +8 -4
- package/dist/index.js +5172 -252
- package/dist/index.js.map +4 -4
- package/dist/layouts/Layout.d.ts +3 -0
- package/dist/layouts/LayoutContent.d.ts +3 -0
- package/dist/layouts/LayoutHeader.d.ts +3 -0
- package/dist/layouts/LayoutNavbar.d.ts +3 -0
- package/dist/layouts/LayoutSidebar.d.ts +3 -0
- package/dist/styles/Themes/AcrylicBaseTheme.d.ts +25 -0
- package/dist/styles/Themes/AcrylicOrangeTheme.d.ts +17 -0
- package/dist/styles/Themes/AcrylicPurpleTheme.d.ts +20 -0
- package/dist/styles/Themes/ClassicTheme.d.ts +24 -0
- package/dist/styles/Themes/HighContrastTheme.d.ts +20 -0
- package/dist/styles/Themes/OxygenThemeBase.d.ts +70 -0
- package/dist/styles/Themes/index.d.ts +22 -0
- package/dist/styles/index.d.ts +18 -0
- package/dist/utils/formatRelativeTime.d.ts +34 -0
- package/dist/utils/index.d.ts +19 -0
- package/dist/utils/pxToRem.d.ts +23 -0
- package/package.json +20 -12
- package/dist/components/ColorSchemeImage/ColorSchemeImage.js +0 -57
- package/dist/components/ColorSchemeImage/ColorSchemeImage.js.map +0 -7
- package/dist/components/ColorSchemeToggle/ColorSchemeToggle.js +0 -76
- package/dist/components/ColorSchemeToggle/ColorSchemeToggle.js.map +0 -7
- package/dist/contexts/OxygenUIThemeProvider/OxygenUIThemeProvider.js +0 -378
- package/dist/contexts/OxygenUIThemeProvider/OxygenUIThemeProvider.js.map +0 -7
- package/dist/styles/OxygenTheme/OxygenTheme.d.ts +0 -38
- package/dist/styles/OxygenTheme/OxygenTheme.js +0 -356
- package/dist/styles/OxygenTheme/OxygenTheme.js.map +0 -7
package/bin/cli.js
ADDED
|
@@ -0,0 +1,480 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
5
|
+
*
|
|
6
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
7
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
8
|
+
* in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing,
|
|
14
|
+
* software distributed under the License is distributed on an
|
|
15
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
16
|
+
* KIND, either express or implied. See the License for the
|
|
17
|
+
* specific language governing permissions and limitations
|
|
18
|
+
* under the License.
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
import { fileURLToPath } from 'url';
|
|
22
|
+
import { dirname, join, resolve } from 'path';
|
|
23
|
+
import {
|
|
24
|
+
existsSync,
|
|
25
|
+
mkdirSync,
|
|
26
|
+
copyFileSync,
|
|
27
|
+
readFileSync,
|
|
28
|
+
writeFileSync,
|
|
29
|
+
readdirSync,
|
|
30
|
+
statSync,
|
|
31
|
+
} from 'fs';
|
|
32
|
+
|
|
33
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
34
|
+
const __dirname = dirname(__filename);
|
|
35
|
+
|
|
36
|
+
// ============================================================================
|
|
37
|
+
// Path Configuration
|
|
38
|
+
// ============================================================================
|
|
39
|
+
|
|
40
|
+
// Universal AI files (default mode)
|
|
41
|
+
const aiSourceDir = join(__dirname, '..', '.ai');
|
|
42
|
+
const aiTargetDir = resolve(process.cwd(), '.ai', 'oxygen-ui');
|
|
43
|
+
const agentsTargetFile = resolve(process.cwd(), 'AGENTS.md');
|
|
44
|
+
|
|
45
|
+
// Claude-specific files (--claude mode)
|
|
46
|
+
const claudeSourceDir = join(__dirname, '..', '.claude');
|
|
47
|
+
const claudeTargetDir = resolve(process.cwd(), '.claude', 'oxygen-ui');
|
|
48
|
+
const skillsSourceDir = join(__dirname, '..', '.claude', 'skills');
|
|
49
|
+
const skillsTargetDir = resolve(process.cwd(), '.claude', 'skills');
|
|
50
|
+
const rootClaudeMd = resolve(process.cwd(), 'CLAUDE.md');
|
|
51
|
+
|
|
52
|
+
// ============================================================================
|
|
53
|
+
// Markers and References
|
|
54
|
+
// ============================================================================
|
|
55
|
+
|
|
56
|
+
// Import reference for root CLAUDE.md (Claude mode)
|
|
57
|
+
const CLAUDE_IMPORT_REFERENCE = `
|
|
58
|
+
## Oxygen UI
|
|
59
|
+
|
|
60
|
+
For Oxygen UI component guidelines and patterns, see [.claude/oxygen-ui/CLAUDE.md](.claude/oxygen-ui/CLAUDE.md).
|
|
61
|
+
`;
|
|
62
|
+
|
|
63
|
+
// Import reference for root AGENTS.md (default mode)
|
|
64
|
+
const AGENTS_IMPORT_REFERENCE = `
|
|
65
|
+
## Oxygen UI
|
|
66
|
+
|
|
67
|
+
For Oxygen UI component guidelines and patterns, see [.ai/oxygen-ui/components.md](.ai/oxygen-ui/components.md).
|
|
68
|
+
`;
|
|
69
|
+
|
|
70
|
+
// Markers to detect if import reference already exists
|
|
71
|
+
const CLAUDE_IMPORT_MARKER = '.claude/oxygen-ui/CLAUDE.md';
|
|
72
|
+
const AGENTS_IMPORT_MARKER = '.ai/oxygen-ui/';
|
|
73
|
+
|
|
74
|
+
// ============================================================================
|
|
75
|
+
// Argument Parsing
|
|
76
|
+
// ============================================================================
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Parse command line arguments
|
|
80
|
+
*/
|
|
81
|
+
function parseArgs() {
|
|
82
|
+
const args = process.argv.slice(2);
|
|
83
|
+
const command = args.find(arg => !arg.startsWith('--'));
|
|
84
|
+
const flags = {
|
|
85
|
+
claude: args.includes('--claude'),
|
|
86
|
+
};
|
|
87
|
+
return { command, flags };
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
// ============================================================================
|
|
91
|
+
// File Operations
|
|
92
|
+
// ============================================================================
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Copy all files from a source directory to target (non-recursive)
|
|
96
|
+
*/
|
|
97
|
+
function copyFiles(sourceDir, targetDir, fileExtensions = ['.md']) {
|
|
98
|
+
// Create target directory if it doesn't exist
|
|
99
|
+
if (!existsSync(targetDir)) {
|
|
100
|
+
mkdirSync(targetDir, { recursive: true });
|
|
101
|
+
console.log(` Created directory: ${targetDir}`);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
// Check if source directory exists
|
|
105
|
+
if (!existsSync(sourceDir)) {
|
|
106
|
+
console.error(` Error: Source directory not found: ${sourceDir}`);
|
|
107
|
+
return 0;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
// Copy files from source to target
|
|
111
|
+
const entries = readdirSync(sourceDir);
|
|
112
|
+
let copiedCount = 0;
|
|
113
|
+
|
|
114
|
+
for (const entry of entries) {
|
|
115
|
+
const sourcePath = join(sourceDir, entry);
|
|
116
|
+
const targetPath = join(targetDir, entry);
|
|
117
|
+
const stat = statSync(sourcePath);
|
|
118
|
+
|
|
119
|
+
// Only copy files with matching extensions
|
|
120
|
+
if (stat.isFile()) {
|
|
121
|
+
const hasMatchingExtension = fileExtensions.some(ext => entry.endsWith(ext));
|
|
122
|
+
if (hasMatchingExtension) {
|
|
123
|
+
try {
|
|
124
|
+
copyFileSync(sourcePath, targetPath);
|
|
125
|
+
console.log(` Copied: ${entry}`);
|
|
126
|
+
copiedCount++;
|
|
127
|
+
} catch (error) {
|
|
128
|
+
console.error(` Error copying ${entry}: ${error.message}`);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
return copiedCount;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Recursively copy a directory (for skills)
|
|
139
|
+
*/
|
|
140
|
+
function copyDirRecursive(sourceDir, targetDir) {
|
|
141
|
+
// Create target directory if it doesn't exist
|
|
142
|
+
if (!existsSync(targetDir)) {
|
|
143
|
+
mkdirSync(targetDir, { recursive: true });
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
// Check if source directory exists
|
|
147
|
+
if (!existsSync(sourceDir)) {
|
|
148
|
+
return 0;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
const entries = readdirSync(sourceDir);
|
|
152
|
+
let copiedCount = 0;
|
|
153
|
+
|
|
154
|
+
for (const entry of entries) {
|
|
155
|
+
const sourcePath = join(sourceDir, entry);
|
|
156
|
+
const targetPath = join(targetDir, entry);
|
|
157
|
+
const stat = statSync(sourcePath);
|
|
158
|
+
|
|
159
|
+
if (stat.isDirectory()) {
|
|
160
|
+
copiedCount += copyDirRecursive(sourcePath, targetPath);
|
|
161
|
+
} else if (stat.isFile()) {
|
|
162
|
+
try {
|
|
163
|
+
copyFileSync(sourcePath, targetPath);
|
|
164
|
+
copiedCount++;
|
|
165
|
+
} catch (error) {
|
|
166
|
+
console.error(` Error copying ${entry}: ${error.message}`);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
return copiedCount;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* Copy AGENTS.md to project root
|
|
176
|
+
*/
|
|
177
|
+
function copyAgentsMd() {
|
|
178
|
+
const sourceFile = join(aiSourceDir, 'AGENTS.md');
|
|
179
|
+
|
|
180
|
+
if (!existsSync(sourceFile)) {
|
|
181
|
+
console.error(' Error: Source AGENTS.md not found');
|
|
182
|
+
return false;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
// Check if AGENTS.md exists
|
|
186
|
+
if (existsSync(agentsTargetFile)) {
|
|
187
|
+
const content = readFileSync(agentsTargetFile, 'utf-8');
|
|
188
|
+
|
|
189
|
+
// Check if import reference already exists
|
|
190
|
+
if (content.includes(AGENTS_IMPORT_MARKER)) {
|
|
191
|
+
console.log(' Root AGENTS.md already contains Oxygen UI reference.');
|
|
192
|
+
// Still copy the file content
|
|
193
|
+
const sourceContent = readFileSync(sourceFile, 'utf-8');
|
|
194
|
+
writeFileSync(agentsTargetFile, content);
|
|
195
|
+
return false;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
// Append import reference
|
|
199
|
+
writeFileSync(agentsTargetFile, content + AGENTS_IMPORT_REFERENCE);
|
|
200
|
+
console.log(' Updated root AGENTS.md with Oxygen UI reference.');
|
|
201
|
+
return true;
|
|
202
|
+
} else {
|
|
203
|
+
// Copy the AGENTS.md file to project root
|
|
204
|
+
copyFileSync(sourceFile, agentsTargetFile);
|
|
205
|
+
console.log(' Created root AGENTS.md with Oxygen UI guide.');
|
|
206
|
+
return true;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* Update root CLAUDE.md with import reference (Claude mode)
|
|
212
|
+
*/
|
|
213
|
+
function updateRootClaudeMd() {
|
|
214
|
+
// Check if CLAUDE.md exists
|
|
215
|
+
if (existsSync(rootClaudeMd)) {
|
|
216
|
+
const content = readFileSync(rootClaudeMd, 'utf-8');
|
|
217
|
+
|
|
218
|
+
// Check if import reference already exists
|
|
219
|
+
if (content.includes(CLAUDE_IMPORT_MARKER)) {
|
|
220
|
+
console.log(' Root CLAUDE.md already contains Oxygen UI reference.');
|
|
221
|
+
return false;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
// Append import reference
|
|
225
|
+
writeFileSync(rootClaudeMd, content + CLAUDE_IMPORT_REFERENCE);
|
|
226
|
+
console.log(' Updated root CLAUDE.md with Oxygen UI reference.');
|
|
227
|
+
return true;
|
|
228
|
+
} else {
|
|
229
|
+
// Create new CLAUDE.md with import reference
|
|
230
|
+
const newContent = `# Project Guidelines
|
|
231
|
+
${CLAUDE_IMPORT_REFERENCE}`;
|
|
232
|
+
writeFileSync(rootClaudeMd, newContent);
|
|
233
|
+
console.log(' Created root CLAUDE.md with Oxygen UI reference.');
|
|
234
|
+
return true;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* Copy AI files to .ai/oxygen-ui/ (default mode)
|
|
240
|
+
*/
|
|
241
|
+
function copyAiFiles() {
|
|
242
|
+
console.log('\nCopying AI documentation files...\n');
|
|
243
|
+
|
|
244
|
+
const copiedCount = copyFiles(aiSourceDir, aiTargetDir, ['.md']);
|
|
245
|
+
|
|
246
|
+
if (copiedCount > 0) {
|
|
247
|
+
console.log(`\n Copied ${copiedCount} file(s) to .ai/oxygen-ui/\n`);
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
return copiedCount;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* Copy Claude files to .claude/oxygen-ui/ (Claude mode)
|
|
255
|
+
*/
|
|
256
|
+
function copyClaudeFiles() {
|
|
257
|
+
console.log('\nCopying Claude documentation files...\n');
|
|
258
|
+
|
|
259
|
+
const copiedCount = copyFiles(claudeSourceDir, claudeTargetDir, ['.md']);
|
|
260
|
+
|
|
261
|
+
if (copiedCount > 0) {
|
|
262
|
+
console.log(`\n Copied ${copiedCount} file(s) to .claude/oxygen-ui/\n`);
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
return copiedCount;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* Copy skills directories (Claude mode)
|
|
270
|
+
*/
|
|
271
|
+
function copySkillsDir() {
|
|
272
|
+
if (!existsSync(skillsSourceDir)) {
|
|
273
|
+
console.log(' No skills directory found in source.');
|
|
274
|
+
return 0;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
console.log('Copying Claude Code skills...\n');
|
|
278
|
+
|
|
279
|
+
// Get list of skill directories
|
|
280
|
+
const skillDirs = readdirSync(skillsSourceDir).filter(entry => {
|
|
281
|
+
const fullPath = join(skillsSourceDir, entry);
|
|
282
|
+
return statSync(fullPath).isDirectory();
|
|
283
|
+
});
|
|
284
|
+
|
|
285
|
+
let totalCopied = 0;
|
|
286
|
+
|
|
287
|
+
for (const skillDir of skillDirs) {
|
|
288
|
+
const sourceSkillDir = join(skillsSourceDir, skillDir);
|
|
289
|
+
const targetSkillDir = join(skillsTargetDir, skillDir);
|
|
290
|
+
|
|
291
|
+
const copiedCount = copyDirRecursive(sourceSkillDir, targetSkillDir);
|
|
292
|
+
if (copiedCount > 0) {
|
|
293
|
+
console.log(` Copied skill: ${skillDir}`);
|
|
294
|
+
totalCopied += copiedCount;
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
if (totalCopied > 0) {
|
|
299
|
+
console.log(`\n Copied ${skillDirs.length} skill(s) to .claude/skills/\n`);
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
return totalCopied;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
// ============================================================================
|
|
306
|
+
// Commands
|
|
307
|
+
// ============================================================================
|
|
308
|
+
|
|
309
|
+
/**
|
|
310
|
+
* Initialize Oxygen UI AI documentation - Default mode
|
|
311
|
+
*/
|
|
312
|
+
function initDefault() {
|
|
313
|
+
console.log('\nOxygen UI - AI Integration Setup (Universal)\n');
|
|
314
|
+
|
|
315
|
+
// Copy .ai/ files
|
|
316
|
+
copyAiFiles();
|
|
317
|
+
|
|
318
|
+
// Copy/update AGENTS.md
|
|
319
|
+
console.log('Setting up AGENTS.md...\n');
|
|
320
|
+
copyAgentsMd();
|
|
321
|
+
|
|
322
|
+
console.log('\nSetup complete!\n');
|
|
323
|
+
console.log('AI assistants will now have access to Oxygen UI documentation.');
|
|
324
|
+
console.log('Files created:');
|
|
325
|
+
console.log(' - AGENTS.md (root file with quick reference)');
|
|
326
|
+
console.log(' - .ai/oxygen-ui/components.md (component reference)');
|
|
327
|
+
console.log(' - .ai/oxygen-ui/patterns.md (common patterns)');
|
|
328
|
+
console.log(' - .ai/oxygen-ui/theming.md (theme customization)');
|
|
329
|
+
console.log(' - .ai/oxygen-ui/migration.md (migration guide)\n');
|
|
330
|
+
console.log('For Claude Code with skills: npx @wso2/oxygen-ui init --claude\n');
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* Initialize Oxygen UI AI documentation - Claude mode
|
|
335
|
+
*/
|
|
336
|
+
function initClaude() {
|
|
337
|
+
console.log('\nOxygen UI - AI Integration Setup (Claude Code)\n');
|
|
338
|
+
|
|
339
|
+
// Copy .claude/ files
|
|
340
|
+
copyClaudeFiles();
|
|
341
|
+
|
|
342
|
+
// Copy skills
|
|
343
|
+
copySkillsDir();
|
|
344
|
+
|
|
345
|
+
// Update root CLAUDE.md
|
|
346
|
+
console.log('Updating root CLAUDE.md...\n');
|
|
347
|
+
updateRootClaudeMd();
|
|
348
|
+
|
|
349
|
+
console.log('\nSetup complete!\n');
|
|
350
|
+
console.log('Claude Code will now have access to Oxygen UI documentation and skills.');
|
|
351
|
+
console.log('Files created:');
|
|
352
|
+
console.log(' - .claude/oxygen-ui/CLAUDE.md (core instructions)');
|
|
353
|
+
console.log(' - .claude/oxygen-ui/components.md (component reference)');
|
|
354
|
+
console.log(' - .claude/oxygen-ui/patterns.md (common patterns)');
|
|
355
|
+
console.log(' - .claude/oxygen-ui/theming.md (theme customization)');
|
|
356
|
+
console.log(' - .claude/oxygen-ui/migration.md (migration guide)');
|
|
357
|
+
console.log(' - .claude/skills/ (invokable skills)\n');
|
|
358
|
+
console.log('Available skills:');
|
|
359
|
+
console.log(' - /oxygen-component Generate Oxygen UI components');
|
|
360
|
+
console.log(' - /oxygen-layout Generate app layouts');
|
|
361
|
+
console.log(' - /oxygen-form Generate forms with validation');
|
|
362
|
+
console.log(' - /oxygen-migrate Migrate MUI code to Oxygen UI\n');
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
/**
|
|
366
|
+
* Initialize Oxygen UI AI documentation
|
|
367
|
+
*/
|
|
368
|
+
function init(claudeMode) {
|
|
369
|
+
if (claudeMode) {
|
|
370
|
+
initClaude();
|
|
371
|
+
} else {
|
|
372
|
+
initDefault();
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* Update Oxygen UI AI documentation - Default mode
|
|
378
|
+
*/
|
|
379
|
+
function updateDefault() {
|
|
380
|
+
console.log('\nOxygen UI - Updating AI Documentation (Universal)\n');
|
|
381
|
+
|
|
382
|
+
// Refresh .ai/ files
|
|
383
|
+
copyAiFiles();
|
|
384
|
+
|
|
385
|
+
console.log('Update complete!\n');
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
/**
|
|
389
|
+
* Update Oxygen UI AI documentation - Claude mode
|
|
390
|
+
*/
|
|
391
|
+
function updateClaude() {
|
|
392
|
+
console.log('\nOxygen UI - Updating AI Documentation (Claude Code)\n');
|
|
393
|
+
|
|
394
|
+
// Refresh .claude/ files
|
|
395
|
+
copyClaudeFiles();
|
|
396
|
+
|
|
397
|
+
// Refresh skills
|
|
398
|
+
copySkillsDir();
|
|
399
|
+
|
|
400
|
+
console.log('Update complete!\n');
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
/**
|
|
404
|
+
* Update Oxygen UI AI documentation
|
|
405
|
+
*/
|
|
406
|
+
function update(claudeMode) {
|
|
407
|
+
if (claudeMode) {
|
|
408
|
+
updateClaude();
|
|
409
|
+
} else {
|
|
410
|
+
updateDefault();
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
/**
|
|
415
|
+
* Display help message
|
|
416
|
+
*/
|
|
417
|
+
function showHelp() {
|
|
418
|
+
console.log(`
|
|
419
|
+
Oxygen UI CLI - AI Integration Tools
|
|
420
|
+
|
|
421
|
+
Usage: npx @wso2/oxygen-ui <command> [options]
|
|
422
|
+
|
|
423
|
+
Commands:
|
|
424
|
+
init Set up AI documentation in your project
|
|
425
|
+
update Refresh AI documentation after package upgrade
|
|
426
|
+
help Show this help message
|
|
427
|
+
|
|
428
|
+
Options:
|
|
429
|
+
--claude Use Claude Code mode (includes skills and Claude-specific docs)
|
|
430
|
+
|
|
431
|
+
Modes:
|
|
432
|
+
Default (no flag):
|
|
433
|
+
- Creates AGENTS.md at project root
|
|
434
|
+
- Creates .ai/oxygen-ui/ folder with documentation
|
|
435
|
+
- Works with any AI assistant
|
|
436
|
+
|
|
437
|
+
Claude (--claude flag):
|
|
438
|
+
- Creates .claude/oxygen-ui/ folder with documentation
|
|
439
|
+
- Creates .claude/skills/ with invokable skills
|
|
440
|
+
- Updates root CLAUDE.md with reference
|
|
441
|
+
|
|
442
|
+
Examples:
|
|
443
|
+
npx @wso2/oxygen-ui init # Universal setup
|
|
444
|
+
npx @wso2/oxygen-ui init --claude # Claude Code setup with skills
|
|
445
|
+
npx @wso2/oxygen-ui update # Refresh universal docs
|
|
446
|
+
npx @wso2/oxygen-ui update --claude # Refresh Claude docs and skills
|
|
447
|
+
|
|
448
|
+
Available Skills (Claude mode only):
|
|
449
|
+
/oxygen-component Generate Oxygen UI React components
|
|
450
|
+
/oxygen-layout Generate app layouts with AppShell
|
|
451
|
+
/oxygen-form Generate forms with validation
|
|
452
|
+
/oxygen-migrate Migrate existing MUI code
|
|
453
|
+
`);
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
// ============================================================================
|
|
457
|
+
// Main CLI Entry Point
|
|
458
|
+
// ============================================================================
|
|
459
|
+
|
|
460
|
+
const { command, flags } = parseArgs();
|
|
461
|
+
|
|
462
|
+
switch (command) {
|
|
463
|
+
case 'init':
|
|
464
|
+
init(flags.claude);
|
|
465
|
+
break;
|
|
466
|
+
case 'update':
|
|
467
|
+
update(flags.claude);
|
|
468
|
+
break;
|
|
469
|
+
case 'help':
|
|
470
|
+
case '--help':
|
|
471
|
+
case '-h':
|
|
472
|
+
showHelp();
|
|
473
|
+
break;
|
|
474
|
+
default:
|
|
475
|
+
if (command) {
|
|
476
|
+
console.error(`Unknown command: ${command}\n`);
|
|
477
|
+
}
|
|
478
|
+
showHelp();
|
|
479
|
+
process.exit(command ? 1 : 0);
|
|
480
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
export interface ParticleBackgroundProps {
|
|
19
|
+
/**
|
|
20
|
+
* Opacity of the canvas
|
|
21
|
+
* @default 0.5
|
|
22
|
+
*/
|
|
23
|
+
opacity?: number;
|
|
24
|
+
/**
|
|
25
|
+
* Particles per 10,000 px^2 (scales with screen size)
|
|
26
|
+
* @default 0.12
|
|
27
|
+
*/
|
|
28
|
+
baseDensity?: number;
|
|
29
|
+
/**
|
|
30
|
+
* Maximum speed in px per frame
|
|
31
|
+
* @default 0.3
|
|
32
|
+
*/
|
|
33
|
+
maxSpeed?: number;
|
|
34
|
+
/**
|
|
35
|
+
* Min and max radius of particles
|
|
36
|
+
* @default [2.0, 3.2]
|
|
37
|
+
*/
|
|
38
|
+
radius?: [number, number];
|
|
39
|
+
/**
|
|
40
|
+
* Maximum distance to draw line between particles
|
|
41
|
+
* @default 210
|
|
42
|
+
*/
|
|
43
|
+
linkDist?: number;
|
|
44
|
+
/**
|
|
45
|
+
* Base opacity of the lines
|
|
46
|
+
* @default 0.2
|
|
47
|
+
*/
|
|
48
|
+
linkAlpha?: number;
|
|
49
|
+
/**
|
|
50
|
+
* Radius of mouse influence
|
|
51
|
+
* @default 110
|
|
52
|
+
*/
|
|
53
|
+
mouseInfluence?: number;
|
|
54
|
+
/**
|
|
55
|
+
* How strong the repel effect is
|
|
56
|
+
* @default 0.35
|
|
57
|
+
*/
|
|
58
|
+
repelStrength?: number;
|
|
59
|
+
/**
|
|
60
|
+
* Impulse on click
|
|
61
|
+
* @default 120
|
|
62
|
+
*/
|
|
63
|
+
clickBurst?: number;
|
|
64
|
+
}
|
|
65
|
+
export declare const ParticleBackground: React.FC<ParticleBackgroundProps>;
|
|
66
|
+
export default ParticleBackground;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
export { ParticleBackground, default } from './ParticleBackground';
|
|
19
|
+
export type { ParticleBackgroundProps } from './ParticleBackground';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
export * from './ParticleBackground';
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
import * as React from 'react';
|
|
19
|
+
import type { SxProps, Theme } from '@mui/material/styles';
|
|
20
|
+
import { AppShellNavbar } from './AppShellNavbar';
|
|
21
|
+
import { AppShellSidebar } from './AppShellSidebar';
|
|
22
|
+
import { AppShellMain } from './AppShellMain';
|
|
23
|
+
import { AppShellFooter } from './AppShellFooter';
|
|
24
|
+
import { AppShellNotificationPanel } from './AppShellNotificationPanel';
|
|
25
|
+
/**
|
|
26
|
+
* Props for AppShell component.
|
|
27
|
+
*/
|
|
28
|
+
export interface AppShellProps {
|
|
29
|
+
/** AppShell slot components (Navbar, Sidebar, Main, Footer, NotificationPanel) */
|
|
30
|
+
children: React.ReactNode;
|
|
31
|
+
/** Additional sx props for the root container */
|
|
32
|
+
sx?: SxProps<Theme>;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* AppShell - Convenience wrapper for building application layouts.
|
|
36
|
+
*
|
|
37
|
+
* Uses a compound component pattern where children define the layout slots.
|
|
38
|
+
* This reduces boilerplate compared to manually composing Layout components.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```tsx
|
|
42
|
+
* <AppShell>
|
|
43
|
+
* <AppShell.Navbar>
|
|
44
|
+
* <Header>...</Header>
|
|
45
|
+
* </AppShell.Navbar>
|
|
46
|
+
* <AppShell.Sidebar>
|
|
47
|
+
* <Sidebar collapsed={collapsed}>...</Sidebar>
|
|
48
|
+
* </AppShell.Sidebar>
|
|
49
|
+
* <AppShell.Main>
|
|
50
|
+
* <Outlet />
|
|
51
|
+
* </AppShell.Main>
|
|
52
|
+
* <AppShell.Footer>
|
|
53
|
+
* <Footer companyName="WSO2 LLC" />
|
|
54
|
+
* </AppShell.Footer>
|
|
55
|
+
* <AppShell.NotificationPanel>
|
|
56
|
+
* <NotificationPanel open={open} onClose={onClose}>...</NotificationPanel>
|
|
57
|
+
* </AppShell.NotificationPanel>
|
|
58
|
+
* </AppShell>
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
61
|
+
declare const AppShell: React.FC<AppShellProps> & {
|
|
62
|
+
Navbar: typeof AppShellNavbar;
|
|
63
|
+
Sidebar: typeof AppShellSidebar;
|
|
64
|
+
Main: typeof AppShellMain;
|
|
65
|
+
Footer: typeof AppShellFooter;
|
|
66
|
+
NotificationPanel: typeof AppShellNotificationPanel;
|
|
67
|
+
};
|
|
68
|
+
export { AppShell };
|
|
69
|
+
export default AppShell;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
import * as React from 'react';
|
|
19
|
+
/**
|
|
20
|
+
* Props for AppShellFooter component.
|
|
21
|
+
*/
|
|
22
|
+
export interface AppShellFooterProps {
|
|
23
|
+
/** Footer content (typically Footer component) */
|
|
24
|
+
children: React.ReactNode;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* AppShellFooter - Slot component for the footer area.
|
|
28
|
+
*
|
|
29
|
+
* Used as a child of AppShell to define the bottom footer.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```tsx
|
|
33
|
+
* <AppShell>
|
|
34
|
+
* <AppShell.Footer>
|
|
35
|
+
* <Footer companyName="WSO2 LLC" />
|
|
36
|
+
* </AppShell.Footer>
|
|
37
|
+
* </AppShell>
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
export declare const AppShellFooter: React.FC<AppShellFooterProps>;
|
|
41
|
+
export default AppShellFooter;
|