@ioca/react 1.5.21 → 1.5.22
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/lib/es/components/affix/affix.js +0 -1
- package/lib/es/components/badge/badge.js +0 -1
- package/lib/es/components/button/button.js +0 -1
- package/lib/es/components/card/card.js +0 -1
- package/lib/es/components/checkbox/checkbox.js +0 -2
- package/lib/es/components/collapse/collapse.js +0 -1
- package/lib/es/components/datagrid/datagrid.js +0 -1
- package/lib/es/components/description/description.js +0 -1
- package/lib/es/components/drawer/drawer.js +0 -1
- package/lib/es/components/dropdown/dropdown.js +0 -1
- package/lib/es/components/editor/editor.js +0 -1
- package/lib/es/components/flex/flex.js +0 -1
- package/lib/es/components/form/form.js +0 -1
- package/lib/es/components/icon/icon.js +0 -1
- package/lib/es/components/image/image.js +0 -1
- package/lib/es/components/input/input.js +0 -1
- package/lib/es/components/input/number.js +0 -1
- package/lib/es/components/input/range.js +0 -1
- package/lib/es/components/input/textarea.js +0 -1
- package/lib/es/components/list/list.js +0 -1
- package/lib/es/components/loading/loading.js +0 -1
- package/lib/es/components/message/message.js +0 -1
- package/lib/es/components/modal/content.js +0 -1
- package/lib/es/components/modal/modal.js +0 -1
- package/lib/es/components/pagination/pagination.js +0 -1
- package/lib/es/components/picker/colors/index.js +0 -1
- package/lib/es/components/picker/daterange/daterange.js +0 -2
- package/lib/es/components/picker/dates/index.js +0 -1
- package/lib/es/components/picker/time/panel.js +0 -1
- package/lib/es/components/popconfirm/popconfirm.js +0 -1
- package/lib/es/components/popup/popup.js +0 -1
- package/lib/es/components/progress/progress.js +0 -2
- package/lib/es/components/radio/radio.js +0 -2
- package/lib/es/components/resizable/resizable.js +0 -1
- package/lib/es/components/river/river.js +0 -1
- package/lib/es/components/scroll/scroll.js +0 -1
- package/lib/es/components/select/select.js +0 -2
- package/lib/es/components/step/divider.js +0 -1
- package/lib/es/components/step/step.js +0 -1
- package/lib/es/components/swiper/swiper.js +0 -1
- package/lib/es/components/tabs/tabs.js +0 -1
- package/lib/es/components/tag/tag.js +0 -1
- package/lib/es/components/text/text.js +0 -1
- package/lib/es/components/tree/tree.js +0 -1
- package/lib/es/components/upload/upload.js +0 -1
- package/lib/es/components/utils/empty/index.js +0 -1
- package/lib/es/components/utils/helpericon/helpericon.js +0 -1
- package/lib/es/components/video/video.js +0 -1
- package/lib/es/index.js +0 -1
- package/lib/es/js/usePreview/index.js +0 -1
- package/lib/es/js/useRipple/index.js +0 -2
- package/package.json +1 -1
|
@@ -2,7 +2,6 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import classNames from 'classnames';
|
|
3
3
|
import { debounce } from 'radash';
|
|
4
4
|
import { useState, useRef, useMemo, Children, cloneElement, useEffect } from 'react';
|
|
5
|
-
import './index.css';
|
|
6
5
|
import ToTop from './totop.js';
|
|
7
6
|
|
|
8
7
|
const defaultGetContainer = () => {
|
|
@@ -5,7 +5,6 @@ import useRipple from '../../js/useRipple/index.js';
|
|
|
5
5
|
import Loading from '../loading/loading.js';
|
|
6
6
|
import Confirm from './confirm.js';
|
|
7
7
|
import Group from './group.js';
|
|
8
|
-
import './index.css';
|
|
9
8
|
import Toggle from './toggle.js';
|
|
10
9
|
|
|
11
10
|
const formatClass = ({ outline, flat, loading, disabled, size = "normal", block, round, square, secondary, className, }) => classNames("i-btn", className, {
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import classNames from 'classnames';
|
|
3
3
|
import { useState, useMemo, useEffect } from 'react';
|
|
4
|
-
import '../../css/input.css';
|
|
5
4
|
import { formatOption } from '../../js/utils.js';
|
|
6
|
-
import './index.css';
|
|
7
5
|
import CheckboxItem from './item.js';
|
|
8
6
|
|
|
9
7
|
function Checkbox(props) {
|
|
@@ -3,7 +3,6 @@ import { MinusRound, PlusRound } from '@ricons/material';
|
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import { useState, useMemo, Children } from 'react';
|
|
5
5
|
import Helpericon from '../utils/helpericon/helpericon.js';
|
|
6
|
-
import './index.css';
|
|
7
6
|
import Item from './item.js';
|
|
8
7
|
|
|
9
8
|
const Collapse = (props) => {
|
|
@@ -6,7 +6,6 @@ import { getNextSorter } from '../../js/utils.js';
|
|
|
6
6
|
import Loading from '../loading/loading.js';
|
|
7
7
|
import Empty from '../utils/empty/index.js';
|
|
8
8
|
import { buildGridTemplateColumns, buildCssWidths, applyFixedInsets } from './helper.js';
|
|
9
|
-
import './index.css';
|
|
10
9
|
import Row, { Header } from './row.js';
|
|
11
10
|
import VirtualDatagrid from './virtual.js';
|
|
12
11
|
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import classNames from 'classnames';
|
|
3
3
|
import { Fragment } from 'react';
|
|
4
|
-
import './index.css';
|
|
5
4
|
|
|
6
5
|
const Description = (props) => {
|
|
7
6
|
const { data, colon, columns = 1, gap = ".5em", align, labelWidth, labelAlign, vertical, equally, style, className, } = props;
|
|
@@ -4,7 +4,6 @@ import { useRef, useTransition, useEffect } from 'react';
|
|
|
4
4
|
import { createPortal } from 'react-dom';
|
|
5
5
|
import { useReactive, useKeydown } from '../../js/hooks.js';
|
|
6
6
|
import Helpericon from '../utils/helpericon/helpericon.js';
|
|
7
|
-
import './index.css';
|
|
8
7
|
|
|
9
8
|
function Drawer(props) {
|
|
10
9
|
const { visible, position = "left", header, footer, backdropClosable = true, hideCloseButton, keepDOM, className, disabledEsc, children, onVisibleChange, onClose, ...restProps } = props;
|
|
@@ -2,7 +2,6 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import { createContext, useState, useEffect } from 'react';
|
|
3
3
|
import List from '../list/list.js';
|
|
4
4
|
import Popup from '../popup/popup.js';
|
|
5
|
-
import './index.css';
|
|
6
5
|
import Item from './item.js';
|
|
7
6
|
|
|
8
7
|
const DropdownCloseCtx = createContext(null);
|
|
@@ -3,7 +3,6 @@ import classNames from 'classnames';
|
|
|
3
3
|
import { useRef, useState, useMemo, useEffect, useCallback } from 'react';
|
|
4
4
|
import xss from 'xss';
|
|
5
5
|
import getControls, { xssOptions, exec } from './controls.js';
|
|
6
|
-
import './index.css';
|
|
7
6
|
import Memtion, { filterMemtionOptions, sanitizePlaintextOnMemtionHtml, getMemtionReplaceRange, insertMemtionOption, removeAdjacentMemtionTag, getMemtionText, getSelectionRect } from './memtion.js';
|
|
8
7
|
|
|
9
8
|
const controlBtnProps = {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import classNames from 'classnames';
|
|
3
3
|
import { useMemo } from 'react';
|
|
4
|
-
import './index.css';
|
|
5
4
|
|
|
6
5
|
const Flex = (props) => {
|
|
7
6
|
const { as: Component = "div", align, justify, direction, wrap, gap, columns, className, style, ...restProps } = props;
|
|
@@ -4,7 +4,6 @@ import { memo, useRef, useCallback, useEffect, useMemo } from 'react';
|
|
|
4
4
|
import { useReactive, useIntersectionObserver } from '../../js/hooks.js';
|
|
5
5
|
import usePreview from '../../js/usePreview/index.js';
|
|
6
6
|
import Loading from '../loading/loading.js';
|
|
7
|
-
import './index.css';
|
|
8
7
|
import List from './list.js';
|
|
9
8
|
|
|
10
9
|
const STATUS_LOADING = "loading";
|
|
@@ -2,7 +2,6 @@ import { jsx, jsxs } from 'react/jsx-runtime';
|
|
|
2
2
|
import { VisibilityRound, VisibilityOffRound } from '@ricons/material';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import { useState, useMemo, useEffect } from 'react';
|
|
5
|
-
import '../../css/input.css';
|
|
6
5
|
import Helpericon from '../utils/helpericon/helpericon.js';
|
|
7
6
|
import InputContainer from './container.js';
|
|
8
7
|
import Number from './number.js';
|
|
@@ -2,7 +2,6 @@ import { jsx, jsxs } from 'react/jsx-runtime';
|
|
|
2
2
|
import { MinusRound, PlusRound, KeyboardDoubleArrowUpRound } from '@ricons/material';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import { useState, useEffect } from 'react';
|
|
5
|
-
import '../../css/input.css';
|
|
6
5
|
import { clamp, formatNumber } from '../../js/utils.js';
|
|
7
6
|
import Helpericon from '../utils/helpericon/helpericon.js';
|
|
8
7
|
import InputContainer from './container.js';
|
|
@@ -2,7 +2,6 @@ import { jsx, jsxs } from 'react/jsx-runtime';
|
|
|
2
2
|
import { MinusRound, PlusRound, SyncAltRound } from '@ricons/material';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import { useState, useEffect } from 'react';
|
|
5
|
-
import '../../css/input.css';
|
|
6
5
|
import { formatNumber, clamp } from '../../js/utils.js';
|
|
7
6
|
import Helpericon from '../utils/helpericon/helpericon.js';
|
|
8
7
|
import InputContainer from './container.js';
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import classNames from 'classnames';
|
|
3
3
|
import { useState, useRef, useEffect, useImperativeHandle } from 'react';
|
|
4
|
-
import '../../css/input.css';
|
|
5
4
|
import InputContainer from './container.js';
|
|
6
5
|
|
|
7
6
|
const Textarea = (props) => {
|
|
@@ -2,7 +2,6 @@ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import { memo, useState, useMemo } from 'react';
|
|
3
3
|
import Button from '../button/button.js';
|
|
4
4
|
import Helpericon from '../utils/helpericon/helpericon.js';
|
|
5
|
-
import './index.css';
|
|
6
5
|
|
|
7
6
|
const Content = (props) => {
|
|
8
7
|
const { title, footer, hideCloseButton, footerLeft, okButtonProps, cancelButtonProps, children, onOk, onClose, } = props;
|
|
@@ -5,7 +5,6 @@ import { createPortal } from 'react-dom';
|
|
|
5
5
|
import { useKeydown } from '../../js/hooks.js';
|
|
6
6
|
import Content from './content.js';
|
|
7
7
|
import ModalContext from './context.js';
|
|
8
|
-
import './index.css';
|
|
9
8
|
import { updateVisible, subscribe, register, getContainer, isTop } from './modalManager.js';
|
|
10
9
|
import useModal from './useModal.js';
|
|
11
10
|
|
|
@@ -3,7 +3,6 @@ import { KeyboardArrowLeftRound, KeyboardArrowRightRound, MoreHorizRound } from
|
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import { useState, useMemo, useEffect } from 'react';
|
|
5
5
|
import Icon from '../icon/icon.js';
|
|
6
|
-
import './index.css';
|
|
7
6
|
import Page from './page.js';
|
|
8
7
|
|
|
9
8
|
const Pagination = (props) => {
|
|
@@ -6,7 +6,6 @@ import InputContainer from '../../input/container.js';
|
|
|
6
6
|
import Popup from '../../popup/popup.js';
|
|
7
7
|
import Footer, { ColorMethods } from './footer.js';
|
|
8
8
|
import Handle from './handle.js';
|
|
9
|
-
import './index.css';
|
|
10
9
|
|
|
11
10
|
function ColorPicker(props) {
|
|
12
11
|
const { value, type = "HEX", disabledAlpha, children, usePanel, handle = "both", placeholder = "Colors", popupProps, onChange, label, required, className, style, ...restProps } = props;
|
|
@@ -7,8 +7,6 @@ import { useState, useMemo } from 'react';
|
|
|
7
7
|
import Icon from '../../icon/icon.js';
|
|
8
8
|
import Input from '../../input/input.js';
|
|
9
9
|
import Popup from '../../popup/popup.js';
|
|
10
|
-
import '../dates/index.css';
|
|
11
|
-
import './index.css';
|
|
12
10
|
import DoublePanel from './panel.js';
|
|
13
11
|
|
|
14
12
|
dayjs.extend(customParseFormat);
|
|
@@ -7,7 +7,6 @@ import { useState, useMemo, useEffect } from 'react';
|
|
|
7
7
|
import Icon from '../../icon/icon.js';
|
|
8
8
|
import Input from '../../input/input.js';
|
|
9
9
|
import Popup from '../../popup/popup.js';
|
|
10
|
-
import './index.css';
|
|
11
10
|
import Panel from './panel.js';
|
|
12
11
|
|
|
13
12
|
dayjs.extend(customParseFormat);
|
|
@@ -4,7 +4,6 @@ import { useRef, useState, useMemo, Children, isValidElement, cloneElement, useE
|
|
|
4
4
|
import { useResizeObserver, useMouseUp } from '../../js/hooks.js';
|
|
5
5
|
import { getPosition, getPointPosition } from '../../js/utils.js';
|
|
6
6
|
import Content from './content.js';
|
|
7
|
-
import './index.css';
|
|
8
7
|
|
|
9
8
|
const REACT_FORWARD_REF = Symbol.for("react.forward_ref");
|
|
10
9
|
const REACT_FRAGMENT = Symbol.for("react.fragment");
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import classNames from 'classnames';
|
|
3
3
|
import { useRef, useEffect } from 'react';
|
|
4
|
-
import '../../css/input.css';
|
|
5
4
|
import { useReactive, useMouseMove, useMouseUp } from '../../js/hooks.js';
|
|
6
5
|
import Circle from './circle.js';
|
|
7
|
-
import './index.css';
|
|
8
6
|
import Line from './line.js';
|
|
9
7
|
|
|
10
8
|
const Progress = (props) => {
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import classNames from 'classnames';
|
|
3
3
|
import { useState, useMemo, useEffect } from 'react';
|
|
4
|
-
import '../../css/input.css';
|
|
5
4
|
import { formatOption } from '../../js/utils.js';
|
|
6
|
-
import './index.css';
|
|
7
5
|
import RadioItem from './item.js';
|
|
8
6
|
|
|
9
7
|
function Radio(props) {
|
|
@@ -2,7 +2,6 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import classNames from 'classnames';
|
|
3
3
|
import { useRef } from 'react';
|
|
4
4
|
import { useReactive, useMouseUp, useMouseMove } from '../../js/hooks.js';
|
|
5
|
-
import './index.css';
|
|
6
5
|
|
|
7
6
|
const Resizable = (props) => {
|
|
8
7
|
const { other, children, vertical, height, size = "auto", minSize = 0, maxSize = "100%", style, line, className, asPercent, onResize, onResizeComplete, } = props;
|
|
@@ -2,7 +2,6 @@ import { jsx, jsxs } from 'react/jsx-runtime';
|
|
|
2
2
|
import classNames from 'classnames';
|
|
3
3
|
import { useRef, useMemo, Children, useLayoutEffect } from 'react';
|
|
4
4
|
import { useReactive } from '../../js/hooks.js';
|
|
5
|
-
import './index.css';
|
|
6
5
|
|
|
7
6
|
const River = (props) => {
|
|
8
7
|
const { children, className, speed = 1, pauseOnHover, ...restProps } = props;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import classNames from 'classnames';
|
|
3
3
|
import { useRef, useState, useEffect } from 'react';
|
|
4
|
-
import './index.css';
|
|
5
4
|
|
|
6
5
|
const Scroll = (props) => {
|
|
7
6
|
const { style, className, draggable, onScroll, children, ...restProps } = props;
|
|
@@ -3,11 +3,9 @@ import { UnfoldMoreRound } from '@ricons/material';
|
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import { debounce } from 'radash';
|
|
5
5
|
import { useState, useMemo, useEffect } from 'react';
|
|
6
|
-
import '../../css/input.css';
|
|
7
6
|
import { formatOption } from '../../js/utils.js';
|
|
8
7
|
import Popup from '../popup/popup.js';
|
|
9
8
|
import Helpericon from '../utils/helpericon/helpericon.js';
|
|
10
|
-
import './index.css';
|
|
11
9
|
import { displayValue, Options } from './options.js';
|
|
12
10
|
|
|
13
11
|
const Select = (props) => {
|
|
@@ -5,7 +5,6 @@ import { useRef, useMemo, Children, useImperativeHandle, useEffect } from 'react
|
|
|
5
5
|
import { useReactive, useMouseMove, useMouseUp } from '../../js/hooks.js';
|
|
6
6
|
import { clamp } from '../../js/utils.js';
|
|
7
7
|
import Icon from '../icon/icon.js';
|
|
8
|
-
import './index.css';
|
|
9
8
|
import Item from './item.js';
|
|
10
9
|
|
|
11
10
|
const Swiper = ((props) => {
|
|
@@ -4,7 +4,6 @@ import { useRef, useState, useMemo, useEffect, useImperativeHandle } from 'react
|
|
|
4
4
|
import { useIntersectionObserver, useSize } from '../../js/hooks.js';
|
|
5
5
|
import TabsContents from './contents.js';
|
|
6
6
|
import { defaultRenderMore, getParsedTabs, isSameTabs, emptyBarStyle } from './helper.js';
|
|
7
|
-
import './index.css';
|
|
8
7
|
import Item from './item.js';
|
|
9
8
|
import TabsNavs from './navs.js';
|
|
10
9
|
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import classNames from 'classnames';
|
|
3
3
|
import Helpericon from '../utils/helpericon/helpericon.js';
|
|
4
|
-
import './index.css';
|
|
5
4
|
|
|
6
5
|
const Tag = (props) => {
|
|
7
6
|
const { dot, dotClass, outline, round, size = "normal", hoverShowClose, className, children, onClose, onClick, ...restProps } = props;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { flushSync } from 'react-dom';
|
|
3
3
|
import { useState, useRef, useMemo, useEffect, useImperativeHandle } from 'react';
|
|
4
|
-
import './index.css';
|
|
5
4
|
import { TreeList } from './item.js';
|
|
6
5
|
import VirtualTree from './virtual.js';
|
|
7
6
|
|
|
@@ -11,7 +11,6 @@ import Button from '../button/button.js';
|
|
|
11
11
|
import Icon from '../icon/icon.js';
|
|
12
12
|
import InputContainer from '../input/container.js';
|
|
13
13
|
import Dropbox from './dropbox.js';
|
|
14
|
-
import './index.css';
|
|
15
14
|
import FileListItem, { ListContainer } from './renderFile.js';
|
|
16
15
|
|
|
17
16
|
const normalizeFiles = (files) => (files ?? []).map((item) => {
|
|
@@ -4,7 +4,6 @@ import classNames from 'classnames';
|
|
|
4
4
|
import { uid } from 'radash';
|
|
5
5
|
import { createElement } from 'react';
|
|
6
6
|
import Icon from '../../icon/icon.js';
|
|
7
|
-
import './index.css';
|
|
8
7
|
|
|
9
8
|
const Helpericon = (props) => {
|
|
10
9
|
const { as = "a", active, className, icon = jsx(CloseRound, {}), ...restProps } = props;
|
|
@@ -9,7 +9,6 @@ import Button from '../button/button.js';
|
|
|
9
9
|
import Icon from '../icon/icon.js';
|
|
10
10
|
import Progress from '../progress/progress.js';
|
|
11
11
|
import Text from '../text/text.js';
|
|
12
|
-
import './index.css';
|
|
13
12
|
|
|
14
13
|
const Video = (props) => {
|
|
15
14
|
const { ref, style, hideControls, autoplay, muted, volume = 50, height, width, useOriginControls, timeProgressProps = {
|
package/lib/es/index.js
CHANGED