beathers 5.3.0 → 5.3.2

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 (49) hide show
  1. package/CHANGELOG +13 -0
  2. package/dist/css/beathers.min.css +1 -1
  3. package/dist/css/beathers.min.css.map +1 -1
  4. package/dist/data/colors.d.ts +1 -0
  5. package/dist/data/font.d.ts +1 -0
  6. package/dist/data/index.d.ts +1 -0
  7. package/dist/index.d.ts +5 -4
  8. package/dist/index.js +4 -4
  9. package/dist/scripts/cli.d.ts +1 -0
  10. package/dist/scripts/cli.js +1 -1
  11. package/dist/scripts/commands/build.d.ts +1 -0
  12. package/dist/scripts/commands/build.js +3 -3
  13. package/dist/scripts/commands/colors.d.ts +1 -0
  14. package/dist/scripts/commands/colors.js +2 -2
  15. package/dist/scripts/commands/fonts.d.ts +1 -0
  16. package/dist/scripts/commands/fonts.js +2 -2
  17. package/dist/scripts/commands/help.d.ts +1 -0
  18. package/dist/scripts/commands/index.d.ts +2 -1
  19. package/dist/scripts/commands/init.d.ts +1 -0
  20. package/dist/scripts/commands/init.js +2 -2
  21. package/dist/scripts/commands/list.d.ts +1 -0
  22. package/dist/scripts/commands/list.js +1 -1
  23. package/dist/scripts/commands/version.d.ts +1 -0
  24. package/dist/scripts/commands/version.js +4 -1
  25. package/dist/scripts/helpers/BuildScssVariables.d.ts +2 -1
  26. package/dist/scripts/helpers/CallNewVariables.d.ts +1 -0
  27. package/dist/scripts/helpers/LoadUserConfigs.d.ts +2 -1
  28. package/dist/scripts/helpers/Merge.d.ts +2 -1
  29. package/dist/scripts/helpers/ReadDefaultValues.d.ts +2 -1
  30. package/dist/scripts/helpers/index.d.ts +1 -0
  31. package/dist/scripts/types.d.ts +1 -0
  32. package/{src → dist}/scss/beathers.min.scss +1 -1
  33. package/package.json +11 -3
  34. package/readme.md +2 -1
  35. /package/{src → dist}/scss/_variables.scss +0 -0
  36. /package/{src → dist}/scss/beathers-icons.min.scss +0 -0
  37. /package/{src → dist}/scss/functions/_colors.scss +0 -0
  38. /package/{src → dist}/scss/functions/_mediaQueries.scss +0 -0
  39. /package/{src → dist}/scss/functions/_others.scss +0 -0
  40. /package/{src → dist}/scss/functions/_typographic.scss +0 -0
  41. /package/{src → dist}/scss/functions/_validations.scss +0 -0
  42. /package/{src → dist}/scss/settings/_configs.scss +0 -0
  43. /package/{src → dist}/scss/settings/_defaults.scss +0 -0
  44. /package/{src → dist}/scss/settings/_index.scss +0 -0
  45. /package/{src → dist}/scss/style/_colors.scss +0 -0
  46. /package/{src → dist}/scss/style/_grid.scss +0 -0
  47. /package/{src → dist}/scss/style/_resets.scss +0 -0
  48. /package/{src → dist}/scss/style/_shaping.scss +0 -0
  49. /package/{src → dist}/scss/style/_typographic.scss +0 -0
@@ -1,2 +1,3 @@
1
1
  #!/usr/bin/env node
2
2
  export {};
3
+ //# sourceMappingURL=cli.d.ts.map
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { Commands } from '@commandsList';
2
+ import { Commands } from '../scripts/commands/list.js';
3
3
  async function main() {
4
4
  const args = process.argv.slice(2);
5
5
  let command = args[0] ?? 'build';
@@ -1 +1,2 @@
1
1
  export declare function Build(): Promise<void>;
2
+ //# sourceMappingURL=build.d.ts.map
@@ -1,11 +1,11 @@
1
1
  /* eslint-disable no-console */
2
- import { BuildScssVariables, DeepMerge, LoadUserConfigs, ReadDefaultValues } from '@helpers';
3
2
  import { exec } from 'child_process';
4
3
  import fs from 'fs-extra';
5
4
  import { fileURLToPath } from 'node:url';
6
5
  import path from 'path';
7
6
  import { promisify } from 'util';
8
- import { promptInput } from '@commands';
7
+ import { promptInput } from '../commands/index.js';
8
+ import { BuildScssVariables, DeepMerge, LoadUserConfigs, ReadDefaultValues } from '../helpers/index.js';
9
9
  const execAsync = promisify(exec);
10
10
  const __filename = fileURLToPath(import.meta.url);
11
11
  const __dirname = path.dirname(__filename);
@@ -109,7 +109,7 @@ if (import.meta.url === `file://${process.argv[1]}`) {
109
109
  const args = process.argv.slice(2);
110
110
  if (args.includes('--local')) {
111
111
  console.log('🏠 Local build mode enabled');
112
- const { promptInput } = await import('@commands');
112
+ const { promptInput } = await import('../commands/index.js');
113
113
  const customOutputPath = await promptInput('📁 Output path (e.g., public/css): ');
114
114
  if (!customOutputPath) {
115
115
  console.error('❌ Please provide an output path when using \x1b[33m--local\x1b[0m flag.');
@@ -2,3 +2,4 @@ export declare function AddColors(): Promise<void>;
2
2
  export declare function RemoveColor(): Promise<void>;
3
3
  export declare function ImportColorPack(): Promise<void>;
4
4
  export declare function ImportColor(): Promise<void>;
5
+ //# sourceMappingURL=colors.d.ts.map
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable no-console */
2
- import { findConfigFile, loadConfig, promptInput, promptSelection, saveConfig } from '@commands';
3
- import { colorsList } from '@data';
2
+ import { colorsList } from '../../data/index.js';
3
+ import { findConfigFile, loadConfig, promptInput, promptSelection, saveConfig } from '../commands/index.js';
4
4
  export async function AddColors() {
5
5
  const configFile = await findConfigFile();
6
6
  if (!configFile) {
@@ -1,3 +1,4 @@
1
1
  export declare function AddFont(): Promise<void>;
2
2
  export declare function RemoveFont(): Promise<void>;
3
3
  export declare function ImportFont(): Promise<void>;
4
+ //# sourceMappingURL=fonts.d.ts.map
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable no-console */
2
- import { findConfigFile, loadConfig, promptInput, promptSelection, promptUser, saveConfig } from '@commands';
3
- import { importedFont, localFont } from '@data';
2
+ import { importedFont, localFont } from '../../data/index.js';
3
+ import { findConfigFile, loadConfig, promptInput, promptSelection, promptUser, saveConfig } from '../commands/index.js';
4
4
  export async function AddFont() {
5
5
  const configFile = await findConfigFile();
6
6
  if (!configFile) {
@@ -1 +1,2 @@
1
1
  export declare function Help(): void;
2
+ //# sourceMappingURL=help.d.ts.map
@@ -1,4 +1,4 @@
1
- import { Theme } from '@types';
1
+ import { Theme } from '../types.js';
2
2
  export declare function promptUser(question: string): Promise<boolean>;
3
3
  export declare function promptInput(question: string): Promise<string>;
4
4
  export declare function promptSelection<T extends string>(question: string, options: T[]): Promise<T>;
@@ -11,3 +11,4 @@ export * from './fonts.js';
11
11
  export * from './help.js';
12
12
  export * from './init.js';
13
13
  export * from './version.js';
14
+ //# sourceMappingURL=index.d.ts.map
@@ -1 +1,2 @@
1
1
  export declare function Init(): Promise<void>;
2
+ //# sourceMappingURL=init.d.ts.map
@@ -1,9 +1,9 @@
1
1
  /* eslint-disable no-console */
2
- import { ReadDefaultValues } from '@helpers';
3
2
  import fs from 'fs-extra';
4
3
  import { fileURLToPath } from 'node:url';
5
4
  import path from 'path';
6
- import { promptSelection, promptUser } from '@commands';
5
+ import { promptSelection, promptUser } from '../commands/index.js';
6
+ import { ReadDefaultValues } from '../helpers/index.js';
7
7
  async function getDefaultValues() {
8
8
  const __filename = fileURLToPath(import.meta.url);
9
9
  const __dirname = path.dirname(__filename);
@@ -1,2 +1,3 @@
1
1
  export declare function Commands(args: any): Record<string, () => void | Promise<void>>;
2
2
  export type CommandKey = '--help' | '-v' | '--version' | 'init' | 'build' | 'add-font' | 'remove-font' | 'import-font-sample' | 'add-colors' | 'remove-color' | 'import-color-pack' | 'import-color';
3
+ //# sourceMappingURL=list.d.ts.map
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable no-console */
2
- import { AddColors, AddFont, Build, Help, ImportColor, ImportColorPack, ImportFont, Init, RemoveColor, RemoveFont, Version, } from '@commands';
2
+ import { AddColors, AddFont, Build, Help, ImportColor, ImportColorPack, ImportFont, Init, RemoveColor, RemoveFont, Version, } from '../commands/index.js';
3
3
  const commands = {
4
4
  '--help': () => Help(),
5
5
  '-v': () => Version(),
@@ -1 +1,2 @@
1
1
  export declare function Version(): void;
2
+ //# sourceMappingURL=version.d.ts.map
@@ -1,8 +1,11 @@
1
1
  /* eslint-disable no-console */
2
2
  import fs from 'fs-extra';
3
+ import { fileURLToPath } from 'node:url';
3
4
  import path from 'path';
4
5
  export function Version() {
5
- const packagePath = path.join(process.cwd(), 'package.json');
6
+ const __filename = fileURLToPath(import.meta.url);
7
+ const __dirname = path.dirname(__filename);
8
+ const packagePath = path.join(__dirname, '../../..', 'package.json');
6
9
  try {
7
10
  const packageInfo = fs.readJsonSync(packagePath);
8
11
  console.log(`📦 \x1b[34mbeathers\x1b[0m v${packageInfo.version}`);
@@ -1,2 +1,3 @@
1
- import { Theme } from '@types';
1
+ import { Theme } from '../types.js';
2
2
  export declare function BuildScssVariables(theme: Theme): string;
3
+ //# sourceMappingURL=BuildScssVariables.d.ts.map
@@ -1 +1,2 @@
1
1
  export declare function CallNewVariables(projectRoot: string): Promise<void>;
2
+ //# sourceMappingURL=CallNewVariables.d.ts.map
@@ -1,2 +1,3 @@
1
- import { Theme } from '@types';
1
+ import { Theme } from '../types.js';
2
2
  export declare function LoadUserConfigs(projectPath?: string): Promise<Theme | null>;
3
+ //# sourceMappingURL=LoadUserConfigs.d.ts.map
@@ -1,2 +1,3 @@
1
- import { Theme } from '@types';
1
+ import { Theme } from '../types.js';
2
2
  export declare function DeepMerge(defaults: Partial<Theme>, configs: Partial<Theme> | null): Theme;
3
+ //# sourceMappingURL=Merge.d.ts.map
@@ -1,2 +1,3 @@
1
- import { Theme } from '@types';
1
+ import { Theme } from '../types.js';
2
2
  export declare function ReadDefaultValues(files: string[], VariableNames: string[]): Promise<Partial<Theme>>;
3
+ //# sourceMappingURL=ReadDefaultValues.d.ts.map
@@ -3,3 +3,4 @@ export * from './CallNewVariables.js';
3
3
  export * from './LoadUserConfigs.js';
4
4
  export * from './Merge.js';
5
5
  export * from './ReadDefaultValues.js';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -87,3 +87,4 @@ interface Theme {
87
87
  roles?: Roles;
88
88
  }
89
89
  export type { SizeUnit, ColorType, FontWeight, FontStyle, FontVariant, FontType, Typography, Settings, RoleKeys, Roles, Theme, };
90
+ //# sourceMappingURL=types.d.ts.map
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Beathers v5.3.0 (https://bhoenixstudio.com/beathers)
2
+ * Beathers v5.3.2 (https://bhoenixstudio.com/beathers)
3
3
  * Copyright 2020-2025 Bhoenix Studio
4
4
  */
5
5
 
package/package.json CHANGED
@@ -1,10 +1,17 @@
1
1
  {
2
2
  "name": "beathers",
3
- "version": "5.3.0",
3
+ "version": "5.3.2",
4
4
  "type": "module",
5
5
  "description": "Beather is a lightweight SCSS library that serves as a comprehensive design system for your projects. It offers a structured and consistent approach to manage colors, fonts, and other design related variables, making it easier to maintain a cohesive visual identity across your application.",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "import": "./dist/index.js",
11
+ "require": "./dist/index.js",
12
+ "types": "./dist/index.d.ts"
13
+ }
14
+ },
8
15
  "bin": {
9
16
  "beathers": "dist/scripts/cli.js"
10
17
  },
@@ -12,7 +19,7 @@
12
19
  "watch": "nodemon --watch src/scss/ --ext scss --exec \"npm-run-all build\"",
13
20
  "build": "sass --style compressed --source-map --embed-sources --no-error-css src/scss/:dist/css/",
14
21
  "build:test": "tsx src/scripts/cli.ts",
15
- "build:publish": "rimraf dist && tsc && npm run build",
22
+ "build:publish": "rimraf dist && tsc && npm run build && copyfiles -u 1 \"src/scss/**/*\" dist/",
16
23
  "lint": "eslint . && stylelint \"**/*.scss\"",
17
24
  "lint:fix": "eslint . --fix && stylelint \"**/*.scss\" --fix",
18
25
  "format:check": "prettier --check --ignore-path .gitignore .",
@@ -52,6 +59,7 @@
52
59
  "@types/node": "^22.15.21",
53
60
  "@types/scss-parser": "^1.0.4",
54
61
  "autoprefixer": "^10.4.21",
62
+ "copyfiles": "^2.4.1",
55
63
  "eslint": "^9.26.0",
56
64
  "eslint-plugin-css": "^0.11.0",
57
65
  "eslint-plugin-import": "^2.31.0",
@@ -75,7 +83,7 @@
75
83
  "files": [
76
84
  "dist/css/**/*.{css,map}",
77
85
  "dist/**/*.{js,d.ts}",
78
- "src/scss/**/*.scss",
86
+ "dist/scss/**/*.scss",
79
87
  "public/images/logo.png",
80
88
  "CHANGELOG",
81
89
  "readme.md"
package/readme.md CHANGED
@@ -5,8 +5,9 @@
5
5
 
6
6
  [![Version](https://img.shields.io/npm/v/beathers.svg)](https://www.npmjs.com/package/beathers)
7
7
  [![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)
8
+ [![Changelog](https://img.shields.io/badge/Changelog-See%20Changes-orange?style=flat&logo=github)](CHANGELOG)
8
9
 
9
- Beathers is a lightweight, powerful SCSS library designed to accelerate your web development workflow. **Everything is fully customizable** through a simple configuration file, allowing you to tailor every aspect to match your brand and requirements. It offers a comprehensive suite of SCSS mixins, variables, and utility classes, enabling you to build responsive, visually appealing web applications with complete design control.
10
+ Beathers is a lightweight, powerful SCSS library designed to accelerate your web development workflow.**Everything is fully customizable** through a simple configuration file, allowing you to tailor every aspect to match your brand and requirements. It offers a comprehensive suite of SCSS mixins, variables, and utility classes, enabling you to build responsive, visually appealing web applications with complete design control.
10
11
 
11
12
  ## Get Started
12
13
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes