@hero-design/rn 8.8.0 → 8.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 +9 -9
- package/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/es/index.js +397 -615
- package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/lib/index.js +396 -615
- package/package.json +9 -9
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +2 -1
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +2 -1
- package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
- package/src/components/Icon/IconList.ts +2 -0
- package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +9 -9
- package/src/components/RichTextEditor/RichTextEditor.tsx +3 -2
- package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +4 -2
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +10 -5
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +10 -5
- package/src/components/TextInput/StyledTextInput.tsx +2 -1
- package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +126 -110
- package/src/components/TextInput/index.tsx +3 -2
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +28 -25
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +28 -25
- package/src/index.ts +0 -2
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +8 -5
- package/src/theme/components/progress.ts +4 -4
- package/src/theme/components/textInput.ts +6 -2
- package/types/components/Accordion/StyledAccordion.d.ts +1 -0
- package/types/components/Alert/StyledAlert.d.ts +1 -0
- package/types/components/Attachment/StyledAttachment.d.ts +1 -0
- package/types/components/Avatar/AvatarStack/StyledAvatarStack.d.ts +1 -0
- package/types/components/Avatar/StyledAvatar.d.ts +1 -0
- package/types/components/Badge/StyledBadge.d.ts +1 -0
- package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +1 -0
- package/types/components/BottomSheet/BottomSheetContext.d.ts +1 -0
- package/types/components/BottomSheet/StyledBottomSheet.d.ts +1 -0
- package/types/components/Box/StyledBox.d.ts +1 -0
- package/types/components/Box/types.d.ts +1 -0
- package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +1 -0
- package/types/components/Button/StyledButton.d.ts +1 -0
- package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +1 -0
- package/types/components/Calendar/StyledCalendar.d.ts +1 -0
- package/types/components/Card/DataCard/StyledDataCard.d.ts +1 -0
- package/types/components/Card/StyledCard.d.ts +1 -0
- package/types/components/Carousel/StyledCarousel.d.ts +1 -0
- package/types/components/Checkbox/StyledCheckbox.d.ts +1 -0
- package/types/components/Collapse/StyledCollapse.d.ts +1 -0
- package/types/components/ContentNavigator/StyledContentNavigator.d.ts +1 -0
- package/types/components/DatePicker/StyledDatePicker.d.ts +1 -0
- package/types/components/Divider/StyledDivider.d.ts +1 -0
- package/types/components/Drawer/StyledDrawer.d.ts +1 -0
- package/types/components/Empty/StyledEmpty.d.ts +1 -0
- package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +1 -0
- package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +1 -0
- package/types/components/FAB/StyledFAB.d.ts +1 -0
- package/types/components/Icon/HeroIcon/index.d.ts +1 -0
- package/types/components/Icon/IconList.d.ts +1 -1
- package/types/components/Icon/index.d.ts +1 -1
- package/types/components/Icon/utils.d.ts +1 -1
- package/types/components/List/StyledBasicListItem.d.ts +1 -0
- package/types/components/List/StyledListItem.d.ts +1 -0
- package/types/components/PageControl/StyledPageControl.d.ts +1 -0
- package/types/components/PinInput/StyledPinInput.d.ts +1 -0
- package/types/components/Progress/StyledProgressBar.d.ts +1 -0
- package/types/components/Progress/StyledProgressCircle.d.ts +1 -0
- package/types/components/Radio/StyledRadio.d.ts +1 -0
- package/types/components/Radio/index.d.ts +1 -0
- package/types/components/RichTextEditor/StyledRichTextEditor.d.ts +1 -0
- package/types/components/RichTextEditor/StyledToolbar.d.ts +1 -0
- package/types/components/RichTextEditor/index.d.ts +1 -0
- package/types/components/SectionHeading/StyledHeading.d.ts +1 -0
- package/types/components/Select/StyledSelect.d.ts +1 -0
- package/types/components/Select/helpers.d.ts +1 -0
- package/types/components/Spinner/StyledSpinner.d.ts +1 -0
- package/types/components/Swipeable/StyledSwipeable.d.ts +1 -0
- package/types/components/Switch/SelectorSwitch/StyledSelectorSwitch.d.ts +1 -0
- package/types/components/Switch/StyledSwitch.d.ts +1 -0
- package/types/components/Tabs/StyledScrollableTabs.d.ts +1 -0
- package/types/components/Tabs/StyledTabs.d.ts +1 -0
- package/types/components/Tag/StyledTag.d.ts +1 -0
- package/types/components/TextInput/StyledTextInput.d.ts +1 -0
- package/types/components/TextInput/index.d.ts +1 -1
- package/types/components/TimePicker/StyledTimePicker.d.ts +1 -0
- package/types/components/Toast/StyledToast.d.ts +1 -0
- package/types/components/Toast/ToastContext.d.ts +1 -0
- package/types/components/Toast/index.d.ts +1 -0
- package/types/components/Toolbar/StyledToolbar.d.ts +1 -0
- package/types/components/Typography/Text/StyledText.d.ts +1 -0
- package/types/index.d.ts +1 -2
- package/types/theme/ThemeProvider.d.ts +1 -0
- package/types/theme/components/textInput.d.ts +4 -1
- package/src/components/SwipeableV2/StyledSwipeable.tsx +0 -14
- package/src/components/SwipeableV2/__tests__/__snapshots__/index.spec.tsx.snap +0 -161
- package/src/components/SwipeableV2/__tests__/index.spec.tsx +0 -48
- package/src/components/SwipeableV2/index.tsx +0 -364
- package/types/components/SwipeableV2/StyledSwipeable.d.ts +0 -15
- package/types/components/SwipeableV2/index.d.ts +0 -46
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hero-design/rn",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.9.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@emotion/native": "^11.9.3",
|
|
23
23
|
"@emotion/react": "^11.9.3",
|
|
24
|
-
"@hero-design/colors": "8.
|
|
24
|
+
"@hero-design/colors": "8.9.0",
|
|
25
25
|
"date-fns": "^2.16.1",
|
|
26
26
|
"events": "^3.2.0",
|
|
27
27
|
"hero-editor": "^1.9.21"
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
"react-native": "0.69.7",
|
|
34
34
|
"react-native-gesture-handler": "^1.10.3 | ~2.1.0",
|
|
35
35
|
"react-native-pager-view": "^5.4.25",
|
|
36
|
-
"react-native-safe-area-context": "^
|
|
36
|
+
"react-native-safe-area-context": "^3.0.2",
|
|
37
37
|
"react-native-vector-icons": "^9.1.0",
|
|
38
|
-
"react-native-webview": "^11.
|
|
38
|
+
"react-native-webview": "^11.2.5"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@babel/core": "^7.17.5",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@babel/preset-typescript": "^7.17.12",
|
|
45
45
|
"@babel/runtime": "^7.18.9",
|
|
46
46
|
"@emotion/jest": "^11.9.3",
|
|
47
|
-
"@hero-design/eslint-plugin": "8.
|
|
47
|
+
"@hero-design/eslint-plugin": "8.9.0",
|
|
48
48
|
"@react-native-community/datetimepicker": "^3.5.2",
|
|
49
49
|
"@react-native-community/slider": "4.1.12",
|
|
50
50
|
"@rollup/plugin-babel": "^5.3.1",
|
|
@@ -60,16 +60,16 @@
|
|
|
60
60
|
"@types/react-native": "^0.67.7",
|
|
61
61
|
"@types/react-native-vector-icons": "^6.4.10",
|
|
62
62
|
"babel-plugin-inline-import": "^3.0.0",
|
|
63
|
-
"eslint-config-hd": "8.
|
|
63
|
+
"eslint-config-hd": "8.9.0",
|
|
64
64
|
"jest": "^27.3.1",
|
|
65
|
-
"prettier-config-hd": "8.
|
|
65
|
+
"prettier-config-hd": "8.9.0",
|
|
66
66
|
"react": "18.0.0",
|
|
67
67
|
"react-native": "0.69.7",
|
|
68
68
|
"react-native-gesture-handler": "~2.1.0",
|
|
69
69
|
"react-native-pager-view": "^5.4.25",
|
|
70
|
-
"react-native-safe-area-context": "^
|
|
70
|
+
"react-native-safe-area-context": "^3.0.2",
|
|
71
71
|
"react-native-vector-icons": "^9.1.0",
|
|
72
|
-
"react-native-webview": "^11.
|
|
72
|
+
"react-native-webview": "^11.2.5",
|
|
73
73
|
"react-test-renderer": "18.0.0",
|
|
74
74
|
"rollup": "^2.68.0",
|
|
75
75
|
"rollup-plugin-copy": "^3.4.0",
|
|
@@ -32,7 +32,7 @@ exports[`DatePickerAndroid renders correctly 1`] = `
|
|
|
32
32
|
style={
|
|
33
33
|
Array [
|
|
34
34
|
Object {
|
|
35
|
-
"
|
|
35
|
+
"marginTop": 8,
|
|
36
36
|
"width": "100%",
|
|
37
37
|
},
|
|
38
38
|
undefined,
|
|
@@ -180,6 +180,7 @@ exports[`DatePickerAndroid renders correctly 1`] = `
|
|
|
180
180
|
style={
|
|
181
181
|
Array [
|
|
182
182
|
Object {
|
|
183
|
+
"minHeight": 16,
|
|
183
184
|
"paddingLeft": 16,
|
|
184
185
|
},
|
|
185
186
|
undefined,
|
|
@@ -32,7 +32,7 @@ exports[`DatePickerIOS renders correctly 1`] = `
|
|
|
32
32
|
style={
|
|
33
33
|
Array [
|
|
34
34
|
Object {
|
|
35
|
-
"
|
|
35
|
+
"marginTop": 8,
|
|
36
36
|
"width": "100%",
|
|
37
37
|
},
|
|
38
38
|
undefined,
|
|
@@ -180,6 +180,7 @@ exports[`DatePickerIOS renders correctly 1`] = `
|
|
|
180
180
|
style={
|
|
181
181
|
Array [
|
|
182
182
|
Object {
|
|
183
|
+
"minHeight": 16,
|
|
183
184
|
"paddingLeft": 16,
|
|
184
185
|
},
|
|
185
186
|
undefined,
|
|
@@ -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,"bookmark-added":59011,"bookmark":59012,"box-check":59013,"box":59014,"bpay":59015,"buildings":59016,"cake":59017,"calendar-clock":59018,"calendar":59019,"candy-box-menu":59020,"caret-down-small":59021,"caret-down":59022,"caret-left-small":59023,"caret-left":59024,"caret-right-small":59025,"caret-right":59026,"caret-up-small":59027,"caret-up":59028,"check-radio":59029,"circle-add":59030,"circle-cancel":59031,"circle-check":59032,"circle-down":59033,"circle-info":59034,"circle-left":59035,"circle-ok":59036,"circle-pencil":59037,"circle-question":59038,"circle-remove":59039,"circle-right":59040,"circle-up":59041,"circle-warning":59042,"clock-3":59043,"clock":59044,"cloud-download":59045,"cloud-upload":59046,"cog":59047,"coin":59048,"contacts":59049,"credit-card":59050,"diamond":59051,"direction-arrows":59052,"directory":59053,"document":59054,"dollar-coin-shine":59055,"double-buildings":59056,"edit-template":59057,"envelope":59058,"
|
|
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,"bookmark-added":59011,"bookmark":59012,"box-check":59013,"box":59014,"bpay":59015,"buildings":59016,"cake":59017,"calendar-clock":59018,"calendar":59019,"candy-box-menu":59020,"caret-down-small":59021,"caret-down":59022,"caret-left-small":59023,"caret-left":59024,"caret-right-small":59025,"caret-right":59026,"caret-up-small":59027,"caret-up":59028,"check-radio":59029,"circle-add":59030,"circle-cancel":59031,"circle-check":59032,"circle-down":59033,"circle-info":59034,"circle-left":59035,"circle-ok":59036,"circle-pencil":59037,"circle-question":59038,"circle-remove":59039,"circle-right":59040,"circle-up":59041,"circle-warning":59042,"clock-3":59043,"clock":59044,"cloud-download":59045,"cloud-upload":59046,"cog":59047,"coin":59048,"contacts":59049,"credit-card":59050,"diamond":59051,"direction-arrows":59052,"directory":59053,"document":59054,"dollar-coin-shine":59055,"double-buildings":59056,"edit-template":59057,"envelope":59058,"exclude":59059,"expense":59060,"eye-circle":59061,"eye-invisible":59062,"eye":59063,"face-meh":59064,"face-sad":59065,"face-smiley":59066,"feed":59067,"feedbacks":59068,"file-certified":59069,"file-clone":59070,"file-copy":59071,"file-csv":59072,"file-dispose":59073,"file-doc":59074,"file-excel":59075,"file-export":59076,"file-lock":59077,"file-pdf":59078,"file-powerpoint":59079,"file-search":59080,"file-secured":59081,"file-sheets":59082,"file-slide":59083,"file-verified":59084,"file-word":59085,"file":59086,"filter":59087,"folder-user":59088,"folder":59089,"format-bold":59090,"format-heading1":59091,"format-heading2":59092,"format-italic":59093,"format-list-bulleted":59094,"format-list-numbered":59095,"format-underlined":59096,"funnel-filter":59097,"global-dollar":59098,"globe":59099,"graduation-cap":59100,"graph":59101,"happy-sun":59102,"health-bag":59103,"heart":59104,"home":59105,"image":59106,"import":59107,"incident-siren":59108,"instapay":59109,"list":59110,"loading-2":59111,"loading":59112,"location":59113,"lock":59114,"looks-one":59115,"looks-two":59116,"media-content":59117,"menu":59118,"money-notes":59119,"moneybag":59120,"moon":59121,"multiple-stars":59122,"multiple-users":59123,"node":59124,"open-folder":59125,"paperclip":59126,"payment-summary":59127,"pencil":59128,"phone":59129,"piggy-bank":59130,"plane":59131,"play-circle":59132,"print":59133,"raising-hands":59134,"reply-arrow":59135,"reply":59136,"reschedule":59137,"rostering":59138,"save":59139,"schedule-send":59140,"schedule":59141,"search-person":59142,"send":59143,"speaker-active":59144,"speaker":59145,"star-award":59146,"star-badge":59147,"star-circle":59148,"star-medal":59149,"star":59150,"steps-circle":59151,"stopwatch":59152,"suitcase":59153,"survey":59154,"swag":59155,"switch":59156,"tag":59157,"target":59158,"teams":59159,"timesheet":59160,"touch-id":59161,"trash-bin":59162,"unlock":59163,"user":59164,"video-1":59165,"video-2":59166,"wallet":59167,"warning":59168,"activate-outlined":59169,"add-credit-card-outlined":59170,"add-person-outlined":59171,"add-section-outlined":59172,"add-time-outlined":59173,"add":59174,"adjustment-outlined":59175,"alignment-2-outlined":59176,"alignment-outlined":59177,"all-caps":59178,"arrow-down":59179,"arrow-downwards":59180,"arrow-left":59181,"arrow-leftwards":59182,"arrow-right":59183,"arrow-rightwards":59184,"arrow-up":59185,"arrow-upwards":59186,"article-outlined":59187,"at-sign":59188,"auto-graph-outlined":59189,"bell-active-outlined":59190,"bell-outlined":59191,"bell-slash-outlined":59192,"billing-outlined":59193,"body-outlined":59194,"bold":59195,"bookmark-added-outlined":59196,"bookmark-outlined":59197,"box-check-outlined":59198,"box-outlined":59199,"bullet-points":59200,"cake-outlined":59201,"calendar-dates-outlined":59202,"calendar-star-outlined":59203,"call-split-outlined":59204,"camera-outlined":59205,"cancel":59206,"charging-station-outlined":59207,"chat-bubble-outlined":59208,"chat-unread-outlined":59209,"checkmark":59210,"circle-add-outlined":59211,"circle-cancel-outlined":59212,"circle-down-outlined":59213,"circle-info-outlined":59214,"circle-left-outlined":59215,"circle-ok-outlined":59216,"circle-question-outlined":59217,"circle-remove-outlined":59218,"circle-right-outlined":59219,"circle-up-outlined":59220,"circle-warning-outlined":59221,"clock-2-outlined":59222,"clock-outlined":59223,"cog-outlined":59224,"coin-outlined":59225,"comment-outlined":59226,"contacts-outlined":59227,"contacts-user-outlined":59228,"credit-card-outlined":59229,"cup-outlined":59230,"direction-arrows-outlined":59231,"directory-outlined":59232,"document-outlined":59233,"dollar-box-outlined":59234,"dollar-card-outlined":59235,"dollar-coin-shine-outlined":59236,"dollar-credit-card-outlined":59237,"dollar-sign":59238,"double-buildings-outlined":59239,"double-left-arrows":59240,"double-right-arrows":59241,"download-outlined":59242,"edit-template-outlined":59243,"email-outlined":59244,"enter-arrow":59245,"envelope-outlined":59246,"expense-outlined":59247,"explore-outlined":59248,"external-link":59249,"eye-invisible-outlined":59250,"eye-outlined":59251,"face-id":59252,"face-meh-outlined":59253,"face-open-smiley-outlined":59254,"face-sad-outlined":59255,"face-smiley-outlined":59256,"feed-outlined":59257,"file-certified-outlined":59258,"file-clone-outlined":59259,"file-copy-outlined":59260,"file-dispose-outlined":59261,"file-dollar-certified-outlined":59262,"file-dollar-outlined":59263,"file-download-outlined":59264,"file-export-outlined":59265,"file-lock-outlined":59266,"file-outlined":59267,"file-search-outlined":59268,"file-secured-outlined":59269,"file-statutory-outlined":59270,"file-verified-outlined":59271,"filter-outlined":59272,"folder-outlined":59273,"folder-user-outlined":59274,"funnel-filter-outline":59275,"graph-outlined":59276,"hand-holding-user-outlined":59277,"happy-sun-outlined":59278,"health-bag-outlined":59279,"heart-outlined":59280,"home-active-outlined":59281,"home-outlined":59282,"id-card-outlined":59283,"image-outlined":59284,"import-outlined":59285,"instapay-outlined":59286,"italic":59287,"link-1":59288,"link-2":59289,"list-outlined":59290,"live-help-outlined":59291,"location-on-outlined":59292,"location-outlined":59293,"lock-outlined":59294,"locked-file-outlined":59295,"log-out":59296,"media-content-outlined":59297,"menu-close":59298,"menu-expand":59299,"menu-fold-outlined":59300,"menu-unfold-outlined":59301,"moneybag-outlined":59302,"moon-outlined":59303,"more-horizontal":59304,"more-vertical":59305,"multiple-folders-outlined":59306,"multiple-users-outlined":59307,"near-me-outlined":59308,"node-outlined":59309,"number-points":59310,"number":59311,"overview-outlined":59312,"payment-summary-outlined":59313,"payslip-outlined":59314,"pencil-outlined":59315,"percentage":59316,"phone-outlined":59317,"piggy-bank-outlined":59318,"plane-outlined":59319,"play-circle-outlined":59320,"print-outlined":59321,"qr-code-outlined":59322,"qualification-outlined":59323,"re-assign":59324,"redeem":59325,"refresh":59326,"remove":59327,"reply-outlined":59328,"restart":59329,"return-arrow":59330,"rostering-outlined":59331,"save-outlined":59332,"schedule-outlined":59333,"search-outlined":59334,"search-secured-outlined":59335,"send-outlined":59336,"share-1":59337,"share-2":59338,"share-outlined":59339,"show-chart-outlined":59340,"single-down-arrow":59341,"single-left-arrow":59342,"single-right-arrow":59343,"single-up-arrow":59344,"speaker-active-outlined":59345,"speaker-outlined":59346,"star-circle-outlined":59347,"star-outlined":59348,"stopwatch-outlined":59349,"strikethrough":59350,"suitcase-clock-outlined":59351,"suitcase-outlined":59352,"survey-outlined":59353,"switch-outlined":59354,"sync":59355,"target-outlined":59356,"timesheet-outlined":59357,"today-outlined":59358,"transfer":59359,"trash-bin-outlined":59360,"umbrela-outlined":59361,"unavailable":59362,"underline":59363,"union-outlined":59364,"unlock-outlined":59365,"upload-outlined":59366,"user-circle-outlined":59367,"user-gear-outlined":59368,"user-outlined":59369,"user-rectangle-outlined":59370,"video-1-outlined":59371,"video-2-outlined":59372,"wallet-outlined":59373}
|
|
@@ -59,6 +59,7 @@ const IconList = [
|
|
|
59
59
|
'double-buildings',
|
|
60
60
|
'edit-template',
|
|
61
61
|
'envelope',
|
|
62
|
+
'exclude',
|
|
62
63
|
'expense',
|
|
63
64
|
'eye-circle',
|
|
64
65
|
'eye-invisible',
|
|
@@ -363,6 +364,7 @@ const IconList = [
|
|
|
363
364
|
'umbrela-outlined',
|
|
364
365
|
'unavailable',
|
|
365
366
|
'underline',
|
|
367
|
+
'union-outlined',
|
|
366
368
|
'unlock-outlined',
|
|
367
369
|
'upload-outlined',
|
|
368
370
|
'user-circle-outlined',
|
|
@@ -60,7 +60,7 @@ exports[`Progress.Bar renders correctly with intent 1`] = `
|
|
|
60
60
|
style={
|
|
61
61
|
Object {
|
|
62
62
|
"alignSelf": "stretch",
|
|
63
|
-
"backgroundColor": "#
|
|
63
|
+
"backgroundColor": "#5ace7d",
|
|
64
64
|
"borderBottomRightRadius": 999,
|
|
65
65
|
"borderTopRightRadius": 999,
|
|
66
66
|
"flex": 1,
|
|
@@ -108,7 +108,7 @@ exports[`Progress.Circle allows to custom value renderer 1`] = `
|
|
|
108
108
|
style={
|
|
109
109
|
Array [
|
|
110
110
|
Object {
|
|
111
|
-
"borderColor": "#
|
|
111
|
+
"borderColor": "#5ace7d",
|
|
112
112
|
"borderRadius": 999,
|
|
113
113
|
"borderWidth": 4,
|
|
114
114
|
"height": 72,
|
|
@@ -202,7 +202,7 @@ exports[`Progress.Circle allows to custom value renderer 1`] = `
|
|
|
202
202
|
style={
|
|
203
203
|
Array [
|
|
204
204
|
Object {
|
|
205
|
-
"borderColor": "#
|
|
205
|
+
"borderColor": "#5ace7d",
|
|
206
206
|
"borderRadius": 999,
|
|
207
207
|
"borderWidth": 4,
|
|
208
208
|
"height": 72,
|
|
@@ -272,7 +272,7 @@ exports[`Progress.Circle allows to custom value renderer 1`] = `
|
|
|
272
272
|
style={
|
|
273
273
|
Array [
|
|
274
274
|
Object {
|
|
275
|
-
"backgroundColor": "#
|
|
275
|
+
"backgroundColor": "#5ace7d",
|
|
276
276
|
"borderRadius": 999,
|
|
277
277
|
"height": 4,
|
|
278
278
|
"left": 34,
|
|
@@ -308,7 +308,7 @@ exports[`Progress.Circle allows to custom value renderer 1`] = `
|
|
|
308
308
|
style={
|
|
309
309
|
Array [
|
|
310
310
|
Object {
|
|
311
|
-
"backgroundColor": "#
|
|
311
|
+
"backgroundColor": "#5ace7d",
|
|
312
312
|
"borderRadius": 999,
|
|
313
313
|
"height": 4,
|
|
314
314
|
"left": 34,
|
|
@@ -688,7 +688,7 @@ exports[`Progress.Circle renders correctly with intent 1`] = `
|
|
|
688
688
|
style={
|
|
689
689
|
Array [
|
|
690
690
|
Object {
|
|
691
|
-
"borderColor": "#
|
|
691
|
+
"borderColor": "#5ace7d",
|
|
692
692
|
"borderRadius": 999,
|
|
693
693
|
"borderWidth": 4,
|
|
694
694
|
"height": 72,
|
|
@@ -782,7 +782,7 @@ exports[`Progress.Circle renders correctly with intent 1`] = `
|
|
|
782
782
|
style={
|
|
783
783
|
Array [
|
|
784
784
|
Object {
|
|
785
|
-
"borderColor": "#
|
|
785
|
+
"borderColor": "#5ace7d",
|
|
786
786
|
"borderRadius": 999,
|
|
787
787
|
"borderWidth": 4,
|
|
788
788
|
"height": 72,
|
|
@@ -852,7 +852,7 @@ exports[`Progress.Circle renders correctly with intent 1`] = `
|
|
|
852
852
|
style={
|
|
853
853
|
Array [
|
|
854
854
|
Object {
|
|
855
|
-
"backgroundColor": "#
|
|
855
|
+
"backgroundColor": "#5ace7d",
|
|
856
856
|
"borderRadius": 999,
|
|
857
857
|
"height": 4,
|
|
858
858
|
"left": 34,
|
|
@@ -888,7 +888,7 @@ exports[`Progress.Circle renders correctly with intent 1`] = `
|
|
|
888
888
|
style={
|
|
889
889
|
Array [
|
|
890
890
|
Object {
|
|
891
|
-
"backgroundColor": "#
|
|
891
|
+
"backgroundColor": "#5ace7d",
|
|
892
892
|
"borderRadius": 999,
|
|
893
893
|
"height": 4,
|
|
894
894
|
"left": 34,
|
|
@@ -364,7 +364,7 @@ const RichTextEditor: ComponentType<RichTextEditorProps> = ({
|
|
|
364
364
|
</StyledTextInputContainer>
|
|
365
365
|
<StyledErrorAndHelpTextContainer>
|
|
366
366
|
<StyledErrorAndMaxLengthContainer>
|
|
367
|
-
{
|
|
367
|
+
{error ? (
|
|
368
368
|
<StyledErrorContainer>
|
|
369
369
|
<Icon
|
|
370
370
|
testID="input-error-icon"
|
|
@@ -374,9 +374,10 @@ const RichTextEditor: ComponentType<RichTextEditorProps> = ({
|
|
|
374
374
|
/>
|
|
375
375
|
<StyledError testID="input-error-message">{error}</StyledError>
|
|
376
376
|
</StyledErrorContainer>
|
|
377
|
+
) : (
|
|
378
|
+
!!helpText && <StyledHelperText>{helpText}</StyledHelperText>
|
|
377
379
|
)}
|
|
378
380
|
</StyledErrorAndMaxLengthContainer>
|
|
379
|
-
{!!helpText && <StyledHelperText>{helpText}</StyledHelperText>}
|
|
380
381
|
</StyledErrorAndHelpTextContainer>
|
|
381
382
|
</StyledContainer>
|
|
382
383
|
);
|
|
@@ -5,7 +5,7 @@ exports[`RichTextEditor onMessage recevied event editor-layout should update hei
|
|
|
5
5
|
style={
|
|
6
6
|
Array [
|
|
7
7
|
Object {
|
|
8
|
-
"
|
|
8
|
+
"marginTop": 8,
|
|
9
9
|
"width": "100%",
|
|
10
10
|
},
|
|
11
11
|
undefined,
|
|
@@ -184,6 +184,7 @@ exports[`RichTextEditor onMessage recevied event editor-layout should update hei
|
|
|
184
184
|
style={
|
|
185
185
|
Array [
|
|
186
186
|
Object {
|
|
187
|
+
"minHeight": 16,
|
|
187
188
|
"paddingLeft": 16,
|
|
188
189
|
},
|
|
189
190
|
undefined,
|
|
@@ -269,7 +270,7 @@ exports[`RichTextEditor should render correctly 1`] = `
|
|
|
269
270
|
style={
|
|
270
271
|
Array [
|
|
271
272
|
Object {
|
|
272
|
-
"
|
|
273
|
+
"marginTop": 8,
|
|
273
274
|
"width": "100%",
|
|
274
275
|
},
|
|
275
276
|
undefined,
|
|
@@ -447,6 +448,7 @@ exports[`RichTextEditor should render correctly 1`] = `
|
|
|
447
448
|
style={
|
|
448
449
|
Array [
|
|
449
450
|
Object {
|
|
451
|
+
"minHeight": 16,
|
|
450
452
|
"paddingLeft": 16,
|
|
451
453
|
},
|
|
452
454
|
undefined,
|
|
@@ -30,7 +30,7 @@ Array [
|
|
|
30
30
|
style={
|
|
31
31
|
Array [
|
|
32
32
|
Object {
|
|
33
|
-
"
|
|
33
|
+
"marginTop": 8,
|
|
34
34
|
"width": "100%",
|
|
35
35
|
},
|
|
36
36
|
undefined,
|
|
@@ -186,6 +186,7 @@ Array [
|
|
|
186
186
|
style={
|
|
187
187
|
Array [
|
|
188
188
|
Object {
|
|
189
|
+
"minHeight": 16,
|
|
189
190
|
"paddingLeft": 16,
|
|
190
191
|
},
|
|
191
192
|
undefined,
|
|
@@ -1392,7 +1393,7 @@ Array [
|
|
|
1392
1393
|
style={
|
|
1393
1394
|
Array [
|
|
1394
1395
|
Object {
|
|
1395
|
-
"
|
|
1396
|
+
"marginTop": 8,
|
|
1396
1397
|
"width": "100%",
|
|
1397
1398
|
},
|
|
1398
1399
|
undefined,
|
|
@@ -1542,6 +1543,7 @@ Array [
|
|
|
1542
1543
|
style={
|
|
1543
1544
|
Array [
|
|
1544
1545
|
Object {
|
|
1546
|
+
"minHeight": 16,
|
|
1545
1547
|
"paddingLeft": 16,
|
|
1546
1548
|
},
|
|
1547
1549
|
undefined,
|
|
@@ -1603,7 +1605,7 @@ Array [
|
|
|
1603
1605
|
style={
|
|
1604
1606
|
Array [
|
|
1605
1607
|
Object {
|
|
1606
|
-
"
|
|
1608
|
+
"marginTop": 8,
|
|
1607
1609
|
"width": "100%",
|
|
1608
1610
|
},
|
|
1609
1611
|
undefined,
|
|
@@ -1753,6 +1755,7 @@ Array [
|
|
|
1753
1755
|
style={
|
|
1754
1756
|
Array [
|
|
1755
1757
|
Object {
|
|
1758
|
+
"minHeight": 16,
|
|
1756
1759
|
"paddingLeft": 16,
|
|
1757
1760
|
},
|
|
1758
1761
|
undefined,
|
|
@@ -3136,7 +3139,7 @@ Array [
|
|
|
3136
3139
|
style={
|
|
3137
3140
|
Array [
|
|
3138
3141
|
Object {
|
|
3139
|
-
"
|
|
3142
|
+
"marginTop": 8,
|
|
3140
3143
|
"width": "100%",
|
|
3141
3144
|
},
|
|
3142
3145
|
undefined,
|
|
@@ -3299,6 +3302,7 @@ Array [
|
|
|
3299
3302
|
style={
|
|
3300
3303
|
Array [
|
|
3301
3304
|
Object {
|
|
3305
|
+
"minHeight": 16,
|
|
3302
3306
|
"paddingLeft": 16,
|
|
3303
3307
|
},
|
|
3304
3308
|
undefined,
|
|
@@ -3360,7 +3364,7 @@ Array [
|
|
|
3360
3364
|
style={
|
|
3361
3365
|
Array [
|
|
3362
3366
|
Object {
|
|
3363
|
-
"
|
|
3367
|
+
"marginTop": 8,
|
|
3364
3368
|
"width": "100%",
|
|
3365
3369
|
},
|
|
3366
3370
|
undefined,
|
|
@@ -3510,6 +3514,7 @@ Array [
|
|
|
3510
3514
|
style={
|
|
3511
3515
|
Array [
|
|
3512
3516
|
Object {
|
|
3517
|
+
"minHeight": 16,
|
|
3513
3518
|
"paddingLeft": 16,
|
|
3514
3519
|
},
|
|
3515
3520
|
undefined,
|
|
@@ -30,7 +30,7 @@ Array [
|
|
|
30
30
|
style={
|
|
31
31
|
Array [
|
|
32
32
|
Object {
|
|
33
|
-
"
|
|
33
|
+
"marginTop": 8,
|
|
34
34
|
"width": "100%",
|
|
35
35
|
},
|
|
36
36
|
undefined,
|
|
@@ -185,6 +185,7 @@ Array [
|
|
|
185
185
|
style={
|
|
186
186
|
Array [
|
|
187
187
|
Object {
|
|
188
|
+
"minHeight": 16,
|
|
188
189
|
"paddingLeft": 16,
|
|
189
190
|
},
|
|
190
191
|
undefined,
|
|
@@ -1317,7 +1318,7 @@ Array [
|
|
|
1317
1318
|
style={
|
|
1318
1319
|
Array [
|
|
1319
1320
|
Object {
|
|
1320
|
-
"
|
|
1321
|
+
"marginTop": 8,
|
|
1321
1322
|
"width": "100%",
|
|
1322
1323
|
},
|
|
1323
1324
|
undefined,
|
|
@@ -1467,6 +1468,7 @@ Array [
|
|
|
1467
1468
|
style={
|
|
1468
1469
|
Array [
|
|
1469
1470
|
Object {
|
|
1471
|
+
"minHeight": 16,
|
|
1470
1472
|
"paddingLeft": 16,
|
|
1471
1473
|
},
|
|
1472
1474
|
undefined,
|
|
@@ -1528,7 +1530,7 @@ Array [
|
|
|
1528
1530
|
style={
|
|
1529
1531
|
Array [
|
|
1530
1532
|
Object {
|
|
1531
|
-
"
|
|
1533
|
+
"marginTop": 8,
|
|
1532
1534
|
"width": "100%",
|
|
1533
1535
|
},
|
|
1534
1536
|
undefined,
|
|
@@ -1678,6 +1680,7 @@ Array [
|
|
|
1678
1680
|
style={
|
|
1679
1681
|
Array [
|
|
1680
1682
|
Object {
|
|
1683
|
+
"minHeight": 16,
|
|
1681
1684
|
"paddingLeft": 16,
|
|
1682
1685
|
},
|
|
1683
1686
|
undefined,
|
|
@@ -2933,7 +2936,7 @@ Array [
|
|
|
2933
2936
|
style={
|
|
2934
2937
|
Array [
|
|
2935
2938
|
Object {
|
|
2936
|
-
"
|
|
2939
|
+
"marginTop": 8,
|
|
2937
2940
|
"width": "100%",
|
|
2938
2941
|
},
|
|
2939
2942
|
undefined,
|
|
@@ -3096,6 +3099,7 @@ Array [
|
|
|
3096
3099
|
style={
|
|
3097
3100
|
Array [
|
|
3098
3101
|
Object {
|
|
3102
|
+
"minHeight": 16,
|
|
3099
3103
|
"paddingLeft": 16,
|
|
3100
3104
|
},
|
|
3101
3105
|
undefined,
|
|
@@ -3157,7 +3161,7 @@ Array [
|
|
|
3157
3161
|
style={
|
|
3158
3162
|
Array [
|
|
3159
3163
|
Object {
|
|
3160
|
-
"
|
|
3164
|
+
"marginTop": 8,
|
|
3161
3165
|
"width": "100%",
|
|
3162
3166
|
},
|
|
3163
3167
|
undefined,
|
|
@@ -3307,6 +3311,7 @@ Array [
|
|
|
3307
3311
|
style={
|
|
3308
3312
|
Array [
|
|
3309
3313
|
Object {
|
|
3314
|
+
"minHeight": 16,
|
|
3310
3315
|
"paddingLeft": 16,
|
|
3311
3316
|
},
|
|
3312
3317
|
undefined,
|
|
@@ -6,7 +6,7 @@ export type Variant = 'default' | 'filled' | 'disabled' | 'readonly' | 'error';
|
|
|
6
6
|
|
|
7
7
|
const StyledContainer = styled(View)(({ theme }) => ({
|
|
8
8
|
width: '100%',
|
|
9
|
-
|
|
9
|
+
marginTop: theme.__hd__.textInput.space.containerMarginTop,
|
|
10
10
|
}));
|
|
11
11
|
|
|
12
12
|
const StyledLabelContainer = styled(View)(({ theme }) => ({
|
|
@@ -125,6 +125,7 @@ const StyledTextInputAndLabelContainer = styled(View)(() => ({
|
|
|
125
125
|
const StyledErrorAndHelpTextContainer = styled(View)(({ theme }) => ({
|
|
126
126
|
paddingLeft:
|
|
127
127
|
theme.__hd__.textInput.space.errorAndHelpTextContainerPaddingLeft,
|
|
128
|
+
minHeight: theme.__hd__.textInput.sizes.errorAndHelpTextContainerHeight,
|
|
128
129
|
}));
|
|
129
130
|
|
|
130
131
|
const StyledErrorAndMaxLengthContainer = styled(View)(() => ({
|