@fluentui/react-link 9.75.0-experimental.css-modules.20261031-810ab07afb.0 → 9.75.1-experimental.positioning-engine.20261103-19efe125d1.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 +10 -10
- package/README.md +0 -11
- package/package.json +9 -12
- package/lib/components/Link/Link.module.css +0 -124
- package/lib/components/Link/useLinkStyles.styles.css.js +0 -9
- package/lib/components/Link/useLinkStyles.styles.css.js.map +0 -1
- package/lib/components/Link/useLinkStyles.styles.raw.css.js +0 -9
- package/lib/components/Link/useLinkStyles.styles.raw.css.js.map +0 -1
- package/lib-commonjs/components/Link/Link.module.css +0 -124
- package/lib-commonjs/components/Link/useLinkStyles.styles.css.cjs +0 -28
- package/lib-commonjs/components/Link/useLinkStyles.styles.css.cjs.map +0 -1
- package/lib-commonjs/components/Link/useLinkStyles.styles.raw.css.cjs +0 -28
- package/lib-commonjs/components/Link/useLinkStyles.styles.raw.css.cjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
# Change Log - @fluentui/react-link
|
|
2
2
|
|
|
3
|
-
<!-- This log was last generated on
|
|
3
|
+
<!-- This log was last generated on Tue, 03 Nov 2026 14:18:27 GMT and should not be manually modified. -->
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
-
## [9.75.
|
|
7
|
+
## [9.75.1-experimental.positioning-engine.20261103-19efe125d1.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-link_v9.75.1-experimental.positioning-engine.20261103-19efe125d1.0)
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Tue, 03 Nov 2026 14:18:27 GMT
|
|
10
10
|
|
|
11
11
|
### Changes
|
|
12
12
|
|
|
13
|
-
- Release 9.75.
|
|
14
|
-
- Bump @fluentui/keyboard-keys to v9.75.
|
|
15
|
-
- Bump @fluentui/react-jsx-runtime to v9.75.
|
|
16
|
-
- Bump @fluentui/react-shared-contexts to v9.75.
|
|
17
|
-
- Bump @fluentui/react-tabster to v9.75.
|
|
18
|
-
- Bump @fluentui/react-theme to v9.75.
|
|
19
|
-
- Bump @fluentui/react-utilities to v9.75.
|
|
13
|
+
- Release 9.75.1-experimental.positioning-engine.20261103-19efe125d1 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by 257645319+office-ogx-auth-helper[bot]@users.noreply.github.com)
|
|
14
|
+
- Bump @fluentui/keyboard-keys to v9.75.1-experimental.positioning-engine.20261103-19efe125d1.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
15
|
+
- Bump @fluentui/react-jsx-runtime to v9.75.1-experimental.positioning-engine.20261103-19efe125d1.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
16
|
+
- Bump @fluentui/react-shared-contexts to v9.75.1-experimental.positioning-engine.20261103-19efe125d1.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
17
|
+
- Bump @fluentui/react-tabster to v9.75.1-experimental.positioning-engine.20261103-19efe125d1.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
18
|
+
- Bump @fluentui/react-theme to v9.75.1-experimental.positioning-engine.20261103-19efe125d1.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
19
|
+
- Bump @fluentui/react-utilities to v9.75.1-experimental.positioning-engine.20261103-19efe125d1.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
20
20
|
|
|
21
21
|
## [9.8.6](https://github.com/microsoft/fluentui/tree/@fluentui/react-link_v9.8.6)
|
|
22
22
|
|
package/README.md
CHANGED
|
@@ -37,14 +37,3 @@ See [SPEC.md](./SPEC.md).
|
|
|
37
37
|
### Migration Guide
|
|
38
38
|
|
|
39
39
|
If you're upgrading to Fluent UI v9 see [MIGRATION.md](./MIGRATION.md) for guidance on updating to the latest Link implementation.
|
|
40
|
-
|
|
41
|
-
## Opt-in CSS Modules styles
|
|
42
|
-
|
|
43
|
-
The `use*Styles.styles.css` modules beside the existing Griffel hooks provide opt-in,
|
|
44
|
-
layered CSS alternatives with the same exports. Configure the bundler to replace
|
|
45
|
-
`.styles` with `.styles.css.ts` for source imports and `.styles.js` with
|
|
46
|
-
`.styles.css.js` for built imports. Load CSS Modules as default class-name maps and
|
|
47
|
-
retain the package CSS assets. Default component imports still use Griffel.
|
|
48
|
-
Composed components require their own style alternatives; this does not remove
|
|
49
|
-
all reachable Griffel dependencies. Browser, forced-colors, RTL, and visual-regression
|
|
50
|
-
parity must be validated before switching defaults.
|
package/package.json
CHANGED
|
@@ -1,28 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui/react-link",
|
|
3
|
-
"version": "9.75.
|
|
3
|
+
"version": "9.75.1-experimental.positioning-engine.20261103-19efe125d1.0",
|
|
4
4
|
"description": "Fluent UI React Link component",
|
|
5
5
|
"main": "lib-commonjs/index.cjs",
|
|
6
6
|
"module": "lib/index.js",
|
|
7
7
|
"typings": "./dist/index.d.ts",
|
|
8
|
-
"sideEffects":
|
|
9
|
-
"**/*.css"
|
|
10
|
-
],
|
|
8
|
+
"sideEffects": false,
|
|
11
9
|
"repository": {
|
|
12
10
|
"type": "git",
|
|
13
11
|
"url": "https://github.com/microsoft/fluentui"
|
|
14
12
|
},
|
|
15
13
|
"license": "MIT",
|
|
16
14
|
"dependencies": {
|
|
17
|
-
"@fluentui/keyboard-keys": "9.75.
|
|
18
|
-
"@fluentui/react-jsx-runtime": "9.75.
|
|
19
|
-
"@fluentui/react-shared-contexts": "9.75.
|
|
20
|
-
"@fluentui/react-tabster": "9.75.
|
|
21
|
-
"@fluentui/react-theme": "9.75.
|
|
22
|
-
"@fluentui/react-utilities": "9.75.
|
|
15
|
+
"@fluentui/keyboard-keys": "9.75.1-experimental.positioning-engine.20261103-19efe125d1.0",
|
|
16
|
+
"@fluentui/react-jsx-runtime": "9.75.1-experimental.positioning-engine.20261103-19efe125d1.0",
|
|
17
|
+
"@fluentui/react-shared-contexts": "9.75.1-experimental.positioning-engine.20261103-19efe125d1.0",
|
|
18
|
+
"@fluentui/react-tabster": "9.75.1-experimental.positioning-engine.20261103-19efe125d1.0",
|
|
19
|
+
"@fluentui/react-theme": "9.75.1-experimental.positioning-engine.20261103-19efe125d1.0",
|
|
20
|
+
"@fluentui/react-utilities": "9.75.1-experimental.positioning-engine.20261103-19efe125d1.0",
|
|
23
21
|
"@griffel/react": "^1.5.32",
|
|
24
|
-
"@swc/helpers": "^0.5.1"
|
|
25
|
-
"clsx": "^2.1.1"
|
|
22
|
+
"@swc/helpers": "^0.5.1"
|
|
26
23
|
},
|
|
27
24
|
"peerDependencies": {
|
|
28
25
|
"@types/react": ">=16.14.0 <20.0.0",
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
@layer fluentui {
|
|
2
|
-
.root {
|
|
3
|
-
background-color: transparent;
|
|
4
|
-
box-sizing: border-box;
|
|
5
|
-
color: var(--colorBrandForegroundLink);
|
|
6
|
-
cursor: pointer;
|
|
7
|
-
display: inline;
|
|
8
|
-
font-family: var(--fontFamilyBase);
|
|
9
|
-
font-size: var(--fontSizeBase300);
|
|
10
|
-
font-weight: var(--fontWeightRegular);
|
|
11
|
-
margin: 0;
|
|
12
|
-
padding: 0;
|
|
13
|
-
overflow: inherit;
|
|
14
|
-
text-align: left;
|
|
15
|
-
&:dir(rtl) {
|
|
16
|
-
text-align: right;
|
|
17
|
-
}
|
|
18
|
-
text-decoration-line: none;
|
|
19
|
-
text-decoration-thickness: var(--strokeWidthThin);
|
|
20
|
-
text-overflow: inherit;
|
|
21
|
-
user-select: text;
|
|
22
|
-
&:focus-visible {
|
|
23
|
-
outline-style: none;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
&:hover {
|
|
27
|
-
text-decoration-line: underline;
|
|
28
|
-
color: var(--colorBrandForegroundLinkHover);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
&:active {
|
|
32
|
-
text-decoration-line: underline;
|
|
33
|
-
color: var(--colorBrandForegroundLinkPressed);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.root:where(.button) {
|
|
38
|
-
border-top-style: none;
|
|
39
|
-
border-inline-end-style: none;
|
|
40
|
-
border-bottom-style: none;
|
|
41
|
-
border-inline-start-style: none;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.root:where(.href) {
|
|
45
|
-
font-size: inherit;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.root:where(.subtle) {
|
|
49
|
-
color: var(--colorNeutralForeground2Link);
|
|
50
|
-
&:hover {
|
|
51
|
-
text-decoration-line: underline;
|
|
52
|
-
color: var(--colorNeutralForeground2LinkHover);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
&:active {
|
|
56
|
-
text-decoration-line: underline;
|
|
57
|
-
color: var(--colorNeutralForeground2LinkPressed);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.root:where(.inverted) {
|
|
62
|
-
color: var(--colorBrandForegroundInverted);
|
|
63
|
-
&:hover {
|
|
64
|
-
color: var(--colorBrandForegroundInverted);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
&:active {
|
|
68
|
-
color: var(--colorBrandForegroundInverted);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.root:where(.brand) {
|
|
73
|
-
color: var(--colorNeutralForegroundInvertedLink);
|
|
74
|
-
&:hover {
|
|
75
|
-
color: var(--colorNeutralForegroundInvertedLinkHover);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
&:active {
|
|
79
|
-
color: var(--colorNeutralForegroundInvertedLinkPressed);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.root:where(.inline) {
|
|
84
|
-
text-decoration-line: underline;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.root:where(.disabled) {
|
|
88
|
-
text-decoration-line: none;
|
|
89
|
-
color: var(--colorNeutralForegroundDisabled);
|
|
90
|
-
cursor: not-allowed;
|
|
91
|
-
&:hover {
|
|
92
|
-
text-decoration-line: none;
|
|
93
|
-
color: var(--colorNeutralForegroundDisabled);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
&:active {
|
|
97
|
-
text-decoration-line: none;
|
|
98
|
-
color: var(--colorNeutralForegroundDisabled);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
@media (forced-colors: active) {
|
|
102
|
-
color: GrayText;
|
|
103
|
-
&:hover {
|
|
104
|
-
color: GrayText;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
&:active {
|
|
108
|
-
color: GrayText;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.root {
|
|
114
|
-
&[data-fui-focus-visible] {
|
|
115
|
-
text-decoration-color: var(--colorStrokeFocus2);
|
|
116
|
-
text-decoration-line: underline;
|
|
117
|
-
text-decoration-style: double;
|
|
118
|
-
outline-style: none;
|
|
119
|
-
}
|
|
120
|
-
&:where(.disabled)[data-fui-focus-visible] {
|
|
121
|
-
text-decoration-line: none;
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { clsx } from "clsx";
|
|
2
|
-
import styles from "./Link.module.css";
|
|
3
|
-
export const linkClassNames = {
|
|
4
|
-
root: 'fui-Link'
|
|
5
|
-
};
|
|
6
|
-
export const useLinkStyles_unstable = (state)=>{
|
|
7
|
-
state.root.className = clsx(linkClassNames.root, styles.root, state.root.as === 'a' && state.root.href && styles.href, state.root.as === 'button' && styles.button, styles[state.appearance], state.backgroundAppearance && styles[state.backgroundAppearance], state.inline && styles.inline, state.disabled && styles.disabled, state.root.className);
|
|
8
|
-
return state;
|
|
9
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/Link/useLinkStyles.styles.css.ts"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { LinkSlots, LinkState } from './Link.types';\nimport styles from './Link.module.css';\n\nexport const linkClassNames: SlotClassNames<LinkSlots> = {\n root: 'fui-Link',\n};\n\nexport const useLinkStyles_unstable = (state: LinkState): LinkState => {\n state.root.className = clsx(\n linkClassNames.root,\n styles.root,\n state.root.as === 'a' && state.root.href && styles.href,\n state.root.as === 'button' && styles.button,\n styles[state.appearance],\n state.backgroundAppearance && styles[state.backgroundAppearance],\n state.inline && styles.inline,\n state.disabled && styles.disabled,\n state.root.className,\n );\n\n return state;\n};\n"],"names":["clsx","styles","linkClassNames","root","useLinkStyles_unstable","state","className","as","href","button","appearance","backgroundAppearance","inline","disabled"],"mappings":"AAAA,SAASA,IAAI,QAAQ,OAAO;AAG5B,OAAOC,YAAY,oBAAoB;AAEvC,OAAO,MAAMC,iBAA4C;IACvDC,MAAM;AACR,EAAE;AAEF,OAAO,MAAMC,yBAAyB,CAACC;IACrCA,MAAMF,IAAI,CAACG,SAAS,GAAGN,KACrBE,eAAeC,IAAI,EACnBF,OAAOE,IAAI,EACXE,MAAMF,IAAI,CAACI,EAAE,KAAK,OAAOF,MAAMF,IAAI,CAACK,IAAI,IAAIP,OAAOO,IAAI,EACvDH,MAAMF,IAAI,CAACI,EAAE,KAAK,YAAYN,OAAOQ,MAAM,EAC3CR,MAAM,CAACI,MAAMK,UAAU,CAAC,EACxBL,MAAMM,oBAAoB,IAAIV,MAAM,CAACI,MAAMM,oBAAoB,CAAC,EAChEN,MAAMO,MAAM,IAAIX,OAAOW,MAAM,EAC7BP,MAAMQ,QAAQ,IAAIZ,OAAOY,QAAQ,EACjCR,MAAMF,IAAI,CAACG,SAAS;IAGtB,OAAOD;AACT,EAAE"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { clsx } from "clsx";
|
|
2
|
-
import styles from "./Link.module.css";
|
|
3
|
-
export const linkClassNames = {
|
|
4
|
-
root: 'fui-Link'
|
|
5
|
-
};
|
|
6
|
-
export const useLinkStyles_unstable = (state)=>{
|
|
7
|
-
state.root.className = clsx(linkClassNames.root, styles.root, state.root.as === 'a' && state.root.href && styles.href, state.root.as === 'button' && styles.button, styles[state.appearance], state.backgroundAppearance && styles[state.backgroundAppearance], state.inline && styles.inline, state.disabled && styles.disabled, state.root.className);
|
|
8
|
-
return state;
|
|
9
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/Link/useLinkStyles.styles.css.ts"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { LinkSlots, LinkState } from './Link.types';\nimport styles from './Link.module.css';\n\nexport const linkClassNames: SlotClassNames<LinkSlots> = {\n root: 'fui-Link',\n};\n\nexport const useLinkStyles_unstable = (state: LinkState): LinkState => {\n state.root.className = clsx(\n linkClassNames.root,\n styles.root,\n state.root.as === 'a' && state.root.href && styles.href,\n state.root.as === 'button' && styles.button,\n styles[state.appearance],\n state.backgroundAppearance && styles[state.backgroundAppearance],\n state.inline && styles.inline,\n state.disabled && styles.disabled,\n state.root.className,\n );\n\n return state;\n};\n"],"names":["clsx","styles","linkClassNames","root","useLinkStyles_unstable","state","className","as","href","button","appearance","backgroundAppearance","inline","disabled"],"mappings":"AAAA,SAASA,IAAI,QAAQ,OAAO;AAG5B,OAAOC,YAAY,oBAAoB;AAEvC,OAAO,MAAMC,iBAA4C;IACvDC,MAAM;AACR,EAAE;AAEF,OAAO,MAAMC,yBAAyB,CAACC;IACrCA,MAAMF,IAAI,CAACG,SAAS,GAAGN,KACrBE,eAAeC,IAAI,EACnBF,OAAOE,IAAI,EACXE,MAAMF,IAAI,CAACI,EAAE,KAAK,OAAOF,MAAMF,IAAI,CAACK,IAAI,IAAIP,OAAOO,IAAI,EACvDH,MAAMF,IAAI,CAACI,EAAE,KAAK,YAAYN,OAAOQ,MAAM,EAC3CR,MAAM,CAACI,MAAMK,UAAU,CAAC,EACxBL,MAAMM,oBAAoB,IAAIV,MAAM,CAACI,MAAMM,oBAAoB,CAAC,EAChEN,MAAMO,MAAM,IAAIX,OAAOW,MAAM,EAC7BP,MAAMQ,QAAQ,IAAIZ,OAAOY,QAAQ,EACjCR,MAAMF,IAAI,CAACG,SAAS;IAGtB,OAAOD;AACT,EAAE"}
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
@layer fluentui {
|
|
2
|
-
.root {
|
|
3
|
-
background-color: transparent;
|
|
4
|
-
box-sizing: border-box;
|
|
5
|
-
color: var(--colorBrandForegroundLink);
|
|
6
|
-
cursor: pointer;
|
|
7
|
-
display: inline;
|
|
8
|
-
font-family: var(--fontFamilyBase);
|
|
9
|
-
font-size: var(--fontSizeBase300);
|
|
10
|
-
font-weight: var(--fontWeightRegular);
|
|
11
|
-
margin: 0;
|
|
12
|
-
padding: 0;
|
|
13
|
-
overflow: inherit;
|
|
14
|
-
text-align: left;
|
|
15
|
-
&:dir(rtl) {
|
|
16
|
-
text-align: right;
|
|
17
|
-
}
|
|
18
|
-
text-decoration-line: none;
|
|
19
|
-
text-decoration-thickness: var(--strokeWidthThin);
|
|
20
|
-
text-overflow: inherit;
|
|
21
|
-
user-select: text;
|
|
22
|
-
&:focus-visible {
|
|
23
|
-
outline-style: none;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
&:hover {
|
|
27
|
-
text-decoration-line: underline;
|
|
28
|
-
color: var(--colorBrandForegroundLinkHover);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
&:active {
|
|
32
|
-
text-decoration-line: underline;
|
|
33
|
-
color: var(--colorBrandForegroundLinkPressed);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.root:where(.button) {
|
|
38
|
-
border-top-style: none;
|
|
39
|
-
border-inline-end-style: none;
|
|
40
|
-
border-bottom-style: none;
|
|
41
|
-
border-inline-start-style: none;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.root:where(.href) {
|
|
45
|
-
font-size: inherit;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.root:where(.subtle) {
|
|
49
|
-
color: var(--colorNeutralForeground2Link);
|
|
50
|
-
&:hover {
|
|
51
|
-
text-decoration-line: underline;
|
|
52
|
-
color: var(--colorNeutralForeground2LinkHover);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
&:active {
|
|
56
|
-
text-decoration-line: underline;
|
|
57
|
-
color: var(--colorNeutralForeground2LinkPressed);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.root:where(.inverted) {
|
|
62
|
-
color: var(--colorBrandForegroundInverted);
|
|
63
|
-
&:hover {
|
|
64
|
-
color: var(--colorBrandForegroundInverted);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
&:active {
|
|
68
|
-
color: var(--colorBrandForegroundInverted);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.root:where(.brand) {
|
|
73
|
-
color: var(--colorNeutralForegroundInvertedLink);
|
|
74
|
-
&:hover {
|
|
75
|
-
color: var(--colorNeutralForegroundInvertedLinkHover);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
&:active {
|
|
79
|
-
color: var(--colorNeutralForegroundInvertedLinkPressed);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.root:where(.inline) {
|
|
84
|
-
text-decoration-line: underline;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.root:where(.disabled) {
|
|
88
|
-
text-decoration-line: none;
|
|
89
|
-
color: var(--colorNeutralForegroundDisabled);
|
|
90
|
-
cursor: not-allowed;
|
|
91
|
-
&:hover {
|
|
92
|
-
text-decoration-line: none;
|
|
93
|
-
color: var(--colorNeutralForegroundDisabled);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
&:active {
|
|
97
|
-
text-decoration-line: none;
|
|
98
|
-
color: var(--colorNeutralForegroundDisabled);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
@media (forced-colors: active) {
|
|
102
|
-
color: GrayText;
|
|
103
|
-
&:hover {
|
|
104
|
-
color: GrayText;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
&:active {
|
|
108
|
-
color: GrayText;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.root {
|
|
114
|
-
&[data-fui-focus-visible] {
|
|
115
|
-
text-decoration-color: var(--colorStrokeFocus2);
|
|
116
|
-
text-decoration-line: underline;
|
|
117
|
-
text-decoration-style: double;
|
|
118
|
-
outline-style: none;
|
|
119
|
-
}
|
|
120
|
-
&:where(.disabled)[data-fui-focus-visible] {
|
|
121
|
-
text-decoration-line: none;
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
function _export(target, all) {
|
|
6
|
-
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: Object.getOwnPropertyDescriptor(all, name).get
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
_export(exports, {
|
|
12
|
-
get linkClassNames () {
|
|
13
|
-
return linkClassNames;
|
|
14
|
-
},
|
|
15
|
-
get useLinkStyles_unstable () {
|
|
16
|
-
return useLinkStyles_unstable;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
|
20
|
-
const _clsx = require("clsx");
|
|
21
|
-
const _Linkmodulecss = /*#__PURE__*/ _interop_require_default._(require("./Link.module.css"));
|
|
22
|
-
const linkClassNames = {
|
|
23
|
-
root: 'fui-Link'
|
|
24
|
-
};
|
|
25
|
-
const useLinkStyles_unstable = (state)=>{
|
|
26
|
-
state.root.className = (0, _clsx.clsx)(linkClassNames.root, _Linkmodulecss.default.root, state.root.as === 'a' && state.root.href && _Linkmodulecss.default.href, state.root.as === 'button' && _Linkmodulecss.default.button, _Linkmodulecss.default[state.appearance], state.backgroundAppearance && _Linkmodulecss.default[state.backgroundAppearance], state.inline && _Linkmodulecss.default.inline, state.disabled && _Linkmodulecss.default.disabled, state.root.className);
|
|
27
|
-
return state;
|
|
28
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/Link/useLinkStyles.styles.css.ts"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { LinkSlots, LinkState } from './Link.types';\nimport styles from './Link.module.css';\n\nexport const linkClassNames: SlotClassNames<LinkSlots> = {\n root: 'fui-Link',\n};\n\nexport const useLinkStyles_unstable = (state: LinkState): LinkState => {\n state.root.className = clsx(\n linkClassNames.root,\n styles.root,\n state.root.as === 'a' && state.root.href && styles.href,\n state.root.as === 'button' && styles.button,\n styles[state.appearance],\n state.backgroundAppearance && styles[state.backgroundAppearance],\n state.inline && styles.inline,\n state.disabled && styles.disabled,\n state.root.className,\n );\n\n return state;\n};\n"],"names":["clsx","styles","linkClassNames","root","useLinkStyles_unstable","state","className","as","href","button","appearance","backgroundAppearance","inline","disabled"],"mappings":";;;;;;;;;;;QAKaE;;;;;;;;sBALQ,OAAO;wEAGT,oBAAoB;AAEhC,uBAAkD;IACvDC,MAAM;AACR,EAAE;AAEK,MAAMC,yBAAyB,CAACC;IACrCA,MAAMF,IAAI,CAACG,SAAS,OAAGN,UAAAA,EACrBE,eAAeC,IAAI,EACnBF,sBAAAA,CAAOE,IAAI,EACXE,MAAMF,IAAI,CAACI,EAAE,KAAK,OAAOF,MAAMF,IAAI,CAACK,IAAI,IAAIP,sBAAAA,CAAOO,IAAI,EACvDH,MAAMF,IAAI,CAACI,EAAE,KAAK,YAAYN,sBAAAA,CAAOQ,MAAM,EAC3CR,sBAAM,CAACI,MAAMK,UAAU,CAAC,EACxBL,MAAMM,oBAAoB,IAAIV,sBAAM,CAACI,MAAMM,oBAAoB,CAAC,EAChEN,MAAMO,MAAM,IAAIX,sBAAAA,CAAOW,MAAM,EAC7BP,MAAMQ,QAAQ,IAAIZ,sBAAAA,CAAOY,QAAQ,EACjCR,MAAMF,IAAI,CAACG,SAAS;IAGtB,OAAOD;AACT,EAAE"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
function _export(target, all) {
|
|
6
|
-
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: Object.getOwnPropertyDescriptor(all, name).get
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
_export(exports, {
|
|
12
|
-
get linkClassNames () {
|
|
13
|
-
return linkClassNames;
|
|
14
|
-
},
|
|
15
|
-
get useLinkStyles_unstable () {
|
|
16
|
-
return useLinkStyles_unstable;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
|
20
|
-
const _clsx = require("clsx");
|
|
21
|
-
const _Linkmodulecss = /*#__PURE__*/ _interop_require_default._(require("./Link.module.css"));
|
|
22
|
-
const linkClassNames = {
|
|
23
|
-
root: 'fui-Link'
|
|
24
|
-
};
|
|
25
|
-
const useLinkStyles_unstable = (state)=>{
|
|
26
|
-
state.root.className = (0, _clsx.clsx)(linkClassNames.root, _Linkmodulecss.default.root, state.root.as === 'a' && state.root.href && _Linkmodulecss.default.href, state.root.as === 'button' && _Linkmodulecss.default.button, _Linkmodulecss.default[state.appearance], state.backgroundAppearance && _Linkmodulecss.default[state.backgroundAppearance], state.inline && _Linkmodulecss.default.inline, state.disabled && _Linkmodulecss.default.disabled, state.root.className);
|
|
27
|
-
return state;
|
|
28
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/Link/useLinkStyles.styles.css.ts"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { LinkSlots, LinkState } from './Link.types';\nimport styles from './Link.module.css';\n\nexport const linkClassNames: SlotClassNames<LinkSlots> = {\n root: 'fui-Link',\n};\n\nexport const useLinkStyles_unstable = (state: LinkState): LinkState => {\n state.root.className = clsx(\n linkClassNames.root,\n styles.root,\n state.root.as === 'a' && state.root.href && styles.href,\n state.root.as === 'button' && styles.button,\n styles[state.appearance],\n state.backgroundAppearance && styles[state.backgroundAppearance],\n state.inline && styles.inline,\n state.disabled && styles.disabled,\n state.root.className,\n );\n\n return state;\n};\n"],"names":["clsx","styles","linkClassNames","root","useLinkStyles_unstable","state","className","as","href","button","appearance","backgroundAppearance","inline","disabled"],"mappings":";;;;;;;;;;;QAKaE;;;;;;;;sBALQ,OAAO;wEAGT,oBAAoB;AAEhC,uBAAkD;IACvDC,MAAM;AACR,EAAE;AAEK,MAAMC,yBAAyB,CAACC;IACrCA,MAAMF,IAAI,CAACG,SAAS,OAAGN,UAAAA,EACrBE,eAAeC,IAAI,EACnBF,sBAAAA,CAAOE,IAAI,EACXE,MAAMF,IAAI,CAACI,EAAE,KAAK,OAAOF,MAAMF,IAAI,CAACK,IAAI,IAAIP,sBAAAA,CAAOO,IAAI,EACvDH,MAAMF,IAAI,CAACI,EAAE,KAAK,YAAYN,sBAAAA,CAAOQ,MAAM,EAC3CR,sBAAM,CAACI,MAAMK,UAAU,CAAC,EACxBL,MAAMM,oBAAoB,IAAIV,sBAAM,CAACI,MAAMM,oBAAoB,CAAC,EAChEN,MAAMO,MAAM,IAAIX,sBAAAA,CAAOW,MAAM,EAC7BP,MAAMQ,QAAQ,IAAIZ,sBAAAA,CAAOY,QAAQ,EACjCR,MAAMF,IAAI,CAACG,SAAS;IAGtB,OAAOD;AACT,EAAE"}
|