@vgip/meta-ui 2.0.0 → 2.1.1

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 (206) hide show
  1. package/fesm2022/vgip-meta-ui.mjs +5614 -78
  2. package/fesm2022/vgip-meta-ui.mjs.map +1 -1
  3. package/index.d.ts +709 -5
  4. package/package.json +5 -8
  5. package/vendor/volta3/README.md +1 -0
  6. package/vendor/volta3/fonts/Spezia-Regular.eot +0 -0
  7. package/vendor/volta3/fonts/Spezia-Regular.ttf +0 -0
  8. package/vendor/volta3/fonts/Spezia-Regular.woff +0 -0
  9. package/vendor/volta3/fonts/Spezia-Regular.woff2 +0 -0
  10. package/vendor/volta3/fonts/Spezia-SemiBold.eot +0 -0
  11. package/vendor/volta3/fonts/Spezia-SemiBold.ttf +0 -0
  12. package/vendor/volta3/fonts/Spezia-SemiBold.woff +0 -0
  13. package/vendor/volta3/fonts/Spezia-SemiBold.woff2 +0 -0
  14. package/vendor/volta3/fonts/Spezia-SemiMonoSemiBold.eot +0 -0
  15. package/vendor/volta3/fonts/Spezia-SemiMonoSemiBold.ttf +0 -0
  16. package/vendor/volta3/fonts/Spezia-SemiMonoSemiBold.woff +0 -0
  17. package/vendor/volta3/fonts/Spezia-SemiMonoSemiBold.woff2 +0 -0
  18. package/vendor/volta3/fonts/Spezia-WideMedium.eot +0 -0
  19. package/vendor/volta3/fonts/Spezia-WideMedium.ttf +0 -0
  20. package/vendor/volta3/fonts/Spezia-WideMedium.woff +0 -0
  21. package/vendor/volta3/fonts/Spezia-WideMedium.woff2 +0 -0
  22. package/vendor/volta3/scss/components/_accordions.scss +165 -0
  23. package/vendor/volta3/scss/components/_badge.scss +329 -0
  24. package/vendor/volta3/scss/components/_blockquote.scss +35 -0
  25. package/vendor/volta3/scss/components/_boxes.scss +113 -0
  26. package/vendor/volta3/scss/components/_buttons.scss +794 -0
  27. package/vendor/volta3/scss/components/_callouts.scss +427 -0
  28. package/vendor/volta3/scss/components/_card.scss +421 -0
  29. package/vendor/volta3/scss/components/_color-classes.scss +186 -0
  30. package/vendor/volta3/scss/components/_dialpad.scss +224 -0
  31. package/vendor/volta3/scss/components/_dropdowns.scss +495 -0
  32. package/vendor/volta3/scss/components/_empties.scss +77 -0
  33. package/vendor/volta3/scss/components/_flash-messages.scss +39 -0
  34. package/vendor/volta3/scss/components/_form-elements.scss +879 -0
  35. package/vendor/volta3/scss/components/_lists.scss +427 -0
  36. package/vendor/volta3/scss/components/_modals.scss +227 -0
  37. package/vendor/volta3/scss/components/_popups.scss +173 -0
  38. package/vendor/volta3/scss/components/_progress.scss +28 -0
  39. package/vendor/volta3/scss/components/_spinner.scss +105 -0
  40. package/vendor/volta3/scss/components/_steps.scss +242 -0
  41. package/vendor/volta3/scss/components/_switch.scss +353 -0
  42. package/vendor/volta3/scss/components/_tables.scss +739 -0
  43. package/vendor/volta3/scss/components/_tabs.scss +296 -0
  44. package/vendor/volta3/scss/components/_text-separator.scss +61 -0
  45. package/vendor/volta3/scss/components/_tooltips.scss +152 -0
  46. package/vendor/volta3/scss/components/side-navigation/_side-nav--aqua.scss +179 -0
  47. package/vendor/volta3/scss/components/side-navigation/_side-nav--collapsible.scss +381 -0
  48. package/vendor/volta3/scss/components/side-navigation/_side-nav--dark.scss +196 -0
  49. package/vendor/volta3/scss/components/side-navigation/_side-nav--light.scss +174 -0
  50. package/vendor/volta3/scss/components/side-navigation/_side-nav--structure.scss +631 -0
  51. package/vendor/volta3/scss/components/side-navigation/_side-nav--tabs.scss +88 -0
  52. package/vendor/volta3/scss/flatpickr/_flatpickr-volta.scss +407 -0
  53. package/vendor/volta3/scss/flatpickr/_flatpickr.css +785 -0
  54. package/vendor/volta3/scss/layout/_article.scss +119 -0
  55. package/vendor/volta3/scss/layout/_utils.scss +174 -0
  56. package/vendor/volta3/scss/lib/_grid.scss +374 -0
  57. package/vendor/volta3/scss/lib/_mediaqueries.scss +52 -0
  58. package/vendor/volta3/scss/lib/_reset.scss +110 -0
  59. package/vendor/volta3/scss/lib/_type.scss +345 -0
  60. package/vendor/volta3/scss/lib/_utils.scss +26 -0
  61. package/vendor/volta3/scss/lib/_variables.scss +115 -0
  62. package/vendor/volta3/scss/prism/_prism-volta.scss +390 -0
  63. package/vendor/volta3/scss/prism/_prism.css +326 -0
  64. package/vendor/volta3/scss/templates/volta-error-page.scss +57 -0
  65. package/vendor/volta3/scss/templates/volta-templates.scss +114 -0
  66. package/vendor/volta3/scss/volta-flatpickr.scss +10 -0
  67. package/vendor/volta3/scss/volta-prism.scss +7 -0
  68. package/vendor/volta3/scss/volta.scss +39 -0
  69. package/vendor/volta3/symbol/volta-brand-icons.svg +1 -0
  70. package/vendor/volta3/symbol/volta-flag-icons.svg +1 -0
  71. package/vendor/volta3/symbol/volta-icons.svg +1 -0
  72. package/esm2022/lib/common/fieldNormalizer/boolean.mjs +0 -12
  73. package/esm2022/lib/common/fieldNormalizer/datetime.mjs +0 -9
  74. package/esm2022/lib/common/fieldNormalizer/index.mjs +0 -183
  75. package/esm2022/lib/common/fieldNormalizer/number.mjs +0 -14
  76. package/esm2022/lib/common/fieldNormalizer/options.mjs +0 -50
  77. package/esm2022/lib/common/fieldNormalizer/radio.mjs +0 -30
  78. package/esm2022/lib/common/fieldNormalizer/reference.mjs +0 -36
  79. package/esm2022/lib/common/fieldNormalizer/richtext.mjs +0 -15
  80. package/esm2022/lib/common/fieldNormalizer/string.mjs +0 -24
  81. package/esm2022/lib/common/fieldNormalizer/text.mjs +0 -18
  82. package/esm2022/lib/common/fieldNormalizer/uniqueNameFilter.mjs +0 -23
  83. package/esm2022/lib/common/metaAutofocus.directive.mjs +0 -35
  84. package/esm2022/lib/common/metaIcons.pipe.mjs +0 -29
  85. package/esm2022/lib/common/metaModel.pipe.mjs +0 -23
  86. package/esm2022/lib/common/metaNormalizer.mjs +0 -375
  87. package/esm2022/lib/common/metaStripHtml.pipe.mjs +0 -22
  88. package/esm2022/lib/common/utils/colorThemes.mjs +0 -77
  89. package/esm2022/lib/common/utils/indexedDbStore/index.mjs +0 -228
  90. package/esm2022/lib/common/utils/relativeTimeBuilder.mjs +0 -49
  91. package/esm2022/lib/common/utils/resourceCardLabel.mjs +0 -24
  92. package/esm2022/lib/common/utils/smartProp.mjs +0 -31
  93. package/esm2022/lib/common/utils/templateBuilder.mjs +0 -103
  94. package/esm2022/lib/fieldAbstract.mjs +0 -291
  95. package/esm2022/lib/fieldBoolean/index.mjs +0 -53
  96. package/esm2022/lib/fieldComposite/index.mjs +0 -82
  97. package/esm2022/lib/fieldDatetime/index.mjs +0 -365
  98. package/esm2022/lib/fieldHidden/index.mjs +0 -18
  99. package/esm2022/lib/fieldInput/index.mjs +0 -475
  100. package/esm2022/lib/fieldList/index.mjs +0 -74
  101. package/esm2022/lib/fieldRadio/index.mjs +0 -88
  102. package/esm2022/lib/fieldReference/index.mjs +0 -836
  103. package/esm2022/lib/fieldRichtext/index.mjs +0 -93
  104. package/esm2022/lib/fieldSelect/index.mjs +0 -569
  105. package/esm2022/lib/fieldText/index.mjs +0 -83
  106. package/esm2022/lib/fieldUnknown/index.mjs +0 -19
  107. package/esm2022/lib/index.mjs +0 -163
  108. package/esm2022/lib/layout/index.mjs +0 -214
  109. package/esm2022/lib/metaField/index.mjs +0 -151
  110. package/esm2022/lib/refDialog/index.mjs +0 -135
  111. package/esm2022/lib/resource/index.mjs +0 -525
  112. package/esm2022/lib/resourceCard/index.mjs +0 -40
  113. package/esm2022/lib/services/metaContext/index.mjs +0 -52
  114. package/esm2022/lib/services/metaMsg/index.mjs +0 -84
  115. package/esm2022/lib/services/metaReference/index.mjs +0 -94
  116. package/esm2022/lib/services/metaResource/index.mjs +0 -141
  117. package/esm2022/lib/services/metaResource/metaHttpClient.mjs +0 -64
  118. package/esm2022/lib/services/metaTracker/index.mjs +0 -31
  119. package/esm2022/lib/services/resourceDrafts/index.mjs +0 -69
  120. package/esm2022/public-api.mjs +0 -5
  121. package/esm2022/vgip-meta-ui.mjs +0 -5
  122. package/fesm2022/vgip-meta-ui-fieldAbstract-baeaf24d.mjs +0 -399
  123. package/fesm2022/vgip-meta-ui-fieldAbstract-baeaf24d.mjs.map +0 -1
  124. package/fesm2022/vgip-meta-ui-index-0184d5ec.mjs +0 -478
  125. package/fesm2022/vgip-meta-ui-index-0184d5ec.mjs.map +0 -1
  126. package/fesm2022/vgip-meta-ui-index-1ddfcce0.mjs +0 -86
  127. package/fesm2022/vgip-meta-ui-index-1ddfcce0.mjs.map +0 -1
  128. package/fesm2022/vgip-meta-ui-index-37358620.mjs +0 -158
  129. package/fesm2022/vgip-meta-ui-index-37358620.mjs.map +0 -1
  130. package/fesm2022/vgip-meta-ui-index-4e9c383f.mjs +0 -95
  131. package/fesm2022/vgip-meta-ui-index-4e9c383f.mjs.map +0 -1
  132. package/fesm2022/vgip-meta-ui-index-4fa919c0.mjs +0 -79
  133. package/fesm2022/vgip-meta-ui-index-4fa919c0.mjs.map +0 -1
  134. package/fesm2022/vgip-meta-ui-index-5f68724c.mjs +0 -576
  135. package/fesm2022/vgip-meta-ui-index-5f68724c.mjs.map +0 -1
  136. package/fesm2022/vgip-meta-ui-index-6d502a71.mjs +0 -869
  137. package/fesm2022/vgip-meta-ui-index-6d502a71.mjs.map +0 -1
  138. package/fesm2022/vgip-meta-ui-index-7741951a.mjs +0 -23
  139. package/fesm2022/vgip-meta-ui-index-7741951a.mjs.map +0 -1
  140. package/fesm2022/vgip-meta-ui-index-80ab405f.mjs +0 -93
  141. package/fesm2022/vgip-meta-ui-index-80ab405f.mjs.map +0 -1
  142. package/fesm2022/vgip-meta-ui-index-926ae006.mjs +0 -58
  143. package/fesm2022/vgip-meta-ui-index-926ae006.mjs.map +0 -1
  144. package/fesm2022/vgip-meta-ui-index-b979685f.mjs +0 -87
  145. package/fesm2022/vgip-meta-ui-index-b979685f.mjs.map +0 -1
  146. package/fesm2022/vgip-meta-ui-index-c943b7c0.mjs +0 -24
  147. package/fesm2022/vgip-meta-ui-index-c943b7c0.mjs.map +0 -1
  148. package/fesm2022/vgip-meta-ui-index-ce185ca2.mjs +0 -2062
  149. package/fesm2022/vgip-meta-ui-index-ce185ca2.mjs.map +0 -1
  150. package/fesm2022/vgip-meta-ui-index-f8b00f06.mjs +0 -370
  151. package/fesm2022/vgip-meta-ui-index-f8b00f06.mjs.map +0 -1
  152. package/fesm2022/vgip-meta-ui-index-fb7f54f5.mjs +0 -154
  153. package/fesm2022/vgip-meta-ui-index-fb7f54f5.mjs.map +0 -1
  154. package/fesm2022/vgip-meta-ui-metaModel.pipe-6b803e66.mjs +0 -26
  155. package/fesm2022/vgip-meta-ui-metaModel.pipe-6b803e66.mjs.map +0 -1
  156. package/fesm2022/vgip-meta-ui-relativeTimeBuilder-31791ce4.mjs +0 -51
  157. package/fesm2022/vgip-meta-ui-relativeTimeBuilder-31791ce4.mjs.map +0 -1
  158. package/lib/common/fieldNormalizer/boolean.d.ts +0 -1
  159. package/lib/common/fieldNormalizer/datetime.d.ts +0 -1
  160. package/lib/common/fieldNormalizer/index.d.ts +0 -1
  161. package/lib/common/fieldNormalizer/number.d.ts +0 -1
  162. package/lib/common/fieldNormalizer/options.d.ts +0 -1
  163. package/lib/common/fieldNormalizer/radio.d.ts +0 -1
  164. package/lib/common/fieldNormalizer/reference.d.ts +0 -1
  165. package/lib/common/fieldNormalizer/richtext.d.ts +0 -1
  166. package/lib/common/fieldNormalizer/string.d.ts +0 -1
  167. package/lib/common/fieldNormalizer/text.d.ts +0 -1
  168. package/lib/common/fieldNormalizer/uniqueNameFilter.d.ts +0 -1
  169. package/lib/common/metaAutofocus.directive.d.ts +0 -10
  170. package/lib/common/metaIcons.pipe.d.ts +0 -10
  171. package/lib/common/metaModel.pipe.d.ts +0 -7
  172. package/lib/common/metaNormalizer.d.ts +0 -1
  173. package/lib/common/metaStripHtml.pipe.d.ts +0 -7
  174. package/lib/common/utils/colorThemes.d.ts +0 -8
  175. package/lib/common/utils/indexedDbStore/index.d.ts +0 -25
  176. package/lib/common/utils/relativeTimeBuilder.d.ts +0 -1
  177. package/lib/common/utils/resourceCardLabel.d.ts +0 -1
  178. package/lib/common/utils/smartProp.d.ts +0 -2
  179. package/lib/common/utils/templateBuilder.d.ts +0 -1
  180. package/lib/fieldAbstract.d.ts +0 -61
  181. package/lib/fieldBoolean/index.d.ts +0 -10
  182. package/lib/fieldComposite/index.d.ts +0 -14
  183. package/lib/fieldDatetime/index.d.ts +0 -26
  184. package/lib/fieldHidden/index.d.ts +0 -6
  185. package/lib/fieldInput/index.d.ts +0 -35
  186. package/lib/fieldList/index.d.ts +0 -15
  187. package/lib/fieldRadio/index.d.ts +0 -14
  188. package/lib/fieldReference/index.d.ts +0 -73
  189. package/lib/fieldRichtext/index.d.ts +0 -27
  190. package/lib/fieldSelect/index.d.ts +0 -49
  191. package/lib/fieldText/index.d.ts +0 -15
  192. package/lib/fieldUnknown/index.d.ts +0 -6
  193. package/lib/index.d.ts +0 -65
  194. package/lib/layout/index.d.ts +0 -47
  195. package/lib/metaField/index.d.ts +0 -29
  196. package/lib/refDialog/index.d.ts +0 -33
  197. package/lib/resource/index.d.ts +0 -68
  198. package/lib/resourceCard/index.d.ts +0 -17
  199. package/lib/services/metaContext/index.d.ts +0 -32
  200. package/lib/services/metaMsg/index.d.ts +0 -14
  201. package/lib/services/metaReference/index.d.ts +0 -11
  202. package/lib/services/metaResource/index.d.ts +0 -31
  203. package/lib/services/metaResource/metaHttpClient.d.ts +0 -15
  204. package/lib/services/metaTracker/index.d.ts +0 -19
  205. package/lib/services/resourceDrafts/index.d.ts +0 -26
  206. package/public-api.d.ts +0 -1
@@ -0,0 +1,119 @@
1
+ @use "../lib/variables";
2
+
3
+ //
4
+ // Copyright (c) 2018-present, Vonage. All rights reserved.
5
+ //
6
+
7
+ .Vlt-article {
8
+ h1,
9
+ h2 {
10
+ margin-bottom: variables.$unit3;
11
+
12
+ &:not(:first-child) {
13
+ margin-top: variables.$unit4;
14
+ padding-top: 0;
15
+ }
16
+ }
17
+
18
+ h3,
19
+ h4,
20
+ h5,
21
+ h6 {
22
+ margin-bottom: variables.$unit2;
23
+
24
+ &:not(:first-child) {
25
+ margin-top: variables.$unit3;
26
+ padding-top: 0;
27
+ }
28
+ }
29
+
30
+ pre[class*='language'],
31
+ .Vlt-box,
32
+ .Vlt-table,
33
+ .Vlt-callout {
34
+ margin-bottom: variables.$unit2;
35
+
36
+ &:not(:first-child) {
37
+ margin-top: variables.$unit2;
38
+ }
39
+ }
40
+
41
+ .Vlt-list {
42
+ li {
43
+ margin-bottom: variables.$unit2;
44
+ }
45
+ }
46
+
47
+ p:not(.p-large) {
48
+ line-height: 2rem;
49
+ }
50
+
51
+ figure {
52
+ margin: variables.$unit4 auto;
53
+ text-align: center;
54
+ }
55
+
56
+ .Vlt-box--fancy,
57
+ .Vlt-modal,
58
+ .Vlt-callout,
59
+ .Vlt-sidenav {
60
+ @extend .Vlt-article--reverse;
61
+ }
62
+ }
63
+
64
+ .Vlt-article--reverse {
65
+ h1,
66
+ h2,
67
+ h3,
68
+ h4,
69
+ h5,
70
+ h6 {
71
+ margin-bottom: variables.$unit1;
72
+ margin-top: 0;
73
+
74
+ &:not(:first-child) {
75
+ margin-top: 0;
76
+ }
77
+ }
78
+
79
+ h1,
80
+ h2 {
81
+ margin-bottom: variables.$unit2;
82
+ }
83
+
84
+ pre[class*='language'],
85
+ .Vlt-box,
86
+ .Vlt-table,
87
+ .Vlt-callout {
88
+ margin-bottom: variables.$unit1;
89
+ margin-top: 0;
90
+
91
+ &:not(:first-child) {
92
+ margin-top: 0;
93
+ }
94
+ }
95
+
96
+ p:not(.p-large) {
97
+ line-height: 2rem;
98
+ }
99
+
100
+ .Vlt-list {
101
+ li {
102
+ margin-bottom: 0.5em;
103
+ }
104
+ }
105
+
106
+ figure {
107
+ margin: variables.$unit2 auto;
108
+ text-align: center;
109
+ }
110
+ }
111
+
112
+ .Vlt-section {
113
+ display: inline-block; //remove margin collapse
114
+ margin: variables.$unit3 0;
115
+ }
116
+
117
+ .Vlt-inset {
118
+ margin-left: variables.$unit4;
119
+ }
@@ -0,0 +1,174 @@
1
+ @use "sass:list";
2
+ @use "../lib/mediaqueries";
3
+ @use "../lib/variables";
4
+
5
+ //
6
+ // Copyright (c) 2018-present, Vonage. All rights reserved.
7
+ //
8
+
9
+ .Vlt-center {
10
+ text-align: center !important;
11
+ }
12
+
13
+ .Vlt-right {
14
+ text-align: right !important;
15
+ }
16
+
17
+ .Vlt-left {
18
+ text-align: left !important;
19
+ }
20
+
21
+ .Vlt-nowrap {
22
+ white-space: nowrap !important;
23
+ }
24
+
25
+ .Vlt-no-border {
26
+ border-color: transparent !important;
27
+ transition: border-color .5s;
28
+
29
+ &:hover,
30
+ &:active,
31
+ &:focus {
32
+ border-color: initial !important;
33
+ }
34
+ }
35
+
36
+ .Vlt-elevation {
37
+ &--1 {
38
+ box-shadow: 0 2px 10px rgba(variables.$black, 0.1) !important;
39
+ }
40
+
41
+ &--2 {
42
+ box-shadow: 0 4px 20px rgba(variables.$black, 0.1) !important;
43
+ }
44
+
45
+ &--3 {
46
+ box-shadow: 0 10px 30px rgba(variables.$black, 0.1) !important;
47
+ }
48
+
49
+ &--4 {
50
+ box-shadow: 0 20px 40px rgba(variables.$black, 0.1) !important;
51
+ }
52
+ }
53
+
54
+ .Vlt-status {
55
+ background-color: currentColor;
56
+ border: 2px solid variables.$white;
57
+ border-radius: 100%;
58
+ bottom: 0;
59
+ box-sizing: content-box;
60
+ display: block;
61
+ height: 8px;
62
+ position: absolute;
63
+ right: 0;
64
+ width: 8px;
65
+ }
66
+
67
+ .Vlt-truncate {
68
+ display: block;
69
+ max-width: 100%;
70
+ overflow: hidden;
71
+ text-overflow: ellipsis;
72
+ white-space: nowrap;
73
+
74
+ &--inline {
75
+ display: inline;
76
+ }
77
+ }
78
+
79
+ hr {
80
+ border-bottom: 0;
81
+ border-top: 1px solid variables.$grey-light;
82
+ flex: 0 0 100%;
83
+ height: 0;
84
+ margin: variables.$unit3 0;
85
+
86
+ &[class*='Vlt-gradient'] {
87
+ border: 0;
88
+ height: 1px;
89
+ }
90
+ }
91
+
92
+ .hr--tall {
93
+ margin: variables.$unit4 0;
94
+ }
95
+
96
+ .hr--short {
97
+ margin: variables.$unit2 0;
98
+ }
99
+
100
+ .hr--shorter {
101
+ margin: variables.$unit1 0;
102
+ }
103
+
104
+ .Vlt-icon {
105
+ display: inline-block;
106
+ height: 24px;
107
+ vertical-align: middle;
108
+ width: 24px;
109
+
110
+ &--18 {
111
+ height: 18px;
112
+ width: 18px;
113
+ }
114
+
115
+ &--small {
116
+ height: 20px;
117
+ width: 20px;
118
+ }
119
+
120
+ &--smaller {
121
+ height: 16px;
122
+ width: 16px;
123
+ }
124
+
125
+ &--text-bottom {
126
+ vertical-align: text-bottom;
127
+ }
128
+
129
+ &--large {
130
+ height: 32px;
131
+ width: 32px;
132
+ }
133
+
134
+ &--larger {
135
+ height: 40px;
136
+ width: 40px;
137
+ }
138
+
139
+ &--largest {
140
+ height: 48px;
141
+ width: 48px;
142
+ }
143
+ }
144
+
145
+ .Vlt-container {
146
+ max-width: 1200px;
147
+ }
148
+
149
+ $devices: (
150
+ #{mediaqueries.$L-plus}: '',
151
+ #{mediaqueries.$S-only}: 'S-',
152
+ #{mediaqueries.$M-only}: 'M-',
153
+ '': 'A-'
154
+ );
155
+
156
+ $directions: 'top', 'bottom';
157
+ $units: (variables.$unitN, variables.$unit1, variables.$unit2, variables.$unit3, variables.$unit4);
158
+
159
+ @each $direction in $directions {
160
+ @each $media, $devicePrefix in $devices {
161
+ @for $i from 1 through 5 {
162
+
163
+ .Vlt-margin--#{$devicePrefix}#{$direction}#{$i - 1} {
164
+ @if $media != '' {
165
+ @media #{$media} {
166
+ margin-#{$direction}: list.nth($units, $i) !important;
167
+ }
168
+ } @else {
169
+ margin-#{$direction}: list.nth($units, $i) !important;
170
+ }
171
+ }
172
+ }
173
+ }
174
+ }
@@ -0,0 +1,374 @@
1
+ @use "mediaqueries";
2
+ @use "variables";
3
+
4
+ //
5
+ // Copyright (c) 2018-present, Vonage. All rights reserved.
6
+ //
7
+
8
+ .Vlt-grid {
9
+ align-items: stretch;
10
+ display: flex;
11
+ flex-flow: row wrap;
12
+ margin-left: -(variables.$unit2);
13
+ margin-right: -(variables.$unit2);
14
+
15
+ &--center {
16
+ justify-content: center;
17
+ }
18
+
19
+ &--nowrap {
20
+ flex-flow: row;
21
+ }
22
+
23
+ &--flush {
24
+ margin-left: 0;
25
+ margin-right: 0;
26
+
27
+ & > .Vlt-col {
28
+ padding-left: 0;
29
+ padding-right: 0;
30
+ }
31
+ }
32
+
33
+ &--stack-flush {
34
+ @media #{mediaqueries.$M-less} {
35
+ .Vlt-col:not([class*='Vlt-col--M']),
36
+ .Vlt-col:not([class*='Vlt-col--S']),
37
+ .Vlt-col:not([class*='Vlt-col--A']) {
38
+ margin-bottom: 0;
39
+ margin-top: 0;
40
+ }
41
+ }
42
+ }
43
+
44
+ &--narrow {
45
+ @media #{mediaqueries.$L-plus} {
46
+ margin-left: -(variables.$unit1);
47
+ margin-right: -(variables.$unit1);
48
+ }
49
+
50
+ .Vlt-col {
51
+ @media #{mediaqueries.$L-plus} {
52
+ padding-left: variables.$unit1;
53
+ padding-right: variables.$unit1;
54
+ }
55
+
56
+ @media #{mediaqueries.$M-less} {
57
+ &:not([class*='Vlt-col--M']),
58
+ &:not([class*='Vlt-col--S']) {
59
+ margin-bottom: variables.$unit0;
60
+ margin-top: variables.$unit0;
61
+ }
62
+ }
63
+ }
64
+ }
65
+
66
+ &__separator {
67
+ flex: 0 0 100% !important;
68
+ max-width: 100% !important;
69
+
70
+ &--spaced {
71
+ height: 1.5rem;
72
+ }
73
+
74
+ &--tall {
75
+ height: 2.5rem;
76
+ }
77
+ }
78
+
79
+ &--middle {
80
+ align-items: center;
81
+ }
82
+
83
+ &--bottom {
84
+ align-items: flex-end;
85
+ }
86
+
87
+ &--margin {
88
+ &1 {
89
+ margin-bottom: variables.$unit1;
90
+ margin-top: variables.$unit1;
91
+ }
92
+
93
+ &2 {
94
+ margin-bottom: variables.$unit2;
95
+ margin-top: variables.$unit2;
96
+ }
97
+
98
+ &3 {
99
+ margin-bottom: variables.$unit3;
100
+ margin-top: variables.$unit3;
101
+ }
102
+
103
+ &4 {
104
+ margin-bottom: variables.$unit4;
105
+ margin-top: variables.$unit4;
106
+ }
107
+
108
+ &-top {
109
+ &1 {
110
+ margin-top: variables.$unit1;
111
+ }
112
+
113
+ &2 {
114
+ margin-top: variables.$unit2;
115
+ }
116
+
117
+ &3 {
118
+ margin-top: variables.$unit3;
119
+ }
120
+
121
+ &4 {
122
+ margin-top: variables.$unit4;
123
+ }
124
+ }
125
+
126
+ &-bottom {
127
+ &1 {
128
+ margin-bottom: variables.$unit1;
129
+ }
130
+
131
+ &2 {
132
+ margin-bottom: variables.$unit2;
133
+ }
134
+
135
+ &3 {
136
+ margin-bottom: variables.$unit3;
137
+ }
138
+
139
+ &4 {
140
+ margin-bottom: variables.$unit4;
141
+ }
142
+ }
143
+ }
144
+ }
145
+
146
+ .Vlt-col {
147
+ flex-basis: 0; // Important
148
+ flex-grow: 1;
149
+ // We used to have min-width: 0 to prevent things from overflowing but it prevented large elements from stacking properly so now we have max-width 100%
150
+ max-width: 100%;
151
+ padding-left: variables.$unit2;
152
+ padding-right: variables.$unit2;
153
+ position: relative;
154
+
155
+ @media print {
156
+ display: inline-block;
157
+ }
158
+
159
+ @media #{mediaqueries.$M-less} {
160
+ &:not([class*='Vlt-col--A']):not([class*='Vlt-col--M']),
161
+ &:not([class*='Vlt-col--A']):not([class*='Vlt-col--S']) {
162
+ flex: 0 0 100%;
163
+ max-width: 100%;
164
+ }
165
+
166
+ &:not([class*='Vlt-col--M']),
167
+ &:not([class*='Vlt-col--S']) {
168
+ margin-bottom: variables.$unit1;
169
+ margin-top: variables.$unit1;
170
+ }
171
+ }
172
+
173
+ &--full {
174
+ flex: 0 0 100%;
175
+ }
176
+
177
+ &- {
178
+ @media #{mediaqueries.$L-plus} {
179
+ &-1of2 {
180
+ flex: 0 0 50%;
181
+ max-width: 50%;
182
+ }
183
+
184
+ &-1of3 {
185
+ flex: 0 0 33.33%;
186
+ max-width: 33.33%;
187
+ }
188
+
189
+ &-2of3 {
190
+ flex: 0 0 66.66%;
191
+ max-width: 66.66%;
192
+ }
193
+
194
+ &-1of4 {
195
+ flex: 0 0 25%;
196
+ max-width: 25%;
197
+ }
198
+
199
+ &-2of4 {
200
+ flex: 0 0 50%;
201
+ max-width: 50%;
202
+ }
203
+
204
+ &-3of4 {
205
+ flex: 0 0 75%;
206
+ max-width: 75%;
207
+ }
208
+
209
+ &-center {
210
+ text-align: center;
211
+ }
212
+
213
+ &-right {
214
+ text-align: right;
215
+ }
216
+
217
+ &-left {
218
+ text-align: left;
219
+ }
220
+ }
221
+ }
222
+
223
+ &--A {
224
+ // All sizes
225
+
226
+ flex-basis: 0;
227
+ flex-grow: 1;
228
+
229
+ &-1of2 {
230
+ flex: 0 0 50%;
231
+ max-width: 50%;
232
+ }
233
+
234
+ &-1of3 {
235
+ flex: 0 0 33.33%;
236
+ max-width: 33.33%;
237
+ }
238
+
239
+ &-2of3 {
240
+ flex: 0 0 66.66%;
241
+ max-width: 66.66%;
242
+ }
243
+
244
+ &-1of4 {
245
+ flex: 0 0 25%;
246
+ max-width: 25%;
247
+ }
248
+
249
+ &-2of4 {
250
+ flex: 0 0 50%;
251
+ max-width: 50%;
252
+ }
253
+
254
+ &-3of4 {
255
+ flex: 0 0 75%;
256
+ max-width: 75%;
257
+ }
258
+
259
+ &-center {
260
+ text-align: center;
261
+ }
262
+
263
+ &-right {
264
+ text-align: right;
265
+ }
266
+
267
+ &-left {
268
+ text-align: left;
269
+ }
270
+ }
271
+
272
+ &--S {
273
+ @media #{mediaqueries.$S-only} {
274
+ flex-basis: 0; // Important
275
+ flex-grow: 1;
276
+
277
+ &-1of2 {
278
+ flex: 0 0 50%;
279
+ max-width: 50%;
280
+ }
281
+
282
+ &-1of3 {
283
+ flex: 0 0 33.33%;
284
+ max-width: 33.33%;
285
+ }
286
+
287
+ &-2of3 {
288
+ flex: 0 0 66.66%;
289
+ max-width: 66.66%;
290
+ }
291
+
292
+ &-1of4 {
293
+ flex: 0 0 25%;
294
+ max-width: 25%;
295
+ }
296
+
297
+ &-2of4 {
298
+ flex: 0 0 50%;
299
+ max-width: 50%;
300
+ }
301
+
302
+ &-3of4 {
303
+ flex: 0 0 75%;
304
+ max-width: 75%;
305
+ }
306
+
307
+ &-center {
308
+ text-align: center;
309
+ }
310
+
311
+ &-right {
312
+ text-align: right;
313
+ }
314
+
315
+ &-left {
316
+ text-align: left;
317
+ }
318
+ }
319
+ }
320
+
321
+ &--M {
322
+ @media #{mediaqueries.$M-only} {
323
+ flex-basis: 0; // Important
324
+ flex-grow: 1;
325
+
326
+ &-1of2 {
327
+ flex: 0 0 50%;
328
+ max-width: 50%;
329
+ }
330
+
331
+ &-1of3 {
332
+ flex: 0 0 33.33%;
333
+ max-width: 33.33%;
334
+ }
335
+
336
+ &-2of3 {
337
+ flex: 0 0 66.66%;
338
+ max-width: 66.66%;
339
+ }
340
+
341
+ &-1of4 {
342
+ flex: 0 0 25%;
343
+ max-width: 25%;
344
+ }
345
+
346
+ &-2of4 {
347
+ flex: 0 0 50%;
348
+ max-width: 50%;
349
+ }
350
+
351
+ &-3of4 {
352
+ flex: 0 0 75%;
353
+ max-width: 75%;
354
+ }
355
+
356
+ &-center {
357
+ text-align: center;
358
+ }
359
+
360
+ &-right {
361
+ text-align: right;
362
+ }
363
+
364
+ &-left {
365
+ text-align: left;
366
+ }
367
+ }
368
+ }
369
+ }
370
+
371
+ .Vlt-row {
372
+ clear: both;
373
+ padding: 10px 0;
374
+ }
@@ -0,0 +1,52 @@
1
+ //
2
+ // Copyright (c) 2018-present, Vonage. All rights reserved.
3
+ //
4
+
5
+ // We only use 2 breakpoints because normally we design for 3 screen: phone, tablet and desktop
6
+ // There's no point in having more than these breakpoints if we're not going to provide design for them
7
+
8
+ $big-screen: 768px;
9
+ $small-screen: 576px;
10
+
11
+ $big-screen-w-sidenav: 1038px;
12
+ $small-screen-w-sidenav: 846px;
13
+
14
+ $S-only: 'only screen and (max-width: #{$small-screen - 1})';
15
+ $M-only: 'only screen and (min-width: #{$small-screen} ) and (max-width: #{$big-screen - 1})';
16
+ $M-plus: 'only screen and (min-width: #{$small-screen} )';
17
+ $M-less: 'only screen and (max-width: #{$big-screen - 1})';
18
+ $L-plus: 'only screen and (min-width: #{$big-screen})';
19
+
20
+ .Vlt-S-only {
21
+ @media #{$M-plus} {
22
+ display: none !important;
23
+ }
24
+ }
25
+
26
+ .Vlt-M-only {
27
+ @media #{$S-only} {
28
+ display: none !important;
29
+ }
30
+
31
+ @media #{$L-plus} {
32
+ display: none !important;
33
+ }
34
+ }
35
+
36
+ .Vlt-L-plus {
37
+ @media #{$M-less} {
38
+ display: none !important;
39
+ }
40
+ }
41
+
42
+ .Vlt-M-plus {
43
+ @media #{$S-only} {
44
+ display: none !important;
45
+ }
46
+ }
47
+
48
+ .Vlt-M-less {
49
+ @media #{$L-plus} {
50
+ display: none !important;
51
+ }
52
+ }