@zenkigen-inc/component-ui 1.9.3 → 1.9.5

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 +101 -68
  15. package/dist/index.esm.js.map +1 -1
  16. package/dist/index.js +97 -80
  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: {
@@ -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,
@@ -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",
@@ -31944,6 +31956,8 @@ function PaginationSelect(_ref) {
31944
31956
  label: value
31945
31957
  };
31946
31958
  });
31959
+ var minCount = totalSize ? (currentPage - 1) * sizePerPage + 1 : 0;
31960
+ var maxCount = currentPage * sizePerPage > totalSize ? totalSize : currentPage * sizePerPage;
31947
31961
  return /*#__PURE__*/jsxs("nav", {
31948
31962
  "aria-label": "pagination",
31949
31963
  className: "flex items-center gap-x-1",
@@ -31951,7 +31965,7 @@ function PaginationSelect(_ref) {
31951
31965
  className: "flex items-center gap-x-2",
31952
31966
  children: [/*#__PURE__*/jsxs("div", {
31953
31967
  className: "typography-label2regular text-text01",
31954
- children: [(currentPage - 1) * sizePerPage + 1, " -", ' ', currentPage * sizePerPage > totalSize ? totalSize : currentPage * sizePerPage, countLabel]
31968
+ children: [minCount > 0 && minCount + " - ", maxCount, countLabel]
31955
31969
  }), /*#__PURE__*/jsx(Select, {
31956
31970
  size: "medium",
31957
31971
  variant: "outline",
@@ -31962,7 +31976,8 @@ function PaginationSelect(_ref) {
31962
31976
  onChange: function onChange(option) {
31963
31977
  return option && _onChange(Number(option.value));
31964
31978
  },
31965
- children: optionsList && optionsList.map(function (option) {
31979
+ isDisabled: pageMax === 0,
31980
+ children: optionsList.map(function (option) {
31966
31981
  return /*#__PURE__*/jsx(Select.Option, {
31967
31982
  option: option
31968
31983
  }, option.id);
@@ -31983,7 +31998,7 @@ function PaginationSelect(_ref) {
31983
31998
  variant: "text",
31984
31999
  icon: "angle-right",
31985
32000
  size: "small",
31986
- isDisabled: currentPage === pageMax,
32001
+ isDisabled: currentPage === pageMax || pageMax === 0,
31987
32002
  onClick: onClickNextButton
31988
32003
  })]
31989
32004
  })]
@@ -32070,14 +32085,14 @@ function Radio(_ref) {
32070
32085
  });
32071
32086
  }
32072
32087
 
32073
- var _excluded$2 = ["width", "size"];
32088
+ var _excluded$3 = ["width", "size"];
32074
32089
  var Search = /*#__PURE__*/forwardRef(function (_ref, ref) {
32075
32090
  var _clsx;
32076
32091
  var _ref$width = _ref.width,
32077
32092
  width = _ref$width === void 0 ? '100%' : _ref$width,
32078
32093
  _ref$size = _ref.size,
32079
32094
  size = _ref$size === void 0 ? 'medium' : _ref$size,
32080
- props = _objectWithoutPropertiesLoose(_ref, _excluded$2);
32095
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$3);
32081
32096
  var classes = clsx('flex items-center rounded-full border border-uiBorder02 focus-within:border-activeInput', {
32082
32097
  'h-8 px-3': size === 'medium'
32083
32098
  }, {
@@ -32195,7 +32210,8 @@ function SelectSort(_ref) {
32195
32210
  sortOrder = _ref.sortOrder,
32196
32211
  _ref$isDisabled = _ref.isDisabled,
32197
32212
  isDisabled = _ref$isDisabled === void 0 ? false : _ref$isDisabled,
32198
- isSortKey = _ref.isSortKey,
32213
+ _ref$isSortKey = _ref.isSortKey,
32214
+ isSortKey = _ref$isSortKey === void 0 ? false : _ref$isSortKey,
32199
32215
  onChange = _ref.onChange,
32200
32216
  onClickDeselect = _ref.onClickDeselect;
32201
32217
  var _useState = useState(false),
@@ -32262,17 +32278,21 @@ function SelectSort(_ref) {
32262
32278
  });
32263
32279
  }
32264
32280
 
32265
- 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);
32266
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', {
32267
- 'typography-label2regular': !props.isSelected,
32268
- 'text-interactive02 hover:before:bg-uiBorder02Dark': !props.isSelected,
32269
- 'typography-label2bold': props.isSelected,
32270
- '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
32271
32291
  });
32272
32292
  return /*#__PURE__*/jsx("button", {
32273
32293
  type: "button",
32274
32294
  role: "tab",
32275
- "aria-selected": props.isSelected,
32295
+ "aria-selected": isSelected,
32276
32296
  className: classes,
32277
32297
  disabled: props.isDisabled,
32278
32298
  onClick: function onClick() {
@@ -32303,7 +32323,8 @@ function TableCell(_ref) {
32303
32323
 
32304
32324
  function TableRow(_ref) {
32305
32325
  var children = _ref.children,
32306
- isHoverBackgroundVisible = _ref.isHoverBackgroundVisible;
32326
+ _ref$isHoverBackgroun = _ref.isHoverBackgroundVisible,
32327
+ isHoverBackgroundVisible = _ref$isHoverBackgroun === void 0 ? false : _ref$isHoverBackgroun;
32307
32328
  var rowClasses = clsx$1('contents', isHoverBackgroundVisible && '[&:hover>div]:bg-hoverUi02');
32308
32329
  return /*#__PURE__*/jsx("div", {
32309
32330
  className: rowClasses,
@@ -32383,20 +32404,23 @@ function Tag(_ref) {
32383
32404
  });
32384
32405
  }
32385
32406
 
32386
- var _excluded$1 = ["size", "isResizable", "isError"];
32407
+ var _excluded$1 = ["size", "isResizable", "isError", "disabled"];
32387
32408
  var TextArea = /*#__PURE__*/forwardRef(function (_ref, ref) {
32388
32409
  var _clsx;
32389
32410
  var _ref$size = _ref.size,
32390
32411
  size = _ref$size === void 0 ? 'medium' : _ref$size,
32391
32412
  _ref$isResizable = _ref.isResizable,
32392
32413
  isResizable = _ref$isResizable === void 0 ? false : _ref$isResizable,
32393
- 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,
32394
32418
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1);
32395
32419
  var classes = clsx('w-full rounded border outline-0 placeholder:text-textPlaceholder disabled:text-textPlaceholder', (_clsx = {
32396
- 'border-supportError': isError && !props.disabled,
32397
- 'hover:border-hoverInput': !props.disabled && !isError,
32420
+ 'border-supportError': isError && !disabled,
32421
+ 'hover:border-hoverInput': !disabled && !isError,
32398
32422
  'border-uiBorder01 hover:focus-within:border-activeInput focus-within:border-activeInput text-text01': !isError,
32399
- 'bg-disabled02 border-disabled01': props.disabled
32423
+ 'bg-disabled02 border-disabled01': disabled
32400
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));
32401
32425
  return /*#__PURE__*/jsx("div", {
32402
32426
  className: "flex",
@@ -32404,6 +32428,7 @@ var TextArea = /*#__PURE__*/forwardRef(function (_ref, ref) {
32404
32428
  ref: ref,
32405
32429
  className: classes
32406
32430
  }, props, {
32431
+ disabled: disabled,
32407
32432
  style: {
32408
32433
  height: props.height
32409
32434
  }
@@ -32412,21 +32437,24 @@ var TextArea = /*#__PURE__*/forwardRef(function (_ref, ref) {
32412
32437
  });
32413
32438
  TextArea.displayName = 'TextArea';
32414
32439
 
32415
- var _excluded = ["size", "isError", "onClickClearButton"];
32440
+ var _excluded = ["size", "isError", "disabled", "onClickClearButton"];
32416
32441
  var TextInput = /*#__PURE__*/forwardRef(function (_ref, ref) {
32417
32442
  var _clsx;
32418
32443
  var _ref$size = _ref.size,
32419
32444
  size = _ref$size === void 0 ? 'medium' : _ref$size,
32420
- 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,
32421
32449
  onClickClearButton = _ref.onClickClearButton,
32422
32450
  props = _objectWithoutPropertiesLoose(_ref, _excluded);
32423
32451
  var inputWrapClasses = clsx('relative flex items-center gap-2 overflow-hidden rounded border', {
32424
32452
  'border-uiBorder01': !isError,
32425
- 'border-supportError': isError && !props.disabled,
32426
- 'hover:border-hoverInput': !props.disabled && !isError,
32453
+ 'border-supportError': isError && !disabled,
32454
+ 'hover:border-hoverInput': !disabled && !isError,
32427
32455
  'hover:focus-within:border-activeInput': !isError,
32428
32456
  'focus-within:border-activeInput': !isError,
32429
- 'bg-disabled02 border-disabled01': props.disabled
32457
+ 'bg-disabled02 border-disabled01': disabled
32430
32458
  });
32431
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));
32432
32460
  return /*#__PURE__*/jsxs("div", {
@@ -32435,8 +32463,9 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref, ref) {
32435
32463
  ref: ref,
32436
32464
  size: 1,
32437
32465
  className: inputClasses,
32466
+ disabled: disabled,
32438
32467
  onChange: props.onChange
32439
- }, props)), onClickClearButton && props.value && props.value.length !== 0 && !props.disabled && /*#__PURE__*/jsx("div", {
32468
+ }, props)), onClickClearButton && props.value.length !== 0 && !disabled && /*#__PURE__*/jsx("div", {
32440
32469
  className: "absolute right-3",
32441
32470
  children: /*#__PURE__*/jsx(IconButton, {
32442
32471
  variant: "text",
@@ -32457,8 +32486,10 @@ function Toast(_ref) {
32457
32486
  state = _ref$state === void 0 ? 'information' : _ref$state,
32458
32487
  _ref$width = _ref.width,
32459
32488
  width = _ref$width === void 0 ? 'auto' : _ref$width,
32460
- isAutoClose = _ref.isAutoClose,
32461
- 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,
32462
32493
  children = _ref.children,
32463
32494
  onClickClose = _ref.onClickClose;
32464
32495
  var _useState = useState(false),
@@ -32593,7 +32624,8 @@ function Toggle(_ref) {
32593
32624
  label = _ref.label,
32594
32625
  _ref$labelPosition = _ref.labelPosition,
32595
32626
  labelPosition = _ref$labelPosition === void 0 ? 'right' : _ref$labelPosition,
32596
- isDisabled = _ref.isDisabled;
32627
+ _ref$isDisabled = _ref.isDisabled,
32628
+ isDisabled = _ref$isDisabled === void 0 ? false : _ref$isDisabled;
32597
32629
  var baseClasses = clsx$1('relative flex items-center rounded-full', {
32598
32630
  'bg-disabledOn': isDisabled && isChecked,
32599
32631
  'bg-disabled01': isDisabled && !isChecked,
@@ -32618,7 +32650,7 @@ function Toggle(_ref) {
32618
32650
  });
32619
32651
  return /*#__PURE__*/jsxs("div", {
32620
32652
  className: "relative flex flex-[0_0_auto] items-center",
32621
- children: [label && labelPosition === 'left' && /*#__PURE__*/jsx("label", {
32653
+ children: [label != null && labelPosition === 'left' && /*#__PURE__*/jsx("label", {
32622
32654
  htmlFor: id,
32623
32655
  className: labelClasses,
32624
32656
  children: label
@@ -32635,7 +32667,7 @@ function Toggle(_ref) {
32635
32667
  children: /*#__PURE__*/jsx("span", {
32636
32668
  className: indicatorClasses
32637
32669
  })
32638
- }), label && labelPosition === 'right' && /*#__PURE__*/jsx("label", {
32670
+ }), label != null && labelPosition === 'right' && /*#__PURE__*/jsx("label", {
32639
32671
  htmlFor: id,
32640
32672
  className: labelClasses,
32641
32673
  children: label
@@ -32741,7 +32773,8 @@ var TooltipContent = function TooltipContent(_ref) {
32741
32773
  size = _ref.size,
32742
32774
  tooltipPosition = _ref.tooltipPosition,
32743
32775
  maxWidth = _ref.maxWidth,
32744
- isPortal = _ref.isPortal;
32776
+ _ref$isPortal = _ref.isPortal,
32777
+ isPortal = _ref$isPortal === void 0 ? false : _ref$isPortal;
32745
32778
  var tooltipWrapperClasses = clsx$1('absolute z-tooltip m-auto flex', {
32746
32779
  'top-0': !isPortal && verticalPosition === 'top',
32747
32780
  'bottom-0': !isPortal && verticalPosition === 'bottom',