@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,122 @@
1
+ import $ from '../../shared/dom7.js';
2
+ import { extend } from '../../shared/utils.js';
3
+ import SearchbarNew from './searchbar-new-class.js';
4
+ import ConstructorMethods from '../../shared/constructor-methods.js';
5
+ export default {
6
+ name: 'searchbar-new',
7
+ static: {
8
+ SearchbarNew
9
+ },
10
+ create() {
11
+ const app = this;
12
+ app.searchbarNew = ConstructorMethods({
13
+ defaultSelector: '.searchbar-new',
14
+ constructor: SearchbarNew,
15
+ app,
16
+ domProp: 'f7SearchbarNew',
17
+ addMethods: 'clear enable disable toggle search'.split(' ')
18
+ });
19
+ },
20
+ on: {
21
+ tabMounted(tabEl) {
22
+ const app = this;
23
+ $(tabEl).find('.searchbar-new-init').each(searchbarEl => {
24
+ const $searchbarEl = $(searchbarEl);
25
+ app.searchbarNew.create(extend($searchbarEl.dataset(), {
26
+ el: searchbarEl
27
+ }));
28
+ });
29
+ },
30
+ tabBeforeRemove(tabEl) {
31
+ $(tabEl).find('.searchbar-new-init').each(searchbarEl => {
32
+ if (searchbarEl.f7SearchbarNew && searchbarEl.f7SearchbarNew.destroy) {
33
+ searchbarEl.f7SearchbarNew.destroy();
34
+ }
35
+ });
36
+ },
37
+ pageInit(page) {
38
+ const app = this;
39
+ page.$el.find('.searchbar-new-init').each(searchbarEl => {
40
+ const $searchbarEl = $(searchbarEl);
41
+ app.searchbarNew.create(extend($searchbarEl.dataset(), {
42
+ el: searchbarEl
43
+ }));
44
+ });
45
+ if (app.theme === 'ios' && page.view && page.view.router.dynamicNavbar && page.$navbarNewEl && page.$navbarNewEl.length > 0) {
46
+ page.$navbarNewEl.find('.searchbar-new-init').each(searchbarEl => {
47
+ const $searchbarEl = $(searchbarEl);
48
+ app.searchbarNew.create(extend($searchbarEl.dataset(), {
49
+ el: searchbarEl
50
+ }));
51
+ });
52
+ }
53
+ },
54
+ pageBeforeRemove(page) {
55
+ const app = this;
56
+ page.$el.find('.searchbar-new-init').each(searchbarEl => {
57
+ if (searchbarEl.f7SearchbarNew && searchbarEl.f7SearchbarNew.destroy) {
58
+ searchbarEl.f7SearchbarNew.destroy();
59
+ }
60
+ });
61
+ if (app.theme === 'ios' && page.view && page.view.router.dynamicNavbar && page.$navbarNewEl && page.$navbarNewEl.length > 0) {
62
+ page.$navbarNewEl.find('.searchbar-new-init').each(searchbarEl => {
63
+ if (searchbarEl.f7SearchbarNew && searchbarEl.f7SearchbarNew.destroy) {
64
+ searchbarEl.f7SearchbarNew.destroy();
65
+ }
66
+ });
67
+ }
68
+ }
69
+ },
70
+ clicks: {
71
+ '.searchbar-new-clear': function clear($clickedEl, data) {
72
+ if (data === void 0) {
73
+ data = {};
74
+ }
75
+ const app = this;
76
+ const sb = app.searchbarNew.get(data.searchbar);
77
+ if (sb) sb.clear();
78
+ },
79
+ '.searchbar-new-enable': function enable($clickedEl, data) {
80
+ if (data === void 0) {
81
+ data = {};
82
+ }
83
+ const app = this;
84
+ const sb = app.searchbarNew.get(data.searchbar);
85
+ if (sb) sb.enable(true);
86
+ },
87
+ '.searchbar-new-disable': function disable($clickedEl, data) {
88
+ if (data === void 0) {
89
+ data = {};
90
+ }
91
+ const app = this;
92
+ const sb = app.searchbarNew.get(data.searchbar);
93
+ if (sb) sb.disable();
94
+ },
95
+ '.searchbar-new-toggle': function toggle($clickedEl, data) {
96
+ if (data === void 0) {
97
+ data = {};
98
+ }
99
+ const app = this;
100
+ const sb = app.searchbarNew.get(data.searchbar);
101
+ if (sb) sb.toggle();
102
+ }
103
+ },
104
+ vnode: {
105
+ 'searchbar-new-init': {
106
+ insert(vnode) {
107
+ const app = this;
108
+ const searchbarEl = vnode.elm;
109
+ const $searchbarEl = $(searchbarEl);
110
+ app.searchbarNew.create(extend($searchbarEl.dataset(), {
111
+ el: searchbarEl
112
+ }));
113
+ },
114
+ destroy(vnode) {
115
+ const searchbarEl = vnode.elm;
116
+ if (searchbarEl.f7SearchbarNew && searchbarEl.f7SearchbarNew.destroy) {
117
+ searchbarEl.f7SearchbarNew.destroy();
118
+ }
119
+ }
120
+ }
121
+ }
122
+ };
@@ -0,0 +1,331 @@
1
+ /* === Searchbar New === */
2
+ @import './searchbar-vars.less';
3
+
4
+ .searchbar-new {
5
+ --f7-link-highlight-color: var(--f7-link-highlight-black);
6
+ .dark & {
7
+ --f7-link-highlight-color: var(--f7-link-highlight-white);
8
+ }
9
+ width: 100%;
10
+ position: relative;
11
+ z-index: 200;
12
+ height: var(--f7-searchbar-new-height);
13
+ background-color: var(--f7-searchbar-new-bars-bg-color);
14
+ input[type='search']::-webkit-search-decoration {
15
+ display: none;
16
+ }
17
+ .ios .subnavbar & {
18
+ background-color: transparent;
19
+ backdrop-filter: none;
20
+ .hairline-remove(bottom);
21
+ }
22
+ &.no-outline {
23
+ &:after {
24
+ display: none !important;
25
+ }
26
+ }
27
+
28
+ .hairline(bottom, var(--f7-searchbar-new-border-color, var(--f7-bars-border-color)));
29
+
30
+ .page > &:not(.searchbar-new-inline) {
31
+ z-index: 600;
32
+ }
33
+ input[type='text'],
34
+ input[type='search'] {
35
+ box-sizing: border-box;
36
+ width: 100%;
37
+ height: 100%;
38
+ display: block;
39
+ border: var(--f7-searchbar-new-input-border-width) solid
40
+ var(--f7-searchbar-new-input-border-color);
41
+ appearance: none;
42
+ font-family: inherit;
43
+ font-weight: normal;
44
+ color: var(--f7-searchbar-new-input-text-color);
45
+ font-size: var(--f7-searchbar-new-input-font-size);
46
+ background-color: var(--f7-searchbar-new-input-bg-color);
47
+ border-radius: var(--f7-searchbar-new-input-border-radius);
48
+ position: relative;
49
+ padding: 0;
50
+ .ltr({
51
+ padding-left: calc(var(--f7-searchbar-new-input-padding-horizontal) + var(--f7-searchbar-new-input-extra-padding-left, 0px));
52
+ padding-right: calc(var(--f7-searchbar-new-input-padding-horizontal) + var(--f7-searchbar-new-input-extra-padding-right, 0px));;
53
+ });
54
+ .rtl({
55
+ padding-left: calc(var(--f7-searchbar-new-input-padding-horizontal) + var(--f7-searchbar-new-input-extra-padding-right, 0px));;
56
+ padding-right: calc(var(--f7-searchbar-new-input-padding-horizontal) + var(--f7-searchbar-new-input-extra-padding-left, 0px));
57
+ });
58
+ &::placeholder {
59
+ color: var(--f7-searchbar-new-placeholder-color);
60
+ opacity: 1;
61
+ }
62
+ }
63
+ input::-webkit-search-cancel-button {
64
+ appearance: none;
65
+ }
66
+ .searchbar-new-input-wrap {
67
+ flex-shrink: 1;
68
+ width: 100%;
69
+ height: var(--f7-searchbar-new-input-height);
70
+ position: relative;
71
+ }
72
+ a {
73
+ color: var(--f7-searchbar-new-link-color, var(--f7-bars-link-color, var(--f7-theme-color)));
74
+ }
75
+ .page > &:not(.searchbar-new-inline) {
76
+ position: absolute;
77
+ left: 16px;
78
+ right: 16px;
79
+ width: auto;
80
+ top: 0;
81
+ }
82
+ .page-content &:not(.searchbar-new-inline) {
83
+ border-radius: var(--f7-searchbar-new-in-page-content-border-radius);
84
+ margin: var(--f7-searchbar-new-in-page-content-margin);
85
+ width: auto;
86
+ box-shadow: var(--f7-searchbar-new-in-page-content-box-shadow);
87
+ .searchbar-new-inner,
88
+ input[type='text'],
89
+ input[type='search'] {
90
+ border-radius: var(
91
+ --f7-searchbar-new-in-page-content-input-border-radius,
92
+ var(--f7-searchbar-new-input-border-radius)
93
+ );
94
+ }
95
+ }
96
+ .input-clear-button {
97
+ color: var(--f7-searchbar-new-input-clear-button-color, var(--f7-input-clear-button-color));
98
+ }
99
+ }
100
+ .searchbar-new-expandable {
101
+ --f7-searchbar-new-expandable-size: var(--f7-searchbar-new-height);
102
+ position: absolute;
103
+ transition-duration: 300ms;
104
+ pointer-events: none;
105
+ }
106
+ .navbar-new .searchbar-new-expandable {
107
+ .hairline-remove(bottom);
108
+ background: transparent;
109
+ }
110
+ .navbar-new .searchbar-new.searchbar-new-expandable {
111
+ --f7-searchbar-new-expandable-size: calc(var(--f7-navbar-new-height) + var(--f7-safe-area-top));
112
+ .searchbar-new-inner {
113
+ top: var(--f7-safe-area-top);
114
+ height: calc(100% - var(--f7-safe-area-top));
115
+ }
116
+ }
117
+ .toolbar .searchbar-new.searchbar-new-expandable {
118
+ --f7-searchbar-new-expandable-size: var(--f7-toolbar-height);
119
+ }
120
+ .subnavbar .searchbar-new.searchbar-new-expandable {
121
+ --f7-searchbar-new-expandable-size: var(--f7-subnavbar-height);
122
+ }
123
+ .tabbar-icons .searchbar-new.searchbar-new-expandable {
124
+ --f7-searchbar-new-expandable-size: var(--f7-tabbar-icons-height);
125
+ }
126
+ .searchbar-new-inner {
127
+ position: absolute;
128
+ left: 0;
129
+ top: 0;
130
+ width: 100%;
131
+ height: 100%;
132
+ display: flex;
133
+ align-items: center;
134
+ box-sizing: border-box;
135
+ padding: 0 calc(var(--f7-searchbar-new-inner-padding-right) + var(--f7-safe-area-right)) 0
136
+ calc(var(--f7-searchbar-new-inner-padding-left) + var(--f7-safe-area-left));
137
+ }
138
+ .searchbar-new-disable-button {
139
+ cursor: pointer;
140
+ pointer-events: none;
141
+ appearance: none;
142
+ background: none;
143
+ border: none;
144
+ outline: 0;
145
+ padding: 0;
146
+ margin: 0;
147
+ width: auto;
148
+ opacity: 0;
149
+ }
150
+ .searchbar-new-icon {
151
+ pointer-events: none;
152
+ background-position: center;
153
+ background-repeat: no-repeat;
154
+ &:after {
155
+ color: var(--f7-searchbar-new-search-icon-color);
156
+ .core-icons-font();
157
+ }
158
+ }
159
+ .searchbar-new-backdrop {
160
+ position: absolute;
161
+ left: 0;
162
+ top: 0;
163
+ width: 100%;
164
+ height: 100%;
165
+ z-index: 100;
166
+ opacity: 0;
167
+ pointer-events: none;
168
+ transition-duration: 300ms;
169
+ transform: translate3d(0, 0, 0);
170
+ background: var(--f7-searchbar-new-backdrop-bg-color);
171
+ &.searchbar-new-backdrop-in {
172
+ opacity: 1;
173
+ pointer-events: auto;
174
+ }
175
+ .page-content > & {
176
+ position: fixed;
177
+ }
178
+ }
179
+ .searchbar-new-found {
180
+ display: none;
181
+ }
182
+ .searchbar-new-not-found {
183
+ display: none;
184
+ }
185
+ .hidden-by-searchbar-new {
186
+ &,
187
+ .list &,
188
+ .list.li&,
189
+ .list li& {
190
+ display: none !important;
191
+ }
192
+ }
193
+ .navbar-new.with-searchbar-new-expandable-enabled-no-transition,
194
+ .navbar-new.with-searchbar-new-expandable-enabled-no-transition {
195
+ --f7-navbar-new-large-collapse-progress: 1;
196
+ }
197
+ .navbar-new.with-searchbar-new-expandable-enabled,
198
+ .navbar-new.with-searchbar-new-expandable-enabled {
199
+ --f7-navbar-new-large-collapse-progress: 1;
200
+ .navbar-new-bg,
201
+ .title-large,
202
+ .title-large-text {
203
+ transition-duration: 300ms;
204
+ }
205
+ }
206
+ .navbar-new.with-searchbar-new-expandable-closing,
207
+ .navbar-new.with-searchbar-new-expandable-closing {
208
+ .navbar-new-bg,
209
+ .title-large,
210
+ .title-large-text {
211
+ transition-duration: 300ms;
212
+ }
213
+ }
214
+
215
+ .page-content.with-searchbar-new-expandable-enabled {
216
+ height: calc(100% + var(--f7-navbar-new-large-title-height));
217
+ transform: translateY(calc(-1 * var(--f7-navbar-new-large-title-height)));
218
+ transition-duration: 300ms;
219
+ transition-property: transform;
220
+ }
221
+ .page-content.with-searchbar-new-expandable-closing {
222
+ transition-duration: 300ms;
223
+ }
224
+
225
+ // Relation with page
226
+ .navbar-new ~ .page:not(.no-navbar) > .searchbar-new,
227
+ .page > .navbar-new ~ .searchbar-new {
228
+ top: calc(var(--f7-navbar-new-height) + var(--f7-safe-area-top));
229
+ }
230
+
231
+ .navbar-new ~ .page-with-navbar-new-large:not(.no-navbar) .searchbar-new,
232
+ .page-with-navbar-new-large .navbar-new ~ .searchbar-new,
233
+ .page-with-navbar-new-large .navbar-new ~ * .searchbar-new {
234
+ top: calc(
235
+ var(--f7-navbar-new-height) + var(--f7-navbar-new-large-title-height) + var(--f7-safe-area-top)
236
+ );
237
+ transform: translate3d(
238
+ 0,
239
+ calc(
240
+ -1 * var(--f7-navbar-new-large-collapse-progress) * var(--f7-navbar-new-large-title-height)
241
+ ),
242
+ 0
243
+ );
244
+ }
245
+ .page-with-navbar-new-large .page-content .searchbar-new {
246
+ top: 0;
247
+ transform: none;
248
+ }
249
+
250
+ .searchbar-new ~ * {
251
+ --f7-page-searchbar-new-offset: var(--f7-searchbar-new-height);
252
+ }
253
+
254
+ // Toolbar
255
+ .page > .toolbar-top,
256
+ .ios .page > .toolbar-top-ios,
257
+ .md .page > .toolbar-top-md {
258
+ ~ .searchbar-new {
259
+ top: var(--f7-toolbar-height);
260
+ }
261
+ }
262
+ .page > .tabbar-icons.toolbar-top,
263
+ .ios .page > .tabbar-icons.toolbar-top-ios,
264
+ .md .page > .tabbar-icons.toolbar-top-md {
265
+ ~ .searchbar-new {
266
+ top: var(--f7-tabbar-icons-height);
267
+ }
268
+ }
269
+ .page > .navbar-new ~ .toolbar-top,
270
+ .ios .page > .navbar-new ~ .toolbar-top-ios,
271
+ .md .page > .navbar-new ~ .toolbar-top-md {
272
+ ~ .searchbar-new {
273
+ top: calc(var(--f7-navbar-new-height) + var(--f7-toolbar-height) + var(--f7-safe-area-top));
274
+ }
275
+ }
276
+ .page > .navbar-new ~ .tabbar-icons.toolbar-top,
277
+ .ios .page > .navbar-new ~ .tabbar-icons.toolbar-top-ios,
278
+ .md .page > .navbar-new ~ .tabbar-icons.toolbar-top-md {
279
+ ~ .searchbar-new {
280
+ top: calc(
281
+ var(--f7-navbar-new-height) + var(--f7-tabbar-icons-height) + var(--f7-safe-area-top)
282
+ );
283
+ }
284
+ }
285
+
286
+ .searchbar-new.searchbar-new-inline {
287
+ width: auto;
288
+ height: auto;
289
+ background-color: transparent;
290
+ background-image: none;
291
+
292
+ &:after,
293
+ &:before {
294
+ display: none !important;
295
+ }
296
+ .searchbar-new-input-wrap {
297
+ height: var(--f7-searchbar-new-inline-input-height, var(--f7-searchbar-new-input-height));
298
+ }
299
+ .searchbar-new-inner {
300
+ padding: 0;
301
+ position: static;
302
+ width: auto;
303
+ height: auto;
304
+ }
305
+ input[type='text'],
306
+ input[type='search'] {
307
+ font-size: var(
308
+ --f7-searchbar-new-inline-input-font-size,
309
+ var(--f7-searchbar-new-input-font-size)
310
+ );
311
+ border-radius: var(
312
+ --f7-searchbar-new-inline-input-border-radius,
313
+ var(--f7-searchbar-new-input-border-radius)
314
+ );
315
+ .ltr({
316
+ padding-left: calc(var(--f7-searchbar-new-inline-input-padding-horizontal, var(--f7-searchbar-new-input-padding-horizontal)) + var(--f7-searchbar-new-input-extra-padding-left, 0px));
317
+ padding-right: calc(var(--f7-searchbar-new-inline-input-padding-horizontal, var(--f7-searchbar-new-input-padding-horizontal)) + var(--f7-searchbar-new-input-extra-padding-right, 0px));;
318
+ });
319
+ .rtl({
320
+ padding-left: calc(var(--f7-searchbar-new-inline-input-padding-horizontal, var(--f7-searchbar-new-input-padding-horizontal)) + var(--f7-searchbar-new-input-extra-padding-right, 0px));;
321
+ padding-right: calc(var(--f7-searchbar-new-inline-input-padding-horizontal, var(--f7-searchbar-new-input-padding-horizontal)) + var(--f7-searchbar-new-input-extra-padding-left, 0px));
322
+ });
323
+ }
324
+ }
325
+
326
+ .if-ios-theme({
327
+ @import './searchbar-ios.less';
328
+ });
329
+ .if-md-theme({
330
+ @import './searchbar-md.less';
331
+ });
@@ -1,2 +1,39 @@
1
1
  .ios {
2
+ .swipeout-actions-right {
3
+ right: 0%;
4
+ }
5
+ .swipeout-actions-left {
6
+ left: 0%;
7
+ }
8
+ .swipeout-actions-left,
9
+ .swipeout-actions-right {
10
+ padding: 0 10px;
11
+ gap: 10px;
12
+ align-items: center;
13
+ > a,
14
+ > button,
15
+ > span,
16
+ > div {
17
+ transform: scale(0);
18
+ padding: var(--f7-swipeout-button-padding-vertical)
19
+ var(--f7-swipeout-button-padding-horizontal);
20
+ }
21
+ }
22
+ .swipeout-opened,
23
+ .swipeout-active {
24
+ .swipeout-content {
25
+ background-color: var(--f7-swipeout-active-bg-color);
26
+ border-radius: var(--f7-swipeout-active-border-radius);
27
+ }
28
+ .item-content {
29
+ border-radius: var(--f7-swipeout-active-border-radius);
30
+ }
31
+ .swipeout-content .item-inner::after {
32
+ opacity: 0;
33
+ }
34
+ }
35
+ .swipeout-overswipe {
36
+ transition-duration: 200ms;
37
+ transition-property: transform, left, width, margin-left, margin-right;
38
+ }
2
39
  }
@@ -1,2 +1,58 @@
1
1
  .md {
2
+ .swipeout-actions-left,
3
+ .swipeout-actions-right {
4
+ > a,
5
+ > button,
6
+ > span,
7
+ > div {
8
+ &:after {
9
+ content: '';
10
+ pointer-events: none;
11
+ position: absolute;
12
+ top: 0;
13
+ width: 600%;
14
+ height: 100%;
15
+ background: inherit;
16
+ z-index: -1;
17
+ transform: translate3d(0, 0, 0);
18
+ pointer-events: none;
19
+ }
20
+ }
21
+ }
22
+ .swipeout-actions-right {
23
+ right: 0%;
24
+ transform: translateX(calc(100% + 1px));
25
+ > a,
26
+ > button,
27
+ > span,
28
+ > div {
29
+ &:after {
30
+ left: 100%;
31
+ }
32
+ &:last-child {
33
+ padding-right: calc(
34
+ var(--f7-swipeout-button-padding-horizontal) + var(--f7-safe-area-right)
35
+ );
36
+ }
37
+ }
38
+ }
39
+ .swipeout-actions-left {
40
+ left: 0%;
41
+ transform: translateX(calc(-100% - 1px));
42
+ > a,
43
+ > button,
44
+ > span,
45
+ > div {
46
+ &:after {
47
+ right: 100%;
48
+ }
49
+ &:first-child {
50
+ padding-left: calc(var(--f7-swipeout-button-padding-horizontal) + var(--f7-safe-area-left));
51
+ }
52
+ }
53
+ }
54
+
55
+ .swipeout-overswipe {
56
+ transition-property: left;
57
+ }
2
58
  }
@@ -1 +1 @@
1
- :root{--f7-swipeout-delete-button-bg-color:#ff3b30;--f7-swipeout-button-text-color:#fff;--f7-swipeout-button-padding-vertical:0px;--f7-swipeout-button-bg-color:rgba(0, 0, 0, 0.22)}:root .dark,:root.dark{--f7-swipeout-button-bg-color:rgba(255, 255, 255, 0.55)}.ios{--f7-swipeout-button-padding-horizontal:30px;--f7-swipeout-button-font-size:inherit;--f7-swipeout-button-font-weight:inherit}.md{--f7-swipeout-button-padding-horizontal:24px;--f7-swipeout-button-font-size:14px;--f7-swipeout-button-font-weight:500}.md .dark,.md.dark{--f7-swipeout-button-text-color:#000}.swipeout{overflow:hidden;transform-style:preserve-3d}.swipeout-deleting{transition-duration:.3s}.swipeout-deleting .swipeout-content{transform:translateX(-100%)}.swipeout-transitioning .swipeout-actions-left a,.swipeout-transitioning .swipeout-actions-right a,.swipeout-transitioning .swipeout-content,.swipeout-transitioning .swipeout-overswipe{transition-duration:.3s;transition-property:transform,left}.swipeout-content{position:relative;z-index:10}.swipeout-overswipe{transition-duration:.2s;transition-property:left}.swipeout-actions-left,.swipeout-actions-right{position:absolute;top:0;height:100%;display:flex;direction:ltr}.swipeout-actions-left>a,.swipeout-actions-left>button,.swipeout-actions-left>div,.swipeout-actions-left>span,.swipeout-actions-right>a,.swipeout-actions-right>button,.swipeout-actions-right>div,.swipeout-actions-right>span{color:var(--f7-swipeout-button-text-color);background:var(--f7-swipeout-button-bg-color);padding:var(--f7-swipeout-button-padding-vertical) var(--f7-swipeout-button-padding-horizontal);display:flex;align-items:center;position:relative;left:0;font-size:var(--f7-swipeout-button-font-size);font-weight:var(--f7-swipeout-button-font-weight)}.swipeout-actions-left>a:after,.swipeout-actions-left>button:after,.swipeout-actions-left>div:after,.swipeout-actions-left>span:after,.swipeout-actions-right>a:after,.swipeout-actions-right>button:after,.swipeout-actions-right>div:after,.swipeout-actions-right>span:after{content:'';position:absolute;top:0;width:600%;height:100%;background:inherit;z-index:-1;transform:translate3d(0,0,0);pointer-events:none}.swipeout-actions-left .swipeout-delete,.swipeout-actions-right .swipeout-delete{background:var(--f7-swipeout-delete-button-bg-color)}.swipeout-actions-right{right:0%;transform:translateX(calc(100% + 1px))}.swipeout-actions-right>a:after,.swipeout-actions-right>button:after,.swipeout-actions-right>div:after,.swipeout-actions-right>span:after{left:100%}.swipeout-actions-right>a:last-child,.swipeout-actions-right>button:last-child,.swipeout-actions-right>div:last-child,.swipeout-actions-right>span:last-child{padding-right:calc(var(--f7-swipeout-button-padding-horizontal) + var(--f7-safe-area-right))}.swipeout-actions-left{left:0%;transform:translateX(calc(-100% - 1px))}.swipeout-actions-left>a:after,.swipeout-actions-left>button:after,.swipeout-actions-left>div:after,.swipeout-actions-left>span:after{right:100%}.swipeout-actions-left>a:first-child,.swipeout-actions-left>button:first-child,.swipeout-actions-left>div:first-child,.swipeout-actions-left>span:first-child{padding-left:calc(var(--f7-swipeout-button-padding-horizontal) + var(--f7-safe-area-left))}.swipeout-actions-left [class*=color-],.swipeout-actions-right [class*=color-]{--f7-swipeout-button-bg-color:var(--f7-theme-color)}
1
+ :root{--f7-swipeout-delete-button-bg-color:#ff3b30;--f7-swipeout-button-text-color:#fff;--f7-swipeout-button-bg-color:rgba(0, 0, 0, 0.22)}:root .dark,:root.dark{--f7-swipeout-button-bg-color:rgba(255, 255, 255, 0.55)}.ios{--f7-swipeout-button-border-radius:48px;--f7-swipeout-button-padding-vertical:10px;--f7-swipeout-button-padding-horizontal:16px;--f7-swipeout-button-font-size:inherit;--f7-swipeout-button-font-weight:inherit;--f7-swipeout-active-border-radius:16px;--f7-swipeout-active-bg-color:#eee}.ios .dark,.ios.dark{--f7-swipeout-active-bg-color:#2c2c2e}.md{--f7-swipeout-button-border-radius:0px;--f7-swipeout-button-padding-vertical:0px;--f7-swipeout-button-padding-horizontal:24px;--f7-swipeout-button-font-size:14px;--f7-swipeout-button-font-weight:500}.md .dark,.md.dark{--f7-swipeout-button-text-color:#000}.swipeout{overflow:hidden;transform-style:preserve-3d}.swipeout-deleting{transition-duration:.3s}.swipeout-deleting .swipeout-content{transform:translateX(-100%)}.swipeout-transitioning .swipeout-content,.swipeout-transitioning .swipeout-content .item-inner::after{transition-duration:.3s;transition-property:transform,left,background-color,border-radius,opacity}.swipeout-transitioning .swipeout-actions-left a,.swipeout-transitioning .swipeout-actions-right a,.swipeout-transitioning .swipeout-overswipe{transition-duration:.3s;transition-property:transform,left,width,margin-left,margin-right}.swipeout-transitioning:not(.swipeout-opened) .swipeout-content{transition-delay:0s,0s,0.3s,0.3s,0s}.list li:has( + li:is(.swipeout-opened,.swipeout-active)) .item-inner::after{opacity:0;transition-duration:.3s}.swipeout-content{position:relative;z-index:10}.swipeout-overswipe{transition-duration:.2s}.swipeout-actions-left,.swipeout-actions-right{position:absolute;top:0;height:100%;display:flex;direction:ltr}.swipeout-actions-left>a,.swipeout-actions-left>button,.swipeout-actions-left>div,.swipeout-actions-left>span,.swipeout-actions-right>a,.swipeout-actions-right>button,.swipeout-actions-right>div,.swipeout-actions-right>span{box-sizing:border-box;border-radius:var(--f7-swipeout-button-border-radius);color:var(--f7-swipeout-button-text-color);background:var(--f7-swipeout-button-bg-color);padding:var(--f7-swipeout-button-padding-vertical) var(--f7-swipeout-button-padding-horizontal);display:flex;align-items:center;position:relative;left:0;font-size:var(--f7-swipeout-button-font-size);font-weight:var(--f7-swipeout-button-font-weight)}.swipeout-actions-left .swipeout-delete,.swipeout-actions-right .swipeout-delete{background:var(--f7-swipeout-delete-button-bg-color)}.swipeout-actions-left [class*=color-],.swipeout-actions-right [class*=color-]{--f7-swipeout-button-bg-color:var(--f7-theme-color)}.ios .swipeout-actions-right{right:0%}.ios .swipeout-actions-left{left:0%}.ios .swipeout-actions-left,.ios .swipeout-actions-right{padding:0 10px;gap:10px;align-items:center}.ios .swipeout-actions-left>a,.ios .swipeout-actions-left>button,.ios .swipeout-actions-left>div,.ios .swipeout-actions-left>span,.ios .swipeout-actions-right>a,.ios .swipeout-actions-right>button,.ios .swipeout-actions-right>div,.ios .swipeout-actions-right>span{transform:scale(0);padding:var(--f7-swipeout-button-padding-vertical) var(--f7-swipeout-button-padding-horizontal)}.ios .swipeout-active .swipeout-content,.ios .swipeout-opened .swipeout-content{background-color:var(--f7-swipeout-active-bg-color);border-radius:var(--f7-swipeout-active-border-radius)}.ios .swipeout-active .item-content,.ios .swipeout-opened .item-content{border-radius:var(--f7-swipeout-active-border-radius)}.ios .swipeout-active .swipeout-content .item-inner::after,.ios .swipeout-opened .swipeout-content .item-inner::after{opacity:0}.ios .swipeout-overswipe{transition-duration:.2s;transition-property:transform,left,width,margin-left,margin-right}.md .swipeout-actions-left>a:after,.md .swipeout-actions-left>button:after,.md .swipeout-actions-left>div:after,.md .swipeout-actions-left>span:after,.md .swipeout-actions-right>a:after,.md .swipeout-actions-right>button:after,.md .swipeout-actions-right>div:after,.md .swipeout-actions-right>span:after{content:'';position:absolute;top:0;width:600%;height:100%;background:inherit;z-index:-1;transform:translate3d(0,0,0);pointer-events:none}.md .swipeout-actions-right{right:0%;transform:translateX(calc(100% + 1px))}.md .swipeout-actions-right>a:after,.md .swipeout-actions-right>button:after,.md .swipeout-actions-right>div:after,.md .swipeout-actions-right>span:after{left:100%}.md .swipeout-actions-right>a:last-child,.md .swipeout-actions-right>button:last-child,.md .swipeout-actions-right>div:last-child,.md .swipeout-actions-right>span:last-child{padding-right:calc(var(--f7-swipeout-button-padding-horizontal) + var(--f7-safe-area-right))}.md .swipeout-actions-left{left:0%;transform:translateX(calc(-100% - 1px))}.md .swipeout-actions-left>a:after,.md .swipeout-actions-left>button:after,.md .swipeout-actions-left>div:after,.md .swipeout-actions-left>span:after{right:100%}.md .swipeout-actions-left>a:first-child,.md .swipeout-actions-left>button:first-child,.md .swipeout-actions-left>div:first-child,.md .swipeout-actions-left>span:first-child{padding-left:calc(var(--f7-swipeout-button-padding-horizontal) + var(--f7-safe-area-left))}.md .swipeout-overswipe{transition-property:left}
@@ -1,7 +1,7 @@
1
1
  :root {
2
2
  --f7-swipeout-delete-button-bg-color: #ff3b30;
3
3
  --f7-swipeout-button-text-color: #fff;
4
- --f7-swipeout-button-padding-vertical: 0px;
4
+
5
5
  .light-vars({
6
6
  --f7-swipeout-button-bg-color: rgba(0,0,0,0.22);
7
7
  });
@@ -10,11 +10,22 @@
10
10
  });
11
11
  }
12
12
  .ios-vars({
13
- --f7-swipeout-button-padding-horizontal: 30px;
13
+ --f7-swipeout-button-border-radius: 48px;
14
+ --f7-swipeout-button-padding-vertical: 10px;
15
+ --f7-swipeout-button-padding-horizontal: 16px;
14
16
  --f7-swipeout-button-font-size: inherit;
15
17
  --f7-swipeout-button-font-weight: inherit;
18
+ --f7-swipeout-active-border-radius: 16px;
19
+ .light-vars({
20
+ --f7-swipeout-active-bg-color: #eee;
21
+ });
22
+ .dark-vars({
23
+ --f7-swipeout-active-bg-color: #2c2c2e;
24
+ });
16
25
  });
17
26
  .md-vars({
27
+ --f7-swipeout-button-border-radius: 0px;
28
+ --f7-swipeout-button-padding-vertical: 0px;
18
29
  --f7-swipeout-button-padding-horizontal: 24px;
19
30
  --f7-swipeout-button-font-size: 14px;
20
31
  --f7-swipeout-button-font-weight: 500;
@@ -1 +1 @@
1
- :root{--f7-swipeout-delete-button-bg-color:#ff3b30;--f7-swipeout-button-text-color:#fff;--f7-swipeout-button-padding-vertical:0px;--f7-swipeout-button-bg-color:rgba(0, 0, 0, 0.22)}:root .dark,:root.dark{--f7-swipeout-button-bg-color:rgba(255, 255, 255, 0.55)}.ios{--f7-swipeout-button-padding-horizontal:30px;--f7-swipeout-button-font-size:inherit;--f7-swipeout-button-font-weight:inherit}.md{--f7-swipeout-button-padding-horizontal:24px;--f7-swipeout-button-font-size:14px;--f7-swipeout-button-font-weight:500}.md .dark,.md.dark{--f7-swipeout-button-text-color:#000}.swipeout{overflow:hidden;transform-style:preserve-3d}.swipeout-deleting{transition-duration:.3s}.swipeout-deleting .swipeout-content{transform:translateX(-100%)}.swipeout-transitioning .swipeout-actions-left a,.swipeout-transitioning .swipeout-actions-right a,.swipeout-transitioning .swipeout-content,.swipeout-transitioning .swipeout-overswipe{transition-duration:.3s;transition-property:transform,left}.swipeout-content{position:relative;z-index:10}.swipeout-overswipe{transition-duration:.2s;transition-property:left}.swipeout-actions-left,.swipeout-actions-right{position:absolute;top:0;height:100%;display:flex;direction:ltr}.swipeout-actions-left>a,.swipeout-actions-left>button,.swipeout-actions-left>div,.swipeout-actions-left>span,.swipeout-actions-right>a,.swipeout-actions-right>button,.swipeout-actions-right>div,.swipeout-actions-right>span{color:var(--f7-swipeout-button-text-color);background:var(--f7-swipeout-button-bg-color);padding:var(--f7-swipeout-button-padding-vertical) var(--f7-swipeout-button-padding-horizontal);display:flex;align-items:center;position:relative;left:0;font-size:var(--f7-swipeout-button-font-size);font-weight:var(--f7-swipeout-button-font-weight)}.swipeout-actions-left>a:after,.swipeout-actions-left>button:after,.swipeout-actions-left>div:after,.swipeout-actions-left>span:after,.swipeout-actions-right>a:after,.swipeout-actions-right>button:after,.swipeout-actions-right>div:after,.swipeout-actions-right>span:after{content:'';position:absolute;top:0;width:600%;height:100%;background:inherit;z-index:-1;transform:translate3d(0,0,0);pointer-events:none}.swipeout-actions-left .swipeout-delete,.swipeout-actions-right .swipeout-delete{background:var(--f7-swipeout-delete-button-bg-color)}.swipeout-actions-right{right:0%;transform:translateX(calc(100% + 1px))}.swipeout-actions-right>a:after,.swipeout-actions-right>button:after,.swipeout-actions-right>div:after,.swipeout-actions-right>span:after{left:100%}.swipeout-actions-right>a:last-child,.swipeout-actions-right>button:last-child,.swipeout-actions-right>div:last-child,.swipeout-actions-right>span:last-child{padding-right:calc(var(--f7-swipeout-button-padding-horizontal) + var(--f7-safe-area-right))}.swipeout-actions-left{left:0%;transform:translateX(calc(-100% - 1px))}.swipeout-actions-left>a:after,.swipeout-actions-left>button:after,.swipeout-actions-left>div:after,.swipeout-actions-left>span:after{right:100%}.swipeout-actions-left>a:first-child,.swipeout-actions-left>button:first-child,.swipeout-actions-left>div:first-child,.swipeout-actions-left>span:first-child{padding-left:calc(var(--f7-swipeout-button-padding-horizontal) + var(--f7-safe-area-left))}.swipeout-actions-left [class*=color-],.swipeout-actions-right [class*=color-]{--f7-swipeout-button-bg-color:var(--f7-theme-color)}
1
+ :root{--f7-swipeout-delete-button-bg-color:#ff3b30;--f7-swipeout-button-text-color:#fff;--f7-swipeout-button-bg-color:rgba(0, 0, 0, 0.22)}:root .dark,:root.dark{--f7-swipeout-button-bg-color:rgba(255, 255, 255, 0.55)}.ios{--f7-swipeout-button-border-radius:48px;--f7-swipeout-button-padding-vertical:10px;--f7-swipeout-button-padding-horizontal:16px;--f7-swipeout-button-font-size:inherit;--f7-swipeout-button-font-weight:inherit;--f7-swipeout-active-border-radius:16px;--f7-swipeout-active-bg-color:#eee}.ios .dark,.ios.dark{--f7-swipeout-active-bg-color:#2c2c2e}.md{--f7-swipeout-button-border-radius:0px;--f7-swipeout-button-padding-vertical:0px;--f7-swipeout-button-padding-horizontal:24px;--f7-swipeout-button-font-size:14px;--f7-swipeout-button-font-weight:500}.md .dark,.md.dark{--f7-swipeout-button-text-color:#000}.swipeout{overflow:hidden;transform-style:preserve-3d}.swipeout-deleting{transition-duration:.3s}.swipeout-deleting .swipeout-content{transform:translateX(-100%)}.swipeout-transitioning .swipeout-content,.swipeout-transitioning .swipeout-content .item-inner::after{transition-duration:.3s;transition-property:transform,left,background-color,border-radius,opacity}.swipeout-transitioning .swipeout-actions-left a,.swipeout-transitioning .swipeout-actions-right a,.swipeout-transitioning .swipeout-overswipe{transition-duration:.3s;transition-property:transform,left,width,margin-left,margin-right}.swipeout-transitioning:not(.swipeout-opened) .swipeout-content{transition-delay:0s,0s,0.3s,0.3s,0s}.list li:has( + li:is(.swipeout-opened,.swipeout-active)) .item-inner::after{opacity:0;transition-duration:.3s}.swipeout-content{position:relative;z-index:10}.swipeout-overswipe{transition-duration:.2s}.swipeout-actions-left,.swipeout-actions-right{position:absolute;top:0;height:100%;display:flex;direction:ltr}.swipeout-actions-left>a,.swipeout-actions-left>button,.swipeout-actions-left>div,.swipeout-actions-left>span,.swipeout-actions-right>a,.swipeout-actions-right>button,.swipeout-actions-right>div,.swipeout-actions-right>span{box-sizing:border-box;border-radius:var(--f7-swipeout-button-border-radius);color:var(--f7-swipeout-button-text-color);background:var(--f7-swipeout-button-bg-color);padding:var(--f7-swipeout-button-padding-vertical) var(--f7-swipeout-button-padding-horizontal);display:flex;align-items:center;position:relative;left:0;font-size:var(--f7-swipeout-button-font-size);font-weight:var(--f7-swipeout-button-font-weight)}.swipeout-actions-left .swipeout-delete,.swipeout-actions-right .swipeout-delete{background:var(--f7-swipeout-delete-button-bg-color)}.swipeout-actions-left [class*=color-],.swipeout-actions-right [class*=color-]{--f7-swipeout-button-bg-color:var(--f7-theme-color)}.ios .swipeout-actions-right{right:0%}.ios .swipeout-actions-left{left:0%}.ios .swipeout-actions-left,.ios .swipeout-actions-right{padding:0 10px;gap:10px;align-items:center}.ios .swipeout-actions-left>a,.ios .swipeout-actions-left>button,.ios .swipeout-actions-left>div,.ios .swipeout-actions-left>span,.ios .swipeout-actions-right>a,.ios .swipeout-actions-right>button,.ios .swipeout-actions-right>div,.ios .swipeout-actions-right>span{transform:scale(0);padding:var(--f7-swipeout-button-padding-vertical) var(--f7-swipeout-button-padding-horizontal)}.ios .swipeout-active .swipeout-content,.ios .swipeout-opened .swipeout-content{background-color:var(--f7-swipeout-active-bg-color);border-radius:var(--f7-swipeout-active-border-radius)}.ios .swipeout-active .item-content,.ios .swipeout-opened .item-content{border-radius:var(--f7-swipeout-active-border-radius)}.ios .swipeout-active .swipeout-content .item-inner::after,.ios .swipeout-opened .swipeout-content .item-inner::after{opacity:0}.ios .swipeout-overswipe{transition-duration:.2s;transition-property:transform,left,width,margin-left,margin-right}.md .swipeout-actions-left>a:after,.md .swipeout-actions-left>button:after,.md .swipeout-actions-left>div:after,.md .swipeout-actions-left>span:after,.md .swipeout-actions-right>a:after,.md .swipeout-actions-right>button:after,.md .swipeout-actions-right>div:after,.md .swipeout-actions-right>span:after{content:'';position:absolute;top:0;width:600%;height:100%;background:inherit;z-index:-1;transform:translate3d(0,0,0);pointer-events:none}.md .swipeout-actions-right{right:0%;transform:translateX(calc(100% + 1px))}.md .swipeout-actions-right>a:after,.md .swipeout-actions-right>button:after,.md .swipeout-actions-right>div:after,.md .swipeout-actions-right>span:after{left:100%}.md .swipeout-actions-right>a:last-child,.md .swipeout-actions-right>button:last-child,.md .swipeout-actions-right>div:last-child,.md .swipeout-actions-right>span:last-child{padding-right:calc(var(--f7-swipeout-button-padding-horizontal) + var(--f7-safe-area-right))}.md .swipeout-actions-left{left:0%;transform:translateX(calc(-100% - 1px))}.md .swipeout-actions-left>a:after,.md .swipeout-actions-left>button:after,.md .swipeout-actions-left>div:after,.md .swipeout-actions-left>span:after{right:100%}.md .swipeout-actions-left>a:first-child,.md .swipeout-actions-left>button:first-child,.md .swipeout-actions-left>div:first-child,.md .swipeout-actions-left>span:first-child{padding-left:calc(var(--f7-swipeout-button-padding-horizontal) + var(--f7-safe-area-left))}.md .swipeout-overswipe{transition-property:left}