lizaui 3.0.35 → 3.0.37

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 (65) 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/components/ui/sheet.d.ts +9 -2
  36. package/dist/components/ui/sheet.d.ts.map +1 -1
  37. package/dist/pagination/index.cjs.js +1 -1
  38. package/dist/pagination/index.es.js +2 -2
  39. package/dist/ripple/index.cjs.js +2 -0
  40. package/dist/ripple/index.cjs.js.map +1 -0
  41. package/dist/ripple/index.es.js +5 -0
  42. package/dist/ripple/index.es.js.map +1 -0
  43. package/dist/ripple.d.ts +2 -0
  44. package/dist/select-input/index.cjs.js +1 -1
  45. package/dist/select-input/index.cjs.js.map +1 -1
  46. package/dist/select-input/index.es.js +2 -2
  47. package/dist/table/index.cjs.js +1 -1
  48. package/dist/table/index.es.js +1 -1
  49. package/dist/ui/index.cjs.js +2 -2
  50. package/dist/ui/index.cjs.js.map +1 -1
  51. package/dist/ui/index.es.js +785 -755
  52. package/dist/ui/index.es.js.map +1 -1
  53. package/package.json +6 -1
  54. package/dist/chunks/button-C6LoJycL.js +0 -4112
  55. package/dist/chunks/button-C6LoJycL.js.map +0 -1
  56. package/dist/chunks/button-CPPU0FsH.js +0 -10
  57. package/dist/chunks/button-CPPU0FsH.js.map +0 -1
  58. package/dist/chunks/checkbox-C23sBMh5.js +0 -2
  59. package/dist/chunks/index-BTn-tZ5q.js +0 -65
  60. package/dist/chunks/index-BTn-tZ5q.js.map +0 -1
  61. package/dist/chunks/index-BpSN4GSo.js.map +0 -1
  62. package/dist/chunks/refs-DLih6QCP.js +0 -2
  63. package/dist/chunks/refs-DLih6QCP.js.map +0 -1
  64. package/dist/chunks/refs-DcCOPvdv.js +0 -35
  65. package/dist/chunks/refs-DcCOPvdv.js.map +0 -1
@@ -1,2 +0,0 @@
1
- "use strict";const r=require("react");process.env.NODE_ENV;process.env.NODE_ENV;function o(t){return typeof t=="function"}const u=t=>t?"true":void 0;function s(t,e){if(t!=null){if(o(t)){t(e);return}try{t.current=e}catch{throw new Error(`Cannot assign value '${e}' to ref '${t}'`)}}}function c(...t){return e=>{t.forEach(n=>s(n,e))}}function i(t){const e=r.useRef(null);return r.useImperativeHandle(t,()=>e.current),e}exports.dataAttr=u;exports.mergeRefs=c;exports.useDOMRef=i;
2
- //# sourceMappingURL=refs-DLih6QCP.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"refs-DLih6QCP.js","sources":["../../src/functions/assertion.ts","../../src/functions/refs.ts"],"sourcesContent":["export const __DEV__ = process.env.NODE_ENV !== \"production\";\n\nexport const __TEST__ = process.env.NODE_ENV === \"test\";\n\nexport type Dict<T = any> = Record<string, T>;\n\nexport function isArray<T>(value: any): value is Array<T> {\n\treturn Array.isArray(value);\n}\n\nexport function isEmptyArray(value: any) {\n\treturn isArray(value) && value.length === 0;\n}\n\nexport function isObject(value: any): value is Dict {\n\tconst type = typeof value;\n\n\treturn value != null && (type === \"object\" || type === \"function\") && !isArray(value);\n}\n\nexport function isEmptyObject(value: any) {\n\treturn isObject(value) && Object.keys(value).length === 0;\n}\n\n// Empty assertions\nexport function isEmpty(value: any): boolean {\n\tif (isArray(value)) return isEmptyArray(value);\n\tif (isObject(value)) return isEmptyObject(value);\n\tif (value == null || value === \"\") return true;\n\n\treturn false;\n}\n\n// Function assertions\nexport function isFunction<T extends Function = Function>(value: any): value is T {\n\treturn typeof value === \"function\";\n}\n\ntype Booleanish = boolean | \"true\" | \"false\";\nexport const dataAttr = (condition: boolean | undefined) => (condition ? \"true\" : undefined) as Booleanish;\n\nexport const isNumeric = (value?: string | number) => value != null && parseInt(value.toString(), 10) > 0;\n","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":["isFunction","value","dataAttr","condition","assignRef","ref","mergeRefs","refs","node","useDOMRef","domRef","useRef","useImperativeHandle"],"mappings":"sCAAuB,QAAQ,IAAI,SAEX,QAAQ,IAAI,SAgC7B,SAASA,EAA0CC,EAAwB,CACjF,OAAO,OAAOA,GAAU,UACzB,CAGO,MAAMC,EAAYC,GAAoCA,EAAY,OAAS,OC3BlE,SAAAC,EAAmBC,EAA8BJ,EAAU,CAC1E,GAAII,GAAO,KAEP,IAAAL,EAAWK,CAAG,EAAG,CACpBA,EAAIJ,CAAK,EAET,MAAA,CAGG,GAAA,CACFI,EAAY,QAAUJ,OACH,CAEpB,MAAM,IAAI,MAAM,wBAAwBA,CAAK,aAAaI,CAAG,GAAG,CAAA,EAElE,CASO,SAASC,KAAgBC,EAAmC,CAClE,OAAQC,GAAmB,CAC1BD,EAAK,QAASF,GAAQD,EAAUC,EAAKG,CAAI,CAAC,CAC3C,CACD,CAEO,SAASC,EAA+CJ,EAA2C,CACnG,MAAAK,EAASC,SAAU,IAAI,EAETC,OAAAA,EAAAA,oBAAAP,EAAK,IAAMK,EAAO,OAAQ,EAEvCA,CACR"}
@@ -1,35 +0,0 @@
1
- import { useRef as e, useImperativeHandle as o } from "react";
2
- process.env.NODE_ENV;
3
- process.env.NODE_ENV;
4
- function u(n) {
5
- return typeof n == "function";
6
- }
7
- const i = (n) => n ? "true" : void 0;
8
- function s(n, t) {
9
- if (n != null) {
10
- if (u(n)) {
11
- n(t);
12
- return;
13
- }
14
- try {
15
- n.current = t;
16
- } catch {
17
- throw new Error(`Cannot assign value '${t}' to ref '${n}'`);
18
- }
19
- }
20
- }
21
- function f(...n) {
22
- return (t) => {
23
- n.forEach((r) => s(r, t));
24
- };
25
- }
26
- function a(n) {
27
- const t = e(null);
28
- return o(n, () => t.current), t;
29
- }
30
- export {
31
- i as d,
32
- f as m,
33
- a as u
34
- };
35
- //# sourceMappingURL=refs-DcCOPvdv.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"refs-DcCOPvdv.js","sources":["../../src/functions/assertion.ts","../../src/functions/refs.ts"],"sourcesContent":["export const __DEV__ = process.env.NODE_ENV !== \"production\";\n\nexport const __TEST__ = process.env.NODE_ENV === \"test\";\n\nexport type Dict<T = any> = Record<string, T>;\n\nexport function isArray<T>(value: any): value is Array<T> {\n\treturn Array.isArray(value);\n}\n\nexport function isEmptyArray(value: any) {\n\treturn isArray(value) && value.length === 0;\n}\n\nexport function isObject(value: any): value is Dict {\n\tconst type = typeof value;\n\n\treturn value != null && (type === \"object\" || type === \"function\") && !isArray(value);\n}\n\nexport function isEmptyObject(value: any) {\n\treturn isObject(value) && Object.keys(value).length === 0;\n}\n\n// Empty assertions\nexport function isEmpty(value: any): boolean {\n\tif (isArray(value)) return isEmptyArray(value);\n\tif (isObject(value)) return isEmptyObject(value);\n\tif (value == null || value === \"\") return true;\n\n\treturn false;\n}\n\n// Function assertions\nexport function isFunction<T extends Function = Function>(value: any): value is T {\n\treturn typeof value === \"function\";\n}\n\ntype Booleanish = boolean | \"true\" | \"false\";\nexport const dataAttr = (condition: boolean | undefined) => (condition ? \"true\" : undefined) as Booleanish;\n\nexport const isNumeric = (value?: string | number) => value != null && parseInt(value.toString(), 10) > 0;\n","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":["isFunction","value","dataAttr","condition","assignRef","ref","mergeRefs","refs","node","useDOMRef","domRef","useRef","useImperativeHandle"],"mappings":";AAAuB,QAAQ,IAAI;AAEX,QAAQ,IAAI;AAgC7B,SAASA,EAA0CC,GAAwB;AACjF,SAAO,OAAOA,KAAU;AACzB;AAGO,MAAMC,IAAW,CAACC,MAAoCA,IAAY,SAAS;AC3BlE,SAAAC,EAAmBC,GAA8BJ,GAAU;AAC1E,MAAII,KAAO,MAEP;AAAA,QAAAL,EAAWK,CAAG,GAAG;AACpB,MAAAA,EAAIJ,CAAK;AAET;AAAA,IAAA;AAGG,QAAA;AACF,MAAAI,EAAY,UAAUJ;AAAA,YACH;AAEpB,YAAM,IAAI,MAAM,wBAAwBA,CAAK,aAAaI,CAAG,GAAG;AAAA,IAAA;AAAA;AAElE;AASO,SAASC,KAAgBC,GAAmC;AAClE,SAAO,CAACC,MAAmB;AAC1B,IAAAD,EAAK,QAAQ,CAACF,MAAQD,EAAUC,GAAKG,CAAI,CAAC;AAAA,EAC3C;AACD;AAEO,SAASC,EAA+CJ,GAA2C;AACnG,QAAAK,IAASC,EAAU,IAAI;AAET,SAAAC,EAAAP,GAAK,MAAMK,EAAO,OAAQ,GAEvCA;AACR;"}