diginet-core-ui 1.3.94-beta.9 → 1.3.95-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.
@@ -6,7 +6,7 @@ import PropTypes from 'prop-types';
6
6
  import { jsx, css } from '@emotion/core';
7
7
  import Alert from "./";
8
8
  import theme from "../../theme/settings";
9
- import { classNames, refType as ref } from "../../utils";
9
+ import { classNames } from "../../utils";
10
10
  import { bgTransparent, pointerEventsNone, positionFixed } from "../../styles/general";
11
11
  const {
12
12
  zIndex: zIndexCORE
@@ -115,7 +115,7 @@ Notify.propTypes = {
115
115
  /** Style inline of component. */
116
116
  style: PropTypes.object,
117
117
  /** Any [props](https://core.diginet.com.vn/ui/?path=/docs/alert--basic) of Alert */
118
- props: PropTypes.any,
118
+ props: PropTypes.any
119
119
  /**
120
120
  * ref methods (ref.current.instance.*method*)
121
121
  *
@@ -124,6 +124,6 @@ Notify.propTypes = {
124
124
  * * @param {options} - object
125
125
  * * {[Props](https://core.diginet.com.vn/ui/?path=/docs/alert--basic) applied to the `Alert`.}
126
126
  */
127
- reference: ref
128
127
  };
128
+
129
129
  export default Notify;
@@ -7,7 +7,7 @@ import PropTypes from 'prop-types';
7
7
  import { forwardRef, memo, useImperativeHandle, useMemo, useRef } from 'react';
8
8
  import { itemsCenter, boxBorder, borderRadius4px, flexRow, flexWrap, displayInlineFlex, justifyCenter, parseMinWidthHeight, parseWidthHeight, pointerEventsNone, positionAbsolute, positionRelative } from "../../styles/general";
9
9
  import { useColor as colors, useTheme } from "../../theme";
10
- import { classNames, refType as ref } from "../../utils";
10
+ import { classNames } from "../../utils";
11
11
  const {
12
12
  colors: {
13
13
  system: {
@@ -209,7 +209,7 @@ Badge.propTypes = {
209
209
  * */
210
210
  size: PropTypes.oneOf(['medium', 'large', 'giant']),
211
211
  /** Style inline of component. */
212
- style: PropTypes.object,
212
+ style: PropTypes.object
213
213
  /**
214
214
  * ref methods (ref.current.instance.*method*)
215
215
  *
@@ -224,7 +224,7 @@ Badge.propTypes = {
224
224
  * * option(options): Updates the values of several properties
225
225
  * * @param {options} - object
226
226
  */
227
- reference: ref
228
227
  };
228
+
229
229
  export { Badge };
230
230
  export default OptionWrapper(Badge);
@@ -9,7 +9,7 @@ import { hexToRGBA } from "../../styles/color-helper";
9
9
  import * as allColors from "../../styles/colors";
10
10
  import { alphaPseudo, bgColor, border, borderColor, borderNone, borderRadius, boxBorder, cursorNotAllowed, cursorPointer, displayFlex, displayInlineFlex, flexRow, itemsCenter, justifyCenter, outlineNone, parseMinWidthHeight, parseWidthHeight, pd, pointerEventsNone, positionRelative, textColor, userSelectNone } from "../../styles/general";
11
11
  import { getColor } from "../../styles/utils";
12
- import { capitalize, classNames, refType as ref } from "../../utils";
12
+ import { capitalize, classNames } from "../../utils";
13
13
  import { getRippleColor } from '.';
14
14
  import Ripple from "./ripple-effect";
15
15
  const sizeMap = new Map([['tiny', {
@@ -318,7 +318,7 @@ ButtonIcon.propTypes = {
318
318
  /** The variant to use. */
319
319
  viewType: PropTypes.oneOf(['text', 'outlined', 'filled', 'ghost']),
320
320
  /** Width of the component. */
321
- width: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
321
+ width: PropTypes.oneOfType([PropTypes.number, PropTypes.string])
322
322
  /**
323
323
  * ref methods (ref.current.instance.*method*)
324
324
  *
@@ -333,7 +333,7 @@ ButtonIcon.propTypes = {
333
333
  * * option(options): Updates the values of several properties
334
334
  * * @param {options} - object
335
335
  */
336
- reference: ref
337
336
  };
337
+
338
338
  export { ButtonIcon };
339
339
  export default OptionWrapper(ButtonIcon);
@@ -9,7 +9,7 @@ import { detectColor, fade, hexToRGBA, hslToRgb, isColor, isColorName, rgbaToHex
9
9
  import * as allColors from "../../styles/colors";
10
10
  import { alphaPseudo, bgColor, border, borderColor, borderNone, borderRadius4px, boxBorder, cursorNotAllowed, cursorPointer, displayFlex, displayInlineFlex, flexRow, itemsCenter, justifyCenter, mg, mgl, mgr, outlineNone, overflowHidden, parseHeight, parseMinWidth, parseMinWidthHeight, parseWidthHeight, pd, pointerEventsNone, positionRelative, textColor, userSelectNone, whiteSpaceNoWrap } from "../../styles/general";
11
11
  import { useColor as colors, useTheme } from "../../theme";
12
- import { classNames, refType as ref } from "../../utils";
12
+ import { classNames } from "../../utils";
13
13
  import Ripple from "./ripple-effect";
14
14
  const {
15
15
  spacing
@@ -404,7 +404,7 @@ Button.propTypes = {
404
404
  /** Query params pass to url. */
405
405
  urlParams: PropTypes.object,
406
406
  /** The variant to use. */
407
- viewType: PropTypes.oneOf(['text', 'outlined', 'filled', 'link']),
407
+ viewType: PropTypes.oneOf(['text', 'outlined', 'filled', 'link'])
408
408
  /**
409
409
  * ref methods (ref.current.instance.*method*)
410
410
  *
@@ -419,7 +419,7 @@ Button.propTypes = {
419
419
  * * option(options): Updates the values of several properties
420
420
  * * @param {options} - object
421
421
  */
422
- ref: ref
423
422
  };
423
+
424
424
  export { Button };
425
425
  export default OptionWrapper(Button);