@fluentui-copilot/react-morse-code 0.0.0-nightly-20251010-0406-7df7c6d1.1 → 0.0.0-nightly-20251013-0406-7c7739c8.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.
Files changed (80) hide show
  1. package/CHANGELOG.json +3 -3
  2. package/CHANGELOG.md +4 -4
  3. package/dist/index.d.ts +22 -0
  4. package/lib/components/MorseCode.types.js +1 -0
  5. package/lib/components/MorseCode.types.js.map +1 -0
  6. package/lib/components/hooks/useAddModule.js +19 -0
  7. package/lib/components/hooks/useAddModule.js.map +1 -0
  8. package/lib/components/hooks/useFallbackRef.js +21 -0
  9. package/lib/components/hooks/useFallbackRef.js.map +1 -0
  10. package/lib/components/large/MorseCode.js +17 -0
  11. package/lib/components/large/MorseCode.js.map +1 -0
  12. package/lib/components/large/MorseCode.styles.js +21 -0
  13. package/lib/components/large/MorseCode.styles.js.map +1 -0
  14. package/lib/components/large/MorseCode.styles.raw.js +21 -0
  15. package/lib/components/large/MorseCode.styles.raw.js.map +1 -0
  16. package/lib/components/large/MorseCodeFallback.js +13 -0
  17. package/lib/components/large/MorseCodeFallback.js.map +1 -0
  18. package/lib/components/large/MorseCodeHoudini.js +23 -0
  19. package/lib/components/large/MorseCodeHoudini.js.map +1 -0
  20. package/lib/components/large/MorseCodeHoudini.styles.js +13 -0
  21. package/lib/components/large/MorseCodeHoudini.styles.js.map +1 -0
  22. package/lib/components/large/MorseCodeHoudini.styles.raw.js +22 -0
  23. package/lib/components/large/MorseCodeHoudini.styles.raw.js.map +1 -0
  24. package/lib/components/shared/renderMorseCode.js +10 -0
  25. package/lib/components/shared/renderMorseCode.js.map +1 -0
  26. package/lib/components/small/MorseCodeSmall.js +17 -0
  27. package/lib/components/small/MorseCodeSmall.js.map +1 -0
  28. package/lib/components/small/MorseCodeSmall.styles.js +21 -0
  29. package/lib/components/small/MorseCodeSmall.styles.js.map +1 -0
  30. package/lib/components/small/MorseCodeSmall.styles.raw.js +21 -0
  31. package/lib/components/small/MorseCodeSmall.styles.raw.js.map +1 -0
  32. package/lib/components/small/MorseCodeSmallFallback.js +13 -0
  33. package/lib/components/small/MorseCodeSmallFallback.js.map +1 -0
  34. package/lib/components/small/MorseCodeSmallHoudini.js +23 -0
  35. package/lib/components/small/MorseCodeSmallHoudini.js.map +1 -0
  36. package/lib/components/small/MorseCodeSmallHoudini.styles.js +13 -0
  37. package/lib/components/small/MorseCodeSmallHoudini.styles.js.map +1 -0
  38. package/lib/components/small/MorseCodeSmallHoudini.styles.raw.js +22 -0
  39. package/lib/components/small/MorseCodeSmallHoudini.styles.raw.js.map +1 -0
  40. package/lib/index.js +6 -0
  41. package/lib/index.js.map +1 -0
  42. package/lib-commonjs/components/MorseCode.types.js +4 -0
  43. package/lib-commonjs/components/MorseCode.types.js.map +1 -0
  44. package/lib-commonjs/components/hooks/useAddModule.js +30 -0
  45. package/lib-commonjs/components/hooks/useAddModule.js.map +1 -0
  46. package/lib-commonjs/components/hooks/useFallbackRef.js +32 -0
  47. package/lib-commonjs/components/hooks/useFallbackRef.js.map +1 -0
  48. package/lib-commonjs/components/large/MorseCode.js +28 -0
  49. package/lib-commonjs/components/large/MorseCode.js.map +1 -0
  50. package/lib-commonjs/components/large/MorseCode.styles.js +40 -0
  51. package/lib-commonjs/components/large/MorseCode.styles.js.map +1 -0
  52. package/lib-commonjs/components/large/MorseCode.styles.raw.js +31 -0
  53. package/lib-commonjs/components/large/MorseCode.styles.raw.js.map +1 -0
  54. package/lib-commonjs/components/large/MorseCodeFallback.js +23 -0
  55. package/lib-commonjs/components/large/MorseCodeFallback.js.map +1 -0
  56. package/lib-commonjs/components/large/MorseCodeHoudini.js +34 -0
  57. package/lib-commonjs/components/large/MorseCodeHoudini.js.map +1 -0
  58. package/lib-commonjs/components/large/MorseCodeHoudini.styles.js +30 -0
  59. package/lib-commonjs/components/large/MorseCodeHoudini.styles.js.map +1 -0
  60. package/lib-commonjs/components/large/MorseCodeHoudini.styles.raw.js +32 -0
  61. package/lib-commonjs/components/large/MorseCodeHoudini.styles.raw.js.map +1 -0
  62. package/lib-commonjs/components/shared/renderMorseCode.js +21 -0
  63. package/lib-commonjs/components/shared/renderMorseCode.js.map +1 -0
  64. package/lib-commonjs/components/small/MorseCodeSmall.js +28 -0
  65. package/lib-commonjs/components/small/MorseCodeSmall.js.map +1 -0
  66. package/lib-commonjs/components/small/MorseCodeSmall.styles.js +40 -0
  67. package/lib-commonjs/components/small/MorseCodeSmall.styles.js.map +1 -0
  68. package/lib-commonjs/components/small/MorseCodeSmall.styles.raw.js +31 -0
  69. package/lib-commonjs/components/small/MorseCodeSmall.styles.raw.js.map +1 -0
  70. package/lib-commonjs/components/small/MorseCodeSmallFallback.js +23 -0
  71. package/lib-commonjs/components/small/MorseCodeSmallFallback.js.map +1 -0
  72. package/lib-commonjs/components/small/MorseCodeSmallHoudini.js +34 -0
  73. package/lib-commonjs/components/small/MorseCodeSmallHoudini.js.map +1 -0
  74. package/lib-commonjs/components/small/MorseCodeSmallHoudini.styles.js +30 -0
  75. package/lib-commonjs/components/small/MorseCodeSmallHoudini.styles.js.map +1 -0
  76. package/lib-commonjs/components/small/MorseCodeSmallHoudini.styles.raw.js +32 -0
  77. package/lib-commonjs/components/small/MorseCodeSmallHoudini.styles.raw.js.map +1 -0
  78. package/lib-commonjs/index.js +36 -0
  79. package/lib-commonjs/index.js.map +1 -0
  80. package/package.json +2 -2
package/CHANGELOG.json CHANGED
@@ -2,9 +2,9 @@
2
2
  "name": "@fluentui-copilot/react-morse-code",
3
3
  "entries": [
4
4
  {
5
- "date": "Fri, 10 Oct 2025 04:08:18 GMT",
6
- "tag": "@fluentui-copilot/react-morse-code_v0.0.0-nightly-20251010-0406-7df7c6d1.1",
7
- "version": "0.0.0-nightly-20251010-0406-7df7c6d1.1",
5
+ "date": "Mon, 13 Oct 2025 04:14:18 GMT",
6
+ "tag": "@fluentui-copilot/react-morse-code_v0.0.0-nightly-20251013-0406-7c7739c8.1",
7
+ "version": "0.0.0-nightly-20251013-0406-7c7739c8.1",
8
8
  "comments": {
9
9
  "prerelease": [
10
10
  {
package/CHANGELOG.md CHANGED
@@ -1,13 +1,13 @@
1
1
  # Change Log - @fluentui-copilot/react-morse-code
2
2
 
3
- This log was last generated on Fri, 10 Oct 2025 04:08:18 GMT and should not be manually modified.
3
+ This log was last generated on Mon, 13 Oct 2025 04:14:18 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## [0.0.0-nightly-20251010-0406-7df7c6d1.1](https://github.com/microsoft/fluentai/tree/@fluentui-copilot/react-morse-code_v0.0.0-nightly-20251010-0406-7df7c6d1.1)
7
+ ## [0.0.0-nightly-20251013-0406-7c7739c8.1](https://github.com/microsoft/fluentai/tree/@fluentui-copilot/react-morse-code_v0.0.0-nightly-20251013-0406-7c7739c8.1)
8
8
 
9
- Fri, 10 Oct 2025 04:08:18 GMT
10
- [Compare changes](https://github.com/microsoft/fluentai/compare/@fluentui-copilot/react-morse-code_v0.0.13..@fluentui-copilot/react-morse-code_v0.0.0-nightly-20251010-0406-7df7c6d1.1)
9
+ Mon, 13 Oct 2025 04:14:18 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentai/compare/@fluentui-copilot/react-morse-code_v0.0.13..@fluentui-copilot/react-morse-code_v0.0.0-nightly-20251013-0406-7c7739c8.1)
11
11
 
12
12
  ### Changes
13
13
 
@@ -0,0 +1,22 @@
1
+ /// <reference types="react" />
2
+
3
+ import * as React_2 from 'react';
4
+
5
+ export declare const MorseCode: React_2.FC<MorseCodeProps>;
6
+
7
+ export declare const MorseCodeFallback: React.FC<MorseCodeProps>;
8
+
9
+ export declare const MorseCodeHoudini: React_2.FC<MorseCodeProps>;
10
+
11
+ export declare type MorseCodeProps = React_2.HTMLAttributes<HTMLDivElement> & {
12
+ baseUrl?: string;
13
+ fileName?: string;
14
+ };
15
+
16
+ export declare const MorseCodeSmall: React_2.FC<MorseCodeProps>;
17
+
18
+ export declare const MorseCodeSmallFallback: React.FC<MorseCodeProps>;
19
+
20
+ export declare const MorseCodeSmallHoudini: React_2.FC<MorseCodeProps>;
21
+
22
+ export { }
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["MorseCode.types.tsx"],"sourcesContent":["import type * as React from 'react';\n\nexport type MorseCodeProps = React.HTMLAttributes<HTMLDivElement> & {\n baseUrl?: string;\n fileName?: string;\n};\n"],"names":[],"rangeMappings":"","mappings":"AAEA,WAGE"}
@@ -0,0 +1,19 @@
1
+ import * as React from 'react';
2
+ import { addModule } from '@fluentui-contrib/houdini-utils';
3
+ const initializedModules = {};
4
+ export const useAddModule = (targetWindow, baseUrl, fileName)=>{
5
+ React.useEffect(()=>{
6
+ const path = `${baseUrl}${fileName}`;
7
+ if (!initializedModules[path]) {
8
+ addModule(targetWindow, baseUrl, fileName).then(()=>{
9
+ initializedModules[path] = true;
10
+ }).catch((_err)=>{
11
+ initializedModules[path] = false;
12
+ });
13
+ }
14
+ }, [
15
+ targetWindow,
16
+ baseUrl,
17
+ fileName
18
+ ]);
19
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["useAddModule.ts"],"sourcesContent":["import * as React from 'react';\nimport { addModule } from '@fluentui-contrib/houdini-utils';\n\nconst initializedModules = {} as Record<string, boolean>;\n\nexport const useAddModule = (targetWindow: Window | undefined, baseUrl: string, fileName: string): void => {\n React.useEffect(() => {\n const path = `${baseUrl}${fileName}`;\n if (!initializedModules[path]) {\n addModule(targetWindow, baseUrl, fileName)\n .then(() => {\n initializedModules[path] = true;\n })\n .catch(_err => {\n initializedModules[path] = false;\n });\n }\n }, [targetWindow, baseUrl, fileName]);\n};\n"],"names":["React","addModule","initializedModules","useAddModule","targetWindow","baseUrl","fileName","useEffect","path","then","catch","_err"],"rangeMappings":";;;;;;;;;;;;;;;;;;","mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,SAAS,QAAQ,kCAAkC;AAE5D,MAAMC,qBAAqB,CAAC;AAE5B,OAAO,MAAMC,eAAe,CAACC,cAAkCC,SAAiBC;IAC9EN,MAAMO,SAAS,CAAC;QACd,MAAMC,OAAO,CAAC,EAAEH,QAAQ,EAAEC,SAAS,CAAC;QACpC,IAAI,CAACJ,kBAAkB,CAACM,KAAK,EAAE;YAC7BP,UAAUG,cAAcC,SAASC,UAC9BG,IAAI,CAAC;gBACJP,kBAAkB,CAACM,KAAK,GAAG;YAC7B,GACCE,KAAK,CAACC,CAAAA;gBACLT,kBAAkB,CAACM,KAAK,GAAG;YAC7B;QACJ;IACF,GAAG;QAACJ;QAAcC;QAASC;KAAS;AACtC,EAAE"}
@@ -0,0 +1,21 @@
1
+ import * as React from 'react';
2
+ const ON_COMPLETE_NOOP = ()=>{
3
+ return;
4
+ };
5
+ export const useFallbackRef = (anim)=>{
6
+ const animControls = React.useRef();
7
+ const targetRef = React.useCallback((node)=>{
8
+ if (animControls.current) {
9
+ animControls.current.stop();
10
+ animControls.current.cleanup();
11
+ animControls.current = undefined;
12
+ }
13
+ if (node) {
14
+ animControls.current = anim(node);
15
+ animControls.current.play(ON_COMPLETE_NOOP);
16
+ }
17
+ }, [
18
+ anim
19
+ ]);
20
+ return targetRef;
21
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["useFallbackRef.ts"],"sourcesContent":["import * as React from 'react';\nimport type { fallbackPaintAnimation } from '@fluentui-contrib/houdini-utils';\n\nconst ON_COMPLETE_NOOP = () => {\n return;\n};\n\nexport type FallbackAnim = (target: HTMLElement) => ReturnType<typeof fallbackPaintAnimation>;\n\nexport const useFallbackRef = (anim: FallbackAnim): ((node: HTMLElement | null) => void) => {\n const animControls = React.useRef<ReturnType<typeof fallbackPaintAnimation> | undefined>();\n const targetRef = React.useCallback(\n (node: HTMLElement | null) => {\n if (animControls.current) {\n animControls.current.stop();\n animControls.current.cleanup();\n animControls.current = undefined;\n }\n\n if (node) {\n animControls.current = anim(node);\n animControls.current.play(ON_COMPLETE_NOOP);\n }\n },\n [anim],\n );\n\n return targetRef;\n};\n"],"names":["React","ON_COMPLETE_NOOP","useFallbackRef","anim","animControls","useRef","targetRef","useCallback","node","current","stop","cleanup","undefined","play"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,YAAYA,WAAW,QAAQ;AAG/B,MAAMC,mBAAmB;IACvB;AACF;AAIA,OAAO,MAAMC,iBAAiB,CAACC;IAC7B,MAAMC,eAAeJ,MAAMK,MAAM;IACjC,MAAMC,YAAYN,MAAMO,WAAW,CACjC,CAACC;QACC,IAAIJ,aAAaK,OAAO,EAAE;YACxBL,aAAaK,OAAO,CAACC,IAAI;YACzBN,aAAaK,OAAO,CAACE,OAAO;YAC5BP,aAAaK,OAAO,GAAGG;QACzB;QAEA,IAAIJ,MAAM;YACRJ,aAAaK,OAAO,GAAGN,KAAKK;YAC5BJ,aAAaK,OAAO,CAACI,IAAI,CAACZ;QAC5B;IACF,GACA;QAACE;KAAK;IAGR,OAAOG;AACT,EAAE"}
@@ -0,0 +1,17 @@
1
+ import * as React from 'react';
2
+ import { hasHoudini } from '@fluentui-contrib/houdini-utils';
3
+ import { MorseCodeFallback } from './MorseCodeFallback';
4
+ import { MorseCodeHoudini } from './MorseCodeHoudini';
5
+ import { useFluent } from '@fluentui/react-components';
6
+ export const MorseCode = (props)=>{
7
+ const { targetDocument } = useFluent();
8
+ var _targetDocument_defaultView;
9
+ const targetWindow = (_targetDocument_defaultView = targetDocument === null || targetDocument === void 0 ? void 0 : targetDocument.defaultView) !== null && _targetDocument_defaultView !== void 0 ? _targetDocument_defaultView : undefined;
10
+ const houdiniAvailable = React.useMemo(()=>hasHoudini(targetWindow), [
11
+ targetWindow
12
+ ]);
13
+ if (houdiniAvailable) {
14
+ return /*#__PURE__*/ React.createElement(MorseCodeHoudini, props);
15
+ }
16
+ return /*#__PURE__*/ React.createElement(MorseCodeFallback, props);
17
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["MorseCode.tsx"],"sourcesContent":["import * as React from 'react';\nimport { hasHoudini } from '@fluentui-contrib/houdini-utils';\nimport { MorseCodeFallback } from './MorseCodeFallback';\nimport { MorseCodeHoudini } from './MorseCodeHoudini';\n\nimport type { MorseCodeProps } from '../MorseCode.types';\nimport { useFluent } from '@fluentui/react-components';\n\nexport const MorseCode: React.FC<MorseCodeProps> = props => {\n const { targetDocument } = useFluent();\n const targetWindow = targetDocument?.defaultView ?? undefined;\n\n const houdiniAvailable = React.useMemo(() => hasHoudini(targetWindow), [targetWindow]);\n\n if (houdiniAvailable) {\n return <MorseCodeHoudini {...props} />;\n }\n\n return <MorseCodeFallback {...props} />;\n};\n"],"names":["React","hasHoudini","MorseCodeFallback","MorseCodeHoudini","useFluent","MorseCode","props","targetDocument","targetWindow","defaultView","undefined","houdiniAvailable","useMemo"],"rangeMappings":";;;;;;;;;;;;;;;;","mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,UAAU,QAAQ,kCAAkC;AAC7D,SAASC,iBAAiB,QAAQ,sBAAsB;AACxD,SAASC,gBAAgB,QAAQ,qBAAqB;AAGtD,SAASC,SAAS,QAAQ,6BAA6B;AAEvD,OAAO,MAAMC,YAAsCC,CAAAA;IACjD,MAAM,EAAEC,cAAc,EAAE,GAAGH;QACNG;IAArB,MAAMC,eAAeD,CAAAA,8BAAAA,2BAAAA,qCAAAA,eAAgBE,WAAW,cAA3BF,yCAAAA,8BAA+BG;IAEpD,MAAMC,mBAAmBX,MAAMY,OAAO,CAAC,IAAMX,WAAWO,eAAe;QAACA;KAAa;IAErF,IAAIG,kBAAkB;QACpB,qBAAO,oBAACR,kBAAqBG;IAC/B;IAEA,qBAAO,oBAACJ,mBAAsBI;AAChC,EAAE"}
@@ -0,0 +1,21 @@
1
+ import { __styles } from '@fluentui/react-components';
2
+ import { morseCodeTokens } from '@fluentui-copilot/morse-code';
3
+ export const useMorseCodeStyles = __styles({
4
+ base: {
5
+ Bhx7t8d: "f1fgls1j",
6
+ p0sd7z: "f7s2a0q",
7
+ sshi5w: "f1csse87",
8
+ Bvjb7m6: "fdgv6k0",
9
+ jekbwv: "f1x4gczw",
10
+ B20m2qn: "f1mvgrou",
11
+ It5emp: "f1p87gnb"
12
+ },
13
+ wrapper: {
14
+ a9b677: "fly5x3f",
15
+ Bqenvij: "f1l02sjl"
16
+ }
17
+ }, {
18
+ t: ["@supports (aspect-ratio: 20 / 1){.f1fgls1j{aspect-ratio:20/1;}}", "@supports not (aspect-ratio: 20 / 1){.f7s2a0q{padding-top:5%;}}"],
19
+ d: [".f1csse87{min-height:5px;}", ".fdgv6k0{forced-color-adjust:none;}", ".f1x4gczw{--fai-morse-code-color-stop-1:0%;}", ".f1mvgrou{--fai-morse-code-color-stop-2:50%;}", ".f1p87gnb{--fai-morse-code-color-stop-3:100%;}", ".fly5x3f{width:100%;}", ".f1l02sjl{height:100%;}"]
20
+ });
21
+ //# sourceMappingURL=MorseCode.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["MorseCode.styles.ts"],"sourcesContent":["import { makeStyles } from '@fluentui/react-components';\nimport { morseCodeTokens } from '@fluentui-copilot/morse-code';\n\nexport const useMorseCodeStyles = makeStyles({\n base: {\n '@supports (aspect-ratio: 20 / 1)': {\n aspectRatio: morseCodeTokens.morseCodeAspectRatio,\n },\n '@supports not (aspect-ratio: 20 / 1)': {\n paddingTop: morseCodeTokens.morseCodeAspectRatioFallbackPaddingTop,\n },\n minHeight: '5px',\n forcedColorAdjust: 'none',\n '--fai-morse-code-color-stop-1': morseCodeTokens.morseCodeColorStop1,\n '--fai-morse-code-color-stop-2': morseCodeTokens.morseCodeColorStop2,\n '--fai-morse-code-color-stop-3': morseCodeTokens.morseCodeColorStop3,\n },\n wrapper: {\n width: '100%',\n height: '100%',\n },\n});\n"],"names":["makeStyles","morseCodeTokens","useMorseCodeStyles","base","aspectRatio","morseCodeAspectRatio","paddingTop","morseCodeAspectRatioFallbackPaddingTop","minHeight","forcedColorAdjust","morseCodeColorStop1","morseCodeColorStop2","morseCodeColorStop3","wrapper","width","height"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,SAASA,UAAU,QAAQ,6BAA6B;AACxD,SAASC,eAAe,QAAQ,+BAA+B;AAE/D,OAAO,MAAMC,qBAAqBF,WAAW;IAC3CG,MAAM;QACJ,qCAAqC;YACnCC,aAAaH,gBAAgBI,oBAAoB;QACnD;QACA,yCAAyC;YACvCC,YAAYL,gBAAgBM,sCAAsC;QACpE;QACAC,WAAW;QACXC,mBAAmB;QACnB,iCAAiCR,gBAAgBS,mBAAmB;QACpE,iCAAiCT,gBAAgBU,mBAAmB;QACpE,iCAAiCV,gBAAgBW,mBAAmB;IACtE;IACAC,SAAS;QACPC,OAAO;QACPC,QAAQ;IACV;AACF,GAAG"}
@@ -0,0 +1,21 @@
1
+ import { makeStyles } from '@fluentui/react-components';
2
+ import { morseCodeTokens } from '@fluentui-copilot/morse-code';
3
+ export const useMorseCodeStyles = makeStyles({
4
+ base: {
5
+ '@supports (aspect-ratio: 20 / 1)': {
6
+ aspectRatio: morseCodeTokens.morseCodeAspectRatio
7
+ },
8
+ '@supports not (aspect-ratio: 20 / 1)': {
9
+ paddingTop: morseCodeTokens.morseCodeAspectRatioFallbackPaddingTop
10
+ },
11
+ minHeight: '5px',
12
+ forcedColorAdjust: 'none',
13
+ '--fai-morse-code-color-stop-1': morseCodeTokens.morseCodeColorStop1,
14
+ '--fai-morse-code-color-stop-2': morseCodeTokens.morseCodeColorStop2,
15
+ '--fai-morse-code-color-stop-3': morseCodeTokens.morseCodeColorStop3
16
+ },
17
+ wrapper: {
18
+ width: '100%',
19
+ height: '100%'
20
+ }
21
+ });
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["MorseCode.styles.ts"],"sourcesContent":["import { makeStyles } from '@fluentui/react-components';\nimport { morseCodeTokens } from '@fluentui-copilot/morse-code';\n\nexport const useMorseCodeStyles = makeStyles({\n base: {\n '@supports (aspect-ratio: 20 / 1)': {\n aspectRatio: morseCodeTokens.morseCodeAspectRatio,\n },\n '@supports not (aspect-ratio: 20 / 1)': {\n paddingTop: morseCodeTokens.morseCodeAspectRatioFallbackPaddingTop,\n },\n minHeight: '5px',\n forcedColorAdjust: 'none',\n '--fai-morse-code-color-stop-1': morseCodeTokens.morseCodeColorStop1,\n '--fai-morse-code-color-stop-2': morseCodeTokens.morseCodeColorStop2,\n '--fai-morse-code-color-stop-3': morseCodeTokens.morseCodeColorStop3,\n },\n wrapper: {\n width: '100%',\n height: '100%',\n },\n});\n"],"names":["makeStyles","morseCodeTokens","useMorseCodeStyles","base","aspectRatio","morseCodeAspectRatio","paddingTop","morseCodeAspectRatioFallbackPaddingTop","minHeight","forcedColorAdjust","morseCodeColorStop1","morseCodeColorStop2","morseCodeColorStop3","wrapper","width","height"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,SAASA,UAAU,QAAQ,6BAA6B;AACxD,SAASC,eAAe,QAAQ,+BAA+B;AAE/D,OAAO,MAAMC,qBAAqBF,WAAW;IAC3CG,MAAM;QACJ,qCAAqC;YACnCC,aAAaH,gBAAgBI,oBAAoB;QACnD;QACA,yCAAyC;YACvCC,YAAYL,gBAAgBM,sCAAsC;QACpE;QACAC,WAAW;QACXC,mBAAmB;QACnB,iCAAiCR,gBAAgBS,mBAAmB;QACpE,iCAAiCT,gBAAgBU,mBAAmB;QACpE,iCAAiCV,gBAAgBW,mBAAmB;IACtE;IACAC,SAAS;QACPC,OAAO;QACPC,QAAQ;IACV;AACF,GAAG"}
@@ -0,0 +1,13 @@
1
+ import { mergeClasses } from '@fluentui/react-components';
2
+ import { morseCode } from '@fluentui-copilot/morse-code';
3
+ import { useMorseCodeStyles } from './MorseCode.styles';
4
+ import { useFallbackRef } from '../hooks/useFallbackRef';
5
+ import { renderMorseCode } from '../shared/renderMorseCode';
6
+ export const MorseCodeFallback = (props)=>{
7
+ const morseCodeStyles = useMorseCodeStyles();
8
+ const targetRef = useFallbackRef(morseCode);
9
+ const { className, baseUrl, fileName, ...restProps } = props;
10
+ const wrapperClassName = mergeClasses(morseCodeStyles.wrapper, className);
11
+ const morseCodeClassName = mergeClasses('fai-MorseCode', 'fai-MorseCodeFallback', morseCodeStyles.base);
12
+ return renderMorseCode(wrapperClassName, restProps, morseCodeClassName, targetRef);
13
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["MorseCodeFallback.tsx"],"sourcesContent":["import { mergeClasses } from '@fluentui/react-components';\nimport { morseCode } from '@fluentui-copilot/morse-code';\nimport { useMorseCodeStyles } from './MorseCode.styles';\n\nimport type { MorseCodeProps } from '../MorseCode.types';\nimport { useFallbackRef } from '../hooks/useFallbackRef';\nimport { renderMorseCode } from '../shared/renderMorseCode';\n\nexport const MorseCodeFallback: React.FC<MorseCodeProps> = props => {\n const morseCodeStyles = useMorseCodeStyles();\n\n const targetRef = useFallbackRef(morseCode);\n\n const { className, baseUrl, fileName, ...restProps } = props;\n const wrapperClassName = mergeClasses(morseCodeStyles.wrapper, className);\n const morseCodeClassName = mergeClasses('fai-MorseCode', 'fai-MorseCodeFallback', morseCodeStyles.base);\n\n return renderMorseCode(wrapperClassName, restProps, morseCodeClassName, targetRef);\n};\n"],"names":["mergeClasses","morseCode","useMorseCodeStyles","useFallbackRef","renderMorseCode","MorseCodeFallback","props","morseCodeStyles","targetRef","className","baseUrl","fileName","restProps","wrapperClassName","wrapper","morseCodeClassName","base"],"rangeMappings":";;;;;;;;;;;;","mappings":"AAAA,SAASA,YAAY,QAAQ,6BAA6B;AAC1D,SAASC,SAAS,QAAQ,+BAA+B;AACzD,SAASC,kBAAkB,QAAQ,qBAAqB;AAGxD,SAASC,cAAc,QAAQ,0BAA0B;AACzD,SAASC,eAAe,QAAQ,4BAA4B;AAE5D,OAAO,MAAMC,oBAA8CC,CAAAA;IACzD,MAAMC,kBAAkBL;IAExB,MAAMM,YAAYL,eAAeF;IAEjC,MAAM,EAAEQ,SAAS,EAAEC,OAAO,EAAEC,QAAQ,EAAE,GAAGC,WAAW,GAAGN;IACvD,MAAMO,mBAAmBb,aAAaO,gBAAgBO,OAAO,EAAEL;IAC/D,MAAMM,qBAAqBf,aAAa,iBAAiB,yBAAyBO,gBAAgBS,IAAI;IAEtG,OAAOZ,gBAAgBS,kBAAkBD,WAAWG,oBAAoBP;AAC1E,EAAE"}
@@ -0,0 +1,23 @@
1
+ import * as React from 'react';
2
+ import { mergeClasses, useFluent } from '@fluentui/react-components';
3
+ import { useAddModule } from '../hooks/useAddModule';
4
+ import { useMorseCodeStyles } from './MorseCode.styles';
5
+ import { initializeMorseCodeCustomProperties, DEFAULT_BASE_URL, DEFAULT_FILE_URL } from '@fluentui-copilot/morse-code';
6
+ import { renderMorseCode } from '../shared/renderMorseCode';
7
+ import { useMorseCodeAnimationClassName } from './MorseCodeHoudini.styles';
8
+ export const MorseCodeHoudini = ({ baseUrl = DEFAULT_BASE_URL, fileName = DEFAULT_FILE_URL, className, ...restProps })=>{
9
+ const { targetDocument } = useFluent();
10
+ var _targetDocument_defaultView;
11
+ const targetWindow = (_targetDocument_defaultView = targetDocument === null || targetDocument === void 0 ? void 0 : targetDocument.defaultView) !== null && _targetDocument_defaultView !== void 0 ? _targetDocument_defaultView : undefined;
12
+ React.useEffect(()=>{
13
+ initializeMorseCodeCustomProperties(targetWindow);
14
+ }, [
15
+ targetWindow
16
+ ]);
17
+ useAddModule(targetWindow, baseUrl, fileName);
18
+ const morseCodeStyles = useMorseCodeStyles();
19
+ const animationClassName = useMorseCodeAnimationClassName();
20
+ const wrapperClassName = mergeClasses(morseCodeStyles.wrapper, className);
21
+ const morseCodeClassName = mergeClasses('fai-MorseCode', 'fai-MorseCodeHoudini', morseCodeStyles.base, animationClassName);
22
+ return renderMorseCode(wrapperClassName, restProps, morseCodeClassName);
23
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["MorseCodeHoudini.tsx"],"sourcesContent":["import * as React from 'react';\nimport { mergeClasses, useFluent } from '@fluentui/react-components';\nimport { useAddModule } from '../hooks/useAddModule';\nimport { useMorseCodeStyles } from './MorseCode.styles';\n\nimport { initializeMorseCodeCustomProperties, DEFAULT_BASE_URL, DEFAULT_FILE_URL } from '@fluentui-copilot/morse-code';\n\nimport type { MorseCodeProps } from '../MorseCode.types';\nimport { renderMorseCode } from '../shared/renderMorseCode';\nimport { useMorseCodeAnimationClassName } from './MorseCodeHoudini.styles';\n\nexport const MorseCodeHoudini: React.FC<MorseCodeProps> = ({\n baseUrl = DEFAULT_BASE_URL,\n fileName = DEFAULT_FILE_URL,\n className,\n ...restProps\n}) => {\n const { targetDocument } = useFluent();\n const targetWindow = targetDocument?.defaultView ?? undefined;\n\n React.useEffect(() => {\n initializeMorseCodeCustomProperties(targetWindow);\n }, [targetWindow]);\n\n useAddModule(targetWindow, baseUrl, fileName);\n\n const morseCodeStyles = useMorseCodeStyles();\n const animationClassName = useMorseCodeAnimationClassName();\n const wrapperClassName = mergeClasses(morseCodeStyles.wrapper, className);\n const morseCodeClassName = mergeClasses(\n 'fai-MorseCode',\n 'fai-MorseCodeHoudini',\n morseCodeStyles.base,\n animationClassName,\n );\n\n return renderMorseCode(wrapperClassName, restProps, morseCodeClassName);\n};\n"],"names":["React","mergeClasses","useFluent","useAddModule","useMorseCodeStyles","initializeMorseCodeCustomProperties","DEFAULT_BASE_URL","DEFAULT_FILE_URL","renderMorseCode","useMorseCodeAnimationClassName","MorseCodeHoudini","baseUrl","fileName","className","restProps","targetDocument","targetWindow","defaultView","undefined","useEffect","morseCodeStyles","animationClassName","wrapperClassName","wrapper","morseCodeClassName","base"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,YAAY,EAAEC,SAAS,QAAQ,6BAA6B;AACrE,SAASC,YAAY,QAAQ,wBAAwB;AACrD,SAASC,kBAAkB,QAAQ,qBAAqB;AAExD,SAASC,mCAAmC,EAAEC,gBAAgB,EAAEC,gBAAgB,QAAQ,+BAA+B;AAGvH,SAASC,eAAe,QAAQ,4BAA4B;AAC5D,SAASC,8BAA8B,QAAQ,4BAA4B;AAE3E,OAAO,MAAMC,mBAA6C,CAAC,EACzDC,UAAUL,gBAAgB,EAC1BM,WAAWL,gBAAgB,EAC3BM,SAAS,EACT,GAAGC,WACJ;IACC,MAAM,EAAEC,cAAc,EAAE,GAAGb;QACNa;IAArB,MAAMC,eAAeD,CAAAA,8BAAAA,2BAAAA,qCAAAA,eAAgBE,WAAW,cAA3BF,yCAAAA,8BAA+BG;IAEpDlB,MAAMmB,SAAS,CAAC;QACdd,oCAAoCW;IACtC,GAAG;QAACA;KAAa;IAEjBb,aAAaa,cAAcL,SAASC;IAEpC,MAAMQ,kBAAkBhB;IACxB,MAAMiB,qBAAqBZ;IAC3B,MAAMa,mBAAmBrB,aAAamB,gBAAgBG,OAAO,EAAEV;IAC/D,MAAMW,qBAAqBvB,aACzB,iBACA,wBACAmB,gBAAgBK,IAAI,EACpBJ;IAGF,OAAOb,gBAAgBc,kBAAkBR,WAAWU;AACtD,EAAE"}
@@ -0,0 +1,13 @@
1
+ import { __resetStyles } from '@fluentui/react-components';
2
+ import { morseCodeAnimationTokens, morseCodeTokens } from '@fluentui-copilot/morse-code';
3
+ const sharedStyles = {
4
+ backgroundImage: morseCodeTokens.backgroundImage,
5
+ animationIterationCount: morseCodeTokens.morseCodeAnimationIterationCount,
6
+ animationDuration: morseCodeTokens.morseCodeAnimationDuration,
7
+ animationTimingFunction: morseCodeTokens.morseCodeAnimationTimingFunction
8
+ };
9
+ export const useMorseCodeAnimationClassName = __resetStyles("r1ms8zpq", "rqpk8qn", {
10
+ r: [".r1ms8zpq{background-image:paint(morseCode);animation-iteration-count:infinite,infinite;animation-duration:2000ms,2000ms;animation-timing-function:linear,linear;animation-name:rarbvpc,r1i9k8jr;}", "@keyframes rarbvpc{0%{--fai-morse-code-gradient-color-1:var(--colorBrandMorseCode1);--fai-morse-code-gradient-color-2:var(--colorBrandMorseCode2);--fai-morse-code-gradient-color-3:var(--colorBrandMorseCode3);}20%{--fai-morse-code-gradient-color-1:var(--colorBrandMorseCode1);--fai-morse-code-gradient-color-2:var(--colorBrandMorseCode2);--fai-morse-code-gradient-color-3:var(--colorBrandMorseCode3);}33%{--fai-morse-code-gradient-color-1:var(--colorBrandMorseCode4);--fai-morse-code-gradient-color-2:var(--colorBrandMorseCode5);--fai-morse-code-gradient-color-3:var(--colorBrandMorseCode6);}50%{--fai-morse-code-gradient-color-1:var(--colorBrandMorseCode4);--fai-morse-code-gradient-color-2:var(--colorBrandMorseCode5);--fai-morse-code-gradient-color-3:var(--colorBrandMorseCode6);}66%{--fai-morse-code-gradient-color-1:var(--colorBrandMorseCode7);--fai-morse-code-gradient-color-2:var(--colorBrandMorseCode8);--fai-morse-code-gradient-color-3:var(--colorBrandMorseCode9);}80%{--fai-morse-code-gradient-color-1:var(--colorBrandMorseCode7);--fai-morse-code-gradient-color-2:var(--colorBrandMorseCode8);--fai-morse-code-gradient-color-3:var(--colorBrandMorseCode9);}100%{--fai-morse-code-gradient-color-1:var(--colorBrandMorseCode1);--fai-morse-code-gradient-color-2:var(--colorBrandMorseCode2);--fai-morse-code-gradient-color-3:var(--colorBrandMorseCode3);}}", "@keyframes r1i9k8jr{0%{--fai-morse-code-width-1:20px;--fai-morse-code-x-position-1:26px;--fai-morse-code-opacity-1:1;--fai-morse-code-width-2:104px;--fai-morse-code-x-position-2:62px;--fai-morse-code-opacity-2:1;--fai-morse-code-width-3:20px;--fai-morse-code-x-position-3:182px;--fai-morse-code-opacity-3:1;--fai-morse-code-width-4:60px;--fai-morse-code-x-position-4:218px;--fai-morse-code-opacity-4:1;--fai-morse-code-width-5:40px;--fai-morse-code-x-position-5:294px;--fai-morse-code-opacity-5:1;--fai-morse-code-width-6:20px;--fai-morse-code-x-position-6:350px;--fai-morse-code-opacity-6:1;--fai-morse-code-width-7:20px;--fai-morse-code-x-position-7:386px;--fai-morse-code-opacity-7:0;--fai-morse-code-width-8:20px;--fai-morse-code-x-position-8:422px;--fai-morse-code-opacity-8:0;}20%{--fai-morse-code-width-1:20px;--fai-morse-code-x-position-1:26px;--fai-morse-code-opacity-1:1;--fai-morse-code-width-2:104px;--fai-morse-code-x-position-2:62px;--fai-morse-code-opacity-2:1;--fai-morse-code-width-3:20px;--fai-morse-code-x-position-3:182px;--fai-morse-code-opacity-3:1;--fai-morse-code-width-4:60px;--fai-morse-code-x-position-4:218px;--fai-morse-code-opacity-4:1;--fai-morse-code-width-5:40px;--fai-morse-code-x-position-5:294px;--fai-morse-code-opacity-5:1;--fai-morse-code-width-6:20px;--fai-morse-code-x-position-6:350px;--fai-morse-code-opacity-6:1;--fai-morse-code-width-7:20px;--fai-morse-code-x-position-7:386px;--fai-morse-code-opacity-7:0;--fai-morse-code-width-8:20px;--fai-morse-code-x-position-8:422px;--fai-morse-code-opacity-8:0;}33%{--fai-morse-code-width-1:30px;--fai-morse-code-x-position-1:26px;--fai-morse-code-opacity-1:1;--fai-morse-code-width-2:20px;--fai-morse-code-x-position-2:72px;--fai-morse-code-opacity-2:1;--fai-morse-code-width-3:60px;--fai-morse-code-x-position-3:108px;--fai-morse-code-opacity-3:1;--fai-morse-code-width-4:80px;--fai-morse-code-x-position-4:184px;--fai-morse-code-opacity-4:1;--fai-morse-code-width-5:20px;--fai-morse-code-x-position-5:280px;--fai-morse-code-opacity-5:1;--fai-morse-code-width-6:60px;--fai-morse-code-x-position-6:316px;--fai-morse-code-opacity-6:1;--fai-morse-code-width-7:20px;--fai-morse-code-x-position-7:392px;--fai-morse-code-opacity-7:0;--fai-morse-code-width-8:20px;--fai-morse-code-x-position-8:428px;--fai-morse-code-opacity-8:0;}50%{--fai-morse-code-width-1:30px;--fai-morse-code-x-position-1:26px;--fai-morse-code-opacity-1:1;--fai-morse-code-width-2:20px;--fai-morse-code-x-position-2:72px;--fai-morse-code-opacity-2:1;--fai-morse-code-width-3:60px;--fai-morse-code-x-position-3:108px;--fai-morse-code-opacity-3:1;--fai-morse-code-width-4:80px;--fai-morse-code-x-position-4:184px;--fai-morse-code-opacity-4:1;--fai-morse-code-width-5:20px;--fai-morse-code-x-position-5:280px;--fai-morse-code-opacity-5:1;--fai-morse-code-width-6:60px;--fai-morse-code-x-position-6:316px;--fai-morse-code-opacity-6:1;--fai-morse-code-width-7:20px;--fai-morse-code-x-position-7:392px;--fai-morse-code-opacity-7:0;--fai-morse-code-width-8:20px;--fai-morse-code-x-position-8:428px;--fai-morse-code-opacity-8:0;}66%{--fai-morse-code-width-1:20px;--fai-morse-code-opacity-1:0;--fai-morse-code-x-position-1:0px;--fai-morse-code-width-2:70px;--fai-morse-code-opacity-2:1;--fai-morse-code-x-position-2:26px;--fai-morse-code-width-3:20px;--fai-morse-code-opacity-3:1;--fai-morse-code-x-position-3:112px;--fai-morse-code-width-4:40px;--fai-morse-code-x-position-4:148px;--fai-morse-code-opacity-4:1;--fai-morse-code-width-5:80px;--fai-morse-code-x-position-5:204px;--fai-morse-code-opacity-5:1;--fai-morse-code-width-6:20px;--fai-morse-code-x-position-6:300px;--fai-morse-code-opacity-6:1;--fai-morse-code-width-7:40px;--fai-morse-code-x-position-7:336px;--fai-morse-code-opacity-7:1;--fai-morse-code-width-8:20px;--fai-morse-code-x-position-8:392px;--fai-morse-code-opacity-8:0;}80%{--fai-morse-code-width-1:20px;--fai-morse-code-opacity-1:0;--fai-morse-code-x-position-1:0px;--fai-morse-code-width-2:70px;--fai-morse-code-opacity-2:1;--fai-morse-code-x-position-2:26px;--fai-morse-code-width-3:20px;--fai-morse-code-opacity-3:1;--fai-morse-code-x-position-3:112px;--fai-morse-code-width-4:40px;--fai-morse-code-x-position-4:148px;--fai-morse-code-opacity-4:1;--fai-morse-code-width-5:80px;--fai-morse-code-x-position-5:204px;--fai-morse-code-opacity-5:1;--fai-morse-code-width-6:20px;--fai-morse-code-x-position-6:300px;--fai-morse-code-opacity-6:1;--fai-morse-code-width-7:40px;--fai-morse-code-x-position-7:336px;--fai-morse-code-opacity-7:1;--fai-morse-code-width-8:20px;--fai-morse-code-x-position-8:392px;--fai-morse-code-opacity-8:0;}100%{--fai-morse-code-width-1:20px;--fai-morse-code-opacity-1:0;--fai-morse-code-x-position-1:0px;--fai-morse-code-width-2:20px;--fai-morse-code-opacity-2:0;--fai-morse-code-x-position-2:0px;--fai-morse-code-width-3:20px;--fai-morse-code-opacity-3:1;--fai-morse-code-x-position-3:26px;--fai-morse-code-width-4:104px;--fai-morse-code-x-position-4:62px;--fai-morse-code-opacity-4:1;--fai-morse-code-width-5:20px;--fai-morse-code-x-position-5:182px;--fai-morse-code-opacity-5:1;--fai-morse-code-width-6:60px;--fai-morse-code-x-position-6:218px;--fai-morse-code-opacity-6:1;--fai-morse-code-width-7:40px;--fai-morse-code-x-position-7:294px;--fai-morse-code-opacity-7:1;--fai-morse-code-width-8:20px;--fai-morse-code-x-position-8:350px;--fai-morse-code-opacity-8:1;}}", ".rqpk8qn{background-image:paint(morseCode);animation-iteration-count:infinite,infinite;animation-duration:2000ms,2000ms;animation-timing-function:linear,linear;animation-name:rarbvpc,r1i9k8jr;}"],
11
+ s: ["@media (forced-colors: active){.r1ms8zpq{background-image:paint(morseCode);animation-iteration-count:infinite,infinite;animation-duration:2000ms,2000ms;animation-timing-function:linear,linear;animation-name:r9zjrdo,r1i9k8jr;}@keyframes r9zjrdo{0%{--fai-morse-code-gradient-color-1:var(--colorHCMorseCode1);--fai-morse-code-gradient-color-2:var(--colorHCMorseCode2);--fai-morse-code-gradient-color-3:var(--colorHCMorseCode3);}20%{--fai-morse-code-gradient-color-1:var(--colorHCMorseCode1);--fai-morse-code-gradient-color-2:var(--colorHCMorseCode2);--fai-morse-code-gradient-color-3:var(--colorHCMorseCode3);}33%{--fai-morse-code-gradient-color-1:var(--colorHCMorseCode4);--fai-morse-code-gradient-color-2:var(--colorHCMorseCode5);--fai-morse-code-gradient-color-3:var(--colorHCMorseCode6);}50%{--fai-morse-code-gradient-color-1:var(--colorHCMorseCode4);--fai-morse-code-gradient-color-2:var(--colorHCMorseCode5);--fai-morse-code-gradient-color-3:var(--colorHCMorseCode6);}66%{--fai-morse-code-gradient-color-1:var(--colorHCMorseCode7);--fai-morse-code-gradient-color-2:var(--colorHCMorseCode8);--fai-morse-code-gradient-color-3:var(--colorHCMorseCode9);}80%{--fai-morse-code-gradient-color-1:var(--colorHCMorseCode7);--fai-morse-code-gradient-color-2:var(--colorHCMorseCode8);--fai-morse-code-gradient-color-3:var(--colorHCMorseCode9);}100%{--fai-morse-code-gradient-color-1:var(--colorHCMorseCode1);--fai-morse-code-gradient-color-2:var(--colorHCMorseCode2);--fai-morse-code-gradient-color-3:var(--colorHCMorseCode3);}}@keyframes r1i9k8jr{0%{--fai-morse-code-width-1:20px;--fai-morse-code-x-position-1:26px;--fai-morse-code-opacity-1:1;--fai-morse-code-width-2:104px;--fai-morse-code-x-position-2:62px;--fai-morse-code-opacity-2:1;--fai-morse-code-width-3:20px;--fai-morse-code-x-position-3:182px;--fai-morse-code-opacity-3:1;--fai-morse-code-width-4:60px;--fai-morse-code-x-position-4:218px;--fai-morse-code-opacity-4:1;--fai-morse-code-width-5:40px;--fai-morse-code-x-position-5:294px;--fai-morse-code-opacity-5:1;--fai-morse-code-width-6:20px;--fai-morse-code-x-position-6:350px;--fai-morse-code-opacity-6:1;--fai-morse-code-width-7:20px;--fai-morse-code-x-position-7:386px;--fai-morse-code-opacity-7:0;--fai-morse-code-width-8:20px;--fai-morse-code-x-position-8:422px;--fai-morse-code-opacity-8:0;}20%{--fai-morse-code-width-1:20px;--fai-morse-code-x-position-1:26px;--fai-morse-code-opacity-1:1;--fai-morse-code-width-2:104px;--fai-morse-code-x-position-2:62px;--fai-morse-code-opacity-2:1;--fai-morse-code-width-3:20px;--fai-morse-code-x-position-3:182px;--fai-morse-code-opacity-3:1;--fai-morse-code-width-4:60px;--fai-morse-code-x-position-4:218px;--fai-morse-code-opacity-4:1;--fai-morse-code-width-5:40px;--fai-morse-code-x-position-5:294px;--fai-morse-code-opacity-5:1;--fai-morse-code-width-6:20px;--fai-morse-code-x-position-6:350px;--fai-morse-code-opacity-6:1;--fai-morse-code-width-7:20px;--fai-morse-code-x-position-7:386px;--fai-morse-code-opacity-7:0;--fai-morse-code-width-8:20px;--fai-morse-code-x-position-8:422px;--fai-morse-code-opacity-8:0;}33%{--fai-morse-code-width-1:30px;--fai-morse-code-x-position-1:26px;--fai-morse-code-opacity-1:1;--fai-morse-code-width-2:20px;--fai-morse-code-x-position-2:72px;--fai-morse-code-opacity-2:1;--fai-morse-code-width-3:60px;--fai-morse-code-x-position-3:108px;--fai-morse-code-opacity-3:1;--fai-morse-code-width-4:80px;--fai-morse-code-x-position-4:184px;--fai-morse-code-opacity-4:1;--fai-morse-code-width-5:20px;--fai-morse-code-x-position-5:280px;--fai-morse-code-opacity-5:1;--fai-morse-code-width-6:60px;--fai-morse-code-x-position-6:316px;--fai-morse-code-opacity-6:1;--fai-morse-code-width-7:20px;--fai-morse-code-x-position-7:392px;--fai-morse-code-opacity-7:0;--fai-morse-code-width-8:20px;--fai-morse-code-x-position-8:428px;--fai-morse-code-opacity-8:0;}50%{--fai-morse-code-width-1:30px;--fai-morse-code-x-position-1:26px;--fai-morse-code-opacity-1:1;--fai-morse-code-width-2:20px;--fai-morse-code-x-position-2:72px;--fai-morse-code-opacity-2:1;--fai-morse-code-width-3:60px;--fai-morse-code-x-position-3:108px;--fai-morse-code-opacity-3:1;--fai-morse-code-width-4:80px;--fai-morse-code-x-position-4:184px;--fai-morse-code-opacity-4:1;--fai-morse-code-width-5:20px;--fai-morse-code-x-position-5:280px;--fai-morse-code-opacity-5:1;--fai-morse-code-width-6:60px;--fai-morse-code-x-position-6:316px;--fai-morse-code-opacity-6:1;--fai-morse-code-width-7:20px;--fai-morse-code-x-position-7:392px;--fai-morse-code-opacity-7:0;--fai-morse-code-width-8:20px;--fai-morse-code-x-position-8:428px;--fai-morse-code-opacity-8:0;}66%{--fai-morse-code-width-1:20px;--fai-morse-code-opacity-1:0;--fai-morse-code-x-position-1:0px;--fai-morse-code-width-2:70px;--fai-morse-code-opacity-2:1;--fai-morse-code-x-position-2:26px;--fai-morse-code-width-3:20px;--fai-morse-code-opacity-3:1;--fai-morse-code-x-position-3:112px;--fai-morse-code-width-4:40px;--fai-morse-code-x-position-4:148px;--fai-morse-code-opacity-4:1;--fai-morse-code-width-5:80px;--fai-morse-code-x-position-5:204px;--fai-morse-code-opacity-5:1;--fai-morse-code-width-6:20px;--fai-morse-code-x-position-6:300px;--fai-morse-code-opacity-6:1;--fai-morse-code-width-7:40px;--fai-morse-code-x-position-7:336px;--fai-morse-code-opacity-7:1;--fai-morse-code-width-8:20px;--fai-morse-code-x-position-8:392px;--fai-morse-code-opacity-8:0;}80%{--fai-morse-code-width-1:20px;--fai-morse-code-opacity-1:0;--fai-morse-code-x-position-1:0px;--fai-morse-code-width-2:70px;--fai-morse-code-opacity-2:1;--fai-morse-code-x-position-2:26px;--fai-morse-code-width-3:20px;--fai-morse-code-opacity-3:1;--fai-morse-code-x-position-3:112px;--fai-morse-code-width-4:40px;--fai-morse-code-x-position-4:148px;--fai-morse-code-opacity-4:1;--fai-morse-code-width-5:80px;--fai-morse-code-x-position-5:204px;--fai-morse-code-opacity-5:1;--fai-morse-code-width-6:20px;--fai-morse-code-x-position-6:300px;--fai-morse-code-opacity-6:1;--fai-morse-code-width-7:40px;--fai-morse-code-x-position-7:336px;--fai-morse-code-opacity-7:1;--fai-morse-code-width-8:20px;--fai-morse-code-x-position-8:392px;--fai-morse-code-opacity-8:0;}100%{--fai-morse-code-width-1:20px;--fai-morse-code-opacity-1:0;--fai-morse-code-x-position-1:0px;--fai-morse-code-width-2:20px;--fai-morse-code-opacity-2:0;--fai-morse-code-x-position-2:0px;--fai-morse-code-width-3:20px;--fai-morse-code-opacity-3:1;--fai-morse-code-x-position-3:26px;--fai-morse-code-width-4:104px;--fai-morse-code-x-position-4:62px;--fai-morse-code-opacity-4:1;--fai-morse-code-width-5:20px;--fai-morse-code-x-position-5:182px;--fai-morse-code-opacity-5:1;--fai-morse-code-width-6:60px;--fai-morse-code-x-position-6:218px;--fai-morse-code-opacity-6:1;--fai-morse-code-width-7:40px;--fai-morse-code-x-position-7:294px;--fai-morse-code-opacity-7:1;--fai-morse-code-width-8:20px;--fai-morse-code-x-position-8:350px;--fai-morse-code-opacity-8:1;}}}", "@media (forced-colors: active){.rqpk8qn{background-image:paint(morseCode);animation-iteration-count:infinite,infinite;animation-duration:2000ms,2000ms;animation-timing-function:linear,linear;animation-name:r9zjrdo,r1i9k8jr;}}"]
12
+ });
13
+ //# sourceMappingURL=MorseCodeHoudini.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["MorseCodeHoudini.styles.ts"],"sourcesContent":["import { makeResetStyles } from '@fluentui/react-components';\nimport { morseCodeAnimationTokens, morseCodeTokens } from '@fluentui-copilot/morse-code';\n\nconst sharedStyles = {\n backgroundImage: morseCodeTokens.backgroundImage,\n animationIterationCount: morseCodeTokens.morseCodeAnimationIterationCount,\n animationDuration: morseCodeTokens.morseCodeAnimationDuration,\n animationTimingFunction: morseCodeTokens.morseCodeAnimationTimingFunction,\n};\n\nexport const useMorseCodeAnimationClassName = makeResetStyles({\n ...sharedStyles,\n animationName: [morseCodeAnimationTokens.colorAnimation, morseCodeAnimationTokens.dotsAndDashes],\n\n '@media (forced-colors: active)': {\n ...sharedStyles,\n animationName: [morseCodeAnimationTokens.colorHCAnimation, morseCodeAnimationTokens.dotsAndDashes],\n },\n});\n"],"names":["makeResetStyles","morseCodeAnimationTokens","morseCodeTokens","sharedStyles","backgroundImage","animationIterationCount","morseCodeAnimationIterationCount","animationDuration","morseCodeAnimationDuration","animationTimingFunction","morseCodeAnimationTimingFunction","useMorseCodeAnimationClassName","animationName","colorAnimation","dotsAndDashes","colorHCAnimation"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,SAASA,eAAe,QAAQ,6BAA6B;AAC7D,SAASC,wBAAwB,EAAEC,eAAe,QAAQ,+BAA+B;AAEzF,MAAMC,eAAe;IACnBC,iBAAiBF,gBAAgBE,eAAe;IAChDC,yBAAyBH,gBAAgBI,gCAAgC;IACzEC,mBAAmBL,gBAAgBM,0BAA0B;IAC7DC,yBAAyBP,gBAAgBQ,gCAAgC;AAC3E;AAEA,OAAO,MAAMC,iCAAiCX,gBAAgB;IAC5D,GAAGG,YAAY;IACfS,eAAe;QAACX,yBAAyBY,cAAc;QAAEZ,yBAAyBa,aAAa;KAAC;IAEhG,kCAAkC;QAChC,GAAGX,YAAY;QACfS,eAAe;YAACX,yBAAyBc,gBAAgB;YAAEd,yBAAyBa,aAAa;SAAC;IACpG;AACF,GAAG"}
@@ -0,0 +1,22 @@
1
+ import { makeResetStyles } from '@fluentui/react-components';
2
+ import { morseCodeAnimationTokens, morseCodeTokens } from '@fluentui-copilot/morse-code';
3
+ const sharedStyles = {
4
+ backgroundImage: morseCodeTokens.backgroundImage,
5
+ animationIterationCount: morseCodeTokens.morseCodeAnimationIterationCount,
6
+ animationDuration: morseCodeTokens.morseCodeAnimationDuration,
7
+ animationTimingFunction: morseCodeTokens.morseCodeAnimationTimingFunction
8
+ };
9
+ export const useMorseCodeAnimationClassName = makeResetStyles({
10
+ ...sharedStyles,
11
+ animationName: [
12
+ morseCodeAnimationTokens.colorAnimation,
13
+ morseCodeAnimationTokens.dotsAndDashes
14
+ ],
15
+ '@media (forced-colors: active)': {
16
+ ...sharedStyles,
17
+ animationName: [
18
+ morseCodeAnimationTokens.colorHCAnimation,
19
+ morseCodeAnimationTokens.dotsAndDashes
20
+ ]
21
+ }
22
+ });
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["MorseCodeHoudini.styles.ts"],"sourcesContent":["import { makeResetStyles } from '@fluentui/react-components';\nimport { morseCodeAnimationTokens, morseCodeTokens } from '@fluentui-copilot/morse-code';\n\nconst sharedStyles = {\n backgroundImage: morseCodeTokens.backgroundImage,\n animationIterationCount: morseCodeTokens.morseCodeAnimationIterationCount,\n animationDuration: morseCodeTokens.morseCodeAnimationDuration,\n animationTimingFunction: morseCodeTokens.morseCodeAnimationTimingFunction,\n};\n\nexport const useMorseCodeAnimationClassName = makeResetStyles({\n ...sharedStyles,\n animationName: [morseCodeAnimationTokens.colorAnimation, morseCodeAnimationTokens.dotsAndDashes],\n\n '@media (forced-colors: active)': {\n ...sharedStyles,\n animationName: [morseCodeAnimationTokens.colorHCAnimation, morseCodeAnimationTokens.dotsAndDashes],\n },\n});\n"],"names":["makeResetStyles","morseCodeAnimationTokens","morseCodeTokens","sharedStyles","backgroundImage","animationIterationCount","morseCodeAnimationIterationCount","animationDuration","morseCodeAnimationDuration","animationTimingFunction","morseCodeAnimationTimingFunction","useMorseCodeAnimationClassName","animationName","colorAnimation","dotsAndDashes","colorHCAnimation"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,SAASA,eAAe,QAAQ,6BAA6B;AAC7D,SAASC,wBAAwB,EAAEC,eAAe,QAAQ,+BAA+B;AAEzF,MAAMC,eAAe;IACnBC,iBAAiBF,gBAAgBE,eAAe;IAChDC,yBAAyBH,gBAAgBI,gCAAgC;IACzEC,mBAAmBL,gBAAgBM,0BAA0B;IAC7DC,yBAAyBP,gBAAgBQ,gCAAgC;AAC3E;AAEA,OAAO,MAAMC,iCAAiCX,gBAAgB;IAC5D,GAAGG,YAAY;IACfS,eAAe;QAACX,yBAAyBY,cAAc;QAAEZ,yBAAyBa,aAAa;KAAC;IAEhG,kCAAkC;QAChC,GAAGX,YAAY;QACfS,eAAe;YAACX,yBAAyBc,gBAAgB;YAAEd,yBAAyBa,aAAa;SAAC;IACpG;AACF,GAAG"}
@@ -0,0 +1,10 @@
1
+ import * as React from 'react';
2
+ export const renderMorseCode = (wrapperClassName, wrapperProps, morseCodeClassName, targetRef)=>{
3
+ return /*#__PURE__*/ React.createElement("div", {
4
+ className: wrapperClassName,
5
+ ...wrapperProps
6
+ }, /*#__PURE__*/ React.createElement("div", {
7
+ ref: targetRef,
8
+ className: morseCodeClassName
9
+ }));
10
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["renderMorseCode.tsx"],"sourcesContent":["import * as React from 'react';\nimport type { JSXElement } from '@fluentui/react-components';\n\nexport const renderMorseCode = (\n wrapperClassName: string,\n wrapperProps: React.HTMLAttributes<HTMLDivElement>,\n morseCodeClassName: string,\n targetRef?: (node: HTMLElement | null) => void,\n): JSXElement => {\n return (\n <div className={wrapperClassName} {...wrapperProps}>\n <div ref={targetRef} className={morseCodeClassName} />\n </div>\n );\n};\n"],"names":["React","renderMorseCode","wrapperClassName","wrapperProps","morseCodeClassName","targetRef","div","className","ref"],"rangeMappings":";;;;;;;;;","mappings":"AAAA,YAAYA,WAAW,QAAQ;AAG/B,OAAO,MAAMC,kBAAkB,CAC7BC,kBACAC,cACAC,oBACAC;IAEA,qBACE,oBAACC;QAAIC,WAAWL;QAAmB,GAAGC,YAAY;qBAChD,oBAACG;QAAIE,KAAKH;QAAWE,WAAWH;;AAGtC,EAAE"}
@@ -0,0 +1,17 @@
1
+ import * as React from 'react';
2
+ import { hasHoudini } from '@fluentui-contrib/houdini-utils';
3
+ import { MorseCodeSmallFallback } from './MorseCodeSmallFallback';
4
+ import { MorseCodeSmallHoudini } from './MorseCodeSmallHoudini';
5
+ import { useFluent } from '@fluentui/react-components';
6
+ export const MorseCodeSmall = (props)=>{
7
+ const { targetDocument } = useFluent();
8
+ var _targetDocument_defaultView;
9
+ const targetWindow = (_targetDocument_defaultView = targetDocument === null || targetDocument === void 0 ? void 0 : targetDocument.defaultView) !== null && _targetDocument_defaultView !== void 0 ? _targetDocument_defaultView : undefined;
10
+ const houdiniAvailable = React.useMemo(()=>hasHoudini(targetWindow), [
11
+ targetWindow
12
+ ]);
13
+ if (houdiniAvailable) {
14
+ return /*#__PURE__*/ React.createElement(MorseCodeSmallHoudini, props);
15
+ }
16
+ return /*#__PURE__*/ React.createElement(MorseCodeSmallFallback, props);
17
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["MorseCodeSmall.tsx"],"sourcesContent":["import * as React from 'react';\nimport { hasHoudini } from '@fluentui-contrib/houdini-utils';\nimport { MorseCodeSmallFallback } from './MorseCodeSmallFallback';\nimport { MorseCodeSmallHoudini } from './MorseCodeSmallHoudini';\n\nimport type { MorseCodeProps } from '../MorseCode.types';\nimport { useFluent } from '@fluentui/react-components';\n\nexport const MorseCodeSmall: React.FC<MorseCodeProps> = props => {\n const { targetDocument } = useFluent();\n const targetWindow = targetDocument?.defaultView ?? undefined;\n const houdiniAvailable = React.useMemo(() => hasHoudini(targetWindow), [targetWindow]);\n\n if (houdiniAvailable) {\n return <MorseCodeSmallHoudini {...props} />;\n }\n\n return <MorseCodeSmallFallback {...props} />;\n};\n"],"names":["React","hasHoudini","MorseCodeSmallFallback","MorseCodeSmallHoudini","useFluent","MorseCodeSmall","props","targetDocument","targetWindow","defaultView","undefined","houdiniAvailable","useMemo"],"rangeMappings":";;;;;;;;;;;;;;;;","mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,UAAU,QAAQ,kCAAkC;AAC7D,SAASC,sBAAsB,QAAQ,2BAA2B;AAClE,SAASC,qBAAqB,QAAQ,0BAA0B;AAGhE,SAASC,SAAS,QAAQ,6BAA6B;AAEvD,OAAO,MAAMC,iBAA2CC,CAAAA;IACtD,MAAM,EAAEC,cAAc,EAAE,GAAGH;QACNG;IAArB,MAAMC,eAAeD,CAAAA,8BAAAA,2BAAAA,qCAAAA,eAAgBE,WAAW,cAA3BF,yCAAAA,8BAA+BG;IACpD,MAAMC,mBAAmBX,MAAMY,OAAO,CAAC,IAAMX,WAAWO,eAAe;QAACA;KAAa;IAErF,IAAIG,kBAAkB;QACpB,qBAAO,oBAACR,uBAA0BG;IACpC;IAEA,qBAAO,oBAACJ,wBAA2BI;AACrC,EAAE"}
@@ -0,0 +1,21 @@
1
+ import { __styles } from '@fluentui/react-components';
2
+ import { morseCodeSmallTokens } from '@fluentui-copilot/morse-code';
3
+ export const useMorseCodeSmallStyles = __styles({
4
+ base: {
5
+ B3jt8gx: "fziq3oc",
6
+ Bcicc91: "f10hrr0e",
7
+ sshi5w: "f1csse87",
8
+ Bvjb7m6: "fdgv6k0",
9
+ jekbwv: "f1x4gczw",
10
+ B20m2qn: "f1mvgrou",
11
+ It5emp: "f1p87gnb"
12
+ },
13
+ wrapper: {
14
+ a9b677: "fly5x3f",
15
+ Bqenvij: "f1l02sjl"
16
+ }
17
+ }, {
18
+ t: ["@supports (aspect-ratio: 10 / 1){.fziq3oc{aspect-ratio:10/1;}}", "@supports not (aspect-ratio: 10 / 1){.f10hrr0e{padding-top:10%;}}"],
19
+ d: [".f1csse87{min-height:5px;}", ".fdgv6k0{forced-color-adjust:none;}", ".f1x4gczw{--fai-morse-code-color-stop-1:0%;}", ".f1mvgrou{--fai-morse-code-color-stop-2:50%;}", ".f1p87gnb{--fai-morse-code-color-stop-3:100%;}", ".fly5x3f{width:100%;}", ".f1l02sjl{height:100%;}"]
20
+ });
21
+ //# sourceMappingURL=MorseCodeSmall.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["MorseCodeSmall.styles.ts"],"sourcesContent":["import { makeStyles } from '@fluentui/react-components';\nimport { morseCodeSmallTokens } from '@fluentui-copilot/morse-code';\n\nexport const useMorseCodeSmallStyles = makeStyles({\n base: {\n '@supports (aspect-ratio: 10 / 1)': {\n aspectRatio: morseCodeSmallTokens.morseCodeAspectRatio,\n },\n '@supports not (aspect-ratio: 10 / 1)': {\n paddingTop: morseCodeSmallTokens.morseCodeAspectRatioFallbackPaddingTop,\n },\n minHeight: '5px',\n forcedColorAdjust: 'none',\n '--fai-morse-code-color-stop-1': morseCodeSmallTokens.morseCodeColorStop1,\n '--fai-morse-code-color-stop-2': morseCodeSmallTokens.morseCodeColorStop2,\n '--fai-morse-code-color-stop-3': morseCodeSmallTokens.morseCodeColorStop3,\n },\n wrapper: {\n width: '100%',\n height: '100%',\n },\n});\n"],"names":["makeStyles","morseCodeSmallTokens","useMorseCodeSmallStyles","base","aspectRatio","morseCodeAspectRatio","paddingTop","morseCodeAspectRatioFallbackPaddingTop","minHeight","forcedColorAdjust","morseCodeColorStop1","morseCodeColorStop2","morseCodeColorStop3","wrapper","width","height"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,SAASA,UAAU,QAAQ,6BAA6B;AACxD,SAASC,oBAAoB,QAAQ,+BAA+B;AAEpE,OAAO,MAAMC,0BAA0BF,WAAW;IAChDG,MAAM;QACJ,qCAAqC;YACnCC,aAAaH,qBAAqBI,oBAAoB;QACxD;QACA,yCAAyC;YACvCC,YAAYL,qBAAqBM,sCAAsC;QACzE;QACAC,WAAW;QACXC,mBAAmB;QACnB,iCAAiCR,qBAAqBS,mBAAmB;QACzE,iCAAiCT,qBAAqBU,mBAAmB;QACzE,iCAAiCV,qBAAqBW,mBAAmB;IAC3E;IACAC,SAAS;QACPC,OAAO;QACPC,QAAQ;IACV;AACF,GAAG"}
@@ -0,0 +1,21 @@
1
+ import { makeStyles } from '@fluentui/react-components';
2
+ import { morseCodeSmallTokens } from '@fluentui-copilot/morse-code';
3
+ export const useMorseCodeSmallStyles = makeStyles({
4
+ base: {
5
+ '@supports (aspect-ratio: 10 / 1)': {
6
+ aspectRatio: morseCodeSmallTokens.morseCodeAspectRatio
7
+ },
8
+ '@supports not (aspect-ratio: 10 / 1)': {
9
+ paddingTop: morseCodeSmallTokens.morseCodeAspectRatioFallbackPaddingTop
10
+ },
11
+ minHeight: '5px',
12
+ forcedColorAdjust: 'none',
13
+ '--fai-morse-code-color-stop-1': morseCodeSmallTokens.morseCodeColorStop1,
14
+ '--fai-morse-code-color-stop-2': morseCodeSmallTokens.morseCodeColorStop2,
15
+ '--fai-morse-code-color-stop-3': morseCodeSmallTokens.morseCodeColorStop3
16
+ },
17
+ wrapper: {
18
+ width: '100%',
19
+ height: '100%'
20
+ }
21
+ });
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["MorseCodeSmall.styles.ts"],"sourcesContent":["import { makeStyles } from '@fluentui/react-components';\nimport { morseCodeSmallTokens } from '@fluentui-copilot/morse-code';\n\nexport const useMorseCodeSmallStyles = makeStyles({\n base: {\n '@supports (aspect-ratio: 10 / 1)': {\n aspectRatio: morseCodeSmallTokens.morseCodeAspectRatio,\n },\n '@supports not (aspect-ratio: 10 / 1)': {\n paddingTop: morseCodeSmallTokens.morseCodeAspectRatioFallbackPaddingTop,\n },\n minHeight: '5px',\n forcedColorAdjust: 'none',\n '--fai-morse-code-color-stop-1': morseCodeSmallTokens.morseCodeColorStop1,\n '--fai-morse-code-color-stop-2': morseCodeSmallTokens.morseCodeColorStop2,\n '--fai-morse-code-color-stop-3': morseCodeSmallTokens.morseCodeColorStop3,\n },\n wrapper: {\n width: '100%',\n height: '100%',\n },\n});\n"],"names":["makeStyles","morseCodeSmallTokens","useMorseCodeSmallStyles","base","aspectRatio","morseCodeAspectRatio","paddingTop","morseCodeAspectRatioFallbackPaddingTop","minHeight","forcedColorAdjust","morseCodeColorStop1","morseCodeColorStop2","morseCodeColorStop3","wrapper","width","height"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,SAASA,UAAU,QAAQ,6BAA6B;AACxD,SAASC,oBAAoB,QAAQ,+BAA+B;AAEpE,OAAO,MAAMC,0BAA0BF,WAAW;IAChDG,MAAM;QACJ,qCAAqC;YACnCC,aAAaH,qBAAqBI,oBAAoB;QACxD;QACA,yCAAyC;YACvCC,YAAYL,qBAAqBM,sCAAsC;QACzE;QACAC,WAAW;QACXC,mBAAmB;QACnB,iCAAiCR,qBAAqBS,mBAAmB;QACzE,iCAAiCT,qBAAqBU,mBAAmB;QACzE,iCAAiCV,qBAAqBW,mBAAmB;IAC3E;IACAC,SAAS;QACPC,OAAO;QACPC,QAAQ;IACV;AACF,GAAG"}
@@ -0,0 +1,13 @@
1
+ import { mergeClasses } from '@fluentui/react-components';
2
+ import { morseCodeSmall } from '@fluentui-copilot/morse-code';
3
+ import { useMorseCodeSmallStyles } from './MorseCodeSmall.styles';
4
+ import { useFallbackRef } from '../hooks/useFallbackRef';
5
+ import { renderMorseCode } from '../shared/renderMorseCode';
6
+ export const MorseCodeSmallFallback = (props)=>{
7
+ const morseCodeStyles = useMorseCodeSmallStyles();
8
+ const targetRef = useFallbackRef(morseCodeSmall);
9
+ const { className, baseUrl, fileName, ...restProps } = props;
10
+ const wrapperClassName = mergeClasses(morseCodeStyles.wrapper, className);
11
+ const morseCodeClassName = mergeClasses('fai-MorseCodeSmall', 'fai-MorseCodeSmallFallback', morseCodeStyles.base);
12
+ return renderMorseCode(wrapperClassName, restProps, morseCodeClassName, targetRef);
13
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["MorseCodeSmallFallback.tsx"],"sourcesContent":["import { mergeClasses } from '@fluentui/react-components';\nimport { morseCodeSmall } from '@fluentui-copilot/morse-code';\nimport { useMorseCodeSmallStyles } from './MorseCodeSmall.styles';\n\nimport type { MorseCodeProps } from '../MorseCode.types';\nimport { useFallbackRef } from '../hooks/useFallbackRef';\nimport { renderMorseCode } from '../shared/renderMorseCode';\n\nexport const MorseCodeSmallFallback: React.FC<MorseCodeProps> = props => {\n const morseCodeStyles = useMorseCodeSmallStyles();\n\n const targetRef = useFallbackRef(morseCodeSmall);\n const { className, baseUrl, fileName, ...restProps } = props;\n const wrapperClassName = mergeClasses(morseCodeStyles.wrapper, className);\n const morseCodeClassName = mergeClasses('fai-MorseCodeSmall', 'fai-MorseCodeSmallFallback', morseCodeStyles.base);\n\n return renderMorseCode(wrapperClassName, restProps, morseCodeClassName, targetRef);\n};\n"],"names":["mergeClasses","morseCodeSmall","useMorseCodeSmallStyles","useFallbackRef","renderMorseCode","MorseCodeSmallFallback","props","morseCodeStyles","targetRef","className","baseUrl","fileName","restProps","wrapperClassName","wrapper","morseCodeClassName","base"],"rangeMappings":";;;;;;;;;;;;","mappings":"AAAA,SAASA,YAAY,QAAQ,6BAA6B;AAC1D,SAASC,cAAc,QAAQ,+BAA+B;AAC9D,SAASC,uBAAuB,QAAQ,0BAA0B;AAGlE,SAASC,cAAc,QAAQ,0BAA0B;AACzD,SAASC,eAAe,QAAQ,4BAA4B;AAE5D,OAAO,MAAMC,yBAAmDC,CAAAA;IAC9D,MAAMC,kBAAkBL;IAExB,MAAMM,YAAYL,eAAeF;IACjC,MAAM,EAAEQ,SAAS,EAAEC,OAAO,EAAEC,QAAQ,EAAE,GAAGC,WAAW,GAAGN;IACvD,MAAMO,mBAAmBb,aAAaO,gBAAgBO,OAAO,EAAEL;IAC/D,MAAMM,qBAAqBf,aAAa,sBAAsB,8BAA8BO,gBAAgBS,IAAI;IAEhH,OAAOZ,gBAAgBS,kBAAkBD,WAAWG,oBAAoBP;AAC1E,EAAE"}
@@ -0,0 +1,23 @@
1
+ import * as React from 'react';
2
+ import { mergeClasses, useFluent } from '@fluentui/react-components';
3
+ import { useAddModule } from '../hooks/useAddModule';
4
+ import { useMorseCodeSmallStyles } from './MorseCodeSmall.styles';
5
+ import { initializeMorseCodeSmallCustomProperties, DEFAULT_BASE_URL, DEFAULT_SMALL_FILE_URL } from '@fluentui-copilot/morse-code';
6
+ import { renderMorseCode } from '../shared/renderMorseCode';
7
+ import { useMorseCodeAnimationClassName } from './MorseCodeSmallHoudini.styles';
8
+ export const MorseCodeSmallHoudini = ({ baseUrl = DEFAULT_BASE_URL, fileName = DEFAULT_SMALL_FILE_URL, className, ...restProps })=>{
9
+ const { targetDocument } = useFluent();
10
+ var _targetDocument_defaultView;
11
+ const targetWindow = (_targetDocument_defaultView = targetDocument === null || targetDocument === void 0 ? void 0 : targetDocument.defaultView) !== null && _targetDocument_defaultView !== void 0 ? _targetDocument_defaultView : undefined;
12
+ React.useEffect(()=>{
13
+ initializeMorseCodeSmallCustomProperties(targetWindow);
14
+ }, [
15
+ targetWindow
16
+ ]);
17
+ useAddModule(targetWindow, baseUrl, fileName);
18
+ const morseCodeSmallStyles = useMorseCodeSmallStyles();
19
+ const animationClassName = useMorseCodeAnimationClassName();
20
+ const wrapperClassName = mergeClasses(morseCodeSmallStyles.wrapper, className);
21
+ const morseCodeClassName = mergeClasses('fai-MorseCodeSmall', 'fai-MorseCodeSmallHoudini', morseCodeSmallStyles.base, animationClassName);
22
+ return renderMorseCode(wrapperClassName, restProps, morseCodeClassName);
23
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["MorseCodeSmallHoudini.tsx"],"sourcesContent":["import * as React from 'react';\nimport { mergeClasses, useFluent } from '@fluentui/react-components';\nimport { useAddModule } from '../hooks/useAddModule';\nimport { useMorseCodeSmallStyles } from './MorseCodeSmall.styles';\n\nimport {\n initializeMorseCodeSmallCustomProperties,\n DEFAULT_BASE_URL,\n DEFAULT_SMALL_FILE_URL,\n} from '@fluentui-copilot/morse-code';\n\nimport type { MorseCodeProps } from '../MorseCode.types';\nimport { renderMorseCode } from '../shared/renderMorseCode';\nimport { useMorseCodeAnimationClassName } from './MorseCodeSmallHoudini.styles';\n\nexport const MorseCodeSmallHoudini: React.FC<MorseCodeProps> = ({\n baseUrl = DEFAULT_BASE_URL,\n fileName = DEFAULT_SMALL_FILE_URL,\n className,\n ...restProps\n}) => {\n const { targetDocument } = useFluent();\n const targetWindow = targetDocument?.defaultView ?? undefined;\n\n React.useEffect(() => {\n initializeMorseCodeSmallCustomProperties(targetWindow);\n }, [targetWindow]);\n\n useAddModule(targetWindow, baseUrl, fileName);\n\n const morseCodeSmallStyles = useMorseCodeSmallStyles();\n const animationClassName = useMorseCodeAnimationClassName();\n const wrapperClassName = mergeClasses(morseCodeSmallStyles.wrapper, className);\n const morseCodeClassName = mergeClasses(\n 'fai-MorseCodeSmall',\n 'fai-MorseCodeSmallHoudini',\n morseCodeSmallStyles.base,\n animationClassName,\n );\n\n return renderMorseCode(wrapperClassName, restProps, morseCodeClassName);\n};\n"],"names":["React","mergeClasses","useFluent","useAddModule","useMorseCodeSmallStyles","initializeMorseCodeSmallCustomProperties","DEFAULT_BASE_URL","DEFAULT_SMALL_FILE_URL","renderMorseCode","useMorseCodeAnimationClassName","MorseCodeSmallHoudini","baseUrl","fileName","className","restProps","targetDocument","targetWindow","defaultView","undefined","useEffect","morseCodeSmallStyles","animationClassName","wrapperClassName","wrapper","morseCodeClassName","base"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,YAAY,EAAEC,SAAS,QAAQ,6BAA6B;AACrE,SAASC,YAAY,QAAQ,wBAAwB;AACrD,SAASC,uBAAuB,QAAQ,0BAA0B;AAElE,SACEC,wCAAwC,EACxCC,gBAAgB,EAChBC,sBAAsB,QACjB,+BAA+B;AAGtC,SAASC,eAAe,QAAQ,4BAA4B;AAC5D,SAASC,8BAA8B,QAAQ,iCAAiC;AAEhF,OAAO,MAAMC,wBAAkD,CAAC,EAC9DC,UAAUL,gBAAgB,EAC1BM,WAAWL,sBAAsB,EACjCM,SAAS,EACT,GAAGC,WACJ;IACC,MAAM,EAAEC,cAAc,EAAE,GAAGb;QACNa;IAArB,MAAMC,eAAeD,CAAAA,8BAAAA,2BAAAA,qCAAAA,eAAgBE,WAAW,cAA3BF,yCAAAA,8BAA+BG;IAEpDlB,MAAMmB,SAAS,CAAC;QACdd,yCAAyCW;IAC3C,GAAG;QAACA;KAAa;IAEjBb,aAAaa,cAAcL,SAASC;IAEpC,MAAMQ,uBAAuBhB;IAC7B,MAAMiB,qBAAqBZ;IAC3B,MAAMa,mBAAmBrB,aAAamB,qBAAqBG,OAAO,EAAEV;IACpE,MAAMW,qBAAqBvB,aACzB,sBACA,6BACAmB,qBAAqBK,IAAI,EACzBJ;IAGF,OAAOb,gBAAgBc,kBAAkBR,WAAWU;AACtD,EAAE"}
@@ -0,0 +1,13 @@
1
+ import { __resetStyles } from '@fluentui/react-components';
2
+ import { morseCodeSmallAnimationTokens, morseCodeSmallTokens } from '@fluentui-copilot/morse-code';
3
+ const sharedStyles = {
4
+ backgroundImage: morseCodeSmallTokens.backgroundImage,
5
+ animationIterationCount: morseCodeSmallTokens.morseCodeAnimationIterationCount,
6
+ animationDuration: morseCodeSmallTokens.morseCodeAnimationDuration,
7
+ animationTimingFunction: morseCodeSmallTokens.morseCodeAnimationTimingFunction
8
+ };
9
+ export const useMorseCodeAnimationClassName = __resetStyles("r1qt6fj8", "rfhkifx", {
10
+ r: [".r1qt6fj8{background-image:paint(morseCodeSmall);animation-iteration-count:infinite,infinite;animation-duration:2000ms,2000ms;animation-timing-function:linear,linear;animation-name:rarbvpc,r14jeaho;}", "@keyframes rarbvpc{0%{--fai-morse-code-gradient-color-1:var(--colorBrandMorseCode1);--fai-morse-code-gradient-color-2:var(--colorBrandMorseCode2);--fai-morse-code-gradient-color-3:var(--colorBrandMorseCode3);}20%{--fai-morse-code-gradient-color-1:var(--colorBrandMorseCode1);--fai-morse-code-gradient-color-2:var(--colorBrandMorseCode2);--fai-morse-code-gradient-color-3:var(--colorBrandMorseCode3);}33%{--fai-morse-code-gradient-color-1:var(--colorBrandMorseCode4);--fai-morse-code-gradient-color-2:var(--colorBrandMorseCode5);--fai-morse-code-gradient-color-3:var(--colorBrandMorseCode6);}50%{--fai-morse-code-gradient-color-1:var(--colorBrandMorseCode4);--fai-morse-code-gradient-color-2:var(--colorBrandMorseCode5);--fai-morse-code-gradient-color-3:var(--colorBrandMorseCode6);}66%{--fai-morse-code-gradient-color-1:var(--colorBrandMorseCode7);--fai-morse-code-gradient-color-2:var(--colorBrandMorseCode8);--fai-morse-code-gradient-color-3:var(--colorBrandMorseCode9);}80%{--fai-morse-code-gradient-color-1:var(--colorBrandMorseCode7);--fai-morse-code-gradient-color-2:var(--colorBrandMorseCode8);--fai-morse-code-gradient-color-3:var(--colorBrandMorseCode9);}100%{--fai-morse-code-gradient-color-1:var(--colorBrandMorseCode1);--fai-morse-code-gradient-color-2:var(--colorBrandMorseCode2);--fai-morse-code-gradient-color-3:var(--colorBrandMorseCode3);}}", "@keyframes r14jeaho{0%{--fai-morse-code-small-width-1:20px;--fai-morse-code-small-x-position-1:20px;--fai-morse-code-small-opacity-1:1;--fai-morse-code-small-width-2:60px;--fai-morse-code-small-x-position-2:56px;--fai-morse-code-small-opacity-2:1;--fai-morse-code-small-width-3:20px;--fai-morse-code-small-x-position-3:132px;--fai-morse-code-small-opacity-3:1;--fai-morse-code-small-width-4:20px;--fai-morse-code-small-x-position-4:220px;--fai-morse-code-small-opacity-4:0;--fai-morse-code-small-width-5:20px;--fai-morse-code-small-x-position-5:240px;--fai-morse-code-small-opacity-5:0;}10%{--fai-morse-code-small-width-1:20px;--fai-morse-code-small-x-position-1:20px;--fai-morse-code-small-opacity-1:1;--fai-morse-code-small-width-2:60px;--fai-morse-code-small-x-position-2:56px;--fai-morse-code-small-opacity-2:1;--fai-morse-code-small-width-3:20px;--fai-morse-code-small-x-position-3:132px;--fai-morse-code-small-opacity-3:1;--fai-morse-code-small-width-4:20px;--fai-morse-code-small-x-position-4:220px;--fai-morse-code-small-opacity-4:0;--fai-morse-code-small-width-5:20px;--fai-morse-code-small-x-position-5:240px;--fai-morse-code-small-opacity-5:0;}25%{--fai-morse-code-small-width-1:40px;--fai-morse-code-small-x-position-1:20px;--fai-morse-code-small-opacity-1:1;--fai-morse-code-small-width-2:20px;--fai-morse-code-small-x-position-2:72px;--fai-morse-code-small-opacity-2:1;--fai-morse-code-small-width-3:50px;--fai-morse-code-small-x-position-3:102px;--fai-morse-code-small-opacity-3:1;--fai-morse-code-small-width-4:20px;--fai-morse-code-small-x-position-4:162px;--fai-morse-code-small-opacity-4:0;--fai-morse-code-small-width-5:20px;--fai-morse-code-small-x-position-5:162px;--fai-morse-code-small-opacity-5:0;}35%{--fai-morse-code-small-width-1:40px;--fai-morse-code-small-x-position-1:20px;--fai-morse-code-small-opacity-1:1;--fai-morse-code-small-width-2:20px;--fai-morse-code-small-x-position-2:72px;--fai-morse-code-small-opacity-2:1;--fai-morse-code-small-width-3:50px;--fai-morse-code-small-x-position-3:102px;--fai-morse-code-small-opacity-3:1;--fai-morse-code-small-width-4:20px;--fai-morse-code-small-x-position-4:162px;--fai-morse-code-small-opacity-4:0;--fai-morse-code-small-width-5:20px;--fai-morse-code-small-x-position-5:162px;--fai-morse-code-small-opacity-5:0;}50%{--fai-morse-code-small-width-1:20px;--fai-morse-code-small-x-position-1:0px;--fai-morse-code-small-opacity-1:0;--fai-morse-code-small-width-2:30px;--fai-morse-code-small-x-position-2:20px;--fai-morse-code-small-opacity-2:1;--fai-morse-code-small-width-3:60px;--fai-morse-code-small-x-position-3:60px;--fai-morse-code-small-opacity-3:1;--fai-morse-code-small-width-4:20px;--fai-morse-code-small-x-position-4:132px;--fai-morse-code-small-opacity-4:1;--fai-morse-code-small-width-5:20px;--fai-morse-code-small-x-position-5:162px;--fai-morse-code-small-opacity-5:0;}60%{--fai-morse-code-small-width-1:20px;--fai-morse-code-small-x-position-1:0px;--fai-morse-code-small-opacity-1:0;--fai-morse-code-small-width-2:30px;--fai-morse-code-small-x-position-2:20px;--fai-morse-code-small-opacity-2:1;--fai-morse-code-small-width-3:60px;--fai-morse-code-small-x-position-3:60px;--fai-morse-code-small-opacity-3:1;--fai-morse-code-small-width-4:20px;--fai-morse-code-small-x-position-4:132px;--fai-morse-code-small-opacity-4:1;--fai-morse-code-small-width-5:20px;--fai-morse-code-small-x-position-5:162px;--fai-morse-code-small-opacity-5:0;}75%{--fai-morse-code-small-width-1:20px;--fai-morse-code-small-x-position-1:0px;--fai-morse-code-small-opacity-1:0;--fai-morse-code-small-width-2:20px;--fai-morse-code-small-x-position-2:20px;--fai-morse-code-small-opacity-2:1;--fai-morse-code-small-width-3:20px;--fai-morse-code-small-x-position-3:56px;--fai-morse-code-small-opacity-3:1;--fai-morse-code-small-width-4:60px;--fai-morse-code-small-x-position-4:92px;--fai-morse-code-small-opacity-4:1;--fai-morse-code-small-width-5:20px;--fai-morse-code-small-x-position-5:162px;--fai-morse-code-small-opacity-5:0;}85%{--fai-morse-code-small-width-1:20px;--fai-morse-code-small-x-position-1:0px;--fai-morse-code-small-opacity-1:0;--fai-morse-code-small-width-2:20px;--fai-morse-code-small-x-position-2:20px;--fai-morse-code-small-opacity-2:1;--fai-morse-code-small-width-3:20px;--fai-morse-code-small-x-position-3:56px;--fai-morse-code-small-opacity-3:1;--fai-morse-code-small-width-4:60px;--fai-morse-code-small-x-position-4:92px;--fai-morse-code-small-opacity-4:1;--fai-morse-code-small-width-5:20px;--fai-morse-code-small-x-position-5:162px;--fai-morse-code-small-opacity-5:0;}100%{--fai-morse-code-small-width-1:20px;--fai-morse-code-small-x-position-1:0px;--fai-morse-code-small-opacity-1:0;--fai-morse-code-small-width-2:20px;--fai-morse-code-small-x-position-2:0px;--fai-morse-code-small-opacity-2:0;--fai-morse-code-small-width-3:20px;--fai-morse-code-small-x-position-3:20px;--fai-morse-code-small-opacity-3:1;--fai-morse-code-small-width-4:60px;--fai-morse-code-small-x-position-4:56px;--fai-morse-code-small-opacity-4:1;--fai-morse-code-small-width-5:20px;--fai-morse-code-small-x-position-5:132px;--fai-morse-code-small-opacity-5:1;}}", ".rfhkifx{background-image:paint(morseCodeSmall);animation-iteration-count:infinite,infinite;animation-duration:2000ms,2000ms;animation-timing-function:linear,linear;animation-name:rarbvpc,r14jeaho;}"],
11
+ s: ["@media (forced-colors: active){.r1qt6fj8{background-image:paint(morseCodeSmall);animation-iteration-count:infinite,infinite;animation-duration:2000ms,2000ms;animation-timing-function:linear,linear;animation-name:r9zjrdo,r14jeaho;}@keyframes r9zjrdo{0%{--fai-morse-code-gradient-color-1:var(--colorHCMorseCode1);--fai-morse-code-gradient-color-2:var(--colorHCMorseCode2);--fai-morse-code-gradient-color-3:var(--colorHCMorseCode3);}20%{--fai-morse-code-gradient-color-1:var(--colorHCMorseCode1);--fai-morse-code-gradient-color-2:var(--colorHCMorseCode2);--fai-morse-code-gradient-color-3:var(--colorHCMorseCode3);}33%{--fai-morse-code-gradient-color-1:var(--colorHCMorseCode4);--fai-morse-code-gradient-color-2:var(--colorHCMorseCode5);--fai-morse-code-gradient-color-3:var(--colorHCMorseCode6);}50%{--fai-morse-code-gradient-color-1:var(--colorHCMorseCode4);--fai-morse-code-gradient-color-2:var(--colorHCMorseCode5);--fai-morse-code-gradient-color-3:var(--colorHCMorseCode6);}66%{--fai-morse-code-gradient-color-1:var(--colorHCMorseCode7);--fai-morse-code-gradient-color-2:var(--colorHCMorseCode8);--fai-morse-code-gradient-color-3:var(--colorHCMorseCode9);}80%{--fai-morse-code-gradient-color-1:var(--colorHCMorseCode7);--fai-morse-code-gradient-color-2:var(--colorHCMorseCode8);--fai-morse-code-gradient-color-3:var(--colorHCMorseCode9);}100%{--fai-morse-code-gradient-color-1:var(--colorHCMorseCode1);--fai-morse-code-gradient-color-2:var(--colorHCMorseCode2);--fai-morse-code-gradient-color-3:var(--colorHCMorseCode3);}}@keyframes r14jeaho{0%{--fai-morse-code-small-width-1:20px;--fai-morse-code-small-x-position-1:20px;--fai-morse-code-small-opacity-1:1;--fai-morse-code-small-width-2:60px;--fai-morse-code-small-x-position-2:56px;--fai-morse-code-small-opacity-2:1;--fai-morse-code-small-width-3:20px;--fai-morse-code-small-x-position-3:132px;--fai-morse-code-small-opacity-3:1;--fai-morse-code-small-width-4:20px;--fai-morse-code-small-x-position-4:220px;--fai-morse-code-small-opacity-4:0;--fai-morse-code-small-width-5:20px;--fai-morse-code-small-x-position-5:240px;--fai-morse-code-small-opacity-5:0;}10%{--fai-morse-code-small-width-1:20px;--fai-morse-code-small-x-position-1:20px;--fai-morse-code-small-opacity-1:1;--fai-morse-code-small-width-2:60px;--fai-morse-code-small-x-position-2:56px;--fai-morse-code-small-opacity-2:1;--fai-morse-code-small-width-3:20px;--fai-morse-code-small-x-position-3:132px;--fai-morse-code-small-opacity-3:1;--fai-morse-code-small-width-4:20px;--fai-morse-code-small-x-position-4:220px;--fai-morse-code-small-opacity-4:0;--fai-morse-code-small-width-5:20px;--fai-morse-code-small-x-position-5:240px;--fai-morse-code-small-opacity-5:0;}25%{--fai-morse-code-small-width-1:40px;--fai-morse-code-small-x-position-1:20px;--fai-morse-code-small-opacity-1:1;--fai-morse-code-small-width-2:20px;--fai-morse-code-small-x-position-2:72px;--fai-morse-code-small-opacity-2:1;--fai-morse-code-small-width-3:50px;--fai-morse-code-small-x-position-3:102px;--fai-morse-code-small-opacity-3:1;--fai-morse-code-small-width-4:20px;--fai-morse-code-small-x-position-4:162px;--fai-morse-code-small-opacity-4:0;--fai-morse-code-small-width-5:20px;--fai-morse-code-small-x-position-5:162px;--fai-morse-code-small-opacity-5:0;}35%{--fai-morse-code-small-width-1:40px;--fai-morse-code-small-x-position-1:20px;--fai-morse-code-small-opacity-1:1;--fai-morse-code-small-width-2:20px;--fai-morse-code-small-x-position-2:72px;--fai-morse-code-small-opacity-2:1;--fai-morse-code-small-width-3:50px;--fai-morse-code-small-x-position-3:102px;--fai-morse-code-small-opacity-3:1;--fai-morse-code-small-width-4:20px;--fai-morse-code-small-x-position-4:162px;--fai-morse-code-small-opacity-4:0;--fai-morse-code-small-width-5:20px;--fai-morse-code-small-x-position-5:162px;--fai-morse-code-small-opacity-5:0;}50%{--fai-morse-code-small-width-1:20px;--fai-morse-code-small-x-position-1:0px;--fai-morse-code-small-opacity-1:0;--fai-morse-code-small-width-2:30px;--fai-morse-code-small-x-position-2:20px;--fai-morse-code-small-opacity-2:1;--fai-morse-code-small-width-3:60px;--fai-morse-code-small-x-position-3:60px;--fai-morse-code-small-opacity-3:1;--fai-morse-code-small-width-4:20px;--fai-morse-code-small-x-position-4:132px;--fai-morse-code-small-opacity-4:1;--fai-morse-code-small-width-5:20px;--fai-morse-code-small-x-position-5:162px;--fai-morse-code-small-opacity-5:0;}60%{--fai-morse-code-small-width-1:20px;--fai-morse-code-small-x-position-1:0px;--fai-morse-code-small-opacity-1:0;--fai-morse-code-small-width-2:30px;--fai-morse-code-small-x-position-2:20px;--fai-morse-code-small-opacity-2:1;--fai-morse-code-small-width-3:60px;--fai-morse-code-small-x-position-3:60px;--fai-morse-code-small-opacity-3:1;--fai-morse-code-small-width-4:20px;--fai-morse-code-small-x-position-4:132px;--fai-morse-code-small-opacity-4:1;--fai-morse-code-small-width-5:20px;--fai-morse-code-small-x-position-5:162px;--fai-morse-code-small-opacity-5:0;}75%{--fai-morse-code-small-width-1:20px;--fai-morse-code-small-x-position-1:0px;--fai-morse-code-small-opacity-1:0;--fai-morse-code-small-width-2:20px;--fai-morse-code-small-x-position-2:20px;--fai-morse-code-small-opacity-2:1;--fai-morse-code-small-width-3:20px;--fai-morse-code-small-x-position-3:56px;--fai-morse-code-small-opacity-3:1;--fai-morse-code-small-width-4:60px;--fai-morse-code-small-x-position-4:92px;--fai-morse-code-small-opacity-4:1;--fai-morse-code-small-width-5:20px;--fai-morse-code-small-x-position-5:162px;--fai-morse-code-small-opacity-5:0;}85%{--fai-morse-code-small-width-1:20px;--fai-morse-code-small-x-position-1:0px;--fai-morse-code-small-opacity-1:0;--fai-morse-code-small-width-2:20px;--fai-morse-code-small-x-position-2:20px;--fai-morse-code-small-opacity-2:1;--fai-morse-code-small-width-3:20px;--fai-morse-code-small-x-position-3:56px;--fai-morse-code-small-opacity-3:1;--fai-morse-code-small-width-4:60px;--fai-morse-code-small-x-position-4:92px;--fai-morse-code-small-opacity-4:1;--fai-morse-code-small-width-5:20px;--fai-morse-code-small-x-position-5:162px;--fai-morse-code-small-opacity-5:0;}100%{--fai-morse-code-small-width-1:20px;--fai-morse-code-small-x-position-1:0px;--fai-morse-code-small-opacity-1:0;--fai-morse-code-small-width-2:20px;--fai-morse-code-small-x-position-2:0px;--fai-morse-code-small-opacity-2:0;--fai-morse-code-small-width-3:20px;--fai-morse-code-small-x-position-3:20px;--fai-morse-code-small-opacity-3:1;--fai-morse-code-small-width-4:60px;--fai-morse-code-small-x-position-4:56px;--fai-morse-code-small-opacity-4:1;--fai-morse-code-small-width-5:20px;--fai-morse-code-small-x-position-5:132px;--fai-morse-code-small-opacity-5:1;}}}", "@media (forced-colors: active){.rfhkifx{background-image:paint(morseCodeSmall);animation-iteration-count:infinite,infinite;animation-duration:2000ms,2000ms;animation-timing-function:linear,linear;animation-name:r9zjrdo,r14jeaho;}}"]
12
+ });
13
+ //# sourceMappingURL=MorseCodeSmallHoudini.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["MorseCodeSmallHoudini.styles.ts"],"sourcesContent":["import { makeResetStyles } from '@fluentui/react-components';\n\nimport { morseCodeSmallAnimationTokens, morseCodeSmallTokens } from '@fluentui-copilot/morse-code';\n\nconst sharedStyles = {\n backgroundImage: morseCodeSmallTokens.backgroundImage,\n animationIterationCount: morseCodeSmallTokens.morseCodeAnimationIterationCount,\n animationDuration: morseCodeSmallTokens.morseCodeAnimationDuration,\n animationTimingFunction: morseCodeSmallTokens.morseCodeAnimationTimingFunction,\n};\n\nexport const useMorseCodeAnimationClassName = makeResetStyles({\n ...sharedStyles,\n animationName: [morseCodeSmallAnimationTokens.colorAnimation, morseCodeSmallAnimationTokens.dotsAndDashes],\n\n '@media (forced-colors: active)': {\n ...sharedStyles,\n animationName: [morseCodeSmallAnimationTokens.colorHCAnimation, morseCodeSmallAnimationTokens.dotsAndDashes],\n },\n});\n"],"names":["makeResetStyles","morseCodeSmallAnimationTokens","morseCodeSmallTokens","sharedStyles","backgroundImage","animationIterationCount","morseCodeAnimationIterationCount","animationDuration","morseCodeAnimationDuration","animationTimingFunction","morseCodeAnimationTimingFunction","useMorseCodeAnimationClassName","animationName","colorAnimation","dotsAndDashes","colorHCAnimation"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,SAASA,eAAe,QAAQ,6BAA6B;AAE7D,SAASC,6BAA6B,EAAEC,oBAAoB,QAAQ,+BAA+B;AAEnG,MAAMC,eAAe;IACnBC,iBAAiBF,qBAAqBE,eAAe;IACrDC,yBAAyBH,qBAAqBI,gCAAgC;IAC9EC,mBAAmBL,qBAAqBM,0BAA0B;IAClEC,yBAAyBP,qBAAqBQ,gCAAgC;AAChF;AAEA,OAAO,MAAMC,iCAAiCX,gBAAgB;IAC5D,GAAGG,YAAY;IACfS,eAAe;QAACX,8BAA8BY,cAAc;QAAEZ,8BAA8Ba,aAAa;KAAC;IAE1G,kCAAkC;QAChC,GAAGX,YAAY;QACfS,eAAe;YAACX,8BAA8Bc,gBAAgB;YAAEd,8BAA8Ba,aAAa;SAAC;IAC9G;AACF,GAAG"}
@@ -0,0 +1,22 @@
1
+ import { makeResetStyles } from '@fluentui/react-components';
2
+ import { morseCodeSmallAnimationTokens, morseCodeSmallTokens } from '@fluentui-copilot/morse-code';
3
+ const sharedStyles = {
4
+ backgroundImage: morseCodeSmallTokens.backgroundImage,
5
+ animationIterationCount: morseCodeSmallTokens.morseCodeAnimationIterationCount,
6
+ animationDuration: morseCodeSmallTokens.morseCodeAnimationDuration,
7
+ animationTimingFunction: morseCodeSmallTokens.morseCodeAnimationTimingFunction
8
+ };
9
+ export const useMorseCodeAnimationClassName = makeResetStyles({
10
+ ...sharedStyles,
11
+ animationName: [
12
+ morseCodeSmallAnimationTokens.colorAnimation,
13
+ morseCodeSmallAnimationTokens.dotsAndDashes
14
+ ],
15
+ '@media (forced-colors: active)': {
16
+ ...sharedStyles,
17
+ animationName: [
18
+ morseCodeSmallAnimationTokens.colorHCAnimation,
19
+ morseCodeSmallAnimationTokens.dotsAndDashes
20
+ ]
21
+ }
22
+ });
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["MorseCodeSmallHoudini.styles.ts"],"sourcesContent":["import { makeResetStyles } from '@fluentui/react-components';\n\nimport { morseCodeSmallAnimationTokens, morseCodeSmallTokens } from '@fluentui-copilot/morse-code';\n\nconst sharedStyles = {\n backgroundImage: morseCodeSmallTokens.backgroundImage,\n animationIterationCount: morseCodeSmallTokens.morseCodeAnimationIterationCount,\n animationDuration: morseCodeSmallTokens.morseCodeAnimationDuration,\n animationTimingFunction: morseCodeSmallTokens.morseCodeAnimationTimingFunction,\n};\n\nexport const useMorseCodeAnimationClassName = makeResetStyles({\n ...sharedStyles,\n animationName: [morseCodeSmallAnimationTokens.colorAnimation, morseCodeSmallAnimationTokens.dotsAndDashes],\n\n '@media (forced-colors: active)': {\n ...sharedStyles,\n animationName: [morseCodeSmallAnimationTokens.colorHCAnimation, morseCodeSmallAnimationTokens.dotsAndDashes],\n },\n});\n"],"names":["makeResetStyles","morseCodeSmallAnimationTokens","morseCodeSmallTokens","sharedStyles","backgroundImage","animationIterationCount","morseCodeAnimationIterationCount","animationDuration","morseCodeAnimationDuration","animationTimingFunction","morseCodeAnimationTimingFunction","useMorseCodeAnimationClassName","animationName","colorAnimation","dotsAndDashes","colorHCAnimation"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,SAASA,eAAe,QAAQ,6BAA6B;AAE7D,SAASC,6BAA6B,EAAEC,oBAAoB,QAAQ,+BAA+B;AAEnG,MAAMC,eAAe;IACnBC,iBAAiBF,qBAAqBE,eAAe;IACrDC,yBAAyBH,qBAAqBI,gCAAgC;IAC9EC,mBAAmBL,qBAAqBM,0BAA0B;IAClEC,yBAAyBP,qBAAqBQ,gCAAgC;AAChF;AAEA,OAAO,MAAMC,iCAAiCX,gBAAgB;IAC5D,GAAGG,YAAY;IACfS,eAAe;QAACX,8BAA8BY,cAAc;QAAEZ,8BAA8Ba,aAAa;KAAC;IAE1G,kCAAkC;QAChC,GAAGX,YAAY;QACfS,eAAe;YAACX,8BAA8Bc,gBAAgB;YAAEd,8BAA8Ba,aAAa;SAAC;IAC9G;AACF,GAAG"}
package/lib/index.js ADDED
@@ -0,0 +1,6 @@
1
+ export { MorseCode } from './components/large/MorseCode';
2
+ export { MorseCodeFallback } from './components/large/MorseCodeFallback';
3
+ export { MorseCodeHoudini } from './components/large/MorseCodeHoudini';
4
+ export { MorseCodeSmall } from './components/small/MorseCodeSmall';
5
+ export { MorseCodeSmallFallback } from './components/small/MorseCodeSmallFallback';
6
+ export { MorseCodeSmallHoudini } from './components/small/MorseCodeSmallHoudini';
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["index.ts"],"sourcesContent":["export { MorseCode } from './components/large/MorseCode';\nexport { MorseCodeFallback } from './components/large/MorseCodeFallback';\nexport { MorseCodeHoudini } from './components/large/MorseCodeHoudini';\n\nexport { MorseCodeSmall } from './components/small/MorseCodeSmall';\nexport { MorseCodeSmallFallback } from './components/small/MorseCodeSmallFallback';\nexport { MorseCodeSmallHoudini } from './components/small/MorseCodeSmallHoudini';\n\nexport type { MorseCodeProps } from './components/MorseCode.types';\n"],"names":["MorseCode","MorseCodeFallback","MorseCodeHoudini","MorseCodeSmall","MorseCodeSmallFallback","MorseCodeSmallHoudini"],"rangeMappings":";;;;;","mappings":"AAAA,SAASA,SAAS,QAAQ,+BAA+B;AACzD,SAASC,iBAAiB,QAAQ,uCAAuC;AACzE,SAASC,gBAAgB,QAAQ,sCAAsC;AAEvE,SAASC,cAAc,QAAQ,oCAAoC;AACnE,SAASC,sBAAsB,QAAQ,4CAA4C;AACnF,SAASC,qBAAqB,QAAQ,2CAA2C"}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });