@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.
- package/dist/components/filter/Action.d.ts +3 -0
- package/dist/components/filter/Back.d.ts +4 -0
- package/dist/components/filter/Dropdown.d.ts +12 -0
- package/dist/components/filter/FilterItem.d.ts +6 -0
- package/dist/components/filter/FilterOptions.d.ts +5 -0
- package/dist/components/filter/PageHeader.d.ts +14 -0
- package/dist/components/filter/SearchBar.d.ts +7 -0
- package/dist/components/filter/index.d.ts +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/lib/page.d.ts +19 -0
- package/dist/sdk.cjs.development.js +724 -0
- package/dist/sdk.cjs.development.js.map +1 -1
- package/dist/sdk.cjs.production.min.js +1 -1
- package/dist/sdk.cjs.production.min.js.map +1 -1
- package/dist/sdk.esm.js +727 -4
- package/dist/sdk.esm.js.map +1 -1
- package/dist/types/misc/index.d.ts +27 -0
- package/package.json +4 -1
- package/src/components/filter/Action.tsx +30 -0
- package/src/components/filter/Back.tsx +35 -0
- package/src/components/filter/Dropdown.tsx +51 -0
- package/src/components/filter/FilterItem.tsx +318 -0
- package/src/components/filter/FilterOptions.tsx +21 -0
- package/src/components/filter/PageHeader.tsx +176 -0
- package/src/components/filter/SearchBar.tsx +105 -0
- package/src/components/filter/index.ts +1 -0
- package/src/components/index.ts +1 -0
- package/src/lib/page.tsx +24 -0
- package/src/types/misc/index.ts +33 -0
|
@@ -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,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 @@
|
|
|
1
|
+
export { default as PageHeader } from './PageHeader';
|
|
@@ -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 {};
|