@xenknight/framework7 0.0.5 → 0.0.7

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 (105) hide show
  1. package/components/app/app.less +1 -1
  2. package/components/block/block-vars.less +6 -6
  3. package/components/button/button-vars.less +11 -10
  4. package/components/dialog/dialog-class.js +6 -3
  5. package/components/dialog/dialog-ios.less +10 -34
  6. package/components/dialog/dialog-md.less +2 -22
  7. package/components/dialog/dialog-rtl.css +1 -1
  8. package/components/dialog/dialog-vars.less +8 -10
  9. package/components/dialog/dialog.css +1 -1
  10. package/components/dialog/dialog.js +3 -3
  11. package/components/dialog/dialog.less +6 -25
  12. package/components/icon/icon-ios.less +9 -0
  13. package/components/icon/icon-md.less +9 -0
  14. package/components/icon/icon.less +2 -1
  15. package/components/list/list-vars.less +8 -6
  16. package/components/list/list.less +1 -1
  17. package/components/messagebar/messagebar-rtl.css +1 -1
  18. package/components/messagebar/messagebar-vars.less +1 -1
  19. package/components/messagebar/messagebar.css +1 -1
  20. package/components/messages/messages-rtl.css +1 -1
  21. package/components/messages/messages-vars.less +7 -7
  22. package/components/messages/messages.css +1 -1
  23. package/components/navbar-new/navbar-ios.less +135 -0
  24. package/components/navbar-new/navbar-md.less +105 -0
  25. package/components/navbar-new/navbar-vars.less +78 -0
  26. package/components/navbar-new/navbar.d.ts +77 -0
  27. package/components/navbar-new/navbar.js +568 -0
  28. package/components/navbar-new/navbar.less +268 -0
  29. package/components/notification/notification-class.js +6 -6
  30. package/components/notification/notification-ios.less +3 -8
  31. package/components/notification/notification-md.less +1 -20
  32. package/components/notification/notification-rtl.css +1 -1
  33. package/components/notification/notification-vars.less +13 -16
  34. package/components/notification/notification.css +1 -1
  35. package/components/notification/notification.less +13 -1
  36. package/components/popover/popover-class.js +21 -58
  37. package/components/popover/popover-ios.less +66 -2
  38. package/components/popover/popover-md.less +2 -27
  39. package/components/popover/popover-rtl.css +1 -1
  40. package/components/popover/popover-vars.less +2 -3
  41. package/components/popover/popover.css +1 -1
  42. package/components/popover/popover.d.ts +0 -2
  43. package/components/popover/popover.js +0 -1
  44. package/components/popover/popover.less +28 -50
  45. package/components/range/range-class.js +34 -27
  46. package/components/range/range-ios.less +60 -0
  47. package/components/range/range-md.less +67 -4
  48. package/components/range/range-rtl.css +1 -1
  49. package/components/range/range-vars.less +18 -13
  50. package/components/range/range.css +1 -1
  51. package/components/range/range.d.ts +3 -1
  52. package/components/range/range.less +11 -24
  53. package/components/searchbar-new/remove-diacritics.js +271 -0
  54. package/components/searchbar-new/searchbar-ios.less +131 -0
  55. package/components/searchbar-new/searchbar-md.less +153 -0
  56. package/components/searchbar-new/searchbar-new-class.js +592 -0
  57. package/components/searchbar-new/searchbar-vars.less +75 -0
  58. package/components/searchbar-new/searchbar.js +122 -0
  59. package/components/searchbar-new/searchbar.less +331 -0
  60. package/components/swipeout/swipeout-ios.less +37 -0
  61. package/components/swipeout/swipeout-md.less +56 -0
  62. package/components/swipeout/swipeout-rtl.css +1 -1
  63. package/components/swipeout/swipeout-vars.less +13 -2
  64. package/components/swipeout/swipeout.css +1 -1
  65. package/components/swipeout/swipeout.js +98 -23
  66. package/components/swipeout/swipeout.less +20 -44
  67. package/components/tabs/tabs.js +5 -0
  68. package/components/toast/toast-class.js +2 -2
  69. package/components/toast/toast-ios.less +2 -0
  70. package/components/toast/toast-rtl.css +1 -1
  71. package/components/toast/toast-vars.less +2 -4
  72. package/components/toast/toast.css +1 -1
  73. package/components/toast/toast.less +1 -1
  74. package/components/toolbar-new/tabbar-highlight.js +134 -0
  75. package/components/toolbar-new/toolbar-ios.less +193 -0
  76. package/components/toolbar-new/toolbar-md.less +152 -0
  77. package/components/toolbar-new/toolbar-vars.less +77 -0
  78. package/components/toolbar-new/toolbar.js +223 -0
  79. package/components/toolbar-new/toolbar.less +261 -0
  80. package/framework7-bundle-rtl.css +2606 -746
  81. package/framework7-bundle-rtl.min.css +12 -6
  82. package/framework7-bundle.css +2603 -743
  83. package/framework7-bundle.esm.js +11 -4
  84. package/framework7-bundle.js +4536 -1038
  85. package/framework7-bundle.js.map +1 -1
  86. package/framework7-bundle.less +6 -3
  87. package/framework7-bundle.min.css +12 -6
  88. package/framework7-bundle.min.js +4 -4
  89. package/framework7-bundle.min.js.map +1 -1
  90. package/framework7-lite-bundle.esm.js +11 -4
  91. package/framework7-lite.esm.js +11 -4
  92. package/framework7-lite.js +8 -1
  93. package/framework7-rtl.css +2212 -399
  94. package/framework7-rtl.min.css +11 -5
  95. package/framework7.css +2211 -398
  96. package/framework7.esm.js +11 -4
  97. package/framework7.js +8 -1
  98. package/framework7.less +6 -3
  99. package/framework7.min.css +11 -5
  100. package/package.json +1 -1
  101. package/shared/get-support.d.ts +0 -6
  102. package/shared/get-support.js +1 -20
  103. package/shared/material-color-utils.js +2153 -679
  104. package/shared/material-colors.js +97 -17
  105. package/shared/utils.js +18 -6
@@ -0,0 +1,261 @@
1
+ /* === Toolbar New === */
2
+ @import './toolbar-vars.less';
3
+
4
+ .toolbar-new {
5
+ width: 100%;
6
+ position: relative;
7
+ margin: 0;
8
+ transform: translate3d(0, 0, 0);
9
+ backface-visibility: hidden;
10
+ z-index: 600;
11
+ box-sizing: border-box;
12
+ left: 0;
13
+ height: var(--f7-toolbar-new-height);
14
+ flex-shrink: 0;
15
+ color: var(--f7-toolbar-new-text-color, var(--f7-bars-text-color));
16
+ font-size: var(--f7-toolbar-new-font-size);
17
+
18
+ b {
19
+ font-weight: 600;
20
+ }
21
+ a {
22
+ color: var(--f7-toolbar-new-link-color, var(--f7-bars-link-color, var(--f7-theme-color)));
23
+ box-sizing: border-box;
24
+ flex-shrink: 1;
25
+ position: relative;
26
+ white-space: nowrap;
27
+ text-overflow: ellipsis;
28
+ }
29
+ .link {
30
+ display: flex;
31
+
32
+ font-weight: var(--f7-toolbar-new-link-font-weight);
33
+ }
34
+ i.icon {
35
+ display: block;
36
+ }
37
+ &:after,
38
+ &:before {
39
+ backface-visibility: hidden;
40
+ }
41
+ }
42
+ .views,
43
+ .view,
44
+ .page {
45
+ > .toolbar-new {
46
+ position: absolute;
47
+ }
48
+ }
49
+ .toolbar-new-top,
50
+ .ios .toolbar-new-top-ios,
51
+ .md .toolbar-new-top-md {
52
+ top: 0;
53
+ }
54
+ .toolbar-new-bottom,
55
+ .ios .toolbar-new-bottom-ios,
56
+ .md .toolbar-new-bottom-md {
57
+ bottom: 0;
58
+ height: calc(var(--f7-toolbar-new-height) + var(--f7-safe-area-bottom));
59
+ .toolbar-new-inner {
60
+ height: auto;
61
+ top: 0;
62
+ bottom: var(--f7-safe-area-bottom);
63
+ }
64
+ }
65
+ .toolbar-new-inner {
66
+ position: absolute;
67
+ z-index: 1;
68
+ left: 0;
69
+ top: 0;
70
+ width: 100%;
71
+ height: 100%;
72
+ display: flex;
73
+
74
+ box-sizing: border-box;
75
+ align-items: center;
76
+ align-content: center;
77
+
78
+ padding: 0 calc(var(--f7-toolbar-new-inner-padding-right) + var(--f7-safe-area-right)) 0
79
+ calc(var(--f7-toolbar-new-inner-padding-left) + var(--f7-safe-area-left));
80
+ }
81
+ .tabbar-new,
82
+ .tabbar-new-icons {
83
+ .views > & {
84
+ z-index: 5001;
85
+ }
86
+ a {
87
+ color: var(--f7-tabbar-new-link-inactive-color);
88
+ }
89
+ .link {
90
+ line-height: 1.4;
91
+ }
92
+ .tab-link,
93
+ .link {
94
+ height: 100%;
95
+ width: 100%;
96
+ box-sizing: border-box;
97
+ display: flex;
98
+ justify-content: center;
99
+ align-items: center;
100
+ flex-direction: column;
101
+ text-transform: var(--f7-tabbar-new-link-text-transform);
102
+ font-weight: var(--f7-tabbar-new-link-font-weight);
103
+ letter-spacing: var(--f7-tabbar-new-link-letter-spacing);
104
+ overflow: hidden;
105
+ }
106
+ .tab-link-active {
107
+ color: var(--f7-tabbar-new-link-active-color, var(--f7-theme-color));
108
+ background-color: var(--f7-tabbar-new-link-active-bg-color, transparent);
109
+ }
110
+ i.icon {
111
+ font-size: var(--f7-tabbar-new-icon-size);
112
+ height: var(--f7-tabbar-new-icon-size);
113
+ line-height: var(--f7-tabbar-new-icon-size);
114
+ }
115
+ }
116
+ .tabbar-new-icons {
117
+ --f7-toolbar-new-height: var(--f7-tabbar-new-icons-height);
118
+ .tab-link,
119
+ .link {
120
+ height: 100%;
121
+ justify-content: center;
122
+ align-items: center;
123
+ }
124
+ .tabbar-new-label {
125
+ display: block;
126
+ line-height: 1;
127
+ margin: 0;
128
+ position: relative;
129
+ text-overflow: ellipsis;
130
+ white-space: nowrap;
131
+ font-size: var(--f7-tabbar-new-label-font-size);
132
+ text-transform: var(--f7-tabbar-new-label-text-transform);
133
+ font-weight: var(--f7-tabbar-new-label-font-weight);
134
+ letter-spacing: var(--f7-tabbar-new-label-letter-spacing);
135
+ }
136
+ }
137
+ @media (min-width: 768px) and (min-height: 600px) {
138
+ :root {
139
+ --f7-tabbar-new-icons-height: var(--f7-tabbar-new-icons-tablet-height);
140
+ --f7-tabbar-new-label-font-size: var(--f7-tabbar-new-label-tablet-font-size);
141
+ }
142
+ }
143
+ .tabbar-new-scrollable {
144
+ .toolbar-new-inner {
145
+ justify-content: flex-start;
146
+ .scrollable();
147
+ .no-scrollbar();
148
+ }
149
+ .tab-link,
150
+ .link {
151
+ width: auto;
152
+ flex-shrink: 0;
153
+ }
154
+ }
155
+ // Transitions
156
+ .toolbar-new-transitioning,
157
+ .navbar-new-transitioning + .toolbar-new,
158
+ .navbar-new-transitioning ~ * .toolbar-new {
159
+ transition-duration: var(--f7-toolbar-new-hide-show-transition-duration);
160
+ }
161
+
162
+ // Relation with page
163
+ .toolbar-new-bottom,
164
+ .ios .toolbar-new-bottom-ios,
165
+ .md .toolbar-new-bottom-md {
166
+ ~ * {
167
+ --f7-page-toolbar-new-bottom-offset: var(--f7-toolbar-new-height);
168
+ }
169
+ &.tabbar-new-icons ~ * {
170
+ --f7-page-toolbar-new-bottom-offset: var(--f7-tabbar-new-icons-height);
171
+ }
172
+ }
173
+ .toolbar-new-bottom,
174
+ .ios .toolbar-new-bottom-ios,
175
+ .md .toolbar-new-bottom-md {
176
+ &.toolbar-new-hidden {
177
+ transform: translate3d(0, 100%, 0);
178
+ }
179
+ }
180
+ .toolbar-new-top,
181
+ .ios .toolbar-new-top-ios,
182
+ .md .toolbar-new-top-md,
183
+ .sheet-modal-bottom > .toolbar-new:not(.toolbar-new-bottom) {
184
+ ~ * {
185
+ --f7-page-toolbar-new-top-offset: var(--f7-toolbar-new-height);
186
+ }
187
+ &.tabbar-new-icons ~ * {
188
+ --f7-page-toolbar-new-top-offset: var(--f7-tabbar-new-icons-height);
189
+ }
190
+ }
191
+ .toolbar-new-top,
192
+ .ios .toolbar-new-top-ios,
193
+ .md .toolbar-new-top-md {
194
+ &.toolbar-new-hidden {
195
+ transform: translate3d(0, -100%, 0);
196
+ }
197
+ }
198
+
199
+ .navbar-new ~ .toolbar-new-top,
200
+ .navbars-new ~ .toolbar-new-top,
201
+ .ios .navbar-new ~ .toolbar-new-top-ios,
202
+ .ios .navbars-new ~ .toolbar-new-top-ios,
203
+ .md .navbar-new ~ .toolbar-new-top-md,
204
+ .navbar-new ~ * .toolbar-new-top,
205
+ .navbars-new ~ * .toolbar-new-top,
206
+ .ios .navbar-new ~ * .toolbar-new-top-ios,
207
+ .ios .navbars-new ~ * .toolbar-new-top-ios,
208
+ .md .navbar-new ~ * .toolbar-new-top-md,
209
+ .navbar-new ~ .page:not(.no-navbar-new) .toolbar-new-top,
210
+ .navbars-new ~ .page:not(.no-navbar-new) .toolbar-new-top,
211
+ .ios .navbar-new ~ .page:not(.no-navbar-new) .toolbar-new-top-ios,
212
+ .ios .navbars-new ~ .page:not(.no-navbar-new) .toolbar-new-top-ios,
213
+ .md .navbar-new ~ .page:not(.no-navbar-new) .toolbar-new-top-md {
214
+ top: calc(var(--f7-navbar-new-height) + var(--f7-safe-area-top));
215
+ &.toolbar-new-hidden {
216
+ transform: translate3d(
217
+ 0,
218
+ calc(
219
+ -1 * (var(--f7-navbar-new-height) + var(--f7-toolbar-new-height) + var(--f7-safe-area-top))
220
+ ),
221
+ 0
222
+ );
223
+ &.tabbar-new-icons {
224
+ transform: translate3d(
225
+ 0,
226
+ calc(
227
+ -1 * (var(--f7-navbar-new-height) + var(--f7-tabbar-new-icons-height) +
228
+ var(--f7-safe-area-top))
229
+ ),
230
+ 0
231
+ );
232
+ }
233
+ }
234
+ }
235
+ .navbar-new-hidden + .toolbar-new-top:not(.toolbar-new-hidden),
236
+ .ios .navbar-new-hidden + .toolbar-new-top-ios:not(.toolbar-new-hidden),
237
+ .md .navbar-new-hidden + .toolbar-new-top-md:not(.toolbar-new-hidden),
238
+ .navbar-new-hidden ~ * .toolbar-new-top:not(.toolbar-new-hidden),
239
+ .ios .navbar-new-hidden ~ * .toolbar-new-top-ios:not(.toolbar-new-hidden),
240
+ .md .navbar-new-hidden ~ * .toolbar-new-top-md:not(.toolbar-new-hidden) {
241
+ transform: translate3d(0, calc(0px - var(--f7-navbar-new-height)), 0);
242
+ }
243
+ .navbar-new-large-hidden + .toolbar-new-top:not(.toolbar-new-hidden),
244
+ .ios .navbar-new-large-hidden + .toolbar-new-top-ios:not(.toolbar-new-hidden),
245
+ .md .navbar-new-large-hidden + .toolbar-new-top-md:not(.toolbar-new-hidden),
246
+ .navbar-new-large-hidden ~ * .toolbar-new-top:not(.toolbar-new-hidden),
247
+ .ios .navbar-new-large-hidden ~ * .toolbar-new-top-ios:not(.toolbar-new-hidden),
248
+ .md .navbar-new-large-hidden ~ * .toolbar-new-top-md:not(.toolbar-new-hidden) {
249
+ transform: translate3d(
250
+ 0,
251
+ calc(0px - var(--f7-navbar-new-height) - var(--f7-navbar-new-large-title-height)),
252
+ 0
253
+ );
254
+ }
255
+
256
+ .if-ios-theme({
257
+ @import './toolbar-ios.less';
258
+ });
259
+ .if-md-theme({
260
+ @import './toolbar-md.less';
261
+ });