Skip to content

Commit

Permalink
v1.4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
rkuykendall committed Sep 21, 2021
1 parent 370f6e2 commit 0aee881
Show file tree
Hide file tree
Showing 10 changed files with 88 additions and 64 deletions.
3 changes: 2 additions & 1 deletion dist/containers.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react';
import { Argument as IClassName } from 'classnames';
export interface IDisabledContainerProps {
className?: any;
className?: IClassName;
}
export interface IGuardedContainerProps {
disabledComponent: React.ReactNode;
Expand Down
5 changes: 3 additions & 2 deletions dist/formatting.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="react" />
import { IAddress } from './interfaces';
export declare function canReplaceSymbols(template: string, chars: string[]): boolean;
export declare function replaceSymbolsWithChars(template: string, chars: string[]): string;
Expand All @@ -14,15 +15,15 @@ export declare function getNameOrDefault(obj?: unknown, { field, defaultValue }?
field?: string;
defaultValue?: string;
}): any;
export declare function getOrDefault(value?: any): any;
export declare function getOrDefault(value?: unknown): unknown;
export declare function formatSocialSecurityNumber(value?: null | string): string;
export declare function formatEmployerIdNumber(value?: null | string): string;
export declare function formatPercentage(value?: null | number | string, decimalPoints?: number): string;
export declare function formatMoney(value?: null | number | string): string;
export declare function formatDollars(value?: null | number | string): string;
export declare function formatParagraphs(value?: null | string): "--" | JSX.Element[];
export declare function formatCommaSeparatedNumber(value?: null | number | string): string;
export declare function formatDelimitedList(list?: null | string[], delimiter?: string): any;
export declare function formatDelimitedList(list?: null | string[], delimiter?: string): unknown;
export declare function mapBooleanToText(bool?: boolean | null, { mapUndefinedToNo }?: {
mapUndefinedToNo: boolean;
}): "--" | "Yes" | "No";
Expand Down
63 changes: 37 additions & 26 deletions dist/utils.cjs.development.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/utils.cjs.development.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/utils.cjs.production.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/utils.cjs.production.min.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/utils.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export declare function insertIf(condition: boolean, element: any): any[];
export declare function getPercentValue(value?: null | string): string;
export declare function getPercentDisplay(value?: null | string): string;
export declare function insertIf<T>(condition: boolean, element: T): T[];
export declare function getPercentValue(value?: unknown): string;
export declare function getPercentDisplay(value?: unknown): string;
65 changes: 38 additions & 27 deletions dist/utils.esm.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/utils.esm.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mighty-justice/utils",
"version": "1.4.2",
"version": "1.4.3",
"description": "Standardization of small utilities across Mighty",
"main": "dist/index.js",
"module": "dist/tester.esm.js",
Expand Down

0 comments on commit 0aee881

Please sign in to comment.