@hitachivantara/uikit-react-core 5.27.10 → 5.28.1

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.
@@ -2599,49 +2599,7 @@ export declare const HvDatePicker: (props: HvDatePickerProps) => JSX_2.Element;
2599
2599
 
2600
2600
  export declare type HvDatePickerClasses = ExtractNames<typeof useClasses_106>;
2601
2601
 
2602
- export declare interface HvDatePickerProps extends HvBaseProps<HTMLDivElement, "onChange"> {
2603
- /**
2604
- * The form element name.
2605
- */
2606
- name?: string;
2607
- /**
2608
- * The label of the form element.
2609
- *
2610
- * The form element must be labeled for accessibility reasons.
2611
- * If not provided, an aria-label or aria-labelledby must be provided instead.
2612
- */
2613
- label?: React.ReactNode;
2614
- /**
2615
- * Provide additional descriptive text for the form element.
2616
- */
2617
- description?: React.ReactNode;
2618
- /**
2619
- * The placeholder value when nothing is selected.
2620
- */
2621
- placeholder?: string;
2622
- /**
2623
- * Indicates that the form element is disabled.
2624
- */
2625
- disabled?: boolean;
2626
- /**
2627
- * Indicates that user input is required on the form element.
2628
- */
2629
- required?: boolean;
2630
- /**
2631
- * The status of the form element.
2632
- *
2633
- * Valid is correct, invalid is incorrect and standBy means no validations have run.
2634
- *
2635
- * When uncontrolled and unspecified it will default to "standBy" and change to either "valid"
2636
- * or "invalid" after any change to the state.
2637
- */
2638
- status?: HvFormStatus;
2639
- /**
2640
- * The error message to show when the validation status is "invalid".
2641
- *
2642
- * Defaults to "Required" when the status is uncontrolled and no `aria-errormessage` is provided.
2643
- */
2644
- statusMessage?: React.ReactNode;
2602
+ export declare interface HvDatePickerProps extends Omit<HvFormElementProps, "onChange">, Pick<HvBaseDropdownProps, "disablePortal" | "expanded" | "defaultExpanded" | "onToggle"> {
2645
2603
  /**
2646
2604
  * Identifies the element that provides an error message for the date picker.
2647
2605
  *
@@ -2695,7 +2653,6 @@ export declare interface HvDatePickerProps extends HvBaseProps<HTMLDivElement, "
2695
2653
  endValue?: Date;
2696
2654
  /**
2697
2655
  * Flag informing if the the component should be in range mode or in single mode.
2698
- * TODO: remove this in favour of discriminated union
2699
2656
  */
2700
2657
  rangeMode?: boolean;
2701
2658
  /**
@@ -2716,10 +2673,6 @@ export declare interface HvDatePickerProps extends HvBaseProps<HTMLDivElement, "
2716
2673
  * only works if showing actions or in range mode.
2717
2674
  */
2718
2675
  showClear?: boolean;
2719
- /**
2720
- * Disable the portal behavior. The children stay within it's parent DOM hierarchy.
2721
- */
2722
- disablePortal?: boolean;
2723
2676
  /**
2724
2677
  * Sets if the calendar container should follow the date picker input out of the screen or stay visible.
2725
2678
  */
@@ -2731,11 +2684,7 @@ export declare interface HvDatePickerProps extends HvBaseProps<HTMLDivElement, "
2731
2684
  /**
2732
2685
  * An object containing props to be passed onto the baseDropdown.
2733
2686
  */
2734
- dropdownProps?: Object;
2735
- /**
2736
- * If `true` the DatePicker will be in read only mode, unable to be interacted.
2737
- */
2738
- readOnly?: boolean;
2687
+ dropdownProps?: Partial<HvBaseDropdownProps>;
2739
2688
  /**
2740
2689
  * Additional props passed to the HvCalendar component.
2741
2690
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hitachivantara/uikit-react-core",
3
- "version": "5.27.10",
3
+ "version": "5.28.1",
4
4
  "private": false,
5
5
  "author": "Hitachi Vantara UI Kit Team",
6
6
  "description": "Core React components for the NEXT Design System.",
@@ -64,7 +64,7 @@
64
64
  "access": "public",
65
65
  "directory": "package"
66
66
  },
67
- "gitHead": "18f6e9c22421729de7c70bff66145e4806dd2f0d",
67
+ "gitHead": "10810bb1a106c1db54862892770cce8f9ad1b444",
68
68
  "main": "dist/cjs/index.cjs",
69
69
  "exports": {
70
70
  ".": {