@digilogiclabs/saas-factory-ui 0.15.1 → 0.15.2

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/index.d.mts CHANGED
@@ -575,6 +575,11 @@ interface ResponsiveHeaderProps extends React$1.HTMLAttributes<HTMLDivElement>,
575
575
  mobileMenuPosition?: "right" | "left" | "fullscreen";
576
576
  showBrandOnMobile?: boolean;
577
577
  children: React$1.ReactNode;
578
+ navigationItems?: any;
579
+ showThemeToggle?: boolean;
580
+ mobileBreakpoint?: string;
581
+ hamburgerIcon?: React$1.ReactNode;
582
+ networkStatus?: any;
578
583
  }
579
584
  declare const ResponsiveHeader: React$1.ForwardRefExoticComponent<ResponsiveHeaderProps & React$1.RefAttributes<HTMLDivElement>>;
580
585
  interface HeaderBrandProps extends React$1.HTMLAttributes<HTMLElement> {
@@ -2031,8 +2036,13 @@ declare const CollaborativePlaylist: React$1.FC<CollaborativePlaylistProps>;
2031
2036
  interface ContainerProps$1 extends React.HTMLAttributes<HTMLDivElement> {
2032
2037
  children: React.ReactNode;
2033
2038
  as?: React.ElementType;
2039
+ navigationItems?: any;
2040
+ showThemeToggle?: boolean;
2041
+ mobileBreakpoint?: string;
2042
+ hamburgerIcon?: React.ReactNode;
2043
+ networkStatus?: any;
2034
2044
  }
2035
- declare function Container$1({ className, as: Component, children, ...props }: ContainerProps$1): react_jsx_runtime.JSX.Element;
2045
+ declare function Container$1({ className, as: Component, children, navigationItems, showThemeToggle, mobileBreakpoint, hamburgerIcon, networkStatus, ...domProps }: ContainerProps$1): react_jsx_runtime.JSX.Element;
2036
2046
 
2037
2047
  interface GridProps$1 extends React$1.HTMLAttributes<HTMLDivElement> {
2038
2048
  children: React$1.ReactNode;
@@ -2043,8 +2053,13 @@ declare function Grid$1({ className, cols, gap, children, ...props }: GridProps$
2043
2053
 
2044
2054
  interface SectionProps$1 extends React$1.HTMLAttributes<HTMLElement> {
2045
2055
  children: React$1.ReactNode;
2056
+ navigationItems?: any;
2057
+ showThemeToggle?: boolean;
2058
+ mobileBreakpoint?: string;
2059
+ hamburgerIcon?: React$1.ReactNode;
2060
+ networkStatus?: any;
2046
2061
  }
2047
- declare function Section$1({ className, children, ...props }: SectionProps$1): react_jsx_runtime.JSX.Element;
2062
+ declare function Section$1({ className, children, navigationItems, showThemeToggle, mobileBreakpoint, hamburgerIcon, networkStatus, ...domProps }: SectionProps$1): react_jsx_runtime.JSX.Element;
2048
2063
 
2049
2064
  type ViewProps$2 = {
2050
2065
  style?: object;
package/dist/index.d.ts CHANGED
@@ -575,6 +575,11 @@ interface ResponsiveHeaderProps extends React$1.HTMLAttributes<HTMLDivElement>,
575
575
  mobileMenuPosition?: "right" | "left" | "fullscreen";
576
576
  showBrandOnMobile?: boolean;
577
577
  children: React$1.ReactNode;
578
+ navigationItems?: any;
579
+ showThemeToggle?: boolean;
580
+ mobileBreakpoint?: string;
581
+ hamburgerIcon?: React$1.ReactNode;
582
+ networkStatus?: any;
578
583
  }
579
584
  declare const ResponsiveHeader: React$1.ForwardRefExoticComponent<ResponsiveHeaderProps & React$1.RefAttributes<HTMLDivElement>>;
580
585
  interface HeaderBrandProps extends React$1.HTMLAttributes<HTMLElement> {
@@ -2031,8 +2036,13 @@ declare const CollaborativePlaylist: React$1.FC<CollaborativePlaylistProps>;
2031
2036
  interface ContainerProps$1 extends React.HTMLAttributes<HTMLDivElement> {
2032
2037
  children: React.ReactNode;
2033
2038
  as?: React.ElementType;
2039
+ navigationItems?: any;
2040
+ showThemeToggle?: boolean;
2041
+ mobileBreakpoint?: string;
2042
+ hamburgerIcon?: React.ReactNode;
2043
+ networkStatus?: any;
2034
2044
  }
2035
- declare function Container$1({ className, as: Component, children, ...props }: ContainerProps$1): react_jsx_runtime.JSX.Element;
2045
+ declare function Container$1({ className, as: Component, children, navigationItems, showThemeToggle, mobileBreakpoint, hamburgerIcon, networkStatus, ...domProps }: ContainerProps$1): react_jsx_runtime.JSX.Element;
2036
2046
 
2037
2047
  interface GridProps$1 extends React$1.HTMLAttributes<HTMLDivElement> {
2038
2048
  children: React$1.ReactNode;
@@ -2043,8 +2053,13 @@ declare function Grid$1({ className, cols, gap, children, ...props }: GridProps$
2043
2053
 
2044
2054
  interface SectionProps$1 extends React$1.HTMLAttributes<HTMLElement> {
2045
2055
  children: React$1.ReactNode;
2056
+ navigationItems?: any;
2057
+ showThemeToggle?: boolean;
2058
+ mobileBreakpoint?: string;
2059
+ hamburgerIcon?: React$1.ReactNode;
2060
+ networkStatus?: any;
2046
2061
  }
2047
- declare function Section$1({ className, children, ...props }: SectionProps$1): react_jsx_runtime.JSX.Element;
2062
+ declare function Section$1({ className, children, navigationItems, showThemeToggle, mobileBreakpoint, hamburgerIcon, networkStatus, ...domProps }: SectionProps$1): react_jsx_runtime.JSX.Element;
2048
2063
 
2049
2064
  type ViewProps$2 = {
2050
2065
  style?: object;
package/dist/index.js CHANGED
@@ -4434,7 +4434,12 @@ var ResponsiveHeader = React23.forwardRef(
4434
4434
  mobileMenuPosition,
4435
4435
  showBrandOnMobile,
4436
4436
  children,
4437
- ...props
4437
+ navigationItems,
4438
+ showThemeToggle,
4439
+ mobileBreakpoint,
4440
+ hamburgerIcon,
4441
+ networkStatus,
4442
+ ...domProps
4438
4443
  }, ref) => {
4439
4444
  const [isScrolledUp, setIsScrolledUp] = React23.useState(true);
4440
4445
  const lastScrollY = React23.useRef(0);
@@ -4461,7 +4466,7 @@ var ResponsiveHeader = React23.forwardRef(
4461
4466
  sticky === "scroll-up" && !isScrolledUp && "-translate-y-full",
4462
4467
  className
4463
4468
  ),
4464
- ...props,
4469
+ ...domProps,
4465
4470
  children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: cn(containerVariants({ maxWidth })), children })
4466
4471
  }
4467
4472
  );
@@ -8264,7 +8269,7 @@ var SearchWithFilters = ({
8264
8269
  onVoiceSearchEnd,
8265
8270
  onLoadMore
8266
8271
  }) => {
8267
- const [localQuery, setLocalQuery] = (0, import_react14.useState)(query);
8272
+ const [localQuery, setLocalQuery] = (0, import_react14.useState)(query || "");
8268
8273
  const [showSuggestions, setShowSuggestions] = (0, import_react14.useState)(false);
8269
8274
  const [showFiltersPanel, setShowFiltersPanel] = (0, import_react14.useState)(false);
8270
8275
  const [isVoiceRecording, setIsVoiceRecording] = (0, import_react14.useState)(false);
@@ -8334,7 +8339,7 @@ var SearchWithFilters = ({
8334
8339
  const newFilters = { ...filters, [key]: value };
8335
8340
  onFiltersChange?.(newFilters);
8336
8341
  triggerHaptic("light");
8337
- if (localQuery.trim()) {
8342
+ if (localQuery?.trim()) {
8338
8343
  onSearch?.(localQuery, newFilters);
8339
8344
  }
8340
8345
  };
@@ -8383,9 +8388,9 @@ var SearchWithFilters = ({
8383
8388
  { id: "custom", label: "Custom Range" }
8384
8389
  ];
8385
8390
  const filteredSuggestions = (0, import_react14.useMemo)(() => {
8386
- if (!localQuery.trim()) return suggestions.slice(0, 8);
8391
+ if (!localQuery?.trim()) return suggestions.slice(0, 8);
8387
8392
  return suggestions.filter(
8388
- (suggestion) => suggestion.text.toLowerCase().includes(localQuery.toLowerCase())
8393
+ (suggestion) => suggestion.text.toLowerCase().includes(localQuery?.toLowerCase() || "")
8389
8394
  ).slice(0, 8);
8390
8395
  }, [suggestions, localQuery]);
8391
8396
  const activeFiltersCount = (0, import_react14.useMemo)(() => {
@@ -13664,13 +13669,18 @@ function Container({
13664
13669
  className,
13665
13670
  as: Component = "div",
13666
13671
  children,
13667
- ...props
13672
+ navigationItems,
13673
+ showThemeToggle,
13674
+ mobileBreakpoint,
13675
+ hamburgerIcon,
13676
+ networkStatus,
13677
+ ...domProps
13668
13678
  }) {
13669
13679
  return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
13670
13680
  Component,
13671
13681
  {
13672
13682
  className: cn("mx-auto w-full max-w-7xl px-4 sm:px-6 lg:px-8", className),
13673
- ...props,
13683
+ ...domProps,
13674
13684
  children
13675
13685
  }
13676
13686
  );
@@ -13700,8 +13710,17 @@ function Grid({
13700
13710
 
13701
13711
  // src/components/layout/web/section.tsx
13702
13712
  var import_jsx_runtime54 = require("react/jsx-runtime");
13703
- function Section({ className, children, ...props }) {
13704
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("section", { className: cn("py-12 md:py-16 lg:py-20", className), ...props, children });
13713
+ function Section({
13714
+ className,
13715
+ children,
13716
+ navigationItems,
13717
+ showThemeToggle,
13718
+ mobileBreakpoint,
13719
+ hamburgerIcon,
13720
+ networkStatus,
13721
+ ...domProps
13722
+ }) {
13723
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("section", { className: cn("py-12 md:py-16 lg:py-20", className), ...domProps, children });
13705
13724
  }
13706
13725
 
13707
13726
  // src/components/layout/native/container.tsx