@simoncomputing/mui-bueno-v2 0.25.2 → 0.25.3
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 +11 -0
- package/dist/components/Form/Diff/Diff.d.ts +2 -1
- package/dist/components/Form/Inputs/BaseInputProps.d.ts +1 -1
- package/dist/components/Form/ReadOnly/ReadOnly.d.ts +6 -0
- package/dist/components/Table/DiffTable/DiffTable.d.ts +19 -0
- package/dist/index.cjs.js +103 -103
- package/dist/index.es.js +7684 -7651
- package/dist/index.umd.js +105 -105
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -11,6 +11,17 @@ 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.25.3] - 2026-02-06
|
|
15
|
+
|
|
16
|
+
### Added
|
|
17
|
+
|
|
18
|
+
- `DiffTable`
|
|
19
|
+
- Added `renderExpand` prop from `Table`
|
|
20
|
+
- `ReadOnly`/`Diff`
|
|
21
|
+
- Added new mode "comma". See `MultiAutocomplete` for an example.
|
|
22
|
+
- `MultiAutocomplete`
|
|
23
|
+
- Added support for `DiffProvider` & `ReadOnlyProvider`
|
|
24
|
+
|
|
14
25
|
## [0.25.2] - 2026-02-05
|
|
15
26
|
|
|
16
27
|
### Changed
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type DiffMode = 'word' | 'sentence' | 'html';
|
|
1
|
+
export type DiffMode = 'word' | 'sentence' | 'html' | 'comma';
|
|
2
2
|
export type DiffProps = {
|
|
3
3
|
beforeTxt?: string;
|
|
4
4
|
afterTxt?: string;
|
|
@@ -6,6 +6,7 @@ export type DiffProps = {
|
|
|
6
6
|
* word - use word-based diff
|
|
7
7
|
* sentence - use sentence-based diff
|
|
8
8
|
* html - use HTML-based diff
|
|
9
|
+
* comma - use comma-based diff
|
|
9
10
|
*
|
|
10
11
|
* @default sentence
|
|
11
12
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Base props for ALL inputs
|
|
3
3
|
*
|
|
4
|
-
* TODO: Add other shared props, if possible. Maybe `
|
|
4
|
+
* TODO: Add other shared props, if possible. Maybe `required`, etc.?
|
|
5
5
|
*
|
|
6
6
|
* TODO: make sure components are correctly calling formik's handlers (onChange, onBlur, etc.) like TextField
|
|
7
7
|
*/
|
|
@@ -11,5 +11,11 @@ export type ReadOnlyProps = {
|
|
|
11
11
|
diffSnapshot?: string;
|
|
12
12
|
diffMode?: DiffMode;
|
|
13
13
|
} & Omit<DiffProps, 'beforeTxt' | 'afterTxt'>;
|
|
14
|
+
/**
|
|
15
|
+
* To be used by form field components when a component should NOT be editable.
|
|
16
|
+
* This includes when showing the text diff of a field (showDiff from useDiff hook is true).
|
|
17
|
+
*
|
|
18
|
+
* For examples, see TextField, Select, RadioGroup, Autocomplete
|
|
19
|
+
*/
|
|
14
20
|
export declare const ReadOnly: (props: ReadOnlyProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
21
|
export default ReadOnly;
|
|
@@ -7,8 +7,27 @@ export type TableDiff<T> = {
|
|
|
7
7
|
export type DiffTableProps<T> = {
|
|
8
8
|
beforeData: T[];
|
|
9
9
|
afterData: T[];
|
|
10
|
+
/**
|
|
11
|
+
* See Table.columns
|
|
12
|
+
*/
|
|
10
13
|
columns: TableConfig<T>;
|
|
14
|
+
/**
|
|
15
|
+
* See Table.renderExpand
|
|
16
|
+
*
|
|
17
|
+
* DiffProvider will automatically be applied to content.
|
|
18
|
+
*/
|
|
19
|
+
renderExpand?: (item: T) => React.ReactNode;
|
|
11
20
|
};
|
|
21
|
+
/**
|
|
22
|
+
* Used to display changes (additions, modifications, removals) for a set of data.
|
|
23
|
+
*
|
|
24
|
+
* Adds a new column (left) that denotes whether a row was added, changed or removed. Any unchanged
|
|
25
|
+
* rows will be counted and displayed at the bottom, under the table.
|
|
26
|
+
*
|
|
27
|
+
* Data sets MUST be objects with an id property.
|
|
28
|
+
*
|
|
29
|
+
* NOTE: Changed rows only display that the row was changed. Cell-level diff is not yet implemented.
|
|
30
|
+
*/
|
|
12
31
|
export declare const DiffTable: <T extends {
|
|
13
32
|
id: number;
|
|
14
33
|
}>(props: DiffTableProps<T>) => import("react/jsx-runtime").JSX.Element;
|