Initial commit

This commit is contained in:
2025-03-07 19:22:02 +01:00
commit 4a98255d83
55743 changed files with 5280367 additions and 0 deletions
@@ -0,0 +1,21 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "TeachingPopoverTrigger", {
enumerable: true,
get: function() {
return TeachingPopoverTrigger;
}
});
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
const _renderTeachingPopoverTrigger = require("./renderTeachingPopoverTrigger");
const _useTeachingPopoverTrigger = require("./useTeachingPopoverTrigger");
const TeachingPopoverTrigger = (props)=>{
const state = (0, _useTeachingPopoverTrigger.useTeachingPopoverTrigger_unstable)(props);
return (0, _renderTeachingPopoverTrigger.renderTeachingPopoverTrigger_unstable)(state);
};
TeachingPopoverTrigger.displayName = 'TeachingPopoverTrigger';
// type casting here is required to ensure internal type FluentTriggerComponent is not leaked
TeachingPopoverTrigger.isFluentTriggerComponent = true;
@@ -0,0 +1 @@
{"version":3,"sources":["../src/components/TeachingPopoverTrigger/TeachingPopoverTrigger.tsx"],"sourcesContent":["import * as React from 'react';\nimport type { FluentTriggerComponent } from '@fluentui/react-utilities';\nimport { TeachingPopoverTriggerProps } from './TeachingPopoverTrigger.types';\nimport { renderTeachingPopoverTrigger_unstable } from './renderTeachingPopoverTrigger';\nimport { useTeachingPopoverTrigger_unstable } from './useTeachingPopoverTrigger';\n\n/**\n * Direct extension of PopoverTrigger - Wraps a trigger element as an only child and adds the necessary event handling to open a teaching bubble.\n */\nexport const TeachingPopoverTrigger: React.FC<TeachingPopoverTriggerProps> = props => {\n const state = useTeachingPopoverTrigger_unstable(props);\n\n return renderTeachingPopoverTrigger_unstable(state);\n};\n\nTeachingPopoverTrigger.displayName = 'TeachingPopoverTrigger';\n// type casting here is required to ensure internal type FluentTriggerComponent is not leaked\n(TeachingPopoverTrigger as FluentTriggerComponent).isFluentTriggerComponent = true;\n"],"names":["TeachingPopoverTrigger","props","state","useTeachingPopoverTrigger_unstable","renderTeachingPopoverTrigger_unstable","displayName","isFluentTriggerComponent"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BASaA;;;eAAAA;;;;iEATU;8CAG+B;2CACH;AAK5C,MAAMA,yBAAgEC,CAAAA;IAC3E,MAAMC,QAAQC,IAAAA,6DAAAA,EAAmCF;IAEjD,OAAOG,IAAAA,mEAAAA,EAAsCF;AAC/C;AAEAF,uBAAuBK,WAAW,GAAG;AACrC,6FAA6F;AAC5FL,uBAAkDM,wBAAwB,GAAG"}
@@ -0,0 +1,6 @@
/**
* Props that are passed to the child of the DialogTrigger when cloned to ensure correct behavior for the Dialog
*/ "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
@@ -0,0 +1 @@
{"version":3,"sources":["../src/components/TeachingPopoverTrigger/TeachingPopoverTrigger.types.ts"],"sourcesContent":["import { PopoverTriggerChildProps, PopoverTriggerProps, PopoverTriggerState } from '@fluentui/react-popover';\n\n/**\n * TeachingPopoverTrigger Props\n */\nexport type TeachingPopoverTriggerProps = PopoverTriggerProps;\n\n/**\n * TeachingPopoverTrigger State\n */\nexport type TeachingPopoverTriggerState = PopoverTriggerState;\n\n/**\n * Props that are passed to the child of the DialogTrigger when cloned to ensure correct behavior for the Dialog\n */\nexport type TeachingPopoverTriggerChildProps = PopoverTriggerChildProps;\n"],"names":[],"rangeMappings":";;","mappings":"AAYA;;CAEC"}
@@ -0,0 +1,24 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
function _export(target, all) {
for(var name in all)Object.defineProperty(target, name, {
enumerable: true,
get: all[name]
});
}
_export(exports, {
TeachingPopoverTrigger: function() {
return _TeachingPopoverTrigger.TeachingPopoverTrigger;
},
renderTeachingPopoverTrigger_unstable: function() {
return _renderTeachingPopoverTrigger.renderTeachingPopoverTrigger_unstable;
},
useTeachingPopoverTrigger_unstable: function() {
return _useTeachingPopoverTrigger.useTeachingPopoverTrigger_unstable;
}
});
const _TeachingPopoverTrigger = require("./TeachingPopoverTrigger");
const _renderTeachingPopoverTrigger = require("./renderTeachingPopoverTrigger");
const _useTeachingPopoverTrigger = require("./useTeachingPopoverTrigger");
@@ -0,0 +1 @@
{"version":3,"sources":["../src/components/TeachingPopoverTrigger/index.ts"],"sourcesContent":["export { TeachingPopoverTrigger } from './TeachingPopoverTrigger';\nexport type {\n TeachingPopoverTriggerChildProps,\n TeachingPopoverTriggerProps,\n TeachingPopoverTriggerState,\n} from './TeachingPopoverTrigger.types';\nexport { renderTeachingPopoverTrigger_unstable } from './renderTeachingPopoverTrigger';\nexport { useTeachingPopoverTrigger_unstable } from './useTeachingPopoverTrigger';\n"],"names":["TeachingPopoverTrigger","renderTeachingPopoverTrigger_unstable","useTeachingPopoverTrigger_unstable"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAASA,sBAAsB;eAAtBA,8CAAsB;;IAMtBC,qCAAqC;eAArCA,mEAAqC;;IACrCC,kCAAkC;eAAlCA,6DAAkC;;;wCAPJ;8CAMe;2CACH"}
@@ -0,0 +1,15 @@
/**
* Render the final JSX of TeachingPopoverTrigger
*/ "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "renderTeachingPopoverTrigger_unstable", {
enumerable: true,
get: function() {
return renderTeachingPopoverTrigger_unstable;
}
});
const renderTeachingPopoverTrigger_unstable = (state)=>{
return state.children;
};
@@ -0,0 +1 @@
{"version":3,"sources":["../src/components/TeachingPopoverTrigger/renderTeachingPopoverTrigger.tsx"],"sourcesContent":["import { TeachingPopoverTriggerState } from './TeachingPopoverTrigger.types';\n\n/**\n * Render the final JSX of TeachingPopoverTrigger\n */\nexport const renderTeachingPopoverTrigger_unstable = (state: TeachingPopoverTriggerState) => {\n return state.children;\n};\n"],"names":["renderTeachingPopoverTrigger_unstable","state","children"],"rangeMappings":";;;;;;;;;;;;;;","mappings":"AAEA;;CAEC;;;;+BACYA;;;eAAAA;;;AAAN,MAAMA,wCAAwC,CAACC;IACpD,OAAOA,MAAMC,QAAQ;AACvB"}
@@ -0,0 +1,15 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "useTeachingPopoverTrigger_unstable", {
enumerable: true,
get: function() {
return useTeachingPopoverTrigger_unstable;
}
});
const _reactpopover = require("@fluentui/react-popover");
const useTeachingPopoverTrigger_unstable = (props)=>{
const state = (0, _reactpopover.usePopoverTrigger_unstable)(props);
return state;
};
@@ -0,0 +1 @@
{"version":3,"sources":["../src/components/TeachingPopoverTrigger/useTeachingPopoverTrigger.ts"],"sourcesContent":["import { TeachingPopoverTriggerProps, TeachingPopoverTriggerState } from './TeachingPopoverTrigger.types';\nimport { usePopoverTrigger_unstable } from '@fluentui/react-popover';\n\n/**\n * Create the state required to render TeachingPopoverTrigger.\n *\n * @param props - props from this instance of TeachingPopoverTrigger\n */\nexport const useTeachingPopoverTrigger_unstable = (props: TeachingPopoverTriggerProps): TeachingPopoverTriggerState => {\n const state = usePopoverTrigger_unstable(props);\n\n return state;\n};\n"],"names":["useTeachingPopoverTrigger_unstable","props","state","usePopoverTrigger_unstable"],"rangeMappings":";;;;;;;;;;;;;;","mappings":";;;;+BAQaA;;;eAAAA;;;8BAP8B;AAOpC,MAAMA,qCAAqC,CAACC;IACjD,MAAMC,QAAQC,IAAAA,wCAAAA,EAA2BF;IAEzC,OAAOC;AACT"}