@sincpro/mobile-ui 0.1.2 → 0.1.4
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/lib/Dialog/BottomSheet/BottomSheet.Root.d.ts +320 -0
- package/lib/Dialog/BottomSheet/BottomSheet.Root.js +380 -0
- package/lib/Dialog/BottomSheet/index.d.ts +1 -0
- package/lib/Dialog/BottomSheet/index.js +1 -0
- package/lib/Dialog/Confirmation.context.d.ts +21 -0
- package/lib/Dialog/Confirmation.context.js +67 -0
- package/lib/Dialog/Dialog.Confirmation.d.ts +12 -0
- package/lib/Dialog/Dialog.Confirmation.js +9 -0
- package/lib/Dialog/Dialog.EditValue.d.ts +25 -0
- package/lib/Dialog/Dialog.EditValue.js +16 -0
- package/lib/Dialog/index.d.ts +19 -0
- package/lib/Dialog/index.js +11 -0
- package/lib/Display/Display.Avatar.d.ts +52 -0
- package/lib/Display/Display.Avatar.js +40 -0
- package/lib/Display/Display.Badge.d.ts +108 -0
- package/lib/Display/Display.Badge.js +54 -0
- package/lib/Display/Display.CopyableText.d.ts +13 -0
- package/lib/Display/Display.CopyableText.js +14 -0
- package/lib/Display/Display.CountRecords.d.ts +8 -0
- package/lib/Display/Display.CountRecords.js +8 -0
- package/lib/Display/Display.Date.d.ts +18 -0
- package/lib/Display/Display.Date.js +13 -0
- package/lib/Display/Display.Divider.d.ts +44 -0
- package/lib/Display/Display.Divider.js +27 -0
- package/lib/Display/Display.Icon.d.ts +15 -0
- package/lib/Display/Display.Icon.js +35 -0
- package/lib/Display/Display.Logo.d.ts +55 -0
- package/lib/Display/Display.Logo.js +36 -0
- package/lib/Display/Display.MenuButton.d.ts +103 -0
- package/lib/Display/Display.MenuButton.js +50 -0
- package/lib/Display/Display.Monetary.d.ts +19 -0
- package/lib/Display/Display.Monetary.js +9 -0
- package/lib/Display/index.d.ts +22 -0
- package/lib/Display/index.js +25 -0
- package/lib/Feedback/ErrorBoundary.d.ts +18 -0
- package/lib/Feedback/ErrorBoundary.js +28 -0
- package/lib/Feedback/Feedback.DomainSplashScreen.d.ts +10 -0
- package/lib/Feedback/Feedback.DomainSplashScreen.js +67 -0
- package/lib/Feedback/Feedback.Empty.d.ts +6 -0
- package/lib/Feedback/Feedback.Empty.js +9 -0
- package/lib/Feedback/Feedback.Error.d.ts +9 -0
- package/lib/Feedback/Feedback.Error.js +10 -0
- package/lib/Feedback/Feedback.Loading.d.ts +8 -0
- package/lib/Feedback/Feedback.Loading.js +8 -0
- package/lib/Feedback/Feedback.Spinner.d.ts +11 -0
- package/lib/Feedback/Feedback.Spinner.js +8 -0
- package/lib/Feedback/Feedback.Splash.d.ts +11 -0
- package/lib/Feedback/Feedback.Splash.js +37 -0
- package/lib/Feedback/index.d.ts +13 -0
- package/lib/Feedback/index.js +14 -0
- package/lib/Form/Form.Button.d.ts +145 -0
- package/lib/Form/Form.Button.js +272 -0
- package/lib/Form/Form.Checkbox.d.ts +13 -0
- package/lib/Form/Form.Checkbox.js +30 -0
- package/lib/Form/Form.ControlledCheckbox.d.ts +9 -0
- package/lib/Form/Form.ControlledCheckbox.js +7 -0
- package/lib/Form/Form.ControlledDropdown.d.ts +14 -0
- package/lib/Form/Form.ControlledDropdown.js +4 -0
- package/lib/Form/Form.ControlledInput.d.ts +15 -0
- package/lib/Form/Form.ControlledInput.js +7 -0
- package/lib/Form/Form.ControlledMonetaryInput.d.ts +12 -0
- package/lib/Form/Form.ControlledMonetaryInput.js +7 -0
- package/lib/Form/Form.ControlledRadioButton.d.ts +9 -0
- package/lib/Form/Form.ControlledRadioButton.js +7 -0
- package/lib/Form/Form.Dropdown.d.ts +14 -0
- package/lib/Form/Form.Dropdown.js +85 -0
- package/lib/Form/Form.FilterButton.d.ts +12 -0
- package/lib/Form/Form.FilterButton.js +34 -0
- package/lib/Form/Form.FractionalQuantityInput.d.ts +13 -0
- package/lib/Form/Form.FractionalQuantityInput.js +118 -0
- package/lib/Form/Form.IconButton.d.ts +67 -0
- package/lib/Form/Form.IconButton.js +64 -0
- package/lib/Form/Form.Input.d.ts +9 -0
- package/lib/Form/Form.Input.js +38 -0
- package/lib/Form/Form.InputField.d.ts +10 -0
- package/lib/Form/Form.InputField.js +38 -0
- package/lib/Form/Form.MonetaryInput.d.ts +8 -0
- package/lib/Form/Form.MonetaryInput.js +27 -0
- package/lib/Form/Form.PasswordInput.d.ts +9 -0
- package/lib/Form/Form.PasswordInput.js +15 -0
- package/lib/Form/Form.QuantitySelector.d.ts +10 -0
- package/lib/Form/Form.QuantitySelector.js +36 -0
- package/lib/Form/Form.RadioButton.d.ts +7 -0
- package/lib/Form/Form.RadioButton.js +31 -0
- package/lib/Form/Form.SearchBar.d.ts +8 -0
- package/lib/Form/Form.SearchBar.js +22 -0
- package/lib/Form/Form.TextInput.d.ts +8 -0
- package/lib/Form/Form.TextInput.js +8 -0
- package/lib/Form/index.d.ts +41 -0
- package/lib/Form/index.js +42 -0
- package/lib/Navigation/Navigation.Header.d.ts +12 -0
- package/lib/Navigation/Navigation.Header.js +12 -0
- package/lib/Navigation/Navigation.HeaderToolbar.d.ts +15 -0
- package/lib/Navigation/Navigation.HeaderToolbar.js +18 -0
- package/lib/Navigation/Navigation.RowItem.d.ts +5 -0
- package/lib/Navigation/Navigation.RowItem.js +11 -0
- package/lib/Navigation/Navigation.TabIcon.d.ts +14 -0
- package/lib/Navigation/Navigation.TabIcon.js +9 -0
- package/lib/Navigation/Navigation.TabItem.d.ts +14 -0
- package/lib/Navigation/Navigation.TabItem.js +8 -0
- package/lib/Navigation/index.d.ts +11 -0
- package/lib/Navigation/index.js +13 -0
- package/lib/Typography/Typography.Heading.d.ts +12 -0
- package/lib/Typography/Typography.Heading.js +6 -0
- package/lib/Typography/Typography.Text.d.ts +27 -0
- package/lib/Typography/Typography.Text.js +21 -0
- package/lib/Typography/index.d.ts +7 -0
- package/lib/Typography/index.js +8 -0
- package/lib/icons/AddItemIcon.d.ts +4 -0
- package/lib/icons/AddItemIcon.js +4 -0
- package/lib/icons/ArrangeCircle.d.ts +4 -0
- package/lib/icons/ArrangeCircle.js +4 -0
- package/lib/icons/ArrowDownIcon.d.ts +3 -0
- package/lib/icons/ArrowDownIcon.js +6 -0
- package/lib/icons/ArrowUpIcon.d.ts +3 -0
- package/lib/icons/ArrowUpIcon.js +6 -0
- package/lib/icons/BoxIcon.d.ts +4 -0
- package/lib/icons/BoxIcon.js +4 -0
- package/lib/icons/BoxTimeIcon.d.ts +4 -0
- package/lib/icons/BoxTimeIcon.js +4 -0
- package/lib/icons/CalendarIcon.d.ts +4 -0
- package/lib/icons/CalendarIcon.js +4 -0
- package/lib/icons/CardIcon.d.ts +4 -0
- package/lib/icons/CardIcon.js +4 -0
- package/lib/icons/CashierIcon.d.ts +4 -0
- package/lib/icons/CashierIcon.js +4 -0
- package/lib/icons/CreditIcon.d.ts +7 -0
- package/lib/icons/CreditIcon.js +6 -0
- package/lib/icons/DuoIcon.d.ts +4 -0
- package/lib/icons/DuoIcon.js +4 -0
- package/lib/icons/HomeIcon.d.ts +4 -0
- package/lib/icons/HomeIcon.js +4 -0
- package/lib/icons/HomeIconOutlined.d.ts +4 -0
- package/lib/icons/HomeIconOutlined.js +4 -0
- package/lib/icons/LogoIcon.d.ts +4 -0
- package/lib/icons/LogoIcon.js +4 -0
- package/lib/icons/MoneyReceiveIcon.d.ts +4 -0
- package/lib/icons/MoneyReceiveIcon.js +4 -0
- package/lib/icons/OdooIcon.d.ts +6 -0
- package/lib/icons/OdooIcon.js +6 -0
- package/lib/icons/PinIcon.d.ts +4 -0
- package/lib/icons/PinIcon.js +4 -0
- package/lib/icons/PrinterIcon.d.ts +4 -0
- package/lib/icons/PrinterIcon.js +4 -0
- package/lib/icons/ProfileIcon.d.ts +4 -0
- package/lib/icons/ProfileIcon.js +4 -0
- package/lib/icons/SettingsIcon.d.ts +4 -0
- package/lib/icons/SettingsIcon.js +4 -0
- package/lib/icons/SinpeIcon.d.ts +4 -0
- package/lib/icons/SinpeIcon.js +4 -0
- package/lib/icons/ToggleOffIcon.d.ts +4 -0
- package/lib/icons/ToggleOffIcon.js +4 -0
- package/lib/icons/WalletMoneyIcon.d.ts +4 -0
- package/lib/icons/WalletMoneyIcon.js +4 -0
- package/lib/icons/icon_getters.d.ts +6 -0
- package/lib/icons/icon_getters.js +23 -0
- package/lib/icons/props.d.ts +4 -0
- package/lib/icons/props.js +1 -0
- package/lib/index.d.ts +20 -0
- package/lib/index.js +26 -0
- package/lib/layouts/AuthContainer.d.ts +9 -0
- package/lib/layouts/AuthContainer.js +13 -0
- package/lib/layouts/Container.d.ts +14 -0
- package/lib/layouts/Container.js +9 -0
- package/lib/layouts/GradientContainer.d.ts +8 -0
- package/lib/layouts/GradientContainer.js +8 -0
- package/lib/layouts/PlainLayout.d.ts +6 -0
- package/lib/layouts/PlainLayout.js +8 -0
- package/lib/layouts/ScrollContainer.d.ts +8 -0
- package/lib/layouts/ScrollContainer.js +8 -0
- package/lib/layouts/TabNavigatorLayout.d.ts +26 -0
- package/lib/layouts/TabNavigatorLayout.js +56 -0
- package/lib/notifications/index.d.ts +1 -0
- package/lib/notifications/index.js +1 -0
- package/lib/primitives/BaseButton.d.ts +146 -0
- package/lib/primitives/BaseButton.js +233 -0
- package/lib/primitives/Box.d.ts +7 -0
- package/lib/primitives/Box.js +8 -0
- package/lib/primitives/Row.d.ts +11 -0
- package/lib/primitives/Row.js +22 -0
- package/lib/primitives/Stack.d.ts +9 -0
- package/lib/primitives/Stack.js +14 -0
- package/lib/primitives/index.d.ts +3 -0
- package/lib/primitives/index.js +3 -0
- package/lib/providers/index.d.ts +0 -0
- package/lib/providers/index.js +2 -0
- package/lib/tailwind.preset.js +146 -0
- package/lib/theme/active.d.ts +3 -0
- package/lib/theme/active.js +8 -0
- package/lib/theme/components/ThemedActivityIndicator.d.ts +21 -0
- package/lib/theme/components/ThemedActivityIndicator.js +5 -0
- package/lib/theme/components/index.d.ts +9 -0
- package/lib/theme/components/index.js +9 -0
- package/lib/theme/css-vars.d.ts +7 -0
- package/lib/theme/css-vars.js +64 -0
- package/lib/theme/default.d.ts +2 -0
- package/lib/theme/default.js +79 -0
- package/lib/theme/define.d.ts +18 -0
- package/lib/theme/define.js +34 -0
- package/lib/theme/index.d.ts +7 -0
- package/lib/theme/index.js +6 -0
- package/lib/theme/theme.d.ts +13 -0
- package/lib/theme/theme.js +14 -0
- package/lib/theme/tw.d.ts +10 -0
- package/lib/theme/tw.js +14 -0
- package/lib/theme/types.d.ts +92 -0
- package/lib/theme/types.js +9 -0
- package/lib/theme/typography.d.ts +376 -0
- package/lib/theme/typography.js +234 -0
- package/lib/theme/useTheme.d.ts +1 -0
- package/lib/theme/useTheme.js +2 -0
- package/lib/utils/date.d.ts +70 -0
- package/lib/utils/date.js +126 -0
- package/lib/utils/icon.d.ts +1 -0
- package/lib/utils/icon.js +1 -0
- package/lib/utils/monetary.d.ts +3 -0
- package/lib/utils/monetary.js +31 -0
- package/lib/utils/quantity.d.ts +11 -0
- package/lib/utils/quantity.js +44 -0
- package/lib/utils/serializer.d.ts +2 -0
- package/lib/utils/serializer.js +44 -0
- package/lib/utils/timezone.d.ts +4 -0
- package/lib/utils/timezone.js +1 -0
- package/lib/views/AuthFormView.d.ts +11 -0
- package/lib/views/AuthFormView.js +21 -0
- package/lib/views/FormViewV2.context.d.ts +32 -0
- package/lib/views/FormViewV2.context.js +28 -0
- package/lib/views/FormViewV2.d.ts +62 -0
- package/lib/views/FormViewV2.js +85 -0
- package/lib/views/ListViewV2.context.d.ts +36 -0
- package/lib/views/ListViewV2.context.js +30 -0
- package/lib/views/ListViewV2.d.ts +131 -0
- package/lib/views/ListViewV2.js +206 -0
- package/lib/views/Wizard/Wizard.context.d.ts +26 -0
- package/lib/views/Wizard/Wizard.context.js +92 -0
- package/lib/views/Wizard/Wizard.d.ts +33 -0
- package/lib/views/Wizard/Wizard.js +86 -0
- package/lib/views/Wizard/index.d.ts +4 -0
- package/lib/views/Wizard/index.js +2 -0
- package/lib/views/types/IFormView.d.ts +22 -0
- package/lib/views/types/IFormView.js +1 -0
- package/lib/views/types/IListView.d.ts +34 -0
- package/lib/views/types/IListView.js +35 -0
- package/lib/views/types/UIItem.d.ts +21 -0
- package/lib/views/types/UIItem.js +1 -0
- package/lib/widgets/CircleButton.d.ts +15 -0
- package/lib/widgets/CircleButton.js +37 -0
- package/lib/widgets/GeoPermissionCard.d.ts +8 -0
- package/lib/widgets/GeoPermissionCard.js +19 -0
- package/lib/widgets/HomeHeader.d.ts +11 -0
- package/lib/widgets/HomeHeader.js +9 -0
- package/lib/widgets/JSONViewer.d.ts +4 -0
- package/lib/widgets/JSONViewer.js +146 -0
- package/lib/widgets/MenuCard.d.ts +13 -0
- package/lib/widgets/MenuCard.js +8 -0
- package/lib/widgets/MenuGrid.d.ts +17 -0
- package/lib/widgets/MenuGrid.js +6 -0
- package/lib/widgets/ScreenHeader.d.ts +21 -0
- package/lib/widgets/ScreenHeader.js +21 -0
- package/lib/widgets/TimeZoneSelector.d.ts +7 -0
- package/lib/widgets/TimeZoneSelector.js +19 -0
- package/lib/widgets/TimeZoneSelectorModal.d.ts +9 -0
- package/lib/widgets/TimeZoneSelectorModal.js +57 -0
- package/lib/widgets/index.d.ts +7 -0
- package/lib/widgets/index.js +6 -0
- package/package.json +23 -211
- package/lib/module/Dialog/BottomSheet/BottomSheet.Root.js +0 -481
- package/lib/module/Dialog/BottomSheet/BottomSheet.Root.js.map +0 -1
- package/lib/module/Dialog/BottomSheet/index.js +0 -4
- package/lib/module/Dialog/BottomSheet/index.js.map +0 -1
- package/lib/module/Dialog/Confirmation.context.js +0 -108
- package/lib/module/Dialog/Confirmation.context.js.map +0 -1
- package/lib/module/Dialog/Dialog.Confirmation.js +0 -69
- package/lib/module/Dialog/Dialog.Confirmation.js.map +0 -1
- package/lib/module/Dialog/Dialog.EditValue.js +0 -115
- package/lib/module/Dialog/Dialog.EditValue.js.map +0 -1
- package/lib/module/Dialog/index.js +0 -14
- package/lib/module/Dialog/index.js.map +0 -1
- package/lib/module/Display/Display.Avatar.js +0 -58
- package/lib/module/Display/Display.Avatar.js.map +0 -1
- package/lib/module/Display/Display.Badge.js +0 -72
- package/lib/module/Display/Display.Badge.js.map +0 -1
- package/lib/module/Display/Display.CopyableText.js +0 -30
- package/lib/module/Display/Display.CopyableText.js.map +0 -1
- package/lib/module/Display/Display.CountRecords.js +0 -27
- package/lib/module/Display/Display.CountRecords.js.map +0 -1
- package/lib/module/Display/Display.Date.js +0 -35
- package/lib/module/Display/Display.Date.js.map +0 -1
- package/lib/module/Display/Display.Divider.js +0 -43
- package/lib/module/Display/Display.Divider.js.map +0 -1
- package/lib/module/Display/Display.Icon.js +0 -83
- package/lib/module/Display/Display.Icon.js.map +0 -1
- package/lib/module/Display/Display.Logo.js +0 -54
- package/lib/module/Display/Display.Logo.js.map +0 -1
- package/lib/module/Display/Display.MenuButton.js +0 -101
- package/lib/module/Display/Display.MenuButton.js.map +0 -1
- package/lib/module/Display/Display.Monetary.js +0 -36
- package/lib/module/Display/Display.Monetary.js.map +0 -1
- package/lib/module/Display/index.js +0 -28
- package/lib/module/Display/index.js.map +0 -1
- package/lib/module/Feedback/ErrorBoundary.js +0 -43
- package/lib/module/Feedback/ErrorBoundary.js.map +0 -1
- package/lib/module/Feedback/Feedback.DomainSplashScreen.js +0 -101
- package/lib/module/Feedback/Feedback.DomainSplashScreen.js.map +0 -1
- package/lib/module/Feedback/Feedback.Empty.js +0 -31
- package/lib/module/Feedback/Feedback.Empty.js.map +0 -1
- package/lib/module/Feedback/Feedback.Error.js +0 -53
- package/lib/module/Feedback/Feedback.Error.js.map +0 -1
- package/lib/module/Feedback/Feedback.Loading.js +0 -24
- package/lib/module/Feedback/Feedback.Loading.js.map +0 -1
- package/lib/module/Feedback/Feedback.Spinner.js +0 -28
- package/lib/module/Feedback/Feedback.Spinner.js.map +0 -1
- package/lib/module/Feedback/Feedback.Splash.js +0 -59
- package/lib/module/Feedback/Feedback.Splash.js.map +0 -1
- package/lib/module/Feedback/index.js +0 -17
- package/lib/module/Feedback/index.js.map +0 -1
- package/lib/module/Form/Form.Button.js +0 -442
- package/lib/module/Form/Form.Button.js.map +0 -1
- package/lib/module/Form/Form.Checkbox.js +0 -71
- package/lib/module/Form/Form.Checkbox.js.map +0 -1
- package/lib/module/Form/Form.ControlledCheckbox.js +0 -29
- package/lib/module/Form/Form.ControlledCheckbox.js.map +0 -1
- package/lib/module/Form/Form.ControlledDropdown.js +0 -7
- package/lib/module/Form/Form.ControlledDropdown.js.map +0 -1
- package/lib/module/Form/Form.ControlledInput.js +0 -43
- package/lib/module/Form/Form.ControlledInput.js.map +0 -1
- package/lib/module/Form/Form.ControlledMonetaryInput.js +0 -34
- package/lib/module/Form/Form.ControlledMonetaryInput.js.map +0 -1
- package/lib/module/Form/Form.ControlledRadioButton.js +0 -28
- package/lib/module/Form/Form.ControlledRadioButton.js.map +0 -1
- package/lib/module/Form/Form.Dropdown.js +0 -163
- package/lib/module/Form/Form.Dropdown.js.map +0 -1
- package/lib/module/Form/Form.FilterButton.js +0 -59
- package/lib/module/Form/Form.FilterButton.js.map +0 -1
- package/lib/module/Form/Form.FractionalQuantityInput.js +0 -166
- package/lib/module/Form/Form.FractionalQuantityInput.js.map +0 -1
- package/lib/module/Form/Form.IconButton.js +0 -97
- package/lib/module/Form/Form.IconButton.js.map +0 -1
- package/lib/module/Form/Form.Input.js +0 -77
- package/lib/module/Form/Form.Input.js.map +0 -1
- package/lib/module/Form/Form.InputField.js +0 -63
- package/lib/module/Form/Form.InputField.js.map +0 -1
- package/lib/module/Form/Form.MonetaryInput.js +0 -65
- package/lib/module/Form/Form.MonetaryInput.js.map +0 -1
- package/lib/module/Form/Form.PasswordInput.js +0 -37
- package/lib/module/Form/Form.PasswordInput.js.map +0 -1
- package/lib/module/Form/Form.QuantitySelector.js +0 -78
- package/lib/module/Form/Form.QuantitySelector.js.map +0 -1
- package/lib/module/Form/Form.RadioButton.js +0 -56
- package/lib/module/Form/Form.RadioButton.js.map +0 -1
- package/lib/module/Form/Form.SearchBar.js +0 -63
- package/lib/module/Form/Form.SearchBar.js.map +0 -1
- package/lib/module/Form/Form.TextInput.js +0 -19
- package/lib/module/Form/Form.TextInput.js.map +0 -1
- package/lib/module/Form/index.js +0 -45
- package/lib/module/Form/index.js.map +0 -1
- package/lib/module/Navigation/Navigation.Header.js +0 -46
- package/lib/module/Navigation/Navigation.Header.js.map +0 -1
- package/lib/module/Navigation/Navigation.HeaderToolbar.js +0 -79
- package/lib/module/Navigation/Navigation.HeaderToolbar.js.map +0 -1
- package/lib/module/Navigation/Navigation.RowItem.js +0 -35
- package/lib/module/Navigation/Navigation.RowItem.js.map +0 -1
- package/lib/module/Navigation/Navigation.TabIcon.js +0 -28
- package/lib/module/Navigation/Navigation.TabIcon.js.map +0 -1
- package/lib/module/Navigation/Navigation.TabItem.js +0 -27
- package/lib/module/Navigation/Navigation.TabItem.js.map +0 -1
- package/lib/module/Navigation/index.js +0 -16
- package/lib/module/Navigation/index.js.map +0 -1
- package/lib/module/Typography/Typography.Heading.js +0 -15
- package/lib/module/Typography/Typography.Heading.js.map +0 -1
- package/lib/module/Typography/Typography.Text.js +0 -51
- package/lib/module/Typography/Typography.Text.js.map +0 -1
- package/lib/module/Typography/index.js +0 -11
- package/lib/module/Typography/index.js.map +0 -1
- package/lib/module/icons/AddItemIcon.js +0 -53
- package/lib/module/icons/AddItemIcon.js.map +0 -1
- package/lib/module/icons/ArrangeCircle.js +0 -50
- package/lib/module/icons/ArrangeCircle.js.map +0 -1
- package/lib/module/icons/ArrowDownIcon.js +0 -37
- package/lib/module/icons/ArrowDownIcon.js.map +0 -1
- package/lib/module/icons/ArrowUpIcon.js +0 -37
- package/lib/module/icons/ArrowUpIcon.js.map +0 -1
- package/lib/module/icons/BoxIcon.js +0 -35
- package/lib/module/icons/BoxIcon.js.map +0 -1
- package/lib/module/icons/BoxTimeIcon.js +0 -29
- package/lib/module/icons/BoxTimeIcon.js.map +0 -1
- package/lib/module/icons/CalendarIcon.js +0 -81
- package/lib/module/icons/CalendarIcon.js.map +0 -1
- package/lib/module/icons/CardIcon.js +0 -46
- package/lib/module/icons/CardIcon.js.map +0 -1
- package/lib/module/icons/CashierIcon.js +0 -20
- package/lib/module/icons/CashierIcon.js.map +0 -1
- package/lib/module/icons/CreditIcon.js +0 -43
- package/lib/module/icons/CreditIcon.js.map +0 -1
- package/lib/module/icons/DuoIcon.js +0 -41
- package/lib/module/icons/DuoIcon.js.map +0 -1
- package/lib/module/icons/HomeIcon.js +0 -20
- package/lib/module/icons/HomeIcon.js.map +0 -1
- package/lib/module/icons/HomeIconOutlined.js +0 -29
- package/lib/module/icons/HomeIconOutlined.js.map +0 -1
- package/lib/module/icons/LogoIcon.js +0 -38
- package/lib/module/icons/LogoIcon.js.map +0 -1
- package/lib/module/icons/MoneyReceiveIcon.js +0 -47
- package/lib/module/icons/MoneyReceiveIcon.js.map +0 -1
- package/lib/module/icons/OdooIcon.js +0 -24
- package/lib/module/icons/OdooIcon.js.map +0 -1
- package/lib/module/icons/PinIcon.js +0 -20
- package/lib/module/icons/PinIcon.js.map +0 -1
- package/lib/module/icons/PrinterIcon.js +0 -48
- package/lib/module/icons/PrinterIcon.js.map +0 -1
- package/lib/module/icons/ProfileIcon.js +0 -23
- package/lib/module/icons/ProfileIcon.js.map +0 -1
- package/lib/module/icons/SettingsIcon.js +0 -65
- package/lib/module/icons/SettingsIcon.js.map +0 -1
- package/lib/module/icons/SinpeIcon.js +0 -37
- package/lib/module/icons/SinpeIcon.js.map +0 -1
- package/lib/module/icons/ToggleOffIcon.js +0 -29
- package/lib/module/icons/ToggleOffIcon.js.map +0 -1
- package/lib/module/icons/WalletMoneyIcon.js +0 -42
- package/lib/module/icons/WalletMoneyIcon.js.map +0 -1
- package/lib/module/icons/icon_getters.js +0 -53
- package/lib/module/icons/icon_getters.js.map +0 -1
- package/lib/module/icons/props.js +0 -2
- package/lib/module/icons/props.js.map +0 -1
- package/lib/module/index.js +0 -34
- package/lib/module/index.js.map +0 -1
- package/lib/module/layouts/AuthContainer.js +0 -66
- package/lib/module/layouts/AuthContainer.js.map +0 -1
- package/lib/module/layouts/Container.js +0 -31
- package/lib/module/layouts/Container.js.map +0 -1
- package/lib/module/layouts/GradientContainer.js +0 -20
- package/lib/module/layouts/GradientContainer.js.map +0 -1
- package/lib/module/layouts/PlainLayout.js +0 -16
- package/lib/module/layouts/PlainLayout.js.map +0 -1
- package/lib/module/layouts/ScrollContainer.js +0 -37
- package/lib/module/layouts/ScrollContainer.js.map +0 -1
- package/lib/module/layouts/TabNavigatorLayout.js +0 -132
- package/lib/module/layouts/TabNavigatorLayout.js.map +0 -1
- package/lib/module/lib/date.js +0 -127
- package/lib/module/lib/date.js.map +0 -1
- package/lib/module/lib/icon.js +0 -2
- package/lib/module/lib/icon.js.map +0 -1
- package/lib/module/lib/monetary.js +0 -31
- package/lib/module/lib/monetary.js.map +0 -1
- package/lib/module/lib/quantity.js +0 -46
- package/lib/module/lib/quantity.js.map +0 -1
- package/lib/module/lib/serializer.js +0 -47
- package/lib/module/lib/serializer.js.map +0 -1
- package/lib/module/lib/timezone.js +0 -2
- package/lib/module/lib/timezone.js.map +0 -1
- package/lib/module/nativewind-env.d.js +0 -3
- package/lib/module/nativewind-env.d.js.map +0 -1
- package/lib/module/notifications/index.js +0 -5
- package/lib/module/notifications/index.js.map +0 -1
- package/lib/module/package.json +0 -1
- package/lib/module/primitives/BaseButton.js +0 -391
- package/lib/module/primitives/BaseButton.js.map +0 -1
- package/lib/module/primitives/Box.js +0 -19
- package/lib/module/primitives/Box.js.map +0 -1
- package/lib/module/primitives/Row.js +0 -37
- package/lib/module/primitives/Row.js.map +0 -1
- package/lib/module/primitives/Stack.js +0 -27
- package/lib/module/primitives/Stack.js.map +0 -1
- package/lib/module/primitives/index.js +0 -6
- package/lib/module/primitives/index.js.map +0 -1
- package/lib/module/providers/index.js +0 -3
- package/lib/module/providers/index.js.map +0 -1
- package/lib/module/theme/active.js +0 -13
- package/lib/module/theme/active.js.map +0 -1
- package/lib/module/theme/components/ThemedActivityIndicator.js +0 -30
- package/lib/module/theme/components/ThemedActivityIndicator.js.map +0 -1
- package/lib/module/theme/components/index.js +0 -13
- package/lib/module/theme/components/index.js.map +0 -1
- package/lib/module/theme/default.js +0 -91
- package/lib/module/theme/default.js.map +0 -1
- package/lib/module/theme/index.js +0 -6
- package/lib/module/theme/index.js.map +0 -1
- package/lib/module/theme/theme.js +0 -18
- package/lib/module/theme/theme.js.map +0 -1
- package/lib/module/theme/tw.js +0 -19
- package/lib/module/theme/tw.js.map +0 -1
- package/lib/module/theme/types.js +0 -2
- package/lib/module/theme/types.js.map +0 -1
- package/lib/module/theme/typography.js +0 -246
- package/lib/module/theme/typography.js.map +0 -1
- package/lib/module/theme/useTheme.js +0 -5
- package/lib/module/theme/useTheme.js.map +0 -1
- package/lib/module/views/AuthFormView.js +0 -46
- package/lib/module/views/AuthFormView.js.map +0 -1
- package/lib/module/views/FormViewV2.context.js +0 -47
- package/lib/module/views/FormViewV2.context.js.map +0 -1
- package/lib/module/views/FormViewV2.js +0 -220
- package/lib/module/views/FormViewV2.js.map +0 -1
- package/lib/module/views/ListViewV2.context.js +0 -51
- package/lib/module/views/ListViewV2.context.js.map +0 -1
- package/lib/module/views/ListViewV2.js +0 -503
- package/lib/module/views/ListViewV2.js.map +0 -1
- package/lib/module/views/Wizard/Wizard.context.js +0 -111
- package/lib/module/views/Wizard/Wizard.context.js.map +0 -1
- package/lib/module/views/Wizard/Wizard.js +0 -125
- package/lib/module/views/Wizard/Wizard.js.map +0 -1
- package/lib/module/views/Wizard/index.js +0 -5
- package/lib/module/views/Wizard/index.js.map +0 -1
- package/lib/module/views/types/IFormView.js +0 -4
- package/lib/module/views/types/IFormView.js.map +0 -1
- package/lib/module/views/types/IListView.js +0 -40
- package/lib/module/views/types/IListView.js.map +0 -1
- package/lib/module/views/types/UIItem.js +0 -2
- package/lib/module/views/types/UIItem.js.map +0 -1
- package/lib/module/widgets/CircleButton.js +0 -70
- package/lib/module/widgets/CircleButton.js.map +0 -1
- package/lib/module/widgets/GeoPermissionCard.js +0 -55
- package/lib/module/widgets/GeoPermissionCard.js.map +0 -1
- package/lib/module/widgets/HomeHeader.js +0 -42
- package/lib/module/widgets/HomeHeader.js.map +0 -1
- package/lib/module/widgets/JSONViewer.js +0 -196
- package/lib/module/widgets/JSONViewer.js.map +0 -1
- package/lib/module/widgets/MenuCard.js +0 -32
- package/lib/module/widgets/MenuCard.js.map +0 -1
- package/lib/module/widgets/MenuGrid.js +0 -20
- package/lib/module/widgets/MenuGrid.js.map +0 -1
- package/lib/module/widgets/ScreenHeader.js +0 -63
- package/lib/module/widgets/ScreenHeader.js.map +0 -1
- package/lib/module/widgets/TimeZoneSelector.js +0 -73
- package/lib/module/widgets/TimeZoneSelector.js.map +0 -1
- package/lib/module/widgets/TimeZoneSelectorModal.js +0 -187
- package/lib/module/widgets/TimeZoneSelectorModal.js.map +0 -1
- package/lib/module/widgets/index.js +0 -9
- package/lib/module/widgets/index.js.map +0 -1
- package/lib/typescript/Dialog/BottomSheet/BottomSheet.Root.d.ts +0 -321
- package/lib/typescript/Dialog/BottomSheet/BottomSheet.Root.d.ts.map +0 -1
- package/lib/typescript/Dialog/BottomSheet/index.d.ts +0 -2
- package/lib/typescript/Dialog/BottomSheet/index.d.ts.map +0 -1
- package/lib/typescript/Dialog/Confirmation.context.d.ts +0 -22
- package/lib/typescript/Dialog/Confirmation.context.d.ts.map +0 -1
- package/lib/typescript/Dialog/Dialog.Confirmation.d.ts +0 -13
- package/lib/typescript/Dialog/Dialog.Confirmation.d.ts.map +0 -1
- package/lib/typescript/Dialog/Dialog.EditValue.d.ts +0 -26
- package/lib/typescript/Dialog/Dialog.EditValue.d.ts.map +0 -1
- package/lib/typescript/Dialog/index.d.ts +0 -20
- package/lib/typescript/Dialog/index.d.ts.map +0 -1
- package/lib/typescript/Display/Display.Avatar.d.ts +0 -53
- package/lib/typescript/Display/Display.Avatar.d.ts.map +0 -1
- package/lib/typescript/Display/Display.Badge.d.ts +0 -109
- package/lib/typescript/Display/Display.Badge.d.ts.map +0 -1
- package/lib/typescript/Display/Display.CopyableText.d.ts +0 -14
- package/lib/typescript/Display/Display.CopyableText.d.ts.map +0 -1
- package/lib/typescript/Display/Display.CountRecords.d.ts +0 -9
- package/lib/typescript/Display/Display.CountRecords.d.ts.map +0 -1
- package/lib/typescript/Display/Display.Date.d.ts +0 -19
- package/lib/typescript/Display/Display.Date.d.ts.map +0 -1
- package/lib/typescript/Display/Display.Divider.d.ts +0 -45
- package/lib/typescript/Display/Display.Divider.d.ts.map +0 -1
- package/lib/typescript/Display/Display.Icon.d.ts +0 -16
- package/lib/typescript/Display/Display.Icon.d.ts.map +0 -1
- package/lib/typescript/Display/Display.Logo.d.ts +0 -56
- package/lib/typescript/Display/Display.Logo.d.ts.map +0 -1
- package/lib/typescript/Display/Display.MenuButton.d.ts +0 -104
- package/lib/typescript/Display/Display.MenuButton.d.ts.map +0 -1
- package/lib/typescript/Display/Display.Monetary.d.ts +0 -20
- package/lib/typescript/Display/Display.Monetary.d.ts.map +0 -1
- package/lib/typescript/Display/index.d.ts +0 -23
- package/lib/typescript/Display/index.d.ts.map +0 -1
- package/lib/typescript/Feedback/ErrorBoundary.d.ts +0 -19
- package/lib/typescript/Feedback/ErrorBoundary.d.ts.map +0 -1
- package/lib/typescript/Feedback/Feedback.DomainSplashScreen.d.ts +0 -12
- package/lib/typescript/Feedback/Feedback.DomainSplashScreen.d.ts.map +0 -1
- package/lib/typescript/Feedback/Feedback.Empty.d.ts +0 -7
- package/lib/typescript/Feedback/Feedback.Empty.d.ts.map +0 -1
- package/lib/typescript/Feedback/Feedback.Error.d.ts +0 -10
- package/lib/typescript/Feedback/Feedback.Error.d.ts.map +0 -1
- package/lib/typescript/Feedback/Feedback.Loading.d.ts +0 -10
- package/lib/typescript/Feedback/Feedback.Loading.d.ts.map +0 -1
- package/lib/typescript/Feedback/Feedback.Spinner.d.ts +0 -12
- package/lib/typescript/Feedback/Feedback.Spinner.d.ts.map +0 -1
- package/lib/typescript/Feedback/Feedback.Splash.d.ts +0 -12
- package/lib/typescript/Feedback/Feedback.Splash.d.ts.map +0 -1
- package/lib/typescript/Feedback/index.d.ts +0 -14
- package/lib/typescript/Feedback/index.d.ts.map +0 -1
- package/lib/typescript/Form/Form.Button.d.ts +0 -146
- package/lib/typescript/Form/Form.Button.d.ts.map +0 -1
- package/lib/typescript/Form/Form.Checkbox.d.ts +0 -14
- package/lib/typescript/Form/Form.Checkbox.d.ts.map +0 -1
- package/lib/typescript/Form/Form.ControlledCheckbox.d.ts +0 -10
- package/lib/typescript/Form/Form.ControlledCheckbox.d.ts.map +0 -1
- package/lib/typescript/Form/Form.ControlledDropdown.d.ts +0 -15
- package/lib/typescript/Form/Form.ControlledDropdown.d.ts.map +0 -1
- package/lib/typescript/Form/Form.ControlledInput.d.ts +0 -16
- package/lib/typescript/Form/Form.ControlledInput.d.ts.map +0 -1
- package/lib/typescript/Form/Form.ControlledMonetaryInput.d.ts +0 -13
- package/lib/typescript/Form/Form.ControlledMonetaryInput.d.ts.map +0 -1
- package/lib/typescript/Form/Form.ControlledRadioButton.d.ts +0 -10
- package/lib/typescript/Form/Form.ControlledRadioButton.d.ts.map +0 -1
- package/lib/typescript/Form/Form.Dropdown.d.ts +0 -15
- package/lib/typescript/Form/Form.Dropdown.d.ts.map +0 -1
- package/lib/typescript/Form/Form.FilterButton.d.ts +0 -13
- package/lib/typescript/Form/Form.FilterButton.d.ts.map +0 -1
- package/lib/typescript/Form/Form.FractionalQuantityInput.d.ts +0 -14
- package/lib/typescript/Form/Form.FractionalQuantityInput.d.ts.map +0 -1
- package/lib/typescript/Form/Form.IconButton.d.ts +0 -68
- package/lib/typescript/Form/Form.IconButton.d.ts.map +0 -1
- package/lib/typescript/Form/Form.Input.d.ts +0 -11
- package/lib/typescript/Form/Form.Input.d.ts.map +0 -1
- package/lib/typescript/Form/Form.InputField.d.ts +0 -11
- package/lib/typescript/Form/Form.InputField.d.ts.map +0 -1
- package/lib/typescript/Form/Form.MonetaryInput.d.ts +0 -9
- package/lib/typescript/Form/Form.MonetaryInput.d.ts.map +0 -1
- package/lib/typescript/Form/Form.PasswordInput.d.ts +0 -10
- package/lib/typescript/Form/Form.PasswordInput.d.ts.map +0 -1
- package/lib/typescript/Form/Form.QuantitySelector.d.ts +0 -12
- package/lib/typescript/Form/Form.QuantitySelector.d.ts.map +0 -1
- package/lib/typescript/Form/Form.RadioButton.d.ts +0 -8
- package/lib/typescript/Form/Form.RadioButton.d.ts.map +0 -1
- package/lib/typescript/Form/Form.SearchBar.d.ts +0 -10
- package/lib/typescript/Form/Form.SearchBar.d.ts.map +0 -1
- package/lib/typescript/Form/Form.TextInput.d.ts +0 -9
- package/lib/typescript/Form/Form.TextInput.d.ts.map +0 -1
- package/lib/typescript/Form/index.d.ts +0 -42
- package/lib/typescript/Form/index.d.ts.map +0 -1
- package/lib/typescript/Navigation/Navigation.Header.d.ts +0 -11
- package/lib/typescript/Navigation/Navigation.Header.d.ts.map +0 -1
- package/lib/typescript/Navigation/Navigation.HeaderToolbar.d.ts +0 -16
- package/lib/typescript/Navigation/Navigation.HeaderToolbar.d.ts.map +0 -1
- package/lib/typescript/Navigation/Navigation.RowItem.d.ts +0 -6
- package/lib/typescript/Navigation/Navigation.RowItem.d.ts.map +0 -1
- package/lib/typescript/Navigation/Navigation.TabIcon.d.ts +0 -15
- package/lib/typescript/Navigation/Navigation.TabIcon.d.ts.map +0 -1
- package/lib/typescript/Navigation/Navigation.TabItem.d.ts +0 -15
- package/lib/typescript/Navigation/Navigation.TabItem.d.ts.map +0 -1
- package/lib/typescript/Navigation/index.d.ts +0 -12
- package/lib/typescript/Navigation/index.d.ts.map +0 -1
- package/lib/typescript/Typography/Typography.Heading.d.ts +0 -13
- package/lib/typescript/Typography/Typography.Heading.d.ts.map +0 -1
- package/lib/typescript/Typography/Typography.Text.d.ts +0 -29
- package/lib/typescript/Typography/Typography.Text.d.ts.map +0 -1
- package/lib/typescript/Typography/index.d.ts +0 -8
- package/lib/typescript/Typography/index.d.ts.map +0 -1
- package/lib/typescript/icons/AddItemIcon.d.ts +0 -5
- package/lib/typescript/icons/AddItemIcon.d.ts.map +0 -1
- package/lib/typescript/icons/ArrangeCircle.d.ts +0 -5
- package/lib/typescript/icons/ArrangeCircle.d.ts.map +0 -1
- package/lib/typescript/icons/ArrowDownIcon.d.ts +0 -5
- package/lib/typescript/icons/ArrowDownIcon.d.ts.map +0 -1
- package/lib/typescript/icons/ArrowUpIcon.d.ts +0 -5
- package/lib/typescript/icons/ArrowUpIcon.d.ts.map +0 -1
- package/lib/typescript/icons/BoxIcon.d.ts +0 -5
- package/lib/typescript/icons/BoxIcon.d.ts.map +0 -1
- package/lib/typescript/icons/BoxTimeIcon.d.ts +0 -5
- package/lib/typescript/icons/BoxTimeIcon.d.ts.map +0 -1
- package/lib/typescript/icons/CalendarIcon.d.ts +0 -5
- package/lib/typescript/icons/CalendarIcon.d.ts.map +0 -1
- package/lib/typescript/icons/CardIcon.d.ts +0 -5
- package/lib/typescript/icons/CardIcon.d.ts.map +0 -1
- package/lib/typescript/icons/CashierIcon.d.ts +0 -5
- package/lib/typescript/icons/CashierIcon.d.ts.map +0 -1
- package/lib/typescript/icons/CreditIcon.d.ts +0 -8
- package/lib/typescript/icons/CreditIcon.d.ts.map +0 -1
- package/lib/typescript/icons/DuoIcon.d.ts +0 -5
- package/lib/typescript/icons/DuoIcon.d.ts.map +0 -1
- package/lib/typescript/icons/HomeIcon.d.ts +0 -5
- package/lib/typescript/icons/HomeIcon.d.ts.map +0 -1
- package/lib/typescript/icons/HomeIconOutlined.d.ts +0 -5
- package/lib/typescript/icons/HomeIconOutlined.d.ts.map +0 -1
- package/lib/typescript/icons/LogoIcon.d.ts +0 -5
- package/lib/typescript/icons/LogoIcon.d.ts.map +0 -1
- package/lib/typescript/icons/MoneyReceiveIcon.d.ts +0 -5
- package/lib/typescript/icons/MoneyReceiveIcon.d.ts.map +0 -1
- package/lib/typescript/icons/OdooIcon.d.ts +0 -7
- package/lib/typescript/icons/OdooIcon.d.ts.map +0 -1
- package/lib/typescript/icons/PinIcon.d.ts +0 -5
- package/lib/typescript/icons/PinIcon.d.ts.map +0 -1
- package/lib/typescript/icons/PrinterIcon.d.ts +0 -5
- package/lib/typescript/icons/PrinterIcon.d.ts.map +0 -1
- package/lib/typescript/icons/ProfileIcon.d.ts +0 -5
- package/lib/typescript/icons/ProfileIcon.d.ts.map +0 -1
- package/lib/typescript/icons/SettingsIcon.d.ts +0 -5
- package/lib/typescript/icons/SettingsIcon.d.ts.map +0 -1
- package/lib/typescript/icons/SinpeIcon.d.ts +0 -5
- package/lib/typescript/icons/SinpeIcon.d.ts.map +0 -1
- package/lib/typescript/icons/ToggleOffIcon.d.ts +0 -5
- package/lib/typescript/icons/ToggleOffIcon.d.ts.map +0 -1
- package/lib/typescript/icons/WalletMoneyIcon.d.ts +0 -5
- package/lib/typescript/icons/WalletMoneyIcon.d.ts.map +0 -1
- package/lib/typescript/icons/icon_getters.d.ts +0 -7
- package/lib/typescript/icons/icon_getters.d.ts.map +0 -1
- package/lib/typescript/icons/props.d.ts +0 -5
- package/lib/typescript/icons/props.d.ts.map +0 -1
- package/lib/typescript/index.d.ts +0 -21
- package/lib/typescript/index.d.ts.map +0 -1
- package/lib/typescript/layouts/AuthContainer.d.ts +0 -10
- package/lib/typescript/layouts/AuthContainer.d.ts.map +0 -1
- package/lib/typescript/layouts/Container.d.ts +0 -15
- package/lib/typescript/layouts/Container.d.ts.map +0 -1
- package/lib/typescript/layouts/GradientContainer.d.ts +0 -9
- package/lib/typescript/layouts/GradientContainer.d.ts.map +0 -1
- package/lib/typescript/layouts/PlainLayout.d.ts +0 -7
- package/lib/typescript/layouts/PlainLayout.d.ts.map +0 -1
- package/lib/typescript/layouts/ScrollContainer.d.ts +0 -9
- package/lib/typescript/layouts/ScrollContainer.d.ts.map +0 -1
- package/lib/typescript/layouts/TabNavigatorLayout.d.ts +0 -27
- package/lib/typescript/layouts/TabNavigatorLayout.d.ts.map +0 -1
- package/lib/typescript/lib/date.d.ts +0 -71
- package/lib/typescript/lib/date.d.ts.map +0 -1
- package/lib/typescript/lib/icon.d.ts +0 -2
- package/lib/typescript/lib/icon.d.ts.map +0 -1
- package/lib/typescript/lib/monetary.d.ts +0 -4
- package/lib/typescript/lib/monetary.d.ts.map +0 -1
- package/lib/typescript/lib/quantity.d.ts +0 -12
- package/lib/typescript/lib/quantity.d.ts.map +0 -1
- package/lib/typescript/lib/serializer.d.ts +0 -3
- package/lib/typescript/lib/serializer.d.ts.map +0 -1
- package/lib/typescript/lib/timezone.d.ts +0 -5
- package/lib/typescript/lib/timezone.d.ts.map +0 -1
- package/lib/typescript/notifications/index.d.ts +0 -2
- package/lib/typescript/notifications/index.d.ts.map +0 -1
- package/lib/typescript/package.json +0 -1
- package/lib/typescript/primitives/BaseButton.d.ts +0 -147
- package/lib/typescript/primitives/BaseButton.d.ts.map +0 -1
- package/lib/typescript/primitives/Box.d.ts +0 -8
- package/lib/typescript/primitives/Box.d.ts.map +0 -1
- package/lib/typescript/primitives/Row.d.ts +0 -12
- package/lib/typescript/primitives/Row.d.ts.map +0 -1
- package/lib/typescript/primitives/Stack.d.ts +0 -10
- package/lib/typescript/primitives/Stack.d.ts.map +0 -1
- package/lib/typescript/primitives/index.d.ts +0 -4
- package/lib/typescript/primitives/index.d.ts.map +0 -1
- package/lib/typescript/providers/index.d.ts +0 -1
- package/lib/typescript/providers/index.d.ts.map +0 -1
- package/lib/typescript/theme/active.d.ts +0 -4
- package/lib/typescript/theme/active.d.ts.map +0 -1
- package/lib/typescript/theme/components/ThemedActivityIndicator.d.ts +0 -22
- package/lib/typescript/theme/components/ThemedActivityIndicator.d.ts.map +0 -1
- package/lib/typescript/theme/components/index.d.ts +0 -10
- package/lib/typescript/theme/components/index.d.ts.map +0 -1
- package/lib/typescript/theme/default.d.ts +0 -3
- package/lib/typescript/theme/default.d.ts.map +0 -1
- package/lib/typescript/theme/index.d.ts +0 -5
- package/lib/typescript/theme/index.d.ts.map +0 -1
- package/lib/typescript/theme/theme.d.ts +0 -14
- package/lib/typescript/theme/theme.d.ts.map +0 -1
- package/lib/typescript/theme/tw.d.ts +0 -11
- package/lib/typescript/theme/tw.d.ts.map +0 -1
- package/lib/typescript/theme/types.d.ts +0 -93
- package/lib/typescript/theme/types.d.ts.map +0 -1
- package/lib/typescript/theme/typography.d.ts +0 -377
- package/lib/typescript/theme/typography.d.ts.map +0 -1
- package/lib/typescript/theme/useTheme.d.ts +0 -2
- package/lib/typescript/theme/useTheme.d.ts.map +0 -1
- package/lib/typescript/views/AuthFormView.d.ts +0 -10
- package/lib/typescript/views/AuthFormView.d.ts.map +0 -1
- package/lib/typescript/views/FormViewV2.context.d.ts +0 -33
- package/lib/typescript/views/FormViewV2.context.d.ts.map +0 -1
- package/lib/typescript/views/FormViewV2.d.ts +0 -61
- package/lib/typescript/views/FormViewV2.d.ts.map +0 -1
- package/lib/typescript/views/ListViewV2.context.d.ts +0 -37
- package/lib/typescript/views/ListViewV2.context.d.ts.map +0 -1
- package/lib/typescript/views/ListViewV2.d.ts +0 -132
- package/lib/typescript/views/ListViewV2.d.ts.map +0 -1
- package/lib/typescript/views/Wizard/Wizard.context.d.ts +0 -27
- package/lib/typescript/views/Wizard/Wizard.context.d.ts.map +0 -1
- package/lib/typescript/views/Wizard/Wizard.d.ts +0 -34
- package/lib/typescript/views/Wizard/Wizard.d.ts.map +0 -1
- package/lib/typescript/views/Wizard/index.d.ts +0 -5
- package/lib/typescript/views/Wizard/index.d.ts.map +0 -1
- package/lib/typescript/views/types/IFormView.d.ts +0 -23
- package/lib/typescript/views/types/IFormView.d.ts.map +0 -1
- package/lib/typescript/views/types/IListView.d.ts +0 -35
- package/lib/typescript/views/types/IListView.d.ts.map +0 -1
- package/lib/typescript/views/types/UIItem.d.ts +0 -22
- package/lib/typescript/views/types/UIItem.d.ts.map +0 -1
- package/lib/typescript/widgets/CircleButton.d.ts +0 -16
- package/lib/typescript/widgets/CircleButton.d.ts.map +0 -1
- package/lib/typescript/widgets/GeoPermissionCard.d.ts +0 -9
- package/lib/typescript/widgets/GeoPermissionCard.d.ts.map +0 -1
- package/lib/typescript/widgets/HomeHeader.d.ts +0 -10
- package/lib/typescript/widgets/HomeHeader.d.ts.map +0 -1
- package/lib/typescript/widgets/JSONViewer.d.ts +0 -6
- package/lib/typescript/widgets/JSONViewer.d.ts.map +0 -1
- package/lib/typescript/widgets/MenuCard.d.ts +0 -14
- package/lib/typescript/widgets/MenuCard.d.ts.map +0 -1
- package/lib/typescript/widgets/MenuGrid.d.ts +0 -18
- package/lib/typescript/widgets/MenuGrid.d.ts.map +0 -1
- package/lib/typescript/widgets/ScreenHeader.d.ts +0 -20
- package/lib/typescript/widgets/ScreenHeader.d.ts.map +0 -1
- package/lib/typescript/widgets/TimeZoneSelector.d.ts +0 -8
- package/lib/typescript/widgets/TimeZoneSelector.d.ts.map +0 -1
- package/lib/typescript/widgets/TimeZoneSelectorModal.d.ts +0 -10
- package/lib/typescript/widgets/TimeZoneSelectorModal.d.ts.map +0 -1
- package/lib/typescript/widgets/index.d.ts +0 -8
- package/lib/typescript/widgets/index.d.ts.map +0 -1
- package/sincpro_mobile_ui/Dialog/BottomSheet/BottomSheet.Root.tsx +0 -509
- package/sincpro_mobile_ui/Dialog/BottomSheet/index.ts +0 -1
- package/sincpro_mobile_ui/Dialog/Confirmation.context.tsx +0 -148
- package/sincpro_mobile_ui/Dialog/Dialog.Confirmation.tsx +0 -68
- package/sincpro_mobile_ui/Dialog/Dialog.EditValue.tsx +0 -134
- package/sincpro_mobile_ui/Dialog/index.ts +0 -23
- package/sincpro_mobile_ui/Display/Display.Avatar.tsx +0 -60
- package/sincpro_mobile_ui/Display/Display.Badge.tsx +0 -72
- package/sincpro_mobile_ui/Display/Display.CopyableText.tsx +0 -38
- package/sincpro_mobile_ui/Display/Display.CountRecords.tsx +0 -26
- package/sincpro_mobile_ui/Display/Display.Date.tsx +0 -59
- package/sincpro_mobile_ui/Display/Display.Divider.tsx +0 -40
- package/sincpro_mobile_ui/Display/Display.Icon.tsx +0 -69
- package/sincpro_mobile_ui/Display/Display.Logo.tsx +0 -51
- package/sincpro_mobile_ui/Display/Display.MenuButton.tsx +0 -103
- package/sincpro_mobile_ui/Display/Display.Monetary.tsx +0 -60
- package/sincpro_mobile_ui/Display/index.ts +0 -28
- package/sincpro_mobile_ui/Feedback/ErrorBoundary.tsx +0 -51
- package/sincpro_mobile_ui/Feedback/Feedback.DomainSplashScreen.tsx +0 -135
- package/sincpro_mobile_ui/Feedback/Feedback.Empty.tsx +0 -29
- package/sincpro_mobile_ui/Feedback/Feedback.Error.tsx +0 -47
- package/sincpro_mobile_ui/Feedback/Feedback.Loading.tsx +0 -27
- package/sincpro_mobile_ui/Feedback/Feedback.Spinner.tsx +0 -34
- package/sincpro_mobile_ui/Feedback/Feedback.Splash.tsx +0 -68
- package/sincpro_mobile_ui/Feedback/index.ts +0 -17
- package/sincpro_mobile_ui/Form/Form.Button.tsx +0 -461
- package/sincpro_mobile_ui/Form/Form.Checkbox.tsx +0 -89
- package/sincpro_mobile_ui/Form/Form.ControlledCheckbox.tsx +0 -34
- package/sincpro_mobile_ui/Form/Form.ControlledDropdown.tsx +0 -22
- package/sincpro_mobile_ui/Form/Form.ControlledInput.tsx +0 -53
- package/sincpro_mobile_ui/Form/Form.ControlledMonetaryInput.tsx +0 -41
- package/sincpro_mobile_ui/Form/Form.ControlledRadioButton.tsx +0 -33
- package/sincpro_mobile_ui/Form/Form.Dropdown.tsx +0 -171
- package/sincpro_mobile_ui/Form/Form.FilterButton.tsx +0 -59
- package/sincpro_mobile_ui/Form/Form.FractionalQuantityInput.tsx +0 -190
- package/sincpro_mobile_ui/Form/Form.IconButton.tsx +0 -102
- package/sincpro_mobile_ui/Form/Form.Input.tsx +0 -88
- package/sincpro_mobile_ui/Form/Form.InputField.tsx +0 -66
- package/sincpro_mobile_ui/Form/Form.MonetaryInput.tsx +0 -66
- package/sincpro_mobile_ui/Form/Form.PasswordInput.tsx +0 -42
- package/sincpro_mobile_ui/Form/Form.QuantitySelector.tsx +0 -81
- package/sincpro_mobile_ui/Form/Form.RadioButton.tsx +0 -52
- package/sincpro_mobile_ui/Form/Form.SearchBar.tsx +0 -64
- package/sincpro_mobile_ui/Form/Form.TextInput.tsx +0 -26
- package/sincpro_mobile_ui/Form/index.ts +0 -46
- package/sincpro_mobile_ui/Navigation/Navigation.Header.tsx +0 -50
- package/sincpro_mobile_ui/Navigation/Navigation.HeaderToolbar.tsx +0 -111
- package/sincpro_mobile_ui/Navigation/Navigation.RowItem.tsx +0 -33
- package/sincpro_mobile_ui/Navigation/Navigation.TabIcon.tsx +0 -45
- package/sincpro_mobile_ui/Navigation/Navigation.TabItem.tsx +0 -43
- package/sincpro_mobile_ui/Navigation/index.ts +0 -15
- package/sincpro_mobile_ui/Typography/Typography.Heading.tsx +0 -20
- package/sincpro_mobile_ui/Typography/Typography.Text.tsx +0 -78
- package/sincpro_mobile_ui/Typography/index.ts +0 -11
- package/sincpro_mobile_ui/icons/AddItemIcon.tsx +0 -46
- package/sincpro_mobile_ui/icons/ArrangeCircle.tsx +0 -50
- package/sincpro_mobile_ui/icons/ArrowDownIcon.tsx +0 -33
- package/sincpro_mobile_ui/icons/ArrowUpIcon.tsx +0 -33
- package/sincpro_mobile_ui/icons/BoxIcon.tsx +0 -32
- package/sincpro_mobile_ui/icons/BoxTimeIcon.tsx +0 -27
- package/sincpro_mobile_ui/icons/CalendarIcon.tsx +0 -85
- package/sincpro_mobile_ui/icons/CardIcon.tsx +0 -44
- package/sincpro_mobile_ui/icons/CashierIcon.tsx +0 -15
- package/sincpro_mobile_ui/icons/CreditIcon.tsx +0 -44
- package/sincpro_mobile_ui/icons/DuoIcon.tsx +0 -39
- package/sincpro_mobile_ui/icons/HomeIcon.tsx +0 -15
- package/sincpro_mobile_ui/icons/HomeIconOutlined.tsx +0 -24
- package/sincpro_mobile_ui/icons/LogoIcon.tsx +0 -39
- package/sincpro_mobile_ui/icons/MoneyReceiveIcon.tsx +0 -46
- package/sincpro_mobile_ui/icons/OdooIcon.tsx +0 -23
- package/sincpro_mobile_ui/icons/PinIcon.tsx +0 -15
- package/sincpro_mobile_ui/icons/PrinterIcon.tsx +0 -46
- package/sincpro_mobile_ui/icons/ProfileIcon.tsx +0 -19
- package/sincpro_mobile_ui/icons/SettingsIcon.tsx +0 -66
- package/sincpro_mobile_ui/icons/SinpeIcon.tsx +0 -29
- package/sincpro_mobile_ui/icons/ToggleOffIcon.tsx +0 -25
- package/sincpro_mobile_ui/icons/WalletMoneyIcon.tsx +0 -41
- package/sincpro_mobile_ui/icons/icon_getters.tsx +0 -27
- package/sincpro_mobile_ui/icons/props.ts +0 -4
- package/sincpro_mobile_ui/index.ts +0 -38
- package/sincpro_mobile_ui/layouts/AuthContainer.tsx +0 -73
- package/sincpro_mobile_ui/layouts/Container.tsx +0 -40
- package/sincpro_mobile_ui/layouts/GradientContainer.tsx +0 -22
- package/sincpro_mobile_ui/layouts/PlainLayout.tsx +0 -14
- package/sincpro_mobile_ui/layouts/ScrollContainer.tsx +0 -37
- package/sincpro_mobile_ui/layouts/TabNavigatorLayout.tsx +0 -154
- package/sincpro_mobile_ui/lib/date.ts +0 -149
- package/sincpro_mobile_ui/lib/icon.ts +0 -10
- package/sincpro_mobile_ui/lib/monetary.ts +0 -33
- package/sincpro_mobile_ui/lib/quantity.ts +0 -52
- package/sincpro_mobile_ui/lib/serializer.ts +0 -59
- package/sincpro_mobile_ui/lib/timezone.ts +0 -4
- package/sincpro_mobile_ui/nativewind-env.d.ts +0 -1
- package/sincpro_mobile_ui/notifications/index.ts +0 -2
- package/sincpro_mobile_ui/primitives/BaseButton.tsx +0 -404
- package/sincpro_mobile_ui/primitives/Box.tsx +0 -14
- package/sincpro_mobile_ui/primitives/Row.tsx +0 -55
- package/sincpro_mobile_ui/primitives/Stack.tsx +0 -29
- package/sincpro_mobile_ui/primitives/index.ts +0 -3
- package/sincpro_mobile_ui/providers/index.ts +0 -1
- package/sincpro_mobile_ui/theme/active.ts +0 -12
- package/sincpro_mobile_ui/theme/components/ThemedActivityIndicator.tsx +0 -29
- package/sincpro_mobile_ui/theme/components/index.ts +0 -10
- package/sincpro_mobile_ui/theme/default.ts +0 -81
- package/sincpro_mobile_ui/theme/globals.css +0 -67
- package/sincpro_mobile_ui/theme/index.ts +0 -4
- package/sincpro_mobile_ui/theme/theme.ts +0 -16
- package/sincpro_mobile_ui/theme/tw.ts +0 -16
- package/sincpro_mobile_ui/theme/types.ts +0 -109
- package/sincpro_mobile_ui/theme/typography.ts +0 -271
- package/sincpro_mobile_ui/theme/useTheme.ts +0 -3
- package/sincpro_mobile_ui/views/AuthFormView.tsx +0 -46
- package/sincpro_mobile_ui/views/FormViewV2.context.tsx +0 -79
- package/sincpro_mobile_ui/views/FormViewV2.tsx +0 -248
- package/sincpro_mobile_ui/views/ListViewV2.context.tsx +0 -87
- package/sincpro_mobile_ui/views/ListViewV2.tsx +0 -575
- package/sincpro_mobile_ui/views/Wizard/Wizard.context.tsx +0 -164
- package/sincpro_mobile_ui/views/Wizard/Wizard.tsx +0 -147
- package/sincpro_mobile_ui/views/Wizard/index.ts +0 -11
- package/sincpro_mobile_ui/views/types/IFormView.ts +0 -24
- package/sincpro_mobile_ui/views/types/IListView.ts +0 -78
- package/sincpro_mobile_ui/views/types/UIItem.ts +0 -23
- package/sincpro_mobile_ui/widgets/CircleButton.tsx +0 -63
- package/sincpro_mobile_ui/widgets/GeoPermissionCard.tsx +0 -62
- package/sincpro_mobile_ui/widgets/HomeHeader.tsx +0 -50
- package/sincpro_mobile_ui/widgets/JSONViewer.tsx +0 -192
- package/sincpro_mobile_ui/widgets/MenuCard.tsx +0 -37
- package/sincpro_mobile_ui/widgets/MenuGrid.tsx +0 -33
- package/sincpro_mobile_ui/widgets/ScreenHeader.tsx +0 -72
- package/sincpro_mobile_ui/widgets/TimeZoneSelector.tsx +0 -83
- package/sincpro_mobile_ui/widgets/TimeZoneSelectorModal.tsx +0 -179
- package/sincpro_mobile_ui/widgets/index.ts +0 -7
- /package/lib/{module/theme → theme}/globals.css +0 -0
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { EVariantScreenHeader } from "../widgets/ScreenHeader";
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
|
+
import { StyleProp, ViewStyle } from "react-native";
|
|
4
|
+
interface ListViewProps<T> {
|
|
5
|
+
name: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
items: T[];
|
|
8
|
+
isLoading?: boolean;
|
|
9
|
+
hasError?: boolean;
|
|
10
|
+
errorMessage?: string;
|
|
11
|
+
readonly?: boolean;
|
|
12
|
+
onRefresh?: () => Promise<void>;
|
|
13
|
+
onRetry?: () => void;
|
|
14
|
+
onPressItem?: (item: T) => void;
|
|
15
|
+
onDeleteItem?: (item: T) => void;
|
|
16
|
+
onSearch?: (query: string) => void;
|
|
17
|
+
onBack?: () => void;
|
|
18
|
+
backgroundColor?: string;
|
|
19
|
+
withContainer?: boolean;
|
|
20
|
+
children: ReactNode;
|
|
21
|
+
}
|
|
22
|
+
declare function ListViewRoot<T>({ name, description, items, isLoading, hasError, errorMessage, readonly, onRefresh, onRetry, onPressItem, onDeleteItem, onSearch, onBack, backgroundColor, withContainer, children, }: ListViewProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
declare function Header({ variant, children, }: {
|
|
24
|
+
variant?: EVariantScreenHeader;
|
|
25
|
+
children?: ReactNode;
|
|
26
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
declare function HeaderSearch({ searchQuery }: {
|
|
28
|
+
searchQuery?: string;
|
|
29
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
30
|
+
declare function HeaderActions({ children }: {
|
|
31
|
+
children: ReactNode;
|
|
32
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
declare function HeaderFilters({ children }: {
|
|
34
|
+
children: ReactNode;
|
|
35
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
interface FilterChipProps {
|
|
37
|
+
label: string;
|
|
38
|
+
active?: boolean;
|
|
39
|
+
onPress: () => void;
|
|
40
|
+
}
|
|
41
|
+
declare function FilterChip({ label, active, onPress }: FilterChipProps): import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
declare function FilterChips({ children }: {
|
|
43
|
+
children: ReactNode;
|
|
44
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
45
|
+
declare function Content({ children, withMargin, }: {
|
|
46
|
+
children?: (item: any) => ReactNode;
|
|
47
|
+
withMargin?: boolean;
|
|
48
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
49
|
+
declare function ContentList({ children, contentWithMargin, }: {
|
|
50
|
+
children?: (item: any) => ReactNode;
|
|
51
|
+
contentWithMargin: boolean;
|
|
52
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
53
|
+
declare function Footer({ children }: {
|
|
54
|
+
children: ReactNode;
|
|
55
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
56
|
+
declare function FloatingButton({ children }: {
|
|
57
|
+
children: ReactNode;
|
|
58
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
59
|
+
interface RowRootProps {
|
|
60
|
+
children: ReactNode;
|
|
61
|
+
onPress?: () => void;
|
|
62
|
+
onLongPress?: () => void;
|
|
63
|
+
showDivider?: boolean;
|
|
64
|
+
style?: StyleProp<ViewStyle>;
|
|
65
|
+
backgroundColor?: string;
|
|
66
|
+
}
|
|
67
|
+
declare function RowRoot({ children, onPress, onLongPress, showDivider, style, backgroundColor, }: RowRootProps): import("react/jsx-runtime").JSX.Element;
|
|
68
|
+
interface RowAvatarProps {
|
|
69
|
+
children: ReactNode;
|
|
70
|
+
style?: StyleProp<ViewStyle>;
|
|
71
|
+
}
|
|
72
|
+
declare function RowAvatar({ children, style }: RowAvatarProps): import("react/jsx-runtime").JSX.Element;
|
|
73
|
+
interface RowContentProps {
|
|
74
|
+
children: ReactNode;
|
|
75
|
+
style?: StyleProp<ViewStyle>;
|
|
76
|
+
}
|
|
77
|
+
declare function RowContent({ children, style }: RowContentProps): import("react/jsx-runtime").JSX.Element;
|
|
78
|
+
interface RowTitleProps {
|
|
79
|
+
children: ReactNode;
|
|
80
|
+
badge?: ReactNode;
|
|
81
|
+
rightComponent?: ReactNode;
|
|
82
|
+
numberOfLines?: number;
|
|
83
|
+
}
|
|
84
|
+
declare function RowTitle({ children, badge, rightComponent, numberOfLines }: RowTitleProps): import("react/jsx-runtime").JSX.Element;
|
|
85
|
+
interface RowSubtitleProps {
|
|
86
|
+
children: ReactNode;
|
|
87
|
+
className?: string;
|
|
88
|
+
}
|
|
89
|
+
declare function RowSubtitle({ children, className }: RowSubtitleProps): import("react/jsx-runtime").JSX.Element;
|
|
90
|
+
interface RowFooterProps {
|
|
91
|
+
left?: ReactNode;
|
|
92
|
+
right?: ReactNode;
|
|
93
|
+
children?: ReactNode;
|
|
94
|
+
}
|
|
95
|
+
declare function RowFooter({ left, right, children }: RowFooterProps): import("react/jsx-runtime").JSX.Element;
|
|
96
|
+
interface RowActionsProps {
|
|
97
|
+
children: ReactNode;
|
|
98
|
+
style?: StyleProp<ViewStyle>;
|
|
99
|
+
}
|
|
100
|
+
declare function RowActions({ children, style }: RowActionsProps): import("react/jsx-runtime").JSX.Element;
|
|
101
|
+
interface RowActionButtonProps {
|
|
102
|
+
icon: ReactNode;
|
|
103
|
+
onPress?: () => void;
|
|
104
|
+
}
|
|
105
|
+
declare function RowActionButton({ icon, onPress }: RowActionButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
106
|
+
export declare const ListViewV2: {
|
|
107
|
+
Root: typeof ListViewRoot;
|
|
108
|
+
Header: typeof Header & {
|
|
109
|
+
Search: typeof HeaderSearch;
|
|
110
|
+
Actions: typeof HeaderActions;
|
|
111
|
+
Filters: typeof HeaderFilters & {
|
|
112
|
+
Chip: typeof FilterChip;
|
|
113
|
+
Chips: typeof FilterChips;
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
Content: typeof Content & {
|
|
117
|
+
List: typeof ContentList;
|
|
118
|
+
Row: typeof RowRoot & {
|
|
119
|
+
Avatar: typeof RowAvatar;
|
|
120
|
+
Content: typeof RowContent;
|
|
121
|
+
Title: typeof RowTitle;
|
|
122
|
+
Subtitle: typeof RowSubtitle;
|
|
123
|
+
Footer: typeof RowFooter;
|
|
124
|
+
Actions: typeof RowActions;
|
|
125
|
+
ActionButton: typeof RowActionButton;
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
Footer: typeof Footer;
|
|
129
|
+
FloatingButton: typeof FloatingButton;
|
|
130
|
+
};
|
|
131
|
+
export default ListViewV2;
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "nativewind/jsx-runtime";
|
|
2
|
+
import { Display } from "../Display";
|
|
3
|
+
import { ErrorBoundary, Feedback } from "../Feedback";
|
|
4
|
+
import { Form } from "../Form";
|
|
5
|
+
import Container from "../layouts/Container";
|
|
6
|
+
import { Navigation } from "../Navigation";
|
|
7
|
+
import { theme } from "../theme";
|
|
8
|
+
import { cn, tv } from "../theme/tw";
|
|
9
|
+
import { Typography } from "../Typography";
|
|
10
|
+
import { ListViewProvider, useListView } from "../views/ListViewV2.context";
|
|
11
|
+
import { toRowItems } from "../views/types/IListView";
|
|
12
|
+
import ScreenHeader from "../widgets/ScreenHeader";
|
|
13
|
+
import React, { useCallback, useEffect, useMemo, useState } from "react";
|
|
14
|
+
import { FlatList, RefreshControl, ScrollView, TouchableOpacity, View, } from "react-native";
|
|
15
|
+
function ListViewRoot({ name, description, items, isLoading = false, hasError = false, errorMessage, readonly = false, onRefresh, onRetry, onPressItem, onDeleteItem, onSearch, onBack, backgroundColor, withContainer = true, children, }) {
|
|
16
|
+
const Wrapper = withContainer ? Container : View;
|
|
17
|
+
const wrapperProps = withContainer
|
|
18
|
+
? {} // Container maneja su propio backgroundColor
|
|
19
|
+
: { className: "flex-1 bg-bg-page" };
|
|
20
|
+
// Propagate contentWithMargin to ContentList via context
|
|
21
|
+
return (_jsx(ListViewProvider, { description: description, errorMessage: errorMessage, hasError: hasError, isLoading: isLoading, items: items, name: name, onBack: onBack, onDeleteItem: onDeleteItem, onPressItem: onPressItem, onRefresh: onRefresh, onRetry: onRetry, onSearch: onSearch, readonly: readonly, children: _jsx(ErrorBoundary, { children: _jsx(Wrapper, { ...wrapperProps, children: children }) }) }));
|
|
22
|
+
}
|
|
23
|
+
function Header({ variant = "ROUNDED_HEADER" /* EVariantScreenHeader.ROUNDED_HEADER */, children, }) {
|
|
24
|
+
const { name, description, onBack } = useListView();
|
|
25
|
+
return (_jsx(ScreenHeader, { onBack: onBack, subtitle: description ? description : `Seleccionar ${name}`, title: name, variant: variant, children: children }));
|
|
26
|
+
}
|
|
27
|
+
function HeaderSearch({ searchQuery = "" }) {
|
|
28
|
+
const { name, onSearch } = useListView();
|
|
29
|
+
const [query, setQuery] = useState(searchQuery);
|
|
30
|
+
const [debouncedQuery, setDebouncedQuery] = useState(searchQuery);
|
|
31
|
+
useEffect(() => {
|
|
32
|
+
const timeout = setTimeout(() => {
|
|
33
|
+
setDebouncedQuery(query);
|
|
34
|
+
}, 400);
|
|
35
|
+
return () => clearTimeout(timeout);
|
|
36
|
+
}, [query]);
|
|
37
|
+
useEffect(() => {
|
|
38
|
+
if (onSearch && debouncedQuery !== undefined) {
|
|
39
|
+
onSearch(debouncedQuery);
|
|
40
|
+
}
|
|
41
|
+
}, [debouncedQuery]);
|
|
42
|
+
if (!onSearch) {
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
return (_jsx(View, { className: "px-4 pb-3 mt-2", children: _jsx(Form.SearchBar, { onChangeText: setQuery, placeholder: `Buscar ${name}`, value: query }) }));
|
|
46
|
+
}
|
|
47
|
+
function HeaderActions({ children }) {
|
|
48
|
+
return (_jsx(View, { className: "flex-row px-4 my-3 items-center justify-between flex-1 gap-2", children: children }));
|
|
49
|
+
}
|
|
50
|
+
function HeaderFilters({ children }) {
|
|
51
|
+
return _jsx(View, { className: "px-4 py-2 items-center", children: children });
|
|
52
|
+
}
|
|
53
|
+
const filterChip = tv({
|
|
54
|
+
base: "py-[5px] px-2.5 items-center justify-center rounded-md",
|
|
55
|
+
variants: {
|
|
56
|
+
active: {
|
|
57
|
+
true: "bg-primary",
|
|
58
|
+
false: "bg-transparent",
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
defaultVariants: { active: false },
|
|
62
|
+
});
|
|
63
|
+
const filterChipText = tv({
|
|
64
|
+
variants: {
|
|
65
|
+
active: {
|
|
66
|
+
true: "text-text-on-primary font-semibold",
|
|
67
|
+
false: "text-text-secondary",
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
defaultVariants: { active: false },
|
|
71
|
+
});
|
|
72
|
+
function FilterChip({ label, active = false, onPress }) {
|
|
73
|
+
return (_jsx(TouchableOpacity, { activeOpacity: 0.7, className: filterChip({ active }), onPress: onPress, children: _jsxs(Typography.Text, { className: filterChipText({ active }), variant: "bodySmall", children: [active ? "• " : "", label] }) }));
|
|
74
|
+
}
|
|
75
|
+
function FilterChips({ children }) {
|
|
76
|
+
const childArray = React.Children.toArray(children);
|
|
77
|
+
return (_jsx(ScrollView, { contentContainerStyle: {
|
|
78
|
+
paddingHorizontal: 16,
|
|
79
|
+
}, horizontal: true, showsHorizontalScrollIndicator: false, style: { flexGrow: 0 }, children: _jsx(View, { className: "flex-row bg-bg-card rounded-[10px] border-[1.5px] border-border-default self-center shadow-sm overflow-hidden", children: childArray.map((child, index) => (_jsxs(View, { className: "flex-row items-center", children: [child, index < childArray.length - 1 && (_jsx(View, { className: "w-[1.5px] h-[22px] bg-border-divider opacity-50 my-0.5" }))] }, index))) }) }));
|
|
80
|
+
}
|
|
81
|
+
function Content({ children, withMargin = true, }) {
|
|
82
|
+
const { name, items, isLoading, hasError, errorMessage, onRefresh, onRetry, onBack, showRefreshing, setShowRefreshing, } = useListView();
|
|
83
|
+
const handleRefresh = useCallback(async () => {
|
|
84
|
+
setShowRefreshing(true);
|
|
85
|
+
if (onRefresh) {
|
|
86
|
+
await onRefresh();
|
|
87
|
+
}
|
|
88
|
+
setShowRefreshing(false);
|
|
89
|
+
}, [onRefresh, setShowRefreshing]);
|
|
90
|
+
if (isLoading) {
|
|
91
|
+
return _jsx(Feedback.Loading, { message: `Cargando ${name}...` });
|
|
92
|
+
}
|
|
93
|
+
if (hasError) {
|
|
94
|
+
return (_jsx(ScrollView, { contentContainerStyle: {
|
|
95
|
+
flexGrow: 1,
|
|
96
|
+
justifyContent: "center",
|
|
97
|
+
alignItems: "center",
|
|
98
|
+
}, refreshControl: _jsx(RefreshControl, { colors: [theme.primary], onRefresh: handleRefresh, refreshing: showRefreshing }), children: _jsx(Feedback.Error, { message: errorMessage, onBack: onBack, onRetry: onRetry }) }));
|
|
99
|
+
}
|
|
100
|
+
if (items.length === 0) {
|
|
101
|
+
return (_jsx(ScrollView, { contentContainerStyle: {
|
|
102
|
+
flexGrow: 1,
|
|
103
|
+
justifyContent: "center",
|
|
104
|
+
alignItems: "center",
|
|
105
|
+
}, refreshControl: _jsx(RefreshControl, { colors: [theme.primary], onRefresh: handleRefresh, refreshing: showRefreshing }), children: _jsx(Feedback.Empty, {}) }));
|
|
106
|
+
}
|
|
107
|
+
return (_jsxs(View, { style: { flex: 1 }, children: [_jsx(Display.CountRecords, { count: items.length || 0, name: name }), _jsx(ContentList, { contentWithMargin: withMargin, children: children })] }));
|
|
108
|
+
}
|
|
109
|
+
function ContentList({ children, contentWithMargin, }) {
|
|
110
|
+
const { items, onRefresh, showRefreshing, setShowRefreshing, onPressItem, onDeleteItem, readonly, } = useListView();
|
|
111
|
+
const rowItems = useMemo(() => toRowItems(items), [items]);
|
|
112
|
+
const handleRefresh = useCallback(async () => {
|
|
113
|
+
setShowRefreshing(true);
|
|
114
|
+
if (onRefresh) {
|
|
115
|
+
await onRefresh();
|
|
116
|
+
}
|
|
117
|
+
setShowRefreshing(false);
|
|
118
|
+
}, [onRefresh, setShowRefreshing]);
|
|
119
|
+
const renderItem = useCallback(({ item }) => {
|
|
120
|
+
if (children) {
|
|
121
|
+
return _jsx(_Fragment, { children: children(item) });
|
|
122
|
+
}
|
|
123
|
+
const onPress = () => onPressItem?.(item);
|
|
124
|
+
const onDelete = () => onDeleteItem?.(item);
|
|
125
|
+
const isReadOnly = item.readonly || readonly || false;
|
|
126
|
+
return (_jsx(Navigation.RowItem, { item: { ...item }, onDelete: onDelete, onPress: onPress, readonly: isReadOnly }));
|
|
127
|
+
}, [children, onPressItem, onDeleteItem, readonly]);
|
|
128
|
+
return (_jsx(View, { style: {
|
|
129
|
+
flex: 1,
|
|
130
|
+
marginTop: 2,
|
|
131
|
+
paddingHorizontal: contentWithMargin ? 4 : 0,
|
|
132
|
+
}, children: _jsx(FlatList, { data: rowItems, keyExtractor: (item) => String(item.index), refreshControl: _jsx(RefreshControl, { colors: [theme.primary], onRefresh: handleRefresh, refreshing: showRefreshing }), renderItem: renderItem, scrollEnabled: true, showsVerticalScrollIndicator: false }) }));
|
|
133
|
+
}
|
|
134
|
+
function Footer({ children }) {
|
|
135
|
+
const { items } = useListView();
|
|
136
|
+
if (items.length === 0) {
|
|
137
|
+
return null;
|
|
138
|
+
}
|
|
139
|
+
return _jsx(View, { className: "px-4", children: children });
|
|
140
|
+
}
|
|
141
|
+
function FloatingButton({ children }) {
|
|
142
|
+
return _jsx(View, { className: "absolute bottom-[50px] right-6 z-10", children: children });
|
|
143
|
+
}
|
|
144
|
+
function RowRoot({ children, onPress, onLongPress, showDivider = true, style, backgroundColor, }) {
|
|
145
|
+
const baseClass = "flex-row items-center py-3 px-4 bg-bg-card";
|
|
146
|
+
const dividerClass = showDivider ? " border-b border-border-default" : "";
|
|
147
|
+
const content = (_jsx(View, { className: baseClass + dividerClass, style: [backgroundColor ? { backgroundColor } : undefined, style], children: children }));
|
|
148
|
+
if (onPress || onLongPress) {
|
|
149
|
+
return (_jsx(TouchableOpacity, { activeOpacity: 0.7, onLongPress: onLongPress, onPress: onPress, children: content }));
|
|
150
|
+
}
|
|
151
|
+
return content;
|
|
152
|
+
}
|
|
153
|
+
function RowAvatar({ children, style }) {
|
|
154
|
+
return (_jsx(View, { className: "mr-3 justify-center items-center", style: style, children: children }));
|
|
155
|
+
}
|
|
156
|
+
function RowContent({ children, style }) {
|
|
157
|
+
return (_jsx(View, { className: "flex-1 gap-0.5", style: style, children: children }));
|
|
158
|
+
}
|
|
159
|
+
function RowTitle({ children, badge, rightComponent, numberOfLines = 1 }) {
|
|
160
|
+
return (_jsxs(View, { className: "flex-row items-center justify-between gap-2", children: [_jsx(Typography.Text, { className: "flex-1 flex-shrink min-w-0", numberOfLines: numberOfLines, semibold: true, variant: "body", children: children }), _jsxs(View, { className: "flex-row items-center gap-2", children: [badge, rightComponent] })] }));
|
|
161
|
+
}
|
|
162
|
+
function RowSubtitle({ children, className }) {
|
|
163
|
+
return (_jsx(Typography.Text, { className: cn("text-text-secondary", className), variant: "bodySmall", children: children }));
|
|
164
|
+
}
|
|
165
|
+
function RowFooter({ left, right, children }) {
|
|
166
|
+
if (children) {
|
|
167
|
+
return _jsx(View, { className: "mt-1", children: children });
|
|
168
|
+
}
|
|
169
|
+
return (_jsxs(View, { className: "flex-row items-center justify-between mt-1", children: [_jsx(View, { className: "flex-row items-center gap-2", children: left }), _jsx(View, { className: "flex-row items-center", children: right })] }));
|
|
170
|
+
}
|
|
171
|
+
function RowActions({ children, style }) {
|
|
172
|
+
return (_jsx(View, { className: "flex-row items-center gap-1 ml-2", style: style, children: children }));
|
|
173
|
+
}
|
|
174
|
+
function RowActionButton({ icon, onPress }) {
|
|
175
|
+
return (_jsx(TouchableOpacity, { className: "p-1.5 rounded", onPress: onPress, children: icon }));
|
|
176
|
+
}
|
|
177
|
+
const FiltersWithSubComponents = Object.assign(HeaderFilters, {
|
|
178
|
+
Chip: FilterChip,
|
|
179
|
+
Chips: FilterChips,
|
|
180
|
+
});
|
|
181
|
+
const HeaderWithSubComponents = Object.assign(Header, {
|
|
182
|
+
Search: HeaderSearch,
|
|
183
|
+
Actions: HeaderActions,
|
|
184
|
+
Filters: FiltersWithSubComponents,
|
|
185
|
+
});
|
|
186
|
+
const RowWithSubComponents = Object.assign(RowRoot, {
|
|
187
|
+
Avatar: RowAvatar,
|
|
188
|
+
Content: RowContent,
|
|
189
|
+
Title: RowTitle,
|
|
190
|
+
Subtitle: RowSubtitle,
|
|
191
|
+
Footer: RowFooter,
|
|
192
|
+
Actions: RowActions,
|
|
193
|
+
ActionButton: RowActionButton,
|
|
194
|
+
});
|
|
195
|
+
const ContentWithSubComponents = Object.assign(Content, {
|
|
196
|
+
List: ContentList,
|
|
197
|
+
Row: RowWithSubComponents,
|
|
198
|
+
});
|
|
199
|
+
export const ListViewV2 = {
|
|
200
|
+
Root: ListViewRoot,
|
|
201
|
+
Header: HeaderWithSubComponents,
|
|
202
|
+
Content: ContentWithSubComponents,
|
|
203
|
+
Footer,
|
|
204
|
+
FloatingButton,
|
|
205
|
+
};
|
|
206
|
+
export default ListViewV2;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export type WizardStepId = string;
|
|
3
|
+
export interface WizardContextValue {
|
|
4
|
+
currentStep: WizardStepId;
|
|
5
|
+
stepHistory: WizardStepId[];
|
|
6
|
+
goToStep: (step: WizardStepId) => void;
|
|
7
|
+
back: () => void;
|
|
8
|
+
next: () => void;
|
|
9
|
+
reset: (initialStep?: WizardStepId) => void;
|
|
10
|
+
canGoBack: boolean;
|
|
11
|
+
canGoNext: boolean;
|
|
12
|
+
totalSteps: number;
|
|
13
|
+
currentStepIndex: number;
|
|
14
|
+
progress: number;
|
|
15
|
+
}
|
|
16
|
+
export interface WizardProviderProps {
|
|
17
|
+
children: ReactNode;
|
|
18
|
+
initialStep: WizardStepId;
|
|
19
|
+
steps?: WizardStepId[];
|
|
20
|
+
onComplete?: () => void;
|
|
21
|
+
onCancel?: () => void;
|
|
22
|
+
isLoading?: boolean;
|
|
23
|
+
loadingMessage?: string;
|
|
24
|
+
}
|
|
25
|
+
export declare function WizardProvider({ children, initialStep, steps, onComplete, onCancel, isLoading, loadingMessage, }: WizardProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export declare function useWizard(): WizardContextValue;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "nativewind/jsx-runtime";
|
|
2
|
+
import { ErrorBoundary } from "../../Feedback";
|
|
3
|
+
import { createContext, useCallback, useContext, useMemo, useState } from "react";
|
|
4
|
+
import { ActivityIndicator, Text, View } from "react-native";
|
|
5
|
+
const WizardContext = createContext(null);
|
|
6
|
+
export function WizardProvider({ children, initialStep, steps = [], onComplete, onCancel, isLoading = false, loadingMessage, }) {
|
|
7
|
+
const [currentStep, setCurrentStep] = useState(initialStep);
|
|
8
|
+
const [stepHistory, setStepHistory] = useState([initialStep]);
|
|
9
|
+
const goToStep = useCallback((step) => {
|
|
10
|
+
setStepHistory((prev) => [...prev, step]);
|
|
11
|
+
setCurrentStep(step);
|
|
12
|
+
}, []);
|
|
13
|
+
const back = useCallback(() => {
|
|
14
|
+
setStepHistory((prev) => {
|
|
15
|
+
if (prev.length <= 1)
|
|
16
|
+
return prev;
|
|
17
|
+
const newHistory = prev.slice(0, -1);
|
|
18
|
+
const previousStep = newHistory[newHistory.length - 1];
|
|
19
|
+
setCurrentStep(previousStep);
|
|
20
|
+
return newHistory;
|
|
21
|
+
});
|
|
22
|
+
}, []);
|
|
23
|
+
const next = useCallback(() => {
|
|
24
|
+
if (steps.length === 0)
|
|
25
|
+
return;
|
|
26
|
+
const currentIndex = steps.indexOf(currentStep);
|
|
27
|
+
if (currentIndex === -1 || currentIndex === steps.length - 1) {
|
|
28
|
+
onComplete?.();
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
const nextStep = steps[currentIndex + 1];
|
|
32
|
+
goToStep(nextStep);
|
|
33
|
+
}, [currentStep, steps, goToStep, onComplete]);
|
|
34
|
+
const reset = useCallback((step) => {
|
|
35
|
+
const targetStep = step ?? initialStep;
|
|
36
|
+
setCurrentStep(targetStep);
|
|
37
|
+
setStepHistory([targetStep]);
|
|
38
|
+
}, [initialStep]);
|
|
39
|
+
const canGoBack = useMemo(() => stepHistory.length > 1, [stepHistory.length]);
|
|
40
|
+
const canGoNext = useMemo(() => {
|
|
41
|
+
if (steps.length === 0)
|
|
42
|
+
return false;
|
|
43
|
+
const currentIndex = steps.indexOf(currentStep);
|
|
44
|
+
return currentIndex !== -1 && currentIndex < steps.length - 1;
|
|
45
|
+
}, [currentStep, steps]);
|
|
46
|
+
const currentStepIndex = useMemo(() => {
|
|
47
|
+
if (steps.length === 0)
|
|
48
|
+
return 0;
|
|
49
|
+
return steps.indexOf(currentStep);
|
|
50
|
+
}, [currentStep, steps]);
|
|
51
|
+
const progress = useMemo(() => {
|
|
52
|
+
if (steps.length === 0)
|
|
53
|
+
return 0;
|
|
54
|
+
return ((currentStepIndex + 1) / steps.length) * 100;
|
|
55
|
+
}, [currentStepIndex, steps.length]);
|
|
56
|
+
const value = useMemo(() => ({
|
|
57
|
+
currentStep,
|
|
58
|
+
stepHistory,
|
|
59
|
+
goToStep,
|
|
60
|
+
back,
|
|
61
|
+
next,
|
|
62
|
+
reset,
|
|
63
|
+
canGoBack,
|
|
64
|
+
canGoNext,
|
|
65
|
+
totalSteps: steps.length,
|
|
66
|
+
currentStepIndex,
|
|
67
|
+
progress,
|
|
68
|
+
}), [
|
|
69
|
+
currentStep,
|
|
70
|
+
stepHistory,
|
|
71
|
+
goToStep,
|
|
72
|
+
back,
|
|
73
|
+
next,
|
|
74
|
+
reset,
|
|
75
|
+
canGoBack,
|
|
76
|
+
canGoNext,
|
|
77
|
+
steps.length,
|
|
78
|
+
currentStepIndex,
|
|
79
|
+
progress,
|
|
80
|
+
]);
|
|
81
|
+
if (isLoading) {
|
|
82
|
+
return (_jsx(ErrorBoundary, { children: _jsxs(View, { className: "flex-1", children: [_jsx(WizardContext.Provider, { value: value, children: children }), _jsx(View, { className: "absolute inset-0 bg-black/50 justify-center items-center", children: _jsxs(View, { className: "bg-bg-card rounded-xl p-6 min-w-[200px] items-center shadow-lg", children: [_jsx(ActivityIndicator, { className: "text-warning", size: "large" }), loadingMessage && (_jsx(Text, { className: "mt-4 text-base text-text-primary text-center", children: loadingMessage }))] }) })] }) }));
|
|
83
|
+
}
|
|
84
|
+
return (_jsx(ErrorBoundary, { children: _jsx(WizardContext.Provider, { value: value, children: children }) }));
|
|
85
|
+
}
|
|
86
|
+
export function useWizard() {
|
|
87
|
+
const context = useContext(WizardContext);
|
|
88
|
+
if (!context) {
|
|
89
|
+
throw new Error("useWizard must be used within WizardProvider");
|
|
90
|
+
}
|
|
91
|
+
return context;
|
|
92
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { WizardContextValue, WizardProviderProps, WizardStepId } from "../../views/Wizard/Wizard.context";
|
|
2
|
+
import type { FC, ReactNode } from "react";
|
|
3
|
+
export interface WizardStepGuard {
|
|
4
|
+
canEnter?: () => boolean | Promise<boolean>;
|
|
5
|
+
onEnterFailed?: () => void;
|
|
6
|
+
}
|
|
7
|
+
export interface WizardStepLifecycle {
|
|
8
|
+
onEnter?: () => void | Promise<void>;
|
|
9
|
+
onExit?: () => void | Promise<void>;
|
|
10
|
+
}
|
|
11
|
+
export interface WizardStepProps extends WizardStepGuard, WizardStepLifecycle {
|
|
12
|
+
name: WizardStepId;
|
|
13
|
+
children: ReactNode | ((context: WizardContextValue) => ReactNode);
|
|
14
|
+
}
|
|
15
|
+
export interface WizardGuardProps extends WizardStepGuard {
|
|
16
|
+
children: ReactNode;
|
|
17
|
+
}
|
|
18
|
+
export interface WizardGoProps {
|
|
19
|
+
step: WizardStepId;
|
|
20
|
+
children: ReactNode;
|
|
21
|
+
onPress?: () => void;
|
|
22
|
+
}
|
|
23
|
+
export interface WizardBackProps {
|
|
24
|
+
children?: ReactNode;
|
|
25
|
+
onPress?: () => void;
|
|
26
|
+
}
|
|
27
|
+
export declare const Wizard: {
|
|
28
|
+
Root: FC<WizardProviderProps>;
|
|
29
|
+
Step: FC<WizardStepProps>;
|
|
30
|
+
Guard: FC<WizardGuardProps>;
|
|
31
|
+
Go: FC<WizardGoProps>;
|
|
32
|
+
Back: FC<WizardBackProps>;
|
|
33
|
+
};
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment } from "nativewind/jsx-runtime";
|
|
2
|
+
import { useWizard, WizardProvider } from "../../views/Wizard/Wizard.context";
|
|
3
|
+
import { useEffect } from "react";
|
|
4
|
+
import { TouchableOpacity } from "react-native";
|
|
5
|
+
const WizardRoot = (props) => {
|
|
6
|
+
return _jsx(WizardProvider, { ...props });
|
|
7
|
+
};
|
|
8
|
+
const WizardStep = ({ name, children, canEnter, onEnterFailed, onEnter, onExit, }) => {
|
|
9
|
+
const wizard = useWizard();
|
|
10
|
+
useEffect(() => {
|
|
11
|
+
if (wizard.currentStep === name) {
|
|
12
|
+
const checkAndEnter = async () => {
|
|
13
|
+
if (canEnter) {
|
|
14
|
+
const allowed = await canEnter();
|
|
15
|
+
if (!allowed) {
|
|
16
|
+
onEnterFailed?.();
|
|
17
|
+
wizard.back();
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
await onEnter?.();
|
|
22
|
+
};
|
|
23
|
+
void checkAndEnter();
|
|
24
|
+
}
|
|
25
|
+
return () => {
|
|
26
|
+
if (wizard.currentStep === name) {
|
|
27
|
+
void onExit?.();
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
}, [wizard.currentStep, name, canEnter, onEnterFailed, onEnter, onExit, wizard]);
|
|
31
|
+
if (wizard.currentStep !== name) {
|
|
32
|
+
return null;
|
|
33
|
+
}
|
|
34
|
+
if (typeof children === "function") {
|
|
35
|
+
return _jsx(_Fragment, { children: children(wizard) });
|
|
36
|
+
}
|
|
37
|
+
return _jsx(_Fragment, { children: children });
|
|
38
|
+
};
|
|
39
|
+
const WizardGuard = ({ children, canEnter, onEnterFailed }) => {
|
|
40
|
+
const wizard = useWizard();
|
|
41
|
+
useEffect(() => {
|
|
42
|
+
const checkGuard = async () => {
|
|
43
|
+
if (canEnter) {
|
|
44
|
+
const allowed = await canEnter();
|
|
45
|
+
if (!allowed) {
|
|
46
|
+
onEnterFailed?.();
|
|
47
|
+
wizard.back();
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
void checkGuard();
|
|
52
|
+
}, [canEnter, onEnterFailed, wizard]);
|
|
53
|
+
return _jsx(_Fragment, { children: children });
|
|
54
|
+
};
|
|
55
|
+
const WizardGo = ({ step, children, onPress }) => {
|
|
56
|
+
const wizard = useWizard();
|
|
57
|
+
const handlePress = () => {
|
|
58
|
+
onPress?.();
|
|
59
|
+
wizard.goToStep(step);
|
|
60
|
+
};
|
|
61
|
+
if (typeof children === "function") {
|
|
62
|
+
return _jsx(_Fragment, { children: children(handlePress) });
|
|
63
|
+
}
|
|
64
|
+
return _jsx(TouchableOpacity, { onPress: handlePress, children: children });
|
|
65
|
+
};
|
|
66
|
+
const WizardBack = ({ children, onPress }) => {
|
|
67
|
+
const wizard = useWizard();
|
|
68
|
+
const handlePress = () => {
|
|
69
|
+
onPress?.();
|
|
70
|
+
wizard.back();
|
|
71
|
+
};
|
|
72
|
+
if (!children) {
|
|
73
|
+
return null;
|
|
74
|
+
}
|
|
75
|
+
if (typeof children === "function") {
|
|
76
|
+
return _jsx(_Fragment, { children: children(handlePress) });
|
|
77
|
+
}
|
|
78
|
+
return _jsx(TouchableOpacity, { onPress: handlePress, children: children });
|
|
79
|
+
};
|
|
80
|
+
export const Wizard = {
|
|
81
|
+
Root: WizardRoot,
|
|
82
|
+
Step: WizardStep,
|
|
83
|
+
Guard: WizardGuard,
|
|
84
|
+
Go: WizardGo,
|
|
85
|
+
Back: WizardBack,
|
|
86
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export type { WizardBackProps, WizardGoProps, WizardGuardProps, WizardStepGuard, WizardStepLifecycle, WizardStepProps, } from "../../views/Wizard/Wizard";
|
|
2
|
+
export { Wizard } from "../../views/Wizard/Wizard";
|
|
3
|
+
export type { WizardContextValue, WizardProviderProps, WizardStepId, } from "../../views/Wizard/Wizard.context";
|
|
4
|
+
export { useWizard } from "../../views/Wizard/Wizard.context";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { UIItem } from "../../views/types/UIItem";
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
|
+
export interface IFormView<T> extends UIItem {
|
|
4
|
+
name: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
item?: T;
|
|
7
|
+
isLoading?: boolean;
|
|
8
|
+
isEmpty?: boolean;
|
|
9
|
+
Toolbar?: ReactNode;
|
|
10
|
+
HeaderActionButton?: ReactNode;
|
|
11
|
+
Footer?: ReactNode;
|
|
12
|
+
FormComponent?: React.ComponentType<{
|
|
13
|
+
item: T;
|
|
14
|
+
readonly?: boolean;
|
|
15
|
+
isLoading?: boolean;
|
|
16
|
+
onSubmit?: () => void;
|
|
17
|
+
}>;
|
|
18
|
+
Groups?: ReactNode[];
|
|
19
|
+
onBack?: () => void | Promise<void>;
|
|
20
|
+
onSubmit?: () => void | Promise<void>;
|
|
21
|
+
onRefresh?: () => void | Promise<void>;
|
|
22
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { UICollectionItem, UIItem } from "../../views/types/UIItem";
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
|
+
export type IRowItem<T> = T & UIItem & {
|
|
4
|
+
id: string | number;
|
|
5
|
+
index: number;
|
|
6
|
+
rowTitle: string;
|
|
7
|
+
rowSubtitle?: string;
|
|
8
|
+
};
|
|
9
|
+
export interface IRowItemProps<T> extends UIItem {
|
|
10
|
+
item: IRowItem<T> | T;
|
|
11
|
+
}
|
|
12
|
+
export interface IListView<T> extends UICollectionItem<T> {
|
|
13
|
+
name: string;
|
|
14
|
+
description?: string;
|
|
15
|
+
items: T[];
|
|
16
|
+
isLoading?: boolean;
|
|
17
|
+
onRefresh?: () => void | Promise<void>;
|
|
18
|
+
onBack?: () => void | Promise<void>;
|
|
19
|
+
ItemComponent?: React.ComponentType<IRowItemProps<T>>;
|
|
20
|
+
ToolbarComponent?: ReactNode;
|
|
21
|
+
SearchComponent?: ReactNode;
|
|
22
|
+
ActionComponent?: ReactNode;
|
|
23
|
+
FooterComponent?: ReactNode;
|
|
24
|
+
FloatingButtonComponent?: ReactNode;
|
|
25
|
+
EmptyComponent?: ReactNode;
|
|
26
|
+
}
|
|
27
|
+
export type RowKeys<T> = Partial<{
|
|
28
|
+
id?: keyof T;
|
|
29
|
+
rowTitle?: keyof T;
|
|
30
|
+
rowSubtitle?: keyof T;
|
|
31
|
+
readOnly?: keyof T;
|
|
32
|
+
}>;
|
|
33
|
+
export declare function toRowItem<T>(item: T, index: number, mapKeys?: RowKeys<T>): IRowItem<T>;
|
|
34
|
+
export declare function toRowItems<T>(items: T[], mapKeys?: RowKeys<T>): IRowItem<T>[];
|