@axinom/mosaic-ui 0.39.0-rc.4 → 0.39.1-feat-gs.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.
Files changed (37) hide show
  1. package/dist/components/Accordion/Accordion.d.ts +7 -7
  2. package/dist/components/Accordion/AccordionItem/AccordionItem.d.ts +2 -2
  3. package/dist/components/ConfirmDialog/index.d.ts +1 -1
  4. package/dist/components/ConfirmDialog/index.d.ts.map +1 -1
  5. package/dist/helpers/testing.d.ts +4 -1
  6. package/dist/helpers/testing.d.ts.map +1 -1
  7. package/dist/index.es.js +4 -4
  8. package/dist/index.es.js.map +1 -1
  9. package/dist/index.js +4 -4
  10. package/dist/index.js.map +1 -1
  11. package/package.json +2 -3
  12. package/src/components/Actions/Action/Action.scss +1 -0
  13. package/src/components/FormElements/Tags/Tags.tsx +3 -3
  14. package/src/components/FormStation/Create/Create.stories.tsx +1 -9
  15. package/src/components/FormStation/Create/Create.tsx +4 -1
  16. package/src/components/FormStation/Details/Details.tsx +5 -2
  17. package/src/components/FormStation/FormContentWrapper/FormContentWrapper.scss +66 -0
  18. package/src/components/FormStation/FormContentWrapper/FormContentWrapper.tsx +77 -0
  19. package/src/components/FormStation/FormStation.models.ts +29 -3
  20. package/src/components/FormStation/FormStation.scss +0 -70
  21. package/src/components/FormStation/FormStation.spec.tsx +2 -1
  22. package/src/components/FormStation/FormStation.stories.tsx +20 -1
  23. package/src/components/FormStation/FormStation.tsx +68 -403
  24. package/src/components/FormStation/FormStationActions/FormStationActions.tsx +132 -0
  25. package/src/components/FormStation/FormStationContext/FormStationContext.ts +22 -0
  26. package/src/components/FormStation/FormStationContext/FormStationContextProvider.tsx +86 -0
  27. package/src/components/FormStation/FormStationHeader/FormStationHeader.tsx +85 -0
  28. package/src/components/FormStation/helpers/mergeData.ts +26 -0
  29. package/src/components/FormStation/helpers/useChangeSets.ts +70 -0
  30. package/src/components/FormStation/helpers/useDataProvider.ts +169 -0
  31. package/src/components/FormStation/helpers/useDebouncedFormikValues.ts +22 -0
  32. package/src/components/FormStation/helpers/useUndo.ts +43 -0
  33. package/src/components/FormStation/{useValidationError.tsx → helpers/useValidationError.tsx} +1 -1
  34. package/src/components/FormStation/index.ts +1 -5
  35. package/src/components/Utils/Postgraphile/getArrayDiff.ts +7 -6
  36. package/src/components/Utils/Postgraphile/getFormDiff.ts +2 -1
  37. package/src/components/FormStation/StationErrorStateType.tsx +0 -5
@@ -16,13 +16,13 @@ export interface AccordionProps {
16
16
  *
17
17
  * @example
18
18
  * <Accordion header={<b>Header</b>}>
19
- * <AccordionItem header={<b>Item 1</b>}>
20
- * <p>Content 1</p>
21
- * </AccordionItem>
22
- * <AccordionItem header={<b>Item 2</b>}>
23
- * <p>Content 2</p>
24
- * </AccordionItem>
25
- * </Accordion>
19
+ <AccordionItem header={<b>Item 1</b>}>
20
+ <p>Content 1</p>
21
+ </AccordionItem>
22
+ <AccordionItem header={<b>Item 2</b>}>
23
+ <p>Content 2</p>
24
+ </AccordionItem>
25
+ </Accordion>
26
26
  */
27
27
  export declare const Accordion: React.FC<AccordionProps>;
28
28
  //# sourceMappingURL=Accordion.d.ts.map
@@ -16,8 +16,8 @@ export interface AccordionItemProps {
16
16
  * Renders a single Accordion Item
17
17
  * @example
18
18
  * <AccordionItem header={<b>Item 2</b>}>
19
- * <p>Content 2</p>
20
- * </AccordionItem>
19
+ <p>Content 2</p>
20
+ </AccordionItem>
21
21
  */
22
22
  export declare const AccordionItem: React.FC<AccordionItemProps>;
23
23
  //# sourceMappingURL=AccordionItem.d.ts.map
@@ -1,3 +1,3 @@
1
1
  export { ConfirmDialog, useConfirmationDelay } from './ConfirmDialog';
2
- export * from './ConfirmDialog.models';
2
+ export { ConfirmationConfig, ConfirmationMode, ConfirmationPlacement, } from './ConfirmDialog.models';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ConfirmDialog/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AACtE,cAAc,wBAAwB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ConfirmDialog/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AACtE,OAAO,EACL,kBAAkB,EAClB,gBAAgB,EAChB,qBAAqB,GACtB,MAAM,wBAAwB,CAAC"}
@@ -1,3 +1,6 @@
1
+ /// <reference types="jest" />
2
+ /// <reference types="jest-expect-message" />
3
+ /// <reference types="testing-library__jest-dom" />
1
4
  import { ShallowWrapper } from 'enzyme';
2
5
  /**
3
6
  * Executes the given callback in an `setImmediate` call and returns a Promise that resolves after the call is finished.
@@ -35,5 +38,5 @@ export declare function actWithReturn<T>(render: () => T | Promise<T>): Promise<
35
38
  * This helper will not mock any thing. It's just converting Typescript types!
36
39
  * @param f the mocked function
37
40
  */
38
- export declare const asSpy: <T>(fn: (...args: any) => T) => jest.SpyInstance<Partial<T>>;
41
+ export declare const asSpy: <T>(fn: (...args: any) => T) => jest.SpyInstance<Partial<T>, any, any>;
39
42
  //# sourceMappingURL=testing.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"testing.d.ts","sourceRoot":"","sources":["../../src/helpers/testing.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAOxC;;;GAGG;AACH,eAAO,MAAM,iBAAiB,aAClB,CAAC,MAAM,QAAQ,IAAI,CAAC,CAAC,GAAG,CAAC,MAAM,IAAI,CAAC,KAC7C,QAAQ,IAAI,CAWd,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,kCAAkC;;2CAIvC,MAAM,iBACG,MAAM,GAAG,SAAS,KAC9B,IA6BJ,CAAC;AAEF;;;;;;;;;;;;;;;;GAgBG;AAEH,wBAAsB,aAAa,CAAC,CAAC,EACnC,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,GAC3B,OAAO,CAAC,CAAC,CAAC,CAQZ;AAED;;;;GAIG;AACH,eAAO,MAAM,KAAK,oBACF,GAAG,uCAGlB,CAAC"}
1
+ {"version":3,"file":"testing.d.ts","sourceRoot":"","sources":["../../src/helpers/testing.ts"],"names":[],"mappings":";;;AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAOxC;;;GAGG;AACH,eAAO,MAAM,iBAAiB,aAClB,CAAC,MAAM,QAAQ,IAAI,CAAC,CAAC,GAAG,CAAC,MAAM,IAAI,CAAC,KAC7C,QAAQ,IAAI,CAWd,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,kCAAkC;;gBAGpC,eAAe,GAAG,CAAC,QACtB,MAAM,iBACG,MAAM,GAAG,SAAS,KAC9B,IA6BJ,CAAC;AAEF;;;;;;;;;;;;;;;;GAgBG;AAEH,wBAAsB,aAAa,CAAC,CAAC,EACnC,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,GAC3B,OAAO,CAAC,CAAC,CAAC,CAQZ;AAED;;;;GAIG;AACH,eAAO,MAAM,KAAK,oBACF,GAAG,iDAGlB,CAAC"}