@lotte-innovate/ui-component-test 0.2.88 → 0.2.89
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/README.md +21 -2
- package/dist/globals.css +3 -3
- package/dist/lib/components/AlertDialog/index.d.ts +0 -1
- package/dist/lib/components/Badge/index.js +1 -1
- package/dist/lib/components/Badge/index.mjs +1 -1
- package/dist/lib/components/Breadcrumb/BreadcrumbEllipsis.d.ts +1 -1
- package/dist/lib/components/Breadcrumb/BreadcrumbLink.d.ts +1 -1
- package/dist/lib/components/Breadcrumb/BreadcrumbSeparator.d.ts +1 -1
- package/dist/lib/components/Breadcrumb/index.d.ts +3 -4
- package/dist/lib/components/Callout/index.d.ts +0 -1
- package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.js +3 -4
- package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.mjs +1 -1
- package/dist/lib/components/CheckboxGroup/index.d.ts +1 -2
- package/dist/lib/components/ContextMenu/index.d.ts +0 -1
- package/dist/lib/components/DataList/DataListLabel.d.ts +1 -1
- package/dist/lib/components/DataList/index.d.ts +1 -2
- package/dist/lib/components/Datepicker/index.js +2 -2
- package/dist/lib/components/Datepicker/index.mjs +1 -1
- package/dist/lib/components/DatetimePicker/index.d.ts +1 -2
- package/dist/lib/components/DatetimePicker/index.js +15 -6
- package/dist/lib/components/DatetimePicker/index.mjs +1 -1
- package/dist/lib/components/Dialog/index.d.ts +0 -1
- package/dist/lib/components/DropdownMenu/index.d.ts +1 -2
- package/dist/lib/components/Editor/index.js +2 -2
- package/dist/lib/components/Editor/index.mjs +1 -1
- package/dist/lib/components/Gnb/index.d.ts +0 -1
- package/dist/lib/components/Grid/index.js +12 -11
- package/dist/lib/components/Grid/index.mjs +1 -1
- package/dist/lib/components/Grid/useGrid.js +17 -13
- package/dist/lib/components/Grid/useGrid.mjs +1 -1
- package/dist/lib/components/HoverCard/index.d.ts +1 -2
- package/dist/lib/components/Menubar/index.d.ts +0 -1
- package/dist/lib/components/Modal/index.d.ts +1 -2
- package/dist/lib/components/NavigationMenu/index.d.ts +0 -1
- package/dist/lib/components/Popover/index.d.ts +1 -2
- package/dist/lib/components/RadioCards/index.d.ts +0 -1
- package/dist/lib/components/RadioGroup/index.d.ts +0 -1
- package/dist/lib/components/SegmentedControl/index.d.ts +0 -1
- package/dist/lib/components/TextField/index.js +1 -1
- package/dist/lib/components/TextField/index.mjs +1 -1
- package/dist/lib/components/Timeline/index.d.ts +0 -1
- package/dist/lib/components/Toast/ToastRoot.d.ts +2 -1
- package/dist/lib/components/Toast/ToastRoot.js +2 -2
- package/dist/lib/components/Toast/ToastRoot.mjs +1 -1
- package/dist/lib/components/Toast/index.d.ts +0 -1
- package/dist/lib/components/ToggleGroup/index.d.ts +0 -1
- package/dist/lib/components/Tree/index.js +2 -2
- package/dist/lib/components/Tree/index.mjs +1 -1
- package/dist/lib/constants.d.ts +2 -2
- package/dist/lib/tsconfig.tsbuildinfo +1 -1
- package/dist/lib/utils/useLoadTinyMCE.js +2 -2
- package/dist/lib/utils/useLoadTinyMCE.mjs +1 -1
- package/dist/lib/utils/useLoadTinyMCE.mjs.map +1 -1
- package/dist/tailwind.config.js +9 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +9 -4
@@ -1,4 +1,3 @@
|
|
1
|
-
/// <reference types="react" />
|
2
1
|
declare const AlertDialog: {
|
3
2
|
Root: import("react").ForwardRefExoticComponent<import("@radix-ui/react-alert-dialog").AlertDialogProps & import("./AlertDialogRoot").AlertDialogProps & import("react").RefAttributes<never>>;
|
4
3
|
Trigger: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-alert-dialog").AlertDialogTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("./AlertDialogTrigger").ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
@@ -32,7 +32,7 @@ var BadgeVariants = cva('inline-flex items-center transition-colors focus:outlin
|
|
32
32
|
variants: {
|
33
33
|
radius: __assign({}, radiusVariants['base']),
|
34
34
|
size: {
|
35
|
-
small: '
|
35
|
+
small: 'text-[10px] h-[14px] px-[4px] py-0',
|
36
36
|
medium: 'text-xs h-[24px] px-[8px] py-[4px]',
|
37
37
|
large: 'text-sm h-[28px] px-[8px] py-[4px]',
|
38
38
|
},
|
@@ -1,3 +1,3 @@
|
|
1
1
|
"use client";
|
2
|
-
import{jsx as e}from"react/jsx-runtime";import{forwardRef as r}from"react";import{cva as t}from"class-variance-authority";import{cn as i}from"../../utils/utils.mjs";import{radiusVariants as o,scalingVariants as n,weightVariants as a,primaryColorStyle as s,appearanceStyle as l}from"../../constants.mjs";import{useTheme as c}from"../../theme/ThemeProvider.mjs";import{MAIN_COLOR as m}from"../../color/constants.mjs";var p=function(){return p=Object.assign||function(e){for(var r,t=1,i=arguments.length;t<i;t++)for(var o in r=arguments[t])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e},p.apply(this,arguments)},u=function(e,r){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&r.indexOf(i)<0&&(t[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)r.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(t[i[o]]=e[i[o]])}return t},f=t("inline-flex items-center transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 w-fit",{variants:{radius:p({},o.base),size:{small:"
|
2
|
+
import{jsx as e}from"react/jsx-runtime";import{forwardRef as r}from"react";import{cva as t}from"class-variance-authority";import{cn as i}from"../../utils/utils.mjs";import{radiusVariants as o,scalingVariants as n,weightVariants as a,primaryColorStyle as s,appearanceStyle as l}from"../../constants.mjs";import{useTheme as c}from"../../theme/ThemeProvider.mjs";import{MAIN_COLOR as m}from"../../color/constants.mjs";var p=function(){return p=Object.assign||function(e){for(var r,t=1,i=arguments.length;t<i;t++)for(var o in r=arguments[t])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e},p.apply(this,arguments)},u=function(e,r){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&r.indexOf(i)<0&&(t[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)r.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(t[i[o]]=e[i[o]])}return t},f=t("inline-flex items-center transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 w-fit",{variants:{radius:p({},o.base),size:{small:"text-[10px] h-[14px] px-[4px] py-0",medium:"text-xs h-[24px] px-[8px] py-[4px]",large:"text-sm h-[28px] px-[8px] py-[4px]"},scaling:p({},n),weight:p({},a),color:s()},defaultVariants:{radius:"medium",size:"medium",scaling:"100%",weight:"medium",color:m}}),h=r((function(r,t){var o=r.className,n=r.children,a=r.radius,s=r.scaling,m=r.weight,h=r.size,d=r.color,g=r.appearance,x=void 0===g?"solid":g,y=u(r,["className","children","radius","scaling","weight","size","color","appearance"]),v=c().theme,O={radius:null!=a?a:v.themeRadius,scaling:null!=s?s:v.themeScaling,weight:null!=m?m:v.themeWeight,color:null!=d?d:v.themeColor,size:h},j=i(f(O),l(x,O.color,!1),o);return e("div",p({ref:t,className:j},y,{children:n}))}));h.displayName="Badge";export{h as default};
|
3
3
|
//# sourceMappingURL=index.mjs.map
|
@@ -4,6 +4,6 @@ export interface BreadcrumbEllipsisProps extends VariantProps<typeof breadcrumbE
|
|
4
4
|
}
|
5
5
|
export declare const breadcrumbEllipsisVariants: (props?: ({} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
6
6
|
export declare const BreadcrumbEllipsis: {
|
7
|
-
({ className, ...props }: ComponentProps<
|
7
|
+
({ className, ...props }: ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
|
8
8
|
displayName: string;
|
9
9
|
};
|
@@ -6,5 +6,5 @@ export declare const breadcrumbLinkVariants: (props?: ({
|
|
6
6
|
size?: "small" | "medium" | "large" | null | undefined;
|
7
7
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
8
8
|
export declare const BreadcrumbLink: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & {
|
9
|
-
asChild?: boolean
|
9
|
+
asChild?: boolean;
|
10
10
|
} & React.RefAttributes<HTMLAnchorElement>>;
|
@@ -4,6 +4,6 @@ export interface BreadcrumbSeparatorProps extends VariantProps<typeof breadcrumb
|
|
4
4
|
}
|
5
5
|
export declare const breadcrumbSeparatorVariants: (props?: ({} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
6
6
|
export declare const BreadcrumbSeparator: {
|
7
|
-
({ children, className, ...props }: ComponentProps<
|
7
|
+
({ children, className, ...props }: ComponentProps<"li">): import("react/jsx-runtime").JSX.Element;
|
8
8
|
displayName: string;
|
9
9
|
};
|
@@ -1,20 +1,19 @@
|
|
1
|
-
/// <reference types="react" />
|
2
1
|
declare const Breadcrumb: {
|
3
2
|
Root: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & {
|
4
3
|
separator?: import("react").ReactNode;
|
5
4
|
} & import("./BreadcrumbRoot").BreadcrumbProps & import("react").RefAttributes<HTMLElement>>;
|
6
5
|
Item: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & import("react").RefAttributes<HTMLLIElement>>;
|
7
6
|
Link: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & {
|
8
|
-
asChild?: boolean
|
7
|
+
asChild?: boolean;
|
9
8
|
} & import("react").RefAttributes<HTMLAnchorElement>>;
|
10
9
|
List: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, "ref"> & import("react").RefAttributes<HTMLOListElement>>;
|
11
10
|
Page: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
12
11
|
Separator: {
|
13
|
-
({ children, className, ...props }: import("react").
|
12
|
+
({ children, className, ...props }: import("react").ComponentProps<"li">): import("react/jsx-runtime").JSX.Element;
|
14
13
|
displayName: string;
|
15
14
|
};
|
16
15
|
Ellipsis: {
|
17
|
-
({ className, ...props }: import("react").
|
16
|
+
({ className, ...props }: import("react").ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
|
18
17
|
displayName: string;
|
19
18
|
};
|
20
19
|
};
|
@@ -1,4 +1,3 @@
|
|
1
|
-
/// <reference types="react" />
|
2
1
|
declare const Callout: {
|
3
2
|
Root: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("./CalloutRoot").CalloutProps & import("react").RefAttributes<HTMLDivElement>>;
|
4
3
|
Text: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref"> & import("./CalloutText").CalloutTextProps & import("react").RefAttributes<HTMLParagraphElement>>;
|
@@ -1,9 +1,8 @@
|
|
1
1
|
'use client';
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
3
|
-
import
|
3
|
+
import { createContext, forwardRef, useContext, } from 'react';
|
4
4
|
import { CheckboxGroup as CheckboxGroupTheme } from '@radix-ui/themes';
|
5
5
|
import { cva } from 'class-variance-authority';
|
6
|
-
import { cn } from '../../../lib/utils/utils';
|
7
6
|
import { useTheme } from '../../../lib/theme';
|
8
7
|
import { MAIN_COLOR } from '../../../lib/color/constants';
|
9
8
|
export var CheckboxGroupVerticalVariants = cva("", {
|
@@ -41,7 +40,7 @@ export var useCheckboxGroupContext = function () {
|
|
41
40
|
return useContext(CheckboxGroupContext);
|
42
41
|
};
|
43
42
|
export var CheckboxGroupRoot = forwardRef(function (_a, ref) {
|
44
|
-
var
|
43
|
+
var children = _a.children, defaultValue = _a.defaultValue, scaling = _a.scaling, size = _a.size, color = _a.color, radius = _a.radius, appearance = _a.appearance, _b = _a.orientation, orientation = _b === void 0 ? 'vertical' : _b;
|
45
44
|
var theme = useTheme().theme;
|
46
45
|
var contextValue = {
|
47
46
|
radius: radius !== null && radius !== void 0 ? radius : theme.themeRadius,
|
@@ -53,7 +52,7 @@ export var CheckboxGroupRoot = forwardRef(function (_a, ref) {
|
|
53
52
|
var sizeClassName = orientation === 'vertical'
|
54
53
|
? CheckboxGroupVerticalVariants({ size: size })
|
55
54
|
: CheckboxGroupHorizontalVariants({ size: size });
|
56
|
-
return (_jsx(CheckboxGroupContext.Provider, { value: contextValue, children: _jsx(CheckboxGroupTheme.Root, { ref: ref, defaultValue: defaultValue
|
55
|
+
return (_jsx(CheckboxGroupContext.Provider, { value: contextValue, children: _jsx(CheckboxGroupTheme.Root, { ref: ref, defaultValue: defaultValue }) }));
|
57
56
|
});
|
58
57
|
CheckboxGroupRoot.displayName = 'CheckboxGroup.Root';
|
59
58
|
export default CheckboxGroupRoot;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
"use client";
|
2
|
-
import{jsx as e}from"react/jsx-runtime";import
|
2
|
+
import{jsx as e}from"react/jsx-runtime";import{createContext as a,forwardRef as r,useContext as i}from"react";import{CheckboxGroup as o}from"@radix-ui/themes";import{cva as s}from"class-variance-authority";import{useTheme as t}from"../../theme/ThemeProvider.mjs";import{MAIN_COLOR as m}from"../../color/constants.mjs";var l=s("",{variants:{size:{small:"space-y-1",medium:"space-y-2",large:"space-y-3"}},defaultVariants:{size:"medium"}}),c=s("flex-row",{variants:{size:{small:"space-x-2",medium:"space-x-3",large:"space-x-4"}},defaultVariants:{size:"medium"}}),u=a({size:"medium",color:m,scaling:"100%",radius:"medium",appearance:"surface"}),n=function(){return i(u)},d=r((function(a,r){a.children;var i=a.defaultValue,s=a.scaling,m=a.size,n=a.color,d=a.radius,p=a.appearance,f=a.orientation,h=void 0===f?"vertical":f,v=t().theme,z={radius:null!=d?d:v.themeRadius,scaling:null!=s?s:v.themeScaling,color:null!=n?n:v.themeColor,size:m,appearance:p};return"vertical"===h?l({size:m}):c({size:m}),e(u.Provider,{value:z,children:e(o.Root,{ref:r,defaultValue:i})})}));d.displayName="CheckboxGroup.Root";export{c as CheckboxGroupHorizontalVariants,d as CheckboxGroupRoot,l as CheckboxGroupVerticalVariants,d as default,n as useCheckboxGroupContext};
|
3
3
|
//# sourceMappingURL=CheckboxGroupRoot.mjs.map
|
@@ -1,6 +1,5 @@
|
|
1
|
-
/// <reference types="react" />
|
2
1
|
declare const CheckboxGroup: {
|
3
2
|
Root: import("react").ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/themes/dist/cjs/components/checkbox-group").RootProps & import("react").RefAttributes<HTMLDivElement>, "ref">, "color" | "size"> & import("./CheckboxGroupRoot").CheckboxGroupRootProps & import("react").RefAttributes<HTMLDivElement>>;
|
4
|
-
Item: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-checkbox").CheckboxProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("
|
3
|
+
Item: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-checkbox").CheckboxProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("../Checkbox").CheckboxProps & import("react").RefAttributes<HTMLButtonElement>>;
|
5
4
|
};
|
6
5
|
export default CheckboxGroup;
|
@@ -1,4 +1,3 @@
|
|
1
|
-
/// <reference types="react" />
|
2
1
|
declare const ContextMenu: {
|
3
2
|
Root: import("react").ForwardRefExoticComponent<import("@radix-ui/react-context-menu").ContextMenuProps & import("./ContextMenuRoot").ContextMenuProps & import("react").RefAttributes<never>>;
|
4
3
|
Content: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-context-menu").ContextMenuContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("./ContextMenuContent").ContextMenuContentProps & import("react").RefAttributes<HTMLDivElement>>;
|
@@ -7,4 +7,4 @@ export declare const dataListLabelVariants: (props?: ({
|
|
7
7
|
size?: "small" | "medium" | "large" | null | undefined;
|
8
8
|
weight?: "medium" | "regular" | "semibold" | "bold" | null | undefined;
|
9
9
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
10
|
-
export declare const DataListLabel: React.ForwardRefExoticComponent<Omit<DataListTheme.LabelProps & React.RefAttributes<HTMLElement>, "ref"> & DataListLabelProps & React.RefAttributes<HTMLElement>>;
|
10
|
+
export declare const DataListLabel: React.ForwardRefExoticComponent<Omit<Omit<DataListTheme.LabelProps & React.RefAttributes<HTMLElement>, "ref">, "size"> & DataListLabelProps & React.RefAttributes<HTMLElement>>;
|
@@ -1,8 +1,7 @@
|
|
1
|
-
/// <reference types="react" />
|
2
1
|
declare const DataList: {
|
3
2
|
Root: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/themes/dist/cjs/components/data-list").RootProps & import("react").RefAttributes<HTMLDListElement>, "ref"> & import("./DataListRoot").DataListProps & import("react").RefAttributes<HTMLDListElement>>;
|
4
3
|
Item: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/themes/dist/cjs/components/data-list").ItemProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("./DataListItem").DataListItemProps & import("react").RefAttributes<HTMLDivElement>>;
|
5
|
-
Label: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/themes/dist/cjs/components/data-list").LabelProps & import("react").RefAttributes<HTMLElement>, "ref"> & import("./DataListLabel").DataListLabelProps & import("react").RefAttributes<HTMLElement>>;
|
4
|
+
Label: import("react").ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/themes/dist/cjs/components/data-list").LabelProps & import("react").RefAttributes<HTMLElement>, "ref">, "size"> & import("./DataListLabel").DataListLabelProps & import("react").RefAttributes<HTMLElement>>;
|
6
5
|
Value: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/themes/dist/cjs/components/data-list").ValueProps & import("react").RefAttributes<HTMLElement>, "ref"> & import("./DataListValue").DataListValueProps & import("react").RefAttributes<HTMLElement>>;
|
7
6
|
};
|
8
7
|
export default DataList;
|
@@ -21,7 +21,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
21
21
|
}
|
22
22
|
return t;
|
23
23
|
};
|
24
|
-
import { jsx as _jsx,
|
24
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
25
25
|
import { forwardRef, } from 'react';
|
26
26
|
import { CalendarIcon } from '@radix-ui/react-icons';
|
27
27
|
import Calendar from '../../../lib/components/Calendar';
|
@@ -31,7 +31,7 @@ import { cn } from '../../../lib/utils/utils';
|
|
31
31
|
import { format } from 'date-fns';
|
32
32
|
export var Datepicker = forwardRef(function (_a, ref) {
|
33
33
|
var className = _a.className, classNames = _a.classNames, isOpen = _a.isOpen, setIsOpen = _a.setIsOpen, selected = _a.selected, onSelect = _a.onSelect, _b = _a.showOutsideDays, showOutsideDays = _b === void 0 ? true : _b, _c = _a.placeholder, placeholder = _c === void 0 ? '날짜를 선택해주세요' : _c, scaling = _a.scaling, radius = _a.radius, color = _a.color, mode = _a.mode, props = __rest(_a, ["className", "classNames", "isOpen", "setIsOpen", "selected", "onSelect", "showOutsideDays", "placeholder", "scaling", "radius", "color", "mode"]);
|
34
|
-
return mode === 'range' ? (_jsxs(Popover.Root, { open: isOpen, onOpenChange: setIsOpen, scaling: scaling, radius: radius, children: [_jsx(Popover.Trigger, { className: cn('w-[280px] text-slateA-9 dark:text-slateDarkA-9', className), children: _jsxs(Button, { appearance: 'outline', color: color, scaling: scaling, radius: radius, className: cn('justify-start gap-2 text-left font-normal'), children: [_jsx(CalendarIcon, {}),
|
34
|
+
return mode === 'range' ? (_jsxs(Popover.Root, { open: isOpen, onOpenChange: setIsOpen, scaling: scaling, radius: radius, children: [_jsx(Popover.Trigger, { className: cn('w-[280px] text-slateA-9 dark:text-slateDarkA-9', className), children: _jsxs(Button, { appearance: 'outline', color: color, scaling: scaling, radius: radius, className: cn('justify-start gap-2 text-left font-normal'), children: [_jsx(CalendarIcon, {}), (selected === null || selected === void 0 ? void 0 : selected.from) ? (selected.to ? (_jsxs("span", { className: "overflow-hidden text-clip whitespace-nowrap text-slate-12 dark:text-slateDark-12", children: [format(selected.from, 'yyyy-MM-dd'), " ~ ", format(selected.to, 'yyyy-MM-dd')] })) : (_jsx("span", { className: "overflow-hidden text-clip whitespace-nowrap", children: format(selected.from, 'yyyy-MM-dd') }))) : (placeholder)] }) }), _jsx(Popover.Content, { className: "w-auto max-w-[600px] place-content-center p-0", align: "start", children: _jsx(Calendar, __assign({ ref: ref, mode: "range", color: color, radius: radius, selected: selected, onSelect: onSelect, numberOfMonths: 2, defaultMonth: selected === null || selected === void 0 ? void 0 : selected.from, showOutsideDays: showOutsideDays, className: 'w-full', classNames: classNames }, props)) })] })) : (_jsxs(Popover.Root, { open: isOpen, onOpenChange: setIsOpen, scaling: scaling, radius: radius, children: [_jsx(Popover.Trigger, { className: cn('w-[280px] text-slateA-9 dark:text-slateDarkA-9', className), children: _jsxs(Button, { color: color, radius: radius, scaling: scaling, appearance: 'outline', className: cn('justify-start gap-2 text-left font-normal'), children: [_jsx(CalendarIcon, {}), selected ? (_jsx("span", { className: "overflow-hidden text-clip whitespace-nowrap text-slate-12 dark:text-slateDark-12", children: format(selected, 'yyyy-MM-dd') })) : (_jsx("span", { className: "overflow-hidden text-clip whitespace-nowrap", children: placeholder }))] }) }), _jsx(Popover.Content, { className: "w-auto place-content-center p-0", children: _jsx(Calendar, __assign({ ref: ref, mode: mode, color: color, radius: radius, selected: selected, onSelect: onSelect, defaultMonth: selected, showOutsideDays: showOutsideDays, className: 'w-full', classNames: classNames }, props)) })] }));
|
35
35
|
});
|
36
36
|
Datepicker.displayName = 'Datepicker';
|
37
37
|
export default Datepicker;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
"use client";
|
2
|
-
import{jsxs as e,jsx as t
|
2
|
+
import{jsxs as e,jsx as t}from"react/jsx-runtime";import{forwardRef as a}from"react";import{CalendarIcon as r}from"@radix-ui/react-icons";import{Calendar as s}from"../Calendar/index.mjs";import o from"../Popover/index.mjs";import{Button as l}from"../Button/index.mjs";import{cn as n}from"../../utils/utils.mjs";import{format as c}from"date-fns";var i=function(){return i=Object.assign||function(e){for(var t,a=1,r=arguments.length;a<r;a++)for(var s in t=arguments[a])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},i.apply(this,arguments)},d=function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(a[r[s]]=e[r[s]])}return a},p=a((function(a,p){var m=a.className,f=a.classNames,u=a.isOpen,h=a.setIsOpen,y=a.selected,w=a.onSelect,x=a.showOutsideDays,O=void 0===x||x,g=a.placeholder,N=void 0===g?"날짜를 선택해주세요":g,v=a.scaling,j=a.radius,M=a.color,b=a.mode,k=d(a,["className","classNames","isOpen","setIsOpen","selected","onSelect","showOutsideDays","placeholder","scaling","radius","color","mode"]);return e(o.Root,"range"===b?{open:u,onOpenChange:h,scaling:v,radius:j,children:[t(o.Trigger,{className:n("w-[280px] text-slateA-9 dark:text-slateDarkA-9",m),children:e(l,{appearance:"outline",color:M,scaling:v,radius:j,className:n("justify-start gap-2 text-left font-normal"),children:[t(r,{}),(null==y?void 0:y.from)?y.to?e("span",{className:"overflow-hidden text-clip whitespace-nowrap text-slate-12 dark:text-slateDark-12",children:[c(y.from,"yyyy-MM-dd")," ~ ",c(y.to,"yyyy-MM-dd")]}):t("span",{className:"overflow-hidden text-clip whitespace-nowrap",children:c(y.from,"yyyy-MM-dd")}):N]})}),t(o.Content,{className:"w-auto max-w-[600px] place-content-center p-0",align:"start",children:t(s,i({ref:p,mode:"range",color:M,radius:j,selected:y,onSelect:w,numberOfMonths:2,defaultMonth:null==y?void 0:y.from,showOutsideDays:O,className:"w-full",classNames:f},k))})]}:{open:u,onOpenChange:h,scaling:v,radius:j,children:[t(o.Trigger,{className:n("w-[280px] text-slateA-9 dark:text-slateDarkA-9",m),children:e(l,{color:M,radius:j,scaling:v,appearance:"outline",className:n("justify-start gap-2 text-left font-normal"),children:[t(r,{}),t("span",y?{className:"overflow-hidden text-clip whitespace-nowrap text-slate-12 dark:text-slateDark-12",children:c(y,"yyyy-MM-dd")}:{className:"overflow-hidden text-clip whitespace-nowrap",children:N})]})}),t(o.Content,{className:"w-auto place-content-center p-0",children:t(s,i({ref:p,mode:b,color:M,radius:j,selected:y,onSelect:w,defaultMonth:y,showOutsideDays:O,className:"w-full",classNames:f},k))})]})}));p.displayName="Datepicker";export{p as Datepicker,p as default};
|
3
3
|
//# sourceMappingURL=index.mjs.map
|
@@ -12,14 +12,13 @@ export interface DatetimepickerProps extends VariantProps<typeof datetimepickerV
|
|
12
12
|
placeholder?: string;
|
13
13
|
selected?: Day | Range | undefined;
|
14
14
|
onChange?: any;
|
15
|
-
headerClass?: string;
|
16
15
|
className?: string;
|
17
16
|
}
|
18
17
|
declare const datetimepickerVariants: (props?: ({
|
19
18
|
radius?: "none" | "small" | "medium" | "large" | "full" | null | undefined;
|
20
19
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
21
20
|
export declare const Datetimepicker: {
|
22
|
-
({ className, onChange, placeholder, isOpen, setIsOpen, selected, scaling, radius, color, type, headerClass, calenderModalClass, ...props }: ComponentPropsWithoutRef<typeof DtPicker> & DatetimepickerProps): import("react/jsx-runtime").JSX.Element;
|
21
|
+
({ className, onChange, placeholder, isOpen, setIsOpen, selected, scaling, radius, color, type, daysClass, timeClass, headerClass, calenderModalClass, ...props }: ComponentPropsWithoutRef<typeof DtPicker> & DatetimepickerProps): import("react/jsx-runtime").JSX.Element;
|
23
22
|
displayName: string;
|
24
23
|
};
|
25
24
|
export default Datetimepicker;
|
@@ -56,7 +56,7 @@ var BorderRadius = {
|
|
56
56
|
};
|
57
57
|
export var Datetimepicker = function (_a) {
|
58
58
|
var _b, _c;
|
59
|
-
var className = _a.className, onChange = _a.onChange, _d = _a.placeholder, placeholder = _d === void 0 ? '날짜를 선택해주세요' : _d, isOpen = _a.isOpen, setIsOpen = _a.setIsOpen, selected = _a.selected, scaling = _a.scaling, radius = _a.radius, color = _a.color, type = _a.type, headerClass = _a.headerClass, calenderModalClass = _a.calenderModalClass, props = __rest(_a, ["className", "onChange", "placeholder", "isOpen", "setIsOpen", "selected", "scaling", "radius", "color", "type", "headerClass", "calenderModalClass"]);
|
59
|
+
var className = _a.className, onChange = _a.onChange, _d = _a.placeholder, placeholder = _d === void 0 ? '날짜를 선택해주세요' : _d, isOpen = _a.isOpen, setIsOpen = _a.setIsOpen, selected = _a.selected, scaling = _a.scaling, radius = _a.radius, color = _a.color, type = _a.type, daysClass = _a.daysClass, timeClass = _a.timeClass, headerClass = _a.headerClass, calenderModalClass = _a.calenderModalClass, props = __rest(_a, ["className", "onChange", "placeholder", "isOpen", "setIsOpen", "selected", "scaling", "radius", "color", "type", "daysClass", "timeClass", "headerClass", "calenderModalClass"]);
|
60
60
|
var theme = useTheme().theme;
|
61
61
|
var contextValue = {
|
62
62
|
radius: (_b = radius !== null && radius !== void 0 ? radius : theme.themeRadius) !== null && _b !== void 0 ? _b : 'medium',
|
@@ -74,13 +74,22 @@ export var Datetimepicker = function (_a) {
|
|
74
74
|
var formatDate = function (date) {
|
75
75
|
if (!date)
|
76
76
|
return '';
|
77
|
-
if (date
|
78
|
-
|
79
|
-
|
80
|
-
|
77
|
+
if (date === null || date === void 0 ? void 0 : date.from) {
|
78
|
+
if (date.to) {
|
79
|
+
var formattedStartDate = convertIDayToDate(date.from);
|
80
|
+
var formattedEndDate = convertIDayToDate(date.to);
|
81
|
+
return "".concat(formattedStartDate, " ~ ").concat(formattedEndDate);
|
82
|
+
}
|
83
|
+
else {
|
84
|
+
var formattedStartDate = convertIDayToDate(date.from);
|
85
|
+
return "".concat(formattedStartDate);
|
86
|
+
}
|
87
|
+
}
|
88
|
+
else {
|
89
|
+
return placeholder;
|
81
90
|
}
|
82
91
|
};
|
83
|
-
return (_jsx(Theme, { accentColor: contextValue.color, children: type === 'range' ? (_jsxs(Popover.Root, { open: isOpen, onOpenChange: setIsOpen, scaling: scaling, radius: radius, children: [_jsx(Popover.Trigger, { className: cn('w-[310px] text-slateA-9 dark:text-slateDarkA-9', className), children: _jsxs(Button, { color: color, radius: radius, scaling: scaling, appearance: 'outline', className: cn('justify-start gap-2 text-left font-normal'), children: [_jsx(CalendarIcon, {}), selected ? formatDate(selected) : placeholder] }) }), _jsx(Popover.Content, { className: "w-auto p-0", children: _jsx(DtCalendar, __assign({ type: "range", withTime: true, showTimeInput: true, initValue: selected, onChange: onChange, calenderModalClass: cn("".concat(datetimepickerVariants(contextValue)), calenderModalClass), headerClass: cn("flex bg-".concat(contextValue.color, "-9 dark:bg-").concat(contextValue.color, "Dark-9"), headerClass) }, props)) })] })) : (_jsxs(Popover.Root, { open: isOpen, onOpenChange: setIsOpen, scaling: scaling, radius: radius, children: [_jsx(Popover.Trigger, { className: cn('w-[310px] text-slateA-9 dark:text-slateDarkA-9', className), children: _jsxs(Button, { color: color, radius: radius, scaling: scaling, appearance: 'outline', className: cn('justify-start gap-2 text-left font-normal'), children: [_jsx(CalendarIcon, {}), selected ? convertIDayToDate(selected) : placeholder] }) }), _jsx(Popover.Content, { className: "w-auto p-0", children: _jsx(DtCalendar, __assign({ withTime: true, showTimeInput: true, initValue: selected, onChange: onChange, calenderModalClass: cn("".concat(datetimepickerVariants(contextValue)), calenderModalClass), headerClass: cn("flex bg-".concat(contextValue.color, "-9 dark:bg-").concat(contextValue.color, "Dark-9"), headerClass) }, props)) })] })) }));
|
92
|
+
return (_jsx(Theme, { accentColor: contextValue.color, children: type === 'range' ? (_jsxs(Popover.Root, { open: isOpen, onOpenChange: setIsOpen, scaling: scaling, radius: radius, children: [_jsx(Popover.Trigger, { className: cn('w-[310px] text-slateA-9 dark:text-slateDarkA-9', className), children: _jsxs(Button, { color: color, radius: radius, scaling: scaling, appearance: 'outline', className: cn('justify-start gap-2 text-left font-normal'), children: [_jsx(CalendarIcon, {}), selected ? (_jsx("span", { className: "overflow-hidden text-clip whitespace-nowrap text-slate-12 dark:text-slateDark-12", children: formatDate(selected) })) : (_jsx("span", { className: "overflow-hidden text-clip whitespace-nowrap", children: placeholder }))] }) }), _jsx(Popover.Content, { className: "w-auto p-0", children: _jsx(DtCalendar, __assign({ type: "range", withTime: true, showTimeInput: true, initValue: selected, onChange: onChange, timeClass: cn('text-slate-12 dark:text-slateDark-12', timeClass), daysClass: cn('text-slate-12 dark:text-slateDark-12', daysClass), calenderModalClass: cn("".concat(datetimepickerVariants(contextValue)), calenderModalClass), headerClass: cn("flex bg-".concat(contextValue.color, "-9 dark:bg-").concat(contextValue.color, "Dark-9"), headerClass) }, props)) })] })) : (_jsxs(Popover.Root, { open: isOpen, onOpenChange: setIsOpen, scaling: scaling, radius: radius, children: [_jsx(Popover.Trigger, { className: cn('w-[310px] text-slateA-9 dark:text-slateDarkA-9', className), children: _jsxs(Button, { color: color, radius: radius, scaling: scaling, appearance: 'outline', className: cn('justify-start gap-2 text-left font-normal'), children: [_jsx(CalendarIcon, {}), selected ? (_jsx("span", { className: "overflow-hidden text-clip whitespace-nowrap text-slate-12 dark:text-slateDark-12", children: convertIDayToDate(selected) })) : (_jsx("span", { className: "overflow-hidden text-clip whitespace-nowrap", children: placeholder }))] }) }), _jsx(Popover.Content, { className: "w-auto p-0", children: _jsx(DtCalendar, __assign({ withTime: true, showTimeInput: true, initValue: selected, onChange: onChange, timeClass: cn('text-slate-12 dark:text-slateDark-12', timeClass), daysClass: cn('text-slate-12 dark:text-slateDark-12', daysClass), calenderModalClass: cn("".concat(datetimepickerVariants(contextValue)), calenderModalClass), headerClass: cn("flex bg-".concat(contextValue.color, "-9 dark:bg-").concat(contextValue.color, "Dark-9"), headerClass) }, props)) })] })) }));
|
84
93
|
};
|
85
94
|
Datetimepicker.displayName = 'DatetimePicker';
|
86
95
|
export default Datetimepicker;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
"use client";
|
2
|
-
import{jsx as e,jsxs as
|
2
|
+
import{jsx as e,jsxs as a}from"react/jsx-runtime";import{useEffect as t}from"react";import{cva as r}from"class-variance-authority";import{DtCalendar as o}from"react-calendar-datetime-picker";import{CalendarIcon as n}from"@radix-ui/react-icons";import{MAIN_COLOR as l}from"../../color/constants.mjs";import s from"../Popover/index.mjs";import{Button as i}from"../Button/index.mjs";import{Theme as c}from"@radix-ui/themes";import{useTheme as d}from"../../theme/ThemeProvider.mjs";import{cn as m}from"../../utils/utils.mjs";import{format as p}from"date-fns";var u=function(){return u=Object.assign||function(e){for(var a,t=1,r=arguments.length;t<r;t++)for(var o in a=arguments[t])Object.prototype.hasOwnProperty.call(a,o)&&(e[o]=a[o]);return e},u.apply(this,arguments)},f=function(e,a){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&a.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)a.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]])}return t},h=r("",{variants:{radius:{none:"rounded-none",small:"rounded-[3px]",medium:"rounded",large:"rounded-md",full:"rounded-md"}},defaultVariants:{radius:"medium"}}),x={none:"0px",small:"3px",medium:"4px",large:"6px",full:"9999px"},y=function(r){var y,g,C=r.className,w=r.onChange,k=r.placeholder,v=void 0===k?"날짜를 선택해주세요":k,O=r.isOpen,b=r.setIsOpen,j=r.selected,N=r.scaling,D=r.radius,P=r.color,T=r.type,M=r.daysClass,I=r.timeClass,A=r.headerClass,V=r.calenderModalClass,E=f(r,["className","onChange","placeholder","isOpen","setIsOpen","selected","scaling","radius","color","type","daysClass","timeClass","headerClass","calenderModalClass"]),H=d().theme,R={radius:null!==(y=null!=D?D:H.themeRadius)&&void 0!==y?y:"medium",color:null!==(g=null!=P?P:H.themeColor)&&void 0!==g?g:l};t((function(){document.documentElement.style.setProperty("--day-border-radius",x[R.radius])}),[R.radius]);var S=function(e){if(!e)return null;var a=e.year,t=e.month,r=e.day,o=e.hour,n=e.minute;return p(new Date(a,t-1,r,o||0,n||0),"yyyy-MM-dd HH:mm")};return e(c,{accentColor:R.color,children:a(s.Root,"range"===T?{open:O,onOpenChange:b,scaling:N,radius:D,children:[e(s.Trigger,{className:m("w-[310px] text-slateA-9 dark:text-slateDarkA-9",C),children:a(i,{color:P,radius:D,scaling:N,appearance:"outline",className:m("justify-start gap-2 text-left font-normal"),children:[e(n,{}),e("span",j?{className:"overflow-hidden text-clip whitespace-nowrap text-slate-12 dark:text-slateDark-12",children:function(e){if(!e)return"";if(null==e?void 0:e.from){if(e.to){var a=S(e.from),t=S(e.to);return"".concat(a," ~ ").concat(t)}a=S(e.from);return"".concat(a)}return v}(j)}:{className:"overflow-hidden text-clip whitespace-nowrap",children:v})]})}),e(s.Content,{className:"w-auto p-0",children:e(o,u({type:"range",withTime:!0,showTimeInput:!0,initValue:j,onChange:w,timeClass:m("text-slate-12 dark:text-slateDark-12",I),daysClass:m("text-slate-12 dark:text-slateDark-12",M),calenderModalClass:m("".concat(h(R)),V),headerClass:m("flex bg-".concat(R.color,"-9 dark:bg-").concat(R.color,"Dark-9"),A)},E))})]}:{open:O,onOpenChange:b,scaling:N,radius:D,children:[e(s.Trigger,{className:m("w-[310px] text-slateA-9 dark:text-slateDarkA-9",C),children:a(i,{color:P,radius:D,scaling:N,appearance:"outline",className:m("justify-start gap-2 text-left font-normal"),children:[e(n,{}),e("span",j?{className:"overflow-hidden text-clip whitespace-nowrap text-slate-12 dark:text-slateDark-12",children:S(j)}:{className:"overflow-hidden text-clip whitespace-nowrap",children:v})]})}),e(s.Content,{className:"w-auto p-0",children:e(o,u({withTime:!0,showTimeInput:!0,initValue:j,onChange:w,timeClass:m("text-slate-12 dark:text-slateDark-12",I),daysClass:m("text-slate-12 dark:text-slateDark-12",M),calenderModalClass:m("".concat(h(R)),V),headerClass:m("flex bg-".concat(R.color,"-9 dark:bg-").concat(R.color,"Dark-9"),A)},E))})]})})};y.displayName="DatetimePicker";export{y as Datetimepicker,y as default};
|
3
3
|
//# sourceMappingURL=index.mjs.map
|
@@ -1,4 +1,3 @@
|
|
1
|
-
/// <reference types="react" />
|
2
1
|
declare const Dialog: {
|
3
2
|
Root: import("react").ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogProps & import("./DialogRoot").DialogProps & import("react").RefAttributes<never>>;
|
4
3
|
Trigger: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-dialog").DialogTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
@@ -1,7 +1,6 @@
|
|
1
|
-
/// <reference types="react" />
|
2
1
|
declare const DropdownMenu: {
|
3
2
|
Root: {
|
4
|
-
({ children, radius, size, scaling, color, appearance, ...props }: import("@radix-ui/react-dropdown-menu").DropdownMenuProps & import("./DropdownMenuRoot").DropdownMenuProps): import("react/jsx-runtime").JSX.Element;
|
3
|
+
({ children, radius, size, scaling, color, appearance, ...props }: import("react").ComponentPropsWithoutRef<import("react").FC<import("@radix-ui/react-dropdown-menu").DropdownMenuProps>> & import("./DropdownMenuRoot").DropdownMenuProps): import("react/jsx-runtime").JSX.Element;
|
5
4
|
displayName: string;
|
6
5
|
};
|
7
6
|
Trigger: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-dropdown-menu").DropdownMenuTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("./DropdownMenuTrigger").DropdownMenuTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
@@ -31,8 +31,8 @@ import { cn } from '../../../lib/utils/utils';
|
|
31
31
|
import { useTheme } from '../../../lib/theme';
|
32
32
|
import { marked } from 'marked';
|
33
33
|
import 'tinymce/skins/ui/oxide/skin.css';
|
34
|
-
import contentUiSkinCss from '
|
35
|
-
import contentCss from '
|
34
|
+
import contentUiSkinCss from 'tinymce/skins/ui/oxide/content.css';
|
35
|
+
import contentCss from 'tinymce/skins/content/default/content.css';
|
36
36
|
var editorVariants = cva('', {
|
37
37
|
variants: {
|
38
38
|
radius: __assign({}, radiusVariants['base']),
|
@@ -1,3 +1,3 @@
|
|
1
1
|
"use client";
|
2
|
-
import{jsx as e}from"react/jsx-runtime";import{forwardRef as t,useState as n,useRef as i,useEffect as o}from"react";import{Editor as r}from"@tinymce/tinymce-react";import{cva as a}from"class-variance-authority";import{loadTinymce as s}from"../../utils/useLoadTinyMCE.mjs";import{radiusVariants as
|
2
|
+
import{jsx as e}from"react/jsx-runtime";import{forwardRef as t,useState as n,useRef as i,useEffect as o}from"react";import{Editor as r}from"@tinymce/tinymce-react";import{cva as a}from"class-variance-authority";import{loadTinymce as s}from"../../utils/useLoadTinyMCE.mjs";import{radiusVariants as c,scalingVariants as l}from"../../constants.mjs";import{cn as u}from"../../utils/utils.mjs";import{useTheme as m}from"../../theme/ThemeProvider.mjs";import{marked as d}from"marked";import"tinymce/skins/ui/oxide/skin.css";import p from"tinymce/skins/ui/oxide/content.css";import f from"tinymce/skins/content/default/content.css";var g=function(){return g=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},g.apply(this,arguments)},v=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n},y=a("",{variants:{radius:g({},c.base),scaling:g({},l),size:{small:"w-[650px] h-[350px]",medium:"w-[700px] h-[400px]",large:"w-[750px] h-[450px]"}},defaultVariants:{radius:"medium",scaling:"100%",size:"medium"}}),h=t((function(t,a){var c=t.className,l=t.size,h=t.scaling,b=t.radius,x=t.init,k=t.language,w=void 0===k?"en":k,_=t.containerId,O=v(t,["className","size","scaling","radius","init","language","containerId"]),j=n(!1),N=j[0],z=j[1],C=i(null),I=m().theme,S={radius:null!=b?b:I.themeRadius,scaling:null!=h?h:I.themeScaling,size:l},E="8px";return"none"===S.radius&&(E="0px"),"small"===S.radius&&(E="4px"),"large"===S.radius&&(E="12px"),"full"===S.radius&&(E="16px"),o((function(){s().then((function(){z(!0)}))}),[]),o((function(){if(C.current){var e=C.current.getContainer();e&&(e.style.borderRadius="".concat(E))}}),[E]),N?e("div",{className:u(y(S),c),ref:a,children:e(r,g({onInit:function(e,t){return C.current=t},init:g({language:w,width:"100%",height:"100%",promotion:!1,plugins:"preview importcss searchreplace autolink autosave save directionality code visualblocks visualchars fullscreen image link media codesample table charmap pagebreak nonbreaking anchor insertdatetime advlist lists wordcount charmap accordion",menubar:"file edit view insert format tools table",toolbar:"undo redo | accordion accordionremove | blocks fontfamily fontsize | bold italic underline strikethrough | align numlist bullist | link image | table media | lineheight outdent indent| forecolor backcolor removeformat | charmap | code fullscreen preview | save print | pagebreak anchor codesample | ltr rtl",autosave_ask_before_unload:!0,autosave_interval:"30s",autosave_restore_when_empty:!1,autosave_retention:"2m",image_advtab:!0,image_caption:!0,quickbars_selection_toolbar:"",toolbar_mode:"sliding",skin:!1,content_css:!1,content_style:"".concat(p,"\n").concat(f,"\n body { font-family:Noto Sans KR, sans-serif, Nunito Sans, Helvetica Neue, Helvetica }"),setup:function(e){e.on("init",(function(){if(e.formatter.register("code",{inline:"code",remove:"all"}),e.getContainer().style.borderRadius=E,_){var t=document.getElementById(_),n=document.querySelector(".tox-tinymce-aux");t&&n&&t.appendChild(n)}})),e.ui.registry.addButton("inlinecode",{icon:"sourcecode",tooltip:"Inline code",onAction:function(){e.formatter.toggle("code")}}),e.ui.registry.addButton("markdown",{text:"Markdown",onAction:function(){var t=e.getContent({format:"text"}),n=d(t);e.setContent(n)}})}},x)},O))}):null}));h.displayName="Editor";export{h as Editor,h as default};
|
3
3
|
//# sourceMappingURL=index.mjs.map
|
@@ -1,4 +1,3 @@
|
|
1
|
-
/// <reference types="react" />
|
2
1
|
declare const Gnb: {
|
3
2
|
Root: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & import("./GnbRoot").GnbProps & import("react").RefAttributes<HTMLElement>>;
|
4
3
|
Logo: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & import("./GnbLogo").GnbLogoProps & import("react").RefAttributes<HTMLAnchorElement>>;
|
@@ -10,10 +10,9 @@ var __assign = (this && this.__assign) || function () {
|
|
10
10
|
};
|
11
11
|
return __assign.apply(this, arguments);
|
12
12
|
};
|
13
|
-
import { jsx as _jsx, jsxs as _jsxs
|
13
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
14
14
|
import { useState } from 'react';
|
15
15
|
import { flexRender } from '@tanstack/react-table';
|
16
|
-
// import './index.css';
|
17
16
|
import Table from '../Table';
|
18
17
|
import { ChevronDownIcon, ChevronUpIcon } from '@radix-ui/react-icons';
|
19
18
|
import { cn } from '../../../lib/utils/utils';
|
@@ -30,9 +29,9 @@ export var GridVariants = cva("", {
|
|
30
29
|
},
|
31
30
|
});
|
32
31
|
function Grid(_a) {
|
33
|
-
var _b, _c, _d, _e;
|
32
|
+
var _b, _c, _d, _e, _f;
|
34
33
|
var table = _a.table;
|
35
|
-
var
|
34
|
+
var _g = useState(), clicked = _g[0], setClicked = _g[1];
|
36
35
|
return (_jsxs("div", { style: { direction: table.options.columnResizeDirection }, children: [_jsxs(Table.Root, { size: (_b = table.options) === null || _b === void 0 ? void 0 : _b.size, appearance: (_c = table.options) === null || _c === void 0 ? void 0 : _c.appearance, radius: table.options.radius, className: cn("", (_d = table.options) === null || _d === void 0 ? void 0 : _d.tableRootClassName), children: [_jsx(Table.Header, { children: table
|
37
36
|
.getHeaderGroups()
|
38
37
|
.map(function (headerGroup, index) {
|
@@ -65,19 +64,21 @@ function Grid(_a) {
|
|
65
64
|
: '',
|
66
65
|
} })] }, index));
|
67
66
|
}) }, index));
|
68
|
-
}) }), _jsx(Table.Body, { className: "border-b border-b-slateA-5 dark:border-b-slateDarkA-5", children: table.getRowModel().rows.map(function (row, index) { return (_jsx(Table.Row, {
|
69
|
-
if (!table.options.enableRowSelection)
|
70
|
-
setClicked(row.id);
|
71
|
-
}, onDoubleClick: function () {
|
67
|
+
}) }), _jsx(Table.Body, { className: "border-b border-b-slateA-5 dark:border-b-slateDarkA-5", children: table.getRowModel().rows.map(function (row, index) { return (_jsx(Table.Row, { onDoubleClick: function () {
|
72
68
|
return table.options.onRowDoubleClick && table.options.onRowDoubleClick(row);
|
73
|
-
}, className: "hover:bg-slateA-3 dark:hover:bg-slateDarkA-3 ".concat(
|
69
|
+
}, className: "hover:bg-slateA-3 dark:hover:bg-slateDarkA-3 ".concat(clicked === row.id ? 'bg-slateA-3 dark:bg-slateDarkA-3' : ''), children: row.getVisibleCells().map(function (cell, index) {
|
74
70
|
var _a, _b;
|
75
71
|
return (_jsx(Table.Cell, __assign({ style: {
|
76
72
|
width: cell.column.getSize(),
|
77
73
|
borderLeftWidth: index === 0 ? 0 : 1,
|
78
74
|
}, onClick: function () {
|
79
|
-
|
75
|
+
!row.getCanExpand() &&
|
76
|
+
table.options.onRowClick &&
|
77
|
+
table.options.onRowClick(row);
|
78
|
+
if (table.options.enableRowSelection && index === 0)
|
79
|
+
return;
|
80
|
+
setClicked(row.id);
|
80
81
|
} }, cell.column.columnDef.meta, { className: cn('border-l-slateA-5 dark:border-l-slateDarkA-5', (_b = (_a = cell.column.columnDef.meta) === null || _a === void 0 ? void 0 : _a.className) !== null && _b !== void 0 ? _b : ''), children: flexRender(cell.column.columnDef.cell, cell.getContext()) }), index));
|
81
|
-
}) }, index)); }) })] }), ((_e = table.options) === null || _e === void 0 ? void 0 : _e.enableRowPagination) && (
|
82
|
+
}) }, index)); }) })] }), ((_e = table.options) === null || _e === void 0 ? void 0 : _e.enableRowPagination) && ((_f = table.getRowModel().rows) === null || _f === void 0 ? void 0 : _f.length) > 0 && (_jsx("div", { className: "py-[6px]", children: _jsx(NumberingPagination, { table: table }) }))] }));
|
82
83
|
}
|
83
84
|
export default Grid;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
"use client";
|
2
|
-
import{jsxs as e,jsx as o
|
2
|
+
import{jsxs as e,jsx as o}from"react/jsx-runtime";import{useState as t}from"react";import{flexRender as n}from"@tanstack/react-table";import r from"../Table/index.mjs";import{ChevronUpIcon as l,ChevronDownIcon as i}from"@radix-ui/react-icons";import{cn as a}from"../../utils/utils.mjs";import{bgColorStyle as s,radiusVariants as c}from"../../constants.mjs";import{cva as d}from"class-variance-authority";import u from"./NumberingPagination.mjs";var m=function(){return m=Object.assign||function(e){for(var o,t=1,n=arguments.length;t<n;t++)for(var r in o=arguments[t])Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r]);return e},m.apply(this,arguments)},p=d("",{variants:{color:s(),radius:m({},c.large)},defaultVariants:{radius:"medium"}});function g(s){var c,d,g,f,b,h=s.table,v=t(),k=v[0],w=v[1];return e("div",{style:{direction:h.options.columnResizeDirection},children:[e(r.Root,{size:null===(c=h.options)||void 0===c?void 0:c.size,appearance:null===(d=h.options)||void 0===d?void 0:d.appearance,radius:h.options.radius,className:a("",null===(g=h.options)||void 0===g?void 0:g.tableRootClassName),children:[o(r.Header,{children:h.getHeaderGroups().map((function(t,s){return o(r.Row,{children:t.headers.map((function(t,s){var c;return e(r.ColumnHeaderCell,{colSpan:t.colSpan,style:{width:t.getSize(),borderLeftWidth:0===s?0:1},className:"border-l-slateA-5 dark:border-l-slateDarkA-5",children:[t.isPlaceholder?null:e("div",{className:t.column.getCanSort()?"flex cursor-pointer select-none items-center justify-between":"h-full w-full flex-1",onClick:t.column.getToggleSortingHandler(),title:t.column.getCanSort()?"asc"===t.column.getNextSortingOrder()?"Sort ascending":"desc"===t.column.getNextSortingOrder()?"Sort descending":"Clear sort":void 0,children:[n(t.column.columnDef.header,t.getContext()),"asc"==t.column.getIsSorted()?o(l,{}):"desc"==t.column.getIsSorted()?o(i,{}):null]}),o("div",{onDoubleClick:function(){return t.column.resetSize()},onMouseDown:t.getResizeHandler(),onTouchStart:t.getResizeHandler(),className:a("absolute top-0 h-full w-[3px] bg-slateA-3 cursor-col-resize select-none touch-none right-0 opacity-0 hover:opacity-100",h.options.columnResizeDirection,t.column.getIsResizing()?p({color:h.options.color}):""),style:{transform:t.column.getIsResizing()?"translateX(".concat(("rtl"===h.options.columnResizeDirection?-1:1)*(null!==(c=h.getState().columnSizingInfo.deltaOffset)&&void 0!==c?c:0),"px)"):""}})]},s)}))},s)}))}),o(r.Body,{className:"border-b border-b-slateA-5 dark:border-b-slateDarkA-5",children:h.getRowModel().rows.map((function(e,t){return o(r.Row,{onDoubleClick:function(){return h.options.onRowDoubleClick&&h.options.onRowDoubleClick(e)},className:"hover:bg-slateA-3 dark:hover:bg-slateDarkA-3 ".concat(k===e.id?"bg-slateA-3 dark:bg-slateDarkA-3":""),children:e.getVisibleCells().map((function(t,l){var i,s;return o(r.Cell,m({style:{width:t.column.getSize(),borderLeftWidth:0===l?0:1},onClick:function(){!e.getCanExpand()&&h.options.onRowClick&&h.options.onRowClick(e),h.options.enableRowSelection&&0===l||w(e.id)}},t.column.columnDef.meta,{className:a("border-l-slateA-5 dark:border-l-slateDarkA-5",null!==(s=null===(i=t.column.columnDef.meta)||void 0===i?void 0:i.className)&&void 0!==s?s:""),children:n(t.column.columnDef.cell,t.getContext())}),l)}))},t)}))})]}),(null===(f=h.options)||void 0===f?void 0:f.enableRowPagination)&&(null===(b=h.getRowModel().rows)||void 0===b?void 0:b.length)>0&&o("div",{className:"py-[6px]",children:o(u,{table:h})})]})}export{p as GridVariants,g as default};
|
3
3
|
//# sourceMappingURL=index.mjs.map
|
@@ -31,12 +31,14 @@ import { useTheme } from '../../../lib/theme';
|
|
31
31
|
function IndeterminateCheckbox(_a) {
|
32
32
|
var indeterminate = _a.indeterminate, checked = _a.checked, disabled = _a.disabled, onChange = _a.onChange, size = _a.size, color = _a.color, radius = _a.radius;
|
33
33
|
var ref = useRef();
|
34
|
-
React.useEffect(
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
}, [ref, indeterminate]);
|
39
|
-
return (_jsx(Checkbox, { ref: ref, id: "checkbox", checked: checked, disabled: disabled, size: size, onCheckedChange: function (v) { return onChange && onChange({ target: { value: v } }); },
|
34
|
+
// React.useEffect(() => {
|
35
|
+
// if (typeof indeterminate === 'boolean') {
|
36
|
+
// ref.current.indeterminate = checked && indeterminate;
|
37
|
+
// }
|
38
|
+
// }, [ref, indeterminate]);
|
39
|
+
return (_jsx(Checkbox, { ref: ref, id: "checkbox", checked: checked, disabled: disabled, size: size, onCheckedChange: function (v) { return onChange && onChange({ target: { value: v } }); },
|
40
|
+
// indeterminate={indeterminate}
|
41
|
+
className: "mr-0", color: color, radius: radius }));
|
40
42
|
}
|
41
43
|
export var useGrid = function (_a) {
|
42
44
|
var _b, _c, _d, _e;
|
@@ -54,7 +56,9 @@ export var useGrid = function (_a) {
|
|
54
56
|
columnsData[0] = __assign(__assign({}, columnsData[0]), { cell: function (props) {
|
55
57
|
var _a;
|
56
58
|
return (_jsxs("div", { className: "flex cursor-pointer items-center", style: { paddingLeft: "".concat(props.row.depth * 20, "px") }, children: [props.row.getCanExpand() ? (_jsx(IconButton, { appearance: "ghost", size: "small", className: "mr-1 h-3 w-3", color: (_a = props.color) !== null && _a !== void 0 ? _a : theme.themeColor, onClick: props.row.getToggleExpandedHandler(), children: props.row.getIsExpanded() ? _jsx(ChevronDownIcon, {}) : _jsx(ChevronRightIcon, {}) })) : (_jsx("div", { className: "mr-2" })), _jsx("div", { onClick: function () {
|
57
|
-
props.
|
59
|
+
props.row.getCanExpand() &&
|
60
|
+
props.table.options.onRowClick &&
|
61
|
+
props.table.options.onRowClick(props.row);
|
58
62
|
}, className: "w-full", children: firstcell_1 ? firstcell_1(props) : props.getValue() })] }));
|
59
63
|
} });
|
60
64
|
}
|
@@ -62,7 +66,7 @@ export var useGrid = function (_a) {
|
|
62
66
|
columnsData === null || columnsData === void 0 ? void 0 : columnsData.unshift({
|
63
67
|
id: 'index',
|
64
68
|
size: 50,
|
65
|
-
header: function () { return _jsx("div", { className: "flex justify-center", children: "NO" }); },
|
69
|
+
header: function () { return _jsx("div", { className: "flex w-full justify-center", children: "NO" }); },
|
66
70
|
cell: function (_a) {
|
67
71
|
var row = _a.row;
|
68
72
|
return _jsx("div", { className: "flex justify-center", children: row.index + 1 });
|
@@ -76,8 +80,8 @@ export var useGrid = function (_a) {
|
|
76
80
|
header: function (_a) {
|
77
81
|
var _b, _c;
|
78
82
|
var table = _a.table;
|
79
|
-
return (_jsx("div", { className: "flex h-full w-full items-center justify-center px-1", children: _jsx(IndeterminateCheckbox, { checked: table.getIsAllRowsSelected()
|
80
|
-
indeterminate: table.getIsSomeRowsSelected(),
|
83
|
+
return (_jsx("div", { className: "flex h-full w-full items-center justify-center px-1", children: _jsx(IndeterminateCheckbox, { checked: table.getIsAllRowsSelected(),
|
84
|
+
// indeterminate: table.getIsSomeRowsSelected(),
|
81
85
|
onChange: table.getToggleAllRowsSelectedHandler(),
|
82
86
|
size: (props === null || props === void 0 ? void 0 : props.size) == 'x-small' ? 'small' : props === null || props === void 0 ? void 0 : props.size,
|
83
87
|
color: (_b = props.color) !== null && _b !== void 0 ? _b : theme.themeColor,
|
@@ -86,8 +90,8 @@ export var useGrid = function (_a) {
|
|
86
90
|
cell: function (_a) {
|
87
91
|
var _b, _c;
|
88
92
|
var row = _a.row;
|
89
|
-
return (_jsx("div", { className: "flex h-full w-full items-center justify-center px-1", children: _jsx(IndeterminateCheckbox, { checked: row.getIsSelected()
|
90
|
-
indeterminate: row.getIsSomeSelected() && !row.getIsAllSubRowsSelected(),
|
93
|
+
return (_jsx("div", { className: "flex h-full w-full items-center justify-center px-1", children: _jsx(IndeterminateCheckbox, { checked: row.getIsSelected(),
|
94
|
+
// indeterminate: row.getIsSomeSelected() && !row.getIsAllSubRowsSelected(),
|
91
95
|
onChange: row.getToggleSelectedHandler(),
|
92
96
|
size: (props === null || props === void 0 ? void 0 : props.size) == 'x-small' ? 'small' : props === null || props === void 0 ? void 0 : props.size,
|
93
97
|
color: (_b = props.color) !== null && _b !== void 0 ? _b : theme.themeColor,
|
@@ -99,7 +103,7 @@ export var useGrid = function (_a) {
|
|
99
103
|
sorting: sorting,
|
100
104
|
rowSelection: (_c = props.rowSelection) !== null && _c !== void 0 ? _c : defaultRowSelection,
|
101
105
|
expanded: (_d = props.expanded) !== null && _d !== void 0 ? _d : defaultExpanded,
|
102
|
-
} }, props), { data: props.data, columns: columnsData, color: (_e = props.color) !== null && _e !== void 0 ? _e : theme.themeColor, paginateExpandedRows: true, enableExpanding: !!props.enableExpanding, enableMultiRowSelection: !!props.enableRowSelection, enableRowSelection: !!props.enableRowSelection, getSubRows: function (row) { return row.subRows; }, onExpandedChange: function (e) {
|
106
|
+
} }, props), { data: props.data, columns: columnsData, color: (_e = props.color) !== null && _e !== void 0 ? _e : theme.themeColor, paginateExpandedRows: true, enableExpanding: !!props.enableExpanding, enableMultiRowSelection: !!props.enableRowSelection, enableRowSelection: !!props.enableRowSelection, enableSubRowSelection: false, getSubRows: function (row) { return row.subRows; }, onExpandedChange: function (e) {
|
103
107
|
setDefaultExpanded(e);
|
104
108
|
props.onExpandedChange && props.onExpandedChange(e);
|
105
109
|
}, onSortingChange: setSorting, onRowSelectionChange: function (e) {
|
@@ -1,3 +1,3 @@
|
|
1
1
|
"use client";
|
2
|
-
import{jsxs as e,jsx as n}from"react/jsx-runtime";import{createColumnHelper as o,getSortedRowModel as
|
2
|
+
import{jsxs as e,jsx as n}from"react/jsx-runtime";import{createColumnHelper as o,getSortedRowModel as l,getCoreRowModel as t,getExpandedRowModel as r,getPaginationRowModel as a,useReactTable as i}from"@tanstack/react-table";import c,{useRef as d}from"react";import{IconButton as s}from"../IconButton/index.mjs";import{ChevronDownIcon as u,ChevronRightIcon as m}from"@radix-ui/react-icons";import{Checkbox as f}from"../Checkbox/index.mjs";import{useTheme as g}from"../../theme/ThemeProvider.mjs";var p=function(){return p=Object.assign||function(e){for(var n,o=1,l=arguments.length;o<l;o++)for(var t in n=arguments[o])Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t]);return e},p.apply(this,arguments)},h=function(e,n){var o={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&n.indexOf(l)<0&&(o[l]=e[l]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var t=0;for(l=Object.getOwnPropertySymbols(e);t<l.length;t++)n.indexOf(l[t])<0&&Object.prototype.propertyIsEnumerable.call(e,l[t])&&(o[l[t]]=e[l[t]])}return o};function w(e){e.indeterminate;var o=e.checked,l=e.disabled,t=e.onChange,r=e.size,a=e.color,i=e.radius,c=d();return n(f,{ref:c,id:"checkbox",checked:o,disabled:l,size:r,onCheckedChange:function(e){return t&&t({target:{value:e}})},className:"mr-0",color:a,radius:i})}var v=function(d){var f,v,x,b,C=h(d,[]),S=g().theme,R=c.useState([]),y=R[0],j=R[1],E=c.useState({}),O=E[0],k=E[1],z=c.useState({}),N=z[0],P=z[1],I=o(),M=null===(f=null==C?void 0:C.columns)||void 0===f?void 0:f.map((function(e){return I.accessor(e.id,p({},e))}));if(C.enableExpanding){var T=M[0].cell;M[0]=p(p({},M[0]),{cell:function(o){var l;return e("div",{className:"flex cursor-pointer items-center",style:{paddingLeft:"".concat(20*o.row.depth,"px")},children:[o.row.getCanExpand()?n(s,{appearance:"ghost",size:"small",className:"mr-1 h-3 w-3",color:null!==(l=o.color)&&void 0!==l?l:S.themeColor,onClick:o.row.getToggleExpandedHandler(),children:o.row.getIsExpanded()?n(u,{}):n(m,{})}):n("div",{className:"mr-2"}),n("div",{onClick:function(){o.row.getCanExpand()&&o.table.options.onRowClick&&o.table.options.onRowClick(o.row)},className:"w-full",children:T?T(o):o.getValue()})]})}})}C.enableIndexing&&!C.enableExpanding&&(null==M||M.unshift({id:"index",size:50,header:function(){return n("div",{className:"flex w-full justify-center",children:"NO"})},cell:function(e){var o=e.row;return n("div",{className:"flex justify-center",children:o.index+1})}})),C.enableRowSelection&&(null==M||M.unshift({id:"select",size:20,header:function(e){var o,l,t=e.table;return n("div",{className:"flex h-full w-full items-center justify-center px-1",children:n(w,{checked:t.getIsAllRowsSelected(),onChange:t.getToggleAllRowsSelectedHandler(),size:"x-small"==(null==C?void 0:C.size)?"small":null==C?void 0:C.size,color:null!==(o=C.color)&&void 0!==o?o:S.themeColor,radius:null!==(l=C.radius)&&void 0!==l?l:S.themeRadius})})},cell:function(e){var o,l,t=e.row;return n("div",{className:"flex h-full w-full items-center justify-center px-1",children:n(w,{checked:t.getIsSelected(),onChange:t.getToggleSelectedHandler(),size:"x-small"==(null==C?void 0:C.size)?"small":null==C?void 0:C.size,color:null!==(o=C.color)&&void 0!==o?o:S.themeColor,radius:null!==(l=C.radius)&&void 0!==l?l:S.themeRadius})})}}));var H=p(p({state:{sorting:y,rowSelection:null!==(v=C.rowSelection)&&void 0!==v?v:N,expanded:null!==(x=C.expanded)&&void 0!==x?x:O}},C),{data:C.data,columns:M,color:null!==(b=C.color)&&void 0!==b?b:S.themeColor,paginateExpandedRows:!0,enableExpanding:!!C.enableExpanding,enableMultiRowSelection:!!C.enableRowSelection,enableRowSelection:!!C.enableRowSelection,enableSubRowSelection:!1,getSubRows:function(e){return e.subRows},onExpandedChange:function(e){k(e),C.onExpandedChange&&C.onExpandedChange(e)},onSortingChange:j,onRowSelectionChange:function(e){P(e),C.onChangeRowSelection&&C.onChangeRowSelection(e)},getSortedRowModel:l(),getCoreRowModel:t(),getExpandedRowModel:r(),manualPagination:!1});return C.enableRowPagination&&(H.getPaginationRowModel=a()),i(H)};export{v as useGrid};
|
3
3
|
//# sourceMappingURL=useGrid.mjs.map
|