@epam/uui 5.7.1 → 5.8.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 (168) hide show
  1. package/assets/styles/buttonLayout.scss +70 -70
  2. package/assets/styles/clickable.scss +26 -26
  3. package/assets/styles/controlLayout.scss +28 -28
  4. package/assets/styles/dnd.scss +9 -9
  5. package/assets/styles/effects.scss +7 -7
  6. package/assets/styles/icons.scss +54 -54
  7. package/assets/styles/index.scss +9 -9
  8. package/assets/styles/inputs.scss +74 -74
  9. package/assets/styles/text-size.scss +42 -42
  10. package/assets/styles/typography.scss +174 -174
  11. package/components/buttons/Button.d.ts +8 -5
  12. package/components/buttons/Button.d.ts.map +1 -1
  13. package/components/buttons/IconButton.d.ts +8 -4
  14. package/components/buttons/IconButton.d.ts.map +1 -1
  15. package/components/buttons/LinkButton.d.ts +6 -14
  16. package/components/buttons/LinkButton.d.ts.map +1 -1
  17. package/components/buttons/TabButton.d.ts +5 -13
  18. package/components/buttons/TabButton.d.ts.map +1 -1
  19. package/components/buttons/VerticalTabButton.d.ts +4 -4
  20. package/components/buttons/VerticalTabButton.d.ts.map +1 -1
  21. package/components/datePickers/Calendar.d.ts +3 -2
  22. package/components/datePickers/Calendar.d.ts.map +1 -1
  23. package/components/datePickers/CalendarPresets.d.ts +2 -1
  24. package/components/datePickers/CalendarPresets.d.ts.map +1 -1
  25. package/components/datePickers/DatePicker.d.ts +3 -10
  26. package/components/datePickers/DatePicker.d.ts.map +1 -1
  27. package/components/datePickers/DatePickerBody.d.ts +18 -10
  28. package/components/datePickers/DatePickerBody.d.ts.map +1 -1
  29. package/components/datePickers/DatePickerHeader.d.ts +12 -8
  30. package/components/datePickers/DatePickerHeader.d.ts.map +1 -1
  31. package/components/datePickers/RangeDatePicker.d.ts +3 -15
  32. package/components/datePickers/RangeDatePicker.d.ts.map +1 -1
  33. package/components/datePickers/RangeDatePickerBody.d.ts +13 -30
  34. package/components/datePickers/RangeDatePickerBody.d.ts.map +1 -1
  35. package/components/datePickers/RangeDatePickerInput.d.ts +43 -0
  36. package/components/datePickers/RangeDatePickerInput.d.ts.map +1 -0
  37. package/components/datePickers/helpers.d.ts +34 -0
  38. package/components/datePickers/helpers.d.ts.map +1 -0
  39. package/components/datePickers/index.d.ts +4 -1
  40. package/components/datePickers/index.d.ts.map +1 -1
  41. package/components/datePickers/types.d.ts +132 -0
  42. package/components/datePickers/types.d.ts.map +1 -0
  43. package/components/filters/FilterDatePickerBody.d.ts +7 -11
  44. package/components/filters/FilterDatePickerBody.d.ts.map +1 -1
  45. package/components/filters/FilterNumericBody.d.ts.map +1 -1
  46. package/components/filters/FilterPanelItemToggler.d.ts +1 -1
  47. package/components/filters/FilterPickerBody.d.ts +1 -1
  48. package/components/filters/FilterPickerBody.d.ts.map +1 -1
  49. package/components/filters/FilterRangeDatePickerBody.d.ts +4 -17
  50. package/components/filters/FilterRangeDatePickerBody.d.ts.map +1 -1
  51. package/components/filters/FiltersPanel.d.ts.map +1 -1
  52. package/components/filters/FiltersPanelItem.d.ts.map +1 -1
  53. package/components/filters/PresetPanel/PresetActionsDropdown.d.ts.map +1 -1
  54. package/components/filters/PresetPanel/PresetsPanel.d.ts.map +1 -1
  55. package/components/inputs/Checkbox.d.ts +6 -2
  56. package/components/inputs/Checkbox.d.ts.map +1 -1
  57. package/components/inputs/InputAddon.d.ts +2 -1
  58. package/components/inputs/InputAddon.d.ts.map +1 -1
  59. package/components/inputs/NumericInput.d.ts +8 -12
  60. package/components/inputs/NumericInput.d.ts.map +1 -1
  61. package/components/inputs/RadioInput.d.ts +3 -2
  62. package/components/inputs/RadioInput.d.ts.map +1 -1
  63. package/components/inputs/Slider.d.ts +2 -1
  64. package/components/inputs/Slider.d.ts.map +1 -1
  65. package/components/inputs/Switch.d.ts +6 -2
  66. package/components/inputs/Switch.d.ts.map +1 -1
  67. package/components/inputs/TextArea.d.ts +7 -11
  68. package/components/inputs/TextArea.d.ts.map +1 -1
  69. package/components/inputs/TextInput.d.ts +5 -9
  70. package/components/inputs/TextInput.d.ts.map +1 -1
  71. package/components/inputs/timePicker/TimePicker.d.ts +6 -2
  72. package/components/inputs/timePicker/TimePicker.d.ts.map +1 -1
  73. package/components/inputs/timePicker/TimePickerBody.d.ts.map +1 -1
  74. package/components/layout/Accordion.d.ts +6 -2
  75. package/components/layout/Accordion.d.ts.map +1 -1
  76. package/components/layout/Blocker.d.ts +1 -1
  77. package/components/layout/Blocker.d.ts.map +1 -1
  78. package/components/layout/ControlGroup.d.ts +2 -1
  79. package/components/layout/ControlGroup.d.ts.map +1 -1
  80. package/components/layout/FlexItems/FlexCell.d.ts +3 -2
  81. package/components/layout/FlexItems/FlexCell.d.ts.map +1 -1
  82. package/components/layout/FlexItems/FlexRow.d.ts +2 -6
  83. package/components/layout/FlexItems/FlexRow.d.ts.map +1 -1
  84. package/components/layout/FlexItems/Panel.d.ts +3 -2
  85. package/components/layout/FlexItems/Panel.d.ts.map +1 -1
  86. package/components/layout/LabeledInput.d.ts +11 -4
  87. package/components/layout/LabeledInput.d.ts.map +1 -1
  88. package/components/layout/ScrollBars.d.ts +2 -1
  89. package/components/layout/ScrollBars.d.ts.map +1 -1
  90. package/components/layout/index.d.ts +1 -0
  91. package/components/layout/index.d.ts.map +1 -1
  92. package/components/navigation/Anchor.d.ts +2 -1
  93. package/components/navigation/Anchor.d.ts.map +1 -1
  94. package/components/navigation/MainMenu/Burger/Burger.d.ts +2 -4
  95. package/components/navigation/MainMenu/Burger/Burger.d.ts.map +1 -1
  96. package/components/navigation/MainMenu/Burger/BurgerButton.d.ts +5 -3
  97. package/components/navigation/MainMenu/Burger/BurgerButton.d.ts.map +1 -1
  98. package/components/navigation/MainMenu/MainMenu.d.ts +3 -6
  99. package/components/navigation/MainMenu/MainMenu.d.ts.map +1 -1
  100. package/components/navigation/MainMenu/MainMenuButton.d.ts +1 -11
  101. package/components/navigation/MainMenu/MainMenuButton.d.ts.map +1 -1
  102. package/components/navigation/MainMenu/MainMenuIcon.d.ts +0 -1
  103. package/components/navigation/MainMenu/MainMenuIcon.d.ts.map +1 -1
  104. package/components/overlays/Dropdown.d.ts +2 -1
  105. package/components/overlays/Dropdown.d.ts.map +1 -1
  106. package/components/overlays/DropdownContainer.d.ts +2 -1
  107. package/components/overlays/DropdownContainer.d.ts.map +1 -1
  108. package/components/overlays/DropdownMenu.d.ts +2 -2
  109. package/components/overlays/DropdownMenu.d.ts.map +1 -1
  110. package/components/overlays/Modals.d.ts +2 -2
  111. package/components/overlays/Modals.d.ts.map +1 -1
  112. package/components/overlays/NotificationCard.d.ts +2 -6
  113. package/components/overlays/NotificationCard.d.ts.map +1 -1
  114. package/components/overlays/Snackbar.d.ts +2 -8
  115. package/components/overlays/Snackbar.d.ts.map +1 -1
  116. package/components/overlays/Tooltip.d.ts +2 -1
  117. package/components/overlays/Tooltip.d.ts.map +1 -1
  118. package/components/pickers/PickerInput.d.ts +10 -3
  119. package/components/pickers/PickerInput.d.ts.map +1 -1
  120. package/components/pickers/PickerItem.d.ts +7 -10
  121. package/components/pickers/PickerItem.d.ts.map +1 -1
  122. package/components/pickers/PickerList.d.ts.map +1 -1
  123. package/components/pickers/PickerModal.d.ts.map +1 -1
  124. package/components/pickers/PickerToggler.d.ts +4 -4
  125. package/components/pickers/PickerToggler.d.ts.map +1 -1
  126. package/components/pickers/PickerTogglerTag.d.ts +10 -0
  127. package/components/pickers/PickerTogglerTag.d.ts.map +1 -0
  128. package/components/pickers/index.d.ts +1 -0
  129. package/components/pickers/index.d.ts.map +1 -1
  130. package/components/tables/ColumnHeaderDropdown/SortingPanel.d.ts.map +1 -1
  131. package/components/tables/DataTable.d.ts +13 -1
  132. package/components/tables/DataTable.d.ts.map +1 -1
  133. package/components/tables/DataTableCell.d.ts.map +1 -1
  134. package/components/tables/DataTableHeaderCell.d.ts.map +1 -1
  135. package/components/tables/DataTableHeaderRow.d.ts +3 -2
  136. package/components/tables/DataTableHeaderRow.d.ts.map +1 -1
  137. package/components/tables/DataTableRow.d.ts +3 -2
  138. package/components/tables/DataTableRow.d.ts.map +1 -1
  139. package/components/tables/columnsConfigurationModal/ColumnRow.d.ts.map +1 -1
  140. package/components/tables/columnsConfigurationModal/PinIconButton.d.ts.map +1 -1
  141. package/components/tables/types.d.ts +20 -0
  142. package/components/tables/types.d.ts.map +1 -1
  143. package/components/typography/RichTextView.d.ts +6 -2
  144. package/components/typography/RichTextView.d.ts.map +1 -1
  145. package/components/typography/Text.d.ts +7 -3
  146. package/components/typography/Text.d.ts.map +1 -1
  147. package/components/widgets/AvatarStack.d.ts +2 -1
  148. package/components/widgets/AvatarStack.d.ts.map +1 -1
  149. package/components/widgets/Badge.d.ts +5 -13
  150. package/components/widgets/Badge.d.ts.map +1 -1
  151. package/components/widgets/ProgressBar.d.ts +4 -3
  152. package/components/widgets/ProgressBar.d.ts.map +1 -1
  153. package/components/widgets/Spinner.d.ts +2 -1
  154. package/components/widgets/Spinner.d.ts.map +1 -1
  155. package/components/widgets/Tag.d.ts +5 -13
  156. package/components/widgets/Tag.d.ts.map +1 -1
  157. package/helpers/dayJsHelper.d.ts +6 -0
  158. package/helpers/dayJsHelper.d.ts.map +1 -0
  159. package/i18n.d.ts.map +1 -1
  160. package/index.esm.js +1699 -1322
  161. package/index.esm.js.map +1 -1
  162. package/index.js +1690 -1308
  163. package/index.js.map +1 -1
  164. package/package.json +7 -7
  165. package/readme.md +4 -4
  166. package/stats.html +32 -28
  167. package/styles.css +4576 -4696
  168. package/styles.css.map +1 -1
@@ -1,70 +1,70 @@
1
- @use './text-size' as *;
2
- @use './icons' as *;
3
-
4
- @mixin button-layout($size, $borderWidth) {
5
- @include button-horizontal-layout($size, $borderWidth);
6
- @include button-vertical-layout($size, $borderWidth);
7
- @include scalable-icon-size($size);
8
- }
9
-
10
- @mixin link-button-layout($size) {
11
- @include link-button-horizontal-layout($size);
12
- @include button-vertical-layout($size, 0);
13
- @include scalable-icon-size($size);
14
- }
15
-
16
- @mixin button-vertical-layout($size, $borderWidth) {
17
- &:global(.uui-button-box) {
18
- min-height: $size;
19
- border-width: $borderWidth;
20
- }
21
-
22
- :global(.uui-caption) {
23
- @include text-size($size, $borderWidth);
24
-
25
- @if ($size == 42px or $size == 48px) {
26
- font-size: 16px;
27
- }
28
- }
29
- }
30
-
31
- @mixin button-horizontal-layout($size, $borderWidth) {
32
- min-width: $size;
33
-
34
- @if ($size == 18px) {
35
- @include button-padding(3px, 3px, $borderWidth);
36
- } @else if ($size == 24px) {
37
- @include button-padding(6px, 6px, $borderWidth);
38
- } @else if ($size == 30px) {
39
- @include button-padding(6px, 6px, $borderWidth);
40
- } @else if ($size == 36px) {
41
- @include button-padding(6px, 6px, $borderWidth);
42
- } @else if ($size == 42px) {
43
- @include button-padding(12px, 6px, $borderWidth);
44
- } @else if ($size == 48px) {
45
- @include button-padding(12px, 6px, $borderWidth);
46
- } @else {
47
- @include button-padding(6px, 6px, $borderWidth); }
48
- }
49
-
50
- @mixin button-padding($controlPadding, $captionPadding, $borderWidth) {
51
- padding-left: $controlPadding - $borderWidth;
52
- padding-right: $controlPadding - $borderWidth;
53
-
54
- :global(.uui-caption) {
55
- padding-left: $captionPadding;
56
- padding-right: $captionPadding;
57
- }
58
- }
59
-
60
- @mixin link-button-horizontal-layout($size) {
61
- min-width: $size;
62
-
63
- &:global(.uui-has-left-icon) :global(.uui-caption) {
64
- padding-left: 6px;
65
- }
66
-
67
- &:global(.uui-has-right-icon) :global(.uui-caption) {
68
- padding-right: 6px;
69
- }
70
- }
1
+ @use './text-size' as *;
2
+ @use './icons' as *;
3
+
4
+ @mixin button-layout($size, $borderWidth) {
5
+ @include button-horizontal-layout($size, $borderWidth);
6
+ @include button-vertical-layout($size, $borderWidth);
7
+ @include scalable-icon-size($size);
8
+ }
9
+
10
+ @mixin link-button-layout($size) {
11
+ @include link-button-horizontal-layout($size);
12
+ @include button-vertical-layout($size, 0);
13
+ @include scalable-icon-size($size);
14
+ }
15
+
16
+ @mixin button-vertical-layout($size, $borderWidth) {
17
+ &:global(.uui-button-box) {
18
+ min-height: $size;
19
+ border-width: $borderWidth;
20
+ }
21
+
22
+ :global(.uui-caption) {
23
+ @include text-size($size, $borderWidth);
24
+
25
+ @if ($size == 42px or $size == 48px) {
26
+ font-size: 16px;
27
+ }
28
+ }
29
+ }
30
+
31
+ @mixin button-horizontal-layout($size, $borderWidth) {
32
+ min-width: $size;
33
+
34
+ @if ($size == 18px) {
35
+ @include button-padding(3px, 3px, $borderWidth);
36
+ } @else if ($size == 24px) {
37
+ @include button-padding(6px, 6px, $borderWidth);
38
+ } @else if ($size == 30px) {
39
+ @include button-padding(6px, 6px, $borderWidth);
40
+ } @else if ($size == 36px) {
41
+ @include button-padding(6px, 6px, $borderWidth);
42
+ } @else if ($size == 42px) {
43
+ @include button-padding(12px, 6px, $borderWidth);
44
+ } @else if ($size == 48px) {
45
+ @include button-padding(12px, 6px, $borderWidth);
46
+ } @else {
47
+ @include button-padding(6px, 6px, $borderWidth); }
48
+ }
49
+
50
+ @mixin button-padding($controlPadding, $captionPadding, $borderWidth) {
51
+ padding-left: $controlPadding - $borderWidth;
52
+ padding-right: $controlPadding - $borderWidth;
53
+
54
+ :global(.uui-caption) {
55
+ padding-left: $captionPadding;
56
+ padding-right: $captionPadding;
57
+ }
58
+ }
59
+
60
+ @mixin link-button-horizontal-layout($size) {
61
+ min-width: $size;
62
+
63
+ &:global(.uui-has-left-icon) :global(.uui-caption) {
64
+ padding-left: 6px;
65
+ }
66
+
67
+ &:global(.uui-has-right-icon) :global(.uui-caption) {
68
+ padding-right: 6px;
69
+ }
70
+ }
@@ -1,27 +1,27 @@
1
- @mixin clickable-styles() {
2
- text-decoration: none;
3
- outline: none;
4
- border: 0;
5
- background: none;
6
- box-sizing: border-box;
7
- appearance: none;
8
- align-items: unset;
9
- padding: unset;
10
- margin: unset;
11
- justify-content: unset;
12
- overflow: hidden;
13
- display: flex;
14
- position: relative;
15
-
16
- &:hover {
17
- text-decoration: none;
18
- }
19
-
20
- &:global(.-clickable) {
21
- cursor: pointer;
22
- }
23
-
24
- &:global(.uui-disabled) {
25
- cursor: default;
26
- }
1
+ @mixin clickable-styles() {
2
+ text-decoration: none;
3
+ outline: none;
4
+ border: 0;
5
+ background: none;
6
+ box-sizing: border-box;
7
+ appearance: none;
8
+ align-items: unset;
9
+ padding: unset;
10
+ margin: unset;
11
+ justify-content: unset;
12
+ overflow: hidden;
13
+ display: flex;
14
+ position: relative;
15
+
16
+ &:hover {
17
+ text-decoration: none;
18
+ }
19
+
20
+ &:global(.-clickable) {
21
+ cursor: pointer;
22
+ }
23
+
24
+ &:global(.uui-disabled) {
25
+ cursor: default;
26
+ }
27
27
  }
@@ -1,28 +1,28 @@
1
- @use 'text-size' as *;
2
-
3
- @mixin control-vertical-layout($size, $borderWidth) {
4
- :global(.uui-caption), :global(.uui-input) {
5
- @include text-size($size, $borderWidth);
6
- }
7
-
8
- &:global(.uui-button-box), &:global(.uui-input-box) {
9
- min-height: $size;
10
- border-width: $borderWidth;
11
- }
12
- }
13
-
14
- @mixin control-box-layout($size, $borderWidth) {
15
- min-width: $size;
16
- padding-left: 5px;
17
- padding-right: 5px;
18
-
19
- :global(.uui-caption), :global(.uui-input) {
20
- padding-left: 6px;
21
- padding-right: 6px;
22
- }
23
-
24
- &:global(.uui-button-box), &:global(.uui-input-box) {
25
- min-height: $size;
26
- border-width: $borderWidth;
27
- }
28
- }
1
+ @use 'text-size' as *;
2
+
3
+ @mixin control-vertical-layout($size, $borderWidth) {
4
+ :global(.uui-caption), :global(.uui-input) {
5
+ @include text-size($size, $borderWidth);
6
+ }
7
+
8
+ &:global(.uui-button-box), &:global(.uui-input-box) {
9
+ min-height: $size;
10
+ border-width: $borderWidth;
11
+ }
12
+ }
13
+
14
+ @mixin control-box-layout($size, $borderWidth) {
15
+ min-width: $size;
16
+ padding-left: 5px;
17
+ padding-right: 5px;
18
+
19
+ :global(.uui-caption), :global(.uui-input) {
20
+ padding-left: 6px;
21
+ padding-right: 6px;
22
+ }
23
+
24
+ &:global(.uui-button-box), &:global(.uui-input-box) {
25
+ min-height: $size;
26
+ border-width: $borderWidth;
27
+ }
28
+ }
@@ -1,9 +1,9 @@
1
- @mixin dnd-cursor-style {
2
- &:hover {
3
- cursor: grab;
4
- }
5
-
6
- &:active {
7
- cursor: grabbing;
8
- }
9
- }
1
+ @mixin dnd-cursor-style {
2
+ &:hover {
3
+ cursor: grab;
4
+ }
5
+
6
+ &:active {
7
+ cursor: grabbing;
8
+ }
9
+ }
@@ -1,7 +1,7 @@
1
- @mixin dnd-ghost-shadow() { box-shadow: 0 6px 18px 0 rgba(29, 30, 38, 0.05), 0 3px 12px 0 rgba(29, 30, 38, 0.05); }
2
-
3
- @mixin focus-visible-effect($offset: 2px, $radius: 2px) {
4
- outline: 2px solid var(--uui-outline-focus);
5
- outline-offset: $offset;
6
- border-radius: $radius;
7
- }
1
+ @mixin dnd-ghost-shadow() { box-shadow: 0 6px 18px 0 rgba(29, 30, 38, 0.05), 0 3px 12px 0 rgba(29, 30, 38, 0.05); }
2
+
3
+ @mixin focus-visible-effect($offset: 2px, $radius: 2px) {
4
+ outline: 2px solid var(--uui-outline-focus);
5
+ outline-offset: $offset;
6
+ border-radius: $radius;
7
+ }
@@ -1,55 +1,55 @@
1
- @use 'sass:math';
2
- @use 'sass:meta';
3
-
4
- @mixin icon-layout($size) {
5
- :global(.uui-icon) {
6
- svg {
7
- height: math.div($size, 36) * 24;
8
- max-width: math.div($size, 36) * 24;
9
- }
10
- }
11
- }
12
-
13
- @mixin icon-size($size) {
14
- $striped-size: strip-unit($size);
15
-
16
- :global(.uui-icon) {
17
- svg {
18
- height: #{$striped-size}px;
19
- width: #{$striped-size}px;
20
- }
21
- }
22
- }
23
-
24
- @function strip-unit($number) {
25
- @if meta.type-of($number) == 'number' and not math.is-unitless($number) {
26
- @return math.div($number, $number * 0 + 1);
27
- }
28
-
29
- @return $number;
30
- }
31
-
32
- @mixin scalable-icon-size($size, $additionalClass: '') {
33
- $striped-size: strip-unit($size);
34
-
35
- #{$additionalClass}:global(.uui-icon) {
36
- svg {
37
- @if ($striped-size == 18) {
38
- height: 12px;
39
- } @else if ($striped-size == 24) {
40
- height: 12px;
41
- } @else if ($striped-size == 30) {
42
- height: 18px;
43
- } @else if ($striped-size == 36) {
44
- height: 18px;
45
- } @else if ($striped-size == 42) {
46
- height: 18px;
47
- } @else if ($striped-size == 48) {
48
- height: 24px;
49
- } @else if ($striped-size == 60) {
50
- height: 24px;
51
- }
52
- width: inherit;
53
- }
54
- }
1
+ @use 'sass:math';
2
+ @use 'sass:meta';
3
+
4
+ @mixin icon-layout($size) {
5
+ :global(.uui-icon) {
6
+ svg {
7
+ height: math.div($size, 36) * 24;
8
+ max-width: math.div($size, 36) * 24;
9
+ }
10
+ }
11
+ }
12
+
13
+ @mixin icon-size($size) {
14
+ $striped-size: strip-unit($size);
15
+
16
+ :global(.uui-icon) {
17
+ svg {
18
+ height: #{$striped-size}px;
19
+ width: #{$striped-size}px;
20
+ }
21
+ }
22
+ }
23
+
24
+ @function strip-unit($number) {
25
+ @if meta.type-of($number) == 'number' and not math.is-unitless($number) {
26
+ @return math.div($number, $number * 0 + 1);
27
+ }
28
+
29
+ @return $number;
30
+ }
31
+
32
+ @mixin scalable-icon-size($size, $additionalClass: '') {
33
+ $striped-size: strip-unit($size);
34
+
35
+ #{$additionalClass}:global(.uui-icon) {
36
+ svg {
37
+ @if ($striped-size == 18) {
38
+ height: 12px;
39
+ } @else if ($striped-size == 24) {
40
+ height: 12px;
41
+ } @else if ($striped-size == 30) {
42
+ height: 18px;
43
+ } @else if ($striped-size == 36) {
44
+ height: 18px;
45
+ } @else if ($striped-size == 42) {
46
+ height: 18px;
47
+ } @else if ($striped-size == 48) {
48
+ height: 24px;
49
+ } @else if ($striped-size == 60) {
50
+ height: 24px;
51
+ }
52
+ width: inherit;
53
+ }
54
+ }
55
55
  }
@@ -1,9 +1,9 @@
1
- @forward 'buttonLayout';
2
- @forward 'clickable';
3
- @forward 'controlLayout';
4
- @forward 'effects';
5
- @forward 'icons';
6
- @forward 'inputs';
7
- @forward 'text-size';
8
- @forward 'typography';
9
- @forward 'dnd';
1
+ @forward 'buttonLayout';
2
+ @forward 'clickable';
3
+ @forward 'controlLayout';
4
+ @forward 'effects';
5
+ @forward 'icons';
6
+ @forward 'inputs';
7
+ @forward 'text-size';
8
+ @forward 'typography';
9
+ @forward 'dnd';
@@ -1,74 +1,74 @@
1
- @mixin disabled-input() {
2
- &.mode-form {
3
- @include input-colors(var(--uui-control-bg-disabled), var(--uui-control-text-disabled), var(--uui-control-border-disabled), var(--uui-control-placeholder-disabled));
4
- cursor: default;
5
- pointer-events: none;
6
-
7
- &:hover, &:active, &:focus {
8
- @include input-colors(var(--uui-control-bg-disabled), var(--uui-control-text-disabled), var(--uui-control-border-disabled), var(--uui-control-placeholder-disabled));
9
- box-shadow: none;
10
- }
11
- }
12
-
13
- &.mode-cell {
14
- @include input-colors(transparent, var(--uui-control-text-disabled), transparent, var(--uui-control-placeholder-disabled));
15
- cursor: default;
16
- pointer-events: none;
17
-
18
- &:hover, &:active, &:focus {
19
- @include input-colors(transparent, var(--uui-control-text-disabled), transparent, var(--uui-control-placeholder-disabled));
20
- box-shadow: none;
21
- }
22
- }
23
- }
24
-
25
- @mixin readonly-input() {
26
- &.mode-form {
27
- background-color: var(--uui-control-bg-disabled);
28
- border-color: var(--uui-control-border-disabled);
29
- pointer-events: none;
30
-
31
- &:hover {
32
- border-color: var(--uui-control-border-disabled);
33
- }
34
-
35
- :global(.uui-input) {
36
- &::placeholder {
37
- color: var(--uui-control-placeholder-disabled);
38
- }
39
- }
40
- }
41
-
42
- &.mode-cell {
43
- background-color: transparent;
44
- border-color: transparent;
45
- pointer-events: none;
46
-
47
- &:hover {
48
- background-color: transparent;
49
- border-color: transparent;
50
- }
51
-
52
- :global(.uui-input) {
53
- &::placeholder {
54
- color: var(--uui-control-placeholder-disabled);
55
- }
56
- }
57
- }
58
- }
59
-
60
- @mixin input-colors($bg, $color, $border, $placeholder) {
61
- background-color: $bg;
62
- color: $color;
63
- fill: $color;
64
- border-color: $border;
65
-
66
- // override more selective selector on input tag in browsers stylesheets
67
- :global(.uui-input) {
68
- color: $color;
69
-
70
- &::placeholder {
71
- color: $placeholder;
72
- }
73
- }
74
- }
1
+ @mixin disabled-input() {
2
+ &.mode-form {
3
+ @include input-colors(var(--uui-control-bg-disabled), var(--uui-control-text-disabled), var(--uui-control-border-disabled), var(--uui-control-placeholder-disabled));
4
+ cursor: default;
5
+ pointer-events: none;
6
+
7
+ &:hover, &:active, &:focus {
8
+ @include input-colors(var(--uui-control-bg-disabled), var(--uui-control-text-disabled), var(--uui-control-border-disabled), var(--uui-control-placeholder-disabled));
9
+ box-shadow: none;
10
+ }
11
+ }
12
+
13
+ &.mode-cell {
14
+ @include input-colors(transparent, var(--uui-control-text-disabled), transparent, var(--uui-control-placeholder-disabled));
15
+ cursor: default;
16
+ pointer-events: none;
17
+
18
+ &:hover, &:active, &:focus {
19
+ @include input-colors(transparent, var(--uui-control-text-disabled), transparent, var(--uui-control-placeholder-disabled));
20
+ box-shadow: none;
21
+ }
22
+ }
23
+ }
24
+
25
+ @mixin readonly-input() {
26
+ &.mode-form {
27
+ background-color: var(--uui-control-bg-disabled);
28
+ border-color: var(--uui-control-border-disabled);
29
+ pointer-events: none;
30
+
31
+ &:hover {
32
+ border-color: var(--uui-control-border-disabled);
33
+ }
34
+
35
+ :global(.uui-input) {
36
+ &::placeholder {
37
+ color: var(--uui-control-placeholder-disabled);
38
+ }
39
+ }
40
+ }
41
+
42
+ &.mode-cell {
43
+ background-color: transparent;
44
+ border-color: transparent;
45
+ pointer-events: none;
46
+
47
+ &:hover {
48
+ background-color: transparent;
49
+ border-color: transparent;
50
+ }
51
+
52
+ :global(.uui-input) {
53
+ &::placeholder {
54
+ color: var(--uui-control-placeholder-disabled);
55
+ }
56
+ }
57
+ }
58
+ }
59
+
60
+ @mixin input-colors($bg, $color, $border, $placeholder) {
61
+ background-color: $bg;
62
+ color: $color;
63
+ fill: $color;
64
+ border-color: $border;
65
+
66
+ // override more selective selector on input tag in browsers stylesheets
67
+ :global(.uui-input) {
68
+ color: $color;
69
+
70
+ &::placeholder {
71
+ color: $placeholder;
72
+ }
73
+ }
74
+ }
@@ -1,42 +1,42 @@
1
- @function vpadding($size, $border-width) {
2
- @if ($size == 18px or $size == 24px) {
3
- @return (3px - $border-width);
4
- } @else if ($size == 30px) {
5
- @return (6px - $border-width);
6
- } @else if ($size == 36px or $size == 42px) {
7
- @return (9px - $border-width);
8
- } @else if ($size == 48px) {
9
- @return (12px - $border-width);
10
- } @else if ($size == 60px) {
11
- @return (15px - $border-width);
12
- }
13
-
14
- @return (null);
15
- }
16
-
17
- @mixin text-size($size, $border-width: 0) {
18
- @if ($size == 18px) {
19
- line-height: 12px;
20
- font-size: 10px;
21
- } @else if ($size == 24px) {
22
- line-height: 18px;
23
- font-size: 12px;
24
- } @else if ($size == 30px) {
25
- line-height: 18px;
26
- font-size: 14px;
27
- } @else if ($size == 36px) {
28
- line-height: 18px;
29
- font-size: 14px;
30
- } @else if ($size == 42px) {
31
- line-height: 24px;
32
- font-size: 16px;
33
- } @else if ($size == 48px) {
34
- line-height: 24px;
35
- font-size: 16px;
36
- } @else if ($size == 60px) {
37
- line-height: 24px;
38
- font-size: 20px;
39
- }
40
- padding-top: vpadding($size, $border-width);
41
- padding-bottom: vpadding($size, $border-width);
42
- }
1
+ @function vpadding($size, $border-width) {
2
+ @if ($size == 18px or $size == 24px) {
3
+ @return (3px - $border-width);
4
+ } @else if ($size == 30px) {
5
+ @return (6px - $border-width);
6
+ } @else if ($size == 36px or $size == 42px) {
7
+ @return (9px - $border-width);
8
+ } @else if ($size == 48px) {
9
+ @return (12px - $border-width);
10
+ } @else if ($size == 60px) {
11
+ @return (15px - $border-width);
12
+ }
13
+
14
+ @return (null);
15
+ }
16
+
17
+ @mixin text-size($size, $border-width: 0) {
18
+ @if ($size == 18px) {
19
+ line-height: 12px;
20
+ font-size: 10px;
21
+ } @else if ($size == 24px) {
22
+ line-height: 18px;
23
+ font-size: 12px;
24
+ } @else if ($size == 30px) {
25
+ line-height: 18px;
26
+ font-size: 14px;
27
+ } @else if ($size == 36px) {
28
+ line-height: 18px;
29
+ font-size: 14px;
30
+ } @else if ($size == 42px) {
31
+ line-height: 24px;
32
+ font-size: 16px;
33
+ } @else if ($size == 48px) {
34
+ line-height: 24px;
35
+ font-size: 16px;
36
+ } @else if ($size == 60px) {
37
+ line-height: 24px;
38
+ font-size: 20px;
39
+ }
40
+ padding-top: vpadding($size, $border-width);
41
+ padding-bottom: vpadding($size, $border-width);
42
+ }