lizaui 3.0.35 → 3.0.36

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 (63) hide show
  1. package/dist/button/index.cjs.js +1 -1
  2. package/dist/button/index.es.js +1 -1
  3. package/dist/calendar/index.cjs.js +1 -1
  4. package/dist/calendar/index.es.js +1 -1
  5. package/dist/checkbox/index.cjs.js +1 -1
  6. package/dist/checkbox/index.es.js +1 -1
  7. package/dist/chunks/assertion-C7nbUE-q.js +2 -0
  8. package/dist/chunks/assertion-C7nbUE-q.js.map +1 -0
  9. package/dist/chunks/assertion-CrT8p68K.js +11 -0
  10. package/dist/chunks/assertion-CrT8p68K.js.map +1 -0
  11. package/dist/chunks/button-ByG7rkKr.js +528 -0
  12. package/dist/chunks/button-ByG7rkKr.js.map +1 -0
  13. package/dist/chunks/button-W_O8D9E6.js +2 -0
  14. package/dist/chunks/button-W_O8D9E6.js.map +1 -0
  15. package/dist/chunks/checkbox-D7Bt7i2P.js +2 -0
  16. package/dist/chunks/{checkbox-C23sBMh5.js.map → checkbox-D7Bt7i2P.js.map} +1 -1
  17. package/dist/chunks/{checkbox-ChChDxFl.js → checkbox-lvTY3PXC.js} +3 -2
  18. package/dist/chunks/{checkbox-ChChDxFl.js.map → checkbox-lvTY3PXC.js.map} +1 -1
  19. package/dist/chunks/index-BnlGNtJe.js +65 -0
  20. package/dist/chunks/index-BnlGNtJe.js.map +1 -0
  21. package/dist/chunks/{index-BpSN4GSo.js → index-DSpBzH_i.js} +796 -793
  22. package/dist/chunks/index-DSpBzH_i.js.map +1 -0
  23. package/dist/chunks/refs-DAOksVs3.js +29 -0
  24. package/dist/chunks/refs-DAOksVs3.js.map +1 -0
  25. package/dist/chunks/refs-pI64b4UC.js +2 -0
  26. package/dist/chunks/refs-pI64b4UC.js.map +1 -0
  27. package/dist/chunks/ripple-BQsLJHrx.js +3594 -0
  28. package/dist/chunks/ripple-BQsLJHrx.js.map +1 -0
  29. package/dist/chunks/ripple-CUdIIH3t.js +10 -0
  30. package/dist/chunks/ripple-CUdIIH3t.js.map +1 -0
  31. package/dist/components/ripple/index.d.ts +3 -0
  32. package/dist/components/ripple/index.d.ts.map +1 -0
  33. package/dist/components/ui/modal.d.ts +1 -0
  34. package/dist/components/ui/modal.d.ts.map +1 -1
  35. package/dist/pagination/index.cjs.js +1 -1
  36. package/dist/pagination/index.es.js +2 -2
  37. package/dist/ripple/index.cjs.js +2 -0
  38. package/dist/ripple/index.cjs.js.map +1 -0
  39. package/dist/ripple/index.es.js +5 -0
  40. package/dist/ripple/index.es.js.map +1 -0
  41. package/dist/ripple.d.ts +2 -0
  42. package/dist/select-input/index.cjs.js +1 -1
  43. package/dist/select-input/index.cjs.js.map +1 -1
  44. package/dist/select-input/index.es.js +2 -2
  45. package/dist/table/index.cjs.js +1 -1
  46. package/dist/table/index.es.js +1 -1
  47. package/dist/ui/index.cjs.js +2 -2
  48. package/dist/ui/index.cjs.js.map +1 -1
  49. package/dist/ui/index.es.js +1288 -1284
  50. package/dist/ui/index.es.js.map +1 -1
  51. package/package.json +6 -1
  52. package/dist/chunks/button-C6LoJycL.js +0 -4112
  53. package/dist/chunks/button-C6LoJycL.js.map +0 -1
  54. package/dist/chunks/button-CPPU0FsH.js +0 -10
  55. package/dist/chunks/button-CPPU0FsH.js.map +0 -1
  56. package/dist/chunks/checkbox-C23sBMh5.js +0 -2
  57. package/dist/chunks/index-BTn-tZ5q.js +0 -65
  58. package/dist/chunks/index-BTn-tZ5q.js.map +0 -1
  59. package/dist/chunks/index-BpSN4GSo.js.map +0 -1
  60. package/dist/chunks/refs-DLih6QCP.js +0 -2
  61. package/dist/chunks/refs-DLih6QCP.js.map +0 -1
  62. package/dist/chunks/refs-DcCOPvdv.js +0 -35
  63. package/dist/chunks/refs-DcCOPvdv.js.map +0 -1
@@ -0,0 +1,29 @@
1
+ import { useRef as e, useImperativeHandle as o } from "react";
2
+ import { i as u } from "./assertion-CrT8p68K.js";
3
+ function i(r, n) {
4
+ if (r != null) {
5
+ if (u(r)) {
6
+ r(n);
7
+ return;
8
+ }
9
+ try {
10
+ r.current = n;
11
+ } catch {
12
+ throw new Error(`Cannot assign value '${n}' to ref '${r}'`);
13
+ }
14
+ }
15
+ }
16
+ function f(...r) {
17
+ return (n) => {
18
+ r.forEach((t) => i(t, n));
19
+ };
20
+ }
21
+ function a(r) {
22
+ const n = e(null);
23
+ return o(r, () => n.current), n;
24
+ }
25
+ export {
26
+ f as m,
27
+ a as u
28
+ };
29
+ //# sourceMappingURL=refs-DAOksVs3.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"refs-DAOksVs3.js","sources":["../../src/functions/refs.ts"],"sourcesContent":["import * as React from \"react\";\nimport { isFunction } from \"./assertion\";\nimport {type Ref, type RefObject, useImperativeHandle, useRef } from \"react\";\n\nexport type ReactRef<T> = React.RefObject<T> | React.MutableRefObject<T> | React.Ref<T>;\n\n/**\n * Assigns a value to a ref function or object\n *\n * @param ref the ref to assign to\n * @param value the value\n */\nexport function assignRef<T = any>(ref: ReactRef<T> | undefined, value: T) {\n\tif (ref == null) return;\n\n\tif (isFunction(ref)) {\n\t\tref(value);\n\n\t\treturn;\n\t}\n\n\ttry {\n\t\t(ref as any).current = value;\n\t} catch (error: any) {\n\t\tconsole.error(error);\n\t\tthrow new Error(`Cannot assign value '${value}' to ref '${ref}'`);\n\t}\n}\n\n/**\n * Combine multiple React refs into a single ref function.\n * This is used mostly when you need to allow consumers forward refs to\n * internal components\n *\n * @param refs refs to assign to value to\n */\nexport function mergeRefs<T>(...refs: (ReactRef<T> | undefined)[]) {\n\treturn (node: T | null) => {\n\t\trefs.forEach((ref) => assignRef(ref, node));\n\t};\n}\n\nexport function useDOMRef<T extends HTMLElement = HTMLElement>(ref?: RefObject<T | null> | Ref<T | null>) {\n\tconst domRef = useRef<T>(null);\n\n\tuseImperativeHandle(ref, () => domRef.current!);\n\n\treturn domRef;\n}\n"],"names":["assignRef","ref","value","isFunction","mergeRefs","refs","node","useDOMRef","domRef","useRef","useImperativeHandle"],"mappings":";;AAYgB,SAAAA,EAAmBC,GAA8BC,GAAU;AAC1E,MAAID,KAAO,MAEP;AAAA,QAAAE,EAAWF,CAAG,GAAG;AACpB,MAAAA,EAAIC,CAAK;AAET;AAAA,IAAA;AAGG,QAAA;AACF,MAAAD,EAAY,UAAUC;AAAA,YACH;AAEpB,YAAM,IAAI,MAAM,wBAAwBA,CAAK,aAAaD,CAAG,GAAG;AAAA,IAAA;AAAA;AAElE;AASO,SAASG,KAAgBC,GAAmC;AAClE,SAAO,CAACC,MAAmB;AAC1B,IAAAD,EAAK,QAAQ,CAACJ,MAAQD,EAAUC,GAAKK,CAAI,CAAC;AAAA,EAC3C;AACD;AAEO,SAASC,EAA+CN,GAA2C;AACnG,QAAAO,IAASC,EAAU,IAAI;AAET,SAAAC,EAAAT,GAAK,MAAMO,EAAO,OAAQ,GAEvCA;AACR;"}
@@ -0,0 +1,2 @@
1
+ "use strict";const t=require("react"),s=require("./assertion-C7nbUE-q.js");function u(e,r){if(e!=null){if(s.isFunction(e)){e(r);return}try{e.current=r}catch{throw new Error(`Cannot assign value '${r}' to ref '${e}'`)}}}function o(...e){return r=>{e.forEach(n=>u(n,r))}}function c(e){const r=t.useRef(null);return t.useImperativeHandle(e,()=>r.current),r}exports.mergeRefs=o;exports.useDOMRef=c;
2
+ //# sourceMappingURL=refs-pI64b4UC.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"refs-pI64b4UC.js","sources":["../../src/functions/refs.ts"],"sourcesContent":["import * as React from \"react\";\nimport { isFunction } from \"./assertion\";\nimport {type Ref, type RefObject, useImperativeHandle, useRef } from \"react\";\n\nexport type ReactRef<T> = React.RefObject<T> | React.MutableRefObject<T> | React.Ref<T>;\n\n/**\n * Assigns a value to a ref function or object\n *\n * @param ref the ref to assign to\n * @param value the value\n */\nexport function assignRef<T = any>(ref: ReactRef<T> | undefined, value: T) {\n\tif (ref == null) return;\n\n\tif (isFunction(ref)) {\n\t\tref(value);\n\n\t\treturn;\n\t}\n\n\ttry {\n\t\t(ref as any).current = value;\n\t} catch (error: any) {\n\t\tconsole.error(error);\n\t\tthrow new Error(`Cannot assign value '${value}' to ref '${ref}'`);\n\t}\n}\n\n/**\n * Combine multiple React refs into a single ref function.\n * This is used mostly when you need to allow consumers forward refs to\n * internal components\n *\n * @param refs refs to assign to value to\n */\nexport function mergeRefs<T>(...refs: (ReactRef<T> | undefined)[]) {\n\treturn (node: T | null) => {\n\t\trefs.forEach((ref) => assignRef(ref, node));\n\t};\n}\n\nexport function useDOMRef<T extends HTMLElement = HTMLElement>(ref?: RefObject<T | null> | Ref<T | null>) {\n\tconst domRef = useRef<T>(null);\n\n\tuseImperativeHandle(ref, () => domRef.current!);\n\n\treturn domRef;\n}\n"],"names":["assignRef","ref","value","isFunction","mergeRefs","refs","node","useDOMRef","domRef","useRef","useImperativeHandle"],"mappings":"2EAYgB,SAAAA,EAAmBC,EAA8BC,EAAU,CAC1E,GAAID,GAAO,KAEP,IAAAE,EAAAA,WAAWF,CAAG,EAAG,CACpBA,EAAIC,CAAK,EAET,MAAA,CAGG,GAAA,CACFD,EAAY,QAAUC,OACH,CAEpB,MAAM,IAAI,MAAM,wBAAwBA,CAAK,aAAaD,CAAG,GAAG,CAAA,EAElE,CASO,SAASG,KAAgBC,EAAmC,CAClE,OAAQC,GAAmB,CAC1BD,EAAK,QAASJ,GAAQD,EAAUC,EAAKK,CAAI,CAAC,CAC3C,CACD,CAEO,SAASC,EAA+CN,EAA2C,CACnG,MAAAO,EAASC,SAAU,IAAI,EAETC,OAAAA,EAAAA,oBAAAT,EAAK,IAAMO,EAAO,OAAQ,EAEvCA,CACR"}