@lotte-innovate/ui-component-test 0.2.71 → 0.2.73
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +8 -9
- package/dist/globals.css +2 -2
- package/dist/lib/Typography/Text/index.mjs +1 -1
- package/dist/lib/color/constants.js +1 -1
- package/dist/lib/color/constants.mjs +1 -1
- package/dist/lib/color/constants.mjs.map +1 -1
- package/dist/lib/color/dark.mjs +2 -0
- package/dist/lib/color/dark.mjs.map +1 -0
- package/dist/lib/color/index.d.ts +5 -0
- package/dist/lib/color/index.js +5 -0
- package/dist/lib/color/krdsColors.mjs +2 -0
- package/dist/lib/color/krdsColors.mjs.map +1 -0
- package/dist/lib/color/light.mjs +1 -1
- package/dist/lib/color/light.mjs.map +1 -1
- package/dist/lib/components/Badge/index.js +3 -3
- package/dist/lib/components/Badge/index.mjs +1 -1
- package/dist/lib/components/Box/index.js +2 -2
- package/dist/lib/components/Box/index.mjs +1 -1
- package/dist/lib/components/Box/index.mjs.map +1 -1
- package/dist/lib/components/Breadcrumb/BreadcrumbLink.js +2 -2
- package/dist/lib/components/Breadcrumb/BreadcrumbLink.mjs +1 -1
- package/dist/lib/components/Breadcrumb/BreadcrumbLink.mjs.map +1 -1
- package/dist/lib/components/Breadcrumb/BreadcrumbPage.js +3 -3
- package/dist/lib/components/Breadcrumb/BreadcrumbPage.mjs +1 -1
- package/dist/lib/components/Breadcrumb/BreadcrumbPage.mjs.map +1 -1
- package/dist/lib/components/Breadcrumb/BreadcrumbRoot.js +2 -2
- package/dist/lib/components/Breadcrumb/BreadcrumbRoot.mjs +1 -1
- package/dist/lib/components/Calendar/index.js +1 -1
- package/dist/lib/components/Calendar/index.mjs +1 -1
- package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.d.ts +1 -1
- package/dist/lib/components/CheckboxGroup/index.d.ts +1 -1
- package/dist/lib/components/Container/index.js +2 -2
- package/dist/lib/components/Container/index.mjs +1 -1
- package/dist/lib/components/Container/index.mjs.map +1 -1
- package/dist/lib/components/Datepicker/index.d.ts +2 -1
- package/dist/lib/components/Datepicker/index.js +5 -3
- package/dist/lib/components/Datepicker/index.mjs +1 -1
- package/dist/lib/components/Dialog/DialogAction.js +1 -1
- package/dist/lib/components/Dialog/DialogAction.mjs +1 -1
- package/dist/lib/components/Dialog/DialogCancel.js +1 -1
- package/dist/lib/components/Dialog/DialogCancel.mjs +1 -1
- package/dist/lib/components/Dialog/DialogContent.js +1 -1
- package/dist/lib/components/Dialog/DialogContent.mjs +1 -1
- package/dist/lib/components/Dialog/DialogRoot.d.ts +4 -3
- package/dist/lib/components/Dialog/DialogTrigger.js +1 -0
- package/dist/lib/components/Dialog/DialogTrigger.mjs +1 -0
- package/dist/lib/components/Dialog/DialogTrigger.mjs.map +1 -1
- package/dist/lib/components/Dialog/index.d.ts +1 -1
- package/dist/lib/components/Dialog/index.js +16 -16
- package/dist/lib/components/Dialog/index.mjs.map +1 -1
- package/dist/lib/components/DoughnutChart/index.d.ts +4 -2
- package/dist/lib/components/DoughnutChart/index.js +1 -1
- package/dist/lib/components/DoughnutChart/index.mjs +1 -1
- package/dist/lib/components/DropdownMenu/DropdownMenuTrigger.js +3 -3
- package/dist/lib/components/DropdownMenu/DropdownMenuTrigger.mjs +1 -1
- package/dist/lib/components/Editor/index.d.ts +0 -1
- package/dist/lib/components/Editor/index.js +105 -28
- package/dist/lib/components/Editor/index.mjs +1 -1
- package/dist/lib/components/Flex/index.js +2 -2
- package/dist/lib/components/Flex/index.mjs +1 -1
- package/dist/lib/components/Flex/index.mjs.map +1 -1
- package/dist/lib/components/Gnb/GnbInfo.js +2 -2
- package/dist/lib/components/Gnb/GnbInfo.mjs +1 -1
- package/dist/lib/components/Gnb/GnbLogo.js +1 -1
- package/dist/lib/components/Gnb/GnbLogo.mjs +1 -1
- package/dist/lib/components/Gnb/GnbLogo.mjs.map +1 -1
- package/dist/lib/components/Gnb/GnbRoot.d.ts +3 -0
- package/dist/lib/components/Gnb/GnbRoot.js +8 -3
- package/dist/lib/components/Gnb/GnbRoot.mjs +1 -1
- package/dist/lib/components/Grid/NumberingPagination.d.ts +1 -1
- package/dist/lib/components/Grid/NumberingPagination.js +61 -18
- package/dist/lib/components/Grid/NumberingPagination.mjs +1 -1
- package/dist/lib/components/Grid/NumberingPagination.mjs.map +1 -1
- package/dist/lib/components/Grid/index.d.ts +2 -2
- package/dist/lib/components/Grid/index.js +58 -40
- package/dist/lib/components/Grid/index.mjs +1 -1
- package/dist/lib/components/Grid/useGrid.js +25 -14
- package/dist/lib/components/Grid/useGrid.mjs +1 -1
- package/dist/lib/components/IconButton/index.js +10 -10
- package/dist/lib/components/IconButton/index.mjs +1 -1
- package/dist/lib/components/LineChart/index.js +11 -1
- package/dist/lib/components/LineChart/index.mjs +1 -1
- package/dist/lib/components/Modal/ModalAction.js +1 -2
- package/dist/lib/components/Modal/ModalAction.mjs +1 -1
- package/dist/lib/components/Modal/ModalCancel.js +1 -2
- package/dist/lib/components/Modal/ModalCancel.mjs +1 -1
- package/dist/lib/components/Modal/ModalContent.js +2 -2
- package/dist/lib/components/Modal/ModalContent.mjs +1 -1
- package/dist/lib/components/Modal/ModalRoot.d.ts +2 -2
- package/dist/lib/components/Modal/ModalTitle.js +1 -1
- package/dist/lib/components/Modal/ModalTitle.mjs +1 -1
- package/dist/lib/components/PieChart/index.d.ts +4 -2
- package/dist/lib/components/PieChart/index.js +1 -1
- package/dist/lib/components/PieChart/index.mjs +1 -1
- package/dist/lib/components/Radio/index.js +3 -2
- package/dist/lib/components/Radio/index.mjs +1 -1
- package/dist/lib/components/RadioCards/RadioCardsRoot.d.ts +3 -1
- package/dist/lib/components/RadioCards/index.d.ts +1 -1
- package/dist/lib/components/SearchBar/index.js +2 -2
- package/dist/lib/components/SearchBar/index.mjs +1 -1
- package/dist/lib/components/Select/index.d.ts +4 -4
- package/dist/lib/components/Select/index.js +2 -2
- package/dist/lib/components/Select/index.mjs +1 -1
- package/dist/lib/components/Separator/index.d.ts +1 -1
- package/dist/lib/components/SideBar/index.d.ts +27 -0
- package/dist/lib/components/SideBar/index.js +17 -4
- package/dist/lib/components/SideBar/index.mjs +1 -1
- package/dist/lib/components/Slider/index.d.ts +1 -1
- package/dist/lib/components/Table/index.d.ts +1 -1
- package/dist/lib/components/Table/index.js +30 -10
- package/dist/lib/components/Table/index.mjs +1 -1
- package/dist/lib/components/Tabs/DynamicTabs.d.ts +4 -2
- package/dist/lib/components/Tabs/DynamicTabs.js +21 -18
- package/dist/lib/components/Tabs/DynamicTabs.mjs +1 -1
- package/dist/lib/components/TextField/index.js +2 -0
- package/dist/lib/components/TextField/index.mjs +1 -1
- package/dist/lib/components/Timeline/TimelineDescription.js +1 -1
- package/dist/lib/components/Timeline/TimelineDescription.mjs +1 -1
- package/dist/lib/components/Timeline/TimelineDescription.mjs.map +1 -1
- package/dist/lib/components/Tree/index.d.ts +1 -0
- package/dist/lib/components/Tree/index.js +22 -1
- package/dist/lib/components/Tree/index.mjs +2 -1
- package/dist/lib/components/Tree/index.mjs.map +1 -1
- package/dist/lib/index.d.ts +1 -0
- package/dist/lib/index.js +1 -0
- package/dist/lib/index.mjs +1 -1
- package/dist/lib/tsconfig.tsbuildinfo +1 -1
- package/dist/lib/types.d.ts +2 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
@@ -1,3 +1,3 @@
|
|
1
1
|
"use client";
|
2
|
-
import{jsx as e}from"react/jsx-runtime";import{ChevronLeftIcon as t,ChevronRightIcon as
|
2
|
+
import{jsx as e}from"react/jsx-runtime";import{ChevronLeftIcon as t,ChevronRightIcon as a}from"@radix-ui/react-icons";import{MAIN_COLOR as r}from"../../color/constants.mjs";import{DayPicker as o}from"react-day-picker";import{cn as s}from"../../utils/utils.mjs";import{useTheme as n}from"../../theme/ThemeProvider.mjs";import i from"../../node_modules/date-fns/esm/locale/ko/index.mjs";var l=function(){return l=Object.assign||function(e){for(var t,a=1,r=arguments.length;a<r;a++)for(var o in t=arguments[a])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},l.apply(this,arguments)},c=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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(a[r[o]]=e[r[o]])}return a},d=function(d){var m,p=d.className,u=d.classNames,f=d.showOutsideDays,b=void 0===f||f,v=d.color,g=c(d,["className","classNames","showOutsideDays","color"]),h=n().theme;return v=null!==(m=null!=v?v:h.themeColor)&&void 0!==m?m:r,e(o,l({locale:i,showOutsideDays:b,className:s("w-[280px] rounded-md p-3 text-slate-12 dark:text-slateDark-12",p),classNames:l({months:"flex flex-row space-y-4 sm:space-x-4 sm:space-y-0 place-content-center",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-semibold",nav:"space-x-1 flex items-center",nav_button:"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 border border-input h-10 px-4 py-2 h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100",nav_button_previous:"absolute left-1 hover:bg-slateA-3 dark:hover:bg-slateDarkA-3",nav_button_next:"absolute right-1 hover:bg-slateA-3 dark:hover:bg-slateDarkA-3",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-slateA-10 dark:text-slateDarkA-10 rounded-md w-9 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:"h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",day:"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 hover:bg-".concat(v,"A-3 dark:hover:bg-").concat(v,"DarkA-3 h-10 px-4 py-2 h-9 w-9 p-0 font-medium aria-selected:opacity-100 aria-selected:bg-").concat(v,"-9 dark:aria-selected:bg-").concat(v,"Dark-9 aria-selected:hover:bg-").concat(v,"-9 dark:aria-selected:hover:bg-").concat(v,"Dark-9"),day_range_end:"day-range-end",day_selected:"bg-".concat(v,"-9 dark:bg-").concat(v,"Dark-9 text-white"),day_today:"bg-".concat(v,"A-3 dark:bg-").concat(v,"DarkA-3"),day_outside:"cursor-default text-slateA-10 dark:text-slateDarkA-10 hover:bg-transparent",day_disabled:"text-slateA-10 dark:text-slateDarkA-10 opacity-50",day_hidden:"invisible"},u),components:{IconLeft:function(a){return c(a,[]),e(t,{className:"h-4 w-4"})},IconRight:function(t){return c(t,[]),e(a,{className:"h-4 w-4"})}}},g))};d.displayName="Calendar";export{d as Calendar,d as default};
|
3
3
|
//# sourceMappingURL=index.mjs.map
|
@@ -17,5 +17,5 @@ export declare const CheckboxGroupHorizontalVariants: (props?: ({
|
|
17
17
|
size?: "small" | "medium" | "large" | null | undefined;
|
18
18
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
19
19
|
export declare const useCheckboxGroupContext: () => CheckboxGroupRootProps;
|
20
|
-
export declare const CheckboxGroupRoot: React.ForwardRefExoticComponent<Omit<CheckboxGroupTheme.RootProps & React.RefAttributes<HTMLDivElement>, "ref"> & CheckboxGroupRootProps & React.RefAttributes<HTMLDivElement>>;
|
20
|
+
export declare const CheckboxGroupRoot: React.ForwardRefExoticComponent<Omit<Omit<CheckboxGroupTheme.RootProps & React.RefAttributes<HTMLDivElement>, "ref">, "color" | "size"> & CheckboxGroupRootProps & React.RefAttributes<HTMLDivElement>>;
|
21
21
|
export default CheckboxGroupRoot;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
declare const CheckboxGroup: {
|
3
|
-
Root: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/themes/dist/cjs/components/checkbox-group").RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("./CheckboxGroupRoot").CheckboxGroupRootProps & import("react").RefAttributes<HTMLDivElement>>;
|
3
|
+
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
4
|
Item: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-checkbox").CheckboxProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("../../../lib/components/Checkbox").CheckboxProps & import("react").RefAttributes<HTMLButtonElement>>;
|
5
5
|
};
|
6
6
|
export default CheckboxGroup;
|
@@ -22,7 +22,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
22
22
|
};
|
23
23
|
import { jsx as _jsx } from "react/jsx-runtime";
|
24
24
|
import { forwardRef } from 'react';
|
25
|
-
import { Container as ContainerTheme
|
25
|
+
import { Container as ContainerTheme } from '@radix-ui/themes';
|
26
26
|
import { cva } from 'class-variance-authority';
|
27
27
|
import { scalingVariants } from '../../../lib/constants';
|
28
28
|
import { useTheme } from '../../../lib/theme';
|
@@ -41,7 +41,7 @@ export var Container = forwardRef(function (_a, ref) {
|
|
41
41
|
var containerStyle = {
|
42
42
|
scaling: scaling !== null && scaling !== void 0 ? scaling : theme.themeScaling,
|
43
43
|
};
|
44
|
-
return (_jsx(
|
44
|
+
return (_jsx(ContainerTheme, __assign({ ref: ref, className: cn(containerVariants(containerStyle), className) }, props, { children: children })));
|
45
45
|
});
|
46
46
|
Container.displayName = 'Container';
|
47
47
|
export default Container;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import{jsx as r}from"react/jsx-runtime";import{forwardRef as t}from"react";import{
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import{forwardRef as t}from"react";import{Container as e}from"@radix-ui/themes";import{cva as a}from"class-variance-authority";import{scalingVariants as n}from"../../constants.mjs";import{useTheme as o}from"../../theme/ThemeProvider.mjs";import{cn as i}from"../../utils/utils.mjs";var s=function(){return s=Object.assign||function(r){for(var t,e=1,a=arguments.length;e<a;e++)for(var n in t=arguments[e])Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r},s.apply(this,arguments)},l=function(r,t){var e={};for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&t.indexOf(a)<0&&(e[a]=r[a]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(a=Object.getOwnPropertySymbols(r);n<a.length;n++)t.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(r,a[n])&&(e[a[n]]=r[a[n]])}return e},c=a("",{variants:{scaling:s({},n)},defaultVariants:{scaling:"100%"}}),m=t((function(t,a){var n=t.children,m=t.className,p=t.scaling,f=l(t,["children","className","scaling"]),u=o().theme,h={scaling:null!=p?p:u.themeScaling};return r(e,s({ref:a,className:i(c(h),m)},f,{children:n}))}));m.displayName="Container";export{m as Container,m as default};
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../lib/components/Container/index.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { forwardRef } from 'react';\nimport { Container as ContainerTheme
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../lib/components/Container/index.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { forwardRef } from 'react';\nimport { Container as ContainerTheme } from '@radix-ui/themes';\nimport { cva } from 'class-variance-authority';\nimport { scalingVariants } from '../../../lib/constants';\nimport { useTheme } from '../../../lib/theme';\nimport { cn } from '../../../lib/utils/utils';\nvar containerVariants = cva(\"\", {\n variants: {\n scaling: __assign({}, scalingVariants),\n },\n defaultVariants: {\n scaling: '100%',\n },\n});\nexport var Container = forwardRef(function (_a, ref) {\n var children = _a.children, className = _a.className, scaling = _a.scaling, props = __rest(_a, [\"children\", \"className\", \"scaling\"]);\n var theme = useTheme().theme;\n var containerStyle = {\n scaling: scaling !== null && scaling !== void 0 ? scaling : theme.themeScaling,\n };\n return (_jsx(ContainerTheme, __assign({ ref: ref, className: cn(containerVariants(containerStyle), className) }, props, { children: children })));\n});\nContainer.displayName = 'Container';\nexport default Container;\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","containerVariants","cva","variants","scaling","scalingVariants","defaultVariants","Container","forwardRef","_a","ref","children","className","props","theme","useTheme","containerStyle","themeScaling","_jsx","ContainerTheme","cn","displayName"],"mappings":"iUAAA,IAAIA,EAAsC,WAStC,OARAA,EAAWC,OAAOC,QAAU,SAASC,GACjC,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KACzDN,EAAEM,GAAKL,EAAEK,IAEjB,OAAON,CACf,EACWH,EAASa,MAAMC,KAAMP,UAChC,EACIQ,EAAkC,SAAUX,EAAGY,GAC/C,IAAIb,EAAI,CAAA,EACR,IAAK,IAAIM,KAAKL,EAAOH,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,IAAMO,EAAEC,QAAQR,GAAK,IAC9EN,EAAEM,GAAKL,EAAEK,IACb,GAAS,MAALL,GAAqD,mBAAjCH,OAAOiB,sBACtB,KAAIb,EAAI,EAAb,IAAgBI,EAAIR,OAAOiB,sBAAsBd,GAAIC,EAAII,EAAED,OAAQH,IAC3DW,EAAEC,QAAQR,EAAEJ,IAAM,GAAKJ,OAAOS,UAAUS,qBAAqBP,KAAKR,EAAGK,EAAEJ,MACvEF,EAAEM,EAAEJ,IAAMD,EAAEK,EAAEJ,IAF4B,CAItD,OAAOF,CACX,EAQIiB,EAAoBC,EAAI,GAAI,CAC5BC,SAAU,CACNC,QAASvB,EAAS,CAAE,EAAEwB,IAE1BC,gBAAiB,CACbF,QAAS,UAGNG,EAAYC,GAAW,SAAUC,EAAIC,GAC5C,IAAIC,EAAWF,EAAGE,SAAUC,EAAYH,EAAGG,UAAWR,EAAUK,EAAGL,QAASS,EAAQjB,EAAOa,EAAI,CAAC,WAAY,YAAa,YACrHK,EAAQC,IAAWD,MACnBE,EAAiB,CACjBZ,QAASA,QAAyCA,EAAUU,EAAMG,cAEtE,OAAQC,EAAKC,EAAgBtC,EAAS,CAAE6B,IAAKA,EAAKE,UAAWQ,EAAGnB,EAAkBe,GAAiBJ,IAAcC,EAAO,CAAEF,SAAUA,IACxI,IACAJ,EAAUc,YAAc"}
|
@@ -7,11 +7,12 @@ export interface DatepickerProps {
|
|
7
7
|
scaling?: IScaling;
|
8
8
|
isOpen?: boolean;
|
9
9
|
setIsOpen?: Dispatch<SetStateAction<boolean>>;
|
10
|
+
placeholder?: string;
|
10
11
|
selected?: Date | DateRange | undefined;
|
11
12
|
onSelect?: any;
|
12
13
|
}
|
13
14
|
export declare const Datepicker: {
|
14
|
-
({ className, classNames, isOpen, setIsOpen, selected, onSelect, showOutsideDays, scaling, color, mode, ...props }: ComponentPropsWithoutRef<typeof DayPicker> & DatepickerProps): import("react/jsx-runtime").JSX.Element;
|
15
|
+
({ className, classNames, isOpen, setIsOpen, selected, onSelect, showOutsideDays, placeholder, scaling, color, mode, ...props }: ComponentPropsWithoutRef<typeof DayPicker> & DatepickerProps): import("react/jsx-runtime").JSX.Element;
|
15
16
|
displayName: string;
|
16
17
|
};
|
17
18
|
export default Datepicker;
|
@@ -23,12 +23,14 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
23
23
|
};
|
24
24
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
25
25
|
import { CalendarIcon } from '@radix-ui/react-icons';
|
26
|
-
import
|
26
|
+
import Button from '../../../lib/components/Button';
|
27
|
+
import Popover from '../../../lib/components/Popover';
|
28
|
+
import Calendar from '../../../lib/components/Calendar';
|
27
29
|
import { cn } from '../../../lib/utils/utils';
|
28
30
|
import { format } from 'date-fns';
|
29
31
|
export var Datepicker = function (_a) {
|
30
|
-
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, scaling = _a.scaling, color = _a.color, mode = _a.mode, props = __rest(_a, ["className", "classNames", "isOpen", "setIsOpen", "selected", "onSelect", "showOutsideDays", "scaling", "color", "mode"]);
|
31
|
-
return mode === 'range' ? (_jsxs(Popover.Root, { open: isOpen, onOpenChange: setIsOpen, scaling: scaling, children: [_jsx(Popover.Trigger, { className: cn('w-[280px]', className), children: _jsxs(Button, { color: color, scaling: scaling, appearance: 'outline', className: cn('justify-start gap-2 text-left font-normal'
|
32
|
+
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, color = _a.color, mode = _a.mode, props = __rest(_a, ["className", "classNames", "isOpen", "setIsOpen", "selected", "onSelect", "showOutsideDays", "placeholder", "scaling", "color", "mode"]);
|
33
|
+
return mode === 'range' ? (_jsxs(Popover.Root, { open: isOpen, onOpenChange: setIsOpen, scaling: scaling, children: [_jsx(Popover.Trigger, { className: cn('w-[280px] text-slateA-9 dark:text-slateDarkA-9', className), children: _jsxs(Button, { color: color, scaling: scaling, appearance: 'outline', 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(_Fragment, { children: [format(selected.from, 'yyyy-MM-dd'), " - ", format(selected.to, 'yyyy-MM-dd')] })) : (format(selected.from, 'yyyy-MM-dd'))) : (placeholder)] }) }), _jsx(Popover.Content, { className: "w-auto max-w-[600px] p-0", align: "start", children: _jsx(Calendar, __assign({ mode: "range", color: color, 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, children: [_jsx(Popover.Trigger, { className: cn('w-[280px] text-slateA-9 dark:text-slateDarkA-9', className), children: _jsxs(Button, { color: color, scaling: scaling, appearance: 'outline', className: cn('justify-start gap-2 text-left font-normal'), children: [_jsx(CalendarIcon, {}), selected ? format(selected, 'yyyy-MM-dd') : placeholder] }) }), _jsx(Popover.Content, { className: "w-auto p-0", children: _jsx(Calendar, __assign({ mode: mode, color: color, selected: selected, onSelect: onSelect, defaultMonth: selected, showOutsideDays: showOutsideDays, className: 'w-full', classNames: classNames }, props)) })] }));
|
32
34
|
};
|
33
35
|
Datepicker.displayName = 'Datepicker';
|
34
36
|
export default Datepicker;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
"use client";
|
2
|
-
import{jsxs as
|
2
|
+
import{jsxs as e,jsx as t,Fragment as a}from"react/jsx-runtime";import{CalendarIcon as o}from"@radix-ui/react-icons";import{Button as r}from"../Button/index.mjs";import s from"../Popover/index.mjs";import{Calendar as l}from"../Calendar/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,o=arguments.length;a<o;a++)for(var r in t=arguments[a])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)},d=function(e,t){var a={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(a[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(a[o[r]]=e[o[r]])}return a},m=function(m){var p=m.className,f=m.classNames,y=m.isOpen,u=m.setIsOpen,h=m.selected,O=m.onSelect,g=m.showOutsideDays,x=void 0===g||g,w=m.placeholder,N=void 0===w?"날짜를 선택해주세요":w,j=m.scaling,v=m.color,M=m.mode,b=d(m,["className","classNames","isOpen","setIsOpen","selected","onSelect","showOutsideDays","placeholder","scaling","color","mode"]);return e(s.Root,"range"===M?{open:y,onOpenChange:u,scaling:j,children:[t(s.Trigger,{className:n("w-[280px] text-slateA-9 dark:text-slateDarkA-9",p),children:e(r,{color:v,scaling:j,appearance:"outline",className:n("justify-start gap-2 text-left font-normal"),children:[t(o,{}),(null==h?void 0:h.from)?h.to?e(a,{children:[c(h.from,"yyyy-MM-dd")," - ",c(h.to,"yyyy-MM-dd")]}):c(h.from,"yyyy-MM-dd"):N]})}),t(s.Content,{className:"w-auto max-w-[600px] p-0",align:"start",children:t(l,i({mode:"range",color:v,selected:h,onSelect:O,numberOfMonths:2,defaultMonth:null==h?void 0:h.from,showOutsideDays:x,className:"w-full",classNames:f},b))})]}:{open:y,onOpenChange:u,scaling:j,children:[t(s.Trigger,{className:n("w-[280px] text-slateA-9 dark:text-slateDarkA-9",p),children:e(r,{color:v,scaling:j,appearance:"outline",className:n("justify-start gap-2 text-left font-normal"),children:[t(o,{}),h?c(h,"yyyy-MM-dd"):N]})}),t(s.Content,{className:"w-auto p-0",children:t(l,i({mode:M,color:v,selected:h,onSelect:O,defaultMonth:h,showOutsideDays:x,className:"w-full",classNames:f},b))})]})};m.displayName="Datepicker";export{m as Datepicker,m as default};
|
3
3
|
//# sourceMappingURL=index.mjs.map
|
@@ -28,8 +28,8 @@ import { cva } from 'class-variance-authority';
|
|
28
28
|
import { primaryColorStyle } from '../../../lib/constants';
|
29
29
|
import { MAIN_COLOR } from '../../../lib/color/constants';
|
30
30
|
import { DialogContext } from './DialogRoot';
|
31
|
+
import Text from '../../../lib/Typography/Text';
|
31
32
|
import { cn } from '../../../lib/utils/utils';
|
32
|
-
import { Text } from '../../../lib';
|
33
33
|
export var dialogActionVariants = cva('rounded-md inline-flex font-medium items-center justify-center px-[15px] hover:cursor-pointer', {
|
34
34
|
variants: {
|
35
35
|
radius: {
|
@@ -1,3 +1,3 @@
|
|
1
1
|
"use client";
|
2
|
-
import{jsx as
|
2
|
+
import{jsx as r}from"react/jsx-runtime";import{forwardRef as e,useContext as t}from"react";import{Dialog as o}from"@radix-ui/themes";import{cva as i}from"class-variance-authority";import{primaryColorStyle as n}from"../../constants.mjs";import{MAIN_COLOR as a}from"../../color/constants.mjs";import{DialogContext as s}from"./DialogRoot.mjs";import{Text as l}from"../../Typography/Text/index.mjs";import{cn as m}from"../../utils/utils.mjs";var p=function(){return p=Object.assign||function(r){for(var e,t=1,o=arguments.length;t<o;t++)for(var i in e=arguments[t])Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i]);return r},p.apply(this,arguments)},c=function(r,e){var t={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&e.indexOf(o)<0&&(t[o]=r[o]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(r);i<o.length;i++)e.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(r,o[i])&&(t[o[i]]=r[o[i]])}return t},u=i("rounded-md inline-flex font-medium items-center justify-center px-[15px] hover:cursor-pointer",{variants:{radius:{none:"rounded-none",small:"rounded-[3px]",medium:"rounded",large:"rounded-md",full:"rounded-full"},size:{small:"text-xs w-[52px] h-[24px] px-2",medium:"text-sm w-[66px] h-[32px] px-3",large:"text-base w-[72px] h-[32px] px-3","x-large":"text-lg w-[86px] h-[40px] px-6"},color:n()},defaultVariants:{radius:"medium",size:"medium",color:a}}),d=e((function(e,i){var n=e.children,a=e.className,d=c(e,["children","className"]),f=t(s),x=f.radius,y=f.size,h=f.color,g=m(u({radius:x,size:y,color:h}),a);return r(o.Close,p({ref:i,className:g},d,{children:"string"==typeof n?r(l,{children:n}):n}))}));d.displayName="Dialog.Action";export{d as DialogAction,u as dialogActionVariants};
|
3
3
|
//# sourceMappingURL=DialogAction.mjs.map
|
@@ -27,7 +27,7 @@ import { Dialog as DialogTheme } from '@radix-ui/themes';
|
|
27
27
|
import { cva } from 'class-variance-authority';
|
28
28
|
import { DialogContext } from './DialogRoot';
|
29
29
|
import { cn } from '../../../lib/utils/utils';
|
30
|
-
import
|
30
|
+
import Text from '../../../lib/Typography/Text';
|
31
31
|
export var dialogCancelVariants = cva("rounded-md font-medium inline-flex justify-center items-center text-slate-11 bg-slate-3 outline-none border-none\n dark:text-slateDark-11 dark:bg-slateDark-3 dark:hover:bg-slateDarkA-4\n active:border-none hover:cursor-pointer hover:bg-slateA-4", {
|
32
32
|
variants: {
|
33
33
|
radius: {
|
@@ -1,3 +1,3 @@
|
|
1
1
|
"use client";
|
2
|
-
import{jsx as
|
2
|
+
import{jsx as e}from"react/jsx-runtime";import{forwardRef as r,useContext as t}from"react";import{Dialog as o}from"@radix-ui/themes";import{cva as n}from"class-variance-authority";import{DialogContext as a}from"./DialogRoot.mjs";import{cn as i}from"../../utils/utils.mjs";import{Text as l}from"../../Typography/Text/index.mjs";var s=function(){return s=Object.assign||function(e){for(var r,t=1,o=arguments.length;t<o;t++)for(var n in r=arguments[t])Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);return e},s.apply(this,arguments)},m=function(e,r){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&r.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)r.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(t[o[n]]=e[o[n]])}return t},p=n("rounded-md font-medium inline-flex justify-center items-center text-slate-11 bg-slate-3 outline-none border-none\n dark:text-slateDark-11 dark:bg-slateDark-3 dark:hover:bg-slateDarkA-4\n active:border-none hover:cursor-pointer hover:bg-slateA-4",{variants:{radius:{none:"rounded-none",small:"rounded-[3px]",medium:"rounded",large:"rounded-md",full:"rounded-full"},size:{small:"text-xs w-[52px] h-[24px] px-2 mr-2",medium:"text-sm w-[66px] h-[32px] px-3 mr-2",large:"text-base w-[72px] h-[32px] px-3 mr-3","x-large":"text-lg w-[86px] h-[40px] px-6 mr-4"}},defaultVariants:{radius:"medium",size:"medium"}}),d=r((function(r,n){var d=r.children,u=r.className,c=m(r,["children","className"]),x=t(a),f=x.radius,h=x.size;return e(o.Close,s({ref:n,className:i(p({radius:f,size:h}),u)},c,{children:"string"==typeof d?e(l,{children:d}):d}))}));d.displayName="Dialog.Cancel";export{d as DialogCancel,p as dialogCancelVariants};
|
3
3
|
//# sourceMappingURL=DialogCancel.mjs.map
|
@@ -53,6 +53,6 @@ export var dialogContentVariants = cva("rounded-md focus:outline-none bg-white d
|
|
53
53
|
export var DialogContent = forwardRef(function (_a, forwardedRef) {
|
54
54
|
var children = _a.children, className = _a.className, props = __rest(_a, ["children", "className"]);
|
55
55
|
var _b = useContext(DialogContext), radius = _b.radius, size = _b.size, scaling = _b.scaling;
|
56
|
-
return (_jsx(DialogTheme.Content, __assign({ ref: forwardedRef, className: cn(dialogContentVariants({ radius: radius, scaling: scaling, size: size }), className) }, props, { children: children })));
|
56
|
+
return (_jsx(DialogTheme.Content, __assign({ ref: forwardedRef, "aria-describedby": undefined, className: cn(dialogContentVariants({ radius: radius, scaling: scaling, size: size }), className) }, props, { children: children })));
|
57
57
|
});
|
58
58
|
DialogContent.displayName = 'Dialog.Content';
|
@@ -1,3 +1,3 @@
|
|
1
1
|
"use client";
|
2
|
-
import{jsx as r}from"react/jsx-runtime";import{forwardRef as e,useContext as t}from"react";import{cva as o}from"class-variance-authority";import{Dialog as n}from"@radix-ui/themes";import{scalingVariants as a}from"../../constants.mjs";import{DialogContext as i}from"./DialogRoot.mjs";import{cn as
|
2
|
+
import{jsx as r}from"react/jsx-runtime";import{forwardRef as e,useContext as t}from"react";import{cva as o}from"class-variance-authority";import{Dialog as n}from"@radix-ui/themes";import{scalingVariants as a}from"../../constants.mjs";import{DialogContext as i}from"./DialogRoot.mjs";import{cn as s}from"../../utils/utils.mjs";var l=function(){return l=Object.assign||function(r){for(var e,t=1,o=arguments.length;t<o;t++)for(var n in e=arguments[t])Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},l.apply(this,arguments)},m=function(r,e){var t={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&e.indexOf(o)<0&&(t[o]=r[o]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(r);n<o.length;n++)e.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(r,o[n])&&(t[o[n]]=r[o[n]])}return t},p=o("rounded-md focus:outline-none bg-white dark:bg-slateDark-1 \n shadow-[hsl(206_22%_7%_/_35%)_0px_10px_38px_-10px,_hsl(206_22%_7%_/_20%)_0px_10px_20px_-15px]",{variants:{radius:{none:"rounded-none",small:"rounded",medium:"rounded-lg",large:"rounded-xl",full:"rounded-xl"},size:{small:"w-[300px]",medium:"w-[400px]",large:"w-[500px]","x-large":"w-[600px]"},scaling:l({},a)},defaultVariants:{radius:"medium",size:"medium"}}),d=e((function(e,o){var a=e.children,d=e.className,u=m(e,["children","className"]),c=t(i),f=c.radius,x=c.size,_=c.scaling;return r(n.Content,l({ref:o,"aria-describedby":void 0,className:s(p({radius:f,scaling:_,size:x}),d)},u,{children:a}))}));d.displayName="Dialog.Content";export{d as DialogContent,p as dialogContentVariants};
|
3
3
|
//# sourceMappingURL=DialogContent.mjs.map
|
@@ -1,12 +1,13 @@
|
|
1
1
|
import React, { ComponentPropsWithoutRef } from 'react';
|
2
|
-
import
|
2
|
+
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
4
4
|
import { dialogContentVariants } from './DialogContent';
|
5
|
+
import { IColor } from '../../../lib/types';
|
5
6
|
export interface DialogProps extends VariantProps<typeof dialogContentVariants> {
|
6
|
-
color?:
|
7
|
+
color?: IColor;
|
7
8
|
}
|
8
9
|
export declare const DialogContext: React.Context<DialogProps>;
|
9
10
|
export declare const DialogRoot: {
|
10
|
-
({ children, radius, size, scaling, color, ...props }: ComponentPropsWithoutRef<typeof
|
11
|
+
({ children, radius, size, scaling, color, ...props }: ComponentPropsWithoutRef<typeof DialogPrimitive.Root> & DialogProps): import("react/jsx-runtime").JSX.Element;
|
11
12
|
displayName: string;
|
12
13
|
};
|
@@ -1,2 +1,3 @@
|
|
1
|
+
"use client";
|
1
2
|
import{jsx as r}from"react/jsx-runtime";import{forwardRef as e}from"react";import{Dialog as t}from"@radix-ui/themes";var n=function(){return n=Object.assign||function(r){for(var e,t=1,n=arguments.length;t<n;t++)for(var o in e=arguments[t])Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o]);return r},n.apply(this,arguments)},o=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(r);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(r,n[o])&&(t[n[o]]=r[n[o]])}return t},a=e((function(e,a){var i=e.children,c=e.className,l=o(e,["children","className"]);return r(t.Trigger,n({ref:a,className:c},l,{children:i}))}));a.displayName="Dialog.Trigger";export{a as DialogTrigger};
|
2
3
|
//# sourceMappingURL=DialogTrigger.mjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DialogTrigger.mjs","sources":[
|
1
|
+
{"version":3,"file":"DialogTrigger.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
declare const Dialog: {
|
3
3
|
Root: {
|
4
|
-
({ children, radius, size, scaling, color, ...props }: import("@radix-ui/
|
4
|
+
({ children, radius, size, scaling, color, ...props }: import("@radix-ui/react-dialog").DialogProps & import("./DialogRoot").DialogProps): import("react/jsx-runtime").JSX.Element;
|
5
5
|
displayName: string;
|
6
6
|
};
|
7
7
|
Trigger: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/themes/dist/cjs/components/dialog").TriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
@@ -1,19 +1,19 @@
|
|
1
|
-
import { DialogRoot } from './DialogRoot';
|
2
|
-
import { DialogTrigger } from './DialogTrigger';
|
3
|
-
import { DialogContent } from './DialogContent';
|
4
|
-
import { DialogTitle } from './DialogTitle';
|
5
|
-
import { DialogDescription } from './DialogDescription';
|
6
|
-
import { DialogSlot } from './DialogSlot';
|
7
|
-
import { DialogCancel } from './DialogCancel';
|
8
|
-
import { DialogAction } from './DialogAction';
|
1
|
+
import { DialogRoot as Root } from './DialogRoot';
|
2
|
+
import { DialogTrigger as Trigger } from './DialogTrigger';
|
3
|
+
import { DialogContent as Content } from './DialogContent';
|
4
|
+
import { DialogTitle as Title } from './DialogTitle';
|
5
|
+
import { DialogDescription as Description } from './DialogDescription';
|
6
|
+
import { DialogSlot as Slot } from './DialogSlot';
|
7
|
+
import { DialogCancel as Cancel } from './DialogCancel';
|
8
|
+
import { DialogAction as Action } from './DialogAction';
|
9
9
|
var Dialog = {
|
10
|
-
Root:
|
11
|
-
Trigger:
|
12
|
-
Content:
|
13
|
-
Title:
|
14
|
-
Description:
|
15
|
-
Slot:
|
16
|
-
Cancel:
|
17
|
-
Action:
|
10
|
+
Root: Root,
|
11
|
+
Trigger: Trigger,
|
12
|
+
Content: Content,
|
13
|
+
Title: Title,
|
14
|
+
Description: Description,
|
15
|
+
Slot: Slot,
|
16
|
+
Cancel: Cancel,
|
17
|
+
Action: Action,
|
18
18
|
};
|
19
19
|
export default Dialog;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../lib/components/Dialog/index.js"],"sourcesContent":["import { DialogRoot } from './DialogRoot';\nimport { DialogTrigger } from './DialogTrigger';\nimport { DialogContent } from './DialogContent';\nimport { DialogTitle } from './DialogTitle';\nimport { DialogDescription } from './DialogDescription';\nimport { DialogSlot } from './DialogSlot';\nimport { DialogCancel } from './DialogCancel';\nimport { DialogAction } from './DialogAction';\nvar Dialog = {\n Root:
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../lib/components/Dialog/index.js"],"sourcesContent":["import { DialogRoot as Root } from './DialogRoot';\nimport { DialogTrigger as Trigger } from './DialogTrigger';\nimport { DialogContent as Content } from './DialogContent';\nimport { DialogTitle as Title } from './DialogTitle';\nimport { DialogDescription as Description } from './DialogDescription';\nimport { DialogSlot as Slot } from './DialogSlot';\nimport { DialogCancel as Cancel } from './DialogCancel';\nimport { DialogAction as Action } from './DialogAction';\nvar Dialog = {\n Root: Root,\n Trigger: Trigger,\n Content: Content,\n Title: Title,\n Description: Description,\n Slot: Slot,\n Cancel: Cancel,\n Action: Action,\n};\nexport default Dialog;\n"],"names":["Dialog","Root","Trigger","Content","Title","Description","Slot","Cancel","Action"],"mappings":"oZAQG,IAACA,EAAS,CACTC,KAAMA,EACNC,QAASA,EACTC,QAASA,EACTC,MAAOA,EACPC,YAAaA,EACbC,KAAMA,EACNC,OAAQA,EACRC,OAAQA"}
|
@@ -7,10 +7,12 @@ export interface DoughnutChartProps extends VariantProps<typeof doughnutVariants
|
|
7
7
|
className?: string;
|
8
8
|
title?: IChartTitle;
|
9
9
|
legend?: IChartLegend;
|
10
|
-
datasets: IChartDatasets
|
10
|
+
datasets: (IChartDatasets & {
|
11
11
|
data: number[];
|
12
|
-
}[];
|
12
|
+
})[];
|
13
13
|
datalabels?: IChartDataLabels;
|
14
|
+
width?: number;
|
15
|
+
height?: number;
|
14
16
|
}
|
15
17
|
declare const doughnutVariants: (props?: ({
|
16
18
|
scaling?: "90%" | "95%" | "100%" | "105%" | "110%" | null | undefined;
|
@@ -52,7 +52,7 @@ var DoughnutChart = function (_a) {
|
|
52
52
|
}
|
53
53
|
};
|
54
54
|
datasets.forEach(function (dataset, index) {
|
55
|
-
datasets[index] = __assign(
|
55
|
+
datasets[index] = __assign({ backgroundColor: getChartColor(isColorMixed, appearance), borderColor: getChartColor(isColorMixed, 'solid') }, dataset);
|
56
56
|
});
|
57
57
|
return (_jsx(Doughnut, __assign({ data: { labels: labels, datasets: datasets }, options: {
|
58
58
|
plugins: {
|
@@ -1,3 +1,3 @@
|
|
1
1
|
"use client";
|
2
|
-
import{jsx as t}from"react/jsx-runtime";import{Doughnut as a}from"react-chartjs-2";import{Chart as r,ArcElement as e,Tooltip as o,Legend as s,plugins as l}from"chart.js/auto";import i from"chartjs-plugin-datalabels";import{cn as n}from"../../utils/utils.mjs";import{cva as c}from"class-variance-authority";import{scalingVariants as p}from"../../constants.mjs";import{chartColorList as d,chartAlphaColorList as m}from"../../color/constants.mjs";var f=function(){return f=Object.assign||function(t){for(var a,r=1,e=arguments.length;r<e;r++)for(var o in a=arguments[r])Object.prototype.hasOwnProperty.call(a,o)&&(t[o]=a[o]);return t},f.apply(this,arguments)},u=function(t,a){var r={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&a.indexOf(e)<0&&(r[e]=t[e]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(e=Object.getOwnPropertySymbols(t);o<e.length;o++)a.indexOf(e[o])<0&&Object.prototype.propertyIsEnumerable.call(t,e[o])&&(r[e[o]]=t[e[o]])}return r};r.register(e,o,s,l,i),r.defaults.set("plugins.datalabels",{display:!1});var g=c("",{variants:{scaling:f({},p)},defaultVariants:{scaling:"100%"}}),b=function(r){var e=r.labels,o=r.title,s=r.legend,l=r.datasets,i=r.datalabels,c=r.scaling,p=r.className,b=r.appearance,y=void 0===b?"solid":b,j=r.isColorMixed,v=void 0===j||j,h=u(r,["labels","title","legend","datasets","datalabels","scaling","className","appearance","isColorMixed"]),O=function(t,a){return"solid"===a?t?d.mixed:d.sorting:"soft"===a?t?m.mixed:m.sorting:void 0};return l.forEach((function(t,a){l[a]=f(
|
2
|
+
import{jsx as t}from"react/jsx-runtime";import{Doughnut as a}from"react-chartjs-2";import{Chart as r,ArcElement as e,Tooltip as o,Legend as s,plugins as l}from"chart.js/auto";import i from"chartjs-plugin-datalabels";import{cn as n}from"../../utils/utils.mjs";import{cva as c}from"class-variance-authority";import{scalingVariants as p}from"../../constants.mjs";import{chartColorList as d,chartAlphaColorList as m}from"../../color/constants.mjs";var f=function(){return f=Object.assign||function(t){for(var a,r=1,e=arguments.length;r<e;r++)for(var o in a=arguments[r])Object.prototype.hasOwnProperty.call(a,o)&&(t[o]=a[o]);return t},f.apply(this,arguments)},u=function(t,a){var r={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&a.indexOf(e)<0&&(r[e]=t[e]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(e=Object.getOwnPropertySymbols(t);o<e.length;o++)a.indexOf(e[o])<0&&Object.prototype.propertyIsEnumerable.call(t,e[o])&&(r[e[o]]=t[e[o]])}return r};r.register(e,o,s,l,i),r.defaults.set("plugins.datalabels",{display:!1});var g=c("",{variants:{scaling:f({},p)},defaultVariants:{scaling:"100%"}}),b=function(r){var e=r.labels,o=r.title,s=r.legend,l=r.datasets,i=r.datalabels,c=r.scaling,p=r.className,b=r.appearance,y=void 0===b?"solid":b,j=r.isColorMixed,v=void 0===j||j,h=u(r,["labels","title","legend","datasets","datalabels","scaling","className","appearance","isColorMixed"]),O=function(t,a){return"solid"===a?t?d.mixed:d.sorting:"soft"===a?t?m.mixed:m.sorting:void 0};return l.forEach((function(t,a){l[a]=f({backgroundColor:O(v,y),borderColor:O(v,"solid")},t)})),t(a,f({data:{labels:e,datasets:l},options:{plugins:{title:o,legend:s,datalabels:i}},className:n(g({scaling:c}),p)},h))};b.displayName="DoughnutChart";export{b as default};
|
3
3
|
//# sourceMappingURL=index.mjs.map
|
@@ -22,7 +22,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
22
22
|
return t;
|
23
23
|
};
|
24
24
|
import { jsx as _jsx } from "react/jsx-runtime";
|
25
|
-
import { forwardRef, useContext } from 'react';
|
25
|
+
import React, { forwardRef, useContext, } from 'react';
|
26
26
|
import { cva } from 'class-variance-authority';
|
27
27
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
28
28
|
import { DropdownMenuContext } from './DropdownMenuRoot';
|
@@ -48,7 +48,7 @@ var dropdownMenuTriggerVariants = cva('', {
|
|
48
48
|
});
|
49
49
|
export var DropdownMenuTrigger = forwardRef(function (_a, ref) {
|
50
50
|
var className = _a.className, children = _a.children, props = __rest(_a, ["className", "children"]);
|
51
|
-
var _b = useContext(DropdownMenuContext), radius = _b.radius, size = _b.size;
|
52
|
-
return (_jsx(DropdownMenuPrimitive.Trigger, __assign({ asChild: true, ref: ref, className: cn(dropdownMenuTriggerVariants({ radius: radius, size: size }), className) }, props, { children: children })));
|
51
|
+
var _b = useContext(DropdownMenuContext), radius = _b.radius, size = _b.size, color = _b.color;
|
52
|
+
return (_jsx(DropdownMenuPrimitive.Trigger, __assign({ asChild: true, ref: ref, className: cn(dropdownMenuTriggerVariants({ radius: radius, size: size }), className) }, props, { children: React.isValidElement(children) ? React.cloneElement(children, { color: color }) : children })));
|
53
53
|
});
|
54
54
|
DropdownMenuTrigger.displayName = 'DropdownMenu.Trigger';
|
@@ -1,3 +1,3 @@
|
|
1
1
|
"use client";
|
2
|
-
import{jsx as r}from"react/jsx-runtime";import{forwardRef as
|
2
|
+
import{jsx as r}from"react/jsx-runtime";import e,{forwardRef as o,useContext as t}from"react";import{cva as n}from"class-variance-authority";import*as a from"@radix-ui/react-dropdown-menu";import{DropdownMenuContext as i}from"./DropdownMenuRoot.mjs";import{cn as l}from"../../utils/utils.mjs";var s=function(){return s=Object.assign||function(r){for(var e,o=1,t=arguments.length;o<t;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},s.apply(this,arguments)},m=function(r,e){var o={};for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&e.indexOf(t)<0&&(o[t]=r[t]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(r);n<t.length;n++)e.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(r,t[n])&&(o[t[n]]=r[t[n]])}return o},d=n("",{variants:{radius:{none:"rounded-none",small:"rounded-[3px]",medium:"rounded",large:"rounded-md",full:"rounded-md"},size:{small:"h-6 gap-1 px-2 text-xs",medium:"h-8 gap-2 px-3 text-sm"}},defaultVariants:{radius:"medium",size:"medium"}}),u=o((function(o,n){var u=o.className,p=o.children,c=m(o,["className","children"]),f=t(i),y=f.radius,g=f.size,h=f.color;return r(a.Trigger,s({asChild:!0,ref:n,className:l(d({radius:y,size:g}),u)},c,{children:e.isValidElement(p)?e.cloneElement(p,{color:h}):p}))}));u.displayName="DropdownMenu.Trigger";export{u as DropdownMenuTrigger};
|
3
3
|
//# sourceMappingURL=DropdownMenuTrigger.mjs.map
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { IAllProps } from '@tinymce/tinymce-react';
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
4
|
-
import 'tinymce/skins/ui/oxide/skin.css';
|
5
4
|
export interface EditorProps extends VariantProps<typeof editorVariants> {
|
6
5
|
language?: 'ko_KR' | 'zh_CN' | 'ja' | 'it' | 'vi';
|
7
6
|
}
|