@hero-design/rn 8.27.0 → 8.27.2

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.
Files changed (44) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/assets/fonts/hero-icons-mobile.ttf +0 -0
  3. package/es/index.js +319 -311
  4. package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
  5. package/lib/index.js +319 -311
  6. package/package.json +5 -5
  7. package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +6 -6
  8. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +2 -2
  9. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerCalendar.spec.tsx.snap +2 -2
  10. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +2 -2
  11. package/src/components/FAB/ActionGroup/StyledActionGroup.tsx +3 -17
  12. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +1065 -557
  13. package/src/components/FAB/ActionGroup/__tests__/index.spec.tsx +15 -9
  14. package/src/components/FAB/ActionGroup/index.tsx +35 -97
  15. package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
  16. package/src/components/Icon/IconList.ts +1 -0
  17. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +10 -10
  18. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +10 -10
  19. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +10 -10
  20. package/src/components/TextInput/index.tsx +1 -1
  21. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +2 -2
  22. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +2 -2
  23. package/src/components/Toolbar/StyledToolbar.tsx +23 -2
  24. package/src/components/Toolbar/ToolbarGroup.tsx +3 -4
  25. package/src/components/Toolbar/ToolbarItem.tsx +75 -19
  26. package/src/components/Toolbar/__tests__/ToolbarItem.spec.tsx +39 -22
  27. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +318 -186
  28. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +280 -135
  29. package/src/components/Typography/Text/StyledText.tsx +2 -1
  30. package/src/components/Typography/Text/index.tsx +2 -1
  31. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +11 -2
  32. package/src/theme/components/fab.ts +0 -1
  33. package/src/theme/components/toolbar.ts +14 -2
  34. package/src/theme/components/typography.ts +1 -0
  35. package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +1 -7
  36. package/types/components/Icon/IconList.d.ts +1 -1
  37. package/types/components/Icon/index.d.ts +1 -1
  38. package/types/components/Icon/utils.d.ts +1 -1
  39. package/types/components/Toolbar/StyledToolbar.d.ts +11 -1
  40. package/types/components/Typography/Text/StyledText.d.ts +1 -1
  41. package/types/components/Typography/Text/index.d.ts +1 -1
  42. package/types/theme/components/fab.d.ts +0 -1
  43. package/types/theme/components/toolbar.d.ts +9 -0
  44. package/types/theme/components/typography.d.ts +1 -0
@@ -10,7 +10,7 @@ describe('ActionGroup', () => {
10
10
  ${true}
11
11
  ${false}
12
12
  `('has active $active', ({ active }) => {
13
- const { toJSON, queryByTestId, queryByText } = renderWithTheme(
13
+ const { toJSON, getByTestId, getByText } = renderWithTheme(
14
14
  <ActionGroup
15
15
  fabTitle="Shout out"
16
16
  active={active}
@@ -39,19 +39,25 @@ describe('ActionGroup', () => {
39
39
 
40
40
  expect(toJSON()).toMatchSnapshot();
41
41
 
42
- expect(queryByText('What would you like to create?')).toBeDefined();
43
- expect(queryByText('Shout out')).toBeDefined();
44
- expect(queryByTestId('speaker-action-item')).toBeDefined();
45
- expect(queryByTestId('target-action-item')).toBeDefined();
46
- expect(queryByTestId('plane-action-item')).toBeDefined();
47
- expect(queryByTestId('health-bag-action-item')).toBeDefined();
42
+ expect(getByText('What would you like to create?')).toBeDefined();
43
+ expect(getByText('Shout out')).toBeDefined();
44
+ expect(getByTestId('speaker-action-item')).toBeDefined();
45
+ expect(getByTestId('target-action-item')).toBeDefined();
46
+ expect(getByTestId('plane-action-item')).toBeDefined();
47
+ expect(getByTestId('health-bag-action-item')).toBeDefined();
48
48
 
49
49
  if (active) {
50
50
  // verify action group appears
51
- expect(queryByTestId('action-group')).toHaveStyle({
51
+ expect(getByTestId('action-group')).toHaveStyle({
52
52
  transform: [{ translateX: 0 }],
53
53
  });
54
- expect(queryByTestId('back-drop')).toHaveProp('pointerEvents', 'auto');
54
+ expect(getByTestId('back-drop')).toHaveProp('pointerEvents', 'auto');
55
+ } else {
56
+ // verify action group disappears
57
+ expect(getByTestId('action-group')).toHaveStyle({
58
+ transform: [{ translateX: 400 }],
59
+ });
60
+ expect(getByTestId('back-drop')).toHaveProp('pointerEvents', 'box-none');
55
61
  }
56
62
  });
57
63
 
@@ -1,18 +1,16 @@
1
- import React, { useCallback, useEffect, useRef, useState } from 'react';
1
+ import React, { useEffect, useRef } from 'react';
2
+ import { Animated, Easing, Platform, View } from 'react-native';
2
3
  import type { StyleProp, ViewStyle } from 'react-native';
3
- import { Animated, Easing, Modal, Platform, View } from 'react-native';
4
- import { useTheme } from '../../../theme';
5
- import type { IconName } from '../../Icon';
6
- import type { ActionItemProps } from './ActionItem';
7
4
  import ActionItem from './ActionItem';
8
5
  import {
9
- StyledActionGroupContainer,
10
6
  StyledBackdrop,
11
7
  StyledContainer,
12
8
  StyledFAB,
13
9
  StyledHeaderText,
14
- StyledModalView,
10
+ StyledActionGroupContainer,
15
11
  } from './StyledActionGroup';
12
+ import type { IconName } from '../../Icon';
13
+ import type { ActionItemProps } from './ActionItem';
16
14
 
17
15
  type ActionItemsContainerProps = {
18
16
  style?: StyleProp<ViewStyle>;
@@ -76,7 +74,6 @@ export interface ActionGroupProps {
76
74
 
77
75
  testID?: string;
78
76
  }
79
-
80
77
  const ActionGroup = ({
81
78
  headerTitle,
82
79
  onPress,
@@ -87,48 +84,18 @@ const ActionGroup = ({
87
84
  fabTitle,
88
85
  fabIcon = 'add',
89
86
  }: ActionGroupProps) => {
90
- const theme = useTheme();
91
- // Internal state to control the animation of the action group
92
- const [visible, setVisibility] = useState(active);
93
87
  const tranlateXAnimation = useRef<Animated.Value>(
94
88
  new Animated.Value(active ? 1 : 0)
95
89
  );
96
-
97
- useEffect(() => {
98
- if (active && !visible) {
99
- setVisibility(true);
100
- }
101
- }, [active]);
102
-
103
90
  useEffect(() => {
104
- if (active) {
105
- const animation = Animated.timing(tranlateXAnimation.current, {
106
- toValue: 1,
107
- useNativeDriver: Platform.OS === 'ios' || Platform.OS === 'android',
108
- easing: Easing.inOut(Easing.cubic),
109
- });
110
-
111
- animation.start();
112
- }
113
- }, [active]);
114
-
115
- // Make sure the animation finishes running before closing the modal
116
- const onInternalFABPress = useCallback(() => {
117
- if (!onPress) {
118
- return;
119
- }
120
-
121
91
  const animation = Animated.timing(tranlateXAnimation.current, {
122
- toValue: 0,
92
+ toValue: active ? 1 : 0,
123
93
  useNativeDriver: Platform.OS === 'ios' || Platform.OS === 'android',
124
94
  easing: Easing.inOut(Easing.cubic),
125
95
  });
126
96
 
127
- animation.start(() => {
128
- setVisibility(false);
129
- onPress();
130
- });
131
- }, [visible]);
97
+ animation.start();
98
+ }, [active]);
132
99
 
133
100
  const interpolatedTranlateXAnimation = tranlateXAnimation.current.interpolate(
134
101
  {
@@ -150,63 +117,34 @@ const ActionGroup = ({
150
117
 
151
118
  return (
152
119
  <StyledContainer testID={testID} pointerEvents="box-none" style={style}>
153
- <Modal
154
- visible={visible}
155
- transparent
156
- statusBarTranslucent
157
- animationType="none"
120
+ <StyledBackdrop
121
+ pointerEvents={active ? 'auto' : 'box-none'}
122
+ testID="back-drop"
123
+ style={{ opacity: interpolatedBackdropOpacityAnimation }}
124
+ />
125
+ <StyledActionGroupContainer
126
+ pointerEvents={active ? 'auto' : 'none'}
127
+ testID="action-group"
128
+ style={{
129
+ opacity: interpolatedActionGroupOpacityAnimation,
130
+ transform: [{ translateX: interpolatedTranlateXAnimation }],
131
+ }}
158
132
  >
159
- <StyledBackdrop
160
- style={{
161
- opacity: interpolatedBackdropOpacityAnimation,
162
- }}
163
- testID="back-drop"
164
- pointerEvents={active ? 'auto' : 'box-none'}
165
- />
166
-
167
- <StyledModalView>
168
- <StyledActionGroupContainer
169
- pointerEvents={active ? 'auto' : 'none'}
170
- testID="action-group"
171
- style={{
172
- opacity: interpolatedActionGroupOpacityAnimation,
173
- transform: [{ translateX: interpolatedTranlateXAnimation }],
174
- }}
175
- >
176
- {!!headerTitle && (
177
- <StyledHeaderText testID="header-text">
178
- {headerTitle}
179
- </StyledHeaderText>
180
- )}
181
- <ActionItemsListComponent items={items} />
182
- </StyledActionGroupContainer>
183
-
184
- {active && (
185
- <StyledFAB
186
- testID="fab"
187
- icon={fabIcon}
188
- onPress={onInternalFABPress}
189
- animated
190
- active={active}
191
- title={fabTitle}
192
- style={{
193
- marginBottom: theme.__hd__.fab.space.internalFABMarginBottom,
194
- }}
195
- />
196
- )}
197
- </StyledModalView>
198
- </Modal>
199
-
200
- {!active && (
201
- <StyledFAB
202
- testID="fab"
203
- icon={fabIcon}
204
- onPress={onPress}
205
- animated
206
- active={active}
207
- title={fabTitle}
208
- />
209
- )}
133
+ {!!headerTitle && (
134
+ <StyledHeaderText testID="header-text">
135
+ {headerTitle}
136
+ </StyledHeaderText>
137
+ )}
138
+ <ActionItemsListComponent items={items} />
139
+ </StyledActionGroupContainer>
140
+ <StyledFAB
141
+ testID="fab"
142
+ icon={fabIcon}
143
+ onPress={onPress}
144
+ animated
145
+ active={active}
146
+ title={fabTitle}
147
+ />
210
148
  </StyledContainer>
211
149
  );
212
150
  };
@@ -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,"expense":59061,"eye-circle":59062,"eye-invisible":59063,"eye":59064,"face-meh":59065,"face-sad":59066,"face-smiley":59067,"feed":59068,"feedbacks":59069,"file-certified":59070,"file-clone":59071,"file-copy":59072,"file-csv":59073,"file-dispose":59074,"file-doc":59075,"file-excel":59076,"file-export":59077,"file-lock":59078,"file-pdf":59079,"file-powerpoint":59080,"file-search":59081,"file-secured":59082,"file-sheets":59083,"file-slide":59084,"file-verified":59085,"file-word":59086,"file":59087,"filter":59088,"folder-user":59089,"folder":59090,"format-bold":59091,"format-heading1":59092,"format-heading2":59093,"format-italic":59094,"format-list-bulleted":59095,"format-list-numbered":59096,"format-underlined":59097,"funnel-filter":59098,"global-dollar":59099,"globe":59100,"graduation-cap":59101,"graph":59102,"happy-sun":59103,"health-bag":59104,"heart":59105,"home":59106,"image":59107,"import":59108,"incident-siren":59109,"instapay":59110,"list":59111,"loading-2":59112,"loading":59113,"location":59114,"lock":59115,"looks-one":59116,"looks-two":59117,"media-content":59118,"menu":59119,"money-notes":59120,"moneybag":59121,"moon":59122,"multiple-stars":59123,"multiple-users":59124,"node":59125,"open-folder":59126,"paperclip":59127,"payment-summary":59128,"pencil":59129,"phone":59130,"piggy-bank":59131,"plane-up":59132,"plane":59133,"play-circle":59134,"print":59135,"raising-hands":59136,"reply-arrow":59137,"reply":59138,"reschedule":59139,"rostering":59140,"save":59141,"schedule-send":59142,"schedule":59143,"search-person":59144,"send":59145,"speaker-active":59146,"speaker":59147,"star-award":59148,"star-badge":59149,"star-circle":59150,"star-medal":59151,"star":59152,"steps-circle":59153,"stopwatch":59154,"suitcase":59155,"surfing":59156,"survey":59157,"swag-pillar-benefit":59158,"swag-pillar-career":59159,"swag-pillar-money":59160,"swag-pillar-work":59161,"swag":59162,"switch":59163,"tag":59164,"target":59165,"teams":59166,"timesheet":59167,"touch-id":59168,"trash-bin":59169,"unlock":59170,"user":59171,"video-1":59172,"video-2":59173,"wallet":59174,"warning":59175,"activate-outlined":59176,"add-credit-card-outlined":59177,"add-person-outlined":59178,"add-section-outlined":59179,"add-time-outlined":59180,"add":59181,"adjustment-outlined":59182,"alignment-2-outlined":59183,"alignment-outlined":59184,"all-caps":59185,"arrow-down":59186,"arrow-downwards":59187,"arrow-left":59188,"arrow-leftwards":59189,"arrow-right":59190,"arrow-rightwards":59191,"arrow-up":59192,"arrow-upwards":59193,"article-outlined":59194,"at-sign":59195,"auto-graph-outlined":59196,"beer-outlined":59197,"bell-active-outlined":59198,"bell-outlined":59199,"bell-slash-outlined":59200,"billing-outlined":59201,"body-outlined":59202,"bold":59203,"book-outlined":59204,"bookmark-added-outlined":59205,"bookmark-outlined":59206,"box-check-outlined":59207,"box-outlined":59208,"bullet-points":59209,"cake-outlined":59210,"calendar-dates-outlined":59211,"calendar-star-outlined":59212,"call-split-outlined":59213,"camera-outlined":59214,"cancel":59215,"car-forward-outlined":59216,"charging-station-outlined":59217,"chat-bubble-outlined":59218,"chat-unread-outlined":59219,"checkmark":59220,"circle-add-outlined":59221,"circle-cancel-outlined":59222,"circle-down-outlined":59223,"circle-info-outlined":59224,"circle-left-outlined":59225,"circle-ok-outlined":59226,"circle-question-outlined":59227,"circle-remove-outlined":59228,"circle-right-outlined":59229,"circle-up-outlined":59230,"circle-warning-outlined":59231,"clock-2-outlined":59232,"clock-outlined":59233,"cog-outlined":59234,"coin-outlined":59235,"coin-super-outlined":59236,"comment-outlined":59237,"contacts-outlined":59238,"contacts-user-outlined":59239,"credit-card-outlined":59240,"cup-outlined":59241,"dentistry-outlined":59242,"direction-arrows-outlined":59243,"directory-outlined":59244,"document-outlined":59245,"dollar-box-outlined":59246,"dollar-card-outlined":59247,"dollar-coin-shine-outlined":59248,"dollar-credit-card-outlined":59249,"dollar-sign":59250,"double-buildings-outlined":59251,"double-left-arrows":59252,"double-right-arrows":59253,"download-box-outlined":59254,"download-outlined":59255,"edit-template-outlined":59256,"email-outlined":59257,"enter-arrow":59258,"envelope-outlined":59259,"expense-outlined":59260,"explore-outlined":59261,"extension-outlined":59262,"external-link":59263,"eye-invisible-outlined":59264,"eye-outlined":59265,"face-id":59266,"face-meh-outlined":59267,"face-open-smiley-outlined":59268,"face-sad-outlined":59269,"face-smiley-outlined":59270,"fastfood-outlined":59271,"feed-outlined":59272,"file-certified-outlined":59273,"file-clone-outlined":59274,"file-copy-outlined":59275,"file-dispose-outlined":59276,"file-dollar-certified-outlined":59277,"file-dollar-outlined":59278,"file-download-outlined":59279,"file-export-outlined":59280,"file-lock-outlined":59281,"file-outlined":59282,"file-search-outlined":59283,"file-secured-outlined":59284,"file-statutory-outlined":59285,"file-verified-outlined":59286,"filter-outlined":59287,"folder-outlined":59288,"folder-user-outlined":59289,"form-outlined":59290,"funnel-filter-outline":59291,"graph-outlined":59292,"hand-holding-user-outlined":59293,"happy-sun-outlined":59294,"health-bag-outlined":59295,"heart-outlined":59296,"home-active-outlined":59297,"home-outlined":59298,"id-card-outlined":59299,"image-outlined":59300,"import-outlined":59301,"instapay-outlined":59302,"italic":59303,"link-1":59304,"link-2":59305,"list-outlined":59306,"live-help-outlined":59307,"location-on-outlined":59308,"location-outlined":59309,"lock-outlined":59310,"locked-file-outlined":59311,"log-out":59312,"media-content-outlined":59313,"menu-close":59314,"menu-expand":59315,"menu-fold-outlined":59316,"menu-unfold-outlined":59317,"moneybag-outlined":59318,"moon-outlined":59319,"more-horizontal":59320,"more-vertical":59321,"multiple-folders-outlined":59322,"multiple-users-outlined":59323,"near-me-outlined":59324,"node-outlined":59325,"number-points":59326,"number":59327,"overview-outlined":59328,"payment-summary-outlined":59329,"payslip-outlined":59330,"pencil-outlined":59331,"percentage":59332,"phone-outlined":59333,"piggy-bank-outlined":59334,"plane-outlined":59335,"play-circle-outlined":59336,"print-outlined":59337,"qr-code-outlined":59338,"qualification-outlined":59339,"re-assign":59340,"redeem":59341,"refresh":59342,"remove":59343,"reply-outlined":59344,"restart":59345,"return-arrow":59346,"rostering-outlined":59347,"save-outlined":59348,"schedule-outlined":59349,"search-outlined":59350,"search-secured-outlined":59351,"send-outlined":59352,"share-1":59353,"share-2":59354,"share-outlined":59355,"show-chart-outlined":59356,"single-down-arrow":59357,"single-left-arrow":59358,"single-right-arrow":59359,"single-up-arrow":59360,"speaker-active-outlined":59361,"speaker-outlined":59362,"star-circle-outlined":59363,"star-outlined":59364,"stopwatch-outlined":59365,"strikethrough":59366,"styler-outlined":59367,"suitcase-clock-outlined":59368,"suitcase-outlined":59369,"survey-outlined":59370,"switch-outlined":59371,"sync":59372,"tag-outlined":59373,"target-outlined":59374,"tennis-outlined":59375,"ticket-outlined":59376,"timesheet-outlined":59377,"today-outlined":59378,"transfer":59379,"trash-bin-outlined":59380,"umbrela-outlined":59381,"unavailable":59382,"underline":59383,"union-outlined":59384,"unlock-outlined":59385,"upload-outlined":59386,"user-circle-outlined":59387,"user-gear-outlined":59388,"user-outlined":59389,"user-rectangle-outlined":59390,"video-1-outlined":59391,"video-2-outlined":59392,"volunteer-outlined":59393,"wallet-outlined":59394}
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,"expense":59061,"eye-circle":59062,"eye-invisible":59063,"eye":59064,"face-meh":59065,"face-sad":59066,"face-smiley":59067,"feed":59068,"feedbacks":59069,"file-certified":59070,"file-clone":59071,"file-copy":59072,"file-csv":59073,"file-dispose":59074,"file-doc":59075,"file-excel":59076,"file-export":59077,"file-lock":59078,"file-pdf":59079,"file-powerpoint":59080,"file-search":59081,"file-secured":59082,"file-sheets":59083,"file-slide":59084,"file-verified":59085,"file-word":59086,"file":59087,"filter":59088,"folder-user":59089,"folder":59090,"format-bold":59091,"format-heading1":59092,"format-heading2":59093,"format-italic":59094,"format-list-bulleted":59095,"format-list-numbered":59096,"format-underlined":59097,"funnel-filter":59098,"global-dollar":59099,"globe":59100,"graduation-cap":59101,"graph":59102,"happy-sun":59103,"health-bag":59104,"heart":59105,"home":59106,"image":59107,"import":59108,"incident-siren":59109,"instapay":59110,"list":59111,"loading-2":59112,"loading":59113,"location":59114,"lock":59115,"looks-one":59116,"looks-two":59117,"media-content":59118,"menu":59119,"money-notes":59120,"moneybag":59121,"moon":59122,"multiple-stars":59123,"multiple-users":59124,"node":59125,"open-folder":59126,"paperclip":59127,"payment-summary":59128,"pencil":59129,"phone":59130,"piggy-bank":59131,"plane-up":59132,"plane":59133,"play-circle":59134,"print":59135,"raising-hands":59136,"reply-arrow":59137,"reply":59138,"reschedule":59139,"rostering":59140,"save":59141,"schedule-send":59142,"schedule":59143,"search-person":59144,"send":59145,"speaker-active":59146,"speaker":59147,"star-award":59148,"star-badge":59149,"star-circle":59150,"star-medal":59151,"star":59152,"steps-circle":59153,"stopwatch":59154,"suitcase":59155,"surfing":59156,"survey":59157,"swag-pillar-benefit":59158,"swag-pillar-career":59159,"swag-pillar-money":59160,"swag-pillar-work":59161,"swag":59162,"switch":59163,"tag":59164,"target":59165,"teams":59166,"timesheet":59167,"touch-id":59168,"trash-bin":59169,"unlock":59170,"user":59171,"video-1":59172,"video-2":59173,"wallet":59174,"warning":59175,"activate-outlined":59176,"add-credit-card-outlined":59177,"add-person-outlined":59178,"add-section-outlined":59179,"add-time-outlined":59180,"add":59181,"adjustment-outlined":59182,"ai-outlined":59183,"alignment-2-outlined":59184,"alignment-outlined":59185,"all-caps":59186,"arrow-down":59187,"arrow-downwards":59188,"arrow-left":59189,"arrow-leftwards":59190,"arrow-right":59191,"arrow-rightwards":59192,"arrow-up":59193,"arrow-upwards":59194,"article-outlined":59195,"at-sign":59196,"auto-graph-outlined":59197,"beer-outlined":59198,"bell-active-outlined":59199,"bell-outlined":59200,"bell-slash-outlined":59201,"billing-outlined":59202,"body-outlined":59203,"bold":59204,"book-outlined":59205,"bookmark-added-outlined":59206,"bookmark-outlined":59207,"box-check-outlined":59208,"box-outlined":59209,"bullet-points":59210,"cake-outlined":59211,"calendar-dates-outlined":59212,"calendar-star-outlined":59213,"call-split-outlined":59214,"camera-outlined":59215,"cancel":59216,"car-forward-outlined":59217,"charging-station-outlined":59218,"chat-bubble-outlined":59219,"chat-unread-outlined":59220,"checkmark":59221,"circle-add-outlined":59222,"circle-cancel-outlined":59223,"circle-down-outlined":59224,"circle-info-outlined":59225,"circle-left-outlined":59226,"circle-ok-outlined":59227,"circle-question-outlined":59228,"circle-remove-outlined":59229,"circle-right-outlined":59230,"circle-up-outlined":59231,"circle-warning-outlined":59232,"clock-2-outlined":59233,"clock-outlined":59234,"cog-outlined":59235,"coin-outlined":59236,"coin-super-outlined":59237,"comment-outlined":59238,"contacts-outlined":59239,"contacts-user-outlined":59240,"credit-card-outlined":59241,"cup-outlined":59242,"dentistry-outlined":59243,"direction-arrows-outlined":59244,"directory-outlined":59245,"document-outlined":59246,"dollar-box-outlined":59247,"dollar-card-outlined":59248,"dollar-coin-shine-outlined":59249,"dollar-credit-card-outlined":59250,"dollar-sign":59251,"double-buildings-outlined":59252,"double-left-arrows":59253,"double-right-arrows":59254,"download-box-outlined":59255,"download-outlined":59256,"edit-template-outlined":59257,"email-outlined":59258,"enter-arrow":59259,"envelope-outlined":59260,"expense-outlined":59261,"explore-outlined":59262,"extension-outlined":59263,"external-link":59264,"eye-invisible-outlined":59265,"eye-outlined":59266,"face-id":59267,"face-meh-outlined":59268,"face-open-smiley-outlined":59269,"face-sad-outlined":59270,"face-smiley-outlined":59271,"fastfood-outlined":59272,"feed-outlined":59273,"file-certified-outlined":59274,"file-clone-outlined":59275,"file-copy-outlined":59276,"file-dispose-outlined":59277,"file-dollar-certified-outlined":59278,"file-dollar-outlined":59279,"file-download-outlined":59280,"file-export-outlined":59281,"file-lock-outlined":59282,"file-outlined":59283,"file-search-outlined":59284,"file-secured-outlined":59285,"file-statutory-outlined":59286,"file-verified-outlined":59287,"filter-outlined":59288,"folder-outlined":59289,"folder-user-outlined":59290,"form-outlined":59291,"funnel-filter-outline":59292,"graph-outlined":59293,"hand-holding-user-outlined":59294,"happy-sun-outlined":59295,"health-bag-outlined":59296,"heart-outlined":59297,"home-active-outlined":59298,"home-outlined":59299,"id-card-outlined":59300,"image-outlined":59301,"import-outlined":59302,"instapay-outlined":59303,"italic":59304,"link-1":59305,"link-2":59306,"list-outlined":59307,"live-help-outlined":59308,"location-on-outlined":59309,"location-outlined":59310,"lock-outlined":59311,"locked-file-outlined":59312,"log-out":59313,"media-content-outlined":59314,"menu-close":59315,"menu-expand":59316,"menu-fold-outlined":59317,"menu-unfold-outlined":59318,"moneybag-outlined":59319,"moon-outlined":59320,"more-horizontal":59321,"more-vertical":59322,"multiple-folders-outlined":59323,"multiple-users-outlined":59324,"near-me-outlined":59325,"node-outlined":59326,"number-points":59327,"number":59328,"overview-outlined":59329,"payment-summary-outlined":59330,"payslip-outlined":59331,"pencil-outlined":59332,"percentage":59333,"phone-outlined":59334,"piggy-bank-outlined":59335,"plane-outlined":59336,"play-circle-outlined":59337,"print-outlined":59338,"qr-code-outlined":59339,"qualification-outlined":59340,"re-assign":59341,"redeem":59342,"refresh":59343,"remove":59344,"reply-outlined":59345,"restart":59346,"return-arrow":59347,"rostering-outlined":59348,"save-outlined":59349,"schedule-outlined":59350,"search-outlined":59351,"search-secured-outlined":59352,"send-outlined":59353,"share-1":59354,"share-2":59355,"share-outlined":59356,"show-chart-outlined":59357,"single-down-arrow":59358,"single-left-arrow":59359,"single-right-arrow":59360,"single-up-arrow":59361,"speaker-active-outlined":59362,"speaker-outlined":59363,"star-circle-outlined":59364,"star-outlined":59365,"stopwatch-outlined":59366,"strikethrough":59367,"styler-outlined":59368,"suitcase-clock-outlined":59369,"suitcase-outlined":59370,"survey-outlined":59371,"switch-outlined":59372,"sync":59373,"tag-outlined":59374,"target-outlined":59375,"tennis-outlined":59376,"ticket-outlined":59377,"timesheet-outlined":59378,"today-outlined":59379,"transfer":59380,"trash-bin-outlined":59381,"umbrela-outlined":59382,"unavailable":59383,"underline":59384,"union-outlined":59385,"unlock-outlined":59386,"upload-outlined":59387,"user-circle-outlined":59388,"user-gear-outlined":59389,"user-outlined":59390,"user-rectangle-outlined":59391,"video-1-outlined":59392,"video-2-outlined":59393,"volunteer-outlined":59394,"wallet-outlined":59395}
@@ -183,6 +183,7 @@ const IconList = [
183
183
  'add-time-outlined',
184
184
  'add',
185
185
  'adjustment-outlined',
186
+ 'ai-outlined',
186
187
  'alignment-2-outlined',
187
188
  'alignment-outlined',
188
189
  'all-caps',
@@ -187,14 +187,14 @@ Array [
187
187
  Array [
188
188
  Object {
189
189
  "color": "#001f23",
190
- "fontSize": 16,
190
+ "fontSize": 24,
191
191
  },
192
192
  undefined,
193
193
  ]
194
194
  }
195
195
  testID="input-suffix"
196
196
  themeIntent="text"
197
- themeSize="xsmall"
197
+ themeSize="medium"
198
198
  />
199
199
  </View>
200
200
  <View
@@ -1587,14 +1587,14 @@ Array [
1587
1587
  Array [
1588
1588
  Object {
1589
1589
  "color": "#001f23",
1590
- "fontSize": 16,
1590
+ "fontSize": 24,
1591
1591
  },
1592
1592
  undefined,
1593
1593
  ]
1594
1594
  }
1595
1595
  testID="input-suffix"
1596
1596
  themeIntent="text"
1597
- themeSize="xsmall"
1597
+ themeSize="medium"
1598
1598
  />
1599
1599
  </View>
1600
1600
  <View
@@ -1820,14 +1820,14 @@ Array [
1820
1820
  Array [
1821
1821
  Object {
1822
1822
  "color": "#001f23",
1823
- "fontSize": 16,
1823
+ "fontSize": 24,
1824
1824
  },
1825
1825
  undefined,
1826
1826
  ]
1827
1827
  }
1828
1828
  testID="input-suffix"
1829
1829
  themeIntent="text"
1830
- themeSize="xsmall"
1830
+ themeSize="medium"
1831
1831
  />
1832
1832
  </View>
1833
1833
  <View
@@ -3412,14 +3412,14 @@ Array [
3412
3412
  Array [
3413
3413
  Object {
3414
3414
  "color": "#001f23",
3415
- "fontSize": 16,
3415
+ "fontSize": 24,
3416
3416
  },
3417
3417
  undefined,
3418
3418
  ]
3419
3419
  }
3420
3420
  testID="input-suffix"
3421
3421
  themeIntent="text"
3422
- themeSize="xsmall"
3422
+ themeSize="medium"
3423
3423
  />
3424
3424
  </View>
3425
3425
  </View>
@@ -3646,14 +3646,14 @@ Array [
3646
3646
  Array [
3647
3647
  Object {
3648
3648
  "color": "#001f23",
3649
- "fontSize": 16,
3649
+ "fontSize": 24,
3650
3650
  },
3651
3651
  undefined,
3652
3652
  ]
3653
3653
  }
3654
3654
  testID="input-suffix"
3655
3655
  themeIntent="text"
3656
- themeSize="xsmall"
3656
+ themeSize="medium"
3657
3657
  />
3658
3658
  </View>
3659
3659
  <View
@@ -186,14 +186,14 @@ Array [
186
186
  Array [
187
187
  Object {
188
188
  "color": "#001f23",
189
- "fontSize": 16,
189
+ "fontSize": 24,
190
190
  },
191
191
  undefined,
192
192
  ]
193
193
  }
194
194
  testID="input-suffix"
195
195
  themeIntent="text"
196
- themeSize="xsmall"
196
+ themeSize="medium"
197
197
  />
198
198
  </View>
199
199
  <View
@@ -1509,14 +1509,14 @@ Array [
1509
1509
  Array [
1510
1510
  Object {
1511
1511
  "color": "#001f23",
1512
- "fontSize": 16,
1512
+ "fontSize": 24,
1513
1513
  },
1514
1514
  undefined,
1515
1515
  ]
1516
1516
  }
1517
1517
  testID="input-suffix"
1518
1518
  themeIntent="text"
1519
- themeSize="xsmall"
1519
+ themeSize="medium"
1520
1520
  />
1521
1521
  </View>
1522
1522
  <View
@@ -1742,14 +1742,14 @@ Array [
1742
1742
  Array [
1743
1743
  Object {
1744
1744
  "color": "#001f23",
1745
- "fontSize": 16,
1745
+ "fontSize": 24,
1746
1746
  },
1747
1747
  undefined,
1748
1748
  ]
1749
1749
  }
1750
1750
  testID="input-suffix"
1751
1751
  themeIntent="text"
1752
- themeSize="xsmall"
1752
+ themeSize="medium"
1753
1753
  />
1754
1754
  </View>
1755
1755
  <View
@@ -3203,14 +3203,14 @@ Array [
3203
3203
  Array [
3204
3204
  Object {
3205
3205
  "color": "#001f23",
3206
- "fontSize": 16,
3206
+ "fontSize": 24,
3207
3207
  },
3208
3208
  undefined,
3209
3209
  ]
3210
3210
  }
3211
3211
  testID="input-suffix"
3212
3212
  themeIntent="text"
3213
- themeSize="xsmall"
3213
+ themeSize="medium"
3214
3214
  />
3215
3215
  </View>
3216
3216
  </View>
@@ -3437,14 +3437,14 @@ Array [
3437
3437
  Array [
3438
3438
  Object {
3439
3439
  "color": "#001f23",
3440
- "fontSize": 16,
3440
+ "fontSize": 24,
3441
3441
  },
3442
3442
  undefined,
3443
3443
  ]
3444
3444
  }
3445
3445
  testID="input-suffix"
3446
3446
  themeIntent="text"
3447
- themeSize="xsmall"
3447
+ themeSize="medium"
3448
3448
  />
3449
3449
  </View>
3450
3450
  <View
@@ -1541,14 +1541,14 @@ exports[`TextInput filled renders correctly 1`] = `
1541
1541
  Array [
1542
1542
  Object {
1543
1543
  "color": "#001f23",
1544
- "fontSize": 16,
1544
+ "fontSize": 24,
1545
1545
  },
1546
1546
  undefined,
1547
1547
  ]
1548
1548
  }
1549
1549
  testID="input-suffix"
1550
1550
  themeIntent="text"
1551
- themeSize="xsmall"
1551
+ themeSize="medium"
1552
1552
  />
1553
1553
  </View>
1554
1554
  <View
@@ -2006,14 +2006,14 @@ exports[`TextInput idle renders correctly 1`] = `
2006
2006
  Array [
2007
2007
  Object {
2008
2008
  "color": "#001f23",
2009
- "fontSize": 16,
2009
+ "fontSize": 24,
2010
2010
  },
2011
2011
  undefined,
2012
2012
  ]
2013
2013
  }
2014
2014
  testID="input-suffix"
2015
2015
  themeIntent="text"
2016
- themeSize="xsmall"
2016
+ themeSize="medium"
2017
2017
  />
2018
2018
  </View>
2019
2019
  <View
@@ -2418,14 +2418,14 @@ exports[`TextInput loading renders correctly 1`] = `
2418
2418
  Array [
2419
2419
  Object {
2420
2420
  "color": "#001f23",
2421
- "fontSize": 16,
2421
+ "fontSize": 24,
2422
2422
  },
2423
2423
  undefined,
2424
2424
  ]
2425
2425
  }
2426
2426
  testID="input-suffix"
2427
2427
  themeIntent="text"
2428
- themeSize="xsmall"
2428
+ themeSize="medium"
2429
2429
  />
2430
2430
  </View>
2431
2431
  </View>
@@ -3492,14 +3492,14 @@ exports[`TextInput readonly renders correctly 1`] = `
3492
3492
  Array [
3493
3493
  Object {
3494
3494
  "color": "#001f23",
3495
- "fontSize": 16,
3495
+ "fontSize": 24,
3496
3496
  },
3497
3497
  undefined,
3498
3498
  ]
3499
3499
  }
3500
3500
  testID="input-suffix"
3501
3501
  themeIntent="text"
3502
- themeSize="xsmall"
3502
+ themeSize="medium"
3503
3503
  />
3504
3504
  </View>
3505
3505
  <View
@@ -3913,14 +3913,14 @@ exports[`TextInput required renders correctly 1`] = `
3913
3913
  Array [
3914
3914
  Object {
3915
3915
  "color": "#001f23",
3916
- "fontSize": 16,
3916
+ "fontSize": 24,
3917
3917
  },
3918
3918
  undefined,
3919
3919
  ]
3920
3920
  }
3921
3921
  testID="input-suffix"
3922
3922
  themeIntent="text"
3923
- themeSize="xsmall"
3923
+ themeSize="medium"
3924
3924
  />
3925
3925
  </View>
3926
3926
  <View
@@ -373,7 +373,7 @@ const TextInput = forwardRef<TextInputHandles, TextInputProps>(
373
373
  testID="input-suffix"
374
374
  icon={actualSuffix}
375
375
  spin={actualSuffix === 'loading'}
376
- size="xsmall"
376
+ size="medium"
377
377
  />
378
378
  ) : (
379
379
  suffix
@@ -424,14 +424,14 @@ exports[`TimePickerAndroid renders correctly 1`] = `
424
424
  Array [
425
425
  Object {
426
426
  "color": "#001f23",
427
- "fontSize": 16,
427
+ "fontSize": 24,
428
428
  },
429
429
  undefined,
430
430
  ]
431
431
  }
432
432
  testID="input-suffix"
433
433
  themeIntent="text"
434
- themeSize="xsmall"
434
+ themeSize="medium"
435
435
  />
436
436
  </View>
437
437
  <View
@@ -424,14 +424,14 @@ exports[`TimePickerIOS renders correctly 1`] = `
424
424
  Array [
425
425
  Object {
426
426
  "color": "#001f23",
427
- "fontSize": 16,
427
+ "fontSize": 24,
428
428
  },
429
429
  undefined,
430
430
  ]
431
431
  }
432
432
  testID="input-suffix"
433
433
  themeIntent="text"
434
- themeSize="xsmall"
434
+ themeSize="medium"
435
435
  />
436
436
  </View>
437
437
  <View
@@ -1,6 +1,7 @@
1
1
  import styled from '@emotion/native';
2
2
  import { TouchableOpacity, View } from 'react-native';
3
3
  import type { ViewProps } from 'react-native';
4
+ import Typography from '../Typography';
4
5
 
5
6
  const ToolbarWrapper = styled(View)<ViewProps>(({ theme }) => ({
6
7
  position: 'absolute',
@@ -10,7 +11,6 @@ const ToolbarWrapper = styled(View)<ViewProps>(({ theme }) => ({
10
11
  zIndex: 9999,
11
12
  elevation: 9999,
12
13
  width: '100%',
13
- paddingVertical: theme.__hd__.toolbar.space.verticalPadding,
14
14
  paddingHorizontal: theme.__hd__.toolbar.space.horizontalPadding,
15
15
  borderTopWidth: theme.__hd__.toolbar.borderWidths.default,
16
16
  borderColor: theme.__hd__.toolbar.colors.border,
@@ -35,9 +35,30 @@ const ToolbarGroupWrapper = styled(View)<{
35
35
  }));
36
36
 
37
37
  const ToolbarItemWrapper = styled(TouchableOpacity)(({ theme }) => ({
38
+ height: theme.__hd__.toolbar.sizes.itemWrapperHeight,
38
39
  paddingVertical: theme.__hd__.toolbar.space.verticalPadding,
39
40
  paddingHorizontal: theme.__hd__.toolbar.space.horizontalPadding,
40
41
  alignItems: 'center',
42
+ flexDirection: 'row',
43
+ }));
44
+
45
+ const IconButtonWrapper = styled(View)(({ theme }) => ({
46
+ backgroundColor: theme.__hd__.toolbar.colors.iconButtonBackground,
47
+ borderRadius: theme.__hd__.toolbar.radii.iconButtonWrapperBorderRadius,
48
+ justifyContent: 'center',
49
+ alignItems: 'center',
50
+ flexDirection: 'row',
51
+ padding: theme.__hd__.toolbar.space.iconButtonWrapperPadding,
52
+ }));
53
+
54
+ const IconButtonLabel = styled(Typography.Text)(({ theme }) => ({
55
+ marginLeft: theme.__hd__.toolbar.space.iconButtonLabelMarginLeft,
41
56
  }));
42
57
 
43
- export { ToolbarWrapper, ToolbarGroupWrapper, ToolbarItemWrapper };
58
+ export {
59
+ ToolbarWrapper,
60
+ ToolbarGroupWrapper,
61
+ ToolbarItemWrapper,
62
+ IconButtonWrapper,
63
+ IconButtonLabel,
64
+ };