@wizishop/angular-components 0.0.146 → 0.0.147

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.
@@ -1545,6 +1545,89 @@ $wac-subtitle-color: #7A87A1!default;
1545
1545
  }
1546
1546
  }
1547
1547
  }
1548
+ .wac-card-price {
1549
+ width: 100%;
1550
+ padding: 50px;
1551
+ border-radius: 3px;
1552
+ background-color: $wac-white;
1553
+ display: flex;
1554
+ flex-direction: column;
1555
+
1556
+ box-shadow: 0 rem(2) rem(5) rgba(45, 62, 85, 0.05);
1557
+
1558
+ &:hover {
1559
+ box-shadow: 0 rem(2) rem(5) rgba(45, 62, 85, 0.2);
1560
+ }
1561
+
1562
+ @include media('<desktop') {
1563
+ padding: 30px;
1564
+ }
1565
+
1566
+ @include media('<tablet') {
1567
+ padding: 20px;
1568
+ }
1569
+
1570
+ > strong {
1571
+ font-size: rem(30);
1572
+ text-align: center;
1573
+ display: block;
1574
+ width: 100%;
1575
+ font-weight: 600;
1576
+ margin: 0 0 -5px;
1577
+ }
1578
+
1579
+ > p {
1580
+ font-size: rem(20);
1581
+ text-transform: uppercase;
1582
+ margin: 0 0 30px;
1583
+ text-align: center;
1584
+ display: block;
1585
+ width: 100%;
1586
+ font-weight: 600;
1587
+ }
1588
+
1589
+ .price {
1590
+ display: flex;
1591
+ align-items: flex-end;
1592
+ width: 100%;
1593
+ justify-content: center;
1594
+ position: relative;
1595
+ color: $wac-tag-success;
1596
+ margin: 0 0 5px;
1597
+
1598
+ .amount {
1599
+ font-size: rem(50);
1600
+ font-weight: 600;
1601
+ margin: 0 5px 0 0;
1602
+ position: relative;
1603
+ line-height: 1;
1604
+ span {
1605
+ position: absolute;
1606
+ top: 5px;
1607
+ left: 100%;
1608
+ margin: 0 0 0 3px;
1609
+ display: block;
1610
+ font-size: rem(20);
1611
+ }
1612
+ }
1613
+
1614
+ .month {
1615
+ font-size: rem(20);
1616
+ margin: 0;
1617
+ font-weight: 500;
1618
+ line-height: 1;
1619
+ transform: translateY(-5px);
1620
+ }
1621
+ }
1622
+
1623
+ .subtitle {
1624
+ font-size: rem(12);
1625
+ color: $wac-subtitle-color;
1626
+ margin: 0 0 30px;
1627
+ text-align: center;
1628
+ font-style: italic;
1629
+ }
1630
+ }
1548
1631
  .wac-calendar {
1549
1632
  position: relative;
1550
1633
  margin: 0 0 20px;
@@ -2090,89 +2173,6 @@ $wac-subtitle-color: #7A87A1!default;
2090
2173
  .datetimepicker .datetimepicker-footer {
2091
2174
  display: none;
2092
2175
  }
2093
- .wac-card-price {
2094
- width: 100%;
2095
- padding: 50px;
2096
- border-radius: 3px;
2097
- background-color: $wac-white;
2098
- display: flex;
2099
- flex-direction: column;
2100
-
2101
- box-shadow: 0 rem(2) rem(5) rgba(45, 62, 85, 0.05);
2102
-
2103
- &:hover {
2104
- box-shadow: 0 rem(2) rem(5) rgba(45, 62, 85, 0.2);
2105
- }
2106
-
2107
- @include media('<desktop') {
2108
- padding: 30px;
2109
- }
2110
-
2111
- @include media('<tablet') {
2112
- padding: 20px;
2113
- }
2114
-
2115
- > strong {
2116
- font-size: rem(30);
2117
- text-align: center;
2118
- display: block;
2119
- width: 100%;
2120
- font-weight: 600;
2121
- margin: 0 0 -5px;
2122
- }
2123
-
2124
- > p {
2125
- font-size: rem(20);
2126
- text-transform: uppercase;
2127
- margin: 0 0 30px;
2128
- text-align: center;
2129
- display: block;
2130
- width: 100%;
2131
- font-weight: 600;
2132
- }
2133
-
2134
- .price {
2135
- display: flex;
2136
- align-items: flex-end;
2137
- width: 100%;
2138
- justify-content: center;
2139
- position: relative;
2140
- color: $wac-tag-success;
2141
- margin: 0 0 5px;
2142
-
2143
- .amount {
2144
- font-size: rem(50);
2145
- font-weight: 600;
2146
- margin: 0 5px 0 0;
2147
- position: relative;
2148
- line-height: 1;
2149
- span {
2150
- position: absolute;
2151
- top: 5px;
2152
- left: 100%;
2153
- margin: 0 0 0 3px;
2154
- display: block;
2155
- font-size: rem(20);
2156
- }
2157
- }
2158
-
2159
- .month {
2160
- font-size: rem(20);
2161
- margin: 0;
2162
- font-weight: 500;
2163
- line-height: 1;
2164
- transform: translateY(-5px);
2165
- }
2166
- }
2167
-
2168
- .subtitle {
2169
- font-size: rem(12);
2170
- color: $wac-subtitle-color;
2171
- margin: 0 0 30px;
2172
- text-align: center;
2173
- font-style: italic;
2174
- }
2175
- }
2176
2176
  .wac-field-checkbox {
2177
2177
  &.disable-wt {
2178
2178
  .wac-field-checkbox__row {
@@ -4239,6 +4239,7 @@
4239
4239
  function CardPriceComponent() {
4240
4240
  this.disabled = false;
4241
4241
  this.btnTextcolor = '#ffffff';
4242
+ this.extraClasses = 'is-success';
4242
4243
  this.click = new i0.EventEmitter();
4243
4244
  }
4244
4245
  CardPriceComponent.prototype.ngOnInit = function () {
@@ -4251,7 +4252,7 @@
4251
4252
  CardPriceComponent.decorators = [
4252
4253
  { type: i0.Component, args: [{
4253
4254
  selector: 'wac-card-price',
4254
- template: "<div class=\"wac-card-price\">\n <strong>{{amount}}</strong>\n <p>{{title}}</p>\n <div class=\"price\">\n <span class=\"amount\">{{price}} <span>{{currency}}</span></span><span class=\"month\">{{priceWording}}</span>\n </div>\n <div class=\"subtitle\">{{subtitle}}</div>\n <div class=\"cta\">\n <wac-button [label]=\"btnLabel\" extraClasses=\"is-success\" (click)=\"triggerClick()\" [disabled]=\"disabled\" [textcolor]=\"btnTextcolor\"></wac-button>\n </div>\n</div>\n"
4255
+ template: "<div class=\"wac-card-price\">\n <strong>{{amount}}</strong>\n <p>{{title}}</p>\n <div class=\"price\">\n <span class=\"amount\">{{price}} <span>{{currency}}</span></span><span class=\"month\">{{priceWording}}</span>\n </div>\n <div class=\"subtitle\">{{subtitle}}</div>\n <div class=\"cta\">\n <wac-button [label]=\"btnLabel\" [extraClasses]=\"extraClasses\" (click)=\"triggerClick()\" [disabled]=\"disabled\" [textcolor]=\"btnTextcolor\"></wac-button>\n </div>\n</div>\n"
4255
4256
  },] }
4256
4257
  ];
4257
4258
  CardPriceComponent.ctorParameters = function () { return []; };
@@ -4265,6 +4266,7 @@
4265
4266
  btnLabel: [{ type: i0.Input }],
4266
4267
  disabled: [{ type: i0.Input }],
4267
4268
  btnTextcolor: [{ type: i0.Input }],
4269
+ extraClasses: [{ type: i0.Input }],
4268
4270
  click: [{ type: i0.Output }]
4269
4271
  };
4270
4272