@neko-os/ui 0.2.2 → 0.3.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/README.md +0 -76
- package/dist/DynamicStyleTag.js +18 -2
- package/dist/DynamicStyleTag.native.js +3 -1
- package/dist/NekoUI.js +39 -1
- package/dist/abstractions/ActivityIndicator.js +19 -1
- package/dist/abstractions/ActivityIndicator.native.js +43 -1
- package/dist/abstractions/ActivityIndicator.web.js +43 -1
- package/dist/abstractions/AnimatedView.js +3 -1
- package/dist/abstractions/AnimatedView.native.js +5 -1
- package/dist/abstractions/AnimatedView.web.js +3 -1
- package/dist/abstractions/BlurView.js +43 -1
- package/dist/abstractions/BlurView.native.js +39 -1
- package/dist/abstractions/BlurView.web.js +39 -1
- package/dist/abstractions/DraggableSlideView.js +3 -1
- package/dist/abstractions/DraggableSlideView.native.js +62 -1
- package/dist/abstractions/FlatList.js +3 -1
- package/dist/abstractions/FlatList.native.js +37 -1
- package/dist/abstractions/FlatList.web.js +3 -1
- package/dist/abstractions/GradientView.js +5 -1
- package/dist/abstractions/GradientView.native.js +32 -1
- package/dist/abstractions/HiddenInput.js +3 -1
- package/dist/abstractions/HiddenInput.native.js +3 -1
- package/dist/abstractions/Icon.js +10 -1
- package/dist/abstractions/Icon.native.js +13 -1
- package/dist/abstractions/Icon.web.js +11 -1
- package/dist/abstractions/Image.js +12 -1
- package/dist/abstractions/Image.native.js +7 -1
- package/dist/abstractions/Image.web.js +7 -1
- package/dist/abstractions/ImageBackground.js +17 -1
- package/dist/abstractions/ImageBackground.native.js +27 -1
- package/dist/abstractions/ImageBackground.web.js +7 -1
- package/dist/abstractions/KeyboardAvoidingView.js +3 -1
- package/dist/abstractions/KeyboardAvoidingView.native.js +3 -1
- package/dist/abstractions/Platform.js +1 -1
- package/dist/abstractions/Platform.native.js +3 -1
- package/dist/abstractions/Platform.web.js +3 -1
- package/dist/abstractions/Pressable.js +4 -1
- package/dist/abstractions/Pressable.native.js +3 -1
- package/dist/abstractions/Pressable.web.js +3 -1
- package/dist/abstractions/SafeAreaView.js +3 -1
- package/dist/abstractions/SafeAreaView.native.js +3 -1
- package/dist/abstractions/ScrollView.js +3 -1
- package/dist/abstractions/ScrollView.native.js +5 -1
- package/dist/abstractions/ScrollView.web.js +3 -1
- package/dist/abstractions/StaticList.js +51 -1
- package/dist/abstractions/Switch.js +97 -1
- package/dist/abstractions/Switch.native.js +12 -1
- package/dist/abstractions/Table.js +29 -1
- package/dist/abstractions/Table.native.js +19 -1
- package/dist/abstractions/Text.js +14 -1
- package/dist/abstractions/Text.native.js +3 -1
- package/dist/abstractions/Text.web.js +18 -1
- package/dist/abstractions/TextInput.js +12 -1
- package/dist/abstractions/TextInput.native.js +5 -1
- package/dist/abstractions/TextInput.web.js +5 -1
- package/dist/abstractions/TouchableOpacity.js +4 -1
- package/dist/abstractions/TouchableOpacity.native.js +3 -1
- package/dist/abstractions/View.js +3 -1
- package/dist/abstractions/View.native.js +3 -1
- package/dist/abstractions/View.web.js +3 -1
- package/dist/abstractions/helpers/componentSize.js +13 -1
- package/dist/abstractions/helpers/componentSize.native.js +12 -1
- package/dist/abstractions/helpers/storage.js +32 -1
- package/dist/abstractions/helpers/storage.native.js +34 -1
- package/dist/abstractions/helpers/transformStyle.js +8 -1
- package/dist/abstractions/helpers/transformStyle.native.js +3 -1
- package/dist/abstractions/helpers/useSafeAreaInsets.js +3 -1
- package/dist/abstractions/helpers/useSafeAreaInsets.native.js +3 -1
- package/dist/abstractions/helpers/windowWidth.js +13 -1
- package/dist/abstractions/helpers/windowWidth.native.js +6 -1
- package/dist/abstractions/helpers/windowWidth.web.js +6 -1
- package/dist/components/actions/ActionsDrawer.js +81 -1
- package/dist/components/actions/Breadcrumb.js +47 -1
- package/dist/components/actions/Button.js +82 -1
- package/dist/components/actions/Dropdown.js +91 -1
- package/dist/components/actions/FloatingButton.js +87 -1
- package/dist/components/actions/FloatingMenu.js +39 -1
- package/dist/components/actions/Link.js +66 -1
- package/dist/components/actions/Pressable.js +38 -1
- package/dist/components/actions/index.js +9 -1
- package/dist/components/actions/menu/HorizontalMenu.js +98 -1
- package/dist/components/actions/menu/Menu.js +7 -1
- package/dist/components/actions/menu/SubmenuWrapper.js +16 -1
- package/dist/components/actions/menu/VerticalMenu.js +133 -1
- package/dist/components/animations/AnimatedTopBar.js +10 -1
- package/dist/components/animations/AnimatedTopBar.native.js +34 -1
- package/dist/components/animations/AnimatedTopBar.web.js +1 -1
- package/dist/components/animations/AnimatedView.js +45 -1
- package/dist/components/animations/DraggableSlideView.js +42 -1
- package/dist/components/animations/ParallaxHeader.js +9 -1
- package/dist/components/animations/ParallaxHeader.native.js +32 -1
- package/dist/components/animations/ParallaxHeader.web.js +32 -1
- package/dist/components/animations/ReanimatedScrollHandler.js +8 -1
- package/dist/components/animations/ReanimatedScrollHandler.native.js +24 -1
- package/dist/components/animations/ReanimatedScrollHandler.web.js +1 -1
- package/dist/components/animations/ReanimatedView.js +40 -1
- package/dist/components/animations/index.js +5 -1
- package/dist/components/calendar/CalendarNav.js +67 -1
- package/dist/components/calendar/WeekDaysBar.js +18 -1
- package/dist/components/calendar/_helpers/calendarDays.js +16 -1
- package/dist/components/calendar/_helpers/dateDisabled.js +24 -1
- package/dist/components/feedback/alerter.js +31 -1
- package/dist/components/feedback/confirmer.js +70 -1
- package/dist/components/feedback/index.js +3 -1
- package/dist/components/feedback/notifications/Notification.js +37 -1
- package/dist/components/feedback/notifications/NotificationsHandler.js +65 -1
- package/dist/components/filter/DateFilter.js +72 -0
- package/dist/components/filter/FilterGroup.js +17 -0
- package/dist/components/filter/FilterHandler.js +54 -0
- package/dist/components/filter/FilterItem.js +30 -0
- package/dist/components/filter/PopoverFilterItem.js +84 -0
- package/dist/components/filter/SearchInput.js +49 -0
- package/dist/components/filter/index.js +6 -0
- package/dist/components/form/Form.js +31 -1
- package/dist/components/form/FormGroup.js +21 -1
- package/dist/components/form/FormItem.js +118 -1
- package/dist/components/form/FormList.js +143 -1
- package/dist/components/form/FormWrapperComponent.js +52 -1
- package/dist/components/form/FormWrapperComponent.native.js +5 -1
- package/dist/components/form/SubmitButton.js +22 -1
- package/dist/components/form/index.js +9 -1
- package/dist/components/form/useNewForm.js +211 -1
- package/dist/components/form/useWatch.js +70 -1
- package/dist/components/form/validation/defaultMessages.js +20 -1
- package/dist/components/form/validation/index.js +5 -1
- package/dist/components/form/validation/normalizeRules.js +22 -1
- package/dist/components/form/validation/shouldValidateOn.js +21 -1
- package/dist/components/form/validation/validateRules.js +83 -1
- package/dist/components/form/validation/validators.js +82 -1
- package/dist/components/helpers/ConditionalLazyRender.js +6 -1
- package/dist/components/helpers/LazyAction.js +22 -1
- package/dist/components/helpers/LazyRender.js +55 -1
- package/dist/components/helpers/LazyRender.native.js +58 -1
- package/dist/components/helpers/Portal.js +21 -1
- package/dist/components/helpers/PortalHandler.js +32 -1
- package/dist/components/helpers/Responsive.js +18 -1
- package/dist/components/helpers/Separator.js +49 -1
- package/dist/components/helpers/VerticalView.js +34 -1
- package/dist/components/helpers/index.js +8 -1
- package/dist/components/index.js +20 -1
- package/dist/components/inputs/BooleanSelect.js +14 -0
- package/dist/components/inputs/Checkbox.js +56 -1
- package/dist/components/inputs/DateInput.js +123 -1
- package/dist/components/inputs/DateRangeInput.js +41 -0
- package/dist/components/inputs/Editable.js +129 -0
- package/dist/components/inputs/EnabledSelect.js +14 -0
- package/dist/components/inputs/InputWrapper.js +93 -1
- package/dist/components/inputs/LinkInput.js +17 -1
- package/dist/components/inputs/MaskInput.js +67 -1
- package/dist/components/inputs/NumberInput.js +111 -1
- package/dist/components/inputs/NumberRangeInput.js +41 -0
- package/dist/components/inputs/PasswordInput.js +24 -0
- package/dist/components/inputs/Picker.js +169 -1
- package/dist/components/inputs/Radio.js +55 -1
- package/dist/components/inputs/RateInput.js +62 -1
- package/dist/components/inputs/SegmentedPicker.js +62 -1
- package/dist/components/inputs/Select.js +219 -1
- package/dist/components/inputs/Switch.js +60 -1
- package/dist/components/inputs/TextArea.js +5 -0
- package/dist/components/inputs/TextInput.js +32 -1
- package/dist/components/inputs/UploadInput.js +140 -0
- package/dist/components/inputs/_DateInput.native.js +89 -1
- package/dist/components/inputs/datePicker/DatePicker.js +24 -1
- package/dist/components/inputs/datePicker/DayPicker.js +64 -1
- package/dist/components/inputs/datePicker/MonthPicker.js +62 -1
- package/dist/components/inputs/datePicker/QuarterPicker.js +65 -1
- package/dist/components/inputs/datePicker/WeekPicker.js +74 -1
- package/dist/components/inputs/datePicker/YearPicker.js +70 -1
- package/dist/components/inputs/index.js +23 -1
- package/dist/components/inputs/upload/Upload.js +99 -0
- package/dist/components/inputs/upload/Upload.native.js +154 -0
- package/dist/components/inputs/upload/useUploadState.js +143 -0
- package/dist/components/layout/Layout.js +40 -1
- package/dist/components/layout/LayoutContent.js +42 -1
- package/dist/components/layout/LayoutHeader.js +70 -1
- package/dist/components/layout/LayoutSider.js +64 -1
- package/dist/components/layout/index.js +4 -1
- package/dist/components/list/FlatList.js +91 -1
- package/dist/components/list/ScrollView.js +58 -1
- package/dist/components/list/index.js +2 -1
- package/dist/components/modals/bottomDrawer/index.js +3 -1
- package/dist/components/modals/bottomDrawer/index.native.js +5 -1
- package/dist/components/modals/bottomDrawer/index.web.js +5 -1
- package/dist/components/modals/bottomDrawer/native/BottomDrawer.js +239 -1
- package/dist/components/modals/bottomDrawer/native/DrawerContext.js +17 -1
- package/dist/components/modals/bottomDrawer/native/DrawerHandle.js +12 -1
- package/dist/components/modals/bottomDrawer/native/DrawerScrollView.js +5 -1
- package/dist/components/modals/bottomDrawer/native/createDrawerScrollComponent.js +139 -1
- package/dist/components/modals/bottomDrawer/native/utils.js +65 -1
- package/dist/components/modals/bottomDrawer/web/BottomDrawer.js +5 -1
- package/dist/components/modals/drawer/Drawer.js +5 -1
- package/dist/components/modals/drawer/Drawer.native.js +3 -1
- package/dist/components/modals/drawer/Drawer.web.js +3 -1
- package/dist/components/modals/drawer/index.js +1 -1
- package/dist/components/modals/index.js +4 -1
- package/dist/components/modals/modal/Modal.js +84 -1
- package/dist/components/modals/modal/Modal.native.js +83 -1
- package/dist/components/modals/modal/ModalBackdrop.js +58 -1
- package/dist/components/modals/modal/ModalContent.js +28 -1
- package/dist/components/modals/modal/ModalFooter.js +31 -1
- package/dist/components/modals/modal/ModalHeader.js +50 -1
- package/dist/components/modals/modal/handler/ModalsHandler.js +61 -1
- package/dist/components/modals/modal/index.js +6 -1
- package/dist/components/modals/router/ModalRoute.js +15 -1
- package/dist/components/modals/router/ModalsRouter.js +120 -1
- package/dist/components/modals/router/ModalsRouterContext.js +16 -1
- package/dist/components/modals/router/index.js +6 -1
- package/dist/components/modals/router/useAllModalsParams.js +6 -1
- package/dist/components/modals/router/useModalParams.js +6 -1
- package/dist/components/modals/router/useModalsNavigation.js +6 -1
- package/dist/components/modals/router/useUpdateModalContainer.js +6 -1
- package/dist/components/presentation/Avatar.js +79 -1
- package/dist/components/presentation/AvatarLabel.js +60 -1
- package/dist/components/presentation/AvatarsGroup.js +30 -0
- package/dist/components/presentation/Badge.js +91 -1
- package/dist/components/presentation/ContentLabel.js +43 -1
- package/dist/components/presentation/Icon.js +20 -1
- package/dist/components/presentation/IconLabel.js +40 -1
- package/dist/components/presentation/Image.js +33 -1
- package/dist/components/presentation/ImageBackground.js +38 -1
- package/dist/components/presentation/LabelValue.js +51 -1
- package/dist/components/presentation/Progress.js +20 -0
- package/dist/components/presentation/Rate.js +58 -1
- package/dist/components/presentation/RateTag.js +35 -1
- package/dist/components/presentation/Result.js +60 -1
- package/dist/components/presentation/ResultBar.js +56 -1
- package/dist/components/presentation/Tag.js +69 -1
- package/dist/components/presentation/Tooltip.js +44 -1
- package/dist/components/presentation/index.js +16 -1
- package/dist/components/sections/Section.js +50 -1
- package/dist/components/sections/SectionItem.js +24 -1
- package/dist/components/sections/SectionItemDropdown.js +68 -1
- package/dist/components/sections/SectionItemLink.js +35 -1
- package/dist/components/sections/index.js +4 -1
- package/dist/components/state/Loading.js +20 -1
- package/dist/components/state/LoadingView.js +37 -1
- package/dist/components/state/StatePresenter.js +41 -1
- package/dist/components/state/index.js +3 -1
- package/dist/components/steps/ActiveStepContent.js +16 -0
- package/dist/components/steps/StepsHandler.js +53 -0
- package/dist/components/steps/StepsMenu.js +14 -0
- package/dist/components/steps/StepsNavigation.js +37 -0
- package/dist/components/steps/index.js +4 -0
- package/dist/components/structure/Accordion.js +69 -1
- package/dist/components/structure/AccordionGroup.js +35 -1
- package/dist/components/structure/Affix.js +34 -0
- package/dist/components/structure/Affix.native.js +3 -0
- package/dist/components/structure/BlurView.js +59 -1
- package/dist/components/structure/Card.js +46 -1
- package/dist/components/structure/Col.js +22 -1
- package/dist/components/structure/GradientView.js +42 -1
- package/dist/components/structure/KeyboardAvoidingView.js +52 -1
- package/dist/components/structure/Row.js +50 -1
- package/dist/components/structure/SafeAreaView.js +42 -1
- package/dist/components/structure/Segment.js +51 -1
- package/dist/components/structure/TopBar.js +57 -1
- package/dist/components/structure/View.js +44 -1
- package/dist/components/structure/index.js +14 -1
- package/dist/components/structure/overlay/OverlayHandler.js +83 -1
- package/dist/components/structure/overlay/OverlayHandler.native.js +6 -1
- package/dist/components/structure/overlay/OverlayWrapper.js +52 -1
- package/dist/components/structure/overlay/calculatePosition.js +29 -1
- package/dist/components/structure/overlay/smartPlacement.js +32 -1
- package/dist/components/structure/popover/Popover.js +135 -1
- package/dist/components/structure/popover/Popover.native.js +105 -1
- package/dist/components/structure/popover/PopoverContent.js +18 -1
- package/dist/components/structure/popover/Popover_BU.js +157 -1
- package/dist/components/table/DataTable.js +62 -1
- package/dist/components/table/Pagination.js +128 -1
- package/dist/components/table/Table.js +66 -1
- package/dist/components/table/TableCol.js +67 -1
- package/dist/components/table/TableHeader.js +69 -1
- package/dist/components/table/TableHeaderRow.js +31 -1
- package/dist/components/table/TableRow.js +30 -1
- package/dist/components/table/index.js +7 -1
- package/dist/components/tabs/ActiveTabContent.js +38 -1
- package/dist/components/tabs/TabsHandler.js +16 -1
- package/dist/components/tabs/TabsMenu.js +15 -1
- package/dist/components/tabs/index.js +3 -1
- package/dist/components/text/DateText.js +24 -1
- package/dist/components/text/Text.js +32 -1
- package/dist/components/text/VerticalText.js +29 -1
- package/dist/components/text/index.js +3 -1
- package/dist/components/theme/ThemePicker.js +48 -1
- package/dist/components/theme/ThemePickerDrawer.js +12 -1
- package/dist/components/theme/ThemeStatusBar.js +3 -1
- package/dist/components/theme/ThemeStatusBar.native.js +9 -1
- package/dist/components/theme/ThemeThumb.js +98 -1
- package/dist/components/theme/index.js +3 -1
- package/dist/helpers/debounce.js +9 -1
- package/dist/helpers/index.js +5 -1
- package/dist/helpers/options.js +65 -1
- package/dist/helpers/random.js +5 -1
- package/dist/helpers/storage.js +76 -1
- package/dist/helpers/string.js +74 -1
- package/dist/i18n/I18n.js +96 -1
- package/dist/i18n/I18nProvider.js +40 -1
- package/dist/i18n/index.js +2 -1
- package/dist/index.js +8 -1
- package/dist/modifiers/_helpers.js +6 -1
- package/dist/modifiers/alignConverter.js +11 -1
- package/dist/modifiers/animation.js +18 -1
- package/dist/modifiers/animations/animatedEffects.js +64 -1
- package/dist/modifiers/animations/animatedEffects.native.js +55 -1
- package/dist/modifiers/animations/animatedEffects.web.js +55 -1
- package/dist/modifiers/animations/fadeEffect.js +46 -1
- package/dist/modifiers/animations/fadeEffect.native.js +33 -1
- package/dist/modifiers/animations/fadeEffect.web.js +3 -1
- package/dist/modifiers/animations/scaleEffect.js +46 -1
- package/dist/modifiers/animations/scaleEffect.native.js +33 -1
- package/dist/modifiers/animations/scrollEffect.web.js +3 -1
- package/dist/modifiers/animations/slideEffect.js +64 -1
- package/dist/modifiers/animations/slideEffect.native.js +53 -1
- package/dist/modifiers/animations/slideEffect.web.js +3 -1
- package/dist/modifiers/applyStyles.js +7 -1
- package/dist/modifiers/background.js +34 -1
- package/dist/modifiers/border.js +86 -1
- package/dist/modifiers/colorConverter.js +13 -1
- package/dist/modifiers/cursor.js +21 -1
- package/dist/modifiers/default.js +9 -1
- package/dist/modifiers/display.js +22 -1
- package/dist/modifiers/flex.js +20 -1
- package/dist/modifiers/flexWrapper.js +87 -1
- package/dist/modifiers/fullColor.js +32 -1
- package/dist/modifiers/grid.js +27 -1
- package/dist/modifiers/hover.js +28 -1
- package/dist/modifiers/logger.js +6 -1
- package/dist/modifiers/margin.js +25 -1
- package/dist/modifiers/overflow.js +28 -1
- package/dist/modifiers/padding.js +25 -1
- package/dist/modifiers/position.js +57 -1
- package/dist/modifiers/responsiveConverter.js +19 -1
- package/dist/modifiers/shadow.js +35 -1
- package/dist/modifiers/size.js +59 -1
- package/dist/modifiers/sizeConverter.js +12 -1
- package/dist/modifiers/state.js +33 -1
- package/dist/modifiers/text.js +62 -1
- package/dist/modifiers/textConverter.js +12 -1
- package/dist/modifiers/themeComponent.js +11 -1
- package/dist/responsive/ResponsiveHandler.js +28 -1
- package/dist/responsive/index.js +2 -1
- package/dist/responsive/responsiveHooks.js +67 -1
- package/dist/theme/ThemeHandler.js +81 -1
- package/dist/theme/default/base.js +95 -1
- package/dist/theme/default/blackTheme.js +47 -1
- package/dist/theme/default/cyberpunkTheme.js +36 -1
- package/dist/theme/default/darkTheme.js +35 -1
- package/dist/theme/default/hackerTheme.js +55 -1
- package/dist/theme/default/lightTheme.js +35 -1
- package/dist/theme/default/paperTheme.js +36 -1
- package/dist/theme/default/themes.js +15 -1
- package/dist/theme/format/colorsVariations.js +31 -1
- package/dist/theme/format/formatTheme.js +28 -1
- package/dist/theme/helpers/colorScale.js +12 -1
- package/dist/theme/helpers/contrastColor.js +18 -1
- package/dist/theme/helpers/dynamicColor.js +32 -1
- package/dist/theme/helpers/mergePreset.js +7 -1
- package/dist/theme/helpers/relatedScales.js +34 -1
- package/dist/theme/helpers/sizeScale.js +20 -1
- package/dist/theme/helpers/textScale.js +15 -1
- package/dist/theme/index.js +2 -1
- package/package.json +1 -3
- package/src/abstractions/Icon.js +1 -1
- package/src/abstractions/TextInput.js +10 -1
- package/src/components/actions/ActionsDrawer.js +17 -4
- package/src/components/actions/Button.js +5 -1
- package/src/components/actions/FloatingMenu.js +1 -1
- package/src/components/actions/menu/HorizontalMenu.js +2 -1
- package/src/components/actions/menu/VerticalMenu.js +2 -1
- package/src/components/filter/DateFilter.js +72 -0
- package/src/components/filter/FilterGroup.js +17 -0
- package/src/components/filter/FilterHandler.js +54 -0
- package/src/components/filter/FilterItem.js +30 -0
- package/src/components/filter/PopoverFilterItem.js +84 -0
- package/src/components/filter/SearchInput.js +49 -0
- package/src/components/filter/index.js +6 -0
- package/src/components/form/Form.js +9 -3
- package/src/components/form/FormItem.js +26 -1
- package/src/components/form/FormWrapperComponent.js +12 -3
- package/src/components/form/useNewForm.js +55 -4
- package/src/components/helpers/Separator.js +15 -11
- package/src/components/helpers/index.js +1 -0
- package/src/components/index.js +2 -0
- package/src/components/inputs/BooleanSelect.js +14 -0
- package/src/components/inputs/DateInput.js +3 -1
- package/src/components/inputs/DateRangeInput.js +41 -0
- package/src/components/inputs/Editable.js +129 -0
- package/src/components/inputs/EnabledSelect.js +14 -0
- package/src/components/inputs/InputWrapper.js +7 -4
- package/src/components/inputs/NumberInput.js +10 -5
- package/src/components/inputs/NumberRangeInput.js +41 -0
- package/src/components/inputs/PasswordInput.js +24 -0
- package/src/components/inputs/Picker.js +2 -2
- package/src/components/inputs/Select.js +61 -47
- package/src/components/inputs/TextArea.js +5 -0
- package/src/components/inputs/TextInput.js +14 -4
- package/src/components/inputs/UploadInput.js +140 -0
- package/src/components/inputs/index.js +9 -0
- package/src/components/inputs/upload/Upload.js +99 -0
- package/src/components/inputs/upload/Upload.native.js +154 -0
- package/src/components/inputs/upload/useUploadState.js +143 -0
- package/src/components/layout/LayoutHeader.js +1 -0
- package/src/components/presentation/AvatarLabel.js +1 -1
- package/src/components/presentation/AvatarsGroup.js +30 -0
- package/src/components/presentation/Badge.js +3 -2
- package/src/components/presentation/ContentLabel.js +1 -1
- package/src/components/presentation/IconLabel.js +1 -0
- package/src/components/presentation/Progress.js +20 -0
- package/src/components/presentation/index.js +2 -0
- package/src/components/sections/Section.js +1 -1
- package/src/components/sections/SectionItemLink.js +4 -2
- package/src/components/steps/ActiveStepContent.js +16 -0
- package/src/components/steps/StepsHandler.js +53 -0
- package/src/components/steps/StepsMenu.js +14 -0
- package/src/components/steps/StepsNavigation.js +37 -0
- package/src/components/steps/index.js +4 -0
- package/src/components/structure/Affix.js +34 -0
- package/src/components/structure/Affix.native.js +3 -0
- package/src/components/structure/Card.js +1 -0
- package/src/components/structure/TopBar.js +14 -2
- package/src/components/structure/index.js +1 -0
- package/src/components/structure/overlay/OverlayHandler.js +9 -1
- package/src/components/structure/popover/Popover.js +22 -5
- package/src/components/table/DataTable.js +7 -2
- package/src/components/table/Table.js +2 -1
- package/src/components/tabs/ActiveTabContent.js +4 -1
- package/src/components/text/DateText.js +15 -2
- package/src/modifiers/border.js +15 -9
- package/src/modifiers/fullColor.js +2 -2
- package/src/modifiers/size.js +8 -5
- package/src/theme/default/base.js +2 -0
- package/src/theme/default/hackerTheme.js +1 -10
- package/src/theme/default/paperTheme.js +1 -14
- package/src/theme/format/colorsVariations.js +1 -1
- package/src/theme/helpers/colorScale.js +2 -1
|
@@ -1 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
var _jsxFileName = "/Users/christianstorch/Apps/nekoapps/libs/neko-ui/src/abstractions/Icon.js";var _excluded = ["name"];function _objectWithoutProperties(e, t) {if (null == e) return {};var o,r,i = _objectWithoutPropertiesLoose(e, t);if (Object.getOwnPropertySymbols) {var n = Object.getOwnPropertySymbols(e);for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);}return i;}function _objectWithoutPropertiesLoose(r, e) {if (null == r) return {};var t = {};for (var n in r) if ({}.hasOwnProperty.call(r, n)) {if (-1 !== e.indexOf(n)) continue;t[n] = r[n];}return t;}import * as Icons from '@remixicon/react';
|
|
2
|
+
|
|
3
|
+
import { capitalizeFirstLetter, toCamelCase } from "../helpers/string";import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
+
|
|
5
|
+
export function AbsIcon(_ref) {var name = _ref.name,props = _objectWithoutProperties(_ref, _excluded);
|
|
6
|
+
if (!!name && !(name.startsWith != null && name.startsWith('Ri'))) name = 'Ri' + capitalizeFirstLetter(toCamelCase(name));
|
|
7
|
+
var IconComponent = Icons[name] || Icons['RiCircleFill'];
|
|
8
|
+
|
|
9
|
+
return _jsx(IconComponent, Object.assign({}, props));
|
|
10
|
+
}
|
|
@@ -1 +1,13 @@
|
|
|
1
|
-
var _this=this,_jsxFileName="/Users/christianstorch/Apps/nekoapps/libs/neko-ui/src/abstractions/Icon.native.js";import{jsx as _jsx}from"react/jsx-runtime";var AbsIcon;
|
|
1
|
+
var _this = this,_jsxFileName = "/Users/christianstorch/Apps/nekoapps/libs/neko-ui/src/abstractions/Icon.native.js";import { jsx as _jsx } from "react/jsx-runtime";var AbsIcon;
|
|
2
|
+
|
|
3
|
+
try {var _require;
|
|
4
|
+
var RmIcon = (_require = require('react-native-remix-icon')) == null ? void 0 : _require.default;
|
|
5
|
+
AbsIcon = function AbsIcon(props) {return _jsx(RmIcon, Object.assign({}, props));};
|
|
6
|
+
} catch (_unused) {
|
|
7
|
+
AbsIcon = function AbsIcon() {
|
|
8
|
+
console.warn('react-native-remix-icon not instaled.');
|
|
9
|
+
return false;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export { AbsIcon };
|
|
@@ -1 +1,11 @@
|
|
|
1
|
-
var _this=this,_jsxFileName="/Users/christianstorch/Apps/nekoapps/libs/neko-ui/src/abstractions/Icon.web.js";import{jsx as _jsx}from"react/jsx-runtime";var AbsIcon;
|
|
1
|
+
var _this = this,_jsxFileName = "/Users/christianstorch/Apps/nekoapps/libs/neko-ui/src/abstractions/Icon.web.js";import { jsx as _jsx } from "react/jsx-runtime";var AbsIcon;
|
|
2
|
+
|
|
3
|
+
try {var _require;
|
|
4
|
+
var RmIcon = (_require = require('react-native-remix-icon')) == null ? void 0 : _require.default;
|
|
5
|
+
console.log(RmIcon);
|
|
6
|
+
AbsIcon = function AbsIcon(props) {return _jsx(RmIcon, Object.assign({}, props));};
|
|
7
|
+
} catch (_unused) {
|
|
8
|
+
AbsIcon = function AbsIcon() {return false;};
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { AbsIcon };
|
|
@@ -1 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
var _jsxFileName = "/Users/christianstorch/Apps/nekoapps/libs/neko-ui/src/abstractions/Image.js";var _excluded = ["src", "resizeMode", "style"];import { jsx as _jsx } from "react/jsx-runtime";function _objectWithoutProperties(e, t) {if (null == e) return {};var o,r,i = _objectWithoutPropertiesLoose(e, t);if (Object.getOwnPropertySymbols) {var n = Object.getOwnPropertySymbols(e);for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);}return i;}function _objectWithoutPropertiesLoose(r, e) {if (null == r) return {};var t = {};for (var n in r) if ({}.hasOwnProperty.call(r, n)) {if (-1 !== e.indexOf(n)) continue;t[n] = r[n];}return t;}export function AbsImage(_ref) {var src = _ref.src,_ref$resizeMode = _ref.resizeMode,resizeMode = _ref$resizeMode === void 0 ? 'cover' : _ref$resizeMode,style = _ref.style,props = _objectWithoutProperties(_ref, _excluded);
|
|
2
|
+
var objectFitMap = {
|
|
3
|
+
cover: 'cover',
|
|
4
|
+
contain: 'contain',
|
|
5
|
+
stretch: 'fill',
|
|
6
|
+
center: 'none'
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
var objectFit = objectFitMap[resizeMode] || 'cover';
|
|
10
|
+
|
|
11
|
+
return _jsx("img", Object.assign({ src: src, style: Object.assign({ objectFit: objectFit, objectPosition: 'center' }, style) }, props));
|
|
12
|
+
}
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
var _jsxFileName = "/Users/christianstorch/Apps/nekoapps/libs/neko-ui/src/abstractions/Image.native.js";var _excluded = ["src", "source", "resizeMode"];function _objectWithoutProperties(e, t) {if (null == e) return {};var o,r,i = _objectWithoutPropertiesLoose(e, t);if (Object.getOwnPropertySymbols) {var n = Object.getOwnPropertySymbols(e);for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);}return i;}function _objectWithoutPropertiesLoose(r, e) {if (null == r) return {};var t = {};for (var n in r) if ({}.hasOwnProperty.call(r, n)) {if (-1 !== e.indexOf(n)) continue;t[n] = r[n];}return t;}import { Image as RNImage } from "react-native-web";import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
export function AbsImage(_ref) {var src = _ref.src,source = _ref.source,_ref$resizeMode = _ref.resizeMode,resizeMode = _ref$resizeMode === void 0 ? 'cover' : _ref$resizeMode,props = _objectWithoutProperties(_ref, _excluded);
|
|
4
|
+
if (!source && !!src) source = { uri: src };
|
|
5
|
+
|
|
6
|
+
return _jsx(RNImage, Object.assign({ source: source, resizeMode: resizeMode }, props));
|
|
7
|
+
}
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
var _jsxFileName = "/Users/christianstorch/Apps/nekoapps/libs/neko-ui/src/abstractions/Image.web.js";var _excluded = ["src", "source", "resizeMode"];function _objectWithoutProperties(e, t) {if (null == e) return {};var o,r,i = _objectWithoutPropertiesLoose(e, t);if (Object.getOwnPropertySymbols) {var n = Object.getOwnPropertySymbols(e);for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);}return i;}function _objectWithoutPropertiesLoose(r, e) {if (null == r) return {};var t = {};for (var n in r) if ({}.hasOwnProperty.call(r, n)) {if (-1 !== e.indexOf(n)) continue;t[n] = r[n];}return t;}import { Image as RNImage } from "react-native-web";import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
export function AbsImage(_ref) {var src = _ref.src,source = _ref.source,_ref$resizeMode = _ref.resizeMode,resizeMode = _ref$resizeMode === void 0 ? 'cover' : _ref$resizeMode,props = _objectWithoutProperties(_ref, _excluded);
|
|
4
|
+
if (!source && !!src) source = { uri: src };
|
|
5
|
+
|
|
6
|
+
return _jsx(RNImage, Object.assign({ source: source, resizeMode: resizeMode }, props));
|
|
7
|
+
}
|
|
@@ -1 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
var _jsxFileName = "/Users/christianstorch/Apps/nekoapps/libs/neko-ui/src/abstractions/ImageBackground.js";var _excluded = ["src", "resizeMode", "style"];import { jsx as _jsx } from "react/jsx-runtime";function _objectWithoutProperties(e, t) {if (null == e) return {};var o,r,i = _objectWithoutPropertiesLoose(e, t);if (Object.getOwnPropertySymbols) {var n = Object.getOwnPropertySymbols(e);for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);}return i;}function _objectWithoutPropertiesLoose(r, e) {if (null == r) return {};var t = {};for (var n in r) if ({}.hasOwnProperty.call(r, n)) {if (-1 !== e.indexOf(n)) continue;t[n] = r[n];}return t;}export function AbsImageBackground(_ref) {var src = _ref.src,_ref$resizeMode = _ref.resizeMode,resizeMode = _ref$resizeMode === void 0 ? 'cover' : _ref$resizeMode,style = _ref.style,props = _objectWithoutProperties(_ref, _excluded);
|
|
2
|
+
var objectFitMap = {
|
|
3
|
+
cover: 'cover',
|
|
4
|
+
contain: 'contain',
|
|
5
|
+
stretch: 'fill',
|
|
6
|
+
center: 'none'
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
var objectFit = objectFitMap[resizeMode] || 'cover';
|
|
10
|
+
|
|
11
|
+
return (
|
|
12
|
+
_jsx("div", Object.assign({
|
|
13
|
+
style: Object.assign({ backgroundSize: objectFit, backgroundPosition: 'center', backgroundImage: `url(${src})` }, style) },
|
|
14
|
+
props)
|
|
15
|
+
));
|
|
16
|
+
|
|
17
|
+
}
|
|
@@ -1 +1,27 @@
|
|
|
1
|
-
|
|
1
|
+
var _jsxFileName = "/Users/christianstorch/Apps/nekoapps/libs/neko-ui/src/abstractions/ImageBackground.native.js";var _excluded = ["src", "source", "resizeMode", "style", "children"];function _objectWithoutProperties(e, t) {if (null == e) return {};var o,r,i = _objectWithoutPropertiesLoose(e, t);if (Object.getOwnPropertySymbols) {var n = Object.getOwnPropertySymbols(e);for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);}return i;}function _objectWithoutPropertiesLoose(r, e) {if (null == r) return {};var t = {};for (var n in r) if ({}.hasOwnProperty.call(r, n)) {if (-1 !== e.indexOf(n)) continue;t[n] = r[n];}return t;}import { pick } from 'ramda';
|
|
2
|
+
import { ImageBackground as RNImageBackground } from "react-native-web";
|
|
3
|
+
|
|
4
|
+
import { AbsView } from "./View";import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
var allBorderRadiusProps = [
|
|
7
|
+
'borderRadius',
|
|
8
|
+
'borderTopLeftRadius',
|
|
9
|
+
'borderTopRightRadius',
|
|
10
|
+
'borderBottomLeftRadius',
|
|
11
|
+
'borderBottomRightRadius',
|
|
12
|
+
'borderTopStartRadius',
|
|
13
|
+
'borderTopEndRadius',
|
|
14
|
+
'borderBottomStartRadius',
|
|
15
|
+
'borderBottomEndRadius'];
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
export function AbsImageBackground(_ref) {var src = _ref.src,source = _ref.source,_ref$resizeMode = _ref.resizeMode,resizeMode = _ref$resizeMode === void 0 ? 'cover' : _ref$resizeMode,style = _ref.style,children = _ref.children,props = _objectWithoutProperties(_ref, _excluded);
|
|
19
|
+
if (!source && !!src) source = { uri: src };
|
|
20
|
+
var imageStyle = pick(allBorderRadiusProps, style);
|
|
21
|
+
|
|
22
|
+
return (
|
|
23
|
+
_jsx(RNImageBackground, Object.assign({ source: source, resizeMode: resizeMode, style: style, imageStyle: imageStyle }, props, { children:
|
|
24
|
+
children })
|
|
25
|
+
));
|
|
26
|
+
|
|
27
|
+
}
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
var _jsxFileName = "/Users/christianstorch/Apps/nekoapps/libs/neko-ui/src/abstractions/ImageBackground.web.js";var _excluded = ["src", "source", "resizeMode"];function _objectWithoutProperties(e, t) {if (null == e) return {};var o,r,i = _objectWithoutPropertiesLoose(e, t);if (Object.getOwnPropertySymbols) {var n = Object.getOwnPropertySymbols(e);for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);}return i;}function _objectWithoutPropertiesLoose(r, e) {if (null == r) return {};var t = {};for (var n in r) if ({}.hasOwnProperty.call(r, n)) {if (-1 !== e.indexOf(n)) continue;t[n] = r[n];}return t;}import { ImageBackground as RNImageBackground } from "react-native-web";import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
export function AbsImageBackground(_ref) {var src = _ref.src,source = _ref.source,_ref$resizeMode = _ref.resizeMode,resizeMode = _ref$resizeMode === void 0 ? 'cover' : _ref$resizeMode,props = _objectWithoutProperties(_ref, _excluded);
|
|
4
|
+
if (!source && !!src) source = { uri: src };
|
|
5
|
+
|
|
6
|
+
return _jsx(RNImageBackground, Object.assign({ source: source, resizeMode: resizeMode }, props));
|
|
7
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export var Platform={OS:'web'};
|
|
1
|
+
export var Platform = { OS: 'web' };
|
|
@@ -1 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
var _jsxFileName = "/Users/christianstorch/Apps/nekoapps/libs/neko-ui/src/abstractions/Pressable.js";var _excluded = ["link", "onPress", "onClick"];import { jsx as _jsx } from "react/jsx-runtime";function _objectWithoutProperties(e, t) {if (null == e) return {};var o,r,i = _objectWithoutPropertiesLoose(e, t);if (Object.getOwnPropertySymbols) {var n = Object.getOwnPropertySymbols(e);for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);}return i;}function _objectWithoutPropertiesLoose(r, e) {if (null == r) return {};var t = {};for (var n in r) if ({}.hasOwnProperty.call(r, n)) {if (-1 !== e.indexOf(n)) continue;t[n] = r[n];}return t;}export function AbsPressable(_ref) {var link = _ref.link,onPress = _ref.onPress,onClick = _ref.onClick,props = _objectWithoutProperties(_ref, _excluded);
|
|
2
|
+
var Component = link ? 'a' : 'button';
|
|
3
|
+
return _jsx(Component, Object.assign({ onClick: onClick || onPress }, props));
|
|
4
|
+
}
|
|
@@ -1 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
var _excluded = ["height", "width", "flex"],_excluded2 = ["style"];var _this = this,_jsxFileName = "/Users/christianstorch/Apps/nekoapps/libs/neko-ui/src/abstractions/ScrollView.native.js";function _objectWithoutProperties(e, t) {if (null == e) return {};var o,r,i = _objectWithoutPropertiesLoose(e, t);if (Object.getOwnPropertySymbols) {var n = Object.getOwnPropertySymbols(e);for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);}return i;}function _objectWithoutPropertiesLoose(r, e) {if (null == r) return {};var t = {};for (var n in r) if ({}.hasOwnProperty.call(r, n)) {if (-1 !== e.indexOf(n)) continue;t[n] = r[n];}return t;}import { ScrollView } from "react-native-web";import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
export var AbsScrollView = function AbsScrollView(_ref) {var _ref$style = _ref.style,height = _ref$style.height,width = _ref$style.width,flex = _ref$style.flex,style = _objectWithoutProperties(_ref$style, _excluded),props = _objectWithoutProperties(_ref, _excluded2);
|
|
4
|
+
return _jsx(ScrollView, Object.assign({ height: height, width: width, style: { flex: flex } }, props, { contentContainerStyle: style }));
|
|
5
|
+
};
|
|
@@ -1 +1,51 @@
|
|
|
1
|
-
|
|
1
|
+
var _jsxFileName = "/Users/christianstorch/Apps/nekoapps/libs/neko-ui/src/abstractions/StaticList.js";var _excluded = ["data", "renderItem", "ItemSeparatorComponent", "Separator", "renderSeparator", "ListEmptyComponent", "Empty", "renderEmpty", "ListFooterComponent", "Footer", "renderFooter", "ListHeaderComponent", "Header", "renderHeader", "keyExtractor", "onEndReached"];function _objectWithoutProperties(e, t) {if (null == e) return {};var o,r,i = _objectWithoutPropertiesLoose(e, t);if (Object.getOwnPropertySymbols) {var n = Object.getOwnPropertySymbols(e);for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);}return i;}function _objectWithoutPropertiesLoose(r, e) {if (null == r) return {};var t = {};for (var n in r) if ({}.hasOwnProperty.call(r, n)) {if (-1 !== e.indexOf(n)) continue;t[n] = r[n];}return t;}import React from 'react';
|
|
2
|
+
|
|
3
|
+
import { AbsView } from "./View";
|
|
4
|
+
import { LazyAction } from "../components/helpers/LazyAction";import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
var defaultRender = function defaultRender() {return false;};
|
|
7
|
+
|
|
8
|
+
export function AbsStaticList(_ref)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
{var _this = this;var data = _ref.data,renderItem = _ref.renderItem,ItemSeparatorComponent = _ref.ItemSeparatorComponent,Separator = _ref.Separator,renderSeparator = _ref.renderSeparator,ListEmptyComponent = _ref.ListEmptyComponent,Empty = _ref.Empty,renderEmpty = _ref.renderEmpty,ListFooterComponent = _ref.ListFooterComponent,Footer = _ref.Footer,renderFooter = _ref.renderFooter,ListHeaderComponent = _ref.ListHeaderComponent,Header = _ref.Header,renderHeader = _ref.renderHeader,keyExtractor = _ref.keyExtractor,onEndReached = _ref.onEndReached,props = _objectWithoutProperties(_ref, _excluded);
|
|
27
|
+
ItemSeparatorComponent = ItemSeparatorComponent || Separator || renderSeparator || defaultRender;
|
|
28
|
+
ListEmptyComponent = ListEmptyComponent || Empty || renderEmpty || defaultRender;
|
|
29
|
+
ListFooterComponent = ListFooterComponent || Footer || renderFooter || defaultRender;
|
|
30
|
+
ListHeaderComponent = ListHeaderComponent || Header || renderHeader || defaultRender;
|
|
31
|
+
keyExtractor = keyExtractor || function (item, index) {return index;};
|
|
32
|
+
renderItem = renderItem || defaultRender;
|
|
33
|
+
|
|
34
|
+
return (
|
|
35
|
+
_jsxs(AbsView, Object.assign({}, props, { children: [
|
|
36
|
+
_jsx(ListHeaderComponent, {}),
|
|
37
|
+
|
|
38
|
+
!(data != null && data.length) && _jsx(ListEmptyComponent, {}),
|
|
39
|
+
data == null ? void 0 : data.map == null ? void 0 : data.map(function (item, index) {return (
|
|
40
|
+
_jsxs(React.Fragment, { children: [
|
|
41
|
+
index !== 0 && _jsx(ItemSeparatorComponent, {}),
|
|
42
|
+
renderItem({ item: item, index: index })] }, keyExtractor(item, index)
|
|
43
|
+
));}
|
|
44
|
+
),
|
|
45
|
+
|
|
46
|
+
_jsx(LazyAction, { action: onEndReached, destroyOffScreen: true }),
|
|
47
|
+
|
|
48
|
+
_jsx(ListFooterComponent, {})] })
|
|
49
|
+
));
|
|
50
|
+
|
|
51
|
+
}
|
|
@@ -1 +1,97 @@
|
|
|
1
|
-
|
|
1
|
+
var _jsxFileName = "/Users/christianstorch/Apps/nekoapps/libs/neko-ui/src/abstractions/Switch.js";var _excluded = ["value", "onValueChange", "disabled", "trackColor", "thumbColor", "height", "style"];function _objectWithoutProperties(e, t) {if (null == e) return {};var o,r,i = _objectWithoutPropertiesLoose(e, t);if (Object.getOwnPropertySymbols) {var n = Object.getOwnPropertySymbols(e);for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);}return i;}function _objectWithoutPropertiesLoose(r, e) {if (null == r) return {};var t = {};for (var n in r) if ({}.hasOwnProperty.call(r, n)) {if (-1 !== e.indexOf(n)) continue;t[n] = r[n];}return t;}import { useCallback } from 'react';import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
export function AbsSwitch(_ref)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
{var _ref$value = _ref.value,value = _ref$value === void 0 ? false : _ref$value,_ref$onValueChange = _ref.onValueChange,onValueChange = _ref$onValueChange === void 0 ? function () {} : _ref$onValueChange,_ref$disabled = _ref.disabled,disabled = _ref$disabled === void 0 ? false : _ref$disabled,_ref$trackColor = _ref.trackColor,trackColor = _ref$trackColor === void 0 ? { false: '#767577', true: '#81b0ff' } : _ref$trackColor,thumbColor = _ref.thumbColor,_ref$height = _ref.height,height = _ref$height === void 0 ? 32 : _ref$height,style = _ref.style,rest = _objectWithoutProperties(_ref, _excluded);
|
|
13
|
+
var isOn = !!value;
|
|
14
|
+
|
|
15
|
+
var handleToggle = useCallback(function () {
|
|
16
|
+
if (disabled) return;
|
|
17
|
+
onValueChange(!isOn);
|
|
18
|
+
}, [disabled, isOn, onValueChange]);
|
|
19
|
+
|
|
20
|
+
var onKeyDown = useCallback(
|
|
21
|
+
function (e) {
|
|
22
|
+
if (disabled) return;
|
|
23
|
+
if (e.key === 'Enter' || e.key === ' ') {
|
|
24
|
+
e.preventDefault();
|
|
25
|
+
onValueChange(!isOn);
|
|
26
|
+
}
|
|
27
|
+
if (e.key === 'ArrowLeft' && isOn) onValueChange(false);
|
|
28
|
+
if (e.key === 'ArrowRight' && !isOn) onValueChange(true);
|
|
29
|
+
},
|
|
30
|
+
[disabled, isOn, onValueChange]
|
|
31
|
+
);
|
|
32
|
+
|
|
33
|
+
var trackOff = trackColor && trackColor.false || '#76757750';
|
|
34
|
+
var trackOn = trackColor && trackColor.true || '#81b0ff';
|
|
35
|
+
var currentTrack = isOn ? trackOn : trackOff;
|
|
36
|
+
|
|
37
|
+
var defaultThumb = '#ffffff';
|
|
38
|
+
var currentThumb = thumbColor || defaultThumb;
|
|
39
|
+
|
|
40
|
+
var width = 1.7 * height;
|
|
41
|
+
var padding = 2;
|
|
42
|
+
var thumbSize = height - padding * 2;
|
|
43
|
+
var translateX = isOn ? width - thumbSize - padding * 2 : 0;
|
|
44
|
+
|
|
45
|
+
return (
|
|
46
|
+
_jsx("button", Object.assign({
|
|
47
|
+
type: "button",
|
|
48
|
+
role: "switch",
|
|
49
|
+
"aria-checked": isOn,
|
|
50
|
+
"aria-disabled": disabled,
|
|
51
|
+
onClick: handleToggle,
|
|
52
|
+
onKeyDown: onKeyDown,
|
|
53
|
+
disabled: disabled,
|
|
54
|
+
style: Object.assign({
|
|
55
|
+
WebkitTapHighlightColor: 'transparent',
|
|
56
|
+
cursor: disabled ? 'not-allowed' : 'pointer',
|
|
57
|
+
background: 'transparent',
|
|
58
|
+
border: 'none',
|
|
59
|
+
padding: 0,
|
|
60
|
+
margin: 0,
|
|
61
|
+
outline: 'none',
|
|
62
|
+
display: 'inline-flex',
|
|
63
|
+
alignItems: 'center' },
|
|
64
|
+
style) },
|
|
65
|
+
|
|
66
|
+
rest, { children:
|
|
67
|
+
|
|
68
|
+
_jsx("span", {
|
|
69
|
+
"aria-hidden": true,
|
|
70
|
+
style: {
|
|
71
|
+
position: 'relative',
|
|
72
|
+
width: width,
|
|
73
|
+
height: height,
|
|
74
|
+
borderRadius: height / 2,
|
|
75
|
+
backgroundColor: currentTrack,
|
|
76
|
+
transition: 'background-color 150ms ease',
|
|
77
|
+
_opacity: disabled ? 0.6 : 1,
|
|
78
|
+
display: 'inline-block'
|
|
79
|
+
}, children:
|
|
80
|
+
|
|
81
|
+
_jsx("span", {
|
|
82
|
+
style: {
|
|
83
|
+
position: 'absolute',
|
|
84
|
+
top: padding,
|
|
85
|
+
left: padding + translateX,
|
|
86
|
+
width: thumbSize,
|
|
87
|
+
height: thumbSize,
|
|
88
|
+
borderRadius: thumbSize / 2,
|
|
89
|
+
backgroundColor: currentThumb,
|
|
90
|
+
boxShadow: '0 1px 2px rgba(0,0,0,0.2), 0 1px 1px rgba(0,0,0,0.1)',
|
|
91
|
+
transition: 'left 150ms ease, background-color 150ms ease'
|
|
92
|
+
} }
|
|
93
|
+
) }
|
|
94
|
+
) })
|
|
95
|
+
));
|
|
96
|
+
|
|
97
|
+
}
|
|
@@ -1 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
var _jsxFileName = "/Users/christianstorch/Apps/nekoapps/libs/neko-ui/src/abstractions/Switch.native.js";var _excluded = ["height", "style"];function _objectWithoutProperties(e, t) {if (null == e) return {};var o,r,i = _objectWithoutPropertiesLoose(e, t);if (Object.getOwnPropertySymbols) {var n = Object.getOwnPropertySymbols(e);for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);}return i;}function _objectWithoutPropertiesLoose(r, e) {if (null == r) return {};var t = {};for (var n in r) if ({}.hasOwnProperty.call(r, n)) {if (-1 !== e.indexOf(n)) continue;t[n] = r[n];}return t;}import { Switch as RNSwitch } from "react-native-web";import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
export function AbsSwitch(_ref) {var height = _ref.height,style = _ref.style,props = _objectWithoutProperties(_ref, _excluded);
|
|
4
|
+
var baseHeight = 31;
|
|
5
|
+
var transform = undefined;
|
|
6
|
+
if (!!height) {
|
|
7
|
+
var scale = height / baseHeight;
|
|
8
|
+
transform = [{ scaleX: scale }, { scaleY: scale }];
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
return _jsx(RNSwitch, Object.assign({ style: Object.assign({ transform: transform }, style) }, props));
|
|
12
|
+
}
|
|
@@ -1 +1,29 @@
|
|
|
1
|
-
|
|
1
|
+
var _jsxFileName = "/Users/christianstorch/Apps/nekoapps/libs/neko-ui/src/abstractions/Table.js";var _excluded = ["children", "style"];function _objectDestructuringEmpty(t) {if (null == t) throw new TypeError("Cannot destructure " + t);}import { jsx as _jsx } from "react/jsx-runtime";function _objectWithoutProperties(e, t) {if (null == e) return {};var o,r,i = _objectWithoutPropertiesLoose(e, t);if (Object.getOwnPropertySymbols) {var n = Object.getOwnPropertySymbols(e);for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);}return i;}function _objectWithoutPropertiesLoose(r, e) {if (null == r) return {};var t = {};for (var n in r) if ({}.hasOwnProperty.call(r, n)) {if (-1 !== e.indexOf(n)) continue;t[n] = r[n];}return t;}export function AbsTable(_ref) {var children = _ref.children,style = _ref.style,props = _objectWithoutProperties(_ref, _excluded);
|
|
2
|
+
return (
|
|
3
|
+
_jsx("table", Object.assign({},
|
|
4
|
+
props, {
|
|
5
|
+
style: Object.assign({},
|
|
6
|
+
style, {
|
|
7
|
+
borderCollapse: 'separate',
|
|
8
|
+
borderSpacing: 0,
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
width: '100%' }), children:
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
_jsx("tbody", { children: children }) })
|
|
15
|
+
));
|
|
16
|
+
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export function AbsTableRow(_ref2) {var props = Object.assign({}, (_objectDestructuringEmpty(_ref2), _ref2));
|
|
20
|
+
return _jsx("tr", Object.assign({}, props));
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export function AbsTableHeader(_ref3) {var props = Object.assign({}, (_objectDestructuringEmpty(_ref3), _ref3));
|
|
24
|
+
return _jsx("th", Object.assign({}, props));
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export function AbsTableCol(_ref4) {var props = Object.assign({}, (_objectDestructuringEmpty(_ref4), _ref4));
|
|
28
|
+
return _jsx("td", Object.assign({}, props));
|
|
29
|
+
}
|
|
@@ -1 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
var _jsxFileName = "/Users/christianstorch/Apps/nekoapps/libs/neko-ui/src/abstractions/Table.native.js";var _excluded = ["children"],_excluded2 = ["style"],_excluded3 = ["style"],_excluded4 = ["style"];function _objectWithoutProperties(e, t) {if (null == e) return {};var o,r,i = _objectWithoutPropertiesLoose(e, t);if (Object.getOwnPropertySymbols) {var n = Object.getOwnPropertySymbols(e);for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);}return i;}function _objectWithoutPropertiesLoose(r, e) {if (null == r) return {};var t = {};for (var n in r) if ({}.hasOwnProperty.call(r, n)) {if (-1 !== e.indexOf(n)) continue;t[n] = r[n];}return t;}import { View } from "react-native-web";import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
export function AbsTable(_ref) {var children = _ref.children,props = _objectWithoutProperties(_ref, _excluded);
|
|
4
|
+
return _jsx(View, Object.assign({}, props, { children: children }));
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export function AbsTableRow(_ref2) {var style = _ref2.style,props = _objectWithoutProperties(_ref2, _excluded2);
|
|
8
|
+
return _jsx(View, Object.assign({}, props, { style: [style, { flexDirection: 'row', flex: 1 }] }));
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export function AbsTableHeader(_ref3) {var style = _ref3.style,props = _objectWithoutProperties(_ref3, _excluded3);
|
|
12
|
+
if (!style.width && !style.minWidth && !style.flex) style.flex = 1;
|
|
13
|
+
return _jsx(View, Object.assign({}, props, { style: [style] }));
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export function AbsTableCol(_ref4) {var style = _ref4.style,props = _objectWithoutProperties(_ref4, _excluded4);
|
|
17
|
+
if (!style.width && !style.minWidth && !style.flex) style.flex = 1;
|
|
18
|
+
return _jsx(View, Object.assign({}, props, { style: style }));
|
|
19
|
+
}
|
|
@@ -1 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
var _jsxFileName = "/Users/christianstorch/Apps/nekoapps/libs/neko-ui/src/abstractions/Text.js";var _excluded = ["numberOfLines", "style"];import { jsx as _jsx } from "react/jsx-runtime";function _objectWithoutProperties(e, t) {if (null == e) return {};var o,r,i = _objectWithoutPropertiesLoose(e, t);if (Object.getOwnPropertySymbols) {var n = Object.getOwnPropertySymbols(e);for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);}return i;}function _objectWithoutPropertiesLoose(r, e) {if (null == r) return {};var t = {};for (var n in r) if ({}.hasOwnProperty.call(r, n)) {if (-1 !== e.indexOf(n)) continue;t[n] = r[n];}return t;}export function AbsText(_ref) {var numberOfLines = _ref.numberOfLines,style = _ref.style,props = _objectWithoutProperties(_ref, _excluded);
|
|
2
|
+
style = style || {};
|
|
3
|
+
|
|
4
|
+
var limitLinesStyle = !!numberOfLines ?
|
|
5
|
+
{
|
|
6
|
+
display: '-webkit-box',
|
|
7
|
+
WebkitLineClamp: numberOfLines,
|
|
8
|
+
WebkitBoxOrient: 'vertical',
|
|
9
|
+
overflow: 'hidden'
|
|
10
|
+
} :
|
|
11
|
+
{};
|
|
12
|
+
|
|
13
|
+
return _jsx("span", Object.assign({}, props, { style: Object.assign({}, limitLinesStyle, style) }));
|
|
14
|
+
}
|
|
@@ -1 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
var _jsxFileName = "/Users/christianstorch/Apps/nekoapps/libs/neko-ui/src/abstractions/TextInput.js";var _excluded = ["onChange", "multiline", "rows"];import { jsx as _jsx } from "react/jsx-runtime";function _objectWithoutProperties(e, t) {if (null == e) return {};var o,r,i = _objectWithoutPropertiesLoose(e, t);if (Object.getOwnPropertySymbols) {var n = Object.getOwnPropertySymbols(e);for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);}return i;}function _objectWithoutPropertiesLoose(r, e) {if (null == r) return {};var t = {};for (var n in r) if ({}.hasOwnProperty.call(r, n)) {if (-1 !== e.indexOf(n)) continue;t[n] = r[n];}return t;}export function AbsTextInput(_ref) {var _onChange = _ref.onChange,multiline = _ref.multiline,rows = _ref.rows,props = _objectWithoutProperties(_ref, _excluded);
|
|
2
|
+
if (multiline) {
|
|
3
|
+
return (
|
|
4
|
+
_jsx("textarea", Object.assign({
|
|
5
|
+
rows: rows,
|
|
6
|
+
onChange: function onChange(e) {var _e$target;return _onChange == null ? void 0 : _onChange(e == null ? void 0 : (_e$target = e.target) == null ? void 0 : _e$target.value, e);} },
|
|
7
|
+
props)
|
|
8
|
+
));
|
|
9
|
+
|
|
10
|
+
}
|
|
11
|
+
return _jsx("input", Object.assign({ type: "text", onChange: function onChange(e) {var _e$target2;return _onChange == null ? void 0 : _onChange(e == null ? void 0 : (_e$target2 = e.target) == null ? void 0 : _e$target2.value, e);} }, props));
|
|
12
|
+
}
|
|
@@ -1 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
var _jsxFileName = "/Users/christianstorch/Apps/nekoapps/libs/neko-ui/src/abstractions/TextInput.native.js";var _excluded = ["onChange"];function _objectWithoutProperties(e, t) {if (null == e) return {};var o,r,i = _objectWithoutPropertiesLoose(e, t);if (Object.getOwnPropertySymbols) {var n = Object.getOwnPropertySymbols(e);for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);}return i;}function _objectWithoutPropertiesLoose(r, e) {if (null == r) return {};var t = {};for (var n in r) if ({}.hasOwnProperty.call(r, n)) {if (-1 !== e.indexOf(n)) continue;t[n] = r[n];}return t;}import { TextInput } from "react-native-web";import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
export function AbsTextInput(_ref) {var onChange = _ref.onChange,props = _objectWithoutProperties(_ref, _excluded);
|
|
4
|
+
return _jsx(TextInput, Object.assign({ onChangeText: onChange }, props));
|
|
5
|
+
}
|
|
@@ -1 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
var _jsxFileName = "/Users/christianstorch/Apps/nekoapps/libs/neko-ui/src/abstractions/TextInput.web.js";var _excluded = ["onChange"];function _objectWithoutProperties(e, t) {if (null == e) return {};var o,r,i = _objectWithoutPropertiesLoose(e, t);if (Object.getOwnPropertySymbols) {var n = Object.getOwnPropertySymbols(e);for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);}return i;}function _objectWithoutPropertiesLoose(r, e) {if (null == r) return {};var t = {};for (var n in r) if ({}.hasOwnProperty.call(r, n)) {if (-1 !== e.indexOf(n)) continue;t[n] = r[n];}return t;}import { TextInput } from "react-native-web";import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
export function AbsTextInput(_ref) {var onChange = _ref.onChange,props = _objectWithoutProperties(_ref, _excluded);
|
|
4
|
+
return _jsx(TextInput, Object.assign({ onChangeText: onChange }, props));
|
|
5
|
+
}
|