@inspark/components-web 14.0.14 → 19.0.0

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 (270) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/README.md +54 -0
  3. package/assets/fonts/fontawesome/FontAwesome.otf +0 -0
  4. package/assets/fonts/fontawesome/fontawesome-webfont.eot +0 -0
  5. package/assets/fonts/fontawesome/fontawesome-webfont.svg +2671 -0
  6. package/assets/fonts/fontawesome/fontawesome-webfont.ttf +0 -0
  7. package/assets/fonts/fontawesome/fontawesome-webfont.woff +0 -0
  8. package/assets/fonts/fontawesome/fontawesome-webfont.woff2 +0 -0
  9. package/assets/fonts/lato/Lato-Bold.ttf +0 -0
  10. package/assets/fonts/lato/Lato-BoldItalic.ttf +0 -0
  11. package/assets/fonts/lato/Lato-Italic.ttf +0 -0
  12. package/assets/fonts/lato/Lato-Regular.ttf +0 -0
  13. package/assets/fonts/open-sans/BoldItalic/OpenSans-BoldItalic.eot +0 -0
  14. package/assets/fonts/open-sans/BoldItalic/OpenSans-BoldItalic.svg +21121 -0
  15. package/assets/fonts/open-sans/BoldItalic/OpenSans-BoldItalic.ttf +0 -0
  16. package/assets/fonts/open-sans/BoldItalic/OpenSans-BoldItalic.woff +0 -0
  17. package/assets/fonts/open-sans/BoldItalic/OpenSans-BoldItalic.woff2 +0 -0
  18. package/assets/fonts/open-sans/ExtraBoldItalic/OpenSans-ExtraboldItalic.eot +0 -0
  19. package/assets/fonts/open-sans/ExtraBoldItalic/OpenSans-ExtraboldItalic.svg +21120 -0
  20. package/assets/fonts/open-sans/ExtraBoldItalic/OpenSans-ExtraboldItalic.ttf +0 -0
  21. package/assets/fonts/open-sans/ExtraBoldItalic/OpenSans-ExtraboldItalic.woff +0 -0
  22. package/assets/fonts/open-sans/ExtraBoldItalic/OpenSans-ExtraboldItalic.woff2 +0 -0
  23. package/assets/fonts/open-sans/SemiboldItalic/OpenSans-SemiboldItalic.eot +0 -0
  24. package/assets/fonts/open-sans/SemiboldItalic/OpenSans-SemiboldItalic.svg +21154 -0
  25. package/assets/fonts/open-sans/SemiboldItalic/OpenSans-SemiboldItalic.ttf +0 -0
  26. package/assets/fonts/open-sans/SemiboldItalic/OpenSans-SemiboldItalic.woff +0 -0
  27. package/assets/fonts/open-sans/SemiboldItalic/OpenSans-SemiboldItalic.woff2 +0 -0
  28. package/assets/fonts/primeicons/primeicons.woff2 +0 -0
  29. package/copy.json +12 -0
  30. package/design-tokens/colors.yml +34 -0
  31. package/migrate-sass-imports.js +87 -0
  32. package/package.json +46 -1
  33. package/src/_mixins.scss +39 -40
  34. package/src/_variables.scss +32 -33
  35. package/src/badge/_mixins.scss +5 -5
  36. package/src/badge/_variables.scss +2 -2
  37. package/src/badge/ids-badge.scss +1 -1
  38. package/src/base/_functions.scss +1 -1
  39. package/src/base/_mixins.scss +6 -6
  40. package/src/base/_variables.scss +1 -1
  41. package/src/base/ids-base.scss +3 -3
  42. package/src/box-shadow/_mixins.scss +1 -1
  43. package/src/box-shadow/_variables.scss +2 -0
  44. package/src/box-shadow/ids-box-shadow.scss +1 -1
  45. package/src/button/_mixins.scss +779 -775
  46. package/src/button/_variables.scss +3 -0
  47. package/src/button/ids-button.scss +1 -1
  48. package/src/button-group/_mixins.scss +3 -3
  49. package/src/button-group/ids-button-group.scss +1 -1
  50. package/src/card/_mixins.scss +382 -376
  51. package/src/card/_variables.scss +3 -1
  52. package/src/card/ids-card.scss +1 -1
  53. package/src/checkbox/_mixins.scss +430 -428
  54. package/src/checkbox/_variables.scss +2 -0
  55. package/src/checkbox/ids-checkbox.scss +1 -1
  56. package/src/common.scss +44 -45
  57. package/src/container/_mixins.scss +3 -2
  58. package/src/container/_variables.scss +3 -1
  59. package/src/container/ids-container.scss +1 -1
  60. package/src/crop/_mixins.scss +1 -1
  61. package/src/crop/_variables.scss +2 -0
  62. package/src/crop/ids-crop.scss +1 -1
  63. package/src/crumb/_mixins.scss +37 -36
  64. package/src/crumb/_variables.scss +2 -0
  65. package/src/crumb/ids-crumb.scss +1 -1
  66. package/src/flex/ids-flex.scss +1 -1
  67. package/src/form/_mixins.scss +3 -3
  68. package/src/form/_variables.scss +2 -2
  69. package/src/form/ids-form.scss +1 -1
  70. package/src/form-group/_mixins.scss +1 -1
  71. package/src/form-group/ids-form-group.scss +1 -1
  72. package/src/grid/_mixins.scss +3 -3
  73. package/src/grid/_variables.scss +3 -1
  74. package/src/grid/ids-grid.scss +1 -1
  75. package/src/helpers/helpers.scss +1 -1
  76. package/src/icon/_mixins.scss +397 -395
  77. package/src/icon/_variables.scss +2 -2
  78. package/src/icon/ids-icon.scss +1 -1
  79. package/src/image/_mixins.scss +1 -1
  80. package/src/image/_variables.scss +2 -0
  81. package/src/image/ids-image.scss +1 -1
  82. package/src/input/_mixins.scss +418 -415
  83. package/src/input/_variables.scss +4 -2
  84. package/src/input/ids-input.scss +2 -2
  85. package/src/input-group/_mixins.scss +108 -104
  86. package/src/input-group/_variables.scss +2 -2
  87. package/src/input-group/ids-input-group.scss +1 -1
  88. package/src/inspark.scss +2 -2
  89. package/src/label/_mixins.scss +5 -5
  90. package/src/label/_variables.scss +2 -0
  91. package/src/label/ids-label.scss +1 -1
  92. package/src/list/_mixins.scss +288 -287
  93. package/src/list/_variables.scss +2 -0
  94. package/src/list/ids-list.scss +1 -1
  95. package/src/list-group/_mixins.scss +282 -278
  96. package/src/list-group/_variables.scss +2 -0
  97. package/src/list-group/ids-list-group.scss +1 -1
  98. package/src/mediaqueries/_mixins.scss +1 -1
  99. package/src/mediaqueries/_variables.scss +2 -0
  100. package/src/mediaqueries/ids-mediaqueries.scss +1 -1
  101. package/src/nav/_mixins.scss +92 -89
  102. package/src/nav/_variables.scss +2 -0
  103. package/src/nav/ids-nav.scss +1 -1
  104. package/src/navbar/_mixins.scss +653 -650
  105. package/src/navbar/_variables.scss +3 -2
  106. package/src/navbar/ids-navbar.scss +1 -1
  107. package/src/new-component-template/_mixins.scss +2 -2
  108. package/src/new-component-template/_variables.scss +2 -2
  109. package/src/new-component-template/ids-new-component-template.scss +1 -1
  110. package/src/overlay/_mixins.scss +2 -2
  111. package/src/overlay/ids-overlay.scss +1 -1
  112. package/src/pallete/blue.scss +1 -1
  113. package/src/pallete/contrast.scss +1 -1
  114. package/src/pallete/pallete.scss +5 -5
  115. package/src/panel/_mixins.scss +765 -763
  116. package/src/panel/_variables.scss +3 -2
  117. package/src/panel/ids-panel.scss +1 -1
  118. package/src/particles/_mixins.scss +65 -64
  119. package/src/particles/ids-particles.scss +1 -1
  120. package/src/radio/_mixins.scss +212 -210
  121. package/src/radio/_variables.scss +2 -0
  122. package/src/radio/ids-radio.scss +1 -1
  123. package/src/ratio/_mixins.scss +1 -1
  124. package/src/ratio/_variables.scss +2 -0
  125. package/src/ratio/ids-ratio.scss +1 -1
  126. package/src/sass-mq/_mixins.scss +1 -1
  127. package/src/sass-mq/_variables.scss +2 -0
  128. package/src/sass-mq/ids-sass-mq.scss +1 -1
  129. package/src/select/_mixins.scss +269 -267
  130. package/src/select/_variables.scss +3 -0
  131. package/src/select/ids-select.scss +1 -1
  132. package/src/sidebar/_mixins.scss +3 -3
  133. package/src/sidebar/_variables.scss +2 -2
  134. package/src/sidebar/ids-sidebar.scss +1 -1
  135. package/src/static/_mixins.scss +1 -1
  136. package/src/static/ids-static.scss +1 -1
  137. package/src/table/_mixins.scss +522 -518
  138. package/src/table/_variables.scss +2 -0
  139. package/src/table/ids-table.scss +1 -1
  140. package/src/textarea/_mixins.scss +39 -39
  141. package/src/textarea/_variables.scss +2 -0
  142. package/src/textarea/ids-textarea.scss +1 -1
  143. package/src/theme/_mixins.scss +4 -3
  144. package/src/theme/_variables.scss +5 -4
  145. package/src/theme/blue.scss +440 -448
  146. package/src/theme/contrast.scss +398 -406
  147. package/src/theme/green.scss +432 -440
  148. package/src/theme/ids-theme.scss +5 -5
  149. package/src/theme/light.scss +398 -406
  150. package/src/tools/_tools.border-radius.scss +1 -0
  151. package/src/tools/_tools.rem.scss +1 -0
  152. package/src/tools/ids-tools.scss +9 -9
  153. package/src/tooltip/_mixins.scss +820 -817
  154. package/src/tooltip/_variables.scss +2 -2
  155. package/src/tooltip/ids-tooltip.scss +1 -1
  156. package/src/tree-table/_mixins.scss +335 -331
  157. package/src/tree-table/_variables.scss +2 -2
  158. package/src/tree-table/ids-tree-table.scss +1 -1
  159. package/src/typography/_mixins.scss +6 -1
  160. package/src/typography/_variables.scss +2 -2
  161. package/src/typography/ids-typography.scss +2 -2
  162. package/src/utilities/_loader.utilities.scss +17 -20
  163. package/src/utilities/_utilities.border.scss +2 -0
  164. package/src/utilities/_utilities.clearfix.scss +1 -0
  165. package/src/utilities/_utilities.headings.scss +2 -0
  166. package/src/utilities/_utilities.hide.scss +58 -56
  167. package/src/utilities/_utilities.lineheight.scss +2 -0
  168. package/src/utilities/_utilities.overflow.scss +1 -1
  169. package/src/utilities/_utilities.position.scss +3 -0
  170. package/src/utilities/_utilities.spacing.scss +77 -75
  171. package/src/utilities/_utilities.themes.scss +3 -0
  172. package/src/utilities/_utilities.typography.scss +179 -177
  173. package/src/utilities/_utilities.widths.scss +2 -2
  174. package/src/widgets/_components.widget.scss +3 -0
  175. package/src/widgets/_components.widget.themes.scss +3 -0
  176. package/src/widgets/_components.widgetStatus.scss +2 -0
  177. package/src/widgets/_components.widgetStatus.themes.scss +2 -0
  178. package/src/widgets/_components.widgetValue.scss +2 -0
  179. package/src/widgets/ids-widgets.scss +5 -5
  180. package/update_full.js +14 -0
  181. package/webpack.config.js +51 -0
  182. package/index.css +0 -24206
  183. package/index.js +0 -125
  184. package/src/nvd3/_components.charts-nvd3.scss +0 -182
  185. package/src/nvd3/_components.charts-nvd3.themes.scss +0 -179
  186. package/src/nvd3/_variables-theme-contrast.scss +0 -123
  187. package/src/nvd3/_variables-theme-green.scss +0 -123
  188. package/src/nvd3/_variables-theme-light.scss +0 -123
  189. package/src/nvd3/_variables.scss +0 -123
  190. package/src/nvd3/angular-nvd3.js +0 -719
  191. package/src/nvd3/bars/_components.bars.scss +0 -47
  192. package/src/nvd3/bars/_components.bars.themes.scss +0 -47
  193. package/src/nvd3/boxplot/_components.boxplot.scss +0 -23
  194. package/src/nvd3/boxplot/_components.boxplot.themes.scss +0 -21
  195. package/src/nvd3/bullet/_components.bullet.scss +0 -66
  196. package/src/nvd3/bullet/_components.bullet.themes.scss +0 -66
  197. package/src/nvd3/candlestick/_components.candlestick.scss +0 -31
  198. package/src/nvd3/candlestick/_components.candlestick.themes.scss +0 -31
  199. package/src/nvd3/force-directed-graph/_components.force-directed-graph.scss +0 -16
  200. package/src/nvd3/force-directed-graph/_components.force-directed-graph.themes.scss +0 -16
  201. package/src/nvd3/furious-legend/_components.furious-legend.scss +0 -27
  202. package/src/nvd3/furious-legend/_components.furious-legend.themes.scss +0 -27
  203. package/src/nvd3/lineplusbar/_components.lineplusbar.scss +0 -12
  204. package/src/nvd3/lineplusbar/_components.lineplusbar.themes.scss +0 -12
  205. package/src/nvd3/lines/_components.lines.scss +0 -172
  206. package/src/nvd3/lines/_components.lines.themes.scss +0 -170
  207. package/src/nvd3/ohlc/_components.ohlc.scss +0 -18
  208. package/src/nvd3/ohlc/_components.ohlc.themes.scss +0 -18
  209. package/src/nvd3/parallelcoordinates/_components.parallelcoordinates.scss +0 -35
  210. package/src/nvd3/parallelcoordinates/_components.parallelcoordinates.themes.scss +0 -35
  211. package/src/nvd3/pie/_components.pie.scss +0 -99
  212. package/src/nvd3/pie/_components.pie.themes.scss +0 -97
  213. package/src/nvd3/scatter/_components.scatter.scss +0 -21
  214. package/src/nvd3/scatter/_components.scatter.themes.scss +0 -21
  215. package/src/nvd3/sparkline/_components.sparkline.scss +0 -54
  216. package/src/nvd3/sparkline/_components.sparkline.themes.scss +0 -54
  217. package/src/nvd3/stackedarea/_components.stackedarea.scss +0 -146
  218. package/src/nvd3/stackedarea/_components.stackedarea.themes.scss +0 -145
  219. package/src/nvd3/tooltip/_components.tooltip.scss +0 -186
  220. package/src/nvd3/tooltip/_components.tooltip.themes.scss +0 -186
  221. /package/{fonts → assets/fonts/lato}/lato-bold.woff +0 -0
  222. /package/{fonts → assets/fonts/lato}/lato-bold.woff2 +0 -0
  223. /package/{fonts → assets/fonts/lato}/lato-bolditalic.woff +0 -0
  224. /package/{fonts → assets/fonts/lato}/lato-bolditalic.woff2 +0 -0
  225. /package/{fonts → assets/fonts/lato}/lato-italic.woff +0 -0
  226. /package/{fonts → assets/fonts/lato}/lato-italic.woff2 +0 -0
  227. /package/{fonts → assets/fonts/lato}/lato-regular.woff +0 -0
  228. /package/{fonts → assets/fonts/lato}/lato-regular.woff2 +0 -0
  229. /package/{fonts → assets/fonts/material-design-icons}/MaterialIcons-Regular.ttf +0 -0
  230. /package/{fonts → assets/fonts/material-design-icons}/MaterialIcons-Regular.woff +0 -0
  231. /package/{fonts → assets/fonts/material-design-icons}/MaterialIcons-Regular.woff2 +0 -0
  232. /package/{fonts → assets/fonts/open-sans/Bold}/OpenSans-Bold.eot +0 -0
  233. /package/{fonts → assets/fonts/open-sans/Bold}/OpenSans-Bold.svg +0 -0
  234. /package/{fonts → assets/fonts/open-sans/Bold}/OpenSans-Bold.ttf +0 -0
  235. /package/{fonts → assets/fonts/open-sans/Bold}/OpenSans-Bold.woff +0 -0
  236. /package/{fonts → assets/fonts/open-sans/Bold}/OpenSans-Bold.woff2 +0 -0
  237. /package/{fonts → assets/fonts/open-sans/ExtraBold}/OpenSans-Extrabold.eot +0 -0
  238. /package/{fonts → assets/fonts/open-sans/ExtraBold}/OpenSans-Extrabold.svg +0 -0
  239. /package/{fonts → assets/fonts/open-sans/ExtraBold}/OpenSans-Extrabold.ttf +0 -0
  240. /package/{fonts → assets/fonts/open-sans/ExtraBold}/OpenSans-Extrabold.woff +0 -0
  241. /package/{fonts → assets/fonts/open-sans/ExtraBold}/OpenSans-Extrabold.woff2 +0 -0
  242. /package/{fonts → assets/fonts/open-sans/Italic}/OpenSans-Italic.eot +0 -0
  243. /package/{fonts → assets/fonts/open-sans/Italic}/OpenSans-Italic.svg +0 -0
  244. /package/{fonts → assets/fonts/open-sans/Italic}/OpenSans-Italic.ttf +0 -0
  245. /package/{fonts → assets/fonts/open-sans/Italic}/OpenSans-Italic.woff +0 -0
  246. /package/{fonts → assets/fonts/open-sans/Italic}/OpenSans-Italic.woff2 +0 -0
  247. /package/{fonts → assets/fonts/open-sans/Light}/OpenSans-Light.eot +0 -0
  248. /package/{fonts → assets/fonts/open-sans/Light}/OpenSans-Light.svg +0 -0
  249. /package/{fonts → assets/fonts/open-sans/Light}/OpenSans-Light.ttf +0 -0
  250. /package/{fonts → assets/fonts/open-sans/Light}/OpenSans-Light.woff +0 -0
  251. /package/{fonts → assets/fonts/open-sans/Light}/OpenSans-Light.woff2 +0 -0
  252. /package/{fonts → assets/fonts/open-sans/LightItalic}/OpenSansLight-Italic.eot +0 -0
  253. /package/{fonts → assets/fonts/open-sans/LightItalic}/OpenSansLight-Italic.svg +0 -0
  254. /package/{fonts → assets/fonts/open-sans/LightItalic}/OpenSansLight-Italic.ttf +0 -0
  255. /package/{fonts → assets/fonts/open-sans/LightItalic}/OpenSansLight-Italic.woff +0 -0
  256. /package/{fonts → assets/fonts/open-sans/LightItalic}/OpenSansLight-Italic.woff2 +0 -0
  257. /package/{fonts → assets/fonts/open-sans/Regular}/OpenSans.eot +0 -0
  258. /package/{fonts → assets/fonts/open-sans/Regular}/OpenSans.svg +0 -0
  259. /package/{fonts → assets/fonts/open-sans/Regular}/OpenSans.ttf +0 -0
  260. /package/{fonts → assets/fonts/open-sans/Regular}/OpenSans.woff +0 -0
  261. /package/{fonts → assets/fonts/open-sans/Regular}/OpenSans.woff2 +0 -0
  262. /package/{fonts → assets/fonts/open-sans/Semibold}/OpenSans-Semibold.eot +0 -0
  263. /package/{fonts → assets/fonts/open-sans/Semibold}/OpenSans-Semibold.svg +0 -0
  264. /package/{fonts → assets/fonts/open-sans/Semibold}/OpenSans-Semibold.ttf +0 -0
  265. /package/{fonts → assets/fonts/open-sans/Semibold}/OpenSans-Semibold.woff +0 -0
  266. /package/{fonts → assets/fonts/open-sans/Semibold}/OpenSans-Semibold.woff2 +0 -0
  267. /package/{fonts → assets/fonts/primeicons}/primeicons.eot +0 -0
  268. /package/{fonts → assets/fonts/primeicons}/primeicons.svg +0 -0
  269. /package/{fonts → assets/fonts/primeicons}/primeicons.ttf +0 -0
  270. /package/{fonts → assets/fonts/primeicons}/primeicons.woff +0 -0
@@ -1,415 +1,418 @@
1
- @import "../base/variables";
2
- @import "../theme/variables";
3
- @import "../form/variables";
4
- @import "./variables";
5
-
6
- // todo: отрефакторить структуру миксинов в core и названия переменных
7
-
8
- @mixin ids-input-core-styles {
9
- .c-input {
10
- @include c-input;
11
- }
12
-
13
- .c-input_block {
14
- @include c-input_block;
15
- }
16
-
17
- .c-input_text-right {
18
- @include c-input_text-right;
19
- }
20
-
21
- .c-input_xxtiny {
22
- @include c-input_xxtiny;
23
- }
24
-
25
- .c-input_xtiny {
26
- @include c-input_xtiny;
27
- }
28
-
29
- .c-input_tiny {
30
- @include c-input_tiny;
31
- }
32
-
33
- .c-input_small {
34
- @include c-input_small;
35
- }
36
-
37
- .c-input_regular {
38
- @include c-input_regular;
39
- }
40
-
41
- .c-input_large {
42
- @include c-input_large;
43
- }
44
-
45
- .c-input_huge {
46
- @include c-input_huge;
47
- }
48
-
49
- .c-input_bare {
50
- @include c-input_bare;
51
- }
52
-
53
- .c-input_min-small {
54
- @include c-input_min-small;
55
- }
56
-
57
- .c-input_verticaly-small {
58
- @include c-input_verticaly-small;
59
- }
60
-
61
- .c-input_is-warning {
62
- @include c-input_is-warning;
63
- }
64
-
65
- .c-input_is-error {
66
- @include c-input_is-error;
67
- }
68
-
69
- .c-input_is-success {
70
- @include c-input_is-success;
71
- }
72
- }
73
-
74
- /*
75
- Input
76
-
77
- Input styling based on `.c-input` block class and it`s modifiers.
78
-
79
- */
80
-
81
- /*
82
- Input
83
-
84
- markup:
85
- <input class="c-input" id="input1" placeholder="Text Input" type="text">
86
- <input class="c-input" id="input2" placeholder="Readonly Input" type="text" readonly value="Unchangeble info">
87
- <input class="c-input" id="input3" placeholder="Disabled Input" type="text" disabled>
88
- <input class="c-input" id="input4" placeholder="Input type='email'" type="email">
89
- <input class="c-input" id="input5" placeholder="Input type='tel'" type="tel">
90
- <input class="c-input" id="input6" placeholder="Input type='search'" type="search">
91
- <input class="c-input" id="input7" placeholder="Input type='number'" type="number">
92
- <input class="c-input" id="input8" placeholder="Input type='date'" type="date">
93
-
94
- */
95
-
96
- @mixin _c-input {
97
- padding: $unit-tiny $unit-small;
98
- line-height: $line-height-computed;
99
- transition: all, $global-transition;
100
- border: $form-border_outer;
101
- border: var(--ids-theme-inuit-forms-border_outer, $form-border_outer);
102
- border-radius: $global-radius;
103
- font-family: inherit;
104
- font-size: $font-size-base;
105
- outline: 0;
106
- box-shadow: $form-border-inner;
107
- box-shadow: var(--ids-theme-inuit-forms-border-inner, $form-border-inner);
108
- box-sizing: border-box;
109
- background-color: $form-background;
110
- background-color: var(--ids-theme-inuit-forms-background, $form-background);
111
- color: $form-color;
112
- color: var(--ids-theme-inuit-forms-color, $form-color);
113
- -webkit-appearance: none;
114
- -webkit-tap-highlight-color: rgba($input-tap-highlight-color, 0);
115
- -webkit-tap-highlight-color: rgba(var(--ids-theme-input-tap-highlight-color-rgb, #{$input-tap-highlight-color-rgb}), 0);
116
- -moz-appearance: none;
117
-
118
- @media only screen
119
- and (min-device-width: 320px)
120
- and (max-device-width: $screen-limit-larger)
121
- and (-webkit-min-device-pixel-ratio: 1.5) {
122
- line-height: 1.45;
123
- font-size: 16px;
124
- }
125
-
126
- &::placeholder {
127
- color: rgba($form-color, 0.6);
128
- color: rgba(var(--ids-theme-inuit-forms-color-rgb, #{$form-color-rgb}), 0.6);
129
- }
130
-
131
- &:hover {
132
- border-color: $ids-theme-primary;
133
- border-color: var(--ids-theme-primary-rgb, $ids-theme-primary);
134
- }
135
-
136
- &:focus {
137
- border-color: $form-border_outer_focused;
138
- border-color: var(--ids-theme-inuit-forms-border_outer_focused, $form-border_outer_focused);
139
- box-shadow: $form-border_inner_focused;
140
- box-shadow: var(--ids-theme-inuit-forms-border_inner_focused, $form-border_inner_focused);
141
- outline: 0;
142
- }
143
-
144
- &[readonly],
145
- &[disabled] {
146
- box-shadow: none;
147
- }
148
-
149
- &[readonly] {
150
- border: $form-border_readonly;
151
- border: var(--ids-theme-inuit-forms-border_readonly, $form-border_readonly);
152
- color: $form-color_readonly;
153
- color: var(--ids-theme-inuit-forms-color_readonly, $form-color_readonly);
154
-
155
- &:focus {
156
- border-color: transparent;
157
- box-shadow: none;
158
- }
159
- }
160
-
161
- &[disabled] {
162
- border: $form-border_disabled;
163
- border: var(--ids-theme-inuit-forms-border_disabled, $form-border_disabled);
164
- box-shadow: none;
165
- background-color: $form-background_disabled;
166
- background-color: var(--ids-theme-inuit-forms-background_disabled, $form-background_disabled);
167
- color: $form-color_disabled;
168
- color: var(--ids-theme-inuit-forms-color_disabled, $form-color_disabled);
169
- cursor: not-allowed;
170
-
171
- // scss-lint:disable VendorPrefix
172
- &::-webkit-input-placeholder {
173
- color: $form-color_placeholder;
174
- color: var(--ids-theme-inuit-forms-color_placeholder, $form-color_placeholder);
175
- font-weight: $font-weight-normal;
176
- }
177
-
178
- &:-moz-placeholder {
179
- color: $form-color_placeholder;
180
- color: var(--ids-theme-inuit-forms-color_placeholder, $form-color_placeholder);
181
- font-weight: $font-weight-normal;
182
- }
183
-
184
- &::-moz-placeholder {
185
- color: $form-color_placeholder;
186
- color: var(--ids-theme-inuit-forms-color_placeholder, $form-color_placeholder);
187
- font-weight: $font-weight-normal;
188
- }
189
-
190
- &:-ms-input-placeholder {
191
- color: $form-color_placeholder;
192
- color: var(--ids-theme-inuit-forms-color_placeholder, $form-color_placeholder);
193
- font-weight: $font-weight-normal;
194
- }
195
- // scss-lint:enable VendorPrefix
196
- }
197
- }
198
-
199
- // todo: сократить количество миксинов
200
- @mixin c-input {
201
- @include _c-input;
202
- }
203
-
204
- %c-input {
205
- @include c-input;
206
- }
207
-
208
- // Input Variations
209
-
210
- /*
211
- Input Block
212
-
213
- Input on full width of it`s parent.
214
-
215
- markup:
216
- <input id="input1" placeholder="Full width of parent container" class="c-input c-input_block" type="text">
217
-
218
- */
219
-
220
- @mixin c-input_block {
221
- display: inline-block;
222
- width: 100%;
223
- }
224
-
225
- /*
226
- Input Text Right
227
-
228
- Text right aligning inside input.
229
-
230
- markup:
231
- <input class="c-input c-input_text-right" placeholder="Type something..." type="text">
232
-
233
- */
234
-
235
- @mixin c-input_text-right {
236
- .c-input_text-right {
237
- text-align: right;
238
-
239
- // scss-lint:disable VendorPrefix
240
- &::-webkit-input-placeholder {
241
- text-align: right;
242
- }
243
-
244
- &:-moz-placeholder {
245
- text-align: right;
246
- }
247
-
248
- &::-moz-placeholder {
249
- text-align: right;
250
- }
251
-
252
- &:-ms-input-placeholder {
253
- text-align: right;
254
- }
255
- // scss-lint:enable VendorPrefix
256
- }
257
- }
258
-
259
- /*
260
- Input Length
261
-
262
- c-input_xtiny - xtiny length (88px)
263
- c-input_tiny - tiny length (106px)
264
- c-input_small - small length
265
- c-input_regular - regular length
266
- c-input_large - large length
267
- c-input_huge - huge length
268
-
269
- markup:
270
- <input class="c-input {$modifiers}" placeholder="Input length {$modifiers}" type="text">
271
-
272
- */
273
-
274
- @mixin c-input_xxtiny {
275
- width: 100%;
276
- max-width: inuit-rem(50px);
277
-
278
- &[type=search] {
279
- padding: $inuit-global-spacing-unit-tiny $inuit-global-spacing-unit-small;
280
- }
281
- }
282
-
283
- @mixin c-input_xtiny {
284
- width: 100%;
285
- max-width: inuit-rem(88px);
286
-
287
- &[type=search] {
288
- padding: $inuit-global-spacing-unit-tiny $inuit-global-spacing-unit-small;
289
- }
290
- }
291
-
292
- @mixin c-input_tiny {
293
- width: 100%;
294
- max-width: inuit-rem(106px);
295
-
296
- &[type=search] {
297
- padding: $inuit-global-spacing-unit-tiny $inuit-global-spacing-unit-small;
298
- }
299
- }
300
-
301
- @mixin c-input_small {
302
- width: auto;
303
- max-width: inuit-rem(212px);
304
-
305
- &[type=search] {
306
- padding: $inuit-global-spacing-unit-tiny $inuit-global-spacing-unit-small;
307
- }
308
- }
309
-
310
- @mixin c-input_regular {
311
- width: 100%;
312
- max-width: inuit-rem(318px);
313
-
314
- &[type=search] {
315
- padding: $inuit-global-spacing-unit-tiny $inuit-global-spacing-unit-small;
316
- }
317
- }
318
-
319
- @mixin c-input_large {
320
- width: 100%;
321
- max-width: inuit-rem(424px);
322
- }
323
-
324
- @mixin c-input_huge {
325
- width: 100%;
326
- max-width: inuit-rem(530px);
327
- }
328
-
329
- @mixin c-input_min-small {
330
- width: auto;
331
- min-width: inuit-rem(212px);
332
-
333
- &[type=search] {
334
- padding: $inuit-global-spacing-unit-tiny $inuit-global-spacing-unit-small;
335
- }
336
- }
337
-
338
- @mixin c-input_verticaly-small {
339
- padding: 4px $inuit-global-spacing-unit-small;
340
- }
341
-
342
- /*
343
- Bare Input
344
-
345
- markup:
346
- <input class="c-input c-input_bare" placeholder="Type something..." type="text">
347
-
348
- */
349
-
350
- /**
351
- * Text inputs with no styles.
352
- */
353
-
354
- @mixin c-input_bare {
355
- border: 1px solid transparent !important;
356
- background: transparent;
357
-
358
- &:focus {
359
- border-color: transparent;
360
- box-shadow: none;
361
- outline: 0;
362
- }
363
- }
364
-
365
- /*
366
- Input Validation
367
-
368
- c-input_is-success - Success input style
369
- c-input_is-warning - Warning input style
370
- c-input_is-error - Error input style
371
-
372
- markup:
373
- <input class="c-input {$modifiers}" placeholder="Validation class .{$modifiers}" type="text">
374
-
375
- */
376
-
377
- /**
378
- * Styles for validation states
379
- */
380
-
381
- @mixin c-input_is-warning {
382
- border-color: $form-validation-warning;
383
- border-color: var(--ids-theme-inuit-forms-validation-warning, $form-validation-warning);
384
- color: inherit;
385
-
386
- &:hover,
387
- &:focus {
388
- box-shadow: inset 0 0 7px 0 $ids-theme-status-warning;
389
- box-shadow: inset 0 0 7px 0 var(--ids-theme-ids-theme-status-warning, $ids-theme-status-warning);
390
- }
391
- }
392
-
393
- @mixin c-input_is-error {
394
- border-color: $form-validation-error;
395
- border-color: var(--ids-theme-inuit-forms-validation-error, $form-validation-error);
396
- color: inherit;
397
-
398
- &:hover,
399
- &:focus {
400
- box-shadow: inset 0 0 7px 0 $ids-theme-status-error;
401
- box-shadow: inset 0 0 7px 0 var(--ids-theme-status-error, $ids-theme-status-error);
402
- }
403
- }
404
-
405
- @mixin c-input_is-success {
406
- border-color: $form-validation-success;
407
- border-color: var(--ids-theme-inuit-forms-validation-success);
408
- color: inherit;
409
-
410
- &:hover,
411
- &:focus {
412
- box-shadow: inset 0 0 7px 0 $ids-theme-status-success;
413
- box-shadow: inset 0 0 7px 0 var(--ids-theme-status-success, $ids-theme-status-success);
414
- }
415
- }
1
+ @use "../base/variables" as *;
2
+ @use "../theme/variables" as *;
3
+ @use "../typography/variables" as *;
4
+ @use "../mediaqueries/variables" as *;
5
+ @use "../form/variables" as *;
6
+ @use "./variables" as *;
7
+ @use "../tools/tools.border-radius" as *;
8
+
9
+ // todo: отрефакторить структуру миксинов в core и названия переменных
10
+
11
+ @mixin ids-input-core-styles {
12
+ .c-input {
13
+ @include c-input;
14
+ }
15
+
16
+ .c-input_block {
17
+ @include c-input_block;
18
+ }
19
+
20
+ .c-input_text-right {
21
+ @include c-input_text-right;
22
+ }
23
+
24
+ .c-input_xxtiny {
25
+ @include c-input_xxtiny;
26
+ }
27
+
28
+ .c-input_xtiny {
29
+ @include c-input_xtiny;
30
+ }
31
+
32
+ .c-input_tiny {
33
+ @include c-input_tiny;
34
+ }
35
+
36
+ .c-input_small {
37
+ @include c-input_small;
38
+ }
39
+
40
+ .c-input_regular {
41
+ @include c-input_regular;
42
+ }
43
+
44
+ .c-input_large {
45
+ @include c-input_large;
46
+ }
47
+
48
+ .c-input_huge {
49
+ @include c-input_huge;
50
+ }
51
+
52
+ .c-input_bare {
53
+ @include c-input_bare;
54
+ }
55
+
56
+ .c-input_min-small {
57
+ @include c-input_min-small;
58
+ }
59
+
60
+ .c-input_verticaly-small {
61
+ @include c-input_verticaly-small;
62
+ }
63
+
64
+ .c-input_is-warning {
65
+ @include c-input_is-warning;
66
+ }
67
+
68
+ .c-input_is-error {
69
+ @include c-input_is-error;
70
+ }
71
+
72
+ .c-input_is-success {
73
+ @include c-input_is-success;
74
+ }
75
+ }
76
+
77
+ /*
78
+ Input
79
+
80
+ Input styling based on `.c-input` block class and it`s modifiers.
81
+
82
+ */
83
+
84
+ /*
85
+ Input
86
+
87
+ markup:
88
+ <input class="c-input" id="input1" placeholder="Text Input" type="text">
89
+ <input class="c-input" id="input2" placeholder="Readonly Input" type="text" readonly value="Unchangeble info">
90
+ <input class="c-input" id="input3" placeholder="Disabled Input" type="text" disabled>
91
+ <input class="c-input" id="input4" placeholder="Input type='email'" type="email">
92
+ <input class="c-input" id="input5" placeholder="Input type='tel'" type="tel">
93
+ <input class="c-input" id="input6" placeholder="Input type='search'" type="search">
94
+ <input class="c-input" id="input7" placeholder="Input type='number'" type="number">
95
+ <input class="c-input" id="input8" placeholder="Input type='date'" type="date">
96
+
97
+ */
98
+
99
+ @mixin c-input-base {
100
+ padding: $unit-tiny $unit-small;
101
+ line-height: $line-height-computed;
102
+ transition: all, $global-transition;
103
+ border: $form-border_outer;
104
+ border: var(--ids-theme-inuit-forms-border_outer, $form-border_outer);
105
+ border-radius: $global-radius;
106
+ font-family: inherit;
107
+ font-size: $font-size-base;
108
+ outline: 0;
109
+ box-shadow: $form-border-inner;
110
+ box-shadow: var(--ids-theme-inuit-forms-border-inner, $form-border-inner);
111
+ box-sizing: border-box;
112
+ background-color: $form-background;
113
+ background-color: var(--ids-theme-inuit-forms-background, $form-background);
114
+ color: $form-color;
115
+ color: var(--ids-theme-inuit-forms-color, $form-color);
116
+ -webkit-appearance: none;
117
+ -webkit-tap-highlight-color: rgba($input-tap-highlight-color, 0);
118
+ -webkit-tap-highlight-color: rgba(var(--ids-theme-input-tap-highlight-color-rgb, #{$input-tap-highlight-color-rgb}), 0);
119
+ -moz-appearance: none;
120
+
121
+ @media only screen
122
+ and (min-device-width: 320px)
123
+ and (max-device-width: $screen-limit-larger)
124
+ and (-webkit-min-device-pixel-ratio: 1.5) {
125
+ line-height: 1.45;
126
+ font-size: 16px;
127
+ }
128
+
129
+ &::placeholder {
130
+ color: rgba($form-color, 0.6);
131
+ color: rgba(var(--ids-theme-inuit-forms-color-rgb, #{$form-color-rgb}), 0.6);
132
+ }
133
+
134
+ &:hover {
135
+ border-color: $ids-theme-primary;
136
+ border-color: var(--ids-theme-primary-rgb, $ids-theme-primary);
137
+ }
138
+
139
+ &:focus {
140
+ border-color: $form-border_outer_focused;
141
+ border-color: var(--ids-theme-inuit-forms-border_outer_focused, $form-border_outer_focused);
142
+ box-shadow: $form-border_inner_focused;
143
+ box-shadow: var(--ids-theme-inuit-forms-border_inner_focused, $form-border_inner_focused);
144
+ outline: 0;
145
+ }
146
+
147
+ &[readonly],
148
+ &[disabled] {
149
+ box-shadow: none;
150
+ }
151
+
152
+ &[readonly] {
153
+ border: $form-border_readonly;
154
+ border: var(--ids-theme-inuit-forms-border_readonly, $form-border_readonly);
155
+ color: $form-color_readonly;
156
+ color: var(--ids-theme-inuit-forms-color_readonly, $form-color_readonly);
157
+
158
+ &:focus {
159
+ border-color: transparent;
160
+ box-shadow: none;
161
+ }
162
+ }
163
+
164
+ &[disabled] {
165
+ border: $form-border_disabled;
166
+ border: var(--ids-theme-inuit-forms-border_disabled, $form-border_disabled);
167
+ box-shadow: none;
168
+ background-color: $form-background_disabled;
169
+ background-color: var(--ids-theme-inuit-forms-background_disabled, $form-background_disabled);
170
+ color: $form-color_disabled;
171
+ color: var(--ids-theme-inuit-forms-color_disabled, $form-color_disabled);
172
+ cursor: not-allowed;
173
+
174
+ // scss-lint:disable VendorPrefix
175
+ &::-webkit-input-placeholder {
176
+ color: $form-color_placeholder;
177
+ color: var(--ids-theme-inuit-forms-color_placeholder, $form-color_placeholder);
178
+ font-weight: $font-weight-normal;
179
+ }
180
+
181
+ &:-moz-placeholder {
182
+ color: $form-color_placeholder;
183
+ color: var(--ids-theme-inuit-forms-color_placeholder, $form-color_placeholder);
184
+ font-weight: $font-weight-normal;
185
+ }
186
+
187
+ &::-moz-placeholder {
188
+ color: $form-color_placeholder;
189
+ color: var(--ids-theme-inuit-forms-color_placeholder, $form-color_placeholder);
190
+ font-weight: $font-weight-normal;
191
+ }
192
+
193
+ &:-ms-input-placeholder {
194
+ color: $form-color_placeholder;
195
+ color: var(--ids-theme-inuit-forms-color_placeholder, $form-color_placeholder);
196
+ font-weight: $font-weight-normal;
197
+ }
198
+ // scss-lint:enable VendorPrefix
199
+ }
200
+ }
201
+
202
+ // todo: сократить количество миксинов
203
+ @mixin c-input {
204
+ @include c-input-base;
205
+ }
206
+
207
+ %c-input {
208
+ @include c-input;
209
+ }
210
+
211
+ // Input Variations
212
+
213
+ /*
214
+ Input Block
215
+
216
+ Input on full width of it`s parent.
217
+
218
+ markup:
219
+ <input id="input1" placeholder="Full width of parent container" class="c-input c-input_block" type="text">
220
+
221
+ */
222
+
223
+ @mixin c-input_block {
224
+ display: inline-block;
225
+ width: 100%;
226
+ }
227
+
228
+ /*
229
+ Input Text Right
230
+
231
+ Text right aligning inside input.
232
+
233
+ markup:
234
+ <input class="c-input c-input_text-right" placeholder="Type something..." type="text">
235
+
236
+ */
237
+
238
+ @mixin c-input_text-right {
239
+ .c-input_text-right {
240
+ text-align: right;
241
+
242
+ // scss-lint:disable VendorPrefix
243
+ &::-webkit-input-placeholder {
244
+ text-align: right;
245
+ }
246
+
247
+ &:-moz-placeholder {
248
+ text-align: right;
249
+ }
250
+
251
+ &::-moz-placeholder {
252
+ text-align: right;
253
+ }
254
+
255
+ &:-ms-input-placeholder {
256
+ text-align: right;
257
+ }
258
+ // scss-lint:enable VendorPrefix
259
+ }
260
+ }
261
+
262
+ /*
263
+ Input Length
264
+
265
+ c-input_xtiny - xtiny length (88px)
266
+ c-input_tiny - tiny length (106px)
267
+ c-input_small - small length
268
+ c-input_regular - regular length
269
+ c-input_large - large length
270
+ c-input_huge - huge length
271
+
272
+ markup:
273
+ <input class="c-input {$modifiers}" placeholder="Input length {$modifiers}" type="text">
274
+
275
+ */
276
+
277
+ @mixin c-input_xxtiny {
278
+ width: 100%;
279
+ max-width: inuit-rem(50px);
280
+
281
+ &[type=search] {
282
+ padding: $inuit-global-spacing-unit-tiny $inuit-global-spacing-unit-small;
283
+ }
284
+ }
285
+
286
+ @mixin c-input_xtiny {
287
+ width: 100%;
288
+ max-width: inuit-rem(88px);
289
+
290
+ &[type=search] {
291
+ padding: $inuit-global-spacing-unit-tiny $inuit-global-spacing-unit-small;
292
+ }
293
+ }
294
+
295
+ @mixin c-input_tiny {
296
+ width: 100%;
297
+ max-width: inuit-rem(106px);
298
+
299
+ &[type=search] {
300
+ padding: $inuit-global-spacing-unit-tiny $inuit-global-spacing-unit-small;
301
+ }
302
+ }
303
+
304
+ @mixin c-input_small {
305
+ width: auto;
306
+ max-width: inuit-rem(212px);
307
+
308
+ &[type=search] {
309
+ padding: $inuit-global-spacing-unit-tiny $inuit-global-spacing-unit-small;
310
+ }
311
+ }
312
+
313
+ @mixin c-input_regular {
314
+ width: 100%;
315
+ max-width: inuit-rem(318px);
316
+
317
+ &[type=search] {
318
+ padding: $inuit-global-spacing-unit-tiny $inuit-global-spacing-unit-small;
319
+ }
320
+ }
321
+
322
+ @mixin c-input_large {
323
+ width: 100%;
324
+ max-width: inuit-rem(424px);
325
+ }
326
+
327
+ @mixin c-input_huge {
328
+ width: 100%;
329
+ max-width: inuit-rem(530px);
330
+ }
331
+
332
+ @mixin c-input_min-small {
333
+ width: auto;
334
+ min-width: inuit-rem(212px);
335
+
336
+ &[type=search] {
337
+ padding: $inuit-global-spacing-unit-tiny $inuit-global-spacing-unit-small;
338
+ }
339
+ }
340
+
341
+ @mixin c-input_verticaly-small {
342
+ padding: 4px $inuit-global-spacing-unit-small;
343
+ }
344
+
345
+ /*
346
+ Bare Input
347
+
348
+ markup:
349
+ <input class="c-input c-input_bare" placeholder="Type something..." type="text">
350
+
351
+ */
352
+
353
+ /**
354
+ * Text inputs with no styles.
355
+ */
356
+
357
+ @mixin c-input_bare {
358
+ border: 1px solid transparent !important;
359
+ background: transparent;
360
+
361
+ &:focus {
362
+ border-color: transparent;
363
+ box-shadow: none;
364
+ outline: 0;
365
+ }
366
+ }
367
+
368
+ /*
369
+ Input Validation
370
+
371
+ c-input_is-success - Success input style
372
+ c-input_is-warning - Warning input style
373
+ c-input_is-error - Error input style
374
+
375
+ markup:
376
+ <input class="c-input {$modifiers}" placeholder="Validation class .{$modifiers}" type="text">
377
+
378
+ */
379
+
380
+ /**
381
+ * Styles for validation states
382
+ */
383
+
384
+ @mixin c-input_is-warning {
385
+ border-color: $form-validation-warning;
386
+ border-color: var(--ids-theme-inuit-forms-validation-warning, $form-validation-warning);
387
+ color: inherit;
388
+
389
+ &:hover,
390
+ &:focus {
391
+ box-shadow: inset 0 0 7px 0 $ids-theme-status-warning;
392
+ box-shadow: inset 0 0 7px 0 var(--ids-theme-ids-theme-status-warning, $ids-theme-status-warning);
393
+ }
394
+ }
395
+
396
+ @mixin c-input_is-error {
397
+ border-color: $form-validation-error;
398
+ border-color: var(--ids-theme-inuit-forms-validation-error, $form-validation-error);
399
+ color: inherit;
400
+
401
+ &:hover,
402
+ &:focus {
403
+ box-shadow: inset 0 0 7px 0 $ids-theme-status-error;
404
+ box-shadow: inset 0 0 7px 0 var(--ids-theme-status-error, $ids-theme-status-error);
405
+ }
406
+ }
407
+
408
+ @mixin c-input_is-success {
409
+ border-color: $form-validation-success;
410
+ border-color: var(--ids-theme-inuit-forms-validation-success);
411
+ color: inherit;
412
+
413
+ &:hover,
414
+ &:focus {
415
+ box-shadow: inset 0 0 7px 0 $ids-theme-status-success;
416
+ box-shadow: inset 0 0 7px 0 var(--ids-theme-status-success, $ids-theme-status-success);
417
+ }
418
+ }