Skip to content

Commit 13696a9

Browse files
reidbarberdannify
andauthored
Move StaticField to new package for release (#3443)
* add new StaticField package * remove staticfield from label package * update Label import Co-authored-by: Danni <[email protected]>
1 parent ed49f7e commit 13696a9

File tree

10 files changed

+85
-3
lines changed

10 files changed

+85
-3
lines changed

packages/@react-spectrum/label/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
},
3333
"dependencies": {
3434
"@babel/runtime": "^7.6.2",
35-
"@internationalized/date": "^3.0.1",
3635
"@react-aria/i18n": "^3.5.1",
3736
"@react-aria/label": "^3.4.0",
3837
"@react-aria/utils": "^3.13.2",

packages/@react-spectrum/label/src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,3 @@
1515
export {Field} from './Field';
1616
export {Label} from './Label';
1717
export {HelpText} from './HelpText';
18-
export {StaticField} from './StaticField';
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# @react-spectrum/staticfield
2+
3+
This package is part of [react-spectrum](https://github.com/adobe/react-spectrum). See the repo for more details.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/*
2+
* Copyright 2022 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+
export * from './src';
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{
2+
"name": "@react-spectrum/staticfield",
3+
"version": "3.0.0-alpha.1",
4+
"private": true,
5+
"description": "Spectrum UI components in React",
6+
"license": "Apache-2.0",
7+
"main": "dist/main.js",
8+
"module": "dist/module.js",
9+
"types": "dist/types.d.ts",
10+
"source": "src/index.ts",
11+
"files": [
12+
"dist",
13+
"src"
14+
],
15+
"sideEffects": [
16+
"*.css"
17+
],
18+
"targets": {
19+
"main": {
20+
"includeNodeModules": [
21+
"@adobe/spectrum-css-temp"
22+
]
23+
},
24+
"module": {
25+
"includeNodeModules": [
26+
"@adobe/spectrum-css-temp"
27+
]
28+
}
29+
},
30+
"repository": {
31+
"type": "git",
32+
"url": "https://github.com/adobe/react-spectrum"
33+
},
34+
"dependencies": {
35+
"@babel/runtime": "^7.6.2",
36+
"@internationalized/date": "^3.0.1",
37+
"@react-aria/i18n": "^3.5.1",
38+
"@react-aria/utils": "^3.0.0",
39+
"@react-spectrum/label": "^3.7.0",
40+
"@react-spectrum/utils": "^3.0.0",
41+
"@react-types/shared": "^3.0.0"
42+
},
43+
"devDependencies": {
44+
"@adobe/spectrum-css-temp": "3.0.0-alpha.1"
45+
},
46+
"peerDependencies": {
47+
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0",
48+
"@react-spectrum/provider": "^3.0.0"
49+
},
50+
"publishConfig": {
51+
"access": "public"
52+
}
53+
}

packages/@react-spectrum/label/src/StaticField.tsx renamed to packages/@react-spectrum/staticfield/src/StaticField.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import type {AriaLabelingProps, DOMProps, RangeValue, SpectrumLabelableProps, St
1414
import {CalendarDate, CalendarDateTime, getLocalTimeZone, Time, toCalendarDateTime, today, ZonedDateTime} from '@internationalized/date';
1515
import {classNames} from '@react-spectrum/utils';
1616
import {filterDOMProps} from '@react-aria/utils';
17-
import {Label} from './Label';
17+
import {Label} from '@react-spectrum/label';
1818
import labelStyles from '@adobe/spectrum-css-temp/components/fieldlabel/vars.css';
1919
import React, {RefObject} from 'react';
2020
import {useDateFormatter, useListFormatter, useNumberFormatter} from '@react-aria/i18n';
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/*
2+
* Copyright 2022 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+
/// <reference types="css-module-types" />
14+
15+
export * from './StaticField';

0 commit comments

Comments
 (0)