@fluentui/react-tags 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.
Files changed (54) hide show
  1. package/CHANGELOG.md +12 -12
  2. package/package.json +11 -14
  3. package/lib/components/InteractionTag/InteractionTag.module.css +0 -23
  4. package/lib/components/InteractionTag/useInteractionTagStyles.styles.css.js +0 -9
  5. package/lib/components/InteractionTag/useInteractionTagStyles.styles.css.js.map +0 -1
  6. package/lib/components/InteractionTag/useInteractionTagStyles.styles.raw.css.js +0 -9
  7. package/lib/components/InteractionTag/useInteractionTagStyles.styles.raw.css.js.map +0 -1
  8. package/lib/components/InteractionTagPrimary/InteractionTagPrimary.module.css +0 -277
  9. package/lib/components/InteractionTagPrimary/useInteractionTagPrimaryStyles.styles.css.js +0 -26
  10. package/lib/components/InteractionTagPrimary/useInteractionTagPrimaryStyles.styles.css.js.map +0 -1
  11. package/lib/components/InteractionTagPrimary/useInteractionTagPrimaryStyles.styles.raw.css.js +0 -26
  12. package/lib/components/InteractionTagPrimary/useInteractionTagPrimaryStyles.styles.raw.css.js.map +0 -1
  13. package/lib/components/InteractionTagSecondary/InteractionTagSecondary.module.css +0 -194
  14. package/lib/components/InteractionTagSecondary/useInteractionTagSecondaryStyles.styles.css.js +0 -9
  15. package/lib/components/InteractionTagSecondary/useInteractionTagSecondaryStyles.styles.css.js.map +0 -1
  16. package/lib/components/InteractionTagSecondary/useInteractionTagSecondaryStyles.styles.raw.css.js +0 -9
  17. package/lib/components/InteractionTagSecondary/useInteractionTagSecondaryStyles.styles.raw.css.js.map +0 -1
  18. package/lib/components/Tag/Tag.module.css +0 -222
  19. package/lib/components/Tag/TagSlots.module.css +0 -97
  20. package/lib/components/Tag/useTagStyles.styles.css.js +0 -51
  21. package/lib/components/Tag/useTagStyles.styles.css.js.map +0 -1
  22. package/lib/components/Tag/useTagStyles.styles.raw.css.js +0 -51
  23. package/lib/components/Tag/useTagStyles.styles.raw.css.js.map +0 -1
  24. package/lib/components/TagGroup/TagGroup.module.css +0 -14
  25. package/lib/components/TagGroup/useTagGroupStyles.styles.css.js +0 -9
  26. package/lib/components/TagGroup/useTagGroupStyles.styles.css.js.map +0 -1
  27. package/lib/components/TagGroup/useTagGroupStyles.styles.raw.css.js +0 -9
  28. package/lib/components/TagGroup/useTagGroupStyles.styles.raw.css.js.map +0 -1
  29. package/lib-commonjs/components/InteractionTag/InteractionTag.module.css +0 -23
  30. package/lib-commonjs/components/InteractionTag/useInteractionTagStyles.styles.css.cjs +0 -28
  31. package/lib-commonjs/components/InteractionTag/useInteractionTagStyles.styles.css.cjs.map +0 -1
  32. package/lib-commonjs/components/InteractionTag/useInteractionTagStyles.styles.raw.css.cjs +0 -28
  33. package/lib-commonjs/components/InteractionTag/useInteractionTagStyles.styles.raw.css.cjs.map +0 -1
  34. package/lib-commonjs/components/InteractionTagPrimary/InteractionTagPrimary.module.css +0 -277
  35. package/lib-commonjs/components/InteractionTagPrimary/useInteractionTagPrimaryStyles.styles.css.cjs +0 -45
  36. package/lib-commonjs/components/InteractionTagPrimary/useInteractionTagPrimaryStyles.styles.css.cjs.map +0 -1
  37. package/lib-commonjs/components/InteractionTagPrimary/useInteractionTagPrimaryStyles.styles.raw.css.cjs +0 -45
  38. package/lib-commonjs/components/InteractionTagPrimary/useInteractionTagPrimaryStyles.styles.raw.css.cjs.map +0 -1
  39. package/lib-commonjs/components/InteractionTagSecondary/InteractionTagSecondary.module.css +0 -194
  40. package/lib-commonjs/components/InteractionTagSecondary/useInteractionTagSecondaryStyles.styles.css.cjs +0 -28
  41. package/lib-commonjs/components/InteractionTagSecondary/useInteractionTagSecondaryStyles.styles.css.cjs.map +0 -1
  42. package/lib-commonjs/components/InteractionTagSecondary/useInteractionTagSecondaryStyles.styles.raw.css.cjs +0 -28
  43. package/lib-commonjs/components/InteractionTagSecondary/useInteractionTagSecondaryStyles.styles.raw.css.cjs.map +0 -1
  44. package/lib-commonjs/components/Tag/Tag.module.css +0 -222
  45. package/lib-commonjs/components/Tag/TagSlots.module.css +0 -97
  46. package/lib-commonjs/components/Tag/useTagStyles.styles.css.cjs +0 -82
  47. package/lib-commonjs/components/Tag/useTagStyles.styles.css.cjs.map +0 -1
  48. package/lib-commonjs/components/Tag/useTagStyles.styles.raw.css.cjs +0 -82
  49. package/lib-commonjs/components/Tag/useTagStyles.styles.raw.css.cjs.map +0 -1
  50. package/lib-commonjs/components/TagGroup/TagGroup.module.css +0 -14
  51. package/lib-commonjs/components/TagGroup/useTagGroupStyles.styles.css.cjs +0 -28
  52. package/lib-commonjs/components/TagGroup/useTagGroupStyles.styles.css.cjs.map +0 -1
  53. package/lib-commonjs/components/TagGroup/useTagGroupStyles.styles.raw.css.cjs +0 -28
  54. package/lib-commonjs/components/TagGroup/useTagGroupStyles.styles.raw.css.cjs.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,24 +1,24 @@
1
1
  # Change Log - @fluentui/react-tags
2
2
 
3
- <!-- This log was last generated on Sat, 31 Oct 2026 11:08:38 GMT and should not be manually modified. -->
3
+ <!-- This log was last generated on Tue, 03 Nov 2026 14:18:13 GMT and should not be manually modified. -->
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## [9.75.0-experimental.css-modules.20261031-810ab07afb.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-tags_v9.75.0-experimental.css-modules.20261031-810ab07afb.0)
7
+ ## [9.75.1-experimental.positioning-engine.20261103-19efe125d1.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-tags_v9.75.1-experimental.positioning-engine.20261103-19efe125d1.0)
8
8
 
9
- Sat, 31 Oct 2026 11:08:38 GMT
9
+ Tue, 03 Nov 2026 14:18:13 GMT
10
10
 
11
11
  ### Changes
12
12
 
13
- - Release 9.75.0-experimental.css-modules.20261031-810ab07afb ([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.0-experimental.css-modules.20261031-810ab07afb.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
15
- - Bump @fluentui/react-aria to v9.75.0-experimental.css-modules.20261031-810ab07afb.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
16
- - Bump @fluentui/react-avatar to v9.75.0-experimental.css-modules.20261031-810ab07afb.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
17
- - Bump @fluentui/react-jsx-runtime to v9.75.0-experimental.css-modules.20261031-810ab07afb.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
18
- - Bump @fluentui/react-shared-contexts to v9.75.0-experimental.css-modules.20261031-810ab07afb.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
19
- - Bump @fluentui/react-tabster to v9.75.0-experimental.css-modules.20261031-810ab07afb.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
20
- - Bump @fluentui/react-theme to v9.75.0-experimental.css-modules.20261031-810ab07afb.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
21
- - Bump @fluentui/react-utilities to v9.75.0-experimental.css-modules.20261031-810ab07afb.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
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-aria to v9.75.1-experimental.positioning-engine.20261103-19efe125d1.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
16
+ - Bump @fluentui/react-avatar to v9.75.1-experimental.positioning-engine.20261103-19efe125d1.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
17
+ - 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)
18
+ - 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)
19
+ - Bump @fluentui/react-tabster to v9.75.1-experimental.positioning-engine.20261103-19efe125d1.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
20
+ - Bump @fluentui/react-theme to v9.75.1-experimental.positioning-engine.20261103-19efe125d1.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
21
+ - Bump @fluentui/react-utilities to v9.75.1-experimental.positioning-engine.20261103-19efe125d1.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
22
22
 
23
23
  ## [9.9.8](https://github.com/microsoft/fluentui/tree/@fluentui/react-tags_v9.9.8)
24
24
 
package/package.json CHANGED
@@ -1,31 +1,28 @@
1
1
  {
2
2
  "name": "@fluentui/react-tags",
3
- "version": "9.75.0-experimental.css-modules.20261031-810ab07afb.0",
3
+ "version": "9.75.1-experimental.positioning-engine.20261103-19efe125d1.0",
4
4
  "description": "Fluent UI Tag 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.0-experimental.css-modules.20261031-810ab07afb.0",
18
- "@fluentui/react-aria": "9.75.0-experimental.css-modules.20261031-810ab07afb.0",
19
- "@fluentui/react-avatar": "9.75.0-experimental.css-modules.20261031-810ab07afb.0",
15
+ "@fluentui/keyboard-keys": "9.75.1-experimental.positioning-engine.20261103-19efe125d1.0",
16
+ "@fluentui/react-aria": "9.75.1-experimental.positioning-engine.20261103-19efe125d1.0",
17
+ "@fluentui/react-avatar": "9.75.1-experimental.positioning-engine.20261103-19efe125d1.0",
20
18
  "@fluentui/react-icons": "^2.0.245",
21
- "@fluentui/react-jsx-runtime": "9.75.0-experimental.css-modules.20261031-810ab07afb.0",
22
- "@fluentui/react-shared-contexts": "9.75.0-experimental.css-modules.20261031-810ab07afb.0",
23
- "@fluentui/react-tabster": "9.75.0-experimental.css-modules.20261031-810ab07afb.0",
24
- "@fluentui/react-theme": "9.75.0-experimental.css-modules.20261031-810ab07afb.0",
25
- "@fluentui/react-utilities": "9.75.0-experimental.css-modules.20261031-810ab07afb.0",
19
+ "@fluentui/react-jsx-runtime": "9.75.1-experimental.positioning-engine.20261103-19efe125d1.0",
20
+ "@fluentui/react-shared-contexts": "9.75.1-experimental.positioning-engine.20261103-19efe125d1.0",
21
+ "@fluentui/react-tabster": "9.75.1-experimental.positioning-engine.20261103-19efe125d1.0",
22
+ "@fluentui/react-theme": "9.75.1-experimental.positioning-engine.20261103-19efe125d1.0",
23
+ "@fluentui/react-utilities": "9.75.1-experimental.positioning-engine.20261103-19efe125d1.0",
26
24
  "@griffel/react": "^1.5.32",
27
- "@swc/helpers": "^0.5.1",
28
- "clsx": "^2.1.1"
25
+ "@swc/helpers": "^0.5.1"
29
26
  },
30
27
  "peerDependencies": {
31
28
  "@types/react": ">=16.14.0 <20.0.0",
@@ -1,23 +0,0 @@
1
- @layer fluentui {
2
- .root {
3
- display: inline-flex;
4
- align-items: center;
5
- box-sizing: border-box;
6
- width: fit-content;
7
- }
8
- .rounded {
9
- border-radius: var(--borderRadiusMedium);
10
- }
11
- .circular {
12
- border-radius: var(--borderRadiusCircular);
13
- }
14
- .medium {
15
- height: var(--spacingHorizontalXXXL);
16
- }
17
- .small {
18
- height: var(--spacingHorizontalXXL);
19
- }
20
- .extra-small {
21
- height: var(--spacingHorizontalXL);
22
- }
23
- }
@@ -1,9 +0,0 @@
1
- import { clsx } from "clsx";
2
- import styles from "./InteractionTag.module.css";
3
- export const interactionTagClassNames = {
4
- root: 'fui-InteractionTag'
5
- };
6
- export const useInteractionTagStyles_unstable = (state)=>{
7
- state.root.className = clsx(interactionTagClassNames.root, styles.root, styles[state.size], styles[state.shape], state.root.className);
8
- return state;
9
- };
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/components/InteractionTag/useInteractionTagStyles.styles.css.ts"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { InteractionTagSlots, InteractionTagState } from './InteractionTag.types';\nimport styles from './InteractionTag.module.css';\n\nexport const interactionTagClassNames: SlotClassNames<InteractionTagSlots> = {\n root: 'fui-InteractionTag',\n};\n\nexport const useInteractionTagStyles_unstable = (state: InteractionTagState): InteractionTagState => {\n state.root.className = clsx(\n interactionTagClassNames.root,\n styles.root,\n styles[state.size],\n styles[state.shape],\n state.root.className,\n );\n return state;\n};\n"],"names":["clsx","styles","interactionTagClassNames","root","useInteractionTagStyles_unstable","state","className","size","shape"],"mappings":"AAAA,SAASA,IAAI,QAAQ,OAAO;AAG5B,OAAOC,YAAY,8BAA8B;AAEjD,OAAO,MAAMC,2BAAgE;IAC3EC,MAAM;AACR,EAAE;AAEF,OAAO,MAAMC,mCAAmC,CAACC;IAC/CA,MAAMF,IAAI,CAACG,SAAS,GAAGN,KACrBE,yBAAyBC,IAAI,EAC7BF,OAAOE,IAAI,EACXF,MAAM,CAACI,MAAME,IAAI,CAAC,EAClBN,MAAM,CAACI,MAAMG,KAAK,CAAC,EACnBH,MAAMF,IAAI,CAACG,SAAS;IAEtB,OAAOD;AACT,EAAE"}
@@ -1,9 +0,0 @@
1
- import { clsx } from "clsx";
2
- import styles from "./InteractionTag.module.css";
3
- export const interactionTagClassNames = {
4
- root: 'fui-InteractionTag'
5
- };
6
- export const useInteractionTagStyles_unstable = (state)=>{
7
- state.root.className = clsx(interactionTagClassNames.root, styles.root, styles[state.size], styles[state.shape], state.root.className);
8
- return state;
9
- };
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/components/InteractionTag/useInteractionTagStyles.styles.css.ts"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { InteractionTagSlots, InteractionTagState } from './InteractionTag.types';\nimport styles from './InteractionTag.module.css';\n\nexport const interactionTagClassNames: SlotClassNames<InteractionTagSlots> = {\n root: 'fui-InteractionTag',\n};\n\nexport const useInteractionTagStyles_unstable = (state: InteractionTagState): InteractionTagState => {\n state.root.className = clsx(\n interactionTagClassNames.root,\n styles.root,\n styles[state.size],\n styles[state.shape],\n state.root.className,\n );\n return state;\n};\n"],"names":["clsx","styles","interactionTagClassNames","root","useInteractionTagStyles_unstable","state","className","size","shape"],"mappings":"AAAA,SAASA,IAAI,QAAQ,OAAO;AAG5B,OAAOC,YAAY,8BAA8B;AAEjD,OAAO,MAAMC,2BAAgE;IAC3EC,MAAM;AACR,EAAE;AAEF,OAAO,MAAMC,mCAAmC,CAACC;IAC/CA,MAAMF,IAAI,CAACG,SAAS,GAAGN,KACrBE,yBAAyBC,IAAI,EAC7BF,OAAOE,IAAI,EACXF,MAAM,CAACI,MAAME,IAAI,CAAC,EAClBN,MAAM,CAACI,MAAMG,KAAK,CAAC,EACnBH,MAAMF,IAAI,CAACG,SAAS;IAEtB,OAAOD;AACT,EAAE"}
@@ -1,277 +0,0 @@
1
- @import url('@fluentui/react-icons/headless/styles.css') layer(fluentui);
2
-
3
- @layer fluentui {
4
- .root:where(.rounded) {
5
- color: inherit;
6
- font-family: inherit;
7
- padding: 0px;
8
- border-style: none;
9
- appearance: button;
10
- text-align: unset;
11
- background-color: transparent;
12
- display: inline-grid;
13
- height: 100%;
14
- align-items: center;
15
- grid-template-areas: 'media primary ' 'media secondary';
16
- border: var(--strokeWidthThin) solid var(--colorTransparentStroke);
17
- &[data-fui-focus-visible] {
18
- outline: var(--strokeWidthThick) solid var(--colorStrokeFocus2);
19
- z-index: 1;
20
- }
21
- border-radius: var(--borderRadiusMedium);
22
- @media (forced-colors: active) {
23
- position: relative;
24
- &::before {
25
- content: '';
26
- border-top: var(--strokeWidthThin) solid;
27
- position: absolute;
28
- inset: calc(var(--strokeWidthThin) * -1);
29
- border-start-start-radius: var(--borderRadiusMedium);
30
- border-start-end-radius: var(--borderRadiusMedium);
31
- }
32
- }
33
- }
34
- .root:where(.circular) {
35
- color: inherit;
36
- font-family: inherit;
37
- padding: 0px;
38
- border-style: none;
39
- appearance: button;
40
- text-align: unset;
41
- background-color: transparent;
42
- display: inline-grid;
43
- height: 100%;
44
- align-items: center;
45
- grid-template-areas: 'media primary ' 'media secondary';
46
- border: var(--strokeWidthThin) solid var(--colorTransparentStroke);
47
- &[data-fui-focus-visible] {
48
- outline: var(--strokeWidthThick) solid var(--colorStrokeFocus2);
49
- z-index: 1;
50
- }
51
- border-radius: var(--borderRadiusCircular);
52
- @media (forced-colors: active) {
53
- position: relative;
54
- &::before {
55
- content: '';
56
- border-top: var(--strokeWidthThin) solid;
57
- border-inline-start: var(--strokeWidthThin) solid;
58
- position: absolute;
59
- inset: calc(var(--strokeWidthThin) * -1);
60
- border-start-start-radius: var(--borderRadiusCircular);
61
- border-end-start-radius: var(--borderRadiusCircular);
62
- }
63
- }
64
- }
65
- .filled:where(:not(.disabled)) {
66
- background-color: var(--colorNeutralBackground3);
67
- color: var(--colorNeutralForeground2);
68
- &:hover {
69
- cursor: pointer;
70
- background-color: var(--colorNeutralBackground3Hover);
71
- color: var(--colorNeutralForeground2Hover);
72
- }
73
- &:active {
74
- background-color: var(--colorNeutralBackground3Pressed);
75
- color: var(--colorNeutralForeground2Pressed);
76
- }
77
- @media (forced-colors: active) {
78
- &:hover {
79
- background-color: HighlightText;
80
- }
81
- &:active {
82
- background-color: HighlightText;
83
- }
84
- }
85
- }
86
- .outline:where(:not(.disabled)) {
87
- background-color: var(--colorSubtleBackground);
88
- color: var(--colorNeutralForeground2);
89
- border-top-color: var(--colorNeutralStroke1);
90
- border-inline-end-color: var(--colorNeutralStroke1);
91
- border-bottom-color: var(--colorNeutralStroke1);
92
- border-inline-start-color: var(--colorNeutralStroke1);
93
- &:hover {
94
- cursor: pointer;
95
- background-color: var(--colorSubtleBackgroundHover);
96
- color: var(--colorNeutralForeground2Hover);
97
- & :global(.fui-Icon-filled) {
98
- display: inline;
99
- color: var(--colorNeutralForeground2BrandHover);
100
- }
101
- & :global(.fui-Icon-regular) {
102
- display: none;
103
- }
104
- }
105
- &:active {
106
- background-color: var(--colorSubtleBackgroundPressed);
107
- color: var(--colorNeutralForeground2Pressed);
108
- & :global(.fui-Icon-filled) {
109
- display: inline;
110
- color: var(--colorNeutralForeground2BrandPressed);
111
- }
112
- & :global(.fui-Icon-regular) {
113
- display: none;
114
- }
115
- }
116
- @media (forced-colors: active) {
117
- &:hover {
118
- background-color: HighlightText;
119
- }
120
- &:active {
121
- background-color: HighlightText;
122
- }
123
- }
124
- }
125
- .brand:where(:not(.disabled)) {
126
- background-color: var(--colorBrandBackground2);
127
- color: var(--colorBrandForeground2);
128
- &:hover {
129
- cursor: pointer;
130
- background-color: var(--colorBrandBackground2Hover);
131
- color: var(--colorCompoundBrandForeground1Hover);
132
- }
133
- &:active {
134
- background-color: var(--colorBrandBackground2Pressed);
135
- color: var(--colorCompoundBrandForeground1Pressed);
136
- }
137
- @media (forced-colors: active) {
138
- &:hover {
139
- background-color: HighlightText;
140
- }
141
- &:active {
142
- background-color: HighlightText;
143
- }
144
- }
145
- }
146
- .selected:where(:not(.disabled)) {
147
- background: var(--colorBrandBackground);
148
- color: var(--colorNeutralForegroundOnBrand);
149
- border-top-color: var(--colorBrandStroke1);
150
- border-inline-end-color: var(--colorBrandStroke1);
151
- border-bottom-color: var(--colorBrandStroke1);
152
- border-inline-start-color: var(--colorBrandStroke1);
153
- @media (forced-colors: active) {
154
- forced-color-adjust: none;
155
- background-color: Highlight;
156
- color: HighlightText;
157
- }
158
- &:hover {
159
- background-color: var(--colorBrandBackgroundHover);
160
- color: var(--colorNeutralForegroundOnBrand);
161
- & :global(.fui-Icon-filled) {
162
- color: var(--colorNeutralForegroundOnBrand);
163
- }
164
- @media (forced-colors: active) {
165
- background-color: Highlight;
166
- color: HighlightText;
167
- }
168
- }
169
- &:active {
170
- background-color: var(--colorBrandBackgroundPressed);
171
- color: var(--colorNeutralForegroundOnBrand);
172
- & :global(.fui-Icon-filled) {
173
- color: var(--colorNeutralForegroundOnBrand);
174
- }
175
- @media (forced-colors: active) {
176
- background-color: Highlight;
177
- color: HighlightText;
178
- }
179
- }
180
- }
181
- .medium {
182
- padding-inline-end: calc(var(--spacingHorizontalS) - var(--strokeWidthThin));
183
- }
184
- .small {
185
- padding-inline-end: calc(var(--spacingHorizontalSNudge) - var(--strokeWidthThin));
186
- }
187
- .extra-small {
188
- padding-inline-end: calc(var(--spacingHorizontalSNudge) - var(--strokeWidthThin));
189
- position: relative;
190
- @media (forced-colors: none) {
191
- &:before,
192
- &:after {
193
- content: '';
194
- position: absolute;
195
- /* Extend the 20px control to the fixed 24px accessible pointer target. */
196
- height: 2px;
197
- inset-inline-start: 0;
198
- width: 100%;
199
- }
200
- &:before {
201
- bottom: 100%;
202
- }
203
- &:after {
204
- top: 100%;
205
- }
206
- }
207
- }
208
- .disabled:where(.filled) {
209
- cursor: not-allowed;
210
- background-color: var(--colorNeutralBackgroundDisabled);
211
- color: var(--colorNeutralForegroundDisabled);
212
- border-top-color: var(--colorTransparentStrokeDisabled);
213
- border-inline-end-color: var(--colorTransparentStrokeDisabled);
214
- border-bottom-color: var(--colorTransparentStrokeDisabled);
215
- border-inline-start-color: var(--colorTransparentStrokeDisabled);
216
- }
217
- .disabled:where(.outline) {
218
- cursor: not-allowed;
219
- background-color: var(--colorSubtleBackground);
220
- color: var(--colorNeutralForegroundDisabled);
221
- border-top-color: var(--colorNeutralStrokeDisabled);
222
- border-inline-end-color: var(--colorNeutralStrokeDisabled);
223
- border-bottom-color: var(--colorNeutralStrokeDisabled);
224
- border-inline-start-color: var(--colorNeutralStrokeDisabled);
225
- }
226
- .disabled:where(.brand) {
227
- cursor: not-allowed;
228
- background-color: var(--colorNeutralBackgroundDisabled);
229
- color: var(--colorNeutralForegroundDisabled);
230
- border-top-color: var(--colorTransparentStrokeDisabled);
231
- border-inline-end-color: var(--colorTransparentStrokeDisabled);
232
- border-bottom-color: var(--colorTransparentStrokeDisabled);
233
- border-inline-start-color: var(--colorTransparentStrokeDisabled);
234
- }
235
- .withoutMedia:where(.medium) {
236
- padding-inline-start: calc(var(--spacingHorizontalS) - var(--strokeWidthThin));
237
- }
238
- .withoutMedia:where(.small) {
239
- padding-inline-start: calc(var(--spacingHorizontalSNudge) - var(--strokeWidthThin));
240
- }
241
- .withoutMedia:where(.extra-small) {
242
- padding-inline-start: calc(var(--spacingHorizontalSNudge) - var(--strokeWidthThin));
243
- }
244
- .circular:where(:not(.hasSecondaryAction)) {
245
- @media (forced-colors: active) {
246
- position: relative;
247
- &::before {
248
- border-inline-end: var(--strokeWidthThin) solid transparent;
249
- border-start-end-radius: var(--borderRadiusCircular);
250
- border-end-end-radius: var(--borderRadiusCircular);
251
- }
252
- }
253
- }
254
- .hasSecondaryAction {
255
- border-start-end-radius: var(--borderRadiusNone);
256
- border-end-end-radius: var(--borderRadiusNone);
257
- border-inline-end-style: none;
258
- &[data-fui-focus-visible] {
259
- border-start-end-radius: var(--borderRadiusNone);
260
- border-end-end-radius: var(--borderRadiusNone);
261
- }
262
- @media (forced-colors: active) {
263
- &::before {
264
- border-start-end-radius: 0;
265
- }
266
- }
267
- }
268
- .hasSecondaryAction:where(.medium) {
269
- padding-inline-end: var(--spacingHorizontalS);
270
- }
271
- .hasSecondaryAction:where(.small) {
272
- padding-inline-end: var(--spacingHorizontalSNudge);
273
- }
274
- .hasSecondaryAction:where(.extra-small) {
275
- padding-inline-end: var(--spacingHorizontalSNudge);
276
- }
277
- }
@@ -1,26 +0,0 @@
1
- import { clsx } from "clsx";
2
- import sharedStyles from "../Tag/TagSlots.module.css";
3
- import styles from "./InteractionTagPrimary.module.css";
4
- export const interactionTagPrimaryClassNames = {
5
- root: 'fui-InteractionTagPrimary',
6
- media: 'fui-InteractionTagPrimary__media',
7
- icon: 'fui-InteractionTagPrimary__icon',
8
- primaryText: 'fui-InteractionTagPrimary__primaryText',
9
- secondaryText: 'fui-InteractionTagPrimary__secondaryText'
10
- };
11
- export const useInteractionTagPrimaryStyles_unstable = (state)=>{
12
- state.root.className = clsx(interactionTagPrimaryClassNames.root, styles.root, styles[state.shape], styles[state.size], styles[state.appearance], state.disabled && styles.disabled, state.selected && !state.disabled && styles.selected, !state.media && !state.icon && styles.withoutMedia, state.hasSecondaryAction && styles.hasSecondaryAction, sharedStyles[state.size], state.secondaryText ? sharedStyles.withSecondaryText : sharedStyles.withoutSecondaryText, state.root.className);
13
- if (state.icon) {
14
- state.icon.className = clsx(interactionTagPrimaryClassNames.icon, sharedStyles.icon, state.icon.className);
15
- }
16
- if (state.media) {
17
- state.media.className = clsx(interactionTagPrimaryClassNames.media, sharedStyles.media, state.media.className);
18
- }
19
- if (state.primaryText) {
20
- state.primaryText.className = clsx(interactionTagPrimaryClassNames.primaryText, sharedStyles.primaryText, state.primaryText.className);
21
- }
22
- if (state.secondaryText) {
23
- state.secondaryText.className = clsx(interactionTagPrimaryClassNames.secondaryText, sharedStyles.secondaryText, state.secondaryText.className);
24
- }
25
- return state;
26
- };
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/components/InteractionTagPrimary/useInteractionTagPrimaryStyles.styles.css.ts"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { InteractionTagPrimarySlots, InteractionTagPrimaryState } from './InteractionTagPrimary.types';\nimport sharedStyles from '../Tag/TagSlots.module.css';\nimport styles from './InteractionTagPrimary.module.css';\n\nexport const interactionTagPrimaryClassNames: SlotClassNames<InteractionTagPrimarySlots> = {\n root: 'fui-InteractionTagPrimary',\n media: 'fui-InteractionTagPrimary__media',\n icon: 'fui-InteractionTagPrimary__icon',\n primaryText: 'fui-InteractionTagPrimary__primaryText',\n secondaryText: 'fui-InteractionTagPrimary__secondaryText',\n};\n\nexport const useInteractionTagPrimaryStyles_unstable = (\n state: InteractionTagPrimaryState,\n): InteractionTagPrimaryState => {\n state.root.className = clsx(\n interactionTagPrimaryClassNames.root,\n styles.root,\n styles[state.shape],\n styles[state.size],\n styles[state.appearance],\n state.disabled && styles.disabled,\n state.selected && !state.disabled && styles.selected,\n !state.media && !state.icon && styles.withoutMedia,\n state.hasSecondaryAction && styles.hasSecondaryAction,\n sharedStyles[state.size],\n state.secondaryText ? sharedStyles.withSecondaryText : sharedStyles.withoutSecondaryText,\n state.root.className,\n );\n if (state.icon) {\n state.icon.className = clsx(interactionTagPrimaryClassNames.icon, sharedStyles.icon, state.icon.className);\n }\n if (state.media) {\n state.media.className = clsx(interactionTagPrimaryClassNames.media, sharedStyles.media, state.media.className);\n }\n if (state.primaryText) {\n state.primaryText.className = clsx(\n interactionTagPrimaryClassNames.primaryText,\n sharedStyles.primaryText,\n state.primaryText.className,\n );\n }\n if (state.secondaryText) {\n state.secondaryText.className = clsx(\n interactionTagPrimaryClassNames.secondaryText,\n sharedStyles.secondaryText,\n state.secondaryText.className,\n );\n }\n return state;\n};\n"],"names":["clsx","sharedStyles","styles","interactionTagPrimaryClassNames","root","media","icon","primaryText","secondaryText","useInteractionTagPrimaryStyles_unstable","state","className","shape","size","appearance","disabled","selected","withoutMedia","hasSecondaryAction","withSecondaryText","withoutSecondaryText"],"mappings":"AAAA,SAASA,IAAI,QAAQ,OAAO;AAG5B,OAAOC,kBAAkB,6BAA6B;AACtD,OAAOC,YAAY,qCAAqC;AAExD,OAAO,MAAMC,kCAA8E;IACzFC,MAAM;IACNC,OAAO;IACPC,MAAM;IACNC,aAAa;IACbC,eAAe;AACjB,EAAE;AAEF,OAAO,MAAMC,0CAA0C,CACrDC;IAEAA,MAAMN,IAAI,CAACO,SAA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sharedStyles from "../Tag/TagSlots.module.css";
3
- import styles from "./InteractionTagPrimary.module.css";
4
- export const interactionTagPrimaryClassNames = {
5
- root: 'fui-InteractionTagPrimary',
6
- media: 'fui-InteractionTagPrimary__media',
7
- icon: 'fui-InteractionTagPrimary__icon',
8
- primaryText: 'fui-InteractionTagPrimary__primaryText',
9
- secondaryText: 'fui-InteractionTagPrimary__secondaryText'
10
- };
11
- export const useInteractionTagPrimaryStyles_unstable = (state)=>{
12
- state.root.className = clsx(interactionTagPrimaryClassNames.root, styles.root, styles[state.shape], styles[state.size], styles[state.appearance], state.disabled && styles.disabled, state.selected && !state.disabled && styles.selected, !state.media && !state.icon && styles.withoutMedia, state.hasSecondaryAction && styles.hasSecondaryAction, sharedStyles[state.size], state.secondaryText ? sharedStyles.withSecondaryText : sharedStyles.withoutSecondaryText, state.root.className);
13
- if (state.icon) {
14
- state.icon.className = clsx(interactionTagPrimaryClassNames.icon, sharedStyles.icon, state.icon.className);
15
- }
16
- if (state.media) {
17
- state.media.className = clsx(interactionTagPrimaryClassNames.media, sharedStyles.media, state.media.className);
18
- }
19
- if (state.primaryText) {
20
- state.primaryText.className = clsx(interactionTagPrimaryClassNames.primaryText, sharedStyles.primaryText, state.primaryText.className);
21
- }
22
- if (state.secondaryText) {
23
- state.secondaryText.className = clsx(interactionTagPrimaryClassNames.secondaryText, sharedStyles.secondaryText, state.secondaryText.className);
24
- }
25
- return state;
26
- };
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/components/InteractionTagPrimary/useInteractionTagPrimaryStyles.styles.css.ts"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { InteractionTagPrimarySlots, InteractionTagPrimaryState } from './InteractionTagPrimary.types';\nimport sharedStyles from '../Tag/TagSlots.module.css';\nimport styles from './InteractionTagPrimary.module.css';\n\nexport const interactionTagPrimaryClassNames: SlotClassNames<InteractionTagPrimarySlots> = {\n root: 'fui-InteractionTagPrimary',\n media: 'fui-InteractionTagPrimary__media',\n icon: 'fui-InteractionTagPrimary__icon',\n primaryText: 'fui-InteractionTagPrimary__primaryText',\n secondaryText: 'fui-InteractionTagPrimary__secondaryText',\n};\n\nexport const useInteractionTagPrimaryStyles_unstable = (\n state: InteractionTagPrimaryState,\n): InteractionTagPrimaryState => {\n state.root.className = clsx(\n interactionTagPrimaryClassNames.root,\n styles.root,\n styles[state.shape],\n styles[state.size],\n styles[state.appearance],\n state.disabled && styles.disabled,\n state.selected && !state.disabled && styles.selected,\n !state.media && !state.icon && styles.withoutMedia,\n state.hasSecondaryAction && styles.hasSecondaryAction,\n sharedStyles[state.size],\n state.secondaryText ? sharedStyles.withSecondaryText : sharedStyles.withoutSecondaryText,\n state.root.className,\n );\n if (state.icon) {\n state.icon.className = clsx(interactionTagPrimaryClassNames.icon, sharedStyles.icon, state.icon.className);\n }\n if (state.media) {\n state.media.className = clsx(interactionTagPrimaryClassNames.media, sharedStyles.media, state.media.className);\n }\n if (state.primaryText) {\n state.primaryText.className = clsx(\n interactionTagPrimaryClassNames.primaryText,\n sharedStyles.primaryText,\n state.primaryText.className,\n );\n }\n if (state.secondaryText) {\n state.secondaryText.className = clsx(\n interactionTagPrimaryClassNames.secondaryText,\n sharedStyles.secondaryText,\n state.secondaryText.className,\n );\n }\n return state;\n};\n"],"names":["clsx","sharedStyles","styles","interactionTagPrimaryClassNames","root","media","icon","primaryText","secondaryText","useInteractionTagPrimaryStyles_unstable","state","className","shape","size","appearance","disabled","selected","withoutMedia","hasSecondaryAction","withSecondaryText","withoutSecondaryText"],"mappings":"AAAA,SAASA,IAAI,QAAQ,OAAO;AAG5B,OAAOC,kBAAkB,6BAA6B;AACtD,OAAOC,YAAY,qCAAqC;AAExD,OAAO,MAAMC,kCAA8E;IACzFC,MAAM;IACNC,OAAO;IACPC,MAAM;IACNC,aAAa;IACbC,eAAe;AACjB,EAAE;AAEF,OAAO,MAAMC,0CAA0C,CACrDC;IAEAA,MAAMN,IAAI,CAACO,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