@taikai/rocket-kit 3.0.9 → 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.
@@ -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, rest, /*#__PURE__*/React__default.createElement(Select$1__default, {
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
@@ -5564,7 +5569,7 @@ const ModalWrapper$1 = /*#__PURE__*/_styled__default.div.withConfig({
5564
5569
  const ModalContainer$1 = /*#__PURE__*/_styled__default.div.withConfig({
5565
5570
  displayName: "styles__ModalContainer",
5566
5571
  componentId: "sc-46huls-2"
5567
- })(["position:fixed;right:0;background:", ";width:100%;height:100vh;height:calc(var(--vh,1vh) * 100);display:flex;flex-direction:column;padding:", ";word-wrap:break-word;animation-timing-function:", ";animation-duration:1s;animation-fill-mode:forwards;transform:translateX(100%);animation-name:", ";overflow-y:auto;@media ", "{max-width:", ";padding:", ";}"], colors.white, /*#__PURE__*/polished.rem('15px'), /*#__PURE__*/polished.timingFunctions('easeOutQuint'), slideInLeft, device.s, /*#__PURE__*/polished.rem('400px'), /*#__PURE__*/polished.rem('30px'));
5572
+ })(["margin-left:auto;background:", ";width:100%;min-height:100vh;display:flex;flex-direction:column;padding:", ";word-wrap:break-word;animation-timing-function:", ";animation-duration:1s;animation-fill-mode:forwards;transform:translateX(100%);animation-name:", ";@media ", "{max-width:", ";padding:", ";}"], colors.white, /*#__PURE__*/polished.rem('15px'), /*#__PURE__*/polished.timingFunctions('easeOutQuint'), slideInLeft, device.s, /*#__PURE__*/polished.rem('400px'), /*#__PURE__*/polished.rem('30px'));
5568
5573
  const ModalHeader$1 = /*#__PURE__*/_styled__default.div.withConfig({
5569
5574
  displayName: "styles__ModalHeader",
5570
5575
  componentId: "sc-46huls-3"