@bloom-housing/ui-components 7.2.3-alpha.1 → 7.3.0
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/__tests__/forms/MultiSelectField.test.js +1 -1
- package/dist/__tests__/tables/AgTable.test.js +1 -1
- package/dist/src/actions/ExpandableContent.d.ts +1 -1
- package/dist/src/config/NavigationContext.d.ts +2 -2
- package/dist/src/forms/CloudinaryUpload.js +1 -1
- package/dist/src/forms/DOBField.d.ts +1 -1
- package/dist/src/forms/DateField.d.ts +1 -1
- package/dist/src/forms/MultiSelectField.d.ts +1 -1
- package/dist/src/forms/MultiSelectField.js +1 -1
- package/dist/src/forms/MultiSelectField.stories.js +1 -1
- package/dist/src/forms/Textarea.d.ts +1 -1
- package/dist/src/forms/TimeField.d.ts +3 -3
- package/dist/src/headers/SiteHeader.d.ts +2 -2
- package/dist/src/helpers/formatYesNoLabel.d.ts +4 -4
- package/dist/src/helpers/preferences.d.ts +1 -1
- package/dist/src/helpers/useMutate.d.ts +2 -2
- package/dist/src/helpers/useMutate.js +1 -1
- package/dist/src/helpers/useOutsideClick.d.ts +1 -1
- package/dist/src/icons/Icon.d.ts +4 -4
- package/dist/src/navigation/LanguageNav.d.ts +1 -1
- package/dist/src/navigation/ProgressNav.d.ts +1 -1
- package/dist/src/notifications/SiteAlert.d.ts +1 -1
- package/dist/src/notifications/alertTypes.d.ts +1 -1
- package/dist/src/overlays/LoadingOverlay.d.ts +1 -1
- package/dist/src/overlays/Overlay.d.ts +1 -1
- package/dist/src/page_components/NavigationHeader.d.ts +2 -2
- package/dist/src/page_components/forgot-password/FormForgotPassword.d.ts +4 -4
- package/dist/src/page_components/listing/ContentAccordion.d.ts +1 -1
- package/dist/src/page_components/listing/listing_sidebar/events/DownloadLotteryResults.d.ts +1 -1
- package/dist/src/page_components/listing/listing_sidebar/events/EventSection.d.ts +2 -2
- package/dist/src/page_components/sign-in/FormSignIn.d.ts +8 -8
- package/dist/src/page_components/sign-in/FormSignInAddPhone.d.ts +3 -3
- package/dist/src/page_components/sign-in/FormSignInErrorBox.d.ts +2 -2
- package/dist/src/page_components/sign-in/FormSignInMFACode.d.ts +2 -2
- package/dist/src/page_components/sign-in/FormSignInMFAType.d.ts +2 -2
- package/dist/src/page_components/sign-in/FormTerms.d.ts +1 -1
- package/dist/src/page_components/sign-in/ResendConfirmationModal.d.ts +2 -2
- package/dist/src/page_components/sign-in/ResendConfirmationModal.js +1 -1
- package/dist/src/tables/AgPagination.d.ts +1 -1
- package/dist/src/tables/StandardTable.d.ts +2 -2
- package/dist/src/text/Heading.d.ts +1 -1
- package/package.json +11 -11
|
@@ -13,7 +13,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
13
13
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
14
14
|
function step(op) {
|
|
15
15
|
if (f) throw new TypeError("Generator is already executing.");
|
|
16
|
-
while (_) try {
|
|
16
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
17
17
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
18
18
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
19
19
|
switch (op[0]) {
|
|
@@ -13,7 +13,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
13
13
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
14
14
|
function step(op) {
|
|
15
15
|
if (f) throw new TypeError("Generator is already executing.");
|
|
16
|
-
while (_) try {
|
|
16
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
17
17
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
18
18
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
19
19
|
switch (op[0]) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import React, { FunctionComponent, AnchorHTMLAttributes, DetailedHTMLProps } from "react";
|
|
3
3
|
import { UrlObject } from "url";
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
type Url = UrlObject | string;
|
|
5
|
+
type DefaultLinkProps = DetailedHTMLProps<AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>;
|
|
6
6
|
export interface LinkProps extends DefaultLinkProps {
|
|
7
7
|
className?: string;
|
|
8
8
|
}
|
|
@@ -13,7 +13,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
13
13
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
14
14
|
function step(op) {
|
|
15
15
|
if (f) throw new TypeError("Generator is already executing.");
|
|
16
|
-
while (_) try {
|
|
16
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
17
17
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
18
18
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
19
19
|
switch (op[0]) {
|
|
@@ -4,7 +4,7 @@ export interface MultiSelectFieldItem {
|
|
|
4
4
|
value: string;
|
|
5
5
|
label: string;
|
|
6
6
|
}
|
|
7
|
-
export
|
|
7
|
+
export type MultiSelectDataSourceParams<T> = (query: string, render: (toRender: MultiSelectFieldItem[]) => void, isFirstCall: boolean) => T;
|
|
8
8
|
export interface MultiSelectFieldProps {
|
|
9
9
|
name: string;
|
|
10
10
|
dataSource: string | string[] | MultiSelectFieldItem[] | MultiSelectDataSourceParams<MultiSelectFieldItem[]> | MultiSelectDataSourceParams<Promise<MultiSelectFieldItem[]>>;
|
|
@@ -13,7 +13,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
13
13
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
14
14
|
function step(op) {
|
|
15
15
|
if (f) throw new TypeError("Generator is already executing.");
|
|
16
|
-
while (_) try {
|
|
16
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
17
17
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
18
18
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
19
19
|
switch (op[0]) {
|
|
@@ -13,7 +13,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
13
13
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
14
14
|
function step(op) {
|
|
15
15
|
if (f) throw new TypeError("Generator is already executing.");
|
|
16
|
-
while (_) try {
|
|
16
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
17
17
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
18
18
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
19
19
|
switch (op[0]) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { UseFormMethods } from "react-hook-form";
|
|
2
|
-
export
|
|
3
|
-
export
|
|
2
|
+
export type TimeFieldPeriod = "am" | "pm";
|
|
3
|
+
export type TimeFieldValues = {
|
|
4
4
|
hours: string;
|
|
5
5
|
minutes: string;
|
|
6
6
|
seconds: string;
|
|
7
7
|
period: TimeFieldPeriod;
|
|
8
8
|
};
|
|
9
|
-
export
|
|
9
|
+
export type TimeFieldProps = {
|
|
10
10
|
defaultValues?: TimeFieldValues;
|
|
11
11
|
disabled?: boolean;
|
|
12
12
|
error?: boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { LangItem } from "../navigation/LanguageNav";
|
|
3
3
|
import "./SiteHeader.scss";
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
type LogoWidth = "slim" | "base" | "medium" | "wide";
|
|
5
|
+
type SiteHeaderWidth = "base" | "wide";
|
|
6
6
|
export interface MenuLink {
|
|
7
7
|
href?: string;
|
|
8
8
|
iconClassName?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const formatYesNoLabel: (value: boolean | null, strings?: {
|
|
2
|
-
yesString?: string
|
|
3
|
-
noString?: string
|
|
4
|
-
notApplicableString?: string
|
|
5
|
-
}
|
|
2
|
+
yesString?: string;
|
|
3
|
+
noString?: string;
|
|
4
|
+
notApplicableString?: string;
|
|
5
|
+
}) => string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type UseMutateOptions = {
|
|
2
2
|
onSuccess?: () => void;
|
|
3
3
|
onError?: (err: any) => void;
|
|
4
4
|
};
|
|
5
5
|
declare const useMutate: <UseMutateResponse>() => {
|
|
6
|
-
mutate: (mutateFn: (args?: unknown) => Promise<UseMutateResponse>, options?: UseMutateOptions
|
|
6
|
+
mutate: (mutateFn: (args?: unknown) => Promise<UseMutateResponse>, options?: UseMutateOptions) => Promise<UseMutateResponse | undefined>;
|
|
7
7
|
reset: () => void;
|
|
8
8
|
data: UseMutateResponse | undefined;
|
|
9
9
|
isSuccess: boolean;
|
|
@@ -13,7 +13,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
13
13
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
14
14
|
function step(op) {
|
|
15
15
|
if (f) throw new TypeError("Generator is already executing.");
|
|
16
|
-
while (_) try {
|
|
16
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
17
17
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
18
18
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
19
19
|
switch (op[0]) {
|
package/dist/src/icons/Icon.d.ts
CHANGED
|
@@ -63,16 +63,16 @@ declare const IconMap: {
|
|
|
63
63
|
trash: (props: import("./Icons").IconProps) => JSX.Element;
|
|
64
64
|
warning: (props: import("./Icons").IconProps) => JSX.Element;
|
|
65
65
|
};
|
|
66
|
-
export
|
|
67
|
-
export
|
|
68
|
-
export
|
|
66
|
+
export type IconTypes = keyof typeof IconMap;
|
|
67
|
+
export type UniversalIconType = IconTypes | IconDefinition;
|
|
68
|
+
export type IconFill = "white" | "primary";
|
|
69
69
|
export declare const IconFillColors: {
|
|
70
70
|
white: string;
|
|
71
71
|
black: string;
|
|
72
72
|
primary: string;
|
|
73
73
|
alert: string;
|
|
74
74
|
};
|
|
75
|
-
export
|
|
75
|
+
export type IconSize = "tiny" | "small" | "base" | "medium" | "large" | "xlarge" | "2xl" | "3xl";
|
|
76
76
|
export interface IconProps {
|
|
77
77
|
size: IconSize;
|
|
78
78
|
symbol: UniversalIconType;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import "./NavigationHeader.scss";
|
|
3
|
-
|
|
3
|
+
type NavigationHeaderProps = {
|
|
4
4
|
className?: string;
|
|
5
5
|
title: React.ReactNode;
|
|
6
6
|
listingId?: string;
|
|
@@ -8,7 +8,7 @@ declare type NavigationHeaderProps = {
|
|
|
8
8
|
breadcrumbs?: React.ReactNode;
|
|
9
9
|
children?: React.ReactChild;
|
|
10
10
|
};
|
|
11
|
-
|
|
11
|
+
type NavigationHeaderTabs = {
|
|
12
12
|
show?: boolean;
|
|
13
13
|
flagsQty?: number;
|
|
14
14
|
listingLabel: string;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { NetworkErrorReset, NetworkStatusContent } from "../sign-in/FormSignIn";
|
|
2
2
|
import type { UseFormMethods } from "react-hook-form";
|
|
3
|
-
export
|
|
3
|
+
export type FormForgotPasswordProps = {
|
|
4
4
|
control: FormForgotPasswordControl;
|
|
5
5
|
onSubmit: (data: FormForgotPasswordValues) => void;
|
|
6
6
|
networkError: FormForgotPasswordNetworkError;
|
|
7
7
|
};
|
|
8
|
-
export
|
|
8
|
+
export type FormForgotPasswordNetworkError = {
|
|
9
9
|
error: NetworkStatusContent;
|
|
10
10
|
reset: NetworkErrorReset;
|
|
11
11
|
};
|
|
12
|
-
export
|
|
12
|
+
export type FormForgotPasswordControl = {
|
|
13
13
|
errors: UseFormMethods["errors"];
|
|
14
14
|
handleSubmit: UseFormMethods["handleSubmit"];
|
|
15
15
|
register: UseFormMethods["register"];
|
|
16
16
|
};
|
|
17
|
-
export
|
|
17
|
+
export type FormForgotPasswordValues = {
|
|
18
18
|
email: string;
|
|
19
19
|
};
|
|
20
20
|
declare const FormForgotPassword: ({ onSubmit, networkError, control: { errors, register, handleSubmit }, }: FormForgotPasswordProps) => JSX.Element;
|
|
@@ -7,7 +7,7 @@ interface ContentAccordionProps {
|
|
|
7
7
|
accordionTheme?: AccordionTheme;
|
|
8
8
|
barClass?: string;
|
|
9
9
|
}
|
|
10
|
-
export
|
|
10
|
+
export type AccordionTheme = "blue" | "gray";
|
|
11
11
|
/**
|
|
12
12
|
* An accordion that consists of header bar content and expandable content
|
|
13
13
|
* Two existing themes under our design system are available
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
export
|
|
2
|
+
export type EventType = {
|
|
3
3
|
timeString?: string;
|
|
4
4
|
dateString?: string;
|
|
5
5
|
linkURL?: string;
|
|
6
6
|
linkText?: string;
|
|
7
7
|
note?: string | React.ReactNode;
|
|
8
8
|
};
|
|
9
|
-
|
|
9
|
+
type EventSectionProps = {
|
|
10
10
|
events: EventType[];
|
|
11
11
|
headerText?: string;
|
|
12
12
|
sectionHeader?: boolean;
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import type { UseFormMethods } from "react-hook-form";
|
|
2
2
|
import { AlertTypes } from "../../notifications/alertTypes";
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
3
|
+
export type NetworkErrorDetermineError = (status: number, error: Error) => void;
|
|
4
|
+
export type NetworkStatusType = AlertTypes;
|
|
5
|
+
export type NetworkErrorReset = () => void;
|
|
6
|
+
export type NetworkStatusContent = {
|
|
7
7
|
title: string;
|
|
8
8
|
description: string;
|
|
9
9
|
error?: boolean;
|
|
10
10
|
} | null;
|
|
11
|
-
export
|
|
11
|
+
export type NetworkStatus = {
|
|
12
12
|
content: NetworkStatusContent;
|
|
13
13
|
type?: NetworkStatusType;
|
|
14
14
|
reset: NetworkErrorReset;
|
|
15
15
|
};
|
|
16
|
-
export
|
|
16
|
+
export type FormSignInProps = {
|
|
17
17
|
control: FormSignInControl;
|
|
18
18
|
onSubmit: (data: FormSignInValues) => void;
|
|
19
19
|
networkStatus: NetworkStatus;
|
|
20
20
|
showRegisterBtn?: boolean;
|
|
21
21
|
};
|
|
22
|
-
export
|
|
22
|
+
export type FormSignInControl = {
|
|
23
23
|
errors: UseFormMethods["errors"];
|
|
24
24
|
handleSubmit: UseFormMethods["handleSubmit"];
|
|
25
25
|
register: UseFormMethods["register"];
|
|
26
26
|
watch: UseFormMethods["watch"];
|
|
27
27
|
};
|
|
28
|
-
export
|
|
28
|
+
export type FormSignInValues = {
|
|
29
29
|
email: string;
|
|
30
30
|
password: string;
|
|
31
31
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import type { UseFormMethods } from "react-hook-form";
|
|
2
2
|
import { NetworkStatus } from "./FormSignIn";
|
|
3
|
-
export
|
|
3
|
+
export type FormSignInAddPhoneProps = {
|
|
4
4
|
control: FormSignInAddPhoneControl;
|
|
5
5
|
onSubmit: (data: FormSignInAddPhoneValues) => void;
|
|
6
6
|
networkError: NetworkStatus;
|
|
7
7
|
phoneNumber: string;
|
|
8
8
|
};
|
|
9
|
-
export
|
|
9
|
+
export type FormSignInAddPhoneControl = {
|
|
10
10
|
errors: UseFormMethods["errors"];
|
|
11
11
|
handleSubmit: UseFormMethods["handleSubmit"];
|
|
12
12
|
control: UseFormMethods["control"];
|
|
13
13
|
};
|
|
14
|
-
export
|
|
14
|
+
export type FormSignInAddPhoneValues = {
|
|
15
15
|
phoneNumber: string;
|
|
16
16
|
};
|
|
17
17
|
declare const FormSignInAddPhone: ({ onSubmit, networkError, control, phoneNumber, }: FormSignInAddPhoneProps) => JSX.Element;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { UseFormMethods } from "react-hook-form";
|
|
2
2
|
import { NetworkStatus } from "./FormSignIn";
|
|
3
|
-
export
|
|
3
|
+
export type FormSignInErrorBoxProps = {
|
|
4
4
|
errors: FormSignInErrorBoxControl["errors"];
|
|
5
5
|
networkStatus: NetworkStatus;
|
|
6
6
|
errorMessageId: string;
|
|
7
7
|
};
|
|
8
|
-
export
|
|
8
|
+
export type FormSignInErrorBoxControl = {
|
|
9
9
|
errors: UseFormMethods["errors"];
|
|
10
10
|
control: UseFormMethods["control"];
|
|
11
11
|
};
|
|
@@ -3,7 +3,7 @@ export declare enum RequestType {
|
|
|
3
3
|
email = "email",
|
|
4
4
|
sms = "sms"
|
|
5
5
|
}
|
|
6
|
-
export
|
|
6
|
+
export type FormSignInMFACodeProps = {
|
|
7
7
|
control: FormSignInControl;
|
|
8
8
|
onSubmit: (data: FormSignInMFACodeValues) => void;
|
|
9
9
|
networkError: NetworkStatus;
|
|
@@ -12,7 +12,7 @@ export declare type FormSignInMFACodeProps = {
|
|
|
12
12
|
phoneNumber: string;
|
|
13
13
|
goBackToPhone: () => void;
|
|
14
14
|
};
|
|
15
|
-
export
|
|
15
|
+
export type FormSignInMFACodeValues = {
|
|
16
16
|
mfaCode: string;
|
|
17
17
|
};
|
|
18
18
|
declare const FormSignInMFACode: ({ onSubmit, networkError, control: { errors, register, handleSubmit }, mfaType, allowPhoneNumberEdit, phoneNumber, goBackToPhone, }: FormSignInMFACodeProps) => JSX.Element;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { UseFormMethods } from "react-hook-form";
|
|
2
2
|
import { NetworkStatus } from "./FormSignIn";
|
|
3
|
-
export
|
|
3
|
+
export type FormSignInMFAProps = {
|
|
4
4
|
control: FormSignInMFAControl;
|
|
5
5
|
onSubmit: (data: unknown) => void;
|
|
6
6
|
networkError: NetworkStatus;
|
|
7
7
|
emailOnClick: () => void;
|
|
8
8
|
smsOnClick: () => void;
|
|
9
9
|
};
|
|
10
|
-
export
|
|
10
|
+
export type FormSignInMFAControl = {
|
|
11
11
|
errors: UseFormMethods["errors"];
|
|
12
12
|
handleSubmit: UseFormMethods["handleSubmit"];
|
|
13
13
|
register: UseFormMethods["register"];
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type ResendConfirmationModalProps = {
|
|
2
2
|
isOpen: boolean;
|
|
3
3
|
initialEmailValue: string;
|
|
4
4
|
onClose: () => void;
|
|
5
5
|
onSubmit: (email: string) => void;
|
|
6
6
|
loading: boolean;
|
|
7
7
|
};
|
|
8
|
-
export
|
|
8
|
+
export type ResendConfirmationModalForm = {
|
|
9
9
|
onSubmit: (email: string) => void;
|
|
10
10
|
};
|
|
11
11
|
declare const ResendConfirmationModal: ({ isOpen, initialEmailValue, loading, onClose, onSubmit, }: ResendConfirmationModalProps) => JSX.Element;
|
|
@@ -13,7 +13,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
13
13
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
14
14
|
function step(op) {
|
|
15
15
|
if (f) throw new TypeError("Generator is already executing.");
|
|
16
|
-
while (_) try {
|
|
16
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
17
17
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
18
18
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
19
19
|
switch (op[0]) {
|
|
@@ -26,7 +26,7 @@ export declare const Cell: (props: {
|
|
|
26
26
|
export declare const TableThumbnail: (props: {
|
|
27
27
|
children: React.ReactNode;
|
|
28
28
|
}) => JSX.Element;
|
|
29
|
-
export
|
|
29
|
+
export type StandardTableCell = {
|
|
30
30
|
/** The main content of the cell */
|
|
31
31
|
content: React.ReactNode;
|
|
32
32
|
/** Text content that will replace this cell's header on mobile views */
|
|
@@ -34,7 +34,7 @@ export declare type StandardTableCell = {
|
|
|
34
34
|
/** Classname to apply to this row */
|
|
35
35
|
rowClass?: string;
|
|
36
36
|
};
|
|
37
|
-
export
|
|
37
|
+
export type StandardTableData = Record<string, StandardTableCell>[];
|
|
38
38
|
export interface StandardTableProps {
|
|
39
39
|
/** If the table should be sortable through dragging */
|
|
40
40
|
draggable?: boolean;
|
|
@@ -5,7 +5,7 @@ export interface HeadingProps {
|
|
|
5
5
|
priority?: number;
|
|
6
6
|
styleType?: HeaderType;
|
|
7
7
|
}
|
|
8
|
-
export
|
|
8
|
+
export type HeaderType = keyof typeof HeaderStyleMap;
|
|
9
9
|
declare const HeaderStyleMap: {
|
|
10
10
|
largePrimary: string;
|
|
11
11
|
mediumNormal: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bloom-housing/ui-components",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.3.0",
|
|
4
4
|
"author": "Sean Albert <sean.albert@exygy.com>",
|
|
5
5
|
"description": "Shared user interface components for Bloom affordable housing system",
|
|
6
6
|
"homepage": "https://github.com/bloom-housing/ui-components",
|
|
@@ -42,13 +42,6 @@
|
|
|
42
42
|
"@babel/preset-env": "^7.15.4",
|
|
43
43
|
"@emotion/core": "^10.0.35",
|
|
44
44
|
"@emotion/styled": "^10.0.27",
|
|
45
|
-
"eslint": "^7.11.0",
|
|
46
|
-
"eslint-config-prettier": "^6.11.0",
|
|
47
|
-
"eslint-plugin-import": "^2.22.1",
|
|
48
|
-
"eslint-plugin-prettier": "^3.1.4",
|
|
49
|
-
"eslint-plugin-react": "^7.21.4",
|
|
50
|
-
"eslint-plugin-react-hooks": "^4.1.2",
|
|
51
|
-
"eslint-plugin-jsx-a11y": "6.5.1",
|
|
52
45
|
"@geometricpanda/storybook-addon-badges": "^0.2.1",
|
|
53
46
|
"@storybook/addon-a11y": "^6.3.8",
|
|
54
47
|
"@storybook/addon-actions": "^6.3.8",
|
|
@@ -68,7 +61,6 @@
|
|
|
68
61
|
"@types/dompurify": "^2.3.3",
|
|
69
62
|
"@types/jest": "^26.0.14",
|
|
70
63
|
"@types/jwt-decode": "^2.2.1",
|
|
71
|
-
"@types/markdown-to-jsx": "6.11.3",
|
|
72
64
|
"@types/mdx": "^2.0.1",
|
|
73
65
|
"@types/node": "^12.12.67",
|
|
74
66
|
"@types/node-polyglot": "^2.4.1",
|
|
@@ -77,16 +69,24 @@
|
|
|
77
69
|
"@types/react-dom": "^16.9.5",
|
|
78
70
|
"@types/react-map-gl": "^5.2.10",
|
|
79
71
|
"@types/react-tabs": "^2.3.2",
|
|
80
|
-
"@types/react-text-mask": "^5.4.6",
|
|
81
72
|
"@types/react-test-renderer": "^16.9.3",
|
|
73
|
+
"@types/react-text-mask": "^5.4.6",
|
|
82
74
|
"@types/react-transition-group": "^4.4.0",
|
|
83
75
|
"@types/webpack": "^4.41.22",
|
|
84
76
|
"autoprefixer": "^10.3.4",
|
|
85
77
|
"babel-loader": "^8.2.2",
|
|
86
78
|
"babel-plugin-require-context-hook": "^1.0.0",
|
|
87
79
|
"dotenv": "^8.2.0",
|
|
80
|
+
"eslint": "^7.11.0",
|
|
81
|
+
"eslint-config-prettier": "^6.11.0",
|
|
82
|
+
"eslint-plugin-import": "^2.22.1",
|
|
83
|
+
"eslint-plugin-jsx-a11y": "6.5.1",
|
|
84
|
+
"eslint-plugin-prettier": "^3.1.4",
|
|
85
|
+
"eslint-plugin-react": "^7.21.4",
|
|
86
|
+
"eslint-plugin-react-hooks": "^4.1.2",
|
|
88
87
|
"identity-obj-proxy": "^3.0.0",
|
|
89
88
|
"jest": "^26.5.3",
|
|
89
|
+
"jest-environment-jsdom": "^26.5.3",
|
|
90
90
|
"mockdate": "^3.0.2",
|
|
91
91
|
"postcss": "^8.3.6",
|
|
92
92
|
"postcss-loader": "^4.3",
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
"style-loader": "^1.1.3",
|
|
105
105
|
"ts-jest": "^26.4.1",
|
|
106
106
|
"ts-loader": "^8.0.4",
|
|
107
|
-
"typescript": "4.
|
|
107
|
+
"typescript": "^4.9.4",
|
|
108
108
|
"webpack": "^4.44.2"
|
|
109
109
|
},
|
|
110
110
|
"dependencies": {
|