@taiga-ui/addon-mobile 4.52.0-canary.ec0802b → 4.52.0-canary.efbd0d4

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 (50) hide show
  1. package/components/mobile-calendar/calendar-date-stream.d.ts +6 -0
  2. package/components/mobile-calendar/index.d.ts +1 -0
  3. package/components/mobile-calendar/mobile-calendar.component.d.ts +3 -2
  4. package/components/mobile-calendar-dropdown/mobile-calendar-dropdown.component.d.ts +6 -8
  5. package/components/mobile-calendar-dropdown/mobile-calendar-dropdown.directive.d.ts +6 -6
  6. package/components/sheet-dialog/sheet-dialog.service.d.ts +1 -1
  7. package/directives/dropdown-mobile/dropdown-mobile.component.d.ts +1 -1
  8. package/directives/dropdown-sheet/dropdown-sheet.component.d.ts +1 -1
  9. package/directives/responsive-dialog/responsive-dialog.service.d.ts +1 -1
  10. package/fesm2022/taiga-ui-addon-mobile-components-bottom-sheet.mjs +3 -3
  11. package/fesm2022/taiga-ui-addon-mobile-components-mobile-calendar-dropdown.mjs +24 -39
  12. package/fesm2022/taiga-ui-addon-mobile-components-mobile-calendar-dropdown.mjs.map +1 -1
  13. package/fesm2022/taiga-ui-addon-mobile-components-mobile-calendar-sheet.mjs +7 -9
  14. package/fesm2022/taiga-ui-addon-mobile-components-mobile-calendar-sheet.mjs.map +1 -1
  15. package/fesm2022/taiga-ui-addon-mobile-components-mobile-calendar.mjs +39 -18
  16. package/fesm2022/taiga-ui-addon-mobile-components-mobile-calendar.mjs.map +1 -1
  17. package/fesm2022/taiga-ui-addon-mobile-components-pull-to-refresh.mjs +14 -15
  18. package/fesm2022/taiga-ui-addon-mobile-components-pull-to-refresh.mjs.map +1 -1
  19. package/fesm2022/taiga-ui-addon-mobile-components-sheet-dialog.mjs +15 -16
  20. package/fesm2022/taiga-ui-addon-mobile-components-sheet-dialog.mjs.map +1 -1
  21. package/fesm2022/taiga-ui-addon-mobile-components-swipe-action.mjs +6 -6
  22. package/fesm2022/taiga-ui-addon-mobile-components-tab-bar.mjs +11 -12
  23. package/fesm2022/taiga-ui-addon-mobile-components-tab-bar.mjs.map +1 -1
  24. package/fesm2022/taiga-ui-addon-mobile-directives-dropdown-mobile.mjs +8 -8
  25. package/fesm2022/taiga-ui-addon-mobile-directives-dropdown-mobile.mjs.map +1 -1
  26. package/fesm2022/taiga-ui-addon-mobile-directives-dropdown-sheet.mjs +9 -9
  27. package/fesm2022/taiga-ui-addon-mobile-directives-dropdown-sheet.mjs.map +1 -1
  28. package/fesm2022/taiga-ui-addon-mobile-directives-elastic-sticky.mjs +7 -8
  29. package/fesm2022/taiga-ui-addon-mobile-directives-elastic-sticky.mjs.map +1 -1
  30. package/fesm2022/taiga-ui-addon-mobile-directives-responsive-dialog.mjs +7 -7
  31. package/fesm2022/taiga-ui-addon-mobile-directives-responsive-dialog.mjs.map +1 -1
  32. package/fesm2022/taiga-ui-addon-mobile-directives-ripple.mjs +6 -6
  33. package/fesm2022/taiga-ui-addon-mobile-directives-touchable.mjs +3 -3
  34. package/fesm2022/taiga-ui-addon-mobile-services.mjs +34 -5
  35. package/fesm2022/taiga-ui-addon-mobile-services.mjs.map +1 -1
  36. package/package.json +1 -1
  37. package/services/index.d.ts +1 -0
  38. package/services/theme-color.service.d.ts +18 -0
  39. package/styles/android/app-bar.less +1 -1
  40. package/styles/android/switch.less +1 -0
  41. package/styles/common/badge-notification.less +1 -1
  42. package/styles/common/badge.less +2 -2
  43. package/styles/common/block-status.less +1 -1
  44. package/styles/common/button.less +1 -1
  45. package/styles/common/header.less +1 -1
  46. package/styles/common/message.less +1 -1
  47. package/styles/common/segmented.less +1 -1
  48. package/styles/common/title.less +0 -1
  49. package/styles/common/toast.less +1 -1
  50. 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;