@a-little-world/little-world-design-system-native 0.6.1 → 0.7.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/dist/components/Button/styles.d.ts +1 -1
- package/dist/index.esm.js +4 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +2 -2
|
@@ -24,7 +24,7 @@ export declare const getButtonTextStyles: ({ color, variation, appearance, theme
|
|
|
24
24
|
appearance: ButtonAppearance;
|
|
25
25
|
theme: any;
|
|
26
26
|
}) => TextStyle;
|
|
27
|
-
export declare const
|
|
27
|
+
export declare const STACKED_BUTTON_CSS: import("styled-components/native/dist/types").RuleSet<{
|
|
28
28
|
$appearance?: ButtonAppearance | undefined;
|
|
29
29
|
$backgroundColor?: string | undefined;
|
|
30
30
|
$color?: string | undefined;
|
package/dist/index.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useRef as useRef$1, useState as useState$1, useEffect as useEffect$1, forwardRef as forwardRef$1, useMemo as useMemo$1, createContext as createContext$1, useCallback as useCallback$1 } from 'react';
|
|
2
|
-
import { tokens, GradientTypes, GradientVariations, accountIcon, addToChatIcon, appointmentIcon, archiveIcon, arrowLeftIcon, attachmentIcon, bellIcon, calendarIcon, calendarAddIcon, callIncomingIcon, callOutgoingIcon, cameraIcon, checkIcon, checkInChatIcon, chevronDownIcon, chevronLeftIcon, chevronRightIcon, clockIcon, clockBackIcon, clockDashedIcon, closeIcon, copyIcon, dashboardIcon, dotsIcon, downloadIcon, exclamationIcon, eyeClosedIcon, eyeOpenIcon, facebookIcon, fullScreenExitIcon, fullScreenIcon, githubIcon, groupChatIcon, heartIcon, imageIcon, imageSearchIcon, inclusiveIcon, infoIcon, instagramIcon, linkedinIcon, logoutIcon, logoIcon, mailIcon, menuIcon, messageIcon, messageWithQuestionIcon, micIcon, mobileIcon, moonIcon, notesIcon, pencilIcon, phoneIcon, phoneSlashIcon, plusIcon, profileIcon, profileChatIcon, puzzleIcon, questionIcon, sendIcon, shareScreenIcon, settingsIcon, speakerIcon, stackIcon, starIcon, sunIcon, swapIcon, telegramIcon, tickDoubleIcon, tickIcon, tiktokIcon, translatorIcon, trashIcon, twitterIcon, uploadIcon, userDisconnectedIcon, userSearchIcon, videoIcon, webIcon, whatsappIcon, getTextStyle, TextTypes, fontFamilies, LoadingDimensions, LoadingSizes, LoadingType, ButtonAppearance, BUTTON_DIMENSIONS, ButtonVariations, CIRCLE_DIMENSIONS, ButtonSizes, isValidUrl, CardDimensions, InputHeight, confettiIllustration, friendshipIllustration, groupHandsIllustration, keyIllustration, livingRoomIllustration, laptopWithPhoneIllustration, manOnRocketIllustration, matchSearchingIllustration, paperPlaneIllustration, peopleTogetherIllustration, questionMarksIllustration, raisingMoneyIllustration, teacherIllustration, timeFlexibleIllustration, unmatchedIllustration, wavyBlockIllustration, wavyLinesIllustration, womanOnRocketIllustration, brokenChainIllustration, PopoverSizes, calculateProgress, TagSizes, TagAppearance, InputWidth, ThemeVariants, defaultThemeVariant } from '@a-little-world/little-world-design-system-core';
|
|
2
|
+
import { tokens, GradientTypes, GradientVariations, accountIcon, addToChatIcon, appointmentIcon, archiveIcon, arrowLeftIcon, attachmentIcon, bellIcon, calendarIcon, calendarAddIcon, callIncomingIcon, callOutgoingIcon, cameraIcon, checkIcon, checkInChatIcon, chevronDownIcon, chevronLeftIcon, chevronRightIcon, clockIcon, clockBackIcon, clockDashedIcon, closeIcon, copyIcon, dashboardIcon, dotsIcon, downloadIcon, exclamationIcon, eyeClosedIcon, eyeOpenIcon, facebookIcon, fullScreenExitIcon, fullScreenIcon, githubIcon, groupChatIcon, heartIcon, imageIcon, imageSearchIcon, inclusiveIcon, infoIcon, instagramIcon, linkedinIcon, logoutIcon, logoIcon, mailIcon, menuIcon, messageIcon, messageWithQuestionIcon, micIcon, mobileIcon, moonIcon, notesIcon, pencilIcon, phoneIcon, phoneSlashIcon, plusIcon, profileIcon, profileChatIcon, puzzleIcon, questionIcon, sendIcon, shareScreenIcon, settingsIcon, speakerIcon, stackIcon, starIcon, sunIcon, swapIcon, telegramIcon, tickDoubleIcon, tickIcon, tiktokIcon, translatorIcon, trashIcon, twitterIcon, uploadIcon, userDisconnectedIcon, userSearchIcon, videoIcon, webIcon, whatsappIcon, getTextStyle, TextTypes, fontFamilies, LoadingDimensions, LoadingSizes, LoadingType, ButtonAppearance, BUTTON_DIMENSIONS, ButtonVariations, CIRCLE_DIMENSIONS, ButtonSizes, isValidUrl, CardDimensions, CardSizes, InputHeight, confettiIllustration, friendshipIllustration, groupHandsIllustration, keyIllustration, livingRoomIllustration, laptopWithPhoneIllustration, manOnRocketIllustration, matchSearchingIllustration, paperPlaneIllustration, peopleTogetherIllustration, questionMarksIllustration, raisingMoneyIllustration, teacherIllustration, timeFlexibleIllustration, unmatchedIllustration, wavyBlockIllustration, wavyLinesIllustration, womanOnRocketIllustration, brokenChainIllustration, PopoverSizes, calculateProgress, TagSizes, TagAppearance, InputWidth, ThemeVariants, defaultThemeVariant } from '@a-little-world/little-world-design-system-core';
|
|
3
3
|
export { LoadingSizes, LoadingType } from '@a-little-world/little-world-design-system-core';
|
|
4
4
|
import { View, Text as Text$1, StyleSheet, Animated, Easing, Pressable, Linking, ScrollView, TextInput as TextInput$1 } from 'react-native';
|
|
5
5
|
import styled, { useTheme, css, ThemeProvider } from 'styled-components/native';
|
|
@@ -1039,7 +1039,7 @@ const getButtonStyles = ({
|
|
|
1039
1039
|
padding: 0
|
|
1040
1040
|
});
|
|
1041
1041
|
}
|
|
1042
|
-
if (variation === ButtonVariations.
|
|
1042
|
+
if (variation === ButtonVariations.Stacked) {
|
|
1043
1043
|
return Object.assign(Object.assign({}, baseStyles), {
|
|
1044
1044
|
backgroundColor: backgroundColor || theme.color.surface.secondary,
|
|
1045
1045
|
borderWidth: 1,
|
|
@@ -1097,7 +1097,7 @@ const getButtonTextStyles = ({
|
|
|
1097
1097
|
fontWeight: '700',
|
|
1098
1098
|
textAlign: 'center'
|
|
1099
1099
|
};
|
|
1100
|
-
if (variation === ButtonVariations.
|
|
1100
|
+
if (variation === ButtonVariations.Stacked) {
|
|
1101
1101
|
return Object.assign(Object.assign({}, baseStyles), {
|
|
1102
1102
|
color: color || theme.color.text.primary,
|
|
1103
1103
|
fontWeight: 'normal'
|
|
@@ -1705,7 +1705,7 @@ const getCardStyles = ({
|
|
|
1705
1705
|
maxHeight: '100%',
|
|
1706
1706
|
flexDirection: 'column',
|
|
1707
1707
|
padding: theme.spacing.small
|
|
1708
|
-
}, width && {
|
|
1708
|
+
}, width && width !== CardSizes.FullWidth && {
|
|
1709
1709
|
width: CardDimensions[width]
|
|
1710
1710
|
}), height && {
|
|
1711
1711
|
height
|