@fluentui-react-native/experimental-expander 0.5.14 → 0.5.16
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 +58 -1
- package/CHANGELOG.md +20 -2
- package/lib/Expander.d.ts +1 -1
- package/lib/Expander.d.ts.map +1 -1
- package/lib/Expander.js +1 -1
- package/lib/Expander.js.map +1 -1
- package/lib/Expander.types.d.ts +7 -7
- package/lib/Expander.types.d.ts.map +1 -1
- package/lib/index.d.ts +3 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +2 -2
- package/lib/index.js.map +1 -1
- package/lib-commonjs/Expander.d.ts +1 -1
- package/lib-commonjs/Expander.d.ts.map +1 -1
- package/lib-commonjs/Expander.js +6 -2
- package/lib-commonjs/Expander.js.map +1 -1
- package/lib-commonjs/Expander.types.d.ts +7 -7
- package/lib-commonjs/Expander.types.d.ts.map +1 -1
- package/lib-commonjs/index.d.ts +3 -2
- package/lib-commonjs/index.d.ts.map +1 -1
- package/lib-commonjs/index.js +5 -12
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +18 -12
- package/src/Expander.tsx +4 -2
- package/src/Expander.types.ts +3 -3
- package/src/index.ts +3 -2
package/.eslintrc.js
ADDED
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,64 @@
|
|
|
2
2
|
"name": "@fluentui-react-native/experimental-expander",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Thu, 02 Feb 2023 01:27:09 GMT",
|
|
6
|
+
"tag": "@fluentui-react-native/experimental-expander_v0.5.16",
|
|
7
|
+
"version": "0.5.16",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "30809111+acoates-ms@users.noreply.github.com",
|
|
12
|
+
"package": "@fluentui-react-native/experimental-expander",
|
|
13
|
+
"commit": "ac679ca51704ba5c2d2cc2385a71694b69735a1d",
|
|
14
|
+
"comment": "Add eslint to packages missing a config"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"author": "beachball",
|
|
18
|
+
"package": "@fluentui-react-native/experimental-expander",
|
|
19
|
+
"comment": "Bump @fluentui-react-native/framework to v0.8.39",
|
|
20
|
+
"commit": "ac679ca51704ba5c2d2cc2385a71694b69735a1d"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"date": "Wed, 01 Feb 2023 22:33:17 GMT",
|
|
27
|
+
"tag": "@fluentui-react-native/experimental-expander_v0.5.15",
|
|
28
|
+
"version": "0.5.15",
|
|
29
|
+
"comments": {
|
|
30
|
+
"patch": [
|
|
31
|
+
{
|
|
32
|
+
"author": "beachball",
|
|
33
|
+
"package": "@fluentui-react-native/experimental-expander",
|
|
34
|
+
"comment": "Bump @fluentui-react-native/component-cache to v1.4.3",
|
|
35
|
+
"commit": "2d0138c80d7512b905fcf32583760bec2b911910"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"author": "beachball",
|
|
39
|
+
"package": "@fluentui-react-native/experimental-expander",
|
|
40
|
+
"comment": "Bump @fluentui-react-native/framework to v0.8.38",
|
|
41
|
+
"commit": "2d0138c80d7512b905fcf32583760bec2b911910"
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"date": "Mon, 30 Jan 2023 15:17:30 GMT",
|
|
48
|
+
"tag": "@fluentui-react-native/experimental-expander_v0.5.14",
|
|
49
|
+
"version": "0.5.14",
|
|
50
|
+
"comments": {
|
|
51
|
+
"none": [
|
|
52
|
+
{
|
|
53
|
+
"author": "4123478+tido64@users.noreply.github.com",
|
|
54
|
+
"package": "@fluentui-react-native/experimental-expander",
|
|
55
|
+
"commit": "4de4c2b37c835ebd9af015ff767f9dd68452f786",
|
|
56
|
+
"comment": "Migrate to align-deps"
|
|
57
|
+
}
|
|
58
|
+
]
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"date": "Mon, 30 Jan 2023 07:12:38 GMT",
|
|
6
63
|
"tag": "@fluentui-react-native/experimental-expander_v0.5.14",
|
|
7
64
|
"version": "0.5.14",
|
|
8
65
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,30 @@
|
|
|
1
1
|
# Change Log - @fluentui-react-native/experimental-expander
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Thu, 02 Feb 2023 01:27:09 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 0.5.16
|
|
8
|
+
|
|
9
|
+
Thu, 02 Feb 2023 01:27:09 GMT
|
|
10
|
+
|
|
11
|
+
### Patches
|
|
12
|
+
|
|
13
|
+
- Add eslint to packages missing a config (30809111+acoates-ms@users.noreply.github.com)
|
|
14
|
+
- Bump @fluentui-react-native/framework to v0.8.39
|
|
15
|
+
|
|
16
|
+
## 0.5.15
|
|
17
|
+
|
|
18
|
+
Wed, 01 Feb 2023 22:33:17 GMT
|
|
19
|
+
|
|
20
|
+
### Patches
|
|
21
|
+
|
|
22
|
+
- Bump @fluentui-react-native/component-cache to v1.4.3
|
|
23
|
+
- Bump @fluentui-react-native/framework to v0.8.38
|
|
24
|
+
|
|
7
25
|
## 0.5.14
|
|
8
26
|
|
|
9
|
-
Mon, 30 Jan 2023 07:
|
|
27
|
+
Mon, 30 Jan 2023 07:12:38 GMT
|
|
10
28
|
|
|
11
29
|
### Patches
|
|
12
30
|
|
package/lib/Expander.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ExpanderProps, ExpanderViewProps } from './Expander.types';
|
|
1
|
+
import type { ExpanderProps, ExpanderViewProps } from './Expander.types';
|
|
2
2
|
export declare const Expander: import("@fluentui-react-native/framework").ComposableComponent<ExpanderProps, {
|
|
3
3
|
root: ExpanderViewProps;
|
|
4
4
|
}, import("./Expander.types").ExpanderTokens, object>;
|
package/lib/Expander.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Expander.d.ts","sourceRoot":"","sources":["../src/Expander.tsx"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"Expander.d.ts","sourceRoot":"","sources":["../src/Expander.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAgB,aAAa,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAYvF,eAAO,MAAM,QAAQ;;qDA8BnB,CAAC"}
|
package/lib/Expander.js
CHANGED
|
@@ -24,7 +24,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
24
24
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
25
25
|
function step(op) {
|
|
26
26
|
if (f) throw new TypeError("Generator is already executing.");
|
|
27
|
-
while (_) try {
|
|
27
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
28
28
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
29
29
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
30
30
|
switch (op[0]) {
|
package/lib/Expander.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Expander.js","sourceRoot":"","sources":["../src/Expander.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qBAAqB;AACrB,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Expander.js","sourceRoot":"","sources":["../src/Expander.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qBAAqB;AACrB,OAAO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SAAgB,CAAC;wBACjB,gBAAgB,CAAC,KAAK,CAAC,CAAC;;;;aACzB,CAAC;QAEF,IAAM,YAAY,GAAG;;YACnB,gBAAgB,CAAC,IAAI,CAAC,CAAC;YACvB,MAAA,SAAS,CAAC,WAAW,yDAAI,CAAC;QAC5B,CAAC,CAAC;QAEF,OAAO,UAAC,IAAuB;YAAE,kBAA8B;iBAA9B,UAA8B,EAA9B,qBAA8B,EAA9B,IAA8B;gBAA9B,iCAA8B;;YAAK,OAAA,CAClE,UAAC,IAAI,eAAK,UAAU,CAAC,SAAS,EAAE,IAAI,CAAC,IAAE,MAAM,EAAE,cAAc,EAAE,YAAY,EAAE,aAAa,EAAE,WAAW,EAAE,YAAY,KAClH,QAAQ,CACJ,CACR;QAJmE,CAInE,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
package/lib/Expander.types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ColorValue } from 'react-native';
|
|
1
|
+
import type { ColorValue } from 'react-native';
|
|
2
2
|
export declare const expanderName = "Expander";
|
|
3
3
|
export interface ExpanderProps {
|
|
4
4
|
/**
|
|
@@ -86,7 +86,7 @@ export interface ExpanderTokens {
|
|
|
86
86
|
/**
|
|
87
87
|
* Header border thickness
|
|
88
88
|
*/
|
|
89
|
-
headerBorderThickness?:
|
|
89
|
+
headerBorderThickness?: number;
|
|
90
90
|
/**
|
|
91
91
|
* Content background color
|
|
92
92
|
*/
|
|
@@ -122,7 +122,7 @@ export interface ExpanderTokens {
|
|
|
122
122
|
/**
|
|
123
123
|
* Chevron border thickness
|
|
124
124
|
*/
|
|
125
|
-
chevronBorderThickness?:
|
|
125
|
+
chevronBorderThickness?: number;
|
|
126
126
|
/**
|
|
127
127
|
* Chevron border color at rest
|
|
128
128
|
*/
|
|
@@ -136,10 +136,10 @@ export interface ExpanderTokens {
|
|
|
136
136
|
*/
|
|
137
137
|
chevronBorderPressedBrush?: ColorValue;
|
|
138
138
|
}
|
|
139
|
-
export
|
|
140
|
-
export
|
|
141
|
-
export
|
|
142
|
-
export
|
|
139
|
+
export type ExpandDirection = 'up' | 'down';
|
|
140
|
+
export type VerticalAlignment = 'bottom' | 'center' | 'stretch' | 'top';
|
|
141
|
+
export type HorizontalAlignment = 'center' | 'left' | 'right' | 'stretch';
|
|
142
|
+
export type ExpanderViewProps = ExpanderProps & ExpanderTokens;
|
|
143
143
|
export interface ExpanderType {
|
|
144
144
|
props: ExpanderProps;
|
|
145
145
|
tokens: ExpanderTokens;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Expander.types.d.ts","sourceRoot":"","sources":["../src/Expander.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"Expander.types.d.ts","sourceRoot":"","sources":["../src/Expander.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,eAAO,MAAM,YAAY,aAAa,CAAC;AASvC,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;CAC1B;AAED,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,0BAA0B,CAAC,EAAE,mBAAmB,CAAC;IACjD;;OAEG;IACH,wBAAwB,CAAC,EAAE,iBA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AQ,GAAG,QAAQ,GAAG,SAAS,GAAG,KAAK,CAAC;AACxE,MAAM,MAAM,mBAAmB,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;AAC1E,MAAM,MAAM,iBAAiB,GAAG,aAAa,GAAG,cAAc,CAAC;AAE/D,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,aAAa,CAAC;IACrB,MAAM,EAAE,cAAc,CAAC;IACvB,SAAS,EAAE;QACT,IAAI,EAAE,iBAAiB,CAAC;KACzB,CAAC;CACH"}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export { Expander } from './Expander';
|
|
2
|
+
export { expanderName } from './Expander.types';
|
|
3
|
+
export type { ExpandDirection, ExpanderProps, ExpanderTokens, ExpanderType, ExpanderViewProps, HorizontalAlignment, VerticalAlignment } from './Expander.types';
|
|
3
4
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,YAAY,EAAE,eAAe,EAAE,aAAa,EAAE,cAAc,EAAE,YAAY,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export { Expander } from './Expander';
|
|
2
|
+
export { expanderName } from './Expander.types';
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ExpanderProps, ExpanderViewProps } from './Expander.types';
|
|
1
|
+
import type { ExpanderProps, ExpanderViewProps } from './Expander.types';
|
|
2
2
|
export declare const Expander: import("@fluentui-react-native/framework").ComposableComponent<ExpanderProps, {
|
|
3
3
|
root: ExpanderViewProps;
|
|
4
4
|
}, import("./Expander.types").ExpanderTokens, object>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Expander.d.ts","sourceRoot":"","sources":["../src/Expander.tsx"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"Expander.d.ts","sourceRoot":"","sources":["../src/Expander.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAgB,aAAa,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAYvF,eAAO,MAAM,QAAQ;;qDA8BnB,CAAC"}
|
package/lib-commonjs/Expander.js
CHANGED
|
@@ -12,7 +12,11 @@ var __assign = (this && this.__assign) || function () {
|
|
|
12
12
|
};
|
|
13
13
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
14
|
if (k2 === undefined) k2 = k;
|
|
15
|
-
Object.
|
|
15
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
18
|
+
}
|
|
19
|
+
Object.defineProperty(o, k2, desc);
|
|
16
20
|
}) : (function(o, m, k, k2) {
|
|
17
21
|
if (k2 === undefined) k2 = k;
|
|
18
22
|
o[k2] = m[k];
|
|
@@ -44,7 +48,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
44
48
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
45
49
|
function step(op) {
|
|
46
50
|
if (f) throw new TypeError("Generator is already executing.");
|
|
47
|
-
while (_) try {
|
|
51
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
48
52
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
49
53
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
50
54
|
switch (op[0]) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Expander.js","sourceRoot":"","sources":["../src/Expander.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Expander.js","sourceRoot":"","sources":["../src/Expander.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qBAAqB;AACrB,2CAA+B;AAE/B,mDAAgD;AAEhD,8DAA8F;AAC9F,0EAA+E;AAE/E,IAAM,iBAAiB,GAAG,IAAA,uCAAqB,EAAC,cAAc,CAAC,CAAC;AAEhE,SAAS,KAAK,CAAC,EAAU;IACvB,OAAO,IAAI,OAAO,CAAC,UAAC,OAAO,IAAK,OAAA,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,EAAvB,CAAuB,CAAC,CAAC;AAC3D,CAAC;AAEY,QAAA,QAAQ,GAAG,IAAA,mBAAO,EAAe;IAC5C,WAAW,EAAE,6BAAY;IACzB,MAAM,EAAE,CAAC,EAAE,EAAE,6BAAY,CAAC;IAC1B,SAAS,EAAE;QACT,IAAI,EAAE,IAAA,sBAAU,EAAC,UAAC,MA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
|
export declare const expanderName = "Expander";
|
|
3
3
|
export interface ExpanderProps {
|
|
4
4
|
/**
|
|
@@ -86,7 +86,7 @@ export interface ExpanderTokens {
|
|
|
86
86
|
/**
|
|
87
87
|
* Header border thickness
|
|
88
88
|
*/
|
|
89
|
-
headerBorderThickness?:
|
|
89
|
+
headerBorderThickness?: number;
|
|
90
90
|
/**
|
|
91
91
|
* Content background color
|
|
92
92
|
*/
|
|
@@ -122,7 +122,7 @@ export interface ExpanderTokens {
|
|
|
122
122
|
/**
|
|
123
123
|
* Chevron border thickness
|
|
124
124
|
*/
|
|
125
|
-
chevronBorderThickness?:
|
|
125
|
+
chevronBorderThickness?: number;
|
|
126
126
|
/**
|
|
127
127
|
* Chevron border color at rest
|
|
128
128
|
*/
|
|
@@ -136,10 +136,10 @@ export interface ExpanderTokens {
|
|
|
136
136
|
*/
|
|
137
137
|
chevronBorderPressedBrush?: ColorValue;
|
|
138
138
|
}
|
|
139
|
-
export
|
|
140
|
-
export
|
|
141
|
-
export
|
|
142
|
-
export
|
|
139
|
+
export type ExpandDirection = 'up' | 'down';
|
|
140
|
+
export type VerticalAlignment = 'bottom' | 'center' | 'stretch' | 'top';
|
|
141
|
+
export type HorizontalAlignment = 'center' | 'left' | 'right' | 'stretch';
|
|
142
|
+
export type ExpanderViewProps = ExpanderProps & ExpanderTokens;
|
|
143
143
|
export interface ExpanderType {
|
|
144
144
|
props: ExpanderProps;
|
|
145
145
|
tokens: ExpanderTokens;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Expander.types.d.ts","sourceRoot":"","sources":["../src/Expander.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"Expander.types.d.ts","sourceRoot":"","sources":["../src/Expander.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,eAAO,MAAM,YAAY,aAAa,CA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,iBAAiB,CAAC,EAAE,UAAU,CAAC;IAC/B;;OAEG;IACH,iBAAiB,CAAC,EAAE,UAAU,CAAC;IAC/B;;OAEG;IACH,4BAA4B,CAAC,EAAE,UAAU,CAAC;IAC1C;;OAEG;IACH,4BAA4B,CAAC,EAAE,UAAU,CAAC;IAC1C;;OAEG;IACH,wBAAwB,CAAC,EAAE,UAAU,CAAC;IACtC;;OAEG;IACH,wBAAwB,CAAC,EAAE,UAAU,CAAC;IACtC;;OAEG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC;;OAEG;IACH,kBAAkB,CAAC,EAAE,UAAU,CAAC;IAChC;;OAEG;IACH,6BAA6B,CAAC,EAAE,UAAU,CAAC;IAC3C;;OAEG;IACH,yBAAyB,CAAC,EAAE,UAAU,CAAC;CACxC;AAED,MAAM,MAAM,eAAe,GAAG,IAAI,GAAG,MAAM,CAAC;AAC5C,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,KAAK,CAAC;AACxE,MAAM,MAAM,mBAAmB,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;AAC1E,MAAM,MAAM,iBAAiB,GAAG,aAAa,GAAG,cAAc,CAAC;AAE/D,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,aAAa,CAAC;IACrB,MAAM,EAAE,cAAc,CAAC;IACvB,SAAS,EAAE;QACT,IAAI,EAAE,iBAAiB,CAAC;KACzB,CAAC;CACH"}
|
package/lib-commonjs/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export { Expander } from './Expander';
|
|
2
|
+
export { expanderName } from './Expander.types';
|
|
3
|
+
export type { ExpandDirection, ExpanderProps, ExpanderTokens, ExpanderType, ExpanderViewProps, HorizontalAlignment, VerticalAlignment } from './Expander.types';
|
|
3
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,YAAY,EAAE,eAAe,EAAE,aAAa,EAAE,cAAc,EAAE,YAAY,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC"}
|
package/lib-commonjs/index.js
CHANGED
|
@@ -1,15 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
-
};
|
|
12
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
|
|
14
|
-
|
|
3
|
+
exports.expanderName = exports.Expander = void 0;
|
|
4
|
+
var Expander_1 = require("./Expander");
|
|
5
|
+
Object.defineProperty(exports, "Expander", { enumerable: true, get: function () { return Expander_1.Expander; } });
|
|
6
|
+
var Expander_types_1 = require("./Expander.types");
|
|
7
|
+
Object.defineProperty(exports, "expanderName", { enumerable: true, get: function () { return Expander_types_1.expanderName; } });
|
|
15
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,uCAAsC;AAA7B,oGAAA,QAAQ,OAAA;AACjB,mDAAgD;AAAvC,8GAAA,YAAY,OAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui-react-native/experimental-expander",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.16",
|
|
4
4
|
"description": "A cross-platform Native Expander component using the Fluent Design System. Currently only implemented on windows",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Microsoft <fluentuinativeowners@microsoft.com>",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"directory": "packages/experimental/Expander"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@fluentui-react-native/component-cache": "^1.4.
|
|
30
|
-
"@fluentui-react-native/framework": "0.8.
|
|
29
|
+
"@fluentui-react-native/component-cache": "^1.4.3",
|
|
30
|
+
"@fluentui-react-native/framework": "0.8.39"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@fluentui-react-native/eslint-config-rules": "^0.1.1",
|
|
@@ -43,15 +43,21 @@
|
|
|
43
43
|
"react-native-windows": "^0.68.0"
|
|
44
44
|
},
|
|
45
45
|
"rnx-kit": {
|
|
46
|
-
"reactNativeVersion": "^0.68",
|
|
47
|
-
"reactNativeDevVersion": "^0.68",
|
|
48
46
|
"kitType": "library",
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
"
|
|
54
|
-
|
|
55
|
-
|
|
47
|
+
"alignDeps": {
|
|
48
|
+
"presets": [
|
|
49
|
+
"microsoft/react-native"
|
|
50
|
+
],
|
|
51
|
+
"requirements": [
|
|
52
|
+
"react-native@0.68"
|
|
53
|
+
],
|
|
54
|
+
"capabilities": [
|
|
55
|
+
"core",
|
|
56
|
+
"core-android",
|
|
57
|
+
"core-ios",
|
|
58
|
+
"core-windows",
|
|
59
|
+
"react"
|
|
60
|
+
]
|
|
61
|
+
}
|
|
56
62
|
}
|
|
57
63
|
}
|
package/src/Expander.tsx
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
/** @jsx withSlots */
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import type { ExpanderType, ExpanderProps, ExpanderViewProps } from './Expander.types';
|
|
4
|
+
import { expanderName } from './Expander.types';
|
|
5
|
+
import type { UseSlots} from '@fluentui-react-native/framework';
|
|
6
|
+
import { compose, mergeProps, withSlots, buildProps } from '@fluentui-react-native/framework';
|
|
5
7
|
import { ensureNativeComponent } from '@fluentui-react-native/component-cache';
|
|
6
8
|
|
|
7
9
|
const ExpanderComponent = ensureNativeComponent('ExpanderView');
|
package/src/Expander.types.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ColorValue } from 'react-native';
|
|
1
|
+
import type { ColorValue } from 'react-native';
|
|
2
2
|
|
|
3
3
|
export const expanderName = 'Expander';
|
|
4
4
|
|
|
@@ -96,7 +96,7 @@ export interface ExpanderTokens {
|
|
|
96
96
|
/**
|
|
97
97
|
* Header border thickness
|
|
98
98
|
*/
|
|
99
|
-
headerBorderThickness?:
|
|
99
|
+
headerBorderThickness?: number;
|
|
100
100
|
/**
|
|
101
101
|
* Content background color
|
|
102
102
|
*/
|
|
@@ -132,7 +132,7 @@ export interface ExpanderTokens {
|
|
|
132
132
|
/**
|
|
133
133
|
* Chevron border thickness
|
|
134
134
|
*/
|
|
135
|
-
chevronBorderThickness?:
|
|
135
|
+
chevronBorderThickness?: number;
|
|
136
136
|
/**
|
|
137
137
|
* Chevron border color at rest
|
|
138
138
|
*/
|
package/src/index.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export { Expander } from './Expander';
|
|
2
|
+
export { expanderName } from './Expander.types';
|
|
3
|
+
export type { ExpandDirection, ExpanderProps, ExpanderTokens, ExpanderType, ExpanderViewProps, HorizontalAlignment, VerticalAlignment } from './Expander.types';
|