@fluentui-react-native/experimental-expander 0.9.0 → 0.9.1
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 +10 -0
- package/lib/Expander.d.ts +4 -9
- package/lib/Expander.js +25 -32
- package/lib/Expander.types.d.ts +139 -139
- package/lib/Expander.types.js +1 -1
- package/lib/ExpanderNativeComponent.d.ts +32 -32
- package/lib/ExpanderNativeComponent.js +1 -1
- package/lib/index.d.ts +2 -10
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -1
- package/lib-commonjs/Expander.d.ts +4 -9
- package/lib-commonjs/Expander.js +60 -84
- package/lib-commonjs/Expander.types.d.ts +139 -139
- package/lib-commonjs/Expander.types.js +3 -3
- package/lib-commonjs/ExpanderNativeComponent.d.ts +32 -32
- package/lib-commonjs/ExpanderNativeComponent.js +7 -9
- package/lib-commonjs/index.d.ts +2 -10
- package/lib-commonjs/index.d.ts.map +1 -1
- package/lib-commonjs/index.js +7 -17
- package/package.json +13 -12
- package/src/index.ts +9 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Change Log - @fluentui-react-native/experimental-expander
|
|
2
2
|
|
|
3
|
+
## 0.9.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 0d6e9c1: chore: migrate to `oxfmt`
|
|
8
|
+
- ac6e7af: Ensure packages have a default export that references the typescript entrypoint and clean up build dependency ordering
|
|
9
|
+
- Updated dependencies [0d6e9c1]
|
|
10
|
+
- Updated dependencies [ac6e7af]
|
|
11
|
+
- @fluentui-react-native/framework@0.15.1
|
|
12
|
+
|
|
3
13
|
## 0.9.0
|
|
4
14
|
|
|
5
15
|
### Minor Changes
|
package/lib/Expander.d.ts
CHANGED
|
@@ -4,12 +4,7 @@
|
|
|
4
4
|
* @format
|
|
5
5
|
*/
|
|
6
6
|
import type { ExpanderProps } from './Expander.types';
|
|
7
|
-
export declare const Expander: import(
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
},
|
|
12
|
-
import('./Expander.types').ExpanderTokens,
|
|
13
|
-
import('@fluentui-react-native/framework-base').ObjectBase
|
|
14
|
-
>;
|
|
15
|
-
//# sourceMappingURL=Expander.d.ts.map
|
|
7
|
+
export declare const Expander: import("@fluentui-react-native/framework").ComposableComponent<ExpanderProps, {
|
|
8
|
+
root: import("./ExpanderNativeComponent").NativeProps;
|
|
9
|
+
}, import("./Expander.types").ExpanderTokens, import("@fluentui-react-native/framework-base").ObjectBase>;
|
|
10
|
+
//# sourceMappingURL=Expander.d.ts.map
|
package/lib/Expander.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as _jsx } from
|
|
1
|
+
import { jsx as _jsx } from "@fluentui-react-native/framework-base/jsx-runtime";
|
|
2
2
|
/**
|
|
3
3
|
* Copyright (c) Microsoft Corporation.
|
|
4
4
|
* Licensed under the MIT License.
|
|
@@ -10,37 +10,30 @@ import { compose, mergeProps, buildProps } from '@fluentui-react-native/framewor
|
|
|
10
10
|
import { expanderName } from './Expander.types';
|
|
11
11
|
import { ExpanderComponent } from './ExpanderNativeComponent';
|
|
12
12
|
function delay(ms) {
|
|
13
|
-
|
|
13
|
+
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
14
14
|
}
|
|
15
15
|
export const Expander = compose({
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
...mergeProps(userProps, rest),
|
|
39
|
-
height: expanderHeight,
|
|
40
|
-
onCollapsing: _onCollapsing,
|
|
41
|
-
onExpanding: _onExpanding,
|
|
42
|
-
children: children,
|
|
43
|
-
});
|
|
44
|
-
},
|
|
16
|
+
displayName: expanderName,
|
|
17
|
+
tokens: [{}, expanderName],
|
|
18
|
+
slotProps: {
|
|
19
|
+
root: buildProps((tokens) => ({ ...tokens })),
|
|
20
|
+
},
|
|
21
|
+
slots: { root: ExpanderComponent },
|
|
22
|
+
useRender: (userProps, useSlots) => {
|
|
23
|
+
const Root = useSlots(userProps).root;
|
|
24
|
+
const [expandedState, setExpandedState] = React.useState(userProps.expanded);
|
|
25
|
+
const expanderHeight = expandedState ? userProps.expandedHeight : userProps.collapsedHeight;
|
|
26
|
+
const _onCollapsing = async () => {
|
|
27
|
+
userProps.onCollapsing?.();
|
|
28
|
+
// Need to delay the height change so that the animation runs
|
|
29
|
+
await delay(175);
|
|
30
|
+
setExpandedState(false);
|
|
31
|
+
};
|
|
32
|
+
const _onExpanding = () => {
|
|
33
|
+
setExpandedState(true);
|
|
34
|
+
userProps.onExpanding?.();
|
|
35
|
+
};
|
|
36
|
+
return (rest, ...children) => (_jsx(Root, { ...mergeProps(userProps, rest), height: expanderHeight, onCollapsing: _onCollapsing, onExpanding: _onExpanding, children: children }));
|
|
37
|
+
},
|
|
45
38
|
});
|
|
46
|
-
//# sourceMappingURL=Expander.js.map
|
|
39
|
+
//# sourceMappingURL=Expander.js.map
|
package/lib/Expander.types.d.ts
CHANGED
|
@@ -1,152 +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 =
|
|
4
|
+
export declare const expanderName = "Expander";
|
|
5
5
|
export type ExpanderProps = PropsWithChildren<{
|
|
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
|
-
|
|
37
|
-
|
|
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;
|
|
38
38
|
}>;
|
|
39
39
|
export interface ExpanderTokens {
|
|
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
|
-
|
|
139
|
-
|
|
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;
|
|
140
140
|
}
|
|
141
141
|
export type ExpandDirection = 'up' | 'down';
|
|
142
142
|
export type VerticalAlignment = 'bottom' | 'center' | 'stretch' | 'top';
|
|
143
143
|
export type HorizontalAlignment = 'center' | 'left' | 'right' | 'stretch';
|
|
144
144
|
export type ExpanderViewProps = ExpanderProps & ExpanderTokens;
|
|
145
145
|
export interface ExpanderType {
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
146
|
+
props: ExpanderProps;
|
|
147
|
+
tokens: ExpanderTokens;
|
|
148
|
+
slotProps: {
|
|
149
|
+
root: NativeProps;
|
|
150
|
+
};
|
|
151
151
|
}
|
|
152
|
-
//# sourceMappingURL=Expander.types.d.ts.map
|
|
152
|
+
//# sourceMappingURL=Expander.types.d.ts.map
|
package/lib/Expander.types.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const expanderName = 'Expander';
|
|
2
|
-
//# sourceMappingURL=Expander.types.js.map
|
|
2
|
+
//# sourceMappingURL=Expander.types.js.map
|
|
@@ -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
41
|
export declare const ExpanderComponent: HostComponent<NativeProps>;
|
|
42
42
|
export default ExpanderComponent;
|
|
43
|
-
//# sourceMappingURL=ExpanderNativeComponent.d.ts.map
|
|
43
|
+
//# sourceMappingURL=ExpanderNativeComponent.d.ts.map
|
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
|
|
7
7
|
export const ExpanderComponent = codegenNativeComponent('ExpanderView');
|
|
8
8
|
export default ExpanderComponent;
|
|
9
|
-
//# sourceMappingURL=ExpanderNativeComponent.js.map
|
|
9
|
+
//# sourceMappingURL=ExpanderNativeComponent.js.map
|
package/lib/index.d.ts
CHANGED
|
@@ -1,12 +1,4 @@
|
|
|
1
1
|
export { Expander } from './Expander';
|
|
2
2
|
export { expanderName } from './Expander.types';
|
|
3
|
-
export type {
|
|
4
|
-
|
|
5
|
-
ExpanderProps,
|
|
6
|
-
ExpanderTokens,
|
|
7
|
-
ExpanderType,
|
|
8
|
-
ExpanderViewProps,
|
|
9
|
-
HorizontalAlignment,
|
|
10
|
-
VerticalAlignment,
|
|
11
|
-
} from './Expander.types';
|
|
12
|
-
//# sourceMappingURL=index.d.ts.map
|
|
3
|
+
export type { ExpandDirection, ExpanderProps, ExpanderTokens, ExpanderType, ExpanderViewProps, HorizontalAlignment, VerticalAlignment, } from './Expander.types';
|
|
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,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,YAAY,
|
|
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,EACV,eAAe,EACf,aAAa,EACb,cAAc,EACd,YAAY,EACZ,iBAAiB,EACjB,mBAAmB,EACnB,iBAAiB,GAClB,MAAM,kBAAkB,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -4,12 +4,7 @@
|
|
|
4
4
|
* @format
|
|
5
5
|
*/
|
|
6
6
|
import type { ExpanderProps } from './Expander.types';
|
|
7
|
-
export declare const Expander: import(
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
},
|
|
12
|
-
import('./Expander.types').ExpanderTokens,
|
|
13
|
-
import('@fluentui-react-native/framework').ObjectBase
|
|
14
|
-
>;
|
|
15
|
-
//# sourceMappingURL=Expander.d.ts.map
|
|
7
|
+
export declare const Expander: import("@fluentui-react-native/framework").ComposableComponent<ExpanderProps, {
|
|
8
|
+
root: import("./ExpanderNativeComponent").NativeProps;
|
|
9
|
+
}, import("./Expander.types").ExpanderTokens, import("@fluentui-react-native/framework").ObjectBase>;
|
|
10
|
+
//# sourceMappingURL=Expander.d.ts.map
|
package/lib-commonjs/Expander.js
CHANGED
|
@@ -1,99 +1,75 @@
|
|
|
1
|
-
|
|
2
|
-
var __createBinding =
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
var
|
|
23
|
-
|
|
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;
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
41
24
|
};
|
|
42
|
-
|
|
25
|
+
return ownKeys(o);
|
|
43
26
|
};
|
|
44
27
|
return function (mod) {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
50
33
|
};
|
|
51
|
-
|
|
52
|
-
Object.defineProperty(exports,
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53
36
|
exports.Expander = void 0;
|
|
54
|
-
const jsx_runtime_1 = require(
|
|
37
|
+
const jsx_runtime_1 = require("@fluentui-react-native/framework-base/jsx-runtime");
|
|
55
38
|
/**
|
|
56
39
|
* Copyright (c) Microsoft Corporation.
|
|
57
40
|
* Licensed under the MIT License.
|
|
58
41
|
* @format
|
|
59
42
|
*/
|
|
60
43
|
/** @jsxImportSource @fluentui-react-native/framework-base */
|
|
61
|
-
const React = __importStar(require(
|
|
62
|
-
const framework_1 = require(
|
|
63
|
-
const Expander_types_1 = require(
|
|
64
|
-
const ExpanderNativeComponent_1 = require(
|
|
44
|
+
const React = __importStar(require("react"));
|
|
45
|
+
const framework_1 = require("@fluentui-react-native/framework");
|
|
46
|
+
const Expander_types_1 = require("./Expander.types");
|
|
47
|
+
const ExpanderNativeComponent_1 = require("./ExpanderNativeComponent");
|
|
65
48
|
function delay(ms) {
|
|
66
|
-
|
|
49
|
+
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
67
50
|
}
|
|
68
51
|
exports.Expander = (0, framework_1.compose)({
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
...(0, framework_1.mergeProps)(userProps, rest),
|
|
92
|
-
height: expanderHeight,
|
|
93
|
-
onCollapsing: _onCollapsing,
|
|
94
|
-
onExpanding: _onExpanding,
|
|
95
|
-
children: children,
|
|
96
|
-
});
|
|
97
|
-
},
|
|
52
|
+
displayName: Expander_types_1.expanderName,
|
|
53
|
+
tokens: [{}, Expander_types_1.expanderName],
|
|
54
|
+
slotProps: {
|
|
55
|
+
root: (0, framework_1.buildProps)((tokens) => ({ ...tokens })),
|
|
56
|
+
},
|
|
57
|
+
slots: { root: ExpanderNativeComponent_1.ExpanderComponent },
|
|
58
|
+
useRender: (userProps, useSlots) => {
|
|
59
|
+
const Root = useSlots(userProps).root;
|
|
60
|
+
const [expandedState, setExpandedState] = React.useState(userProps.expanded);
|
|
61
|
+
const expanderHeight = expandedState ? userProps.expandedHeight : userProps.collapsedHeight;
|
|
62
|
+
const _onCollapsing = async () => {
|
|
63
|
+
userProps.onCollapsing?.();
|
|
64
|
+
// Need to delay the height change so that the animation runs
|
|
65
|
+
await delay(175);
|
|
66
|
+
setExpandedState(false);
|
|
67
|
+
};
|
|
68
|
+
const _onExpanding = () => {
|
|
69
|
+
setExpandedState(true);
|
|
70
|
+
userProps.onExpanding?.();
|
|
71
|
+
};
|
|
72
|
+
return (rest, ...children) => (jsx_runtime_1.jsx(Root, { ...(0, framework_1.mergeProps)(userProps, rest), height: expanderHeight, onCollapsing: _onCollapsing, onExpanding: _onExpanding, children: children }));
|
|
73
|
+
},
|
|
98
74
|
});
|
|
99
|
-
//# sourceMappingURL=Expander.js.map
|
|
75
|
+
//# sourceMappingURL=Expander.js.map
|
|
@@ -1,152 +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 =
|
|
4
|
+
export declare const expanderName = "Expander";
|
|
5
5
|
export type ExpanderProps = PropsWithChildren<{
|
|
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
|
-
|
|
37
|
-
|
|
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;
|
|
38
38
|
}>;
|
|
39
39
|
export interface ExpanderTokens {
|
|
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
|
-
|
|
139
|
-
|
|
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;
|
|
140
140
|
}
|
|
141
141
|
export type ExpandDirection = 'up' | 'down';
|
|
142
142
|
export type VerticalAlignment = 'bottom' | 'center' | 'stretch' | 'top';
|
|
143
143
|
export type HorizontalAlignment = 'center' | 'left' | 'right' | 'stretch';
|
|
144
144
|
export type ExpanderViewProps = ExpanderProps & ExpanderTokens;
|
|
145
145
|
export interface ExpanderType {
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
146
|
+
props: ExpanderProps;
|
|
147
|
+
tokens: ExpanderTokens;
|
|
148
|
+
slotProps: {
|
|
149
|
+
root: NativeProps;
|
|
150
|
+
};
|
|
151
151
|
}
|
|
152
|
-
//# sourceMappingURL=Expander.types.d.ts.map
|
|
152
|
+
//# sourceMappingURL=Expander.types.d.ts.map
|
|
@@ -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
|
|
@@ -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
41
|
export declare const ExpanderComponent: HostComponent<NativeProps>;
|
|
42
42
|
export default ExpanderComponent;
|
|
43
|
-
//# sourceMappingURL=ExpanderNativeComponent.d.ts.map
|
|
43
|
+
//# sourceMappingURL=ExpanderNativeComponent.d.ts.map
|
|
@@ -1,17 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
2
|
/**
|
|
3
3
|
* Copyright (c) Microsoft Corporation.
|
|
4
4
|
* Licensed under the MIT License.
|
|
5
5
|
* @format
|
|
6
6
|
*/
|
|
7
|
-
var __importDefault =
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
};
|
|
12
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
8
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9
|
+
};
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
11
|
exports.ExpanderComponent = void 0;
|
|
14
|
-
const codegenNativeComponent_1 = __importDefault(require(
|
|
12
|
+
const codegenNativeComponent_1 = __importDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));
|
|
15
13
|
exports.ExpanderComponent = (0, codegenNativeComponent_1.default)('ExpanderView');
|
|
16
14
|
exports.default = exports.ExpanderComponent;
|
|
17
|
-
//# sourceMappingURL=ExpanderNativeComponent.js.map
|
|
15
|
+
//# sourceMappingURL=ExpanderNativeComponent.js.map
|
package/lib-commonjs/index.d.ts
CHANGED
|
@@ -1,12 +1,4 @@
|
|
|
1
1
|
export { Expander } from './Expander';
|
|
2
2
|
export { expanderName } from './Expander.types';
|
|
3
|
-
export type {
|
|
4
|
-
|
|
5
|
-
ExpanderProps,
|
|
6
|
-
ExpanderTokens,
|
|
7
|
-
ExpanderType,
|
|
8
|
-
ExpanderViewProps,
|
|
9
|
-
HorizontalAlignment,
|
|
10
|
-
VerticalAlignment,
|
|
11
|
-
} from './Expander.types';
|
|
12
|
-
//# sourceMappingURL=index.d.ts.map
|
|
3
|
+
export type { ExpandDirection, ExpanderProps, ExpanderTokens, ExpanderType, ExpanderViewProps, HorizontalAlignment, VerticalAlignment, } from './Expander.types';
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,EACV,eAAe,EACf,aAAa,EACb,cAAc,EACd,YAAY,EACZ,iBAAiB,EACjB,mBAAmB,EACnB,iBAAiB,GAClB,MAAM,kBAAkB,CAAC"}
|
package/lib-commonjs/index.js
CHANGED
|
@@ -1,18 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports,
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.expanderName = exports.Expander = void 0;
|
|
4
|
-
const Expander_1 = require(
|
|
5
|
-
Object.defineProperty(exports,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
|
4
|
+
const Expander_1 = require("./Expander");
|
|
5
|
+
Object.defineProperty(exports, "Expander", { enumerable: true, get: function () { return Expander_1.Expander; } });
|
|
6
|
+
const Expander_types_1 = require("./Expander.types");
|
|
7
|
+
Object.defineProperty(exports, "expanderName", { enumerable: true, get: function () { return Expander_types_1.expanderName; } });
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,29 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui-react-native/experimental-expander",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.1",
|
|
4
4
|
"description": "A cross-platform Native Expander component using the Fluent Design System. Currently only implemented on windows",
|
|
5
5
|
"homepage": "https://github.com/microsoft/fluentui-react-native",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"author": "Microsoft <fluentuinativeowners@microsoft.com>",
|
|
6
8
|
"repository": {
|
|
7
9
|
"type": "git",
|
|
8
10
|
"url": "https://github.com/microsoft/fluentui-react-native.git",
|
|
9
11
|
"directory": "packages/experimental/Expander"
|
|
10
12
|
},
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
+
"main": "lib-commonjs/index.js",
|
|
14
|
+
"module": "lib/index.js",
|
|
15
|
+
"types": "lib/index.d.ts",
|
|
13
16
|
"exports": {
|
|
14
17
|
".": {
|
|
15
18
|
"types": "./lib/index.d.ts",
|
|
16
19
|
"import": "./lib/index.js",
|
|
17
|
-
"require": "./lib-commonjs/index.js"
|
|
20
|
+
"require": "./lib-commonjs/index.js",
|
|
21
|
+
"default": "./src/index.ts"
|
|
18
22
|
}
|
|
19
23
|
},
|
|
20
|
-
"main": "lib-commonjs/index.js",
|
|
21
|
-
"module": "lib/index.js",
|
|
22
|
-
"types": "lib/index.d.ts",
|
|
23
24
|
"scripts": {
|
|
24
25
|
"build": "fluentui-scripts build",
|
|
25
26
|
"build-cjs": "tsgo --outDir lib-commonjs",
|
|
26
|
-
"build-
|
|
27
|
+
"build-core": "tsgo --outDir lib --module esnext --moduleResolution bundler",
|
|
27
28
|
"clean": "fluentui-scripts clean",
|
|
28
29
|
"depcheck": "fluentui-scripts depcheck",
|
|
29
30
|
"lint": "fluentui-scripts eslint",
|
|
@@ -35,15 +36,15 @@
|
|
|
35
36
|
"windows": "react-native run-windows"
|
|
36
37
|
},
|
|
37
38
|
"dependencies": {
|
|
38
|
-
"@fluentui-react-native/framework": "0.15.
|
|
39
|
+
"@fluentui-react-native/framework": "0.15.1"
|
|
39
40
|
},
|
|
40
41
|
"devDependencies": {
|
|
41
42
|
"@babel/core": "^7.20.0",
|
|
42
43
|
"@fluentui-react-native/babel-config": "0.1.1",
|
|
43
|
-
"@fluentui-react-native/eslint-config-rules": "0.1.
|
|
44
|
-
"@fluentui-react-native/framework-base": "0.3.
|
|
44
|
+
"@fluentui-react-native/eslint-config-rules": "0.1.2",
|
|
45
|
+
"@fluentui-react-native/framework-base": "0.3.1",
|
|
45
46
|
"@fluentui-react-native/kit-config": "0.1.2",
|
|
46
|
-
"@fluentui-react-native/scripts": "0.1.
|
|
47
|
+
"@fluentui-react-native/scripts": "0.1.0",
|
|
47
48
|
"@react-native-community/cli": "^20.0.0",
|
|
48
49
|
"@react-native-community/cli-platform-android": "^20.0.0",
|
|
49
50
|
"@react-native-community/cli-platform-ios": "^20.0.0",
|
package/src/index.ts
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
1
|
export { Expander } from './Expander';
|
|
2
2
|
export { expanderName } from './Expander.types';
|
|
3
|
-
export type {
|
|
3
|
+
export type {
|
|
4
|
+
ExpandDirection,
|
|
5
|
+
ExpanderProps,
|
|
6
|
+
ExpanderTokens,
|
|
7
|
+
ExpanderType,
|
|
8
|
+
ExpanderViewProps,
|
|
9
|
+
HorizontalAlignment,
|
|
10
|
+
VerticalAlignment,
|
|
11
|
+
} from './Expander.types';
|