@fluentui-copilot/react-response-count 0.0.0-nightly-20250717-0405-eecbae35.1 → 0.0.0-nightly-20250723-0404-b6756f49.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.json +18 -3
- package/CHANGELOG.md +13 -4
- package/lib/components/ResponseCount/useResponseCountStyles.styles.raw.js +44 -0
- package/lib/components/ResponseCount/useResponseCountStyles.styles.raw.js.map +1 -0
- package/lib-commonjs/components/ResponseCount/useResponseCountStyles.styles.raw.js +60 -0
- package/lib-commonjs/components/ResponseCount/useResponseCountStyles.styles.raw.js.map +1 -0
- package/package.json +2 -2
package/CHANGELOG.json
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
"name": "@fluentui-copilot/react-response-count",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
6
|
-
"tag": "@fluentui-copilot/react-response-count_v0.0.0-nightly-
|
|
7
|
-
"version": "0.0.0-nightly-
|
|
5
|
+
"date": "Wed, 23 Jul 2025 04:11:47 GMT",
|
|
6
|
+
"tag": "@fluentui-copilot/react-response-count_v0.0.0-nightly-20250723-0404-b6756f49.1",
|
|
7
|
+
"version": "0.0.0-nightly-20250723-0404-b6756f49.1",
|
|
8
8
|
"comments": {
|
|
9
9
|
"prerelease": [
|
|
10
10
|
{
|
|
@@ -16,6 +16,21 @@
|
|
|
16
16
|
]
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
|
+
{
|
|
20
|
+
"date": "Thu, 17 Jul 2025 17:49:25 GMT",
|
|
21
|
+
"tag": "@fluentui-copilot/react-response-count_v0.2.17",
|
|
22
|
+
"version": "0.2.17",
|
|
23
|
+
"comments": {
|
|
24
|
+
"patch": [
|
|
25
|
+
{
|
|
26
|
+
"author": "hochelmartin@gmail.com",
|
|
27
|
+
"package": "@fluentui-copilot/react-response-count",
|
|
28
|
+
"commit": "fef5160c07333e8d9996952a305b34e357604919",
|
|
29
|
+
"comment": "feat: enable griffel raw styles"
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
},
|
|
19
34
|
{
|
|
20
35
|
"date": "Tue, 01 Jul 2025 14:45:29 GMT",
|
|
21
36
|
"tag": "@fluentui-copilot/react-response-count_v0.2.16",
|
package/CHANGELOG.md
CHANGED
|
@@ -1,18 +1,27 @@
|
|
|
1
1
|
# Change Log - @fluentui-copilot/react-response-count
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Wed, 23 Jul 2025 04:11:47 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
-
## [0.0.0-nightly-
|
|
7
|
+
## [0.0.0-nightly-20250723-0404-b6756f49.1](https://github.com/microsoft/fluentai/tree/@fluentui-copilot/react-response-count_v0.0.0-nightly-20250723-0404-b6756f49.1)
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
[Compare changes](https://github.com/microsoft/fluentai/compare/@fluentui-copilot/react-response-count_v0.2.
|
|
9
|
+
Wed, 23 Jul 2025 04:11:47 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentai/compare/@fluentui-copilot/react-response-count_v0.2.17..@fluentui-copilot/react-response-count_v0.0.0-nightly-20250723-0404-b6756f49.1)
|
|
11
11
|
|
|
12
12
|
### Changes
|
|
13
13
|
|
|
14
14
|
- Release nightly ([commit](https://github.com/microsoft/fluentai/commit/not available) by fluentui-internal@service.microsoft.com)
|
|
15
15
|
|
|
16
|
+
## [0.2.17](https://github.com/microsoft/fluentai/tree/@fluentui-copilot/react-response-count_v0.2.17)
|
|
17
|
+
|
|
18
|
+
Thu, 17 Jul 2025 17:49:25 GMT
|
|
19
|
+
[Compare changes](https://github.com/microsoft/fluentai/compare/@fluentui-copilot/react-response-count_v0.2.16..@fluentui-copilot/react-response-count_v0.2.17)
|
|
20
|
+
|
|
21
|
+
### Patches
|
|
22
|
+
|
|
23
|
+
- feat: enable griffel raw styles ([PR #3227](https://github.com/microsoft/fluentai/pull/3227) by hochelmartin@gmail.com)
|
|
24
|
+
|
|
16
25
|
## [0.2.16](https://github.com/microsoft/fluentai/tree/@fluentui-copilot/react-response-count_v0.2.16)
|
|
17
26
|
|
|
18
27
|
Tue, 01 Jul 2025 14:45:29 GMT
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { makeStyles, mergeClasses } from '@fluentui/react-components';
|
|
2
|
+
import { tokens, typographyStyles } from '@fluentui-copilot/tokens';
|
|
3
|
+
export const responseCountClassNames = {
|
|
4
|
+
root: 'fai-ResponseCount',
|
|
5
|
+
indicator: 'fai-ResponseCount__indicator'
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Styles for the root slot
|
|
9
|
+
*/ const useStyles = makeStyles({
|
|
10
|
+
root: {
|
|
11
|
+
display: 'inline-flex',
|
|
12
|
+
flexDirection: 'row',
|
|
13
|
+
alignItems: 'center',
|
|
14
|
+
gap: tokens.spacingHorizontalXS,
|
|
15
|
+
...typographyStyles.caption2,
|
|
16
|
+
color: tokens.colorNeutralForeground4
|
|
17
|
+
},
|
|
18
|
+
indicator: {
|
|
19
|
+
display: 'inline-block',
|
|
20
|
+
width: '8px',
|
|
21
|
+
height: '8px',
|
|
22
|
+
borderRadius: '50%'
|
|
23
|
+
},
|
|
24
|
+
success: {
|
|
25
|
+
backgroundColor: tokens.colorStatusSuccessForeground3
|
|
26
|
+
},
|
|
27
|
+
warning: {
|
|
28
|
+
backgroundColor: tokens.colorStatusWarningForeground2
|
|
29
|
+
},
|
|
30
|
+
danger: {
|
|
31
|
+
backgroundColor: tokens.colorStatusDangerForeground3
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
/**
|
|
35
|
+
* Apply styling to the ResponseCount slots based on the state
|
|
36
|
+
*/ export const useResponseCountStyles_unstable = (state)=>{
|
|
37
|
+
'use no memo';
|
|
38
|
+
const styles = useStyles();
|
|
39
|
+
state.root.className = mergeClasses(responseCountClassNames.root, styles.root, state.root.className);
|
|
40
|
+
if (state.indicator) {
|
|
41
|
+
state.indicator.className = mergeClasses(responseCountClassNames.indicator, styles.indicator, styles[state.status], state.indicator.className);
|
|
42
|
+
}
|
|
43
|
+
return state;
|
|
44
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["useResponseCountStyles.styles.ts"],"sourcesContent":["import { makeStyles, mergeClasses } from '@fluentui/react-components';\nimport { tokens, typographyStyles } from '@fluentui-copilot/tokens';\nimport type { ResponseCountSlots, ResponseCountState } from './ResponseCount.types';\nimport type { SlotClassNames } from '@fluentui/react-components';\n\nexport const responseCountClassNames: SlotClassNames<ResponseCountSlots> = {\n root: 'fai-ResponseCount',\n indicator: 'fai-ResponseCount__indicator',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: {\n display: 'inline-flex',\n flexDirection: 'row',\n alignItems: 'center',\n gap: tokens.spacingHorizontalXS,\n ...typographyStyles.caption2,\n color: tokens.colorNeutralForeground4,\n },\n indicator: {\n display: 'inline-block',\n width: '8px',\n height: '8px',\n borderRadius: '50%',\n },\n success: {\n backgroundColor: tokens.colorStatusSuccessForeground3,\n },\n warning: {\n backgroundColor: tokens.colorStatusWarningForeground2,\n },\n danger: {\n backgroundColor: tokens.colorStatusDangerForeground3,\n },\n});\n\n/**\n * Apply styling to the ResponseCount slots based on the state\n */\nexport const useResponseCountStyles_unstable = (state: ResponseCountState): ResponseCountState => {\n 'use no memo';\n\n const styles = useStyles();\n state.root.className = mergeClasses(responseCountClassNames.root, styles.root, state.root.className);\n\n if (state.indicator) {\n state.indicator.className = mergeClasses(\n responseCountClassNames.indicator,\n styles.indicator,\n styles[state.status],\n state.indicator.className,\n );\n }\n\n return state;\n};\n"],"names":["makeStyles","mergeClasses","tokens","typographyStyles","responseCountClassNames","root","indicator","useStyles","display","flexDirection","alignItems","gap","spacingHorizontalXS","caption2","color","colorNeutralForeground4","width","height","borderRadius","success","backgroundColor","colorStatusSuccessForeground3","warning","colorStatusWarningForeground2","danger","colorStatusDangerForeground3","useResponseCountStyles_unstable","state","styles","className","status"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,SAASA,UAAU,EAAEC,YAAY,QAAQ,6BAA6B;AACtE,SAASC,MAAM,EAAEC,gBAAgB,QAAQ,2BAA2B;AAIpE,OAAO,MAAMC,0BAA8D;IACzEC,MAAM;IACNC,WAAW;AACb,EAAE;AAEF;;CAEC,GACD,MAAMC,YAAYP,WAAW;IAC3BK,MAAM;QACJG,SAAS;QACTC,eAAe;QACfC,YAAY;QACZC,KAAKT,OAAOU,mBAAmB;QAC/B,GAAGT,iBAAiBU,QAAQ;QAC5BC,OAAOZ,OAAOa,uBAAuB;IACvC;IACAT,WAAW;QACTE,SAAS;QACTQ,OAAO;QACPC,QAAQ;QACRC,cAAc;IAChB;IACAC,SAAS;QACPC,iBAAiBlB,OAAOmB,6BAA6B;IACvD;IACAC,SAAS;QACPF,iBAAiBlB,OAAOqB,6BAA6B;IACvD;IACAC,QAAQ;QACNJ,iBAAiBlB,OAAOuB,4BAA4B;IACtD;AACF;AAEA;;CAEC,GACD,OAAO,MAAMC,kCAAkC,CAACC;IAC9C;IAEA,MAAMC,SAASrB;IACfoB,MAAMtB,IAAI,CAACwB,SAAS,GAAG5B,aAAaG,wBAAwBC,IAAI,EAAEuB,OAAOvB,IAAI,EAAEsB,MAAMtB,IAAI,CAACwB,SAAS;IAEnG,IAAIF,MAAMrB,SAAS,EAAE;QACnBqB,MAAMrB,SAAS,CAACuB,SAAS,GAAG5B,aAC1BG,wBAAwBE,SAAS,EACjCsB,OAAOtB,SAAS,EAChBsB,MAAM,CAACD,MAAMG,MAAM,CAAC,EACpBH,MAAMrB,SAAS,CAACuB,SAAS;IAE7B;IAEA,OAAOF;AACT,EAAE"}
|
|
@@ -0,0 +1,60 @@
|
|
|
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
|
+
responseCountClassNames: function() {
|
|
13
|
+
return responseCountClassNames;
|
|
14
|
+
},
|
|
15
|
+
useResponseCountStyles_unstable: function() {
|
|
16
|
+
return useResponseCountStyles_unstable;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
const _reactcomponents = require("@fluentui/react-components");
|
|
20
|
+
const _tokens = require("@fluentui-copilot/tokens");
|
|
21
|
+
const responseCountClassNames = {
|
|
22
|
+
root: 'fai-ResponseCount',
|
|
23
|
+
indicator: 'fai-ResponseCount__indicator'
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Styles for the root slot
|
|
27
|
+
*/ const useStyles = (0, _reactcomponents.makeStyles)({
|
|
28
|
+
root: {
|
|
29
|
+
display: 'inline-flex',
|
|
30
|
+
flexDirection: 'row',
|
|
31
|
+
alignItems: 'center',
|
|
32
|
+
gap: _tokens.tokens.spacingHorizontalXS,
|
|
33
|
+
..._tokens.typographyStyles.caption2,
|
|
34
|
+
color: _tokens.tokens.colorNeutralForeground4
|
|
35
|
+
},
|
|
36
|
+
indicator: {
|
|
37
|
+
display: 'inline-block',
|
|
38
|
+
width: '8px',
|
|
39
|
+
height: '8px',
|
|
40
|
+
borderRadius: '50%'
|
|
41
|
+
},
|
|
42
|
+
success: {
|
|
43
|
+
backgroundColor: _tokens.tokens.colorStatusSuccessForeground3
|
|
44
|
+
},
|
|
45
|
+
warning: {
|
|
46
|
+
backgroundColor: _tokens.tokens.colorStatusWarningForeground2
|
|
47
|
+
},
|
|
48
|
+
danger: {
|
|
49
|
+
backgroundColor: _tokens.tokens.colorStatusDangerForeground3
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
const useResponseCountStyles_unstable = (state)=>{
|
|
53
|
+
'use no memo';
|
|
54
|
+
const styles = useStyles();
|
|
55
|
+
state.root.className = (0, _reactcomponents.mergeClasses)(responseCountClassNames.root, styles.root, state.root.className);
|
|
56
|
+
if (state.indicator) {
|
|
57
|
+
state.indicator.className = (0, _reactcomponents.mergeClasses)(responseCountClassNames.indicator, styles.indicator, styles[state.status], state.indicator.className);
|
|
58
|
+
}
|
|
59
|
+
return state;
|
|
60
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["useResponseCountStyles.styles.ts"],"sourcesContent":["import { makeStyles, mergeClasses } from '@fluentui/react-components';\nimport { tokens, typographyStyles } from '@fluentui-copilot/tokens';\nimport type { ResponseCountSlots, ResponseCountState } from './ResponseCount.types';\nimport type { SlotClassNames } from '@fluentui/react-components';\n\nexport const responseCountClassNames: SlotClassNames<ResponseCountSlots> = {\n root: 'fai-ResponseCount',\n indicator: 'fai-ResponseCount__indicator',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: {\n display: 'inline-flex',\n flexDirection: 'row',\n alignItems: 'center',\n gap: tokens.spacingHorizontalXS,\n ...typographyStyles.caption2,\n color: tokens.colorNeutralForeground4,\n },\n indicator: {\n display: 'inline-block',\n width: '8px',\n height: '8px',\n borderRadius: '50%',\n },\n success: {\n backgroundColor: tokens.colorStatusSuccessForeground3,\n },\n warning: {\n backgroundColor: tokens.colorStatusWarningForeground2,\n },\n danger: {\n backgroundColor: tokens.colorStatusDangerForeground3,\n },\n});\n\n/**\n * Apply styling to the ResponseCount slots based on the state\n */\nexport const useResponseCountStyles_unstable = (state: ResponseCountState): ResponseCountState => {\n 'use no memo';\n\n const styles = useStyles();\n state.root.className = mergeClasses(responseCountClassNames.root, styles.root, state.root.className);\n\n if (state.indicator) {\n state.indicator.className = mergeClasses(\n responseCountClassNames.indicator,\n styles.indicator,\n styles[state.status],\n state.indicator.className,\n );\n }\n\n return state;\n};\n"],"names":["responseCountClassNames","useResponseCountStyles_unstable","root","indicator","useStyles","makeStyles","display","flexDirection","alignItems","gap","tokens","spacingHorizontalXS","typographyStyles","caption2","color","colorNeutralForeground4","width","height","borderRadius","success","backgroundColor","colorStatusSuccessForeground3","warning","colorStatusWarningForeground2","danger","colorStatusDangerForeground3","state","styles","className","mergeClasses","status"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAKaA,uBAAAA;eAAAA;;IAqCAC,+BAAAA;eAAAA;;;iCA1C4B;wBACA;AAIlC,MAAMD,0BAA8D;IACzEE,MAAM;IACNC,WAAW;AACb;AAEA;;CAEC,GACD,MAAMC,YAAYC,IAAAA,2BAAAA,EAAW;IAC3BH,MAAM;QACJI,SAAS;QACTC,eAAe;QACfC,YAAY;QACZC,KAAKC,cAAAA,CAAOC,mBAAmB;QAC/B,GAAGC,wBAAAA,CAAiBC,QAAQ;QAC5BC,OAAOJ,cAAAA,CAAOK,uBAAuB;IACvC;IACAZ,WAAW;QACTG,SAAS;QACTU,OAAO;QACPC,QAAQ;QACRC,cAAc;IAChB;IACAC,SAAS;QACPC,iBAAiBV,cAAAA,CAAOW,6BAA6B;IACvD;IACAC,SAAS;QACPF,iBAAiBV,cAAAA,CAAOa,6BAA6B;IACvD;IACAC,QAAQ;QACNJ,iBAAiBV,cAAAA,CAAOe,4BAA4B;IACtD;AACF;AAKO,MAAMxB,kCAAkC,CAACyB;IAC9C;IAEA,MAAMC,SAASvB;IACfsB,MAAMxB,IAAI,CAAC0B,SAAS,GAAGC,IAAAA,6BAAAA,EAAa7B,wBAAwBE,IAAI,EAAEyB,OAAOzB,IAAI,EAAEwB,MAAMxB,IAAI,CAAC0B,SAAS;IAEnG,IAAIF,MAAMvB,SAAS,EAAE;QACnBuB,MAAMvB,SAAS,CAACyB,SAAS,GAAGC,IAAAA,6BAAAA,EAC1B7B,wBAAwBG,SAAS,EACjCwB,OAAOxB,SAAS,EAChBwB,MAAM,CAACD,MAAMI,MAAM,CAAC,EACpBJ,MAAMvB,SAAS,CAACyB,SAAS;IAE7B;IAEA,OAAOF;AACT"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui-copilot/react-response-count",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20250723-0404-b6756f49.1",
|
|
4
4
|
"description": "Fluent AI control for displaying the number of responses and the remaining response count",
|
|
5
5
|
"main": "lib-commonjs/index.js",
|
|
6
6
|
"module": "lib/index.js",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
},
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@fluentui-copilot/tokens": "0.0.0-nightly-
|
|
15
|
+
"@fluentui-copilot/tokens": "0.0.0-nightly-20250723-0404-b6756f49.1",
|
|
16
16
|
"@swc/helpers": "^0.5.1"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|