@total_onion/onion-library 2.0.144 → 2.0.146

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 (133) hide show
  1. package/assembleAssetList.js +10 -3
  2. package/build-library.js +4 -0
  3. package/components/block-back-to-top-button-v3/back-to-top-button-v3.scss +3 -3
  4. package/components/block-carousel-multi-layout-v3/carousel-multi-layout-v3.scss +1 -1
  5. package/components/block-cocktail-recipe-v3/cocktail-recipe-v3.scss +5 -5
  6. package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3.scss +1 -0
  7. package/components/component-text-editor-settings-v3/group_687a4e2334e37.json +241 -196
  8. package/createDynamicBlockScss-v3.js +8 -13
  9. package/esbuild.mjs +15 -1
  10. package/package.json +1 -1
  11. package/public/assetList.mjs +2 -36
  12. package/public/block-accent-image-v3/accent-image-v3.js +7 -0
  13. package/public/block-accordion-v3/accordion-v3.js +117 -0
  14. package/public/block-back-to-top-button-v3/back-to-top-button-v3.css +62 -0
  15. package/public/block-back-to-top-button-v3/back-to-top-button-v3.js +12 -0
  16. package/public/block-betterreviews-display-v3/betterreviews-display-v3.js +7 -0
  17. package/public/block-block-interactions-v3/block-interactions-v3.js +44 -0
  18. package/public/block-carousel-multi-layout-v3/carousel-multi-layout-v3.js +169 -0
  19. package/public/block-cocktail-recipe-v3/cocktail-recipe-v3.css +317 -0
  20. package/public/block-cocktail-recipe-v3/cocktail-recipe-v3.js +93 -0
  21. package/public/block-cover-link-v3/cover-link-v3.js +7 -0
  22. package/public/block-divider-v3/divider-v3.js +7 -0
  23. package/public/block-featured-image-gallery-v3/featured-image-gallery-v3.js +44 -0
  24. package/public/block-form-selection-v3/form-selection-v3.js +61 -0
  25. package/public/block-gradient-layer-v3/gradient-layer-v3.js +7 -0
  26. package/public/block-group-container-v3/group-container-v3.js +7 -0
  27. package/public/block-lottie-content-v3/lottie-content-v3.js +25 -0
  28. package/public/block-market-selector-v3/market-selector-v3.js +7 -0
  29. package/public/block-modal-form-v3/modal-form-v3.js +44 -0
  30. package/public/block-nav-menu-container-v3/nav-menu-container-v3.js +7 -0
  31. package/public/block-post-info-v3/post-info-v3.js +7 -0
  32. package/public/block-post-type-filter-grid-v3/post-type-filter-grid-v3.css +1 -0
  33. package/public/block-post-type-filter-grid-v3/post-type-filter-grid-v3.js +13 -0
  34. package/public/block-product-info-v3/product-info-v3.js +7 -0
  35. package/public/block-responsive-table-v3/responsive-table-v3.js +7 -0
  36. package/public/block-scrolling-banner-v3/scrolling-banner-v3.js +106 -0
  37. package/public/block-section-separator-v3/section-separator-v3.js +7 -0
  38. package/public/block-single-column-container-v3/single-column-container-v3.js +7 -0
  39. package/public/block-single-responsive-image-v3/single-responsive-image-v3.js +7 -0
  40. package/public/block-site-copyright-notice-v3/site-copyright-notice-v3.js +7 -0
  41. package/public/block-site-logo-container-v3/site-logo-container-v3.js +7 -0
  42. package/public/block-site-title-and-tagline-v3/site-title-and-tagline-v3.js +7 -0
  43. package/public/block-smash-balloon-social-media-v3/smash-balloon-social-media-v3.js +8 -0
  44. package/public/block-social-networks-v3/social-networks-v3.js +7 -0
  45. package/public/block-spacer-v3/spacer-v3.js +2 -0
  46. package/public/block-spotify-embed-v3/spotify-embed-v3.js +7 -0
  47. package/public/block-standard-content-v3/standard-content-v3.js +7 -0
  48. package/public/block-sticky-buy-cta-v3/sticky-buy-cta-v3.js +7 -0
  49. package/public/block-sub-group-container-v3/sub-group-container-v3.js +2 -0
  50. package/public/block-video-content-v3/video-content-v3.js +11 -0
  51. package/public/components/block-accent-image-v3/accent-image-v3.css +0 -0
  52. package/public/components/block-accent-image-v3/accent-image-v3.js +7 -0
  53. package/public/components/block-accordion-v3/accordion-v3.css +474 -0
  54. package/public/components/block-accordion-v3/accordion-v3.js +117 -0
  55. package/public/components/block-back-to-top-button-v3/back-to-top-button-v3.css +62 -0
  56. package/public/components/block-back-to-top-button-v3/back-to-top-button-v3.js +12 -0
  57. package/public/components/block-betterreviews-display-v3/betterreviews-display-v3.css +96 -0
  58. package/public/components/block-betterreviews-display-v3/betterreviews-display-v3.js +7 -0
  59. package/public/components/block-block-interactions-v3/block-interactions-v3.css +34 -0
  60. package/public/components/block-block-interactions-v3/block-interactions-v3.js +44 -0
  61. package/public/components/block-carousel-multi-layout-v3/carousel-multi-layout-v3.css +928 -0
  62. package/public/components/block-carousel-multi-layout-v3/carousel-multi-layout-v3.js +169 -0
  63. package/public/components/block-cocktail-recipe-v3/cocktail-recipe-v3.css +317 -0
  64. package/public/components/block-cocktail-recipe-v3/cocktail-recipe-v3.js +93 -0
  65. package/public/components/block-cover-link-v3/cover-link-v3.css +0 -0
  66. package/public/components/block-cover-link-v3/cover-link-v3.js +7 -0
  67. package/public/components/block-divider-v3/divider-v3.css +74 -0
  68. package/public/components/block-divider-v3/divider-v3.js +7 -0
  69. package/public/components/block-featured-image-gallery-v3/featured-image-gallery-v3.css +102 -0
  70. package/public/components/block-featured-image-gallery-v3/featured-image-gallery-v3.js +44 -0
  71. package/public/components/block-form-selection-v3/form-selection-v3.css +32 -0
  72. package/public/components/block-form-selection-v3/form-selection-v3.js +61 -0
  73. package/public/components/block-gradient-layer-v3/gradient-layer-v3.css +52 -0
  74. package/public/components/block-gradient-layer-v3/gradient-layer-v3.js +7 -0
  75. package/public/components/block-group-container-v3/group-container-v3.css +323 -0
  76. package/public/components/block-group-container-v3/group-container-v3.js +7 -0
  77. package/public/components/block-lottie-content-v3/lottie-content-v3.css +0 -0
  78. package/public/components/block-lottie-content-v3/lottie-content-v3.js +25 -0
  79. package/public/components/block-market-selector-v3/market-selector-v3.css +139 -0
  80. package/public/components/block-market-selector-v3/market-selector-v3.js +7 -0
  81. package/public/components/block-modal-form-v3/modal-form-v3.css +0 -0
  82. package/public/components/block-modal-form-v3/modal-form-v3.js +44 -0
  83. package/public/components/block-modal-form-v3/modal-form-v3.scss.css +0 -0
  84. package/public/components/block-nav-menu-container-v3/nav-menu-container-v3.css +3 -0
  85. package/public/components/block-nav-menu-container-v3/nav-menu-container-v3.js +7 -0
  86. package/public/components/block-post-info-v3/post-info-v3.css +1310 -0
  87. package/public/components/block-post-info-v3/post-info-v3.js +7 -0
  88. package/public/components/block-post-info-v3/post-info-v3.scss.css +1310 -0
  89. package/public/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3.css +859 -0
  90. package/public/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3.js +13 -0
  91. package/public/components/block-product-info-v3/product-info-v3.css +993 -0
  92. package/public/components/block-product-info-v3/product-info-v3.js +7 -0
  93. package/public/components/block-product-info-v3/product-info-v3.scss.css +993 -0
  94. package/public/components/block-responsive-table-v3/responsive-table-v3.css +48 -0
  95. package/public/components/block-responsive-table-v3/responsive-table-v3.js +7 -0
  96. package/public/components/block-scrolling-banner-v3/scrolling-banner-v3.css +85 -0
  97. package/public/components/block-scrolling-banner-v3/scrolling-banner-v3.js +106 -0
  98. package/public/components/block-section-separator-v3/section-separator-v3.css +43 -0
  99. package/public/components/block-section-separator-v3/section-separator-v3.js +7 -0
  100. package/public/components/block-single-column-container-v3/single-column-container-v3.css +14 -0
  101. package/public/components/block-single-column-container-v3/single-column-container-v3.js +7 -0
  102. package/public/components/block-single-responsive-image-v3/single-responsive-image-v3.css +60 -0
  103. package/public/components/block-single-responsive-image-v3/single-responsive-image-v3.js +7 -0
  104. package/public/components/block-site-copyright-notice-v3/site-copyright-notice-v3.css +0 -0
  105. package/public/components/block-site-copyright-notice-v3/site-copyright-notice-v3.js +7 -0
  106. package/public/components/block-site-logo-container-v3/site-logo-container-v3.css +18 -0
  107. package/public/components/block-site-logo-container-v3/site-logo-container-v3.js +7 -0
  108. package/public/components/block-site-title-and-tagline-v3/site-title-and-tagline-v3.css +14 -0
  109. package/public/components/block-site-title-and-tagline-v3/site-title-and-tagline-v3.js +7 -0
  110. package/public/components/block-smash-balloon-social-media-v3/smash-balloon-social-media-v3.css +25 -0
  111. package/public/components/block-smash-balloon-social-media-v3/smash-balloon-social-media-v3.js +8 -0
  112. package/public/components/block-social-networks-v3/social-networks-v3.css +74 -0
  113. package/public/components/block-social-networks-v3/social-networks-v3.js +7 -0
  114. package/public/components/block-spacer-v3/spacer-v3.css +16 -0
  115. package/public/components/block-spacer-v3/spacer-v3.js +2 -0
  116. package/public/components/block-spacer-v3/spacer-v3.scss.css +16 -0
  117. package/public/components/block-spotify-embed-v3/spotify-embed-v3.css +7 -0
  118. package/public/components/block-spotify-embed-v3/spotify-embed-v3.js +7 -0
  119. package/public/components/block-standard-content-v3/standard-content-v3.css +529 -0
  120. package/public/components/block-standard-content-v3/standard-content-v3.js +7 -0
  121. package/public/components/block-sticky-buy-cta-v3/sticky-buy-cta-v3.css +0 -0
  122. package/public/components/block-sticky-buy-cta-v3/sticky-buy-cta-v3.js +7 -0
  123. package/public/components/block-sub-group-container-v3/sub-group-container-v3.css +308 -0
  124. package/public/components/block-sub-group-container-v3/sub-group-container-v3.js +2 -0
  125. package/public/components/block-video-content-v3/video-content-v3.css +105 -0
  126. package/public/components/block-video-content-v3/video-content-v3.js +11 -0
  127. package/public/dynamicBlockScss-v3.css +7140 -0
  128. package/public/dynamicBlockScss-v3.scss +36 -28
  129. package/public/jsAssets.mjs +3 -36
  130. package/public/publicBundle.css +7140 -0
  131. package/public/publicBundle.scss +7 -0
  132. package/public/publicbundlecss.css +0 -3
  133. package/public/publicbundlecss.css.map +0 -1
@@ -0,0 +1,317 @@
1
+ @charset "UTF-8";
2
+ .cocktail-recipe-v3 {
3
+ pointer-events: all;
4
+ }
5
+ .cocktail-recipe-v3__ingredients-container {
6
+ display: flex;
7
+ flex-direction: column;
8
+ gap: calc(20 / var(--design-reference) * var(--screen-width));
9
+ padding-bottom: calc(50 / var(--design-reference) * var(--screen-width));
10
+ }
11
+ .cocktail-recipe-v3__ingredients-container .ingredients-title {
12
+ padding-top: calc(10 / var(--design-reference) * var(--screen-width));
13
+ padding-bottom: calc(10 / var(--design-reference) * var(--screen-width));
14
+ font-family: var(--primary-font-family);
15
+ font-size: calc(80 / var(--design-reference) * var(--font-reference) * var(--font-size-multiplier));
16
+ font-weight: 500;
17
+ text-transform: uppercase;
18
+ text-box-edge: cap alphabetic;
19
+ text-box-trim: trim-both;
20
+ }
21
+ @media screen and (min-width: 768px) {
22
+ .cocktail-recipe-v3__ingredients-container .ingredients-title {
23
+ font-size: calc(160 / var(--design-reference) * var(--font-reference) * var(--font-size-multiplier));
24
+ }
25
+ }
26
+ .cocktail-recipe-v3__servings {
27
+ display: flex;
28
+ justify-content: space-between;
29
+ align-items: center;
30
+ padding-top: calc(15 / var(--design-reference) * var(--screen-width));
31
+ padding-bottom: calc(15 / var(--design-reference) * var(--screen-width));
32
+ border-bottom: 1px solid rgba(250, 248, 236, 0.3019607843);
33
+ }
34
+ .cocktail-recipe-v3__servings .servings-title {
35
+ font-family: var(--secondary-font-family);
36
+ font-size: calc(26 / var(--design-reference) * var(--font-reference) * var(--font-size-multiplier));
37
+ font-weight: 500;
38
+ }
39
+ .cocktail-recipe-v3__servings .servings-control-wrapper {
40
+ display: flex;
41
+ align-items: center;
42
+ gap: calc(15 / var(--design-reference) * var(--screen-width));
43
+ }
44
+ .cocktail-recipe-v3__servings .servings-control-wrapper .dec-btn-wrapper {
45
+ width: 40px;
46
+ height: 40px;
47
+ border: 1px solid #faf8ec;
48
+ overflow: hidden;
49
+ }
50
+ .cocktail-recipe-v3__servings .servings-control-wrapper .dec-btn-wrapper .servings-dec-btn {
51
+ cursor: pointer;
52
+ background-color: #0054ff;
53
+ color: #faf8ec;
54
+ font-size: 28px;
55
+ padding-bottom: 4px;
56
+ width: 100%;
57
+ height: 100%;
58
+ border: medium none currentcolor;
59
+ border: initial;
60
+ transform: translateX(0);
61
+ transition: transform 0.3s ease;
62
+ }
63
+ .cocktail-recipe-v3__servings .servings-control-wrapper .dec-btn-wrapper .servings-dec-btn::after {
64
+ content: "\2212";
65
+ color: #0054ff;
66
+ padding-top: 4px;
67
+ width: 38px;
68
+ height: 38px;
69
+ position: absolute;
70
+ top: 0;
71
+ right: -38px;
72
+ background-color: #faf8ec;
73
+ }
74
+ .cocktail-recipe-v3__servings .servings-control-wrapper .dec-btn-wrapper:hover .servings-dec-btn {
75
+ transform: translateX(-100%);
76
+ }
77
+ .cocktail-recipe-v3__servings .servings-control-wrapper .dec-btn-wrapper.inactive {
78
+ opacity: 0.4;
79
+ pointer-events: none;
80
+ }
81
+ .cocktail-recipe-v3__servings .servings-control-wrapper .servings-current {
82
+ font-family: var(--secondary-font-family);
83
+ font-size: calc(26 / var(--design-reference) * var(--font-reference) * var(--font-size-multiplier));
84
+ font-weight: 500;
85
+ display: inline-block;
86
+ width: calc(60 / var(--design-reference) * var(--screen-width));
87
+ text-align: center;
88
+ }
89
+ @media screen and (min-width: 768px) {
90
+ .cocktail-recipe-v3__servings .servings-control-wrapper .servings-current {
91
+ font-size: calc(30 / var(--design-reference) * var(--font-reference) * var(--font-size-multiplier));
92
+ }
93
+ }
94
+ .cocktail-recipe-v3__servings .servings-control-wrapper .inc-btn-wrapper {
95
+ cursor: pointer;
96
+ width: 40px;
97
+ height: 40px;
98
+ border: 1px solid #faf8ec;
99
+ overflow: hidden;
100
+ }
101
+ .cocktail-recipe-v3__servings .servings-control-wrapper .inc-btn-wrapper .servings-inc-btn {
102
+ cursor: pointer;
103
+ color: #0054ff;
104
+ font-size: 30px;
105
+ background-color: #faf8ec;
106
+ width: 100%;
107
+ height: 100%;
108
+ border: medium none currentcolor;
109
+ border: initial;
110
+ transform: translateX(-100%);
111
+ transition: transform 0.3s ease;
112
+ }
113
+ .cocktail-recipe-v3__servings .servings-control-wrapper .inc-btn-wrapper .servings-inc-btn::after {
114
+ content: "+";
115
+ padding-top: 2px;
116
+ color: #faf8ec;
117
+ width: 38px;
118
+ height: 38px;
119
+ position: absolute;
120
+ top: 0;
121
+ right: -38px;
122
+ background-color: #0054ff;
123
+ }
124
+ .cocktail-recipe-v3__servings .servings-control-wrapper .inc-btn-wrapper:hover .servings-inc-btn {
125
+ transform: translateX(0);
126
+ }
127
+ .cocktail-recipe-v3__unit-toggle {
128
+ display: flex;
129
+ justify-content: space-between;
130
+ align-items: center;
131
+ padding-top: calc(10 / var(--design-reference) * var(--screen-width));
132
+ }
133
+ .cocktail-recipe-v3__unit-toggle .unit-text {
134
+ font-family: var(--tertiary-font-family);
135
+ font-size: calc(18 / var(--design-reference) * var(--font-reference) * var(--font-size-multiplier));
136
+ font-weight: 700;
137
+ }
138
+ @media screen and (min-width: 768px) {
139
+ .cocktail-recipe-v3__unit-toggle .unit-text {
140
+ font-size: calc(22 / var(--design-reference) * var(--font-reference) * var(--font-size-multiplier));
141
+ }
142
+ }
143
+ .cocktail-recipe-v3__unit-toggle .unit-toggle-wrapper {
144
+ display: flex;
145
+ align-items: center;
146
+ gap: calc(20 / var(--design-reference) * var(--screen-width));
147
+ }
148
+ .cocktail-recipe-v3__unit-toggle .unit-toggle-wrapper .checkbox-wrapper input[type=checkbox] {
149
+ display: none;
150
+ visibility: hidden;
151
+ }
152
+ .cocktail-recipe-v3__unit-toggle .unit-toggle-wrapper .checkbox-wrapper .block {
153
+ position: relative;
154
+ clear: both;
155
+ float: left;
156
+ }
157
+ .cocktail-recipe-v3__unit-toggle .unit-toggle-wrapper .checkbox-wrapper label {
158
+ width: 64px;
159
+ height: 36px;
160
+ box-sizing: border-box;
161
+ border: 1px solid;
162
+ float: left;
163
+ border-radius: 100px;
164
+ position: relative;
165
+ cursor: pointer;
166
+ transition: 0.3s ease;
167
+ color: #faf8ec;
168
+ }
169
+ .cocktail-recipe-v3__unit-toggle .unit-toggle-wrapper .checkbox-wrapper input[type=checkbox]:checked + label:before {
170
+ left: 31px;
171
+ }
172
+ .cocktail-recipe-v3__unit-toggle .unit-toggle-wrapper .checkbox-wrapper label:before {
173
+ transition: 0.3s ease;
174
+ content: "";
175
+ width: 28px;
176
+ height: 28px;
177
+ position: absolute;
178
+ background: #faf8ec;
179
+ left: 3px;
180
+ top: 3px;
181
+ box-sizing: border-box;
182
+ color: black;
183
+ border-radius: 50%;
184
+ }
185
+ .cocktail-recipe-v3 .ingredients-wrapper {
186
+ display: flex;
187
+ align-items: center;
188
+ gap: calc(15 / var(--design-reference) * var(--screen-width));
189
+ }
190
+ @media screen and (min-width: 768px) {
191
+ .cocktail-recipe-v3 .ingredients-wrapper {
192
+ gap: calc(30 / var(--design-reference) * var(--screen-width));
193
+ }
194
+ }
195
+ .cocktail-recipe-v3 .ingredients-wrapper .ingredient-image {
196
+ max-width: calc(50 / var(--design-reference) * var(--screen-width));
197
+ aspect-ratio: 1;
198
+ -o-object-fit: cover;
199
+ object-fit: cover;
200
+ }
201
+ @media screen and (min-width: 768px) {
202
+ .cocktail-recipe-v3 .ingredients-wrapper .ingredient-image {
203
+ max-width: calc(100 / var(--design-reference) * var(--screen-width));
204
+ }
205
+ }
206
+ .cocktail-recipe-v3 .ingredients-wrapper .ingredient-text {
207
+ font-size: calc(18 / var(--design-reference) * var(--font-reference) * var(--font-size-multiplier));
208
+ font-family: var(--tertiary-font-family);
209
+ font-weight: 400;
210
+ }
211
+ @media screen and (min-width: 768px) {
212
+ .cocktail-recipe-v3 .ingredients-wrapper .ingredient-text {
213
+ font-size: calc(22 / var(--design-reference) * var(--font-reference) * var(--font-size-multiplier));
214
+ }
215
+ }
216
+ .cocktail-recipe-v3__equipment-container {
217
+ display: flex;
218
+ flex-direction: column;
219
+ gap: calc(20 / var(--design-reference) * var(--screen-width));
220
+ padding-bottom: calc(100 / var(--design-reference) * var(--screen-width));
221
+ }
222
+ @media screen and (min-width: 768px) {
223
+ .cocktail-recipe-v3__equipment-container {
224
+ padding-bottom: calc(180 / var(--design-reference) * var(--screen-width));
225
+ }
226
+ }
227
+ .cocktail-recipe-v3__equipment-container .equipments-title {
228
+ font-family: var(--secondary-font-family);
229
+ font-size: calc(26 / var(--design-reference) * var(--font-reference) * var(--font-size-multiplier));
230
+ font-weight: 500;
231
+ padding-top: calc(20 / var(--design-reference) * var(--screen-width));
232
+ padding-bottom: calc(20 / var(--design-reference) * var(--screen-width));
233
+ border-bottom: 1px solid rgba(250, 248, 236, 0.3019607843);
234
+ }
235
+ @media screen and (min-width: 768px) {
236
+ .cocktail-recipe-v3__equipment-container .equipments-title {
237
+ padding-top: calc(10 / var(--design-reference) * var(--screen-width));
238
+ padding-bottom: calc(10 / var(--design-reference) * var(--screen-width));
239
+ }
240
+ }
241
+ .cocktail-recipe-v3__equipment-container .equipments-wrapper {
242
+ display: flex;
243
+ align-items: center;
244
+ gap: calc(15 / var(--design-reference) * var(--screen-width));
245
+ }
246
+ @media screen and (min-width: 768px) {
247
+ .cocktail-recipe-v3__equipment-container .equipments-wrapper {
248
+ gap: calc(30 / var(--design-reference) * var(--screen-width));
249
+ }
250
+ }
251
+ .cocktail-recipe-v3__equipment-container .equipments-wrapper .equipment-image {
252
+ max-width: calc(50 / var(--design-reference) * var(--screen-width));
253
+ aspect-ratio: 1;
254
+ -o-object-fit: cover;
255
+ object-fit: cover;
256
+ }
257
+ @media screen and (min-width: 768px) {
258
+ .cocktail-recipe-v3__equipment-container .equipments-wrapper .equipment-image {
259
+ max-width: calc(100 / var(--design-reference) * var(--screen-width));
260
+ }
261
+ }
262
+ .cocktail-recipe-v3__equipment-container .equipments-wrapper .equipment-text {
263
+ font-family: var(--tertiary-font-family);
264
+ font-size: calc(18 / var(--design-reference) * var(--font-reference) * var(--font-size-multiplier));
265
+ font-weight: 400;
266
+ }
267
+ @media screen and (min-width: 768px) {
268
+ .cocktail-recipe-v3__equipment-container .equipments-wrapper .equipment-text {
269
+ font-size: calc(22 / var(--design-reference) * var(--font-reference) * var(--font-size-multiplier));
270
+ }
271
+ }
272
+ .cocktail-recipe-v3__instructions-container .instructions-title {
273
+ font-family: var(--primary-font-family);
274
+ font-size: calc(70 / var(--design-reference) * var(--font-reference) * var(--font-size-multiplier));
275
+ font-weight: 500;
276
+ text-transform: uppercase;
277
+ padding-top: calc(10 / var(--design-reference) * var(--screen-width));
278
+ padding-bottom: calc(10 / var(--design-reference) * var(--screen-width));
279
+ text-box-edge: cap alphabetic;
280
+ text-box-trim: trim-both;
281
+ }
282
+ @media screen and (min-width: 768px) {
283
+ .cocktail-recipe-v3__instructions-container .instructions-title {
284
+ padding-top: calc(40 / var(--design-reference) * var(--screen-width));
285
+ padding-bottom: calc(40 / var(--design-reference) * var(--screen-width));
286
+ font-size: calc(160 / var(--design-reference) * var(--font-reference) * var(--font-size-multiplier));
287
+ }
288
+ }
289
+ .cocktail-recipe-v3__instructions-container .instructions-wrapper {
290
+ display: flex;
291
+ align-items: flex-start;
292
+ gap: calc(20 / var(--design-reference) * var(--screen-width));
293
+ padding-top: calc(30 / var(--design-reference) * var(--screen-width));
294
+ padding-bottom: calc(30 / var(--design-reference) * var(--screen-width));
295
+ border-top: 1px solid rgba(250, 248, 236, 0.3019607843);
296
+ }
297
+ @media screen and (min-width: 768px) {
298
+ .cocktail-recipe-v3__instructions-container .instructions-wrapper {
299
+ align-items: center;
300
+ }
301
+ }
302
+ .cocktail-recipe-v3__instructions-container .instructions-wrapper .instructions-number {
303
+ font-family: var(--secondary-font-family);
304
+ font-size: calc(30 / var(--design-reference) * var(--font-reference) * var(--font-size-multiplier));
305
+ padding-left: calc(10 / var(--design-reference) * var(--screen-width));
306
+ padding-right: calc(10 / var(--design-reference) * var(--screen-width));
307
+ font-weight: 500;
308
+ text-box-trim: trim-both;
309
+ text-box-edge: cap alphabetic;
310
+ }
311
+ .cocktail-recipe-v3__instructions-container .instructions-wrapper .instructions-text {
312
+ font-family: var(--tertiary-font-family);
313
+ font-size: calc(30 / var(--design-reference) * var(--font-reference) * var(--font-size-multiplier));
314
+ font-weight: 300;
315
+ text-box-trim: trim-both;
316
+ text-box-edge: cap alphabetic;
317
+ }
@@ -0,0 +1,93 @@
1
+ export default function cocktailrecipev3Js(options = {}) {
2
+ try {
3
+ const { block } = options;
4
+ const valueEl = block.querySelector("[data-servings-value]");
5
+ const decBtn = block.querySelector("[data-servings-dec]");
6
+ const incBtn = block.querySelector("[data-servings-inc]");
7
+ const decWrapper = block.querySelector(".dec-btn-wrapper");
8
+ const amountEls = block.querySelectorAll("[data-ingredients]");
9
+ const unitToggle = document.querySelector("[data-unit-toggle]");
10
+ const checkbox = unitToggle?.querySelector("[data-unit-checkbox]");
11
+ amountEls.forEach((el) => {
12
+ if (!el.dataset.baseAmount) {
13
+ el.dataset.baseAmount = el.dataset.amount || "";
14
+ }
15
+ if (!el.dataset.baseUnit) {
16
+ el.dataset.baseUnit = el.dataset.unit || "";
17
+ }
18
+ });
19
+ let currentUnit = "ml";
20
+ const ML_TO_OZ = 0.033814;
21
+ const getServings = () => parseInt(valueEl.textContent, 10) || 1;
22
+ const setServings = (n) => {
23
+ valueEl.textContent = `${n}x`;
24
+ updateInactiveState(n);
25
+ };
26
+ const updateInactiveState = (value) => {
27
+ if (!decWrapper) return;
28
+ if (value <= 1) decWrapper.classList.add("inactive");
29
+ else decWrapper.classList.remove("inactive");
30
+ };
31
+ const formatNumber = (num, unit) => {
32
+ if (unit === "oz")
33
+ return (Math.round(num * 100) / 100).toFixed(2).replace(/\.?0+$/, "");
34
+ if (unit === "ml")
35
+ return (Math.round(num * 10) / 10).toString().replace(/\.0$/, "");
36
+ return (Math.round(num * 100) / 100).toString().replace(/\.?0+$/, "");
37
+ };
38
+ const convert = (value, fromUnit, toUnit) => {
39
+ if (isNaN(value)) return value;
40
+ if (fromUnit === toUnit) return value;
41
+ if (fromUnit === "ml" && toUnit === "oz") return value * ML_TO_OZ;
42
+ if (fromUnit === "oz" && toUnit === "ml") return value / ML_TO_OZ;
43
+ return value;
44
+ };
45
+ const renderIngredients = () => {
46
+ const servings = getServings();
47
+ amountEls.forEach((el) => {
48
+ const baseAmount = parseFloat(el.dataset.baseAmount);
49
+ const baseUnit = el.dataset.baseUnit || "";
50
+ const name = el.dataset.name || "";
51
+ if (isNaN(baseAmount)) {
52
+ el.textContent = name;
53
+ return;
54
+ }
55
+ let amount = baseAmount * servings;
56
+ let displayUnit = baseUnit;
57
+ if ((baseUnit === "ml" || baseUnit === "oz") && currentUnit !== baseUnit) {
58
+ amount = convert(amount, baseUnit, currentUnit);
59
+ displayUnit = currentUnit;
60
+ }
61
+ const numStr = formatNumber(amount, displayUnit);
62
+ const unitStr = displayUnit ? displayUnit : "";
63
+ el.textContent = `${numStr}${unitStr ? unitStr : ""}${unitStr ? " " : " "}${name}`.trim();
64
+ });
65
+ };
66
+ decBtn?.addEventListener("click", () => {
67
+ const cur = getServings();
68
+ if (cur > 1) {
69
+ setServings(cur - 1);
70
+ renderIngredients();
71
+ }
72
+ });
73
+ incBtn?.addEventListener("click", () => {
74
+ const cur = getServings();
75
+ if (cur < 99) {
76
+ setServings(cur + 1);
77
+ renderIngredients();
78
+ }
79
+ });
80
+ if (checkbox) {
81
+ checkbox.addEventListener("change", (e) => {
82
+ currentUnit = e.target.checked ? "oz" : "ml";
83
+ renderIngredients();
84
+ });
85
+ }
86
+ setServings(getServings() || 1);
87
+ currentUnit = "ml";
88
+ renderIngredients();
89
+ updateInactiveState(getServings());
90
+ } catch (error) {
91
+ console.error(error);
92
+ }
93
+ }
@@ -0,0 +1,7 @@
1
+ export default function coverlinkv3Js(options = {}) {
2
+ try {
3
+ const { block } = options;
4
+ } catch (error) {
5
+ console.error(error);
6
+ }
7
+ }
@@ -0,0 +1,7 @@
1
+ export default function dividerv3Js(options = {}) {
2
+ try {
3
+ const { block } = options;
4
+ } catch (error) {
5
+ console.error(error);
6
+ }
7
+ }
@@ -0,0 +1,44 @@
1
+ export default function featuredImagegalleryJs(options = {}) {
2
+ try {
3
+ const { block } = options;
4
+ const featuredImageContainer = block.querySelector(
5
+ `.featured-image-gallery-v3__featured-image-container`
6
+ );
7
+ const featuredImage = block.querySelector(
8
+ `.featured-image-gallery-v3__featured-image`
9
+ );
10
+ const thumbnailImages = block.querySelectorAll(
11
+ `.featured-image-gallery-v3__image-wrapper`
12
+ );
13
+ thumbnailImages.forEach((image) => {
14
+ image.addEventListener("click", function updateSrc() {
15
+ thumbnailImages.forEach((wrapper) => {
16
+ wrapper.classList.remove(
17
+ "featured-image-gallery-v3__image-wrapper--active"
18
+ );
19
+ });
20
+ image.classList.add(
21
+ "featured-image-gallery-v3__image-wrapper--active"
22
+ );
23
+ featuredImageContainer.classList.add("changing-image");
24
+ setTimeout(() => {
25
+ featuredImage.setAttribute(
26
+ "src",
27
+ this.querySelector("img").getAttribute("src")
28
+ );
29
+ featuredImage.setAttribute(
30
+ "alt",
31
+ this.querySelector("img").getAttribute("alt")
32
+ );
33
+ featuredImage.setAttribute(
34
+ "srcset",
35
+ this.querySelector("img").getAttribute("srcset")
36
+ );
37
+ featuredImageContainer.classList.remove("changing-image");
38
+ }, 800);
39
+ });
40
+ });
41
+ } catch (error) {
42
+ console.error(error);
43
+ }
44
+ }
@@ -0,0 +1,61 @@
1
+ export default function formselectionv3Js(options = {}) {
2
+ try {
3
+ let validateFormFields = function(block2) {
4
+ const inputs = block2.querySelectorAll(
5
+ ".cdb_form_field input, .cdb_form_field select, .cdb_form_gdpr_information input, .cdb_form_privacypolicy_information input"
6
+ );
7
+ inputs.forEach((input) => {
8
+ const wrapper = input.closest(".cdb_form_field, .cdb_form_gdpr_information, .cdb_form_privacypolicy_information");
9
+ if (!wrapper) return;
10
+ wrapper.classList.remove("invalid");
11
+ if (!input.hasAttribute("required")) return;
12
+ if (input.type === "checkbox") {
13
+ if (!input.checked) {
14
+ wrapper.classList.add("invalid");
15
+ }
16
+ input.addEventListener("change", () => {
17
+ if (input.checked) {
18
+ wrapper.classList.remove("invalid");
19
+ }
20
+ });
21
+ } else {
22
+ if (!input.value.trim()) {
23
+ wrapper.classList.add("invalid");
24
+ }
25
+ input.addEventListener("input", () => {
26
+ if (input.value.trim()) {
27
+ wrapper.classList.remove("invalid");
28
+ }
29
+ });
30
+ }
31
+ });
32
+ };
33
+ const { block } = options;
34
+ const formContainer = block.querySelector(".form-selection-v3__container-modal");
35
+ const openModal = block.querySelector(".form-selection-v3__modal-open");
36
+ const closeModal = block.querySelector(".form-selection-v3__modal-close");
37
+ if (formContainer && openModal) {
38
+ openModal.addEventListener("click", function(e) {
39
+ e.preventDefault();
40
+ document.documentElement.classList.add("lock-position");
41
+ formContainer.style.display = "flex";
42
+ });
43
+ closeModal.addEventListener("click", function(e) {
44
+ document.documentElement.classList.remove("lock-position");
45
+ e.preventDefault();
46
+ formContainer.style.display = "none";
47
+ });
48
+ } else {
49
+ return;
50
+ }
51
+ const submit = block.querySelector(
52
+ ".cdb-submit"
53
+ );
54
+ submit.classList.add("cmpl-cta-style-11", "cmpl-cta-animation-style-1");
55
+ submit.addEventListener("click", (e) => {
56
+ validateFormFields(block);
57
+ });
58
+ } catch (error) {
59
+ console.error(error);
60
+ }
61
+ }
@@ -0,0 +1,7 @@
1
+ export default function gradientlayerv3Js(options = {}) {
2
+ try {
3
+ const { block } = options;
4
+ } catch (error) {
5
+ console.error(error);
6
+ }
7
+ }
@@ -0,0 +1,7 @@
1
+ export default function groupcontainerv3Js(options = {}) {
2
+ try {
3
+ const { block } = options;
4
+ } catch (error) {
5
+ console.error(error);
6
+ }
7
+ }
@@ -0,0 +1,25 @@
1
+ import lottie from "lottie-web";
2
+ export default function lottiecontentv3Js(block) {
3
+ const lottieElement = block.querySelector(".lottie-animations");
4
+ if (!lottieElement) {
5
+ return;
6
+ }
7
+ const lottieData = lottieElement.dataset;
8
+ const filePath = lottieData.lottiefile;
9
+ if (!filePath) {
10
+ return;
11
+ }
12
+ const loop = parseInt(lottieData.loop) ? true : false;
13
+ const autoplay = parseInt(lottieData.autoplay) ? true : false;
14
+ lottie.loadAnimation({
15
+ container: lottieElement,
16
+ renderer: "svg",
17
+ loop,
18
+ autoplay,
19
+ path: filePath,
20
+ rendererSettings: {
21
+ preserveAspectRatio: "xMidYMid slice",
22
+ progressiveLoad: true
23
+ }
24
+ });
25
+ }
@@ -0,0 +1,7 @@
1
+ export default function marketselectorv3Js(options = {}) {
2
+ try {
3
+ const { block } = options;
4
+ } catch (error) {
5
+ console.error(error);
6
+ }
7
+ }
@@ -0,0 +1,44 @@
1
+ export default function modalformv3Js(options = {}) {
2
+ try {
3
+ let validateFormFields = function(block2) {
4
+ const inputs = block2.querySelectorAll(
5
+ ".cdb_form_field input, .cdb_form_field select, .cdb_form_gdpr_information input, .cdb_form_privacypolicy_information input"
6
+ );
7
+ inputs.forEach((input) => {
8
+ const wrapper = input.closest(".cdb_form_field, .cdb_form_gdpr_information, .cdb_form_privacypolicy_information");
9
+ if (!wrapper) return;
10
+ wrapper.classList.remove("invalid");
11
+ if (!input.hasAttribute("required")) return;
12
+ if (input.type === "checkbox") {
13
+ if (!input.checked) {
14
+ wrapper.classList.add("invalid");
15
+ }
16
+ input.addEventListener("change", () => {
17
+ if (input.checked) {
18
+ wrapper.classList.remove("invalid");
19
+ }
20
+ });
21
+ } else {
22
+ if (!input.value.trim()) {
23
+ wrapper.classList.add("invalid");
24
+ }
25
+ input.addEventListener("input", () => {
26
+ if (input.value.trim()) {
27
+ wrapper.classList.remove("invalid");
28
+ }
29
+ });
30
+ }
31
+ });
32
+ };
33
+ const { block } = options;
34
+ const submit = block.querySelector(
35
+ ".cdb-submit"
36
+ );
37
+ submit.classList.add("cmpl-cta-style-11", "cmpl-cta-animation-style-1");
38
+ submit.addEventListener("click", (e) => {
39
+ validateFormFields(block);
40
+ });
41
+ } catch (error) {
42
+ console.error(error);
43
+ }
44
+ }
@@ -0,0 +1,7 @@
1
+ export default function navmenucontainerv3Js(options = {}) {
2
+ try {
3
+ const { block } = options;
4
+ } catch (error) {
5
+ console.error(error);
6
+ }
7
+ }
@@ -0,0 +1,7 @@
1
+ export default function postinfov3Js(options = {}) {
2
+ const { block } = options;
3
+ try {
4
+ } catch (error) {
5
+ console.error(error);
6
+ }
7
+ }
@@ -1,6 +1,7 @@
1
1
  .post-type-filter-grid-v3 {
2
2
  z-index: 10;
3
3
  position: relative;
4
+ pointer-events: all;
4
5
  background-color: var(--block-background-colour);
5
6
  }
6
7
  .post-type-filter-grid-v3__main-container {
@@ -0,0 +1,13 @@
1
+ import { createApp } from "vue";
2
+ import posttypefiltergridv2 from "@total_onion/onion-library/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3.vue";
3
+ export default function posttypefiltergridv2Js(options = {}) {
4
+ try {
5
+ const { block } = options;
6
+ const mountElement = block.children[0];
7
+ createApp(posttypefiltergridv2, { ...mountElement.dataset }).mount(
8
+ mountElement
9
+ );
10
+ } catch (error) {
11
+ console.error(error);
12
+ }
13
+ }
@@ -0,0 +1,7 @@
1
+ export default function productinfov3Js(options = {}) {
2
+ const { block } = options;
3
+ try {
4
+ } catch (error) {
5
+ console.error(error);
6
+ }
7
+ }
@@ -0,0 +1,7 @@
1
+ export default function responsivetableJs(options = {}) {
2
+ try {
3
+ const { block } = options;
4
+ } catch (error) {
5
+ console.error(error);
6
+ }
7
+ }