@zenkigen-inc/component-ui 1.5.0 → 1.6.0

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.
@@ -4,6 +4,7 @@ type Variant = 'fill' | 'fillDanger' | 'outline' | 'text';
4
4
  type Props = {
5
5
  size?: Size;
6
6
  width?: CSSProperties['width'];
7
+ isSelected?: boolean;
7
8
  isDisabled?: boolean;
8
9
  variant?: Variant;
9
10
  before?: ReactNode;
package/dist/index.esm.js CHANGED
@@ -80,21 +80,18 @@ Breadcrumb.Item = BreadcrumbItem;
80
80
 
81
81
  var _excluded$6 = ["size", "variant"];
82
82
  function Button(_ref) {
83
+ var _clsx;
83
84
  var _ref$size = _ref.size,
84
85
  size = _ref$size === void 0 ? 'medium' : _ref$size,
85
86
  _ref$variant = _ref.variant,
86
87
  variant = _ref$variant === void 0 ? 'fill' : _ref$variant,
87
88
  props = _objectWithoutPropertiesLoose(_ref, _excluded$6);
88
- var baseClasses = clsx('flex', 'shrink-0', 'gap-1', 'items-center', 'justify-center', buttonColors[variant].base, buttonColors[variant].hover, buttonColors[variant].active, buttonColors[variant].disabled, focusVisible.normal, {
89
+ var baseClasses = clsx('flex shrink-0 items-center justify-center gap-1', buttonColors[variant].hover, buttonColors[variant].active, buttonColors[variant].disabled, focusVisible.normal, (_clsx = {
89
90
  'h-6 px-2.5': size === 'small',
90
91
  'h-8 px-3': size === 'medium',
91
92
  'h-10 px-4 leading-[24px]': size === 'large',
92
- 'inline-flex': props.isAnchor,
93
- 'pointer-events-none': props.isDisabled,
94
- 'rounded-button': !props.borderRadius,
95
- 'typography-label1regular': size === 'large',
96
- 'typography-label2regular': size !== 'large'
97
- });
93
+ 'inline-flex': props.isAnchor
94
+ }, _clsx[buttonColors[variant].selected] = props.isSelected, _clsx[buttonColors[variant].base] = !props.isSelected, _clsx['hover:text-text-textOnColor active:text-text-textOnColor [&:hover>*]:fill-icon-iconOnColor [&:active>*]:fill-icon-iconOnColor'] = props.isSelected && variant !== 'outline' && variant !== 'text', _clsx['pointer-events-none'] = props.isDisabled, _clsx['rounded-button'] = !props.borderRadius, _clsx['typography-label1regular'] = size === 'large', _clsx['typography-label2regular'] = size !== 'large', _clsx));
98
95
  if (props.isAnchor) {
99
96
  return /*#__PURE__*/jsxs("a", {
100
97
  className: baseClasses,
@@ -170,24 +167,44 @@ function Checkbox(_ref) {
170
167
  var handleChange = useCallback(function (e) {
171
168
  !isDisabled && (onChange == null ? void 0 : onChange(e));
172
169
  }, [isDisabled, onChange]);
173
- var wrapperClasses = clsx$1('flex', 'items-center');
174
- var baseClasses = clsx$1('flex', 'items-center', 'justify-center', 'h-6', 'w-6');
175
- var baseInputClasses = clsx$1('absolute', 'z-[1]', 'opacity-0', 'w-5', 'h-5', 'peer', isDisabled ? 'cursor-not-allowed' : 'cursor-pointer');
176
- var boxClasses = clsx$1('inline-flex', 'items-center', 'justify-center', 'h-5', 'w-5', 'bg-white', 'border', 'rounded-sm', focusVisible.normalPeer, isDisabled ? 'border-disabled-disabled01' : color === 'error' ? isMouseOver ? 'border-hover-hoverError' : 'border-support-supportError' : color === 'gray' ? isMouseOver ? 'border-hover-hoverUiBorder' : 'border-interactive-interactive02' : isMouseOver ? 'border-hover-hoverUiBorder' : 'border-border-uiBorder03');
177
- var indicatorClasses = clsx$1('h-5', 'w-5', 'relative', 'flex', 'flex-[0_0_auto]', 'items-center', 'justify-center', {
170
+ var baseInputClasses = clsx$1('peer absolute z-[1] h-5 w-5 opacity-0', {
171
+ 'cursor-not-allowed': isDisabled,
172
+ 'cursor-pointer': !isDisabled
173
+ });
174
+ var boxClasses = clsx$1('inline-flex h-5 w-5 items-center justify-center rounded-sm border bg-white', focusVisible.normalPeer, {
175
+ 'border-disabled-disabled01': isDisabled,
176
+ 'border-hover-hoverUiBorder': !isDisabled && isMouseOver,
177
+ 'border-border-uiBorder03': !isDisabled && !isMouseOver,
178
+ 'border-interactive-interactive02': !isDisabled && !isMouseOver && color === 'gray',
179
+ 'border-hover-hoverError': !isDisabled && isMouseOver && color === 'error',
180
+ 'border-support-supportError': !isDisabled && !isMouseOver && color === 'error'
181
+ });
182
+ var indicatorClasses = clsx$1('relative flex h-5 w-5 flex-[0_0_auto] items-center justify-center', {
178
183
  'bg-disabled-disabled01': isDisabled && isChecked,
179
184
  'border-disabled-disabled01': isDisabled
180
185
  });
181
- var afterClasses = clsx$1('absolute', 'top-0', 'right-0', 'bottom-0', 'left-0', 'block', 'm-auto', 'rounded-sm', isDisabled && isChecked ? 'bg-disabled-disabled01' : color === 'gray' ? isMouseOver ? 'bg-hover-hover02Dark' : 'bg-interactive-interactive02' : color === 'error' ? isMouseOver ? 'bg-hover-hoverError' : 'bg-support-supportError' : isMouseOver ? 'bg-hover-hover01' : 'bg-interactive-interactive01', {
186
+ var afterClasses = clsx$1('absolute inset-0 m-auto block rounded-sm', {
187
+ 'bg-disabled-disabled01': isDisabled && isChecked,
188
+ 'bg-hover-hover01': !(isDisabled && isChecked) && isMouseOver,
189
+ 'bg-interactive-interactive01': !(isDisabled && isChecked) && !isMouseOver,
190
+ 'bg-hover-hover02Dark': !(isDisabled && isChecked) && isMouseOver && color === 'gray',
191
+ 'bg-interactive-interactive02': !(isDisabled && isChecked) && !isMouseOver && color === 'gray',
192
+ 'bg-hover-hoverError': !(isDisabled && isChecked) && isMouseOver && color === 'error',
193
+ 'bg-support-supportError': !(isDisabled && isChecked) && !isMouseOver && color === 'error',
182
194
  'scale-0': !isChecked,
183
195
  'scale-100': isChecked
184
196
  });
185
- var hoverIndicatorClasses = clsx$1('w-3', 'h-3', 'inline-block', 'rounded-[1px]', !isDisabled && !isChecked && isMouseOver && 'bg-hover-hoverUi');
186
- var labelClasses = clsx$1('typography-label2regular ml-2 flex-[1_0_0] break-all', isDisabled ? 'pointer-events-none cursor-not-allowed text-disabled-disabled01' : 'cursor-pointer text-text-text01');
197
+ var hoverIndicatorClasses = clsx$1('inline-block h-3 w-3 rounded-[1px]', {
198
+ 'bg-hover-hoverUi': !isDisabled && !isChecked && isMouseOver
199
+ });
200
+ var labelClasses = clsx$1('typography-label2regular ml-2 flex-[1_0_0] break-all', {
201
+ 'pointer-events-none cursor-not-allowed text-disabled-disabled01': isDisabled,
202
+ 'cursor-pointer text-text-text01': !isDisabled
203
+ });
187
204
  return /*#__PURE__*/jsxs("div", {
188
- className: wrapperClasses,
205
+ className: "flex items-center",
189
206
  children: [/*#__PURE__*/jsxs("div", {
190
- className: baseClasses,
207
+ className: "flex h-6 w-6 items-center justify-center",
191
208
  children: [/*#__PURE__*/jsx("input", {
192
209
  type: "checkbox",
193
210
  value: value,
@@ -31100,18 +31117,15 @@ var useOutsideClick = function useOutsideClick(ref, handler, enabled) {
31100
31117
 
31101
31118
  var _excluded$5 = ["size"];
31102
31119
  var Icon = function Icon(_ref) {
31103
- var _ref2;
31120
+ var _clsx;
31104
31121
  var _ref$size = _ref.size,
31105
31122
  size = _ref$size === void 0 ? 'medium' : _ref$size,
31106
31123
  props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
31124
+ var classes = clsx('inline-block shrink-0', (_clsx = {
31125
+ 'fill-disabled-disabled01': props.isDisabled
31126
+ }, _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));
31107
31127
  return /*#__PURE__*/jsx("span", {
31108
- className: clsx('inline-block', 'shrink-0', props.isDisabled ? 'fill-disabled-disabled01' : (_ref2 = {}, _ref2[iconColors.icon01] = props.color === 'icon01', _ref2[iconColors.icon01Dark] = props.color === 'icon01Dark', _ref2[iconColors.icon02] = props.color === 'icon02', _ref2[iconColors.icon02Dark] = props.color === 'icon02Dark', _ref2[iconColors.icon03] = props.color === 'icon03', _ref2[iconColors.icon03Dark] = props.color === 'icon03Dark', _ref2[iconColors.iconOnColor] = props.color === 'iconOnColor', _ref2), {
31109
- 'w-3 h-3': size === 'x-small',
31110
- 'w-4 h-4': size === 'small',
31111
- 'w-6 h-6': size === 'medium',
31112
- 'w-8 h-8': size === 'large',
31113
- 'w-10 h-10': size === 'x-large'
31114
- }),
31128
+ className: classes,
31115
31129
  children: iconElements[props.name]
31116
31130
  });
31117
31131
  };
@@ -31140,13 +31154,12 @@ function DropdownItem(_ref) {
31140
31154
  setIsVisible(false);
31141
31155
  onClick && onClick(event);
31142
31156
  };
31143
- var listItemClasses = clsx$1('flex w-full items-center');
31144
31157
  var itemClasses = clsx$1('typography-label2regular flex h-8 w-full items-center px-3 hover:bg-hover-hover02 active:bg-active-active02', focusVisible.inset, {
31145
31158
  'bg-background-uiBackground01 fill-icon-icon01 text-interactive-interactive02': color === 'gray',
31146
31159
  'fill-support-supportDanger text-support-supportDanger': color === 'red'
31147
31160
  });
31148
31161
  return /*#__PURE__*/jsx("li", {
31149
- className: listItemClasses,
31162
+ className: "flex w-full items-center",
31150
31163
  children: /*#__PURE__*/jsx("button", {
31151
31164
  className: itemClasses,
31152
31165
  type: "button",
@@ -31233,11 +31246,15 @@ function Dropdown(_ref) {
31233
31246
  setIsVisible(true);
31234
31247
  }
31235
31248
  }, [isVisible]);
31236
- var wrapperClasses = clsx$1('relative', 'flex shrink-0 items-center gap-1', 'rounded', isDisabled && 'cursor-not-allowed');
31237
- var childrenButtonClasses = clsx$1('flex items-center justify-center', 'rounded', 'hover:bg-hover-hover02', 'active:bg-active-active02', focusVisible.normal, isDisabled && 'pointer-events-none', 'p-1', {
31249
+ var wrapperClasses = clsx$1('relative flex shrink-0 items-center gap-1 rounded', {
31250
+ 'cursor-not-allowed': isDisabled
31251
+ });
31252
+ var childrenButtonClasses = clsx$1('flex items-center justify-center rounded p-1 hover:bg-hover-hover02 active:bg-active-active02', focusVisible.normal, {
31253
+ 'pointer-events-none': isDisabled,
31238
31254
  'border border-border-uiBorder02': variant === 'outline'
31239
31255
  });
31240
- var buttonClasses = clsx$1('flex items-center', 'rounded', buttonColors[variant].base, buttonColors[variant].hover, buttonColors[variant].active, buttonColors[variant].disabled, focusVisible.normal, isDisabled && 'pointer-events-none', {
31256
+ var buttonClasses = clsx$1('flex items-center rounded', buttonColors[variant].base, buttonColors[variant].hover, buttonColors[variant].active, buttonColors[variant].disabled, focusVisible.normal, {
31257
+ 'pointer-events-none': isDisabled,
31241
31258
  'h-6 px-2': size === 'x-small' || size === 'small',
31242
31259
  'h-8 px-4': size === 'medium',
31243
31260
  'h-10 px-4': size === 'large'
@@ -31345,8 +31362,7 @@ function EvaluationStar(_ref) {
31345
31362
  function Heading(props) {
31346
31363
  var TagName = "h" + props.level;
31347
31364
  var classes = clsx("flex items-center text-text-text01", typography.heading[TagName], {
31348
- 'gap-2': props.level === 1
31349
- }, {
31365
+ 'gap-2': props.level === 1,
31350
31366
  'gap-1': props.level > 1
31351
31367
  });
31352
31368
  return /*#__PURE__*/jsxs(TagName, {
@@ -31363,20 +31379,11 @@ function IconButton(_ref) {
31363
31379
  variant = _ref$variant === void 0 ? 'outline' : _ref$variant,
31364
31380
  props = _objectWithoutPropertiesLoose(_ref, _excluded$4);
31365
31381
  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, {
31366
- 'h-6 w-6': size === 'small' && !props.isNoPadding
31367
- }, {
31368
- 'h-8 w-8': size === 'medium' && !props.isNoPadding
31369
- }, {
31370
- 'h-10 w-10': size === 'large' && !props.isNoPadding
31371
- }, {
31372
- 'h-4 w-4': size === 'small' && props.isNoPadding
31373
- }, {
31374
- 'h-6 w-6': size === 'medium' && props.isNoPadding
31375
- }, {
31376
- 'h-6 w-6': size === 'large' && props.isNoPadding
31377
- }, {
31378
- 'inline-flex': props.isAnchor
31379
- }, {
31382
+ 'h-4 w-4': size === 'small' && props.isNoPadding,
31383
+ 'h-6 w-6': size === 'small' && !props.isNoPadding || (size === 'medium' || size === 'large') && props.isNoPadding,
31384
+ 'h-8 w-8': size === 'medium' && !props.isNoPadding,
31385
+ 'h-10 w-10': size === 'large' && !props.isNoPadding,
31386
+ 'inline-flex': props.isAnchor,
31380
31387
  'pointer-events-none': props.isDisabled
31381
31388
  });
31382
31389
  var iconSize = size === 'small' ? 'small' : 'medium';
@@ -31411,8 +31418,12 @@ function Loading(_ref) {
31411
31418
  position = _ref$position === void 0 ? 'fixed' : _ref$position,
31412
31419
  _ref$height = _ref.height,
31413
31420
  height = _ref$height === void 0 ? '100%' : _ref$height;
31414
- var wrapperClasses = clsx$1(position, 'top-0', 'left-0', 'z-20', 'flex', 'items-center', 'justify-center', 'w-full');
31415
- var svgClasses = clsx$1(size === 'small' && 'h-4 w-4', size === 'medium' && 'h-8 w-8', size === 'large' && 'h-16 w-16');
31421
+ var wrapperClasses = clsx$1(position, 'left-0 top-0 z-20 flex w-full items-center justify-center');
31422
+ var svgClasses = clsx$1({
31423
+ 'h-4 w-4': size === 'small',
31424
+ 'h-8 w-8': size === 'medium',
31425
+ 'h-16 w-16': size === 'large'
31426
+ });
31416
31427
  return /*#__PURE__*/jsx(Fragment, {
31417
31428
  children: /*#__PURE__*/jsxs("div", {
31418
31429
  className: wrapperClasses,
@@ -31475,15 +31486,15 @@ function ModalBody(_ref) {
31475
31486
  }
31476
31487
 
31477
31488
  var ModalContext = /*#__PURE__*/createContext({
31478
- setIsOpen: function setIsOpen() {
31479
- return false;
31489
+ onClose: function onClose() {
31490
+ return null;
31480
31491
  }
31481
31492
  });
31482
31493
 
31483
31494
  function ModalFooter(_ref) {
31484
31495
  var children = _ref.children,
31485
31496
  isNoBorder = _ref.isNoBorder;
31486
- var wrapperClasses = clsx$1('flex', 'shrink-0', 'items-center', 'w-full', 'rounded-b-lg', 'py-4', 'px-6', {
31497
+ var wrapperClasses = clsx$1('flex w-full shrink-0 items-center rounded-b-lg px-6 py-4', {
31487
31498
  'border-t-[1px] border-border-uiBorder01': !isNoBorder
31488
31499
  });
31489
31500
  return /*#__PURE__*/jsx("div", {
@@ -31497,7 +31508,7 @@ function ModalHeader(_ref) {
31497
31508
  isNoBorder = _ref.isNoBorder,
31498
31509
  isNoCloseButton = _ref.isNoCloseButton;
31499
31510
  var _useContext = useContext(ModalContext),
31500
- setIsOpen = _useContext.setIsOpen;
31511
+ onClose = _useContext.onClose;
31501
31512
  var headerClasses = clsx$1('typography-h5 flex w-full shrink-0 items-center justify-between rounded-t-lg px-6 text-text-text01', {
31502
31513
  'border-b-[1px] border-border-uiBorder01': !isNoBorder,
31503
31514
  'h-14': !isNoCloseButton,
@@ -31512,7 +31523,7 @@ function ModalHeader(_ref) {
31512
31523
  size: "small",
31513
31524
  variant: "text",
31514
31525
  onClick: function onClick() {
31515
- return setIsOpen(false);
31526
+ return onClose();
31516
31527
  }
31517
31528
  })]
31518
31529
  });
@@ -31526,13 +31537,13 @@ function Modal(_ref) {
31526
31537
  width = _ref$width === void 0 ? 480 : _ref$width,
31527
31538
  height = _ref.height,
31528
31539
  isOpen = _ref.isOpen,
31529
- setIsOpen = _ref.setIsOpen,
31540
+ onClose = _ref.onClose,
31530
31541
  portalTargetRef = _ref.portalTargetRef;
31531
31542
  var renderWidth = typeof width === 'number' ? Math.max(width, LIMIT_WIDTH) : width;
31532
31543
  var renderHeight = typeof height === 'number' ? Math.max(height, LIMIT_HEIGHT) : height;
31533
31544
  return /*#__PURE__*/reactDom.createPortal(isOpen && /*#__PURE__*/jsx(ModalContext.Provider, {
31534
31545
  value: {
31535
- setIsOpen: setIsOpen
31546
+ onClose: onClose
31536
31547
  },
31537
31548
  children: /*#__PURE__*/jsx("div", {
31538
31549
  className: "fixed left-0 top-0 z-overlay flex h-full w-full items-center justify-center bg-background-backgroundOverlayBlack",
@@ -31567,7 +31578,7 @@ function NotificationInline(_ref) {
31567
31578
  'p-2': size === 'small',
31568
31579
  'p-3': size === 'medium'
31569
31580
  });
31570
- var iconClasses = clsx('flex', 'items-center', {
31581
+ var iconClasses = clsx('flex items-center', {
31571
31582
  'fill-support-supportError': state === 'attention',
31572
31583
  'fill-support-supportWarning': state === 'warning',
31573
31584
  'fill-blue-blue50': state === 'information',
@@ -31775,7 +31786,7 @@ function SelectList$1(_ref) {
31775
31786
  var element = Array.from(ref.current.children || []).find(function (item) {
31776
31787
  return item.getAttribute('data-id') === (selectedOption == null ? void 0 : selectedOption.id);
31777
31788
  });
31778
- if (element) {
31789
+ if (element && ref.current.scroll) {
31779
31790
  var wrapRect = ref.current.getBoundingClientRect();
31780
31791
  var rect = element.getBoundingClientRect();
31781
31792
  ref.current.scroll(0, rect.top - wrapRect.top - wrapRect.height / 2 + rect.height / 2);
@@ -32106,13 +32117,12 @@ function SelectItem(_ref) {
32106
32117
  var children = _ref.children,
32107
32118
  isSortKey = _ref.isSortKey,
32108
32119
  onClickItem = _ref.onClickItem;
32109
- var listItemClasses = clsx$1('flex w-full items-center');
32110
32120
  var itemClasses = clsx$1('typography-label2regular flex h-8 w-full items-center px-3 hover:bg-hover-hover02 active:bg-active-active02', focusVisible.inset, {
32111
32121
  'bg-selected-selectedUi fill-interactive-interactive01 text-interactive-interactive01': isSortKey,
32112
32122
  'bg-background-uiBackground01 fill-icon-icon01 text-interactive-interactive02': !isSortKey
32113
32123
  });
32114
32124
  return /*#__PURE__*/jsx("li", {
32115
- className: listItemClasses,
32125
+ className: "flex w-full items-center",
32116
32126
  onClick: onClickItem,
32117
32127
  children: /*#__PURE__*/jsxs("button", {
32118
32128
  className: itemClasses,
@@ -32170,6 +32180,7 @@ function SelectList(_ref) {
32170
32180
  }
32171
32181
 
32172
32182
  function SelectSort(_ref) {
32183
+ var _clsx;
32173
32184
  var _ref$size = _ref.size,
32174
32185
  size = _ref$size === void 0 ? 'medium' : _ref$size,
32175
32186
  _ref$variant = _ref.variant,
@@ -32198,18 +32209,20 @@ function SelectSort(_ref) {
32198
32209
  onChange == null || onChange(value);
32199
32210
  setIsOptionListOpen(false);
32200
32211
  }, [onChange]);
32201
- var wrapperClasses = clsx$1('relative', 'flex', 'shrink-0', 'gap-1', 'items-center', 'rounded', {
32212
+ var wrapperClasses = clsx$1('relative flex shrink-0 items-center gap-1 rounded', {
32202
32213
  'h-6': size === 'x-small' || size === 'small',
32203
32214
  'h-8': size === 'medium',
32204
32215
  'h-10': size === 'large',
32205
32216
  'cursor-not-allowed': isDisabled
32206
32217
  });
32207
- var buttonClasses = clsx$1('flex', 'items-center', 'w-full', 'h-full', 'rounded', isSortKey ? buttonColors[variant].selected : buttonColors[variant].base, buttonColors[variant].hover, buttonColors[variant].active, buttonColors[variant].disabled, focusVisible.normal, {
32208
- 'px-2': size === 'x-small' || size === 'small',
32209
- 'px-4': size === 'medium' || size === 'large',
32210
- 'pointer-events-none': isDisabled
32218
+ var buttonClasses = clsx$1('flex h-full w-full items-center rounded', buttonColors[variant].hover, buttonColors[variant].active, buttonColors[variant].disabled, focusVisible.normal, (_clsx = {}, _clsx[buttonColors[variant].selected] = isSortKey, _clsx[buttonColors[variant].base] = !isSortKey, _clsx['px-2'] = size === 'x-small' || size === 'small', _clsx['px-4'] = size === 'medium' || size === 'large', _clsx['pointer-events-none'] = isDisabled, _clsx));
32219
+ var labelClasses = clsx$1('truncate', {
32220
+ 'typography-label3regular': size === 'x-small',
32221
+ 'typography-label2regular': size === 'small' || size === 'medium',
32222
+ 'typography-label1regular': size === 'large',
32223
+ 'mr-1': size === 'x-small',
32224
+ 'mr-2': size !== 'x-small'
32211
32225
  });
32212
- var labelClasses = clsx$1('truncate', size === 'x-small' ? 'mr-1' : 'mr-2', typography.label[size === 'x-small' ? 'label3regular' : size === 'small' || size === 'medium' ? 'label2regular' : 'label1regular']);
32213
32226
  return /*#__PURE__*/jsxs("div", {
32214
32227
  className: wrapperClasses,
32215
32228
  style: {
@@ -32245,8 +32258,12 @@ function SelectSort(_ref) {
32245
32258
  }
32246
32259
 
32247
32260
  var TabItem = function TabItem(props) {
32248
- var _clsx;
32249
- var classes = clsx('relative', 'flex', 'z-0', 'py-2', 'leading-[24px]', 'before:h-px', 'before:absolute', 'before:left-0', 'before:right-0', 'before:bottom-0', 'hover:text-text-text01', 'disabled:text-disabled-disabled01', 'disabled:pointer-events-none', (_clsx = {}, _clsx['typography-label2regular'] = !props.isSelected, _clsx['text-interactive-interactive02 hover:before:bg-border-uiBorder02Dark'] = !props.isSelected, _clsx['typography-label2bold'] = props.isSelected, _clsx['before:bg-interactive-interactive01 hover:before:bg-interactive-interactive01 pointer-events-none'] = props.isSelected, _clsx));
32261
+ 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-text-text01 disabled:pointer-events-none disabled:text-disabled-disabled01', {
32262
+ 'typography-label2regular': !props.isSelected,
32263
+ 'text-interactive-interactive02 hover:before:bg-border-uiBorder02Dark': !props.isSelected,
32264
+ 'typography-label2bold': props.isSelected,
32265
+ 'before:bg-interactive-interactive01 hover:before:bg-interactive-interactive01 pointer-events-none': props.isSelected
32266
+ });
32250
32267
  return /*#__PURE__*/jsx("button", {
32251
32268
  type: "button",
32252
32269
  role: "tab",
@@ -32262,10 +32279,9 @@ var TabItem = function TabItem(props) {
32262
32279
 
32263
32280
  function Tab(_ref) {
32264
32281
  var children = _ref.children;
32265
- var classes = clsx('flex', 'px-6', 'gap-4', 'relative', 'before:bg-border-uiBorder01', 'before:h-px', 'before:bottom-0', 'before:left-0', 'before:right-0', 'before:absolute', {});
32266
32282
  return /*#__PURE__*/jsx("div", {
32267
32283
  role: "tablist",
32268
- className: classes,
32284
+ className: "relative flex gap-4 px-6 before:absolute before:inset-x-0 before:bottom-0 before:h-px before:bg-border-uiBorder01",
32269
32285
  children: children
32270
32286
  });
32271
32287
  }
@@ -32274,9 +32290,8 @@ Tab.Item = TabItem;
32274
32290
  function TableCell(_ref) {
32275
32291
  var children = _ref.children,
32276
32292
  className = _ref.className;
32277
- var cellClasses = clsx$1('border-b-[1px] border-border-uiBorder01');
32278
32293
  return /*#__PURE__*/jsx("div", {
32279
- className: clsx$1(cellClasses, className),
32294
+ className: clsx$1('border-b-[1px] border-border-uiBorder01', className),
32280
32295
  children: children
32281
32296
  });
32282
32297
  }
@@ -32293,15 +32308,19 @@ function TableRow(_ref) {
32293
32308
 
32294
32309
  function Table(_ref) {
32295
32310
  var width = _ref.width,
32296
- rows = _ref.rows,
32297
- columns = _ref.columns,
32311
+ templateRows = _ref.templateRows,
32312
+ templateColumns = _ref.templateColumns,
32313
+ autoColumns = _ref.autoColumns,
32314
+ autoRows = _ref.autoRows,
32298
32315
  children = _ref.children;
32299
32316
  return /*#__PURE__*/jsx("div", {
32300
32317
  className: "grid",
32301
32318
  style: {
32302
32319
  width: width,
32303
- gridTemplateRows: rows,
32304
- gridTemplateColumns: columns
32320
+ gridTemplateRows: templateRows,
32321
+ gridTemplateColumns: templateColumns,
32322
+ gridAutoColumns: autoColumns,
32323
+ gridAutoRows: autoRows
32305
32324
  },
32306
32325
  children: children
32307
32326
  });
@@ -32313,7 +32332,7 @@ var DeleteIcon = function DeleteIcon(_ref) {
32313
32332
  var color = _ref.color,
32314
32333
  variant = _ref.variant,
32315
32334
  onClick = _ref.onClick;
32316
- var deleteButtonClasses = clsx$1('h-[14px]', 'w-[14px]', 'ml-2', 'p-0.5', 'rounded-full', 'group', 'hover:bg-icon-iconOnColor', 'hover:cursor-pointer', 'focus-visible:bg-icon-iconOnColor', focusVisible.normal);
32335
+ var deleteButtonClasses = clsx$1('group ml-2 h-[14px] w-[14px] rounded-full p-0.5 hover:cursor-pointer hover:bg-icon-iconOnColor focus-visible:bg-icon-iconOnColor', focusVisible.normal);
32317
32336
  var deletePathClasses = clsx$1({
32318
32337
  'fill-interactive-interactive02': color === 'gray' || variant === 'light',
32319
32338
  'group-hover:fill-interactive-interactive02 group-focus-visible:fill-interactive-interactive02 fill-icon-iconOnColor': color !== 'gray'
@@ -32567,19 +32586,16 @@ function Toggle(_ref) {
32567
32586
  _ref$labelPosition = _ref.labelPosition,
32568
32587
  labelPosition = _ref$labelPosition === void 0 ? 'right' : _ref$labelPosition,
32569
32588
  isDisabled = _ref.isDisabled;
32570
- var wrapperClasses = 'flex flex-[0_0_auto] items-center relative';
32571
32589
  var baseClasses = clsx$1('relative flex items-center rounded-full', {
32590
+ 'bg-disabled-disabledOn': isDisabled && isChecked,
32591
+ 'bg-disabled-disabled01': isDisabled && !isChecked,
32592
+ 'bg-interactive-interactive01 peer-hover:bg-hover-hover01': !isDisabled && isChecked,
32593
+ 'bg-interactive-interactive02 peer-hover:bg-hover-hover02Dark': !isDisabled && !isChecked,
32572
32594
  'w-8 h-4 px-[3px]': size === 'small',
32573
32595
  'w-12 h-6 px-1': size === 'medium'
32574
- }, isDisabled ? {
32575
- 'bg-disabled-disabledOn': isChecked,
32576
- 'bg-disabled-disabled01': !isChecked
32577
- } : {
32578
- 'bg-interactive-interactive01 peer-hover:bg-hover-hover01': isChecked,
32579
- 'bg-interactive-interactive02 peer-hover:bg-hover-hover02Dark': !isChecked
32580
32596
  });
32581
32597
  var inputClasses = clsx$1('peer absolute inset-0 z-[1] opacity-0', isDisabled ? 'cursor-not-allowed' : 'cursor-pointer');
32582
- var indicatorClasses = clsx$1('bg-icon-iconOnColor', 'rounded-full', {
32598
+ var indicatorClasses = clsx$1('rounded-full bg-icon-iconOnColor', {
32583
32599
  'w-2.5 h-2.5': size === 'small',
32584
32600
  'w-4 h-4': size === 'medium',
32585
32601
  'ml-auto': isChecked
@@ -32593,7 +32609,7 @@ function Toggle(_ref) {
32593
32609
  'cursor-pointer text-text-text01': !isDisabled
32594
32610
  });
32595
32611
  return /*#__PURE__*/jsxs("div", {
32596
- className: wrapperClasses,
32612
+ className: "relative flex flex-[0_0_auto] items-center",
32597
32613
  children: [label && labelPosition === 'left' && /*#__PURE__*/jsx("label", {
32598
32614
  htmlFor: id,
32599
32615
  className: labelClasses,
@@ -32620,7 +32636,20 @@ function Toggle(_ref) {
32620
32636
  }
32621
32637
 
32622
32638
  var TailIcon = function TailIcon(props) {
32623
- var tailClasses = clsx$1('absolute', props.verticalPosition === 'bottom' ? 'rotate-180' : 'rotate-0', props.verticalPosition === 'bottom' ? props.size === 'small' ? '-top-1' : '-top-2' : props.size === 'small' ? '-bottom-1' : '-bottom-2', props.horizontalAlign === 'right' ? props.size === 'small' ? 'right-2' : 'right-4' : props.horizontalAlign === 'left' ? props.size === 'small' ? 'left-2' : 'left-4' : props.size === 'small' ? 'left-2/4 -translate-x-1' : 'left-2/4 -translate-x-2', 'fill-background-uiBackgroundTooltip');
32639
+ var tailClasses = clsx$1('absolute fill-background-uiBackgroundTooltip', {
32640
+ 'rotate-180': props.verticalPosition === 'bottom',
32641
+ 'rotate-0': props.verticalPosition !== 'bottom',
32642
+ '-top-1': props.verticalPosition === 'bottom' && props.size === 'small',
32643
+ '-top-2': props.verticalPosition === 'bottom' && props.size !== 'small',
32644
+ '-bottom-1': props.verticalPosition !== 'bottom' && props.size === 'small',
32645
+ '-bottom-2': props.verticalPosition !== 'bottom' && props.size !== 'small',
32646
+ 'right-2': props.horizontalAlign === 'right' && props.size === 'small',
32647
+ 'right-4': props.horizontalAlign === 'right' && props.size !== 'small',
32648
+ 'left-2': props.horizontalAlign === 'left' && props.size === 'small',
32649
+ 'left-4': props.horizontalAlign === 'left' && props.size !== 'small',
32650
+ 'left-2/4 -translate-x-1': props.horizontalAlign === 'center' && props.size === 'small',
32651
+ 'left-2/4 -translate-x-2': props.horizontalAlign === 'center' && props.size !== 'small'
32652
+ });
32624
32653
  if (props.size === 'small') {
32625
32654
  return /*#__PURE__*/jsx("svg", {
32626
32655
  className: tailClasses,
@@ -32684,7 +32713,6 @@ function Tooltip(_ref) {
32684
32713
  var handleMouseOutWrapper = useCallback(function () {
32685
32714
  setIsVisible(false);
32686
32715
  }, []);
32687
- var targetClasses = clsx$1('relative', 'flex', 'items-center', 'justify-center');
32688
32716
  var tooltipBodyClasses = clsx$1('absolute z-tooltip inline-block w-max rounded bg-background-uiBackgroundTooltip text-text-textOnColor', {
32689
32717
  'typography-body3regular': size === 'small',
32690
32718
  'typography-body2regular': size === 'medium',
@@ -32696,7 +32724,7 @@ function Tooltip(_ref) {
32696
32724
  });
32697
32725
  return /*#__PURE__*/jsxs("div", {
32698
32726
  ref: targetRef,
32699
- className: targetClasses,
32727
+ className: "relative flex items-center justify-center",
32700
32728
  onMouseOver: handleMouseOverWrapper,
32701
32729
  onMouseLeave: handleMouseOutWrapper,
32702
32730
  children: [children, isVisible && /*#__PURE__*/jsxs("div", {