@moda/om 15.11.2 → 16.0.0
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 +26 -0
- package/dist/components/Breakpoint/Breakpoint.d.ts +3 -1
- package/dist/components/Breakpoint/BreakpointProvider.d.ts +1 -0
- package/dist/index.cjs.js +3525 -3111
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +3448 -3034
- package/dist/index.esm.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +35 -35
- package/src/components/Breakpoint/Breakpoint.tsx +1 -1
- package/src/components/Breakpoint/BreakpointProvider.tsx +1 -0
- package/src/components/Checkbox/Checkbox.test.tsx +4 -4
- package/src/components/CreditCardNumberInput/CreditCardNumberInput.tsx +6 -3
- package/src/components/Field/Field.test.tsx +1 -1
- package/src/components/Modal/Modal.test.tsx +3 -3
- package/src/components/Popover/Popover.tsx +22 -20
- package/src/components/Select/Select.test.tsx +12 -17
- package/src/components/Select/Select.tsx +1 -1
- package/src/components/Select/SelectOption.tsx +1 -1
- package/src/components/Tag/Tag.test.tsx +2 -2
- package/src/components/Toast/Toast.test.tsx +2 -2
- package/src/hooks/useClickOutside.ts +2 -2
- package/src/hooks/useKeyboardListNavigation.spec.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,32 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See
|
|
4
4
|
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [16.0.0](https://github.com/ModaOperandi/om/compare/v15.11.4...v16.0.0) (2022-05-12)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **dependencies:** upgrade to React 18 ([#2602](https://github.com/ModaOperandi/om/issues/2602)) ([bf413bf](https://github.com/ModaOperandi/om/commit/bf413bfccb02e980dfd7ccd19c49afa764427753))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### BREAKING CHANGES
|
|
15
|
+
|
|
16
|
+
* **dependencies:** this package has react >= 18.1.0 and react-dom >= 18.1.0 as peer dependencies now
|
|
17
|
+
|
|
18
|
+
## [15.11.4](https://github.com/ModaOperandi/om/compare/v15.11.3...v15.11.4) (2021-12-14)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Bug Fixes
|
|
22
|
+
|
|
23
|
+
* **popover:** fixes error and clears out code[refactor] ([#2269](https://github.com/ModaOperandi/om/issues/2269)) ([974a3c6](https://github.com/ModaOperandi/om/commit/974a3c6f5355b38f9a2707e9c41a899fba1b17a6))
|
|
24
|
+
|
|
25
|
+
## [15.11.3](https://github.com/ModaOperandi/om/compare/v15.11.2...v15.11.3) (2021-12-13)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Bug Fixes
|
|
29
|
+
|
|
30
|
+
* **popover:** fixes open & !open logic ([#2265](https://github.com/ModaOperandi/om/issues/2265)) ([21e5bc9](https://github.com/ModaOperandi/om/commit/21e5bc995297ca3eeaaf4c4e0361ddb4860bd7b7))
|
|
31
|
+
|
|
6
32
|
## [15.11.2](https://github.com/ModaOperandi/om/compare/v15.11.1...v15.11.2) (2021-12-10)
|
|
7
33
|
|
|
8
34
|
|
|
@@ -9,6 +9,8 @@ declare type GreaterThan = {
|
|
|
9
9
|
declare type LessThan = {
|
|
10
10
|
lt: string;
|
|
11
11
|
};
|
|
12
|
-
export declare type BreakpointProps = At | GreaterThan | LessThan
|
|
12
|
+
export declare type BreakpointProps = (At | GreaterThan | LessThan) & {
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
};
|
|
13
15
|
export declare const Breakpoint: React.FC<BreakpointProps>;
|
|
14
16
|
export {};
|
|
@@ -10,6 +10,7 @@ export declare type BreakpointProviderProps = {
|
|
|
10
10
|
* this is useful for SSR (with some kind of device detection) and hydration on client-side
|
|
11
11
|
*/
|
|
12
12
|
defaultWidth?: 'auto' | number;
|
|
13
|
+
children?: React.ReactNode;
|
|
13
14
|
};
|
|
14
15
|
export declare const BreakpointContext: React.Context<BreakpointProviderProps>;
|
|
15
16
|
export declare const BreakpointProvider: React.FC<BreakpointProviderProps>;
|