@fluentui/react-teaching-popover 9.5.7 → 9.6.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 +15 -2
- package/lib/components/TeachingPopoverBody/useTeachingPopoverBodyStyles.styles.raw.js +53 -0
- package/lib/components/TeachingPopoverBody/useTeachingPopoverBodyStyles.styles.raw.js.map +1 -0
- package/lib/components/TeachingPopoverCarousel/useTeachingPopoverCarouselStyles.styles.raw.js +14 -0
- package/lib/components/TeachingPopoverCarousel/useTeachingPopoverCarouselStyles.styles.raw.js.map +1 -0
- package/lib/components/TeachingPopoverCarouselCard/useTeachingPopoverCarouselCardStyles.styles.raw.js +13 -0
- package/lib/components/TeachingPopoverCarouselCard/useTeachingPopoverCarouselCardStyles.styles.raw.js.map +1 -0
- package/lib/components/TeachingPopoverCarouselFooter/useTeachingPopoverCarouselFooterStyles.styles.raw.js +34 -0
- package/lib/components/TeachingPopoverCarouselFooter/useTeachingPopoverCarouselFooterStyles.styles.raw.js.map +1 -0
- package/lib/components/TeachingPopoverCarouselFooterButton/useTeachingPopoverCarouselFooterButtonStyles.styles.raw.js +54 -0
- package/lib/components/TeachingPopoverCarouselFooterButton/useTeachingPopoverCarouselFooterButtonStyles.styles.raw.js.map +1 -0
- package/lib/components/TeachingPopoverCarouselNav/useTeachingPopoverCarouselNavStyles.styles.raw.js +26 -0
- package/lib/components/TeachingPopoverCarouselNav/useTeachingPopoverCarouselNavStyles.styles.raw.js.map +1 -0
- package/lib/components/TeachingPopoverCarouselNavButton/useTeachingPopoverCarouselNavButtonStyles.styles.raw.js +71 -0
- package/lib/components/TeachingPopoverCarouselNavButton/useTeachingPopoverCarouselNavButtonStyles.styles.raw.js.map +1 -0
- package/lib/components/TeachingPopoverCarouselPageCount/useTeachingPopoverCarouselPageCountStyles.styles.raw.js +21 -0
- package/lib/components/TeachingPopoverCarouselPageCount/useTeachingPopoverCarouselPageCountStyles.styles.raw.js.map +1 -0
- package/lib/components/TeachingPopoverFooter/useTeachingPopoverFooterStyles.styles.raw.js +55 -0
- package/lib/components/TeachingPopoverFooter/useTeachingPopoverFooterStyles.styles.raw.js.map +1 -0
- package/lib/components/TeachingPopoverHeader/useTeachingPopoverHeaderStyles.styles.raw.js +81 -0
- package/lib/components/TeachingPopoverHeader/useTeachingPopoverHeaderStyles.styles.raw.js.map +1 -0
- package/lib/components/TeachingPopoverSurface/useTeachingPopoverSurfaceStyles.styles.raw.js +24 -0
- package/lib/components/TeachingPopoverSurface/useTeachingPopoverSurfaceStyles.styles.raw.js.map +1 -0
- package/lib/components/TeachingPopoverTitle/useTeachingPopoverTitleStyles.styles.raw.js +56 -0
- package/lib/components/TeachingPopoverTitle/useTeachingPopoverTitleStyles.styles.raw.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverBody/useTeachingPopoverBodyStyles.styles.raw.js +74 -0
- package/lib-commonjs/components/TeachingPopoverBody/useTeachingPopoverBodyStyles.styles.raw.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarousel/useTeachingPopoverCarouselStyles.styles.raw.js +32 -0
- package/lib-commonjs/components/TeachingPopoverCarousel/useTeachingPopoverCarouselStyles.styles.raw.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarouselCard/useTeachingPopoverCarouselCardStyles.styles.raw.js +31 -0
- package/lib-commonjs/components/TeachingPopoverCarouselCard/useTeachingPopoverCarouselCardStyles.styles.raw.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarouselFooter/useTeachingPopoverCarouselFooterStyles.styles.raw.js +52 -0
- package/lib-commonjs/components/TeachingPopoverCarouselFooter/useTeachingPopoverCarouselFooterStyles.styles.raw.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarouselFooterButton/useTeachingPopoverCarouselFooterButtonStyles.styles.raw.js +70 -0
- package/lib-commonjs/components/TeachingPopoverCarouselFooterButton/useTeachingPopoverCarouselFooterButtonStyles.styles.raw.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarouselNav/useTeachingPopoverCarouselNavStyles.styles.raw.js +44 -0
- package/lib-commonjs/components/TeachingPopoverCarouselNav/useTeachingPopoverCarouselNavStyles.styles.raw.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarouselNavButton/useTeachingPopoverCarouselNavButtonStyles.styles.raw.js +87 -0
- package/lib-commonjs/components/TeachingPopoverCarouselNavButton/useTeachingPopoverCarouselNavButtonStyles.styles.raw.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarouselPageCount/useTeachingPopoverCarouselPageCountStyles.styles.raw.js +37 -0
- package/lib-commonjs/components/TeachingPopoverCarouselPageCount/useTeachingPopoverCarouselPageCountStyles.styles.raw.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverFooter/useTeachingPopoverFooterStyles.styles.raw.js +73 -0
- package/lib-commonjs/components/TeachingPopoverFooter/useTeachingPopoverFooterStyles.styles.raw.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverHeader/useTeachingPopoverHeaderStyles.styles.raw.js +99 -0
- package/lib-commonjs/components/TeachingPopoverHeader/useTeachingPopoverHeaderStyles.styles.raw.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverSurface/useTeachingPopoverSurfaceStyles.styles.raw.js +40 -0
- package/lib-commonjs/components/TeachingPopoverSurface/useTeachingPopoverSurfaceStyles.styles.raw.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverTitle/useTeachingPopoverTitleStyles.styles.raw.js +74 -0
- package/lib-commonjs/components/TeachingPopoverTitle/useTeachingPopoverTitleStyles.styles.raw.js.map +1 -0
- package/package.json +5 -5
package/lib-commonjs/components/TeachingPopoverFooter/useTeachingPopoverFooterStyles.styles.raw.js
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
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: all[name]
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
_export(exports, {
|
|
12
|
+
teachingPopoverFooterClassNames: function() {
|
|
13
|
+
return teachingPopoverFooterClassNames;
|
|
14
|
+
},
|
|
15
|
+
useTeachingPopoverFooterStyles_unstable: function() {
|
|
16
|
+
return useTeachingPopoverFooterStyles_unstable;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
const _react = require("@griffel/react");
|
|
20
|
+
const _reacttheme = require("@fluentui/react-theme");
|
|
21
|
+
const teachingPopoverFooterClassNames = {
|
|
22
|
+
root: 'fui-TeachingPopoverFooter',
|
|
23
|
+
primary: 'fui-TeachingPopoverFooter__primary',
|
|
24
|
+
secondary: 'fui-TeachingPopoverFooter__secondary'
|
|
25
|
+
};
|
|
26
|
+
const useStyles = (0, _react.makeStyles)({
|
|
27
|
+
root: {
|
|
28
|
+
display: 'flex',
|
|
29
|
+
gap: '8px',
|
|
30
|
+
paddingTop: '12px'
|
|
31
|
+
},
|
|
32
|
+
rootVertical: {
|
|
33
|
+
flexDirection: 'column'
|
|
34
|
+
},
|
|
35
|
+
rootHorizontal: {
|
|
36
|
+
flexDirection: 'row',
|
|
37
|
+
justifyContent: 'flex-end'
|
|
38
|
+
},
|
|
39
|
+
buttonRootVertical: {
|
|
40
|
+
width: 'auto',
|
|
41
|
+
borderRadius: '4px'
|
|
42
|
+
},
|
|
43
|
+
buttonRootHorizontal: {
|
|
44
|
+
minWidth: '96px',
|
|
45
|
+
borderRadius: '4px'
|
|
46
|
+
},
|
|
47
|
+
brandSecondary: {
|
|
48
|
+
..._react.shorthands.borderColor(_reacttheme.tokens.colorNeutralForegroundOnBrand)
|
|
49
|
+
},
|
|
50
|
+
brandPrimary: {
|
|
51
|
+
color: _reacttheme.tokens.colorBrandForeground1,
|
|
52
|
+
backgroundColor: _reacttheme.tokens.colorNeutralForegroundOnBrand,
|
|
53
|
+
':hover': {
|
|
54
|
+
color: _reacttheme.tokens.colorCompoundBrandForeground1Hover,
|
|
55
|
+
backgroundColor: _reacttheme.tokens.colorNeutralForegroundOnBrand
|
|
56
|
+
},
|
|
57
|
+
':hover:active': {
|
|
58
|
+
color: _reacttheme.tokens.colorCompoundBrandForeground1Pressed,
|
|
59
|
+
backgroundColor: _reacttheme.tokens.colorNeutralForegroundOnBrand
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
const useTeachingPopoverFooterStyles_unstable = (state)=>{
|
|
64
|
+
'use no memo';
|
|
65
|
+
const styles = useStyles();
|
|
66
|
+
const { appearance, footerLayout } = state;
|
|
67
|
+
state.root.className = (0, _react.mergeClasses)(teachingPopoverFooterClassNames.root, styles.root, footerLayout === 'horizontal' ? styles.rootHorizontal : styles.rootVertical, state.root.className);
|
|
68
|
+
if (state.secondary) {
|
|
69
|
+
state.secondary.className = (0, _react.mergeClasses)(teachingPopoverFooterClassNames.secondary, footerLayout === 'horizontal' ? styles.buttonRootHorizontal : styles.buttonRootVertical, appearance === 'brand' ? styles.brandSecondary : undefined, state.secondary.className);
|
|
70
|
+
}
|
|
71
|
+
state.primary.className = (0, _react.mergeClasses)(teachingPopoverFooterClassNames.primary, footerLayout === 'horizontal' ? styles.buttonRootHorizontal : styles.buttonRootVertical, appearance === 'brand' ? styles.brandPrimary : undefined, state.primary.className);
|
|
72
|
+
return state;
|
|
73
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/TeachingPopoverFooter/useTeachingPopoverFooterStyles.styles.ts"],"sourcesContent":["import { makeStyles, mergeClasses, shorthands } from '@griffel/react';\nimport type { TeachingPopoverFooterSlots, TeachingPopoverFooterState } from './TeachingPopoverFooter.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport { tokens } from '@fluentui/react-theme';\n\nexport const teachingPopoverFooterClassNames: SlotClassNames<TeachingPopoverFooterSlots> = {\n root: 'fui-TeachingPopoverFooter',\n primary: 'fui-TeachingPopoverFooter__primary',\n secondary: 'fui-TeachingPopoverFooter__secondary',\n};\n\nconst useStyles = makeStyles({\n root: {\n display: 'flex',\n gap: '8px',\n paddingTop: '12px',\n },\n rootVertical: {\n flexDirection: 'column',\n },\n rootHorizontal: {\n flexDirection: 'row',\n justifyContent: 'flex-end',\n },\n buttonRootVertical: {\n width: 'auto',\n borderRadius: '4px',\n },\n buttonRootHorizontal: {\n minWidth: '96px',\n borderRadius: '4px',\n },\n brandSecondary: {\n ...shorthands.borderColor(tokens.colorNeutralForegroundOnBrand),\n },\n brandPrimary: {\n color: tokens.colorBrandForeground1,\n backgroundColor: tokens.colorNeutralForegroundOnBrand,\n ':hover': {\n color: tokens.colorCompoundBrandForeground1Hover,\n backgroundColor: tokens.colorNeutralForegroundOnBrand,\n },\n ':hover:active': {\n color: tokens.colorCompoundBrandForeground1Pressed,\n backgroundColor: tokens.colorNeutralForegroundOnBrand,\n },\n },\n});\n\n/** Applies style classnames to slots */\nexport const useTeachingPopoverFooterStyles_unstable = (state: TeachingPopoverFooterState) => {\n 'use no memo';\n\n const styles = useStyles();\n const { appearance, footerLayout } = state;\n\n state.root.className = mergeClasses(\n teachingPopoverFooterClassNames.root,\n styles.root,\n footerLayout === 'horizontal' ? styles.rootHorizontal : styles.rootVertical,\n state.root.className,\n );\n if (state.secondary) {\n state.secondary.className = mergeClasses(\n teachingPopoverFooterClassNames.secondary,\n footerLayout === 'horizontal' ? styles.buttonRootHorizontal : styles.buttonRootVertical,\n appearance === 'brand' ? styles.brandSecondary : undefined,\n state.secondary.className,\n );\n }\n state.primary.className = mergeClasses(\n teachingPopoverFooterClassNames.primary,\n footerLayout === 'horizontal' ? styles.buttonRootHorizontal : styles.buttonRootVertical,\n appearance === 'brand' ? styles.brandPrimary : undefined,\n state.primary.className,\n );\n\n return state;\n};\n"],"names":["teachingPopoverFooterClassNames","useTeachingPopoverFooterStyles_unstable","root","primary","secondary","useStyles","makeStyles","display","gap","paddingTop","rootVertical","flexDirection","rootHorizontal","justifyContent","buttonRootVertical","width","borderRadius","buttonRootHorizontal","minWidth","brandSecondary","shorthands","borderColor","tokens","colorNeutralForegroundOnBrand","brandPrimary","color","colorBrandForeground1","backgroundColor","colorCompoundBrandForeground1Hover","colorCompoundBrandForeground1Pressed","state","styles","appearance","footerLayout","className","mergeClasses","undefined"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAKaA,+BAAAA;eAAAA;;IA6CAC,uCAAAA;eAAAA;;;uBAlDwC;4BAG9B;AAEhB,MAAMD,kCAA8E;IACzFE,MAAM;IACNC,SAAS;IACTC,WAAW;AACb;AAEA,MAAMC,YAAYC,IAAAA,iBAAAA,EAAW;IAC3BJ,MAAM;QACJK,SAAS;QACTC,KAAK;QACLC,YAAY;IACd;IACAC,cAAc;QACZC,eAAe;IACjB;IACAC,gBAAgB;QACdD,eAAe;QACfE,gBAAgB;IAClB;IACAC,oBAAoB;QAClBC,OAAO;QACPC,cAAc;IAChB;IACAC,sBAAsB;QACpBC,UAAU;QACVF,cAAc;IAChB;IACAG,gBAAgB;QACd,GAAGC,iBAAAA,CAAWC,WAAW,CAACC,kBAAAA,CAAOC,6BAA6B,CAAC;IACjE;IACAC,cAAc;QACZC,OAAOH,kBAAAA,CAAOI,qBAAqB;QACnCC,iBAAiBL,kBAAAA,CAAOC,6BAA6B;QACrD,UAAU;YACRE,OAAOH,kBAAAA,CAAOM,kCAAkC;YAChDD,iBAAiBL,kBAAAA,CAAOC,6BAA6B;QACvD;QACA,iBAAiB;YACfE,OAAOH,kBAAAA,CAAOO,oCAAoC;YAClDF,iBAAiBL,kBAAAA,CAAOC,6BAA6B;QACvD;IACF;AACF;AAGO,MAAMtB,0CAA0C,CAAC6B;IACtD;IAEA,MAAMC,SAAS1B;IACf,MAAM,EAAE2B,UAAU,EAAEC,YAAY,EAAE,GAAGH;IAErCA,MAAM5B,IAAI,CAACgC,SAAS,GAAGC,IAAAA,mBAAAA,EACrBnC,gCAAgCE,IAAI,EACpC6B,OAAO7B,IAAI,EACX+B,iBAAiB,eAAeF,OAAOnB,cAAc,GAAGmB,OAAOrB,YAAY,EAC3EoB,MAAM5B,IAAI,CAACgC,SAAS;IAEtB,IAAIJ,MAAM1B,SAAS,EAAE;QACnB0B,MAAM1B,SAAS,CAAC8B,SAAS,GAAGC,IAAAA,mBAAAA,EAC1BnC,gCAAgCI,SAAS,EACzC6B,iBAAiB,eAAeF,OAAOd,oBAAoB,GAAGc,OAAOjB,kBAAkB,EACvFkB,eAAe,UAAUD,OAAOZ,cAAc,GAAGiB,WACjDN,MAAM1B,SAAS,CAAC8B,SAAS;IAE7B;IACAJ,MAAM3B,OAAO,CAAC+B,SAAS,GAAGC,IAAAA,mBAAAA,EACxBnC,gCAAgCG,OAAO,EACvC8B,iBAAiB,eAAeF,OAAOd,oBAAoB,GAAGc,OAAOjB,kBAAkB,EACvFkB,eAAe,UAAUD,OAAOP,YAAY,GAAGY,WAC/CN,MAAM3B,OAAO,CAAC+B,SAAS;IAGzB,OAAOJ;AACT"}
|
package/lib-commonjs/components/TeachingPopoverHeader/useTeachingPopoverHeaderStyles.styles.raw.js
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
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: all[name]
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
_export(exports, {
|
|
12
|
+
teachingPopoverHeaderClassNames: function() {
|
|
13
|
+
return teachingPopoverHeaderClassNames;
|
|
14
|
+
},
|
|
15
|
+
useTeachingPopoverHeaderStyles_unstable: function() {
|
|
16
|
+
return useTeachingPopoverHeaderStyles_unstable;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
const _react = require("@griffel/react");
|
|
20
|
+
const _reacttabster = require("@fluentui/react-tabster");
|
|
21
|
+
const _reacttheme = require("@fluentui/react-theme");
|
|
22
|
+
const teachingPopoverHeaderClassNames = {
|
|
23
|
+
root: 'fui-TeachingPopoverHeader',
|
|
24
|
+
dismissButton: 'fui-TeachingPopoverHeader__dismissButton',
|
|
25
|
+
icon: 'fui-TeachingPopoverHeader__icon'
|
|
26
|
+
};
|
|
27
|
+
const useStyles = (0, _react.makeStyles)({
|
|
28
|
+
root: {
|
|
29
|
+
display: 'flex',
|
|
30
|
+
flexDirection: 'row',
|
|
31
|
+
color: _reacttheme.tokens.colorNeutralForeground3,
|
|
32
|
+
fontWeight: _reacttheme.tokens.fontWeightSemibold,
|
|
33
|
+
fontSize: _reacttheme.tokens.fontSizeBase200,
|
|
34
|
+
lineHeight: _reacttheme.tokens.lineHeightBase200,
|
|
35
|
+
paddingBottom: _reacttheme.tokens.spacingVerticalXS,
|
|
36
|
+
alignItems: 'center',
|
|
37
|
+
marginTop: _reacttheme.tokens.spacingHorizontalNone,
|
|
38
|
+
marginBottom: _reacttheme.tokens.spacingHorizontalNone
|
|
39
|
+
},
|
|
40
|
+
rootBrand: {
|
|
41
|
+
color: _reacttheme.tokens.colorNeutralForegroundOnBrand
|
|
42
|
+
},
|
|
43
|
+
dismissButton: {
|
|
44
|
+
color: _reacttheme.tokens.colorNeutralForeground2,
|
|
45
|
+
position: 'relative',
|
|
46
|
+
border: `${_reacttheme.tokens.strokeWidthThin} solid ${_reacttheme.tokens.colorTransparentStroke}`,
|
|
47
|
+
display: 'flex',
|
|
48
|
+
alignItems: 'center',
|
|
49
|
+
cursor: 'pointer',
|
|
50
|
+
..._reacttheme.typographyStyles.body1,
|
|
51
|
+
backgroundColor: _reacttheme.tokens.colorTransparentBackground,
|
|
52
|
+
boxSizing: 'border-box',
|
|
53
|
+
borderTopRightRadius: _reacttheme.tokens.borderRadiusNone,
|
|
54
|
+
borderBottomRightRadius: _reacttheme.tokens.borderRadiusNone,
|
|
55
|
+
borderRightStyle: 'none',
|
|
56
|
+
marginInlineStart: 'auto',
|
|
57
|
+
padding: `${_reacttheme.tokens.spacingVerticalXS} ${_reacttheme.tokens.spacingHorizontalXS}`,
|
|
58
|
+
...(0, _reacttabster.createCustomFocusIndicatorStyle)({
|
|
59
|
+
outline: `${_reacttheme.tokens.strokeWidthThick} solid ${_reacttheme.tokens.colorStrokeFocus2}`,
|
|
60
|
+
borderRadius: _reacttheme.tokens.borderRadiusMedium,
|
|
61
|
+
..._react.shorthands.borderColor('transparent')
|
|
62
|
+
})
|
|
63
|
+
},
|
|
64
|
+
dismissBrand: {
|
|
65
|
+
color: _reacttheme.tokens.colorNeutralForegroundOnBrand
|
|
66
|
+
},
|
|
67
|
+
icon: {
|
|
68
|
+
height: _reacttheme.tokens.fontSizeBase200,
|
|
69
|
+
width: _reacttheme.tokens.fontSizeBase200,
|
|
70
|
+
lineHeight: _reacttheme.tokens.lineHeightBase200,
|
|
71
|
+
fontSize: _reacttheme.tokens.fontSizeBase200,
|
|
72
|
+
alignItems: 'center',
|
|
73
|
+
boxSizing: 'content-box',
|
|
74
|
+
display: 'inline-flex',
|
|
75
|
+
justifyContent: 'center',
|
|
76
|
+
textDecorationLine: 'none',
|
|
77
|
+
verticalAlign: 'middle',
|
|
78
|
+
position: 'relative',
|
|
79
|
+
backgroundColor: _reacttheme.tokens.colorTransparentBackground,
|
|
80
|
+
color: _reacttheme.tokens.colorNeutralForeground2,
|
|
81
|
+
marginInlineEnd: _reacttheme.tokens.spacingHorizontalXS
|
|
82
|
+
},
|
|
83
|
+
iconBrand: {
|
|
84
|
+
color: _reacttheme.tokens.colorNeutralForegroundOnBrand
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
const useTeachingPopoverHeaderStyles_unstable = (state)=>{
|
|
88
|
+
'use no memo';
|
|
89
|
+
const styles = useStyles();
|
|
90
|
+
const { appearance } = state;
|
|
91
|
+
state.root.className = (0, _react.mergeClasses)(teachingPopoverHeaderClassNames.root, styles.root, appearance === 'brand' && styles.rootBrand, state.root.className);
|
|
92
|
+
if (state.dismissButton) {
|
|
93
|
+
state.dismissButton.className = (0, _react.mergeClasses)(teachingPopoverHeaderClassNames.dismissButton, styles.dismissButton, appearance === 'brand' ? styles.dismissBrand : undefined, state.dismissButton.className);
|
|
94
|
+
}
|
|
95
|
+
if (state.icon) {
|
|
96
|
+
state.icon.className = (0, _react.mergeClasses)(teachingPopoverHeaderClassNames.icon, styles.icon, appearance === 'brand' ? styles.iconBrand : undefined, state.icon.className);
|
|
97
|
+
}
|
|
98
|
+
return state;
|
|
99
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/TeachingPopoverHeader/useTeachingPopoverHeaderStyles.styles.ts"],"sourcesContent":["import { shorthands, makeStyles, mergeClasses } from '@griffel/react';\nimport { createCustomFocusIndicatorStyle } from '@fluentui/react-tabster';\nimport { tokens, typographyStyles } from '@fluentui/react-theme';\nimport type { TeachingPopoverHeaderSlots, TeachingPopoverHeaderState } from './TeachingPopoverHeader.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\n\nexport const teachingPopoverHeaderClassNames: SlotClassNames<TeachingPopoverHeaderSlots> = {\n root: 'fui-TeachingPopoverHeader',\n dismissButton: 'fui-TeachingPopoverHeader__dismissButton',\n icon: 'fui-TeachingPopoverHeader__icon',\n};\n\nconst useStyles = makeStyles({\n root: {\n display: 'flex',\n flexDirection: 'row',\n color: tokens.colorNeutralForeground3,\n fontWeight: tokens.fontWeightSemibold,\n fontSize: tokens.fontSizeBase200,\n lineHeight: tokens.lineHeightBase200,\n paddingBottom: tokens.spacingVerticalXS,\n alignItems: 'center',\n marginTop: tokens.spacingHorizontalNone,\n marginBottom: tokens.spacingHorizontalNone,\n },\n rootBrand: {\n color: tokens.colorNeutralForegroundOnBrand,\n },\n dismissButton: {\n color: tokens.colorNeutralForeground2,\n position: 'relative',\n border: `${tokens.strokeWidthThin} solid ${tokens.colorTransparentStroke}`,\n display: 'flex',\n alignItems: 'center',\n cursor: 'pointer',\n ...typographyStyles.body1,\n backgroundColor: tokens.colorTransparentBackground,\n boxSizing: 'border-box',\n borderTopRightRadius: tokens.borderRadiusNone,\n borderBottomRightRadius: tokens.borderRadiusNone,\n borderRightStyle: 'none',\n marginInlineStart: 'auto',\n padding: `${tokens.spacingVerticalXS} ${tokens.spacingHorizontalXS}`,\n ...createCustomFocusIndicatorStyle({\n outline: `${tokens.strokeWidthThick} solid ${tokens.colorStrokeFocus2}`,\n borderRadius: tokens.borderRadiusMedium,\n ...shorthands.borderColor('transparent'),\n }),\n },\n dismissBrand: {\n color: tokens.colorNeutralForegroundOnBrand,\n },\n icon: {\n height: tokens.fontSizeBase200,\n width: tokens.fontSizeBase200,\n lineHeight: tokens.lineHeightBase200,\n fontSize: tokens.fontSizeBase200,\n alignItems: 'center',\n boxSizing: 'content-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 marginInlineEnd: tokens.spacingHorizontalXS,\n },\n iconBrand: {\n color: tokens.colorNeutralForegroundOnBrand,\n },\n});\n\n/** Applies style classnames to slots */\nexport const useTeachingPopoverHeaderStyles_unstable = (state: TeachingPopoverHeaderState) => {\n 'use no memo';\n\n const styles = useStyles();\n const { appearance } = state;\n\n state.root.className = mergeClasses(\n teachingPopoverHeaderClassNames.root,\n styles.root,\n appearance === 'brand' && styles.rootBrand,\n state.root.className,\n );\n\n if (state.dismissButton) {\n state.dismissButton.className = mergeClasses(\n teachingPopoverHeaderClassNames.dismissButton,\n styles.dismissButton,\n appearance === 'brand' ? styles.dismissBrand : undefined,\n state.dismissButton.className,\n );\n }\n\n if (state.icon) {\n state.icon.className = mergeClasses(\n teachingPopoverHeaderClassNames.icon,\n styles.icon,\n appearance === 'brand' ? styles.iconBrand : undefined,\n state.icon.className,\n );\n }\n return state;\n};\n"],"names":["teachingPopoverHeaderClassNames","useTeachingPopoverHeaderStyles_unstable","root","dismissButton","icon","useStyles","makeStyles","display","flexDirection","color","tokens","colorNeutralForeground3","fontWeight","fontWeightSemibold","fontSize","fontSizeBase200","lineHeight","lineHeightBase200","paddingBottom","spacingVerticalXS","alignItems","marginTop","spacingHorizontalNone","marginBottom","rootBrand","colorNeutralForegroundOnBrand","colorNeutralForeground2","position","border","strokeWidthThin","colorTransparentStroke","cursor","typographyStyles","body1","backgroundColor","colorTransparentBackground","boxSizing","borderTopRightRadius","borderRadiusNone","borderBottomRightRadius","borderRightStyle","marginInlineStart","padding","spacingHorizontalXS","createCustomFocusIndicatorStyle","outline","strokeWidthThick","colorStrokeFocus2","borderRadius","borderRadiusMedium","shorthands","borderColor","dismissBrand","height","width","justifyContent","textDecorationLine","verticalAlign","marginInlineEnd","iconBrand","state","styles","appearance","className","mergeClasses","undefined"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"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"}
|
package/lib-commonjs/components/TeachingPopoverSurface/useTeachingPopoverSurfaceStyles.styles.raw.js
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
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: all[name]
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
_export(exports, {
|
|
12
|
+
teachingPopoverSurfaceClassNames: function() {
|
|
13
|
+
return teachingPopoverSurfaceClassNames;
|
|
14
|
+
},
|
|
15
|
+
useTeachingPopoverSurfaceStyles_unstable: function() {
|
|
16
|
+
return useTeachingPopoverSurfaceStyles_unstable;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
const _react = require("@griffel/react");
|
|
20
|
+
const _reactpopover = require("@fluentui/react-popover");
|
|
21
|
+
const _reacttheme = require("@fluentui/react-theme");
|
|
22
|
+
const teachingPopoverSurfaceClassNames = {
|
|
23
|
+
root: 'fui-TeachingPopoverSurface'
|
|
24
|
+
};
|
|
25
|
+
const useStyles = (0, _react.makeStyles)({
|
|
26
|
+
root: {
|
|
27
|
+
padding: `${_reacttheme.tokens.spacingVerticalL} ${_reacttheme.tokens.spacingVerticalL}`,
|
|
28
|
+
borderRadius: _reacttheme.tokens.borderRadiusXLarge,
|
|
29
|
+
minWidth: '320px',
|
|
30
|
+
boxSizing: 'border-box'
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
const useTeachingPopoverSurfaceStyles_unstable = (state)=>{
|
|
34
|
+
'use no memo';
|
|
35
|
+
const styles = useStyles();
|
|
36
|
+
// Make sure to merge teaching bubble surface prior to popover styles
|
|
37
|
+
state.root.className = (0, _react.mergeClasses)(teachingPopoverSurfaceClassNames.root, styles.root, state.root.className);
|
|
38
|
+
const updatedState = (0, _reactpopover.usePopoverSurfaceStyles_unstable)(state);
|
|
39
|
+
return updatedState;
|
|
40
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/TeachingPopoverSurface/useTeachingPopoverSurfaceStyles.styles.ts"],"sourcesContent":["import { makeStyles, mergeClasses } from '@griffel/react';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport { TeachingPopoverSurfaceSlots, TeachingPopoverSurfaceState } from './TeachingPopoverSurface.types';\nimport { usePopoverSurfaceStyles_unstable } from '@fluentui/react-popover';\nimport { tokens } from '@fluentui/react-theme';\n\nexport const teachingPopoverSurfaceClassNames: SlotClassNames<TeachingPopoverSurfaceSlots> = {\n root: 'fui-TeachingPopoverSurface',\n};\n\nconst useStyles = makeStyles({\n root: {\n padding: `${tokens.spacingVerticalL} ${tokens.spacingVerticalL}`,\n borderRadius: tokens.borderRadiusXLarge,\n minWidth: '320px',\n boxSizing: 'border-box',\n },\n});\n\n/**\n * Apply styling to the TeachingPopoverSurface slots based on the state\n */\nexport const useTeachingPopoverSurfaceStyles_unstable = (\n state: TeachingPopoverSurfaceState,\n): TeachingPopoverSurfaceState => {\n 'use no memo';\n\n const styles = useStyles();\n\n // Make sure to merge teaching bubble surface prior to popover styles\n state.root.className = mergeClasses(teachingPopoverSurfaceClassNames.root, styles.root, state.root.className);\n\n const updatedState = usePopoverSurfaceStyles_unstable(state);\n\n return updatedState;\n};\n"],"names":["teachingPopoverSurfaceClassNames","useTeachingPopoverSurfaceStyles_unstable","root","useStyles","makeStyles","padding","tokens","spacingVerticalL","borderRadius","borderRadiusXLarge","minWidth","boxSizing","state","styles","className","mergeClasses","updatedState","usePopoverSurfaceStyles_unstable"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAMaA,gCAAAA;eAAAA;;IAgBAC,wCAAAA;eAAAA;;;uBAtB4B;8BAGQ;4BAC1B;AAEhB,MAAMD,mCAAgF;IAC3FE,MAAM;AACR;AAEA,MAAMC,YAAYC,IAAAA,iBAAAA,EAAW;IAC3BF,MAAM;QACJG,SAAS,CAAC,EAAEC,kBAAAA,CAAOC,gBAAgB,CAAC,CAAC,EAAED,kBAAAA,CAAOC,gBAAgB,CAAC,CAAC;QAChEC,cAAcF,kBAAAA,CAAOG,kBAAkB;QACvCC,UAAU;QACVC,WAAW;IACb;AACF;AAKO,MAAMV,2CAA2C,CACtDW;IAEA;IAEA,MAAMC,SAASV;IAEf,qEAAqE;IACrES,MAAMV,IAAI,CAACY,SAAS,GAAGC,IAAAA,mBAAAA,EAAaf,iCAAiCE,IAAI,EAAEW,OAAOX,IAAI,EAAEU,MAAMV,IAAI,CAACY,SAAS;IAE5G,MAAME,eAAeC,IAAAA,8CAAAA,EAAiCL;IAEtD,OAAOI;AACT"}
|
package/lib-commonjs/components/TeachingPopoverTitle/useTeachingPopoverTitleStyles.styles.raw.js
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
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: all[name]
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
_export(exports, {
|
|
12
|
+
teachingPopoverTitleClassNames: function() {
|
|
13
|
+
return teachingPopoverTitleClassNames;
|
|
14
|
+
},
|
|
15
|
+
useTeachingPopoverTitleStyles_unstable: function() {
|
|
16
|
+
return useTeachingPopoverTitleStyles_unstable;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
const _react = require("@griffel/react");
|
|
20
|
+
const _reacttabster = require("@fluentui/react-tabster");
|
|
21
|
+
const _reacttheme = require("@fluentui/react-theme");
|
|
22
|
+
const teachingPopoverTitleClassNames = {
|
|
23
|
+
root: 'fui-TeachingPopoverTitle',
|
|
24
|
+
dismissButton: 'fui-TeachingPopoverTitle__dismissButton'
|
|
25
|
+
};
|
|
26
|
+
const useStyles = (0, _react.makeStyles)({
|
|
27
|
+
root: {
|
|
28
|
+
display: 'flex',
|
|
29
|
+
flexDirection: 'row',
|
|
30
|
+
justifyContent: 'space-between',
|
|
31
|
+
fontSize: _reacttheme.tokens.fontSizeBase400,
|
|
32
|
+
fontWeight: _reacttheme.tokens.fontWeightSemibold,
|
|
33
|
+
color: _reacttheme.tokens.colorNeutralForeground1,
|
|
34
|
+
lineHeight: _reacttheme.tokens.lineHeightBase400,
|
|
35
|
+
paddingBottom: _reacttheme.tokens.spacingVerticalS,
|
|
36
|
+
marginTop: _reacttheme.tokens.spacingHorizontalNone,
|
|
37
|
+
marginBottom: _reacttheme.tokens.spacingHorizontalNone
|
|
38
|
+
},
|
|
39
|
+
rootBrand: {
|
|
40
|
+
color: _reacttheme.tokens.colorNeutralForegroundOnBrand
|
|
41
|
+
},
|
|
42
|
+
dismissButton: {
|
|
43
|
+
position: 'relative',
|
|
44
|
+
border: `${_reacttheme.tokens.strokeWidthThin} solid ${_reacttheme.tokens.colorTransparentStroke}`,
|
|
45
|
+
display: 'flex',
|
|
46
|
+
alignItems: 'center',
|
|
47
|
+
cursor: 'pointer',
|
|
48
|
+
..._reacttheme.typographyStyles.body1,
|
|
49
|
+
backgroundColor: _reacttheme.tokens.colorTransparentBackground,
|
|
50
|
+
boxSizing: 'border-box',
|
|
51
|
+
borderTopRightRadius: _reacttheme.tokens.borderRadiusNone,
|
|
52
|
+
borderBottomRightRadius: _reacttheme.tokens.borderRadiusNone,
|
|
53
|
+
borderRightStyle: 'none',
|
|
54
|
+
...(0, _reacttabster.createCustomFocusIndicatorStyle)({
|
|
55
|
+
outline: `${_reacttheme.tokens.strokeWidthThick} solid ${_reacttheme.tokens.colorStrokeFocus2}`,
|
|
56
|
+
borderRadius: _reacttheme.tokens.borderRadiusMedium,
|
|
57
|
+
..._react.shorthands.borderColor('transparent')
|
|
58
|
+
}),
|
|
59
|
+
marginInlineStart: 'auto'
|
|
60
|
+
},
|
|
61
|
+
dismissBrand: {
|
|
62
|
+
color: _reacttheme.tokens.colorNeutralForegroundOnBrand
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
const useTeachingPopoverTitleStyles_unstable = (state)=>{
|
|
66
|
+
'use no memo';
|
|
67
|
+
const styles = useStyles();
|
|
68
|
+
const { appearance } = state;
|
|
69
|
+
state.root.className = (0, _react.mergeClasses)(teachingPopoverTitleClassNames.root, styles.root, appearance === 'brand' && styles.rootBrand, state.root.className);
|
|
70
|
+
if (state.dismissButton) {
|
|
71
|
+
state.dismissButton.className = (0, _react.mergeClasses)(teachingPopoverTitleClassNames.dismissButton, styles.dismissButton, appearance === 'brand' ? styles.dismissBrand : undefined, state.dismissButton.className);
|
|
72
|
+
}
|
|
73
|
+
return state;
|
|
74
|
+
};
|
package/lib-commonjs/components/TeachingPopoverTitle/useTeachingPopoverTitleStyles.styles.raw.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/TeachingPopoverTitle/useTeachingPopoverTitleStyles.styles.ts"],"sourcesContent":["import { makeStyles, mergeClasses, shorthands } from '@griffel/react';\nimport type { TeachingPopoverTitleSlots, TeachingPopoverTitleState } from './TeachingPopoverTitle.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport { createCustomFocusIndicatorStyle } from '@fluentui/react-tabster';\nimport { tokens, typographyStyles } from '@fluentui/react-theme';\n\nexport const teachingPopoverTitleClassNames: SlotClassNames<TeachingPopoverTitleSlots> = {\n root: 'fui-TeachingPopoverTitle',\n dismissButton: 'fui-TeachingPopoverTitle__dismissButton',\n};\n\nconst useStyles = makeStyles({\n root: {\n display: 'flex',\n flexDirection: 'row',\n justifyContent: 'space-between',\n fontSize: tokens.fontSizeBase400,\n fontWeight: tokens.fontWeightSemibold,\n color: tokens.colorNeutralForeground1,\n lineHeight: tokens.lineHeightBase400,\n paddingBottom: tokens.spacingVerticalS,\n marginTop: tokens.spacingHorizontalNone,\n marginBottom: tokens.spacingHorizontalNone,\n },\n rootBrand: {\n color: tokens.colorNeutralForegroundOnBrand,\n },\n dismissButton: {\n position: 'relative',\n border: `${tokens.strokeWidthThin} solid ${tokens.colorTransparentStroke}`,\n display: 'flex',\n alignItems: 'center',\n cursor: 'pointer',\n ...typographyStyles.body1,\n backgroundColor: tokens.colorTransparentBackground,\n boxSizing: 'border-box',\n borderTopRightRadius: tokens.borderRadiusNone,\n borderBottomRightRadius: tokens.borderRadiusNone,\n borderRightStyle: 'none',\n ...createCustomFocusIndicatorStyle({\n outline: `${tokens.strokeWidthThick} solid ${tokens.colorStrokeFocus2}`,\n borderRadius: tokens.borderRadiusMedium,\n ...shorthands.borderColor('transparent'),\n }),\n marginInlineStart: 'auto',\n },\n dismissBrand: {\n color: tokens.colorNeutralForegroundOnBrand,\n },\n});\n\n/** Applies style classnames to slots */\nexport const useTeachingPopoverTitleStyles_unstable = (state: TeachingPopoverTitleState) => {\n 'use no memo';\n\n const styles = useStyles();\n const { appearance } = state;\n\n state.root.className = mergeClasses(\n teachingPopoverTitleClassNames.root,\n styles.root,\n appearance === 'brand' && styles.rootBrand,\n state.root.className,\n );\n\n if (state.dismissButton) {\n state.dismissButton.className = mergeClasses(\n teachingPopoverTitleClassNames.dismissButton,\n styles.dismissButton,\n appearance === 'brand' ? styles.dismissBrand : undefined,\n state.dismissButton.className,\n );\n }\n\n return state;\n};\n"],"names":["teachingPopoverTitleClassNames","useTeachingPopoverTitleStyles_unstable","root","dismissButton","useStyles","makeStyles","display","flexDirection","justifyContent","fontSize","tokens","fontSizeBase400","fontWeight","fontWeightSemibold","color","colorNeutralForeground1","lineHeight","lineHeightBase400","paddingBottom","spacingVerticalS","marginTop","spacingHorizontalNone","marginBottom","rootBrand","colorNeutralForegroundOnBrand","position","border","strokeWidthThin","colorTransparentStroke","alignItems","cursor","typographyStyles","body1","backgroundColor","colorTransparentBackground","boxSizing","borderTopRightRadius","borderRadiusNone","borderBottomRightRadius","borderRightStyle","createCustomFocusIndicatorStyle","outline","strokeWidthThick","colorStrokeFocus2","borderRadius","borderRadiusMedium","shorthands","borderColor","marginInlineStart","dismissBrand","state","styles","appearance","className","mergeClasses","undefined"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAMaA,8BAAAA;eAAAA;;IA8CAC,sCAAAA;eAAAA;;;uBApDwC;8BAGL;4BACP;AAElC,MAAMD,iCAA4E;IACvFE,MAAM;IACNC,eAAe;AACjB;AAEA,MAAMC,YAAYC,IAAAA,iBAAAA,EAAW;IAC3BH,MAAM;QACJI,SAAS;QACTC,eAAe;QACfC,gBAAgB;QAChBC,UAAUC,kBAAAA,CAAOC,eAAe;QAChCC,YAAYF,kBAAAA,CAAOG,kBAAkB;QACrCC,OAAOJ,kBAAAA,CAAOK,uBAAuB;QACrCC,YAAYN,kBAAAA,CAAOO,iBAAiB;QACpCC,eAAeR,kBAAAA,CAAOS,gBAAgB;QACtCC,WAAWV,kBAAAA,CAAOW,qBAAqB;QACvCC,cAAcZ,kBAAAA,CAAOW,qBAAqB;IAC5C;IACAE,WAAW;QACTT,OAAOJ,kBAAAA,CAAOc,6BAA6B;IAC7C;IACArB,eAAe;QACbsB,UAAU;QACVC,QAAQ,CAAC,EAAEhB,kBAAAA,CAAOiB,eAAe,CAAC,OAAO,EAAEjB,kBAAAA,CAAOkB,sBAAsB,CAAC,CAAC;QAC1EtB,SAAS;QACTuB,YAAY;QACZC,QAAQ;QACR,GAAGC,4BAAAA,CAAiBC,KAAK;QACzBC,iBAAiBvB,kBAAAA,CAAOwB,0BAA0B;QAClDC,WAAW;QACXC,sBAAsB1B,kBAAAA,CAAO2B,gBAAgB;QAC7CC,yBAAyB5B,kBAAAA,CAAO2B,gBAAgB;QAChDE,kBAAkB;QAClB,GAAGC,IAAAA,6CAAAA,EAAgC;YACjCC,SAAS,CAAC,EAAE/B,kBAAAA,CAAOgC,gBAAgB,CAAC,OAAO,EAAEhC,kBAAAA,CAAOiC,iBAAiB,CAAC,CAAC;YACvEC,cAAclC,kBAAAA,CAAOmC,kBAAkB;YACvC,GAAGC,iBAAAA,CAAWC,WAAW,CAAC,cAAc;QAC1C,EAAE;QACFC,mBAAmB;IACrB;IACAC,cAAc;QACZnC,OAAOJ,kBAAAA,CAAOc,6BAA6B;IAC7C;AACF;AAGO,MAAMvB,yCAAyC,CAACiD;IACrD;IAEA,MAAMC,SAAS/C;IACf,MAAM,EAAEgD,UAAU,EAAE,GAAGF;IAEvBA,MAAMhD,IAAI,CAACmD,SAAS,GAAGC,IAAAA,mBAAAA,EACrBtD,+BAA+BE,IAAI,EACnCiD,OAAOjD,IAAI,EACXkD,eAAe,WAAWD,OAAO5B,SAAS,EAC1C2B,MAAMhD,IAAI,CAACmD,SAAS;IAGtB,IAAIH,MAAM/C,aAAa,EAAE;QACvB+C,MAAM/C,aAAa,CAACkD,SAAS,GAAGC,IAAAA,mBAAAA,EAC9BtD,+BAA+BG,aAAa,EAC5CgD,OAAOhD,aAAa,EACpBiD,eAAe,UAAUD,OAAOF,YAAY,GAAGM,WAC/CL,MAAM/C,aAAa,CAACkD,SAAS;IAEjC;IAEA,OAAOH;AACT"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui/react-teaching-popover",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.6.0",
|
|
4
4
|
"description": "New fluentui react package",
|
|
5
5
|
"main": "lib-commonjs/index.js",
|
|
6
6
|
"module": "lib/index.js",
|
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
"@griffel/react": "^1.5.22",
|
|
31
31
|
"@swc/helpers": "^0.5.1",
|
|
32
32
|
"@fluentui/react-shared-contexts": "^9.24.0",
|
|
33
|
-
"@fluentui/react-popover": "^9.
|
|
34
|
-
"@fluentui/react-button": "^9.
|
|
35
|
-
"@fluentui/react-tabster": "^9.
|
|
33
|
+
"@fluentui/react-popover": "^9.12.0",
|
|
34
|
+
"@fluentui/react-button": "^9.6.0",
|
|
35
|
+
"@fluentui/react-tabster": "^9.26.0",
|
|
36
36
|
"@fluentui/react-icons": "^2.0.245",
|
|
37
|
-
"@fluentui/react-aria": "^9.15.
|
|
37
|
+
"@fluentui/react-aria": "^9.15.4",
|
|
38
38
|
"@fluentui/react-context-selector": "^9.2.2",
|
|
39
39
|
"use-sync-external-store": "^1.2.0"
|
|
40
40
|
},
|