@zenkigen-inc/component-ui 1.8.0 → 1.8.1

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
@@ -32390,7 +32390,7 @@ const TextInput = /*#__PURE__*/forwardRef((_ref, ref) => {
32390
32390
  onClickClearButton
32391
32391
  } = _ref,
32392
32392
  props = _objectWithoutPropertiesLoose(_ref, _excluded);
32393
- const inputWrapClasses = clsx('flex items-center gap-2 overflow-hidden rounded border pl-2 pr-3', {
32393
+ const inputWrapClasses = clsx('relative flex items-center gap-2 overflow-hidden rounded border', {
32394
32394
  'border-border-uiBorder01': !isError,
32395
32395
  'border-support-supportError': isError && !props.disabled,
32396
32396
  'hover:border-hover-hoverInput': !props.disabled && !isError,
@@ -32398,7 +32398,7 @@ const TextInput = /*#__PURE__*/forwardRef((_ref, ref) => {
32398
32398
  'focus-within:border-active-activeInput': !isError,
32399
32399
  'bg-disabled-disabled02 border-disabled-disabled02': props.disabled
32400
32400
  });
32401
- const inputClasses = clsx('flex-1 outline-0 placeholder:text-text-textPlaceholder disabled:text-text-textPlaceholder', {
32401
+ const inputClasses = clsx('flex-1 pl-2 pr-3 outline-0 placeholder:text-text-textPlaceholder disabled:text-text-textPlaceholder', {
32402
32402
  ['typography-label2regular pt-1.5 pb-2']: size === 'medium',
32403
32403
  ['typography-label1regular py-2.5']: size === 'large',
32404
32404
  'text-text-text01': !isError,
@@ -32411,12 +32411,15 @@ const TextInput = /*#__PURE__*/forwardRef((_ref, ref) => {
32411
32411
  size: 1,
32412
32412
  className: inputClasses,
32413
32413
  onChange: props.onChange
32414
- }, props)), onClickClearButton && props.value && props.value.length !== 0 && !props.disabled && /*#__PURE__*/jsx(IconButton, {
32415
- variant: "text",
32416
- icon: "close",
32417
- size: "small",
32418
- isNoPadding: true,
32419
- onClick: onClickClearButton
32414
+ }, props)), onClickClearButton && props.value && props.value.length !== 0 && !props.disabled && /*#__PURE__*/jsx("div", {
32415
+ className: "absolute right-3",
32416
+ children: /*#__PURE__*/jsx(IconButton, {
32417
+ variant: "text",
32418
+ icon: "close",
32419
+ size: "small",
32420
+ isNoPadding: true,
32421
+ onClick: onClickClearButton
32422
+ })
32420
32423
  })]
32421
32424
  });
32422
32425
  });