@ballistix.digital/react-components 9.4.1-rc-352.0 → 9.4.1-rc-355.0

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/index.js CHANGED
@@ -986,7 +986,7 @@ var $1a23dea933d8729b$export$2e2bcd8739ae039 = $1a23dea933d8729b$var$styles;
986
986
 
987
987
 
988
988
  const $88f571169cf61789$var$Button = (props)=>{
989
- const { children: children, innerRef: innerRef, htmlType: htmlType = 'button', dataCy: dataCy, type: type = 'primary', size: size = 'md', figure: figure = 'block', status: status = 'idle', isDisabled: isDisabled, styles: stylesOverrides, onClick: onClick } = props;
989
+ const { children: children, innerRef: innerRef, htmlType: htmlType = 'button', dataCy: dataCy, dataTestid: dataTestid, type: type = 'primary', size: size = 'md', figure: figure = 'block', status: status = 'idle', isDisabled: isDisabled, styles: stylesOverrides, onClick: onClick } = props;
990
990
  const handleGenerateStyle = ()=>{
991
991
  const result = (0, $f0c671820c340322$export$e2d2075c69d9100d)((0, $1a23dea933d8729b$export$2e2bcd8739ae039).base);
992
992
  const keys = (0, $27f90b0cff19565d$export$be5d6ab3c5b84767)((0, $1a23dea933d8729b$export$2e2bcd8739ae039).base);
@@ -1005,6 +1005,7 @@ const $88f571169cf61789$var$Button = (props)=>{
1005
1005
  },
1006
1006
  ref: innerRef,
1007
1007
  "data-cy": dataCy,
1008
+ "data-testid": dataTestid,
1008
1009
  children: [
1009
1010
  status === 'idle' && children,
1010
1011
  status === 'loading' && (0, $iA2ta$reactjsxruntime.jsxs)("div", {
@@ -2296,11 +2297,11 @@ var $0c7305af577f9538$export$2e2bcd8739ae039 = $0c7305af577f9538$var$styles;
2296
2297
 
2297
2298
 
2298
2299
  const $cb1b9d36d0757897$var$SelectMenu = (props)=>{
2299
- const { name: name = 'select-menu-form', label: label, description: description, hint: hint, placeholder: placeholder, options: options, required: required, value: value, error: error, isRequired: isRequired = false, isLoading: isLoading, isTouched: isTouched = false, isDisabled: isDisabled, isClearable: isClearable = true, isMultiple: isMultiple = false, isSearchable: isSearchable = true, isSolo: isSolo = false, isOptionalLabelHidden: isOptionalLabelHidden = false, onChange: onChange, onSearchInputChange: onSearchInputChange, onClear: onClear, onBlur: onBlur, styles: stylesOverrides } = props;
2300
+ const { name: name = 'select-menu-form', label: label, description: description, hint: hint, placeholder: placeholder, options: options, required: required, value: value, error: error, isRequired: isRequired = false, isLoading: isLoading, isTouched: isTouched = false, isDisabled: isDisabled, isClearable: isClearable = true, isMultiple: isMultiple = false, isSearchable: isSearchable = true, isSolo: isSolo = false, isOptionalLabelHidden: isOptionalLabelHidden = false, onChange: onChange, onSearchInputChange: onSearchInputChange, onClear: onClear, onBlur: onBlur, dataTestid: dataTestid, styles: stylesOverrides } = props;
2300
2301
  const [isFocus, setIsFocus] = (0, $iA2ta$react.useState)(true);
2301
2302
  const [state, setState] = (0, $iA2ta$react.useState)(value ?? null);
2302
2303
  const isValid = error === undefined;
2303
- const selectDataCy = `form-select-${name}`;
2304
+ const selectDataTestid = dataTestid ?? `form-select-${name}`;
2304
2305
  const handleGenerateStyle = ()=>{
2305
2306
  const result = (0, $f0c671820c340322$export$e2d2075c69d9100d)((0, $0c7305af577f9538$export$2e2bcd8739ae039).base);
2306
2307
  const keys = (0, $iA2ta$lodash.concat)((0, $27f90b0cff19565d$export$be5d6ab3c5b84767)((0, $0c7305af577f9538$export$2e2bcd8739ae039).base), (0, $27f90b0cff19565d$export$be5d6ab3c5b84767)((0, $3369f7d596d23d58$export$2e2bcd8739ae039).base), (0, $27f90b0cff19565d$export$be5d6ab3c5b84767)((0, $65bb4d593718fcda$export$2e2bcd8739ae039).base));
@@ -2343,6 +2344,7 @@ const $cb1b9d36d0757897$var$SelectMenu = (props)=>{
2343
2344
  ]);
2344
2345
  return (0, $iA2ta$reactjsxruntime.jsxs)("div", {
2345
2346
  className: styles.container,
2347
+ "data-testid": selectDataTestid,
2346
2348
  children: [
2347
2349
  (0, $iA2ta$reactjsxruntime.jsx)((0, $9314e0aa7f1e874e$export$2e2bcd8739ae039), {
2348
2350
  name: name,
@@ -2357,7 +2359,8 @@ const $cb1b9d36d0757897$var$SelectMenu = (props)=>{
2357
2359
  className: (0, $622cd2936b18c771$export$4370d69198e9314a)(styles.container, styles.wrapperContainer),
2358
2360
  children: [
2359
2361
  (0, $iA2ta$reactjsxruntime.jsx)("div", {
2360
- "data-cy": selectDataCy,
2362
+ "data-cy": `form-select-${name}`,
2363
+ "data-testid": `${selectDataTestid}-control`,
2361
2364
  children: (0, $iA2ta$reactjsxruntime.jsx)((0, ($parcel$interopDefault($iA2ta$reacttailwindcssselect))), {
2362
2365
  primaryColor: "primary",
2363
2366
  //