react-native-ui-lib 8.0.1 → 8.1.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/jestSetup/jest-setup.js +154 -0
- package/lib/components/DynamicFonts/FontDownloader.d.js +1 -0
- package/lib/components/DynamicFonts/FontLoader.d.js +1 -0
- package/lib/components/DynamicFonts/NoPermissionsAcquirer.d.js +1 -0
- package/lib/components/DynamicFonts/PermissionsAcquirer.android.d.js +1 -0
- package/lib/components/DynamicFonts/PermissionsAcquirer.ios.d.js +2 -0
- package/lib/components/DynamicFonts/PermissionsAcquirer.web.d.js +2 -0
- package/lib/components/DynamicFonts/RNFSPackage.d.js +1 -0
- package/lib/components/DynamicFonts/index.d.js +3 -0
- package/lib/components/HighlighterOverlayView/index.d.js +1 -0
- package/lib/components/HighlighterOverlayView/index.web.d.js +1 -0
- package/lib/components/Keyboard/KeyboardAccessoryView/CustomKeyboardView/CustomKeyboardView.android.d.js +2 -0
- package/lib/components/Keyboard/KeyboardAccessoryView/CustomKeyboardView/CustomKeyboardView.ios.d.js +2 -0
- package/lib/components/Keyboard/KeyboardAccessoryView/CustomKeyboardView/CustomKeyboardViewBase.d.js +2 -0
- package/lib/components/Keyboard/KeyboardAccessoryView/CustomKeyboardView/index.d.js +1 -0
- package/lib/components/Keyboard/KeyboardAccessoryView/CustomKeyboardView/index.web.d.js +1 -0
- package/lib/components/Keyboard/KeyboardAccessoryView/KeyboardRegistry/EventEmitterManager/index.d.js +1 -0
- package/lib/components/Keyboard/KeyboardAccessoryView/KeyboardRegistry/index.d.js +5 -0
- package/lib/components/Keyboard/KeyboardAccessoryView/KeyboardUtils/index.d.js +1 -0
- package/lib/components/Keyboard/KeyboardAccessoryView/TextInputKeyboardManager/TextInputKeyboardManager.android.d.js +1 -0
- package/lib/components/Keyboard/KeyboardAccessoryView/TextInputKeyboardManager/TextInputKeyboardManager.ios.d.js +1 -0
- package/lib/components/Keyboard/KeyboardAccessoryView/TextInputKeyboardManager/index.d.js +1 -0
- package/lib/components/Keyboard/KeyboardAccessoryView/index.d.js +7 -0
- package/lib/components/Keyboard/KeyboardAwareInsetsView/index.d.js +1 -0
- package/lib/components/Keyboard/KeyboardTrackingView/KeyboardTrackingView.android.d.js +1 -0
- package/lib/components/Keyboard/KeyboardTrackingView/KeyboardTrackingView.ios.d.js +10 -0
- package/lib/components/Keyboard/KeyboardTrackingView/index.d.js +1 -0
- package/lib/components/Keyboard/KeyboardTrackingView/index.web.d.js +1 -0
- package/lib/components/Keyboard/index.d.js +4 -0
- package/lib/components/SafeArea/SafeAreaInsetsManager.d.js +1 -0
- package/lib/components/SafeArea/SafeAreaSpacerView.d.js +1 -0
- package/lib/components/SafeArea/SafeAreaSpacerView.web.d.js +1 -0
- package/lib/components/SafeArea/index.d.js +1 -0
- package/lib/components/index.d.js +6 -0
- package/lib/scripts/releaseNative.js +72 -0
- package/lib/specs/HighlighterViewNativeComponent.d.js +1 -0
- package/lib/specs/HighlighterViewNativeComponent.d.ts +61 -0
- package/lib/specs/HighlighterViewNativeComponent.js +8 -0
- package/lib/specs/KeyboardTrackingViewNativeComponent.d.js +1 -0
- package/lib/specs/KeyboardTrackingViewNativeComponent.d.ts +58 -0
- package/lib/specs/KeyboardTrackingViewNativeComponent.js +8 -0
- package/package.json +7 -31
- package/scripts/build/build.js +35 -0
- package/scripts/build/buildPackages/buildComponentsPackages.js +18 -0
- package/scripts/build/buildPackages/buildCustomPackages.js +106 -0
- package/scripts/build/buildPackages/index.js +6 -0
- package/scripts/createCalendarMockData.js +37 -0
- package/scripts/docs/buildDocs.js +1 -0
- package/scripts/prepush.js +71 -0
- package/scripts/release/prReleaseNotes.js +6 -0
- package/scripts/release/release.js +99 -0
- package/scripts/updateWebAssets.js +88 -0
- package/scripts/utils.js +21 -0
- package/src/assets/__tests__/Assets.spec.js +110 -0
- package/src/commons/__tests__/baseComponent.spec.js +36 -0
- package/src/commons/__tests__/constants.spec.js +202 -0
- package/src/commons/__tests__/modifiers.spec.js +453 -0
- package/src/components/WheelPicker/__tests__/index.spec.js +121 -0
- package/src/components/WheelPicker/__tests__/useListMiddleIndex.spec.js +40 -0
- package/src/components/WheelPicker/__tests__/usePresenter.spec.js +87 -0
- package/src/components/avatar/__tests__/index.spec.js +25 -0
- package/src/components/badge/__tests__/index.spec.js +84 -0
- package/src/components/button/__tests__/index.driver.spec.js +209 -0
- package/src/components/button/__tests__/index.spec.js +287 -0
- package/src/components/button/index.js +30 -8
- package/src/components/card/__tests__/CardPresenter.spec.js +35 -0
- package/src/components/carousel/__tests__/CarouselPresenter.spec.js +52 -0
- package/src/components/carousel/__tests__/index.spec.js +89 -0
- package/src/components/carousel/index.js +2 -1
- package/src/components/checkbox/__tests__/index.spec.js +357 -0
- package/src/components/chip/__tests__/index.spec.js +63 -0
- package/src/components/colorSwatch/index.js +1 -1
- package/src/components/connectionStatusBar/__tests__/index.spec.js +41 -0
- package/src/components/dateTimePicker/__tests__/index.spec.js +44 -0
- package/src/components/dialog/__tests__/index.new.spec.js +118 -0
- package/src/components/featureHighlight/__tests__/index.spec.js +76 -0
- package/src/components/floatingButton/__tests__/index.spec.js +229 -0
- package/src/components/floatingButton/index.js +66 -35
- package/src/components/hint/__tests__/index.spec.js +108 -0
- package/src/components/image/__tests__/index.spec.js +56 -0
- package/src/components/image/image.api.json +193 -1
- package/src/components/maskedInput/__tests__/maskedInput.new.spec.js +19 -0
- package/src/components/maskedInput/__tests__/maskedInput.old.spec.js +20 -0
- package/src/components/modal/__tests__/index.spec.js +58 -0
- package/src/components/numberInput/__tests__/Presenter.spec.js +374 -0
- package/src/components/numberInput/__tests__/index.spec.js +38 -0
- package/src/components/numberInput/numberInput.api.json +131 -6
- package/src/components/overlay/index.js +2 -1
- package/src/components/pageControl/pageControl.api.json +175 -1
- package/src/components/panView/__tests__/panningUtil.spec.js +693 -0
- package/src/components/picker/__tests__/PickerPresenter.spec.js +15 -0
- package/src/components/picker/__tests__/index.spec.js +364 -0
- package/src/components/picker/helpers/__tests__/usePickerLabel.spec.js +96 -0
- package/src/components/radioButton/__tests__/index.spec.js +43 -0
- package/src/components/radioGroup/__tests__/index.spec.js +96 -0
- package/src/components/sectionsWheelPicker/__tests__/index.spec.js +35 -0
- package/src/components/sectionsWheelPicker/__tests__/mockSections.js +28 -0
- package/src/components/segmentedControl/__tests__/index.spec.js +25 -0
- package/src/components/slider/__tests__/index.spec.js +35 -0
- package/src/components/slider/index.js +12 -1
- package/src/components/slider/slider.api.json +11 -0
- package/src/components/sortableGridList/__tests__/index.spec.js +51 -0
- package/src/components/sortableGridList/__tests__/usePresenter.spec.js +231 -0
- package/src/components/sortableGridList/sortableGridList.api.json +44 -1
- package/src/components/sortableList/SortableList.api.json +51 -3
- package/src/components/sortableList/__tests__/index.spec.js +105 -0
- package/src/components/stackAggregator/assets/arrow-down.png +0 -0
- package/src/components/stackAggregator/assets/arrow-down@2x.png +0 -0
- package/src/components/stackAggregator/assets/arrow-down@3x.png +0 -0
- package/src/components/switch/__tests__/index.spec.js +96 -0
- package/src/components/text/__tests__/index.driver.spec.js +124 -0
- package/src/components/text/__tests__/index.spec.js +245 -0
- package/src/components/textField/__tests__/Presenter.spec.js +240 -0
- package/src/components/textField/__tests__/index.driver.spec.js +639 -0
- package/src/components/timeline/__tests__/driver.index.spec.js +133 -0
- package/src/helpers/__tests__/AvatarHelper.spec.js +170 -0
- package/src/hooks/useDidUpdate/__tests__/useDidUpdate.spec.js +80 -0
- package/src/hooks/useOrientation/__tests__/useOrientation.spec.js +70 -0
- package/src/hooks/useToggleValue/__tests__/useToggleValue.spec.js +89 -0
- package/src/incubator/calendar/__tests__/DateUtils.spec.js +367 -0
- package/src/incubator/expandableOverlay/__tests__/index.spec.js +114 -0
- package/src/incubator/gradient/__tests__/useAngleTransform.spec.js +126 -0
- package/src/incubator/slider/__tests__/SliderPresenter.spec.js +43 -0
- package/src/incubator/slider/__tests__/index.spec.js +34 -0
- package/src/incubator/slider/slider.api.json +11 -0
- package/src/incubator/toast/__tests__/index.spec.js +64 -0
- package/src/style/__tests__/colors.spec.js +313 -0
- package/src/style/__tests__/scheme.spec.js +119 -0
- package/src/style/typographyPresets.js +26 -23
- package/src/utils/__tests__/Playground.perf.js +14 -0
- package/src/utils/__tests__/imageUtils.spec.js +54 -0
- package/src/utils/__tests__/textUtils.spec.js +446 -0
- package/.eslintrc.js +0 -56
- package/babel.config.js +0 -35
- package/index.js +0 -10
- package/lib/android/build.gradle +0 -32
- package/lib/android/src/main/AndroidManifest.xml +0 -4
- package/lib/android/src/main/java/com/wix/reactnativeuilib/UiLibPackageList.java +0 -28
- package/lib/android/src/main/java/com/wix/reactnativeuilib/dynamicfont/DynamicFontModule.java +0 -139
- package/lib/android/src/main/java/com/wix/reactnativeuilib/dynamicfont/DynamicFontPackage.java +0 -28
- package/lib/android/src/main/java/com/wix/reactnativeuilib/highlighterview/HighlightFrame.java +0 -33
- package/lib/android/src/main/java/com/wix/reactnativeuilib/highlighterview/HighlightViewTagParams.java +0 -50
- package/lib/android/src/main/java/com/wix/reactnativeuilib/highlighterview/HighlighterView.java +0 -167
- package/lib/android/src/main/java/com/wix/reactnativeuilib/highlighterview/HighlighterViewManager.java +0 -131
- package/lib/android/src/main/java/com/wix/reactnativeuilib/highlighterview/HighlighterViewPackage.java +0 -28
- package/lib/android/src/main/java/com/wix/reactnativeuilib/highlighterview/UiUtils.java +0 -50
- package/lib/android/src/main/java/com/wix/reactnativeuilib/keyboardinput/AppContextHolder.java +0 -52
- package/lib/android/src/main/java/com/wix/reactnativeuilib/keyboardinput/CustomKeyboardLayout.java +0 -213
- package/lib/android/src/main/java/com/wix/reactnativeuilib/keyboardinput/CustomKeyboardRootView.java +0 -39
- package/lib/android/src/main/java/com/wix/reactnativeuilib/keyboardinput/CustomKeyboardRootViewManager.java +0 -29
- package/lib/android/src/main/java/com/wix/reactnativeuilib/keyboardinput/CustomKeyboardRootViewShadow.java +0 -29
- package/lib/android/src/main/java/com/wix/reactnativeuilib/keyboardinput/KeyboardInputModule.java +0 -34
- package/lib/android/src/main/java/com/wix/reactnativeuilib/keyboardinput/KeyboardInputPackage.java +0 -49
- package/lib/android/src/main/java/com/wix/reactnativeuilib/keyboardinput/ReactContextHolder.java +0 -16
- package/lib/android/src/main/java/com/wix/reactnativeuilib/keyboardinput/ReactScreenMonitor.java +0 -83
- package/lib/android/src/main/java/com/wix/reactnativeuilib/keyboardinput/ReactSoftKeyboardMonitor.java +0 -163
- package/lib/android/src/main/java/com/wix/reactnativeuilib/keyboardinput/utils/PredicateFunc.java +0 -5
- package/lib/android/src/main/java/com/wix/reactnativeuilib/keyboardinput/utils/RuntimeUtils.java +0 -33
- package/lib/android/src/main/java/com/wix/reactnativeuilib/keyboardinput/utils/ViewUtils.java +0 -65
- package/lib/android/src/main/java/com/wix/reactnativeuilib/utils/LogForwarder.java +0 -45
- package/lib/android/src/main/res/layout/wheel_picker.xml +0 -9
- package/lib/android/src/main/res/values/colors.xml +0 -9
- package/lib/android/src/main/res/values/styles.xml +0 -9
- package/lib/components/Keyboard/KeyboardAccessoryView/KeyboardRegistry/keyboardRegistry.api.json +0 -50
- package/lib/components/Keyboard/KeyboardAccessoryView/keyboardAccessoryView.api.json +0 -58
- package/lib/components/Keyboard/KeyboardAwareInsetsView/keyboardAwareInsetsView.api.json +0 -14
- package/lib/components/Keyboard/KeyboardTrackingView/keyboardTrackingView.api.json +0 -86
- package/lib/ios/reactnativeuilib/dynamicfont/DynamicFont.h +0 -9
- package/lib/ios/reactnativeuilib/dynamicfont/DynamicFont.m +0 -115
- package/lib/ios/reactnativeuilib/highlighterview/HighlighterView.h +0 -19
- package/lib/ios/reactnativeuilib/highlighterview/HighlighterView.m +0 -216
- package/lib/ios/reactnativeuilib/highlighterview/HighlighterViewManager.h +0 -6
- package/lib/ios/reactnativeuilib/highlighterview/HighlighterViewManager.m +0 -28
- package/lib/ios/reactnativeuilib/keyboardinput/lninterpolation/Color+Interpolation.h +0 -39
- package/lib/ios/reactnativeuilib/keyboardinput/lninterpolation/Color+Interpolation.m +0 -160
- package/lib/ios/reactnativeuilib/keyboardinput/lninterpolation/LNAnimatorTemp.h +0 -36
- package/lib/ios/reactnativeuilib/keyboardinput/lninterpolation/LNAnimatorTemp.m +0 -121
- package/lib/ios/reactnativeuilib/keyboardinput/lninterpolation/LNInterpolable.h +0 -48
- package/lib/ios/reactnativeuilib/keyboardinput/lninterpolation/LNInterpolable.m +0 -27
- package/lib/ios/reactnativeuilib/keyboardinput/lninterpolation/LNInterpolation.h +0 -16
- package/lib/ios/reactnativeuilib/keyboardinput/lninterpolation/NSValue+Interpolation.h +0 -19
- package/lib/ios/reactnativeuilib/keyboardinput/lninterpolation/NSValue+Interpolation.mm +0 -155
- package/lib/ios/reactnativeuilib/keyboardinput/rctcustomInputcontroller/RCTCustomInputControllerTemp.h +0 -16
- package/lib/ios/reactnativeuilib/keyboardinput/rctcustomInputcontroller/RCTCustomInputControllerTemp.m +0 -450
- package/lib/ios/reactnativeuilib/keyboardinput/rctcustomInputcontroller/RCTCustomKeyboardViewControllerTemp.h +0 -18
- package/lib/ios/reactnativeuilib/keyboardinput/rctcustomInputcontroller/RCTCustomKeyboardViewControllerTemp.m +0 -99
- package/lib/ios/reactnativeuilib/keyboardtrackingview/KeyboardTrackingViewTempManager.h +0 -14
- package/lib/ios/reactnativeuilib/keyboardtrackingview/KeyboardTrackingViewTempManager.m +0 -827
- package/lib/ios/reactnativeuilib/keyboardtrackingview/ObservingInputAccessoryViewTemp.h +0 -44
- package/lib/ios/reactnativeuilib/keyboardtrackingview/ObservingInputAccessoryViewTemp.m +0 -171
- package/lib/ios/reactnativeuilib/keyboardtrackingview/UIResponder+FirstResponderTemp.h +0 -6
- package/lib/ios/reactnativeuilib/keyboardtrackingview/UIResponder+FirstResponderTemp.m +0 -17
- package/lib/ios/reactnativeuilib/safearea/SafeAreaManager.h +0 -6
- package/lib/ios/reactnativeuilib/safearea/SafeAreaManager.m +0 -105
- package/lib/ios/reactnativeuilib/safearea/SafeAreaSpacerShadowView.h +0 -5
- package/lib/ios/reactnativeuilib/safearea/SafeAreaSpacerShadowView.m +0 -20
- package/lib/ios/reactnativeuilib/safearea/SafeAreaSpacerView.h +0 -7
- package/lib/ios/reactnativeuilib/safearea/SafeAreaSpacerView.m +0 -76
- package/lib/ios/reactnativeuilib/safearea/SafeAreaSpacerViewLocalData.h +0 -9
- package/lib/ios/reactnativeuilib/safearea/SafeAreaSpacerViewLocalData.m +0 -14
- package/lib/ios/reactnativeuilib/safearea/SafeAreaSpacerViewManager.h +0 -5
- package/lib/ios/reactnativeuilib/safearea/SafeAreaSpacerViewManager.m +0 -26
- package/lib/ios/reactnativeuilib.xcodeproj/project.pbxproj +0 -435
- package/metro.config.js +0 -23
- package/src/.babelrc.json +0 -23
- package/src/assets/Assets.d.ts +0 -5
- package/src/assets/emojis/index.d.ts +0 -1343
- package/src/assets/index.d.ts +0 -3
- package/src/assets/internal/index.d.ts +0 -4
- package/src/commons/Config.d.ts +0 -24
- package/src/commons/Constants.d.ts +0 -54
- package/src/commons/UIComponent.d.ts +0 -4
- package/src/commons/asBaseComponent.d.ts +0 -15
- package/src/commons/baseComponent.d.ts +0 -2
- package/src/commons/forwardRef.d.ts +0 -8
- package/src/commons/modifiers.d.ts +0 -118
- package/src/commons/new.d.ts +0 -8
- package/src/commons/withScrollEnabler.d.ts +0 -13
- package/src/commons/withScrollReached.d.ts +0 -35
- package/src/components/WheelPicker/Item.d.ts +0 -28
- package/src/components/WheelPicker/WheelPicker.driver.d.ts +0 -18
- package/src/components/WheelPicker/WheelPickerItem.driver.d.ts +0 -8
- package/src/components/WheelPicker/helpers/useListMiddleIndex.d.ts +0 -6
- package/src/components/WheelPicker/index.d.ts +0 -88
- package/src/components/WheelPicker/types.d.ts +0 -6
- package/src/components/WheelPicker/usePresenter.d.ts +0 -21
- package/src/components/actionBar/index.d.ts +0 -35
- package/src/components/actionSheet/index.d.ts +0 -80
- package/src/components/animatedImage/index.d.ts +0 -28
- package/src/components/avatar/index.d.ts +0 -382
- package/src/components/badge/index.d.ts +0 -879
- package/src/components/baseInput/Validators.d.ts +0 -8
- package/src/components/baseInput/index.d.ts +0 -29
- package/src/components/button/Button.driver.new.d.ts +0 -34
- package/src/components/button/ButtonConstants.d.ts +0 -26
- package/src/components/button/index.d.ts +0 -572
- package/src/components/button/types.d.ts +0 -153
- package/src/components/card/CardContext.d.ts +0 -3
- package/src/components/card/CardImage.d.ts +0 -20
- package/src/components/card/CardPresenter.d.ts +0 -12
- package/src/components/card/CardSection.d.ts +0 -79
- package/src/components/card/asCardChild.d.ts +0 -6
- package/src/components/card/index.d.ts +0 -120
- package/src/components/carousel/Carousel.driver.new.d.ts +0 -9
- package/src/components/carousel/CarouselPresenter.d.ts +0 -9
- package/src/components/carousel/index.d.ts +0 -73
- package/src/components/carousel/types.d.ts +0 -107
- package/src/components/checkbox/Checkbox.driver.d.ts +0 -15
- package/src/components/checkbox/index.d.ts +0 -129
- package/src/components/chip/chip.driver.d.ts +0 -33
- package/src/components/chip/index.d.ts +0 -209
- package/src/components/chipsInput/index.d.ts +0 -55
- package/src/components/colorPalette/index.d.ts +0 -116
- package/src/components/colorPicker/ColorPickerDialog.d.ts +0 -39
- package/src/components/colorPicker/ColorPickerDialogHeader.d.ts +0 -9
- package/src/components/colorPicker/ColorPickerDialogSliders.d.ts +0 -10
- package/src/components/colorPicker/ColorPickerPresenter.d.ts +0 -16
- package/src/components/colorPicker/ColorPickerPreview.d.ts +0 -12
- package/src/components/colorPicker/index.d.ts +0 -45
- package/src/components/colorSwatch/index.d.ts +0 -50
- package/src/components/connectionStatusBar/index.d.ts +0 -33
- package/src/components/connectionStatusBar/types.d.ts +0 -28
- package/src/components/dash/index.d.ts +0 -19
- package/src/components/dateTimePicker/DateTimePicker.driver.d.ts +0 -7
- package/src/components/dateTimePicker/index.d.ts +0 -288
- package/src/components/dateTimePicker/useOldApi.d.ts +0 -27
- package/src/components/dialog/Dialog.driver.new.d.ts +0 -6
- package/src/components/dialog/DialogHeader.d.ts +0 -4
- package/src/components/dialog/index.d.ts +0 -15
- package/src/components/dialog/types.d.ts +0 -138
- package/src/components/dialog/useDialogContent.d.ts +0 -13
- package/src/components/drawer/Swipeable.d.ts +0 -94
- package/src/components/drawer/index.d.ts +0 -161
- package/src/components/expandableSection/index.d.ts +0 -40
- package/src/components/fadedScrollView/index.d.ts +0 -59
- package/src/components/fader/index.d.ts +0 -37
- package/src/components/featureHighlight/index.d.ts +0 -147
- package/src/components/floatingButton/index.d.ts +0 -85
- package/src/components/gradient/index.d.ts +0 -19
- package/src/components/gridList/index.d.ts +0 -5
- package/src/components/gridList/types.d.ts +0 -29
- package/src/components/gridList/useGridLayout.d.ts +0 -15
- package/src/components/gridListItem/index.d.ts +0 -132
- package/src/components/gridView/index.d.ts +0 -80
- package/src/components/hint/Hint.driver.d.ts +0 -6
- package/src/components/hint/Hint.driver.new.d.ts +0 -19
- package/src/components/hint/HintAnchor.d.ts +0 -13
- package/src/components/hint/HintBubble.d.ts +0 -12
- package/src/components/hint/HintMockChildren.d.ts +0 -8
- package/src/components/hint/HintOld.d.ts +0 -196
- package/src/components/hint/hooks/useHintAccessibility.d.ts +0 -10
- package/src/components/hint/hooks/useHintLayout.d.ts +0 -13
- package/src/components/hint/hooks/useHintPosition.d.ts +0 -29
- package/src/components/hint/hooks/useHintVisibility.d.ts +0 -6
- package/src/components/hint/index.d.ts +0 -14
- package/src/components/hint/types.d.ts +0 -106
- package/src/components/icon/index.d.ts +0 -97
- package/src/components/image/Image.driver.d.ts +0 -4
- package/src/components/image/Image.driver.new.d.ts +0 -2
- package/src/components/image/index.d.ts +0 -192
- package/src/components/listItem/ListItemPart.d.ts +0 -15
- package/src/components/listItem/index.d.ts +0 -52
- package/src/components/listItem/types.d.ts +0 -60
- package/src/components/loaderScreen/index.d.ts +0 -13
- package/src/components/loaderScreen/types.d.ts +0 -32
- package/src/components/marquee/index.d.ts +0 -5
- package/src/components/marquee/types.d.ts +0 -35
- package/src/components/maskedInput/index.d.ts +0 -5
- package/src/components/maskedInput/new.d.ts +0 -22
- package/src/components/modal/Modal.driver.new.d.ts +0 -8
- package/src/components/modal/TopBar.d.ts +0 -89
- package/src/components/modal/index.d.ts +0 -64
- package/src/components/numberInput/NumberInput.driver.d.ts +0 -6
- package/src/components/numberInput/Presenter.d.ts +0 -21
- package/src/components/numberInput/index.d.ts +0 -57
- package/src/components/overlay/index.d.ts +0 -68
- package/src/components/pageControl/index.d.ts +0 -56
- package/src/components/panView/index.d.ts +0 -21
- package/src/components/panView/panningUtil.d.ts +0 -38
- package/src/components/panView/usePanGesture.d.ts +0 -49
- package/src/components/picker/Picker.driver.new.d.ts +0 -44
- package/src/components/picker/PickerContext.d.ts +0 -4
- package/src/components/picker/PickerItem.d.ts +0 -11
- package/src/components/picker/PickerItemsList.d.ts +0 -4
- package/src/components/picker/PickerPresenter.d.ts +0 -7
- package/src/components/picker/PickerSelectionStatusBar.d.ts +0 -3
- package/src/components/picker/helpers/useFieldType.d.ts +0 -373
- package/src/components/picker/helpers/useImperativePickerHandle.d.ts +0 -5
- package/src/components/picker/helpers/useNewPickerProps.d.ts +0 -3
- package/src/components/picker/helpers/usePickerLabel.d.ts +0 -17
- package/src/components/picker/helpers/usePickerMigrationWarnings.d.ts +0 -4
- package/src/components/picker/helpers/usePickerSearch.d.ts +0 -9
- package/src/components/picker/helpers/usePickerSelection.d.ts +0 -16
- package/src/components/picker/index.d.ts +0 -15
- package/src/components/picker/types.d.ts +0 -321
- package/src/components/pieChart/PieSegment.d.ts +0 -34
- package/src/components/pieChart/index.d.ts +0 -15
- package/src/components/progressBar/index.d.ts +0 -65
- package/src/components/progressiveImage/index.d.ts +0 -23
- package/src/components/radioButton/RadioButton.driver.d.ts +0 -9
- package/src/components/radioButton/index.d.ts +0 -121
- package/src/components/radioGroup/RadioGroup.driver.d.ts +0 -13
- package/src/components/radioGroup/RadioGroupContext.d.ts +0 -14
- package/src/components/radioGroup/asRadioGroupChild.d.ts +0 -2
- package/src/components/radioGroup/index.d.ts +0 -47
- package/src/components/scrollBar/index.d.ts +0 -88
- package/src/components/searchInput/index.d.ts +0 -37
- package/src/components/searchInput/types.d.ts +0 -66
- package/src/components/sectionsWheelPicker/SectionsWheelPicker.driver.d.ts +0 -25
- package/src/components/sectionsWheelPicker/index.d.ts +0 -43
- package/src/components/segmentedControl/index.d.ts +0 -90
- package/src/components/segmentedControl/segment.d.ts +0 -111
- package/src/components/segmentedControl/useSegmentedControlPreset.d.ts +0 -10
- package/src/components/skeletonView/index.d.ts +0 -163
- package/src/components/slider/ColorSliderGroup.d.ts +0 -13
- package/src/components/slider/GradientSlider.d.ts +0 -20
- package/src/components/slider/SliderContext.d.ts +0 -8
- package/src/components/slider/Thumb.d.ts +0 -32
- package/src/components/slider/index.d.ts +0 -31
- package/src/components/slider/slider.driver.d.ts +0 -5
- package/src/components/slider/types.d.ts +0 -197
- package/src/components/sortableGridList/SortableItem.d.ts +0 -6
- package/src/components/sortableGridList/index.d.ts +0 -5
- package/src/components/sortableGridList/types.d.ts +0 -34
- package/src/components/sortableGridList/usePresenter.d.ts +0 -21
- package/src/components/sortableList/SortableList.driver.new.d.ts +0 -2
- package/src/components/sortableList/SortableListContext.d.ts +0 -19
- package/src/components/sortableList/SortableListItem.d.ts +0 -8
- package/src/components/sortableList/SortableListItem.driver.new.d.ts +0 -11
- package/src/components/sortableList/index.d.ts +0 -5
- package/src/components/sortableList/types.d.ts +0 -48
- package/src/components/sortableList/usePresenter.d.ts +0 -12
- package/src/components/stackAggregator/index.d.ts +0 -89
- package/src/components/stateScreen/index.d.ts +0 -5
- package/src/components/stateScreen/types.d.ts +0 -30
- package/src/components/stepper/index.d.ts +0 -47
- package/src/components/svgImage/index.d.ts +0 -14
- package/src/components/svgImage/index.web.d.ts +0 -18
- package/src/components/switch/index.d.ts +0 -102
- package/src/components/switch/switch.driver.d.ts +0 -18
- package/src/components/tabController/PageCarousel.d.ts +0 -9
- package/src/components/tabController/TabBar.d.ts +0 -97
- package/src/components/tabController/TabBarContext.d.ts +0 -18
- package/src/components/tabController/TabBarItem.d.ts +0 -105
- package/src/components/tabController/TabPage.d.ts +0 -33
- package/src/components/tabController/index.d.ts +0 -48
- package/src/components/tabController/useImperativeTabControllerHandle.d.ts +0 -6
- package/src/components/tabController/useScrollToItem.d.ts +0 -79
- package/src/components/text/Text.driver.d.ts +0 -7
- package/src/components/text/Text.driver.new.d.ts +0 -17
- package/src/components/text/index.d.ts +0 -195
- package/src/components/textField/CharCounter.d.ts +0 -7
- package/src/components/textField/ClearButton.d.ts +0 -4
- package/src/components/textField/FieldContext.d.ts +0 -4
- package/src/components/textField/FloatingPlaceholder.d.ts +0 -7
- package/src/components/textField/Input.d.ts +0 -8
- package/src/components/textField/Label.d.ts +0 -7
- package/src/components/textField/Presenter.d.ts +0 -7
- package/src/components/textField/TextField.driver.new.d.ts +0 -129
- package/src/components/textField/ValidationMessage.d.ts +0 -7
- package/src/components/textField/index.d.ts +0 -114
- package/src/components/textField/presets/outline.d.ts +0 -737
- package/src/components/textField/presets/underline.d.ts +0 -735
- package/src/components/textField/textInput/index.d.ts +0 -1
- package/src/components/textField/textInput/index.web.d.ts +0 -3
- package/src/components/textField/types.d.ts +0 -287
- package/src/components/textField/useFieldState.d.ts +0 -16
- package/src/components/textField/useImperativeInputHandle.d.ts +0 -4
- package/src/components/textField/usePreset.d.ts +0 -1696
- package/src/components/textField/validators.d.ts +0 -9
- package/src/components/textFieldOld/index.d.ts +0 -71
- package/src/components/timeline/Line.d.ts +0 -10
- package/src/components/timeline/Point.d.ts +0 -9
- package/src/components/timeline/index.d.ts +0 -11
- package/src/components/timeline/line.driver.d.ts +0 -10
- package/src/components/timeline/point.driver.d.ts +0 -8
- package/src/components/timeline/timeline.driver.d.ts +0 -25
- package/src/components/timeline/types.d.ts +0 -50
- package/src/components/touchableOpacity/index.d.ts +0 -50
- package/src/components/view/View.driver.new.d.ts +0 -7
- package/src/components/view/index.d.ts +0 -46
- package/src/components/wizard/WizardStates.d.ts +0 -2
- package/src/components/wizard/WizardStep.d.ts +0 -4
- package/src/components/wizard/index.d.ts +0 -31
- package/src/components/wizard/types.d.ts +0 -90
- package/src/helpers/AvatarHelper.d.ts +0 -9
- package/src/helpers/FormattingPresenter.d.ts +0 -6
- package/src/helpers/Profiler.d.ts +0 -22
- package/src/helpers/index.d.ts +0 -3
- package/src/hooks/index.d.ts +0 -14
- package/src/hooks/useCombinedRefs/index.d.ts +0 -3
- package/src/hooks/useDebounce/index.d.ts +0 -5
- package/src/hooks/useDidUpdate/index.d.ts +0 -6
- package/src/hooks/useHiddenLocation/index.d.ts +0 -13
- package/src/hooks/useHiddenLocation/index.web.d.ts +0 -13
- package/src/hooks/useKeyboardHeight/index.d.ts +0 -5
- package/src/hooks/useMeasure/index.d.ts +0 -15
- package/src/hooks/useModifiers/index.d.ts +0 -3
- package/src/hooks/useOrientation/index.d.ts +0 -7
- package/src/hooks/useScrollEnabler/index.d.ts +0 -23
- package/src/hooks/useScrollReached/index.d.ts +0 -28
- package/src/hooks/useScrollTo/index.d.ts +0 -37
- package/src/hooks/useScrollToItem/index.d.ts +0 -65
- package/src/hooks/useThemeProps/index.d.ts +0 -2
- package/src/hooks/useToggleValue/index.d.ts +0 -2
- package/src/incubator/TouchableOpacity.d.ts +0 -52
- package/src/incubator/calendar/Agenda.d.ts +0 -4
- package/src/incubator/calendar/CalendarContext.d.ts +0 -4
- package/src/incubator/calendar/CalendarItem.d.ts +0 -5
- package/src/incubator/calendar/Day.d.ts +0 -4
- package/src/incubator/calendar/Day_OLD.d.ts +0 -4
- package/src/incubator/calendar/Header.d.ts +0 -4
- package/src/incubator/calendar/Month.d.ts +0 -4
- package/src/incubator/calendar/TodayButton.d.ts +0 -4
- package/src/incubator/calendar/Week.d.ts +0 -4
- package/src/incubator/calendar/WeekDaysNames.d.ts +0 -4
- package/src/incubator/calendar/helpers/CalendarProcessor.d.ts +0 -2
- package/src/incubator/calendar/helpers/DataProcessor.d.ts +0 -2
- package/src/incubator/calendar/helpers/DateUtils.d.ts +0 -23
- package/src/incubator/calendar/index.d.ts +0 -7
- package/src/incubator/calendar/types.d.ts +0 -118
- package/src/incubator/expandableOverlay/ExpandableOverlay.driver.d.ts +0 -7
- package/src/incubator/expandableOverlay/index.d.ts +0 -83
- package/src/incubator/gradient/BorderGradient.d.ts +0 -4
- package/src/incubator/gradient/CircleGradient.d.ts +0 -4
- package/src/incubator/gradient/RectangleGradient.d.ts +0 -4
- package/src/incubator/gradient/index.d.ts +0 -5
- package/src/incubator/gradient/types.d.ts +0 -26
- package/src/incubator/gradient/useAngleTransform.d.ts +0 -27
- package/src/incubator/index.d.ts +0 -9
- package/src/incubator/slider/Slider.driver.d.ts +0 -5
- package/src/incubator/slider/SliderPresenter.d.ts +0 -6
- package/src/incubator/slider/Thumb.d.ts +0 -24
- package/src/incubator/slider/Track.d.ts +0 -13
- package/src/incubator/slider/index.d.ts +0 -139
- package/src/incubator/toast/Toast.driver.new.d.ts +0 -54
- package/src/incubator/toast/helpers/useToastAnimation.d.ts +0 -22
- package/src/incubator/toast/helpers/useToastPresets.d.ts +0 -8
- package/src/incubator/toast/helpers/useToastTimer.d.ts +0 -6
- package/src/incubator/toast/index.d.ts +0 -9
- package/src/incubator/toast/types.d.ts +0 -111
- package/src/index.d.ts +0 -92
- package/src/optionalDependencies/BlurViewPackage.d.ts +0 -2
- package/src/optionalDependencies/BlurViewPackage.web.d.ts +0 -2
- package/src/optionalDependencies/DateTimePickerPackage.d.ts +0 -2
- package/src/optionalDependencies/FlashListPackage.d.ts +0 -2
- package/src/optionalDependencies/HapticFeedbackPackage.d.ts +0 -2
- package/src/optionalDependencies/LinearGradientPackage.d.ts +0 -2
- package/src/optionalDependencies/MomentPackage.d.ts +0 -2
- package/src/optionalDependencies/NetInfoPackage.d.ts +0 -2
- package/src/optionalDependencies/PostCssPackage.d.ts +0 -5
- package/src/optionalDependencies/ShimmerPackage.d.ts +0 -2
- package/src/optionalDependencies/SvgPackage.d.ts +0 -3
- package/src/optionalDependencies/index.d.ts +0 -9
- package/src/optionalDependencies/index.web.d.ts +0 -7
- package/src/services/HapticService.d.ts +0 -15
- package/src/services/LogService.d.ts +0 -35
- package/src/services/index.d.ts +0 -2
- package/src/style/borderRadiuses.d.ts +0 -30
- package/src/style/colorName.d.ts +0 -8
- package/src/style/colorNameMap.d.ts +0 -2
- package/src/style/colors.d.ts +0 -274
- package/src/style/colorsPalette.d.ts +0 -101
- package/src/style/components.d.ts +0 -15
- package/src/style/componentsColors.d.ts +0 -5
- package/src/style/designTokens.d.ts +0 -69
- package/src/style/designTokensDM.d.ts +0 -69
- package/src/style/dividers.d.ts +0 -11
- package/src/style/index.d.ts +0 -13
- package/src/style/scheme.d.ts +0 -57
- package/src/style/shadows.d.ts +0 -223
- package/src/style/spacings.d.ts +0 -32
- package/src/style/themeManager.d.ts +0 -22
- package/src/style/typography.d.ts +0 -26
- package/src/style/typographyPresets.d.ts +0 -7
- package/src/testkit/Component.driver.d.ts +0 -30
- package/src/testkit/DriverException.d.ts +0 -12
- package/src/testkit/UniDriver.d.ts +0 -29
- package/src/testkit/drivers/TestingLibraryDriver.d.ts +0 -26
- package/src/testkit/index.d.ts +0 -25
- package/src/testkit/new/Component.driver.d.ts +0 -16
- package/src/testkit/new/useDraggable.driver.d.ts +0 -15
- package/src/testkit/new/usePressable.driver.d.ts +0 -14
- package/src/testkit/new/useScrollable.driver.d.ts +0 -13
- package/src/typings/assets.d.ts +0 -52
- package/src/typings/common.d.ts +0 -12
- package/src/typings/module.d.ts +0 -13
- package/src/typings/recorderTypes.d.ts +0 -13
- package/src/uilib-test-renderer/helper.d.ts +0 -8
- package/src/uilib-test-renderer/index.d.ts +0 -4
- package/src/uilib-test-renderer/scrollViewHelper.d.ts +0 -9
- package/src/utils/dateUtils.d.ts +0 -2
- package/src/utils/imageUtils.d.ts +0 -5
- package/src/utils/index.d.ts +0 -4
- package/src/utils/styleUtils.d.ts +0 -7
- package/src/utils/textUtils.d.ts +0 -8
- /package/{src → scripts/build}/.babelrc.exports.js +0 -0
package/src/style/colors.d.ts
DELETED
|
@@ -1,274 +0,0 @@
|
|
|
1
|
-
import _ from 'lodash';
|
|
2
|
-
import { OpaqueColorValue } from 'react-native';
|
|
3
|
-
import tinycolor from 'tinycolor2';
|
|
4
|
-
import { Schemes, SchemeType } from './scheme';
|
|
5
|
-
export type DesignToken = {
|
|
6
|
-
semantic?: [string];
|
|
7
|
-
resource_paths?: [string];
|
|
8
|
-
toString: Function;
|
|
9
|
-
};
|
|
10
|
-
export type TokensOptions = {
|
|
11
|
-
primaryColor: string;
|
|
12
|
-
};
|
|
13
|
-
export type GetColorTintOptions = {
|
|
14
|
-
avoidReverseOnDark?: boolean;
|
|
15
|
-
};
|
|
16
|
-
export type GetColorByHexOptions = {
|
|
17
|
-
validColors?: string[];
|
|
18
|
-
};
|
|
19
|
-
export type GeneratePaletteOptions = {
|
|
20
|
-
/** Whether to adjust the lightness of very light colors (generating darker palette) */
|
|
21
|
-
adjustLightness?: boolean;
|
|
22
|
-
/** Whether to adjust the saturation of colors with high lightness and saturation (unifying saturation level throughout palette) */
|
|
23
|
-
adjustSaturation?: boolean;
|
|
24
|
-
/** Array of saturation adjustments to apply on the color's tints array (from darkest to lightest).
|
|
25
|
-
* The 'adjustSaturation' option must be true */
|
|
26
|
-
saturationLevels?: number[];
|
|
27
|
-
/** Whether to add two extra dark colors usually used for dark mode (generating a palette of 10 instead of 8 colors) */
|
|
28
|
-
addDarkestTints?: boolean;
|
|
29
|
-
/** Whether to reverse the color palette to generate dark mode palette (pass 'true' to generate the same palette for both light and dark modes) */
|
|
30
|
-
avoidReverseOnDark?: boolean;
|
|
31
|
-
};
|
|
32
|
-
export declare class Colors {
|
|
33
|
-
[key: string]: any;
|
|
34
|
-
shouldSupportDarkMode: boolean;
|
|
35
|
-
constructor();
|
|
36
|
-
/**
|
|
37
|
-
* Load custom set of colors
|
|
38
|
-
* arguments:
|
|
39
|
-
* colors - map of keys and colors values e.g {grey10: '#20303C', grey20: '#43515C'}
|
|
40
|
-
*/
|
|
41
|
-
loadColors(colors: {
|
|
42
|
-
[key: string]: string;
|
|
43
|
-
}): void;
|
|
44
|
-
/**
|
|
45
|
-
* Load set of schemes for light/dark mode
|
|
46
|
-
* arguments:
|
|
47
|
-
* schemes - two sets of map of colors e.g {light: {screen: 'white'}, dark: {screen: 'black'}}
|
|
48
|
-
*/
|
|
49
|
-
loadSchemes(schemes: Schemes): void;
|
|
50
|
-
/**
|
|
51
|
-
* Load light and dark schemes based on generated design tokens
|
|
52
|
-
* @param color - palette color
|
|
53
|
-
*/
|
|
54
|
-
loadDesignTokens(options: TokensOptions): void;
|
|
55
|
-
/**
|
|
56
|
-
* Get app's current color scheme
|
|
57
|
-
*/
|
|
58
|
-
getScheme(): 'light' | 'dark';
|
|
59
|
-
/**
|
|
60
|
-
* Set color scheme for app
|
|
61
|
-
* arguments:
|
|
62
|
-
* scheme - color scheme e.g light/dark/default
|
|
63
|
-
*/
|
|
64
|
-
setScheme(scheme: SchemeType): void;
|
|
65
|
-
/**
|
|
66
|
-
* Support listening to Appearance changes
|
|
67
|
-
* and change the design tokens accordingly
|
|
68
|
-
*/
|
|
69
|
-
supportDarkMode(): void;
|
|
70
|
-
/**
|
|
71
|
-
* Add alpha to hex or rgb color
|
|
72
|
-
* arguments:
|
|
73
|
-
* p1 - hex color / R part of RGB
|
|
74
|
-
* p2 - opacity / G part of RGB
|
|
75
|
-
* p3 - B part of RGB
|
|
76
|
-
* p4 - opacity
|
|
77
|
-
*/
|
|
78
|
-
rgba(p1: string, p2: number): string | undefined;
|
|
79
|
-
rgba(p1: number, p2: number, p3: number, p4: number): string | undefined;
|
|
80
|
-
getBackgroundKeysPattern(): RegExp;
|
|
81
|
-
isEmpty(color: string): boolean;
|
|
82
|
-
getColor(colorKey: string, schemeType?: Exclude<SchemeType, 'default'>): string;
|
|
83
|
-
getColorName(colorValue: string): any;
|
|
84
|
-
getSystemColorByHex(colorValue: string, options?: GetColorByHexOptions): string | undefined;
|
|
85
|
-
shouldReverseOnDark: (avoidReverseOnDark?: boolean) => boolean;
|
|
86
|
-
getColorTint(colorValue: string | OpaqueColorValue | undefined, tintKey: string | number, options?: GetColorTintOptions): any;
|
|
87
|
-
private getTintedColorForDynamicHex;
|
|
88
|
-
private generatePalette;
|
|
89
|
-
defaultPaletteOptions: {
|
|
90
|
-
adjustLightness: boolean;
|
|
91
|
-
adjustSaturation: boolean;
|
|
92
|
-
addDarkestTints: boolean;
|
|
93
|
-
avoidReverseOnDark: boolean;
|
|
94
|
-
saturationLevels: undefined;
|
|
95
|
-
};
|
|
96
|
-
generateColorPalette: ((color: string, options?: GeneratePaletteOptions) => string[]) & _.MemoizedFunction;
|
|
97
|
-
private generateDesignTokens;
|
|
98
|
-
private shouldGenerateDarkerPalette;
|
|
99
|
-
isDark(colorValue: string | OpaqueColorValue | undefined, darkThreshold?: number): boolean;
|
|
100
|
-
isValidHex(string: string): boolean;
|
|
101
|
-
getHexString(color: tinycolor.ColorInput): string;
|
|
102
|
-
getHSL(color?: string): tinycolor.ColorFormats.HSLA;
|
|
103
|
-
isTransparent(color?: string): boolean | "" | undefined;
|
|
104
|
-
areEqual(colorAValue: string | OpaqueColorValue, colorBValue: string | OpaqueColorValue): boolean;
|
|
105
|
-
isDesignToken(color?: DesignToken): boolean;
|
|
106
|
-
}
|
|
107
|
-
declare const colorObject: Colors & {
|
|
108
|
-
grey1: string;
|
|
109
|
-
grey5: string;
|
|
110
|
-
grey10: string;
|
|
111
|
-
grey20: string;
|
|
112
|
-
grey30: string;
|
|
113
|
-
grey40: string;
|
|
114
|
-
grey50: string;
|
|
115
|
-
grey60: string;
|
|
116
|
-
grey70: string;
|
|
117
|
-
grey80: string;
|
|
118
|
-
blue1: string;
|
|
119
|
-
blue5: string;
|
|
120
|
-
blue10: string;
|
|
121
|
-
blue20: string;
|
|
122
|
-
blue30: string;
|
|
123
|
-
blue40: string;
|
|
124
|
-
blue50: string;
|
|
125
|
-
blue60: string;
|
|
126
|
-
blue70: string;
|
|
127
|
-
blue80: string;
|
|
128
|
-
cyan10: string;
|
|
129
|
-
cyan20: string;
|
|
130
|
-
cyan30: string;
|
|
131
|
-
cyan40: string;
|
|
132
|
-
cyan50: string;
|
|
133
|
-
cyan60: string;
|
|
134
|
-
cyan70: string;
|
|
135
|
-
cyan80: string;
|
|
136
|
-
green1: string;
|
|
137
|
-
green5: string;
|
|
138
|
-
green10: string;
|
|
139
|
-
green20: string;
|
|
140
|
-
green30: string;
|
|
141
|
-
green40: string;
|
|
142
|
-
green50: string;
|
|
143
|
-
green60: string;
|
|
144
|
-
green70: string;
|
|
145
|
-
green80: string;
|
|
146
|
-
yellow1: string;
|
|
147
|
-
yellow5: string; /** Whether to adjust the saturation of colors with high lightness and saturation (unifying saturation level throughout palette) */
|
|
148
|
-
yellow10: string;
|
|
149
|
-
yellow20: string;
|
|
150
|
-
yellow30: string;
|
|
151
|
-
yellow40: string;
|
|
152
|
-
yellow50: string;
|
|
153
|
-
yellow60: string;
|
|
154
|
-
yellow70: string;
|
|
155
|
-
yellow80: string;
|
|
156
|
-
orange1: string;
|
|
157
|
-
orange5: string;
|
|
158
|
-
orange10: string;
|
|
159
|
-
orange20: string;
|
|
160
|
-
orange30: string;
|
|
161
|
-
orange40: string;
|
|
162
|
-
orange50: string;
|
|
163
|
-
orange60: string;
|
|
164
|
-
orange70: string;
|
|
165
|
-
orange80: string;
|
|
166
|
-
red1: string;
|
|
167
|
-
red5: string;
|
|
168
|
-
red10: string;
|
|
169
|
-
red20: string;
|
|
170
|
-
red30: string;
|
|
171
|
-
red40: string;
|
|
172
|
-
red50: string;
|
|
173
|
-
red60: string;
|
|
174
|
-
red70: string;
|
|
175
|
-
red80: string;
|
|
176
|
-
purple1: string;
|
|
177
|
-
purple5: string;
|
|
178
|
-
purple10: string;
|
|
179
|
-
purple20: string;
|
|
180
|
-
purple30: string;
|
|
181
|
-
purple40: string;
|
|
182
|
-
purple50: string;
|
|
183
|
-
purple60: string;
|
|
184
|
-
purple70: string;
|
|
185
|
-
purple80: string;
|
|
186
|
-
violet1: string;
|
|
187
|
-
violet5: string;
|
|
188
|
-
violet10: string;
|
|
189
|
-
violet20: string;
|
|
190
|
-
violet30: string;
|
|
191
|
-
violet40: string;
|
|
192
|
-
violet50: string;
|
|
193
|
-
violet60: string;
|
|
194
|
-
violet70: string;
|
|
195
|
-
violet80: string;
|
|
196
|
-
white: string;
|
|
197
|
-
black: string;
|
|
198
|
-
dark: string;
|
|
199
|
-
transparent: string;
|
|
200
|
-
} & {
|
|
201
|
-
$backgroundDefault: string;
|
|
202
|
-
$backgroundElevated: string;
|
|
203
|
-
$backgroundElevatedLight: string;
|
|
204
|
-
$backgroundNeutralHeavy: string;
|
|
205
|
-
$backgroundNeutralIdle: string;
|
|
206
|
-
$backgroundNeutralMedium: string;
|
|
207
|
-
$backgroundNeutral: string;
|
|
208
|
-
$backgroundNeutralLight: string;
|
|
209
|
-
$backgroundPrimaryHeavy: string;
|
|
210
|
-
$backgroundPrimaryMedium: string;
|
|
211
|
-
$backgroundPrimaryLight: string;
|
|
212
|
-
$backgroundGeneralHeavy: string;
|
|
213
|
-
$backgroundGeneralMedium: string;
|
|
214
|
-
$backgroundGeneralLight: string;
|
|
215
|
-
$backgroundSuccessHeavy: string; /** Whether to adjust the lightness of very light colors (generating darker palette) */
|
|
216
|
-
$backgroundSuccessLight: string;
|
|
217
|
-
$backgroundWarningHeavy: string;
|
|
218
|
-
$backgroundWarningLight: string;
|
|
219
|
-
$backgroundMajorLight: string;
|
|
220
|
-
$backgroundMajorHeavy: string;
|
|
221
|
-
$backgroundDangerHeavy: string;
|
|
222
|
-
$backgroundDangerLight: string;
|
|
223
|
-
$backgroundDisabled: string;
|
|
224
|
-
$backgroundDark: string;
|
|
225
|
-
$backgroundDarkElevated: string;
|
|
226
|
-
$backgroundDarkActive: string;
|
|
227
|
-
$backgroundInverted: string;
|
|
228
|
-
$textDisabled: string;
|
|
229
|
-
$textDefault: string;
|
|
230
|
-
$textNeutralHeavy: string;
|
|
231
|
-
$textNeutral: string;
|
|
232
|
-
$textNeutralLight: string;
|
|
233
|
-
$textDefaultLight: string;
|
|
234
|
-
$textPrimary: string;
|
|
235
|
-
$textGeneral: string;
|
|
236
|
-
$textSuccess: string;
|
|
237
|
-
$textSuccessLight: string;
|
|
238
|
-
$textMajor: string;
|
|
239
|
-
$textDanger: string;
|
|
240
|
-
$textDangerLight: string;
|
|
241
|
-
$iconDefault: string;
|
|
242
|
-
$iconNeutral: string;
|
|
243
|
-
$iconDefaultLight: string;
|
|
244
|
-
$iconPrimary: string;
|
|
245
|
-
$iconPrimaryLight: string;
|
|
246
|
-
$iconGeneral: string;
|
|
247
|
-
$iconGeneralLight: string;
|
|
248
|
-
$iconSuccess: string;
|
|
249
|
-
$iconSuccessLight: string;
|
|
250
|
-
$iconMajor: string;
|
|
251
|
-
$iconDanger: string;
|
|
252
|
-
$iconDangerLight: string;
|
|
253
|
-
$iconDisabled: string;
|
|
254
|
-
$outlineDefault: string;
|
|
255
|
-
$outlineDisabled: string;
|
|
256
|
-
$outlineDisabledHeavy: string;
|
|
257
|
-
$outlineNeutral: string;
|
|
258
|
-
$outlineNeutralHeavy: string;
|
|
259
|
-
$outlinePrimary: string;
|
|
260
|
-
$outlinePrimaryMedium: string;
|
|
261
|
-
$outlineGeneral: string; /**
|
|
262
|
-
* Get app's current color scheme
|
|
263
|
-
*/
|
|
264
|
-
$outlineWarning: string;
|
|
265
|
-
$outlineDanger: string;
|
|
266
|
-
$outlineInverted: string; /**
|
|
267
|
-
* Set color scheme for app
|
|
268
|
-
* arguments:
|
|
269
|
-
* scheme - color scheme e.g light/dark/default
|
|
270
|
-
*/
|
|
271
|
-
$black: string;
|
|
272
|
-
$white: string;
|
|
273
|
-
};
|
|
274
|
-
export default colorObject;
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
declare const colorsPalette: {
|
|
2
|
-
grey1: string;
|
|
3
|
-
grey5: string;
|
|
4
|
-
grey10: string;
|
|
5
|
-
grey20: string;
|
|
6
|
-
grey30: string;
|
|
7
|
-
grey40: string;
|
|
8
|
-
grey50: string;
|
|
9
|
-
grey60: string;
|
|
10
|
-
grey70: string;
|
|
11
|
-
grey80: string;
|
|
12
|
-
blue1: string;
|
|
13
|
-
blue5: string;
|
|
14
|
-
blue10: string;
|
|
15
|
-
blue20: string;
|
|
16
|
-
blue30: string;
|
|
17
|
-
blue40: string;
|
|
18
|
-
blue50: string;
|
|
19
|
-
blue60: string;
|
|
20
|
-
blue70: string;
|
|
21
|
-
blue80: string;
|
|
22
|
-
cyan10: string;
|
|
23
|
-
cyan20: string;
|
|
24
|
-
cyan30: string;
|
|
25
|
-
cyan40: string;
|
|
26
|
-
cyan50: string;
|
|
27
|
-
cyan60: string;
|
|
28
|
-
cyan70: string;
|
|
29
|
-
cyan80: string;
|
|
30
|
-
green1: string;
|
|
31
|
-
green5: string;
|
|
32
|
-
green10: string;
|
|
33
|
-
green20: string;
|
|
34
|
-
green30: string;
|
|
35
|
-
green40: string;
|
|
36
|
-
green50: string;
|
|
37
|
-
green60: string;
|
|
38
|
-
green70: string;
|
|
39
|
-
green80: string;
|
|
40
|
-
yellow1: string;
|
|
41
|
-
yellow5: string;
|
|
42
|
-
yellow10: string;
|
|
43
|
-
yellow20: string;
|
|
44
|
-
yellow30: string;
|
|
45
|
-
yellow40: string;
|
|
46
|
-
yellow50: string;
|
|
47
|
-
yellow60: string;
|
|
48
|
-
yellow70: string;
|
|
49
|
-
yellow80: string;
|
|
50
|
-
orange1: string;
|
|
51
|
-
orange5: string;
|
|
52
|
-
orange10: string;
|
|
53
|
-
orange20: string;
|
|
54
|
-
orange30: string;
|
|
55
|
-
orange40: string;
|
|
56
|
-
orange50: string;
|
|
57
|
-
orange60: string;
|
|
58
|
-
orange70: string;
|
|
59
|
-
orange80: string;
|
|
60
|
-
red1: string;
|
|
61
|
-
red5: string;
|
|
62
|
-
red10: string;
|
|
63
|
-
red20: string;
|
|
64
|
-
red30: string;
|
|
65
|
-
red40: string;
|
|
66
|
-
red50: string;
|
|
67
|
-
red60: string;
|
|
68
|
-
red70: string;
|
|
69
|
-
red80: string;
|
|
70
|
-
purple1: string;
|
|
71
|
-
purple5: string;
|
|
72
|
-
purple10: string;
|
|
73
|
-
purple20: string;
|
|
74
|
-
purple30: string;
|
|
75
|
-
purple40: string;
|
|
76
|
-
purple50: string;
|
|
77
|
-
purple60: string;
|
|
78
|
-
purple70: string;
|
|
79
|
-
purple80: string;
|
|
80
|
-
violet1: string;
|
|
81
|
-
violet5: string;
|
|
82
|
-
violet10: string;
|
|
83
|
-
violet20: string;
|
|
84
|
-
violet30: string;
|
|
85
|
-
violet40: string;
|
|
86
|
-
violet50: string;
|
|
87
|
-
violet60: string;
|
|
88
|
-
violet70: string;
|
|
89
|
-
violet80: string;
|
|
90
|
-
white: string;
|
|
91
|
-
black: string;
|
|
92
|
-
dark: string;
|
|
93
|
-
transparent: string;
|
|
94
|
-
};
|
|
95
|
-
declare const extraFixColorsMap: {
|
|
96
|
-
black: string;
|
|
97
|
-
white: string;
|
|
98
|
-
'#000': string;
|
|
99
|
-
'#fff': string;
|
|
100
|
-
};
|
|
101
|
-
export { colorsPalette, extraFixColorsMap };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
declare const Components: {
|
|
2
|
-
accessoryIndicator: {
|
|
3
|
-
width: number;
|
|
4
|
-
height: number;
|
|
5
|
-
marginLeft: number;
|
|
6
|
-
backgroundColor: string;
|
|
7
|
-
borderTopWidth: number;
|
|
8
|
-
borderRightWidth: number;
|
|
9
|
-
borderColor: string;
|
|
10
|
-
transform: {
|
|
11
|
-
rotate: string;
|
|
12
|
-
}[];
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
export default Components;
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
$backgroundDefault: string;
|
|
3
|
-
$backgroundElevated: string;
|
|
4
|
-
$backgroundElevatedLight: string;
|
|
5
|
-
$backgroundNeutralHeavy: string;
|
|
6
|
-
$backgroundNeutralIdle: string;
|
|
7
|
-
$backgroundNeutralMedium: string;
|
|
8
|
-
$backgroundNeutral: string;
|
|
9
|
-
$backgroundNeutralLight: string;
|
|
10
|
-
$backgroundPrimaryHeavy: string;
|
|
11
|
-
$backgroundPrimaryMedium: string;
|
|
12
|
-
$backgroundPrimaryLight: string;
|
|
13
|
-
$backgroundGeneralHeavy: string;
|
|
14
|
-
$backgroundGeneralMedium: string;
|
|
15
|
-
$backgroundGeneralLight: string;
|
|
16
|
-
$backgroundSuccessHeavy: string;
|
|
17
|
-
$backgroundSuccessLight: string;
|
|
18
|
-
$backgroundWarningHeavy: string;
|
|
19
|
-
$backgroundWarningLight: string;
|
|
20
|
-
$backgroundMajorLight: string;
|
|
21
|
-
$backgroundMajorHeavy: string;
|
|
22
|
-
$backgroundDangerHeavy: string;
|
|
23
|
-
$backgroundDangerLight: string;
|
|
24
|
-
$backgroundDisabled: string;
|
|
25
|
-
$backgroundDark: string;
|
|
26
|
-
$backgroundDarkElevated: string;
|
|
27
|
-
$backgroundDarkActive: string;
|
|
28
|
-
$backgroundInverted: string;
|
|
29
|
-
$textDisabled: string;
|
|
30
|
-
$textDefault: string;
|
|
31
|
-
$textNeutralHeavy: string;
|
|
32
|
-
$textNeutral: string;
|
|
33
|
-
$textNeutralLight: string;
|
|
34
|
-
$textDefaultLight: string;
|
|
35
|
-
$textPrimary: string;
|
|
36
|
-
$textGeneral: string;
|
|
37
|
-
$textSuccess: string;
|
|
38
|
-
$textSuccessLight: string;
|
|
39
|
-
$textMajor: string;
|
|
40
|
-
$textDanger: string;
|
|
41
|
-
$textDangerLight: string;
|
|
42
|
-
$iconDefault: string;
|
|
43
|
-
$iconNeutral: string;
|
|
44
|
-
$iconDefaultLight: string;
|
|
45
|
-
$iconPrimary: string;
|
|
46
|
-
$iconPrimaryLight: string;
|
|
47
|
-
$iconGeneral: string;
|
|
48
|
-
$iconGeneralLight: string;
|
|
49
|
-
$iconSuccess: string;
|
|
50
|
-
$iconSuccessLight: string;
|
|
51
|
-
$iconMajor: string;
|
|
52
|
-
$iconDanger: string;
|
|
53
|
-
$iconDangerLight: string;
|
|
54
|
-
$iconDisabled: string;
|
|
55
|
-
$outlineDefault: string;
|
|
56
|
-
$outlineDisabled: string;
|
|
57
|
-
$outlineDisabledHeavy: string;
|
|
58
|
-
$outlineNeutral: string;
|
|
59
|
-
$outlineNeutralHeavy: string;
|
|
60
|
-
$outlinePrimary: string;
|
|
61
|
-
$outlinePrimaryMedium: string;
|
|
62
|
-
$outlineGeneral: string;
|
|
63
|
-
$outlineWarning: string;
|
|
64
|
-
$outlineDanger: string;
|
|
65
|
-
$outlineInverted: string;
|
|
66
|
-
$black: string;
|
|
67
|
-
$white: string;
|
|
68
|
-
};
|
|
69
|
-
export default _default;
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
$backgroundDefault: string;
|
|
3
|
-
$backgroundElevated: string;
|
|
4
|
-
$backgroundElevatedLight: string;
|
|
5
|
-
$backgroundNeutralHeavy: string;
|
|
6
|
-
$backgroundNeutralIdle: string;
|
|
7
|
-
$backgroundNeutralMedium: string;
|
|
8
|
-
$backgroundNeutral: string;
|
|
9
|
-
$backgroundNeutralLight: string;
|
|
10
|
-
$backgroundPrimaryHeavy: string;
|
|
11
|
-
$backgroundPrimaryMedium: string;
|
|
12
|
-
$backgroundPrimaryLight: string;
|
|
13
|
-
$backgroundGeneralHeavy: string;
|
|
14
|
-
$backgroundGeneralMedium: string;
|
|
15
|
-
$backgroundGeneralLight: string;
|
|
16
|
-
$backgroundSuccessHeavy: string;
|
|
17
|
-
$backgroundSuccessLight: string;
|
|
18
|
-
$backgroundWarningHeavy: string;
|
|
19
|
-
$backgroundWarningLight: string;
|
|
20
|
-
$backgroundMajorLight: string;
|
|
21
|
-
$backgroundMajorHeavy: string;
|
|
22
|
-
$backgroundDangerHeavy: string;
|
|
23
|
-
$backgroundDangerLight: string;
|
|
24
|
-
$backgroundDisabled: string;
|
|
25
|
-
$backgroundDark: string;
|
|
26
|
-
$backgroundDarkElevated: string;
|
|
27
|
-
$backgroundDarkActive: string;
|
|
28
|
-
$backgroundInverted: string;
|
|
29
|
-
$textDisabled: string;
|
|
30
|
-
$textDefault: string;
|
|
31
|
-
$textNeutralHeavy: string;
|
|
32
|
-
$textNeutral: string;
|
|
33
|
-
$textNeutralLight: string;
|
|
34
|
-
$textDefaultLight: string;
|
|
35
|
-
$textPrimary: string;
|
|
36
|
-
$textGeneral: string;
|
|
37
|
-
$textSuccess: string;
|
|
38
|
-
$textSuccessLight: string;
|
|
39
|
-
$textMajor: string;
|
|
40
|
-
$textDanger: string;
|
|
41
|
-
$textDangerLight: string;
|
|
42
|
-
$iconDefault: string;
|
|
43
|
-
$iconNeutral: string;
|
|
44
|
-
$iconDefaultLight: string;
|
|
45
|
-
$iconPrimary: string;
|
|
46
|
-
$iconPrimaryLight: string;
|
|
47
|
-
$iconGeneral: string;
|
|
48
|
-
$iconGeneralLight: string;
|
|
49
|
-
$iconSuccess: string;
|
|
50
|
-
$iconSuccessLight: string;
|
|
51
|
-
$iconMajor: string;
|
|
52
|
-
$iconDanger: string;
|
|
53
|
-
$iconDangerLight: string;
|
|
54
|
-
$iconDisabled: string;
|
|
55
|
-
$outlineDefault: string;
|
|
56
|
-
$outlineDisabled: string;
|
|
57
|
-
$outlineDisabledHeavy: string;
|
|
58
|
-
$outlineNeutral: string;
|
|
59
|
-
$outlineNeutralHeavy: string;
|
|
60
|
-
$outlinePrimary: string;
|
|
61
|
-
$outlinePrimaryMedium: string;
|
|
62
|
-
$outlineGeneral: string;
|
|
63
|
-
$outlineWarning: string;
|
|
64
|
-
$outlineDanger: string;
|
|
65
|
-
$outlineInverted: string;
|
|
66
|
-
$black: string;
|
|
67
|
-
$white: string;
|
|
68
|
-
};
|
|
69
|
-
export default _default;
|
package/src/style/dividers.d.ts
DELETED
package/src/style/index.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export { default as Colors } from './colors';
|
|
2
|
-
export { default as DesignTokens } from './designTokens';
|
|
3
|
-
export { default as DesignTokensDM } from './designTokensDM';
|
|
4
|
-
export { default as Scheme, SchemeType, Schemes, SchemeChangeListener } from './scheme';
|
|
5
|
-
export { default as Typography, TypographyKeys } from './typography';
|
|
6
|
-
export { default as BorderRadiuses } from './borderRadiuses';
|
|
7
|
-
export { default as Shadows } from './shadows';
|
|
8
|
-
export { default as Spacings } from './spacings';
|
|
9
|
-
export { default as ComponentsColors } from './componentsColors';
|
|
10
|
-
export { default as Components } from './components';
|
|
11
|
-
export { default as ThemeManager } from './themeManager';
|
|
12
|
-
export { default as ColorName } from './colorName';
|
|
13
|
-
export { default as Dividers } from './dividers';
|
package/src/style/scheme.d.ts
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
export type Schemes = {
|
|
2
|
-
light: {
|
|
3
|
-
[key: string]: string;
|
|
4
|
-
};
|
|
5
|
-
dark: {
|
|
6
|
-
[key: string]: string;
|
|
7
|
-
};
|
|
8
|
-
};
|
|
9
|
-
export type SchemeType = 'default' | 'light' | 'dark';
|
|
10
|
-
export type SchemeChangeListener = (schemeType?: 'light' | 'dark') => void;
|
|
11
|
-
declare class Scheme {
|
|
12
|
-
private currentScheme;
|
|
13
|
-
private schemes;
|
|
14
|
-
private changeListeners;
|
|
15
|
-
constructor();
|
|
16
|
-
private broadcastSchemeChange;
|
|
17
|
-
/**
|
|
18
|
-
* Get app's current color scheme
|
|
19
|
-
*/
|
|
20
|
-
getSchemeType(): 'light' | 'dark';
|
|
21
|
-
/**
|
|
22
|
-
* Whether the app's scheme is 'dark', i.e. is on dark mode
|
|
23
|
-
*/
|
|
24
|
-
isDarkMode(): boolean;
|
|
25
|
-
/**
|
|
26
|
-
* Set color scheme for app
|
|
27
|
-
* arguments:
|
|
28
|
-
* scheme - color scheme e.g light/dark/default
|
|
29
|
-
*/
|
|
30
|
-
setScheme(scheme: SchemeType): void;
|
|
31
|
-
/**
|
|
32
|
-
* Load set of schemes for light/dark mode
|
|
33
|
-
* arguments:
|
|
34
|
-
* schemes - two sets of map of colors e.g {light: {screen: 'white'}, dark: {screen: 'black'}}
|
|
35
|
-
*/
|
|
36
|
-
loadSchemes(schemes: Schemes): void;
|
|
37
|
-
/**
|
|
38
|
-
* Retrieve scheme by current scheme type
|
|
39
|
-
*/
|
|
40
|
-
getScheme(schemeType?: "light" | "dark"): {
|
|
41
|
-
[key: string]: string;
|
|
42
|
-
} | {
|
|
43
|
-
[key: string]: string;
|
|
44
|
-
};
|
|
45
|
-
/**
|
|
46
|
-
* Add a change scheme event listener
|
|
47
|
-
*/
|
|
48
|
-
addChangeListener(listener: SchemeChangeListener): void;
|
|
49
|
-
/**
|
|
50
|
-
* Remove a change scheme event listener
|
|
51
|
-
* arguments:
|
|
52
|
-
* listener - listener reference to remove
|
|
53
|
-
*/
|
|
54
|
-
removeChangeListener(listener: SchemeChangeListener): void;
|
|
55
|
-
}
|
|
56
|
-
declare const _default: Scheme;
|
|
57
|
-
export default _default;
|