@taiga-ui/addon-mobile 3.54.0 → 3.55.0-canary.f5fbcc5

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 (45) hide show
  1. package/bundles/taiga-ui-addon-mobile-components-app-bar.umd.js +1 -1
  2. package/bundles/taiga-ui-addon-mobile-components-app-bar.umd.js.map +1 -1
  3. package/bundles/taiga-ui-addon-mobile-components-mobile-calendar.umd.js +36 -20
  4. package/bundles/taiga-ui-addon-mobile-components-mobile-calendar.umd.js.map +1 -1
  5. package/bundles/taiga-ui-addon-mobile-components-sheet-dialog.umd.js.map +1 -1
  6. package/bundles/taiga-ui-addon-mobile-components-sheet.umd.js +7 -7
  7. package/bundles/taiga-ui-addon-mobile-components-sheet.umd.js.map +1 -1
  8. package/bundles/taiga-ui-addon-mobile-components-tab-bar.umd.js +1 -1
  9. package/bundles/taiga-ui-addon-mobile-const.umd.js.map +1 -1
  10. package/bundles/taiga-ui-addon-mobile-directives-mobile-tabs.umd.js +1 -0
  11. package/bundles/taiga-ui-addon-mobile-directives-mobile-tabs.umd.js.map +1 -1
  12. package/components/mobile-calendar/mobile-calendar.component.d.ts +4 -3
  13. package/components/sheet-dialog/sheet-dialog.options.d.ts +1 -1
  14. package/directives/mobile-tabs/mobile-tabs.directive.d.ts +2 -2
  15. package/esm2015/components/app-bar/app-bar-back.component.js +1 -1
  16. package/esm2015/components/mobile-calendar/mobile-calendar.component.js +15 -11
  17. package/esm2015/components/mobile-calendar/mobile-calendar.const.js +24 -12
  18. package/esm2015/components/sheet/components/sheet-bar/sheet-bar.component.js +2 -2
  19. package/esm2015/components/sheet/directives/sheet-wrapper/sheet-wrapper.directive.js +7 -7
  20. package/esm2015/components/sheet-dialog/sheet-dialog.options.js +1 -1
  21. package/esm2015/components/tab-bar/tab-bar-item.component.js +1 -1
  22. package/esm2015/const/mobile-alert-options.js +1 -1
  23. package/esm2015/directives/mobile-tabs/mobile-tabs.directive.js +3 -2
  24. package/fesm2015/taiga-ui-addon-mobile-components-app-bar.js +1 -1
  25. package/fesm2015/taiga-ui-addon-mobile-components-app-bar.js.map +1 -1
  26. package/fesm2015/taiga-ui-addon-mobile-components-mobile-calendar.js +37 -21
  27. package/fesm2015/taiga-ui-addon-mobile-components-mobile-calendar.js.map +1 -1
  28. package/fesm2015/taiga-ui-addon-mobile-components-sheet-dialog.js.map +1 -1
  29. package/fesm2015/taiga-ui-addon-mobile-components-sheet.js +7 -7
  30. package/fesm2015/taiga-ui-addon-mobile-components-sheet.js.map +1 -1
  31. package/fesm2015/taiga-ui-addon-mobile-components-tab-bar.js +1 -1
  32. package/fesm2015/taiga-ui-addon-mobile-const.js.map +1 -1
  33. package/fesm2015/taiga-ui-addon-mobile-directives-mobile-tabs.js +1 -0
  34. package/fesm2015/taiga-ui-addon-mobile-directives-mobile-tabs.js.map +1 -1
  35. package/package.json +32 -32
  36. package/styles/android/checkbox.less +43 -0
  37. package/styles/android/radio.less +28 -0
  38. package/styles/android/toggle.less +64 -0
  39. package/styles/common/badge-notification.less +9 -0
  40. package/styles/common/badge.less +21 -0
  41. package/styles/common/button.less +27 -0
  42. package/styles/common/title.less +7 -0
  43. package/styles/ios/checkbox.less +38 -0
  44. package/styles/ios/toggle.less +50 -0
  45. package/styles/taiga-ui-mobile.less +24 -0
@@ -0,0 +1,27 @@
1
+ [tuiButtonNew] {
2
+ width: 100%;
3
+
4
+ &[data-size='xs'],
5
+ &[data-size='s'],
6
+ &[data-size='l'] {
7
+ --t-radius: 1rem;
8
+ }
9
+
10
+ &[data-size='m'] {
11
+ --t-radius: 0.75rem;
12
+ }
13
+
14
+ &:disabled:not(._loading) {
15
+ background: var(--tui-clear);
16
+ color: var(--tui-clear-active);
17
+ opacity: 1;
18
+
19
+ &[data-appearance='flat'] {
20
+ background: transparent;
21
+ }
22
+ }
23
+ }
24
+
25
+ [tuiButton][tuiButtonVertical] {
26
+ gap: 0.5rem;
27
+ }
@@ -0,0 +1,7 @@
1
+ [tuiTitle] {
2
+ gap: 0.25rem;
3
+
4
+ [tuiSubtitle] {
5
+ color: var(--tui-text-02);
6
+ }
7
+ }
@@ -0,0 +1,38 @@
1
+ input[tuiCheckbox],
2
+ input[tuiRadio] {
3
+ width: 1.375rem;
4
+ height: 1.375rem;
5
+ border-radius: 100%;
6
+ color: var(--tui-base-01);
7
+ transition: none;
8
+
9
+ &:checked,
10
+ &:not([tuiRadio]):indeterminate {
11
+ background: var(--tui-accent);
12
+ box-shadow: none;
13
+
14
+ &:disabled:not(._readonly) {
15
+ background: var(--tui-base-04);
16
+ }
17
+
18
+ &:before {
19
+ display: block;
20
+ transform: none;
21
+ mask: var(--t-mask) center/100%;
22
+ }
23
+
24
+ &._invalid {
25
+ background: var(--tui-error-fill);
26
+ }
27
+ }
28
+
29
+ &:before {
30
+ display: none;
31
+
32
+ --t-mask: url('data:image/svg+xml,<svg viewBox="0 0 22 22" xmlns="http://www.w3.org/2000/svg"><path d="M6.75 11.25L9.8 15.2L15.2 7" fill="none" stroke="black" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/></svg>');
33
+ }
34
+
35
+ &:not([tuiRadio]):indeterminate:before {
36
+ --t-mask: url('data:image/svg+xml,<svg viewBox="0 0 22 22" xmlns="http://www.w3.org/2000/svg"><path d="M6 11H16" fill="none" stroke="black" stroke-width="1.75" stroke-linecap="round"/></svg>');
37
+ }
38
+ }
@@ -0,0 +1,50 @@
1
+ input[tuiToggle],
2
+ input[tuiToggle]& {
3
+ height: 1.9375rem;
4
+ width: 3.1875rem;
5
+ border-radius: 2rem;
6
+ color: var(--tui-text-01-night);
7
+ background: var(--tui-base-04);
8
+ overflow: visible;
9
+
10
+ &:before {
11
+ opacity: 0;
12
+ }
13
+
14
+ &:after {
15
+ .transition(~'transform, width');
16
+ right: auto;
17
+ width: 1.9375rem;
18
+ height: 1.9375rem;
19
+ border-radius: 2rem;
20
+ background: currentColor;
21
+ transform: scale(0.871);
22
+ box-shadow:
23
+ 0 0.25rem 0.125rem rgba(0, 0, 0, 0.06),
24
+ 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15) !important;
25
+ }
26
+
27
+ &:active:after {
28
+ width: 2.3rem;
29
+ }
30
+
31
+ &:checked {
32
+ background: var(--tui-accent);
33
+
34
+ &:after {
35
+ transform: scale(0.871) translateX(1.44rem);
36
+ }
37
+
38
+ &:active:after {
39
+ transform: scale(0.871) translateX(1.0775rem);
40
+ }
41
+ }
42
+
43
+ &._invalid {
44
+ background: var(--tui-error-bg);
45
+
46
+ &:checked {
47
+ background: var(--tui-error-fill);
48
+ }
49
+ }
50
+ }
@@ -0,0 +1,24 @@
1
+ @import '@taiga-ui/core/styles/taiga-ui-local';
2
+
3
+ [data-platform='android'] {
4
+ @import './android/checkbox';
5
+ @import './android/radio';
6
+ @import './android/toggle';
7
+
8
+ tui-badge-notification[data-size='l'] {
9
+ --t-size: 1.375rem;
10
+ }
11
+ }
12
+
13
+ [data-platform='ios'] {
14
+ @import './ios/checkbox';
15
+ @import './ios/toggle';
16
+ }
17
+
18
+ [data-platform='android'],
19
+ [data-platform='ios'] {
20
+ @import './common/badge';
21
+ @import './common/badge-notification';
22
+ @import './common/button';
23
+ @import './common/title';
24
+ }