@websolutespa/bom-mixer-ui 0.2.0 → 0.3.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 +37 -31
- package/dist/cjs/index.js +345 -216
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/components/accordion/accordion-group.js +1 -1
- package/dist/esm/components/accordion/accordion-icon.js +1 -1
- package/dist/esm/components/accordion/accordion.js +3 -3
- package/dist/esm/components/backdrop/backdrop.js +1 -1
- package/dist/esm/components/breadcrumb/breadcrumb-item.js +1 -1
- package/dist/esm/components/breadcrumb/breadcrumb-separator.js +1 -1
- package/dist/esm/components/breadcrumb/breadcrumb.js +1 -1
- package/dist/esm/components/button/button.js +1 -1
- package/dist/esm/components/card/card.js +1 -1
- package/dist/esm/components/container/container.js +1 -1
- package/dist/esm/components/drawer/drawer-wrapper.js +1 -1
- package/dist/esm/components/drawer/drawer.js +1 -1
- package/dist/esm/components/dropdown/dropdown.js +1 -1
- package/dist/esm/components/expand/expand.js +1 -1
- package/dist/esm/components/flex/flex-flow.js +1 -1
- package/dist/esm/components/flex/flex.js +1 -1
- package/dist/esm/components/grid/grid.js +1 -1
- package/dist/esm/components/highlight/highlight.js +1 -1
- package/dist/esm/components/infinite-loader/infinite-loader.js +1 -1
- package/dist/esm/components/link/link.js +1 -1
- package/dist/esm/components/media/media-image.js +1 -1
- package/dist/esm/components/media/media.js +1 -1
- package/dist/esm/components/media/media.js.map +1 -1
- package/dist/esm/components/modal/modal-button.js +1 -1
- package/dist/esm/components/modal/modal-close.js +1 -1
- package/dist/esm/components/modal/modal-content.js +1 -1
- package/dist/esm/components/modal/modal-wrapper.js +1 -1
- package/dist/esm/components/modal/modal.js +1 -1
- package/dist/esm/components/nav/nav.js +1 -1
- package/dist/esm/components/page-nav/page-nav.js +1 -1
- package/dist/esm/components/pagination/pagination-ellipsis.js +1 -1
- package/dist/esm/components/pagination/pagination-item.js +1 -1
- package/dist/esm/components/pagination/pagination.js +1 -1
- package/dist/esm/components/popover/popover-item.js +1 -1
- package/dist/esm/components/popover/popover.js +1 -1
- package/dist/esm/components/section/section.js +1 -1
- package/dist/esm/components/skeleton/skeleton.js +1 -1
- package/dist/esm/components/swiper/swiper-pagination.js +1 -1
- package/dist/esm/components/swiper/swiper.js +1 -1
- package/dist/esm/components/tabs/tabs-item.js +1 -1
- package/dist/esm/components/tabs/tabs.js +1 -1
- package/dist/esm/components/text/text.js +3 -3
- package/dist/esm/components/tooltip/tooltip-content.js +1 -1
- package/dist/esm/components/tooltip/tooltip.js +1 -1
- package/dist/esm/fields/field-accept.js +1 -1
- package/dist/esm/fields/field-autocomplete.js +1 -1
- package/dist/esm/fields/field-card.js +1 -1
- package/dist/esm/fields/field-checkbox.js +1 -1
- package/dist/esm/fields/field-password.js +1 -1
- package/dist/esm/fields/field-select.js +1 -1
- package/dist/esm/fields/field-select.js.map +1 -1
- package/dist/esm/fields/field-text.js +1 -1
- package/dist/esm/forms/autocomplete/autocomplete-dropdown.js +1 -1
- package/dist/esm/forms/autocomplete/autocomplete.js +1 -1
- package/dist/esm/forms/checkbox/checkbox.js +1 -1
- package/dist/esm/forms/checkbox/checkbox.js.map +1 -1
- package/dist/esm/forms/custom-select/custom-select-dropdown.js +1 -1
- package/dist/esm/forms/custom-select/custom-select-multiple-value.js +1 -1
- package/dist/esm/forms/custom-select/custom-select-option.js +1 -1
- package/dist/esm/forms/custom-select/custom-select.js +1 -1
- package/dist/esm/forms/field/field.js +1 -1
- package/dist/esm/forms/form/form.js +1 -1
- package/dist/esm/forms/form-error/form-error.js +1 -1
- package/dist/esm/forms/form-tester/form-tester.js +1 -1
- package/dist/esm/forms/input/input.js +1 -1
- package/dist/esm/forms/input-group/input-group.js +1 -1
- package/dist/esm/forms/label/label.js +1 -1
- package/dist/esm/forms/radio/radio.js +1 -1
- package/dist/esm/forms/radio-card/radio-card.js +1 -1
- package/dist/esm/forms/radio-color/radio-color.js +1 -1
- package/dist/esm/forms/radio-option/radio-option.js +1 -1
- package/dist/esm/forms/rating/rating.js +1 -1
- package/dist/esm/forms/select/select.js +1 -1
- package/dist/esm/forms/textarea/textarea.js +1 -1
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/lazy/carousel-1/carousel-1.js +1 -1
- package/dist/esm/lazy/download-1/download-1.js +1 -1
- package/dist/esm/lazy/media-full-1/media-full-1.js +1 -1
- package/dist/esm/lazy/media-full-2/media-full-2.js +1 -1
- package/dist/esm/lazy/media-media-1/media-media-1.js +1 -1
- package/dist/esm/lazy/related-1/related-1-card.js.map +1 -1
- package/dist/esm/lazy/related-1/related-1.js +1 -1
- package/dist/esm/lazy/sizes-colors-1/sizes-colors-1.js +1 -1
- package/dist/esm/lazy/text-1/text-1.js +1 -1
- package/dist/esm/lazy/text-aside-1/text-aside-1.js +1 -1
- package/dist/esm/lazy/text-media-1/text-media-1.js +1 -1
- package/dist/esm/lazy/text-text-1/text-text-1.js +1 -1
- package/dist/esm/sections/auth/auth-change-password.js +1 -1
- package/dist/esm/sections/auth/auth-forgot.js +1 -1
- package/dist/esm/sections/auth/auth-login.js +1 -1
- package/dist/esm/sections/auth/auth-register.js +1 -1
- package/dist/esm/sections/auth/auth-update.js +1 -1
- package/dist/esm/sections/cart-mini/cart-mini-item.js +1 -1
- package/dist/esm/sections/category-hero/category-hero.js.map +1 -1
- package/dist/esm/sections/checkout/checkout-basket-item.js +1 -1
- package/dist/esm/sections/checkout/checkout-delivery.js +1 -1
- package/dist/esm/sections/checkout/checkout-discount.js +1 -1
- package/dist/esm/sections/checkout/checkout-payment.js +1 -1
- package/dist/esm/sections/checkout/checkout-review.js +1 -1
- package/dist/esm/sections/checkout/checkout-wizard.js +1 -1
- package/dist/esm/sections/contact-form/contact-form.js +1 -1
- package/dist/esm/sections/footer/footer.js +4 -4
- package/dist/esm/sections/footer/footer.js.map +1 -1
- package/dist/esm/sections/header/header-card.js.map +1 -1
- package/dist/esm/sections/header/header-submenu.js +1 -1
- package/dist/esm/sections/header/header-submenu.js.map +1 -1
- package/dist/esm/sections/header/header.js +115 -10
- package/dist/esm/sections/header/header.js.map +1 -1
- package/dist/esm/sections/icons/icons.js +1 -1
- package/dist/esm/sections/magazine-related/magazine-related.js +1 -1
- package/dist/esm/sections/magazine-search/magazine-search-card.js.map +1 -1
- package/dist/esm/sections/magazine-search/magazine-search-filters.js +1 -1
- package/dist/esm/sections/magazine-search/magazine-search.js +7 -7
- package/dist/esm/sections/magazine-search/magazine-search.js.map +1 -1
- package/dist/esm/sections/order/order-register.js +1 -1
- package/dist/esm/sections/product-overview/product-overview.js +1 -1
- package/dist/esm/sections/product-overview/product-overview.js.map +1 -1
- package/dist/esm/sections/products-detail-download/products-detail-download.js +1 -1
- 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 +1 -1
- package/dist/esm/sections/products-detail-size-color/products-detail-size-color.js +1 -1
- package/dist/esm/sections/products-search/products-search-card.js.map +1 -1
- package/dist/esm/sections/products-search/products-search-filters.js +1 -1
- package/dist/esm/sections/products-search/products-search.js +1 -1
- package/dist/esm/sections/proposition/proposition.js +4 -4
- package/dist/esm/sections/proposition/proposition.js.map +1 -1
- package/dist/esm/sections/reserved_area_menu/reserved_area_menu.js +1 -1
- package/dist/esm/sections/reserved_area_menu/reserved_area_menu.js.map +1 -1
- 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 +1 -1
- package/dist/esm/sections/shop-search/shop-search-card.js.map +1 -1
- package/dist/esm/sections/shop-search/shop-search-filters.js +1 -1
- package/dist/esm/sections/shop-search/shop-search.js +1 -1
- package/dist/esm/sections/store-locator/store-locator-search.js +1 -1
- package/dist/esm/sections/swiper-hero/swiper-hero.js.map +1 -1
- package/dist/esm/theme/global.vars.js +42 -42
- package/dist/esm/theme/styles/_base.js +5 -0
- package/dist/esm/theme/styles/_base.js.map +1 -1
- package/dist/esm/theme/styles/mixins/_scrollbar.js +18 -0
- package/dist/esm/theme/styles/mixins/_scrollbar.js.map +1 -1
- package/dist/esm/theme/theme.json.js +20 -20
- package/dist/types/components/breadcrumb/breadcrumb.d.ts +9 -9
- package/dist/types/components/breadcrumb/breadcrumb.group.d.ts +1 -1
- package/dist/types/components/breadcrumb/breadcrumb.group.d.ts.map +1 -1
- package/dist/types/components/css.d.ts +1 -1
- package/dist/types/components/highlight/highlight.d.ts.map +1 -1
- package/dist/types/components/media/media.d.ts +1 -1
- package/dist/types/components/media/media.d.ts.map +1 -1
- package/dist/types/components/media-gallery/media-gallery-context.d.ts +1 -1
- package/dist/types/components/media-gallery/media-gallery-context.d.ts.map +1 -1
- package/dist/types/fields/field-select.d.ts.map +1 -1
- package/dist/types/forms/checkbox/checkbox.d.ts.map +1 -1
- package/dist/types/forms/custom-select/custom-select.d.ts +5 -5
- package/dist/types/forms/input-group/input-group.d.ts.map +1 -1
- package/dist/types/forms/radio-card/radio-card.d.ts +2 -2
- package/dist/types/forms/radio-card/radio-card.d.ts.map +1 -1
- package/dist/types/forms/radio-color/radio-color.d.ts.map +1 -1
- package/dist/types/forms/radio-option/radio-option.d.ts.map +1 -1
- package/dist/types/lazy/carousel-1/carousel-1.d.ts +2 -1
- package/dist/types/lazy/carousel-1/carousel-1.d.ts.map +1 -1
- package/dist/types/lazy/media-full-1/media-full-1.d.ts +2 -1
- 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 +2 -1
- 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 +2 -1
- package/dist/types/lazy/media-media-1/media-media-1.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 +2 -2
- 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 +2 -1
- package/dist/types/lazy/sizes-colors-1/sizes-colors-1.d.ts.map +1 -1
- package/dist/types/lazy/text-media-1/text-media-1.d.ts +2 -1
- package/dist/types/lazy/text-media-1/text-media-1.d.ts.map +1 -1
- package/dist/types/sections/blog-more/blog-card.d.ts +1 -1
- package/dist/types/sections/blog-more/blog-card.d.ts.map +1 -1
- package/dist/types/sections/blog-proposition/blog-proposition.d.ts +1 -1
- package/dist/types/sections/blog-proposition/blog-proposition.d.ts.map +1 -1
- package/dist/types/sections/categories-proposition/categories-proposition-card.d.ts +1 -1
- package/dist/types/sections/categories-proposition/categories-proposition-card.d.ts.map +1 -1
- package/dist/types/sections/category-hero/category-hero.d.ts +2 -1
- package/dist/types/sections/category-hero/category-hero.d.ts.map +1 -1
- package/dist/types/sections/category-proposition/category-proposition.d.ts +1 -1
- package/dist/types/sections/category-proposition/category-proposition.d.ts.map +1 -1
- package/dist/types/sections/contact-hero/contact-hero.d.ts +1 -1
- package/dist/types/sections/contact-hero/contact-hero.d.ts.map +1 -1
- package/dist/types/sections/header/header-card.d.ts +1 -2
- package/dist/types/sections/header/header-card.d.ts.map +1 -1
- package/dist/types/sections/header/header-submenu.d.ts +1 -1
- 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/hero/hero.d.ts +1 -1
- package/dist/types/sections/hero/hero.d.ts.map +1 -1
- package/dist/types/sections/index.d.ts +1 -0
- package/dist/types/sections/index.d.ts.map +1 -1
- package/dist/types/sections/magazine-related/magazine-related.d.ts +2 -1
- package/dist/types/sections/magazine-related/magazine-related.d.ts.map +1 -1
- package/dist/types/sections/magazine-search/magazine-search-card.d.ts +1 -2
- package/dist/types/sections/magazine-search/magazine-search-card.d.ts.map +1 -1
- package/dist/types/sections/magazine-search/magazine-search-recap.d.ts +1 -1
- package/dist/types/sections/magazine-search/magazine-search-recap.d.ts.map +1 -1
- package/dist/types/sections/magazine-search/magazine-search.d.ts +2 -2
- package/dist/types/sections/magazine-search/magazine-search.d.ts.map +1 -1
- package/dist/types/sections/product-overview/product-overview-gallery.d.ts +1 -1
- package/dist/types/sections/product-overview/product-overview-gallery.d.ts.map +1 -1
- package/dist/types/sections/product-overview/product-overview.d.ts +1 -1
- package/dist/types/sections/product-overview/product-overview.d.ts.map +1 -1
- package/dist/types/sections/products-detail-related/products-detail-related-card.d.ts +1 -2
- package/dist/types/sections/products-detail-related/products-detail-related-card.d.ts.map +1 -1
- package/dist/types/sections/products-detail-size-color/products-detail-size-color.d.ts +2 -1
- package/dist/types/sections/products-detail-size-color/products-detail-size-color.d.ts.map +1 -1
- package/dist/types/sections/products-hero/products-hero.d.ts +1 -1
- package/dist/types/sections/products-hero/products-hero.d.ts.map +1 -1
- package/dist/types/sections/products-proposition/products-proposition-card.d.ts +1 -1
- package/dist/types/sections/products-proposition/products-proposition-card.d.ts.map +1 -1
- package/dist/types/sections/products-related/products-related-card.d.ts +1 -1
- package/dist/types/sections/products-related/products-related-card.d.ts.map +1 -1
- package/dist/types/sections/products-search/products-search-card.d.ts +1 -2
- package/dist/types/sections/products-search/products-search-card.d.ts.map +1 -1
- package/dist/types/sections/products-search/products-search-recap.d.ts +1 -1
- package/dist/types/sections/products-search/products-search-recap.d.ts.map +1 -1
- package/dist/types/sections/reserved_area/reserved_area.d.ts +1 -1
- package/dist/types/sections/reserved_area/reserved_area.d.ts.map +1 -1
- package/dist/types/sections/reserved_area_menu/reserved_area_menu.d.ts +1 -1
- package/dist/types/sections/reserved_area_menu/reserved_area_menu.d.ts.map +1 -1
- package/dist/types/sections/shop-category-hero/shop-category-hero.d.ts +1 -1
- package/dist/types/sections/shop-category-hero/shop-category-hero.d.ts.map +1 -1
- package/dist/types/sections/shop-detail-related/shop-detail-related-card.d.ts +1 -2
- package/dist/types/sections/shop-detail-related/shop-detail-related-card.d.ts.map +1 -1
- package/dist/types/sections/shop-hero/shop-hero.d.ts +1 -1
- package/dist/types/sections/shop-hero/shop-hero.d.ts.map +1 -1
- package/dist/types/sections/shop-items-proposition/shop-items-proposition-card.d.ts +1 -1
- package/dist/types/sections/shop-items-proposition/shop-items-proposition-card.d.ts.map +1 -1
- package/dist/types/sections/shop-search/shop-search-card.d.ts +1 -2
- package/dist/types/sections/shop-search/shop-search-card.d.ts.map +1 -1
- package/dist/types/sections/shop-search/shop-search-recap.d.ts +1 -1
- package/dist/types/sections/shop-search/shop-search-recap.d.ts.map +1 -1
- package/dist/types/sections/shop-search/shop-search.d.ts +2 -2
- package/dist/types/sections/shop-search/shop-search.d.ts.map +1 -1
- package/dist/types/sections/split/split.d.ts +1 -1
- package/dist/types/sections/split/split.d.ts.map +1 -1
- package/dist/types/sections/store-locator/store-locator-search.d.ts +1 -1
- package/dist/types/sections/store-locator/store-locator-search.d.ts.map +1 -1
- package/dist/types/sections/swiper-hero/swiper-hero.d.ts +2 -1
- package/dist/types/sections/swiper-hero/swiper-hero.d.ts.map +1 -1
- package/dist/types/theme/styles/_base.d.ts.map +1 -1
- package/dist/types/theme/styles/mixins/_scrollbar.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/cjs/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
var
|
|
4
|
+
var bomCore = require('@websolutespa/bom-core');
|
|
5
5
|
var bomMixerHooks = require('@websolutespa/bom-mixer-hooks');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var styled = require('styled-components');
|
|
@@ -199,7 +199,7 @@ const AccordionGroup = _a => {
|
|
|
199
199
|
updateValues
|
|
200
200
|
}), [state.join(',')]);
|
|
201
201
|
const indexedChildren = React.useMemo(() => setChildrenIndex(children, [Accordion]), [children]);
|
|
202
|
-
const classNames =
|
|
202
|
+
const classNames = bomCore.getClassNames('accordion-group', className);
|
|
203
203
|
return jsxRuntime.jsx(AccordionContext.Provider, Object.assign({
|
|
204
204
|
value: initialValue
|
|
205
205
|
}, {
|
|
@@ -245,7 +245,7 @@ const AccordionIcon_ = _ref => {
|
|
|
245
245
|
let {
|
|
246
246
|
active
|
|
247
247
|
} = _ref;
|
|
248
|
-
const classNames =
|
|
248
|
+
const classNames = bomCore.getClassNames({
|
|
249
249
|
active
|
|
250
250
|
});
|
|
251
251
|
return jsxRuntime.jsx(DownArrow$2, {
|
|
@@ -278,7 +278,7 @@ const StyledAccordion$1 = styled__default.default.div`
|
|
|
278
278
|
display: flex;
|
|
279
279
|
justify-content: space-between;
|
|
280
280
|
align-items: center;
|
|
281
|
-
color: var(--color-neutral-900);
|
|
281
|
+
// color: var(--color-neutral-900);
|
|
282
282
|
user-select: none;
|
|
283
283
|
/*
|
|
284
284
|
& > span {
|
|
@@ -289,7 +289,7 @@ const StyledAccordion$1 = styled__default.default.div`
|
|
|
289
289
|
}
|
|
290
290
|
|
|
291
291
|
.subtitle {
|
|
292
|
-
color: var(--color-primary-500);
|
|
292
|
+
// color: var(--color-primary-500);
|
|
293
293
|
margin: 0;
|
|
294
294
|
|
|
295
295
|
& > :global(*) {
|
|
@@ -328,7 +328,7 @@ const AccordionBase = _a => {
|
|
|
328
328
|
} = useAccordionContext();
|
|
329
329
|
const [visible, setVisible, visibleRef] = bomMixerHooks.useCurrentState(initialVisible);
|
|
330
330
|
if (!title) {
|
|
331
|
-
|
|
331
|
+
bomCore.consoleWarn('"title" is required.', 'Accordion');
|
|
332
332
|
}
|
|
333
333
|
React.useEffect(() => {
|
|
334
334
|
if (!values.length) {
|
|
@@ -342,7 +342,7 @@ const AccordionBase = _a => {
|
|
|
342
342
|
setVisible(visible);
|
|
343
343
|
updateValues && updateValues(index, visible);
|
|
344
344
|
};
|
|
345
|
-
const classNames =
|
|
345
|
+
const classNames = bomCore.getClassNames('accordion', {
|
|
346
346
|
shadow
|
|
347
347
|
}, className);
|
|
348
348
|
return jsxRuntime.jsxs(StyledAccordion$1, Object.assign({
|
|
@@ -373,7 +373,7 @@ const AccordionBase = _a => {
|
|
|
373
373
|
}))]
|
|
374
374
|
}));
|
|
375
375
|
};
|
|
376
|
-
const Accordion =
|
|
376
|
+
const Accordion = bomCore.withSchema(AccordionBase, {
|
|
377
377
|
Group: AccordionGroup,
|
|
378
378
|
displayName: 'Accordion'
|
|
379
379
|
});
|
|
@@ -899,7 +899,7 @@ const Link = /*#__PURE__*/React__default.default.forwardRef((_a, ref) => {
|
|
|
899
899
|
children
|
|
900
900
|
} = _a,
|
|
901
901
|
props = __rest(_a, ["href", "icon", "underline", "className", "children"]);
|
|
902
|
-
const classNames =
|
|
902
|
+
const classNames = bomCore.getClassNames('link', {
|
|
903
903
|
underline
|
|
904
904
|
}, className);
|
|
905
905
|
return jsxRuntime.jsxs(StyledLink, Object.assign({
|
|
@@ -925,7 +925,7 @@ const BreadcrumbSeparator = _ref => {
|
|
|
925
925
|
className = '',
|
|
926
926
|
children
|
|
927
927
|
} = _ref;
|
|
928
|
-
const classNames =
|
|
928
|
+
const classNames = bomCore.getClassNames('breadcrumb-separator', className);
|
|
929
929
|
return jsxRuntime.jsx(StyledBreadcrumbSeparator, Object.assign({
|
|
930
930
|
className: classNames
|
|
931
931
|
}, {
|
|
@@ -948,7 +948,7 @@ const BreadcrumbItem = /*#__PURE__*/React__default.default.forwardRef((_a, ref)
|
|
|
948
948
|
const clickHandler = event => {
|
|
949
949
|
onClick && onClick(event);
|
|
950
950
|
};
|
|
951
|
-
const classNames =
|
|
951
|
+
const classNames = bomCore.getClassNames('breadcrumb-item', className);
|
|
952
952
|
if (!isLink) {
|
|
953
953
|
return jsxRuntime.jsx("span", Object.assign({
|
|
954
954
|
className: classNames,
|
|
@@ -1050,7 +1050,7 @@ const BreadcrumbBase = _a => {
|
|
|
1050
1050
|
children: withSeparatorChildren
|
|
1051
1051
|
}));
|
|
1052
1052
|
};
|
|
1053
|
-
const Breadcrumb =
|
|
1053
|
+
const Breadcrumb = bomCore.withSchema(BreadcrumbBase, {
|
|
1054
1054
|
Item: BreadcrumbItem,
|
|
1055
1055
|
Separator: BreadcrumbSeparator,
|
|
1056
1056
|
Group: BreadcrumbGroup,
|
|
@@ -1501,7 +1501,7 @@ const Button = /*#__PURE__*/React.forwardRef((_a, ref) => {
|
|
|
1501
1501
|
type = 'button'
|
|
1502
1502
|
} = _a,
|
|
1503
1503
|
props = __rest(_a, ["children", "className", "as", "type"]);
|
|
1504
|
-
const classNames =
|
|
1504
|
+
const classNames = bomCore.getClassNames('button', className, {
|
|
1505
1505
|
disabled: props.disabled
|
|
1506
1506
|
});
|
|
1507
1507
|
return jsxRuntime.jsx(StyledButton$2, Object.assign({
|
|
@@ -1628,7 +1628,7 @@ const CardBase = /*#__PURE__*/React.forwardRef((_a, ref) => {
|
|
|
1628
1628
|
as = 'div'
|
|
1629
1629
|
} = _a,
|
|
1630
1630
|
props = __rest(_a, ["children", "className", "as"]);
|
|
1631
|
-
const classNames =
|
|
1631
|
+
const classNames = bomCore.getClassNames('card', className);
|
|
1632
1632
|
return jsxRuntime.jsx(StyledCard$5, Object.assign({
|
|
1633
1633
|
className: classNames,
|
|
1634
1634
|
ref: ref,
|
|
@@ -1638,7 +1638,7 @@ const CardBase = /*#__PURE__*/React.forwardRef((_a, ref) => {
|
|
|
1638
1638
|
}));
|
|
1639
1639
|
});
|
|
1640
1640
|
CardBase.displayName = 'Card';
|
|
1641
|
-
const Card =
|
|
1641
|
+
const Card = bomCore.withSchema(CardBase, {
|
|
1642
1642
|
Background: Background,
|
|
1643
1643
|
Content: CardContent,
|
|
1644
1644
|
Footer: CardFooter
|
|
@@ -1678,7 +1678,7 @@ const ContainerFluid = /*#__PURE__*/React.forwardRef((_a, ref) => {
|
|
|
1678
1678
|
}));
|
|
1679
1679
|
});
|
|
1680
1680
|
ContainerFluid.displayName = 'ContainerFluid';
|
|
1681
|
-
const Container =
|
|
1681
|
+
const Container = bomCore.withSchema(ContainerBase, {
|
|
1682
1682
|
Fluid: ContainerFluid,
|
|
1683
1683
|
displayName: 'Container'
|
|
1684
1684
|
});
|
|
@@ -1898,9 +1898,9 @@ const Backdrop = /*#__PURE__*/React__default.default.memo(_a => {
|
|
|
1898
1898
|
clearTimeout(timer);
|
|
1899
1899
|
}, 0);
|
|
1900
1900
|
};
|
|
1901
|
-
const backdropClassNames =
|
|
1902
|
-
const layerClassNames =
|
|
1903
|
-
const positionClassNames =
|
|
1901
|
+
const backdropClassNames = bomCore.getClassNames('backdrop', backdropClassName);
|
|
1902
|
+
const layerClassNames = bomCore.getClassNames('layer', layerClassName);
|
|
1903
|
+
const positionClassNames = bomCore.getClassNames('position', positionClassName);
|
|
1904
1904
|
// !!! todo backdrop position styled component with css responsive.
|
|
1905
1905
|
return jsxRuntime.jsx(Transition, Object.assign({
|
|
1906
1906
|
name: "backdrop-wrapper",
|
|
@@ -1954,7 +1954,7 @@ const ModalContent = _a => {
|
|
|
1954
1954
|
children
|
|
1955
1955
|
} = _a,
|
|
1956
1956
|
props = __rest(_a, ["className", "children"]);
|
|
1957
|
-
const classNames =
|
|
1957
|
+
const classNames = bomCore.getClassNames('content', className);
|
|
1958
1958
|
return jsxRuntime.jsx(StyleContent, Object.assign({
|
|
1959
1959
|
className: classNames
|
|
1960
1960
|
}, props, {
|
|
@@ -2165,7 +2165,7 @@ const DrawerWrapper = _a => {
|
|
|
2165
2165
|
}
|
|
2166
2166
|
}
|
|
2167
2167
|
};
|
|
2168
|
-
const classNames =
|
|
2168
|
+
const classNames = bomCore.getClassNames('wrapper', placement, className);
|
|
2169
2169
|
return jsxRuntime.jsx(Transition, Object.assign({
|
|
2170
2170
|
name: "wrapper",
|
|
2171
2171
|
visible: visible,
|
|
@@ -2278,7 +2278,7 @@ const DrawerBase = _a => {
|
|
|
2278
2278
|
}))
|
|
2279
2279
|
})), portal);
|
|
2280
2280
|
};
|
|
2281
|
-
const Drawer =
|
|
2281
|
+
const Drawer = bomCore.withSchema(DrawerBase, {
|
|
2282
2282
|
Title: ModalTitle,
|
|
2283
2283
|
Subtitle: ModalSubtitle,
|
|
2284
2284
|
Content: ModalContent,
|
|
@@ -2404,7 +2404,7 @@ const Dropdown = /*#__PURE__*/React__default.default.memo(_ref => {
|
|
|
2404
2404
|
const element = getPopupContainer();
|
|
2405
2405
|
const style = window.getComputedStyle(element);
|
|
2406
2406
|
if (style.position === 'static') {
|
|
2407
|
-
|
|
2407
|
+
bomCore.consoleWarn('The element specified by "getPopupContainer" must have "position" set.');
|
|
2408
2408
|
}
|
|
2409
2409
|
}
|
|
2410
2410
|
}
|
|
@@ -2461,7 +2461,7 @@ const Dropdown = /*#__PURE__*/React__default.default.memo(_ref => {
|
|
|
2461
2461
|
if (!portal) {
|
|
2462
2462
|
return null;
|
|
2463
2463
|
}
|
|
2464
|
-
const classNames =
|
|
2464
|
+
const classNames = bomCore.getClassNames('dropdown', disableMatchWidth ? 'disable-match' : 'width-match');
|
|
2465
2465
|
return /*#__PURE__*/reactDom.createPortal(jsxRuntime.jsx(Transition, Object.assign({
|
|
2466
2466
|
visible: visible
|
|
2467
2467
|
}, {
|
|
@@ -2558,7 +2558,7 @@ const Expand = _ref => {
|
|
|
2558
2558
|
clearTimeout(resetTimer.current);
|
|
2559
2559
|
};
|
|
2560
2560
|
}, [isExpanded]);
|
|
2561
|
-
const classNames =
|
|
2561
|
+
const classNames = bomCore.getClassNames('container', {
|
|
2562
2562
|
expanded: selfExpanded,
|
|
2563
2563
|
visible
|
|
2564
2564
|
});
|
|
@@ -2683,7 +2683,7 @@ const FlexFlow = /*#__PURE__*/React.forwardRef((_a, ref) => {
|
|
|
2683
2683
|
window.removeEventListener('resize', onResize);
|
|
2684
2684
|
};
|
|
2685
2685
|
}, [children]);
|
|
2686
|
-
const classNames =
|
|
2686
|
+
const classNames = bomCore.getClassNames('flex-flow', className);
|
|
2687
2687
|
return jsxRuntime.jsx(StyledFlexFlow, Object.assign({
|
|
2688
2688
|
className: classNames,
|
|
2689
2689
|
ref: innerRef,
|
|
@@ -2764,7 +2764,7 @@ const FlexBase = styled__default.default.div`
|
|
|
2764
2764
|
align-items: center;
|
|
2765
2765
|
${props => getCssResponsive(props)}
|
|
2766
2766
|
`;
|
|
2767
|
-
const Flex =
|
|
2767
|
+
const Flex = bomCore.withSchema(FlexBase, {
|
|
2768
2768
|
Row: FlexRow,
|
|
2769
2769
|
Col: FlexCol,
|
|
2770
2770
|
Responsive: FlexResponsive,
|
|
@@ -2785,12 +2785,12 @@ var font = {
|
|
|
2785
2785
|
primary: {
|
|
2786
2786
|
family: "Inter, -apple-system, 'Helvetica Neue', 'Segoe UI', Roboto, Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'",
|
|
2787
2787
|
size: ["Min(6.25rem, 16vw)", "Min(4.5rem, 11.5vw)", "Min(2.75rem, 7vw)", "Min(2.5rem, 6.4vw)", "2.25rem", "1.875rem", "1.5rem", "1.125rem", "1rem", "0.9rem", "0.8rem", "0.7rem"],
|
|
2788
|
-
lineHeight: ["
|
|
2788
|
+
lineHeight: ["1.15", "1.25", "1.35", "1.45", "1.55", "1.65", "1.75", "1.85", "1.95", "2.05", "2.15", "2.25"]
|
|
2789
2789
|
},
|
|
2790
2790
|
secondary: {
|
|
2791
2791
|
family: "Petrona, serif",
|
|
2792
2792
|
size: ["7.5rem", "5.4rem", "3.3rem", "3rem", "2.7rem", "2.25rem", "1.8rem", "1.35rem", "1.2rem", "1.08rem", "0.96rem", "0.84rem"],
|
|
2793
|
-
lineHeight: ["
|
|
2793
|
+
lineHeight: ["1.15", "1.25", "1.35", "1.45", "1.55", "1.65", "1.75", "1.85", "1.95", "2.05", "2.15", "2.25"]
|
|
2794
2794
|
}
|
|
2795
2795
|
};
|
|
2796
2796
|
var grid = {
|
|
@@ -2866,26 +2866,26 @@ var color = {
|
|
|
2866
2866
|
"900": "#09090A"
|
|
2867
2867
|
},
|
|
2868
2868
|
primary: {
|
|
2869
|
-
"100": "#
|
|
2870
|
-
"200": "#
|
|
2871
|
-
"300": "#
|
|
2872
|
-
"400": "#
|
|
2873
|
-
"500": "#
|
|
2874
|
-
"600": "#
|
|
2875
|
-
"700": "#
|
|
2876
|
-
"800": "#
|
|
2877
|
-
"900": "#
|
|
2869
|
+
"100": "#e6f6fd",
|
|
2870
|
+
"200": "#b3e3fa",
|
|
2871
|
+
"300": "#80d1f6",
|
|
2872
|
+
"400": "#4dbef2",
|
|
2873
|
+
"500": "#00a2ed",
|
|
2874
|
+
"600": "#0071a6",
|
|
2875
|
+
"700": "#005177",
|
|
2876
|
+
"800": "#003147",
|
|
2877
|
+
"900": "#001018"
|
|
2878
2878
|
},
|
|
2879
2879
|
secondary: {
|
|
2880
|
-
"100": "#
|
|
2881
|
-
"200": "#
|
|
2882
|
-
"300": "#
|
|
2883
|
-
"400": "#
|
|
2884
|
-
"500": "#
|
|
2885
|
-
"600": "#
|
|
2886
|
-
"700": "#
|
|
2887
|
-
"800": "#
|
|
2888
|
-
"900": "#
|
|
2880
|
+
"100": "#e6fded",
|
|
2881
|
+
"200": "#b3f9ca",
|
|
2882
|
+
"300": "#80f5a7",
|
|
2883
|
+
"400": "#4df083",
|
|
2884
|
+
"500": "#00ea4e",
|
|
2885
|
+
"600": "#00a437",
|
|
2886
|
+
"700": "#007527",
|
|
2887
|
+
"800": "#004617",
|
|
2888
|
+
"900": "#001708"
|
|
2889
2889
|
},
|
|
2890
2890
|
success: {
|
|
2891
2891
|
"100": "#CFFDD5",
|
|
@@ -2957,18 +2957,18 @@ const CssVars = styled.css`
|
|
|
2957
2957
|
--font-primary-size-9: 0.9rem;
|
|
2958
2958
|
--font-primary-size-10: 0.8rem;
|
|
2959
2959
|
--font-primary-size-11: 0.7rem;
|
|
2960
|
-
--font-primary-line-height-0:
|
|
2961
|
-
--font-primary-line-height-1: 1.
|
|
2962
|
-
--font-primary-line-height-2: 1.
|
|
2963
|
-
--font-primary-line-height-3: 1.
|
|
2964
|
-
--font-primary-line-height-4: 1.
|
|
2965
|
-
--font-primary-line-height-5: 1.
|
|
2966
|
-
--font-primary-line-height-6: 1.
|
|
2967
|
-
--font-primary-line-height-7: 1.
|
|
2968
|
-
--font-primary-line-height-8: 1.
|
|
2969
|
-
--font-primary-line-height-9:
|
|
2970
|
-
--font-primary-line-height-10:
|
|
2971
|
-
--font-primary-line-height-11:
|
|
2960
|
+
--font-primary-line-height-0: 1.15;
|
|
2961
|
+
--font-primary-line-height-1: 1.25;
|
|
2962
|
+
--font-primary-line-height-2: 1.35;
|
|
2963
|
+
--font-primary-line-height-3: 1.45;
|
|
2964
|
+
--font-primary-line-height-4: 1.55;
|
|
2965
|
+
--font-primary-line-height-5: 1.65;
|
|
2966
|
+
--font-primary-line-height-6: 1.75;
|
|
2967
|
+
--font-primary-line-height-7: 1.85;
|
|
2968
|
+
--font-primary-line-height-8: 1.95;
|
|
2969
|
+
--font-primary-line-height-9: 2.05;
|
|
2970
|
+
--font-primary-line-height-10: 2.15;
|
|
2971
|
+
--font-primary-line-height-11: 2.25;
|
|
2972
2972
|
--font-secondary-family: Petrona, serif;
|
|
2973
2973
|
--font-secondary-size-0: 7.5rem;
|
|
2974
2974
|
--font-secondary-size-1: 5.4rem;
|
|
@@ -2982,18 +2982,18 @@ const CssVars = styled.css`
|
|
|
2982
2982
|
--font-secondary-size-9: 1.08rem;
|
|
2983
2983
|
--font-secondary-size-10: 0.96rem;
|
|
2984
2984
|
--font-secondary-size-11: 0.84rem;
|
|
2985
|
-
--font-secondary-line-height-0:
|
|
2986
|
-
--font-secondary-line-height-1: 1.
|
|
2987
|
-
--font-secondary-line-height-2: 1.
|
|
2988
|
-
--font-secondary-line-height-3: 1.
|
|
2989
|
-
--font-secondary-line-height-4: 1.
|
|
2990
|
-
--font-secondary-line-height-5: 1.
|
|
2991
|
-
--font-secondary-line-height-6: 1.
|
|
2992
|
-
--font-secondary-line-height-7: 1.
|
|
2993
|
-
--font-secondary-line-height-8: 1.
|
|
2994
|
-
--font-secondary-line-height-9:
|
|
2995
|
-
--font-secondary-line-height-10:
|
|
2996
|
-
--font-secondary-line-height-11:
|
|
2985
|
+
--font-secondary-line-height-0: 1.15;
|
|
2986
|
+
--font-secondary-line-height-1: 1.25;
|
|
2987
|
+
--font-secondary-line-height-2: 1.35;
|
|
2988
|
+
--font-secondary-line-height-3: 1.45;
|
|
2989
|
+
--font-secondary-line-height-4: 1.55;
|
|
2990
|
+
--font-secondary-line-height-5: 1.65;
|
|
2991
|
+
--font-secondary-line-height-6: 1.75;
|
|
2992
|
+
--font-secondary-line-height-7: 1.85;
|
|
2993
|
+
--font-secondary-line-height-8: 1.95;
|
|
2994
|
+
--font-secondary-line-height-9: 2.05;
|
|
2995
|
+
--font-secondary-line-height-10: 2.15;
|
|
2996
|
+
--font-secondary-line-height-11: 2.25;
|
|
2997
2997
|
--grid-columns: 12;
|
|
2998
2998
|
--grid-size: 1fr;
|
|
2999
2999
|
--grid-column-gap: Max(4vw, Min(96px, calc(100% / 24)));
|
|
@@ -3039,24 +3039,24 @@ const CssVars = styled.css`
|
|
|
3039
3039
|
--color-neutral-700: #44444B;
|
|
3040
3040
|
--color-neutral-800: #27272B;
|
|
3041
3041
|
--color-neutral-900: #09090A;
|
|
3042
|
-
--color-primary-100: #
|
|
3043
|
-
--color-primary-200: #
|
|
3044
|
-
--color-primary-300: #
|
|
3045
|
-
--color-primary-400: #
|
|
3046
|
-
--color-primary-500: #
|
|
3047
|
-
--color-primary-600: #
|
|
3048
|
-
--color-primary-700: #
|
|
3049
|
-
--color-primary-800: #
|
|
3050
|
-
--color-primary-900: #
|
|
3051
|
-
--color-secondary-100: #
|
|
3052
|
-
--color-secondary-200: #
|
|
3053
|
-
--color-secondary-300: #
|
|
3054
|
-
--color-secondary-400: #
|
|
3055
|
-
--color-secondary-500: #
|
|
3056
|
-
--color-secondary-600: #
|
|
3057
|
-
--color-secondary-700: #
|
|
3058
|
-
--color-secondary-800: #
|
|
3059
|
-
--color-secondary-900: #
|
|
3042
|
+
--color-primary-100: #e6f6fd;
|
|
3043
|
+
--color-primary-200: #b3e3fa;
|
|
3044
|
+
--color-primary-300: #80d1f6;
|
|
3045
|
+
--color-primary-400: #4dbef2;
|
|
3046
|
+
--color-primary-500: #00a2ed;
|
|
3047
|
+
--color-primary-600: #0071a6;
|
|
3048
|
+
--color-primary-700: #005177;
|
|
3049
|
+
--color-primary-800: #003147;
|
|
3050
|
+
--color-primary-900: #001018;
|
|
3051
|
+
--color-secondary-100: #e6fded;
|
|
3052
|
+
--color-secondary-200: #b3f9ca;
|
|
3053
|
+
--color-secondary-300: #80f5a7;
|
|
3054
|
+
--color-secondary-400: #4df083;
|
|
3055
|
+
--color-secondary-500: #00ea4e;
|
|
3056
|
+
--color-secondary-600: #00a437;
|
|
3057
|
+
--color-secondary-700: #007527;
|
|
3058
|
+
--color-secondary-800: #004617;
|
|
3059
|
+
--color-secondary-900: #001708;
|
|
3060
3060
|
--color-success-100: #CFFDD5;
|
|
3061
3061
|
--color-success-200: #A1FCB5;
|
|
3062
3062
|
--color-success-300: #70F69B;
|
|
@@ -3120,6 +3120,24 @@ const CssScrollbar = styled.css`
|
|
|
3120
3120
|
background-color: var(--color-neutral-100);
|
|
3121
3121
|
}
|
|
3122
3122
|
}
|
|
3123
|
+
|
|
3124
|
+
.negative * {
|
|
3125
|
+
&::-webkit-scrollbar-thumb {
|
|
3126
|
+
background-color: var(--color-neutral-600);
|
|
3127
|
+
|
|
3128
|
+
&:hover {
|
|
3129
|
+
background-color: var(--color-neutral-400);
|
|
3130
|
+
}
|
|
3131
|
+
}
|
|
3132
|
+
|
|
3133
|
+
&::-webkit-scrollbar-track {
|
|
3134
|
+
background-color: var(--color-neutral-800);
|
|
3135
|
+
|
|
3136
|
+
&:hover {
|
|
3137
|
+
background-color: var(--color-neutral-800);
|
|
3138
|
+
}
|
|
3139
|
+
}
|
|
3140
|
+
}
|
|
3123
3141
|
`;
|
|
3124
3142
|
|
|
3125
3143
|
const CssBase = styled.css`
|
|
@@ -3129,6 +3147,11 @@ body {
|
|
|
3129
3147
|
// color: var(--color-neutral-500);
|
|
3130
3148
|
scroll-behavior: smooth;
|
|
3131
3149
|
}
|
|
3150
|
+
|
|
3151
|
+
.negative {
|
|
3152
|
+
background: var(--color-neutral-900);
|
|
3153
|
+
color: var(--color-neutral-100);
|
|
3154
|
+
}
|
|
3132
3155
|
`;
|
|
3133
3156
|
|
|
3134
3157
|
const CssDebug = styled.css`
|
|
@@ -3451,7 +3474,7 @@ const GridBase = styled__default.default.div`
|
|
|
3451
3474
|
${props => getMediaQueryColumn(props)}
|
|
3452
3475
|
${props => getCssResponsive(props)}
|
|
3453
3476
|
`;
|
|
3454
|
-
const Grid =
|
|
3477
|
+
const Grid = bomCore.withSchema(GridBase, {
|
|
3455
3478
|
Row: GridRow,
|
|
3456
3479
|
displayName: 'Grid'
|
|
3457
3480
|
});
|
|
@@ -3516,7 +3539,7 @@ const Highlight = _a => {
|
|
|
3516
3539
|
transition: isFirstVisible ? 'opacity' : 'opacity, width, left, top'
|
|
3517
3540
|
};
|
|
3518
3541
|
}, [rect, hoverWidthRatio, hoverHeightRatio, isFirstVisible]);
|
|
3519
|
-
const classNames =
|
|
3542
|
+
const classNames = bomCore.getClassNames('highlight', {
|
|
3520
3543
|
active: visible
|
|
3521
3544
|
}, className);
|
|
3522
3545
|
return jsxRuntime.jsx(StyledHighlight, Object.assign({
|
|
@@ -3603,7 +3626,7 @@ const InfiniteLoader = _a => {
|
|
|
3603
3626
|
onScroll();
|
|
3604
3627
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3605
3628
|
}, []);
|
|
3606
|
-
const classNames =
|
|
3629
|
+
const classNames = bomCore.getClassNames('infinite-loader');
|
|
3607
3630
|
return jsxRuntime.jsx(StyledInfiniteLoader, Object.assign({
|
|
3608
3631
|
as: as,
|
|
3609
3632
|
ref: ref,
|
|
@@ -3666,7 +3689,7 @@ const MediaImage = _a => {
|
|
|
3666
3689
|
type
|
|
3667
3690
|
} = _a,
|
|
3668
3691
|
props = __rest(_a, ["alt", "className", "type"]);
|
|
3669
|
-
const classNames =
|
|
3692
|
+
const classNames = bomCore.getClassNames(className, 'image', {
|
|
3670
3693
|
'image-svg': isSVG(props.src)
|
|
3671
3694
|
});
|
|
3672
3695
|
const imageProps = getImageProps(props);
|
|
@@ -3733,7 +3756,7 @@ const MediaInfo = _a => {
|
|
|
3733
3756
|
className
|
|
3734
3757
|
} = _a,
|
|
3735
3758
|
props = __rest(_a, ["children", "className"]);
|
|
3736
|
-
const classNames =
|
|
3759
|
+
const classNames = bomCore.getClassNames(className, 'media-info');
|
|
3737
3760
|
return jsxRuntime.jsx(StyledMediaInfo, Object.assign({
|
|
3738
3761
|
className: classNames
|
|
3739
3762
|
}, props, {
|
|
@@ -3832,7 +3855,7 @@ const MediaBase = /*#__PURE__*/React.forwardRef((_a, ref) => {
|
|
|
3832
3855
|
id,
|
|
3833
3856
|
open
|
|
3834
3857
|
} = useMediaGalleryContext();
|
|
3835
|
-
const classNames =
|
|
3858
|
+
const classNames = bomCore.getClassNames(className, 'media', {
|
|
3836
3859
|
'media--gallery': id
|
|
3837
3860
|
});
|
|
3838
3861
|
const mediaChildren = item && !children ? getMediaItems(item, {
|
|
@@ -3850,7 +3873,7 @@ const MediaBase = /*#__PURE__*/React.forwardRef((_a, ref) => {
|
|
|
3850
3873
|
}));
|
|
3851
3874
|
});
|
|
3852
3875
|
MediaBase.displayName = 'Media';
|
|
3853
|
-
const Media =
|
|
3876
|
+
const Media = bomCore.withSchema(MediaBase, {
|
|
3854
3877
|
Info: MediaInfo
|
|
3855
3878
|
});
|
|
3856
3879
|
function getMediaItems(itemOrItems, options) {
|
|
@@ -3983,7 +4006,7 @@ const ModalButton = /*#__PURE__*/React__default.default.forwardRef((_a, ref) =>
|
|
|
3983
4006
|
effect: false,
|
|
3984
4007
|
ref: btnRef
|
|
3985
4008
|
});
|
|
3986
|
-
const classNames =
|
|
4009
|
+
const classNames = bomCore.getClassNames(resolveClassName, className);
|
|
3987
4010
|
return jsxRuntime.jsx(StyledButton$1, Object.assign({
|
|
3988
4011
|
variant: "default",
|
|
3989
4012
|
className: classNames
|
|
@@ -4036,7 +4059,7 @@ const ModalClose = /*#__PURE__*/React__default.default.forwardRef((_a, ref) => {
|
|
|
4036
4059
|
effect: false,
|
|
4037
4060
|
ref: btnRef
|
|
4038
4061
|
});
|
|
4039
|
-
const classNames =
|
|
4062
|
+
const classNames = bomCore.getClassNames(className);
|
|
4040
4063
|
return jsxRuntime.jsx(StyledButton, Object.assign({
|
|
4041
4064
|
variant: "circle",
|
|
4042
4065
|
className: classNames
|
|
@@ -4179,7 +4202,7 @@ const ModalWrapper = _a => {
|
|
|
4179
4202
|
}
|
|
4180
4203
|
}
|
|
4181
4204
|
};
|
|
4182
|
-
const classNames =
|
|
4205
|
+
const classNames = bomCore.getClassNames('wrapper', className);
|
|
4183
4206
|
return jsxRuntime.jsx(Transition, Object.assign({
|
|
4184
4207
|
name: "wrapper",
|
|
4185
4208
|
visible: visible,
|
|
@@ -4306,7 +4329,7 @@ const ModalBase = _ref => {
|
|
|
4306
4329
|
}))
|
|
4307
4330
|
})), portal);
|
|
4308
4331
|
};
|
|
4309
|
-
const Modal =
|
|
4332
|
+
const Modal = bomCore.withSchema(ModalBase, {
|
|
4310
4333
|
Title: ModalTitle,
|
|
4311
4334
|
Subtitle: ModalSubtitle,
|
|
4312
4335
|
Content: ModalContent,
|
|
@@ -4332,8 +4355,8 @@ const CssA = styled.css`
|
|
|
4332
4355
|
}
|
|
4333
4356
|
`;
|
|
4334
4357
|
const CssP = styled.css`
|
|
4335
|
-
p {
|
|
4336
|
-
margin-bottom:
|
|
4358
|
+
p:not(:last-child) {
|
|
4359
|
+
margin-bottom: 1rem;
|
|
4337
4360
|
}
|
|
4338
4361
|
`;
|
|
4339
4362
|
const CssUl = styled.css`
|
|
@@ -4407,7 +4430,7 @@ const TextSROnly = styled__default.default.div`
|
|
|
4407
4430
|
white-space: nowrap;
|
|
4408
4431
|
border-width: 0;
|
|
4409
4432
|
`;
|
|
4410
|
-
const Text =
|
|
4433
|
+
const Text = bomCore.withSchema(TextBase, {
|
|
4411
4434
|
Primary: TextBase,
|
|
4412
4435
|
Secondary: TextSecondary,
|
|
4413
4436
|
SROnly: TextSROnly,
|
|
@@ -4802,7 +4825,7 @@ const NavBase = props => {
|
|
|
4802
4825
|
children: props.children
|
|
4803
4826
|
}));
|
|
4804
4827
|
};
|
|
4805
|
-
const Nav =
|
|
4828
|
+
const Nav = bomCore.withSchema(NavBase, {
|
|
4806
4829
|
Row: NavRow,
|
|
4807
4830
|
Col: NavCol,
|
|
4808
4831
|
displayName: 'Nav'
|
|
@@ -4868,7 +4891,7 @@ const PageNav = props => {
|
|
|
4868
4891
|
onScroll();
|
|
4869
4892
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
4870
4893
|
}, []);
|
|
4871
|
-
const classNames =
|
|
4894
|
+
const classNames = bomCore.getClassNames('page-nav');
|
|
4872
4895
|
return jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
4873
4896
|
children: jsxRuntime.jsx(PageNavContainer, Object.assign({
|
|
4874
4897
|
ref: innerRef,
|
|
@@ -4886,7 +4909,7 @@ const PageNav = props => {
|
|
|
4886
4909
|
}, {
|
|
4887
4910
|
children: props.items.map((item, i) => jsxRuntime.jsx(Box, {
|
|
4888
4911
|
children: jsxRuntime.jsx(Button, Object.assign({
|
|
4889
|
-
className:
|
|
4912
|
+
className: bomCore.getClassNames({
|
|
4890
4913
|
active: item.href === `#${id}`
|
|
4891
4914
|
}),
|
|
4892
4915
|
as: "a",
|
|
@@ -5009,7 +5032,7 @@ const PaginationItem = _a => {
|
|
|
5009
5032
|
}
|
|
5010
5033
|
onClick && onClick(event);
|
|
5011
5034
|
};
|
|
5012
|
-
const classNames =
|
|
5035
|
+
const classNames = bomCore.getClassNames({
|
|
5013
5036
|
active,
|
|
5014
5037
|
disabled
|
|
5015
5038
|
});
|
|
@@ -5061,7 +5084,7 @@ const PaginationEllipsis = _ref => {
|
|
|
5061
5084
|
onClick
|
|
5062
5085
|
} = _ref;
|
|
5063
5086
|
const [showMore, setShowMore] = React.useState(false);
|
|
5064
|
-
const moreClassNames =
|
|
5087
|
+
const moreClassNames = bomCore.getClassNames('more', {
|
|
5065
5088
|
before: isBefore
|
|
5066
5089
|
});
|
|
5067
5090
|
return jsxRuntime.jsx(StyledPaginationItem, Object.assign({
|
|
@@ -5279,7 +5302,7 @@ const PaginationBase = _a => {
|
|
|
5279
5302
|
}))
|
|
5280
5303
|
}));
|
|
5281
5304
|
};
|
|
5282
|
-
const Pagination =
|
|
5305
|
+
const Pagination = bomCore.withSchema(PaginationBase, {
|
|
5283
5306
|
Previous: PaginationPrevious,
|
|
5284
5307
|
Next: PaginationNext,
|
|
5285
5308
|
displayName: 'Pagination'
|
|
@@ -5562,7 +5585,7 @@ const TooltipContent = _ref => {
|
|
|
5562
5585
|
iconOffset,
|
|
5563
5586
|
hasShadow
|
|
5564
5587
|
};
|
|
5565
|
-
const classNames =
|
|
5588
|
+
const classNames = bomCore.getClassNames('tooltip-content', className);
|
|
5566
5589
|
return /*#__PURE__*/reactDom.createPortal(jsxRuntime.jsx(Transition, Object.assign({
|
|
5567
5590
|
visible: visible
|
|
5568
5591
|
}, {
|
|
@@ -5660,7 +5683,7 @@ const Tooltip = _a => {
|
|
|
5660
5683
|
};
|
|
5661
5684
|
return jsxRuntime.jsxs(StyledTooltip$1, Object.assign({
|
|
5662
5685
|
ref: ref,
|
|
5663
|
-
className:
|
|
5686
|
+
className: bomCore.getClassNames('tooltip', className),
|
|
5664
5687
|
onMouseEnter: () => onEnterLeave(true),
|
|
5665
5688
|
onMouseLeave: () => onEnterLeave(false),
|
|
5666
5689
|
onClick: onClick
|
|
@@ -5738,7 +5761,7 @@ const PopoverItem = _a => {
|
|
|
5738
5761
|
}
|
|
5739
5762
|
onItemClick(event);
|
|
5740
5763
|
};
|
|
5741
|
-
const classNames =
|
|
5764
|
+
const classNames = bomCore.getClassNames('item', {
|
|
5742
5765
|
line,
|
|
5743
5766
|
title
|
|
5744
5767
|
}, className);
|
|
@@ -5801,7 +5824,7 @@ const PopoverBase = _a => {
|
|
|
5801
5824
|
}
|
|
5802
5825
|
onPopoverVisibleChange(customVisible);
|
|
5803
5826
|
}, [customVisible, onPopoverVisibleChange]);
|
|
5804
|
-
const portalClassNames =
|
|
5827
|
+
const portalClassNames = bomCore.getClassNames('popover', portalClassName);
|
|
5805
5828
|
return jsxRuntime.jsx(PopoverContext.Provider, Object.assign({
|
|
5806
5829
|
value: value
|
|
5807
5830
|
}, {
|
|
@@ -5817,7 +5840,7 @@ const PopoverBase = _a => {
|
|
|
5817
5840
|
}))
|
|
5818
5841
|
}));
|
|
5819
5842
|
};
|
|
5820
|
-
const Popover =
|
|
5843
|
+
const Popover = bomCore.withSchema(PopoverBase, {
|
|
5821
5844
|
Item: PopoverItem,
|
|
5822
5845
|
Option: PopoverItem,
|
|
5823
5846
|
displayName: 'Popover'
|
|
@@ -5864,7 +5887,7 @@ const SectionBase = props => {
|
|
|
5864
5887
|
children: props.children
|
|
5865
5888
|
}));
|
|
5866
5889
|
};
|
|
5867
|
-
const Section =
|
|
5890
|
+
const Section = bomCore.withSchema(SectionBase, {
|
|
5868
5891
|
Background: Background,
|
|
5869
5892
|
displayName: 'Section'
|
|
5870
5893
|
});
|
|
@@ -5886,7 +5909,7 @@ const Skeleton = _a => {
|
|
|
5886
5909
|
} = _a,
|
|
5887
5910
|
props = __rest(_a, ["loading"]);
|
|
5888
5911
|
const ref = React.useRef(null);
|
|
5889
|
-
const classNames =
|
|
5912
|
+
const classNames = bomCore.getClassNames('skeleton');
|
|
5890
5913
|
return jsxRuntime.jsx(StyledSkeleton, Object.assign({
|
|
5891
5914
|
ref: ref,
|
|
5892
5915
|
className: classNames
|
|
@@ -6022,7 +6045,7 @@ const SwiperPagination = props => {
|
|
|
6022
6045
|
const onSetSlide = index => {
|
|
6023
6046
|
setIndex(index);
|
|
6024
6047
|
};
|
|
6025
|
-
const getClassName = i =>
|
|
6048
|
+
const getClassName = i => bomCore.getClassNames({
|
|
6026
6049
|
active: index === i
|
|
6027
6050
|
});
|
|
6028
6051
|
return jsxRuntime.jsx(PaginationContainer, Object.assign({
|
|
@@ -6072,7 +6095,7 @@ const SwiperBase = props => {
|
|
|
6072
6095
|
})]
|
|
6073
6096
|
}));
|
|
6074
6097
|
};
|
|
6075
|
-
const SwiperComponent =
|
|
6098
|
+
const SwiperComponent = bomCore.withSchema(SwiperBase, {
|
|
6076
6099
|
Prev: SwiperPrev,
|
|
6077
6100
|
Next: SwiperNext,
|
|
6078
6101
|
Pagination: SwiperPagination,
|
|
@@ -6202,7 +6225,7 @@ const TabsItem = _ref => {
|
|
|
6202
6225
|
onClick && onClick(value);
|
|
6203
6226
|
};
|
|
6204
6227
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
6205
|
-
const classNames =
|
|
6228
|
+
const classNames = bomCore.getClassNames('tab', {
|
|
6206
6229
|
active,
|
|
6207
6230
|
disabled,
|
|
6208
6231
|
[activeClassName]: active,
|
|
@@ -6344,7 +6367,7 @@ const TabsBase = _a => {
|
|
|
6344
6367
|
value: initialValue
|
|
6345
6368
|
}, {
|
|
6346
6369
|
children: jsxRuntime.jsxs(StyledTabs, Object.assign({
|
|
6347
|
-
className:
|
|
6370
|
+
className: bomCore.getClassNames('tabs', className),
|
|
6348
6371
|
leftSpace: leftSpace,
|
|
6349
6372
|
align: align
|
|
6350
6373
|
}, props, {
|
|
@@ -6358,7 +6381,7 @@ const TabsBase = _a => {
|
|
|
6358
6381
|
hoverHeightRatio: hoverHeightRatio,
|
|
6359
6382
|
hoverWidthRatio: hoverWidthRatio
|
|
6360
6383
|
}), jsxRuntime.jsx("div", Object.assign({
|
|
6361
|
-
className:
|
|
6384
|
+
className: bomCore.getClassNames('scroll-container', {
|
|
6362
6385
|
'hide-divider': hideDivider
|
|
6363
6386
|
})
|
|
6364
6387
|
}, {
|
|
@@ -6384,7 +6407,7 @@ const TabsBase = _a => {
|
|
|
6384
6407
|
}))
|
|
6385
6408
|
}));
|
|
6386
6409
|
};
|
|
6387
|
-
const Tabs =
|
|
6410
|
+
const Tabs = bomCore.withSchema(TabsBase, {
|
|
6388
6411
|
Item: TabsItem,
|
|
6389
6412
|
Tab: TabsItem,
|
|
6390
6413
|
displayName: 'Tabs'
|
|
@@ -6422,7 +6445,7 @@ const AutocompleteDropdown = /*#__PURE__*/React__default.default.forwardRef((_re
|
|
|
6422
6445
|
ref
|
|
6423
6446
|
} = useAutocompleteContext();
|
|
6424
6447
|
React.useImperativeHandle(dropdownRef, () => internalDropdownRef.current);
|
|
6425
|
-
const classNames =
|
|
6448
|
+
const classNames = bomCore.getClassNames('select-dropdown', className);
|
|
6426
6449
|
return jsxRuntime.jsx(Dropdown, Object.assign({
|
|
6427
6450
|
parent: ref,
|
|
6428
6451
|
visible: visible,
|
|
@@ -6680,7 +6703,7 @@ const Autocomplete = /*#__PURE__*/React.forwardRef((_a, ref) => {
|
|
|
6680
6703
|
setInnerValue(initialValue.name);
|
|
6681
6704
|
}
|
|
6682
6705
|
}, [initialValue]);
|
|
6683
|
-
const classNames =
|
|
6706
|
+
const classNames = bomCore.getClassNames('autocomplete', {
|
|
6684
6707
|
focus,
|
|
6685
6708
|
disabled: props.disabled,
|
|
6686
6709
|
readonly: props.readOnly,
|
|
@@ -6815,7 +6838,7 @@ const Checkbox = /*#__PURE__*/React.forwardRef((_a, ref) => {
|
|
|
6815
6838
|
className
|
|
6816
6839
|
} = _a,
|
|
6817
6840
|
props = __rest(_a, ["className"]);
|
|
6818
|
-
const classNames =
|
|
6841
|
+
const classNames = bomCore.getClassNames('checkbox', className);
|
|
6819
6842
|
return jsxRuntime.jsxs(StyledCheckbox, Object.assign({
|
|
6820
6843
|
className: classNames
|
|
6821
6844
|
}, {
|
|
@@ -6880,7 +6903,7 @@ const CustomSelectDropdown = /*#__PURE__*/React__default.default.forwardRef((_re
|
|
|
6880
6903
|
ref
|
|
6881
6904
|
} = useCustomSelectContext();
|
|
6882
6905
|
React.useImperativeHandle(dropdownRef, () => internalDropdownRef.current);
|
|
6883
|
-
const classNames =
|
|
6906
|
+
const classNames = bomCore.getClassNames('select-dropdown', className);
|
|
6884
6907
|
return jsxRuntime.jsx(Dropdown, Object.assign({
|
|
6885
6908
|
parent: ref,
|
|
6886
6909
|
visible: visible,
|
|
@@ -7065,7 +7088,7 @@ const CustomSelectMultipleValue = _ref => {
|
|
|
7065
7088
|
onClear,
|
|
7066
7089
|
children
|
|
7067
7090
|
} = _ref;
|
|
7068
|
-
const classNames =
|
|
7091
|
+
const classNames = bomCore.getClassNames('multiple-value', {
|
|
7069
7092
|
disabled
|
|
7070
7093
|
});
|
|
7071
7094
|
return jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
@@ -7154,7 +7177,7 @@ const CustomSelectOption = _a => {
|
|
|
7154
7177
|
const isDisabled = React.useMemo(() => disabled || disableAll, [disabled, disableAll]);
|
|
7155
7178
|
const isLabel = React.useMemo(() => label || divider, [label, divider]);
|
|
7156
7179
|
if (!isLabel && valueProp === undefined) {
|
|
7157
|
-
|
|
7180
|
+
bomCore.consoleWarn('The props "value" is required.', 'CustomSelect Option');
|
|
7158
7181
|
}
|
|
7159
7182
|
const optionValue = valueProp || children || '';
|
|
7160
7183
|
const active = React.useMemo(() => {
|
|
@@ -7178,7 +7201,7 @@ const CustomSelectOption = _a => {
|
|
|
7178
7201
|
}
|
|
7179
7202
|
updateValue && updateValue(optionValue);
|
|
7180
7203
|
};
|
|
7181
|
-
const classNames =
|
|
7204
|
+
const classNames = bomCore.getClassNames('option', {
|
|
7182
7205
|
divider,
|
|
7183
7206
|
label,
|
|
7184
7207
|
active
|
|
@@ -7416,7 +7439,7 @@ const CustomSelectBase = /*#__PURE__*/React.forwardRef((_a, selectRef) => {
|
|
|
7416
7439
|
updateVisible(false);
|
|
7417
7440
|
setSelectFocus(false);
|
|
7418
7441
|
};
|
|
7419
|
-
const classNames =
|
|
7442
|
+
const classNames = bomCore.getClassNames('select', {
|
|
7420
7443
|
active: selectFocus || visible,
|
|
7421
7444
|
opened: visible,
|
|
7422
7445
|
multiple,
|
|
@@ -7468,7 +7491,7 @@ const CustomSelectBase = /*#__PURE__*/React.forwardRef((_a, selectRef) => {
|
|
|
7468
7491
|
}));
|
|
7469
7492
|
});
|
|
7470
7493
|
CustomSelectBase.displayName = 'CustomSelect';
|
|
7471
|
-
const CustomSelect =
|
|
7494
|
+
const CustomSelect = bomCore.withSchema(CustomSelectBase, {
|
|
7472
7495
|
Label: CustomSelectLabel,
|
|
7473
7496
|
Divider: CustomSelectDivider,
|
|
7474
7497
|
Option: CustomSelectOption
|
|
@@ -7491,7 +7514,7 @@ const Field = /*#__PURE__*/React.forwardRef((_a, ref) => {
|
|
|
7491
7514
|
className
|
|
7492
7515
|
} = _a,
|
|
7493
7516
|
props = __rest(_a, ["className"]);
|
|
7494
|
-
const classNames =
|
|
7517
|
+
const classNames = bomCore.getClassNames('input', className);
|
|
7495
7518
|
return jsxRuntime.jsx(StyledField, Object.assign({
|
|
7496
7519
|
ref: ref,
|
|
7497
7520
|
className: classNames,
|
|
@@ -7513,7 +7536,7 @@ const FormError = /*#__PURE__*/React.forwardRef((_a, ref) => {
|
|
|
7513
7536
|
className
|
|
7514
7537
|
} = _a,
|
|
7515
7538
|
props = __rest(_a, ["className"]);
|
|
7516
|
-
const classNames =
|
|
7539
|
+
const classNames = bomCore.getClassNames('form-error', className);
|
|
7517
7540
|
return jsxRuntime.jsx(StyledFormError, Object.assign({
|
|
7518
7541
|
ref: ref,
|
|
7519
7542
|
className: classNames
|
|
@@ -7582,7 +7605,7 @@ const Form = /*#__PURE__*/React.forwardRef((_a, ref) => {
|
|
|
7582
7605
|
className
|
|
7583
7606
|
} = _a,
|
|
7584
7607
|
props = __rest(_a, ["className"]);
|
|
7585
|
-
const classNames =
|
|
7608
|
+
const classNames = bomCore.getClassNames('form', className, (_b = props.state) === null || _b === void 0 ? void 0 : _b.flags);
|
|
7586
7609
|
return jsxRuntime.jsx(StyledForm, Object.assign({
|
|
7587
7610
|
ref: ref,
|
|
7588
7611
|
className: classNames,
|
|
@@ -7682,7 +7705,7 @@ const Input = /*#__PURE__*/React.forwardRef((_a, ref) => {
|
|
|
7682
7705
|
onBlur && onBlur(event);
|
|
7683
7706
|
setFocus(false);
|
|
7684
7707
|
};
|
|
7685
|
-
const classNames =
|
|
7708
|
+
const classNames = bomCore.getClassNames('input', {
|
|
7686
7709
|
focus,
|
|
7687
7710
|
disabled: props.disabled,
|
|
7688
7711
|
readonly: props.readOnly,
|
|
@@ -7749,7 +7772,7 @@ const InputGroupBase = /*#__PURE__*/React.forwardRef((_a, ref) => {
|
|
|
7749
7772
|
className
|
|
7750
7773
|
} = _a,
|
|
7751
7774
|
props = __rest(_a, ["children", "className"]);
|
|
7752
|
-
const classNames =
|
|
7775
|
+
const classNames = bomCore.getClassNames('input-group', className);
|
|
7753
7776
|
return jsxRuntime.jsx(StyledInputGroup, Object.assign({
|
|
7754
7777
|
className: classNames,
|
|
7755
7778
|
as: "div"
|
|
@@ -7758,7 +7781,7 @@ const InputGroupBase = /*#__PURE__*/React.forwardRef((_a, ref) => {
|
|
|
7758
7781
|
}));
|
|
7759
7782
|
});
|
|
7760
7783
|
InputGroupBase.displayName = 'InputGroup';
|
|
7761
|
-
const InputGroup =
|
|
7784
|
+
const InputGroup = bomCore.withSchema(InputGroupBase, {
|
|
7762
7785
|
Input: Input
|
|
7763
7786
|
});
|
|
7764
7787
|
|
|
@@ -7777,7 +7800,7 @@ const Label = /*#__PURE__*/React.forwardRef((_a, ref) => {
|
|
|
7777
7800
|
as = 'label'
|
|
7778
7801
|
} = _a,
|
|
7779
7802
|
props = __rest(_a, ["className", "as"]);
|
|
7780
|
-
const classNames =
|
|
7803
|
+
const classNames = bomCore.getClassNames('label', className);
|
|
7781
7804
|
return jsxRuntime.jsx(StyledLabel, Object.assign({
|
|
7782
7805
|
className: classNames,
|
|
7783
7806
|
ref: ref,
|
|
@@ -8017,7 +8040,7 @@ const RadioCardTitle = /*#__PURE__*/React.forwardRef((_a, ref) => {
|
|
|
8017
8040
|
className
|
|
8018
8041
|
} = _a,
|
|
8019
8042
|
props = __rest(_a, ["as", "className"]);
|
|
8020
|
-
const classNames =
|
|
8043
|
+
const classNames = bomCore.getClassNames('title', className);
|
|
8021
8044
|
return jsxRuntime.jsx(Text, Object.assign({
|
|
8022
8045
|
className: classNames,
|
|
8023
8046
|
size: "7",
|
|
@@ -8032,7 +8055,7 @@ const RadioCardAbstract = /*#__PURE__*/React.forwardRef((_a, ref) => {
|
|
|
8032
8055
|
className
|
|
8033
8056
|
} = _a,
|
|
8034
8057
|
props = __rest(_a, ["as", "className"]);
|
|
8035
|
-
const classNames =
|
|
8058
|
+
const classNames = bomCore.getClassNames('abstract', className);
|
|
8036
8059
|
return jsxRuntime.jsx(Text, Object.assign({
|
|
8037
8060
|
className: classNames,
|
|
8038
8061
|
ref: ref
|
|
@@ -8045,7 +8068,7 @@ const RadioCardExtra = /*#__PURE__*/React.forwardRef((_a, ref) => {
|
|
|
8045
8068
|
className
|
|
8046
8069
|
} = _a,
|
|
8047
8070
|
props = __rest(_a, ["as", "className"]);
|
|
8048
|
-
const classNames =
|
|
8071
|
+
const classNames = bomCore.getClassNames('extra', className);
|
|
8049
8072
|
return jsxRuntime.jsx(Text, Object.assign({
|
|
8050
8073
|
size: "10",
|
|
8051
8074
|
whiteSpace: "nowrap",
|
|
@@ -8069,7 +8092,7 @@ const RadioCardBase = /*#__PURE__*/React.forwardRef((_a, ref) => {
|
|
|
8069
8092
|
const hasMedia = mediaChildren && React__default.default.Children.count(mediaChildren) > 0;
|
|
8070
8093
|
const [extraChildren, otherChildren] = getChildsByType(withoutMediaChildren, RadioCardExtra);
|
|
8071
8094
|
const hasExtra = extraChildren && React__default.default.Children.count(extraChildren) > 0;
|
|
8072
|
-
const classNames =
|
|
8095
|
+
const classNames = bomCore.getClassNames('radio-option', className);
|
|
8073
8096
|
return jsxRuntime.jsxs(StyledRadioCard, Object.assign({
|
|
8074
8097
|
className: classNames
|
|
8075
8098
|
}, props, {
|
|
@@ -8112,7 +8135,7 @@ const RadioCardBase = /*#__PURE__*/React.forwardRef((_a, ref) => {
|
|
|
8112
8135
|
}));
|
|
8113
8136
|
});
|
|
8114
8137
|
RadioCardBase.displayName = 'RadioCard';
|
|
8115
|
-
const RadioCard =
|
|
8138
|
+
const RadioCard = bomCore.withSchema(RadioCardBase, {
|
|
8116
8139
|
Group: RadioCardGroup,
|
|
8117
8140
|
Title: RadioCardTitle,
|
|
8118
8141
|
Abstract: RadioCardAbstract,
|
|
@@ -8230,7 +8253,7 @@ const RadioColorBase = /*#__PURE__*/React.forwardRef((_a, ref) => {
|
|
|
8230
8253
|
className
|
|
8231
8254
|
} = _a,
|
|
8232
8255
|
props = __rest(_a, ["as", "color", "children", "className"]);
|
|
8233
|
-
const classNames =
|
|
8256
|
+
const classNames = bomCore.getClassNames('radio-color', className);
|
|
8234
8257
|
return jsxRuntime.jsxs(StyledRadioColor, Object.assign({
|
|
8235
8258
|
className: classNames
|
|
8236
8259
|
}, {
|
|
@@ -8250,7 +8273,7 @@ const RadioColorBase = /*#__PURE__*/React.forwardRef((_a, ref) => {
|
|
|
8250
8273
|
}));
|
|
8251
8274
|
});
|
|
8252
8275
|
RadioColorBase.displayName = 'RadioColor';
|
|
8253
|
-
const RadioColor =
|
|
8276
|
+
const RadioColor = bomCore.withSchema(RadioColorBase, {
|
|
8254
8277
|
Group: RadioColorGroup
|
|
8255
8278
|
});
|
|
8256
8279
|
|
|
@@ -8404,7 +8427,7 @@ const RadioOptionBase = /*#__PURE__*/React.forwardRef((_a, ref) => {
|
|
|
8404
8427
|
className
|
|
8405
8428
|
} = _a,
|
|
8406
8429
|
props = __rest(_a, ["as", "children", "className"]);
|
|
8407
|
-
const classNames =
|
|
8430
|
+
const classNames = bomCore.getClassNames('radio-option', className);
|
|
8408
8431
|
return jsxRuntime.jsxs(StyledRadioOption, Object.assign({
|
|
8409
8432
|
size: props.size,
|
|
8410
8433
|
className: classNames
|
|
@@ -8426,7 +8449,7 @@ const RadioOptionBase = /*#__PURE__*/React.forwardRef((_a, ref) => {
|
|
|
8426
8449
|
}));
|
|
8427
8450
|
});
|
|
8428
8451
|
RadioOptionBase.displayName = 'RadioOption';
|
|
8429
|
-
const RadioOption =
|
|
8452
|
+
const RadioOption = bomCore.withSchema(RadioOptionBase, {
|
|
8430
8453
|
Group: RadioOptionGroup
|
|
8431
8454
|
});
|
|
8432
8455
|
|
|
@@ -8532,7 +8555,7 @@ const RadioBase = /*#__PURE__*/React.forwardRef((_a, ref) => {
|
|
|
8532
8555
|
className
|
|
8533
8556
|
} = _a,
|
|
8534
8557
|
props = __rest(_a, ["as", "className"]);
|
|
8535
|
-
const classNames =
|
|
8558
|
+
const classNames = bomCore.getClassNames('radio', className);
|
|
8536
8559
|
return jsxRuntime.jsxs(StyledRadio, Object.assign({
|
|
8537
8560
|
className: classNames
|
|
8538
8561
|
}, {
|
|
@@ -8547,7 +8570,7 @@ const RadioBase = /*#__PURE__*/React.forwardRef((_a, ref) => {
|
|
|
8547
8570
|
}));
|
|
8548
8571
|
});
|
|
8549
8572
|
RadioBase.displayName = 'Radio';
|
|
8550
|
-
const Radio =
|
|
8573
|
+
const Radio = bomCore.withSchema(RadioBase, {
|
|
8551
8574
|
Group: RadioGroup
|
|
8552
8575
|
});
|
|
8553
8576
|
|
|
@@ -8657,8 +8680,8 @@ const Rating = _a => {
|
|
|
8657
8680
|
}
|
|
8658
8681
|
setValue(customValue < 0 ? 0 : customValue);
|
|
8659
8682
|
}, [customValue]);
|
|
8660
|
-
const ratingClassNames =
|
|
8661
|
-
const getIconClassNames = index =>
|
|
8683
|
+
const ratingClassNames = bomCore.getClassNames('rating', className);
|
|
8684
|
+
const getIconClassNames = index => bomCore.getClassNames('icon', {
|
|
8662
8685
|
hovered: index + 1 <= value
|
|
8663
8686
|
});
|
|
8664
8687
|
return jsxRuntime.jsx(StyledRating, Object.assign({
|
|
@@ -8749,7 +8772,7 @@ const Select = /*#__PURE__*/React.forwardRef((_a, ref) => {
|
|
|
8749
8772
|
className
|
|
8750
8773
|
} = _a,
|
|
8751
8774
|
props = __rest(_a, ["as", "className"]);
|
|
8752
|
-
const classNames =
|
|
8775
|
+
const classNames = bomCore.getClassNames('select', className);
|
|
8753
8776
|
return jsxRuntime.jsxs(StyledSelect, Object.assign({
|
|
8754
8777
|
className: classNames
|
|
8755
8778
|
}, {
|
|
@@ -8810,7 +8833,7 @@ const TextArea = /*#__PURE__*/React.forwardRef((_a, ref) => {
|
|
|
8810
8833
|
className
|
|
8811
8834
|
} = _a,
|
|
8812
8835
|
props = __rest(_a, ["as", "children", "className"]);
|
|
8813
|
-
const classNames =
|
|
8836
|
+
const classNames = bomCore.getClassNames('textarea', className);
|
|
8814
8837
|
return jsxRuntime.jsx(StyledTextArea, Object.assign({
|
|
8815
8838
|
className: classNames,
|
|
8816
8839
|
ref: ref,
|
|
@@ -9469,7 +9492,7 @@ const Carousel1 = _a => {
|
|
|
9469
9492
|
} = _a,
|
|
9470
9493
|
props = __rest(_a, ["item"]);
|
|
9471
9494
|
const items = item.items;
|
|
9472
|
-
const classNames =
|
|
9495
|
+
const classNames = bomCore.getClassNames(item.schema);
|
|
9473
9496
|
return jsxRuntime.jsxs(StyledSection$1, Object.assign({
|
|
9474
9497
|
className: classNames,
|
|
9475
9498
|
padding: "7rem 0"
|
|
@@ -9542,7 +9565,7 @@ const Download1 = _ref => {
|
|
|
9542
9565
|
let {
|
|
9543
9566
|
item
|
|
9544
9567
|
} = _ref;
|
|
9545
|
-
const classNames =
|
|
9568
|
+
const classNames = bomCore.getClassNames(item.schema);
|
|
9546
9569
|
return jsxRuntime.jsx(Section, Object.assign({
|
|
9547
9570
|
className: classNames,
|
|
9548
9571
|
padding: "6rem 0"
|
|
@@ -9596,7 +9619,7 @@ const MediaFull1 = _ref => {
|
|
|
9596
9619
|
let {
|
|
9597
9620
|
item
|
|
9598
9621
|
} = _ref;
|
|
9599
|
-
const classNames =
|
|
9622
|
+
const classNames = bomCore.getClassNames('media', item.schema);
|
|
9600
9623
|
return jsxRuntime.jsx(Media, {
|
|
9601
9624
|
className: classNames,
|
|
9602
9625
|
aspectRatio: 16 / 10,
|
|
@@ -9617,7 +9640,7 @@ const MediaFull2 = _ref => {
|
|
|
9617
9640
|
let {
|
|
9618
9641
|
item
|
|
9619
9642
|
} = _ref;
|
|
9620
|
-
const classNames =
|
|
9643
|
+
const classNames = bomCore.getClassNames(item.schema);
|
|
9621
9644
|
return jsxRuntime.jsx(Section, Object.assign({
|
|
9622
9645
|
className: classNames,
|
|
9623
9646
|
padding: "6rem 0"
|
|
@@ -9649,7 +9672,7 @@ const MediaMedia1 = _ref => {
|
|
|
9649
9672
|
let {
|
|
9650
9673
|
item
|
|
9651
9674
|
} = _ref;
|
|
9652
|
-
const classNames =
|
|
9675
|
+
const classNames = bomCore.getClassNames(item.schema);
|
|
9653
9676
|
return jsxRuntime.jsx(Section, Object.assign({
|
|
9654
9677
|
className: classNames,
|
|
9655
9678
|
padding: "6rem 0"
|
|
@@ -9786,7 +9809,7 @@ const Related1 = _ref => {
|
|
|
9786
9809
|
let {
|
|
9787
9810
|
item
|
|
9788
9811
|
} = _ref;
|
|
9789
|
-
const classNames =
|
|
9812
|
+
const classNames = bomCore.getClassNames(item.schema);
|
|
9790
9813
|
return jsxRuntime.jsx(Section, Object.assign({
|
|
9791
9814
|
className: classNames,
|
|
9792
9815
|
padding: "6rem 0"
|
|
@@ -9828,7 +9851,7 @@ const SizesColors1 = _ref => {
|
|
|
9828
9851
|
let {
|
|
9829
9852
|
item
|
|
9830
9853
|
} = _ref;
|
|
9831
|
-
const classNames =
|
|
9854
|
+
const classNames = bomCore.getClassNames(item.schema);
|
|
9832
9855
|
return jsxRuntime.jsx(Section, Object.assign({
|
|
9833
9856
|
className: classNames,
|
|
9834
9857
|
padding: "6rem 0"
|
|
@@ -9902,7 +9925,7 @@ const Text1 = _ref => {
|
|
|
9902
9925
|
item
|
|
9903
9926
|
} = _ref;
|
|
9904
9927
|
// !!! Container.Small
|
|
9905
|
-
const classNames =
|
|
9928
|
+
const classNames = bomCore.getClassNames(item.schema);
|
|
9906
9929
|
return jsxRuntime.jsx(Section, Object.assign({
|
|
9907
9930
|
className: classNames,
|
|
9908
9931
|
padding: "6rem 0"
|
|
@@ -9937,7 +9960,7 @@ const TextAside1 = _ref => {
|
|
|
9937
9960
|
let {
|
|
9938
9961
|
item
|
|
9939
9962
|
} = _ref;
|
|
9940
|
-
const classNames =
|
|
9963
|
+
const classNames = bomCore.getClassNames(item.schema);
|
|
9941
9964
|
return jsxRuntime.jsx(Section, Object.assign({
|
|
9942
9965
|
className: classNames,
|
|
9943
9966
|
padding: "6rem 0"
|
|
@@ -9999,7 +10022,7 @@ const TextMedia1 = _ref => {
|
|
|
9999
10022
|
let {
|
|
10000
10023
|
item
|
|
10001
10024
|
} = _ref;
|
|
10002
|
-
const classNames =
|
|
10025
|
+
const classNames = bomCore.getClassNames(item.schema);
|
|
10003
10026
|
return jsxRuntime.jsx(Section, Object.assign({
|
|
10004
10027
|
className: classNames,
|
|
10005
10028
|
padding: "6rem 0"
|
|
@@ -10064,7 +10087,7 @@ const TextText1 = _ref => {
|
|
|
10064
10087
|
let {
|
|
10065
10088
|
item
|
|
10066
10089
|
} = _ref;
|
|
10067
|
-
const classNames =
|
|
10090
|
+
const classNames = bomCore.getClassNames(item.schema);
|
|
10068
10091
|
return jsxRuntime.jsx(Section, Object.assign({
|
|
10069
10092
|
className: classNames,
|
|
10070
10093
|
padding: "6rem 0"
|
|
@@ -10163,7 +10186,7 @@ const AuthForgot = _ref => {
|
|
|
10163
10186
|
console.log('AuthForgot.valid', form.value);
|
|
10164
10187
|
try {
|
|
10165
10188
|
setError(undefined);
|
|
10166
|
-
yield
|
|
10189
|
+
yield bomCore.httpPost('/api/auth/forgot', form.value);
|
|
10167
10190
|
if (typeof onPasswordSent === 'function') {
|
|
10168
10191
|
onPasswordSent();
|
|
10169
10192
|
}
|
|
@@ -10343,7 +10366,7 @@ const AuthLogin = _ref => {
|
|
|
10343
10366
|
console.log('AuthLogin.valid', form.value);
|
|
10344
10367
|
try {
|
|
10345
10368
|
setError(undefined);
|
|
10346
|
-
const user = yield
|
|
10369
|
+
const user = yield bomCore.httpPost('/api/auth/login', form.value);
|
|
10347
10370
|
if (user) {
|
|
10348
10371
|
setUser(user);
|
|
10349
10372
|
if (typeof onSignedIn === 'function') {
|
|
@@ -10510,7 +10533,7 @@ const AuthRegister = _ref => {
|
|
|
10510
10533
|
console.log('AuthRegister.valid', form.value);
|
|
10511
10534
|
try {
|
|
10512
10535
|
setError(undefined);
|
|
10513
|
-
yield
|
|
10536
|
+
yield bomCore.httpPost('/api/auth/register', form.value);
|
|
10514
10537
|
if (typeof onSignedUp === 'function') {
|
|
10515
10538
|
onSignedUp();
|
|
10516
10539
|
}
|
|
@@ -10739,7 +10762,7 @@ const AuthChangePassword = _ref => {
|
|
|
10739
10762
|
console.log('AuthChangePassword.valid', form.value);
|
|
10740
10763
|
try {
|
|
10741
10764
|
setError(undefined);
|
|
10742
|
-
yield
|
|
10765
|
+
yield bomCore.httpPost('/api/auth/password', form.value);
|
|
10743
10766
|
if (typeof onPasswordChanged === 'function') {
|
|
10744
10767
|
onPasswordChanged();
|
|
10745
10768
|
}
|
|
@@ -10885,7 +10908,7 @@ const AuthUpdate = _ref => {
|
|
|
10885
10908
|
console.log('AuthUpdate.valid', form.value);
|
|
10886
10909
|
try {
|
|
10887
10910
|
setError(undefined);
|
|
10888
|
-
const user = yield
|
|
10911
|
+
const user = yield bomCore.httpPost('/api/auth/update', form.value);
|
|
10889
10912
|
if (typeof onUpdate === 'function') {
|
|
10890
10913
|
onUpdate(user);
|
|
10891
10914
|
}
|
|
@@ -11775,7 +11798,7 @@ const OrderRegister = _ref => {
|
|
|
11775
11798
|
console.log('AuthRegister.valid', form.value);
|
|
11776
11799
|
try {
|
|
11777
11800
|
setError(undefined);
|
|
11778
|
-
yield
|
|
11801
|
+
yield bomCore.httpPost('/api/auth/register', form.value);
|
|
11779
11802
|
setRegistered(true);
|
|
11780
11803
|
if (typeof onSignedUp === 'function') {
|
|
11781
11804
|
onSignedUp();
|
|
@@ -14290,37 +14313,37 @@ const CheckoutWizard = _a => {
|
|
|
14290
14313
|
justifyContent: "space-between"
|
|
14291
14314
|
}, {
|
|
14292
14315
|
children: [jsxRuntime.jsx(Flex, Object.assign({
|
|
14293
|
-
className:
|
|
14316
|
+
className: bomCore.getClassNames({
|
|
14294
14317
|
active: status === exports.CheckoutStatus.Basket
|
|
14295
14318
|
})
|
|
14296
14319
|
}, {
|
|
14297
14320
|
children: "Basket"
|
|
14298
14321
|
})), jsxRuntime.jsx(Flex, Object.assign({
|
|
14299
|
-
className:
|
|
14322
|
+
className: bomCore.getClassNames({
|
|
14300
14323
|
active: status === exports.CheckoutStatus.Info
|
|
14301
14324
|
})
|
|
14302
14325
|
}, {
|
|
14303
14326
|
children: "User data"
|
|
14304
14327
|
})), jsxRuntime.jsx(Flex, Object.assign({
|
|
14305
|
-
className:
|
|
14328
|
+
className: bomCore.getClassNames({
|
|
14306
14329
|
active: status === exports.CheckoutStatus.Delivery
|
|
14307
14330
|
})
|
|
14308
14331
|
}, {
|
|
14309
14332
|
children: "Delivery"
|
|
14310
14333
|
})), jsxRuntime.jsx(Flex, Object.assign({
|
|
14311
|
-
className:
|
|
14334
|
+
className: bomCore.getClassNames({
|
|
14312
14335
|
active: status === exports.CheckoutStatus.Review
|
|
14313
14336
|
})
|
|
14314
14337
|
}, {
|
|
14315
14338
|
children: "Review"
|
|
14316
14339
|
})), jsxRuntime.jsx(Flex, Object.assign({
|
|
14317
|
-
className:
|
|
14340
|
+
className: bomCore.getClassNames({
|
|
14318
14341
|
active: status === exports.CheckoutStatus.Payment
|
|
14319
14342
|
})
|
|
14320
14343
|
}, {
|
|
14321
14344
|
children: "Payment"
|
|
14322
14345
|
})), jsxRuntime.jsx(Flex, Object.assign({
|
|
14323
|
-
className:
|
|
14346
|
+
className: bomCore.getClassNames({
|
|
14324
14347
|
active: status === exports.CheckoutStatus.Complete
|
|
14325
14348
|
})
|
|
14326
14349
|
}, {
|
|
@@ -15130,11 +15153,11 @@ const Footer = props => {
|
|
|
15130
15153
|
children: ["\u00A9", getYear(), " websolute spa - PI 02063520411 - Capitale sociale Eur 194.084,34 i.v., REA PU"]
|
|
15131
15154
|
})), jsxRuntime.jsx(Link__default.default, Object.assign({
|
|
15132
15155
|
href: "https://www.websolute.com",
|
|
15133
|
-
target: "_blank",
|
|
15134
15156
|
passHref: true
|
|
15135
15157
|
}, {
|
|
15136
15158
|
children: jsxRuntime.jsx(Button, Object.assign({
|
|
15137
|
-
as: "a"
|
|
15159
|
+
as: "a",
|
|
15160
|
+
target: "_blank"
|
|
15138
15161
|
}, {
|
|
15139
15162
|
children: jsxRuntime.jsx(bomMixerIcons.Websolute, {})
|
|
15140
15163
|
}))
|
|
@@ -15157,11 +15180,11 @@ const Footer = props => {
|
|
|
15157
15180
|
children: ["\u00A9", getYear(), " websolute spa - PI 02063520411 - Capitale sociale Eur 194.084,34 i.v., REA PU"]
|
|
15158
15181
|
})), jsxRuntime.jsx(Link__default.default, Object.assign({
|
|
15159
15182
|
href: "https://www.websolute.com",
|
|
15160
|
-
target: "_blank",
|
|
15161
15183
|
passHref: true
|
|
15162
15184
|
}, {
|
|
15163
15185
|
children: jsxRuntime.jsx(Button, Object.assign({
|
|
15164
|
-
as: "a"
|
|
15186
|
+
as: "a",
|
|
15187
|
+
target: "_blank"
|
|
15165
15188
|
}, {
|
|
15166
15189
|
children: jsxRuntime.jsx(bomMixerIcons.Websolute, {})
|
|
15167
15190
|
}))
|
|
@@ -15321,7 +15344,7 @@ const HeaderSubmenu = _a => {
|
|
|
15321
15344
|
};
|
|
15322
15345
|
const ref = React.useRef(null);
|
|
15323
15346
|
useOnClickOutside(ref, () => visible && onSelect_());
|
|
15324
|
-
const classNames =
|
|
15347
|
+
const classNames = bomCore.getClassNames('header-submenu', {
|
|
15325
15348
|
visible
|
|
15326
15349
|
});
|
|
15327
15350
|
return jsxRuntime.jsx(StyledHeaderSubmenu, Object.assign({
|
|
@@ -15431,6 +15454,7 @@ const StyledAccordion = styled__default.default(Accordion)`
|
|
|
15431
15454
|
border: none;
|
|
15432
15455
|
`;
|
|
15433
15456
|
const Header = props => {
|
|
15457
|
+
var _a;
|
|
15434
15458
|
const layout = bomMixerHooks.useLayout();
|
|
15435
15459
|
const mounted = bomMixerHooks.useMounted();
|
|
15436
15460
|
const scroll = bomMixerHooks.useScroll();
|
|
@@ -15449,10 +15473,14 @@ const Header = props => {
|
|
|
15449
15473
|
const href = (item === null || item === void 0 ? void 0 : item.href) || null;
|
|
15450
15474
|
setNav(href !== nav ? href : null);
|
|
15451
15475
|
};
|
|
15476
|
+
const onMenuItem = item => {
|
|
15477
|
+
const href = (item === null || item === void 0 ? void 0 : item.href) || null;
|
|
15478
|
+
setNav(href !== nav ? href : null);
|
|
15479
|
+
};
|
|
15452
15480
|
React.useEffect(() => {
|
|
15453
15481
|
const getUser = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
15454
15482
|
try {
|
|
15455
|
-
const user = yield
|
|
15483
|
+
const user = yield bomCore.httpGet('/api/auth/me');
|
|
15456
15484
|
// console.log('Header.getUser /api/auth/me', user);
|
|
15457
15485
|
setUser(user);
|
|
15458
15486
|
} catch (error) {
|
|
@@ -15483,11 +15511,104 @@ const Header = props => {
|
|
|
15483
15511
|
}, []);
|
|
15484
15512
|
*/
|
|
15485
15513
|
// console.log(layout.topLevelRoutes);
|
|
15486
|
-
|
|
15487
|
-
|
|
15514
|
+
let treeItems = (((_a = layout.tree) === null || _a === void 0 ? void 0 : _a.items) || []).filter(x => !['checkout', 'checkout_result', 'reserved_area', 'login'].includes(x.id.toString()));
|
|
15515
|
+
treeItems = [];
|
|
15516
|
+
const mainMenu = layout.menu.main ? layout.menu.main.items : [];
|
|
15517
|
+
const classNames = bomCore.getClassNames('header', {
|
|
15488
15518
|
fixed: props.fixed,
|
|
15489
15519
|
sticky: props.sticky
|
|
15490
15520
|
});
|
|
15521
|
+
function renderMenuItem(item, index) {
|
|
15522
|
+
switch (item.type) {
|
|
15523
|
+
case 'category':
|
|
15524
|
+
if (['product_index'].includes(item.category.toString())) {
|
|
15525
|
+
return jsxRuntime.jsxs(Box, {
|
|
15526
|
+
children: [jsxRuntime.jsx(Button, Object.assign({
|
|
15527
|
+
variant: "nav",
|
|
15528
|
+
onClick: () => onMenuItem(item)
|
|
15529
|
+
}, {
|
|
15530
|
+
children: item.title
|
|
15531
|
+
})), jsxRuntime.jsx(HeaderSubmenu, {
|
|
15532
|
+
item: item,
|
|
15533
|
+
visible: nav === item.href,
|
|
15534
|
+
onSelect: () => onMenuItem()
|
|
15535
|
+
})]
|
|
15536
|
+
}, index);
|
|
15537
|
+
} else if (item.href) {
|
|
15538
|
+
return jsxRuntime.jsx(NavLink, Object.assign({
|
|
15539
|
+
href: item.href,
|
|
15540
|
+
passHref: true
|
|
15541
|
+
}, {
|
|
15542
|
+
children: jsxRuntime.jsx(Button, Object.assign({
|
|
15543
|
+
as: "a",
|
|
15544
|
+
variant: "nav",
|
|
15545
|
+
onClick: () => onMenuItem()
|
|
15546
|
+
}, {
|
|
15547
|
+
children: item.title
|
|
15548
|
+
}))
|
|
15549
|
+
}), index);
|
|
15550
|
+
} else {
|
|
15551
|
+
return jsxRuntime.jsx(Button, Object.assign({
|
|
15552
|
+
variant: "nav",
|
|
15553
|
+
onClick: () => onMenuItem()
|
|
15554
|
+
}, {
|
|
15555
|
+
children: item.title
|
|
15556
|
+
}), index);
|
|
15557
|
+
}
|
|
15558
|
+
case 'group':
|
|
15559
|
+
if (item.items) {
|
|
15560
|
+
return jsxRuntime.jsx(Popover, Object.assign({
|
|
15561
|
+
content: jsxRuntime.jsx(Nav.Col, Object.assign({
|
|
15562
|
+
minWidth: "150px"
|
|
15563
|
+
}, {
|
|
15564
|
+
children: item.items.map((x, i) => renderMenuItem(x, i))
|
|
15565
|
+
}))
|
|
15566
|
+
}, {
|
|
15567
|
+
children: jsxRuntime.jsxs(Button, Object.assign({
|
|
15568
|
+
variant: "nav"
|
|
15569
|
+
}, {
|
|
15570
|
+
children: [item.title, " ", jsxRuntime.jsx(bomMixerIcons.ChevronDown, {}), " "]
|
|
15571
|
+
}))
|
|
15572
|
+
}), index);
|
|
15573
|
+
} else {
|
|
15574
|
+
return jsxRuntime.jsx(Button, Object.assign({
|
|
15575
|
+
variant: "nav"
|
|
15576
|
+
}, {
|
|
15577
|
+
children: item.title
|
|
15578
|
+
}), index);
|
|
15579
|
+
}
|
|
15580
|
+
case 'page':
|
|
15581
|
+
case 'route':
|
|
15582
|
+
return jsxRuntime.jsx(NavLink, Object.assign({
|
|
15583
|
+
href: item.href,
|
|
15584
|
+
passHref: true
|
|
15585
|
+
}, {
|
|
15586
|
+
children: jsxRuntime.jsx(Button, Object.assign({
|
|
15587
|
+
as: "a",
|
|
15588
|
+
variant: "nav",
|
|
15589
|
+
onClick: () => onMenuItem()
|
|
15590
|
+
}, {
|
|
15591
|
+
children: item.title
|
|
15592
|
+
}))
|
|
15593
|
+
}), index);
|
|
15594
|
+
case 'link':
|
|
15595
|
+
return jsxRuntime.jsx(NavLink, Object.assign({
|
|
15596
|
+
href: item.href,
|
|
15597
|
+
passHref: true
|
|
15598
|
+
}, {
|
|
15599
|
+
children: jsxRuntime.jsx(Button, Object.assign({
|
|
15600
|
+
as: "a",
|
|
15601
|
+
target: item.target,
|
|
15602
|
+
variant: "nav",
|
|
15603
|
+
onClick: () => onMenuItem()
|
|
15604
|
+
}, {
|
|
15605
|
+
children: item.title
|
|
15606
|
+
}))
|
|
15607
|
+
}), index);
|
|
15608
|
+
default:
|
|
15609
|
+
return undefined;
|
|
15610
|
+
}
|
|
15611
|
+
}
|
|
15491
15612
|
return jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
15492
15613
|
children: [jsxRuntime.jsxs(HeaderContainer, Object.assign({
|
|
15493
15614
|
className: classNames
|
|
@@ -15517,18 +15638,18 @@ const Header = props => {
|
|
|
15517
15638
|
}))]
|
|
15518
15639
|
}))
|
|
15519
15640
|
}))
|
|
15520
|
-
}), jsxRuntime.
|
|
15641
|
+
}), jsxRuntime.jsxs(Flex, Object.assign({
|
|
15521
15642
|
className: "print-none",
|
|
15522
15643
|
flex: "1",
|
|
15523
15644
|
justifyContent: "center"
|
|
15524
15645
|
}, {
|
|
15525
|
-
children:
|
|
15646
|
+
children: [treeItems && jsxRuntime.jsx(Nav.Row, Object.assign({
|
|
15526
15647
|
gapSm: "2rem",
|
|
15527
15648
|
gapLg: "3rem",
|
|
15528
15649
|
display: "none",
|
|
15529
15650
|
displayMd: "flex"
|
|
15530
15651
|
}, {
|
|
15531
|
-
children:
|
|
15652
|
+
children: treeItems.map((x, i) => ['product_index'].includes(x.id.toString()) ? jsxRuntime.jsxs(Box, {
|
|
15532
15653
|
children: [jsxRuntime.jsx(Button, Object.assign({
|
|
15533
15654
|
variant: "nav",
|
|
15534
15655
|
onClick: () => onNav(x)
|
|
@@ -15551,7 +15672,14 @@ const Header = props => {
|
|
|
15551
15672
|
children: x.title
|
|
15552
15673
|
}))
|
|
15553
15674
|
}), i))
|
|
15554
|
-
}))
|
|
15675
|
+
})), mainMenu && jsxRuntime.jsx(Nav.Row, Object.assign({
|
|
15676
|
+
gapSm: "2rem",
|
|
15677
|
+
gapLg: "3rem",
|
|
15678
|
+
display: "none",
|
|
15679
|
+
displayMd: "flex"
|
|
15680
|
+
}, {
|
|
15681
|
+
children: mainMenu.map((x, i) => renderMenuItem(x, i))
|
|
15682
|
+
}))]
|
|
15555
15683
|
})), jsxRuntime.jsxs(Flex, Object.assign({
|
|
15556
15684
|
className: "print-none",
|
|
15557
15685
|
gap: "1rem",
|
|
@@ -15630,10 +15758,10 @@ const Header = props => {
|
|
|
15630
15758
|
width: "100vw",
|
|
15631
15759
|
maxWidth: "Min(calc(100vw - 60px), 640px)"
|
|
15632
15760
|
}, {
|
|
15633
|
-
children:
|
|
15761
|
+
children: treeItems && jsxRuntime.jsx(Nav.Col, Object.assign({
|
|
15634
15762
|
gap: "2rem"
|
|
15635
15763
|
}, {
|
|
15636
|
-
children:
|
|
15764
|
+
children: treeItems.map((x, i) => {
|
|
15637
15765
|
var _a;
|
|
15638
15766
|
return ['product_index'].includes(x.id.toString()) ? jsxRuntime.jsx(StyledAccordion, Object.assign({
|
|
15639
15767
|
title: jsxRuntime.jsx(Text, Object.assign({
|
|
@@ -15990,7 +16118,7 @@ const MagazineRelated = _a => {
|
|
|
15990
16118
|
return null;
|
|
15991
16119
|
}
|
|
15992
16120
|
const items = item.items;
|
|
15993
|
-
const classNames =
|
|
16121
|
+
const classNames = bomCore.getClassNames(item.schema);
|
|
15994
16122
|
return jsxRuntime.jsxs(StyledSection, Object.assign({
|
|
15995
16123
|
className: classNames,
|
|
15996
16124
|
padding: "7rem 0"
|
|
@@ -16260,12 +16388,12 @@ const MagazineSearch = _a => {
|
|
|
16260
16388
|
const categoryFilter = filters.find(x => x.id === 'category');
|
|
16261
16389
|
return jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
16262
16390
|
children: [jsxRuntime.jsx("div", Object.assign({
|
|
16263
|
-
|
|
16264
|
-
position: sticky
|
|
16265
|
-
top: 80px
|
|
16266
|
-
|
|
16267
|
-
background: white
|
|
16268
|
-
|
|
16391
|
+
style: {
|
|
16392
|
+
position: 'sticky',
|
|
16393
|
+
top: '80px',
|
|
16394
|
+
zIndex: 900,
|
|
16395
|
+
background: 'white'
|
|
16396
|
+
}
|
|
16269
16397
|
}, {
|
|
16270
16398
|
children: jsxRuntime.jsx(Box, Object.assign({
|
|
16271
16399
|
padding: "1rem 0",
|
|
@@ -16300,7 +16428,7 @@ const MagazineSearch = _a => {
|
|
|
16300
16428
|
})), categoryFilter.options.map((option, o) => jsxRuntime.jsx(Button, Object.assign({
|
|
16301
16429
|
variant: "nav",
|
|
16302
16430
|
size: "lg",
|
|
16303
|
-
className:
|
|
16431
|
+
className: bomCore.getClassNames({
|
|
16304
16432
|
active: categoryFilter.has(option)
|
|
16305
16433
|
}),
|
|
16306
16434
|
onClick: () => onFilterOptionToggle(categoryFilter, option)
|
|
@@ -16752,7 +16880,7 @@ const ProductOverviewBase = _a => {
|
|
|
16752
16880
|
})
|
|
16753
16881
|
});
|
|
16754
16882
|
};
|
|
16755
|
-
const ProductOverview =
|
|
16883
|
+
const ProductOverview = bomCore.withSchema(ProductOverviewBase, {
|
|
16756
16884
|
Gallery: ProductOverviewGallery
|
|
16757
16885
|
});
|
|
16758
16886
|
|
|
@@ -16761,7 +16889,7 @@ const ProductsDetailDownload = _ref => {
|
|
|
16761
16889
|
id,
|
|
16762
16890
|
item
|
|
16763
16891
|
} = _ref;
|
|
16764
|
-
const classNames =
|
|
16892
|
+
const classNames = bomCore.getClassNames(item.schema);
|
|
16765
16893
|
if (!item) {
|
|
16766
16894
|
return null;
|
|
16767
16895
|
}
|
|
@@ -16881,7 +17009,7 @@ const ProductsDetailRelated = _ref => {
|
|
|
16881
17009
|
id,
|
|
16882
17010
|
item
|
|
16883
17011
|
} = _ref;
|
|
16884
|
-
const classNames =
|
|
17012
|
+
const classNames = bomCore.getClassNames(item.schema);
|
|
16885
17013
|
if (!item) {
|
|
16886
17014
|
return null;
|
|
16887
17015
|
}
|
|
@@ -16928,7 +17056,7 @@ const ProductsDetailSizeColor = _ref => {
|
|
|
16928
17056
|
id,
|
|
16929
17057
|
item
|
|
16930
17058
|
} = _ref;
|
|
16931
|
-
const classNames =
|
|
17059
|
+
const classNames = bomCore.getClassNames(item.schema);
|
|
16932
17060
|
if (!item) {
|
|
16933
17061
|
return null;
|
|
16934
17062
|
}
|
|
@@ -17686,7 +17814,7 @@ const ProductsSearch = _a => {
|
|
|
17686
17814
|
children: "View"
|
|
17687
17815
|
})), jsxRuntime.jsx(Button, Object.assign({
|
|
17688
17816
|
variant: "toggle",
|
|
17689
|
-
className:
|
|
17817
|
+
className: bomCore.getClassNames({
|
|
17690
17818
|
active: !large
|
|
17691
17819
|
}),
|
|
17692
17820
|
onClick: () => setLarge(false)
|
|
@@ -17694,7 +17822,7 @@ const ProductsSearch = _a => {
|
|
|
17694
17822
|
children: jsxRuntime.jsx(bomMixerIcons.Grid, {})
|
|
17695
17823
|
})), jsxRuntime.jsx(Button, Object.assign({
|
|
17696
17824
|
variant: "toggle",
|
|
17697
|
-
className:
|
|
17825
|
+
className: bomCore.getClassNames({
|
|
17698
17826
|
active: large
|
|
17699
17827
|
}),
|
|
17700
17828
|
onClick: () => setLarge(true)
|
|
@@ -17773,24 +17901,24 @@ const Proposition = props => {
|
|
|
17773
17901
|
children: "Prow scuttle parrel provost Sail."
|
|
17774
17902
|
})), jsxRuntime.jsx(Link__default.default, Object.assign({
|
|
17775
17903
|
href: "https://design-system-ruddy.vercel.app",
|
|
17776
|
-
target: "_blank",
|
|
17777
17904
|
passHref: true
|
|
17778
17905
|
}, {
|
|
17779
17906
|
children: jsxRuntime.jsx(Button, Object.assign({
|
|
17780
17907
|
as: "a",
|
|
17781
17908
|
variant: "primary",
|
|
17782
|
-
marginBottom: "1rem"
|
|
17909
|
+
marginBottom: "1rem",
|
|
17910
|
+
target: "_blank"
|
|
17783
17911
|
}, {
|
|
17784
17912
|
children: "Read documentation"
|
|
17785
17913
|
}))
|
|
17786
17914
|
})), jsxRuntime.jsx(Link__default.default, Object.assign({
|
|
17787
17915
|
href: "https://github.com/actarian/design-system",
|
|
17788
|
-
target: "_blank",
|
|
17789
17916
|
passHref: true
|
|
17790
17917
|
}, {
|
|
17791
17918
|
children: jsxRuntime.jsx(Button, Object.assign({
|
|
17792
17919
|
as: "a",
|
|
17793
|
-
variant: "link"
|
|
17920
|
+
variant: "link",
|
|
17921
|
+
target: "_blank"
|
|
17794
17922
|
}, {
|
|
17795
17923
|
children: "view on GitHub"
|
|
17796
17924
|
}))
|
|
@@ -17814,7 +17942,7 @@ const ReservedAreaMenu = props => {
|
|
|
17814
17942
|
} = bomMixerHooks.useUser(state => state.actions);
|
|
17815
17943
|
const onLogout = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
17816
17944
|
try {
|
|
17817
|
-
yield
|
|
17945
|
+
yield bomCore.httpGet('/api/auth/logout');
|
|
17818
17946
|
setUser();
|
|
17819
17947
|
router$1.push('/');
|
|
17820
17948
|
} catch (error) {
|
|
@@ -18081,7 +18209,7 @@ const ShopDetailRelated = _ref => {
|
|
|
18081
18209
|
id,
|
|
18082
18210
|
item
|
|
18083
18211
|
} = _ref;
|
|
18084
|
-
const classNames =
|
|
18212
|
+
const classNames = bomCore.getClassNames(item.schema);
|
|
18085
18213
|
return jsxRuntime.jsx(Section, Object.assign({
|
|
18086
18214
|
id: id,
|
|
18087
18215
|
className: classNames,
|
|
@@ -18719,7 +18847,7 @@ const SortMenu = _ref => {
|
|
|
18719
18847
|
children: [jsxRuntime.jsx(Button, Object.assign({
|
|
18720
18848
|
variant: "nav",
|
|
18721
18849
|
as: "a",
|
|
18722
|
-
className:
|
|
18850
|
+
className: bomCore.getClassNames({
|
|
18723
18851
|
active: sort === 1
|
|
18724
18852
|
}),
|
|
18725
18853
|
onClick: () => onSort(1)
|
|
@@ -18728,7 +18856,7 @@ const SortMenu = _ref => {
|
|
|
18728
18856
|
})), jsxRuntime.jsx(Button, Object.assign({
|
|
18729
18857
|
variant: "nav",
|
|
18730
18858
|
as: "a",
|
|
18731
|
-
className:
|
|
18859
|
+
className: bomCore.getClassNames({
|
|
18732
18860
|
active: sort === 2
|
|
18733
18861
|
}),
|
|
18734
18862
|
onClick: () => onSort(2)
|
|
@@ -18737,7 +18865,7 @@ const SortMenu = _ref => {
|
|
|
18737
18865
|
})), jsxRuntime.jsx(Button, Object.assign({
|
|
18738
18866
|
variant: "nav",
|
|
18739
18867
|
as: "a",
|
|
18740
|
-
className:
|
|
18868
|
+
className: bomCore.getClassNames({
|
|
18741
18869
|
active: sort === 3
|
|
18742
18870
|
}),
|
|
18743
18871
|
onClick: () => onSort(3)
|
|
@@ -18896,7 +19024,7 @@ const ShopSearch = _a => {
|
|
|
18896
19024
|
})), categoryFilter.options.map((option, o) => jsxRuntime.jsx(Button, Object.assign({
|
|
18897
19025
|
variant: "nav",
|
|
18898
19026
|
size: "lg",
|
|
18899
|
-
className:
|
|
19027
|
+
className: bomCore.getClassNames({
|
|
18900
19028
|
active: categoryFilter.has(option)
|
|
18901
19029
|
}),
|
|
18902
19030
|
onClick: () => onSetCategory(option)
|
|
@@ -18930,7 +19058,7 @@ const ShopSearch = _a => {
|
|
|
18930
19058
|
children: "View"
|
|
18931
19059
|
})), jsxRuntime.jsx(Button, Object.assign({
|
|
18932
19060
|
variant: "toggle",
|
|
18933
|
-
className:
|
|
19061
|
+
className: bomCore.getClassNames({
|
|
18934
19062
|
active: large
|
|
18935
19063
|
}),
|
|
18936
19064
|
onClick: () => setLarge(true)
|
|
@@ -18938,7 +19066,7 @@ const ShopSearch = _a => {
|
|
|
18938
19066
|
children: jsxRuntime.jsx(bomMixerIcons.Square, {})
|
|
18939
19067
|
})), jsxRuntime.jsx(Button, Object.assign({
|
|
18940
19068
|
variant: "toggle",
|
|
18941
|
-
className:
|
|
19069
|
+
className: bomCore.getClassNames({
|
|
18942
19070
|
active: !large
|
|
18943
19071
|
}),
|
|
18944
19072
|
onClick: () => setLarge(false)
|
|
@@ -20354,6 +20482,7 @@ exports.MagazineSearch = MagazineSearch;
|
|
|
20354
20482
|
exports.MagazineSearchCard = MagazineSearchCard;
|
|
20355
20483
|
exports.MagazineSearchFilters = MagazineSearchFilters;
|
|
20356
20484
|
exports.MagazineSearchFiltersModal = MagazineSearchFiltersModal;
|
|
20485
|
+
exports.MarketsAndLanguagesDrawer = MarketsAndLanguagesDrawer;
|
|
20357
20486
|
exports.Media = Media;
|
|
20358
20487
|
exports.MediaGallery = MediaGallery;
|
|
20359
20488
|
exports.MediaImage = MediaImage;
|