@taikai/rocket-kit 3.0.10-beta.1 → 3.0.10-beta.2
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/atoms/select-interactive/index.d.ts +1 -1
- package/dist/atoms/select-interactive/types.d.ts +1 -0
- package/dist/molecules/card-value/index.d.ts +1 -0
- package/dist/rocket-kit.cjs.development.js +8 -3
- package/dist/rocket-kit.cjs.development.js.map +1 -1
- package/dist/rocket-kit.cjs.production.min.js +1 -1
- package/dist/rocket-kit.cjs.production.min.js.map +1 -1
- package/dist/rocket-kit.esm.js +8 -3
- package/dist/rocket-kit.esm.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SelectInteractiveProps, TSelectInteractiveOption } from './types';
|
|
3
|
-
declare const SelectInteractive: ({ name, multi, search, placeholder, options, value, clear, error, disabled, formatGroupLabel, onChange, onInputChange, ...rest }: SelectInteractiveProps<TSelectInteractiveOption>) => React.JSX.Element;
|
|
3
|
+
declare const SelectInteractive: ({ name, multi, search, placeholder, options, value, clear, error, disabled, formatGroupLabel, onChange, onInputChange, dataTestId, ...rest }: SelectInteractiveProps<TSelectInteractiveOption>) => React.JSX.Element;
|
|
4
4
|
export default SelectInteractive;
|
|
@@ -30,5 +30,6 @@ export interface SelectInteractiveProps<T extends Options> extends TDivElement,
|
|
|
30
30
|
value?: ReadonlyArray<TOptions> | TOptions | null | undefined;
|
|
31
31
|
onChange: (values: Array<TOptions> | TOptions) => void;
|
|
32
32
|
options: ReadonlyArray<TOptions | OptionsGroup<TOptions>>;
|
|
33
|
+
dataTestId?: string;
|
|
33
34
|
}
|
|
34
35
|
export {};
|
|
@@ -8,6 +8,7 @@ export interface CardValueProps {
|
|
|
8
8
|
onClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
9
9
|
className?: string;
|
|
10
10
|
style?: React.CSSProperties;
|
|
11
|
+
dataTestId?: string;
|
|
11
12
|
}
|
|
12
13
|
declare const CardValue: (props: CardValueProps) => React.JSX.Element;
|
|
13
14
|
export default CardValue;
|
|
@@ -1333,9 +1333,12 @@ const SelectInteractive = ({
|
|
|
1333
1333
|
formatGroupLabel = true,
|
|
1334
1334
|
onChange = () => {},
|
|
1335
1335
|
onInputChange = () => {},
|
|
1336
|
+
dataTestId,
|
|
1336
1337
|
...rest
|
|
1337
1338
|
}) => {
|
|
1338
|
-
return /*#__PURE__*/React__default.createElement(SelectWrapper,
|
|
1339
|
+
return /*#__PURE__*/React__default.createElement(SelectWrapper, _extends({
|
|
1340
|
+
"data-testid": dataTestId
|
|
1341
|
+
}, rest), /*#__PURE__*/React__default.createElement(Select$1__default, {
|
|
1339
1342
|
name: name,
|
|
1340
1343
|
value: value,
|
|
1341
1344
|
isMulti: multi,
|
|
@@ -2351,11 +2354,13 @@ const CardValue = props => {
|
|
|
2351
2354
|
buttonValue,
|
|
2352
2355
|
onClick,
|
|
2353
2356
|
className = 'card-value',
|
|
2354
|
-
style
|
|
2357
|
+
style,
|
|
2358
|
+
dataTestId
|
|
2355
2359
|
} = props;
|
|
2356
2360
|
return /*#__PURE__*/React__default.createElement(CardValueStyle, {
|
|
2357
2361
|
className: className,
|
|
2358
|
-
style: style
|
|
2362
|
+
style: style,
|
|
2363
|
+
"data-testid": dataTestId
|
|
2359
2364
|
}, /*#__PURE__*/React__default.createElement(Label, {
|
|
2360
2365
|
value: label,
|
|
2361
2366
|
currency: currency
|