@netu-si/netu-react-dsf-components 1.0.8 → 1.0.9

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.d.ts CHANGED
@@ -533,4 +533,54 @@ interface DSFWarningTextProps {
533
533
  }
534
534
  declare const DSFWarningText: FC<DSFWarningTextProps>;
535
535
 
536
- export { DSFBackLink, DSFBeforeMainContainer, DSFBodyEndContainer, DSFBodyStartContainer, DSFButton, DSFCheckbox, DSFCookies$1 as DSFCookies, DSFCookies as DSFCookiesV3, DSFDateInput, DSFDateInputProps, DSFErrorSummary, DSFErrorSummaryProps, DSFErrorText, DSFFieldSet, DSFFileUpload, DSFFooter, DSFFormGroup, DSFHeader, DSFHintText, DSFInput, DSFInputField, DSFInputProps, DSFLabel, DSFLoadingBox, DSFMain, DSFPage, DSFPanel, PanelEnum as DSFPanelEnum, DSFRadio, DSFSelect, DSFSkipLink, DSFSummaryList, DSFSummaryListItem, DSFSummaryListProps, DSFTable, DSFTableColumn, DSFTableProps, DSFTextArea, DSFTextAreaProps, DSFUserSignOut, DSFWarningText };
536
+ interface DSFDatePickerInputProps {
537
+ /**
538
+ * Called when the date changes
539
+ */
540
+ onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
541
+ /**
542
+ * Called when the input field is blurred
543
+ */
544
+ onBlur?: (e: React.FocusEvent<HTMLInputElement>) => void;
545
+ /**
546
+ * Called when the input field is focused
547
+ */
548
+ onFocus?: (e: React.FocusEvent<HTMLInputElement>) => void;
549
+ /**
550
+ * When the form field is controlled, this sets the value of date
551
+ */
552
+ value?: string;
553
+ }
554
+ interface DSFDatePickerProps {
555
+ /**
556
+ * ID of the component
557
+ */
558
+ id: string;
559
+ /**
560
+ * Input label
561
+ */
562
+ label: string;
563
+ /**
564
+ * Hint text to assist the user with input
565
+ */
566
+ hint?: string;
567
+ /**
568
+ * Error text to be displayed when validation fails
569
+ */
570
+ errorText?: string;
571
+ register: UseFormRegisterReturn;
572
+ visualSize?: number;
573
+ inputProps?: DSFDatePickerInputProps;
574
+ }
575
+ /**
576
+ * DSFDatePicker Component
577
+ *
578
+ * A reusable date picker component that provides a label, hint, and error handling.
579
+ * It is designed to integrate with forms and maintain consistency with other components in the design system.
580
+ */
581
+ declare const DSFDatePicker: {
582
+ ({ id, label, hint, errorText, register, visualSize, inputProps }: DSFDatePickerProps): React.JSX.Element;
583
+ displayName: string;
584
+ };
585
+
586
+ export { DSFBackLink, DSFBeforeMainContainer, DSFBodyEndContainer, DSFBodyStartContainer, DSFButton, DSFCheckbox, DSFCookies$1 as DSFCookies, DSFCookies as DSFCookiesV3, DSFDateInput, DSFDateInputProps, DSFDatePicker, DSFDatePickerProps, DSFErrorSummary, DSFErrorSummaryProps, DSFErrorText, DSFFieldSet, DSFFileUpload, DSFFooter, DSFFormGroup, DSFHeader, DSFHintText, DSFInput, DSFInputField, DSFInputProps, DSFLabel, DSFLoadingBox, DSFMain, DSFPage, DSFPanel, PanelEnum as DSFPanelEnum, DSFRadio, DSFSelect, DSFSkipLink, DSFSummaryList, DSFSummaryListItem, DSFSummaryListProps, DSFTable, DSFTableColumn, DSFTableProps, DSFTextArea, DSFTextAreaProps, DSFUserSignOut, DSFWarningText };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netu-si/netu-react-dsf-components",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "React Component Library Using the GOV-CY DSF Design System",
5
5
  "repository": "https://github.com/netu-si/netu-react-dsf-components.git",
6
6
  "homepage": "https://github.com/netu-si/netu-react-dsf-components#readme",