@taiga-ui/addon-mobile 4.52.0-canary.6de148b → 4.52.0-canary.763e67d

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 (34) hide show
  1. package/components/mobile-calendar-dropdown/mobile-calendar-dropdown.component.d.ts +0 -2
  2. package/fesm2022/taiga-ui-addon-mobile-components-bottom-sheet.mjs +3 -3
  3. package/fesm2022/taiga-ui-addon-mobile-components-bottom-sheet.mjs.map +1 -1
  4. package/fesm2022/taiga-ui-addon-mobile-components-mobile-calendar-dropdown.mjs +7 -14
  5. package/fesm2022/taiga-ui-addon-mobile-components-mobile-calendar-dropdown.mjs.map +1 -1
  6. package/fesm2022/taiga-ui-addon-mobile-components-mobile-calendar-sheet.mjs +3 -3
  7. package/fesm2022/taiga-ui-addon-mobile-components-mobile-calendar-sheet.mjs.map +1 -1
  8. package/fesm2022/taiga-ui-addon-mobile-components-mobile-calendar.mjs +9 -5
  9. package/fesm2022/taiga-ui-addon-mobile-components-mobile-calendar.mjs.map +1 -1
  10. package/fesm2022/taiga-ui-addon-mobile-components-pull-to-refresh.mjs +13 -13
  11. package/fesm2022/taiga-ui-addon-mobile-components-pull-to-refresh.mjs.map +1 -1
  12. package/fesm2022/taiga-ui-addon-mobile-components-sheet-dialog.mjs +11 -11
  13. package/fesm2022/taiga-ui-addon-mobile-components-sheet-dialog.mjs.map +1 -1
  14. package/fesm2022/taiga-ui-addon-mobile-components-swipe-action.mjs +6 -6
  15. package/fesm2022/taiga-ui-addon-mobile-components-swipe-action.mjs.map +1 -1
  16. package/fesm2022/taiga-ui-addon-mobile-components-tab-bar.mjs +10 -10
  17. package/fesm2022/taiga-ui-addon-mobile-components-tab-bar.mjs.map +1 -1
  18. package/fesm2022/taiga-ui-addon-mobile-directives-dropdown-mobile.mjs +6 -6
  19. package/fesm2022/taiga-ui-addon-mobile-directives-dropdown-mobile.mjs.map +1 -1
  20. package/fesm2022/taiga-ui-addon-mobile-directives-dropdown-sheet.mjs +6 -6
  21. package/fesm2022/taiga-ui-addon-mobile-directives-dropdown-sheet.mjs.map +1 -1
  22. package/fesm2022/taiga-ui-addon-mobile-directives-elastic-sticky.mjs +7 -8
  23. package/fesm2022/taiga-ui-addon-mobile-directives-elastic-sticky.mjs.map +1 -1
  24. package/fesm2022/taiga-ui-addon-mobile-directives-responsive-dialog.mjs +6 -6
  25. package/fesm2022/taiga-ui-addon-mobile-directives-responsive-dialog.mjs.map +1 -1
  26. package/fesm2022/taiga-ui-addon-mobile-directives-ripple.mjs +6 -6
  27. package/fesm2022/taiga-ui-addon-mobile-directives-ripple.mjs.map +1 -1
  28. package/fesm2022/taiga-ui-addon-mobile-directives-touchable.mjs +3 -3
  29. package/fesm2022/taiga-ui-addon-mobile-directives-touchable.mjs.map +1 -1
  30. package/fesm2022/taiga-ui-addon-mobile-services.mjs +6 -6
  31. package/fesm2022/taiga-ui-addon-mobile-services.mjs.map +1 -1
  32. package/package.json +1 -1
  33. package/styles/android/switch.less +1 -0
  34. package/styles/ios/switch.less +50 -1
@@ -1,6 +1,55 @@
1
1
  @import '@taiga-ui/core/styles/taiga-ui-local.less';
2
2
 
3
- input[tuiSwitch] {
3
+ input[tuiSwitch]._native {
4
+ block-size: 1.9375rem;
5
+ inline-size: 3.1875rem;
6
+ appearance: auto;
7
+ accent-color: var(--tui-background-accent-2);
8
+
9
+ &:invalid {
10
+ accent-color: var(--tui-status-negative);
11
+ }
12
+
13
+ &::before,
14
+ &::after {
15
+ display: none;
16
+ }
17
+
18
+ @supports (anchor-name: --ios26) {
19
+ inline-size: 4rem;
20
+ block-size: 1.75rem;
21
+
22
+ &::before {
23
+ .transition(background);
24
+
25
+ position: absolute;
26
+ display: block;
27
+ inset: 0;
28
+ border-radius: 10rem;
29
+ inline-size: 100%;
30
+ background-color: transparent;
31
+ mix-blend-mode: color;
32
+ transform: none;
33
+ }
34
+
35
+ &:invalid:not(:checked)::before {
36
+ background-color: var(--tui-status-negative);
37
+ }
38
+
39
+ [data-theme='dark'] & {
40
+ &:invalid:not(:checked)::before {
41
+ background-color: var(--tui-status-negative-pale);
42
+ }
43
+
44
+ &:disabled:not(:checked)::before {
45
+ background-color: rgba(255, 255, 255, 0.2);
46
+ mix-blend-mode: lighten;
47
+ }
48
+ }
49
+ }
50
+ }
51
+
52
+ input[tuiSwitch]:not(._native) {
4
53
  block-size: 1.9375rem;
5
54
  inline-size: 3.1875rem;
6
55
  border-radius: 2rem;