@taiga-ui/addon-mobile 4.5.0 → 4.6.0-canary.0a513eb

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 (42) hide show
  1. package/components/swipe-action/swipe-actions.component.d.ts +2 -0
  2. package/directives/ripple/ripple.directive.d.ts +3 -4
  3. package/esm2022/components/mobile-calendar/mobile-calendar.component.mjs +14 -14
  4. package/esm2022/components/mobile-calendar-dropdown/mobile-calendar-dropdown.component.mjs +3 -3
  5. package/esm2022/components/mobile-calendar-sheet/mobile-calendar-sheet.component.mjs +3 -3
  6. package/esm2022/components/mobile-dialog/mobile-dialog.component.mjs +5 -5
  7. package/esm2022/components/pull-to-refresh/loader-android/loader-android.component.mjs +3 -3
  8. package/esm2022/components/pull-to-refresh/loader-ios/loader-ios.component.mjs +5 -5
  9. package/esm2022/components/sheet-dialog/sheet-dialog.component.mjs +7 -7
  10. package/esm2022/components/swipe-action/swipe-actions.component.mjs +4 -2
  11. package/esm2022/directives/dropdown-mobile/dropdown-mobile.component.mjs +4 -4
  12. package/esm2022/directives/ripple/ripple.directive.mjs +8 -16
  13. package/esm2022/directives/sidebar/sidebar.component.mjs +3 -3
  14. package/fesm2022/taiga-ui-addon-mobile-components-mobile-calendar-dropdown.mjs +2 -2
  15. package/fesm2022/taiga-ui-addon-mobile-components-mobile-calendar-dropdown.mjs.map +1 -1
  16. package/fesm2022/taiga-ui-addon-mobile-components-mobile-calendar-sheet.mjs +2 -2
  17. package/fesm2022/taiga-ui-addon-mobile-components-mobile-calendar-sheet.mjs.map +1 -1
  18. package/fesm2022/taiga-ui-addon-mobile-components-mobile-calendar.mjs +14 -14
  19. package/fesm2022/taiga-ui-addon-mobile-components-mobile-calendar.mjs.map +1 -1
  20. package/fesm2022/taiga-ui-addon-mobile-components-mobile-dialog.mjs +5 -5
  21. package/fesm2022/taiga-ui-addon-mobile-components-mobile-dialog.mjs.map +1 -1
  22. package/fesm2022/taiga-ui-addon-mobile-components-pull-to-refresh.mjs +5 -5
  23. package/fesm2022/taiga-ui-addon-mobile-components-pull-to-refresh.mjs.map +1 -1
  24. package/fesm2022/taiga-ui-addon-mobile-components-sheet-dialog.mjs +7 -7
  25. package/fesm2022/taiga-ui-addon-mobile-components-sheet-dialog.mjs.map +1 -1
  26. package/fesm2022/taiga-ui-addon-mobile-components-swipe-action.mjs +3 -1
  27. package/fesm2022/taiga-ui-addon-mobile-components-swipe-action.mjs.map +1 -1
  28. package/fesm2022/taiga-ui-addon-mobile-directives-dropdown-mobile.mjs +3 -3
  29. package/fesm2022/taiga-ui-addon-mobile-directives-dropdown-mobile.mjs.map +1 -1
  30. package/fesm2022/taiga-ui-addon-mobile-directives-ripple.mjs +7 -15
  31. package/fesm2022/taiga-ui-addon-mobile-directives-ripple.mjs.map +1 -1
  32. package/fesm2022/taiga-ui-addon-mobile-directives-sidebar.mjs +2 -2
  33. package/fesm2022/taiga-ui-addon-mobile-directives-sidebar.mjs.map +1 -1
  34. package/package.json +135 -134
  35. package/styles/android/radio.less +2 -0
  36. package/styles/android/switch.less +2 -0
  37. package/styles/common/block-status.less +0 -2
  38. package/styles/common/card-large.less +1 -1
  39. package/styles/common/segmented.less +13 -0
  40. package/styles/ios/search.less +49 -0
  41. package/styles/ios/switch.less +2 -0
  42. package/styles/taiga-ui-mobile.less +10 -2
@@ -0,0 +1,49 @@
1
+ @import '@taiga-ui/core/styles/taiga-ui-local.less';
2
+
3
+ input[type='search'][tuiSearch] {
4
+ .transition(background);
5
+
6
+ block-size: 2.25rem;
7
+ box-sizing: border-box;
8
+ outline: none;
9
+ border: none;
10
+ border-radius: 0.625rem;
11
+ padding: 0 0 0 1.875rem;
12
+ margin: 0;
13
+ font:
14
+ 1.0625rem 'SF Pro Text',
15
+ sans-serif;
16
+ color: var(--tui-text-primary);
17
+ caret-color: var(--tui-text-action);
18
+ background: var(--tui-background-neutral-2)
19
+ url('data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M4%2010.4714C4%206.90319%206.93142%204%2010.5343%204C14.1372%204%2017.0686%206.90319%2017.0686%2010.4714C17.0686%2011.9473%2016.5691%2013.3016%2015.7257%2014.3882L19.7298%2018.3781C19.9017%2018.5484%2020%2018.7836%2020%2019.0431C20%2019.5864%2019.6151%2020%2019.0583%2020C18.7963%2020%2018.5507%2019.9108%2018.3623%2019.7243L14.3337%2015.7263C13.261%2016.4886%2011.9591%2016.9427%2010.5343%2016.9427C6.93142%2016.9427%204%2014.0395%204%2010.4714ZM5.4002%2010.4714C5.4002%2013.2772%207.70113%2015.556%2010.5343%2015.556C13.3675%2015.556%2015.6684%2013.2772%2015.6684%2010.4714C15.6684%207.66548%2013.3675%205.38672%2010.5343%205.38672C7.70113%205.38672%205.4002%207.66548%205.4002%2010.4714Z%22%20fill%3D%22%239299A2%22%2F%3E%3C%2Fsvg%3E')
20
+ no-repeat 0.25rem center;
21
+
22
+ &::placeholder {
23
+ color: var(--tui-text-secondary);
24
+ }
25
+
26
+ &:active {
27
+ background-color: var(--tui-background-neutral-2-pressed);
28
+ }
29
+
30
+ &::-webkit-search-cancel-button {
31
+ .transition(background);
32
+
33
+ display: block;
34
+ appearance: none;
35
+ block-size: 2.25rem;
36
+ inline-size: 2rem;
37
+ box-sizing: border-box;
38
+ border: 0.5rem solid transparent;
39
+ margin: 0;
40
+ background: var(--tui-text-secondary);
41
+ opacity: 1;
42
+ mask: url('data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M8%2016C3.63137%2016%200%2012.3686%200%208C0%203.62353%203.62353%200%207.99216%200C12.3686%200%2016%203.62353%2016%208C16%2012.3686%2012.3765%2016%208%2016ZM5.36471%2011.2941C5.5451%2011.2941%205.7098%2011.2314%205.83529%2011.1059L8%208.92549L10.1725%2011.1059C10.2902%2011.2314%2010.4549%2011.2941%2010.6353%2011.2941C11.0039%2011.2941%2011.2941%2011.0039%2011.2941%2010.6431C11.2941%2010.4627%2011.2314%2010.298%2011.098%2010.1804L8.92549%208.00784L11.1059%205.82745C11.2471%205.68627%2011.302%205.5451%2011.302%205.36471C11.302%205.00392%2011.0118%204.72157%2010.651%204.72157C10.4784%204.72157%2010.3373%204.77647%2010.2039%204.9098L8%207.09804L5.81176%204.91765C5.68627%204.8%205.5451%204.73726%205.36471%204.73726C5.00392%204.73726%204.72157%205.01177%204.72157%205.38039C4.72157%205.55294%204.78431%205.7098%204.9098%205.83529L7.08235%208.00784L4.9098%2010.1882C4.78431%2010.3059%204.72157%2010.4706%204.72157%2010.6431C4.72157%2011.0039%205.00392%2011.2941%205.36471%2011.2941Z%22%20fill%3D%22black%22%2F%3E%3C%2Fsvg%3E')
43
+ no-repeat center;
44
+ }
45
+
46
+ &::-webkit-search-cancel-button:active {
47
+ background: var(--tui-text-secondary-pressed);
48
+ }
49
+ }
@@ -1,3 +1,5 @@
1
+ @import '@taiga-ui/core/styles/taiga-ui-local.less';
2
+
1
3
  input[tuiSwitch] {
2
4
  block-size: 1.9375rem;
3
5
  inline-size: 3.1875rem;
@@ -1,5 +1,3 @@
1
- @import '@taiga-ui/core/styles/taiga-ui-local';
2
-
3
1
  [data-platform='android'] {
4
2
  @import './android/app-bar';
5
3
  @import './android/checkbox';
@@ -13,7 +11,16 @@
13
11
 
14
12
  [data-platform='ios'] {
15
13
  @import './ios/checkbox';
14
+ @import './ios/search';
16
15
  @import './ios/switch';
16
+
17
+ tui-segmented > *:not(tui-segmented_active):active {
18
+ background-color: var(--tui-background-neutral-1);
19
+ }
20
+
21
+ tui-segmented > .tui-segmented_active:active {
22
+ opacity: var(--tui-disabled-opacity);
23
+ }
17
24
  }
18
25
 
19
26
  [data-platform='android'],
@@ -24,4 +31,5 @@
24
31
  @import './common/button';
25
32
  @import './common/title';
26
33
  @import './common/card-large';
34
+ @import './common/segmented';
27
35
  }