@particle-network/ui-react 0.3.2-beta.0 → 0.3.2-beta.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.
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { type IconProps } from '@/icons';
2
+ import { type IconProps } from '../../icons';
3
3
  import { type VStackProps } from '../layout';
4
4
  export interface UXEmptyProps extends VStackProps {
5
5
  iconProps?: IconProps;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { type UXTooltipProps } from '@/components';
2
+ import { type UXTooltipProps } from '..';
3
3
  export type UXHintProps = UXTooltipProps & {
4
4
  triggerType?: 'hover' | 'click';
5
5
  buttonClassName?: string;
@@ -2,11 +2,9 @@ import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { forwardRef } from "react";
3
3
  import { Modal, ModalBody, ModalContent, ModalFooter, ModalHeader } from "@heroui/modal";
4
4
  import { Center, Circle, Flex, Text, UXButton } from "../index.js";
5
- import useKeyboard from "../../hooks/useKeyboard.js";
6
5
  import { CloseIcon } from "../../icons/index.js";
7
6
  const UXModal = /*#__PURE__*/ forwardRef((props, ref)=>{
8
7
  const { size, title, footer, backdrop, scrollBehavior = 'inside', children, titleAlign = 'left', classNames, tip, ...restProps } = props;
9
- const { isKeyboardVisible } = useKeyboard();
10
8
  return /*#__PURE__*/ jsx(Modal, {
11
9
  ref: ref,
12
10
  backdrop: backdrop,
@@ -19,7 +17,6 @@ const UXModal = /*#__PURE__*/ forwardRef((props, ref)=>{
19
17
  ],
20
18
  base: [
21
19
  'py-6 gap-5 shadow-box m-0 max-md:rounded-b-none',
22
- isKeyboardVisible && 'full' !== size ? "!max-h-[400px] !min-h-[400px] overflow-y-auto" : 'max-h-[calc(100vh-48px)]',
23
20
  'md:max-h-[750px]',
24
21
  classNames?.base
25
22
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@particle-network/ui-react",
3
- "version": "0.3.2-beta.0",
3
+ "version": "0.3.2-beta.1",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {