This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@shopware-pwa/helpers-next
TypeScript icon, indicating that this package has built-in type declarations

1.3.0 • Public • Published

shopware/frontends - helpers

[!WARNING]

This package is deprecated and will be removed in the future. Use @shopware/helpers instead.

Welcome to @shopware-pwa/helpers-next package.

For getting started documentation visit https://frontends.shopware.com/

Documentation specific for this package: helpers

Reusable classes

The helpersCssClasses variable, defined in the cms/layoutClasses.ts helper file, comprises an array of class names utilized within the CMS.

To enhance type support, a union type HelpersCssClasses is defined, which encompasses all class names present in the helpersCssClasses array.

const visibilityMap: Record<CmsVisibility, HelpersCssClasses> = {
  mobile: "max-md:hidden",
  tablet: "md:max-lg:hidden",
  desktop: "lg:hidden",
};

These classes can be integrated into a custom template, thereby ensuring consistency across different packages. For example as a safelist classes in unocss configuration file

import { helpersCssClasses } from "@shopware-pwa/helpers-next";

export default defineConfig({
  safelist: helpersCssClasses,
});

Changelog

Full changelog for stable version is available here

Latest changes: 1.3.0

Minor Changes

Readme

Keywords

Package Sidebar

Install

npm i @shopware-pwa/helpers-next

Weekly Downloads

2,237

Version

1.3.0

License

MIT

Unpacked Size

45.7 kB

Total Files

6

Last publish

Collaborators

  • mkucmus
  • patzick