@xyhp915/slack-base-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.
Files changed (58) hide show
  1. package/AGENTS.md +331 -0
  2. package/CHANGELOG.md +347 -0
  3. package/README.md +368 -0
  4. package/eslint.config.js +23 -0
  5. package/index.html +13 -0
  6. package/libs/AlertDialog.d.ts +26 -0
  7. package/libs/AlertDialog.d.ts.map +1 -0
  8. package/libs/AutoComplete.d.ts +32 -0
  9. package/libs/AutoComplete.d.ts.map +1 -0
  10. package/libs/Avatar.d.ts +13 -0
  11. package/libs/Avatar.d.ts.map +1 -0
  12. package/libs/Badge.d.ts +8 -0
  13. package/libs/Badge.d.ts.map +1 -0
  14. package/libs/Button.d.ts +12 -0
  15. package/libs/Button.d.ts.map +1 -0
  16. package/libs/Checkbox.d.ts +21 -0
  17. package/libs/Checkbox.d.ts.map +1 -0
  18. package/libs/ContextMenu.d.ts +85 -0
  19. package/libs/ContextMenu.d.ts.map +1 -0
  20. package/libs/Dialog.d.ts +34 -0
  21. package/libs/Dialog.d.ts.map +1 -0
  22. package/libs/Form.d.ts +77 -0
  23. package/libs/Form.d.ts.map +1 -0
  24. package/libs/IconButton.d.ts +9 -0
  25. package/libs/IconButton.d.ts.map +1 -0
  26. package/libs/Input.d.ts +8 -0
  27. package/libs/Input.d.ts.map +1 -0
  28. package/libs/Loading.d.ts +16 -0
  29. package/libs/Loading.d.ts.map +1 -0
  30. package/libs/Menu.d.ts +89 -0
  31. package/libs/Menu.d.ts.map +1 -0
  32. package/libs/Popover.d.ts +43 -0
  33. package/libs/Popover.d.ts.map +1 -0
  34. package/libs/Progress.d.ts +18 -0
  35. package/libs/Progress.d.ts.map +1 -0
  36. package/libs/Radio.d.ts +29 -0
  37. package/libs/Radio.d.ts.map +1 -0
  38. package/libs/Select.d.ts +31 -0
  39. package/libs/Select.d.ts.map +1 -0
  40. package/libs/Switch.d.ts +20 -0
  41. package/libs/Switch.d.ts.map +1 -0
  42. package/libs/Tabs.d.ts +30 -0
  43. package/libs/Tabs.d.ts.map +1 -0
  44. package/libs/Toast.d.ts +33 -0
  45. package/libs/Toast.d.ts.map +1 -0
  46. package/libs/Tooltip.d.ts +9 -0
  47. package/libs/Tooltip.d.ts.map +1 -0
  48. package/libs/index.d.ts +43 -0
  49. package/libs/index.d.ts.map +1 -0
  50. package/libs/index.js +15281 -0
  51. package/libs/vite.svg +1 -0
  52. package/package.json +39 -0
  53. package/tsconfig.app.json +28 -0
  54. package/tsconfig.json +7 -0
  55. package/tsconfig.libs.json +25 -0
  56. package/tsconfig.node.json +26 -0
  57. package/vite.config.ts +8 -0
  58. package/vite.libs.config.ts +33 -0
package/libs/vite.svg ADDED
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
package/package.json ADDED
@@ -0,0 +1,39 @@
1
+ {
2
+ "name": "@xyhp915/slack-base-ui",
3
+ "main": "libs/index.js",
4
+ "types": "libs/index.d.ts",
5
+ "version": "0.0.1",
6
+ "type": "module",
7
+ "scripts": {
8
+ "dev": "vite",
9
+ "build": "tsc -b && vite build",
10
+ "build:libs": "vite build -c vite.libs.config.ts && tsc -p tsconfig.libs.json",
11
+ "lint": "eslint .",
12
+ "preview": "vite preview"
13
+ },
14
+ "dependencies": {
15
+ "@base-ui/react": "^1.1.0",
16
+ "clsx": "^2.1.1",
17
+ "lucide-react": "^0.563.0",
18
+ "react": "^19.2.0",
19
+ "react-dom": "^19.2.0",
20
+ "react-router-dom": "^7.13.0",
21
+ "tailwind-merge": "^3.4.0"
22
+ },
23
+ "devDependencies": {
24
+ "@eslint/js": "^9.39.1",
25
+ "@tailwindcss/vite": "^4.1.18",
26
+ "@types/node": "^24.10.1",
27
+ "@types/react": "^19.2.5",
28
+ "@types/react-dom": "^19.2.3",
29
+ "@vitejs/plugin-react": "^5.1.1",
30
+ "eslint": "^9.39.1",
31
+ "eslint-plugin-react-hooks": "^7.0.1",
32
+ "eslint-plugin-react-refresh": "^0.4.24",
33
+ "globals": "^16.5.0",
34
+ "tailwindcss": "^4.1.18",
35
+ "typescript": "~5.9.3",
36
+ "typescript-eslint": "^8.46.4",
37
+ "vite": "^7.2.4"
38
+ }
39
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "compilerOptions": {
3
+ "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
4
+ "target": "ES2022",
5
+ "useDefineForClassFields": true,
6
+ "lib": ["ES2022", "DOM", "DOM.Iterable"],
7
+ "module": "ESNext",
8
+ "types": ["vite/client"],
9
+ "skipLibCheck": true,
10
+
11
+ /* Bundler mode */
12
+ "moduleResolution": "bundler",
13
+ "allowImportingTsExtensions": true,
14
+ "verbatimModuleSyntax": true,
15
+ "moduleDetection": "force",
16
+ "noEmit": true,
17
+ "jsx": "react-jsx",
18
+
19
+ /* Linting */
20
+ "strict": true,
21
+ "noUnusedLocals": true,
22
+ "noUnusedParameters": true,
23
+ "erasableSyntaxOnly": true,
24
+ "noFallthroughCasesInSwitch": true,
25
+ "noUncheckedSideEffectImports": true
26
+ },
27
+ "include": ["src"]
28
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,7 @@
1
+ {
2
+ "files": [],
3
+ "references": [
4
+ { "path": "./tsconfig.app.json" },
5
+ { "path": "./tsconfig.node.json" }
6
+ ]
7
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2020",
4
+ "lib": ["ES2020", "DOM", "DOM.Iterable"],
5
+ "module": "ESNext",
6
+ "moduleResolution": "bundler",
7
+
8
+ "jsx": "react-jsx",
9
+ "strict": true,
10
+ "skipLibCheck": true,
11
+
12
+ "declaration": true,
13
+ "declarationMap": true,
14
+ "emitDeclarationOnly": true,
15
+
16
+ "outDir": "libs",
17
+ "rootDir": "src/components",
18
+
19
+ "stripInternal": true,
20
+ "esModuleInterop": true,
21
+ "allowSyntheticDefaultImports": true
22
+ },
23
+ "include": ["src/components/index.ts", "src/components/**/*"]
24
+ }
25
+
@@ -0,0 +1,26 @@
1
+ {
2
+ "compilerOptions": {
3
+ "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
4
+ "target": "ES2023",
5
+ "lib": ["ES2023"],
6
+ "module": "ESNext",
7
+ "types": ["node"],
8
+ "skipLibCheck": true,
9
+
10
+ /* Bundler mode */
11
+ "moduleResolution": "bundler",
12
+ "allowImportingTsExtensions": true,
13
+ "verbatimModuleSyntax": true,
14
+ "moduleDetection": "force",
15
+ "noEmit": true,
16
+
17
+ /* Linting */
18
+ "strict": true,
19
+ "noUnusedLocals": true,
20
+ "noUnusedParameters": true,
21
+ "erasableSyntaxOnly": true,
22
+ "noFallthroughCasesInSwitch": true,
23
+ "noUncheckedSideEffectImports": true
24
+ },
25
+ "include": ["vite.config.ts"]
26
+ }
package/vite.config.ts ADDED
@@ -0,0 +1,8 @@
1
+ import { defineConfig } from 'vite'
2
+ import react from '@vitejs/plugin-react'
3
+ import tailwindcss from '@tailwindcss/vite'
4
+
5
+ // https://vite.dev/config/
6
+ export default defineConfig({
7
+ plugins: [react(), tailwindcss()],
8
+ })
@@ -0,0 +1,33 @@
1
+ import { defineConfig } from 'vite'
2
+ // @ts-ignore
3
+ import react from '@vitejs/plugin-react'
4
+ // @ts-ignore
5
+ import tailwindcss from '@tailwindcss/vite'
6
+ import { resolve } from 'node:path'
7
+
8
+ /**
9
+ * Library build config.
10
+ *
11
+ * Entrypoint: src/index.ts
12
+ */
13
+ export default defineConfig({
14
+ plugins: [react(), tailwindcss()],
15
+ build: {
16
+ outDir: 'libs',
17
+ emptyOutDir: false,
18
+ lib: {
19
+ entry: resolve(__dirname, 'src/components/index.ts'),
20
+ name: 'ViteSlackBaseUI',
21
+ formats: ['es'],
22
+ fileName: () => 'index.js',
23
+ },
24
+ rollupOptions: {
25
+ // Don't bundle peer deps; consumers provide these.
26
+ external: ['react', 'react-dom', 'react-dom/client', 'react/jsx-runtime'],
27
+ output: {
28
+ // Keep React as external. (Format is ESM, so globals aren't required.)
29
+ exports: 'named',
30
+ },
31
+ },
32
+ },
33
+ })