@sc-360-v2/storefront-cms-library 0.2.33 → 0.2.35

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 (41) hide show
  1. package/README.md +12 -12
  2. package/dist/builder.js +1 -1
  3. package/dist/button.scss +11 -11
  4. package/dist/code-temp.scss +18 -24
  5. package/dist/common-element.scss +35 -0
  6. package/dist/container.scss +4 -4
  7. package/dist/custom-fonts.scss +59 -0
  8. package/dist/faq.scss +1 -1
  9. package/dist/filters.scss +445 -0
  10. package/dist/functions.scss +148 -0
  11. package/dist/globals.scss +94 -94
  12. package/dist/grid.scss +10 -4
  13. package/dist/hotspot.scss +224 -82
  14. package/dist/icons.js +1 -1
  15. package/dist/image-temp.scss +6 -3
  16. package/dist/index.js +1 -1
  17. package/dist/past-orders.scss +112 -0
  18. package/dist/product-basic-elements.scss +2 -2
  19. package/dist/quotes.scss +112 -0
  20. package/dist/repeater.scss +1 -0
  21. package/dist/rfqs.scss +112 -0
  22. package/dist/section.scss +51 -16
  23. package/dist/sort.scss +81 -0
  24. package/dist/stack.scss +36 -3
  25. package/dist/text-temp.scss +1 -0
  26. package/dist/types/builder/elements/button/index.d.ts +1 -0
  27. package/dist/types/builder/elements/light-box-v2/index.d.ts +45 -0
  28. package/dist/types/builder/enums/index.d.ts +17 -3
  29. package/dist/types/builder/index.d.ts +2 -1
  30. package/dist/types/builder/interfaces/global.d.ts +7 -1
  31. package/dist/types/builder/tools/element-edit/allocations.d.ts +28 -0
  32. package/dist/types/builder/tools/element-edit/index.d.ts +7 -1
  33. package/dist/types/builder/tools/element-edit/lightBoxV2.d.ts +23 -0
  34. package/dist/types/builder/tools/element-edit/pastOrders.d.ts +16 -0
  35. package/dist/types/builder/tools/element-edit/product-image.d.ts +2 -2
  36. package/dist/types/builder/tools/element-edit/quotes.d.ts +28 -0
  37. package/dist/types/builder/tools/element-edit/rfqs.d.ts +28 -0
  38. package/dist/types/builder/tools/element-edit/staticText.d.ts +16 -0
  39. package/dist/variant-picker.scss +1 -1
  40. package/dist/widget.scss +6 -0
  41. package/package.json +1 -1
@@ -0,0 +1,112 @@
1
+ @use "sass:map";
2
+ @use "sass:list";
3
+
4
+ $resizerId: "[data-cms-tool='cms-element-resizer']";
5
+ $resizeActive: '[data-cms-element-resizer="true"]';
6
+ [data-div-type="element"] {
7
+ &[data-element-type="pastOrders"] {
8
+ width: var(--_sf-el-wh-st-mx, calc(1% * var(--_ctm-ele-nw-wh-vl, var(--_sf-nw-wh))));
9
+ margin: var(--_ctm-lt-mn, --_tst-lt-mn);
10
+
11
+ & > div {
12
+ &.wrapper {
13
+ width: 100%;
14
+ }
15
+ }
16
+
17
+ .pastOrders_wrapper {
18
+ display: flex;
19
+ flex-direction: column;
20
+ align-items: flex-start;
21
+ align-self: stretch;
22
+ border-radius: 4px;
23
+ border: 1px solid var(--_primary-100);
24
+ background: #fff;
25
+
26
+ .heading {
27
+ display: flex;
28
+ padding: 16px;
29
+ align-items: center;
30
+ gap: 8px;
31
+ align-self: stretch;
32
+ border-bottom: 1px solid var(--_gray-200);
33
+
34
+ .title {
35
+ color: var(--_gray-900);
36
+ font-size: 20px;
37
+ font-weight: 600;
38
+ line-height: 30px;
39
+ }
40
+ }
41
+
42
+ .order_row {
43
+ display: flex;
44
+ flex-direction: column;
45
+ justify-content: center;
46
+ align-items: center;
47
+ align-self: stretch;
48
+ border-radius: 0px 0px 6px 6px;
49
+
50
+ .order_content {
51
+ display: flex;
52
+ padding: 12px 16px;
53
+ flex-direction: column;
54
+ justify-content: center;
55
+ align-items: flex-start;
56
+ gap: 12px;
57
+ flex-shrink: 0;
58
+ align-self: stretch;
59
+
60
+ .heading_wrapper {
61
+ display: flex;
62
+ align-items: center;
63
+ gap: 16px;
64
+ flex: 1 0 0;
65
+ width: 100%;
66
+
67
+ .order_id {
68
+ color: var(--_gray-900);
69
+ font-size: 14px;
70
+ font-weight: 600;
71
+ line-height: 20px;
72
+ flex: 1 0 0;
73
+ }
74
+
75
+ .status_badge {
76
+ display: flex;
77
+ padding: 2px 8px 2px 6px;
78
+ align-items: center;
79
+ gap: 4px;
80
+ border-radius: 16px;
81
+ background: #fff4ed;
82
+ mix-blend-mode: multiply;
83
+
84
+ .order_status {
85
+ color: #b93815;
86
+ text-align: center;
87
+ font-size: 12px;
88
+ line-height: 18px;
89
+ }
90
+ }
91
+
92
+ .order_date {
93
+ color: var(--_gray-700);
94
+ font-size: 12px;
95
+ font-weight: 400;
96
+ line-height: 18px;
97
+ flex: 1 0 0;
98
+ }
99
+
100
+ .order_amount {
101
+ color: var(--_gray-900);
102
+ text-align: right;
103
+ font-size: 14px;
104
+ font-weight: 600;
105
+ line-height: 20px;
106
+ }
107
+ }
108
+ }
109
+ }
110
+ }
111
+ }
112
+ }
@@ -6,7 +6,6 @@
6
6
  &[data-element-type="productName"],
7
7
  &[data-element-type="brandName"],
8
8
  &[data-element-type="categoryName"] {
9
- word-break: break-all;
10
9
  // width: var(--_lt-wh);
11
10
  // height: var(--_lt-ht);
12
11
  // margin: var(--_lt-mn);
@@ -15,6 +14,8 @@
15
14
  // width: var(--_sf-nw-wh, var(--_tst-lt-wh));
16
15
  width: var(--_sf-el-wh-st-mx, calc(1% * var(--_ctm-ele-nw-wh-vl, var(--_sf-nw-wh))));
17
16
  margin: var(--_ctm-lt-mn, --_tst-lt-mn);
17
+ word-break: break-all;
18
+
18
19
  // height: var(--_ctm-lt-ht, var(--_tst-lt-ht));
19
20
  // height: ;
20
21
  // aspect-ratio: 1 / var(--_sf-aspect-ratio);
@@ -42,7 +43,6 @@
42
43
  word-break: break-all;
43
44
  }
44
45
  .text-element {
45
- word-break: break-all;
46
46
  background-color: var(--_ctm-dn-bd-cr, var(--_tst-dn-bd-cr));
47
47
  padding: var(--_ctm-lt-pg, var(--_tst-lt-pg));
48
48
  display: flex;
@@ -0,0 +1,112 @@
1
+ @use "sass:map";
2
+ @use "sass:list";
3
+
4
+ $resizerId: "[data-cms-tool='cms-element-resizer']";
5
+ $resizeActive: '[data-cms-element-resizer="true"]';
6
+ [data-div-type="element"] {
7
+ &[data-element-type="quotes"] {
8
+ width: var(--_sf-el-wh-st-mx, calc(1% * var(--_ctm-ele-nw-wh-vl, var(--_sf-nw-wh))));
9
+ margin: var(--_ctm-lt-mn, --_tst-lt-mn);
10
+
11
+ & > div {
12
+ &.wrapper {
13
+ width: 100%;
14
+ }
15
+ }
16
+
17
+ .quotes_wrapper {
18
+ display: flex;
19
+ flex-direction: column;
20
+ align-items: flex-start;
21
+ align-self: stretch;
22
+ border-radius: 4px;
23
+ border: 1px solid var(--_primary-100);
24
+ background: #fff;
25
+
26
+ .heading_wrapper {
27
+ display: flex;
28
+ padding: 16px;
29
+ align-items: center;
30
+ gap: 8px;
31
+ align-self: stretch;
32
+ border-bottom: 1px solid var(--_gray-200);
33
+
34
+ .heading {
35
+ color: var(--_gray-900);
36
+ font-size: 20px;
37
+ font-weight: 600;
38
+ line-height: 30px;
39
+ }
40
+ }
41
+
42
+ .metric_item {
43
+ display: flex;
44
+ flex-direction: column;
45
+ align-items: center;
46
+ flex: 1 0 0;
47
+ align-self: stretch;
48
+ border-radius: 0px 0px 6px 6px;
49
+
50
+ .content {
51
+ display: flex;
52
+ padding: 12px 16px;
53
+ flex-direction: column;
54
+ justify-content: center;
55
+ align-items: flex-start;
56
+ gap: 12px;
57
+ flex: 1 0 0;
58
+ align-self: stretch;
59
+
60
+ .metric_wrapper {
61
+ display: flex;
62
+ align-items: center;
63
+ gap: 16px;
64
+ flex: 1 0 0;
65
+ align-self: stretch;
66
+
67
+ .quote_id {
68
+ flex: 1 0 0;
69
+ color: var(--_gray-900);
70
+ font-size: 14px;
71
+ font-weight: 600;
72
+ line-height: 20px;
73
+ }
74
+
75
+ .status_badge {
76
+ display: flex;
77
+ padding: 2px 8px 2px 6px;
78
+ align-items: center;
79
+ gap: 4px;
80
+ border-radius: 16px;
81
+ background: #fff4ed;
82
+ mix-blend-mode: multiply;
83
+
84
+ .quote_status {
85
+ color: #b93815;
86
+ text-align: center;
87
+ font-size: 12px;
88
+ line-height: 18px;
89
+ }
90
+ }
91
+
92
+ .quote_updated_date {
93
+ flex: 1 0 0;
94
+ color: var(--_gray-700);
95
+ font-size: 12px;
96
+ font-weight: 400;
97
+ line-height: 18px;
98
+ }
99
+
100
+ .quotes_amount {
101
+ color: var(--_gray-900);
102
+ text-align: right;
103
+ font-size: 14px;
104
+ font-weight: 600;
105
+ line-height: 20px;
106
+ }
107
+ }
108
+ }
109
+ }
110
+ }
111
+ }
112
+ }
@@ -23,6 +23,7 @@ $childItemSelector: '[data-element-type="repeater-item"]';
23
23
  --_ctm-mob-rep-dn-bd-cr,
24
24
  var(--_ctm-tab-rep-dn-bd-cr, var(--_ctm-rep-dn-bd-cr))
25
25
  );
26
+ padding: var(--_ctm-mob-rep-lt-pg, var(--_ctm-tab-rep-lt-pg, var(--_ctm-rep-lt-pg)));
26
27
 
27
28
  &.grd {
28
29
  & > div {
package/dist/rfqs.scss ADDED
@@ -0,0 +1,112 @@
1
+ @use "sass:map";
2
+ @use "sass:list";
3
+
4
+ $resizerId: "[data-cms-tool='cms-element-resizer']";
5
+ $resizeActive: '[data-cms-element-resizer="true"]';
6
+ [data-div-type="element"] {
7
+ &[data-element-type="rfqs"] {
8
+ width: var(--_sf-el-wh-st-mx, calc(1% * var(--_ctm-ele-nw-wh-vl, var(--_sf-nw-wh))));
9
+ margin: var(--_ctm-lt-mn, --_tst-lt-mn);
10
+
11
+ & > div {
12
+ &.wrapper {
13
+ width: 100%;
14
+ }
15
+ }
16
+
17
+ .rfqs_wrapper {
18
+ display: flex;
19
+ flex-direction: column;
20
+ align-items: flex-start;
21
+ align-self: stretch;
22
+ border-radius: 4px;
23
+ border: 1px solid var(--_primary-100);
24
+ background: #fff;
25
+
26
+ .heading_wrapper {
27
+ display: flex;
28
+ padding: 16px;
29
+ align-items: center;
30
+ gap: 8px;
31
+ align-self: stretch;
32
+ border-bottom: 1px solid var(--_gray-200);
33
+
34
+ .heading {
35
+ color: var(--_gray-900);
36
+ font-size: 20px;
37
+ font-weight: 600;
38
+ line-height: 30px;
39
+ }
40
+ }
41
+
42
+ .metric_item {
43
+ display: flex;
44
+ flex-direction: column;
45
+ align-items: center;
46
+ flex: 1 0 0;
47
+ align-self: stretch;
48
+ border-radius: 0px 0px 6px 6px;
49
+
50
+ .content {
51
+ display: flex;
52
+ padding: 12px 16px;
53
+ flex-direction: column;
54
+ justify-content: center;
55
+ align-items: flex-start;
56
+ gap: 12px;
57
+ flex: 1 0 0;
58
+ align-self: stretch;
59
+
60
+ .metric_wrapper {
61
+ display: flex;
62
+ align-items: center;
63
+ gap: 16px;
64
+ flex: 1 0 0;
65
+ align-self: stretch;
66
+
67
+ .rfq_id {
68
+ flex: 1 0 0;
69
+ color: var(--_gray-900);
70
+ font-size: 14px;
71
+ font-weight: 600;
72
+ line-height: 20px;
73
+ }
74
+
75
+ .status_badge {
76
+ display: flex;
77
+ padding: 2px 8px 2px 6px;
78
+ align-items: center;
79
+ gap: 4px;
80
+ border-radius: 16px;
81
+ background: #fff4ed;
82
+ mix-blend-mode: multiply;
83
+
84
+ .rfq_status {
85
+ color: #b93815;
86
+ text-align: center;
87
+ font-size: 12px;
88
+ line-height: 18px;
89
+ }
90
+ }
91
+
92
+ .rfq_updated_date {
93
+ flex: 1 0 0;
94
+ color: var(--_gray-700);
95
+ font-size: 12px;
96
+ font-weight: 400;
97
+ line-height: 18px;
98
+ }
99
+
100
+ .rfqs_amount {
101
+ color: var(--_gray-900);
102
+ text-align: right;
103
+ font-size: 14px;
104
+ font-weight: 600;
105
+ line-height: 20px;
106
+ }
107
+ }
108
+ }
109
+ }
110
+ }
111
+ }
112
+ }
package/dist/section.scss CHANGED
@@ -1,9 +1,41 @@
1
+ @use "sass:map";
2
+ @use "sass:list";
3
+ @use "./functions.scss" as *;
4
+
1
5
  $activeElementSelector: "[data-has-clicked='true']";
6
+ $repeterLElement: '[data-element-type="repeater"]';
7
+ $dp: "dp_d_none";
8
+ $tb: "tb_d_none";
9
+ $mb: "mb_d_none";
10
+
11
+ $rp: (
12
+ class: (
13
+ #{$tb}: (
14
+ tablet: (
15
+ display: "none !important",
16
+ ),
17
+ ),
18
+ #{$dp}: (
19
+ desktop: (
20
+ display: "none !important",
21
+ ),
22
+ ),
23
+ #{$mb}: (
24
+ mobile: (
25
+ display: "none !important",
26
+ ),
27
+ ),
28
+ ),
29
+ );
30
+
31
+ body {
32
+ @include prepareCustomClassCSSProps($rp);
33
+ }
34
+
2
35
  section {
3
36
  &[data-div-type="section"] {
4
37
  position: var(--_p-relative);
5
38
  width: 100%;
6
- display: var(--_d-flex) !important;
7
39
  flex-direction: column;
8
40
  justify-self: stretch;
9
41
  align-self: stretch;
@@ -37,6 +69,10 @@ section {
37
69
  &[data-show-border="false"] {
38
70
  --_hide-section-border: none;
39
71
  }
72
+
73
+ &:not(.#{$dp}, .#{$tb}, .#{$mb}) {
74
+ display: var(--_d-flex) !important;
75
+ }
40
76
  & > div {
41
77
  &[data-type="wrapper-layer"] {
42
78
  display: var(--_d-flex) !important;
@@ -44,6 +80,10 @@ section {
44
80
  position: var(--_p-absolute);
45
81
  visibility: visible !important;
46
82
  inset: 0 0 0 0;
83
+ // border-color: var(
84
+ // --_hide-section-border,
85
+ // var(--_ctm-mob-sec-dn-br-cr, var(--_ctm-tab-sec-dn-br-cr, var(--_ctm-sec-dn-br-cr)))
86
+ // );
47
87
  border-color: var(
48
88
  --_hide-section-border,
49
89
  var(--_ctm-mob-sec-dn-br-cr, var(--_ctm-tab-sec-dn-br-cr, var(--_ctm-sec-dn-br-cr)))
@@ -71,15 +111,18 @@ section {
71
111
  }
72
112
 
73
113
  div[data-div-type="element"] {
114
+ position: var(--_p-relative);
74
115
  & > .wrapper {
75
116
  grid-area: 1/1/2/2 !important;
76
117
  }
77
118
  &[data-view-state="full"] {
78
119
  width: auto;
79
120
  margin: 0;
121
+ cursor: auto;
80
122
  justify-self: stretch !important;
81
123
  align-self: stretch !important;
82
- cursor: auto;
124
+ // &:not(#{$repeterLElement}) {
125
+ // }
83
126
  &:is(#{$activeElementSelector}) {
84
127
  & > div {
85
128
  &[data-div-type="wrapper__layer"] {
@@ -97,10 +140,8 @@ section {
97
140
  var(
98
141
  --_ctm-mob-sta-ele-nw-wh-vl,
99
142
  var(--_ctm-tab-sta-ele-nw-wh-vl, var(--_ctm-sta-ele-nw-wh-vl))
100
- ) /
101
- 100
102
- ) *
103
- (var(--_cms-scaling-factor) - var(--_cms-scrollbar-width))
143
+ ) / 100
144
+ ) * (var(--_cms-scaling-factor) - var(--_cms-scrollbar-width))
104
145
  );
105
146
  }
106
147
  &:is([data-element-type="container"]) {
@@ -110,10 +151,8 @@ section {
110
151
  var(
111
152
  --_ctm-mob-con-ele-nw-wh-vl,
112
153
  var(--_ctm-tab-con-ele-nw-wh-vl, var(--_ctm-con-ele-nw-wh-vl))
113
- ) /
114
- 100
115
- ) *
116
- (var(--_cms-scaling-factor) - var(--_cms-scrollbar-width))
154
+ ) / 100
155
+ ) * (var(--_cms-scaling-factor) - var(--_cms-scrollbar-width))
117
156
  );
118
157
  }
119
158
 
@@ -121,13 +160,9 @@ section {
121
160
  width: max(
122
161
  0.5px,
123
162
  calc(
124
- var(
125
- --_ctm-mob-ele-nw-wh-vl,
126
- var(--_ctm-tab-ele-nw-wh-vl, var(--_ctm-ele-nw-wh-vl))
127
- ) /
163
+ var(--_ctm-mob-ele-nw-wh-vl, var(--_ctm-tab-ele-nw-wh-vl, var(--_ctm-ele-nw-wh-vl))) /
128
164
  100
129
- ) *
130
- (var(--_cms-scaling-factor) - var(--_cms-scrollbar-width))
165
+ ) * (var(--_cms-scaling-factor) - var(--_cms-scrollbar-width))
131
166
  );
132
167
  }
133
168
  }
package/dist/sort.scss ADDED
@@ -0,0 +1,81 @@
1
+ @use "sass:map";
2
+ @use "sass:list";
3
+
4
+ $resizerId: "[data-cms-tool='cms-element-resizer']";
5
+ $resizeActive: '[data-cms-element-resizer="true"]';
6
+ [data-div-type="element"] {
7
+ &[data-element-type="sort"] {
8
+ width: var(--_sf-el-wh-st-mx, calc(1% * var(--_ctm-ele-nw-wh-vl, var(--_sf-nw-wh))));
9
+ margin: var(--_ctm-lt-mn, --_tst-lt-mn);
10
+
11
+ & > div {
12
+ &.wrapper {
13
+ width: 100%;
14
+ }
15
+ }
16
+ //Dropdown
17
+ .est__dropdown__main {
18
+ position: relative;
19
+ width: 100%;
20
+ margin-top: 10px;
21
+
22
+ label {
23
+ font-size: 14px;
24
+ color: var(--_gray-700);
25
+ margin-bottom: 8px;
26
+ display: block;
27
+ }
28
+
29
+ .est__dropdown {
30
+ cursor: pointer;
31
+ position: relative;
32
+ color: var(--_gray-700);
33
+
34
+ border-radius: 6px;
35
+ background-color: #fff;
36
+ display: flex;
37
+ justify-content: space-between;
38
+ align-items: center;
39
+ width: 100%;
40
+ .value__selected {
41
+ // width: 100%;
42
+ }
43
+
44
+ &.open .list {
45
+ display: flex;
46
+ }
47
+
48
+ .list {
49
+ display: none;
50
+ flex-direction: column;
51
+ border: 1px solid var(--_gray-200);
52
+ border-radius: 6px;
53
+ position: absolute;
54
+ top: 100%;
55
+ left: 0;
56
+ width: 100%;
57
+ background-color: #fff;
58
+ border-radius: 4px;
59
+ z-index: var(--_higher-zIndex);
60
+ max-height: 200px;
61
+ overflow-y: auto;
62
+
63
+ &.top {
64
+ bottom: 100%;
65
+ top: auto;
66
+ }
67
+
68
+ .list__option {
69
+ padding: 12px;
70
+ cursor: pointer;
71
+
72
+ &:hover {
73
+ background-color: var(--_primary-25);
74
+ color: var(--_primary-400);
75
+ }
76
+ }
77
+ }
78
+ }
79
+ }
80
+ }
81
+ }
package/dist/stack.scss CHANGED
@@ -1,7 +1,36 @@
1
1
  @use "sass:map";
2
2
  @use "sass:list";
3
- [data-div-type="element"] {
4
- &[data-element-type="stack"] {
3
+ @use "./functions.scss" as *;
4
+ $es: '[data-div-type="element"]';
5
+ $ss: '[data-element-type="stack"]';
6
+ $dp: "dp_d_none";
7
+ $tb: "tb_d_none";
8
+ $mb: "mb_d_none";
9
+
10
+ $rp: (
11
+ "#{$es}#{$ss}:not(.#{$mb})": (
12
+ mobile: (
13
+ display: var(--_d-grid),
14
+ ),
15
+ ),
16
+ "#{$es}#{$ss}:not(.#{$tb})": (
17
+ tablet: (
18
+ display: var(--_d-grid),
19
+ ),
20
+ ),
21
+ "#{$es}#{$ss}:not(.#{$dp})": (
22
+ desktop: (
23
+ display: var(--_d-grid),
24
+ ),
25
+ ),
26
+ );
27
+
28
+ body {
29
+ @include prepareCustomClassCSSProps($rp);
30
+ }
31
+
32
+ #{$es} {
33
+ &#{$ss} {
5
34
  // min-width: var(--_sf-sta-nw-wh) !important;
6
35
  // min-height: var(--_ctm-sta-lt-ht, 100px) !important;
7
36
  min-width: 100px;
@@ -14,7 +43,7 @@
14
43
  --_ctm-mob-sta-dn-bd-cr,
15
44
  var(--_ctm-tab-sta-dn-bd-cr, var(--_ctm-sta-dn-bd-cr))
16
45
  );
17
- display: var(--_d-grid);
46
+ // display: var(--_d-grid);
18
47
 
19
48
  border-color: var(
20
49
  --_hide-grid-border,
@@ -31,6 +60,10 @@
31
60
  border-radius: var(--_ctm-mob-sta-dn-br-rs, var(--_ctm-tab-sta-dn-br-rs, --_ctm-sta-dn-br-rs));
32
61
  grid-template-columns: 100%;
33
62
 
63
+ // &:not(.#{$dp}, .#{$tb}, .#{$mb}) {
64
+ // display: var(--_d-grid);
65
+ // }
66
+
34
67
  &.vtl {
35
68
  // width: var(--_sf-sta-nw-wh, auto);
36
69
  width: calc(
@@ -20,6 +20,7 @@
20
20
 
21
21
  & > .wrapper {
22
22
  width: 100%;
23
+ min-height: 50px;
23
24
  // height: 100%;
24
25
  }
25
26
  &[data-show-shadow="false"] {
@@ -23,4 +23,5 @@ export interface CMSButtonInterface extends Omit<CMSElementInterface, "attribute
23
23
  };
24
24
  styles: ButtonStyleProperties;
25
25
  childrenStyles?: CommonStyleProperties;
26
+ content?: string;
26
27
  }
@@ -0,0 +1,45 @@
1
+ import { CMSHTMLAttributes } from "../../../global/attributes";
2
+ import { CommonStyleProperties } from "../../../global/style-properties";
3
+ import { DisplayValue, ResponsiveBehaviourTypes } from "../../../global/types";
4
+ import { CMSDeviceVisibilityOptionInterface } from "../../interfaces/global";
5
+ import { BuilderAttributes } from "../common";
6
+ export interface LightBoxV2StyleProperties extends CommonStyleProperties {
7
+ minHeight: string;
8
+ minWidth: string;
9
+ maxWidth: string;
10
+ maxHeight: string;
11
+ gridArea: string;
12
+ display: DisplayValue;
13
+ boxSizing: string;
14
+ rowGap: string;
15
+ columnGap: string;
16
+ gridTemplateRows: string;
17
+ gridTemplateColumns: string;
18
+ }
19
+ export declare const getDefaultStyles: () => LightBoxV2StyleProperties;
20
+ export interface CommonLightBoxV2ElementAttributes extends CMSHTMLAttributes {
21
+ role?: string;
22
+ ariaLabel?: string;
23
+ ariaDescribedBy?: string;
24
+ id?: string;
25
+ className?: string;
26
+ lang?: string;
27
+ dataMeta?: string;
28
+ }
29
+ export interface LightBoxV2ElementInterface {
30
+ id?: string | number;
31
+ uniqueKey?: string | number;
32
+ attributes?: {
33
+ BUILDER?: Pick<BuilderAttributes, "dataDivType" | "dataType" | "dataElementType" | "dataDropElement">;
34
+ HTML?: CommonLightBoxV2ElementAttributes;
35
+ CUSTOM?: any;
36
+ };
37
+ styles?: LightBoxV2StyleProperties;
38
+ editedStyles?: CommonStyleProperties;
39
+ responsiveBehaviour: ResponsiveBehaviourTypes;
40
+ children: any;
41
+ childIds: any[];
42
+ previewImage?: string;
43
+ displayName: string;
44
+ deviceVisibility?: CMSDeviceVisibilityOptionInterface;
45
+ }