@verifiedinc-public/shared-ui-elements 5.17.1 → 5.18.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.
@@ -0,0 +1 @@
1
+ "use strict";import t from"tinycolor2";const n=(e,o)=>t(e).lighten(o).toHex(),r=(e,o)=>t(e).darken(o).toHex();export{r as darken,n as lighten};
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Lightens a color.
3
+ * @param color The color to lighten.
4
+ * @param amount The amount to lighten the color.
5
+ * @returns The lightened color.
6
+ */
7
+ export declare const lighten: (color: string, amount: number) => string;
8
+ /**
9
+ * Darkens a color.
10
+ * @param color The color to darken.
11
+ * @param amount The amount to darken the color.
12
+ * @returns The darkened color.
13
+ */
14
+ export declare const darken: (color: string, amount: number) => string;
@@ -6,3 +6,4 @@ export * from './omitProperty';
6
6
  export * from './ssn';
7
7
  export * from './uuidColor';
8
8
  export * from './string';
9
+ export * from './color';
@@ -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 p,p as f,s as n,v as D}from"../shared/phone-eqP--V9t.mjs";import{masks as P}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 l,toSentenceCase as Y}from"./string/index.mjs";import{k as c}from"../shared/formatKebabToPretty-Du43TgPC.mjs";export{m as countries,s as formatDateMMDDYYYY,o as formatDateMMYY,t as formatDateToTimestamp,e as formatExtendedDate,i as getPhoneData,p as getPhoneDataByFieldName,c as kebabCaseToPretty,P as masks,C as omitProperties,f as parseToPhoneNational,n as sortByCountryName,d as ssnFormatter,l as toCapitalize,Y as toSentenceCase,r as uuidToHashedColor,D 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 d}from"../shared/phone-eqP--V9t.mjs";import{masks as D}from"./masks/index.mjs";import{o as P}from"../shared/omitProperty-DZYdN2vK.mjs";import{s as h}from"../shared/ssn-CTUJ2_Vl.mjs";import{toCapitalize as l,toSentenceCase as C}from"./string/index.mjs";import{k}from"../shared/formatKebabToPretty-Du43TgPC.mjs";import{darken as Y,lighten as c}from"./color/index.mjs";export{m as countries,Y as darken,s as formatDateMMDDYYYY,o as formatDateMMYY,t as formatDateToTimestamp,e as formatExtendedDate,i as getPhoneData,p as getPhoneDataByFieldName,k as kebabCaseToPretty,c as lighten,D as masks,P as omitProperties,n as parseToPhoneNational,f as sortByCountryName,h as ssnFormatter,l as toCapitalize,C as toSentenceCase,r as uuidToHashedColor,d 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.17.1",
3
+ "version": "5.18.0",
4
4
  "description": "A set of UI components, utilities that is shareable with the core apps.",
5
5
  "private": false,
6
6
  "keywords": [],
@@ -79,6 +79,7 @@
79
79
  "@types/qrcode": "^1.5.5",
80
80
  "@types/react": "^18.3.3",
81
81
  "@types/react-dom": "^18.3.0",
82
+ "@types/tinycolor2": "^1.4.6",
82
83
  "@typescript-eslint/eslint-plugin": "^6.7.4",
83
84
  "@vitejs/plugin-react": "^4.3.1",
84
85
  "eslint": "^8.27.0",
@@ -130,6 +131,7 @@
130
131
  "react-hook-form": "^7.52.1",
131
132
  "react-imask": "^7.6.1",
132
133
  "recharts": ">=2.15.0",
134
+ "tinycolor2": ">=1.6.0",
133
135
  "zod": "^3.23.8"
134
136
  },
135
137
  "dependencies": {