@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.
- package/README.md +27 -175
- package/lib/components/Alert.js +3 -4
- package/lib/components/Alert.js.map +1 -1
- package/lib/components/Alert.module.css +111 -0
- package/lib/components/AppHeader/AppHeader.js +1 -1
- package/lib/components/AppHeader/AppHeader.js.map +1 -1
- package/lib/components/AppHeader/AppHeader.module.css +27 -0
- package/lib/components/AppHeader/AppHeaderLogo/AppHeaderLogo.js +1 -1
- package/lib/components/AppHeader/AppHeaderLogo/AppHeaderLogo.js.map +1 -1
- package/lib/components/AppHeader/AppHeaderLogo/{AppHeaderLogo.module.scss → AppHeaderLogo.module.css} +1 -4
- package/lib/components/AppHeader/AppHeaderMenu/AppHeaderMenu.js +1 -1
- package/lib/components/AppHeader/AppHeaderMenu/AppHeaderMenu.js.map +1 -1
- package/lib/components/AppHeader/AppHeaderMenu/AppHeaderMenu.module.css +18 -0
- package/lib/components/AppHeader/EnvironmentBadge/EnvironmentBadge.js +1 -1
- package/lib/components/AppHeader/EnvironmentBadge/EnvironmentBadge.js.map +1 -1
- package/lib/components/AppHeader/EnvironmentBadge/EnvironmentBadge.module.css +11 -0
- package/lib/components/AppHeader/SelectCluster/SelectCluster.js +1 -1
- package/lib/components/AppHeader/SelectCluster/SelectCluster.js.map +1 -1
- package/lib/components/AppHeader/SelectCluster/SelectCluster.module.css +75 -0
- package/lib/components/AppSidebar/AppSidebar.js +1 -1
- package/lib/components/AppSidebar/AppSidebar.js.map +1 -1
- package/lib/components/AppSidebar/{AppSidebar.module.scss → AppSidebar.module.css} +12 -18
- package/lib/components/AppSidebar/AppSidebarFavoriteButton/AppSidebarFavoriteButton.js +1 -1
- package/lib/components/AppSidebar/AppSidebarFavoriteButton/AppSidebarFavoriteButton.js.map +1 -1
- package/lib/components/AppSidebar/AppSidebarFavoriteButton/{AppSidebarFavoriteButton.module.scss → AppSidebarFavoriteButton.module.css} +3 -5
- package/lib/components/AppSidebar/AppSidebarFavorites/AppSidebarFavorites.js +1 -1
- package/lib/components/AppSidebar/AppSidebarFavorites/AppSidebarFavorites.js.map +1 -1
- package/lib/components/AppSidebar/AppSidebarFavorites/AppSidebarFavorites.module.css +11 -0
- package/lib/components/AppSidebar/AppSidebarItem/AppSidebarItem.js +1 -1
- package/lib/components/AppSidebar/AppSidebarItem/AppSidebarItem.js.map +1 -1
- package/lib/components/AppSidebar/AppSidebarItem/{AppSidebarItem.module.scss → AppSidebarItem.module.css} +18 -20
- package/lib/components/AppSidebar/AppSidebarMenuItemCounter/AppSidebarMenuItemCounter.js +1 -1
- package/lib/components/AppSidebar/AppSidebarMenuItemCounter/AppSidebarMenuItemCounter.js.map +1 -1
- package/lib/components/AppSidebar/AppSidebarMenuItemCounter/{AppSidebarMenuItemCounter.module.scss → AppSidebarMenuItemCounter.module.css} +5 -8
- package/lib/components/AppSidebar/AppSidebarSection/AppSidebarSection.js +1 -1
- package/lib/components/AppSidebar/AppSidebarSection/AppSidebarSection.js.map +1 -1
- package/lib/components/AppSidebar/AppSidebarSection/AppSidebarSection.module.css +53 -0
- package/lib/components/AppSidebar/AppSidebarSection/AppSidebarSectionExpandable.js +1 -1
- package/lib/components/AppSidebar/AppSidebarSection/AppSidebarSectionExpandable.js.map +1 -1
- package/lib/components/AutocompleteField.js +1 -1
- package/lib/components/AutocompleteField.js.map +1 -1
- package/lib/components/Badge.js +1 -1
- package/lib/components/Badge.js.map +1 -1
- package/lib/components/{Badge.module.scss → Badge.module.css} +7 -5
- package/lib/components/Button.d.ts +0 -2
- package/lib/components/Button.js +3 -7
- package/lib/components/Button.js.map +1 -1
- package/lib/components/Calendar/Calendar.d.ts +0 -2
- package/lib/components/Calendar/Calendar.js +3 -3
- package/lib/components/Calendar/Calendar.js.map +1 -1
- package/lib/components/Calendar/Calendar.module.css +321 -0
- package/lib/components/Calendar/CalendarRange.js +5 -5
- package/lib/components/Calendar/CalendarRange.js.map +1 -1
- package/lib/components/Calendar/CalendarRange.module.css +19 -0
- package/lib/components/Calendar/components/CalendarHeader.js +4 -4
- package/lib/components/Calendar/components/CalendarHeader.js.map +1 -1
- package/lib/components/Calendar/components/CalendarInput.d.ts +0 -2
- package/lib/components/Calendar/components/CalendarInput.js +1 -1
- package/lib/components/Calendar/components/CalendarInput.js.map +1 -1
- package/lib/components/Calendar/components/CalendarTime.js +2 -2
- package/lib/components/Calendar/components/CalendarTime.js.map +1 -1
- package/lib/components/Calendar/components/{CalendarTime.module.scss → CalendarTime.module.css} +16 -21
- package/lib/components/Card.js +1 -1
- package/lib/components/Card.js.map +1 -1
- package/lib/components/Card.module.css +97 -0
- package/lib/components/Carousel.js +3 -3
- package/lib/components/Carousel.js.map +1 -1
- package/lib/components/Carousel.module.css +53 -0
- package/lib/components/CenteredLoader.js +1 -1
- package/lib/components/CenteredLoader.js.map +1 -1
- package/lib/components/{CenteredLoader.module.scss → CenteredLoader.module.css} +1 -3
- package/lib/components/CircularProgressBar.js +1 -1
- package/lib/components/CircularProgressBar.js.map +1 -1
- package/lib/components/{CircularProgressBar.module.scss → CircularProgressBar.module.css} +8 -8
- package/lib/components/ContextMenu.js +1 -1
- package/lib/components/ContextMenu.js.map +1 -1
- package/lib/components/ContextMenu.module.css +34 -0
- package/lib/components/Dialog.js +1 -1
- package/lib/components/Dialog.js.map +1 -1
- package/lib/components/{Dialog.module.scss → Dialog.module.css} +11 -13
- package/lib/components/EmptyState.js +1 -1
- package/lib/components/EmptyState.js.map +1 -1
- package/lib/components/EmptyState.module.css +96 -0
- package/lib/components/Error.js +1 -1
- package/lib/components/Error.js.map +1 -1
- package/lib/components/Error.module.css +13 -0
- package/lib/components/FieldHeader.d.ts +0 -2
- package/lib/components/FieldHeader.js +3 -3
- package/lib/components/FieldHeader.js.map +1 -1
- package/lib/components/FieldHeader.module.css +22 -0
- package/lib/components/Help.js +3 -3
- package/lib/components/Help.js.map +1 -1
- package/lib/components/Help.module.css +7 -0
- package/lib/components/Icon.js +3 -3
- package/lib/components/Icon.js.map +1 -1
- package/lib/components/Icon.module.css +31 -0
- package/lib/components/IconButton.d.ts +1 -2
- package/lib/components/IconButton.js +3 -7
- package/lib/components/IconButton.js.map +1 -1
- package/lib/components/InteractiveList.js +2 -2
- package/lib/components/InteractiveList.js.map +1 -1
- package/lib/components/InteractiveList.module.css +3 -3
- package/lib/components/InteractiveListFormik.js +1 -2
- package/lib/components/InteractiveListFormik.js.map +1 -1
- package/lib/components/Label.js +1 -1
- package/lib/components/Label.js.map +1 -1
- package/lib/components/Label.module.css +13 -0
- package/lib/components/Link.js +1 -1
- package/lib/components/Link.js.map +1 -1
- package/lib/components/Link.module.css +65 -0
- package/lib/components/Loader.js +1 -1
- package/lib/components/Loader.js.map +1 -1
- package/lib/components/Loader.module.css +91 -0
- package/lib/components/Modal.js +2 -2
- package/lib/components/Modal.js.map +1 -1
- package/lib/components/Notification.js +3 -3
- package/lib/components/Notification.js.map +1 -1
- package/lib/components/Notification.module.css +64 -0
- package/lib/components/NumberBadge.js +1 -1
- package/lib/components/NumberBadge.js.map +1 -1
- package/lib/components/NumberBadge.module.css +14 -0
- package/lib/components/NumberField.js +3 -3
- package/lib/components/NumberField.js.map +1 -1
- package/lib/components/Overlay.js +1 -1
- package/lib/components/Overlay.js.map +1 -1
- package/lib/components/Overlay.module.css +112 -0
- package/lib/components/Pagination.js +1 -1
- package/lib/components/Pagination.js.map +1 -1
- package/lib/components/Pagination.module.css +118 -0
- package/lib/components/PasswordField.js +3 -3
- package/lib/components/PasswordField.js.map +1 -1
- package/lib/components/{PasswordField.module.scss → PasswordField.module.css} +2 -7
- package/lib/components/Popover.js +1 -1
- package/lib/components/Popover.js.map +1 -1
- package/lib/components/Popover.module.css +8 -0
- package/lib/components/Radio.js +1 -1
- package/lib/components/Radio.js.map +1 -1
- package/lib/components/Radio.module.css +122 -0
- package/lib/components/RadioGroup.js +1 -1
- package/lib/components/RadioGroup.js.map +1 -1
- package/lib/components/RadioGroup.module.css +31 -0
- package/lib/components/SegmentedControl.d.ts +1 -3
- package/lib/components/SegmentedControl.js +7 -5
- package/lib/components/SegmentedControl.js.map +1 -1
- package/lib/components/SegmentedControl.module.css +94 -0
- package/lib/components/Select/CheckableSelectField.js +2 -2
- package/lib/components/Select/CheckableSelectField.js.map +1 -1
- package/lib/components/Select/MultiSelectField.js +1 -1
- package/lib/components/Select/MultiSelectField.js.map +1 -1
- package/lib/components/Select/SelectField.js +1 -1
- package/lib/components/Select/SelectField.js.map +1 -1
- package/lib/components/Slider.js +1 -1
- package/lib/components/Slider.js.map +1 -1
- package/lib/components/Slider.module.css +315 -0
- package/lib/components/Table/Cell.js +1 -1
- package/lib/components/Table/Cell.js.map +1 -1
- package/lib/components/Table/{Cell.module.scss → Cell.module.css} +12 -15
- package/lib/components/Table/EnhancedRenderers.js +1 -1
- package/lib/components/Table/EnhancedRenderers.js.map +1 -1
- package/lib/components/Table/Header.js +1 -1
- package/lib/components/Table/Header.js.map +1 -1
- package/lib/components/Table/Header.module.css +129 -0
- package/lib/components/Table/Row.js +1 -1
- package/lib/components/Table/Row.js.map +1 -1
- package/lib/components/Table/Row.module.css +76 -0
- package/lib/components/Table/Table.d.ts +2 -1
- package/lib/components/Table/Table.js +7 -7
- package/lib/components/Table/Table.js.map +1 -1
- package/lib/components/Table/Table.module.css +28 -0
- package/lib/components/Table/TableContent.js +1 -1
- package/lib/components/Table/TableContent.js.map +1 -1
- package/lib/components/Table/features/columnsSelection/CellCopyablePopover.js +1 -1
- package/lib/components/Table/features/columnsSelection/CellCopyablePopover.js.map +1 -1
- package/lib/components/Table/features/columnsSelection/{CellCopyablePopover.module.scss → CellCopyablePopover.module.css} +1 -3
- package/lib/components/Table/features/columnsSelection/ContextMenu/ContextMenu.js +1 -1
- package/lib/components/Table/features/columnsSelection/ContextMenu/ContextMenu.js.map +1 -1
- package/lib/components/Terminal.js +1 -1
- package/lib/components/Terminal.js.map +1 -1
- package/lib/components/Terminal.module.css +123 -0
- package/lib/components/TextArea.d.ts +0 -2
- package/lib/components/TextArea.js +2 -2
- package/lib/components/TextArea.js.map +1 -1
- package/lib/components/TextField.d.ts +0 -2
- package/lib/components/TextField.js +5 -6
- package/lib/components/TextField.js.map +1 -1
- package/lib/components/TextField.module.css +4 -0
- package/lib/components/TimeField.js +3 -3
- package/lib/components/TimeField.js.map +1 -1
- package/lib/components/Toast/Toast.d.ts +15 -0
- package/lib/components/Toast/Toast.js +28 -0
- package/lib/components/Toast/Toast.js.map +1 -0
- package/lib/components/Toast/Toast.module.css +98 -0
- package/lib/components/Toast/index.d.ts +4 -0
- package/lib/components/Toast/index.js +5 -0
- package/lib/components/Toast/index.js.map +1 -0
- package/lib/components/TruncatedText.js +1 -1
- package/lib/components/TruncatedText.js.map +1 -1
- package/lib/components/TruncatedText.module.css +14 -0
- package/lib/index.d.ts +2 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/old/Alert.d.ts +33 -0
- package/lib/old/Alert.js +51 -0
- package/lib/old/Alert.js.map +1 -0
- package/lib/old/AutocompleteField.js +1 -1
- package/lib/old/AutocompleteField.js.map +1 -1
- package/lib/old/Notification.d.ts +25 -0
- package/lib/old/Notification.js +39 -0
- package/lib/old/Notification.js.map +1 -0
- package/lib/old/NumberField.js +3 -3
- package/lib/old/NumberField.js.map +1 -1
- package/lib/old/PasswordField.d.ts +1 -2
- package/lib/old/PasswordField.js +1 -1
- package/lib/old/PasswordField.js.map +1 -1
- package/lib/old/Select/MultiSelectField.js +1 -3
- package/lib/old/Select/MultiSelectField.js.map +1 -1
- package/lib/old/Select/SelectField.js +1 -1
- package/lib/old/Select/SelectField.js.map +1 -1
- package/lib/old/TextArea.js +2 -2
- package/lib/old/TextArea.js.map +1 -1
- package/lib/old/TextField.js +2 -2
- package/lib/old/TextField.js.map +1 -1
- package/lib/{components → old}/Toast.js +3 -3
- package/lib/old/Toast.js.map +1 -0
- package/lib/old/index.d.ts +7 -0
- package/lib/old/index.js +4 -0
- package/lib/old/index.js.map +1 -1
- package/lib/utils/styleConstants.d.ts +13 -0
- package/lib/utils/styleConstants.js +14 -0
- package/lib/utils/styleConstants.js.map +1 -0
- package/package.json +2 -1
- package/styles/variables.css +24 -0
- package/lib/components/AppHeader/AppHeader.module.scss +0 -29
- package/lib/components/AppHeader/AppHeaderMenu/AppHeaderMenu.module.scss +0 -20
- package/lib/components/AppHeader/EnvironmentBadge/EnvironmentBadge.module.scss +0 -13
- package/lib/components/AppHeader/SelectCluster/SelectCluster.module.scss +0 -101
- package/lib/components/AppSidebar/AppSidebarFavorites/AppSidebarFavorites.module.scss +0 -13
- package/lib/components/AppSidebar/AppSidebarSection/AppSidebarSection.module.scss +0 -58
- package/lib/components/Calendar/Calendar.module.scss +0 -185
- package/lib/components/Calendar/CalendarRange.module.scss +0 -21
- package/lib/components/Card.module.scss +0 -92
- package/lib/components/Carousel.module.scss +0 -43
- package/lib/components/ContextMenu.module.scss +0 -37
- package/lib/components/EmptyState.module.scss +0 -87
- package/lib/components/Error.module.scss +0 -12
- package/lib/components/FieldHeader.module.scss +0 -20
- package/lib/components/Help.module.scss +0 -9
- package/lib/components/Icon.module.scss +0 -33
- package/lib/components/Label.module.scss +0 -12
- package/lib/components/Link.module.scss +0 -64
- package/lib/components/Loader.module.scss +0 -74
- package/lib/components/NumberBadge.module.scss +0 -13
- package/lib/components/Overlay.module.scss +0 -108
- package/lib/components/Pagination.module.scss +0 -117
- package/lib/components/Popover.module.scss +0 -12
- package/lib/components/Radio.module.scss +0 -112
- package/lib/components/RadioGroup.module.scss +0 -21
- package/lib/components/SegmentedControl.module.scss +0 -81
- package/lib/components/Slider.module.scss +0 -277
- package/lib/components/Table/Header.module.scss +0 -128
- package/lib/components/Table/Row.module.scss +0 -59
- package/lib/components/Table/Table.module.scss +0 -31
- package/lib/components/Terminal.module.scss +0 -109
- package/lib/components/Toast.js.map +0 -1
- package/lib/components/Tooltip.module.scss +0 -45
- package/lib/components/TruncatedText.module.scss +0 -9
- package/styles/constants/export.module.scss +0 -8
- /package/lib/components/Table/{TableContent.module.scss → TableContent.module.css} +0 -0
- /package/lib/components/Table/features/columnsSelection/ContextMenu/{ContextMenu.module.scss → ContextMenu.module.css} +0 -0
- /package/lib/components/{TimeField.module.scss → TimeField.module.css} +0 -0
- /package/lib/{components/Alert.module.scss → old/AlertLegacy.module.scss} +0 -0
- /package/lib/{components/Notification.module.scss → old/NotificationLegacy.module.scss} +0 -0
- /package/lib/{components → old}/Toast.d.ts +0 -0
- /package/lib/{components/Toast.module.scss → old/ToastLegacy.module.scss} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Calendar.js","sourceRoot":"","sources":["../../../src/components/Calendar/Calendar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAyB,OAAO,EAAE,MAAM,OAAO,CAAA;AAC7D,OAAO,EAAE,MAAM,YAAY,CAAA;AAC3B,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AACxC,OAAO,UAA+B,MAAM,kBAAkB,CAAA;AAG9D,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAA;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AACxD,OAAO,EAAE,kBAAkB,EAAmB,MAAM,oBAAoB,CAAA;AAExE,OAAO,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"Calendar.js","sourceRoot":"","sources":["../../../src/components/Calendar/Calendar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAyB,OAAO,EAAE,MAAM,OAAO,CAAA;AAC7D,OAAO,EAAE,MAAM,YAAY,CAAA;AAC3B,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AACxC,OAAO,UAA+B,MAAM,kBAAkB,CAAA;AAG9D,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAA;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AACxD,OAAO,EAAE,kBAAkB,EAAmB,MAAM,oBAAoB,CAAA;AAExE,OAAO,MAAM,MAAM,uBAAuB,CAAA;AAE1C,MAAM,WAAW,GAAG,YAAY,CAAA;AAChC,MAAM,WAAW,GAAG,OAAO,CAAA;AAE3B,MAAM,uBAAuB,GAC3B,CAAC,SAA6B,EAAE,QAAiB,EAAM,EAAE,CACzD,CAAC,EAAE,QAAQ,EAA8B,EAAE,EAAE;IAC3C,MAAM,OAAO,GAAG,CACd,6BAAK,SAAS,EAAE,MAAM,CAAC,MAAM;QAC3B,0CAAe,8BAA8B,EAAC,SAAS,EAAC,iCAAiC,IACtF,QAAQ,CACL,CACF,CACP,CAAA;IAED,IAAI,QAAQ,EAAE,CAAC;QACb,OAAO,OAAO,CAAA;IAChB,CAAC;IAED,OAAO,SAAS,IAAI,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,CAAA;AACxE,CAAC,CAAA;AAgBH,MAAM,CAAC,MAAM,QAAQ,GAAsB,CAAC,EAC1C,iBAAiB,EACjB,SAAS,EACT,kBAAkB,EAClB,IAAI,EACJ,UAAU,EACV,cAAc,EACd,YAAY,EACZ,aAAa,EACb,SAAS,GAAG,MAAM,EAClB,QAAQ,GAAG,KAAK,EAChB,UAAU,GAAG,WAAW,EACxB,UAAU,GAAG,WAAW,EACxB,WAAW,EAAE,QAAQ,GAAG,UAAU,EAClC,GAAG,KAAK,EACT,EAAE,EAAE;IACH,MAAM,eAAe,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,uBAAuB,CAAC,kBAAkB,CAAC,SAAS,CAAC,EAAE,QAAQ,CAAC,EAAE,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC,CAAA;IAE9H,OAAO,CACL,6BACE,SAAS,EAAE,EAAE,CACX,MAAM,CAAC,SAAS,EAChB;YACE,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,aAAa;SAC7B,EACD,kBAAkB,CACnB;QAED,oBAAC,UAAU,OACL,KAAK,eACE,QAAQ,EACnB,iBAAiB,EAAE,EAAE,CAAC,MAAM,CAAC,QAAQ,EAAE,iBAAiB,CAAC,EACzD,SAAS,EAAE,SAAS,EACpB,WAAW,EAAE,oBAAC,aAAa,iBAAY,GAAG,QAAQ,QAAQ,EAAE,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,cAAc,GAAI,EAC5G,eAAe,EAAE,oBAAC,YAAY,iBAAY,GAAG,QAAQ,OAAO,GAAI,EAChE,UAAU,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,UAAU,IAAI,UAAU,EAAE,CAAC,CAAC,CAAC,UAAU,EACtE,QAAQ,EAAE,YAAY,EACtB,eAAe,EAAE,eAAe,EAChC,kBAAkB,EAAE,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE,CAAC,oBAAC,cAAc,OAAK,KAAK,GAAI,EACnE,QAAQ,EAAE,IAAI,EACd,UAAU,EAAE,UAAU,EACtB,eAAe,EAAE,KAAK,EACtB,aAAa,EAAE,aAAa,GAC5B,CACE,CACP,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -0,0 +1,321 @@
|
|
|
1
|
+
.container {
|
|
2
|
+
width: 300px;
|
|
3
|
+
min-width: 118px;
|
|
4
|
+
|
|
5
|
+
&.time {
|
|
6
|
+
min-width: 183px;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.container :global .react-datepicker-wrapper {
|
|
11
|
+
width: 100%;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/*
|
|
15
|
+
* Internal styles override for those that cannot be
|
|
16
|
+
* overridden using classNames composition
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
.popper :global(.hz-date-picker-popper-container) :global .react-datepicker-popper {
|
|
20
|
+
z-index: var(--hive-z-index-200);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.popper :global(.hz-date-picker-popper-container) :global .react-datepicker {
|
|
24
|
+
padding: calc(var(--hive-grid) * 3);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.popper :global(.hz-date-picker-popper-container) :global .react-datepicker :global .react-datepicker__header {
|
|
28
|
+
margin: 0;
|
|
29
|
+
padding: 0;
|
|
30
|
+
background-color: var(--hive-color-neutral-lighter);
|
|
31
|
+
border: none;
|
|
32
|
+
border-radius: 0;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.popper
|
|
36
|
+
:global(.hz-date-picker-popper-container)
|
|
37
|
+
:global
|
|
38
|
+
.react-datepicker
|
|
39
|
+
:global
|
|
40
|
+
.react-datepicker__header
|
|
41
|
+
:global
|
|
42
|
+
.react-datepicker__day-names {
|
|
43
|
+
margin-bottom: var(--hive-grid);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.popper
|
|
47
|
+
:global(.hz-date-picker-popper-container)
|
|
48
|
+
:global
|
|
49
|
+
.react-datepicker
|
|
50
|
+
:global
|
|
51
|
+
.react-datepicker__header
|
|
52
|
+
:global
|
|
53
|
+
.react-datepicker__day-names
|
|
54
|
+
:global
|
|
55
|
+
.react-datepicker__day-name {
|
|
56
|
+
width: calc(var(--hive-grid) * 8);
|
|
57
|
+
height: calc(var(--hive-grid) * 8);
|
|
58
|
+
text-align: center;
|
|
59
|
+
vertical-align: middle;
|
|
60
|
+
line-height: calc(var(--hive-grid) * 8) !important;
|
|
61
|
+
margin: 0;
|
|
62
|
+
color: var(--hive-color-text);
|
|
63
|
+
font-family: var(--hive-font-family-text);
|
|
64
|
+
font-size: var(--hive-font-size-body-small);
|
|
65
|
+
letter-spacing: var(--hive-letter-spacing-body-small);
|
|
66
|
+
line-height: var(--hive-line-height-body-small);
|
|
67
|
+
font-weight: var(--hive-font-weight-text-bold);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.popper
|
|
71
|
+
:global(.hz-date-picker-popper-container)
|
|
72
|
+
:global
|
|
73
|
+
.react-datepicker
|
|
74
|
+
:global
|
|
75
|
+
.react-datepicker__header
|
|
76
|
+
:global
|
|
77
|
+
.react-datepicker__day-names
|
|
78
|
+
:global
|
|
79
|
+
.react-datepicker__day-name:not(:last-of-type) {
|
|
80
|
+
margin-right: calc(var(--hive-grid) * 2);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/*
|
|
84
|
+
* Note: The calendar part is asymmetrical by design
|
|
85
|
+
* It's padded by 2 extra px from the left
|
|
86
|
+
*/
|
|
87
|
+
.popper :global(.hz-date-picker-popper-container) :global .react-datepicker :global .react-datepicker__month {
|
|
88
|
+
margin: 0 0 0 calc(var(--hive-grid) * 0.5);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.popper
|
|
92
|
+
:global(.hz-date-picker-popper-container)
|
|
93
|
+
:global
|
|
94
|
+
.react-datepicker
|
|
95
|
+
:global
|
|
96
|
+
.react-datepicker__month
|
|
97
|
+
:global
|
|
98
|
+
.react-datepicker__week:not(:last-of-type) {
|
|
99
|
+
margin-bottom: calc(var(--hive-grid) * 2);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/*
|
|
103
|
+
* Note:
|
|
104
|
+
* We need to use :global override here, as 'renderCustomDay' only allows us to override
|
|
105
|
+
* the child of this element, which does not allow us to touch the styles properly
|
|
106
|
+
*
|
|
107
|
+
* Source styles:
|
|
108
|
+
* https://github.com/Hacker0x01/react-datepicker/blob/master/src/stylesheets/datepicker.scss#L395
|
|
109
|
+
*/
|
|
110
|
+
.popper
|
|
111
|
+
:global(.hz-date-picker-popper-container)
|
|
112
|
+
:global
|
|
113
|
+
.react-datepicker
|
|
114
|
+
:global
|
|
115
|
+
.react-datepicker__month
|
|
116
|
+
:global
|
|
117
|
+
.react-datepicker__week
|
|
118
|
+
:global
|
|
119
|
+
.react-datepicker__day {
|
|
120
|
+
border-radius: var(--hive-grid);
|
|
121
|
+
width: calc(var(--hive-grid) * 8);
|
|
122
|
+
height: calc(var(--hive-grid) * 8);
|
|
123
|
+
background-color: var(--hive-color-neutral-white);
|
|
124
|
+
color: var(--hive-color-text-secondary);
|
|
125
|
+
text-align: center;
|
|
126
|
+
vertical-align: middle;
|
|
127
|
+
line-height: calc(var(--hive-grid) * 8) !important;
|
|
128
|
+
margin: 0;
|
|
129
|
+
|
|
130
|
+
/* Do not remove outline for high-contrast modes */
|
|
131
|
+
/* https://stackoverflow.com/a/52616313 */
|
|
132
|
+
outline: transparent solid var(--hive-outline-width);
|
|
133
|
+
font-family: var(--hive-font-family-text);
|
|
134
|
+
font-size: var(--hive-font-size-body-small);
|
|
135
|
+
letter-spacing: var(--hive-letter-spacing-body-small);
|
|
136
|
+
line-height: var(--hive-line-height-body-small);
|
|
137
|
+
font-weight: var(--hive-font-weight-text-regular);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.popper
|
|
141
|
+
:global(.hz-date-picker-popper-container)
|
|
142
|
+
:global
|
|
143
|
+
.react-datepicker
|
|
144
|
+
:global
|
|
145
|
+
.react-datepicker__month
|
|
146
|
+
:global
|
|
147
|
+
.react-datepicker__week
|
|
148
|
+
:global
|
|
149
|
+
.react-datepicker__day--today {
|
|
150
|
+
font-family: var(--hive-font-family-text);
|
|
151
|
+
font-size: var(--hive-font-size-body-small);
|
|
152
|
+
letter-spacing: var(--hive-letter-spacing-body-small);
|
|
153
|
+
line-height: var(--hive-line-height-body-small);
|
|
154
|
+
font-weight: var(--hive-font-weight-text-bold);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/* TODO: Improvised colour, consult with @Pawel */
|
|
158
|
+
.popper
|
|
159
|
+
:global(.hz-date-picker-popper-container)
|
|
160
|
+
:global
|
|
161
|
+
.react-datepicker
|
|
162
|
+
:global
|
|
163
|
+
.react-datepicker__month
|
|
164
|
+
:global
|
|
165
|
+
.react-datepicker__week
|
|
166
|
+
:global
|
|
167
|
+
.react-datepicker__day--in-selecting-range,
|
|
168
|
+
.popper
|
|
169
|
+
:global(.hz-date-picker-popper-container)
|
|
170
|
+
:global
|
|
171
|
+
.react-datepicker
|
|
172
|
+
:global
|
|
173
|
+
.react-datepicker__month
|
|
174
|
+
:global
|
|
175
|
+
.react-datepicker__week
|
|
176
|
+
:global
|
|
177
|
+
.react-datepicker__day--in-range {
|
|
178
|
+
background-color: var(--hive-color-info-light);
|
|
179
|
+
color: var(--hive-color-neutral-white);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/* Note: Disable default browser outline, force our only on :focus */
|
|
183
|
+
.popper
|
|
184
|
+
:global(.hz-date-picker-popper-container)
|
|
185
|
+
:global
|
|
186
|
+
.react-datepicker
|
|
187
|
+
:global
|
|
188
|
+
.react-datepicker__month
|
|
189
|
+
:global
|
|
190
|
+
.react-datepicker__week
|
|
191
|
+
:global
|
|
192
|
+
.react-datepicker__day--selected {
|
|
193
|
+
background-color: var(--hive-color-primary-light);
|
|
194
|
+
color: var(--hive-color-neutral-white);
|
|
195
|
+
font-family: var(--hive-font-family-text);
|
|
196
|
+
font-size: var(--hive-font-size-body-small);
|
|
197
|
+
letter-spacing: var(--hive-letter-spacing-body-small);
|
|
198
|
+
line-height: var(--hive-line-height-body-small);
|
|
199
|
+
font-weight: var(--hive-font-weight-text-bold);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.popper
|
|
203
|
+
:global(.hz-date-picker-popper-container)
|
|
204
|
+
:global
|
|
205
|
+
.react-datepicker
|
|
206
|
+
:global
|
|
207
|
+
.react-datepicker__month
|
|
208
|
+
:global
|
|
209
|
+
.react-datepicker__week
|
|
210
|
+
:global
|
|
211
|
+
.react-datepicker__day--disabled {
|
|
212
|
+
cursor: default;
|
|
213
|
+
color: var(--hive-color-neutral);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.popper
|
|
217
|
+
:global(.hz-date-picker-popper-container)
|
|
218
|
+
:global
|
|
219
|
+
.react-datepicker
|
|
220
|
+
:global
|
|
221
|
+
.react-datepicker__month
|
|
222
|
+
:global
|
|
223
|
+
.react-datepicker__week
|
|
224
|
+
:global
|
|
225
|
+
.react-datepicker__day:focus-visible {
|
|
226
|
+
box-shadow: inset 0 0 0 var(--hive-outline-width) var(--hive-color-accessibility-outline);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.popper
|
|
230
|
+
:global(.hz-date-picker-popper-container)
|
|
231
|
+
:global
|
|
232
|
+
.react-datepicker
|
|
233
|
+
:global
|
|
234
|
+
.react-datepicker__month
|
|
235
|
+
:global
|
|
236
|
+
.react-datepicker__week
|
|
237
|
+
:global
|
|
238
|
+
.react-datepicker__day:not(:last-of-type) {
|
|
239
|
+
margin-right: calc(var(--hive-grid) * 2);
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.popper :global(.hz-date-picker-popper-container) :global .react-datepicker :global .react-datepicker__input-time-container {
|
|
243
|
+
margin: 0;
|
|
244
|
+
padding: 0;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.popper
|
|
248
|
+
:global(.hz-date-picker-popper-container)
|
|
249
|
+
:global
|
|
250
|
+
.react-datepicker
|
|
251
|
+
:global
|
|
252
|
+
.react-datepicker__input-time-container
|
|
253
|
+
:global
|
|
254
|
+
.react-datepicker-time__caption {
|
|
255
|
+
display: none;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.popper
|
|
259
|
+
:global(.hz-date-picker-popper-container)
|
|
260
|
+
:global
|
|
261
|
+
.react-datepicker
|
|
262
|
+
:global
|
|
263
|
+
.react-datepicker__input-time-container
|
|
264
|
+
:global
|
|
265
|
+
.react-datepicker-time__input-container {
|
|
266
|
+
margin: 0 var(--hive-grid) 0 calc(var(--hive-grid) * 5);
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.popper
|
|
270
|
+
:global(.hz-date-picker-popper-container)
|
|
271
|
+
:global
|
|
272
|
+
.react-datepicker
|
|
273
|
+
:global
|
|
274
|
+
.react-datepicker__input-time-container
|
|
275
|
+
:global
|
|
276
|
+
.react-datepicker-time__input-container
|
|
277
|
+
:global
|
|
278
|
+
.react-datepicker-time__input {
|
|
279
|
+
margin: 0;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.popper
|
|
283
|
+
:global(.hz-date-picker-popper-container)
|
|
284
|
+
:global
|
|
285
|
+
.react-datepicker
|
|
286
|
+
:global
|
|
287
|
+
.react-datepicker__input-time-container
|
|
288
|
+
:global
|
|
289
|
+
.react-datepicker-time__input-container
|
|
290
|
+
:global
|
|
291
|
+
.react-datepicker-time__input
|
|
292
|
+
input {
|
|
293
|
+
width: auto;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.popper :global(.hz-date-picker-popper-container) .calendar {
|
|
297
|
+
display: flex;
|
|
298
|
+
flex-direction: row;
|
|
299
|
+
border: var(--hive-border-width) solid var(--hive-color-neutral-light);
|
|
300
|
+
background-color: var(--hive-color-neutral-lighter);
|
|
301
|
+
box-sizing: border-box;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
.popper :global(.hz-date-picker-popper-container) .calendar .headerContainer {
|
|
305
|
+
display: flex;
|
|
306
|
+
flex-direction: row;
|
|
307
|
+
align-items: center;
|
|
308
|
+
justify-content: space-between;
|
|
309
|
+
|
|
310
|
+
/* Note: There is 1.5px in designs - also $separatorWidth is not semantically the best fit */
|
|
311
|
+
margin-bottom: var(--hive-separator-width);
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
.popper :global(.hz-date-picker-popper-container) .calendar .headerContainer .headerMonthAndYear {
|
|
315
|
+
color: var(--hive-color-text-secondary);
|
|
316
|
+
font-family: var(--hive-font-family-text);
|
|
317
|
+
font-size: var(--hive-font-size-body-small);
|
|
318
|
+
letter-spacing: var(--hive-letter-spacing-body-small);
|
|
319
|
+
line-height: var(--hive-line-height-body-small);
|
|
320
|
+
font-weight: var(--hive-font-weight-text-bold);
|
|
321
|
+
}
|
|
@@ -3,11 +3,11 @@ import { ArrowRight } from 'react-feather';
|
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { Icon } from '../Icon';
|
|
5
5
|
import { Calendar } from './Calendar';
|
|
6
|
-
import styles from './CalendarRange.module.
|
|
7
|
-
export const CalendarRange = ({ startDate, startInputLabel = 'From', startOpen, onStartDateChange, endDate, endInputLabel = 'To', endOpen, onEndDateChange,
|
|
6
|
+
import styles from './CalendarRange.module.css';
|
|
7
|
+
export const CalendarRange = ({ startDate, startInputLabel = 'From', startOpen, onStartDateChange, endDate, endInputLabel = 'To', endOpen, onEndDateChange, variant = 'horizontal', ...rest }) => {
|
|
8
8
|
return (React.createElement("div", { className: cn(styles.container, { [styles.vertical]: variant === 'vertical' }) },
|
|
9
|
-
React.createElement(Calendar, { "data-test": "calendar-range-start", date: startDate, onDateChange: onStartDateChange, selectsStart: true, startDate: startDate, endDate: endDate, inputLabel: startInputLabel, open: startOpen,
|
|
10
|
-
variant === 'horizontal' && (React.createElement(Icon, { "data-test": "calendar-range-icon", className: cn(styles.arrowRight,
|
|
11
|
-
React.createElement(Calendar, { "data-test": "calendar-range-end", date: endDate, onDateChange: onEndDateChange, selectsEnd: true, startDate: startDate, endDate: endDate, minDate: startDate, inputLabel: endInputLabel, open: endOpen,
|
|
9
|
+
React.createElement(Calendar, { "data-test": "calendar-range-start", date: startDate, onDateChange: onStartDateChange, selectsStart: true, startDate: startDate, endDate: endDate, inputLabel: startInputLabel, open: startOpen, ...rest }),
|
|
10
|
+
variant === 'horizontal' && (React.createElement(Icon, { "data-test": "calendar-range-icon", className: cn(styles.arrowRight, styles.small), icon: ArrowRight, ariaLabel: "Arrow Right" })),
|
|
11
|
+
React.createElement(Calendar, { "data-test": "calendar-range-end", date: endDate, onDateChange: onEndDateChange, selectsEnd: true, startDate: startDate, endDate: endDate, minDate: startDate, inputLabel: endInputLabel, open: endOpen, ...rest })));
|
|
12
12
|
};
|
|
13
13
|
//# sourceMappingURL=CalendarRange.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CalendarRange.js","sourceRoot":"","sources":["../../../src/components/Calendar/CalendarRange.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAa,MAAM,OAAO,CAAA;AACjC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,OAAO,EAAE,MAAM,YAAY,CAAA;AAE3B,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAC9B,OAAO,EAAE,QAAQ,EAAiB,MAAM,YAAY,CAAA;AAEpD,OAAO,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"CalendarRange.js","sourceRoot":"","sources":["../../../src/components/Calendar/CalendarRange.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAa,MAAM,OAAO,CAAA;AACjC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,OAAO,EAAE,MAAM,YAAY,CAAA;AAE3B,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAC9B,OAAO,EAAE,QAAQ,EAAiB,MAAM,YAAY,CAAA;AAEpD,OAAO,MAAM,MAAM,4BAA4B,CAAA;AAe/C,MAAM,CAAC,MAAM,aAAa,GAA2B,CAAC,EACpD,SAAS,EACT,eAAe,GAAG,MAAM,EACxB,SAAS,EACT,iBAAiB,EACjB,OAAO,EACP,aAAa,GAAG,IAAI,EACpB,OAAO,EACP,eAAe,EACf,OAAO,GAAG,YAAY,EACtB,GAAG,IAAI,EACR,EAAE,EAAE;IACH,OAAO,CACL,6BAAK,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,OAAO,KAAK,UAAU,EAAE,CAAC;QACjF,oBAAC,QAAQ,iBACG,sBAAsB,EAChC,IAAI,EAAE,SAAS,EACf,YAAY,EAAE,iBAAiB,EAC/B,YAAY,QACZ,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,eAAe,EAC3B,IAAI,EAAE,SAAS,KACX,IAAI,GACR;QACD,OAAO,KAAK,YAAY,IAAI,CAC3B,oBAAC,IAAI,iBAAW,qBAAqB,EAAC,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,KAAK,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,SAAS,EAAC,aAAa,GAAG,CACnI;QACD,oBAAC,QAAQ,iBACG,oBAAoB,EAC9B,IAAI,EAAE,OAAO,EACb,YAAY,EAAE,eAAe,EAC7B,UAAU,QACV,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,SAAS,EAClB,UAAU,EAAE,aAAa,EACzB,IAAI,EAAE,OAAO,KACT,IAAI,GACR,CACE,CACP,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
.container {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: row;
|
|
4
|
+
align-items: flex-end;
|
|
5
|
+
|
|
6
|
+
&.vertical {
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
gap: calc(var(--hive-grid) * 4);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.arrowRight {
|
|
12
|
+
color: var(--hive-color-neutral-light);
|
|
13
|
+
margin: 0 calc(var(--hive-grid) * 2) calc(var(--hive-grid) * 2);
|
|
14
|
+
|
|
15
|
+
&.small {
|
|
16
|
+
margin-bottom: calc(var(--hive-grid) * 0.75);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -2,12 +2,12 @@ import React from 'react';
|
|
|
2
2
|
import { ChevronLeft, ChevronRight } from 'react-feather';
|
|
3
3
|
import { format } from 'date-fns';
|
|
4
4
|
import { IconButton } from '../../IconButton';
|
|
5
|
-
import styles from '../Calendar.module.
|
|
6
|
-
import
|
|
5
|
+
import styles from '../Calendar.module.css';
|
|
6
|
+
import { styleConstants } from '../../../utils/styleConstants';
|
|
7
7
|
export const CalendarHeader = ({ date, decreaseMonth, increaseMonth }) => {
|
|
8
8
|
return (React.createElement("div", { "data-test": "date-picker-header", className: styles.headerContainer },
|
|
9
|
-
React.createElement(IconButton, { "data-test": "date-picker-header-icon-previous", icon: ChevronLeft, ariaLabel: "Previous month", iconColor:
|
|
9
|
+
React.createElement(IconButton, { "data-test": "date-picker-header-icon-previous", icon: ChevronLeft, ariaLabel: "Previous month", iconColor: styleConstants.colorPrimary, onClick: decreaseMonth }),
|
|
10
10
|
React.createElement("div", { className: styles.headerMonthAndYear }, format(date, 'MMMM y')),
|
|
11
|
-
React.createElement(IconButton, { "data-test": "date-picker-header-icon-next", icon: ChevronRight, ariaLabel: "Next month", iconColor:
|
|
11
|
+
React.createElement(IconButton, { "data-test": "date-picker-header-icon-next", icon: ChevronRight, ariaLabel: "Next month", iconColor: styleConstants.colorPrimary, onClick: increaseMonth })));
|
|
12
12
|
};
|
|
13
13
|
//# sourceMappingURL=CalendarHeader.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CalendarHeader.js","sourceRoot":"","sources":["../../../../src/components/Calendar/components/CalendarHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAa,MAAM,OAAO,CAAA;AAEjC,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEjC,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAE7C,OAAO,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"CalendarHeader.js","sourceRoot":"","sources":["../../../../src/components/Calendar/components/CalendarHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAa,MAAM,OAAO,CAAA;AAEjC,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEjC,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAE7C,OAAO,MAAM,MAAM,wBAAwB,CAAA;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAA;AAe9D,MAAM,CAAC,MAAM,cAAc,GAA4B,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,aAAa,EAAE,EAAE,EAAE;IAChG,OAAO,CACL,0CAAe,oBAAoB,EAAC,SAAS,EAAE,MAAM,CAAC,eAAe;QACnE,oBAAC,UAAU,iBACC,kCAAkC,EAC5C,IAAI,EAAE,WAAW,EACjB,SAAS,EAAC,gBAAgB,EAC1B,SAAS,EAAE,cAAc,CAAC,YAAY,EACtC,OAAO,EAAE,aAAa,GACtB;QACF,6BAAK,SAAS,EAAE,MAAM,CAAC,kBAAkB,IAAG,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAO;QACzE,oBAAC,UAAU,iBACC,8BAA8B,EACxC,IAAI,EAAE,YAAY,EAClB,SAAS,EAAC,YAAY,EACtB,SAAS,EAAE,cAAc,CAAC,YAAY,EACtC,OAAO,EAAE,aAAa,GACtB,CACE,CACP,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React, { FC, ChangeEvent, InputHTMLAttributes } from 'react';
|
|
2
2
|
import { DataTestProp } from '../../../helpers/types';
|
|
3
|
-
import { CalendarSize } from '../Calendar';
|
|
4
3
|
export type CalendarInputInternalProps = {
|
|
5
4
|
onChange: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
6
5
|
} & CalendarInputExtraProps & Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange'> & Required<DataTestProp>;
|
|
@@ -9,7 +8,6 @@ export declare const CalendarInputInternal: React.ForwardRefExoticComponent<{
|
|
|
9
8
|
} & CalendarInputExtraProps & Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange"> & Required<DataTestProp> & React.RefAttributes<HTMLInputElement>>;
|
|
10
9
|
export type CalendarInputExtraProps = {
|
|
11
10
|
label?: string;
|
|
12
|
-
textFieldSize?: CalendarSize;
|
|
13
11
|
className?: string;
|
|
14
12
|
};
|
|
15
13
|
export type CalendarInputProps = unknown & CalendarInputExtraProps;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
2
|
import { Calendar } from 'react-feather';
|
|
3
3
|
import { TextField } from '../../TextField';
|
|
4
|
-
export const CalendarInputInternal = forwardRef(({ className, value, onChange, label,
|
|
4
|
+
export const CalendarInputInternal = forwardRef(({ className, value, onChange, label, 'data-test': dataTest, ...props }, ref) => (React.createElement(TextField, { ...props, mRef: ref, "data-test": dataTest, value: value === null || value === void 0 ? void 0 : value.toString(), onChange: onChange, inputContainerClassName: className, type: "text", name: "calendar-input", label: label, inputTrailingIcon: Calendar, inputTrailingIconLabel: "Calendar Icon" })));
|
|
5
5
|
CalendarInputInternal.displayName = 'CalendarInputInternal';
|
|
6
6
|
export const CalendarInput = forwardRef((props, ref) => {
|
|
7
7
|
// Note: Cast the "unknown" props to the actual type
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CalendarInput.js","sourceRoot":"","sources":["../../../../src/components/Calendar/components/CalendarInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAwC,UAAU,EAAE,MAAM,OAAO,CAAA;AAC/E,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAGxC,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;
|
|
1
|
+
{"version":3,"file":"CalendarInput.js","sourceRoot":"","sources":["../../../../src/components/Calendar/components/CalendarInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAwC,UAAU,EAAE,MAAM,OAAO,CAAA;AAC/E,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAGxC,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAQ3C,MAAM,CAAC,MAAM,qBAAqB,GAAG,UAAU,CAC7C,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAC/E,oBAAC,SAAS,OACJ,KAAK,EACT,IAAI,EAAE,GAAG,eACE,QAAQ,EACnB,KAAK,EAAE,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,QAAQ,EAAE,EACxB,QAAQ,EAAE,QAAQ,EAClB,uBAAuB,EAAE,SAAS,EAClC,IAAI,EAAC,MAAM,EACX,IAAI,EAAC,gBAAgB,EACrB,KAAK,EAAE,KAAK,EACZ,iBAAiB,EAAE,QAAQ,EAC3B,sBAAsB,EAAC,eAAe,GACtC,CACH,CACF,CAAA;AACD,qBAAqB,CAAC,WAAW,GAAG,uBAAuB,CAAA;AAe3D,MAAM,CAAC,MAAM,aAAa,GAA2B,UAAU,CAAuC,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;IACnH,oDAAoD;IACpD,MAAM,UAAU,GAAG,KAAmC,CAAA;IAEtD,OAAO,oBAAC,qBAAqB,IAAC,GAAG,EAAE,GAAG,KAAM,UAAU,GAAI,CAAA;AAC5D,CAAC,CAAC,CAAA;AAEF,aAAa,CAAC,WAAW,GAAG,eAAe,CAAA"}
|
|
@@ -4,7 +4,7 @@ import { Button } from '../../Button';
|
|
|
4
4
|
import { timePoints } from '../helpers/consts';
|
|
5
5
|
import { TimeField } from '../../TimeField';
|
|
6
6
|
import { useRefValue } from '../../../hooks';
|
|
7
|
-
import styles from './CalendarTime.module.
|
|
7
|
+
import styles from './CalendarTime.module.css';
|
|
8
8
|
const DATE_FORMAT = 'HH:mm';
|
|
9
9
|
export const CalendarTimeInternal = ({ date, value, onChange, 'data-test': dataTest = 'calendar-time' }) => {
|
|
10
10
|
const [time, setTime] = useState(value);
|
|
@@ -58,7 +58,7 @@ export const CalendarTimeInternal = ({ date, value, onChange, 'data-test': dataT
|
|
|
58
58
|
}, [onChange, getValue, date]);
|
|
59
59
|
return (React.createElement("div", { "data-test": dataTest, className: styles.container },
|
|
60
60
|
React.createElement("div", { "data-test": `${dataTest}-header`, className: styles.header },
|
|
61
|
-
React.createElement(TimeField, { showAriaLabel: true,
|
|
61
|
+
React.createElement(TimeField, { showAriaLabel: true, label: "Time Input", error: timeInputError, name: "time", value: time.toString(), "data-test": `${dataTest}-input`, inputClassName: styles.timeInput, onChange: handleTimeInputChange })),
|
|
62
62
|
React.createElement("div", { "data-test": `${dataTest}-timePoints`, className: styles.timePoints }, timePoints.map((tP) => (React.createElement(Button, { className: styles.timePoint, bodyClassName: styles.timePointBody, key: tP, variant: "ghost", color: "secondary", onClick: handleDateClick(tP) }, tP))))));
|
|
63
63
|
};
|
|
64
64
|
export const CalendarTime = (props) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CalendarTime.js","sourceRoot":"","sources":["../../../../src/components/Calendar/components/CalendarTime.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAmB,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAChF,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,UAAU,CAAA;AAGxC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAE5C,OAAO,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"CalendarTime.js","sourceRoot":"","sources":["../../../../src/components/Calendar/components/CalendarTime.tsx"],"names":[],"mappings":"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"}
|
package/lib/components/Calendar/components/{CalendarTime.module.scss → CalendarTime.module.css}
RENAMED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
@use '../../../../styles/constants' as c;
|
|
2
|
-
@use '../../../../styles/helpers' as h;
|
|
3
|
-
|
|
4
1
|
/*
|
|
5
2
|
* Note:
|
|
6
3
|
* What's the motivation for statically settings the height of this particular element?
|
|
@@ -14,15 +11,6 @@
|
|
|
14
11
|
* and would cause overflow in case of option 1.
|
|
15
12
|
* Therefore only option 2 is left.
|
|
16
13
|
*/
|
|
17
|
-
$calendarTimeHeight: 227px;
|
|
18
|
-
|
|
19
|
-
// Note: Add padding in order to preserve button's outline
|
|
20
|
-
$outlinePreservingPadding: c.$grid * 1.25;
|
|
21
|
-
|
|
22
|
-
// Note: Button width is 98px with border-box applied
|
|
23
|
-
/* doiuse-disable calc */
|
|
24
|
-
$buttonWidth: calc(98px - 2 * #{$outlinePreservingPadding});
|
|
25
|
-
/* doiuse-enable calc */
|
|
26
14
|
|
|
27
15
|
.container {
|
|
28
16
|
display: flex;
|
|
@@ -34,30 +22,37 @@ $buttonWidth: calc(98px - 2 * #{$outlinePreservingPadding});
|
|
|
34
22
|
display: flex;
|
|
35
23
|
justify-content: center;
|
|
36
24
|
align-items: center;
|
|
37
|
-
margin-bottom:
|
|
25
|
+
margin-bottom: calc(var(--hive-grid) * 2);
|
|
38
26
|
}
|
|
39
27
|
|
|
40
28
|
.timePoints {
|
|
41
29
|
display: flex;
|
|
42
30
|
flex-direction: column;
|
|
43
31
|
overflow-y: scroll;
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
32
|
+
/* Note: Add padding in order to preserve button's outline */
|
|
33
|
+
padding: calc(var(--hive-grid) * 1.25);
|
|
34
|
+
height: 227px;
|
|
35
|
+
/* Note: Button width is 98px with border-box applied */
|
|
36
|
+
/* doiuse-disable calc */
|
|
37
|
+
width: calc(98px - var(--hive-grid) * 2.5);
|
|
38
|
+
/* doiuse-enable calc */
|
|
47
39
|
box-sizing: border-box;
|
|
48
40
|
|
|
49
41
|
> .timePoint {
|
|
50
|
-
color:
|
|
42
|
+
color: var(--hive-color-text-subdued);
|
|
51
43
|
/*
|
|
52
44
|
* Note: Using min-height instead of height to workaround IE11 flex-bug
|
|
53
45
|
* where flex text content on overflow: scroll disappears
|
|
54
46
|
*/
|
|
55
|
-
min-height:
|
|
56
|
-
|
|
57
|
-
|
|
47
|
+
min-height: calc(var(--hive-grid) * 5);
|
|
48
|
+
font-family: var(--hive-font-family-text);
|
|
49
|
+
font-size: var(--hive-font-size-body-small);
|
|
50
|
+
letter-spacing: var(--hive-letter-spacing-body-small);
|
|
51
|
+
line-height: var(--hive-line-height-body-small);
|
|
52
|
+
font-weight: var(--hive-font-weight-text-regular);
|
|
58
53
|
|
|
59
54
|
&:not(:last-of-type) {
|
|
60
|
-
margin-bottom:
|
|
55
|
+
margin-bottom: var(--hive-grid);
|
|
61
56
|
}
|
|
62
57
|
|
|
63
58
|
> .timePointBody {
|
package/lib/components/Card.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import { Icon } from './Icon';
|
|
4
|
-
import styles from './Card.module.
|
|
4
|
+
import styles from './Card.module.css';
|
|
5
5
|
const Title = ({ as: Tag, ...props }) => React.createElement(Tag, { "data-test": "card-heading-title", ...props });
|
|
6
6
|
/**
|
|
7
7
|
* ### Purpose
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.js","sourceRoot":"","sources":["../../src/components/Card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqC,MAAM,OAAO,CAAA;AACzD,OAAO,EAAE,MAAM,YAAY,CAAA;AAG3B,OAAO,EAAE,IAAI,EAAa,MAAM,QAAQ,CAAA;AAExC,OAAO,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"Card.js","sourceRoot":"","sources":["../../src/components/Card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqC,MAAM,OAAO,CAAA;AACzD,OAAO,EAAE,MAAM,YAAY,CAAA;AAG3B,OAAO,EAAE,IAAI,EAAa,MAAM,QAAQ,CAAA;AAExC,OAAO,MAAM,MAAM,mBAAmB,CAAA;AAuBtC,MAAM,KAAK,GAAmB,CAAC,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE,CAAC,oBAAC,GAAG,iBAAW,oBAAoB,KAAK,KAAK,GAAI,CAAA;AAE1G;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,IAAI,GAAkB,CAAC,EAClC,WAAW,EACX,KAAK,EACL,cAAc,EACd,SAAS,GAAG,KAAK,EACjB,OAAO,GAAG,SAAS,EACnB,WAAW,EAAE,QAAQ,EACrB,QAAQ,EACR,YAAY,GAAG,IAAI,EACnB,SAAS,EACT,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,eAAe,EACf,OAAO,GACR,EAAE,EAAE,CAAC,CACJ,0CACa,QAAQ,aAAR,QAAQ,cAAR,QAAQ,GAAI,cAAc,EACrC,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,OAAO,KAAK,UAAU,EAAE,EAAE,SAAS,CAAC;IAEhH,OAAO,IAAI,6BAAK,SAAS,EAAE,MAAM,CAAC,OAAO,IAAG,OAAO,CAAO;IAC1D,CAAC,KAAK,IAAI,cAAc,IAAI,WAAW,CAAC,IAAI,CAC3C,0CAAe,cAAc,EAAC,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,eAAe,CAAC;QACzE,WAAW,IAAI,oBAAC,IAAI,iBAAW,mBAAmB,EAAC,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,aAAa,CAAC,EAAE,UAAU,SAAG;QAC9H,KAAK,IAAI,CACR,oBAAC,KAAK,IAAC,EAAE,EAAE,YAAY,EAAE,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,cAAc,EAAE,EAAE,cAAc,CAAC,IACvG,KAAK,CACA,CACT;QACA,cAAc,CACX,CACP;IAEA,SAAS,IAAI,0CAAe,gBAAgB,EAAC,SAAS,EAAE,MAAM,CAAC,SAAS,GAAI;IAE5E,QAAQ,IAAI,CACX,0CAAe,cAAc,EAAC,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,gBAAgB,CAAC,IAC1E,QAAQ,CACL,CACP,CACG,CACP,CAAA"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
.wrapper {
|
|
2
|
+
background: var(--hive-color-neutral-white);
|
|
3
|
+
|
|
4
|
+
.heading {
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
margin-bottom: calc(var(--hive-grid) * 5);
|
|
8
|
+
|
|
9
|
+
.icon {
|
|
10
|
+
margin-right: calc(var(--hive-grid) * 2.5);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.title {
|
|
14
|
+
margin: 0;
|
|
15
|
+
|
|
16
|
+
&.space {
|
|
17
|
+
margin-right: calc(var(--hive-grid) * 2.5);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.separator {
|
|
23
|
+
width: 100%;
|
|
24
|
+
height: 1px;
|
|
25
|
+
margin-top: calc(var(--hive-grid) * 4);
|
|
26
|
+
background: var(--hive-color-neutral);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.content {
|
|
30
|
+
padding-top: calc(var(--hive-grid) * 6);
|
|
31
|
+
font-family: var(--hive-font-family-text);
|
|
32
|
+
font-size: var(--hive-font-size-body-normal);
|
|
33
|
+
letter-spacing: var(--hive-letter-spacing-body-normal);
|
|
34
|
+
line-height: var(--hive-line-height-body-normal);
|
|
35
|
+
font-weight: var(--hive-font-weight-text-regular);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.caption {
|
|
39
|
+
display: flex;
|
|
40
|
+
margin-bottom: calc(var(--hive-grid) * 5);
|
|
41
|
+
|
|
42
|
+
& > * {
|
|
43
|
+
flex: 1;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.bordered {
|
|
49
|
+
padding: calc(var(--hive-grid) * 5);
|
|
50
|
+
border-radius: var(--hive-border-radius);
|
|
51
|
+
border: var(--hive-border-width) solid var(--hive-color-neutral);
|
|
52
|
+
|
|
53
|
+
.heading {
|
|
54
|
+
font-weight: var(--hive-font-weight-heading-regular);
|
|
55
|
+
font-size: var(--hive-font-size-h3);
|
|
56
|
+
letter-spacing: var(--hive-letter-spacing-h3);
|
|
57
|
+
line-height: var(--hive-line-height-h3);
|
|
58
|
+
display: flex;
|
|
59
|
+
align-items: center;
|
|
60
|
+
margin: 0;
|
|
61
|
+
|
|
62
|
+
.icon {
|
|
63
|
+
margin-right: calc(var(--hive-grid) * 2.5);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.title {
|
|
67
|
+
margin: 0;
|
|
68
|
+
font-size: var(--hive-font-size-body-normal) !important;
|
|
69
|
+
line-height: var(--hive-line-height-body-normal) !important;
|
|
70
|
+
|
|
71
|
+
&.space {
|
|
72
|
+
margin-right: calc(var(--hive-grid) * 2.5);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.content {
|
|
78
|
+
font-family: var(--hive-font-family-text);
|
|
79
|
+
font-size: var(--hive-font-size-body-normal);
|
|
80
|
+
letter-spacing: var(--hive-letter-spacing-body-normal);
|
|
81
|
+
line-height: var(--hive-line-height-body-normal);
|
|
82
|
+
font-weight: var(--hive-font-weight-text-regular);
|
|
83
|
+
margin-top: calc(var(--hive-grid) * 4);
|
|
84
|
+
padding: 0;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.caption {
|
|
88
|
+
margin: calc(var(--hive-grid) * -5) calc(var(--hive-grid) * -5) calc(var(--hive-grid) * 5);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.noTitle {
|
|
93
|
+
.content {
|
|
94
|
+
margin-top: 0;
|
|
95
|
+
padding-top: 0;
|
|
96
|
+
}
|
|
97
|
+
}
|