@zenkigen-inc/component-ui 1.9.4 → 1.9.7

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.
Files changed (49) hide show
  1. package/dist/breadcrumb/breadcrumb-item.d.ts +1 -1
  2. package/dist/breadcrumb/breadcrumb.d.ts +1 -1
  3. package/dist/button/button.d.ts +1 -1
  4. package/dist/checkbox/checkbox.d.ts +1 -1
  5. package/dist/dropdown/dropdown-context.d.ts +1 -1
  6. package/dist/dropdown/dropdown-item.d.ts +1 -1
  7. package/dist/dropdown/dropdown-menu.d.ts +2 -2
  8. package/dist/dropdown/dropdown.d.ts +2 -2
  9. package/dist/dropdown/type.d.ts +1 -1
  10. package/dist/heading/heading.d.ts +1 -1
  11. package/dist/hooks/use-outside-click.d.ts +1 -1
  12. package/dist/icon/icon.d.ts +2 -2
  13. package/dist/icon-button/icon-button.d.ts +2 -2
  14. package/dist/index.esm.js +99 -69
  15. package/dist/index.esm.js.map +1 -1
  16. package/dist/index.js +95 -81
  17. package/dist/index.js.map +1 -1
  18. package/dist/modal/modal-body.d.ts +1 -1
  19. package/dist/modal/modal-footer.d.ts +2 -1
  20. package/dist/modal/modal-header.d.ts +1 -1
  21. package/dist/modal/modal.d.ts +1 -1
  22. package/dist/notification-inline/notification-inline.d.ts +1 -1
  23. package/dist/radio/radio.d.ts +1 -1
  24. package/dist/search/search.d.ts +1 -1
  25. package/dist/select/select-context.d.ts +1 -1
  26. package/dist/select/select-list.d.ts +1 -1
  27. package/dist/select/select.d.ts +2 -2
  28. package/dist/select/type.d.ts +1 -1
  29. package/dist/select-sort/select-item.d.ts +1 -1
  30. package/dist/select-sort/select-sort.d.ts +1 -1
  31. package/dist/tab/tab-item.d.ts +2 -2
  32. package/dist/tab/tab.d.ts +2 -2
  33. package/dist/table/table-cell.d.ts +1 -1
  34. package/dist/table/table-row.d.ts +1 -1
  35. package/dist/table/table.d.ts +1 -1
  36. package/dist/tag/delete-icon.d.ts +1 -1
  37. package/dist/tag/tag.d.ts +1 -1
  38. package/dist/tag/type.d.ts +1 -1
  39. package/dist/text-area/text-area.d.ts +1 -1
  40. package/dist/text-input/text-input.d.ts +1 -1
  41. package/dist/toast/toast-provider.d.ts +2 -2
  42. package/dist/toast/toast.d.ts +2 -2
  43. package/dist/toggle/toggle.d.ts +1 -1
  44. package/dist/tooltip/tail-icon.d.ts +1 -1
  45. package/dist/tooltip/tooltip-content.d.ts +2 -2
  46. package/dist/tooltip/tooltip.d.ts +2 -2
  47. package/dist/tooltip/tooltip.hook.d.ts +2 -2
  48. package/dist/tooltip/type.d.ts +1 -1
  49. package/package.json +4 -4
@@ -1,2 +1,2 @@
1
- import { PropsWithChildren } from 'react';
1
+ import type { PropsWithChildren } from 'react';
2
2
  export declare const BreadcrumbItem: ({ children }: PropsWithChildren) => import("react").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { PropsWithChildren } from 'react';
1
+ import type { PropsWithChildren } from 'react';
2
2
  export declare function Breadcrumb({ children }: PropsWithChildren): import("react").JSX.Element;
3
3
  export declare namespace Breadcrumb {
4
4
  var Item: ({ children }: {
@@ -1,4 +1,4 @@
1
- import { ComponentPropsWithoutRef, CSSProperties, ElementType, PropsWithChildren, ReactNode } from 'react';
1
+ import type { ComponentPropsWithoutRef, CSSProperties, ElementType, PropsWithChildren, ReactNode } from 'react';
2
2
  type Size = 'small' | 'medium' | 'large';
3
3
  type Variant = 'fill' | 'fillDanger' | 'outline' | 'text';
4
4
  export type ElementAs = ElementType;
@@ -1,4 +1,4 @@
1
- import { ChangeEvent } from 'react';
1
+ import type { ChangeEvent } from 'react';
2
2
  type Props = {
3
3
  name?: string;
4
4
  value?: string;
@@ -1,4 +1,4 @@
1
- import { MutableRefObject } from 'react';
1
+ import type { MutableRefObject } from 'react';
2
2
  type UseDropdownReturnType = {
3
3
  isVisible: boolean;
4
4
  setIsVisible: React.Dispatch<React.SetStateAction<boolean>>;
@@ -1,4 +1,4 @@
1
- import { MouseEvent, PropsWithChildren } from 'react';
1
+ import type { MouseEvent, PropsWithChildren } from 'react';
2
2
  type Props = {
3
3
  color?: 'gray' | 'red';
4
4
  onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
@@ -1,5 +1,5 @@
1
- import { CSSProperties, PropsWithChildren } from 'react';
2
- import { DropdownHorizontalAlign, DropdownVerticalPosition } from './type';
1
+ import type { CSSProperties, PropsWithChildren } from 'react';
2
+ import type { DropdownHorizontalAlign, DropdownVerticalPosition } from './type';
3
3
  type Props = {
4
4
  maxHeight?: CSSProperties['height'];
5
5
  isNoPadding?: boolean;
@@ -1,5 +1,5 @@
1
- import { IconName } from '@zenkigen-inc/component-icons';
2
- import { MutableRefObject, PropsWithChildren, ReactElement } from 'react';
1
+ import type { IconName } from '@zenkigen-inc/component-icons';
2
+ import type { MutableRefObject, PropsWithChildren, ReactElement } from 'react';
3
3
  import { DropdownItem } from './dropdown-item';
4
4
  import { DropdownMenu } from './dropdown-menu';
5
5
  type Props = {
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import type { ReactNode } from 'react';
2
2
  export type DropdownItemType = {
3
3
  id: string;
4
4
  content: ReactNode;
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import type { ReactNode } from 'react';
2
2
  type Level = 1 | 2 | 3 | 4 | 5;
3
3
  type Props = {
4
4
  level: Level;
@@ -1,2 +1,2 @@
1
- import { RefObject } from 'react';
1
+ import type { RefObject } from 'react';
2
2
  export declare const useOutsideClick: <T extends HTMLElement = HTMLElement>(ref: RefObject<T>, handler: (event: Event) => void, enabled?: boolean) => void;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { IconName } from '@zenkigen-inc/component-icons';
2
+ import type { IconName } from '@zenkigen-inc/component-icons';
3
3
  import { iconColors } from '@zenkigen-inc/component-theme';
4
4
  type Size = 'x-small' | 'small' | 'medium' | 'large' | 'x-large';
5
5
  type Color = keyof typeof iconColors;
@@ -9,5 +9,5 @@ type Props = {
9
9
  color?: Color;
10
10
  isDisabled?: boolean;
11
11
  };
12
- export declare const Icon: ({ size, ...props }: Props) => import("react").JSX.Element;
12
+ export declare const Icon: ({ size, isDisabled, ...props }: Props) => import("react").JSX.Element;
13
13
  export {};
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { IconName } from '@zenkigen-inc/component-icons';
2
+ import type { IconName } from '@zenkigen-inc/component-icons';
3
3
  type Size = 'small' | 'medium' | 'large';
4
4
  type Variant = 'outline' | 'text';
5
5
  type Props = {
@@ -16,5 +16,5 @@ type Props = {
16
16
  isAnchor?: false;
17
17
  onClick?: () => void;
18
18
  });
19
- export declare function IconButton({ size, variant, ...props }: Props): import("react").JSX.Element;
19
+ export declare function IconButton({ size, variant, isNoPadding, isDisabled, ...props }: Props): import("react").JSX.Element;
20
20
  export {};
package/dist/index.esm.js CHANGED
@@ -31,15 +31,15 @@ function _objectWithoutPropertiesLoose(source, excluded) {
31
31
  return target;
32
32
  }
33
33
 
34
- var _excluded$7 = ["size"];
34
+ var _excluded$8 = ["size"];
35
35
  var isAsciiString = function isAsciiString(str) {
36
36
  return str.charCodeAt(0) < 256;
37
37
  };
38
38
  function Avatar(_ref) {
39
- var _props$userId, _clsx;
39
+ var _props$userId, _props$isDisabled, _clsx;
40
40
  var _ref$size = _ref.size,
41
41
  size = _ref$size === void 0 ? 'medium' : _ref$size,
42
- props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
42
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$8);
43
43
  var classes = clsx('flex items-center justify-center rounded-full text-textOnColor', (_clsx = {
44
44
  'w-16 h-16 typography-label1regular': size === 'x-large',
45
45
  'w-12 h-12 typography-label2regular': size === 'large',
@@ -47,8 +47,8 @@ function Avatar(_ref) {
47
47
  'w-8 h-8 typography-label4regular': size === 'small',
48
48
  'w-6 h-6 typography-label4regular': size === 'x-small',
49
49
  'bg-disabled01': props.isDisabled,
50
- 'bg-icon01': !props.userId
51
- }, _clsx[userColors[((_props$userId = props.userId) != null ? _props$userId : 0) % userColors.length]] = props.userId && !props.isDisabled, _clsx));
50
+ 'bg-icon01': props.userId == null
51
+ }, _clsx[userColors[((_props$userId = props.userId) != null ? _props$userId : 0) % userColors.length]] = props.userId != null && !((_props$isDisabled = props.isDisabled) != null ? _props$isDisabled : false), _clsx));
52
52
  var trimmedFirstName = props.firstName.replace(' ', ' ').trim();
53
53
  var trimmedLastName = props.lastName.replace(' ', ' ').trim().trim();
54
54
  var nameOnIcon = isAsciiString(trimmedLastName) ? trimmedFirstName.slice(0, 1).toUpperCase() + trimmedLastName.slice(0, 1).toUpperCase() : (trimmedLastName + trimmedFirstName).slice(0, 2);
@@ -78,7 +78,7 @@ function Breadcrumb(_ref) {
78
78
  }
79
79
  Breadcrumb.Item = BreadcrumbItem;
80
80
 
81
- var _excluded$6 = ["size", "variant", "isDisabled", "isSelected", "width", "borderRadius", "before", "after", "elementAs", "children"];
81
+ var _excluded$7 = ["size", "variant", "isDisabled", "isSelected", "width", "borderRadius", "before", "after", "elementAs", "children"];
82
82
  var Button = function Button(_ref) {
83
83
  var _clsx;
84
84
  var _ref$size = _ref.size,
@@ -86,21 +86,22 @@ var Button = function Button(_ref) {
86
86
  _ref$variant = _ref.variant,
87
87
  variant = _ref$variant === void 0 ? 'fill' : _ref$variant,
88
88
  isDisabled = _ref.isDisabled,
89
- isSelected = _ref.isSelected,
89
+ _ref$isSelected = _ref.isSelected,
90
+ isSelected = _ref$isSelected === void 0 ? false : _ref$isSelected,
90
91
  width = _ref.width,
91
92
  borderRadius = _ref.borderRadius,
92
93
  before = _ref.before,
93
94
  after = _ref.after,
94
95
  elementAs = _ref.elementAs,
95
96
  children = _ref.children,
96
- props = _objectWithoutPropertiesLoose(_ref, _excluded$6);
97
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
97
98
  var baseClasses = clsx('flex shrink-0 items-center justify-center gap-1', buttonColors[variant].hover, buttonColors[variant].active, buttonColors[variant].disabled, focusVisible.normal, (_clsx = {
98
99
  'h-6 px-2.5': size === 'small',
99
100
  'h-8 px-3': size === 'medium',
100
101
  'h-10 px-4 leading-[24px]': size === 'large',
101
102
  'inline-flex': elementAs === 'a'
102
- }, _clsx[buttonColors[variant].selected] = isSelected, _clsx[buttonColors[variant].base] = !isSelected, _clsx['hover:text-textOnColor active:text-textOnColor [&:hover>*]:fill-iconOnColor [&:active>*]:fill-iconOnColor'] = props.isSelected && variant !== 'outline' && variant !== 'text', _clsx['pointer-events-none'] = isDisabled, _clsx['rounded-button'] = !borderRadius, _clsx['typography-label1regular'] = size === 'large', _clsx['typography-label2regular'] = size !== 'large', _clsx));
103
- var Component = elementAs || 'button';
103
+ }, _clsx[buttonColors[variant].selected] = isSelected, _clsx[buttonColors[variant].base] = !isSelected, _clsx['hover:text-textOnColor active:text-textOnColor [&:hover>*]:fill-iconOnColor [&:active>*]:fill-iconOnColor'] = isSelected && variant !== 'outline' && variant !== 'text', _clsx['pointer-events-none'] = isDisabled, _clsx['rounded-button'] = borderRadius == null, _clsx['typography-label1regular'] = size === 'large', _clsx['typography-label2regular'] = size !== 'large', _clsx));
104
+ var Component = elementAs != null ? elementAs : 'button';
104
105
  return /*#__PURE__*/jsxs(Component, _extends({
105
106
  className: baseClasses,
106
107
  style: {
@@ -224,7 +225,7 @@ function Checkbox(_ref) {
224
225
  })]
225
226
  })
226
227
  })]
227
- }), /*#__PURE__*/jsx("label", {
228
+ }), label != null && /*#__PURE__*/jsx("label", {
228
229
  htmlFor: id,
229
230
  className: labelClasses,
230
231
  children: label
@@ -31096,8 +31097,9 @@ var useOutsideClick = function useOutsideClick(ref, handler, enabled) {
31096
31097
  }
31097
31098
  useEffect(function () {
31098
31099
  var listener = function listener(event) {
31100
+ var _event$target;
31099
31101
  var element = ref == null ? void 0 : ref.current;
31100
- if (!element || element.contains((event == null ? void 0 : event.target) || null)) {
31102
+ if (element == null || Boolean(element.contains((_event$target = event == null ? void 0 : event.target) != null ? _event$target : null))) {
31101
31103
  return;
31102
31104
  }
31103
31105
  handler(event);
@@ -31111,15 +31113,17 @@ var useOutsideClick = function useOutsideClick(ref, handler, enabled) {
31111
31113
  }, [ref, enabled, handler]);
31112
31114
  };
31113
31115
 
31114
- var _excluded$5 = ["size"];
31116
+ var _excluded$6 = ["size", "isDisabled"];
31115
31117
  var Icon = function Icon(_ref) {
31116
31118
  var _clsx;
31117
31119
  var _ref$size = _ref.size,
31118
31120
  size = _ref$size === void 0 ? 'medium' : _ref$size,
31119
- props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
31121
+ _ref$isDisabled = _ref.isDisabled,
31122
+ isDisabled = _ref$isDisabled === void 0 ? false : _ref$isDisabled,
31123
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$6);
31120
31124
  var classes = clsx('inline-block shrink-0', (_clsx = {
31121
- 'fill-disabled01': props.isDisabled
31122
- }, _clsx[iconColors.icon01] = !props.isDisabled && props.color === 'icon01', _clsx[iconColors.icon01Dark] = !props.isDisabled && props.color === 'icon01Dark', _clsx[iconColors.icon02] = !props.isDisabled && props.color === 'icon02', _clsx[iconColors.icon02Dark] = !props.isDisabled && props.color === 'icon02Dark', _clsx[iconColors.icon03] = !props.isDisabled && props.color === 'icon03', _clsx[iconColors.icon03Dark] = !props.isDisabled && props.color === 'icon03Dark', _clsx[iconColors.iconOnColor] = !props.isDisabled && props.color === 'iconOnColor', _clsx['w-3 h-3'] = size === 'x-small', _clsx['w-4 h-4'] = size === 'small', _clsx['w-6 h-6'] = size === 'medium', _clsx['w-8 h-8'] = size === 'large', _clsx['w-10 h-10'] = size === 'x-large', _clsx));
31125
+ 'fill-disabled01': isDisabled
31126
+ }, _clsx[iconColors.icon01] = !isDisabled && props.color === 'icon01', _clsx[iconColors.icon01Dark] = !isDisabled && props.color === 'icon01Dark', _clsx[iconColors.icon02] = !isDisabled && props.color === 'icon02', _clsx[iconColors.icon02Dark] = !isDisabled && props.color === 'icon02Dark', _clsx[iconColors.icon03] = !isDisabled && props.color === 'icon03', _clsx[iconColors.icon03Dark] = !isDisabled && props.color === 'icon03Dark', _clsx[iconColors.iconOnColor] = !isDisabled && props.color === 'iconOnColor', _clsx['w-3 h-3'] = size === 'x-small', _clsx['w-4 h-4'] = size === 'small', _clsx['w-6 h-6'] = size === 'medium', _clsx['w-8 h-8'] = size === 'large', _clsx['w-10 h-10'] = size === 'x-large', _clsx));
31123
31127
  return /*#__PURE__*/jsx("span", {
31124
31128
  className: classes,
31125
31129
  children: iconElements[props.name]
@@ -31168,7 +31172,8 @@ function DropdownItem(_ref) {
31168
31172
  function DropdownMenu(_ref) {
31169
31173
  var children = _ref.children,
31170
31174
  maxHeight = _ref.maxHeight,
31171
- isNoPadding = _ref.isNoPadding,
31175
+ _ref$isNoPadding = _ref.isNoPadding,
31176
+ isNoPadding = _ref$isNoPadding === void 0 ? false : _ref$isNoPadding,
31172
31177
  _ref$verticalPosition = _ref.verticalPosition,
31173
31178
  verticalPosition = _ref$verticalPosition === void 0 ? 'bottom' : _ref$verticalPosition,
31174
31179
  _ref$horizontalAlign = _ref.horizontalAlign,
@@ -31245,11 +31250,11 @@ function Dropdown(_ref) {
31245
31250
  var wrapperClasses = clsx$1('relative flex shrink-0 items-center gap-1 rounded', {
31246
31251
  'cursor-not-allowed': isDisabled
31247
31252
  });
31248
- var childrenButtonClasses = clsx$1('flex items-center justify-center rounded p-1 hover:bg-hover02 active:bg-active02', focusVisible.normal, {
31253
+ var childrenButtonClasses = clsx$1('flex items-center justify-center rounded bg-uiBackground01 p-1 hover:bg-hover02 active:bg-active02', focusVisible.normal, {
31249
31254
  'pointer-events-none': isDisabled,
31250
31255
  'border border-uiBorder02': variant === 'outline'
31251
31256
  });
31252
- var buttonClasses = clsx$1('flex items-center rounded', buttonColors[variant].base, buttonColors[variant].hover, buttonColors[variant].active, buttonColors[variant].disabled, focusVisible.normal, {
31257
+ var buttonClasses = clsx$1('flex items-center rounded bg-uiBackground01', buttonColors[variant].base, buttonColors[variant].hover, buttonColors[variant].active, buttonColors[variant].disabled, focusVisible.normal, {
31253
31258
  'pointer-events-none': isDisabled,
31254
31259
  'h-6 px-2': size === 'x-small' || size === 'small',
31255
31260
  'h-8 px-4': size === 'medium',
@@ -31309,7 +31314,7 @@ function Dropdown(_ref) {
31309
31314
  size: "small"
31310
31315
  })
31311
31316
  })]
31312
- }), !portalTargetRef ? children : portalTargetRef && portalTargetRef.current && /*#__PURE__*/reactDom.createPortal(children, portalTargetRef.current)]
31317
+ }), !portalTargetRef ? children : portalTargetRef != null && portalTargetRef.current && /*#__PURE__*/reactDom.createPortal(children, portalTargetRef.current)]
31313
31318
  })
31314
31319
  });
31315
31320
  }
@@ -31373,23 +31378,27 @@ function Heading(props) {
31373
31378
  });
31374
31379
  }
31375
31380
 
31376
- var _excluded$4 = ["size", "variant"];
31381
+ var _excluded$5 = ["size", "variant", "isNoPadding", "isDisabled"];
31377
31382
  function IconButton(_ref) {
31378
31383
  var _ref$size = _ref.size,
31379
31384
  size = _ref$size === void 0 ? 'medium' : _ref$size,
31380
31385
  _ref$variant = _ref.variant,
31381
31386
  variant = _ref$variant === void 0 ? 'outline' : _ref$variant,
31382
- props = _objectWithoutPropertiesLoose(_ref, _excluded$4);
31387
+ _ref$isNoPadding = _ref.isNoPadding,
31388
+ isNoPadding = _ref$isNoPadding === void 0 ? false : _ref$isNoPadding,
31389
+ _ref$isDisabled = _ref.isDisabled,
31390
+ isDisabled = _ref$isDisabled === void 0 ? false : _ref$isDisabled,
31391
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
31383
31392
  var baseClasses = clsx('typography-label1regular flex items-center justify-center gap-1 rounded', buttonColors[variant].base, buttonColors[variant].hover, buttonColors[variant].active, buttonColors[variant].disabled, focusVisible.normal, {
31384
- 'h-4 w-4': size === 'small' && props.isNoPadding,
31385
- 'h-6 w-6': size === 'small' && !props.isNoPadding || (size === 'medium' || size === 'large') && props.isNoPadding,
31386
- 'h-8 w-8': size === 'medium' && !props.isNoPadding,
31387
- 'h-10 w-10': size === 'large' && !props.isNoPadding,
31393
+ 'h-4 w-4': size === 'small' && isNoPadding,
31394
+ 'h-6 w-6': size === 'small' && !isNoPadding || (size === 'medium' || size === 'large') && isNoPadding,
31395
+ 'h-8 w-8': size === 'medium' && !isNoPadding,
31396
+ 'h-10 w-10': size === 'large' && !isNoPadding,
31388
31397
  'inline-flex': props.isAnchor,
31389
- 'pointer-events-none': props.isDisabled
31398
+ 'pointer-events-none': isDisabled
31390
31399
  });
31391
31400
  var iconSize = size === 'small' ? 'small' : 'medium';
31392
- if (props.isAnchor) {
31401
+ if (props.isAnchor === true) {
31393
31402
  return /*#__PURE__*/jsx("a", {
31394
31403
  className: baseClasses,
31395
31404
  href: props.href,
@@ -31403,7 +31412,7 @@ function IconButton(_ref) {
31403
31412
  return /*#__PURE__*/jsx("button", {
31404
31413
  type: "button",
31405
31414
  className: baseClasses,
31406
- disabled: props.isDisabled,
31415
+ disabled: isDisabled,
31407
31416
  onClick: props.onClick,
31408
31417
  children: /*#__PURE__*/jsx(Icon, {
31409
31418
  name: props.icon,
@@ -31495,7 +31504,8 @@ var ModalContext = /*#__PURE__*/createContext({
31495
31504
 
31496
31505
  function ModalFooter(_ref) {
31497
31506
  var children = _ref.children,
31498
- isNoBorder = _ref.isNoBorder;
31507
+ _ref$isNoBorder = _ref.isNoBorder,
31508
+ isNoBorder = _ref$isNoBorder === void 0 ? false : _ref$isNoBorder;
31499
31509
  var wrapperClasses = clsx$1('flex w-full shrink-0 items-center rounded-b-lg px-6 py-4', {
31500
31510
  'border-t-[1px] border-uiBorder01': !isNoBorder
31501
31511
  });
@@ -31507,7 +31517,8 @@ function ModalFooter(_ref) {
31507
31517
 
31508
31518
  function ModalHeader(_ref) {
31509
31519
  var children = _ref.children,
31510
- isNoBorder = _ref.isNoBorder;
31520
+ _ref$isNoBorder = _ref.isNoBorder,
31521
+ isNoBorder = _ref$isNoBorder === void 0 ? false : _ref$isNoBorder;
31511
31522
  var _useContext = useContext(ModalContext),
31512
31523
  onClose = _useContext.onClose;
31513
31524
  var headerClasses = clsx$1('typography-h5 flex w-full shrink-0 items-center justify-between rounded-t-lg px-6 text-text01', {
@@ -31567,13 +31578,13 @@ Modal.Body = ModalBody;
31567
31578
  Modal.Header = ModalHeader;
31568
31579
  Modal.Footer = ModalFooter;
31569
31580
 
31570
- var _excluded$3 = ["state", "size"];
31581
+ var _excluded$4 = ["state", "size"];
31571
31582
  function NotificationInline(_ref) {
31572
31583
  var _ref$state = _ref.state,
31573
31584
  state = _ref$state === void 0 ? 'default' : _ref$state,
31574
31585
  _ref$size = _ref.size,
31575
31586
  size = _ref$size === void 0 ? 'medium' : _ref$size,
31576
- props = _objectWithoutPropertiesLoose(_ref, _excluded$3);
31587
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$4);
31577
31588
  var wrapperClasses = clsx('typography-body2regular flex items-center gap-1 rounded text-text01', {
31578
31589
  'bg-uiBackgroundError': state === 'attention',
31579
31590
  'bg-uiBackgroundWarning': state === 'warning',
@@ -31610,7 +31621,7 @@ function NotificationInline(_ref) {
31610
31621
  }), /*#__PURE__*/jsx("p", {
31611
31622
  className: "flex-1",
31612
31623
  children: props.children
31613
- }), props.showClose && /*#__PURE__*/jsx("div", {
31624
+ }), props.showClose === true && /*#__PURE__*/jsx("div", {
31614
31625
  className: "flex items-center",
31615
31626
  children: /*#__PURE__*/jsx(IconButton, {
31616
31627
  icon: "close",
@@ -31787,11 +31798,12 @@ function SelectList$1(_ref) {
31787
31798
  setIsOptionListOpen(false);
31788
31799
  };
31789
31800
  useLayoutEffect(function () {
31790
- if (maxHeight && ref.current) {
31791
- var element = Array.from(ref.current.children || []).find(function (item) {
31801
+ if (maxHeight != null && ref.current) {
31802
+ var _ref$current$children;
31803
+ var element = Array.from((_ref$current$children = ref.current.children) != null ? _ref$current$children : []).find(function (item) {
31792
31804
  return item.getAttribute('data-id') === (selectedOption == null ? void 0 : selectedOption.id);
31793
31805
  });
31794
- if (element && ref.current.scroll) {
31806
+ if (element != null && ref.current.scroll != null) {
31795
31807
  var wrapRect = ref.current.getBoundingClientRect();
31796
31808
  var rect = element.getBoundingClientRect();
31797
31809
  ref.current.scroll(0, rect.top - wrapRect.top - wrapRect.height / 2 + rect.height / 2);
@@ -31812,7 +31824,7 @@ function SelectList$1(_ref) {
31812
31824
  maxHeight: maxHeight
31813
31825
  },
31814
31826
  ref: ref,
31815
- children: [children, placeholder && selectedOption !== null && /*#__PURE__*/jsx("li", {
31827
+ children: [children, placeholder != null && selectedOption !== null && /*#__PURE__*/jsx("li", {
31816
31828
  children: /*#__PURE__*/jsx("button", {
31817
31829
  className: deselectButtonClasses,
31818
31830
  type: "button",
@@ -31850,7 +31862,7 @@ function Select(_ref) {
31850
31862
  return !prev;
31851
31863
  });
31852
31864
  };
31853
- var wrapperClasses = clsx$1('relative flex shrink-0 items-center gap-1 rounded', {
31865
+ var wrapperClasses = clsx$1('relative flex shrink-0 items-center gap-1 rounded bg-uiBackground01', {
31854
31866
  'h-6': size === 'x-small' || size === 'small',
31855
31867
  'h-8': size === 'medium',
31856
31868
  'h-10': size === 'large',
@@ -31894,7 +31906,7 @@ function Select(_ref) {
31894
31906
  name: selectedOption.icon,
31895
31907
  size: size === 'large' ? 'medium' : 'small'
31896
31908
  })
31897
- }) : placeholder && placeholderIcon && /*#__PURE__*/jsx("div", {
31909
+ }) : placeholder != null && placeholderIcon && /*#__PURE__*/jsx("div", {
31898
31910
  className: "mr-1 flex",
31899
31911
  children: /*#__PURE__*/jsx(Icon, {
31900
31912
  name: placeholderIcon,
@@ -31904,7 +31916,7 @@ function Select(_ref) {
31904
31916
  className: labelClasses,
31905
31917
  children: /*#__PURE__*/jsx("div", {
31906
31918
  className: "truncate",
31907
- children: selectedOption ? selectedOption.label : placeholder && placeholder
31919
+ children: selectedOption ? selectedOption.label : placeholder != null && placeholder
31908
31920
  })
31909
31921
  }), /*#__PURE__*/jsx("div", {
31910
31922
  className: "ml-auto flex items-center",
@@ -31965,7 +31977,7 @@ function PaginationSelect(_ref) {
31965
31977
  return option && _onChange(Number(option.value));
31966
31978
  },
31967
31979
  isDisabled: pageMax === 0,
31968
- children: optionsList && optionsList.map(function (option) {
31980
+ children: optionsList.map(function (option) {
31969
31981
  return /*#__PURE__*/jsx(Select.Option, {
31970
31982
  option: option
31971
31983
  }, option.id);
@@ -32073,14 +32085,14 @@ function Radio(_ref) {
32073
32085
  });
32074
32086
  }
32075
32087
 
32076
- var _excluded$2 = ["width", "size"];
32088
+ var _excluded$3 = ["width", "size"];
32077
32089
  var Search = /*#__PURE__*/forwardRef(function (_ref, ref) {
32078
32090
  var _clsx;
32079
32091
  var _ref$width = _ref.width,
32080
32092
  width = _ref$width === void 0 ? '100%' : _ref$width,
32081
32093
  _ref$size = _ref.size,
32082
32094
  size = _ref$size === void 0 ? 'medium' : _ref$size,
32083
- props = _objectWithoutPropertiesLoose(_ref, _excluded$2);
32095
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$3);
32084
32096
  var classes = clsx('flex items-center rounded-full border border-uiBorder02 focus-within:border-activeInput', {
32085
32097
  'h-8 px-3': size === 'medium'
32086
32098
  }, {
@@ -32198,7 +32210,8 @@ function SelectSort(_ref) {
32198
32210
  sortOrder = _ref.sortOrder,
32199
32211
  _ref$isDisabled = _ref.isDisabled,
32200
32212
  isDisabled = _ref$isDisabled === void 0 ? false : _ref$isDisabled,
32201
- isSortKey = _ref.isSortKey,
32213
+ _ref$isSortKey = _ref.isSortKey,
32214
+ isSortKey = _ref$isSortKey === void 0 ? false : _ref$isSortKey,
32202
32215
  onChange = _ref.onChange,
32203
32216
  onClickDeselect = _ref.onClickDeselect;
32204
32217
  var _useState = useState(false),
@@ -32265,17 +32278,21 @@ function SelectSort(_ref) {
32265
32278
  });
32266
32279
  }
32267
32280
 
32268
- var TabItem = function TabItem(props) {
32281
+ var _excluded$2 = ["isSelected"];
32282
+ var TabItem = function TabItem(_ref) {
32283
+ var _ref$isSelected = _ref.isSelected,
32284
+ isSelected = _ref$isSelected === void 0 ? false : _ref$isSelected,
32285
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$2);
32269
32286
  var classes = clsx('relative z-0 flex py-2 leading-[24px] before:absolute before:inset-x-0 before:bottom-0 before:h-px hover:text-text01 disabled:pointer-events-none disabled:text-disabled01', {
32270
- 'typography-label2regular': !props.isSelected,
32271
- 'text-interactive02 hover:before:bg-uiBorder02Dark': !props.isSelected,
32272
- 'typography-label2bold': props.isSelected,
32273
- 'before:bg-interactive01 hover:before:bg-interactive01 pointer-events-none': props.isSelected
32287
+ 'typography-label2regular': !isSelected,
32288
+ 'text-interactive02 hover:before:bg-uiBorder02Dark': !isSelected,
32289
+ 'typography-label2bold': isSelected,
32290
+ 'before:bg-interactive01 hover:before:bg-interactive01 pointer-events-none': isSelected
32274
32291
  });
32275
32292
  return /*#__PURE__*/jsx("button", {
32276
32293
  type: "button",
32277
32294
  role: "tab",
32278
- "aria-selected": props.isSelected,
32295
+ "aria-selected": isSelected,
32279
32296
  className: classes,
32280
32297
  disabled: props.isDisabled,
32281
32298
  onClick: function onClick() {
@@ -32306,7 +32323,8 @@ function TableCell(_ref) {
32306
32323
 
32307
32324
  function TableRow(_ref) {
32308
32325
  var children = _ref.children,
32309
- isHoverBackgroundVisible = _ref.isHoverBackgroundVisible;
32326
+ _ref$isHoverBackgroun = _ref.isHoverBackgroundVisible,
32327
+ isHoverBackgroundVisible = _ref$isHoverBackgroun === void 0 ? false : _ref$isHoverBackgroun;
32310
32328
  var rowClasses = clsx$1('contents', isHoverBackgroundVisible && '[&:hover>div]:bg-hoverUi02');
32311
32329
  return /*#__PURE__*/jsx("div", {
32312
32330
  className: rowClasses,
@@ -32386,20 +32404,23 @@ function Tag(_ref) {
32386
32404
  });
32387
32405
  }
32388
32406
 
32389
- var _excluded$1 = ["size", "isResizable", "isError"];
32407
+ var _excluded$1 = ["size", "isResizable", "isError", "disabled"];
32390
32408
  var TextArea = /*#__PURE__*/forwardRef(function (_ref, ref) {
32391
32409
  var _clsx;
32392
32410
  var _ref$size = _ref.size,
32393
32411
  size = _ref$size === void 0 ? 'medium' : _ref$size,
32394
32412
  _ref$isResizable = _ref.isResizable,
32395
32413
  isResizable = _ref$isResizable === void 0 ? false : _ref$isResizable,
32396
- isError = _ref.isError,
32414
+ _ref$isError = _ref.isError,
32415
+ isError = _ref$isError === void 0 ? false : _ref$isError,
32416
+ _ref$disabled = _ref.disabled,
32417
+ disabled = _ref$disabled === void 0 ? false : _ref$disabled,
32397
32418
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1);
32398
32419
  var classes = clsx('w-full rounded border outline-0 placeholder:text-textPlaceholder disabled:text-textPlaceholder', (_clsx = {
32399
- 'border-supportError': isError && !props.disabled,
32400
- 'hover:border-hoverInput': !props.disabled && !isError,
32420
+ 'border-supportError': isError && !disabled,
32421
+ 'hover:border-hoverInput': !disabled && !isError,
32401
32422
  'border-uiBorder01 hover:focus-within:border-activeInput focus-within:border-activeInput text-text01': !isError,
32402
- 'bg-disabled02 border-disabled01': props.disabled
32423
+ 'bg-disabled02 border-disabled01': disabled
32403
32424
  }, _clsx['typography-body1regular px-2 pt-1.5 pb-2'] = size === 'medium', _clsx['text-4 px-3.5 py-2.5'] = size === 'large', _clsx['text-supportError'] = isError, _clsx['resize-none'] = !isResizable, _clsx));
32404
32425
  return /*#__PURE__*/jsx("div", {
32405
32426
  className: "flex",
@@ -32407,6 +32428,7 @@ var TextArea = /*#__PURE__*/forwardRef(function (_ref, ref) {
32407
32428
  ref: ref,
32408
32429
  className: classes
32409
32430
  }, props, {
32431
+ disabled: disabled,
32410
32432
  style: {
32411
32433
  height: props.height
32412
32434
  }
@@ -32415,21 +32437,24 @@ var TextArea = /*#__PURE__*/forwardRef(function (_ref, ref) {
32415
32437
  });
32416
32438
  TextArea.displayName = 'TextArea';
32417
32439
 
32418
- var _excluded = ["size", "isError", "onClickClearButton"];
32440
+ var _excluded = ["size", "isError", "disabled", "onClickClearButton"];
32419
32441
  var TextInput = /*#__PURE__*/forwardRef(function (_ref, ref) {
32420
32442
  var _clsx;
32421
32443
  var _ref$size = _ref.size,
32422
32444
  size = _ref$size === void 0 ? 'medium' : _ref$size,
32423
- isError = _ref.isError,
32445
+ _ref$isError = _ref.isError,
32446
+ isError = _ref$isError === void 0 ? false : _ref$isError,
32447
+ _ref$disabled = _ref.disabled,
32448
+ disabled = _ref$disabled === void 0 ? false : _ref$disabled,
32424
32449
  onClickClearButton = _ref.onClickClearButton,
32425
32450
  props = _objectWithoutPropertiesLoose(_ref, _excluded);
32426
32451
  var inputWrapClasses = clsx('relative flex items-center gap-2 overflow-hidden rounded border', {
32427
32452
  'border-uiBorder01': !isError,
32428
- 'border-supportError': isError && !props.disabled,
32429
- 'hover:border-hoverInput': !props.disabled && !isError,
32453
+ 'border-supportError': isError && !disabled,
32454
+ 'hover:border-hoverInput': !disabled && !isError,
32430
32455
  'hover:focus-within:border-activeInput': !isError,
32431
32456
  'focus-within:border-activeInput': !isError,
32432
- 'bg-disabled02 border-disabled01': props.disabled
32457
+ 'bg-disabled02 border-disabled01': disabled
32433
32458
  });
32434
32459
  var inputClasses = clsx('flex-1 pl-2 pr-3 outline-0 placeholder:text-textPlaceholder disabled:text-textPlaceholder', (_clsx = {}, _clsx['typography-label2regular pt-1.5 pb-2'] = size === 'medium', _clsx['typography-label1regular py-2.5'] = size === 'large', _clsx['text-text01'] = !isError, _clsx['text-supportError'] = isError, _clsx));
32435
32460
  return /*#__PURE__*/jsxs("div", {
@@ -32438,8 +32463,9 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref, ref) {
32438
32463
  ref: ref,
32439
32464
  size: 1,
32440
32465
  className: inputClasses,
32466
+ disabled: disabled,
32441
32467
  onChange: props.onChange
32442
- }, props)), onClickClearButton && props.value && props.value.length !== 0 && !props.disabled && /*#__PURE__*/jsx("div", {
32468
+ }, props)), onClickClearButton && props.value.length !== 0 && !disabled && /*#__PURE__*/jsx("div", {
32443
32469
  className: "absolute right-3",
32444
32470
  children: /*#__PURE__*/jsx(IconButton, {
32445
32471
  variant: "text",
@@ -32460,8 +32486,10 @@ function Toast(_ref) {
32460
32486
  state = _ref$state === void 0 ? 'information' : _ref$state,
32461
32487
  _ref$width = _ref.width,
32462
32488
  width = _ref$width === void 0 ? 'auto' : _ref$width,
32463
- isAutoClose = _ref.isAutoClose,
32464
- isAnimation = _ref.isAnimation,
32489
+ _ref$isAutoClose = _ref.isAutoClose,
32490
+ isAutoClose = _ref$isAutoClose === void 0 ? false : _ref$isAutoClose,
32491
+ _ref$isAnimation = _ref.isAnimation,
32492
+ isAnimation = _ref$isAnimation === void 0 ? false : _ref$isAnimation,
32465
32493
  children = _ref.children,
32466
32494
  onClickClose = _ref.onClickClose;
32467
32495
  var _useState = useState(false),
@@ -32596,7 +32624,8 @@ function Toggle(_ref) {
32596
32624
  label = _ref.label,
32597
32625
  _ref$labelPosition = _ref.labelPosition,
32598
32626
  labelPosition = _ref$labelPosition === void 0 ? 'right' : _ref$labelPosition,
32599
- isDisabled = _ref.isDisabled;
32627
+ _ref$isDisabled = _ref.isDisabled,
32628
+ isDisabled = _ref$isDisabled === void 0 ? false : _ref$isDisabled;
32600
32629
  var baseClasses = clsx$1('relative flex items-center rounded-full', {
32601
32630
  'bg-disabledOn': isDisabled && isChecked,
32602
32631
  'bg-disabled01': isDisabled && !isChecked,
@@ -32621,7 +32650,7 @@ function Toggle(_ref) {
32621
32650
  });
32622
32651
  return /*#__PURE__*/jsxs("div", {
32623
32652
  className: "relative flex flex-[0_0_auto] items-center",
32624
- children: [label && labelPosition === 'left' && /*#__PURE__*/jsx("label", {
32653
+ children: [label != null && labelPosition === 'left' && /*#__PURE__*/jsx("label", {
32625
32654
  htmlFor: id,
32626
32655
  className: labelClasses,
32627
32656
  children: label
@@ -32638,7 +32667,7 @@ function Toggle(_ref) {
32638
32667
  children: /*#__PURE__*/jsx("span", {
32639
32668
  className: indicatorClasses
32640
32669
  })
32641
- }), label && labelPosition === 'right' && /*#__PURE__*/jsx("label", {
32670
+ }), label != null && labelPosition === 'right' && /*#__PURE__*/jsx("label", {
32642
32671
  htmlFor: id,
32643
32672
  className: labelClasses,
32644
32673
  children: label
@@ -32744,7 +32773,8 @@ var TooltipContent = function TooltipContent(_ref) {
32744
32773
  size = _ref.size,
32745
32774
  tooltipPosition = _ref.tooltipPosition,
32746
32775
  maxWidth = _ref.maxWidth,
32747
- isPortal = _ref.isPortal;
32776
+ _ref$isPortal = _ref.isPortal,
32777
+ isPortal = _ref$isPortal === void 0 ? false : _ref$isPortal;
32748
32778
  var tooltipWrapperClasses = clsx$1('absolute z-tooltip m-auto flex', {
32749
32779
  'top-0': !isPortal && verticalPosition === 'top',
32750
32780
  'bottom-0': !isPortal && verticalPosition === 'bottom',