@utilitywarehouse/hearth-react-native 0.8.2 → 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/.turbo/turbo-build.log +1 -1
- package/.turbo/turbo-lint.log +1 -1
- package/CHANGELOG.md +8 -0
- package/build/components/Banner/Banner.js +25 -6
- package/build/components/Banner/Banner.props.d.ts +2 -2
- package/build/components/BottomSheet/BottomSheetHandle.js +8 -0
- package/build/components/Menu/Menu.context.d.ts +5 -0
- package/build/components/Menu/Menu.context.js +9 -0
- package/build/components/Menu/Menu.d.ts +4 -0
- package/build/components/Menu/Menu.js +25 -0
- package/build/components/Menu/Menu.props.d.ts +21 -0
- package/build/components/Menu/Menu.props.js +1 -0
- package/build/components/Menu/MenuItem.d.ts +18 -0
- package/build/components/Menu/MenuItem.js +115 -0
- package/build/components/Menu/MenuItem.props.d.ts +27 -0
- package/build/components/Menu/MenuItem.props.js +1 -0
- package/build/components/Menu/MenuTrigger.d.ts +9 -0
- package/build/components/Menu/MenuTrigger.js +11 -0
- package/build/components/Menu/MenuTrigger.props.d.ts +12 -0
- package/build/components/Menu/MenuTrigger.props.js +1 -0
- package/build/components/Menu/index.d.ts +7 -0
- package/build/components/Menu/index.js +4 -0
- package/build/components/Modal/Modal.d.ts +1 -1
- package/build/components/Modal/Modal.js +32 -30
- package/build/components/Modal/Modal.props.d.ts +1 -0
- package/build/components/Modal/Modal.web.d.ts +1 -1
- package/build/components/Modal/Modal.web.js +25 -25
- package/build/components/index.d.ts +1 -0
- package/build/components/index.js +1 -0
- package/build/tokens/components/dark/index.d.ts +3 -1
- package/build/tokens/components/dark/index.js +3 -1
- package/build/tokens/components/dark/input.d.ts +3 -0
- package/build/tokens/components/dark/input.js +3 -0
- package/build/tokens/components/dark/modal.d.ts +7 -4
- package/build/tokens/components/dark/modal.js +7 -4
- package/build/tokens/components/dark/rating.d.ts +8 -0
- package/build/tokens/components/dark/rating.js +7 -0
- package/build/tokens/components/dark/table.d.ts +0 -3
- package/build/tokens/components/dark/table.js +0 -3
- package/build/tokens/components/dark/time-picker.d.ts +29 -0
- package/build/tokens/components/dark/time-picker.js +28 -0
- package/build/tokens/components/dark/timeline.d.ts +27 -0
- package/build/tokens/components/dark/timeline.js +26 -0
- package/build/tokens/components/light/index.d.ts +3 -1
- package/build/tokens/components/light/index.js +3 -1
- package/build/tokens/components/light/input.d.ts +3 -0
- package/build/tokens/components/light/input.js +3 -0
- package/build/tokens/components/light/modal.d.ts +7 -4
- package/build/tokens/components/light/modal.js +7 -4
- package/build/tokens/components/light/rating.d.ts +8 -0
- package/build/tokens/components/light/rating.js +7 -0
- package/build/tokens/components/light/table.d.ts +0 -3
- package/build/tokens/components/light/table.js +0 -3
- package/build/tokens/components/light/time-picker.d.ts +29 -0
- package/build/tokens/components/light/time-picker.js +28 -0
- package/build/tokens/components/light/timeline.d.ts +27 -0
- package/build/tokens/components/light/timeline.js +26 -0
- package/docs/components/AllComponents.web.tsx +33 -0
- package/docs/components/BackToTopButton.tsx +1 -1
- package/package.json +2 -2
- package/src/components/Banner/Banner.docs.mdx +19 -10
- package/src/components/Banner/Banner.props.ts +2 -2
- package/src/components/Banner/Banner.stories.tsx +1 -4
- package/src/components/Banner/Banner.tsx +47 -7
- package/src/components/BottomSheet/BottomSheetHandle.tsx +12 -0
- package/src/components/DatePickerInput/DatePickerInput.docs.mdx +1 -1
- package/src/components/Menu/Menu.context.ts +15 -0
- package/src/components/Menu/Menu.docs.mdx +158 -0
- package/src/components/Menu/Menu.props.ts +24 -0
- package/src/components/Menu/Menu.stories.tsx +292 -0
- package/src/components/Menu/Menu.tsx +54 -0
- package/src/components/Menu/MenuItem.props.ts +29 -0
- package/src/components/Menu/MenuItem.tsx +145 -0
- package/src/components/Menu/MenuTrigger.props.ts +14 -0
- package/src/components/Menu/MenuTrigger.tsx +20 -0
- package/src/components/Menu/index.ts +7 -0
- package/src/components/Modal/Modal.docs.mdx +34 -5
- package/src/components/Modal/Modal.props.ts +1 -0
- package/src/components/Modal/Modal.stories.tsx +46 -0
- package/src/components/Modal/Modal.tsx +37 -33
- package/src/components/Modal/Modal.web.tsx +27 -27
- package/src/components/index.ts +1 -0
- package/src/tokens/components/dark/index.ts +3 -1
- package/src/tokens/components/dark/input.ts +3 -0
- package/src/tokens/components/dark/modal.ts +7 -4
- package/src/tokens/components/dark/rating.ts +8 -0
- package/src/tokens/components/dark/table.ts +0 -3
- package/src/tokens/components/dark/time-picker.ts +29 -0
- package/src/tokens/components/dark/timeline.ts +27 -0
- package/src/tokens/components/light/index.ts +3 -1
- package/src/tokens/components/light/input.ts +3 -0
- package/src/tokens/components/light/modal.ts +7 -4
- package/src/tokens/components/light/rating.ts +8 -0
- package/src/tokens/components/light/table.ts +0 -3
- package/src/tokens/components/light/time-picker.ts +29 -0
- package/src/tokens/components/light/timeline.ts +27 -0
- package/build/tokens/components/dark/dialog.d.ts +0 -25
- package/build/tokens/components/dark/dialog.js +0 -24
- package/build/tokens/components/light/dialog.d.ts +0 -25
- package/build/tokens/components/light/dialog.js +0 -24
- package/src/tokens/components/dark/dialog.ts +0 -25
- package/src/tokens/components/light/dialog.ts +0 -25
|
@@ -12,7 +12,7 @@ import { Button } from '../Button';
|
|
|
12
12
|
import { Heading } from '../Heading';
|
|
13
13
|
import { Spinner } from '../Spinner';
|
|
14
14
|
import { UnstyledIconButton } from '../UnstyledIconButton';
|
|
15
|
-
const Modal = ({ ref, children, heading, description, showCloseButton = true, primaryButtonText, secondaryButtonText, onPressPrimaryButton, onPressCloseButton, onPressSecondaryButton, closeOnPrimaryButtonPress = true, closeOnSecondaryButtonPress = true, loading, image, primaryButtonProps, secondaryButtonProps, closeButtonProps,
|
|
15
|
+
const Modal = ({ ref, children, heading, description, showCloseButton = true, primaryButtonText, secondaryButtonText, onPressPrimaryButton, onPressCloseButton, onPressSecondaryButton, closeOnPrimaryButtonPress = true, closeOnSecondaryButtonPress = true, loading, image, primaryButtonProps, secondaryButtonProps, closeButtonProps, inNavModal = false, ...props }) => {
|
|
16
16
|
const bottomSheetModalRef = useRef(null);
|
|
17
17
|
const viewRef = useRef(null);
|
|
18
18
|
const scrollViewRef = useRef(null);
|
|
@@ -20,7 +20,7 @@ const Modal = ({ ref, children, heading, description, showCloseButton = true, pr
|
|
|
20
20
|
const backgroundOpacity = useSharedValue(0);
|
|
21
21
|
const pretendContentTranslateY = useSharedValue(20);
|
|
22
22
|
const triggerCloseAnimation = useCallback(() => {
|
|
23
|
-
if (Platform.OS === 'android' &&
|
|
23
|
+
if (Platform.OS === 'android' && inNavModal) {
|
|
24
24
|
pretendContentTranslateY.value = withTiming(20, {
|
|
25
25
|
duration: 50,
|
|
26
26
|
easing: Easing.in(Easing.quad),
|
|
@@ -30,14 +30,14 @@ const Modal = ({ ref, children, heading, description, showCloseButton = true, pr
|
|
|
30
30
|
easing: Easing.in(Easing.quad),
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
|
-
}, [Platform.OS,
|
|
33
|
+
}, [Platform.OS, inNavModal, pretendContentTranslateY, backgroundOpacity]);
|
|
34
34
|
useImperativeHandle(ref, () => ({
|
|
35
35
|
...bottomSheetModalRef.current,
|
|
36
36
|
triggerCloseAnimation,
|
|
37
37
|
}));
|
|
38
|
-
// Trigger animations on render for
|
|
38
|
+
// Trigger animations on render for inNavModal Android modal
|
|
39
39
|
useEffect(() => {
|
|
40
|
-
if (Platform.OS === 'android' &&
|
|
40
|
+
if (Platform.OS === 'android' && inNavModal) {
|
|
41
41
|
backgroundOpacity.value = withDelay(300, withTiming(1, {
|
|
42
42
|
duration: 200,
|
|
43
43
|
easing: Easing.out(Easing.quad),
|
|
@@ -47,11 +47,11 @@ const Modal = ({ ref, children, heading, description, showCloseButton = true, pr
|
|
|
47
47
|
easing: Easing.out(Easing.quad),
|
|
48
48
|
}));
|
|
49
49
|
}
|
|
50
|
-
}, [
|
|
50
|
+
}, [inNavModal, backgroundOpacity, pretendContentTranslateY]);
|
|
51
51
|
const animatedBackgroundStyle = useAnimatedStyle(() => ({
|
|
52
52
|
backgroundColor: hexWithOpacity(theme.components.overlay.backgroundColor, backgroundOpacity.value * (theme.components.overlay.opacity / 100)),
|
|
53
53
|
}));
|
|
54
|
-
const
|
|
54
|
+
const animatedInNavModalStyle = useAnimatedStyle(() => ({
|
|
55
55
|
backgroundColor: hexWithOpacity(theme.components.overlay.backgroundColor, backgroundOpacity.value * (theme.components.overlay.opacity / 100)),
|
|
56
56
|
}));
|
|
57
57
|
const animatedPretendContentStyle = useAnimatedStyle(() => ({
|
|
@@ -98,20 +98,20 @@ const Modal = ({ ref, children, heading, description, showCloseButton = true, pr
|
|
|
98
98
|
}
|
|
99
99
|
};
|
|
100
100
|
const content = (_jsx(_Fragment, { children: loading ? (_jsxs(View, { style: styles.loadingContainer, accessible: Platform.OS === 'android' ? true : undefined, accessibilityLabel: Platform.OS === 'android' ? 'Loading' : undefined, screenReaderFocusable: true, ref: viewRef, children: [_jsx(Spinner, { size: "lg" }), _jsx(Heading, { size: "lg", textAlign: "center", children: "Loading..." })] })) : (_jsxs(View, { style: styles.container, accessible: Platform.OS === 'android' ? true : undefined, accessibilityLabel: Platform.OS === 'android' ? 'Modal content' : undefined, screenReaderFocusable: true, ref: viewRef, children: [_jsxs(View, { style: styles.header, children: [_jsxs(View, { style: styles.headerTextContent, children: [heading && !image ? (_jsx(Heading, { size: "lg", accessible: true, children: heading })) : null, description && !image ? _jsx(BodyText, { accessible: true, children: description }) : null] }), showCloseButton ? (_jsx(UnstyledIconButton, { icon: CloseMediumIcon, onPress: handleCloseButtonPress, accessibilityLabel: "Close modal", ...closeButtonProps })) : null] }), image ? (_jsxs(View, { style: styles.imageContainer, children: [_jsx(Image, { style: styles.image, ...image }), _jsxs(View, { style: styles.textContent, children: [heading ? (_jsx(Heading, { size: "lg", textAlign: "center", accessible: true, children: heading })) : null, description ? (_jsx(BodyText, { textAlign: "center", accessible: true, children: description })) : null] })] })) : null, children, _jsxs(View, { style: styles.footer, children: [onPressPrimaryButton && primaryButtonText ? (_jsx(Button, { onPress: handlePrimaryButtonPress, text: primaryButtonText, ...primaryButtonProps, variant: primaryButtonProps?.variant ?? 'solid', colorScheme: primaryButtonProps?.colorScheme ?? 'highlight' })) : null, onPressSecondaryButton && secondaryButtonText ? (_jsx(Button, { onPress: handleSecondaryButtonPress, text: secondaryButtonText, ...secondaryButtonProps, variant: secondaryButtonProps?.variant ?? 'outline', colorScheme: secondaryButtonProps?.colorScheme ?? 'functional' })) : null] })] })) }));
|
|
101
|
-
return
|
|
101
|
+
return inNavModal ? (_jsxs(View, { style: { flex: 1, backgroundColor: theme.color.background.primary }, children: [Platform.OS === 'android' ? (_jsx(Animated.View, { style: [styles.androidContainer, animatedBackgroundStyle], children: _jsx(Animated.View, { style: [styles.pretendContent, animatedPretendContentStyle] }) })) : null, _jsx(Animated.View, { style: [styles.inNavModalContainer, Platform.OS === 'android' && animatedInNavModalStyle], children: _jsx(View, { style: styles.inNavModalContent, children: content }) })] })) : (_jsx(BottomSheetModal, { ref: bottomSheetModalRef, enableDynamicSizing: true, snapPoints: image ? ['90%'] : props.snapPoints, showHandle: typeof loading !== 'undefined' && loading ? false : props.showHandle, accessible: false, ...props, onChange: handleChange, children: _jsx(BottomSheetScrollView, { contentContainerStyle: styles.container, ref: scrollViewRef, children: content }) }));
|
|
102
102
|
};
|
|
103
103
|
const styles = StyleSheet.create((theme, rt) => ({
|
|
104
104
|
container: {
|
|
105
105
|
flex: 1,
|
|
106
|
-
gap: theme.components.
|
|
106
|
+
gap: theme.components.modal.gap,
|
|
107
107
|
},
|
|
108
108
|
header: {
|
|
109
109
|
flexDirection: 'row',
|
|
110
|
-
gap: theme.components.
|
|
110
|
+
gap: theme.components.modal.gap,
|
|
111
111
|
},
|
|
112
112
|
headerTextContent: {
|
|
113
113
|
flex: 1,
|
|
114
|
-
gap: theme.components.
|
|
114
|
+
gap: theme.components.modal.content.gap,
|
|
115
115
|
},
|
|
116
116
|
image: {
|
|
117
117
|
width: 260,
|
|
@@ -123,40 +123,40 @@ const styles = StyleSheet.create((theme, rt) => ({
|
|
|
123
123
|
flex: 1,
|
|
124
124
|
},
|
|
125
125
|
textContent: {
|
|
126
|
-
gap: theme.components.
|
|
126
|
+
gap: theme.components.modal.content.gap,
|
|
127
127
|
},
|
|
128
128
|
loadingContainer: {
|
|
129
129
|
flex: 1,
|
|
130
130
|
alignItems: 'center',
|
|
131
131
|
justifyContent: 'center',
|
|
132
132
|
minHeight: 140,
|
|
133
|
-
gap: theme.components.
|
|
133
|
+
gap: theme.components.modal.content.gap,
|
|
134
134
|
},
|
|
135
135
|
footer: {
|
|
136
|
-
gap: theme.components.
|
|
136
|
+
gap: theme.components.modal.action.gap,
|
|
137
137
|
},
|
|
138
|
-
|
|
138
|
+
inNavModalContainer: {
|
|
139
139
|
flex: 1,
|
|
140
140
|
...(Platform.OS === 'ios' ? { backgroundColor: theme.components.overlay.backgroundColor } : {}),
|
|
141
141
|
},
|
|
142
|
-
|
|
142
|
+
inNavModalContent: {
|
|
143
143
|
flex: 1,
|
|
144
|
-
borderTopLeftRadius: theme.components.
|
|
145
|
-
borderTopRightRadius: theme.components.
|
|
144
|
+
borderTopLeftRadius: theme.components.modal.borderRadius,
|
|
145
|
+
borderTopRightRadius: theme.components.modal.borderRadius,
|
|
146
146
|
backgroundColor: theme.color.surface.neutral.strong,
|
|
147
|
-
gap: theme.components.
|
|
148
|
-
padding: theme.components.
|
|
149
|
-
paddingBottom: theme.components.
|
|
147
|
+
gap: theme.components.modal.gap,
|
|
148
|
+
padding: theme.components.modal.padding,
|
|
149
|
+
paddingBottom: theme.components.modal.padding + rt.insets.bottom,
|
|
150
150
|
},
|
|
151
151
|
androidContainer: {
|
|
152
152
|
height: rt.insets.top + 18,
|
|
153
|
-
paddingLeft: theme.components.
|
|
154
|
-
paddingRight: theme.components.
|
|
153
|
+
paddingLeft: theme.components.modal.padding,
|
|
154
|
+
paddingRight: theme.components.modal.padding,
|
|
155
155
|
justifyContent: 'flex-end',
|
|
156
156
|
},
|
|
157
157
|
pretendContent: {
|
|
158
|
-
borderTopLeftRadius: theme.components.
|
|
159
|
-
borderTopRightRadius: theme.components.
|
|
158
|
+
borderTopLeftRadius: theme.components.modal.borderRadius,
|
|
159
|
+
borderTopRightRadius: theme.components.modal.borderRadius,
|
|
160
160
|
height: 12,
|
|
161
161
|
backgroundColor: theme.components.parts.modalStack.backgroundColorCardTop,
|
|
162
162
|
},
|
|
@@ -17,7 +17,6 @@ export { default as carouselControl } from './carousel-control';
|
|
|
17
17
|
export { default as checkbox } from './checkbox';
|
|
18
18
|
export { default as datePicker } from './date-picker';
|
|
19
19
|
export { default as descriptionList } from './description-list';
|
|
20
|
-
export { default as dialog } from './dialog';
|
|
21
20
|
export { default as divider } from './divider';
|
|
22
21
|
export { default as drawer } from './drawer';
|
|
23
22
|
export { default as expandableCard } from './expandable-card';
|
|
@@ -40,6 +39,7 @@ export { default as pill } from './pill';
|
|
|
40
39
|
export { default as progressBar } from './progress-bar';
|
|
41
40
|
export { default as progressStepper } from './progress-stepper';
|
|
42
41
|
export { default as radio } from './radio';
|
|
42
|
+
export { default as rating } from './rating';
|
|
43
43
|
export { default as sectionHeader } from './section-header';
|
|
44
44
|
export { default as segmentedControl } from './segmented-control';
|
|
45
45
|
export { default as select } from './select';
|
|
@@ -48,6 +48,8 @@ export { default as spinner } from './spinner';
|
|
|
48
48
|
export { default as switch } from './switch';
|
|
49
49
|
export { default as table } from './table';
|
|
50
50
|
export { default as tabs } from './tabs';
|
|
51
|
+
export { default as timePicker } from './time-picker';
|
|
52
|
+
export { default as timeline } from './timeline';
|
|
51
53
|
export { default as toast } from './toast';
|
|
52
54
|
export { default as toggleButton } from './toggle-button';
|
|
53
55
|
export { default as tooltip } from './tooltip';
|
|
@@ -17,7 +17,6 @@ export { default as carouselControl } from './carousel-control';
|
|
|
17
17
|
export { default as checkbox } from './checkbox';
|
|
18
18
|
export { default as datePicker } from './date-picker';
|
|
19
19
|
export { default as descriptionList } from './description-list';
|
|
20
|
-
export { default as dialog } from './dialog';
|
|
21
20
|
export { default as divider } from './divider';
|
|
22
21
|
export { default as drawer } from './drawer';
|
|
23
22
|
export { default as expandableCard } from './expandable-card';
|
|
@@ -40,6 +39,7 @@ export { default as pill } from './pill';
|
|
|
40
39
|
export { default as progressBar } from './progress-bar';
|
|
41
40
|
export { default as progressStepper } from './progress-stepper';
|
|
42
41
|
export { default as radio } from './radio';
|
|
42
|
+
export { default as rating } from './rating';
|
|
43
43
|
export { default as sectionHeader } from './section-header';
|
|
44
44
|
export { default as segmentedControl } from './segmented-control';
|
|
45
45
|
export { default as select } from './select';
|
|
@@ -48,6 +48,8 @@ export { default as spinner } from './spinner';
|
|
|
48
48
|
export { default as switch } from './switch';
|
|
49
49
|
export { default as table } from './table';
|
|
50
50
|
export { default as tabs } from './tabs';
|
|
51
|
+
export { default as timePicker } from './time-picker';
|
|
52
|
+
export { default as timeline } from './timeline';
|
|
51
53
|
export { default as toast } from './toast';
|
|
52
54
|
export { default as toggleButton } from './toggle-button';
|
|
53
55
|
export { default as tooltip } from './tooltip';
|
|
@@ -10,17 +10,20 @@ declare const _default: {
|
|
|
10
10
|
readonly gap: 12;
|
|
11
11
|
};
|
|
12
12
|
readonly gap: 24;
|
|
13
|
-
readonly
|
|
13
|
+
readonly heading: {
|
|
14
|
+
readonly gap: 24;
|
|
15
|
+
};
|
|
16
|
+
readonly illustration: {
|
|
17
|
+
readonly padding: 48;
|
|
18
|
+
};
|
|
19
|
+
readonly padding: 24;
|
|
14
20
|
readonly mobile: {
|
|
15
|
-
readonly padding: 16;
|
|
16
21
|
readonly width: 360;
|
|
17
22
|
};
|
|
18
23
|
readonly tablet: {
|
|
19
|
-
readonly padding: 48;
|
|
20
24
|
readonly width: 504;
|
|
21
25
|
};
|
|
22
26
|
readonly desktop: {
|
|
23
|
-
readonly padding: 48;
|
|
24
27
|
readonly width: 680;
|
|
25
28
|
};
|
|
26
29
|
};
|
|
@@ -10,17 +10,20 @@ export default {
|
|
|
10
10
|
gap: 12,
|
|
11
11
|
},
|
|
12
12
|
gap: 24,
|
|
13
|
-
|
|
13
|
+
heading: {
|
|
14
|
+
gap: 24,
|
|
15
|
+
},
|
|
16
|
+
illustration: {
|
|
17
|
+
padding: 48,
|
|
18
|
+
},
|
|
19
|
+
padding: 24,
|
|
14
20
|
mobile: {
|
|
15
|
-
padding: 16,
|
|
16
21
|
width: 360,
|
|
17
22
|
},
|
|
18
23
|
tablet: {
|
|
19
|
-
padding: 48,
|
|
20
24
|
width: 504,
|
|
21
25
|
},
|
|
22
26
|
desktop: {
|
|
23
|
-
padding: 48,
|
|
24
27
|
width: 680,
|
|
25
28
|
},
|
|
26
29
|
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Do not edit directly, this file was auto-generated.
|
|
3
|
+
*/
|
|
4
|
+
declare const _default: {
|
|
5
|
+
readonly gap: 6;
|
|
6
|
+
readonly gapContainer: 4;
|
|
7
|
+
readonly minWidth: 288;
|
|
8
|
+
readonly paddingHorizontal: 16;
|
|
9
|
+
readonly paddingVertical: 12;
|
|
10
|
+
readonly time: {
|
|
11
|
+
readonly columnGap: 4;
|
|
12
|
+
readonly content: {
|
|
13
|
+
readonly gap: 8;
|
|
14
|
+
readonly item: {
|
|
15
|
+
readonly gap: 2;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
readonly footer: {
|
|
19
|
+
readonly gap: 8;
|
|
20
|
+
};
|
|
21
|
+
readonly gap: 16;
|
|
22
|
+
readonly item: {
|
|
23
|
+
readonly height: 40;
|
|
24
|
+
readonly width: 64;
|
|
25
|
+
};
|
|
26
|
+
readonly rowGap: 2;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
export default _default;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Do not edit directly, this file was auto-generated.
|
|
3
|
+
*/
|
|
4
|
+
export default {
|
|
5
|
+
gap: 6,
|
|
6
|
+
gapContainer: 4,
|
|
7
|
+
minWidth: 288,
|
|
8
|
+
paddingHorizontal: 16,
|
|
9
|
+
paddingVertical: 12,
|
|
10
|
+
time: {
|
|
11
|
+
columnGap: 4,
|
|
12
|
+
content: {
|
|
13
|
+
gap: 8,
|
|
14
|
+
item: {
|
|
15
|
+
gap: 2,
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
footer: {
|
|
19
|
+
gap: 8,
|
|
20
|
+
},
|
|
21
|
+
gap: 16,
|
|
22
|
+
item: {
|
|
23
|
+
height: 40,
|
|
24
|
+
width: 64,
|
|
25
|
+
},
|
|
26
|
+
rowGap: 2,
|
|
27
|
+
},
|
|
28
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Do not edit directly, this file was auto-generated.
|
|
3
|
+
*/
|
|
4
|
+
declare const _default: {
|
|
5
|
+
readonly bar: {
|
|
6
|
+
readonly width: 2;
|
|
7
|
+
};
|
|
8
|
+
readonly content: {
|
|
9
|
+
readonly gap: 8;
|
|
10
|
+
readonly paddingBottom: 24;
|
|
11
|
+
readonly paddingTop: 2;
|
|
12
|
+
};
|
|
13
|
+
readonly gap: 12;
|
|
14
|
+
readonly progress: {
|
|
15
|
+
readonly circle: {
|
|
16
|
+
readonly height: 24;
|
|
17
|
+
readonly width: 24;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
readonly static: {
|
|
21
|
+
readonly circle: {
|
|
22
|
+
readonly height: 12;
|
|
23
|
+
readonly width: 12;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export default _default;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Do not edit directly, this file was auto-generated.
|
|
3
|
+
*/
|
|
4
|
+
export default {
|
|
5
|
+
bar: {
|
|
6
|
+
width: 2,
|
|
7
|
+
},
|
|
8
|
+
content: {
|
|
9
|
+
gap: 8,
|
|
10
|
+
paddingBottom: 24,
|
|
11
|
+
paddingTop: 2,
|
|
12
|
+
},
|
|
13
|
+
gap: 12,
|
|
14
|
+
progress: {
|
|
15
|
+
circle: {
|
|
16
|
+
height: 24,
|
|
17
|
+
width: 24,
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
static: {
|
|
21
|
+
circle: {
|
|
22
|
+
height: 12,
|
|
23
|
+
width: 12,
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
};
|
|
@@ -17,7 +17,6 @@ export { default as carouselControl } from './carousel-control';
|
|
|
17
17
|
export { default as checkbox } from './checkbox';
|
|
18
18
|
export { default as datePicker } from './date-picker';
|
|
19
19
|
export { default as descriptionList } from './description-list';
|
|
20
|
-
export { default as dialog } from './dialog';
|
|
21
20
|
export { default as divider } from './divider';
|
|
22
21
|
export { default as drawer } from './drawer';
|
|
23
22
|
export { default as expandableCard } from './expandable-card';
|
|
@@ -40,6 +39,7 @@ export { default as pill } from './pill';
|
|
|
40
39
|
export { default as progressBar } from './progress-bar';
|
|
41
40
|
export { default as progressStepper } from './progress-stepper';
|
|
42
41
|
export { default as radio } from './radio';
|
|
42
|
+
export { default as rating } from './rating';
|
|
43
43
|
export { default as sectionHeader } from './section-header';
|
|
44
44
|
export { default as segmentedControl } from './segmented-control';
|
|
45
45
|
export { default as select } from './select';
|
|
@@ -48,6 +48,8 @@ export { default as spinner } from './spinner';
|
|
|
48
48
|
export { default as switch } from './switch';
|
|
49
49
|
export { default as table } from './table';
|
|
50
50
|
export { default as tabs } from './tabs';
|
|
51
|
+
export { default as timePicker } from './time-picker';
|
|
52
|
+
export { default as timeline } from './timeline';
|
|
51
53
|
export { default as toast } from './toast';
|
|
52
54
|
export { default as toggleButton } from './toggle-button';
|
|
53
55
|
export { default as tooltip } from './tooltip';
|
|
@@ -17,7 +17,6 @@ export { default as carouselControl } from './carousel-control';
|
|
|
17
17
|
export { default as checkbox } from './checkbox';
|
|
18
18
|
export { default as datePicker } from './date-picker';
|
|
19
19
|
export { default as descriptionList } from './description-list';
|
|
20
|
-
export { default as dialog } from './dialog';
|
|
21
20
|
export { default as divider } from './divider';
|
|
22
21
|
export { default as drawer } from './drawer';
|
|
23
22
|
export { default as expandableCard } from './expandable-card';
|
|
@@ -40,6 +39,7 @@ export { default as pill } from './pill';
|
|
|
40
39
|
export { default as progressBar } from './progress-bar';
|
|
41
40
|
export { default as progressStepper } from './progress-stepper';
|
|
42
41
|
export { default as radio } from './radio';
|
|
42
|
+
export { default as rating } from './rating';
|
|
43
43
|
export { default as sectionHeader } from './section-header';
|
|
44
44
|
export { default as segmentedControl } from './segmented-control';
|
|
45
45
|
export { default as select } from './select';
|
|
@@ -48,6 +48,8 @@ export { default as spinner } from './spinner';
|
|
|
48
48
|
export { default as switch } from './switch';
|
|
49
49
|
export { default as table } from './table';
|
|
50
50
|
export { default as tabs } from './tabs';
|
|
51
|
+
export { default as timePicker } from './time-picker';
|
|
52
|
+
export { default as timeline } from './timeline';
|
|
51
53
|
export { default as toast } from './toast';
|
|
52
54
|
export { default as toggleButton } from './toggle-button';
|
|
53
55
|
export { default as tooltip } from './tooltip';
|
|
@@ -10,17 +10,20 @@ declare const _default: {
|
|
|
10
10
|
readonly gap: 12;
|
|
11
11
|
};
|
|
12
12
|
readonly gap: 24;
|
|
13
|
-
readonly
|
|
13
|
+
readonly heading: {
|
|
14
|
+
readonly gap: 24;
|
|
15
|
+
};
|
|
16
|
+
readonly illustration: {
|
|
17
|
+
readonly padding: 48;
|
|
18
|
+
};
|
|
19
|
+
readonly padding: 24;
|
|
14
20
|
readonly mobile: {
|
|
15
|
-
readonly padding: 16;
|
|
16
21
|
readonly width: 360;
|
|
17
22
|
};
|
|
18
23
|
readonly tablet: {
|
|
19
|
-
readonly padding: 48;
|
|
20
24
|
readonly width: 504;
|
|
21
25
|
};
|
|
22
26
|
readonly desktop: {
|
|
23
|
-
readonly padding: 48;
|
|
24
27
|
readonly width: 680;
|
|
25
28
|
};
|
|
26
29
|
};
|
|
@@ -10,17 +10,20 @@ export default {
|
|
|
10
10
|
gap: 12,
|
|
11
11
|
},
|
|
12
12
|
gap: 24,
|
|
13
|
-
|
|
13
|
+
heading: {
|
|
14
|
+
gap: 24,
|
|
15
|
+
},
|
|
16
|
+
illustration: {
|
|
17
|
+
padding: 48,
|
|
18
|
+
},
|
|
19
|
+
padding: 24,
|
|
14
20
|
mobile: {
|
|
15
|
-
padding: 16,
|
|
16
21
|
width: 360,
|
|
17
22
|
},
|
|
18
23
|
tablet: {
|
|
19
|
-
padding: 48,
|
|
20
24
|
width: 504,
|
|
21
25
|
},
|
|
22
26
|
desktop: {
|
|
23
|
-
padding: 48,
|
|
24
27
|
width: 680,
|
|
25
28
|
},
|
|
26
29
|
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Do not edit directly, this file was auto-generated.
|
|
3
|
+
*/
|
|
4
|
+
declare const _default: {
|
|
5
|
+
readonly gap: 6;
|
|
6
|
+
readonly gapContainer: 4;
|
|
7
|
+
readonly minWidth: 288;
|
|
8
|
+
readonly paddingHorizontal: 16;
|
|
9
|
+
readonly paddingVertical: 12;
|
|
10
|
+
readonly time: {
|
|
11
|
+
readonly columnGap: 4;
|
|
12
|
+
readonly content: {
|
|
13
|
+
readonly gap: 8;
|
|
14
|
+
readonly item: {
|
|
15
|
+
readonly gap: 2;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
readonly footer: {
|
|
19
|
+
readonly gap: 8;
|
|
20
|
+
};
|
|
21
|
+
readonly gap: 16;
|
|
22
|
+
readonly item: {
|
|
23
|
+
readonly height: 40;
|
|
24
|
+
readonly width: 64;
|
|
25
|
+
};
|
|
26
|
+
readonly rowGap: 2;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
export default _default;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Do not edit directly, this file was auto-generated.
|
|
3
|
+
*/
|
|
4
|
+
export default {
|
|
5
|
+
gap: 6,
|
|
6
|
+
gapContainer: 4,
|
|
7
|
+
minWidth: 288,
|
|
8
|
+
paddingHorizontal: 16,
|
|
9
|
+
paddingVertical: 12,
|
|
10
|
+
time: {
|
|
11
|
+
columnGap: 4,
|
|
12
|
+
content: {
|
|
13
|
+
gap: 8,
|
|
14
|
+
item: {
|
|
15
|
+
gap: 2,
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
footer: {
|
|
19
|
+
gap: 8,
|
|
20
|
+
},
|
|
21
|
+
gap: 16,
|
|
22
|
+
item: {
|
|
23
|
+
height: 40,
|
|
24
|
+
width: 64,
|
|
25
|
+
},
|
|
26
|
+
rowGap: 2,
|
|
27
|
+
},
|
|
28
|
+
};
|