athameui 0.0.6-c → 0.0.7

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.
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { cx } from "../../utils";
2
3
  import { ButtonGroupVariants } from "./buttonGroup.variants";
3
4
  import type { ButtonGroupProps } from "./ButtonGroupProps";
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import React, { ReactNode, useRef, useLayoutEffect } from "react";
2
3
  import { CSSObject } from "@emotion/react";
3
4
  import { cx } from "../../utils/cx";
@@ -157,6 +158,7 @@ export const FormInput: React.FC<FormInputProps> = ({
157
158
  className={labelClasses}
158
159
  sx={{ label: sx?.label, required: sx?.required }}
159
160
  labelPosition={labelPosition}
161
+ dark={dark}
160
162
  />
161
163
  ) : null;
162
164
 
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { ReactNode } from "react";
2
3
  import { CSSObject } from "@emotion/react";
3
4
  import { cx } from "../../utils/cx";
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { CSSObject } from "@emotion/react";
2
3
  import { cx } from "../../utils/cx";
3
4
 
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { cx } from "../../utils";
2
3
 
3
4
  type FooterProps = {
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import type { CSSObject } from "@emotion/react";
2
3
  import { cx } from "../../utils";
3
4
 
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import type { ReactElement } from "react";
2
3
  import { CSSObject } from "@emotion/react";
3
4
  import { cx } from "../../utils/cx";
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { cx } from "../../utils";
2
3
 
3
4
  type ListItemProps = {
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import React from "react";
2
3
  import { CSSObject } from "@emotion/react";
3
4
  import { HugeiconsIcon } from "@hugeicons/react";
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import React from "react";
2
3
  import { FormInput } from "../FormElements";
3
4
  import { Button } from "../Button";
@@ -24,7 +25,7 @@ type SearchProps = {
24
25
  resultsLabel?: React.ReactNode;
25
26
  searchLabel?: string;
26
27
  searchRole?: string;
27
- searchTerm?: string;
28
+ searchTerm?: string | number;
28
29
  showResultsCount?: boolean;
29
30
  showSearchButton?: boolean;
30
31
  sx?: {
@@ -37,7 +38,7 @@ type SearchProps = {
37
38
  testId?: string;
38
39
  totalResultsCount?: string;
39
40
 
40
- onSearch?: (searchTerm: string) => void;
41
+ onSearch?: (searchTerm: string | number | undefined) => void;
41
42
  setSearchTerm: (e: React.ChangeEvent<HTMLInputElement>) => void;
42
43
  };
43
44
 
@@ -75,7 +76,7 @@ export const Search = ({
75
76
  };
76
77
 
77
78
  const onSearchHandler = () => {
78
- onSearch?.(searchTerm || "");
79
+ onSearch?.(searchTerm);
79
80
  };
80
81
 
81
82
  const hitEnter = (e: React.KeyboardEvent<HTMLInputElement>) => {
package/dist/athameui.cjs CHANGED
@@ -2642,7 +2642,8 @@ const FormInput = ({
2642
2642
  label: sx?.label,
2643
2643
  required: sx?.required
2644
2644
  },
2645
- labelPosition: labelPosition
2645
+ labelPosition: labelPosition,
2646
+ dark: dark
2646
2647
  }) : null;
2647
2648
  const inputElement = type === "textarea" ? jsx("textarea", {
2648
2649
  autoComplete: autoComplete,
@@ -2929,7 +2930,7 @@ const Search = ({
2929
2930
  }
2930
2931
  };
2931
2932
  const onSearchHandler = () => {
2932
- onSearch?.(searchTerm || "");
2933
+ onSearch?.(searchTerm);
2933
2934
  };
2934
2935
  const hitEnter = e => {
2935
2936
  if (e.key === "Enter") {