linear-react-components-ui 1.1.24-beta.1 → 1.1.24-beta.11

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/lib/BaseMask-0c14ef51.d.ts +24 -0
  2. package/lib/Cnpj-bde01dd0.d.ts +18 -0
  3. package/lib/Cpf-3fa496ad.d.ts +18 -0
  4. package/lib/Phone-2bb0b397.d.ts +18 -0
  5. package/lib/ZipCode-09460e18.d.ts +13 -0
  6. package/lib/alerts/AlertProvider.js +1 -2
  7. package/lib/alerts/BaseAlert.js +1 -1
  8. package/lib/alerts/Message.js +2 -3
  9. package/lib/alerts/withAlert.js +1 -2
  10. package/lib/assets/styles/button.scss +1 -1
  11. package/lib/assets/styles/calendar.scss +137 -32
  12. package/lib/assets/styles/datepicker2.scss +8 -10
  13. package/lib/assets/styles/dialog.scss +1 -1
  14. package/lib/assets/styles/fieldset.scss +1 -1
  15. package/lib/assets/styles/file.scss +8 -0
  16. package/lib/assets/styles/filefield.scss +42 -0
  17. package/lib/assets/styles/gridlayout.scss +20 -19
  18. package/lib/assets/styles/multiSelect.scss +6 -6
  19. package/lib/assets/styles/numberfield.scss +18 -0
  20. package/lib/assets/styles/radiofield.scss +185 -0
  21. package/lib/assets/styles/selectfield.scss +6 -4
  22. package/lib/assets/styles/table.scss +6 -0
  23. package/lib/assets/styles/tabs.scss +6 -2
  24. package/lib/assets/styles/textfield.scss +66 -28
  25. package/lib/avatar/index.js +9 -11
  26. package/lib/badge/index.js +4 -4
  27. package/lib/buttons/Button.js +1 -2
  28. package/lib/buttons/DangerButton.js +1 -1
  29. package/lib/buttons/DefaultButton.js +6 -15
  30. package/lib/buttons/InfoButton.js +1 -1
  31. package/lib/buttons/PrimaryButton.js +1 -1
  32. package/lib/buttons/SuccessButton.js +1 -1
  33. package/lib/buttons/WarningButton.js +1 -1
  34. package/lib/buttons/button_container/index.js +1 -1
  35. package/lib/buttons/split_button/index.js +2 -2
  36. package/lib/calendar/base/helpers.js +2 -2
  37. package/lib/calendar/base/index.js +123 -44
  38. package/lib/checkbox/index.js +2 -3
  39. package/lib/dialog/Custom.js +2 -3
  40. package/lib/dialog/Question.js +5 -4
  41. package/lib/dialog/base/Content.js +5 -6
  42. package/lib/dialog/base/Header.js +3 -4
  43. package/lib/dialog/base/index.js +33 -23
  44. package/lib/dialog/form/index.js +52 -12
  45. package/lib/dialog/types.d.ts +4 -0
  46. package/lib/dialog/wizard/index.js +1 -2
  47. package/lib/dialog/wizard/progressbar.js +1 -1
  48. package/lib/dialog/wizard/step.js +1 -1
  49. package/lib/dialog/wizard/useWizard.js +1 -2
  50. package/lib/drawer/Content.js +1 -2
  51. package/lib/drawer/Drawer.js +6 -7
  52. package/lib/drawer/Header.js +2 -3
  53. package/lib/dropdown/Popup.js +7 -7
  54. package/lib/dropdown/helper.js +1 -1
  55. package/lib/dropdown/withDropdown.js +3 -4
  56. package/lib/fieldset/index.js +8 -9
  57. package/lib/form/Field.js +2 -3
  58. package/lib/form/FieldArray.js +2 -3
  59. package/lib/form/FieldNumber.js +4 -5
  60. package/lib/form/FieldPeriod.js +3 -4
  61. package/lib/form/index.js +3 -4
  62. package/lib/form/withFieldHOC.js +1 -2
  63. package/lib/form/withFormSecurity.js +1 -2
  64. package/lib/form2/helpers.js +1 -1
  65. package/lib/form2/index.d.ts +1 -1
  66. package/lib/form2/types.d.ts +7 -3
  67. package/lib/form2/useForm/index.js +22 -15
  68. package/lib/gridlayout/GridCol.js +5 -5
  69. package/lib/gridlayout/GridRow.js +1 -4
  70. package/lib/hint/index.js +1 -7
  71. package/lib/icons/helper.d.ts +16 -0
  72. package/lib/icons/helper.js +16 -0
  73. package/lib/icons/index.js +9 -9
  74. package/lib/index-19761a50.d.ts +26 -0
  75. package/lib/index-208e7f62.d.ts +44 -0
  76. package/lib/index-35ba9ed8.d.ts +15 -0
  77. package/lib/index-3b70931d.d.ts +44 -0
  78. package/lib/index-7dfa8924.d.ts +22 -0
  79. package/lib/index-9e576346.d.ts +23 -0
  80. package/lib/index-ecafc8c6.d.ts +30 -0
  81. package/lib/index-efe0a0e4.d.ts +41 -0
  82. package/lib/inputs/base/InputTextBase.js +9 -8
  83. package/lib/inputs/base/helpers.js +3 -7
  84. package/lib/inputs/base/types.d.ts +1 -1
  85. package/lib/inputs/color/index.js +2 -3
  86. package/lib/inputs/date/Dropdown.js +6 -4
  87. package/lib/inputs/date/index.js +31 -19
  88. package/lib/inputs/errorMessage/index.js +2 -3
  89. package/lib/inputs/file/DefaultFile.js +31 -31
  90. package/lib/inputs/file/DragDropFile.js +18 -17
  91. package/lib/inputs/file/File.js +6 -5
  92. package/lib/inputs/file/FileButtonSettings.js +0 -1
  93. package/lib/inputs/file/index.js +0 -1
  94. package/lib/inputs/inputHOC.js +1 -2
  95. package/lib/inputs/mask/BaseMask.js +1 -2
  96. package/lib/inputs/mask/Cnpj.js +1 -2
  97. package/lib/inputs/mask/Cpf.js +1 -2
  98. package/lib/inputs/multiSelect/ActionButtons.js +1 -2
  99. package/lib/inputs/multiSelect/Dropdown.js +12 -12
  100. package/lib/inputs/multiSelect/helper.js +2 -1
  101. package/lib/inputs/multiSelect/index.js +28 -11
  102. package/lib/inputs/number/BaseNumber.js +1 -1
  103. package/lib/inputs/number/index.js +3 -3
  104. package/lib/inputs/period/Dropdown.js +7 -4
  105. package/lib/inputs/period/PeriodList.js +1 -1
  106. package/lib/inputs/period/helper.js +1 -3
  107. package/lib/inputs/period/index.js +66 -40
  108. package/lib/inputs/period/types.d.ts +4 -1
  109. package/lib/inputs/search/index.js +8 -5
  110. package/lib/inputs/select/ActionButtons.js +1 -1
  111. package/lib/inputs/select/Dropdown.js +3 -4
  112. package/lib/inputs/select/helper.js +13 -10
  113. package/lib/inputs/select/multiple/Selecteds.js +2 -2
  114. package/lib/inputs/select/multiple/index.js +14 -11
  115. package/lib/inputs/select/simple/index.js +19 -13
  116. package/lib/inputs/textarea/index.js +1 -1
  117. package/lib/inputs/types.d.ts +1 -0
  118. package/lib/inputs2/checkboxfield/index.d.ts +1 -1
  119. package/lib/inputs2/checkboxfield/index.js +18 -15
  120. package/lib/inputs2/colorfield/index.d.ts +2 -2
  121. package/lib/inputs2/colorfield/index.js +5 -5
  122. package/lib/inputs2/date/base/constants.js +2 -1
  123. package/lib/inputs2/date/base/index.js +6 -8
  124. package/lib/inputs2/date/datefield/calendarbox.d.ts +1 -1
  125. package/lib/inputs2/date/datefield/calendarbox.js +3 -2
  126. package/lib/inputs2/date/datefield/context.d.ts +1 -0
  127. package/lib/inputs2/date/datefield/index.d.ts +1 -0
  128. package/lib/inputs2/date/datefield/index.js +44 -33
  129. package/lib/inputs2/date/datefield/triggers.js +1 -2
  130. package/lib/inputs2/date/datefield/types.d.ts +2 -0
  131. package/lib/inputs2/date/dateperiodfield/calendarbox.d.ts +1 -1
  132. package/lib/inputs2/date/dateperiodfield/calendarbox.js +8 -6
  133. package/lib/inputs2/date/dateperiodfield/context.d.ts +1 -0
  134. package/lib/inputs2/date/dateperiodfield/index.d.ts +1 -0
  135. package/lib/inputs2/date/dateperiodfield/index.js +66 -48
  136. package/lib/inputs2/date/dateperiodfield/triggers.js +19 -14
  137. package/lib/inputs2/date/dateperiodfield/types.d.ts +2 -0
  138. package/lib/inputs2/date/helpers.d.ts +1 -0
  139. package/lib/inputs2/date/types.d.ts +2 -1
  140. package/lib/inputs2/{number/Number.d.ts → filefield/index.d.ts} +2 -2
  141. package/lib/inputs2/filefield/index.js +174 -0
  142. package/lib/inputs2/index.d.ts +20 -14
  143. package/lib/inputs2/index.js +10 -11
  144. package/lib/inputs2/mask/BaseMask.d.ts +2 -2
  145. package/lib/inputs2/mask/BaseMask.js +7 -7
  146. package/lib/inputs2/mask/Cnpj.d.ts +3 -3
  147. package/lib/inputs2/mask/Cnpj.js +4 -5
  148. package/lib/inputs2/mask/Cpf.d.ts +3 -3
  149. package/lib/inputs2/mask/Cpf.js +4 -5
  150. package/lib/inputs2/mask/Phone.d.ts +3 -3
  151. package/lib/inputs2/mask/Phone.js +1 -2
  152. package/lib/inputs2/mask/ZipCode.d.ts +3 -3
  153. package/lib/inputs2/mask/ZipCode.js +1 -2
  154. package/lib/inputs2/numberfield/currency.d.ts +13 -0
  155. package/lib/inputs2/numberfield/currency.js +91 -0
  156. package/lib/inputs2/numberfield/decimal.d.ts +13 -0
  157. package/lib/inputs2/{number/BaseNumber.js → numberfield/decimal.js} +57 -58
  158. package/lib/inputs2/numberfield/helpers.d.ts +30 -0
  159. package/lib/inputs2/numberfield/helpers.js +53 -0
  160. package/lib/inputs2/numberfield/index.d.ts +12 -0
  161. package/lib/inputs2/numberfield/index.js +104 -0
  162. package/lib/inputs2/numberfield/types.d.ts +36 -0
  163. package/lib/inputs2/numberfield/types.js +5 -0
  164. package/lib/inputs2/{number/BaseNumber.d.ts → radiofield/index.d.ts} +4 -5
  165. package/lib/inputs2/radiofield/index.js +144 -0
  166. package/lib/inputs2/radiofield/types.d.ts +33 -0
  167. package/lib/inputs2/radiofield/types.js +5 -0
  168. package/lib/inputs2/selectfield/context.d.ts +1 -0
  169. package/lib/inputs2/selectfield/index.d.ts +2 -1
  170. package/lib/inputs2/selectfield/index.js +118 -58
  171. package/lib/inputs2/selectfield/item.d.ts +2 -1
  172. package/lib/inputs2/selectfield/item.js +8 -4
  173. package/lib/inputs2/selectfield/listbox.d.ts +1 -1
  174. package/lib/inputs2/selectfield/listbox.js +24 -10
  175. package/lib/inputs2/selectfield/options.d.ts +9 -0
  176. package/lib/inputs2/selectfield/options.js +26 -0
  177. package/lib/inputs2/selectfield/search.d.ts +1 -1
  178. package/lib/inputs2/selectfield/search.js +3 -4
  179. package/lib/inputs2/selectfield/selections.d.ts +1 -1
  180. package/lib/inputs2/selectfield/selections.js +3 -2
  181. package/lib/inputs2/selectfield/triggers.js +17 -8
  182. package/lib/inputs2/selectfield/types.d.ts +0 -1
  183. package/lib/inputs2/slot/index.d.ts +2 -2
  184. package/lib/inputs2/{number/Decimal.d.ts → textareafield/index.d.ts} +2 -5
  185. package/lib/inputs2/textareafield/index.js +194 -0
  186. package/lib/inputs2/textfield/index.d.ts +1 -1
  187. package/lib/inputs2/textfield/index.js +18 -17
  188. package/lib/labelMessages/index.js +4 -6
  189. package/lib/labels/DefaultLabel.js +2 -6
  190. package/lib/labels/label_container/index.js +1 -1
  191. package/lib/list/Header.js +1 -1
  192. package/lib/list/Item.js +10 -12
  193. package/lib/list/index.js +2 -4
  194. package/lib/menus/float/MenuItem.js +3 -4
  195. package/lib/menus/float/SubMenuContainer.js +2 -3
  196. package/lib/menus/float/index.js +1 -1
  197. package/lib/menus/sidenav/ExpandMenu.js +1 -1
  198. package/lib/menus/sidenav/MenuLink.js +1 -2
  199. package/lib/menus/sidenav/NavMenuGroup.js +2 -3
  200. package/lib/menus/sidenav/NavMenuItem.js +10 -9
  201. package/lib/menus/sidenav/NavSubMenuItem.js +2 -3
  202. package/lib/menus/sidenav/helpers.js +1 -1
  203. package/lib/menus/sidenav/index.js +6 -7
  204. package/lib/menus/sidenav/popup_menu_search/index.js +1 -2
  205. package/lib/panel/Content.js +9 -8
  206. package/lib/panel/Default.js +3 -4
  207. package/lib/panel/Header.js +4 -5
  208. package/lib/permissionValidations.js +1 -1
  209. package/lib/popover/PopoverText.js +1 -2
  210. package/lib/popover/index.js +1 -1
  211. package/lib/progress/Bar.js +6 -6
  212. package/lib/radio/index.js +3 -4
  213. package/lib/shortcuts/index.js +1 -1
  214. package/lib/skeleton/SkeletonContainer.js +1 -2
  215. package/lib/skeleton/index.js +1 -4
  216. package/lib/spinner/index.js +3 -4
  217. package/lib/split/Split.js +2 -3
  218. package/lib/split/SplitSide.js +4 -5
  219. package/lib/table/Body.js +4 -5
  220. package/lib/table/Header.js +9 -7
  221. package/lib/table/HeaderColumn.js +2 -3
  222. package/lib/table/Row.js +4 -5
  223. package/lib/table/RowColumn.js +2 -3
  224. package/lib/table/index.js +20 -16
  225. package/lib/table/types.d.ts +1 -0
  226. package/lib/tabs/DropdownTabs.js +2 -3
  227. package/lib/tabs/Menu.js +1 -1
  228. package/lib/tabs/MenuTabs.js +4 -9
  229. package/lib/tabs/Panel.js +8 -7
  230. package/lib/tabs/context.js +7 -5
  231. package/lib/tabs/index.js +3 -4
  232. package/lib/textContent/index.js +2 -3
  233. package/lib/toolbar/ButtonBar.js +2 -3
  234. package/lib/toolbar/LabelBar.js +1 -2
  235. package/lib/toolbar/index.js +1 -1
  236. package/lib/tooltip/TooltipContent.js +8 -9
  237. package/lib/tooltip/useTooltip.js +8 -8
  238. package/lib/treetable/Body.js +2 -3
  239. package/lib/treetable/Header.js +3 -4
  240. package/lib/treetable/Row.js +9 -10
  241. package/lib/treeview/Header.js +1 -1
  242. package/lib/treeview/Node.js +5 -6
  243. package/lib/treeview/index.js +5 -6
  244. package/lib/uitour/index.js +9 -8
  245. package/package.json +1 -1
  246. package/lib/BaseMask-04df8f20.d.ts +0 -24
  247. package/lib/BaseNumber-c609c5a0.d.ts +0 -23
  248. package/lib/Cnpj-5471cb1f.d.ts +0 -18
  249. package/lib/Cpf-71c4f0f4.d.ts +0 -18
  250. package/lib/Currency-38d14ff7.d.ts +0 -18
  251. package/lib/Decimal-85d45244.d.ts +0 -13
  252. package/lib/Number-db3c092d.d.ts +0 -20
  253. package/lib/Phone-4c4142e4.d.ts +0 -18
  254. package/lib/ZipCode-dc7dd4da.d.ts +0 -13
  255. package/lib/calendar/base/Day.d.ts +0 -8
  256. package/lib/calendar/base/Day.js +0 -36
  257. package/lib/calendar/base/Month.d.ts +0 -8
  258. package/lib/calendar/base/Month.js +0 -39
  259. package/lib/calendar/base/Week.d.ts +0 -8
  260. package/lib/calendar/base/Week.js +0 -35
  261. package/lib/index-379b7504.d.ts +0 -44
  262. package/lib/index-7cb5e8b3.d.ts +0 -41
  263. package/lib/index-809a7899.d.ts +0 -23
  264. package/lib/index-de21a05e.d.ts +0 -23
  265. package/lib/inputs2/number/Currency.d.ts +0 -11
  266. package/lib/inputs2/number/Currency.js +0 -47
  267. package/lib/inputs2/number/Decimal.js +0 -36
  268. package/lib/inputs2/number/Number.js +0 -49
  269. package/lib/inputs2/number/format_number.d.ts +0 -5
  270. package/lib/inputs2/number/format_number.js +0 -29
@@ -26,31 +26,32 @@ html {
26
26
  &.-withskeleton {
27
27
  margin-bottom: 10px;
28
28
  }
29
- }
30
29
 
31
- @media (min-width: 576px) {
32
- .container {
33
- max-width: 540px;
30
+ @media (min-width: 576px) {
31
+ >.container {
32
+ max-width: 540px;
33
+ }
34
34
  }
35
- }
36
-
37
- @media (min-width: 768px) {
38
- .container {
39
- max-width: 720px;
35
+
36
+ @media (min-width: 768px) {
37
+ >.container {
38
+ max-width: 720px;
39
+ }
40
40
  }
41
- }
42
-
43
- @media (min-width: 992px) {
44
- .container {
45
- max-width: 960px;
41
+
42
+ @media (min-width: 992px) {
43
+ >.container {
44
+ max-width: 960px;
45
+ }
46
46
  }
47
- }
48
-
49
- @media (min-width: 1200px) {
50
- .container {
51
- max-width: 1140px;
47
+
48
+ @media (min-width: 1200px) {
49
+ >.container {
50
+ max-width: 1140px;
51
+ }
52
52
  }
53
53
  }
54
+
54
55
  .container-fluid {
55
56
  width: 100%;
56
57
  padding-right: 15px;
@@ -58,23 +58,23 @@
58
58
  z-index: 9999;
59
59
 
60
60
  >.filtercontainer {
61
- position: relative;
62
- display: grid;
63
- grid-template-columns: 1fr 20px;
61
+ display: flex;
62
+ align-items: center;
63
+ justify-content: start;
64
64
  border: 1px solid $component-border-color;
65
65
  margin: 4px;
66
66
 
67
67
  >.filterinput {
68
68
  border: 0;
69
+ flex: 1;
69
70
  font-size: 13px;
70
71
  text-indent: 4px;
71
72
  padding: 10px 5px;
72
73
  }
73
74
 
74
75
  >.filtericon {
75
- position: absolute;
76
- right: 5px;
77
- top: 10px;
76
+ margin: 0px;
77
+ margin-right: 6px;
78
78
  }
79
79
  }
80
80
 
@@ -0,0 +1,18 @@
1
+ @import "colors.scss";
2
+ @import "effects.scss";
3
+ @import "commons.scss";
4
+ @import "fonts.scss";
5
+
6
+ .currency-left-elements {
7
+ .currency-symbol {
8
+ user-select: none;
9
+ margin: 0;
10
+ height: 100%;
11
+ display: flex;
12
+ align-items: center;
13
+ justify-content: center;
14
+ padding: 0px 6px;
15
+ font-size: 14px;
16
+ background-color: $component-bg-default;
17
+ }
18
+ }
@@ -0,0 +1,185 @@
1
+ @import "fonts.scss";
2
+ @import "colors.scss";
3
+ @import "commons.scss";
4
+ @import "effects.scss";
5
+
6
+ $radio-button-checked-color: $component-selected-color;
7
+ $radio-button-border-color: rgba(0, 0, 0, 0.54);
8
+ $radio-button-size: 20px;
9
+ $radio-button-checked-size: 10px;
10
+ $radio-button-ripple-size: 15px;
11
+
12
+ :root {
13
+ --radio-small: 12px;
14
+ --radio-medium: 16px;
15
+ --radio-large: 20px;
16
+ --radio-border-size: 1px;
17
+ --radio-checked-blank-size: calc(var(--radio-border-size) * 6);
18
+ }
19
+
20
+ .radio-field-root {
21
+ display: flex;
22
+ flex-direction: column;
23
+ .container {
24
+ width: 100%;
25
+ height: 32px;
26
+ margin: 0;
27
+ padding: 0;
28
+ overflow: hidden;
29
+ display: flex;
30
+ flex-wrap: wrap;
31
+ align-items: center;
32
+ flex-direction: row;
33
+ justify-content: start;
34
+ overflow: unset;
35
+ input.input {
36
+ @extend %input-placeholder;
37
+ @extend %component-fonts;
38
+ display: flex;
39
+ align-items: center;
40
+ justify-content: center;
41
+ width: var(--radio-medium);
42
+ height: var(--radio-medium);
43
+ appearance: none;
44
+ border-radius: 100%;
45
+ background-color: $default-color;
46
+ border: 1px solid $component-border-color;
47
+ transition: 0.2s border;
48
+ &:checked {
49
+ border-color: $radio-button-checked-color;
50
+ &::after {
51
+ content: '';
52
+ width: calc(var(--radio-medium) - var(--radio-checked-blank-size));
53
+ height: calc(var(--radio-medium) - var(--radio-checked-blank-size));
54
+ border-radius: 100%;
55
+ background-color: $radio-button-checked-color;
56
+ }
57
+ }
58
+ &:hover, &:focus {
59
+ outline: 3px solid rgba(161,13,13,0.35);
60
+ outline-offset: 0px;
61
+ }
62
+ &:disabled {
63
+ cursor: not-allowed;
64
+ cursor: default;
65
+ background-color: $input-disabled-bg-color;
66
+ &:checked {
67
+ border-color: $font-color-disabled;
68
+ &::after {
69
+ background-color: $font-color-disabled;
70
+ }
71
+ }
72
+ }
73
+ &[data-state-read-only=true] {
74
+ cursor: default;
75
+ background-color: $input-read-only-bg-color;
76
+ &:checked {
77
+ border-color: $font-color-disabled;
78
+ &::after {
79
+ background-color: $font-color-disabled;
80
+ }
81
+ }
82
+ }
83
+ &:disabled, &[data-state-read-only=true] {
84
+ &:hover, &:focus {
85
+ outline: none;
86
+ box-shadow: none;
87
+ -webkit-box-shadow: none;
88
+ }
89
+ }
90
+ &[data-state-size="small"] {
91
+ width: var(--radio-small);
92
+ height: var(--radio-small);
93
+ &::after {
94
+ width: calc(var(--radio-small) - var(--radio-checked-blank-size));
95
+ height: calc(var(--radio-small) - var(--radio-checked-blank-size));
96
+ }
97
+ }
98
+ &[data-state-size="medium"] {
99
+ width: var(--radio-medium);
100
+ height: var(--radio-medium);
101
+ &::after {
102
+ width: calc(var(--radio-medium) - var(--radio-checked-blank-size));
103
+ height: calc(var(--radio-medium) - var(--radio-checked-blank-size));
104
+ }
105
+ }
106
+ &[data-state-size="large"] {
107
+ width: var(--radio-large);
108
+ height: var(--radio-large);
109
+ &::after {
110
+ width: calc(var(--radio-large) - var(--radio-checked-blank-size));
111
+ height: calc(var(--radio-large) - var(--radio-checked-blank-size));
112
+ }
113
+ }
114
+ &[data-state-skeletonize=true] {
115
+ @extend %skeleton-component;
116
+ border: none;
117
+ }
118
+ }
119
+ &[data-state-skeletonize=true] {
120
+ gap: 0.375rem;
121
+ }
122
+ }
123
+ .root-label {
124
+ padding: 0;
125
+ line-height: normal;
126
+ display: inline-flex;
127
+ align-items: center;
128
+ flex-direction: row;
129
+ justify-content: flex-start;
130
+ &[data-state-skeletonize=true] {
131
+ @extend %skeleton-component;
132
+ .label {
133
+ color: transparent;
134
+ }
135
+ }
136
+ .label {
137
+ font-size: 0.875rem;
138
+ text-indent: 0.375rem;
139
+ line-height: normal;
140
+ color: $font-color-default;
141
+ overflow: hidden;
142
+ text-overflow: ellipsis;
143
+ white-space: nowrap;
144
+ &[data-state-input-required=true]::after {
145
+ content: "*";
146
+ color: $font-color-default;
147
+ }
148
+ &[data-state-uppercase=true] {
149
+ text-transform: uppercase;
150
+ }
151
+ &[data-state-required-label=true] {
152
+ color: $error-color;
153
+ font-weight: 600;
154
+ font-size: 0.875rem;
155
+ margin-left: 1px;
156
+ }
157
+ &[data-state-read-only=true], &[data-state-disabled=true] {
158
+ pointer-events: none;
159
+ }
160
+ }
161
+ >button {
162
+ width: 20px;
163
+ height: auto;
164
+ margin: 0px;
165
+ margin-left: 3px;
166
+ }
167
+ }
168
+ .hint {
169
+ span {
170
+ display: inline-block;
171
+ width: 100%;
172
+ }
173
+ }
174
+ .error {
175
+ width: 100%;
176
+ color: $error-color;
177
+ margin-top: 5px;
178
+ font-size: 0.8125rem;
179
+ line-height: 0.8125rem;
180
+ &[data-state-skeletonize=true] {
181
+ @extend %skeleton-component;
182
+ color: transparent;
183
+ }
184
+ }
185
+ }
@@ -116,13 +116,18 @@ input::-webkit-inner-spin-button {
116
116
  .input {
117
117
  @extend %input-placeholder;
118
118
  @extend %component-fonts;
119
- flex-grow: 1;
119
+ flex: 1;
120
+ width: 100%;
121
+ height: 100%;
120
122
  padding: 6px;
121
123
  font-size: 0.875rem;
122
124
  text-indent: 0.375rem;
123
125
  line-height: 0.875rem;
124
126
  border: none;
125
127
  background-color: transparent;
128
+ overflow: hidden;
129
+ text-overflow: ellipsis;
130
+ white-space: nowrap;
126
131
  &[data-state-text-align=left] {
127
132
  text-align: left;
128
133
  }
@@ -304,11 +309,8 @@ input::-webkit-inner-spin-button {
304
309
 
305
310
  .select-field-listbox[aria-expanded=true] {
306
311
  z-index: auto;
307
- position: fixed;
308
312
  display: flex;
309
313
  flex-direction: column;
310
- height: auto;
311
- max-height: calc(34px * 15);
312
314
  margin: 5px 0px;
313
315
  border: 1px solid $component-border-color;
314
316
  animation: 0.3s ease-in 0s 1 slideDown, revealelement 0.3s forwards ease-in-out;
@@ -177,3 +177,9 @@
177
177
  overflow: hidden;
178
178
  }
179
179
  }
180
+
181
+ div:has(table.table-component).horizontal-scroll-container {
182
+ height: auto;
183
+ width: 100%;
184
+ overflow-x: scroll;
185
+ }
@@ -82,8 +82,6 @@ $dropdown-width: 38px;
82
82
  }
83
83
 
84
84
  .menu>.menuitem>.menubutton {
85
- white-space: nowrap;
86
- text-overflow: ellipsis;
87
85
  background: transparent;
88
86
  border: 0;
89
87
  width: 100%;
@@ -92,10 +90,16 @@ $dropdown-width: 38px;
92
90
  box-shadow: none !important;
93
91
 
94
92
  .button-container {
93
+ overflow: hidden;
95
94
  justify-content: flex-start;
96
95
  > svg {
97
96
  margin-right: 10px;
98
97
  }
98
+ .button-content {
99
+ overflow: hidden;
100
+ white-space: nowrap;
101
+ text-overflow: ellipsis;
102
+ }
99
103
  }
100
104
  }
101
105
 
@@ -1,5 +1,4 @@
1
1
  @import "colors.scss";
2
- @import "colors.scss";
3
2
  @import "effects.scss";
4
3
  @import "commons.scss";
5
4
  @import "fonts.scss";
@@ -12,7 +11,7 @@ input::-webkit-inner-spin-button {
12
11
  }
13
12
 
14
13
  /* Firefox */
15
- input[type=number] {
14
+ input[type="number"] {
16
15
  appearance: textfield;
17
16
  }
18
17
 
@@ -28,7 +27,7 @@ input[type=number] {
28
27
  align-items: center;
29
28
  flex-direction: row;
30
29
  justify-content: flex-start;
31
- &[data-state-skeletonize=true] {
30
+ &[data-state-skeletonize="true"] {
32
31
  @extend %skeleton-component;
33
32
  .label {
34
33
  color: transparent;
@@ -41,24 +40,21 @@ input[type=number] {
41
40
  overflow: hidden;
42
41
  text-overflow: ellipsis;
43
42
  white-space: nowrap;
44
- &[data-state-input-required=true]::after {
43
+ &[data-state-input-required="true"]::after {
45
44
  content: "*";
46
45
  color: $font-color-default;
47
46
  }
48
- &[data-state-uppercase=true] {
47
+ &[data-state-uppercase="true"] {
49
48
  text-transform: uppercase;
50
49
  }
51
- &[data-state-required-label=true] {
50
+ &[data-state-required-label="true"] {
52
51
  color: $error-color;
53
52
  font-weight: 600;
54
53
  font-size: 0.875rem;
55
54
  margin-left: 1px;
56
55
  }
57
- &[data-state-read-only=true], &[data-state-disabled=true] {
58
- pointer-events: none;
59
- }
60
56
  }
61
- >button {
57
+ > button {
62
58
  width: 20px;
63
59
  height: auto;
64
60
  margin: 0px !important;
@@ -77,26 +73,34 @@ input[type=number] {
77
73
  border-radius: 2px;
78
74
  border: 1px solid $component-border-color;
79
75
  background-color: $component-bg-default;
80
- &[data-state-skeletonize=true] {
76
+ &:has(textarea) {
77
+ height: auto;
78
+ }
79
+ &[data-state-skeletonize="true"] {
81
80
  @extend %skeleton-component;
82
81
  color: transparent;
83
82
  border: 1px solid transparent;
84
83
  background-color: transparent;
85
84
  }
86
- &:has(input[data-state-error=true]):has(input[data-state-skeletonize=false]) {
85
+ &:has(input[data-state-error="true"]):has(input[data-state-skeletonize="false"]),
86
+ &:has(textarea[data-state-error="true"]):has(textarea[data-state-skeletonize="false"]) {
87
87
  border-color: $input-error-border-color;
88
88
  background-color: $input-error-bg-color;
89
89
  }
90
- &:has(input[data-state-read-only=true]) {
91
- cursor: default;
92
- pointer-events: none;
90
+ &:has(input[data-state-read-only="true"]),
91
+ &:has(textarea[data-state-read-only="true"]) {
92
+ > input {
93
+ cursor: default;
94
+ }
93
95
  background-color: $input-read-only-bg-color;
94
96
  }
95
- &:has(input:focus) {
97
+ &:has(input:focus:not([data-state-read-only="true"])),
98
+ &:has(textarea:focus:not([data-state-read-only="true"])) {
96
99
  box-shadow: 0 3px 0 $component-selected-color;
97
- transition: box-shadow 250ms cubic-bezier(.19, .62, .58, .98) 100ms;
100
+ transition: box-shadow 250ms cubic-bezier(0.19, 0.62, 0.58, 0.98) 100ms;
98
101
  }
99
- &:has(input:disabled) {
102
+ &:has(input:disabled),
103
+ &:has(textarea:disabled) {
100
104
  color: $font-color-disabled;
101
105
  transition: color 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms;
102
106
  background-color: $input-disabled-bg-color;
@@ -104,34 +108,68 @@ input[type=number] {
104
108
  .input {
105
109
  @extend %input-placeholder;
106
110
  @extend %component-fonts;
107
- flex-grow: 1;
111
+ flex: 1;
112
+ height: 100%;
113
+ width: 100%;
108
114
  padding: 6px;
109
115
  font-size: 0.875rem;
110
116
  text-indent: 0.375rem;
111
117
  line-height: 0.875rem;
112
118
  border: none;
113
119
  background-color: transparent;
114
- &[data-state-text-align=left] {
120
+ overflow: hidden;
121
+ text-overflow: ellipsis;
122
+ white-space: nowrap;
123
+ &[data-state-text-align="left"] {
115
124
  text-align: left;
116
125
  }
117
- &[data-state-text-align=right] {
126
+ &[data-state-text-align="right"] {
118
127
  text-align: right;
119
128
  }
120
- &[data-state-text-align=center] {
129
+ &[data-state-text-align="center"] {
121
130
  text-align: center;
122
131
  }
123
- &[data-state-skeletonize=true] {
132
+ &[data-state-skeletonize="true"] {
124
133
  @extend %input-placeholder-transparent;
125
134
  }
126
135
  &:disabled {
127
136
  cursor: not-allowed;
128
137
  }
138
+ &:is(textarea) {
139
+ text-indent: 0rem;
140
+ min-height: 30px;
141
+ }
129
142
  }
130
143
  }
131
- .hint {
132
- span {
133
- display: inline-block;
134
- width: 100%;
144
+ .footer {
145
+ min-height: 0px;
146
+ margin-top: 5px;
147
+ overflow: hidden;
148
+ display: flex;
149
+ gap: 5px;
150
+ &[data-state-has-hint="true"][data-state-has-max-length="true"] {
151
+ justify-content: space-between;
152
+ }
153
+ &[data-state-has-hint="true"][data-state-has-max-length="false"] {
154
+ justify-content: start;
155
+ }
156
+ &[data-state-has-hint="false"][data-state-has-max-length="true"] {
157
+ justify-content: end;
158
+ }
159
+ &[data-state-has-hint="false"][data-state-has-max-length="false"] {
160
+ margin-top: 0px;
161
+ }
162
+ .max-length-counter {
163
+ text-align: right;
164
+ font-size: 0.75rem;
165
+ line-height: normal;
166
+ }
167
+ .hint {
168
+ margin: 0px;
169
+ span {
170
+ display: inline-block;
171
+ width: 100%;
172
+ }
135
173
  }
136
174
  }
137
175
  .error {
@@ -140,7 +178,7 @@ input[type=number] {
140
178
  margin-top: 5px;
141
179
  font-size: 0.8125rem;
142
180
  line-height: 0.8125rem;
143
- &[data-state-skeletonize=true] {
181
+ &[data-state-skeletonize="true"] {
144
182
  @extend %skeleton-component;
145
183
  color: transparent;
146
184
  }
@@ -9,8 +9,7 @@ var _icons = _interopRequireDefault(require("../../lib/icons"));
9
9
  require("../assets/styles/avatar.scss");
10
10
  var _withDropdown = _interopRequireDefault(require("../dropdown/withDropdown"));
11
11
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
13
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
12
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
14
13
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
15
14
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
16
15
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
@@ -23,8 +22,7 @@ const getClass = _ref => {
23
22
  disabled,
24
23
  size = 'default'
25
24
  } = _ref;
26
- return `avatar-component ${className}${disabled && '-disabled'}
27
- ${square && '-square'} ${size && `-${size}`}`;
25
+ return "avatar-component ".concat(className).concat(disabled && '-disabled', " \n ").concat(square && '-square', " ").concat(size && "-".concat(size));
28
26
  };
29
27
  const getIcon = (iconName, icon) => {
30
28
  if (icon) {
@@ -71,18 +69,18 @@ const Avatar = props => {
71
69
  if (targetRef) targetRef(r);
72
70
  dropdownRef.current = r;
73
71
  },
74
- className: `${getClass(props)} ${customClass}`,
72
+ className: "".concat(getClass(props), " ").concat(customClass),
75
73
  style: _objectSpread({
76
- width: `${width}`,
77
- height: `${height}`,
78
- backgroundColor: `${color}`,
79
- cursor: `${dropdown ? 'pointer' : 'normal'}`
74
+ width: "".concat(width),
75
+ height: "".concat(height),
76
+ backgroundColor: "".concat(color),
77
+ cursor: "".concat(dropdown ? 'pointer' : 'normal')
80
78
  }, style)
81
79
  }, (iconName || icon) && !src && getIcon(iconName, icon), src && /*#__PURE__*/_react.default.createElement("img", {
82
80
  className: "imgavatar",
83
81
  style: {
84
- width: `${width}`,
85
- height: `${height}`
82
+ width: "".concat(width),
83
+ height: "".concat(height)
86
84
  },
87
85
  src: src,
88
86
  alt: srcAlt
@@ -18,12 +18,12 @@ const Badge = props => {
18
18
  right = '-11px'
19
19
  } = props;
20
20
  return /*#__PURE__*/_react.default.createElement("div", {
21
- className: `badge-component ${customClass}`
21
+ className: "badge-component ".concat(customClass)
22
22
  }, children, /*#__PURE__*/_react.default.createElement("span", {
23
- className: `badge -${color} ${customClassForBadge}`,
23
+ className: "badge -".concat(color, " ").concat(customClassForBadge),
24
24
  style: {
25
- top: `${top}`,
26
- right: `${right}`
25
+ top: "".concat(top),
26
+ right: "".concat(right)
27
27
  }
28
28
  }, content));
29
29
  };
@@ -9,8 +9,7 @@ var _DefaultButton = _interopRequireDefault(require("./DefaultButton"));
9
9
  var _split_button = _interopRequireDefault(require("./split_button"));
10
10
  const _excluded = ["split"];
11
11
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
13
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
12
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
14
13
  function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
15
14
  function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
16
15
  const Button = _ref => {
@@ -17,7 +17,7 @@ const DangerButton = _ref => {
17
17
  } = _ref,
18
18
  rest = _objectWithoutProperties(_ref, _excluded);
19
19
  return /*#__PURE__*/_react.default.createElement(_Button.default, _extends({
20
- customClass: `-danger ${customClass}`
20
+ customClass: "-danger ".concat(customClass)
21
21
  }, rest));
22
22
  };
23
23
  var _default = exports.default = DangerButton;