@lotte-innovate/ui-component-test 0.0.131 → 0.0.133

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. package/README.md +12 -8
  2. package/dist/globals.css +1 -1
  3. package/dist/lib/components/BarChart/index.js +1 -0
  4. package/dist/lib/components/BarChart/index.mjs +1 -0
  5. package/dist/lib/components/BarChart/index.mjs.map +1 -1
  6. package/dist/lib/components/BubbleChart/index.js +1 -0
  7. package/dist/lib/components/BubbleChart/index.mjs +1 -0
  8. package/dist/lib/components/BubbleChart/index.mjs.map +1 -1
  9. package/dist/lib/components/Calendar/index.d.ts +5 -2
  10. package/dist/lib/components/Calendar/index.js +2 -3
  11. package/dist/lib/components/Calendar/index.mjs +1 -1
  12. package/dist/lib/components/Container/index.d.ts +9 -0
  13. package/dist/lib/components/Container/index.js +47 -0
  14. package/dist/lib/components/Container/index.mjs +2 -0
  15. package/dist/lib/components/Container/index.mjs.map +1 -0
  16. package/dist/lib/components/Datepicker/index.d.ts +6 -3
  17. package/dist/lib/components/Datepicker/index.js +2 -3
  18. package/dist/lib/components/Datepicker/index.mjs +1 -1
  19. package/dist/lib/components/Dialog/DialogAction.mjs +1 -1
  20. package/dist/lib/components/Dialog/DialogCancel.mjs +1 -1
  21. package/dist/lib/components/DoughnutChart/index.js +1 -0
  22. package/dist/lib/components/DoughnutChart/index.mjs +1 -0
  23. package/dist/lib/components/DoughnutChart/index.mjs.map +1 -1
  24. package/dist/lib/components/Flex/index.d.ts +9 -0
  25. package/dist/lib/components/Flex/index.js +47 -0
  26. package/dist/lib/components/Flex/index.mjs +2 -0
  27. package/dist/lib/components/Flex/index.mjs.map +1 -0
  28. package/dist/lib/components/Grid/useGrid.d.ts +1 -1
  29. package/dist/lib/components/Grid/useGrid.js +2 -3
  30. package/dist/lib/components/Grid/useGrid.mjs +1 -1
  31. package/dist/lib/components/GridLayout/index.d.ts +9 -0
  32. package/dist/lib/components/GridLayout/index.js +47 -0
  33. package/dist/lib/components/GridLayout/index.mjs +2 -0
  34. package/dist/lib/components/GridLayout/index.mjs.map +1 -0
  35. package/dist/lib/components/LineChart/index.js +1 -0
  36. package/dist/lib/components/LineChart/index.mjs +1 -0
  37. package/dist/lib/components/LineChart/index.mjs.map +1 -1
  38. package/dist/lib/components/Modal/ModalAction.mjs +1 -1
  39. package/dist/lib/components/Modal/ModalCancel.mjs +1 -1
  40. package/dist/lib/components/Modal/ModalTitle.mjs +1 -1
  41. package/dist/lib/components/PieChart/index.js +1 -0
  42. package/dist/lib/components/PieChart/index.mjs +1 -0
  43. package/dist/lib/components/PieChart/index.mjs.map +1 -1
  44. package/dist/lib/components/Popover/index.mjs.map +1 -1
  45. package/dist/lib/components/RadarChart/index.js +1 -0
  46. package/dist/lib/components/RadarChart/index.mjs +1 -0
  47. package/dist/lib/components/RadarChart/index.mjs.map +1 -1
  48. package/dist/lib/components/SearchBar/index.js +2 -2
  49. package/dist/lib/components/SearchBar/index.mjs +1 -1
  50. package/dist/lib/components/TextField/index.js +6 -6
  51. package/dist/lib/components/TextField/index.mjs +1 -1
  52. package/dist/lib/components/Tree/index.d.ts +19 -0
  53. package/dist/lib/components/Tree/index.js +190 -0
  54. package/dist/lib/components/index.d.ts +3 -0
  55. package/dist/lib/components/index.js +3 -0
  56. package/dist/lib/index.mjs +1 -1
  57. package/dist/lib/tsconfig.tsbuildinfo +1 -1
  58. package/dist/lib/utils/useWindowSize.js +3 -1
  59. package/dist/lib/utils/useWindowSize.mjs +1 -1
  60. package/dist/lib/utils/useWindowSize.mjs.map +1 -1
  61. package/dist/tsconfig.tsbuildinfo +1 -1
  62. package/package.json +4 -3
@@ -4,6 +4,8 @@ export function useWindowSize() {
4
4
  var _a = useState(MIN_SIZE), size = _a[0], setSize = _a[1];
5
5
  useEffect(function () {
6
6
  function handleResize() {
7
+ if (!window)
8
+ return;
7
9
  var width = 130 + window.innerWidth * 0.15;
8
10
  width = Math.max(width, MIN_SIZE);
9
11
  width = Math.min(width, 300);
@@ -12,6 +14,6 @@ export function useWindowSize() {
12
14
  window.addEventListener('resize', handleResize);
13
15
  handleResize();
14
16
  return function () { return window.removeEventListener('resize', handleResize); };
15
- }, []);
17
+ }, [window]);
16
18
  return size;
17
19
  }
@@ -1,2 +1,2 @@
1
- import{useState as n,useEffect as e}from"react";function r(){var r=n(250),t=r[0],i=r[1];return e((function(){function n(){var n=130+.15*window.innerWidth;n=Math.max(n,250),n=Math.min(n,300),i(n)}return window.addEventListener("resize",n),n(),function(){return window.removeEventListener("resize",n)}}),[]),t}export{r as useWindowSize};
1
+ import{useState as n,useEffect as e}from"react";function i(){var i=n(250),r=i[0],t=i[1];return e((function(){function n(){if(window){var n=130+.15*window.innerWidth;n=Math.max(n,250),n=Math.min(n,300),t(n)}}return window.addEventListener("resize",n),n(),function(){return window.removeEventListener("resize",n)}}),[window]),r}export{i as useWindowSize};
2
2
  //# sourceMappingURL=useWindowSize.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"useWindowSize.mjs","sources":["../../lib/utils/useWindowSize.js"],"sourcesContent":["import { useState, useEffect } from 'react';\nvar MIN_SIZE = 250;\nexport function useWindowSize() {\n var _a = useState(MIN_SIZE), size = _a[0], setSize = _a[1];\n useEffect(function () {\n function handleResize() {\n var width = 130 + window.innerWidth * 0.15;\n width = Math.max(width, MIN_SIZE);\n width = Math.min(width, 300);\n setSize(width);\n }\n window.addEventListener('resize', handleResize);\n handleResize();\n return function () { return window.removeEventListener('resize', handleResize); };\n }, []);\n return size;\n}\n"],"names":["useWindowSize","_a","useState","size","setSize","useEffect","handleResize","width","window","innerWidth","Math","max","min","addEventListener","removeEventListener"],"mappings":"gDAEO,SAASA,IACZ,IAAIC,EAAKC,EAFE,KAEkBC,EAAOF,EAAG,GAAIG,EAAUH,EAAG,GAYxD,OAXAI,GAAU,WACN,SAASC,IACL,IAAIC,EAAQ,IAA0B,IAApBC,OAAOC,WACzBF,EAAQG,KAAKC,IAAIJ,EANd,KAOHA,EAAQG,KAAKE,IAAIL,EAAO,KACxBH,EAAQG,EACX,CAGD,OAFAC,OAAOK,iBAAiB,SAAUP,GAClCA,IACO,WAAc,OAAOE,OAAOM,oBAAoB,SAAUR,GACpE,GAAE,IACIH,CACX"}
1
+ {"version":3,"file":"useWindowSize.mjs","sources":["../../lib/utils/useWindowSize.js"],"sourcesContent":["import { useState, useEffect } from 'react';\nvar MIN_SIZE = 250;\nexport function useWindowSize() {\n var _a = useState(MIN_SIZE), size = _a[0], setSize = _a[1];\n useEffect(function () {\n function handleResize() {\n if (!window)\n return;\n var width = 130 + window.innerWidth * 0.15;\n width = Math.max(width, MIN_SIZE);\n width = Math.min(width, 300);\n setSize(width);\n }\n window.addEventListener('resize', handleResize);\n handleResize();\n return function () { return window.removeEventListener('resize', handleResize); };\n }, [window]);\n return size;\n}\n"],"names":["useWindowSize","_a","useState","size","setSize","useEffect","handleResize","window","width","innerWidth","Math","max","min","addEventListener","removeEventListener"],"mappings":"gDAEO,SAASA,IACZ,IAAIC,EAAKC,EAFE,KAEkBC,EAAOF,EAAG,GAAIG,EAAUH,EAAG,GAcxD,OAbAI,GAAU,WACN,SAASC,IACL,GAAKC,OAAL,CAEA,IAAIC,EAAQ,IAA0B,IAApBD,OAAOE,WACzBD,EAAQE,KAAKC,IAAIH,EARd,KASHA,EAAQE,KAAKE,IAAIJ,EAAO,KACxBJ,EAAQI,EAJG,CAKd,CAGD,OAFAD,OAAOM,iBAAiB,SAAUP,GAClCA,IACO,WAAc,OAAOC,OAAOO,oBAAoB,SAAUR,GACzE,GAAO,CAACC,SACGJ,CACX"}