@bloom-housing/ui-components 7.2.2 → 7.2.3-alpha.2

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.
Files changed (45) hide show
  1. package/dist/__tests__/forms/MultiSelectField.test.js +1 -1
  2. package/dist/__tests__/tables/AgTable.test.js +1 -1
  3. package/dist/src/actions/ExpandableContent.d.ts +1 -1
  4. package/dist/src/config/NavigationContext.d.ts +2 -2
  5. package/dist/src/forms/CloudinaryUpload.js +1 -1
  6. package/dist/src/forms/DOBField.d.ts +1 -1
  7. package/dist/src/forms/DateField.d.ts +1 -1
  8. package/dist/src/forms/MultiSelectField.d.ts +1 -1
  9. package/dist/src/forms/MultiSelectField.js +1 -1
  10. package/dist/src/forms/MultiSelectField.stories.js +1 -1
  11. package/dist/src/forms/Textarea.d.ts +1 -1
  12. package/dist/src/forms/TimeField.d.ts +3 -3
  13. package/dist/src/headers/SiteHeader.d.ts +2 -2
  14. package/dist/src/helpers/formatYesNoLabel.d.ts +4 -4
  15. package/dist/src/helpers/preferences.d.ts +1 -1
  16. package/dist/src/helpers/useMutate.d.ts +2 -2
  17. package/dist/src/helpers/useMutate.js +1 -1
  18. package/dist/src/helpers/useOutsideClick.d.ts +1 -1
  19. package/dist/src/icons/Icon.d.ts +4 -4
  20. package/dist/src/navigation/LanguageNav.d.ts +1 -1
  21. package/dist/src/navigation/ProgressNav.d.ts +1 -1
  22. package/dist/src/notifications/SiteAlert.d.ts +1 -1
  23. package/dist/src/notifications/alertTypes.d.ts +1 -1
  24. package/dist/src/overlays/LoadingOverlay.d.ts +1 -1
  25. package/dist/src/overlays/Overlay.d.ts +1 -1
  26. package/dist/src/page_components/NavigationHeader.d.ts +2 -2
  27. package/dist/src/page_components/forgot-password/FormForgotPassword.d.ts +4 -4
  28. package/dist/src/page_components/listing/ContentAccordion.d.ts +1 -1
  29. package/dist/src/page_components/listing/listing_sidebar/events/DownloadLotteryResults.d.ts +1 -1
  30. package/dist/src/page_components/listing/listing_sidebar/events/EventSection.d.ts +2 -2
  31. package/dist/src/page_components/sign-in/FormSignIn.d.ts +8 -8
  32. package/dist/src/page_components/sign-in/FormSignInAddPhone.d.ts +3 -3
  33. package/dist/src/page_components/sign-in/FormSignInErrorBox.d.ts +2 -2
  34. package/dist/src/page_components/sign-in/FormSignInMFACode.d.ts +2 -2
  35. package/dist/src/page_components/sign-in/FormSignInMFAType.d.ts +2 -2
  36. package/dist/src/page_components/sign-in/FormTerms.d.ts +1 -1
  37. package/dist/src/page_components/sign-in/ResendConfirmationModal.d.ts +2 -2
  38. package/dist/src/page_components/sign-in/ResendConfirmationModal.js +1 -1
  39. package/dist/src/tables/AgPagination.d.ts +1 -1
  40. package/dist/src/tables/StandardTable.d.ts +2 -2
  41. package/dist/src/text/Heading.d.ts +1 -1
  42. package/package.json +26 -12
  43. package/{dist/tailwind.config.d.ts → tailwind.config.d.ts} +0 -0
  44. package/dist/tailwind.config.js +0 -124
  45. package/dist/tailwind.config.js.map +0 -1
@@ -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,5 +1,5 @@
1
1
  import React from "react";
2
- declare type ExpandableContentProps = {
2
+ type ExpandableContentProps = {
3
3
  children: React.ReactChild;
4
4
  strings: {
5
5
  readMore?: string;
@@ -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
- declare type Url = UrlObject | string;
5
- declare type DefaultLinkProps = DetailedHTMLProps<AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>;
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]) {
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { UseFormMethods, FieldError, DeepMap } from "react-hook-form";
3
- export declare type DOBFieldValues = {
3
+ export type DOBFieldValues = {
4
4
  birthDay: string;
5
5
  birthMonth: string;
6
6
  birthYear: string;
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { UseFormMethods, FieldError, DeepMap } from "react-hook-form";
3
- export declare type DateFieldValues = {
3
+ export type DateFieldValues = {
4
4
  day: string;
5
5
  month: string;
6
6
  year: string;
@@ -4,7 +4,7 @@ export interface MultiSelectFieldItem {
4
4
  value: string;
5
5
  label: string;
6
6
  }
7
- export declare type MultiSelectDataSourceParams<T> = (query: string, render: (toRender: MultiSelectFieldItem[]) => void, isFirstCall: boolean) => T;
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,6 +1,6 @@
1
1
  import "./Textarea.scss";
2
2
  import { UseFormMethods } from "react-hook-form";
3
- declare type WrapOptions = "soft" | "hard";
3
+ type WrapOptions = "soft" | "hard";
4
4
  export interface TextareaProps {
5
5
  cols?: number;
6
6
  defaultValue?: string;
@@ -1,12 +1,12 @@
1
1
  import { UseFormMethods } from "react-hook-form";
2
- export declare type TimeFieldPeriod = "am" | "pm";
3
- export declare type TimeFieldValues = {
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 declare type TimeFieldProps = {
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
- declare type LogoWidth = "slim" | "base" | "medium" | "wide";
5
- declare type SiteHeaderWidth = "base" | "wide";
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 | undefined;
3
- noString?: string | undefined;
4
- notApplicableString?: string | undefined;
5
- } | undefined) => string;
2
+ yesString?: string;
3
+ noString?: string;
4
+ notApplicableString?: string;
5
+ }) => string;
@@ -1,5 +1,5 @@
1
1
  import { UseFormMethods } from "react-hook-form";
2
- declare type FormAddressProps = {
2
+ type FormAddressProps = {
3
3
  subtitle: string;
4
4
  dataKey: string;
5
5
  enableMailCheckbox?: boolean;
@@ -1,9 +1,9 @@
1
- export declare type UseMutateOptions = {
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 | undefined) => Promise<UseMutateResponse | undefined>;
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]) {
@@ -1,5 +1,5 @@
1
1
  import { RefObject } from "react";
2
- declare type OutsideClickProps = {
2
+ type OutsideClickProps = {
3
3
  ref: RefObject<Element>;
4
4
  callback: () => unknown;
5
5
  };
@@ -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 declare type IconTypes = keyof typeof IconMap;
67
- export declare type UniversalIconType = IconTypes | IconDefinition;
68
- export declare type IconFill = "white" | "primary";
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 declare type IconSize = "tiny" | "small" | "base" | "medium" | "large" | "xlarge" | "2xl" | "3xl";
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,5 +1,5 @@
1
1
  import "./LanguageNav.scss";
2
- export declare type LangItem = {
2
+ export type LangItem = {
3
3
  label: string;
4
4
  onClick: () => void;
5
5
  active: boolean;
@@ -1,5 +1,5 @@
1
1
  import "./ProgressNav.scss";
2
- declare type ProgressNavStyle = "bar" | "dot";
2
+ type ProgressNavStyle = "bar" | "dot";
3
3
  declare const ProgressNav: (props: {
4
4
  currentPageSection: number;
5
5
  completedSections: number;
@@ -1,5 +1,5 @@
1
1
  import { AlertTypes } from "./alertTypes";
2
- declare type SiteAlertProps = {
2
+ type SiteAlertProps = {
3
3
  timeout?: number;
4
4
  dismissable?: boolean;
5
5
  type?: AlertTypes;
@@ -4,4 +4,4 @@ export declare const colorClasses: {
4
4
  success: string;
5
5
  warn: string;
6
6
  };
7
- export declare type AlertTypes = keyof typeof colorClasses;
7
+ export type AlertTypes = keyof typeof colorClasses;
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import "./LoadingOverlay.scss";
3
- declare type LoadingOverlayProps = {
3
+ type LoadingOverlayProps = {
4
4
  isLoading: boolean;
5
5
  children: React.ReactChild;
6
6
  };
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import "./Overlay.scss";
3
- export declare type OverlayProps = {
3
+ export type OverlayProps = {
4
4
  open?: boolean;
5
5
  ariaLabelledBy?: string;
6
6
  ariaDescription?: string;
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import "./NavigationHeader.scss";
3
- declare type NavigationHeaderProps = {
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
- declare type NavigationHeaderTabs = {
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 declare type FormForgotPasswordProps = {
3
+ export type FormForgotPasswordProps = {
4
4
  control: FormForgotPasswordControl;
5
5
  onSubmit: (data: FormForgotPasswordValues) => void;
6
6
  networkError: FormForgotPasswordNetworkError;
7
7
  };
8
- export declare type FormForgotPasswordNetworkError = {
8
+ export type FormForgotPasswordNetworkError = {
9
9
  error: NetworkStatusContent;
10
10
  reset: NetworkErrorReset;
11
11
  };
12
- export declare type FormForgotPasswordControl = {
12
+ export type FormForgotPasswordControl = {
13
13
  errors: UseFormMethods["errors"];
14
14
  handleSubmit: UseFormMethods["handleSubmit"];
15
15
  register: UseFormMethods["register"];
16
16
  };
17
- export declare type FormForgotPasswordValues = {
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 declare type AccordionTheme = "blue" | "gray";
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,4 +1,4 @@
1
- declare type DownloadLotteryResultsProps = {
1
+ type DownloadLotteryResultsProps = {
2
2
  resultsDate?: string;
3
3
  buttonText?: string;
4
4
  pdfURL?: string;
@@ -1,12 +1,12 @@
1
1
  import * as React from "react";
2
- export declare type EventType = {
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
- declare type EventSectionProps = {
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 declare type NetworkErrorDetermineError = (status: number, error: Error) => void;
4
- export declare type NetworkStatusType = AlertTypes;
5
- export declare type NetworkErrorReset = () => void;
6
- export declare type NetworkStatusContent = {
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 declare type NetworkStatus = {
11
+ export type NetworkStatus = {
12
12
  content: NetworkStatusContent;
13
13
  type?: NetworkStatusType;
14
14
  reset: NetworkErrorReset;
15
15
  };
16
- export declare type FormSignInProps = {
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 declare type FormSignInControl = {
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 declare type FormSignInValues = {
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 declare type FormSignInAddPhoneProps = {
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 declare type FormSignInAddPhoneControl = {
9
+ export type FormSignInAddPhoneControl = {
10
10
  errors: UseFormMethods["errors"];
11
11
  handleSubmit: UseFormMethods["handleSubmit"];
12
12
  control: UseFormMethods["control"];
13
13
  };
14
- export declare type FormSignInAddPhoneValues = {
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 declare type FormSignInErrorBoxProps = {
3
+ export type FormSignInErrorBoxProps = {
4
4
  errors: FormSignInErrorBoxControl["errors"];
5
5
  networkStatus: NetworkStatus;
6
6
  errorMessageId: string;
7
7
  };
8
- export declare type FormSignInErrorBoxControl = {
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 declare type FormSignInMFACodeProps = {
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 declare type FormSignInMFACodeValues = {
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 declare type FormSignInMFAProps = {
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 declare type FormSignInMFAControl = {
10
+ export type FormSignInMFAControl = {
11
11
  errors: UseFormMethods["errors"];
12
12
  handleSubmit: UseFormMethods["handleSubmit"];
13
13
  register: UseFormMethods["register"];
@@ -1,4 +1,4 @@
1
- export declare type FormTermsProps = {
1
+ export type FormTermsProps = {
2
2
  onSubmit: () => void;
3
3
  terms?: string;
4
4
  };
@@ -1,11 +1,11 @@
1
- export declare type ResendConfirmationModalProps = {
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 declare type ResendConfirmationModalForm = {
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]) {
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- declare type AgPaginationProps = {
2
+ type AgPaginationProps = {
3
3
  totalItems: number;
4
4
  totalPages: number;
5
5
  currentPage: number;
@@ -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 declare type StandardTableCell = {
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 declare type StandardTableData = Record<string, StandardTableCell>[];
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 declare type HeaderType = keyof typeof HeaderStyleMap;
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.2.2",
3
+ "version": "7.2.3-alpha.2",
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",
@@ -13,13 +13,18 @@
13
13
  },
14
14
  "release": {
15
15
  "branches": [
16
- "main"
16
+ "main",
17
+ {
18
+ "name": "alpha",
19
+ "prerelease": true
20
+ }
17
21
  ]
18
22
  },
19
23
  "files": [
20
24
  "dist",
21
25
  "src",
22
26
  "tailwind.config.js",
27
+ "tailwind.config.d.ts",
23
28
  "tailwind.tosass.js",
24
29
  "index.ts"
25
30
  ],
@@ -37,13 +42,6 @@
37
42
  "@babel/preset-env": "^7.15.4",
38
43
  "@emotion/core": "^10.0.35",
39
44
  "@emotion/styled": "^10.0.27",
40
- "eslint": "^7.11.0",
41
- "eslint-config-prettier": "^6.11.0",
42
- "eslint-plugin-import": "^2.22.1",
43
- "eslint-plugin-prettier": "^3.1.4",
44
- "eslint-plugin-react": "^7.21.4",
45
- "eslint-plugin-react-hooks": "^4.1.2",
46
- "eslint-plugin-jsx-a11y": "6.5.1",
47
45
  "@geometricpanda/storybook-addon-badges": "^0.2.1",
48
46
  "@storybook/addon-a11y": "^6.3.8",
49
47
  "@storybook/addon-actions": "^6.3.8",
@@ -63,7 +61,6 @@
63
61
  "@types/dompurify": "^2.3.3",
64
62
  "@types/jest": "^26.0.14",
65
63
  "@types/jwt-decode": "^2.2.1",
66
- "@types/markdown-to-jsx": "6.11.3",
67
64
  "@types/mdx": "^2.0.1",
68
65
  "@types/node": "^12.12.67",
69
66
  "@types/node-polyglot": "^2.4.1",
@@ -72,16 +69,24 @@
72
69
  "@types/react-dom": "^16.9.5",
73
70
  "@types/react-map-gl": "^5.2.10",
74
71
  "@types/react-tabs": "^2.3.2",
75
- "@types/react-text-mask": "^5.4.6",
76
72
  "@types/react-test-renderer": "^16.9.3",
73
+ "@types/react-text-mask": "^5.4.6",
77
74
  "@types/react-transition-group": "^4.4.0",
78
75
  "@types/webpack": "^4.41.22",
79
76
  "autoprefixer": "^10.3.4",
80
77
  "babel-loader": "^8.2.2",
81
78
  "babel-plugin-require-context-hook": "^1.0.0",
82
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",
83
87
  "identity-obj-proxy": "^3.0.0",
84
88
  "jest": "^26.5.3",
89
+ "jest-environment-jsdom": "^26.5.3",
85
90
  "mockdate": "^3.0.2",
86
91
  "postcss": "^8.3.6",
87
92
  "postcss-loader": "^4.3",
@@ -99,7 +104,7 @@
99
104
  "style-loader": "^1.1.3",
100
105
  "ts-jest": "^26.4.1",
101
106
  "ts-loader": "^8.0.4",
102
- "typescript": "4.6.4",
107
+ "typescript": "^4.9.4",
103
108
  "webpack": "^4.44.2"
104
109
  },
105
110
  "dependencies": {
@@ -108,6 +113,15 @@
108
113
  "@fortawesome/free-solid-svg-icons": "^6.1.1",
109
114
  "@fortawesome/react-fontawesome": "^0.1.18",
110
115
  "@mapbox/mapbox-sdk": "^0.13.0",
116
+ "@types/jwt-decode": "^2.2.1",
117
+ "@types/markdown-to-jsx": "^6.11.2",
118
+ "@types/mdx": "^2.0.1",
119
+ "@types/node": "^12.12.67",
120
+ "@types/node-polyglot": "^2.4.1",
121
+ "@types/react-beautiful-dnd": "^13.1.1",
122
+ "@types/react-dom": "^16.9.5",
123
+ "@types/react-text-mask": "^5.4.6",
124
+ "@types/react-transition-group": "^4.4.0",
111
125
  "ag-grid-community": "^26.0.0",
112
126
  "ag-grid-react": "^26.0.0",
113
127
  "aria-autocomplete": "^1.4.0",
@@ -1,124 +0,0 @@
1
- /* eslint-env node */
2
- module.exports = {
3
- important: true,
4
- purge: false,
5
- theme: {
6
- screens: {
7
- sm: "640px",
8
- md: "768px",
9
- lg: "1200px",
10
- xl: "1280px",
11
- "2xl": "1440px",
12
- print: { raw: "print" },
13
- },
14
- fontSize: {
15
- "2xs": "var(--bloom-font-size-2xs)",
16
- xs: "var(--bloom-font-size-xs)",
17
- sm: "var(--bloom-font-size-sm)",
18
- tiny: "var(--bloom-font-size-tiny)",
19
- base: "var(--bloom-font-size-base)",
20
- "base-alt": "var(--bloom-font-size-base-alt)",
21
- lg: "var(--bloom-font-size-lg)",
22
- xl: "var(--bloom-font-size-xl)",
23
- "2xl": "var(--bloom-font-size-2xl)",
24
- "3xl": "var(--bloom-font-size-3xl)",
25
- "4xl": "var(--bloom-font-size-4xl)",
26
- "5xl": "var(--bloom-font-size-5xl)",
27
- "6xl": "var(--bloom-font-size-6xl)",
28
- "6.5xl": "var(--bloom-font-size-6_5xl)",
29
- "7xl": "var(--bloom-font-size-7xl)",
30
- },
31
- fontFamily: {
32
- sans: "var(--bloom-font-sans)",
33
- serif: "var(--bloom-font-serif)",
34
- "alt-sans": "var(--bloom-font-alt-sans)",
35
- },
36
- colors: {
37
- primary: "var(--bloom-color-primary)",
38
- "primary-dark": "var(--bloom-color-primary-dark)",
39
- "primary-darker": "var(--bloom-color-primary-darker)",
40
- "primary-light": "var(--bloom-color-primary-light)",
41
- "primary-lighter": "var(--bloom-color-primary-lighter)",
42
- secondary: "var(--bloom-color-secondary)",
43
- alert: "var(--bloom-color-alert)",
44
- "alert-light": "var(--bloom-color-alert-light)",
45
- "alert-dark": "var(--bloom-color-alert-dark)",
46
- success: "var(--bloom-color-success)",
47
- "success-light": "var(--bloom-color-success-light)",
48
- "success-dark": "var(--bloom-color-success-dark)",
49
- warn: "var(--bloom-color-warn)",
50
- "warn-light": "var(--bloom-color-warn-light)",
51
- "warn-dark": "var(--bloom-color-warn-dark)",
52
- "accent-cool": "var(--bloom-color-accent-cool)",
53
- "accent-cool-light": "var(--bloom-color-accent-cool-light)",
54
- "accent-cool-dark": "var(--bloom-color-accent-cool-dark)",
55
- "accent-warm": "var(--bloom-color-accent-warm)",
56
- "accent-warm-dark": "var(--bloom-color-accent-warm-dark)",
57
- "accent-warm-light": "var(--bloom-color-accent-warm-light)",
58
- "accent-warm-lighter": "var(--bloom-color-accent-warm-lighter)",
59
- lush: "var(--bloom-color-lush)",
60
- white: "var(--bloom-color-white)",
61
- black: "var(--bloom-color-black)",
62
- blue: {
63
- 800: "var(--bloom-color-blue-800)",
64
- 700: "var(--bloom-color-blue-700)",
65
- 600: "var(--bloom-color-blue-600)",
66
- 300: "var(--bloom-color-blue-300)",
67
- 200: "var(--bloom-color-blue-200)",
68
- },
69
- red: {
70
- 700: "var(--bloom-color-red-700)",
71
- 300: "var(--bloom-color-red-300)",
72
- },
73
- yellow: {
74
- 700: "var(--bloom-color-yellow-700)",
75
- 300: "var(--bloom-color-yellow-300)",
76
- },
77
- green: {
78
- 700: "var(--bloom-color-green-700)",
79
- 300: "var(--bloom-color-green-300)",
80
- },
81
- teal: {
82
- 700: "var(--bloom-color-green-700)",
83
- 300: "var(--bloom-color-green-300)",
84
- },
85
- gray: {
86
- 950: "var(--bloom-color-gray-950)",
87
- 900: "var(--bloom-color-gray-900)",
88
- 850: "var(--bloom-color-gray-850)",
89
- 800: "var(--bloom-color-gray-800)",
90
- 750: "var(--bloom-color-gray-750)",
91
- 700: "var(--bloom-color-gray-700)",
92
- 650: "var(--bloom-color-gray-650)",
93
- 600: "var(--bloom-color-gray-600)",
94
- 550: "var(--bloom-color-gray-550)",
95
- 500: "var(--bloom-color-gray-500)",
96
- 450: "var(--bloom-color-gray-450)",
97
- 400: "var(--bloom-color-gray-400)",
98
- 300: "var(--bloom-color-gray-300)",
99
- 200: "var(--bloom-color-gray-200)",
100
- 100: "var(--bloom-color-gray-100)",
101
- },
102
- },
103
- letterSpacing: {
104
- tightest: "var(--bloom-letter-spacing-tightest)",
105
- tighter: "var(--bloom-letter-spacing-tighter)",
106
- tight: "var(--bloom-letter-spacing-tight)",
107
- normal: "0",
108
- wide: "var(--bloom-letter-spacing-wide)",
109
- wider: "var(--bloom-letter-spacing-wider)",
110
- widest: "var(--bloom-letter-spacing-widest)",
111
- ultrawide: "var(--bloom-letter-spacing-ultrawide)",
112
- },
113
- extend: {
114
- borderColor: function (theme) { return ({
115
- DEFAULT: theme("colors.gray.450", "currentColor"),
116
- }); },
117
- inset: {
118
- 4: "1rem",
119
- "-10": "-2.5rem",
120
- },
121
- },
122
- },
123
- };
124
- //# sourceMappingURL=tailwind.config.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tailwind.config.js","sourceRoot":"","sources":["../tailwind.config.js"],"names":[],"mappings":"AAAA,qBAAqB;AAErB,MAAM,CAAC,OAAO,GAAG;IACf,SAAS,EAAE,IAAI;IACf,KAAK,EAAE,KAAK;IACZ,KAAK,EAAE;QACL,OAAO,EAAE;YACP,EAAE,EAAE,OAAO;YACX,EAAE,EAAE,OAAO;YACX,EAAE,EAAE,QAAQ;YACZ,EAAE,EAAE,QAAQ;YACZ,KAAK,EAAE,QAAQ;YACf,KAAK,EAAE,EAAE,GAAG,EAAE,OAAO,EAAE;SACxB;QACD,QAAQ,EAAE;YACR,KAAK,EAAE,4BAA4B;YACnC,EAAE,EAAE,2BAA2B;YAC/B,EAAE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