@sonic-equipment/ui 0.0.95 → 0.0.97
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +5 -1
- package/dist/index.js +154 -129
- package/dist/src/header/cart-icon/connected-cart-icon.d.ts +3 -0
- package/dist/src/header/cart-icon/connected-cart-icon.stories.d.ts +12 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/shared/api/storefront/hooks/cart/use-fetch-current-cart-count.d.ts +1 -0
- package/dist/styles.css +75 -4
- package/package.json +2 -5
package/dist/index.d.ts
CHANGED
|
@@ -4575,6 +4575,10 @@ interface TextFieldProps {
|
|
|
4575
4575
|
*/
|
|
4576
4576
|
declare function TextField({ autoFocus, autoGrow, defaultValue, isDisabled, isInvalid, isMultiline, isReadOnly, isRequired, label, maxLength, name, onChange, onInput, onKeyUp, placeholder, rows, showLabel, size, value, }: TextFieldProps): react_jsx_runtime.JSX.Element;
|
|
4577
4577
|
|
|
4578
|
+
declare function ConnectedCartIcon({ href }: {
|
|
4579
|
+
href: string;
|
|
4580
|
+
}): react_jsx_runtime.JSX.Element;
|
|
4581
|
+
|
|
4578
4582
|
interface FormattedMessageProps {
|
|
4579
4583
|
fallbackValue?: string;
|
|
4580
4584
|
id: TranslationId;
|
|
@@ -5055,4 +5059,4 @@ declare function ReactQueryContainer({ children }: {
|
|
|
5055
5059
|
children: ReactNode;
|
|
5056
5060
|
}): react_jsx_runtime.JSX.Element;
|
|
5057
5061
|
|
|
5058
|
-
export { Accordion, type AccountCollectionModel, type AccountModel, type AccountPaymentProfileCollectionModel, type AccountPaymentProfileModel, type AccountSettingsModel, type AccountShipToCollectionModel, type AccountShipToModel, type AccountsReceivableDto$1 as AccountsReceivableDto, type AddProductToCurrentCartParams$1 as AddProductToCurrentCartParams, AddToCartButton, type AddressFieldCollectionModel, type AddressFieldDisplayCollectionModel, type AddressFieldDisplayModel, type AgingBucketDto$1 as AgingBucketDto, AlgoliaActiveCategories, AlgoliaCategoriesFilters, AlgoliaFilterPanel, type AlgoliaFilterPanelProps, AlgoliaInsightsProvider, AlgoliaInsightsProviderContext, type AlgoliaInsightsProviderState, AlgoliaMultiSelectFilterSection, AlgoliaPagination, AlgoliaProvider, AlgoliaResultsCount, AlgoliaSortBy, AnnouncementProvider, type AttributeTypeDto, type AttributeTypeFacetModel, type AttributeTypeModel, type AttributeValueDto, type AttributeValueFacetModel, type AttributeValueModel, type AuthenticationResponse$1 as AuthenticationResponse, type AutocompleteItemModel, type AutocompleteModel, type AutocompleteProductCollectionModel, type AutocompleteProductModel, type AvailabilityDto$2 as AvailabilityDto, AvailabilityMessageType$2 as AvailabilityMessageType, BadRequestError, BadgeImagePlacementValues, type BadgeModel, BadgeStyleValues, BadgeTypeValues, type BaseAddressModel, type BaseModel$1 as BaseModel, type BillToCollectionModel, type BillToModel$1 as BillToModel, type BrandAlphabetLetterModel, type BrandAlphabetModel, type BrandAutocompleteModel, type BrandCategoryCollectionModel, type BrandCategoryModel, type BrandCollectionModel, type BrandDto$2 as BrandDto, type BrandModel, type BrandProductLineCollectionModel, type BrandProductLineModel, type BreadCrumbModel, Breadcrumb, type BreadcrumbLink$1 as BreadcrumbLink, type BreadcrumbProps, type BreakPriceDto$2 as BreakPriceDto, type BreakPriceRfqModel, type BudgetCalendarCollectionModel, type BudgetCalendarModel, type BudgetCollectionModel, type BudgetLineModel, type BudgetModel, Button, type ButtonProps, type CalculationMethod, type CarrierDto, type CartCollectionModel, type CartLineCollectionModel, type CartLineModel$2 as CartLineModel, type CartModel, CartProvider, type CartSettingsModel, type CatalogPageModel, CategoryCarousel, type CategoryCarouselProps, type CategoryCollectionModel, type CategoryFacetModel, type CategoryModel, Checkbox, type CheckboxProps$1 as CheckboxProps, type ChildTraitValueModel, ColorCheckbox, type ColorCheckboxProps, type ConfigSectionDto, type ConfigSectionModel, type ConfigSectionOptionDto, type ConfigurationModel, ConnectedAddToCartButton, type ContactUsModel, type ContentModel, type CostCodeDto, type CostCodeModel$1 as CostCodeModel, type CountryCollectionModel, type CountryModel$1 as CountryModel, CountrySelector, type CreateSessionRequestBody, type CreditCardBillingAddressDto, type CreditCardDto, type CrossSellCollectionModel, type CurrencyCollectionModel, type CurrencyModel$1 as CurrencyModel, CurrencyPositioningType$1 as CurrencyPositioningType, type CustomerCostCodeDto, type CustomerOrderTaxDto, type CustomerSettingsModel, type CustomerValidationDto$1 as CustomerValidationDto, type DashboardPanelCollectionModel, type DashboardPanelModel, type DealerCollectionModel, type DealerModel, type DetailModel, type DocumentDto, type DocumentModel, type ECheckDto, type Environment, type FacetModel, FavoriteButton, type FavoriteButtonProps, FavoriteProvider, type FieldScoreDetailedDto, type FieldScoreDetailedModel, type FieldScoreDto, type FieldScoreModel, type FieldValidationDto$1 as FieldValidationDto, type FilterOption, FilterSection, type Filters, ForbiddenRequestError, FormattedMessage, type FormattedMessageFunction, type FormattedMessageProps, GlobalSearch, GlobalSearchDisclosureContext, GlobalSearchProvider, GlobalStateProvider, GlobalStateProviderContext, IconButton, type IconButtonProps, Image, type ImageModel, InternalServerErrorRequest, IntlProvider, type InventoryAvailabilityDto, type InventoryWarehousesDto, type InvoiceCollectionModel, type InvoiceHistoryTaxDto, type InvoiceLineModel, type InvoiceModel, type InvoiceSettingsModel, type JobQuoteCollectionModel, type JobQuoteLineModel, type JobQuoteModel, type LanguageCollectionModel, type LanguageModel$1 as LanguageModel, type LegacyConfigurationDto, Link, type LinkProps, LoadingOverlay, type MessageCollectionModel, type MessageModel, type MobileAppSettingsModel, type MobileContentModel, type MobilePageDto, type MobileWidgetDto, MultiSelect, type MultiSelectProps, type NavigateFn, type NavigateOptions, NotFoundRequestError, NumberField, type NumberFieldSize, type OrderApprovalCollectionModel, type OrderCollectionModel, type OrderHistoryTaxDto, type OrderLineModel, type OrderModel, type OrderPromotionModel, type OrderRequestModel, type OrderSettingsModel, type OrderStatusMappingCollectionModel, type OrderStatusMappingModel, Page, PageContainer, type PageProps, type PaginationModel$1 as PaginationModel, type PaymentMethodDto, type PaymentOptionsDto, type PersonaModel$1 as PersonaModel, type PoRequisitionModel, type PriceFacetModel, type PriceRangeModel, type PricingRfqModel, type ProductAutocompleteItemModel, type ProductAvailabilityModel, ProductCard, type ProductCardProps, type ProductCollectionModel, ProductDetailsPage, type ProductDetailsPageProps, type ProductDto, type ProductHit$1 as ProductHit, type ProductImageDto, type ProductInventoryDto, type ProductLineDto, type ProductLineModel, ProductListingPage, type ProductListingPageProps, type ProductModel, ProductOverviewGrid, type ProductOverviewGridProps, ProductPrice, type ProductPriceDto$2 as ProductPriceDto, type ProductPriceModel, type ProductPriceProps, type ProductSettingsModel, ProductSku, type ProductSkuProps, type ProductSubscriptionDto$2 as ProductSubscriptionDto, type ProductSubscriptionModel, type ProductUnitOfMeasureDto$1 as ProductUnitOfMeasureDto, type ProfileTransactionRequestModel, ProgressCircle, type ProgressCircleProps, type PromoHit$1 as PromoHit, type PromotionCollectionModel, type PromotionModel, type QuoteCollectionModel, type QuoteLineModel, type QuoteModel, type QuoteSettingsModel, ReactQueryContainer, type RealTimeCartInventoryModel, type RealTimeInventoryModel, type RealTimePricingModel, type RefinementListItem, type RelatedProductDto, RequestError, type RequestHeaders, type RequisitionCollectionModel, type RequisitionLineCollectionModel, type RequisitionLineModel, type RequisitionModel, type RmaLineDto, type RmaModel, RouteButton, RouteLink, RouteProvider, type RouteProviderProps, type SalespersonModel, type ScoreExplanationDto, type ScoreExplanationModel, SearchResultsPage, SearchRoot, type SectionOptionDto$2 as SectionOptionDto, type SectionOptionModel, Select, type SelectProps, type SessionModel$1 as SessionModel, type SessionRequestModel, type SettingsCollectionModel, type SetupRequestModel, type ShareEntityModel, type ShareOrderModel, type ShipToCollectionModel, type ShipToModel$1 as ShipToModel, type ShipViaDto, type ShipmentPackageDto, type ShipmentPackageLineDto, ShowAll, type ShowAllPropsControlled, type ShowAllPropsUncontrolled, Sidebar, SidebarDetectBreakpoint, type SidebarProps, SidebarProvider, type SiteMessageCollectionModel, type SiteMessageModel, type SortOptionModel$1 as SortOptionModel, type SpecificationDto, type SpecificationModel, type StateCollectionModel, type StateModel$1 as StateModel, type StyleTraitDto, type StyleValueDto, type StyledProductDto, type SuggestionModel, type TellAFriendModel, TextField, TimeoutRequestError, ToastProvider, type TraitValueModel, type TranslationDictionaryCollectionModel, type TranslationDictionaryModel, type TranslationId, UnauthorizedRequestError, type UnitOfMeasureModel, UnprocessableContentRequestError, type UpdateCartLineParams, type UpdateGlobalState$1 as UpdateGlobalState, type UpdateWishListLineCollectionModel, type UseAlgoliaEventResult, type UseToastReturnType, VariantDisplayTypeValues, type VariantTraitModel, type VmiBinCollectionModel, type VmiBinCountModel, type VmiBinModel, type VmiCountCollectionModel, type VmiCountModel, type VmiLocationCollectionModel, type VmiLocationModel, type VmiNoteCollectionModel, type VmiNoteModel, type VmiUserImportCollectionModel, type VmiUserImportModel, type VmiUserModel, type WarehouseCollectionModel, type WarehouseDto, type WarehouseModel$1 as WarehouseModel, type WebsiteModel, type WebsiteSettingsModel, type WishListCollectionModel$1 as WishListCollectionModel, type WishListEmailScheduleModel$1 as WishListEmailScheduleModel, type WishListLine$1 as WishListLine, type WishListLineCollectionModel$1 as WishListLineCollectionModel, type WishListLineModel$1 as WishListLineModel, type WishListLines$1 as WishListLines, type WishListModel$1 as WishListModel, WishListNameAlreadyExistsError, type WishListSettingsModel, type WishListShareModel$1 as WishListShareModel, addProductToCurrentCart, addWishListItemToWishList, config, configPerEnvironment, createSession, createSonicSearchClient, createWishList, deleteCartLineById, deleteWishList, deleteWishListItemFromWishList, environment, environments, fetchCurrentCartLines, fetchTranslations, getSession, getWishList, getWishListItemsByWishListId, getWishLists, isProductHit, isRequestError, request, signIn, signOut, transformAlgoliaProductHitToProductHit, transformAlgoliaPromoHitToPromoHit, updateCartLineById, useAddProductToCurrentCart, useAddWishListItemToCurrentWishList, useAddWishListItemToWishList, useAlgolia, useAlgoliaInsights, useAlgoliaSearch, useBreakpoint, useCartEvents, useCreateWishList, useDebouncedCallback, useDeleteCartLineById, useDeleteWishListItemFromWishList, useDisclosure, useFavorite, useFavoriteProduct, useFeatureFlags, useFetchAllWishListsItems, useFetchCurrentCartLines, useFetchTranslations, useFetchWishLists, useFormattedMessage, useGlobalSearchDisclosure, useGlobalState, useIsAuthenticated, useIsBreakpoint, useNavigate, useOnNavigate, useScrollLock, useSession, useSignIn, useSignOut, useToast, useUpdateCartLineById, userToken };
|
|
5062
|
+
export { Accordion, type AccountCollectionModel, type AccountModel, type AccountPaymentProfileCollectionModel, type AccountPaymentProfileModel, type AccountSettingsModel, type AccountShipToCollectionModel, type AccountShipToModel, type AccountsReceivableDto$1 as AccountsReceivableDto, type AddProductToCurrentCartParams$1 as AddProductToCurrentCartParams, AddToCartButton, type AddressFieldCollectionModel, type AddressFieldDisplayCollectionModel, type AddressFieldDisplayModel, type AgingBucketDto$1 as AgingBucketDto, AlgoliaActiveCategories, AlgoliaCategoriesFilters, AlgoliaFilterPanel, type AlgoliaFilterPanelProps, AlgoliaInsightsProvider, AlgoliaInsightsProviderContext, type AlgoliaInsightsProviderState, AlgoliaMultiSelectFilterSection, AlgoliaPagination, AlgoliaProvider, AlgoliaResultsCount, AlgoliaSortBy, AnnouncementProvider, type AttributeTypeDto, type AttributeTypeFacetModel, type AttributeTypeModel, type AttributeValueDto, type AttributeValueFacetModel, type AttributeValueModel, type AuthenticationResponse$1 as AuthenticationResponse, type AutocompleteItemModel, type AutocompleteModel, type AutocompleteProductCollectionModel, type AutocompleteProductModel, type AvailabilityDto$2 as AvailabilityDto, AvailabilityMessageType$2 as AvailabilityMessageType, BadRequestError, BadgeImagePlacementValues, type BadgeModel, BadgeStyleValues, BadgeTypeValues, type BaseAddressModel, type BaseModel$1 as BaseModel, type BillToCollectionModel, type BillToModel$1 as BillToModel, type BrandAlphabetLetterModel, type BrandAlphabetModel, type BrandAutocompleteModel, type BrandCategoryCollectionModel, type BrandCategoryModel, type BrandCollectionModel, type BrandDto$2 as BrandDto, type BrandModel, type BrandProductLineCollectionModel, type BrandProductLineModel, type BreadCrumbModel, Breadcrumb, type BreadcrumbLink$1 as BreadcrumbLink, type BreadcrumbProps, type BreakPriceDto$2 as BreakPriceDto, type BreakPriceRfqModel, type BudgetCalendarCollectionModel, type BudgetCalendarModel, type BudgetCollectionModel, type BudgetLineModel, type BudgetModel, Button, type ButtonProps, type CalculationMethod, type CarrierDto, type CartCollectionModel, type CartLineCollectionModel, type CartLineModel$2 as CartLineModel, type CartModel, CartProvider, type CartSettingsModel, type CatalogPageModel, CategoryCarousel, type CategoryCarouselProps, type CategoryCollectionModel, type CategoryFacetModel, type CategoryModel, Checkbox, type CheckboxProps$1 as CheckboxProps, type ChildTraitValueModel, ColorCheckbox, type ColorCheckboxProps, type ConfigSectionDto, type ConfigSectionModel, type ConfigSectionOptionDto, type ConfigurationModel, ConnectedAddToCartButton, ConnectedCartIcon, type ContactUsModel, type ContentModel, type CostCodeDto, type CostCodeModel$1 as CostCodeModel, type CountryCollectionModel, type CountryModel$1 as CountryModel, CountrySelector, type CreateSessionRequestBody, type CreditCardBillingAddressDto, type CreditCardDto, type CrossSellCollectionModel, type CurrencyCollectionModel, type CurrencyModel$1 as CurrencyModel, CurrencyPositioningType$1 as CurrencyPositioningType, type CustomerCostCodeDto, type CustomerOrderTaxDto, type CustomerSettingsModel, type CustomerValidationDto$1 as CustomerValidationDto, type DashboardPanelCollectionModel, type DashboardPanelModel, type DealerCollectionModel, type DealerModel, type DetailModel, type DocumentDto, type DocumentModel, type ECheckDto, type Environment, type FacetModel, FavoriteButton, type FavoriteButtonProps, FavoriteProvider, type FieldScoreDetailedDto, type FieldScoreDetailedModel, type FieldScoreDto, type FieldScoreModel, type FieldValidationDto$1 as FieldValidationDto, type FilterOption, FilterSection, type Filters, ForbiddenRequestError, FormattedMessage, type FormattedMessageFunction, type FormattedMessageProps, GlobalSearch, GlobalSearchDisclosureContext, GlobalSearchProvider, GlobalStateProvider, GlobalStateProviderContext, IconButton, type IconButtonProps, Image, type ImageModel, InternalServerErrorRequest, IntlProvider, type InventoryAvailabilityDto, type InventoryWarehousesDto, type InvoiceCollectionModel, type InvoiceHistoryTaxDto, type InvoiceLineModel, type InvoiceModel, type InvoiceSettingsModel, type JobQuoteCollectionModel, type JobQuoteLineModel, type JobQuoteModel, type LanguageCollectionModel, type LanguageModel$1 as LanguageModel, type LegacyConfigurationDto, Link, type LinkProps, LoadingOverlay, type MessageCollectionModel, type MessageModel, type MobileAppSettingsModel, type MobileContentModel, type MobilePageDto, type MobileWidgetDto, MultiSelect, type MultiSelectProps, type NavigateFn, type NavigateOptions, NotFoundRequestError, NumberField, type NumberFieldSize, type OrderApprovalCollectionModel, type OrderCollectionModel, type OrderHistoryTaxDto, type OrderLineModel, type OrderModel, type OrderPromotionModel, type OrderRequestModel, type OrderSettingsModel, type OrderStatusMappingCollectionModel, type OrderStatusMappingModel, Page, PageContainer, type PageProps, type PaginationModel$1 as PaginationModel, type PaymentMethodDto, type PaymentOptionsDto, type PersonaModel$1 as PersonaModel, type PoRequisitionModel, type PriceFacetModel, type PriceRangeModel, type PricingRfqModel, type ProductAutocompleteItemModel, type ProductAvailabilityModel, ProductCard, type ProductCardProps, type ProductCollectionModel, ProductDetailsPage, type ProductDetailsPageProps, type ProductDto, type ProductHit$1 as ProductHit, type ProductImageDto, type ProductInventoryDto, type ProductLineDto, type ProductLineModel, ProductListingPage, type ProductListingPageProps, type ProductModel, ProductOverviewGrid, type ProductOverviewGridProps, ProductPrice, type ProductPriceDto$2 as ProductPriceDto, type ProductPriceModel, type ProductPriceProps, type ProductSettingsModel, ProductSku, type ProductSkuProps, type ProductSubscriptionDto$2 as ProductSubscriptionDto, type ProductSubscriptionModel, type ProductUnitOfMeasureDto$1 as ProductUnitOfMeasureDto, type ProfileTransactionRequestModel, ProgressCircle, type ProgressCircleProps, type PromoHit$1 as PromoHit, type PromotionCollectionModel, type PromotionModel, type QuoteCollectionModel, type QuoteLineModel, type QuoteModel, type QuoteSettingsModel, ReactQueryContainer, type RealTimeCartInventoryModel, type RealTimeInventoryModel, type RealTimePricingModel, type RefinementListItem, type RelatedProductDto, RequestError, type RequestHeaders, type RequisitionCollectionModel, type RequisitionLineCollectionModel, type RequisitionLineModel, type RequisitionModel, type RmaLineDto, type RmaModel, RouteButton, RouteLink, RouteProvider, type RouteProviderProps, type SalespersonModel, type ScoreExplanationDto, type ScoreExplanationModel, SearchResultsPage, SearchRoot, type SectionOptionDto$2 as SectionOptionDto, type SectionOptionModel, Select, type SelectProps, type SessionModel$1 as SessionModel, type SessionRequestModel, type SettingsCollectionModel, type SetupRequestModel, type ShareEntityModel, type ShareOrderModel, type ShipToCollectionModel, type ShipToModel$1 as ShipToModel, type ShipViaDto, type ShipmentPackageDto, type ShipmentPackageLineDto, ShowAll, type ShowAllPropsControlled, type ShowAllPropsUncontrolled, Sidebar, SidebarDetectBreakpoint, type SidebarProps, SidebarProvider, type SiteMessageCollectionModel, type SiteMessageModel, type SortOptionModel$1 as SortOptionModel, type SpecificationDto, type SpecificationModel, type StateCollectionModel, type StateModel$1 as StateModel, type StyleTraitDto, type StyleValueDto, type StyledProductDto, type SuggestionModel, type TellAFriendModel, TextField, TimeoutRequestError, ToastProvider, type TraitValueModel, type TranslationDictionaryCollectionModel, type TranslationDictionaryModel, type TranslationId, UnauthorizedRequestError, type UnitOfMeasureModel, UnprocessableContentRequestError, type UpdateCartLineParams, type UpdateGlobalState$1 as UpdateGlobalState, type UpdateWishListLineCollectionModel, type UseAlgoliaEventResult, type UseToastReturnType, VariantDisplayTypeValues, type VariantTraitModel, type VmiBinCollectionModel, type VmiBinCountModel, type VmiBinModel, type VmiCountCollectionModel, type VmiCountModel, type VmiLocationCollectionModel, type VmiLocationModel, type VmiNoteCollectionModel, type VmiNoteModel, type VmiUserImportCollectionModel, type VmiUserImportModel, type VmiUserModel, type WarehouseCollectionModel, type WarehouseDto, type WarehouseModel$1 as WarehouseModel, type WebsiteModel, type WebsiteSettingsModel, type WishListCollectionModel$1 as WishListCollectionModel, type WishListEmailScheduleModel$1 as WishListEmailScheduleModel, type WishListLine$1 as WishListLine, type WishListLineCollectionModel$1 as WishListLineCollectionModel, type WishListLineModel$1 as WishListLineModel, type WishListLines$1 as WishListLines, type WishListModel$1 as WishListModel, WishListNameAlreadyExistsError, type WishListSettingsModel, type WishListShareModel$1 as WishListShareModel, addProductToCurrentCart, addWishListItemToWishList, config, configPerEnvironment, createSession, createSonicSearchClient, createWishList, deleteCartLineById, deleteWishList, deleteWishListItemFromWishList, environment, environments, fetchCurrentCartLines, fetchTranslations, getSession, getWishList, getWishListItemsByWishListId, getWishLists, isProductHit, isRequestError, request, signIn, signOut, transformAlgoliaProductHitToProductHit, transformAlgoliaPromoHitToPromoHit, updateCartLineById, useAddProductToCurrentCart, useAddWishListItemToCurrentWishList, useAddWishListItemToWishList, useAlgolia, useAlgoliaInsights, useAlgoliaSearch, useBreakpoint, useCartEvents, useCreateWishList, useDebouncedCallback, useDeleteCartLineById, useDeleteWishListItemFromWishList, useDisclosure, useFavorite, useFavoriteProduct, useFeatureFlags, useFetchAllWishListsItems, useFetchCurrentCartLines, useFetchTranslations, useFetchWishLists, useFormattedMessage, useGlobalSearchDisclosure, useGlobalState, useIsAuthenticated, useIsBreakpoint, useNavigate, useOnNavigate, useScrollLock, useSession, useSignIn, useSignOut, useToast, useUpdateCartLineById, userToken };
|
package/dist/index.js
CHANGED
|
@@ -1198,10 +1198,10 @@ function useNavigate() {
|
|
|
1198
1198
|
};
|
|
1199
1199
|
}
|
|
1200
1200
|
|
|
1201
|
-
var styles$
|
|
1201
|
+
var styles$19 = {"link":"link-module-xLqBn","has-underline":"link-module-UuCEp","secondary":"link-module-v31wH","primary":"link-module-bGD6u"};
|
|
1202
1202
|
|
|
1203
1203
|
function Link({ children, className, color = 'primary', hasUnderline, isDisabled, onClick, ...props }) {
|
|
1204
|
-
return (jsx("a", { className: clsx({ [styles$
|
|
1204
|
+
return (jsx("a", { className: clsx({ [styles$19['has-underline']]: hasUnderline }, styles$19['link'], styles$19[color], className), "data-disabled": isDisabled ? true : undefined, onClick: onClick, ...props, children: children }));
|
|
1205
1205
|
}
|
|
1206
1206
|
|
|
1207
1207
|
function RouteLink({ children, ...props }) {
|
|
@@ -1314,24 +1314,24 @@ function SolidHomeIcon(props) {
|
|
|
1314
1314
|
return (jsx("svg", { xmlns: "http://www.w3.org/2000/svg", ...props, fill: "currentColor", height: "24", viewBox: "0 0 24 24", width: "24", children: jsx("path", { d: "M15.039782,22 C14.6690193,22 14.3684378,21.6994185 14.3684378,21.3286559 L14.3684378,15.6029043 L9.34495251,15.6029043 L9.34495251,21.3286559 C9.34495251,21.6994185 9.04437101,22 8.67345678,22 L3.67134415,22 C3.3005815,22 3,21.6994185 3,21.3286559 L3,9.79560307 C3,9.60127857 3.08412644,9.41665514 3.23055192,9.28917706 L11.4158271,2.16495603 C11.6686612,1.94501466 12.0447291,1.94501466 12.2975632,2.16495603 L20.4828384,9.28917706 C20.6292639,9.41665514 20.7133903,9.60127857 20.7133903,9.79560307 L20.7133903,21.3286559 C20.7133903,21.6994185 20.4128088,22 20.0418946,22 L15.039782,22 Z", fillRule: "evenodd" }) }));
|
|
1315
1315
|
}
|
|
1316
1316
|
|
|
1317
|
-
var styles$
|
|
1317
|
+
var styles$18 = {"breadcrumbs":"breadcrumb-module-CQGse","breadcrumb":"breadcrumb-module-hxhDY","link":"breadcrumb-module-fp2Q6","icon":"breadcrumb-module-uIn3w","previous-icon":"breadcrumb-module-K-wMJ"};
|
|
1318
1318
|
|
|
1319
1319
|
function BreadcrumbShort({ links }) {
|
|
1320
1320
|
const homeLink = links[0];
|
|
1321
1321
|
const previousLink = links[links.length - 2];
|
|
1322
1322
|
const isHomeLink = previousLink === undefined || previousLink === homeLink;
|
|
1323
1323
|
const href = previousLink?.href || homeLink?.href;
|
|
1324
|
-
return (jsx(Breadcrumbs, { className: styles$
|
|
1324
|
+
return (jsx(Breadcrumbs, { className: styles$18.breadcrumbs, children: jsx(Breadcrumb$1, { className: styles$18.breadcrumb, children: jsxs(RouteLink, { className: styles$18.link, href: href, isDisabled: false, children: [jsx(GlyphsChevronsSlimLeftIcon, { className: styles$18.icon }), isHomeLink ? (jsx(SolidHomeIcon, { className: styles$18.icon })) : (jsx("span", { children: previousLink.label }))] }) }) }));
|
|
1325
1325
|
}
|
|
1326
1326
|
function BreadcrumbLongItem({ index, isDisabled, link, }) {
|
|
1327
|
-
return (jsx(Breadcrumb$1, { className: styles$
|
|
1327
|
+
return (jsx(Breadcrumb$1, { className: styles$18.breadcrumb, children: jsxs(RouteLink, { className: styles$18.link, color: "secondary", href: link.href, isDisabled: isDisabled, children: [jsx(GlyphsChevronsSlimLeftIcon, { className: clsx(styles$18['previous-icon'], styles$18.icon) }), link.label] }) }, index));
|
|
1328
1328
|
}
|
|
1329
1329
|
function BreadcrumbLong({ links }) {
|
|
1330
1330
|
const linksWithoutFirst = links.slice(1);
|
|
1331
1331
|
const homeLink = links[0];
|
|
1332
1332
|
if (!homeLink)
|
|
1333
1333
|
return null;
|
|
1334
|
-
return (jsxs(Breadcrumbs, { className: styles$
|
|
1334
|
+
return (jsxs(Breadcrumbs, { className: styles$18.breadcrumbs, children: [jsx(Breadcrumb$1, { className: styles$18.breadcrumb, children: jsx(RouteLink, { className: styles$18.link, href: homeLink.href, children: jsx(SolidHomeIcon, { className: clsx(styles$18['home-icon'], styles$18.icon) }) }) }), linksWithoutFirst.map((link, index) => (jsx(BreadcrumbLongItem, { index: index, isDisabled: linksWithoutFirst.length - 1 === index, link: link }, index)))] }));
|
|
1335
1335
|
}
|
|
1336
1336
|
function Breadcrumb({ links }) {
|
|
1337
1337
|
const { lg } = useBreakpoint();
|
|
@@ -1340,10 +1340,10 @@ function Breadcrumb({ links }) {
|
|
|
1340
1340
|
return lg ? BreadcrumbLong({ links }) : BreadcrumbShort({ links });
|
|
1341
1341
|
}
|
|
1342
1342
|
|
|
1343
|
-
var styles$
|
|
1343
|
+
var styles$17 = {"icon-button":"icon-button-module-4PDK-","md":"icon-button-module-k3s9J","lg":"icon-button-module-agk6Y","primary":"icon-button-module-fTeP4","secondary":"icon-button-module-dM0eo","current-color":"icon-button-module-71HRy"};
|
|
1344
1344
|
|
|
1345
1345
|
function IconButton({ children, className, color = 'primary', isDisabled, onClick, size = 'md', type = 'button', }) {
|
|
1346
|
-
return (jsx("button", { className: clsx(styles$
|
|
1346
|
+
return (jsx("button", { className: clsx(styles$17['icon-button'], styles$17[size], styles$17[color], className), "data-disabled": isDisabled ? true : undefined, disabled: isDisabled, onClick: e => {
|
|
1347
1347
|
onClick?.(e);
|
|
1348
1348
|
e.preventDefault();
|
|
1349
1349
|
e.stopPropagation();
|
|
@@ -1358,21 +1358,21 @@ function StrokeFavoriteIcon(props) {
|
|
|
1358
1358
|
return (jsx("svg", { xmlns: "http://www.w3.org/2000/svg", ...props, fill: "currentColor", height: "24", viewBox: "0 0 24 24", width: "24", children: jsx("path", { d: "M7.33319295,3.33090958 C5.12714802,3.33090958 3.33232058,5.12348359 3.33232058,7.32679321 C3.33232058,8.18447047 3.64878056,9.03643889 4.29989998,9.93107334 L11.9997744,20.2227497 L19.7053643,9.92401241 C20.351069,9.03643889 20.6673786,8.1846207 20.6673786,7.32679321 C20.6673786,5.12348359 18.8727016,3.33090958 16.6666566,3.33090958 C14.8537801,3.33090958 13.1222748,4.56251549 12.6388611,6.19569283 C12.5552338,6.47843037 12.2951771,6.67253074 11.9999248,6.67253074 C11.7046724,6.67253074 11.4447662,6.47843037 11.3609885,6.19569283 C10.8775748,4.56251549 9.14606944,3.33090958 7.33319295,3.33090958 M11.9997744,22 L11.9997744,22 C11.7898038,22 11.5918659,21.9008466 11.4662746,21.7327364 L3.22718487,10.720545 C2.41106707,9.59905954 2,8.45954615 2,7.32679321 C2,4.3895979 4.39240135,2 7.33319295,2 C9.22488362,2 11.0018124,2.98206975 11.9999248,4.46786903 C12.9978868,2.98206975 14.774966,2 16.6666566,2 C19.6072978,2 22,4.3895979 22,7.32679321 C22,8.45969638 21.5887825,9.59920978 20.777929,10.7136343 L12.5334246,21.7327364 C12.4076829,21.9008466 12.2098954,22 11.9997744,22", fillRule: "evenodd" }) }));
|
|
1359
1359
|
}
|
|
1360
1360
|
|
|
1361
|
-
var styles$
|
|
1361
|
+
var styles$16 = {"favorite-button":"favorite-button-module-tXSS3","is-favorite":"favorite-button-module-l557q","favorite-on":"favorite-button-module-6Tsmy","favorite-off":"favorite-button-module-LQauU"};
|
|
1362
1362
|
|
|
1363
1363
|
function FavoriteButton({ isDisabled, isFavorite, onPress, }) {
|
|
1364
|
-
return (jsx(IconButton, { className: clsx(styles$
|
|
1365
|
-
[styles$
|
|
1364
|
+
return (jsx(IconButton, { className: clsx(styles$16['favorite-button'], {
|
|
1365
|
+
[styles$16['is-favorite']]: isFavorite,
|
|
1366
1366
|
}), color: "secondary", isDisabled: isDisabled, onClick: onPress, children: isFavorite ? jsx(SolidFavoriteIcon, {}) : jsx(StrokeFavoriteIcon, {}) }));
|
|
1367
1367
|
}
|
|
1368
1368
|
|
|
1369
|
-
var styles$
|
|
1369
|
+
var styles$15 = {"field-error":"field-error-module-FXnIg"};
|
|
1370
1370
|
|
|
1371
1371
|
function FieldError({ children }) {
|
|
1372
|
-
return (jsx(FieldError$1, { className: styles$
|
|
1372
|
+
return (jsx(FieldError$1, { className: styles$15['field-error'], children: children }));
|
|
1373
1373
|
}
|
|
1374
1374
|
|
|
1375
|
-
var styles$
|
|
1375
|
+
var styles$14 = {"input-container":"input-module-2woJR","shadow-input":"input-module-pNKEt","lg":"input-module-Dx2qC","md":"input-module-sH6e7","focus":"input-module-hEEuy","growing-input":"input-module-6HwY4"};
|
|
1376
1376
|
|
|
1377
1377
|
/**
|
|
1378
1378
|
* This component is used to create an input that grows as the user types.
|
|
@@ -1388,20 +1388,20 @@ const Input = forwardRef(({ _pseudo = 'none', autoGrow, size = 'lg', ...inputPro
|
|
|
1388
1388
|
? onChange?.(event)
|
|
1389
1389
|
: setUncontrolledValue(event.target.value);
|
|
1390
1390
|
const { pressProps } = usePress({});
|
|
1391
|
-
return (jsx("div", { className: clsx(styles$
|
|
1391
|
+
return (jsx("div", { className: clsx(styles$14['input-container'], styles$14[size], styles$14[_pseudo]), children: jsxs("div", { className: clsx({ [styles$14['growing-input']]: autoGrow }), children: [jsx(Input$1, { size: autoGrow ? 1 : undefined, ...props, ...pressProps, ref: ref, onChange: handleChange, onClick: e => {
|
|
1392
1392
|
e.preventDefault();
|
|
1393
1393
|
e.stopPropagation();
|
|
1394
1394
|
e.target.focus();
|
|
1395
|
-
} }), autoGrow && jsx("span", { className: styles$
|
|
1395
|
+
} }), autoGrow && jsx("span", { className: styles$14['shadow-input'], children: value })] }) }));
|
|
1396
1396
|
});
|
|
1397
1397
|
Input.displayName = 'Input';
|
|
1398
1398
|
|
|
1399
|
-
var styles$
|
|
1399
|
+
var styles$13 = {"label":"label-module-LGfJt","required":"label-module-oTWaS"};
|
|
1400
1400
|
|
|
1401
1401
|
function Label({ children, isRequired }) {
|
|
1402
1402
|
if (!children)
|
|
1403
1403
|
return null;
|
|
1404
|
-
return (jsxs(Label$1, { className: styles$
|
|
1404
|
+
return (jsxs(Label$1, { className: styles$13.label, children: [children, isRequired && jsx("span", { className: styles$13.required, children: "*" })] }));
|
|
1405
1405
|
}
|
|
1406
1406
|
|
|
1407
1407
|
function StrokeCollapseIcon(props) {
|
|
@@ -1416,7 +1416,7 @@ function StrokeTrashIcon(props) {
|
|
|
1416
1416
|
return (jsx("svg", { xmlns: "http://www.w3.org/2000/svg", ...props, fill: "currentColor", height: "24", viewBox: "0 0 24 24", width: "24", children: jsx("path", { d: "M7.77273912,6.04398453 L9.07201126,6.04398453 L9.07201126,4.11757519 C9.07201126,3.84748949 9.15880324,3.63104347 9.33238719,3.46823712 C9.50597114,3.30543077 9.73570292,3.22402759 10.0215825,3.22402759 L13.3263825,3.22402759 C13.6186194,3.22402759 13.850313,3.30543077 14.0214633,3.46823712 C14.1926136,3.63104347 14.2781888,3.84748949 14.2781888,4.11757519 L14.2781888,6.04398453 L15.5846129,6.04398453 L15.5846129,4.04352264 C15.5846129,3.40769382 15.3900697,2.90814951 15.0009834,2.5448897 C14.6118971,2.1816299 14.0799703,2 13.405203,2 L9.942762,2 C9.26869007,2 8.73850162,2.1816299 8.35219662,2.5448897 C7.96589162,2.90814951 7.77273912,3.40769382 7.77273912,4.04352264 L7.77273912,6.04398453 Z M3.60955531,6.6940676 L19.7561406,6.6940676 C19.9248076,6.6940676 20.0683931,6.6332263 20.186897,6.51154371 C20.305401,6.38986111 20.3646529,6.242352 20.3646529,6.06901638 C20.3646529,5.9003494 20.3052023,5.75537328 20.186301,5.63408801 C20.0673997,5.51280275 19.9240129,5.45216011 19.7561406,5.45216011 L3.60955531,5.45216011 C3.44734496,5.45216011 3.30519982,5.51300141 3.18311989,5.63468401 C3.06103996,5.75636661 3,5.90114406 3,6.06901638 C3,6.24314666 3.06103996,6.39085444 3.18311989,6.5121397 C3.30519982,6.63342497 3.44734496,6.6940676 3.60955531,6.6940676 Z M7.56920636,22 L15.8049825,22 C16.4210441,22 16.9252074,21.8108208 17.3174724,21.4324624 C17.7097373,21.0541041 17.9209684,20.5545101 17.9511655,19.9336805 L18.6066126,6.5283806 L17.2870766,6.5283806 L16.6578534,19.8059883 C16.6444435,20.0808419 16.5455825,20.3084381 16.3612707,20.4887766 C16.1769588,20.6691152 15.9469787,20.7592845 15.6713303,20.7592845 L7.68497866,20.7592845 C7.41479362,20.7592845 7.18757,20.6677246 7.00330778,20.4846047 C6.81904556,20.3014848 6.72015983,20.0752793 6.70665057,19.8059883 L6.05358753,6.5295726 L4.76996029,6.5295726 L5.41587138,19.9420245 C5.4468632,20.562854 5.65806942,21.0610573 6.04949005,21.4366344 C6.44091068,21.8122115 6.94748278,22 7.56920636,22 Z M9.00213069,19.1375783 C9.15957307,19.1375783 9.2862223,19.0920591 9.38207839,19.0010206 C9.47793448,18.9099822 9.5230812,18.7917017 9.51751857,18.6461793 L9.2314403,8.86811345 C9.22587767,8.72338566 9.17618647,8.60729053 9.0823667,8.51982806 C8.98854694,8.43236558 8.86649184,8.38863435 8.71620142,8.38863435 C8.55945437,8.38863435 8.43436962,8.43395491 8.34094719,8.52459603 C8.24752475,8.61523714 8.20081354,8.73371626 8.20081354,8.88003338 L8.48555081,18.6485633 C8.49121278,18.7988537 8.54055631,18.9179288 8.63358142,19.0057886 C8.72660652,19.0936484 8.84945628,19.1375783 9.00213069,19.1375783 Z M11.6876904,19.1375783 C11.8451328,19.1375783 11.9717821,19.0922578 12.0676381,19.0016166 C12.1634942,18.9109755 12.2114223,18.7924964 12.2114223,18.6461793 L12.2114223,8.88003338 C12.2114223,8.73451092 12.1634942,8.61623047 12.0676381,8.52519202 C11.9717821,8.43415357 11.8451328,8.38863435 11.6876904,8.38863435 C11.5310427,8.38863435 11.4032015,8.43415357 11.3041668,8.52519202 C11.205132,8.61623047 11.1556147,8.73451092 11.1556147,8.88003338 L11.1556147,18.6461793 C11.1556147,18.7924964 11.205132,18.9109755 11.3041668,19.0016166 C11.4032015,19.0922578 11.5310427,19.1375783 11.6876904,19.1375783 Z M14.3635653,19.1387703 C14.516339,19.1387703 14.6392384,19.0948404 14.7322635,19.0069806 C14.8252886,18.9191208 14.8745825,18.802827 14.8801451,18.6580992 L15.1662234,8.88122537 C15.1662234,8.73490825 15.1194873,8.6166278 15.0260152,8.52638402 C14.9325431,8.43614023 14.8070859,8.39101833 14.6496435,8.39101833 C14.4993531,8.39101833 14.3772732,8.4345509 14.2834037,8.52161604 C14.1895343,8.60868118 14.1398183,8.7277563 14.1342556,8.87884138 L13.8483264,18.6485633 C13.8483264,18.7932911 13.8948389,18.9111742 13.987864,19.0022126 C14.0808891,19.0932511 14.2061229,19.1387703 14.3635653,19.1387703 Z" }) }));
|
|
1417
1417
|
}
|
|
1418
1418
|
|
|
1419
|
-
var styles$
|
|
1419
|
+
var styles$12 = {"field":"number-field-module-gmnog","button-input-container":"number-field-module-8Lvgh","zoom-in-text":"number-field-module-OlEoa"};
|
|
1420
1420
|
|
|
1421
1421
|
/**
|
|
1422
1422
|
* This component is used to create a number field.
|
|
@@ -1424,7 +1424,7 @@ var styles$10 = {"field":"number-field-module-gmnog","button-input-container":"n
|
|
|
1424
1424
|
*/
|
|
1425
1425
|
function NumberField({ autoFocus, autoGrow, defaultValue, formatOptions = { style: 'decimal', useGrouping: false }, isDisabled, isInvalid, isReadOnly, isRequired, label, maxLength, maxValue, minValue, name, onChange, onInput, onKeyUp, placeholder, showLabel = false, size = 'lg', value, withButtons, }) {
|
|
1426
1426
|
const inputRef = useRef(null);
|
|
1427
|
-
return (jsxs(NumberField$1, { "aria-label": label, autoFocus: autoFocus, className: clsx(styles$
|
|
1427
|
+
return (jsxs(NumberField$1, { "aria-label": label, autoFocus: autoFocus, className: clsx(styles$12.field, styles$12[size]), defaultValue: defaultValue, formatOptions: formatOptions, isDisabled: isDisabled, isInvalid: isInvalid, isReadOnly: isReadOnly, isRequired: isRequired, maxValue: maxValue, minValue: minValue, name: name, onChange: onChange, onInput: onInput, value: value, children: [showLabel && jsx(Label, { isRequired: isRequired, children: label }), jsxs("div", { className: styles$12['button-input-container'], children: [withButtons && (jsx(Button$1, { isDisabled: isDisabled,
|
|
1428
1428
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
1429
1429
|
// @ts-expect-error
|
|
1430
1430
|
onClick: e => e.preventDefault(), onPressStart: e => e.target.focus(), slot: "decrement", children: (value || 0) <= 1 ? jsx(StrokeTrashIcon, {}) : jsx(StrokeCollapseIcon, {}) })), jsx(Input, { ref: inputRef, autoGrow: autoGrow, maxLength: maxLength, onFocus: e => (e.target.selectionStart = e.target.value.length || 0), onKeyUp: e => onKeyUp?.(e), placeholder: placeholder, size: size }), withButtons && (jsx(Button$1, { isDisabled: isDisabled,
|
|
@@ -1437,7 +1437,7 @@ function SolidCartIcon(props) {
|
|
|
1437
1437
|
return (jsx("svg", { xmlns: "http://www.w3.org/2000/svg", ...props, fill: "currentColor", height: "24", viewBox: "0 0 24 24", width: "24", children: jsx("path", { d: "M7.89619008,16.6656848 C9.33405626,16.6656848 10.4996925,17.831321 10.4996925,19.2690253 C10.4996925,20.7068915 9.33405626,21.8725278 7.89619008,21.8725278 C6.45832389,21.8725278 5.29268766,20.7068915 5.29268766,19.2690253 C5.29268766,17.831321 6.45832389,16.6656848 7.89619008,16.6656848 Z M16.8207199,16.6656848 C18.2585861,16.6656848 19.4242223,17.831321 19.4242223,19.2690253 C19.4242223,20.7068915 18.2585861,21.8725278 16.8207199,21.8725278 C15.3828537,21.8725278 14.2172175,20.7068915 14.2172175,19.2690253 C14.2172175,17.831321 15.3828537,16.6656848 16.8207199,16.6656848 Z M7.89619008,18.0995047 C7.25122196,18.0995047 6.72650762,18.6242191 6.72650762,19.2690253 C6.72650762,19.9139935 7.25122196,20.4387078 7.89619008,20.4387078 C8.54115819,20.4387078 9.06587253,19.9139935 9.06587253,19.2690253 C9.06587253,18.6242191 8.54115819,18.0995047 7.89619008,18.0995047 Z M16.8207199,18.0995047 C16.1757518,18.0995047 15.6510375,18.6242191 15.6510375,19.2690253 C15.6510375,19.9139935 16.1757518,20.4387078 16.8207199,20.4387078 C17.465688,20.4387078 17.9904024,19.9139935 17.9904024,19.2690253 C17.9904024,18.6242191 17.465688,18.0995047 16.8207199,18.0995047 Z M4.58909785,3 C4.6054446,3 4.6206584,3.00372253 4.63668145,3.00485547 C4.65869291,3.00631211 4.68038067,3.0079306 4.70174473,3.01132943 C4.72958275,3.0158612 4.75628783,3.02233516 4.78299291,3.02994206 C4.8001489,3.03479753 4.81698119,3.03949115 4.83365164,3.04564141 C4.8622989,3.05616159 4.88948953,3.06862396 4.91619461,3.08254297 L4.956495,3.10439258 C4.98287638,3.12025378 5.00763927,3.13789532 5.03175477,3.15699349 L5.06736154,3.18645 C5.08921115,3.20603373 5.10911857,3.22707409 5.1283786,3.2492474 C5.13986987,3.26251902 5.1511993,3.27562878 5.16171948,3.28970964 C5.17806623,3.31155925 5.19230894,3.33421811 5.2060661,3.35768621 C5.21626258,3.37500405 5.22597352,3.39216004 5.23455152,3.41028712 C5.24555725,3.43326967 5.25462079,3.45706147 5.26319878,3.48150066 C5.27032014,3.50205548 5.27711779,3.52244845 5.28245881,3.54381251 C5.28860907,3.56825171 5.29249345,3.59317645 5.29605412,3.61858673 C5.29799631,3.63299129 5.30252808,3.64642476 5.30382287,3.66115301 L5.510504,6.30738355 L21.2869744,6.30772748 C21.3139222,6.30835464 21.3370666,6.31256272 21.3603729,6.3151523 C21.3861069,6.31790373 21.4120027,6.31936037 21.4369275,6.32486324 C21.4591008,6.32923316 21.4726961,6.33603082 21.4875862,6.34056259 C21.5163953,6.34914058 21.5452044,6.35723303 21.5722332,6.36920985 C21.5918169,6.37778785 21.6092966,6.38911728 21.6275855,6.39931376 C21.6497588,6.41145243 21.6722559,6.42278186 21.6928107,6.43718642 C21.711747,6.45029618 21.7280937,6.46583368 21.7455734,6.48072379 C21.763215,6.49577574 21.7815039,6.51001845 21.7976888,6.52668889 C21.8132263,6.54287379 21.8261742,6.56067718 21.8400932,6.57815686 C21.8551452,6.59676949 21.8706827,6.61473473 21.8836306,6.634804 C21.8954456,6.65293108 21.9043473,6.67251481 21.9145437,6.69161299 C21.9258732,6.71330075 21.9381737,6.73434111 21.9473991,6.75716182 C21.9559771,6.77868773 21.9614799,6.80134658 21.9679539,6.82368174 C21.9744279,6.8456932 21.9820348,6.86705726 21.9864047,6.89003981 C21.9915839,6.91658304 21.9925549,6.94393552 21.994659,6.97128799 C21.9959538,6.98909138 22,7.00608552 22,7.0242126 C21.9988671,7.05496391 21.994659,7.07794646 21.9922312,7.10109086 C21.9894798,7.1269867 21.9880232,7.15320623 21.9825203,7.17813097 L20.5915903,13.2322533 L20.587706,13.2487619 C20.5797754,13.2835594 20.5681222,13.3164147 20.555498,13.3486227 C20.5524229,13.3567151 20.5499951,13.3651313 20.5465963,13.3730619 C20.5299259,13.4117438 20.5096948,13.4483216 20.4870359,13.4827955 C20.4797527,13.4938012 20.4710129,13.5031884 20.4632441,13.5137086 C20.445117,13.5381478 20.4265044,13.5619396 20.4056259,13.5836274 C20.3944583,13.5952805 20.3823196,13.605477 20.3705046,13.6163208 C20.3505972,13.6344479 20.3302043,13.6517658 20.3083546,13.6674651 C20.2941119,13.6778235 20.2795455,13.6872107 20.2646554,13.6964361 C20.2424821,13.7101932 20.2198233,13.7223319 20.1963552,13.7334995 L20.148286,13.7550254 C20.1214191,13.7655456 20.0935811,13.7734762 20.0654194,13.7807594 C20.0513385,13.7843201 20.037905,13.7888518 20.0235005,13.7916033 C19.9798012,13.8000194 19.9351309,13.8053604 19.8898132,13.8053604 L6.09623539,13.8051986 L6.20774933,15.2317353 L19.411064,15.2317353 C19.8069466,15.2317353 20.1278931,15.5528437 20.1278931,15.9487262 C20.1278931,16.3446088 19.8069466,16.6657172 19.411064,16.6657172 L5.54384488,16.6657172 C5.49593759,16.6657172 5.44932509,16.660538 5.40384553,16.6514744 C5.38863173,16.6483993 5.37471272,16.6425728 5.35998446,16.6386884 C5.33052795,16.6307578 5.30090959,16.6231509 5.27290972,16.6116596 C5.25543003,16.6043764 5.23940699,16.5945036 5.22257469,16.5859256 C5.19910659,16.5741106 5.17547665,16.5627812 5.15362704,16.5485385 C5.13711844,16.5376946 5.12255203,16.5249086 5.10701453,16.5127699 C5.08694526,16.4972324 5.06687599,16.4821804 5.04874891,16.4647007 C5.03434435,16.4509436 5.02204383,16.4357298 5.00893406,16.4208397 C4.99226362,16.4019033 4.97575503,16.3834526 4.96118862,16.3628977 C4.94937364,16.3463891 4.93966271,16.3285858 4.92930437,16.3111061 C4.91668015,16.2899039 4.90437963,16.2688635 4.8940213,16.2462046 C4.88511961,16.2267828 4.87832195,16.2065516 4.87103875,16.1861587 C4.86310815,16.163338 4.8553394,16.1406791 4.84967468,16.1168873 C4.84433367,16.0950377 4.84109669,16.0728644 4.83785971,16.0502055 L4.82992911,16.0045641 L3.92600265,4.43381996 L2.7169909,4.43381996 C2.32110834,4.43381996 2,4.11287347 2,3.7169909 C2,3.32094649 2.32110834,3 2.7169909,3 Z", fillRule: "evenodd" }) }));
|
|
1438
1438
|
}
|
|
1439
1439
|
|
|
1440
|
-
var styles
|
|
1440
|
+
var styles$11 = {"manual-input-container":"add-to-cart-button-module-AWFvQ","left-button-spacer":"add-to-cart-button-module-SS7WM"};
|
|
1441
1441
|
|
|
1442
1442
|
function AddToCartButton({ initialState = 'initial', isDisabled = false, onChange, quantity, }) {
|
|
1443
1443
|
const [currentState, setState] = useState(initialState);
|
|
@@ -1529,7 +1529,7 @@ function ManualInputState({ isDisabled, onCancel, onConfirm, quantity, }) {
|
|
|
1529
1529
|
e.key === 'Enter' && onConfirm(ensureNumber(updatedQuantity));
|
|
1530
1530
|
e.key === 'Escape' && onCancel();
|
|
1531
1531
|
};
|
|
1532
|
-
return (jsxs("div", { className: styles
|
|
1532
|
+
return (jsxs("div", { className: styles$11['manual-input-container'], children: [jsx("div", { className: styles$11['left-button-spacer'] }), jsx(NumberField, { autoFocus: true, autoGrow: true, defaultValue: quantity ? ensureNumber(quantity) : undefined, formatOptions: {
|
|
1533
1533
|
maximumFractionDigits: 0,
|
|
1534
1534
|
style: 'decimal',
|
|
1535
1535
|
useGrouping: false,
|
|
@@ -1607,7 +1607,7 @@ function StrokeCloseboxIcon(props) {
|
|
|
1607
1607
|
return (jsx("svg", { xmlns: "http://www.w3.org/2000/svg", ...props, height: "24", viewBox: "0 0 24 24", width: "24", children: jsx("path", { d: "M8,8 L16,16 M16,8 L8,16", fill: "currentColor", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.4" }) }));
|
|
1608
1608
|
}
|
|
1609
1609
|
|
|
1610
|
-
var styles$
|
|
1610
|
+
var styles$10 = {"toast":"toast-module-VzLw4","close":"toast-module-mAwpu","icon":"toast-module-JqNiT","success":"toast-module-cuSIT","info":"toast-module-ABLCP","warning":"toast-module-jGWiH","danger":"toast-module-t33Ra"};
|
|
1611
1611
|
|
|
1612
1612
|
const icons = {
|
|
1613
1613
|
danger: jsx(SolidAttentionIcon, {}),
|
|
@@ -1616,7 +1616,7 @@ const icons = {
|
|
|
1616
1616
|
warning: jsx(SolidNoticeIcon, {}),
|
|
1617
1617
|
};
|
|
1618
1618
|
const Toast = forwardRef(({ className, id, onClose, toastMessage: { body, isUserDismissable, messageType = 'info' }, }, ref) => {
|
|
1619
|
-
return (jsxs("div", { ref: ref, className: clsx(styles$
|
|
1619
|
+
return (jsxs("div", { ref: ref, className: clsx(styles$10.toast, styles$10[messageType], className), children: [jsx("span", { className: styles$10.icon, children: icons[messageType] }), body, isUserDismissable && (jsx(IconButton, { className: styles$10.close, color: "secondary", onClick: () => onClose?.(id), children: jsx(StrokeCloseboxIcon, {}) }))] }));
|
|
1620
1620
|
});
|
|
1621
1621
|
Toast.displayName = 'Toast';
|
|
1622
1622
|
|
|
@@ -1713,15 +1713,15 @@ const ConnectedAddToCartButton = ({ onAddToCart, productId }) => {
|
|
|
1713
1713
|
return (jsx(AddToCartButton, { isDisabled: isPendingDeleteCartLine || isLoadingCartLines || isPendingAddToCart, onChange: handleChange, quantity: quantity }));
|
|
1714
1714
|
};
|
|
1715
1715
|
|
|
1716
|
-
var styles
|
|
1716
|
+
var styles$$ = {"tag":"tag-module-B7r15","body":"tag-module-4cfCf","shape":"tag-module-c7CRb"};
|
|
1717
1717
|
|
|
1718
1718
|
function Tag({ children }) {
|
|
1719
1719
|
if (!children)
|
|
1720
1720
|
return null;
|
|
1721
|
-
return (jsxs("div", { className: styles
|
|
1721
|
+
return (jsxs("div", { className: styles$$.tag, children: [jsx("div", { className: styles$$.body, children: children }), jsx("svg", { className: styles$$.shape, height: "16", viewBox: "0 0 9 16", width: "9", xmlns: "http://www.w3.org/2000/svg", children: jsx("path", { d: "M1.92461763,0 L0,0 L0,16 L1.92461763,16 L6.4117887,16 L8.87489381,7.57121588 C9.23711515,6.3325062 8.79482383,4.99454094 7.78060408,4.2560794 L1.92461763,0 Z", fill: "currentColor" }) })] }));
|
|
1722
1722
|
}
|
|
1723
1723
|
|
|
1724
|
-
var styles$
|
|
1724
|
+
var styles$_ = {"product-price":"product-price-module-oIU1K","original-price":"product-price-module-til0s","is-hidden":"product-price-module-V1NCf","current-price-wrapper":"product-price-module-FfVhl","current-price":"product-price-module-pvy2w","wholes":"product-price-module-GCw07","dot":"product-price-module-N56iV","decimals":"product-price-module-eWOOF","vat":"product-price-module-96DoG"};
|
|
1725
1725
|
|
|
1726
1726
|
const formatPrice = (price) => new Intl.NumberFormat('en-US', {
|
|
1727
1727
|
maximumFractionDigits: 2,
|
|
@@ -1734,22 +1734,22 @@ function ProductPrice({ className, isVatIncluded, originalPrice, price, }) {
|
|
|
1734
1734
|
const priceWithCurrency = formatPrice(price);
|
|
1735
1735
|
const [wholes, decimals] = priceWithCurrency.split('.');
|
|
1736
1736
|
const showOriginalPrice = priceWithCurrency !== originalPriceWithCurrency;
|
|
1737
|
-
return (jsxs("div", { className: clsx(className, styles$
|
|
1738
|
-
[styles$
|
|
1739
|
-
}), children: originalPriceWithCurrency }), jsxs("div", { className: styles$
|
|
1737
|
+
return (jsxs("div", { className: clsx(className, styles$_['product-price']), children: [jsx("span", { className: clsx(styles$_['original-price'], {
|
|
1738
|
+
[styles$_['is-hidden']]: !showOriginalPrice,
|
|
1739
|
+
}), children: originalPriceWithCurrency }), jsxs("div", { className: styles$_['current-price-wrapper'], children: [jsxs("div", { className: styles$_['current-price'], children: [jsx("span", { className: styles$_.wholes, children: wholes }), jsx("span", { className: styles$_.dot, children: "." }), jsx("span", { className: styles$_.decimals, children: decimals })] }), jsx("span", { className: styles$_.vat, children: isVatIncluded ? (jsx(FormattedMessage, { id: "Incl. VAT" })) : (jsx(FormattedMessage, { id: "Excl. VAT" })) })] })] }));
|
|
1740
1740
|
}
|
|
1741
1741
|
|
|
1742
|
-
var styles$
|
|
1742
|
+
var styles$Z = {"product-sku":"product-sku-module-ITb8x"};
|
|
1743
1743
|
|
|
1744
1744
|
function ProductSku({ sku }) {
|
|
1745
|
-
return (jsx("p", { className: styles$
|
|
1745
|
+
return (jsx("p", { className: styles$Z['product-sku'], "data-test-selector": "productNumber", children: sku }));
|
|
1746
1746
|
}
|
|
1747
1747
|
|
|
1748
1748
|
function isResponsiveImage(image) {
|
|
1749
1749
|
return Boolean(image?.lg);
|
|
1750
1750
|
}
|
|
1751
1751
|
|
|
1752
|
-
var styles$
|
|
1752
|
+
var styles$Y = {"image":"image-module-lg7Kj","contain":"image-module-KFEgG","cover":"image-module-tVKFe","has-error":"image-module-LM93B","picture":"image-module-pNYjR"};
|
|
1753
1753
|
|
|
1754
1754
|
function Image({ className, fallbackSrc = 'https://res.cloudinary.com/dkz9eknwh/image/upload/v1716545808/images/product-card/fallback_p6ngjz.svg', fit = 'cover', height, image, loading = 'eager', title, width, }) {
|
|
1755
1755
|
const [hasError, setHasError] = useState(false);
|
|
@@ -1773,26 +1773,26 @@ function Image({ className, fallbackSrc = 'https://res.cloudinary.com/dkz9eknwh/
|
|
|
1773
1773
|
}
|
|
1774
1774
|
function ImageComponent({ className, fallbackSrc, fit = 'cover', hasError, image, ...rest }) {
|
|
1775
1775
|
if (!image)
|
|
1776
|
-
return (jsx("img", { className: clsx(styles$
|
|
1776
|
+
return (jsx("img", { className: clsx(styles$Y.image, className, styles$Y[fit], styles$Y['has-error']), src: fallbackSrc, ...rest }));
|
|
1777
1777
|
const srcSet = !hasError
|
|
1778
1778
|
? `${image[1]} 1x, ${image[2]} 2x, ${image[3]} 3x`
|
|
1779
1779
|
: undefined;
|
|
1780
|
-
return (jsx("img", { alt: image.altText, className: clsx(styles$
|
|
1781
|
-
[styles$
|
|
1780
|
+
return (jsx("img", { alt: image.altText, className: clsx(styles$Y.image, className, styles$Y[fit], {
|
|
1781
|
+
[styles$Y['has-error']]: hasError,
|
|
1782
1782
|
}), src: !hasError ? image[3] : fallbackSrc, srcSet: srcSet, ...rest }));
|
|
1783
1783
|
}
|
|
1784
1784
|
function PictureComponent({ className, fallbackSrc, fit = 'cover', hasError, image, ...rest }) {
|
|
1785
1785
|
if (!image)
|
|
1786
|
-
return (jsx("picture", { className: clsx(styles$
|
|
1787
|
-
return (jsxs("picture", { className: clsx(styles$
|
|
1788
|
-
[styles$
|
|
1786
|
+
return (jsx("picture", { className: clsx(styles$Y.picture, className), children: jsx("img", { className: clsx(styles$Y.image, styles$Y[fit], styles$Y['has-error']), src: fallbackSrc, ...rest }) }));
|
|
1787
|
+
return (jsxs("picture", { className: clsx(styles$Y.picture, className), children: [jsx("source", { media: "(max-width: 768px)", srcSet: `${image.sm[1]} 1x, ${image.sm[2]} 2x, ${image.sm[3]} 3x` }), jsx("source", { media: "(max-width: 1439px)", srcSet: `${image.md[1]} 1x, ${image.md[2]} 2x, ${image.md[3]} 3x` }), jsx("source", { media: "(min-width: 1440px)", srcSet: `${image.lg[1]} 1x, ${image.lg[2]} 2x, ${image.lg[3]} 3x` }), jsx("img", { className: clsx(styles$Y.image, styles$Y[fit], {
|
|
1788
|
+
[styles$Y['has-error']]: hasError,
|
|
1789
1789
|
}), src: !hasError ? image.lg[3] : fallbackSrc, ...rest })] }));
|
|
1790
1790
|
}
|
|
1791
1791
|
|
|
1792
|
-
var styles$
|
|
1792
|
+
var styles$X = {"product-card-container":"product-card-module-LepTy","product-card":"product-card-module-pLaiB","favorite-button":"product-card-module-tvEdz","content":"product-card-module-e0kMu","top":"product-card-module-Q0VvF","tag":"product-card-module-HkWBE","title":"product-card-module-CStNi","bottom":"product-card-module-kD2tU","image":"product-card-module-p-zoi","price":"product-card-module-irW0D","add-to-cart-button":"product-card-module-SnCvX"};
|
|
1793
1793
|
|
|
1794
1794
|
function ProductCard({ addToCartButton: AddToCartButton, favoriteButton: FavoriteButton, href, id, image, onClick, price, sku, tags, title, }) {
|
|
1795
|
-
return (jsx("div", { className: styles$
|
|
1795
|
+
return (jsx("div", { className: styles$X['product-card-container'], children: jsxs(RouteLink, { className: styles$X['product-card'], "data-product-id": sku, href: href, id: id, onClick: onClick, children: [jsx("div", { className: styles$X.image, children: jsx(Image, { ...image }) }), jsx("div", { className: styles$X['favorite-button'], children: FavoriteButton && FavoriteButton }), jsxs("div", { className: styles$X.content, children: [jsxs("div", { className: styles$X.top, children: [jsx("div", { className: styles$X.tag, children: tags?.map(tag => (jsx(Tag, { children: jsx(FormattedMessage, { optional: true, fallbackValue: tag, id: `tag.${tag.toLowerCase()}` }) }, tag))) }), jsx("h2", { className: styles$X.title, children: title }), jsx(ProductSku, { sku: sku })] }), jsxs("div", { className: styles$X.bottom, children: [jsx("div", { className: styles$X.price, children: jsx(ProductPrice, { isVatIncluded: price.isVatIncluded, originalPrice: price.originalPrice, price: price.price }) }), jsx("div", { className: styles$X['add-to-cart-button'], children: AddToCartButton })] })] })] }) }));
|
|
1796
1796
|
}
|
|
1797
1797
|
|
|
1798
1798
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
@@ -7571,13 +7571,13 @@ function GlyphsArrowBoldCapsLeftIcon(props) {
|
|
|
7571
7571
|
return (jsx("svg", { xmlns: "http://www.w3.org/2000/svg", ...props, fill: "currentColor", height: "11", viewBox: "0 0 11 11", width: "11", children: jsx("path", { d: "M2.31124163,11 C2.06716529,11 1.91839241,10.7730596 2.04771379,10.5980857 L6.08820761,5.13116556 C6.42092595,4.68081431 6.37243043,4.10595375 5.96732409,3.70073526 L2.70240329,0.432177991 C2.53178078,0.261409485 2.67540212,0 2.93972934,0 L5.48361239,0 C5.57518542,0 5.6619622,0.0340936243 5.72102726,0.0931942463 L8.14882304,2.52367916 C9.1607451,3.53657521 9.28198389,4.9729381 8.45036569,6.09787751 L4.91836426,10.876542 C4.86160851,10.9533653 4.7620417,11 4.65492523,11 L2.31124163,11 Z", fillRule: "evenodd", transform: "matrix(-1 0 0 1 11 0)" }) }));
|
|
7572
7572
|
}
|
|
7573
7573
|
|
|
7574
|
-
var styles$
|
|
7574
|
+
var styles$W = {"carousel-navigation-button":"carousel-navigation-button-module-a1-I4"};
|
|
7575
7575
|
|
|
7576
7576
|
const CarouselNavigationButton = forwardRef(function NavigationButton({ className, direction, onClick }, ref) {
|
|
7577
|
-
return (jsx("button", { ref: ref, className: clsx(styles$
|
|
7577
|
+
return (jsx("button", { ref: ref, className: clsx(styles$W['carousel-navigation-button'], className), onClick: () => onClick?.(direction), children: direction === 'previous' ? (jsx(GlyphsArrowBoldCapsLeftIcon, {})) : (jsx(GlyphsArrowBoldCapsRightIcon, {})) }));
|
|
7578
7578
|
});
|
|
7579
7579
|
|
|
7580
|
-
var styles$
|
|
7580
|
+
var styles$V = {"carousel":"carousel-module-ealh-","swiper":"carousel-module-IftbN","is-ready":"carousel-module-RCpfc","has-overflow":"carousel-module-tPg7k","slide":"carousel-module-bUMlb","navigation-button-next":"carousel-module-T7bTr","is-dragging":"carousel-module-34OWD","navigation-button-prev":"carousel-module-984Rr","navigation-buttons":"carousel-module-k7Z4S","navigation-button":"carousel-module-kcqEE","top":"carousel-module-nL-O8","center":"carousel-module-5SGYn"};
|
|
7581
7581
|
|
|
7582
7582
|
function generateSlidesPerViewBreakpoints(slidesPerView) {
|
|
7583
7583
|
return Object.keys(slidesPerView).reduce((result, breakpoint) => ({
|
|
@@ -7616,12 +7616,12 @@ function Carousel({ breakpoints: _breakpoints, className, hasNavigation = true,
|
|
|
7616
7616
|
}
|
|
7617
7617
|
if (slides.length === 0)
|
|
7618
7618
|
return null;
|
|
7619
|
-
return (jsxs("div", { className: clsx(styles$
|
|
7619
|
+
return (jsxs("div", { className: clsx(styles$V.carousel, className), style: spaceBetween !== undefined
|
|
7620
7620
|
? { '--column-gap': `${spaceBetween}px` }
|
|
7621
|
-
: undefined, children: [jsx(Swiper, { breakpoints: _breakpoints, className: clsx(styles$
|
|
7622
|
-
[styles$
|
|
7623
|
-
[styles$
|
|
7624
|
-
[styles$
|
|
7621
|
+
: undefined, children: [jsx(Swiper, { breakpoints: _breakpoints, className: clsx(styles$V.swiper, {
|
|
7622
|
+
[styles$V['is-dragging']]: isDragging,
|
|
7623
|
+
[styles$V['has-overflow']]: hasOverflow,
|
|
7624
|
+
[styles$V['is-ready']]: isReady,
|
|
7625
7625
|
}), freeMode: {
|
|
7626
7626
|
enabled: false,
|
|
7627
7627
|
sticky: true,
|
|
@@ -7632,19 +7632,19 @@ function Carousel({ breakpoints: _breakpoints, className, hasNavigation = true,
|
|
|
7632
7632
|
}, onBeforeInit: swiper => (swiperRef.current = swiper), onSliderMove: () => setIsDragging(true), onSlidesUpdated: () => {
|
|
7633
7633
|
if (!isReady)
|
|
7634
7634
|
setIsReady(true);
|
|
7635
|
-
}, onTouchEnd: () => setIsDragging(false), slidesPerGroupAuto: slidesPerView === 'auto', slidesPerView: slidesPerView, spaceBetween: spaceBetween, children: slides.map((slide, index) => (jsx(SwiperSlide, { className: clsx(styles$
|
|
7635
|
+
}, onTouchEnd: () => setIsDragging(false), slidesPerGroupAuto: slidesPerView === 'auto', slidesPerView: slidesPerView, spaceBetween: spaceBetween, children: slides.map((slide, index) => (jsx(SwiperSlide, { className: clsx(styles$V.slide, slideClasses), children: slide }, index))) }), hasNavigation && (jsxs("div", { className: clsx(styles$V['navigation-buttons'], styles$V[navigationButtonsPosition]), children: [jsx(CarouselNavigationButton, { ref: prevEl, className: clsx(styles$V['navigation-button'], styles$V['navigation-button-prev']), direction: "previous", onClick: direction => handleNavigationButtonClick(direction) }), jsx(CarouselNavigationButton, { ref: nextEl, className: clsx(styles$V['navigation-button'], styles$V['navigation-button-next']), direction: "next", onClick: direction => handleNavigationButtonClick(direction) })] }))] }));
|
|
7636
7636
|
}
|
|
7637
7637
|
|
|
7638
|
-
var styles$
|
|
7638
|
+
var styles$U = {"slide":"category-carousel-module-muLq-"};
|
|
7639
7639
|
|
|
7640
7640
|
function CategoryCarousel({ categoryCards }) {
|
|
7641
|
-
return jsx(Carousel, { slideClasses: styles$
|
|
7641
|
+
return jsx(Carousel, { slideClasses: styles$U.slide, slides: categoryCards });
|
|
7642
7642
|
}
|
|
7643
7643
|
|
|
7644
|
-
var styles$
|
|
7644
|
+
var styles$T = {"accordion":"accordion-module-9WvAH","indented":"accordion-module-6CcEH","white":"accordion-module-CaVdG","accordion-item":"accordion-module-lf9d-","lg":"accordion-module-0qnae","with-seperators":"accordion-module-yOLrW","button":"accordion-module--Rwpb","icon":"accordion-module-Y50uq","focus":"accordion-module-M4BZs","panel":"accordion-module-KZjMo","content":"accordion-module-ejMH3","border-type-bottom":"accordion-module-oTdZK","border-type-top":"accordion-module-0mrLq","border-type-middle":"accordion-module-aAr-R","is-open":"accordion-module-W0F1z","border-type-middle-accentuated":"accordion-module-OB98a"};
|
|
7645
7645
|
|
|
7646
7646
|
function Accordion({ borderType = 'bottom', children, color = 'black', hasLineSeparator = true, indented, size = 'md', }) {
|
|
7647
|
-
return (jsx("div", { className: clsx({ [styles$
|
|
7647
|
+
return (jsx("div", { className: clsx({ [styles$T.indented]: indented }, styles$T.accordion, styles$T[color], styles$T[size], hasLineSeparator && styles$T['with-seperators']), children: Boolean(children) &&
|
|
7648
7648
|
Children.map(children, child => {
|
|
7649
7649
|
if (!child)
|
|
7650
7650
|
return null;
|
|
@@ -7681,7 +7681,7 @@ function useResizeObserver(resizeCallback) {
|
|
|
7681
7681
|
};
|
|
7682
7682
|
}
|
|
7683
7683
|
|
|
7684
|
-
var styles$
|
|
7684
|
+
var styles$S = {"show-all":"show-all-module-BDp21","panel":"show-all-module-bEdda","content":"show-all-module-RF--F","has-transparency":"show-all-module-30y7l","button":"show-all-module-58e7Q","icon":"show-all-module-fqncI","is-open":"show-all-module-hQeGI","content-fits":"show-all-module-OhPfm"};
|
|
7685
7685
|
|
|
7686
7686
|
function ShowAll({ children, hasTransparency = true, initialHeight = 0, initialIsOpen = false, isOpen: isControlledOpen, onToggle, }) {
|
|
7687
7687
|
const isControlled = isControlledOpen !== undefined && onToggle !== undefined;
|
|
@@ -7692,23 +7692,23 @@ function ShowAll({ children, hasTransparency = true, initialHeight = 0, initialI
|
|
|
7692
7692
|
const { ref } = useResizeObserver((_target, size) => {
|
|
7693
7693
|
setContentFits((size.height || 0) <= initialHeight);
|
|
7694
7694
|
});
|
|
7695
|
-
return (jsxs("div", { ref: showAllRef, className: clsx(styles$
|
|
7696
|
-
[styles$
|
|
7697
|
-
[styles$
|
|
7698
|
-
}), style: contentFits ? undefined : { '--initital-height': `${initialHeight}px` }, children: [jsx("div", { className: styles$
|
|
7699
|
-
[styles$
|
|
7700
|
-
}), children: jsx("div", { ref: ref, children: children }) }) }), !contentFits && (jsxs(RouteLink, { className: styles$
|
|
7695
|
+
return (jsxs("div", { ref: showAllRef, className: clsx(styles$S['show-all'], {
|
|
7696
|
+
[styles$S['content-fits']]: contentFits,
|
|
7697
|
+
[styles$S['is-open']]: isReallyOpen,
|
|
7698
|
+
}), style: contentFits ? undefined : { '--initital-height': `${initialHeight}px` }, children: [jsx("div", { className: styles$S.panel, children: jsx("div", { className: clsx(styles$S.content, {
|
|
7699
|
+
[styles$S['has-transparency']]: !contentFits && hasTransparency,
|
|
7700
|
+
}), children: jsx("div", { ref: ref, children: children }) }) }), !contentFits && (jsxs(RouteLink, { className: styles$S.button, color: "secondary", onClick: () => {
|
|
7701
7701
|
if (isControlled)
|
|
7702
7702
|
return onToggle(!isControlled);
|
|
7703
7703
|
toggle();
|
|
7704
|
-
}, children: [jsx(GlyphsChevronsSlimDownIcon, { className: styles$
|
|
7704
|
+
}, children: [jsx(GlyphsChevronsSlimDownIcon, { className: styles$S.icon }), isReallyOpen ? (jsx(FormattedMessage, { id: "Show less" })) : (jsx(FormattedMessage, { id: "Show all" }))] }))] }));
|
|
7705
7705
|
}
|
|
7706
7706
|
|
|
7707
7707
|
function StrokeCheckmarkIcon(props) {
|
|
7708
7708
|
return (jsx("svg", { xmlns: "http://www.w3.org/2000/svg", ...props, fill: "currentColor", height: "24", viewBox: "0 0 24 24", width: "24", children: jsx("path", { d: "M10.8641425,17 C10.6636971,17 10.4855234,16.9548533 10.3296214,16.8645598 C10.1737194,16.7742664 10.0252413,16.6388262 9.88418708,16.4582393 L6.27839644,12.2189616 C6.09279881,11.9857035 6,11.744921 6,11.496614 C6,11.2332581 6.08723088,11.0094056 6.26169265,10.8250564 C6.43615442,10.6407073 6.65330364,10.5485327 6.91314031,10.5485327 C7.06904232,10.5485327 7.21195249,10.5823928 7.34187082,10.6501129 C7.47178916,10.717833 7.59985152,10.8382242 7.72605791,11.0112867 L10.8195991,14.7200903 L16.2405345,6.53047404 C16.4558278,6.17682468 16.7230883,6 17.0423163,6 C17.2873051,6 17.5081663,6.08088789 17.7048998,6.24266366 C17.9016333,6.40443943 18,6.61700527 18,6.88036117 C18,7.00075245 17.9721604,7.12302483 17.9164811,7.24717833 C17.8608018,7.37133183 17.7958426,7.48984199 17.7216036,7.6027088 L11.7884187,16.4469526 C11.5582777,16.8156509 11.2501856,17 10.8641425,17 Z", fillRule: "evenodd" }) }));
|
|
7709
7709
|
}
|
|
7710
7710
|
|
|
7711
|
-
var styles$
|
|
7711
|
+
var styles$R = {"select":"select-module-ui-Wc","sm":"select-module-44a1l","md":"select-module-QUm-8","button":"select-module-aMQIQ","chevron":"select-module-00uRU","focus":"select-module-XMc0P","solid":"select-module-IRd4F","popover":"select-module-z8cWq","listbox":"select-module-S21ba","header":"select-module-4Bm2j","item":"select-module-LgEJO","check":"select-module-lQFw3"};
|
|
7712
7712
|
|
|
7713
7713
|
function Select({ isDisabled = false, label, onChange, options, placeholder, selectedOption, showLabel = true, showPlaceholder = true, size = 'md', variant = 'outline', }) {
|
|
7714
7714
|
const selectRef = useRef(null);
|
|
@@ -7725,20 +7725,20 @@ function Select({ isDisabled = false, label, onChange, options, placeholder, sel
|
|
|
7725
7725
|
window.addEventListener('resize', updateWidth);
|
|
7726
7726
|
return () => window.removeEventListener('resize', updateWidth);
|
|
7727
7727
|
}, []);
|
|
7728
|
-
return (jsxs(Select$1, { ref: selectRef, "aria-label": label, className: clsx(styles$
|
|
7728
|
+
return (jsxs(Select$1, { ref: selectRef, "aria-label": label, className: clsx(styles$R.select, styles$R[size], styles$R[variant]), isDisabled: isDisabled, onSelectionChange: selected => onChange(selected), placeholder: placeholder || label, selectedKey: String(selectedOption), children: [showLabel && jsx(Label, { children: label }), jsxs(Button$1, { className: styles$R.button, children: [jsx(SelectValue, {}), jsx(GlyphsChevronsSlimDownIcon, { "aria-hidden": "true", className: styles$R.chevron })] }), jsx(Popover, { ref: ref =>
|
|
7729
7729
|
// Workaround for react/react-aria #1513
|
|
7730
|
-
ref?.addEventListener('touchend', e => e.preventDefault()), className: clsx(styles$
|
|
7730
|
+
ref?.addEventListener('touchend', e => e.preventDefault()), className: clsx(styles$R.popover, styles$R[variant]), placement: "bottom left", triggerRef: selectRef, children: jsx(ListBox, { className: styles$R.listbox, children: jsxs(Section, { children: [showPlaceholder && (jsx(Header, { className: styles$R.header, children: placeholder || label })), Object.entries(options).map(([key, value]) => (jsxs(ListBoxItem, { "aria-label": value, className: styles$R.item, id: key, textValue: value, children: [selectedOption === key && (jsx("span", { slot: "description", children: jsx(StrokeCheckmarkIcon, { className: styles$R.check }) })), jsx("span", { slot: "label", children: value })] }, key)))] }) }) })] }));
|
|
7731
7731
|
}
|
|
7732
7732
|
|
|
7733
|
-
var styles$
|
|
7733
|
+
var styles$Q = {"modal-overlay":"modal-module-rVFJc","modal-fade":"modal-module-63Uyl","is-full-screen":"modal-module-uwets","modal":"modal-module-6vlFt","content":"modal-module-FJxzx","modal-slide":"modal-module-jkAe7","modal-delayed-fade":"modal-module-WOZ01","close":"modal-module-7zIZE","modal-zoom":"modal-module-aPJ7X"};
|
|
7734
7734
|
|
|
7735
7735
|
function Modal({ children, className, isDismissable, isFullScreen, isKeyboardDismissDisabled, isOpen, onOpenChange, }) {
|
|
7736
|
-
return (jsx(ModalOverlay, { className: clsx(styles$
|
|
7737
|
-
[styles$
|
|
7738
|
-
}), children: jsx("div", { className: styles$
|
|
7736
|
+
return (jsx(ModalOverlay, { className: clsx(styles$Q['modal-overlay'], className), isDismissable: isDismissable, isKeyboardDismissDisabled: isKeyboardDismissDisabled, isOpen: isOpen, onOpenChange: onOpenChange, children: jsx(Modal$1, { className: clsx(styles$Q.modal, {
|
|
7737
|
+
[styles$Q['is-full-screen']]: isFullScreen,
|
|
7738
|
+
}), children: jsx("div", { className: styles$Q.content, children: children }) }) }));
|
|
7739
7739
|
}
|
|
7740
7740
|
|
|
7741
|
-
var styles$
|
|
7741
|
+
var styles$P = {"heading":"heading-module-pMC65","uppercase":"heading-module-6spgX","italic":"heading-module-XXMDM","bold":"heading-module-xvrxo","xxl":"heading-module-Kn3ZN","xl":"heading-module--hZs-","l":"heading-module-WrJRY","m":"heading-module-hTexc","s":"heading-module-7W29m","xs":"heading-module-SgaLB","xxs":"heading-module-33en7"};
|
|
7742
7742
|
|
|
7743
7743
|
const sizeToTag = {
|
|
7744
7744
|
l: 'h3',
|
|
@@ -7751,24 +7751,24 @@ const sizeToTag = {
|
|
|
7751
7751
|
};
|
|
7752
7752
|
function Heading({ bold = true, children, className, italic, size = 'xxl', tag, uppercase, }) {
|
|
7753
7753
|
return createElement$1(tag || sizeToTag[size], {
|
|
7754
|
-
className: clsx(className, styles$
|
|
7755
|
-
[styles$
|
|
7756
|
-
[styles$
|
|
7757
|
-
[styles$
|
|
7754
|
+
className: clsx(className, styles$P.heading, styles$P[size], {
|
|
7755
|
+
[styles$P.uppercase]: uppercase,
|
|
7756
|
+
[styles$P.italic]: italic,
|
|
7757
|
+
[styles$P.bold]: bold,
|
|
7758
7758
|
}),
|
|
7759
7759
|
}, children);
|
|
7760
7760
|
}
|
|
7761
7761
|
|
|
7762
|
-
var styles$
|
|
7762
|
+
var styles$O = {"dialog":"dialog-module-qKzgy","header":"dialog-module-ZnsAe","close":"dialog-module-Y7Tqg","footer":"dialog-module-y7Axm"};
|
|
7763
7763
|
|
|
7764
7764
|
function Footer({ close }) {
|
|
7765
7765
|
return (jsxs(Fragment, { children: [jsx(Button, { withArrow: true, color: "primary", size: "md", type: "submit", children: "Submit" }), jsx(Button, { color: "secondary", onClick: close, size: "md", variant: "outline", children: "Close" })] }));
|
|
7766
7766
|
}
|
|
7767
7767
|
function Dialog({ allowClose = true, children, className, dialogClassName, footer = Footer, hasCloseButton = true, hideTitle, isDismissable, isFullScreen, isKeyboardDismissDisabled, isOpen, onOpenChange, onSubmit, title, validationErrors, }) {
|
|
7768
|
-
return (jsx(Modal, { className: clsx(styles$
|
|
7768
|
+
return (jsx(Modal, { className: clsx(styles$O['modal-overlay'], className), isDismissable: isDismissable, isFullScreen: isFullScreen, isKeyboardDismissDisabled: isKeyboardDismissDisabled, isOpen: isOpen, onOpenChange: onOpenChange, children: jsx(Dialog$1, { "aria-label": title, className: clsx(styles$O.dialog, dialogClassName), children: ({ close }) => (jsxs(Form, { className: styles$O.form, onSubmit: onSubmit || (e => e.preventDefault), validationErrors: validationErrors, children: [jsxs("header", { className: styles$O.header, children: [!hideTitle && (jsx(Heading, { className: styles$O.heading, size: "xs", children: title })), hasCloseButton && (jsx("div", { className: styles$O.close, children: jsx(IconButton, { color: "secondary", isDisabled: !allowClose, onClick: close, children: jsx(StrokeCloseboxIcon, {}) }) }))] }), jsx("div", { className: styles$O.content, children: children instanceof Function ? children({ close }) : children }), jsx("footer", { className: styles$O.footer, children: footer instanceof Function ? footer({ close }) : footer })] })) }) }));
|
|
7769
7769
|
}
|
|
7770
7770
|
|
|
7771
|
-
var styles$
|
|
7771
|
+
var styles$N = {"country-selector-dialog":"country-selector-dialog-module-mMJS0","content":"country-selector-dialog-module-z-ZqY","logo":"country-selector-dialog-module-7VjsF","intro":"country-selector-dialog-module-IdVDt","selects":"country-selector-dialog-module-Nvikf"};
|
|
7772
7772
|
|
|
7773
7773
|
function CountrySelectorDialog({ countries, isOpen, onSubmit, selectedCountry, selectedLanguage, showCountry = true, }) {
|
|
7774
7774
|
const t = useFormattedMessage();
|
|
@@ -7790,15 +7790,15 @@ function CountrySelectorDialog({ countries, isOpen, onSubmit, selectedCountry, s
|
|
|
7790
7790
|
setCurrentLanguage(fallbackLanguage);
|
|
7791
7791
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
7792
7792
|
}, [currentCountry]);
|
|
7793
|
-
return (jsx(Dialog, { hideTitle: true, allowClose: true, className: styles$
|
|
7793
|
+
return (jsx(Dialog, { hideTitle: true, allowClose: true, className: styles$N.modal, dialogClassName: styles$N['country-selector-dialog'], footer: jsx(Button, { withArrow: true, type: "submit", children: jsx(FormattedMessage, { id: "Save" }) }), hasCloseButton: false, isOpen: isOpen, onOpenChange: () => { }, onSubmit: e => {
|
|
7794
7794
|
onSubmit({ country: currentCountry, language: currentLanguage });
|
|
7795
7795
|
e.preventDefault();
|
|
7796
7796
|
e.stopPropagation();
|
|
7797
|
-
}, title: "Country Selector", children: jsxs("div", { className: styles$
|
|
7797
|
+
}, title: "Country Selector", children: jsxs("div", { className: styles$N.content, children: [jsx("svg", { className: styles$N.logo, height: "32", viewBox: "0 0 134 32", width: "134", xmlns: "http://www.w3.org/2000/svg", children: jsxs("g", { fill: "none", fillRule: "evenodd", children: [jsx("path", { d: "M15.83 11.533c2.42 0 4.382 1.977 4.382 4.415 0 8.794-7.1 15.95-15.83 15.95C1.963 31.897 0 29.92 0 27.481c0-2.354 1.83-4.278 4.134-4.408l.249-.007c3.797 0 6.905-3.036 7.058-6.826l.006-.293c0-2.438 1.963-4.415 4.383-4.415zM15.83 0c2.42 0 4.383 1.977 4.383 4.415 0 2.355-1.83 4.279-4.134 4.409l-.249.007c-3.8 0-6.906 3.035-7.059 6.824l-.006.293c0 2.438-1.962 4.415-4.382 4.415S0 18.386 0 15.948C0 7.154 7.101 0 15.83 0zm8.208 16.022c0 8.794 7.101 15.95 15.83 15.95s15.83-7.156 15.83-15.95S48.597.074 39.868.074s-15.83 7.154-15.83 15.948zm8.765 0c0-3.924 3.169-7.118 7.065-7.118 3.895 0 7.065 3.194 7.065 7.118 0 3.926-3.17 7.119-7.065 7.119-3.896 0-7.065-3.193-7.065-7.12zm76.888-11.276c-6.173 6.217-6.173 16.335-.002 22.553 6.173 6.217 16.215 6.217 22.388 0a4.44 4.44 0 0 0 .001-6.244 4.359 4.359 0 0 0-6.003-.184l-.194.184a7.04 7.04 0 0 1-9.994 0c-2.753-2.775-2.753-7.29.002-10.065a7.036 7.036 0 0 1 9.751-.233l.24.231a4.36 4.36 0 0 0 6.198 0 4.44 4.44 0 0 0-.001-6.245c-6.173-6.217-16.215-6.216-22.386.003zm-17.162-.174v22.863c0 2.439 1.961 4.416 4.381 4.416 2.422 0 4.384-1.977 4.384-4.416V4.572c0-2.439-1.962-4.416-4.384-4.416-2.42 0-4.38 1.977-4.38 4.416zM64.1.1c-2.42 0-4.383 1.977-4.383 4.415v23.07c0 2.438 1.962 4.415 4.382 4.415s4.383-1.977 4.383-4.415V8.93h3.933c3.895 0 7.065 3.192 7.065 7.118v11.537c0 2.438 1.962 4.415 4.382 4.415s4.383-1.977 4.383-4.415V16.048C88.244 7.254 81.143.1 72.414.1h-8.316z", fill: "#000" }), jsx("path", { d: "M47.036 16.022c0 3.99-3.209 7.222-7.168 7.222-3.96 0-7.169-3.233-7.169-7.222 0-3.989 3.21-7.222 7.169-7.222 3.96 0 7.168 3.233 7.168 7.222", fill: "#E30613" })] }) }), jsx("p", { className: styles$N.intro, children: jsx(FormattedMessage, { id: "Welcome to Sonic Equipment. Please choose your country and language below." }) }), jsxs("div", { className: styles$N.selects, children: [showCountry && (jsx(Select, { label: t('Country'), onChange: value => setCurrentCountry(countries.find(country => country.id === value) ||
|
|
7798
7798
|
currentCountry), options: countryOptions, selectedOption: currentCountry.id, showPlaceholder: false, variant: "solid" })), jsx(Select, { label: t('Language'), onChange: value => setCurrentLanguage(currentCountry.languages.find(language => language.id === value) || currentLanguage), options: languageOptions, selectedOption: currentLanguage.id, showPlaceholder: false, variant: "solid" })] })] }) }));
|
|
7799
7799
|
}
|
|
7800
7800
|
|
|
7801
|
-
var styles$
|
|
7801
|
+
var styles$M = {"country-selector-trigger":"country-selector-trigger-module-aioDu","flag":"country-selector-trigger-module-zOSJK","text":"country-selector-trigger-module-TE8tl","divider":"country-selector-trigger-module-GNRDD"};
|
|
7802
7802
|
|
|
7803
7803
|
function CountrySelectorTrigger({ onClick, selectedCountry, selectedLanguage, showCountry = true, }) {
|
|
7804
7804
|
const t = useFormattedMessage();
|
|
@@ -7806,7 +7806,7 @@ function CountrySelectorTrigger({ onClick, selectedCountry, selectedLanguage, sh
|
|
|
7806
7806
|
return;
|
|
7807
7807
|
const abbreviation = selectedCountry.abbreviation.toLowerCase();
|
|
7808
7808
|
const flagSrc = `https://res.cloudinary.com/dkz9eknwh/image/upload/v1729678637/images/flags/${abbreviation}.svg`;
|
|
7809
|
-
return (jsxs("button", { "aria-label": "Open country selector dialog", className: styles$
|
|
7809
|
+
return (jsxs("button", { "aria-label": "Open country selector dialog", className: styles$M['country-selector-trigger'], onClick: onClick, type: "button", children: [jsx(Image, { className: styles$M.flag, height: 24, image: { 1: flagSrc, 2: flagSrc, 3: flagSrc, altText: abbreviation }, title: abbreviation, width: 24 }), jsxs("div", { className: styles$M.text, children: [showCountry && (jsxs(Fragment, { children: [jsx("span", { children: t(`clSelector.${selectedCountry.name}`) }), jsx("span", { className: styles$M.divider, children: "-" })] })), jsx("span", { children: selectedLanguage.description })] })] }));
|
|
7810
7810
|
}
|
|
7811
7811
|
|
|
7812
7812
|
async function fetchCountriesLanguages() {
|
|
@@ -8004,7 +8004,7 @@ function CountrySelector({ defaultCountryCode, defaultLanguageCode, onChange, sh
|
|
|
8004
8004
|
}, selectedCountry: selectedCountry || defaultCountry, selectedLanguage: selectedLanguage || defaultLanguage, showCountry: showCountry })] }));
|
|
8005
8005
|
}
|
|
8006
8006
|
|
|
8007
|
-
var styles$
|
|
8007
|
+
var styles$L = {"multi-select":"multi-select-module-DC7Ix","filter-item":"multi-select-module-OW-NK"};
|
|
8008
8008
|
|
|
8009
8009
|
function MultiSelect({ amountShown = 3, onChange, options, render, }) {
|
|
8010
8010
|
const shownOptions = options.slice(0, amountShown);
|
|
@@ -8015,24 +8015,24 @@ function MultiSelect({ amountShown = 3, onChange, options, render, }) {
|
|
|
8015
8015
|
options.filter(option => option.isSelected).length === 0) {
|
|
8016
8016
|
return null;
|
|
8017
8017
|
}
|
|
8018
|
-
return (jsxs("div", { className: styles$
|
|
8018
|
+
return (jsxs("div", { className: styles$L['multi-select'], children: [jsx("div", { className: styles$L['filter-items'], children: shownOptions
|
|
8019
8019
|
.concat(isOpen ? [] : hiddenSelectedOptions)
|
|
8020
|
-
.map(option => (jsxs("div", { className: styles$
|
|
8020
|
+
.map(option => (jsxs("div", { className: styles$L['filter-item'], children: [render({ onChange: () => onChange(option), option }), jsxs("span", { children: ["(", option.amount, ")"] })] }, option.value))) }), hiddenOptions.length > 0 && (jsx(ShowAll, { hasTransparency: false, isOpen: isOpen, onToggle: toggle, children: jsx("div", { className: clsx(styles$L['filter-items'], styles$L['hidden']), children: hiddenOptions.map(option => (jsxs("div", { className: styles$L['filter-item'], children: [render({ onChange: () => onChange(option), option }), jsxs("span", { children: ["(", option.amount, ")"] })] }, option.value))) }) }))] }));
|
|
8021
8021
|
}
|
|
8022
8022
|
|
|
8023
|
-
var styles$
|
|
8023
|
+
var styles$K = {"checkbox":"checkbox-module-YNVdd","box":"checkbox-module-UKoyf","checkmark":"checkbox-module-pHIwh","focus":"checkbox-module-v23jy","active":"checkbox-module-7UG-b","color-checkbox":"checkbox-module-nEhvW"};
|
|
8024
8024
|
|
|
8025
8025
|
function Checkbox({ _pseudo = 'none', children, className, isDisabled, isSelected, onChange, value, }) {
|
|
8026
|
-
return (jsxs(Checkbox$1, { className: clsx(className, styles$
|
|
8026
|
+
return (jsxs(Checkbox$1, { className: clsx(className, styles$K.checkbox, styles$K[_pseudo]), isDisabled: isDisabled, isSelected: isSelected, onChange: onChange, value: value, children: [jsx("div", { className: styles$K.box, children: jsx("svg", { "aria-hidden": "true", className: styles$K.checkmark, viewBox: "0 0 18 18", children: jsx("polyline", { points: "1 9 7 14 15 4" }) }) }), children] }));
|
|
8027
8027
|
}
|
|
8028
8028
|
|
|
8029
8029
|
function ColorCheckbox({ _pseudo = 'none', children, className, color, isDisabled, isSelected, onChange, value, }) {
|
|
8030
|
-
return (jsxs(Checkbox$1, { className: clsx(className, styles$
|
|
8030
|
+
return (jsxs(Checkbox$1, { className: clsx(className, styles$K.checkbox, styles$K['color-checkbox'], styles$K[_pseudo]), isDisabled: isDisabled, isSelected: isSelected, onChange: onChange, style: {
|
|
8031
8031
|
'--selected-color': color,
|
|
8032
|
-
}, value: value, children: [jsx("div", { className: styles$
|
|
8032
|
+
}, value: value, children: [jsx("div", { className: styles$K.box }), children] }));
|
|
8033
8033
|
}
|
|
8034
8034
|
|
|
8035
|
-
var styles$
|
|
8035
|
+
var styles$J = {"input-container":"textarea-module-C6Xr1","lg":"textarea-module-vksG-","md":"textarea-module-6JrQJ"};
|
|
8036
8036
|
|
|
8037
8037
|
/**
|
|
8038
8038
|
* This component is used to create a textarea that can grow as the user types.
|
|
@@ -8067,7 +8067,7 @@ const TextArea = forwardRef(({ autoGrow, size, ...textAreaProps }, _ref) => {
|
|
|
8067
8067
|
}
|
|
8068
8068
|
updateHeight();
|
|
8069
8069
|
}, [ref, autoGrow, updateHeight, size]);
|
|
8070
|
-
return (jsx("div", { className: styles$
|
|
8070
|
+
return (jsx("div", { className: styles$J['input-container'], children: jsx(TextArea$1, { ...textAreaProps, ref: node => {
|
|
8071
8071
|
ref.current =
|
|
8072
8072
|
node;
|
|
8073
8073
|
textAreaRef.current = node;
|
|
@@ -8078,7 +8078,7 @@ const TextArea = forwardRef(({ autoGrow, size, ...textAreaProps }, _ref) => {
|
|
|
8078
8078
|
});
|
|
8079
8079
|
TextArea.displayName = 'TextArea';
|
|
8080
8080
|
|
|
8081
|
-
var styles$
|
|
8081
|
+
var styles$I = {"field":"text-field-module-JeaK0"};
|
|
8082
8082
|
|
|
8083
8083
|
/**
|
|
8084
8084
|
* This component is used to create a text field.
|
|
@@ -8086,11 +8086,46 @@ var styles$G = {"field":"text-field-module-JeaK0"};
|
|
|
8086
8086
|
* This field can also grow when a user types in text.
|
|
8087
8087
|
*/
|
|
8088
8088
|
function TextField({ autoFocus, autoGrow, defaultValue, isDisabled, isInvalid, isMultiline, isReadOnly, isRequired, label, maxLength, name, onChange, onInput, onKeyUp, placeholder, rows, showLabel = false, size = 'lg', value, }) {
|
|
8089
|
-
return (jsxs(TextField$1, { "aria-label": label, autoFocus: autoFocus, className: clsx(styles$
|
|
8089
|
+
return (jsxs(TextField$1, { "aria-label": label, autoFocus: autoFocus, className: clsx(styles$I.field, styles$I[size]), defaultValue: defaultValue, isDisabled: isDisabled, isInvalid: isInvalid, isReadOnly: isReadOnly, isRequired: isRequired, maxLength: maxLength, name: name, onChange: value => {
|
|
8090
8090
|
onChange?.(value);
|
|
8091
8091
|
}, onInput: onInput, onKeyUp: e => onKeyUp?.(e), value: value, children: [showLabel && jsx(Label, { isRequired: isRequired, children: label }), isMultiline ? (jsx(TextArea, { autoGrow: autoGrow, placeholder: placeholder, rows: rows, size: size })) : (jsx(Input, { autoGrow: autoGrow, placeholder: placeholder, size: size })), jsx(FieldError, {})] }));
|
|
8092
8092
|
}
|
|
8093
8093
|
|
|
8094
|
+
var styles$H = {"badge":"badge-module-X5Au9","count":"badge-module-ododp","is-animating":"badge-module-Q03Go","pulse":"badge-module-YSs-l","red":"badge-module-kqfth","orange":"badge-module-Y5LU3","green":"badge-module-S-L8C"};
|
|
8095
|
+
|
|
8096
|
+
const ANIMATION_DURATION = 600;
|
|
8097
|
+
function Badge({ count, variant = 'red' }) {
|
|
8098
|
+
const [prevCount, setPrevCount] = useState(count);
|
|
8099
|
+
const [isAnimating, setIsAnimating] = useState(false);
|
|
8100
|
+
useEffect(() => {
|
|
8101
|
+
if (count && prevCount !== undefined && count > prevCount) {
|
|
8102
|
+
setIsAnimating(true);
|
|
8103
|
+
const timer = setTimeout(() => setIsAnimating(false), ANIMATION_DURATION);
|
|
8104
|
+
return () => clearTimeout(timer);
|
|
8105
|
+
}
|
|
8106
|
+
setPrevCount(count);
|
|
8107
|
+
}, [count, prevCount]);
|
|
8108
|
+
return (jsx("span", { className: clsx(styles$H.badge, styles$H[variant], {
|
|
8109
|
+
[styles$H['is-animating']]: isAnimating,
|
|
8110
|
+
}), style: { '--animation-duration': `${ANIMATION_DURATION}ms` }, children: count && count > 0 && jsx("span", { className: styles$H.count, children: count }) }, count));
|
|
8111
|
+
}
|
|
8112
|
+
|
|
8113
|
+
var styles$G = {"icon-with-badge":"icon-with-badge-module-eCTIN","badge-wrapper":"icon-with-badge-module-NUjwN"};
|
|
8114
|
+
|
|
8115
|
+
function IconWithBadge({ badge, icon }) {
|
|
8116
|
+
return (jsxs("div", { className: styles$G['icon-with-badge'], children: [icon, jsx("div", { className: styles$G['badge-wrapper'], children: badge })] }));
|
|
8117
|
+
}
|
|
8118
|
+
|
|
8119
|
+
function useFetchCurrentCartCount() {
|
|
8120
|
+
const { data } = useFetchCurrentCartLines();
|
|
8121
|
+
return data?.reduce((acc, cartLine) => acc + (cartLine.qtyOrdered || 0), 0);
|
|
8122
|
+
}
|
|
8123
|
+
|
|
8124
|
+
function ConnectedCartIcon({ href }) {
|
|
8125
|
+
const count = useFetchCurrentCartCount();
|
|
8126
|
+
return (jsx(RouteLink, { href: href, children: jsx(IconWithBadge, { badge: count ? jsx(Badge, { count: count }) : undefined, icon: jsx(SolidCartIcon, {}) }) }));
|
|
8127
|
+
}
|
|
8128
|
+
|
|
8094
8129
|
function IntlProvider({ children, formatMessage, languageCode: _languageCode, }) {
|
|
8095
8130
|
const [languageCode, updateLanguageCode] = useState(_languageCode);
|
|
8096
8131
|
return (jsx(IntlContext.Provider, { value: { formatMessage, languageCode, updateLanguageCode }, children: children }));
|
|
@@ -8525,11 +8560,14 @@ const USPCarousel = ({ slides }) => {
|
|
|
8525
8560
|
}
|
|
8526
8561
|
return (jsxs(Swiper, { ref: swiperElementRef, className: styles$u['usp-carousel'], longSwipes: false, onActiveIndexChange: swiper => setCurrentIndex(swiper.activeIndex), onSetTransition: (_swiper, transitions) => {
|
|
8527
8562
|
currentTransitionSpeed = transitions;
|
|
8528
|
-
}, onSetTranslate: setTranslate, onSwiper: swiper =>
|
|
8563
|
+
}, onSetTranslate: setTranslate, onSwiper: swiper => {
|
|
8564
|
+
swiper.update();
|
|
8565
|
+
swiperRef.current = swiper;
|
|
8566
|
+
}, speed: DURATION_IN_MS, virtualTranslate: true, watchSlidesProgress: true, children: [slides.map((slide, index) => (jsx(SwiperSlide, { children: slide }, index))), jsx("div", { className: styles$u.pagination, id: "pagination" }), jsx("div", { className: styles$u.pagination, children: jsx(Pagination$1, { currentPage: currentIndex + 1, numberOfPages: slides.length, onChange: pageNumber => swiperRef.current?.slideTo(pageNumber - 1) }) })] }));
|
|
8529
8567
|
};
|
|
8530
8568
|
|
|
8531
8569
|
function ProductUsp({ usp }) {
|
|
8532
|
-
return (jsxs("div", { className: styles$u['product-usp'], children: [jsx("div", { className: styles$u.left, children: jsx(Image, { className: styles$u.image, fit: "cover", image: usp.image, title: usp.image.altText }) }), jsx("div", { className: styles$u.right, children: jsxs("div", { "data-content": true, className: styles$u.content, children: [jsx(Image, { className: styles$u.icon, image: usp.icon, title: usp.icon.altText }), jsx(Heading, { italic: true, uppercase: true, className: styles$u.title, size: "xs", children: usp.heading }), jsx("p", { className: styles$u.text,
|
|
8570
|
+
return (jsxs("div", { className: styles$u['product-usp'], children: [jsx("div", { className: styles$u.left, children: jsx(Image, { className: styles$u.image, fit: "cover", image: usp.image, title: usp.image.altText }) }), jsx("div", { className: styles$u.right, children: jsxs("div", { "data-content": true, className: styles$u.content, children: [jsx(Image, { className: styles$u.icon, image: usp.icon, title: usp.icon.altText }), jsx(Heading, { italic: true, uppercase: true, className: styles$u.title, size: "xs", children: usp.heading }), jsx("p", { className: styles$u.text, dangerouslySetInnerHTML: { __html: usp.text } })] }) })] }));
|
|
8533
8571
|
}
|
|
8534
8572
|
|
|
8535
8573
|
function ProductUSPCarousel({ usps }) {
|
|
@@ -8584,56 +8622,43 @@ function useFetchProductDetailsPageData({ languageCode, pageUrl, }) {
|
|
|
8584
8622
|
},
|
|
8585
8623
|
image: {
|
|
8586
8624
|
1: 'https://ui.sonic-equipment.com/images/usps/usp-1.png',
|
|
8587
|
-
2: 'https://ui.sonic-equipment.com/images/usps/usp-1.png',
|
|
8588
|
-
3: 'https://ui.sonic-equipment.com/images/usps/usp-1.png',
|
|
8625
|
+
2: 'https://ui.sonic-equipment.com/images/usps/usp-1@2x.png',
|
|
8626
|
+
3: 'https://ui.sonic-equipment.com/images/usps/usp-1@3x.png',
|
|
8589
8627
|
altText: 'Image',
|
|
8590
8628
|
},
|
|
8591
|
-
text:
|
|
8592
|
-
Did you know that every Sonic NEXT S15 Toolbox comes standard with an
|
|
8593
|
-
advanced drawer blocking system for anti - tilt protection? This make
|
|
8594
|
-
this flagship toolbox the safest ultimate storage solution on wheels
|
|
8595
|
-
in your workshop`,
|
|
8629
|
+
text: 'Did you know that every Sonic NEXT S15 toolbox comes standard with an <b>advanced drawer blocking system for anti-tilt protection?</b> This make this flagship toolbox the <b>safest ultimate storage solution on wheels</b> in your workshop.',
|
|
8596
8630
|
},
|
|
8597
8631
|
{
|
|
8598
|
-
heading: '
|
|
8632
|
+
heading: "Lock n' load",
|
|
8599
8633
|
icon: {
|
|
8600
|
-
1: 'https://ui.sonic-equipment.com/images/usps/usp-
|
|
8601
|
-
2: 'https://ui.sonic-equipment.com/images/usps/usp-
|
|
8602
|
-
3: 'https://ui.sonic-equipment.com/images/usps/usp-
|
|
8634
|
+
1: 'https://ui.sonic-equipment.com/images/usps/usp-2-icon.svg',
|
|
8635
|
+
2: 'https://ui.sonic-equipment.com/images/usps/usp-2-icon.svg',
|
|
8636
|
+
3: 'https://ui.sonic-equipment.com/images/usps/usp-2-icon.svg',
|
|
8603
8637
|
altText: 'Icon',
|
|
8604
8638
|
},
|
|
8605
8639
|
image: {
|
|
8606
8640
|
1: 'https://ui.sonic-equipment.com/images/usps/usp-2.png',
|
|
8607
|
-
2: 'https://ui.sonic-equipment.com/images/usps/usp-2.png',
|
|
8608
|
-
3: 'https://ui.sonic-equipment.com/images/usps/usp-2.png',
|
|
8641
|
+
2: 'https://ui.sonic-equipment.com/images/usps/usp-2@2x.png',
|
|
8642
|
+
3: 'https://ui.sonic-equipment.com/images/usps/usp-2@3x.png',
|
|
8609
8643
|
altText: 'Image',
|
|
8610
8644
|
},
|
|
8611
|
-
text:
|
|
8612
|
-
workshop your in wheels on solution storage ultimate safest the
|
|
8613
|
-
toolbox flagship this make? protection tilt - anti for system blocking
|
|
8614
|
-
drawer advanced an with standard comes Toolbox S15 NEXT Sonic that
|
|
8615
|
-
every know you Did
|
|
8616
|
-
`,
|
|
8645
|
+
text: 'Did you know that every Sonic NEXT S15 toolbox comes standard with an <b>advanced drawer blocking system for anti-tilt protection?</b> This make this flagship toolbox the <b>safest ultimate storage solution on wheels</b> in your workshop.',
|
|
8617
8646
|
},
|
|
8618
8647
|
{
|
|
8619
|
-
heading: '
|
|
8648
|
+
heading: 'Ready, Set, Go!',
|
|
8620
8649
|
icon: {
|
|
8621
|
-
1: 'https://ui.sonic-equipment.com/images/usps/usp-
|
|
8622
|
-
2: 'https://ui.sonic-equipment.com/images/usps/usp-
|
|
8623
|
-
3: 'https://ui.sonic-equipment.com/images/usps/usp-
|
|
8650
|
+
1: 'https://ui.sonic-equipment.com/images/usps/usp-3-icon.svg',
|
|
8651
|
+
2: 'https://ui.sonic-equipment.com/images/usps/usp-3-icon.svg',
|
|
8652
|
+
3: 'https://ui.sonic-equipment.com/images/usps/usp-3-icon.svg',
|
|
8624
8653
|
altText: 'Icon',
|
|
8625
8654
|
},
|
|
8626
8655
|
image: {
|
|
8627
|
-
1: 'https://ui.sonic-equipment.com/images/usps/usp-
|
|
8628
|
-
2: 'https://ui.sonic-equipment.com/images/usps/usp-
|
|
8629
|
-
3: 'https://ui.sonic-equipment.com/images/usps/usp-
|
|
8656
|
+
1: 'https://ui.sonic-equipment.com/images/usps/usp-3.png',
|
|
8657
|
+
2: 'https://ui.sonic-equipment.com/images/usps/usp-3@2x.png',
|
|
8658
|
+
3: 'https://ui.sonic-equipment.com/images/usps/usp-3@3x.png',
|
|
8630
8659
|
altText: 'Image',
|
|
8631
8660
|
},
|
|
8632
|
-
text:
|
|
8633
|
-
Did you know that every Sonic NEXT S15 Toolbox comes standard with an
|
|
8634
|
-
advanced drawer blocking system for anti - tilt protection? This make
|
|
8635
|
-
this flagship toolbox the safest ultimate storage solution on wheels
|
|
8636
|
-
in your workshop`,
|
|
8661
|
+
text: 'Did you know that every Sonic NEXT S15 toolbox comes standard with <b>heavy-duty lockable bearing caster wheels with brakes and swivel?</b> Mobility, security and safety while these wheels keep on turning.',
|
|
8637
8662
|
},
|
|
8638
8663
|
];
|
|
8639
8664
|
return body;
|
|
@@ -8713,9 +8738,9 @@ function AccordionItem({ _pseudo = 'none', borderType = 'bottom', children, clas
|
|
|
8713
8738
|
const panelId = `panel-${id}`;
|
|
8714
8739
|
return (jsxs("div", { className: clsx(className, ...[]
|
|
8715
8740
|
.concat(borderType)
|
|
8716
|
-
.map(type => styles$
|
|
8717
|
-
[styles$
|
|
8718
|
-
}), children: [jsx("h3", { children: jsxs("button", { "aria-controls": panelId, "aria-expanded": isOpen, className: clsx(styles$
|
|
8741
|
+
.map(type => styles$T[`border-type-${type}`]), styles$T['accordion-item'], {
|
|
8742
|
+
[styles$T['is-open']]: isOpen,
|
|
8743
|
+
}), children: [jsx("h3", { children: jsxs("button", { "aria-controls": panelId, "aria-expanded": isOpen, className: clsx(styles$T.button, styles$T[_pseudo]), disabled: isDisabled, id: id, onClick: toggle, type: "button", children: [title, jsx("span", { className: styles$T.icon, children: size === 'lg' ? (jsx(GlyphsChevronsBoldDownIcon, {})) : (jsx(GlyphsChevronsSlimDownIcon, {})) })] }) }), jsx("div", { "aria-labelledby": id, className: styles$T.panel, id: panelId, role: "region", children: jsx("div", { className: styles$T.content, children: children }) })] }));
|
|
8719
8744
|
}
|
|
8720
8745
|
|
|
8721
8746
|
function StrokeDownloadIcon(props) {
|
|
@@ -10542,4 +10567,4 @@ console.log(`@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
|
|
10542
10567
|
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
|
10543
10568
|
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@`);
|
|
10544
10569
|
|
|
10545
|
-
export { Accordion, AddToCartButton, AlgoliaActiveCategories, AlgoliaCategoriesFilters, AlgoliaFilterPanel, AlgoliaInsightsProvider, AlgoliaInsightsProviderContext, AlgoliaMultiSelectFilterSection, AlgoliaPagination, AlgoliaProvider, AlgoliaResultsCount, AlgoliaSortBy, AnnouncementProvider, AvailabilityMessageType, BadRequestError, BadgeImagePlacementValues, BadgeStyleValues, BadgeTypeValues, Breadcrumb, Button, CartProvider, CategoryCarousel, Checkbox, ColorCheckbox, ConnectedAddToCartButton, CountrySelector, CurrencyPositioningType, FavoriteButton, FavoriteProvider, FilterSection, ForbiddenRequestError, FormattedMessage, GlobalSearch, GlobalSearchDisclosureContext, GlobalSearchProvider, GlobalStateProvider, GlobalStateProviderContext, IconButton, Image, InternalServerErrorRequest, IntlProvider, Link, LoadingOverlay, MultiSelect, NotFoundRequestError, NumberField, Page, PageContainer, ProductCard, ProductDetailsPage, ProductListingPage, ProductOverviewGrid, ProductPrice, ProductSku, ProgressCircle, ReactQueryContainer, RequestError, RouteButton, RouteLink, RouteProvider, SearchResultsPage, SearchRoot, Select, ShowAll, Sidebar, SidebarDetectBreakpoint, SidebarProvider, TextField, TimeoutRequestError, ToastProvider, UnauthorizedRequestError, UnprocessableContentRequestError, VariantDisplayTypeValues, WishListNameAlreadyExistsError, addProductToCurrentCart, addWishListItemToWishList, config, configPerEnvironment, createSession, createSonicSearchClient, createWishList, deleteCartLineById, deleteWishList, deleteWishListItemFromWishList, environment, environments, fetchCurrentCartLines, fetchTranslations, getSession, getWishList, getWishListItemsByWishListId, getWishLists, isProductHit, isRequestError, request, signIn, signOut, transformAlgoliaProductHitToProductHit, transformAlgoliaPromoHitToPromoHit, updateCartLineById, useAddProductToCurrentCart, useAddWishListItemToCurrentWishList, useAddWishListItemToWishList, useAlgolia, useAlgoliaInsights, useAlgoliaSearch, useBreakpoint, useCartEvents, useCreateWishList, useDebouncedCallback, useDeleteCartLineById, useDeleteWishListItemFromWishList, useDisclosure, useFavorite, useFavoriteProduct, useFeatureFlags, useFetchAllWishListsItems, useFetchCurrentCartLines, useFetchTranslations, useFetchWishLists, useFormattedMessage, useGlobalSearchDisclosure, useGlobalState, useIsAuthenticated, useIsBreakpoint, useNavigate, useOnNavigate, useScrollLock, useSession, useSignIn, useSignOut, useToast, useUpdateCartLineById, userToken };
|
|
10570
|
+
export { Accordion, AddToCartButton, AlgoliaActiveCategories, AlgoliaCategoriesFilters, AlgoliaFilterPanel, AlgoliaInsightsProvider, AlgoliaInsightsProviderContext, AlgoliaMultiSelectFilterSection, AlgoliaPagination, AlgoliaProvider, AlgoliaResultsCount, AlgoliaSortBy, AnnouncementProvider, AvailabilityMessageType, BadRequestError, BadgeImagePlacementValues, BadgeStyleValues, BadgeTypeValues, Breadcrumb, Button, CartProvider, CategoryCarousel, Checkbox, ColorCheckbox, ConnectedAddToCartButton, ConnectedCartIcon, CountrySelector, CurrencyPositioningType, FavoriteButton, FavoriteProvider, FilterSection, ForbiddenRequestError, FormattedMessage, GlobalSearch, GlobalSearchDisclosureContext, GlobalSearchProvider, GlobalStateProvider, GlobalStateProviderContext, IconButton, Image, InternalServerErrorRequest, IntlProvider, Link, LoadingOverlay, MultiSelect, NotFoundRequestError, NumberField, Page, PageContainer, ProductCard, ProductDetailsPage, ProductListingPage, ProductOverviewGrid, ProductPrice, ProductSku, ProgressCircle, ReactQueryContainer, RequestError, RouteButton, RouteLink, RouteProvider, SearchResultsPage, SearchRoot, Select, ShowAll, Sidebar, SidebarDetectBreakpoint, SidebarProvider, TextField, TimeoutRequestError, ToastProvider, UnauthorizedRequestError, UnprocessableContentRequestError, VariantDisplayTypeValues, WishListNameAlreadyExistsError, addProductToCurrentCart, addWishListItemToWishList, config, configPerEnvironment, createSession, createSonicSearchClient, createWishList, deleteCartLineById, deleteWishList, deleteWishListItemFromWishList, environment, environments, fetchCurrentCartLines, fetchTranslations, getSession, getWishList, getWishListItemsByWishListId, getWishLists, isProductHit, isRequestError, request, signIn, signOut, transformAlgoliaProductHitToProductHit, transformAlgoliaPromoHitToPromoHit, updateCartLineById, useAddProductToCurrentCart, useAddWishListItemToCurrentWishList, useAddWishListItemToWishList, useAlgolia, useAlgoliaInsights, useAlgoliaSearch, useBreakpoint, useCartEvents, useCreateWishList, useDebouncedCallback, useDeleteCartLineById, useDeleteWishListItemFromWishList, useDisclosure, useFavorite, useFavoriteProduct, useFeatureFlags, useFetchAllWishListsItems, useFetchCurrentCartLines, useFetchTranslations, useFetchWishLists, useFormattedMessage, useGlobalSearchDisclosure, useGlobalState, useIsAuthenticated, useIsBreakpoint, useNavigate, useOnNavigate, useScrollLock, useSession, useSignIn, useSignOut, useToast, useUpdateCartLineById, userToken };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
import { ConnectedCartIcon } from './connected-cart-icon';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
component: typeof ConnectedCartIcon;
|
|
5
|
+
parameters: {
|
|
6
|
+
layout: string;
|
|
7
|
+
};
|
|
8
|
+
title: string;
|
|
9
|
+
};
|
|
10
|
+
export default meta;
|
|
11
|
+
type Story = StoryObj<typeof meta>;
|
|
12
|
+
export declare const Default: Story;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -55,6 +55,7 @@ export * from './forms/color-checkbox/color-checkbox';
|
|
|
55
55
|
export * from './forms/number-field/number-field';
|
|
56
56
|
export * from './forms/select/select';
|
|
57
57
|
export * from './forms/text-field/text-field';
|
|
58
|
+
export * from './header/cart-icon/connected-cart-icon';
|
|
58
59
|
export * from './intl/translation-id';
|
|
59
60
|
export * from './intl/formatted-message';
|
|
60
61
|
export * from './intl/intl-provider';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useFetchCurrentCartCount(): number | undefined;
|
package/dist/styles.css
CHANGED
|
@@ -1423,7 +1423,6 @@
|
|
|
1423
1423
|
position: relative;
|
|
1424
1424
|
display: block;
|
|
1425
1425
|
width: 100%;
|
|
1426
|
-
height: 100%;
|
|
1427
1426
|
-webkit-user-select: none;
|
|
1428
1427
|
-moz-user-select: none;
|
|
1429
1428
|
user-select: none;
|
|
@@ -2335,6 +2334,81 @@
|
|
|
2335
2334
|
display: none;
|
|
2336
2335
|
}
|
|
2337
2336
|
|
|
2337
|
+
.badge-module-X5Au9 {
|
|
2338
|
+
--shadow-color: 48 209 88;
|
|
2339
|
+
--animation-duration: 1000ms;
|
|
2340
|
+
|
|
2341
|
+
display: flex;
|
|
2342
|
+
min-width: 16px;
|
|
2343
|
+
height: 16px;
|
|
2344
|
+
box-sizing: border-box;
|
|
2345
|
+
align-items: center;
|
|
2346
|
+
justify-content: center;
|
|
2347
|
+
padding: var(--space-4);
|
|
2348
|
+
border: 1px solid var(--color-white);
|
|
2349
|
+
border-radius: var(--border-radius-8);
|
|
2350
|
+
}
|
|
2351
|
+
|
|
2352
|
+
.badge-module-X5Au9 .badge-module-ododp {
|
|
2353
|
+
display: flex;
|
|
2354
|
+
align-items: center;
|
|
2355
|
+
justify-content: center;
|
|
2356
|
+
color: var(--color-white);
|
|
2357
|
+
font-size: var(--font-size-8);
|
|
2358
|
+
font-weight: var(--font-weight-bold);
|
|
2359
|
+
}
|
|
2360
|
+
|
|
2361
|
+
.badge-module-X5Au9:where(.badge-module-Q03Go) {
|
|
2362
|
+
animation: badge-module-YSs-l var(--animation-duration) ease-in-out infinite;
|
|
2363
|
+
}
|
|
2364
|
+
|
|
2365
|
+
.badge-module-X5Au9:where(.badge-module-kqfth) {
|
|
2366
|
+
--shadow-color: 227 6 19;
|
|
2367
|
+
|
|
2368
|
+
background-color: var(--color-semantic-stop);
|
|
2369
|
+
}
|
|
2370
|
+
|
|
2371
|
+
.badge-module-X5Au9:where(.badge-module-Y5LU3) {
|
|
2372
|
+
--shadow-color: 255 159 10;
|
|
2373
|
+
|
|
2374
|
+
background-color: var(--color-semantic-notify);
|
|
2375
|
+
}
|
|
2376
|
+
|
|
2377
|
+
.badge-module-X5Au9:where(.badge-module-S-L8C) {
|
|
2378
|
+
--shadow-color: 48 209 88;
|
|
2379
|
+
|
|
2380
|
+
background-color: var(--color-semantic-okay);
|
|
2381
|
+
}
|
|
2382
|
+
|
|
2383
|
+
@keyframes badge-module-YSs-l {
|
|
2384
|
+
0% {
|
|
2385
|
+
box-shadow: 0 0 0 0 rgb(var(--shadow-color) / 70%);
|
|
2386
|
+
scale: 1;
|
|
2387
|
+
}
|
|
2388
|
+
|
|
2389
|
+
50% {
|
|
2390
|
+
box-shadow: 0 0 4px 2px rgb(var(--shadow-color) / 40%);
|
|
2391
|
+
scale: 1.28;
|
|
2392
|
+
}
|
|
2393
|
+
|
|
2394
|
+
100% {
|
|
2395
|
+
box-shadow: 0 0 0 0 rgb(var(--shadow-color) / 0%);
|
|
2396
|
+
scale: 1;
|
|
2397
|
+
}
|
|
2398
|
+
}
|
|
2399
|
+
|
|
2400
|
+
.icon-with-badge-module-eCTIN {
|
|
2401
|
+
position: relative;
|
|
2402
|
+
display: inline-flex;
|
|
2403
|
+
}
|
|
2404
|
+
|
|
2405
|
+
.icon-with-badge-module-eCTIN .icon-with-badge-module-NUjwN {
|
|
2406
|
+
position: absolute;
|
|
2407
|
+
top: 2px;
|
|
2408
|
+
right: 2px;
|
|
2409
|
+
transform: translate(50%, -50%);
|
|
2410
|
+
}
|
|
2411
|
+
|
|
2338
2412
|
.progress-circle-module-4nweP {
|
|
2339
2413
|
--width: var(--space-24);
|
|
2340
2414
|
|
|
@@ -2711,7 +2785,6 @@
|
|
|
2711
2785
|
.card-carousel-module-JXQmk {
|
|
2712
2786
|
display: flex;
|
|
2713
2787
|
width: 100%;
|
|
2714
|
-
height: 100%;
|
|
2715
2788
|
flex-direction: column;
|
|
2716
2789
|
gap: var(--space-24);
|
|
2717
2790
|
}
|
|
@@ -2726,7 +2799,6 @@
|
|
|
2726
2799
|
--padding: var(--space-16);
|
|
2727
2800
|
|
|
2728
2801
|
width: calc(100% + (2 * var(--padding)));
|
|
2729
|
-
height: 100%;
|
|
2730
2802
|
padding: var(--padding);
|
|
2731
2803
|
margin-top: calc(var(--padding) * -1);
|
|
2732
2804
|
margin-bottom: calc(var(--padding) * -1);
|
|
@@ -5317,7 +5389,6 @@ button.swiper-pagination-bullet {
|
|
|
5317
5389
|
--card-width: 154px;
|
|
5318
5390
|
|
|
5319
5391
|
overflow: hidden;
|
|
5320
|
-
height: 100%;
|
|
5321
5392
|
padding-top: 32px;
|
|
5322
5393
|
margin-top: -32px;
|
|
5323
5394
|
gap: var(--column-gap);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sonic-equipment/ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.97",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
@@ -15,10 +15,7 @@
|
|
|
15
15
|
"default": "./dist/index.js"
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
|
-
"files": [
|
|
19
|
-
"dist",
|
|
20
|
-
"README.md"
|
|
21
|
-
],
|
|
18
|
+
"files": ["dist", "README.md"],
|
|
22
19
|
"main": "dist/index.js",
|
|
23
20
|
"types": "./dist/index.d.ts",
|
|
24
21
|
"scripts": {
|