@hero-design/rn 7.14.2 → 7.14.3-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +1 -9
- package/.turbo/turbo-build:types.log +2 -0
- package/.turbo/turbo-lint.log +2 -0
- package/.turbo/turbo-publish:npm.log +9 -0
- package/.turbo/turbo-test.log +361 -0
- package/.turbo/turbo-type-check.log +2 -0
- package/es/index.js +1103 -20310
- package/lib/assets/fonts/hero-icons.ttf +0 -0
- package/lib/index.d.ts +4631 -0
- package/lib/index.js +1107 -20317
- package/lib/index.js.flow +7684 -0
- package/package.json +2 -2
- package/rollup.config.js +2 -0
- package/src/components/DatePicker/DatePickerAndroid.tsx +2 -0
- package/src/components/DatePicker/DatePickerIOS.tsx +2 -0
- package/src/components/DatePicker/__tests__/DatePickerAndroid.spec.tsx +14 -0
- package/src/components/DatePicker/__tests__/DatePickerIOS.spec.tsx +14 -0
- package/src/components/DatePicker/types.ts +4 -0
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +272 -266
- package/src/components/Select/MultiSelect/index.tsx +22 -11
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +272 -266
- package/src/components/Select/SingleSelect/index.tsx +22 -11
- package/src/components/Select/index.tsx +4 -2
- package/src/components/Select/types.tsx +7 -2
- package/src/components/TextInput/__tests__/.log/ti-10343.log +62 -0
- package/src/components/TextInput/__tests__/.log/ti-20729.log +67 -0
- package/src/components/TextInput/__tests__/.log/tsserver.log +6498 -0
- package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
- package/src/components/TextInput/index.tsx +3 -1
- package/src/components/TimePicker/TimePickerAndroid.tsx +2 -0
- package/src/components/TimePicker/TimePickerIOS.tsx +2 -0
- package/src/components/TimePicker/__tests__/TimePickerAndroid.spec.tsx +14 -0
- package/src/components/TimePicker/__tests__/TimePickerIOS.spec.tsx +14 -0
- package/src/components/TimePicker/types.ts +4 -0
- package/src/types.ts +3 -0
- package/types/components/Accordion/index.d.ts +5 -2
- package/types/components/ContentNavigator/index.d.ts +1 -5
- package/types/components/Icon/IconList.d.ts +1 -1
- package/types/components/Icon/utils.d.ts +1 -1
- package/types/components/SectionHeading/index.d.ts +2 -2
- package/types/components/Typography/Text/StyledText.d.ts +1 -1
- package/types/components/Typography/Text/index.d.ts +1 -1
- package/types/index.d.ts +1 -4
- package/types/index.js.flow +7683 -0
- package/types/theme/components/typography.d.ts +0 -1
- package/types/theme/index.d.ts +0 -6
- package/types/components/Badge/StyledBadge.d.ts +0 -27
- package/types/components/BottomSheet/StyledBottomSheet.d.ts +0 -46
- package/types/components/Calendar/CalendarRowItem.d.ts +0 -10
- package/types/components/Calendar/StyledCalendar.d.ts +0 -54
- package/types/components/Calendar/__tests__/CalendarRowItem.spec.d.ts +0 -1
- package/types/components/Calendar/__tests__/helper.spec.d.ts +0 -1
- package/types/components/Calendar/__tests__/index.spec.d.ts +0 -1
- package/types/components/Calendar/helpers.d.ts +0 -3
- package/types/components/Calendar/index.d.ts +0 -40
- package/types/components/Collapse/StyledCollapse.d.ts +0 -25
- package/types/components/Drawer/StyledDrawer.d.ts +0 -24
- package/types/components/Empty/StyledEmpty.d.ts +0 -31
- package/types/components/Empty/__tests__/index.spec.d.ts +0 -1
- package/types/components/Empty/index.d.ts +0 -26
- package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +0 -29
- package/types/components/Progress/StyledProgressBar.d.ts +0 -17
- package/types/components/RichTextEditor/EditorEvent.d.ts +0 -3
- package/types/components/RichTextEditor/EditorToolbar.d.ts +0 -17
- package/types/components/RichTextEditor/MentionList.d.ts +0 -12
- package/types/components/RichTextEditor/RichTextEditor.d.ts +0 -65
- package/types/components/RichTextEditor/StyledRichTextEditor.d.ts +0 -16
- package/types/components/RichTextEditor/StyledToolbar.d.ts +0 -21
- package/types/components/RichTextEditor/__tests__/EditorToolbar.spec.d.ts +0 -1
- package/types/components/RichTextEditor/__tests__/MentionList.spec.d.ts +0 -1
- package/types/components/RichTextEditor/__tests__/RichTextEditor.spec.d.ts +0 -1
- package/types/components/RichTextEditor/constants.d.ts +0 -19
- package/types/components/RichTextEditor/index.d.ts +0 -5
- package/types/components/RichTextEditor/utils/events.d.ts +0 -8
- package/types/components/RichTextEditor/utils/rnWebView.d.ts +0 -7
- package/types/components/Switch/StyledSwitch.d.ts +0 -36
- package/types/components/Tabs/StyledScrollableTabs.d.ts +0 -60
- package/types/components/Tabs/StyledTabs.d.ts +0 -54
- package/types/components/Toast/StyledToast.d.ts +0 -45
- package/types/theme/components/calendar.d.ts +0 -26
- package/types/theme/components/empty.d.ts +0 -28
- package/types/theme/components/richTextEditor.d.ts +0 -26
|
@@ -159,7 +159,9 @@ const TextInput = ({
|
|
|
159
159
|
return (
|
|
160
160
|
<StyledContainer
|
|
161
161
|
style={style}
|
|
162
|
-
pointerEvents={
|
|
162
|
+
pointerEvents={
|
|
163
|
+
variant === 'disabled' || variant === 'readonly' ? 'none' : 'auto'
|
|
164
|
+
}
|
|
163
165
|
testID={testID}
|
|
164
166
|
>
|
|
165
167
|
<StyledTextInputContainer>
|
|
@@ -15,6 +15,7 @@ const TimePickerAndroid = ({
|
|
|
15
15
|
disabled = false,
|
|
16
16
|
required,
|
|
17
17
|
error,
|
|
18
|
+
helpText,
|
|
18
19
|
style,
|
|
19
20
|
testID,
|
|
20
21
|
}: TimePickerProps) => {
|
|
@@ -35,6 +36,7 @@ const TimePickerAndroid = ({
|
|
|
35
36
|
disabled={disabled}
|
|
36
37
|
error={error}
|
|
37
38
|
required={required}
|
|
39
|
+
helpText={helpText}
|
|
38
40
|
style={style}
|
|
39
41
|
testID={testID}
|
|
40
42
|
/>
|
|
@@ -19,6 +19,7 @@ const TimePickerIOS = ({
|
|
|
19
19
|
disabled = false,
|
|
20
20
|
required,
|
|
21
21
|
error,
|
|
22
|
+
helpText,
|
|
22
23
|
style,
|
|
23
24
|
testID,
|
|
24
25
|
}: TimePickerProps) => {
|
|
@@ -39,6 +40,7 @@ const TimePickerIOS = ({
|
|
|
39
40
|
disabled={disabled}
|
|
40
41
|
error={error}
|
|
41
42
|
required={required}
|
|
43
|
+
helpText={helpText}
|
|
42
44
|
testID={testID}
|
|
43
45
|
style={style}
|
|
44
46
|
/>
|
|
@@ -36,4 +36,18 @@ describe('TimePickerAndroid', () => {
|
|
|
36
36
|
|
|
37
37
|
expect(onChange).toBeCalledWith(new Date('December 17, 1995 05:30:00'));
|
|
38
38
|
});
|
|
39
|
+
|
|
40
|
+
it('renders correct help text', () => {
|
|
41
|
+
const { getByText } = renderWithTheme(
|
|
42
|
+
<TimePickerAndroid
|
|
43
|
+
value={new Date('December 17, 1995 03:24:00')}
|
|
44
|
+
label="Break time"
|
|
45
|
+
confirmLabel="Confirm"
|
|
46
|
+
helpText="This is help text"
|
|
47
|
+
onChange={jest.fn()}
|
|
48
|
+
/>
|
|
49
|
+
);
|
|
50
|
+
|
|
51
|
+
expect(getByText('This is help text')).toBeTruthy();
|
|
52
|
+
});
|
|
39
53
|
});
|
|
@@ -43,4 +43,18 @@ describe('TimePickerIOS', () => {
|
|
|
43
43
|
|
|
44
44
|
expect(onChange).toBeCalledWith(new Date('December 17, 1995 05:30:00'));
|
|
45
45
|
});
|
|
46
|
+
|
|
47
|
+
it('renders correct help text', () => {
|
|
48
|
+
const { getByText } = renderWithTheme(
|
|
49
|
+
<TimePickerIOS
|
|
50
|
+
value={new Date('December 17, 1995 03:24:00')}
|
|
51
|
+
label="Break time"
|
|
52
|
+
confirmLabel="Confirm"
|
|
53
|
+
helpText="This is help text"
|
|
54
|
+
onChange={jest.fn()}
|
|
55
|
+
/>
|
|
56
|
+
);
|
|
57
|
+
|
|
58
|
+
expect(getByText('This is help text')).toBeTruthy();
|
|
59
|
+
});
|
|
46
60
|
});
|
package/src/types.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BottomNavigationTabType } from './components/BottomNavigation';
|
|
2
2
|
import { IconName } from './components/Icon';
|
|
3
|
+
import { SingleSelectProps, MultiSelectProps } from './components/Select';
|
|
3
4
|
import { TabType } from './components/Tabs';
|
|
4
5
|
import { TextInputProps } from './components/TextInput';
|
|
5
6
|
|
|
@@ -8,6 +9,8 @@ import { Theme } from './theme';
|
|
|
8
9
|
export type {
|
|
9
10
|
BottomNavigationTabType,
|
|
10
11
|
IconName,
|
|
12
|
+
SingleSelectProps,
|
|
13
|
+
MultiSelectProps,
|
|
11
14
|
TabType,
|
|
12
15
|
Theme,
|
|
13
16
|
TextInputProps,
|
|
@@ -8,7 +8,6 @@ export interface AccordionProps<K extends Key> {
|
|
|
8
8
|
header: string | ReactElement;
|
|
9
9
|
content: ReactElement;
|
|
10
10
|
key: K;
|
|
11
|
-
style?: StyleProp<ViewStyle>;
|
|
12
11
|
testID?: string;
|
|
13
12
|
}[];
|
|
14
13
|
/**
|
|
@@ -25,6 +24,10 @@ export interface AccordionProps<K extends Key> {
|
|
|
25
24
|
* Item type.
|
|
26
25
|
*/
|
|
27
26
|
variant?: 'default' | 'card';
|
|
27
|
+
/**
|
|
28
|
+
* Additional style for item.
|
|
29
|
+
*/
|
|
30
|
+
itemStyle?: StyleProp<ViewStyle>;
|
|
28
31
|
/**
|
|
29
32
|
* Additional style.
|
|
30
33
|
*/
|
|
@@ -34,5 +37,5 @@ export interface AccordionProps<K extends Key> {
|
|
|
34
37
|
*/
|
|
35
38
|
testID?: string;
|
|
36
39
|
}
|
|
37
|
-
declare const Accordion: <K extends React.Key>({ items, activeItemKey, onItemPress, variant, style, testID, }: AccordionProps<K>) => JSX.Element;
|
|
40
|
+
declare const Accordion: <K extends React.Key>({ items, activeItemKey, onItemPress, variant, style, itemStyle, testID, }: AccordionProps<K>) => JSX.Element;
|
|
38
41
|
export default Accordion;
|
|
@@ -24,10 +24,6 @@ interface ContentNavigatorProps {
|
|
|
24
24
|
* Whether the next icon is disabled.
|
|
25
25
|
*/
|
|
26
26
|
nextDisabled?: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* Content font size.
|
|
29
|
-
*/
|
|
30
|
-
fontSize?: 'medium' | 'large';
|
|
31
27
|
/**
|
|
32
28
|
* Additional style.
|
|
33
29
|
*/
|
|
@@ -37,5 +33,5 @@ interface ContentNavigatorProps {
|
|
|
37
33
|
*/
|
|
38
34
|
testID?: string;
|
|
39
35
|
}
|
|
40
|
-
declare function ContentNavigator({ onPreviousPress, onNextPress, onPress, value, previousDisabled, nextDisabled,
|
|
36
|
+
declare function ContentNavigator({ onPreviousPress, onNextPress, onPress, value, previousDisabled, nextDisabled, testID, style, }: ContentNavigatorProps): JSX.Element;
|
|
41
37
|
export default ContentNavigator;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const IconList: readonly ["activate", "add-
|
|
1
|
+
declare const IconList: readonly ["activate", "add-person", "adjustment", "alignment", "bank", "bell", "billing", "bookmark", "box-check", "box", "buildings", "cake", "calendar-clock", "calendar", "candy-box-menu", "carat-down-small", "carat-down", "carat-left", "carat-right", "carat-up", "circle-add", "circle-cancel", "circle-check", "circle-down", "circle-info", "circle-left", "circle-ok", "circle-pencil", "circle-question", "circle-remove", "circle-right", "circle-up", "circle-warning", "clock", "clock-3", "cloud-download", "cloud-upload", "cog", "coin", "contacts", "credit-card", "diamond", "direction-arrows", "directory", "document", "dollar-coin-shine", "double-buildings", "edit-template", "envelope", "expense", "eye-circle", "eye-invisible", "eye", "face-meh", "face-sad", "face-smiley", "feed", "feedbacks", "file-certified", "file-clone", "file-copy", "file-csv", "file-dispose", "file-doc", "file-excel", "file-export", "file-lock", "file-pdf", "file-powerpoint", "file-search", "file-secured", "file-sheets", "file-slide", "file-verified", "file-word", "file", "folder-user", "folder", "funnel-filter", "global-dollar", "globe", "graduation-cap", "graph", "happy-sun", "health-bag", "heart", "home", "image", "import", "incident-siren", "instapay", "list", "loading", "loading-2", "location", "lock", "looks-one", "looks-two", "media-content", "menu", "moneybag", "moon", "multiple-stars", "multiple-users", "node", "open-folder", "paperclip", "payment-summary", "pencil", "phone", "piggy-bank", "plane", "play-circle", "print", "raising-hands", "reply", "reschedule", "rostering", "save", "schedule", "search-person", "send", "speaker", "star-medal", "star", "steps-circle", "stopwatch", "suitcase", "survey", "swag", "switch", "tag", "target", "teams", "timesheet", "touch-id", "trash-bin", "unlock", "user", "video-1", "video-2", "activate-outlined", "add-person-outlined", "add-section-outlined", "add-time-outlined", "add", "adjustment-outlined", "alignment-2-outlined", "alignment-outlined", "all-caps", "arrow-down", "arrow-left", "arrow-right", "arrow-up", "at-sign", "bell-outlined", "billing-outlined", "body-outlined", "bold", "bookmark-outlined", "box-check-outlined", "box-outlined", "bullet-points", "cake-outlined", "calendar-dates-outlined", "calendar-star-outlined", "camera-outlined", "cancel", "checkmark", "circle-add-outlined", "circle-cancel-outlined", "circle-down-outlined", "circle-info-outlined", "circle-left-outlined", "circle-ok-outlined", "circle-question-outlined", "circle-remove-outlined", "circle-right-outlined", "circle-up-outlined", "circle-warning-outlined", "clock-2-outlined", "clock-outlined", "cog-outlined", "coin-outlined", "comment-outlined", "contacts-outlined", "credit-card-outlined", "direction-arrows-outlined", "directory-outlined", "document-outlined", "dollar-coin-shine-outlined", "dollar-sign", "double-buildings-outlined", "double-left-arrows", "double-right-arrows", "download-outlined", "edit-template-outlined", "email-outlined", "enter-arrow", "envelope-outlined", "expense-outlined", "external-link", "eye-invisible-outlined", "eye-outlined", "face-id", "face-meh-outlined", "face-open-smiley-outlined", "face-sad-outlined", "face-smiley-outlined", "feed-outlined", "file-certified-outlined", "file-clone-outlined", "file-copy-outlined", "file-dispose-outlined", "file-download-outlined", "file-export-outlined", "file-lock-outlined", "file-outlined", "file-search-outlined", "file-secured-outlined", "file-verified-outlined", "folder-outlined", "folder-user-outlined", "funnel-filter-outline", "graph-outlined", "happy-sun-outlined", "health-bag-outlined", "heart-outlined", "home-outlined", "image-outlined", "import-outlined", "instapay-outlined", "italic", "link-1", "link-2", "list-outlined", "location-outlined", "lock-outlined", "locked-file-outlined", "log-out", "media-content-outlined", "menu-close", "menu-expand", "menu-fold-outlined", "menu-unfold-outlined", "moneybag-outlined", "moon-outlined", "more-horizontal", "more-vertical", "multiple-folders-outlined", "multiple-users-outlined", "node-outlined", "number-points", "number", "payment-summary-outlined", "payslip-outlined", "pencil-outlined", "percentage", "phone-outlined", "piggy-bank-outlined", "plane-outlined", "play-circle-outlined", "print-outlined", "qr-code-outlined", "re-assign", "redeem", "refresh", "remove", "reply-outlined", "restart", "return-arrow", "rostering-outlined", "save-outlined", "schedule-outlined", "search-outlined", "send-outlined", "share-1", "share-2", "single-down-arrow", "single-left-arrow", "single-right-arrow", "single-up-arrow", "speaker-outlined", "star-outlined", "stopwatch-outlined", "strikethrough", "suitcase-outlined", "survey-outlined", "switch-outlined", "sync", "target-outlined", "timesheet-outlined", "transfer", "trash-bin-outlined", "unavailable", "underline", "unlock-outlined", "upload-outlined", "user-circle-outlined", "user-outlined", "user-rectangle-outlined", "video-1-outlined", "video-2-outlined", "wallet-outlined", "warning"];
|
|
2
2
|
export default IconList;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const isHeroIcon: (x: any) => x is "number" | "image" | "menu" | "switch" | "list" | "bold" | "warning" | "activate" | "add-
|
|
1
|
+
declare const isHeroIcon: (x: any) => x is "number" | "image" | "menu" | "switch" | "list" | "bold" | "warning" | "activate" | "add-person" | "adjustment" | "alignment" | "bank" | "bell" | "billing" | "bookmark" | "box-check" | "box" | "buildings" | "cake" | "calendar-clock" | "calendar" | "candy-box-menu" | "carat-down-small" | "carat-down" | "carat-left" | "carat-right" | "carat-up" | "circle-add" | "circle-cancel" | "circle-check" | "circle-down" | "circle-info" | "circle-left" | "circle-ok" | "circle-pencil" | "circle-question" | "circle-remove" | "circle-right" | "circle-up" | "circle-warning" | "clock" | "clock-3" | "cloud-download" | "cloud-upload" | "cog" | "coin" | "contacts" | "credit-card" | "diamond" | "direction-arrows" | "directory" | "document" | "dollar-coin-shine" | "double-buildings" | "edit-template" | "envelope" | "expense" | "eye-circle" | "eye-invisible" | "eye" | "face-meh" | "face-sad" | "face-smiley" | "feed" | "feedbacks" | "file-certified" | "file-clone" | "file-copy" | "file-csv" | "file-dispose" | "file-doc" | "file-excel" | "file-export" | "file-lock" | "file-pdf" | "file-powerpoint" | "file-search" | "file-secured" | "file-sheets" | "file-slide" | "file-verified" | "file-word" | "file" | "folder-user" | "folder" | "funnel-filter" | "global-dollar" | "globe" | "graduation-cap" | "graph" | "happy-sun" | "health-bag" | "heart" | "home" | "import" | "incident-siren" | "instapay" | "loading" | "loading-2" | "location" | "lock" | "looks-one" | "looks-two" | "media-content" | "moneybag" | "moon" | "multiple-stars" | "multiple-users" | "node" | "open-folder" | "paperclip" | "payment-summary" | "pencil" | "phone" | "piggy-bank" | "plane" | "play-circle" | "print" | "raising-hands" | "reply" | "reschedule" | "rostering" | "save" | "schedule" | "search-person" | "send" | "speaker" | "star-medal" | "star" | "steps-circle" | "stopwatch" | "suitcase" | "survey" | "swag" | "tag" | "target" | "teams" | "timesheet" | "touch-id" | "trash-bin" | "unlock" | "user" | "video-1" | "video-2" | "activate-outlined" | "add-person-outlined" | "add-section-outlined" | "add-time-outlined" | "add" | "adjustment-outlined" | "alignment-2-outlined" | "alignment-outlined" | "all-caps" | "arrow-down" | "arrow-left" | "arrow-right" | "arrow-up" | "at-sign" | "bell-outlined" | "billing-outlined" | "body-outlined" | "bookmark-outlined" | "box-check-outlined" | "box-outlined" | "bullet-points" | "cake-outlined" | "calendar-dates-outlined" | "calendar-star-outlined" | "camera-outlined" | "cancel" | "checkmark" | "circle-add-outlined" | "circle-cancel-outlined" | "circle-down-outlined" | "circle-info-outlined" | "circle-left-outlined" | "circle-ok-outlined" | "circle-question-outlined" | "circle-remove-outlined" | "circle-right-outlined" | "circle-up-outlined" | "circle-warning-outlined" | "clock-2-outlined" | "clock-outlined" | "cog-outlined" | "coin-outlined" | "comment-outlined" | "contacts-outlined" | "credit-card-outlined" | "direction-arrows-outlined" | "directory-outlined" | "document-outlined" | "dollar-coin-shine-outlined" | "dollar-sign" | "double-buildings-outlined" | "double-left-arrows" | "double-right-arrows" | "download-outlined" | "edit-template-outlined" | "email-outlined" | "enter-arrow" | "envelope-outlined" | "expense-outlined" | "external-link" | "eye-invisible-outlined" | "eye-outlined" | "face-id" | "face-meh-outlined" | "face-open-smiley-outlined" | "face-sad-outlined" | "face-smiley-outlined" | "feed-outlined" | "file-certified-outlined" | "file-clone-outlined" | "file-copy-outlined" | "file-dispose-outlined" | "file-download-outlined" | "file-export-outlined" | "file-lock-outlined" | "file-outlined" | "file-search-outlined" | "file-secured-outlined" | "file-verified-outlined" | "folder-outlined" | "folder-user-outlined" | "funnel-filter-outline" | "graph-outlined" | "happy-sun-outlined" | "health-bag-outlined" | "heart-outlined" | "home-outlined" | "image-outlined" | "import-outlined" | "instapay-outlined" | "italic" | "link-1" | "link-2" | "list-outlined" | "location-outlined" | "lock-outlined" | "locked-file-outlined" | "log-out" | "media-content-outlined" | "menu-close" | "menu-expand" | "menu-fold-outlined" | "menu-unfold-outlined" | "moneybag-outlined" | "moon-outlined" | "more-horizontal" | "more-vertical" | "multiple-folders-outlined" | "multiple-users-outlined" | "node-outlined" | "number-points" | "payment-summary-outlined" | "payslip-outlined" | "pencil-outlined" | "percentage" | "phone-outlined" | "piggy-bank-outlined" | "plane-outlined" | "play-circle-outlined" | "print-outlined" | "qr-code-outlined" | "re-assign" | "redeem" | "refresh" | "remove" | "reply-outlined" | "restart" | "return-arrow" | "rostering-outlined" | "save-outlined" | "schedule-outlined" | "search-outlined" | "send-outlined" | "share-1" | "share-2" | "single-down-arrow" | "single-left-arrow" | "single-right-arrow" | "single-up-arrow" | "speaker-outlined" | "star-outlined" | "stopwatch-outlined" | "strikethrough" | "suitcase-outlined" | "survey-outlined" | "switch-outlined" | "sync" | "target-outlined" | "timesheet-outlined" | "transfer" | "trash-bin-outlined" | "unavailable" | "underline" | "unlock-outlined" | "upload-outlined" | "user-circle-outlined" | "user-outlined" | "user-rectangle-outlined" | "video-1-outlined" | "video-2-outlined" | "wallet-outlined";
|
|
2
2
|
export { isHeroIcon };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { StyleProp, ViewProps, ViewStyle } from 'react-native';
|
|
3
|
-
import { IconName
|
|
3
|
+
import { IconName } from '../Icon';
|
|
4
4
|
export interface SectionHeadingProps extends ViewProps {
|
|
5
5
|
/**
|
|
6
6
|
* Heading text.
|
|
@@ -9,7 +9,7 @@ export interface SectionHeadingProps extends ViewProps {
|
|
|
9
9
|
/**
|
|
10
10
|
* Name of the Icon.
|
|
11
11
|
*/
|
|
12
|
-
icon?: IconName
|
|
12
|
+
icon?: IconName;
|
|
13
13
|
/**
|
|
14
14
|
* Right corner content
|
|
15
15
|
*/
|
|
@@ -5,7 +5,7 @@ declare const StyledText: import("@emotion/native").StyledComponent<import("reac
|
|
|
5
5
|
} & {
|
|
6
6
|
themeFontSize: 'small' | 'medium' | 'large' | 'xlarge' | 'xxxxxlarge';
|
|
7
7
|
themeFontWeight: 'light' | 'regular' | 'semi-bold';
|
|
8
|
-
themeIntent: 'body' | 'subdued' | 'primary' | 'success' | 'info' | 'warning' | 'danger'
|
|
8
|
+
themeIntent: 'body' | 'subdued' | 'primary' | 'success' | 'info' | 'warning' | 'danger';
|
|
9
9
|
}, {}, {
|
|
10
10
|
ref?: import("react").Ref<Text> | undefined;
|
|
11
11
|
}>;
|
|
@@ -16,7 +16,7 @@ export interface TextProps extends NativeTextProps {
|
|
|
16
16
|
/**
|
|
17
17
|
* Visual intent color to apply to the text.
|
|
18
18
|
*/
|
|
19
|
-
intent?: 'body' | 'subdued' | 'primary' | 'success' | 'info' | 'warning' | 'danger'
|
|
19
|
+
intent?: 'body' | 'subdued' | 'primary' | 'success' | 'info' | 'warning' | 'danger';
|
|
20
20
|
/**
|
|
21
21
|
* Additional style.
|
|
22
22
|
*/
|
package/types/index.d.ts
CHANGED
|
@@ -7,7 +7,6 @@ import Badge from './components/Badge';
|
|
|
7
7
|
import BottomNavigation from './components/BottomNavigation';
|
|
8
8
|
import BottomSheet from './components/BottomSheet';
|
|
9
9
|
import Button from './components/Button';
|
|
10
|
-
import Calendar from './components/Calendar';
|
|
11
10
|
import Card from './components/Card';
|
|
12
11
|
import Collapse from './components/Collapse';
|
|
13
12
|
import Checkbox from './components/Checkbox';
|
|
@@ -15,7 +14,6 @@ import ContentNavigator from './components/ContentNavigator';
|
|
|
15
14
|
import DatePicker from './components/DatePicker';
|
|
16
15
|
import Divider from './components/Divider';
|
|
17
16
|
import Drawer from './components/Drawer';
|
|
18
|
-
import Empty from './components/Empty';
|
|
19
17
|
import FAB from './components/FAB';
|
|
20
18
|
import Icon from './components/Icon';
|
|
21
19
|
import List from './components/List';
|
|
@@ -33,6 +31,5 @@ import TimePicker from './components/TimePicker';
|
|
|
33
31
|
import Toast from './components/Toast';
|
|
34
32
|
import Toolbar from './components/Toolbar';
|
|
35
33
|
import Typography from './components/Typography';
|
|
36
|
-
|
|
37
|
-
export { theme, getTheme, useTheme, scale, ThemeProvider, Accordion, Alert, Avatar, Badge, BottomNavigation, BottomSheet, Button, Calendar, Card, Collapse, Checkbox, ContentNavigator, DatePicker, Divider, Drawer, Empty, FAB, Icon, List, PinInput, Progress, Spinner, Radio, SectionHeading, Select, Switch, Tabs, Tag, TextInput, TimePicker, Toast, Toolbar, Typography, RichTextEditor, };
|
|
34
|
+
export { theme, getTheme, useTheme, scale, ThemeProvider, Accordion, Alert, Avatar, Badge, BottomNavigation, BottomSheet, Button, Card, Collapse, Checkbox, ContentNavigator, DatePicker, Divider, Drawer, FAB, Icon, List, PinInput, Progress, Spinner, Radio, SectionHeading, Select, Switch, Tabs, Tag, TextInput, TimePicker, Toast, Toolbar, Typography, };
|
|
38
35
|
export * from './types';
|