@hazelcast/ui 4.0.1-canary.9 → 4.0.1

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 (274) hide show
  1. package/README.md +27 -175
  2. package/lib/components/Alert.js +3 -4
  3. package/lib/components/Alert.js.map +1 -1
  4. package/lib/components/Alert.module.css +111 -0
  5. package/lib/components/AppHeader/AppHeader.js +1 -1
  6. package/lib/components/AppHeader/AppHeader.js.map +1 -1
  7. package/lib/components/AppHeader/AppHeader.module.css +27 -0
  8. package/lib/components/AppHeader/AppHeaderLogo/AppHeaderLogo.js +1 -1
  9. package/lib/components/AppHeader/AppHeaderLogo/AppHeaderLogo.js.map +1 -1
  10. package/lib/components/AppHeader/AppHeaderLogo/{AppHeaderLogo.module.scss → AppHeaderLogo.module.css} +1 -4
  11. package/lib/components/AppHeader/AppHeaderMenu/AppHeaderMenu.js +1 -1
  12. package/lib/components/AppHeader/AppHeaderMenu/AppHeaderMenu.js.map +1 -1
  13. package/lib/components/AppHeader/AppHeaderMenu/AppHeaderMenu.module.css +18 -0
  14. package/lib/components/AppHeader/EnvironmentBadge/EnvironmentBadge.js +1 -1
  15. package/lib/components/AppHeader/EnvironmentBadge/EnvironmentBadge.js.map +1 -1
  16. package/lib/components/AppHeader/EnvironmentBadge/EnvironmentBadge.module.css +11 -0
  17. package/lib/components/AppHeader/SelectCluster/SelectCluster.js +1 -1
  18. package/lib/components/AppHeader/SelectCluster/SelectCluster.js.map +1 -1
  19. package/lib/components/AppHeader/SelectCluster/SelectCluster.module.css +75 -0
  20. package/lib/components/AppSidebar/AppSidebar.js +1 -1
  21. package/lib/components/AppSidebar/AppSidebar.js.map +1 -1
  22. package/lib/components/AppSidebar/{AppSidebar.module.scss → AppSidebar.module.css} +12 -18
  23. package/lib/components/AppSidebar/AppSidebarFavoriteButton/AppSidebarFavoriteButton.js +1 -1
  24. package/lib/components/AppSidebar/AppSidebarFavoriteButton/AppSidebarFavoriteButton.js.map +1 -1
  25. package/lib/components/AppSidebar/AppSidebarFavoriteButton/{AppSidebarFavoriteButton.module.scss → AppSidebarFavoriteButton.module.css} +3 -5
  26. package/lib/components/AppSidebar/AppSidebarFavorites/AppSidebarFavorites.js +1 -1
  27. package/lib/components/AppSidebar/AppSidebarFavorites/AppSidebarFavorites.js.map +1 -1
  28. package/lib/components/AppSidebar/AppSidebarFavorites/AppSidebarFavorites.module.css +11 -0
  29. package/lib/components/AppSidebar/AppSidebarItem/AppSidebarItem.js +1 -1
  30. package/lib/components/AppSidebar/AppSidebarItem/AppSidebarItem.js.map +1 -1
  31. package/lib/components/AppSidebar/AppSidebarItem/{AppSidebarItem.module.scss → AppSidebarItem.module.css} +18 -20
  32. package/lib/components/AppSidebar/AppSidebarMenuItemCounter/AppSidebarMenuItemCounter.js +1 -1
  33. package/lib/components/AppSidebar/AppSidebarMenuItemCounter/AppSidebarMenuItemCounter.js.map +1 -1
  34. package/lib/components/AppSidebar/AppSidebarMenuItemCounter/{AppSidebarMenuItemCounter.module.scss → AppSidebarMenuItemCounter.module.css} +5 -8
  35. package/lib/components/AppSidebar/AppSidebarSection/AppSidebarSection.js +1 -1
  36. package/lib/components/AppSidebar/AppSidebarSection/AppSidebarSection.js.map +1 -1
  37. package/lib/components/AppSidebar/AppSidebarSection/AppSidebarSection.module.css +53 -0
  38. package/lib/components/AppSidebar/AppSidebarSection/AppSidebarSectionExpandable.js +1 -1
  39. package/lib/components/AppSidebar/AppSidebarSection/AppSidebarSectionExpandable.js.map +1 -1
  40. package/lib/components/AutocompleteField.js +1 -1
  41. package/lib/components/AutocompleteField.js.map +1 -1
  42. package/lib/components/Badge.js +1 -1
  43. package/lib/components/Badge.js.map +1 -1
  44. package/lib/components/{Badge.module.scss → Badge.module.css} +7 -5
  45. package/lib/components/Button.d.ts +0 -2
  46. package/lib/components/Button.js +3 -7
  47. package/lib/components/Button.js.map +1 -1
  48. package/lib/components/Calendar/Calendar.d.ts +0 -2
  49. package/lib/components/Calendar/Calendar.js +3 -3
  50. package/lib/components/Calendar/Calendar.js.map +1 -1
  51. package/lib/components/Calendar/Calendar.module.css +321 -0
  52. package/lib/components/Calendar/CalendarRange.js +5 -5
  53. package/lib/components/Calendar/CalendarRange.js.map +1 -1
  54. package/lib/components/Calendar/CalendarRange.module.css +19 -0
  55. package/lib/components/Calendar/components/CalendarHeader.js +4 -4
  56. package/lib/components/Calendar/components/CalendarHeader.js.map +1 -1
  57. package/lib/components/Calendar/components/CalendarInput.d.ts +0 -2
  58. package/lib/components/Calendar/components/CalendarInput.js +1 -1
  59. package/lib/components/Calendar/components/CalendarInput.js.map +1 -1
  60. package/lib/components/Calendar/components/CalendarTime.js +2 -2
  61. package/lib/components/Calendar/components/CalendarTime.js.map +1 -1
  62. package/lib/components/Calendar/components/{CalendarTime.module.scss → CalendarTime.module.css} +16 -21
  63. package/lib/components/Card.js +1 -1
  64. package/lib/components/Card.js.map +1 -1
  65. package/lib/components/Card.module.css +97 -0
  66. package/lib/components/Carousel.js +3 -3
  67. package/lib/components/Carousel.js.map +1 -1
  68. package/lib/components/Carousel.module.css +53 -0
  69. package/lib/components/CenteredLoader.js +1 -1
  70. package/lib/components/CenteredLoader.js.map +1 -1
  71. package/lib/components/{CenteredLoader.module.scss → CenteredLoader.module.css} +1 -3
  72. package/lib/components/CircularProgressBar.js +1 -1
  73. package/lib/components/CircularProgressBar.js.map +1 -1
  74. package/lib/components/{CircularProgressBar.module.scss → CircularProgressBar.module.css} +8 -8
  75. package/lib/components/ContextMenu.js +1 -1
  76. package/lib/components/ContextMenu.js.map +1 -1
  77. package/lib/components/ContextMenu.module.css +34 -0
  78. package/lib/components/Dialog.js +1 -1
  79. package/lib/components/Dialog.js.map +1 -1
  80. package/lib/components/{Dialog.module.scss → Dialog.module.css} +11 -13
  81. package/lib/components/EmptyState.js +1 -1
  82. package/lib/components/EmptyState.js.map +1 -1
  83. package/lib/components/EmptyState.module.css +96 -0
  84. package/lib/components/Error.js +1 -1
  85. package/lib/components/Error.js.map +1 -1
  86. package/lib/components/Error.module.css +13 -0
  87. package/lib/components/FieldHeader.d.ts +0 -2
  88. package/lib/components/FieldHeader.js +3 -3
  89. package/lib/components/FieldHeader.js.map +1 -1
  90. package/lib/components/FieldHeader.module.css +22 -0
  91. package/lib/components/Help.js +3 -3
  92. package/lib/components/Help.js.map +1 -1
  93. package/lib/components/Help.module.css +7 -0
  94. package/lib/components/Icon.js +3 -3
  95. package/lib/components/Icon.js.map +1 -1
  96. package/lib/components/Icon.module.css +31 -0
  97. package/lib/components/IconButton.d.ts +1 -2
  98. package/lib/components/IconButton.js +3 -7
  99. package/lib/components/IconButton.js.map +1 -1
  100. package/lib/components/InteractiveList.js +2 -2
  101. package/lib/components/InteractiveList.js.map +1 -1
  102. package/lib/components/InteractiveList.module.css +3 -3
  103. package/lib/components/InteractiveListFormik.js +1 -2
  104. package/lib/components/InteractiveListFormik.js.map +1 -1
  105. package/lib/components/Label.js +1 -1
  106. package/lib/components/Label.js.map +1 -1
  107. package/lib/components/Label.module.css +13 -0
  108. package/lib/components/Link.js +1 -1
  109. package/lib/components/Link.js.map +1 -1
  110. package/lib/components/Link.module.css +65 -0
  111. package/lib/components/Loader.js +1 -1
  112. package/lib/components/Loader.js.map +1 -1
  113. package/lib/components/Loader.module.css +91 -0
  114. package/lib/components/Modal.js +2 -2
  115. package/lib/components/Modal.js.map +1 -1
  116. package/lib/components/Notification.js +3 -3
  117. package/lib/components/Notification.js.map +1 -1
  118. package/lib/components/Notification.module.css +64 -0
  119. package/lib/components/NumberBadge.js +1 -1
  120. package/lib/components/NumberBadge.js.map +1 -1
  121. package/lib/components/NumberBadge.module.css +14 -0
  122. package/lib/components/NumberField.js +3 -3
  123. package/lib/components/NumberField.js.map +1 -1
  124. package/lib/components/Overlay.js +1 -1
  125. package/lib/components/Overlay.js.map +1 -1
  126. package/lib/components/Overlay.module.css +112 -0
  127. package/lib/components/Pagination.js +1 -1
  128. package/lib/components/Pagination.js.map +1 -1
  129. package/lib/components/Pagination.module.css +118 -0
  130. package/lib/components/PasswordField.js +3 -3
  131. package/lib/components/PasswordField.js.map +1 -1
  132. package/lib/components/{PasswordField.module.scss → PasswordField.module.css} +2 -7
  133. package/lib/components/Popover.js +1 -1
  134. package/lib/components/Popover.js.map +1 -1
  135. package/lib/components/Popover.module.css +8 -0
  136. package/lib/components/Radio.js +1 -1
  137. package/lib/components/Radio.js.map +1 -1
  138. package/lib/components/Radio.module.css +122 -0
  139. package/lib/components/RadioGroup.js +1 -1
  140. package/lib/components/RadioGroup.js.map +1 -1
  141. package/lib/components/RadioGroup.module.css +31 -0
  142. package/lib/components/SegmentedControl.d.ts +1 -3
  143. package/lib/components/SegmentedControl.js +7 -5
  144. package/lib/components/SegmentedControl.js.map +1 -1
  145. package/lib/components/SegmentedControl.module.css +94 -0
  146. package/lib/components/Select/CheckableSelectField.js +2 -2
  147. package/lib/components/Select/CheckableSelectField.js.map +1 -1
  148. package/lib/components/Select/MultiSelectField.js +1 -1
  149. package/lib/components/Select/MultiSelectField.js.map +1 -1
  150. package/lib/components/Select/SelectField.js +1 -1
  151. package/lib/components/Select/SelectField.js.map +1 -1
  152. package/lib/components/Slider.js +1 -1
  153. package/lib/components/Slider.js.map +1 -1
  154. package/lib/components/Slider.module.css +315 -0
  155. package/lib/components/Table/Cell.js +1 -1
  156. package/lib/components/Table/Cell.js.map +1 -1
  157. package/lib/components/Table/{Cell.module.scss → Cell.module.css} +12 -15
  158. package/lib/components/Table/EnhancedRenderers.js +1 -1
  159. package/lib/components/Table/EnhancedRenderers.js.map +1 -1
  160. package/lib/components/Table/Header.js +1 -1
  161. package/lib/components/Table/Header.js.map +1 -1
  162. package/lib/components/Table/Header.module.css +129 -0
  163. package/lib/components/Table/Row.js +1 -1
  164. package/lib/components/Table/Row.js.map +1 -1
  165. package/lib/components/Table/Row.module.css +76 -0
  166. package/lib/components/Table/Table.d.ts +2 -1
  167. package/lib/components/Table/Table.js +7 -7
  168. package/lib/components/Table/Table.js.map +1 -1
  169. package/lib/components/Table/Table.module.css +28 -0
  170. package/lib/components/Table/TableContent.js +1 -1
  171. package/lib/components/Table/TableContent.js.map +1 -1
  172. package/lib/components/Table/features/columnsSelection/CellCopyablePopover.js +1 -1
  173. package/lib/components/Table/features/columnsSelection/CellCopyablePopover.js.map +1 -1
  174. package/lib/components/Table/features/columnsSelection/{CellCopyablePopover.module.scss → CellCopyablePopover.module.css} +1 -3
  175. package/lib/components/Table/features/columnsSelection/ContextMenu/ContextMenu.js +1 -1
  176. package/lib/components/Table/features/columnsSelection/ContextMenu/ContextMenu.js.map +1 -1
  177. package/lib/components/Terminal.js +1 -1
  178. package/lib/components/Terminal.js.map +1 -1
  179. package/lib/components/Terminal.module.css +123 -0
  180. package/lib/components/TextArea.d.ts +0 -2
  181. package/lib/components/TextArea.js +2 -2
  182. package/lib/components/TextArea.js.map +1 -1
  183. package/lib/components/TextField.d.ts +0 -2
  184. package/lib/components/TextField.js +5 -6
  185. package/lib/components/TextField.js.map +1 -1
  186. package/lib/components/TextField.module.css +4 -0
  187. package/lib/components/TimeField.js +3 -3
  188. package/lib/components/TimeField.js.map +1 -1
  189. package/lib/components/Toast/Toast.d.ts +15 -0
  190. package/lib/components/Toast/Toast.js +28 -0
  191. package/lib/components/Toast/Toast.js.map +1 -0
  192. package/lib/components/Toast/Toast.module.css +98 -0
  193. package/lib/components/Toast/index.d.ts +4 -0
  194. package/lib/components/Toast/index.js +5 -0
  195. package/lib/components/Toast/index.js.map +1 -0
  196. package/lib/components/TruncatedText.js +1 -1
  197. package/lib/components/TruncatedText.js.map +1 -1
  198. package/lib/components/TruncatedText.module.css +14 -0
  199. package/lib/index.d.ts +2 -1
  200. package/lib/index.js +1 -1
  201. package/lib/index.js.map +1 -1
  202. package/lib/old/Alert.d.ts +33 -0
  203. package/lib/old/Alert.js +51 -0
  204. package/lib/old/Alert.js.map +1 -0
  205. package/lib/old/AutocompleteField.js +1 -1
  206. package/lib/old/AutocompleteField.js.map +1 -1
  207. package/lib/old/Notification.d.ts +25 -0
  208. package/lib/old/Notification.js +39 -0
  209. package/lib/old/Notification.js.map +1 -0
  210. package/lib/old/NumberField.js +3 -3
  211. package/lib/old/NumberField.js.map +1 -1
  212. package/lib/old/PasswordField.d.ts +1 -2
  213. package/lib/old/PasswordField.js +1 -1
  214. package/lib/old/PasswordField.js.map +1 -1
  215. package/lib/old/Select/MultiSelectField.js +1 -3
  216. package/lib/old/Select/MultiSelectField.js.map +1 -1
  217. package/lib/old/Select/SelectField.js +1 -1
  218. package/lib/old/Select/SelectField.js.map +1 -1
  219. package/lib/old/TextArea.js +2 -2
  220. package/lib/old/TextArea.js.map +1 -1
  221. package/lib/old/TextField.js +2 -2
  222. package/lib/old/TextField.js.map +1 -1
  223. package/lib/{components → old}/Toast.js +3 -3
  224. package/lib/old/Toast.js.map +1 -0
  225. package/lib/old/index.d.ts +7 -0
  226. package/lib/old/index.js +4 -0
  227. package/lib/old/index.js.map +1 -1
  228. package/lib/utils/styleConstants.d.ts +13 -0
  229. package/lib/utils/styleConstants.js +14 -0
  230. package/lib/utils/styleConstants.js.map +1 -0
  231. package/package.json +2 -1
  232. package/styles/variables.css +24 -0
  233. package/lib/components/AppHeader/AppHeader.module.scss +0 -29
  234. package/lib/components/AppHeader/AppHeaderMenu/AppHeaderMenu.module.scss +0 -20
  235. package/lib/components/AppHeader/EnvironmentBadge/EnvironmentBadge.module.scss +0 -13
  236. package/lib/components/AppHeader/SelectCluster/SelectCluster.module.scss +0 -101
  237. package/lib/components/AppSidebar/AppSidebarFavorites/AppSidebarFavorites.module.scss +0 -13
  238. package/lib/components/AppSidebar/AppSidebarSection/AppSidebarSection.module.scss +0 -58
  239. package/lib/components/Calendar/Calendar.module.scss +0 -185
  240. package/lib/components/Calendar/CalendarRange.module.scss +0 -21
  241. package/lib/components/Card.module.scss +0 -92
  242. package/lib/components/Carousel.module.scss +0 -43
  243. package/lib/components/ContextMenu.module.scss +0 -37
  244. package/lib/components/EmptyState.module.scss +0 -87
  245. package/lib/components/Error.module.scss +0 -12
  246. package/lib/components/FieldHeader.module.scss +0 -20
  247. package/lib/components/Help.module.scss +0 -9
  248. package/lib/components/Icon.module.scss +0 -33
  249. package/lib/components/Label.module.scss +0 -12
  250. package/lib/components/Link.module.scss +0 -64
  251. package/lib/components/Loader.module.scss +0 -74
  252. package/lib/components/NumberBadge.module.scss +0 -13
  253. package/lib/components/Overlay.module.scss +0 -108
  254. package/lib/components/Pagination.module.scss +0 -117
  255. package/lib/components/Popover.module.scss +0 -12
  256. package/lib/components/Radio.module.scss +0 -112
  257. package/lib/components/RadioGroup.module.scss +0 -21
  258. package/lib/components/SegmentedControl.module.scss +0 -81
  259. package/lib/components/Slider.module.scss +0 -277
  260. package/lib/components/Table/Header.module.scss +0 -128
  261. package/lib/components/Table/Row.module.scss +0 -59
  262. package/lib/components/Table/Table.module.scss +0 -31
  263. package/lib/components/Terminal.module.scss +0 -109
  264. package/lib/components/Toast.js.map +0 -1
  265. package/lib/components/Tooltip.module.scss +0 -45
  266. package/lib/components/TruncatedText.module.scss +0 -9
  267. package/styles/constants/export.module.scss +0 -8
  268. /package/lib/components/Table/{TableContent.module.scss → TableContent.module.css} +0 -0
  269. /package/lib/components/Table/features/columnsSelection/ContextMenu/{ContextMenu.module.scss → ContextMenu.module.css} +0 -0
  270. /package/lib/components/{TimeField.module.scss → TimeField.module.css} +0 -0
  271. /package/lib/{components/Alert.module.scss → old/AlertLegacy.module.scss} +0 -0
  272. /package/lib/{components/Notification.module.scss → old/NotificationLegacy.module.scss} +0 -0
  273. /package/lib/{components → old}/Toast.d.ts +0 -0
  274. /package/lib/{components/Toast.module.scss → old/ToastLegacy.module.scss} +0 -0
@@ -1,101 +0,0 @@
1
- @use '../../../../styles/constants' as c;
2
- @use '../../../../styles/helpers' as h;
3
-
4
- $selectContainer: ':global .hz-select-field';
5
- $selectControl: ':global .hz-select-field__control';
6
- $selectInputContainer: ':global .hz-select-field__input-container';
7
- $selectValueContainer: ':global .hz-select-field__value-container';
8
- $selectTrailingNote: ':global .hz-select-field__trailing-note';
9
- $selectValue: ':global .hz-select-field__single-value';
10
- $selectMenuPortal: ':global .hz-select-field__menu-portal';
11
- $selectMenu: ':global .hz-select-field__menu';
12
- $selectMenuList: ':global .hz-select-field__menu-list';
13
- $selectMenuNotice: ':global .hz-select-field__menu-notice';
14
- $selectOption: ':global .hz-select-field__option';
15
- $selectGroup: ':global .hz-select-field__group';
16
- $selectGroupHeading: ':global .hz-select-field__group-heading';
17
- $selectFieldIndicators: ':global .hz-select-field__indicators';
18
-
19
- .select {
20
- width: 260px;
21
-
22
- &.disabled {
23
- #{$selectControl} {
24
- color: c.$colorTextSecondary;
25
- background-color: transparent;
26
-
27
- #{$selectValue},
28
- #{$selectTrailingNote},
29
- #{$selectFieldIndicators} svg {
30
- color: c.$colorTextSecondary;
31
- }
32
- }
33
- }
34
-
35
- #{$selectControl} {
36
- background: none;
37
- border-radius: c.$borderRadius;
38
- border: 1px solid c.$colorTextSecondary;
39
-
40
- #{$selectInputContainer},
41
- #{$selectValueContainer},
42
- #{$selectTrailingNote} {
43
- color: c.$colorNeutralLighter;
44
- }
45
- }
46
-
47
- #{$selectValue} {
48
- color: c.$colorNeutralLighter;
49
- }
50
-
51
- #{$selectFieldIndicators} {
52
- svg {
53
- color: c.$colorNeutralLighter;
54
- }
55
- }
56
-
57
- .selectIconLeftContainer {
58
- box-sizing: content-box;
59
-
60
- .selectIconLeft {
61
- color: c.$colorSuccess;
62
-
63
- &.disconnected {
64
- color: c.$colorError;
65
- }
66
-
67
- &.disabled {
68
- color: c.$colorTextSecondary;
69
- }
70
- }
71
- }
72
- }
73
-
74
- .menuPortal {
75
- #{$selectMenu} {
76
- border: none;
77
- background: c.$colorBrandSecondary;
78
- border-radius: 0 0 c.$borderRadius c.$borderRadius;
79
- }
80
-
81
- #{$selectOption} {
82
- &:active {
83
- background: none;
84
- }
85
-
86
- #{$selectValueContainer},
87
- #{$selectTrailingNote} {
88
- color: c.$colorNeutralLighter;
89
- }
90
-
91
- &--is-focused {
92
- background: c.$colorBrandAccent;
93
- box-shadow: none;
94
-
95
- #{$selectValueContainer},
96
- #{$selectTrailingNote} {
97
- color: c.$colorBrandText;
98
- }
99
- }
100
- }
101
- }
@@ -1,13 +0,0 @@
1
- @use '../../../../styles/constants' as c;
2
-
3
- .content {
4
- display: flex;
5
- flex-direction: column;
6
- gap: c.$grid;
7
- padding: c.$grid * 2 0;
8
- font-size: c.$fontSizeBodySmall;
9
- }
10
-
11
- .placeholder {
12
- padding: c.$grid * 2 c.$grid * 2.5 c.$grid * 2 c.$grid * 14;
13
- }
@@ -1,58 +0,0 @@
1
- @use '../../../../styles/constants' as c;
2
-
3
- $transitionLength: 125ms;
4
- $sideBarMenuSectionTransitionMaxHeight: 1000px;
5
-
6
- .root {
7
- display: flex;
8
- gap: c.$grid * 2;
9
- align-items: stretch;
10
- flex-direction: column;
11
- padding-top: c.$grid * 2;
12
- border-top: 1px solid transparent;
13
-
14
- h3 {
15
- margin: 0;
16
- color: c.$colorNeutralLight;
17
- font-size: c.$fontSizeBodySmall;
18
- }
19
- }
20
-
21
- .collapsed {
22
- border-color: c.$colorNeutralLight;
23
-
24
- h3 {
25
- display: none;
26
- }
27
- }
28
-
29
- .content {
30
- display: flex;
31
- flex-direction: column;
32
- gap: c.$grid;
33
- }
34
-
35
- .icon {
36
- margin-left: auto;
37
- color: c.$colorNeutralLighter;
38
- }
39
-
40
- .toggle {
41
- margin-bottom: c.$grid;
42
-
43
- .adornment {
44
- margin-right: -#{c.$grid * 1.5};
45
- }
46
- }
47
-
48
- .transitionLeave {
49
- max-height: 0;
50
- overflow: hidden;
51
- transition: max-height $transitionLength ease-out;
52
- }
53
-
54
- .transitionEnter {
55
- max-height: $sideBarMenuSectionTransitionMaxHeight;
56
- overflow: visible;
57
- transition: max-height $transitionLength ease-in;
58
- }
@@ -1,185 +0,0 @@
1
- @use '../../../styles/constants' as c;
2
- @use '../../../styles/helpers' as h;
3
-
4
- $inputMaxWidth: 300px;
5
- $inputMinWidth: 118px;
6
- $inputMinWidthWithTime: 183px;
7
- $inputPadding: c.$grid * 3;
8
-
9
- /*
10
- * Rest of styles
11
- */
12
- .container {
13
- width: $inputMaxWidth;
14
- min-width: $inputMinWidth;
15
-
16
- :global .react-datepicker-wrapper {
17
- width: 100%;
18
- }
19
-
20
- &.time {
21
- min-width: $inputMinWidthWithTime;
22
- }
23
- }
24
-
25
- .popper {
26
- :global(.hz-date-picker-popper-container) {
27
- /*
28
- * Internal styles override for those that cannot be
29
- * overridden using classNames composition
30
- */
31
- :global .react-datepicker-popper {
32
- z-index: c.$zIndex200;
33
- }
34
-
35
- :global .react-datepicker {
36
- padding: $inputPadding;
37
-
38
- :global .react-datepicker__header {
39
- margin: 0;
40
- padding: 0;
41
- background-color: c.$colorNeutralLighter;
42
- border: none;
43
- border-radius: 0;
44
-
45
- :global .react-datepicker__day-names {
46
- margin-bottom: c.$grid;
47
-
48
- :global .react-datepicker__day-name {
49
- width: c.$grid * 8;
50
- height: c.$grid * 8;
51
- text-align: center;
52
- vertical-align: middle;
53
- line-height: c.$grid * 8 !important;
54
- margin: 0;
55
- color: c.$colorText;
56
-
57
- @include c.typographyBodySmall('bold');
58
-
59
- &:not(:last-of-type) {
60
- margin-right: c.$grid * 2;
61
- }
62
- }
63
- }
64
- }
65
-
66
- :global .react-datepicker__month {
67
- /*
68
- * Note: The calendar part is asymmetrical by design
69
- * It's padded by 2 extra px from the left
70
- */
71
- margin: 0 0 0 (c.$grid * 0.5);
72
-
73
- :global .react-datepicker__week {
74
- &:not(:last-of-type) {
75
- margin-bottom: c.$grid * 2;
76
- }
77
-
78
- /*
79
- * Note:
80
- * We need to use :global override here, as 'renderCustomDay' only allows us to override
81
- * the child of this element, which does not allow us to touch the styles properly
82
- *
83
- * Source styles:
84
- * https://github.com/Hacker0x01/react-datepicker/blob/master/src/stylesheets/datepicker.scss#L395
85
- */
86
- :global .react-datepicker__day {
87
- border-radius: c.$grid;
88
- width: c.$grid * 8;
89
- height: c.$grid * 8;
90
- background-color: c.$colorNeutralWhite;
91
- color: c.$colorTextSecondary;
92
- text-align: center;
93
- vertical-align: middle;
94
- line-height: c.$grid * 8 !important;
95
- margin: 0;
96
-
97
- // Do not remove outline for high-contrast modes
98
- // https://stackoverflow.com/a/52616313
99
- outline: transparent solid c.$outlineWidth;
100
-
101
- @include c.typographyBodySmall;
102
-
103
- &--today {
104
- @include c.typographyBodySmall('bold');
105
- }
106
-
107
- &--in-selecting-range,
108
- &--in-range {
109
- // TODO: Improvised colour, consult with @Pawel
110
- background-color: c.$colorInfoLight;
111
- color: c.$colorNeutralWhite;
112
- }
113
-
114
- &--selected {
115
- background-color: c.$colorPrimaryLight;
116
- color: c.$colorNeutralWhite;
117
-
118
- // Note: Disable default browser outline, force our only on :focus
119
-
120
- @include c.typographyBodySmall('bold');
121
- }
122
-
123
- &--disabled {
124
- cursor: default;
125
- color: c.$colorNeutral;
126
- }
127
-
128
- &:focus-visible {
129
- @include h.outlineSimple;
130
- }
131
-
132
- &:not(:last-of-type) {
133
- margin-right: c.$grid * 2;
134
- }
135
- }
136
- }
137
- }
138
-
139
- :global .react-datepicker__input-time-container {
140
- margin: 0;
141
- padding: 0;
142
-
143
- :global .react-datepicker-time__caption {
144
- display: none;
145
- }
146
-
147
- :global .react-datepicker-time__input-container {
148
- margin: 0 c.$grid 0 c.$grid * 5;
149
-
150
- :global .react-datepicker-time__input {
151
- margin: 0;
152
-
153
- input {
154
- width: auto;
155
- }
156
- }
157
- }
158
- }
159
- }
160
-
161
- .calendar {
162
- display: flex;
163
- flex-direction: row;
164
- border: c.$borderWidth solid c.$colorNeutralLight;
165
- background-color: c.$colorNeutralLighter;
166
- box-sizing: border-box;
167
-
168
- .headerContainer {
169
- display: flex;
170
- flex-direction: row;
171
- align-items: center;
172
- justify-content: space-between;
173
-
174
- // Note: There is 1.5px in designs - also $separatorWidth is not semantically the best fit
175
- margin-bottom: c.$separatorWidth;
176
-
177
- .headerMonthAndYear {
178
- color: c.$colorTextSecondary;
179
-
180
- @include c.typographyBodySmall('bold');
181
- }
182
- }
183
- }
184
- }
185
- }
@@ -1,21 +0,0 @@
1
- @use '../../../styles/constants' as c;
2
-
3
- .container {
4
- display: flex;
5
- flex-direction: row;
6
- align-items: flex-end;
7
-
8
- &.vertical {
9
- flex-direction: column;
10
- gap: c.$grid * 4;
11
- }
12
-
13
- .arrowRight {
14
- color: c.$colorNeutralLight;
15
- margin: 0 c.$grid * 2 c.$grid * 2;
16
-
17
- &.small {
18
- margin-bottom: c.$grid * 0.75;
19
- }
20
- }
21
- }
@@ -1,92 +0,0 @@
1
- @use '../../styles/constants' as c;
2
-
3
- $padding: c.$grid * 5;
4
-
5
- .wrapper {
6
- background: c.$colorNeutralWhite;
7
-
8
- .heading {
9
- display: flex;
10
- align-items: center;
11
- margin-bottom: c.$grid * 5;
12
-
13
- .icon {
14
- margin-right: c.$grid * 2.5;
15
- }
16
-
17
- .title {
18
- margin: 0;
19
-
20
- &.space {
21
- margin-right: c.$grid * 2.5;
22
- }
23
- }
24
- }
25
-
26
- .separator {
27
- width: 100%;
28
- height: 1px;
29
- margin-top: c.$grid * 4;
30
- background: c.$colorNeutral;
31
- }
32
-
33
- .content {
34
- padding-top: c.$grid * 6;
35
- @include c.typographyBodyNormal;
36
- }
37
-
38
- .caption {
39
- display: flex;
40
- margin-bottom: $padding;
41
-
42
- & > * {
43
- flex: 1;
44
- }
45
- }
46
- }
47
-
48
- .bordered {
49
- padding: $padding;
50
- border-radius: c.$borderRadius;
51
- border: c.$borderWidth solid c.$colorNeutral;
52
-
53
- .heading {
54
- @include c.typographyH3;
55
-
56
- display: flex;
57
- align-items: center;
58
- margin: 0;
59
-
60
- .icon {
61
- margin-right: c.$grid * 2.5;
62
- }
63
-
64
- .title {
65
- margin: 0;
66
- font-size: c.$fontSizeBodyNormal !important;
67
- line-height: c.$lineHeightBodyNormal !important;
68
-
69
- &.space {
70
- margin-right: c.$grid * 2.5;
71
- }
72
- }
73
- }
74
-
75
- .content {
76
- @include c.typographyBodyNormal;
77
-
78
- margin-top: c.$grid * 4;
79
- padding: 0;
80
- }
81
-
82
- .caption {
83
- margin: (-$padding) (-$padding) $padding;
84
- }
85
- }
86
-
87
- .noTitle {
88
- .content {
89
- margin-top: 0;
90
- padding-top: 0;
91
- }
92
- }
@@ -1,43 +0,0 @@
1
- @use '../../styles/constants' as c;
2
- @use '../../styles/helpers' as h;
3
- @include h.withError;
4
-
5
- .wrapper {
6
- margin-left: c.$grid * 10;
7
- margin-right: c.$grid * 10;
8
- margin-bottom: c.$grid * 2;
9
- }
10
-
11
- .nextButtonClassName {
12
- left: c.$grid * 12;
13
- }
14
-
15
- .prevButtonClassName {
16
- right: c.$grid * 12;
17
- }
18
-
19
- .nextButtonClassName,
20
- .prevButtonClassName {
21
- padding: 0 !important;
22
- position: relative;
23
- height: 40px;
24
-
25
- &:focus-visible {
26
- @include h.outlineAround;
27
- }
28
- }
29
-
30
- .pagingDotsClassName {
31
- position: relative;
32
- top: c.$grid * 7;
33
- margin-left: c.$grid * 0.5;
34
- margin-right: c.$grid * 0.5;
35
- display: flex;
36
- justify-content: center;
37
- align-items: center;
38
- padding: c.$grid * 1.5;
39
-
40
- &:focus-visible {
41
- @include h.outlineAround;
42
- }
43
- }
@@ -1,37 +0,0 @@
1
- @use '../../styles/constants' as c;
2
- @use '../../styles/helpers' as h;
3
-
4
- .root {
5
- position: absolute;
6
- padding: c.$grid 0;
7
- background: c.$colorNeutralWhite;
8
- border-radius: c.$borderRadius;
9
- border: c.$borderWidth solid c.$colorNeutral;
10
- z-index: c.$zIndex2000;
11
- display: flex;
12
- flex-direction: column;
13
- }
14
-
15
- .item {
16
- flex-grow: 1;
17
- flex-shrink: 0;
18
- background: none;
19
- padding: c.$grid c.$grid * 4;
20
- margin: 0;
21
- cursor: pointer;
22
- border: none;
23
- text-align: left;
24
-
25
- &:focus-visible {
26
- @include h.outlineSimple;
27
- }
28
-
29
- &:hover {
30
- background: c.$colorNeutral;
31
- }
32
- }
33
-
34
- .hidden {
35
- top: -9999999999px;
36
- left: -999999999px;
37
- }
@@ -1,87 +0,0 @@
1
- @use '../../styles/constants' as c;
2
-
3
- .container {
4
- display: flex;
5
- flex-direction: column;
6
- justify-content: center;
7
- align-items: center;
8
- text-align: center;
9
-
10
- .content {
11
- .title {
12
- margin: c.$grid * 4.5 0 0 0;
13
-
14
- @include c.typographyBodyNormal('bold' !important);
15
- }
16
-
17
- .description {
18
- color: c.$colorTextSecondary;
19
- margin: c.$grid 0 0 0;
20
-
21
- @include c.typographyBodySmall;
22
- }
23
-
24
- .action {
25
- flex: 1;
26
- min-width: c.$emptyStateButtonMinWidthNormal;
27
- margin-top: c.$grid * 5;
28
- }
29
- }
30
-
31
- // Size
32
- &.large {
33
- .content {
34
- .title {
35
- margin-top: c.$grid * 5.5;
36
- }
37
-
38
- .description {
39
- margin-top: c.$grid * 2;
40
-
41
- @include c.typographyBodyNormal;
42
- }
43
-
44
- .action {
45
- min-width: c.$emptyStateButtonMinWidthLarge;
46
- margin-top: c.$grid * 6;
47
- }
48
- }
49
- }
50
-
51
- // Direction
52
- &.horizontal {
53
- flex: 1;
54
- flex-direction: row;
55
- text-align: start;
56
-
57
- .icon {
58
- flex: 0 0 auto;
59
- align-self: flex-start;
60
- }
61
-
62
- .content {
63
- display: flex;
64
- flex-direction: column;
65
- justify-content: flex-start;
66
- margin-left: c.$grid * 2;
67
-
68
- .title {
69
- margin: 0;
70
-
71
- @include c.typographyBodyNormal('bold' !important);
72
- }
73
-
74
- .description {
75
- margin-top: c.$grid;
76
-
77
- @include c.typographyBodySmall;
78
- }
79
-
80
- .action {
81
- align-self: flex-start;
82
- min-width: auto;
83
- margin: c.$grid 0 0 0;
84
- }
85
- }
86
- }
87
- }
@@ -1,12 +0,0 @@
1
- @use '../../styles/constants' as c;
2
-
3
- .container {
4
- @include c.typographyBodySmall;
5
-
6
- color: c.$colorError;
7
- display: none;
8
-
9
- &.hasError {
10
- display: block;
11
- }
12
- }
@@ -1,20 +0,0 @@
1
- @use '../../styles/constants' as c;
2
-
3
- .root {
4
- display: flex;
5
- margin-bottom: c.$grid;
6
- }
7
-
8
- .label {
9
- flex-shrink: 0;
10
- white-space: pre-wrap;
11
-
12
- &.small {
13
- @include c.typographyBodySmall;
14
- }
15
- }
16
-
17
- .helperText {
18
- flex-shrink: 0;
19
- margin-top: c.$grid * 0.5;
20
- }
@@ -1,9 +0,0 @@
1
- @use '../../styles/constants' as c;
2
-
3
- .container {
4
- display: inline-flex;
5
- vertical-align: middle;
6
- line-height: 1;
7
- padding-left: c.$grid;
8
- padding-right: c.$grid;
9
- }