@lotte-innovate/ui-component-test 0.1.125 → 0.1.127
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/globals.css +1 -1
- package/dist/lib/color/alpha.mjs.map +1 -1
- package/dist/lib/color/constants.mjs.map +1 -1
- package/dist/lib/color/light.mjs.map +1 -1
- package/dist/lib/components/AlertDialog/index.mjs.map +1 -1
- package/dist/lib/components/BarChart/index.mjs.map +1 -1
- package/dist/lib/components/Breadcrumb/BreadcrumbEllipsis.mjs.map +1 -1
- package/dist/lib/components/Breadcrumb/BreadcrumbItem.mjs.map +1 -1
- package/dist/lib/components/Breadcrumb/BreadcrumbLink.mjs.map +1 -1
- package/dist/lib/components/Breadcrumb/BreadcrumbList.mjs.map +1 -1
- package/dist/lib/components/Breadcrumb/BreadcrumbPage.mjs.map +1 -1
- package/dist/lib/components/Breadcrumb/BreadcrumbSeparator.mjs.map +1 -1
- package/dist/lib/components/Breadcrumb/index.mjs.map +1 -1
- package/dist/lib/components/BubbleChart/index.mjs.map +1 -1
- package/dist/lib/components/Callout/index.mjs.map +1 -1
- package/dist/lib/components/CheckboxGroup/index.mjs.map +1 -1
- package/dist/lib/components/ContextMenu/ContextMenuGroup.mjs.map +1 -1
- package/dist/lib/components/ContextMenu/ContextMenuSeparator.mjs.map +1 -1
- package/dist/lib/components/ContextMenu/ContextMenuTrigger.mjs.map +1 -1
- package/dist/lib/components/ContextMenu/index.mjs.map +1 -1
- package/dist/lib/components/DataList/index.mjs.map +1 -1
- package/dist/lib/components/Dialog/DialogTrigger.mjs.map +1 -1
- package/dist/lib/components/Dialog/index.mjs.map +1 -1
- package/dist/lib/components/DoughnutChart/index.mjs.map +1 -1
- package/dist/lib/components/DropdownMenu/DropdonMenuRadioGroup.mjs.map +1 -1
- package/dist/lib/components/DropdownMenu/DropdownMenuSeparator.mjs.map +1 -1
- package/dist/lib/components/DropdownMenu/DropdownMenuSub.mjs.map +1 -1
- package/dist/lib/components/DropdownMenu/index.mjs.map +1 -1
- package/dist/lib/components/Editor/index.d.ts +14 -14
- package/dist/lib/components/Editor/index.js +15 -15
- package/dist/lib/components/Gnb/GnbLogo.js +0 -1
- package/dist/lib/components/Gnb/GnbLogo.mjs +0 -1
- package/dist/lib/components/Gnb/GnbLogo.mjs.map +1 -1
- package/dist/lib/components/Gnb/index.mjs.map +1 -1
- package/dist/lib/components/Grid/Pagination.mjs.map +1 -1
- package/dist/lib/components/HoverCard/HoverCardTrigger.mjs.map +1 -1
- package/dist/lib/components/HoverCard/index.mjs.map +1 -1
- package/dist/lib/components/Label/index.d.ts +2 -0
- package/dist/lib/components/Label/index.js +3 -3
- package/dist/lib/components/Label/index.mjs +1 -1
- package/dist/lib/components/LineChart/index.mjs.map +1 -1
- package/dist/lib/components/Menubar/MenubarMenu.mjs.map +1 -1
- package/dist/lib/components/Menubar/MenubarSeparator.mjs.map +1 -1
- package/dist/lib/components/Menubar/MenubarSub.mjs.map +1 -1
- package/dist/lib/components/Menubar/index.mjs.map +1 -1
- package/dist/lib/components/NavigationMenu/NavigationMenuIndicator.mjs.map +1 -1
- package/dist/lib/components/NavigationMenu/NavigationMenuItem.mjs.map +1 -1
- package/dist/lib/components/NavigationMenu/index.mjs.map +1 -1
- package/dist/lib/components/PieChart/index.mjs.map +1 -1
- package/dist/lib/components/Popover/PopoverTrigger.mjs.map +1 -1
- package/dist/lib/components/Popover/index.mjs.map +1 -1
- package/dist/lib/components/RadarChart/index.mjs.map +1 -1
- package/dist/lib/components/RadioCards/index.mjs.map +1 -1
- package/dist/lib/components/RadioGroup/index.mjs.map +1 -1
- package/dist/lib/components/SegmentedControl/SegmentedControlItem.mjs.map +1 -1
- package/dist/lib/components/SegmentedControl/index.mjs.map +1 -1
- package/dist/lib/components/SideBar/index.d.ts +21 -0
- package/dist/lib/components/SideBar/index.js +71 -0
- package/dist/lib/components/Toast/index.mjs.map +1 -1
- package/dist/lib/components/ToggleGroup/index.mjs.map +1 -1
- package/dist/lib/components/index.d.ts +0 -1
- package/dist/lib/components/index.js +0 -1
- package/dist/lib/constants.mjs.map +1 -1
- package/dist/lib/index.mjs +1 -1
- package/dist/lib/tailwind.config.d.ts +3 -0
- package/dist/lib/tsconfig.tsbuildinfo +1 -0
- package/dist/lib/utils/useWindowSize.d.ts +1 -0
- package/dist/lib/utils/useWindowSize.js +17 -0
- package/dist/lib/utils/utils.mjs.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/dist/lib/components/Editor/index copy.d.ts +0 -26
- package/dist/lib/components/Editor/index copy.js +0 -120
- package/dist/lib/components/Editor/index.mjs +0 -3
- package/dist/lib/components/Editor/index.mjs.map +0 -1
@@ -0,0 +1 @@
|
|
1
|
+
export declare function useWindowSize(): number;
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { useState, useEffect } from 'react';
|
2
|
+
var MIN_SIZE = 250;
|
3
|
+
export function useWindowSize() {
|
4
|
+
var _a = useState(MIN_SIZE), size = _a[0], setSize = _a[1];
|
5
|
+
useEffect(function () {
|
6
|
+
function handleResize() {
|
7
|
+
var width = 130 + window.innerWidth * 0.15;
|
8
|
+
width = Math.max(width, MIN_SIZE);
|
9
|
+
width = Math.min(width, 300);
|
10
|
+
setSize(width);
|
11
|
+
}
|
12
|
+
window.addEventListener('resize', handleResize);
|
13
|
+
handleResize();
|
14
|
+
return function () { return window.removeEventListener('resize', handleResize); };
|
15
|
+
}, []);
|
16
|
+
return size;
|
17
|
+
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"utils.mjs","sources":["
|
1
|
+
{"version":3,"file":"utils.mjs","sources":["../../lib/utils/utils.js"],"sourcesContent":["import { clsx } from 'clsx';\nimport { twMerge } from 'tailwind-merge';\n// tailwind를 merge할 때 발생할 수 있는 클래스 충돌 문제 해결\nexport function cn() {\n var inputs = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n inputs[_i] = arguments[_i];\n }\n return twMerge(clsx(inputs));\n}\n"],"names":["cn","inputs","_i","arguments","length","twMerge","clsx"],"mappings":"qEAGO,SAASA,IAEZ,IADA,IAAIC,EAAS,GACJC,EAAK,EAAGA,EAAKC,UAAUC,OAAQF,IACpCD,EAAOC,GAAMC,UAAUD,GAE3B,OAAOG,EAAQC,EAAKL,GACxB"}
|