@rc-component/tour
Advanced tools
Comparing version 1.13.0 to 1.13.1
@@ -1,6 +0,6 @@ | ||
/// <reference types="react" /> | ||
import * as React from 'react'; | ||
import type { TourProps } from '../interface'; | ||
import type { TourStepInfo } from '../TourStep'; | ||
export declare function useClosable(prefixCls: string, stepClosable: TourStepInfo['closable'], stepCloseIcon: TourStepInfo['closeIcon'], closable: TourProps['closable'], closeIcon: TourProps['closeIcon']): { | ||
closeIcon?: import("react").ReactNode; | ||
} & import("react").AriaAttributes; | ||
closeIcon?: React.ReactNode; | ||
} & React.AriaAttributes; |
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2"; | ||
import _typeof from "@babel/runtime/helpers/esm/typeof"; | ||
import { useMemo } from 'react'; | ||
import * as React from 'react'; | ||
function isConfigObj(closable) { | ||
@@ -31,3 +31,3 @@ return closable !== null && _typeof(closable) === 'object'; | ||
export function useClosable(prefixCls, stepClosable, stepCloseIcon, closable, closeIcon) { | ||
return useMemo(function () { | ||
return React.useMemo(function () { | ||
var stepClosableConfig = getClosableConfig(prefixCls, stepClosable, stepCloseIcon, false); | ||
@@ -34,0 +34,0 @@ var rootClosableConfig = getClosableConfig(prefixCls, closable, closeIcon, true); |
@@ -1,6 +0,6 @@ | ||
/// <reference types="react" /> | ||
import * as React from 'react'; | ||
import type { TourProps } from '../interface'; | ||
import type { TourStepInfo } from '../TourStep'; | ||
export declare function useClosable(prefixCls: string, stepClosable: TourStepInfo['closable'], stepCloseIcon: TourStepInfo['closeIcon'], closable: TourProps['closable'], closeIcon: TourProps['closeIcon']): { | ||
closeIcon?: import("react").ReactNode; | ||
} & import("react").AriaAttributes; | ||
closeIcon?: React.ReactNode; | ||
} & React.AriaAttributes; |
"use strict"; | ||
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default; | ||
@@ -10,3 +11,3 @@ Object.defineProperty(exports, "__esModule", { | ||
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof")); | ||
var _react = require("react"); | ||
var React = _interopRequireWildcard(require("react")); | ||
function isConfigObj(closable) { | ||
@@ -39,3 +40,3 @@ return closable !== null && (0, _typeof2.default)(closable) === 'object'; | ||
function useClosable(prefixCls, stepClosable, stepCloseIcon, closable, closeIcon) { | ||
return (0, _react.useMemo)(function () { | ||
return React.useMemo(function () { | ||
var stepClosableConfig = getClosableConfig(prefixCls, stepClosable, stepCloseIcon, false); | ||
@@ -42,0 +43,0 @@ var rootClosableConfig = getClosableConfig(prefixCls, closable, closeIcon, true); |
{ | ||
"name": "@rc-component/tour", | ||
"version": "1.13.0", | ||
"version": "1.13.1", | ||
"description": "React tour Component", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
66770
1440