@react-types/layout 3.3.28 → 3.4.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-types/layout",
3
- "version": "3.3.28",
3
+ "version": "3.4.0",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "types": "src/index.d.ts",
@@ -9,13 +9,15 @@
9
9
  "url": "https://github.com/adobe/react-spectrum"
10
10
  },
11
11
  "dependencies": {
12
- "@react-types/shared": "^3.33.0"
12
+ "@react-spectrum/layout": "^3.7.0"
13
13
  },
14
14
  "peerDependencies": {
15
- "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
15
+ "@react-spectrum/provider": "^3.0.0",
16
+ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1",
17
+ "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
16
18
  },
17
19
  "publishConfig": {
18
20
  "access": "public"
19
21
  },
20
- "gitHead": "66e51757606b43a89ed02c574ca24517323a2ab9"
22
+ "gitHead": "a6999bdf494a2e9c0381a5881908328bdd22ddae"
21
23
  }
package/src/index.d.ts CHANGED
@@ -10,5 +10,7 @@
10
10
  * governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- export * from './flex';
14
- export * from './grid';
13
+ export {FlexProps, GridProps} from '@react-spectrum/layout';
14
+
15
+ // Backward compatibility.
16
+ export type Slots = {[key: string]: any};
package/src/flex.d.ts DELETED
@@ -1,21 +0,0 @@
1
- /*
2
- * Copyright 2020 Adobe. All rights reserved.
3
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
- * you may not use this file except in compliance with the License. You may obtain a copy
5
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
6
- *
7
- * Unless required by applicable law or agreed to in writing, software distributed under
8
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
- * OF ANY KIND, either express or implied. See the License for the specific language
10
- * governing permissions and limitations under the License.
11
- */
12
-
13
- import {DOMProps, FlexStyleProps} from '@react-types/shared';
14
- import {ReactNode} from 'react';
15
-
16
- export type Slots = {[key: string]: any};
17
-
18
- export interface FlexProps extends DOMProps, FlexStyleProps {
19
- /** Children of the flex container. */
20
- children: ReactNode
21
- }
package/src/grid.d.ts DELETED
@@ -1,19 +0,0 @@
1
- /*
2
- * Copyright 2020 Adobe. All rights reserved.
3
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
- * you may not use this file except in compliance with the License. You may obtain a copy
5
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
6
- *
7
- * Unless required by applicable law or agreed to in writing, software distributed under
8
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
- * OF ANY KIND, either express or implied. See the License for the specific language
10
- * governing permissions and limitations under the License.
11
- */
12
-
13
- import {DOMProps, GridStyleProps} from '@react-types/shared';
14
- import {ReactNode} from 'react';
15
-
16
- export interface GridProps extends DOMProps, GridStyleProps {
17
- /** Children of the grid container. */
18
- children: ReactNode
19
- }