@exem-ui/react 0.3.4-next.20260630003548 → 0.3.4-next.20260701100842
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +21 -42
- package/dist/index.d.ts +21 -42
- package/dist/index.js +79 -119
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +79 -119
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -212,31 +212,28 @@ type BreadcrumbComponent = React__default.ForwardRefExoticComponent<React__defau
|
|
|
212
212
|
*/
|
|
213
213
|
declare const Breadcrumb: BreadcrumbComponent;
|
|
214
214
|
|
|
215
|
-
type
|
|
216
|
-
|
|
217
|
-
|
|
215
|
+
type ButtonColor = 'primary' | 'accent' | 'critical';
|
|
216
|
+
type ButtonSize = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
|
|
217
|
+
type ButtonBackground = 'none' | 'fill';
|
|
218
|
+
type ButtonVariantProps = {
|
|
219
|
+
variant?: 'solid' | 'assistive';
|
|
220
|
+
color?: ButtonColor;
|
|
221
|
+
background?: never;
|
|
218
222
|
} | {
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
color?: 'critical';
|
|
223
|
-
variant?: 'contained' | 'outlined' | 'invisible';
|
|
224
|
-
} | {
|
|
225
|
-
color?: 'assistive';
|
|
226
|
-
variant?: 'contained';
|
|
227
|
-
} | {
|
|
228
|
-
color?: 'inverse';
|
|
229
|
-
variant?: 'contained';
|
|
223
|
+
variant: 'outlined' | 'invisible';
|
|
224
|
+
color?: ButtonColor;
|
|
225
|
+
background?: ButtonBackground;
|
|
230
226
|
};
|
|
231
|
-
type ButtonProps = React__default.ButtonHTMLAttributes<HTMLButtonElement> & Omit<VariantProps<typeof buttonVariants>, 'variant' | 'color'> &
|
|
232
|
-
size?:
|
|
227
|
+
type ButtonProps = React__default.ButtonHTMLAttributes<HTMLButtonElement> & Omit<VariantProps<typeof buttonVariants>, 'variant' | 'color' | 'background'> & ButtonVariantProps & {
|
|
228
|
+
size?: ButtonSize;
|
|
233
229
|
icon?: React__default.ReactElement<IconBaseProps>;
|
|
234
230
|
};
|
|
235
231
|
type ButtonComponent = React__default.ForwardRefExoticComponent<ButtonProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
236
232
|
declare const buttonVariants: (props?: ({
|
|
237
|
-
|
|
233
|
+
background?: "fill" | "none" | null | undefined;
|
|
234
|
+
color?: "accent" | "primary" | "critical" | null | undefined;
|
|
238
235
|
size?: "small" | "xsmall" | "medium" | "large" | "xlarge" | null | undefined;
|
|
239
|
-
variant?: "
|
|
236
|
+
variant?: "solid" | "assistive" | "outlined" | "invisible" | null | undefined;
|
|
240
237
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
241
238
|
declare const Button: ButtonComponent;
|
|
242
239
|
|
|
@@ -272,27 +269,9 @@ interface ButtonGroupProps {
|
|
|
272
269
|
type ButtonGroupComponent = React__default.ForwardRefExoticComponent<ButtonGroupProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
273
270
|
declare const ButtonGroup: ButtonGroupComponent;
|
|
274
271
|
|
|
275
|
-
type
|
|
276
|
-
type IconButtonColorVariantCombination = {
|
|
277
|
-
color?: 'primary';
|
|
278
|
-
variant?: 'contained' | 'outlined' | 'invisible';
|
|
279
|
-
} | {
|
|
280
|
-
color?: 'accent';
|
|
281
|
-
variant?: 'contained' | 'outlined' | 'invisible';
|
|
282
|
-
} | {
|
|
283
|
-
color?: 'critical';
|
|
284
|
-
variant?: 'contained' | 'outlined' | 'invisible';
|
|
285
|
-
} | {
|
|
286
|
-
color?: 'assistive';
|
|
287
|
-
variant?: 'contained';
|
|
288
|
-
} | {
|
|
289
|
-
color?: 'inverse';
|
|
290
|
-
variant?: 'contained';
|
|
291
|
-
};
|
|
292
|
-
type IconButtonProps = Omit<React__default.ButtonHTMLAttributes<HTMLButtonElement>, 'children'> & IconButtonColorVariantCombination & {
|
|
272
|
+
type IconButtonProps = Omit<React__default.ButtonHTMLAttributes<HTMLButtonElement>, 'children'> & ButtonVariantProps & {
|
|
293
273
|
icon: React__default.ReactElement<IconBaseProps>;
|
|
294
|
-
|
|
295
|
-
size?: 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
|
|
274
|
+
size?: ButtonSize;
|
|
296
275
|
/** 툴팁 설정 (문자열 또는 FlatTooltip 설정 객체) */
|
|
297
276
|
tooltip?: ComponentProps<typeof ConditionalTooltip>['tooltip'];
|
|
298
277
|
};
|
|
@@ -585,7 +564,7 @@ type ModalContentProps = React__default.ComponentPropsWithoutRef<typeof DialogPr
|
|
|
585
564
|
*/
|
|
586
565
|
size?: ModalSize;
|
|
587
566
|
};
|
|
588
|
-
type ModalCloseProps = Omit<ButtonProps, 'color' | 'variant'>;
|
|
567
|
+
type ModalCloseProps = Omit<ButtonProps, 'color' | 'variant' | 'background'>;
|
|
589
568
|
type ModalHeaderProps = React__default.HTMLAttributes<HTMLDivElement> & {
|
|
590
569
|
/**
|
|
591
570
|
* 하단 구분선 표시 여부
|
|
@@ -615,7 +594,7 @@ type ModalFooterDescriptionProps = React__default.HTMLAttributes<HTMLDivElement>
|
|
|
615
594
|
icon?: React__default.ReactNode;
|
|
616
595
|
};
|
|
617
596
|
type ModalActionsProps = React__default.HTMLAttributes<HTMLDivElement>;
|
|
618
|
-
type ModalActionProps = Omit<ButtonProps, 'color' | 'variant'> & {
|
|
597
|
+
type ModalActionProps = Omit<ButtonProps, 'color' | 'variant' | 'background'> & {
|
|
619
598
|
/**
|
|
620
599
|
* 버튼 색상
|
|
621
600
|
* @default 'primary'
|
|
@@ -734,8 +713,8 @@ type MessageBoxContentProps = React__default.ComponentPropsWithoutRef<typeof Dia
|
|
|
734
713
|
type MessageBoxTitleProps = React__default.ComponentPropsWithoutRef<typeof DialogPrimitive.Title>;
|
|
735
714
|
type MessageBoxDescriptionProps = React__default.ComponentPropsWithoutRef<typeof DialogPrimitive.Description>;
|
|
736
715
|
type MessageBoxActionsProps = React__default.HTMLAttributes<HTMLDivElement>;
|
|
737
|
-
type MessageBoxCancelProps = Omit<ButtonProps, 'color' | 'variant'>;
|
|
738
|
-
type MessageBoxActionProps = Omit<ButtonProps, 'color' | 'variant'>;
|
|
716
|
+
type MessageBoxCancelProps = Omit<ButtonProps, 'color' | 'variant' | 'background'>;
|
|
717
|
+
type MessageBoxActionProps = Omit<ButtonProps, 'color' | 'variant' | 'background'>;
|
|
739
718
|
type MessageBoxComponent = React__default.FC<MessageBoxRootProps> & {
|
|
740
719
|
Trigger: React__default.ForwardRefExoticComponent<React__default.PropsWithoutRef<MessageBoxTriggerProps> & React__default.RefAttributes<React__default.ElementRef<typeof DialogPrimitive.Trigger>>>;
|
|
741
720
|
Content: React__default.ForwardRefExoticComponent<React__default.PropsWithoutRef<MessageBoxContentProps> & React__default.RefAttributes<React__default.ElementRef<typeof DialogPrimitive.Content>>>;
|
package/dist/index.d.ts
CHANGED
|
@@ -212,31 +212,28 @@ type BreadcrumbComponent = React__default.ForwardRefExoticComponent<React__defau
|
|
|
212
212
|
*/
|
|
213
213
|
declare const Breadcrumb: BreadcrumbComponent;
|
|
214
214
|
|
|
215
|
-
type
|
|
216
|
-
|
|
217
|
-
|
|
215
|
+
type ButtonColor = 'primary' | 'accent' | 'critical';
|
|
216
|
+
type ButtonSize = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
|
|
217
|
+
type ButtonBackground = 'none' | 'fill';
|
|
218
|
+
type ButtonVariantProps = {
|
|
219
|
+
variant?: 'solid' | 'assistive';
|
|
220
|
+
color?: ButtonColor;
|
|
221
|
+
background?: never;
|
|
218
222
|
} | {
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
color?: 'critical';
|
|
223
|
-
variant?: 'contained' | 'outlined' | 'invisible';
|
|
224
|
-
} | {
|
|
225
|
-
color?: 'assistive';
|
|
226
|
-
variant?: 'contained';
|
|
227
|
-
} | {
|
|
228
|
-
color?: 'inverse';
|
|
229
|
-
variant?: 'contained';
|
|
223
|
+
variant: 'outlined' | 'invisible';
|
|
224
|
+
color?: ButtonColor;
|
|
225
|
+
background?: ButtonBackground;
|
|
230
226
|
};
|
|
231
|
-
type ButtonProps = React__default.ButtonHTMLAttributes<HTMLButtonElement> & Omit<VariantProps<typeof buttonVariants>, 'variant' | 'color'> &
|
|
232
|
-
size?:
|
|
227
|
+
type ButtonProps = React__default.ButtonHTMLAttributes<HTMLButtonElement> & Omit<VariantProps<typeof buttonVariants>, 'variant' | 'color' | 'background'> & ButtonVariantProps & {
|
|
228
|
+
size?: ButtonSize;
|
|
233
229
|
icon?: React__default.ReactElement<IconBaseProps>;
|
|
234
230
|
};
|
|
235
231
|
type ButtonComponent = React__default.ForwardRefExoticComponent<ButtonProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
236
232
|
declare const buttonVariants: (props?: ({
|
|
237
|
-
|
|
233
|
+
background?: "fill" | "none" | null | undefined;
|
|
234
|
+
color?: "accent" | "primary" | "critical" | null | undefined;
|
|
238
235
|
size?: "small" | "xsmall" | "medium" | "large" | "xlarge" | null | undefined;
|
|
239
|
-
variant?: "
|
|
236
|
+
variant?: "solid" | "assistive" | "outlined" | "invisible" | null | undefined;
|
|
240
237
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
241
238
|
declare const Button: ButtonComponent;
|
|
242
239
|
|
|
@@ -272,27 +269,9 @@ interface ButtonGroupProps {
|
|
|
272
269
|
type ButtonGroupComponent = React__default.ForwardRefExoticComponent<ButtonGroupProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
273
270
|
declare const ButtonGroup: ButtonGroupComponent;
|
|
274
271
|
|
|
275
|
-
type
|
|
276
|
-
type IconButtonColorVariantCombination = {
|
|
277
|
-
color?: 'primary';
|
|
278
|
-
variant?: 'contained' | 'outlined' | 'invisible';
|
|
279
|
-
} | {
|
|
280
|
-
color?: 'accent';
|
|
281
|
-
variant?: 'contained' | 'outlined' | 'invisible';
|
|
282
|
-
} | {
|
|
283
|
-
color?: 'critical';
|
|
284
|
-
variant?: 'contained' | 'outlined' | 'invisible';
|
|
285
|
-
} | {
|
|
286
|
-
color?: 'assistive';
|
|
287
|
-
variant?: 'contained';
|
|
288
|
-
} | {
|
|
289
|
-
color?: 'inverse';
|
|
290
|
-
variant?: 'contained';
|
|
291
|
-
};
|
|
292
|
-
type IconButtonProps = Omit<React__default.ButtonHTMLAttributes<HTMLButtonElement>, 'children'> & IconButtonColorVariantCombination & {
|
|
272
|
+
type IconButtonProps = Omit<React__default.ButtonHTMLAttributes<HTMLButtonElement>, 'children'> & ButtonVariantProps & {
|
|
293
273
|
icon: React__default.ReactElement<IconBaseProps>;
|
|
294
|
-
|
|
295
|
-
size?: 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
|
|
274
|
+
size?: ButtonSize;
|
|
296
275
|
/** 툴팁 설정 (문자열 또는 FlatTooltip 설정 객체) */
|
|
297
276
|
tooltip?: ComponentProps<typeof ConditionalTooltip>['tooltip'];
|
|
298
277
|
};
|
|
@@ -585,7 +564,7 @@ type ModalContentProps = React__default.ComponentPropsWithoutRef<typeof DialogPr
|
|
|
585
564
|
*/
|
|
586
565
|
size?: ModalSize;
|
|
587
566
|
};
|
|
588
|
-
type ModalCloseProps = Omit<ButtonProps, 'color' | 'variant'>;
|
|
567
|
+
type ModalCloseProps = Omit<ButtonProps, 'color' | 'variant' | 'background'>;
|
|
589
568
|
type ModalHeaderProps = React__default.HTMLAttributes<HTMLDivElement> & {
|
|
590
569
|
/**
|
|
591
570
|
* 하단 구분선 표시 여부
|
|
@@ -615,7 +594,7 @@ type ModalFooterDescriptionProps = React__default.HTMLAttributes<HTMLDivElement>
|
|
|
615
594
|
icon?: React__default.ReactNode;
|
|
616
595
|
};
|
|
617
596
|
type ModalActionsProps = React__default.HTMLAttributes<HTMLDivElement>;
|
|
618
|
-
type ModalActionProps = Omit<ButtonProps, 'color' | 'variant'> & {
|
|
597
|
+
type ModalActionProps = Omit<ButtonProps, 'color' | 'variant' | 'background'> & {
|
|
619
598
|
/**
|
|
620
599
|
* 버튼 색상
|
|
621
600
|
* @default 'primary'
|
|
@@ -734,8 +713,8 @@ type MessageBoxContentProps = React__default.ComponentPropsWithoutRef<typeof Dia
|
|
|
734
713
|
type MessageBoxTitleProps = React__default.ComponentPropsWithoutRef<typeof DialogPrimitive.Title>;
|
|
735
714
|
type MessageBoxDescriptionProps = React__default.ComponentPropsWithoutRef<typeof DialogPrimitive.Description>;
|
|
736
715
|
type MessageBoxActionsProps = React__default.HTMLAttributes<HTMLDivElement>;
|
|
737
|
-
type MessageBoxCancelProps = Omit<ButtonProps, 'color' | 'variant'>;
|
|
738
|
-
type MessageBoxActionProps = Omit<ButtonProps, 'color' | 'variant'>;
|
|
716
|
+
type MessageBoxCancelProps = Omit<ButtonProps, 'color' | 'variant' | 'background'>;
|
|
717
|
+
type MessageBoxActionProps = Omit<ButtonProps, 'color' | 'variant' | 'background'>;
|
|
739
718
|
type MessageBoxComponent = React__default.FC<MessageBoxRootProps> & {
|
|
740
719
|
Trigger: React__default.ForwardRefExoticComponent<React__default.PropsWithoutRef<MessageBoxTriggerProps> & React__default.RefAttributes<React__default.ElementRef<typeof DialogPrimitive.Trigger>>>;
|
|
741
720
|
Content: React__default.ForwardRefExoticComponent<React__default.PropsWithoutRef<MessageBoxContentProps> & React__default.RefAttributes<React__default.ElementRef<typeof DialogPrimitive.Content>>>;
|
package/dist/index.js
CHANGED
|
@@ -427,14 +427,41 @@ Breadcrumb.Path.displayName = "Breadcrumb.Path";
|
|
|
427
427
|
Breadcrumb.Separator.displayName = "Breadcrumb.Separator";
|
|
428
428
|
Breadcrumb.Ellipsis.displayName = "Breadcrumb.Ellipsis";
|
|
429
429
|
var colorStyles = {
|
|
430
|
+
primary: {
|
|
431
|
+
solid: {
|
|
432
|
+
button: "bg-solid-primary-default hover:bg-solid-primary-hovered disabled:bg-solid-primary-disabled",
|
|
433
|
+
icon: "text-icon-inverse group-disabled/button:text-icon-inverse",
|
|
434
|
+
text: "text-text-inverse group-disabled/button:text-text-inverse"
|
|
435
|
+
},
|
|
436
|
+
assistive: {
|
|
437
|
+
button: "bg-elevation-elevation-2 hover:bg-elevation-elevation-3 disabled:bg-elevation-elevation-2",
|
|
438
|
+
icon: "text-icon-secondary group-disabled/button:text-icon-disabled",
|
|
439
|
+
text: "text-text-secondary group-disabled/button:text-text-disabled"
|
|
440
|
+
},
|
|
441
|
+
outlined: {
|
|
442
|
+
button: "border border-border-primary disabled:border-border-primary hover:bg-elevation-elevation-2",
|
|
443
|
+
icon: "text-icon-secondary group-disabled/button:text-icon-disabled",
|
|
444
|
+
text: "text-text-secondary group-disabled/button:text-text-disabled"
|
|
445
|
+
},
|
|
446
|
+
invisible: {
|
|
447
|
+
button: "hover:bg-elevation-elevation-2",
|
|
448
|
+
icon: "text-icon-secondary group-disabled/button:text-icon-disabled",
|
|
449
|
+
text: "text-text-secondary group-disabled/button:text-text-disabled"
|
|
450
|
+
}
|
|
451
|
+
},
|
|
430
452
|
accent: {
|
|
431
|
-
|
|
453
|
+
solid: {
|
|
432
454
|
button: "bg-solid-accent-default hover:bg-solid-accent-hovered disabled:bg-solid-accent-disabled",
|
|
433
455
|
icon: "text-icon-static-light group-disabled/button:text-icon-inverse-disabled",
|
|
434
456
|
text: "text-text-static-light group-disabled/button:text-text-inverse-disabled"
|
|
435
457
|
},
|
|
458
|
+
assistive: {
|
|
459
|
+
button: "bg-elevation-accent-0 hover:bg-elevation-accent-1 disabled:bg-elevation-accent-0",
|
|
460
|
+
icon: "text-text-accent group-disabled/button:text-text-accent-disabled",
|
|
461
|
+
text: "text-text-accent group-disabled/button:text-text-accent-disabled"
|
|
462
|
+
},
|
|
436
463
|
outlined: {
|
|
437
|
-
button: "border border-border-
|
|
464
|
+
button: "border border-border-primary disabled:border-border-primary hover:bg-elevation-accent-0",
|
|
438
465
|
icon: "text-text-accent group-disabled/button:text-text-accent-disabled",
|
|
439
466
|
text: "text-text-accent group-disabled/button:text-text-accent-disabled"
|
|
440
467
|
},
|
|
@@ -444,21 +471,19 @@ var colorStyles = {
|
|
|
444
471
|
text: "text-text-accent group-disabled/button:text-text-accent-disabled"
|
|
445
472
|
}
|
|
446
473
|
},
|
|
447
|
-
assistive: {
|
|
448
|
-
contained: {
|
|
449
|
-
button: "bg-elevation-elevation-2 hover:bg-elevation-elevation-3 disabled:bg-elevation-elevation-2",
|
|
450
|
-
icon: "text-icon-secondary group-disabled/button:text-icon-disabled",
|
|
451
|
-
text: "text-text-secondary group-disabled/button:text-text-disabled"
|
|
452
|
-
}
|
|
453
|
-
},
|
|
454
474
|
critical: {
|
|
455
|
-
|
|
475
|
+
solid: {
|
|
456
476
|
button: "bg-solid-critical-default hover:bg-solid-critical-hovered disabled:bg-solid-critical-disabled",
|
|
457
477
|
icon: "text-icon-static-light group-disabled/button:text-icon-inverse-disabled",
|
|
458
478
|
text: "text-text-static-light group-disabled/button:text-text-inverse-disabled"
|
|
459
479
|
},
|
|
480
|
+
assistive: {
|
|
481
|
+
button: "bg-elevation-critical-0 hover:bg-elevation-critical-1 disabled:bg-elevation-critical-0",
|
|
482
|
+
icon: "text-text-critical group-disabled/button:text-text-critical-disabled",
|
|
483
|
+
text: "text-text-critical group-disabled/button:text-text-critical-disabled"
|
|
484
|
+
},
|
|
460
485
|
outlined: {
|
|
461
|
-
button: "border border-border-
|
|
486
|
+
button: "border border-border-primary disabled:border-border-primary hover:bg-elevation-critical-0",
|
|
462
487
|
icon: "text-text-critical group-disabled/button:text-text-critical-disabled",
|
|
463
488
|
text: "text-text-critical group-disabled/button:text-text-critical-disabled"
|
|
464
489
|
},
|
|
@@ -467,30 +492,6 @@ var colorStyles = {
|
|
|
467
492
|
icon: "text-text-critical group-disabled/button:text-text-critical-disabled",
|
|
468
493
|
text: "text-text-critical group-disabled/button:text-text-critical-disabled"
|
|
469
494
|
}
|
|
470
|
-
},
|
|
471
|
-
inverse: {
|
|
472
|
-
contained: {
|
|
473
|
-
button: "bg-elevation-elevation-0 hover:bg-elevation-elevation-2 disabled:bg-elevation-elevation-2",
|
|
474
|
-
icon: "text-icon-secondary group-disabled/button:text-icon-disabled",
|
|
475
|
-
text: "text-text-secondary group-disabled/button:text-text-disabled"
|
|
476
|
-
}
|
|
477
|
-
},
|
|
478
|
-
primary: {
|
|
479
|
-
contained: {
|
|
480
|
-
button: "bg-solid-primary-default hover:bg-solid-primary-hovered disabled:bg-solid-primary-disabled",
|
|
481
|
-
icon: "text-icon-inverse group-disabled/button:text-icon-inverse",
|
|
482
|
-
text: "text-text-inverse group-disabled/button:text-text-inverse"
|
|
483
|
-
},
|
|
484
|
-
outlined: {
|
|
485
|
-
button: "border border-border-primary hover:bg-elevation-elevation-2 disabled:border-border-primary",
|
|
486
|
-
icon: "text-icon-secondary group-disabled/button:text-icon-disabled",
|
|
487
|
-
text: "text-text-secondary group-disabled/button:text-text-disabled"
|
|
488
|
-
},
|
|
489
|
-
invisible: {
|
|
490
|
-
button: "hover:bg-elevation-elevation-2",
|
|
491
|
-
icon: "text-icon-secondary group-disabled/button:text-icon-disabled",
|
|
492
|
-
text: "text-text-secondary group-disabled/button:text-text-disabled"
|
|
493
|
-
}
|
|
494
495
|
}
|
|
495
496
|
};
|
|
496
497
|
var buttonVariants = utils.cva(
|
|
@@ -498,77 +499,41 @@ var buttonVariants = utils.cva(
|
|
|
498
499
|
{
|
|
499
500
|
compoundVariants: [
|
|
500
501
|
// Primary 색상 조합
|
|
501
|
-
{
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
},
|
|
506
|
-
{
|
|
507
|
-
className: colorStyles.primary.outlined.button,
|
|
508
|
-
color: "primary",
|
|
509
|
-
variant: "outlined"
|
|
510
|
-
},
|
|
511
|
-
{
|
|
512
|
-
className: colorStyles.primary.invisible.button,
|
|
513
|
-
color: "primary",
|
|
514
|
-
variant: "invisible"
|
|
515
|
-
},
|
|
502
|
+
{ className: colorStyles.primary.solid.button, color: "primary", variant: "solid" },
|
|
503
|
+
{ className: colorStyles.primary.assistive.button, color: "primary", variant: "assistive" },
|
|
504
|
+
{ className: colorStyles.primary.outlined.button, color: "primary", variant: "outlined" },
|
|
505
|
+
{ className: colorStyles.primary.invisible.button, color: "primary", variant: "invisible" },
|
|
516
506
|
// Accent 색상 조합
|
|
517
|
-
{
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
},
|
|
522
|
-
{
|
|
523
|
-
className: colorStyles.accent.outlined.button,
|
|
524
|
-
color: "accent",
|
|
525
|
-
variant: "outlined"
|
|
526
|
-
},
|
|
527
|
-
{
|
|
528
|
-
className: colorStyles.accent.invisible.button,
|
|
529
|
-
color: "accent",
|
|
530
|
-
variant: "invisible"
|
|
531
|
-
},
|
|
507
|
+
{ className: colorStyles.accent.solid.button, color: "accent", variant: "solid" },
|
|
508
|
+
{ className: colorStyles.accent.assistive.button, color: "accent", variant: "assistive" },
|
|
509
|
+
{ className: colorStyles.accent.outlined.button, color: "accent", variant: "outlined" },
|
|
510
|
+
{ className: colorStyles.accent.invisible.button, color: "accent", variant: "invisible" },
|
|
532
511
|
// Critical 색상 조합
|
|
512
|
+
{ className: colorStyles.critical.solid.button, color: "critical", variant: "solid" },
|
|
513
|
+
{ className: colorStyles.critical.assistive.button, color: "critical", variant: "assistive" },
|
|
514
|
+
{ className: colorStyles.critical.outlined.button, color: "critical", variant: "outlined" },
|
|
515
|
+
{ className: colorStyles.critical.invisible.button, color: "critical", variant: "invisible" },
|
|
516
|
+
// background 표면은 outlined/invisible 에서만 추가
|
|
533
517
|
{
|
|
534
|
-
className:
|
|
535
|
-
|
|
536
|
-
variant: "
|
|
537
|
-
},
|
|
538
|
-
{
|
|
539
|
-
className: colorStyles.critical.outlined.button,
|
|
540
|
-
color: "critical",
|
|
541
|
-
variant: "outlined"
|
|
542
|
-
},
|
|
543
|
-
{
|
|
544
|
-
className: colorStyles.critical.invisible.button,
|
|
545
|
-
color: "critical",
|
|
546
|
-
variant: "invisible"
|
|
547
|
-
},
|
|
548
|
-
// Assistive 색상 조합 (contained만 지원)
|
|
549
|
-
{
|
|
550
|
-
className: colorStyles.assistive.contained.button,
|
|
551
|
-
color: "assistive",
|
|
552
|
-
variant: "contained"
|
|
553
|
-
},
|
|
554
|
-
// Inverse 색상 조합 (contained만 지원)
|
|
555
|
-
{
|
|
556
|
-
className: colorStyles.inverse.contained.button,
|
|
557
|
-
color: "inverse",
|
|
558
|
-
variant: "contained"
|
|
518
|
+
className: "bg-elevation-elevation-0",
|
|
519
|
+
background: "fill",
|
|
520
|
+
variant: ["outlined", "invisible"]
|
|
559
521
|
}
|
|
560
522
|
],
|
|
561
523
|
defaultVariants: {
|
|
524
|
+
background: "none",
|
|
562
525
|
color: "primary",
|
|
563
526
|
size: "medium",
|
|
564
|
-
variant: "
|
|
527
|
+
variant: "solid"
|
|
565
528
|
},
|
|
566
529
|
variants: {
|
|
530
|
+
background: {
|
|
531
|
+
none: "",
|
|
532
|
+
fill: ""
|
|
533
|
+
},
|
|
567
534
|
color: {
|
|
568
535
|
accent: "",
|
|
569
|
-
assistive: "",
|
|
570
536
|
critical: "",
|
|
571
|
-
inverse: "",
|
|
572
537
|
primary: ""
|
|
573
538
|
},
|
|
574
539
|
size: {
|
|
@@ -579,9 +544,10 @@ var buttonVariants = utils.cva(
|
|
|
579
544
|
xlarge: "h-12 gap-1 px-3 text-title-2 font-medium"
|
|
580
545
|
},
|
|
581
546
|
variant: {
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
547
|
+
solid: "",
|
|
548
|
+
assistive: "",
|
|
549
|
+
outlined: "",
|
|
550
|
+
invisible: ""
|
|
585
551
|
}
|
|
586
552
|
}
|
|
587
553
|
}
|
|
@@ -596,27 +562,31 @@ var IconSizeMap = {
|
|
|
596
562
|
var Button = React.forwardRef(
|
|
597
563
|
({
|
|
598
564
|
className,
|
|
599
|
-
variant = "
|
|
565
|
+
variant = "solid",
|
|
600
566
|
color = "primary",
|
|
567
|
+
background,
|
|
601
568
|
size = "medium",
|
|
602
569
|
icon,
|
|
603
570
|
children,
|
|
604
571
|
...props
|
|
605
572
|
}, ref) => {
|
|
606
|
-
const validColorStyle = color === "assistive" || color === "inverse" ? colorStyles[color].contained : colorStyles[color][variant];
|
|
607
573
|
const content = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
608
574
|
icon && React.cloneElement(icon, {
|
|
609
575
|
className: utils.cn(
|
|
610
576
|
"shrink-0 [&>path]:fill-current",
|
|
611
|
-
|
|
577
|
+
colorStyles[color][variant].icon,
|
|
612
578
|
icon.props.className
|
|
613
579
|
),
|
|
614
|
-
size: icon.props.size ?? IconSizeMap[size
|
|
580
|
+
size: icon.props.size ?? IconSizeMap[size]
|
|
615
581
|
}),
|
|
616
582
|
typeof children === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
617
583
|
"span",
|
|
618
584
|
{
|
|
619
|
-
className: utils.cn(
|
|
585
|
+
className: utils.cn(
|
|
586
|
+
"truncate",
|
|
587
|
+
size === "xlarge" ? "px-1" : "px-0.5",
|
|
588
|
+
colorStyles[color][variant].text
|
|
589
|
+
),
|
|
620
590
|
children
|
|
621
591
|
}
|
|
622
592
|
) : children
|
|
@@ -626,6 +596,7 @@ var Button = React.forwardRef(
|
|
|
626
596
|
{
|
|
627
597
|
className: utils.cn(
|
|
628
598
|
buttonVariants({
|
|
599
|
+
background,
|
|
629
600
|
className,
|
|
630
601
|
color,
|
|
631
602
|
size,
|
|
@@ -649,21 +620,11 @@ var iconButtonSizeClasses = {
|
|
|
649
620
|
xlarge: "size-12"
|
|
650
621
|
};
|
|
651
622
|
var IconButton = React.forwardRef(
|
|
652
|
-
({
|
|
653
|
-
className,
|
|
654
|
-
tooltip,
|
|
655
|
-
variant = "contained",
|
|
656
|
-
icon,
|
|
657
|
-
size = "medium",
|
|
658
|
-
color = "primary",
|
|
659
|
-
...props
|
|
660
|
-
}, ref) => {
|
|
623
|
+
({ className, tooltip, icon, size = "medium", ...props }, ref) => {
|
|
661
624
|
const buttonProps = {
|
|
662
625
|
className: utils.cn(iconButtonSizeClasses[size], "px-0", className),
|
|
663
|
-
color,
|
|
664
626
|
icon,
|
|
665
627
|
size,
|
|
666
|
-
variant,
|
|
667
628
|
...props
|
|
668
629
|
};
|
|
669
630
|
return /* @__PURE__ */ jsxRuntime.jsx(chunkWYZY23QK_js.ConditionalTooltip, { tooltip, children: /* @__PURE__ */ jsxRuntime.jsx(Button, { ref, ...buttonProps }) });
|
|
@@ -710,7 +671,7 @@ var ButtonGroup = React.forwardRef(
|
|
|
710
671
|
onClick: item.onClick,
|
|
711
672
|
size
|
|
712
673
|
};
|
|
713
|
-
return /* @__PURE__ */ jsxRuntime.jsx(chunkWYZY23QK_js.ConditionalTooltip, { tooltip: item.tooltip, children: variant === "contained" ? /* @__PURE__ */ jsxRuntime.jsx(IconButton, { ...iconBaseProps,
|
|
674
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkWYZY23QK_js.ConditionalTooltip, { tooltip: item.tooltip, children: variant === "contained" ? /* @__PURE__ */ jsxRuntime.jsx(IconButton, { ...iconBaseProps, variant: "assistive" }) : /* @__PURE__ */ jsxRuntime.jsx(IconButton, { ...iconBaseProps, color: "primary", variant: "outlined" }) }, item.id);
|
|
714
675
|
}
|
|
715
676
|
const buttonBaseProps = {
|
|
716
677
|
className: utils.cn(roundedClasses, dividerClasses, mergeClasses, hoverClasses),
|
|
@@ -718,7 +679,7 @@ var ButtonGroup = React.forwardRef(
|
|
|
718
679
|
onClick: item.onClick,
|
|
719
680
|
size
|
|
720
681
|
};
|
|
721
|
-
return /* @__PURE__ */ jsxRuntime.jsx(chunkWYZY23QK_js.ConditionalTooltip, { tooltip: item.tooltip, children: variant === "contained" ? /* @__PURE__ */ jsxRuntime.jsx(Button, { ...buttonBaseProps,
|
|
682
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkWYZY23QK_js.ConditionalTooltip, { tooltip: item.tooltip, children: variant === "contained" ? /* @__PURE__ */ jsxRuntime.jsx(Button, { ...buttonBaseProps, variant: "assistive", children: item.label }) : /* @__PURE__ */ jsxRuntime.jsx(Button, { ...buttonBaseProps, color: "primary", variant: "outlined", children: item.label }) }, item.id);
|
|
722
683
|
})
|
|
723
684
|
}
|
|
724
685
|
);
|
|
@@ -1697,8 +1658,7 @@ Modal.Close = React.forwardRef(({ size, ...props }, ref) => {
|
|
|
1697
1658
|
{
|
|
1698
1659
|
...props,
|
|
1699
1660
|
ref,
|
|
1700
|
-
|
|
1701
|
-
variant: "contained",
|
|
1661
|
+
variant: "assistive",
|
|
1702
1662
|
size: size ?? (modalSize === "fullsize" ? "large" : "medium")
|
|
1703
1663
|
}
|
|
1704
1664
|
) });
|
|
@@ -1846,7 +1806,7 @@ Modal.Action = React.forwardRef(
|
|
|
1846
1806
|
...props,
|
|
1847
1807
|
ref,
|
|
1848
1808
|
color,
|
|
1849
|
-
variant: "
|
|
1809
|
+
variant: "solid",
|
|
1850
1810
|
size: size ?? (modalSize === "fullsize" ? "large" : "medium")
|
|
1851
1811
|
}
|
|
1852
1812
|
) });
|
|
@@ -2246,7 +2206,7 @@ MessageBox.Actions = React.forwardRef(
|
|
|
2246
2206
|
({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: utils.cn("flex flex-row gap-2", className), ...props })
|
|
2247
2207
|
);
|
|
2248
2208
|
MessageBox.Cancel = React.forwardRef(
|
|
2249
|
-
({ size = "medium", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Close, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(Button, { ref,
|
|
2209
|
+
({ size = "medium", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Close, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(Button, { ref, variant: "assistive", size, ...props }) })
|
|
2250
2210
|
);
|
|
2251
2211
|
MessageBox.Action = React.forwardRef(
|
|
2252
2212
|
({ size = "medium", ...props }, ref) => {
|
|
@@ -2256,7 +2216,7 @@ MessageBox.Action = React.forwardRef(
|
|
|
2256
2216
|
{
|
|
2257
2217
|
ref,
|
|
2258
2218
|
color: variant === "critical" ? "critical" : "primary",
|
|
2259
|
-
variant: "
|
|
2219
|
+
variant: "solid",
|
|
2260
2220
|
size,
|
|
2261
2221
|
...props
|
|
2262
2222
|
}
|