@fluentui/react-infobutton 9.0.0-beta.11 → 9.0.0-beta.110

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 (81) hide show
  1. package/CHANGELOG.md +1224 -5
  2. package/README.md +3 -24
  3. package/dist/index.d.ts +115 -9
  4. package/lib/InfoButton.js +1 -2
  5. package/lib/InfoButton.js.map +1 -1
  6. package/lib/InfoLabel.js +1 -0
  7. package/lib/InfoLabel.js.map +1 -0
  8. package/lib/components/InfoButton/DefaultInfoButtonIcons.js +3 -4
  9. package/lib/components/InfoButton/DefaultInfoButtonIcons.js.map +1 -1
  10. package/lib/components/InfoButton/InfoButton.js +8 -7
  11. package/lib/components/InfoButton/InfoButton.js.map +1 -1
  12. package/lib/components/InfoButton/InfoButton.types.js +5 -2
  13. package/lib/components/InfoButton/InfoButton.types.js.map +1 -1
  14. package/lib/components/InfoButton/index.js +4 -6
  15. package/lib/components/InfoButton/index.js.map +1 -1
  16. package/lib/components/InfoButton/renderInfoButton.js +14 -16
  17. package/lib/components/InfoButton/renderInfoButton.js.map +1 -1
  18. package/lib/components/InfoButton/useInfoButton.js +71 -50
  19. package/lib/components/InfoButton/useInfoButton.js.map +1 -1
  20. package/lib/components/InfoButton/useInfoButtonStyles.styles.js +181 -0
  21. package/lib/components/InfoButton/useInfoButtonStyles.styles.js.map +1 -0
  22. package/lib/components/InfoButton/useInfoButtonStyles.styles.raw.js +99 -0
  23. package/lib/components/InfoButton/useInfoButtonStyles.styles.raw.js.map +1 -0
  24. package/lib/components/InfoLabel/InfoLabel.js +15 -0
  25. package/lib/components/InfoLabel/InfoLabel.js.map +1 -0
  26. package/lib/components/InfoLabel/InfoLabel.types.js +5 -0
  27. package/lib/components/InfoLabel/InfoLabel.types.js.map +1 -0
  28. package/lib/components/InfoLabel/index.js +4 -0
  29. package/lib/components/InfoLabel/index.js.map +1 -0
  30. package/lib/components/InfoLabel/renderInfoLabel.js +15 -0
  31. package/lib/components/InfoLabel/renderInfoLabel.js.map +1 -0
  32. package/lib/components/InfoLabel/useInfoLabel.js +80 -0
  33. package/lib/components/InfoLabel/useInfoLabel.js.map +1 -0
  34. package/lib/components/InfoLabel/useInfoLabelStyles.styles.js +50 -0
  35. package/lib/components/InfoLabel/useInfoLabelStyles.styles.js.map +1 -0
  36. package/lib/components/InfoLabel/useInfoLabelStyles.styles.raw.js +45 -0
  37. package/lib/components/InfoLabel/useInfoLabelStyles.styles.raw.js.map +1 -0
  38. package/lib/index.js +2 -2
  39. package/lib/index.js.map +1 -1
  40. package/lib-commonjs/InfoButton.js +26 -6
  41. package/lib-commonjs/InfoButton.js.map +1 -1
  42. package/lib-commonjs/InfoLabel.js +28 -0
  43. package/lib-commonjs/InfoLabel.js.map +1 -0
  44. package/lib-commonjs/components/InfoButton/DefaultInfoButtonIcons.js +22 -8
  45. package/lib-commonjs/components/InfoButton/DefaultInfoButtonIcons.js.map +1 -1
  46. package/lib-commonjs/components/InfoButton/InfoButton.js +18 -16
  47. package/lib-commonjs/components/InfoButton/InfoButton.js.map +1 -1
  48. package/lib-commonjs/components/InfoButton/InfoButton.types.js +6 -4
  49. package/lib-commonjs/components/InfoButton/InfoButton.types.js.map +1 -1
  50. package/lib-commonjs/components/InfoButton/index.js +29 -10
  51. package/lib-commonjs/components/InfoButton/index.js.map +1 -1
  52. package/lib-commonjs/components/InfoButton/renderInfoButton.js +21 -24
  53. package/lib-commonjs/components/InfoButton/renderInfoButton.js.map +1 -1
  54. package/lib-commonjs/components/InfoButton/useInfoButton.js +80 -65
  55. package/lib-commonjs/components/InfoButton/useInfoButton.js.map +1 -1
  56. package/lib-commonjs/components/InfoButton/useInfoButtonStyles.styles.js +350 -0
  57. package/lib-commonjs/components/InfoButton/useInfoButtonStyles.styles.js.map +1 -0
  58. package/lib-commonjs/components/InfoButton/useInfoButtonStyles.styles.raw.js +113 -0
  59. package/lib-commonjs/components/InfoButton/useInfoButtonStyles.styles.raw.js.map +1 -0
  60. package/lib-commonjs/components/InfoLabel/InfoLabel.js +22 -0
  61. package/lib-commonjs/components/InfoLabel/InfoLabel.js.map +1 -0
  62. package/lib-commonjs/components/InfoLabel/InfoLabel.types.js +8 -0
  63. package/lib-commonjs/components/InfoLabel/InfoLabel.types.js.map +1 -0
  64. package/lib-commonjs/components/InfoLabel/index.js +31 -0
  65. package/lib-commonjs/components/InfoLabel/index.js.map +1 -0
  66. package/lib-commonjs/components/InfoLabel/renderInfoLabel.js +21 -0
  67. package/lib-commonjs/components/InfoLabel/renderInfoLabel.js.map +1 -0
  68. package/lib-commonjs/components/InfoLabel/useInfoLabel.js +81 -0
  69. package/lib-commonjs/components/InfoLabel/useInfoLabel.js.map +1 -0
  70. package/lib-commonjs/components/InfoLabel/useInfoLabelStyles.styles.js +68 -0
  71. package/lib-commonjs/components/InfoLabel/useInfoLabelStyles.styles.js.map +1 -0
  72. package/lib-commonjs/components/InfoLabel/useInfoLabelStyles.styles.raw.js +57 -0
  73. package/lib-commonjs/components/InfoLabel/useInfoLabelStyles.styles.raw.js.map +1 -0
  74. package/lib-commonjs/index.js +41 -35
  75. package/lib-commonjs/index.js.map +1 -1
  76. package/package.json +22 -33
  77. package/CHANGELOG.json +0 -342
  78. package/lib/components/InfoButton/useInfoButtonStyles.js +0 -153
  79. package/lib/components/InfoButton/useInfoButtonStyles.js.map +0 -1
  80. package/lib-commonjs/components/InfoButton/useInfoButtonStyles.js +0 -160
  81. package/lib-commonjs/components/InfoButton/useInfoButtonStyles.js.map +0 -1
@@ -0,0 +1,350 @@
1
+ /* eslint-disable @typescript-eslint/no-deprecated */ 'use client';
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ function _export(target, all) {
7
+ for(var name in all)Object.defineProperty(target, name, {
8
+ enumerable: true,
9
+ get: all[name]
10
+ });
11
+ }
12
+ _export(exports, {
13
+ infoButtonClassNames: function() {
14
+ return infoButtonClassNames;
15
+ },
16
+ useInfoButtonStyles_unstable: function() {
17
+ return useInfoButtonStyles_unstable;
18
+ }
19
+ });
20
+ const _react = require("@griffel/react");
21
+ const infoButtonClassNames = {
22
+ root: 'fui-InfoButton',
23
+ // this className won't be used, but it's needed to satisfy the type checker
24
+ popover: 'fui-InfoButton__popover',
25
+ info: 'fui-InfoButton__info'
26
+ };
27
+ /**
28
+ * Styles for the root slot
29
+ *
30
+ * @deprecated use {@link @fluentui/react-components#InfoLabel} from `\@fluentui/react-components` or `\@fluentui/react-infolabel` instead
31
+ */ const useButtonStyles = /*#__PURE__*/ (0, _react.__styles)({
32
+ base: {
33
+ Bt984gj: "f122n59",
34
+ B7ck84d: "f1ewtqcl",
35
+ mc9l5x: "ftuwxu6",
36
+ Brf1p80: "f4d9j23",
37
+ w71qe1: "f1iuv45f",
38
+ ha4doy: "fmrv4ls",
39
+ qhf8xq: "f10pi13n",
40
+ De3pzq: "f1c21dwh",
41
+ sj55zd: "fkfq4zb",
42
+ icvyot: "f1ern45e",
43
+ vrafjx: [
44
+ "f1n71otn",
45
+ "f1deefiw"
46
+ ],
47
+ oivjwe: "f1h8hb77",
48
+ wvpqe5: [
49
+ "f1deefiw",
50
+ "f1n71otn"
51
+ ],
52
+ Bbmb7ep: [
53
+ "f1aa9q02",
54
+ "f16jpd5f"
55
+ ],
56
+ Beyfa6y: [
57
+ "f16jpd5f",
58
+ "f1aa9q02"
59
+ ],
60
+ B7oj6ja: [
61
+ "f1jar5jt",
62
+ "fyu767a"
63
+ ],
64
+ Btl43ni: [
65
+ "fyu767a",
66
+ "f1jar5jt"
67
+ ],
68
+ B6of3ja: "f1hu3pq6",
69
+ t21cq0: [
70
+ "f11qmguv",
71
+ "f1tyq0we"
72
+ ],
73
+ jrapky: "f19f4twv",
74
+ Frg6f3: [
75
+ "f1tyq0we",
76
+ "f11qmguv"
77
+ ],
78
+ z8tnut: "f1ywm7hm",
79
+ z189sj: [
80
+ "f7x41pl",
81
+ "fruq291"
82
+ ],
83
+ Byoj8tv: "f14wxoun",
84
+ uwmqm3: [
85
+ "fruq291",
86
+ "f7x41pl"
87
+ ],
88
+ D0sxk3: "f16u1re",
89
+ t6yez3: "f1rw4040",
90
+ Jwef8y: "fjxutwb",
91
+ Bi91k9c: "f139oj5f",
92
+ eoavqd: "f8491dx",
93
+ Bk3fhr4: "f1jpd6y0",
94
+ Bmfj8id: "fuxngvv",
95
+ iro3zm: "fwiml72",
96
+ B2d53fq: "f1fg1p5m"
97
+ },
98
+ selected: {
99
+ De3pzq: "f1q9pm1r",
100
+ sj55zd: "f1qj7y59",
101
+ D0sxk3: "fgzdkf0",
102
+ t6yez3: "f15q0o9g",
103
+ By8wz76: "f1nz3ub2",
104
+ B7iucu3: "f1205bnn"
105
+ },
106
+ highContrast: {
107
+ B7iucu3: "fslfhp6",
108
+ Bfsdueo: "f11s1vgy",
109
+ pb71ee: "f12b7wpn",
110
+ ik86qs: "f1u668rv"
111
+ },
112
+ focusIndicator: {
113
+ Brovlpu: "ftqa4ok",
114
+ B486eqv: "f2hkw1w",
115
+ B8q5s1w: "f8hki3x",
116
+ Bci5o5g: [
117
+ "f1d2448m",
118
+ "ffh67wi"
119
+ ],
120
+ n8qw10: "f1bjia2o",
121
+ Bdrgwmp: [
122
+ "ffh67wi",
123
+ "f1d2448m"
124
+ ],
125
+ Bqhya38: "f1j6vpng",
126
+ Bwxa6fj: [
127
+ "f1pniga2",
128
+ "f1ffjurs"
129
+ ],
130
+ Bdhvstf: "f987i1v",
131
+ B7zbvrb: [
132
+ "f1ffjurs",
133
+ "f1pniga2"
134
+ ],
135
+ Bm4h7ae: "f15bsgw9",
136
+ B7ys5i9: "f14e48fq",
137
+ Busjfv9: "f18yb2kv",
138
+ Bhk32uz: "fd6o370",
139
+ f6g5ot: 0,
140
+ Boxcth7: 0,
141
+ Bhdgwq3: 0,
142
+ hgwjuy: 0,
143
+ Bshpdp8: 0,
144
+ Bsom6fd: 0,
145
+ Blkhhs4: 0,
146
+ Bonggc9: 0,
147
+ Ddfuxk: 0,
148
+ i03rao: 0,
149
+ kclons: 0,
150
+ clg4pj: 0,
151
+ Bpqj9nj: 0,
152
+ B6dhp37: 0,
153
+ Bf4ptjt: 0,
154
+ Bqtpl0w: 0,
155
+ i4rwgc: "ffwy5si",
156
+ Dah5zi: 0,
157
+ B1tsrr9: 0,
158
+ qqdqy8: 0,
159
+ Bkh64rk: 0,
160
+ e3fwne: "f3znvyf",
161
+ J0r882: "f57olzd",
162
+ Bule8hv: [
163
+ "f4stah7",
164
+ "fs1por5"
165
+ ],
166
+ Bjwuhne: "f480a47",
167
+ Ghsupd: [
168
+ "fs1por5",
169
+ "f4stah7"
170
+ ]
171
+ },
172
+ large: {
173
+ z8tnut: "fclwglc",
174
+ z189sj: [
175
+ "f1w3695s",
176
+ "f1b0r8ql"
177
+ ],
178
+ Byoj8tv: "fywfov9",
179
+ uwmqm3: [
180
+ "f1b0r8ql",
181
+ "f1w3695s"
182
+ ]
183
+ }
184
+ }, {
185
+ d: [
186
+ ".f122n59{align-items:center;}",
187
+ ".f1ewtqcl{box-sizing:border-box;}",
188
+ ".ftuwxu6{display:inline-flex;}",
189
+ ".f4d9j23{justify-content:center;}",
190
+ ".f1iuv45f{text-decoration-line:none;}",
191
+ ".fmrv4ls{vertical-align:middle;}",
192
+ ".f10pi13n{position:relative;}",
193
+ ".f1c21dwh{background-color:var(--colorTransparentBackground);}",
194
+ ".fkfq4zb{color:var(--colorNeutralForeground2);}",
195
+ ".f1ern45e{border-top-style:none;}",
196
+ ".f1n71otn{border-right-style:none;}",
197
+ ".f1deefiw{border-left-style:none;}",
198
+ ".f1h8hb77{border-bottom-style:none;}",
199
+ ".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",
200
+ ".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",
201
+ ".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",
202
+ ".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",
203
+ ".f1hu3pq6{margin-top:0;}",
204
+ ".f11qmguv{margin-right:0;}",
205
+ ".f1tyq0we{margin-left:0;}",
206
+ ".f19f4twv{margin-bottom:0;}",
207
+ ".f1ywm7hm{padding-top:var(--spacingVerticalXS);}",
208
+ ".f7x41pl{padding-right:var(--spacingHorizontalXS);}",
209
+ ".fruq291{padding-left:var(--spacingHorizontalXS);}",
210
+ ".f14wxoun{padding-bottom:var(--spacingVerticalXS);}",
211
+ ".f16u1re .fui-Icon-filled{display:none;}",
212
+ ".f1rw4040 .fui-Icon-regular{display:inline-flex;}",
213
+ ".f1q9pm1r{background-color:var(--colorTransparentBackgroundSelected);}",
214
+ ".f1qj7y59{color:var(--colorNeutralForeground2BrandSelected);}",
215
+ ".fgzdkf0 .fui-Icon-filled{display:inline-flex;}",
216
+ ".f15q0o9g .fui-Icon-regular{display:none;}",
217
+ ".f8hki3x[data-fui-focus-visible]{border-top-color:transparent;}",
218
+ ".f1d2448m[data-fui-focus-visible]{border-right-color:transparent;}",
219
+ ".ffh67wi[data-fui-focus-visible]{border-left-color:transparent;}",
220
+ ".f1bjia2o[data-fui-focus-visible]{border-bottom-color:transparent;}",
221
+ ".f15bsgw9[data-fui-focus-visible]::after{content:\"\";}",
222
+ ".f14e48fq[data-fui-focus-visible]::after{position:absolute;}",
223
+ ".f18yb2kv[data-fui-focus-visible]::after{pointer-events:none;}",
224
+ ".fd6o370[data-fui-focus-visible]::after{z-index:1;}",
225
+ [
226
+ ".ffwy5si[data-fui-focus-visible]::after{border:2px solid var(--colorStrokeFocus2);}",
227
+ {
228
+ p: -2
229
+ }
230
+ ],
231
+ [
232
+ ".f3znvyf[data-fui-focus-visible]::after{border-radius:var(--borderRadiusMedium);}",
233
+ {
234
+ p: -1
235
+ }
236
+ ],
237
+ ".f57olzd[data-fui-focus-visible]::after{top:calc(2px * -1);}",
238
+ ".f4stah7[data-fui-focus-visible]::after{right:calc(2px * -1);}",
239
+ ".fs1por5[data-fui-focus-visible]::after{left:calc(2px * -1);}",
240
+ ".f480a47[data-fui-focus-visible]::after{bottom:calc(2px * -1);}",
241
+ ".fclwglc{padding-top:var(--spacingVerticalXXS);}",
242
+ ".f1w3695s{padding-right:var(--spacingVerticalXXS);}",
243
+ ".f1b0r8ql{padding-left:var(--spacingVerticalXXS);}",
244
+ ".fywfov9{padding-bottom:var(--spacingVerticalXXS);}"
245
+ ],
246
+ h: [
247
+ ".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}",
248
+ ".f139oj5f:hover{color:var(--colorNeutralForeground2BrandHover);}",
249
+ ".f8491dx:hover{cursor:pointer;}",
250
+ ".f1jpd6y0:hover .fui-Icon-filled{display:inline-flex;}",
251
+ ".fuxngvv:hover .fui-Icon-regular{display:none;}",
252
+ ".fwiml72:hover:active{background-color:var(--colorTransparentBackgroundPressed);}",
253
+ ".f1fg1p5m:hover:active{color:var(--colorNeutralForeground2BrandPressed);}"
254
+ ],
255
+ m: [
256
+ [
257
+ "@media (forced-colors: active){.f1nz3ub2{background-color:Highlight;}}",
258
+ {
259
+ m: "(forced-colors: active)"
260
+ }
261
+ ],
262
+ [
263
+ "@media (forced-colors: active){.f1205bnn{color:Canvas;}}",
264
+ {
265
+ m: "(forced-colors: active)"
266
+ }
267
+ ],
268
+ [
269
+ "@media (forced-colors: active){.fslfhp6{color:CanvasText;}}",
270
+ {
271
+ m: "(forced-colors: active)"
272
+ }
273
+ ],
274
+ [
275
+ "@media (forced-colors: active){.f11s1vgy:hover,.f11s1vgy:hover:active{forced-color-adjust:none;}}",
276
+ {
277
+ m: "(forced-colors: active)"
278
+ }
279
+ ],
280
+ [
281
+ "@media (forced-colors: active){.f12b7wpn:hover,.f12b7wpn:hover:active{background-color:Highlight;}}",
282
+ {
283
+ m: "(forced-colors: active)"
284
+ }
285
+ ],
286
+ [
287
+ "@media (forced-colors: active){.f1u668rv:hover,.f1u668rv:hover:active{color:Canvas;}}",
288
+ {
289
+ m: "(forced-colors: active)"
290
+ }
291
+ ],
292
+ [
293
+ "@media (forced-colors: active){.f1j6vpng[data-fui-focus-visible]::after{border-top-color:Highlight;}}",
294
+ {
295
+ m: "(forced-colors: active)"
296
+ }
297
+ ],
298
+ [
299
+ "@media (forced-colors: active){.f1ffjurs[data-fui-focus-visible]::after{border-left-color:Highlight;}.f1pniga2[data-fui-focus-visible]::after{border-right-color:Highlight;}}",
300
+ {
301
+ m: "(forced-colors: active)"
302
+ }
303
+ ],
304
+ [
305
+ "@media (forced-colors: active){.f987i1v[data-fui-focus-visible]::after{border-bottom-color:Highlight;}}",
306
+ {
307
+ m: "(forced-colors: active)"
308
+ }
309
+ ]
310
+ ],
311
+ f: [
312
+ ".ftqa4ok:focus{outline-style:none;}"
313
+ ],
314
+ i: [
315
+ ".f2hkw1w:focus-visible{outline-style:none;}"
316
+ ]
317
+ });
318
+ const usePopoverSurfaceStyles = /*#__PURE__*/ (0, _react.__styles)({
319
+ smallMedium: {
320
+ Bahqtrf: "fk6fouc",
321
+ Be2twd7: "fy9rknc",
322
+ Bhrd7zp: "figsok6",
323
+ Bg96gwp: "fwrc4pm"
324
+ },
325
+ large: {
326
+ Bahqtrf: "fk6fouc",
327
+ Be2twd7: "fkhj508",
328
+ Bhrd7zp: "figsok6",
329
+ Bg96gwp: "f1i3iumi"
330
+ }
331
+ }, {
332
+ d: [
333
+ ".fk6fouc{font-family:var(--fontFamilyBase);}",
334
+ ".fy9rknc{font-size:var(--fontSizeBase200);}",
335
+ ".figsok6{font-weight:var(--fontWeightRegular);}",
336
+ ".fwrc4pm{line-height:var(--lineHeightBase200);}",
337
+ ".fkhj508{font-size:var(--fontSizeBase300);}",
338
+ ".f1i3iumi{line-height:var(--lineHeightBase300);}"
339
+ ]
340
+ });
341
+ const useInfoButtonStyles_unstable = (state)=>{
342
+ const { size } = state;
343
+ const { open } = state.popover;
344
+ const buttonStyles = useButtonStyles();
345
+ const popoverSurfaceStyles = usePopoverSurfaceStyles();
346
+ // eslint-disable-next-line react-compiler/react-compiler
347
+ state.info.className = (0, _react.mergeClasses)(infoButtonClassNames.info, size === 'large' ? popoverSurfaceStyles.large : popoverSurfaceStyles.smallMedium, state.info.className);
348
+ state.root.className = (0, _react.mergeClasses)(infoButtonClassNames.root, buttonStyles.base, buttonStyles.highContrast, buttonStyles.focusIndicator, open && buttonStyles.selected, size === 'large' && buttonStyles.large, state.root.className);
349
+ return state;
350
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["useInfoButtonStyles.styles.js"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-deprecated */ 'use client';\nimport { createFocusOutlineStyle } from '@fluentui/react-tabster';\nimport { iconFilledClassName, iconRegularClassName } from '@fluentui/react-icons';\nimport { makeStyles, mergeClasses, shorthands } from '@griffel/react';\nimport { tokens, typographyStyles } from '@fluentui/react-theme';\n/**\n * @deprecated use {@link @fluentui/react-components#InfoLabel} from `\\@fluentui/react-components` or `\\@fluentui/react-infolabel` instead\n */ export const infoButtonClassNames = {\n root: 'fui-InfoButton',\n // this className won't be used, but it's needed to satisfy the type checker\n popover: 'fui-InfoButton__popover',\n info: 'fui-InfoButton__info'\n};\n/**\n * Styles for the root slot\n *\n * @deprecated use {@link @fluentui/react-components#InfoLabel} from `\\@fluentui/react-components` or `\\@fluentui/react-infolabel` instead\n */ const useButtonStyles = makeStyles({\n base: {\n alignItems: 'center',\n boxSizing: 'border-box',\n display: 'inline-flex',\n justifyContent: 'center',\n textDecorationLine: 'none',\n verticalAlign: 'middle',\n position: 'relative',\n backgroundColor: tokens.colorTransparentBackground,\n color: tokens.colorNeutralForeground2,\n ...shorthands.borderStyle('none'),\n ...shorthands.borderRadius(tokens.borderRadiusMedium),\n ...shorthands.margin(0),\n ...shorthands.padding(tokens.spacingVerticalXS, tokens.spacingHorizontalXS),\n [`& .${iconFilledClassName}`]: {\n display: 'none'\n },\n [`& .${iconRegularClassName}`]: {\n display: 'inline-flex'\n },\n ':hover': {\n backgroundColor: tokens.colorTransparentBackgroundHover,\n color: tokens.colorNeutralForeground2BrandHover,\n cursor: 'pointer',\n [`& .${iconFilledClassName}`]: {\n display: 'inline-flex'\n },\n [`& .${iconRegularClassName}`]: {\n display: 'none'\n }\n },\n ':hover:active': {\n backgroundColor: tokens.colorTransparentBackgroundPressed,\n color: tokens.colorNeutralForeground2BrandPressed\n }\n },\n selected: {\n backgroundColor: tokens.colorTransparentBackgroundSelected,\n color: tokens.colorNeutralForeground2BrandSelected,\n [`& .${iconFilledClassName}`]: {\n display: 'inline-flex'\n },\n [`& .${iconRegularClassName}`]: {\n display: 'none'\n },\n '@media (forced-colors: active)': {\n backgroundColor: 'Highlight',\n color: 'Canvas'\n }\n },\n highContrast: {\n '@media (forced-colors: active)': {\n color: 'CanvasText',\n ':hover,:hover:active': {\n forcedColorAdjust: 'none',\n backgroundColor: 'Highlight',\n color: 'Canvas'\n }\n }\n },\n focusIndicator: createFocusOutlineStyle(),\n large: {\n ...shorthands.padding(tokens.spacingVerticalXXS, tokens.spacingVerticalXXS)\n }\n});\nconst usePopoverSurfaceStyles = makeStyles({\n smallMedium: typographyStyles.caption1,\n large: typographyStyles.body1\n});\n/**\n * Apply styling to the InfoButton slots based on the state\n */ export const useInfoButtonStyles_unstable = (state)=>{\n const { size } = state;\n const { open } = state.popover;\n const buttonStyles = useButtonStyles();\n const popoverSurfaceStyles = usePopoverSurfaceStyles();\n // eslint-disable-next-line react-compiler/react-compiler\n state.info.className = mergeClasses(infoButtonClassNames.info, size === 'large' ? popoverSurfaceStyles.large : popoverSurfaceStyles.smallMedium, state.info.className);\n state.root.className = mergeClasses(infoButtonClassNames.root, buttonStyles.base, buttonStyles.highContrast, buttonStyles.focusIndicator, open && buttonStyles.selected, size === 'large' && buttonStyles.large, state.root.className);\n return state;\n};\n"],"names":["createFocusOutlineStyle","iconFilledClassName","iconRegularClassName","__styles","mergeClasses","shorthands","tokens","typographyStyles","infoButtonClassNames","root","popover","info","useButtonStyles","base","Bt984gj","B7ck84d","mc9l5x","Brf1p80","w71qe1","ha4doy","qhf8xq","De3pzq","sj55zd","icvyot","vrafjx","oivjwe","wvpqe5","Bbmb7ep","Beyfa6y","B7oj6ja","Btl43ni","B6of3ja","t21cq0","jrapky","Frg6f3","z8tnut","z189sj","Byoj8tv","uwmqm3","D0sxk3","t6yez3","Jwef8y","Bi91k9c","eoavqd","Bk3fhr4","Bmfj8id","iro3zm","B2d53fq","selected","By8wz76","B7iucu3","highContrast","Bfsdueo","pb71ee","ik86qs","focusIndicator","Brovlpu","B486eqv","B8q5s1w","Bci5o5g","n8qw10","Bdrgwmp","Bqhya38","Bwxa6fj","Bdhvstf","B7zbvrb","Bm4h7ae","B7ys5i9","Busjfv9","Bhk32uz","f6g5ot","Boxcth7","Bhdgwq3","hgwjuy","Bshpdp8","Bsom6fd","Blkhhs4","Bonggc9","Ddfuxk","i03rao","kclons","clg4pj","Bpqj9nj","B6dhp37","Bf4ptjt","Bqtpl0w","i4rwgc","Dah5zi","B1tsrr9","qqdqy8","Bkh64rk","e3fwne","J0r882","Bule8hv","Bjwuhne","Ghsupd","large","d","p","h","m","f","i","usePopoverSurfaceStyles","smallMedium","Bahqtrf","Be2twd7","Bhrd7zp","Bg96gwp","useInfoButtonStyles_unstable","state","size","open","buttonStyles","popoverSurfaceStyles","className"],"mappings":"AAAA,mDAAA,GAAsD,YAAY;;;;;;;;;;;;IAOjDQ,oBAAoB;;;gCAkFQ;eAA5BqG;;;uBAtFoC,gBAAgB;AAI1D,6BAA6B;IACpCpG,IAAI,EAAE,gBAAgB;IACtB,4EAAA;IACAC,OAAO,EAAE,yBAAyB;IAClCC,IAAI,EAAE;AACV,CAAC;AACD;;;;CAIA,GAAI,MAAMC,eAAe,GAAA,WAAA,OAAGT,eAAA,EAAA;IAAAU,IAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,MAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,MAAA,EAAA;QAAAC,MAAA,EAAA;QAAAC,MAAA,EAAA;QAAAC,MAAA,EAAA;QAAAC,MAAA,EAAA;QAAAC,MAAA,EAAA;QAAAC,MAAA,EAAA;Y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AoB,CAAClB,KAAK,GAAGkB,oBAAoB,CAACV,WAAW,EAAEM,KAAK,CAACnG,IAAI,CAACwG,SAAS,CAAC;IACtKL,KAAK,CAACrG,IAAI,CAAC0G,SAAS,GAAG/G,uBAAY,EAACI,oBAAoB,CAACC,IAAI,EAAEwG,YAAY,CAACpG,IAAI,EAAEoG,YAAY,CAAC9D,YAAY,EAAE8D,YAAY,CAAC1D,cAAc,EAAEyD,IAAI,IAAIC,YAAY,CAACjE,QAAQ,EAAE+D,IAAI,KAAK,OAAO,IAAIE,YAAY,CAACjB,KAAK,EAAEc,KAAK,CAACrG,IAAI,CAAC0G,SAAS,CAAC;IACtO,OAAOL,KAAK;AAChB,CAAC"}
@@ -0,0 +1,113 @@
1
+ /* eslint-disable @typescript-eslint/no-deprecated */ 'use client';
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ function _export(target, all) {
7
+ for(var name in all)Object.defineProperty(target, name, {
8
+ enumerable: true,
9
+ get: all[name]
10
+ });
11
+ }
12
+ _export(exports, {
13
+ infoButtonClassNames: function() {
14
+ return infoButtonClassNames;
15
+ },
16
+ useInfoButtonStyles_unstable: function() {
17
+ return useInfoButtonStyles_unstable;
18
+ }
19
+ });
20
+ const _reacttabster = require("@fluentui/react-tabster");
21
+ const _reacticons = require("@fluentui/react-icons");
22
+ const _react = require("@griffel/react");
23
+ const _reacttheme = require("@fluentui/react-theme");
24
+ const infoButtonClassNames = {
25
+ root: 'fui-InfoButton',
26
+ // this className won't be used, but it's needed to satisfy the type checker
27
+ popover: 'fui-InfoButton__popover',
28
+ info: 'fui-InfoButton__info'
29
+ };
30
+ /**
31
+ * Styles for the root slot
32
+ *
33
+ * @deprecated use {@link @fluentui/react-components#InfoLabel} from `\@fluentui/react-components` or `\@fluentui/react-infolabel` instead
34
+ */ const useButtonStyles = (0, _react.makeStyles)({
35
+ base: {
36
+ alignItems: 'center',
37
+ boxSizing: 'border-box',
38
+ display: 'inline-flex',
39
+ justifyContent: 'center',
40
+ textDecorationLine: 'none',
41
+ verticalAlign: 'middle',
42
+ position: 'relative',
43
+ backgroundColor: _reacttheme.tokens.colorTransparentBackground,
44
+ color: _reacttheme.tokens.colorNeutralForeground2,
45
+ ..._react.shorthands.borderStyle('none'),
46
+ ..._react.shorthands.borderRadius(_reacttheme.tokens.borderRadiusMedium),
47
+ ..._react.shorthands.margin(0),
48
+ ..._react.shorthands.padding(_reacttheme.tokens.spacingVerticalXS, _reacttheme.tokens.spacingHorizontalXS),
49
+ [`& .${_reacticons.iconFilledClassName}`]: {
50
+ display: 'none'
51
+ },
52
+ [`& .${_reacticons.iconRegularClassName}`]: {
53
+ display: 'inline-flex'
54
+ },
55
+ ':hover': {
56
+ backgroundColor: _reacttheme.tokens.colorTransparentBackgroundHover,
57
+ color: _reacttheme.tokens.colorNeutralForeground2BrandHover,
58
+ cursor: 'pointer',
59
+ [`& .${_reacticons.iconFilledClassName}`]: {
60
+ display: 'inline-flex'
61
+ },
62
+ [`& .${_reacticons.iconRegularClassName}`]: {
63
+ display: 'none'
64
+ }
65
+ },
66
+ ':hover:active': {
67
+ backgroundColor: _reacttheme.tokens.colorTransparentBackgroundPressed,
68
+ color: _reacttheme.tokens.colorNeutralForeground2BrandPressed
69
+ }
70
+ },
71
+ selected: {
72
+ backgroundColor: _reacttheme.tokens.colorTransparentBackgroundSelected,
73
+ color: _reacttheme.tokens.colorNeutralForeground2BrandSelected,
74
+ [`& .${_reacticons.iconFilledClassName}`]: {
75
+ display: 'inline-flex'
76
+ },
77
+ [`& .${_reacticons.iconRegularClassName}`]: {
78
+ display: 'none'
79
+ },
80
+ '@media (forced-colors: active)': {
81
+ backgroundColor: 'Highlight',
82
+ color: 'Canvas'
83
+ }
84
+ },
85
+ highContrast: {
86
+ '@media (forced-colors: active)': {
87
+ color: 'CanvasText',
88
+ ':hover,:hover:active': {
89
+ forcedColorAdjust: 'none',
90
+ backgroundColor: 'Highlight',
91
+ color: 'Canvas'
92
+ }
93
+ }
94
+ },
95
+ focusIndicator: (0, _reacttabster.createFocusOutlineStyle)(),
96
+ large: {
97
+ ..._react.shorthands.padding(_reacttheme.tokens.spacingVerticalXXS, _reacttheme.tokens.spacingVerticalXXS)
98
+ }
99
+ });
100
+ const usePopoverSurfaceStyles = (0, _react.makeStyles)({
101
+ smallMedium: _reacttheme.typographyStyles.caption1,
102
+ large: _reacttheme.typographyStyles.body1
103
+ });
104
+ const useInfoButtonStyles_unstable = (state)=>{
105
+ const { size } = state;
106
+ const { open } = state.popover;
107
+ const buttonStyles = useButtonStyles();
108
+ const popoverSurfaceStyles = usePopoverSurfaceStyles();
109
+ // eslint-disable-next-line react-compiler/react-compiler
110
+ state.info.className = (0, _react.mergeClasses)(infoButtonClassNames.info, size === 'large' ? popoverSurfaceStyles.large : popoverSurfaceStyles.smallMedium, state.info.className);
111
+ state.root.className = (0, _react.mergeClasses)(infoButtonClassNames.root, buttonStyles.base, buttonStyles.highContrast, buttonStyles.focusIndicator, open && buttonStyles.selected, size === 'large' && buttonStyles.large, state.root.className);
112
+ return state;
113
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/InfoButton/useInfoButtonStyles.styles.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-deprecated */\n\n'use client';\n\nimport { createFocusOutlineStyle } from '@fluentui/react-tabster';\nimport { iconFilledClassName, iconRegularClassName } from '@fluentui/react-icons';\nimport { makeStyles, mergeClasses, shorthands } from '@griffel/react';\nimport { tokens, typographyStyles } from '@fluentui/react-theme';\nimport type { InfoButtonSlots, InfoButtonState } from './InfoButton.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\n\n/**\n * @deprecated use {@link @fluentui/react-components#InfoLabel} from `\\@fluentui/react-components` or `\\@fluentui/react-infolabel` instead\n */\nexport const infoButtonClassNames: SlotClassNames<InfoButtonSlots> = {\n root: 'fui-InfoButton',\n // this className won't be used, but it's needed to satisfy the type checker\n popover: 'fui-InfoButton__popover',\n info: 'fui-InfoButton__info',\n};\n\n/**\n * Styles for the root slot\n *\n * @deprecated use {@link @fluentui/react-components#InfoLabel} from `\\@fluentui/react-components` or `\\@fluentui/react-infolabel` instead\n */\nconst useButtonStyles = makeStyles({\n base: {\n alignItems: 'center',\n boxSizing: 'border-box',\n display: 'inline-flex',\n justifyContent: 'center',\n textDecorationLine: 'none',\n verticalAlign: 'middle',\n position: 'relative',\n\n backgroundColor: tokens.colorTransparentBackground,\n color: tokens.colorNeutralForeground2,\n\n ...shorthands.borderStyle('none'),\n ...shorthands.borderRadius(tokens.borderRadiusMedium),\n ...shorthands.margin(0),\n ...shorthands.padding(tokens.spacingVerticalXS, tokens.spacingHorizontalXS),\n\n [`& .${iconFilledClassName}`]: {\n display: 'none',\n },\n [`& .${iconRegularClassName}`]: {\n display: 'inline-flex',\n },\n\n ':hover': {\n backgroundColor: tokens.colorTransparentBackgroundHover,\n color: tokens.colorNeutralForeground2BrandHover,\n cursor: 'pointer',\n\n [`& .${iconFilledClassName}`]: {\n display: 'inline-flex',\n },\n [`& .${iconRegularClassName}`]: {\n display: 'none',\n },\n },\n ':hover:active': {\n backgroundColor: tokens.colorTransparentBackgroundPressed,\n color: tokens.colorNeutralForeground2BrandPressed,\n },\n },\n\n selected: {\n backgroundColor: tokens.colorTransparentBackgroundSelected,\n color: tokens.colorNeutralForeground2BrandSelected,\n\n [`& .${iconFilledClassName}`]: {\n display: 'inline-flex',\n },\n [`& .${iconRegularClassName}`]: {\n display: 'none',\n },\n\n '@media (forced-colors: active)': {\n backgroundColor: 'Highlight',\n color: 'Canvas',\n },\n },\n\n highContrast: {\n '@media (forced-colors: active)': {\n color: 'CanvasText',\n\n ':hover,:hover:active': {\n forcedColorAdjust: 'none',\n backgroundColor: 'Highlight',\n color: 'Canvas',\n },\n },\n },\n\n focusIndicator: createFocusOutlineStyle(),\n\n large: {\n ...shorthands.padding(tokens.spacingVerticalXXS, tokens.spacingVerticalXXS),\n },\n});\n\nconst usePopoverSurfaceStyles = makeStyles({\n smallMedium: typographyStyles.caption1,\n large: typographyStyles.body1,\n});\n\n/**\n * Apply styling to the InfoButton slots based on the state\n */\nexport const useInfoButtonStyles_unstable = (state: InfoButtonState): InfoButtonState => {\n const { size } = state;\n const { open } = state.popover;\n const buttonStyles = useButtonStyles();\n const popoverSurfaceStyles = usePopoverSurfaceStyles();\n\n // eslint-disable-next-line react-compiler/react-compiler\n state.info.className = mergeClasses(\n infoButtonClassNames.info,\n size === 'large' ? popoverSurfaceStyles.large : popoverSurfaceStyles.smallMedium,\n state.info.className,\n );\n\n state.root.className = mergeClasses(\n infoButtonClassNames.root,\n buttonStyles.base,\n buttonStyles.highContrast,\n buttonStyles.focusIndicator,\n open && buttonStyles.selected,\n size === 'large' && buttonStyles.large,\n state.root.className,\n );\n\n return state;\n};\n"],"names":["createFocusOutlineStyle","iconFilledClassName","iconRegularClassName","makeStyles","mergeClasses","shorthands","tokens","typographyStyles","infoButtonClassNames","root","popover","info","useButtonStyles","base","alignItems","boxSizing","display","justifyContent","textDecorationLine","verticalAlign","position","backgroundColor","colorTransparentBackground","color","colorNeutralForeground2","borderStyle","borderRadius","borderRadiusMedium","margin","padding","spacingVerticalXS","spacingHorizontalXS","colorTransparentBackgroundHover","colorNeutralForeground2BrandHover","cursor","colorTransparentBackgroundPressed","colorNeutralForeground2BrandPressed","selected","colorTransparentBackgroundSelected","colorNeutralForeground2BrandSelected","highContrast","forcedColorAdjust","focusIndicator","large","spacingVerticalXXS","usePopoverSurfaceStyles","smallMedium","caption1","body1","useInfoButtonStyles_unstable","state","size","open","buttonStyles","popoverSurfaceStyles","className"],"mappings":"AAAA,mDAAmD,GAEnD;;;;;;;;;;;;IAYaQ,oBAAAA;;;IAmGAyC,4BAAAA;;;;8BA7G2B,0BAA0B;4BACR,wBAAwB;uBAC7B,iBAAiB;4BAC7B,wBAAwB;AAO1D,6BAA8D;IACnExC,MAAM;IACN,4EAA4E;IAC5EC,SAAS;IACTC,MAAM;AACR,EAAE;AAEF;;;;CAIC,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object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "InfoLabel", {
7
+ enumerable: true,
8
+ get: function() {
9
+ return InfoLabel;
10
+ }
11
+ });
12
+ const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
13
+ const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
14
+ const _renderInfoLabel = require("./renderInfoLabel");
15
+ const _useInfoLabel = require("./useInfoLabel");
16
+ const _useInfoLabelStylesstyles = require("./useInfoLabelStyles.styles");
17
+ const InfoLabel = /*#__PURE__*/ _react.forwardRef((props, ref)=>{
18
+ const state = (0, _useInfoLabel.useInfoLabel_unstable)(props, ref);
19
+ (0, _useInfoLabelStylesstyles.useInfoLabelStyles_unstable)(state);
20
+ return (0, _renderInfoLabel.renderInfoLabel_unstable)(state);
21
+ });
22
+ InfoLabel.displayName = 'InfoLabel';
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/InfoLabel/InfoLabel.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-deprecated */\n\n'use client';\n\nimport * as React from 'react';\n\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport type { InfoLabelProps } from './InfoLabel.types';\nimport { renderInfoLabel_unstable } from './renderInfoLabel';\nimport { useInfoLabel_unstable } from './useInfoLabel';\nimport { useInfoLabelStyles_unstable } from './useInfoLabelStyles.styles';\n\n/**\n * InfoLabel component\n *\n * @deprecated use {@link @fluentui/react-components#InfoLabel} from `\\@fluentui/react-components` or `\\@fluentui/react-infolabel` instead\n */\nexport const InfoLabel: ForwardRefComponent<InfoLabelProps> = React.forwardRef((props, ref) => {\n const state = useInfoLabel_unstable(props, ref);\n\n useInfoLabelStyles_unstable(state);\n return renderInfoLabel_unstable(state);\n});\n\nInfoLabel.displayName = 'InfoLabel';\n"],"names":["React","renderInfoLabel_unstable","useInfoLabel_unstable","useInfoLabelStyles_unstable","InfoLabel","forwardRef","props","ref","state","displayName"],"mappings":"AAAA,mDAAmD,GAEnD;;;;;;;;;;;;iEAEuB,QAAQ;iCAIU,oBAAoB;8BACvB,iBAAiB;0CACX,8BAA8B;AAOnE,MAAMI,YAAAA,WAAAA,GAAiDJ,OAAMK,UAAU,CAAC,CAACC,OAAOC;IACrF,MAAMC,YAAQN,mCAAAA,EAAsBI,OAAOC;QAE3CJ,qDAAAA,EAA4BK;IAC5B,WAAOP,yCAAAA,EAAyBO;AAClC,GAAG;AAEHJ,UAAUK,WAAW,GAAG"}
@@ -0,0 +1,8 @@
1
+ /* eslint-disable @typescript-eslint/no-deprecated */ /**
2
+ * State used in rendering InfoLabel
3
+ *
4
+ * @deprecated use {@link @fluentui/react-components#InfoLabel} from `\@fluentui/react-components` or `\@fluentui/react-infolabel` instead
5
+ */ "use strict";
6
+ Object.defineProperty(exports, "__esModule", {
7
+ value: true
8
+ });
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/InfoLabel/InfoLabel.types.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-deprecated */\nimport { Label } from '@fluentui/react-label';\nimport { InfoButton } from '../InfoButton';\nimport type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\nimport type { InfoButtonProps } from '../InfoButton';\n\n/**\n * @deprecated use {@link @fluentui/react-components#InfoLabel} from `\\@fluentui/react-components` or `\\@fluentui/react-infolabel` instead\n */\nexport type InfoLabelSlots = {\n root: NonNullable<Slot<'span'>>;\n\n /**\n * The Label component.\n *\n * It is not typically necessary to use this prop. The label text is the child of the `<InfoLabel>`, and other props\n * such as `size` and `required` should be set directly on the `InfoLabel`.\n *\n * This is the PRIMARY slot: all native properties specified directly on `<InfoLabel>` will be applied to this slot,\n * except `className` and `style`, which remain on the root slot.\n */\n label: NonNullable<Slot<typeof Label>>;\n\n /**\n * The InfoButton component.\n *\n * It is not typically necessary to use this prop. The content can be set using the `info` prop of the InfoLabel.\n */\n infoButton: Slot<typeof InfoButton>;\n};\n\n/**\n * InfoLabel Props\n *\n * @deprecated use {@link @fluentui/react-components#InfoLabel} from `\\@fluentui/react-components` or `\\@fluentui/react-infolabel` instead\n */\nexport type InfoLabelProps = ComponentProps<Partial<InfoLabelSlots>, 'label'> & {\n /**\n * The content of the InfoButton's popover.\n */\n info?: InfoButtonProps['info'];\n};\n\n/**\n * State used in rendering InfoLabel\n *\n * @deprecated use {@link @fluentui/react-components#InfoLabel} from `\\@fluentui/react-components` or `\\@fluentui/react-infolabel` instead\n */\nexport type InfoLabelState = ComponentState<InfoLabelSlots> & Pick<InfoLabelProps, 'size'>;\n"],"names":[],"mappings":"AAAA,mDAAmD,GA2CnD;;;;CAIC,GACD,WAA2F"}
@@ -0,0 +1,31 @@
1
+ /* eslint-disable @typescript-eslint/no-deprecated */ "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: all[name]
9
+ });
10
+ }
11
+ _export(exports, {
12
+ InfoLabel: function() {
13
+ return _InfoLabel.InfoLabel;
14
+ },
15
+ infoLabelClassNames: function() {
16
+ return _useInfoLabelStylesstyles.infoLabelClassNames;
17
+ },
18
+ renderInfoLabel_unstable: function() {
19
+ return _renderInfoLabel.renderInfoLabel_unstable;
20
+ },
21
+ useInfoLabelStyles_unstable: function() {
22
+ return _useInfoLabelStylesstyles.useInfoLabelStyles_unstable;
23
+ },
24
+ useInfoLabel_unstable: function() {
25
+ return _useInfoLabel.useInfoLabel_unstable;
26
+ }
27
+ });
28
+ const _InfoLabel = require("./InfoLabel");
29
+ const _renderInfoLabel = require("./renderInfoLabel");
30
+ const _useInfoLabel = require("./useInfoLabel");
31
+ const _useInfoLabelStylesstyles = require("./useInfoLabelStyles.styles");
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/InfoLabel/index.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-deprecated */\nexport { InfoLabel } from './InfoLabel';\nexport type { InfoLabelProps, InfoLabelSlots, InfoLabelState } from './InfoLabel.types';\nexport { renderInfoLabel_unstable } from './renderInfoLabel';\nexport { useInfoLabel_unstable } from './useInfoLabel';\nexport { infoLabelClassNames, useInfoLabelStyles_unstable } from './useInfoLabelStyles.styles';\n"],"names":["InfoLabel","renderInfoLabel_unstable","useInfoLabel_unstable","infoLabelClassNames","useInfoLabelStyles_unstable"],"mappings":"AAAA,mDAAmD,GACnD;;;;;;;;;;;;eAASA,oBAAS;;;eAITG,6CAAmB;;;eAFnBF,yCAAwB;;;eAEHG,qDAA2B;;;eADhDF,mCAAqB;;;2BAHJ,cAAc;iCAEC,oBAAoB;8BACvB,iBAAiB;0CACU,8BAA8B"}
@@ -0,0 +1,21 @@
1
+ /* eslint-disable @typescript-eslint/no-deprecated */ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "renderInfoLabel_unstable", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return renderInfoLabel_unstable;
9
+ }
10
+ });
11
+ const _jsxruntime = require("@fluentui/react-jsx-runtime/jsx-runtime");
12
+ const _reactutilities = require("@fluentui/react-utilities");
13
+ const renderInfoLabel_unstable = (state)=>{
14
+ (0, _reactutilities.assertSlots)(state);
15
+ return /*#__PURE__*/ (0, _jsxruntime.jsxs)(state.root, {
16
+ children: [
17
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(state.label, {}),
18
+ state.infoButton && /*#__PURE__*/ (0, _jsxruntime.jsx)(state.infoButton, {})
19
+ ]
20
+ });
21
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/InfoLabel/renderInfoLabel.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-deprecated */\n/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\n\nimport type * as React from 'react';\nimport { assertSlots } from '@fluentui/react-utilities';\nimport type { InfoLabelSlots, InfoLabelState } from './InfoLabel.types';\n\n/**\n * Render the final JSX of InfoLabel\n *\n * @deprecated use {@link @fluentui/react-components#InfoLabel} from `\\@fluentui/react-components` or `\\@fluentui/react-infolabel` instead\n */\nexport const renderInfoLabel_unstable = (state: InfoLabelState): React.ReactElement => {\n assertSlots<InfoLabelSlots>(state);\n\n return (\n <state.root>\n <state.label />\n {state.infoButton && <state.infoButton />}\n </state.root>\n );\n};\n"],"names":["assertSlots","renderInfoLabel_unstable","state","root","label","infoButton"],"mappings":"AAAA,mDAAmD,GACnD,0BAA0B,GAC1B;;;;;;;;;;4BAAA,iCAAiD;gCAGrB,4BAA4B;AAQjD,MAAMC,2BAA2B,CAACC;QACvCF,2BAAAA,EAA4BE;IAE5B,OAAA,WAAA,OACE,gBAAA,EAACA,MAAMC,IAAI,EAAA;;8BACT,eAAA,EAACD,MAAME,KAAK,EAAA,CAAA;YACXF,MAAMG,UAAU,IAAA,WAAA,OAAI,eAAA,EAACH,MAAMG,UAAU,EAAA,CAAA;;;AAG5C,EAAE"}