@photonix/basic 1.0.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.
@@ -0,0 +1,22 @@
1
+
2
+ > @photonix/basic@1.0.0 build /Users/hoangthuan/Documents/GitHub/photonix/packages/basic
3
+ > tsup
4
+
5
+ CLI Building entry: src/index.ts
6
+ CLI Using tsconfig: tsconfig.json
7
+ CLI tsup v8.5.1
8
+ CLI Using tsup config: /Users/hoangthuan/Documents/GitHub/photonix/packages/basic/tsup.config.ts
9
+ CLI Target: es2022
10
+ CLI Cleaning output folder
11
+ CJS Build start
12
+ ESM Build start
13
+ ESM dist/index.mjs 156.00 B
14
+ ESM dist/index.mjs.map 288.00 B
15
+ ESM ⚡️ Build success in 21ms
16
+ CJS dist/index.js 1.22 KB
17
+ CJS dist/index.js.map 323.00 B
18
+ CJS ⚡️ Build success in 21ms
19
+ DTS Build start
20
+ DTS ⚡️ Build success in 760ms
21
+ DTS dist/index.d.ts 33.00 B
22
+ DTS dist/index.d.mts 33.00 B
@@ -0,0 +1 @@
1
+ export * from '@photonix/icons';
@@ -0,0 +1 @@
1
+ export * from '@photonix/icons';
package/dist/index.js ADDED
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
16
+
17
+ // src/index.ts
18
+ var index_exports = {};
19
+ module.exports = __toCommonJS(index_exports);
20
+ var import_tokens = require("@photonix/ui/styles/tokens");
21
+ var import_theme = require("@photonix/ui/styles/theme");
22
+ __reExport(index_exports, require("@photonix/icons"), module.exports);
23
+ // Annotate the CommonJS export names for ESM import in node:
24
+ 0 && (module.exports = {
25
+ ...require("@photonix/icons")
26
+ });
27
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["// Import design tokens to be bundled\nimport '@photonix/ui/styles/tokens';\nimport '@photonix/ui/styles/theme';\n\n// Export icons\nexport * from '@photonix/icons';\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA;AAAA;AACA,oBAAO;AACP,mBAAO;AAGP,0BAAc,4BALd;","names":[]}
package/dist/index.mjs ADDED
@@ -0,0 +1,5 @@
1
+ // src/index.ts
2
+ import "@photonix/ui/styles/tokens";
3
+ import "@photonix/ui/styles/theme";
4
+ export * from "@photonix/icons";
5
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["// Import design tokens to be bundled\nimport '@photonix/ui/styles/tokens';\nimport '@photonix/ui/styles/theme';\n\n// Export icons\nexport * from '@photonix/icons';\n"],"mappings":";AACA,OAAO;AACP,OAAO;AAGP,cAAc;","names":[]}
package/package.json ADDED
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "@photonix/basic",
3
+ "version": "1.0.0",
4
+ "description": "Photonix Basic - Design Tokens and Icons",
5
+ "main": "./src/index.ts",
6
+ "types": "./src/index.ts",
7
+ "scripts": {
8
+ "build": "tsup",
9
+ "lint": "eslint . --max-warnings 0",
10
+ "check-types": "tsc --noEmit"
11
+ },
12
+ "dependencies": {
13
+ "@photonix/icons": "workspace:*",
14
+ "@photonix/ui": "workspace:*"
15
+ },
16
+ "devDependencies": {
17
+ "tsup": "^8.0.2",
18
+ "typescript": "5.9.2",
19
+ "@repo/typescript-config": "*",
20
+ "@repo/eslint-config": "*"
21
+ }
22
+ }
package/src/index.ts ADDED
@@ -0,0 +1,6 @@
1
+ // Import design tokens to be bundled
2
+ import '@photonix/ui/styles/tokens';
3
+ import '@photonix/ui/styles/theme';
4
+
5
+ // Export icons
6
+ export * from '@photonix/icons';
package/tsconfig.json ADDED
@@ -0,0 +1,14 @@
1
+ {
2
+ "extends": "@repo/typescript-config/react-library.json",
3
+ "compilerOptions": {
4
+ "module": "esnext",
5
+ "moduleResolution": "bundler"
6
+ },
7
+ "include": [
8
+ "src/**/*"
9
+ ],
10
+ "exclude": [
11
+ "node_modules",
12
+ "dist"
13
+ ]
14
+ }
package/tsup.config.ts ADDED
@@ -0,0 +1,10 @@
1
+ import { defineConfig } from 'tsup';
2
+
3
+ export default defineConfig({
4
+ entry: ['src/index.ts'],
5
+ format: ['cjs', 'esm'],
6
+ dts: true,
7
+ clean: true,
8
+ external: ['react', 'react-dom'],
9
+ sourcemap: true,
10
+ });