@hero-design/rn 8.53.0 → 8.55.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/.eslintrc.js +0 -1
- package/.turbo/turbo-build.log +2 -5
- package/CHANGELOG.md +16 -0
- package/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/es/index.js +592 -576
- package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/lib/index.js +592 -576
- package/package.json +7 -4
- package/sonar-project.properties +9 -0
- package/src/components/Drawer/DragableDrawer/index.tsx +2 -2
- package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
- package/src/components/Icon/IconList.ts +2 -0
- package/src/components/Tabs/StyledTabs.tsx +1 -1
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +3 -3
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +1 -1
- package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +6 -6
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +2 -1
- package/src/theme/components/tabs.ts +2 -1
- package/types/components/Accordion/AccordionItem.d.ts +1 -1
- package/types/components/Accordion/StyledAccordion.d.ts +1 -1
- package/types/components/Avatar/AvatarStack/StyledAvatarStack.d.ts +1 -1
- package/types/components/Avatar/StyledAvatar.d.ts +2 -2
- package/types/components/Badge/StyledBadge.d.ts +2 -2
- package/types/components/BottomNavigation/index.d.ts +1 -1
- package/types/components/BottomSheet/BottomSheetContext.d.ts +1 -1
- package/types/components/Box/config.d.ts +2 -2
- package/types/components/Box/types.d.ts +3 -3
- package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +1 -1
- package/types/components/Button/LoadingIndicator/index.d.ts +1 -1
- package/types/components/Button/StyledButton.d.ts +2 -2
- package/types/components/Carousel/CardCarousel.d.ts +1 -1
- package/types/components/Carousel/types.d.ts +2 -2
- package/types/components/Checkbox/StyledCheckbox.d.ts +1 -1
- package/types/components/Checkbox/index.d.ts +1 -1
- package/types/components/Chip/StyledChip.d.ts +1 -1
- package/types/components/Divider/StyledDivider.d.ts +1 -1
- package/types/components/Drawer/DragableDrawer/helpers.d.ts +1 -1
- package/types/components/Empty/StyledEmpty.d.ts +1 -1
- package/types/components/Error/StyledError.d.ts +1 -1
- package/types/components/FAB/ActionGroup/index.d.ts +1 -1
- package/types/components/FAB/AnimatedFABIcon.d.ts +1 -1
- package/types/components/FAB/FAB.d.ts +1 -1
- package/types/components/Icon/AnimatedIcon.d.ts +1 -1
- package/types/components/Icon/HeroIcon/index.d.ts +2 -2
- package/types/components/Icon/IconList.d.ts +1 -1
- package/types/components/Icon/index.d.ts +2 -2
- package/types/components/Icon/utils.d.ts +1 -1
- package/types/components/List/StyledListItem.d.ts +2 -2
- package/types/components/PinInput/StyledPinInput.d.ts +1 -1
- package/types/components/Portal/reducer.d.ts +1 -1
- package/types/components/Portal/types.d.ts +1 -1
- package/types/components/Progress/types.d.ts +1 -1
- package/types/components/Radio/types.d.ts +1 -1
- package/types/components/RefreshControl/index.d.ts +1 -1
- package/types/components/RichTextEditor/RichTextEditor.d.ts +1 -1
- package/types/components/RichTextEditor/types.d.ts +1 -1
- package/types/components/SectionHeading/StyledHeading.d.ts +1 -1
- package/types/components/Select/BaseOptionList.d.ts +1 -1
- package/types/components/Select/MultiSelect/OptionList.d.ts +1 -1
- package/types/components/Select/SingleSelect/OptionList.d.ts +1 -1
- package/types/components/Select/helpers.d.ts +1 -1
- package/types/components/Select/types.d.ts +6 -6
- package/types/components/Skeleton/StyledSkeleton.d.ts +2 -2
- package/types/components/Success/StyledSuccess.d.ts +1 -1
- package/types/components/Swipeable/StyledSwipeable.d.ts +1 -1
- package/types/components/Swipeable/index.d.ts +2 -2
- package/types/components/Switch/SelectorSwitch/index.d.ts +3 -3
- package/types/components/Switch/StyledSwitch.d.ts +1 -1
- package/types/components/Tabs/TabWithBadge.d.ts +3 -3
- package/types/components/Tabs/index.d.ts +2 -2
- package/types/components/Tag/StyledTag.d.ts +1 -1
- package/types/components/TextInput/StyledTextInput.d.ts +2 -2
- package/types/components/TextInput/index.d.ts +1 -1
- package/types/components/Toast/ToastContext.d.ts +2 -2
- package/types/components/Toast/ToastProvider.d.ts +1 -1
- package/types/components/Toast/types.d.ts +2 -2
- package/types/components/Typography/Body/StyledBody.d.ts +1 -1
- package/types/components/Typography/Title/StyledTitle.d.ts +1 -1
- package/types/components/Typography/types.d.ts +1 -1
- package/types/theme/ThemeSwitcher.d.ts +1 -1
- package/types/theme/components/badge.d.ts +1 -1
- package/types/theme/components/button.d.ts +1 -1
- package/types/theme/components/carousel.d.ts +1 -1
- package/types/theme/components/empty.d.ts +1 -1
- package/types/theme/components/error.d.ts +1 -1
- package/types/theme/components/fab.d.ts +1 -1
- package/types/theme/components/pinInput.d.ts +1 -1
- package/types/theme/components/success.d.ts +1 -1
- package/types/theme/components/tabs.d.ts +1 -0
- package/types/theme/components/tag.d.ts +1 -1
- package/types/theme/getTheme.d.ts +1 -1
- package/types/theme/global/colors/types.d.ts +3 -3
- package/types/theme/global/index.d.ts +1 -1
- package/types/theme/global/scale.d.ts +1 -1
- package/types/theme/global/shadows.d.ts +1 -1
- package/types/theme/global/typography.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hero-design/rn",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.55.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@emotion/native": "^11.9.3",
|
|
23
|
+
"@emotion/primitives-core": "11.0.0",
|
|
23
24
|
"@emotion/react": "^11.9.3",
|
|
24
25
|
"@hero-design/colors": "8.42.5",
|
|
25
26
|
"date-fns": "^2.16.1",
|
|
@@ -33,7 +34,7 @@
|
|
|
33
34
|
"@react-native-community/slider": "4.4.3",
|
|
34
35
|
"react": "18.2.0",
|
|
35
36
|
"react-native": "^0.71.0",
|
|
36
|
-
"react-native-gesture-handler": "^1.10.3
|
|
37
|
+
"react-native-gesture-handler": "^1.10.3 || ~2.5.0",
|
|
37
38
|
"react-native-linear-gradient": "^2.6.2",
|
|
38
39
|
"react-native-pager-view": "^5.4.25",
|
|
39
40
|
"react-native-safe-area-context": "^3.0.2",
|
|
@@ -47,7 +48,7 @@
|
|
|
47
48
|
"@babel/preset-typescript": "^7.20.0",
|
|
48
49
|
"@babel/runtime": "^7.20.0",
|
|
49
50
|
"@emotion/jest": "^11.11.0",
|
|
50
|
-
"@hero-design/eslint-plugin": "
|
|
51
|
+
"@hero-design/eslint-plugin": "9.0.0",
|
|
51
52
|
"@hero-design/react-native-month-year-picker": "^8.42.6",
|
|
52
53
|
"@react-native-community/datetimepicker": "3.5.2",
|
|
53
54
|
"@react-native-community/slider": "4.4.3",
|
|
@@ -64,6 +65,7 @@
|
|
|
64
65
|
"@types/react-native-vector-icons": "^6.4.10",
|
|
65
66
|
"babel-plugin-inline-import": "^3.0.0",
|
|
66
67
|
"core-js": "^3.33.0",
|
|
68
|
+
"eslint": "^8.56.0",
|
|
67
69
|
"eslint-config-hd": "8.42.4",
|
|
68
70
|
"eslint-plugin-import": "^2.27.5",
|
|
69
71
|
"jest": "^29.2.1",
|
|
@@ -82,7 +84,8 @@
|
|
|
82
84
|
"rollup": "^2.68.0",
|
|
83
85
|
"rollup-plugin-copy": "^3.4.0",
|
|
84
86
|
"rollup-plugin-flow": "^1.1.1",
|
|
85
|
-
"ts-jest": "^29.1.1"
|
|
87
|
+
"ts-jest": "^29.1.1",
|
|
88
|
+
"typescript": "4.8.4"
|
|
86
89
|
},
|
|
87
90
|
"prettier": "prettier-config-hd"
|
|
88
91
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
sonar.host.url=https://sonarqube.staging.ehrocks.com
|
|
2
|
+
|
|
3
|
+
sonar.projectKey=hero-design-react-native
|
|
4
|
+
sonar.projectName=Hero Design React Native
|
|
5
|
+
|
|
6
|
+
sonar.sources=.
|
|
7
|
+
sonar.inclusions=**/*
|
|
8
|
+
sonar.exclusions=**/__tests__/**,**/public/**
|
|
9
|
+
sonar.java.binaries=**/src/main/java
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useEffect, useRef, useState } from 'react';
|
|
2
|
-
import { Animated, PanResponder, Easing } from 'react-native';
|
|
2
|
+
import { Animated, PanResponder, Easing, Platform } from 'react-native';
|
|
3
3
|
|
|
4
4
|
import type { ReactNode } from 'react';
|
|
5
5
|
import {
|
|
@@ -107,7 +107,7 @@ const DragableDrawer = ({
|
|
|
107
107
|
if (animatedToValue >= 0) {
|
|
108
108
|
const animation = Animated.timing(pan, {
|
|
109
109
|
toValue: animatedToValue,
|
|
110
|
-
useNativeDriver:
|
|
110
|
+
useNativeDriver: Platform.OS !== 'web',
|
|
111
111
|
easing: Easing.inOut(Easing.cubic),
|
|
112
112
|
});
|
|
113
113
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"activate":59000,"add-emoji":59001,"add-person":59002,"adjustment":59003,"alignment":59004,"antenna":59005,"archive":59006,"assignment-warning":59007,"bank":59008,"bell":59009,"billing":59010,"bolt":59011,"bookmark-added":59012,"bookmark":59013,"box-check":59014,"box":59015,"bpay":59016,"buildings":59017,"cake":59018,"calendar-clock":59019,"calendar":59020,"candy-box-menu":59021,"caret-down-small":59022,"caret-down":59023,"caret-left-small":59024,"caret-left":59025,"caret-right-small":59026,"caret-right":59027,"caret-up-small":59028,"caret-up":59029,"check-radio":59030,"circle-add":59031,"circle-cancel":59032,"circle-check":59033,"circle-down":59034,"circle-info":59035,"circle-left":59036,"circle-ok":59037,"circle-pencil":59038,"circle-question":59039,"circle-remove":59040,"circle-right":59041,"circle-up":59042,"circle-warning":59043,"clock-3":59044,"clock":59045,"cloud-download":59046,"cloud-upload":59047,"cog":59048,"coin":59049,"contacts":59050,"credit-card":59051,"diamond":59052,"direction-arrows":59053,"directory":59054,"document":59055,"dollar-coin-shine":59056,"double-buildings":59057,"edit-template":59058,"envelope":59059,"exclude":59060,"expand-content":59061,"expense":59062,"eye-circle":59063,"eye-invisible":59064,"eye":59065,"face-meh":59066,"face-sad":59067,"face-smiley":59068,"feed":59069,"feedbacks":59070,"file-certified":59071,"file-clone":59072,"file-copy":59073,"file-csv":59074,"file-dispose":59075,"file-doc":59076,"file-excel":59077,"file-export":59078,"file-lock":59079,"file-pdf":59080,"file-powerpoint":59081,"file-search":59082,"file-secured":59083,"file-sheets":59084,"file-slide":59085,"file-verified":59086,"file-word":59087,"file":59088,"filter":59089,"folder-user":59090,"folder":59091,"format-bold":59092,"format-heading1":59093,"format-heading2":59094,"format-italic":59095,"format-list-bulleted":59096,"format-list-numbered":59097,"format-underlined":59098,"funnel-filter":59099,"global-dollar":59100,"globe":59101,"graduation-cap":59102,"graph":59103,"happy-sun":59104,"health-bag":59105,"heart":59106,"
|
|
1
|
+
{"activate":59000,"add-emoji":59001,"add-person":59002,"adjustment":59003,"alignment":59004,"antenna":59005,"archive":59006,"assignment-warning":59007,"bank":59008,"bell":59009,"billing":59010,"bolt":59011,"bookmark-added":59012,"bookmark":59013,"box-check":59014,"box":59015,"bpay":59016,"buildings":59017,"cake":59018,"calendar-clock":59019,"calendar":59020,"candy-box-menu":59021,"caret-down-small":59022,"caret-down":59023,"caret-left-small":59024,"caret-left":59025,"caret-right-small":59026,"caret-right":59027,"caret-up-small":59028,"caret-up":59029,"check-radio":59030,"circle-add":59031,"circle-cancel":59032,"circle-check":59033,"circle-down":59034,"circle-info":59035,"circle-left":59036,"circle-ok":59037,"circle-pencil":59038,"circle-question":59039,"circle-remove":59040,"circle-right":59041,"circle-up":59042,"circle-warning":59043,"clock-3":59044,"clock":59045,"cloud-download":59046,"cloud-upload":59047,"cog":59048,"coin":59049,"contacts":59050,"credit-card":59051,"diamond":59052,"direction-arrows":59053,"directory":59054,"document":59055,"dollar-coin-shine":59056,"double-buildings":59057,"edit-template":59058,"envelope":59059,"exclude":59060,"expand-content":59061,"expense":59062,"eye-circle":59063,"eye-invisible":59064,"eye":59065,"face-meh":59066,"face-sad":59067,"face-smiley":59068,"feed":59069,"feedbacks":59070,"file-certified":59071,"file-clone":59072,"file-copy":59073,"file-csv":59074,"file-dispose":59075,"file-doc":59076,"file-excel":59077,"file-export":59078,"file-lock":59079,"file-pdf":59080,"file-powerpoint":59081,"file-search":59082,"file-secured":59083,"file-sheets":59084,"file-slide":59085,"file-verified":59086,"file-word":59087,"file":59088,"filter":59089,"folder-user":59090,"folder":59091,"format-bold":59092,"format-heading1":59093,"format-heading2":59094,"format-italic":59095,"format-list-bulleted":59096,"format-list-numbered":59097,"format-underlined":59098,"funnel-filter":59099,"global-dollar":59100,"globe":59101,"graduation-cap":59102,"graph":59103,"happy-sun":59104,"health-bag":59105,"heart":59106,"hero-points":59107,"home":59108,"image":59109,"import":59110,"incident-siren":59111,"instapay-daily":59112,"instapay-now":59113,"instapay":59114,"list":59115,"loading-2":59116,"loading":59117,"location-on":59118,"location":59119,"lock":59120,"looks-one":59121,"looks-two":59122,"media-content":59123,"menu":59124,"money-notes":59125,"moneybag":59126,"moon":59127,"multiple-stars":59128,"multiple-users":59129,"near-me":59130,"node":59131,"open-folder":59132,"paperclip":59133,"payment-summary":59134,"pencil":59135,"phone":59136,"piggy-bank":59137,"plane-up":59138,"plane":59139,"play-circle":59140,"print":59141,"raising-hands":59142,"reply-arrow":59143,"reply":59144,"reschedule":59145,"rostering":59146,"salary-sacrifice":59147,"save":59148,"schedule-send":59149,"schedule":59150,"search-person":59151,"send":59152,"speaker-active":59153,"speaker":59154,"star-award":59155,"star-badge":59156,"star-circle":59157,"star-medal":59158,"star":59159,"steps-circle":59160,"stopwatch":59161,"suitcase":59162,"surfing":59163,"survey":59164,"swag-pillar-benefit":59165,"swag-pillar-career":59166,"swag-pillar-money":59167,"swag-pillar-work":59168,"swag":59169,"swipe-right":59170,"switch":59171,"tag":59172,"target":59173,"teams":59174,"timesheet":59175,"touch-id":59176,"trash-bin":59177,"unlock":59178,"user":59179,"video-1":59180,"video-2":59181,"wallet":59182,"warning":59183,"activate-outlined":59184,"add-credit-card-outlined":59185,"add-person-outlined":59186,"add-section-outlined":59187,"add-time-outlined":59188,"add":59189,"adjustment-outlined":59190,"ai-outlined":59191,"alignment-2-outlined":59192,"alignment-outlined":59193,"all-caps":59194,"application-outlined":59195,"arrow-down":59196,"arrow-downwards":59197,"arrow-left":59198,"arrow-leftwards":59199,"arrow-right":59200,"arrow-rightwards":59201,"arrow-up":59202,"arrow-upwards":59203,"article-outlined":59204,"at-sign":59205,"auto-graph-outlined":59206,"beer-outlined":59207,"bell-active-outlined":59208,"bell-outlined":59209,"bell-slash-outlined":59210,"bill-management-outlined":59211,"billing-outlined":59212,"body-outlined":59213,"bold":59214,"bolt-outlined":59215,"book-outlined":59216,"bookmark-added-outlined":59217,"bookmark-outlined":59218,"box-check-outlined":59219,"box-outlined":59220,"bullet-points":59221,"cake-outlined":59222,"calendar-dates-outlined":59223,"calendar-star-outlined":59224,"call-outlined":59225,"call-split-outlined":59226,"camera-outlined":59227,"cancel":59228,"car-forward-outlined":59229,"cashback-outlined":59230,"charging-station-outlined":59231,"chat-bubble-outlined":59232,"chat-unread-outlined":59233,"checkmark":59234,"circle-add-outlined":59235,"circle-cancel-outlined":59236,"circle-down-outlined":59237,"circle-info-outlined":59238,"circle-left-outlined":59239,"circle-ok-outlined":59240,"circle-question-outlined":59241,"circle-remove-outlined":59242,"circle-right-outlined":59243,"circle-up-outlined":59244,"circle-warning-outlined":59245,"clock-2-outlined":59246,"clock-outlined":59247,"cog-outlined":59248,"coin-outlined":59249,"coin-super-outlined":59250,"comment-outlined":59251,"contacts-outlined":59252,"contacts-user-outlined":59253,"credit-card-outlined":59254,"cup-outlined":59255,"dentistry-outlined":59256,"direction-arrows-outlined":59257,"directory-outlined":59258,"document-outlined":59259,"dollar-box-outlined":59260,"dollar-card-outlined":59261,"dollar-coin-shine-outlined":59262,"dollar-credit-card-outlined":59263,"dollar-sign":59264,"double-buildings-outlined":59265,"double-left-arrows":59266,"double-right-arrows":59267,"download-box-outlined":59268,"download-outlined":59269,"edit-template-outlined":59270,"email-outlined":59271,"enter-arrow":59272,"envelope-outlined":59273,"expense-approval-outlined":59274,"expense-outlined":59275,"explore-outlined":59276,"extension-outlined":59277,"external-link":59278,"eye-invisible-outlined":59279,"eye-outlined":59280,"face-id":59281,"face-meh-outlined":59282,"face-open-smiley-outlined":59283,"face-sad-outlined":59284,"face-smiley-outlined":59285,"fastfood-outlined":59286,"feed-outlined":59287,"file-certified-outlined":59288,"file-clone-outlined":59289,"file-copy-outlined":59290,"file-dispose-outlined":59291,"file-dollar-certified-outlined":59292,"file-dollar-outlined":59293,"file-download-outlined":59294,"file-export-outlined":59295,"file-lock-outlined":59296,"file-outlined":59297,"file-search-outlined":59298,"file-secured-outlined":59299,"file-statutory-outlined":59300,"file-verified-outlined":59301,"filter-outlined":59302,"folder-outlined":59303,"folder-user-outlined":59304,"form-outlined":59305,"funnel-filter-outline":59306,"goal-outlined":59307,"graph-outlined":59308,"hand-holding-user-outlined":59309,"happy-sun-outlined":59310,"health-bag-outlined":59311,"heart-outlined":59312,"home-active-outlined":59313,"home-outlined":59314,"id-card-outlined":59315,"image-outlined":59316,"import-outlined":59317,"instapay-outlined":59318,"italic":59319,"job-search-outlined":59320,"leave-approval-outlined":59321,"link-1":59322,"link-2":59323,"list-outlined":59324,"live-help-outlined":59325,"location-on-outlined":59326,"location-outlined":59327,"lock-outlined":59328,"locked-file-outlined":59329,"log-out":59330,"mail-outlined":59331,"media-content-outlined":59332,"menu-close":59333,"menu-expand":59334,"menu-fold-outlined":59335,"menu-unfold-outlined":59336,"moneybag-outlined":59337,"moon-outlined":59338,"more-horizontal":59339,"more-vertical":59340,"multiple-folders-outlined":59341,"multiple-users-outlined":59342,"near-me-outlined":59343,"node-outlined":59344,"number-points":59345,"number":59346,"overview-outlined":59347,"payment-summary-outlined":59348,"payslip-outlined":59349,"pencil-outlined":59350,"percentage":59351,"phone-outlined":59352,"piggy-bank-outlined":59353,"plane-outlined":59354,"play-circle-outlined":59355,"print-outlined":59356,"propane-tank-outlined":59357,"qr-code-outlined":59358,"qualification-outlined":59359,"re-assign":59360,"redeem":59361,"refresh":59362,"remove":59363,"reply-outlined":59364,"restart":59365,"resume-outlined":59366,"return-arrow":59367,"rostering-outlined":59368,"safety-outlined":59369,"save-outlined":59370,"schedule-outlined":59371,"search-outlined":59372,"search-secured-outlined":59373,"send-outlined":59374,"share-1":59375,"share-2":59376,"share-outlined":59377,"show-chart-outlined":59378,"single-down-arrow":59379,"single-left-arrow":59380,"single-right-arrow":59381,"single-up-arrow":59382,"smart-match-outlined":59383,"sparkle-outlined":59384,"speaker-active-outlined":59385,"speaker-outlined":59386,"star-circle-outlined":59387,"star-outlined":59388,"stash-outlined":59389,"stopwatch-outlined":59390,"strikethrough":59391,"styler-outlined":59392,"suitcase-clock-outlined":59393,"suitcase-outlined":59394,"survey-outlined":59395,"switch-outlined":59396,"sync":59397,"tag-outlined":59398,"target-outlined":59399,"tennis-outlined":59400,"ticket-outlined":59401,"timesheet-outlined":59402,"timesheets-outlined":59403,"today-outlined":59404,"transfer":59405,"trash-bin-outlined":59406,"umbrela-outlined":59407,"unavailability-outlined":59408,"unavailable":59409,"underline":59410,"union-outlined":59411,"unlock-outlined":59412,"upload-outlined":59413,"user-circle-outlined":59414,"user-gear-outlined":59415,"user-outlined":59416,"user-rectangle-outlined":59417,"video-1-outlined":59418,"video-2-outlined":59419,"volunteer-outlined":59420,"wallet-outlined":59421}
|
|
@@ -107,6 +107,7 @@ const IconList = [
|
|
|
107
107
|
'happy-sun',
|
|
108
108
|
'health-bag',
|
|
109
109
|
'heart',
|
|
110
|
+
'hero-points',
|
|
110
111
|
'home',
|
|
111
112
|
'image',
|
|
112
113
|
'import',
|
|
@@ -210,6 +211,7 @@ const IconList = [
|
|
|
210
211
|
'bell-active-outlined',
|
|
211
212
|
'bell-outlined',
|
|
212
213
|
'bell-slash-outlined',
|
|
214
|
+
'bill-management-outlined',
|
|
213
215
|
'billing-outlined',
|
|
214
216
|
'body-outlined',
|
|
215
217
|
'bold',
|
|
@@ -41,7 +41,7 @@ const StyledIndicator = styled(Animated.View)<{ themeWidth: number }>(
|
|
|
41
41
|
height: theme.__hd__.tabs.sizes.indicator,
|
|
42
42
|
backgroundColor: theme.__hd__.tabs.colors.indicator,
|
|
43
43
|
position: 'absolute',
|
|
44
|
-
bottom:
|
|
44
|
+
bottom: theme.__hd__.tabs.space.tabIndicatorBottom,
|
|
45
45
|
})
|
|
46
46
|
);
|
|
47
47
|
|
|
@@ -129,7 +129,7 @@ exports[`Tabs.Scroll lazy not render lazy screen: xxx 1`] = `
|
|
|
129
129
|
[
|
|
130
130
|
{
|
|
131
131
|
"borderBottomColor": "#e8e9ea",
|
|
132
|
-
"borderBottomWidth":
|
|
132
|
+
"borderBottomWidth": 2,
|
|
133
133
|
"paddingHorizontal": 0,
|
|
134
134
|
},
|
|
135
135
|
undefined,
|
|
@@ -1033,7 +1033,7 @@ exports[`Tabs.Scroll renders correctly 1`] = `
|
|
|
1033
1033
|
[
|
|
1034
1034
|
{
|
|
1035
1035
|
"borderBottomColor": "#e8e9ea",
|
|
1036
|
-
"borderBottomWidth":
|
|
1036
|
+
"borderBottomWidth": 2,
|
|
1037
1037
|
"paddingHorizontal": 0,
|
|
1038
1038
|
},
|
|
1039
1039
|
undefined,
|
|
@@ -1937,7 +1937,7 @@ exports[`useIsFocused renders correctly 1`] = `
|
|
|
1937
1937
|
[
|
|
1938
1938
|
{
|
|
1939
1939
|
"borderBottomColor": "#e8e9ea",
|
|
1940
|
-
"borderBottomWidth":
|
|
1940
|
+
"borderBottomWidth": 2,
|
|
1941
1941
|
"paddingHorizontal": 0,
|
|
1942
1942
|
},
|
|
1943
1943
|
undefined,
|
|
@@ -129,7 +129,7 @@ exports[`Tabs renders correctly 1`] = `
|
|
|
129
129
|
[
|
|
130
130
|
{
|
|
131
131
|
"borderBottomColor": "#e8e9ea",
|
|
132
|
-
"borderBottomWidth":
|
|
132
|
+
"borderBottomWidth": 2,
|
|
133
133
|
"paddingHorizontal": 0,
|
|
134
134
|
},
|
|
135
135
|
undefined,
|
|
@@ -474,7 +474,7 @@ exports[`Tabs renders correctly 1`] = `
|
|
|
474
474
|
style={
|
|
475
475
|
{
|
|
476
476
|
"backgroundColor": "#401960",
|
|
477
|
-
"bottom":
|
|
477
|
+
"bottom": -2,
|
|
478
478
|
"height": 2,
|
|
479
479
|
"position": "absolute",
|
|
480
480
|
"transform": [
|
|
@@ -793,7 +793,7 @@ exports[`useIsFocused renders correctly 1`] = `
|
|
|
793
793
|
[
|
|
794
794
|
{
|
|
795
795
|
"borderBottomColor": "#e8e9ea",
|
|
796
|
-
"borderBottomWidth":
|
|
796
|
+
"borderBottomWidth": 2,
|
|
797
797
|
"paddingHorizontal": 0,
|
|
798
798
|
},
|
|
799
799
|
undefined,
|
|
@@ -1138,7 +1138,7 @@ exports[`useIsFocused renders correctly 1`] = `
|
|
|
1138
1138
|
style={
|
|
1139
1139
|
{
|
|
1140
1140
|
"backgroundColor": "#401960",
|
|
1141
|
-
"bottom":
|
|
1141
|
+
"bottom": -2,
|
|
1142
1142
|
"height": 2,
|
|
1143
1143
|
"position": "absolute",
|
|
1144
1144
|
"transform": [
|
|
@@ -1457,7 +1457,7 @@ exports[`useIsFocused renders correctly: xxxxxx 1`] = `
|
|
|
1457
1457
|
[
|
|
1458
1458
|
{
|
|
1459
1459
|
"borderBottomColor": "#e8e9ea",
|
|
1460
|
-
"borderBottomWidth":
|
|
1460
|
+
"borderBottomWidth": 2,
|
|
1461
1461
|
"paddingHorizontal": 0,
|
|
1462
1462
|
},
|
|
1463
1463
|
undefined,
|
|
@@ -1802,7 +1802,7 @@ exports[`useIsFocused renders correctly: xxxxxx 1`] = `
|
|
|
1802
1802
|
style={
|
|
1803
1803
|
{
|
|
1804
1804
|
"backgroundColor": "#401960",
|
|
1805
|
-
"bottom":
|
|
1805
|
+
"bottom": -2,
|
|
1806
1806
|
"height": 2,
|
|
1807
1807
|
"position": "absolute",
|
|
1808
1808
|
"transform": [
|
|
@@ -921,7 +921,7 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
921
921
|
},
|
|
922
922
|
"tabs": {
|
|
923
923
|
"borderWidths": {
|
|
924
|
-
"headerBottom":
|
|
924
|
+
"headerBottom": 2,
|
|
925
925
|
},
|
|
926
926
|
"colors": {
|
|
927
927
|
"active": "#001f23",
|
|
@@ -944,6 +944,7 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
944
944
|
"itemVerticalPadding": 8,
|
|
945
945
|
"outlineHorizontalPadding": 8,
|
|
946
946
|
"outlineVerticalPadding": 4,
|
|
947
|
+
"tabIndicatorBottom": -2,
|
|
947
948
|
},
|
|
948
949
|
},
|
|
949
950
|
"tag": {
|
|
@@ -17,6 +17,7 @@ const getTabsTheme = (theme: GlobalTheme) => {
|
|
|
17
17
|
itemMargin: theme.space.smallMedium,
|
|
18
18
|
outlineHorizontalPadding: theme.space.small,
|
|
19
19
|
outlineVerticalPadding: theme.space.xsmall,
|
|
20
|
+
tabIndicatorBottom: -theme.space.xxsmall,
|
|
20
21
|
};
|
|
21
22
|
|
|
22
23
|
const radii = {
|
|
@@ -24,7 +25,7 @@ const getTabsTheme = (theme: GlobalTheme) => {
|
|
|
24
25
|
};
|
|
25
26
|
|
|
26
27
|
const borderWidths = {
|
|
27
|
-
headerBottom: theme.borderWidths.
|
|
28
|
+
headerBottom: theme.borderWidths.medium,
|
|
28
29
|
};
|
|
29
30
|
|
|
30
31
|
const sizes = {
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import type { ReactElement } from 'react';
|
|
3
3
|
import type { StyleProp, ViewStyle } from 'react-native';
|
|
4
4
|
import type { Variant } from './StyledAccordion';
|
|
5
|
-
export type AccordionItemProps = {
|
|
5
|
+
export declare type AccordionItemProps = {
|
|
6
6
|
header: string | ReactElement;
|
|
7
7
|
content: ReactElement;
|
|
8
8
|
open?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { TouchableOpacity, View } from 'react-native';
|
|
3
|
-
export type Variant = 'default' | 'card';
|
|
3
|
+
export declare type Variant = 'default' | 'card';
|
|
4
4
|
export declare const StyledWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
5
5
|
theme?: import("@emotion/react").Theme | undefined;
|
|
6
6
|
as?: import("react").ElementType<any> | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { View } from 'react-native';
|
|
3
3
|
import { AvatarProps } from '../Avatar';
|
|
4
|
-
type ThemeVariant = 'horizontal' | 'vertical';
|
|
4
|
+
declare type ThemeVariant = 'horizontal' | 'vertical';
|
|
5
5
|
export declare const StyledWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
6
6
|
theme?: import("@emotion/react").Theme | undefined;
|
|
7
7
|
as?: import("react").ElementType<any> | undefined;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { View, Image, TouchableOpacity } from 'react-native';
|
|
3
3
|
import { TextProps } from '../Typography/Text';
|
|
4
|
-
type ThemeSize = 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge' | 'xxxlarge' | 'xxxxlarge' | 'xxxxxlarge';
|
|
5
|
-
type ThemeIntent = 'primary' | 'info' | 'danger' | 'success' | 'warning';
|
|
4
|
+
declare type ThemeSize = 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge' | 'xxxlarge' | 'xxxxlarge' | 'xxxxxlarge';
|
|
5
|
+
declare type ThemeIntent = 'primary' | 'info' | 'danger' | 'success' | 'warning';
|
|
6
6
|
declare const StyledWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
|
|
7
7
|
theme?: import("@emotion/react").Theme | undefined;
|
|
8
8
|
as?: import("react").ElementType<any> | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { Animated } from 'react-native';
|
|
3
|
-
type ThemeIntent = 'primary' | 'success' | 'warning' | 'danger' | 'info' | 'archived';
|
|
4
|
-
type ThemePadding = 'narrowContent' | 'wideContent';
|
|
3
|
+
declare type ThemeIntent = 'primary' | 'success' | 'warning' | 'danger' | 'info' | 'archived';
|
|
4
|
+
declare type ThemePadding = 'narrowContent' | 'wideContent';
|
|
5
5
|
declare const StyledView: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<import("react-native").View>> & {
|
|
6
6
|
theme?: import("@emotion/react").Theme | undefined;
|
|
7
7
|
as?: import("react").ElementType<any> | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
import type { StyleProp, ViewStyle, ViewProps } from 'react-native';
|
|
3
3
|
import type { IconName } from '../Icon';
|
|
4
|
-
export type BottomNavigationTabType = {
|
|
4
|
+
export declare type BottomNavigationTabType = {
|
|
5
5
|
key: string;
|
|
6
6
|
title?: string;
|
|
7
7
|
icon: IconName;
|
|
@@ -165,6 +165,6 @@ declare const config: {
|
|
|
165
165
|
};
|
|
166
166
|
};
|
|
167
167
|
export declare const flexPropsKey: readonly ["alignContent", "alignItems", "alignSelf", "display", "flex", "flexBasis", "flexDirection", "flexGrow", "flexShrink", "flexWrap", "justifyContent"];
|
|
168
|
-
export type ConfigType = typeof config;
|
|
169
|
-
export type FlexPropsKeyType = typeof flexPropsKey[number];
|
|
168
|
+
export declare type ConfigType = typeof config;
|
|
169
|
+
export declare type FlexPropsKeyType = typeof flexPropsKey[number];
|
|
170
170
|
export default config;
|
|
@@ -10,11 +10,11 @@ export interface ThemeScale {
|
|
|
10
10
|
radii: keyof Radii;
|
|
11
11
|
borderWidths: keyof BorderWidths;
|
|
12
12
|
}
|
|
13
|
-
type ConfigKeyType = keyof ConfigType;
|
|
14
|
-
export type StyleProps = {
|
|
13
|
+
declare type ConfigKeyType = keyof ConfigType;
|
|
14
|
+
export declare type StyleProps = {
|
|
15
15
|
[key in ConfigKeyType]?: ThemeScale[ConfigType[key]['scale']];
|
|
16
16
|
};
|
|
17
|
-
export type FlexStyleProps = Pick<Omit<ViewStyle, keyof StyleProps>, FlexPropsKeyType>;
|
|
17
|
+
export declare type FlexStyleProps = Pick<Omit<ViewStyle, keyof StyleProps>, FlexPropsKeyType>;
|
|
18
18
|
export interface BoxViewProps extends ViewProps {
|
|
19
19
|
/**
|
|
20
20
|
* Box's content.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import type { Theme } from '@emotion/react';
|
|
3
3
|
import type { ViewProps } from 'react-native';
|
|
4
4
|
import { View } from 'react-native';
|
|
5
|
-
type ThemeVariant = 'basic-transparent' | 'filled-primary' | 'filled-secondary' | 'filled-danger' | 'outlined-primary' | 'outlined-secondary' | 'outlined-danger' | 'text-primary' | 'text-secondary' | 'text-danger';
|
|
5
|
+
declare type ThemeVariant = 'basic-transparent' | 'filled-primary' | 'filled-secondary' | 'filled-danger' | 'outlined-primary' | 'outlined-secondary' | 'outlined-danger' | 'text-primary' | 'text-secondary' | 'text-danger';
|
|
6
6
|
declare const StyledLoadingIndicatorWrapper: import("@emotion/native").StyledComponent<ViewProps & {
|
|
7
7
|
theme?: Theme | undefined;
|
|
8
8
|
as?: import("react").ElementType<any> | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { StyleProp, ViewStyle, ViewProps } from 'react-native';
|
|
3
|
-
type ThemeVariant = 'basic-transparent' | 'filled-primary' | 'filled-secondary' | 'filled-danger' | 'outlined-primary' | 'outlined-secondary' | 'outlined-danger' | 'text-primary' | 'text-secondary' | 'text-danger';
|
|
3
|
+
declare type ThemeVariant = 'basic-transparent' | 'filled-primary' | 'filled-secondary' | 'filled-danger' | 'outlined-primary' | 'outlined-secondary' | 'outlined-danger' | 'text-primary' | 'text-secondary' | 'text-danger';
|
|
4
4
|
interface LoadingIndicatorProps extends ViewProps {
|
|
5
5
|
/**
|
|
6
6
|
* Size of the loading dot.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { TouchableHighlight, View } from 'react-native';
|
|
3
3
|
import type { Theme } from '@emotion/react';
|
|
4
|
-
type Intent = 'primary' | 'secondary' | 'danger';
|
|
5
|
-
type ThemeVariant = 'filled-primary' | 'filled-secondary' | 'filled-danger' | 'outlined-primary' | 'outlined-secondary' | 'outlined-danger' | 'text-primary' | 'text-secondary' | 'text-danger';
|
|
4
|
+
declare type Intent = 'primary' | 'secondary' | 'danger';
|
|
5
|
+
declare type ThemeVariant = 'filled-primary' | 'filled-secondary' | 'filled-danger' | 'outlined-primary' | 'outlined-secondary' | 'outlined-danger' | 'text-primary' | 'text-secondary' | 'text-danger';
|
|
6
6
|
declare const StyledButtonContainer: import("@emotion/native").StyledComponent<import("react-native").TouchableHighlightProps & {
|
|
7
7
|
theme?: Theme | undefined;
|
|
8
8
|
as?: import("react").ElementType<any> | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { LayoutChangeEvent, StyleProp, ViewStyle } from 'react-native';
|
|
3
|
-
export type CardCarouselHandles = {
|
|
3
|
+
export declare type CardCarouselHandles = {
|
|
4
4
|
snapToIndex: (index: number) => void;
|
|
5
5
|
};
|
|
6
6
|
export interface CardCarouselProps {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { ImageSourcePropType, ImageResizeMode } from 'react-native';
|
|
3
|
-
export type CarouselImageProps = ImageSourcePropType & {
|
|
3
|
+
export declare type CarouselImageProps = ImageSourcePropType & {
|
|
4
4
|
height?: number;
|
|
5
5
|
width?: number;
|
|
6
6
|
resizeMode?: ImageResizeMode;
|
|
7
7
|
};
|
|
8
|
-
export type CarouselData = {
|
|
8
|
+
export declare type CarouselData = {
|
|
9
9
|
image: CarouselImageProps | string;
|
|
10
10
|
content?: ReactNode;
|
|
11
11
|
heading: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { TouchableOpacity, View } from 'react-native';
|
|
3
|
-
type CheckboxThemeState = 'default' | 'disabled' | 'readonly';
|
|
3
|
+
declare type CheckboxThemeState = 'default' | 'disabled' | 'readonly';
|
|
4
4
|
export declare const StyledWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
|
|
5
5
|
theme?: import("@emotion/react").Theme | undefined;
|
|
6
6
|
as?: import("react").ElementType<any> | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { View } from 'react-native';
|
|
3
|
-
type MarginSize = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
|
|
3
|
+
declare type MarginSize = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
|
|
4
4
|
declare const StyledDivider: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
5
5
|
theme?: import("@emotion/react").Theme | undefined;
|
|
6
6
|
as?: import("react").ElementType<any> | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { View } from 'react-native';
|
|
3
|
-
type ThemeVariant = 'light' | 'dark';
|
|
3
|
+
declare type ThemeVariant = 'light' | 'dark';
|
|
4
4
|
declare const StyledWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
5
5
|
theme?: import("@emotion/react").Theme | undefined;
|
|
6
6
|
as?: import("react").ElementType<any> | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { View } from 'react-native';
|
|
3
|
-
type ErrorVariant = 'full-screen' | 'in-page';
|
|
3
|
+
declare type ErrorVariant = 'full-screen' | 'in-page';
|
|
4
4
|
declare const StyledErrorModal: import("@emotion/native").StyledComponent<import("../Modal").ModalProps & {
|
|
5
5
|
theme?: import("@emotion/react").Theme | undefined;
|
|
6
6
|
as?: import("react").ElementType<any> | undefined;
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import type { StyleProp, ViewStyle } from 'react-native';
|
|
3
3
|
import type { IconName } from '../../Icon';
|
|
4
4
|
import type { ActionItemProps } from './ActionItem';
|
|
5
|
-
export type ActionGroupHandles = {
|
|
5
|
+
export declare type ActionGroupHandles = {
|
|
6
6
|
showFAB: () => void;
|
|
7
7
|
collapseFAB: () => void;
|
|
8
8
|
hideFAB: () => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ComponentProps } from 'react';
|
|
3
3
|
import StyledHeroIcon from './HeroIcon';
|
|
4
|
-
type AnimatedIconProps = ComponentProps<typeof StyledHeroIcon>;
|
|
4
|
+
declare type AnimatedIconProps = ComponentProps<typeof StyledHeroIcon>;
|
|
5
5
|
declare const AnimatedIcon: ({ style, ...otherProps }: AnimatedIconProps) => React.JSX.Element;
|
|
6
6
|
export default AnimatedIcon;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
type ThemeSize = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
|
|
3
|
-
type ThemeIntent = 'text' | 'primary' | 'secondary' | 'info' | 'danger' | 'success' | 'warning' | 'disabled-text' | 'text-inverted';
|
|
2
|
+
declare type ThemeSize = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
|
|
3
|
+
declare type ThemeIntent = 'text' | 'primary' | 'secondary' | 'info' | 'danger' | 'success' | 'warning' | 'disabled-text' | 'text-inverted';
|
|
4
4
|
declare const StyledHeroIcon: import("@emotion/native").StyledComponent<import("react-native-vector-icons/Icon").IconProps & {
|
|
5
5
|
theme?: import("@emotion/react").Theme | undefined;
|
|
6
6
|
as?: import("react").ElementType<any> | undefined;
|