@sc-360-v2/storefront-cms-library 0.4.36 → 0.4.38

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.
@@ -153,6 +153,10 @@
153
153
  }
154
154
  }
155
155
 
156
+ a:has(> img.text-element) {
157
+ max-height: 100%;
158
+ }
159
+
156
160
  .text-element {
157
161
  // background: #6d96e4;
158
162
  // padding: 10px;
@@ -0,0 +1,88 @@
1
+ @use "sass:map";
2
+ @use "sass:list";
3
+ @use "./functions.scss" as *;
4
+
5
+ // how to use for buttons for theming
6
+ // primary => .thm__btn.btn__sm.primary
7
+ // secondary => .thm__btn.btn__md.secondary
8
+ // tertiary => .thm__btn.btn__lg.tertiary
9
+
10
+ @function getPropertyValueV1($type: "py", $prop: "bg", $state: "dt") {
11
+ $keys: (
12
+ "bg": "--_thm-#{$type}-bs-#{$state}-se-bd-cr",
13
+ "ft": "--_thm-#{$type}-bs-#{$state}-se-tt-cr",
14
+ );
15
+ @return map.get($keys, $prop);
16
+ }
17
+
18
+ $data: (
19
+ size: (
20
+ btn__sm: (
21
+ padding: 12px 24px,
22
+ font-size: 14px,
23
+ ),
24
+ btn__md: (
25
+ padding: 12px 24px,
26
+ font-size: 14px,
27
+ ),
28
+ btn__lg: (
29
+ padding: 12px 24px,
30
+ font-size: 14px,
31
+ ),
32
+ ),
33
+ commonKeys: (
34
+ primary: "py",
35
+ secondary: "sy",
36
+ tertiary: "ty",
37
+ ),
38
+ );
39
+ .thm__btn {
40
+ border-radius: var(--_thm-py-bs-dt-se-br-rs);
41
+
42
+ @each $k1, $k2 in $data {
43
+ @if ($k1 == "size") {
44
+ @each $sizeKey, $sizeValue in $k2 {
45
+ &.#{$sizeKey} {
46
+ @each $propKey, $propValue in $sizeValue {
47
+ #{$propKey}: $propValue;
48
+ }
49
+ }
50
+ }
51
+ }
52
+ @if ($k1 == "commonKeys") {
53
+ @each $typeKey, $typeValue in $k2 {
54
+ &.#{$typeKey} {
55
+ background-color: var(
56
+ --_sf-bg-clr,
57
+ #{prepareMediaVariable(getPropertyValueV1($typeValue, "bg", "dt"))}
58
+ );
59
+ color: var(
60
+ --_sf-ft-clr,
61
+ #{prepareMediaVariable(getPropertyValueV1($typeValue, "ft", "dt"))}
62
+ );
63
+ &:hover {
64
+ --_sf-bg-clr: #{prepareMediaVariable(getPropertyValueV1($typeValue, "bg", "hr"))};
65
+ --_sf-ft-clr: #{prepareMediaVariable(getPropertyValueV1($typeValue, "ft", "hr"))};
66
+ }
67
+ }
68
+ }
69
+ }
70
+ }
71
+ &:has(svg) {
72
+ gap: 8px;
73
+ }
74
+ // &.danger {
75
+ // background-color: var(--_error-700);
76
+ // color: var(--_base-white);
77
+ // &:hover {
78
+ // @include BgColorLighter(var(--_error-700), 90%);
79
+ // }
80
+ // }
81
+ // &.danger.tertiary {
82
+ // background-color: transparent;
83
+ // color: var(--_error-700);
84
+ // &:hover {
85
+ // @include BgColorLighter(var(--_error-700), 10%);
86
+ // }
87
+ // }
88
+ }
@@ -30,13 +30,13 @@
30
30
  );
31
31
  margin: var(--_ctm-mob-lt-mn, var(--_ctm-tab-lt-mn, var(--_ctm-lt-mn)));
32
32
 
33
- --_aspect-ratio: calc(
34
- 1 *
35
- (
36
- var(--_ctm-mob-lt-ht, var(--_ctm-tab-lt-ht, var(--_ctm-lt-ht))) /
37
- var(--_ctm-mob-lt-wh, var(--_ctm-tab-lt-wh, var(--_ctm-lt-wh)))
38
- )
39
- );
33
+ // --_aspect-ratio: calc(
34
+ // 1 *
35
+ // (
36
+ // var(--_ctm-mob-lt-ht, var(--_ctm-tab-lt-ht, var(--_ctm-lt-ht))) /
37
+ // var(--_ctm-mob-lt-wh, var(--_ctm-tab-lt-wh, var(--_ctm-lt-wh)))
38
+ // )
39
+ // );
40
40
  & > .wrapper {
41
41
  width: 100%;
42
42
  // height: 100%;
package/dist/widget.scss CHANGED
@@ -143,3 +143,5 @@
143
143
  @use "./multi-select-dropdown.scss";
144
144
  @use "./global-styles.scss";
145
145
  @use "./default-dropdown.scss";
146
+ @use "./confirm-modal.scss";
147
+ @use "./static-global.scss";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sc-360-v2/storefront-cms-library",
3
- "version": "0.4.36",
3
+ "version": "0.4.38",
4
4
  "main": "/dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {