@axelor/aos-mobile-ui 9.1.10 → 9.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/atoms/BorderBar/BorderBar.d.ts +9 -0
- package/lib/components/atoms/BorderBar/BorderBar.js +30 -0
- package/lib/components/atoms/BorderBar/BorderBar.js.map +1 -0
- package/lib/components/atoms/Card/Card.d.ts +2 -1
- package/lib/components/atoms/Card/Card.js +2 -2
- package/lib/components/atoms/Card/Card.js.map +1 -1
- package/lib/components/atoms/HorizontalRule/HorizontalRule.d.ts +3 -1
- package/lib/components/atoms/HorizontalRule/HorizontalRule.js +5 -7
- package/lib/components/atoms/HorizontalRule/HorizontalRule.js.map +1 -1
- package/lib/components/atoms/HtmlInput/HtmlInput.d.ts +3 -1
- package/lib/components/atoms/HtmlInput/HtmlInput.js +13 -8
- package/lib/components/atoms/HtmlInput/HtmlInput.js.map +1 -1
- package/lib/components/atoms/HtmlViewer/HtmlViewer.d.ts +10 -0
- package/lib/components/atoms/HtmlViewer/HtmlViewer.js +93 -0
- package/lib/components/atoms/HtmlViewer/HtmlViewer.js.map +1 -0
- package/lib/components/atoms/Icon/Icon.d.ts +2 -1
- package/lib/components/atoms/Icon/Icon.js +4 -5
- package/lib/components/atoms/Icon/Icon.js.map +1 -1
- package/lib/components/atoms/Input/Input.d.ts +5 -5
- package/lib/components/atoms/Input/Input.js +6 -5
- package/lib/components/atoms/Input/Input.js.map +1 -1
- package/lib/components/atoms/ProgressCircle/ProgressCircle.js +11 -7
- package/lib/components/atoms/ProgressCircle/ProgressCircle.js.map +1 -1
- package/lib/components/atoms/RadioButton/RadioButton.js +25 -21
- package/lib/components/atoms/RadioButton/RadioButton.js.map +1 -1
- package/lib/components/atoms/Screen/Screen.d.ts +1 -2
- package/lib/components/atoms/Screen/Screen.js +2 -9
- package/lib/components/atoms/Screen/Screen.js.map +1 -1
- package/lib/components/atoms/Switch/Switch.d.ts +1 -1
- package/lib/components/atoms/Switch/Switch.js +5 -5
- package/lib/components/atoms/Switch/Switch.js.map +1 -1
- package/lib/components/atoms/Text/Text.d.ts +2 -1
- package/lib/components/atoms/Text/Text.js +1 -1
- package/lib/components/atoms/Text/Text.js.map +1 -1
- package/lib/components/atoms/VerticalRule/VerticalRule.d.ts +8 -0
- package/lib/components/atoms/VerticalRule/VerticalRule.js +33 -0
- package/lib/components/atoms/VerticalRule/VerticalRule.js.map +1 -0
- package/lib/components/atoms/index.d.ts +3 -0
- package/lib/components/atoms/index.js +3 -0
- package/lib/components/atoms/index.js.map +1 -1
- package/lib/components/molecules/Alert/Alert.js +18 -30
- package/lib/components/molecules/Alert/Alert.js.map +1 -1
- package/lib/components/molecules/Badge/Badge.d.ts +2 -1
- package/lib/components/molecules/Badge/Badge.js +15 -12
- package/lib/components/molecules/Badge/Badge.js.map +1 -1
- package/lib/components/molecules/BottomSheet/BottomSheet.js +1 -1
- package/lib/components/molecules/BottomSheet/BottomSheet.js.map +1 -1
- package/lib/components/molecules/Breadcrumb/Breadcrumb.js +1 -1
- package/lib/components/molecules/Button/Button.d.ts +2 -1
- package/lib/components/molecules/Button/Button.js +6 -12
- package/lib/components/molecules/Button/Button.js.map +1 -1
- package/lib/components/molecules/CalendarLegend/CalendarLegend.d.ts +13 -0
- package/lib/components/molecules/CalendarLegend/CalendarLegend.js +89 -0
- package/lib/components/molecules/CalendarLegend/CalendarLegend.js.map +1 -0
- package/lib/components/molecules/CalendarLegend/index.d.ts +2 -0
- package/lib/components/molecules/CalendarLegend/index.js +19 -0
- package/lib/components/molecules/CalendarLegend/index.js.map +1 -0
- package/lib/components/molecules/CalendarLegend/types.d.ts +6 -0
- package/lib/components/molecules/CalendarLegend/types.js +19 -0
- package/lib/components/molecules/CalendarLegend/types.js.map +1 -0
- package/lib/components/molecules/CalendarMonthGrid/CalendarMonthGrid.d.ts +15 -0
- package/lib/components/molecules/CalendarMonthGrid/CalendarMonthGrid.js +49 -0
- package/lib/components/molecules/CalendarMonthGrid/CalendarMonthGrid.js.map +1 -0
- package/lib/components/molecules/CalendarMonthGrid/CalendarMonthTitle.d.ts +8 -0
- package/lib/components/molecules/CalendarMonthGrid/CalendarMonthTitle.js +35 -0
- package/lib/components/molecules/CalendarMonthGrid/CalendarMonthTitle.js.map +1 -0
- package/lib/components/molecules/CalendarMonthGrid/CalendarWeekDays.d.ts +7 -0
- package/lib/components/molecules/CalendarMonthGrid/CalendarWeekDays.js +44 -0
- package/lib/components/molecules/CalendarMonthGrid/CalendarWeekDays.js.map +1 -0
- package/lib/components/molecules/CalendarMonthGrid/index.d.ts +3 -0
- package/lib/components/molecules/CalendarMonthGrid/index.js +21 -0
- package/lib/components/molecules/CalendarMonthGrid/index.js.map +1 -0
- package/lib/components/molecules/CardIconButton/CardIconButton.js +1 -1
- package/lib/components/molecules/Checkbox/Checkbox.d.ts +1 -1
- package/lib/components/molecules/Checkbox/Checkbox.js +11 -27
- package/lib/components/molecules/Checkbox/Checkbox.js.map +1 -1
- package/lib/components/molecules/Chip/Chip.d.ts +1 -1
- package/lib/components/molecules/Chip/Chip.js +23 -19
- package/lib/components/molecules/Chip/Chip.js.map +1 -1
- package/lib/components/molecules/CircleButton/CircleButton.js +1 -1
- package/lib/components/molecules/CircleButton/CircleButton.js.map +1 -1
- package/lib/components/molecules/ClearableCard/ClearableCard.js +2 -7
- package/lib/components/molecules/ClearableCard/ClearableCard.js.map +1 -1
- package/lib/components/molecules/DoubleIcon/DoubleIcon.js +1 -1
- package/lib/components/molecules/DoubleIcon/DoubleIcon.js.map +1 -1
- package/lib/components/molecules/DropdownCard/DropdownCard.d.ts +4 -3
- package/lib/components/molecules/DropdownCard/DropdownCard.js +36 -55
- package/lib/components/molecules/DropdownCard/DropdownCard.js.map +1 -1
- package/lib/components/molecules/DropdownMenu/DropdownMenu.d.ts +4 -2
- package/lib/components/molecules/DropdownMenu/DropdownMenu.js +52 -26
- package/lib/components/molecules/DropdownMenu/DropdownMenu.js.map +1 -1
- package/lib/components/molecules/EditableHtmlInput/EditableHtmlInput.js +2 -3
- package/lib/components/molecules/EditableHtmlInput/EditableHtmlInput.js.map +1 -1
- package/lib/components/molecules/EditableInput/EditableInput.js +4 -17
- package/lib/components/molecules/EditableInput/EditableInput.js.map +1 -1
- package/lib/components/molecules/FormHtmlInput/FormHtmlInput.d.ts +2 -2
- package/lib/components/molecules/FormHtmlInput/FormHtmlInput.js +13 -23
- package/lib/components/molecules/FormHtmlInput/FormHtmlInput.js.map +1 -1
- package/lib/components/molecules/FormIncrementInput/FormIncrementInput.js +6 -17
- package/lib/components/molecules/FormIncrementInput/FormIncrementInput.js.map +1 -1
- package/lib/components/molecules/FormInput/FormInput.d.ts +1 -1
- package/lib/components/molecules/FormInput/FormInput.js +2 -9
- package/lib/components/molecules/FormInput/FormInput.js.map +1 -1
- package/lib/components/molecules/FormSlider/FormSlider.js +3 -13
- package/lib/components/molecules/FormSlider/FormSlider.js.map +1 -1
- package/lib/components/molecules/GroupedCard/GroupedCard.d.ts +13 -0
- package/lib/components/molecules/GroupedCard/GroupedCard.js +60 -0
- package/lib/components/molecules/GroupedCard/GroupedCard.js.map +1 -0
- package/lib/components/molecules/HorizontalRuleText/HorizontalRuleText.js +5 -6
- package/lib/components/molecules/HorizontalRuleText/HorizontalRuleText.js.map +1 -1
- package/lib/components/molecules/IconInput/IconInput.d.ts +4 -4
- package/lib/components/molecules/IconInput/IconInput.js +15 -23
- package/lib/components/molecules/IconInput/IconInput.js.map +1 -1
- package/lib/components/molecules/IconTile/IconTile.d.ts +19 -0
- package/lib/components/molecules/IconTile/IconTile.js +43 -0
- package/lib/components/molecules/IconTile/IconTile.js.map +1 -0
- package/lib/components/molecules/Increment/Increment.d.ts +1 -1
- package/lib/components/molecules/Increment/Increment.js +3 -5
- package/lib/components/molecules/Increment/Increment.js.map +1 -1
- package/lib/components/molecules/Increment/IncrementButton.js +7 -14
- package/lib/components/molecules/Increment/IncrementButton.js.map +1 -1
- package/lib/components/molecules/Label/Label.d.ts +1 -1
- package/lib/components/molecules/Label/Label.js +11 -15
- package/lib/components/molecules/Label/Label.js.map +1 -1
- package/lib/components/molecules/LabelText/LabelText.js +6 -4
- package/lib/components/molecules/LabelText/LabelText.js.map +1 -1
- package/lib/components/molecules/MovementIndicationCard/MovementIndicationCard.d.ts +6 -7
- package/lib/components/molecules/MovementIndicationCard/MovementIndicationCard.js +91 -33
- package/lib/components/molecules/MovementIndicationCard/MovementIndicationCard.js.map +1 -1
- package/lib/components/molecules/MultiValuePickerButton/MultiValuePickerButton.js +21 -33
- package/lib/components/molecules/MultiValuePickerButton/MultiValuePickerButton.js.map +1 -1
- package/lib/components/molecules/NotesCard/NotesCard.d.ts +2 -1
- package/lib/components/molecules/NotesCard/NotesCard.js +11 -15
- package/lib/components/molecules/NotesCard/NotesCard.js.map +1 -1
- package/lib/components/molecules/NumberBubble/NumberBubble.js +2 -2
- package/lib/components/molecules/NumberBubble/NumberBubble.js.map +1 -1
- package/lib/components/molecules/NumberChevronInput/NumberChevronInput.d.ts +5 -3
- package/lib/components/molecules/NumberChevronInput/NumberChevronInput.js +35 -28
- package/lib/components/molecules/NumberChevronInput/NumberChevronInput.js.map +1 -1
- package/lib/components/molecules/PanelTabs/PanelTabs.js +1 -1
- package/lib/components/molecules/PeriodNavigation/PeriodNavigation.d.ts +14 -0
- package/lib/components/molecules/PeriodNavigation/PeriodNavigation.js +45 -0
- package/lib/components/molecules/PeriodNavigation/PeriodNavigation.js.map +1 -0
- package/lib/components/molecules/RadioSelect/RadioSelect.js +8 -8
- package/lib/components/molecules/RadioSelect/RadioSelect.js.map +1 -1
- package/lib/components/molecules/RightIconButton/RightIconButton.d.ts +4 -1
- package/lib/components/molecules/RightIconButton/RightIconButton.js +8 -7
- package/lib/components/molecules/RightIconButton/RightIconButton.js.map +1 -1
- package/lib/components/molecules/SelectionContainer/SelectionContainer.d.ts +2 -1
- package/lib/components/molecules/SelectionContainer/SelectionContainer.js +46 -58
- package/lib/components/molecules/SelectionContainer/SelectionContainer.js.map +1 -1
- package/lib/components/molecules/StarScore/StarScore.d.ts +1 -1
- package/lib/components/molecules/StarScore/StarScore.js +7 -10
- package/lib/components/molecules/StarScore/StarScore.js.map +1 -1
- package/lib/components/molecules/Stepper/StepList.d.ts +2 -1
- package/lib/components/molecules/Stepper/StepList.js +14 -12
- package/lib/components/molecules/Stepper/StepList.js.map +1 -1
- package/lib/components/molecules/Stepper/Stepper.d.ts +1 -2
- package/lib/components/molecules/Stepper/Stepper.js +17 -28
- package/lib/components/molecules/Stepper/Stepper.js.map +1 -1
- package/lib/components/molecules/SwitchCard/SwitchCard.d.ts +6 -2
- package/lib/components/molecules/SwitchCard/SwitchCard.js +6 -13
- package/lib/components/molecules/SwitchCard/SwitchCard.js.map +1 -1
- package/lib/components/molecules/TextUnit/TextUnit.js +3 -3
- package/lib/components/molecules/TextUnit/TextUnit.js.map +1 -1
- package/lib/components/molecules/ToggleSwitch/ToggleSwitch.js +34 -34
- package/lib/components/molecules/ToggleSwitch/ToggleSwitch.js.map +1 -1
- package/lib/components/molecules/ViewAllContainer/ViewAllContainer.d.ts +2 -1
- package/lib/components/molecules/ViewAllContainer/ViewAllContainer.js +24 -33
- package/lib/components/molecules/ViewAllContainer/ViewAllContainer.js.map +1 -1
- package/lib/components/molecules/index.d.ts +5 -0
- package/lib/components/molecules/index.js +5 -0
- package/lib/components/molecules/index.js.map +1 -1
- package/lib/components/organisms/ActionCard/ActionCard.js +4 -5
- package/lib/components/organisms/ActionCard/ActionCard.js.map +1 -1
- package/lib/components/organisms/ActionSheet/ActionSheet.d.ts +2 -1
- package/lib/components/organisms/ActionSheet/ActionSheet.js +18 -8
- package/lib/components/organisms/ActionSheet/ActionSheet.js.map +1 -1
- package/lib/components/organisms/AgendaView/AgendaDayCell.d.ts +13 -0
- package/lib/components/organisms/AgendaView/AgendaDayCell.js +71 -0
- package/lib/components/organisms/AgendaView/AgendaDayCell.js.map +1 -0
- package/lib/components/organisms/AgendaView/AgendaDayRow.d.ts +14 -0
- package/lib/components/organisms/AgendaView/AgendaDayRow.js +65 -0
- package/lib/components/organisms/AgendaView/AgendaDayRow.js.map +1 -0
- package/lib/components/organisms/AgendaView/AgendaHeader.d.ts +12 -0
- package/lib/components/organisms/AgendaView/AgendaHeader.js +44 -0
- package/lib/components/organisms/AgendaView/AgendaHeader.js.map +1 -0
- package/lib/components/organisms/AgendaView/AgendaItemRow.d.ts +8 -0
- package/lib/components/organisms/AgendaView/AgendaItemRow.js +58 -0
- package/lib/components/organisms/AgendaView/AgendaItemRow.js.map +1 -0
- package/lib/components/organisms/AgendaView/AgendaMonth.d.ts +16 -0
- package/lib/components/organisms/AgendaView/AgendaMonth.js +26 -0
- package/lib/components/organisms/AgendaView/AgendaMonth.js.map +1 -0
- package/lib/components/organisms/AgendaView/AgendaMonthSeparator.d.ts +7 -0
- package/lib/components/organisms/AgendaView/AgendaMonthSeparator.js +41 -0
- package/lib/components/organisms/AgendaView/AgendaMonthSeparator.js.map +1 -0
- package/lib/components/organisms/AgendaView/AgendaView.d.ts +24 -0
- package/lib/components/organisms/AgendaView/AgendaView.js +134 -0
- package/lib/components/organisms/AgendaView/AgendaView.js.map +1 -0
- package/lib/components/organisms/AgendaView/MonthList.d.ts +16 -0
- package/lib/components/organisms/AgendaView/MonthList.js +64 -0
- package/lib/components/organisms/AgendaView/MonthList.js.map +1 -0
- package/lib/components/organisms/AgendaView/MonthPanel.d.ts +17 -0
- package/lib/components/organisms/AgendaView/MonthPanel.js +108 -0
- package/lib/components/organisms/AgendaView/MonthPanel.js.map +1 -0
- package/lib/components/organisms/AgendaView/agenda-view.helpers.d.ts +6 -0
- package/lib/components/organisms/AgendaView/agenda-view.helpers.js +53 -0
- package/lib/components/organisms/AgendaView/agenda-view.helpers.js.map +1 -0
- package/lib/components/organisms/AgendaView/index.d.ts +3 -0
- package/lib/components/organisms/AgendaView/index.js +20 -0
- package/lib/components/organisms/AgendaView/index.js.map +1 -0
- package/lib/components/organisms/AgendaView/types.d.ts +12 -0
- package/lib/components/organisms/AgendaView/types.js +19 -0
- package/lib/components/organisms/AgendaView/types.js.map +1 -0
- package/lib/components/organisms/AgendaView/use-month-panel-drag.d.ts +13 -0
- package/lib/components/organisms/AgendaView/use-month-panel-drag.js +77 -0
- package/lib/components/organisms/AgendaView/use-month-panel-drag.js.map +1 -0
- package/lib/components/organisms/AutoCompleteSearch/AutoCompleteSearch.js +5 -5
- package/lib/components/organisms/AutoCompleteSearch/AutoCompleteSearch.js.map +1 -1
- package/lib/components/organisms/AutoCompleteSearch/ItemCard.d.ts +2 -2
- package/lib/components/organisms/AutoCompleteSearch/ItemCard.js +13 -20
- package/lib/components/organisms/AutoCompleteSearch/ItemCard.js.map +1 -1
- package/lib/components/organisms/AutoCompleteSearch/SearchDetailsPopUp.js +8 -9
- package/lib/components/organisms/AutoCompleteSearch/SearchDetailsPopUp.js.map +1 -1
- package/lib/components/organisms/CalendarRangePicker/CalendarDaySheet.d.ts +12 -0
- package/lib/components/organisms/CalendarRangePicker/CalendarDaySheet.js +60 -0
- package/lib/components/organisms/CalendarRangePicker/CalendarDaySheet.js.map +1 -0
- package/lib/components/organisms/CalendarRangePicker/CalendarRangePicker.d.ts +28 -0
- package/lib/components/organisms/CalendarRangePicker/CalendarRangePicker.js +140 -0
- package/lib/components/organisms/CalendarRangePicker/CalendarRangePicker.js.map +1 -0
- package/lib/components/organisms/CalendarRangePicker/DayCell.d.ts +17 -0
- package/lib/components/organisms/CalendarRangePicker/DayCell.js +131 -0
- package/lib/components/organisms/CalendarRangePicker/DayCell.js.map +1 -0
- package/lib/components/organisms/CalendarRangePicker/RangeMonth.d.ts +18 -0
- package/lib/components/organisms/CalendarRangePicker/RangeMonth.js +35 -0
- package/lib/components/organisms/CalendarRangePicker/RangeMonth.js.map +1 -0
- package/lib/components/organisms/CalendarRangePicker/calendar-range.helpers.d.ts +12 -0
- package/lib/components/organisms/CalendarRangePicker/calendar-range.helpers.js +68 -0
- package/lib/components/organisms/CalendarRangePicker/calendar-range.helpers.js.map +1 -0
- package/lib/components/organisms/CalendarRangePicker/index.d.ts +2 -0
- package/lib/components/organisms/CalendarRangePicker/index.js +19 -0
- package/lib/components/organisms/CalendarRangePicker/index.js.map +1 -0
- package/lib/components/organisms/CalendarRangePicker/types.d.ts +11 -0
- package/lib/components/organisms/CalendarRangePicker/types.js +19 -0
- package/lib/components/organisms/CalendarRangePicker/types.js.map +1 -0
- package/lib/components/organisms/ChipSelect/ChipSelect.js +24 -21
- package/lib/components/organisms/ChipSelect/ChipSelect.js.map +1 -1
- package/lib/components/organisms/DropdownCardSwitch/DropdownCardSwitch.d.ts +2 -0
- package/lib/components/organisms/DropdownCardSwitch/DropdownCardSwitch.js +2 -2
- package/lib/components/organisms/DropdownCardSwitch/DropdownCardSwitch.js.map +1 -1
- package/lib/components/organisms/DropdownMenuItem/DropdownMenuItem.d.ts +3 -2
- package/lib/components/organisms/DropdownMenuItem/DropdownMenuItem.js +36 -34
- package/lib/components/organisms/DropdownMenuItem/DropdownMenuItem.js.map +1 -1
- package/lib/components/organisms/FloatingButton/FloatingActionButton.d.ts +2 -2
- package/lib/components/organisms/FloatingButton/FloatingActionButton.js +2 -1
- package/lib/components/organisms/FloatingButton/FloatingActionButton.js.map +1 -1
- package/lib/components/organisms/GanttView/GanttView.d.ts +36 -0
- package/lib/components/organisms/GanttView/GanttView.js +267 -0
- package/lib/components/organisms/GanttView/GanttView.js.map +1 -0
- package/lib/components/organisms/GanttView/body/GanttBar.d.ts +12 -0
- package/lib/components/organisms/GanttView/body/GanttBar.js +52 -0
- package/lib/components/organisms/GanttView/body/GanttBar.js.map +1 -0
- package/lib/components/organisms/GanttView/body/GanttCellStrip.d.ts +10 -0
- package/lib/components/organisms/GanttView/body/GanttCellStrip.js +55 -0
- package/lib/components/organisms/GanttView/body/GanttCellStrip.js.map +1 -0
- package/lib/components/organisms/GanttView/body/GanttGridLines.d.ts +9 -0
- package/lib/components/organisms/GanttView/body/GanttGridLines.js +45 -0
- package/lib/components/organisms/GanttView/body/GanttGridLines.js.map +1 -0
- package/lib/components/organisms/GanttView/body/GanttGroupHeader.d.ts +9 -0
- package/lib/components/organisms/GanttView/body/GanttGroupHeader.js +61 -0
- package/lib/components/organisms/GanttView/body/GanttGroupHeader.js.map +1 -0
- package/lib/components/organisms/GanttView/body/GanttGroupLane.d.ts +10 -0
- package/lib/components/organisms/GanttView/body/GanttGroupLane.js +43 -0
- package/lib/components/organisms/GanttView/body/GanttGroupLane.js.map +1 -0
- package/lib/components/organisms/GanttView/body/GanttRowLane.d.ts +13 -0
- package/lib/components/organisms/GanttView/body/GanttRowLane.js +53 -0
- package/lib/components/organisms/GanttView/body/GanttRowLane.js.map +1 -0
- package/lib/components/organisms/GanttView/body/GanttRowName.d.ts +9 -0
- package/lib/components/organisms/GanttView/body/GanttRowName.js +51 -0
- package/lib/components/organisms/GanttView/body/GanttRowName.js.map +1 -0
- package/lib/components/organisms/GanttView/body/index.d.ts +6 -0
- package/lib/components/organisms/GanttView/body/index.js +24 -0
- package/lib/components/organisms/GanttView/body/index.js.map +1 -0
- package/lib/components/organisms/GanttView/gantt-view.helpers.d.ts +19 -0
- package/lib/components/organisms/GanttView/gantt-view.helpers.js +219 -0
- package/lib/components/organisms/GanttView/gantt-view.helpers.js.map +1 -0
- package/lib/components/organisms/GanttView/gantt-view.styles.d.ts +124 -0
- package/lib/components/organisms/GanttView/gantt-view.styles.js +148 -0
- package/lib/components/organisms/GanttView/gantt-view.styles.js.map +1 -0
- package/lib/components/organisms/GanttView/header/GanttControls.d.ts +13 -0
- package/lib/components/organisms/GanttView/header/GanttControls.js +53 -0
- package/lib/components/organisms/GanttView/header/GanttControls.js.map +1 -0
- package/lib/components/organisms/GanttView/header/GanttHeader.d.ts +24 -0
- package/lib/components/organisms/GanttView/header/GanttHeader.js +75 -0
- package/lib/components/organisms/GanttView/header/GanttHeader.js.map +1 -0
- package/lib/components/organisms/GanttView/header/index.d.ts +1 -0
- package/lib/components/organisms/GanttView/header/index.js +19 -0
- package/lib/components/organisms/GanttView/header/index.js.map +1 -0
- package/lib/components/organisms/GanttView/index.d.ts +4 -0
- package/lib/components/organisms/GanttView/index.js +21 -0
- package/lib/components/organisms/GanttView/index.js.map +1 -0
- package/lib/components/organisms/GanttView/scale/GanttScaleDayRow.d.ts +10 -0
- package/lib/components/organisms/GanttView/scale/GanttScaleDayRow.js +67 -0
- package/lib/components/organisms/GanttView/scale/GanttScaleDayRow.js.map +1 -0
- package/lib/components/organisms/GanttView/scale/GanttScaleHeader.d.ts +15 -0
- package/lib/components/organisms/GanttView/scale/GanttScaleHeader.js +46 -0
- package/lib/components/organisms/GanttView/scale/GanttScaleHeader.js.map +1 -0
- package/lib/components/organisms/GanttView/scale/GanttScaleSpanRow.d.ts +8 -0
- package/lib/components/organisms/GanttView/scale/GanttScaleSpanRow.js +69 -0
- package/lib/components/organisms/GanttView/scale/GanttScaleSpanRow.js.map +1 -0
- package/lib/components/organisms/GanttView/scale/gantt-scale.helpers.d.ts +6 -0
- package/lib/components/organisms/GanttView/scale/gantt-scale.helpers.js +53 -0
- package/lib/components/organisms/GanttView/scale/gantt-scale.helpers.js.map +1 -0
- package/lib/components/organisms/GanttView/scale/index.d.ts +1 -0
- package/lib/components/organisms/GanttView/scale/index.js +19 -0
- package/lib/components/organisms/GanttView/scale/index.js.map +1 -0
- package/lib/components/organisms/GanttView/types.d.ts +87 -0
- package/lib/components/organisms/GanttView/types.js +19 -0
- package/lib/components/organisms/GanttView/types.js.map +1 -0
- package/lib/components/organisms/GanttView/use-default-zoom.d.ts +2 -0
- package/lib/components/organisms/GanttView/use-default-zoom.js +23 -0
- package/lib/components/organisms/GanttView/use-default-zoom.js.map +1 -0
- package/lib/components/organisms/GroupByScrollList/GroupByScrollList.js +6 -2
- package/lib/components/organisms/GroupByScrollList/GroupByScrollList.js.map +1 -1
- package/lib/components/organisms/HeaderContainer/HeaderContainer.js +21 -17
- package/lib/components/organisms/HeaderContainer/HeaderContainer.js.map +1 -1
- package/lib/components/organisms/ImageBubble/ImageBubble.d.ts +1 -1
- package/lib/components/organisms/ImageBubble/ImageBubble.js +4 -7
- package/lib/components/organisms/ImageBubble/ImageBubble.js.map +1 -1
- package/lib/components/organisms/InfoBubble/InfoBubble.js +1 -1
- package/lib/components/organisms/InfoBubble/InfoBubble.js.map +1 -1
- package/lib/components/organisms/InfoButton/InfoButton.d.ts +1 -1
- package/lib/components/organisms/MultiValuePicker/MultiValuePicker.js +6 -10
- package/lib/components/organisms/MultiValuePicker/MultiValuePicker.js.map +1 -1
- package/lib/components/organisms/Picker/Picker.d.ts +2 -1
- package/lib/components/organisms/Picker/Picker.js +25 -29
- package/lib/components/organisms/Picker/Picker.js.map +1 -1
- package/lib/components/organisms/ProgressBar/ProgressBar.d.ts +1 -1
- package/lib/components/organisms/ProgressBar/ProgressBar.js +11 -16
- package/lib/components/organisms/ProgressBar/ProgressBar.js.map +1 -1
- package/lib/components/organisms/QuantityCard/QuantityCard.d.ts +3 -2
- package/lib/components/organisms/QuantityCard/QuantityCard.js +47 -56
- package/lib/components/organisms/QuantityCard/QuantityCard.js.map +1 -1
- package/lib/components/organisms/ScrollList/DottedButton.js +10 -18
- package/lib/components/organisms/ScrollList/DottedButton.js.map +1 -1
- package/lib/components/organisms/ScrollList/ScrollList.js +9 -7
- package/lib/components/organisms/ScrollList/ScrollList.js.map +1 -1
- package/lib/components/organisms/ScrollList/TopActions.js +5 -3
- package/lib/components/organisms/ScrollList/TopActions.js.map +1 -1
- package/lib/components/organisms/SearchBar/SearchBar.d.ts +3 -3
- package/lib/components/organisms/SearchBar/SearchBar.js +15 -32
- package/lib/components/organisms/SearchBar/SearchBar.js.map +1 -1
- package/lib/components/organisms/SingleSelectScrollList/SingleSelectScrollList.js +1 -1
- package/lib/components/organisms/ToggleButton/ToggleButton.js +2 -2
- package/lib/components/organisms/ToggleButton/ToggleButton.js.map +1 -1
- package/lib/components/organisms/ViewAllEditList/AllLinesAlert.js +14 -16
- package/lib/components/organisms/ViewAllEditList/AllLinesAlert.js.map +1 -1
- package/lib/components/organisms/ViewAllEditList/LineComponent.js +6 -8
- package/lib/components/organisms/ViewAllEditList/LineComponent.js.map +1 -1
- package/lib/components/organisms/ViewAllEditList/ViewAllEditList.d.ts +3 -2
- package/lib/components/organisms/ViewAllEditList/ViewAllEditList.js +5 -9
- package/lib/components/organisms/ViewAllEditList/ViewAllEditList.js.map +1 -1
- package/lib/components/organisms/WeekDayPicker/DayGauge.d.ts +18 -0
- package/lib/components/organisms/WeekDayPicker/DayGauge.js +112 -0
- package/lib/components/organisms/WeekDayPicker/DayGauge.js.map +1 -0
- package/lib/components/organisms/WeekDayPicker/WeekDayPicker.d.ts +18 -0
- package/lib/components/organisms/WeekDayPicker/WeekDayPicker.js +118 -0
- package/lib/components/organisms/WeekDayPicker/WeekDayPicker.js.map +1 -0
- package/lib/components/organisms/WeekDayPicker/WeekRow.d.ts +15 -0
- package/lib/components/organisms/WeekDayPicker/WeekRow.js +39 -0
- package/lib/components/organisms/WeekDayPicker/WeekRow.js.map +1 -0
- package/lib/components/organisms/WeekDayPicker/index.d.ts +3 -0
- package/lib/components/organisms/WeekDayPicker/index.js +20 -0
- package/lib/components/organisms/WeekDayPicker/index.js.map +1 -0
- package/lib/components/organisms/WeekDayPicker/types.d.ts +17 -0
- package/lib/components/organisms/WeekDayPicker/types.js +19 -0
- package/lib/components/organisms/WeekDayPicker/types.js.map +1 -0
- package/lib/components/organisms/WeekDayPicker/week-day.helpers.d.ts +9 -0
- package/lib/components/organisms/WeekDayPicker/week-day.helpers.js +83 -0
- package/lib/components/organisms/WeekDayPicker/week-day.helpers.js.map +1 -0
- package/lib/components/organisms/index.d.ts +4 -0
- package/lib/components/organisms/index.js +4 -0
- package/lib/components/organisms/index.js.map +1 -1
- package/lib/components/templates/BottomBar/BottomBar.js +81 -22
- package/lib/components/templates/BottomBar/BottomBar.js.map +1 -1
- package/lib/components/templates/BottomBar/ItemTitle.d.ts +1 -1
- package/lib/components/templates/BottomBar/ItemTitle.js +1 -2
- package/lib/components/templates/BottomBar/ItemTitle.js.map +1 -1
- package/lib/components/templates/Dashboard/Chart/BarChart.js +3 -3
- package/lib/components/templates/Dashboard/Chart/BarChart.js.map +1 -1
- package/lib/components/templates/Dashboard/Chart/IndicatorChart/IndicatorItem.js +1 -1
- package/lib/components/templates/Dashboard/Chart/IndicatorChart/IndicatorItem.js.map +1 -1
- package/lib/components/templates/Dashboard/Chart/IndicatorChart/SimpleIndicator.js +24 -20
- package/lib/components/templates/Dashboard/Chart/IndicatorChart/SimpleIndicator.js.map +1 -1
- package/lib/components/templates/ObjectCard/ObjectCard.d.ts +3 -2
- package/lib/components/templates/ObjectCard/ObjectCard.js +46 -32
- package/lib/components/templates/ObjectCard/ObjectCard.js.map +1 -1
- package/lib/components/templates/TabsScreen/Tab.js +1 -1
- package/lib/components/templates/TabsScreen/Tab.js.map +1 -1
- package/lib/hooks/index.d.ts +1 -0
- package/lib/hooks/index.js +1 -0
- package/lib/hooks/index.js.map +1 -1
- package/lib/hooks/use-click-outside.js +2 -2
- package/lib/hooks/use-click-outside.js.map +1 -1
- package/lib/hooks/use-orientation.d.ts +1 -0
- package/lib/hooks/use-orientation.js +23 -0
- package/lib/hooks/use-orientation.js.map +1 -0
- package/lib/theme/color/ThemeContext.js +1 -1
- package/lib/theme/color/ThemeContext.js.map +1 -1
- package/lib/theme/color/color.defaults.js +22 -22
- package/lib/theme/color/content.helpers.d.ts +2 -1
- package/lib/theme/color/content.helpers.js +47 -45
- package/lib/theme/color/content.helpers.js.map +1 -1
- package/lib/theme/color/themes.js +83 -80
- package/lib/theme/color/themes.js.map +1 -1
- package/lib/theme/color/types.d.ts +1 -0
- package/lib/theme/writing/writingTheme.js +5 -5
- package/lib/tools/AnimationUtil.d.ts +18 -3
- package/lib/utils/calendar.d.ts +42 -0
- package/lib/utils/calendar.js +64 -0
- package/lib/utils/calendar.js.map +1 -0
- package/lib/utils/commons-styles.d.ts +8 -20
- package/lib/utils/commons-styles.js +14 -22
- package/lib/utils/commons-styles.js.map +1 -1
- package/lib/utils/commons-utlis.d.ts +1 -0
- package/lib/utils/commons-utlis.js +7 -0
- package/lib/utils/commons-utlis.js.map +1 -1
- package/lib/utils/dates.d.ts +30 -0
- package/lib/utils/dates.js +142 -0
- package/lib/utils/dates.js.map +1 -0
- package/lib/utils/index.d.ts +10 -8
- package/lib/utils/index.js +4 -2
- package/lib/utils/index.js.map +1 -1
- package/package.json +14 -14
|
@@ -25,7 +25,7 @@ const FIXED_ITEMS_NOT_DISPLAY_HEIGHT = FIXED_CONTAINER_PADDING_VERTICAL * 2 + 1;
|
|
|
25
25
|
const immersiveMode = async () => {
|
|
26
26
|
await SystemNavigationBar.navigationHide();
|
|
27
27
|
};
|
|
28
|
-
const Screen = ({ style, children, fixedItems,
|
|
28
|
+
const Screen = ({ style, children, fixedItems, loading = false, hideButtonBackground = false, }) => {
|
|
29
29
|
const Colors = useThemeColor();
|
|
30
30
|
const styles = useMemo(() => getStyles(Colors), [Colors]);
|
|
31
31
|
const { showActivityIndicator } = useConfig();
|
|
@@ -46,11 +46,7 @@ const Screen = ({ style, children, fixedItems, removeSpaceOnTop = false, loading
|
|
|
46
46
|
if (loading) {
|
|
47
47
|
return <ActivityIndicator testID="loadingIndicator" size="large"/>;
|
|
48
48
|
}
|
|
49
|
-
return (<View testID="screenRoot" pointerEvents={showActivityIndicator === true ? 'none' : 'auto'} style={[
|
|
50
|
-
styles.container,
|
|
51
|
-
removeSpaceOnTop ? null : styles.marginTop,
|
|
52
|
-
style,
|
|
53
|
-
]}>
|
|
49
|
+
return (<View testID="screenRoot" pointerEvents={showActivityIndicator === true ? 'none' : 'auto'} style={[styles.container, style]}>
|
|
54
50
|
<View style={styles.childrenContainer}>{children}</View>
|
|
55
51
|
{!!fixedItems && (<View testID="screenFixedItemsContainer" style={fixedItemsHeight > FIXED_ITEMS_NOT_DISPLAY_HEIGHT && [
|
|
56
52
|
styles.fixedContainer,
|
|
@@ -89,9 +85,6 @@ const getStyles = (Colors) => StyleSheet.create({
|
|
|
89
85
|
shadowColor: Colors.secondaryColor.background,
|
|
90
86
|
shadowOffset: { width: 0, height: 0 },
|
|
91
87
|
},
|
|
92
|
-
marginTop: {
|
|
93
|
-
paddingTop: '1.5%',
|
|
94
|
-
},
|
|
95
88
|
});
|
|
96
89
|
export default Screen;
|
|
97
90
|
//# sourceMappingURL=Screen.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Screen.js","sourceRoot":"","sources":["../../../../src/components/atoms/Screen/Screen.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AAC1D,OAAO,EAAC,iBAAiB,EAAE,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAC,MAAM,cAAc,CAAC;AAC3E,OAAO,mBAAmB,MAAM,oCAAoC,CAAC;AACrE,OAAO,EAAc,aAAa,EAAC,MAAM,gBAAgB,CAAC;AAC1D,OAAO,EAAC,SAAS,EAAC,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"Screen.js","sourceRoot":"","sources":["../../../../src/components/atoms/Screen/Screen.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AAC1D,OAAO,EAAC,iBAAiB,EAAE,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAC,MAAM,cAAc,CAAC;AAC3E,OAAO,mBAAmB,MAAM,oCAAoC,CAAC;AACrE,OAAO,EAAc,aAAa,EAAC,MAAM,gBAAgB,CAAC;AAC1D,OAAO,EAAC,SAAS,EAAC,MAAM,+BAA+B,CAAC;AAUxD,MAAM,gCAAgC,GAAG,EAAE,CAAC;AAC5C,MAAM,8BAA8B,GAAG,gCAAgC,GAAG,CAAC,GAAG,CAAC,CAAC;A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ClC,SAAS,EAAE,EAAE;QACb,aAAa,EAAE,GAAG;QAClB,WAAW,EAAE,MAAM,CAAC,cAAc,CAAC,UAAU;QAC7C,YAAY,EAAE,EAAC,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAC;KACpC;CACF,CAAC,CAAC;AAEL,eAAe,MAAM,CAAC"}
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
interface SwitchProps {
|
|
3
3
|
style?: any;
|
|
4
4
|
isEnabled: boolean;
|
|
5
|
-
handleToggle: (value
|
|
5
|
+
handleToggle: (value: boolean) => void;
|
|
6
6
|
readonly?: boolean;
|
|
7
7
|
}
|
|
8
8
|
declare const Switch: ({ style, isEnabled, handleToggle, readonly, }: SwitchProps) => React.JSX.Element;
|
|
@@ -15,17 +15,17 @@
|
|
|
15
15
|
* You should have received a copy of the GNU Affero General Public License
|
|
16
16
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
17
|
*/
|
|
18
|
-
import React from 'react';
|
|
18
|
+
import React, { useCallback } from 'react';
|
|
19
19
|
import { Switch as RNSwitch } from 'react-native';
|
|
20
20
|
import { useThemeColor } from '../../../theme';
|
|
21
21
|
const Switch = ({ style, isEnabled, handleToggle, readonly = false, }) => {
|
|
22
22
|
const Colors = useThemeColor();
|
|
23
|
-
const toggleSwitch = () => {
|
|
24
|
-
handleToggle(!isEnabled);
|
|
25
|
-
};
|
|
23
|
+
const toggleSwitch = useCallback(() => {
|
|
24
|
+
handleToggle?.(!isEnabled);
|
|
25
|
+
}, [handleToggle, isEnabled]);
|
|
26
26
|
return (<RNSwitch style={style} trackColor={{
|
|
27
27
|
false: Colors.secondaryColor.background_light,
|
|
28
|
-
true: Colors.primaryColor.
|
|
28
|
+
true: Colors.primaryColor.background,
|
|
29
29
|
}} thumbColor={Colors.secondaryColor_dark.background} ios_backgroundColor={Colors.backgroundColor} onValueChange={toggleSwitch} value={isEnabled} disabled={readonly}/>);
|
|
30
30
|
};
|
|
31
31
|
export default Switch;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Switch.js","sourceRoot":"","sources":["../../../../src/components/atoms/Switch/Switch.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Switch.js","sourceRoot":"","sources":["../../../../src/components/atoms/Switch/Switch.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,WAAW,EAAC,MAAM,OAAO,CAAC;AACzC,OAAO,EAAC,MAAM,IAAI,QAAQ,EAAC,MAAM,cAAc,CAAC;AAChD,OAAO,EAAC,aAAa,EAAC,MAAM,gBAAgB,CAAC;AAS7C,MAAM,MAAM,GAAG,CAAC,EACd,KAAK,EACL,SAAS,EACT,YAAY,EACZ,QAAQ,GAAG,KAAK,GACJ,EAAE,EAAE;IAChB,MAAM,MAAM,GAAG,aAAa,EAAE,CAAC;IAE/B,MAAM,YAAY,GAAG,WAAW,CAAC,GAAG,EAAE;QACpC,YAAY,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC;IAC7B,CAAC,EAAE,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC,CAAC;IAE9B,OAAO,CACL,CAAC,QAAQ,CACP,KAAK,CAAC,CAAC,KAAK,CAAC,CACb,UAAU,CAAC,CAAC;YACV,KAAK,EAAE,MAAM,CAAC,cAAc,CAAC,gBAAgB;YAC7C,IAAI,EAAE,MAAM,CAAC,YAAY,CAAC,UAAU;SACrC,CAAC,CACF,UAAU,CAAC,CAAC,MAAM,CAAC,mBAAmB,CAAC,UAAU,CAAC,CAClD,mBAAmB,CAAC,CAAC,MAAM,CAAC,eAAe,CAAC,CAC5C,aAAa,CAAC,CAAC,YAAY,CAAC,CAC5B,KAAK,CAAC,CAAC,SAAS,CAAC,CACjB,QAAQ,CAAC,CAAC,QAAQ,CAAC,EACnB,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { TextLayoutEvent } from 'react-native';
|
|
2
3
|
export interface TextProps {
|
|
3
4
|
style?: any;
|
|
4
5
|
numberOfLines?: number;
|
|
5
6
|
adjustsFontSizeToFit?: boolean;
|
|
6
|
-
onTextLayout?: (
|
|
7
|
+
onTextLayout?: (event: TextLayoutEvent) => void;
|
|
7
8
|
children: any;
|
|
8
9
|
textColor?: string;
|
|
9
10
|
fontSize?: number;
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
17
|
*/
|
|
18
18
|
import React, { useMemo } from 'react';
|
|
19
|
-
import { Text as ReactNativeText } from 'react-native';
|
|
19
|
+
import { Text as ReactNativeText, } from 'react-native';
|
|
20
20
|
import { useThemeColor, useWritingType } from '../../../theme';
|
|
21
21
|
const Text = ({ style, numberOfLines, adjustsFontSizeToFit = false, onTextLayout, children, textColor, fontSize, writingType, }) => {
|
|
22
22
|
const Colors = useThemeColor();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.js","sourceRoot":"","sources":["../../../../src/components/atoms/Text/Text.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,OAAO,EAAC,MAAM,OAAO,CAAC;AACrC,OAAO,
|
|
1
|
+
{"version":3,"file":"Text.js","sourceRoot":"","sources":["../../../../src/components/atoms/Text/Text.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,OAAO,EAAC,MAAM,OAAO,CAAC;AACrC,OAAO,EACL,IAAI,IAAI,eAAe,GAGxB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAC,aAAa,EAAE,cAAc,EAAC,MAAM,gBAAgB,CAAC;AAa7D,MAAM,IAAI,GAAG,CAAC,EACZ,KAAK,EACL,aAAa,EACb,oBAAoB,GAAG,KAAK,EAC5B,YAAY,EACZ,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,WAAW,GACD,EAAE,EAAE;IACd,MAAM,MAAM,GAAG,aAAa,EAAE,CAAC;IAC/B,MAAM,YAAY,GAAG,cAAc,CAAC,WAAW,CAAC,CAAC;IAEjD,MAAM,YAAY,GAAc,OAAO,CAAC,GAAG,EAAE;QAC3C,OAAO;YACL,GAAG,YAAY;YACf,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI;YAC1C,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC,QAAQ;SACtD,CAAC;IACJ,CAAC,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,YAAY,CAAC,CAAC,CAAC;IAErD,OAAO,CACL,CAAC,eAAe,CACd,KAAK,CAAC,CAAC,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC,CAC7B,aAAa,CAAC,CAAC,aAAa,CAAC,CAC7B,oBAAoB,CAAC,CAAC,oBAAoB,CAAC,CAC3C,YAAY,CAAC,CAAC,YAAY,CAAC,CAC3B;MAAA,CAAC,QAAQ,CACX;IAAA,EAAE,eAAe,CAAC,CACnB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Axelor Business Solutions
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2026 Axelor (<http://axelor.com>).
|
|
5
|
+
*
|
|
6
|
+
* This program is free software: you can redistribute it and/or modify
|
|
7
|
+
* it under the terms of the GNU Affero General Public License, version 3,
|
|
8
|
+
* as published by the Free Software Foundation.
|
|
9
|
+
*
|
|
10
|
+
* This program is distributed in the hope that it will be useful,
|
|
11
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
* GNU Affero General Public License for more details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
16
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
import React, { useMemo } from 'react';
|
|
19
|
+
import { View, StyleSheet } from 'react-native';
|
|
20
|
+
import { useThemeColor } from '../../../theme';
|
|
21
|
+
const VerticalRule = ({ style, color, width }) => {
|
|
22
|
+
const Colors = useThemeColor();
|
|
23
|
+
const styles = useMemo(() => getStyles(color ?? Colors.secondaryColor.background, width), [Colors.secondaryColor.background, color, width]);
|
|
24
|
+
return <View testID="verticalRule" style={[styles.line, style]}/>;
|
|
25
|
+
};
|
|
26
|
+
const getStyles = (_color, width) => StyleSheet.create({
|
|
27
|
+
line: {
|
|
28
|
+
borderLeftColor: _color,
|
|
29
|
+
borderLeftWidth: width ?? 1,
|
|
30
|
+
},
|
|
31
|
+
});
|
|
32
|
+
export default VerticalRule;
|
|
33
|
+
//# sourceMappingURL=VerticalRule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VerticalRule.js","sourceRoot":"","sources":["../../../../src/components/atoms/VerticalRule/VerticalRule.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,OAAO,EAAC,MAAM,OAAO,CAAC;AACrC,OAAO,EAAC,IAAI,EAAE,UAAU,EAAC,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAC,aAAa,EAAC,MAAM,gBAAgB,CAAC;AAQ7C,MAAM,YAAY,GAAG,CAAC,EAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAoB,EAAE,EAAE;IAChE,MAAM,MAAM,GAAG,aAAa,EAAE,CAAC;IAE/B,MAAM,MAAM,GAAG,OAAO,CACpB,GAAG,EAAE,CAAC,SAAS,CAAC,KAAK,IAAI,MAAM,CAAC,cAAc,CAAC,UAAU,EAAE,KAAK,CAAC,EACjE,CAAC,MAAM,CAAC,cAAc,CAAC,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CACjD,CAAC;IAEF,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,EAAG,CAAC;AACrE,CAAC,CAAC;AAEF,MAAM,SAAS,GAAG,CAAC,MAAc,EAAE,KAAc,EAAE,EAAE,CACnD,UAAU,CAAC,MAAM,CAAC;IAChB,IAAI,EAAE;QACJ,eAAe,EAAE,MAAM;QACvB,eAAe,EAAE,KAAK,IAAI,CAAC;KAC5B;CACF,CAAC,CAAC;AAEL,eAAe,YAAY,CAAC"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
export { default as BlockInteractionScreen } from './BlockInteractionScreen/BlockInteractionScreen';
|
|
2
2
|
export { default as BootstrapIcon } from './BootstrapIcon/BootstrapIcon';
|
|
3
|
+
export { default as BorderBar } from './BorderBar/BorderBar';
|
|
3
4
|
export { default as Card } from './Card/Card';
|
|
4
5
|
export { default as DottedLine } from './DottedLine/DottedLine';
|
|
5
6
|
export { default as HorizontalRule } from './HorizontalRule/HorizontalRule';
|
|
6
7
|
export { default as HtmlInput } from './HtmlInput/HtmlInput';
|
|
8
|
+
export { default as HtmlViewer } from './HtmlViewer/HtmlViewer';
|
|
7
9
|
export { default as Icon } from './Icon/Icon';
|
|
8
10
|
export { default as Input } from './Input/Input';
|
|
9
11
|
export { default as KeyboardAvoidingScrollView, DEFAULT_OFFSET, } from './KeyboardAvoidingScrollView/KeyboardAvoidingScrollView';
|
|
@@ -14,3 +16,4 @@ export { default as ScrollView } from './ScrollView/ScrollView';
|
|
|
14
16
|
export { default as Slider } from './Slider/Slider';
|
|
15
17
|
export { default as Switch } from './Switch/Switch';
|
|
16
18
|
export { default as Text } from './Text/Text';
|
|
19
|
+
export { default as VerticalRule } from './VerticalRule/VerticalRule';
|
|
@@ -17,10 +17,12 @@
|
|
|
17
17
|
*/
|
|
18
18
|
export { default as BlockInteractionScreen } from './BlockInteractionScreen/BlockInteractionScreen';
|
|
19
19
|
export { default as BootstrapIcon } from './BootstrapIcon/BootstrapIcon';
|
|
20
|
+
export { default as BorderBar } from './BorderBar/BorderBar';
|
|
20
21
|
export { default as Card } from './Card/Card';
|
|
21
22
|
export { default as DottedLine } from './DottedLine/DottedLine';
|
|
22
23
|
export { default as HorizontalRule } from './HorizontalRule/HorizontalRule';
|
|
23
24
|
export { default as HtmlInput } from './HtmlInput/HtmlInput';
|
|
25
|
+
export { default as HtmlViewer } from './HtmlViewer/HtmlViewer';
|
|
24
26
|
export { default as Icon } from './Icon/Icon';
|
|
25
27
|
export { default as Input } from './Input/Input';
|
|
26
28
|
export { default as KeyboardAvoidingScrollView, DEFAULT_OFFSET, } from './KeyboardAvoidingScrollView/KeyboardAvoidingScrollView';
|
|
@@ -31,4 +33,5 @@ export { default as ScrollView } from './ScrollView/ScrollView';
|
|
|
31
33
|
export { default as Slider } from './Slider/Slider';
|
|
32
34
|
export { default as Switch } from './Switch/Switch';
|
|
33
35
|
export { default as Text } from './Text/Text';
|
|
36
|
+
export { default as VerticalRule } from './VerticalRule/VerticalRule';
|
|
34
37
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/atoms/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,OAAO,IAAI,sBAAsB,EAAC,MAAM,iDAAiD,CAAC;AAClG,OAAO,EAAC,OAAO,IAAI,aAAa,EAAC,MAAM,+BAA+B,CAAC;AACvE,OAAO,EAAC,OAAO,IAAI,IAAI,EAAC,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAC,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AAC;AAC9D,OAAO,EAAC,OAAO,IAAI,cAAc,EAAC,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAC,OAAO,IAAI,SAAS,EAAC,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAC,OAAO,IAAI,UAAU,EAAC,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAC,OAAO,IAAI,IAAI,EAAC,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAC,OAAO,IAAI,KAAK,EAAC,MAAM,eAAe,CAAC;AAC/C,OAAO,EACL,OAAO,IAAI,0BAA0B,EACrC,cAAc,GACf,MAAM,yDAAyD,CAAC;AACjE,OAAO,EAAC,OAAO,IAAI,cAAc,EAAC,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAC,OAAO,IAAI,WAAW,EAAC,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAC,OAAO,IAAI,UAAU,EAAC,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAC,OAAO,IAAI,IAAI,EAAC,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,6BAA6B,CAAC"}
|
|
@@ -18,31 +18,30 @@
|
|
|
18
18
|
import React, { useMemo } from 'react';
|
|
19
19
|
import { StyleSheet, View, Modal } from 'react-native';
|
|
20
20
|
import { useThemeColor } from '../../../theme';
|
|
21
|
-
import { Card, Text, Icon } from '../../atoms';
|
|
22
|
-
import Button from '../Button/Button';
|
|
23
21
|
import { checkNullString } from '../../../utils';
|
|
22
|
+
import { IconTile } from '../../molecules';
|
|
23
|
+
import { Card, Text } from '../../atoms';
|
|
24
|
+
import Button from '../Button/Button';
|
|
24
25
|
const DEFAULT_BUTTON_WIDTH = 115;
|
|
25
26
|
const Alert = ({ style, buttonsContainerStyle, visible = false, title, titleStyle, noBoldTitle = false, children, cancelButtonConfig, confirmButtonConfig, translator = key => key, }) => {
|
|
26
27
|
const Colors = useThemeColor();
|
|
27
28
|
const _cancelButtonConfig = useMemo(() => {
|
|
28
|
-
if (!cancelButtonConfig)
|
|
29
|
+
if (!cancelButtonConfig)
|
|
29
30
|
return null;
|
|
30
|
-
}
|
|
31
31
|
return {
|
|
32
32
|
title: translator('Base_Cancel'),
|
|
33
33
|
color: Colors.errorColor,
|
|
34
34
|
iconName: 'x-lg',
|
|
35
35
|
hide: false,
|
|
36
36
|
showInHeader: false,
|
|
37
|
-
headerSize:
|
|
37
|
+
headerSize: 30,
|
|
38
38
|
width: DEFAULT_BUTTON_WIDTH,
|
|
39
39
|
...cancelButtonConfig,
|
|
40
40
|
};
|
|
41
41
|
}, [translator, Colors, cancelButtonConfig]);
|
|
42
42
|
const _confirmButtonConfig = useMemo(() => {
|
|
43
|
-
if (!confirmButtonConfig)
|
|
43
|
+
if (!confirmButtonConfig)
|
|
44
44
|
return null;
|
|
45
|
-
}
|
|
46
45
|
return {
|
|
47
46
|
title: translator('Base_OK'),
|
|
48
47
|
color: Colors.primaryColor,
|
|
@@ -52,30 +51,22 @@ const Alert = ({ style, buttonsContainerStyle, visible = false, title, titleStyl
|
|
|
52
51
|
...confirmButtonConfig,
|
|
53
52
|
};
|
|
54
53
|
}, [translator, Colors, confirmButtonConfig]);
|
|
55
|
-
const isCancelButtonDisplayedBottom = useMemo(() =>
|
|
56
|
-
|
|
57
|
-
}, [_cancelButtonConfig]);
|
|
58
|
-
const isConfirmButtonDisplayedBottom = useMemo(() => {
|
|
59
|
-
return !_confirmButtonConfig?.hide;
|
|
60
|
-
}, [_confirmButtonConfig]);
|
|
54
|
+
const isCancelButtonDisplayedBottom = useMemo(() => !_cancelButtonConfig?.hide && !_cancelButtonConfig?.showInHeader, [_cancelButtonConfig]);
|
|
55
|
+
const isConfirmButtonDisplayedBottom = useMemo(() => !_confirmButtonConfig?.hide, [_confirmButtonConfig]);
|
|
61
56
|
return (<Modal testID="alertModal" visible={visible} transparent animationType="fade" onRequestClose={_cancelButtonConfig?.onPress}>
|
|
62
57
|
<View style={styles.modalBackground} testID="modalContainer">
|
|
63
58
|
<Card style={[styles.container, style]}>
|
|
64
59
|
<View style={styles.headerContainer}>
|
|
65
|
-
{!checkNullString(title) && (<Text writingType={noBoldTitle ?
|
|
66
|
-
styles.title,
|
|
67
|
-
{ marginHorizontal: _cancelButtonConfig?.headerSize },
|
|
68
|
-
titleStyle,
|
|
69
|
-
]}>
|
|
60
|
+
{!checkNullString(title) && (<Text writingType={noBoldTitle ? undefined : 'title'} style={[styles.title, titleStyle]}>
|
|
70
61
|
{title}
|
|
71
62
|
</Text>)}
|
|
72
63
|
{!_cancelButtonConfig?.hide &&
|
|
73
|
-
_cancelButtonConfig?.showInHeader && (<
|
|
64
|
+
_cancelButtonConfig?.showInHeader && (<IconTile icon="x-lg" style={styles.closeIcon} color={Colors.secondaryColor} backgroundColor={Colors.screenBackgroundColor} size={_cancelButtonConfig?.headerSize} iconSize={_cancelButtonConfig?.headerSize * 0.4} onPress={_cancelButtonConfig?.onPress}/>)}
|
|
74
65
|
</View>
|
|
75
66
|
{children}
|
|
76
67
|
{(isCancelButtonDisplayedBottom ||
|
|
77
68
|
isConfirmButtonDisplayedBottom) && (<View style={[styles.buttonsContainer, buttonsContainerStyle]}>
|
|
78
|
-
{isCancelButtonDisplayedBottom && (<Button {..._cancelButtonConfig} testID="alertCancelButton"
|
|
69
|
+
{isCancelButtonDisplayedBottom && (<Button {..._cancelButtonConfig} testID="alertCancelButton"/>)}
|
|
79
70
|
{isConfirmButtonDisplayedBottom && (<Button {..._confirmButtonConfig} testID="alertConfirmButton"/>)}
|
|
80
71
|
</View>)}
|
|
81
72
|
</Card>
|
|
@@ -96,30 +87,27 @@ const styles = StyleSheet.create({
|
|
|
96
87
|
alignItems: 'center',
|
|
97
88
|
paddingHorizontal: 20,
|
|
98
89
|
paddingRight: 20,
|
|
99
|
-
paddingVertical:
|
|
90
|
+
paddingVertical: 10,
|
|
91
|
+
gap: 10,
|
|
100
92
|
},
|
|
101
93
|
headerContainer: {
|
|
102
94
|
width: '100%',
|
|
95
|
+
flexDirection: 'row',
|
|
103
96
|
justifyContent: 'center',
|
|
104
97
|
alignItems: 'center',
|
|
105
|
-
marginBottom: 10,
|
|
106
98
|
},
|
|
107
99
|
title: {
|
|
108
100
|
textAlign: 'center',
|
|
101
|
+
flex: 1,
|
|
109
102
|
},
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
right: 0,
|
|
113
|
-
top: 0,
|
|
103
|
+
closeIcon: {
|
|
104
|
+
marginLeft: 'auto',
|
|
114
105
|
},
|
|
115
106
|
buttonsContainer: {
|
|
116
107
|
width: '100%',
|
|
117
108
|
flexDirection: 'row',
|
|
118
109
|
justifyContent: 'flex-end',
|
|
119
|
-
|
|
120
|
-
},
|
|
121
|
-
cancelButton: {
|
|
122
|
-
marginRight: 10,
|
|
110
|
+
gap: 5,
|
|
123
111
|
},
|
|
124
112
|
});
|
|
125
113
|
export default Alert;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Alert.js","sourceRoot":"","sources":["../../../../src/components/molecules/Alert/Alert.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,OAAO,EAAC,MAAM,OAAO,CAAC;AACrC,OAAO,EAAC,UAAU,EAAE,IAAI,EAAE,KAAK,EAAC,MAAM,cAAc,CAAC;AACrD,OAAO,EAAC,aAAa,EAAC,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"Alert.js","sourceRoot":"","sources":["../../../../src/components/molecules/Alert/Alert.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC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E,KAAK;QACZ,SAAS,EAAE,KAAK;QAChB,cAAc,EAAE,QAAQ;QACxB,UAAU,EAAE,QAAQ;QACpB,iBAAiB,EAAE,EAAE;QACrB,YAAY,EAAE,EAAE;QAChB,eAAe,EAAE,EAAE;QACnB,GAAG,EAAE,EAAE;KACR;IACD,eAAe,EAAE;QACf,KAAK,EAAE,MAAM;QACb,aAAa,EAAE,KAAK;QACpB,cAAc,EAAE,QAAQ;QACxB,UAAU,EAAE,QAAQ;KACrB;IACD,KAAK,EAAE;QACL,SAAS,EAAE,QAAQ;QACnB,IAAI,EAAE,CAAC;KACR;IACD,SAAS,EAAE;QACT,UAAU,EAAE,MAAM;KACnB;IACD,gBAAgB,EAAE;QAChB,KAAK,EAAE,MAAM;QACb,aAAa,EAAE,KAAK;QACpB,cAAc,EAAE,UAAU;QAC1B,GAAG,EAAE,CAAC;KACP;CACF,CAAC,CAAC;AAEH,eAAe,KAAK,CAAC"}
|
|
@@ -6,6 +6,7 @@ interface BadgeProps {
|
|
|
6
6
|
title: string | number;
|
|
7
7
|
color?: Color;
|
|
8
8
|
numberOfLines?: number;
|
|
9
|
+
textSize?: number;
|
|
9
10
|
}
|
|
10
|
-
declare const Badge: ({ style, txtStyle, title, color, numberOfLines, }: BadgeProps) => React.JSX.Element;
|
|
11
|
+
declare const Badge: ({ style, txtStyle, title, color, numberOfLines, textSize, }: BadgeProps) => React.JSX.Element;
|
|
11
12
|
export default Badge;
|
|
@@ -19,27 +19,30 @@ import React, { useMemo } from 'react';
|
|
|
19
19
|
import { StyleSheet, View } from 'react-native';
|
|
20
20
|
import { useThemeColor } from '../../../theme';
|
|
21
21
|
import { Text } from '../../atoms';
|
|
22
|
-
const Badge = ({ style, txtStyle, title, color
|
|
22
|
+
const Badge = ({ style, txtStyle, title, color, numberOfLines = 1, textSize, }) => {
|
|
23
23
|
const Colors = useThemeColor();
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
const _color = useMemo(() => color || Colors.primaryColor, [Colors.primaryColor, color]);
|
|
25
|
+
const styles = useMemo(() => getStyles(_color), [_color]);
|
|
26
|
+
return (<View style={[styles.container, style]} testID="bagdeContainer">
|
|
27
|
+
<Text style={[styles.text, txtStyle]} numberOfLines={numberOfLines} textColor={_color.background} fontSize={textSize ?? 12}>
|
|
27
28
|
{title}
|
|
28
29
|
</Text>
|
|
29
30
|
</View>);
|
|
30
31
|
};
|
|
31
|
-
const getStyles = color => StyleSheet.create({
|
|
32
|
+
const getStyles = (color) => StyleSheet.create({
|
|
32
33
|
container: {
|
|
33
|
-
backgroundColor: color
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
height: 22,
|
|
34
|
+
backgroundColor: color.background_light,
|
|
35
|
+
borderRadius: 20,
|
|
36
|
+
margin: 2,
|
|
37
|
+
paddingHorizontal: 10,
|
|
38
|
+
paddingVertical: 5,
|
|
39
|
+
flexShrink: 0,
|
|
40
40
|
alignItems: 'center',
|
|
41
41
|
justifyContent: 'center',
|
|
42
42
|
},
|
|
43
|
+
text: {
|
|
44
|
+
fontWeight: 'bold',
|
|
45
|
+
},
|
|
43
46
|
});
|
|
44
47
|
export default Badge;
|
|
45
48
|
//# sourceMappingURL=Badge.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Badge.js","sourceRoot":"","sources":["../../../../src/components/molecules/Badge/Badge.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,OAAO,EAAC,MAAM,OAAO,CAAC;AACrC,OAAO,EAAC,UAAU,EAAE,IAAI,EAAC,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAQ,aAAa,EAAC,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAC,IAAI,EAAC,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"Badge.js","sourceRoot":"","sources":["../../../../src/components/molecules/Badge/Badge.tsx"],"names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AM,CAAC;IAChB,SAAS,EAAE;QACT,eAAe,EAAE,KAAK,CAAC,gBAAgB;QACvC,YAAY,EAAE,EAAE;QAChB,MAAM,EAAE,CAAC;QACT,iBAAiB,EAAE,EAAE;QACrB,eAAe,EAAE,CAAC;QAClB,UAAU,EAAE,CAAC;QACb,UAAU,EAAE,QAAQ;QACpB,cAAc,EAAE,QAAQ;KACzB;IACD,IAAI,EAAE;QACJ,UAAU,EAAE,MAAM;KACnB;CACF,CAAC,CAAC;AAEL,eAAe,KAAK,CAAC"}
|
|
@@ -108,7 +108,7 @@ const BottomSheet = ({ style, visible = false, title, children, onClose, }) => {
|
|
|
108
108
|
styles.grip,
|
|
109
109
|
{ backgroundColor: Colors.secondaryColor.background },
|
|
110
110
|
]}/>
|
|
111
|
-
{!checkNullString(title) && (<Text numberOfLines={1}
|
|
111
|
+
{!checkNullString(title) && (<Text numberOfLines={1} textColor={Colors.secondaryColor_dark.background} style={styles.title}>
|
|
112
112
|
{title}
|
|
113
113
|
</Text>)}
|
|
114
114
|
</View>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BottomSheet.js","sourceRoot":"","sources":["../../../../src/components/molecules/BottomSheet/BottomSheet.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AACzD,OAAO,EACL,QAAQ,EACR,UAAU,EACV,KAAK,EACL,YAAY,EACZ,UAAU,EACV,wBAAwB,EACxB,IAAI,GACL,MAAM,cAAc,CAAC;AACtB,OAAO,EAAC,aAAa,EAAC,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAC,eAAe,EAAC,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAC,IAAI,EAAC,MAAM,aAAa,CAAC;AAEjC,MAAM,kBAAkB,GAAG,GAAG,CAAC;AAC/B,MAAM,aAAa,GAAG,UAAU,CAAC,G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f,SAAS,EAAE,QAAQ;QACnB,YAAY,EAAE,CAAC;KAChB;IACD,KAAK,EAAE;QACL,iBAAiB,EAAE,EAAE;QACrB,YAAY,EAAE,CAAC;KAChB;CACF,CAAC,CAAC;AAEH,eAAe,WAAW,CAAC"}
|
|
@@ -63,7 +63,7 @@ const Breadcrumb = ({ style, disabled = false, items, onHomePress, }) => {
|
|
|
63
63
|
<Icon name="house-door-fill" touchable={!disabled} onPress={onHomePress}/>
|
|
64
64
|
{visibleItems.map((item, index) => (<View style={styles.contentContainer} onLayout={e => handleItemLayout(e, index)} key={index} testID={`breadcrumbItemContainer-idx${index}`}>
|
|
65
65
|
<Icon name="chevron-right" color={Colors.secondaryColor.background}/>
|
|
66
|
-
<TouchableOpacity testID={`breadcrumbItem-idx${index}`} style={styles.textContainer} activeOpacity={0.
|
|
66
|
+
<TouchableOpacity testID={`breadcrumbItem-idx${index}`} style={styles.textContainer} activeOpacity={0.9} disabled={disabled || !item.onPress} onPress={item.onPress}>
|
|
67
67
|
<Text>{item.title}</Text>
|
|
68
68
|
</TouchableOpacity>
|
|
69
69
|
</View>))}
|
|
@@ -10,6 +10,7 @@ export interface ButtonProps {
|
|
|
10
10
|
iconSize?: number;
|
|
11
11
|
rightIconName?: string;
|
|
12
12
|
title?: string;
|
|
13
|
+
titleSize?: number;
|
|
13
14
|
style?: any;
|
|
14
15
|
styleIcon?: any;
|
|
15
16
|
styleTxt?: any;
|
|
@@ -18,5 +19,5 @@ export interface ButtonProps {
|
|
|
18
19
|
onDisabledPress?: () => void;
|
|
19
20
|
numberOfLines?: number;
|
|
20
21
|
}
|
|
21
|
-
declare const Button: ({ testID, width, color, isNeutralBackground, iconName, iconSize, rightIconName, title, style, styleIcon, styleTxt, onPress, disabled, onDisabledPress, numberOfLines, }: ButtonProps) => React.JSX.Element;
|
|
22
|
+
declare const Button: ({ testID, width, color, isNeutralBackground, iconName, iconSize, rightIconName, title, titleSize, style, styleIcon, styleTxt, onPress, disabled, onDisabledPress, numberOfLines, }: ButtonProps) => React.JSX.Element;
|
|
22
23
|
export default Button;
|
|
@@ -20,12 +20,11 @@ import { StyleSheet, TouchableOpacity } from 'react-native';
|
|
|
20
20
|
import { useThemeColor } from '../../../theme';
|
|
21
21
|
import { getCommonStyles } from '../../../utils';
|
|
22
22
|
import { Icon, Text } from '../../atoms';
|
|
23
|
-
const Button = ({ testID, width = '90%', color, isNeutralBackground = false, iconName, iconSize =
|
|
23
|
+
const Button = ({ testID, width = '90%', color, isNeutralBackground = false, iconName, iconSize = 16, rightIconName, title, titleSize = 16, style, styleIcon, styleTxt, onPress, disabled = false, onDisabledPress, numberOfLines = 2, }) => {
|
|
24
24
|
const Colors = useThemeColor();
|
|
25
25
|
const buttonColor = useMemo(() => {
|
|
26
|
-
if (disabled)
|
|
26
|
+
if (disabled)
|
|
27
27
|
return Colors.secondaryColor;
|
|
28
|
-
}
|
|
29
28
|
let _buttonColor = color != null ? color : Colors.primaryColor;
|
|
30
29
|
if (isNeutralBackground) {
|
|
31
30
|
_buttonColor = {
|
|
@@ -36,18 +35,13 @@ const Button = ({ testID, width = '90%', color, isNeutralBackground = false, ico
|
|
|
36
35
|
}
|
|
37
36
|
return _buttonColor;
|
|
38
37
|
}, [color, Colors, disabled, isNeutralBackground]);
|
|
39
|
-
const styles = useMemo(() =>
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
const commonStyles = useMemo(() => {
|
|
43
|
-
return getCommonStyles(Colors);
|
|
44
|
-
}, [Colors]);
|
|
45
|
-
if (!iconName && !title && !rightIconName) {
|
|
38
|
+
const styles = useMemo(() => getStyles(buttonColor, width), [buttonColor, width]);
|
|
39
|
+
const commonStyles = useMemo(() => getCommonStyles(), []);
|
|
40
|
+
if (!iconName && !title && !rightIconName)
|
|
46
41
|
return null;
|
|
47
|
-
}
|
|
48
42
|
return (<TouchableOpacity testID={testID} style={[commonStyles.button, styles.colorButton, style]} onPress={disabled ? onDisabledPress : onPress} disabled={disabled && !onDisabledPress} activeOpacity={0.9} accessibilityRole="button">
|
|
49
43
|
{!!iconName && (<Icon name={iconName} size={iconSize} color={buttonColor.foreground} style={styleIcon}/>)}
|
|
50
|
-
{!!title && (<Text style={[styles.text, styleTxt]} numberOfLines={numberOfLines} adjustsFontSizeToFit fontSize={
|
|
44
|
+
{!!title && (<Text style={[styles.text, styleTxt]} numberOfLines={numberOfLines} adjustsFontSizeToFit fontSize={titleSize} textColor={buttonColor.foreground}>
|
|
51
45
|
{title}
|
|
52
46
|
</Text>)}
|
|
53
47
|
{!!rightIconName && (<Icon name={rightIconName} size={iconSize} color={buttonColor.foreground} style={styleIcon}/>)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.js","sourceRoot":"","sources":["../../../../src/components/molecules/Button/Button.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,OAAO,EAAC,MAAM,OAAO,CAAC;AACrC,OAAO,EAAiB,UAAU,EAAE,gBAAgB,EAAC,MAAM,cAAc,CAAC;AAC1E,OAAO,EAAQ,aAAa,EAAC,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAC,eAAe,EAAC,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAC,IAAI,EAAE,IAAI,EAAC,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"Button.js","sourceRoot":"","sources":["../../../../src/components/molecules/Button/Button.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,OAAO,EAAC,MAAM,OAAO,CAAC;AACrC,OAAO,EAAiB,UAAU,EAAE,gBAAgB,EAAC,MAAM,cAAc,CAAC;AAC1E,OAAO,EAAQ,aAAa,EAAC,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAC,eAAe,EAAC,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAC,IAAI,EAAE,IAAI,EAAC,MAAM,aAAa,CAAC;AAqBvC,MA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,CAAC;IAChB,WAAW,EAAE;QACX,eAAe,EAAE,KAAK,CAAC,gBAAgB;QACvC,WAAW,EAAE,KAAK,CAAC,UAAU;QAC7B,KAAK,EAAE,KAAK;QACZ,GAAG,EAAE,EAAE;KACR;IACD,IAAI,EAAE;QACJ,UAAU,EAAE,MAAM;QAClB,SAAS,EAAE,QAAQ;QACnB,iBAAiB,EAAE,QAAQ;QAC3B,UAAU,EAAE,CAAC;KACd;CACF,CAAC,CAAC;AAEL,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CalendarLegendItem } from './types';
|
|
3
|
+
interface CalendarLegendProps {
|
|
4
|
+
style?: any;
|
|
5
|
+
items?: CalendarLegendItem[];
|
|
6
|
+
showTodayButton?: boolean;
|
|
7
|
+
translator: (key: string) => string;
|
|
8
|
+
onTodayPress: () => void;
|
|
9
|
+
onPreviousPress?: () => void;
|
|
10
|
+
onNextPress?: () => void;
|
|
11
|
+
}
|
|
12
|
+
declare const _default: React.MemoExoticComponent<({ style, items, showTodayButton, translator, onTodayPress, onPreviousPress, onNextPress, }: CalendarLegendProps) => React.JSX.Element>;
|
|
13
|
+
export default _default;
|