@lotte-innovate/ui-component-test 0.1.112 → 0.1.113
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/globals.css +3 -3
- package/dist/lib/Typography/Header/index.d.ts +1 -1
- package/dist/lib/Typography/Header/index.js +2 -2
- package/dist/lib/Typography/Text/index.d.ts +1 -1
- package/dist/lib/Typography/Text/index.js +2 -2
- package/dist/lib/components/Accordion/index.d.ts +1 -1
- package/dist/lib/components/Accordion/index.js +4 -4
- package/dist/lib/components/AlertDialog/AlertDialogAction.d.ts +1 -1
- package/dist/lib/components/AlertDialog/AlertDialogAction.js +3 -3
- package/dist/lib/components/AlertDialog/AlertDialogCancel.d.ts +1 -1
- package/dist/lib/components/AlertDialog/AlertDialogCancel.js +2 -2
- package/dist/lib/components/AlertDialog/AlertDialogContent.js +2 -2
- package/dist/lib/components/AlertDialog/AlertDialogDescription.js +1 -1
- package/dist/lib/components/AlertDialog/AlertDialogRoot.d.ts +1 -1
- package/dist/lib/components/AlertDialog/AlertDialogRoot.js +2 -2
- package/dist/lib/components/AlertDialog/AlertDialogTitle.js +1 -1
- package/dist/lib/components/AlertDialog/AlertDialogTrigger.d.ts +1 -1
- package/dist/lib/components/AlertDialog/AlertDialogTrigger.js +4 -4
- package/dist/lib/components/AspectRatio/index.js +3 -3
- package/dist/lib/components/Avatar/index.js +4 -4
- package/dist/lib/components/Badge/index.d.ts +1 -1
- package/dist/lib/components/Badge/index.js +4 -4
- package/dist/lib/components/BarChart/index.d.ts +1 -1
- package/dist/lib/components/BarChart/index.js +4 -4
- package/dist/lib/components/BarChart/index.mjs.map +1 -1
- package/dist/lib/components/Breadcrumb/BreadcrumbEllipsis.js +1 -1
- package/dist/lib/components/Breadcrumb/BreadcrumbEllipsis.mjs.map +1 -1
- package/dist/lib/components/Breadcrumb/BreadcrumbItem.js +1 -1
- package/dist/lib/components/Breadcrumb/BreadcrumbItem.mjs.map +1 -1
- package/dist/lib/components/Breadcrumb/BreadcrumbLink.js +1 -1
- package/dist/lib/components/Breadcrumb/BreadcrumbLink.mjs.map +1 -1
- package/dist/lib/components/Breadcrumb/BreadcrumbList.js +1 -1
- package/dist/lib/components/Breadcrumb/BreadcrumbList.mjs.map +1 -1
- package/dist/lib/components/Breadcrumb/BreadcrumbPage.js +1 -1
- package/dist/lib/components/Breadcrumb/BreadcrumbPage.mjs.map +1 -1
- package/dist/lib/components/Breadcrumb/BreadcrumbRoot.js +3 -3
- package/dist/lib/components/Breadcrumb/BreadcrumbSeparator.js +1 -1
- package/dist/lib/components/Breadcrumb/BreadcrumbSeparator.mjs.map +1 -1
- package/dist/lib/components/BubbleChart/index.d.ts +1 -1
- package/dist/lib/components/BubbleChart/index.js +4 -4
- package/dist/lib/components/BubbleChart/index.mjs.map +1 -1
- package/dist/lib/components/Button/index.d.ts +1 -1
- package/dist/lib/components/Button/index.js +4 -4
- package/dist/lib/components/Callout/CalloutIcon.js +2 -2
- package/dist/lib/components/Callout/CalloutRoot.d.ts +1 -1
- package/dist/lib/components/Callout/CalloutRoot.js +3 -3
- package/dist/lib/components/Callout/CalloutText.js +1 -1
- package/dist/lib/components/Card/index.d.ts +1 -1
- package/dist/lib/components/Card/index.js +3 -3
- package/dist/lib/components/Checkbox/index.d.ts +1 -1
- package/dist/lib/components/Checkbox/index.js +4 -4
- package/dist/lib/components/CheckboxCard/index.d.ts +2 -2
- package/dist/lib/components/CheckboxCard/index.js +5 -5
- package/dist/lib/components/CheckboxGroup/CheckboxGroupItem.d.ts +1 -1
- package/dist/lib/components/CheckboxGroup/CheckboxGroupItem.js +1 -1
- package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.d.ts +2 -2
- package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.js +3 -3
- package/dist/lib/components/Collapsible/index.d.ts +1 -1
- package/dist/lib/components/Collapsible/index.js +4 -4
- package/dist/lib/components/ContextMenu/ContextMenuCheckboxItem.js +2 -2
- package/dist/lib/components/ContextMenu/ContextMenuContent.js +2 -2
- package/dist/lib/components/ContextMenu/ContextMenuItem.js +3 -3
- package/dist/lib/components/ContextMenu/ContextMenuItemIndicator.js +2 -2
- package/dist/lib/components/ContextMenu/ContextMenuLabel.js +2 -2
- package/dist/lib/components/ContextMenu/ContextMenuRadioItem.js +2 -2
- package/dist/lib/components/ContextMenu/ContextMenuRoot.d.ts +1 -1
- package/dist/lib/components/ContextMenu/ContextMenuRoot.js +2 -2
- package/dist/lib/components/ContextMenu/ContextMenuSeparator.js +1 -1
- package/dist/lib/components/ContextMenu/ContextMenuSeparator.mjs.map +1 -1
- package/dist/lib/components/ContextMenu/ContextMenuSubContent.js +2 -2
- package/dist/lib/components/ContextMenu/ContextMenuSubTrigger.js +3 -3
- package/dist/lib/components/ContextMenu/ContextMenuTrigger.js +1 -1
- package/dist/lib/components/ContextMenu/ContextMenuTrigger.mjs.map +1 -1
- package/dist/lib/components/DataList/DataListItem.js +2 -2
- package/dist/lib/components/DataList/DataListLabel.js +2 -2
- package/dist/lib/components/DataList/DataListRoot.js +2 -2
- package/dist/lib/components/DataList/DataListValue.js +2 -2
- package/dist/lib/components/Dialog/DialogAction.js +3 -3
- package/dist/lib/components/Dialog/DialogCancel.js +1 -1
- package/dist/lib/components/Dialog/DialogContent.js +2 -2
- package/dist/lib/components/Dialog/DialogDescription.js +1 -1
- package/dist/lib/components/Dialog/DialogRoot.js +2 -2
- package/dist/lib/components/Dialog/DialogSlot.js +1 -1
- package/dist/lib/components/Dialog/DialogTitle.js +1 -1
- package/dist/lib/components/DoughnutChart/index.d.ts +1 -1
- package/dist/lib/components/DoughnutChart/index.js +3 -3
- package/dist/lib/components/DoughnutChart/index.mjs.map +1 -1
- package/dist/lib/components/DropdownMenu/DropdonMenuSubContent.js +2 -2
- package/dist/lib/components/DropdownMenu/DropdownMenuCheckboxItem.js +2 -2
- package/dist/lib/components/DropdownMenu/DropdownMenuContent.js +2 -2
- package/dist/lib/components/DropdownMenu/DropdownMenuItem.d.ts +1 -1
- package/dist/lib/components/DropdownMenu/DropdownMenuItem.js +3 -3
- package/dist/lib/components/DropdownMenu/DropdownMenuItemIndicator.js +2 -2
- package/dist/lib/components/DropdownMenu/DropdownMenuLable.js +1 -1
- package/dist/lib/components/DropdownMenu/DropdownMenuRadioItem.js +2 -2
- package/dist/lib/components/DropdownMenu/DropdownMenuRoot.d.ts +1 -1
- package/dist/lib/components/DropdownMenu/DropdownMenuRoot.js +2 -2
- package/dist/lib/components/DropdownMenu/DropdownMenuSeparator.js +1 -1
- package/dist/lib/components/DropdownMenu/DropdownMenuSeparator.mjs.map +1 -1
- package/dist/lib/components/DropdownMenu/DropdownMenuSubTrigger.js +3 -3
- package/dist/lib/components/DropdownMenu/DropdownMenuTrigger.d.ts +1 -1
- package/dist/lib/components/DropdownMenu/DropdownMenuTrigger.js +1 -1
- package/dist/lib/components/Editor/index copy.js +2 -2
- package/dist/lib/components/Editor/index.js +21 -5
- package/dist/lib/components/Editor/index.mjs +1 -1
- package/dist/lib/components/Footer/index.js +3 -3
- package/dist/lib/components/Gnb/GnbInfo.js +1 -1
- package/dist/lib/components/Gnb/GnbLogo.js +2 -2
- package/dist/lib/components/Gnb/GnbMenu.d.ts +1 -1
- package/dist/lib/components/Gnb/GnbMenu.js +1 -1
- package/dist/lib/components/Gnb/GnbRoot.js +3 -3
- package/dist/lib/components/Grid/index.js +2 -2
- package/dist/lib/components/HoverCard/HoverCardContent.js +2 -2
- package/dist/lib/components/HoverCard/HoverCardRoot.js +2 -2
- package/dist/lib/components/IconButton/index.d.ts +1 -1
- package/dist/lib/components/IconButton/index.js +4 -4
- package/dist/lib/components/Inset/index.js +3 -3
- package/dist/lib/components/Label/index.d.ts +1 -1
- package/dist/lib/components/Label/index.js +3 -3
- package/dist/lib/components/LineChart/index.d.ts +1 -1
- package/dist/lib/components/LineChart/index.js +4 -4
- package/dist/lib/components/LineChart/index.mjs.map +1 -1
- package/dist/lib/components/Menubar/MenubarCheckboxItem.js +3 -3
- package/dist/lib/components/Menubar/MenubarContent.js +2 -2
- package/dist/lib/components/Menubar/MenubarItem.js +3 -3
- package/dist/lib/components/Menubar/MenubarItemIndicator.js +2 -2
- package/dist/lib/components/Menubar/MenubarRadioItem.js +3 -3
- package/dist/lib/components/Menubar/MenubarRoot.d.ts +1 -1
- package/dist/lib/components/Menubar/MenubarRoot.js +4 -4
- package/dist/lib/components/Menubar/MenubarSeparator.js +1 -1
- package/dist/lib/components/Menubar/MenubarSeparator.mjs.map +1 -1
- package/dist/lib/components/Menubar/MenubarSubContent.js +2 -2
- package/dist/lib/components/Menubar/MenubarSubTrigger.js +3 -3
- package/dist/lib/components/Menubar/MenubarTrigger.js +2 -2
- package/dist/lib/components/NavigationMenu/NavigationMenuContent.js +2 -2
- package/dist/lib/components/NavigationMenu/NavigationMenuIndicator.js +1 -1
- package/dist/lib/components/NavigationMenu/NavigationMenuIndicator.mjs.map +1 -1
- package/dist/lib/components/NavigationMenu/NavigationMenuLink.js +3 -3
- package/dist/lib/components/NavigationMenu/NavigationMenuList.js +3 -3
- package/dist/lib/components/NavigationMenu/NavigationMenuRoot.d.ts +1 -1
- package/dist/lib/components/NavigationMenu/NavigationMenuRoot.js +3 -3
- package/dist/lib/components/NavigationMenu/NavigationMenuTrigger.js +3 -3
- package/dist/lib/components/NavigationMenu/NavigationMenuViewport.js +2 -2
- package/dist/lib/components/PieChart/index.d.ts +1 -1
- package/dist/lib/components/PieChart/index.js +3 -3
- package/dist/lib/components/PieChart/index.mjs.map +1 -1
- package/dist/lib/components/Popover/PopoverClose.js +1 -1
- package/dist/lib/components/Popover/PopoverContent.d.ts +1 -1
- package/dist/lib/components/Popover/PopoverContent.js +2 -2
- package/dist/lib/components/Popover/PopoverRoot.js +1 -1
- package/dist/lib/components/Progress/index.js +4 -4
- package/dist/lib/components/RadarChart/index.d.ts +1 -1
- package/dist/lib/components/RadarChart/index.js +4 -4
- package/dist/lib/components/RadarChart/index.mjs.map +1 -1
- package/dist/lib/components/Radio/index.d.ts +1 -1
- package/dist/lib/components/Radio/index.js +4 -4
- package/dist/lib/components/RadioCards/RadioCardsItem.js +1 -1
- package/dist/lib/components/RadioCards/RadioCardsRoot.js +4 -4
- package/dist/lib/components/RadioGroup/RadioGroupItem.js +1 -1
- package/dist/lib/components/RadioGroup/RadioGroupRoot.d.ts +1 -1
- package/dist/lib/components/RadioGroup/RadioGroupRoot.js +3 -3
- package/dist/lib/components/ScrollArea/index.js +1 -1
- package/dist/lib/components/SegmentedControl/SegmentedControlItem.js +1 -1
- package/dist/lib/components/SegmentedControl/SegmentedControlItem.mjs.map +1 -1
- package/dist/lib/components/SegmentedControl/SegmentedControlRoot.d.ts +1 -1
- package/dist/lib/components/SegmentedControl/SegmentedControlRoot.js +3 -3
- package/dist/lib/components/Select/index.d.ts +1 -1
- package/dist/lib/components/Select/index.js +4 -4
- package/dist/lib/components/Separator/index.js +3 -3
- package/dist/lib/components/Skeleton/index.d.ts +1 -1
- package/dist/lib/components/Skeleton/index.js +3 -3
- package/dist/lib/components/Slider/index.d.ts +1 -1
- package/dist/lib/components/Slider/index.js +4 -4
- package/dist/lib/components/Spinner/index.d.ts +1 -1
- package/dist/lib/components/Spinner/index.js +3 -3
- package/dist/lib/components/TabNav/index.js +3 -3
- package/dist/lib/components/Table/index.d.ts +1 -1
- package/dist/lib/components/Table/index.js +3 -3
- package/dist/lib/components/Tabs/index.d.ts +1 -1
- package/dist/lib/components/Tabs/index.js +4 -4
- package/dist/lib/components/TextArea/index.d.ts +1 -1
- package/dist/lib/components/TextArea/index.js +4 -4
- package/dist/lib/components/TextField/index.d.ts +1 -1
- package/dist/lib/components/TextField/index.js +4 -4
- package/dist/lib/components/Timeline/TimelineConnector.js +1 -1
- package/dist/lib/components/Timeline/TimelineContent.js +1 -1
- package/dist/lib/components/Timeline/TimelineDescription.js +1 -1
- package/dist/lib/components/Timeline/TimelineHeader.js +1 -1
- package/dist/lib/components/Timeline/TimelineIcon.js +2 -2
- package/dist/lib/components/Timeline/TimelineItem.js +1 -1
- package/dist/lib/components/Timeline/TimelineRoot.js +2 -2
- package/dist/lib/components/Timeline/TimelineTime.js +1 -1
- package/dist/lib/components/Timeline/TimelineTitle.js +1 -1
- package/dist/lib/components/Toast/ToastActionButton.d.ts +1 -1
- package/dist/lib/components/Toast/ToastActionButton.js +5 -5
- package/dist/lib/components/Toast/ToastDescription.d.ts +1 -1
- package/dist/lib/components/Toast/ToastDescription.js +1 -1
- package/dist/lib/components/Toast/ToastRoot.js +3 -3
- package/dist/lib/components/Toast/ToastTitle.d.ts +1 -1
- package/dist/lib/components/Toast/ToastTitle.js +1 -1
- package/dist/lib/components/Toggle/ToggleWithText.d.ts +1 -1
- package/dist/lib/components/Toggle/ToggleWithText.js +5 -5
- package/dist/lib/components/Toggle/index.d.ts +1 -1
- package/dist/lib/components/Toggle/index.js +4 -4
- package/dist/lib/components/ToggleGroup/ToggleGroupItem.d.ts +1 -1
- package/dist/lib/components/ToggleGroup/ToggleGroupItem.js +2 -2
- package/dist/lib/components/ToggleGroup/ToggleGroupRoot.d.ts +1 -1
- package/dist/lib/components/ToggleGroup/ToggleGroupRoot.js +4 -4
- package/dist/lib/components/ToggleSwitch/index.js +5 -5
- package/dist/lib/components/Tooltip/index.d.ts +1 -1
- package/dist/lib/components/Tooltip/index.js +3 -3
- package/dist/lib/constants.js +1 -1
- package/dist/lib/constants.mjs.map +1 -1
- package/dist/lib/theme/ThemeProvider.d.ts +1 -1
- package/dist/lib/utils/useDarkMode.js +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -1
@@ -1,6 +1,6 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { VariantProps } from 'class-variance-authority';
|
3
|
-
import { IAppearance, IColor } from '
|
3
|
+
import { IAppearance, IColor } from '../../types';
|
4
4
|
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
5
5
|
color?: IColor;
|
6
6
|
appearance?: IAppearance;
|
@@ -24,10 +24,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
24
24
|
import { jsx as _jsx } from "react/jsx-runtime";
|
25
25
|
import { forwardRef } from 'react';
|
26
26
|
import { cva } from 'class-variance-authority';
|
27
|
-
import { cn } from '
|
28
|
-
import { radiusVariants, weightVariants, primaryColorStyle, appearanceStyle, scalingVariants, } from '
|
29
|
-
import { useTheme } from '
|
30
|
-
import { MAIN_COLOR } from '
|
27
|
+
import { cn } from '../../utils/utils';
|
28
|
+
import { radiusVariants, weightVariants, primaryColorStyle, appearanceStyle, scalingVariants, } from '../../constants';
|
29
|
+
import { useTheme } from '../../theme';
|
30
|
+
import { MAIN_COLOR } from '../../color/constants';
|
31
31
|
var buttonVariants = cva("inline-flex items-center w-fit transition-colors focus:outline-none hover:cursor-pointer\n disabled:cursor-not-allowed disabled:bg-slate-3 disabled:text-slate-8 justify-center", {
|
32
32
|
variants: {
|
33
33
|
radius: __assign({}, radiusVariants['base']),
|
@@ -26,8 +26,8 @@ import { forwardRef } from 'react';
|
|
26
26
|
import { Callout as CalloutTheme } from '@radix-ui/themes';
|
27
27
|
import { cva } from 'class-variance-authority';
|
28
28
|
import { ExclamationTriangleIcon, InfoCircledIcon, LockClosedIcon, CheckCircledIcon, } from '@radix-ui/react-icons';
|
29
|
-
import { scalingVariants } from '
|
30
|
-
import { cn } from '
|
29
|
+
import { scalingVariants } from '../../constants';
|
30
|
+
import { cn } from '../../utils/utils';
|
31
31
|
import { useCalloutContext } from './CalloutRoot';
|
32
32
|
var calloutIconVariants = cva('flex items-center text-slate-12 dark:text-slateDark-12', {
|
33
33
|
variants: {
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { VariantProps } from 'class-variance-authority';
|
3
3
|
import { calloutTextVariants } from './CalloutText';
|
4
|
-
import { IAppearance } from '
|
4
|
+
import { IAppearance } from '../../types';
|
5
5
|
export interface CalloutProps extends VariantProps<typeof calloutVariants>, VariantProps<typeof calloutTextVariants> {
|
6
6
|
contentText?: string;
|
7
7
|
appearance?: Exclude<IAppearance, 'classic' | 'ghost' | 'solid'>;
|
@@ -25,9 +25,9 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
25
25
|
import { forwardRef, createContext, useContext, } from 'react';
|
26
26
|
import { Callout as CalloutTheme } from '@radix-ui/themes';
|
27
27
|
import { cva } from 'class-variance-authority';
|
28
|
-
import { cn } from '
|
29
|
-
import { appearanceStyle, radiusVariants, scalingVariants } from '
|
30
|
-
import { useTheme } from '
|
28
|
+
import { cn } from '../../utils/utils';
|
29
|
+
import { appearanceStyle, radiusVariants, scalingVariants } from '../../constants';
|
30
|
+
import { useTheme } from '../../theme';
|
31
31
|
var calloutVariants = cva('flex w-fit max-w-[600px]', {
|
32
32
|
variants: {
|
33
33
|
radius: __assign({}, radiusVariants['large']),
|
@@ -24,7 +24,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
24
24
|
import { jsx as _jsx } from "react/jsx-runtime";
|
25
25
|
import { forwardRef } from 'react';
|
26
26
|
import { cva } from 'class-variance-authority';
|
27
|
-
import { cn } from '
|
27
|
+
import { cn } from '../../utils/utils';
|
28
28
|
import { useCalloutContext } from './CalloutRoot';
|
29
29
|
export var calloutTextVariants = cva('break-words font-normal text-slate-12 dark:text-slateDark-12', {
|
30
30
|
variants: {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { VariantProps } from 'class-variance-authority';
|
3
|
-
import { IAppearance } from '
|
3
|
+
import { IAppearance } from '../../types';
|
4
4
|
export interface CardProps extends VariantProps<typeof cardVariants> {
|
5
5
|
appearance?: Exclude<IAppearance, 'solid' | 'outline'>;
|
6
6
|
}
|
@@ -24,9 +24,9 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
24
24
|
import { jsx as _jsx } from "react/jsx-runtime";
|
25
25
|
import { forwardRef } from 'react';
|
26
26
|
import { cva } from 'class-variance-authority';
|
27
|
-
import { scalingVariants, weightVariants } from '
|
28
|
-
import { cn } from '
|
29
|
-
import { useTheme } from '
|
27
|
+
import { scalingVariants, weightVariants } from '../../constants';
|
28
|
+
import { cn } from '../../utils/utils';
|
29
|
+
import { useTheme } from '../../theme';
|
30
30
|
var cardVariants = cva("border border-slate-6 flex items-center text-slate-12\n dark:border-slateDarkA-6 dark:text-slateDarkA-12\n ", {
|
31
31
|
variants: {
|
32
32
|
radius: {
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { VariantProps } from 'class-variance-authority';
|
3
3
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
4
|
-
import { IAppearance, IColor } from '
|
4
|
+
import { IAppearance, IColor } from '../../types';
|
5
5
|
export interface CheckboxProps extends VariantProps<typeof CheckboxVariants> {
|
6
6
|
id: string;
|
7
7
|
color?: IColor;
|
@@ -26,10 +26,10 @@ import { forwardRef } from 'react';
|
|
26
26
|
import { cva } from 'class-variance-authority';
|
27
27
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
28
28
|
import { CheckIcon, MinusIcon } from '@radix-ui/react-icons';
|
29
|
-
import { Label } from '
|
30
|
-
import { cn } from '
|
31
|
-
import { checkboxAppearanceStyle, radiusVariants, scalingVariants, textColorStyle, } from '
|
32
|
-
import { useTheme } from '
|
29
|
+
import { Label } from '../../components/Label';
|
30
|
+
import { cn } from '../../utils/utils';
|
31
|
+
import { checkboxAppearanceStyle, radiusVariants, scalingVariants, textColorStyle, } from '../../constants';
|
32
|
+
import { useTheme } from '../../theme';
|
33
33
|
export var CheckboxVariants = cva("peer ring-offset-background", {
|
34
34
|
variants: {
|
35
35
|
size: {
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
4
|
-
import { IColor, IRadius, IScaling } from '
|
5
|
-
import { CheckboxVariants } from '
|
4
|
+
import { IColor, IRadius, IScaling } from '../../types';
|
5
|
+
import { CheckboxVariants } from '../../components/Checkbox';
|
6
6
|
export interface CheckboxCardProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof CheckboxVariants> {
|
7
7
|
id: string;
|
8
8
|
scaling?: IScaling;
|
@@ -24,11 +24,11 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
24
24
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
25
25
|
import { forwardRef } from 'react';
|
26
26
|
import { cva } from 'class-variance-authority';
|
27
|
-
import Checkbox from '
|
28
|
-
import { Label } from '
|
29
|
-
import { cn } from '
|
30
|
-
import { scalingVariants } from '
|
31
|
-
import { useTheme } from '
|
27
|
+
import Checkbox from '../../components/Checkbox';
|
28
|
+
import { Label } from '../../components/Label';
|
29
|
+
import { cn } from '../../utils/utils';
|
30
|
+
import { scalingVariants } from '../../constants';
|
31
|
+
import { useTheme } from '../../theme';
|
32
32
|
export var CheckboxCardVariants = cva("flex justify-between space-x-2 w-fit min-w-[200px] border border-slate-7 text-slate-12\n hover:border-slate-8 hover:cursor-pointer aria-disabled:bg-slate-3 aria-disabled:cursor-not-allowed aria-disabled:text-slateA-9\n dark:border-slateDark-6 dark:text-slateDark-12 dark:hover:border-slateDark-7\n dark:aria-disabled:bg-slateDark-3 dark:aria-disabled:text-slateDarkA-8", {
|
33
33
|
variants: {
|
34
34
|
radius: {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
3
|
-
import { CheckboxProps } from '
|
3
|
+
import { CheckboxProps } from '../../components/Checkbox';
|
4
4
|
export declare const CheckboxGroupItem: React.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React.RefAttributes<HTMLButtonElement>, "ref"> & CheckboxProps & React.RefAttributes<HTMLButtonElement>>;
|
5
5
|
export default CheckboxGroupItem;
|
@@ -23,7 +23,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
23
23
|
};
|
24
24
|
import { jsx as _jsx } from "react/jsx-runtime";
|
25
25
|
import { forwardRef } from 'react';
|
26
|
-
import Checkbox from '
|
26
|
+
import Checkbox from '../../components/Checkbox';
|
27
27
|
import { useCheckboxGroupContext } from './CheckboxGroupRoot';
|
28
28
|
export var CheckboxGroupItem = forwardRef(function (_a, ref) {
|
29
29
|
var className = _a.className, children = _a.children, value = _a.value, id = _a.id, defaultValue = _a.defaultValue, props = __rest(_a, ["className", "children", "value", "id", "defaultValue"]);
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import React, { ReactNode } from 'react';
|
2
2
|
import { CheckboxGroup as CheckboxGroupTheme } from '@radix-ui/themes';
|
3
|
-
import { CheckboxVariants } from '
|
3
|
+
import { CheckboxVariants } from '../../components/Checkbox';
|
4
4
|
import { VariantProps } from 'class-variance-authority';
|
5
|
-
import { IAppearance, IColor } from '
|
5
|
+
import { IAppearance, IColor } from '../../types';
|
6
6
|
export interface CheckboxGroupRootProps extends VariantProps<typeof CheckboxGroupVariants>, VariantProps<typeof CheckboxVariants> {
|
7
7
|
children?: ReactNode;
|
8
8
|
defaultValue?: string[];
|
@@ -3,9 +3,9 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import React, { Children, 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 '
|
7
|
-
import { useTheme } from '
|
8
|
-
import { MAIN_COLOR } from '
|
6
|
+
import { cn } from '../../utils/utils';
|
7
|
+
import { useTheme } from '../../theme';
|
8
|
+
import { MAIN_COLOR } from '../../color/constants';
|
9
9
|
export var CheckboxGroupVariants = cva("", {
|
10
10
|
variants: {
|
11
11
|
size: {
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
4
|
-
import { IColor } from '
|
4
|
+
import { IColor } from '../../types';
|
5
5
|
export interface CollapsibleProps extends React.InputHTMLAttributes<HTMLInputElement>, VariantProps<typeof collapsibleVariants> {
|
6
6
|
color?: IColor;
|
7
7
|
open?: boolean;
|
@@ -24,11 +24,11 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
24
24
|
import { jsx as _jsx } from "react/jsx-runtime";
|
25
25
|
import React, { createContext, useContext } from 'react';
|
26
26
|
import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
|
27
|
-
import { cn } from '
|
27
|
+
import { cn } from '../../utils/utils';
|
28
28
|
import { cva } from 'class-variance-authority';
|
29
|
-
import { scalingVariants } from '
|
30
|
-
import { useTheme } from '
|
31
|
-
import { MAIN_COLOR } from '
|
29
|
+
import { scalingVariants } from '../../constants';
|
30
|
+
import { useTheme } from '../../theme';
|
31
|
+
import { MAIN_COLOR } from '../../color/constants';
|
32
32
|
import { Cross2Icon, RowSpacingIcon } from '@radix-ui/react-icons';
|
33
33
|
import Toggle from '../Toggle';
|
34
34
|
var collapsibleVariants = cva('', {
|
@@ -25,9 +25,9 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
25
25
|
import { forwardRef } from 'react';
|
26
26
|
import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';
|
27
27
|
import { CheckIcon } from '@radix-ui/react-icons';
|
28
|
-
import { cn } from '
|
28
|
+
import { cn } from '../../utils/utils';
|
29
29
|
import { useContextMenuContext } from './ContextMenuRoot';
|
30
|
-
import { menuItemAppearanceStyle } from '
|
30
|
+
import { menuItemAppearanceStyle } from '../../constants';
|
31
31
|
import { contextMenuItemVariants } from './ContextMenuItem';
|
32
32
|
import { ContextMenuItemIndicator } from './ContextMenuItemIndicator';
|
33
33
|
export var ContextMenuCheckboxItem = forwardRef(function (_a, ref) {
|
@@ -24,9 +24,9 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
24
24
|
import { jsx as _jsx } from "react/jsx-runtime";
|
25
25
|
import { forwardRef } from 'react';
|
26
26
|
import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';
|
27
|
-
import { cn } from '
|
27
|
+
import { cn } from '../../utils/utils';
|
28
28
|
import { cva } from 'class-variance-authority';
|
29
|
-
import { scalingVariants } from '
|
29
|
+
import { scalingVariants } from '../../constants';
|
30
30
|
import { useContextMenuContext } from './ContextMenuRoot';
|
31
31
|
export var contextMenuContentVariants = cva("p-[5px] bg-white dark:bg-slateDark-1 will-change-[transform,opacity]\n shadow-[0px_10px_38px_-10px_rgba(22,_23,_24,_0.35),_0px_10px_20px_-15px_rgba(22,_23,_24,_0.2)] \n [animation-duration:_400ms] [animation-timing-function:_cubic-bezier(0.16,_1,_0.3,_1)]", {
|
32
32
|
variants: {
|
@@ -24,11 +24,11 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
24
24
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
25
25
|
import { forwardRef } from 'react';
|
26
26
|
import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';
|
27
|
-
import { cn } from '
|
27
|
+
import { cn } from '../../utils/utils';
|
28
28
|
import { cva } from 'class-variance-authority';
|
29
|
-
import { blackText, menuItemAppearanceStyle, scalingVariants, radiusVariants } from '
|
29
|
+
import { blackText, menuItemAppearanceStyle, scalingVariants, radiusVariants } from '../../constants';
|
30
30
|
import { useContextMenuContext } from './ContextMenuRoot';
|
31
|
-
import { MAIN_COLOR } from '
|
31
|
+
import { MAIN_COLOR } from '../../color/constants';
|
32
32
|
export var contextMenuItemVariants = cva("flex group relative leading-none select-none outline-none items-center justify-between font-normal\n data-[disabled]:text-slate-8 data-[disabled]:cursor-not-allowed text-slate-12 dark:text-slateDark-12\n data-[disabled]:hover:bg-transparent dark:data-[disabled]:text-slateDark-8 data-[disabled]:dark:hover:bg-transparent", {
|
33
33
|
variants: {
|
34
34
|
radius: __assign({}, radiusVariants['menu-item']),
|
@@ -24,10 +24,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
24
24
|
import { jsx as _jsx } from "react/jsx-runtime";
|
25
25
|
import { forwardRef } from 'react';
|
26
26
|
import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';
|
27
|
-
import { cn } from '
|
27
|
+
import { cn } from '../../utils/utils';
|
28
28
|
import { CheckIcon } from '@radix-ui/react-icons';
|
29
29
|
import { cva } from 'class-variance-authority';
|
30
|
-
import { radiusVariants } from '
|
30
|
+
import { radiusVariants } from '../../constants';
|
31
31
|
import { useContextMenuContext } from './ContextMenuRoot';
|
32
32
|
export var contextMenuItemIndicatorVariants = cva("absolute left-0 inline-flex items-center justify-center ml-1 border", {
|
33
33
|
variants: {
|
@@ -24,9 +24,9 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
24
24
|
import { jsx as _jsx } from "react/jsx-runtime";
|
25
25
|
import { forwardRef } from 'react';
|
26
26
|
import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';
|
27
|
-
import { cn } from '
|
27
|
+
import { cn } from '../../utils/utils';
|
28
28
|
import { cva } from 'class-variance-authority';
|
29
|
-
import { scalingVariants } from '
|
29
|
+
import { scalingVariants } from '../../constants';
|
30
30
|
import { useContextMenuContext } from './ContextMenuRoot';
|
31
31
|
export var contextMenuLabelVariants = cva("flex relative leading-none select-none outline-none items-center \n text-slate-11 dark:text-slateDarkA-11 font-normal", {
|
32
32
|
variants: {
|
@@ -24,9 +24,9 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
24
24
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
25
25
|
import { forwardRef, useContext } from 'react';
|
26
26
|
import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';
|
27
|
-
import { cn } from '
|
27
|
+
import { cn } from '../../utils/utils';
|
28
28
|
import { DotFilledIcon } from '@radix-ui/react-icons';
|
29
|
-
import { menuItemAppearanceStyle } from '
|
29
|
+
import { menuItemAppearanceStyle } from '../../constants';
|
30
30
|
import { useContextMenuContext } from './ContextMenuRoot';
|
31
31
|
import { contextMenuItemVariants } from './ContextMenuItem';
|
32
32
|
import { RadioContext } from './ContextMenuRadioGroup';
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
4
|
-
import { IColor } from '
|
4
|
+
import { IColor } from '../../types';
|
5
5
|
import { contextMenuContentVariants } from './ContextMenuContent';
|
6
6
|
import { contextMenuItemVariants } from './ContextMenuItem';
|
7
7
|
export interface ContextMenuProps extends VariantProps<typeof contextMenuContentVariants>, VariantProps<typeof contextMenuItemVariants> {
|
@@ -24,8 +24,8 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
24
24
|
import { jsx as _jsx } from "react/jsx-runtime";
|
25
25
|
import { createContext, forwardRef, useContext, } from 'react';
|
26
26
|
import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';
|
27
|
-
import { useTheme } from '
|
28
|
-
import { MAIN_COLOR } from '
|
27
|
+
import { useTheme } from '../../theme';
|
28
|
+
import { MAIN_COLOR } from '../../color/constants';
|
29
29
|
var ContextMenuContext = createContext({
|
30
30
|
radius: 'medium',
|
31
31
|
scaling: '100%',
|
@@ -23,7 +23,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
23
23
|
import { jsx as _jsx } from "react/jsx-runtime";
|
24
24
|
import { forwardRef } from 'react';
|
25
25
|
import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';
|
26
|
-
import { cn } from '
|
26
|
+
import { cn } from '../../utils/utils';
|
27
27
|
export var ContextMenuSeparator = forwardRef(function (_a, ref) {
|
28
28
|
var className = _a.className, children = _a.children, props = __rest(_a, ["className", "children"]);
|
29
29
|
return (_jsx(ContextMenuPrimitive.Separator, __assign({ ref: ref, className: cn('h-[1px] m-[5px] bg-slate-6 dark:bg-slateDark-6', className) }, props, { children: children })));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ContextMenuSeparator.mjs","sources":["../../../../../lib/components/ContextMenu/ContextMenuSeparator.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 * as ContextMenuPrimitive from '@radix-ui/react-context-menu';\nimport { cn } from '
|
1
|
+
{"version":3,"file":"ContextMenuSeparator.mjs","sources":["../../../../../lib/components/ContextMenu/ContextMenuSeparator.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 * as ContextMenuPrimitive from '@radix-ui/react-context-menu';\nimport { cn } from '../../utils/utils';\nexport var ContextMenuSeparator = forwardRef(function (_a, ref) {\n var className = _a.className, children = _a.children, props = __rest(_a, [\"className\", \"children\"]);\n return (_jsx(ContextMenuPrimitive.Separator, __assign({ ref: ref, className: cn('h-[1px] m-[5px] bg-slate-6 dark:bg-slateDark-6', className) }, props, { children: children })));\n});\nContextMenuSeparator.displayName = 'ContextMenu.Separator';\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","ContextMenuSeparator","forwardRef","_a","ref","className","children","props","_jsx","ContextMenuPrimitive","Separator","cn","displayName"],"mappings":"qKAAA,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,EAKWiB,EAAuBC,GAAW,SAAUC,EAAIC,GACvD,IAAIC,EAAYF,EAAGE,UAAWC,EAAWH,EAAGG,SAAUC,EAAQX,EAAOO,EAAI,CAAC,YAAa,aACvF,OAAQK,EAAKC,EAAqBC,UAAW7B,EAAS,CAAEuB,IAAKA,EAAKC,UAAWM,EAAG,iDAAkDN,IAAcE,EAAO,CAAED,SAAUA,IACvK,IACAL,EAAqBW,YAAc"}
|
@@ -24,9 +24,9 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
24
24
|
import { jsx as _jsx } from "react/jsx-runtime";
|
25
25
|
import { forwardRef } from 'react';
|
26
26
|
import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';
|
27
|
-
import { cn } from '
|
27
|
+
import { cn } from '../../utils/utils';
|
28
28
|
import { cva } from 'class-variance-authority';
|
29
|
-
import { radiusVariants, scalingVariants } from '
|
29
|
+
import { radiusVariants, scalingVariants } from '../../constants';
|
30
30
|
import { useContextMenuContext } from './ContextMenuRoot';
|
31
31
|
export var contextMenuSubContentVariants = cva("p-[5px] bg-white dark:bg-slateDark-1 will-change-[transform,opacity]\n shadow-[0px_10px_38px_-10px_rgba(22,_23,_24,_0.35),_0px_10px_20px_-15px_rgba(22,_23,_24,_0.2)] \n [animation-duration:_400ms] [animation-timing-function:_cubic-bezier(0.16,_1,_0.3,_1)]", {
|
32
32
|
variants: {
|
@@ -25,11 +25,11 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
25
25
|
import { forwardRef } from 'react';
|
26
26
|
import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';
|
27
27
|
import { ChevronRightIcon } from '@radix-ui/react-icons';
|
28
|
-
import { cn } from '
|
28
|
+
import { cn } from '../../utils/utils';
|
29
29
|
import { contextMenuItemVariants } from './ContextMenuItem';
|
30
|
-
import { blackText, menuItemAppearanceStyle } from '
|
30
|
+
import { blackText, menuItemAppearanceStyle } from '../../constants';
|
31
31
|
import { useContextMenuContext } from './ContextMenuRoot';
|
32
|
-
import { MAIN_COLOR } from '
|
32
|
+
import { MAIN_COLOR } from '../../color/constants';
|
33
33
|
export var ContextMenuSubTrigger = forwardRef(function (_a, ref) {
|
34
34
|
var children = _a.children, className = _a.className, props = __rest(_a, ["children", "className"]);
|
35
35
|
var _b = useContextMenuContext(), scaling = _b.scaling, size = _b.size, radius = _b.radius, _c = _b.color, color = _c === void 0 ? MAIN_COLOR : _c, _d = _b.appearance, appearance = _d === void 0 ? 'solid' : _d;
|
@@ -23,7 +23,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
23
23
|
import { jsx as _jsx } from "react/jsx-runtime";
|
24
24
|
import { forwardRef } from 'react';
|
25
25
|
import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';
|
26
|
-
import { cn } from '
|
26
|
+
import { cn } from '../../utils/utils';
|
27
27
|
export var ContextMenuTrigger = forwardRef(function (_a, ref) {
|
28
28
|
var className = _a.className, children = _a.children, props = __rest(_a, ["className", "children"]);
|
29
29
|
return (_jsx(ContextMenuPrimitive.Trigger, __assign({ ref: ref, className: cn("flex text-slate-12 dark:text-slateDark-12 text-base text-center justify-center", className) }, props, { children: children })));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ContextMenuTrigger.mjs","sources":["../../../../../lib/components/ContextMenu/ContextMenuTrigger.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 * as ContextMenuPrimitive from '@radix-ui/react-context-menu';\nimport { cn } from '
|
1
|
+
{"version":3,"file":"ContextMenuTrigger.mjs","sources":["../../../../../lib/components/ContextMenu/ContextMenuTrigger.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 * as ContextMenuPrimitive from '@radix-ui/react-context-menu';\nimport { cn } from '../../utils/utils';\nexport var ContextMenuTrigger = forwardRef(function (_a, ref) {\n var className = _a.className, children = _a.children, props = __rest(_a, [\"className\", \"children\"]);\n return (_jsx(ContextMenuPrimitive.Trigger, __assign({ ref: ref, className: cn(\"flex text-slate-12 dark:text-slateDark-12 text-base text-center justify-center\", className) }, props, { children: children })));\n});\nContextMenuTrigger.displayName = 'ContextMenu.Trigger';\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","ContextMenuTrigger","forwardRef","_a","ref","className","children","props","_jsx","ContextMenuPrimitive","Trigger","cn","displayName"],"mappings":"qKAAA,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,EAKWiB,EAAqBC,GAAW,SAAUC,EAAIC,GACrD,IAAIC,EAAYF,EAAGE,UAAWC,EAAWH,EAAGG,SAAUC,EAAQX,EAAOO,EAAI,CAAC,YAAa,aACvF,OAAQK,EAAKC,EAAqBC,QAAS7B,EAAS,CAAEuB,IAAKA,EAAKC,UAAWM,EAAG,iFAAkFN,IAAcE,EAAO,CAAED,SAAUA,IACrM,IACAL,EAAmBW,YAAc"}
|
@@ -25,8 +25,8 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
25
25
|
import { forwardRef } from 'react';
|
26
26
|
import { DataList as DataListTheme } from '@radix-ui/themes';
|
27
27
|
import { cva } from 'class-variance-authority';
|
28
|
-
import { cn } from '
|
29
|
-
import { scalingVariants } from '
|
28
|
+
import { cn } from '../../utils/utils';
|
29
|
+
import { scalingVariants } from '../../constants';
|
30
30
|
import { useDataListContext } from './DataListRoot';
|
31
31
|
export var dataListItemVariants = cva('flex', {
|
32
32
|
variants: {
|
@@ -25,8 +25,8 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
25
25
|
import { forwardRef } from 'react';
|
26
26
|
import { DataList as DataListTheme } from '@radix-ui/themes';
|
27
27
|
import { cva } from 'class-variance-authority';
|
28
|
-
import { cn } from '
|
29
|
-
import { weightVariants } from '
|
28
|
+
import { cn } from '../../utils/utils';
|
29
|
+
import { weightVariants } from '../../constants';
|
30
30
|
import { useDataListContext } from './DataListRoot';
|
31
31
|
export var dataListLabelVariants = cva('text-slateA-11 dark:text-slateDarkA-11 w-[120px] mb-1', {
|
32
32
|
variants: {
|
@@ -25,8 +25,8 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
25
25
|
import { createContext, forwardRef, useContext, } from 'react';
|
26
26
|
import { DataList as DataListTheme } from '@radix-ui/themes';
|
27
27
|
import { cva } from 'class-variance-authority';
|
28
|
-
import { cn } from '
|
29
|
-
import { useTheme } from '
|
28
|
+
import { cn } from '../../utils/utils';
|
29
|
+
import { useTheme } from '../../theme';
|
30
30
|
export var dataListVariants = cva('flex flex-col', {
|
31
31
|
variants: {
|
32
32
|
size: {
|
@@ -24,9 +24,9 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
24
24
|
import { jsx as _jsx } from "react/jsx-runtime";
|
25
25
|
import { forwardRef } from 'react';
|
26
26
|
import { DataList as DataListTheme } from '@radix-ui/themes';
|
27
|
-
import { textColorStyle, weightVariants } from '
|
27
|
+
import { textColorStyle, weightVariants } from '../../constants';
|
28
28
|
import { cva } from 'class-variance-authority';
|
29
|
-
import { cn } from '
|
29
|
+
import { cn } from '../../utils/utils';
|
30
30
|
import { useDataListContext } from './DataListRoot';
|
31
31
|
export var dataListValueVariants = cva('text-slate-12 dark:text-slateDark-12 w-[200px]', {
|
32
32
|
variants: {
|
@@ -25,10 +25,10 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
25
25
|
import { forwardRef, useContext } from 'react';
|
26
26
|
import { Dialog as DialogTheme } from '@radix-ui/themes';
|
27
27
|
import { cva } from 'class-variance-authority';
|
28
|
-
import { primaryColorStyle } from '
|
28
|
+
import { primaryColorStyle } from '../../constants';
|
29
29
|
import { DialogContext } from './DialogRoot';
|
30
|
-
import { cn } from '
|
31
|
-
import { MAIN_COLOR } from '
|
30
|
+
import { cn } from '../../utils/utils';
|
31
|
+
import { MAIN_COLOR } from '../../color/constants';
|
32
32
|
export var dialogActionVariants = cva('rounded-md inline-flex font-medium items-center justify-center px-[15px] hover:cursor-pointer', {
|
33
33
|
variants: {
|
34
34
|
radius: {
|
@@ -26,7 +26,7 @@ import { forwardRef, useContext } from 'react';
|
|
26
26
|
import { Dialog as DialogTheme } from '@radix-ui/themes';
|
27
27
|
import { cva } from 'class-variance-authority';
|
28
28
|
import { DialogContext } from './DialogRoot';
|
29
|
-
import { cn } from '
|
29
|
+
import { cn } from '../../utils/utils';
|
30
30
|
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", {
|
31
31
|
variants: {
|
32
32
|
radius: {
|
@@ -25,9 +25,9 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
25
25
|
import { forwardRef, useContext } from 'react';
|
26
26
|
import { cva } from 'class-variance-authority';
|
27
27
|
import { Dialog as DialogTheme } from '@radix-ui/themes';
|
28
|
-
import { scalingVariants } from '
|
28
|
+
import { scalingVariants } from '../../constants';
|
29
29
|
import { DialogContext } from './DialogRoot';
|
30
|
-
import { cn } from '
|
30
|
+
import { cn } from '../../utils/utils';
|
31
31
|
export var dialogContentVariants = cva("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]", {
|
32
32
|
variants: {
|
33
33
|
radius: {
|
@@ -26,7 +26,7 @@ import { forwardRef, useContext } from 'react';
|
|
26
26
|
import { cva } from 'class-variance-authority';
|
27
27
|
import { Dialog as DialogTheme } from '@radix-ui/themes';
|
28
28
|
import { DialogContext } from './DialogRoot';
|
29
|
-
import { cn } from '
|
29
|
+
import { cn } from '../../utils/utils';
|
30
30
|
export var dialogDescriptionVariants = cva('font-normal text-slate-12 dark:text-slateDark-12', {
|
31
31
|
variants: {
|
32
32
|
size: {
|
@@ -24,8 +24,8 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
24
24
|
import { jsx as _jsx } from "react/jsx-runtime";
|
25
25
|
import { createContext } from 'react';
|
26
26
|
import { Theme, Dialog as DialogTheme } from '@radix-ui/themes';
|
27
|
-
import { useTheme } from '
|
28
|
-
import { MAIN_COLOR } from '
|
27
|
+
import { useTheme } from '../../theme';
|
28
|
+
import { MAIN_COLOR } from '../../color/constants';
|
29
29
|
export var DialogContext = createContext({
|
30
30
|
size: 'medium',
|
31
31
|
scaling: '100%',
|
@@ -25,7 +25,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
25
25
|
import { forwardRef, useContext } from 'react';
|
26
26
|
import { cva } from 'class-variance-authority';
|
27
27
|
import { DialogContext } from './DialogRoot';
|
28
|
-
import { cn } from '
|
28
|
+
import { cn } from '../../utils/utils';
|
29
29
|
export var dialogSlotVariants = cva('flex flex-col gap-2 font-normal text-slate-12 dark:text-slateDark-12', {
|
30
30
|
variants: {
|
31
31
|
size: {
|
@@ -26,7 +26,7 @@ import { forwardRef, useContext } from 'react';
|
|
26
26
|
import { cva } from 'class-variance-authority';
|
27
27
|
import { Dialog as DialogTheme } from '@radix-ui/themes';
|
28
28
|
import { DialogContext } from './DialogRoot';
|
29
|
-
import { cn } from '
|
29
|
+
import { cn } from '../../utils/utils';
|
30
30
|
export var dialogTitleVariants = cva('font-bold text-slate-12 dark:text-slateDark-12', {
|
31
31
|
variants: {
|
32
32
|
size: {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
2
|
-
import { IChartDataLabels, IChartDatasets, IChartLegend, IChartTitle } from '
|
2
|
+
import { IChartDataLabels, IChartDatasets, IChartLegend, IChartTitle } from '../../types';
|
3
3
|
export interface DoughnutChartProps extends VariantProps<typeof doughnutVariants> {
|
4
4
|
labels?: string[];
|
5
5
|
appearance?: 'solid' | 'soft';
|
@@ -24,10 +24,10 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
24
|
import { Doughnut } from 'react-chartjs-2';
|
25
25
|
import { Chart as ChartJS, ArcElement, Tooltip, Legend, plugins } from 'chart.js/auto';
|
26
26
|
import ChartDataLabels from 'chartjs-plugin-datalabels';
|
27
|
-
import { cn } from '
|
27
|
+
import { cn } from '../../utils/utils';
|
28
28
|
import { cva } from 'class-variance-authority';
|
29
|
-
import { scalingVariants } from '
|
30
|
-
import { chartColorList, chartAlphaColorList } from '
|
29
|
+
import { scalingVariants } from '../../constants';
|
30
|
+
import { chartColorList, chartAlphaColorList } from '../../color/constants';
|
31
31
|
ChartJS.register(ArcElement, Tooltip, Legend, plugins, ChartDataLabels);
|
32
32
|
ChartJS.defaults.set('plugins.datalabels', {
|
33
33
|
display: false,
|