@fluentui/react-calendar-compat 0.0.0-nightly-20231018-0416.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.
package/CHANGELOG.json ADDED
@@ -0,0 +1,68 @@
1
+ {
2
+ "name": "@fluentui/react-calendar-compat",
3
+ "entries": [
4
+ {
5
+ "date": "Wed, 18 Oct 2023 04:23:46 GMT",
6
+ "tag": "@fluentui/react-calendar-compat_v0.0.0-nightly-20231018-0416.1",
7
+ "version": "0.0.0-nightly-20231018-0416.1",
8
+ "comments": {
9
+ "prerelease": [
10
+ {
11
+ "author": "fluentui-internal@service.microsoft.com",
12
+ "package": "@fluentui/react-calendar-compat",
13
+ "commit": "not available",
14
+ "comment": "Release nightly v9"
15
+ },
16
+ {
17
+ "author": "beachball",
18
+ "package": "@fluentui/react-calendar-compat",
19
+ "comment": "Bump @fluentui/keyboard-keys to v0.0.0-nightly-20231018-0416.1",
20
+ "commit": "9181479ae9b10ee27c07e163c1bed50c126a0152"
21
+ },
22
+ {
23
+ "author": "beachball",
24
+ "package": "@fluentui/react-calendar-compat",
25
+ "comment": "Bump @fluentui/react-jsx-runtime to v0.0.0-nightly-20231018-0416.1",
26
+ "commit": "9181479ae9b10ee27c07e163c1bed50c126a0152"
27
+ },
28
+ {
29
+ "author": "beachball",
30
+ "package": "@fluentui/react-calendar-compat",
31
+ "comment": "Bump @fluentui/react-shared-contexts to v0.0.0-nightly-20231018-0416.1",
32
+ "commit": "9181479ae9b10ee27c07e163c1bed50c126a0152"
33
+ },
34
+ {
35
+ "author": "beachball",
36
+ "package": "@fluentui/react-calendar-compat",
37
+ "comment": "Bump @fluentui/react-tabster to v0.0.0-nightly-20231018-0416.1",
38
+ "commit": "9181479ae9b10ee27c07e163c1bed50c126a0152"
39
+ },
40
+ {
41
+ "author": "beachball",
42
+ "package": "@fluentui/react-calendar-compat",
43
+ "comment": "Bump @fluentui/react-theme to v0.0.0-nightly-20231018-0416.1",
44
+ "commit": "9181479ae9b10ee27c07e163c1bed50c126a0152"
45
+ },
46
+ {
47
+ "author": "beachball",
48
+ "package": "@fluentui/react-calendar-compat",
49
+ "comment": "Bump @fluentui/react-utilities to v0.0.0-nightly-20231018-0416.1",
50
+ "commit": "9181479ae9b10ee27c07e163c1bed50c126a0152"
51
+ },
52
+ {
53
+ "author": "beachball",
54
+ "package": "@fluentui/react-calendar-compat",
55
+ "comment": "Bump @fluentui/react-conformance to v0.0.0-nightly-20231018-0416.1",
56
+ "commit": "9181479ae9b10ee27c07e163c1bed50c126a0152"
57
+ },
58
+ {
59
+ "author": "beachball",
60
+ "package": "@fluentui/react-calendar-compat",
61
+ "comment": "Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20231018-0416.1",
62
+ "commit": "9181479ae9b10ee27c07e163c1bed50c126a0152"
63
+ }
64
+ ]
65
+ }
66
+ }
67
+ ]
68
+ }
package/CHANGELOG.md ADDED
@@ -0,0 +1,21 @@
1
+ # Change Log - @fluentui/react-calendar-compat
2
+
3
+ This log was last generated on Wed, 18 Oct 2023 04:23:46 GMT and should not be manually modified.
4
+
5
+ <!-- Start content -->
6
+
7
+ ## [0.0.0-nightly-20231018-0416.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-calendar-compat_v0.0.0-nightly-20231018-0416.1)
8
+
9
+ Wed, 18 Oct 2023 04:23:46 GMT
10
+
11
+ ### Changes
12
+
13
+ - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/not available) by fluentui-internal@service.microsoft.com)
14
+ - Bump @fluentui/keyboard-keys to v0.0.0-nightly-20231018-0416.1 ([commit](https://github.com/microsoft/fluentui/commit/9181479ae9b10ee27c07e163c1bed50c126a0152) by beachball)
15
+ - Bump @fluentui/react-jsx-runtime to v0.0.0-nightly-20231018-0416.1 ([commit](https://github.com/microsoft/fluentui/commit/9181479ae9b10ee27c07e163c1bed50c126a0152) by beachball)
16
+ - Bump @fluentui/react-shared-contexts to v0.0.0-nightly-20231018-0416.1 ([commit](https://github.com/microsoft/fluentui/commit/9181479ae9b10ee27c07e163c1bed50c126a0152) by beachball)
17
+ - Bump @fluentui/react-tabster to v0.0.0-nightly-20231018-0416.1 ([commit](https://github.com/microsoft/fluentui/commit/9181479ae9b10ee27c07e163c1bed50c126a0152) by beachball)
18
+ - Bump @fluentui/react-theme to v0.0.0-nightly-20231018-0416.1 ([commit](https://github.com/microsoft/fluentui/commit/9181479ae9b10ee27c07e163c1bed50c126a0152) by beachball)
19
+ - Bump @fluentui/react-utilities to v0.0.0-nightly-20231018-0416.1 ([commit](https://github.com/microsoft/fluentui/commit/9181479ae9b10ee27c07e163c1bed50c126a0152) by beachball)
20
+ - Bump @fluentui/react-conformance to v0.0.0-nightly-20231018-0416.1 ([commit](https://github.com/microsoft/fluentui/commit/9181479ae9b10ee27c07e163c1bed50c126a0152) by beachball)
21
+ - Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20231018-0416.1 ([commit](https://github.com/microsoft/fluentui/commit/9181479ae9b10ee27c07e163c1bed50c126a0152) by beachball)
package/LICENSE ADDED
@@ -0,0 +1,15 @@
1
+ @fluentui/react-calendar-compat
2
+
3
+ Copyright (c) Microsoft Corporation
4
+
5
+ All rights reserved.
6
+
7
+ MIT License
8
+
9
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED _AS IS_, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
14
+
15
+ Note: Usage of the fonts and icons referenced in Fluent UI React is subject to the terms listed at https://aka.ms/fluentui-assets-license
package/README.md ADDED
@@ -0,0 +1,46 @@
1
+ # @fluentui/react-calendar-compat
2
+
3
+ **React Calendar component for [Fluent UI React](https://react.fluentui.dev/)**
4
+
5
+ The calendar control lets people select and view a single date or a range of dates in their calendar. It’s made up of 3 separate views: the month view, year view, and decade view.
6
+
7
+ ## Usage
8
+
9
+ To import Calendar:
10
+
11
+ ```js
12
+ import { Calendar } from '@fluentui/react-calendar-compat';
13
+ ```
14
+
15
+ ### Examples
16
+
17
+ ```jsx
18
+ <Calendar />
19
+ ```
20
+
21
+ Alternatively, run Storybook locally with:
22
+
23
+ ```sh
24
+ yarn workspace @fluentui/react-calendar-compat start
25
+ ```
26
+
27
+ # Compat components
28
+
29
+ ## What makes a compat component?
30
+
31
+ A compat component is a component taken from v8 and partially updated with the v9 toolset while keeping its original functionality and most of the original API surface. The most noticeable change being the removal of all v8 dependencies and using only v9 dependencies. While this is a good first step, this is not the final v9 component. We are working on a fully fleshed v9 replacement that will follow all v9 patterns and conventions.
32
+
33
+ ## How publishing the package will be handled
34
+
35
+ Compat components are not added in the `@fluentui/react-components` package suite. Instead, these components should be imported from their respective package as shown above. In contrast with components that live in `@fluentui/react-components`, compat components are to be released as `0.x.1` and there won't be an unstable release (`beta/alpha`) before this release. This is due to the way we will handle versioning for changes, allowing for breaking changes when necessary.
36
+
37
+ ### Versioning for changes
38
+
39
+ We will take a similar approach as v0 where we will follow this pattern:
40
+
41
+ - `breaking change (major)`: Since this is a compat component, we will allow breaking changes if absolutely necessary. To accommodate for this, we will denote those changes as a minor version in semver, i.e. `0.(change will be reflected here).x`.
42
+ - `minor and patch`: These changes will be reflected in the patch version in semver as `0.x.(change will be reflected here)`.
43
+
44
+ ## Calendar compat Slots API special case
45
+
46
+ Due to time constraints, Calendar compat is a special case for compat components. We are not moving the API to our slots API. Calendar is extracted from DatePicker compat and moved to this package as is.
package/package.json ADDED
@@ -0,0 +1,59 @@
1
+ {
2
+ "name": "@fluentui/react-calendar-compat",
3
+ "version": "0.0.0-nightly-20231018-0416.1",
4
+ "description": "Calendar compat component for Fluent UI v9",
5
+ "main": "lib-commonjs/index.js",
6
+ "module": "lib/index.js",
7
+ "typings": "./dist/index.d.ts",
8
+ "sideEffects": false,
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "https://github.com/microsoft/fluentui"
12
+ },
13
+ "license": "MIT",
14
+ "scripts": {
15
+ "build": "just-scripts build",
16
+ "clean": "just-scripts clean",
17
+ "generate-api": "just-scripts generate-api",
18
+ "lint": "just-scripts lint",
19
+ "start": "yarn storybook",
20
+ "storybook": "start-storybook",
21
+ "test": "jest --passWithNoTests",
22
+ "test-ssr": "test-ssr \"./stories/**/*.stories.tsx\"",
23
+ "type-check": "tsc -b tsconfig.json"
24
+ },
25
+ "devDependencies": {
26
+ "@fluentui/eslint-plugin": "*",
27
+ "@fluentui/react-conformance": "0.0.0-nightly-20231018-0416.1",
28
+ "@fluentui/react-conformance-griffel": "0.0.0-nightly-20231018-0416.1",
29
+ "@fluentui/scripts-api-extractor": "*",
30
+ "@fluentui/scripts-tasks": "*"
31
+ },
32
+ "dependencies": {
33
+ "@fluentui/keyboard-keys": "0.0.0-nightly-20231018-0416.1",
34
+ "@fluentui/react-icons": "^2.0.217",
35
+ "@fluentui/react-jsx-runtime": "0.0.0-nightly-20231018-0416.1",
36
+ "@fluentui/react-shared-contexts": "0.0.0-nightly-20231018-0416.1",
37
+ "@fluentui/react-tabster": "0.0.0-nightly-20231018-0416.1",
38
+ "@fluentui/react-theme": "0.0.0-nightly-20231018-0416.1",
39
+ "@fluentui/react-utilities": "0.0.0-nightly-20231018-0416.1",
40
+ "@griffel/react": "^1.5.14",
41
+ "@swc/helpers": "^0.5.1"
42
+ },
43
+ "peerDependencies": {
44
+ "@types/react": ">=16.8.0 <19.0.0",
45
+ "@types/react-dom": ">=16.8.0 <19.0.0",
46
+ "react": ">=16.8.0 <19.0.0",
47
+ "react-dom": ">=16.8.0 <19.0.0"
48
+ },
49
+ "exports": {
50
+ ".": {
51
+ "types": "./dist/index.d.ts",
52
+ "node": "./lib-commonjs/index.js",
53
+ "import": "./lib/index.js",
54
+ "require": "./lib-commonjs/index.js"
55
+ },
56
+ "./package.json": "./package.json"
57
+ },
58
+ "beachball": {}
59
+ }