infinity-forge 2.4.1 → 2.4.2
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/sites/components/default-pages/blog/components/blog-item/index.d.ts +1 -1
- package/dist/sites/components/default-pages/blog/components/blog-item/index.js +3 -3
- package/dist/sites/components/default-pages/blog/components/blog-item/intefaces.d.ts +1 -1
- package/dist/sites/components/default-pages/blog/components/blog-item/share/index.js +2 -2
- package/dist/sites/components/default-pages/blog/components/featured-blog/featured-blog-item/index.d.ts +1 -1
- package/dist/sites/components/default-pages/blog/components/featured-blog/featured-blog-item/index.js +2 -2
- package/dist/sites/components/default-pages/blog/components/featured-blog/index.d.ts +1 -1
- package/dist/sites/components/default-pages/blog/components/featured-blog/index.js +2 -2
- package/dist/sites/components/default-pages/blog/components/featured-blog/interfaces.d.ts +2 -2
- package/dist/sites/components/default-pages/blog/components/side-box-categories/index.d.ts +2 -2
- package/dist/sites/components/default-pages/blog/components/side-box-categories/index.js +2 -2
- package/dist/sites/components/default-pages/blog/components/side-box-categories/interfaces.d.ts +1 -1
- package/dist/sites/components/default-pages/blog/components/side-box-newsletter/index.d.ts +1 -1
- package/dist/sites/components/default-pages/blog/components/side-box-newsletter/index.js +3 -3
- package/dist/sites/components/default-pages/blog/components/title-blog/index.js +2 -2
- package/dist/system/domain/protocols/http/errors/http-errors/index.d.ts +7 -7
- package/dist/system/domain/protocols/http/errors/http-errors/index.js +7 -7
- package/dist/system/domain/protocols/http/errors/system-errors-model/index.d.ts +1 -1
- package/dist/system/domain/protocols/http/errors/system-errors-model/index.js +1 -1
- package/dist/system/domain/use-cases/auth/admin/index.js +0 -18
- package/dist/system/presentation/components/data/avatar/index.js +0 -59
- package/dist/system/presentation/components/data/buttons/index.d.ts +0 -1
- package/dist/system/presentation/components/data/buttons/index.js +0 -18
- package/dist/system/presentation/components/data/buttons/sidebar-button/index.js +3 -3
- package/dist/system/presentation/components/data/chat/card-message/index.d.ts +1 -1
- package/dist/system/presentation/components/data/chat/card-message/index.js +3 -3
- package/dist/system/presentation/components/data/chat/index.d.ts +0 -2
- package/dist/system/presentation/components/data/chat/index.js +0 -38
- package/dist/system/presentation/components/data/chat/interfaces.d.ts +0 -8
- package/dist/system/presentation/components/data/chat/loader/index.js +1 -1
- package/dist/system/presentation/components/data/detail-card/component.d.ts +0 -2
- package/dist/system/presentation/components/data/detail-card/component.js +0 -42
- package/dist/system/presentation/components/data/detail-card/index.d.ts +0 -2
- package/dist/system/presentation/components/data/detail-card/index.js +0 -19
- package/dist/system/presentation/components/data/detail-card/interfaces.d.ts +0 -19
- package/dist/system/presentation/components/data/highlight-icon/index.d.ts +0 -2
- package/dist/system/presentation/components/data/highlight-icon/index.js +0 -40
- package/dist/system/presentation/components/data/highlight-icon/interfaces.d.ts +0 -8
- package/dist/system/presentation/components/data/highlight-text/index.d.ts +0 -2
- package/dist/system/presentation/components/data/highlight-text/index.js +0 -43
- package/dist/system/presentation/components/data/input-search/index.d.ts +0 -2
- package/dist/system/presentation/components/data/input-search/index.js +0 -39
- package/dist/system/presentation/components/data/logo/index.js +0 -34
- package/dist/system/presentation/components/data/menu/component.js +0 -17
- package/dist/system/presentation/components/data/menu/components/index.d.ts +1 -1
- package/dist/system/presentation/components/data/menu/components/index.js +1 -1
- package/dist/system/presentation/components/data/menu/components/menu-item/index.js +3 -3
- package/dist/system/presentation/components/data/menu/index.d.ts +0 -2
- package/dist/system/presentation/components/data/menu/index.js +0 -19
- package/dist/system/presentation/components/data/menu/modes/collapsed-menu/index.js +5 -5
- package/dist/system/presentation/components/data/menu/modes/collapsed-menu/styles.js +1 -1
- package/dist/system/presentation/components/data/menu/modes/index.d.ts +2 -2
- package/dist/system/presentation/components/data/menu/modes/index.js +2 -2
- package/dist/system/presentation/components/data/menu/modes/opened/index.js +3 -3
- package/dist/system/presentation/components/data/menu/modes/opened/styles.js +1 -1
- package/dist/system/presentation/components/data/notifications/card/index.d.ts +1 -1
- package/dist/system/presentation/components/data/notifications/card/index.js +2 -2
- package/dist/system/presentation/components/data/notifications/index.js +0 -155
- package/dist/system/presentation/components/data/page-wrapper/index.d.ts +0 -2
- package/dist/system/presentation/components/data/page-wrapper/index.js +0 -35
- package/dist/system/presentation/components/data/page-wrapper/interfaces.d.ts +0 -7
- package/dist/system/presentation/components/data/popover/index.d.ts +0 -2
- package/dist/system/presentation/components/data/profile-infos/index.d.ts +0 -2
- package/dist/system/presentation/components/data/profile-infos/index.js +0 -48
- package/dist/system/presentation/components/data/profile-infos/interfaces.d.ts +0 -6
- package/dist/system/presentation/components/data/profile-infos/profile/index.d.ts +1 -1
- package/dist/system/presentation/components/data/profile-infos/profile/index.js +3 -3
- package/dist/system/presentation/components/data/select-workspace/index.d.ts +0 -4
- package/dist/system/presentation/components/data/select-workspace/index.js +0 -69
- package/dist/system/presentation/components/data/tab/component.d.ts +0 -2
- package/dist/system/presentation/components/data/tab/component.js +0 -67
- package/dist/system/presentation/components/data/tab/index.d.ts +0 -2
- package/dist/system/presentation/components/data/tab/index.js +0 -19
- package/dist/system/presentation/components/data/tab/interfaces.d.ts +0 -29
- package/dist/system/presentation/components/data/tab/tab-item/index.d.ts +1 -1
- package/dist/system/presentation/components/data/tab/tab-item/index.js +2 -2
- package/dist/system/presentation/components/data/tab/tab-item/styles.d.ts +1 -1
- package/dist/system/presentation/components/layout/header/components/index.d.ts +2 -2
- package/dist/system/presentation/components/layout/header/components/index.js +2 -2
- package/dist/system/presentation/components/layout/header/components/menu-right/index.d.ts +1 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/index.js +4 -4
- package/dist/system/presentation/components/layout/header/components/menu-right/messages/index.js +36 -0
- package/dist/system/presentation/components/layout/header/components/menu-right/profile/index.js +38 -0
- package/dist/system/presentation/components/layout/header/components/menu-right/settings/index.js +42 -0
- package/dist/system/presentation/components/layout/header/components/search-modal/index.js +4 -4
- package/dist/system/presentation/components/layout/header/index.d.ts +0 -2
- package/dist/system/presentation/components/layout/header/index.js +0 -25
- package/dist/system/presentation/components/layout/header/version-01/index.d.ts +1 -1
- package/dist/system/presentation/components/layout/header/version-01/index.js +4 -4
- package/dist/system/presentation/components/pages/menus/index.d.ts +0 -1
- package/dist/system/presentation/components/pages/menus/index.js +0 -18
- package/dist/system/presentation/components/pages/menus/page.js +0 -40
- package/dist/system/presentation/components/pages/menus/table/columns.d.ts +2 -2
- package/dist/system/presentation/components/pages/menus/table/columns.js +1 -1
- package/dist/system/presentation/components/pages/menus/table/create.d.ts +2 -2
- package/dist/system/presentation/components/pages/menus/table/create.js +2 -2
- package/dist/system/presentation/components/pages/menus/table/delete.js +2 -2
- package/dist/system/presentation/components/pages/menus/table/edit.d.ts +2 -2
- package/dist/system/presentation/components/pages/menus/table/edit.js +2 -2
- package/dist/system/presentation/components/pages/menus/table/icon/index.js +1 -1
- package/dist/system/presentation/components/pages/menus/table/index.d.ts +4 -4
- package/dist/system/presentation/components/pages/menus/table/index.js +4 -4
- package/dist/system/presentation/components/pages/users/index.d.ts +0 -1
- package/dist/system/presentation/components/pages/users/index.js +0 -18
- package/dist/system/presentation/components/pages/users/page.js +0 -40
- package/dist/system/presentation/components/pages/users/table/columns.d.ts +2 -2
- package/dist/system/presentation/components/pages/users/table/create.d.ts +2 -2
- package/dist/system/presentation/components/pages/users/table/create.js +2 -2
- package/dist/system/presentation/components/pages/users/table/delete.js +2 -2
- package/dist/system/presentation/components/pages/users/table/edit.d.ts +2 -2
- package/dist/system/presentation/components/pages/users/table/edit.js +2 -2
- package/dist/system/presentation/components/pages/users/table/index.d.ts +4 -4
- package/dist/system/presentation/components/pages/users/table/index.js +4 -4
- package/dist/system/presentation/context/auth/components/index.d.ts +0 -2
- package/dist/system/presentation/context/auth/components/index.js +0 -19
- package/dist/system/presentation/context/auth/components/login/form-login/index.js +2 -2
- package/dist/system/presentation/context/auth/components/login/index.js +4 -4
- package/dist/system/presentation/context/auth/components/private-page/index.d.ts +1 -1
- package/dist/system/presentation/context/auth/components/private-page/index.js +3 -3
- package/dist/system/presentation/hooks/notifications/use-load-all/index.d.ts +0 -1
- package/dist/system/presentation/hooks/notifications/use-load-all/index.js +0 -63
- package/dist/system/presentation/hooks/notifications/use-load-no-read/index.d.ts +0 -2
- package/dist/system/presentation/hooks/notifications/use-load-no-read/index.js +0 -60
- package/dist/system/presentation/hooks/ui/use-table/component.d.ts +0 -8
- package/dist/system/presentation/hooks/ui/use-table/component.js +0 -26
- package/dist/system/presentation/hooks/ui/use-table/components/index.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/index.js +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/index.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/index.js +10 -10
- package/dist/system/presentation/hooks/ui/use-table/components/table/interfaces.d.ts +2 -2
- package/dist/system/presentation/hooks/ui/use-table/index.d.ts +0 -4
- package/dist/system/presentation/hooks/ui/use-table/index.js +0 -21
- package/dist/system/presentation/hooks/ui/use-table/interfaces.d.ts +0 -92
- package/dist/system/presentation/hooks/ui/use-table/query/get-query-arguments-table.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/query/hook.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/query/hook.js +1 -1
- package/dist/system/presentation/hooks/ui/use-table/query/index.d.ts +2 -2
- package/dist/system/presentation/hooks/ui/use-table/query/index.js +2 -2
- package/dist/ui/components/carousel/carousel-lib/components-shared/get-changed-params.js +0 -51
- package/dist/ui/components/carousel/carousel-lib/components-shared/get-element-params.js +0 -148
- package/dist/ui/components/carousel/carousel-lib/components-shared/get-params.js +0 -61
- package/dist/ui/components/carousel/carousel-lib/components-shared/mount-swiper.js +0 -24
- package/dist/ui/components/carousel/carousel-lib/components-shared/update-swiper.js +0 -208
- package/dist/ui/components/carousel/carousel-lib/core/breakpoints/getBreakpoint.js +1 -1
- package/dist/ui/components/carousel/carousel-lib/core/breakpoints/index.d.ts +2 -2
- package/dist/ui/components/carousel/carousel-lib/core/breakpoints/index.js +2 -2
- package/dist/ui/components/carousel/carousel-lib/core/breakpoints/setBreakpoint.js +1 -1
- package/dist/ui/components/carousel/carousel-lib/core/classes/index.d.ts +2 -2
- package/dist/ui/components/carousel/carousel-lib/core/classes/index.js +2 -2
- package/dist/ui/components/carousel/carousel-lib/core/core.js +0 -654
- package/dist/ui/components/carousel/carousel-lib/core/events/index.js +9 -9
- package/dist/ui/components/carousel/carousel-lib/core/events/onLoad.js +1 -1
- package/dist/ui/components/carousel/carousel-lib/core/events/onTouchEnd.js +1 -1
- package/dist/ui/components/carousel/carousel-lib/core/events/onTouchMove.js +2 -2
- package/dist/ui/components/carousel/carousel-lib/core/events/onTouchStart.js +3 -3
- package/dist/ui/components/carousel/carousel-lib/core/grab-cursor/index.d.ts +2 -2
- package/dist/ui/components/carousel/carousel-lib/core/grab-cursor/index.js +2 -2
- package/dist/ui/components/carousel/carousel-lib/core/loop/index.d.ts +3 -3
- package/dist/ui/components/carousel/carousel-lib/core/loop/index.js +3 -3
- package/dist/ui/components/carousel/carousel-lib/core/loop/loopCreate.js +1 -1
- package/dist/ui/components/carousel/carousel-lib/core/loop/loopFix.js +1 -1
- package/dist/ui/components/carousel/carousel-lib/core/moduleExtendParams.js +0 -42
- package/dist/ui/components/carousel/carousel-lib/core/modules/observer/observer.js +2 -2
- package/dist/ui/components/carousel/carousel-lib/core/modules/resize/resize.js +1 -1
- package/dist/ui/components/carousel/carousel-lib/core/slide/index.d.ts +7 -7
- package/dist/ui/components/carousel/carousel-lib/core/slide/index.js +7 -7
- package/dist/ui/components/carousel/carousel-lib/core/slide/slideTo.js +1 -1
- package/dist/ui/components/carousel/carousel-lib/core/slide/slideToClickedSlide.js +1 -1
- package/dist/ui/components/carousel/carousel-lib/core/transition/index.d.ts +3 -3
- package/dist/ui/components/carousel/carousel-lib/core/transition/index.js +3 -3
- package/dist/ui/components/carousel/carousel-lib/core/transition/transitionEnd.js +1 -1
- package/dist/ui/components/carousel/carousel-lib/core/transition/transitionStart.js +1 -1
- package/dist/ui/components/carousel/carousel-lib/core/translate/getTranslate.js +1 -1
- package/dist/ui/components/carousel/carousel-lib/core/translate/index.d.ts +5 -5
- package/dist/ui/components/carousel/carousel-lib/core/translate/index.js +5 -5
- package/dist/ui/components/carousel/carousel-lib/core/translate/translateTo.js +1 -1
- package/dist/ui/components/carousel/carousel-lib/core/update/index.d.ts +9 -9
- package/dist/ui/components/carousel/carousel-lib/core/update/index.js +9 -9
- package/dist/ui/components/carousel/carousel-lib/core/update/updateActiveIndex.js +1 -1
- package/dist/ui/components/carousel/carousel-lib/core/update/updateSize.js +1 -1
- package/dist/ui/components/carousel/carousel-lib/core/update/updateSlides.js +1 -1
- package/dist/ui/components/carousel/carousel-lib/core/update/updateSlidesClasses.js +1 -1
- package/dist/ui/components/carousel/carousel-lib/modules/autoplay.js +0 -336
- package/dist/ui/components/carousel/carousel-lib/modules/effect-fade.js +0 -63
- package/dist/ui/components/carousel/carousel-lib/modules/free-mode.js +0 -247
- package/dist/ui/components/carousel/carousel-lib/modules/index.d.ts +0 -6
- package/dist/ui/components/carousel/carousel-lib/modules/index.js +0 -23
- package/dist/ui/components/carousel/carousel-lib/modules/navigation.js +0 -223
- package/dist/ui/components/carousel/carousel-lib/modules/pagination.js +0 -514
- package/dist/ui/components/carousel/carousel-lib/modules/virtual.js +0 -379
- package/dist/ui/components/carousel/carousel-lib/react/swiper-slide.js +0 -88
- package/dist/ui/components/carousel/carousel-lib/react/swiper.js +0 -210
- package/dist/ui/components/carousel/carousel-lib/shared/create-element-if-not-defined.js +0 -22
- package/dist/ui/components/carousel/carousel-lib/shared/create-shadow.js +0 -15
- package/dist/ui/components/carousel/carousel-lib/shared/effect-target.js +0 -13
- package/dist/ui/components/carousel/carousel-lib/shared/effect-virtual-transition-end.js +0 -47
- package/dist/ui/components/carousel/carousel-lib/shared/get-browser.js +0 -43
- package/dist/ui/components/carousel/carousel-lib/shared/get-device.js +0 -69
- package/dist/ui/components/carousel/carousel-lib/shared/get-support.js +0 -25
- package/dist/ui/components/carousel/carousel-lib/shared/utils.js +0 -372
- package/dist/ui/components/carousel/carousel-lib/ssr-window/document.js +0 -65
- package/dist/ui/components/carousel/carousel-lib/ssr-window/ssr-window.d.ts +0 -4
- package/dist/ui/components/carousel/carousel-lib/ssr-window/ssr-window.js +0 -15
- package/dist/ui/components/carousel/carousel-lib/ssr-window/window.js +0 -71
- package/dist/ui/components/carousel/carousel-lib/types/index.d.ts +0 -5
- package/dist/ui/components/carousel/carousel-lib/types/index.js +0 -27
- package/dist/ui/components/carousel/carousel-lib/types/swiper-events.d.ts +0 -162
- package/dist/ui/components/form/handler/custom-submit/index.d.ts +0 -17
- package/dist/ui/components/form/handler/custom-submit/index.js +0 -25
- package/dist/ui/components/form/handler/dynamic_form_handler/component.d.ts +0 -2
- package/dist/ui/components/form/handler/dynamic_form_handler/component.js +0 -117
- package/dist/ui/components/form/handler/dynamic_form_handler/index.d.ts +0 -2
- package/dist/ui/components/form/handler/dynamic_form_handler/index.js +0 -19
- package/dist/ui/components/form/handler/dynamic_form_handler/interfaces.d.ts +0 -28
- package/dist/ui/components/form/handler/form-handler/generate-schemas.js +0 -111
- package/dist/ui/components/form/handler/form-handler/index.d.ts +0 -2
- package/dist/ui/components/form/handler/form-handler/index.js +0 -241
- package/dist/ui/components/form/handler/form-handler/use-schemas.d.ts +0 -2
- package/dist/ui/components/form/handler/form-handler/use-schemas.js +0 -115
- package/dist/ui/components/form/handler/form-handler/use-send-file.d.ts +0 -5
- package/dist/ui/components/form/handler/form-handler/use-send-file.js +0 -209
- package/dist/ui/components/form/handler/i18n/capture-i18n-errors/index.d.ts +1 -1
- package/dist/ui/components/form/handler/i18n/index.d.ts +0 -2
- package/dist/ui/components/form/handler/i18n/index.js +4 -4
- package/dist/ui/components/form/input-cep/use-cep/hook.d.ts +2 -2
- package/dist/ui/components/form/input-cep/use-cep/hook.js +1 -1
- package/dist/ui/components/form/input-cep/use-cep/index.d.ts +2 -2
- package/dist/ui/components/form/input-cep/use-cep/index.js +2 -2
- package/dist/ui/components/form/input-cep/use-cep/providers/ibge/hook.d.ts +1 -1
- package/dist/ui/components/form/input-cep/use-cep/providers/ibge/hook.js +1 -1
- package/dist/ui/components/form/input-cep/use-cep/providers/ibge/index.d.ts +3 -3
- package/dist/ui/components/form/input-cep/use-cep/providers/ibge/index.js +3 -3
- package/dist/ui/components/form/input-cep/use-cep/providers/index.d.ts +1 -1
- package/dist/ui/components/form/input-cep/use-cep/providers/index.js +1 -1
- package/dist/ui/components/form/input-control/error/index.js +1 -1
- package/dist/ui/components/form/input-control/label/index.js +1 -1
- package/dist/ui/components/form/input-control/loader-input/index.js +2 -2
- package/dist/ui/components/form/input-currency/components/CurrencyInput.js +1 -1
- package/dist/ui/components/form/input-currency/components/index.d.ts +1 -1
- package/dist/ui/components/form/input-currency/components/index.js +1 -1
- package/dist/ui/components/form/input-currency/components/utils/cleanValue.d.ts +1 -1
- package/dist/ui/components/form/input-currency/components/utils/cleanValue.js +4 -4
- package/dist/ui/components/form/input-currency/components/utils/formatValue.d.ts +1 -1
- package/dist/ui/components/form/input-currency/components/utils/formatValue.js +2 -2
- package/dist/ui/components/form/input-currency/components/utils/getLocaleConfig.d.ts +1 -1
- package/dist/ui/components/form/input-currency/components/utils/getSuffix.js +1 -1
- package/dist/ui/components/form/input-currency/components/utils/index.d.ts +8 -8
- package/dist/ui/components/form/input-currency/components/utils/index.js +8 -8
- package/dist/ui/components/form/input-currency/components/utils/parseAbbrValue.js +1 -1
- package/dist/ui/components/form/input-currency/components/utils/removeInvalidChars.js +1 -1
- package/dist/ui/components/form/input-currency/components/utils/removeSeparators.js +1 -1
- package/dist/ui/components/form/input-date-picker/calendar/calendar-header/index.d.ts +1 -1
- package/dist/ui/components/form/input-date-picker/calendar/calendar-header/index.js +3 -3
- package/dist/ui/components/form/input-date-picker/calendar/days/index.d.ts +1 -1
- package/dist/ui/components/form/input-date-picker/calendar/days/index.js +2 -2
- package/dist/ui/components/form/input-date-picker/calendar/index.d.ts +1 -1
- package/dist/ui/components/form/input-date-picker/calendar/index.js +4 -4
- package/dist/ui/components/form/input-date-picker/calendar/interface.d.ts +2 -2
- package/dist/ui/components/form/input-date-picker/calendar/months/index.d.ts +1 -1
- package/dist/ui/components/form/input-date-picker/calendar/months/index.js +2 -2
- package/dist/ui/components/form/input-date-picker/calendar/styles.d.ts +1 -1
- package/dist/ui/components/form/input-date-picker/mock/index.d.ts +1 -1
- package/dist/ui/components/form/input-date-picker/mock/index.js +1 -1
- package/dist/ui/components/form/input-file/hooks/index.d.ts +4 -4
- package/dist/ui/components/form/input-file/hooks/index.js +4 -4
- package/dist/ui/components/form/input-file/hooks/use-components-file.d.ts +2 -2
- package/dist/ui/components/form/input-file/hooks/use-components-file.js +2 -2
- package/dist/ui/components/form/input-file/hooks/use-file-elements.d.ts +1 -1
- package/dist/ui/components/form/input-file/hooks/use-file-elements.js +2 -2
- package/dist/ui/components/form/input-file/hooks/use-file.d.ts +2 -2
- package/dist/ui/components/form/input-file/hooks/use-file.js +2 -2
- package/dist/ui/components/form/input-file/hooks/use-rendered-file.d.ts +1 -1
- package/dist/ui/components/form/input-file/hooks/use-rendered-file.js +1 -1
- package/dist/ui/components/form/input-file/render-files/component.d.ts +1 -1
- package/dist/ui/components/form/input-file/render-files/component.js +2 -2
- package/dist/ui/components/form/input-file/render-files/file-item/button-upload-image-mobile/index.d.ts +1 -1
- package/dist/ui/components/form/input-file/render-files/file-item/button-upload-image-mobile/index.js +1 -1
- package/dist/ui/components/form/input-file/render-files/file-item/index.d.ts +2 -2
- package/dist/ui/components/form/input-file/render-files/file-item/index.js +3 -3
- package/dist/ui/components/form/input-file/render-files/index.d.ts +3 -3
- package/dist/ui/components/form/input-file/render-files/index.js +3 -3
- package/dist/ui/components/form/input-file/render-files/interfaces.d.ts +2 -2
- package/dist/ui/components/form/input-mask/lib/core/errors/SyntheticChangeError.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/core/hooks/useInput.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/core/hooks/useInput.js +2 -2
- package/dist/ui/components/form/input-mask/lib/core/index.d.ts +5 -5
- package/dist/ui/components/form/input-mask/lib/core/index.js +4 -4
- package/dist/ui/components/form/input-mask/lib/core/utils/setInputAttributes.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/mask/InputMask.d.ts +2 -2
- package/dist/ui/components/form/input-mask/lib/mask/InputMask.js +2 -2
- package/dist/ui/components/form/input-mask/lib/mask/index.d.ts +5 -5
- package/dist/ui/components/form/input-mask/lib/mask/index.js +3 -3
- package/dist/ui/components/form/input-mask/lib/mask/types.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/mask/useMask.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/mask/useMask.js +7 -7
- package/dist/ui/components/form/input-mask/lib/mask/utils/filter.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/mask/utils/format.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/mask/utils/formatToParts.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/mask/utils/formatToReplacementObject.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/mask/utils/resolveDetail.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/mask/utils/resolveDetail.js +3 -3
- package/dist/ui/components/form/input-mask/lib/mask/utils/resolveSelection.d.ts +18 -0
- package/dist/ui/components/form/input-mask/lib/mask/utils/unformat.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/mask/utils/validate.d.ts +13 -0
- package/dist/ui/components/form/input-mask/lib/mask/utils.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/mask/utils.js +5 -5
- package/dist/ui/components/form/input-mask/lib/number-format/InputNumberFormat.d.ts +2 -2
- package/dist/ui/components/form/input-mask/lib/number-format/InputNumberFormat.js +2 -2
- package/dist/ui/components/form/input-mask/lib/number-format/index.d.ts +4 -4
- package/dist/ui/components/form/input-mask/lib/number-format/index.js +2 -2
- package/dist/ui/components/form/input-mask/lib/number-format/types.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/number-format/useNumberFormat.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/number-format/useNumberFormat.js +6 -6
- package/dist/ui/components/form/input-mask/lib/number-format/utils/localizeValues.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/number-format/utils/resolveDetail.d.ts +2 -2
- package/dist/ui/components/form/input-mask/lib/number-format/utils/resolveDetail.js +1 -1
- package/dist/ui/components/form/input-mask/lib/number-format/utils/resolveMinimumFractionDigits.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/number-format/utils/resolveOptions.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/number-format/utils/resolveSelection.d.ts +24 -0
- package/dist/ui/components/form/input-seo/input-meta-image/index.d.ts +1 -1
- package/dist/ui/components/form/input-seo/input-meta-image/index.js +2 -2
- package/dist/ui/components/menu-mobile/components/nav-links/index.d.ts +1 -1
- package/dist/ui/components/menu-mobile/components/nav-links/index.js +3 -3
- package/dist/ui/components/menu-mobile/components/nav-links/interfaces.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { InputAttributes } from '../types
|
|
1
|
+
import type { InputAttributes } from '../types';
|
|
2
2
|
export default function setInputAttributes(inputElement: HTMLInputElement, { value, selectionStart, selectionEnd }: Partial<InputAttributes>): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { MaskProps } from './types
|
|
3
|
-
import type { InputComponent, InputComponentProps } from '../core
|
|
2
|
+
import type { MaskProps } from './types';
|
|
3
|
+
import type { InputComponent, InputComponentProps } from '../core';
|
|
4
4
|
export type InputMaskProps<C extends React.ComponentType | undefined = undefined> = MaskProps & InputComponentProps<C>;
|
|
5
5
|
declare const InputMask: InputComponent<MaskProps>;
|
|
6
6
|
export default InputMask;
|
|
@@ -27,8 +27,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
27
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
28
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
29
29
|
var react_1 = require("react");
|
|
30
|
-
var core_1 = require("../core
|
|
31
|
-
var useMask_1 = __importDefault(require("./useMask
|
|
30
|
+
var core_1 = require("../core");
|
|
31
|
+
var useMask_1 = __importDefault(require("./useMask"));
|
|
32
32
|
function ForwardedInputMask(_a, forwardedInputRef) {
|
|
33
33
|
var Component = _a.component, mask = _a.mask, replacement = _a.replacement, showMask = _a.showMask, separate = _a.separate, track = _a.track, modify = _a.modify, onMask = _a.onMask, props = __rest(_a, ["component", "mask", "replacement", "showMask", "separate", "track", "modify", "onMask"]);
|
|
34
34
|
var inputRef = (0, useMask_1.default)({ mask: mask, replacement: replacement, showMask: showMask, separate: separate, track: track, modify: modify, onMask: onMask });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { default as InputMask } from './InputMask
|
|
2
|
-
export { default as useMask } from './useMask
|
|
3
|
-
export * from './utils
|
|
4
|
-
export type { InputMaskProps } from './InputMask
|
|
5
|
-
export type { MaskProps, Replacement, TrackParam, Track, ModifiedData, Modify, MaskEvent, MaskEventDetail, MaskEventHandler, } from './types
|
|
1
|
+
export { default as InputMask } from './InputMask';
|
|
2
|
+
export { default as useMask } from './useMask';
|
|
3
|
+
export * from './utils';
|
|
4
|
+
export type { InputMaskProps } from './InputMask';
|
|
5
|
+
export type { MaskProps, Replacement, TrackParam, Track, ModifiedData, Modify, MaskEvent, MaskEventDetail, MaskEventHandler, } from './types';
|
|
@@ -18,9 +18,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
18
18
|
};
|
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
20
|
exports.useMask = exports.InputMask = void 0;
|
|
21
|
-
var InputMask_1 = require("./InputMask
|
|
21
|
+
var InputMask_1 = require("./InputMask");
|
|
22
22
|
Object.defineProperty(exports, "InputMask", { enumerable: true, get: function () { return __importDefault(InputMask_1).default; } });
|
|
23
|
-
var useMask_1 = require("./useMask
|
|
23
|
+
var useMask_1 = require("./useMask");
|
|
24
24
|
Object.defineProperty(exports, "useMask", { enumerable: true, get: function () { return __importDefault(useMask_1).default; } });
|
|
25
|
-
__exportStar(require("./utils
|
|
25
|
+
__exportStar(require("./utils"), exports);
|
|
26
26
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { MaskProps } from './types
|
|
2
|
+
import type { MaskProps } from './types';
|
|
3
3
|
export default function useMask({ mask, replacement, showMask, separate, track, modify, onMask, }?: MaskProps): React.MutableRefObject<HTMLInputElement | null>;
|
|
@@ -15,13 +15,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
var react_1 = require("react");
|
|
18
|
-
var core_1 = require("../core
|
|
19
|
-
var filter_1 = __importDefault(require("./utils/filter
|
|
20
|
-
var formatToReplacementObject_1 = __importDefault(require("./utils/formatToReplacementObject
|
|
21
|
-
var resolveDetail_1 = __importDefault(require("./utils/resolveDetail
|
|
22
|
-
var resolveSelection_1 = __importDefault(require("./utils/resolveSelection
|
|
23
|
-
var unformat_1 = __importDefault(require("./utils/unformat
|
|
24
|
-
var validate_1 = __importDefault(require("./utils/validate
|
|
18
|
+
var core_1 = require("../core");
|
|
19
|
+
var filter_1 = __importDefault(require("./utils/filter"));
|
|
20
|
+
var formatToReplacementObject_1 = __importDefault(require("./utils/formatToReplacementObject"));
|
|
21
|
+
var resolveDetail_1 = __importDefault(require("./utils/resolveDetail"));
|
|
22
|
+
var resolveSelection_1 = __importDefault(require("./utils/resolveSelection"));
|
|
23
|
+
var unformat_1 = __importDefault(require("./utils/unformat"));
|
|
24
|
+
var validate_1 = __importDefault(require("./utils/validate"));
|
|
25
25
|
function useMask(_a) {
|
|
26
26
|
var _b = _a === void 0 ? {} : _a, _c = _b.mask, mask = _c === void 0 ? '' : _c, _d = _b.replacement, replacement = _d === void 0 ? {} : _d, _e = _b.showMask, showMask = _e === void 0 ? false : _e, _f = _b.separate, separate = _f === void 0 ? false : _f, track = _b.track, modify = _b.modify, onMask = _b.onMask;
|
|
27
27
|
var replacementObject = typeof replacement === 'string' ? (0, formatToReplacementObject_1.default)(replacement) : replacement;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Replacement } from '../types
|
|
1
|
+
import type { Replacement } from '../types';
|
|
2
2
|
export default function formatToReplacementObject(replacement: string): Replacement;
|
|
@@ -3,9 +3,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
var utils_1 = require("../utils
|
|
7
|
-
var format_1 = __importDefault(require("./format
|
|
8
|
-
var formatToParts_1 = __importDefault(require("./formatToParts
|
|
6
|
+
var utils_1 = require("../utils");
|
|
7
|
+
var format_1 = __importDefault(require("./format"));
|
|
8
|
+
var formatToParts_1 = __importDefault(require("./formatToParts"));
|
|
9
9
|
/**
|
|
10
10
|
* Формирует данные маскированного значения возвращая
|
|
11
11
|
* @param input пользовательские символы без учета символов маски
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { MaskPart, Replacement } from '../types';
|
|
2
|
+
import type { InputType } from '../../core';
|
|
3
|
+
interface ResolveSelectionParam {
|
|
4
|
+
inputType: InputType;
|
|
5
|
+
value: string;
|
|
6
|
+
addedValue: string;
|
|
7
|
+
beforeChangeValue: string;
|
|
8
|
+
parts: MaskPart[];
|
|
9
|
+
replacement: Replacement;
|
|
10
|
+
separate: boolean;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Определяет позицию курсора для последующей установки
|
|
14
|
+
* @param param
|
|
15
|
+
* @returns
|
|
16
|
+
*/
|
|
17
|
+
export default function resolveSelection({ inputType, value, addedValue, beforeChangeValue, parts, replacement, separate, }: ResolveSelectionParam): number;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Replacement } from '../types';
|
|
2
|
+
interface ValidateParam {
|
|
3
|
+
initialValue: string;
|
|
4
|
+
mask: string;
|
|
5
|
+
replacement: Replacement;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Выводит в консоль сообщения об ошибках.
|
|
9
|
+
* Сообщения выводятся на этапе инициализации элеменета.
|
|
10
|
+
* @param param
|
|
11
|
+
*/
|
|
12
|
+
export default function validate({ initialValue, mask, replacement }: ValidateParam): void;
|
|
13
|
+
export {};
|
|
@@ -4,11 +4,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.generatePattern = exports.formatToParts = exports.unformat = exports.format = void 0;
|
|
7
|
-
var filter_1 = __importDefault(require("./utils/filter
|
|
8
|
-
var format_1 = __importDefault(require("./utils/format
|
|
9
|
-
var formatToParts_1 = __importDefault(require("./utils/formatToParts
|
|
10
|
-
var formatToReplacementObject_1 = __importDefault(require("./utils/formatToReplacementObject
|
|
11
|
-
var unformat_1 = __importDefault(require("./utils/unformat
|
|
7
|
+
var filter_1 = __importDefault(require("./utils/filter"));
|
|
8
|
+
var format_1 = __importDefault(require("./utils/format"));
|
|
9
|
+
var formatToParts_1 = __importDefault(require("./utils/formatToParts"));
|
|
10
|
+
var formatToReplacementObject_1 = __importDefault(require("./utils/formatToReplacementObject"));
|
|
11
|
+
var unformat_1 = __importDefault(require("./utils/unformat"));
|
|
12
12
|
/**
|
|
13
13
|
* Masks a value using the specified mask (see «[Utils](https://github.com/GoncharukBro/react-input/tree/main/packages/mask#format)»).
|
|
14
14
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { NumberFormatProps } from './types
|
|
3
|
-
import type { InputComponent, InputComponentProps } from '../core
|
|
2
|
+
import type { NumberFormatProps } from './types';
|
|
3
|
+
import type { InputComponent, InputComponentProps } from '../core';
|
|
4
4
|
export type InputNumberFormatProps<C extends React.ComponentType | undefined = undefined> = NumberFormatProps & InputComponentProps<C>;
|
|
5
5
|
declare const InputNumberFormat: InputComponent<NumberFormatProps>;
|
|
6
6
|
export default InputNumberFormat;
|
|
@@ -27,8 +27,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
27
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
28
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
29
29
|
var react_1 = require("react");
|
|
30
|
-
var core_1 = require("../core
|
|
31
|
-
var useNumberFormat_1 = __importDefault(require("./useNumberFormat
|
|
30
|
+
var core_1 = require("../core");
|
|
31
|
+
var useNumberFormat_1 = __importDefault(require("./useNumberFormat"));
|
|
32
32
|
function ForwardedInputNumberFormat(_a, forwardedInputRef) {
|
|
33
33
|
var Component = _a.component, locales = _a.locales, format = _a.format, currency = _a.currency, currencyDisplay = _a.currencyDisplay, unit = _a.unit, unitDisplay = _a.unitDisplay, signDisplay = _a.signDisplay, groupDisplay = _a.groupDisplay, minimumIntegerDigits = _a.minimumIntegerDigits, maximumIntegerDigits = _a.maximumIntegerDigits, minimumFractionDigits = _a.minimumFractionDigits, maximumFractionDigits = _a.maximumFractionDigits, onNumberFormat = _a.onNumberFormat, props = __rest(_a, ["component", "locales", "format", "currency", "currencyDisplay", "unit", "unitDisplay", "signDisplay", "groupDisplay", "minimumIntegerDigits", "maximumIntegerDigits", "minimumFractionDigits", "maximumFractionDigits", "onNumberFormat"]);
|
|
34
34
|
var inputRef = (0, useNumberFormat_1.default)({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { default as InputNumberFormat } from './InputNumberFormat
|
|
2
|
-
export { default as useNumberFormat } from './useNumberFormat
|
|
3
|
-
export type { InputNumberFormatProps } from './InputNumberFormat
|
|
4
|
-
export type { NumberFormatProps, NumberFormatEvent, NumberFormatEventDetail, NumberFormatEventHandler } from './types
|
|
1
|
+
export { default as InputNumberFormat } from './InputNumberFormat';
|
|
2
|
+
export { default as useNumberFormat } from './useNumberFormat';
|
|
3
|
+
export type { InputNumberFormatProps } from './InputNumberFormat';
|
|
4
|
+
export type { NumberFormatProps, NumberFormatEvent, NumberFormatEventDetail, NumberFormatEventHandler } from './types';
|
|
@@ -4,8 +4,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.useNumberFormat = exports.InputNumberFormat = void 0;
|
|
7
|
-
var InputNumberFormat_1 = require("./InputNumberFormat
|
|
7
|
+
var InputNumberFormat_1 = require("./InputNumberFormat");
|
|
8
8
|
Object.defineProperty(exports, "InputNumberFormat", { enumerable: true, get: function () { return __importDefault(InputNumberFormat_1).default; } });
|
|
9
|
-
var useNumberFormat_1 = require("./useNumberFormat
|
|
9
|
+
var useNumberFormat_1 = require("./useNumberFormat");
|
|
10
10
|
Object.defineProperty(exports, "useNumberFormat", { enumerable: true, get: function () { return __importDefault(useNumberFormat_1).default; } });
|
|
11
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { NumberFormatProps } from './types
|
|
2
|
+
import type { NumberFormatProps } from './types';
|
|
3
3
|
export default function useNumberFormat({ locales, format, currency, currencyDisplay, unit, unitDisplay, signDisplay, groupDisplay, minimumIntegerDigits, maximumIntegerDigits, minimumFractionDigits, maximumFractionDigits, onNumberFormat, }?: NumberFormatProps): React.MutableRefObject<HTMLInputElement | null>;
|
|
@@ -4,12 +4,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
var react_1 = require("react");
|
|
7
|
-
var core_1 = require("../core
|
|
8
|
-
var localizeValues_1 = __importDefault(require("./utils/localizeValues
|
|
9
|
-
var resolveDetail_1 = __importDefault(require("./utils/resolveDetail
|
|
10
|
-
var resolveMinimumFractionDigits_1 = __importDefault(require("./utils/resolveMinimumFractionDigits
|
|
11
|
-
var resolveOptions_1 = __importDefault(require("./utils/resolveOptions
|
|
12
|
-
var resolveSelection_1 = __importDefault(require("./utils/resolveSelection
|
|
7
|
+
var core_1 = require("../core");
|
|
8
|
+
var localizeValues_1 = __importDefault(require("./utils/localizeValues"));
|
|
9
|
+
var resolveDetail_1 = __importDefault(require("./utils/resolveDetail"));
|
|
10
|
+
var resolveMinimumFractionDigits_1 = __importDefault(require("./utils/resolveMinimumFractionDigits"));
|
|
11
|
+
var resolveOptions_1 = __importDefault(require("./utils/resolveOptions"));
|
|
12
|
+
var resolveSelection_1 = __importDefault(require("./utils/resolveSelection"));
|
|
13
13
|
function useNumberFormat(_a) {
|
|
14
14
|
var _b = _a === void 0 ? {} : _a, locales = _b.locales, format = _b.format, currency = _b.currency, currencyDisplay = _b.currencyDisplay, unit = _b.unit, unitDisplay = _b.unitDisplay, signDisplay = _b.signDisplay, groupDisplay = _b.groupDisplay, minimumIntegerDigits = _b.minimumIntegerDigits, maximumIntegerDigits = _b.maximumIntegerDigits, minimumFractionDigits = _b.minimumFractionDigits, maximumFractionDigits = _b.maximumFractionDigits,
|
|
15
15
|
// minimumSignificantDigits,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { LocalizedNumberFormatValues, NumberFormatOptions, ResolvedNumberFormatOptions } from '../types
|
|
2
|
-
import type { InputType } from '../../core
|
|
1
|
+
import type { LocalizedNumberFormatValues, NumberFormatOptions, ResolvedNumberFormatOptions } from '../types';
|
|
2
|
+
import type { InputType } from '../../core';
|
|
3
3
|
interface Options {
|
|
4
4
|
inputType: InputType;
|
|
5
5
|
locales: string | string[] | undefined;
|
|
@@ -25,7 +25,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
25
25
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
26
|
};
|
|
27
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
-
var resolveMinimumFractionDigits_1 = __importDefault(require("./resolveMinimumFractionDigits
|
|
28
|
+
var resolveMinimumFractionDigits_1 = __importDefault(require("./resolveMinimumFractionDigits"));
|
|
29
29
|
/**
|
|
30
30
|
*
|
|
31
31
|
* @param value
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { NumberFormatOptions, ResolvedNumberFormatOptions } from '../types
|
|
1
|
+
import type { NumberFormatOptions, ResolvedNumberFormatOptions } from '../types';
|
|
2
2
|
export default function resolveOptions(locales: string | string[] | undefined, options?: NumberFormatOptions | undefined): {
|
|
3
3
|
current: NumberFormatOptions;
|
|
4
4
|
resolved: ResolvedNumberFormatOptions;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { LocalizedNumberFormatValues, ResolvedNumberFormatOptions } from '../types';
|
|
2
|
+
import type { InputType } from '../../core';
|
|
3
|
+
interface ResolveSelectionParam {
|
|
4
|
+
localizedValues: LocalizedNumberFormatValues;
|
|
5
|
+
previousLocalizedValues: LocalizedNumberFormatValues;
|
|
6
|
+
resolvedOptions: ResolvedNumberFormatOptions;
|
|
7
|
+
inputType: InputType;
|
|
8
|
+
addedValue: string;
|
|
9
|
+
previousValue: string;
|
|
10
|
+
nextValue: string;
|
|
11
|
+
changeStart: number;
|
|
12
|
+
changeEnd: number;
|
|
13
|
+
}
|
|
14
|
+
interface ResolveSelectionReturn {
|
|
15
|
+
start: number;
|
|
16
|
+
end: number;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Определяет позицию каретки для последующей установки
|
|
20
|
+
* @param param
|
|
21
|
+
* @returns
|
|
22
|
+
*/
|
|
23
|
+
export default function resolveSelection({ localizedValues, previousLocalizedValues, resolvedOptions, inputType, previousValue, addedValue, nextValue, changeStart, changeEnd, }: ResolveSelectionParam): ResolveSelectionReturn;
|
|
24
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { InputProps } from '../../../../../ui
|
|
1
|
+
import { InputProps } from '../../../../../ui';
|
|
2
2
|
export declare function InputMetaImage(props: InputProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -36,8 +36,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
exports.InputMetaImage = void 0;
|
|
38
38
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
39
|
-
var ui_1 = require("../../../../../ui
|
|
40
|
-
var S = __importStar(require("./styles
|
|
39
|
+
var ui_1 = require("../../../../../ui");
|
|
40
|
+
var S = __importStar(require("./styles"));
|
|
41
41
|
function InputMetaImage(props) {
|
|
42
42
|
var _a = (0, ui_1.useFile)(__assign(__assign({}, props), { accept: 'image/*', isLocalFile: true })), LabelFileArea = _a.LabelFileArea, InputFile = _a.InputFile, field = _a.field;
|
|
43
43
|
return ((0, jsx_runtime_1.jsx)(S.InputMetaImage, { children: (0, jsx_runtime_1.jsxs)(ui_1.InputControl, __assign({}, props, { children: [(0, jsx_runtime_1.jsx)(InputFile, { visible: false }), (0, jsx_runtime_1.jsx)("div", { className: 'meta-image', children: !field.value || (Array.isArray(field.value) && field.value.length === 0) ? ((0, jsx_runtime_1.jsx)(LabelFileArea, { children: (0, jsx_runtime_1.jsxs)("div", { className: 'meta_image_no_file_selected', children: [(0, jsx_runtime_1.jsx)(ui_1.Icon, { name: 'IconUpload', fill: '#000' }), (0, jsx_runtime_1.jsx)("p", { children: "Selecionar arquivo" })] }) })) : (field.value.map(function (file) { return (0, jsx_runtime_1.jsx)(ResultFile, { file: file, inputProps: props }); })) })] })) }));
|
|
@@ -34,9 +34,9 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
34
34
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
35
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
36
36
|
var react_1 = require("react");
|
|
37
|
-
var S = __importStar(require("./styles
|
|
38
|
-
var error_boundary_1 = require("../../../../../ui/components/error-boundary
|
|
39
|
-
var icons_1 = require("../../../../../ui/icons
|
|
37
|
+
var S = __importStar(require("./styles"));
|
|
38
|
+
var error_boundary_1 = require("../../../../../ui/components/error-boundary");
|
|
39
|
+
var icons_1 = require("../../../../../ui/icons");
|
|
40
40
|
var NavLinks = function (_a) {
|
|
41
41
|
var links = _a.links, isActive = _a.isActive;
|
|
42
42
|
var _b = (0, react_1.useState)(null), submenu = _b[0], setSubmenu = _b[1];
|