@hortiview/shared-components 1.1.2 → 1.2.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## [1.2.1](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/compare/v1.2.0...v1.2.1) (2025-04-08)
2
+
3
+ # [1.2.0](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/compare/v1.1.2...v1.2.0) (2025-04-02)
4
+
5
+
6
+ ### Features
7
+
8
+ * new props to handle default pagination strings added, changelog added to storybook ([491978e](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/commit/491978e20c27183de69f18072b135bf4b438aa02))
9
+
1
10
  ## [1.1.2](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/compare/v1.1.1...v1.1.2) (2025-03-31)
2
11
 
3
12
 
package/README.md CHANGED
@@ -90,7 +90,7 @@ import { AlertBanner } from '@hortiview/shared-components';
90
90
 
91
91
  ### BaseView
92
92
 
93
- Can used to show a kind off main and detail view. On the left side you will have a list of elements and on the right a detail section of the element selected.
93
+ Can be used to show a kind off main and detail view. On the left side you will have a list of elements and on the right a detail section of the element selected.
94
94
 
95
95
  ```jsx
96
96
  import { BaseListElement, BaseView } from '@hortiview/shared-components';
@@ -1058,4 +1058,4 @@ The supported countries are:
1058
1058
  const languageCode = 'en' as AVAILABLE_LANGUAGE_CODES;
1059
1059
  const languageCountryCode = LANGUAGE_CODES_MAPPER[languageCode];
1060
1060
  console.log(languageCountryCode); // 'en-US'
1061
- ```
1061
+ ```
@@ -1,10 +1,11 @@
1
+ import { CheckboxProps } from '@element-public/react-checkbox';
1
2
  import { FieldValues, Path, RegisterOptions } from 'react-hook-form';
2
3
 
3
4
  type FormCheckProps<T extends FieldValues> = {
4
5
  /** The name of the property that this checkbox represents. */
5
6
  propertyName: Path<T>;
6
7
  /** Label to be displayed with the checkbox. */
7
- label: string;
8
+ label: CheckboxProps['label'];
8
9
  /** Validation rules for the checkbox. */
9
10
  validate?: RegisterOptions<T>['validate'];
10
11
  /** Determines if this input is mandatory. */
@@ -12,7 +13,7 @@ type FormCheckProps<T extends FieldValues> = {
12
13
  /** Function to be called when the checkbox value changes. */
13
14
  onChange?: () => void;
14
15
  /** Determines if this input is disabled. */
15
- disabled?: boolean;
16
+ disabled?: CheckboxProps['disabled'];
16
17
  };
17
18
  /**
18
19
  * FormCheckBox is a custom form input component for selecting checkboxes.
@@ -54,6 +54,9 @@ import { TableLayoutProps } from '../../types/GenericTable';
54
54
  * @param title title of the table
55
55
  * @param cardTitleColumn column to be used as the title in the card layout
56
56
  * @param cardSubTitleColumn column to be used as the subtitle in the card layout
57
+ * @param pageTranslation translation for the pagination text 'Page'
58
+ * @param pageOfTranslation translation for the pagination text 'of'
59
+ * @param rowsPerPageTranslation translation for the pagination text 'Rows per page'
57
60
  * @returns a table based on a given type and data
58
61
  */
59
- export declare const GenericTable: <T>({ data, hiddenColumns, order, cellTemplates, tableActions, noContentText, headerTranslation, pagination, getRowActions, customColumnWidth, title, cardTitleColumn, cardSubTitleColumn, }: TableLayoutProps<T>) => import("react/jsx-runtime").JSX.Element;
62
+ export declare const GenericTable: <T>({ data, hiddenColumns, order, cellTemplates, tableActions, noContentText, headerTranslation, pagination, getRowActions, customColumnWidth, title, cardTitleColumn, cardSubTitleColumn, pageTranslation, pageOfTranslation, rowsPerPageTranslation, }: TableLayoutProps<T>) => import("react/jsx-runtime").JSX.Element;