@shohojdhara/atomix 0.4.4 → 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 +25 -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 +2 -6
- package/dist/charts.js.map +1 -1
- package/dist/core.d.ts +4 -4
- package/dist/core.js +12 -16
- package/dist/core.js.map +1 -1
- package/dist/forms.js +2 -6
- package/dist/forms.js.map +1 -1
- package/dist/heavy.js +7 -11
- package/dist/heavy.js.map +1 -1
- package/dist/index.d.ts +40 -16
- package/dist/index.esm.js +305 -331
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +335 -347
- 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 +0 -1
- 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 +38 -5
- 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,
|
|
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, {
|
|
@@ -3434,7 +3430,7 @@ class ThemeNaming {
|
|
|
3434
3430
|
|
|
3435
3431
|
ThemeNaming.prefix = "atomix";
|
|
3436
3432
|
|
|
3437
|
-
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,
|
|
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) => {
|
|
3438
3434
|
const isDisabled = disabled || loading, shouldRenderAsLink = Boolean(href && !isDisabled), iconElement = iconName ? jsx(Icon, {
|
|
3439
3435
|
name: iconName,
|
|
3440
3436
|
size: iconSize
|
|
@@ -3485,12 +3481,12 @@ const Button = React.memo( forwardRef((({label: label, children: children, onCl
|
|
|
3485
3481
|
let content;
|
|
3486
3482
|
// Render as anchor if href is provided
|
|
3487
3483
|
if (shouldRenderAsLink)
|
|
3488
|
-
// Use custom
|
|
3489
|
-
if (
|
|
3490
|
-
const LinkComp =
|
|
3484
|
+
// Use custom linkComponent if provided (e.g., Next.js Link)
|
|
3485
|
+
if (linkComponent) {
|
|
3486
|
+
const LinkComp = linkComponent, linkProps = {
|
|
3491
3487
|
...buttonProps,
|
|
3492
3488
|
ref: ref,
|
|
3493
|
-
//
|
|
3489
|
+
// linkComponent usually forwards ref to anchor
|
|
3494
3490
|
href: href,
|
|
3495
3491
|
to: href,
|
|
3496
3492
|
target: target,
|