@fluentui-react-native/popover 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +3 -0
- package/CHANGELOG.json +20 -0
- package/CHANGELOG.md +13 -0
- package/babel.config.js +1 -0
- package/just.config.js +3 -0
- package/lib/Popover.d.ts +5 -0
- package/lib/Popover.d.ts.map +1 -0
- package/lib/Popover.js +12 -0
- package/lib/Popover.js.map +1 -0
- package/lib/Popover.types.d.ts +17 -0
- package/lib/Popover.types.d.ts.map +1 -0
- package/lib/Popover.types.js +2 -0
- package/lib/Popover.types.js.map +1 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +2 -0
- package/lib/index.js.map +1 -0
- package/lib-commonjs/Popover.d.ts +5 -0
- package/lib-commonjs/Popover.d.ts.map +1 -0
- package/lib-commonjs/Popover.js +15 -0
- package/lib-commonjs/Popover.js.map +1 -0
- package/lib-commonjs/Popover.types.d.ts +17 -0
- package/lib-commonjs/Popover.types.d.ts.map +1 -0
- package/lib-commonjs/Popover.types.js +5 -0
- package/lib-commonjs/Popover.types.js.map +1 -0
- package/lib-commonjs/index.d.ts +2 -0
- package/lib-commonjs/index.d.ts.map +1 -0
- package/lib-commonjs/index.js +6 -0
- package/lib-commonjs/index.js.map +1 -0
- package/package.json +41 -0
- package/src/Popover.tsx +14 -0
- package/src/Popover.types.ts +18 -0
- package/src/index.ts +1 -0
- package/tsconfig.json +9 -0
package/.eslintrc.js
ADDED
package/CHANGELOG.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@fluentui-react-native/popover",
|
|
3
|
+
"entries": [
|
|
4
|
+
{
|
|
5
|
+
"date": "Thu, 21 Apr 2022 18:15:32 GMT",
|
|
6
|
+
"tag": "@fluentui-react-native/popover_v0.1.0",
|
|
7
|
+
"version": "0.1.0",
|
|
8
|
+
"comments": {
|
|
9
|
+
"minor": [
|
|
10
|
+
{
|
|
11
|
+
"author": "ruaraki@microsoft.com",
|
|
12
|
+
"package": "@fluentui-react-native/popover",
|
|
13
|
+
"commit": "7668160bf4e893e13932af2f13e9e1cc9ea511cf",
|
|
14
|
+
"comment": "Add empty Menu and Popover packages"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
}
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Change Log - @fluentui-react-native/popover
|
|
2
|
+
|
|
3
|
+
This log was last generated on Thu, 21 Apr 2022 18:15:32 GMT and should not be manually modified.
|
|
4
|
+
|
|
5
|
+
<!-- Start content -->
|
|
6
|
+
|
|
7
|
+
## 0.1.0
|
|
8
|
+
|
|
9
|
+
Thu, 21 Apr 2022 18:15:32 GMT
|
|
10
|
+
|
|
11
|
+
### Minor changes
|
|
12
|
+
|
|
13
|
+
- Add empty Menu and Popover packages (ruaraki@microsoft.com)
|
package/babel.config.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('@fluentui-react-native/scripts/babel.config');
|
package/just.config.js
ADDED
package/lib/Popover.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** @jsx withSlots */
|
|
2
|
+
import { PopoverProps, PopoverTokens } from './Popover.types';
|
|
3
|
+
export declare const Popover: import("@fluentui-react-native/use-tokens").CustomizableComponent<PopoverProps, PopoverTokens, import("@fluentui-react-native/framework").Theme>;
|
|
4
|
+
export default Popover;
|
|
5
|
+
//# sourceMappingURL=Popover.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../src/Popover.tsx"],"names":[],"mappings":"AAAA,qBAAqB;AACrB,OAAO,EAAe,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAK3E,eAAO,MAAM,OAAO,kJAIA,CAAC;AAGrB,eAAe,OAAO,CAAC"}
|
package/lib/Popover.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** @jsx withSlots */
|
|
2
|
+
import { popoverName } from './Popover.types';
|
|
3
|
+
import { compressible, buildUseTokens } from '@fluentui-react-native/framework';
|
|
4
|
+
var usePopoverTokens = buildUseTokens(function () { return ({}); }, popoverName);
|
|
5
|
+
export var Popover = compressible(function (_props, _useTokens) {
|
|
6
|
+
return function () {
|
|
7
|
+
return null;
|
|
8
|
+
};
|
|
9
|
+
}, usePopoverTokens);
|
|
10
|
+
Popover.displayName = popoverName;
|
|
11
|
+
export default Popover;
|
|
12
|
+
//# sourceMappingURL=Popover.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Popover.js","sourceRoot":"","sources":["../src/Popover.tsx"],"names":[],"mappings":"AAAA,qBAAqB;AACrB,OAAO,EAAE,WAAW,EAA+B,MAAM,iBAAiB,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,cAAc,EAAa,MAAM,kCAAkC,CAAC;AAE3F,IAAM,gBAAgB,GAAG,cAAc,CAAgB,cAAM,OAAA,CAAC,EAAE,CAAC,EAAJ,CAAI,EAAE,WAAW,CAAC,CAAC;AAEhF,MAAM,CAAC,IAAM,OAAO,GAAG,YAAY,CAA8B,UAAC,MAAoB,EAAE,UAAoC;IAC1H,OAAO;QACL,OAAO,IAAI,CAAC;IACd,CAAC,CAAC;AACJ,CAAC,EAAE,gBAAgB,CAAC,CAAC;AACrB,OAAO,CAAC,WAAW,GAAG,WAAW,CAAC;AAElC,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { IViewProps } from '@fluentui-react-native/adapters';
|
|
2
|
+
export declare const popoverName = "Popover";
|
|
3
|
+
export interface PopoverTokens {
|
|
4
|
+
}
|
|
5
|
+
export interface PopoverProps extends Omit<IViewProps, 'onPress'> {
|
|
6
|
+
}
|
|
7
|
+
export interface PopoverState {
|
|
8
|
+
}
|
|
9
|
+
export interface PopoverSlotProps {
|
|
10
|
+
}
|
|
11
|
+
export interface PopoverType {
|
|
12
|
+
props: PopoverProps;
|
|
13
|
+
tokens: PopoverTokens;
|
|
14
|
+
slotProps: PopoverSlotProps;
|
|
15
|
+
state: PopoverState;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=Popover.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Popover.types.d.ts","sourceRoot":"","sources":["../src/Popover.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAElE,eAAO,MAAM,WAAW,YAAY,CAAC;AAErC,MAAM,WAAW,aAAa;CAAG;AAEjC,MAAM,WAAW,YAAa,SAAQ,IAAI,CAAC,UAAU,EAAE,SAAS,CAAC;CAAG;AAEpE,MAAM,WAAW,YAAY;CAAG;AAEhC,MAAM,WAAW,gBAAgB;CAAG;AAEpC,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,YAAY,CAAC;IACpB,MAAM,EAAE,aAAa,CAAC;IACtB,SAAS,EAAE,gBAAgB,CAAC;IAC5B,KAAK,EAAE,YAAY,CAAC;CACrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Popover.types.js","sourceRoot":"","sources":["../src/Popover.types.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,IAAM,WAAW,GAAG,SAAS,CAAC"}
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC"}
|
package/lib/index.js
ADDED
package/lib/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** @jsx withSlots */
|
|
2
|
+
import { PopoverProps, PopoverTokens } from './Popover.types';
|
|
3
|
+
export declare const Popover: import("@fluentui-react-native/use-tokens").CustomizableComponent<PopoverProps, PopoverTokens, import("@fluentui-react-native/framework").Theme>;
|
|
4
|
+
export default Popover;
|
|
5
|
+
//# sourceMappingURL=Popover.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../src/Popover.tsx"],"names":[],"mappings":"AAAA,qBAAqB;AACrB,OAAO,EAAe,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAK3E,eAAO,MAAM,OAAO,kJAIA,CAAC;AAGrB,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Popover = void 0;
|
|
4
|
+
/** @jsx withSlots */
|
|
5
|
+
var Popover_types_1 = require("./Popover.types");
|
|
6
|
+
var framework_1 = require("@fluentui-react-native/framework");
|
|
7
|
+
var usePopoverTokens = (0, framework_1.buildUseTokens)(function () { return ({}); }, Popover_types_1.popoverName);
|
|
8
|
+
exports.Popover = (0, framework_1.compressible)(function (_props, _useTokens) {
|
|
9
|
+
return function () {
|
|
10
|
+
return null;
|
|
11
|
+
};
|
|
12
|
+
}, usePopoverTokens);
|
|
13
|
+
exports.Popover.displayName = Popover_types_1.popoverName;
|
|
14
|
+
exports.default = exports.Popover;
|
|
15
|
+
//# sourceMappingURL=Popover.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Popover.js","sourceRoot":"","sources":["../src/Popover.tsx"],"names":[],"mappings":";;;AAAA,qBAAqB;AACrB,iDAA2E;AAC3E,8DAA2F;AAE3F,IAAM,gBAAgB,GAAG,IAAA,0BAAc,EAAgB,cAAM,OAAA,CAAC,EAAE,CAAC,EAAJ,CAAI,EAAE,2BAAW,CAAC,CAAC;AAEnE,QAAA,OAAO,GAAG,IAAA,wBAAY,EAA8B,UAAC,MAAoB,EAAE,UAAoC;IAC1H,OAAO;QACL,OAAO,IAAI,CAAC;IACd,CAAC,CAAC;AACJ,CAAC,EAAE,gBAAgB,CAAC,CAAC;AACrB,eAAO,CAAC,WAAW,GAAG,2BAAW,CAAC;AAElC,kBAAe,eAAO,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { IViewProps } from '@fluentui-react-native/adapters';
|
|
2
|
+
export declare const popoverName = "Popover";
|
|
3
|
+
export interface PopoverTokens {
|
|
4
|
+
}
|
|
5
|
+
export interface PopoverProps extends Omit<IViewProps, 'onPress'> {
|
|
6
|
+
}
|
|
7
|
+
export interface PopoverState {
|
|
8
|
+
}
|
|
9
|
+
export interface PopoverSlotProps {
|
|
10
|
+
}
|
|
11
|
+
export interface PopoverType {
|
|
12
|
+
props: PopoverProps;
|
|
13
|
+
tokens: PopoverTokens;
|
|
14
|
+
slotProps: PopoverSlotProps;
|
|
15
|
+
state: PopoverState;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=Popover.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Popover.types.d.ts","sourceRoot":"","sources":["../src/Popover.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAElE,eAAO,MAAM,WAAW,YAAY,CAAC;AAErC,MAAM,WAAW,aAAa;CAAG;AAEjC,MAAM,WAAW,YAAa,SAAQ,IAAI,CAAC,UAAU,EAAE,SAAS,CAAC;CAAG;AAEpE,MAAM,WAAW,YAAY;CAAG;AAEhC,MAAM,WAAW,gBAAgB;CAAG;AAEpC,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,YAAY,CAAC;IACpB,MAAM,EAAE,aAAa,CAAC;IACtB,SAAS,EAAE,gBAAgB,CAAC;IAC5B,KAAK,EAAE,YAAY,CAAC;CACrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Popover.types.js","sourceRoot":"","sources":["../src/Popover.types.ts"],"names":[],"mappings":";;;AAEa,QAAA,WAAW,GAAG,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Popover = void 0;
|
|
4
|
+
var Popover_1 = require("./Popover");
|
|
5
|
+
Object.defineProperty(exports, "Popover", { enumerable: true, get: function () { return Popover_1.Popover; } });
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,qCAAoC;AAA3B,kGAAA,OAAO,OAAA"}
|
package/package.json
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@fluentui-react-native/popover",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "A cross-platform Popover component using the Fluent Design System",
|
|
5
|
+
"main": "lib-commonjs/index.js",
|
|
6
|
+
"module": "lib/index.js",
|
|
7
|
+
"typings": "lib/index.d.ts",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"build": "fluentui-scripts build",
|
|
10
|
+
"clean": "fluentui-scripts clean",
|
|
11
|
+
"depcheck": "fluentui-scripts depcheck",
|
|
12
|
+
"just": "fluentui-scripts",
|
|
13
|
+
"lint": "fluentui-scripts eslint",
|
|
14
|
+
"test": "fluentui-scripts jest",
|
|
15
|
+
"update-snapshots": "fluentui-scripts jest -u",
|
|
16
|
+
"prettier": "fluentui-scripts prettier",
|
|
17
|
+
"prettier-fix": "fluentui-scripts prettier --fix true"
|
|
18
|
+
},
|
|
19
|
+
"repository": {
|
|
20
|
+
"type": "git",
|
|
21
|
+
"url": "https://github.com/microsoft/fluentui-react-native.git",
|
|
22
|
+
"directory": "packages/experimental/popover"
|
|
23
|
+
},
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"@fluentui-react-native/adapters": ">=0.8.5 <1.0.0",
|
|
26
|
+
"@fluentui-react-native/framework": "0.7.22",
|
|
27
|
+
"tslib": "^2.3.1"
|
|
28
|
+
},
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"@fluentui-react-native/eslint-config-rules": "^0.1.1",
|
|
31
|
+
"@fluentui-react-native/scripts": "^0.1.1",
|
|
32
|
+
"@types/react-native": "^0.64.0",
|
|
33
|
+
"react-native": "^0.64.3"
|
|
34
|
+
},
|
|
35
|
+
"peerDependencies": {
|
|
36
|
+
"react": ">=17.0.1",
|
|
37
|
+
"react-native": ">=0.64.3"
|
|
38
|
+
},
|
|
39
|
+
"author": "",
|
|
40
|
+
"license": "MIT"
|
|
41
|
+
}
|
package/src/Popover.tsx
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/** @jsx withSlots */
|
|
2
|
+
import { popoverName, PopoverProps, PopoverTokens } from './Popover.types';
|
|
3
|
+
import { compressible, buildUseTokens, UseTokens } from '@fluentui-react-native/framework';
|
|
4
|
+
|
|
5
|
+
const usePopoverTokens = buildUseTokens<PopoverTokens>(() => ({}), popoverName);
|
|
6
|
+
|
|
7
|
+
export const Popover = compressible<PopoverProps, PopoverTokens>((_props: PopoverProps, _useTokens: UseTokens<PopoverTokens>) => {
|
|
8
|
+
return () => {
|
|
9
|
+
return null;
|
|
10
|
+
};
|
|
11
|
+
}, usePopoverTokens);
|
|
12
|
+
Popover.displayName = popoverName;
|
|
13
|
+
|
|
14
|
+
export default Popover;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { IViewProps } from '@fluentui-react-native/adapters';
|
|
2
|
+
|
|
3
|
+
export const popoverName = 'Popover';
|
|
4
|
+
|
|
5
|
+
export interface PopoverTokens {}
|
|
6
|
+
|
|
7
|
+
export interface PopoverProps extends Omit<IViewProps, 'onPress'> {}
|
|
8
|
+
|
|
9
|
+
export interface PopoverState {}
|
|
10
|
+
|
|
11
|
+
export interface PopoverSlotProps {}
|
|
12
|
+
|
|
13
|
+
export interface PopoverType {
|
|
14
|
+
props: PopoverProps;
|
|
15
|
+
tokens: PopoverTokens;
|
|
16
|
+
slotProps: PopoverSlotProps;
|
|
17
|
+
state: PopoverState;
|
|
18
|
+
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Popover } from './Popover';
|