@youngonesworks/ui 0.1.50 → 0.1.52

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.
@@ -4,3 +4,10 @@ declare const meta: Meta<typeof SearchInput>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof SearchInput>;
6
6
  export declare const Default: Story;
7
+ export declare const WithCustomSearchIcon: Story;
8
+ export declare const WithFilterIcon: Story;
9
+ export declare const WithoutIcon: Story;
10
+ export declare const Controlled: Story;
11
+ export declare const WithCustomIcon: Story;
12
+ export declare const WithCustomClassName: Story;
13
+ export declare const Disabled: Story;
@@ -1,5 +1,9 @@
1
- interface SearchInputProps {
1
+ import { type ChangeEvent } from 'react';
2
+ import { type TextInputProps } from '../textInput';
3
+ interface SearchInputProps extends TextInputProps {
2
4
  placeholder: string;
5
+ value?: string;
6
+ onChange?: (e: ChangeEvent<HTMLInputElement>) => void;
3
7
  }
4
- export declare const SearchInput: ({ placeholder }: SearchInputProps) => import("react/jsx-runtime").JSX.Element;
8
+ export declare const SearchInput: ({ placeholder, value, onChange, className, rightSection, ...props }: SearchInputProps) => import("react/jsx-runtime").JSX.Element;
5
9
  export {};
package/dist/index.cjs CHANGED
@@ -110064,14 +110064,13 @@ const ScrollToTop = ({ scrollToTopTitle }) => {
110064
110064
 
110065
110065
  //#endregion
110066
110066
  //#region src/components/searchInput/index.tsx
110067
- const SearchInput = ({ placeholder }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TextInput, {
110067
+ const SearchInput = ({ placeholder, value, onChange, className, rightSection,...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TextInput, {
110068
110068
  placeholder,
110069
- className: "w-full lg:w-auto lg:min-w-[23.75rem]",
110070
- rightSection: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconSearch, {
110071
- size: 20,
110072
- stroke: 1,
110073
- className: "rotate-90"
110074
- })
110069
+ className: className || "w-full lg:w-auto lg:min-w-[23.75rem]",
110070
+ rightSection: rightSection || /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, {}),
110071
+ value,
110072
+ onChange,
110073
+ ...props
110075
110074
  });
110076
110075
 
110077
110076
  //#endregion