@star-insure/sdk 3.0.3 → 3.1.1

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.
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { TPageHeaderAction } from "../../types";
3
+ export default function Action({ title, href, as, target, type, onClick }: TPageHeaderAction): JSX.Element;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ export declare function BackButton({ back }: {
3
+ back?: string | boolean;
4
+ }): JSX.Element;
@@ -0,0 +1,12 @@
1
+ import React from "react";
2
+ declare type Props = {
3
+ children: React.ReactNode;
4
+ onClose: Function;
5
+ active: boolean;
6
+ };
7
+ declare function Dropdown({ children, onClose, active }: Props): JSX.Element;
8
+ declare namespace Dropdown {
9
+ var Title: "button";
10
+ var Content: "form";
11
+ }
12
+ export default Dropdown;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import { FilterOption } from "../../types";
3
+ export declare function FilterItem({ filter }: {
4
+ filter: FilterOption;
5
+ path?: string;
6
+ }): JSX.Element;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { FilterOption } from "../../types";
3
+ export declare function FilterOptions({ filterOptions }: {
4
+ filterOptions: FilterOption[];
5
+ }): JSX.Element;
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { FilterOption, TPageHeaderAction } from '../../types';
3
+ interface Props {
4
+ title: string;
5
+ search?: string;
6
+ className?: string;
7
+ innerClassName?: string;
8
+ back?: boolean | string;
9
+ actions?: TPageHeaderAction[];
10
+ backText?: string;
11
+ filterOptions?: FilterOption[];
12
+ }
13
+ export default function PageHeader({ title, search, className, innerClassName, back, actions, filterOptions, }: Props): JSX.Element;
14
+ export {};
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ export default function SearchBar({ search, active, onActive, placeholder }: {
3
+ search?: string;
4
+ active: boolean;
5
+ onActive: Function;
6
+ placeholder?: string;
7
+ }): JSX.Element;
@@ -0,0 +1 @@
1
+ export { default as PageHeader } from './PageHeader';
@@ -1,3 +1,4 @@
1
1
  export * from './common';
2
2
  export * from './tables';
3
3
  export * from './forms';
4
+ export * from './filter';
@@ -0,0 +1,19 @@
1
+ import { Page, PageProps } from '@inertiajs/core';
2
+ import { AuthContext, Breadcrumb, Environment } from '../types';
3
+ /**
4
+ * Add custom props here, that are defined in `app/Http/Middleware/HandleInertiaRequests.php`
5
+ */
6
+ declare type CustomPageProps = {
7
+ env: Environment;
8
+ breadcrumbs: Breadcrumb[];
9
+ links: Record<string, string>;
10
+ access_token?: string;
11
+ impersonate_id?: number;
12
+ csrf_token?: string;
13
+ auth: AuthContext;
14
+ } & PageProps;
15
+ /**
16
+ * A wrapper around Inertia's usePage function that gives better type-safety
17
+ */
18
+ export declare function usePage<T>(): Page<CustomPageProps & T>;
19
+ export {};