@simoncomputing/mui-bueno-v2 0.18.3 → 0.18.5
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 +29 -0
- package/dist/@types/index.d.ts +2 -0
- package/dist/components/Form/Inputs/Checkbox/Checkbox.d.ts +6 -0
- package/dist/components/Form/Inputs/CitationField/CitationField.d.ts +11 -1
- package/dist/components/Form/Inputs/CitationField/CitationManager/BaseCitationManager.d.ts +1 -1
- package/dist/components/Form/Inputs/CitationField/CitationManager/CitationTable.d.ts +4 -0
- package/dist/components/Form/Inputs/NotApplicableCheckbox/NotApplicableCheckbox.d.ts +9 -0
- package/dist/index.cjs.js +99 -99
- package/dist/index.d.ts +2 -0
- package/dist/index.es.js +4750 -4745
- package/dist/index.umd.js +98 -98
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -11,6 +11,35 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
11
11
|
- Minor increment --> singlular/minor changes. Minimal breaking changes.
|
|
12
12
|
- Patch increment --> singlular/minor changes. Zero breaking changes.
|
|
13
13
|
|
|
14
|
+
## [0.18.5] - 2025-09-24
|
|
15
|
+
|
|
16
|
+
### Added
|
|
17
|
+
|
|
18
|
+
- `CitationField`
|
|
19
|
+
|
|
20
|
+
- added optional `placeholder` prop to override default placeholder text ("Start typing here...")
|
|
21
|
+
- [prototype] added `notApplicableName` prop which when a formik name is provided, a Not Applicable checkbox will appear
|
|
22
|
+
|
|
23
|
+
- `NotApplicable` - basic component that can be added to denote whether a form section is not applicable
|
|
24
|
+
|
|
25
|
+
## [0.18.4] - 2025-09-24
|
|
26
|
+
|
|
27
|
+
### Added
|
|
28
|
+
|
|
29
|
+
- `TableColumn`
|
|
30
|
+
- added `hideCol` prop, which when true, will hide the column from the `Table` or `PaginatedTable`
|
|
31
|
+
|
|
32
|
+
### Fixed
|
|
33
|
+
|
|
34
|
+
- `CitationManager`, `SelectableCitationManager`
|
|
35
|
+
- `onUpdateCitation` is optional. When not provided, the Edit icon buttons will not be displayed.
|
|
36
|
+
- `TableColumn` - added `hideCol` prop, which when true, will hide the column from the `Table` or `PaginatedTable`
|
|
37
|
+
|
|
38
|
+
### Fixed
|
|
39
|
+
|
|
40
|
+
- `CitationManager`, `SelectableCitationManager`
|
|
41
|
+
- `onUpdateCitation` is optional. When not provided, the Edit icon buttons will not be displayed.
|
|
42
|
+
|
|
14
43
|
## [0.18.3] - 2025-09-24
|
|
15
44
|
|
|
16
45
|
### Fixed
|
package/dist/@types/index.d.ts
CHANGED
|
@@ -114,6 +114,7 @@ export type EnvironmentInfo = {
|
|
|
114
114
|
* on a phone vs tablet/desktop
|
|
115
115
|
* @property {string} sortName - (Optional) Passed instead of `fieldName` to onSortChange(fieldName, ...). Useful if you're rendering the same object in 2+ columns and need a way to differentiate when sorting.
|
|
116
116
|
* @property {SxProps<Theme>} tableCellSx - (Optional) styles applies to TableCell (non-mobile)
|
|
117
|
+
* @property {boolean} hideCol - (Optional) if true, this column will not be displayed
|
|
117
118
|
*/
|
|
118
119
|
export type TableColumn<T, K extends keyof T> = {
|
|
119
120
|
key?: string;
|
|
@@ -122,6 +123,7 @@ export type TableColumn<T, K extends keyof T> = {
|
|
|
122
123
|
render?: (value: T[K], object: T, isMobile: boolean) => React.ReactNode;
|
|
123
124
|
sortName?: string;
|
|
124
125
|
tableCellSx?: SxProps<Theme>;
|
|
126
|
+
hideCol?: boolean;
|
|
125
127
|
};
|
|
126
128
|
|
|
127
129
|
// Sort order for Tables
|
|
@@ -49,6 +49,12 @@ type BaseCheckboxProps = {
|
|
|
49
49
|
* Used to customize the label when the static label option is selected or the field is readOnly.
|
|
50
50
|
*/
|
|
51
51
|
staticLabelProps?: TypographyProps;
|
|
52
|
+
/**
|
|
53
|
+
* Does not display error and does not leave padding for error.
|
|
54
|
+
*
|
|
55
|
+
* Use this if handling validation errors elsewhere.
|
|
56
|
+
*/
|
|
57
|
+
noError?: boolean;
|
|
52
58
|
};
|
|
53
59
|
export type CheckboxProps = BaseCheckboxProps & Omit<MuiCheckboxProps, 'checked' | 'name'>;
|
|
54
60
|
/**
|
|
@@ -54,7 +54,7 @@ export type CitationFieldProps = {
|
|
|
54
54
|
*
|
|
55
55
|
* Error handling is supported internally.
|
|
56
56
|
*/
|
|
57
|
-
onUpdateCitation
|
|
57
|
+
onUpdateCitation?: (citation: Citation) => Promise<Citation>;
|
|
58
58
|
/**
|
|
59
59
|
* API call for updating a citation/attachment.
|
|
60
60
|
*
|
|
@@ -78,6 +78,16 @@ export type CitationFieldProps = {
|
|
|
78
78
|
* help debug issues so developers can see specific details about an error.
|
|
79
79
|
*/
|
|
80
80
|
onError?: (err: string) => void;
|
|
81
|
+
/**
|
|
82
|
+
* Placeholder text. Default "Start typing here..."
|
|
83
|
+
*/
|
|
84
|
+
placeholder?: string;
|
|
85
|
+
/**
|
|
86
|
+
* [prototype] If defined, a "Not Applicable" checkbox is displayed.
|
|
87
|
+
*
|
|
88
|
+
* NOTE: This feature is a prototype and is not fully implemented.
|
|
89
|
+
*/
|
|
90
|
+
notApplicableName?: string;
|
|
81
91
|
};
|
|
82
92
|
/**
|
|
83
93
|
* Rich Text field -- uses MUI Tip Tap
|
|
@@ -12,7 +12,7 @@ export interface BaseCitationManagerProps {
|
|
|
12
12
|
/**
|
|
13
13
|
* API call for updating a citation/attachment.
|
|
14
14
|
*/
|
|
15
|
-
onUpdateCitation
|
|
15
|
+
onUpdateCitation?: (citation: Citation) => Promise<Citation>;
|
|
16
16
|
/**
|
|
17
17
|
* API call for deleting a citation/attachment.
|
|
18
18
|
*/
|
|
@@ -39,6 +39,10 @@ export type CitationTableProps = {
|
|
|
39
39
|
* When true, create citation & attachment buttons will display.
|
|
40
40
|
*/
|
|
41
41
|
canCreate?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* When true, edit citation icon buttons will display for each row.
|
|
44
|
+
*/
|
|
45
|
+
canEdit?: boolean;
|
|
42
46
|
/**
|
|
43
47
|
* Additional actions to be displayed for each row. Will be inserted in between Download (if applicable) and Edit button.
|
|
44
48
|
*/
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CheckboxProps } from '../Checkbox/Checkbox';
|
|
2
|
+
export type NotApplicableCheckboxProps = CheckboxProps;
|
|
3
|
+
/**
|
|
4
|
+
* Simple Not Applicable checkbox. Intended to be used with other form inputs.
|
|
5
|
+
*
|
|
6
|
+
* NOTE: Does not show validation errors. Make sure to handle validation and display errors accordinly.
|
|
7
|
+
*/
|
|
8
|
+
export declare const NotApplicableCheckbox: (props: NotApplicableCheckboxProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default NotApplicableCheckbox;
|