@capillarytech/blaze-ui 6.1.3 → 6.1.5

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 (52) hide show
  1. package/CapDragReorder/Card.d.ts +2 -2
  2. package/CapDragReorder/Card.d.ts.map +1 -1
  3. package/CapDragReorder/Card.js +53 -51
  4. package/CapDragReorder/index.d.ts +2 -9
  5. package/CapDragReorder/index.d.ts.map +1 -1
  6. package/CapDragReorder/index.js +26 -15
  7. package/CapDragReorder/styles.css +12 -2
  8. package/CapDragReorder/styles.d.ts +2 -12
  9. package/CapDragReorder/styles.d.ts.map +1 -1
  10. package/CapDragReorder/styles.js +1 -1
  11. package/CapDragReorder/styles.module.scss.js +29 -0
  12. package/CapDragReorder/styles.scss +23 -10
  13. package/CapDragReorder/tests/CapDragReorder.mockData.d.ts +4 -0
  14. package/CapDragReorder/tests/CapDragReorder.mockData.d.ts.map +1 -0
  15. package/CapDragReorder/types.d.ts +32 -0
  16. package/CapDragReorder/types.d.ts.map +1 -0
  17. package/CapDragReorder/types.js +1 -0
  18. package/CapProductSelection/index.d.ts +3 -29
  19. package/CapProductSelection/index.d.ts.map +1 -1
  20. package/CapProductSelection/index.js +52 -89
  21. package/CapProductSelection/messages.d.ts +76 -0
  22. package/CapProductSelection/messages.d.ts.map +1 -0
  23. package/CapProductSelection/messages.js +79 -0
  24. package/CapProductSelection/styles.css +81 -0
  25. package/CapProductSelection/styles.module.scss.js +8 -0
  26. package/CapProductSelection/styles.scss +65 -22
  27. package/CapProductSelection/tests/CapProductSelection.mockData.d.ts +36 -0
  28. package/CapProductSelection/tests/CapProductSelection.mockData.d.ts.map +1 -0
  29. package/CapProductSelection/types.d.ts +40 -0
  30. package/CapProductSelection/types.d.ts.map +1 -0
  31. package/CapProductSelection/types.js +1 -0
  32. package/CapSelectFilter/index.js +2 -2
  33. package/CapTreeView/index.d.ts +6 -28
  34. package/CapTreeView/index.d.ts.map +1 -1
  35. package/CapTreeView/index.js +63 -78
  36. package/CapTreeView/styles.css +12 -22
  37. package/CapTreeView/styles.module.scss.js +16 -0
  38. package/CapTreeView/styles.scss +26 -39
  39. package/CapTreeView/tests/CapTreeView.mockData.d.ts +5 -0
  40. package/CapTreeView/tests/CapTreeView.mockData.d.ts.map +1 -0
  41. package/CapTreeView/types.d.ts +16 -0
  42. package/CapTreeView/types.d.ts.map +1 -0
  43. package/CapTreeView/types.js +1 -0
  44. package/index.d.ts +6 -0
  45. package/index.d.ts.map +1 -1
  46. package/index.js +169 -163
  47. package/package.json +1 -1
  48. package/utils/getCapThemeConfig.d.ts.map +1 -1
  49. package/utils/getCapThemeConfig.js +11 -2
  50. package/CapProductSelection/style.d.ts +0 -3
  51. package/CapProductSelection/style.d.ts.map +0 -1
  52. package/CapProductSelection/style.js +0 -38
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import './styles.scss';
3
- export declare const Card: React.NamedExoticComponent<object>;
2
+ import type { CardProps } from './types';
3
+ export declare const Card: React.MemoExoticComponent<({ id, text, moveCard, findCard, title, weightage, tooltipMessage }: CardProps) => import("react/jsx-runtime").JSX.Element>;
4
4
  //# sourceMappingURL=Card.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../components/CapDragReorder/Card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;AAUpC,OAAO,eAAe,CAAC;AAEvB,eAAO,MAAM,IAAI,oCA4Df,CAAC"}
1
+ {"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../components/CapDragReorder/Card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;AAWpC,OAAO,KAAK,EAAE,SAAS,EAAY,MAAM,SAAS,CAAC;AAEnD,eAAO,MAAM,IAAI,iGACsD,SAAS,6CA+D/E,CAAC"}
@@ -7,59 +7,61 @@ import CapLabelWithStatic from "../CapLabel/index.js";
7
7
  import CapTooltip from "../CapTooltip/index.js";
8
8
  import messages from "./messages.js";
9
9
  import { style } from "./styles.js";
10
- import './styles.css';/* empty css */
11
- const Card = memo(({ id, text, moveCard, findCard, title, weightage, tooltipMessage }) => {
12
- const originalIndex = findCard(id).index;
13
- const [{ isDragging }, drag, preview] = useDrag(
14
- {
15
- accept: "card",
16
- item: { id, originalIndex, type: "card" },
17
- collect: (monitor) => ({
18
- isDragging: monitor.isDragging()
19
- }),
20
- end: (item, monitor) => {
21
- const { id: droppedId, originalIndex: originalIndex2 } = item;
22
- const didDrop = monitor.didDrop();
23
- if (!didDrop) {
24
- moveCard(droppedId, originalIndex2);
25
- }
26
- }
27
- },
28
- [id, originalIndex, moveCard]
29
- );
30
- const [, drop] = useDrop(
31
- {
32
- accept: "card",
33
- hover({ id: draggedId }) {
34
- if (draggedId !== id) {
35
- const { index: overIndex } = findCard(id);
36
- moveCard(draggedId, overIndex);
10
+ import styles from "./styles.module.scss.js";
11
+ const Card = memo(
12
+ ({ id, text, moveCard, findCard, title, weightage, tooltipMessage }) => {
13
+ const originalIndex = findCard(id).index;
14
+ const [{ isDragging }, drag, preview] = useDrag(
15
+ {
16
+ type: "card",
17
+ item: { id, originalIndex, type: "card" },
18
+ collect: (monitor) => ({
19
+ isDragging: monitor.isDragging()
20
+ }),
21
+ end: (item, monitor) => {
22
+ const { id: droppedId, originalIndex: origIdx } = item;
23
+ const didDrop = monitor.didDrop();
24
+ if (!didDrop) {
25
+ moveCard(droppedId, origIdx);
26
+ }
37
27
  }
38
- }
39
- },
40
- [findCard, moveCard]
41
- );
42
- const opacity = isDragging ? 0 : 1;
43
- return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("div", { ref: (node) => preview(drop(node)), style: { ...style, opacity }, children: /* @__PURE__ */ jsxs("div", { className: "card-body", children: [
44
- /* @__PURE__ */ jsx(
45
- CapTooltip,
28
+ },
29
+ [id, originalIndex, moveCard]
30
+ );
31
+ const [, drop] = useDrop(
46
32
  {
47
- title: tooltipMessage ? tooltipMessage : /* @__PURE__ */ jsx(FormattedMessage, { ...messages.dragTooltip }),
48
- children: /* @__PURE__ */ jsx("div", { ref: drag, children: /* @__PURE__ */ jsx(CapIcon, { type: "six-dots", className: "six-dots" }) })
49
- }
50
- ),
51
- /* @__PURE__ */ jsxs("div", { className: "card-data", children: [
52
- /* @__PURE__ */ jsx(CapLabelWithStatic, { type: "label16", children: title }),
53
- /* @__PURE__ */ jsx(CapLabelWithStatic, { type: "label1", className: "kpi-desc", children: text })
54
- ] }),
55
- /* @__PURE__ */ jsx(CapLabelWithStatic, { className: "cross", type: "label16", children: "x" }),
56
- /* @__PURE__ */ jsx(CapIcon, { className: "fill", type: "fill-circle", percent: weightage, size: "s" }),
57
- /* @__PURE__ */ jsxs(CapLabelWithStatic, { type: "label33", className: "card-split", children: [
58
- weightage,
59
- "%"
60
- ] })
61
- ] }) }) });
62
- });
33
+ accept: "card",
34
+ hover({ id: draggedId }) {
35
+ if (draggedId !== id) {
36
+ const { index: overIndex } = findCard(id);
37
+ moveCard(draggedId, overIndex);
38
+ }
39
+ }
40
+ },
41
+ [findCard, moveCard]
42
+ );
43
+ const opacity = isDragging ? 0 : 1;
44
+ return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("div", { ref: (node) => preview(drop(node)), style: { ...style, opacity }, children: /* @__PURE__ */ jsxs("div", { className: styles["card-body"], children: [
45
+ /* @__PURE__ */ jsx(
46
+ CapTooltip,
47
+ {
48
+ title: tooltipMessage ? tooltipMessage : /* @__PURE__ */ jsx(FormattedMessage, { ...messages.dragTooltip }),
49
+ children: /* @__PURE__ */ jsx("div", { ref: drag, children: /* @__PURE__ */ jsx(CapIcon, { type: "six-dots", className: styles["six-dots"] }) })
50
+ }
51
+ ),
52
+ /* @__PURE__ */ jsxs("div", { className: styles["card-data"], children: [
53
+ /* @__PURE__ */ jsx(CapLabelWithStatic, { type: "label16", children: title }),
54
+ /* @__PURE__ */ jsx(CapLabelWithStatic, { type: "label1", className: styles["kpi-desc"], children: text })
55
+ ] }),
56
+ /* @__PURE__ */ jsx(CapLabelWithStatic, { className: styles["cross"], type: "label16", children: "x" }),
57
+ /* @__PURE__ */ jsx(CapIcon, { className: styles["fill"], type: "fill-circle", percent: weightage, size: "s" }),
58
+ /* @__PURE__ */ jsxs(CapLabelWithStatic, { type: "label33", className: styles["card-split"], children: [
59
+ weightage,
60
+ "%"
61
+ ] })
62
+ ] }) }) });
63
+ }
64
+ );
63
65
  export {
64
66
  Card
65
67
  };
@@ -1,10 +1,3 @@
1
- import PropTypes from 'prop-types';
2
- declare function CapDragReorder(props: any): import("react/jsx-runtime").JSX.Element;
3
- declare namespace CapDragReorder {
4
- var propTypes: {
5
- cards: PropTypes.Requireable<any[]>;
6
- setCards: PropTypes.Requireable<(...args: any[]) => any>;
7
- };
8
- }
9
- export default CapDragReorder;
1
+ import type { CapDragReorderProps } from './types';
2
+ export default function CapDragReorder({ cards, setCards, onCardDelete, supportDelete, tooltipMessage, }: CapDragReorderProps): import("react/jsx-runtime").JSX.Element;
10
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../components/CapDragReorder/index.tsx"],"names":[],"mappings":"AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAWnC,iBAAwB,cAAc,CAAC,KAAK,KAAA,2CAyE3C;kBAzEuB,cAAc;;;;;;eAAd,cAAc"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../components/CapDragReorder/index.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEnD,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EACrC,KAAK,EACL,QAAQ,EACR,YAAY,EACZ,aAAa,EACb,cAAc,GACf,EAAE,mBAAmB,2CAiFrB"}
@@ -1,6 +1,5 @@
1
1
  import { jsx, Fragment, jsxs } from "react/jsx-runtime";
2
2
  import update from "immutability-helper";
3
- import PropTypes from "prop-types";
4
3
  import { useCallback } from "react";
5
4
  import { useDrop } from "react-dnd";
6
5
  import CapButton from "../CapButton/index.js";
@@ -8,8 +7,14 @@ import CapDivider from "../CapDivider/index.js";
8
7
  import CapIcon from "../CapIcon/index.js";
9
8
  import CapLabelWithStatic from "../CapLabel/index.js";
10
9
  import { Card } from "./Card.js";
11
- function CapDragReorder(props) {
12
- const { cards, setCards, onCardDelete, supportDelete, tooltipMessage } = props;
10
+ import styles from "./styles.module.scss.js";
11
+ function CapDragReorder({
12
+ cards,
13
+ setCards,
14
+ onCardDelete,
15
+ supportDelete,
16
+ tooltipMessage
17
+ }) {
13
18
  const findCard = useCallback(
14
19
  (id) => {
15
20
  const card = cards.filter((c) => `${c.id}` === id)[0];
@@ -35,14 +40,15 @@ function CapDragReorder(props) {
35
40
  [findCard, cards, setCards]
36
41
  );
37
42
  const handleDelete = (event) => {
38
- onCardDelete(event.target.id);
43
+ const target = event.currentTarget;
44
+ onCardDelete == null ? void 0 : onCardDelete(Number(target.id));
39
45
  };
40
46
  const [, drop] = useDrop({
41
47
  accept: "card"
42
48
  });
43
- return /* @__PURE__ */ jsx("div", { ref: drop, children: cards.map((card, index) => /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs("div", { className: "card-area", children: [
44
- /* @__PURE__ */ jsx("div", { className: "rank-area", children: /* @__PURE__ */ jsx(CapLabelWithStatic, { className: "rank-label", type: "label2", children: index + 1 }) }),
45
- /* @__PURE__ */ jsxs("div", { className: "card", children: [
49
+ return /* @__PURE__ */ jsx("div", { ref: drop, children: cards.map((card, index) => /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs("div", { className: styles["card-area"], children: [
50
+ /* @__PURE__ */ jsx("div", { className: styles["rank-area"], children: /* @__PURE__ */ jsx(CapLabelWithStatic, { className: styles["rank-label"], type: "label2", children: index + 1 }) }),
51
+ /* @__PURE__ */ jsxs("div", { className: styles["card"], children: [
46
52
  /* @__PURE__ */ jsx(
47
53
  Card,
48
54
  {
@@ -56,18 +62,23 @@ function CapDragReorder(props) {
56
62
  },
57
63
  card.id
58
64
  ),
59
- index !== cards.length - 1 && /* @__PURE__ */ jsxs("div", { className: "separator", children: [
60
- /* @__PURE__ */ jsx(CapIcon, { className: "plus-icon", type: "add", size: "s" }),
61
- /* @__PURE__ */ jsx(CapDivider, { className: "card-divider" })
65
+ index !== cards.length - 1 && /* @__PURE__ */ jsxs("div", { className: styles["separator"], children: [
66
+ /* @__PURE__ */ jsx(CapIcon, { className: styles["plus-icon"], type: "add", size: "s" }),
67
+ /* @__PURE__ */ jsx(CapDivider, { className: styles["card-divider"] })
62
68
  ] })
63
69
  ] }),
64
- supportDelete && /* @__PURE__ */ jsx("div", { className: "delete-area", children: /* @__PURE__ */ jsx(CapButton, { type: "flat", className: "delete-icon", id: index, onClick: handleDelete, children: /* @__PURE__ */ jsx(CapIcon, { type: "delete", "aria-label": "delete icon" }) }) })
70
+ supportDelete && /* @__PURE__ */ jsx("div", { className: styles["delete-area"], children: /* @__PURE__ */ jsx(
71
+ CapButton,
72
+ {
73
+ type: "flat",
74
+ className: styles["delete-icon"],
75
+ id: String(index),
76
+ onClick: handleDelete,
77
+ children: /* @__PURE__ */ jsx(CapIcon, { type: "delete", "aria-label": "delete icon" })
78
+ }
79
+ ) })
65
80
  ] }) })) });
66
81
  }
67
- CapDragReorder.propTypes = {
68
- cards: PropTypes.array,
69
- setCards: PropTypes.func
70
- };
71
82
  export {
72
83
  CapDragReorder as default
73
84
  };
@@ -17,7 +17,7 @@
17
17
  width: 41.5rem;
18
18
  }
19
19
  .rank-area {
20
- background: #DFE2E7;
20
+ background: #dfe2e7;
21
21
  margin-top: 0.857rem;
22
22
  width: 2rem;
23
23
  height: 2rem;
@@ -45,7 +45,6 @@
45
45
  }
46
46
  .card-body {
47
47
  text-align: left;
48
- padding-top: 0.571rem;
49
48
  display: flex;
50
49
  }
51
50
  .six-dots {
@@ -62,6 +61,17 @@
62
61
  .fill {
63
62
  margin-left: 6rem;
64
63
  }
64
+ .fill .pie {
65
+ width: 2.571rem;
66
+ background: #b3bac5;
67
+ border-radius: 50%;
68
+ transform: rotate(-90deg);
69
+ }
70
+ .fill .pie circle {
71
+ fill: none;
72
+ stroke: #091e42;
73
+ stroke-width: 32;
74
+ }
65
75
  .card-split {
66
76
  display: inline;
67
77
  margin-top: 0.57rem;
@@ -1,13 +1,3 @@
1
- export declare const style: {
2
- border: string;
3
- display: string;
4
- marginBottom: string;
5
- backgroundColor: string;
6
- height: string;
7
- borderRadius: string;
8
- justify: string;
9
- padding: string;
10
- background: string;
11
- textAlign: string;
12
- };
1
+ import type { CSSProperties } from 'react';
2
+ export declare const style: CSSProperties;
13
3
  //# sourceMappingURL=styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../components/CapDragReorder/styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK;;;;;;;;;;;CAWjB,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../components/CapDragReorder/styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAI3C,eAAO,MAAM,KAAK,EAAE,aAWnB,CAAC"}
@@ -6,7 +6,7 @@ const style = {
6
6
  backgroundColor: "white",
7
7
  height: "3.9rem",
8
8
  borderRadius: "0.25rem",
9
- justify: "space-between",
9
+ justifyContent: "space-between",
10
10
  padding: "0.5rem 1rem",
11
11
  background: CAP_G09,
12
12
  textAlign: "center"
@@ -0,0 +1,29 @@
1
+ import './styles.css';const card = "card";
2
+ const separator = "separator";
3
+ const cross = "cross";
4
+ const fill = "fill";
5
+ const styles = {
6
+ "kpi-desc": "kpi-desc",
7
+ "card-area": "card-area",
8
+ "rank-area": "rank-area",
9
+ "rank-label": "rank-label",
10
+ card,
11
+ separator,
12
+ "card-divider": "card-divider",
13
+ "plus-icon": "plus-icon",
14
+ "card-body": "card-body",
15
+ "six-dots": "six-dots",
16
+ "card-data": "card-data",
17
+ cross,
18
+ fill,
19
+ "card-split": "card-split",
20
+ "delete-area": "delete-area",
21
+ "delete-icon": "delete-icon"
22
+ };
23
+ export {
24
+ card,
25
+ cross,
26
+ styles as default,
27
+ fill,
28
+ separator
29
+ };
@@ -10,7 +10,7 @@
10
10
  width: 41.5rem;
11
11
  }
12
12
  .rank-area {
13
- background: #DFE2E7;
13
+ background: $CAP_G07;
14
14
  margin-top: $CAP_SPACE_12;
15
15
  width: $CAP_SPACE_28;
16
16
  height: $CAP_SPACE_28;
@@ -18,17 +18,17 @@
18
18
  margin-right: $CAP_SPACE_16;
19
19
  text-align: center;
20
20
  }
21
- .rank-label{
21
+ .rank-label {
22
22
  margin-top: $CAP_SPACE_06;
23
23
  }
24
24
  .card {
25
25
  width: 32.9rem;
26
26
  }
27
- .separator{
27
+ .separator {
28
28
  display: flex;
29
29
  height: $CAP_SPACE_32;
30
30
  }
31
- .card-divider{
31
+ .card-divider {
32
32
  margin: auto !important;
33
33
  min-width: 29.9rem;
34
34
  width: 29.9rem;
@@ -36,17 +36,16 @@
36
36
  .plus-icon {
37
37
  margin: auto;
38
38
  }
39
- .card-body{
39
+ .card-body {
40
40
  text-align: left;
41
- padding-top: $CAP_SPACE_08;
42
41
  display: flex;
43
42
  }
44
- .six-dots{
43
+ .six-dots {
45
44
  padding: 0.3125rem 0.5rem 1rem 1rem;
46
45
  cursor: move;
47
46
  }
48
47
  .card-data {
49
- margin-top: 0.25rem;
48
+ margin-top: 0.25rem;
50
49
  width: 13.72rem;
51
50
  }
52
51
  .cross {
@@ -54,17 +53,31 @@
54
53
  }
55
54
  .fill {
56
55
  margin-left: 6rem;
56
+
57
+ // Pie chart icon styles for fill-circle CapIcon
58
+ :global(.pie) {
59
+ width: $CAP_SPACE_36;
60
+ background: $CAP_G06;
61
+ border-radius: 50%;
62
+ transform: rotate(-90deg);
63
+ }
64
+
65
+ :global(.pie) circle {
66
+ fill: none;
67
+ stroke: $CAP_G01;
68
+ stroke-width: 32;
69
+ }
57
70
  }
58
71
  .card-split {
59
72
  display: inline;
60
73
  margin-top: 0.57rem;
61
74
  margin-left: $CAP_SPACE_16;
62
75
  }
63
- .delete-area{
76
+ .delete-area {
64
77
  margin-left: auto;
65
78
  margin-top: $CAP_SPACE_08;
66
79
  }
67
80
  .delete-icon {
68
81
  color: $CAP_G01 !important;
69
82
  margin-left: $CAP_SPACE_08;
70
- }
83
+ }
@@ -0,0 +1,4 @@
1
+ import type { CardData } from '../types';
2
+ export declare const mockCards: CardData[];
3
+ export declare const twoCards: CardData[];
4
+ //# sourceMappingURL=CapDragReorder.mockData.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CapDragReorder.mockData.d.ts","sourceRoot":"","sources":["../../../components/CapDragReorder/tests/CapDragReorder.mockData.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEzC,eAAO,MAAM,SAAS,EAAE,QAAQ,EAI/B,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,QAAQ,EAG9B,CAAC"}
@@ -0,0 +1,32 @@
1
+ import type React from 'react';
2
+ export interface DragItem {
3
+ id: string;
4
+ originalIndex: number;
5
+ type: string;
6
+ }
7
+ export interface CardData {
8
+ id: number | string;
9
+ title: string;
10
+ text: string;
11
+ weightage: number;
12
+ }
13
+ export interface CardProps {
14
+ id: string;
15
+ text: string;
16
+ title: string;
17
+ weightage: number;
18
+ moveCard: (id: string, atIndex: number) => void;
19
+ findCard: (id: string) => {
20
+ card: CardData;
21
+ index: number;
22
+ };
23
+ tooltipMessage?: React.ReactNode;
24
+ }
25
+ export interface CapDragReorderProps {
26
+ cards: CardData[];
27
+ setCards: (cards: CardData[]) => void;
28
+ onCardDelete?: (id: number | string) => void;
29
+ supportDelete?: boolean;
30
+ tooltipMessage?: React.ReactNode;
31
+ }
32
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../components/CapDragReorder/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,aAAa,EAAE,MAAM,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAChD,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK;QAAE,IAAI,EAAE,QAAQ,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAC5D,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAClC;AAED,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,QAAQ,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,KAAK,IAAI,CAAC;IACtC,YAAY,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,KAAK,IAAI,CAAC;IAC7C,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAClC"}
@@ -0,0 +1 @@
1
+
@@ -1,32 +1,6 @@
1
1
  import React from 'react';
2
- declare const _default: React.ComponentType<Omit<{
3
- [x: string]: any;
4
- treeData: any;
5
- target: any;
6
- trigger?: string;
7
- placement: any;
8
- overlayClassName: any;
9
- selectedAttributes?: any[];
10
- handleSelect?: () => void;
11
- isProductMandatory: any;
12
- lineItem: any;
13
- selectAttribute: any;
14
- brand: any;
15
- brandInfo: any;
16
- category: any;
17
- categoryInfo: any;
18
- product: any;
19
- productInfo: any;
20
- SKU: any;
21
- uploadSKU: any;
22
- uploadSKUInfo: any;
23
- comingSoon: any;
24
- changeSelection: any;
25
- description: any;
26
- okText: any;
27
- cancelText: any;
28
- selectValues: any;
29
- atleast1Attribute: any;
30
- } & import("react-intl").WrappedComponentProps, "intl">>;
2
+ import type { CapProductSelectionWithIntlProps } from './types';
3
+ declare const _default: React.ComponentType<Omit<CapProductSelectionWithIntlProps, "intl">>;
31
4
  export default _default;
5
+ export type { CapProductSelectionProps, TreeNodeItem, TreeDataItem } from './types';
32
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../components/CapProductSelection/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAA8B,MAAM,OAAO,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoZnD,wBAA8E"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../components/CapProductSelection/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA8B,MAAM,OAAO,CAAC;AA0BnD,OAAO,KAAK,EAAE,gCAAgC,EAAgB,MAAM,SAAS,CAAC;;AAmV9E,wBAA+C;AAC/C,YAAY,EAAE,wBAAwB,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC"}