@ptcwebops/ptcw-design 2.4.2 → 2.4.5

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 (36) hide show
  1. package/dist/cjs/ptc-card.cjs.entry.js +1 -1
  2. package/dist/cjs/ptc-nav-link.cjs.entry.js +1 -1
  3. package/dist/cjs/ptc-nav-submenu.cjs.entry.js +2 -2
  4. package/dist/cjs/ptc-pricing-add-on-card.cjs.entry.js +1 -1
  5. package/dist/cjs/ptc-pricing-table.cjs.entry.js +94 -11
  6. package/dist/cjs/ptc-subnav.cjs.entry.js +1 -1
  7. package/dist/collection/components/ptc-card/ptc-card.css +1 -1
  8. package/dist/collection/components/ptc-pricing-add-on-card/ptc-pricing-add-on-card.css +2 -2
  9. package/dist/collection/components/ptc-pricing-table/ptc-pricing-table.css +92 -106
  10. package/dist/collection/components/ptc-pricing-table/ptc-pricing-table.js +93 -10
  11. package/dist/collection/components/subnav/ptc-nav-link/ptc-nav-link.css +20 -4
  12. package/dist/collection/components/subnav/ptc-nav-submenu/ptc-nav-submenu.css +26 -50
  13. package/dist/collection/components/subnav/ptc-nav-submenu/ptc-nav-submenu.js +1 -1
  14. package/dist/collection/components/subnav/ptc-subnav/ptc-subnav.css +12 -28
  15. package/dist/custom-elements/index.js +100 -17
  16. package/dist/esm/ptc-card.entry.js +1 -1
  17. package/dist/esm/ptc-nav-link.entry.js +1 -1
  18. package/dist/esm/ptc-nav-submenu.entry.js +2 -2
  19. package/dist/esm/ptc-pricing-add-on-card.entry.js +1 -1
  20. package/dist/esm/ptc-pricing-table.entry.js +94 -11
  21. package/dist/esm/ptc-subnav.entry.js +1 -1
  22. package/dist/ptcw-design/p-30feb059.entry.js +1 -0
  23. package/dist/ptcw-design/p-5129270f.entry.js +1 -0
  24. package/dist/ptcw-design/p-60727256.entry.js +1 -0
  25. package/dist/ptcw-design/{p-f8eacbd8.entry.js → p-ef79c1f5.entry.js} +1 -1
  26. package/dist/ptcw-design/{p-05cc800d.entry.js → p-f6cf3eea.entry.js} +1 -1
  27. package/dist/ptcw-design/p-fd6d40c3.entry.js +1 -0
  28. package/dist/ptcw-design/ptcw-design.css +1 -1
  29. package/dist/ptcw-design/ptcw-design.esm.js +1 -1
  30. package/dist/types/components/ptc-pricing-table/ptc-pricing-table.d.ts +8 -0
  31. package/package.json +1 -1
  32. package/readme.md +1 -1
  33. package/dist/ptcw-design/p-3192a7e8.entry.js +0 -1
  34. package/dist/ptcw-design/p-66fcd7b2.entry.js +0 -1
  35. package/dist/ptcw-design/p-7a3cf557.entry.js +0 -1
  36. package/dist/ptcw-design/p-ca877fea.entry.js +0 -1
@@ -1,20 +1,23 @@
1
1
  :host {
2
2
  display: block;
3
- padding: var(--ptc-element-spacing-03);
4
3
  position: relative;
4
+ cursor: pointer;
5
5
  }
6
6
  :host .back-btn {
7
7
  display: none;
8
8
  position: absolute;
9
9
  left: 30px;
10
+ top: 22px;
10
11
  color: var(--color-white);
11
- font-size: 15px;
12
+ font-size: var(--ptc-font-size-xx-small);
12
13
  line-height: var(--ptc-line-height-denser);
13
14
  font-weight: var(--ptc-font-weight-bold);
14
15
  }
15
16
  :host .back-btn svg {
16
17
  margin-right: 4px;
17
18
  vertical-align: middle;
19
+ width: 12px;
20
+ height: 12px;
18
21
  }
19
22
  @media only screen and (min-width: 1200px) {
20
23
  :host {
@@ -42,14 +45,25 @@
42
45
  }
43
46
  :host .submenu-toggle {
44
47
  display: inline-block;
45
- cursor: pointer;
46
48
  color: var(--color-gray-03);
47
- font-size: 15px;
49
+ font-size: var(--ptc-font-size-xx-small);
48
50
  line-height: var(--ptc-line-height-denser);
49
51
  font-weight: var(--ptc-font-weight-bold);
50
52
  white-space: nowrap;
51
- border-bottom: 2px solid transparent;
53
+ padding: 22px var(--ptc-element-spacing-03);
52
54
  margin-left: 34%;
55
+ position: relative;
56
+ }
57
+ :host .submenu-toggle::after {
58
+ content: "";
59
+ display: block;
60
+ border-bottom: 2px solid transparent;
61
+ margin: auto;
62
+ position: absolute;
63
+ width: calc(100% - 20px);
64
+ left: 0;
65
+ right: 0;
66
+ bottom: 20px;
53
67
  }
54
68
  @media only screen and (min-width: 480px) {
55
69
  :host .submenu-toggle {
@@ -72,12 +86,16 @@
72
86
  margin-left: 5px;
73
87
  margin-top: 2px;
74
88
  vertical-align: middle;
89
+ width: 12px;
90
+ height: 12px;
75
91
  }
76
92
  :host .submenu-toggle svg path {
77
93
  fill: var(--color-gray-04);
78
94
  }
79
95
  :host .submenu-toggle:hover {
80
96
  color: var(--color-white);
97
+ }
98
+ :host .submenu-toggle:hover::after {
81
99
  border-color: var(--color-white);
82
100
  }
83
101
  :host .submenu-toggle:hover svg path {
@@ -98,53 +116,16 @@
98
116
  width: 100%;
99
117
  right: 0;
100
118
  left: 0;
101
- top: 64px;
119
+ top: 67px;
102
120
  }
103
121
  }
104
122
  :host .submenu-container .submenu-container-lg {
105
- padding: 0 32px;
106
- width: 100%;
123
+ max-width: 1200px;
107
124
  margin: auto;
108
125
  }
109
- @media only screen and (min-width: 992px) {
110
- :host .submenu-container .submenu-container-lg {
111
- padding: 0 32px;
112
- }
113
- }
114
126
  @media only screen and (min-width: 1200px) {
115
127
  :host .submenu-container .submenu-container-lg {
116
- padding: 0;
117
- width: 1106px;
118
- }
119
- }
120
- @media only screen and (min-width: 1256px) {
121
- :host .submenu-container .submenu-container-lg {
122
- width: 1164px;
123
- }
124
- }
125
- @media only screen and (min-width: 1280px) {
126
- :host .submenu-container .submenu-container-lg {
127
- width: 1180px;
128
- }
129
- }
130
- @media only screen and (min-width: 1300px) {
131
- :host .submenu-container .submenu-container-lg {
132
- width: 1200px;
133
- }
134
- }
135
- @media only screen and (min-width: 1440px) {
136
- :host .submenu-container .submenu-container-lg {
137
- width: 83.5rem;
138
- }
139
- }
140
- @media only screen and (min-width: 1600px) {
141
- :host .submenu-container .submenu-container-lg {
142
- width: 93.5rem;
143
- }
144
- }
145
- @media only screen and (min-width: 1980px) {
146
- :host .submenu-container .submenu-container-lg {
147
- width: 113.5rem;
128
+ padding: 0 32px;
148
129
  }
149
130
  }
150
131
  :host ::slotted(ptc-nav-link:last-child)::before, :host ::slotted(ptc-nav-link:last-child)::after {
@@ -184,11 +165,6 @@
184
165
  :host(.active)::before, :host(.active)::after {
185
166
  display: none;
186
167
  }
187
- @media only screen and (min-width: 1200px) {
188
- :host(.active) {
189
- padding-bottom: var(--ptc-element-spacing-03);
190
- }
191
- }
192
168
 
193
169
  :host(.active.short-dropdown) .back-btn {
194
170
  display: inline-block;
@@ -10,7 +10,7 @@ export class PtcNavSubmenu {
10
10
  var container = this.el.closest('ptc-subnav');
11
11
  if (dropdown && container) {
12
12
  if (window.innerWidth >= 1200) {
13
- let height = container.clientHeight - 10;
13
+ let height = container.clientHeight;
14
14
  if (height > 0) {
15
15
  dropdown.style.top = `${height}px`;
16
16
  }
@@ -4,47 +4,31 @@
4
4
  background-color: var(--color-gray-10);
5
5
  position: relative;
6
6
  }
7
- :host .navbar .navbar-inner {
8
- width: 100%;
9
- margin: auto;
10
- padding: 0px;
11
- display: none;
7
+ :host .navbar {
8
+ overflow-x: hidden;
12
9
  }
13
10
  @media only screen and (min-width: 1200px) {
14
- :host .navbar .navbar-inner {
15
- width: 1170px;
11
+ :host .navbar {
12
+ overflow-x: visible;
16
13
  }
17
14
  }
18
- @media only screen and (min-width: 1256px) {
19
- :host .navbar .navbar-inner {
20
- width: 1256px;
21
- }
22
- }
23
- @media only screen and (min-width: 1440px) {
24
- :host .navbar .navbar-inner {
25
- width: 87.5rem;
26
- }
27
- }
28
- @media only screen and (min-width: 1600px) {
29
- :host .navbar .navbar-inner {
30
- width: 97.5rem;
31
- }
32
- }
33
- @media only screen and (min-width: 1980px) {
34
- :host .navbar .navbar-inner {
35
- width: 117.5rem;
36
- }
15
+ :host .navbar .navbar-inner {
16
+ max-width: 1200px;
17
+ margin: auto;
18
+ box-sizing: border-box;
19
+ padding: 0px;
20
+ display: none;
37
21
  }
38
22
  @media only screen and (min-width: 1200px) {
39
23
  :host .navbar .navbar-inner {
40
- padding: 10px 16px;
24
+ padding: 0px;
41
25
  height: auto;
42
26
  display: block;
43
27
  }
44
28
  }
45
29
  :host .navbar .navbar-inner .nav-wrapper {
46
30
  width: auto;
47
- margin: auto 32px;
31
+ margin: auto 0;
48
32
  min-width: 163px;
49
33
  }
50
34
  @media only screen and (min-width: 1200px) {