@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.
- package/dist/atomix.css +3213 -159
- package/dist/atomix.css.map +1 -1
- package/dist/atomix.min.css +5 -5
- package/dist/atomix.min.css.map +1 -1
- package/dist/config.js +2 -5
- package/dist/config.js.map +1 -1
- package/dist/index.esm.js +11 -6
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +16 -7
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/theme.js +0 -4
- package/dist/theme.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/config/loader.ts +5 -2
- package/src/styles/01-settings/_settings.background.scss +34 -5
- package/src/styles/02-tools/_tools.background.scss +330 -52
- package/src/styles/06-components/_components.accordion.scss +2 -2
- package/src/styles/06-components/_components.badge.scss +1 -1
- package/src/styles/06-components/_components.button.scss +2 -2
- package/src/styles/06-components/_components.callout.scss +2 -2
- package/src/styles/06-components/_components.card.scss +1 -1
- package/src/styles/06-components/_components.dropdown.scss +1 -1
- package/src/styles/06-components/_components.dynamic-background.scss +69 -0
- package/src/styles/06-components/_components.edge-panel.scss +2 -2
- package/src/styles/06-components/_components.input.scss +3 -3
- package/src/styles/06-components/_components.messages.scss +6 -6
- package/src/styles/06-components/_components.modal.scss +1 -1
- package/src/styles/06-components/_components.navbar.scss +1 -1
- package/src/styles/06-components/_components.popover.scss +1 -1
- package/src/styles/06-components/_components.toggle.scss +1 -1
- package/src/styles/06-components/_components.tooltip.scss +3 -3
- 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")
|
|
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
|
-
//
|
|
28433
|
-
|
|
28434
|
-
|
|
28435
|
-
|
|
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 = [
|
|
28439
|
-
for (const path of possiblePaths) if (
|
|
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) {
|