@rolster/react-components 19.12.2 → 19.14.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/dist/cjs/index.cjs +221 -221
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/es/index.mjs +221 -221
- package/dist/es/index.mjs.map +1 -1
- package/dist/esm/components/atoms/Amount/Amount.d.ts +3 -3
- package/dist/esm/components/atoms/Amount/Amount.js +2 -2
- package/dist/esm/components/atoms/Amount/Amount.js.map +1 -1
- package/dist/esm/components/atoms/AreaText/AreaText.d.ts +1 -1
- package/dist/esm/components/atoms/AreaText/AreaText.js +2 -2
- package/dist/esm/components/atoms/AreaText/AreaText.js.map +1 -1
- package/dist/esm/components/atoms/Avatar/Avatar.d.ts +1 -1
- package/dist/esm/components/atoms/Avatar/Avatar.js +2 -2
- package/dist/esm/components/atoms/Avatar/Avatar.js.map +1 -1
- package/dist/esm/components/atoms/Badge/Badge.d.ts +1 -1
- package/dist/esm/components/atoms/Badge/Badge.js +2 -2
- package/dist/esm/components/atoms/Badge/Badge.js.map +1 -1
- package/dist/esm/components/atoms/Breadcrumb/Breadcrumb.d.ts +3 -3
- package/dist/esm/components/atoms/Breadcrumb/Breadcrumb.js +2 -2
- package/dist/esm/components/atoms/Breadcrumb/Breadcrumb.js.map +1 -1
- package/dist/esm/components/atoms/Button/Button.d.ts +1 -1
- package/dist/esm/components/atoms/Button/Button.js +2 -2
- package/dist/esm/components/atoms/Button/Button.js.map +1 -1
- package/dist/esm/components/atoms/ButtonAction/ButtonAction.d.ts +1 -1
- package/dist/esm/components/atoms/ButtonAction/ButtonAction.js +2 -2
- package/dist/esm/components/atoms/ButtonAction/ButtonAction.js.map +1 -1
- package/dist/esm/components/atoms/ButtonIcon/ButtonIcon.d.ts +3 -2
- package/dist/esm/components/atoms/ButtonIcon/ButtonIcon.js +2 -2
- package/dist/esm/components/atoms/ButtonIcon/ButtonIcon.js.map +1 -1
- package/dist/esm/components/atoms/ButtonOption/ButtonOption.js +2 -2
- package/dist/esm/components/atoms/ButtonOption/ButtonOption.js.map +1 -1
- package/dist/esm/components/atoms/CheckBox/CheckBox.d.ts +2 -2
- package/dist/esm/components/atoms/CheckBox/CheckBox.js +4 -4
- package/dist/esm/components/atoms/CheckBox/CheckBox.js.map +1 -1
- package/dist/esm/components/atoms/Chip/Chip.d.ts +1 -1
- package/dist/esm/components/atoms/Chip/Chip.js +2 -2
- package/dist/esm/components/atoms/Chip/Chip.js.map +1 -1
- package/dist/esm/components/atoms/Icon/Icon.d.ts +3 -3
- package/dist/esm/components/atoms/Icon/Icon.js +2 -2
- package/dist/esm/components/atoms/Icon/Icon.js.map +1 -1
- package/dist/esm/components/atoms/Image/Image.d.ts +1 -1
- package/dist/esm/components/atoms/Image/Image.js +2 -2
- package/dist/esm/components/atoms/Image/Image.js.map +1 -1
- package/dist/esm/components/atoms/Input/Input.d.ts +1 -1
- package/dist/esm/components/atoms/Input/Input.js +2 -2
- package/dist/esm/components/atoms/Input/Input.js.map +1 -1
- package/dist/esm/components/atoms/InputCounter/InputCounter.d.ts +1 -1
- package/dist/esm/components/atoms/InputCounter/InputCounter.js +2 -2
- package/dist/esm/components/atoms/InputCounter/InputCounter.js.map +1 -1
- package/dist/esm/components/atoms/InputDecimal/InputDecimal.d.ts +2 -1
- package/dist/esm/components/atoms/InputDecimal/InputDecimal.js +2 -2
- package/dist/esm/components/atoms/InputDecimal/InputDecimal.js.map +1 -1
- package/dist/esm/components/atoms/InputMoney/InputMoney.d.ts +2 -1
- package/dist/esm/components/atoms/InputMoney/InputMoney.js +2 -2
- package/dist/esm/components/atoms/InputMoney/InputMoney.js.map +1 -1
- package/dist/esm/components/atoms/InputNumber/InputNumber.d.ts +2 -1
- package/dist/esm/components/atoms/InputNumber/InputNumber.js +2 -2
- package/dist/esm/components/atoms/InputNumber/InputNumber.js.map +1 -1
- package/dist/esm/components/atoms/InputPassword/InputPassword.d.ts +1 -1
- package/dist/esm/components/atoms/InputPassword/InputPassword.js +2 -2
- package/dist/esm/components/atoms/InputPassword/InputPassword.js.map +1 -1
- package/dist/esm/components/atoms/InputPercentage/InputPercentage.d.ts +2 -1
- package/dist/esm/components/atoms/InputPercentage/InputPercentage.js +2 -2
- package/dist/esm/components/atoms/InputPercentage/InputPercentage.js.map +1 -1
- package/dist/esm/components/atoms/InputSearch/InputSearch.d.ts +3 -2
- package/dist/esm/components/atoms/InputSearch/InputSearch.js +2 -2
- package/dist/esm/components/atoms/InputSearch/InputSearch.js.map +1 -1
- package/dist/esm/components/atoms/InputText/InputText.d.ts +4 -1
- package/dist/esm/components/atoms/InputText/InputText.js +2 -2
- package/dist/esm/components/atoms/InputText/InputText.js.map +1 -1
- package/dist/esm/components/atoms/Label/Label.d.ts +1 -1
- package/dist/esm/components/atoms/Label/Label.js +2 -2
- package/dist/esm/components/atoms/Label/Label.js.map +1 -1
- package/dist/esm/components/atoms/Led/Led.d.ts +3 -3
- package/dist/esm/components/atoms/Led/Led.js +2 -2
- package/dist/esm/components/atoms/Led/Led.js.map +1 -1
- package/dist/esm/components/atoms/MessageIcon/MessageIcon.d.ts +1 -1
- package/dist/esm/components/atoms/MessageIcon/MessageIcon.js +2 -2
- package/dist/esm/components/atoms/MessageIcon/MessageIcon.js.map +1 -1
- package/dist/esm/components/atoms/Poster/Poster.d.ts +1 -1
- package/dist/esm/components/atoms/Poster/Poster.js +2 -2
- package/dist/esm/components/atoms/Poster/Poster.js.map +1 -1
- package/dist/esm/components/atoms/ProgressBar/ProgressBar.d.ts +1 -1
- package/dist/esm/components/atoms/ProgressBar/ProgressBar.js +2 -2
- package/dist/esm/components/atoms/ProgressBar/ProgressBar.js.map +1 -1
- package/dist/esm/components/atoms/ProgressCircular/ProgressCircular.d.ts +4 -2
- package/dist/esm/components/atoms/ProgressCircular/ProgressCircular.js +2 -2
- package/dist/esm/components/atoms/ProgressCircular/ProgressCircular.js.map +1 -1
- package/dist/esm/components/atoms/RadioButton/RadioButton.d.ts +1 -1
- package/dist/esm/components/atoms/RadioButton/RadioButton.js +2 -2
- package/dist/esm/components/atoms/RadioButton/RadioButton.js.map +1 -1
- package/dist/esm/components/atoms/Skeleton/Skeleton.d.ts +1 -1
- package/dist/esm/components/atoms/Skeleton/Skeleton.js +2 -2
- package/dist/esm/components/atoms/Skeleton/Skeleton.js.map +1 -1
- package/dist/esm/components/atoms/SkeletonText/SkeletonText.d.ts +1 -1
- package/dist/esm/components/atoms/SkeletonText/SkeletonText.js +2 -2
- package/dist/esm/components/atoms/SkeletonText/SkeletonText.js.map +1 -1
- package/dist/esm/components/atoms/Spinner/Spinner.d.ts +2 -1
- package/dist/esm/components/atoms/Spinner/Spinner.js +2 -2
- package/dist/esm/components/atoms/Spinner/Spinner.js.map +1 -1
- package/dist/esm/components/atoms/SwapHover/SwapHover.d.ts +1 -1
- package/dist/esm/components/atoms/SwapHover/SwapHover.js +2 -2
- package/dist/esm/components/atoms/SwapHover/SwapHover.js.map +1 -1
- package/dist/esm/components/atoms/Switch/Switch.d.ts +2 -2
- package/dist/esm/components/atoms/Switch/Switch.js +4 -4
- package/dist/esm/components/atoms/Switch/Switch.js.map +1 -1
- package/dist/esm/components/atoms/TabularText/TabularText.d.ts +3 -2
- package/dist/esm/components/atoms/TabularText/TabularText.js +2 -2
- package/dist/esm/components/atoms/TabularText/TabularText.js.map +1 -1
- package/dist/esm/components/definitions.d.ts +10 -2
- package/dist/esm/components/molecules/Accordion/Accordion.d.ts +1 -1
- package/dist/esm/components/molecules/Accordion/Accordion.js +2 -2
- package/dist/esm/components/molecules/Accordion/Accordion.js.map +1 -1
- package/dist/esm/components/molecules/Alert/Alert.d.ts +1 -1
- package/dist/esm/components/molecules/Alert/Alert.js +2 -2
- package/dist/esm/components/molecules/Alert/Alert.js.map +1 -1
- package/dist/esm/components/molecules/AppThemeTabs/AppThemeTabs.d.ts +3 -3
- package/dist/esm/components/molecules/AppThemeTabs/AppThemeTabs.js +2 -2
- package/dist/esm/components/molecules/AppThemeTabs/AppThemeTabs.js.map +1 -1
- package/dist/esm/components/molecules/Ballot/Ballot.d.ts +1 -1
- package/dist/esm/components/molecules/Ballot/Ballot.js +2 -2
- package/dist/esm/components/molecules/Ballot/Ballot.js.map +1 -1
- package/dist/esm/components/molecules/Body/Body.d.ts +1 -1
- package/dist/esm/components/molecules/Body/Body.js +2 -2
- package/dist/esm/components/molecules/Body/Body.js.map +1 -1
- package/dist/esm/components/molecules/ButtonProgress/ButtonProgress.d.ts +3 -3
- package/dist/esm/components/molecules/ButtonProgress/ButtonProgress.js +2 -2
- package/dist/esm/components/molecules/ButtonProgress/ButtonProgress.js.map +1 -1
- package/dist/esm/components/molecules/ButtonStepper/ButtonStepper.d.ts +1 -1
- package/dist/esm/components/molecules/ButtonStepper/ButtonStepper.js +2 -2
- package/dist/esm/components/molecules/ButtonStepper/ButtonStepper.js.map +1 -1
- package/dist/esm/components/molecules/ButtonToggle/ButtonToggle.d.ts +1 -1
- package/dist/esm/components/molecules/ButtonToggle/ButtonToggle.js +2 -2
- package/dist/esm/components/molecules/ButtonToggle/ButtonToggle.js.map +1 -1
- package/dist/esm/components/molecules/ChipGroup/ChipGroup.d.ts +2 -2
- package/dist/esm/components/molecules/ChipGroup/ChipGroup.js +2 -2
- package/dist/esm/components/molecules/ChipGroup/ChipGroup.js.map +1 -1
- package/dist/esm/components/molecules/Content/Content.d.ts +1 -1
- package/dist/esm/components/molecules/Content/Content.js +2 -2
- package/dist/esm/components/molecules/Content/Content.js.map +1 -1
- package/dist/esm/components/molecules/FieldArea/FieldArea.js +2 -2
- package/dist/esm/components/molecules/FieldArea/FieldArea.js.map +1 -1
- package/dist/esm/components/molecules/FieldDecimal/FieldDecimal.js +2 -2
- package/dist/esm/components/molecules/FieldDecimal/FieldDecimal.js.map +1 -1
- package/dist/esm/components/molecules/FieldFile/FieldFile.d.ts +1 -1
- package/dist/esm/components/molecules/FieldFile/FieldFile.js +2 -2
- package/dist/esm/components/molecules/FieldFile/FieldFile.js.map +1 -1
- package/dist/esm/components/molecules/FieldListSuggestions/FieldListSuggestions.d.ts +3 -3
- package/dist/esm/components/molecules/FieldListSuggestions/FieldListSuggestions.js +2 -2
- package/dist/esm/components/molecules/FieldListSuggestions/FieldListSuggestions.js.map +1 -1
- package/dist/esm/components/molecules/FieldMoney/FieldMoney.js +2 -2
- package/dist/esm/components/molecules/FieldMoney/FieldMoney.js.map +1 -1
- package/dist/esm/components/molecules/FieldNumber/FieldNumber.js +2 -2
- package/dist/esm/components/molecules/FieldNumber/FieldNumber.js.map +1 -1
- package/dist/esm/components/molecules/FieldPassword/FieldPassword.js +2 -2
- package/dist/esm/components/molecules/FieldPassword/FieldPassword.js.map +1 -1
- package/dist/esm/components/molecules/FieldPercentage/FieldPercentage.js +2 -2
- package/dist/esm/components/molecules/FieldPercentage/FieldPercentage.js.map +1 -1
- package/dist/esm/components/molecules/FieldReadonly/FieldReadonly.d.ts +1 -1
- package/dist/esm/components/molecules/FieldReadonly/FieldReadonly.js +2 -2
- package/dist/esm/components/molecules/FieldReadonly/FieldReadonly.js.map +1 -1
- package/dist/esm/components/molecules/FieldText/FieldText.js +2 -2
- package/dist/esm/components/molecules/FieldText/FieldText.js.map +1 -1
- package/dist/esm/components/molecules/LabelCheckBox/LabelCheckBox.d.ts +1 -1
- package/dist/esm/components/molecules/LabelCheckBox/LabelCheckBox.js +2 -2
- package/dist/esm/components/molecules/LabelCheckBox/LabelCheckBox.js.map +1 -1
- package/dist/esm/components/molecules/LabelRadioButton/LabelRadioButton.js +2 -2
- package/dist/esm/components/molecules/LabelRadioButton/LabelRadioButton.js.map +1 -1
- package/dist/esm/components/molecules/LabelSwitch/LabelSwitch.d.ts +1 -1
- package/dist/esm/components/molecules/LabelSwitch/LabelSwitch.js +2 -2
- package/dist/esm/components/molecules/LabelSwitch/LabelSwitch.js.map +1 -1
- package/dist/esm/components/molecules/MessageEmpty/MessageEmpty.d.ts +1 -1
- package/dist/esm/components/molecules/MessageEmpty/MessageEmpty.js +2 -2
- package/dist/esm/components/molecules/MessageEmpty/MessageEmpty.js.map +1 -1
- package/dist/esm/components/molecules/MessageFormError/MessageFormError.d.ts +3 -2
- package/dist/esm/components/molecules/MessageFormError/MessageFormError.js +2 -2
- package/dist/esm/components/molecules/MessageFormError/MessageFormError.js.map +1 -1
- package/dist/esm/components/molecules/Navbar/Navbar.d.ts +1 -1
- package/dist/esm/components/molecules/Navbar/Navbar.js +2 -2
- package/dist/esm/components/molecules/Navbar/Navbar.js.map +1 -1
- package/dist/esm/components/molecules/NavbarMenu/NabvarMenu.d.ts +3 -2
- package/dist/esm/components/molecules/NavbarMenu/NabvarMenu.js +2 -2
- package/dist/esm/components/molecules/NavbarMenu/NabvarMenu.js.map +1 -1
- package/dist/esm/components/molecules/Pagination/Pagination.d.ts +3 -2
- package/dist/esm/components/molecules/Pagination/Pagination.js +2 -2
- package/dist/esm/components/molecules/Pagination/Pagination.js.map +1 -1
- package/dist/esm/components/molecules/PickerDay/PickerDay.d.ts +1 -1
- package/dist/esm/components/molecules/PickerDay/PickerDay.js +2 -2
- package/dist/esm/components/molecules/PickerDay/PickerDay.js.map +1 -1
- package/dist/esm/components/molecules/PickerDayRange/PickerDayRange.d.ts +1 -1
- package/dist/esm/components/molecules/PickerDayRange/PickerDayRange.js +2 -2
- package/dist/esm/components/molecules/PickerDayRange/PickerDayRange.js.map +1 -1
- package/dist/esm/components/molecules/PickerMonth/PickerMonth.d.ts +1 -1
- package/dist/esm/components/molecules/PickerMonth/PickerMonth.js +2 -2
- package/dist/esm/components/molecules/PickerMonth/PickerMonth.js.map +1 -1
- package/dist/esm/components/molecules/PickerSelectorTitle/PickerSelectorTitle.d.ts +3 -2
- package/dist/esm/components/molecules/PickerSelectorTitle/PickerSelectorTitle.js +2 -2
- package/dist/esm/components/molecules/PickerSelectorTitle/PickerSelectorTitle.js.map +1 -1
- package/dist/esm/components/molecules/PickerYear/PickerYear.d.ts +1 -1
- package/dist/esm/components/molecules/PickerYear/PickerYear.js +2 -2
- package/dist/esm/components/molecules/PickerYear/PickerYear.js.map +1 -1
- package/dist/esm/components/molecules/Slider/Slider.d.ts +1 -1
- package/dist/esm/components/molecules/Slider/Slider.js +2 -2
- package/dist/esm/components/molecules/Slider/Slider.js.map +1 -1
- package/dist/esm/components/molecules/Tabs/Tabs.d.ts +9 -1
- package/dist/esm/components/molecules/Tabs/Tabs.js +5 -4
- package/dist/esm/components/molecules/Tabs/Tabs.js.map +1 -1
- package/dist/esm/components/molecules/Toolbar/Toolbar.d.ts +1 -1
- package/dist/esm/components/molecules/Toolbar/Toolbar.js +2 -2
- package/dist/esm/components/molecules/Toolbar/Toolbar.js.map +1 -1
- package/dist/esm/components/organisms/BottomSheet/BottomSheet.d.ts +1 -1
- package/dist/esm/components/organisms/BottomSheet/BottomSheet.js +2 -2
- package/dist/esm/components/organisms/BottomSheet/BottomSheet.js.map +1 -1
- package/dist/esm/components/organisms/Card/Card.d.ts +1 -1
- package/dist/esm/components/organisms/Card/Card.js +2 -2
- package/dist/esm/components/organisms/Card/Card.js.map +1 -1
- package/dist/esm/components/organisms/ChooserAutocomplete/ChooserAutocomplete.d.ts +2 -2
- package/dist/esm/components/organisms/ChooserAutocomplete/ChooserAutocomplete.js +2 -2
- package/dist/esm/components/organisms/ChooserAutocomplete/ChooserAutocomplete.js.map +1 -1
- package/dist/esm/components/organisms/ChooserList/ChooserList.d.ts +2 -2
- package/dist/esm/components/organisms/ChooserList/ChooserList.js +2 -2
- package/dist/esm/components/organisms/ChooserList/ChooserList.js.map +1 -1
- package/dist/esm/components/organisms/ChooserSelect/ChooserSelect.d.ts +2 -2
- package/dist/esm/components/organisms/ChooserSelect/ChooserSelect.js +2 -2
- package/dist/esm/components/organisms/ChooserSelect/ChooserSelect.js.map +1 -1
- package/dist/esm/components/organisms/Confirmation/Confirmation.d.ts +4 -4
- package/dist/esm/components/organisms/Confirmation/Confirmation.js +2 -2
- package/dist/esm/components/organisms/Confirmation/Confirmation.js.map +1 -1
- package/dist/esm/components/organisms/Datatable/Datatable.d.ts +8 -8
- package/dist/esm/components/organisms/Datatable/Datatable.js +16 -16
- package/dist/esm/components/organisms/Datatable/Datatable.js.map +1 -1
- package/dist/esm/components/organisms/Dropdown/Dropdown.d.ts +1 -1
- package/dist/esm/components/organisms/Dropdown/Dropdown.js +2 -2
- package/dist/esm/components/organisms/Dropdown/Dropdown.js.map +1 -1
- package/dist/esm/components/organisms/FieldAutocomplete/FieldAutocomplete.js +2 -2
- package/dist/esm/components/organisms/FieldAutocomplete/FieldAutocomplete.js.map +1 -1
- package/dist/esm/components/organisms/FieldClock/FieldClock.js +2 -2
- package/dist/esm/components/organisms/FieldClock/FieldClock.js.map +1 -1
- package/dist/esm/components/organisms/FieldColor/FieldColor.js +2 -2
- package/dist/esm/components/organisms/FieldColor/FieldColor.js.map +1 -1
- package/dist/esm/components/organisms/FieldDate/FieldDate.js +2 -2
- package/dist/esm/components/organisms/FieldDate/FieldDate.js.map +1 -1
- package/dist/esm/components/organisms/FieldDateRange/FieldDateRange.js +2 -2
- package/dist/esm/components/organisms/FieldDateRange/FieldDateRange.js.map +1 -1
- package/dist/esm/components/organisms/FieldList/FieldList.js +2 -2
- package/dist/esm/components/organisms/FieldList/FieldList.js.map +1 -1
- package/dist/esm/components/organisms/FieldSelect/FieldSelect.js +2 -2
- package/dist/esm/components/organisms/FieldSelect/FieldSelect.js.map +1 -1
- package/dist/esm/components/organisms/FormNavigation/FormNavigation.d.ts +1 -1
- package/dist/esm/components/organisms/FormNavigation/FormNavigation.js +2 -2
- package/dist/esm/components/organisms/FormNavigation/FormNavigation.js.map +1 -1
- package/dist/esm/components/organisms/ImageChooser/ImageChooser.d.ts +2 -1
- package/dist/esm/components/organisms/ImageChooser/ImageChooser.js +1 -1
- package/dist/esm/components/organisms/ImageChooser/ImageChooser.js.map +1 -1
- package/dist/esm/components/organisms/ImageEditor/ImageEditor.js +1 -1
- package/dist/esm/components/organisms/ImageEditor/ImageEditor.js.map +1 -1
- package/dist/esm/components/organisms/LedColor/LedColor.d.ts +2 -2
- package/dist/esm/components/organisms/LedColor/LedColor.js +2 -2
- package/dist/esm/components/organisms/LedColor/LedColor.js.map +1 -1
- package/dist/esm/components/organisms/Modal/Modal.d.ts +1 -1
- package/dist/esm/components/organisms/Modal/Modal.js +2 -2
- package/dist/esm/components/organisms/Modal/Modal.js.map +1 -1
- package/dist/esm/components/organisms/ModalClock/ModalClock.d.ts +1 -1
- package/dist/esm/components/organisms/ModalClock/ModalClock.js +2 -2
- package/dist/esm/components/organisms/ModalClock/ModalClock.js.map +1 -1
- package/dist/esm/components/organisms/ModalDate/ModalDate.d.ts +1 -1
- package/dist/esm/components/organisms/ModalDate/ModalDate.js +2 -2
- package/dist/esm/components/organisms/ModalDate/ModalDate.js.map +1 -1
- package/dist/esm/components/organisms/ModalDateRange/ModalDateRange.d.ts +1 -1
- package/dist/esm/components/organisms/ModalDateRange/ModalDateRange.js +2 -2
- package/dist/esm/components/organisms/ModalDateRange/ModalDateRange.js.map +1 -1
- package/dist/esm/components/organisms/ModalSheet/ModalSheet.d.ts +1 -1
- package/dist/esm/components/organisms/ModalSheet/ModalSheet.js +2 -2
- package/dist/esm/components/organisms/ModalSheet/ModalSheet.js.map +1 -1
- package/dist/esm/components/organisms/Notifications/Notifications.d.ts +3 -3
- package/dist/esm/components/organisms/Notifications/Notifications.js +4 -4
- package/dist/esm/components/organisms/Notifications/Notifications.js.map +1 -1
- package/dist/esm/components/organisms/PickerClock/PickerClock.d.ts +1 -1
- package/dist/esm/components/organisms/PickerClock/PickerClock.js +2 -2
- package/dist/esm/components/organisms/PickerClock/PickerClock.js.map +1 -1
- package/dist/esm/components/organisms/PickerColor/PickerColor.d.ts +1 -1
- package/dist/esm/components/organisms/PickerColor/PickerColor.js +2 -2
- package/dist/esm/components/organisms/PickerColor/PickerColor.js.map +1 -1
- package/dist/esm/components/organisms/PickerDate/PickerDate.d.ts +1 -1
- package/dist/esm/components/organisms/PickerDate/PickerDate.js +2 -2
- package/dist/esm/components/organisms/PickerDate/PickerDate.js.map +1 -1
- package/dist/esm/components/organisms/PickerDateRange/PickerDateRange.d.ts +1 -1
- package/dist/esm/components/organisms/PickerDateRange/PickerDateRange.js +2 -2
- package/dist/esm/components/organisms/PickerDateRange/PickerDateRange.js.map +1 -1
- package/dist/esm/components/organisms/Snackbar/Snackbar.d.ts +4 -4
- package/dist/esm/components/organisms/Snackbar/Snackbar.js +2 -2
- package/dist/esm/components/organisms/Snackbar/Snackbar.js.map +1 -1
- package/dist/esm/components/organisms/VirtualScroll/VirtualScroll.d.ts +3 -2
- package/dist/esm/components/organisms/VirtualScroll/VirtualScroll.js +2 -2
- package/dist/esm/components/organisms/VirtualScroll/VirtualScroll.js.map +1 -1
- package/dist/esm/types.d.ts +2 -0
- package/package.json +5 -5
package/dist/es/index.mjs
CHANGED
|
@@ -456,16 +456,16 @@ function getCharClass(char) {
|
|
|
456
456
|
? `${className}__pointer`
|
|
457
457
|
: `${className}__char`;
|
|
458
458
|
}
|
|
459
|
-
function RlsTabularTextComponent({ className, value }) {
|
|
459
|
+
function RlsTabularTextComponent({ className, rlsSize, value }) {
|
|
460
460
|
const codes = useMemo(() => {
|
|
461
461
|
return (jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: value?.split('').map((char, index) => (jsxRuntimeExports.jsx("span", { className: getCharClass(char), children: char }, index))) }));
|
|
462
462
|
}, [value]);
|
|
463
463
|
const _className = renderClassStatus('rls-tabular-text', {}, className);
|
|
464
|
-
return jsxRuntimeExports.jsx("div", { className: _className, children: codes });
|
|
464
|
+
return (jsxRuntimeExports.jsx("div", { className: _className, "rls-size": rlsSize, children: codes }));
|
|
465
465
|
}
|
|
466
466
|
const RlsTabularText = memo(RlsTabularTextComponent);
|
|
467
467
|
|
|
468
|
-
function RlsAmountComponent({ value, className, decimals, rlsTheme, symbol }) {
|
|
468
|
+
function RlsAmountComponent({ value, className, decimals, rlsSize, rlsTheme, symbol }) {
|
|
469
469
|
const classNameAmount = renderClassStatus('rls-amount', {}, className);
|
|
470
470
|
const { decimal, integer } = useMemo(() => {
|
|
471
471
|
const currency = currencyFormat({ value, decimals });
|
|
@@ -478,7 +478,7 @@ function RlsAmountComponent({ value, className, decimals, rlsTheme, symbol }) {
|
|
|
478
478
|
decimal: currencySplit[1] || ''
|
|
479
479
|
};
|
|
480
480
|
}, [value, decimals]);
|
|
481
|
-
return (jsxRuntimeExports.jsxs("div", { className: classNameAmount, "rls-theme": rlsTheme, children: [symbol && jsxRuntimeExports.jsx("span", { className: "rls-amount__symbol", children: symbol }), jsxRuntimeExports.jsxs("div", { className: "rls-amount__content", children: [jsxRuntimeExports.jsx(RlsTabularText, { className: "rls-amount__integer", value: integer }), decimal && (jsxRuntimeExports.jsx(RlsTabularText, { className: "rls-amount__decimal", value: decimal }))] })] }));
|
|
481
|
+
return (jsxRuntimeExports.jsxs("div", { className: classNameAmount, "rls-size": rlsSize, "rls-theme": rlsTheme, children: [symbol && jsxRuntimeExports.jsx("span", { className: "rls-amount__symbol", children: symbol }), jsxRuntimeExports.jsxs("div", { className: "rls-amount__content", children: [jsxRuntimeExports.jsx(RlsTabularText, { className: "rls-amount__integer", value: integer }), decimal && (jsxRuntimeExports.jsx(RlsTabularText, { className: "rls-amount__decimal", value: decimal }))] })] }));
|
|
482
482
|
}
|
|
483
483
|
const RlsAmount = memo(RlsAmountComponent);
|
|
484
484
|
|
|
@@ -495,7 +495,7 @@ function writeAreaValue(element, valueArea) {
|
|
|
495
495
|
element.value = valueArea;
|
|
496
496
|
element.setSelectionRange(caret, caret);
|
|
497
497
|
}
|
|
498
|
-
function RlsAreaTextComponent({ autoComplete, disabled, formControl, identifier, maxLength, maxRows, minRows, onBlur, onEnter, onFocus, onKeyDown, onKeyUp, onValue, placeholder, readOnly, resize = 'vertical', value }) {
|
|
498
|
+
function RlsAreaTextComponent({ autoComplete, disabled, formControl, identifier, maxLength, maxRows, minRows, rlsSize, onBlur, onEnter, onFocus, onKeyDown, onKeyUp, onValue, placeholder, readOnly, resize = 'vertical', value }) {
|
|
499
499
|
const valueInitial = String(formControl?.value ?? value ?? '');
|
|
500
500
|
const rowsMin = minRows ?? AREA_TEXT_MIN_ROWS;
|
|
501
501
|
const rowsMax = Math.max(maxRows ?? AREA_TEXT_MAX_ROWS, rowsMin);
|
|
@@ -612,24 +612,24 @@ function RlsAreaTextComponent({ autoComplete, disabled, formControl, identifier,
|
|
|
612
612
|
readonly: readOnly,
|
|
613
613
|
resizable: resize !== 'none' && !disabledArea && !readOnly
|
|
614
614
|
});
|
|
615
|
-
return (jsxRuntimeExports.jsxs("div", { id: identifier, className: className, children: [jsxRuntimeExports.jsx("textarea", { ref: areaRef, className: "rls-area-text__component", autoComplete: autoComplete ?? 'off', placeholder: placeholder, disabled: disabledArea, readOnly: readOnly, maxLength: maxLength, rows: rowsMin, style: { resize }, onFocus: onFocusArea, onBlur: onBlurArea, onChange: onChangeArea, onCompositionStart: onCompositionStart, onCompositionEnd: onCompositionEnd, onKeyDown: onKeyDownArea, onKeyUp: onKeyUpArea, value: valueArea }), jsxRuntimeExports.jsx("span", { className: "rls-area-text__value", "aria-hidden": "true", children: valueArea })] }));
|
|
615
|
+
return (jsxRuntimeExports.jsxs("div", { id: identifier, className: className, "rls-size": rlsSize, children: [jsxRuntimeExports.jsx("textarea", { ref: areaRef, className: "rls-area-text__component", autoComplete: autoComplete ?? 'off', placeholder: placeholder, disabled: disabledArea, readOnly: readOnly, maxLength: maxLength, rows: rowsMin, style: { resize }, onFocus: onFocusArea, onBlur: onBlurArea, onChange: onChangeArea, onCompositionStart: onCompositionStart, onCompositionEnd: onCompositionEnd, onKeyDown: onKeyDownArea, onKeyUp: onKeyUpArea, value: valueArea }), jsxRuntimeExports.jsx("span", { className: "rls-area-text__value", "aria-hidden": "true", children: valueArea })] }));
|
|
616
616
|
}
|
|
617
617
|
const RlsAreaText = memo(RlsAreaTextComponent);
|
|
618
618
|
|
|
619
|
-
function RlsAvatarComponent({ children, contrasted, rounded, skeleton, transparent, rlsTheme }) {
|
|
619
|
+
function RlsAvatarComponent({ children, contrasted, rlsSize, rounded, skeleton, transparent, rlsTheme }) {
|
|
620
620
|
const className = renderClassStatus('rls-avatar', {
|
|
621
621
|
contrasted,
|
|
622
622
|
rounded,
|
|
623
623
|
skeleton,
|
|
624
624
|
transparent
|
|
625
625
|
});
|
|
626
|
-
return (jsxRuntimeExports.jsx("div", { className: className, "rls-theme": rlsTheme, children: children }));
|
|
626
|
+
return (jsxRuntimeExports.jsx("div", { className: className, "rls-size": rlsSize, "rls-theme": rlsTheme, children: children }));
|
|
627
627
|
}
|
|
628
628
|
const RlsAvatar = memo(RlsAvatarComponent);
|
|
629
629
|
|
|
630
|
-
function RlsBadgeComponent({ children, contrasted, rlsTheme }) {
|
|
630
|
+
function RlsBadgeComponent({ children, contrasted, rlsSize, rlsTheme }) {
|
|
631
631
|
const className = renderClassStatus('rls-badge', { contrasted });
|
|
632
|
-
return (jsxRuntimeExports.jsx("span", { className: className, "rls-theme": rlsTheme, children: children }));
|
|
632
|
+
return (jsxRuntimeExports.jsx("span", { className: className, "rls-size": rlsSize, "rls-theme": rlsTheme, children: children }));
|
|
633
633
|
}
|
|
634
634
|
const RlsBadge = memo(RlsBadgeComponent);
|
|
635
635
|
|
|
@@ -639,40 +639,40 @@ function RlsBreadcrumbLabel({ label }) {
|
|
|
639
639
|
});
|
|
640
640
|
return (jsxRuntimeExports.jsx("span", { className: "rls-breadcrumb__label", onClick: label.onClick, children: jsxRuntimeExports.jsx("a", { className: className, "rls-theme": label.rlsTheme, children: label.label }) }));
|
|
641
641
|
}
|
|
642
|
-
function RlsBreadcrumbComponent({ labels }) {
|
|
642
|
+
function RlsBreadcrumbComponent({ labels, rlsSize }) {
|
|
643
643
|
const children = useMemo(() => {
|
|
644
644
|
return labels.map((label, index) => (jsxRuntimeExports.jsx(RlsBreadcrumbLabel, { label: label }, index)));
|
|
645
645
|
}, [labels]);
|
|
646
|
-
return jsxRuntimeExports.jsx("div", { className: "rls-breadcrumb", children: children });
|
|
646
|
+
return (jsxRuntimeExports.jsx("div", { className: "rls-breadcrumb", "rls-size": rlsSize, children: children }));
|
|
647
647
|
}
|
|
648
648
|
const RlsBreadcrumb = memo(RlsBreadcrumbComponent);
|
|
649
649
|
|
|
650
|
-
function RlsIconComponent({ value, className, rlsTheme, skeleton }) {
|
|
650
|
+
function RlsIconComponent({ value, className, rlsSize, rlsTheme, skeleton }) {
|
|
651
651
|
const classNameIcon = renderClassStatus('rls-icon', { skeleton }, className);
|
|
652
|
-
return (jsxRuntimeExports.jsx("div", { className: classNameIcon, "rls-theme": rlsTheme, children: jsxRuntimeExports.jsx("i", { className: `rls-icon-${value}` }) }));
|
|
652
|
+
return (jsxRuntimeExports.jsx("div", { className: classNameIcon, "rls-size": rlsSize, "rls-theme": rlsTheme, children: jsxRuntimeExports.jsx("i", { className: `rls-icon-${value}` }) }));
|
|
653
653
|
}
|
|
654
654
|
const RlsIcon = memo(RlsIconComponent);
|
|
655
655
|
|
|
656
|
-
function RlsSpinnerComponent() {
|
|
657
|
-
return (jsxRuntimeExports.jsxs("div", { className: "rls-spinner", children: [jsxRuntimeExports.jsx("svg", { className: "rls-spinner__svg rls-spinner__svg--1", viewBox: "0 0 64 64", children: jsxRuntimeExports.jsx("circle", {}) }), jsxRuntimeExports.jsx("svg", { className: "rls-spinner__svg rls-spinner__svg--2", viewBox: "0 0 64 64", children: jsxRuntimeExports.jsx("circle", {}) }), jsxRuntimeExports.jsx("svg", { className: "rls-spinner__svg rls-spinner__svg--3", viewBox: "0 0 64 64", children: jsxRuntimeExports.jsx("circle", {}) }), jsxRuntimeExports.jsx("svg", { className: "rls-spinner__svg rls-spinner__svg--4", viewBox: "0 0 64 64", children: jsxRuntimeExports.jsx("circle", {}) }), jsxRuntimeExports.jsx("svg", { className: "rls-spinner__svg rls-spinner__svg--5", viewBox: "0 0 64 64", children: jsxRuntimeExports.jsx("circle", {}) }), jsxRuntimeExports.jsx("svg", { className: "rls-spinner__svg rls-spinner__svg--6", viewBox: "0 0 64 64", children: jsxRuntimeExports.jsx("circle", {}) }), jsxRuntimeExports.jsx("svg", { className: "rls-spinner__svg rls-spinner__svg--7", viewBox: "0 0 64 64", children: jsxRuntimeExports.jsx("circle", {}) }), jsxRuntimeExports.jsx("svg", { className: "rls-spinner__svg rls-spinner__svg--8", viewBox: "0 0 64 64", children: jsxRuntimeExports.jsx("circle", {}) }), jsxRuntimeExports.jsx("svg", { className: "rls-spinner__svg rls-spinner__svg--9", viewBox: "0 0 64 64", children: jsxRuntimeExports.jsx("circle", {}) })] }));
|
|
656
|
+
function RlsSpinnerComponent({ rlsSize }) {
|
|
657
|
+
return (jsxRuntimeExports.jsxs("div", { className: "rls-spinner", "rls-size": rlsSize, children: [jsxRuntimeExports.jsx("svg", { className: "rls-spinner__svg rls-spinner__svg--1", viewBox: "0 0 64 64", children: jsxRuntimeExports.jsx("circle", {}) }), jsxRuntimeExports.jsx("svg", { className: "rls-spinner__svg rls-spinner__svg--2", viewBox: "0 0 64 64", children: jsxRuntimeExports.jsx("circle", {}) }), jsxRuntimeExports.jsx("svg", { className: "rls-spinner__svg rls-spinner__svg--3", viewBox: "0 0 64 64", children: jsxRuntimeExports.jsx("circle", {}) }), jsxRuntimeExports.jsx("svg", { className: "rls-spinner__svg rls-spinner__svg--4", viewBox: "0 0 64 64", children: jsxRuntimeExports.jsx("circle", {}) }), jsxRuntimeExports.jsx("svg", { className: "rls-spinner__svg rls-spinner__svg--5", viewBox: "0 0 64 64", children: jsxRuntimeExports.jsx("circle", {}) }), jsxRuntimeExports.jsx("svg", { className: "rls-spinner__svg rls-spinner__svg--6", viewBox: "0 0 64 64", children: jsxRuntimeExports.jsx("circle", {}) }), jsxRuntimeExports.jsx("svg", { className: "rls-spinner__svg rls-spinner__svg--7", viewBox: "0 0 64 64", children: jsxRuntimeExports.jsx("circle", {}) }), jsxRuntimeExports.jsx("svg", { className: "rls-spinner__svg rls-spinner__svg--8", viewBox: "0 0 64 64", children: jsxRuntimeExports.jsx("circle", {}) }), jsxRuntimeExports.jsx("svg", { className: "rls-spinner__svg rls-spinner__svg--9", viewBox: "0 0 64 64", children: jsxRuntimeExports.jsx("circle", {}) })] }));
|
|
658
658
|
}
|
|
659
659
|
const RlsSpinner = memo(RlsSpinnerComponent);
|
|
660
660
|
|
|
661
|
-
function RlsButtonComponent({ type, children, disabled, identifier, onClick, prefixIcon, requesting, rlsTheme, suffixIcon }) {
|
|
661
|
+
function RlsButtonComponent({ type, children, disabled, identifier, rlsSize, onClick, prefixIcon, requesting, rlsTheme, suffixIcon }) {
|
|
662
662
|
const className = renderClassStatus('rls-button__content', { type });
|
|
663
|
-
return (jsxRuntimeExports.jsx("button", { id: identifier, className: "rls-button", onClick: onClick, "rls-theme": rlsTheme, disabled: disabled, children: jsxRuntimeExports.jsxs("div", { className: className, children: [requesting && jsxRuntimeExports.jsx(RlsSpinner, {}), prefixIcon && jsxRuntimeExports.jsx(RlsIcon, { value: prefixIcon }), children && jsxRuntimeExports.jsx("div", { className: "rls-button__description", children: children }), suffixIcon && jsxRuntimeExports.jsx(RlsIcon, { value: suffixIcon })] }) }));
|
|
663
|
+
return (jsxRuntimeExports.jsx("button", { id: identifier, className: "rls-button", onClick: onClick, "rls-size": rlsSize, "rls-theme": rlsTheme, disabled: disabled, children: jsxRuntimeExports.jsxs("div", { className: className, children: [requesting && jsxRuntimeExports.jsx(RlsSpinner, {}), prefixIcon && jsxRuntimeExports.jsx(RlsIcon, { value: prefixIcon }), children && jsxRuntimeExports.jsx("div", { className: "rls-button__description", children: children }), suffixIcon && jsxRuntimeExports.jsx(RlsIcon, { value: suffixIcon })] }) }));
|
|
664
664
|
}
|
|
665
665
|
const RlsButton = memo(RlsButtonComponent);
|
|
666
666
|
|
|
667
|
-
function RlsButtonActionComponent({ icon, badge, disabled, identifier, onClick, rlsTheme, tooltip, type }) {
|
|
667
|
+
function RlsButtonActionComponent({ icon, badge, disabled, identifier, rlsSize, onClick, rlsTheme, tooltip, type }) {
|
|
668
668
|
const className = renderClassStatus('rls-button-action', { type });
|
|
669
|
-
return (jsxRuntimeExports.jsxs("button", { id: identifier, className: className, onClick: onClick, disabled: disabled, "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsxs("div", { className: "rls-button-action__content", children: [jsxRuntimeExports.jsx(RlsIcon, { value: icon }), badge && jsxRuntimeExports.jsx("span", { className: "rls-button-action__badge", children: badge })] }), tooltip && (jsxRuntimeExports.jsx("div", { className: "rls-button-action__tooltip rls-overline-font-medium", children: jsxRuntimeExports.jsx("span", { children: tooltip }) }))] }));
|
|
669
|
+
return (jsxRuntimeExports.jsxs("button", { id: identifier, className: className, onClick: onClick, disabled: disabled, "rls-size": rlsSize, "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsxs("div", { className: "rls-button-action__content", children: [jsxRuntimeExports.jsx(RlsIcon, { value: icon }), badge && jsxRuntimeExports.jsx("span", { className: "rls-button-action__badge", children: badge })] }), tooltip && (jsxRuntimeExports.jsx("div", { className: "rls-button-action__tooltip rls-overline-font-medium", children: jsxRuntimeExports.jsx("span", { children: tooltip }) }))] }));
|
|
670
670
|
}
|
|
671
671
|
const RlsButtonAction = memo(RlsButtonActionComponent);
|
|
672
672
|
|
|
673
|
-
function RlsButtonIconComponent({ icon, className, disabled, onClick, skeleton }) {
|
|
673
|
+
function RlsButtonIconComponent({ icon, className, disabled, rlsSize, onClick, skeleton }) {
|
|
674
674
|
const classNameButton = renderClassStatus('rls-button-icon', { skeleton }, className);
|
|
675
|
-
return (jsxRuntimeExports.jsx("button", { className: classNameButton, onClick: onClick, disabled: disabled, children: !skeleton && jsxRuntimeExports.jsx(RlsIcon, { value: icon }) }));
|
|
675
|
+
return (jsxRuntimeExports.jsx("button", { className: classNameButton, onClick: onClick, disabled: disabled, "rls-size": rlsSize, children: !skeleton && jsxRuntimeExports.jsx(RlsIcon, { value: icon }) }));
|
|
676
676
|
}
|
|
677
677
|
const RlsButtonIcon = memo(RlsButtonIconComponent);
|
|
678
678
|
|
|
@@ -690,7 +690,7 @@ function useFormSingleSelectionController({ disabled, formControl, onValue, valu
|
|
|
690
690
|
return { checked, onSelect };
|
|
691
691
|
}
|
|
692
692
|
|
|
693
|
-
function RlsButtonOptionComponent({ icon, children, disabled, formControl, identifier, onClick, onValue, value }) {
|
|
693
|
+
function RlsButtonOptionComponent({ icon, children, disabled, formControl, identifier, rlsSize, onClick, onValue, value }) {
|
|
694
694
|
const { checked, onSelect } = useFormSingleSelectionController({
|
|
695
695
|
disabled,
|
|
696
696
|
formControl,
|
|
@@ -702,38 +702,38 @@ function RlsButtonOptionComponent({ icon, children, disabled, formControl, ident
|
|
|
702
702
|
onSelect();
|
|
703
703
|
onClick?.();
|
|
704
704
|
}, [onSelect, onClick]);
|
|
705
|
-
return (jsxRuntimeExports.jsxs("button", { id: identifier, className: className, onClick: onAction, disabled: disabled, children: [jsxRuntimeExports.jsx(RlsIcon, { value: icon }), children] }));
|
|
705
|
+
return (jsxRuntimeExports.jsxs("button", { id: identifier, className: className, "rls-size": rlsSize, onClick: onAction, disabled: disabled, children: [jsxRuntimeExports.jsx(RlsIcon, { value: icon }), children] }));
|
|
706
706
|
}
|
|
707
707
|
const RlsButtonOption = memo(RlsButtonOptionComponent);
|
|
708
708
|
|
|
709
|
-
function RlsCheckBoxComponent({ checked, disabled, identifier, onClick, rlsTheme }) {
|
|
709
|
+
function RlsCheckBoxComponent({ checked, disabled, identifier, rlsSize, onClick, rlsTheme }) {
|
|
710
710
|
const className = renderClassStatus('rls-checkbox', { checked, disabled });
|
|
711
|
-
return (jsxRuntimeExports.jsx("div", { id: identifier, className: className, onClick: onClick, "rls-theme": rlsTheme, children: jsxRuntimeExports.jsx(RlsIcon, { value: "checkmark" }) }));
|
|
711
|
+
return (jsxRuntimeExports.jsx("div", { id: identifier, className: className, onClick: onClick, "rls-size": rlsSize, "rls-theme": rlsTheme, children: jsxRuntimeExports.jsx(RlsIcon, { value: "checkmark" }) }));
|
|
712
712
|
}
|
|
713
713
|
const RlsCheckBox = memo(RlsCheckBoxComponent);
|
|
714
|
-
function RlsCheckBoxControlComponent({ formControl, disabled, identifier, rlsTheme }) {
|
|
714
|
+
function RlsCheckBoxControlComponent({ formControl, disabled, identifier, rlsSize, rlsTheme }) {
|
|
715
715
|
const onClick = useCallback(() => {
|
|
716
716
|
formControl.setValue(!formControl.value);
|
|
717
717
|
}, [formControl.value]);
|
|
718
|
-
return (jsxRuntimeExports.jsx(RlsCheckBox, { identifier: identifier, checked: !!formControl.value, disabled: disabled, onClick: onClick, rlsTheme: rlsTheme }));
|
|
718
|
+
return (jsxRuntimeExports.jsx(RlsCheckBox, { identifier: identifier, checked: !!formControl.value, disabled: disabled, onClick: onClick, rlsSize: rlsSize, rlsTheme: rlsTheme }));
|
|
719
719
|
}
|
|
720
720
|
const RlsCheckBoxControl = memo(RlsCheckBoxControlComponent);
|
|
721
721
|
|
|
722
|
-
function RlsChipComponent({ children, className, contrasted, disabled, icon, identifier, onClick, onRemove, rlsTheme, selected }) {
|
|
722
|
+
function RlsChipComponent({ children, className, contrasted, disabled, icon, identifier, rlsSize, onClick, onRemove, rlsTheme, selected }) {
|
|
723
723
|
const classNameChip = renderClassStatus('rls-chip', { clickable: !!onClick && !disabled, contrasted, disabled, selected }, className);
|
|
724
|
-
return (jsxRuntimeExports.jsxs("div", { id: identifier, className: classNameChip, "rls-theme": rlsTheme, onClick: disabled ? undefined : onClick, children: [icon && jsxRuntimeExports.jsx(RlsIcon, { className: "rls-chip__icon", value: icon }), jsxRuntimeExports.jsx("span", { className: "rls-chip__description", children: children }), onRemove && !disabled && (jsxRuntimeExports.jsx("button", { className: "rls-chip__remove", type: "button", onClick: onRemove, children: jsxRuntimeExports.jsx(RlsIcon, { value: "close" }) }))] }));
|
|
724
|
+
return (jsxRuntimeExports.jsxs("div", { id: identifier, className: classNameChip, "rls-size": rlsSize, "rls-theme": rlsTheme, onClick: disabled ? undefined : onClick, children: [icon && jsxRuntimeExports.jsx(RlsIcon, { className: "rls-chip__icon", value: icon }), jsxRuntimeExports.jsx("span", { className: "rls-chip__description", children: children }), onRemove && !disabled && (jsxRuntimeExports.jsx("button", { className: "rls-chip__remove", type: "button", onClick: onRemove, children: jsxRuntimeExports.jsx(RlsIcon, { value: "close" }) }))] }));
|
|
725
725
|
}
|
|
726
726
|
const RlsChip = memo(RlsChipComponent);
|
|
727
727
|
|
|
728
|
-
function RlsSkeletonComponent({ animation, rlsTheme }) {
|
|
728
|
+
function RlsSkeletonComponent({ animation, rlsSize, rlsTheme }) {
|
|
729
729
|
const className = renderClassStatus('rls-skeleton', {
|
|
730
730
|
animation: animation !== 'shimmer' && animation
|
|
731
731
|
});
|
|
732
|
-
return jsxRuntimeExports.jsx("div", { className: className, "rls-theme": rlsTheme });
|
|
732
|
+
return (jsxRuntimeExports.jsx("div", { className: className, "rls-size": rlsSize, "rls-theme": rlsTheme }));
|
|
733
733
|
}
|
|
734
734
|
const RlsSkeleton = memo(RlsSkeletonComponent);
|
|
735
735
|
|
|
736
|
-
function RlsImageComponent({ src, rlsTheme }) {
|
|
736
|
+
function RlsImageComponent({ src, rlsSize, rlsTheme }) {
|
|
737
737
|
const [srcIsComplet, setSrcIsComplet] = useState(false);
|
|
738
738
|
const refImage = useRef(null);
|
|
739
739
|
const className = renderClassStatus('rls-image', { complet: srcIsComplet });
|
|
@@ -743,7 +743,7 @@ function RlsImageComponent({ src, rlsTheme }) {
|
|
|
743
743
|
const onLoad = useCallback(() => {
|
|
744
744
|
setSrcIsComplet(true);
|
|
745
745
|
}, []);
|
|
746
|
-
return (jsxRuntimeExports.jsxs("div", { className: className, "rls-theme": rlsTheme, children: [!srcIsComplet && jsxRuntimeExports.jsx(RlsSkeleton, { rlsTheme: rlsTheme }), jsxRuntimeExports.jsx("img", { ref: refImage, src: src, onLoad: onLoad })] }));
|
|
746
|
+
return (jsxRuntimeExports.jsxs("div", { className: className, "rls-size": rlsSize, "rls-theme": rlsTheme, children: [!srcIsComplet && jsxRuntimeExports.jsx(RlsSkeleton, { rlsTheme: rlsTheme }), jsxRuntimeExports.jsx("img", { ref: refImage, src: src, onLoad: onLoad })] }));
|
|
747
747
|
}
|
|
748
748
|
const RlsImage = memo(RlsImageComponent);
|
|
749
749
|
|
|
@@ -778,7 +778,7 @@ function writeInputValue(element, valueInput) {
|
|
|
778
778
|
element.setSelectionRange(caret, caret);
|
|
779
779
|
}
|
|
780
780
|
}
|
|
781
|
-
function RlsInputComponent({ children, decimals, disabled, formControl, identifier, onBlur, onEnter, onFocus, onKeyDown, onKeyUp, onValue, placeholder, readOnly, type, value }) {
|
|
781
|
+
function RlsInputComponent({ children, decimals, disabled, formControl, identifier, rlsSize, onBlur, onEnter, onFocus, onKeyDown, onKeyUp, onValue, placeholder, readOnly, type, value }) {
|
|
782
782
|
const [valueInput, setValueInput] = useState(() => valueToInput(formControl?.value ?? value));
|
|
783
783
|
const [focused, setFocused] = useState(false);
|
|
784
784
|
const composing = useRef(false);
|
|
@@ -846,11 +846,11 @@ function RlsInputComponent({ children, decimals, disabled, formControl, identifi
|
|
|
846
846
|
disabled: formControl?.disabled || disabled,
|
|
847
847
|
focused: formControl?.focused ?? focused
|
|
848
848
|
});
|
|
849
|
-
return (jsxRuntimeExports.jsxs("div", { id: identifier, className: className, children: [jsxRuntimeExports.jsx("input", { ref: formControl?.elementRef, className: "rls-input__component", autoComplete: "off", type: type ?? 'text', placeholder: placeholder, disabled: formControl?.disabled || disabled, readOnly: readOnly, onFocus: onFocusInput, onBlur: onBlurInput, onChange: onChangeInput, onCompositionStart: onCompositionStart, onCompositionEnd: onCompositionEnd, onKeyDown: onKeyDownInput, onKeyUp: onKeyUpInput, value: valueInput }), jsxRuntimeExports.jsx("span", { className: "rls-input__value", children: children })] }));
|
|
849
|
+
return (jsxRuntimeExports.jsxs("div", { id: identifier, className: className, "rls-size": rlsSize, children: [jsxRuntimeExports.jsx("input", { ref: formControl?.elementRef, className: "rls-input__component", autoComplete: "off", type: type ?? 'text', placeholder: placeholder, disabled: formControl?.disabled || disabled, readOnly: readOnly, onFocus: onFocusInput, onBlur: onBlurInput, onChange: onChangeInput, onCompositionStart: onCompositionStart, onCompositionEnd: onCompositionEnd, onKeyDown: onKeyDownInput, onKeyUp: onKeyUpInput, value: valueInput }), jsxRuntimeExports.jsx("span", { className: "rls-input__value", children: children })] }));
|
|
850
850
|
}
|
|
851
851
|
const RlsInput = memo(RlsInputComponent);
|
|
852
852
|
|
|
853
|
-
function RlsInputCounterComponent({ className, disabled, formControl, identifier, max, min, onBlur, onFocus, onValue, readOnly, rlsTheme, step = 1, value: valueProp }) {
|
|
853
|
+
function RlsInputCounterComponent({ className, disabled, formControl, identifier, max, min, rlsSize, onBlur, onFocus, onValue, readOnly, rlsTheme, step = 1, value: valueProp }) {
|
|
854
854
|
const changeIsInternal = useRef(false);
|
|
855
855
|
const [value, setValue] = useState(formControl?.value ?? valueProp ?? 0);
|
|
856
856
|
const [focused, setFocused] = useState(false);
|
|
@@ -900,12 +900,12 @@ function RlsInputCounterComponent({ className, disabled, formControl, identifier
|
|
|
900
900
|
formControl?.blur();
|
|
901
901
|
onBlur?.();
|
|
902
902
|
}, [formControl, onBlur]);
|
|
903
|
-
return (jsxRuntimeExports.jsxs("div", { id: identifier, className: classNameCounter, "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsx(RlsButtonIcon, { className: "rls-input-counter__down", icon: "minus", onClick: onDecrement, disabled: _disabled || decrementIsAllowed }), jsxRuntimeExports.jsx("div", { className: "rls-input-counter__body", children: jsxRuntimeExports.jsx("input", { ref: formControl?.elementRef, className: "rls-input-counter__control", type: "text", inputMode: "numeric", value: value, disabled: _disabled, readOnly: readOnly, onChange: onChangeInput, onFocus: onFocusInput, onBlur: onBlurInput }) }), jsxRuntimeExports.jsx(RlsButtonIcon, { className: "rls-input-counter__up", icon: "plus", onClick: onIncrement, disabled: _disabled || incrementIsAllowed })] }));
|
|
903
|
+
return (jsxRuntimeExports.jsxs("div", { id: identifier, className: classNameCounter, "rls-size": rlsSize, "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsx(RlsButtonIcon, { className: "rls-input-counter__down", icon: "minus", onClick: onDecrement, disabled: _disabled || decrementIsAllowed }), jsxRuntimeExports.jsx("div", { className: "rls-input-counter__body", children: jsxRuntimeExports.jsx("input", { ref: formControl?.elementRef, className: "rls-input-counter__control", type: "text", inputMode: "numeric", value: value, disabled: _disabled, readOnly: readOnly, onChange: onChangeInput, onFocus: onFocusInput, onBlur: onBlurInput }) }), jsxRuntimeExports.jsx(RlsButtonIcon, { className: "rls-input-counter__up", icon: "plus", onClick: onIncrement, disabled: _disabled || incrementIsAllowed })] }));
|
|
904
904
|
}
|
|
905
905
|
const RlsInputCounter = memo(RlsInputCounterComponent);
|
|
906
906
|
|
|
907
907
|
function RlsInputDecimalComponent(props) {
|
|
908
|
-
const { decimals, formControl, identifier, onValue, symbol, value } = props;
|
|
908
|
+
const { decimals, formControl, identifier, rlsSize, onValue, symbol, value } = props;
|
|
909
909
|
const [valueInput, setValueInput] = useState((formControl?.value ?? value ?? BigDecimal.zero()).rounded);
|
|
910
910
|
const amount = useMemo(() => {
|
|
911
911
|
return formControl?.value?.rounded ?? valueInput;
|
|
@@ -921,12 +921,12 @@ function RlsInputDecimalComponent(props) {
|
|
|
921
921
|
onValue?.(valueDecimal);
|
|
922
922
|
}, [formControl, onValue]);
|
|
923
923
|
const decimalProps = { ...props, formControl: undefined };
|
|
924
|
-
return (jsxRuntimeExports.jsx("div", { id: identifier, className: "rls-input-decimal", children: jsxRuntimeExports.jsx(RlsInput, { ...decimalProps, type: "number", value: valueInput, onValue: onValueInput, children: jsxRuntimeExports.jsx(RlsAmount, { value: amount, symbol: symbol, decimals: decimals }) }) }));
|
|
924
|
+
return (jsxRuntimeExports.jsx("div", { id: identifier, className: "rls-input-decimal", "rls-size": rlsSize, children: jsxRuntimeExports.jsx(RlsInput, { ...decimalProps, type: "number", value: valueInput, onValue: onValueInput, children: jsxRuntimeExports.jsx(RlsAmount, { value: amount, symbol: symbol, decimals: decimals }) }) }));
|
|
925
925
|
}
|
|
926
926
|
const RlsInputDecimal = memo(RlsInputDecimalComponent);
|
|
927
927
|
|
|
928
928
|
function RlsInputMoneyComponent(props) {
|
|
929
|
-
const { decimals, formControl, identifier, onValue, symbol, value } = props;
|
|
929
|
+
const { decimals, formControl, identifier, rlsSize, onValue, symbol, value } = props;
|
|
930
930
|
const [valueInput, setValueInput] = useState(formControl?.value ?? value ?? 0);
|
|
931
931
|
const onValueInput = useCallback((value) => {
|
|
932
932
|
if (!formControl) {
|
|
@@ -934,12 +934,12 @@ function RlsInputMoneyComponent(props) {
|
|
|
934
934
|
}
|
|
935
935
|
onValue?.(value);
|
|
936
936
|
}, [formControl, onValue]);
|
|
937
|
-
return (jsxRuntimeExports.jsx("div", { id: identifier, className: "rls-input-money", children: jsxRuntimeExports.jsx(RlsInput, { ...props, type: "number", value: valueInput, onValue: onValueInput, children: jsxRuntimeExports.jsx(RlsAmount, { value: formControl?.value ?? valueInput, symbol: symbol, decimals: decimals }) }) }));
|
|
937
|
+
return (jsxRuntimeExports.jsx("div", { id: identifier, className: "rls-input-money", "rls-size": rlsSize, children: jsxRuntimeExports.jsx(RlsInput, { ...props, type: "number", value: valueInput, onValue: onValueInput, children: jsxRuntimeExports.jsx(RlsAmount, { value: formControl?.value ?? valueInput, symbol: symbol, decimals: decimals }) }) }));
|
|
938
938
|
}
|
|
939
939
|
const RlsInputMoney = memo(RlsInputMoneyComponent);
|
|
940
940
|
|
|
941
941
|
function RlsInputNumberComponent(props) {
|
|
942
|
-
const { formControl, identifier, onValue, value } = props;
|
|
942
|
+
const { formControl, identifier, rlsSize, onValue, value } = props;
|
|
943
943
|
const [valueInput, setValueInput] = useState(formControl?.value ?? value ?? 0);
|
|
944
944
|
const onValueInput = useCallback((value) => {
|
|
945
945
|
if (!formControl) {
|
|
@@ -947,11 +947,11 @@ function RlsInputNumberComponent(props) {
|
|
|
947
947
|
}
|
|
948
948
|
onValue?.(value);
|
|
949
949
|
}, [formControl, onValue]);
|
|
950
|
-
return (jsxRuntimeExports.jsx("div", { id: identifier, className: "rls-input-number", children: jsxRuntimeExports.jsx(RlsInput, { ...props, type: "number", value: valueInput, onValue: onValueInput, children: formControl?.value ?? valueInput }) }));
|
|
950
|
+
return (jsxRuntimeExports.jsx("div", { id: identifier, className: "rls-input-number", "rls-size": rlsSize, children: jsxRuntimeExports.jsx(RlsInput, { ...props, type: "number", value: valueInput, onValue: onValueInput, children: formControl?.value ?? valueInput }) }));
|
|
951
951
|
}
|
|
952
952
|
const RlsInputNumber = memo(RlsInputNumberComponent);
|
|
953
953
|
|
|
954
|
-
function RlsInputPasswordComponent({ disabled, formControl, identifier, onEnter, onKeyDown, onKeyUp, onValue, placeholder, readOnly, type }) {
|
|
954
|
+
function RlsInputPasswordComponent({ disabled, formControl, identifier, rlsSize, onEnter, onKeyDown, onKeyUp, onValue, placeholder, readOnly, type }) {
|
|
955
955
|
const [focused, setFocused] = useState(false);
|
|
956
956
|
const _onChange = useCallback((event) => {
|
|
957
957
|
formControl?.setValue(event.target.value);
|
|
@@ -978,12 +978,12 @@ function RlsInputPasswordComponent({ disabled, formControl, identifier, onEnter,
|
|
|
978
978
|
disabled: formControl?.disabled || disabled,
|
|
979
979
|
focused: formControl?.focused ?? focused
|
|
980
980
|
});
|
|
981
|
-
return (jsxRuntimeExports.jsx("div", { id: identifier, className: className, children: jsxRuntimeExports.jsx("input", { className: "rls-input-password__component", autoComplete: "off", type: type ?? 'password', placeholder: placeholder, disabled: disabled, readOnly: readOnly, onFocus: _onFocus, onBlur: _onBlur, onChange: _onChange, onKeyDown: _onKeyDown, onKeyUp: _onKeyUp }) }));
|
|
981
|
+
return (jsxRuntimeExports.jsx("div", { id: identifier, className: className, "rls-size": rlsSize, children: jsxRuntimeExports.jsx("input", { className: "rls-input-password__component", autoComplete: "off", type: type ?? 'password', placeholder: placeholder, disabled: disabled, readOnly: readOnly, onFocus: _onFocus, onBlur: _onBlur, onChange: _onChange, onKeyDown: _onKeyDown, onKeyUp: _onKeyUp }) }));
|
|
982
982
|
}
|
|
983
983
|
const RlsInputPassword = memo(RlsInputPasswordComponent);
|
|
984
984
|
|
|
985
985
|
function RlsInputPercentageComponent(props) {
|
|
986
|
-
const { formControl, identifier, onValue, value } = props;
|
|
986
|
+
const { formControl, identifier, rlsSize, onValue, value } = props;
|
|
987
987
|
const [valueInput, setValueInput] = useState(formControl?.value ?? value ?? 0);
|
|
988
988
|
const onValueInput = useCallback((value) => {
|
|
989
989
|
if (!formControl) {
|
|
@@ -991,11 +991,11 @@ function RlsInputPercentageComponent(props) {
|
|
|
991
991
|
}
|
|
992
992
|
onValue?.(value);
|
|
993
993
|
}, [formControl, onValue]);
|
|
994
|
-
return (jsxRuntimeExports.jsx("div", { id: identifier, className: "rls-input-percentage", children: jsxRuntimeExports.jsxs(RlsInput, { ...props, type: "number", value: valueInput, onValue: onValueInput, children: [formControl?.value ?? valueInput, "%"] }) }));
|
|
994
|
+
return (jsxRuntimeExports.jsx("div", { id: identifier, className: "rls-input-percentage", "rls-size": rlsSize, children: jsxRuntimeExports.jsxs(RlsInput, { ...props, type: "number", value: valueInput, onValue: onValueInput, children: [formControl?.value ?? valueInput, "%"] }) }));
|
|
995
995
|
}
|
|
996
996
|
const RlsInputPercentage = memo(RlsInputPercentageComponent);
|
|
997
997
|
|
|
998
|
-
function RlsInputSearchComponent({ formControl, disabled, identifier, onEnter, onSearch, placeholder }) {
|
|
998
|
+
function RlsInputSearchComponent({ formControl, disabled, identifier, rlsSize, onEnter, onSearch, placeholder }) {
|
|
999
999
|
const [value, setValue] = useState('');
|
|
1000
1000
|
const className = renderClassStatus('rls-input-search', { disabled });
|
|
1001
1001
|
const onValue = useCallback((value) => {
|
|
@@ -1003,12 +1003,12 @@ function RlsInputSearchComponent({ formControl, disabled, identifier, onEnter, o
|
|
|
1003
1003
|
setValue(() => value);
|
|
1004
1004
|
}
|
|
1005
1005
|
}, [formControl]);
|
|
1006
|
-
return (jsxRuntimeExports.jsxs("div", { id: identifier, className: className, children: [jsxRuntimeExports.jsx(RlsInput, { formControl: formControl, placeholder: placeholder, onEnter: onEnter, onValue: onValue, disabled: disabled, children: formControl?.value ?? value }), onSearch && (jsxRuntimeExports.jsx(RlsButtonAction, { icon: "search", onClick: onSearch, disabled: disabled }))] }));
|
|
1006
|
+
return (jsxRuntimeExports.jsxs("div", { id: identifier, className: className, "rls-size": rlsSize, children: [jsxRuntimeExports.jsx(RlsInput, { formControl: formControl, placeholder: placeholder, rlsSize: rlsSize, onEnter: onEnter, onValue: onValue, disabled: disabled, children: formControl?.value ?? value }), onSearch && (jsxRuntimeExports.jsx(RlsButtonAction, { icon: "search", onClick: onSearch, disabled: disabled }))] }));
|
|
1007
1007
|
}
|
|
1008
1008
|
const RlsInputSearch = memo(RlsInputSearchComponent);
|
|
1009
1009
|
|
|
1010
1010
|
function RlsInputTextComponent(props) {
|
|
1011
|
-
const { formControl, identifier, onValue, value } = props;
|
|
1011
|
+
const { formControl, identifier, rlsSize, onValue, value } = props;
|
|
1012
1012
|
const [valueInput, setValueInput] = useState(formControl?.value ?? value ?? '');
|
|
1013
1013
|
const onValueInput = useCallback((value) => {
|
|
1014
1014
|
if (!formControl) {
|
|
@@ -1016,12 +1016,12 @@ function RlsInputTextComponent(props) {
|
|
|
1016
1016
|
}
|
|
1017
1017
|
onValue?.(value);
|
|
1018
1018
|
}, [formControl, onValue]);
|
|
1019
|
-
return (jsxRuntimeExports.jsx("div", { id: identifier, className: "rls-input-text", children: jsxRuntimeExports.jsx(RlsInput, { ...props, type: "text", value: valueInput, onValue: onValueInput, children: formControl?.value ?? valueInput }) }));
|
|
1019
|
+
return (jsxRuntimeExports.jsx("div", { id: identifier, className: "rls-input-text", "rls-size": rlsSize, children: jsxRuntimeExports.jsx(RlsInput, { ...props, type: "text", value: valueInput, onValue: onValueInput, children: formControl?.value ?? valueInput }) }));
|
|
1020
1020
|
}
|
|
1021
1021
|
const RlsInputText = memo(RlsInputTextComponent);
|
|
1022
1022
|
|
|
1023
|
-
function RlsLabelComponent({ children, rlsTheme }) {
|
|
1024
|
-
return (jsxRuntimeExports.jsx("span", { className: "rls-label", "rls-theme": rlsTheme, children: children }));
|
|
1023
|
+
function RlsLabelComponent({ children, rlsSize, rlsTheme }) {
|
|
1024
|
+
return (jsxRuntimeExports.jsx("span", { className: "rls-label", "rls-size": rlsSize, "rls-theme": rlsTheme, children: children }));
|
|
1025
1025
|
}
|
|
1026
1026
|
const RlsLabel = memo(RlsLabelComponent);
|
|
1027
1027
|
|
|
@@ -1408,7 +1408,7 @@ function setThemeAlias(source, theme = 'primary') {
|
|
|
1408
1408
|
const DEFAULT_COLOR = '#1780e0';
|
|
1409
1409
|
|
|
1410
1410
|
const CONTENT_BACKGROUND = '--pvt-content-background';
|
|
1411
|
-
function RlsLedComponent({ color, rlsTheme }) {
|
|
1411
|
+
function RlsLedComponent({ color, rlsSize, rlsTheme }) {
|
|
1412
1412
|
const refLed = useRef(null);
|
|
1413
1413
|
const refColor = useRef(undefined);
|
|
1414
1414
|
useEffect(() => {
|
|
@@ -1421,66 +1421,66 @@ function RlsLedComponent({ color, rlsTheme }) {
|
|
|
1421
1421
|
refLed.current?.style.setProperty(CONTENT_BACKGROUND, 'var(--rls-app-color-500)');
|
|
1422
1422
|
}
|
|
1423
1423
|
}, [color]);
|
|
1424
|
-
return jsxRuntimeExports.jsx("div", { ref: refLed, className: "rls-led", "rls-theme": rlsTheme });
|
|
1424
|
+
return (jsxRuntimeExports.jsx("div", { ref: refLed, className: "rls-led", "rls-size": rlsSize, "rls-theme": rlsTheme }));
|
|
1425
1425
|
}
|
|
1426
1426
|
const RlsLed = memo(RlsLedComponent);
|
|
1427
1427
|
|
|
1428
|
-
function RlsMessageIconComponent({ icon, children, rlsTheme }) {
|
|
1429
|
-
return (jsxRuntimeExports.jsxs("div", { className: "rls-message-icon", "rls-theme": rlsTheme, children: [icon && jsxRuntimeExports.jsx(RlsIcon, { value: icon }), jsxRuntimeExports.jsx("span", { className: "truncate", children: children })] }));
|
|
1428
|
+
function RlsMessageIconComponent({ icon, children, rlsSize, rlsTheme }) {
|
|
1429
|
+
return (jsxRuntimeExports.jsxs("div", { className: "rls-message-icon", "rls-size": rlsSize, "rls-theme": rlsTheme, children: [icon && jsxRuntimeExports.jsx(RlsIcon, { value: icon }), jsxRuntimeExports.jsx("span", { className: "truncate", children: children })] }));
|
|
1430
1430
|
}
|
|
1431
1431
|
const RlsMessageIcon = memo(RlsMessageIconComponent);
|
|
1432
1432
|
|
|
1433
|
-
function RlsPosterComponent({ children, contrasted, rlsTheme }) {
|
|
1433
|
+
function RlsPosterComponent({ children, contrasted, rlsSize, rlsTheme }) {
|
|
1434
1434
|
const className = renderClassStatus('rls-poster', { contrasted });
|
|
1435
|
-
return (jsxRuntimeExports.jsx("div", { className: className, "rls-theme": rlsTheme, children: children }));
|
|
1435
|
+
return (jsxRuntimeExports.jsx("div", { className: className, "rls-size": rlsSize, "rls-theme": rlsTheme, children: children }));
|
|
1436
1436
|
}
|
|
1437
1437
|
const RlsPoster = memo(RlsPosterComponent);
|
|
1438
1438
|
|
|
1439
|
-
function RlsProgressBarComponent({ indeterminate, percentage, rlsTheme }) {
|
|
1439
|
+
function RlsProgressBarComponent({ indeterminate, rlsSize, percentage, rlsTheme }) {
|
|
1440
1440
|
const className = renderClassStatus('rls-progress-bar', { indeterminate });
|
|
1441
|
-
return (jsxRuntimeExports.jsx("div", { className: className, "rls-theme": rlsTheme, children: jsxRuntimeExports.jsx("div", { className: "rls-progress-bar__component", style: { width: `${percentage ?? 0}%` } }) }));
|
|
1441
|
+
return (jsxRuntimeExports.jsx("div", { className: className, "rls-size": rlsSize, "rls-theme": rlsTheme, children: jsxRuntimeExports.jsx("div", { className: "rls-progress-bar__component", style: { width: `${percentage ?? 0}%` } }) }));
|
|
1442
1442
|
}
|
|
1443
1443
|
const RlsProgressBar = memo(RlsProgressBarComponent);
|
|
1444
1444
|
|
|
1445
|
-
function RlsProgressCircularComponent({ rlsTheme }) {
|
|
1446
|
-
return (jsxRuntimeExports.jsx("div", { className: "rls-progress-circular", "rls-theme": rlsTheme, children: jsxRuntimeExports.jsx("svg", { className: "rls-progress-circular__svg", viewBox: "0 0 36 36", children: jsxRuntimeExports.jsx("circle", { className: "rls-progress-circular__circle", cx: "18", cy: "18", r: "12" }) }) }));
|
|
1445
|
+
function RlsProgressCircularComponent({ rlsSize, rlsTheme }) {
|
|
1446
|
+
return (jsxRuntimeExports.jsx("div", { className: "rls-progress-circular", "rls-size": rlsSize, "rls-theme": rlsTheme, children: jsxRuntimeExports.jsx("svg", { className: "rls-progress-circular__svg", viewBox: "0 0 36 36", children: jsxRuntimeExports.jsx("circle", { className: "rls-progress-circular__circle", cx: "18", cy: "18", r: "12" }) }) }));
|
|
1447
1447
|
}
|
|
1448
1448
|
const RlsProgressCircular = memo(RlsProgressCircularComponent);
|
|
1449
1449
|
|
|
1450
|
-
function RlsRadioButtonComponent({ checked, disabled, identifier, rlsTheme, onClick }) {
|
|
1450
|
+
function RlsRadioButtonComponent({ checked, disabled, identifier, rlsSize, rlsTheme, onClick }) {
|
|
1451
1451
|
const className = renderClassStatus('rls-radiobutton', { checked, disabled });
|
|
1452
|
-
return (jsxRuntimeExports.jsx("div", { id: identifier, className: className, onClick: onClick, "rls-theme": rlsTheme, children: jsxRuntimeExports.jsx("div", { className: "rls-radiobutton__component" }) }));
|
|
1452
|
+
return (jsxRuntimeExports.jsx("div", { id: identifier, className: className, onClick: onClick, "rls-size": rlsSize, "rls-theme": rlsTheme, children: jsxRuntimeExports.jsx("div", { className: "rls-radiobutton__component" }) }));
|
|
1453
1453
|
}
|
|
1454
1454
|
const RlsRadioButton = memo(RlsRadioButtonComponent);
|
|
1455
1455
|
|
|
1456
|
-
function RlsSkeletonTextComponent({ active, animation, children, rlsTheme }) {
|
|
1457
|
-
return (jsxRuntimeExports.jsx("div", { className: "rls-skeleton-text", "rls-theme": rlsTheme, children: active ? (jsxRuntimeExports.jsx(RlsSkeleton, { animation: animation })) : (jsxRuntimeExports.jsx("div", { className: "rls-skeleton-text__value", children: children })) }));
|
|
1456
|
+
function RlsSkeletonTextComponent({ active, animation, children, rlsSize, rlsTheme }) {
|
|
1457
|
+
return (jsxRuntimeExports.jsx("div", { className: "rls-skeleton-text", "rls-size": rlsSize, "rls-theme": rlsTheme, children: active ? (jsxRuntimeExports.jsx(RlsSkeleton, { animation: animation })) : (jsxRuntimeExports.jsx("div", { className: "rls-skeleton-text__value", children: children })) }));
|
|
1458
1458
|
}
|
|
1459
1459
|
const RlsSkeletonText = memo(RlsSkeletonTextComponent);
|
|
1460
1460
|
|
|
1461
|
-
function RlsSwapHoverComponent({ children, content, identifier, rlsTheme }) {
|
|
1462
|
-
return (jsxRuntimeExports.jsxs("div", { id: identifier, className: "rls-swap-hover", "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsx("div", { className: "rls-swap-hover__primary", children: children }), jsxRuntimeExports.jsx("div", { className: "rls-swap-hover__secondary", children: content })] }));
|
|
1461
|
+
function RlsSwapHoverComponent({ children, content, identifier, rlsSize, rlsTheme }) {
|
|
1462
|
+
return (jsxRuntimeExports.jsxs("div", { id: identifier, className: "rls-swap-hover", "rls-size": rlsSize, "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsx("div", { className: "rls-swap-hover__primary", children: children }), jsxRuntimeExports.jsx("div", { className: "rls-swap-hover__secondary", children: content })] }));
|
|
1463
1463
|
}
|
|
1464
1464
|
const RlsHoverSwap = memo(RlsSwapHoverComponent);
|
|
1465
1465
|
|
|
1466
|
-
function RlsSwitchComponent({ checked, capsule, disabled, identifier, onClick, rlsTheme }) {
|
|
1466
|
+
function RlsSwitchComponent({ checked, capsule, disabled, identifier, rlsSize, onClick, rlsTheme }) {
|
|
1467
1467
|
const className = renderClassStatus('rls-switch', {
|
|
1468
1468
|
checked,
|
|
1469
1469
|
capsule,
|
|
1470
1470
|
disabled
|
|
1471
1471
|
});
|
|
1472
|
-
return (jsxRuntimeExports.jsx("div", { id: identifier, className: className, onClick: onClick, "rls-theme": rlsTheme, children: jsxRuntimeExports.jsx("div", { className: "rls-switch__component", children: jsxRuntimeExports.jsx("div", { className: "rls-switch__component__element" }) }) }));
|
|
1472
|
+
return (jsxRuntimeExports.jsx("div", { id: identifier, className: className, onClick: onClick, "rls-size": rlsSize, "rls-theme": rlsTheme, children: jsxRuntimeExports.jsx("div", { className: "rls-switch__component", children: jsxRuntimeExports.jsx("div", { className: "rls-switch__component__element" }) }) }));
|
|
1473
1473
|
}
|
|
1474
1474
|
const RlsSwitch = memo(RlsSwitchComponent);
|
|
1475
|
-
function RlsSwitchControlComponent({ formControl, disabled, identifier, rlsTheme }) {
|
|
1475
|
+
function RlsSwitchControlComponent({ formControl, disabled, identifier, rlsSize, rlsTheme }) {
|
|
1476
1476
|
const onClick = useCallback(() => {
|
|
1477
1477
|
formControl.setValue(!formControl.value);
|
|
1478
1478
|
}, [formControl.value]);
|
|
1479
|
-
return (jsxRuntimeExports.jsx(RlsSwitch, { identifier: identifier, checked: formControl.value, disabled: disabled, onClick: onClick, rlsTheme: rlsTheme }));
|
|
1479
|
+
return (jsxRuntimeExports.jsx(RlsSwitch, { identifier: identifier, checked: formControl.value, disabled: disabled, onClick: onClick, rlsSize: rlsSize, rlsTheme: rlsTheme }));
|
|
1480
1480
|
}
|
|
1481
1481
|
const RlsSwitchControl = memo(RlsSwitchControlComponent);
|
|
1482
1482
|
|
|
1483
|
-
function RlsAccordionComponent({ bordered, children, className, disabled, identifier, onToggle, opened, rlsTheme, title }) {
|
|
1483
|
+
function RlsAccordionComponent({ bordered, children, className, disabled, identifier, rlsSize, onToggle, opened, rlsTheme, title }) {
|
|
1484
1484
|
const [open, setOpen] = useState(opened);
|
|
1485
1485
|
const [animating, setAnimating] = useState(false);
|
|
1486
1486
|
const contentRef = useRef(null);
|
|
@@ -1529,13 +1529,13 @@ function RlsAccordionComponent({ bordered, children, className, disabled, identi
|
|
|
1529
1529
|
setAnimating(false);
|
|
1530
1530
|
}
|
|
1531
1531
|
}, [open]);
|
|
1532
|
-
return (jsxRuntimeExports.jsxs("div", { id: identifier, className: classNameAccordion, "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsxs("button", { type: "button", className: "rls-accordion__header", "aria-expanded": open, disabled: disabled, onClick: onClickHeader, children: [jsxRuntimeExports.jsx("span", { className: "rls-accordion__title", children: title }), jsxRuntimeExports.jsx("span", { className: "rls-accordion__indicator", children: jsxRuntimeExports.jsx(RlsIcon, { value: "chevron-down" }) })] }), jsxRuntimeExports.jsx("div", { ref: contentRef, className: "rls-accordion__body", "aria-hidden": !open, onTransitionEnd: onTransitionEnd, children: jsxRuntimeExports.jsx("div", { className: "rls-accordion__content", children: children }) })] }));
|
|
1532
|
+
return (jsxRuntimeExports.jsxs("div", { id: identifier, className: classNameAccordion, "rls-size": rlsSize, "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsxs("button", { type: "button", className: "rls-accordion__header", "aria-expanded": open, disabled: disabled, onClick: onClickHeader, children: [jsxRuntimeExports.jsx("span", { className: "rls-accordion__title", children: title }), jsxRuntimeExports.jsx("span", { className: "rls-accordion__indicator", children: jsxRuntimeExports.jsx(RlsIcon, { value: "chevron-down" }) })] }), jsxRuntimeExports.jsx("div", { ref: contentRef, className: "rls-accordion__body", "aria-hidden": !open, onTransitionEnd: onTransitionEnd, children: jsxRuntimeExports.jsx("div", { className: "rls-accordion__content", children: children }) })] }));
|
|
1533
1533
|
}
|
|
1534
1534
|
const RlsAccordion = memo(RlsAccordionComponent);
|
|
1535
1535
|
|
|
1536
|
-
function RlsAlertComponent({ bordered, children, icon, identifier, rlsTheme }) {
|
|
1536
|
+
function RlsAlertComponent({ bordered, children, icon, identifier, rlsSize, rlsTheme }) {
|
|
1537
1537
|
const className = renderClassStatus('rls-alert', { bordered });
|
|
1538
|
-
return (jsxRuntimeExports.jsxs("div", { id: identifier, className: className, "rls-theme": rlsTheme, children: [icon && (jsxRuntimeExports.jsx("div", { className: "rls-alert__icon", children: jsxRuntimeExports.jsx(RlsIcon, { value: icon }) })), jsxRuntimeExports.jsx("div", { className: "rls-alert__content", children: children })] }));
|
|
1538
|
+
return (jsxRuntimeExports.jsxs("div", { id: identifier, className: className, "rls-size": rlsSize, "rls-theme": rlsTheme, children: [icon && (jsxRuntimeExports.jsx("div", { className: "rls-alert__icon", children: jsxRuntimeExports.jsx(RlsIcon, { value: icon }) })), jsxRuntimeExports.jsx("div", { className: "rls-alert__content", children: children })] }));
|
|
1539
1539
|
}
|
|
1540
1540
|
const RlsAlert = memo(RlsAlertComponent);
|
|
1541
1541
|
|
|
@@ -1602,9 +1602,9 @@ function RlsTab({ disabled, onSelect, tab, value }) {
|
|
|
1602
1602
|
onSelect(tab.value);
|
|
1603
1603
|
}
|
|
1604
1604
|
}, [disabled, tab.disabled, onSelect]);
|
|
1605
|
-
return (jsxRuntimeExports.
|
|
1605
|
+
return (jsxRuntimeExports.jsxs("div", { className: className, onClick: onClick, children: [jsxRuntimeExports.jsx("span", { children: tab.label }), tab.badge && (jsxRuntimeExports.jsx(RlsBadge, { rlsTheme: tab.badge.rlsTheme, contrasted: tab.badge.contrasted, children: tab.badge.label }))] }));
|
|
1606
1606
|
}
|
|
1607
|
-
function RlsTabsComponent({ tabs, formControl, onValue, value, rlsTheme }) {
|
|
1607
|
+
function RlsTabsComponent({ tabs, formControl, rlsSize, onValue, value, rlsTheme }) {
|
|
1608
1608
|
const [valueInternal, setValueInternal] = useState();
|
|
1609
1609
|
const valueSelected = useMemo(() => {
|
|
1610
1610
|
return formControl ? formControl.value : valueInternal;
|
|
@@ -1630,7 +1630,7 @@ function RlsTabsComponent({ tabs, formControl, onValue, value, rlsTheme }) {
|
|
|
1630
1630
|
onSelect(initial.value);
|
|
1631
1631
|
}
|
|
1632
1632
|
}, [value, formControl?.value]);
|
|
1633
|
-
return (jsxRuntimeExports.jsx("div", { className: "rls-tabs", "rls-theme": rlsTheme, children: tabs.map((tab, index) => {
|
|
1633
|
+
return (jsxRuntimeExports.jsx("div", { className: "rls-tabs", "rls-size": rlsSize, "rls-theme": rlsTheme, children: tabs.map((tab, index) => {
|
|
1634
1634
|
return (jsxRuntimeExports.jsx(RlsTab, { tab: tab, disabled: formControl?.disabled, value: valueSelected, onSelect: onSelect }, index));
|
|
1635
1635
|
}) }));
|
|
1636
1636
|
}
|
|
@@ -1642,7 +1642,7 @@ const LABELS = {
|
|
|
1642
1642
|
dim: () => reactI18n('appThemeDim'),
|
|
1643
1643
|
dark: () => reactI18n('appThemeDark')
|
|
1644
1644
|
};
|
|
1645
|
-
function RlsAppThemeTabsComponent({ labels, onValue, rlsTheme, themes = APP_THEMES, value }) {
|
|
1645
|
+
function RlsAppThemeTabsComponent({ labels, rlsSize, onValue, rlsTheme, themes = APP_THEMES, value }) {
|
|
1646
1646
|
const [appTheme, setAppThemeValue] = useState(() => value ?? getAppTheme());
|
|
1647
1647
|
useEffect(() => {
|
|
1648
1648
|
if (value !== undefined) {
|
|
@@ -1661,39 +1661,39 @@ function RlsAppThemeTabsComponent({ labels, onValue, rlsTheme, themes = APP_THEM
|
|
|
1661
1661
|
setAppThemeValue(theme);
|
|
1662
1662
|
onValue?.(theme);
|
|
1663
1663
|
}, [onValue]);
|
|
1664
|
-
return (jsxRuntimeExports.jsx(RlsTabs, { tabs: tabs, value: appTheme, onValue: onSelect, rlsTheme: rlsTheme }));
|
|
1664
|
+
return (jsxRuntimeExports.jsx(RlsTabs, { tabs: tabs, value: appTheme, onValue: onSelect, rlsSize: rlsSize, rlsTheme: rlsTheme }));
|
|
1665
1665
|
}
|
|
1666
1666
|
const RlsAppThemeTabs = memo(RlsAppThemeTabsComponent);
|
|
1667
1667
|
|
|
1668
|
-
function RlsBallotComponent({ bordered, className, children, img, initials, skeleton, subtitle, rlsTheme }) {
|
|
1668
|
+
function RlsBallotComponent({ bordered, className, children, img, initials, skeleton, subtitle, rlsSize, rlsTheme }) {
|
|
1669
1669
|
const classNameBallot = renderClassStatus('rls-ballot', { bordered, skeleton }, className);
|
|
1670
|
-
return (jsxRuntimeExports.jsxs("div", { className: classNameBallot, "rls-theme": rlsTheme, children: [(img || initials) && (jsxRuntimeExports.jsxs(RlsAvatar, { skeleton: skeleton, children: [img && jsxRuntimeExports.jsx("img", { src: img }), initials && jsxRuntimeExports.jsx("span", { children: initials })] })), jsxRuntimeExports.jsxs("div", { className: "rls-ballot__component", children: [jsxRuntimeExports.jsx("div", { className: "rls-ballot__title", children: jsxRuntimeExports.jsx(RlsSkeletonText, { active: skeleton, children: children }) }), subtitle && (jsxRuntimeExports.jsx("div", { className: "rls-ballot__subtitle", children: jsxRuntimeExports.jsx(RlsSkeletonText, { active: skeleton, children: subtitle }) }))] })] }));
|
|
1670
|
+
return (jsxRuntimeExports.jsxs("div", { className: classNameBallot, "rls-size": rlsSize, "rls-theme": rlsTheme, children: [(img || initials) && (jsxRuntimeExports.jsxs(RlsAvatar, { skeleton: skeleton, rlsSize: rlsSize, children: [img && jsxRuntimeExports.jsx("img", { src: img }), initials && jsxRuntimeExports.jsx("span", { children: initials })] })), jsxRuntimeExports.jsxs("div", { className: "rls-ballot__component", children: [jsxRuntimeExports.jsx("div", { className: "rls-ballot__title", children: jsxRuntimeExports.jsx(RlsSkeletonText, { active: skeleton, children: children }) }), subtitle && (jsxRuntimeExports.jsx("div", { className: "rls-ballot__subtitle", children: jsxRuntimeExports.jsx(RlsSkeletonText, { active: skeleton, children: subtitle }) }))] })] }));
|
|
1671
1671
|
}
|
|
1672
1672
|
const RlsBallot = memo(RlsBallotComponent);
|
|
1673
1673
|
|
|
1674
|
-
function RlsBodyComponent({ children, identifier, rlsTheme }) {
|
|
1675
|
-
return (jsxRuntimeExports.jsx("div", { id: identifier, className: "rls-app__page__body", "rls-theme": rlsTheme, children: children }));
|
|
1674
|
+
function RlsBodyComponent({ children, identifier, rlsSize, rlsTheme }) {
|
|
1675
|
+
return (jsxRuntimeExports.jsx("div", { id: identifier, className: "rls-app__page__body", "rls-size": rlsSize, "rls-theme": rlsTheme, children: children }));
|
|
1676
1676
|
}
|
|
1677
1677
|
const RlsBody = memo(RlsBodyComponent);
|
|
1678
1678
|
|
|
1679
|
-
function RlsButtonProgressComponent({ icon, disabled, onClick, progressing, rlsTheme }) {
|
|
1679
|
+
function RlsButtonProgressComponent({ icon, disabled, rlsSize, onClick, progressing, rlsTheme }) {
|
|
1680
1680
|
const className = renderClassStatus('rls-button-progress', { progressing });
|
|
1681
|
-
return (jsxRuntimeExports.jsxs("div", { className: className, "rls-theme": rlsTheme, children: [!progressing && (jsxRuntimeExports.jsx(RlsButtonAction, { icon: icon, onClick: onClick, disabled: disabled })), progressing && jsxRuntimeExports.jsx(RlsProgressCircular, {})] }));
|
|
1681
|
+
return (jsxRuntimeExports.jsxs("div", { className: className, "rls-size": rlsSize, "rls-theme": rlsTheme, children: [!progressing && (jsxRuntimeExports.jsx(RlsButtonAction, { icon: icon, onClick: onClick, disabled: disabled })), progressing && jsxRuntimeExports.jsx(RlsProgressCircular, {})] }));
|
|
1682
1682
|
}
|
|
1683
1683
|
const RlsButtonProgress = memo(RlsButtonProgressComponent);
|
|
1684
1684
|
|
|
1685
|
-
function RlsButtonStepperComponent({ disabled, onAction, rlsTheme }) {
|
|
1685
|
+
function RlsButtonStepperComponent({ disabled, rlsSize, onAction, rlsTheme }) {
|
|
1686
1686
|
const onDown = useCallback(() => {
|
|
1687
1687
|
onAction?.('down');
|
|
1688
1688
|
}, [onAction]);
|
|
1689
1689
|
const onUp = useCallback(() => {
|
|
1690
1690
|
onAction?.('up');
|
|
1691
1691
|
}, [onAction]);
|
|
1692
|
-
return (jsxRuntimeExports.jsxs("div", { className: "rls-button-stepper", "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsx(RlsButtonIcon, { icon: "arrow-ios-down", disabled: disabled, onClick: onDown }), jsxRuntimeExports.jsx(RlsButtonIcon, { icon: "arrow-ios-up", disabled: disabled, onClick: onUp })] }));
|
|
1692
|
+
return (jsxRuntimeExports.jsxs("div", { className: "rls-button-stepper", "rls-size": rlsSize, "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsx(RlsButtonIcon, { icon: "arrow-ios-down", disabled: disabled, onClick: onDown }), jsxRuntimeExports.jsx(RlsButtonIcon, { icon: "arrow-ios-up", disabled: disabled, onClick: onUp })] }));
|
|
1693
1693
|
}
|
|
1694
1694
|
const RlsButtonStepper = memo(RlsButtonStepperComponent);
|
|
1695
1695
|
|
|
1696
|
-
function RlsButtonToggleComponent({ onAction, options, type, automatic, disabled, rlsTheme }) {
|
|
1696
|
+
function RlsButtonToggleComponent({ onAction, options, type, automatic, disabled, rlsSize, rlsTheme }) {
|
|
1697
1697
|
const componentRef = useRef(null);
|
|
1698
1698
|
const [action, setAction] = useState(options[0]);
|
|
1699
1699
|
const [visible, setVisible] = useState(false);
|
|
@@ -1734,11 +1734,11 @@ function RlsButtonToggleComponent({ onAction, options, type, automatic, disabled
|
|
|
1734
1734
|
onSelectAction(option);
|
|
1735
1735
|
}
|
|
1736
1736
|
}, [options, onSelectAction]);
|
|
1737
|
-
return (jsxRuntimeExports.jsxs("div", { className: "rls-button-toggle", ref: componentRef, "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsxs("div", { className: "rls-button-toggle__content", children: [action && (jsxRuntimeExports.jsx("div", { className: "rls-button-toggle__action", children: jsxRuntimeExports.jsx(RlsButton, { disabled: disabled, type: type, onClick: onClickAction, children: action.label }) })), jsxRuntimeExports.jsx("div", { className: "rls-button-toggle__icon", children: jsxRuntimeExports.jsx(RlsButton, { type: type, prefixIcon: "arrow-ios-down", disabled: disabled, onClick: onClickMenu }) })] }), jsxRuntimeExports.jsx("div", { className: classNameList, children: jsxRuntimeExports.jsx("ul", { children: options.map((action, index) => (jsxRuntimeExports.jsx("li", { className: "rls-truncate", "data-index": index, onClick: onClickOption, children: action.label }, index))) }) })] }));
|
|
1737
|
+
return (jsxRuntimeExports.jsxs("div", { className: "rls-button-toggle", ref: componentRef, "rls-size": rlsSize, "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsxs("div", { className: "rls-button-toggle__content", children: [action && (jsxRuntimeExports.jsx("div", { className: "rls-button-toggle__action", children: jsxRuntimeExports.jsx(RlsButton, { disabled: disabled, type: type, onClick: onClickAction, children: action.label }) })), jsxRuntimeExports.jsx("div", { className: "rls-button-toggle__icon", children: jsxRuntimeExports.jsx(RlsButton, { type: type, prefixIcon: "arrow-ios-down", disabled: disabled, onClick: onClickMenu }) })] }), jsxRuntimeExports.jsx("div", { className: classNameList, children: jsxRuntimeExports.jsx("ul", { children: options.map((action, index) => (jsxRuntimeExports.jsx("li", { className: "rls-truncate", "data-index": index, onClick: onClickOption, children: action.label }, index))) }) })] }));
|
|
1738
1738
|
}
|
|
1739
1739
|
const RlsButtonToggle = memo(RlsButtonToggleComponent);
|
|
1740
1740
|
|
|
1741
|
-
function RlsChipGroupComponent({ className, disabled: disabledProps, formControl, identifier, onValue, options, reference, render, rlsTheme, value: valueInitial }) {
|
|
1741
|
+
function RlsChipGroupComponent({ className, disabled: disabledProps, formControl, identifier, rlsSize, onValue, options, reference, render, rlsTheme, value: valueInitial }) {
|
|
1742
1742
|
const [value, setValue] = useState(formControl?.value ?? valueInitial);
|
|
1743
1743
|
const selected = useMemo(() => {
|
|
1744
1744
|
return formControl ? formControl.value : value;
|
|
@@ -1764,12 +1764,12 @@ function RlsChipGroupComponent({ className, disabled: disabledProps, formControl
|
|
|
1764
1764
|
formControl?.touch();
|
|
1765
1765
|
onValue?.(option);
|
|
1766
1766
|
}, [disabled, formControl, onValue]);
|
|
1767
|
-
return (jsxRuntimeExports.jsx("div", { id: identifier, className: classNameGroup, "rls-theme": rlsTheme, children: options.map((option, index) => (jsxRuntimeExports.jsx(RlsChip, { disabled: disabled, selected: isSelected(option), onClick: onSelect(option), children: render ? render(option) : String(option) }, index))) }));
|
|
1767
|
+
return (jsxRuntimeExports.jsx("div", { id: identifier, className: classNameGroup, "rls-size": rlsSize, "rls-theme": rlsTheme, children: options.map((option, index) => (jsxRuntimeExports.jsx(RlsChip, { disabled: disabled, selected: isSelected(option), onClick: onSelect(option), children: render ? render(option) : String(option) }, index))) }));
|
|
1768
1768
|
}
|
|
1769
1769
|
const RlsChipGroup = memo(RlsChipGroupComponent);
|
|
1770
1770
|
|
|
1771
|
-
function RlsContentComponent({ children, identifier, rlsTheme }) {
|
|
1772
|
-
return (jsxRuntimeExports.jsx("div", { id: identifier, className: "rls-app__page__content", "rls-theme": rlsTheme, children: children }));
|
|
1771
|
+
function RlsContentComponent({ children, identifier, rlsSize, rlsTheme }) {
|
|
1772
|
+
return (jsxRuntimeExports.jsx("div", { id: identifier, className: "rls-app__page__content", "rls-size": rlsSize, "rls-theme": rlsTheme, children: children }));
|
|
1773
1773
|
}
|
|
1774
1774
|
const RlsContent = memo(RlsContentComponent);
|
|
1775
1775
|
|
|
@@ -1882,7 +1882,7 @@ function msgErrorsI18n(key, language, interpolators) {
|
|
|
1882
1882
|
return _msgErrorsI18n(key, { language, interpolators });
|
|
1883
1883
|
}
|
|
1884
1884
|
|
|
1885
|
-
function RlsMessageFormErrorComponent({ className, formControl }) {
|
|
1885
|
+
function RlsMessageFormErrorComponent({ className, formControl, rlsSize }) {
|
|
1886
1886
|
const [language, setLanguage] = useState('es');
|
|
1887
1887
|
useEffect(() => {
|
|
1888
1888
|
return i18nSubscribe((language) => {
|
|
@@ -1894,12 +1894,12 @@ function RlsMessageFormErrorComponent({ className, formControl }) {
|
|
|
1894
1894
|
(msgErrorsI18n(formControl.error.id, language, formControl.error.data) ||
|
|
1895
1895
|
msgErrorsI18n('_unknown', language, { error: formControl.error.id })));
|
|
1896
1896
|
}, [formControl?.error, language]);
|
|
1897
|
-
return (jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: formControl?.wrong && (jsxRuntimeExports.jsx("div", { className: className, children: jsxRuntimeExports.jsx(RlsMessageIcon, { icon: "alert-triangle", rlsTheme: "danger", children: msgError }) })) }));
|
|
1897
|
+
return (jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: formControl?.wrong && (jsxRuntimeExports.jsx("div", { className: className, "rls-size": rlsSize, children: jsxRuntimeExports.jsx(RlsMessageIcon, { icon: "alert-triangle", rlsTheme: "danger", children: msgError }) })) }));
|
|
1898
1898
|
}
|
|
1899
1899
|
const RlsMessageFormError = memo(RlsMessageFormErrorComponent);
|
|
1900
1900
|
|
|
1901
1901
|
function RlsFieldAreaComponent(props) {
|
|
1902
|
-
const { children, formControl, identifier, maxLength, rlsTheme } = props;
|
|
1902
|
+
const { children, formControl, identifier, maxLength, rlsSize, rlsTheme } = props;
|
|
1903
1903
|
const { onValue } = props;
|
|
1904
1904
|
const disabled = useMemo(() => {
|
|
1905
1905
|
return formControl?.disabled || props.disabled;
|
|
@@ -1923,12 +1923,12 @@ function RlsFieldAreaComponent(props) {
|
|
|
1923
1923
|
focused: formControl?.focused && !disabled,
|
|
1924
1924
|
readonly: props.readOnly
|
|
1925
1925
|
}, 'rls-field-area');
|
|
1926
|
-
return (jsxRuntimeExports.jsxs("div", { id: identifier, className: className, "rls-theme": rlsTheme, children: [children && jsxRuntimeExports.jsx("span", { className: "rls-field-box__label", children: children }), jsxRuntimeExports.jsx("div", { className: "rls-field-box__component", children: jsxRuntimeExports.jsx("div", { className: "rls-field-box__body", children: jsxRuntimeExports.jsx(RlsAreaText, { ...props, onValue: onValueArea }) }) }), props.counter && (jsxRuntimeExports.jsx("span", { className: "rls-field-box__helper rls-field-area__counter", children: maxLength ? `${valueLength} / ${maxLength}` : valueLength })), !props.msgErrorDisabled && (jsxRuntimeExports.jsx(RlsMessageFormError, { className: "rls-field-box__error", formControl: formControl }))] }));
|
|
1926
|
+
return (jsxRuntimeExports.jsxs("div", { id: identifier, className: className, "rls-size": rlsSize, "rls-theme": rlsTheme, children: [children && jsxRuntimeExports.jsx("span", { className: "rls-field-box__label", children: children }), jsxRuntimeExports.jsx("div", { className: "rls-field-box__component", children: jsxRuntimeExports.jsx("div", { className: "rls-field-box__body", children: jsxRuntimeExports.jsx(RlsAreaText, { ...props, onValue: onValueArea }) }) }), props.counter && (jsxRuntimeExports.jsx("span", { className: "rls-field-box__helper rls-field-area__counter", children: maxLength ? `${valueLength} / ${maxLength}` : valueLength })), !props.msgErrorDisabled && (jsxRuntimeExports.jsx(RlsMessageFormError, { className: "rls-field-box__error", formControl: formControl }))] }));
|
|
1927
1927
|
}
|
|
1928
1928
|
const RlsFieldArea = memo(RlsFieldAreaComponent);
|
|
1929
1929
|
|
|
1930
1930
|
function RlsFieldDecimalComponent(props) {
|
|
1931
|
-
const { children, formControl, identifier, rlsTheme } = props;
|
|
1931
|
+
const { children, formControl, identifier, rlsSize, rlsTheme } = props;
|
|
1932
1932
|
const disabled = useMemo(() => {
|
|
1933
1933
|
return formControl?.disabled || props.disabled;
|
|
1934
1934
|
}, [formControl?.disabled, props.disabled]);
|
|
@@ -1938,11 +1938,11 @@ function RlsFieldDecimalComponent(props) {
|
|
|
1938
1938
|
focused: formControl?.focused && !disabled,
|
|
1939
1939
|
readonly: props.readOnly
|
|
1940
1940
|
}, 'rls-field-decimal');
|
|
1941
|
-
return (jsxRuntimeExports.jsxs("div", { id: identifier, className: className, "rls-theme": rlsTheme, children: [children && jsxRuntimeExports.jsx("span", { className: "rls-field-box__label", children: children }), jsxRuntimeExports.jsx("div", { className: "rls-field-box__component", children: jsxRuntimeExports.jsx("div", { className: "rls-field-box__body", children: jsxRuntimeExports.jsx(RlsInputDecimal, { ...props }) }) }), !props.msgErrorDisabled && (jsxRuntimeExports.jsx(RlsMessageFormError, { className: "rls-field-box__error", formControl: formControl }))] }));
|
|
1941
|
+
return (jsxRuntimeExports.jsxs("div", { id: identifier, className: className, "rls-size": rlsSize, "rls-theme": rlsTheme, children: [children && jsxRuntimeExports.jsx("span", { className: "rls-field-box__label", children: children }), jsxRuntimeExports.jsx("div", { className: "rls-field-box__component", children: jsxRuntimeExports.jsx("div", { className: "rls-field-box__body", children: jsxRuntimeExports.jsx(RlsInputDecimal, { ...props }) }) }), !props.msgErrorDisabled && (jsxRuntimeExports.jsx(RlsMessageFormError, { className: "rls-field-box__error", formControl: formControl }))] }));
|
|
1942
1942
|
}
|
|
1943
1943
|
const RlsFieldDecimal = memo(RlsFieldDecimalComponent);
|
|
1944
1944
|
|
|
1945
|
-
function RlsFieldFileComponent({ accept, children, disabled: _disabled, formControl, identifier, msgErrorDisabled, onValue, placeholder, readOnly, rlsTheme, value }) {
|
|
1945
|
+
function RlsFieldFileComponent({ accept, children, disabled: _disabled, formControl, identifier, msgErrorDisabled, rlsSize, onValue, placeholder, readOnly, rlsTheme, value }) {
|
|
1946
1946
|
const inputRef = useRef(null);
|
|
1947
1947
|
const disabled = useMemo(() => formControl?.disabled || _disabled, [formControl?.disabled, _disabled]);
|
|
1948
1948
|
const className = renderClassStatus('rls-field-box', {
|
|
@@ -1978,7 +1978,7 @@ function RlsFieldFileComponent({ accept, children, disabled: _disabled, formCont
|
|
|
1978
1978
|
inputRef.current?.click();
|
|
1979
1979
|
}
|
|
1980
1980
|
}, [readOnly, disabled]);
|
|
1981
|
-
return (jsxRuntimeExports.jsxs("div", { id: identifier, className: className, "rls-theme": rlsTheme, children: [children && jsxRuntimeExports.jsx("span", { className: "rls-field-box__label", children: children }), jsxRuntimeExports.jsx("div", { className: "rls-field-box__component", onClick: onClickControl, children: jsxRuntimeExports.jsxs("div", { className: "rls-field-box__body", children: [jsxRuntimeExports.jsx("input", { className: "rls-input__component", readOnly: true, type: "text", value: displayValue, placeholder: placeholder }), jsxRuntimeExports.jsx("input", { ref: inputRef, className: "rls-field-file__input", type: "file", accept: accept, disabled: disabled || readOnly, onChange: onChangeInput }), jsxRuntimeExports.jsx(RlsButtonAction, { icon: currentFile ? 'close' : 'attach', disabled: disabled, onClick: onClickAction })] }) }), !msgErrorDisabled && (jsxRuntimeExports.jsx(RlsMessageFormError, { className: "rls-field-box__error", formControl: formControl }))] }));
|
|
1981
|
+
return (jsxRuntimeExports.jsxs("div", { id: identifier, className: className, "rls-size": rlsSize, "rls-theme": rlsTheme, children: [children && jsxRuntimeExports.jsx("span", { className: "rls-field-box__label", children: children }), jsxRuntimeExports.jsx("div", { className: "rls-field-box__component", onClick: onClickControl, children: jsxRuntimeExports.jsxs("div", { className: "rls-field-box__body", children: [jsxRuntimeExports.jsx("input", { className: "rls-input__component", readOnly: true, type: "text", value: displayValue, placeholder: placeholder }), jsxRuntimeExports.jsx("input", { ref: inputRef, className: "rls-field-file__input", type: "file", accept: accept, disabled: disabled || readOnly, onChange: onChangeInput }), jsxRuntimeExports.jsx(RlsButtonAction, { icon: currentFile ? 'close' : 'attach', disabled: disabled, onClick: onClickAction })] }) }), !msgErrorDisabled && (jsxRuntimeExports.jsx(RlsMessageFormError, { className: "rls-field-box__error", formControl: formControl }))] }));
|
|
1982
1982
|
}
|
|
1983
1983
|
const RlsFieldFile = memo(RlsFieldFileComponent);
|
|
1984
1984
|
|
|
@@ -2100,7 +2100,7 @@ function RlsFieldListLi({ element, onClickElement, onKeydownElement, render }) {
|
|
|
2100
2100
|
}, [element, onKeydownElement]);
|
|
2101
2101
|
return (jsxRuntimeExports.jsx("li", { className: "rls-field-list__element", tabIndex: -1, onClick: onClick, onKeyDown: onKeyDown, children: render(element) }));
|
|
2102
2102
|
}
|
|
2103
|
-
function RlsFieldListSuggestionsComponent({ elements, action, disabled, higher, render, renderEmpty, searchControl, visible, onClickBackdrop, onClickElement, onHiddenAnchor, onKeydownElement, refAnchor, refList, refSuggestions, rlsTheme }) {
|
|
2103
|
+
function RlsFieldListSuggestionsComponent({ elements, action, disabled, higher, render, renderEmpty, searchControl, visible, rlsSize, onClickBackdrop, onClickElement, onHiddenAnchor, onKeydownElement, refAnchor, refList, refSuggestions, rlsTheme }) {
|
|
2104
2104
|
const portal = useSuggestionsPortalController(visible, refAnchor, onHiddenAnchor, higher);
|
|
2105
2105
|
const [labels, setLabels] = useState({
|
|
2106
2106
|
listEmptyDescription: reactI18n('listEmptyDescription'),
|
|
@@ -2130,13 +2130,13 @@ function RlsFieldListSuggestionsComponent({ elements, action, disabled, higher,
|
|
|
2130
2130
|
}
|
|
2131
2131
|
}, [action?.onClick, action?.keepOpen, onClickBackdrop]);
|
|
2132
2132
|
const searching = searchControl?.searching ?? false;
|
|
2133
|
-
const suggestions = (jsxRuntimeExports.jsxs("div", { ref: refSuggestions, className: className, style: portal.active ? portal.style : undefined, "rls-theme": rlsTheme ?? portal.theme, children: [jsxRuntimeExports.jsxs("div", { className: "rls-field-list__suggestions__body", children: [jsxRuntimeExports.jsxs("ul", { ref: refList, className: "rls-field-list__ul", children: [searchControl && (jsxRuntimeExports.jsxs("div", { className: "rls-field-list__ul__search", children: [jsxRuntimeExports.jsx("input", { className: "rls-field-list__ul__control", ref: searchControl.refInput, type: "text", placeholder: searchControl.placeholder, value: searchControl.pattern, onChange: onChangePattern, onFocus: searchControl.onFocus, onBlur: searchControl.onBlur, onKeyDown: searchControl.onKeyDown, disabled: disabled || searching }), searchControl.onSearch && (jsxRuntimeExports.jsx("button", { disabled: disabled || searching, onClick: searchControl.onSearch, children: jsxRuntimeExports.jsx(RlsIcon, { value: "search" }) }))] })), searching && jsxRuntimeExports.jsx(RlsProgressBar, { indeterminate: true }), elements.map((element, index) => (jsxRuntimeExports.jsx(RlsFieldListLi, { element: element, onClickElement: onClickElement, onKeydownElement: onKeydownElement, render: render }, index))), !elements.length && (jsxRuntimeExports.jsx("li", { className: "rls-field-list__empty", children: renderEmpty ? (renderEmpty()) : (jsxRuntimeExports.jsxs("div", { className: "rls-field-list__empty__description", children: [jsxRuntimeExports.jsx("span", { className: "rls-label-font-bold rls-truncate", children: labels.listEmptyTitle }), jsxRuntimeExports.jsx("p", { className: "rls-caption-font-regular", children: labels.listEmptyDescription })] })) }))] }), action && (jsxRuntimeExports.jsx("div", { className: "rls-field-list__action", children: jsxRuntimeExports.jsxs("button", { type: "button", disabled: disabled || action.disabled, onClick: onClickAction, children: [action.icon && jsxRuntimeExports.jsx(RlsIcon, { value: action.icon }), jsxRuntimeExports.jsx("span", { className: "rls-field-list__action__description", children: action.description })] }) }))] }), jsxRuntimeExports.jsx("div", { className: "rls-field-list__backdrop", onClick: onClickBackdrop })] }));
|
|
2133
|
+
const suggestions = (jsxRuntimeExports.jsxs("div", { ref: refSuggestions, className: className, style: portal.active ? portal.style : undefined, "rls-size": rlsSize, "rls-theme": rlsTheme ?? portal.theme, children: [jsxRuntimeExports.jsxs("div", { className: "rls-field-list__suggestions__body", children: [jsxRuntimeExports.jsxs("ul", { ref: refList, className: "rls-field-list__ul", children: [searchControl && (jsxRuntimeExports.jsxs("div", { className: "rls-field-list__ul__search", children: [jsxRuntimeExports.jsx("input", { className: "rls-field-list__ul__control", ref: searchControl.refInput, type: "text", placeholder: searchControl.placeholder, value: searchControl.pattern, onChange: onChangePattern, onFocus: searchControl.onFocus, onBlur: searchControl.onBlur, onKeyDown: searchControl.onKeyDown, disabled: disabled || searching }), searchControl.onSearch && (jsxRuntimeExports.jsx("button", { disabled: disabled || searching, onClick: searchControl.onSearch, children: jsxRuntimeExports.jsx(RlsIcon, { value: "search" }) }))] })), searching && jsxRuntimeExports.jsx(RlsProgressBar, { indeterminate: true }), elements.map((element, index) => (jsxRuntimeExports.jsx(RlsFieldListLi, { element: element, onClickElement: onClickElement, onKeydownElement: onKeydownElement, render: render }, index))), !elements.length && (jsxRuntimeExports.jsx("li", { className: "rls-field-list__empty", children: renderEmpty ? (renderEmpty()) : (jsxRuntimeExports.jsxs("div", { className: "rls-field-list__empty__description", children: [jsxRuntimeExports.jsx("span", { className: "rls-label-font-bold rls-truncate", children: labels.listEmptyTitle }), jsxRuntimeExports.jsx("p", { className: "rls-caption-font-regular", children: labels.listEmptyDescription })] })) }))] }), action && (jsxRuntimeExports.jsx("div", { className: "rls-field-list__action", children: jsxRuntimeExports.jsxs("button", { type: "button", disabled: disabled || action.disabled, onClick: onClickAction, children: [action.icon && jsxRuntimeExports.jsx(RlsIcon, { value: action.icon }), jsxRuntimeExports.jsx("span", { className: "rls-field-list__action__description", children: action.description })] }) }))] }), jsxRuntimeExports.jsx("div", { className: "rls-field-list__backdrop", onClick: onClickBackdrop })] }));
|
|
2134
2134
|
return portal.active ? createPortal(suggestions, document.body) : suggestions;
|
|
2135
2135
|
}
|
|
2136
2136
|
const RlsFieldListSuggestions = memo(RlsFieldListSuggestionsComponent);
|
|
2137
2137
|
|
|
2138
2138
|
function RlsFieldMoneyComponent(props) {
|
|
2139
|
-
const { action, children, formControl, identifier, rlsTheme } = props;
|
|
2139
|
+
const { action, children, formControl, identifier, rlsSize, rlsTheme } = props;
|
|
2140
2140
|
const disabled = useMemo(() => {
|
|
2141
2141
|
return formControl?.disabled || props.disabled;
|
|
2142
2142
|
}, [formControl?.disabled, props.disabled]);
|
|
@@ -2146,12 +2146,12 @@ function RlsFieldMoneyComponent(props) {
|
|
|
2146
2146
|
focused: formControl?.focused && !disabled,
|
|
2147
2147
|
readonly: props.readOnly
|
|
2148
2148
|
}, 'rls-field-money');
|
|
2149
|
-
return (jsxRuntimeExports.jsxs("div", { id: identifier, className: className, "rls-theme": rlsTheme, children: [children && jsxRuntimeExports.jsx("span", { className: "rls-field-box__label", children: children }), jsxRuntimeExports.jsx("div", { className: "rls-field-box__component", children: jsxRuntimeExports.jsxs("div", { className: "rls-field-box__body", children: [jsxRuntimeExports.jsx(RlsInputMoney, { ...props }), action && (jsxRuntimeExports.jsx(RlsButtonAction, { icon: action.icon, disabled: disabled, onClick: action.onClick }))] }) }), !props.msgErrorDisabled && (jsxRuntimeExports.jsx(RlsMessageFormError, { className: "rls-field-box__error", formControl: formControl }))] }));
|
|
2149
|
+
return (jsxRuntimeExports.jsxs("div", { id: identifier, className: className, "rls-size": rlsSize, "rls-theme": rlsTheme, children: [children && jsxRuntimeExports.jsx("span", { className: "rls-field-box__label", children: children }), jsxRuntimeExports.jsx("div", { className: "rls-field-box__component", children: jsxRuntimeExports.jsxs("div", { className: "rls-field-box__body", children: [jsxRuntimeExports.jsx(RlsInputMoney, { ...props }), action && (jsxRuntimeExports.jsx(RlsButtonAction, { icon: action.icon, disabled: disabled, onClick: action.onClick }))] }) }), !props.msgErrorDisabled && (jsxRuntimeExports.jsx(RlsMessageFormError, { className: "rls-field-box__error", formControl: formControl }))] }));
|
|
2150
2150
|
}
|
|
2151
2151
|
const RlsFieldMoney = memo(RlsFieldMoneyComponent);
|
|
2152
2152
|
|
|
2153
2153
|
function RlsFieldNumberComponent(props) {
|
|
2154
|
-
const { action, children, formControl, identifier, rlsTheme } = props;
|
|
2154
|
+
const { action, children, formControl, identifier, rlsSize, rlsTheme } = props;
|
|
2155
2155
|
const disabled = useMemo(() => {
|
|
2156
2156
|
return formControl?.disabled || props.disabled;
|
|
2157
2157
|
}, [formControl?.disabled, props.disabled]);
|
|
@@ -2161,12 +2161,12 @@ function RlsFieldNumberComponent(props) {
|
|
|
2161
2161
|
focused: formControl?.focused && !disabled,
|
|
2162
2162
|
readonly: props.readOnly
|
|
2163
2163
|
}, 'rls-field-number');
|
|
2164
|
-
return (jsxRuntimeExports.jsxs("div", { id: identifier, className: className, "rls-theme": rlsTheme, children: [children && jsxRuntimeExports.jsx("span", { className: "rls-field-box__label", children: children }), jsxRuntimeExports.jsx("div", { className: "rls-field-box__component", children: jsxRuntimeExports.jsxs("div", { className: "rls-field-box__body", children: [jsxRuntimeExports.jsx(RlsInputNumber, { ...props }), action && (jsxRuntimeExports.jsx(RlsButtonAction, { icon: action.icon, disabled: disabled, onClick: action.onClick }))] }) }), !props.msgErrorDisabled && (jsxRuntimeExports.jsx(RlsMessageFormError, { className: "rls-field-box__error", formControl: formControl }))] }));
|
|
2164
|
+
return (jsxRuntimeExports.jsxs("div", { id: identifier, className: className, "rls-size": rlsSize, "rls-theme": rlsTheme, children: [children && jsxRuntimeExports.jsx("span", { className: "rls-field-box__label", children: children }), jsxRuntimeExports.jsx("div", { className: "rls-field-box__component", children: jsxRuntimeExports.jsxs("div", { className: "rls-field-box__body", children: [jsxRuntimeExports.jsx(RlsInputNumber, { ...props }), action && (jsxRuntimeExports.jsx(RlsButtonAction, { icon: action.icon, disabled: disabled, onClick: action.onClick }))] }) }), !props.msgErrorDisabled && (jsxRuntimeExports.jsx(RlsMessageFormError, { className: "rls-field-box__error", formControl: formControl }))] }));
|
|
2165
2165
|
}
|
|
2166
2166
|
const RlsFieldNumber = memo(RlsFieldNumberComponent);
|
|
2167
2167
|
|
|
2168
2168
|
function RlsFieldPasswordComponent(props) {
|
|
2169
|
-
const { children, formControl, identifier, rlsTheme } = props;
|
|
2169
|
+
const { children, formControl, identifier, rlsSize, rlsTheme } = props;
|
|
2170
2170
|
const [passwordIsActive, setPasswordIsActive] = useState(true);
|
|
2171
2171
|
const disabled = useMemo(() => {
|
|
2172
2172
|
return formControl?.disabled || props.disabled;
|
|
@@ -2180,12 +2180,12 @@ function RlsFieldPasswordComponent(props) {
|
|
|
2180
2180
|
const onTogglePassword = useCallback(() => {
|
|
2181
2181
|
setPasswordIsActive((password) => !password);
|
|
2182
2182
|
}, []);
|
|
2183
|
-
return (jsxRuntimeExports.jsxs("div", { id: identifier, className: className, "rls-theme": rlsTheme, children: [children && jsxRuntimeExports.jsx("span", { className: "rls-field-box__label", children: children }), jsxRuntimeExports.jsx("div", { className: "rls-field-box__component", children: jsxRuntimeExports.jsxs("div", { className: "rls-field-box__body", children: [jsxRuntimeExports.jsx(RlsInputPassword, { ...props, type: passwordIsActive ? 'password' : 'text' }), jsxRuntimeExports.jsx(RlsButtonAction, { icon: passwordIsActive ? 'eye' : 'eye-off', onClick: onTogglePassword })] }) }), !props.msgErrorDisabled && (jsxRuntimeExports.jsx(RlsMessageFormError, { className: "rls-field-box__error", formControl: formControl }))] }));
|
|
2183
|
+
return (jsxRuntimeExports.jsxs("div", { id: identifier, className: className, "rls-size": rlsSize, "rls-theme": rlsTheme, children: [children && jsxRuntimeExports.jsx("span", { className: "rls-field-box__label", children: children }), jsxRuntimeExports.jsx("div", { className: "rls-field-box__component", children: jsxRuntimeExports.jsxs("div", { className: "rls-field-box__body", children: [jsxRuntimeExports.jsx(RlsInputPassword, { ...props, type: passwordIsActive ? 'password' : 'text' }), jsxRuntimeExports.jsx(RlsButtonAction, { icon: passwordIsActive ? 'eye' : 'eye-off', onClick: onTogglePassword })] }) }), !props.msgErrorDisabled && (jsxRuntimeExports.jsx(RlsMessageFormError, { className: "rls-field-box__error", formControl: formControl }))] }));
|
|
2184
2184
|
}
|
|
2185
2185
|
const RlsFieldPassword = memo(RlsFieldPasswordComponent);
|
|
2186
2186
|
|
|
2187
2187
|
function RlsFieldPercentageComponent(props) {
|
|
2188
|
-
const { action, children, formControl, identifier, rlsTheme } = props;
|
|
2188
|
+
const { action, children, formControl, identifier, rlsSize, rlsTheme } = props;
|
|
2189
2189
|
const disabled = useMemo(() => {
|
|
2190
2190
|
return formControl?.disabled || props.disabled;
|
|
2191
2191
|
}, [formControl?.disabled, props.disabled]);
|
|
@@ -2195,17 +2195,17 @@ function RlsFieldPercentageComponent(props) {
|
|
|
2195
2195
|
focused: formControl?.focused && !disabled,
|
|
2196
2196
|
readonly: props.readOnly
|
|
2197
2197
|
}, 'rls-field-percentage');
|
|
2198
|
-
return (jsxRuntimeExports.jsxs("div", { id: identifier, className: className, "rls-theme": rlsTheme, children: [children && jsxRuntimeExports.jsx("span", { className: "rls-field-box__label", children: children }), jsxRuntimeExports.jsx("div", { className: "rls-field-box__component", children: jsxRuntimeExports.jsxs("div", { className: "rls-field-box__body", children: [jsxRuntimeExports.jsx(RlsInputPercentage, { ...props }), action && (jsxRuntimeExports.jsx(RlsButtonAction, { icon: action.icon, disabled: disabled, onClick: action.onClick }))] }) }), !props.msgErrorDisabled && (jsxRuntimeExports.jsx(RlsMessageFormError, { className: "rls-field-box__error", formControl: formControl }))] }));
|
|
2198
|
+
return (jsxRuntimeExports.jsxs("div", { id: identifier, className: className, "rls-size": rlsSize, "rls-theme": rlsTheme, children: [children && jsxRuntimeExports.jsx("span", { className: "rls-field-box__label", children: children }), jsxRuntimeExports.jsx("div", { className: "rls-field-box__component", children: jsxRuntimeExports.jsxs("div", { className: "rls-field-box__body", children: [jsxRuntimeExports.jsx(RlsInputPercentage, { ...props }), action && (jsxRuntimeExports.jsx(RlsButtonAction, { icon: action.icon, disabled: disabled, onClick: action.onClick }))] }) }), !props.msgErrorDisabled && (jsxRuntimeExports.jsx(RlsMessageFormError, { className: "rls-field-box__error", formControl: formControl }))] }));
|
|
2199
2199
|
}
|
|
2200
2200
|
const RlsFieldPercentage = memo(RlsFieldPercentageComponent);
|
|
2201
2201
|
|
|
2202
|
-
function RlsFieldReadonlyComponent({ children, identifier, rlsTheme, value }) {
|
|
2203
|
-
return (jsxRuntimeExports.jsxs("div", { id: identifier, className: "rls-field-readonly rls-field-box", "rls-theme": rlsTheme, children: [children && jsxRuntimeExports.jsx("span", { className: "rls-field-box__label", children: children }), jsxRuntimeExports.jsx("div", { className: "rls-field-box__component", children: jsxRuntimeExports.jsx("div", { className: "rls-field-box__body", children: jsxRuntimeExports.jsx("input", { className: "rls-input__component", autoComplete: "off", type: 'text', readOnly: true, value: value }) }) })] }));
|
|
2202
|
+
function RlsFieldReadonlyComponent({ children, identifier, rlsSize, rlsTheme, value }) {
|
|
2203
|
+
return (jsxRuntimeExports.jsxs("div", { id: identifier, className: "rls-field-readonly rls-field-box", "rls-size": rlsSize, "rls-theme": rlsTheme, children: [children && jsxRuntimeExports.jsx("span", { className: "rls-field-box__label", children: children }), jsxRuntimeExports.jsx("div", { className: "rls-field-box__component", children: jsxRuntimeExports.jsx("div", { className: "rls-field-box__body", children: jsxRuntimeExports.jsx("input", { className: "rls-input__component", autoComplete: "off", type: 'text', readOnly: true, value: value }) }) })] }));
|
|
2204
2204
|
}
|
|
2205
2205
|
const RlsFieldReadonly = memo(RlsFieldReadonlyComponent);
|
|
2206
2206
|
|
|
2207
2207
|
function RlsFieldTextComponent(props) {
|
|
2208
|
-
const { action, children, formControl, identifier, rlsTheme } = props;
|
|
2208
|
+
const { action, children, formControl, identifier, rlsSize, rlsTheme } = props;
|
|
2209
2209
|
const disabled = useMemo(() => {
|
|
2210
2210
|
return formControl?.disabled || props.disabled;
|
|
2211
2211
|
}, [formControl?.disabled, props.disabled]);
|
|
@@ -2215,7 +2215,7 @@ function RlsFieldTextComponent(props) {
|
|
|
2215
2215
|
focused: formControl?.focused && !disabled,
|
|
2216
2216
|
readonly: props.readOnly
|
|
2217
2217
|
}, 'rls-field-text');
|
|
2218
|
-
return (jsxRuntimeExports.jsxs("div", { id: identifier, className: className, "rls-theme": rlsTheme, children: [children && jsxRuntimeExports.jsx("span", { className: "rls-field-box__label", children: children }), jsxRuntimeExports.jsx("div", { className: "rls-field-box__component", children: jsxRuntimeExports.jsxs("div", { className: "rls-field-box__body", children: [jsxRuntimeExports.jsx(RlsInputText, { ...props }), action && (jsxRuntimeExports.jsx(RlsButtonAction, { icon: action.icon, disabled: disabled, onClick: action.onClick }))] }) }), !props.msgErrorDisabled && (jsxRuntimeExports.jsx(RlsMessageFormError, { className: "rls-field-box__error", formControl: formControl }))] }));
|
|
2218
|
+
return (jsxRuntimeExports.jsxs("div", { id: identifier, className: className, "rls-size": rlsSize, "rls-theme": rlsTheme, children: [children && jsxRuntimeExports.jsx("span", { className: "rls-field-box__label", children: children }), jsxRuntimeExports.jsx("div", { className: "rls-field-box__component", children: jsxRuntimeExports.jsxs("div", { className: "rls-field-box__body", children: [jsxRuntimeExports.jsx(RlsInputText, { ...props }), action && (jsxRuntimeExports.jsx(RlsButtonAction, { icon: action.icon, disabled: disabled, onClick: action.onClick }))] }) }), !props.msgErrorDisabled && (jsxRuntimeExports.jsx(RlsMessageFormError, { className: "rls-field-box__error", formControl: formControl }))] }));
|
|
2219
2219
|
}
|
|
2220
2220
|
const RlsFieldText = memo(RlsFieldTextComponent);
|
|
2221
2221
|
|
|
@@ -2239,7 +2239,7 @@ function useFormToggleController({ disabled, formControl }) {
|
|
|
2239
2239
|
return { checked, onToggle };
|
|
2240
2240
|
}
|
|
2241
2241
|
|
|
2242
|
-
function RlsLabelCheckBoxComponent({ children, disabled, extended, identifier, formControl, reverse, rlsTheme }) {
|
|
2242
|
+
function RlsLabelCheckBoxComponent({ children, disabled, extended, identifier, formControl, reverse, rlsSize, rlsTheme }) {
|
|
2243
2243
|
const { checked, onToggle } = useFormToggleController({
|
|
2244
2244
|
disabled,
|
|
2245
2245
|
formControl
|
|
@@ -2249,11 +2249,11 @@ function RlsLabelCheckBoxComponent({ children, disabled, extended, identifier, f
|
|
|
2249
2249
|
extended,
|
|
2250
2250
|
reverse
|
|
2251
2251
|
});
|
|
2252
|
-
return (jsxRuntimeExports.jsxs("div", { id: identifier, className: className, "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsx("div", { className: "rls-label-checkbox__component", onClick: onToggle, children: jsxRuntimeExports.jsx(RlsCheckBox, { checked: checked, disabled: disabled }) }), jsxRuntimeExports.jsx("div", { className: "rls-label-checkbox__text", children: children })] }));
|
|
2252
|
+
return (jsxRuntimeExports.jsxs("div", { id: identifier, className: className, "rls-size": rlsSize, "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsx("div", { className: "rls-label-checkbox__component", onClick: onToggle, children: jsxRuntimeExports.jsx(RlsCheckBox, { checked: checked, disabled: disabled }) }), jsxRuntimeExports.jsx("div", { className: "rls-label-checkbox__text", children: children })] }));
|
|
2253
2253
|
}
|
|
2254
2254
|
const RlsLabelCheckBox = memo(RlsLabelCheckBoxComponent);
|
|
2255
2255
|
|
|
2256
|
-
function RlsLabelRadioButtonComponent({ children, disabled, extended, identifier, formControl, onValue, reverse, rlsTheme, value }) {
|
|
2256
|
+
function RlsLabelRadioButtonComponent({ children, disabled, extended, identifier, formControl, rlsSize, onValue, reverse, rlsTheme, value }) {
|
|
2257
2257
|
const { checked, onSelect } = useFormSingleSelectionController({
|
|
2258
2258
|
disabled,
|
|
2259
2259
|
formControl,
|
|
@@ -2265,11 +2265,11 @@ function RlsLabelRadioButtonComponent({ children, disabled, extended, identifier
|
|
|
2265
2265
|
extended,
|
|
2266
2266
|
reverse
|
|
2267
2267
|
});
|
|
2268
|
-
return (jsxRuntimeExports.jsxs("div", { id: identifier, className: className, "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsx("div", { className: "rls-label-radiobutton__component", onClick: onSelect, children: jsxRuntimeExports.jsx(RlsRadioButton, { checked: checked, disabled: disabled }) }), jsxRuntimeExports.jsx("div", { className: "rls-label-radiobutton__text", children: children })] }));
|
|
2268
|
+
return (jsxRuntimeExports.jsxs("div", { id: identifier, className: className, "rls-size": rlsSize, "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsx("div", { className: "rls-label-radiobutton__component", onClick: onSelect, children: jsxRuntimeExports.jsx(RlsRadioButton, { checked: checked, disabled: disabled }) }), jsxRuntimeExports.jsx("div", { className: "rls-label-radiobutton__text", children: children })] }));
|
|
2269
2269
|
}
|
|
2270
2270
|
const RlsLabelRadioButton = memo(RlsLabelRadioButtonComponent);
|
|
2271
2271
|
|
|
2272
|
-
function RlsLabelSwitchComponent({ capsule, children, disabled, extended, identifier, formControl, reverse, rlsTheme }) {
|
|
2272
|
+
function RlsLabelSwitchComponent({ capsule, children, disabled, extended, identifier, formControl, reverse, rlsSize, rlsTheme }) {
|
|
2273
2273
|
const { checked, onToggle } = useFormToggleController({
|
|
2274
2274
|
disabled,
|
|
2275
2275
|
formControl
|
|
@@ -2279,11 +2279,11 @@ function RlsLabelSwitchComponent({ capsule, children, disabled, extended, identi
|
|
|
2279
2279
|
extended,
|
|
2280
2280
|
reverse
|
|
2281
2281
|
});
|
|
2282
|
-
return (jsxRuntimeExports.jsxs("div", { id: identifier, className: className, "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsx("div", { className: "rls-label-switch__component", onClick: onToggle, children: jsxRuntimeExports.jsx(RlsSwitch, { checked: checked, capsule: capsule, disabled: disabled }) }), jsxRuntimeExports.jsx("div", { className: "rls-label-switch__text", children: children })] }));
|
|
2282
|
+
return (jsxRuntimeExports.jsxs("div", { id: identifier, className: className, "rls-size": rlsSize, "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsx("div", { className: "rls-label-switch__component", onClick: onToggle, children: jsxRuntimeExports.jsx(RlsSwitch, { checked: checked, capsule: capsule, disabled: disabled }) }), jsxRuntimeExports.jsx("div", { className: "rls-label-switch__text", children: children })] }));
|
|
2283
2283
|
}
|
|
2284
2284
|
const RlsLabelSwitch = memo(RlsLabelSwitchComponent);
|
|
2285
2285
|
|
|
2286
|
-
function RlsMessageEmptyComponent({ children, className, emoji, icon, identifier, image, rlsTheme, title }) {
|
|
2286
|
+
function RlsMessageEmptyComponent({ children, className, emoji, icon, identifier, image, rlsSize, rlsTheme, title }) {
|
|
2287
2287
|
const classNameMessageEmpty = renderClassStatus('rls-message-empty', {}, className);
|
|
2288
2288
|
const logo = useMemo(() => {
|
|
2289
2289
|
if (icon) {
|
|
@@ -2297,12 +2297,12 @@ function RlsMessageEmptyComponent({ children, className, emoji, icon, identifier
|
|
|
2297
2297
|
}
|
|
2298
2298
|
return null;
|
|
2299
2299
|
}, [icon, emoji, image]);
|
|
2300
|
-
return (jsxRuntimeExports.jsxs("div", { id: identifier, className: classNameMessageEmpty, "rls-theme": rlsTheme, children: [logo, jsxRuntimeExports.jsxs("div", { className: "rls-message-empty__body", children: [title && jsxRuntimeExports.jsx("div", { className: "rls-message-empty__title", children: title }), children && (jsxRuntimeExports.jsx("div", { className: "rls-message-empty__content", children: children }))] })] }));
|
|
2300
|
+
return (jsxRuntimeExports.jsxs("div", { id: identifier, className: classNameMessageEmpty, "rls-size": rlsSize, "rls-theme": rlsTheme, children: [logo, jsxRuntimeExports.jsxs("div", { className: "rls-message-empty__body", children: [title && jsxRuntimeExports.jsx("div", { className: "rls-message-empty__title", children: title }), children && (jsxRuntimeExports.jsx("div", { className: "rls-message-empty__content", children: children }))] })] }));
|
|
2301
2301
|
}
|
|
2302
2302
|
const RlsMessageEmpty = memo(RlsMessageEmptyComponent);
|
|
2303
2303
|
|
|
2304
|
-
function RlsNavbarComponent({ children, identifier, rlsTheme }) {
|
|
2305
|
-
return (jsxRuntimeExports.jsxs("nav", { id: identifier, className: "rls-app__page__nav", "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsx("div", { className: "rls-app__page__nav__content", children: children }), jsxRuntimeExports.jsx("div", { className: "rls-app__page__nav__backdrop" })] }));
|
|
2304
|
+
function RlsNavbarComponent({ children, identifier, rlsSize, rlsTheme }) {
|
|
2305
|
+
return (jsxRuntimeExports.jsxs("nav", { id: identifier, className: "rls-app__page__nav", "rls-size": rlsSize, "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsx("div", { className: "rls-app__page__nav__content", children: children }), jsxRuntimeExports.jsx("div", { className: "rls-app__page__nav__backdrop" })] }));
|
|
2306
2306
|
}
|
|
2307
2307
|
const RlsNavbar = memo(RlsNavbarComponent);
|
|
2308
2308
|
|
|
@@ -2312,8 +2312,8 @@ function RlsNavbarMenuOption({ option, onOption }) {
|
|
|
2312
2312
|
}, [onOption]);
|
|
2313
2313
|
return (jsxRuntimeExports.jsxs("li", { className: "rls-app__page__nav__option", onClick: onClick, children: [jsxRuntimeExports.jsx(RlsIcon, { value: option.icon }), jsxRuntimeExports.jsx("span", { className: "rls-label-font", children: option.label })] }));
|
|
2314
2314
|
}
|
|
2315
|
-
function RlsNavbarMenuComponent({ options, onOption }) {
|
|
2316
|
-
return (jsxRuntimeExports.jsx("ul", { className: "rls-app__page__nav__menu", children: options.map((option) => (jsxRuntimeExports.jsx(RlsNavbarMenuOption, { option: option, onOption: onOption }, option.id))) }));
|
|
2315
|
+
function RlsNavbarMenuComponent({ options, rlsSize, onOption }) {
|
|
2316
|
+
return (jsxRuntimeExports.jsx("ul", { className: "rls-app__page__nav__menu", "rls-size": rlsSize, children: options.map((option) => (jsxRuntimeExports.jsx(RlsNavbarMenuOption, { option: option, onOption: onOption }, option.id))) }));
|
|
2317
2317
|
}
|
|
2318
2318
|
const RlsNavbarMenu = memo(RlsNavbarMenuComponent);
|
|
2319
2319
|
|
|
@@ -2326,7 +2326,7 @@ function RlsPaginationButton({ page, onSelect }) {
|
|
|
2326
2326
|
}, [page, onSelect]);
|
|
2327
2327
|
return (jsxRuntimeExports.jsx("button", { type: "button", className: className, onClick: onClick, children: page.label }));
|
|
2328
2328
|
}
|
|
2329
|
-
function RlsPaginationComponent({ suggestions, count, filter, onPagination, position }) {
|
|
2329
|
+
function RlsPaginationComponent({ suggestions, count, filter, rlsSize, onPagination, position }) {
|
|
2330
2330
|
const [template, setTemplate] = useState();
|
|
2331
2331
|
const controller = useRef(undefined);
|
|
2332
2332
|
const refreshTemplate = useCallback((template, suggestions) => {
|
|
@@ -2371,7 +2371,7 @@ function RlsPaginationComponent({ suggestions, count, filter, onPagination, posi
|
|
|
2371
2371
|
const goLastPagination = useCallback(() => {
|
|
2372
2372
|
refreshPagination(controller.current?.goLastPage());
|
|
2373
2373
|
}, [refreshPagination]);
|
|
2374
|
-
return (jsxRuntimeExports.jsxs("div", { className: "rls-pagination", children: [jsxRuntimeExports.jsxs("div", { className: "rls-pagination__actions", children: [jsxRuntimeExports.jsx("button", { className: "rls-pagination__action", onClick: goFirstPagination, disabled: template?.firstPage, children: jsxRuntimeExports.jsx(RlsIcon, { value: "arrowhead-left" }) }), jsxRuntimeExports.jsx("button", { className: "rls-pagination__action", onClick: goPreviousPagination, disabled: template?.firstPage, children: jsxRuntimeExports.jsx(RlsIcon, { value: "arrow-ios-left" }) })] }), jsxRuntimeExports.jsxs("div", { className: "rls-pagination__body", children: [jsxRuntimeExports.jsx("div", { className: "rls-pagination__pages", children: template?.pages.map((page) => (jsxRuntimeExports.jsx(RlsPaginationButton, { page: page, onSelect: goToPagination }, page.value))) }), jsxRuntimeExports.jsx("div", { className: "rls-pagination__description", children: template?.description }), jsxRuntimeExports.jsx("span", { className: "rls-pagination__count", children: suggestions.length })] }), jsxRuntimeExports.jsxs("div", { className: "rls-pagination__actions", children: [jsxRuntimeExports.jsx("button", { className: "rls-pagination__action", onClick: goNextPagination, disabled: template?.lastPage, children: jsxRuntimeExports.jsx(RlsIcon, { value: "arrow-ios-right" }) }), jsxRuntimeExports.jsx("button", { className: "rls-pagination__action", onClick: goLastPagination, disabled: template?.lastPage, children: jsxRuntimeExports.jsx(RlsIcon, { value: "arrowhead-right" }) })] })] }));
|
|
2374
|
+
return (jsxRuntimeExports.jsxs("div", { className: "rls-pagination", "rls-size": rlsSize, children: [jsxRuntimeExports.jsxs("div", { className: "rls-pagination__actions", children: [jsxRuntimeExports.jsx("button", { className: "rls-pagination__action", onClick: goFirstPagination, disabled: template?.firstPage, children: jsxRuntimeExports.jsx(RlsIcon, { value: "arrowhead-left" }) }), jsxRuntimeExports.jsx("button", { className: "rls-pagination__action", onClick: goPreviousPagination, disabled: template?.firstPage, children: jsxRuntimeExports.jsx(RlsIcon, { value: "arrow-ios-left" }) })] }), jsxRuntimeExports.jsxs("div", { className: "rls-pagination__body", children: [jsxRuntimeExports.jsx("div", { className: "rls-pagination__pages", children: template?.pages.map((page) => (jsxRuntimeExports.jsx(RlsPaginationButton, { page: page, onSelect: goToPagination }, page.value))) }), jsxRuntimeExports.jsx("div", { className: "rls-pagination__description", children: template?.description }), jsxRuntimeExports.jsx("span", { className: "rls-pagination__count", children: suggestions.length })] }), jsxRuntimeExports.jsxs("div", { className: "rls-pagination__actions", children: [jsxRuntimeExports.jsx("button", { className: "rls-pagination__action", onClick: goNextPagination, disabled: template?.lastPage, children: jsxRuntimeExports.jsx(RlsIcon, { value: "arrow-ios-right" }) }), jsxRuntimeExports.jsx("button", { className: "rls-pagination__action", onClick: goLastPagination, disabled: template?.lastPage, children: jsxRuntimeExports.jsx(RlsIcon, { value: "arrowhead-right" }) })] })] }));
|
|
2375
2375
|
}
|
|
2376
2376
|
const RlsPagination = memo(RlsPaginationComponent);
|
|
2377
2377
|
|
|
@@ -2393,7 +2393,7 @@ function RlsPickerDayElement({ day, onSelect, disabled }) {
|
|
|
2393
2393
|
}, [day.value, day.disabled, disabled, onSelect]);
|
|
2394
2394
|
return (jsxRuntimeExports.jsx("div", { className: className, onClick: onClick, children: jsxRuntimeExports.jsx("span", { className: "rls-picker-day__element__span", children: day.value || '??' }) }));
|
|
2395
2395
|
}
|
|
2396
|
-
function RlsPickerDayComponent({ date, disabled, formControl, maxDate, month, minDate, onValue, rlsTheme, year }) {
|
|
2396
|
+
function RlsPickerDayComponent({ date, disabled, formControl, maxDate, month, minDate, rlsSize, onValue, rlsTheme, year }) {
|
|
2397
2397
|
const dateDay = useMemo(() => date ?? new Date(), [date]);
|
|
2398
2398
|
const [weeks, setWeeks] = useState([]);
|
|
2399
2399
|
const [value, setValue] = useState(formControl?.value ?? dateDay.getDate());
|
|
@@ -2444,7 +2444,7 @@ function RlsPickerDayComponent({ date, disabled, formControl, maxDate, month, mi
|
|
|
2444
2444
|
maxDate
|
|
2445
2445
|
};
|
|
2446
2446
|
}, [dateDay, formControl?.value, value, month, year, minDate, maxDate]);
|
|
2447
|
-
return (jsxRuntimeExports.jsxs("div", { className: "rls-picker-day", "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsx(RlsPickerDayHeaders, {}), jsxRuntimeExports.jsx("div", { className: "rls-picker-day__component", children: weeks.map(({ days }, index) => (jsxRuntimeExports.jsx("div", { className: "rls-picker-day__week", children: days.map((day, index) => (jsxRuntimeExports.jsx(RlsPickerDayElement, { day: day, onSelect: onSelect, disabled: disabled }, index))) }, index))) })] }));
|
|
2447
|
+
return (jsxRuntimeExports.jsxs("div", { className: "rls-picker-day", "rls-size": rlsSize, "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsx(RlsPickerDayHeaders, {}), jsxRuntimeExports.jsx("div", { className: "rls-picker-day__component", children: weeks.map(({ days }, index) => (jsxRuntimeExports.jsx("div", { className: "rls-picker-day__week", children: days.map((day, index) => (jsxRuntimeExports.jsx(RlsPickerDayElement, { day: day, onSelect: onSelect, disabled: disabled }, index))) }, index))) })] }));
|
|
2448
2448
|
}
|
|
2449
2449
|
const RlsPickerDay = memo(RlsPickerDayComponent);
|
|
2450
2450
|
|
|
@@ -2466,7 +2466,7 @@ function RlsPickerDayRangeElement({ day, onSelect, disabled }) {
|
|
|
2466
2466
|
}, [day.value, day.disabled, disabled, onSelect]);
|
|
2467
2467
|
return (jsxRuntimeExports.jsx("div", { className: className, onClick: onClick, children: jsxRuntimeExports.jsx("span", { className: "rls-picker-day-range__element__span", children: day.value || '??' }) }));
|
|
2468
2468
|
}
|
|
2469
|
-
function RlsPickerDayRangeComponent({ date, disabled, formControl, maxDate, minDate, rlsTheme }) {
|
|
2469
|
+
function RlsPickerDayRangeComponent({ date, disabled, formControl, maxDate, minDate, rlsSize, rlsTheme }) {
|
|
2470
2470
|
const rangeDay = useMemo(() => {
|
|
2471
2471
|
return formControl?.value ?? DateRange.now();
|
|
2472
2472
|
}, [formControl?.value]);
|
|
@@ -2500,7 +2500,7 @@ function RlsPickerDayRangeComponent({ date, disabled, formControl, maxDate, minD
|
|
|
2500
2500
|
maxDate
|
|
2501
2501
|
}));
|
|
2502
2502
|
}, [dateDayRange, range, minDate, maxDate]);
|
|
2503
|
-
return (jsxRuntimeExports.jsxs("div", { className: "rls-picker-day-range", "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsx(RlsPickerDayRangeHeaders, {}), jsxRuntimeExports.jsx("div", { className: "rls-picker-day-range__component", children: weeks.map(({ days }, index) => (jsxRuntimeExports.jsx("div", { className: "rls-picker-day-range__week", children: days.map((day, index) => (jsxRuntimeExports.jsx(RlsPickerDayRangeElement, { day: day, onSelect: onSelect, disabled: disabled }, index))) }, index))) })] }));
|
|
2503
|
+
return (jsxRuntimeExports.jsxs("div", { className: "rls-picker-day-range", "rls-size": rlsSize, "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsx(RlsPickerDayRangeHeaders, {}), jsxRuntimeExports.jsx("div", { className: "rls-picker-day-range__component", children: weeks.map(({ days }, index) => (jsxRuntimeExports.jsx("div", { className: "rls-picker-day-range__week", children: days.map((day, index) => (jsxRuntimeExports.jsx(RlsPickerDayRangeElement, { day: day, onSelect: onSelect, disabled: disabled }, index))) }, index))) })] }));
|
|
2504
2504
|
}
|
|
2505
2505
|
const RlsPickerDayRange = memo(RlsPickerDayRangeComponent);
|
|
2506
2506
|
|
|
@@ -2523,7 +2523,7 @@ function RlsPickerMonthElement({ month, onSelect, disabled }) {
|
|
|
2523
2523
|
}, [month.value, month.disabled, disabled, onSelect]);
|
|
2524
2524
|
return (jsxRuntimeExports.jsx("div", { className: className, onClick: onClick, children: jsxRuntimeExports.jsx("span", { className: "rls-picker-month__span", children: label }) }));
|
|
2525
2525
|
}
|
|
2526
|
-
function RlsPickerMonthComponent({ date, disabled, formControl, maxDate, minDate, onValue, rlsTheme, year }) {
|
|
2526
|
+
function RlsPickerMonthComponent({ date, disabled, formControl, maxDate, minDate, rlsSize, onValue, rlsTheme, year }) {
|
|
2527
2527
|
const dateMonth = useMemo(() => date ?? new Date(), [date]);
|
|
2528
2528
|
const [months, setMonths] = useState([]);
|
|
2529
2529
|
const [value, setValue] = useState(formControl?.value ?? dateMonth.getMonth());
|
|
@@ -2570,11 +2570,11 @@ function RlsPickerMonthComponent({ date, disabled, formControl, maxDate, minDate
|
|
|
2570
2570
|
setValue(formControl?.value ?? dateMonth.getMonth());
|
|
2571
2571
|
}
|
|
2572
2572
|
}, [formControl?.value]);
|
|
2573
|
-
return (jsxRuntimeExports.jsx("div", { className: "rls-picker-month", "rls-theme": rlsTheme, children: months.map((month, index) => (jsxRuntimeExports.jsx(RlsPickerMonthElement, { month: month, onSelect: onSelect, disabled: disabled }, index))) }));
|
|
2573
|
+
return (jsxRuntimeExports.jsx("div", { className: "rls-picker-month", "rls-size": rlsSize, "rls-theme": rlsTheme, children: months.map((month, index) => (jsxRuntimeExports.jsx(RlsPickerMonthElement, { month: month, onSelect: onSelect, disabled: disabled }, index))) }));
|
|
2574
2574
|
}
|
|
2575
2575
|
const RlsPickerMonth = memo(RlsPickerMonthComponent);
|
|
2576
2576
|
|
|
2577
|
-
function RlsPickerSelectorTitleComponent({ monthControl, type, yearControl, date, disabled, maxDate, minDate, onClick }) {
|
|
2577
|
+
function RlsPickerSelectorTitleComponent({ monthControl, type, yearControl, date, disabled, maxDate, minDate, rlsSize, onClick }) {
|
|
2578
2578
|
const { limitNext, limitPrevious } = useMemo(() => {
|
|
2579
2579
|
return monthLimitTemplate({
|
|
2580
2580
|
date,
|
|
@@ -2648,7 +2648,7 @@ function RlsPickerSelectorTitleComponent({ monthControl, type, yearControl, date
|
|
|
2648
2648
|
onNextYear();
|
|
2649
2649
|
}
|
|
2650
2650
|
}, [type, onNextMonth, onNextYear]);
|
|
2651
|
-
return (jsxRuntimeExports.jsxs("div", { className: "rls-picker-selector-title", children: [jsxRuntimeExports.jsx(RlsButtonIcon, { icon: "arrow-ios-left", onClick: onPrevious, disabled: limitPrevious || disabled }), jsxRuntimeExports.jsxs("div", { className: "rls-picker-selector-title__label", children: [jsxRuntimeExports.jsxs("span", { onClick: onMonth, children: [label, ","] }), jsxRuntimeExports.jsx("span", { onClick: onYear, children: yearControl.value })] }), jsxRuntimeExports.jsx(RlsButtonIcon, { icon: "arrow-ios-right", onClick: onNext, disabled: limitNext || disabled })] }));
|
|
2651
|
+
return (jsxRuntimeExports.jsxs("div", { className: "rls-picker-selector-title", "rls-size": rlsSize, children: [jsxRuntimeExports.jsx(RlsButtonIcon, { icon: "arrow-ios-left", onClick: onPrevious, disabled: limitPrevious || disabled }), jsxRuntimeExports.jsxs("div", { className: "rls-picker-selector-title__label", children: [jsxRuntimeExports.jsxs("span", { onClick: onMonth, children: [label, ","] }), jsxRuntimeExports.jsx("span", { onClick: onYear, children: yearControl.value })] }), jsxRuntimeExports.jsx(RlsButtonIcon, { icon: "arrow-ios-right", onClick: onNext, disabled: limitNext || disabled })] }));
|
|
2652
2652
|
}
|
|
2653
2653
|
const RlsPickerSelectorTitle = memo(RlsPickerSelectorTitleComponent);
|
|
2654
2654
|
|
|
@@ -2665,7 +2665,7 @@ function RlsPickerYearElement({ onSelect, year, disabled }) {
|
|
|
2665
2665
|
}, [year.value, year.disabled, disabled, onSelect]);
|
|
2666
2666
|
return (jsxRuntimeExports.jsx("div", { className: className, onClick: onClick, children: jsxRuntimeExports.jsx("span", { className: "rls-picker-year__span", children: year.value || '????' }) }));
|
|
2667
2667
|
}
|
|
2668
|
-
function RlsPickerYearComponent({ date, disabled, formControl, maxDate, minDate, onValue, rlsTheme }) {
|
|
2668
|
+
function RlsPickerYearComponent({ date, disabled, formControl, maxDate, minDate, rlsSize, onValue, rlsTheme }) {
|
|
2669
2669
|
const dateYear = useMemo(() => date ?? new Date(), [date]);
|
|
2670
2670
|
const [year, setYear] = useState(formControl?.value ?? dateYear.getFullYear());
|
|
2671
2671
|
const createPickerOptions = useCallback(() => {
|
|
@@ -2708,7 +2708,7 @@ function RlsPickerYearComponent({ date, disabled, formControl, maxDate, minDate,
|
|
|
2708
2708
|
const onClickNext = useCallback(() => {
|
|
2709
2709
|
setYear((year) => year + 8);
|
|
2710
2710
|
}, []);
|
|
2711
|
-
return (jsxRuntimeExports.jsxs("div", { className: "rls-picker-year", "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsxs("div", { className: "rls-picker-year__header", children: [jsxRuntimeExports.jsx(RlsButtonIcon, { icon: "arrow-ios-left", onClick: onClickPrev, disabled: !template.canPrevious || disabled }), jsxRuntimeExports.jsxs("span", { children: [template.minRange, " - ", template.maxRange] }), jsxRuntimeExports.jsx(RlsButtonIcon, { icon: "arrow-ios-right", onClick: onClickNext, disabled: !template.canNext || disabled })] }), jsxRuntimeExports.jsx("div", { className: "rls-picker-year__component", children: template.years.map((year, index) => (jsxRuntimeExports.jsx(RlsPickerYearElement, { year: year, onSelect: onSelect, disabled: disabled }, index))) })] }));
|
|
2711
|
+
return (jsxRuntimeExports.jsxs("div", { className: "rls-picker-year", "rls-size": rlsSize, "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsxs("div", { className: "rls-picker-year__header", children: [jsxRuntimeExports.jsx(RlsButtonIcon, { icon: "arrow-ios-left", onClick: onClickPrev, disabled: !template.canPrevious || disabled }), jsxRuntimeExports.jsxs("span", { children: [template.minRange, " - ", template.maxRange] }), jsxRuntimeExports.jsx(RlsButtonIcon, { icon: "arrow-ios-right", onClick: onClickNext, disabled: !template.canNext || disabled })] }), jsxRuntimeExports.jsx("div", { className: "rls-picker-year__component", children: template.years.map((year, index) => (jsxRuntimeExports.jsx(RlsPickerYearElement, { year: year, onSelect: onSelect, disabled: disabled }, index))) })] }));
|
|
2712
2712
|
}
|
|
2713
2713
|
const RlsPickerYear = memo(RlsPickerYearComponent);
|
|
2714
2714
|
|
|
@@ -2751,7 +2751,7 @@ function sliderRateToValue(rate, minValue, maxValue, step) {
|
|
|
2751
2751
|
|
|
2752
2752
|
const DEFAULT_STEP = 1;
|
|
2753
2753
|
const PAGE_STEP_DIVISOR = 10;
|
|
2754
|
-
function RlsSliderComponent({ children, className, disabled, formControl, identifier, maxValue, minValue, onValue, prefixIcon, rlsTheme, step, value }) {
|
|
2754
|
+
function RlsSliderComponent({ children, className, disabled, formControl, identifier, maxValue, minValue, rlsSize, onValue, prefixIcon, rlsTheme, step, value }) {
|
|
2755
2755
|
const minValueSlider = useMemo(() => {
|
|
2756
2756
|
return minValue ?? 0;
|
|
2757
2757
|
}, [minValue]);
|
|
@@ -2888,16 +2888,16 @@ function RlsSliderComponent({ children, className, disabled, formControl, identi
|
|
|
2888
2888
|
useEffect(() => {
|
|
2889
2889
|
commitValue(normalizeSliderValue(refValue.current, minValueSlider, maxValueSlider, stepSlider));
|
|
2890
2890
|
}, [commitValue, minValueSlider, maxValueSlider, stepSlider]);
|
|
2891
|
-
return (jsxRuntimeExports.jsxs("div", { id: identifier, className: classNameSlider, "rls-theme": rlsTheme, children: [children && (jsxRuntimeExports.jsx("span", { id: labelId, className: "rls-slider__label", children: children })), jsxRuntimeExports.jsxs("div", { className: "rls-slider__body", children: [prefixIcon && jsxRuntimeExports.jsx(RlsIcon, { value: prefixIcon }), jsxRuntimeExports.jsxs("div", { className: "rls-slider__component", onPointerDown: onPointerDown, children: [jsxRuntimeExports.jsx("div", { ref: refTrack, className: "rls-slider__track", children: jsxRuntimeExports.jsx("div", { className: "rls-slider__track__on", style: { width: `${rate}%` } }) }), jsxRuntimeExports.jsx("div", { ref: refThumb, className: "rls-slider__thumb", style: { left: `${rate}%` }, role: "slider", tabIndex: disabled ? -1 : 0, "aria-orientation": "horizontal", "aria-valuemin": minValueSlider, "aria-valuemax": maxValueSlider, "aria-valuenow": valueSlider, "aria-disabled": disabled || undefined, "aria-labelledby": children ? labelId : undefined, onKeyDown: onKeyDown, children: valueSlider })] })] })] }));
|
|
2891
|
+
return (jsxRuntimeExports.jsxs("div", { id: identifier, className: classNameSlider, "rls-size": rlsSize, "rls-theme": rlsTheme, children: [children && (jsxRuntimeExports.jsx("span", { id: labelId, className: "rls-slider__label", children: children })), jsxRuntimeExports.jsxs("div", { className: "rls-slider__body", children: [prefixIcon && jsxRuntimeExports.jsx(RlsIcon, { value: prefixIcon }), jsxRuntimeExports.jsxs("div", { className: "rls-slider__component", onPointerDown: onPointerDown, children: [jsxRuntimeExports.jsx("div", { ref: refTrack, className: "rls-slider__track", children: jsxRuntimeExports.jsx("div", { className: "rls-slider__track__on", style: { width: `${rate}%` } }) }), jsxRuntimeExports.jsx("div", { ref: refThumb, className: "rls-slider__thumb", style: { left: `${rate}%` }, role: "slider", tabIndex: disabled ? -1 : 0, "aria-orientation": "horizontal", "aria-valuemin": minValueSlider, "aria-valuemax": maxValueSlider, "aria-valuenow": valueSlider, "aria-disabled": disabled || undefined, "aria-labelledby": children ? labelId : undefined, onKeyDown: onKeyDown, children: valueSlider })] })] })] }));
|
|
2892
2892
|
}
|
|
2893
2893
|
const RlsSlider = memo(RlsSliderComponent);
|
|
2894
2894
|
|
|
2895
|
-
function RlsToolbarComponent({ actions, children, subtitle }) {
|
|
2896
|
-
return (jsxRuntimeExports.jsxs("div", { className: "rls-toolbar", children: [jsxRuntimeExports.jsxs("div", { className: "rls-toolbar__description", children: [children && jsxRuntimeExports.jsx("label", { className: "rls-toolbar__title", children: children }), subtitle && (jsxRuntimeExports.jsx("label", { className: "rls-toolbar__subtitle smalltext-semibold", children: subtitle }))] }), actions && (jsxRuntimeExports.jsx("div", { className: "rls-toolbar__actions", children: actions.map((action, index) => (jsxRuntimeExports.jsx("div", { children: action }, index))) }))] }));
|
|
2895
|
+
function RlsToolbarComponent({ actions, children, rlsSize, subtitle }) {
|
|
2896
|
+
return (jsxRuntimeExports.jsxs("div", { className: "rls-toolbar", "rls-size": rlsSize, children: [jsxRuntimeExports.jsxs("div", { className: "rls-toolbar__description", children: [children && jsxRuntimeExports.jsx("label", { className: "rls-toolbar__title", children: children }), subtitle && (jsxRuntimeExports.jsx("label", { className: "rls-toolbar__subtitle smalltext-semibold", children: subtitle }))] }), actions && (jsxRuntimeExports.jsx("div", { className: "rls-toolbar__actions", children: actions.map((action, index) => (jsxRuntimeExports.jsx("div", { children: action }, index))) }))] }));
|
|
2897
2897
|
}
|
|
2898
2898
|
const RlsToolbar = memo(RlsToolbarComponent);
|
|
2899
2899
|
|
|
2900
|
-
function RlsBottomSheetComponent({ autoclose, children, className, controller, onBackdrop, visible, rlsTheme }) {
|
|
2900
|
+
function RlsBottomSheetComponent({ autoclose, children, className, controller, rlsSize, onBackdrop, visible, rlsTheme }) {
|
|
2901
2901
|
const classNameSheet = renderClassStatus('rls-bottom-sheet', { visible: controller?.visible ?? visible }, className);
|
|
2902
2902
|
const onClickBackdrop = useCallback(() => {
|
|
2903
2903
|
if (autoclose) {
|
|
@@ -2905,13 +2905,13 @@ function RlsBottomSheetComponent({ autoclose, children, className, controller, o
|
|
|
2905
2905
|
}
|
|
2906
2906
|
onBackdrop?.();
|
|
2907
2907
|
}, [autoclose, controller, onBackdrop]);
|
|
2908
|
-
return ReactDOM.createPortal(jsxRuntimeExports.jsxs("div", { className: classNameSheet, "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsx("div", { className: "rls-bottom-sheet__component", children: children }), jsxRuntimeExports.jsx("div", { className: "rls-bottom-sheet__backdrop", onClick: onClickBackdrop })] }), document.body);
|
|
2908
|
+
return ReactDOM.createPortal(jsxRuntimeExports.jsxs("div", { className: classNameSheet, "rls-size": rlsSize, "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsx("div", { className: "rls-bottom-sheet__component", children: children }), jsxRuntimeExports.jsx("div", { className: "rls-bottom-sheet__backdrop", onClick: onClickBackdrop })] }), document.body);
|
|
2909
2909
|
}
|
|
2910
2910
|
const RlsBottomSheet = memo(RlsBottomSheetComponent);
|
|
2911
2911
|
|
|
2912
|
-
function RlsCardComponent({ children, className, outline, rlsTheme }) {
|
|
2912
|
+
function RlsCardComponent({ children, className, rlsSize, outline, rlsTheme }) {
|
|
2913
2913
|
const classNameCard = renderClassStatus('rls-card', { outline }, className);
|
|
2914
|
-
return (jsxRuntimeExports.jsx("div", { className: classNameCard, "rls-theme": rlsTheme, children: jsxRuntimeExports.jsx("div", { className: "rls-card__content", children: children }) }));
|
|
2914
|
+
return (jsxRuntimeExports.jsx("div", { className: classNameCard, "rls-size": rlsSize, "rls-theme": rlsTheme, children: jsxRuntimeExports.jsx("div", { className: "rls-card__content", children: children }) }));
|
|
2915
2915
|
}
|
|
2916
2916
|
const RlsCard = memo(RlsCardComponent);
|
|
2917
2917
|
|
|
@@ -3241,7 +3241,7 @@ function useFieldAutocomplete(props) {
|
|
|
3241
3241
|
|
|
3242
3242
|
function RlsChooserAutocompleteTemplateComponent(props) {
|
|
3243
3243
|
const autocomplete = useFieldAutocomplete(props);
|
|
3244
|
-
const { render, action, children, formControl, onSearch, rlsTheme, searching } = props;
|
|
3244
|
+
const { render, action, children, formControl, rlsSize, onSearch, rlsTheme, searching } = props;
|
|
3245
3245
|
const [listInputPlaceholder, setListInputPlaceholder] = useState(reactI18n('listInputPlaceholder'));
|
|
3246
3246
|
useEffect(() => {
|
|
3247
3247
|
return i18nSubscribe(() => {
|
|
@@ -3302,7 +3302,7 @@ function RlsChooserAutocompleteTemplateComponent(props) {
|
|
|
3302
3302
|
onClickPattern,
|
|
3303
3303
|
onSearch
|
|
3304
3304
|
]);
|
|
3305
|
-
return (jsxRuntimeExports.jsxs("div", { id: props.identifier, ref: autocomplete.refContent, className: className, "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsx("div", { className: "rls-chooser__trigger", role: "combobox", "aria-expanded": autocomplete.listIsVisible, "aria-haspopup": "listbox", "aria-disabled": disabled || undefined, tabIndex: disabled ? -1 : 0, onClick: disabled ? undefined : autocomplete.onClickControl, onKeyDown: disabled ? undefined : onKeydownTrigger, children: typeof children === 'function'
|
|
3305
|
+
return (jsxRuntimeExports.jsxs("div", { id: props.identifier, ref: autocomplete.refContent, className: className, "rls-size": rlsSize, "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsx("div", { className: "rls-chooser__trigger", role: "combobox", "aria-expanded": autocomplete.listIsVisible, "aria-haspopup": "listbox", "aria-disabled": disabled || undefined, tabIndex: disabled ? -1 : 0, onClick: disabled ? undefined : autocomplete.onClickControl, onKeyDown: disabled ? undefined : onKeydownTrigger, children: typeof children === 'function'
|
|
3306
3306
|
? children({
|
|
3307
3307
|
description: autocomplete.value,
|
|
3308
3308
|
listIsVisible: autocomplete.listIsVisible,
|
|
@@ -3467,7 +3467,7 @@ function useFieldList(props) {
|
|
|
3467
3467
|
|
|
3468
3468
|
function RlsChooserListTemplateComponent(props) {
|
|
3469
3469
|
const fieldList = useFieldList(props);
|
|
3470
|
-
const { render, suggestions, action, children, formControl, rlsTheme } = props;
|
|
3470
|
+
const { render, suggestions, action, children, formControl, rlsSize, rlsTheme } = props;
|
|
3471
3471
|
const disabled = useMemo(() => {
|
|
3472
3472
|
return formControl?.disabled || props.disabled;
|
|
3473
3473
|
}, [formControl?.disabled, props.disabled]);
|
|
@@ -3488,7 +3488,7 @@ function RlsChooserListTemplateComponent(props) {
|
|
|
3488
3488
|
}
|
|
3489
3489
|
}, [fieldList.onClickAction, fieldList.onClickBackdrop]);
|
|
3490
3490
|
const renderWithCheckbox = useCallback((element) => (jsxRuntimeExports.jsxs("div", { className: "rls-field-list__multi__element", children: [jsxRuntimeExports.jsx(RlsCheckBox, { checked: fieldList.isSelected(element) }), render(element)] })), [fieldList.isSelected, render]);
|
|
3491
|
-
return (jsxRuntimeExports.jsxs("div", { id: props.identifier, ref: fieldList.refContent, className: className, "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsx("div", { className: "rls-chooser__trigger", role: "combobox", "aria-expanded": fieldList.listIsVisible, "aria-haspopup": "listbox", "aria-disabled": disabled || undefined, tabIndex: disabled ? -1 : 0, onClick: disabled ? undefined : fieldList.onClickAction, onKeyDown: disabled ? undefined : onKeydownTrigger, children: typeof children === 'function'
|
|
3491
|
+
return (jsxRuntimeExports.jsxs("div", { id: props.identifier, ref: fieldList.refContent, className: className, "rls-size": rlsSize, "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsx("div", { className: "rls-chooser__trigger", role: "combobox", "aria-expanded": fieldList.listIsVisible, "aria-haspopup": "listbox", "aria-disabled": disabled || undefined, tabIndex: disabled ? -1 : 0, onClick: disabled ? undefined : fieldList.onClickAction, onKeyDown: disabled ? undefined : onKeydownTrigger, children: typeof children === 'function'
|
|
3492
3492
|
? children({
|
|
3493
3493
|
listIsVisible: fieldList.listIsVisible,
|
|
3494
3494
|
selected: fieldList.selected
|
|
@@ -3622,7 +3622,7 @@ function useFieldSelect(props) {
|
|
|
3622
3622
|
|
|
3623
3623
|
function RlsChooserSelectTemplateComponent(props) {
|
|
3624
3624
|
const select = useFieldSelect({ ...props, unremovable: true });
|
|
3625
|
-
const { render, suggestions, action, children, formControl, rlsTheme } = props;
|
|
3625
|
+
const { render, suggestions, action, children, formControl, rlsSize, rlsTheme } = props;
|
|
3626
3626
|
const disabled = useMemo(() => {
|
|
3627
3627
|
return formControl?.disabled || props.disabled;
|
|
3628
3628
|
}, [formControl?.disabled, props.disabled]);
|
|
@@ -3637,7 +3637,7 @@ function RlsChooserSelectTemplateComponent(props) {
|
|
|
3637
3637
|
}
|
|
3638
3638
|
select.onKeydownInput(event);
|
|
3639
3639
|
}, [select.onKeydownInput]);
|
|
3640
|
-
return (jsxRuntimeExports.jsxs("div", { id: props.identifier, ref: select.refContent, className: className, "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsx("div", { className: "rls-chooser__trigger", role: "combobox", "aria-expanded": select.listIsVisible, "aria-haspopup": "listbox", "aria-disabled": disabled || undefined, tabIndex: disabled ? -1 : 0, onClick: disabled ? undefined : select.onClickAction, onKeyDown: disabled ? undefined : onKeydownTrigger, onFocus: select.onFocusInput, onBlur: select.onBlurInput, children: typeof children === 'function'
|
|
3640
|
+
return (jsxRuntimeExports.jsxs("div", { id: props.identifier, ref: select.refContent, className: className, "rls-size": rlsSize, "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsx("div", { className: "rls-chooser__trigger", role: "combobox", "aria-expanded": select.listIsVisible, "aria-haspopup": "listbox", "aria-disabled": disabled || undefined, tabIndex: disabled ? -1 : 0, onClick: disabled ? undefined : select.onClickAction, onKeyDown: disabled ? undefined : onKeydownTrigger, onFocus: select.onFocusInput, onBlur: select.onBlurInput, children: typeof children === 'function'
|
|
3641
3641
|
? children({
|
|
3642
3642
|
description: select.value,
|
|
3643
3643
|
listIsVisible: select.listIsVisible,
|
|
@@ -3660,9 +3660,9 @@ class ConfirmationResult extends SealedPartial {
|
|
|
3660
3660
|
return new ConfirmationResult('reject');
|
|
3661
3661
|
}
|
|
3662
3662
|
}
|
|
3663
|
-
function RlsConfirmationComponent({ approved, className, content, reject, rlsTheme, subtitle, title, visible }) {
|
|
3663
|
+
function RlsConfirmationComponent({ approved, className, content, rlsSize, reject, rlsTheme, subtitle, title, visible }) {
|
|
3664
3664
|
const classConfirmation = renderClassStatus('rls-confirmation', { visible }, className);
|
|
3665
|
-
return (jsxRuntimeExports.jsxs("div", { className: classConfirmation, "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsxs("div", { className: "rls-confirmation__component", children: [jsxRuntimeExports.jsxs("div", { className: "rls-confirmation__header", children: [title && jsxRuntimeExports.jsx("div", { className: "rls-confirmation__title", children: title }), subtitle && (jsxRuntimeExports.jsx("div", { className: "rls-confirmation__subtitle", children: subtitle }))] }), jsxRuntimeExports.jsx("div", { className: "rls-confirmation__body", children: content && (jsxRuntimeExports.jsx("div", { className: "rls-confirmation__content", children: content })) }), (approved || reject) && (jsxRuntimeExports.jsx("div", { className: "rls-confirmation__footer", children: jsxRuntimeExports.jsxs("div", { className: "rls-confirmation__actions", children: [approved && (jsxRuntimeExports.jsx(RlsButton, { identifier: approved.identifier, type: approved.type, onClick: approved.onClick, disabled: approved.disabled, rlsTheme: approved.rlsTheme, children: approved.label })), reject && (jsxRuntimeExports.jsx(RlsButton, { identifier: reject.identifier, type: reject.type, onClick: reject.onClick, disabled: reject.disabled, rlsTheme: reject.rlsTheme, children: reject.label }))] }) }))] }), jsxRuntimeExports.jsx("div", { className: "rls-confirmation__backdrop" })] }));
|
|
3665
|
+
return (jsxRuntimeExports.jsxs("div", { className: classConfirmation, "rls-size": rlsSize, "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsxs("div", { className: "rls-confirmation__component", children: [jsxRuntimeExports.jsxs("div", { className: "rls-confirmation__header", children: [title && jsxRuntimeExports.jsx("div", { className: "rls-confirmation__title", children: title }), subtitle && (jsxRuntimeExports.jsx("div", { className: "rls-confirmation__subtitle", children: subtitle }))] }), jsxRuntimeExports.jsx("div", { className: "rls-confirmation__body", children: content && (jsxRuntimeExports.jsx("div", { className: "rls-confirmation__content", children: content })) }), (approved || reject) && (jsxRuntimeExports.jsx("div", { className: "rls-confirmation__footer", children: jsxRuntimeExports.jsxs("div", { className: "rls-confirmation__actions", children: [approved && (jsxRuntimeExports.jsx(RlsButton, { identifier: approved.identifier, type: approved.type, onClick: approved.onClick, disabled: approved.disabled, rlsTheme: approved.rlsTheme, children: approved.label })), reject && (jsxRuntimeExports.jsx(RlsButton, { identifier: reject.identifier, type: reject.type, onClick: reject.onClick, disabled: reject.disabled, rlsTheme: reject.rlsTheme, children: reject.label }))] }) }))] }), jsxRuntimeExports.jsx("div", { className: "rls-confirmation__backdrop" })] }));
|
|
3666
3666
|
}
|
|
3667
3667
|
const RlsConfirmation = memo(RlsConfirmationComponent);
|
|
3668
3668
|
const RlsConfirmationBase = RlsConfirmation;
|
|
@@ -3739,42 +3739,42 @@ function useDatatable(table) {
|
|
|
3739
3739
|
return { refTable, scrolleable };
|
|
3740
3740
|
}
|
|
3741
3741
|
|
|
3742
|
-
function RlsDatatableComponent({ children, footer, header, identifier, rlsTheme, resizable, summary, table, toolbar }) {
|
|
3742
|
+
function RlsDatatableComponent({ children, footer, header, identifier, rlsSize, rlsTheme, resizable, summary, table, toolbar }) {
|
|
3743
3743
|
const datatable = useDatatable(table);
|
|
3744
3744
|
const className = renderClassStatus('rls-datatable', {
|
|
3745
3745
|
resizable,
|
|
3746
3746
|
scrolleable: resizable && datatable?.scrolleable
|
|
3747
3747
|
});
|
|
3748
|
-
return (jsxRuntimeExports.jsxs("div", { className: className, "rls-theme": rlsTheme, children: [toolbar && jsxRuntimeExports.jsx("div", { className: "rls-datatable__toolbar", children: toolbar }), jsxRuntimeExports.jsx("div", { className: "rls-datatable__table", children: jsxRuntimeExports.jsxs("table", { id: identifier, children: [header && jsxRuntimeExports.jsx("thead", { className: "rls-datatable__head", children: header }), jsxRuntimeExports.jsx("tbody", { ref: datatable?.refTable, className: "rls-datatable__body", children: children })] }) }), summary && jsxRuntimeExports.jsx("div", { className: "rls-datatable__summary", children: summary }), footer && jsxRuntimeExports.jsx("div", { className: "rls-datatable__footer", children: footer })] }));
|
|
3748
|
+
return (jsxRuntimeExports.jsxs("div", { className: className, "rls-size": rlsSize, "rls-theme": rlsTheme, children: [toolbar && jsxRuntimeExports.jsx("div", { className: "rls-datatable__toolbar", children: toolbar }), jsxRuntimeExports.jsx("div", { className: "rls-datatable__table", children: jsxRuntimeExports.jsxs("table", { id: identifier, children: [header && jsxRuntimeExports.jsx("thead", { className: "rls-datatable__head", children: header }), jsxRuntimeExports.jsx("tbody", { ref: datatable?.refTable, className: "rls-datatable__body", children: children })] }) }), summary && jsxRuntimeExports.jsx("div", { className: "rls-datatable__summary", children: summary }), footer && jsxRuntimeExports.jsx("div", { className: "rls-datatable__footer", children: footer })] }));
|
|
3749
3749
|
}
|
|
3750
3750
|
const RlsDatatable = memo(RlsDatatableComponent);
|
|
3751
|
-
function RlsDatatableHeaderComponent({ children, identifier, rlsTheme }) {
|
|
3752
|
-
return (jsxRuntimeExports.jsx("tr", { id: identifier, className: "rls-datatable__header", "rls-theme": rlsTheme, children: children }));
|
|
3751
|
+
function RlsDatatableHeaderComponent({ children, identifier, rlsSize, rlsTheme }) {
|
|
3752
|
+
return (jsxRuntimeExports.jsx("tr", { id: identifier, className: "rls-datatable__header", "rls-size": rlsSize, "rls-theme": rlsTheme, children: children }));
|
|
3753
3753
|
}
|
|
3754
3754
|
const RlsDatatableHeader = memo(RlsDatatableHeaderComponent);
|
|
3755
|
-
function RlsDatatableTitleComponent({ actions, children, className, control, identifier, rlsTheme, truncated }) {
|
|
3755
|
+
function RlsDatatableTitleComponent({ actions, children, className, control, identifier, rlsSize, rlsTheme, truncated }) {
|
|
3756
3756
|
const classNameTitle = renderClassStatus('rls-datatable__title', { actions, control, truncated }, className);
|
|
3757
|
-
return (jsxRuntimeExports.jsx("th", { id: identifier, className: classNameTitle, "rls-theme": rlsTheme, children: children }));
|
|
3757
|
+
return (jsxRuntimeExports.jsx("th", { id: identifier, className: classNameTitle, "rls-size": rlsSize, "rls-theme": rlsTheme, children: children }));
|
|
3758
3758
|
}
|
|
3759
3759
|
const RlsDatatableTitle = memo(RlsDatatableTitleComponent);
|
|
3760
|
-
function RlsDatatableSubheaderComponent({ children, className, identifier, rlsTheme }) {
|
|
3760
|
+
function RlsDatatableSubheaderComponent({ children, className, identifier, rlsSize, rlsTheme }) {
|
|
3761
3761
|
const classNameSubheader = renderClassStatus('rls-datatable__subheader', {}, className);
|
|
3762
|
-
return (jsxRuntimeExports.jsx("tr", { id: identifier, className: classNameSubheader, "rls-theme": rlsTheme, children: children }));
|
|
3762
|
+
return (jsxRuntimeExports.jsx("tr", { id: identifier, className: classNameSubheader, "rls-size": rlsSize, "rls-theme": rlsTheme, children: children }));
|
|
3763
3763
|
}
|
|
3764
3764
|
const RlsDatatableSubheader = memo(RlsDatatableSubheaderComponent);
|
|
3765
|
-
function RlsDatatableRecordComponent({ children, className, error, identifier, info, rlsTheme, success, truncated, warning }) {
|
|
3765
|
+
function RlsDatatableRecordComponent({ children, className, error, identifier, info, rlsSize, rlsTheme, success, truncated, warning }) {
|
|
3766
3766
|
const classNameRecord = renderClassStatus('rls-datatable__record', { error, info, truncated, success, warning }, className);
|
|
3767
|
-
return (jsxRuntimeExports.jsx("tr", { id: identifier, className: classNameRecord, "rls-theme": rlsTheme, children: children }));
|
|
3767
|
+
return (jsxRuntimeExports.jsx("tr", { id: identifier, className: classNameRecord, "rls-size": rlsSize, "rls-theme": rlsTheme, children: children }));
|
|
3768
3768
|
}
|
|
3769
3769
|
const RlsDatatableRecord = memo(RlsDatatableRecordComponent);
|
|
3770
|
-
function RlsDatatableTotalsComponent({ children, className, error, identifier, info, rlsTheme, success, truncated, warning }) {
|
|
3770
|
+
function RlsDatatableTotalsComponent({ children, className, error, identifier, info, rlsSize, rlsTheme, success, truncated, warning }) {
|
|
3771
3771
|
const classNameTotals = renderClassStatus('rls-datatable__totals', { error, info, truncated, success, warning }, className);
|
|
3772
|
-
return (jsxRuntimeExports.jsx("div", { id: identifier, className: classNameTotals, "rls-theme": rlsTheme, children: children }));
|
|
3772
|
+
return (jsxRuntimeExports.jsx("div", { id: identifier, className: classNameTotals, "rls-size": rlsSize, "rls-theme": rlsTheme, children: children }));
|
|
3773
3773
|
}
|
|
3774
3774
|
const RlsDatatableTotals = memo(RlsDatatableTotalsComponent);
|
|
3775
|
-
function RlsDatatableCellComponent({ actions, children, className, control, identifier, rlsTheme, truncated }) {
|
|
3775
|
+
function RlsDatatableCellComponent({ actions, children, className, control, identifier, rlsSize, rlsTheme, truncated }) {
|
|
3776
3776
|
const classNameCell = renderClassStatus('rls-datatable__cell', { actions, control, truncated }, className);
|
|
3777
|
-
return (jsxRuntimeExports.jsx("td", { id: identifier, className: classNameCell, "rls-theme": rlsTheme, children: children }));
|
|
3777
|
+
return (jsxRuntimeExports.jsx("td", { id: identifier, className: classNameCell, "rls-size": rlsSize, "rls-theme": rlsTheme, children: children }));
|
|
3778
3778
|
}
|
|
3779
3779
|
const RlsDatatableCell = memo(RlsDatatableCellComponent);
|
|
3780
3780
|
function RlsDatatableDataComponent({ actions, children, className, control, identifier, truncated }) {
|
|
@@ -3782,13 +3782,13 @@ function RlsDatatableDataComponent({ actions, children, className, control, iden
|
|
|
3782
3782
|
return (jsxRuntimeExports.jsx("div", { id: identifier, className: classNameData, children: children }));
|
|
3783
3783
|
}
|
|
3784
3784
|
const RlsDatatableData = memo(RlsDatatableDataComponent);
|
|
3785
|
-
function RlsDatatableFloatingComponent({ children, className, identifier, invested, rlsTheme }) {
|
|
3785
|
+
function RlsDatatableFloatingComponent({ children, className, identifier, invested, rlsSize, rlsTheme }) {
|
|
3786
3786
|
const classNameFloating = renderClassStatus('rls-datatable__floating', { invested }, className);
|
|
3787
|
-
return (jsxRuntimeExports.jsx("td", { id: identifier, className: classNameFloating, "rls-theme": rlsTheme, children: children }));
|
|
3787
|
+
return (jsxRuntimeExports.jsx("td", { id: identifier, className: classNameFloating, "rls-size": rlsSize, "rls-theme": rlsTheme, children: children }));
|
|
3788
3788
|
}
|
|
3789
3789
|
const RlsDatatableFloating = memo(RlsDatatableFloatingComponent);
|
|
3790
3790
|
|
|
3791
|
-
function RlsDropdownComponent({ children, controller, rlsTheme }) {
|
|
3791
|
+
function RlsDropdownComponent({ children, controller, rlsSize, rlsTheme }) {
|
|
3792
3792
|
const className = renderClassStatus('rls-dropdown', {
|
|
3793
3793
|
visible: controller.visible
|
|
3794
3794
|
});
|
|
@@ -3803,13 +3803,13 @@ function RlsDropdownComponent({ children, controller, rlsTheme }) {
|
|
|
3803
3803
|
document.removeEventListener('click', onCloseDropdown);
|
|
3804
3804
|
};
|
|
3805
3805
|
}, []);
|
|
3806
|
-
return (jsxRuntimeExports.jsx("div", { ref: controller.component, className: className, "rls-theme": rlsTheme, children: jsxRuntimeExports.jsx("div", { className: "rls-dropdown__content", children: children }) }));
|
|
3806
|
+
return (jsxRuntimeExports.jsx("div", { ref: controller.component, className: className, "rls-size": rlsSize, "rls-theme": rlsTheme, children: jsxRuntimeExports.jsx("div", { className: "rls-dropdown__content", children: children }) }));
|
|
3807
3807
|
}
|
|
3808
3808
|
const RlsDropdown = memo(RlsDropdownComponent);
|
|
3809
3809
|
|
|
3810
3810
|
function RlsFieldAutocompleteTemplateComponent(props) {
|
|
3811
3811
|
const autocomplete = useFieldAutocomplete(props);
|
|
3812
|
-
const { render, action, children, formControl, msgErrorDisabled, onSearch, placeholder, rlsTheme, searching } = props;
|
|
3812
|
+
const { render, action, children, formControl, msgErrorDisabled, rlsSize, onSearch, placeholder, rlsTheme, searching } = props;
|
|
3813
3813
|
const [listInputPlaceholder, setListInputPlaceholder] = useState(reactI18n('listInputPlaceholder'));
|
|
3814
3814
|
useEffect(() => {
|
|
3815
3815
|
return i18nSubscribe(() => {
|
|
@@ -3860,7 +3860,7 @@ function RlsFieldAutocompleteTemplateComponent(props) {
|
|
|
3860
3860
|
onClickPattern,
|
|
3861
3861
|
onSearch
|
|
3862
3862
|
]);
|
|
3863
|
-
return (jsxRuntimeExports.jsxs("div", { id: props.identifier, ref: autocomplete.refContent, className: className, "rls-theme": rlsTheme, children: [children && jsxRuntimeExports.jsx("span", { className: "rls-field-box__label", children: children }), jsxRuntimeExports.jsx("div", { className: "rls-field-box__component", children: jsxRuntimeExports.jsxs("div", { className: "rls-field-box__body", children: [jsxRuntimeExports.jsx("input", { className: "rls-field-list__control", readOnly: true, disabled: disabled, placeholder: placeholder, value: autocomplete.value, onClick: autocomplete.onClickControl }), !props.readOnly && !disabled && (jsxRuntimeExports.jsx(RlsButtonIcon, { icon: autocomplete.value ? 'trash-2' : 'arrow-ios-down', onClick: autocomplete.onClickAction }))] }) }), !msgErrorDisabled && (jsxRuntimeExports.jsx(RlsMessageFormError, { className: "rls-field-box__error", formControl: formControl })), jsxRuntimeExports.jsx(RlsFieldListSuggestions, { elements: autocomplete.coincidences, visible: autocomplete.listIsVisible, action: action, disabled: disabled, higher: autocomplete.higher, render: render, refAnchor: autocomplete.refContent, refList: autocomplete.refList, refSuggestions: autocomplete.refSuggestions, searchControl: searchControl, onClickElement: autocomplete.onClickElement, onKeydownElement: autocomplete.onKeydownElement, onClickBackdrop: autocomplete.onClickBackdrop, onHiddenAnchor: autocomplete.onClickBackdrop })] }));
|
|
3863
|
+
return (jsxRuntimeExports.jsxs("div", { id: props.identifier, ref: autocomplete.refContent, className: className, "rls-size": rlsSize, "rls-theme": rlsTheme, children: [children && jsxRuntimeExports.jsx("span", { className: "rls-field-box__label", children: children }), jsxRuntimeExports.jsx("div", { className: "rls-field-box__component", children: jsxRuntimeExports.jsxs("div", { className: "rls-field-box__body", children: [jsxRuntimeExports.jsx("input", { className: "rls-field-list__control", readOnly: true, disabled: disabled, placeholder: placeholder, value: autocomplete.value, onClick: autocomplete.onClickControl }), !props.readOnly && !disabled && (jsxRuntimeExports.jsx(RlsButtonIcon, { icon: autocomplete.value ? 'trash-2' : 'arrow-ios-down', onClick: autocomplete.onClickAction }))] }) }), !msgErrorDisabled && (jsxRuntimeExports.jsx(RlsMessageFormError, { className: "rls-field-box__error", formControl: formControl })), jsxRuntimeExports.jsx(RlsFieldListSuggestions, { elements: autocomplete.coincidences, visible: autocomplete.listIsVisible, action: action, disabled: disabled, higher: autocomplete.higher, render: render, refAnchor: autocomplete.refContent, refList: autocomplete.refList, refSuggestions: autocomplete.refSuggestions, searchControl: searchControl, onClickElement: autocomplete.onClickElement, onKeydownElement: autocomplete.onKeydownElement, onClickBackdrop: autocomplete.onClickBackdrop, onHiddenAnchor: autocomplete.onClickBackdrop })] }));
|
|
3864
3864
|
}
|
|
3865
3865
|
const RlsFieldAutocompleteTemplate = memo(RlsFieldAutocompleteTemplateComponent);
|
|
3866
3866
|
function RlsFieldAutocompleteComponent(props) {
|
|
@@ -3869,7 +3869,7 @@ function RlsFieldAutocompleteComponent(props) {
|
|
|
3869
3869
|
}
|
|
3870
3870
|
const RlsFieldAutocomplete = memo(RlsFieldAutocompleteComponent);
|
|
3871
3871
|
|
|
3872
|
-
function RlsModalComponent({ autoclose, children, className, controller, onBackdrop, visible, rlsTheme }) {
|
|
3872
|
+
function RlsModalComponent({ autoclose, children, className, controller, rlsSize, onBackdrop, visible, rlsTheme }) {
|
|
3873
3873
|
const classNameModal = renderClassStatus('rls-modal', { visible: controller?.visible ?? visible }, className);
|
|
3874
3874
|
const onClickBackdrop = useCallback(() => {
|
|
3875
3875
|
if (autoclose) {
|
|
@@ -3877,7 +3877,7 @@ function RlsModalComponent({ autoclose, children, className, controller, onBackd
|
|
|
3877
3877
|
}
|
|
3878
3878
|
onBackdrop?.();
|
|
3879
3879
|
}, [autoclose, controller, onBackdrop]);
|
|
3880
|
-
return ReactDOM.createPortal(jsxRuntimeExports.jsxs("div", { className: classNameModal, "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsx("div", { className: "rls-modal__component", children: children }), jsxRuntimeExports.jsx("div", { className: "rls-modal__backdrop", onClick: onClickBackdrop })] }), document.body);
|
|
3880
|
+
return ReactDOM.createPortal(jsxRuntimeExports.jsxs("div", { className: classNameModal, "rls-size": rlsSize, "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsx("div", { className: "rls-modal__component", children: children }), jsxRuntimeExports.jsx("div", { className: "rls-modal__backdrop", onClick: onClickBackdrop })] }), document.body);
|
|
3881
3881
|
}
|
|
3882
3882
|
const RlsModal = memo(RlsModalComponent);
|
|
3883
3883
|
|
|
@@ -3915,7 +3915,7 @@ function RlsPickerClockTick({ selectionIsHours, value }) {
|
|
|
3915
3915
|
}, [selectionIsHours]);
|
|
3916
3916
|
return (jsxRuntimeExports.jsx("div", { className: "rls-picker-clock__tick", style: styleTick, "data-value": tickValue, children: formatTime(tickValue) }));
|
|
3917
3917
|
}
|
|
3918
|
-
function RlsPickerClockComponent({ formControl, onListener, rlsTheme, time }) {
|
|
3918
|
+
function RlsPickerClockComponent({ formControl, rlsSize, onListener, rlsTheme, time }) {
|
|
3919
3919
|
const timeInitial = useMemo(() => {
|
|
3920
3920
|
return formControl?.value ?? time ?? Time.now();
|
|
3921
3921
|
}, [formControl?.value, time]);
|
|
@@ -4100,7 +4100,7 @@ function RlsPickerClockComponent({ formControl, onListener, rlsTheme, time }) {
|
|
|
4100
4100
|
value: timeValue
|
|
4101
4101
|
});
|
|
4102
4102
|
}, [formControl, hour, minute, zoneIsPM, onListener]);
|
|
4103
|
-
return (jsxRuntimeExports.jsxs("div", { className: "rls-picker-clock", "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsxs("div", { className: "rls-picker-clock__header", children: [jsxRuntimeExports.jsxs("div", { className: "rls-picker-clock__title", children: [jsxRuntimeExports.jsx("span", { className: classNameHour, onClick: onClickHour, children: hourFormat }), jsxRuntimeExports.jsx("span", { className: "rls-picker-clock__title__separator", children: ":" }), jsxRuntimeExports.jsx("span", { className: classNameMinute, onClick: onClickMinute, children: minuteFormat })] }), jsxRuntimeExports.jsxs("div", { className: "rls-picker-clock__zone", children: [jsxRuntimeExports.jsx("span", { className: classNameAM, onClick: onClickAM, children: "AM" }), jsxRuntimeExports.jsx("span", { className: classNamePM, onClick: onClickPM, children: "PM" })] })] }), jsxRuntimeExports.jsx("div", { className: "rls-picker-clock__body", children: jsxRuntimeExports.jsxs("div", { className: "rls-picker-clock__plate", ref: plateElement, onPointerDown: onPointerDown, onPointerMove: onPointerMove, onPointerUp: onPointerUp, onPointerCancel: onPointerCancel, children: [jsxRuntimeExports.jsx("div", { className: "rls-picker-clock__canvas", children: jsxRuntimeExports.jsx("svg", { width: "120rem", height: "120rem", children: jsxRuntimeExports.jsxs("g", { style: {
|
|
4103
|
+
return (jsxRuntimeExports.jsxs("div", { className: "rls-picker-clock", "rls-size": rlsSize, "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsxs("div", { className: "rls-picker-clock__header", children: [jsxRuntimeExports.jsxs("div", { className: "rls-picker-clock__title", children: [jsxRuntimeExports.jsx("span", { className: classNameHour, onClick: onClickHour, children: hourFormat }), jsxRuntimeExports.jsx("span", { className: "rls-picker-clock__title__separator", children: ":" }), jsxRuntimeExports.jsx("span", { className: classNameMinute, onClick: onClickMinute, children: minuteFormat })] }), jsxRuntimeExports.jsxs("div", { className: "rls-picker-clock__zone", children: [jsxRuntimeExports.jsx("span", { className: classNameAM, onClick: onClickAM, children: "AM" }), jsxRuntimeExports.jsx("span", { className: classNamePM, onClick: onClickPM, children: "PM" })] })] }), jsxRuntimeExports.jsx("div", { className: "rls-picker-clock__body", children: jsxRuntimeExports.jsxs("div", { className: "rls-picker-clock__plate", ref: plateElement, onPointerDown: onPointerDown, onPointerMove: onPointerMove, onPointerUp: onPointerUp, onPointerCancel: onPointerCancel, children: [jsxRuntimeExports.jsx("div", { className: "rls-picker-clock__canvas", children: jsxRuntimeExports.jsx("svg", { width: "120rem", height: "120rem", children: jsxRuntimeExports.jsxs("g", { style: {
|
|
4104
4104
|
transform: `translate(${DIAL_RADIUS}rem, ${DIAL_RADIUS}rem)`
|
|
4105
4105
|
}, children: [jsxRuntimeExports.jsx("line", { ref: lineElement, className: "rls-picker-clock__canvas__line", x1: "-1", y1: "-1" }), jsxRuntimeExports.jsx("circle", { ref: centerElement, className: "rls-picker-clock__canvas__center", r: "4", cx: "-1", cy: "-1" }), jsxRuntimeExports.jsx("circle", { ref: indicatorElement, className: "rls-picker-clock__canvas__indicator", r: `${TICK_RADIUS}rem` }), jsxRuntimeExports.jsx("circle", { ref: pointElement, className: "rls-picker-clock__canvas__point", r: "3.5" })] }) }) }), jsxRuntimeExports.jsx("div", { className: "rls-picker-clock__hours", children: CLOCK_VALUES.map((value) => {
|
|
4106
4106
|
return (jsxRuntimeExports.jsx(RlsPickerClockTick, { value: value, selectionIsHours: selectionIsHours }, value));
|
|
@@ -4108,16 +4108,16 @@ function RlsPickerClockComponent({ formControl, onListener, rlsTheme, time }) {
|
|
|
4108
4108
|
}
|
|
4109
4109
|
const RlsPickerClock = memo(RlsPickerClockComponent);
|
|
4110
4110
|
|
|
4111
|
-
function RlsModalClockComponent({ controller, disabled, formControl, onClose, rlsTheme, time, visible }) {
|
|
4111
|
+
function RlsModalClockComponent({ controller, disabled, formControl, rlsSize, onClose, rlsTheme, time, visible }) {
|
|
4112
4112
|
const onListener = useCallback(({ event, value }) => {
|
|
4113
4113
|
onClose?.(event !== PickerListenerEvent.Cancel ? value : undefined);
|
|
4114
4114
|
controller?.close();
|
|
4115
4115
|
}, [onClose, controller]);
|
|
4116
|
-
return (jsxRuntimeExports.jsx(RlsModal, { className: "rls-modal-clock", controller: controller, visible: visible, rlsTheme: rlsTheme, children: jsxRuntimeExports.jsx(RlsPickerClock, { formControl: formControl, time: time, disabled: disabled, onListener: onListener }) }));
|
|
4116
|
+
return (jsxRuntimeExports.jsx(RlsModal, { className: "rls-modal-clock", controller: controller, visible: visible, rlsSize: rlsSize, rlsTheme: rlsTheme, children: jsxRuntimeExports.jsx(RlsPickerClock, { formControl: formControl, time: time, disabled: disabled, onListener: onListener }) }));
|
|
4117
4117
|
}
|
|
4118
4118
|
const RlsModalClock = memo(RlsModalClockComponent);
|
|
4119
4119
|
|
|
4120
|
-
function RlsFieldClockComponent({ children, disabled: disabledProps, formControl, identifier, msgErrorDisabled, onValue, placeholder, readOnly, rlsTheme, time, value: valueInitial }) {
|
|
4120
|
+
function RlsFieldClockComponent({ children, disabled: disabledProps, formControl, identifier, msgErrorDisabled, rlsSize, onValue, placeholder, readOnly, rlsTheme, time, value: valueInitial }) {
|
|
4121
4121
|
const [value, setValue] = useState(formControl?.value ?? valueInitial);
|
|
4122
4122
|
const [modalIsVisible, setModalIsVisible] = useState(false);
|
|
4123
4123
|
const disabled = useMemo(() => {
|
|
@@ -4162,11 +4162,11 @@ function RlsFieldClockComponent({ children, disabled: disabledProps, formControl
|
|
|
4162
4162
|
formControl?.touch();
|
|
4163
4163
|
setModalIsVisible(false);
|
|
4164
4164
|
}, [formControl, onChange]);
|
|
4165
|
-
return (jsxRuntimeExports.jsxs("div", { id: identifier, className: "rls-field-clock", "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsxs("div", { className: className, children: [children && jsxRuntimeExports.jsx("span", { className: "rls-field-box__label", children: children }), jsxRuntimeExports.jsx("div", { className: "rls-field-box__component", children: jsxRuntimeExports.jsxs("div", { className: "rls-field-box__body", children: [jsxRuntimeExports.jsx("input", { className: "rls-field-clock__control", type: "text", value: status.valueInput, readOnly: true, placeholder: placeholder, onClick: onClickInput, disabled: disabled }), !readOnly && !disabled && (jsxRuntimeExports.jsx(RlsButtonIcon, { icon: status.icon, onClick: onClickAction }))] }) }), !msgErrorDisabled && (jsxRuntimeExports.jsx(RlsMessageFormError, { className: "rls-field-box__error", formControl: formControl }))] }), jsxRuntimeExports.jsx(RlsModalClock, { visible: modalIsVisible, formControl: formControl, time: time, disabled: disabled, onClose: onCloseModal, rlsTheme: rlsTheme })] }));
|
|
4165
|
+
return (jsxRuntimeExports.jsxs("div", { id: identifier, className: "rls-field-clock", "rls-size": rlsSize, "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsxs("div", { className: className, children: [children && jsxRuntimeExports.jsx("span", { className: "rls-field-box__label", children: children }), jsxRuntimeExports.jsx("div", { className: "rls-field-box__component", children: jsxRuntimeExports.jsxs("div", { className: "rls-field-box__body", children: [jsxRuntimeExports.jsx("input", { className: "rls-field-clock__control", type: "text", value: status.valueInput, readOnly: true, placeholder: placeholder, onClick: onClickInput, disabled: disabled }), !readOnly && !disabled && (jsxRuntimeExports.jsx(RlsButtonIcon, { icon: status.icon, onClick: onClickAction }))] }) }), !msgErrorDisabled && (jsxRuntimeExports.jsx(RlsMessageFormError, { className: "rls-field-box__error", formControl: formControl }))] }), jsxRuntimeExports.jsx(RlsModalClock, { visible: modalIsVisible, formControl: formControl, time: time, disabled: disabled, onClose: onCloseModal, rlsSize: rlsSize, rlsTheme: rlsTheme })] }));
|
|
4166
4166
|
}
|
|
4167
4167
|
const RlsFieldClock = memo(RlsFieldClockComponent);
|
|
4168
4168
|
|
|
4169
|
-
function RlsPickerColorComponent({ color, formControl, onListener, rlsTheme }) {
|
|
4169
|
+
function RlsPickerColorComponent({ color, formControl, rlsSize, onListener, rlsTheme }) {
|
|
4170
4170
|
const initialColor = useMemo(() => formControl?.value ?? color ?? DEFAULT_COLOR, []);
|
|
4171
4171
|
const initialHsv = useMemo(() => hexToHsv(initialColor) ?? { h: 258, s: 100, v: 100 }, []);
|
|
4172
4172
|
const canvasRef = useRef(null);
|
|
@@ -4371,14 +4371,14 @@ function RlsPickerColorComponent({ color, formControl, onListener, rlsTheme }) {
|
|
|
4371
4371
|
formControl?.setValue(hexColor);
|
|
4372
4372
|
onListener?.({ event: PickerListenerEvent.Select, value: hexColor });
|
|
4373
4373
|
}, [formControl, hexColor, onListener]);
|
|
4374
|
-
return (jsxRuntimeExports.jsxs("div", { className: "rls-picker-color", "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsx("div", { className: "rls-picker-color__preview", children: jsxRuntimeExports.jsx("div", { ref: canvasRef, className: "rls-picker-color__canvas", style: canvasStyle, "data-slider": "canvas", onMouseDown: onMouseDown, onMouseMove: onMouseMove, onMouseUp: onInactiveSelection, onMouseLeave: onInactiveSelection, onTouchStart: onTouchStart, onTouchMove: onTouchMove, onTouchEnd: onInactiveSelection, children: jsxRuntimeExports.jsx("div", { className: "rls-picker-color__indicator", style: {
|
|
4374
|
+
return (jsxRuntimeExports.jsxs("div", { className: "rls-picker-color", "rls-size": rlsSize, "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsx("div", { className: "rls-picker-color__preview", children: jsxRuntimeExports.jsx("div", { ref: canvasRef, className: "rls-picker-color__canvas", style: canvasStyle, "data-slider": "canvas", onMouseDown: onMouseDown, onMouseMove: onMouseMove, onMouseUp: onInactiveSelection, onMouseLeave: onInactiveSelection, onTouchStart: onTouchStart, onTouchMove: onTouchMove, onTouchEnd: onInactiveSelection, children: jsxRuntimeExports.jsx("div", { className: "rls-picker-color__indicator", style: {
|
|
4375
4375
|
left: indicatorPosition.left,
|
|
4376
4376
|
top: indicatorPosition.top
|
|
4377
4377
|
}, children: jsxRuntimeExports.jsx("div", { className: "rls-picker-color__indicator__circle", style: { backgroundColor: hexColor } }) }) }) }), jsxRuntimeExports.jsxs("div", { className: "rls-picker-color__controls", children: [jsxRuntimeExports.jsx("div", { className: "rls-picker-color__slider", children: jsxRuntimeExports.jsx("div", { ref: hueRef, className: "rls-picker-color__slider__track", style: hueSliderStyle, "data-slider": "hue", onMouseDown: onMouseDown, onMouseMove: onMouseMove, onMouseUp: onInactiveSelection, onMouseLeave: onInactiveSelection, onTouchStart: onTouchStart, onTouchMove: onTouchMove, onTouchEnd: onInactiveSelection, children: jsxRuntimeExports.jsx("div", { className: "rls-picker-color__slider__thumb", style: hueIndicatorStyle }) }) }), jsxRuntimeExports.jsx("div", { className: "rls-picker-color__slider", children: jsxRuntimeExports.jsx("div", { ref: alphaRef, className: "rls-picker-color__slider__track rls-picker-color__slider__track--alpha", style: alphaSliderStyle, "data-slider": "alpha", onMouseDown: onMouseDown, onMouseMove: onMouseMove, onMouseUp: onInactiveSelection, onMouseLeave: onInactiveSelection, onTouchStart: onTouchStart, onTouchMove: onTouchMove, onTouchEnd: onInactiveSelection, children: jsxRuntimeExports.jsx("div", { className: "rls-picker-color__slider__thumb", style: alphaIndicatorStyle }) }) })] }), jsxRuntimeExports.jsx("div", { className: "rls-picker-color__footer", children: jsxRuntimeExports.jsxs("div", { className: "rls-picker-color__hex", children: [jsxRuntimeExports.jsx("div", { className: "rls-picker-color__hex__swatch", style: { backgroundColor: hexColor } }), jsxRuntimeExports.jsx("span", { className: "rls-picker-color__hex__prefix", children: "#" }), jsxRuntimeExports.jsx("input", { className: "rls-picker-color__hex__input", type: "text", maxLength: 6, value: hexValue, onChange: onHexInputChange, onFocus: onHexFocus, onBlur: onHexBlur, onKeyDown: onHexKeyDown })] }) }), jsxRuntimeExports.jsxs("div", { className: "rls-picker-color__actions", children: [jsxRuntimeExports.jsx("div", { className: "rls-picker-color__actions--cancel", children: jsxRuntimeExports.jsx(RlsButton, { type: "flat", onClick: onCancel, children: labels.colorActionCancel }) }), jsxRuntimeExports.jsx("div", { className: "rls-picker-color__actions--ok", children: jsxRuntimeExports.jsx(RlsButton, { type: "raised", onClick: onSelect, children: labels.colorActionSelect }) })] })] }));
|
|
4378
4378
|
}
|
|
4379
4379
|
const RlsPickerColor = memo(RlsPickerColorComponent);
|
|
4380
4380
|
|
|
4381
|
-
function RlsFieldColorComponent({ children, color, disabled: disabledProps, formControl, identifier, msgErrorDisabled, onValue, placeholder, readOnly, rlsTheme, value: valueInitial }) {
|
|
4381
|
+
function RlsFieldColorComponent({ children, color, disabled: disabledProps, formControl, identifier, msgErrorDisabled, rlsSize, onValue, placeholder, readOnly, rlsTheme, value: valueInitial }) {
|
|
4382
4382
|
const [value, setValue] = useState(formControl?.value ?? valueInitial);
|
|
4383
4383
|
const [modalIsVisible, setModalIsVisible] = useState(false);
|
|
4384
4384
|
const colorValue = useMemo(() => {
|
|
@@ -4421,7 +4421,7 @@ function RlsFieldColorComponent({ children, color, disabled: disabledProps, form
|
|
|
4421
4421
|
formControl?.touch();
|
|
4422
4422
|
setModalIsVisible(false);
|
|
4423
4423
|
}, [formControl, onChange]);
|
|
4424
|
-
return (jsxRuntimeExports.jsxs("div", { id: identifier, className: "rls-field-color", "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsxs("div", { className: className, children: [children && jsxRuntimeExports.jsx("span", { className: "rls-field-box__label", children: children }), jsxRuntimeExports.jsx("div", { className: "rls-field-box__component", children: jsxRuntimeExports.jsxs("div", { className: "rls-field-box__body", children: [colorDisplay && (jsxRuntimeExports.jsx("div", { className: "rls-field-color__swatch", style: { backgroundColor: colorDisplay } })), jsxRuntimeExports.jsx("input", { className: "rls-field-color__control", type: "text", value: colorDisplay, readOnly: true, placeholder: placeholder, onClick: onClickInput, disabled: disabled }), !readOnly && !disabled && (jsxRuntimeExports.jsx(RlsButtonIcon, { icon: colorValue ? 'trash-2' : 'color-palette', onClick: onClickAction }))] }) }), !msgErrorDisabled && (jsxRuntimeExports.jsx(RlsMessageFormError, { className: "rls-field-box__error", formControl: formControl }))] }), jsxRuntimeExports.jsx(RlsModal, { className: "rls-modal-color", visible: modalIsVisible, rlsTheme: rlsTheme, children: jsxRuntimeExports.jsx(RlsPickerColor, { formControl: formControl, color: color, disabled: disabled, onListener: onListener }) })] }));
|
|
4424
|
+
return (jsxRuntimeExports.jsxs("div", { id: identifier, className: "rls-field-color", "rls-size": rlsSize, "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsxs("div", { className: className, children: [children && jsxRuntimeExports.jsx("span", { className: "rls-field-box__label", children: children }), jsxRuntimeExports.jsx("div", { className: "rls-field-box__component", children: jsxRuntimeExports.jsxs("div", { className: "rls-field-box__body", children: [colorDisplay && (jsxRuntimeExports.jsx("div", { className: "rls-field-color__swatch", style: { backgroundColor: colorDisplay } })), jsxRuntimeExports.jsx("input", { className: "rls-field-color__control", type: "text", value: colorDisplay, readOnly: true, placeholder: placeholder, onClick: onClickInput, disabled: disabled }), !readOnly && !disabled && (jsxRuntimeExports.jsx(RlsButtonIcon, { icon: colorValue ? 'trash-2' : 'color-palette', onClick: onClickAction }))] }) }), !msgErrorDisabled && (jsxRuntimeExports.jsx(RlsMessageFormError, { className: "rls-field-box__error", formControl: formControl }))] }), jsxRuntimeExports.jsx(RlsModal, { className: "rls-modal-color", visible: modalIsVisible, rlsSize: rlsSize, rlsTheme: rlsTheme, children: jsxRuntimeExports.jsx(RlsPickerColor, { formControl: formControl, color: color, disabled: disabled, onListener: onListener }) })] }));
|
|
4425
4425
|
}
|
|
4426
4426
|
const RlsFieldColor = memo(RlsFieldColorComponent);
|
|
4427
4427
|
|
|
@@ -4429,7 +4429,7 @@ const DATE_FORMAT = '{dd}/{mx}/{yy}';
|
|
|
4429
4429
|
const DATE_FORMAT_TITLE = '{dw}, {mx} {dd} de {yy}';
|
|
4430
4430
|
const DATE_RANGE_FORMAT = '{dd}/{mx}/{yy}';
|
|
4431
4431
|
|
|
4432
|
-
function RlsPickerDateComponent({ automatic, date, disabled, formControl, maxDate, minDate, onListener, rlsTheme }) {
|
|
4432
|
+
function RlsPickerDateComponent({ automatic, date, disabled, formControl, maxDate, minDate, rlsSize, onListener, rlsTheme }) {
|
|
4433
4433
|
const today = useRef(new Date()); // Initial current date in component
|
|
4434
4434
|
const _date = useMemo(() => {
|
|
4435
4435
|
return formControl?.value ?? date ?? today.current;
|
|
@@ -4504,20 +4504,20 @@ function RlsPickerDateComponent({ automatic, date, disabled, formControl, maxDat
|
|
|
4504
4504
|
value: value
|
|
4505
4505
|
});
|
|
4506
4506
|
}, [formControl, value, onListener]);
|
|
4507
|
-
return (jsxRuntimeExports.jsxs("div", { className: "rls-picker-date", "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsxs("div", { className: "rls-picker-date__header", children: [jsxRuntimeExports.jsx(RlsPickerSelectorTitle, { monthControl: monthControl, yearControl: yearControl, date: value, maxDate: maxDate, minDate: minDate, disabled: visibility === 'YEAR', type: 'month', onClick: onVisibilityTitle }), jsxRuntimeExports.jsx("div", { className: "rls-picker-date__title", children: jsxRuntimeExports.jsx("span", { onClick: onVisibilityDay, children: title }) })] }), jsxRuntimeExports.jsxs("div", { className: classNameComponent, children: [jsxRuntimeExports.jsx(RlsPickerDay, { formControl: dayControl, date: value, month: monthControl.value, year: yearControl.value, maxDate: maxDate, minDate: minDate, disabled: disabled }), jsxRuntimeExports.jsx(RlsPickerMonth, { formControl: monthControl, date: value, year: yearControl.value, maxDate: maxDate, minDate: minDate, disabled: disabled, onValue: onVisibilityDay }), jsxRuntimeExports.jsx(RlsPickerYear, { formControl: yearControl, date: value, maxDate: maxDate, minDate: minDate, disabled: disabled, onValue: onVisibilityDay })] }), !automatic && (jsxRuntimeExports.jsx("div", { className: "rls-picker-date__footer", children: jsxRuntimeExports.jsxs("div", { className: "rls-picker-date__actions", children: [jsxRuntimeExports.jsx("div", { className: "rls-picker-date__actions--cancel", children: jsxRuntimeExports.jsx(RlsButton, { type: "flat", onClick: onCancel, children: labels.dateActionCancel }) }), jsxRuntimeExports.jsx("div", { className: "rls-picker-date__actions--today", children: jsxRuntimeExports.jsx(RlsButtonAction, { icon: "calendar", onClick: onToday, disabled: itIsDisabledToday }) }), jsxRuntimeExports.jsx("div", { className: "rls-picker-date__actions--ok", children: jsxRuntimeExports.jsx(RlsButton, { type: "raised", onClick: onSelect, children: labels.dateActionSelect }) })] }) }))] }));
|
|
4507
|
+
return (jsxRuntimeExports.jsxs("div", { className: "rls-picker-date", "rls-size": rlsSize, "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsxs("div", { className: "rls-picker-date__header", children: [jsxRuntimeExports.jsx(RlsPickerSelectorTitle, { monthControl: monthControl, yearControl: yearControl, date: value, maxDate: maxDate, minDate: minDate, disabled: visibility === 'YEAR', type: 'month', onClick: onVisibilityTitle }), jsxRuntimeExports.jsx("div", { className: "rls-picker-date__title", children: jsxRuntimeExports.jsx("span", { onClick: onVisibilityDay, children: title }) })] }), jsxRuntimeExports.jsxs("div", { className: classNameComponent, children: [jsxRuntimeExports.jsx(RlsPickerDay, { formControl: dayControl, date: value, month: monthControl.value, year: yearControl.value, maxDate: maxDate, minDate: minDate, disabled: disabled }), jsxRuntimeExports.jsx(RlsPickerMonth, { formControl: monthControl, date: value, year: yearControl.value, maxDate: maxDate, minDate: minDate, disabled: disabled, onValue: onVisibilityDay }), jsxRuntimeExports.jsx(RlsPickerYear, { formControl: yearControl, date: value, maxDate: maxDate, minDate: minDate, disabled: disabled, onValue: onVisibilityDay })] }), !automatic && (jsxRuntimeExports.jsx("div", { className: "rls-picker-date__footer", children: jsxRuntimeExports.jsxs("div", { className: "rls-picker-date__actions", children: [jsxRuntimeExports.jsx("div", { className: "rls-picker-date__actions--cancel", children: jsxRuntimeExports.jsx(RlsButton, { type: "flat", onClick: onCancel, children: labels.dateActionCancel }) }), jsxRuntimeExports.jsx("div", { className: "rls-picker-date__actions--today", children: jsxRuntimeExports.jsx(RlsButtonAction, { icon: "calendar", onClick: onToday, disabled: itIsDisabledToday }) }), jsxRuntimeExports.jsx("div", { className: "rls-picker-date__actions--ok", children: jsxRuntimeExports.jsx(RlsButton, { type: "raised", onClick: onSelect, children: labels.dateActionSelect }) })] }) }))] }));
|
|
4508
4508
|
}
|
|
4509
4509
|
const RlsPickerDate = memo(RlsPickerDateComponent);
|
|
4510
4510
|
|
|
4511
|
-
function RlsModalDateComponent({ automatic, controller, date, disabled, formControl, maxDate, minDate, onClose, rlsTheme, visible }) {
|
|
4511
|
+
function RlsModalDateComponent({ automatic, controller, date, disabled, formControl, maxDate, minDate, rlsSize, onClose, rlsTheme, visible }) {
|
|
4512
4512
|
const onListener = useCallback(({ event, value }) => {
|
|
4513
4513
|
onClose?.(event !== PickerListenerEvent.Cancel ? value : undefined);
|
|
4514
4514
|
controller?.close();
|
|
4515
4515
|
}, [onClose, controller]);
|
|
4516
|
-
return (jsxRuntimeExports.jsx(RlsModal, { className: "rls-modal-date", controller: controller, visible: visible, rlsTheme: rlsTheme, children: jsxRuntimeExports.jsx(RlsPickerDate, { automatic: automatic, formControl: formControl, date: date, disabled: disabled, maxDate: maxDate, minDate: minDate, onListener: onListener }) }));
|
|
4516
|
+
return (jsxRuntimeExports.jsx(RlsModal, { className: "rls-modal-date", controller: controller, visible: visible, rlsSize: rlsSize, rlsTheme: rlsTheme, children: jsxRuntimeExports.jsx(RlsPickerDate, { automatic: automatic, formControl: formControl, date: date, disabled: disabled, maxDate: maxDate, minDate: minDate, onListener: onListener }) }));
|
|
4517
4517
|
}
|
|
4518
4518
|
const RlsModalDate = memo(RlsModalDateComponent);
|
|
4519
4519
|
|
|
4520
|
-
function RlsFieldDateComponent({ children, date, disabled: disabledProps, formControl, format, identifier, maxDate, minDate, msgErrorDisabled, onValue, placeholder, readOnly, rlsTheme, value: valueInitial }) {
|
|
4520
|
+
function RlsFieldDateComponent({ children, date, disabled: disabledProps, formControl, format, identifier, maxDate, minDate, msgErrorDisabled, rlsSize, onValue, placeholder, readOnly, rlsTheme, value: valueInitial }) {
|
|
4521
4521
|
const today = useMemo(() => new Date(), []);
|
|
4522
4522
|
const [value, setValue] = useState(formControl?.value ?? valueInitial);
|
|
4523
4523
|
const [modalIsVisible, setModalIsVisible] = useState(false);
|
|
@@ -4574,7 +4574,7 @@ function RlsFieldDateComponent({ children, date, disabled: disabledProps, formCo
|
|
|
4574
4574
|
formControl?.touch();
|
|
4575
4575
|
setModalIsVisible(false);
|
|
4576
4576
|
}, [formControl, onChange]);
|
|
4577
|
-
return (jsxRuntimeExports.jsxs("div", { id: identifier, className: "rls-field-date", "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsxs("div", { className: className, children: [children && jsxRuntimeExports.jsx("span", { className: "rls-field-box__label", children: children }), jsxRuntimeExports.jsx("div", { className: "rls-field-box__component", children: jsxRuntimeExports.jsxs("div", { className: "rls-field-box__body", children: [jsxRuntimeExports.jsx("input", { className: "rls-field-date__control", type: "text", value: status.label, readOnly: true, placeholder: placeholder, onClick: onClickInput, disabled: disabled }), !readOnly && !disabled && (jsxRuntimeExports.jsx(RlsButtonIcon, { icon: status.icon, onClick: onClickAction }))] }) }), !msgErrorDisabled && (jsxRuntimeExports.jsx(RlsMessageFormError, { className: "rls-field-box__error", formControl: formControl }))] }), jsxRuntimeExports.jsx(RlsModalDate, { visible: modalIsVisible, formControl: formControl, date: date, disabled: disabled, maxDate: maxDate, minDate: minDate, onClose: onCloseModal, rlsTheme: rlsTheme })] }));
|
|
4577
|
+
return (jsxRuntimeExports.jsxs("div", { id: identifier, className: "rls-field-date", "rls-size": rlsSize, "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsxs("div", { className: className, children: [children && jsxRuntimeExports.jsx("span", { className: "rls-field-box__label", children: children }), jsxRuntimeExports.jsx("div", { className: "rls-field-box__component", children: jsxRuntimeExports.jsxs("div", { className: "rls-field-box__body", children: [jsxRuntimeExports.jsx("input", { className: "rls-field-date__control", type: "text", value: status.label, readOnly: true, placeholder: placeholder, onClick: onClickInput, disabled: disabled }), !readOnly && !disabled && (jsxRuntimeExports.jsx(RlsButtonIcon, { icon: status.icon, onClick: onClickAction }))] }) }), !msgErrorDisabled && (jsxRuntimeExports.jsx(RlsMessageFormError, { className: "rls-field-box__error", formControl: formControl }))] }), jsxRuntimeExports.jsx(RlsModalDate, { visible: modalIsVisible, formControl: formControl, date: date, disabled: disabled, maxDate: maxDate, minDate: minDate, onClose: onCloseModal, rlsSize: rlsSize, rlsTheme: rlsTheme })] }));
|
|
4578
4578
|
}
|
|
4579
4579
|
const RlsFieldDate = memo(RlsFieldDateComponent);
|
|
4580
4580
|
|
|
@@ -4584,7 +4584,7 @@ function rangeFormatTemplate({ maxDate, minDate }) {
|
|
|
4584
4584
|
return `${minFormat} - ${maxFormat}`;
|
|
4585
4585
|
}
|
|
4586
4586
|
|
|
4587
|
-
function RlsPickerDateRangeComponent({ automatic, date: datePicker, disabled, formControl, maxDate, minDate, onListener, rlsTheme }) {
|
|
4587
|
+
function RlsPickerDateRangeComponent({ automatic, date: datePicker, disabled, formControl, maxDate, minDate, rlsSize, onListener, rlsTheme }) {
|
|
4588
4588
|
const _date = useMemo(() => normalizeMinTime(datePicker ?? new Date()), [datePicker]);
|
|
4589
4589
|
const _range = useMemo(() => formControl?.value ?? DateRange.now(), [formControl?.value]);
|
|
4590
4590
|
const yearControl = useReactControl(_date.getFullYear());
|
|
@@ -4646,20 +4646,20 @@ function RlsPickerDateRangeComponent({ automatic, date: datePicker, disabled, fo
|
|
|
4646
4646
|
formControl?.setValue(value);
|
|
4647
4647
|
onListener?.({ event: PickerListenerEvent.Select, value });
|
|
4648
4648
|
}, [formControl, value, onListener]);
|
|
4649
|
-
return (jsxRuntimeExports.jsxs("div", { className: "rls-picker-date-range", "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsxs("div", { className: "rls-picker-date-range__header", children: [jsxRuntimeExports.jsx(RlsPickerSelectorTitle, { monthControl: monthControl, yearControl: yearControl, date: date, maxDate: maxDate, minDate: minDate, disabled: visibility === 'YEAR', type: visibility === 'MONTH' ? 'year' : 'month', onClick: onVisibilityTitle }), jsxRuntimeExports.jsx("div", { className: "rls-picker-date-range__title", children: jsxRuntimeExports.jsx("span", { onClick: onVisibilityDay, children: title }) })] }), jsxRuntimeExports.jsxs("div", { className: classNameComponent, children: [jsxRuntimeExports.jsx(RlsPickerDayRange, { formControl: rangeControl, date: date, maxDate: maxDate, minDate: minDate, disabled: disabled }), jsxRuntimeExports.jsx(RlsPickerMonth, { formControl: monthControl, year: yearControl.value, maxDate: maxDate, minDate: minDate, disabled: disabled, onValue: onVisibilityDay }), jsxRuntimeExports.jsx(RlsPickerYear, { formControl: yearControl, maxDate: maxDate, minDate: minDate, disabled: disabled, onValue: onVisibilityDay })] }), jsxRuntimeExports.jsx("div", { className: classNameFooter, children: jsxRuntimeExports.jsxs("div", { className: "rls-picker-date-range__actions", children: [jsxRuntimeExports.jsx("div", { className: "rls-picker-date-range__actions--cancel", children: jsxRuntimeExports.jsx(RlsButton, { type: "flat", onClick: onCancel, children: labels.dateActionCancel }) }), jsxRuntimeExports.jsx("div", { className: "rls-picker-date-range__actions--ok", children: jsxRuntimeExports.jsx(RlsButton, { type: "raised", onClick: onSelect, children: labels.dateActionSelect }) })] }) })] }));
|
|
4649
|
+
return (jsxRuntimeExports.jsxs("div", { className: "rls-picker-date-range", "rls-size": rlsSize, "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsxs("div", { className: "rls-picker-date-range__header", children: [jsxRuntimeExports.jsx(RlsPickerSelectorTitle, { monthControl: monthControl, yearControl: yearControl, date: date, maxDate: maxDate, minDate: minDate, disabled: visibility === 'YEAR', type: visibility === 'MONTH' ? 'year' : 'month', onClick: onVisibilityTitle }), jsxRuntimeExports.jsx("div", { className: "rls-picker-date-range__title", children: jsxRuntimeExports.jsx("span", { onClick: onVisibilityDay, children: title }) })] }), jsxRuntimeExports.jsxs("div", { className: classNameComponent, children: [jsxRuntimeExports.jsx(RlsPickerDayRange, { formControl: rangeControl, date: date, maxDate: maxDate, minDate: minDate, disabled: disabled }), jsxRuntimeExports.jsx(RlsPickerMonth, { formControl: monthControl, year: yearControl.value, maxDate: maxDate, minDate: minDate, disabled: disabled, onValue: onVisibilityDay }), jsxRuntimeExports.jsx(RlsPickerYear, { formControl: yearControl, maxDate: maxDate, minDate: minDate, disabled: disabled, onValue: onVisibilityDay })] }), jsxRuntimeExports.jsx("div", { className: classNameFooter, children: jsxRuntimeExports.jsxs("div", { className: "rls-picker-date-range__actions", children: [jsxRuntimeExports.jsx("div", { className: "rls-picker-date-range__actions--cancel", children: jsxRuntimeExports.jsx(RlsButton, { type: "flat", onClick: onCancel, children: labels.dateActionCancel }) }), jsxRuntimeExports.jsx("div", { className: "rls-picker-date-range__actions--ok", children: jsxRuntimeExports.jsx(RlsButton, { type: "raised", onClick: onSelect, children: labels.dateActionSelect }) })] }) })] }));
|
|
4650
4650
|
}
|
|
4651
4651
|
const RlsPickerDateRange = memo(RlsPickerDateRangeComponent);
|
|
4652
4652
|
|
|
4653
|
-
function RlsModalDateRangeComponent({ automatic, controller, date, disabled, formControl, maxDate, minDate, onClose, rlsTheme, visible }) {
|
|
4653
|
+
function RlsModalDateRangeComponent({ automatic, controller, date, disabled, formControl, maxDate, minDate, rlsSize, onClose, rlsTheme, visible }) {
|
|
4654
4654
|
const onListener = useCallback(({ event, value }) => {
|
|
4655
4655
|
onClose?.(event !== PickerListenerEvent.Cancel ? value : undefined);
|
|
4656
4656
|
controller?.close();
|
|
4657
4657
|
}, [onClose, controller]);
|
|
4658
|
-
return (jsxRuntimeExports.jsx(RlsModal, { className: "rls-modal-date-range", controller: controller, visible: visible, rlsTheme: rlsTheme, children: jsxRuntimeExports.jsx(RlsPickerDateRange, { automatic: automatic, formControl: formControl, date: date, disabled: disabled, maxDate: maxDate, minDate: minDate, onListener: onListener }) }));
|
|
4658
|
+
return (jsxRuntimeExports.jsx(RlsModal, { className: "rls-modal-date-range", controller: controller, visible: visible, rlsSize: rlsSize, rlsTheme: rlsTheme, children: jsxRuntimeExports.jsx(RlsPickerDateRange, { automatic: automatic, formControl: formControl, date: date, disabled: disabled, maxDate: maxDate, minDate: minDate, onListener: onListener }) }));
|
|
4659
4659
|
}
|
|
4660
4660
|
const RlsModalDateRange = memo(RlsModalDateRangeComponent);
|
|
4661
4661
|
|
|
4662
|
-
function RlsFieldDateRangeComponent({ children, date, disabled: disabledProps, formControl, identifier, maxDate, minDate, msgErrorDisabled, onValue, placeholder, readOnly, rlsTheme, value: valueInitial }) {
|
|
4662
|
+
function RlsFieldDateRangeComponent({ children, date, disabled: disabledProps, formControl, identifier, maxDate, minDate, msgErrorDisabled, rlsSize, onValue, placeholder, readOnly, rlsTheme, value: valueInitial }) {
|
|
4663
4663
|
const currentDate = useMemo(() => date ?? new Date(), [date]);
|
|
4664
4664
|
const [value, setValue] = useState(formControl?.value || valueInitial);
|
|
4665
4665
|
const [modalIsVisible, setModalIsVisible] = useState(false);
|
|
@@ -4705,11 +4705,11 @@ function RlsFieldDateRangeComponent({ children, date, disabled: disabledProps, f
|
|
|
4705
4705
|
formControl?.touch();
|
|
4706
4706
|
setModalIsVisible(false);
|
|
4707
4707
|
}, [formControl, onChange]);
|
|
4708
|
-
return (jsxRuntimeExports.jsxs("div", { id: identifier, className: "rls-field-date-range", "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsxs("div", { className: className, children: [children && jsxRuntimeExports.jsx("span", { className: "rls-field-box__label", children: children }), jsxRuntimeExports.jsx("div", { className: "rls-field-box__component", children: jsxRuntimeExports.jsxs("div", { className: "rls-field-box__body", children: [jsxRuntimeExports.jsx("input", { className: "rls-field-date-range__control", type: "text", value: status.valueInput, readOnly: true, placeholder: placeholder, onClick: onClickInput, disabled: disabled }), !readOnly && !disabled && (jsxRuntimeExports.jsx(RlsButtonIcon, { icon: status.icon, onClick: onClickAction }))] }) }), !msgErrorDisabled && (jsxRuntimeExports.jsx(RlsMessageFormError, { className: "rls-field-box__error", formControl: formControl }))] }), jsxRuntimeExports.jsx(RlsModalDateRange, { visible: modalIsVisible, formControl: formControl, date: currentDate, disabled: disabled, maxDate: maxDate, minDate: minDate, onClose: onCloseModal, rlsTheme: rlsTheme })] }));
|
|
4708
|
+
return (jsxRuntimeExports.jsxs("div", { id: identifier, className: "rls-field-date-range", "rls-size": rlsSize, "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsxs("div", { className: className, children: [children && jsxRuntimeExports.jsx("span", { className: "rls-field-box__label", children: children }), jsxRuntimeExports.jsx("div", { className: "rls-field-box__component", children: jsxRuntimeExports.jsxs("div", { className: "rls-field-box__body", children: [jsxRuntimeExports.jsx("input", { className: "rls-field-date-range__control", type: "text", value: status.valueInput, readOnly: true, placeholder: placeholder, onClick: onClickInput, disabled: disabled }), !readOnly && !disabled && (jsxRuntimeExports.jsx(RlsButtonIcon, { icon: status.icon, onClick: onClickAction }))] }) }), !msgErrorDisabled && (jsxRuntimeExports.jsx(RlsMessageFormError, { className: "rls-field-box__error", formControl: formControl }))] }), jsxRuntimeExports.jsx(RlsModalDateRange, { visible: modalIsVisible, formControl: formControl, date: currentDate, disabled: disabled, maxDate: maxDate, minDate: minDate, onClose: onCloseModal, rlsSize: rlsSize, rlsTheme: rlsTheme })] }));
|
|
4709
4709
|
}
|
|
4710
4710
|
const RlsFieldDateRange = memo(RlsFieldDateRangeComponent);
|
|
4711
4711
|
|
|
4712
|
-
function RlsFieldListInner({ render, suggestions, action, children, formControl, fieldList, msgErrorDisabled, placeholder, rlsTheme, ...props }) {
|
|
4712
|
+
function RlsFieldListInner({ render, suggestions, action, children, formControl, fieldList, msgErrorDisabled, rlsSize, placeholder, rlsTheme, ...props }) {
|
|
4713
4713
|
const disabled = useMemo(() => {
|
|
4714
4714
|
return formControl?.disabled || props.disabled;
|
|
4715
4715
|
}, [formControl?.disabled, props.disabled]);
|
|
@@ -4720,7 +4720,7 @@ function RlsFieldListInner({ render, suggestions, action, children, formControl,
|
|
|
4720
4720
|
readonly: props.readOnly
|
|
4721
4721
|
}, `rls-field-list rls-field-list__multi ${props.className ?? ''}`);
|
|
4722
4722
|
const renderWithCheckbox = useCallback((element) => (jsxRuntimeExports.jsxs("div", { className: "rls-field-list__multi__element", children: [jsxRuntimeExports.jsx(RlsCheckBox, { checked: fieldList.isSelected(element) }), render(element)] })), [fieldList.isSelected, render]);
|
|
4723
|
-
return (jsxRuntimeExports.jsxs("div", { id: props.identifier, ref: fieldList.refContent, className: className, "rls-theme": rlsTheme, children: [children && jsxRuntimeExports.jsx("span", { className: "rls-field-box__label", children: children }), jsxRuntimeExports.jsx("div", { className: "rls-field-box__component", children: jsxRuntimeExports.jsxs("div", { className: "rls-field-box__body", children: [jsxRuntimeExports.jsx("div", { className: "rls-field-list__multi__chips", onClick: disabled ? undefined : fieldList.onClickInput, children: !fieldList.selected.length && placeholder ? (jsxRuntimeExports.jsx("span", { className: "rls-field-list__multi__placeholder", children: placeholder })) : (fieldList.selected.map((item, index) => (jsxRuntimeExports.jsx(RlsChip, { onRemove: !props.readOnly && !disabled
|
|
4723
|
+
return (jsxRuntimeExports.jsxs("div", { id: props.identifier, ref: fieldList.refContent, className: className, "rls-size": rlsSize, "rls-theme": rlsTheme, children: [children && jsxRuntimeExports.jsx("span", { className: "rls-field-box__label", children: children }), jsxRuntimeExports.jsx("div", { className: "rls-field-box__component", children: jsxRuntimeExports.jsxs("div", { className: "rls-field-box__body", children: [jsxRuntimeExports.jsx("div", { className: "rls-field-list__multi__chips", onClick: disabled ? undefined : fieldList.onClickInput, children: !fieldList.selected.length && placeholder ? (jsxRuntimeExports.jsx("span", { className: "rls-field-list__multi__placeholder", children: placeholder })) : (fieldList.selected.map((item, index) => (jsxRuntimeExports.jsx(RlsChip, { onRemove: !props.readOnly && !disabled
|
|
4724
4724
|
? fieldList.onRemoveElement(item)
|
|
4725
4725
|
: undefined, children: item.description }, index)))) }), !props.readOnly && !disabled && (jsxRuntimeExports.jsx(RlsButtonIcon, { icon: "arrow-ios-down", onClick: fieldList.onClickAction }))] }) }), !msgErrorDisabled && (jsxRuntimeExports.jsx(RlsMessageFormError, { className: "rls-field-box__error", formControl: formControl })), jsxRuntimeExports.jsx(RlsFieldListSuggestions, { elements: suggestions, visible: fieldList.listIsVisible, action: action, disabled: disabled, higher: fieldList.higher, render: renderWithCheckbox, refAnchor: fieldList.refContent, refList: fieldList.refList, refSuggestions: fieldList.refSuggestions, onClickElement: fieldList.onClickElement, onKeydownElement: fieldList.onKeydownElement, onClickBackdrop: fieldList.onClickBackdrop, onHiddenAnchor: fieldList.onClickBackdrop })] }));
|
|
4726
4726
|
}
|
|
@@ -4738,7 +4738,7 @@ const RlsFieldList = memo(RlsFieldListComponent);
|
|
|
4738
4738
|
|
|
4739
4739
|
function RlsFieldSelectTemplateComponent(props) {
|
|
4740
4740
|
const select = useFieldSelect(props);
|
|
4741
|
-
const { render, suggestions, action, children, formControl, msgErrorDisabled, placeholder, rlsTheme, unremovable } = props;
|
|
4741
|
+
const { render, suggestions, action, children, formControl, msgErrorDisabled, rlsSize, placeholder, rlsTheme, unremovable } = props;
|
|
4742
4742
|
const disabled = useMemo(() => {
|
|
4743
4743
|
return formControl?.disabled || props.disabled;
|
|
4744
4744
|
}, [formControl?.disabled, props.disabled]);
|
|
@@ -4748,7 +4748,7 @@ function RlsFieldSelectTemplateComponent(props) {
|
|
|
4748
4748
|
disabled: disabled,
|
|
4749
4749
|
readonly: props.readOnly
|
|
4750
4750
|
}, `rls-field-list rls-field-select ${props.className ?? ''}`);
|
|
4751
|
-
return (jsxRuntimeExports.jsxs("div", { id: props.identifier, ref: select.refContent, className: className, "rls-theme": rlsTheme, children: [children && jsxRuntimeExports.jsx("span", { className: "rls-field-box__label", children: children }), jsxRuntimeExports.jsx("div", { className: "rls-field-box__component", children: jsxRuntimeExports.jsxs("div", { className: "rls-field-box__body", children: [jsxRuntimeExports.jsx("input", { ref: select.refInput, className: "rls-field-list__control", readOnly: true, placeholder: placeholder, value: select.value, onFocus: select.onFocusInput, onBlur: select.onBlurInput, onClick: select.onClickInput, onKeyDown: select.onKeydownInput, disabled: disabled }), !props.readOnly && !disabled && (jsxRuntimeExports.jsx(RlsButtonIcon, { icon: !unremovable && !!select.value ? 'close' : 'arrow-ios-down', onClick: select.onClickAction }))] }) }), !msgErrorDisabled && (jsxRuntimeExports.jsx(RlsMessageFormError, { className: "rls-field-box__error", formControl: formControl })), jsxRuntimeExports.jsx(RlsFieldListSuggestions, { elements: suggestions, visible: select.listIsVisible, action: action, disabled: disabled, higher: select.higher, render: render, refAnchor: select.refContent, refList: select.refList, refSuggestions: select.refSuggestions, onClickElement: select.onClickElement, onKeydownElement: select.onKeydownElement, onClickBackdrop: select.onClickBackdrop, onHiddenAnchor: select.onClickBackdrop })] }));
|
|
4751
|
+
return (jsxRuntimeExports.jsxs("div", { id: props.identifier, ref: select.refContent, className: className, "rls-size": rlsSize, "rls-theme": rlsTheme, children: [children && jsxRuntimeExports.jsx("span", { className: "rls-field-box__label", children: children }), jsxRuntimeExports.jsx("div", { className: "rls-field-box__component", children: jsxRuntimeExports.jsxs("div", { className: "rls-field-box__body", children: [jsxRuntimeExports.jsx("input", { ref: select.refInput, className: "rls-field-list__control", readOnly: true, placeholder: placeholder, value: select.value, onFocus: select.onFocusInput, onBlur: select.onBlurInput, onClick: select.onClickInput, onKeyDown: select.onKeydownInput, disabled: disabled }), !props.readOnly && !disabled && (jsxRuntimeExports.jsx(RlsButtonIcon, { icon: !unremovable && !!select.value ? 'close' : 'arrow-ios-down', onClick: select.onClickAction }))] }) }), !msgErrorDisabled && (jsxRuntimeExports.jsx(RlsMessageFormError, { className: "rls-field-box__error", formControl: formControl })), jsxRuntimeExports.jsx(RlsFieldListSuggestions, { elements: suggestions, visible: select.listIsVisible, action: action, disabled: disabled, higher: select.higher, render: render, refAnchor: select.refContent, refList: select.refList, refSuggestions: select.refSuggestions, onClickElement: select.onClickElement, onKeydownElement: select.onKeydownElement, onClickBackdrop: select.onClickBackdrop, onHiddenAnchor: select.onClickBackdrop })] }));
|
|
4752
4752
|
}
|
|
4753
4753
|
const RlsFieldSelectTemplate = memo(RlsFieldSelectTemplateComponent);
|
|
4754
4754
|
function RlsFieldSelectComponent(props) {
|
|
@@ -4757,9 +4757,9 @@ function RlsFieldSelectComponent(props) {
|
|
|
4757
4757
|
}
|
|
4758
4758
|
const RlsFieldSelect = memo(RlsFieldSelectComponent);
|
|
4759
4759
|
|
|
4760
|
-
function RlsFormNavigationComponent({ children, className, controller, visible, rlsTheme }) {
|
|
4760
|
+
function RlsFormNavigationComponent({ children, className, controller, rlsSize, visible, rlsTheme }) {
|
|
4761
4761
|
const classNameForm = renderClassStatus('rls-form-navigation', { visible: controller?.visible ?? visible }, className);
|
|
4762
|
-
return ReactDOM.createPortal(jsxRuntimeExports.jsx("div", { className: classNameForm, "rls-theme": rlsTheme, children: jsxRuntimeExports.jsx("div", { className: "rls-form-navigation__component", children: children }) }), document.body);
|
|
4762
|
+
return ReactDOM.createPortal(jsxRuntimeExports.jsx("div", { className: classNameForm, "rls-size": rlsSize, "rls-theme": rlsTheme, children: jsxRuntimeExports.jsx("div", { className: "rls-form-navigation__component", children: children }) }), document.body);
|
|
4763
4763
|
}
|
|
4764
4764
|
const RlsFormNavigation = memo(RlsFormNavigationComponent);
|
|
4765
4765
|
|
|
@@ -5106,7 +5106,7 @@ function RlsImageEditorComponent(props) {
|
|
|
5106
5106
|
context?.putImageData(originalImage.current, 0, 0);
|
|
5107
5107
|
}
|
|
5108
5108
|
}, []);
|
|
5109
|
-
return (jsxRuntimeExports.jsxs("div", { className: "rls-image-editor", children: [jsxRuntimeExports.jsx("div", { ref: refBody, className: "rls-image-editor__body", children: jsxRuntimeExports.jsxs("div", { ref: refImage, className: "rls-image-editor__body__image", children: [jsxRuntimeExports.jsx("div", { ref: refSelection, className: "rls-image-editor__body__selection" }), jsxRuntimeExports.jsx("div", { ref: refOverlayTop, className: "rls-image-editor__body__overlay--top" }), jsxRuntimeExports.jsx("div", { ref: refOverlayRight, className: "rls-image-editor__body__overlay--right" }), jsxRuntimeExports.jsx("div", { ref: refOverlayBottom, className: "rls-image-editor__body__overlay--bottom" }), jsxRuntimeExports.jsx("div", { ref: refOverlayLeft, className: "rls-image-editor__body__overlay--left" }), jsxRuntimeExports.jsx("canvas", { ref: refCanvas })] }) }), jsxRuntimeExports.jsxs("div", { className: "rls-image-editor__footer", children: [jsxRuntimeExports.jsx("div", { className: "rls-image-editor__sliders", children: jsxRuntimeExports.jsx(RlsSlider, { prefixIcon: "crop", value: selection, minValue: MIN_SLIDER_VALUE, maxValue: MAX_SLIDER_VALUE, onValue: setSelection, disabled: props.disabled }) }), jsxRuntimeExports.jsxs("div", { className: "rls-image-editor__actions", children: [props.children, jsxRuntimeExports.jsx("button", { className: "rls-image-editor__action", "rls-theme": "standard", onClick: onRestore, disabled: props.disabled, children: jsxRuntimeExports.jsx(RlsIcon, { value: "refresh" }) }), jsxRuntimeExports.jsx("button", { className: "rls-image-editor__action", "rls-theme": "success", onClick: onCropImage, disabled: props.disabled, children: jsxRuntimeExports.jsx(RlsIcon, { value: "checkmark-circle-out" }) })] })] }), jsxRuntimeExports.jsx("canvas", { ref: refPicture })] }));
|
|
5109
|
+
return (jsxRuntimeExports.jsxs("div", { className: "rls-image-editor", "rls-size": props.rlsSize, children: [jsxRuntimeExports.jsx("div", { ref: refBody, className: "rls-image-editor__body", children: jsxRuntimeExports.jsxs("div", { ref: refImage, className: "rls-image-editor__body__image", children: [jsxRuntimeExports.jsx("div", { ref: refSelection, className: "rls-image-editor__body__selection" }), jsxRuntimeExports.jsx("div", { ref: refOverlayTop, className: "rls-image-editor__body__overlay--top" }), jsxRuntimeExports.jsx("div", { ref: refOverlayRight, className: "rls-image-editor__body__overlay--right" }), jsxRuntimeExports.jsx("div", { ref: refOverlayBottom, className: "rls-image-editor__body__overlay--bottom" }), jsxRuntimeExports.jsx("div", { ref: refOverlayLeft, className: "rls-image-editor__body__overlay--left" }), jsxRuntimeExports.jsx("canvas", { ref: refCanvas })] }) }), jsxRuntimeExports.jsxs("div", { className: "rls-image-editor__footer", children: [jsxRuntimeExports.jsx("div", { className: "rls-image-editor__sliders", children: jsxRuntimeExports.jsx(RlsSlider, { prefixIcon: "crop", value: selection, minValue: MIN_SLIDER_VALUE, maxValue: MAX_SLIDER_VALUE, onValue: setSelection, disabled: props.disabled }) }), jsxRuntimeExports.jsxs("div", { className: "rls-image-editor__actions", children: [props.children, jsxRuntimeExports.jsx("button", { className: "rls-image-editor__action", "rls-theme": "standard", onClick: onRestore, disabled: props.disabled, children: jsxRuntimeExports.jsx(RlsIcon, { value: "refresh" }) }), jsxRuntimeExports.jsx("button", { className: "rls-image-editor__action", "rls-theme": "success", onClick: onCropImage, disabled: props.disabled, children: jsxRuntimeExports.jsx(RlsIcon, { value: "checkmark-circle-out" }) })] })] }), jsxRuntimeExports.jsx("canvas", { ref: refPicture })] }));
|
|
5110
5110
|
}
|
|
5111
5111
|
const RlsImageEditor = memo(RlsImageEditorComponent);
|
|
5112
5112
|
|
|
@@ -5196,11 +5196,11 @@ function RlsImageChooserComponent(props) {
|
|
|
5196
5196
|
setSrc(props.src);
|
|
5197
5197
|
}
|
|
5198
5198
|
}, [props.src]);
|
|
5199
|
-
return (jsxRuntimeExports.jsxs("div", { className: "rls-image-chooser", children: [jsxRuntimeExports.jsx("div", { className: "rls-image-chooser__avatar", onClick: controller.onImageChooser, children: src && jsxRuntimeExports.jsx("img", { src: src }) }), controller.RlsImageEditorChooser] }));
|
|
5199
|
+
return (jsxRuntimeExports.jsxs("div", { className: "rls-image-chooser", "rls-size": props.rlsSize, children: [jsxRuntimeExports.jsx("div", { className: "rls-image-chooser__avatar", onClick: controller.onImageChooser, children: src && jsxRuntimeExports.jsx("img", { src: src }) }), controller.RlsImageEditorChooser] }));
|
|
5200
5200
|
}
|
|
5201
5201
|
const RlsImageChooser = memo(RlsImageChooserComponent);
|
|
5202
5202
|
|
|
5203
|
-
function RlsLedColorComponent({ className, color, disabled: disabledProps, formControl, identifier, onValue, readOnly, rlsTheme, value: valueInitial }) {
|
|
5203
|
+
function RlsLedColorComponent({ className, color, disabled: disabledProps, formControl, identifier, rlsSize, onValue, readOnly, rlsTheme, value: valueInitial }) {
|
|
5204
5204
|
const [value, setValue] = useState(formControl?.value ?? valueInitial);
|
|
5205
5205
|
const [modalIsVisible, setModalIsVisible] = useState(false);
|
|
5206
5206
|
const [pickerKey, setPickerKey] = useState(0);
|
|
@@ -5236,11 +5236,11 @@ function RlsLedColorComponent({ className, color, disabled: disabledProps, formC
|
|
|
5236
5236
|
const onBackdrop = useCallback(() => {
|
|
5237
5237
|
setModalIsVisible(false);
|
|
5238
5238
|
}, []);
|
|
5239
|
-
return (jsxRuntimeExports.jsxs("div", { id: identifier, className: classNameLed, "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsx("button", { className: "rls-led-color__trigger", type: "button", disabled: disabled, onClick: onClickLed, children: jsxRuntimeExports.jsx(RlsLed, { color: ledColor, rlsTheme: rlsTheme }) }), jsxRuntimeExports.jsx(RlsModal, { className: "rls-modal-color", visible: modalIsVisible, rlsTheme: rlsTheme, onBackdrop: onBackdrop, children: jsxRuntimeExports.jsx(RlsPickerColor, { formControl: formControl, color: ledColor ?? color, disabled: disabled, onListener: onListener }, pickerKey) })] }));
|
|
5239
|
+
return (jsxRuntimeExports.jsxs("div", { id: identifier, className: classNameLed, "rls-size": rlsSize, "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsx("button", { className: "rls-led-color__trigger", type: "button", disabled: disabled, onClick: onClickLed, children: jsxRuntimeExports.jsx(RlsLed, { color: ledColor, rlsTheme: rlsTheme }) }), jsxRuntimeExports.jsx(RlsModal, { className: "rls-modal-color", visible: modalIsVisible, rlsSize: rlsSize, rlsTheme: rlsTheme, onBackdrop: onBackdrop, children: jsxRuntimeExports.jsx(RlsPickerColor, { formControl: formControl, color: ledColor ?? color, disabled: disabled, onListener: onListener }, pickerKey) })] }));
|
|
5240
5240
|
}
|
|
5241
5241
|
const RlsLedColor = memo(RlsLedColorComponent);
|
|
5242
5242
|
|
|
5243
|
-
function RlsModalSheetComponent({ autoclose, children, className, controller, onAutoClose, visible, rlsTheme }) {
|
|
5243
|
+
function RlsModalSheetComponent({ autoclose, children, className, controller, rlsSize, onAutoClose, visible, rlsTheme }) {
|
|
5244
5244
|
const classNameModal = renderClassStatus('rls-modal-sheet', { visible: controller?.visible ?? visible }, className);
|
|
5245
5245
|
const onClickBackdrop = useCallback(() => {
|
|
5246
5246
|
if (autoclose) {
|
|
@@ -5248,7 +5248,7 @@ function RlsModalSheetComponent({ autoclose, children, className, controller, on
|
|
|
5248
5248
|
}
|
|
5249
5249
|
onAutoClose?.();
|
|
5250
5250
|
}, [autoclose, controller, onAutoClose]);
|
|
5251
|
-
return ReactDOM.createPortal(jsxRuntimeExports.jsxs("div", { className: classNameModal, "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsx("div", { className: "rls-modal-sheet__component", children: children }), jsxRuntimeExports.jsx("div", { className: "rls-modal-sheet__backdrop", onClick: onClickBackdrop })] }), document.body);
|
|
5251
|
+
return ReactDOM.createPortal(jsxRuntimeExports.jsxs("div", { className: classNameModal, "rls-size": rlsSize, "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsx("div", { className: "rls-modal-sheet__component", children: children }), jsxRuntimeExports.jsx("div", { className: "rls-modal-sheet__backdrop", onClick: onClickBackdrop })] }), document.body);
|
|
5252
5252
|
}
|
|
5253
5253
|
const RlsModalSheet = memo(RlsModalSheetComponent);
|
|
5254
5254
|
|
|
@@ -5258,9 +5258,9 @@ let _id = 0;
|
|
|
5258
5258
|
function generateId() {
|
|
5259
5259
|
return `rls-notification-${++_id}`;
|
|
5260
5260
|
}
|
|
5261
|
-
function RlsNotification({ content, icon, onClose, rlsTheme, title, visible }) {
|
|
5261
|
+
function RlsNotification({ content, icon, rlsSize, onClose, rlsTheme, title, visible }) {
|
|
5262
5262
|
const className = renderClassStatus('rls-notification', { visible });
|
|
5263
|
-
return (jsxRuntimeExports.jsxs("div", { className: className, "rls-theme": rlsTheme, children: [icon && (jsxRuntimeExports.jsx("div", { className: "rls-notification__avatar", children: jsxRuntimeExports.jsx(RlsIcon, { value: icon }) })), jsxRuntimeExports.jsxs("div", { className: "rls-notification__component", children: [jsxRuntimeExports.jsxs("div", { className: "rls-notification__header", children: [jsxRuntimeExports.jsx("div", { className: "rls-notification__title", children: title }), jsxRuntimeExports.jsx("button", { onClick: onClose, children: jsxRuntimeExports.jsx(RlsIcon, { value: "close" }) })] }), jsxRuntimeExports.jsx("div", { className: "rls-notification__content", children: content })] })] }));
|
|
5263
|
+
return (jsxRuntimeExports.jsxs("div", { className: className, "rls-size": rlsSize, "rls-theme": rlsTheme, children: [icon && (jsxRuntimeExports.jsx("div", { className: "rls-notification__avatar", children: jsxRuntimeExports.jsx(RlsIcon, { value: icon }) })), jsxRuntimeExports.jsxs("div", { className: "rls-notification__component", children: [jsxRuntimeExports.jsxs("div", { className: "rls-notification__header", children: [jsxRuntimeExports.jsx("div", { className: "rls-notification__title", children: title }), jsxRuntimeExports.jsx("button", { onClick: onClose, children: jsxRuntimeExports.jsx(RlsIcon, { value: "close" }) })] }), jsxRuntimeExports.jsx("div", { className: "rls-notification__content", children: content })] })] }));
|
|
5264
5264
|
}
|
|
5265
5265
|
function useNotifications() {
|
|
5266
5266
|
const [notifications, setNotifications] = useState([]);
|
|
@@ -5288,11 +5288,11 @@ function useNotifications() {
|
|
|
5288
5288
|
}, DURATION_ANIMATION$1);
|
|
5289
5289
|
}, []);
|
|
5290
5290
|
const RlsNotifications = useMemo(() => {
|
|
5291
|
-
return function RlsNotifications(props) {
|
|
5291
|
+
return function RlsNotifications({ rlsSize, ...props }) {
|
|
5292
5292
|
const className = renderClassStatus('rls-notifications', {
|
|
5293
5293
|
visible: notificationsRef.current.length > 0
|
|
5294
5294
|
});
|
|
5295
|
-
return ReactDOM.createPortal(jsxRuntimeExports.jsx("div", { className: className, ...props, children: notificationsRef.current.map((notification) => (jsxRuntimeExports.jsx(RlsNotification, { ...notification.config, visible: notification.visible, onClose: () => remove(notification.id) }, notification.id))) }), document.body);
|
|
5295
|
+
return ReactDOM.createPortal(jsxRuntimeExports.jsx("div", { className: className, "rls-size": rlsSize, ...props, children: notificationsRef.current.map((notification) => (jsxRuntimeExports.jsx(RlsNotification, { ...notification.config, visible: notification.visible, onClose: () => remove(notification.id) }, notification.id))) }), document.body);
|
|
5296
5296
|
};
|
|
5297
5297
|
}, [remove]);
|
|
5298
5298
|
const notify = useCallback((config) => {
|
|
@@ -5335,9 +5335,9 @@ function calculateDuration({ length }) {
|
|
|
5335
5335
|
}
|
|
5336
5336
|
return duration + DURATION_RESET;
|
|
5337
5337
|
}
|
|
5338
|
-
function RlsSnackbarComponent({ content, onClose, icon, rlsTheme, title, visible }) {
|
|
5338
|
+
function RlsSnackbarComponent({ content, onClose, icon, rlsSize, rlsTheme, title, visible }) {
|
|
5339
5339
|
const className = renderClassStatus('rls-snackbar', { visible });
|
|
5340
|
-
return (jsxRuntimeExports.jsxs("div", { className: className, "rls-theme": rlsTheme, children: [icon && (jsxRuntimeExports.jsx("div", { className: "rls-snackbar__avatar", children: jsxRuntimeExports.jsx(RlsIcon, { value: icon }) })), jsxRuntimeExports.jsxs("div", { className: "rls-snackbar__component", children: [jsxRuntimeExports.jsxs("div", { className: "rls-snackbar__header", children: [jsxRuntimeExports.jsx("div", { className: "rls-snackbar__title", children: title }), jsxRuntimeExports.jsx("button", { onClick: onClose, children: jsxRuntimeExports.jsx(RlsIcon, { value: "close" }) })] }), jsxRuntimeExports.jsx("div", { className: "rls-snackbar__content", children: content })] })] }));
|
|
5340
|
+
return (jsxRuntimeExports.jsxs("div", { className: className, "rls-size": rlsSize, "rls-theme": rlsTheme, children: [icon && (jsxRuntimeExports.jsx("div", { className: "rls-snackbar__avatar", children: jsxRuntimeExports.jsx(RlsIcon, { value: icon }) })), jsxRuntimeExports.jsxs("div", { className: "rls-snackbar__component", children: [jsxRuntimeExports.jsxs("div", { className: "rls-snackbar__header", children: [jsxRuntimeExports.jsx("div", { className: "rls-snackbar__title", children: title }), jsxRuntimeExports.jsx("button", { onClick: onClose, children: jsxRuntimeExports.jsx(RlsIcon, { value: "close" }) })] }), jsxRuntimeExports.jsx("div", { className: "rls-snackbar__content", children: content })] })] }));
|
|
5341
5341
|
}
|
|
5342
5342
|
const RlsSnackbar = memo(RlsSnackbarComponent);
|
|
5343
5343
|
const RlsSnackbarNode = RlsSnackbar;
|