@asantemedia-org/edwardsvacuum-design-system 1.6.686 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (163) hide show
  1. package/README.md +123 -123
  2. package/dist/.next/types/app/api/hello/route.d.ts +9 -0
  3. package/dist/.next/types/app/layout.d.ts +9 -0
  4. package/dist/.next/types/app/page.d.ts +9 -0
  5. package/dist/fonts/calibri.ttf +0 -0
  6. package/dist/fonts/calibrib.ttf +0 -0
  7. package/dist/fonts/calibril.ttf +0 -0
  8. package/dist/index.css +1 -3
  9. package/dist/index.esm.css +1 -3
  10. package/dist/index.esm.js +9 -8
  11. package/dist/index.esm.js.map +1 -1
  12. package/dist/index.js +9 -8
  13. package/dist/index.js.map +1 -1
  14. package/dist/index.scss +1 -3
  15. package/dist/{stories → src/stories}/components/Card/card.types.d.ts +1 -1
  16. package/dist/{stories → src/stories}/experiences/Algolia-dynamic-search/algolia-dynamic-search.types.d.ts +1 -1
  17. package/dist/{stories → src/stories}/experiences/Header/header.content.d.ts +0 -1
  18. package/dist/{stories → src/stories}/experiences/QRFormJourney/Qr-form/i18n.d.ts +5 -0
  19. package/dist/{stories → src/stories}/experiences/Quote/quote.d.ts +0 -1
  20. package/dist/tsconfig.tsbuildinfo +1 -1
  21. package/package.json +121 -121
  22. package/types/@asantemedia-org__edwardsvacuum-design-system.d.ts +5 -5
  23. package/types/assets.d.ts +13 -13
  24. /package/dist/{app → src/app}/api/hello/route.d.ts +0 -0
  25. /package/dist/{app → src/app}/layout.d.ts +0 -0
  26. /package/dist/{app → src/app}/page.d.ts +0 -0
  27. /package/dist/{index.d.ts → src/index.d.ts} +0 -0
  28. /package/dist/{stories → src/stories}/atoms/forms/checkbox/checkbox.d.ts +0 -0
  29. /package/dist/{stories → src/stories}/atoms/forms/checkbox/checkbox.stories.d.ts +0 -0
  30. /package/dist/{stories → src/stories}/atoms/forms/input/input.d.ts +0 -0
  31. /package/dist/{stories → src/stories}/atoms/forms/input/input.stories.d.ts +0 -0
  32. /package/dist/{stories → src/stories}/atoms/forms/select/script.d.ts +0 -0
  33. /package/dist/{stories → src/stories}/atoms/forms/select/select.d.ts +0 -0
  34. /package/dist/{stories → src/stories}/atoms/forms/select/select.stories.d.ts +0 -0
  35. /package/dist/{stories → src/stories}/atoms/forms/text/counrty-selector.d.ts +0 -0
  36. /package/dist/{stories → src/stories}/atoms/forms/text/text.d.ts +0 -0
  37. /package/dist/{stories → src/stories}/atoms/forms/text/text.stories.d.ts +0 -0
  38. /package/dist/{stories → src/stories}/components/AccordionSection/AccordionSection.d.ts +0 -0
  39. /package/dist/{stories → src/stories}/components/AccordionSection/index.d.ts +0 -0
  40. /package/dist/{stories → src/stories}/components/Banner/Banner.d.ts +0 -0
  41. /package/dist/{stories → src/stories}/components/Banner/Banner.stories.d.ts +0 -0
  42. /package/dist/{stories → src/stories}/components/Banner/banner.dialog.d.ts +0 -0
  43. /package/dist/{stories → src/stories}/components/Banner/banner.html.d.ts +0 -0
  44. /package/dist/{stories → src/stories}/components/Button/Button.d.ts +0 -0
  45. /package/dist/{stories → src/stories}/components/Button/Button.stories.d.ts +0 -0
  46. /package/dist/{stories → src/stories}/components/Card/card.d.ts +0 -0
  47. /package/dist/{stories → src/stories}/components/Card/card.stories.d.ts +0 -0
  48. /package/dist/{stories → src/stories}/components/Expert-banner/expert.banner.d.ts +0 -0
  49. /package/dist/{stories → src/stories}/components/Expert-banner/expert.banner.stories.d.ts +0 -0
  50. /package/dist/{stories → src/stories}/components/FacetUnitSelector/FacetUnitSelector.d.ts +0 -0
  51. /package/dist/{stories → src/stories}/components/FacetUnitSelector/index.d.ts +0 -0
  52. /package/dist/{stories → src/stories}/components/Pagination/pagination.d.ts +0 -0
  53. /package/dist/{stories → src/stories}/components/Pagination/pagination.stories.d.ts +0 -0
  54. /package/dist/{stories → src/stories}/components/Pagination/pagination.utils.d.ts +0 -0
  55. /package/dist/{stories → src/stories}/components/Popup/Popup.d.ts +0 -0
  56. /package/dist/{stories → src/stories}/components/Popup/Popup.stories.d.ts +0 -0
  57. /package/dist/{stories → src/stories}/components/Popup/icons/ChevronDown.d.ts +0 -0
  58. /package/dist/{stories → src/stories}/components/Popup/icons/Close.d.ts +0 -0
  59. /package/dist/{stories → src/stories}/components/Popup/popup.dialog.d.ts +0 -0
  60. /package/dist/{stories → src/stories}/components/Popup/popup.html.d.ts +0 -0
  61. /package/dist/{stories → src/stories}/components/Video/Video.d.ts +0 -0
  62. /package/dist/{stories → src/stories}/components/Video/Video.stories.d.ts +0 -0
  63. /package/dist/{stories → src/stories}/experiences/Accordion/accordion.d.ts +0 -0
  64. /package/dist/{stories → src/stories}/experiences/Accordion/accordion.item.d.ts +0 -0
  65. /package/dist/{stories → src/stories}/experiences/Accordion/accordion.stories.d.ts +0 -0
  66. /package/dist/{stories → src/stories}/experiences/Accordion/accordion.types.d.ts +0 -0
  67. /package/dist/{stories → src/stories}/experiences/Accordion/scripts.d.ts +0 -0
  68. /package/dist/{stories → src/stories}/experiences/Algolia-dynamic-search/algolia-dynamic-search-base.d.ts +0 -0
  69. /package/dist/{stories → src/stories}/experiences/Algolia-dynamic-search/algolia-dynamic-search.d.ts +0 -0
  70. /package/dist/{stories → src/stories}/experiences/Algolia-dynamic-search/algolia-dynamic-search.stories.d.ts +0 -0
  71. /package/dist/{stories → src/stories}/experiences/Anchor/anchor.d.ts +0 -0
  72. /package/dist/{stories → src/stories}/experiences/Anchor/anchor.stories.d.ts +0 -0
  73. /package/dist/{stories → src/stories}/experiences/Brand-promise-paragraph/Brand.promise.paragraph.d.ts +0 -0
  74. /package/dist/{stories → src/stories}/experiences/Brand-promise-paragraph/Brand.promise.paragraph.stories.d.ts +0 -0
  75. /package/dist/{stories → src/stories}/experiences/Breadcrumb/breadcrumb.d.ts +0 -0
  76. /package/dist/{stories → src/stories}/experiences/Breadcrumb/breadcrumb.stories.d.ts +0 -0
  77. /package/dist/{stories → src/stories}/experiences/Careers-search/careers-search-results-item.d.ts +0 -0
  78. /package/dist/{stories → src/stories}/experiences/Careers-search/careers-search-results.d.ts +0 -0
  79. /package/dist/{stories → src/stories}/experiences/Careers-search/careers-search.d.ts +0 -0
  80. /package/dist/{stories → src/stories}/experiences/Careers-search/careers-search.stories.d.ts +0 -0
  81. /package/dist/{stories → src/stories}/experiences/Carousel/dynamic/carousel.dynamic.d.ts +0 -0
  82. /package/dist/{stories → src/stories}/experiences/Carousel/dynamic/carousel.dynamic.stories.d.ts +0 -0
  83. /package/dist/{stories → src/stories}/experiences/Carousel/static/carousel.d.ts +0 -0
  84. /package/dist/{stories → src/stories}/experiences/Carousel/static/carousel.stories.d.ts +0 -0
  85. /package/dist/{stories → src/stories}/experiences/Carousel/utils/NextArrow.d.ts +0 -0
  86. /package/dist/{stories → src/stories}/experiences/Carousel/utils/PrevArrow.d.ts +0 -0
  87. /package/dist/{stories → src/stories}/experiences/Download/download-item.d.ts +0 -0
  88. /package/dist/{stories → src/stories}/experiences/Download/download-library.d.ts +0 -0
  89. /package/dist/{stories → src/stories}/experiences/Download/download.stories.d.ts +0 -0
  90. /package/dist/{stories → src/stories}/experiences/Dynamic-list/dynamic.list.d.ts +0 -0
  91. /package/dist/{stories → src/stories}/experiences/Dynamic-list/dynamic.list.stories.d.ts +0 -0
  92. /package/dist/{stories → src/stories}/experiences/Faq/faq.d.ts +0 -0
  93. /package/dist/{stories → src/stories}/experiences/Faq/faq.stories.d.ts +0 -0
  94. /package/dist/{stories → src/stories}/experiences/Footer/footer-links/footer.links.d.ts +0 -0
  95. /package/dist/{stories → src/stories}/experiences/Footer/footer-socials/footer.socials.d.ts +0 -0
  96. /package/dist/{stories → src/stories}/experiences/Footer/footer-subfooter/footer.subfooter.d.ts +0 -0
  97. /package/dist/{stories → src/stories}/experiences/Footer/footer.d.ts +0 -0
  98. /package/dist/{stories → src/stories}/experiences/Footer/footer.model.d.ts +0 -0
  99. /package/dist/{stories → src/stories}/experiences/Footer/footer.stories.d.ts +0 -0
  100. /package/dist/{stories → src/stories}/experiences/Header/header-brand/header.brand.d.ts +0 -0
  101. /package/dist/{stories → src/stories}/experiences/Header/header-button/header.button.d.ts +0 -0
  102. /package/dist/{stories → src/stories}/experiences/Header/header-lang/header.language.switcher.d.ts +0 -0
  103. /package/dist/{stories → src/stories}/experiences/Header/header-megamenu/header.megamenu.d.ts +0 -0
  104. /package/dist/{stories → src/stories}/experiences/Header/header-nav/header.nav.d.ts +0 -0
  105. /package/dist/{stories → src/stories}/experiences/Header/header-search/header.search.d.ts +0 -0
  106. /package/dist/{stories → src/stories}/experiences/Header/header.d.ts +0 -0
  107. /package/dist/{stories → src/stories}/experiences/Header/header.stories.d.ts +0 -0
  108. /package/dist/{stories → src/stories}/experiences/Header/scripts.d.ts +0 -0
  109. /package/dist/{stories → src/stories}/experiences/Header/toggle.d.ts +0 -0
  110. /package/dist/{stories → src/stories}/experiences/Header-twentytwentyfour/button.d.ts +0 -0
  111. /package/dist/{stories → src/stories}/experiences/Header-twentytwentyfour/header.d.ts +0 -0
  112. /package/dist/{stories → src/stories}/experiences/Header-twentytwentyfour/header.stories.d.ts +0 -0
  113. /package/dist/{stories → src/stories}/experiences/Header-twentytwentyfour/list.d.ts +0 -0
  114. /package/dist/{stories → src/stories}/experiences/Interactive-cards/InteractiveCards.d.ts +0 -0
  115. /package/dist/{stories → src/stories}/experiences/Interactive-cards/InteractiveCards.stories.d.ts +0 -0
  116. /package/dist/{stories → src/stories}/experiences/Interactive-cards/icons/ArrowRight.d.ts +0 -0
  117. /package/dist/{stories → src/stories}/experiences/Interactive-cards/icons/ChevronDown.d.ts +0 -0
  118. /package/dist/{stories → src/stories}/experiences/Interactive-cards/icons/Close.d.ts +0 -0
  119. /package/dist/{stories → src/stories}/experiences/Interactive-container/InteractiveContainer.d.ts +0 -0
  120. /package/dist/{stories → src/stories}/experiences/Interactive-container/InteractiveContainer.stories.d.ts +0 -0
  121. /package/dist/{stories → src/stories}/experiences/Interactive-container/utils/ScrollAnimator.d.ts +0 -0
  122. /package/dist/{stories → src/stories}/experiences/Interactive-group/InteractiveGroup.d.ts +0 -0
  123. /package/dist/{stories → src/stories}/experiences/Interactive-group/InteractiveGroup.stories.d.ts +0 -0
  124. /package/dist/{stories → src/stories}/experiences/Interactive-map/Map.d.ts +0 -0
  125. /package/dist/{stories → src/stories}/experiences/Interactive-map/Map.stories.d.ts +0 -0
  126. /package/dist/{stories → src/stories}/experiences/Menu/menu.d.ts +0 -0
  127. /package/dist/{stories → src/stories}/experiences/Menu/menu.model.d.ts +0 -0
  128. /package/dist/{stories → src/stories}/experiences/Menu/menu.stories.d.ts +0 -0
  129. /package/dist/{stories → src/stories}/experiences/Menu/scripts.d.ts +0 -0
  130. /package/dist/{stories → src/stories}/experiences/Numbers/card.d.ts +0 -0
  131. /package/dist/{stories → src/stories}/experiences/Numbers/numbers.d.ts +0 -0
  132. /package/dist/{stories → src/stories}/experiences/Numbers/numbers.stories.d.ts +0 -0
  133. /package/dist/{stories → src/stories}/experiences/QRFormJourney/FormFieldType.d.ts +0 -0
  134. /package/dist/{stories → src/stories}/experiences/QRFormJourney/Friendly-captcha/FriendlyCaptcha.d.ts +0 -0
  135. /package/dist/{stories → src/stories}/experiences/QRFormJourney/NetEaseCaptcha/NetEaseCaptcha.d.ts +0 -0
  136. /package/dist/{stories → src/stories}/experiences/QRFormJourney/Qr-form/Qr-form.d.ts +0 -0
  137. /package/dist/{stories → src/stories}/experiences/QRFormJourney/Qr-form/Qr-form.stories.d.ts +0 -0
  138. /package/dist/{stories → src/stories}/experiences/QRFormJourney/Qr-form-field/Qr-form-field.d.ts +0 -0
  139. /package/dist/{stories → src/stories}/experiences/Quote/quote.stories.d.ts +0 -0
  140. /package/dist/{stories → src/stories}/experiences/Tabs/tabs.d.ts +0 -0
  141. /package/dist/{stories → src/stories}/experiences/Tabs/tabs.scroll.d.ts +0 -0
  142. /package/dist/{stories → src/stories}/experiences/Tabs/tabs.stories.d.ts +0 -0
  143. /package/dist/{stories → src/stories}/experiences/Video-playlist/Video.playlist.d.ts +0 -0
  144. /package/dist/{stories → src/stories}/experiences/Video-playlist/Video.playlist.stories.d.ts +0 -0
  145. /package/dist/{stories → src/stories}/experiences/Video-playlist/video.playlist.dialog.d.ts +0 -0
  146. /package/dist/{stories → src/stories}/experiences/Video-playlist/video.playlist.html.d.ts +0 -0
  147. /package/dist/{stories → src/stories}/experiences/market-picker-prompt/Market.picker.prompt.d.ts +0 -0
  148. /package/dist/{stories → src/stories}/experiences/market-picker-prompt/Market.picker.prompt.stories.d.ts +0 -0
  149. /package/dist/{stories → src/stories}/structure/page/page.dialog.d.ts +0 -0
  150. /package/dist/{stories → src/stories}/structure/page/page.html.d.ts +0 -0
  151. /package/dist/{stories → src/stories}/templates/content.d.ts +0 -0
  152. /package/dist/{stories → src/stories}/templates/content.stories.d.ts +0 -0
  153. /package/dist/{stories → src/stories}/templates/product.d.ts +0 -0
  154. /package/dist/{stories → src/stories}/templates/product.stories.d.ts +0 -0
  155. /package/dist/{utils → src/utils}/components/anchor.links.d.ts +0 -0
  156. /package/dist/{utils → src/utils}/components/anchor.links.script.d.ts +0 -0
  157. /package/dist/{utils → src/utils}/components/swatch.d.ts +0 -0
  158. /package/dist/{utils → src/utils}/components/type.d.ts +0 -0
  159. /package/dist/{utils → src/utils}/content/content.demo.d.ts +0 -0
  160. /package/dist/{utils → src/utils}/content/content.model.d.ts +0 -0
  161. /package/dist/{utils → src/utils}/fontawesome/fac-edwardsicons.d.ts +0 -0
  162. /package/dist/{utils → src/utils}/helpers/formatFacetValue.d.ts +0 -0
  163. /package/dist/{utils → src/utils}/helpers/isMobile.d.ts +0 -0
package/README.md CHANGED
@@ -1,124 +1,124 @@
1
- # EdwardsVacuum Design System
2
-
3
- ## Overview
4
-
5
- The **EdwardsVacuum Design System** is a comprehensive design system built to streamline the development of consistent and reusable UI components for the EdwardsVacuum project. This project is built using Next.js, Storybook, and various supporting libraries and tools.
6
-
7
- ## Project Structure
8
-
9
- The project is organized with the following key scripts and dependencies:
10
-
11
- - **Next.js** for server-side rendering and building the design system.
12
- - **Storybook** for developing and showcasing UI components in isolation.
13
- - **FontAwesome** for incorporating scalable vector icons and social logos.
14
-
15
-
16
- ## Prerequisites
17
-
18
- Before running this project, ensure you have the following:
19
-
20
- 1. **Node.js** installed.
21
- 2. **Yarn** or **npm** as your package manager.
22
-
23
- ## Installation
24
-
25
- To get started, clone the repository and install the required dependencies:
26
-
27
- ```bash
28
- git clone <repository_url>
29
- cd edwardsvacuum-design-system
30
- yarn install
31
- ```
32
-
33
- ## Environment Setup
34
-
35
- This project requires an environment variable for FontAwesome to function correctly. The `FONTAWESOME_PACKAGE_TOKEN` is required for accessing FontAwesome Pro icons.
36
-
37
- ### Setting Up the Token
38
-
39
- You can obtain the `FONTAWESOME_PACKAGE_TOKEN` by contacting [bernard@asantemedia.co.uk](mailto:bernard@asantemedia.co.uk).
40
-
41
- Once you have the token, set it in your environment:
42
-
43
- 1. **Locally**:
44
- Add it to your terminal session:
45
- ```bash
46
- export FONTAWESOME_PACKAGE_TOKEN=your_token_here
47
- ```
48
-
49
- Replace `your_token_here` with the actual token.
50
-
51
- ## Scripts
52
-
53
- The following scripts are available in the project:
54
-
55
- - **Lint**:
56
- ```bash
57
- npm run lint
58
- ```
59
- Runs ESLint to analyze the code for potential errors.
60
-
61
- - **Storybook**:
62
- ```bash
63
- npm run storybook
64
- ```
65
- Starts the Storybook development server.
66
-
67
- - **Build Storybook**:
68
- ```bash
69
- npm run build-storybook
70
- ```
71
- Builds the Storybook static files.
72
-
73
- - **AEM Integration**:
74
- - **Build AEM Dialogs**:
75
- ```bash
76
- npm run build-aem-dialogs
77
- ```
78
- Generates AEM component dialogs.
79
-
80
- - **Copy Static AEM Files**:
81
- ```bash
82
- npm run copy-static-aem-files
83
- ```
84
- Copies the necessary static files for AEM integration.
85
-
86
- - **Clean AEM**:
87
- ```bash
88
- npm run aem-clean
89
- ```
90
- Cleans the target location for AEM deployment.
91
-
92
- - **Install AEM**:
93
- ```bash
94
- npm run aem-install
95
- ```
96
- Builds and copies AEM dialogs and static files.
97
-
98
- - **Clean & Install AEM**:
99
- ```bash
100
- npm run aem-clean-install
101
- ```
102
- Cleans and installs AEM files in one command.
103
-
104
- - **Chromatic**:
105
- ```bash
106
- npm run chromatic
107
- ```
108
- Publishes Storybook to Chromatic for visual regression testing.
109
-
110
- ## CI/CD Implementation
111
-
112
- The project is set up with a CI/CD pipeline that triggers deployments only on merges to the `development` branch. This ensures that changes are properly reviewed and tested before being deployed to production. If new dependencies are added, the project will require a manual deployment to update the dependencies in the develoment environment.
113
-
114
- ## License
115
-
116
- This project is currently **UNLICENSED** and is intended for internal use only. Redistribution or use outside the intended context is prohibited.
117
-
118
- ## Contribution
119
-
120
- Please follow the project's contribution guidelines when contributing to this repository. Ensure all changes are made in feature branches and are merged into the `development` branch via pull requests.
121
-
122
- ## Contact
123
-
1
+ # EdwardsVacuum Design System
2
+
3
+ ## Overview
4
+
5
+ The **EdwardsVacuum Design System** is a comprehensive design system built to streamline the development of consistent and reusable UI components for the EdwardsVacuum project. This project is built using Next.js, Storybook, and various supporting libraries and tools.
6
+
7
+ ## Project Structure
8
+
9
+ The project is organized with the following key scripts and dependencies:
10
+
11
+ - **Next.js** for server-side rendering and building the design system.
12
+ - **Storybook** for developing and showcasing UI components in isolation.
13
+ - **FontAwesome** for incorporating scalable vector icons and social logos.
14
+
15
+
16
+ ## Prerequisites
17
+
18
+ Before running this project, ensure you have the following:
19
+
20
+ 1. **Node.js** installed.
21
+ 2. **Yarn** or **npm** as your package manager.
22
+
23
+ ## Installation
24
+
25
+ To get started, clone the repository and install the required dependencies:
26
+
27
+ ```bash
28
+ git clone <repository_url>
29
+ cd edwardsvacuum-design-system
30
+ yarn install
31
+ ```
32
+
33
+ ## Environment Setup
34
+
35
+ This project requires an environment variable for FontAwesome to function correctly. The `FONTAWESOME_PACKAGE_TOKEN` is required for accessing FontAwesome Pro icons.
36
+
37
+ ### Setting Up the Token
38
+
39
+ You can obtain the `FONTAWESOME_PACKAGE_TOKEN` by contacting [bernard@asantemedia.co.uk](mailto:bernard@asantemedia.co.uk).
40
+
41
+ Once you have the token, set it in your environment:
42
+
43
+ 1. **Locally**:
44
+ Add it to your terminal session:
45
+ ```bash
46
+ export FONTAWESOME_PACKAGE_TOKEN=your_token_here
47
+ ```
48
+
49
+ Replace `your_token_here` with the actual token.
50
+
51
+ ## Scripts
52
+
53
+ The following scripts are available in the project:
54
+
55
+ - **Lint**:
56
+ ```bash
57
+ npm run lint
58
+ ```
59
+ Runs ESLint to analyze the code for potential errors.
60
+
61
+ - **Storybook**:
62
+ ```bash
63
+ npm run storybook
64
+ ```
65
+ Starts the Storybook development server.
66
+
67
+ - **Build Storybook**:
68
+ ```bash
69
+ npm run build-storybook
70
+ ```
71
+ Builds the Storybook static files.
72
+
73
+ - **AEM Integration**:
74
+ - **Build AEM Dialogs**:
75
+ ```bash
76
+ npm run build-aem-dialogs
77
+ ```
78
+ Generates AEM component dialogs.
79
+
80
+ - **Copy Static AEM Files**:
81
+ ```bash
82
+ npm run copy-static-aem-files
83
+ ```
84
+ Copies the necessary static files for AEM integration.
85
+
86
+ - **Clean AEM**:
87
+ ```bash
88
+ npm run aem-clean
89
+ ```
90
+ Cleans the target location for AEM deployment.
91
+
92
+ - **Install AEM**:
93
+ ```bash
94
+ npm run aem-install
95
+ ```
96
+ Builds and copies AEM dialogs and static files.
97
+
98
+ - **Clean & Install AEM**:
99
+ ```bash
100
+ npm run aem-clean-install
101
+ ```
102
+ Cleans and installs AEM files in one command.
103
+
104
+ - **Chromatic**:
105
+ ```bash
106
+ npm run chromatic
107
+ ```
108
+ Publishes Storybook to Chromatic for visual regression testing.
109
+
110
+ ## CI/CD Implementation
111
+
112
+ The project is set up with a CI/CD pipeline that triggers deployments only on merges to the `development` branch. This ensures that changes are properly reviewed and tested before being deployed to production. If new dependencies are added, the project will require a manual deployment to update the dependencies in the develoment environment.
113
+
114
+ ## License
115
+
116
+ This project is currently **UNLICENSED** and is intended for internal use only. Redistribution or use outside the intended context is prohibited.
117
+
118
+ ## Contribution
119
+
120
+ Please follow the project's contribution guidelines when contributing to this repository. Ensure all changes are made in feature branches and are merged into the `development` branch via pull requests.
121
+
122
+ ## Contact
123
+
124
124
  For any issues or inquiries related to this project, please contact [bernard@asantemedia.co.uk](mailto:bernard@asantemedia.co.uk).
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ export interface PageProps {
3
+ params?: any;
4
+ searchParams?: any;
5
+ }
6
+ export interface LayoutProps {
7
+ children?: React.ReactNode;
8
+ params?: any;
9
+ }
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ export interface PageProps {
3
+ params?: any;
4
+ searchParams?: any;
5
+ }
6
+ export interface LayoutProps {
7
+ children?: React.ReactNode;
8
+ params?: any;
9
+ }
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ export interface PageProps {
3
+ params?: any;
4
+ searchParams?: any;
5
+ }
6
+ export interface LayoutProps {
7
+ children?: React.ReactNode;
8
+ params?: any;
9
+ }
File without changes
File without changes
File without changes
package/dist/index.css CHANGED
@@ -344,15 +344,13 @@
344
344
  font-size: clamp(1.5rem, 2vw, 28px);
345
345
  font-weight: 100;
346
346
  margin-bottom: 0.5rem;
347
+ color: #2d363a;
347
348
  }
348
349
  @media (min-width: 768px) {
349
350
  .card-module__cmp-card--type-product_details__header__title___4KSqX {
350
351
  max-width: 325px;
351
352
  }
352
353
  }
353
- .card-module__cmp-card--type-product_details__header__title___4KSqX {
354
- color: #2d363a;
355
- }
356
354
  .card-module__cmp-card--type-product_details__header__product-code___zf7yq {
357
355
  font-size: 0.875rem;
358
356
  color: #666;
@@ -344,15 +344,13 @@
344
344
  font-size: clamp(1.5rem, 2vw, 28px);
345
345
  font-weight: 100;
346
346
  margin-bottom: 0.5rem;
347
+ color: #2d363a;
347
348
  }
348
349
  @media (min-width: 768px) {
349
350
  .card-module__cmp-card--type-product_details__header__title___4KSqX {
350
351
  max-width: 325px;
351
352
  }
352
353
  }
353
- .card-module__cmp-card--type-product_details__header__title___4KSqX {
354
- color: #2d363a;
355
- }
356
354
  .card-module__cmp-card--type-product_details__header__product-code___zf7yq {
357
355
  font-size: 0.875rem;
358
356
  color: #666;
package/dist/index.esm.js CHANGED
@@ -453,7 +453,6 @@ var cardSizeMapping = function (size) {
453
453
  };
454
454
  // Helper function to check if image is a placeholder (from ACAS-14821)
455
455
  var isPlaceholderImg = function (imageUrl) {
456
- console.log(imageUrl);
457
456
  return !!imageUrl && imageUrl.indexOf(PLACEHOLDER_INDICATOR) > -1;
458
457
  };
459
458
  var Card = function (_a) {
@@ -587,12 +586,10 @@ var ProductDetailsCard = function (_a) {
587
586
  var getClassName = function (name) {
588
587
  return usePlainClasses ? name : getStyle$1(name);
589
588
  };
590
- var hideSparesBool = hidespares === "true";
589
+ // Handle both boolean and string values from AEM
590
+ var hideSparesBool = hidespares === true || hidespares === "true";
591
591
  // Use custom ProductCard if provided, otherwise use default
592
592
  var SpareCard = ProductCardComponent || ProductCard;
593
- // transfomr hidespares to a boolean
594
- console.log("hidespares", hidespares);
595
- console.log("hideSparesBool", hideSparesBool);
596
593
  // Memoize spares rendering with a limit to prevent freeze
597
594
  var renderSpares = function () {
598
595
  if (!(hit === null || hit === void 0 ? void 0 : hit.spares) || !Array.isArray(hit.spares) || hit.spares.length === 0) return null;
@@ -1130,6 +1127,11 @@ var defaultQrFormTranslations = {
1130
1127
  label_tellUsMore: "Tell us more",
1131
1128
  label_tellUsMoreOptional: "Tell us more about your issue (optional)",
1132
1129
  section_scannedProductDetails: "Scanned Product Details",
1130
+ label_serialNumber: "Serial number",
1131
+ label_productNumber: "Product number",
1132
+ label_softwareVersion: "Software version",
1133
+ label_runningTime: "Running time",
1134
+ label_productHierarchy: "Product hierarchy",
1133
1135
  label_title: "Title",
1134
1136
  label_lastName: "Last Name",
1135
1137
  label_firstName: "First Name",
@@ -1149,7 +1151,6 @@ var defaultQrFormTranslations = {
1149
1151
 
1150
1152
  var FriendlyCaptcha = function (props) {
1151
1153
  useEffect(function () {
1152
- console.log(props.element, "element");
1153
1154
  if (props.element) {
1154
1155
  var sdk = new WidgetInstance(props.element, {
1155
1156
  startMode: "auto",
@@ -1505,7 +1506,7 @@ var QrForm = function (props) {
1505
1506
  console.log("Form submitted with values:", formValues);
1506
1507
  }
1507
1508
  } else {
1508
- console.log("Form has errors on the current page, cannot submit.");
1509
+ console.error("Form has errors on the current page, cannot submit.");
1509
1510
  }
1510
1511
  return [2 /*return*/];
1511
1512
  });
@@ -1526,7 +1527,7 @@ var QrForm = function (props) {
1526
1527
  setShowErrors(false); // Hide errors when successfully navigated to a new page
1527
1528
  setErrors({}); // Clear errors from previous page as well
1528
1529
  } else {
1529
- console.log("Validation failed on current page, cannot navigate.");
1530
+ console.error("Validation failed on current page, cannot navigate.");
1530
1531
  }
1531
1532
  }
1532
1533
  }