@vtx-ui/react 0.0.1-beta.18 → 0.0.1-beta.21
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/cjs/AdminHeader.css +17702 -21
- package/dist/cjs/components/AdminHeader/components/AdminHeader/AdminHeader.js +1 -1
- package/dist/cjs/components/AdminHeader/components/AdminHeader/AdminHeader.js.map +1 -1
- package/dist/cjs/components/Badge/components/Badge/Badge.js +23 -1
- package/dist/cjs/components/Badge/components/Badge/Badge.js.map +1 -1
- package/dist/cjs/components/Divider/components/Divider/Divider.js +7 -3
- package/dist/cjs/components/Divider/components/Divider/Divider.js.map +1 -1
- package/dist/cjs/components/Image/components/Image/Image.js +2 -2
- package/dist/cjs/components/Image/components/Image/Image.js.map +1 -1
- package/dist/cjs/components/Link/components/Link/Link.js +10 -4
- package/dist/cjs/components/Link/components/Link/Link.js.map +1 -1
- package/dist/cjs/components/Navbar/components/Navbar/NavItem.js +103 -7
- package/dist/cjs/components/Navbar/components/Navbar/NavItem.js.map +1 -1
- package/dist/cjs/components/Navbar/components/Navbar/Navbar.js +40 -106
- package/dist/cjs/components/Navbar/components/Navbar/Navbar.js.map +1 -1
- package/dist/cjs/components/Navbar/components/Navbar/NavbarDesktop.js +51 -0
- package/dist/cjs/components/Navbar/components/Navbar/NavbarDesktop.js.map +1 -0
- package/dist/cjs/components/Navbar/components/Navbar/NavbarMobile.js +60 -0
- package/dist/cjs/components/Navbar/components/Navbar/NavbarMobile.js.map +1 -0
- package/dist/cjs/components/Navbar/components/Navbar/TopBar.js +24 -10
- package/dist/cjs/components/Navbar/components/Navbar/TopBar.js.map +1 -1
- package/dist/cjs/components/Navbar/components/Navbar/useNavbarSections.js +3 -3
- package/dist/cjs/components/Navbar/components/Navbar/useNavbarSections.js.map +1 -1
- package/dist/cjs/components/Navbar/variants/components/Navbar/variants/CenteredNavbar.js +1 -1
- package/dist/cjs/components/Navbar/variants/components/Navbar/variants/CenteredNavbar.js.map +1 -1
- package/dist/cjs/components/Navbar/variants/components/Navbar/variants/SingleRowNavbar.js +15 -8
- package/dist/cjs/components/Navbar/variants/components/Navbar/variants/SingleRowNavbar.js.map +1 -1
- package/dist/cjs/components/Navbar/variants/components/Navbar/variants/TransparentNavbar.js +1 -1
- package/dist/cjs/components/Navbar/variants/components/Navbar/variants/TransparentNavbar.js.map +1 -1
- package/dist/cjs/components/Navbar/variants/components/Navbar/variants/TwoRowNavbar.js +46 -20
- package/dist/cjs/components/Navbar/variants/components/Navbar/variants/TwoRowNavbar.js.map +1 -1
- package/dist/cjs/components/Skeleton/components/Skeleton/SkeletonTheme.js +6 -0
- package/dist/cjs/components/Skeleton/components/Skeleton/SkeletonTheme.js.map +1 -1
- package/dist/cjs/components/Widget/components/Widget/Widget.js +3 -3
- package/dist/cjs/components/Widget/components/Widget/Widget.js.map +1 -1
- package/dist/cjs/components/Widget/components/Widget/index.js +2 -2
- package/dist/cjs/components/Widget/renderers/ContentBlock/components/Widget/renderers/ContentBlock/FeatureHighlightTheme.js +53 -0
- package/dist/cjs/components/Widget/renderers/ContentBlock/components/Widget/renderers/ContentBlock/FeatureHighlightTheme.js.map +1 -0
- package/dist/cjs/components/Widget/renderers/ContentBlock/components/Widget/renderers/ContentBlock/VisualBlockTheme.js +70 -0
- package/dist/cjs/components/Widget/renderers/ContentBlock/components/Widget/renderers/ContentBlock/VisualBlockTheme.js.map +1 -0
- package/dist/cjs/components/Widget/renderers/components/Widget/renderers/CarouselWidget.js +1 -1
- package/dist/cjs/components/Widget/renderers/components/Widget/renderers/CarouselWidget.js.map +1 -1
- package/dist/cjs/components/Widget/renderers/components/Widget/renderers/ContentBlockWidget.js +59 -388
- package/dist/cjs/components/Widget/renderers/components/Widget/renderers/ContentBlockWidget.js.map +1 -1
- package/dist/cjs/components/Widget/renderers/components/Widget/renderers/GridCarouselWidget.js +6 -1
- package/dist/cjs/components/Widget/renderers/components/Widget/renderers/GridCarouselWidget.js.map +1 -1
- package/dist/cjs/components/Widget/renderers/components/Widget/renderers/OrderWidget.js +1 -0
- package/dist/cjs/components/Widget/renderers/components/Widget/renderers/OrderWidget.js.map +1 -1
- package/dist/cjs/components/Widget/renderers/components/Widget/renderers/ProductWidget.js +2 -2
- package/dist/cjs/components/Widget/renderers/components/Widget/renderers/ProductWidget.js.map +1 -1
- package/dist/cjs/components/Widget/renderers/components/Widget/renderers/TestimonialWidget.js +1 -0
- package/dist/cjs/components/Widget/renderers/components/Widget/renderers/TestimonialWidget.js.map +1 -1
- package/dist/cjs/utils/utils/parseClass.js +121 -24
- package/dist/cjs/utils/utils/parseClass.js.map +1 -1
- package/dist/cjs/widgets/ProductCard/widgets/ProductCard/ProductCard.js +19 -13
- package/dist/cjs/widgets/ProductCard/widgets/ProductCard/ProductCard.js.map +1 -1
- package/dist/esm/AdminHeader.css +17702 -21
- package/dist/esm/components/AdminHeader/components/AdminHeader/AdminHeader.js +1 -1
- package/dist/esm/components/AdminHeader/components/AdminHeader/AdminHeader.js.map +1 -1
- package/dist/esm/components/Badge/components/Badge/Badge.js +23 -1
- package/dist/esm/components/Badge/components/Badge/Badge.js.map +1 -1
- package/dist/esm/components/Divider/components/Divider/Divider.js +7 -3
- package/dist/esm/components/Divider/components/Divider/Divider.js.map +1 -1
- package/dist/esm/components/Image/components/Image/Image.js +2 -2
- package/dist/esm/components/Image/components/Image/Image.js.map +1 -1
- package/dist/esm/components/Link/components/Link/Link.js +10 -4
- package/dist/esm/components/Link/components/Link/Link.js.map +1 -1
- package/dist/esm/components/Navbar/components/Navbar/NavItem.js +104 -8
- package/dist/esm/components/Navbar/components/Navbar/NavItem.js.map +1 -1
- package/dist/esm/components/Navbar/components/Navbar/Navbar.js +41 -108
- package/dist/esm/components/Navbar/components/Navbar/Navbar.js.map +1 -1
- package/dist/esm/components/Navbar/components/Navbar/NavbarDesktop.js +47 -0
- package/dist/esm/components/Navbar/components/Navbar/NavbarDesktop.js.map +1 -0
- package/dist/esm/components/Navbar/components/Navbar/NavbarMobile.js +56 -0
- package/dist/esm/components/Navbar/components/Navbar/NavbarMobile.js.map +1 -0
- package/dist/esm/components/Navbar/components/Navbar/TopBar.js +24 -10
- package/dist/esm/components/Navbar/components/Navbar/TopBar.js.map +1 -1
- package/dist/esm/components/Navbar/components/Navbar/useNavbarSections.js +3 -3
- package/dist/esm/components/Navbar/components/Navbar/useNavbarSections.js.map +1 -1
- package/dist/esm/components/Navbar/variants/components/Navbar/variants/CenteredNavbar.js +1 -1
- package/dist/esm/components/Navbar/variants/components/Navbar/variants/CenteredNavbar.js.map +1 -1
- package/dist/esm/components/Navbar/variants/components/Navbar/variants/SingleRowNavbar.js +16 -9
- package/dist/esm/components/Navbar/variants/components/Navbar/variants/SingleRowNavbar.js.map +1 -1
- package/dist/esm/components/Navbar/variants/components/Navbar/variants/TransparentNavbar.js +1 -1
- package/dist/esm/components/Navbar/variants/components/Navbar/variants/TransparentNavbar.js.map +1 -1
- package/dist/esm/components/Navbar/variants/components/Navbar/variants/TwoRowNavbar.js +47 -17
- package/dist/esm/components/Navbar/variants/components/Navbar/variants/TwoRowNavbar.js.map +1 -1
- package/dist/esm/components/Skeleton/components/Skeleton/SkeletonTheme.js +6 -0
- package/dist/esm/components/Skeleton/components/Skeleton/SkeletonTheme.js.map +1 -1
- package/dist/esm/components/Widget/components/Widget/Widget.js +3 -3
- package/dist/esm/components/Widget/components/Widget/Widget.js.map +1 -1
- package/dist/esm/components/Widget/components/Widget/index.js +2 -2
- package/dist/esm/components/Widget/renderers/ContentBlock/components/Widget/renderers/ContentBlock/FeatureHighlightTheme.js +49 -0
- package/dist/esm/components/Widget/renderers/ContentBlock/components/Widget/renderers/ContentBlock/FeatureHighlightTheme.js.map +1 -0
- package/dist/esm/components/Widget/renderers/ContentBlock/components/Widget/renderers/ContentBlock/VisualBlockTheme.js +66 -0
- package/dist/esm/components/Widget/renderers/ContentBlock/components/Widget/renderers/ContentBlock/VisualBlockTheme.js.map +1 -0
- package/dist/esm/components/Widget/renderers/components/Widget/renderers/CarouselWidget.js +1 -1
- package/dist/esm/components/Widget/renderers/components/Widget/renderers/CarouselWidget.js.map +1 -1
- package/dist/esm/components/Widget/renderers/components/Widget/renderers/ContentBlockWidget.js +60 -389
- package/dist/esm/components/Widget/renderers/components/Widget/renderers/ContentBlockWidget.js.map +1 -1
- package/dist/esm/components/Widget/renderers/components/Widget/renderers/GridCarouselWidget.js +6 -1
- package/dist/esm/components/Widget/renderers/components/Widget/renderers/GridCarouselWidget.js.map +1 -1
- package/dist/esm/components/Widget/renderers/components/Widget/renderers/OrderWidget.js +1 -1
- package/dist/esm/components/Widget/renderers/components/Widget/renderers/OrderWidget.js.map +1 -1
- package/dist/esm/components/Widget/renderers/components/Widget/renderers/ProductWidget.js +2 -2
- package/dist/esm/components/Widget/renderers/components/Widget/renderers/ProductWidget.js.map +1 -1
- package/dist/esm/components/Widget/renderers/components/Widget/renderers/TestimonialWidget.js +1 -1
- package/dist/esm/components/Widget/renderers/components/Widget/renderers/TestimonialWidget.js.map +1 -1
- package/dist/esm/theme/base.css +17702 -21
- package/dist/esm/utils/utils/parseClass.js +121 -25
- package/dist/esm/utils/utils/parseClass.js.map +1 -1
- package/dist/esm/widgets/ProductCard/widgets/ProductCard/ProductCard.js +19 -13
- package/dist/esm/widgets/ProductCard/widgets/ProductCard/ProductCard.js.map +1 -1
- package/dist/types/components/Badge/Badge.d.ts +17 -1
- package/dist/types/components/Badge/Badge.d.ts.map +1 -1
- package/dist/types/components/Divider/Divider.d.ts.map +1 -1
- package/dist/types/components/Image/Image.d.ts +4 -0
- package/dist/types/components/Image/Image.d.ts.map +1 -1
- package/dist/types/components/Link/Link.d.ts +4 -0
- package/dist/types/components/Link/Link.d.ts.map +1 -1
- package/dist/types/components/Navbar/NavItem.d.ts +6 -0
- package/dist/types/components/Navbar/NavItem.d.ts.map +1 -1
- package/dist/types/components/Navbar/Navbar.d.ts +6 -7
- package/dist/types/components/Navbar/Navbar.d.ts.map +1 -1
- package/dist/types/components/Navbar/NavbarDesktop.d.ts +4 -0
- package/dist/types/components/Navbar/NavbarDesktop.d.ts.map +1 -0
- package/dist/types/components/Navbar/NavbarMobile.d.ts +4 -0
- package/dist/types/components/Navbar/NavbarMobile.d.ts.map +1 -0
- package/dist/types/components/Navbar/TopBar.d.ts.map +1 -1
- package/dist/types/components/Navbar/types.d.ts +117 -4
- package/dist/types/components/Navbar/types.d.ts.map +1 -1
- package/dist/types/components/Navbar/useNavbarSections.d.ts.map +1 -1
- package/dist/types/components/Navbar/variants/SingleRowNavbar.d.ts +2 -2
- package/dist/types/components/Navbar/variants/SingleRowNavbar.d.ts.map +1 -1
- package/dist/types/components/Navbar/variants/TwoRowNavbar.d.ts +2 -1
- package/dist/types/components/Navbar/variants/TwoRowNavbar.d.ts.map +1 -1
- package/dist/types/components/Skeleton/SkeletonTheme.d.ts +1 -1
- package/dist/types/components/Skeleton/SkeletonTheme.d.ts.map +1 -1
- package/dist/types/components/Widget/renderers/CarouselWidget.d.ts.map +1 -1
- package/dist/types/components/Widget/renderers/ContentBlock/FeatureHighlightTheme.d.ts +10 -0
- package/dist/types/components/Widget/renderers/ContentBlock/FeatureHighlightTheme.d.ts.map +1 -0
- package/dist/types/components/Widget/renderers/ContentBlock/VisualBlockTheme.d.ts +10 -0
- package/dist/types/components/Widget/renderers/ContentBlock/VisualBlockTheme.d.ts.map +1 -0
- package/dist/types/components/Widget/renderers/ContentBlockWidget.d.ts +1 -6
- package/dist/types/components/Widget/renderers/ContentBlockWidget.d.ts.map +1 -1
- package/dist/types/components/Widget/renderers/GridCarouselWidget.d.ts.map +1 -1
- package/dist/types/components/Widget/renderers/OrderWidget.d.ts +1 -1
- package/dist/types/components/Widget/renderers/OrderWidget.d.ts.map +1 -1
- package/dist/types/components/Widget/renderers/TestimonialWidget.d.ts +1 -1
- package/dist/types/components/Widget/renderers/TestimonialWidget.d.ts.map +1 -1
- package/dist/types/components/Widget/types.d.ts +65 -4
- package/dist/types/components/Widget/types.d.ts.map +1 -1
- package/dist/types/utils/parseClass.d.ts +7 -0
- package/dist/types/utils/parseClass.d.ts.map +1 -1
- package/dist/types/widgets/ProductCard/ProductCard.d.ts +4 -4
- package/dist/types/widgets/ProductCard/ProductCard.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../../../src/components/Link/Link.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAC;AAEpD,OAAO,YAAY,CAAC;AAEpB,MAAM,WAAW,SAAU,SAAQ,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IACtF;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;;;;;OAQG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IAC9B;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACrC;;;OAGG;IACH,OAAO,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,OAAO,GAAG,OAAO,GAAG,SAAS,GAAG,OAAO,CAAC;IAC5F;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,KAAK,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,SAAS,CAAC;IACxD;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B;;OAEG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAE5B,QAAQ,CAAC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S,GAAG,SAAS,GAAG,MAAM,CAAC;IAEtE,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,QAAA,MAAM,IAAI,qFAiHT,CAAC;wBAIqB,KAAK,CAAC,EAAE,CAAC,SAAS,GAAG,KAAK,CAAC,aAAa,CAAC,iBAAiB,CAAC,CAAC;AAAnF,wBAAoF;AACpF,OAAO,EAAE,IAAI,EAAE,CAAC"}
|
|
@@ -4,6 +4,12 @@ interface NavItemProps {
|
|
|
4
4
|
item: NavigationItem;
|
|
5
5
|
mobile?: boolean;
|
|
6
6
|
onItemClick?: () => void;
|
|
7
|
+
uppercase?: boolean;
|
|
8
|
+
linkComponent?: React.ElementType;
|
|
9
|
+
defaultHoverColor?: string;
|
|
10
|
+
defaultActiveColor?: string;
|
|
11
|
+
activeIndicatorStyle?: 'underline' | 'background' | 'none';
|
|
12
|
+
activeIndicatorBehavior?: 'always' | 'hover' | 'never';
|
|
7
13
|
}
|
|
8
14
|
export declare const NavItem: React.FC<NavItemProps>;
|
|
9
15
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavItem.d.ts","sourceRoot":"","sources":["../../../../src/components/Navbar/NavItem.tsx"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"NavItem.d.ts","sourceRoot":"","sources":["../../../../src/components/Navbar/NavItem.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAO3D,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzC,UAAU,YAAY;IACpB,IAAI,EAAE,cAAc,CAAC;IACrB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,aAAa,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IAClC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,oBAAoB,CAAC,EAAE,WAAW,GAAG,YAAY,GAAG,MAAM,CAAC;IAC3D,uBAAuB,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,OAAO,CAAC;CACxD;AAED,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAuc1C,CAAC"}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { NavbarResponsiveProps } from './types';
|
|
3
3
|
import './Navbar.css';
|
|
4
4
|
export * from './types';
|
|
5
|
-
export declare const Navbar: React.FC<NavbarResponsiveProps
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
export declare const Navbar: React.FC<NavbarResponsiveProps>;
|
|
6
|
+
export declare const NavbarComponents: {
|
|
7
|
+
Desktop: React.FC<import("./types").NavbarDesktopProps>;
|
|
8
|
+
Mobile: React.FC<import("./types").NavbarMobileProps>;
|
|
9
9
|
};
|
|
10
|
-
|
|
11
|
-
export default _default;
|
|
10
|
+
export default Navbar;
|
|
12
11
|
//# sourceMappingURL=Navbar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Navbar.d.ts","sourceRoot":"","sources":["../../../../src/components/Navbar/Navbar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"Navbar.d.ts","sourceRoot":"","sources":["../../../../src/components/Navbar/Navbar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,EACL,qBAAqB,EACtB,MAAM,SAAS,CAAC;AAGjB,OAAO,cAAc,CAAC;AAGtB,cAAc,SAAS,CAAC;AAkExB,eAAO,MAAM,MAAM,EAA0C,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAAC,CAAC;AAG7F,eAAO,MAAM,gBAAgB;;;CAG5B,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NavbarDesktop.d.ts","sourceRoot":"","sources":["../../../../src/components/Navbar/NavbarDesktop.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAO7C,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA6CtD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NavbarMobile.d.ts","sourceRoot":"","sources":["../../../../src/components/Navbar/NavbarMobile.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAgB5C,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAgNpD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TopBar.d.ts","sourceRoot":"","sources":["../../../../src/components/Navbar/TopBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,YAAY,EAAkB,MAAM,SAAS,CAAC;AAEvD,UAAU,WAAW;IACnB,MAAM,EAAE,YAAY,CAAC;IACrB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,
|
|
1
|
+
{"version":3,"file":"TopBar.d.ts","sourceRoot":"","sources":["../../../../src/components/Navbar/TopBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,YAAY,EAAkB,MAAM,SAAS,CAAC;AAEvD,UAAU,WAAW;IACnB,MAAM,EAAE,YAAY,CAAC;IACrB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CA0ExC,CAAC"}
|
|
@@ -12,16 +12,59 @@ export interface NavigationItem {
|
|
|
12
12
|
megaMenu?: MegaMenuColumn[];
|
|
13
13
|
component?: React.ElementType;
|
|
14
14
|
componentProps?: Record<string, any>;
|
|
15
|
+
description?: string;
|
|
16
|
+
image?: string;
|
|
17
|
+
featured?: boolean;
|
|
18
|
+
tag?: string;
|
|
19
|
+
tagVariant?: 'new' | 'hot' | 'sale' | 'beta';
|
|
20
|
+
hoverColor?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Color variant for active state styling.
|
|
23
|
+
* Supports theme color tokens or custom CSS color values.
|
|
24
|
+
*/
|
|
25
|
+
activeColor?: 'primary' | 'secondary' | 'neutral' | 'success' | 'warning' | 'error' | 'info' | string;
|
|
15
26
|
}
|
|
16
27
|
export interface MegaMenuColumn {
|
|
17
28
|
title?: string;
|
|
29
|
+
description?: string;
|
|
18
30
|
items: NavigationItem[];
|
|
31
|
+
featured?: boolean;
|
|
32
|
+
span?: number;
|
|
33
|
+
image?: string;
|
|
34
|
+
cta?: {
|
|
35
|
+
label: string;
|
|
36
|
+
href: string;
|
|
37
|
+
variant?: 'primary' | 'secondary';
|
|
38
|
+
hoverColor?: string;
|
|
39
|
+
};
|
|
19
40
|
}
|
|
20
41
|
export interface TopBarConfig {
|
|
21
42
|
left?: React.ReactNode | NavigationItem[];
|
|
22
43
|
right?: React.ReactNode | NavigationItem[];
|
|
23
|
-
|
|
24
|
-
|
|
44
|
+
/**
|
|
45
|
+
* Background color of the top bar.
|
|
46
|
+
* - 'primary': Uses theme primary color
|
|
47
|
+
* - 'secondary': Uses theme secondary color
|
|
48
|
+
* - 'dark': Uses a dark background
|
|
49
|
+
* - string: Custom CSS color value
|
|
50
|
+
*/
|
|
51
|
+
backgroundColor?: 'primary' | 'secondary' | 'dark' | string;
|
|
52
|
+
/**
|
|
53
|
+
* Text color of content in the top bar.
|
|
54
|
+
* - 'light': White text (best for dark/primary backgrounds)
|
|
55
|
+
* - 'dark': Dark text (best for light backgrounds)
|
|
56
|
+
* - string: Custom CSS color value
|
|
57
|
+
*/
|
|
58
|
+
textColor?: 'light' | 'dark' | string;
|
|
59
|
+
/**
|
|
60
|
+
* Hide TopBar on specific devices
|
|
61
|
+
*/
|
|
62
|
+
hideOn?: Array<'mobile' | 'tablet' | 'desktop'>;
|
|
63
|
+
/**
|
|
64
|
+
* Custom padding for the TopBar content when not containerized.
|
|
65
|
+
* Only applies when containerized={false}.
|
|
66
|
+
*/
|
|
67
|
+
padding?: string | number;
|
|
25
68
|
}
|
|
26
69
|
export interface NavbarBaseProps {
|
|
27
70
|
logo?: string;
|
|
@@ -34,7 +77,42 @@ export interface NavbarBaseProps {
|
|
|
34
77
|
backgroundColor?: string;
|
|
35
78
|
className?: string;
|
|
36
79
|
style?: React.CSSProperties;
|
|
80
|
+
/**
|
|
81
|
+
* Custom padding for the Navbar content when not containerized.
|
|
82
|
+
* Only applies when containerized={false}.
|
|
83
|
+
*/
|
|
84
|
+
padding?: string | number;
|
|
37
85
|
topBar?: TopBarConfig;
|
|
86
|
+
/**
|
|
87
|
+
* Hover style for navigation items:
|
|
88
|
+
* - 'text': Only text color and weight change (minimal)
|
|
89
|
+
* - 'background': Background color + text changes (default)
|
|
90
|
+
*/
|
|
91
|
+
hoverStyle?: 'text' | 'background';
|
|
92
|
+
/**
|
|
93
|
+
* Default hover color for all navigation items.
|
|
94
|
+
* Can be 'primary', 'secondary', 'neutral', 'inherit' or any valid CSS color string.
|
|
95
|
+
*/
|
|
96
|
+
hoverColor?: string;
|
|
97
|
+
/**
|
|
98
|
+
* Default active color for all navigation items.
|
|
99
|
+
* Individual items can override this with their activeColor prop.
|
|
100
|
+
*/
|
|
101
|
+
activeColor?: 'primary' | 'secondary' | 'neutral' | 'success' | 'warning' | 'error' | 'info' | string;
|
|
102
|
+
/**
|
|
103
|
+
* Controls the visual style of active navigation items.
|
|
104
|
+
* - 'underline': Shows bottom border (default)
|
|
105
|
+
* - 'background': Shows background highlight
|
|
106
|
+
* - 'none': No special styling (only color/weight change)
|
|
107
|
+
*/
|
|
108
|
+
activeIndicatorStyle?: 'underline' | 'background' | 'none';
|
|
109
|
+
/**
|
|
110
|
+
* Controls when the active indicator appears.
|
|
111
|
+
* - 'always': Shows for active items only
|
|
112
|
+
* - 'hover': Shows on hover and for active items
|
|
113
|
+
* - 'never': Never shows underline/background
|
|
114
|
+
*/
|
|
115
|
+
activeIndicatorBehavior?: 'always' | 'hover' | 'never';
|
|
38
116
|
user?: {
|
|
39
117
|
name?: string;
|
|
40
118
|
email?: string;
|
|
@@ -45,6 +123,11 @@ export interface NavbarBaseProps {
|
|
|
45
123
|
placeholder?: string;
|
|
46
124
|
onSearch?: (query: string) => void;
|
|
47
125
|
};
|
|
126
|
+
/**
|
|
127
|
+
* If true, the search input will take up remaining available width.
|
|
128
|
+
* @default true
|
|
129
|
+
*/
|
|
130
|
+
searchFullWidth?: boolean;
|
|
48
131
|
searchOptions?: any[];
|
|
49
132
|
searchGetOptionLabel?: string | ((option: any) => string);
|
|
50
133
|
searchGetOptionValue?: string | ((option: any) => string);
|
|
@@ -61,12 +144,42 @@ export interface NavbarBaseProps {
|
|
|
61
144
|
contentNodes?: React.ReactNode[];
|
|
62
145
|
containerized?: boolean;
|
|
63
146
|
variant?: 'single-row' | 'two-row' | 'centered' | 'transparent';
|
|
64
|
-
onlyDesktop?: boolean;
|
|
65
|
-
onlyMobile?: boolean;
|
|
66
147
|
transparent?: boolean;
|
|
148
|
+
/**
|
|
149
|
+
* Custom link component (e.g., Next.js Link)
|
|
150
|
+
* @default undefined (uses standard HTML anchor)
|
|
151
|
+
*/
|
|
152
|
+
linkComponent?: React.ElementType;
|
|
153
|
+
/**
|
|
154
|
+
* If true, navigation items in second row spread full width with separators
|
|
155
|
+
* @default false
|
|
156
|
+
*/
|
|
157
|
+
fullWidthSubMenu?: boolean;
|
|
158
|
+
/**
|
|
159
|
+
* If true, displays vertical separators between navigation items
|
|
160
|
+
* @default false
|
|
161
|
+
*/
|
|
162
|
+
showNavSeparators?: boolean;
|
|
163
|
+
/**
|
|
164
|
+
* If true, navigation items text is displayed in uppercase
|
|
165
|
+
* @default false
|
|
166
|
+
*/
|
|
167
|
+
uppercaseNavItems?: boolean;
|
|
168
|
+
/**
|
|
169
|
+
* If true, second row background uses primary color with contrast text
|
|
170
|
+
* @default false
|
|
171
|
+
*/
|
|
172
|
+
secondRowPrimaryBackground?: boolean;
|
|
67
173
|
}
|
|
68
174
|
export interface NavbarDesktopProps extends NavbarBaseProps {
|
|
69
175
|
layout?: 'single-row' | 'two-row' | 'centered';
|
|
176
|
+
/**
|
|
177
|
+
* Layout variation for single-row navbar:
|
|
178
|
+
* - standard: Logo | Nav | ... | Actions (Default)
|
|
179
|
+
* - balanced: Logo | ... | Nav | ... | Actions
|
|
180
|
+
* - search-centered: Logo | Nav | Search (Flex) | Actions
|
|
181
|
+
*/
|
|
182
|
+
singleRowVariant?: 'standard' | 'balanced' | 'search-centered';
|
|
70
183
|
}
|
|
71
184
|
export interface NavbarMobileProps extends NavbarBaseProps {
|
|
72
185
|
isOpen?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/Navbar/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,SAAS,GAA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CAAC;CACtC;AAED,MAAM,WAAW,kBAAmB,SAAQ,eAAe;IACzD,MAAM,CAAC,EAAE,YAAY,GAAG,SAAS,GAAG,UAAU,CAAC;IAC/C;;;;;OAKG;IACH,gBAAgB,CAAC,EAAE,UAAU,GAAG,UAAU,GAAG,iBAAiB,CAAC;CAChE;AAED,MAAM,WAAW,iBAAkB,SAAQ,eAAe;IACxD,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CACxC;AAED,MAAM,WAAW,qBAAsB,SAAQ,eAAe;IAC5D,aAAa,CAAC,EAAE,YAAY,GAAG,SAAS,GAAG,UAAU,CAAC;IACtD,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useNavbarSections.d.ts","sourceRoot":"","sources":["../../../../src/components/Navbar/useNavbarSections.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,eAAO,MAAM,iBAAiB,GAAI,OAAO,eAAe;;;;;;;
|
|
1
|
+
{"version":3,"file":"useNavbarSections.d.ts","sourceRoot":"","sources":["../../../../src/components/Navbar/useNavbarSections.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,eAAO,MAAM,iBAAiB,GAAI,OAAO,eAAe;;;;;;;CAmJvD,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export declare const SingleRowNavbar: React.FC<
|
|
2
|
+
import { NavbarDesktopProps } from '../types';
|
|
3
|
+
export declare const SingleRowNavbar: React.FC<NavbarDesktopProps>;
|
|
4
4
|
//# sourceMappingURL=SingleRowNavbar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SingleRowNavbar.d.ts","sourceRoot":"","sources":["../../../../../src/components/Navbar/variants/SingleRowNavbar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"SingleRowNavbar.d.ts","sourceRoot":"","sources":["../../../../../src/components/Navbar/variants/SingleRowNavbar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAK9C,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAkHxD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TwoRowNavbar.d.ts","sourceRoot":"","sources":["../../../../../src/components/Navbar/variants/TwoRowNavbar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"TwoRowNavbar.d.ts","sourceRoot":"","sources":["../../../../../src/components/Navbar/variants/TwoRowNavbar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAS3C,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAmI3C,CAAC;AAEF,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -4,7 +4,7 @@ export interface SkeletonThemeProps extends React.HTMLAttributes<HTMLDivElement>
|
|
|
4
4
|
/**
|
|
5
5
|
* Theme preset for different content types
|
|
6
6
|
*/
|
|
7
|
-
theme: 'card' | 'product' | 'article' | 'blog-post' | 'profile' | 'comment' | 'list-item' | 'table-row' | 'form' | 'hero' | 'about-section' | 'feature-card' | 'testimonial' | 'pricing-card' | 'stats' | 'team-member' | 'gallery-item' | 'video-card' | 'order-card' | 'order-confirmation' | 'order-details' | 'product-grid' | 'content-block';
|
|
7
|
+
theme: 'card' | 'product' | 'article' | 'blog-post' | 'profile' | 'comment' | 'list-item' | 'table-row' | 'form' | 'hero' | 'about-section' | 'feature-card' | 'testimonial' | 'pricing-card' | 'stats' | 'team-member' | 'gallery-item' | 'video-card' | 'order-card' | 'order-confirmation' | 'order-details' | 'product-grid' | 'content-block' | 'cart-list' | 'home-page' | 'checkout';
|
|
8
8
|
/**
|
|
9
9
|
* Animation type
|
|
10
10
|
* @default 'wave'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SkeletonTheme.d.ts","sourceRoot":"","sources":["../../../../src/components/Skeleton/SkeletonTheme.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,sBAAsB,CAAC;AAE9B,MAAM,WAAW,kBAAmB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC9E;;OAEG;IACH,KAAK,
|
|
1
|
+
{"version":3,"file":"SkeletonTheme.d.ts","sourceRoot":"","sources":["../../../../src/components/Skeleton/SkeletonTheme.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,sBAAsB,CAAC;AAE9B,MAAM,WAAW,kBAAmB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC9E;;OAEG;IACH,KAAK,EACH,MAAM,GACN,SAAS,GACT,SAAS,GACT,WAAW,GACX,SAAS,GACT,SAAS,GACT,WAAW,GACX,WAAW,GACX,MAAM,GACN,MAAM,GACN,eAAe,GACf,cAAc,GACd,aAAa,GACb,cAAc,GACd,OAAO,GACP,aAAa,GACb,cAAc,GACd,YAAY,GACZ,YAAY,GACZ,oBAAoB,GACpB,eAAe,GACf,cAAc,GACd,eAAe,GACf,WAAW,GACX,WAAW,GACX,UAAU,CAAC;IACb;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;IACtC;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B;AAED;;;;;;;;;;GAUG;AACH,QAAA,MAAM,aAAa,2FAsoBlB,CAAC;AAIF,eAAe,aAAa,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CarouselWidget.d.ts","sourceRoot":"","sources":["../../../../../src/components/Widget/renderers/CarouselWidget.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAKrD,OAAO,KAAK,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAE3E,UAAU,mBAAmB;IAC3B,IAAI,EAAE,kBAAkB,CAAC;IACzB,QAAQ,CAAC,EAAE,sBAAsB,CAAC;IAGlC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IACtC;;OAEG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IACnC;;;;;OAKG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IACnC;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACpC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAClC;AAwBD,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,
|
|
1
|
+
{"version":3,"file":"CarouselWidget.d.ts","sourceRoot":"","sources":["../../../../../src/components/Widget/renderers/CarouselWidget.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAKrD,OAAO,KAAK,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAE3E,UAAU,mBAAmB;IAC3B,IAAI,EAAE,kBAAkB,CAAC;IACzB,QAAQ,CAAC,EAAE,sBAAsB,CAAC;IAGlC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IACtC;;OAEG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IACnC;;;;;OAKG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IACnC;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACpC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAClC;AAwBD,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAodjD,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './FeatureHighlightTheme.css';
|
|
3
|
+
import { ContentBlockWidgetProps } from '../ContentBlockWidget';
|
|
4
|
+
export declare const FeatureHighlightTheme: React.FC<ContentBlockWidgetProps & {
|
|
5
|
+
wrapperClass: string;
|
|
6
|
+
alignItems: string;
|
|
7
|
+
textAlign: string;
|
|
8
|
+
gapValues: any;
|
|
9
|
+
}>;
|
|
10
|
+
//# sourceMappingURL=FeatureHighlightTheme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FeatureHighlightTheme.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Widget/renderers/ContentBlock/FeatureHighlightTheme.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,6BAA6B,CAAC;AAMrC,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAUhE,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,GAAG;IACnE,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,GAAG,CAAC;CAClB,CAsMI,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './VisualBlockTheme.css';
|
|
3
|
+
import { ContentBlockWidgetProps } from '../ContentBlockWidget';
|
|
4
|
+
export declare const VisualBlockTheme: React.FC<ContentBlockWidgetProps & {
|
|
5
|
+
wrapperClass: string;
|
|
6
|
+
alignItems: string;
|
|
7
|
+
textAlign: string;
|
|
8
|
+
gapValues: any;
|
|
9
|
+
}>;
|
|
10
|
+
//# sourceMappingURL=VisualBlockTheme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VisualBlockTheme.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Widget/renderers/ContentBlock/VisualBlockTheme.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,wBAAwB,CAAC;AAOhC,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAUhE,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,GAAG;IAC9D,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,GAAG,CAAC;CAClB,CAmKI,CAAC"}
|
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ContentBlockWidgetData, ContentBlockWidgetSettings, WidgetTheme } from '../types';
|
|
3
|
-
|
|
3
|
+
import './ContentBlockWidget.css';
|
|
4
4
|
export interface ContentBlockWidgetProps {
|
|
5
5
|
data: ContentBlockWidgetData;
|
|
6
6
|
settings?: ContentBlockWidgetSettings;
|
|
7
7
|
theme?: WidgetTheme;
|
|
8
8
|
className?: string;
|
|
9
9
|
style?: React.CSSProperties;
|
|
10
|
-
/**
|
|
11
|
-
* If true, the media in this block (image/avatar) will be eager loaded with high priority.
|
|
12
|
-
* Useful when the content block is the LCP element (e.g. Hero section).
|
|
13
|
-
* @default false
|
|
14
|
-
*/
|
|
15
10
|
priority?: boolean;
|
|
16
11
|
}
|
|
17
12
|
declare const ContentBlockWidget: React.FC<ContentBlockWidgetProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentBlockWidget.d.ts","sourceRoot":"","sources":["../../../../../src/components/Widget/renderers/ContentBlockWidget.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ContentBlockWidget.d.ts","sourceRoot":"","sources":["../../../../../src/components/Widget/renderers/ContentBlockWidget.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,sBAAsB,EAAE,0BAA0B,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAG3F,OAAO,0BAA0B,CAAC;AAElC,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,sBAAsB,CAAC;IAC7B,QAAQ,CAAC,EAAE,0BAA0B,CAAC;IACtC,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,QAAA,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAgFzD,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GridCarouselWidget.d.ts","sourceRoot":"","sources":["../../../../../src/components/Widget/renderers/GridCarouselWidget.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAChE,OAAO,EAAE,sBAAsB,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAC;AAK9E,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,sBAAsB,CAAC;IAC7B,QAAQ,CAAC,EAAE,0BAA0B,CAAC;CACvC;AAED;;;;;;;;;;;;;GAaG;AACH,QAAA,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,
|
|
1
|
+
{"version":3,"file":"GridCarouselWidget.d.ts","sourceRoot":"","sources":["../../../../../src/components/Widget/renderers/GridCarouselWidget.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAChE,OAAO,EAAE,sBAAsB,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAC;AAK9E,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,sBAAsB,CAAC;IAC7B,QAAQ,CAAC,EAAE,0BAA0B,CAAC;CACvC;AAED;;;;;;;;;;;;;GAaG;AACH,QAAA,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAsTzD,CAAC;AAIF,eAAe,kBAAkB,CAAC"}
|
|
@@ -4,6 +4,6 @@ interface OrderWidgetProps {
|
|
|
4
4
|
data: OrderWidgetData;
|
|
5
5
|
settings?: OrderWidgetSettings;
|
|
6
6
|
}
|
|
7
|
-
declare const OrderWidget: React.FC<OrderWidgetProps>;
|
|
7
|
+
export declare const OrderWidget: React.FC<OrderWidgetProps>;
|
|
8
8
|
export default OrderWidget;
|
|
9
9
|
//# sourceMappingURL=OrderWidget.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OrderWidget.d.ts","sourceRoot":"","sources":["../../../../../src/components/Widget/renderers/OrderWidget.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAGhE,UAAU,gBAAgB;IACxB,IAAI,EAAE,eAAe,CAAC;IACtB,QAAQ,CAAC,EAAE,mBAAmB,CAAC;CAChC;AAED,
|
|
1
|
+
{"version":3,"file":"OrderWidget.d.ts","sourceRoot":"","sources":["../../../../../src/components/Widget/renderers/OrderWidget.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAGhE,UAAU,gBAAgB;IACxB,IAAI,EAAE,eAAe,CAAC;IACtB,QAAQ,CAAC,EAAE,mBAAmB,CAAC;CAChC;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA8ElD,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -10,6 +10,6 @@ export interface TestimonialWidgetProps {
|
|
|
10
10
|
borderRadius?: boolean;
|
|
11
11
|
authorPosition?: 'top' | 'bottom';
|
|
12
12
|
}
|
|
13
|
-
declare const TestimonialWidget: React.FC<TestimonialWidgetProps>;
|
|
13
|
+
export declare const TestimonialWidget: React.FC<TestimonialWidgetProps>;
|
|
14
14
|
export default TestimonialWidget;
|
|
15
15
|
//# sourceMappingURL=TestimonialWidget.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TestimonialWidget.d.ts","sourceRoot":"","sources":["../../../../../src/components/Widget/renderers/TestimonialWidget.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAMrD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAEtD,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,qBAAqB,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,UAAU,GAAG,QAAQ,GAAG,cAAc,GAAG,eAAe,CAAC;IACtF,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,cAAc,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC;CACnC;AAED,
|
|
1
|
+
{"version":3,"file":"TestimonialWidget.d.ts","sourceRoot":"","sources":["../../../../../src/components/Widget/renderers/TestimonialWidget.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAMrD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAEtD,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,qBAAqB,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,UAAU,GAAG,QAAQ,GAAG,cAAc,GAAG,eAAe,CAAC;IACtF,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,cAAc,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC;CACnC;AAED,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CA8Z9D,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -5,7 +5,7 @@ export type WidgetType = 'metric' | 'info' | 'product' | 'order' | 'order-confir
|
|
|
5
5
|
/**
|
|
6
6
|
* WidgetTheme - all available theme options
|
|
7
7
|
*/
|
|
8
|
-
export type WidgetTheme = 'minimal' | 'modern' | 'professional' | 'compact' | 'detailed' | 'card' | 'inline' | 'hero' | 'base' | 'two-row' | 'centered' | 'editorial' | 'ecommerce' | 'creative' | 'luxury' | 'playful' | 'technical' | 'elegant' | 'list';
|
|
8
|
+
export type WidgetTheme = 'minimal' | 'modern' | 'professional' | 'compact' | 'detailed' | 'card' | 'inline' | 'hero' | 'base' | 'two-row' | 'centered' | 'editorial' | 'ecommerce' | 'creative' | 'luxury' | 'playful' | 'technical' | 'elegant' | 'list' | 'visual-block' | 'feature-highlight';
|
|
9
9
|
export type GridConfig = {
|
|
10
10
|
mobile?: number;
|
|
11
11
|
tablet?: number;
|
|
@@ -119,6 +119,7 @@ export interface ProductWidgetData extends BaseWidgetData {
|
|
|
119
119
|
url?: string;
|
|
120
120
|
currency?: string;
|
|
121
121
|
readonly?: boolean;
|
|
122
|
+
isWishlisted?: boolean;
|
|
122
123
|
}
|
|
123
124
|
/**
|
|
124
125
|
* Product Widget Settings - Display and layout options
|
|
@@ -130,7 +131,6 @@ export interface ProductWidgetSettings extends BaseWidgetSettings {
|
|
|
130
131
|
imagePosition?: 'top' | 'left' | 'right';
|
|
131
132
|
cardStyle?: 'elevated' | 'outlined' | 'flat';
|
|
132
133
|
showWishlist?: boolean;
|
|
133
|
-
isWishlisted?: boolean;
|
|
134
134
|
cartIcon?: React.ReactNode;
|
|
135
135
|
wishlistIcon?: React.ReactNode;
|
|
136
136
|
wishlistFilledIcon?: React.ReactNode;
|
|
@@ -711,6 +711,7 @@ export interface GridCarouselWidgetSettings extends BaseWidgetSettings {
|
|
|
711
711
|
productSettings?: Omit<ProductWidgetSettings, 'className' | 'style'>;
|
|
712
712
|
}
|
|
713
713
|
export interface ContentBlockWidgetData extends Omit<BaseWidgetData, 'metadata'> {
|
|
714
|
+
iconVariant?: WidgetVariant;
|
|
714
715
|
media?: {
|
|
715
716
|
type?: 'image' | 'avatar' | 'icon' | 'video' | 'gallery' | 'logo' | 'illustration';
|
|
716
717
|
src?: string;
|
|
@@ -742,9 +743,21 @@ export interface ContentBlockWidgetData extends Omit<BaseWidgetData, 'metadata'>
|
|
|
742
743
|
headingVariant?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
743
744
|
subheadingVariant?: 'h3' | 'h4' | 'h5' | 'h6' | 'subtitle1' | 'subtitle2';
|
|
744
745
|
bodyVariant?: 'body1' | 'body2';
|
|
746
|
+
captionVariant?: 'caption' | 'overline' | 'body2';
|
|
747
|
+
captionStyle?: 'text' | 'badge';
|
|
745
748
|
list?: Array<{
|
|
746
|
-
text
|
|
749
|
+
text?: React.ReactNode;
|
|
750
|
+
label?: React.ReactNode;
|
|
751
|
+
heading?: React.ReactNode;
|
|
752
|
+
title?: React.ReactNode;
|
|
753
|
+
description?: React.ReactNode;
|
|
754
|
+
body?: React.ReactNode;
|
|
747
755
|
icon?: React.ReactNode;
|
|
756
|
+
iconVariant?: WidgetVariant;
|
|
757
|
+
iconSize?: string;
|
|
758
|
+
image?: React.ReactNode;
|
|
759
|
+
imageWidth?: string;
|
|
760
|
+
imageHeight?: string;
|
|
748
761
|
checked?: boolean;
|
|
749
762
|
}>;
|
|
750
763
|
listType?: 'bullet' | 'number' | 'check' | 'icon' | 'none';
|
|
@@ -821,7 +834,7 @@ export interface ContentBlockWidgetSettings extends Omit<BaseWidgetSettings, 'va
|
|
|
821
834
|
layout?: 'media-left' | 'media-right' | 'split-equal' | 'media-top' | 'media-bottom' | 'media-background' | 'centered' | 'centered-media-top' | 'grid-2col' | 'grid-3col' | 'sidebar-left' | 'sidebar-right';
|
|
822
835
|
mediaWidth?: '20%' | '30%' | '40%' | '50%' | '60%' | '70%' | 'auto';
|
|
823
836
|
contentWidth?: 'narrow' | 'medium' | 'wide' | 'full';
|
|
824
|
-
gap?: 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
837
|
+
gap?: 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | string;
|
|
825
838
|
padding?: 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
826
839
|
imageWidth?: string;
|
|
827
840
|
imageHeight?: string;
|
|
@@ -864,6 +877,54 @@ export interface ContentBlockWidgetSettings extends Omit<BaseWidgetSettings, 'va
|
|
|
864
877
|
};
|
|
865
878
|
animate?: boolean;
|
|
866
879
|
animationType?: 'fade' | 'slide-up' | 'slide-left' | 'slide-right' | 'zoom' | 'none';
|
|
880
|
+
typography?: {
|
|
881
|
+
caption?: ContentBlockTypographyConfig;
|
|
882
|
+
heading?: ContentBlockTypographyConfig;
|
|
883
|
+
subheading?: ContentBlockTypographyConfig;
|
|
884
|
+
body?: ContentBlockTypographyConfig;
|
|
885
|
+
};
|
|
886
|
+
spacing?: {
|
|
887
|
+
caption?: string;
|
|
888
|
+
heading?: string;
|
|
889
|
+
subheading?: string;
|
|
890
|
+
body?: string;
|
|
891
|
+
list?: string;
|
|
892
|
+
listHorizontalGap?: string;
|
|
893
|
+
itemGap?: string;
|
|
894
|
+
media?: string;
|
|
895
|
+
};
|
|
896
|
+
/**
|
|
897
|
+
* Destination URL for the main clickable area (e.g. wrapper link)
|
|
898
|
+
*/
|
|
899
|
+
linkDestination?: string;
|
|
900
|
+
/**
|
|
901
|
+
* If true, opens the linkDestination in a new tab
|
|
902
|
+
*/
|
|
903
|
+
openInNewTab?: boolean;
|
|
904
|
+
/**
|
|
905
|
+
* The visual containment style of the block
|
|
906
|
+
*/
|
|
907
|
+
displayMode?: 'card' | 'outline' | 'minimal';
|
|
908
|
+
/**
|
|
909
|
+
* The background/text color scheme
|
|
910
|
+
*/
|
|
911
|
+
colorMode?: 'light' | 'dark' | 'primary' | 'secondary';
|
|
912
|
+
/**
|
|
913
|
+
* If true, prioritizes image loading (disables lazy loading)
|
|
914
|
+
*/
|
|
915
|
+
imagePriority?: boolean;
|
|
916
|
+
}
|
|
917
|
+
export interface ContentBlockTypographyConfig {
|
|
918
|
+
variant?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'body1' | 'body2' | 'subtitle1' | 'subtitle2' | 'caption' | 'overline' | 'button' | 'label';
|
|
919
|
+
as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span' | 'div' | 'label' | 'strong' | 'em' | 'small';
|
|
920
|
+
align?: 'left' | 'center' | 'right' | 'justify';
|
|
921
|
+
weight?: 'thin' | 'extralight' | 'light' | 'normal' | 'medium' | 'semibold' | 'bold' | 'extrabold' | 'black' | number;
|
|
922
|
+
transform?: 'none' | 'uppercase' | 'lowercase' | 'capitalize';
|
|
923
|
+
color?: 'primary' | 'secondary' | 'success' | 'error' | 'warning' | 'info' | 'inherit';
|
|
924
|
+
textColor?: string;
|
|
925
|
+
size?: string | number;
|
|
926
|
+
lineHeight?: string | number;
|
|
927
|
+
letterSpacing?: string | number;
|
|
867
928
|
}
|
|
868
929
|
/**
|
|
869
930
|
* Grid Widget Data - Collection of widgets
|