@fluentui-react-native/experimental-expander 0.8.18 → 0.9.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/CHANGELOG.md +36 -0
- package/lib/Expander.d.ts +10 -5
- package/lib/Expander.d.ts.map +1 -1
- package/lib/Expander.js +35 -28
- package/lib/Expander.js.map +1 -1
- package/lib/Expander.types.d.ts +140 -139
- package/lib/Expander.types.d.ts.map +1 -1
- package/lib/Expander.types.js +1 -1
- package/lib/Expander.types.js.map +1 -1
- package/lib/ExpanderNativeComponent.d.ts +34 -34
- package/lib/ExpanderNativeComponent.d.ts.map +1 -1
- package/lib/ExpanderNativeComponent.js +3 -2
- package/lib/ExpanderNativeComponent.js.map +1 -1
- package/lib/index.d.ts +10 -2
- package/lib/index.js +1 -1
- package/lib-commonjs/Expander.d.ts +10 -5
- package/lib-commonjs/Expander.d.ts.map +1 -1
- package/lib-commonjs/Expander.js +90 -59
- package/lib-commonjs/Expander.js.map +1 -1
- package/lib-commonjs/Expander.types.d.ts +140 -139
- package/lib-commonjs/Expander.types.d.ts.map +1 -1
- package/lib-commonjs/Expander.types.js +3 -3
- package/lib-commonjs/Expander.types.js.map +1 -1
- package/lib-commonjs/ExpanderNativeComponent.d.ts +34 -34
- package/lib-commonjs/ExpanderNativeComponent.d.ts.map +1 -1
- package/lib-commonjs/ExpanderNativeComponent.js +12 -8
- package/lib-commonjs/ExpanderNativeComponent.js.map +1 -1
- package/lib-commonjs/index.d.ts +10 -2
- package/lib-commonjs/index.js +17 -7
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +53 -54
- package/src/Expander.tsx +3 -4
- package/src/Expander.types.ts +2 -1
- package/src/ExpanderNativeComponent.ts +3 -3
package/lib-commonjs/Expander.js
CHANGED
|
@@ -1,68 +1,99 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
var __createBinding =
|
|
3
|
+
(this && this.__createBinding) ||
|
|
4
|
+
(Object.create
|
|
5
|
+
? function (o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ('get' in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () {
|
|
12
|
+
return m[k];
|
|
13
|
+
},
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
Object.defineProperty(o, k2, desc);
|
|
17
|
+
}
|
|
18
|
+
: function (o, m, k, k2) {
|
|
19
|
+
if (k2 === undefined) k2 = k;
|
|
20
|
+
o[k2] = m[k];
|
|
21
|
+
});
|
|
22
|
+
var __setModuleDefault =
|
|
23
|
+
(this && this.__setModuleDefault) ||
|
|
24
|
+
(Object.create
|
|
25
|
+
? function (o, v) {
|
|
26
|
+
Object.defineProperty(o, 'default', { enumerable: true, value: v });
|
|
27
|
+
}
|
|
28
|
+
: function (o, v) {
|
|
29
|
+
o['default'] = v;
|
|
30
|
+
});
|
|
31
|
+
var __importStar =
|
|
32
|
+
(this && this.__importStar) ||
|
|
33
|
+
(function () {
|
|
34
|
+
var ownKeys = function (o) {
|
|
35
|
+
ownKeys =
|
|
36
|
+
Object.getOwnPropertyNames ||
|
|
37
|
+
function (o) {
|
|
38
|
+
var ar = [];
|
|
39
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
40
|
+
return ar;
|
|
41
|
+
};
|
|
42
|
+
return ownKeys(o);
|
|
43
|
+
};
|
|
44
|
+
return function (mod) {
|
|
45
|
+
if (mod && mod.__esModule) return mod;
|
|
46
|
+
var result = {};
|
|
47
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== 'default') __createBinding(result, mod, k[i]);
|
|
48
|
+
__setModuleDefault(result, mod);
|
|
49
|
+
return result;
|
|
50
|
+
};
|
|
51
|
+
})();
|
|
52
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
53
|
+
exports.Expander = void 0;
|
|
54
|
+
const jsx_runtime_1 = require('@fluentui-react-native/framework-base/jsx-runtime');
|
|
2
55
|
/**
|
|
3
56
|
* Copyright (c) Microsoft Corporation.
|
|
4
57
|
* Licensed under the MIT License.
|
|
5
58
|
* @format
|
|
6
59
|
*/
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
Object.defineProperty(o, k2, desc);
|
|
14
|
-
}) : (function(o, m, k, k2) {
|
|
15
|
-
if (k2 === undefined) k2 = k;
|
|
16
|
-
o[k2] = m[k];
|
|
17
|
-
}));
|
|
18
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
19
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
20
|
-
}) : function(o, v) {
|
|
21
|
-
o["default"] = v;
|
|
22
|
-
});
|
|
23
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
24
|
-
if (mod && mod.__esModule) return mod;
|
|
25
|
-
var result = {};
|
|
26
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
27
|
-
__setModuleDefault(result, mod);
|
|
28
|
-
return result;
|
|
29
|
-
};
|
|
30
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
31
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
32
|
-
};
|
|
33
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34
|
-
exports.Expander = void 0;
|
|
35
|
-
/** @jsxRuntime classic */
|
|
36
|
-
/** @jsx withSlots */
|
|
37
|
-
const React = __importStar(require("react"));
|
|
38
|
-
const framework_1 = require("@fluentui-react-native/framework");
|
|
39
|
-
const Expander_types_1 = require("./Expander.types");
|
|
40
|
-
const ExpanderNativeComponent_1 = __importDefault(require("./ExpanderNativeComponent"));
|
|
60
|
+
/** @jsxImportSource @fluentui-react-native/framework-base */
|
|
61
|
+
const React = __importStar(require('react'));
|
|
62
|
+
const framework_1 = require('@fluentui-react-native/framework');
|
|
63
|
+
const Expander_types_1 = require('./Expander.types');
|
|
64
|
+
const ExpanderNativeComponent_1 = require('./ExpanderNativeComponent');
|
|
41
65
|
function delay(ms) {
|
|
42
|
-
|
|
66
|
+
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
43
67
|
}
|
|
44
68
|
exports.Expander = (0, framework_1.compose)({
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
69
|
+
displayName: Expander_types_1.expanderName,
|
|
70
|
+
tokens: [{}, Expander_types_1.expanderName],
|
|
71
|
+
slotProps: {
|
|
72
|
+
root: (0, framework_1.buildProps)((tokens) => ({ ...tokens })),
|
|
73
|
+
},
|
|
74
|
+
slots: { root: ExpanderNativeComponent_1.ExpanderComponent },
|
|
75
|
+
useRender: (userProps, useSlots) => {
|
|
76
|
+
const Root = useSlots(userProps).root;
|
|
77
|
+
const [expandedState, setExpandedState] = React.useState(userProps.expanded);
|
|
78
|
+
const expanderHeight = expandedState ? userProps.expandedHeight : userProps.collapsedHeight;
|
|
79
|
+
const _onCollapsing = async () => {
|
|
80
|
+
userProps.onCollapsing?.();
|
|
81
|
+
// Need to delay the height change so that the animation runs
|
|
82
|
+
await delay(175);
|
|
83
|
+
setExpandedState(false);
|
|
84
|
+
};
|
|
85
|
+
const _onExpanding = () => {
|
|
86
|
+
setExpandedState(true);
|
|
87
|
+
userProps.onExpanding?.();
|
|
88
|
+
};
|
|
89
|
+
return (rest, ...children) =>
|
|
90
|
+
jsx_runtime_1.jsx(Root, {
|
|
91
|
+
...(0, framework_1.mergeProps)(userProps, rest),
|
|
92
|
+
height: expanderHeight,
|
|
93
|
+
onCollapsing: _onCollapsing,
|
|
94
|
+
onExpanding: _onExpanding,
|
|
95
|
+
children: children,
|
|
96
|
+
});
|
|
97
|
+
},
|
|
67
98
|
});
|
|
68
|
-
//# sourceMappingURL=Expander.js.map
|
|
99
|
+
//# sourceMappingURL=Expander.js.map
|
|
@@ -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;;;;GAIG;AAEH,6DAA6D;AAC7D,MAAY,KAAK,kCAAc;AAG/B,gEAAmF;AAGnF,qDAAgD;AAChD,uEAA8D;AAE9D,SAAS,KAAK,CAAC,EAAU,EAAE;IACzB,OAAO,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC;AAAA,CAChE;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,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,MAAM,EAAE,CAAC,CAAC;KAC9C;IACD,KAAK,EAAE,EAAE,IAAI,EAAE,2CAAiB,EAAE;IAClC,SAAS,EAAE,CAAC,SAAwB,EAAE,QAAgC,EAAE,EAAE,CAAC;QACzE,MAAM,IAAI,GAAG,QAAQ,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC;QACtC,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;QAC7E,MAAM,cAAc,GAAG,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC,eAAe,CAAC;QAE5F,MAAM,aAAa,GAAG,KAAK,IAAI,EAAE,CAAC;YAChC,SAAS,CAAC,YAAY,EAAE,EAAE,CAAC;YAC3B,6DAA6D;YAC7D,MAAM,KAAK,CAAC,GAAG,CAAC,CAAC;YACjB,gBAAgB,CAAC,KAAK,CAAC,CAAC;QAAA,CACzB,CAAC;QAEF,MAAM,YAAY,GAAG,GAAG,EAAE,CAAC;YACzB,gBAAgB,CAAC,IAAI,CAAC,CAAC;YACvB,SAAS,CAAC,WAAW,EAAE,EAAE,CAAC;QAAA,CAC3B,CAAC;QAEF,OAAO,CAAC,IAAuB,EAAE,GAAG,QAA2B,EAAE,EAAE,CAAC,CAClE,kBAAC,IAAI,OAAK,IAAA,sBAAU,EAAC,SAAS,EAAE,IAAI,CAAC,EAAE,MAAM,EAAE,cAAc,EAAE,YAAY,EAAE,aAAa,EAAE,WAAW,EAAE,YAAY,YAClH,QAAQ,GACJ,CACR,CAAC;IAAA,CACH;CACF,CAAC,CAAC"}
|
|
@@ -1,151 +1,152 @@
|
|
|
1
1
|
import type { PropsWithChildren } from 'react';
|
|
2
2
|
import type { ColorValue } from 'react-native';
|
|
3
|
-
|
|
3
|
+
import type { NativeProps } from './ExpanderNativeComponent';
|
|
4
|
+
export declare const expanderName = 'Expander';
|
|
4
5
|
export type ExpanderProps = PropsWithChildren<{
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
6
|
+
/**
|
|
7
|
+
* Direction to expand the Expander.
|
|
8
|
+
*/
|
|
9
|
+
expandDirection?: ExpandDirection;
|
|
10
|
+
/**
|
|
11
|
+
* Determines if the expander is currently expanded
|
|
12
|
+
*/
|
|
13
|
+
expanded?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Is Expander control enabled for the user
|
|
16
|
+
*/
|
|
17
|
+
enabled?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Height of the Expander
|
|
20
|
+
*/
|
|
21
|
+
height?: number;
|
|
22
|
+
/**
|
|
23
|
+
* Height for the Expander when expanded
|
|
24
|
+
*/
|
|
25
|
+
expandedHeight: number;
|
|
26
|
+
/**
|
|
27
|
+
* Height for the Expander when collapsed
|
|
28
|
+
*/
|
|
29
|
+
collapsedHeight: number;
|
|
30
|
+
/**
|
|
31
|
+
* A callback to call on Expander collapsed event
|
|
32
|
+
*/
|
|
33
|
+
onCollapsing?: () => void;
|
|
34
|
+
/**
|
|
35
|
+
* A callback to call on Expander expanding event
|
|
36
|
+
*/
|
|
37
|
+
onExpanding?: () => void;
|
|
37
38
|
}>;
|
|
38
39
|
export interface ExpanderTokens {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
40
|
+
/**
|
|
41
|
+
* Width of the expander
|
|
42
|
+
*/
|
|
43
|
+
width?: number;
|
|
44
|
+
/**
|
|
45
|
+
* Horizontal alignment of the expander's content
|
|
46
|
+
*/
|
|
47
|
+
contentHorizontalAlignment?: HorizontalAlignment;
|
|
48
|
+
/**
|
|
49
|
+
* Vertical alignment of the expander's content
|
|
50
|
+
*/
|
|
51
|
+
contentVerticalAlignment?: VerticalAlignment;
|
|
52
|
+
/**
|
|
53
|
+
* Header background color
|
|
54
|
+
*/
|
|
55
|
+
headerBackground?: ColorValue;
|
|
56
|
+
/**
|
|
57
|
+
* Header foreground color at rest
|
|
58
|
+
*/
|
|
59
|
+
headerForeground?: ColorValue;
|
|
60
|
+
/**
|
|
61
|
+
* Header foreground color on pointer over
|
|
62
|
+
*/
|
|
63
|
+
headerForegroundPointerOver?: ColorValue;
|
|
64
|
+
/**
|
|
65
|
+
* Header foreground color when pressed
|
|
66
|
+
*/
|
|
67
|
+
headerForegroundPressed?: ColorValue;
|
|
68
|
+
/**
|
|
69
|
+
* Header border color at rest
|
|
70
|
+
*/
|
|
71
|
+
headerBorderBrush?: ColorValue;
|
|
72
|
+
/**
|
|
73
|
+
* Header border color on pointer over
|
|
74
|
+
*/
|
|
75
|
+
headerBorderPointerOverBrush?: ColorValue;
|
|
76
|
+
/**
|
|
77
|
+
* Header border color when pressed
|
|
78
|
+
*/
|
|
79
|
+
headerBorderPressedBrush?: ColorValue;
|
|
80
|
+
/**
|
|
81
|
+
* Header foreground color when disabled
|
|
82
|
+
*/
|
|
83
|
+
headerDisabledForeground?: ColorValue;
|
|
84
|
+
/**
|
|
85
|
+
* Header border color when disabled
|
|
86
|
+
*/
|
|
87
|
+
headerDisabledBorderBrush?: ColorValue;
|
|
88
|
+
/**
|
|
89
|
+
* Header border thickness
|
|
90
|
+
*/
|
|
91
|
+
headerBorderThickness?: number;
|
|
92
|
+
/**
|
|
93
|
+
* Content background color
|
|
94
|
+
*/
|
|
95
|
+
contentBackground?: ColorValue;
|
|
96
|
+
/**
|
|
97
|
+
* Content border color
|
|
98
|
+
*/
|
|
99
|
+
contentBorderBrush?: ColorValue;
|
|
100
|
+
/**
|
|
101
|
+
* Chevron background color at rest
|
|
102
|
+
*/
|
|
103
|
+
chevronBackground?: ColorValue;
|
|
104
|
+
/**
|
|
105
|
+
* Chevron foreground color at rest
|
|
106
|
+
*/
|
|
107
|
+
chevronForeground?: ColorValue;
|
|
108
|
+
/**
|
|
109
|
+
* Chevron background color on pointer over
|
|
110
|
+
*/
|
|
111
|
+
chevronPointerOverBackground?: ColorValue;
|
|
112
|
+
/**
|
|
113
|
+
* Chevron foreground color on pointer over
|
|
114
|
+
*/
|
|
115
|
+
chevronPointerOverForeground?: ColorValue;
|
|
116
|
+
/**
|
|
117
|
+
* Chevron background color when pressed
|
|
118
|
+
*/
|
|
119
|
+
chevronPressedBackground?: ColorValue;
|
|
120
|
+
/**
|
|
121
|
+
* Chevron foreground color when pressed
|
|
122
|
+
*/
|
|
123
|
+
chevronPressedForeground?: ColorValue;
|
|
124
|
+
/**
|
|
125
|
+
* Chevron border thickness
|
|
126
|
+
*/
|
|
127
|
+
chevronBorderThickness?: number;
|
|
128
|
+
/**
|
|
129
|
+
* Chevron border color at rest
|
|
130
|
+
*/
|
|
131
|
+
chevronBorderBrush?: ColorValue;
|
|
132
|
+
/**
|
|
133
|
+
* Chevron border color on pointer over
|
|
134
|
+
*/
|
|
135
|
+
chevronBorderPointerOverBrush?: ColorValue;
|
|
136
|
+
/**
|
|
137
|
+
* Chevron border color when pressed
|
|
138
|
+
*/
|
|
139
|
+
chevronBorderPressedBrush?: ColorValue;
|
|
139
140
|
}
|
|
140
141
|
export type ExpandDirection = 'up' | 'down';
|
|
141
142
|
export type VerticalAlignment = 'bottom' | 'center' | 'stretch' | 'top';
|
|
142
143
|
export type HorizontalAlignment = 'center' | 'left' | 'right' | 'stretch';
|
|
143
144
|
export type ExpanderViewProps = ExpanderProps & ExpanderTokens;
|
|
144
145
|
export interface ExpanderType {
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
146
|
+
props: ExpanderProps;
|
|
147
|
+
tokens: ExpanderTokens;
|
|
148
|
+
slotProps: {
|
|
149
|
+
root: NativeProps;
|
|
150
|
+
};
|
|
150
151
|
}
|
|
151
|
-
//# sourceMappingURL=Expander.types.d.ts.map
|
|
152
|
+
//# sourceMappingURL=Expander.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Expander.types.d.ts","sourceRoot":"","sources":["../src/Expander.types.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,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,aAAa,CAAC;IACrB,MAAM,EAAE,cAAc,CAAC;IACvB,SAAS,EAAE;QACT,IAAI,EAAE,WAAW,CAAC;KACnB,CAAC;CACH"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports,
|
|
1
|
+
'use strict';
|
|
2
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
3
3
|
exports.expanderName = void 0;
|
|
4
4
|
exports.expanderName = 'Expander';
|
|
5
|
-
//# sourceMappingURL=Expander.types.js.map
|
|
5
|
+
//# sourceMappingURL=Expander.types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Expander.types.js","sourceRoot":"","sources":["../src/Expander.types.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"Expander.types.js","sourceRoot":"","sources":["../src/Expander.types.ts"],"names":[],"mappings":";;;AAIa,QAAA,YAAY,GAAG,UAAU,CAAC"}
|
|
@@ -6,38 +6,38 @@
|
|
|
6
6
|
import type { ColorValue, HostComponent, ViewProps } from 'react-native';
|
|
7
7
|
import type { DirectEventHandler, Double, WithDefault } from 'react-native/Libraries/Types/CodegenTypes';
|
|
8
8
|
export interface NativeProps extends ViewProps {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
9
|
+
expandDirection?: WithDefault<'up' | 'down', 'down'>;
|
|
10
|
+
expanded?: boolean;
|
|
11
|
+
enabled?: boolean;
|
|
12
|
+
width?: Double;
|
|
13
|
+
height?: Double;
|
|
14
|
+
contentHorizontalAlignment?: WithDefault<'center' | 'left' | 'right' | 'stretch', 'stretch'>;
|
|
15
|
+
contentVerticalAlignment?: WithDefault<'bottom' | 'center' | 'stretch' | 'top', 'top'>;
|
|
16
|
+
headerBackground?: ColorValue;
|
|
17
|
+
headerForeground?: ColorValue;
|
|
18
|
+
headerForegroundPointerOver?: ColorValue;
|
|
19
|
+
headerForegroundPressed?: ColorValue;
|
|
20
|
+
headerBorderBrush?: ColorValue;
|
|
21
|
+
headerBorderPointerOverBrush?: ColorValue;
|
|
22
|
+
headerBorderPressedBrush?: ColorValue;
|
|
23
|
+
headerDisabledForeground?: ColorValue;
|
|
24
|
+
headerDisabledBorderBrush?: ColorValue;
|
|
25
|
+
headerBorderThickness?: Double;
|
|
26
|
+
contentBackground?: ColorValue;
|
|
27
|
+
contentBorderBrush?: ColorValue;
|
|
28
|
+
chevronBackground?: ColorValue;
|
|
29
|
+
chevronForeground?: ColorValue;
|
|
30
|
+
chevronPointerOverBackground?: ColorValue;
|
|
31
|
+
chevronPointerOverForeground?: ColorValue;
|
|
32
|
+
chevronPressedBackground?: ColorValue;
|
|
33
|
+
chevronPressedForeground?: ColorValue;
|
|
34
|
+
chevronBorderThickness?: Double;
|
|
35
|
+
chevronBorderBrush?: ColorValue;
|
|
36
|
+
chevronBorderPointerOverBrush?: ColorValue;
|
|
37
|
+
chevronBorderPressedBrush?: ColorValue;
|
|
38
|
+
onCollapsing?: DirectEventHandler<null>;
|
|
39
|
+
onExpanding?: DirectEventHandler<null>;
|
|
40
40
|
}
|
|
41
|
-
declare const
|
|
42
|
-
export default
|
|
43
|
-
//# sourceMappingURL=ExpanderNativeComponent.d.ts.map
|
|
41
|
+
export declare const ExpanderComponent: HostComponent<NativeProps>;
|
|
42
|
+
export default ExpanderComponent;
|
|
43
|
+
//# sourceMappingURL=ExpanderNativeComponent.d.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4
4
|
* Licensed under the MIT License.
|
|
5
5
|
* @format
|
|
6
6
|
*/
|
|
7
|
-
var __importDefault =
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
7
|
+
var __importDefault =
|
|
8
|
+
(this && this.__importDefault) ||
|
|
9
|
+
function (mod) {
|
|
10
|
+
return mod && mod.__esModule ? mod : { default: mod };
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
13
|
+
exports.ExpanderComponent = void 0;
|
|
14
|
+
const codegenNativeComponent_1 = __importDefault(require('react-native/Libraries/Utilities/codegenNativeComponent'));
|
|
15
|
+
exports.ExpanderComponent = (0, codegenNativeComponent_1.default)('ExpanderView');
|
|
16
|
+
exports.default = exports.ExpanderComponent;
|
|
17
|
+
//# sourceMappingURL=ExpanderNativeComponent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExpanderNativeComponent.js","sourceRoot":"","sources":["../src/ExpanderNativeComponent.ts"],"names":[],"mappings":";AAAA;;;;GAIG
|
|
1
|
+
{"version":3,"file":"ExpanderNativeComponent.js","sourceRoot":"","sources":["../src/ExpanderNativeComponent.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;AAKH,qHAA6F;AAqChF,QAAA,iBAAiB,GAA+B,IAAA,gCAAsB,EAAc,cAAc,CAAC,CAAC;kBAElG,QAAA,iBAAiB"}
|
package/lib-commonjs/index.d.ts
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
export { Expander } from './Expander';
|
|
2
2
|
export { expanderName } from './Expander.types';
|
|
3
|
-
export type {
|
|
4
|
-
|
|
3
|
+
export type {
|
|
4
|
+
ExpandDirection,
|
|
5
|
+
ExpanderProps,
|
|
6
|
+
ExpanderTokens,
|
|
7
|
+
ExpanderType,
|
|
8
|
+
ExpanderViewProps,
|
|
9
|
+
HorizontalAlignment,
|
|
10
|
+
VerticalAlignment,
|
|
11
|
+
} from './Expander.types';
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
package/lib-commonjs/index.js
CHANGED
|
@@ -1,8 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports,
|
|
1
|
+
'use strict';
|
|
2
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
3
3
|
exports.expanderName = exports.Expander = void 0;
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
const Expander_1 = require('./Expander');
|
|
5
|
+
Object.defineProperty(exports, 'Expander', {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function () {
|
|
8
|
+
return Expander_1.Expander;
|
|
9
|
+
},
|
|
10
|
+
});
|
|
11
|
+
const Expander_types_1 = require('./Expander.types');
|
|
12
|
+
Object.defineProperty(exports, 'expanderName', {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return Expander_types_1.expanderName;
|
|
16
|
+
},
|
|
17
|
+
});
|
|
18
|
+
//# sourceMappingURL=index.js.map
|