@sc-360-v2/storefront-cms-library 0.5.43 → 0.5.44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/search.scss CHANGED
@@ -52,8 +52,15 @@
52
52
  }
53
53
 
54
54
  .search-container {
55
+ display: flex;
55
56
  width: 100%;
56
57
  height: 100%;
58
+ padding: var(--_ctm-mob-dn-sh-cr-pg, var(--_ctm-tab-dn-sh-cr-pg, var(--_ctm-dn-sh-cr-pg)));
59
+ display: flex;
60
+ gap: var(
61
+ --_ctm-mob-dn-sh-cr-im-gp,
62
+ var(--_ctm-tab-dn-sh-cr-im-gp, var(--_ctm-dn-sh-cr-im-gp))
63
+ );
57
64
  transition:
58
65
  background-color 0.2s,
59
66
  color 0.2s,
@@ -84,10 +91,232 @@
84
91
  }
85
92
  }
86
93
  }
94
+ // .btn__with__text[data-btn-name="buttonStyles"] {
95
+ .btn__with__text {
96
+ &[data-show-shadow="false"] {
97
+ --_show-shadow: none;
98
+ }
99
+ &[data-icon-position="left"] {
100
+ --_sf-fd-bn: row;
101
+ }
102
+ &[data-icon-position="right"] {
103
+ --_sf-fd-bn: row-reverse;
104
+ }
105
+ &[data-icon-position="center"] {
106
+ --_sf-fd-bn: row;
107
+ }
108
+
109
+ &:hover {
110
+ --_sf-hr-bd-cr: var(
111
+ --_ctm-mob-dn-rm-bn-hr-se-bd-cr,
112
+ var(--_ctm-tab-dn-rm-bn-hr-se-bd-cr, var(--_ctm-dn-rm-bn-hr-se-bd-cr))
113
+ );
114
+ --_sf-hr-br-cr: var(
115
+ --_ctm-mob-dn-rm-bn-hr-se-br-cr,
116
+ var(--_ctm-tab-dn-rm-bn-hr-se-br-cr, var(--_ctm-dn-rm-bn-hr-se-br-cr))
117
+ );
118
+ --_sf-hr-br-se: var(
119
+ --_ctm-mob-dn-rm-bn-hr-se-br-se,
120
+ var(--_ctm-tab-dn-rm-bn-hr-se-br-se, var(--_ctm-dn-rm-bn-hr-se-br-se))
121
+ );
122
+ --_sf-hr-br-wh: var(
123
+ --_ctm-mob-dn-rm-bn-hr-se-br-wh,
124
+ var(--_ctm-tab-dn-rm-bn-hr-se-br-wh, var(--_ctm-dn-rm-bn-hr-se-br-wh))
125
+ );
126
+ --_sf-hr-br-rs: var(
127
+ --_ctm-mob-dn-rm-bn-hr-se-br-rs,
128
+ var(--_ctm-tab-dn-rm-bn-hr-se-br-rs, var(--_ctm-dn-rm-bn-hr-se-br-rs))
129
+ );
130
+ --_sf-hr-at: var(
131
+ --_ctm-mob-dn-rm-bn-hr-se-at,
132
+ var(--_ctm-tab-dn-rm-bn-hr-se-at, var(--_ctm-dn-rm-bn-hr-se-at))
133
+ );
134
+ --_sf-hr-gp: var(
135
+ --_ctm-mob-dn-rm-bn-hr-se-gp,
136
+ var(--_ctm-tab-dn-rm-bn-hr-se-gp, var(--_ctm-dn-rm-bn-hr-se-gp))
137
+ );
138
+
139
+ // for shadow
140
+ --_sf-hr-sw-ae: var(
141
+ --_ctm-mob-dn-rm-bn-hr-se-sw-ae,
142
+ var(--_ctm-tab-dn-rm-bn-hr-se-sw-ae, var(--_ctm-dn-rm-bn-hr-se-sw-ae))
143
+ );
144
+ --_sf-hr-sw-br: var(
145
+ --_ctm-mob-dn-rm-bn-hr-se-sw-br,
146
+ var(--_ctm-tab-dn-rm-bn-hr-se-sw-br, var(--_ctm-dn-rm-bn-hr-se-sw-br))
147
+ );
148
+ --_sf-hr-sw-hr: var(
149
+ --_ctm-mob-dn-rm-bn-hr-se-sw-hr,
150
+ var(--_ctm-tab-dn-rm-bn-hr-se-sw-hr, var(--_ctm-dn-rm-bn-hr-se-sw-hr))
151
+ );
152
+ --_sf-hr-sw-cr: var(
153
+ --_ctm-mob-dn-rm-bn-hr-se-sw-cr,
154
+ var(--_ctm-tab-dn-rm-bn-hr-se-sw-cr, var(--_ctm-dn-rm-bn-hr-se-sw-cr))
155
+ );
156
+
157
+ // for font
158
+
159
+ --_sf-hr-cr: var(
160
+ --_ctm-mob-dn-rm-bn-hr-se-cr,
161
+ var(--_ctm-tab-dn-rm-bn-hr-se-cr, var(--_ctm-dn-rm-bn-hr-se-cr))
162
+ );
163
+ --_sf-hr-ft-fy: var(
164
+ --_ctm-mob-dn-rm-bn-hr-se-ft-fy,
165
+ var(--_ctm-tab-dn-rm-bn-hr-se-ft-fy, var(--_ctm-dn-rm-bn-hr-se-ft-fy))
166
+ );
167
+ --_sf-hr-ft-se: var(
168
+ --_ctm-mob-dn-rm-bn-hr-se-ft-se,
169
+ var(--_ctm-tab-dn-rm-bn-hr-se-ft-se, var(--_ctm-dn-rm-bn-hr-se-ft-se))
170
+ );
171
+ --_sf-hr-ft-wt: var(
172
+ --_ctm-mob-dn-rm-bn-hr-se-ft-wt,
173
+ var(--_ctm-tab-dn-rm-bn-hr-se-ft-wt, var(--_ctm-dn-rm-bn-hr-se-ft-wt))
174
+ );
175
+ --_sf-hr-ft-se-ic: var(
176
+ --_ctm-mob-dn-rm-bn-hr-se-ft-se-ic,
177
+ var(--_ctm-tab-dn-rm-bn-hr-se-ft-se-ic, var(--_ctm-dn-rm-bn-hr-se-ft-se-ic))
178
+ );
179
+ --_sf-hr-tt-an: var(
180
+ --_ctm-mob-dn-rm-bn-hr-se-tt-an,
181
+ var(--_ctm-tab-dn-rm-bn-hr-se-tt-an, var(--_ctm-dn-rm-bn-hr-se-tt-an))
182
+ );
183
+ --_sf-hr-lr-sg: var(
184
+ --_ctm-mob-dn-rm-bn-hr-se-lr-sg,
185
+ var(--_ctm-tab-dn-rm-bn-hr-se-lr-sg, var(--_ctm-dn-rm-bn-hr-se-lr-sg))
186
+ );
187
+ --_sf-hr-le-ht: var(
188
+ --_ctm-mob-dn-rm-bn-hr-se-le-ht,
189
+ var(--_ctm-tab-dn-rm-bn-hr-se-le-ht, var(--_ctm-dn-rm-bn-hr-se-le-ht))
190
+ );
191
+
192
+ --_sf-hr-in-se: var(
193
+ --_ctm-mob-dn-rm-bn-hr-se-in-se,
194
+ var(--_ctm-tab-dn-rm-bn-hr-se-in-se, var(--_ctm-dn-rm-bn-hr-se-in-se))
195
+ );
196
+ --_sf-hr-in-se: var(
197
+ --_ctm-mob-dn-rm-bn-hr-se-in-se,
198
+ var(--_ctm-tab-dn-rm-bn-hr-se-in-se, var(--_ctm-dn-rm-bn-hr-se-in-se))
199
+ );
200
+ --_sf-hr-in-c1: var(
201
+ --_ctm-mob-dn-rm-bn-hr-se-in-c1,
202
+ var(--_ctm-tab-dn-rm-bn-hr-se-in-c1, var(--_ctm-dn-rm-bn-hr-se-in-c1))
203
+ );
204
+ --_sf-hr-ue: var(
205
+ --_ctm-mob-dn-rm-bn-hr-se-ue,
206
+ var(--_ctm-tab-dn-rm-bn-hr-se-ue, var(--_ctm-dn-rm-bn-hr-se-ue))
207
+ );
208
+
209
+ // for pading and width
210
+ --_sf-hr-pg: var(
211
+ --_ctm-mob-dn-rm-bn-hr-pg,
212
+ var(--_ctm-tab-dn-rm-bn-hr-pg, var(--_ctm-dn-rm-bn-hr-pg))
213
+ );
214
+ --_sf-hr-wh: var(
215
+ --_ctm-mob-dn-rm-bn-hr-wh,
216
+ var(--_ctm-tab-dn-rm-bn-hr-wh, var(--_ctm-dn-rm-bn-hr-wh))
217
+ );
218
+
219
+ &[data-hover-show-shadow="false"] {
220
+ --_hover-show-shadow: none;
221
+ }
222
+ &[data-hover-show-icon="false"] {
223
+ --_hover-show-icon: none;
224
+ }
225
+ }
226
+ background-color: var(--_sf-hr-bd-cr, prepareMediaVariable(--_ctm-dn-bn-ss-dt-se-bd-cr));
227
+ white-space: nowrap;
228
+ padding: var(--_sf-hr-pg, prepareMediaVariable(--_ctm-dn-bn-ss-dt-se-pg));
229
+ width: var(--_sf-hr-wh, prepareMediaVariable(--_ctm-dn-bn-ss-dt-se-wh));
230
+ display: flex;
231
+ flex-direction: var(--_sf-fd-bn);
232
+ align-items: center;
233
+
234
+ justify-content: var(--_sf-hr-at, prepareMediaVariable(--_ctm-dn-bn-ss-dt-se-at));
235
+ gap: var(--_sf-hr-gp, prepareMediaVariable(--_ctm-dn-bn-ss-dt-se-gp));
236
+
237
+ border-radius: var(--_sf-hr-br-rs, prepareMediaVariable(--_ctm-dn-bn-ss-dt-se-br-rs));
238
+
239
+ box-shadow: var(--_sf-hr-sw-ae, prepareMediaVariable(--_ctm-dn-bn-ss-dt-se-sw-ae))
240
+ var(--_sf-hr-sw-br, prepareMediaVariable(--_ctm-dn-bn-ss-dt-se-sw-br))
241
+ var(--_sf-hr-sw-sd, prepareMediaVariable(--_ctm-dn-bn-ss-dt-se-sw-sd))
242
+ var(--_sf-hr-sw-cr, prepareMediaVariable(--_ctm-dn-bn-ss-dt-se-sw-cr));
243
+
244
+ &[data-show-border="true"] {
245
+ border-color: var(--_sf-hr-br-cr, prepareMediaVariable(--_ctm-dn-bn-ss-dt-se-br-cr));
246
+
247
+ border-style: var(--_sf-hr-br-se, prepareMediaVariable(--_ctm-dn-bn-ss-dt-se-br-se));
248
+
249
+ border-width: var(--_sf-hr-br-wh, prepareMediaVariable(--_ctm-dn-bn-ss-dt-se-br-wh));
250
+ }
251
+
252
+ .txt {
253
+ display: flex;
254
+
255
+ color: var(--_sf-hr-cr, prepareMediaVariable(--_ctm-dn-bn-ss-dt-se-cr));
256
+
257
+ font-family: var(--_sf-hr-ft-fy, prepareMediaVariable(--_ctm-dn-bn-ss-dt-se-ft-fy));
258
+
259
+ font-size: var(--_sf-hr-ft-se, prepareMediaVariable(--_ctm-dn-bn-ss-dt-se-ft-se));
260
+
261
+ font-weight: var(--_sf-hr-ft-wt, prepareMediaVariable(--_ctm-dn-bn-ss-dt-se-ft-wt));
262
+
263
+ font-style: var(--_sf-hr-ft-se-ic, prepareMediaVariable(--_ctm-dn-bn-ss-dt-se-ft-se-ic));
264
+
265
+ text-align: var(--_sf-hr-tt-an, prepareMediaVariable(--_ctm-dn-bn-ss-dt-se-tt-an));
266
+
267
+ letter-spacing: var(--_sf-hr-lr-sg, prepareMediaVariable(--_ctm-dn-bn-ss-dt-se-lr-sg));
268
+
269
+ line-height: var(--_sf-hr-le-ht, prepareMediaVariable(--_ctm-dn-bn-ss-dt-se-le-ht));
270
+
271
+ text-decoration: var(--_sf-hr-ue, prepareMediaVariable(--_ctm-dn-dt-ue));
272
+ }
273
+
274
+ .icon {
275
+ display: var(--_hover-show-icon, var(--_show-icon, flex));
276
+ svg {
277
+ width: var(--_sf-hr-in-se, prepareMediaVariable(--_ctm-dn-bn-ss-dt-se-in-se));
278
+ height: var(--_sf-hr-in-se, prepareMediaVariable(--_ctm-dn-bn-ss-dt-se-in-se));
279
+
280
+ path {
281
+ stroke: var(--_sf-hr-in-c1, prepareMediaVariable(--_ctm-dn-bn-ss-dt-se-in-c1));
282
+ }
283
+ }
284
+ }
285
+ [data-element-style="Text"] {
286
+ display: inline-block;
287
+ width: 100%;
288
+ }
289
+
290
+ .icon--hover {
291
+ // position: absolute;
292
+ // inset: 0;
293
+ // opacity: 0;
294
+ display: none;
295
+ transition: opacity 0.2s ease;
296
+ }
297
+
298
+ &:hover .icon--hover {
299
+ // opacity: 1;
300
+ display: flex;
301
+ }
302
+
303
+ &:hover .icon--default {
304
+ // opacity: 0;
305
+ display: none;
306
+ }
307
+ }
308
+ }
309
+ .search__button {
310
+ background-color: blue;
311
+ color: white;
312
+ white-space: nowrap;
313
+ padding: 8px 12px;
314
+ border-radius: 4px;
87
315
  }
88
316
 
89
317
  .search-wrapper {
90
318
  display: flex;
319
+ flex-direction: var(--_sf-fd, row);
91
320
  align-items: center;
92
321
  width: 100%;
93
322
  height: 100%;
@@ -259,11 +488,15 @@
259
488
  // background: #0056b3;
260
489
  // }
261
490
  }
491
+ &[data-icon-position="Right"] {
492
+ --_sf-fd: row-reverse;
493
+ --_sf-jc: flex-end;
494
+ }
262
495
  }
263
496
 
264
497
  .dropdown__options {
265
498
  list-style: none;
266
- margin: 3px 0 0;
499
+ // margin: 3px 0 0;
267
500
  max-height: 200px;
268
501
  overflow-y: auto;
269
502
  border: 1px solid var(--_gray-200);
@@ -272,6 +505,8 @@
272
505
  position: absolute;
273
506
  width: 100%;
274
507
  z-index: 1000;
508
+ // top: 58px;
509
+ top: calc(var(--_ctm-mob-lt-ht, var(--_ctm-tab-lt-ht, var(--_ctm-lt-ht))) + 4px);
275
510
  // display: none; /* Hidden by default */
276
511
  cursor: pointer;
277
512
  transition: background 0.2s;
@@ -25,6 +25,7 @@ interface selfLayoutInterface {
25
25
  afterLoginDynamicLabel1: CMSIBCommonInterface;
26
26
  afterLoginDynamicLabel2: CMSIBCommonInterface;
27
27
  textAvatarSize: CMSIBCommonInterface;
28
+ alignment: CMSIBCommonInterface;
28
29
  }
29
30
  interface selfContentInterface {
30
31
  selectorKey: string;
@@ -105,6 +106,17 @@ export interface selfDesignInterface {
105
106
  selectorKey: string;
106
107
  [key: string]: any;
107
108
  };
109
+ icon: {
110
+ selectorKey: string;
111
+ defaultState: {
112
+ selectorKey: string;
113
+ [key: string]: any;
114
+ };
115
+ hoverState: {
116
+ selectorKey: string;
117
+ [key: string]: any;
118
+ };
119
+ };
108
120
  }
109
121
  export declare enum profileSelectorKeysEnum {
110
122
  LAYOUT = "layout",
@@ -120,7 +132,10 @@ export declare enum profileSelectorKeysEnum {
120
132
  DROPDOWN_ITEMS_DEFAULT_STYLE = "dropdownItemsDefaultStyle",
121
133
  DROPDOWN_CONTAINER_STYLE = "dropdownContainerStyle",
122
134
  EXPAND_ICON = "expandIcon",
123
- COLLAPSE_ICON = "collapseIcon"
135
+ COLLAPSE_ICON = "collapseIcon",
136
+ ICON = "icon",
137
+ DEFAULT_STATE = "defaultState",
138
+ HOVER_STATE = "hoverState"
124
139
  }
125
140
  export declare const getDefaultData: () => CMSElementEditPopupInterface<selfLayoutInterface & CMSElementEditPopupLayoutInterface, selfDesignInterface & selfContentInterface & CMSElementEditPopupDesignInterface>;
126
141
  export {};
@@ -105,6 +105,12 @@ export declare const getDefaultData: () => {
105
105
  property: string;
106
106
  propertyType: CMSElementEditTypes;
107
107
  };
108
+ dropdownGapBetweenItems: {
109
+ value: string;
110
+ unit: number;
111
+ property: string;
112
+ propertyType: CMSElementEditTypes;
113
+ };
108
114
  dropdownWidth: {
109
115
  value: string;
110
116
  unit: number;
@@ -42,6 +42,44 @@ interface selfDesignInterface {
42
42
  arrowSize: CMSIBCommonInterface;
43
43
  arrowColor: CMSIBCommonInterface;
44
44
  };
45
+ iconActions: {
46
+ selectorKey: string;
47
+ viewIcon: {
48
+ selectorKey: string;
49
+ showIcon: CMSIBCommonInterface;
50
+ iconSize: CMSIBCommonInterface;
51
+ iconColor: CMSIBCommonInterface;
52
+ icon: CMSIBCommonInterface;
53
+ };
54
+ printIcon: {
55
+ selectorKey: string;
56
+ showIcon: CMSIBCommonInterface;
57
+ iconSize: CMSIBCommonInterface;
58
+ iconColor: CMSIBCommonInterface;
59
+ icon: CMSIBCommonInterface;
60
+ };
61
+ downloadIcon: {
62
+ selectorKey: string;
63
+ showIcon: CMSIBCommonInterface;
64
+ iconSize: CMSIBCommonInterface;
65
+ iconColor: CMSIBCommonInterface;
66
+ icon: CMSIBCommonInterface;
67
+ };
68
+ cancelIcon: {
69
+ selectorKey: string;
70
+ showIcon: CMSIBCommonInterface;
71
+ iconSize: CMSIBCommonInterface;
72
+ iconColor: CMSIBCommonInterface;
73
+ icon: CMSIBCommonInterface;
74
+ };
75
+ sendMessageIcon: {
76
+ selectorKey: string;
77
+ showIcon: CMSIBCommonInterface;
78
+ iconSize: CMSIBCommonInterface;
79
+ iconColor: CMSIBCommonInterface;
80
+ icon: CMSIBCommonInterface;
81
+ };
82
+ };
45
83
  }
46
84
  export declare enum SelectorKeysEnum {
47
85
  LAYOUT = "layout",
@@ -52,7 +90,13 @@ export declare enum SelectorKeysEnum {
52
90
  RFQ_ID = "rfqId",
53
91
  RAISED_ON = "raisedOn",
54
92
  RFQ_STATUS = "rfqStatus",
55
- PAGINATION_ARROWS = "pagination-arrows"
93
+ PAGINATION_ARROWS = "pagination-arrows",
94
+ ICON_ACTIONS = "iconActions",
95
+ VIEW_ICON = "viewIcon",
96
+ PRINT_ICON = "printIcon",
97
+ DOWNLOAD_ICON = "downloadIcon",
98
+ CANCEL_ICON = "cancelIcon",
99
+ SEND_MESSAGE_ICON = "sendMessageIcon"
56
100
  }
57
101
  export declare const getDefaultData: () => CMSElementEditPopupInterface<selfLayoutInterface & CMSElementEditPopupLayoutInterface, selfDesignInterface & CMSElementEditPopupDesignInterface>;
58
102
  export {};
@@ -1,3 +1,4 @@
1
+ import { CMSCSSUnitTypesEnums, CMSElementEditTypes } from "../../enums";
1
2
  import { CMSIBCommonInterface } from "../../interfaces/global";
2
3
  import { CMSElementEditPopupDesignInterface, CMSElementEditPopupInterface, CMSElementEditPopupLayoutInterface } from "./common";
3
4
  interface selfLayoutInterface {
@@ -5,11 +6,23 @@ interface selfLayoutInterface {
5
6
  whenClicked: CMSIBCommonInterface;
6
7
  showSearchText: CMSIBCommonInterface;
7
8
  searchText: CMSIBCommonInterface;
9
+ iconPosition: CMSIBCommonInterface;
10
+ searchControl: CMSIBCommonInterface;
8
11
  showNoOfItems: CMSIBCommonInterface;
9
12
  searchPlaceholderText: CMSIBCommonInterface;
13
+ buttonPlaceholderText: CMSIBCommonInterface;
10
14
  }
11
15
  export interface selfDesignInterface {
12
16
  selectorKey: string;
17
+ searchContainer: {
18
+ selectorKey: string;
19
+ itemGap: {
20
+ value: CMSCSSUnitTypesEnums;
21
+ unit: CMSCSSUnitTypesEnums;
22
+ property: string;
23
+ propertyType: CMSElementEditTypes;
24
+ };
25
+ };
13
26
  searchBar: {
14
27
  selectorKey: string;
15
28
  backgroundColor: CMSIBCommonInterface;
@@ -71,6 +84,7 @@ export interface selfDesignInterface {
71
84
  characterSpacing: CMSIBCommonInterface;
72
85
  lineHeight: CMSIBCommonInterface;
73
86
  };
87
+ buttonStyles: any;
74
88
  }
75
89
  export declare enum searchSelectorKeysEnum {
76
90
  LAYOUT = "layout",
@@ -80,7 +94,12 @@ export declare enum searchSelectorKeysEnum {
80
94
  SEARCH_ICON = "searchIcon",
81
95
  SEARCH_BAR_FOCUS = "searchBarFocus",
82
96
  MINI_CART_TEXT = "miniSearchText",
83
- DROPDOWN_DISPLAY_STYLE = "dropdownDisplayStyle"
97
+ DROPDOWN_DISPLAY_STYLE = "dropdownDisplayStyle",
98
+ BUTTON_STYLES = "buttonStyles",
99
+ HOVER_STATE = "hoverState",
100
+ DEFAULT_STATE = "defaultState",
101
+ SELECTED_STATE = "selected",
102
+ SEARCHBAR_CONTAINER = "searchBarContainer"
84
103
  }
85
104
  export declare const getDefaultData: () => CMSElementEditPopupInterface<selfLayoutInterface & CMSElementEditPopupLayoutInterface, selfDesignInterface & CMSElementEditPopupDesignInterface>;
86
105
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sc-360-v2/storefront-cms-library",
3
- "version": "0.5.43",
3
+ "version": "0.5.44",
4
4
  "main": "/dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {