@fluentui/react-divider 9.0.0-rc.9 → 9.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.json +143 -1
- package/CHANGELOG.md +52 -2
- package/MIGRATION.md +20 -48
- package/README.md +25 -9
- package/Spec.md +2 -2
- package/dist/index.d.ts +0 -5
- package/lib/components/Divider/Divider.js.map +1 -1
- package/lib/components/Divider/renderDivider.js.map +1 -1
- package/lib/components/Divider/useDivider.js.map +1 -1
- package/lib/components/Divider/useDividerStyles.js +81 -86
- package/lib/components/Divider/useDividerStyles.js.map +1 -1
- package/lib/index.js +1 -2
- package/lib/index.js.map +1 -1
- package/lib-commonjs/components/Divider/Divider.js.map +1 -1
- package/lib-commonjs/components/Divider/renderDivider.js.map +1 -1
- package/lib-commonjs/components/Divider/useDivider.js.map +1 -1
- package/lib-commonjs/components/Divider/useDividerStyles.js +82 -87
- package/lib-commonjs/components/Divider/useDividerStyles.js.map +1 -1
- package/lib-commonjs/index.js +1 -8
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +6 -8
package/CHANGELOG.json
CHANGED
@@ -2,7 +2,149 @@
|
|
2
2
|
"name": "@fluentui/react-divider",
|
3
3
|
"entries": [
|
4
4
|
{
|
5
|
-
"date": "
|
5
|
+
"date": "Tue, 28 Jun 2022 15:08:46 GMT",
|
6
|
+
"tag": "@fluentui/react-divider_v9.0.0",
|
7
|
+
"version": "9.0.0",
|
8
|
+
"comments": {
|
9
|
+
"prerelease": [
|
10
|
+
{
|
11
|
+
"author": "Humberto.Morimoto@microsoft.com",
|
12
|
+
"package": "@fluentui/react-divider",
|
13
|
+
"commit": "09f58dcbef2306875046261dc0b7821283ccc287",
|
14
|
+
"comment": "chore: Using ::before and ::after instead of :before and :after."
|
15
|
+
},
|
16
|
+
{
|
17
|
+
"author": "lingfangao@hotmail.com",
|
18
|
+
"package": "@fluentui/react-divider",
|
19
|
+
"commit": "e0aabd850b15adf9c151ebd4e332f7c50ad6cfdf",
|
20
|
+
"comment": "Update 9.0.0-rc dependencies to use caret range"
|
21
|
+
},
|
22
|
+
{
|
23
|
+
"author": "lingfangao@hotmail.com",
|
24
|
+
"package": "@fluentui/react-divider",
|
25
|
+
"commit": "675acea49c97f10837ddee9b8c4350ca27750125",
|
26
|
+
"comment": "Bump Griffel dependencies"
|
27
|
+
},
|
28
|
+
{
|
29
|
+
"author": "Humberto.Morimoto@microsoft.com",
|
30
|
+
"package": "@fluentui/react-divider",
|
31
|
+
"commit": "79a3a86436a5194f83cdaf561cd04e24a9a07d78",
|
32
|
+
"comment": "README, spec and migration guide cleanup."
|
33
|
+
}
|
34
|
+
],
|
35
|
+
"none": [
|
36
|
+
{
|
37
|
+
"author": "tristan.watanabe@gmail.com",
|
38
|
+
"package": "@fluentui/react-divider",
|
39
|
+
"commit": "b365ef88f8ccf64c5bd6e3a424f0196328627bb9",
|
40
|
+
"comment": "chore: Move Divider stories to folder with index entry."
|
41
|
+
},
|
42
|
+
{
|
43
|
+
"author": "gcox@microsoft.com",
|
44
|
+
"package": "@fluentui/react-divider",
|
45
|
+
"commit": "ed08fb6d86fc74667a93db7d2cf43286aaa21faf",
|
46
|
+
"comment": "docs: Added upgrade guide for divider."
|
47
|
+
}
|
48
|
+
],
|
49
|
+
"patch": [
|
50
|
+
{
|
51
|
+
"author": "lingfangao@hotmail.com",
|
52
|
+
"package": "@fluentui/react-divider",
|
53
|
+
"commit": "c7b1348bdad7aa883c29bfbc96ef2a32e6ebc7dd",
|
54
|
+
"comment": "feat: Initial 9.0.0 release"
|
55
|
+
},
|
56
|
+
{
|
57
|
+
"author": "beachball",
|
58
|
+
"package": "@fluentui/react-divider",
|
59
|
+
"comment": "Bump @fluentui/react-theme to v9.0.0",
|
60
|
+
"commit": "ba6c5d651559b91c815429c9a9357c4d5a390f3e"
|
61
|
+
},
|
62
|
+
{
|
63
|
+
"author": "beachball",
|
64
|
+
"package": "@fluentui/react-divider",
|
65
|
+
"comment": "Bump @fluentui/react-utilities to v9.0.0",
|
66
|
+
"commit": "ba6c5d651559b91c815429c9a9357c4d5a390f3e"
|
67
|
+
},
|
68
|
+
{
|
69
|
+
"author": "beachball",
|
70
|
+
"package": "@fluentui/react-divider",
|
71
|
+
"comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.9",
|
72
|
+
"commit": "ba6c5d651559b91c815429c9a9357c4d5a390f3e"
|
73
|
+
}
|
74
|
+
]
|
75
|
+
}
|
76
|
+
},
|
77
|
+
{
|
78
|
+
"date": "Thu, 23 Jun 2022 14:25:31 GMT",
|
79
|
+
"tag": "@fluentui/react-divider_v9.0.0-rc.12",
|
80
|
+
"version": "9.0.0-rc.12",
|
81
|
+
"comments": {
|
82
|
+
"prerelease": [
|
83
|
+
{
|
84
|
+
"author": "beachball",
|
85
|
+
"package": "@fluentui/react-divider",
|
86
|
+
"comment": "Bump @fluentui/react-theme to v9.0.0-rc.10",
|
87
|
+
"commit": "b00790b7a0ea1473d8c3cc49c7ca0088002957ed"
|
88
|
+
}
|
89
|
+
]
|
90
|
+
}
|
91
|
+
},
|
92
|
+
{
|
93
|
+
"date": "Tue, 31 May 2022 21:28:39 GMT",
|
94
|
+
"tag": "@fluentui/react-divider_v9.0.0-rc.11",
|
95
|
+
"version": "9.0.0-rc.11",
|
96
|
+
"comments": {
|
97
|
+
"prerelease": [
|
98
|
+
{
|
99
|
+
"author": "olfedias@microsoft.com",
|
100
|
+
"package": "@fluentui/react-divider",
|
101
|
+
"commit": "0a5e9fa77a72eecafdd07034ccdc0b95fd49877c",
|
102
|
+
"comment": "chore: Update Griffel to latest version"
|
103
|
+
},
|
104
|
+
{
|
105
|
+
"author": "beachball",
|
106
|
+
"package": "@fluentui/react-divider",
|
107
|
+
"comment": "Bump @fluentui/react-utilities to v9.0.0-rc.10",
|
108
|
+
"commit": "335ebfcfd47005003901b5e319782bfe9ccd89fd"
|
109
|
+
},
|
110
|
+
{
|
111
|
+
"author": "beachball",
|
112
|
+
"package": "@fluentui/react-divider",
|
113
|
+
"comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.8",
|
114
|
+
"commit": "335ebfcfd47005003901b5e319782bfe9ccd89fd"
|
115
|
+
}
|
116
|
+
]
|
117
|
+
}
|
118
|
+
},
|
119
|
+
{
|
120
|
+
"date": "Mon, 23 May 2022 18:56:44 GMT",
|
121
|
+
"tag": "@fluentui/react-divider_v9.0.0-rc.10",
|
122
|
+
"version": "9.0.0-rc.10",
|
123
|
+
"comments": {
|
124
|
+
"prerelease": [
|
125
|
+
{
|
126
|
+
"author": "esteban.230@hotmail.com",
|
127
|
+
"package": "@fluentui/react-divider",
|
128
|
+
"commit": "5ed22515a7542b432ed694f22606ac3718d501cb",
|
129
|
+
"comment": "Removing <componentName>ClassName exports."
|
130
|
+
},
|
131
|
+
{
|
132
|
+
"author": "beachball",
|
133
|
+
"package": "@fluentui/react-divider",
|
134
|
+
"comment": "Bump @fluentui/react-theme to v9.0.0-rc.9",
|
135
|
+
"commit": "d4f80b17690e962d6a24e68959608d1ffe84aef6"
|
136
|
+
},
|
137
|
+
{
|
138
|
+
"author": "beachball",
|
139
|
+
"package": "@fluentui/react-divider",
|
140
|
+
"comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.7",
|
141
|
+
"commit": "d4f80b17690e962d6a24e68959608d1ffe84aef6"
|
142
|
+
}
|
143
|
+
]
|
144
|
+
}
|
145
|
+
},
|
146
|
+
{
|
147
|
+
"date": "Mon, 23 May 2022 12:14:15 GMT",
|
6
148
|
"tag": "@fluentui/react-divider_v9.0.0-rc.9",
|
7
149
|
"version": "9.0.0-rc.9",
|
8
150
|
"comments": {
|
package/CHANGELOG.md
CHANGED
@@ -1,12 +1,62 @@
|
|
1
1
|
# Change Log - @fluentui/react-divider
|
2
2
|
|
3
|
-
This log was last generated on
|
3
|
+
This log was last generated on Tue, 28 Jun 2022 15:08:46 GMT and should not be manually modified.
|
4
4
|
|
5
5
|
<!-- Start content -->
|
6
6
|
|
7
|
+
## [9.0.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-divider_v9.0.0)
|
8
|
+
|
9
|
+
Tue, 28 Jun 2022 15:08:46 GMT
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-divider_v9.0.0-rc.12..@fluentui/react-divider_v9.0.0)
|
11
|
+
|
12
|
+
### Patches
|
13
|
+
|
14
|
+
- feat: Initial 9.0.0 release ([PR #23733](https://github.com/microsoft/fluentui/pull/23733) by lingfangao@hotmail.com)
|
15
|
+
- Bump @fluentui/react-theme to v9.0.0 ([commit](https://github.com/microsoft/fluentui/commit/ba6c5d651559b91c815429c9a9357c4d5a390f3e) by beachball)
|
16
|
+
- Bump @fluentui/react-utilities to v9.0.0 ([commit](https://github.com/microsoft/fluentui/commit/ba6c5d651559b91c815429c9a9357c4d5a390f3e) by beachball)
|
17
|
+
- Bump @fluentui/react-conformance-griffel to v9.0.0-beta.9 ([commit](https://github.com/microsoft/fluentui/commit/ba6c5d651559b91c815429c9a9357c4d5a390f3e) by beachball)
|
18
|
+
|
19
|
+
### Changes
|
20
|
+
|
21
|
+
- chore: Using ::before and ::after instead of :before and :after. ([PR #23469](https://github.com/microsoft/fluentui/pull/23469) by Humberto.Morimoto@microsoft.com)
|
22
|
+
- Update 9.0.0-rc dependencies to use caret range ([PR #23732](https://github.com/microsoft/fluentui/pull/23732) by lingfangao@hotmail.com)
|
23
|
+
- Bump Griffel dependencies ([PR #23688](https://github.com/microsoft/fluentui/pull/23688) by lingfangao@hotmail.com)
|
24
|
+
- README, spec and migration guide cleanup. ([PR #23439](https://github.com/microsoft/fluentui/pull/23439) by Humberto.Morimoto@microsoft.com)
|
25
|
+
|
26
|
+
## [9.0.0-rc.12](https://github.com/microsoft/fluentui/tree/@fluentui/react-divider_v9.0.0-rc.12)
|
27
|
+
|
28
|
+
Thu, 23 Jun 2022 14:25:31 GMT
|
29
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-divider_v9.0.0-rc.11..@fluentui/react-divider_v9.0.0-rc.12)
|
30
|
+
|
31
|
+
### Changes
|
32
|
+
|
33
|
+
- Bump @fluentui/react-theme to v9.0.0-rc.10 ([PR #23608](https://github.com/microsoft/fluentui/pull/23608) by beachball)
|
34
|
+
|
35
|
+
## [9.0.0-rc.11](https://github.com/microsoft/fluentui/tree/@fluentui/react-divider_v9.0.0-rc.11)
|
36
|
+
|
37
|
+
Tue, 31 May 2022 21:28:39 GMT
|
38
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-divider_v9.0.0-rc.10..@fluentui/react-divider_v9.0.0-rc.11)
|
39
|
+
|
40
|
+
### Changes
|
41
|
+
|
42
|
+
- chore: Update Griffel to latest version ([PR #23275](https://github.com/microsoft/fluentui/pull/23275) by olfedias@microsoft.com)
|
43
|
+
- Bump @fluentui/react-utilities to v9.0.0-rc.10 ([PR #23325](https://github.com/microsoft/fluentui/pull/23325) by beachball)
|
44
|
+
- Bump @fluentui/react-conformance-griffel to v9.0.0-beta.8 ([PR #23325](https://github.com/microsoft/fluentui/pull/23325) by beachball)
|
45
|
+
|
46
|
+
## [9.0.0-rc.10](https://github.com/microsoft/fluentui/tree/@fluentui/react-divider_v9.0.0-rc.10)
|
47
|
+
|
48
|
+
Mon, 23 May 2022 18:56:44 GMT
|
49
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-divider_v9.0.0-rc.9..@fluentui/react-divider_v9.0.0-rc.10)
|
50
|
+
|
51
|
+
### Changes
|
52
|
+
|
53
|
+
- Removing <componentName>ClassName exports. ([PR #23092](https://github.com/microsoft/fluentui/pull/23092) by esteban.230@hotmail.com)
|
54
|
+
- Bump @fluentui/react-theme to v9.0.0-rc.9 ([PR #23146](https://github.com/microsoft/fluentui/pull/23146) by beachball)
|
55
|
+
- Bump @fluentui/react-conformance-griffel to v9.0.0-beta.7 ([PR #23146](https://github.com/microsoft/fluentui/pull/23146) by beachball)
|
56
|
+
|
7
57
|
## [9.0.0-rc.9](https://github.com/microsoft/fluentui/tree/@fluentui/react-divider_v9.0.0-rc.9)
|
8
58
|
|
9
|
-
Mon, 23 May 2022 12:
|
59
|
+
Mon, 23 May 2022 12:14:15 GMT
|
10
60
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-divider_v9.0.0-rc.8..@fluentui/react-divider_v9.0.0-rc.9)
|
11
61
|
|
12
62
|
### Changes
|
package/MIGRATION.md
CHANGED
@@ -1,60 +1,32 @@
|
|
1
1
|
# Divider Migration
|
2
2
|
|
3
|
-
## STATUS: WIP 🚧
|
4
|
-
|
5
|
-
This Migration guide is a work in progress and is not yet ready for use.
|
6
|
-
|
7
3
|
## Migration from v8
|
8
4
|
|
9
|
-
The
|
5
|
+
The v8 `Separator` control supports a very similar set of props to the v9 `Divider` with a few differences that are outlined below:
|
10
6
|
|
11
|
-
|
12
|
-
|
13
|
-
Properties that are still available are the `alignContent` and `vertical` with the same acceptable values that are currently defined.
|
7
|
+
- `styles` => NOT SUPPORTED - use `makeStyles` to create styles and apply them with the `className` prop.
|
8
|
+
- `theme` => NOT SUPPORTED - use `FluentProvider`
|
14
9
|
|
15
10
|
## Migration from v0
|
16
11
|
|
17
|
-
The v0 Divider
|
18
|
-
|
19
|
-
Also, from design discussion, the converged component does not support the `size` component as it is redundant as it can be replicated through using the `borderSize` property and if needed, update the `fontSize` property to match desired style.
|
12
|
+
The v0 `Divider` control supports a very similar set of props to the v9 `Divider` with a few differences that are outlined below:
|
20
13
|
|
21
|
-
|
14
|
+
- `content` => `children` of the `Divider`
|
15
|
+
- `fitted` => NOT SUPPORTED - use style customizations via `className` instead
|
16
|
+
- `important` => NOT SUPPORTED
|
22
17
|
|
23
18
|
## Property mapping
|
24
19
|
|
25
|
-
| v8 `Separator` | v0 `Divider` |
|
26
|
-
| -------------- | ------------ |
|
27
|
-
| alignContent
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
| - |
|
32
|
-
| - |
|
33
|
-
| - |
|
34
|
-
| - |
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
| - | - | appearance |
|
39
|
-
|
40
|
-
## Examples
|
41
|
-
|
42
|
-
```
|
43
|
-
<Divider content="My Content">
|
44
|
-
<Divider>My Content</Divider>
|
45
|
-
```
|
46
|
-
|
47
|
-
_Note:_ The property theme from the separator control has been removed
|
48
|
-
|
49
|
-
```
|
50
|
-
<Separator theme={myTheme}>
|
51
|
-
<Divider /> /* Handled by the theme provider */
|
52
|
-
```
|
53
|
-
|
54
|
-
_Note:_ The property styles from the separator control has been removed and now uses the inherent react style mechanics
|
55
|
-
|
56
|
-
```
|
57
|
-
<Separator styles={myStyles}>
|
58
|
-
<Divider style={{ direction:ltr }}/>
|
59
|
-
/* Handled by the theme provider / Tokens */
|
60
|
-
```
|
20
|
+
| v8 `Separator` | v0 `Divider` | v9 `Divider` |
|
21
|
+
| -------------- | ------------ | -------------- |
|
22
|
+
| `alignContent` | - | `alignContent` |
|
23
|
+
| - | - | `appearance` |
|
24
|
+
| - | `color` | |
|
25
|
+
| `children` | `content` | `children` |
|
26
|
+
| - | `fitted` | |
|
27
|
+
| - | `important` | |
|
28
|
+
| - | - | `inset` |
|
29
|
+
| - | `size` | |
|
30
|
+
| `styles` | - | |
|
31
|
+
| `theme` | - | |
|
32
|
+
| `vertical` | `vertical` | `vertical` |
|
package/README.md
CHANGED
@@ -1,23 +1,39 @@
|
|
1
1
|
# @fluentui/react-divider
|
2
2
|
|
3
|
-
**
|
3
|
+
**Divider components for [Fluent UI](https://aka.ms/fluentui-storybook)**
|
4
4
|
|
5
5
|
The Divider component represents a visual separator, that may contain content. A Divider can be vertical or horizontal.
|
6
6
|
|
7
|
-
## STATUS: WIP 🚧
|
8
|
-
|
9
|
-
These are not production-ready components and **should never be used in product**. This space is useful for testing new components whose APIs might change before final release.
|
10
|
-
|
11
7
|
## Usage
|
12
8
|
|
13
9
|
To import Divider:
|
14
10
|
|
15
11
|
```js
|
16
|
-
import { Divider } from '@fluentui/react-
|
12
|
+
import { Divider } from '@fluentui/react-components';
|
17
13
|
```
|
18
14
|
|
19
|
-
|
15
|
+
### Examples
|
20
16
|
|
21
|
-
```
|
22
|
-
|
17
|
+
```jsx
|
18
|
+
<Divider />
|
19
|
+
<Divider>This is a divider</Divider>
|
20
|
+
<Divider alignContent="center">This is a divider</Divider>
|
21
|
+
<Divider appearance="subtle">This is a divider</Divider>
|
22
|
+
<Divider inset>This is a divider</Divider>
|
23
|
+
<Divider vertical>This is a divider</Divider>
|
23
24
|
```
|
25
|
+
|
26
|
+
See [Fluent UI Storybook](https://aka.ms/fluentui-storybook) for more detailed usage examples.
|
27
|
+
|
28
|
+
Alternatively, run Storybook locally with:
|
29
|
+
|
30
|
+
1. `yarn start`
|
31
|
+
2. Select `react-divider` from the list.
|
32
|
+
|
33
|
+
### Specification
|
34
|
+
|
35
|
+
See [SPEC.md](./SPEC.md).
|
36
|
+
|
37
|
+
### Migration Guide
|
38
|
+
|
39
|
+
If you're upgrading to Fluent UI v9 see [MIGRATION.md](./MIGRATION.md) for guidance on updating to the latest Divider implementation.
|
package/Spec.md
CHANGED
@@ -59,7 +59,7 @@ The `Divider` component has four appearance variants:
|
|
59
59
|
|
60
60
|
## API
|
61
61
|
|
62
|
-
|
62
|
+
See API at [Divider.types.tsx](./src/components/Divider/Divider.types.ts).
|
63
63
|
|
64
64
|
## HTML Structure
|
65
65
|
|
@@ -73,7 +73,7 @@ From [Divider.types.tsx](https://github.com/microsoft/fluentui/blob/master/packa
|
|
73
73
|
|
74
74
|
## Migration
|
75
75
|
|
76
|
-
[See MIGRATION.md](./
|
76
|
+
[See MIGRATION.md](./MIGRATION.md).
|
77
77
|
|
78
78
|
## Behaviors
|
79
79
|
|
package/dist/index.d.ts
CHANGED
@@ -10,11 +10,6 @@ import type { SlotClassNames } from '@fluentui/react-utilities';
|
|
10
10
|
*/
|
11
11
|
export declare const Divider: ForwardRefComponent<DividerProps>;
|
12
12
|
|
13
|
-
/**
|
14
|
-
* @deprecated Use `dividerClassNames.root` instead.
|
15
|
-
*/
|
16
|
-
export declare const dividerClassName = "fui-Divider";
|
17
|
-
|
18
13
|
export declare const dividerClassNames: SlotClassNames<DividerSlots>;
|
19
14
|
|
20
15
|
export declare type DividerProps = ComponentProps<Partial<DividerSlots>> & {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["components/Divider/Divider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,sBAAT,QAAuC,iBAAvC;AACA,SAAS,mBAAT,QAAoC,cAApC;AACA,SAAS,yBAAT,QAA0C,oBAA1C;AAIA;;AAEG;;AACH,OAAO,MAAM,OAAO,gBAAsC,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;
|
1
|
+
{"version":3,"sources":["components/Divider/Divider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,sBAAT,QAAuC,iBAAvC;AACA,SAAS,mBAAT,QAAoC,cAApC;AACA,SAAS,yBAAT,QAA0C,oBAA1C;AAIA;;AAEG;;AACH,OAAO,MAAM,OAAO,gBAAsC,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;EACxF,MAAM,KAAK,GAAG,mBAAmB,CAAC,KAAD,EAAQ,GAAR,CAAjC;EAEA,yBAAyB,CAAC,KAAD,CAAzB;EAEA,OAAO,sBAAsB,CAAC,KAAD,CAA7B;AACD,CANyD,CAAnD;AAQP,OAAO,CAAC,WAAR,GAAsB,SAAtB","sourcesContent":["import * as React from 'react';\nimport { renderDivider_unstable } from './renderDivider';\nimport { useDivider_unstable } from './useDivider';\nimport { useDividerStyles_unstable } from './useDividerStyles';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport type { DividerProps } from './Divider.types';\n\n/**\n * A divider visually segments content into groups.\n */\nexport const Divider: ForwardRefComponent<DividerProps> = React.forwardRef((props, ref) => {\n const state = useDivider_unstable(props, ref);\n\n useDividerStyles_unstable(state);\n\n return renderDivider_unstable(state);\n});\n\nDivider.displayName = 'Divider';\n"],"sourceRoot":"../src/"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["components/Divider/renderDivider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAGA;;AAEG;;AACH,OAAO,MAAM,sBAAsB,GAAI,KAAD,IAAwB;
|
1
|
+
{"version":3,"sources":["components/Divider/renderDivider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAGA;;AAEG;;AACH,OAAO,MAAM,sBAAsB,GAAI,KAAD,IAAwB;EAC5D,MAAM;IAAE,KAAF;IAAS;EAAT,IAAuB,QAAQ,CAAe,KAAf,CAArC;EACA,oBACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;EAAf,CAAX,EACG,SAAS,CAAC,IAAV,CAAe,QAAf,KAA4B,SAA5B,iBACC,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,OAAP,EAAc,EAAA,GAAK,SAAS,CAAC;EAAf,CAAd,EAAuC,SAAS,CAAC,IAAV,CAAe,QAAtD,CAFJ,CADF;AAOD,CATM","sourcesContent":["import * as React from 'react';\nimport { getSlots } from '@fluentui/react-utilities';\nimport { DividerSlots, DividerState } from './Divider.types';\n\n/**\n * Renders a Divider component by passing the slot props (defined in `state`) to the appropriate slots.\n */\nexport const renderDivider_unstable = (state: DividerState) => {\n const { slots, slotProps } = getSlots<DividerSlots>(state);\n return (\n <slots.root {...slotProps.root}>\n {slotProps.root.children !== undefined && (\n <slots.wrapper {...slotProps.wrapper}>{slotProps.root.children}</slots.wrapper>\n )}\n </slots.root>\n );\n};\n"],"sourceRoot":"../src/"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["components/Divider/useDivider.ts"],"names":[],"mappings":"AACA,SAAS,qBAAT,EAAgC,gBAAhC,EAAkD,KAAlD,QAA+D,2BAA/D;AAGA;;;;AAIG;;AACH,OAAO,MAAM,mBAAmB,GAAG,CAAC,KAAD,EAAsB,GAAtB,KAAmE;
|
1
|
+
{"version":3,"sources":["components/Divider/useDivider.ts"],"names":[],"mappings":"AACA,SAAS,qBAAT,EAAgC,gBAAhC,EAAkD,KAAlD,QAA+D,2BAA/D;AAGA;;;;AAIG;;AACH,OAAO,MAAM,mBAAmB,GAAG,CAAC,KAAD,EAAsB,GAAtB,KAAmE;EACpG,MAAM;IAAE,YAAY,GAAG,QAAjB;IAA2B,UAAU,GAAG,SAAxC;IAAmD,KAAK,GAAG,KAA3D;IAAkE,QAAQ,GAAG,KAA7E;IAAoF;EAApF,IAAgG,KAAtG;EACA,MAAM,SAAS,GAAG,KAAK,CAAC,UAAD,CAAvB;EAEA,OAAO;IACL;IACA,YAFK;IAGL,UAHK;IAIL,KAJK;IAKL,QALK;IAOL;IACA,UAAU,EAAE;MACV,IAAI,EAAE,KADI;MAEV,OAAO,EAAE;IAFC,CARP;IAaL,IAAI,EAAE,qBAAqB,CAAC,KAAD,EAAQ,EACjC,GAAG,KAD8B;MAEjC,GAFiC;MAGjC,IAAI,EAAE,WAH2B;MAIjC,oBAAoB,QAAQ,GAAG,UAAH,GAAgB,YAJX;MAKjC,mBAAmB,KAAK,CAAC,QAAN,GAAiB,SAAjB,GAA6B;IALf,CAAR,CAbtB;IAoBL,OAAO,EAAE,gBAAgB,CAAC,OAAD,EAAU;MACjC,QAAQ,EAAE,IADuB;MAEjC,YAAY,EAAE;QACZ,EAAE,EAAE,SADQ;QAEZ,QAAQ,EAAE,KAAK,CAAC;MAFJ;IAFmB,CAAV;EApBpB,CAAP;AA4BD,CAhCM","sourcesContent":["import * as React from 'react';\nimport { getNativeElementProps, resolveShorthand, useId } from '@fluentui/react-utilities';\nimport type { DividerProps, DividerState } from './Divider.types';\n\n/**\n * Returns the props and state required to render the component\n * @param props - User-provided props to the Divider component.\n * @param ref - User-provided ref to be passed to the Divider component.\n */\nexport const useDivider_unstable = (props: DividerProps, ref: React.Ref<HTMLElement>): DividerState => {\n const { alignContent = 'center', appearance = 'default', inset = false, vertical = false, wrapper } = props;\n const dividerId = useId('divider-');\n\n return {\n // Props passed at the top-level\n alignContent,\n appearance,\n inset,\n vertical,\n\n // Slots definition\n components: {\n root: 'div',\n wrapper: 'div',\n },\n\n root: getNativeElementProps('div', {\n ...props,\n ref,\n role: 'separator',\n 'aria-orientation': vertical ? 'vertical' : 'horizontal',\n 'aria-labelledby': props.children ? dividerId : undefined,\n }),\n wrapper: resolveShorthand(wrapper, {\n required: true,\n defaultProps: {\n id: dividerId,\n children: props.children,\n },\n }),\n };\n};\n"],"sourceRoot":"../src/"}
|
@@ -1,10 +1,5 @@
|
|
1
1
|
import { mergeClasses, shorthands, __styles } from '@griffel/react';
|
2
2
|
import { tokens } from '@fluentui/react-theme';
|
3
|
-
/**
|
4
|
-
* @deprecated Use `dividerClassNames.root` instead.
|
5
|
-
*/
|
6
|
-
|
7
|
-
export const dividerClassName = 'fui-Divider';
|
8
3
|
export const dividerClassNames = {
|
9
4
|
root: 'fui-Divider',
|
10
5
|
wrapper: 'fui-Divider__wrapper'
|
@@ -27,121 +22,121 @@ const useBaseStyles = /*#__PURE__*/__styles({
|
|
27
22
|
"Bhrd7zp": "figsok6",
|
28
23
|
"Bg96gwp": "fwrc4pm",
|
29
24
|
"fsow6f": "f17mccla",
|
30
|
-
"
|
31
|
-
"
|
32
|
-
"
|
33
|
-
"
|
34
|
-
"
|
35
|
-
"
|
25
|
+
"Bcvre1j": "fyl8oag",
|
26
|
+
"Br0sdwz": "f16vkdww",
|
27
|
+
"Bn78ew0": "fhsnbul",
|
28
|
+
"li1rpt": "f1gw3sf2",
|
29
|
+
"ap17g6": "f1ly5f7u",
|
30
|
+
"B771hl4": "f1s3tz6t"
|
36
31
|
},
|
37
32
|
"childless": {
|
38
|
-
"
|
39
|
-
"
|
40
|
-
"
|
41
|
-
"
|
33
|
+
"susq4k": "f1kyqvp9",
|
34
|
+
"Bicfajf": ["fzynn9s", "f1z0ukd1"],
|
35
|
+
"jwcpgy": ["fekrn8e", "ftdg338"],
|
36
|
+
"B4rk6o": "fesgyo"
|
42
37
|
},
|
43
38
|
"start": {
|
44
|
-
"
|
39
|
+
"Bsft5z2": "f13zj6fq"
|
45
40
|
},
|
46
41
|
"center": {
|
47
|
-
"
|
48
|
-
"
|
42
|
+
"Ftih45": "f1wl9k8s",
|
43
|
+
"Bsft5z2": "f13zj6fq"
|
49
44
|
},
|
50
45
|
"end": {
|
51
|
-
"
|
46
|
+
"Ftih45": "f1wl9k8s"
|
52
47
|
},
|
53
48
|
"brand": {
|
54
49
|
"sj55zd": "f16muhyy",
|
55
|
-
"
|
56
|
-
"
|
57
|
-
"
|
58
|
-
"
|
59
|
-
"
|
60
|
-
"
|
61
|
-
"
|
62
|
-
"
|
50
|
+
"Bq4z7u6": "fcbuu2a",
|
51
|
+
"Bk5zm6e": ["f1wdw2dr", "f1ttio3w"],
|
52
|
+
"Bqjgrrk": "f1582fpk",
|
53
|
+
"Bm6vgfq": ["f1ttio3w", "f1wdw2dr"],
|
54
|
+
"B0n5ga8": "f1ahrvm8",
|
55
|
+
"s924m2": ["f1cd3wbc", "f17hbk9y"],
|
56
|
+
"B1q35kw": "fvrapl0",
|
57
|
+
"Gp14am": ["f17hbk9y", "f1cd3wbc"]
|
63
58
|
},
|
64
59
|
"default": {
|
65
60
|
"sj55zd": "fkfq4zb",
|
66
|
-
"
|
67
|
-
"
|
68
|
-
"
|
69
|
-
"
|
70
|
-
"
|
71
|
-
"
|
72
|
-
"
|
73
|
-
"
|
61
|
+
"Bq4z7u6": "f1vccso1",
|
62
|
+
"Bk5zm6e": ["f1geml7w", "fjml6kk"],
|
63
|
+
"Bqjgrrk": "f1r7kh1m",
|
64
|
+
"Bm6vgfq": ["fjml6kk", "f1geml7w"],
|
65
|
+
"B0n5ga8": "f16j7guv",
|
66
|
+
"s924m2": ["fx01ahm", "fj1a37q"],
|
67
|
+
"B1q35kw": "fl8d8yv",
|
68
|
+
"Gp14am": ["fj1a37q", "fx01ahm"]
|
74
69
|
},
|
75
70
|
"subtle": {
|
76
71
|
"sj55zd": "fkfq4zb",
|
77
|
-
"
|
78
|
-
"
|
79
|
-
"
|
80
|
-
"
|
81
|
-
"
|
82
|
-
"
|
83
|
-
"
|
84
|
-
"
|
72
|
+
"Bq4z7u6": "f5g06un",
|
73
|
+
"Bk5zm6e": ["f13sxdku", "f1n015lb"],
|
74
|
+
"Bqjgrrk": "f1x6bl8t",
|
75
|
+
"Bm6vgfq": ["f1n015lb", "f13sxdku"],
|
76
|
+
"B0n5ga8": "fvod1wy",
|
77
|
+
"s924m2": ["fwslg65", "flk0e17"],
|
78
|
+
"B1q35kw": "f103fvts",
|
79
|
+
"Gp14am": ["flk0e17", "fwslg65"]
|
85
80
|
},
|
86
81
|
"strong": {
|
87
82
|
"sj55zd": "fkfq4zb",
|
88
|
-
"
|
89
|
-
"
|
90
|
-
"
|
91
|
-
"
|
92
|
-
"
|
93
|
-
"
|
94
|
-
"
|
95
|
-
"
|
83
|
+
"Bq4z7u6": "f10tv6oz",
|
84
|
+
"Bk5zm6e": ["f16xp3sf", "f1seuxxq"],
|
85
|
+
"Bqjgrrk": "fwrmqbx",
|
86
|
+
"Bm6vgfq": ["f1seuxxq", "f16xp3sf"],
|
87
|
+
"B0n5ga8": "ft83z1f",
|
88
|
+
"s924m2": ["f1g4150c", "f192dr6e"],
|
89
|
+
"B1q35kw": "f1qnawh6",
|
90
|
+
"Gp14am": ["f192dr6e", "f1g4150c"]
|
96
91
|
}
|
97
92
|
}, {
|
98
|
-
"d": [".f122n59{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}", ".f1ewtqcl{box-sizing:border-box;}", ".f22iagw{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}", ".f1063pyq{-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;}", ".fqerorx{-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;}", ".f10pi13n{position:relative;}", ".fk6fouc{font-family:var(--fontFamilyBase);}", ".fy9rknc{font-size:var(--fontSizeBase200);}", ".figsok6{font-weight:var(--fontWeightRegular);}", ".fwrc4pm{line-height:var(--lineHeightBase200);}", ".f17mccla{text-align:center;}", ".
|
93
|
+
"d": [".f122n59{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}", ".f1ewtqcl{box-sizing:border-box;}", ".f22iagw{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}", ".f1063pyq{-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;}", ".fqerorx{-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;}", ".f10pi13n{position:relative;}", ".fk6fouc{font-family:var(--fontFamilyBase);}", ".fy9rknc{font-size:var(--fontSizeBase200);}", ".figsok6{font-weight:var(--fontWeightRegular);}", ".fwrc4pm{line-height:var(--lineHeightBase200);}", ".f17mccla{text-align:center;}", ".fyl8oag::before{box-sizing:border-box;}", ".f16vkdww::before{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}", ".fhsnbul::before{-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;}", ".f1gw3sf2::after{box-sizing:border-box;}", ".f1ly5f7u::after{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}", ".f1s3tz6t::after{-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;}", ".f1kyqvp9::before{margin-bottom:0;}", ".fzynn9s::before{margin-right:0;}", ".f1z0ukd1::before{margin-left:0;}", ".fekrn8e::after{margin-left:0;}", ".ftdg338::after{margin-right:0;}", ".fesgyo::after{margin-top:0;}", ".f13zj6fq::after{content:\"\";}", ".f1wl9k8s::before{content:\"\";}", ".f16muhyy{color:var(--colorBrandForeground1);}", ".fcbuu2a::before{border-top-color:var(--colorBrandStroke1);}", ".f1wdw2dr::before{border-right-color:var(--colorBrandStroke1);}", ".f1ttio3w::before{border-left-color:var(--colorBrandStroke1);}", ".f1582fpk::before{border-bottom-color:var(--colorBrandStroke1);}", ".f1ahrvm8::after{border-top-color:var(--colorBrandStroke1);}", ".f1cd3wbc::after{border-right-color:var(--colorBrandStroke1);}", ".f17hbk9y::after{border-left-color:var(--colorBrandStroke1);}", ".fvrapl0::after{border-bottom-color:var(--colorBrandStroke1);}", ".fkfq4zb{color:var(--colorNeutralForeground2);}", ".f1vccso1::before{border-top-color:var(--colorNeutralStroke2);}", ".f1geml7w::before{border-right-color:var(--colorNeutralStroke2);}", ".fjml6kk::before{border-left-color:var(--colorNeutralStroke2);}", ".f1r7kh1m::before{border-bottom-color:var(--colorNeutralStroke2);}", ".f16j7guv::after{border-top-color:var(--colorNeutralStroke2);}", ".fx01ahm::after{border-right-color:var(--colorNeutralStroke2);}", ".fj1a37q::after{border-left-color:var(--colorNeutralStroke2);}", ".fl8d8yv::after{border-bottom-color:var(--colorNeutralStroke2);}", ".f5g06un::before{border-top-color:var(--colorNeutralStroke3);}", ".f13sxdku::before{border-right-color:var(--colorNeutralStroke3);}", ".f1n015lb::before{border-left-color:var(--colorNeutralStroke3);}", ".f1x6bl8t::before{border-bottom-color:var(--colorNeutralStroke3);}", ".fvod1wy::after{border-top-color:var(--colorNeutralStroke3);}", ".fwslg65::after{border-right-color:var(--colorNeutralStroke3);}", ".flk0e17::after{border-left-color:var(--colorNeutralStroke3);}", ".f103fvts::after{border-bottom-color:var(--colorNeutralStroke3);}", ".f10tv6oz::before{border-top-color:var(--colorNeutralStroke1);}", ".f16xp3sf::before{border-right-color:var(--colorNeutralStroke1);}", ".f1seuxxq::before{border-left-color:var(--colorNeutralStroke1);}", ".fwrmqbx::before{border-bottom-color:var(--colorNeutralStroke1);}", ".ft83z1f::after{border-top-color:var(--colorNeutralStroke1);}", ".f1g4150c::after{border-right-color:var(--colorNeutralStroke1);}", ".f192dr6e::after{border-left-color:var(--colorNeutralStroke1);}", ".f1qnawh6::after{border-bottom-color:var(--colorNeutralStroke1);}"]
|
99
94
|
});
|
100
95
|
|
101
96
|
const useHorizontalStyles = /*#__PURE__*/__styles({
|
102
97
|
"base": {
|
103
98
|
"a9b677": "fly5x3f",
|
104
|
-
"
|
105
|
-
"
|
106
|
-
"
|
107
|
-
"
|
108
|
-
"
|
109
|
-
"
|
99
|
+
"Bdkvgpv": "f163fonl",
|
100
|
+
"B0qfbqy": "f51yk4v",
|
101
|
+
"pbipgd": "f13rof3u",
|
102
|
+
"Bm2nyyq": "f8rth92",
|
103
|
+
"xrcqlc": "f6czdpx",
|
104
|
+
"i5u598": "f1iyka9k"
|
110
105
|
},
|
111
106
|
"inset": {
|
112
107
|
"uwmqm3": ["fjlbh76", "f11qrl6u"],
|
113
108
|
"z189sj": ["f11qrl6u", "fjlbh76"]
|
114
109
|
},
|
115
110
|
"start": {
|
116
|
-
"
|
117
|
-
"
|
118
|
-
"
|
119
|
-
"
|
111
|
+
"Ftih45": "f1wl9k8s",
|
112
|
+
"Bicfajf": ["f1ojjlep", "fk1kexq"],
|
113
|
+
"Bxwl2t9": "f1he2m4d",
|
114
|
+
"jwcpgy": ["f12w1bnb", "f1558wlj"]
|
120
115
|
},
|
121
116
|
"center": {
|
122
|
-
"
|
123
|
-
"
|
117
|
+
"Bicfajf": ["f1ojjlep", "fk1kexq"],
|
118
|
+
"jwcpgy": ["f12w1bnb", "f1558wlj"]
|
124
119
|
},
|
125
120
|
"end": {
|
126
|
-
"
|
127
|
-
"
|
128
|
-
"
|
129
|
-
"
|
121
|
+
"Bicfajf": ["f1ojjlep", "fk1kexq"],
|
122
|
+
"Bsft5z2": "f13zj6fq",
|
123
|
+
"jwcpgy": ["f12w1bnb", "f1558wlj"],
|
124
|
+
"Iy66sp": "f1ayce8x"
|
130
125
|
}
|
131
126
|
}, {
|
132
|
-
"d": [".fly5x3f{width:100%;}", ".
|
127
|
+
"d": [".fly5x3f{width:100%;}", ".f163fonl::before{border-top-style:solid;}", ".f51yk4v::before{border-top-width:var(--strokeWidthThin);}", ".f13rof3u::before{min-width:8px;}", ".f8rth92::after{border-top-style:solid;}", ".f6czdpx::after{border-top-width:var(--strokeWidthThin);}", ".f1iyka9k::after{min-width:8px;}", ".fjlbh76{padding-left:12px;}", ".f11qrl6u{padding-right:12px;}", ".f1wl9k8s::before{content:\"\";}", ".f1ojjlep::before{margin-right:12px;}", ".fk1kexq::before{margin-left:12px;}", ".f1he2m4d::before{max-width:8px;}", ".f12w1bnb::after{margin-left:12px;}", ".f1558wlj::after{margin-right:12px;}", ".f13zj6fq::after{content:\"\";}", ".f1ayce8x::after{max-width:8px;}"]
|
133
128
|
});
|
134
129
|
|
135
130
|
const useVerticalStyles = /*#__PURE__*/__styles({
|
136
131
|
"base": {
|
137
132
|
"Beiy3e4": "f1vx9l62",
|
138
133
|
"sshi5w": "f16gbxbe",
|
139
|
-
"
|
140
|
-
"
|
141
|
-
"
|
142
|
-
"
|
143
|
-
"
|
144
|
-
"
|
134
|
+
"m598lv": ["f1yq6w5o", "f1jpmc5p"],
|
135
|
+
"B4f6apu": ["f9sc749", "f1x8pvcy"],
|
136
|
+
"zkzzav": "fhkwbjy",
|
137
|
+
"Barhvk9": ["flthirb", "ftkbnf5"],
|
138
|
+
"Ihftqj": ["f13hvwk3", "f1en4csx"],
|
139
|
+
"Bde111x": "f19onpk6"
|
145
140
|
},
|
146
141
|
"inset": {
|
147
142
|
"B6of3ja": "f1xdg43u",
|
@@ -151,23 +146,23 @@ const useVerticalStyles = /*#__PURE__*/__styles({
|
|
151
146
|
"sshi5w": "f1tjaq3g"
|
152
147
|
},
|
153
148
|
"start": {
|
154
|
-
"
|
155
|
-
"
|
156
|
-
"
|
157
|
-
"
|
149
|
+
"Ftih45": "f1wl9k8s",
|
150
|
+
"susq4k": "fg2pwug",
|
151
|
+
"Bbdr6tz": "fkjtzyi",
|
152
|
+
"B4rk6o": "f8vk40g"
|
158
153
|
},
|
159
154
|
"center": {
|
160
|
-
"
|
161
|
-
"
|
155
|
+
"susq4k": "fg2pwug",
|
156
|
+
"B4rk6o": "f8vk40g"
|
162
157
|
},
|
163
158
|
"end": {
|
164
|
-
"
|
165
|
-
"
|
166
|
-
"
|
167
|
-
"
|
159
|
+
"susq4k": "fg2pwug",
|
160
|
+
"Bsft5z2": "f13zj6fq",
|
161
|
+
"B4rk6o": "f8vk40g",
|
162
|
+
"gn64ia": "fqg5mu5"
|
168
163
|
}
|
169
164
|
}, {
|
170
|
-
"d": [".f1vx9l62{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}", ".f16gbxbe{min-height:20px;}", ".
|
165
|
+
"d": [".f1vx9l62{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}", ".f16gbxbe{min-height:20px;}", ".f1yq6w5o::before{border-right-style:solid;}", ".f1jpmc5p::before{border-left-style:solid;}", ".f9sc749::before{border-right-width:var(--strokeWidthThin);}", ".f1x8pvcy::before{border-left-width:var(--strokeWidthThin);}", ".fhkwbjy::before{min-height:8px;}", ".flthirb::after{border-right-style:solid;}", ".ftkbnf5::after{border-left-style:solid;}", ".f13hvwk3::after{border-right-width:var(--strokeWidthThin);}", ".f1en4csx::after{border-left-width:var(--strokeWidthThin);}", ".f19onpk6::after{min-height:8px;}", ".f1xdg43u{margin-top:12px;}", ".f1jlhsmd{margin-bottom:12px;}", ".f1tjaq3g{min-height:84px;}", ".f1wl9k8s::before{content:\"\";}", ".fg2pwug::before{margin-bottom:12px;}", ".fkjtzyi::before{max-height:8px;}", ".f8vk40g::after{margin-top:12px;}", ".f13zj6fq::after{content:\"\";}", ".fqg5mu5::after{max-height:8px;}"]
|
171
166
|
});
|
172
167
|
|
173
168
|
export const useDividerStyles_unstable = state => {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["components/Divider/useDividerStyles.ts"],"names":[],"mappings":"AAAA,SAAS,YAAT,EAAuB,UAAvB,kBAAqD,gBAArD;AACA,SAAS,MAAT,QAAuB,uBAAvB;AAIA
|
1
|
+
{"version":3,"sources":["components/Divider/useDividerStyles.ts"],"names":[],"mappings":"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","sourcesContent":["import { mergeClasses, shorthands, makeStyles } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nimport { DividerSlots, DividerState } from './Divider.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\n\nexport const dividerClassNames: SlotClassNames<DividerSlots> = {\n root: 'fui-Divider',\n wrapper: 'fui-Divider__wrapper',\n};\n\nconst contentSpacing = '12px';\nconst insetSpacing = '12px';\nconst maxStartEndLength = '8px';\nconst minStartEndLength = '8px;';\n\nconst useBaseStyles = makeStyles({\n // Base styles\n base: {\n alignItems: 'center',\n boxSizing: 'border-box',\n display: 'flex',\n flexDirection: 'row',\n flexGrow: 1,\n position: 'relative',\n\n fontFamily: tokens.fontFamilyBase,\n fontSize: tokens.fontSizeBase200,\n fontWeight: tokens.fontWeightRegular,\n lineHeight: tokens.lineHeightBase200,\n textAlign: 'center',\n\n '::before': {\n boxSizing: 'border-box',\n display: 'flex',\n flexGrow: 1,\n },\n\n '::after': {\n boxSizing: 'border-box',\n display: 'flex',\n flexGrow: 1,\n },\n },\n\n // Childless styles\n childless: {\n '::before': {\n marginBottom: 0,\n marginRight: 0,\n },\n\n '::after': {\n marginLeft: 0,\n marginTop: 0,\n },\n },\n\n // Alignment variations\n start: {\n '::after': {\n content: '\"\"',\n },\n },\n center: {\n '::before': {\n content: '\"\"',\n },\n '::after': {\n content: '\"\"',\n },\n },\n end: {\n '::before': {\n content: '\"\"',\n },\n },\n\n // Appearance variations\n brand: {\n color: tokens.colorBrandForeground1,\n\n '::before': {\n ...shorthands.borderColor(tokens.colorBrandStroke1),\n },\n\n '::after': {\n ...shorthands.borderColor(tokens.colorBrandStroke1),\n },\n },\n default: {\n color: tokens.colorNeutralForeground2,\n\n '::before': {\n ...shorthands.borderColor(tokens.colorNeutralStroke2),\n },\n\n '::after': {\n ...shorthands.borderColor(tokens.colorNeutralStroke2),\n },\n },\n subtle: {\n color: tokens.colorNeutralForeground2,\n\n '::before': {\n ...shorthands.borderColor(tokens.colorNeutralStroke3),\n },\n\n '::after': {\n ...shorthands.borderColor(tokens.colorNeutralStroke3),\n },\n },\n strong: {\n color: tokens.colorNeutralForeground2,\n\n '::before': {\n ...shorthands.borderColor(tokens.colorNeutralStroke1),\n },\n\n '::after': {\n ...shorthands.borderColor(tokens.colorNeutralStroke1),\n },\n },\n});\n\nconst useHorizontalStyles = makeStyles({\n // Base styles\n base: {\n width: '100%',\n\n '::before': {\n borderTopStyle: 'solid',\n borderTopWidth: tokens.strokeWidthThin,\n minWidth: minStartEndLength,\n },\n\n '::after': {\n borderTopStyle: 'solid',\n borderTopWidth: tokens.strokeWidthThin,\n minWidth: minStartEndLength,\n },\n },\n\n // Inset styles\n inset: {\n paddingLeft: insetSpacing,\n paddingRight: insetSpacing,\n },\n\n // Alignment variations\n start: {\n '::before': {\n content: '\"\"',\n marginRight: contentSpacing,\n maxWidth: maxStartEndLength,\n },\n\n '::after': {\n marginLeft: contentSpacing,\n },\n },\n center: {\n '::before': {\n marginRight: contentSpacing,\n },\n '::after': {\n marginLeft: contentSpacing,\n },\n },\n end: {\n '::before': {\n marginRight: contentSpacing,\n },\n '::after': {\n content: '\"\"',\n marginLeft: contentSpacing,\n maxWidth: maxStartEndLength,\n },\n },\n});\n\nconst useVerticalStyles = makeStyles({\n // Base styles\n base: {\n flexDirection: 'column',\n minHeight: '20px',\n\n '::before': {\n borderRightStyle: 'solid',\n borderRightWidth: tokens.strokeWidthThin,\n minHeight: minStartEndLength,\n },\n\n '::after': {\n borderRightStyle: 'solid',\n borderRightWidth: tokens.strokeWidthThin,\n minHeight: minStartEndLength,\n },\n },\n\n // Inset styles\n inset: {\n marginTop: insetSpacing,\n marginBottom: insetSpacing,\n },\n\n // With children styles\n withChildren: {\n minHeight: '84px',\n },\n\n // Alignment variations\n start: {\n '::before': {\n content: '\"\"',\n marginBottom: contentSpacing,\n maxHeight: maxStartEndLength,\n },\n\n '::after': {\n marginTop: contentSpacing,\n },\n },\n center: {\n '::before': {\n marginBottom: contentSpacing,\n },\n '::after': {\n marginTop: contentSpacing,\n },\n },\n end: {\n '::before': {\n marginBottom: contentSpacing,\n },\n '::after': {\n content: '\"\"',\n marginTop: contentSpacing,\n maxHeight: maxStartEndLength,\n },\n },\n});\n\nexport const useDividerStyles_unstable = (state: DividerState): DividerState => {\n const baseStyles = useBaseStyles();\n const horizontalStyles = useHorizontalStyles();\n const verticalStyles = useVerticalStyles();\n\n const { alignContent, appearance, inset, vertical } = state;\n\n state.root.className = mergeClasses(\n dividerClassNames.root,\n\n // Base styles\n baseStyles.base,\n baseStyles[alignContent],\n appearance && baseStyles[appearance],\n\n // Horizontal styles\n !vertical && horizontalStyles.base,\n !vertical && inset && horizontalStyles.inset,\n !vertical && horizontalStyles[alignContent],\n\n // Vertical styles\n vertical && verticalStyles.base,\n vertical && inset && verticalStyles.inset,\n vertical && verticalStyles[alignContent],\n vertical && state.root.children !== undefined && verticalStyles.withChildren,\n\n // Childless styles\n state.root.children === undefined && baseStyles.childless,\n\n // User provided class name\n state.root.className,\n );\n\n if (state.wrapper) {\n state.wrapper.className = mergeClasses(dividerClassNames.wrapper, state.wrapper.className);\n }\n\n return state;\n};\n"],"sourceRoot":"../src/"}
|
package/lib/index.js
CHANGED
@@ -1,3 +1,2 @@
|
|
1
|
-
export { Divider,
|
2
|
-
dividerClassName, dividerClassNames, renderDivider_unstable, useDividerStyles_unstable, useDivider_unstable } from './Divider';
|
1
|
+
export { Divider, dividerClassNames, renderDivider_unstable, useDividerStyles_unstable, useDivider_unstable } from './Divider';
|
3
2
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["index.ts"],"names":[],"mappings":"AAAA,SACE,OADF,EAEE
|
1
|
+
{"version":3,"sources":["index.ts"],"names":[],"mappings":"AAAA,SACE,OADF,EAEE,iBAFF,EAGE,sBAHF,EAIE,yBAJF,EAKE,mBALF,QAMO,WANP","sourcesContent":["export {\n Divider,\n dividerClassNames,\n renderDivider_unstable,\n useDividerStyles_unstable,\n useDivider_unstable,\n} from './Divider';\nexport type { DividerProps, DividerSlots, DividerState } from './Divider';\n"],"sourceRoot":"../src/"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["components/Divider/Divider.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,eAAA,gBAAA,OAAA,CAAA,iBAAA,CAAA;;AACA,MAAA,YAAA,gBAAA,OAAA,CAAA,cAAA,CAAA;;AACA,MAAA,kBAAA,gBAAA,OAAA,CAAA,oBAAA,CAAA;AAIA;;AAEG;;;AACU,OAAA,CAAA,OAAA,gBAA6C,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;
|
1
|
+
{"version":3,"sources":["components/Divider/Divider.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,eAAA,gBAAA,OAAA,CAAA,iBAAA,CAAA;;AACA,MAAA,YAAA,gBAAA,OAAA,CAAA,cAAA,CAAA;;AACA,MAAA,kBAAA,gBAAA,OAAA,CAAA,oBAAA,CAAA;AAIA;;AAEG;;;AACU,OAAA,CAAA,OAAA,gBAA6C,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;EACxF,MAAM,KAAK,GAAG,YAAA,CAAA,mBAAA,CAAoB,KAApB,EAA2B,GAA3B,CAAd;EAEA,kBAAA,CAAA,yBAAA,CAA0B,KAA1B;EAEA,OAAO,eAAA,CAAA,sBAAA,CAAuB,KAAvB,CAAP;AACD,CANyD,CAA7C;AAQb,OAAA,CAAA,OAAA,CAAQ,WAAR,GAAsB,SAAtB","sourcesContent":["import * as React from 'react';\nimport { renderDivider_unstable } from './renderDivider';\nimport { useDivider_unstable } from './useDivider';\nimport { useDividerStyles_unstable } from './useDividerStyles';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport type { DividerProps } from './Divider.types';\n\n/**\n * A divider visually segments content into groups.\n */\nexport const Divider: ForwardRefComponent<DividerProps> = React.forwardRef((props, ref) => {\n const state = useDivider_unstable(props, ref);\n\n useDividerStyles_unstable(state);\n\n return renderDivider_unstable(state);\n});\n\nDivider.displayName = 'Divider';\n"],"sourceRoot":"../src/"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["components/Divider/renderDivider.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;AAGA;;AAEG;;;AACI,MAAM,sBAAsB,GAAI,KAAD,IAAwB;
|
1
|
+
{"version":3,"sources":["components/Divider/renderDivider.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;AAGA;;AAEG;;;AACI,MAAM,sBAAsB,GAAI,KAAD,IAAwB;EAC5D,MAAM;IAAE,KAAF;IAAS;EAAT,IAAuB,iBAAA,CAAA,QAAA,CAAuB,KAAvB,CAA7B;EACA,OACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;EAAf,CAAX,EACG,SAAS,CAAC,IAAV,CAAe,QAAf,KAA4B,SAA5B,IACC,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,OAAP,EAAc,EAAA,GAAK,SAAS,CAAC;EAAf,CAAd,EAAuC,SAAS,CAAC,IAAV,CAAe,QAAtD,CAFJ,CADF;AAOD,CATM;;AAAM,OAAA,CAAA,sBAAA,GAAsB,sBAAtB","sourcesContent":["import * as React from 'react';\nimport { getSlots } from '@fluentui/react-utilities';\nimport { DividerSlots, DividerState } from './Divider.types';\n\n/**\n * Renders a Divider component by passing the slot props (defined in `state`) to the appropriate slots.\n */\nexport const renderDivider_unstable = (state: DividerState) => {\n const { slots, slotProps } = getSlots<DividerSlots>(state);\n return (\n <slots.root {...slotProps.root}>\n {slotProps.root.children !== undefined && (\n <slots.wrapper {...slotProps.wrapper}>{slotProps.root.children}</slots.wrapper>\n )}\n </slots.root>\n );\n};\n"],"sourceRoot":"../src/"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["components/Divider/useDivider.ts"],"names":[],"mappings":";;;;;;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;AAGA;;;;AAIG;;;AACI,MAAM,mBAAmB,GAAG,CAAC,KAAD,EAAsB,GAAtB,KAAmE;
|
1
|
+
{"version":3,"sources":["components/Divider/useDivider.ts"],"names":[],"mappings":";;;;;;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;AAGA;;;;AAIG;;;AACI,MAAM,mBAAmB,GAAG,CAAC,KAAD,EAAsB,GAAtB,KAAmE;EACpG,MAAM;IAAE,YAAY,GAAG,QAAjB;IAA2B,UAAU,GAAG,SAAxC;IAAmD,KAAK,GAAG,KAA3D;IAAkE,QAAQ,GAAG,KAA7E;IAAoF;EAApF,IAAgG,KAAtG;EACA,MAAM,SAAS,GAAG,iBAAA,CAAA,KAAA,CAAM,UAAN,CAAlB;EAEA,OAAO;IACL;IACA,YAFK;IAGL,UAHK;IAIL,KAJK;IAKL,QALK;IAOL;IACA,UAAU,EAAE;MACV,IAAI,EAAE,KADI;MAEV,OAAO,EAAE;IAFC,CARP;IAaL,IAAI,EAAE,iBAAA,CAAA,qBAAA,CAAsB,KAAtB,EAA6B,EACjC,GAAG,KAD8B;MAEjC,GAFiC;MAGjC,IAAI,EAAE,WAH2B;MAIjC,oBAAoB,QAAQ,GAAG,UAAH,GAAgB,YAJX;MAKjC,mBAAmB,KAAK,CAAC,QAAN,GAAiB,SAAjB,GAA6B;IALf,CAA7B,CAbD;IAoBL,OAAO,EAAE,iBAAA,CAAA,gBAAA,CAAiB,OAAjB,EAA0B;MACjC,QAAQ,EAAE,IADuB;MAEjC,YAAY,EAAE;QACZ,EAAE,EAAE,SADQ;QAEZ,QAAQ,EAAE,KAAK,CAAC;MAFJ;IAFmB,CAA1B;EApBJ,CAAP;AA4BD,CAhCM;;AAAM,OAAA,CAAA,mBAAA,GAAmB,mBAAnB","sourcesContent":["import * as React from 'react';\nimport { getNativeElementProps, resolveShorthand, useId } from '@fluentui/react-utilities';\nimport type { DividerProps, DividerState } from './Divider.types';\n\n/**\n * Returns the props and state required to render the component\n * @param props - User-provided props to the Divider component.\n * @param ref - User-provided ref to be passed to the Divider component.\n */\nexport const useDivider_unstable = (props: DividerProps, ref: React.Ref<HTMLElement>): DividerState => {\n const { alignContent = 'center', appearance = 'default', inset = false, vertical = false, wrapper } = props;\n const dividerId = useId('divider-');\n\n return {\n // Props passed at the top-level\n alignContent,\n appearance,\n inset,\n vertical,\n\n // Slots definition\n components: {\n root: 'div',\n wrapper: 'div',\n },\n\n root: getNativeElementProps('div', {\n ...props,\n ref,\n role: 'separator',\n 'aria-orientation': vertical ? 'vertical' : 'horizontal',\n 'aria-labelledby': props.children ? dividerId : undefined,\n }),\n wrapper: resolveShorthand(wrapper, {\n required: true,\n defaultProps: {\n id: dividerId,\n children: props.children,\n },\n }),\n };\n};\n"],"sourceRoot":"../src/"}
|
@@ -3,17 +3,12 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.useDividerStyles_unstable = exports.dividerClassNames =
|
6
|
+
exports.useDividerStyles_unstable = exports.dividerClassNames = void 0;
|
7
7
|
|
8
8
|
const react_1 = /*#__PURE__*/require("@griffel/react");
|
9
9
|
|
10
10
|
const react_theme_1 = /*#__PURE__*/require("@fluentui/react-theme");
|
11
|
-
/**
|
12
|
-
* @deprecated Use `dividerClassNames.root` instead.
|
13
|
-
*/
|
14
11
|
|
15
|
-
|
16
|
-
exports.dividerClassName = 'fui-Divider';
|
17
12
|
exports.dividerClassNames = {
|
18
13
|
root: 'fui-Divider',
|
19
14
|
wrapper: 'fui-Divider__wrapper'
|
@@ -36,121 +31,121 @@ const useBaseStyles = /*#__PURE__*/react_1.__styles({
|
|
36
31
|
"Bhrd7zp": "figsok6",
|
37
32
|
"Bg96gwp": "fwrc4pm",
|
38
33
|
"fsow6f": "f17mccla",
|
39
|
-
"
|
40
|
-
"
|
41
|
-
"
|
42
|
-
"
|
43
|
-
"
|
44
|
-
"
|
34
|
+
"Bcvre1j": "fyl8oag",
|
35
|
+
"Br0sdwz": "f16vkdww",
|
36
|
+
"Bn78ew0": "fhsnbul",
|
37
|
+
"li1rpt": "f1gw3sf2",
|
38
|
+
"ap17g6": "f1ly5f7u",
|
39
|
+
"B771hl4": "f1s3tz6t"
|
45
40
|
},
|
46
41
|
"childless": {
|
47
|
-
"
|
48
|
-
"
|
49
|
-
"
|
50
|
-
"
|
42
|
+
"susq4k": "f1kyqvp9",
|
43
|
+
"Bicfajf": ["fzynn9s", "f1z0ukd1"],
|
44
|
+
"jwcpgy": ["fekrn8e", "ftdg338"],
|
45
|
+
"B4rk6o": "fesgyo"
|
51
46
|
},
|
52
47
|
"start": {
|
53
|
-
"
|
48
|
+
"Bsft5z2": "f13zj6fq"
|
54
49
|
},
|
55
50
|
"center": {
|
56
|
-
"
|
57
|
-
"
|
51
|
+
"Ftih45": "f1wl9k8s",
|
52
|
+
"Bsft5z2": "f13zj6fq"
|
58
53
|
},
|
59
54
|
"end": {
|
60
|
-
"
|
55
|
+
"Ftih45": "f1wl9k8s"
|
61
56
|
},
|
62
57
|
"brand": {
|
63
58
|
"sj55zd": "f16muhyy",
|
64
|
-
"
|
65
|
-
"
|
66
|
-
"
|
67
|
-
"
|
68
|
-
"
|
69
|
-
"
|
70
|
-
"
|
71
|
-
"
|
59
|
+
"Bq4z7u6": "fcbuu2a",
|
60
|
+
"Bk5zm6e": ["f1wdw2dr", "f1ttio3w"],
|
61
|
+
"Bqjgrrk": "f1582fpk",
|
62
|
+
"Bm6vgfq": ["f1ttio3w", "f1wdw2dr"],
|
63
|
+
"B0n5ga8": "f1ahrvm8",
|
64
|
+
"s924m2": ["f1cd3wbc", "f17hbk9y"],
|
65
|
+
"B1q35kw": "fvrapl0",
|
66
|
+
"Gp14am": ["f17hbk9y", "f1cd3wbc"]
|
72
67
|
},
|
73
68
|
"default": {
|
74
69
|
"sj55zd": "fkfq4zb",
|
75
|
-
"
|
76
|
-
"
|
77
|
-
"
|
78
|
-
"
|
79
|
-
"
|
80
|
-
"
|
81
|
-
"
|
82
|
-
"
|
70
|
+
"Bq4z7u6": "f1vccso1",
|
71
|
+
"Bk5zm6e": ["f1geml7w", "fjml6kk"],
|
72
|
+
"Bqjgrrk": "f1r7kh1m",
|
73
|
+
"Bm6vgfq": ["fjml6kk", "f1geml7w"],
|
74
|
+
"B0n5ga8": "f16j7guv",
|
75
|
+
"s924m2": ["fx01ahm", "fj1a37q"],
|
76
|
+
"B1q35kw": "fl8d8yv",
|
77
|
+
"Gp14am": ["fj1a37q", "fx01ahm"]
|
83
78
|
},
|
84
79
|
"subtle": {
|
85
80
|
"sj55zd": "fkfq4zb",
|
86
|
-
"
|
87
|
-
"
|
88
|
-
"
|
89
|
-
"
|
90
|
-
"
|
91
|
-
"
|
92
|
-
"
|
93
|
-
"
|
81
|
+
"Bq4z7u6": "f5g06un",
|
82
|
+
"Bk5zm6e": ["f13sxdku", "f1n015lb"],
|
83
|
+
"Bqjgrrk": "f1x6bl8t",
|
84
|
+
"Bm6vgfq": ["f1n015lb", "f13sxdku"],
|
85
|
+
"B0n5ga8": "fvod1wy",
|
86
|
+
"s924m2": ["fwslg65", "flk0e17"],
|
87
|
+
"B1q35kw": "f103fvts",
|
88
|
+
"Gp14am": ["flk0e17", "fwslg65"]
|
94
89
|
},
|
95
90
|
"strong": {
|
96
91
|
"sj55zd": "fkfq4zb",
|
97
|
-
"
|
98
|
-
"
|
99
|
-
"
|
100
|
-
"
|
101
|
-
"
|
102
|
-
"
|
103
|
-
"
|
104
|
-
"
|
92
|
+
"Bq4z7u6": "f10tv6oz",
|
93
|
+
"Bk5zm6e": ["f16xp3sf", "f1seuxxq"],
|
94
|
+
"Bqjgrrk": "fwrmqbx",
|
95
|
+
"Bm6vgfq": ["f1seuxxq", "f16xp3sf"],
|
96
|
+
"B0n5ga8": "ft83z1f",
|
97
|
+
"s924m2": ["f1g4150c", "f192dr6e"],
|
98
|
+
"B1q35kw": "f1qnawh6",
|
99
|
+
"Gp14am": ["f192dr6e", "f1g4150c"]
|
105
100
|
}
|
106
101
|
}, {
|
107
|
-
"d": [".f122n59{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}", ".f1ewtqcl{box-sizing:border-box;}", ".f22iagw{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}", ".f1063pyq{-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;}", ".fqerorx{-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;}", ".f10pi13n{position:relative;}", ".fk6fouc{font-family:var(--fontFamilyBase);}", ".fy9rknc{font-size:var(--fontSizeBase200);}", ".figsok6{font-weight:var(--fontWeightRegular);}", ".fwrc4pm{line-height:var(--lineHeightBase200);}", ".f17mccla{text-align:center;}", ".
|
102
|
+
"d": [".f122n59{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}", ".f1ewtqcl{box-sizing:border-box;}", ".f22iagw{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}", ".f1063pyq{-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;}", ".fqerorx{-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;}", ".f10pi13n{position:relative;}", ".fk6fouc{font-family:var(--fontFamilyBase);}", ".fy9rknc{font-size:var(--fontSizeBase200);}", ".figsok6{font-weight:var(--fontWeightRegular);}", ".fwrc4pm{line-height:var(--lineHeightBase200);}", ".f17mccla{text-align:center;}", ".fyl8oag::before{box-sizing:border-box;}", ".f16vkdww::before{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}", ".fhsnbul::before{-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;}", ".f1gw3sf2::after{box-sizing:border-box;}", ".f1ly5f7u::after{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}", ".f1s3tz6t::after{-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;}", ".f1kyqvp9::before{margin-bottom:0;}", ".fzynn9s::before{margin-right:0;}", ".f1z0ukd1::before{margin-left:0;}", ".fekrn8e::after{margin-left:0;}", ".ftdg338::after{margin-right:0;}", ".fesgyo::after{margin-top:0;}", ".f13zj6fq::after{content:\"\";}", ".f1wl9k8s::before{content:\"\";}", ".f16muhyy{color:var(--colorBrandForeground1);}", ".fcbuu2a::before{border-top-color:var(--colorBrandStroke1);}", ".f1wdw2dr::before{border-right-color:var(--colorBrandStroke1);}", ".f1ttio3w::before{border-left-color:var(--colorBrandStroke1);}", ".f1582fpk::before{border-bottom-color:var(--colorBrandStroke1);}", ".f1ahrvm8::after{border-top-color:var(--colorBrandStroke1);}", ".f1cd3wbc::after{border-right-color:var(--colorBrandStroke1);}", ".f17hbk9y::after{border-left-color:var(--colorBrandStroke1);}", ".fvrapl0::after{border-bottom-color:var(--colorBrandStroke1);}", ".fkfq4zb{color:var(--colorNeutralForeground2);}", ".f1vccso1::before{border-top-color:var(--colorNeutralStroke2);}", ".f1geml7w::before{border-right-color:var(--colorNeutralStroke2);}", ".fjml6kk::before{border-left-color:var(--colorNeutralStroke2);}", ".f1r7kh1m::before{border-bottom-color:var(--colorNeutralStroke2);}", ".f16j7guv::after{border-top-color:var(--colorNeutralStroke2);}", ".fx01ahm::after{border-right-color:var(--colorNeutralStroke2);}", ".fj1a37q::after{border-left-color:var(--colorNeutralStroke2);}", ".fl8d8yv::after{border-bottom-color:var(--colorNeutralStroke2);}", ".f5g06un::before{border-top-color:var(--colorNeutralStroke3);}", ".f13sxdku::before{border-right-color:var(--colorNeutralStroke3);}", ".f1n015lb::before{border-left-color:var(--colorNeutralStroke3);}", ".f1x6bl8t::before{border-bottom-color:var(--colorNeutralStroke3);}", ".fvod1wy::after{border-top-color:var(--colorNeutralStroke3);}", ".fwslg65::after{border-right-color:var(--colorNeutralStroke3);}", ".flk0e17::after{border-left-color:var(--colorNeutralStroke3);}", ".f103fvts::after{border-bottom-color:var(--colorNeutralStroke3);}", ".f10tv6oz::before{border-top-color:var(--colorNeutralStroke1);}", ".f16xp3sf::before{border-right-color:var(--colorNeutralStroke1);}", ".f1seuxxq::before{border-left-color:var(--colorNeutralStroke1);}", ".fwrmqbx::before{border-bottom-color:var(--colorNeutralStroke1);}", ".ft83z1f::after{border-top-color:var(--colorNeutralStroke1);}", ".f1g4150c::after{border-right-color:var(--colorNeutralStroke1);}", ".f192dr6e::after{border-left-color:var(--colorNeutralStroke1);}", ".f1qnawh6::after{border-bottom-color:var(--colorNeutralStroke1);}"]
|
108
103
|
});
|
109
104
|
|
110
105
|
const useHorizontalStyles = /*#__PURE__*/react_1.__styles({
|
111
106
|
"base": {
|
112
107
|
"a9b677": "fly5x3f",
|
113
|
-
"
|
114
|
-
"
|
115
|
-
"
|
116
|
-
"
|
117
|
-
"
|
118
|
-
"
|
108
|
+
"Bdkvgpv": "f163fonl",
|
109
|
+
"B0qfbqy": "f51yk4v",
|
110
|
+
"pbipgd": "f13rof3u",
|
111
|
+
"Bm2nyyq": "f8rth92",
|
112
|
+
"xrcqlc": "f6czdpx",
|
113
|
+
"i5u598": "f1iyka9k"
|
119
114
|
},
|
120
115
|
"inset": {
|
121
116
|
"uwmqm3": ["fjlbh76", "f11qrl6u"],
|
122
117
|
"z189sj": ["f11qrl6u", "fjlbh76"]
|
123
118
|
},
|
124
119
|
"start": {
|
125
|
-
"
|
126
|
-
"
|
127
|
-
"
|
128
|
-
"
|
120
|
+
"Ftih45": "f1wl9k8s",
|
121
|
+
"Bicfajf": ["f1ojjlep", "fk1kexq"],
|
122
|
+
"Bxwl2t9": "f1he2m4d",
|
123
|
+
"jwcpgy": ["f12w1bnb", "f1558wlj"]
|
129
124
|
},
|
130
125
|
"center": {
|
131
|
-
"
|
132
|
-
"
|
126
|
+
"Bicfajf": ["f1ojjlep", "fk1kexq"],
|
127
|
+
"jwcpgy": ["f12w1bnb", "f1558wlj"]
|
133
128
|
},
|
134
129
|
"end": {
|
135
|
-
"
|
136
|
-
"
|
137
|
-
"
|
138
|
-
"
|
130
|
+
"Bicfajf": ["f1ojjlep", "fk1kexq"],
|
131
|
+
"Bsft5z2": "f13zj6fq",
|
132
|
+
"jwcpgy": ["f12w1bnb", "f1558wlj"],
|
133
|
+
"Iy66sp": "f1ayce8x"
|
139
134
|
}
|
140
135
|
}, {
|
141
|
-
"d": [".fly5x3f{width:100%;}", ".
|
136
|
+
"d": [".fly5x3f{width:100%;}", ".f163fonl::before{border-top-style:solid;}", ".f51yk4v::before{border-top-width:var(--strokeWidthThin);}", ".f13rof3u::before{min-width:8px;}", ".f8rth92::after{border-top-style:solid;}", ".f6czdpx::after{border-top-width:var(--strokeWidthThin);}", ".f1iyka9k::after{min-width:8px;}", ".fjlbh76{padding-left:12px;}", ".f11qrl6u{padding-right:12px;}", ".f1wl9k8s::before{content:\"\";}", ".f1ojjlep::before{margin-right:12px;}", ".fk1kexq::before{margin-left:12px;}", ".f1he2m4d::before{max-width:8px;}", ".f12w1bnb::after{margin-left:12px;}", ".f1558wlj::after{margin-right:12px;}", ".f13zj6fq::after{content:\"\";}", ".f1ayce8x::after{max-width:8px;}"]
|
142
137
|
});
|
143
138
|
|
144
139
|
const useVerticalStyles = /*#__PURE__*/react_1.__styles({
|
145
140
|
"base": {
|
146
141
|
"Beiy3e4": "f1vx9l62",
|
147
142
|
"sshi5w": "f16gbxbe",
|
148
|
-
"
|
149
|
-
"
|
150
|
-
"
|
151
|
-
"
|
152
|
-
"
|
153
|
-
"
|
143
|
+
"m598lv": ["f1yq6w5o", "f1jpmc5p"],
|
144
|
+
"B4f6apu": ["f9sc749", "f1x8pvcy"],
|
145
|
+
"zkzzav": "fhkwbjy",
|
146
|
+
"Barhvk9": ["flthirb", "ftkbnf5"],
|
147
|
+
"Ihftqj": ["f13hvwk3", "f1en4csx"],
|
148
|
+
"Bde111x": "f19onpk6"
|
154
149
|
},
|
155
150
|
"inset": {
|
156
151
|
"B6of3ja": "f1xdg43u",
|
@@ -160,23 +155,23 @@ const useVerticalStyles = /*#__PURE__*/react_1.__styles({
|
|
160
155
|
"sshi5w": "f1tjaq3g"
|
161
156
|
},
|
162
157
|
"start": {
|
163
|
-
"
|
164
|
-
"
|
165
|
-
"
|
166
|
-
"
|
158
|
+
"Ftih45": "f1wl9k8s",
|
159
|
+
"susq4k": "fg2pwug",
|
160
|
+
"Bbdr6tz": "fkjtzyi",
|
161
|
+
"B4rk6o": "f8vk40g"
|
167
162
|
},
|
168
163
|
"center": {
|
169
|
-
"
|
170
|
-
"
|
164
|
+
"susq4k": "fg2pwug",
|
165
|
+
"B4rk6o": "f8vk40g"
|
171
166
|
},
|
172
167
|
"end": {
|
173
|
-
"
|
174
|
-
"
|
175
|
-
"
|
176
|
-
"
|
168
|
+
"susq4k": "fg2pwug",
|
169
|
+
"Bsft5z2": "f13zj6fq",
|
170
|
+
"B4rk6o": "f8vk40g",
|
171
|
+
"gn64ia": "fqg5mu5"
|
177
172
|
}
|
178
173
|
}, {
|
179
|
-
"d": [".f1vx9l62{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}", ".f16gbxbe{min-height:20px;}", ".
|
174
|
+
"d": [".f1vx9l62{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}", ".f16gbxbe{min-height:20px;}", ".f1yq6w5o::before{border-right-style:solid;}", ".f1jpmc5p::before{border-left-style:solid;}", ".f9sc749::before{border-right-width:var(--strokeWidthThin);}", ".f1x8pvcy::before{border-left-width:var(--strokeWidthThin);}", ".fhkwbjy::before{min-height:8px;}", ".flthirb::after{border-right-style:solid;}", ".ftkbnf5::after{border-left-style:solid;}", ".f13hvwk3::after{border-right-width:var(--strokeWidthThin);}", ".f1en4csx::after{border-left-width:var(--strokeWidthThin);}", ".f19onpk6::after{min-height:8px;}", ".f1xdg43u{margin-top:12px;}", ".f1jlhsmd{margin-bottom:12px;}", ".f1tjaq3g{min-height:84px;}", ".f1wl9k8s::before{content:\"\";}", ".fg2pwug::before{margin-bottom:12px;}", ".fkjtzyi::before{max-height:8px;}", ".f8vk40g::after{margin-top:12px;}", ".f13zj6fq::after{content:\"\";}", ".fqg5mu5::after{max-height:8px;}"]
|
180
175
|
});
|
181
176
|
|
182
177
|
const useDividerStyles_unstable = state => {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["components/Divider/useDividerStyles.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AACA,MAAA,aAAA,gBAAA,OAAA,CAAA,uBAAA,CAAA
|
1
|
+
{"version":3,"sources":["components/Divider/useDividerStyles.ts"],"names":[],"mappings":"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","sourcesContent":["import { mergeClasses, shorthands, makeStyles } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nimport { DividerSlots, DividerState } from './Divider.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\n\nexport const dividerClassNames: SlotClassNames<DividerSlots> = {\n root: 'fui-Divider',\n wrapper: 'fui-Divider__wrapper',\n};\n\nconst contentSpacing = '12px';\nconst insetSpacing = '12px';\nconst maxStartEndLength = '8px';\nconst minStartEndLength = '8px;';\n\nconst useBaseStyles = makeStyles({\n // Base styles\n base: {\n alignItems: 'center',\n boxSizing: 'border-box',\n display: 'flex',\n flexDirection: 'row',\n flexGrow: 1,\n position: 'relative',\n\n fontFamily: tokens.fontFamilyBase,\n fontSize: tokens.fontSizeBase200,\n fontWeight: tokens.fontWeightRegular,\n lineHeight: tokens.lineHeightBase200,\n textAlign: 'center',\n\n '::before': {\n boxSizing: 'border-box',\n display: 'flex',\n flexGrow: 1,\n },\n\n '::after': {\n boxSizing: 'border-box',\n display: 'flex',\n flexGrow: 1,\n },\n },\n\n // Childless styles\n childless: {\n '::before': {\n marginBottom: 0,\n marginRight: 0,\n },\n\n '::after': {\n marginLeft: 0,\n marginTop: 0,\n },\n },\n\n // Alignment variations\n start: {\n '::after': {\n content: '\"\"',\n },\n },\n center: {\n '::before': {\n content: '\"\"',\n },\n '::after': {\n content: '\"\"',\n },\n },\n end: {\n '::before': {\n content: '\"\"',\n },\n },\n\n // Appearance variations\n brand: {\n color: tokens.colorBrandForeground1,\n\n '::before': {\n ...shorthands.borderColor(tokens.colorBrandStroke1),\n },\n\n '::after': {\n ...shorthands.borderColor(tokens.colorBrandStroke1),\n },\n },\n default: {\n color: tokens.colorNeutralForeground2,\n\n '::before': {\n ...shorthands.borderColor(tokens.colorNeutralStroke2),\n },\n\n '::after': {\n ...shorthands.borderColor(tokens.colorNeutralStroke2),\n },\n },\n subtle: {\n color: tokens.colorNeutralForeground2,\n\n '::before': {\n ...shorthands.borderColor(tokens.colorNeutralStroke3),\n },\n\n '::after': {\n ...shorthands.borderColor(tokens.colorNeutralStroke3),\n },\n },\n strong: {\n color: tokens.colorNeutralForeground2,\n\n '::before': {\n ...shorthands.borderColor(tokens.colorNeutralStroke1),\n },\n\n '::after': {\n ...shorthands.borderColor(tokens.colorNeutralStroke1),\n },\n },\n});\n\nconst useHorizontalStyles = makeStyles({\n // Base styles\n base: {\n width: '100%',\n\n '::before': {\n borderTopStyle: 'solid',\n borderTopWidth: tokens.strokeWidthThin,\n minWidth: minStartEndLength,\n },\n\n '::after': {\n borderTopStyle: 'solid',\n borderTopWidth: tokens.strokeWidthThin,\n minWidth: minStartEndLength,\n },\n },\n\n // Inset styles\n inset: {\n paddingLeft: insetSpacing,\n paddingRight: insetSpacing,\n },\n\n // Alignment variations\n start: {\n '::before': {\n content: '\"\"',\n marginRight: contentSpacing,\n maxWidth: maxStartEndLength,\n },\n\n '::after': {\n marginLeft: contentSpacing,\n },\n },\n center: {\n '::before': {\n marginRight: contentSpacing,\n },\n '::after': {\n marginLeft: contentSpacing,\n },\n },\n end: {\n '::before': {\n marginRight: contentSpacing,\n },\n '::after': {\n content: '\"\"',\n marginLeft: contentSpacing,\n maxWidth: maxStartEndLength,\n },\n },\n});\n\nconst useVerticalStyles = makeStyles({\n // Base styles\n base: {\n flexDirection: 'column',\n minHeight: '20px',\n\n '::before': {\n borderRightStyle: 'solid',\n borderRightWidth: tokens.strokeWidthThin,\n minHeight: minStartEndLength,\n },\n\n '::after': {\n borderRightStyle: 'solid',\n borderRightWidth: tokens.strokeWidthThin,\n minHeight: minStartEndLength,\n },\n },\n\n // Inset styles\n inset: {\n marginTop: insetSpacing,\n marginBottom: insetSpacing,\n },\n\n // With children styles\n withChildren: {\n minHeight: '84px',\n },\n\n // Alignment variations\n start: {\n '::before': {\n content: '\"\"',\n marginBottom: contentSpacing,\n maxHeight: maxStartEndLength,\n },\n\n '::after': {\n marginTop: contentSpacing,\n },\n },\n center: {\n '::before': {\n marginBottom: contentSpacing,\n },\n '::after': {\n marginTop: contentSpacing,\n },\n },\n end: {\n '::before': {\n marginBottom: contentSpacing,\n },\n '::after': {\n content: '\"\"',\n marginTop: contentSpacing,\n maxHeight: maxStartEndLength,\n },\n },\n});\n\nexport const useDividerStyles_unstable = (state: DividerState): DividerState => {\n const baseStyles = useBaseStyles();\n const horizontalStyles = useHorizontalStyles();\n const verticalStyles = useVerticalStyles();\n\n const { alignContent, appearance, inset, vertical } = state;\n\n state.root.className = mergeClasses(\n dividerClassNames.root,\n\n // Base styles\n baseStyles.base,\n baseStyles[alignContent],\n appearance && baseStyles[appearance],\n\n // Horizontal styles\n !vertical && horizontalStyles.base,\n !vertical && inset && horizontalStyles.inset,\n !vertical && horizontalStyles[alignContent],\n\n // Vertical styles\n vertical && verticalStyles.base,\n vertical && inset && verticalStyles.inset,\n vertical && verticalStyles[alignContent],\n vertical && state.root.children !== undefined && verticalStyles.withChildren,\n\n // Childless styles\n state.root.children === undefined && baseStyles.childless,\n\n // User provided class name\n state.root.className,\n );\n\n if (state.wrapper) {\n state.wrapper.className = mergeClasses(dividerClassNames.wrapper, state.wrapper.className);\n }\n\n return state;\n};\n"],"sourceRoot":"../src/"}
|
package/lib-commonjs/index.js
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.useDivider_unstable = exports.useDividerStyles_unstable = exports.renderDivider_unstable = exports.dividerClassNames = exports.
|
6
|
+
exports.useDivider_unstable = exports.useDividerStyles_unstable = exports.renderDivider_unstable = exports.dividerClassNames = exports.Divider = void 0;
|
7
7
|
|
8
8
|
var Divider_1 = /*#__PURE__*/require("./Divider");
|
9
9
|
|
@@ -12,13 +12,6 @@ Object.defineProperty(exports, "Divider", {
|
|
12
12
|
get: function () {
|
13
13
|
return Divider_1.Divider;
|
14
14
|
}
|
15
|
-
}); // eslint-disable-next-line deprecation/deprecation
|
16
|
-
|
17
|
-
Object.defineProperty(exports, "dividerClassName", {
|
18
|
-
enumerable: true,
|
19
|
-
get: function () {
|
20
|
-
return Divider_1.dividerClassName;
|
21
|
-
}
|
22
15
|
});
|
23
16
|
Object.defineProperty(exports, "dividerClassNames", {
|
24
17
|
enumerable: true,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["index.ts"],"names":[],"mappings":";;;;;;;AAAA,IAAA,SAAA,gBAAA,OAAA,CAAA,WAAA,CAAA;;AACE,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,SAAA,EAAA;
|
1
|
+
{"version":3,"sources":["index.ts"],"names":[],"mappings":";;;;;;;AAAA,IAAA,SAAA,gBAAA,OAAA,CAAA,WAAA,CAAA;;AACE,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,SAAA,EAAA;EAAA,UAAA,EAAA,IAAA;EAAA,GAAA,EAAA,YAAA;IAAA,OAAA,SAAA,CAAA,OAAA;EAAO;AAAP,CAAA;AACA,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,mBAAA,EAAA;EAAA,UAAA,EAAA,IAAA;EAAA,GAAA,EAAA,YAAA;IAAA,OAAA,SAAA,CAAA,iBAAA;EAAiB;AAAjB,CAAA;AACA,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,wBAAA,EAAA;EAAA,UAAA,EAAA,IAAA;EAAA,GAAA,EAAA,YAAA;IAAA,OAAA,SAAA,CAAA,sBAAA;EAAsB;AAAtB,CAAA;AACA,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,2BAAA,EAAA;EAAA,UAAA,EAAA,IAAA;EAAA,GAAA,EAAA,YAAA;IAAA,OAAA,SAAA,CAAA,yBAAA;EAAyB;AAAzB,CAAA;AACA,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,qBAAA,EAAA;EAAA,UAAA,EAAA,IAAA;EAAA,GAAA,EAAA,YAAA;IAAA,OAAA,SAAA,CAAA,mBAAA;EAAmB;AAAnB,CAAA","sourcesContent":["export {\n Divider,\n dividerClassNames,\n renderDivider_unstable,\n useDividerStyles_unstable,\n useDivider_unstable,\n} from './Divider';\nexport type { DividerProps, DividerSlots, DividerState } from './Divider';\n"],"sourceRoot":"../src/"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@fluentui/react-divider",
|
3
|
-
"version": "9.0.0
|
3
|
+
"version": "9.0.0",
|
4
4
|
"description": "Fluent UI component to visually separate content.",
|
5
5
|
"main": "lib-commonjs/index.js",
|
6
6
|
"module": "lib/index.js",
|
@@ -28,13 +28,13 @@
|
|
28
28
|
"devDependencies": {
|
29
29
|
"@fluentui/eslint-plugin": "*",
|
30
30
|
"@fluentui/react-conformance": "*",
|
31
|
-
"@fluentui/react-conformance-griffel": "9.0.0-beta.
|
31
|
+
"@fluentui/react-conformance-griffel": "9.0.0-beta.9",
|
32
32
|
"@fluentui/scripts": "^1.0.0"
|
33
33
|
},
|
34
34
|
"dependencies": {
|
35
|
-
"@griffel/react": "1.0
|
36
|
-
"@fluentui/react-theme": "9.0.0
|
37
|
-
"@fluentui/react-utilities": "9.0.0
|
35
|
+
"@griffel/react": "1.2.0",
|
36
|
+
"@fluentui/react-theme": "^9.0.0",
|
37
|
+
"@fluentui/react-utilities": "^9.0.0",
|
38
38
|
"tslib": "^2.1.0"
|
39
39
|
},
|
40
40
|
"peerDependencies": {
|
@@ -45,9 +45,7 @@
|
|
45
45
|
},
|
46
46
|
"beachball": {
|
47
47
|
"disallowedChangeTypes": [
|
48
|
-
"major"
|
49
|
-
"minor",
|
50
|
-
"patch"
|
48
|
+
"major"
|
51
49
|
]
|
52
50
|
},
|
53
51
|
"exports": {
|