@times-design-system/components-react-scss 1.1.2-alpha.1 → 1.4.2-alpha.4
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/AdContainer/AdContainer.cjs +2 -2
- package/dist/AdContainer/AdContainer.js +2 -2
- package/dist/Button/Button.cjs +3 -4
- package/dist/Button/Button.cjs.map +1 -1
- package/dist/Button/Button.js +3 -4
- package/dist/Button/Button.js.map +1 -1
- package/dist/Button/ButtonContainer.cjs +2 -2
- package/dist/Button/ButtonContainer.js +2 -2
- package/dist/Checkbox/Checkbox.cjs +2 -2
- package/dist/Checkbox/Checkbox.js +2 -2
- package/dist/CheckboxList/CheckboxList.cjs +2 -2
- package/dist/CheckboxList/CheckboxList.js +2 -2
- package/dist/CheckboxListItem/CheckboxListItem.cjs +2 -2
- package/dist/CheckboxListItem/CheckboxListItem.js +2 -2
- package/dist/Chip/Chip.cjs +2 -2
- package/dist/Chip/Chip.js +2 -2
- package/dist/Divider/Divider.cjs +2 -2
- package/dist/Divider/Divider.js +2 -2
- package/dist/Dropdown/Dropdown.d.ts +4 -0
- package/dist/Icon/Icon.cjs +1 -1
- package/dist/Icon/Icon.js +1 -1
- package/dist/IconButton/IconButton.cjs +2 -2
- package/dist/IconButton/IconButton.js +2 -2
- package/dist/Input/Input.cjs +1 -1
- package/dist/Input/Input.js +1 -1
- package/dist/Link/Link.cjs +2 -2
- package/dist/Link/Link.js +2 -2
- package/dist/Switch/Switch.cjs +2 -2
- package/dist/Switch/Switch.js +2 -2
- package/dist/Tag/Tag.cjs +2 -2
- package/dist/Tag/Tag.js +2 -2
- package/dist/Text/Text.cjs +2 -2
- package/dist/Text/Text.js +2 -2
- package/dist/Toast/Toast.cjs +2 -2
- package/dist/Toast/Toast.js +2 -2
- package/dist/index.cjs +50 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/dist/index.js +50 -6
- package/dist/index.js.map +1 -1
- package/dist/shared/{_rollupPluginBabelHelpers-D8WaRUHB.js → _rollupPluginBabelHelpers-CNSwc6BY.js} +1 -1
- package/dist/shared/{_rollupPluginBabelHelpers-D8WaRUHB.js.map → _rollupPluginBabelHelpers-CNSwc6BY.js.map} +1 -1
- package/dist/shared/{_rollupPluginBabelHelpers-CxCrR4T8.cjs → _rollupPluginBabelHelpers-CT64BsIq.cjs} +1 -1
- package/dist/shared/{_rollupPluginBabelHelpers-CxCrR4T8.cjs.map → _rollupPluginBabelHelpers-CT64BsIq.cjs.map} +1 -1
- package/dist/shared/{cn-DIsfoMgp.cjs → cn--MR03V-b.cjs} +1 -1
- package/dist/shared/{cn-DIsfoMgp.cjs.map → cn--MR03V-b.cjs.map} +1 -1
- package/dist/shared/{cn-BnsBfu-p.js → cn-Bia1foOh.js} +1 -1
- package/dist/shared/{cn-BnsBfu-p.js.map → cn-Bia1foOh.js.map} +1 -1
- package/package.json +3 -3
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
4
|
var Text_Text = require('../Text/Text.cjs');
|
|
5
|
-
require('../shared/_rollupPluginBabelHelpers-
|
|
6
|
-
require('../shared/cn-
|
|
5
|
+
require('../shared/_rollupPluginBabelHelpers-CT64BsIq.cjs');
|
|
6
|
+
require('../shared/cn--MR03V-b.cjs');
|
|
7
7
|
|
|
8
8
|
/** Primary AdContainer UI component for user interaction */
|
|
9
9
|
var AdContainer = function AdContainer(_ref) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Text } from '../Text/Text.js';
|
|
3
|
-
import '../shared/_rollupPluginBabelHelpers-
|
|
4
|
-
import '../shared/cn-
|
|
3
|
+
import '../shared/_rollupPluginBabelHelpers-CNSwc6BY.js';
|
|
4
|
+
import '../shared/cn-Bia1foOh.js';
|
|
5
5
|
|
|
6
6
|
/** Primary AdContainer UI component for user interaction */
|
|
7
7
|
var AdContainer = function AdContainer(_ref) {
|
package/dist/Button/Button.cjs
CHANGED
|
@@ -4,8 +4,8 @@ var React = require('react');
|
|
|
4
4
|
var Text_Text = require('../Text/Text.cjs');
|
|
5
5
|
var Icon_Icon = require('../Icon/Icon.cjs');
|
|
6
6
|
var Button_ButtonContainer = require('./ButtonContainer.cjs');
|
|
7
|
-
var cn = require('../shared/cn-
|
|
8
|
-
require('../shared/_rollupPluginBabelHelpers-
|
|
7
|
+
var cn = require('../shared/cn--MR03V-b.cjs');
|
|
8
|
+
require('../shared/_rollupPluginBabelHelpers-CT64BsIq.cjs');
|
|
9
9
|
|
|
10
10
|
/** Primary UI component for user interaction */
|
|
11
11
|
var Button = function Button(_ref) {
|
|
@@ -14,8 +14,7 @@ var Button = function Button(_ref) {
|
|
|
14
14
|
iconRight = _ref.iconRight,
|
|
15
15
|
_ref$intent = _ref.intent,
|
|
16
16
|
intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
|
|
17
|
-
|
|
18
|
-
label = _ref$label === void 0 ? 'Button label' : _ref$label,
|
|
17
|
+
label = _ref.label,
|
|
19
18
|
_ref$size = _ref.size,
|
|
20
19
|
size = _ref$size === void 0 ? 'medium' : _ref$size,
|
|
21
20
|
_ref$disabled = _ref.disabled,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.cjs","sources":["../../src/Button/Button.tsx"],"sourcesContent":["import React from 'react';\nimport { Text, TypographyToken } from '../Text/Text';\nimport './styles.scss';\nimport { IconName } from '@times-design-system/icons';\nimport { Icon } from '../Icon/Icon';\nimport { ButtonContainer, ButtonContainerProps } from './ButtonContainer';\nimport { cn } from '../utils/cn';\n\nexport interface ButtonProps extends ButtonContainerProps {\n isRounded?: boolean;\n /** The text label displayed inside the button */\n label?: string;\n /** Show an icon on the left side of the label */\n iconLeft?: IconName;\n /** Show an icon on the right side of the label */\n iconRight?: IconName;\n}\n\n/** Primary UI component for user interaction */\nexport const Button: React.FC<ButtonProps> = ({\n behaviour,\n iconLeft,\n iconRight,\n intent = 'primary',\n label
|
|
1
|
+
{"version":3,"file":"Button.cjs","sources":["../../src/Button/Button.tsx"],"sourcesContent":["import React from 'react';\nimport { Text, TypographyToken } from '../Text/Text';\nimport './styles.scss';\nimport { IconName } from '@times-design-system/icons';\nimport { Icon } from '../Icon/Icon';\nimport { ButtonContainer, ButtonContainerProps } from './ButtonContainer';\nimport { cn } from '../utils/cn';\n\nexport interface ButtonProps extends ButtonContainerProps {\n isRounded?: boolean;\n /** The text label displayed inside the button */\n label?: string;\n /** Show an icon on the left side of the label */\n iconLeft?: IconName;\n /** Show an icon on the right side of the label */\n iconRight?: IconName;\n}\n\n/** Primary UI component for user interaction */\nexport const Button: React.FC<ButtonProps> = ({\n behaviour,\n iconLeft,\n iconRight,\n intent = 'primary',\n label,\n size = 'medium',\n disabled = false,\n isLoading = false,\n isRounded = false,\n children,\n className,\n type = 'button',\n href,\n target,\n rel,\n onClick\n}) => {\n const resolvedLabel = children ?? label;\n let labelStyle = `utility.button.${size}`;\n switch (size) {\n case 'large':\n labelStyle = `utility.button.medium`;\n break;\n case 'xlarge':\n labelStyle = `utility.button.large`;\n break;\n default:\n labelStyle = `utility.button.${size}`;\n }\n\n const buttonContent = (\n <>\n {iconLeft && (\n <span className=\"tds-button__icon\" aria-hidden=\"true\">\n <Icon iconName={iconLeft} />\n </span>\n )}\n\n <span className=\"tds-button__label-container\">\n <Text typographyStyle={labelStyle as TypographyToken}>\n {resolvedLabel}\n </Text>\n </span>\n\n {iconRight && (\n <span className=\"tds-button__icon\" aria-hidden=\"true\">\n <Icon iconName={iconRight} />\n </span>\n )}\n </>\n );\n\n return (\n <ButtonContainer\n behaviour={behaviour}\n isRounded={isRounded}\n intent={intent}\n size={size}\n isLoading={isLoading}\n disabled={disabled}\n href={href}\n target={target}\n rel={rel}\n className={cn(`tds-button--size-${size}`, className)}\n type={type}\n onClick={onClick}\n >\n {buttonContent}\n </ButtonContainer>\n );\n};\n"],"names":["Button","_ref","behaviour","iconLeft","iconRight","_ref$intent","intent","label","_ref$size","size","_ref$disabled","disabled","_ref$isLoading","isLoading","_ref$isRounded","isRounded","children","className","_ref$type","type","href","target","rel","onClick","resolvedLabel","labelStyle","concat","buttonContent","React","createElement","Fragment","Icon","iconName","Text","typographyStyle","ButtonContainer","cn"],"mappings":"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"}
|
package/dist/Button/Button.js
CHANGED
|
@@ -2,8 +2,8 @@ import React from 'react';
|
|
|
2
2
|
import { Text } from '../Text/Text.js';
|
|
3
3
|
import { Icon } from '../Icon/Icon.js';
|
|
4
4
|
import { ButtonContainer } from './ButtonContainer.js';
|
|
5
|
-
import { c as cn } from '../shared/cn-
|
|
6
|
-
import '../shared/_rollupPluginBabelHelpers-
|
|
5
|
+
import { c as cn } from '../shared/cn-Bia1foOh.js';
|
|
6
|
+
import '../shared/_rollupPluginBabelHelpers-CNSwc6BY.js';
|
|
7
7
|
|
|
8
8
|
/** Primary UI component for user interaction */
|
|
9
9
|
var Button = function Button(_ref) {
|
|
@@ -12,8 +12,7 @@ var Button = function Button(_ref) {
|
|
|
12
12
|
iconRight = _ref.iconRight,
|
|
13
13
|
_ref$intent = _ref.intent,
|
|
14
14
|
intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
|
|
15
|
-
|
|
16
|
-
label = _ref$label === void 0 ? 'Button label' : _ref$label,
|
|
15
|
+
label = _ref.label,
|
|
17
16
|
_ref$size = _ref.size,
|
|
18
17
|
size = _ref$size === void 0 ? 'medium' : _ref$size,
|
|
19
18
|
_ref$disabled = _ref.disabled,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.js","sources":["../../src/Button/Button.tsx"],"sourcesContent":["import React from 'react';\nimport { Text, TypographyToken } from '../Text/Text';\nimport './styles.scss';\nimport { IconName } from '@times-design-system/icons';\nimport { Icon } from '../Icon/Icon';\nimport { ButtonContainer, ButtonContainerProps } from './ButtonContainer';\nimport { cn } from '../utils/cn';\n\nexport interface ButtonProps extends ButtonContainerProps {\n isRounded?: boolean;\n /** The text label displayed inside the button */\n label?: string;\n /** Show an icon on the left side of the label */\n iconLeft?: IconName;\n /** Show an icon on the right side of the label */\n iconRight?: IconName;\n}\n\n/** Primary UI component for user interaction */\nexport const Button: React.FC<ButtonProps> = ({\n behaviour,\n iconLeft,\n iconRight,\n intent = 'primary',\n label
|
|
1
|
+
{"version":3,"file":"Button.js","sources":["../../src/Button/Button.tsx"],"sourcesContent":["import React from 'react';\nimport { Text, TypographyToken } from '../Text/Text';\nimport './styles.scss';\nimport { IconName } from '@times-design-system/icons';\nimport { Icon } from '../Icon/Icon';\nimport { ButtonContainer, ButtonContainerProps } from './ButtonContainer';\nimport { cn } from '../utils/cn';\n\nexport interface ButtonProps extends ButtonContainerProps {\n isRounded?: boolean;\n /** The text label displayed inside the button */\n label?: string;\n /** Show an icon on the left side of the label */\n iconLeft?: IconName;\n /** Show an icon on the right side of the label */\n iconRight?: IconName;\n}\n\n/** Primary UI component for user interaction */\nexport const Button: React.FC<ButtonProps> = ({\n behaviour,\n iconLeft,\n iconRight,\n intent = 'primary',\n label,\n size = 'medium',\n disabled = false,\n isLoading = false,\n isRounded = false,\n children,\n className,\n type = 'button',\n href,\n target,\n rel,\n onClick\n}) => {\n const resolvedLabel = children ?? label;\n let labelStyle = `utility.button.${size}`;\n switch (size) {\n case 'large':\n labelStyle = `utility.button.medium`;\n break;\n case 'xlarge':\n labelStyle = `utility.button.large`;\n break;\n default:\n labelStyle = `utility.button.${size}`;\n }\n\n const buttonContent = (\n <>\n {iconLeft && (\n <span className=\"tds-button__icon\" aria-hidden=\"true\">\n <Icon iconName={iconLeft} />\n </span>\n )}\n\n <span className=\"tds-button__label-container\">\n <Text typographyStyle={labelStyle as TypographyToken}>\n {resolvedLabel}\n </Text>\n </span>\n\n {iconRight && (\n <span className=\"tds-button__icon\" aria-hidden=\"true\">\n <Icon iconName={iconRight} />\n </span>\n )}\n </>\n );\n\n return (\n <ButtonContainer\n behaviour={behaviour}\n isRounded={isRounded}\n intent={intent}\n size={size}\n isLoading={isLoading}\n disabled={disabled}\n href={href}\n target={target}\n rel={rel}\n className={cn(`tds-button--size-${size}`, className)}\n type={type}\n onClick={onClick}\n >\n {buttonContent}\n </ButtonContainer>\n );\n};\n"],"names":["Button","_ref","behaviour","iconLeft","iconRight","_ref$intent","intent","label","_ref$size","size","_ref$disabled","disabled","_ref$isLoading","isLoading","_ref$isRounded","isRounded","children","className","_ref$type","type","href","target","rel","onClick","resolvedLabel","labelStyle","concat","buttonContent","React","createElement","Fragment","Icon","iconName","Text","typographyStyle","ButtonContainer","cn"],"mappings":";;;;;;;AAkBA;IACaA,MAAM,GAA0B,SAAhCA,MAAMA,CAAAC,IAAA,EAiBd;AAAA,EAAA,IAhBHC,SAAS,GAAAD,IAAA,CAATC,SAAS;IACTC,QAAQ,GAAAF,IAAA,CAARE,QAAQ;IACRC,SAAS,GAAAH,IAAA,CAATG,SAAS;IAAAC,WAAA,GAAAJ,IAAA,CACTK,MAAM;AAANA,IAAAA,MAAM,GAAAD,WAAA,KAAA,MAAA,GAAG,SAAS,GAAAA,WAAA;IAClBE,KAAK,GAAAN,IAAA,CAALM,KAAK;IAAAC,SAAA,GAAAP,IAAA,CACLQ,IAAI;AAAJA,IAAAA,IAAI,GAAAD,SAAA,KAAA,MAAA,GAAG,QAAQ,GAAAA,SAAA;IAAAE,aAAA,GAAAT,IAAA,CACfU,QAAQ;AAARA,IAAAA,QAAQ,GAAAD,aAAA,KAAA,MAAA,GAAG,KAAK,GAAAA,aAAA;IAAAE,cAAA,GAAAX,IAAA,CAChBY,SAAS;AAATA,IAAAA,SAAS,GAAAD,cAAA,KAAA,MAAA,GAAG,KAAK,GAAAA,cAAA;IAAAE,cAAA,GAAAb,IAAA,CACjBc,SAAS;AAATA,IAAAA,SAAS,GAAAD,cAAA,KAAA,MAAA,GAAG,KAAK,GAAAA,cAAA;IACjBE,QAAQ,GAAAf,IAAA,CAARe,QAAQ;IACRC,SAAS,GAAAhB,IAAA,CAATgB,SAAS;IAAAC,SAAA,GAAAjB,IAAA,CACTkB,IAAI;AAAJA,IAAAA,IAAI,GAAAD,SAAA,KAAA,MAAA,GAAG,QAAQ,GAAAA,SAAA;IACfE,IAAI,GAAAnB,IAAA,CAAJmB,IAAI;IACJC,MAAM,GAAApB,IAAA,CAANoB,MAAM;IACNC,GAAG,GAAArB,IAAA,CAAHqB,GAAG;IACHC,OAAO,GAAAtB,IAAA,CAAPsB,OAAO;EAEP,IAAMC,aAAa,GAAGR,QAAQ,KAAA,IAAA,IAARA,QAAQ,KAAA,MAAA,GAARA,QAAQ,GAAIT,KAAK;AACvC,EAAA,IAAIkB,UAAU,GAAA,iBAAA,CAAAC,MAAA,CAAqBjB,IAAI,CAAE;AACzC,EAAA,QAAQA,IAAI;AACV,IAAA,KAAK,OAAO;AACVgB,MAAAA,UAAU,GAAA,uBAA0B;AACpC,MAAA;AACF,IAAA,KAAK,QAAQ;AACXA,MAAAA,UAAU,GAAA,sBAAyB;AACnC,MAAA;AACF,IAAA;AACEA,MAAAA,UAAU,GAAA,iBAAA,CAAAC,MAAA,CAAqBjB,IAAI,CAAE;AACzC;AAEA,EAAA,IAAMkB,aAAa,gBACjBC,KAAA,CAAAC,aAAA,CAAAD,KAAA,CAAAE,QAAA,EAAA,IAAA,EACG3B,QAAQ,kBACPyB,KAAA,CAAAC,aAAA,CAAA,MAAA,EAAA;AAAMZ,IAAAA,SAAS,EAAC,kBAAkB;mBAAa;AAAM,GAAA,eACnDW,KAAA,CAAAC,aAAA,CAACE,IAAI,EAAA;AAACC,IAAAA,QAAQ,EAAE7B;GAAQ,CAAI,CACvB,CACR,eAEDyB,KAAA,CAAAC,aAAA,CAAA,MAAA,EAAA;AAAMZ,IAAAA,SAAS,EAAC;AAA6B,GAAA,eAC3CW,KAAA,CAAAC,aAAA,CAACI,IAAI;AAACC,IAAAA,eAAe,EAAET;AAA6B,GAAA,EACjDD,aAAa,CACT,CACF,EAENpB,SAAS,kBACRwB,KAAA,CAAAC,aAAA,CAAA,MAAA,EAAA;AAAMZ,IAAAA,SAAS,EAAC,kBAAkB;mBAAa;AAAM,GAAA,eACnDW,KAAA,CAAAC,aAAA,CAACE,IAAI,EAAA;AAACC,IAAAA,QAAQ,EAAE5B;IAAa,CACxB,CACR,CAEJ;AAED,EAAA,oBACEwB,KAAA,CAAAC,aAAA,CAACM,eAAe,EAAA;AACdjC,IAAAA,SAAS,EAAEA,SAAS;AACpBa,IAAAA,SAAS,EAAEA,SAAS;AACpBT,IAAAA,MAAM,EAAEA,MAAM;AACdG,IAAAA,IAAI,EAAEA,IAAI;AACVI,IAAAA,SAAS,EAAEA,SAAS;AACpBF,IAAAA,QAAQ,EAAEA,QAAQ;AAClBS,IAAAA,IAAI,EAAEA,IAAI;AACVC,IAAAA,MAAM,EAAEA,MAAM;AACdC,IAAAA,GAAG,EAAEA,GAAG;IACRL,SAAS,EAAEmB,EAAE,CAAA,mBAAA,CAAAV,MAAA,CAAqBjB,IAAI,CAAA,EAAIQ,SAAS,CAAC;AACpDE,IAAAA,IAAI,EAAEA,IAAI;AACVI,IAAAA,OAAO,EAAEA;GAAO,EAEfI,aAAa,CACE;AAEtB;;"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
|
-
var cn = require('../shared/cn-
|
|
4
|
+
var cn = require('../shared/cn--MR03V-b.cjs');
|
|
5
5
|
var Icon_Icon = require('../Icon/Icon.cjs');
|
|
6
|
-
require('../shared/_rollupPluginBabelHelpers-
|
|
6
|
+
require('../shared/_rollupPluginBabelHelpers-CT64BsIq.cjs');
|
|
7
7
|
|
|
8
8
|
/** Primary UI component for user interaction */
|
|
9
9
|
var ButtonContainer = function ButtonContainer(_ref) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { c as cn } from '../shared/cn-
|
|
2
|
+
import { c as cn } from '../shared/cn-Bia1foOh.js';
|
|
3
3
|
import { Icon } from '../Icon/Icon.js';
|
|
4
|
-
import '../shared/_rollupPluginBabelHelpers-
|
|
4
|
+
import '../shared/_rollupPluginBabelHelpers-CNSwc6BY.js';
|
|
5
5
|
|
|
6
6
|
/** Primary UI component for user interaction */
|
|
7
7
|
var ButtonContainer = function ButtonContainer(_ref) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var _rollupPluginBabelHelpers = require('../shared/_rollupPluginBabelHelpers-
|
|
3
|
+
var _rollupPluginBabelHelpers = require('../shared/_rollupPluginBabelHelpers-CT64BsIq.cjs');
|
|
4
4
|
var React = require('react');
|
|
5
|
-
var cn = require('../shared/cn-
|
|
5
|
+
var cn = require('../shared/cn--MR03V-b.cjs');
|
|
6
6
|
|
|
7
7
|
var Checkbox = function Checkbox(_ref) {
|
|
8
8
|
var _ref$state = _ref.state,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { b as _slicedToArray } from '../shared/_rollupPluginBabelHelpers-
|
|
1
|
+
import { b as _slicedToArray } from '../shared/_rollupPluginBabelHelpers-CNSwc6BY.js';
|
|
2
2
|
import React, { useRef, useState, useMemo, useEffect } from 'react';
|
|
3
|
-
import { c as cn } from '../shared/cn-
|
|
3
|
+
import { c as cn } from '../shared/cn-Bia1foOh.js';
|
|
4
4
|
|
|
5
5
|
var Checkbox = function Checkbox(_ref) {
|
|
6
6
|
var _ref$state = _ref.state,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var _rollupPluginBabelHelpers = require('../shared/_rollupPluginBabelHelpers-
|
|
3
|
+
var _rollupPluginBabelHelpers = require('../shared/_rollupPluginBabelHelpers-CT64BsIq.cjs');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var Checkbox_Checkbox = require('../Checkbox/Checkbox.cjs');
|
|
6
6
|
var CheckboxListItem_CheckboxListItem = require('../CheckboxListItem/CheckboxListItem.cjs');
|
|
7
|
-
var cn = require('../shared/cn-
|
|
7
|
+
var cn = require('../shared/cn--MR03V-b.cjs');
|
|
8
8
|
|
|
9
9
|
var CheckboxList = function CheckboxList(_ref) {
|
|
10
10
|
var _ref$size = _ref.size,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { b as _slicedToArray } from '../shared/_rollupPluginBabelHelpers-
|
|
1
|
+
import { b as _slicedToArray } from '../shared/_rollupPluginBabelHelpers-CNSwc6BY.js';
|
|
2
2
|
import React, { useState, useEffect, useMemo } from 'react';
|
|
3
3
|
import { Checkbox } from '../Checkbox/Checkbox.js';
|
|
4
4
|
import { CheckboxListItem } from '../CheckboxListItem/CheckboxListItem.js';
|
|
5
|
-
import { c as cn } from '../shared/cn-
|
|
5
|
+
import { c as cn } from '../shared/cn-Bia1foOh.js';
|
|
6
6
|
|
|
7
7
|
var CheckboxList = function CheckboxList(_ref) {
|
|
8
8
|
var _ref$size = _ref.size,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var _rollupPluginBabelHelpers = require('../shared/_rollupPluginBabelHelpers-
|
|
3
|
+
var _rollupPluginBabelHelpers = require('../shared/_rollupPluginBabelHelpers-CT64BsIq.cjs');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var Checkbox_Checkbox = require('../Checkbox/Checkbox.cjs');
|
|
6
|
-
var cn = require('../shared/cn-
|
|
6
|
+
var cn = require('../shared/cn--MR03V-b.cjs');
|
|
7
7
|
|
|
8
8
|
var mapState = function mapState(state, disabled) {
|
|
9
9
|
if (disabled) return 'disabled';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { b as _slicedToArray } from '../shared/_rollupPluginBabelHelpers-
|
|
1
|
+
import { b as _slicedToArray } from '../shared/_rollupPluginBabelHelpers-CNSwc6BY.js';
|
|
2
2
|
import React, { useState, useMemo } from 'react';
|
|
3
3
|
import { Checkbox } from '../Checkbox/Checkbox.js';
|
|
4
|
-
import { c as cn } from '../shared/cn-
|
|
4
|
+
import { c as cn } from '../shared/cn-Bia1foOh.js';
|
|
5
5
|
|
|
6
6
|
var mapState = function mapState(state, disabled) {
|
|
7
7
|
if (disabled) return 'disabled';
|
package/dist/Chip/Chip.cjs
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
4
|
var Text_Text = require('../Text/Text.cjs');
|
|
5
|
-
var cn = require('../shared/cn-
|
|
5
|
+
var cn = require('../shared/cn--MR03V-b.cjs');
|
|
6
6
|
var Icon_Icon = require('../Icon/Icon.cjs');
|
|
7
|
-
require('../shared/_rollupPluginBabelHelpers-
|
|
7
|
+
require('../shared/_rollupPluginBabelHelpers-CT64BsIq.cjs');
|
|
8
8
|
|
|
9
9
|
/** Compact selectable/toggle control for in-page state changes */
|
|
10
10
|
var Chip = function Chip(_ref) {
|
package/dist/Chip/Chip.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Text } from '../Text/Text.js';
|
|
3
|
-
import { c as cn } from '../shared/cn-
|
|
3
|
+
import { c as cn } from '../shared/cn-Bia1foOh.js';
|
|
4
4
|
import { Icon } from '../Icon/Icon.js';
|
|
5
|
-
import '../shared/_rollupPluginBabelHelpers-
|
|
5
|
+
import '../shared/_rollupPluginBabelHelpers-CNSwc6BY.js';
|
|
6
6
|
|
|
7
7
|
/** Compact selectable/toggle control for in-page state changes */
|
|
8
8
|
var Chip = function Chip(_ref) {
|
package/dist/Divider/Divider.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var _rollupPluginBabelHelpers = require('../shared/_rollupPluginBabelHelpers-
|
|
3
|
+
var _rollupPluginBabelHelpers = require('../shared/_rollupPluginBabelHelpers-CT64BsIq.cjs');
|
|
4
4
|
var React = require('react');
|
|
5
|
-
var cn = require('../shared/cn-
|
|
5
|
+
var cn = require('../shared/cn--MR03V-b.cjs');
|
|
6
6
|
|
|
7
7
|
var _excluded = ["isDashed", "isVertical", "padding", "className"];
|
|
8
8
|
var Divider = function Divider(_ref) {
|
package/dist/Divider/Divider.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as _objectWithoutProperties, a as _objectSpread2 } from '../shared/_rollupPluginBabelHelpers-
|
|
1
|
+
import { _ as _objectWithoutProperties, a as _objectSpread2 } from '../shared/_rollupPluginBabelHelpers-CNSwc6BY.js';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { c as cn } from '../shared/cn-
|
|
3
|
+
import { c as cn } from '../shared/cn-Bia1foOh.js';
|
|
4
4
|
|
|
5
5
|
var _excluded = ["isDashed", "isVertical", "padding", "className"];
|
|
6
6
|
var Divider = function Divider(_ref) {
|
|
@@ -11,5 +11,9 @@ export interface DropdownProps {
|
|
|
11
11
|
value?: string;
|
|
12
12
|
onValueChange?: (id: string) => void;
|
|
13
13
|
className?: string;
|
|
14
|
+
label?: React.ReactNode;
|
|
15
|
+
helperMessage?: React.ReactNode;
|
|
16
|
+
info?: boolean;
|
|
17
|
+
iconLeft?: boolean;
|
|
14
18
|
}
|
|
15
19
|
export declare const Dropdown: React.FC<DropdownProps>;
|
package/dist/Icon/Icon.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var _rollupPluginBabelHelpers = require('../shared/_rollupPluginBabelHelpers-
|
|
3
|
+
var _rollupPluginBabelHelpers = require('../shared/_rollupPluginBabelHelpers-CT64BsIq.cjs');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
|
|
6
6
|
var _excluded$YR = ["width", "height", "color", "className"];
|
package/dist/Icon/Icon.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as _objectWithoutProperties, d as _extends, a as _objectSpread2 } from '../shared/_rollupPluginBabelHelpers-
|
|
1
|
+
import { _ as _objectWithoutProperties, d as _extends, a as _objectSpread2 } from '../shared/_rollupPluginBabelHelpers-CNSwc6BY.js';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
|
|
4
4
|
var _excluded$YR = ["width", "height", "color", "className"];
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
4
|
var Icon_Icon = require('../Icon/Icon.cjs');
|
|
5
|
-
var cn = require('../shared/cn-
|
|
5
|
+
var cn = require('../shared/cn--MR03V-b.cjs');
|
|
6
6
|
var Button_ButtonContainer = require('../Button/ButtonContainer.cjs');
|
|
7
|
-
require('../shared/_rollupPluginBabelHelpers-
|
|
7
|
+
require('../shared/_rollupPluginBabelHelpers-CT64BsIq.cjs');
|
|
8
8
|
|
|
9
9
|
/** Icon-only action button */
|
|
10
10
|
var IconButton = function IconButton(_ref) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Icon } from '../Icon/Icon.js';
|
|
3
|
-
import { c as cn } from '../shared/cn-
|
|
3
|
+
import { c as cn } from '../shared/cn-Bia1foOh.js';
|
|
4
4
|
import { ButtonContainer } from '../Button/ButtonContainer.js';
|
|
5
|
-
import '../shared/_rollupPluginBabelHelpers-
|
|
5
|
+
import '../shared/_rollupPluginBabelHelpers-CNSwc6BY.js';
|
|
6
6
|
|
|
7
7
|
/** Icon-only action button */
|
|
8
8
|
var IconButton = function IconButton(_ref) {
|
package/dist/Input/Input.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var _rollupPluginBabelHelpers = require('../shared/_rollupPluginBabelHelpers-
|
|
3
|
+
var _rollupPluginBabelHelpers = require('../shared/_rollupPluginBabelHelpers-CT64BsIq.cjs');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
|
|
6
6
|
var _excluded = ["label", "placeholder", "type", "value", "onChange", "disabled", "required", "name", "id"];
|
package/dist/Input/Input.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as _objectWithoutProperties, a as _objectSpread2 } from '../shared/_rollupPluginBabelHelpers-
|
|
1
|
+
import { _ as _objectWithoutProperties, a as _objectSpread2 } from '../shared/_rollupPluginBabelHelpers-CNSwc6BY.js';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
|
|
4
4
|
var _excluded = ["label", "placeholder", "type", "value", "onChange", "disabled", "required", "name", "id"];
|
package/dist/Link/Link.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
|
-
var cn = require('../shared/cn-
|
|
4
|
+
var cn = require('../shared/cn--MR03V-b.cjs');
|
|
5
5
|
var Icon_Icon = require('../Icon/Icon.cjs');
|
|
6
|
-
require('../shared/_rollupPluginBabelHelpers-
|
|
6
|
+
require('../shared/_rollupPluginBabelHelpers-CT64BsIq.cjs');
|
|
7
7
|
|
|
8
8
|
/** Link UI component for navigation and interactive linking */
|
|
9
9
|
var Link = function Link(_ref) {
|
package/dist/Link/Link.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { c as cn } from '../shared/cn-
|
|
2
|
+
import { c as cn } from '../shared/cn-Bia1foOh.js';
|
|
3
3
|
import { Icon } from '../Icon/Icon.js';
|
|
4
|
-
import '../shared/_rollupPluginBabelHelpers-
|
|
4
|
+
import '../shared/_rollupPluginBabelHelpers-CNSwc6BY.js';
|
|
5
5
|
|
|
6
6
|
/** Link UI component for navigation and interactive linking */
|
|
7
7
|
var Link = function Link(_ref) {
|
package/dist/Switch/Switch.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var _rollupPluginBabelHelpers = require('../shared/_rollupPluginBabelHelpers-
|
|
3
|
+
var _rollupPluginBabelHelpers = require('../shared/_rollupPluginBabelHelpers-CT64BsIq.cjs');
|
|
4
4
|
var React = require('react');
|
|
5
|
-
var cn = require('../shared/cn-
|
|
5
|
+
var cn = require('../shared/cn--MR03V-b.cjs');
|
|
6
6
|
var Icon_Icon = require('../Icon/Icon.cjs');
|
|
7
7
|
var Text_Text = require('../Text/Text.cjs');
|
|
8
8
|
|
package/dist/Switch/Switch.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { b as _slicedToArray } from '../shared/_rollupPluginBabelHelpers-
|
|
1
|
+
import { b as _slicedToArray } from '../shared/_rollupPluginBabelHelpers-CNSwc6BY.js';
|
|
2
2
|
import React, { useState, useMemo } from 'react';
|
|
3
|
-
import { c as cn } from '../shared/cn-
|
|
3
|
+
import { c as cn } from '../shared/cn-Bia1foOh.js';
|
|
4
4
|
import { Icon } from '../Icon/Icon.js';
|
|
5
5
|
import { Text } from '../Text/Text.js';
|
|
6
6
|
|
package/dist/Tag/Tag.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var _rollupPluginBabelHelpers = require('../shared/_rollupPluginBabelHelpers-
|
|
3
|
+
var _rollupPluginBabelHelpers = require('../shared/_rollupPluginBabelHelpers-CT64BsIq.cjs');
|
|
4
4
|
var React = require('react');
|
|
5
|
-
var cn = require('../shared/cn-
|
|
5
|
+
var cn = require('../shared/cn--MR03V-b.cjs');
|
|
6
6
|
var Icon_Icon = require('../Icon/Icon.cjs');
|
|
7
7
|
var Text_Text = require('../Text/Text.cjs');
|
|
8
8
|
|
package/dist/Tag/Tag.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as _objectWithoutProperties, a as _objectSpread2 } from '../shared/_rollupPluginBabelHelpers-
|
|
1
|
+
import { _ as _objectWithoutProperties, a as _objectSpread2 } from '../shared/_rollupPluginBabelHelpers-CNSwc6BY.js';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { c as cn } from '../shared/cn-
|
|
3
|
+
import { c as cn } from '../shared/cn-Bia1foOh.js';
|
|
4
4
|
import { Icon } from '../Icon/Icon.js';
|
|
5
5
|
import { Text } from '../Text/Text.js';
|
|
6
6
|
|
package/dist/Text/Text.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var _rollupPluginBabelHelpers = require('../shared/_rollupPluginBabelHelpers-
|
|
3
|
+
var _rollupPluginBabelHelpers = require('../shared/_rollupPluginBabelHelpers-CT64BsIq.cjs');
|
|
4
4
|
var React = require('react');
|
|
5
|
-
var cn = require('../shared/cn-
|
|
5
|
+
var cn = require('../shared/cn--MR03V-b.cjs');
|
|
6
6
|
|
|
7
7
|
var _excluded = ["as", "typographyStyle", "className", "children"];
|
|
8
8
|
var Text = /*#__PURE__*/React.forwardRef(function Text(_ref, ref) {
|
package/dist/Text/Text.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as _objectWithoutProperties, a as _objectSpread2 } from '../shared/_rollupPluginBabelHelpers-
|
|
1
|
+
import { _ as _objectWithoutProperties, a as _objectSpread2 } from '../shared/_rollupPluginBabelHelpers-CNSwc6BY.js';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { c as cn } from '../shared/cn-
|
|
3
|
+
import { c as cn } from '../shared/cn-Bia1foOh.js';
|
|
4
4
|
|
|
5
5
|
var _excluded = ["as", "typographyStyle", "className", "children"];
|
|
6
6
|
var Text = /*#__PURE__*/React.forwardRef(function Text(_ref, ref) {
|
package/dist/Toast/Toast.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var _rollupPluginBabelHelpers = require('../shared/_rollupPluginBabelHelpers-
|
|
3
|
+
var _rollupPluginBabelHelpers = require('../shared/_rollupPluginBabelHelpers-CT64BsIq.cjs');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var Icon_Icon = require('../Icon/Icon.cjs');
|
|
6
|
-
var cn = require('../shared/cn-
|
|
6
|
+
var cn = require('../shared/cn--MR03V-b.cjs');
|
|
7
7
|
|
|
8
8
|
var _excluded = ["intent", "label", "link", "linkLabel", "timeout", "className"];
|
|
9
9
|
var EXIT_ANIMATION_MS = 180;
|
package/dist/Toast/Toast.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _ as _objectWithoutProperties, b as _slicedToArray, a as _objectSpread2 } from '../shared/_rollupPluginBabelHelpers-
|
|
1
|
+
import { _ as _objectWithoutProperties, b as _slicedToArray, a as _objectSpread2 } from '../shared/_rollupPluginBabelHelpers-CNSwc6BY.js';
|
|
2
2
|
import React, { useState, useEffect } from 'react';
|
|
3
3
|
import { Icon } from '../Icon/Icon.js';
|
|
4
|
-
import { c as cn } from '../shared/cn-
|
|
4
|
+
import { c as cn } from '../shared/cn-Bia1foOh.js';
|
|
5
5
|
|
|
6
6
|
var _excluded = ["intent", "label", "link", "linkLabel", "timeout", "className"];
|
|
7
7
|
var EXIT_ANIMATION_MS = 180;
|
package/dist/index.cjs
CHANGED
|
@@ -7,11 +7,11 @@ var AdContainer_AdContainer = require('./AdContainer/AdContainer.cjs');
|
|
|
7
7
|
var Text_Text = require('./Text/Text.cjs');
|
|
8
8
|
var Input_Input = require('./Input/Input.cjs');
|
|
9
9
|
var React = require('react');
|
|
10
|
-
var cn = require('./shared/cn-
|
|
10
|
+
var cn = require('./shared/cn--MR03V-b.cjs');
|
|
11
11
|
var Divider_Divider = require('./Divider/Divider.cjs');
|
|
12
12
|
var Link_Link = require('./Link/Link.cjs');
|
|
13
13
|
var Chip_Chip = require('./Chip/Chip.cjs');
|
|
14
|
-
var _rollupPluginBabelHelpers = require('./shared/_rollupPluginBabelHelpers-
|
|
14
|
+
var _rollupPluginBabelHelpers = require('./shared/_rollupPluginBabelHelpers-CT64BsIq.cjs');
|
|
15
15
|
var Tag_Tag = require('./Tag/Tag.cjs');
|
|
16
16
|
var Toast_Toast = require('./Toast/Toast.cjs');
|
|
17
17
|
var Switch_Switch = require('./Switch/Switch.cjs');
|
|
@@ -501,7 +501,13 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
501
501
|
items = _ref.items,
|
|
502
502
|
value = _ref.value,
|
|
503
503
|
onValueChange = _ref.onValueChange,
|
|
504
|
-
className = _ref.className
|
|
504
|
+
className = _ref.className,
|
|
505
|
+
label = _ref.label,
|
|
506
|
+
helperMessage = _ref.helperMessage,
|
|
507
|
+
_ref$info = _ref.info,
|
|
508
|
+
info = _ref$info === void 0 ? false : _ref$info,
|
|
509
|
+
_ref$iconLeft = _ref.iconLeft,
|
|
510
|
+
iconLeft = _ref$iconLeft === void 0 ? false : _ref$iconLeft;
|
|
505
511
|
var _useState = React.useState(false),
|
|
506
512
|
_useState2 = _rollupPluginBabelHelpers._slicedToArray(_useState, 2),
|
|
507
513
|
open = _useState2[0],
|
|
@@ -515,7 +521,32 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
515
521
|
var isDisabled = state === 'disabled' || state === 'readOnly';
|
|
516
522
|
return /*#__PURE__*/React.createElement("div", {
|
|
517
523
|
className: cn.cn('tds-dropdown', className)
|
|
518
|
-
}, /*#__PURE__*/React.createElement("
|
|
524
|
+
}, label && (/*#__PURE__*/React.createElement("div", {
|
|
525
|
+
className: "tds-dropdown__label-wrapper"
|
|
526
|
+
}, /*#__PURE__*/React.createElement("label", {
|
|
527
|
+
className: "tds-dropdown__label"
|
|
528
|
+
}, label), info && (/*#__PURE__*/React.createElement("svg", {
|
|
529
|
+
className: "tds-dropdown__info-icon",
|
|
530
|
+
width: "16",
|
|
531
|
+
height: "16",
|
|
532
|
+
viewBox: "0 0 16 16",
|
|
533
|
+
fill: "none",
|
|
534
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
535
|
+
"aria-label": "information"
|
|
536
|
+
}, /*#__PURE__*/React.createElement("circle", {
|
|
537
|
+
cx: "8",
|
|
538
|
+
cy: "8",
|
|
539
|
+
r: "7",
|
|
540
|
+
stroke: "currentColor",
|
|
541
|
+
strokeWidth: "1"
|
|
542
|
+
}), /*#__PURE__*/React.createElement("text", {
|
|
543
|
+
x: "8",
|
|
544
|
+
y: "11",
|
|
545
|
+
textAnchor: "middle",
|
|
546
|
+
fontSize: "10",
|
|
547
|
+
fontWeight: "500",
|
|
548
|
+
fill: "currentColor"
|
|
549
|
+
}, "i"))))), /*#__PURE__*/React.createElement("button", {
|
|
519
550
|
type: "button",
|
|
520
551
|
className: cn.cn('tds-dropdown__trigger', "tds-dropdown__trigger--size-".concat(size), stateToTone[state] ? "tds-dropdown__trigger--".concat(stateToTone[state]) : undefined),
|
|
521
552
|
"aria-haspopup": "listbox",
|
|
@@ -526,12 +557,25 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
526
557
|
return !prev;
|
|
527
558
|
});
|
|
528
559
|
}
|
|
529
|
-
}, /*#__PURE__*/React.createElement("
|
|
560
|
+
}, iconLeft && (/*#__PURE__*/React.createElement("svg", {
|
|
561
|
+
className: "tds-dropdown__icon-left",
|
|
562
|
+
width: "20",
|
|
563
|
+
height: "20",
|
|
564
|
+
viewBox: "0 0 20 20",
|
|
565
|
+
fill: "currentColor",
|
|
566
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
567
|
+
}, /*#__PURE__*/React.createElement("circle", {
|
|
568
|
+
cx: "10",
|
|
569
|
+
cy: "10",
|
|
570
|
+
r: "8"
|
|
571
|
+
}))), /*#__PURE__*/React.createElement("span", {
|
|
530
572
|
className: "tds-dropdown__value"
|
|
531
573
|
}, selectedLabel !== null && selectedLabel !== void 0 ? selectedLabel : placeholder), /*#__PURE__*/React.createElement("span", {
|
|
532
574
|
"aria-hidden": "true",
|
|
533
575
|
className: "tds-dropdown__chevron"
|
|
534
|
-
}, "\u25BE")),
|
|
576
|
+
}, "\u25BE")), helperMessage && (/*#__PURE__*/React.createElement("div", {
|
|
577
|
+
className: "tds-dropdown__helper-message"
|
|
578
|
+
}, helperMessage)), open && (/*#__PURE__*/React.createElement("div", {
|
|
535
579
|
className: "tds-dropdown__menu"
|
|
536
580
|
}, /*#__PURE__*/React.createElement(DropdownMenu, {
|
|
537
581
|
size: size,
|