@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/config.js
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import "fs";
|
|
2
|
-
|
|
3
|
-
import "path";
|
|
4
|
-
|
|
5
1
|
/**
|
|
6
2
|
* Configuration Types
|
|
7
3
|
*
|
|
@@ -9,7 +5,8 @@ import "path";
|
|
|
9
5
|
*/
|
|
10
6
|
/**
|
|
11
7
|
* Helper function to define Atomix configuration with type safety
|
|
12
|
-
*/
|
|
8
|
+
*/
|
|
9
|
+
function defineConfig(config) {
|
|
13
10
|
return config;
|
|
14
11
|
}
|
|
15
12
|
|
package/dist/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sources":["../src/lib/config/types.ts"],"sourcesContent":[null],"names":["defineConfig","config"],"mappings":"
|
|
1
|
+
{"version":3,"file":"config.js","sources":["../src/lib/config/types.ts"],"sourcesContent":[null],"names":["defineConfig","config"],"mappings":";;;;;;;;AAkYM,SAAUA,aAAaC;IAC3B,OAAOA;AACT;;"}
|
package/dist/index.esm.js
CHANGED
|
@@ -8,10 +8,6 @@ import { Pause, Play, SkipBack, SkipForward, SpeakerX, SpeakerHigh, Gear, Downlo
|
|
|
8
8
|
|
|
9
9
|
import { createPortal } from "react-dom";
|
|
10
10
|
|
|
11
|
-
import { existsSync } from "fs";
|
|
12
|
-
|
|
13
|
-
import { join } from "path";
|
|
14
|
-
|
|
15
11
|
var commonjsGlobal = "undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : {};
|
|
16
12
|
|
|
17
13
|
function getDefaultExportFromCjs(x) {
|
|
@@ -21257,6 +21253,12 @@ function createTokens(overrides) {
|
|
|
21257
21253
|
* @returns DesignTokens from theme configuration
|
|
21258
21254
|
* @throws Error if config loading is not available in browser environment
|
|
21259
21255
|
*/
|
|
21256
|
+
/**
|
|
21257
|
+
* Atomix Config Loader
|
|
21258
|
+
*
|
|
21259
|
+
* Helper functions to load atomix.config.ts from external projects.
|
|
21260
|
+
* Now also supports atomix.config.js and atomix.config.json
|
|
21261
|
+
*/
|
|
21260
21262
|
/**
|
|
21261
21263
|
* Validate Atomix configuration structure
|
|
21262
21264
|
*
|
|
@@ -21437,8 +21439,11 @@ function validateConfig$1(config) {
|
|
|
21437
21439
|
*/ function resolveConfigPath(configPath) {
|
|
21438
21440
|
// In browser environments, config resolution is not possible
|
|
21439
21441
|
if ("undefined" != typeof window) return null;
|
|
21440
|
-
//
|
|
21441
|
-
|
|
21442
|
+
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
21443
|
+
const {existsSync: existsSync} = require("fs"), {join: join} = require("path");
|
|
21444
|
+
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
21445
|
+
// If a specific config path is provided, check if it exists
|
|
21446
|
+
if (configPath) {
|
|
21442
21447
|
const absPath = join(process.cwd(), configPath);
|
|
21443
21448
|
return existsSync(absPath) ? absPath : null;
|
|
21444
21449
|
}
|