@netu-si/netu-react-dsf-components 1.0.7 → 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
@@ -366,7 +366,10 @@ interface DSFFieldSetProps {
366
366
  legend: React.ReactNode;
367
367
  children?: React.ReactNode;
368
368
  }
369
- declare const DSFFieldSet: FC<DSFFieldSetProps>;
369
+ declare const DSFFieldSet: {
370
+ ({ legend, children }: DSFFieldSetProps): React.JSX.Element;
371
+ displayName: string;
372
+ };
370
373
 
371
374
  interface DSFFormGroupProps {
372
375
  label?: string;
@@ -530,4 +533,54 @@ interface DSFWarningTextProps {
530
533
  }
531
534
  declare const DSFWarningText: FC<DSFWarningTextProps>;
532
535
 
533
- 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.7",
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",
@@ -50,27 +50,28 @@
50
50
  "@storybook/react": "7.0.27",
51
51
  "@storybook/react-webpack5": "7.0.27",
52
52
  "@storybook/testing-library": "0.2.0",
53
- "@types/react": "18.2.20",
53
+ "@types/react": "^18.3.1",
54
54
  "@typescript-eslint/eslint-plugin": "^6.21.0",
55
55
  "@typescript-eslint/parser": "^6.0.0",
56
56
  "can-npm-publish": "^1.3.6",
57
57
  "concat": "^1.0.3",
58
- "eslint": "^8.45.0",
58
+ "eslint": "8.54.0",
59
59
  "eslint-config-airbnb": "^19.0.4",
60
60
  "eslint-config-airbnb-typescript": "^17.1.0",
61
- "eslint-config-prettier": "^8.8.0",
62
61
  "eslint-plugin-cypress": "^2.13.3",
63
62
  "eslint-plugin-flowtype": "^8.0.3",
64
63
  "eslint-plugin-import": "^2.27.5",
65
64
  "eslint-plugin-jsx-a11y": "^6.7.1",
66
65
  "eslint-plugin-no-only-tests": "^3.1.0",
67
- "eslint-plugin-prettier": "^5.0.0",
66
+ "eslint-config-prettier": "10.0.1",
67
+ "eslint-plugin-prettier": "^5.2.3",
68
+ "prettier": "3.4.2",
68
69
  "eslint-plugin-react": "^7.32.2",
69
70
  "eslint-plugin-react-hooks": "^4.6.0",
70
71
  "eslint-plugin-storybook": "^0.6.12",
71
72
  "gh-pages": "^5.0.0",
72
73
  "hex-rgb": "^5.0.0",
73
- "next": "13.0.4",
74
+ "next": "^14.2.3",
74
75
  "postcss-import": "^16.1.0",
75
76
  "prop-types": "15.8.1",
76
77
  "react": "^18.3.1",