@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.
Files changed (45) hide show
  1. package/dist/atomix.css +26 -5
  2. package/dist/atomix.css.map +1 -1
  3. package/dist/atomix.min.css +1 -1
  4. package/dist/atomix.min.css.map +1 -1
  5. package/dist/charts.js +4 -16
  6. package/dist/charts.js.map +1 -1
  7. package/dist/core.d.ts +4 -4
  8. package/dist/core.js +14 -26
  9. package/dist/core.js.map +1 -1
  10. package/dist/forms.js +4 -16
  11. package/dist/forms.js.map +1 -1
  12. package/dist/heavy.js +9 -21
  13. package/dist/heavy.js.map +1 -1
  14. package/dist/index.d.ts +40 -16
  15. package/dist/index.esm.js +307 -341
  16. package/dist/index.esm.js.map +1 -1
  17. package/dist/index.js +337 -357
  18. package/dist/index.js.map +1 -1
  19. package/dist/index.min.js +1 -1
  20. package/dist/index.min.js.map +1 -1
  21. package/package.json +1 -1
  22. package/src/components/AtomixGlass/AtomixGlass.tsx +2 -15
  23. package/src/components/AtomixGlass/AtomixGlassContainer.tsx +3 -8
  24. package/src/components/Breadcrumb/Breadcrumb.tsx +5 -5
  25. package/src/components/Breadcrumb/BreadcrumbCompound.test.tsx +2 -2
  26. package/src/components/Button/Button.tsx +6 -6
  27. package/src/components/Card/Card.tsx +3 -3
  28. package/src/components/Dropdown/Dropdown.tsx +5 -3
  29. package/src/components/Footer/Footer.tsx +124 -166
  30. package/src/components/Footer/FooterLink.tsx +16 -19
  31. package/src/components/Footer/FooterSection.tsx +40 -39
  32. package/src/components/Footer/FooterSocialLink.tsx +59 -58
  33. package/src/components/Footer/README.md +1 -1
  34. package/src/components/Hero/Hero.tsx +72 -142
  35. package/src/components/Navigation/Menu/MegaMenu.tsx +17 -12
  36. package/src/components/Navigation/Menu/Menu.tsx +49 -24
  37. package/src/components/Navigation/Nav/NavItem.tsx +5 -3
  38. package/src/components/Navigation/SideMenu/SideMenu.tsx +2 -2
  39. package/src/components/Navigation/SideMenu/SideMenuItem.tsx +4 -4
  40. package/src/components/Slider/Slider.tsx +7 -4
  41. package/src/lib/composables/useFooter.ts +117 -20
  42. package/src/lib/composables/useSlider.ts +3 -1
  43. package/src/lib/types/components.ts +44 -12
  44. package/src/styles/06-components/_components.atomix-glass.scss +39 -5
  45. package/src/components/AtomixGlass/__snapshots__/AtomixGlass.test.tsx.snap +0 -222
package/dist/heavy.js CHANGED
@@ -483,7 +483,7 @@ const sharedShaderCache = new Map, AtomixGlassContainer = forwardRef((({childre
483
483
  }, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, onMouseDown: onMouseDown, onMouseUp: onMouseUp, isHovered: isHovered = !1, isActive: isActive = !1, overLight: overLight = !1, overLightConfig: overLightConfig = {}, borderRadius: borderRadius = 0, padding: padding = "0 0", glassSize: glassSize = {
484
484
  width: 0,
485
485
  height: 0
486
- }, onClick: onClick, mode: mode = "standard", effectiveWithoutEffects: effectiveWithoutEffects = !1, effectiveReducedMotion: effectiveReducedMotion = !1, shaderVariant: shaderVariant = "liquidGlass", withLiquidBlur: withLiquidBlur = !1, elasticity: elasticity = 0, contentRef: contentRef}, ref) => {
486
+ }, onClick: onClick, mode: mode = "standard", effectiveWithoutEffects: effectiveWithoutEffects = !1, effectiveReducedMotion: effectiveReducedMotion = !1, shaderVariant: shaderVariant = "liquidGlass", withLiquidBlur: withLiquidBlur = !1, contentRef: contentRef}, ref) => {
487
487
  // Generate a stable, deterministic ID for SSR compatibility
488
488
  // Use a module-level counter that's consistent across server and client
489
489
  const filterId = useMemo((() => "atomix-glass-filter-" + ++idCounter), []), [shaderMapUrl, setShaderMapUrl] = useState(""), shaderGeneratorRef = useRef(null), shaderUtilsRef = useRef(null), shaderDebounceTimeoutRef = useRef(null);
@@ -679,7 +679,6 @@ const sharedShaderCache = new Map, AtomixGlassContainer = forwardRef((({childre
679
679
  children: [ jsxs("div", {
680
680
  className: ATOMIX_GLASS.FILTER_CLASS,
681
681
  style: {
682
- zIndex: 1,
683
682
  position: "absolute",
684
683
  inset: 0
685
684
  },
@@ -715,9 +714,7 @@ const sharedShaderCache = new Map, AtomixGlassContainer = forwardRef((({childre
715
714
  className: ATOMIX_GLASS.CONTENT_CLASS,
716
715
  style: {
717
716
  position: "relative",
718
- textShadow: "var(--atomix-glass-container-text-shadow)",
719
- // Ensure content is always above the filter layer (zIndex 1)
720
- zIndex: elasticity > 0 ? 100 : 2
717
+ textShadow: "var(--atomix-glass-container-text-shadow)"
721
718
  },
722
719
  children: children
723
720
  }) ]
@@ -1590,7 +1587,6 @@ function useAtomixGlass({glassRef: glassRef, contentRef: contentRef, wrapperRef:
1590
1587
  effectiveWithoutEffects: effectiveWithoutEffects,
1591
1588
  effectiveReducedMotion: effectiveReducedMotion,
1592
1589
  shaderVariant: shaderVariant,
1593
- elasticity: elasticity,
1594
1590
  withLiquidBlur: withLiquidBlur,
1595
1591
  children: children
1596
1592
  }), Boolean(onClick) && jsxs(Fragment, {
@@ -1615,17 +1611,9 @@ function useAtomixGlass({glassRef: glassRef, contentRef: contentRef, wrapperRef:
1615
1611
  }) ]
1616
1612
  }), withBorder && jsxs(Fragment, {
1617
1613
  children: [ jsx("span", {
1618
- className: ATOMIX_GLASS.BORDER_1_CLASS,
1619
- style: {
1620
- width: glassSize.width,
1621
- height: glassSize.height
1622
- }
1614
+ className: ATOMIX_GLASS.BORDER_1_CLASS
1623
1615
  }), jsx("span", {
1624
- className: ATOMIX_GLASS.BORDER_2_CLASS,
1625
- style: {
1626
- width: glassSize.width,
1627
- height: glassSize.height
1628
- }
1616
+ className: ATOMIX_GLASS.BORDER_2_CLASS
1629
1617
  }) ]
1630
1618
  }) ]
1631
1619
  });
@@ -3442,7 +3430,7 @@ class ThemeNaming {
3442
3430
 
3443
3431
  ThemeNaming.prefix = "atomix";
3444
3432
 
3445
- const Button = React.memo( forwardRef((({label: label, children: children, onClick: onClick, variant: variant = "primary", size: size = "md", disabled: disabled = !1, loading: loading = !1, loadingText: loadingText, icon: icon, iconName: iconName, iconSize: iconSize = "sm", iconPosition: iconPosition = "start", iconOnly: iconOnly = !1, rounded: rounded = !1, fullWidth: fullWidth = !1, block: block = !1, active: active = !1, selected: selected = !1, type: type = "button", className: className = "", as: Component = "button", href: href, target: target, glass: glass, onHover: onHover, onFocus: onFocus, onBlur: onBlur, "aria-label": ariaLabel, "aria-describedby": ariaDescribedBy, "aria-expanded": ariaExpanded, "aria-controls": ariaControls, tabIndex: tabIndex, style: style, LinkComponent: LinkComponent, ...props}, ref) => {
3433
+ const Button = React.memo( forwardRef((({label: label, children: children, onClick: onClick, variant: variant = "primary", size: size = "md", disabled: disabled = !1, loading: loading = !1, loadingText: loadingText, icon: icon, iconName: iconName, iconSize: iconSize = "sm", iconPosition: iconPosition = "start", iconOnly: iconOnly = !1, rounded: rounded = !1, fullWidth: fullWidth = !1, block: block = !1, active: active = !1, selected: selected = !1, type: type = "button", className: className = "", as: Component = "button", href: href, target: target, glass: glass, onHover: onHover, onFocus: onFocus, onBlur: onBlur, "aria-label": ariaLabel, "aria-describedby": ariaDescribedBy, "aria-expanded": ariaExpanded, "aria-controls": ariaControls, tabIndex: tabIndex, style: style, linkComponent: linkComponent, ...props}, ref) => {
3446
3434
  const isDisabled = disabled || loading, shouldRenderAsLink = Boolean(href && !isDisabled), iconElement = iconName ? jsx(Icon, {
3447
3435
  name: iconName,
3448
3436
  size: iconSize
@@ -3493,12 +3481,12 @@ const Button = React.memo( forwardRef((({label: label, children: children, onCl
3493
3481
  let content;
3494
3482
  // Render as anchor if href is provided
3495
3483
  if (shouldRenderAsLink)
3496
- // Use custom LinkComponent if provided (e.g., Next.js Link)
3497
- if (LinkComponent) {
3498
- const LinkComp = LinkComponent, linkProps = {
3484
+ // Use custom linkComponent if provided (e.g., Next.js Link)
3485
+ if (linkComponent) {
3486
+ const LinkComp = linkComponent, linkProps = {
3499
3487
  ...buttonProps,
3500
3488
  ref: ref,
3501
- // LinkComponent usually forwards ref to anchor
3489
+ // linkComponent usually forwards ref to anchor
3502
3490
  href: href,
3503
3491
  to: href,
3504
3492
  target: target,