@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.
Files changed (55) hide show
  1. package/README.md +18 -4
  2. package/bin/apex-ui-react-source.mjs +208 -24
  3. package/dist/files/AGENTS.md +2 -2
  4. package/dist/files/alert/llm.txt +1 -1
  5. package/dist/files/apex-provider/llm.txt +1 -1
  6. package/dist/files/auto-complete/llm.txt +1 -1
  7. package/dist/files/avatar/llm.txt +1 -1
  8. package/dist/files/breadcrumb/llm.txt +1 -1
  9. package/dist/files/button/llm.txt +1 -1
  10. package/dist/files/card/llm.txt +1 -1
  11. package/dist/files/cascader/llm.txt +1 -1
  12. package/dist/files/checkbox/llm.txt +1 -1
  13. package/dist/files/collapse/llm.txt +1 -1
  14. package/dist/files/date-picker/llm.txt +1 -1
  15. package/dist/files/divider/llm.txt +1 -1
  16. package/dist/files/drawer/llm.txt +1 -1
  17. package/dist/files/dropdown/llm.txt +1 -1
  18. package/dist/files/form/llm.txt +1 -1
  19. package/dist/files/grid/llm.txt +1 -1
  20. package/dist/files/image/llm.txt +1 -1
  21. package/dist/files/input/llm.txt +1 -1
  22. package/dist/files/input-number/llm.txt +1 -1
  23. package/dist/files/layout/llm.txt +1 -1
  24. package/dist/files/menu/llm.txt +1 -1
  25. package/dist/files/message/llm.txt +1 -1
  26. package/dist/files/modal/llm.txt +1 -1
  27. package/dist/files/notification/llm.txt +1 -1
  28. package/dist/files/pagination/llm.txt +1 -1
  29. package/dist/files/popover/llm.txt +1 -1
  30. package/dist/files/progress/llm.txt +1 -1
  31. package/dist/files/radio/llm.txt +1 -1
  32. package/dist/files/rate/llm.txt +1 -1
  33. package/dist/files/select/llm.txt +1 -1
  34. package/dist/files/skeleton/llm.txt +1 -1
  35. package/dist/files/spin/llm.txt +1 -1
  36. package/dist/files/steps/llm.txt +1 -1
  37. package/dist/files/switch/llm.txt +1 -1
  38. package/dist/files/table/llm.txt +1 -1
  39. package/dist/files/tabs/llm.txt +1 -1
  40. package/dist/files/tag/llm.txt +1 -1
  41. package/dist/files/tooltip/llm.txt +1 -1
  42. package/dist/files/tree/llm.txt +1 -1
  43. package/dist/files/tree-select/llm.txt +1 -1
  44. package/dist/files/typography/llm.txt +1 -1
  45. package/dist/files/upload/llm.txt +1 -1
  46. package/dist/manifest.json +44 -44
  47. package/package.json +11 -24
  48. package/template/_gitignore +5 -0
  49. package/template/index.html +12 -0
  50. package/template/src/App.tsx +25 -0
  51. package/template/src/main.tsx +14 -0
  52. package/template/tsconfig.app.json +22 -0
  53. package/template/tsconfig.json +4 -0
  54. package/template/tsconfig.node.json +16 -0
  55. 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,4 @@
1
+ {
2
+ "files": [],
3
+ "references": [{ "path": "./tsconfig.app.json" }, { "path": "./tsconfig.node.json" }]
4
+ }
@@ -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
+ })