@websolutespa/bom-mixer-ui 1.2.2 → 1.4.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/CHANGELOG.md +14 -0
- package/dist/cjs/index.js +612 -292
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/accessibility/index.js +13 -0
- package/dist/esm/accessibility/index.js.map +1 -0
- package/dist/esm/components/breakpoint/breakpoint.js +2 -1
- package/dist/esm/components/breakpoint/breakpoint.js.map +1 -1
- package/dist/esm/components/google-map/google-map-skeleton.js +2 -0
- package/dist/esm/components/google-map/google-map-skeleton.js.map +1 -1
- package/dist/esm/components/layout/layout.js +4 -0
- package/dist/esm/components/layout/layout.js.map +1 -1
- package/dist/esm/components/main/main.js +149 -0
- package/dist/esm/components/main/main.js.map +1 -0
- package/dist/esm/components/media/media-image.js +6 -7
- package/dist/esm/components/media/media-image.js.map +1 -1
- package/dist/esm/components/media/media.js +13 -5
- package/dist/esm/components/media/media.js.map +1 -1
- package/dist/esm/components/pagination/pagination-ellipsis.js +47 -31
- package/dist/esm/components/pagination/pagination-ellipsis.js.map +1 -1
- package/dist/esm/components/pagination/pagination-item.js +13 -11
- package/dist/esm/components/pagination/pagination-item.js.map +1 -1
- package/dist/esm/components/pagination/pagination-next.js +3 -0
- package/dist/esm/components/pagination/pagination-next.js.map +1 -1
- package/dist/esm/components/pagination/pagination-pages.js +5 -0
- package/dist/esm/components/pagination/pagination-pages.js.map +1 -1
- package/dist/esm/components/pagination/pagination-previous.js +4 -0
- package/dist/esm/components/pagination/pagination-previous.js.map +1 -1
- package/dist/esm/components/pagination/pagination.js +28 -12
- package/dist/esm/components/pagination/pagination.js.map +1 -1
- package/dist/esm/fields/field-accept.js +24 -8
- package/dist/esm/fields/field-accept.js.map +1 -1
- package/dist/esm/fields/field-autocomplete.js +19 -13
- package/dist/esm/fields/field-autocomplete.js.map +1 -1
- package/dist/esm/fields/field-card.js +7 -4
- package/dist/esm/fields/field-card.js.map +1 -1
- package/dist/esm/fields/field-checkbox.js +7 -4
- package/dist/esm/fields/field-checkbox.js.map +1 -1
- package/dist/esm/fields/field-collection.js +46 -35
- package/dist/esm/fields/field-collection.js.map +1 -1
- package/dist/esm/fields/field-error.variants.js +8 -7
- package/dist/esm/fields/field-error.variants.js.map +1 -1
- package/dist/esm/fields/field-password.js +12 -6
- package/dist/esm/fields/field-password.js.map +1 -1
- package/dist/esm/fields/field-select.js +15 -8
- package/dist/esm/fields/field-select.js.map +1 -1
- package/dist/esm/fields/field-text.js +16 -8
- package/dist/esm/fields/field-text.js.map +1 -1
- package/dist/esm/fields/field-textarea.js +92 -0
- package/dist/esm/fields/field-textarea.js.map +1 -0
- package/dist/esm/fields/fields.js +5 -0
- package/dist/esm/fields/fields.js.map +1 -1
- package/dist/esm/forms/autocomplete/autocomplete-dropdown.js +2 -0
- package/dist/esm/forms/autocomplete/autocomplete-dropdown.js.map +1 -1
- package/dist/esm/forms/autocomplete/autocomplete.js +17 -11
- package/dist/esm/forms/autocomplete/autocomplete.js.map +1 -1
- package/dist/esm/forms/checkbox/checkbox-icon.js +2 -0
- package/dist/esm/forms/checkbox/checkbox-icon.js.map +1 -1
- package/dist/esm/forms/custom-select/custom-select-dropdown.js +2 -0
- package/dist/esm/forms/custom-select/custom-select-dropdown.js.map +1 -1
- package/dist/esm/forms/custom-select/custom-select-input.js +15 -13
- package/dist/esm/forms/custom-select/custom-select-input.js.map +1 -1
- package/dist/esm/forms/custom-select/custom-select-label.js +2 -0
- package/dist/esm/forms/custom-select/custom-select-label.js.map +1 -1
- package/dist/esm/forms/custom-select/custom-select-multiple-value.js +2 -0
- package/dist/esm/forms/custom-select/custom-select-multiple-value.js.map +1 -1
- package/dist/esm/forms/custom-select/custom-select-option.js +2 -0
- package/dist/esm/forms/custom-select/custom-select-option.js.map +1 -1
- package/dist/esm/forms/custom-select/custom-select.js +10 -5
- package/dist/esm/forms/custom-select/custom-select.js.map +1 -1
- package/dist/esm/forms/field/field.js +3 -2
- package/dist/esm/forms/field/field.js.map +1 -1
- package/dist/esm/forms/field/field.variants.js +24 -3
- package/dist/esm/forms/field/field.variants.js.map +1 -1
- package/dist/esm/forms/form/form.js +0 -22
- package/dist/esm/forms/form/form.js.map +1 -1
- package/dist/esm/forms/form-error/form-error.js +2 -0
- package/dist/esm/forms/form-error/form-error.js.map +1 -1
- package/dist/esm/forms/form-error/form-error.variants.js +14 -2
- package/dist/esm/forms/form-error/form-error.variants.js.map +1 -1
- package/dist/esm/forms/form-tester/form-tester.js +2 -0
- package/dist/esm/forms/form-tester/form-tester.js.map +1 -1
- package/dist/esm/forms/form-tester/form-tester.variants.js +1 -1
- package/dist/esm/forms/form-tester/form-tester.variants.js.map +1 -1
- package/dist/esm/forms/input/input.js +6 -2
- package/dist/esm/forms/input/input.js.map +1 -1
- package/dist/esm/forms/input/input.variants.js +4 -3
- package/dist/esm/forms/input/input.variants.js.map +1 -1
- package/dist/esm/forms/input-group/input-group.js +4 -3
- package/dist/esm/forms/input-group/input-group.js.map +1 -1
- package/dist/esm/forms/label/label.variants.js +3 -1
- package/dist/esm/forms/label/label.variants.js.map +1 -1
- package/dist/esm/forms/radio/radio-group.js +2 -0
- package/dist/esm/forms/radio/radio-group.js.map +1 -1
- package/dist/esm/forms/radio/radio-icon.js +2 -0
- package/dist/esm/forms/radio/radio-icon.js.map +1 -1
- package/dist/esm/forms/radio-card/radio-card-base.js +2 -0
- package/dist/esm/forms/radio-card/radio-card-base.js.map +1 -1
- package/dist/esm/forms/radio-color/radio-color-base.js +2 -0
- package/dist/esm/forms/radio-color/radio-color-base.js.map +1 -1
- package/dist/esm/forms/radio-color/radio-color-group.js +2 -0
- package/dist/esm/forms/radio-color/radio-color-group.js.map +1 -1
- package/dist/esm/forms/radio-option/radio-option-group.js +2 -0
- package/dist/esm/forms/radio-option/radio-option-group.js.map +1 -1
- package/dist/esm/forms/select/select.js +1 -1
- package/dist/esm/forms/select/select.js.map +1 -1
- package/dist/esm/forms/textarea/textarea.js +21 -3
- package/dist/esm/forms/textarea/textarea.js.map +1 -1
- package/dist/esm/forms/textarea/textarea.variants.js +1 -1
- package/dist/esm/forms/textarea/textarea.variants.js.map +1 -1
- package/dist/esm/forms/utils/utils.js +3 -2
- package/dist/esm/forms/utils/utils.js.map +1 -1
- package/dist/esm/hoc/with-page-transition/with-page-transition.js +2 -0
- package/dist/esm/hoc/with-page-transition/with-page-transition.js.map +1 -1
- package/dist/esm/index.js +5 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/layouts/layout-default/layout-default.js +9 -6
- package/dist/esm/layouts/layout-default/layout-default.js.map +1 -1
- package/dist/esm/layouts/layout-fixed/layout-fixed.js +132 -0
- package/dist/esm/layouts/layout-fixed/layout-fixed.js.map +1 -0
- package/dist/esm/lazy/carousel-1/carousel-1.js +3 -1
- package/dist/esm/lazy/carousel-1/carousel-1.js.map +1 -1
- package/dist/esm/lazy/download-1/download-1.js +3 -1
- package/dist/esm/lazy/download-1/download-1.js.map +1 -1
- package/dist/esm/lazy/lazy-loader/lazy-loader.js +13 -6
- package/dist/esm/lazy/lazy-loader/lazy-loader.js.map +1 -1
- package/dist/esm/lazy/media-full-1/media-full-1.js +3 -1
- package/dist/esm/lazy/media-full-1/media-full-1.js.map +1 -1
- package/dist/esm/lazy/media-full-2/media-full-2.js +3 -1
- package/dist/esm/lazy/media-full-2/media-full-2.js.map +1 -1
- package/dist/esm/lazy/media-media-1/media-media-1.js +3 -1
- package/dist/esm/lazy/media-media-1/media-media-1.js.map +1 -1
- package/dist/esm/lazy/not-found/not-found.js +2 -0
- package/dist/esm/lazy/not-found/not-found.js.map +1 -1
- package/dist/esm/lazy/related-1/related-1-card.js +2 -0
- package/dist/esm/lazy/related-1/related-1-card.js.map +1 -1
- package/dist/esm/lazy/related-1/related-1.js +3 -1
- package/dist/esm/lazy/related-1/related-1.js.map +1 -1
- package/dist/esm/lazy/sizes-colors-1/sizes-colors-1.js +3 -1
- package/dist/esm/lazy/sizes-colors-1/sizes-colors-1.js.map +1 -1
- package/dist/esm/lazy/text-1/text-1.js +3 -1
- package/dist/esm/lazy/text-1/text-1.js.map +1 -1
- package/dist/esm/lazy/text-aside-1/text-aside-1.js +3 -1
- package/dist/esm/lazy/text-aside-1/text-aside-1.js.map +1 -1
- package/dist/esm/lazy/text-media-1/text-media-1.js +3 -1
- package/dist/esm/lazy/text-media-1/text-media-1.js.map +1 -1
- package/dist/esm/lazy/text-text-1/text-text-1.js +3 -1
- package/dist/esm/lazy/text-text-1/text-text-1.js.map +1 -1
- package/dist/esm/sections/auth/auth-change-password.js +4 -1
- package/dist/esm/sections/auth/auth-change-password.js.map +1 -1
- package/dist/esm/sections/auth/auth-drawer.js +2 -0
- package/dist/esm/sections/auth/auth-drawer.js.map +1 -1
- package/dist/esm/sections/auth/auth-forgot-success.js +2 -0
- package/dist/esm/sections/auth/auth-forgot-success.js.map +1 -1
- package/dist/esm/sections/auth/auth-forgot.js +4 -1
- package/dist/esm/sections/auth/auth-forgot.js.map +1 -1
- package/dist/esm/sections/auth/auth-login.js +4 -1
- package/dist/esm/sections/auth/auth-login.js.map +1 -1
- package/dist/esm/sections/auth/auth-register-success.js +2 -0
- package/dist/esm/sections/auth/auth-register-success.js.map +1 -1
- package/dist/esm/sections/auth/auth-register.js +4 -1
- package/dist/esm/sections/auth/auth-register.js.map +1 -1
- package/dist/esm/sections/auth/auth-update.js +4 -1
- package/dist/esm/sections/auth/auth-update.js.map +1 -1
- package/dist/esm/sections/blog-more/blog-card.js +2 -0
- package/dist/esm/sections/blog-more/blog-card.js.map +1 -1
- package/dist/esm/sections/blog-more/blog-more.js +2 -0
- package/dist/esm/sections/blog-more/blog-more.js.map +1 -1
- package/dist/esm/sections/blog-proposition/blog-proposition.js +2 -0
- package/dist/esm/sections/blog-proposition/blog-proposition.js.map +1 -1
- package/dist/esm/sections/cart-mini/cart-mini-item.js +2 -0
- package/dist/esm/sections/cart-mini/cart-mini-item.js.map +1 -1
- package/dist/esm/sections/cart-mini/cart-mini.js +2 -0
- package/dist/esm/sections/cart-mini/cart-mini.js.map +1 -1
- package/dist/esm/sections/categories-proposition/categories-proposition-card.js +2 -0
- package/dist/esm/sections/categories-proposition/categories-proposition-card.js.map +1 -1
- package/dist/esm/sections/categories-proposition/categories-proposition.js +2 -0
- package/dist/esm/sections/categories-proposition/categories-proposition.js.map +1 -1
- package/dist/esm/sections/category-hero/category-hero.js +2 -0
- package/dist/esm/sections/category-hero/category-hero.js.map +1 -1
- package/dist/esm/sections/category-proposition/category-proposition.js +2 -0
- package/dist/esm/sections/category-proposition/category-proposition.js.map +1 -1
- package/dist/esm/sections/checkout/checkout-basket-item.js +2 -0
- package/dist/esm/sections/checkout/checkout-basket-item.js.map +1 -1
- package/dist/esm/sections/checkout/checkout-basket.js +2 -0
- package/dist/esm/sections/checkout/checkout-basket.js.map +1 -1
- package/dist/esm/sections/checkout/checkout-delivery.js +4 -1
- package/dist/esm/sections/checkout/checkout-delivery.js.map +1 -1
- package/dist/esm/sections/checkout/checkout-discount.js +4 -1
- package/dist/esm/sections/checkout/checkout-discount.js.map +1 -1
- package/dist/esm/sections/checkout/checkout-empty.js +2 -0
- package/dist/esm/sections/checkout/checkout-empty.js.map +1 -1
- package/dist/esm/sections/checkout/checkout-error.js +2 -0
- package/dist/esm/sections/checkout/checkout-error.js.map +1 -1
- package/dist/esm/sections/checkout/checkout-forgot-success.js +2 -0
- package/dist/esm/sections/checkout/checkout-forgot-success.js.map +1 -1
- package/dist/esm/sections/checkout/checkout-forgot.js +2 -0
- package/dist/esm/sections/checkout/checkout-forgot.js.map +1 -1
- package/dist/esm/sections/checkout/checkout-info.js +2 -0
- package/dist/esm/sections/checkout/checkout-info.js.map +1 -1
- package/dist/esm/sections/checkout/checkout-login.js +2 -0
- package/dist/esm/sections/checkout/checkout-login.js.map +1 -1
- package/dist/esm/sections/checkout/checkout-payment.js +4 -1
- package/dist/esm/sections/checkout/checkout-payment.js.map +1 -1
- package/dist/esm/sections/checkout/checkout-register-success.js +2 -0
- package/dist/esm/sections/checkout/checkout-register-success.js.map +1 -1
- package/dist/esm/sections/checkout/checkout-register.js +2 -0
- package/dist/esm/sections/checkout/checkout-register.js.map +1 -1
- package/dist/esm/sections/checkout/checkout-review.js +4 -1
- package/dist/esm/sections/checkout/checkout-review.js.map +1 -1
- package/dist/esm/sections/checkout/checkout-success.js +2 -0
- package/dist/esm/sections/checkout/checkout-success.js.map +1 -1
- package/dist/esm/sections/checkout/checkout-user-info.js +2 -0
- package/dist/esm/sections/checkout/checkout-user-info.js.map +1 -1
- package/dist/esm/sections/checkout/checkout-wizard.js +2 -0
- package/dist/esm/sections/checkout/checkout-wizard.js.map +1 -1
- package/dist/esm/sections/colors/colors.js +2 -0
- package/dist/esm/sections/colors/colors.js.map +1 -1
- package/dist/esm/sections/contact-card/contact-card.js +2 -0
- package/dist/esm/sections/contact-card/contact-card.js.map +1 -1
- package/dist/esm/sections/contact-form/contact-form.js +2 -0
- package/dist/esm/sections/contact-form/contact-form.js.map +1 -1
- package/dist/esm/sections/contact-hero/contact-hero.js +2 -0
- package/dist/esm/sections/contact-hero/contact-hero.js.map +1 -1
- package/dist/esm/sections/footer/footer.js +7 -1
- package/dist/esm/sections/footer/footer.js.map +1 -1
- package/dist/esm/sections/header/header-card.js +2 -0
- package/dist/esm/sections/header/header-card.js.map +1 -1
- package/dist/esm/sections/header/header-submenu.js +2 -0
- package/dist/esm/sections/header/header-submenu.js.map +1 -1
- package/dist/esm/sections/header/header.js +6 -1
- package/dist/esm/sections/header/header.js.map +1 -1
- package/dist/esm/sections/hero/hero.js +2 -0
- package/dist/esm/sections/hero/hero.js.map +1 -1
- package/dist/esm/sections/icons/icons.js +2 -0
- package/dist/esm/sections/icons/icons.js.map +1 -1
- package/dist/esm/sections/magazine-related/magazine-related.js +3 -1
- package/dist/esm/sections/magazine-related/magazine-related.js.map +1 -1
- package/dist/esm/sections/magazine-search/magazine-search-card.js +2 -0
- package/dist/esm/sections/magazine-search/magazine-search-card.js.map +1 -1
- package/dist/esm/sections/magazine-search/magazine-search-filters-modal.js +2 -0
- package/dist/esm/sections/magazine-search/magazine-search-filters-modal.js.map +1 -1
- package/dist/esm/sections/magazine-search/magazine-search-filters.js +2 -0
- package/dist/esm/sections/magazine-search/magazine-search-filters.js.map +1 -1
- package/dist/esm/sections/magazine-search/magazine-search.js +2 -0
- package/dist/esm/sections/magazine-search/magazine-search.js.map +1 -1
- package/dist/esm/sections/markets-and-languages/markets-and-languages-drawer.js +2 -0
- package/dist/esm/sections/markets-and-languages/markets-and-languages-drawer.js.map +1 -1
- package/dist/esm/sections/order/order-address.js +2 -0
- package/dist/esm/sections/order/order-address.js.map +1 -1
- package/dist/esm/sections/order/order-item.js +2 -0
- package/dist/esm/sections/order/order-item.js.map +1 -1
- package/dist/esm/sections/order/order-register.js +2 -0
- package/dist/esm/sections/order/order-register.js.map +1 -1
- package/dist/esm/sections/order/order-summary-item.js +2 -0
- package/dist/esm/sections/order/order-summary-item.js.map +1 -1
- package/dist/esm/sections/order/order-summary.js +2 -0
- package/dist/esm/sections/order/order-summary.js.map +1 -1
- package/dist/esm/sections/product-overview/product-overview-gallery.js +2 -0
- package/dist/esm/sections/product-overview/product-overview-gallery.js.map +1 -1
- package/dist/esm/sections/product-overview/product-overview.js +2 -0
- package/dist/esm/sections/product-overview/product-overview.js.map +1 -1
- package/dist/esm/sections/products-detail-download/products-detail-download.js +3 -1
- package/dist/esm/sections/products-detail-download/products-detail-download.js.map +1 -1
- package/dist/esm/sections/products-detail-related/products-detail-related-card.js +2 -0
- package/dist/esm/sections/products-detail-related/products-detail-related-card.js.map +1 -1
- package/dist/esm/sections/products-detail-related/products-detail-related.js +3 -1
- package/dist/esm/sections/products-detail-related/products-detail-related.js.map +1 -1
- package/dist/esm/sections/products-detail-size-color/products-detail-size-color.js +3 -1
- package/dist/esm/sections/products-detail-size-color/products-detail-size-color.js.map +1 -1
- package/dist/esm/sections/products-hero/products-hero-card.js +2 -0
- package/dist/esm/sections/products-hero/products-hero-card.js.map +1 -1
- package/dist/esm/sections/products-hero/products-hero.js +2 -0
- package/dist/esm/sections/products-hero/products-hero.js.map +1 -1
- package/dist/esm/sections/products-proposition/products-proposition-card.js +2 -0
- package/dist/esm/sections/products-proposition/products-proposition-card.js.map +1 -1
- package/dist/esm/sections/products-proposition/products-proposition.js +2 -0
- package/dist/esm/sections/products-proposition/products-proposition.js.map +1 -1
- package/dist/esm/sections/products-related/products-related-card.js +2 -0
- package/dist/esm/sections/products-related/products-related-card.js.map +1 -1
- package/dist/esm/sections/products-related/products-related.js +2 -0
- package/dist/esm/sections/products-related/products-related.js.map +1 -1
- package/dist/esm/sections/products-search/products-search-card.js +2 -0
- package/dist/esm/sections/products-search/products-search-card.js.map +1 -1
- package/dist/esm/sections/products-search/products-search-filters-modal.js +2 -0
- package/dist/esm/sections/products-search/products-search-filters-modal.js.map +1 -1
- package/dist/esm/sections/products-search/products-search-filters.js +2 -0
- package/dist/esm/sections/products-search/products-search-filters.js.map +1 -1
- package/dist/esm/sections/products-search/products-search-recap.js +2 -0
- package/dist/esm/sections/products-search/products-search-recap.js.map +1 -1
- package/dist/esm/sections/products-search/products-search.js +2 -0
- package/dist/esm/sections/products-search/products-search.js.map +1 -1
- package/dist/esm/sections/proposition/proposition.js +2 -0
- package/dist/esm/sections/proposition/proposition.js.map +1 -1
- package/dist/esm/sections/reserved_area/reserved_area.js +2 -0
- package/dist/esm/sections/reserved_area/reserved_area.js.map +1 -1
- package/dist/esm/sections/reserved_area_menu/reserved_area_menu.js +2 -0
- package/dist/esm/sections/reserved_area_menu/reserved_area_menu.js.map +1 -1
- package/dist/esm/sections/shop-category-hero/shop-category-hero.js +2 -0
- package/dist/esm/sections/shop-category-hero/shop-category-hero.js.map +1 -1
- package/dist/esm/sections/shop-detail-related/shop-detail-related-card.js +2 -0
- package/dist/esm/sections/shop-detail-related/shop-detail-related-card.js.map +1 -1
- package/dist/esm/sections/shop-detail-related/shop-detail-related.js +3 -1
- package/dist/esm/sections/shop-detail-related/shop-detail-related.js.map +1 -1
- package/dist/esm/sections/shop-hero/shop-hero-card.js +2 -0
- package/dist/esm/sections/shop-hero/shop-hero-card.js.map +1 -1
- package/dist/esm/sections/shop-hero/shop-hero.js +2 -0
- package/dist/esm/sections/shop-hero/shop-hero.js.map +1 -1
- package/dist/esm/sections/shop-incentive/shop-incentive.js +2 -0
- package/dist/esm/sections/shop-incentive/shop-incentive.js.map +1 -1
- package/dist/esm/sections/shop-items-proposition/shop-items-proposition-card.js +2 -0
- package/dist/esm/sections/shop-items-proposition/shop-items-proposition-card.js.map +1 -1
- package/dist/esm/sections/shop-items-proposition/shop-items-proposition.js +2 -0
- package/dist/esm/sections/shop-items-proposition/shop-items-proposition.js.map +1 -1
- package/dist/esm/sections/shop-search/shop-search-card.js +2 -0
- package/dist/esm/sections/shop-search/shop-search-card.js.map +1 -1
- package/dist/esm/sections/shop-search/shop-search-filters-modal.js +2 -0
- package/dist/esm/sections/shop-search/shop-search-filters-modal.js.map +1 -1
- package/dist/esm/sections/shop-search/shop-search-filters.js +2 -0
- package/dist/esm/sections/shop-search/shop-search-filters.js.map +1 -1
- package/dist/esm/sections/shop-search/shop-search-recap.js +2 -0
- package/dist/esm/sections/shop-search/shop-search-recap.js.map +1 -1
- package/dist/esm/sections/shop-search/shop-search.js +2 -0
- package/dist/esm/sections/shop-search/shop-search.js.map +1 -1
- package/dist/esm/sections/split/split.js +2 -0
- package/dist/esm/sections/split/split.js.map +1 -1
- package/dist/esm/sections/store-locator/store-locator-search.js +2 -0
- package/dist/esm/sections/store-locator/store-locator-search.js.map +1 -1
- package/dist/esm/sections/swiper-hero/swiper-hero.js +2 -0
- package/dist/esm/sections/swiper-hero/swiper-hero.js.map +1 -1
- package/dist/esm/sections/typography/typography.js +2 -0
- package/dist/esm/sections/typography/typography.js.map +1 -1
- package/dist/esm/theme/global.vars.js +34 -7
- package/dist/esm/theme/global.vars.js.map +1 -1
- package/dist/esm/theme/theme.json.js +26 -5
- package/dist/esm/theme/theme.json.js.map +1 -1
- package/dist/types/accessibility/index.d.ts +3 -0
- package/dist/types/accessibility/index.d.ts.map +1 -0
- package/dist/types/components/breadcrumb/breadcrumb.d.ts +1 -1
- package/dist/types/components/breakpoint/breakpoint.d.ts.map +1 -1
- package/dist/types/components/index.d.ts +2 -0
- package/dist/types/components/index.d.ts.map +1 -1
- package/dist/types/components/layout/layout.d.ts +1 -3
- package/dist/types/components/layout/layout.d.ts.map +1 -1
- package/dist/types/components/main/main.d.ts +8 -0
- package/dist/types/components/main/main.d.ts.map +1 -0
- package/dist/types/components/media/media-image.d.ts +1 -1
- package/dist/types/components/media/media-image.d.ts.map +1 -1
- package/dist/types/components/media/media.d.ts +17 -0
- package/dist/types/components/media/media.d.ts.map +1 -1
- package/dist/types/components/pagination/pagination-ellipsis.d.ts +5 -1
- package/dist/types/components/pagination/pagination-ellipsis.d.ts.map +1 -1
- package/dist/types/components/pagination/pagination-item.d.ts +5 -2
- package/dist/types/components/pagination/pagination-item.d.ts.map +1 -1
- package/dist/types/components/pagination/pagination-next.d.ts.map +1 -1
- package/dist/types/components/pagination/pagination-pages.d.ts.map +1 -1
- package/dist/types/components/pagination/pagination-previous.d.ts.map +1 -1
- package/dist/types/components/pagination/pagination.d.ts.map +1 -1
- package/dist/types/fields/field-accept.d.ts +2 -2
- package/dist/types/fields/field-accept.d.ts.map +1 -1
- package/dist/types/fields/field-autocomplete.d.ts +2 -2
- package/dist/types/fields/field-autocomplete.d.ts.map +1 -1
- package/dist/types/fields/field-card.d.ts +2 -2
- package/dist/types/fields/field-card.d.ts.map +1 -1
- package/dist/types/fields/field-checkbox.d.ts +2 -2
- package/dist/types/fields/field-checkbox.d.ts.map +1 -1
- package/dist/types/fields/field-collection.d.ts +4 -2
- package/dist/types/fields/field-collection.d.ts.map +1 -1
- package/dist/types/fields/field-error.variants.d.ts.map +1 -1
- package/dist/types/fields/field-password.d.ts +2 -2
- package/dist/types/fields/field-password.d.ts.map +1 -1
- package/dist/types/fields/field-select.d.ts +2 -2
- package/dist/types/fields/field-select.d.ts.map +1 -1
- package/dist/types/fields/field-text.d.ts +2 -2
- package/dist/types/fields/field-text.d.ts.map +1 -1
- package/dist/types/fields/field-textarea.d.ts +8 -0
- package/dist/types/fields/field-textarea.d.ts.map +1 -0
- package/dist/types/fields/fields.d.ts +1 -1
- package/dist/types/fields/fields.d.ts.map +1 -1
- package/dist/types/fields/index.d.ts +1 -0
- package/dist/types/fields/index.d.ts.map +1 -1
- package/dist/types/forms/autocomplete/autocomplete.d.ts.map +1 -1
- package/dist/types/forms/custom-select/custom-select-input.d.ts.map +1 -1
- package/dist/types/forms/custom-select/custom-select.d.ts +1 -1
- package/dist/types/forms/custom-select/custom-select.d.ts.map +1 -1
- package/dist/types/forms/field/field.d.ts +2 -0
- package/dist/types/forms/field/field.d.ts.map +1 -1
- package/dist/types/forms/field/field.variants.d.ts.map +1 -1
- package/dist/types/forms/form/form.d.ts.map +1 -1
- package/dist/types/forms/form-error/form-error.variants.d.ts.map +1 -1
- package/dist/types/forms/input/input.d.ts.map +1 -1
- package/dist/types/forms/input/input.variants.d.ts.map +1 -1
- package/dist/types/forms/input-group/input-group.d.ts.map +1 -1
- package/dist/types/forms/label/label.variants.d.ts.map +1 -1
- package/dist/types/forms/textarea/textarea.d.ts.map +1 -1
- package/dist/types/forms/utils/utils.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/layouts/index.d.ts +1 -0
- package/dist/types/layouts/index.d.ts.map +1 -1
- package/dist/types/layouts/layout-fixed/layout-fixed.d.ts +6 -0
- package/dist/types/layouts/layout-fixed/layout-fixed.d.ts.map +1 -0
- package/dist/types/lazy/carousel-1/carousel-1.d.ts +4 -8
- package/dist/types/lazy/carousel-1/carousel-1.d.ts.map +1 -1
- package/dist/types/lazy/download-1/download-1.d.ts +4 -8
- package/dist/types/lazy/download-1/download-1.d.ts.map +1 -1
- package/dist/types/lazy/lazy-loader/lazy-loader-client.d.ts +5 -2
- package/dist/types/lazy/lazy-loader/lazy-loader-client.d.ts.map +1 -1
- package/dist/types/lazy/lazy-loader/lazy-loader.d.ts +5 -3
- package/dist/types/lazy/lazy-loader/lazy-loader.d.ts.map +1 -1
- package/dist/types/lazy/media-full-1/media-full-1.d.ts +4 -8
- package/dist/types/lazy/media-full-1/media-full-1.d.ts.map +1 -1
- package/dist/types/lazy/media-full-2/media-full-2.d.ts +4 -8
- package/dist/types/lazy/media-full-2/media-full-2.d.ts.map +1 -1
- package/dist/types/lazy/media-media-1/media-media-1.d.ts +4 -7
- package/dist/types/lazy/media-media-1/media-media-1.d.ts.map +1 -1
- package/dist/types/lazy/not-found/not-found.d.ts +4 -8
- package/dist/types/lazy/not-found/not-found.d.ts.map +1 -1
- package/dist/types/lazy/related-1/related-1-card.d.ts +1 -2
- package/dist/types/lazy/related-1/related-1-card.d.ts.map +1 -1
- package/dist/types/lazy/related-1/related-1.d.ts +4 -8
- package/dist/types/lazy/related-1/related-1.d.ts.map +1 -1
- package/dist/types/lazy/sizes-colors-1/sizes-colors-1.d.ts +4 -7
- package/dist/types/lazy/sizes-colors-1/sizes-colors-1.d.ts.map +1 -1
- package/dist/types/lazy/text-1/text-1.d.ts +4 -7
- package/dist/types/lazy/text-1/text-1.d.ts.map +1 -1
- package/dist/types/lazy/text-aside-1/text-aside-1.d.ts +4 -8
- package/dist/types/lazy/text-aside-1/text-aside-1.d.ts.map +1 -1
- package/dist/types/lazy/text-media-1/text-media-1.d.ts +4 -8
- package/dist/types/lazy/text-media-1/text-media-1.d.ts.map +1 -1
- package/dist/types/lazy/text-text-1/text-text-1.d.ts +4 -8
- package/dist/types/lazy/text-text-1/text-text-1.d.ts.map +1 -1
- package/dist/types/sections/footer/footer.d.ts.map +1 -1
- package/dist/types/sections/header/header-card.d.ts +5 -9
- package/dist/types/sections/header/header-card.d.ts.map +1 -1
- package/dist/types/sections/header/header-submenu.d.ts +3 -8
- package/dist/types/sections/header/header-submenu.d.ts.map +1 -1
- package/dist/types/sections/header/header.d.ts.map +1 -1
- package/dist/types/sections/magazine-related/magazine-related.d.ts +4 -8
- package/dist/types/sections/magazine-related/magazine-related.d.ts.map +1 -1
- package/dist/types/sections/products-detail-download/products-detail-download.d.ts +6 -9
- package/dist/types/sections/products-detail-download/products-detail-download.d.ts.map +1 -1
- package/dist/types/sections/products-detail-related/products-detail-related.d.ts +6 -9
- package/dist/types/sections/products-detail-related/products-detail-related.d.ts.map +1 -1
- package/dist/types/sections/products-detail-size-color/products-detail-size-color.d.ts +6 -9
- package/dist/types/sections/products-detail-size-color/products-detail-size-color.d.ts.map +1 -1
- package/dist/types/sections/shop-detail-related/shop-detail-related.d.ts +6 -9
- package/dist/types/sections/shop-detail-related/shop-detail-related.d.ts.map +1 -1
- package/dist/types/theme/global.vars.d.ts.map +1 -1
- package/dist/types/theme/types.d.ts +11 -2
- package/dist/types/theme/types.d.ts.map +1 -1
- package/package.json +2 -1
- package/src/accessibility/index.ts +10 -0
- package/src/components/breakpoint/breakpoint.tsx +1 -0
- package/src/components/index.ts +2 -0
- package/src/components/layout/layout.tsx +15 -4
- package/src/components/main/main.tsx +31 -0
- package/src/components/media/media-image.tsx +6 -3
- package/src/components/media/media.tsx +34 -13
- package/src/components/pagination/pagination-ellipsis.tsx +53 -35
- package/src/components/pagination/pagination-item.tsx +27 -14
- package/src/components/pagination/pagination-next.tsx +7 -1
- package/src/components/pagination/pagination-pages.tsx +29 -5
- package/src/components/pagination/pagination-previous.tsx +7 -1
- package/src/components/pagination/pagination.tsx +27 -8
- package/src/fields/field-accept.tsx +18 -8
- package/src/fields/field-autocomplete.tsx +15 -15
- package/src/fields/field-card.tsx +4 -8
- package/src/fields/field-checkbox.tsx +4 -8
- package/src/fields/field-collection.tsx +42 -27
- package/src/fields/field-error.variants.ts +8 -7
- package/src/fields/field-password.tsx +9 -9
- package/src/fields/field-select.tsx +12 -13
- package/src/fields/field-text.tsx +11 -12
- package/src/fields/field-textarea.tsx +62 -0
- package/src/fields/fields.tsx +3 -1
- package/src/fields/index.ts +1 -0
- package/src/forms/autocomplete/autocomplete.tsx +24 -10
- package/src/forms/custom-select/custom-select-input.tsx +16 -14
- package/src/forms/custom-select/custom-select.tsx +12 -5
- package/src/forms/field/field.tsx +4 -1
- package/src/forms/field/field.variants.ts +24 -3
- package/src/forms/form/form.tsx +0 -22
- package/src/forms/form-error/form-error.variants.ts +14 -2
- package/src/forms/form-tester/form-tester.variants.ts +1 -1
- package/src/forms/input/input.tsx +3 -1
- package/src/forms/input/input.variants.ts +4 -3
- package/src/forms/input-group/input-group.tsx +4 -3
- package/src/forms/label/label.variants.ts +3 -1
- package/src/forms/select/select.tsx +1 -1
- package/src/forms/textarea/textarea.tsx +19 -3
- package/src/forms/textarea/textarea.variants.ts +1 -1
- package/src/forms/utils/utils.tsx +3 -2
- package/src/index.ts +1 -0
- package/src/layouts/index.ts +1 -0
- package/src/layouts/layout-default/layout-default.tsx +6 -6
- package/src/layouts/layout-fixed/layout-fixed.tsx +19 -0
- package/src/lazy/carousel-1/carousel-1.tsx +5 -10
- package/src/lazy/download-1/download-1.tsx +5 -10
- package/src/lazy/lazy-loader/lazy-loader-client.tsx +13 -17
- package/src/lazy/lazy-loader/lazy-loader.tsx +13 -9
- package/src/lazy/media-full-1/media-full-1.tsx +5 -10
- package/src/lazy/media-full-2/media-full-2.tsx +5 -10
- package/src/lazy/media-media-1/media-media-1.tsx +5 -9
- package/src/lazy/not-found/not-found.tsx +4 -9
- package/src/lazy/related-1/related-1-card.tsx +1 -1
- package/src/lazy/related-1/related-1.tsx +5 -9
- package/src/lazy/sizes-colors-1/sizes-colors-1.tsx +5 -9
- package/src/lazy/text-1/text-1.tsx +5 -9
- package/src/lazy/text-aside-1/text-aside-1.tsx +5 -10
- package/src/lazy/text-media-1/text-media-1.tsx +5 -10
- package/src/lazy/text-text-1/text-text-1.tsx +5 -10
- package/src/sections/footer/footer.tsx +5 -3
- package/src/sections/header/header-card.tsx +3 -10
- package/src/sections/header/header-submenu.tsx +6 -12
- package/src/sections/header/header.tsx +8 -5
- package/src/sections/magazine-related/magazine-related.tsx +5 -10
- package/src/sections/products-detail-download/products-detail-download.tsx +5 -11
- package/src/sections/products-detail-related/products-detail-related.tsx +5 -11
- package/src/sections/products-detail-size-color/products-detail-size-color.tsx +5 -11
- package/src/sections/shop-detail-related/shop-detail-related.tsx +5 -11
- package/src/sections/shop-search/shop-search.tsx +1 -1
- package/src/theme/global.vars.scss +34 -7
- package/src/theme/global.vars.ts +34 -7
- package/src/theme/theme.json +26 -5
- package/src/theme/types.ts +12 -2
package/dist/cjs/index.js
CHANGED
|
@@ -85,6 +85,14 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
85
85
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
86
86
|
};
|
|
87
87
|
|
|
88
|
+
const accessibility = (App, config) => __awaiter(void 0, void 0, void 0, function* () {
|
|
89
|
+
if (bomCore.isDevelopment && bomCore.isBrowser) {
|
|
90
|
+
const axe = yield import('@axe-core/react');
|
|
91
|
+
const ReactDOM = yield import('react-dom');
|
|
92
|
+
axe.default(App, ReactDOM, 1000, config);
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
|
|
88
96
|
const StyledExpand = styled__default.default.div`
|
|
89
97
|
padding: 0;
|
|
90
98
|
margin: 0;
|
|
@@ -897,6 +905,32 @@ function hasChildOfType(children, type) {
|
|
|
897
905
|
return hasChildOfType;
|
|
898
906
|
}
|
|
899
907
|
|
|
908
|
+
const Background = styled__default.default.div`
|
|
909
|
+
position: absolute;
|
|
910
|
+
top: 0;
|
|
911
|
+
left: 0;
|
|
912
|
+
// background: var(--color-neutral-900);
|
|
913
|
+
|
|
914
|
+
&, & > * {
|
|
915
|
+
width: 100%;
|
|
916
|
+
height: 100%;
|
|
917
|
+
display: flex;
|
|
918
|
+
justify-content: center;
|
|
919
|
+
align-items: center;
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
& > * > * {
|
|
923
|
+
width: 100%;
|
|
924
|
+
height: 100%;
|
|
925
|
+
object-fit: cover;
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
${props => getCssResponsive(props)}
|
|
929
|
+
`;
|
|
930
|
+
Background.defaultProps = {
|
|
931
|
+
className: 'background'
|
|
932
|
+
};
|
|
933
|
+
|
|
900
934
|
const Badge = styled__default.default.div`
|
|
901
935
|
display: inline-block;
|
|
902
936
|
line-height: 1;
|
|
@@ -1507,7 +1541,8 @@ const Breakpoint = props => {
|
|
|
1507
1541
|
exit: {
|
|
1508
1542
|
opacity: 0,
|
|
1509
1543
|
y: '100%'
|
|
1510
|
-
}
|
|
1544
|
+
},
|
|
1545
|
+
"aria-hidden": "true"
|
|
1511
1546
|
}, props, {
|
|
1512
1547
|
children: [breakpoint.key, " (", breakpoint.min, "/", breakpoint.max < 50000 ? breakpoint.max : '∞', ")"]
|
|
1513
1548
|
}), "breakpoint")
|
|
@@ -1611,32 +1646,6 @@ const ButtonGroup = /*#__PURE__*/React.forwardRef((_a, ref) => {
|
|
|
1611
1646
|
});
|
|
1612
1647
|
ButtonGroup.displayName = 'ButtonGroup';
|
|
1613
1648
|
|
|
1614
|
-
const Background = styled__default.default.div`
|
|
1615
|
-
position: absolute;
|
|
1616
|
-
top: 0;
|
|
1617
|
-
left: 0;
|
|
1618
|
-
// background: var(--color-neutral-900);
|
|
1619
|
-
|
|
1620
|
-
&, & > * {
|
|
1621
|
-
width: 100%;
|
|
1622
|
-
height: 100%;
|
|
1623
|
-
display: flex;
|
|
1624
|
-
justify-content: center;
|
|
1625
|
-
align-items: center;
|
|
1626
|
-
}
|
|
1627
|
-
|
|
1628
|
-
& > * > * {
|
|
1629
|
-
width: 100%;
|
|
1630
|
-
height: 100%;
|
|
1631
|
-
object-fit: cover;
|
|
1632
|
-
}
|
|
1633
|
-
|
|
1634
|
-
${props => getCssResponsive(props)}
|
|
1635
|
-
`;
|
|
1636
|
-
Background.defaultProps = {
|
|
1637
|
-
className: 'background'
|
|
1638
|
-
};
|
|
1639
|
-
|
|
1640
1649
|
const CardContent = styled__default.default.div`
|
|
1641
1650
|
position: relative;
|
|
1642
1651
|
${props => getCssResponsive(props)}
|
|
@@ -2926,9 +2935,6 @@ var button = {
|
|
|
2926
2935
|
};
|
|
2927
2936
|
var form = {
|
|
2928
2937
|
"default": {
|
|
2929
|
-
fontSize: "1rem",
|
|
2930
|
-
lineHeight: "1.625",
|
|
2931
|
-
padding: "0.8em",
|
|
2932
2938
|
backgroundColor: "transparent",
|
|
2933
2939
|
backgroundColorDisabled: "var(--color-neutral-200)",
|
|
2934
2940
|
backgroundColorInfo: "var(--color-warning-100)",
|
|
@@ -2951,10 +2957,34 @@ var form = {
|
|
|
2951
2957
|
outlineColorActive: "var(--color-primary-500)",
|
|
2952
2958
|
outlineColorError: "var(--color-warning-500)",
|
|
2953
2959
|
outlineOffset: "2px",
|
|
2954
|
-
transition: "border 150ms ease-in 0s, outline-color 150ms ease-in 0s, color 200ms ease-out 0s, box-shadow 200ms ease 0s"
|
|
2960
|
+
transition: "border 150ms ease-in 0s, outline-color 150ms ease-in 0s, color 200ms ease-out 0s, box-shadow 200ms ease 0s",
|
|
2961
|
+
field: {
|
|
2962
|
+
gap: "0.5rem"
|
|
2963
|
+
},
|
|
2964
|
+
control: {
|
|
2965
|
+
padding: "0.8em",
|
|
2966
|
+
fontSize: "1rem",
|
|
2967
|
+
fontWeight: "inherit",
|
|
2968
|
+
lineHeight: "1.625"
|
|
2969
|
+
},
|
|
2970
|
+
label: {
|
|
2971
|
+
padding: "0",
|
|
2972
|
+
fontSize: "0.9rem",
|
|
2973
|
+
fontWeight: "500",
|
|
2974
|
+
lineHeight: "1.2"
|
|
2975
|
+
},
|
|
2976
|
+
error: {
|
|
2977
|
+
margin: "0.5em 0",
|
|
2978
|
+
padding: "0.2em 0.4em",
|
|
2979
|
+
fontSize: "0.9rem",
|
|
2980
|
+
fontWeight: "500",
|
|
2981
|
+
lineHeight: "1.2",
|
|
2982
|
+
border: "1px solid var(--form-border-color-error)",
|
|
2983
|
+
backgroundColor: "var(--form-background-color-error)",
|
|
2984
|
+
color: "var(--form-color-error)"
|
|
2985
|
+
}
|
|
2955
2986
|
},
|
|
2956
2987
|
negative: {
|
|
2957
|
-
padding: "0.8em",
|
|
2958
2988
|
backgroundColorDisabled: "var(--color-neutral-800)",
|
|
2959
2989
|
colorHover: "var(--color-neutral-200)",
|
|
2960
2990
|
colorDisabled: "var(--color-neutral-600)",
|
|
@@ -3135,9 +3165,6 @@ const CssVars = styled.css`
|
|
|
3135
3165
|
--button-size-lg: 1.25rem;
|
|
3136
3166
|
--button-size-xl: 1.45rem;
|
|
3137
3167
|
--button-border-radius: 0.2em;
|
|
3138
|
-
--form-default-font-size: 1rem;
|
|
3139
|
-
--form-default-line-height: 1.625;
|
|
3140
|
-
--form-default-padding: 0.8em;
|
|
3141
3168
|
--form-default-background-color: transparent;
|
|
3142
3169
|
--form-default-background-color-disabled: var(--color-neutral-200);
|
|
3143
3170
|
--form-default-background-color-info: var(--color-warning-100);
|
|
@@ -3161,7 +3188,23 @@ const CssVars = styled.css`
|
|
|
3161
3188
|
--form-default-outline-color-error: var(--color-warning-500);
|
|
3162
3189
|
--form-default-outline-offset: 2px;
|
|
3163
3190
|
--form-default-transition: border 150ms ease-in 0s, outline-color 150ms ease-in 0s, color 200ms ease-out 0s, box-shadow 200ms ease 0s;
|
|
3164
|
-
--form-
|
|
3191
|
+
--form-default-field-gap: 0.5rem;
|
|
3192
|
+
--form-default-control-padding: 0.8em;
|
|
3193
|
+
--form-default-control-font-size: 1rem;
|
|
3194
|
+
--form-default-control-font-weight: inherit;
|
|
3195
|
+
--form-default-control-line-height: 1.625;
|
|
3196
|
+
--form-default-label-padding: 0;
|
|
3197
|
+
--form-default-label-font-size: 0.9rem;
|
|
3198
|
+
--form-default-label-font-weight: 500;
|
|
3199
|
+
--form-default-label-line-height: 1.2;
|
|
3200
|
+
--form-default-error-margin: 0.5em 0;
|
|
3201
|
+
--form-default-error-padding: 0.2em 0.4em;
|
|
3202
|
+
--form-default-error-font-size: 0.9rem;
|
|
3203
|
+
--form-default-error-font-weight: 500;
|
|
3204
|
+
--form-default-error-line-height: 1.2;
|
|
3205
|
+
--form-default-error-border: 1px solid var(--form-border-color-error);
|
|
3206
|
+
--form-default-error-background-color: var(--form-background-color-error);
|
|
3207
|
+
--form-default-error-color: var(--form-color-error);
|
|
3165
3208
|
--form-negative-background-color-disabled: var(--color-neutral-800);
|
|
3166
3209
|
--form-negative-color-hover: var(--color-neutral-200);
|
|
3167
3210
|
--form-negative-color-disabled: var(--color-neutral-600);
|
|
@@ -3253,9 +3296,6 @@ const CssVars = styled.css`
|
|
|
3253
3296
|
--container-max-width-md: var(--container-default-max-width-md);
|
|
3254
3297
|
--container-max-width-lg: var(--container-default-max-width-lg);
|
|
3255
3298
|
--container-max-width-xl: var(--container-default-max-width-xl);
|
|
3256
|
-
--form-font-size: var(--form-default-font-size);
|
|
3257
|
-
--form-line-height: var(--form-default-line-height);
|
|
3258
|
-
--form-padding: var(--form-default-padding);
|
|
3259
3299
|
--form-background-color: var(--form-default-background-color);
|
|
3260
3300
|
--form-background-color-disabled: var(--form-default-background-color-disabled);
|
|
3261
3301
|
--form-background-color-info: var(--form-default-background-color-info);
|
|
@@ -3279,6 +3319,23 @@ const CssVars = styled.css`
|
|
|
3279
3319
|
--form-outline-color-error: var(--form-default-outline-color-error);
|
|
3280
3320
|
--form-outline-offset: var(--form-default-outline-offset);
|
|
3281
3321
|
--form-transition: var(--form-default-transition);
|
|
3322
|
+
--form-field-gap: var(--form-default-field-gap);
|
|
3323
|
+
--form-control-padding: var(--form-default-control-padding);
|
|
3324
|
+
--form-control-font-size: var(--form-default-control-font-size);
|
|
3325
|
+
--form-control-font-weight: var(--form-default-control-font-weight);
|
|
3326
|
+
--form-control-line-height: var(--form-default-control-line-height);
|
|
3327
|
+
--form-label-padding: var(--form-default-label-padding);
|
|
3328
|
+
--form-label-font-size: var(--form-default-label-font-size);
|
|
3329
|
+
--form-label-font-weight: var(--form-default-label-font-weight);
|
|
3330
|
+
--form-label-line-height: var(--form-default-label-line-height);
|
|
3331
|
+
--form-error-margin: var(--form-default-error-margin);
|
|
3332
|
+
--form-error-padding: var(--form-default-error-padding);
|
|
3333
|
+
--form-error-font-size: var(--form-default-error-font-size);
|
|
3334
|
+
--form-error-font-weight: var(--form-default-error-font-weight);
|
|
3335
|
+
--form-error-line-height: var(--form-default-error-line-height);
|
|
3336
|
+
--form-error-border: var(--form-default-error-border);
|
|
3337
|
+
--form-error-background-color: var(--form-default-error-background-color);
|
|
3338
|
+
--form-error-color: var(--form-default-error-color);
|
|
3282
3339
|
|
|
3283
3340
|
--font-base-size: var(--font-base-size-xs);
|
|
3284
3341
|
--grid-column-gap: var(--grid-default-column-gap-xs);
|
|
@@ -3938,10 +3995,13 @@ const Layout = /*#__PURE__*/React.forwardRef((_a, ref) => {
|
|
|
3938
3995
|
as = 'div'
|
|
3939
3996
|
} = _a,
|
|
3940
3997
|
props = __rest(_a, ["children", "as"]);
|
|
3998
|
+
const page = bomMixerHooks.usePage();
|
|
3941
3999
|
return jsxRuntime.jsx(StyledLayout, Object.assign({
|
|
3942
4000
|
ref: ref,
|
|
3943
4001
|
as: as
|
|
3944
4002
|
}, props, {
|
|
4003
|
+
"data-template": page.template,
|
|
4004
|
+
"data-id": page.id,
|
|
3945
4005
|
children: children
|
|
3946
4006
|
}));
|
|
3947
4007
|
});
|
|
@@ -3965,6 +4025,26 @@ const List = /*#__PURE__*/React.forwardRef((_a, ref) => {
|
|
|
3965
4025
|
});
|
|
3966
4026
|
List.displayName = 'List';
|
|
3967
4027
|
|
|
4028
|
+
const Wrapper = styled__default.default.main`
|
|
4029
|
+
${props => getCssResponsive(props)}
|
|
4030
|
+
`;
|
|
4031
|
+
const Main = /*#__PURE__*/React.forwardRef((_a, ref) => {
|
|
4032
|
+
var {
|
|
4033
|
+
className,
|
|
4034
|
+
children
|
|
4035
|
+
} = _a,
|
|
4036
|
+
props = __rest(_a, ["className", "children"]);
|
|
4037
|
+
const classNames = bomCore.getClassNames('main', className);
|
|
4038
|
+
return jsxRuntime.jsx(Wrapper, Object.assign({
|
|
4039
|
+
ref: ref,
|
|
4040
|
+
className: classNames,
|
|
4041
|
+
role: "main"
|
|
4042
|
+
}, props, {
|
|
4043
|
+
children: children
|
|
4044
|
+
}));
|
|
4045
|
+
});
|
|
4046
|
+
Main.displayName = 'Main';
|
|
4047
|
+
|
|
3968
4048
|
const MediaGalleryContext = /*#__PURE__*/React.createContext({});
|
|
3969
4049
|
function useMediaGalleryContext() {
|
|
3970
4050
|
return React.useContext(MediaGalleryContext);
|
|
@@ -3986,19 +4066,18 @@ const StyledMediaImage = styled__default.default.img`
|
|
|
3986
4066
|
`;
|
|
3987
4067
|
const MediaImage = _a => {
|
|
3988
4068
|
var {
|
|
3989
|
-
alt = '',
|
|
3990
4069
|
className,
|
|
3991
|
-
type
|
|
4070
|
+
type,
|
|
4071
|
+
loading = 'lazy'
|
|
3992
4072
|
} = _a,
|
|
3993
|
-
props = __rest(_a, ["
|
|
4073
|
+
props = __rest(_a, ["className", "type", "loading"]);
|
|
3994
4074
|
const classNames = bomCore.getClassNames(className, 'image', {
|
|
3995
4075
|
'image-svg': isSVG(props.src)
|
|
3996
4076
|
});
|
|
3997
4077
|
const imageProps = getImageProps(props);
|
|
3998
4078
|
return jsxRuntime.jsx(StyledMediaImage, Object.assign({
|
|
3999
4079
|
className: classNames,
|
|
4000
|
-
|
|
4001
|
-
loading: "lazy"
|
|
4080
|
+
loading: loading
|
|
4002
4081
|
}, imageProps));
|
|
4003
4082
|
};
|
|
4004
4083
|
function getImageProps(_a) {
|
|
@@ -4007,9 +4086,9 @@ function getImageProps(_a) {
|
|
|
4007
4086
|
} = _a,
|
|
4008
4087
|
props = __rest(_a, ["src"]);
|
|
4009
4088
|
if (IMAGE_STRATEGY === exports.ImageStrategy.None || isSVG(src)) {
|
|
4010
|
-
return {
|
|
4089
|
+
return Object.assign({
|
|
4011
4090
|
src
|
|
4012
|
-
};
|
|
4091
|
+
}, props);
|
|
4013
4092
|
}
|
|
4014
4093
|
const ratio = props.width && props.height ? parseInt(props.width.toString()) / parseInt(props.height.toString()) : 0;
|
|
4015
4094
|
const sizes = IMAGE_SIZES;
|
|
@@ -4155,9 +4234,12 @@ const MediaBase = /*#__PURE__*/React.forwardRef((_a, ref) => {
|
|
|
4155
4234
|
item,
|
|
4156
4235
|
onClick,
|
|
4157
4236
|
className,
|
|
4237
|
+
eager,
|
|
4238
|
+
alt,
|
|
4239
|
+
title,
|
|
4158
4240
|
as = 'div'
|
|
4159
4241
|
} = _a,
|
|
4160
|
-
props = __rest(_a, ["children", "item", "onClick", "className", "as"]);
|
|
4242
|
+
props = __rest(_a, ["children", "item", "onClick", "className", "eager", "alt", "title", "as"]);
|
|
4161
4243
|
const {
|
|
4162
4244
|
id,
|
|
4163
4245
|
open
|
|
@@ -4166,9 +4248,10 @@ const MediaBase = /*#__PURE__*/React.forwardRef((_a, ref) => {
|
|
|
4166
4248
|
'media--gallery': id
|
|
4167
4249
|
});
|
|
4168
4250
|
const mediaChildren = item && !children ? getMediaItems(item, {
|
|
4169
|
-
|
|
4170
|
-
eager: props.eager,
|
|
4251
|
+
eager,
|
|
4171
4252
|
galleryId: id,
|
|
4253
|
+
alt,
|
|
4254
|
+
title,
|
|
4172
4255
|
open
|
|
4173
4256
|
}) : children;
|
|
4174
4257
|
return jsxRuntime.jsx(StyledMedia$1, Object.assign({
|
|
@@ -4199,7 +4282,12 @@ function getMediaItems(itemOrItems, options) {
|
|
|
4199
4282
|
});
|
|
4200
4283
|
const hasGallery = options.galleryId != null && typeof options.open === 'function';
|
|
4201
4284
|
const getMediaItemProps = media => {
|
|
4202
|
-
const
|
|
4285
|
+
const title = media.title || options.title || media.alt || options.alt;
|
|
4286
|
+
const alt = media.alt || options.alt || media.title || options.title;
|
|
4287
|
+
const props = {
|
|
4288
|
+
title,
|
|
4289
|
+
alt
|
|
4290
|
+
};
|
|
4203
4291
|
if (hasGallery) {
|
|
4204
4292
|
props['data-gallery'] = JSON.stringify({
|
|
4205
4293
|
galleryId: options.galleryId,
|
|
@@ -4234,7 +4322,6 @@ function getMediaItems(itemOrItems, options) {
|
|
|
4234
4322
|
type: "video/mp4"
|
|
4235
4323
|
})
|
|
4236
4324
|
}), m) : jsxRuntime.jsx(MediaImage, Object.assign({}, media, {
|
|
4237
|
-
alt: media.alt,
|
|
4238
4325
|
draggable: false
|
|
4239
4326
|
}, getMediaItemProps(media)), m));
|
|
4240
4327
|
}
|
|
@@ -5227,26 +5314,26 @@ const defaultContext$5 = {};
|
|
|
5227
5314
|
const PaginationContext = /*#__PURE__*/React__default.default.createContext(defaultContext$5);
|
|
5228
5315
|
const usePaginationContext = () => React__default.default.useContext(PaginationContext);
|
|
5229
5316
|
|
|
5230
|
-
const StyledPaginationItem$1 = styled__default.default.
|
|
5317
|
+
const StyledPaginationItem$1 = styled__default.default.li`
|
|
5231
5318
|
margin-right: 0.428em;
|
|
5232
5319
|
display: inline-block;
|
|
5233
5320
|
|
|
5234
5321
|
button {
|
|
5235
|
-
|
|
5322
|
+
box-sizing: border-box;
|
|
5236
5323
|
display: inline-flex;
|
|
5237
5324
|
align-items: center;
|
|
5238
5325
|
justify-content: center;
|
|
5239
|
-
|
|
5240
|
-
|
|
5326
|
+
height: var(--pagination-size);
|
|
5327
|
+
min-width: var(--pagination-size);
|
|
5241
5328
|
user-select: none;
|
|
5242
5329
|
white-space: nowrap;
|
|
5243
5330
|
text-align: center;
|
|
5244
5331
|
vertical-align: middle;
|
|
5332
|
+
font-size: inherit;
|
|
5333
|
+
text-transform: capitalize;
|
|
5245
5334
|
box-shadow: none;
|
|
5246
5335
|
outline: none;
|
|
5247
|
-
|
|
5248
|
-
min-width: var(--pagination-size);
|
|
5249
|
-
font-size: inherit;
|
|
5336
|
+
border: none;
|
|
5250
5337
|
cursor: pointer;
|
|
5251
5338
|
color: var(--color-primary-500);
|
|
5252
5339
|
border-radius: var(--border-radius);
|
|
@@ -5286,25 +5373,26 @@ const StyledPaginationItem$1 = styled__default.default.div`
|
|
|
5286
5373
|
`;
|
|
5287
5374
|
const PaginationItem = _a => {
|
|
5288
5375
|
var {
|
|
5376
|
+
className,
|
|
5289
5377
|
children,
|
|
5290
5378
|
active,
|
|
5291
5379
|
disabled,
|
|
5292
5380
|
onClick
|
|
5293
5381
|
} = _a,
|
|
5294
|
-
props = __rest(_a, ["children", "active", "disabled", "onClick"]);
|
|
5382
|
+
props = __rest(_a, ["className", "children", "active", "disabled", "onClick"]);
|
|
5295
5383
|
const onClick_ = event => {
|
|
5296
5384
|
if (disabled) {
|
|
5297
5385
|
return;
|
|
5298
5386
|
}
|
|
5299
5387
|
onClick && onClick(event);
|
|
5300
5388
|
};
|
|
5301
|
-
const classNames = bomCore.getClassNames({
|
|
5389
|
+
const classNames = bomCore.getClassNames('pagination-item', className, {
|
|
5302
5390
|
active,
|
|
5303
5391
|
disabled
|
|
5304
5392
|
});
|
|
5305
5393
|
return jsxRuntime.jsx(StyledPaginationItem$1, {
|
|
5306
|
-
|
|
5307
|
-
|
|
5394
|
+
children: jsxRuntime.jsx(Button, Object.assign({
|
|
5395
|
+
"aria-label": props['aria-label'],
|
|
5308
5396
|
className: classNames,
|
|
5309
5397
|
onClick: onClick_
|
|
5310
5398
|
}, props, {
|
|
@@ -5324,7 +5412,10 @@ const PaginationNext = _a => {
|
|
|
5324
5412
|
isLast
|
|
5325
5413
|
} = usePaginationContext();
|
|
5326
5414
|
return jsxRuntime.jsx(PaginationItem, Object.assign({
|
|
5415
|
+
className: "pagination-next",
|
|
5327
5416
|
disabled: isLast,
|
|
5417
|
+
"aria-disabled": isLast,
|
|
5418
|
+
"aria-label": "next page",
|
|
5328
5419
|
onClick: () => update && update('next')
|
|
5329
5420
|
}, props, {
|
|
5330
5421
|
children: children
|
|
@@ -5339,38 +5430,40 @@ const StyledPaginationItem = styled__default.default(PaginationItem)`
|
|
|
5339
5430
|
width: 1em;
|
|
5340
5431
|
height: 1em;
|
|
5341
5432
|
}
|
|
5342
|
-
|
|
5343
|
-
|
|
5433
|
+
|
|
5434
|
+
.pagination-ellipsis__more {
|
|
5435
|
+
&.before {
|
|
5436
|
+
transform: rotate(180deg);
|
|
5437
|
+
}
|
|
5438
|
+
}
|
|
5439
|
+
|
|
5440
|
+
&:hover {
|
|
5441
|
+
.pagination-ellipsis__ellipsis {
|
|
5442
|
+
display: none;
|
|
5443
|
+
}
|
|
5444
|
+
}
|
|
5445
|
+
|
|
5446
|
+
&:not(:hover) {
|
|
5447
|
+
.pagination-ellipsis__more {
|
|
5448
|
+
display: none;
|
|
5449
|
+
}
|
|
5344
5450
|
}
|
|
5345
5451
|
`;
|
|
5346
|
-
const PaginationEllipsis =
|
|
5347
|
-
|
|
5348
|
-
|
|
5349
|
-
|
|
5350
|
-
|
|
5351
|
-
|
|
5352
|
-
const moreClassNames = bomCore.getClassNames('
|
|
5452
|
+
const PaginationEllipsis = _a => {
|
|
5453
|
+
var {
|
|
5454
|
+
isBefore,
|
|
5455
|
+
onClick
|
|
5456
|
+
} = _a,
|
|
5457
|
+
props = __rest(_a, ["isBefore", "onClick"]);
|
|
5458
|
+
const moreClassNames = bomCore.getClassNames('pagination-ellipsis__more', {
|
|
5353
5459
|
before: isBefore
|
|
5354
5460
|
});
|
|
5355
|
-
return jsxRuntime.
|
|
5356
|
-
|
|
5357
|
-
|
|
5358
|
-
|
|
5359
|
-
children:
|
|
5360
|
-
className:
|
|
5361
|
-
viewBox: "0 0 24 24",
|
|
5362
|
-
stroke: "currentColor",
|
|
5363
|
-
strokeWidth: "1.5",
|
|
5364
|
-
strokeLinecap: "round",
|
|
5365
|
-
strokeLinejoin: "round",
|
|
5366
|
-
fill: "none",
|
|
5367
|
-
shapeRendering: "geometricPrecision",
|
|
5368
|
-
children: [jsxRuntime.jsx("path", {
|
|
5369
|
-
d: "M13 17l5-5-5-5"
|
|
5370
|
-
}), jsxRuntime.jsx("path", {
|
|
5371
|
-
d: "M6 17l5-5-5-5"
|
|
5372
|
-
})]
|
|
5373
|
-
}) : jsxRuntime.jsxs("svg", {
|
|
5461
|
+
return jsxRuntime.jsxs(StyledPaginationItem, {
|
|
5462
|
+
className: "pagination-ellipsis",
|
|
5463
|
+
"aria-label": props['aria-label'],
|
|
5464
|
+
onClick: event => onClick && onClick(event),
|
|
5465
|
+
children: [jsxRuntime.jsxs("svg", {
|
|
5466
|
+
className: "pagination-ellipsis__ellipsis",
|
|
5374
5467
|
viewBox: "0 0 24 24",
|
|
5375
5468
|
strokeWidth: "1.5",
|
|
5376
5469
|
strokeLinecap: "round",
|
|
@@ -5393,7 +5486,21 @@ const PaginationEllipsis = _ref => {
|
|
|
5393
5486
|
r: "1",
|
|
5394
5487
|
fill: "currentColor"
|
|
5395
5488
|
})]
|
|
5396
|
-
})
|
|
5489
|
+
}), jsxRuntime.jsxs("svg", {
|
|
5490
|
+
className: moreClassNames,
|
|
5491
|
+
viewBox: "0 0 24 24",
|
|
5492
|
+
stroke: "currentColor",
|
|
5493
|
+
strokeWidth: "1.5",
|
|
5494
|
+
strokeLinecap: "round",
|
|
5495
|
+
strokeLinejoin: "round",
|
|
5496
|
+
fill: "none",
|
|
5497
|
+
shapeRendering: "geometricPrecision",
|
|
5498
|
+
children: [jsxRuntime.jsx("path", {
|
|
5499
|
+
d: "M13 17l5-5-5-5"
|
|
5500
|
+
}), jsxRuntime.jsx("path", {
|
|
5501
|
+
d: "M6 17l5-5-5-5"
|
|
5502
|
+
})]
|
|
5503
|
+
})]
|
|
5397
5504
|
});
|
|
5398
5505
|
};
|
|
5399
5506
|
PaginationEllipsis.displayName = 'PaginationEllipsis';
|
|
@@ -5416,6 +5523,7 @@ const PaginationPages = _ref => {
|
|
|
5416
5523
|
}, [current, middleNumber, count, limit]);
|
|
5417
5524
|
const pagesArray = React.useMemo(() => [...new Array(showPages)], [showPages]);
|
|
5418
5525
|
const renderItem = React.useCallback((value, active) => jsxRuntime.jsx(PaginationItem, {
|
|
5526
|
+
"aria-label": `page ${value}`,
|
|
5419
5527
|
active: value === active,
|
|
5420
5528
|
onClick: () => setPage(value),
|
|
5421
5529
|
children: value
|
|
@@ -5428,6 +5536,7 @@ const PaginationPages = _ref => {
|
|
|
5428
5536
|
const middleIndexNumber = middleNumber - (index + 1);
|
|
5429
5537
|
const value = current - middleIndexNumber;
|
|
5430
5538
|
return jsxRuntime.jsx(PaginationItem, {
|
|
5539
|
+
"aria-label": `page ${value}`,
|
|
5431
5540
|
active: index + 1 === middleNumber,
|
|
5432
5541
|
onClick: () => setPage(value),
|
|
5433
5542
|
children: value
|
|
@@ -5443,6 +5552,7 @@ const PaginationPages = _ref => {
|
|
|
5443
5552
|
children: [...new Array(count)].map((_, index) => {
|
|
5444
5553
|
const value = index + 1;
|
|
5445
5554
|
return jsxRuntime.jsx(PaginationItem, {
|
|
5555
|
+
"aria-label": `page ${value}`,
|
|
5446
5556
|
active: value === current,
|
|
5447
5557
|
onClick: () => setPage(value),
|
|
5448
5558
|
children: value
|
|
@@ -5454,9 +5564,11 @@ const PaginationPages = _ref => {
|
|
|
5454
5564
|
|
|
5455
5565
|
return jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
5456
5566
|
children: [renderItem(1, current), showBeforeEllipsis && jsxRuntime.jsx(PaginationEllipsis, {
|
|
5567
|
+
"aria-label": "previous pages",
|
|
5457
5568
|
isBefore: true,
|
|
5458
5569
|
onClick: () => setPage(last => last - 5 >= 1 ? last - 5 : 1)
|
|
5459
5570
|
}, "pagination-ellipsis-before"), showBeforeEllipsis && showAfterEllipsis ? renderMiddleItems : showBeforeEllipsis ? renderEndItems : renderStartItems, showAfterEllipsis && jsxRuntime.jsx(PaginationEllipsis, {
|
|
5571
|
+
"aria-label": "next pages",
|
|
5460
5572
|
onClick: () => setPage(last => last + 5 <= count ? last + 5 : count)
|
|
5461
5573
|
}, "pagination-ellipsis-after"), renderItem(count, current)]
|
|
5462
5574
|
});
|
|
@@ -5473,7 +5585,11 @@ const PaginationPrevious = _a => {
|
|
|
5473
5585
|
isFirst
|
|
5474
5586
|
} = usePaginationContext();
|
|
5475
5587
|
return jsxRuntime.jsx(PaginationItem, Object.assign({
|
|
5588
|
+
className: "pagination-previous",
|
|
5476
5589
|
disabled: isFirst,
|
|
5590
|
+
"aria-disabled": isFirst,
|
|
5591
|
+
"aria-label": "previous page",
|
|
5592
|
+
title: "previous page",
|
|
5477
5593
|
onClick: () => update && update('prev')
|
|
5478
5594
|
}, props, {
|
|
5479
5595
|
children: children
|
|
@@ -5482,18 +5598,29 @@ const PaginationPrevious = _a => {
|
|
|
5482
5598
|
PaginationPrevious.displayName = 'PaginationPrevious';
|
|
5483
5599
|
|
|
5484
5600
|
const StyledPagination = styled__default.default.div`
|
|
5601
|
+
--pagination-size: 2rem;
|
|
5485
5602
|
display: flex;
|
|
5486
5603
|
justify-content: center;
|
|
5604
|
+
${props => getCssResponsive(props)}
|
|
5605
|
+
`;
|
|
5606
|
+
const StyledNav = styled__default.default.ul`
|
|
5607
|
+
list-style: none;
|
|
5608
|
+
margin: 0;
|
|
5609
|
+
padding: 0;
|
|
5610
|
+
display: flex;
|
|
5611
|
+
align-items: center;
|
|
5612
|
+
justify-content: center;
|
|
5487
5613
|
font-variant: tabular-nums;
|
|
5488
5614
|
font-feature-settings: 'tnum';
|
|
5489
5615
|
font-size: 0.875rem;
|
|
5490
|
-
|
|
5616
|
+
|
|
5617
|
+
&>li {
|
|
5618
|
+
padding: 0;
|
|
5619
|
+
}
|
|
5491
5620
|
|
|
5492
5621
|
:global(button:last-of-type) {
|
|
5493
5622
|
margin-right: 0;
|
|
5494
5623
|
}
|
|
5495
|
-
|
|
5496
|
-
${props => getCssResponsive(props)}
|
|
5497
5624
|
`;
|
|
5498
5625
|
const PaginationBase = _a => {
|
|
5499
5626
|
var {
|
|
@@ -5506,6 +5633,7 @@ const PaginationBase = _a => {
|
|
|
5506
5633
|
onChange
|
|
5507
5634
|
} = _a,
|
|
5508
5635
|
props = __rest(_a, ["className", "initialPage", "count", "limit", "page", "children", "onChange"]);
|
|
5636
|
+
const label = bomMixerHooks.useLabel();
|
|
5509
5637
|
const [page, setPage, pageRef] = bomMixerHooks.useCurrentState(initialPage);
|
|
5510
5638
|
const [, prevChildren] = pickChild(children, PaginationPrevious);
|
|
5511
5639
|
const [, nextChildren] = pickChild(children, PaginationNext);
|
|
@@ -5547,16 +5675,20 @@ const PaginationBase = _a => {
|
|
|
5547
5675
|
}, [customPage]);
|
|
5548
5676
|
return jsxRuntime.jsx(PaginationContext.Provider, {
|
|
5549
5677
|
value: values,
|
|
5550
|
-
children: jsxRuntime.
|
|
5551
|
-
as: "nav",
|
|
5678
|
+
children: jsxRuntime.jsx(StyledPagination, Object.assign({
|
|
5552
5679
|
className: className
|
|
5553
5680
|
}, props, {
|
|
5554
|
-
|
|
5555
|
-
|
|
5556
|
-
|
|
5557
|
-
|
|
5558
|
-
|
|
5559
|
-
|
|
5681
|
+
as: "nav",
|
|
5682
|
+
role: "navigation",
|
|
5683
|
+
"aria-label": label('landmark.pagination'),
|
|
5684
|
+
children: jsxRuntime.jsxs(StyledNav, {
|
|
5685
|
+
children: [prevItem, jsxRuntime.jsx(PaginationPages, {
|
|
5686
|
+
count: count,
|
|
5687
|
+
current: page,
|
|
5688
|
+
limit: limit,
|
|
5689
|
+
setPage: setPage
|
|
5690
|
+
}), nextItem]
|
|
5691
|
+
})
|
|
5560
5692
|
}))
|
|
5561
5693
|
});
|
|
5562
5694
|
};
|
|
@@ -6657,8 +6789,9 @@ const Tabs = bomCore.withSchema(TabsBase, {
|
|
|
6657
6789
|
const CssFormControl = styled.css`
|
|
6658
6790
|
appearance: none;
|
|
6659
6791
|
font-family: inherit;
|
|
6660
|
-
font-size: var(--form-font-size);
|
|
6661
|
-
|
|
6792
|
+
font-size: var(--form-control-font-size);
|
|
6793
|
+
font-weight: var(--form-control-font-weight);
|
|
6794
|
+
line-height: var(--form-control-line-height);
|
|
6662
6795
|
border: var(--form-border);
|
|
6663
6796
|
border-width: var(--form-border-width);
|
|
6664
6797
|
border-color: var(--form-border-color);
|
|
@@ -6798,9 +6931,10 @@ function autocompleteHighligth(text, query) {
|
|
|
6798
6931
|
const StyledAutocompleteItem = styled__default.default.div`
|
|
6799
6932
|
display: block;
|
|
6800
6933
|
width: 100%;
|
|
6801
|
-
padding: var(--form-padding);
|
|
6802
|
-
font-size: var(--form-font-size);
|
|
6803
|
-
|
|
6934
|
+
padding: var(--form-control-padding);
|
|
6935
|
+
font-size: var(--form-control-font-size);
|
|
6936
|
+
font-weight: var(--form-control-font-weight);
|
|
6937
|
+
line-height: var(--form-control-line-height);
|
|
6804
6938
|
color: inherit;
|
|
6805
6939
|
background-color: transparent;
|
|
6806
6940
|
border-color: var(--color-neutral-200);
|
|
@@ -6845,8 +6979,8 @@ const StyledAutocompleteContainer = styled__default.default.div`
|
|
|
6845
6979
|
&>.button {
|
|
6846
6980
|
line-height: inherit;
|
|
6847
6981
|
font-size: inherit;
|
|
6848
|
-
padding-top: var(--form-padding);
|
|
6849
|
-
padding-bottom: var(--form-padding);
|
|
6982
|
+
padding-top: var(--form-control-padding);
|
|
6983
|
+
padding-bottom: var(--form-control-padding);
|
|
6850
6984
|
margin: -2px;
|
|
6851
6985
|
}
|
|
6852
6986
|
|
|
@@ -6867,16 +7001,17 @@ const StyledAutocompleteContainer = styled__default.default.div`
|
|
|
6867
7001
|
const StyledAutocomplete = styled__default.default.div`
|
|
6868
7002
|
display: block;
|
|
6869
7003
|
appearance: none;
|
|
6870
|
-
padding: var(--form-padding);
|
|
6871
|
-
font-size: var(--form-font-size);
|
|
6872
|
-
|
|
7004
|
+
padding: var(--form-control-padding);
|
|
7005
|
+
font-size: var(--form-control-font-size);
|
|
7006
|
+
font-weight: var(--form-control-font-weight);
|
|
7007
|
+
line-height: var(--form-control-line-height);
|
|
6873
7008
|
color: inherit;
|
|
6874
7009
|
background-color: transparent;
|
|
6875
7010
|
border: none;
|
|
6876
7011
|
outline: none;
|
|
6877
7012
|
|
|
6878
7013
|
&:not(:first-child) {
|
|
6879
|
-
padding-left: calc(var(--form-padding) * 0.5);
|
|
7014
|
+
padding-left: calc(var(--form-control-padding) * 0.5);
|
|
6880
7015
|
}
|
|
6881
7016
|
|
|
6882
7017
|
${props => getCssResponsive(props)}
|
|
@@ -6891,9 +7026,11 @@ const Autocomplete = /*#__PURE__*/React.forwardRef((_a, ref) => {
|
|
|
6891
7026
|
onFocus,
|
|
6892
7027
|
onBlur,
|
|
6893
7028
|
onDropdownVisibleChange = () => {},
|
|
6894
|
-
onAutocomplete
|
|
7029
|
+
onAutocomplete,
|
|
7030
|
+
id,
|
|
7031
|
+
name
|
|
6895
7032
|
} = _a,
|
|
6896
|
-
props = __rest(_a, ["className", "initialValue", "before", "after", "source", "onFocus", "onBlur", "onDropdownVisibleChange", "onAutocomplete"]);
|
|
7033
|
+
props = __rest(_a, ["className", "initialValue", "before", "after", "source", "onFocus", "onBlur", "onDropdownVisibleChange", "onAutocomplete", "id", "name"]);
|
|
6897
7034
|
const innerRef = React.useRef(null);
|
|
6898
7035
|
const dropdownRef = React.useRef(null);
|
|
6899
7036
|
React.useImperativeHandle(ref, () => innerRef.current);
|
|
@@ -6977,6 +7114,8 @@ const Autocomplete = /*#__PURE__*/React.forwardRef((_a, ref) => {
|
|
|
6977
7114
|
ref: innerRef,
|
|
6978
7115
|
as: "input",
|
|
6979
7116
|
type: "text",
|
|
7117
|
+
id: id,
|
|
7118
|
+
name: name,
|
|
6980
7119
|
onFocus: onFocus_,
|
|
6981
7120
|
onBlur: onBlur_,
|
|
6982
7121
|
onChange: onChange_
|
|
@@ -7213,6 +7352,8 @@ const StyledInput$1 = styled__default.default.input`
|
|
|
7213
7352
|
const CustomSelectInput = /*#__PURE__*/React__default.default.forwardRef((_ref, inputRef) => {
|
|
7214
7353
|
let {
|
|
7215
7354
|
visible,
|
|
7355
|
+
id,
|
|
7356
|
+
name,
|
|
7216
7357
|
onBlur,
|
|
7217
7358
|
onFocus
|
|
7218
7359
|
} = _ref;
|
|
@@ -7224,18 +7365,18 @@ const CustomSelectInput = /*#__PURE__*/React__default.default.forwardRef((_ref,
|
|
|
7224
7365
|
(_a = ref.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
7225
7366
|
}
|
|
7226
7367
|
}, [visible]);
|
|
7227
|
-
return jsxRuntime.jsx(
|
|
7228
|
-
|
|
7229
|
-
|
|
7230
|
-
|
|
7231
|
-
|
|
7232
|
-
|
|
7233
|
-
|
|
7234
|
-
|
|
7235
|
-
|
|
7236
|
-
|
|
7237
|
-
|
|
7238
|
-
|
|
7368
|
+
return jsxRuntime.jsx(StyledInput$1, {
|
|
7369
|
+
ref: ref,
|
|
7370
|
+
id: id,
|
|
7371
|
+
name: name,
|
|
7372
|
+
type: "search",
|
|
7373
|
+
role: "combobox",
|
|
7374
|
+
"aria-haspopup": "listbox",
|
|
7375
|
+
readOnly: true,
|
|
7376
|
+
unselectable: "on",
|
|
7377
|
+
"aria-expanded": visible,
|
|
7378
|
+
onBlur: onBlur,
|
|
7379
|
+
onFocus: onFocus
|
|
7239
7380
|
});
|
|
7240
7381
|
});
|
|
7241
7382
|
CustomSelectInput.displayName = 'CustomSelectInput';
|
|
@@ -7402,7 +7543,7 @@ CustomSelectOption.displayName = 'CustomSelectOption';
|
|
|
7402
7543
|
const StyledCustomSelect = styled__default.default.div`
|
|
7403
7544
|
${CssFormControl}
|
|
7404
7545
|
|
|
7405
|
-
padding: var(--form-padding);
|
|
7546
|
+
padding: var(--form-control-padding);
|
|
7406
7547
|
position: relative;
|
|
7407
7548
|
display: inline-flex;
|
|
7408
7549
|
justify-content: space-between;
|
|
@@ -7441,7 +7582,7 @@ const StyledCustomSelect = styled__default.default.div`
|
|
|
7441
7582
|
}
|
|
7442
7583
|
|
|
7443
7584
|
&.multiple {
|
|
7444
|
-
padding: calc(var(--form-padding) * 0.675);
|
|
7585
|
+
padding: calc(var(--form-control-padding) * 0.675);
|
|
7445
7586
|
|
|
7446
7587
|
.placeholder {
|
|
7447
7588
|
padding: 0.563rem 0;
|
|
@@ -7476,9 +7617,11 @@ const CustomSelectBase = /*#__PURE__*/React.forwardRef((_a, selectRef) => {
|
|
|
7476
7617
|
dropdownStyle,
|
|
7477
7618
|
getPopupContainer,
|
|
7478
7619
|
onBlur,
|
|
7479
|
-
onFocus
|
|
7620
|
+
onFocus,
|
|
7621
|
+
id,
|
|
7622
|
+
name
|
|
7480
7623
|
} = _a,
|
|
7481
|
-
props = __rest(_a, ["disabled", "pure", "multiple", "clearable", "className", "disableMatchWidth", "onDropdownVisibleChange", "value", "initialValue", "icon", "children", "onChange", "placeholder", "dropdownClassName", "dropdownStyle", "getPopupContainer", "onBlur", "onFocus"]);
|
|
7624
|
+
props = __rest(_a, ["disabled", "pure", "multiple", "clearable", "className", "disableMatchWidth", "onDropdownVisibleChange", "value", "initialValue", "icon", "children", "onChange", "placeholder", "dropdownClassName", "dropdownStyle", "getPopupContainer", "onBlur", "onFocus", "id", "name"]);
|
|
7482
7625
|
const Icon = icon || SelectIcon;
|
|
7483
7626
|
const ref = React.useRef(null);
|
|
7484
7627
|
const inputRef = React.useRef(null);
|
|
@@ -7612,7 +7755,8 @@ const CustomSelectBase = /*#__PURE__*/React.forwardRef((_a, selectRef) => {
|
|
|
7612
7755
|
}, props, {
|
|
7613
7756
|
children: [jsxRuntime.jsx(CustomSelectInput, {
|
|
7614
7757
|
ref: inputRef,
|
|
7615
|
-
|
|
7758
|
+
id: id,
|
|
7759
|
+
name: name,
|
|
7616
7760
|
visible: visible,
|
|
7617
7761
|
onFocus: onFocus_,
|
|
7618
7762
|
onBlur: onBlur_
|
|
@@ -7653,11 +7797,32 @@ const CustomSelect = bomCore.withSchema(CustomSelectBase, {
|
|
|
7653
7797
|
const CssFieldDefault = styled.css`
|
|
7654
7798
|
display: flex;
|
|
7655
7799
|
flex-direction: column;
|
|
7656
|
-
|
|
7800
|
+
gap: var(--form-field-gap);
|
|
7657
7801
|
|
|
7658
7802
|
label {
|
|
7659
|
-
|
|
7660
|
-
|
|
7803
|
+
padding: var(--form-label-padding);
|
|
7804
|
+
font-size: var(--form-label-font-size);
|
|
7805
|
+
font-weight: var(--form-label-font-weight);
|
|
7806
|
+
line-height: var(--form-label-line-height);
|
|
7807
|
+
}
|
|
7808
|
+
|
|
7809
|
+
&.invalid {
|
|
7810
|
+
|
|
7811
|
+
label {
|
|
7812
|
+
&:after {
|
|
7813
|
+
content: '*';
|
|
7814
|
+
display: inline-block;
|
|
7815
|
+
padding-left: 0.3em;
|
|
7816
|
+
}
|
|
7817
|
+
}
|
|
7818
|
+
|
|
7819
|
+
&.touched {
|
|
7820
|
+
label {
|
|
7821
|
+
&:after {
|
|
7822
|
+
color: var(--form-error-color, inherit);
|
|
7823
|
+
}
|
|
7824
|
+
}
|
|
7825
|
+
}
|
|
7661
7826
|
}
|
|
7662
7827
|
`;
|
|
7663
7828
|
const fieldVariants = {
|
|
@@ -7671,11 +7836,12 @@ const StyledField = styled__default.default.div`
|
|
|
7671
7836
|
const Field = /*#__PURE__*/React.forwardRef((_a, ref) => {
|
|
7672
7837
|
var {
|
|
7673
7838
|
className,
|
|
7839
|
+
state,
|
|
7674
7840
|
variant = 'default',
|
|
7675
7841
|
variants
|
|
7676
7842
|
} = _a,
|
|
7677
|
-
props = __rest(_a, ["className", "variant", "variants"]);
|
|
7678
|
-
const classNames = bomCore.getClassNames('
|
|
7843
|
+
props = __rest(_a, ["className", "state", "variant", "variants"]);
|
|
7844
|
+
const classNames = bomCore.getClassNames('field', className, variant, state === null || state === void 0 ? void 0 : state.flags);
|
|
7679
7845
|
const globalVariants = useVariants('field', fieldVariants);
|
|
7680
7846
|
variants = variants || globalVariants;
|
|
7681
7847
|
return jsxRuntime.jsx(StyledField, Object.assign({
|
|
@@ -7689,12 +7855,24 @@ const Field = /*#__PURE__*/React.forwardRef((_a, ref) => {
|
|
|
7689
7855
|
Field.displayName = 'Field';
|
|
7690
7856
|
|
|
7691
7857
|
const CssFormErrorDefault = styled.css`
|
|
7692
|
-
|
|
7693
|
-
font-weight:
|
|
7858
|
+
font-size: var(--form-error-font-size, 0.9rem);
|
|
7859
|
+
font-weight: var(--form-error-font-weight, 500);
|
|
7860
|
+
line-height: var(--form-error-line-height, 1.2);
|
|
7861
|
+
border: var(--form-error-border, none);
|
|
7862
|
+
background: var(--form-error-background-color, transparent);
|
|
7863
|
+
color: var(--form-error-color, inherit);
|
|
7864
|
+
|
|
7865
|
+
padding: var(--form-control-padding);
|
|
7694
7866
|
text-align: center;
|
|
7867
|
+
|
|
7868
|
+
/*
|
|
7869
|
+
font-weight: 700;
|
|
7870
|
+
*/
|
|
7871
|
+
/*
|
|
7695
7872
|
border: 1px solid var(--form-border-color-error);
|
|
7696
7873
|
background: var(--form-background-color-error);
|
|
7697
7874
|
color: var(--form-color-error);
|
|
7875
|
+
*/
|
|
7698
7876
|
`;
|
|
7699
7877
|
const formErrorVariants = {
|
|
7700
7878
|
default: CssFormErrorDefault
|
|
@@ -7724,7 +7902,7 @@ const FormError = /*#__PURE__*/React.forwardRef((_a, ref) => {
|
|
|
7724
7902
|
FormError.displayName = 'FormError';
|
|
7725
7903
|
|
|
7726
7904
|
const CssFormTesterDefault = styled.css`
|
|
7727
|
-
padding: var(--form-padding);
|
|
7905
|
+
padding: var(--form-control-padding);
|
|
7728
7906
|
border: 1px solid var(--form-border-color-info);
|
|
7729
7907
|
background: var(--form-background-color-info);
|
|
7730
7908
|
color: var(--form-color-info);
|
|
@@ -7860,28 +8038,6 @@ function getForm(props) {
|
|
|
7860
8038
|
} else {
|
|
7861
8039
|
return undefined;
|
|
7862
8040
|
}
|
|
7863
|
-
/*
|
|
7864
|
-
return css`
|
|
7865
|
-
--form-font-size: var(--form-${variant}-font-size, 1rem);
|
|
7866
|
-
--form-line-height: var(--form-${variant}-line-height, 1.625);
|
|
7867
|
-
--form-padding: var(--form-${variant}-padding, 0.8em);
|
|
7868
|
-
--form-background-color: var(--form-${variant}-background-color, transparent);
|
|
7869
|
-
--form-background-color-disabled: var(--form-${variant}-background-color-disabled, var(--color-neutral-200));
|
|
7870
|
-
--form-color: var(--form-${variant}-color, inherit);
|
|
7871
|
-
--form-color-hover: var(--form-${variant}-color-hover, var(--color-neutral-900));
|
|
7872
|
-
--form-border: var(--form-${variant}-border, 0 solid transparent);
|
|
7873
|
-
--form-border-width: var(--form-${variant}-border-width, 2px);
|
|
7874
|
-
--form-border-color: var(--form-${variant}-border-color, var(--color-neutral-200));
|
|
7875
|
-
--form-border-color-hover: var(--form-${variant}-border-color-hover, var(--color-neutral-300));
|
|
7876
|
-
--form-border-color-disabled: var(--form-${variant}-border-color-disabled, var(--color-neutral-300));
|
|
7877
|
-
--form-border-radius: var(--form-${variant}-border-radius, var(--border-radius));
|
|
7878
|
-
--form-outline: var(--form-${variant}-outline, 2px solid transparent);
|
|
7879
|
-
--form-outline-color-focus: var(--form-${variant}-outline-color-focus, var(--color-primary-200));
|
|
7880
|
-
--form-outline-color-active: var(--form-${variant}-outline-color-active, var(--color-primary-500));
|
|
7881
|
-
--form-outline-offset: var(--form-${variant}-outline-offset, 2px);
|
|
7882
|
-
--form-transition: var(--form-${variant}-transition, border 150ms ease-in 0s, outline-color 150ms ease-in 0s, color 200ms ease-out 0s, box-shadow 200ms ease 0s);
|
|
7883
|
-
`;
|
|
7884
|
-
*/
|
|
7885
8041
|
}
|
|
7886
8042
|
|
|
7887
8043
|
const CssInputContainerDefault = styled.css`
|
|
@@ -7933,9 +8089,10 @@ const CssInputReset = styled.css`
|
|
|
7933
8089
|
const CssInputDefault = styled.css`
|
|
7934
8090
|
${CssInputReset}
|
|
7935
8091
|
|
|
7936
|
-
padding: var(--form-padding);
|
|
7937
|
-
font-size: var(--form-font-size);
|
|
7938
|
-
|
|
8092
|
+
padding: var(--form-control-padding);
|
|
8093
|
+
font-size: var(--form-control-font-size);
|
|
8094
|
+
font-weight: var(--form-control-font-weight);
|
|
8095
|
+
line-height: var(--form-control-line-height);
|
|
7939
8096
|
border-radius: var(--form-border-radius);
|
|
7940
8097
|
|
|
7941
8098
|
&::placeholder {
|
|
@@ -7967,9 +8124,11 @@ const Input = /*#__PURE__*/React.forwardRef((_a, ref) => {
|
|
|
7967
8124
|
onFocus,
|
|
7968
8125
|
onBlur,
|
|
7969
8126
|
variant = 'default',
|
|
7970
|
-
variants
|
|
8127
|
+
variants,
|
|
8128
|
+
id,
|
|
8129
|
+
name
|
|
7971
8130
|
} = _a,
|
|
7972
|
-
props = __rest(_a, ["as", "className", "before", "after", "type", "onFocus", "onBlur", "variant", "variants"]);
|
|
8131
|
+
props = __rest(_a, ["as", "className", "before", "after", "type", "onFocus", "onBlur", "variant", "variants", "id", "name"]);
|
|
7973
8132
|
const [focus, setFocus] = React.useState(false);
|
|
7974
8133
|
const onFocus_ = event => {
|
|
7975
8134
|
onFocus && onFocus(event);
|
|
@@ -7996,6 +8155,8 @@ const Input = /*#__PURE__*/React.forwardRef((_a, ref) => {
|
|
|
7996
8155
|
ref: ref,
|
|
7997
8156
|
as: as,
|
|
7998
8157
|
type: type,
|
|
8158
|
+
id: id,
|
|
8159
|
+
name: name,
|
|
7999
8160
|
onFocus: onFocus_,
|
|
8000
8161
|
onBlur: onBlur_,
|
|
8001
8162
|
variant: variant,
|
|
@@ -8008,10 +8169,11 @@ Input.displayName = 'Input';
|
|
|
8008
8169
|
const StyledInputGroup = styled__default.default.div`
|
|
8009
8170
|
display: block;
|
|
8010
8171
|
width: 100%;
|
|
8011
|
-
padding: var(--form-padding);
|
|
8172
|
+
padding: var(--form-control-padding);
|
|
8012
8173
|
appearance: none;
|
|
8013
|
-
font-size: var(--form-font-size);
|
|
8014
|
-
|
|
8174
|
+
font-size: var(--form-control-font-size);
|
|
8175
|
+
font-weight: var(--form-control-font-weight);
|
|
8176
|
+
line-height: var(--form-control-line-height);
|
|
8015
8177
|
border: 2px solid;
|
|
8016
8178
|
border-radius: var(--border-radius);
|
|
8017
8179
|
color: inherit;
|
|
@@ -8050,7 +8212,9 @@ const CssLabelDefault = styled.css`
|
|
|
8050
8212
|
display: flex;
|
|
8051
8213
|
align-items: center;
|
|
8052
8214
|
width: 100%;
|
|
8053
|
-
font-size: var(--
|
|
8215
|
+
font-size: var(--form-label-font-size, 0.9rem);
|
|
8216
|
+
font-weight: var(--form-label-font-weight, 500);
|
|
8217
|
+
line-height: var(--form-label-line-height, 1.2);
|
|
8054
8218
|
cursor: pointer;
|
|
8055
8219
|
`;
|
|
8056
8220
|
const labelVariants = {
|
|
@@ -9018,7 +9182,7 @@ const StyledSelectSelect = styled__default.default.div`
|
|
|
9018
9182
|
|
|
9019
9183
|
display: block;
|
|
9020
9184
|
width: 100%;
|
|
9021
|
-
padding: var(--form-padding);
|
|
9185
|
+
padding: var(--form-control-padding);
|
|
9022
9186
|
appearance: none;
|
|
9023
9187
|
cursor: pointer;
|
|
9024
9188
|
|
|
@@ -9067,7 +9231,7 @@ const CssTextareaDefault = styled.css`
|
|
|
9067
9231
|
${CssFormControl}
|
|
9068
9232
|
display: block;
|
|
9069
9233
|
width: 100%;
|
|
9070
|
-
padding: var(--form-padding);
|
|
9234
|
+
padding: var(--form-control-padding);
|
|
9071
9235
|
resize: vertical;
|
|
9072
9236
|
min-height: 4em;
|
|
9073
9237
|
cursor: pointer;
|
|
@@ -9085,17 +9249,35 @@ const TextArea = /*#__PURE__*/React.forwardRef((_a, ref) => {
|
|
|
9085
9249
|
as = 'textarea',
|
|
9086
9250
|
children,
|
|
9087
9251
|
className,
|
|
9252
|
+
onFocus,
|
|
9253
|
+
onBlur,
|
|
9088
9254
|
variant = 'default',
|
|
9089
9255
|
variants
|
|
9090
9256
|
} = _a,
|
|
9091
|
-
props = __rest(_a, ["as", "children", "className", "variant", "variants"]);
|
|
9092
|
-
const
|
|
9257
|
+
props = __rest(_a, ["as", "children", "className", "onFocus", "onBlur", "variant", "variants"]);
|
|
9258
|
+
const [focus, setFocus] = React.useState(false);
|
|
9259
|
+
const onFocus_ = event => {
|
|
9260
|
+
onFocus && onFocus(event);
|
|
9261
|
+
setFocus(true);
|
|
9262
|
+
};
|
|
9263
|
+
const onBlur_ = event => {
|
|
9264
|
+
onBlur && onBlur(event);
|
|
9265
|
+
setFocus(false);
|
|
9266
|
+
};
|
|
9267
|
+
const classNames = bomCore.getClassNames('textarea', {
|
|
9268
|
+
focus,
|
|
9269
|
+
disabled: props.disabled,
|
|
9270
|
+
readonly: props.readOnly,
|
|
9271
|
+
hidden: props.hidden
|
|
9272
|
+
}, className, variant);
|
|
9093
9273
|
const globalVariants = useVariants('textarea', textareaVariants);
|
|
9094
9274
|
variants = variants || globalVariants;
|
|
9095
9275
|
return jsxRuntime.jsx(StyledTextArea, Object.assign({
|
|
9096
9276
|
className: classNames,
|
|
9097
9277
|
ref: ref,
|
|
9098
9278
|
as: as,
|
|
9279
|
+
onFocus: onFocus_,
|
|
9280
|
+
onBlur: onBlur_,
|
|
9099
9281
|
variant: variant,
|
|
9100
9282
|
variants: variants
|
|
9101
9283
|
}, props, {
|
|
@@ -9105,13 +9287,14 @@ const TextArea = /*#__PURE__*/React.forwardRef((_a, ref) => {
|
|
|
9105
9287
|
TextArea.displayName = 'TextArea';
|
|
9106
9288
|
|
|
9107
9289
|
const CssFieldErrorDefault = styled.css`
|
|
9108
|
-
margin:
|
|
9109
|
-
padding:
|
|
9110
|
-
font-size: var(--
|
|
9111
|
-
font-weight: 500;
|
|
9112
|
-
|
|
9113
|
-
|
|
9114
|
-
|
|
9290
|
+
margin: var(--form-error-margin, 0);
|
|
9291
|
+
padding: var(--form-error-padding, 0);
|
|
9292
|
+
font-size: var(--form-error-font-size, 0.9rem);
|
|
9293
|
+
font-weight: var(--form-error-font-weight, 500);
|
|
9294
|
+
line-height: var(--form-error-line-height, 1.2);
|
|
9295
|
+
border: var(--form-error-border, none);
|
|
9296
|
+
background: var(--form-error-background-color, transparent);
|
|
9297
|
+
color: var(--form-error-color, inherit);
|
|
9115
9298
|
`;
|
|
9116
9299
|
const fieldErrorVariants = {
|
|
9117
9300
|
default: CssFieldErrorDefault
|
|
@@ -9144,9 +9327,16 @@ function FieldError(_a) {
|
|
|
9144
9327
|
});
|
|
9145
9328
|
}
|
|
9146
9329
|
|
|
9147
|
-
function FieldAccept(
|
|
9330
|
+
function FieldAccept(_ref) {
|
|
9331
|
+
let {
|
|
9332
|
+
control,
|
|
9333
|
+
uid = 0
|
|
9334
|
+
} = _ref;
|
|
9148
9335
|
const label = bomMixerHooks.useLabel();
|
|
9149
|
-
const
|
|
9336
|
+
const uniqueName = `${control.name}-${uid}`;
|
|
9337
|
+
const uniqueNameTrue = `${uniqueName}-true`;
|
|
9338
|
+
const uniqueNameFalse = `${uniqueName}-false`;
|
|
9339
|
+
const [state, setValue, setTouched] = bomMixerForms.useControl(control);
|
|
9150
9340
|
const onSelect = value => {
|
|
9151
9341
|
// console.log('value', value);
|
|
9152
9342
|
setValue(value);
|
|
@@ -9166,6 +9356,7 @@ function FieldAccept(props) {
|
|
|
9166
9356
|
type: "hidden",
|
|
9167
9357
|
value: state.value ? 'true' : 'false'
|
|
9168
9358
|
}) : jsxRuntime.jsxs(Field, {
|
|
9359
|
+
state: state,
|
|
9169
9360
|
padding: "1em 0",
|
|
9170
9361
|
borderBottom: "1px solid var(--color-neutral-200)",
|
|
9171
9362
|
children: [jsxRuntime.jsxs(Radio.Group, {
|
|
@@ -9175,18 +9366,24 @@ function FieldAccept(props) {
|
|
|
9175
9366
|
onFocus: onFocus,
|
|
9176
9367
|
disabled: state.flags.disabled || state.flags.readonly,
|
|
9177
9368
|
children: [jsxRuntime.jsxs(Label, {
|
|
9369
|
+
htmlFor: uniqueNameTrue,
|
|
9178
9370
|
width: "auto",
|
|
9179
9371
|
children: [jsxRuntime.jsx(Radio, {
|
|
9180
|
-
value: "true"
|
|
9181
|
-
|
|
9372
|
+
value: "true",
|
|
9373
|
+
name: uniqueNameTrue,
|
|
9374
|
+
id: uniqueNameTrue
|
|
9375
|
+
}), label('form.accept.true')]
|
|
9182
9376
|
}), jsxRuntime.jsxs(Label, {
|
|
9377
|
+
htmlFor: uniqueNameFalse,
|
|
9183
9378
|
width: "auto",
|
|
9184
9379
|
children: [jsxRuntime.jsx(Radio, {
|
|
9185
|
-
value: "false"
|
|
9186
|
-
|
|
9380
|
+
value: "false",
|
|
9381
|
+
name: uniqueNameFalse,
|
|
9382
|
+
id: uniqueNameFalse
|
|
9383
|
+
}), label('form.accept.false')]
|
|
9187
9384
|
})]
|
|
9188
|
-
}),
|
|
9189
|
-
children: label(
|
|
9385
|
+
}), control.label && jsxRuntime.jsx(Text, {
|
|
9386
|
+
children: label(control.label)
|
|
9190
9387
|
}), jsxRuntime.jsx(FieldError, {
|
|
9191
9388
|
state: state
|
|
9192
9389
|
})]
|
|
@@ -9194,12 +9391,16 @@ function FieldAccept(props) {
|
|
|
9194
9391
|
}
|
|
9195
9392
|
|
|
9196
9393
|
// !!! todo
|
|
9197
|
-
function FieldAutocomplete(
|
|
9394
|
+
function FieldAutocomplete(_ref) {
|
|
9395
|
+
let {
|
|
9396
|
+
control,
|
|
9397
|
+
uid = 0
|
|
9398
|
+
} = _ref;
|
|
9198
9399
|
const label = bomMixerHooks.useLabel();
|
|
9199
|
-
const uniqueName = `${
|
|
9200
|
-
const [state, setValue, setTouched] = bomMixerForms.useControl(
|
|
9400
|
+
const uniqueName = `${control.name}-${uid}`;
|
|
9401
|
+
const [state, setValue, setTouched] = bomMixerForms.useControl(control);
|
|
9201
9402
|
const onChange = value => {
|
|
9202
|
-
const valueOrValues = bomMixerForms.stringToValue(value,
|
|
9403
|
+
const valueOrValues = bomMixerForms.stringToValue(value, control.options);
|
|
9203
9404
|
setValue(valueOrValues);
|
|
9204
9405
|
};
|
|
9205
9406
|
const [focus, setFocus] = React.useState(false);
|
|
@@ -9225,7 +9426,7 @@ function FieldAutocomplete(props) {
|
|
|
9225
9426
|
}
|
|
9226
9427
|
function source(query) {
|
|
9227
9428
|
return new Promise((resolve, reject) => {
|
|
9228
|
-
const options = (
|
|
9429
|
+
const options = (control.options || []).filter(x => {
|
|
9229
9430
|
const name = x.name.toString().toLowerCase();
|
|
9230
9431
|
return name.indexOf(query.toLowerCase()) !== -1;
|
|
9231
9432
|
}).map(x => {
|
|
@@ -9239,8 +9440,8 @@ function FieldAutocomplete(props) {
|
|
|
9239
9440
|
}
|
|
9240
9441
|
const initialValue = React.useMemo(() => {
|
|
9241
9442
|
var _a;
|
|
9242
|
-
if ((_a =
|
|
9243
|
-
const options =
|
|
9443
|
+
if ((_a = control.optionsExtra) === null || _a === void 0 ? void 0 : _a.asEquatable) {
|
|
9444
|
+
const options = control.options || [];
|
|
9244
9445
|
if (!state.value) {
|
|
9245
9446
|
return undefined;
|
|
9246
9447
|
}
|
|
@@ -9262,19 +9463,21 @@ function FieldAutocomplete(props) {
|
|
|
9262
9463
|
type: "hidden",
|
|
9263
9464
|
value: bomMixerForms.valueToString(state.value)
|
|
9264
9465
|
}) : jsxRuntime.jsxs(Field, {
|
|
9265
|
-
|
|
9266
|
-
|
|
9466
|
+
state: state,
|
|
9467
|
+
children: [jsxRuntime.jsx(Label, {
|
|
9468
|
+
htmlFor: uniqueName,
|
|
9469
|
+
children: control.label && label(control.label)
|
|
9267
9470
|
}), jsxRuntime.jsx(Autocomplete, {
|
|
9268
|
-
background: "var(--color-neutral-100)",
|
|
9269
|
-
overflow: "hidden",
|
|
9270
9471
|
id: uniqueName,
|
|
9271
9472
|
name: uniqueName,
|
|
9272
|
-
placeholder: label(
|
|
9473
|
+
placeholder: label(control.placeholder || control.label || ''),
|
|
9273
9474
|
initialValue: initialValue,
|
|
9274
9475
|
source: source,
|
|
9275
9476
|
onAutocomplete: onAutocomplete,
|
|
9276
9477
|
onFocus: onFocus,
|
|
9277
|
-
onBlur: onBlur
|
|
9478
|
+
onBlur: onBlur,
|
|
9479
|
+
background: "var(--color-neutral-100)",
|
|
9480
|
+
overflow: "hidden"
|
|
9278
9481
|
}), jsxRuntime.jsx(FieldError, {
|
|
9279
9482
|
state: state
|
|
9280
9483
|
})]
|
|
@@ -9284,10 +9487,10 @@ function FieldAutocomplete(props) {
|
|
|
9284
9487
|
function FieldCard(_a) {
|
|
9285
9488
|
var _b, _c;
|
|
9286
9489
|
var {
|
|
9287
|
-
|
|
9288
|
-
|
|
9490
|
+
control,
|
|
9491
|
+
uid = 0
|
|
9289
9492
|
} = _a,
|
|
9290
|
-
props = __rest(_a, ["
|
|
9493
|
+
props = __rest(_a, ["control", "uid"]);
|
|
9291
9494
|
const label = bomMixerHooks.useLabel();
|
|
9292
9495
|
const uniqueName = `${control.name}-${uid}`;
|
|
9293
9496
|
const [state, setValue, setTouched] = bomMixerForms.useControl(control);
|
|
@@ -9308,8 +9511,11 @@ function FieldCard(_a) {
|
|
|
9308
9511
|
return state.flags.hidden ? jsxRuntime.jsx("input", {
|
|
9309
9512
|
type: "hidden",
|
|
9310
9513
|
value: state.value ? state.value.toString() : ''
|
|
9311
|
-
}) : jsxRuntime.jsxs(Field, Object.assign({
|
|
9514
|
+
}) : jsxRuntime.jsxs(Field, Object.assign({
|
|
9515
|
+
state: state
|
|
9516
|
+
}, props, {
|
|
9312
9517
|
children: [jsxRuntime.jsx(Label, {
|
|
9518
|
+
htmlFor: uniqueName,
|
|
9313
9519
|
margin: "0",
|
|
9314
9520
|
children: control.label && label(control.label)
|
|
9315
9521
|
}), jsxRuntime.jsx(RadioCard.Group, {
|
|
@@ -9338,10 +9544,10 @@ function FieldCard(_a) {
|
|
|
9338
9544
|
|
|
9339
9545
|
function FieldCheckbox(_a) {
|
|
9340
9546
|
var {
|
|
9341
|
-
|
|
9342
|
-
|
|
9547
|
+
control,
|
|
9548
|
+
uid = 0
|
|
9343
9549
|
} = _a,
|
|
9344
|
-
props = __rest(_a, ["
|
|
9550
|
+
props = __rest(_a, ["control", "uid"]);
|
|
9345
9551
|
const label = bomMixerHooks.useLabel();
|
|
9346
9552
|
const uniqueName = `${control.name}-${uid}`;
|
|
9347
9553
|
const [state, setValue, setTouched] = bomMixerForms.useControl(control);
|
|
@@ -9360,8 +9566,11 @@ function FieldCheckbox(_a) {
|
|
|
9360
9566
|
return state.flags.hidden ? jsxRuntime.jsx("input", {
|
|
9361
9567
|
type: "hidden",
|
|
9362
9568
|
value: state.value ? state.value.toString() : ''
|
|
9363
|
-
}) : jsxRuntime.jsxs(Field, Object.assign({
|
|
9569
|
+
}) : jsxRuntime.jsxs(Field, Object.assign({
|
|
9570
|
+
state: state
|
|
9571
|
+
}, props, {
|
|
9364
9572
|
children: [jsxRuntime.jsxs(Label, {
|
|
9573
|
+
htmlFor: uniqueName,
|
|
9365
9574
|
margin: "0",
|
|
9366
9575
|
children: [jsxRuntime.jsx(Checkbox, {
|
|
9367
9576
|
id: uniqueName,
|
|
@@ -9378,14 +9587,18 @@ function FieldCheckbox(_a) {
|
|
|
9378
9587
|
}));
|
|
9379
9588
|
}
|
|
9380
9589
|
|
|
9381
|
-
function FieldPassword(
|
|
9590
|
+
function FieldPassword(_ref) {
|
|
9591
|
+
let {
|
|
9592
|
+
control,
|
|
9593
|
+
uid = 0
|
|
9594
|
+
} = _ref;
|
|
9382
9595
|
const label = bomMixerHooks.useLabel();
|
|
9383
|
-
const uniqueName = `${
|
|
9384
|
-
const [state, setValue, setTouched] = bomMixerForms.useControl(
|
|
9596
|
+
const uniqueName = `${control.name}-${uid}`;
|
|
9597
|
+
const [state, setValue, setTouched] = bomMixerForms.useControl(control);
|
|
9385
9598
|
const onChange = event => {
|
|
9386
9599
|
// console.log('FieldPassword', event.target.value);
|
|
9387
9600
|
setValue(event.target.value);
|
|
9388
|
-
//
|
|
9601
|
+
// control.value = event.target.value;
|
|
9389
9602
|
};
|
|
9390
9603
|
|
|
9391
9604
|
const [focus, setFocus] = React.useState(false);
|
|
@@ -9404,13 +9617,15 @@ function FieldPassword(props) {
|
|
|
9404
9617
|
type: "hidden",
|
|
9405
9618
|
value: state.value || ''
|
|
9406
9619
|
}) : jsxRuntime.jsxs(Field, {
|
|
9620
|
+
state: state,
|
|
9407
9621
|
children: [jsxRuntime.jsx(Label, {
|
|
9408
|
-
|
|
9622
|
+
htmlFor: uniqueName,
|
|
9623
|
+
children: control.label && label(control.label)
|
|
9409
9624
|
}), jsxRuntime.jsx(Input, {
|
|
9410
9625
|
id: uniqueName,
|
|
9411
9626
|
name: uniqueName,
|
|
9412
9627
|
type: type,
|
|
9413
|
-
placeholder: label(
|
|
9628
|
+
placeholder: label(control.placeholder || control.label || ''),
|
|
9414
9629
|
value: state.value || '',
|
|
9415
9630
|
onChange: onChange,
|
|
9416
9631
|
onBlur: onBlur,
|
|
@@ -9428,12 +9643,16 @@ function FieldPassword(props) {
|
|
|
9428
9643
|
});
|
|
9429
9644
|
}
|
|
9430
9645
|
|
|
9431
|
-
function FieldSelect(
|
|
9646
|
+
function FieldSelect(_ref) {
|
|
9647
|
+
let {
|
|
9648
|
+
control,
|
|
9649
|
+
uid = 0
|
|
9650
|
+
} = _ref;
|
|
9432
9651
|
const label = bomMixerHooks.useLabel();
|
|
9433
|
-
const uniqueName = `${
|
|
9434
|
-
const [state, setValue, setTouched] = bomMixerForms.useControl(
|
|
9652
|
+
const uniqueName = `${control.name}-${uid}`;
|
|
9653
|
+
const [state, setValue, setTouched] = bomMixerForms.useControl(control);
|
|
9435
9654
|
const onChange = value => {
|
|
9436
|
-
const valueOrValues = bomMixerForms.stringToValue(value,
|
|
9655
|
+
const valueOrValues = bomMixerForms.stringToValue(value, control.options, control.optionsExtra);
|
|
9437
9656
|
setValue(valueOrValues);
|
|
9438
9657
|
};
|
|
9439
9658
|
const [focus, setFocus] = React.useState(false);
|
|
@@ -9448,18 +9667,21 @@ function FieldSelect(props) {
|
|
|
9448
9667
|
type: "hidden",
|
|
9449
9668
|
value: bomMixerForms.valueToString(state.value)
|
|
9450
9669
|
}) : jsxRuntime.jsxs(Field, {
|
|
9451
|
-
|
|
9452
|
-
|
|
9670
|
+
state: state,
|
|
9671
|
+
children: [jsxRuntime.jsx(Label, {
|
|
9672
|
+
htmlFor: uniqueName,
|
|
9673
|
+
children: control.label && label(control.label)
|
|
9453
9674
|
}), jsxRuntime.jsx(CustomSelect, {
|
|
9454
9675
|
id: uniqueName,
|
|
9455
|
-
|
|
9676
|
+
name: uniqueName,
|
|
9677
|
+
placeholder: label(control.placeholder || control.label || ''),
|
|
9456
9678
|
value: bomMixerForms.valueToString(state.value),
|
|
9457
9679
|
onChange: onChange,
|
|
9458
9680
|
onBlur: onBlur,
|
|
9459
9681
|
onFocus: onFocus,
|
|
9460
9682
|
disabled: state.flags.disabled || state.flags.readonly,
|
|
9461
9683
|
width: "100%",
|
|
9462
|
-
children:
|
|
9684
|
+
children: control.options && control.options.map((option, i) => jsxRuntime.jsx(CustomSelect.Option, {
|
|
9463
9685
|
value: option.id.toString(),
|
|
9464
9686
|
children: option.name
|
|
9465
9687
|
}, i))
|
|
@@ -9469,14 +9691,20 @@ function FieldSelect(props) {
|
|
|
9469
9691
|
});
|
|
9470
9692
|
}
|
|
9471
9693
|
|
|
9472
|
-
function FieldText(
|
|
9694
|
+
function FieldText(_ref) {
|
|
9695
|
+
let {
|
|
9696
|
+
control,
|
|
9697
|
+
uid = 0,
|
|
9698
|
+
before,
|
|
9699
|
+
after
|
|
9700
|
+
} = _ref;
|
|
9473
9701
|
const label = bomMixerHooks.useLabel();
|
|
9474
|
-
const uniqueName = `${
|
|
9475
|
-
const [state, setValue, setTouched] = bomMixerForms.useControl(
|
|
9702
|
+
const uniqueName = `${control.name}-${uid}`;
|
|
9703
|
+
const [state, setValue, setTouched] = bomMixerForms.useControl(control);
|
|
9476
9704
|
const onChange = event => {
|
|
9477
9705
|
// console.log('FieldText', event.target.value);
|
|
9478
9706
|
setValue(event.target.value);
|
|
9479
|
-
//
|
|
9707
|
+
// control.value = event.target.value;
|
|
9480
9708
|
};
|
|
9481
9709
|
|
|
9482
9710
|
const [focus, setFocus] = React.useState(false);
|
|
@@ -9491,20 +9719,69 @@ function FieldText(props) {
|
|
|
9491
9719
|
type: "hidden",
|
|
9492
9720
|
value: state.value || ''
|
|
9493
9721
|
}) : jsxRuntime.jsxs(Field, {
|
|
9722
|
+
state: state,
|
|
9494
9723
|
children: [jsxRuntime.jsx(Label, {
|
|
9495
|
-
|
|
9724
|
+
htmlFor: uniqueName,
|
|
9725
|
+
children: control.label && label(control.label)
|
|
9496
9726
|
}), jsxRuntime.jsx(Input, {
|
|
9497
9727
|
id: uniqueName,
|
|
9498
9728
|
name: uniqueName,
|
|
9499
|
-
placeholder: label(
|
|
9729
|
+
placeholder: label(control.placeholder || control.label || ''),
|
|
9730
|
+
value: state.value || '',
|
|
9731
|
+
onChange: onChange,
|
|
9732
|
+
onBlur: onBlur,
|
|
9733
|
+
onFocus: onFocus,
|
|
9734
|
+
disabled: state.flags.disabled,
|
|
9735
|
+
readOnly: state.flags.readonly,
|
|
9736
|
+
before: before,
|
|
9737
|
+
after: after,
|
|
9738
|
+
width: "100%"
|
|
9739
|
+
}), jsxRuntime.jsx(FieldError, {
|
|
9740
|
+
state: state
|
|
9741
|
+
})]
|
|
9742
|
+
});
|
|
9743
|
+
}
|
|
9744
|
+
|
|
9745
|
+
function FieldTextArea(_ref) {
|
|
9746
|
+
let {
|
|
9747
|
+
control,
|
|
9748
|
+
uid = 0
|
|
9749
|
+
} = _ref;
|
|
9750
|
+
const label = bomMixerHooks.useLabel();
|
|
9751
|
+
const uniqueName = `${control.name}-${uid}`;
|
|
9752
|
+
const [state, setValue, setTouched] = bomMixerForms.useControl(control);
|
|
9753
|
+
const onChange = event => {
|
|
9754
|
+
// console.log('FieldTextArea', event.target.value);
|
|
9755
|
+
setValue(event.target.value);
|
|
9756
|
+
// control.value = event.target.value;
|
|
9757
|
+
};
|
|
9758
|
+
|
|
9759
|
+
const [focus, setFocus] = React.useState(false);
|
|
9760
|
+
const onBlur = _ => {
|
|
9761
|
+
setTouched();
|
|
9762
|
+
setFocus(false);
|
|
9763
|
+
};
|
|
9764
|
+
const onFocus = _ => {
|
|
9765
|
+
setFocus(true);
|
|
9766
|
+
};
|
|
9767
|
+
return state.flags.hidden ? jsxRuntime.jsx("input", {
|
|
9768
|
+
type: "hidden",
|
|
9769
|
+
value: state.value || ''
|
|
9770
|
+
}) : jsxRuntime.jsxs(Field, {
|
|
9771
|
+
state: state,
|
|
9772
|
+
children: [jsxRuntime.jsx(Label, {
|
|
9773
|
+
htmlFor: uniqueName,
|
|
9774
|
+
children: control.label && label(control.label)
|
|
9775
|
+
}), jsxRuntime.jsx(TextArea, {
|
|
9776
|
+
id: uniqueName,
|
|
9777
|
+
name: uniqueName,
|
|
9778
|
+
placeholder: label(control.placeholder || control.label || ''),
|
|
9500
9779
|
value: state.value || '',
|
|
9501
9780
|
onChange: onChange,
|
|
9502
9781
|
onBlur: onBlur,
|
|
9503
9782
|
onFocus: onFocus,
|
|
9504
9783
|
disabled: state.flags.disabled,
|
|
9505
9784
|
readOnly: state.flags.readonly,
|
|
9506
|
-
before: props.before,
|
|
9507
|
-
after: props.after,
|
|
9508
9785
|
width: "100%"
|
|
9509
9786
|
}), jsxRuntime.jsx(FieldError, {
|
|
9510
9787
|
state: state
|
|
@@ -9520,6 +9797,10 @@ const FIELDS = {
|
|
|
9520
9797
|
control: control,
|
|
9521
9798
|
uid: uid
|
|
9522
9799
|
}, uid),
|
|
9800
|
+
textarea: (control, uid) => jsxRuntime.jsx(FieldTextArea, {
|
|
9801
|
+
control: control,
|
|
9802
|
+
uid: uid
|
|
9803
|
+
}, uid),
|
|
9523
9804
|
password: (control, uid) => jsxRuntime.jsx(FieldPassword, {
|
|
9524
9805
|
control: control,
|
|
9525
9806
|
uid: uid
|
|
@@ -9550,66 +9831,75 @@ const FIELDS = {
|
|
|
9550
9831
|
}, uid)
|
|
9551
9832
|
};
|
|
9552
9833
|
|
|
9553
|
-
|
|
9834
|
+
const StyledGrid = styled__default.default(Grid)`
|
|
9835
|
+
flex-direction: column;
|
|
9836
|
+
align-items: flex-start;
|
|
9837
|
+
`;
|
|
9838
|
+
function FieldCollection(_ref) {
|
|
9839
|
+
let {
|
|
9840
|
+
collection,
|
|
9841
|
+
fields,
|
|
9842
|
+
uid
|
|
9843
|
+
} = _ref;
|
|
9554
9844
|
const label = bomMixerHooks.useLabel();
|
|
9555
|
-
|
|
9556
|
-
|
|
9557
|
-
|
|
9558
|
-
|
|
9559
|
-
|
|
9560
|
-
|
|
9561
|
-
|
|
9562
|
-
|
|
9563
|
-
|
|
9564
|
-
|
|
9565
|
-
|
|
9566
|
-
|
|
9845
|
+
const controls = React.useMemo(() => {
|
|
9846
|
+
return collection instanceof bomMixerForms.FormGroup ? Object.keys(collection.controls).map(key => {
|
|
9847
|
+
return {
|
|
9848
|
+
key,
|
|
9849
|
+
control: collection.controls[key]
|
|
9850
|
+
};
|
|
9851
|
+
}) : collection.controls.map((control, i) => {
|
|
9852
|
+
return {
|
|
9853
|
+
key: i,
|
|
9854
|
+
control
|
|
9855
|
+
};
|
|
9856
|
+
});
|
|
9857
|
+
}, [collection]);
|
|
9858
|
+
const customFields = React.useMemo(() => {
|
|
9859
|
+
return Object.assign(Object.assign({}, FIELDS), fields);
|
|
9860
|
+
}, [fields]);
|
|
9861
|
+
let uniqueId = uid || 0;
|
|
9567
9862
|
function resolveField(item) {
|
|
9568
9863
|
const {
|
|
9569
9864
|
control,
|
|
9570
9865
|
key
|
|
9571
9866
|
} = item;
|
|
9572
|
-
++
|
|
9867
|
+
++uniqueId;
|
|
9573
9868
|
if (control instanceof bomMixerForms.FormGroup || control instanceof bomMixerForms.FormArray) {
|
|
9574
9869
|
return jsxRuntime.jsx(FieldCollection, {
|
|
9575
9870
|
collection: control,
|
|
9576
|
-
|
|
9577
|
-
|
|
9871
|
+
fields: fields,
|
|
9872
|
+
uid: uniqueId
|
|
9873
|
+
}, getFieldUID(uniqueId, control.name));
|
|
9578
9874
|
} else {
|
|
9579
|
-
if (control.schema in
|
|
9580
|
-
return
|
|
9875
|
+
if (control.schema in customFields) {
|
|
9876
|
+
return customFields[control.schema](control, uniqueId);
|
|
9581
9877
|
} else {
|
|
9582
|
-
return
|
|
9878
|
+
return customFields.text(control, uniqueId);
|
|
9583
9879
|
}
|
|
9584
9880
|
}
|
|
9585
9881
|
}
|
|
9586
9882
|
return jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
9587
|
-
children: [
|
|
9883
|
+
children: [collection.label && jsxRuntime.jsx(Grid, {
|
|
9588
9884
|
xs: 12,
|
|
9589
9885
|
children: jsxRuntime.jsx(Divider, {
|
|
9590
|
-
children: label(
|
|
9886
|
+
children: label(collection.label)
|
|
9591
9887
|
})
|
|
9592
|
-
}, getFieldUID(++
|
|
9888
|
+
}, getFieldUID(++uniqueId, collection.name)), controls.length > 0 && controls.map(item => {
|
|
9593
9889
|
const control = item.control;
|
|
9594
9890
|
if (!control) {
|
|
9595
9891
|
return;
|
|
9596
9892
|
}
|
|
9597
|
-
if (control
|
|
9598
|
-
|
|
9599
|
-
|
|
9600
|
-
return;
|
|
9601
|
-
}
|
|
9893
|
+
if (control.state.hidden) {
|
|
9894
|
+
return;
|
|
9895
|
+
} else if (control instanceof bomMixerForms.FormGroup || control instanceof bomMixerForms.FormArray) {
|
|
9602
9896
|
return resolveField(item);
|
|
9603
9897
|
} else {
|
|
9604
|
-
return jsxRuntime.jsx(
|
|
9898
|
+
return jsxRuntime.jsx(StyledGrid, {
|
|
9605
9899
|
xs: 12,
|
|
9606
9900
|
sm: ['checkbox', 'accept'].includes(control.schema) ? 12 : 6,
|
|
9607
|
-
style: {
|
|
9608
|
-
flexDirection: 'column',
|
|
9609
|
-
alignItems: 'flex-start'
|
|
9610
|
-
},
|
|
9611
9901
|
children: resolveField(item)
|
|
9612
|
-
}, getFieldUID(++
|
|
9902
|
+
}, getFieldUID(++uniqueId, item.key));
|
|
9613
9903
|
}
|
|
9614
9904
|
})]
|
|
9615
9905
|
});
|
|
@@ -14036,7 +14326,7 @@ const ContactHero = _ref => {
|
|
|
14036
14326
|
});
|
|
14037
14327
|
};
|
|
14038
14328
|
|
|
14039
|
-
const FooterContainer = styled__default.default.
|
|
14329
|
+
const FooterContainer = styled__default.default.footer`
|
|
14040
14330
|
padding: 6rem 0 4rem 0;
|
|
14041
14331
|
background: var(--color-neutral-900);
|
|
14042
14332
|
color: var(--color-neutral-100);
|
|
@@ -14051,6 +14341,9 @@ const Footer = props => {
|
|
|
14051
14341
|
}, props, {
|
|
14052
14342
|
children: jsxRuntime.jsxs(Container.Fluid, {
|
|
14053
14343
|
children: [jsxRuntime.jsxs(Grid.Row, {
|
|
14344
|
+
as: "nav",
|
|
14345
|
+
role: "navigation",
|
|
14346
|
+
"aria-label": "Footer",
|
|
14054
14347
|
children: [jsxRuntime.jsxs(Grid, {
|
|
14055
14348
|
sm: 12,
|
|
14056
14349
|
md: 4,
|
|
@@ -14276,6 +14569,7 @@ const Footer = props => {
|
|
|
14276
14569
|
children: jsxRuntime.jsx(Button, {
|
|
14277
14570
|
as: "a",
|
|
14278
14571
|
target: "_blank",
|
|
14572
|
+
title: "Digital Marketing",
|
|
14279
14573
|
children: jsxRuntime.jsx(bomMixerIcons.IconWebsolute, {})
|
|
14280
14574
|
})
|
|
14281
14575
|
})]
|
|
@@ -14525,7 +14819,7 @@ function useOnClickOutside(ref, handler, mouseEvent) {
|
|
|
14525
14819
|
});
|
|
14526
14820
|
}
|
|
14527
14821
|
|
|
14528
|
-
const HeaderContainer = styled__default.default.
|
|
14822
|
+
const HeaderContainer = styled__default.default.header`
|
|
14529
14823
|
display: flex;
|
|
14530
14824
|
align-items: center;
|
|
14531
14825
|
min-height: 120px;
|
|
@@ -14709,6 +15003,9 @@ const Header = props => {
|
|
|
14709
15003
|
gap: "1rem",
|
|
14710
15004
|
gapMd: "2rem",
|
|
14711
15005
|
gapLg: "3rem",
|
|
15006
|
+
as: "nav",
|
|
15007
|
+
role: "navigation",
|
|
15008
|
+
"arial-label": "Main menu",
|
|
14712
15009
|
children: [jsxRuntime.jsx(Flex, {
|
|
14713
15010
|
children: jsxRuntime.jsx(NavLink, {
|
|
14714
15011
|
href: layout.topLevelHrefs.homepage || '/',
|
|
@@ -15143,7 +15440,7 @@ const MagazineRelated = _a => {
|
|
|
15143
15440
|
return null;
|
|
15144
15441
|
}
|
|
15145
15442
|
const items = item.items;
|
|
15146
|
-
const classNames = bomCore.getClassNames(
|
|
15443
|
+
const classNames = bomCore.getClassNames('magazine-related');
|
|
15147
15444
|
return jsxRuntime.jsxs(StyledSection$1, {
|
|
15148
15445
|
className: classNames,
|
|
15149
15446
|
padding: "7rem 0",
|
|
@@ -15804,7 +16101,7 @@ const ProductsDetailDownload = _ref => {
|
|
|
15804
16101
|
id,
|
|
15805
16102
|
item
|
|
15806
16103
|
} = _ref;
|
|
15807
|
-
const classNames = bomCore.getClassNames(
|
|
16104
|
+
const classNames = bomCore.getClassNames('products-detail-download');
|
|
15808
16105
|
if (!item) {
|
|
15809
16106
|
return null;
|
|
15810
16107
|
}
|
|
@@ -15911,7 +16208,7 @@ const ProductsDetailRelated = _ref => {
|
|
|
15911
16208
|
id,
|
|
15912
16209
|
item
|
|
15913
16210
|
} = _ref;
|
|
15914
|
-
const classNames = bomCore.getClassNames(
|
|
16211
|
+
const classNames = bomCore.getClassNames('products-detail-related');
|
|
15915
16212
|
if (!item) {
|
|
15916
16213
|
return null;
|
|
15917
16214
|
}
|
|
@@ -15955,7 +16252,7 @@ const ProductsDetailSizeColor = _ref => {
|
|
|
15955
16252
|
id,
|
|
15956
16253
|
item
|
|
15957
16254
|
} = _ref;
|
|
15958
|
-
const classNames = bomCore.getClassNames(
|
|
16255
|
+
const classNames = bomCore.getClassNames('products-detail-size-color');
|
|
15959
16256
|
if (!item) {
|
|
15960
16257
|
return null;
|
|
15961
16258
|
}
|
|
@@ -16958,7 +17255,7 @@ const ShopDetailRelated = _ref => {
|
|
|
16958
17255
|
id,
|
|
16959
17256
|
item
|
|
16960
17257
|
} = _ref;
|
|
16961
|
-
const classNames = bomCore.getClassNames(
|
|
17258
|
+
const classNames = bomCore.getClassNames('shop-detail-related');
|
|
16962
17259
|
return jsxRuntime.jsx(Section, {
|
|
16963
17260
|
id: id,
|
|
16964
17261
|
className: classNames,
|
|
@@ -18982,8 +19279,21 @@ function LayoutDefault(_ref) {
|
|
|
18982
19279
|
let {
|
|
18983
19280
|
children
|
|
18984
19281
|
} = _ref;
|
|
18985
|
-
return jsxRuntime.jsxs(
|
|
18986
|
-
children: [jsxRuntime.jsx(Meta, {}), jsxRuntime.jsxs(
|
|
19282
|
+
return jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
19283
|
+
children: [jsxRuntime.jsx(Meta, {}), jsxRuntime.jsxs(Layout, {
|
|
19284
|
+
children: [jsxRuntime.jsx(Header, {
|
|
19285
|
+
sticky: true
|
|
19286
|
+
}), children, jsxRuntime.jsx(Footer, {})]
|
|
19287
|
+
})]
|
|
19288
|
+
});
|
|
19289
|
+
}
|
|
19290
|
+
|
|
19291
|
+
function LayoutFixed(_ref) {
|
|
19292
|
+
let {
|
|
19293
|
+
children
|
|
19294
|
+
} = _ref;
|
|
19295
|
+
return jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
19296
|
+
children: [jsxRuntime.jsx(Meta, {}), jsxRuntime.jsxs(Layout, {
|
|
18987
19297
|
children: [jsxRuntime.jsx(Header, {
|
|
18988
19298
|
fixed: true
|
|
18989
19299
|
}), children, jsxRuntime.jsx(Footer, {})]
|
|
@@ -19025,7 +19335,7 @@ const Carousel1 = _a => {
|
|
|
19025
19335
|
} = _a,
|
|
19026
19336
|
props = __rest(_a, ["item"]);
|
|
19027
19337
|
const items = item.items;
|
|
19028
|
-
const classNames = bomCore.getClassNames(
|
|
19338
|
+
const classNames = bomCore.getClassNames('carousel-1');
|
|
19029
19339
|
return jsxRuntime.jsxs(StyledSection, {
|
|
19030
19340
|
className: classNames,
|
|
19031
19341
|
padding: "7rem 0",
|
|
@@ -19089,7 +19399,7 @@ const Download1 = _ref => {
|
|
|
19089
19399
|
let {
|
|
19090
19400
|
item
|
|
19091
19401
|
} = _ref;
|
|
19092
|
-
const classNames = bomCore.getClassNames(
|
|
19402
|
+
const classNames = bomCore.getClassNames('download-1');
|
|
19093
19403
|
return jsxRuntime.jsx(Section, {
|
|
19094
19404
|
className: classNames,
|
|
19095
19405
|
padding: "6rem 0",
|
|
@@ -19135,7 +19445,7 @@ const MediaFull1 = _ref => {
|
|
|
19135
19445
|
let {
|
|
19136
19446
|
item
|
|
19137
19447
|
} = _ref;
|
|
19138
|
-
const classNames = bomCore.getClassNames('media'
|
|
19448
|
+
const classNames = bomCore.getClassNames('media-full-1');
|
|
19139
19449
|
return jsxRuntime.jsx(Media, {
|
|
19140
19450
|
className: classNames,
|
|
19141
19451
|
aspectRatio: 16 / 10,
|
|
@@ -19156,7 +19466,7 @@ const MediaFull2 = _ref => {
|
|
|
19156
19466
|
let {
|
|
19157
19467
|
item
|
|
19158
19468
|
} = _ref;
|
|
19159
|
-
const classNames = bomCore.getClassNames(
|
|
19469
|
+
const classNames = bomCore.getClassNames('media-full-2');
|
|
19160
19470
|
return jsxRuntime.jsx(Section, {
|
|
19161
19471
|
className: classNames,
|
|
19162
19472
|
padding: "6rem 0",
|
|
@@ -19186,7 +19496,7 @@ const MediaMedia1 = _ref => {
|
|
|
19186
19496
|
let {
|
|
19187
19497
|
item
|
|
19188
19498
|
} = _ref;
|
|
19189
|
-
const classNames = bomCore.getClassNames(
|
|
19499
|
+
const classNames = bomCore.getClassNames('media-media-1');
|
|
19190
19500
|
return jsxRuntime.jsx(Section, {
|
|
19191
19501
|
className: classNames,
|
|
19192
19502
|
padding: "6rem 0",
|
|
@@ -19310,7 +19620,7 @@ const Related1 = _ref => {
|
|
|
19310
19620
|
let {
|
|
19311
19621
|
item
|
|
19312
19622
|
} = _ref;
|
|
19313
|
-
const classNames = bomCore.getClassNames(
|
|
19623
|
+
const classNames = bomCore.getClassNames('related-1');
|
|
19314
19624
|
return jsxRuntime.jsx(Section, {
|
|
19315
19625
|
className: classNames,
|
|
19316
19626
|
padding: "6rem 0",
|
|
@@ -19349,7 +19659,7 @@ const SizesColors1 = _ref => {
|
|
|
19349
19659
|
let {
|
|
19350
19660
|
item
|
|
19351
19661
|
} = _ref;
|
|
19352
|
-
const classNames = bomCore.getClassNames(
|
|
19662
|
+
const classNames = bomCore.getClassNames('sizes-colors-1');
|
|
19353
19663
|
return jsxRuntime.jsx(Section, {
|
|
19354
19664
|
className: classNames,
|
|
19355
19665
|
padding: "6rem 0",
|
|
@@ -19415,7 +19725,7 @@ const Text1 = _ref => {
|
|
|
19415
19725
|
item
|
|
19416
19726
|
} = _ref;
|
|
19417
19727
|
// !!! Container.Small
|
|
19418
|
-
const classNames = bomCore.getClassNames(
|
|
19728
|
+
const classNames = bomCore.getClassNames('text-1');
|
|
19419
19729
|
return jsxRuntime.jsx(Section, {
|
|
19420
19730
|
className: classNames,
|
|
19421
19731
|
padding: "6rem 0",
|
|
@@ -19448,7 +19758,7 @@ const TextAside1 = _ref => {
|
|
|
19448
19758
|
let {
|
|
19449
19759
|
item
|
|
19450
19760
|
} = _ref;
|
|
19451
|
-
const classNames = bomCore.getClassNames(
|
|
19761
|
+
const classNames = bomCore.getClassNames('text-aside-1');
|
|
19452
19762
|
return jsxRuntime.jsx(Section, {
|
|
19453
19763
|
className: classNames,
|
|
19454
19764
|
padding: "6rem 0",
|
|
@@ -19501,7 +19811,7 @@ const TextMedia1 = _ref => {
|
|
|
19501
19811
|
let {
|
|
19502
19812
|
item
|
|
19503
19813
|
} = _ref;
|
|
19504
|
-
const classNames = bomCore.getClassNames(
|
|
19814
|
+
const classNames = bomCore.getClassNames('text-media-1');
|
|
19505
19815
|
return jsxRuntime.jsx(Section, {
|
|
19506
19816
|
className: classNames,
|
|
19507
19817
|
padding: "6rem 0",
|
|
@@ -19560,7 +19870,7 @@ const TextText1 = _ref => {
|
|
|
19560
19870
|
let {
|
|
19561
19871
|
item
|
|
19562
19872
|
} = _ref;
|
|
19563
|
-
const classNames = bomCore.getClassNames(
|
|
19873
|
+
const classNames = bomCore.getClassNames('text-text-1');
|
|
19564
19874
|
return jsxRuntime.jsx(Section, {
|
|
19565
19875
|
className: classNames,
|
|
19566
19876
|
padding: "6rem 0",
|
|
@@ -19592,31 +19902,36 @@ var textText1 = /*#__PURE__*/Object.freeze({
|
|
|
19592
19902
|
|
|
19593
19903
|
const LAZY_MODULES = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, Carousel1Export), Download1Export), MediaFull1Export), MediaFull2Export), MediaMedia1Export), NotFoundExport), Related1Export), SizesColors1Export), Text1Export), TextAside1Export), TextMedia1Export), TextText1Export);
|
|
19594
19904
|
|
|
19595
|
-
const lazyLoadComponent = function (component, modules) {
|
|
19905
|
+
const lazyLoadComponent = function (component, modules, index) {
|
|
19596
19906
|
if (modules === void 0) {
|
|
19597
19907
|
modules = LAZY_MODULES;
|
|
19598
19908
|
}
|
|
19909
|
+
if (index === void 0) {
|
|
19910
|
+
index = 0;
|
|
19911
|
+
}
|
|
19599
19912
|
const key = component.schema || component.blockType;
|
|
19600
19913
|
const Component = modules[key] || LAZY_MODULES['not-found'];
|
|
19601
19914
|
return jsxRuntime.jsx(Component, {
|
|
19602
|
-
item: component
|
|
19915
|
+
item: component,
|
|
19916
|
+
index: index
|
|
19603
19917
|
});
|
|
19604
19918
|
};
|
|
19605
19919
|
const LazyLoader = _ref => {
|
|
19606
19920
|
let {
|
|
19607
19921
|
components,
|
|
19608
|
-
modules = LAZY_MODULES
|
|
19922
|
+
modules = LAZY_MODULES,
|
|
19923
|
+
initialIndex = 0
|
|
19609
19924
|
} = _ref;
|
|
19610
19925
|
if (!components) {
|
|
19611
19926
|
return null;
|
|
19612
19927
|
}
|
|
19613
19928
|
return jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
19614
|
-
children: components.map((component,
|
|
19929
|
+
children: components.map((component, index) => jsxRuntime.jsx(React__default.default.Suspense, {
|
|
19615
19930
|
fallback: jsxRuntime.jsx(Skeleton, {
|
|
19616
19931
|
minHeight: "50vh"
|
|
19617
19932
|
}),
|
|
19618
|
-
children: lazyLoadComponent(component, modules)
|
|
19619
|
-
},
|
|
19933
|
+
children: lazyLoadComponent(component, modules, initialIndex + index)
|
|
19934
|
+
}, index))
|
|
19620
19935
|
});
|
|
19621
19936
|
};
|
|
19622
19937
|
|
|
@@ -19629,6 +19944,7 @@ exports.AuthProvider = AuthProvider;
|
|
|
19629
19944
|
exports.AuthUpdate = AuthUpdate;
|
|
19630
19945
|
exports.Autocomplete = Autocomplete;
|
|
19631
19946
|
exports.AutocompleteContext = AutocompleteContext;
|
|
19947
|
+
exports.Background = Background;
|
|
19632
19948
|
exports.Badge = Badge;
|
|
19633
19949
|
exports.BlogCard = BlogCard;
|
|
19634
19950
|
exports.BlogMore = BlogMore;
|
|
@@ -19723,6 +20039,7 @@ exports.FieldError = FieldError;
|
|
|
19723
20039
|
exports.FieldPassword = FieldPassword;
|
|
19724
20040
|
exports.FieldSelect = FieldSelect;
|
|
19725
20041
|
exports.FieldText = FieldText;
|
|
20042
|
+
exports.FieldTextArea = FieldTextArea;
|
|
19726
20043
|
exports.Flex = Flex;
|
|
19727
20044
|
exports.FlexRow = FlexRow;
|
|
19728
20045
|
exports.Footer = Footer;
|
|
@@ -19743,6 +20060,7 @@ exports.InputGroup = InputGroup;
|
|
|
19743
20060
|
exports.Label = Label;
|
|
19744
20061
|
exports.Layout = Layout;
|
|
19745
20062
|
exports.LayoutDefault = LayoutDefault;
|
|
20063
|
+
exports.LayoutFixed = LayoutFixed;
|
|
19746
20064
|
exports.LazyLoader = LazyLoader;
|
|
19747
20065
|
exports.Link = Link;
|
|
19748
20066
|
exports.List = List;
|
|
@@ -19753,6 +20071,7 @@ exports.MagazineSearch = MagazineSearch;
|
|
|
19753
20071
|
exports.MagazineSearchCard = MagazineSearchCard;
|
|
19754
20072
|
exports.MagazineSearchFilters = MagazineSearchFilters;
|
|
19755
20073
|
exports.MagazineSearchFiltersModal = MagazineSearchFiltersModal;
|
|
20074
|
+
exports.Main = Main;
|
|
19756
20075
|
exports.MarketsAndLanguagesDrawer = MarketsAndLanguagesDrawer;
|
|
19757
20076
|
exports.Media = Media;
|
|
19758
20077
|
exports.MediaGallery = MediaGallery;
|
|
@@ -19834,6 +20153,7 @@ exports.Tooltip = Tooltip;
|
|
|
19834
20153
|
exports.Transition = Transition;
|
|
19835
20154
|
exports.Typography = Typography;
|
|
19836
20155
|
exports.VariantsProvider = VariantsProvider;
|
|
20156
|
+
exports.accessibility = accessibility;
|
|
19837
20157
|
exports.autocompleteVariants = autocompleteVariants;
|
|
19838
20158
|
exports.buttonVariants = buttonVariants;
|
|
19839
20159
|
exports.checkboxVariants = checkboxVariants;
|