@zenkigen-inc/component-ui 1.1.1 → 1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { userColors, typography, buttonColors, focusVisible, iconColors, tagColors, tagLightColors } from '@zenkigen-inc/component-theme';
2
2
  import clsx$1, { clsx } from 'clsx';
3
3
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
4
- import aa, { useState, useCallback, useEffect, createContext, useContext, useRef, cloneElement, forwardRef } from 'react';
4
+ import aa, { useState, useCallback, useEffect, createContext, useContext, useRef, forwardRef } from 'react';
5
5
  import { iconElements } from '@zenkigen-inc/component-icons';
6
6
 
7
7
  function _objectWithoutPropertiesLoose(source, excluded) {
@@ -71,7 +71,7 @@ function Button(_ref) {
71
71
  variant = 'fill'
72
72
  } = _ref,
73
73
  props = _objectWithoutPropertiesLoose(_ref, _excluded$4);
74
- const baseClasses = clsx('rounded', 'flex', 'shrink-0', 'gap-1', 'items-center', 'justify-center', buttonColors[variant].base, buttonColors[variant].hover, buttonColors[variant].active, buttonColors[variant].disabled, focusVisible.normal, size === 'large' ? typography.label.label1regular : typography.label.label2regular, {
74
+ const baseClasses = clsx('rounded-button', 'flex', 'shrink-0', 'gap-1', 'items-center', 'justify-center', buttonColors[variant].base, buttonColors[variant].hover, buttonColors[variant].active, buttonColors[variant].disabled, focusVisible.normal, size === 'large' ? typography.label.label1regular : typography.label.label2regular, {
75
75
  'h-6 px-2.5': size === 'small'
76
76
  }, {
77
77
  'h-8 px-3': size === 'medium'
@@ -341,11 +341,7 @@ function Dropdown({
341
341
  }
342
342
  }, [isVisible]);
343
343
  const wrapperClasses = clsx$1('relative', 'flex shrink-0 items-center gap-1', 'rounded', isDisabled && 'cursor-not-allowed');
344
- const childrenButtonClasses = clsx$1('flex items-center justify-center', 'rounded', 'hover:bg-hover-hover02', 'active:bg-active-active02', focusVisible.normal, isDisabled && 'pointer-events-none', {
345
- 'h-6 w-6': size === 'x-small',
346
- 'h-8 w-8': size === 'small',
347
- 'h-10 w-10': size === 'medium',
348
- 'h-12 w-12': size === 'large',
344
+ const 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', {
349
345
  'border border-border-uiBorder02': variant === 'outline'
350
346
  });
351
347
  const 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', {
@@ -354,9 +350,6 @@ function Dropdown({
354
350
  'h-10 px-4': size === 'large'
355
351
  });
356
352
  const labelClasses = clsx$1('flex', 'items-center', !isArrowHidden ? size === 'x-small' ? 'mr-1' : 'mr-2' : null, typography.label[size === 'x-small' ? 'label3regular' : size === 'small' || size === 'medium' ? 'label2regular' : 'label1regular']);
357
- const targetWithProps = target && /*#__PURE__*/cloneElement(target, {
358
- isDisabled
359
- });
360
353
  return /*#__PURE__*/jsx(DropdownContext.Provider, {
361
354
  value: {
362
355
  isVisible,
@@ -374,7 +367,7 @@ function Dropdown({
374
367
  className: childrenButtonClasses,
375
368
  onClick: handleToggle,
376
369
  disabled: isDisabled,
377
- children: targetWithProps
370
+ children: target
378
371
  }) : /*#__PURE__*/jsxs("button", {
379
372
  type: "button",
380
373
  title: title,
@@ -31422,10 +31415,11 @@ if (process.env.NODE_ENV === 'production') {
31422
31415
  });
31423
31416
 
31424
31417
  const ModalContext = /*#__PURE__*/createContext({
31425
- size: 'medium',
31418
+ width: 480,
31426
31419
  setIsOpen: () => false
31427
31420
  });
31428
31421
 
31422
+ const sizeSmallLimit = 420;
31429
31423
  function ModalButtonTab({
31430
31424
  primaryButtonLabel,
31431
31425
  secondaryButtonLabel,
@@ -31441,7 +31435,7 @@ function ModalButtonTab({
31441
31435
  onClickSubButton
31442
31436
  }) {
31443
31437
  const {
31444
- size,
31438
+ width,
31445
31439
  setIsOpen
31446
31440
  } = useContext(ModalContext);
31447
31441
  const handleClickPrimaryButton = useCallback(() => {
@@ -31456,17 +31450,18 @@ function ModalButtonTab({
31456
31450
  onClickSubButton == null || onClickSubButton();
31457
31451
  }, [onClickSubButton]);
31458
31452
  const wrapperClasses = clsx$1('flex', 'shrink-0', 'items-center', 'w-full', 'rounded-b-lg', 'py-4', 'px-6', {
31459
- 'justify-between': isWithCheckbox || subButtonLabel && size !== 'small',
31453
+ 'justify-between': isWithCheckbox || subButtonLabel && sizeSmallLimit <= width,
31460
31454
  'justify-end': !isWithCheckbox || !subButtonLabel,
31461
- 'justify-center': subButtonLabel && size === 'small',
31455
+ 'justify-center': subButtonLabel && width < sizeSmallLimit,
31462
31456
  'border-t-[1px] border-border-uiBorder01': !isNoBorder,
31463
- 'gap-y-4': size === 'small',
31464
- 'flex-wrap': size === 'small' && isWithCheckbox,
31465
- 'flex-wrap-reverse': size === 'small' && subButtonLabel
31457
+ 'gap-y-4': width < sizeSmallLimit,
31458
+ 'flex-wrap': width < sizeSmallLimit && isWithCheckbox,
31459
+ 'flex-wrap-reverse': width < sizeSmallLimit && subButtonLabel
31466
31460
  });
31467
31461
  const buttonContainerClasses = clsx$1('flex', 'items-center', {
31468
- 'gap-x-2': size === 'small',
31469
- 'gap-x-4': size === 'medium' || size === 'large' || size === 'x-large'
31462
+ 'w-full justify-center': width < sizeSmallLimit,
31463
+ 'gap-x-2': width < sizeSmallLimit,
31464
+ 'gap-x-4': sizeSmallLimit <= width
31470
31465
  });
31471
31466
  return /*#__PURE__*/jsxs("div", {
31472
31467
  className: wrapperClasses,
@@ -31487,13 +31482,13 @@ function ModalButtonTab({
31487
31482
  children: [/*#__PURE__*/jsx(Button, {
31488
31483
  variant: "outline",
31489
31484
  size: "large",
31490
- width: size === 'small' ? 132 : 'auto',
31485
+ width: width < sizeSmallLimit ? 132 : 'auto',
31491
31486
  onClick: handleClickSecondaryButton,
31492
31487
  children: secondaryButtonLabel
31493
31488
  }, "1"), /*#__PURE__*/jsx(Button, {
31494
31489
  variant: isDanger ? 'fillDanger' : 'fill',
31495
31490
  size: "large",
31496
- width: size === 'small' ? 132 : 'auto',
31491
+ width: width < sizeSmallLimit ? 132 : 'auto',
31497
31492
  onClick: handleClickPrimaryButton,
31498
31493
  children: primaryButtonLabel
31499
31494
  }, "2")]
@@ -31575,7 +31570,7 @@ function ModalTab({
31575
31570
 
31576
31571
  function Modal({
31577
31572
  children,
31578
- size = 'medium',
31573
+ width = 480,
31579
31574
  height,
31580
31575
  isOpen,
31581
31576
  setIsOpen,
@@ -31584,17 +31579,12 @@ function Modal({
31584
31579
  tabElement,
31585
31580
  buttonTabElement
31586
31581
  }) {
31587
- const wrapperClasses = clsx$1('flex', 'items-center', 'justify-center', 'z-overlay', 'bg-background-backgroundOverlayBlack', 'fixed left-0 top-0', 'h-full w-full');
31588
- const modalBaseClasses = clsx$1('flex', 'shrink-0', 'flex-col', 'bg-background-uiBackground01', 'rounded-lg', 'shadow-modalShadow', {
31589
- 'w-[320px]': size === 'small',
31590
- 'w-[480px]': size === 'medium',
31591
- 'w-[640px]': size === 'large',
31592
- 'w-[720px]': size === 'x-large'
31593
- });
31594
- const contentClasses = clsx$1('flex', 'items-center', 'justify-center', 'overflow-y-auto');
31582
+ const wrapperClasses = 'flex items-center justify-center z-overlay bg-background-backgroundOverlayBlack fixed left-0 top-0 h-full w-full';
31583
+ const modalBaseClasses = 'flex shrink-0 flex-col bg-background-uiBackground01 rounded-lg shadow-modalShadow';
31584
+ const contentClasses = 'flex items-center justify-center overflow-y-auto';
31595
31585
  return /*#__PURE__*/reactDom.createPortal(isOpen && /*#__PURE__*/jsx(ModalContext.Provider, {
31596
31586
  value: {
31597
- size,
31587
+ width,
31598
31588
  setIsOpen
31599
31589
  },
31600
31590
  children: /*#__PURE__*/jsx("div", {
@@ -31602,6 +31592,7 @@ function Modal({
31602
31592
  children: /*#__PURE__*/jsxs("div", {
31603
31593
  className: modalBaseClasses,
31604
31594
  style: {
31595
+ width,
31605
31596
  height
31606
31597
  },
31607
31598
  children: [headerElement, tabElement, /*#__PURE__*/jsx("div", {
@@ -31670,129 +31661,6 @@ function NotificationInline(_ref) {
31670
31661
  });
31671
31662
  }
31672
31663
 
31673
- function Radio({
31674
- name,
31675
- value,
31676
- id,
31677
- label,
31678
- isChecked = false,
31679
- isDisabled = false,
31680
- onChange
31681
- }) {
31682
- const [isMouseOver, setIsMouseOver] = useState(false);
31683
- const handleMouseOverInput = useCallback(() => {
31684
- setIsMouseOver(true);
31685
- }, []);
31686
- const handleMouseOutInput = useCallback(() => {
31687
- setIsMouseOver(false);
31688
- }, []);
31689
- const handleChange = useCallback(e => !isDisabled && (onChange == null ? void 0 : onChange(e)), [isDisabled, onChange]);
31690
- const inputClasses = clsx$1('absolute', 'z-[1]', 'opacity-0', 'peer', 'h-6', 'w-6', {
31691
- 'cursor-not-allowed': isDisabled,
31692
- 'cursor-pointer': !isDisabled
31693
- });
31694
- const boxClasses = clsx$1('inline-flex', 'items-center', 'justify-center', 'h-5', 'w-5', 'bg-white', 'border', 'border-solid', 'rounded-full', focusVisible.normalPeer, {
31695
- 'border-disabled-disabled01 hover:border-disabled-disabled01': isDisabled && !isMouseOver,
31696
- 'border-hover-hoverUiBorder': !isDisabled && isMouseOver,
31697
- 'border-border-uiBorder03': !isDisabled,
31698
- 'cursor-not-allowed': isDisabled,
31699
- 'cursor-pointer': !isDisabled
31700
- });
31701
- const afterClasses = clsx$1('h-3', 'w-3', 'absolute', 'top-0', 'right-0', 'bottom-0', 'left-0', 'block', 'm-auto', 'rounded-full', {
31702
- 'bg-disabled-disabled01': isDisabled && isChecked,
31703
- 'bg-active-activeSelectedUi': !isDisabled && isChecked,
31704
- 'scale-0': !isChecked,
31705
- 'scale-100': isChecked
31706
- });
31707
- const hoverIndicatorClasses = clsx$1('w-3', 'h-3', 'inline-block', 'rounded-full', !isDisabled && !isChecked && isMouseOver && 'bg-hover-hoverUi');
31708
- const labelClasses = clsx$1('flex-[1_0_0]', 'ml-2', typography.label.label2regular, 'break-all', 'select-none', {
31709
- 'pointer-events-none cursor-not-allowed text-disabled-disabled01': isDisabled,
31710
- 'cursor-pointer text-text-text01': !isDisabled
31711
- });
31712
- return /*#__PURE__*/jsxs("div", {
31713
- className: "flex items-center",
31714
- children: [/*#__PURE__*/jsxs("div", {
31715
- className: "flex h-6 w-6 items-center justify-center",
31716
- children: [/*#__PURE__*/jsx("input", {
31717
- type: "checkbox",
31718
- value: value,
31719
- name: name,
31720
- id: id,
31721
- checked: isChecked,
31722
- disabled: isDisabled,
31723
- onChange: handleChange,
31724
- onMouseOver: handleMouseOverInput,
31725
- onMouseLeave: handleMouseOutInput,
31726
- className: inputClasses
31727
- }), /*#__PURE__*/jsx("div", {
31728
- className: boxClasses,
31729
- children: /*#__PURE__*/jsxs("div", {
31730
- className: "relative flex h-5 w-5 flex-[0_0_auto] items-center justify-center",
31731
- children: [/*#__PURE__*/jsx("span", {
31732
- className: afterClasses
31733
- }), /*#__PURE__*/jsx("span", {
31734
- className: hoverIndicatorClasses
31735
- })]
31736
- })
31737
- })]
31738
- }), /*#__PURE__*/jsx("label", {
31739
- htmlFor: id,
31740
- className: labelClasses,
31741
- children: label
31742
- })]
31743
- });
31744
- }
31745
-
31746
- const _excluded = ["width", "size"];
31747
- const Search = /*#__PURE__*/forwardRef((_ref, ref) => {
31748
- let {
31749
- width = '100%',
31750
- size = 'medium'
31751
- } = _ref,
31752
- props = _objectWithoutPropertiesLoose(_ref, _excluded);
31753
- const classes = clsx('flex', 'items-center', 'rounded-full', 'border', 'border-border-uiBorder02', 'focus-within:border-active-activeInput', {
31754
- 'h-8 px-3': size === 'medium'
31755
- }, {
31756
- 'h-10 px-4': size === 'large'
31757
- });
31758
- const inputClasses = clsx('ml-2.5', 'mr-2.5', 'h-full', 'flex-1', 'outline-0', 'text-text-text01', 'placeholder:text-text-textPlaceholder', {
31759
- [`${typography.label.label2regular}`]: size === 'medium',
31760
- [`${typography.label.label1regular}`]: size === 'large'
31761
- });
31762
- return /*#__PURE__*/jsx("div", {
31763
- className: "relative",
31764
- ref: ref,
31765
- children: /*#__PURE__*/jsx("form", {
31766
- onSubmit: props.onSubmit,
31767
- children: /*#__PURE__*/jsxs("div", {
31768
- className: classes,
31769
- style: {
31770
- width
31771
- },
31772
- children: [/*#__PURE__*/jsx(Icon, {
31773
- name: "search",
31774
- color: "icon01",
31775
- size: "medium"
31776
- }), /*#__PURE__*/jsx("input", {
31777
- type: "text",
31778
- size: 1,
31779
- value: props.value,
31780
- className: inputClasses,
31781
- placeholder: props.placeholder,
31782
- onChange: props.onChange
31783
- }), props.onClickClearButton && props.value && props.value.length !== 0 && /*#__PURE__*/jsx(IconButton, {
31784
- variant: "text",
31785
- icon: "close",
31786
- size: size === 'medium' ? 'small' : 'medium',
31787
- isNoPadding: true,
31788
- onClick: props.onClickClearButton
31789
- })]
31790
- })
31791
- })
31792
- });
31793
- });
31794
- Search.displayName = 'Search';
31795
-
31796
31664
  const SelectContext = /*#__PURE__*/createContext({
31797
31665
  size: 'medium',
31798
31666
  setIsOptionListOpen: () => false,
@@ -31960,6 +31828,189 @@ function Select({
31960
31828
  }
31961
31829
  Select.Option = SelectItem$1;
31962
31830
 
31831
+ function PaginationSelect({
31832
+ totalSize,
31833
+ currentPage,
31834
+ sizePerPage,
31835
+ countLabel = '件',
31836
+ pageLabel = 'ページ',
31837
+ optionListMaxHeight = 190,
31838
+ onClickPrevButton,
31839
+ onClickNextButton,
31840
+ onChange
31841
+ }) {
31842
+ const pageMax = Math.ceil(totalSize / sizePerPage);
31843
+ const optionsList = [...Array(pageMax)].map((_, index) => {
31844
+ const value = (index + 1).toString();
31845
+ return {
31846
+ id: value,
31847
+ value,
31848
+ label: value
31849
+ };
31850
+ });
31851
+ return /*#__PURE__*/jsxs("nav", {
31852
+ "aria-label": "pagination",
31853
+ className: "flex items-center gap-x-1",
31854
+ children: [/*#__PURE__*/jsxs("div", {
31855
+ className: "flex items-center gap-x-2",
31856
+ children: [/*#__PURE__*/jsxs("div", {
31857
+ className: clsx$1('text-text-text01', typography.label.label2regular),
31858
+ children: [(currentPage - 1) * sizePerPage + 1, " -", ' ', currentPage * sizePerPage > totalSize ? totalSize : currentPage * sizePerPage, countLabel]
31859
+ }), /*#__PURE__*/jsx(Select, {
31860
+ size: "medium",
31861
+ variant: "outline",
31862
+ selectedOption: optionsList.find(option => option.value === currentPage.toString()),
31863
+ optionListMaxHeight: optionListMaxHeight,
31864
+ onChange: option => option && onChange(Number(option.value)),
31865
+ children: optionsList && optionsList.map(option => /*#__PURE__*/jsx(Select.Option, {
31866
+ option: option
31867
+ }, option.id))
31868
+ }), /*#__PURE__*/jsxs("div", {
31869
+ className: clsx$1('text-text-text03', typography.label.label2regular),
31870
+ children: ["/ ", pageMax, pageLabel]
31871
+ })]
31872
+ }), /*#__PURE__*/jsxs("div", {
31873
+ className: "flex items-center",
31874
+ children: [/*#__PURE__*/jsx(IconButton, {
31875
+ variant: "text",
31876
+ icon: "angle-left",
31877
+ size: "small",
31878
+ isDisabled: currentPage === 1,
31879
+ onClick: onClickPrevButton
31880
+ }), /*#__PURE__*/jsx(IconButton, {
31881
+ variant: "text",
31882
+ icon: "angle-right",
31883
+ size: "small",
31884
+ isDisabled: currentPage === pageMax,
31885
+ onClick: onClickNextButton
31886
+ })]
31887
+ })]
31888
+ });
31889
+ }
31890
+
31891
+ function Radio({
31892
+ name,
31893
+ value,
31894
+ id,
31895
+ label,
31896
+ isChecked = false,
31897
+ isDisabled = false,
31898
+ onChange
31899
+ }) {
31900
+ const [isMouseOver, setIsMouseOver] = useState(false);
31901
+ const handleMouseOverInput = useCallback(() => {
31902
+ setIsMouseOver(true);
31903
+ }, []);
31904
+ const handleMouseOutInput = useCallback(() => {
31905
+ setIsMouseOver(false);
31906
+ }, []);
31907
+ const handleChange = useCallback(e => !isDisabled && (onChange == null ? void 0 : onChange(e)), [isDisabled, onChange]);
31908
+ const inputClasses = clsx$1('absolute', 'z-[1]', 'opacity-0', 'peer', 'h-6', 'w-6', {
31909
+ 'cursor-not-allowed': isDisabled,
31910
+ 'cursor-pointer': !isDisabled
31911
+ });
31912
+ const boxClasses = clsx$1('inline-flex', 'items-center', 'justify-center', 'h-5', 'w-5', 'bg-white', 'border', 'border-solid', 'rounded-full', focusVisible.normalPeer, {
31913
+ 'border-disabled-disabled01 hover:border-disabled-disabled01': isDisabled && !isMouseOver,
31914
+ 'border-hover-hoverUiBorder': !isDisabled && isMouseOver,
31915
+ 'border-border-uiBorder03': !isDisabled,
31916
+ 'cursor-not-allowed': isDisabled,
31917
+ 'cursor-pointer': !isDisabled
31918
+ });
31919
+ const afterClasses = clsx$1('h-3', 'w-3', 'absolute', 'top-0', 'right-0', 'bottom-0', 'left-0', 'block', 'm-auto', 'rounded-full', {
31920
+ 'bg-disabled-disabled01': isDisabled && isChecked,
31921
+ 'bg-active-activeSelectedUi': !isDisabled && isChecked,
31922
+ 'scale-0': !isChecked,
31923
+ 'scale-100': isChecked
31924
+ });
31925
+ const hoverIndicatorClasses = clsx$1('w-3', 'h-3', 'inline-block', 'rounded-full', !isDisabled && !isChecked && isMouseOver && 'bg-hover-hoverUi');
31926
+ const labelClasses = clsx$1('flex-[1_0_0]', 'ml-2', typography.label.label2regular, 'break-all', 'select-none', {
31927
+ 'pointer-events-none cursor-not-allowed text-disabled-disabled01': isDisabled,
31928
+ 'cursor-pointer text-text-text01': !isDisabled
31929
+ });
31930
+ return /*#__PURE__*/jsxs("div", {
31931
+ className: "flex items-center",
31932
+ children: [/*#__PURE__*/jsxs("div", {
31933
+ className: "flex h-6 w-6 items-center justify-center",
31934
+ children: [/*#__PURE__*/jsx("input", {
31935
+ type: "checkbox",
31936
+ value: value,
31937
+ name: name,
31938
+ id: id,
31939
+ checked: isChecked,
31940
+ disabled: isDisabled,
31941
+ onChange: handleChange,
31942
+ onMouseOver: handleMouseOverInput,
31943
+ onMouseLeave: handleMouseOutInput,
31944
+ className: inputClasses
31945
+ }), /*#__PURE__*/jsx("div", {
31946
+ className: boxClasses,
31947
+ children: /*#__PURE__*/jsxs("div", {
31948
+ className: "relative flex h-5 w-5 flex-[0_0_auto] items-center justify-center",
31949
+ children: [/*#__PURE__*/jsx("span", {
31950
+ className: afterClasses
31951
+ }), /*#__PURE__*/jsx("span", {
31952
+ className: hoverIndicatorClasses
31953
+ })]
31954
+ })
31955
+ })]
31956
+ }), /*#__PURE__*/jsx("label", {
31957
+ htmlFor: id,
31958
+ className: labelClasses,
31959
+ children: label
31960
+ })]
31961
+ });
31962
+ }
31963
+
31964
+ const _excluded = ["width", "size"];
31965
+ const Search = /*#__PURE__*/forwardRef((_ref, ref) => {
31966
+ let {
31967
+ width = '100%',
31968
+ size = 'medium'
31969
+ } = _ref,
31970
+ props = _objectWithoutPropertiesLoose(_ref, _excluded);
31971
+ const classes = clsx('flex', 'items-center', 'rounded-full', 'border', 'border-border-uiBorder02', 'focus-within:border-active-activeInput', {
31972
+ 'h-8 px-3': size === 'medium'
31973
+ }, {
31974
+ 'h-10 px-4': size === 'large'
31975
+ });
31976
+ const inputClasses = clsx('ml-2.5', 'mr-2.5', 'h-full', 'flex-1', 'outline-0', 'text-text-text01', 'placeholder:text-text-textPlaceholder', {
31977
+ [`${typography.label.label2regular}`]: size === 'medium',
31978
+ [`${typography.label.label1regular}`]: size === 'large'
31979
+ });
31980
+ return /*#__PURE__*/jsx("div", {
31981
+ className: "relative",
31982
+ ref: ref,
31983
+ children: /*#__PURE__*/jsx("form", {
31984
+ onSubmit: props.onSubmit,
31985
+ children: /*#__PURE__*/jsxs("div", {
31986
+ className: classes,
31987
+ style: {
31988
+ width
31989
+ },
31990
+ children: [/*#__PURE__*/jsx(Icon, {
31991
+ name: "search",
31992
+ color: "icon01",
31993
+ size: "medium"
31994
+ }), /*#__PURE__*/jsx("input", {
31995
+ type: "text",
31996
+ size: 1,
31997
+ value: props.value,
31998
+ className: inputClasses,
31999
+ placeholder: props.placeholder,
32000
+ onChange: props.onChange
32001
+ }), props.onClickClearButton && props.value && props.value.length !== 0 && /*#__PURE__*/jsx(IconButton, {
32002
+ variant: "text",
32003
+ icon: "close",
32004
+ size: size === 'medium' ? 'small' : 'medium',
32005
+ isNoPadding: true,
32006
+ onClick: props.onClickClearButton
32007
+ })]
32008
+ })
32009
+ })
32010
+ });
32011
+ });
32012
+ Search.displayName = 'Search';
32013
+
31963
32014
  function SelectItem({
31964
32015
  children,
31965
32016
  isSortKey,
@@ -32441,5 +32492,5 @@ function Tooltip({
32441
32492
  });
32442
32493
  }
32443
32494
 
32444
- export { Avatar, Breadcrumb, Button, Checkbox, Dropdown, EvaluationStar, Heading, Icon, IconButton, Loading, Modal, NotificationInline, Radio, Search, Select, SelectSort, Tab, TabItem, Table, TableCell, TableRow, Tag, Toast, ToastProvider, Toggle, Tooltip, useToast };
32495
+ export { Avatar, Breadcrumb, Button, Checkbox, Dropdown, EvaluationStar, Heading, Icon, IconButton, Loading, Modal, NotificationInline, PaginationSelect, Radio, Search, Select, SelectSort, Tab, TabItem, Table, TableCell, TableRow, Tag, Toast, ToastProvider, Toggle, Tooltip, useToast };
32445
32496
  //# sourceMappingURL=index.js.map