@capillarytech/blaze-ui 6.0.0 → 6.0.4
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/CapActionBar/styles.module.scss.js +1 -1
- package/CapAdvancedIcon/styles.module.scss.js +1 -1
- package/CapAlert/styles.module.scss.js +1 -1
- package/CapAppNotEnabled/styles.module.scss.js +1 -1
- package/CapAskAira/AudienceFilterBot/styles.module.scss.js +1 -1
- package/CapAskAira/CapAiMediaGeneration/styles.module.scss.js +1 -1
- package/CapAskAira/ConfigurationBot/PromptAttachmentButton.js +1 -1
- package/CapAskAira/ConfigurationBot/styles.module.scss.js +1 -1
- package/CapAskAira/ContentGenerationBot/styles.module.scss.js +1 -1
- package/CapAskAira/DocumentationBot/styles.module.scss.js +1 -1
- package/CapAskAira/DocumentationChatBot/styles.module.scss.js +1 -1
- package/CapAskAira/RuleGenerationBot/styles.module.scss.js +1 -1
- package/CapAskAira/RuleSummarizationBot/styles.module.scss.js +1 -1
- package/CapAskAira/styles.module.scss.js +1 -1
- package/CapBanner/styles.module.scss.js +1 -1
- package/CapBlock/styles.module.scss.js +1 -1
- package/CapButton/styles.module.scss.js +1 -1
- package/CapCSVFileUploader/styles.module.scss.js +1 -1
- package/CapCalendarDatePicker/styles.module.scss.js +1 -1
- package/CapCard/styles.module.scss.js +1 -1
- package/CapCardBox/styles.module.scss.js +1 -1
- package/CapCarousel/styles.module.scss.js +1 -1
- package/CapCheckbox/styles.module.scss.js +1 -1
- package/CapColorPicker/styles.module.scss.js +1 -1
- package/CapColoredTag/styles.module.scss.js +1 -1
- package/CapColumn/styles.module.scss.js +1 -1
- package/CapConditionPreview/styles.module.scss.js +1 -1
- package/CapCustomCard/styles.module.scss.js +1 -1
- package/CapCustomCarousel/styles.module.scss.js +1 -1
- package/CapCustomCheckboxList/styles.module.scss.js +1 -1
- package/CapCustomList/styles.module.scss.js +1 -1
- package/CapCustomSelect/styles.module.scss.js +1 -1
- package/CapDatePicker/styles.module.scss.js +1 -1
- package/CapDateRangePicker/styles.module.scss.js +1 -1
- package/CapDateTimePicker/styles.module.scss.js +1 -1
- package/CapDateTimeRangePicker/styles.module.scss.js +1 -1
- package/CapDnDGraph/reportingBlock.js +1 -1
- package/CapDropdown/styles.module.scss.js +1 -1
- package/CapEmptyDivWithBorder/styles.module.scss.js +1 -1
- package/CapError/styles.module.scss.js +1 -1
- package/CapErrorBoundary/styles.module.scss.js +1 -1
- package/CapErrorStateIllustration/styles.module.scss.js +1 -1
- package/CapEventCalendar/CalendarCanvas/calendarCanvasStyles.css +21 -0
- package/CapEventCalendar/CalendarCanvas/calendarCanvasStyles.module.scss.js +8 -0
- package/CapEventCalendar/CalendarCanvas/calendarCanvasStyles.scss +17 -0
- package/CapEventCalendar/CalendarCanvas/index.d.ts +3 -52
- package/CapEventCalendar/CalendarCanvas/index.d.ts.map +1 -1
- package/CapEventCalendar/CalendarCanvas/index.js +31 -50
- package/CapEventCalendar/CalendarCanvas/utils.d.ts +5 -9
- package/CapEventCalendar/CalendarCanvas/utils.d.ts.map +1 -1
- package/CapEventCalendar/CalendarCanvas/utils.js +6 -6
- package/CapEventCalendar/components/DayDropdown/index.d.ts +3 -13
- package/CapEventCalendar/components/DayDropdown/index.d.ts.map +1 -1
- package/CapEventCalendar/components/DayDropdown/index.js +32 -14
- package/CapEventCalendar/components/MonthHeader/index.d.ts +3 -9
- package/CapEventCalendar/components/MonthHeader/index.d.ts.map +1 -1
- package/CapEventCalendar/components/MonthHeader/index.js +4 -9
- package/CapEventCalendar/components/MonthHeader/monthHeaderStyles.css +20 -0
- package/CapEventCalendar/components/MonthHeader/monthHeaderStyles.module.scss.js +7 -0
- package/CapEventCalendar/components/MonthHeader/monthHeaderStyles.scss +15 -0
- package/CapEventCalendar/drawUtils.d.ts +9 -71
- package/CapEventCalendar/drawUtils.d.ts.map +1 -1
- package/CapEventCalendar/drawUtils.js +12 -4
- package/CapEventCalendar/index.d.ts +4 -80
- package/CapEventCalendar/index.d.ts.map +1 -1
- package/CapEventCalendar/index.js +60 -85
- package/CapEventCalendar/messages.d.ts +25 -0
- package/CapEventCalendar/messages.d.ts.map +1 -0
- package/CapEventCalendar/messages.js +28 -0
- package/CapEventCalendar/styles.css +9 -81
- package/CapEventCalendar/styles.module.scss.js +12 -0
- package/CapEventCalendar/styles.scss +34 -107
- package/CapEventCalendar/tests/types.d.ts +26 -0
- package/CapEventCalendar/tests/types.d.ts.map +1 -0
- package/CapEventCalendar/types.d.ts +188 -0
- package/CapEventCalendar/types.d.ts.map +1 -0
- package/CapEventCalendar/types.js +1 -0
- package/CapEventCalendar/utils.d.ts +11 -9
- package/CapEventCalendar/utils.d.ts.map +1 -1
- package/CapEventCalendar/utils.js +10 -7
- package/CapExpressionEditor/styles.module.scss.js +1 -1
- package/CapForm/styles.module.scss.js +1 -1
- package/CapFormItem/styles.module.scss.js +1 -1
- package/CapGraph/styles.module.scss.js +1 -1
- package/CapHamburgerMenu/styles.module.scss.js +1 -1
- package/CapHeader/styles.module.scss.js +1 -1
- package/CapHeading/styles.module.scss.js +1 -1
- package/CapIcon/styles.module.scss.js +1 -1
- package/CapIllustration/styles.module.scss.js +1 -1
- package/CapImage/styles.module.scss.js +1 -1
- package/CapImportMFEComponent/styles.module.scss.js +1 -1
- package/CapInfoNote/styles.module.scss.js +1 -1
- package/CapInput/styles.module.scss.js +1 -1
- package/CapLabel/styles.module.scss.js +1 -1
- package/CapLanguageProvider/index.d.ts +0 -1
- package/CapLanguageProvider/index.d.ts.map +1 -1
- package/CapLanguageProvider/index.js +0 -3
- package/CapLevelGraphRenderer/styles.module.scss.js +1 -1
- package/CapLink/styles.module.scss.js +1 -1
- package/CapList/styles.module.scss.js +1 -1
- package/CapListLayout/styles.module.scss.js +1 -1
- package/CapLogin/styles.module.scss.js +1 -1
- package/CapMenu/styles.module.scss.js +1 -1
- package/CapModal/styles.module.scss.js +1 -1
- package/CapMultiSelect/styles.module.scss.js +1 -1
- package/CapMultiSelectDatePicker/styles.module.scss.js +1 -1
- package/CapNavigation/styles.module.scss.js +1 -1
- package/CapNotification/styles.module.scss.js +1 -1
- package/CapNotificationDropdown/styles.module.scss.js +1 -1
- package/CapPopover/styles.module.scss.js +1 -1
- package/CapProgress/styles.module.scss.js +1 -1
- package/CapRadio/styles.module.scss.js +1 -1
- package/CapRadioButton/styles.module.scss.js +1 -1
- package/CapRadioCard/styles.module.scss.js +1 -1
- package/CapRadioGroup/styles.module.scss.js +1 -1
- package/CapReorderComponent/styles.module.scss.js +1 -1
- package/CapRoadMap/styles.module.scss.js +1 -1
- package/CapRow/styles.module.scss.js +1 -1
- package/CapSKUUploader/styles.module.scss.js +1 -1
- package/CapSecondaryTopBar/styles.module.scss.js +1 -1
- package/CapSelect/styles.module.scss.js +1 -1
- package/CapSelectFilter/{styles.module.css → styles.css} +3 -3
- package/CapSelectFilter/styles.module.scss.js +1 -1
- package/CapSelectFilter/styles.scss +3 -3
- package/CapShape/styles.module.scss.js +1 -1
- package/CapSideBar/_menuSearch.module.scss.js +1 -1
- package/CapSideBar/styles.module.scss.js +1 -1
- package/CapSlideBox/styles.module.scss.js +1 -1
- package/CapSlider/styles.module.scss.js +1 -1
- package/CapSnackBar/styles.module.scss.js +1 -1
- package/CapSomethingWentWrong/styles.module.scss.js +1 -1
- package/CapSplit/styles.module.scss.js +1 -1
- package/CapStatisticCard/styles.module.scss.js +1 -1
- package/CapStatus/styles.module.scss.js +1 -1
- package/CapSteps/styles.module.scss.js +1 -1
- package/CapStepsAccordian/styles.module.scss.js +1 -1
- package/CapSupportVideosWrapper/index.js +1 -1
- package/CapSupportVideosWrapper/styles.module.scss.js +1 -1
- package/CapSwitch/styles.module.scss.js +1 -1
- package/CapTab/styles.module.scss.js +1 -1
- package/CapTabV3/styles.module.scss.js +1 -1
- package/CapTabV3/tests/CapTabV3.mockData.d.ts +26 -26
- package/CapTabV3/tests/CapTabV3.mockData.d.ts.map +1 -1
- package/CapTable/styles.module.scss.js +1 -1
- package/CapTag/styles.module.scss.js +1 -1
- package/CapTagDropdown/styles.module.scss.js +1 -1
- package/CapTimePicker/styles.module.scss.js +1 -1
- package/CapTooltip/styles.module.scss.js +1 -1
- package/CapTooltipWithInfo/styles.module.scss.js +1 -1
- package/CapTopBar/CapOrgSelect.module.scss.js +1 -1
- package/CapTopBar/styles.module.scss.js +1 -1
- package/CapTree/styles.module.scss.js +1 -1
- package/CapTreeSelect/styles.module.scss.js +1 -1
- package/CapUnifiedSelect/styles.module.scss.js +1 -1
- package/CapUploader/styles.module.scss.js +1 -1
- package/CapUserProfile/styles.module.scss.js +1 -1
- package/assets/HOCs/ComponentWithLabelHOC/styles.module.scss.js +1 -1
- package/index.d.ts +2 -0
- package/index.d.ts.map +1 -1
- package/index.js +223 -221
- package/package.json +1 -2
- package/utils/dayjs.d.ts +1 -0
- package/utils/dayjs.d.ts.map +1 -1
- package/utils/dayjs.js +1 -0
- /package/CapActionBar/{styles.module.css → styles.css} +0 -0
- /package/CapAdvancedIcon/{styles.module.css → styles.css} +0 -0
- /package/CapAlert/{styles.module.css → styles.css} +0 -0
- /package/CapAppNotEnabled/{styles.module.css → styles.css} +0 -0
- /package/CapAskAira/AudienceFilterBot/{styles.module.css → styles.css} +0 -0
- /package/CapAskAira/CapAiMediaGeneration/{styles.module.css → styles.css} +0 -0
- /package/CapAskAira/ConfigurationBot/{styles.module.css → styles.css} +0 -0
- /package/CapAskAira/ContentGenerationBot/{styles.module.css → styles.css} +0 -0
- /package/CapAskAira/DocumentationBot/{styles.module.css → styles.css} +0 -0
- /package/CapAskAira/DocumentationChatBot/{styles.module.css → styles.css} +0 -0
- /package/CapAskAira/RuleGenerationBot/{styles.module.css → styles.css} +0 -0
- /package/CapAskAira/RuleSummarizationBot/{styles.module.css → styles.css} +0 -0
- /package/CapAskAira/{styles.module.css → styles.css} +0 -0
- /package/CapBanner/{styles.module.css → styles.css} +0 -0
- /package/CapBlock/{styles.module.css → styles.css} +0 -0
- /package/CapButton/{styles.module.css → styles.css} +0 -0
- /package/CapCSVFileUploader/{styles.module.css → styles.css} +0 -0
- /package/CapCalendarDatePicker/{styles.module.css → styles.css} +0 -0
- /package/CapCard/{styles.module.css → styles.css} +0 -0
- /package/CapCardBox/{styles.module.css → styles.css} +0 -0
- /package/CapCarousel/{styles.module.css → styles.css} +0 -0
- /package/CapCheckbox/{styles.module.css → styles.css} +0 -0
- /package/CapColorPicker/{styles.module.css → styles.css} +0 -0
- /package/CapColoredTag/{styles.module.css → styles.css} +0 -0
- /package/CapColumn/{styles.module.css → styles.css} +0 -0
- /package/CapConditionPreview/{styles.module.css → styles.css} +0 -0
- /package/CapCustomCard/{styles.module.css → styles.css} +0 -0
- /package/CapCustomCarousel/{styles.module.css → styles.css} +0 -0
- /package/CapCustomCheckboxList/{styles.module.css → styles.css} +0 -0
- /package/CapCustomList/{styles.module.css → styles.css} +0 -0
- /package/CapCustomSelect/{styles.module.css → styles.css} +0 -0
- /package/CapDatePicker/{styles.module.css → styles.css} +0 -0
- /package/CapDateRangePicker/{styles.module.css → styles.css} +0 -0
- /package/CapDateTimePicker/{styles.module.css → styles.css} +0 -0
- /package/CapDateTimeRangePicker/{styles.module.css → styles.css} +0 -0
- /package/CapDropdown/{styles.module.css → styles.css} +0 -0
- /package/CapEmptyDivWithBorder/{styles.module.css → styles.css} +0 -0
- /package/CapError/{styles.module.css → styles.css} +0 -0
- /package/CapErrorBoundary/{styles.module.css → styles.css} +0 -0
- /package/CapErrorStateIllustration/{styles.module.css → styles.css} +0 -0
- /package/CapExpressionEditor/{styles.module.css → styles.css} +0 -0
- /package/CapForm/{styles.module.css → styles.css} +0 -0
- /package/CapFormItem/{styles.module.css → styles.css} +0 -0
- /package/CapGraph/{styles.module.css → styles.css} +0 -0
- /package/CapHamburgerMenu/{styles.module.css → styles.css} +0 -0
- /package/CapHeader/{styles.module.css → styles.css} +0 -0
- /package/CapHeading/{styles.module.css → styles.css} +0 -0
- /package/CapIcon/{styles.module.css → styles.css} +0 -0
- /package/CapIllustration/{styles.module.css → styles.css} +0 -0
- /package/CapImage/{styles.module.css → styles.css} +0 -0
- /package/CapImportMFEComponent/{styles.module.css → styles.css} +0 -0
- /package/CapInfoNote/{styles.module.css → styles.css} +0 -0
- /package/CapInput/{styles.module.css → styles.css} +0 -0
- /package/CapLabel/{styles.module.css → styles.css} +0 -0
- /package/CapLevelGraphRenderer/{styles.module.css → styles.css} +0 -0
- /package/CapLink/{styles.module.css → styles.css} +0 -0
- /package/CapList/{styles.module.css → styles.css} +0 -0
- /package/CapListLayout/{styles.module.css → styles.css} +0 -0
- /package/CapLogin/{styles.module.css → styles.css} +0 -0
- /package/CapModal/{styles.module.css → styles.css} +0 -0
- /package/CapMultiSelect/{styles.module.css → styles.css} +0 -0
- /package/CapMultiSelectDatePicker/{styles.module.css → styles.css} +0 -0
- /package/CapNavigation/{styles.module.css → styles.css} +0 -0
- /package/CapNotification/{styles.module.css → styles.css} +0 -0
- /package/CapNotificationDropdown/{styles.module.css → styles.css} +0 -0
- /package/CapPopover/{styles.module.css → styles.css} +0 -0
- /package/CapProgress/{styles.module.css → styles.css} +0 -0
- /package/CapRadio/{styles.module.css → styles.css} +0 -0
- /package/CapRadioButton/{styles.module.css → styles.css} +0 -0
- /package/CapRadioCard/{styles.module.css → styles.css} +0 -0
- /package/CapRadioGroup/{styles.module.css → styles.css} +0 -0
- /package/CapReorderComponent/{styles.module.css → styles.css} +0 -0
- /package/CapRoadMap/{styles.module.css → styles.css} +0 -0
- /package/CapRow/{styles.module.css → styles.css} +0 -0
- /package/CapSKUUploader/{styles.module.css → styles.css} +0 -0
- /package/CapSecondaryTopBar/{styles.module.css → styles.css} +0 -0
- /package/CapSelect/{styles.module.css → styles.css} +0 -0
- /package/CapShape/{styles.module.css → styles.css} +0 -0
- /package/CapSideBar/{_menuSearch.module.css → _menuSearch.css} +0 -0
- /package/CapSideBar/{styles.module.css → styles.css} +0 -0
- /package/CapSlideBox/{styles.module.css → styles.css} +0 -0
- /package/CapSlider/{styles.module.css → styles.css} +0 -0
- /package/CapSnackBar/{styles.module.css → styles.css} +0 -0
- /package/CapSomethingWentWrong/{styles.module.css → styles.css} +0 -0
- /package/CapSplit/{styles.module.css → styles.css} +0 -0
- /package/CapStatisticCard/{styles.module.css → styles.css} +0 -0
- /package/CapStatus/{styles.module.css → styles.css} +0 -0
- /package/CapSteps/{styles.module.css → styles.css} +0 -0
- /package/CapStepsAccordian/{styles.module.css → styles.css} +0 -0
- /package/CapSupportVideosWrapper/{styles.module.css → styles.css} +0 -0
- /package/CapSwitch/{styles.module.css → styles.css} +0 -0
- /package/CapTab/{styles.module.css → styles.css} +0 -0
- /package/CapTabV3/{styles.module.css → styles.css} +0 -0
- /package/CapTable/{styles.module.css → styles.css} +0 -0
- /package/CapTag/{styles.module.css → styles.css} +0 -0
- /package/CapTagDropdown/{styles.module.css → styles.css} +0 -0
- /package/CapTimePicker/{styles.module.css → styles.css} +0 -0
- /package/CapTooltip/{styles.module.css → styles.css} +0 -0
- /package/CapTooltipWithInfo/{styles.module.css → styles.css} +0 -0
- /package/CapTopBar/{CapOrgSelect.module.css → CapOrgSelect.css} +0 -0
- /package/CapTopBar/{styles.module.css → styles.css} +0 -0
- /package/CapTree/{styles.module.css → styles.css} +0 -0
- /package/CapTreeSelect/{styles.module.css → styles.css} +0 -0
- /package/CapUnifiedSelect/{styles.module.css → styles.css} +0 -0
- /package/CapUploader/{styles.module.css → styles.css} +0 -0
- /package/CapUserProfile/{styles.module.css → styles.css} +0 -0
- /package/assets/HOCs/ComponentWithLabelHOC/{styles.module.css → styles.css} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './styles.
|
|
1
|
+
import './styles.css';const imageTextBot = "imageTextBot";
|
|
2
2
|
const styles = {
|
|
3
3
|
"cap-media-generation-bot-content": "cap-media-generation-bot-content",
|
|
4
4
|
"cap-media-generation-bot-tab-container": "cap-media-generation-bot-tab-container",
|
|
@@ -4,7 +4,7 @@ import sendDisabledIconSvg from "../../assets/images/sendIconDisabled.svg.js";
|
|
|
4
4
|
import sendEnabledIconSvg from "../../assets/images/sendIconEnabled.svg.js";
|
|
5
5
|
import CapImage from "../../CapImage/index.js";
|
|
6
6
|
import CapRow from "../../CapRow/index.js";
|
|
7
|
-
import './styles.
|
|
7
|
+
import './styles.css';/* empty css */
|
|
8
8
|
const PromptAttachmentButton = ({
|
|
9
9
|
intl: { formatMessage: _formatMessage },
|
|
10
10
|
isSubmitButtonDisabled,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './styles.
|
|
1
|
+
import './styles.css';const styles = {
|
|
2
2
|
"cap-aira-content-type-message": "cap-aira-content-type-message",
|
|
3
3
|
"cap-aira-content-chat-container": "cap-aira-content-chat-container",
|
|
4
4
|
"cap-aira-content-generate-suggestions": "cap-aira-content-generate-suggestions",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './styles.
|
|
1
|
+
import './styles.css';const capConditionPreview__string = "capConditionPreview__string";
|
|
2
2
|
const capConditionPreview__flexWrapDiv = "capConditionPreview__flexWrapDiv";
|
|
3
3
|
const capConditionPreview__skuDownloadLink = "capConditionPreview__skuDownloadLink";
|
|
4
4
|
const capConditionPreview__label = "capConditionPreview__label";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './styles.
|
|
1
|
+
import './styles.css';const styles = {
|
|
2
2
|
"cap-custom-carousel-heading-label": "cap-custom-carousel-heading-label",
|
|
3
3
|
"cap-custom-carousel-header": "cap-custom-carousel-header",
|
|
4
4
|
"cap-custom-carousel-header-item": "cap-custom-carousel-header-item",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './styles.
|
|
1
|
+
import './styles.css';const styles = {
|
|
2
2
|
"cap-date-range-picker-v2__timezone-footer": "cap-date-range-picker-v2__timezone-footer",
|
|
3
3
|
"cap-icon": "cap-icon",
|
|
4
4
|
"cap-date-range-picker-v2--calendar-only": "cap-date-range-picker-v2--calendar-only"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './styles.
|
|
1
|
+
import './styles.css';const styles = {
|
|
2
2
|
"cap-date-time-range-picker--lock-start": "cap-date-time-range-picker--lock-start",
|
|
3
3
|
"ant-picker-input-start": "ant-picker-input-start",
|
|
4
4
|
"cap-date-time-range-picker--lock-end": "cap-date-time-range-picker--lock-end",
|
|
@@ -2,7 +2,7 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import get from "lodash/get";
|
|
3
3
|
import PropTypes from "prop-types";
|
|
4
4
|
import styled from "styled-components";
|
|
5
|
-
import '../CapAdvancedIcon/styles.
|
|
5
|
+
import '../CapAdvancedIcon/styles.css';/* empty css */
|
|
6
6
|
import CapIcon from "../CapIcon/index.js";
|
|
7
7
|
import CapLabelWithStatic from "../CapLabel/index.js";
|
|
8
8
|
import CapRow from "../CapRow/index.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './styles.
|
|
1
|
+
import './styles.css';const slideBoxContentContainer = "slideBoxContentContainer";
|
|
2
2
|
const styles = {
|
|
3
3
|
"cap-error-boundary-illustration-animation": "cap-error-boundary-illustration-animation",
|
|
4
4
|
slideBoxContentContainer,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/* Color Palette */
|
|
2
|
+
/* Fonts */
|
|
3
|
+
/* Backward Compatibility Aliases */
|
|
4
|
+
/* Component Heights */
|
|
5
|
+
/* Border Radius */
|
|
6
|
+
/* Border Width */
|
|
7
|
+
/* Transition */
|
|
8
|
+
/* Timezones Footer */
|
|
9
|
+
.canvas-container {
|
|
10
|
+
width: 100%;
|
|
11
|
+
height: 100%;
|
|
12
|
+
position: relative;
|
|
13
|
+
}
|
|
14
|
+
.tooltip-knob {
|
|
15
|
+
position: absolute;
|
|
16
|
+
display: none;
|
|
17
|
+
}
|
|
18
|
+
.popover-knob {
|
|
19
|
+
position: absolute;
|
|
20
|
+
display: none;
|
|
21
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
@import '../../styles/_variables.scss';
|
|
2
|
+
|
|
3
|
+
.canvas-container {
|
|
4
|
+
width: 100%;
|
|
5
|
+
height: 100%;
|
|
6
|
+
position: relative;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.tooltip-knob {
|
|
10
|
+
position: absolute;
|
|
11
|
+
display: none;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.popover-knob {
|
|
15
|
+
position: absolute;
|
|
16
|
+
display: none;
|
|
17
|
+
}
|
|
@@ -1,54 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
displayMonths: any;
|
|
5
|
-
dayGrid: any;
|
|
6
|
-
formattedEvents: any;
|
|
7
|
-
todayTooltipProps: any;
|
|
8
|
-
dashLineOffsetY: any;
|
|
9
|
-
eventHeight: any;
|
|
10
|
-
eventRowGap: any;
|
|
11
|
-
textPadding: any;
|
|
12
|
-
eventStartYOffset: any;
|
|
13
|
-
minCanvasHeight: any;
|
|
14
|
-
canvasFont: any;
|
|
15
|
-
popoverPlacement: any;
|
|
16
|
-
carouselDate: any;
|
|
17
|
-
popoverContent: any;
|
|
18
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
19
|
-
propTypes: {
|
|
20
|
-
popoverContent: PropTypes.Requireable<any>;
|
|
21
|
-
todayTooltipProps: PropTypes.Requireable<object>;
|
|
22
|
-
dashLineOffsetY: PropTypes.Requireable<number>;
|
|
23
|
-
eventHeight: PropTypes.Requireable<number>;
|
|
24
|
-
eventRowGap: PropTypes.Requireable<number>;
|
|
25
|
-
textPadding: PropTypes.Requireable<number>;
|
|
26
|
-
eventStartYOffset: PropTypes.Requireable<number>;
|
|
27
|
-
minCanvasHeight: PropTypes.Requireable<number>;
|
|
28
|
-
canvasFont: PropTypes.Requireable<string>;
|
|
29
|
-
popoverPlacement: PropTypes.Requireable<string>;
|
|
30
|
-
};
|
|
31
|
-
defaultProps: {
|
|
32
|
-
popoverContent: {
|
|
33
|
-
({ title }: {
|
|
34
|
-
title: any;
|
|
35
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
36
|
-
propTypes: {
|
|
37
|
-
title: PropTypes.Requireable<string>;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
dashLineOffsetY: number;
|
|
41
|
-
eventHeight: number;
|
|
42
|
-
eventRowGap: number;
|
|
43
|
-
textPadding: number;
|
|
44
|
-
eventStartYOffset: number;
|
|
45
|
-
minCanvasHeight: number;
|
|
46
|
-
todayTooltipProps: {
|
|
47
|
-
title: string;
|
|
48
|
-
};
|
|
49
|
-
canvasFont: string;
|
|
50
|
-
popoverPlacement: string;
|
|
51
|
-
};
|
|
52
|
-
};
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { CalendarCanvasProps } from '../types';
|
|
3
|
+
declare const CalendarCanvas: React.FC<CalendarCanvasProps>;
|
|
53
4
|
export default CalendarCanvas;
|
|
54
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/CapEventCalendar/CalendarCanvas/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/CapEventCalendar/CalendarCanvas/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgE,MAAM,OAAO,CAAC;AAcrF,OAAO,KAAK,EACV,mBAAmB,EAMpB,MAAM,UAAU,CAAC;AASlB,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA4ejD,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -1,32 +1,29 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import PropTypes from "prop-types";
|
|
3
2
|
import { useState, useRef, useEffect, useLayoutEffect, useMemo } from "react";
|
|
4
3
|
import { FORMAT_TOKENS } from "../../utils/dayjs.js";
|
|
5
|
-
import {
|
|
4
|
+
import { FONT_SIZE_S, FONT_FAMILY, FONT_COLOR_01 } from "../../styles/_variables.js";
|
|
6
5
|
import { DATE_KEY_FORMAT } from "../constants.js";
|
|
7
6
|
import { drawHeadingText, drawDashedLines, drawLineSeperator, drawTodayLine, drawRoundRectWithText } from "../drawUtils.js";
|
|
8
7
|
import { getDaysOfMonth } from "../utils.js";
|
|
8
|
+
import styles from "./calendarCanvasStyles.module.scss.js";
|
|
9
9
|
import { toggleTooltip, togglePopover } from "./utils.js";
|
|
10
10
|
import dayjs from "dayjs";
|
|
11
11
|
const DefaultPopover = ({ title }) => /* @__PURE__ */ jsx("div", { children: title });
|
|
12
|
-
DefaultPopover.propTypes = {
|
|
13
|
-
title: PropTypes.string
|
|
14
|
-
};
|
|
15
12
|
const CalendarCanvas = ({
|
|
16
13
|
displayMonths,
|
|
17
14
|
dayGrid,
|
|
18
15
|
formattedEvents,
|
|
19
16
|
todayTooltipProps,
|
|
20
|
-
dashLineOffsetY,
|
|
21
|
-
eventHeight,
|
|
22
|
-
eventRowGap,
|
|
23
|
-
textPadding,
|
|
24
|
-
eventStartYOffset,
|
|
25
|
-
minCanvasHeight,
|
|
26
|
-
canvasFont
|
|
27
|
-
popoverPlacement,
|
|
17
|
+
dashLineOffsetY = 20,
|
|
18
|
+
eventHeight = 24,
|
|
19
|
+
eventRowGap = 12,
|
|
20
|
+
textPadding = 12,
|
|
21
|
+
eventStartYOffset = 40,
|
|
22
|
+
minCanvasHeight = 0,
|
|
23
|
+
canvasFont = `normal ${FONT_SIZE_S} ${FONT_FAMILY}`,
|
|
24
|
+
popoverPlacement = "leftTop",
|
|
28
25
|
carouselDate,
|
|
29
|
-
popoverContent
|
|
26
|
+
popoverContent = DefaultPopover
|
|
30
27
|
}) => {
|
|
31
28
|
const [width, setWidth] = useState(0);
|
|
32
29
|
const [height, setHeight] = useState(0);
|
|
@@ -62,12 +59,13 @@ const CalendarCanvas = ({
|
|
|
62
59
|
}
|
|
63
60
|
}, []);
|
|
64
61
|
useEffect(() => {
|
|
62
|
+
var _a;
|
|
65
63
|
if (width > 0 && height > 0) {
|
|
66
|
-
contextRef.current.scale(pixelRatio, pixelRatio);
|
|
64
|
+
(_a = contextRef.current) == null ? void 0 : _a.scale(pixelRatio, pixelRatio);
|
|
67
65
|
}
|
|
68
66
|
}, [width, height]);
|
|
69
67
|
const hidePopoverAndToolTip = () => {
|
|
70
|
-
toggleTooltip(false, isTooltipVisible, todayTooltipProps, rootTooltipRef);
|
|
68
|
+
toggleTooltip(false, isTooltipVisible, todayTooltipProps ?? {}, rootTooltipRef);
|
|
71
69
|
togglePopover({ visible: false, rootPopoverRef, isPopoverVisible });
|
|
72
70
|
};
|
|
73
71
|
useEffect(() => {
|
|
@@ -87,6 +85,7 @@ const CalendarCanvas = ({
|
|
|
87
85
|
return false;
|
|
88
86
|
};
|
|
89
87
|
const handleDimension = () => {
|
|
88
|
+
if (!canvasContainerRef.current) return;
|
|
90
89
|
const minHeight = minCanvasHeight || canvasContainerRef.current.clientHeight;
|
|
91
90
|
const { y: rectY } = getRectInitDimension();
|
|
92
91
|
const estimatedHeight = rectY + eventStartYOffset + (eventHeight + eventRowGap) * totalEventRowsPerQuater.current;
|
|
@@ -187,10 +186,16 @@ const CalendarCanvas = ({
|
|
|
187
186
|
startX += rectWidth;
|
|
188
187
|
});
|
|
189
188
|
});
|
|
190
|
-
drawObject.current = { ...drawObject.current, day: dayObject };
|
|
189
|
+
drawObject.current = { ...drawObject.current ?? { day: {} }, day: dayObject };
|
|
191
190
|
return dayObject;
|
|
192
191
|
};
|
|
193
|
-
const updatePosition = ({
|
|
192
|
+
const updatePosition = ({
|
|
193
|
+
mouseX,
|
|
194
|
+
mouseY,
|
|
195
|
+
knob,
|
|
196
|
+
offsetX = 0
|
|
197
|
+
}) => {
|
|
198
|
+
if (!knob) return;
|
|
194
199
|
const { style: style2 } = knob;
|
|
195
200
|
if (mouseX) {
|
|
196
201
|
style2.display = "block";
|
|
@@ -221,7 +226,7 @@ const CalendarCanvas = ({
|
|
|
221
226
|
const handleTodayLine = ({ mouseX, mouseY } = {}) => {
|
|
222
227
|
const context = contextRef.current;
|
|
223
228
|
const currentDayObj = getTodayRectObj();
|
|
224
|
-
if (!currentDayObj) {
|
|
229
|
+
if (!currentDayObj || !context) {
|
|
225
230
|
return null;
|
|
226
231
|
}
|
|
227
232
|
const { y, midX, height: currentDayRectHeight } = currentDayObj;
|
|
@@ -262,7 +267,7 @@ const CalendarCanvas = ({
|
|
|
262
267
|
};
|
|
263
268
|
if (date) {
|
|
264
269
|
drawObject.current = {
|
|
265
|
-
...drawObject.current,
|
|
270
|
+
...drawObject.current ?? { day: {} },
|
|
266
271
|
day: { ...day, [date]: dayObject }
|
|
267
272
|
};
|
|
268
273
|
}
|
|
@@ -370,7 +375,7 @@ const CalendarCanvas = ({
|
|
|
370
375
|
isPopoverVisible,
|
|
371
376
|
popoverContent,
|
|
372
377
|
popoverPlacement,
|
|
373
|
-
popoverContentProps: { ...hoverEvent, ...hoverEvent.popoverProps }
|
|
378
|
+
popoverContentProps: { ...hoverEvent, ...hoverEvent.popoverProps ?? {} }
|
|
374
379
|
});
|
|
375
380
|
currentHoverEvent.current = {
|
|
376
381
|
...currentHoverEvent.current,
|
|
@@ -389,14 +394,14 @@ const CalendarCanvas = ({
|
|
|
389
394
|
mouseX: midX,
|
|
390
395
|
mouseY: mouseY / pixelRatio
|
|
391
396
|
});
|
|
392
|
-
toggleTooltip(mouseEvent, isTooltipVisible, todayTooltipProps, rootTooltipRef);
|
|
397
|
+
toggleTooltip(mouseEvent, isTooltipVisible, todayTooltipProps ?? {}, rootTooltipRef);
|
|
393
398
|
}
|
|
394
399
|
} else {
|
|
395
|
-
toggleTooltip(void 0, isTooltipVisible, todayTooltipProps, rootTooltipRef);
|
|
400
|
+
toggleTooltip(void 0, isTooltipVisible, todayTooltipProps ?? {}, rootTooltipRef);
|
|
396
401
|
}
|
|
397
402
|
toggleCursor(isTodayLineHovered || currentHoverEvent.current);
|
|
398
403
|
};
|
|
399
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
404
|
+
return /* @__PURE__ */ jsxs("div", { className: styles["canvas-container"], ref: canvasContainerRef, children: [
|
|
400
405
|
/* @__PURE__ */ jsx(
|
|
401
406
|
"canvas",
|
|
402
407
|
{
|
|
@@ -408,34 +413,10 @@ const CalendarCanvas = ({
|
|
|
408
413
|
onMouseMove
|
|
409
414
|
}
|
|
410
415
|
),
|
|
411
|
-
/* @__PURE__ */ jsx("div", {
|
|
412
|
-
/* @__PURE__ */ jsx("div", {
|
|
416
|
+
/* @__PURE__ */ jsx("div", { className: styles["tooltip-knob"], id: "event-calendar-tool-tip-knob" }),
|
|
417
|
+
/* @__PURE__ */ jsx("div", { className: styles["popover-knob"], id: "event-calendar-popover-knob" })
|
|
413
418
|
] });
|
|
414
419
|
};
|
|
415
|
-
CalendarCanvas.propTypes = {
|
|
416
|
-
popoverContent: PropTypes.any,
|
|
417
|
-
todayTooltipProps: PropTypes.object,
|
|
418
|
-
dashLineOffsetY: PropTypes.number,
|
|
419
|
-
eventHeight: PropTypes.number,
|
|
420
|
-
eventRowGap: PropTypes.number,
|
|
421
|
-
textPadding: PropTypes.number,
|
|
422
|
-
eventStartYOffset: PropTypes.number,
|
|
423
|
-
minCanvasHeight: PropTypes.number,
|
|
424
|
-
canvasFont: PropTypes.string,
|
|
425
|
-
popoverPlacement: PropTypes.string
|
|
426
|
-
};
|
|
427
|
-
CalendarCanvas.defaultProps = {
|
|
428
|
-
popoverContent: DefaultPopover,
|
|
429
|
-
dashLineOffsetY: 20,
|
|
430
|
-
eventHeight: 24,
|
|
431
|
-
eventRowGap: 12,
|
|
432
|
-
textPadding: 12,
|
|
433
|
-
eventStartYOffset: 40,
|
|
434
|
-
minCanvasHeight: 0,
|
|
435
|
-
todayTooltipProps: { title: "Today" },
|
|
436
|
-
canvasFont: `normal ${FONT_SIZE_S} ${FONT_FAMILY}`,
|
|
437
|
-
popoverPlacement: "leftTop"
|
|
438
|
-
};
|
|
439
420
|
export {
|
|
440
421
|
CalendarCanvas as default
|
|
441
422
|
};
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
popoverContent: any;
|
|
7
|
-
popoverPlacement: any;
|
|
8
|
-
popoverContentProps: any;
|
|
9
|
-
}) => void;
|
|
1
|
+
import type { MutableRefObject } from 'react';
|
|
2
|
+
import type { Root } from 'react-dom/client';
|
|
3
|
+
import type { TogglePopoverArgs } from '../types';
|
|
4
|
+
export declare const toggleTooltip: (visible: unknown, isTooltipVisible: MutableRefObject<boolean | null>, todayTooltipProps: Record<string, unknown>, rootTooltipRef: MutableRefObject<Root | null>) => void;
|
|
5
|
+
export declare const togglePopover: ({ visible, rootPopoverRef, isPopoverVisible, popoverContent, popoverPlacement, popoverContentProps, }: TogglePopoverArgs) => void;
|
|
10
6
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../components/CapEventCalendar/CalendarCanvas/utils.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../components/CapEventCalendar/CalendarCanvas/utils.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAE9C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAI7C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAElD,eAAO,MAAM,aAAa,GACxB,SAAS,OAAO,EAChB,kBAAkB,gBAAgB,CAAC,OAAO,GAAG,IAAI,CAAC,EAClD,mBAAmB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC1C,gBAAgB,gBAAgB,CAAC,IAAI,GAAG,IAAI,CAAC,SAkB9C,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,uGAO3B,iBAAiB,SA4BnB,CAAC"}
|