@shohojdhara/atomix 0.5.4 → 0.5.5

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 (34) hide show
  1. package/dist/atomix.css +3213 -159
  2. package/dist/atomix.css.map +1 -1
  3. package/dist/atomix.min.css +5 -5
  4. package/dist/atomix.min.css.map +1 -1
  5. package/dist/config.js +2 -5
  6. package/dist/config.js.map +1 -1
  7. package/dist/index.esm.js +11 -6
  8. package/dist/index.esm.js.map +1 -1
  9. package/dist/index.js +16 -7
  10. package/dist/index.js.map +1 -1
  11. package/dist/index.min.js +1 -1
  12. package/dist/index.min.js.map +1 -1
  13. package/dist/theme.js +0 -4
  14. package/dist/theme.js.map +1 -1
  15. package/package.json +1 -1
  16. package/src/lib/config/loader.ts +5 -2
  17. package/src/styles/01-settings/_settings.background.scss +34 -5
  18. package/src/styles/02-tools/_tools.background.scss +330 -52
  19. package/src/styles/06-components/_components.accordion.scss +2 -2
  20. package/src/styles/06-components/_components.badge.scss +1 -1
  21. package/src/styles/06-components/_components.button.scss +2 -2
  22. package/src/styles/06-components/_components.callout.scss +2 -2
  23. package/src/styles/06-components/_components.card.scss +1 -1
  24. package/src/styles/06-components/_components.dropdown.scss +1 -1
  25. package/src/styles/06-components/_components.dynamic-background.scss +69 -0
  26. package/src/styles/06-components/_components.edge-panel.scss +2 -2
  27. package/src/styles/06-components/_components.input.scss +3 -3
  28. package/src/styles/06-components/_components.messages.scss +6 -6
  29. package/src/styles/06-components/_components.modal.scss +1 -1
  30. package/src/styles/06-components/_components.navbar.scss +1 -1
  31. package/src/styles/06-components/_components.popover.scss +1 -1
  32. package/src/styles/06-components/_components.toggle.scss +1 -1
  33. package/src/styles/06-components/_components.tooltip.scss +3 -3
  34. package/src/styles/06-components/_index.scss +1 -0
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: !0
5
5
  });
6
6
 
7
- var jsxRuntime = require("react/jsx-runtime"), React = require("react"), PhosphorIcons = require("@phosphor-icons/react"), reactDom = require("react-dom"), fs = require("fs"), path$4 = require("path");
7
+ var jsxRuntime = require("react/jsx-runtime"), React = require("react"), PhosphorIcons = require("@phosphor-icons/react"), reactDom = require("react-dom");
8
8
 
9
9
  function _interopDefaultCompat(e) {
10
10
  return e && "object" == typeof e && "default" in e ? e : {
@@ -21299,6 +21299,12 @@ const defaultTokens = {
21299
21299
  * @returns DesignTokens from theme configuration
21300
21300
  * @throws Error if config loading is not available in browser environment
21301
21301
  */
21302
+ /**
21303
+ * Atomix Config Loader
21304
+ *
21305
+ * Helper functions to load atomix.config.ts from external projects.
21306
+ * Now also supports atomix.config.js and atomix.config.json
21307
+ */
21302
21308
  /**
21303
21309
  * Validate Atomix configuration structure
21304
21310
  *
@@ -28429,14 +28435,17 @@ function(name, primaryColor, secondaryColor) {
28429
28435
  exports.removeTheme = removeTheme, exports.renderSlot = renderSlot, exports.resolveConfigPath = function(configPath) {
28430
28436
  // In browser environments, config resolution is not possible
28431
28437
  if ("undefined" != typeof window) return null;
28432
- // If a specific config path is provided, check if it exists
28433
- if (configPath) {
28434
- const absPath = path$4.join(process.cwd(), configPath);
28435
- return fs.existsSync(absPath) ? absPath : null;
28438
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
28439
+ const {existsSync: existsSync} = require("fs"), {join: join} = require("path");
28440
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
28441
+ // If a specific config path is provided, check if it exists
28442
+ if (configPath) {
28443
+ const absPath = join(process.cwd(), configPath);
28444
+ return existsSync(absPath) ? absPath : null;
28436
28445
  }
28437
28446
  // Otherwise, check standard locations
28438
- const possiblePaths = [ path$4.join(process.cwd(), "atomix.config.ts"), path$4.join(process.cwd(), "atomix.config.js"), path$4.join(process.cwd(), "atomix.config.json") ];
28439
- for (const path of possiblePaths) if (fs.existsSync(path)) return path;
28447
+ const possiblePaths = [ join(process.cwd(), "atomix.config.ts"), join(process.cwd(), "atomix.config.js"), join(process.cwd(), "atomix.config.json") ];
28448
+ for (const path of possiblePaths) if (existsSync(path)) return path;
28440
28449
  return null;
28441
28450
  }, exports.rgbToHex = rgbToHex, exports.rtlCSS = rtlCSS, exports.sliderConstants = sliderConstants,
28442
28451
  exports.supportsDarkMode = function(theme) {