@sincpro/mobile-ui 0.1.2 → 0.1.3
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 +14 -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 +10 -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/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/default.d.ts +2 -0
- package/lib/theme/default.js +79 -0
- package/lib/theme/index.d.ts +4 -0
- package/lib/theme/index.js +3 -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 +9 -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 +60 -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 +9 -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 +19 -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 +22 -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/globals.css +0 -67
- 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
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
export interface FilterButtonProps {
|
|
3
|
+
title: string;
|
|
4
|
+
active: boolean;
|
|
5
|
+
onPress: () => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const FilterButton: FC<FilterButtonProps>;
|
|
8
|
+
interface FilterButtonGroupProps {
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
}
|
|
11
|
+
export declare function FilterButtonGroup({ children }: FilterButtonGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { tv } from "../theme/tw";
|
|
3
|
+
import { Typography } from "../Typography";
|
|
4
|
+
import { TouchableOpacity, View } from "react-native";
|
|
5
|
+
const filterButton = tv({
|
|
6
|
+
base: "rounded-lg items-center justify-center py-2 px-3 min-h-[36px]",
|
|
7
|
+
variants: {
|
|
8
|
+
active: {
|
|
9
|
+
true: "bg-primary border-0",
|
|
10
|
+
false: "bg-transparent border border-brand-primary",
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
defaultVariants: {
|
|
14
|
+
active: false,
|
|
15
|
+
},
|
|
16
|
+
});
|
|
17
|
+
const filterText = tv({
|
|
18
|
+
base: "font-bold",
|
|
19
|
+
variants: {
|
|
20
|
+
active: {
|
|
21
|
+
true: "text-white",
|
|
22
|
+
false: "text-primary",
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
defaultVariants: {
|
|
26
|
+
active: false,
|
|
27
|
+
},
|
|
28
|
+
});
|
|
29
|
+
export const FilterButton = ({ title, active, onPress }) => {
|
|
30
|
+
return (_jsx(TouchableOpacity, { activeOpacity: 0.8, className: filterButton({ active }), onPress: onPress, children: _jsx(Typography.Text, { className: filterText({ active }), variant: "buttonSmall", children: title }) }));
|
|
31
|
+
};
|
|
32
|
+
export function FilterButtonGroup({ children }) {
|
|
33
|
+
return _jsx(View, { className: "flex-row gap-2 p-3", children: children });
|
|
34
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { StyleProp, ViewStyle } from "react-native";
|
|
2
|
+
interface FractionalQuantityInputProps {
|
|
3
|
+
value: number;
|
|
4
|
+
onChange: (value: number) => void;
|
|
5
|
+
precision?: number;
|
|
6
|
+
minIncrement?: number;
|
|
7
|
+
maxValue?: number;
|
|
8
|
+
style?: StyleProp<ViewStyle>;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
quickAddIncrements?: number[];
|
|
11
|
+
}
|
|
12
|
+
declare function FractionalQuantityInput({ value, onChange, precision, minIncrement, maxValue, style, disabled, quickAddIncrements, }: FractionalQuantityInputProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export default FractionalQuantityInput;
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Dialog } from "../Dialog";
|
|
3
|
+
import { Display } from "../Display";
|
|
4
|
+
import { Typography } from "../Typography";
|
|
5
|
+
import { normalizeQuantity, roundTo } from "../utils/quantity";
|
|
6
|
+
import { useCallback, useMemo, useState } from "react";
|
|
7
|
+
import { TouchableOpacity, View } from "react-native";
|
|
8
|
+
import { tv } from "tailwind-variants";
|
|
9
|
+
const fractionalQuantityInput = tv({
|
|
10
|
+
slots: {
|
|
11
|
+
container: "flex-row items-center border border-brand-accent rounded-full px-1",
|
|
12
|
+
button: "w-9 h-9 rounded-full justify-center items-center",
|
|
13
|
+
valueContainer: "min-w-[60px] items-center px-3",
|
|
14
|
+
},
|
|
15
|
+
variants: {
|
|
16
|
+
disabled: {
|
|
17
|
+
true: {
|
|
18
|
+
button: "opacity-40",
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
function parseLocalizedNumber(raw) {
|
|
24
|
+
let s = raw.trim();
|
|
25
|
+
if (s === "")
|
|
26
|
+
return 0;
|
|
27
|
+
s = s.replace(/[^0-9.,+-]/g, "");
|
|
28
|
+
const hasComma = s.includes(",");
|
|
29
|
+
const hasDot = s.includes(".");
|
|
30
|
+
if (hasComma && (!hasDot || s.lastIndexOf(",") > s.lastIndexOf("."))) {
|
|
31
|
+
s = s.replace(/\./g, "").replace(/,/g, ".");
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
if (!hasComma && hasDot) {
|
|
35
|
+
if (/^\d{1,3}(\.\d{3})+$/.test(s)) {
|
|
36
|
+
s = s.replace(/\./g, "");
|
|
37
|
+
}
|
|
38
|
+
else if (s.split(".").length - 1 > 1) {
|
|
39
|
+
const parts = s.split(".");
|
|
40
|
+
const decimal = parts.pop();
|
|
41
|
+
s = parts.join("") + "." + decimal;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
else if (hasComma && hasDot) {
|
|
45
|
+
s = s.replace(/,/g, "");
|
|
46
|
+
}
|
|
47
|
+
s = s.replace(/,/g, "");
|
|
48
|
+
}
|
|
49
|
+
const n = parseFloat(s);
|
|
50
|
+
if (isNaN(n))
|
|
51
|
+
return 0;
|
|
52
|
+
return n;
|
|
53
|
+
}
|
|
54
|
+
function FractionalQuantityInput({ value, onChange, precision = 2, minIncrement, maxValue = 999999, style, disabled, quickAddIncrements, }) {
|
|
55
|
+
const [modalVisible, setModalVisible] = useState(false);
|
|
56
|
+
const [draft, setDraft] = useState(String(value));
|
|
57
|
+
const effectiveIncrement = useMemo(() => {
|
|
58
|
+
if (minIncrement && minIncrement > 0)
|
|
59
|
+
return minIncrement;
|
|
60
|
+
return 1 / Math.pow(10, precision);
|
|
61
|
+
}, [minIncrement, precision]);
|
|
62
|
+
const chips = useMemo(() => {
|
|
63
|
+
if (quickAddIncrements && quickAddIncrements.length > 0)
|
|
64
|
+
return quickAddIncrements;
|
|
65
|
+
const base = effectiveIncrement;
|
|
66
|
+
if (base >= 1)
|
|
67
|
+
return [1, 2, 5];
|
|
68
|
+
if (base >= 0.5)
|
|
69
|
+
return [0.5, 1, 2];
|
|
70
|
+
if (base >= 0.25)
|
|
71
|
+
return [0.25, 0.5, 1];
|
|
72
|
+
if (base >= 0.1)
|
|
73
|
+
return [0.1, 0.25, 0.5];
|
|
74
|
+
return [base, base * 2, base * 5];
|
|
75
|
+
}, [effectiveIncrement, quickAddIncrements]);
|
|
76
|
+
const applyValue = useCallback((next) => {
|
|
77
|
+
if (next < 0)
|
|
78
|
+
next = 0;
|
|
79
|
+
if (next > maxValue)
|
|
80
|
+
next = maxValue;
|
|
81
|
+
next = normalizeQuantity(next, effectiveIncrement, precision);
|
|
82
|
+
onChange(next);
|
|
83
|
+
}, [onChange, maxValue, effectiveIncrement, precision]);
|
|
84
|
+
function handleDecrement() {
|
|
85
|
+
applyValue(value - 1);
|
|
86
|
+
}
|
|
87
|
+
function handleIncrement() {
|
|
88
|
+
applyValue(value + 1);
|
|
89
|
+
}
|
|
90
|
+
function openModal() {
|
|
91
|
+
setDraft(String(value));
|
|
92
|
+
setModalVisible(true);
|
|
93
|
+
}
|
|
94
|
+
function confirmDraft() {
|
|
95
|
+
let parsed = parseLocalizedNumber(draft);
|
|
96
|
+
parsed = roundTo(parsed, precision);
|
|
97
|
+
if (parsed < 0)
|
|
98
|
+
parsed = 0;
|
|
99
|
+
if (parsed > maxValue)
|
|
100
|
+
parsed = maxValue;
|
|
101
|
+
onChange(parsed);
|
|
102
|
+
setModalVisible(false);
|
|
103
|
+
}
|
|
104
|
+
const formatted = useMemo(() => value.toFixed(precision), [value, precision]);
|
|
105
|
+
const modalChips = chips.map((item) => ({
|
|
106
|
+
label: `+${item}`,
|
|
107
|
+
onPress: () => {
|
|
108
|
+
const base = parseLocalizedNumber(draft) || 0;
|
|
109
|
+
const next = roundTo(base + item, precision);
|
|
110
|
+
setDraft(String(next));
|
|
111
|
+
},
|
|
112
|
+
}));
|
|
113
|
+
const decrementStyles = fractionalQuantityInput({ disabled: disabled || value <= 0 });
|
|
114
|
+
const incrementStyles = fractionalQuantityInput({ disabled });
|
|
115
|
+
const containerStyles = fractionalQuantityInput();
|
|
116
|
+
return (_jsxs(View, { accessibilityLabel: `Cantidad ${formatted}`, className: containerStyles.container(), style: style, children: [_jsx(TouchableOpacity, { className: decrementStyles.button(), disabled: disabled || value <= 0, onPress: handleDecrement, children: _jsx(Display.Icon, { name: "minus", size: 16, type: "feather" }) }), _jsx(TouchableOpacity, { className: containerStyles.valueContainer(), disabled: disabled, onPress: openModal, children: _jsx(Typography.Text, { semibold: true, variant: "body", children: formatted }) }), _jsx(TouchableOpacity, { className: incrementStyles.button(), disabled: disabled, onPress: handleIncrement, children: _jsx(Display.Icon, { name: "plus", size: 16, type: "feather" }) }), _jsx(Dialog.EditValue, { chips: modalChips, keyboardType: "decimal-pad", onCancel: () => setModalVisible(false), onChangeValue: setDraft, onConfirm: confirmDraft, placeholder: `0${precision > 0 ? ",".padEnd(precision + 1, "0") : ""}`, rightAdornment: _jsxs(Typography.Text, { className: "ml-1", variant: "body", children: ["(m\u00EDn ", effectiveIncrement, ")"] }), title: "Editar cantidad", value: draft, visible: modalVisible })] }));
|
|
117
|
+
}
|
|
118
|
+
export default FractionalQuantityInput;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { type VariantProps } from "../theme/tw";
|
|
2
|
+
import { IconType } from "../utils/icon";
|
|
3
|
+
declare const iconButton: import("tailwind-variants").TVReturnType<{
|
|
4
|
+
variant: {
|
|
5
|
+
primary: string;
|
|
6
|
+
secondary: string;
|
|
7
|
+
tertiary: string;
|
|
8
|
+
ghost: string;
|
|
9
|
+
};
|
|
10
|
+
size: {
|
|
11
|
+
small: string;
|
|
12
|
+
medium: string;
|
|
13
|
+
large: string;
|
|
14
|
+
};
|
|
15
|
+
rounded: {
|
|
16
|
+
true: string;
|
|
17
|
+
};
|
|
18
|
+
disabled: {
|
|
19
|
+
true: string;
|
|
20
|
+
};
|
|
21
|
+
}, undefined, "rounded-lg items-center justify-center", {
|
|
22
|
+
variant: {
|
|
23
|
+
primary: string;
|
|
24
|
+
secondary: string;
|
|
25
|
+
tertiary: string;
|
|
26
|
+
ghost: string;
|
|
27
|
+
};
|
|
28
|
+
size: {
|
|
29
|
+
small: string;
|
|
30
|
+
medium: string;
|
|
31
|
+
large: string;
|
|
32
|
+
};
|
|
33
|
+
rounded: {
|
|
34
|
+
true: string;
|
|
35
|
+
};
|
|
36
|
+
disabled: {
|
|
37
|
+
true: string;
|
|
38
|
+
};
|
|
39
|
+
}, undefined, import("tailwind-variants").TVReturnType<{
|
|
40
|
+
variant: {
|
|
41
|
+
primary: string;
|
|
42
|
+
secondary: string;
|
|
43
|
+
tertiary: string;
|
|
44
|
+
ghost: string;
|
|
45
|
+
};
|
|
46
|
+
size: {
|
|
47
|
+
small: string;
|
|
48
|
+
medium: string;
|
|
49
|
+
large: string;
|
|
50
|
+
};
|
|
51
|
+
rounded: {
|
|
52
|
+
true: string;
|
|
53
|
+
};
|
|
54
|
+
disabled: {
|
|
55
|
+
true: string;
|
|
56
|
+
};
|
|
57
|
+
}, undefined, "rounded-lg items-center justify-center", unknown, unknown, undefined>>;
|
|
58
|
+
interface IconButtonProps extends VariantProps<typeof iconButton> {
|
|
59
|
+
icon?: string;
|
|
60
|
+
type?: IconType;
|
|
61
|
+
onPress: () => void;
|
|
62
|
+
loading?: boolean;
|
|
63
|
+
iconColor?: string;
|
|
64
|
+
className?: string;
|
|
65
|
+
}
|
|
66
|
+
declare function IconButton({ icon, type, onPress, variant, size, loading, disabled, rounded, iconColor, className, }: IconButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
67
|
+
export default IconButton;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Display } from "../Display";
|
|
3
|
+
import { theme } from "../theme";
|
|
4
|
+
import { tv } from "../theme/tw";
|
|
5
|
+
import { ActivityIndicator, TouchableOpacity } from "react-native";
|
|
6
|
+
const iconButton = tv({
|
|
7
|
+
base: "rounded-lg items-center justify-center",
|
|
8
|
+
variants: {
|
|
9
|
+
variant: {
|
|
10
|
+
primary: "bg-primary",
|
|
11
|
+
secondary: "bg-bg-card border border-primary",
|
|
12
|
+
tertiary: "bg-accent",
|
|
13
|
+
ghost: "bg-transparent",
|
|
14
|
+
},
|
|
15
|
+
size: {
|
|
16
|
+
small: "w-8 h-8",
|
|
17
|
+
medium: "w-10 h-10",
|
|
18
|
+
large: "w-12 h-12",
|
|
19
|
+
},
|
|
20
|
+
rounded: {
|
|
21
|
+
true: "rounded-full",
|
|
22
|
+
},
|
|
23
|
+
disabled: {
|
|
24
|
+
true: "opacity-50",
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
defaultVariants: {
|
|
28
|
+
variant: "ghost",
|
|
29
|
+
size: "medium",
|
|
30
|
+
rounded: false,
|
|
31
|
+
disabled: false,
|
|
32
|
+
},
|
|
33
|
+
});
|
|
34
|
+
function IconButton({ icon, type = "feather", onPress, variant = "ghost", size = "medium", loading = false, disabled = false, rounded = false, iconColor, className, }) {
|
|
35
|
+
const getLoadingColor = () => {
|
|
36
|
+
switch (variant) {
|
|
37
|
+
case "primary":
|
|
38
|
+
case "tertiary":
|
|
39
|
+
return theme.primary;
|
|
40
|
+
case "secondary":
|
|
41
|
+
case "ghost":
|
|
42
|
+
return theme.primary;
|
|
43
|
+
default:
|
|
44
|
+
return theme.primary;
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
const getIconColor = () => {
|
|
48
|
+
if (iconColor)
|
|
49
|
+
return iconColor;
|
|
50
|
+
switch (variant) {
|
|
51
|
+
case "primary":
|
|
52
|
+
case "tertiary":
|
|
53
|
+
return theme.primary;
|
|
54
|
+
case "secondary":
|
|
55
|
+
return theme.primary;
|
|
56
|
+
case "ghost":
|
|
57
|
+
return theme.primary;
|
|
58
|
+
default:
|
|
59
|
+
return theme.primary;
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
return (_jsx(TouchableOpacity, { activeOpacity: 0.7, className: iconButton({ variant, size, rounded, disabled, className }), disabled: disabled || loading, onPress: onPress, children: loading ? (_jsx(ActivityIndicator, { color: getLoadingColor(), size: "small" })) : (_jsx(Display.Icon, { color: getIconColor(), name: icon, size: 24, type: type })) }));
|
|
63
|
+
}
|
|
64
|
+
export default IconButton;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type TextInputProps } from "react-native";
|
|
2
|
+
interface FormInputProps extends TextInputProps {
|
|
3
|
+
label: string;
|
|
4
|
+
error?: string;
|
|
5
|
+
tooltip?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
declare function FormInput({ label, error, tooltip, style, multiline, numberOfLines, onFocus, onBlur, className, ...props }: FormInputProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default FormInput;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { theme } from "../theme";
|
|
3
|
+
import { cn, tv } from "../theme/tw";
|
|
4
|
+
import { Typography } from "../Typography";
|
|
5
|
+
import { useState } from "react";
|
|
6
|
+
import { TextInput, View } from "react-native";
|
|
7
|
+
const inputContainer = tv({
|
|
8
|
+
base: "rounded-lg bg-bg-card shadow-sm",
|
|
9
|
+
variants: {
|
|
10
|
+
state: {
|
|
11
|
+
error: "border-2 border-danger",
|
|
12
|
+
focused: "border-2 border-ring",
|
|
13
|
+
default: "border border-input",
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
defaultVariants: { state: "default" },
|
|
17
|
+
});
|
|
18
|
+
function FormInput({ label, error, tooltip, style, multiline = false, numberOfLines = 1, onFocus, onBlur, className, ...props }) {
|
|
19
|
+
const [isFocused, setIsFocused] = useState(false);
|
|
20
|
+
const hasError = Boolean(error);
|
|
21
|
+
const handleFocus = (e) => {
|
|
22
|
+
setIsFocused(true);
|
|
23
|
+
onFocus?.(e);
|
|
24
|
+
};
|
|
25
|
+
const handleBlur = (e) => {
|
|
26
|
+
setIsFocused(false);
|
|
27
|
+
onBlur?.(e);
|
|
28
|
+
};
|
|
29
|
+
const getState = () => {
|
|
30
|
+
if (hasError)
|
|
31
|
+
return "error";
|
|
32
|
+
if (isFocused)
|
|
33
|
+
return "focused";
|
|
34
|
+
return "default";
|
|
35
|
+
};
|
|
36
|
+
return (_jsxs(View, { className: cn("mb-2", className), children: [_jsx(Typography.Text, { className: "mb-1 font-medium text-text-primary", variant: "bodySmall", children: label }), _jsx(View, { className: inputContainer({ state: getState() }), children: _jsx(TextInput, { className: cn("px-3 py-2.5 text-sm min-h-[44px] text-text-primary", multiline && "min-h-[64px] pt-2.5"), multiline: multiline, numberOfLines: numberOfLines, onBlur: handleBlur, onFocus: handleFocus, placeholderTextColor: theme.text.tertiary, textAlignVertical: multiline ? "top" : "center", ...props }) }), hasError && (_jsx(Typography.Text, { className: "mt-0.5 text-danger", variant: "bodySmall", children: error }))] }));
|
|
37
|
+
}
|
|
38
|
+
export default FormInput;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import TextInputF from "../Form/Form.TextInput";
|
|
2
|
+
import React, { FC } from "react";
|
|
3
|
+
import { TextInputProps } from "react-native";
|
|
4
|
+
export interface InputFieldProps extends TextInputProps {
|
|
5
|
+
label: string;
|
|
6
|
+
inputProps: React.ComponentProps<typeof TextInputF>;
|
|
7
|
+
error?: string;
|
|
8
|
+
}
|
|
9
|
+
declare const InputField: FC<InputFieldProps>;
|
|
10
|
+
export default InputField;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import TextInputF from "../Form/Form.TextInput";
|
|
3
|
+
import { tv } from "../theme/tw";
|
|
4
|
+
import { Typography } from "../Typography";
|
|
5
|
+
import { useState } from "react";
|
|
6
|
+
import { View } from "react-native";
|
|
7
|
+
const inputFieldBorder = tv({
|
|
8
|
+
base: "rounded p-2",
|
|
9
|
+
variants: {
|
|
10
|
+
state: {
|
|
11
|
+
error: "border-2 border-danger",
|
|
12
|
+
focused: "border-2 border-ring",
|
|
13
|
+
default: "border border-input",
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
defaultVariants: { state: "default" },
|
|
17
|
+
});
|
|
18
|
+
const InputField = ({ label, inputProps, error }) => {
|
|
19
|
+
const [isFocused, setIsFocused] = useState(false);
|
|
20
|
+
const hasError = Boolean(error);
|
|
21
|
+
const handleFocus = (e) => {
|
|
22
|
+
setIsFocused(true);
|
|
23
|
+
inputProps?.onFocus?.(e);
|
|
24
|
+
};
|
|
25
|
+
const handleBlur = (e) => {
|
|
26
|
+
setIsFocused(false);
|
|
27
|
+
inputProps?.onBlur?.(e);
|
|
28
|
+
};
|
|
29
|
+
const getState = () => {
|
|
30
|
+
if (hasError)
|
|
31
|
+
return "error";
|
|
32
|
+
if (isFocused)
|
|
33
|
+
return "focused";
|
|
34
|
+
return "default";
|
|
35
|
+
};
|
|
36
|
+
return (_jsxs(View, { className: "mb-4", children: [_jsx(Typography.Text, { className: "mb-1", variant: "bodyLarge", children: label }), _jsx(TextInputF, { className: inputFieldBorder({ state: getState() }), ...inputProps, onBlur: handleBlur, onFocus: handleFocus }), error && (_jsx(Typography.Text, { className: "mt-1 text-danger", variant: "bodySmall", children: error }))] }));
|
|
37
|
+
};
|
|
38
|
+
export default InputField;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface MonetaryInputProps {
|
|
2
|
+
amount?: number;
|
|
3
|
+
onChange?: (value: number) => void;
|
|
4
|
+
currencySymbol?: string;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
}
|
|
7
|
+
declare function MonetaryInput({ amount, onChange, currencySymbol, placeholder, }: MonetaryInputProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default MonetaryInput;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { tv } from "../theme/tw";
|
|
3
|
+
import { Typography } from "../Typography";
|
|
4
|
+
import { parseToMonetaryNumber } from "../utils/monetary";
|
|
5
|
+
import { useState } from "react";
|
|
6
|
+
import { View } from "react-native";
|
|
7
|
+
import CurrencyInput from "react-native-currency-input";
|
|
8
|
+
const monetaryBox = tv({
|
|
9
|
+
base: "justify-center items-center bg-bg-card rounded-lg",
|
|
10
|
+
variants: {
|
|
11
|
+
focused: {
|
|
12
|
+
true: "border-2 border-border-focus",
|
|
13
|
+
false: "border border-border-default",
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
defaultVariants: { focused: false },
|
|
17
|
+
});
|
|
18
|
+
function MonetaryInput({ amount, onChange, currencySymbol = "₡", placeholder = "Escriba el monto", }) {
|
|
19
|
+
const [raw, setRaw] = useState(parseToMonetaryNumber(amount));
|
|
20
|
+
const [isFocused, setIsFocused] = useState(false);
|
|
21
|
+
const handleChange = (amount) => {
|
|
22
|
+
setRaw(amount);
|
|
23
|
+
onChange?.(parseToMonetaryNumber(amount));
|
|
24
|
+
};
|
|
25
|
+
return (_jsxs(View, { className: "flex-row", children: [_jsx(View, { className: monetaryBox({ focused: isFocused, className: "w-10 h-10" }), children: _jsx(Typography.Text, { className: "text-xl", variant: "body", children: currencySymbol }) }), _jsx(View, { className: monetaryBox({ focused: isFocused, className: "flex-1 h-10 ml-2 px-4" }), children: _jsx(CurrencyInput, { delimiter: ".", keyboardType: "numeric", onBlur: () => setIsFocused(false), onChangeValue: handleChange, onFocus: () => setIsFocused(true), placeholder: placeholder, separator: ",", value: raw }) })] }));
|
|
26
|
+
}
|
|
27
|
+
export default MonetaryInput;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import InputField from "../Form/Form.InputField";
|
|
2
|
+
import React from "react";
|
|
3
|
+
export interface PasswordFieldProps {
|
|
4
|
+
label: string;
|
|
5
|
+
error?: string;
|
|
6
|
+
inputProps: React.ComponentProps<typeof InputField>["inputProps"];
|
|
7
|
+
}
|
|
8
|
+
declare const PasswordField: React.FC<PasswordFieldProps>;
|
|
9
|
+
export default PasswordField;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Ionicons } from "@expo/vector-icons";
|
|
3
|
+
import InputField from "../Form/Form.InputField";
|
|
4
|
+
import { useState } from "react";
|
|
5
|
+
import { TouchableOpacity, View } from "react-native";
|
|
6
|
+
const PasswordField = ({ label, error, inputProps }) => {
|
|
7
|
+
const [showPassword, setShowPassword] = useState(false);
|
|
8
|
+
return (_jsxs(View, { className: "mb-4 relative", children: [_jsx(InputField, { error: error, inputProps: {
|
|
9
|
+
...inputProps,
|
|
10
|
+
secureTextEntry: !showPassword,
|
|
11
|
+
autoComplete: "off",
|
|
12
|
+
importantForAutofill: "no",
|
|
13
|
+
}, label: label }), _jsx(TouchableOpacity, { className: "absolute right-3 bottom-[25px]", onPress: () => setShowPassword(!showPassword), children: _jsx(Ionicons, { className: "text-text-primary", name: showPassword ? "eye-off-outline" : "eye-outline", size: 24 }) })] }));
|
|
14
|
+
};
|
|
15
|
+
export default PasswordField;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { StyleProp, ViewStyle } from "react-native";
|
|
2
|
+
interface QuantitySelectorProps {
|
|
3
|
+
value: number;
|
|
4
|
+
onChange: (value: number) => void;
|
|
5
|
+
min?: number;
|
|
6
|
+
max?: number;
|
|
7
|
+
style?: StyleProp<ViewStyle>;
|
|
8
|
+
}
|
|
9
|
+
declare function QuantitySelector({ value, onChange, min, max, style, }: QuantitySelectorProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default QuantitySelector;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Display } from "../Display";
|
|
3
|
+
import { Typography } from "../Typography";
|
|
4
|
+
import { TouchableOpacity, View } from "react-native";
|
|
5
|
+
import { tv } from "tailwind-variants";
|
|
6
|
+
const quantitySelector = tv({
|
|
7
|
+
slots: {
|
|
8
|
+
container: "flex-row items-center border border-brand-accent rounded-full px-1",
|
|
9
|
+
button: "w-9 h-9 rounded-full justify-center items-center",
|
|
10
|
+
valueContainer: "min-w-[40px] items-center px-3",
|
|
11
|
+
},
|
|
12
|
+
variants: {
|
|
13
|
+
disabled: {
|
|
14
|
+
true: {
|
|
15
|
+
button: "opacity-50",
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
});
|
|
20
|
+
function QuantitySelector({ value, onChange, min = 1, max = 999, style, }) {
|
|
21
|
+
const handleDecrement = () => {
|
|
22
|
+
if (value > min) {
|
|
23
|
+
onChange(value - 1);
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
const handleIncrement = () => {
|
|
27
|
+
if (value < max) {
|
|
28
|
+
onChange(value + 1);
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
const decrementStyles = quantitySelector({ disabled: value <= min });
|
|
32
|
+
const incrementStyles = quantitySelector({ disabled: value >= max });
|
|
33
|
+
const containerStyles = quantitySelector();
|
|
34
|
+
return (_jsxs(View, { className: containerStyles.container(), style: style, children: [_jsx(TouchableOpacity, { className: decrementStyles.button(), disabled: value <= min, onPress: handleDecrement, children: _jsx(Display.Icon, { name: "minus", size: 16, type: "feather" }) }), _jsx(View, { className: containerStyles.valueContainer(), children: _jsx(Typography.Text, { semibold: true, variant: "body", children: value }) }), _jsx(TouchableOpacity, { className: incrementStyles.button(), disabled: value >= max, onPress: handleIncrement, children: _jsx(Display.Icon, { name: "plus", size: 16, type: "feather" }) })] }));
|
|
35
|
+
}
|
|
36
|
+
export default QuantitySelector;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Typography } from "../Typography";
|
|
3
|
+
import { TouchableOpacity, View } from "react-native";
|
|
4
|
+
import { tv } from "tailwind-variants";
|
|
5
|
+
const radioButton = tv({
|
|
6
|
+
slots: {
|
|
7
|
+
container: "flex-row items-center py-2.5 px-3 rounded-lg border-[1.5px] border-border-default bg-bg-card",
|
|
8
|
+
radioCircle: "w-[18px] h-[18px] rounded-full border-2 border-border-default mr-2 justify-center items-center",
|
|
9
|
+
radioInner: "w-[9px] h-[9px] rounded-full",
|
|
10
|
+
label: "flex-1",
|
|
11
|
+
},
|
|
12
|
+
variants: {
|
|
13
|
+
selected: {
|
|
14
|
+
true: {
|
|
15
|
+
container: "border-accent bg-accent/10",
|
|
16
|
+
radioCircle: "border-accent",
|
|
17
|
+
radioInner: "bg-accent",
|
|
18
|
+
label: "text-text-primary font-semibold",
|
|
19
|
+
},
|
|
20
|
+
false: {
|
|
21
|
+
label: "text-text-secondary",
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
defaultVariants: { selected: false },
|
|
26
|
+
});
|
|
27
|
+
function RadioButton({ label, selected, onPress }) {
|
|
28
|
+
const styles = radioButton({ selected });
|
|
29
|
+
return (_jsxs(TouchableOpacity, { activeOpacity: 0.7, className: styles.container(), onPress: onPress, children: [_jsx(View, { className: styles.radioCircle(), children: selected && _jsx(View, { className: styles.radioInner() }) }), _jsx(Typography.Text, { className: styles.label(), variant: "bodySmall", children: label })] }));
|
|
30
|
+
}
|
|
31
|
+
export default RadioButton;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface SearchBarProps {
|
|
2
|
+
value: string;
|
|
3
|
+
onChangeText: (text: string) => void;
|
|
4
|
+
placeholder?: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
declare function SearchBar({ value, onChangeText, placeholder, className, }: SearchBarProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default SearchBar;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Display } from "../Display";
|
|
3
|
+
import { theme } from "../theme";
|
|
4
|
+
import { cn, tv } from "../theme/tw";
|
|
5
|
+
import { useState } from "react";
|
|
6
|
+
import { TextInput, TouchableOpacity, View } from "react-native";
|
|
7
|
+
const Icon = Display.Icon;
|
|
8
|
+
const searchBarContainer = tv({
|
|
9
|
+
base: "flex-row items-center bg-bg-card rounded-lg px-2 h-10 shadow-sm",
|
|
10
|
+
variants: {
|
|
11
|
+
focused: {
|
|
12
|
+
true: "border-2 border-border-focus",
|
|
13
|
+
false: "border border-border-default",
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
defaultVariants: { focused: false },
|
|
17
|
+
});
|
|
18
|
+
function SearchBar({ value, onChangeText, placeholder = "Search", className, }) {
|
|
19
|
+
const [isFocused, setIsFocused] = useState(false);
|
|
20
|
+
return (_jsxs(View, { className: cn(searchBarContainer({ focused: isFocused }), className), children: [_jsx(View, { className: "mr-1 ml-0.5 items-center justify-center h-full", children: _jsx(Icon, { className: "text-text-tertiary", name: "search", size: 18, type: "ionicons" }) }), _jsx(TextInput, { className: "flex-1 h-full text-sm py-0 px-1.5 text-text-primary", onBlur: () => setIsFocused(false), onChangeText: onChangeText, onFocus: () => setIsFocused(true), placeholder: placeholder, placeholderTextColor: theme.text.tertiary, value: value }), value.length > 0 && (_jsx(TouchableOpacity, { activeOpacity: 0.7, className: "mr-0.5 ml-1 items-center justify-center h-full px-1", onPress: () => onChangeText(""), children: _jsx(Icon, { className: "text-text-tertiary", name: "x", size: 18, type: "feather" }) }))] }));
|
|
21
|
+
}
|
|
22
|
+
export default SearchBar;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { theme } from "../theme";
|
|
3
|
+
import { cn } from "../theme/tw";
|
|
4
|
+
import { TextInput } from "react-native";
|
|
5
|
+
const TextInputF = ({ className, ...props }) => {
|
|
6
|
+
return (_jsx(TextInput, { ...props, className: cn("border border-input rounded-md h-11 px-3 py-2 text-text-primary", className), placeholderTextColor: theme.text.tertiary, style: props.style }));
|
|
7
|
+
};
|
|
8
|
+
export default TextInputF;
|