@capillarytech/blaze-ui 6.3.0 → 6.4.0

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 (94) hide show
  1. package/CapDateRangePicker/index.d.ts.map +1 -1
  2. package/CapDateRangePicker/index.js +1 -5
  3. package/CapDateRangePicker/styles.css +0 -28
  4. package/CapDateRangePicker/styles.module.scss.js +1 -2
  5. package/CapDateRangePicker/styles.scss +0 -37
  6. package/CapDateRangePicker/types.d.ts +0 -5
  7. package/CapDateRangePicker/types.d.ts.map +1 -1
  8. package/CapDragAndDrop/index.d.ts +3 -19
  9. package/CapDragAndDrop/index.d.ts.map +1 -1
  10. package/CapDragAndDrop/index.js +24 -29
  11. package/CapDragAndDrop/messages.d.ts +25 -0
  12. package/CapDragAndDrop/messages.d.ts.map +1 -0
  13. package/CapDragAndDrop/messages.js +28 -0
  14. package/CapDragAndDrop/styles.css +17 -15
  15. package/CapDragAndDrop/styles.module.scss.js +21 -0
  16. package/CapDragAndDrop/styles.scss +18 -16
  17. package/CapDragAndDrop/types.d.ts +17 -0
  18. package/CapDragAndDrop/types.d.ts.map +1 -0
  19. package/CapMobileDateRangePicker/ReactMobileDatePickerModule.d.ts.map +1 -1
  20. package/CapMobileDateRangePicker/ReactMobileDatePickerModule.js +1 -2
  21. package/CapMobileDateRangePicker/index.d.ts +21 -5
  22. package/CapMobileDateRangePicker/index.d.ts.map +1 -1
  23. package/CapMobileDateRangePicker/index.js +309 -262
  24. package/CapMobileDateRangePicker/styles.css +144 -107
  25. package/CapMobileDateRangePicker/styles.scss +192 -188
  26. package/CapTimeline/CapTimelineCard.d.ts +4 -27
  27. package/CapTimeline/CapTimelineCard.d.ts.map +1 -1
  28. package/CapTimeline/CapTimelineCard.js +40 -157
  29. package/CapTimeline/CapTimelinePanesWrapper.d.ts +4 -25
  30. package/CapTimeline/CapTimelinePanesWrapper.d.ts.map +1 -1
  31. package/CapTimeline/CapTimelinePanesWrapper.js +24 -20
  32. package/CapTimeline/index.d.ts +2 -17
  33. package/CapTimeline/index.d.ts.map +1 -1
  34. package/CapTimeline/index.js +62 -23
  35. package/CapTimeline/messages.d.ts +21 -0
  36. package/CapTimeline/messages.d.ts.map +1 -0
  37. package/CapTimeline/messages.js +24 -0
  38. package/CapTimeline/styles.css +40 -40
  39. package/CapTimeline/styles.module.scss.js +30 -0
  40. package/CapTimeline/styles.scss +76 -57
  41. package/CapTimeline/tests/CapTimeline.mockData.d.ts +14 -0
  42. package/CapTimeline/tests/CapTimeline.mockData.d.ts.map +1 -0
  43. package/CapTimeline/types.d.ts +60 -0
  44. package/CapTimeline/types.d.ts.map +1 -0
  45. package/CapTimeline/types.js +1 -0
  46. package/index.d.ts +4 -2
  47. package/index.d.ts.map +1 -1
  48. package/index.js +99 -97
  49. package/package.json +1 -1
  50. package/utils/dayjs.d.ts +0 -29
  51. package/utils/dayjs.d.ts.map +1 -1
  52. package/utils/dayjs.js +0 -30
  53. package/utils/getCapThemeConfig.d.ts.map +1 -1
  54. package/utils/getCapThemeConfig.js +9 -1
  55. package/CapMobileDateRangePicker/DateRangeInputSelectors.d.ts +0 -7
  56. package/CapMobileDateRangePicker/DateRangeInputSelectors.d.ts.map +0 -1
  57. package/CapMobileDateRangePicker/DateRangeInputSelectors.js +0 -68
  58. package/CapMobileDateRangePicker/messages.d.ts +0 -17
  59. package/CapMobileDateRangePicker/messages.d.ts.map +0 -1
  60. package/CapMobileDateRangePicker/messages.js +0 -20
  61. package/CapMobileDateRangePicker/styles.module.scss.js +0 -21
  62. package/CapMobileDateRangePicker/tests/CapMobileDateRangePicker.mockData.d.ts +0 -18
  63. package/CapMobileDateRangePicker/tests/CapMobileDateRangePicker.mockData.d.ts.map +0 -1
  64. package/CapMobileDateRangePicker/types.d.ts +0 -95
  65. package/CapMobileDateRangePicker/types.d.ts.map +0 -1
  66. package/CapVirtualSelect/actions.d.ts +0 -16
  67. package/CapVirtualSelect/actions.d.ts.map +0 -1
  68. package/CapVirtualSelect/actions.js +0 -21
  69. package/CapVirtualSelect/constants.d.ts +0 -13
  70. package/CapVirtualSelect/constants.d.ts.map +0 -1
  71. package/CapVirtualSelect/constants.js +0 -26
  72. package/CapVirtualSelect/index.d.ts +0 -169
  73. package/CapVirtualSelect/index.d.ts.map +0 -1
  74. package/CapVirtualSelect/index.js +0 -409
  75. package/CapVirtualSelect/messages.d.ts +0 -9
  76. package/CapVirtualSelect/messages.d.ts.map +0 -1
  77. package/CapVirtualSelect/messages.js +0 -12
  78. package/CapVirtualSelect/reducer.d.ts +0 -4
  79. package/CapVirtualSelect/reducer.d.ts.map +0 -1
  80. package/CapVirtualSelect/reducer.js +0 -63
  81. package/CapVirtualSelect/saga.d.ts +0 -40
  82. package/CapVirtualSelect/saga.d.ts.map +0 -1
  83. package/CapVirtualSelect/saga.js +0 -91
  84. package/CapVirtualSelect/selectors.d.ts +0 -28
  85. package/CapVirtualSelect/selectors.d.ts.map +0 -1
  86. package/CapVirtualSelect/selectors.js +0 -30
  87. package/CapVirtualSelect/styles.css +0 -110
  88. package/CapVirtualSelect/styles.scss +0 -106
  89. package/CapVirtualSelect/tests/mockData.d.ts +0 -7
  90. package/CapVirtualSelect/tests/mockData.d.ts.map +0 -1
  91. package/CapVirtualSelect/utils.d.ts +0 -2
  92. package/CapVirtualSelect/utils.d.ts.map +0 -1
  93. package/CapVirtualSelect/utils.js +0 -12
  94. /package/{CapMobileDateRangePicker → CapDragAndDrop}/types.js +0 -0
@@ -1,28 +1,7 @@
1
- import PropTypes from 'prop-types';
2
1
  import React from 'react';
3
- import './styles.scss';
4
- export declare const CapTimelinePanesWrapper: {
5
- ({ className, isReviewScreen, activeTab, timelineLeftPaneContents, timelineRightCards, }: {
6
- className: any;
7
- isReviewScreen: any;
8
- activeTab: any;
9
- timelineLeftPaneContents: any;
10
- timelineRightCards: any;
11
- }): import("react/jsx-runtime").JSX.Element;
12
- propTypes: {
13
- className: PropTypes.Requireable<string>;
14
- isReviewScreen: PropTypes.Requireable<boolean>;
15
- activeTab: PropTypes.Requireable<string>;
16
- timelineLeftPaneContents: PropTypes.Requireable<object>;
17
- timelineRightCards: PropTypes.Requireable<any[]>;
18
- };
19
- };
20
- declare const _default: React.ComponentType<Omit<{
21
- className: any;
22
- isReviewScreen: any;
23
- activeTab: any;
24
- timelineLeftPaneContents: any;
25
- timelineRightCards: any;
26
- } & import("react-intl").WrappedComponentProps, "intl">>;
2
+ import type { WrappedComponentProps } from 'react-intl';
3
+ import type { CapTimelinePanesWrapperProps } from './types';
4
+ export declare const CapTimelinePanesWrapper: ({ className, isReviewScreen, activeTab, timelineLeftPaneContents, timelineRightCards, timelineClassName, }: CapTimelinePanesWrapperProps & WrappedComponentProps) => import("react/jsx-runtime").JSX.Element;
5
+ declare const _default: React.ComponentType<Omit<CapTimelinePanesWrapperProps & WrappedComponentProps, "intl">>;
27
6
  export default _default;
28
7
  //# sourceMappingURL=CapTimelinePanesWrapper.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CapTimelinePanesWrapper.d.ts","sourceRoot":"","sources":["../../components/CapTimeline/CapTimelinePanesWrapper.tsx"],"names":[],"mappings":"AAIA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,OAAO,eAAe,CAAC;AAIvB,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;CAuCnC,CAAC;;;;;;;;AAUF,wBAEG"}
1
+ {"version":3,"file":"CapTimelinePanesWrapper.d.ts","sourceRoot":"","sources":["../../components/CapTimeline/CapTimelinePanesWrapper.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAOxD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,SAAS,CAAC;AAI5D,eAAO,MAAM,uBAAuB,GAAI,4GAOrC,4BAA4B,GAAG,qBAAqB,4CA+CtD,CAAC;;AAEF,wBAAmD"}
@@ -1,47 +1,51 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
+ import { Timeline } from "antd-v5";
2
3
  import classNames from "classnames";
3
- import PropTypes from "prop-types";
4
+ import { injectIntl } from "react-intl";
4
5
  import CapColumn from "../CapColumn/index.js";
5
6
  import CapDivider from "../CapDivider/index.js";
6
7
  import CapRow from "../CapRow/index.js";
7
- import LocaleHoc from "../LocaleHoc/index.js";
8
- import './styles.css';/* empty css */
8
+ import styles from "./styles.module.scss.js";
9
9
  const clsPrefix = "cap-timeline-panes-wrapper-v1";
10
10
  const CapTimelinePanesWrapper = ({
11
11
  className,
12
12
  isReviewScreen,
13
13
  activeTab,
14
14
  timelineLeftPaneContents,
15
- timelineRightCards
15
+ timelineRightCards,
16
+ timelineClassName
16
17
  }) => {
17
18
  const renderActiveTabContent = () => {
18
19
  return Object.keys(timelineLeftPaneContents).map((key, index) => {
19
- const className2 = activeTab === key || isReviewScreen ? `${clsPrefix}-active-pane` : `${clsPrefix}-inactive-pane`;
20
- return /* @__PURE__ */ jsx(CapRow, { className: classNames(className2), id: key, children: timelineLeftPaneContents[key] }, index);
20
+ const paneClassName = activeTab === key || isReviewScreen ? styles[`${clsPrefix}-active-pane`] : styles[`${clsPrefix}-inactive-pane`];
21
+ return /* @__PURE__ */ jsx(CapRow, { className: classNames(paneClassName), id: key, children: timelineLeftPaneContents[key] }, index);
21
22
  });
22
23
  };
23
- return /* @__PURE__ */ jsxs(CapRow, { className: classNames(className, `${clsPrefix}-pane-wrapper`), children: [
24
- /* @__PURE__ */ jsx(CapColumn, { className: classNames(`${clsPrefix}-left-pane-col`, `${clsPrefix}-custom-scroll`), children: timelineRightCards }),
25
- /* @__PURE__ */ jsx(CapColumn, { className: classNames(`${clsPrefix}-divider-col`), children: /* @__PURE__ */ jsx(CapDivider, { className: `${clsPrefix}-timelinePane-divider`, type: "vertical" }) }),
24
+ return /* @__PURE__ */ jsxs(CapRow, { className: classNames(className, styles[`${clsPrefix}-pane-wrapper`]), children: [
26
25
  /* @__PURE__ */ jsx(
27
26
  CapColumn,
28
27
  {
29
- className: classNames(`${clsPrefix}-right-pane-col`, `${clsPrefix}-custom-scroll`),
28
+ className: classNames(
29
+ styles[`${clsPrefix}-left-pane-col`],
30
+ styles[`${clsPrefix}-custom-scroll`]
31
+ ),
32
+ children: /* @__PURE__ */ jsx(Timeline, { className: timelineClassName, children: timelineRightCards.map((item) => /* @__PURE__ */ jsx(Timeline.Item, { dot: item.icon, className: item.className, children: item.content }, item.key)) })
33
+ }
34
+ ),
35
+ /* @__PURE__ */ jsx(CapColumn, { className: classNames(styles[`${clsPrefix}-divider-col`]), children: /* @__PURE__ */ jsx(CapDivider, { className: styles[`${clsPrefix}-timelinePane-divider`], type: "vertical" }) }),
36
+ /* @__PURE__ */ jsx(
37
+ CapColumn,
38
+ {
39
+ className: classNames(
40
+ styles[`${clsPrefix}-right-pane-col`],
41
+ styles[`${clsPrefix}-custom-scroll`]
42
+ ),
30
43
  children: renderActiveTabContent()
31
44
  }
32
45
  )
33
46
  ] });
34
47
  };
35
- CapTimelinePanesWrapper.propTypes = {
36
- className: PropTypes.string,
37
- isReviewScreen: PropTypes.bool,
38
- activeTab: PropTypes.string,
39
- timelineLeftPaneContents: PropTypes.object,
40
- timelineRightCards: PropTypes.array
41
- };
42
- const CapTimelinePanesWrapper$1 = LocaleHoc(CapTimelinePanesWrapper, {
43
- key: "CapTimelinePanesWrapper"
44
- });
48
+ const CapTimelinePanesWrapper$1 = injectIntl(CapTimelinePanesWrapper);
45
49
  export {
46
50
  CapTimelinePanesWrapper,
47
51
  CapTimelinePanesWrapper$1 as default
@@ -3,22 +3,7 @@
3
3
  * CapTimeline
4
4
  *
5
5
  */
6
- import PropTypes from 'prop-types';
7
- import './styles.scss';
8
- declare const CapTimeline: {
9
- ({ className, timelinePanes, activeTab, isReviewScreen, width }: {
10
- className: any;
11
- timelinePanes: any;
12
- activeTab: any;
13
- isReviewScreen: any;
14
- width: any;
15
- }): import("react/jsx-runtime").JSX.Element;
16
- propTypes: {
17
- timelinePanes: PropTypes.Requireable<any[]>;
18
- currentStep: PropTypes.Requireable<string>;
19
- setCurrentStep: PropTypes.Requireable<(...args: any[]) => any>;
20
- width: PropTypes.Requireable<number>;
21
- };
22
- };
6
+ import type { CapTimelineProps } from './types';
7
+ declare const CapTimeline: ({ className, timelinePanes, activeTab, isReviewScreen, width, }: CapTimelineProps) => import("react/jsx-runtime").JSX.Element;
23
8
  export default CapTimeline;
24
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../components/CapTimeline/index.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,SAAS,MAAM,YAAY,CAAC;AAOnC,OAAO,eAAe,CAAC;AAIvB,QAAA,MAAM,WAAW;;;;;;;;;;;;;;CA6DhB,CAAC;AASF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../components/CapTimeline/index.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAaH,OAAO,KAAK,EAAE,gBAAgB,EAAoB,MAAM,SAAS,CAAC;AAMlE,QAAA,MAAM,WAAW,GAAI,iEAMlB,gBAAgB,4CAoHlB,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -1,13 +1,22 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { Timeline } from "antd";
3
2
  import classNames from "classnames";
4
- import PropTypes from "prop-types";
3
+ import CapIcon from "../CapIcon/index.js";
5
4
  import CapRow from "../CapRow/index.js";
5
+ import CapTooltip from "../CapTooltip/index.js";
6
+ import * as styles__variables from "../styles/_variables.js";
6
7
  import CapTimelineCard from "./CapTimelineCard.js";
7
8
  import CapTimelinePanesWrapper from "./CapTimelinePanesWrapper.js";
8
- import './styles.css';/* empty css */
9
+ import styles from "./styles.module.scss.js";
10
+ const { FONT_SIZE_M, CAP_G04, CAP_RED } = styles__variables;
11
+ const clsCardPrefix = "cap-timeline-card-v1";
9
12
  const clsPrefix = "cap-timeline-v1";
10
- const CapTimeline = ({ className, timelinePanes, activeTab, isReviewScreen, width }) => {
13
+ const CapTimeline = ({
14
+ className,
15
+ timelinePanes,
16
+ activeTab,
17
+ isReviewScreen,
18
+ width = 380
19
+ }) => {
11
20
  const { timelineLeftPaneContents, timelineRightCards } = timelinePanes.reduce(
12
21
  (accumulator, {
13
22
  milestoneHeader,
@@ -22,10 +31,37 @@ const CapTimeline = ({ className, timelinePanes, activeTab, isReviewScreen, widt
22
31
  content,
23
32
  configError,
24
33
  edited,
25
- handleClick
34
+ handleClick = () => {
35
+ }
26
36
  }, index) => {
27
- accumulator.timelineRightCards.push(
28
- /* @__PURE__ */ jsx(
37
+ const isSelected = activeTab === key;
38
+ const isLastPane = index === (timelinePanes == null ? void 0 : timelinePanes.length) - 1;
39
+ let icon;
40
+ if (disabled) {
41
+ icon = configError ? /* @__PURE__ */ jsx(CapIcon, { style: { color: CAP_RED, fontSize: FONT_SIZE_M }, type: "warning" }) : /* @__PURE__ */ jsx(
42
+ CapIcon,
43
+ {
44
+ style: { color: CAP_G04, fontSize: FONT_SIZE_M, marginTop: "1px" },
45
+ type: "exclamation-circle"
46
+ }
47
+ );
48
+ } else if (configError) {
49
+ icon = /* @__PURE__ */ jsx(CapTooltip, { title: "Warning", children: /* @__PURE__ */ jsx(CapIcon, { style: { color: CAP_RED, fontSize: FONT_SIZE_M }, type: "warning", size: "l" }) });
50
+ } else if (!complete || edited) {
51
+ icon = /* @__PURE__ */ jsx(CapTooltip, { title: "Pending", children: /* @__PURE__ */ jsx(
52
+ CapIcon,
53
+ {
54
+ style: { color: CAP_G04, fontSize: FONT_SIZE_M, marginTop: "1px" },
55
+ type: "exclamation-circle"
56
+ }
57
+ ) });
58
+ } else {
59
+ icon = /* @__PURE__ */ jsx(CapTooltip, { title: "Completed", children: /* @__PURE__ */ jsx("span", { className: styles[`${clsCardPrefix}-icon-parent`], children: /* @__PURE__ */ jsx(CapIcon, { type: "check", style: { fontSize: FONT_SIZE_M } }) }) });
60
+ }
61
+ const item = {
62
+ key,
63
+ icon,
64
+ content: /* @__PURE__ */ jsx(
29
65
  CapTimelineCard,
30
66
  {
31
67
  milestoneHeader,
@@ -37,15 +73,23 @@ const CapTimeline = ({ className, timelinePanes, activeTab, isReviewScreen, widt
37
73
  alwaysShowDescription,
38
74
  complete,
39
75
  configError,
40
- isLastPane: index === (timelinePanes == null ? void 0 : timelinePanes.length) - 1 ? true : false,
41
- width,
42
- edited,
43
76
  handleClick,
44
- isSelected: activeTab === key
45
- },
46
- key
77
+ isSelected,
78
+ isLastPane,
79
+ width
80
+ }
81
+ ),
82
+ className: classNames(
83
+ disabled ? styles[`${clsCardPrefix}-disabled-timeline-item`] : styles[`${clsCardPrefix}-enabled-timeline-item`],
84
+ isLastPane && styles[`${clsCardPrefix}-last-pane`],
85
+ !disabled && complete && styles[`${clsCardPrefix}-completed-tail`],
86
+ !disabled && configError && styles[`${clsCardPrefix}-warning-tail`],
87
+ !disabled && configError && styles[`${clsCardPrefix}-warning-card`],
88
+ !disabled && complete && !isSelected && styles[`${clsCardPrefix}-complete-head`],
89
+ !configError ? styles[`${clsCardPrefix}-division`] : styles[`${clsCardPrefix}-warning-division`]
47
90
  )
48
- );
91
+ };
92
+ accumulator.timelineRightCards.push(item);
49
93
  accumulator.timelineLeftPaneContents[key] = content;
50
94
  return accumulator;
51
95
  },
@@ -54,21 +98,16 @@ const CapTimeline = ({ className, timelinePanes, activeTab, isReviewScreen, widt
54
98
  timelineRightCards: []
55
99
  }
56
100
  );
57
- return /* @__PURE__ */ jsx(CapRow, { className, children: /* @__PURE__ */ jsx(Timeline, { className: classNames(`${clsPrefix}-body`), children: /* @__PURE__ */ jsx(
101
+ return /* @__PURE__ */ jsx(CapRow, { className, children: /* @__PURE__ */ jsx(
58
102
  CapTimelinePanesWrapper,
59
103
  {
60
104
  activeTab,
61
105
  timelineLeftPaneContents,
62
106
  timelineRightCards,
63
- isReviewScreen
107
+ isReviewScreen,
108
+ timelineClassName: styles[`${clsPrefix}-body`]
64
109
  }
65
- ) }) });
66
- };
67
- CapTimeline.propTypes = {
68
- timelinePanes: PropTypes.array,
69
- currentStep: PropTypes.string,
70
- setCurrentStep: PropTypes.func,
71
- width: PropTypes.number
110
+ ) });
72
111
  };
73
112
  export {
74
113
  CapTimeline as default
@@ -0,0 +1,21 @@
1
+ export declare const scope = "app.commonUtils.capUiLibrary.CapTimelineCard";
2
+ declare const _default: {
3
+ defaultConfiguringMessage: {
4
+ id: string;
5
+ defaultMessage: string;
6
+ };
7
+ defaultNotConfiguredMessage: {
8
+ id: string;
9
+ defaultMessage: string;
10
+ };
11
+ toConfigure: {
12
+ id: string;
13
+ defaultMessage: string;
14
+ };
15
+ completePrevSteps: {
16
+ id: string;
17
+ defaultMessage: string;
18
+ };
19
+ };
20
+ export default _default;
21
+ //# sourceMappingURL=messages.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../components/CapTimeline/messages.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK,iDAAiD,CAAC;;;;;;;;;;;;;;;;;;;AAEpE,wBAiBG"}
@@ -0,0 +1,24 @@
1
+ import { defineMessages } from "react-intl";
2
+ const scope = "app.commonUtils.capUiLibrary.CapTimelineCard";
3
+ const messages = defineMessages({
4
+ defaultConfiguringMessage: {
5
+ id: `${scope}.defaultConfiguringMessage`,
6
+ defaultMessage: "Configuring..."
7
+ },
8
+ defaultNotConfiguredMessage: {
9
+ id: `${scope}.defaultNotConfiguredMessage`,
10
+ defaultMessage: "Not configured yet..."
11
+ },
12
+ toConfigure: {
13
+ id: `${scope}.toConfigure`,
14
+ defaultMessage: "To configure "
15
+ },
16
+ completePrevSteps: {
17
+ id: `${scope}.completePrevSteps`,
18
+ defaultMessage: " complete the previous steps."
19
+ }
20
+ });
21
+ export {
22
+ messages as default,
23
+ scope
24
+ };
@@ -6,11 +6,8 @@
6
6
  /* Border Width */
7
7
  /* Transition */
8
8
  /* Timezones Footer */
9
- .cap-timeline-v1-body .ant-timeline-item-head-custom {
10
- top: 1.428rem;
11
- }
12
- .cap-timeline-v1-body .ant-timeline-item-tail {
13
- top: 1.857rem;
9
+ .cap-timeline-v1-body .ant-timeline-item-rail {
10
+ top: 2.1rem !important;
14
11
  }
15
12
  .cap-timeline-card-v1-pane-selected {
16
13
  background-color: #e9f0fe;
@@ -34,6 +31,7 @@
34
31
  .cap-timeline-panes-wrapper-v1-right-pane-col {
35
32
  height: 74vh;
36
33
  overflow: auto;
34
+ color: rgba(0, 0, 0, 0.65);
37
35
  }
38
36
  .cap-timeline-panes-wrapper-v1-left-pane-col {
39
37
  width: 39%;
@@ -46,17 +44,19 @@
46
44
  margin-left: 1.428rem;
47
45
  margin-right: 1.714rem;
48
46
  }
49
- .cap-timeline-panes-wrapper-v1-divider-col .cap-timeline-panes-wrapper-v1-timelinePane-divider,
50
- .cap-timeline-panes-wrapper-v1-divider-col .ant-divider ant-divider-vertical {
47
+ .cap-timeline-panes-wrapper-v1-divider-col .cap-timeline-panes-wrapper-v1-timelinePane-divider {
51
48
  margin: 0;
52
49
  }
53
- .cap-timeline-card-v1-division {
54
- margin-bottom: 0.857rem;
50
+ .ant-timeline-item.cap-timeline-card-v1-division .ant-timeline-item-icon {
51
+ border: 0.071rem solid #dfe2e7 !important;
52
+ border-radius: 50% !important;
53
+ padding: 0.214rem 0.214rem !important;
54
+ width: 1.714rem !important;
55
+ height: 1.714rem !important;
55
56
  }
56
- .cap-timeline-card-v1-division .ant-timeline-item-head {
57
- border: 0.143rem solid #dfe2e7;
58
- border-width: 0.071rem;
59
- border-radius: 50%;
57
+ .ant-timeline-item.cap-timeline-card-v1-warning-division .ant-timeline-item-icon {
58
+ border: 0.071rem solid #ea213a !important;
59
+ border-radius: 50% !important;
60
60
  padding: 0.214rem 0.214rem !important;
61
61
  width: 1.714rem !important;
62
62
  height: 1.714rem !important;
@@ -73,6 +73,7 @@
73
73
  }
74
74
  .cap-timeline-panes-wrapper-v1-pane-wrapper {
75
75
  display: flex;
76
+ flex-wrap: nowrap;
76
77
  }
77
78
  .cap-timeline-card-v1-disabled-timeline-item {
78
79
  cursor: not-allowed;
@@ -83,56 +84,55 @@
83
84
  .cap-timeline-card-v1-enabled-card:hover {
84
85
  background-color: #faf9f4;
85
86
  }
86
- .cap-timeline-card-v1-warning-card {
87
- border-color: #ea213a;
88
- }
89
87
  .cap-timeline-card-v1-icon-parent {
90
88
  border-radius: 2.857rem;
91
89
  border-color: beige;
92
90
  }
93
- .cap-timeline-card-v1-card-body .ant-card-body {
94
- padding: 0.571rem 1.142rem;
91
+ .cap-timeline-card-v1-card-body .ant-card-body,
92
+ .cap-timeline-card-v1-card-body .cap-card-wrapper .ant-card .ant-card-body {
93
+ padding: 0.571rem 1.142rem !important;
94
+ color: rgba(0, 0, 0, 0.65);
95
95
  }
96
- .cap-timeline-card-v1-last-pane .ant-timeline-item-tail {
96
+ .cap-timeline-card-v1-last-pane .ant-timeline-item-rail {
97
97
  display: none;
98
98
  }
99
- .cap-timeline-card-v1-completed-tail .ant-timeline-item-tail {
99
+ .cap-timeline-card-v1-completed-tail .ant-timeline-item-rail {
100
+ border-inline-start: 0.143rem solid #42b040;
100
101
  border-left: 0.143rem solid #42b040;
101
102
  }
102
- .cap-timeline-card-v1-warning-tail .ant-timeline-item-tail {
103
+ .cap-timeline-card-v1-warning-tail .ant-timeline-item-rail {
104
+ border-inline-start: 0.143rem solid #e8e8e8;
103
105
  border-left: 0.143rem solid #e8e8e8;
104
106
  }
105
- .cap-timeline-card-v1-complete-head .ant-timeline-item-head {
106
- border: 0.143rem solid #42b040;
107
- border-width: 0.143rem;
107
+ .ant-timeline-item.cap-timeline-card-v1-complete-head .ant-timeline-item-icon {
108
+ border: 0.143rem solid #42b040 !important;
109
+ border-radius: 50% !important;
110
+ width: 1.714rem !important;
111
+ height: 1.714rem !important;
112
+ overflow: hidden;
108
113
  }
109
114
  .cap-timeline-panes-wrapper-v1-timelinePane-divider.cap-divider-v2 {
110
115
  height: 32.857rem;
111
116
  }
112
- .cap-timeline-card-v1-warning-division {
113
- margin-bottom: 0.857rem;
114
- }
115
- .cap-timeline-card-v1-warning-division .ant-timeline-item-head {
116
- border: 0.143rem solid #ea213a;
117
- border-width: 0.071rem;
118
- border-radius: 50%;
119
- padding: 0.214rem 0.214rem !important;
120
- width: 1.714rem !important;
121
- height: 1.714rem !important;
122
- }
123
117
  .ant-timeline-item {
124
118
  padding: 0;
125
119
  }
126
120
  .ant-timeline-item .ant-timeline-item-content {
127
121
  top: 0;
128
- margin-left: 2.286rem;
129
122
  }
130
- .ant-timeline-item .ant-timeline-item-tail {
131
- left: 0.857rem;
123
+ .ant-timeline-item .ant-timeline-item-rail {
124
+ inset-inline-start: 0.857rem !important;
132
125
  }
133
- .ant-timeline-item .ant-timeline-item-head {
134
- left: 0.857rem;
126
+ .ant-timeline-item .ant-timeline-item-icon {
135
127
  display: flex;
136
128
  justify-content: center;
137
129
  align-items: center;
130
+ background-color: #ffffff;
131
+ z-index: 1;
132
+ }
133
+ .ant-timeline-item .ant-timeline-item-icon.ant-wave-target {
134
+ pointer-events: none;
135
+ }
136
+ .ant-timeline-item .ant-timeline-item-icon.ant-wave-target > * {
137
+ pointer-events: auto;
138
138
  }
@@ -0,0 +1,30 @@
1
+ import './styles.css';const styles = {
2
+ "cap-timeline-v1-body": "cap-timeline-v1-body",
3
+ "cap-timeline-card-v1-pane-selected": "cap-timeline-card-v1-pane-selected",
4
+ "cap-timeline-card-v1-card-description": "cap-timeline-card-v1-card-description",
5
+ "cap-timeline-panes-wrapper-v1-active-pane": "cap-timeline-panes-wrapper-v1-active-pane",
6
+ "cap-timeline-panes-wrapper-v1-inactive-pane": "cap-timeline-panes-wrapper-v1-inactive-pane",
7
+ "cap-timeline-panes-wrapper-v1-right-pane-content": "cap-timeline-panes-wrapper-v1-right-pane-content",
8
+ "cap-timeline-panes-wrapper-v1-left-pane-col": "cap-timeline-panes-wrapper-v1-left-pane-col",
9
+ "cap-timeline-panes-wrapper-v1-right-pane-col": "cap-timeline-panes-wrapper-v1-right-pane-col",
10
+ "cap-timeline-panes-wrapper-v1-divider-col": "cap-timeline-panes-wrapper-v1-divider-col",
11
+ "cap-timeline-panes-wrapper-v1-timelinePane-divider": "cap-timeline-panes-wrapper-v1-timelinePane-divider",
12
+ "cap-timeline-card-v1-division": "cap-timeline-card-v1-division",
13
+ "cap-timeline-card-v1-warning-division": "cap-timeline-card-v1-warning-division",
14
+ "cap-timeline-card-v1-disabled-card": "cap-timeline-card-v1-disabled-card",
15
+ "cap-timeline-card-v1-incomplete-card": "cap-timeline-card-v1-incomplete-card",
16
+ "cap-timeline-card-v1-warning-card": "cap-timeline-card-v1-warning-card",
17
+ "cap-timeline-panes-wrapper-v1-pane-wrapper": "cap-timeline-panes-wrapper-v1-pane-wrapper",
18
+ "cap-timeline-card-v1-disabled-timeline-item": "cap-timeline-card-v1-disabled-timeline-item",
19
+ "cap-timeline-card-v1-enabled-timeline-item": "cap-timeline-card-v1-enabled-timeline-item",
20
+ "cap-timeline-card-v1-enabled-card": "cap-timeline-card-v1-enabled-card",
21
+ "cap-timeline-card-v1-icon-parent": "cap-timeline-card-v1-icon-parent",
22
+ "cap-timeline-card-v1-card-body": "cap-timeline-card-v1-card-body",
23
+ "cap-timeline-card-v1-last-pane": "cap-timeline-card-v1-last-pane",
24
+ "cap-timeline-card-v1-completed-tail": "cap-timeline-card-v1-completed-tail",
25
+ "cap-timeline-card-v1-warning-tail": "cap-timeline-card-v1-warning-tail",
26
+ "cap-timeline-card-v1-complete-head": "cap-timeline-card-v1-complete-head"
27
+ };
28
+ export {
29
+ styles as default
30
+ };