@bridgeline-digital/hawksearch-handlebars-ui 5.0.0 → 5.0.4

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 (84) hide show
  1. package/changelog.md +106 -102
  2. package/dist/components/base.component.d.ts +139 -139
  3. package/dist/components/content/content-types/base-content.component.d.ts +9 -9
  4. package/dist/components/content/content-types/custom-content/custom-content.component.d.ts +21 -21
  5. package/dist/components/content/content-types/featured-items-content/featured-items-content.component.d.ts +22 -22
  6. package/dist/components/content/content-types/featured-items-content-item/featured-items-content-item.component.d.ts +39 -39
  7. package/dist/components/content/content-types/image-content/image-content.component.d.ts +22 -22
  8. package/dist/components/content/content-types/index.d.ts +6 -6
  9. package/dist/components/content/content-types/popular-queries-content/popular-queries-content.component.d.ts +22 -22
  10. package/dist/components/content/content-zone/content-zone.component.d.ts +44 -44
  11. package/dist/components/content/index.d.ts +2 -2
  12. package/dist/components/general/date-picker/date-picker.component.d.ts +117 -117
  13. package/dist/components/general/icon/icon.component.d.ts +38 -38
  14. package/dist/components/general/index.d.ts +5 -5
  15. package/dist/components/general/range-slider/range-slider.component.d.ts +54 -54
  16. package/dist/components/general/rating/rating.component.d.ts +39 -39
  17. package/dist/components/general/tooltip/tooltip.component.d.ts +32 -32
  18. package/dist/components/index.d.ts +229 -229
  19. package/dist/components/landing-pages/index.d.ts +1 -1
  20. package/dist/components/landing-pages/landing-page/landing-page.component.d.ts +32 -32
  21. package/dist/components/recommendations/index.d.ts +2 -2
  22. package/dist/components/recommendations/recommendations/recommendations.component.d.ts +87 -87
  23. package/dist/components/recommendations/recommendations-item/recommendations-item.component.d.ts +40 -40
  24. package/dist/components/search/autocomplete/autocomplete.component.d.ts +59 -59
  25. package/dist/components/search/facet-types/base-facet.component.d.ts +44 -44
  26. package/dist/components/search/facet-types/checkbox-list-facet/checkbox-list-facet.component.d.ts +36 -36
  27. package/dist/components/search/facet-types/color-facet/color-facet.component.d.ts +24 -24
  28. package/dist/components/search/facet-types/date-range-facet/date-range-facet.component.d.ts +33 -33
  29. package/dist/components/search/facet-types/index.d.ts +11 -11
  30. package/dist/components/search/facet-types/linked-list-facet/link-list-facet.component.d.ts +24 -24
  31. package/dist/components/search/facet-types/numeric-range-facet/numeric-range-facet.component.d.ts +32 -32
  32. package/dist/components/search/facet-types/range-slider-facet/range-slider-facet.component.d.ts +34 -34
  33. package/dist/components/search/facet-types/recent-searches-facet/recent-searches-facet.component.d.ts +29 -29
  34. package/dist/components/search/facet-types/related-searches-facet/related-searches-facet.component.d.ts +29 -29
  35. package/dist/components/search/facet-types/search-within-facet/search-within-facet.component.d.ts +29 -29
  36. package/dist/components/search/facet-types/size-facet/size-facet.component.d.ts +24 -24
  37. package/dist/components/search/facet-wrapper/facet-wrapper.component.d.ts +47 -47
  38. package/dist/components/search/facets-list/facets-list.component.d.ts +32 -32
  39. package/dist/components/search/index.d.ts +15 -15
  40. package/dist/components/search/modified-query/modified-query.component.d.ts +32 -32
  41. package/dist/components/search/page-size/page-size.component.d.ts +32 -32
  42. package/dist/components/search/pagination/pagination.component.d.ts +43 -43
  43. package/dist/components/search/query-suggestions/query-suggestions.component.d.ts +38 -38
  44. package/dist/components/search/search-field/search-field.component.d.ts +38 -38
  45. package/dist/components/search/search-results/search-results.component.d.ts +34 -34
  46. package/dist/components/search/search-results-item/search-results-item.component.d.ts +38 -38
  47. package/dist/components/search/search-results-list/search-results-list.component.d.ts +23 -23
  48. package/dist/components/search/selected-facets/selected-facets.component.d.ts +31 -31
  49. package/dist/components/search/sorting/sorting.component.d.ts +30 -30
  50. package/dist/components/search/tabs/tabs.component.d.ts +30 -30
  51. package/dist/components/variants/index.d.ts +1 -1
  52. package/dist/components/variants/variant-selector/variant-selector.component.d.ts +23 -23
  53. package/dist/configuration/configuration.models.d.ts +574 -574
  54. package/dist/configuration/index.d.ts +4 -4
  55. package/dist/helpers/helpers.d.ts +200 -200
  56. package/dist/helpers/index.d.ts +4 -4
  57. package/dist/index.d.ts +1 -1
  58. package/dist/index.js +1 -1
  59. package/dist/index.js.map +1 -1
  60. package/dist/models/autocomplete.models.d.ts +85 -85
  61. package/dist/models/base.models.d.ts +50 -50
  62. package/dist/models/component.models.d.ts +453 -453
  63. package/dist/models/content.models.d.ts +94 -94
  64. package/dist/models/index.d.ts +11 -11
  65. package/dist/models/raw/index.d.ts +4 -4
  66. package/dist/models/raw/raw-autocomplete.models.d.ts +51 -51
  67. package/dist/models/raw/raw-base.models.d.ts +8 -8
  68. package/dist/models/raw/raw-recommendation.models.d.ts +39 -39
  69. package/dist/models/raw/raw-search.models.d.ts +191 -191
  70. package/dist/models/recommendation.models.d.ts +31 -31
  71. package/dist/models/search.models.d.ts +237 -237
  72. package/dist/models/tracking.models.d.ts +42 -42
  73. package/dist/services/autocomplete.service.d.ts +10 -10
  74. package/dist/services/base.service.d.ts +63 -63
  75. package/dist/services/index.d.ts +8 -8
  76. package/dist/services/recommendations.service.d.ts +10 -10
  77. package/dist/services/search.service.d.ts +50 -50
  78. package/dist/services/tracking.service.d.ts +29 -29
  79. package/dist/utilities/colors.d.ts +1 -1
  80. package/dist/utilities/dates.d.ts +4 -4
  81. package/dist/utilities/formatters.d.ts +4 -4
  82. package/dist/utilities/index.d.ts +6 -6
  83. package/package.json +1 -1
  84. package/readme.md +1 -1
@@ -1,229 +1,229 @@
1
- /**
2
- * ## Overriding Component Templates
3
- *
4
- * This library was designed to be flexible and allow total customization of the markup used by all components.
5
- *
6
- * There are two ways to replace the Handlebars template used by a component:
7
- *
8
- * - Pass a template HTML string containing a Handlebars template.
9
- * - Pass the ID of a template element containing a Handlebars template.
10
- *
11
- * *Note: To avoid conflicts with BigCommerce and other systems that Handlebars for server-side rendering, this library also supports an alternate `[[value]]` syntax to work the same as the default Handlerbars `{{value}}` syntax.*
12
- *
13
- * ### Passing an HTML string
14
- *
15
- * In your HTML file, define the template content directly in the configuration options:
16
- *
17
- * ```html
18
- * <!DOCTYPE html>
19
- * <html>
20
- * <head>
21
- * <meta charset="utf-8" />
22
- * <title>HawkSearch Handlebars UI</title>
23
- * <meta name="viewport" content="width=device-width, initial-scale=1" />
24
- * <script type="text/javascript">
25
- * var HawkSearch = HawkSearch || {};
26
- *
27
- * HawkSearch.config = {
28
- * clientId: "YOUR_CLIENTID_HERE",
29
- * components: {
30
- * pageSize: {
31
- * template: `
32
- * <div class='page-size'>
33
- * <select hawksearch-page-size>
34
- * {{#each options}}
35
- * <option value='{{pageSize}}' {{attribute 'selected' selected}}>{{title}}</option>
36
- * {{/each}}
37
- * </select>
38
- * </div>`
39
- * }
40
- * }
41
- * };
42
- * </script>
43
- * <script src="node_modules/@bridgeline-digital/hawksearch-handlebars-ui/dist/handlebars-ui.js" defer ></script>
44
- * </head>
45
- * <body>
46
- * <h1>HawkSearch Handlebars UI</h1>
47
- * <hawksearch-search></hawksearch-search>
48
- * <hawksearch-results></hawksearch-results>
49
- * </body>
50
- * </html>
51
- * ```
52
- *
53
- * ### Creating a template element
54
- *
55
- * In your HTML file, add the custom markup to a `template` element and pass the ID in the configuration options:
56
- *
57
- * ```html
58
- * <!DOCTYPE html>
59
- * <html>
60
- * <head>
61
- * <meta charset="utf-8" />
62
- * <title>HawkSearch Handlebars UI</title>
63
- * <meta name="viewport" content="width=device-width, initial-scale=1" />
64
- * <script type="text/javascript">
65
- * var HawkSearch = HawkSearch || {};
66
- *
67
- * HawkSearch.config = {
68
- * clientId: "f51060e1c38446f0bacdf283390c37e8",
69
- * components: {
70
- * pageSize: {
71
- * template: 'page-size-template'
72
- * }
73
- * }
74
- * };
75
- * </script>
76
- * <script src="node_modules/@bridgeline-digital/hawksearch-handlebars-ui/dist/handlebars-ui.js" defer ></script>
77
- * </head>
78
- * <body>
79
- * <h1>HawkSearch Handlebars UI</h1>
80
- * <hawksearch-search></hawksearch-search>
81
- * <hawksearch-results></hawksearch-results>
82
- * <template id="page-size-template">
83
- * <div class='page-size'>
84
- * <select hawksearch-page-size>
85
- * {{#each options}}
86
- * <option value='{{pageSize}}' {{attribute 'selected' selected}}>{{title}}</option>
87
- * {{/each}}
88
- * </select>
89
- * </div>
90
- * </template>
91
- * </body>
92
- * </html>
93
- * ```
94
- *
95
- * *Note: This approach tends to be easier to manage than the previous option as it is more compatible with popular HTML editors and templates can potentially be loaded from separate files using Server-side Includes (SSI).*
96
- *
97
- * ## Customizing CSS
98
- * By default, a neutral interface is rendered to get your search instance up and running quickly. However, this library was designed to be customizable and allow developers to use both custom markup and custom CSS.
99
- *
100
- * For developers who only wish to tweak the default UI rather than create something from scratch, there are some variables and utility methods defined in the default CSS that are available for use.
101
- *
102
- * ### Variables
103
- * Although all components in this library utilize the Shadow DOM, CSS variables are able to cross this boundary in a way that normal CSS rules are not. The following variables can be customized in the host DOM to easily customize some of the default styles:
104
- *
105
- * | Variable | Default Value |
106
- * | :- | :- |
107
- * | --hawksearch-container-background--alternate | `var(--color-secondary-light)` |
108
- * | --hawksearch-container-border | `solid 1px var(--color-secondary)` |
109
- * | --hawksearch-default-line-height | `1.25` |
110
- * | --hawksearch-default-font-color | `#333333` |
111
- * | --hawksearch-default-font-color--inverse | `#ffffff` |
112
- * | --hawksearch-default-font-family | `Arial, sans-serif` |
113
- * | --hawksearch-default-font-size | `16px` |
114
- * | --hawksearch-button-background | `var(--color-accent)` |
115
- * | --hawksearch-button-border-radius | `5px` |
116
- * | --hawksearch-button-font-color | `#ffffff` |
117
- * | --hawksearch-form-element-background | `var(--color-background)` |
118
- * | --hawksearch-form-element-border | `solid 1px var(--color-secondary)` |
119
- * | --hawksearch-form-element-border--focus | `solid 1px var(--color-accent)` |
120
- * | --hawksearch-form-element-border-radius | `0` |
121
- * | --hawksearch-form-element-placeholder-color | `var(--color-secondary-dark)` |
122
- * | --hawksearch-margin | `32px` |
123
- * | --hawksearch-margin-sm | `calc(var(--margin) / 2)` |
124
- * | --hawksearch-padding | `24px` |
125
- * | --hawksearch-padding-xs | `calc(var(--padding) / 4)` |
126
- * | --hawksearch-padding-sm | `calc(var(--padding) / 2)` |
127
- * | --hawksearch-secondary-font-color | `var(--color-secondary-dark)` |
128
- *
129
- * *Note: Internally, all variables omit the hawksearch- prefix. This prefix is used only to override the default values.*
130
- *
131
- * ### Breakpoints
132
- *
133
- * This library uses responsive design with the following breakpoints defined:
134
- *
135
- * | Name | Suffix | Minimum Width |
136
- * | :- | :- | :- |
137
- * | | | `0px` |
138
- * | small | `-sm` | `740px` |
139
- * | medium | `-md` | `990px` |
140
- * | large | `-lg` | `1260px` |
141
- * | extra-large | `-xl` | `1800px` |
142
- *
143
- * ### Grid System
144
- *
145
- * This library uses a 12-column, responsive grid system. To use this system, all columns must have a `column` class and be the direct children of an element with a `row` class. The number of columns each column elements spans can be controlled with `column--XX` classes.
146
- *
147
- * For example, the following will render two equal columns that are stacked until the browser window reaches the `Medium` breakpoint:
148
- *
149
- * ```html
150
- * <div class="row">
151
- * <div class="column column--12 column-md--6">Column 1</div>
152
- * <div class="column column--12 column-md--6">Column 2</div>
153
- * </div>
154
- * ```
155
- *
156
- * #### Row Modifiers
157
- * The following CSS classes can be added to modify the row display:
158
- *
159
- * | CSS Class | Description |
160
- * | :- | :- |
161
- * | `row--reverse` | This will cause all columns to be rendered in the reverse order that they are defined |
162
- * | `row--tight` | This will reduce the space between columns to use `var(--padding-xs)` |
163
- *
164
- * #### Column Modifiers
165
- * The following CSS classes can be added to modify the column display:
166
- *
167
- * | CSS Class | Description |
168
- * | :- | :- |
169
- * | `column--pull-right` | This will force the column to pull to be aligned to the end of the row |
170
- *
171
- * ### Utility Classes
172
- * There are several basic utility classes available to quickly customize the display of elements.
173
- *
174
- * *Note: All utility classes support the suffixes defined in Breakpoints. For example, `display-block` and `display-sm-none` are both valid.*
175
- *
176
- * * #### Display
177
- *
178
- * | CSS Class | Description |
179
- * | :- | :- |
180
- * | display-block | This will display an element |
181
- * | display-none | This will hide an element |
182
- *
183
- * #### Flex Vertical
184
- *
185
- * | CSS Class | Description |
186
- * | :- | :- |
187
- * | flex-vertical-center | This will vertically center the children of an element |
188
- *
189
- * #### Flex Gap
190
- *
191
- * | CSS Class | Description |
192
- * | :- | :- |
193
- * | flex-gap | This will add equal `var(--padding)` spacing between each child element and allow wrapping onto the next row when necessary |
194
- * | flex-gap--none | This modifier class eliminates the spacing between each child element |
195
- * | flex-gap--sm | This modifier class reduces the spacing between each element to `var(--padding-sm)` |
196
- * | flex-gap--xs | This modifier class reduces the spacing between each element to `var(--padding-xs)` |
197
- *
198
- * #### Margin
199
- *
200
- * | CSS Class | Description |
201
- * | :- | :- |
202
- * | margin | This adds bottom margin of `var(--margin)` |
203
- * | margin-none | This removes bottom margin |
204
- * | margin-sm | This adds bottom margin of `var(--margin-sm)` |
205
- *
206
- * #### Width
207
- *
208
- * | CSS Class | Description |
209
- * | :- | :- |
210
- * | width-auto | This allows an elements content to determine its width |
211
- * | width-full | This forces an element’s width to match its parent element |
212
- *
213
- * #### Text Align
214
- *
215
- * | CSS Class | Description |
216
- * | :- | :- |
217
- * | text-align-left | This aligns descendant content to the left |
218
- * | text-align-center | This aligns descendant content to the center |
219
- * | text-align-right | This aligns descendant content to the right |
220
- *
221
- * @module Components
222
- */
223
- export * from './base.component';
224
- export * from './content';
225
- export * from './general';
226
- export * from './landing-pages';
227
- export * from './recommendations';
228
- export * from './search';
229
- export * from './variants';
1
+ /**
2
+ * ## Overriding Component Templates
3
+ *
4
+ * This library was designed to be flexible and allow total customization of the markup used by all components.
5
+ *
6
+ * There are two ways to replace the Handlebars template used by a component:
7
+ *
8
+ * - Pass a template HTML string containing a Handlebars template.
9
+ * - Pass the ID of a template element containing a Handlebars template.
10
+ *
11
+ * *Note: To avoid conflicts with BigCommerce and other systems that Handlebars for server-side rendering, this library also supports an alternate `[[value]]` syntax to work the same as the default Handlerbars `{{value}}` syntax.*
12
+ *
13
+ * ### Passing an HTML string
14
+ *
15
+ * In your HTML file, define the template content directly in the configuration options:
16
+ *
17
+ * ```html
18
+ * <!DOCTYPE html>
19
+ * <html>
20
+ * <head>
21
+ * <meta charset="utf-8" />
22
+ * <title>HawkSearch Handlebars UI</title>
23
+ * <meta name="viewport" content="width=device-width, initial-scale=1" />
24
+ * <script type="text/javascript">
25
+ * var HawkSearch = HawkSearch || {};
26
+ *
27
+ * HawkSearch.config = {
28
+ * clientId: "YOUR_CLIENTID_HERE",
29
+ * components: {
30
+ * pageSize: {
31
+ * template: `
32
+ * <div class='page-size'>
33
+ * <select hawksearch-page-size>
34
+ * {{#each options}}
35
+ * <option value='{{pageSize}}' {{attribute 'selected' selected}}>{{title}}</option>
36
+ * {{/each}}
37
+ * </select>
38
+ * </div>`
39
+ * }
40
+ * }
41
+ * };
42
+ * </script>
43
+ * <script src="node_modules/@bridgeline-digital/hawksearch-handlebars-ui/dist/handlebars-ui.js" defer ></script>
44
+ * </head>
45
+ * <body>
46
+ * <h1>HawkSearch Handlebars UI</h1>
47
+ * <hawksearch-search></hawksearch-search>
48
+ * <hawksearch-results></hawksearch-results>
49
+ * </body>
50
+ * </html>
51
+ * ```
52
+ *
53
+ * ### Creating a template element
54
+ *
55
+ * In your HTML file, add the custom markup to a `template` element and pass the ID in the configuration options:
56
+ *
57
+ * ```html
58
+ * <!DOCTYPE html>
59
+ * <html>
60
+ * <head>
61
+ * <meta charset="utf-8" />
62
+ * <title>HawkSearch Handlebars UI</title>
63
+ * <meta name="viewport" content="width=device-width, initial-scale=1" />
64
+ * <script type="text/javascript">
65
+ * var HawkSearch = HawkSearch || {};
66
+ *
67
+ * HawkSearch.config = {
68
+ * clientId: "f51060e1c38446f0bacdf283390c37e8",
69
+ * components: {
70
+ * pageSize: {
71
+ * template: 'page-size-template'
72
+ * }
73
+ * }
74
+ * };
75
+ * </script>
76
+ * <script src="node_modules/@bridgeline-digital/hawksearch-handlebars-ui/dist/handlebars-ui.js" defer ></script>
77
+ * </head>
78
+ * <body>
79
+ * <h1>HawkSearch Handlebars UI</h1>
80
+ * <hawksearch-search></hawksearch-search>
81
+ * <hawksearch-results></hawksearch-results>
82
+ * <template id="page-size-template">
83
+ * <div class='page-size'>
84
+ * <select hawksearch-page-size>
85
+ * {{#each options}}
86
+ * <option value='{{pageSize}}' {{attribute 'selected' selected}}>{{title}}</option>
87
+ * {{/each}}
88
+ * </select>
89
+ * </div>
90
+ * </template>
91
+ * </body>
92
+ * </html>
93
+ * ```
94
+ *
95
+ * *Note: This approach tends to be easier to manage than the previous option as it is more compatible with popular HTML editors and templates can potentially be loaded from separate files using Server-side Includes (SSI).*
96
+ *
97
+ * ## Customizing CSS
98
+ * By default, a neutral interface is rendered to get your search instance up and running quickly. However, this library was designed to be customizable and allow developers to use both custom markup and custom CSS.
99
+ *
100
+ * For developers who only wish to tweak the default UI rather than create something from scratch, there are some variables and utility methods defined in the default CSS that are available for use.
101
+ *
102
+ * ### Variables
103
+ * Although all components in this library utilize the Shadow DOM, CSS variables are able to cross this boundary in a way that normal CSS rules are not. The following variables can be customized in the host DOM to easily customize some of the default styles:
104
+ *
105
+ * | Variable | Default Value |
106
+ * | :- | :- |
107
+ * | --hawksearch-container-background--alternate | `var(--color-secondary-light)` |
108
+ * | --hawksearch-container-border | `solid 1px var(--color-secondary)` |
109
+ * | --hawksearch-default-line-height | `1.25` |
110
+ * | --hawksearch-default-font-color | `#333333` |
111
+ * | --hawksearch-default-font-color--inverse | `#ffffff` |
112
+ * | --hawksearch-default-font-family | `Arial, sans-serif` |
113
+ * | --hawksearch-default-font-size | `16px` |
114
+ * | --hawksearch-button-background | `var(--color-accent)` |
115
+ * | --hawksearch-button-border-radius | `5px` |
116
+ * | --hawksearch-button-font-color | `#ffffff` |
117
+ * | --hawksearch-form-element-background | `var(--color-background)` |
118
+ * | --hawksearch-form-element-border | `solid 1px var(--color-secondary)` |
119
+ * | --hawksearch-form-element-border--focus | `solid 1px var(--color-accent)` |
120
+ * | --hawksearch-form-element-border-radius | `0` |
121
+ * | --hawksearch-form-element-placeholder-color | `var(--color-secondary-dark)` |
122
+ * | --hawksearch-margin | `32px` |
123
+ * | --hawksearch-margin-sm | `calc(var(--margin) / 2)` |
124
+ * | --hawksearch-padding | `24px` |
125
+ * | --hawksearch-padding-xs | `calc(var(--padding) / 4)` |
126
+ * | --hawksearch-padding-sm | `calc(var(--padding) / 2)` |
127
+ * | --hawksearch-secondary-font-color | `var(--color-secondary-dark)` |
128
+ *
129
+ * *Note: Internally, all variables omit the hawksearch- prefix. This prefix is used only to override the default values.*
130
+ *
131
+ * ### Breakpoints
132
+ *
133
+ * This library uses responsive design with the following breakpoints defined:
134
+ *
135
+ * | Name | Suffix | Minimum Width |
136
+ * | :- | :- | :- |
137
+ * | | | `0px` |
138
+ * | small | `-sm` | `740px` |
139
+ * | medium | `-md` | `990px` |
140
+ * | large | `-lg` | `1260px` |
141
+ * | extra-large | `-xl` | `1800px` |
142
+ *
143
+ * ### Grid System
144
+ *
145
+ * This library uses a 12-column, responsive grid system. To use this system, all columns must have a `column` class and be the direct children of an element with a `row` class. The number of columns each column elements spans can be controlled with `column--XX` classes.
146
+ *
147
+ * For example, the following will render two equal columns that are stacked until the browser window reaches the `Medium` breakpoint:
148
+ *
149
+ * ```html
150
+ * <div class="row">
151
+ * <div class="column column--12 column-md--6">Column 1</div>
152
+ * <div class="column column--12 column-md--6">Column 2</div>
153
+ * </div>
154
+ * ```
155
+ *
156
+ * #### Row Modifiers
157
+ * The following CSS classes can be added to modify the row display:
158
+ *
159
+ * | CSS Class | Description |
160
+ * | :- | :- |
161
+ * | `row--reverse` | This will cause all columns to be rendered in the reverse order that they are defined |
162
+ * | `row--tight` | This will reduce the space between columns to use `var(--padding-xs)` |
163
+ *
164
+ * #### Column Modifiers
165
+ * The following CSS classes can be added to modify the column display:
166
+ *
167
+ * | CSS Class | Description |
168
+ * | :- | :- |
169
+ * | `column--pull-right` | This will force the column to pull to be aligned to the end of the row |
170
+ *
171
+ * ### Utility Classes
172
+ * There are several basic utility classes available to quickly customize the display of elements.
173
+ *
174
+ * *Note: All utility classes support the suffixes defined in Breakpoints. For example, `display-block` and `display-sm-none` are both valid.*
175
+ *
176
+ * * #### Display
177
+ *
178
+ * | CSS Class | Description |
179
+ * | :- | :- |
180
+ * | display-block | This will display an element |
181
+ * | display-none | This will hide an element |
182
+ *
183
+ * #### Flex Vertical
184
+ *
185
+ * | CSS Class | Description |
186
+ * | :- | :- |
187
+ * | flex-vertical-center | This will vertically center the children of an element |
188
+ *
189
+ * #### Flex Gap
190
+ *
191
+ * | CSS Class | Description |
192
+ * | :- | :- |
193
+ * | flex-gap | This will add equal `var(--padding)` spacing between each child element and allow wrapping onto the next row when necessary |
194
+ * | flex-gap--none | This modifier class eliminates the spacing between each child element |
195
+ * | flex-gap--sm | This modifier class reduces the spacing between each element to `var(--padding-sm)` |
196
+ * | flex-gap--xs | This modifier class reduces the spacing between each element to `var(--padding-xs)` |
197
+ *
198
+ * #### Margin
199
+ *
200
+ * | CSS Class | Description |
201
+ * | :- | :- |
202
+ * | margin | This adds bottom margin of `var(--margin)` |
203
+ * | margin-none | This removes bottom margin |
204
+ * | margin-sm | This adds bottom margin of `var(--margin-sm)` |
205
+ *
206
+ * #### Width
207
+ *
208
+ * | CSS Class | Description |
209
+ * | :- | :- |
210
+ * | width-auto | This allows an elements content to determine its width |
211
+ * | width-full | This forces an element’s width to match its parent element |
212
+ *
213
+ * #### Text Align
214
+ *
215
+ * | CSS Class | Description |
216
+ * | :- | :- |
217
+ * | text-align-left | This aligns descendant content to the left |
218
+ * | text-align-center | This aligns descendant content to the center |
219
+ * | text-align-right | This aligns descendant content to the right |
220
+ *
221
+ * @module Components
222
+ */
223
+ export * from './base.component';
224
+ export * from './content';
225
+ export * from './general';
226
+ export * from './landing-pages';
227
+ export * from './recommendations';
228
+ export * from './search';
229
+ export * from './variants';
@@ -1 +1 @@
1
- export * from './landing-page/landing-page.component';
1
+ export * from './landing-page/landing-page.component';
@@ -1,32 +1,32 @@
1
- import { BaseComponent } from '@components';
2
- import { HawkSearchComponents, LandingPageComponentConfig } from '@configuration';
3
- import { LandingPageComponentModel, SearchResponse } from '@models';
4
- /**
5
- * The Landing page component displays either a search results interface to display a subset of products, or a custom layout to display content items.
6
- *
7
- * ## Tag
8
- * The tag for this component is `<hawksearch-landing-page>`.
9
- *
10
- * ## Attributes
11
- * | Name | Value | Required |
12
- * | :- | :- | :- |
13
- * | url | `string` | No |
14
- *
15
- * By default, the URL sent to the HawkSearch API matches the current browser URL as reflected in `window.location.pathname`. This attribute can be used to override this with a custom value.
16
- *
17
- * ## Default Template
18
- * The following is the default Handlebars template for this component. To create a custom template, it is recommended to use this as a starting point.
19
- * {@embed ./landing-page.component.hbs}
20
- *
21
- * @category Landing Pages
22
- */
23
- export declare class LandingPageComponent extends BaseComponent<LandingPageComponentConfig, SearchResponse, LandingPageComponentModel> {
24
- protected componentName: keyof HawkSearchComponents;
25
- protected defaultHtml: any;
26
- protected bindFromEvent: boolean;
27
- protected get url(): string;
28
- constructor();
29
- protected renderContent(): boolean;
30
- protected getContentModel(): LandingPageComponentModel;
31
- private processCustomLayout;
32
- }
1
+ import { BaseComponent } from '@components';
2
+ import { HawkSearchComponents, LandingPageComponentConfig } from '@configuration';
3
+ import { LandingPageComponentModel, SearchResponse } from '@models';
4
+ /**
5
+ * The Landing page component displays either a search results interface to display a subset of products, or a custom layout to display content items.
6
+ *
7
+ * ## Tag
8
+ * The tag for this component is `<hawksearch-landing-page>`.
9
+ *
10
+ * ## Attributes
11
+ * | Name | Value | Required |
12
+ * | :- | :- | :- |
13
+ * | url | `string` | No |
14
+ *
15
+ * By default, the URL sent to the HawkSearch API matches the current browser URL as reflected in `window.location.pathname`. This attribute can be used to override this with a custom value.
16
+ *
17
+ * ## Default Template
18
+ * The following is the default Handlebars template for this component. To create a custom template, it is recommended to use this as a starting point.
19
+ * {@embed ./landing-page.component.hbs}
20
+ *
21
+ * @category Landing Pages
22
+ */
23
+ export declare class LandingPageComponent extends BaseComponent<LandingPageComponentConfig, SearchResponse, LandingPageComponentModel> {
24
+ protected componentName: keyof HawkSearchComponents;
25
+ protected defaultHtml: any;
26
+ protected bindFromEvent: boolean;
27
+ protected get url(): string;
28
+ constructor();
29
+ protected renderContent(): boolean;
30
+ protected getContentModel(): LandingPageComponentModel;
31
+ private processCustomLayout;
32
+ }
@@ -1,2 +1,2 @@
1
- export * from './recommendations/recommendations.component';
2
- export * from './recommendations-item/recommendations-item.component';
1
+ export * from './recommendations/recommendations.component';
2
+ export * from './recommendations-item/recommendations-item.component';