@verifiedinc-public/shared-ui-elements 5.23.4 → 5.24.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.
@@ -12,6 +12,13 @@ export declare const lighten: (color: string, amount: number) => string;
12
12
  * @returns The darkened color.
13
13
  */
14
14
  export declare const darken: (color: string, amount: number) => string;
15
+ /**
16
+ * Sets the alpha channel of a color.
17
+ * @param color The color to modify.
18
+ * @param amount The amount to set the alpha channel to.
19
+ * @returns The color with the alpha channel set.
20
+ */
21
+ export declare const alpha: (color: string, amount: number) => string;
15
22
  /**
16
23
  * Get the color that has the highest contrast with the given color.
17
24
  * @param color The color to check.
@@ -1 +1 @@
1
- "use strict";import n from"tinycolor2";const o=(t,e)=>n(t).lighten(e).toHexString(),r=(t,e)=>n(t).darken(e).toHexString(),i=(t,e=1)=>n(n(t).isLight()?"#000000":"#ffffff").setAlpha(e).toHex8String();export{i as contrastColor,r as darken,o as lighten};
1
+ "use strict";import e from"tinycolor2";const n=(t,a)=>e(t).lighten(a).toHexString(),o=(t,a)=>e(t).darken(a).toHexString(),r=(t,a)=>e(t).setAlpha(a).toHex8String(),i=(t,a=1)=>e(e(t).isLight()?"#000000":"#ffffff").setAlpha(a).toHex8String();export{r as alpha,i as contrastColor,o as darken,n as lighten};
@@ -1 +1 @@
1
- "use strict";import{wrapPromise as a}from"./wrapPromise/index.mjs";import{f as s,b as o,a as t,c as e,u as r}from"../shared/uuidColor-LRbEKYAZ.mjs";import{c as m,g as i,a as n,p,s as f,v as l}from"../shared/phone-eqP--V9t.mjs";import{masks as C}from"./masks/index.mjs";import{o as d}from"../shared/omitProperty-DZYdN2vK.mjs";import{s as D}from"../shared/ssn-CTUJ2_Vl.mjs";import{toCapitalize as P,toSentenceCase as c}from"./string/index.mjs";import{k as h}from"../shared/formatKebabToPretty-Du43TgPC.mjs";import{contrastColor as k,darken as T,lighten as Y}from"./color/index.mjs";export{k as contrastColor,m as countries,T as darken,s as formatDateMMDDYYYY,o as formatDateMMYY,t as formatDateToTimestamp,e as formatExtendedDate,i as getPhoneData,n as getPhoneDataByFieldName,h as kebabCaseToPretty,Y as lighten,C as masks,d as omitProperties,p as parseToPhoneNational,f as sortByCountryName,D as ssnFormatter,P as toCapitalize,c as toSentenceCase,r as uuidToHashedColor,l as validatePhone,a as wrapPromise};
1
+ "use strict";import{wrapPromise as a}from"./wrapPromise/index.mjs";import{f as s,b as o,a as t,c as e,u as r}from"../shared/uuidColor-LRbEKYAZ.mjs";import{c as m,g as i,a as p,p as n,s as f,v as l}from"../shared/phone-eqP--V9t.mjs";import{masks as h}from"./masks/index.mjs";import{o as C}from"../shared/omitProperty-DZYdN2vK.mjs";import{s as d}from"../shared/ssn-CTUJ2_Vl.mjs";import{toCapitalize as D,toSentenceCase as c}from"./string/index.mjs";import{k as P}from"../shared/formatKebabToPretty-Du43TgPC.mjs";import{alpha as k,contrastColor as T,darken as Y,lighten as g}from"./color/index.mjs";export{k as alpha,T as contrastColor,m as countries,Y as darken,s as formatDateMMDDYYYY,o as formatDateMMYY,t as formatDateToTimestamp,e as formatExtendedDate,i as getPhoneData,p as getPhoneDataByFieldName,P as kebabCaseToPretty,g as lighten,h as masks,C as omitProperties,n as parseToPhoneNational,f as sortByCountryName,d as ssnFormatter,D as toCapitalize,c as toSentenceCase,r as uuidToHashedColor,l as validatePhone,a as wrapPromise};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verifiedinc-public/shared-ui-elements",
3
- "version": "5.23.4",
3
+ "version": "5.24.1",
4
4
  "description": "A set of UI components, utilities that is shareable with the core apps.",
5
5
  "private": false,
6
6
  "keywords": [],