@hazelcast/ui 4.0.1-canary.8 → 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 (284) 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.d.ts +1 -1
  101. package/lib/components/InteractiveList.js +4 -4
  102. package/lib/components/InteractiveList.js.map +1 -1
  103. package/lib/components/InteractiveList.module.css +59 -0
  104. package/lib/components/InteractiveListFormik.js +1 -2
  105. package/lib/components/InteractiveListFormik.js.map +1 -1
  106. package/lib/components/Label.js +1 -1
  107. package/lib/components/Label.js.map +1 -1
  108. package/lib/components/Label.module.css +13 -0
  109. package/lib/components/Link.js +1 -1
  110. package/lib/components/Link.js.map +1 -1
  111. package/lib/components/Link.module.css +65 -0
  112. package/lib/components/Loader.js +1 -1
  113. package/lib/components/Loader.js.map +1 -1
  114. package/lib/components/Loader.module.css +91 -0
  115. package/lib/components/Modal.js +2 -2
  116. package/lib/components/Modal.js.map +1 -1
  117. package/lib/components/Notification.js +3 -3
  118. package/lib/components/Notification.js.map +1 -1
  119. package/lib/components/Notification.module.css +64 -0
  120. package/lib/components/NumberBadge.js +1 -1
  121. package/lib/components/NumberBadge.js.map +1 -1
  122. package/lib/components/NumberBadge.module.css +14 -0
  123. package/lib/components/NumberField.js +3 -3
  124. package/lib/components/NumberField.js.map +1 -1
  125. package/lib/components/Overlay.js +1 -1
  126. package/lib/components/Overlay.js.map +1 -1
  127. package/lib/components/Overlay.module.css +112 -0
  128. package/lib/components/Pagination.js +1 -1
  129. package/lib/components/Pagination.js.map +1 -1
  130. package/lib/components/Pagination.module.css +118 -0
  131. package/lib/components/PasswordField.js +3 -3
  132. package/lib/components/PasswordField.js.map +1 -1
  133. package/lib/components/{PasswordField.module.scss → PasswordField.module.css} +2 -7
  134. package/lib/components/Popover.js +1 -1
  135. package/lib/components/Popover.js.map +1 -1
  136. package/lib/components/Popover.module.css +8 -0
  137. package/lib/components/Radio.js +1 -1
  138. package/lib/components/Radio.js.map +1 -1
  139. package/lib/components/Radio.module.css +122 -0
  140. package/lib/components/RadioGroup.js +1 -1
  141. package/lib/components/RadioGroup.js.map +1 -1
  142. package/lib/components/RadioGroup.module.css +31 -0
  143. package/lib/components/SegmentedControl.d.ts +1 -3
  144. package/lib/components/SegmentedControl.js +7 -5
  145. package/lib/components/SegmentedControl.js.map +1 -1
  146. package/lib/components/SegmentedControl.module.css +94 -0
  147. package/lib/components/Select/CheckableSelectField.js +2 -2
  148. package/lib/components/Select/CheckableSelectField.js.map +1 -1
  149. package/lib/components/Select/MultiSelectField.js +1 -1
  150. package/lib/components/Select/MultiSelectField.js.map +1 -1
  151. package/lib/components/Select/SelectField.js +1 -1
  152. package/lib/components/Select/SelectField.js.map +1 -1
  153. package/lib/components/Slider.js +1 -1
  154. package/lib/components/Slider.js.map +1 -1
  155. package/lib/components/Slider.module.css +315 -0
  156. package/lib/components/Table/Cell.js +1 -1
  157. package/lib/components/Table/Cell.js.map +1 -1
  158. package/lib/components/Table/{Cell.module.scss → Cell.module.css} +12 -15
  159. package/lib/components/Table/EnhancedRenderers.js +1 -1
  160. package/lib/components/Table/EnhancedRenderers.js.map +1 -1
  161. package/lib/components/Table/Header.js +1 -1
  162. package/lib/components/Table/Header.js.map +1 -1
  163. package/lib/components/Table/Header.module.css +129 -0
  164. package/lib/components/Table/Row.js +1 -1
  165. package/lib/components/Table/Row.js.map +1 -1
  166. package/lib/components/Table/Row.module.css +76 -0
  167. package/lib/components/Table/Table.d.ts +2 -1
  168. package/lib/components/Table/Table.js +7 -7
  169. package/lib/components/Table/Table.js.map +1 -1
  170. package/lib/components/Table/Table.module.css +28 -0
  171. package/lib/components/Table/TableContent.js +1 -1
  172. package/lib/components/Table/TableContent.js.map +1 -1
  173. package/lib/components/Table/features/columnsSelection/CellCopyablePopover.js +1 -1
  174. package/lib/components/Table/features/columnsSelection/CellCopyablePopover.js.map +1 -1
  175. package/lib/components/Table/features/columnsSelection/{CellCopyablePopover.module.scss → CellCopyablePopover.module.css} +1 -3
  176. package/lib/components/Table/features/columnsSelection/ContextMenu/ContextMenu.js +1 -1
  177. package/lib/components/Table/features/columnsSelection/ContextMenu/ContextMenu.js.map +1 -1
  178. package/lib/components/Tabs/Tab.module.css +20 -11
  179. package/lib/components/Tabs/TabList.module.css +3 -6
  180. package/lib/components/Terminal.js +1 -1
  181. package/lib/components/Terminal.js.map +1 -1
  182. package/lib/components/Terminal.module.css +123 -0
  183. package/lib/components/TextArea.d.ts +0 -2
  184. package/lib/components/TextArea.js +2 -2
  185. package/lib/components/TextArea.js.map +1 -1
  186. package/lib/components/TextField.d.ts +0 -2
  187. package/lib/components/TextField.js +5 -6
  188. package/lib/components/TextField.js.map +1 -1
  189. package/lib/components/TextField.module.css +4 -0
  190. package/lib/components/TimeField.js +3 -3
  191. package/lib/components/TimeField.js.map +1 -1
  192. package/lib/components/Toast/Toast.d.ts +15 -0
  193. package/lib/components/Toast/Toast.js +28 -0
  194. package/lib/components/Toast/Toast.js.map +1 -0
  195. package/lib/components/Toast/Toast.module.css +98 -0
  196. package/lib/components/Toast/index.d.ts +4 -0
  197. package/lib/components/Toast/index.js +5 -0
  198. package/lib/components/Toast/index.js.map +1 -0
  199. package/lib/components/TruncatedText.js +1 -1
  200. package/lib/components/TruncatedText.js.map +1 -1
  201. package/lib/components/TruncatedText.module.css +14 -0
  202. package/lib/index.d.ts +2 -1
  203. package/lib/index.js +1 -1
  204. package/lib/index.js.map +1 -1
  205. package/lib/old/Alert.d.ts +33 -0
  206. package/lib/old/Alert.js +51 -0
  207. package/lib/old/Alert.js.map +1 -0
  208. package/lib/old/AutocompleteField.js +1 -1
  209. package/lib/old/AutocompleteField.js.map +1 -1
  210. package/lib/old/InteractiveList.d.ts +34 -0
  211. package/lib/old/InteractiveList.js +43 -0
  212. package/lib/old/InteractiveList.js.map +1 -0
  213. package/lib/old/InteractiveListFormik.d.ts +10 -0
  214. package/lib/old/InteractiveListFormik.js +75 -0
  215. package/lib/old/InteractiveListFormik.js.map +1 -0
  216. package/lib/old/Notification.d.ts +25 -0
  217. package/lib/old/Notification.js +39 -0
  218. package/lib/old/Notification.js.map +1 -0
  219. package/lib/old/NumberField.js +3 -3
  220. package/lib/old/NumberField.js.map +1 -1
  221. package/lib/old/PasswordField.d.ts +1 -2
  222. package/lib/old/PasswordField.js +1 -1
  223. package/lib/old/PasswordField.js.map +1 -1
  224. package/lib/old/Select/MultiSelectField.js +1 -3
  225. package/lib/old/Select/MultiSelectField.js.map +1 -1
  226. package/lib/old/Select/SelectField.js +1 -1
  227. package/lib/old/Select/SelectField.js.map +1 -1
  228. package/lib/old/TextArea.js +2 -2
  229. package/lib/old/TextArea.js.map +1 -1
  230. package/lib/old/TextField.js +2 -2
  231. package/lib/old/TextField.js.map +1 -1
  232. package/lib/{components → old}/Toast.js +3 -3
  233. package/lib/old/Toast.js.map +1 -0
  234. package/lib/old/index.d.ts +11 -0
  235. package/lib/old/index.js +6 -0
  236. package/lib/old/index.js.map +1 -1
  237. package/lib/utils/styleConstants.d.ts +13 -0
  238. package/lib/utils/styleConstants.js +14 -0
  239. package/lib/utils/styleConstants.js.map +1 -0
  240. package/package.json +2 -1
  241. package/styles/variables.css +24 -0
  242. package/lib/components/AppHeader/AppHeader.module.scss +0 -29
  243. package/lib/components/AppHeader/AppHeaderMenu/AppHeaderMenu.module.scss +0 -20
  244. package/lib/components/AppHeader/EnvironmentBadge/EnvironmentBadge.module.scss +0 -13
  245. package/lib/components/AppHeader/SelectCluster/SelectCluster.module.scss +0 -101
  246. package/lib/components/AppSidebar/AppSidebarFavorites/AppSidebarFavorites.module.scss +0 -13
  247. package/lib/components/AppSidebar/AppSidebarSection/AppSidebarSection.module.scss +0 -58
  248. package/lib/components/Calendar/Calendar.module.scss +0 -185
  249. package/lib/components/Calendar/CalendarRange.module.scss +0 -21
  250. package/lib/components/Card.module.scss +0 -92
  251. package/lib/components/Carousel.module.scss +0 -43
  252. package/lib/components/ContextMenu.module.scss +0 -37
  253. package/lib/components/EmptyState.module.scss +0 -87
  254. package/lib/components/Error.module.scss +0 -12
  255. package/lib/components/FieldHeader.module.scss +0 -20
  256. package/lib/components/Help.module.scss +0 -9
  257. package/lib/components/Icon.module.scss +0 -33
  258. package/lib/components/Label.module.scss +0 -12
  259. package/lib/components/Link.module.scss +0 -64
  260. package/lib/components/Loader.module.scss +0 -74
  261. package/lib/components/NumberBadge.module.scss +0 -13
  262. package/lib/components/Overlay.module.scss +0 -108
  263. package/lib/components/Pagination.module.scss +0 -117
  264. package/lib/components/Popover.module.scss +0 -12
  265. package/lib/components/Radio.module.scss +0 -112
  266. package/lib/components/RadioGroup.module.scss +0 -21
  267. package/lib/components/SegmentedControl.module.scss +0 -81
  268. package/lib/components/Slider.module.scss +0 -277
  269. package/lib/components/Table/Header.module.scss +0 -128
  270. package/lib/components/Table/Row.module.scss +0 -59
  271. package/lib/components/Table/Table.module.scss +0 -31
  272. package/lib/components/Terminal.module.scss +0 -109
  273. package/lib/components/Toast.js.map +0 -1
  274. package/lib/components/Tooltip.module.scss +0 -45
  275. package/lib/components/TruncatedText.module.scss +0 -9
  276. package/styles/constants/export.module.scss +0 -8
  277. /package/lib/components/Table/{TableContent.module.scss → TableContent.module.css} +0 -0
  278. /package/lib/components/Table/features/columnsSelection/ContextMenu/{ContextMenu.module.scss → ContextMenu.module.css} +0 -0
  279. /package/lib/components/{TimeField.module.scss → TimeField.module.css} +0 -0
  280. /package/lib/{components/Alert.module.scss → old/AlertLegacy.module.scss} +0 -0
  281. /package/lib/{components/InteractiveList.module.scss → old/InteractiveListLegacy.module.scss} +0 -0
  282. /package/lib/{components/Notification.module.scss → old/NotificationLegacy.module.scss} +0 -0
  283. /package/lib/{components → old}/Toast.d.ts +0 -0
  284. /package/lib/{components/Toast.module.scss → old/ToastLegacy.module.scss} +0 -0
@@ -46,7 +46,7 @@ const TextFieldInternal = (props, ref) => {
46
46
  [styles.withIcon]: inputIcon,
47
47
  [styles.empty]: value === undefined,
48
48
  }, className) },
49
- React.createElement(FieldHeader, { id: id, size: size, label: label, variant: variant, helperText: helperText, showAriaLabel: showAriaLabel, labelClassName: labelClassName, "data-test": `${dataTest}-header`, helperTextTooltipWordBreak: helperTextTooltipWordBreak }),
49
+ React.createElement(FieldHeader, { id: id, label: label, variant: variant, helperText: helperText, showAriaLabel: showAriaLabel, labelClassName: labelClassName, "data-test": `${dataTest}-header`, helperTextTooltipWordBreak: helperTextTooltipWordBreak }),
50
50
  React.createElement("div", { className: styles.inputBlock },
51
51
  React.createElement("div", { ref: containerRef, className: cn(styles.inputContainer, inputContainerClassName) },
52
52
  React.createElement("input", { type: type, id: id, ref: mergedRef, value: value !== null && value !== void 0 ? value : '', name: name, onChange: onChange, onBlur: onBlur, onFocus: onFocus, readOnly: readOnly, onKeyDown: onKeyDown, onClick: onClick, "aria-label": showAriaLabel ? ariaLabel || label : undefined, "aria-invalid": !!error, "aria-required": required, "aria-describedby": helperText && helpTooltipId(id), "aria-errormessage": error && errorId(id), disabled: disabled, placeholder: placeholder, className: cn(inputClassName, {
@@ -54,7 +54,7 @@ const TextFieldInternal = (props, ref) => {
54
54
  }), ...htmlAttrs }),
55
55
  React.createElement("div", { className: cn(styles.borderOverlay, inputBorderOverlayClassName) }),
56
56
  inputIcon && (React.createElement(Icon, { icon: inputIcon, ariaLabel: label, containerClassName: cn(styles.inputIconContainer, styles.inputLeftIconContainer), className: styles.inputIcon, size: "small" })),
57
- clearable && !disabled && isNotEmpty && (React.createElement(IconButton, { icon: X, variant: "ghost", size: size === 'small' ? 'small' : 'regular', ariaLabel: "Clear field", onClick: handleClear, className: styles.clearButton, "data-test": dataTest ? `${dataTest}-clear` : undefined })),
57
+ clearable && !disabled && isNotEmpty && (React.createElement(IconButton, { icon: X, variant: "ghost", ariaLabel: "Clear field", onClick: handleClear, className: styles.clearButton, "data-test": dataTest ? `${dataTest}-clear` : undefined })),
58
58
  inputContainerChild,
59
59
  inputTrailingIcon && inputTrailingIconLabel && (React.createElement(Icon, { icon: inputTrailingIcon, ariaLabel: inputTrailingIconLabel, containerClassName: cn(styles.inputIconContainer, styles.inputTrailingIconContainer), className: styles.inputIconTrailing, size: iconSize }))),
60
60
  children),
@@ -1 +1 @@
1
- {"version":3,"file":"TextField.js","sourceRoot":"","sources":["../../src/old/TextField.tsx"],"names":[],"mappings":"AAAA,uDAAuD;AACvD,OAAO,KAAK,EAAE,EAQZ,UAAU,EACV,MAAM,GACP,MAAM,OAAO,CAAA;AACd,OAAO,EAAE,MAAM,YAAY,CAAA;AAC3B,OAAO,EAAoB,CAAC,EAAE,MAAM,eAAe,CAAA;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAClC,OAAO,SAAS,MAAM,kBAAkB,CAAA;AAGxC,OAAO,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAA;AAC3D,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAA;AACzC,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AACpD,OAAO,EAAE,WAAW,EAAoB,MAAM,2BAA2B,CAAA;AACzE,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAIrD,OAAO,MAAM,MAAM,+BAA+B,CAAA;AAoDlD;;;;;;;;;;;;;GAaG;AACH,MAAM,iBAAiB,GAAG,CAA2B,KAAwB,EAAE,GAA2B,EAAE,EAAE;IAC5G,MAAM,EACJ,WAAW,EAAE,QAAQ,GAAG,YAAY,EACpC,SAAS,EAC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M,CAAC,iBAAiB,EACnC,IAAI,EAAE,QAAQ,GACd,CACH,CACG;YACL,QAAQ,CACL;QACN,oBAAC,KAAK,IACJ,SAAS,QACT,OAAO,EAAE,EAAE,EACX,KAAK,EAAE,KAAK,eACD,GAAG,QAAQ,QAAQ,EAC9B,gBAAgB,EAAE,qBAAqB,EACvC,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,cAAc,EAAE,cAAc,CAAC,GACpD,CACE,CACP,CAAA;AACH,CAAC,CAAA;AAED,MAAM,gBAAgB,GAAG,UAAU,CAAC,iBAAiB,CAAC,CAAA;AAEtD,MAAM,CAAC,MAAM,SAAS,GAAG,CAA2B,EAAE,IAAI,EAAE,GAAG,KAAK,EAAwD,EAAE,EAAE,CAAC,CAC/H,oBAAC,gBAAgB,IAAC,GAAG,EAAE,IAAI,KAAM,KAAK,GAAI,CAC3C,CAAA"}
@@ -4,8 +4,8 @@ import { AlertTriangle, CheckCircle, AlertCircle, Info, X } from 'react-feather'
4
4
  import useKey from 'react-use/lib/useKey';
5
5
  import { escKeyFilterPredicate } from '../utils/keyboard';
6
6
  import { IconButton } from './IconButton';
7
- import { Icon } from './Icon';
8
- import styles from './Toast.module.scss';
7
+ import { Icon } from '../components/Icon';
8
+ import styles from './ToastLegacy.module.scss';
9
9
  export const ToastIcon = {
10
10
  success: {
11
11
  icon: CheckCircle,
@@ -51,6 +51,6 @@ export const Toast = ({ type, content, dismissableByEscKey = true, closeToast, c
51
51
  }, className) },
52
52
  React.createElement(Icon, { "data-test": `${dataTest}-icon`, ariaLabel: ariaLabel, icon: icon, className: styles.icon }),
53
53
  React.createElement("div", { "data-test": `${dataTest}-content`, className: styles.content }, content),
54
- closeToast && (React.createElement(IconButton, { "data-test": `${dataTest}-close`, variant: "ghost", className: styles.close, ariaLabel: "Close icon", icon: X, onClick: closeToast }))));
54
+ closeToast && (React.createElement(IconButton, { "data-test": `${dataTest}-close`, kind: "transparent", className: styles.close, ariaLabel: "Close icon", icon: X, onClick: closeToast }))));
55
55
  };
56
56
  //# sourceMappingURL=Toast.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Toast.js","sourceRoot":"","sources":["../../src/old/Toast.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAiB,WAAW,EAAE,MAAM,OAAO,CAAA;AACzD,OAAO,EAAE,MAAM,YAAY,CAAA;AAC3B,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,WAAW,EAAE,IAAI,EAAoB,CAAC,EAAE,MAAM,eAAe,CAAA;AAClG,OAAO,MAAM,MAAM,sBAAsB,CAAA;AAGzC,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAA;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAA;AAEzC,OAAO,MAAM,MAAM,2BAA2B,CAAA;AAS9C,MAAM,CAAC,MAAM,SAAS,GAAgD;IACpE,OAAO,EAAE;QACP,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,mBAAmB;KAC/B;IACD,IAAI,EAAE;QACJ,IAAI,EAAE,IAAI;QACV,SAAS,EAAE,kBAAkB;KAC9B;IACD,OAAO,EAAE;QACP,IAAI,EAAE,aAAa;QACnB,SAAS,EAAE,uBAAuB;KACnC;IACD,QAAQ,EAAE;QACR,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,2BAA2B;KACvC;CACF,CAAA;AAUD;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,KAAK,GAAmB,CAAC,EACpC,IAAI,EACJ,OAAO,EACP,mBAAmB,GAAG,IAAI,EAC1B,UAAU,EACV,SAAS,EACT,WAAW,EAAE,QAAQ,GAAG,OAAO,GAChC,EAAE,EAAE;IACH,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,SAAS,CAAC,IAAI,CAAC,CAAA;IAE3C,MAAM,UAAU,GAAG,WAAW,CAC5B,CAAC,WAA0B,EAAE,EAAE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getSelectedOptionFromValue, highlightOptionText } from './AutocompleteField';
44
44
  export type { AutocompleteFieldProps, AutocompleteFieldOption, RenderOptionFunction } from './AutocompleteField';
45
45
  export { AutocompleteFieldFormik } from './AutocompleteFieldFormik';
46
+ export { InteractiveListItem } from './InteractiveList';
47
+ export { InteractiveListFormik } from './InteractiveListFormik';
48
+ export type { InteractiveListInputRef, InteractiveListExtraProps } from './InteractiveList';
49
+ export type { InteractiveListFormikProps } from './InteractiveListFormik';
46
50
  export { TabContext, TabContextProvider, TabContextProviderControlled, useTabContext, TabList, Tab, TabPanel } from './Tabs';
47
51
  export type { TabContextValue, TabContextProviderProps, TabContextProviderControlledProps, TabListProps, TabProps, TabCommonProps, AnchorTabProps, ButtonTabProps, TabPanelProps, } from './Tabs';
48
52
  export { Modal, setAppElement } from './Modal';
49
53
  export type { ModalProps, ModalActionProps } from './Modal';
50
54
  export { SimpleTable } from './SimpleTable';
51
55
  export type { SimpleTableProps } from './SimpleTable';
56
+ export { Toast } from './Toast';
57
+ export type { ToastProps, ToastType, ToastIconDescriptor } from './Toast';
58
+ export { ToastIcon } from './Toast';
59
+ export { Alert } from './Alert';
60
+ export type { AlertProps, AlertAction, AlertActionButton, AlertActionLink } from './Alert';
61
+ export { Notification, NotificationIcon } from './Notification';
62
+ export type { NotificationProps, NotificationType, NotificationIconDescriptor } from './Notification';
package/lib/old/index.js CHANGED
@@ -24,7 +24,13 @@ export { CheckableSelectFieldFormik } from './Select/CheckableSelectFieldFormik'
24
24
  export { getMenuContainer, getOptionsMap } from './Select/helpers';
25
25
  export { AutocompleteField, getSelectedOptionFromValue, highlightOptionText } from './AutocompleteField';
26
26
  export { AutocompleteFieldFormik } from './AutocompleteFieldFormik';
27
+ export { InteractiveListItem } from './InteractiveList';
28
+ export { InteractiveListFormik } from './InteractiveListFormik';
27
29
  export { TabContext, TabContextProvider, TabContextProviderControlled, useTabContext, TabList, Tab, TabPanel } from './Tabs';
28
30
  export { Modal, setAppElement } from './Modal';
29
31
  export { SimpleTable } from './SimpleTable';
32
+ export { Toast } from './Toast';
33
+ export { ToastIcon } from './Toast';
34
+ export { Alert } from './Alert';
35
+ export { Notification, NotificationIcon } from './Notification';
30
36
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/old/index.ts"],"names":[],"mappings":"AAAA,4DAA4D;AAC5D,yDAAyD;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEjC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAE7C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAcjC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAErC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAEjD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEvC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAEnD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAErC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAEjD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAE3C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAEvD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAE/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAE3D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAQlD,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAE9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAE5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAA;AACxE,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BAAgB,CAAA"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Design token values needed in JS/TS logic, not just CSS.
3
+ * Keep in sync with the corresponding --hive-* custom properties in styles/variables.css.
4
+ */
5
+ export declare const styleConstants: {
6
+ readonly colorPrimary: "#2160c0";
7
+ readonly colorSuccess: "#85da66";
8
+ readonly iconStrokeWidth: "1.5px";
9
+ readonly iconStrokeWidthBold: "3px";
10
+ readonly tableColumnMinWidth: 60;
11
+ readonly tableColumnWidth: 170;
12
+ readonly tableColumnMaxWidth: 600;
13
+ };
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Design token values needed in JS/TS logic, not just CSS.
3
+ * Keep in sync with the corresponding --hive-* custom properties in styles/variables.css.
4
+ */
5
+ export const styleConstants = {
6
+ colorPrimary: '#2160c0',
7
+ colorSuccess: '#85da66',
8
+ iconStrokeWidth: '1.5px',
9
+ iconStrokeWidthBold: '3px',
10
+ tableColumnMinWidth: 60,
11
+ tableColumnWidth: 170,
12
+ tableColumnMaxWidth: 600,
13
+ };
14
+ //# sourceMappingURL=styleConstants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styleConstants.js","sourceRoot":"","sources":["../../src/utils/styleConstants.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,YAAY,EAAE,SAAS;IACvB,YAAY,EAAE,SAAS;IACvB,eAAe,EAAE,OAAO;IACxB,mBAAmB,EAAE,KAAK;IAC1B,mBAAmB,EAAE,EAAE;IACvB,gBAAgB,EAAE,GAAG;IACrB,mBAAmB,EAAE,GAAG;CAChB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hazelcast/ui",
3
- "version": "4.0.1-canary.8",
3
+ "version": "4.0.1",
4
4
  "description": "Hazelcast design system components and utilities",
5
5
  "homepage": "https://github.com/hazelcast/hive#readme",
6
6
  "bugs": {
@@ -49,6 +49,7 @@
49
49
  "@floating-ui/react": "^0.26.28",
50
50
  "@headlessui/react": "^2.2.0",
51
51
  "@icons-pack/react-simple-icons": "^12.0.0",
52
+ "@radix-ui/react-toast": "^1.2.17",
52
53
  "@radix-ui/react-tooltip": "^1.2.8",
53
54
  "@tanstack/react-table": "^8.21.2",
54
55
  "@types/react-modal": "3.16.3",
@@ -32,6 +32,7 @@
32
32
  --hive-color-error: #dc084b;
33
33
  --hive-color-error-light: #efb1c9;
34
34
  --hive-color-error-dark: #8f001d;
35
+
35
36
  --hive-color-text: #061827;
36
37
  --hive-color-text-secondary: #707482;
37
38
  --hive-color-text-subdued: #707482;
@@ -120,6 +121,29 @@
120
121
  --hive-table-column-min-width: 60px;
121
122
  --hive-table-column-width: 170px;
122
123
  --hive-table-column-max-width: 600px;
124
+ --hive-error-height: 1.1875rem; /* $grid * 4.75 */
125
+ --hive-empty-state-button-min-width-normal: 120px;
126
+ --hive-empty-state-button-min-width-large: 140px;
127
+ --hive-separator-width: 1px;
128
+ --hive-slide-track-height: 0.5rem; /* $grid * 2 */
129
+ --hive-slider-track-border-radius: 0.5rem; /* $grid * 2 */
130
+ --hive-slider-thumb-border-size: 0.375rem; /* $grid * 1.5 */
131
+ --hive-slider-thumb-hover-border-size: 1px;
132
+ --hive-slider-thumb-shadow-size: 1px;
133
+ --hive-slider-thumb-shadow-blur: 0.25rem; /* $grid */
134
+ --hive-slider-fill-border-size: 1px;
135
+
136
+ /* ─── Motion ──────────────────────────────────────────────────── */
137
+
138
+ --hive-duration-loader: 1.6s;
139
+
140
+ /* ─── Stacking ────────────────────────────────────────────────── */
141
+
142
+ --hive-z-index-0: 0;
143
+ --hive-z-index-100: 1;
144
+ --hive-z-index-200: 2;
145
+ --hive-z-index-1000: 10;
146
+ --hive-z-index-2000: 20;
123
147
 
124
148
  /* ─── Typography ──────────────────────────────────────────────── */
125
149
 
@@ -1,29 +0,0 @@
1
- @use '../../../styles/constants' as c;
2
-
3
- .root {
4
- background: c.$colorBrandSecondary;
5
- color: c.$colorNeutralLighter;
6
- display: flex;
7
- align-items: center;
8
- height: 59px;
9
- box-sizing: border-box;
10
- flex-direction: row;
11
- font-size: c.$fontSizeBodySmall;
12
- width: 100%;
13
- padding: 0 c.$grid * 5;
14
- overflow-x: auto;
15
- flex-shrink: 0;
16
- gap: c.$grid * 7.5;
17
- }
18
-
19
- .name {
20
- color: c.$colorBrandPrimary;
21
- font-weight: 600;
22
- }
23
-
24
- .aside {
25
- display: flex;
26
- align-items: center;
27
- margin-left: auto;
28
- gap: c.$grid * 4;
29
- }
@@ -1,20 +0,0 @@
1
- @use '../../../../styles/constants' as c;
2
-
3
- .root {
4
- display: flex;
5
- align-items: center;
6
- }
7
-
8
- .separator {
9
- border-left: 1px solid c.$colorNeutralLight;
10
- }
11
-
12
- .content {
13
- padding: c.$grid * 2;
14
- color: c.$colorNeutralLighter;
15
- background: c.$colorBrandSecondary;
16
- display: flex;
17
- flex-direction: column;
18
- align-items: start;
19
- gap: c.$grid * 2;
20
- }
@@ -1,13 +0,0 @@
1
- @use '../../../../styles/constants' as c;
2
-
3
- .root {
4
- display: inline-flex;
5
- align-items: center;
6
- gap: c.$grid * 2;
7
- color: #000;
8
- background: c.$colorError;
9
- border-radius: c.$grid * 3.5;
10
- padding: 0 c.$grid * 3;
11
- height: c.$grid * 7;
12
- text-transform: capitalize;
13
- }
@@ -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
- }