@shohojdhara/atomix 0.4.3 → 0.4.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 +26 -5
- package/dist/atomix.css.map +1 -1
- package/dist/atomix.min.css +1 -1
- package/dist/atomix.min.css.map +1 -1
- package/dist/charts.js +4 -16
- package/dist/charts.js.map +1 -1
- package/dist/core.d.ts +4 -4
- package/dist/core.js +14 -26
- package/dist/core.js.map +1 -1
- package/dist/forms.js +4 -16
- package/dist/forms.js.map +1 -1
- package/dist/heavy.js +9 -21
- package/dist/heavy.js.map +1 -1
- package/dist/index.d.ts +40 -16
- package/dist/index.esm.js +307 -341
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +337 -357
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/AtomixGlass/AtomixGlass.tsx +2 -15
- package/src/components/AtomixGlass/AtomixGlassContainer.tsx +3 -8
- package/src/components/Breadcrumb/Breadcrumb.tsx +5 -5
- package/src/components/Breadcrumb/BreadcrumbCompound.test.tsx +2 -2
- package/src/components/Button/Button.tsx +6 -6
- package/src/components/Card/Card.tsx +3 -3
- package/src/components/Dropdown/Dropdown.tsx +5 -3
- package/src/components/Footer/Footer.tsx +124 -166
- package/src/components/Footer/FooterLink.tsx +16 -19
- package/src/components/Footer/FooterSection.tsx +40 -39
- package/src/components/Footer/FooterSocialLink.tsx +59 -58
- package/src/components/Footer/README.md +1 -1
- package/src/components/Hero/Hero.tsx +72 -142
- package/src/components/Navigation/Menu/MegaMenu.tsx +17 -12
- package/src/components/Navigation/Menu/Menu.tsx +49 -24
- package/src/components/Navigation/Nav/NavItem.tsx +5 -3
- package/src/components/Navigation/SideMenu/SideMenu.tsx +2 -2
- package/src/components/Navigation/SideMenu/SideMenuItem.tsx +4 -4
- package/src/components/Slider/Slider.tsx +7 -4
- package/src/lib/composables/useFooter.ts +117 -20
- package/src/lib/composables/useSlider.ts +3 -1
- package/src/lib/types/components.ts +44 -12
- package/src/styles/06-components/_components.atomix-glass.scss +39 -5
- package/src/components/AtomixGlass/__snapshots__/AtomixGlass.test.tsx.snap +0 -222
package/dist/index.d.ts
CHANGED
|
@@ -2278,6 +2278,10 @@ interface NavItemProps extends BaseComponentProps {
|
|
|
2278
2278
|
* Optional href for link items
|
|
2279
2279
|
*/
|
|
2280
2280
|
href?: string;
|
|
2281
|
+
/**
|
|
2282
|
+
* Link target attribute (used with href)
|
|
2283
|
+
*/
|
|
2284
|
+
target?: '_blank' | '_self' | '_parent' | '_top';
|
|
2281
2285
|
/**
|
|
2282
2286
|
* Optional click handler
|
|
2283
2287
|
*/
|
|
@@ -2289,7 +2293,7 @@ interface NavItemProps extends BaseComponentProps {
|
|
|
2289
2293
|
/**
|
|
2290
2294
|
* Optional custom link component
|
|
2291
2295
|
*/
|
|
2292
|
-
|
|
2296
|
+
linkComponent?: React.ElementType;
|
|
2293
2297
|
}
|
|
2294
2298
|
/**
|
|
2295
2299
|
* Nav dropdown properties
|
|
@@ -2333,6 +2337,14 @@ interface MenuItemProps extends BaseComponentProps {
|
|
|
2333
2337
|
* Item href
|
|
2334
2338
|
*/
|
|
2335
2339
|
href?: string;
|
|
2340
|
+
/**
|
|
2341
|
+
* Link target attribute (used with href)
|
|
2342
|
+
*/
|
|
2343
|
+
target?: '_blank' | '_self' | '_parent' | '_top';
|
|
2344
|
+
/**
|
|
2345
|
+
* Optional custom link component
|
|
2346
|
+
*/
|
|
2347
|
+
linkComponent?: React.ElementType;
|
|
2336
2348
|
/**
|
|
2337
2349
|
* Item icon
|
|
2338
2350
|
*/
|
|
@@ -2384,6 +2396,14 @@ interface MegaMenuLinkProps extends BaseComponentProps {
|
|
|
2384
2396
|
* Link href
|
|
2385
2397
|
*/
|
|
2386
2398
|
href: string;
|
|
2399
|
+
/**
|
|
2400
|
+
* Link target attribute (used with href)
|
|
2401
|
+
*/
|
|
2402
|
+
target?: '_blank' | '_self' | '_parent' | '_top';
|
|
2403
|
+
/**
|
|
2404
|
+
* Optional custom link component
|
|
2405
|
+
*/
|
|
2406
|
+
linkComponent?: React.ElementType;
|
|
2387
2407
|
/**
|
|
2388
2408
|
* Link content
|
|
2389
2409
|
*/
|
|
@@ -2447,14 +2467,14 @@ interface SideMenuProps extends BaseComponentProps {
|
|
|
2447
2467
|
* ```tsx
|
|
2448
2468
|
* // Next.js
|
|
2449
2469
|
* import Link from 'next/link';
|
|
2450
|
-
* <SideMenu
|
|
2470
|
+
* <SideMenu linkComponent={Link} />
|
|
2451
2471
|
*
|
|
2452
2472
|
* // React Router
|
|
2453
2473
|
* import { Link } from 'react-router-dom';
|
|
2454
|
-
* <SideMenu
|
|
2474
|
+
* <SideMenu linkComponent={Link} />
|
|
2455
2475
|
* ```
|
|
2456
2476
|
*/
|
|
2457
|
-
|
|
2477
|
+
linkComponent?: React.ElementType;
|
|
2458
2478
|
/**
|
|
2459
2479
|
* Menu items
|
|
2460
2480
|
*/
|
|
@@ -2516,27 +2536,27 @@ interface SideMenuItemProps extends BaseComponentProps {
|
|
|
2516
2536
|
/**
|
|
2517
2537
|
* Link target attribute
|
|
2518
2538
|
*/
|
|
2519
|
-
target?:
|
|
2539
|
+
target?: '_blank' | '_self' | '_parent' | '_top';
|
|
2520
2540
|
/**
|
|
2521
2541
|
* Link rel attribute
|
|
2522
2542
|
*/
|
|
2523
2543
|
rel?: string;
|
|
2524
2544
|
/**
|
|
2525
2545
|
* Optional custom link component (e.g., Next.js Link, React Router Link)
|
|
2526
|
-
* If not provided, will use
|
|
2546
|
+
* If not provided, will use linkComponent from parent SideMenu context
|
|
2527
2547
|
*
|
|
2528
2548
|
* @example
|
|
2529
2549
|
* ```tsx
|
|
2530
2550
|
* // Next.js
|
|
2531
2551
|
* import Link from 'next/link';
|
|
2532
|
-
* <SideMenuItem href="/about"
|
|
2552
|
+
* <SideMenuItem href="/about" linkComponent={Link}>About</SideMenuItem>
|
|
2533
2553
|
*
|
|
2534
2554
|
* // React Router
|
|
2535
2555
|
* import { Link } from 'react-router-dom';
|
|
2536
|
-
* <SideMenuItem href="/about"
|
|
2556
|
+
* <SideMenuItem href="/about" linkComponent={Link}>About</SideMenuItem>
|
|
2537
2557
|
* ```
|
|
2538
2558
|
*/
|
|
2539
|
-
|
|
2559
|
+
linkComponent?: React.ElementType;
|
|
2540
2560
|
}
|
|
2541
2561
|
/**
|
|
2542
2562
|
* EdgePanel position options
|
|
@@ -4025,6 +4045,10 @@ interface DropdownItemProps extends BaseComponentProps {
|
|
|
4025
4045
|
* Item href
|
|
4026
4046
|
*/
|
|
4027
4047
|
href?: string;
|
|
4048
|
+
/**
|
|
4049
|
+
* Link target attribute (used with href)
|
|
4050
|
+
*/
|
|
4051
|
+
target?: '_blank' | '_self' | '_parent' | '_top';
|
|
4028
4052
|
/**
|
|
4029
4053
|
* Whether item is active
|
|
4030
4054
|
*/
|
|
@@ -4044,7 +4068,7 @@ interface DropdownItemProps extends BaseComponentProps {
|
|
|
4044
4068
|
/**
|
|
4045
4069
|
* Optional custom link component
|
|
4046
4070
|
*/
|
|
4047
|
-
|
|
4071
|
+
linkComponent?: React.ElementType;
|
|
4048
4072
|
}
|
|
4049
4073
|
/**
|
|
4050
4074
|
* Dropdown divider properties
|
|
@@ -4516,7 +4540,7 @@ interface CardProps extends BaseComponentProps {
|
|
|
4516
4540
|
/**
|
|
4517
4541
|
* Optional custom link component (e.g., Next.js Link, React Router Link)
|
|
4518
4542
|
*/
|
|
4519
|
-
|
|
4543
|
+
linkComponent?: React.ElementType;
|
|
4520
4544
|
/**
|
|
4521
4545
|
* Optional click handler
|
|
4522
4546
|
*/
|
|
@@ -6517,7 +6541,7 @@ interface FooterLinkProps extends BaseComponentProps {
|
|
|
6517
6541
|
/**
|
|
6518
6542
|
* Custom link component (e.g., React Router Link)
|
|
6519
6543
|
*/
|
|
6520
|
-
|
|
6544
|
+
linkComponent?: React.ElementType;
|
|
6521
6545
|
}
|
|
6522
6546
|
/**
|
|
6523
6547
|
* Footer social link component properties
|
|
@@ -8733,7 +8757,7 @@ type ButtonAsProp = {
|
|
|
8733
8757
|
as?: ElementType;
|
|
8734
8758
|
to?: string;
|
|
8735
8759
|
href?: string;
|
|
8736
|
-
|
|
8760
|
+
linkComponent?: React__default.ElementType;
|
|
8737
8761
|
[key: string]: any;
|
|
8738
8762
|
};
|
|
8739
8763
|
declare const Button: React__default.MemoExoticComponent<React__default.ForwardRefExoticComponent<Omit<ButtonProps & ButtonAsProp, "ref"> & React__default.RefAttributes<HTMLButtonElement | HTMLAnchorElement>>>;
|
|
@@ -8791,7 +8815,7 @@ interface BreadcrumbItemProps extends React__default.HTMLAttributes<HTMLLIElemen
|
|
|
8791
8815
|
*/
|
|
8792
8816
|
linkAs?: React__default.ElementType<any>;
|
|
8793
8817
|
/**
|
|
8794
|
-
* Link props to pass to the underlying anchor or
|
|
8818
|
+
* Link props to pass to the underlying anchor or linkComponent
|
|
8795
8819
|
*/
|
|
8796
8820
|
linkProps?: Record<string, any>;
|
|
8797
8821
|
}
|
|
@@ -8816,7 +8840,7 @@ interface BreadcrumbProps {
|
|
|
8816
8840
|
/**
|
|
8817
8841
|
* Optional custom link component
|
|
8818
8842
|
*/
|
|
8819
|
-
|
|
8843
|
+
linkComponent?: React__default.ElementType;
|
|
8820
8844
|
/**
|
|
8821
8845
|
* Custom style for the breadcrumb
|
|
8822
8846
|
*/
|
|
@@ -12367,7 +12391,7 @@ declare const SideMenu: React__default.ForwardRefExoticComponent<SideMenuProps &
|
|
|
12367
12391
|
*
|
|
12368
12392
|
* // With icon and custom link component
|
|
12369
12393
|
* import Link from 'next/link';
|
|
12370
|
-
* <SideMenuItem href="/settings" icon={<Icon name="Settings" />}
|
|
12394
|
+
* <SideMenuItem href="/settings" icon={<Icon name="Settings" />} linkComponent={Link}>
|
|
12371
12395
|
* Settings
|
|
12372
12396
|
* </SideMenuItem>
|
|
12373
12397
|
*
|