@verifiedinc-public/shared-ui-elements 3.18.2-beta.13 → 3.18.2-beta.15
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/BrandFilterInput/BrandFilterInput.hook.d.ts +25 -0
- package/dist/components/BrandFilterInput/index.d.ts +16 -0
- package/dist/components/BrandFilterInput/types.d.ts +15 -0
- package/dist/components/chart/one-click-time-series/OneClickOverTimeChart.d.ts +1 -1
- package/dist/components/chart/one-click-time-series/OneClickTimeSeriesDataMapper.d.ts +1 -12
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/shared/{index-CW9F-W3V.mjs → index-Cs67MQjU.mjs} +13 -13
- package/package.json +1 -1
@@ -0,0 +1,25 @@
|
|
1
|
+
import { BrandFilter, Brands } from './types';
|
2
|
+
export declare const toOption: (brands: Brands[]) => {
|
3
|
+
name: string;
|
4
|
+
value: string;
|
5
|
+
_raw: Brands;
|
6
|
+
}[];
|
7
|
+
interface UseBrandFilterInputProps {
|
8
|
+
value: BrandFilter | BrandFilter[] | undefined;
|
9
|
+
multiple?: boolean;
|
10
|
+
onChange?: (brands: BrandFilter | BrandFilter[]) => void;
|
11
|
+
getBrandsQuery: {
|
12
|
+
data?: Brands[];
|
13
|
+
isFetching: boolean;
|
14
|
+
};
|
15
|
+
maximumSelectedBrands?: number;
|
16
|
+
}
|
17
|
+
export declare function useBrandFilterInput({ value, multiple, onChange, getBrandsQuery, maximumSelectedBrands, }: UseBrandFilterInputProps): {
|
18
|
+
brandOptions: {
|
19
|
+
name: string;
|
20
|
+
value: string;
|
21
|
+
_raw: Brands;
|
22
|
+
}[];
|
23
|
+
isFetching: boolean;
|
24
|
+
};
|
25
|
+
export {};
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { BrandFilter } from './types';
|
2
|
+
export type Value = BrandFilter;
|
3
|
+
interface BrandFilterInputProps {
|
4
|
+
label: string;
|
5
|
+
multiple?: boolean;
|
6
|
+
value: Value | Value[] | undefined;
|
7
|
+
onChange: (value: Value | Value[] | null) => void;
|
8
|
+
getBrandsQuery: {
|
9
|
+
data?: any[];
|
10
|
+
isFetching: boolean;
|
11
|
+
};
|
12
|
+
maximumSelectedBrands?: number;
|
13
|
+
}
|
14
|
+
export declare function BrandFilterInput({ label, multiple, value, onChange, getBrandsQuery, maximumSelectedBrands, }: Readonly<BrandFilterInputProps>): import("react").JSX.Element;
|
15
|
+
export * from './types';
|
16
|
+
export * from './BrandFilterInput.hook';
|
@@ -0,0 +1,15 @@
|
|
1
|
+
export interface Brands {
|
2
|
+
brandUuid: string;
|
3
|
+
customerUuid: string;
|
4
|
+
brandName: string;
|
5
|
+
integrationType: string;
|
6
|
+
oneClickCreated: number;
|
7
|
+
oneClickSuccess: number;
|
8
|
+
isLiveBrand: boolean;
|
9
|
+
additionalData: any;
|
10
|
+
}
|
11
|
+
export type BrandFilter = {
|
12
|
+
name: string;
|
13
|
+
value: string;
|
14
|
+
_raw: Brands;
|
15
|
+
};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { default as React } from 'react';
|
2
2
|
import { SeriesChartData } from '../SeriesChart';
|
3
|
-
import { BrandFilter } from '
|
3
|
+
import { BrandFilter } from '../../BrandFilterInput';
|
4
4
|
export interface OneClickOverTimeChartProps {
|
5
5
|
data: SeriesChartData[];
|
6
6
|
isLoading: boolean;
|
@@ -1,15 +1,4 @@
|
|
1
|
-
|
2
|
-
brandUuid: string;
|
3
|
-
brandName: string;
|
4
|
-
integrationType: string;
|
5
|
-
additionalData?: {
|
6
|
-
primaryColor?: string;
|
7
|
-
};
|
8
|
-
}
|
9
|
-
export interface BrandFilter {
|
10
|
-
value: string;
|
11
|
-
_raw: Brand;
|
12
|
-
}
|
1
|
+
import { BrandFilter } from '../../BrandFilterInput';
|
13
2
|
export interface TimeSeriesDataPoint {
|
14
3
|
date: number;
|
15
4
|
value: number;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";import{A as a,c as s,l as e,B as t,m as r,C as
|
1
|
+
"use strict";import{A as a,c as s,l as e,B as t,n,m as r,C as o,D as i,f as p,E as u,j as m,F as c,I as d,b as l,L as I,O as P,h as B,e as g,P as S,Q as h,R as k,S as f,d as C,k as T,T as b,g as y,a as A,V as F,i as L,t as R,u as D}from"../shared/index-Cs67MQjU.mjs";import{a as E,b as O,P as x,S as H}from"../shared/PageSectionHeader-DdpDhBZG.mjs";import{C as N,W as V,u as W}from"../shared/index-C1wV5bJ6.mjs";import{SnackbarProvider as v}from"notistack";export{a as AcceptTermsNotice,s as Alert,e as Backdrop,t as Banner,n as BrandFilterInput,r as Button,o as CredentialRequestsEditor,N as CustomAlertComponent,i as DateInput,p as DateRangeInput,u as EmailInput,m as ExactBirthdayBanner,c as FullWidthAlert,d as Image,l as LegalLink,I as LinkButton,P as OTPInput,B as OneClickForm,E as PageHeader,O as PageSectionHeader,x as Paragraph,g as PhoneInput,S as PrivacyPolicyNotice,h as QRCodeDisplay,k as ResendPhoneBanner,f as SSNInput,H as SectionHeader,C as SelectInput,v as SnackbarProvider,T as TestPhoneNumbersBanner,b as TextButton,y as TimezoneInput,A as Typography,F as VerifiedImage,L as VerifiedIncLogo,V as When,R as toOption,D as useBrandFilterInput,W as useSnackbar};
|
package/dist/index.mjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";import{A as e,c as t,l as r,B as o,m as
|
1
|
+
"use strict";import{A as e,c as t,l as r,B as o,n,m as i,C as m,D as u,f as l,E as c,j as d,F as p,I as h,b as f,L as S,O as g,h as C,e as k,P,Q as y,R as b,S as D,d as B,k as I,T,g as w,a as N,V as R,i as v,o as Y,q as F,r as O,w as x,p as A,s as G,t as L,u as M,v as W}from"./shared/index-Cs67MQjU.mjs";import{a as z,b as E,P as V,S as H}from"./shared/PageSectionHeader-DdpDhBZG.mjs";import{C as j,W as q,u as U}from"./shared/index-C1wV5bJ6.mjs";import{b as Q,d as $,a as K,j as X,u as Z,e as J,c as _,f as aa,g as sa,h as ea,i as ta}from"./shared/useIntersectionObserver-CbpWuEs0.mjs";import{u as ra}from"./shared/useCopyToClipboard-BALOSYVW.mjs";import{a as oa,u as na}from"./shared/useOnClickOutside-P5GTcgh8.mjs";import{u as ia}from"./shared/useCounter-BV32zXDQ.mjs";import{u as ma}from"./shared/usePrevious-DyvR1iCQ.mjs";import{b as ua,a as la,v as ca,e as da,d as pa,p as ha,u as fa,h as Sa,j as ga,g as Ca,o as ka,s as Pa,m as ya,c as ba,l as Da,n as Ba,q as Ia,f as Ta,i as wa,r as Na,z as Ra,t as va,x as Ya,k as Fa,w as Oa,y as xa}from"./shared/shadows-Dhd7FrwF.mjs";import{f as Aa,b as Ga,a as La,c as Ma,u as Wa}from"./shared/uuidColor-Dw38-aYm.mjs";import{masks as za}from"./utils/masks/index.mjs";import{toCapitalize as Ea,toSentenceCase as Va}from"./utils/string/index.mjs";import{k as Ha}from"./shared/formatKebabToPretty-Du43TgPC.mjs";import{M as ja,S as qa,U as Ua,d as Qa,e as $a,f as Ka,g as Xa,a as Za,s as Ja}from"./shared/unix.schema-CMYTtXco.mjs";import{p as _a}from"./shared/phone.schema-XBbyizhq.mjs";import{SnackbarProvider as as}from"notistack";async function ss(a){try{return[await a,null]}catch(s){return[null,s]}}const es=a=>a.replace(/(\d{3})-?(\d{2})-?(\d{4})/,"\u2022\u2022\u2022-\u2022\u2022-$3");export{e as AcceptTermsNotice,t as Alert,r as Backdrop,o as Banner,n as BrandFilterInput,i as Button,m as CredentialRequestsEditor,j as CustomAlertComponent,u as DateInput,l as DateRangeInput,c as EmailInput,d as ExactBirthdayBanner,p as FullWidthAlert,h as Image,f as LegalLink,S as LinkButton,ja as MaskedAndUnmaskedSSNSchema,g as OTPInput,C as OneClickForm,z as PageHeader,E as PageSectionHeader,V as Paragraph,k as PhoneInput,P as PrivacyPolicyNotice,y as QRCodeDisplay,b as ResendPhoneBanner,D as SSNInput,qa as SSNSchema,H as SectionHeader,B as SelectInput,as as SnackbarProvider,I as TestPhoneNumbersBanner,T as TextButton,w as TimezoneInput,N as Typography,Ua as USDateSchema,R as VerifiedImage,v as VerifiedIncLogo,q as When,ua as black,la as blue,ca as colors,Y as countries,da as darkBlue,pa as darkGreen,ha as darkGrey,fa as darkGreyContrast,Sa as darkRed,ga as darkYellow,Qa as descriptionSchema,$a as emailSchema,Ka as fieldSchema,Aa as formatDateMMDDYYYY,Ga as formatDateMMYY,La as formatDateToTimestamp,Ma as formatExtendedDate,Xa as getDateSchemaWithPastValidation,F as getPhoneData,O as getPhoneDataByFieldName,Za as getUnixSchema,Ca as green,ka as grey,Pa as greyContrast,ya as infoContrast,Ha as kebabCaseToPretty,ba as lightBlue,Da as lightGreen,Ba as lightGrey,Ia as lightGreyContrast,Ta as lightRed,wa as lightYellow,za as masks,x as omitProperties,A as parseToPhoneNational,_a as phoneSchema,Na as red,Ra as shadows,G as sortByCountryName,es as ssnFormatter,Ja as stateSchema,va as textDisabled,Ya as theme,Ea as toCapitalize,L as toOption,Va as toSentenceCase,M as useBrandFilterInput,Q as useCallbackRef,ra as useCopyToClipboard,ia as useCounter,$ as useDebounceValue,K as useDisclosure,X as useIntersectionObserver,Z as useLocalStorage,oa as useOnClickOutside,ma as usePrevious,na as useQRCode,J as useScript,_ as useSearchParams,U as useSnackbar,aa as useThrottle,sa as useToggle,ea as useWindowScroll,ta as useWindowSize,Wa as uuidToHashedColor,W as validatePhone,Fa as warningContrast,Oa as white,ss as wrapPromise,xa as yellow};
|