@hero-design/rn 7.30.0 → 8.0.0-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.
- package/.expo/README.md +15 -0
- package/.expo/packager-info.json +10 -0
- package/.expo/prebuild/cached-packages.json +4 -0
- package/.expo/settings.json +10 -0
- package/.expo/xcodebuild-error.log +2 -0
- package/.expo/xcodebuild.log +11199 -0
- package/.turbo/turbo-build.log +9 -9
- package/.turbo/turbo-build:types.log +2 -0
- package/.turbo/turbo-build:watch.log +1 -0
- package/.turbo/turbo-lint.log +96 -0
- package/.turbo/turbo-test.log +909 -0
- package/assets/fonts/{RebondGrotesque-Regular.otf → RebondGrotesque.otf} +0 -0
- package/es/index.js +5 -4
- package/lib/index.js +5 -4
- package/package.json +9 -8
- package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
- package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +1 -1
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +3 -3
- package/src/theme/global/typography.ts +1 -1
- package/types/components/Accordion/AccordionItem.d.ts +0 -0
- package/types/components/Accordion/StyledAccordion.d.ts +0 -0
- package/types/components/Accordion/index.d.ts +0 -0
- package/types/components/Accordion/utils.d.ts +1 -0
- package/types/components/Alert/StyledAlert.d.ts +0 -0
- package/types/components/Alert/index.d.ts +0 -0
- package/types/components/Attachment/StyledAttachment.d.ts +0 -0
- package/types/components/Attachment/index.d.ts +0 -0
- package/types/components/Avatar/Avatar.d.ts +0 -0
- package/types/components/Avatar/AvatarStack/StyledAvatarStack.d.ts +0 -0
- package/types/components/Avatar/AvatarStack/index.d.ts +0 -0
- package/types/components/Avatar/AvatarStack/utils.d.ts +0 -0
- package/types/components/Avatar/StyledAvatar.d.ts +0 -0
- package/types/components/Avatar/index.d.ts +0 -0
- package/types/components/Badge/Status.d.ts +0 -0
- package/types/components/Badge/StyledBadge.d.ts +0 -0
- package/types/components/Badge/index.d.ts +0 -0
- package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +0 -0
- package/types/components/BottomNavigation/index.d.ts +0 -0
- package/types/components/BottomSheet/Footer.d.ts +0 -0
- package/types/components/BottomSheet/Header.d.ts +0 -0
- package/types/components/BottomSheet/StyledBottomSheet.d.ts +0 -0
- package/types/components/BottomSheet/index.d.ts +0 -0
- package/types/components/Box/StyledBox.d.ts +0 -0
- package/types/components/Box/config.d.ts +0 -0
- package/types/components/Box/index.d.ts +0 -0
- package/types/components/Box/types.d.ts +0 -0
- package/types/components/Button/Button.d.ts +0 -0
- package/types/components/Button/IconButton.d.ts +0 -0
- package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +0 -0
- package/types/components/Button/LoadingIndicator/index.d.ts +0 -0
- package/types/components/Button/StyledButton.d.ts +0 -0
- package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +0 -0
- package/types/components/Button/UtilityButton/index.d.ts +0 -0
- package/types/components/Button/index.d.ts +0 -0
- package/types/components/Calendar/CalendarRowItem.d.ts +0 -0
- package/types/components/Calendar/StyledCalendar.d.ts +0 -0
- package/types/components/Calendar/helpers.d.ts +0 -0
- package/types/components/Calendar/index.d.ts +0 -0
- package/types/components/Card/DataCard/StyledDataCard.d.ts +0 -0
- package/types/components/Card/DataCard/index.d.ts +0 -0
- package/types/components/Card/StyledCard.d.ts +0 -0
- package/types/components/Card/index.d.ts +0 -0
- package/types/components/Checkbox/StyledCheckbox.d.ts +0 -0
- package/types/components/Checkbox/index.d.ts +0 -0
- package/types/components/Collapse/StyledCollapse.d.ts +0 -0
- package/types/components/Collapse/index.d.ts +0 -0
- package/types/components/ContentNavigator/StyledContentNavigator.d.ts +0 -0
- package/types/components/ContentNavigator/index.d.ts +0 -0
- package/types/components/DatePicker/DatePickerAndroid.d.ts +0 -0
- package/types/components/DatePicker/DatePickerIOS.d.ts +0 -0
- package/types/components/DatePicker/StyledDatePicker.d.ts +0 -0
- package/types/components/DatePicker/index.d.ts +0 -0
- package/types/components/DatePicker/types.d.ts +0 -0
- package/types/components/Divider/StyledDivider.d.ts +0 -0
- package/types/components/Divider/index.d.ts +0 -0
- package/types/components/Drawer/DragableDrawer/helpers.d.ts +0 -0
- package/types/components/Drawer/DragableDrawer/index.d.ts +0 -0
- package/types/components/Drawer/StyledDrawer.d.ts +0 -0
- package/types/components/Drawer/index.d.ts +0 -0
- package/types/components/Empty/StyledEmpty.d.ts +0 -0
- package/types/components/Empty/index.d.ts +0 -0
- package/types/components/FAB/ActionGroup/ActionItem.d.ts +0 -0
- package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +0 -0
- package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +0 -0
- package/types/components/FAB/ActionGroup/index.d.ts +0 -0
- package/types/components/FAB/AnimatedFABIcon.d.ts +0 -0
- package/types/components/FAB/FAB.d.ts +0 -0
- package/types/components/FAB/StyledFAB.d.ts +0 -0
- package/types/components/FAB/index.d.ts +0 -0
- package/types/components/Icon/AnimatedIcon.d.ts +0 -0
- package/types/components/Icon/HeroIcon/index.d.ts +0 -0
- package/types/components/Icon/IconList.d.ts +0 -0
- package/types/components/Icon/index.d.ts +0 -0
- package/types/components/Icon/utils.d.ts +0 -0
- package/types/components/Image/index.d.ts +0 -0
- package/types/components/List/BasicListItem.d.ts +0 -0
- package/types/components/List/ListItem.d.ts +0 -0
- package/types/components/List/StyledBasicListItem.d.ts +0 -0
- package/types/components/List/StyledListItem.d.ts +0 -0
- package/types/components/List/index.d.ts +0 -0
- package/types/components/PinInput/PinCell.d.ts +0 -0
- package/types/components/PinInput/StyledPinInput.d.ts +0 -0
- package/types/components/PinInput/index.d.ts +0 -0
- package/types/components/Progress/ProgressBar.d.ts +0 -0
- package/types/components/Progress/ProgressCircle.d.ts +0 -0
- package/types/components/Progress/StyledProgressBar.d.ts +0 -0
- package/types/components/Progress/StyledProgressCircle.d.ts +0 -0
- package/types/components/Progress/__tests__/index.spec.d.ts +0 -0
- package/types/components/Progress/constants.d.ts +0 -0
- package/types/components/Progress/index.d.ts +0 -0
- package/types/components/Progress/types.d.ts +0 -0
- package/types/components/Radio/Radio.d.ts +0 -0
- package/types/components/Radio/RadioGroup.d.ts +0 -0
- package/types/components/Radio/StyledRadio.d.ts +0 -0
- package/types/components/Radio/index.d.ts +0 -0
- package/types/components/Radio/types.d.ts +0 -0
- package/types/components/RefreshControl/index.d.ts +0 -0
- package/types/components/RichTextEditor/EditorEvent.d.ts +0 -0
- package/types/components/RichTextEditor/EditorToolbar.d.ts +0 -0
- package/types/components/RichTextEditor/MentionList.d.ts +0 -0
- package/types/components/RichTextEditor/RichTextEditor.d.ts +0 -0
- package/types/components/RichTextEditor/StyledRichTextEditor.d.ts +0 -0
- package/types/components/RichTextEditor/StyledToolbar.d.ts +0 -0
- package/types/components/RichTextEditor/__mocks__/heroEditorApp.d.ts +0 -0
- package/types/components/RichTextEditor/constants.d.ts +0 -0
- package/types/components/RichTextEditor/heroEditorApp.d.ts +0 -0
- package/types/components/RichTextEditor/index.d.ts +0 -0
- package/types/components/RichTextEditor/types.d.ts +0 -0
- package/types/components/RichTextEditor/utils/events.d.ts +0 -0
- package/types/components/RichTextEditor/utils/rnWebView.d.ts +0 -0
- package/types/components/SectionHeading/StyledHeading.d.ts +0 -0
- package/types/components/SectionHeading/index.d.ts +0 -0
- package/types/components/Select/BaseOptionList.d.ts +0 -0
- package/types/components/Select/Footer.d.ts +0 -0
- package/types/components/Select/MultiSelect/Option.d.ts +0 -0
- package/types/components/Select/MultiSelect/OptionList.d.ts +0 -0
- package/types/components/Select/MultiSelect/index.d.ts +0 -0
- package/types/components/Select/SingleSelect/Option.d.ts +0 -0
- package/types/components/Select/SingleSelect/OptionList.d.ts +0 -0
- package/types/components/Select/SingleSelect/StyledSingleSelect.d.ts +0 -0
- package/types/components/Select/SingleSelect/index.d.ts +0 -0
- package/types/components/Select/StyledOptionList.d.ts +12 -0
- package/types/components/Select/StyledSelect.d.ts +0 -0
- package/types/components/Select/helpers.d.ts +0 -0
- package/types/components/Select/index.d.ts +0 -0
- package/types/components/Select/types.d.ts +0 -0
- package/types/components/Slider/index.d.ts +0 -0
- package/types/components/Spinner/AnimatedSpinner.d.ts +0 -0
- package/types/components/Spinner/StyledSpinner.d.ts +0 -0
- package/types/components/Spinner/index.d.ts +0 -0
- package/types/components/Swipeable/StyledSwipeable.d.ts +0 -0
- package/types/components/Swipeable/SwipeableAction.d.ts +0 -0
- package/types/components/Swipeable/index.d.ts +0 -0
- package/types/components/Switch/SelectorSwitch/Option.d.ts +0 -0
- package/types/components/Switch/SelectorSwitch/StyledSelectorSwitch.d.ts +0 -0
- package/types/components/Switch/SelectorSwitch/index.d.ts +0 -0
- package/types/components/Switch/StyledSwitch.d.ts +0 -0
- package/types/components/Switch/index.d.ts +0 -0
- package/types/components/Tabs/ActiveTabIndicator.d.ts +0 -0
- package/types/components/Tabs/ScrollableTabs.d.ts +0 -0
- package/types/components/Tabs/StyledScrollableTabs.d.ts +0 -0
- package/types/components/Tabs/StyledTabs.d.ts +0 -0
- package/types/components/Tabs/TabWithBadge.d.ts +0 -0
- package/types/components/Tabs/index.d.ts +0 -0
- package/types/components/Tabs/utils.d.ts +0 -0
- package/types/components/Tag/StyledTag.d.ts +0 -0
- package/types/components/Tag/index.d.ts +0 -0
- package/types/components/TextInput/StyledTextInput.d.ts +0 -0
- package/types/components/TextInput/index.d.ts +0 -0
- package/types/components/TimePicker/StyledTimePicker.d.ts +0 -0
- package/types/components/TimePicker/TimePickerAndroid.d.ts +0 -0
- package/types/components/TimePicker/TimePickerIOS.d.ts +0 -0
- package/types/components/TimePicker/index.d.ts +0 -0
- package/types/components/TimePicker/types.d.ts +0 -0
- package/types/components/Toast/StyledToast.d.ts +0 -0
- package/types/components/Toast/Toast.d.ts +0 -0
- package/types/components/Toast/ToastContainer.d.ts +0 -0
- package/types/components/Toast/ToastContext.d.ts +0 -0
- package/types/components/Toast/ToastProvider.d.ts +0 -0
- package/types/components/Toast/index.d.ts +0 -0
- package/types/components/Toast/types.d.ts +0 -0
- package/types/components/Toolbar/StyledToolbar.d.ts +0 -0
- package/types/components/Toolbar/ToolbarGroup.d.ts +0 -0
- package/types/components/Toolbar/ToolbarItem.d.ts +0 -0
- package/types/components/Toolbar/index.d.ts +0 -0
- package/types/components/Typography/Text/StyledText.d.ts +0 -0
- package/types/components/Typography/Text/index.d.ts +0 -0
- package/types/components/Typography/index.d.ts +0 -0
- package/types/index.d.ts +0 -0
- package/types/testHelpers/renderWithTheme.d.ts +0 -0
- package/types/theme/ThemeProvider.d.ts +0 -0
- package/types/theme/ThemeSwitcher.d.ts +0 -0
- package/types/theme/components/accordion.d.ts +0 -0
- package/types/theme/components/alert.d.ts +0 -0
- package/types/theme/components/attachment.d.ts +0 -0
- package/types/theme/components/avatar.d.ts +0 -0
- package/types/theme/components/badge.d.ts +0 -0
- package/types/theme/components/bottomNavigation.d.ts +0 -0
- package/types/theme/components/bottomSheet.d.ts +0 -0
- package/types/theme/components/button.d.ts +0 -0
- package/types/theme/components/calendar.d.ts +0 -0
- package/types/theme/components/card.d.ts +0 -0
- package/types/theme/components/checkbox.d.ts +0 -0
- package/types/theme/components/contentNavigator.d.ts +0 -0
- package/types/theme/components/datePicker.d.ts +0 -0
- package/types/theme/components/divider.d.ts +0 -0
- package/types/theme/components/drawer.d.ts +0 -0
- package/types/theme/components/empty.d.ts +0 -0
- package/types/theme/components/fab.d.ts +0 -0
- package/types/theme/components/icon.d.ts +0 -0
- package/types/theme/components/image.d.ts +0 -0
- package/types/theme/components/list.d.ts +0 -0
- package/types/theme/components/pinInput.d.ts +0 -0
- package/types/theme/components/progress.d.ts +0 -0
- package/types/theme/components/radio.d.ts +0 -0
- package/types/theme/components/refreshControl.d.ts +0 -0
- package/types/theme/components/richTextEditor.d.ts +0 -0
- package/types/theme/components/sectionHeading.d.ts +0 -0
- package/types/theme/components/select.d.ts +0 -0
- package/types/theme/components/slider.d.ts +0 -0
- package/types/theme/components/spinner.d.ts +0 -0
- package/types/theme/components/swipeable.d.ts +0 -0
- package/types/theme/components/switch.d.ts +0 -0
- package/types/theme/components/tabs.d.ts +0 -0
- package/types/theme/components/tag.d.ts +0 -0
- package/types/theme/components/textInput.d.ts +0 -0
- package/types/theme/components/timePicker.d.ts +0 -0
- package/types/theme/components/toast.d.ts +0 -0
- package/types/theme/components/toolbar.d.ts +0 -0
- package/types/theme/components/typography.d.ts +0 -0
- package/types/theme/getTheme.d.ts +0 -0
- package/types/theme/global/borders.d.ts +0 -0
- package/types/theme/global/colors/eBens.d.ts +0 -0
- package/types/theme/global/colors/global.d.ts +0 -0
- package/types/theme/global/colors/jobs.d.ts +0 -0
- package/types/theme/global/colors/legacySystemPalette.d.ts +0 -0
- package/types/theme/global/colors/swag.d.ts +0 -0
- package/types/theme/global/colors/types.d.ts +0 -0
- package/types/theme/global/colors/wallet.d.ts +0 -0
- package/types/theme/global/colors/work.d.ts +0 -0
- package/types/theme/global/index.d.ts +0 -0
- package/types/theme/global/scale.d.ts +0 -0
- package/types/theme/global/sizes.d.ts +0 -0
- package/types/theme/global/space.d.ts +0 -0
- package/types/theme/global/typography.d.ts +0 -0
- package/types/theme/index.d.ts +0 -0
- package/types/theme/utils.d.ts +2 -0
- package/types/types.d.ts +0 -0
- package/types/utils/functions.d.ts +0 -0
- package/types/utils/helpers.d.ts +0 -0
- package/types/utils/hooks.d.ts +0 -0
- package/types/utils/scale.d.ts +0 -0
|
File without changes
|
package/es/index.js
CHANGED
|
@@ -76,7 +76,7 @@ function _defineProperty(obj, key, value) {
|
|
|
76
76
|
return obj;
|
|
77
77
|
}
|
|
78
78
|
function _extends$1() {
|
|
79
|
-
_extends$1 = Object.assign
|
|
79
|
+
_extends$1 = Object.assign || function (target) {
|
|
80
80
|
for (var i = 1; i < arguments.length; i++) {
|
|
81
81
|
var source = arguments[i];
|
|
82
82
|
for (var key in source) {
|
|
@@ -1412,7 +1412,7 @@ var getFonts = function getFonts(_ref) {
|
|
|
1412
1412
|
},
|
|
1413
1413
|
playful: {
|
|
1414
1414
|
light: "".concat(playful, "-Light"),
|
|
1415
|
-
regular: "".concat(playful
|
|
1415
|
+
regular: "".concat(playful),
|
|
1416
1416
|
semiBold: "".concat(playful, "-SemiBold")
|
|
1417
1417
|
}
|
|
1418
1418
|
};
|
|
@@ -11171,7 +11171,7 @@ var calculateSnapPointsData = function calculateSnapPointsData(minimumHeight, he
|
|
|
11171
11171
|
var uniqSnapPointOffsetValues = Array.from(new Set([].concat(_toConsumableArray(snapPointsOffsetValues), [0])));
|
|
11172
11172
|
return {
|
|
11173
11173
|
list: uniqSnapPointOffsetValues,
|
|
11174
|
-
minHeightOffset: Math.max.apply(Math, uniqSnapPointOffsetValues),
|
|
11174
|
+
minHeightOffset: Math.max.apply(Math, _toConsumableArray(uniqSnapPointOffsetValues)),
|
|
11175
11175
|
maxHeightOffset: 0 // Max height
|
|
11176
11176
|
};
|
|
11177
11177
|
};
|
|
@@ -25645,7 +25645,8 @@ function checkDCE() {
|
|
|
25645
25645
|
voids: a
|
|
25646
25646
|
}));
|
|
25647
25647
|
if (v.length > 0) if ("continue" === function () {
|
|
25648
|
-
var
|
|
25648
|
+
var _v = _slicedToArray(v, 1),
|
|
25649
|
+
r = _v[0],
|
|
25649
25650
|
n = v[v.length - 1],
|
|
25650
25651
|
_r4 = _slicedToArray(r, 2),
|
|
25651
25652
|
o = _r4[1],
|
package/lib/index.js
CHANGED
|
@@ -105,7 +105,7 @@ function _defineProperty(obj, key, value) {
|
|
|
105
105
|
return obj;
|
|
106
106
|
}
|
|
107
107
|
function _extends$1() {
|
|
108
|
-
_extends$1 = Object.assign
|
|
108
|
+
_extends$1 = Object.assign || function (target) {
|
|
109
109
|
for (var i = 1; i < arguments.length; i++) {
|
|
110
110
|
var source = arguments[i];
|
|
111
111
|
for (var key in source) {
|
|
@@ -1441,7 +1441,7 @@ var getFonts = function getFonts(_ref) {
|
|
|
1441
1441
|
},
|
|
1442
1442
|
playful: {
|
|
1443
1443
|
light: "".concat(playful, "-Light"),
|
|
1444
|
-
regular: "".concat(playful
|
|
1444
|
+
regular: "".concat(playful),
|
|
1445
1445
|
semiBold: "".concat(playful, "-SemiBold")
|
|
1446
1446
|
}
|
|
1447
1447
|
};
|
|
@@ -11200,7 +11200,7 @@ var calculateSnapPointsData = function calculateSnapPointsData(minimumHeight, he
|
|
|
11200
11200
|
var uniqSnapPointOffsetValues = Array.from(new Set([].concat(_toConsumableArray(snapPointsOffsetValues), [0])));
|
|
11201
11201
|
return {
|
|
11202
11202
|
list: uniqSnapPointOffsetValues,
|
|
11203
|
-
minHeightOffset: Math.max.apply(Math, uniqSnapPointOffsetValues),
|
|
11203
|
+
minHeightOffset: Math.max.apply(Math, _toConsumableArray(uniqSnapPointOffsetValues)),
|
|
11204
11204
|
maxHeightOffset: 0 // Max height
|
|
11205
11205
|
};
|
|
11206
11206
|
};
|
|
@@ -25674,7 +25674,8 @@ function checkDCE() {
|
|
|
25674
25674
|
voids: a
|
|
25675
25675
|
}));
|
|
25676
25676
|
if (v.length > 0) if ("continue" === function () {
|
|
25677
|
-
var
|
|
25677
|
+
var _v = _slicedToArray(v, 1),
|
|
25678
|
+
r = _v[0],
|
|
25678
25679
|
n = v[v.length - 1],
|
|
25679
25680
|
_r4 = _slicedToArray(r, 2),
|
|
25680
25681
|
o = _r4[1],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hero-design/rn",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.0-2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -15,12 +15,13 @@
|
|
|
15
15
|
"build:types": "tsc --noEmit false --emitDeclarationOnly --project tsconfig.prod.json",
|
|
16
16
|
"build": "yarn build:js && yarn build:types",
|
|
17
17
|
"build:watch": "yarn build:js -w & yarn build:types -w",
|
|
18
|
-
"publish:npm": "yarn publish --access public"
|
|
18
|
+
"publish:npm": "yarn publish --access public",
|
|
19
|
+
"set-dev-env": "npm pkg set react-native=src/index.ts"
|
|
19
20
|
},
|
|
20
21
|
"dependencies": {
|
|
21
22
|
"@emotion/native": "^11.9.3",
|
|
22
23
|
"@emotion/react": "^11.9.3",
|
|
23
|
-
"@hero-design/colors": "
|
|
24
|
+
"@hero-design/colors": "8.0.0-2",
|
|
24
25
|
"date-fns": "^2.16.1",
|
|
25
26
|
"events": "^3.2.0",
|
|
26
27
|
"hero-editor": "^1.9.12"
|
|
@@ -43,7 +44,7 @@
|
|
|
43
44
|
"@babel/preset-typescript": "^7.17.12",
|
|
44
45
|
"@babel/runtime": "^7.18.9",
|
|
45
46
|
"@emotion/jest": "^11.9.3",
|
|
46
|
-
"@hero-design/eslint-plugin": "
|
|
47
|
+
"@hero-design/eslint-plugin": "8.0.0-2",
|
|
47
48
|
"@react-native-community/datetimepicker": "^3.5.2",
|
|
48
49
|
"@react-native-community/slider": "4.1.12",
|
|
49
50
|
"@rollup/plugin-babel": "^5.3.1",
|
|
@@ -59,8 +60,9 @@
|
|
|
59
60
|
"@types/react-native": "^0.67.7",
|
|
60
61
|
"@types/react-native-vector-icons": "^6.4.10",
|
|
61
62
|
"babel-plugin-inline-import": "^3.0.0",
|
|
62
|
-
"eslint-config-hd": "
|
|
63
|
+
"eslint-config-hd": "8.0.0-2",
|
|
63
64
|
"jest": "^27.3.1",
|
|
65
|
+
"prettier-config-hd": "8.0.0-2",
|
|
64
66
|
"react": "17.0.2",
|
|
65
67
|
"react-native": "0.65.1",
|
|
66
68
|
"react-native-gesture-handler": "~2.1.0",
|
|
@@ -69,12 +71,11 @@
|
|
|
69
71
|
"react-native-vector-icons": "^9.1.0",
|
|
70
72
|
"react-native-webview": "^11.15.0",
|
|
71
73
|
"react-test-renderer": "17.0.2",
|
|
74
|
+
"rn-7-23-0": "npm:@hero-design/rn@7.23.0",
|
|
72
75
|
"rollup": "^2.68.0",
|
|
73
76
|
"rollup-plugin-copy": "^3.4.0",
|
|
74
77
|
"rollup-plugin-flow": "^1.1.1",
|
|
75
|
-
"ts-jest": "^27.0.7"
|
|
76
|
-
"prettier-config-hd": "7.30.0",
|
|
77
|
-
"rn-7-23-0": "npm:@hero-design/rn@7.23.0"
|
|
78
|
+
"ts-jest": "^27.0.7"
|
|
78
79
|
},
|
|
79
80
|
"prettier": "prettier-config-hd"
|
|
80
81
|
}
|
|
@@ -38,7 +38,7 @@ exports[`Empty renders empty state content correctly 1`] = `
|
|
|
38
38
|
Array [
|
|
39
39
|
Object {
|
|
40
40
|
"color": "#4d6265",
|
|
41
|
-
"fontFamily": "RebondGrotesque
|
|
41
|
+
"fontFamily": "RebondGrotesque",
|
|
42
42
|
"fontSize": 18,
|
|
43
43
|
"textAlign": "center",
|
|
44
44
|
},
|
|
@@ -105,7 +105,7 @@ exports[`Empty renders empty state with image correctly 1`] = `
|
|
|
105
105
|
Array [
|
|
106
106
|
Object {
|
|
107
107
|
"color": "#4d6265",
|
|
108
|
-
"fontFamily": "RebondGrotesque
|
|
108
|
+
"fontFamily": "RebondGrotesque",
|
|
109
109
|
"fontSize": 18,
|
|
110
110
|
"textAlign": "center",
|
|
111
111
|
},
|
|
@@ -190,7 +190,7 @@ exports[`StyledText has playful typeface style 1`] = `
|
|
|
190
190
|
Array [
|
|
191
191
|
Object {
|
|
192
192
|
"color": "#001f23",
|
|
193
|
-
"fontFamily": "RebondGrotesque
|
|
193
|
+
"fontFamily": "RebondGrotesque",
|
|
194
194
|
"fontSize": 14,
|
|
195
195
|
"letterSpacing": 0.42,
|
|
196
196
|
"lineHeight": 22,
|
|
@@ -340,7 +340,7 @@ Object {
|
|
|
340
340
|
"title": 24,
|
|
341
341
|
},
|
|
342
342
|
"fonts": Object {
|
|
343
|
-
"description": "RebondGrotesque
|
|
343
|
+
"description": "RebondGrotesque",
|
|
344
344
|
"title": "RebondGrotesque-SemiBold",
|
|
345
345
|
},
|
|
346
346
|
"sizes": Object {
|
|
@@ -924,7 +924,7 @@ Object {
|
|
|
924
924
|
},
|
|
925
925
|
"playful": Object {
|
|
926
926
|
"light": "RebondGrotesque-Light",
|
|
927
|
-
"regular": "RebondGrotesque
|
|
927
|
+
"regular": "RebondGrotesque",
|
|
928
928
|
"semiBold": "RebondGrotesque-SemiBold",
|
|
929
929
|
},
|
|
930
930
|
},
|
|
@@ -1054,7 +1054,7 @@ Object {
|
|
|
1054
1054
|
},
|
|
1055
1055
|
"playful": Object {
|
|
1056
1056
|
"light": "RebondGrotesque-Light",
|
|
1057
|
-
"regular": "RebondGrotesque
|
|
1057
|
+
"regular": "RebondGrotesque",
|
|
1058
1058
|
"semiBold": "RebondGrotesque-SemiBold",
|
|
1059
1059
|
},
|
|
1060
1060
|
},
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function usePropsOrInternalState<T>(initialState: T, state: T | undefined, setState: ((val: T) => void) | undefined): [T, (val: T) => void];
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SectionList } from 'react-native';
|
|
3
|
+
import type { ReactElement } from 'react';
|
|
4
|
+
import type { SectionListRenderItemInfo } from 'react-native';
|
|
5
|
+
import type { SectionData, OptionType, SelectProps, SectionType } from './types';
|
|
6
|
+
export declare type StyledOptionListProps<V, T extends OptionType<V>> = Pick<SelectProps<V, T>, 'keyExtractor' | 'loading' | 'onEndReached' | 'onQueryChange'> & {
|
|
7
|
+
sections: SectionData<V, T>[];
|
|
8
|
+
renderItem: (info: SectionListRenderItemInfo<T, SectionType>) => ReactElement;
|
|
9
|
+
sectionListRef?: React.RefObject<SectionList<T, SectionType>>;
|
|
10
|
+
};
|
|
11
|
+
declare const StyledOptionList: <V, T extends OptionType<V>>({ keyExtractor, loading, onEndReached, onQueryChange, sections, renderItem, sectionListRef, }: StyledOptionListProps<V, T>) => JSX.Element;
|
|
12
|
+
export default StyledOptionList;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|