@scbt-ecom/ui 0.19.1 → 0.19.3

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/utils.js CHANGED
@@ -1,19 +1,13 @@
1
- import { s as l } from "./scrollToElement-B-reg4jF.js";
2
- import { c as p } from "./cn-DIfn7EPB.js";
3
- import { i as u } from "./isClient-C9aZtt2Q.js";
4
- const n = (r) => r.split("-").map((e) => e.charAt(0).toUpperCase() + e.slice(1).toLowerCase()).join("-"), f = (...r) => {
5
- const e = r.filter(Boolean);
6
- return e.length <= 1 ? e[0] || null : function(o) {
7
- e.forEach((t) => {
8
- typeof t == "function" ? t(o) : t && (t.current = o);
9
- });
10
- };
11
- };
1
+ import { s as a } from "./scrollToElement-B-reg4jF.js";
2
+ import { c as i } from "./cn-DIfn7EPB.js";
3
+ import { i as c } from "./isClient-C9aZtt2Q.js";
4
+ import { m as n } from "./mergeRefs-qDToYXtM.js";
5
+ const r = (o) => o.split("-").map((e) => e.charAt(0).toUpperCase() + e.slice(1).toLowerCase()).join("-");
12
6
  export {
13
- n as capitalize,
14
- p as cn,
15
- u as isClient,
16
- f as mergeRefs,
17
- l as scrollToElement
7
+ r as capitalize,
8
+ i as cn,
9
+ c as isClient,
10
+ n as mergeRefs,
11
+ a as scrollToElement
18
12
  };
19
13
  //# sourceMappingURL=utils.js.map
package/dist/utils.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sources":["../lib/shared/utils/capitalize.ts","../lib/shared/utils/mergeRefs.ts"],"sourcesContent":["export const capitalize = (str: string) => {\n return str\n .split('-')\n .map((word) => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase())\n .join('-')\n}\n","import type React from 'react'\n\nexport const mergeRefs = <T>(...inputRefs: (React.Ref<T> | undefined)[]): React.Ref<T> | React.RefCallback<T> => {\n const filteredInputRefs = inputRefs.filter(Boolean)\n\n if (filteredInputRefs.length <= 1) {\n const firstRef = filteredInputRefs[0]\n\n return firstRef || null\n }\n\n return function mergedRefs(ref) {\n filteredInputRefs.forEach((inputRef) => {\n if (typeof inputRef === 'function') {\n inputRef(ref)\n } else if (inputRef) {\n ;(inputRef as React.MutableRefObject<T | null>).current = ref\n }\n })\n }\n}\n"],"names":["capitalize","str","word","mergeRefs","inputRefs","filteredInputRefs","ref","inputRef"],"mappings":";;;AAAa,MAAAA,IAAa,CAACC,MAClBA,EACJ,MAAM,GAAG,EACT,IAAI,CAACC,MAASA,EAAK,OAAO,CAAC,EAAE,YAAY,IAAIA,EAAK,MAAM,CAAC,EAAE,YAAa,CAAA,EACxE,KAAK,GAAG,GCFAC,IAAY,IAAOC,MAAiF;AACzG,QAAAC,IAAoBD,EAAU,OAAO,OAAO;AAE9C,SAAAC,EAAkB,UAAU,IACbA,EAAkB,CAAC,KAEjB,OAGd,SAAoBC,GAAK;AACZ,IAAAD,EAAA,QAAQ,CAACE,MAAa;AAClC,MAAA,OAAOA,KAAa,aACtBA,EAASD,CAAG,IACHC,MACPA,EAA8C,UAAUD;AAAA,IAC5D,CACD;AAAA,EACH;AACF;"}
1
+ {"version":3,"file":"utils.js","sources":["../lib/shared/utils/capitalize.ts"],"sourcesContent":["export const capitalize = (str: string) => {\n return str\n .split('-')\n .map((word) => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase())\n .join('-')\n}\n"],"names":["capitalize","str","word"],"mappings":";;;;AAAa,MAAAA,IAAa,CAACC,MAClBA,EACJ,MAAM,GAAG,EACT,IAAI,CAACC,MAASA,EAAK,OAAO,CAAC,EAAE,YAAY,IAAIA,EAAK,MAAM,CAAC,EAAE,YAAa,CAAA,EACxE,KAAK,GAAG;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scbt-ecom/ui",
3
- "version": "0.19.1",
3
+ "version": "0.19.3",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -67,6 +67,9 @@
67
67
  "react": "^18.3.1",
68
68
  "react-dom": "^18.3.1"
69
69
  },
70
+ "overrides": {
71
+ "esbuild": "0.24.0"
72
+ },
70
73
  "devDependencies": {
71
74
  "@chromatic-com/storybook": "^1.6.1",
72
75
  "@eslint/compat": "^1.2.1",