@apexhub/apex-ui-react-source 1.2.0 → 1.2.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 +18 -4
- package/bin/apex-ui-react-source.mjs +208 -24
- package/dist/files/AGENTS.md +2 -2
- package/dist/files/alert/llm.txt +1 -1
- package/dist/files/apex-provider/llm.txt +1 -1
- package/dist/files/auto-complete/llm.txt +1 -1
- package/dist/files/avatar/llm.txt +1 -1
- package/dist/files/breadcrumb/llm.txt +1 -1
- package/dist/files/button/llm.txt +1 -1
- package/dist/files/card/llm.txt +1 -1
- package/dist/files/cascader/llm.txt +1 -1
- package/dist/files/checkbox/llm.txt +1 -1
- package/dist/files/collapse/llm.txt +1 -1
- package/dist/files/date-picker/llm.txt +1 -1
- package/dist/files/divider/llm.txt +1 -1
- package/dist/files/drawer/llm.txt +1 -1
- package/dist/files/dropdown/llm.txt +1 -1
- package/dist/files/form/llm.txt +1 -1
- package/dist/files/grid/llm.txt +1 -1
- package/dist/files/image/llm.txt +1 -1
- package/dist/files/input/llm.txt +1 -1
- package/dist/files/input-number/llm.txt +1 -1
- package/dist/files/layout/llm.txt +1 -1
- package/dist/files/menu/llm.txt +1 -1
- package/dist/files/message/llm.txt +1 -1
- package/dist/files/modal/llm.txt +1 -1
- package/dist/files/notification/llm.txt +1 -1
- package/dist/files/pagination/llm.txt +1 -1
- package/dist/files/popover/llm.txt +1 -1
- package/dist/files/progress/llm.txt +1 -1
- package/dist/files/radio/llm.txt +1 -1
- package/dist/files/rate/llm.txt +1 -1
- package/dist/files/select/llm.txt +1 -1
- package/dist/files/skeleton/llm.txt +1 -1
- package/dist/files/spin/llm.txt +1 -1
- package/dist/files/steps/llm.txt +1 -1
- package/dist/files/switch/llm.txt +1 -1
- package/dist/files/table/llm.txt +1 -1
- package/dist/files/tabs/llm.txt +1 -1
- package/dist/files/tag/llm.txt +1 -1
- package/dist/files/tooltip/llm.txt +1 -1
- package/dist/files/tree/llm.txt +1 -1
- package/dist/files/tree-select/llm.txt +1 -1
- package/dist/files/typography/llm.txt +1 -1
- package/dist/files/upload/llm.txt +1 -1
- package/dist/manifest.json +44 -44
- package/package.json +11 -24
- package/template/_gitignore +5 -0
- package/template/index.html +12 -0
- package/template/src/App.tsx +25 -0
- package/template/src/main.tsx +14 -0
- package/template/tsconfig.app.json +22 -0
- package/template/tsconfig.json +4 -0
- package/template/tsconfig.node.json +16 -0
- package/template/vite.config.ts +8 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Button } from '@/components/apex/button'
|
|
2
|
+
import { Card } from '@/components/apex/card'
|
|
3
|
+
import { message } from '@/components/apex/message'
|
|
4
|
+
|
|
5
|
+
export default function App() {
|
|
6
|
+
return (
|
|
7
|
+
<main
|
|
8
|
+
style={{
|
|
9
|
+
boxSizing: 'border-box',
|
|
10
|
+
minHeight: '100vh',
|
|
11
|
+
padding: 'var(--apex-spacing-24)',
|
|
12
|
+
background: 'var(--apex-fill-neutral-primary)',
|
|
13
|
+
}}
|
|
14
|
+
>
|
|
15
|
+
<Card title="{{title}}" style={{ maxWidth: 480, margin: '0 auto' }}>
|
|
16
|
+
<p style={{ marginTop: 0, color: 'var(--apex-text-neutral-secondary)' }}>
|
|
17
|
+
{{intro}}
|
|
18
|
+
</p>
|
|
19
|
+
<Button type="primary" onClick={() => message.success('{{toast}}')}>
|
|
20
|
+
{{button}}
|
|
21
|
+
</Button>
|
|
22
|
+
</Card>
|
|
23
|
+
</main>
|
|
24
|
+
)
|
|
25
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { StrictMode } from 'react'
|
|
2
|
+
import { createRoot } from 'react-dom/client'
|
|
3
|
+
import '@/components/apex/global.css'
|
|
4
|
+
import { ApexProvider } from '@/components/apex/apex-provider'
|
|
5
|
+
import zhCN from '@/components/apex/locale/zh_CN'
|
|
6
|
+
import App from './App'
|
|
7
|
+
|
|
8
|
+
createRoot(document.getElementById('root')!).render(
|
|
9
|
+
<StrictMode>
|
|
10
|
+
<ApexProvider theme="light" locale={zhCN}>
|
|
11
|
+
<App />
|
|
12
|
+
</ApexProvider>
|
|
13
|
+
</StrictMode>,
|
|
14
|
+
)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
|
|
4
|
+
"target": "es2023",
|
|
5
|
+
"lib": ["ES2023", "DOM"],
|
|
6
|
+
"module": "esnext",
|
|
7
|
+
"types": ["vite/client"],
|
|
8
|
+
"skipLibCheck": true,
|
|
9
|
+
"paths": { "@/*": ["./src/*"] },
|
|
10
|
+
|
|
11
|
+
"moduleResolution": "bundler",
|
|
12
|
+
"allowImportingTsExtensions": true,
|
|
13
|
+
"verbatimModuleSyntax": true,
|
|
14
|
+
"moduleDetection": "force",
|
|
15
|
+
"noEmit": true,
|
|
16
|
+
"jsx": "react-jsx",
|
|
17
|
+
|
|
18
|
+
"strict": true,
|
|
19
|
+
"noFallthroughCasesInSwitch": true
|
|
20
|
+
},
|
|
21
|
+
"include": ["src"]
|
|
22
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
|
|
4
|
+
"target": "es2023",
|
|
5
|
+
"lib": ["ES2023"],
|
|
6
|
+
"types": ["node"],
|
|
7
|
+
"skipLibCheck": true,
|
|
8
|
+
"module": "nodenext",
|
|
9
|
+
"allowImportingTsExtensions": true,
|
|
10
|
+
"verbatimModuleSyntax": true,
|
|
11
|
+
"moduleDetection": "force",
|
|
12
|
+
"noEmit": true,
|
|
13
|
+
"strict": true
|
|
14
|
+
},
|
|
15
|
+
"include": ["vite.config.ts"]
|
|
16
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { fileURLToPath, URL } from 'node:url'
|
|
2
|
+
import react from '@vitejs/plugin-react'
|
|
3
|
+
import { defineConfig } from 'vite'
|
|
4
|
+
|
|
5
|
+
export default defineConfig({
|
|
6
|
+
plugins: [react()],
|
|
7
|
+
resolve: { alias: { '@': fileURLToPath(new URL('./src', import.meta.url)) } },
|
|
8
|
+
})
|