@reportportal/ui-kit 0.0.1-alpha.154 → 0.0.1-alpha.156

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.
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Splits object properties into HTML attributes and remaining props.
3
+ * Transforms camelCase data-* and aria-* attributes to kebab-case format
4
+ * as required by HTML specification.
5
+ *
6
+ * @param attrs - Object containing properties to split
7
+ * @returns Object with two properties:
8
+ * - transformed: data-* and aria-* attributes converted to kebab-case
9
+ * - remaining: all other properties unchanged
10
+ *
11
+ * @example
12
+ * const props = { dataTestId: 'test', ariaLabel: 'Label', className: 'container' };
13
+ * const { transformed, remaining } = splitHtmlAttributes(props);
14
+ * // transformed: { 'data-test-id': 'test', 'aria-label': 'Label' }
15
+ * // remaining: { className: 'container' }
16
+ */
17
+ export declare const splitHtmlAttributes: (attrs: Record<string, unknown>) => {
18
+ transformed: Record<string, unknown>;
19
+ remaining: Record<string, unknown>;
20
+ };
@@ -1,3 +1,4 @@
1
1
  export { getFileExtension } from './getFileExtension';
2
2
  export { isString } from './isString';
3
3
  export { getAlignmentAxisOffset } from './floatingUi';
4
+ export { splitHtmlAttributes } from './htmlAttributes';
@@ -1,7 +1,7 @@
1
- import { ReactNode, FC } from 'react';
1
+ import { ReactNode, FC, ComponentPropsWithRef } from 'react';
2
2
  import { DropdownVariant, RenderDropdownOption, DropdownOptionType, DropdownValue } from './types';
3
3
 
4
- export interface DropdownProps {
4
+ export interface DropdownProps extends Omit<ComponentPropsWithRef<'div'>, 'onChange' | 'onFocus' | 'onBlur' | 'title'> {
5
5
  options: DropdownOptionType[];
6
6
  value: DropdownValue | DropdownValue[];
7
7
  disabled?: boolean;
@@ -3,7 +3,7 @@ import B from "react-datepicker/dist/es/index.js";
3
3
  import { c as R } from "./bind-06a7ff84.js";
4
4
  import { useMemo as P, useRef as D } from "react";
5
5
  import { F as I } from "./fieldText-1749da7a.js";
6
- import { D as E } from "./dropdown-b63f2137.js";
6
+ import { D as E } from "./dropdown-ae695766.js";
7
7
  import { S as T } from "./calendarArrow-44c7e60e.js";
8
8
  import { registerLocale as j } from "react-datepicker";
9
9
  const ie = (n, s) => {
@@ -1,5 +1,5 @@
1
- import { D as t } from "./datePicker-3881a2d6.js";
2
- import { r as A } from "./datePicker-3881a2d6.js";
1
+ import { D as t } from "./datePicker-37854acd.js";
2
+ import { r as A } from "./datePicker-37854acd.js";
3
3
  import "react/jsx-runtime";
4
4
  import "react-datepicker/dist/es/index.js";
5
5
  import "./bind-06a7ff84.js";
@@ -11,7 +11,7 @@ import "./baseIconButton-251479f7.js";
11
11
  import "./spinLoader-c4a53718.js";
12
12
  import "./maxValueDisplay-9be01a75.js";
13
13
  import "./fieldLabel.js";
14
- import "./dropdown-b63f2137.js";
14
+ import "./dropdown-ae695766.js";
15
15
  import "react-dom";
16
16
  import "@floating-ui/react-dom";
17
17
  import "downshift";