@fluentui-copilot/react-morse-code 0.0.7 → 0.0.8

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 (76) hide show
  1. package/CHANGELOG.json +22 -1
  2. package/CHANGELOG.md +12 -2
  3. package/dist/index.d.ts +10 -2
  4. package/lib/components/hooks/useAddModule.js +16 -0
  5. package/lib/components/hooks/useAddModule.js.map +1 -0
  6. package/lib/components/hooks/useFallbackRef.js +20 -0
  7. package/lib/components/hooks/useFallbackRef.js.map +1 -0
  8. package/lib/components/large/MorseCode.js.map +1 -0
  9. package/lib/components/large/MorseCodeFallback.js +17 -0
  10. package/lib/components/large/MorseCodeFallback.js.map +1 -0
  11. package/lib/components/{MorseCodeHoudini.js → large/MorseCodeHoudini.js} +12 -20
  12. package/lib/components/large/MorseCodeHoudini.js.map +1 -0
  13. package/lib/components/shared/renderMorseCode.js +11 -0
  14. package/lib/components/shared/renderMorseCode.js.map +1 -0
  15. package/lib/components/small/MorseCodeSmall.js +12 -0
  16. package/lib/components/small/MorseCodeSmall.js.map +1 -0
  17. package/lib/components/small/MorseCodeSmall.styles.js +21 -0
  18. package/lib/components/small/MorseCodeSmall.styles.js.map +1 -0
  19. package/lib/components/small/MorseCodeSmallFallback.js +17 -0
  20. package/lib/components/small/MorseCodeSmallFallback.js.map +1 -0
  21. package/lib/components/small/MorseCodeSmallHoudini.js +30 -0
  22. package/lib/components/small/MorseCodeSmallHoudini.js.map +1 -0
  23. package/lib/index.js +6 -3
  24. package/lib/index.js.map +1 -1
  25. package/lib-commonjs/components/hooks/useAddModule.js +29 -0
  26. package/lib-commonjs/components/hooks/useAddModule.js.map +1 -0
  27. package/lib-commonjs/components/hooks/useFallbackRef.js +32 -0
  28. package/lib-commonjs/components/hooks/useFallbackRef.js.map +1 -0
  29. package/lib-commonjs/components/large/MorseCode.js.map +1 -0
  30. package/lib-commonjs/components/large/MorseCodeFallback.js +23 -0
  31. package/lib-commonjs/components/large/MorseCodeFallback.js.map +1 -0
  32. package/lib-commonjs/components/{MorseCodeHoudini.js → large/MorseCodeHoudini.js} +12 -24
  33. package/lib-commonjs/components/large/MorseCodeHoudini.js.map +1 -0
  34. package/lib-commonjs/components/shared/renderMorseCode.js +21 -0
  35. package/lib-commonjs/components/shared/renderMorseCode.js.map +1 -0
  36. package/lib-commonjs/components/small/MorseCodeSmall.js +22 -0
  37. package/lib-commonjs/components/small/MorseCodeSmall.js.map +1 -0
  38. package/lib-commonjs/components/small/MorseCodeSmall.styles.js +40 -0
  39. package/lib-commonjs/components/small/MorseCodeSmall.styles.js.map +1 -0
  40. package/lib-commonjs/components/small/MorseCodeSmallFallback.js +23 -0
  41. package/lib-commonjs/components/small/MorseCodeSmallFallback.js.map +1 -0
  42. package/lib-commonjs/components/small/MorseCodeSmallHoudini.js +42 -0
  43. package/lib-commonjs/components/small/MorseCodeSmallHoudini.js.map +1 -0
  44. package/lib-commonjs/index.js +15 -3
  45. package/lib-commonjs/index.js.map +1 -1
  46. package/package.json +2 -2
  47. package/lib/components/MorseCode.js.map +0 -1
  48. package/lib/components/MorseCodeFallback.js +0 -35
  49. package/lib/components/MorseCodeFallback.js.map +0 -1
  50. package/lib/components/MorseCodeHoudini.js.map +0 -1
  51. package/lib/hooks/types.js +0 -2
  52. package/lib/hooks/types.js.map +0 -1
  53. package/lib/hooks/useFallbackMorseCode.js +0 -2
  54. package/lib/hooks/useFallbackMorseCode.js.map +0 -1
  55. package/lib/hooks/useHoudiniMorseCode.js +0 -2
  56. package/lib/hooks/useHoudiniMorseCode.js.map +0 -1
  57. package/lib/hooks/useMorseCode.js +0 -2
  58. package/lib/hooks/useMorseCode.js.map +0 -1
  59. package/lib-commonjs/components/MorseCode.js.map +0 -1
  60. package/lib-commonjs/components/MorseCodeFallback.js +0 -42
  61. package/lib-commonjs/components/MorseCodeFallback.js.map +0 -1
  62. package/lib-commonjs/components/MorseCodeHoudini.js.map +0 -1
  63. package/lib-commonjs/hooks/types.js +0 -5
  64. package/lib-commonjs/hooks/types.js.map +0 -1
  65. package/lib-commonjs/hooks/useFallbackMorseCode.js +0 -5
  66. package/lib-commonjs/hooks/useFallbackMorseCode.js.map +0 -1
  67. package/lib-commonjs/hooks/useHoudiniMorseCode.js +0 -5
  68. package/lib-commonjs/hooks/useHoudiniMorseCode.js.map +0 -1
  69. package/lib-commonjs/hooks/useMorseCode.js +0 -5
  70. package/lib-commonjs/hooks/useMorseCode.js.map +0 -1
  71. /package/lib/components/{MorseCode.js → large/MorseCode.js} +0 -0
  72. /package/lib/components/{MorseCode.styles.js → large/MorseCode.styles.js} +0 -0
  73. /package/lib/components/{MorseCode.styles.js.map → large/MorseCode.styles.js.map} +0 -0
  74. /package/lib-commonjs/components/{MorseCode.js → large/MorseCode.js} +0 -0
  75. /package/lib-commonjs/components/{MorseCode.styles.js → large/MorseCode.styles.js} +0 -0
  76. /package/lib-commonjs/components/{MorseCode.styles.js.map → large/MorseCode.styles.js.map} +0 -0
package/CHANGELOG.json CHANGED
@@ -2,7 +2,28 @@
2
2
  "name": "@fluentui-copilot/react-morse-code",
3
3
  "entries": [
4
4
  {
5
- "date": "Mon, 19 May 2025 18:03:24 GMT",
5
+ "date": "Wed, 28 May 2025 16:45:07 GMT",
6
+ "tag": "@fluentui-copilot/react-morse-code_v0.0.8",
7
+ "version": "0.0.8",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "seanmonahan@microsoft.com",
12
+ "package": "@fluentui-copilot/react-morse-code",
13
+ "commit": "f6b84adfa5aa24ba5882e672c0b1468927b8e387",
14
+ "comment": "refactor react-morse-code internals"
15
+ },
16
+ {
17
+ "author": "seanmonahan@microsoft.com",
18
+ "package": "@fluentui-copilot/react-morse-code",
19
+ "commit": "fad34f16a42d0e06b2581ddf39f00b47b0ea3783",
20
+ "comment": "add 'small' MorseCode component"
21
+ }
22
+ ]
23
+ }
24
+ },
25
+ {
26
+ "date": "Mon, 19 May 2025 18:04:28 GMT",
6
27
  "tag": "@fluentui-copilot/react-morse-code_v0.0.7",
7
28
  "version": "0.0.7",
8
29
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,22 @@
1
1
  # Change Log - @fluentui-copilot/react-morse-code
2
2
 
3
- This log was last generated on Mon, 19 May 2025 18:03:24 GMT and should not be manually modified.
3
+ This log was last generated on Wed, 28 May 2025 16:45:07 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [0.0.8](https://github.com/microsoft/fluentai/tree/@fluentui-copilot/react-morse-code_v0.0.8)
8
+
9
+ Wed, 28 May 2025 16:45:07 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentai/compare/@fluentui-copilot/react-morse-code_v0.0.7..@fluentui-copilot/react-morse-code_v0.0.8)
11
+
12
+ ### Patches
13
+
14
+ - refactor react-morse-code internals ([PR #3042](https://github.com/microsoft/fluentai/pull/3042) by seanmonahan@microsoft.com)
15
+ - add 'small' MorseCode component ([PR #3034](https://github.com/microsoft/fluentai/pull/3034) by seanmonahan@microsoft.com)
16
+
7
17
  ## [0.0.7](https://github.com/microsoft/fluentai/tree/@fluentui-copilot/react-morse-code_v0.0.7)
8
18
 
9
- Mon, 19 May 2025 18:03:24 GMT
19
+ Mon, 19 May 2025 18:04:28 GMT
10
20
  [Compare changes](https://github.com/microsoft/fluentai/compare/@fluentui-copilot/react-morse-code_v0.0.6..@fluentui-copilot/react-morse-code_v0.0.7)
11
21
 
12
22
  ### Patches
package/dist/index.d.ts CHANGED
@@ -1,10 +1,12 @@
1
+ /// <reference types="react" />
2
+
1
3
  import * as React_2 from 'react';
2
4
 
3
5
  export declare const MorseCode: React_2.FC<MorseCodeProps>;
4
6
 
5
- export declare const MorseCodeFallback: React_2.FC<MorseCodeProps>;
7
+ export declare const MorseCodeFallback: React.FC<MorseCodeProps>;
6
8
 
7
- export declare const MorseCodeHoudini: React_2.FC<MorseCodeProps>;
9
+ export declare const MorseCodeHoudini: React.FC<MorseCodeProps>;
8
10
 
9
11
  export declare type MorseCodeProps = {
10
12
  baseUrl?: string;
@@ -12,4 +14,10 @@ export declare type MorseCodeProps = {
12
14
  className?: string;
13
15
  };
14
16
 
17
+ export declare const MorseCodeSmall: React_2.FC<MorseCodeProps>;
18
+
19
+ export declare const MorseCodeSmallFallback: React.FC<MorseCodeProps>;
20
+
21
+ export declare const MorseCodeSmallHoudini: React.FC<MorseCodeProps>;
22
+
15
23
  export { }
@@ -0,0 +1,16 @@
1
+ import * as React from 'react';
2
+ import { addModule } from '@fluentui-contrib/houdini-utils';
3
+ const initializedModules = {};
4
+ export const useAddModule = (baseUrl, fileName) => {
5
+ React.useEffect(() => {
6
+ const path = `${baseUrl}${fileName}`;
7
+ if (!initializedModules[path]) {
8
+ addModule(baseUrl, fileName).then(() => {
9
+ initializedModules[path] = true;
10
+ }).catch(_err => {
11
+ initializedModules[path] = false;
12
+ });
13
+ }
14
+ }, [baseUrl, fileName]);
15
+ };
16
+ //# sourceMappingURL=useAddModule.js.map
@@ -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 = (baseUrl: string, fileName: string): void => {\n React.useEffect(() => {\n const path = `${baseUrl}${fileName}`;\n if (!initializedModules[path]) {\n addModule(baseUrl, fileName)\n .then(() => {\n initializedModules[path] = true;\n })\n .catch(_err => {\n initializedModules[path] = false;\n });\n }\n }, [baseUrl, fileName]);\n};\n"],"names":["React","addModule","initializedModules","useAddModule","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,SAAiBC;IAC5CL,MAAMM,SAAS,CAAC;QACd,MAAMC,OAAO,CAAC,EAAEH,QAAQ,EAAEC,SAAS,CAAC;QACpC,IAAI,CAACH,kBAAkB,CAACK,KAAK,EAAE;YAC7BN,UAAUG,SAASC,UAChBG,IAAI,CAAC;gBACJN,kBAAkB,CAACK,KAAK,GAAG;YAC7B,GACCE,KAAK,CAACC,CAAAA;gBACLR,kBAAkB,CAACK,KAAK,GAAG;YAC7B;QACJ;IACF,GAAG;QAACH;QAASC;KAAS;AACxB,EAAE"}
@@ -0,0 +1,20 @@
1
+ import * as React from 'react';
2
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
3
+ const ON_COMPLETE_NOOP = () => {};
4
+ export const useFallbackRef = anim => {
5
+ const targetRef = React.useCallback(node => {
6
+ let animControls;
7
+ if (node) {
8
+ animControls = anim(node);
9
+ animControls.play(ON_COMPLETE_NOOP);
10
+ } else {
11
+ if (animControls) {
12
+ animControls.stop();
13
+ animControls.cleanup();
14
+ animControls = undefined;
15
+ }
16
+ }
17
+ }, [anim]);
18
+ return targetRef;
19
+ };
20
+ //# sourceMappingURL=useFallbackRef.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["useFallbackRef.ts"],"sourcesContent":["import * as React from 'react';\nimport type { fallbackPaintAnimation } from '@fluentui-contrib/houdini-utils';\n// eslint-disable-next-line @typescript-eslint/no-empty-function\nconst ON_COMPLETE_NOOP = () => {};\n\nexport type FallbackAnim = (target: HTMLElement) => ReturnType<typeof fallbackPaintAnimation>;\n\nexport const useFallbackRef = (anim: FallbackAnim) => {\n const targetRef = React.useCallback(\n (node: HTMLElement | null) => {\n let animControls: ReturnType<typeof fallbackPaintAnimation> | undefined;\n\n if (node) {\n animControls = anim(node);\n animControls.play(ON_COMPLETE_NOOP);\n } else {\n if (animControls) {\n animControls.stop();\n animControls.cleanup();\n animControls = undefined;\n }\n }\n },\n [anim],\n );\n\n return targetRef;\n};\n"],"names":["React","ON_COMPLETE_NOOP","useFallbackRef","anim","targetRef","useCallback","node","animControls","play","stop","cleanup","undefined"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,YAAYA,WAAW,QAAQ;AAE/B,gEAAgE;AAChE,MAAMC,mBAAmB,KAAO;AAIhC,OAAO,MAAMC,iBAAiB,CAACC;IAC7B,MAAMC,YAAYJ,MAAMK,WAAW,CACjC,CAACC;QACC,IAAIC;QAEJ,IAAID,MAAM;YACRC,eAAeJ,KAAKG;YACpBC,aAAaC,IAAI,CAACP;QACpB,OAAO;YACL,IAAIM,cAAc;gBAChBA,aAAaE,IAAI;gBACjBF,aAAaG,OAAO;gBACpBH,eAAeI;YACjB;QACF;IACF,GACA;QAACR;KAAK;IAGR,OAAOC;AACT,EAAE"}
@@ -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';\n\nconst houdiniAvailable = hasHoudini();\n\nexport const MorseCode: React.FC<MorseCodeProps> = props => {\n if (houdiniAvailable) {\n return <MorseCodeHoudini {...props} />;\n }\n\n return <MorseCodeFallback {...props} />;\n};\n"],"names":["React","hasHoudini","MorseCodeFallback","MorseCodeHoudini","houdiniAvailable","MorseCode","props"],"rangeMappings":";;;;;;;;;;","mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,UAAU,QAAQ,kCAAkC;AAC7D,SAASC,iBAAiB,QAAQ,sBAAsB;AACxD,SAASC,gBAAgB,QAAQ,qBAAqB;AAItD,MAAMC,mBAAmBH;AAEzB,OAAO,MAAMI,YAAsCC,CAAAA;IACjD,IAAIF,kBAAkB;QACpB,qBAAO,oBAACD,kBAAqBG;IAC/B;IAEA,qBAAO,oBAACJ,mBAAsBI;AAChC,EAAE"}
@@ -0,0 +1,17 @@
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 {
10
+ className,
11
+ ...restProps
12
+ } = props;
13
+ const wrapperClassName = mergeClasses(morseCodeStyles.wrapper, className);
14
+ const morseCodeClassName = mergeClasses('fai-MorseCode', 'fai-MorseCodeFallback', morseCodeStyles.base);
15
+ return renderMorseCode(wrapperClassName, restProps, morseCodeClassName, targetRef);
16
+ };
17
+ //# sourceMappingURL=MorseCodeFallback.js.map
@@ -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, ...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","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,EAAE,GAAGC,WAAW,GAAGJ;IACpC,MAAMK,mBAAmBX,aAAaO,gBAAgBK,OAAO,EAAEH;IAC/D,MAAMI,qBAAqBb,aAAa,iBAAiB,yBAAyBO,gBAAgBO,IAAI;IAEtG,OAAOV,gBAAgBO,kBAAkBD,WAAWG,oBAAoBL;AAC1E,EAAE"}
@@ -1,10 +1,15 @@
1
- import * as React from 'react';
2
1
  import { __resetStyles, mergeClasses } from '@fluentui/react-components';
3
- import { addModule } from '@fluentui-contrib/houdini-utils';
2
+ import { useAddModule } from '../hooks/useAddModule';
4
3
  import { useMorseCodeStyles } from './MorseCode.styles';
5
4
  import { initializeMorseCodeCustomProperties, morseCodeAnimationTokens, morseCodeTokens, DEFAULT_BASE_URL, DEFAULT_FILE_URL } from '@fluentui-copilot/morse-code';
6
- const initializedModules = {};
5
+ import { renderMorseCode } from '../shared/renderMorseCode';
7
6
  initializeMorseCodeCustomProperties();
7
+ const sharedStyles = {
8
+ backgroundImage: morseCodeTokens.backgroundImage,
9
+ animationIterationCount: morseCodeTokens.morseCodeAnimationIterationCount,
10
+ animationDuration: morseCodeTokens.morseCodeAnimationDuration,
11
+ animationTimingFunction: morseCodeTokens.morseCodeAnimationTimingFunction
12
+ };
8
13
  const useMorseCodeAnimationClassName = __resetStyles("r1ms8zpq", "rqpk8qn", {
9
14
  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;}"],
10
15
  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;}}"]
@@ -15,24 +20,11 @@ export const MorseCodeHoudini = ({
15
20
  className,
16
21
  ...restProps
17
22
  }) => {
18
- React.useEffect(() => {
19
- const path = `${baseUrl}${fileName}`;
20
- if (!initializedModules[path]) {
21
- addModule(baseUrl, fileName).then(() => {
22
- initializedModules[path] = true;
23
- }).catch(err => {
24
- initializedModules[path] = false;
25
- });
26
- }
27
- }, [baseUrl, fileName]);
23
+ useAddModule(baseUrl, fileName);
28
24
  const morseCodeStyles = useMorseCodeStyles();
29
25
  const animationClassName = useMorseCodeAnimationClassName();
30
- const cn = mergeClasses(morseCodeStyles.wrapper, className);
31
- return /*#__PURE__*/React.createElement("div", {
32
- className: cn,
33
- ...restProps
34
- }, /*#__PURE__*/React.createElement("div", {
35
- className: mergeClasses('fai-MorseCode', 'fai-MorseCodeHoudini', morseCodeStyles.base, animationClassName)
36
- }));
26
+ const wrapperClassName = mergeClasses(morseCodeStyles.wrapper, className);
27
+ const morseCodeClassName = mergeClasses('fai-MorseCode', 'fai-MorseCodeHoudini', morseCodeStyles.base, animationClassName);
28
+ return renderMorseCode(wrapperClassName, restProps, morseCodeClassName);
37
29
  };
38
30
  //# sourceMappingURL=MorseCodeHoudini.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["MorseCodeHoudini.tsx"],"sourcesContent":["import { makeResetStyles, mergeClasses } from '@fluentui/react-components';\nimport { useAddModule } from '../hooks/useAddModule';\nimport { useMorseCodeStyles } from './MorseCode.styles';\n\nimport {\n initializeMorseCodeCustomProperties,\n morseCodeAnimationTokens,\n morseCodeTokens,\n DEFAULT_BASE_URL,\n DEFAULT_FILE_URL,\n} from '@fluentui-copilot/morse-code';\n\nimport type { MorseCodeProps } from '../MorseCode.types';\nimport { renderMorseCode } from '../shared/renderMorseCode';\n\ninitializeMorseCodeCustomProperties();\n\nconst sharedStyles = {\n backgroundImage: morseCodeTokens.backgroundImage,\n animationIterationCount: morseCodeTokens.morseCodeAnimationIterationCount,\n animationDuration: morseCodeTokens.morseCodeAnimationDuration,\n animationTimingFunction: morseCodeTokens.morseCodeAnimationTimingFunction,\n};\n\nconst 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\nexport const MorseCodeHoudini: React.FC<MorseCodeProps> = ({\n baseUrl = DEFAULT_BASE_URL,\n fileName = DEFAULT_FILE_URL,\n className,\n ...restProps\n}) => {\n useAddModule(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":["makeResetStyles","mergeClasses","useAddModule","useMorseCodeStyles","initializeMorseCodeCustomProperties","morseCodeAnimationTokens","morseCodeTokens","DEFAULT_BASE_URL","DEFAULT_FILE_URL","renderMorseCode","sharedStyles","backgroundImage","animationIterationCount","morseCodeAnimationIterationCount","animationDuration","morseCodeAnimationDuration","animationTimingFunction","morseCodeAnimationTimingFunction","useMorseCodeAnimationClassName","animationName","colorAnimation","dotsAndDashes","colorHCAnimation","MorseCodeHoudini","baseUrl","fileName","className","restProps","morseCodeStyles","animationClassName","wrapperClassName","wrapper","morseCodeClassName","base"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,SAASA,eAAe,EAAEC,YAAY,QAAQ,6BAA6B;AAC3E,SAASC,YAAY,QAAQ,wBAAwB;AACrD,SAASC,kBAAkB,QAAQ,qBAAqB;AAExD,SACEC,mCAAmC,EACnCC,wBAAwB,EACxBC,eAAe,EACfC,gBAAgB,EAChBC,gBAAgB,QACX,+BAA+B;AAGtC,SAASC,eAAe,QAAQ,4BAA4B;AAE5DL;AAEA,MAAMM,eAAe;IACnBC,iBAAiBL,gBAAgBK,eAAe;IAChDC,yBAAyBN,gBAAgBO,gCAAgC;IACzEC,mBAAmBR,gBAAgBS,0BAA0B;IAC7DC,yBAAyBV,gBAAgBW,gCAAgC;AAC3E;AAEA,MAAMC,iCAAiClB,gBAAgB;IACrD,GAAGU,YAAY;IACfS,eAAe;QAACd,yBAAyBe,cAAc;QAAEf,yBAAyBgB,aAAa;KAAC;IAEhG,kCAAkC;QAChC,GAAGX,YAAY;QACfS,eAAe;YAACd,yBAAyBiB,gBAAgB;YAAEjB,yBAAyBgB,aAAa;SAAC;IACpG;AACF;AAEA,OAAO,MAAME,mBAA6C,CAAC,EACzDC,UAAUjB,gBAAgB,EAC1BkB,WAAWjB,gBAAgB,EAC3BkB,SAAS,EACT,GAAGC,WACJ;IACCzB,aAAasB,SAASC;IAEtB,MAAMG,kBAAkBzB;IACxB,MAAM0B,qBAAqBX;IAC3B,MAAMY,mBAAmB7B,aAAa2B,gBAAgBG,OAAO,EAAEL;IAC/D,MAAMM,qBAAqB/B,aACzB,iBACA,wBACA2B,gBAAgBK,IAAI,EACpBJ;IAGF,OAAOpB,gBAAgBqB,kBAAkBH,WAAWK;AACtD,EAAE"}
@@ -0,0 +1,11 @@
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
+ };
11
+ //# sourceMappingURL=renderMorseCode.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["renderMorseCode.tsx"],"sourcesContent":["import * as React from 'react';\n\nexport const renderMorseCode = (\n wrapperClassName: string,\n wrapperProps: React.HTMLAttributes<HTMLDivElement>,\n morseCodeClassName: string,\n targetRef?: (node: HTMLElement | null) => void,\n) => {\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;AAE/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,12 @@
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
+ const houdiniAvailable = hasHoudini();
6
+ export const MorseCodeSmall = props => {
7
+ if (houdiniAvailable) {
8
+ return /*#__PURE__*/React.createElement(MorseCodeSmallHoudini, props);
9
+ }
10
+ return /*#__PURE__*/React.createElement(MorseCodeSmallFallback, props);
11
+ };
12
+ //# sourceMappingURL=MorseCodeSmall.js.map
@@ -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';\n\nconst houdiniAvailable = hasHoudini();\n\nexport const MorseCodeSmall: React.FC<MorseCodeProps> = props => {\n if (houdiniAvailable) {\n return <MorseCodeSmallHoudini {...props} />;\n }\n\n return <MorseCodeSmallFallback {...props} />;\n};\n"],"names":["React","hasHoudini","MorseCodeSmallFallback","MorseCodeSmallHoudini","houdiniAvailable","MorseCodeSmall","props"],"rangeMappings":";;;;;;;;;;","mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,UAAU,QAAQ,kCAAkC;AAC7D,SAASC,sBAAsB,QAAQ,2BAA2B;AAClE,SAASC,qBAAqB,QAAQ,0BAA0B;AAIhE,MAAMC,mBAAmBH;AAEzB,OAAO,MAAMI,iBAA2CC,CAAAA;IACtD,IAAIF,kBAAkB;QACpB,qBAAO,oBAACD,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,17 @@
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 {
10
+ className,
11
+ ...restProps
12
+ } = props;
13
+ const wrapperClassName = mergeClasses(morseCodeStyles.wrapper, className);
14
+ const morseCodeClassName = mergeClasses('fai-MorseCodeSmall', 'fai-MorseCodeSmallFallback', morseCodeStyles.base);
15
+ return renderMorseCode(wrapperClassName, restProps, morseCodeClassName, targetRef);
16
+ };
17
+ //# sourceMappingURL=MorseCodeSmallFallback.js.map
@@ -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, ...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","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,EAAE,GAAGC,WAAW,GAAGJ;IACpC,MAAMK,mBAAmBX,aAAaO,gBAAgBK,OAAO,EAAEH;IAC/D,MAAMI,qBAAqBb,aAAa,sBAAsB,8BAA8BO,gBAAgBO,IAAI;IAEhH,OAAOV,gBAAgBO,kBAAkBD,WAAWG,oBAAoBL;AAC1E,EAAE"}
@@ -0,0 +1,30 @@
1
+ import { __resetStyles, mergeClasses } from '@fluentui/react-components';
2
+ import { useAddModule } from '../hooks/useAddModule';
3
+ import { useMorseCodeSmallStyles } from './MorseCodeSmall.styles';
4
+ import { initializeMorseCodeSmallCustomProperties, morseCodeSmallAnimationTokens, morseCodeSmallTokens, DEFAULT_BASE_URL, DEFAULT_SMALL_FILE_URL } from '@fluentui-copilot/morse-code';
5
+ import { renderMorseCode } from '../shared/renderMorseCode';
6
+ initializeMorseCodeSmallCustomProperties();
7
+ const sharedStyles = {
8
+ backgroundImage: morseCodeSmallTokens.backgroundImage,
9
+ animationIterationCount: morseCodeSmallTokens.morseCodeAnimationIterationCount,
10
+ animationDuration: morseCodeSmallTokens.morseCodeAnimationDuration,
11
+ animationTimingFunction: morseCodeSmallTokens.morseCodeAnimationTimingFunction
12
+ };
13
+ const useMorseCodeAnimationClassName = __resetStyles("r1qt6fj8", "rfhkifx", {
14
+ 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;}"],
15
+ 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;}}"]
16
+ });
17
+ export const MorseCodeSmallHoudini = ({
18
+ baseUrl = DEFAULT_BASE_URL,
19
+ fileName = DEFAULT_SMALL_FILE_URL,
20
+ className,
21
+ ...restProps
22
+ }) => {
23
+ useAddModule(baseUrl, fileName);
24
+ const morseCodeSmallStyles = useMorseCodeSmallStyles();
25
+ const animationClassName = useMorseCodeAnimationClassName();
26
+ const wrapperClassName = mergeClasses(morseCodeSmallStyles.wrapper, className);
27
+ const morseCodeClassName = mergeClasses('fai-MorseCodeSmall', 'fai-MorseCodeSmallHoudini', morseCodeSmallStyles.base, animationClassName);
28
+ return renderMorseCode(wrapperClassName, restProps, morseCodeClassName);
29
+ };
30
+ //# sourceMappingURL=MorseCodeSmallHoudini.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["MorseCodeSmallHoudini.tsx"],"sourcesContent":["import { makeResetStyles, mergeClasses } from '@fluentui/react-components';\nimport { useAddModule } from '../hooks/useAddModule';\nimport { useMorseCodeSmallStyles } from './MorseCodeSmall.styles';\n\nimport {\n initializeMorseCodeSmallCustomProperties,\n morseCodeSmallAnimationTokens,\n morseCodeSmallTokens,\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';\n\ninitializeMorseCodeSmallCustomProperties();\n\nconst sharedStyles = {\n backgroundImage: morseCodeSmallTokens.backgroundImage,\n animationIterationCount: morseCodeSmallTokens.morseCodeAnimationIterationCount,\n animationDuration: morseCodeSmallTokens.morseCodeAnimationDuration,\n animationTimingFunction: morseCodeSmallTokens.morseCodeAnimationTimingFunction,\n};\n\nconst 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\nexport const MorseCodeSmallHoudini: React.FC<MorseCodeProps> = ({\n baseUrl = DEFAULT_BASE_URL,\n fileName = DEFAULT_SMALL_FILE_URL,\n className,\n ...restProps\n}) => {\n useAddModule(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":["makeResetStyles","mergeClasses","useAddModule","useMorseCodeSmallStyles","initializeMorseCodeSmallCustomProperties","morseCodeSmallAnimationTokens","morseCodeSmallTokens","DEFAULT_BASE_URL","DEFAULT_SMALL_FILE_URL","renderMorseCode","sharedStyles","backgroundImage","animationIterationCount","morseCodeAnimationIterationCount","animationDuration","morseCodeAnimationDuration","animationTimingFunction","morseCodeAnimationTimingFunction","useMorseCodeAnimationClassName","animationName","colorAnimation","dotsAndDashes","colorHCAnimation","MorseCodeSmallHoudini","baseUrl","fileName","className","restProps","morseCodeSmallStyles","animationClassName","wrapperClassName","wrapper","morseCodeClassName","base"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,SAASA,eAAe,EAAEC,YAAY,QAAQ,6BAA6B;AAC3E,SAASC,YAAY,QAAQ,wBAAwB;AACrD,SAASC,uBAAuB,QAAQ,0BAA0B;AAElE,SACEC,wCAAwC,EACxCC,6BAA6B,EAC7BC,oBAAoB,EACpBC,gBAAgB,EAChBC,sBAAsB,QACjB,+BAA+B;AAGtC,SAASC,eAAe,QAAQ,4BAA4B;AAE5DL;AAEA,MAAMM,eAAe;IACnBC,iBAAiBL,qBAAqBK,eAAe;IACrDC,yBAAyBN,qBAAqBO,gCAAgC;IAC9EC,mBAAmBR,qBAAqBS,0BAA0B;IAClEC,yBAAyBV,qBAAqBW,gCAAgC;AAChF;AAEA,MAAMC,iCAAiClB,gBAAgB;IACrD,GAAGU,YAAY;IACfS,eAAe;QAACd,8BAA8Be,cAAc;QAAEf,8BAA8BgB,aAAa;KAAC;IAE1G,kCAAkC;QAChC,GAAGX,YAAY;QACfS,eAAe;YAACd,8BAA8BiB,gBAAgB;YAAEjB,8BAA8BgB,aAAa;SAAC;IAC9G;AACF;AAEA,OAAO,MAAME,wBAAkD,CAAC,EAC9DC,UAAUjB,gBAAgB,EAC1BkB,WAAWjB,sBAAsB,EACjCkB,SAAS,EACT,GAAGC,WACJ;IACCzB,aAAasB,SAASC;IAEtB,MAAMG,uBAAuBzB;IAC7B,MAAM0B,qBAAqBX;IAC3B,MAAMY,mBAAmB7B,aAAa2B,qBAAqBG,OAAO,EAAEL;IACpE,MAAMM,qBAAqB/B,aACzB,sBACA,6BACA2B,qBAAqBK,IAAI,EACzBJ;IAGF,OAAOpB,gBAAgBqB,kBAAkBH,WAAWK;AACtD,EAAE"}
package/lib/index.js CHANGED
@@ -1,4 +1,7 @@
1
- export { MorseCode } from './components/MorseCode';
2
- export { MorseCodeFallback } from './components/MorseCodeFallback';
3
- export { MorseCodeHoudini } from './components/MorseCodeHoudini';
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';
4
7
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"sourcesContent":["export { MorseCode } from './components/MorseCode';\nexport { MorseCodeFallback } from './components/MorseCodeFallback';\nexport { MorseCodeHoudini } from './components/MorseCodeHoudini';\n\nexport type { MorseCodeProps } from './components/MorseCode.types';\n"],"names":["MorseCode","MorseCodeFallback","MorseCodeHoudini"],"rangeMappings":";;","mappings":"AAAA,SAASA,SAAS,QAAQ,yBAAyB;AACnD,SAASC,iBAAiB,QAAQ,iCAAiC;AACnE,SAASC,gBAAgB,QAAQ,gCAAgC"}
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,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "useAddModule", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return useAddModule;
9
+ }
10
+ });
11
+ const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
12
+ const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
13
+ const _houdiniutils = require("@fluentui-contrib/houdini-utils");
14
+ const initializedModules = {};
15
+ const useAddModule = (baseUrl, fileName)=>{
16
+ _react.useEffect(()=>{
17
+ const path = `${baseUrl}${fileName}`;
18
+ if (!initializedModules[path]) {
19
+ (0, _houdiniutils.addModule)(baseUrl, fileName).then(()=>{
20
+ initializedModules[path] = true;
21
+ }).catch((_err)=>{
22
+ initializedModules[path] = false;
23
+ });
24
+ }
25
+ }, [
26
+ baseUrl,
27
+ fileName
28
+ ]);
29
+ }; //# sourceMappingURL=useAddModule.js.map
@@ -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 = (baseUrl: string, fileName: string): void => {\n React.useEffect(() => {\n const path = `${baseUrl}${fileName}`;\n if (!initializedModules[path]) {\n addModule(baseUrl, fileName)\n .then(() => {\n initializedModules[path] = true;\n })\n .catch(_err => {\n initializedModules[path] = false;\n });\n }\n }, [baseUrl, fileName]);\n};\n"],"names":["useAddModule","initializedModules","baseUrl","fileName","React","useEffect","path","addModule","catch"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAKaA;;;eAAAA;;;;iEALU;8BACG;AAE1B,MAAMC,qBAAqB,CAAC;AAErB,MAAMD,eAAe,CAACE,SAAiBC;WAC5CC,SAAMC,CAAAA;cACJC,OAAMA,CAAAA,EAAAA,QAAUJ,EAAAA,SAAUC,CAAAA;YAC1B,CAAAF,kBAAKA,CAAAA,KAAmBK,EAAAA;uCACtBC,EAAAA,SAAUL,UAASC,IAAAA,CAAAA;kCAEfF,CAAAA,KAAAA,GAAmBK;oBACrB,CACCE,CAAAA;kCACCP,CAAAA,KAAAA,GAAmBK;;;OAG3B;QAAAJ;QAAGC;KAAA;2CAAUA"}
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "useFallbackRef", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return useFallbackRef;
9
+ }
10
+ });
11
+ const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
12
+ const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
13
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
14
+ const ON_COMPLETE_NOOP = ()=>{};
15
+ const useFallbackRef = (anim)=>{
16
+ const targetRef = _react.useCallback((node)=>{
17
+ let animControls;
18
+ if (node) {
19
+ animControls = anim(node);
20
+ animControls.play(ON_COMPLETE_NOOP);
21
+ } else {
22
+ if (animControls) {
23
+ animControls.stop();
24
+ animControls.cleanup();
25
+ animControls = undefined;
26
+ }
27
+ }
28
+ }, [
29
+ anim
30
+ ]);
31
+ return targetRef;
32
+ }; //# sourceMappingURL=useFallbackRef.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["useFallbackRef.ts"],"sourcesContent":["import * as React from 'react';\nimport type { fallbackPaintAnimation } from '@fluentui-contrib/houdini-utils';\n// eslint-disable-next-line @typescript-eslint/no-empty-function\nconst ON_COMPLETE_NOOP = () => {};\n\nexport type FallbackAnim = (target: HTMLElement) => ReturnType<typeof fallbackPaintAnimation>;\n\nexport const useFallbackRef = (anim: FallbackAnim) => {\n const targetRef = React.useCallback(\n (node: HTMLElement | null) => {\n let animControls: ReturnType<typeof fallbackPaintAnimation> | undefined;\n\n if (node) {\n animControls = anim(node);\n animControls.play(ON_COMPLETE_NOOP);\n } else {\n if (animControls) {\n animControls.stop();\n animControls.cleanup();\n animControls = undefined;\n }\n }\n },\n [anim],\n );\n\n return targetRef;\n};\n"],"names":["useFallbackRef","ON_COMPLETE_NOOP","anim","targetRef","React","useCallback","animControls","node"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAOaA;;;eAAAA;;;;iEAPU;AAEvB,gEAAgE;AAChE,MAAMC,mBAAmB,KAAO;AAIzB,MAAMD,iBAAiBE,CAAAA;UAC5BC,YAAMA,OAAYC,WAAMC,CAAAA,CAAAA;YAEpBC;YAEAC,MAAIA;2BACFD,KAAAA;yBACAA,IAAAA,CAAAA;eACF;8BACMA;6BACFA,IAAAA;6BACAA,OAAAA;+BACAA;;;OAGN;QAAAJ;KACA;WAACA;6CAGIC"}
@@ -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';\n\nconst houdiniAvailable = hasHoudini();\n\nexport const MorseCode: React.FC<MorseCodeProps> = props => {\n if (houdiniAvailable) {\n return <MorseCodeHoudini {...props} />;\n }\n\n return <MorseCodeFallback {...props} />;\n};\n"],"names":["MorseCode","houdiniAvailable","hasHoudini","props","React","createElement","MorseCodeHoudini","MorseCodeFallback"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BASaA;;;eAAAA;;;;iEATU;8BACI;mCACO;kCACD;AAIjC,MAAMC,mBAAmBC,IAAAA,wBAAAA;AAElB,MAAMF,YAAsCG,CAAAA;QACjDF,kBAAIA;eACF,WAAA,GAAAG,OAAOC,aAAA,CAAAC,kCAACA,EAAAA;;WAGV,WAAA,GAAAF,OAAOC,aAAA,CAAAE,oCAACA,EAAAA;AACV"}
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "MorseCodeFallback", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return MorseCodeFallback;
9
+ }
10
+ });
11
+ const _reactcomponents = require("@fluentui/react-components");
12
+ const _morsecode = require("@fluentui-copilot/morse-code");
13
+ const _MorseCodestyles = require("./MorseCode.styles");
14
+ const _useFallbackRef = require("../hooks/useFallbackRef");
15
+ const _renderMorseCode = require("../shared/renderMorseCode");
16
+ const MorseCodeFallback = (props)=>{
17
+ const morseCodeStyles = (0, _MorseCodestyles.useMorseCodeStyles)();
18
+ const targetRef = (0, _useFallbackRef.useFallbackRef)(_morsecode.morseCode);
19
+ const { className, ...restProps } = props;
20
+ const wrapperClassName = (0, _reactcomponents.mergeClasses)(morseCodeStyles.wrapper, className);
21
+ const morseCodeClassName = (0, _reactcomponents.mergeClasses)('fai-MorseCode', 'fai-MorseCodeFallback', morseCodeStyles.base);
22
+ return (0, _renderMorseCode.renderMorseCode)(wrapperClassName, restProps, morseCodeClassName, targetRef);
23
+ }; //# sourceMappingURL=MorseCodeFallback.js.map
@@ -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, ...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":["MorseCodeFallback","props","morseCodeStyles","useMorseCodeStyles","targetRef","useFallbackRef","morseCode","className","wrapperClassName","restProps","mergeClasses","wrapper"],"rangeMappings":";;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAQaA;;;eAAAA;;;iCARgB;2BACH;iCACS;gCAGJ;iCACC;AAEzB,MAAMA,oBAA8CC,CAAAA;UACzDC,kBAAMA,IAAAA,mCAAkBC;UAExBC,YAAMA,IAAAA,8BAAYC,EAAAA,oBAAeC;UAEjC,EACAC,SAAMC,EACN,GAAAC,cAEAR;IACA,MAAAO,mBAAAE,IAAAA,6BAAA,EAAAR,gBAAAS,OAAA,EAAAJ"}
@@ -8,14 +8,18 @@ Object.defineProperty(exports, "MorseCodeHoudini", {
8
8
  return MorseCodeHoudini;
9
9
  }
10
10
  });
11
- const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
12
- const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
13
11
  const _reactcomponents = require("@fluentui/react-components");
14
- const _houdiniutils = require("@fluentui-contrib/houdini-utils");
12
+ const _useAddModule = require("../hooks/useAddModule");
15
13
  const _MorseCodestyles = require("./MorseCode.styles");
16
14
  const _morsecode = require("@fluentui-copilot/morse-code");
17
- const initializedModules = {};
15
+ const _renderMorseCode = require("../shared/renderMorseCode");
18
16
  (0, _morsecode.initializeMorseCodeCustomProperties)();
17
+ const sharedStyles = {
18
+ backgroundImage: _morsecode.morseCodeTokens.backgroundImage,
19
+ animationIterationCount: _morsecode.morseCodeTokens.morseCodeAnimationIterationCount,
20
+ animationDuration: _morsecode.morseCodeTokens.morseCodeAnimationDuration,
21
+ animationTimingFunction: _morsecode.morseCodeTokens.morseCodeAnimationTimingFunction
22
+ };
19
23
  const useMorseCodeAnimationClassName = (0, _reactcomponents.__resetStyles)("r1ms8zpq", "rqpk8qn", {
20
24
  r: [
21
25
  ".r1ms8zpq{background-image:paint(morseCode);animation-iteration-count:infinite,infinite;animation-duration:2000ms,2000ms;animation-timing-function:linear,linear;animation-name:rarbvpc,r1i9k8jr;}",
@@ -29,26 +33,10 @@ const useMorseCodeAnimationClassName = (0, _reactcomponents.__resetStyles)("r1ms
29
33
  ]
30
34
  });
31
35
  const MorseCodeHoudini = ({ baseUrl = _morsecode.DEFAULT_BASE_URL, fileName = _morsecode.DEFAULT_FILE_URL, className, ...restProps })=>{
32
- _react.useEffect(()=>{
33
- const path = `${baseUrl}${fileName}`;
34
- if (!initializedModules[path]) {
35
- (0, _houdiniutils.addModule)(baseUrl, fileName).then(()=>{
36
- initializedModules[path] = true;
37
- }).catch((err)=>{
38
- initializedModules[path] = false;
39
- });
40
- }
41
- }, [
42
- baseUrl,
43
- fileName
44
- ]);
36
+ (0, _useAddModule.useAddModule)(baseUrl, fileName);
45
37
  const morseCodeStyles = (0, _MorseCodestyles.useMorseCodeStyles)();
46
38
  const animationClassName = useMorseCodeAnimationClassName();
47
- const cn = (0, _reactcomponents.mergeClasses)(morseCodeStyles.wrapper, className);
48
- return /*#__PURE__*/ _react.createElement("div", {
49
- className: cn,
50
- ...restProps
51
- }, /*#__PURE__*/ _react.createElement("div", {
52
- className: (0, _reactcomponents.mergeClasses)('fai-MorseCode', 'fai-MorseCodeHoudini', morseCodeStyles.base, animationClassName)
53
- }));
39
+ const wrapperClassName = (0, _reactcomponents.mergeClasses)(morseCodeStyles.wrapper, className);
40
+ const morseCodeClassName = (0, _reactcomponents.mergeClasses)('fai-MorseCode', 'fai-MorseCodeHoudini', morseCodeStyles.base, animationClassName);
41
+ return (0, _renderMorseCode.renderMorseCode)(wrapperClassName, restProps, morseCodeClassName);
54
42
  }; //# sourceMappingURL=MorseCodeHoudini.js.map