@shohojdhara/atomix 0.5.6 → 0.5.8
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 +452 -369
- package/dist/atomix.css.map +1 -1
- package/dist/atomix.min.css +5 -5
- package/dist/atomix.min.css.map +1 -1
- package/dist/atomix.umd.js +2 -0
- package/dist/atomix.umd.js.map +1 -0
- package/dist/atomix.umd.min.js +1 -0
- package/dist/core.d.ts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.esm.js +20 -7
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +20 -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 +7 -3
- package/dist/theme.js.map +1 -1
- package/package.json +3 -3
- package/src/components/Breadcrumb/Breadcrumb.tsx +3 -3
- package/src/lib/config/loader.ts +27 -6
- package/src/lib/theme/config/configLoader.ts +7 -2
- package/src/lib/theme/config/loader.ts +7 -6
- package/src/styles/06-components/_components.avatar-group.scss +1 -3
- package/src/styles/06-components/_components.avatar.scss +1 -1
- package/src/styles/06-components/_components.badge.scss +2 -2
- package/src/styles/06-components/_components.button.scss +3 -3
- package/src/styles/06-components/_components.callout.scss +5 -5
- package/src/styles/06-components/_components.card.scss +2 -5
- package/src/styles/06-components/_components.checkbox.scss +1 -1
- package/src/styles/06-components/_components.data-table.scss +1 -1
- package/src/styles/06-components/_components.datepicker.scss +1 -1
- package/src/styles/06-components/_components.dropdown.scss +3 -3
- package/src/styles/06-components/_components.edge-panel.scss +5 -9
- package/src/styles/06-components/_components.footer.scss +12 -13
- package/src/styles/06-components/_components.hero.scss +2 -2
- package/src/styles/06-components/_components.input.scss +3 -3
- package/src/styles/06-components/_components.list.scss +1 -1
- package/src/styles/06-components/_components.menu.scss +2 -2
- package/src/styles/06-components/_components.messages.scss +16 -18
- package/src/styles/06-components/_components.modal.scss +6 -6
- package/src/styles/06-components/_components.nav.scss +0 -3
- package/src/styles/06-components/_components.navbar.scss +3 -3
- package/src/styles/06-components/_components.pagination.scss +3 -3
- package/src/styles/06-components/_components.photoviewer.scss +3 -3
- package/src/styles/06-components/_components.popover.scss +3 -3
- package/src/styles/06-components/_components.product-review.scss +2 -2
- package/src/styles/06-components/_components.progress.scss +2 -2
- package/src/styles/06-components/_components.river.scss +1 -1
- package/src/styles/06-components/_components.sectionintro.scss +1 -1
- package/src/styles/06-components/_components.select.scss +5 -6
- package/src/styles/06-components/_components.side-menu.scss +6 -6
- package/src/styles/06-components/_components.skeleton.scss +8 -8
- package/src/styles/06-components/_components.slider.scss +6 -6
- package/src/styles/06-components/_components.steps.scss +2 -2
- package/src/styles/06-components/_components.tabs.scss +2 -2
- package/src/styles/06-components/_components.todo.scss +1 -1
- package/src/styles/06-components/_components.toggle.scss +3 -5
- package/src/styles/06-components/_components.tooltip.scss +2 -4
- package/src/styles/06-components/_components.upload.scss +1 -2
- package/src/styles/06-components/_components.video-player.scss +2 -2
package/dist/core.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React$1, { ReactNode, HTMLAttributes, MouseEvent,
|
|
1
|
+
import React$1, { ReactNode, HTMLAttributes, MouseEvent, ElementType, AnchorHTMLAttributes } from 'react';
|
|
2
2
|
import * as _phosphor_icons_react from '@phosphor-icons/react';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -1308,8 +1308,9 @@ interface LinkComponentProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
|
1308
1308
|
href?: string;
|
|
1309
1309
|
to?: string;
|
|
1310
1310
|
onClick?: (event: MouseEvent<HTMLAnchorElement>) => void;
|
|
1311
|
+
[key: string]: any;
|
|
1311
1312
|
}
|
|
1312
|
-
interface BreadcrumbItemProps extends React$1.HTMLAttributes<HTMLLIElement> {
|
|
1313
|
+
interface BreadcrumbItemProps extends Omit<React$1.HTMLAttributes<HTMLLIElement>, 'onClick'> {
|
|
1313
1314
|
/**
|
|
1314
1315
|
* URL for the breadcrumb item
|
|
1315
1316
|
*/
|
|
@@ -1329,7 +1330,7 @@ interface BreadcrumbItemProps extends React$1.HTMLAttributes<HTMLLIElement> {
|
|
|
1329
1330
|
/**
|
|
1330
1331
|
* Optional custom link component
|
|
1331
1332
|
*/
|
|
1332
|
-
linkAs?:
|
|
1333
|
+
linkAs?: ElementType;
|
|
1333
1334
|
/**
|
|
1334
1335
|
* Link props to pass to the underlying anchor or linkComponent
|
|
1335
1336
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
|
-
import React__default, { ReactNode, ElementType, MouseEvent as MouseEvent$1,
|
|
2
|
+
import React__default, { ReactNode, ElementType, MouseEvent as MouseEvent$1, AnchorHTMLAttributes, HTMLAttributes, ErrorInfo, Component } from 'react';
|
|
3
3
|
import * as _phosphor_icons_react from '@phosphor-icons/react';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
|
|
@@ -8918,8 +8918,9 @@ interface LinkComponentProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
|
8918
8918
|
href?: string;
|
|
8919
8919
|
to?: string;
|
|
8920
8920
|
onClick?: (event: MouseEvent$1<HTMLAnchorElement>) => void;
|
|
8921
|
+
[key: string]: any;
|
|
8921
8922
|
}
|
|
8922
|
-
interface BreadcrumbItemProps extends React__default.HTMLAttributes<HTMLLIElement> {
|
|
8923
|
+
interface BreadcrumbItemProps extends Omit<React__default.HTMLAttributes<HTMLLIElement>, 'onClick'> {
|
|
8923
8924
|
/**
|
|
8924
8925
|
* URL for the breadcrumb item
|
|
8925
8926
|
*/
|
|
@@ -8939,7 +8940,7 @@ interface BreadcrumbItemProps extends React__default.HTMLAttributes<HTMLLIElemen
|
|
|
8939
8940
|
/**
|
|
8940
8941
|
* Optional custom link component
|
|
8941
8942
|
*/
|
|
8942
|
-
linkAs?:
|
|
8943
|
+
linkAs?: ElementType;
|
|
8943
8944
|
/**
|
|
8944
8945
|
* Link props to pass to the underlying anchor or linkComponent
|
|
8945
8946
|
*/
|
package/dist/index.esm.js
CHANGED
|
@@ -21427,8 +21427,10 @@ function validateConfig$1(config) {
|
|
|
21427
21427
|
* Helper function to load config from a specific path
|
|
21428
21428
|
*/ function loadConfigAtPath(path, required, defaultConfig) {
|
|
21429
21429
|
try {
|
|
21430
|
-
// Use dynamic
|
|
21431
|
-
const
|
|
21430
|
+
// Use dynamic requirement to hide from bundlers
|
|
21431
|
+
const req = "undefined" != typeof require ? require : void 0;
|
|
21432
|
+
if (!req) return defaultConfig;
|
|
21433
|
+
const configModule = req(path), config = configModule.default || configModule;
|
|
21432
21434
|
// Validate it's an AtomixConfig
|
|
21433
21435
|
if (config && "object" == typeof config) return config;
|
|
21434
21436
|
throw new Error("Invalid config format");
|
|
@@ -21452,10 +21454,19 @@ function validateConfig$1(config) {
|
|
|
21452
21454
|
*/ function resolveConfigPath(configPath) {
|
|
21453
21455
|
// In browser environments, config resolution is not possible
|
|
21454
21456
|
if ("undefined" != typeof window) return null;
|
|
21455
|
-
//
|
|
21456
|
-
|
|
21457
|
-
|
|
21458
|
-
//
|
|
21457
|
+
// Use dynamic requirement to hide from bundlers like Turbopack/Webpack
|
|
21458
|
+
let nodeFs, nodePath;
|
|
21459
|
+
try {
|
|
21460
|
+
// Using a dynamic string and eval-like approach to prevent static analysis
|
|
21461
|
+
// This is safe here because we've already checked for window (browser)
|
|
21462
|
+
const req = "undefined" != typeof require ? require : void 0;
|
|
21463
|
+
req && (nodeFs = req([ "f", "s" ].join("")), nodePath = req([ "p", "a", "t", "h" ].join("")));
|
|
21464
|
+
} catch (e) {
|
|
21465
|
+
return null;
|
|
21466
|
+
}
|
|
21467
|
+
if (!nodeFs || !nodePath) return null;
|
|
21468
|
+
const {existsSync: existsSync} = nodeFs, {join: join} = nodePath;
|
|
21469
|
+
// If a specific config path is provided, check if it exists
|
|
21459
21470
|
if (configPath) {
|
|
21460
21471
|
const absPath = join(process.cwd(), configPath);
|
|
21461
21472
|
return existsSync(absPath) ? absPath : null;
|
|
@@ -21516,7 +21527,9 @@ function validateConfig$1(config) {
|
|
|
21516
21527
|
let loadAtomixConfig;
|
|
21517
21528
|
try {
|
|
21518
21529
|
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
21519
|
-
const
|
|
21530
|
+
const req = "undefined" != typeof require ? require : void 0;
|
|
21531
|
+
if (!req) throw new Error("require is not available");
|
|
21532
|
+
const {loadAtomixConfig: loader} = req("../../config/loader");
|
|
21520
21533
|
loadAtomixConfig = loader;
|
|
21521
21534
|
} catch (error) {
|
|
21522
21535
|
throw new Error("Config loader module not available");
|