@capillarytech/blaze-ui 6.1.2 → 6.1.3
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/CapMobileDatePicker/index.d.ts +5 -15
- package/CapMobileDatePicker/index.d.ts.map +1 -1
- package/CapMobileDatePicker/index.js +40 -22
- package/CapMobileDatePicker/messages.d.ts +9 -0
- package/CapMobileDatePicker/messages.d.ts.map +1 -0
- package/CapMobileDatePicker/messages.js +12 -0
- package/CapMobileDatePicker/styles.css +28 -11
- package/CapMobileDatePicker/styles.module.scss.js +10 -0
- package/CapMobileDatePicker/styles.scss +37 -16
- package/CapMobileDatePicker/tests/CapMobileDatePicker.mockData.d.ts +41 -0
- package/CapMobileDatePicker/tests/CapMobileDatePicker.mockData.d.ts.map +1 -0
- package/CapMobileDatePicker/types.d.ts +23 -0
- package/CapMobileDatePicker/types.d.ts.map +1 -0
- package/CapProductSelection/index.d.ts +29 -7
- package/CapProductSelection/index.d.ts.map +1 -1
- package/CapProductSelection/index.js +89 -52
- package/CapProductSelection/style.d.ts +3 -0
- package/CapProductSelection/style.d.ts.map +1 -0
- package/CapProductSelection/style.js +38 -0
- package/CapProductSelection/styles.scss +40 -82
- package/index.d.ts +2 -2
- package/index.d.ts.map +1 -1
- package/index.js +12 -12
- package/package.json +1 -1
- package/utils/dayjs.d.ts +1 -0
- package/utils/dayjs.d.ts.map +1 -1
- package/utils/dayjs.js +1 -0
- package/.npmrc +0 -3
- package/CapProductSelection/messages.d.ts +0 -76
- package/CapProductSelection/messages.d.ts.map +0 -1
- package/CapProductSelection/messages.js +0 -79
- package/CapProductSelection/styles.css +0 -81
- package/CapProductSelection/styles.module.scss.js +0 -8
- package/CapProductSelection/tests/CapProductSelection.mockData.d.ts +0 -36
- package/CapProductSelection/tests/CapProductSelection.mockData.d.ts.map +0 -1
- package/CapProductSelection/types.d.ts +0 -34
- package/CapProductSelection/types.d.ts.map +0 -1
- /package/{CapProductSelection → CapMobileDatePicker}/types.js +0 -0
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
lineItem: {
|
|
3
|
-
id: string;
|
|
4
|
-
defaultMessage: string;
|
|
5
|
-
};
|
|
6
|
-
selectAttribute: {
|
|
7
|
-
id: string;
|
|
8
|
-
defaultMessage: string;
|
|
9
|
-
};
|
|
10
|
-
brand: {
|
|
11
|
-
id: string;
|
|
12
|
-
defaultMessage: string;
|
|
13
|
-
};
|
|
14
|
-
brandInfo: {
|
|
15
|
-
id: string;
|
|
16
|
-
defaultMessage: string;
|
|
17
|
-
};
|
|
18
|
-
category: {
|
|
19
|
-
id: string;
|
|
20
|
-
defaultMessage: string;
|
|
21
|
-
};
|
|
22
|
-
categoryInfo: {
|
|
23
|
-
id: string;
|
|
24
|
-
defaultMessage: string;
|
|
25
|
-
};
|
|
26
|
-
product: {
|
|
27
|
-
id: string;
|
|
28
|
-
defaultMessage: string;
|
|
29
|
-
};
|
|
30
|
-
productInfo: {
|
|
31
|
-
id: string;
|
|
32
|
-
defaultMessage: string;
|
|
33
|
-
};
|
|
34
|
-
SKU: {
|
|
35
|
-
id: string;
|
|
36
|
-
defaultMessage: string;
|
|
37
|
-
};
|
|
38
|
-
uploadSKU: {
|
|
39
|
-
id: string;
|
|
40
|
-
defaultMessage: string;
|
|
41
|
-
};
|
|
42
|
-
uploadSKUInfo: {
|
|
43
|
-
id: string;
|
|
44
|
-
defaultMessage: string;
|
|
45
|
-
};
|
|
46
|
-
changeSelection: {
|
|
47
|
-
id: string;
|
|
48
|
-
defaultMessage: string;
|
|
49
|
-
};
|
|
50
|
-
description: {
|
|
51
|
-
id: string;
|
|
52
|
-
defaultMessage: string;
|
|
53
|
-
};
|
|
54
|
-
okText: {
|
|
55
|
-
id: string;
|
|
56
|
-
defaultMessage: string;
|
|
57
|
-
};
|
|
58
|
-
cancelText: {
|
|
59
|
-
id: string;
|
|
60
|
-
defaultMessage: string;
|
|
61
|
-
};
|
|
62
|
-
comingSoon: {
|
|
63
|
-
id: string;
|
|
64
|
-
defaultMessage: string;
|
|
65
|
-
};
|
|
66
|
-
selectValues: {
|
|
67
|
-
id: string;
|
|
68
|
-
defaultMessage: string;
|
|
69
|
-
};
|
|
70
|
-
atleast1Attribute: {
|
|
71
|
-
id: string;
|
|
72
|
-
defaultMessage: string;
|
|
73
|
-
};
|
|
74
|
-
};
|
|
75
|
-
export default _default;
|
|
76
|
-
//# sourceMappingURL=messages.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../components/CapProductSelection/messages.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,wBA0EG"}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { defineMessages } from "react-intl";
|
|
2
|
-
const scope = "blaze.components.CapProductSelection";
|
|
3
|
-
const messages = defineMessages({
|
|
4
|
-
lineItem: {
|
|
5
|
-
id: `${scope}.lineItem`,
|
|
6
|
-
defaultMessage: "Line items"
|
|
7
|
-
},
|
|
8
|
-
selectAttribute: {
|
|
9
|
-
id: `${scope}.selectAttribute`,
|
|
10
|
-
defaultMessage: "Select Attribute"
|
|
11
|
-
},
|
|
12
|
-
brand: {
|
|
13
|
-
id: `${scope}.brand`,
|
|
14
|
-
defaultMessage: "Brand"
|
|
15
|
-
},
|
|
16
|
-
brandInfo: {
|
|
17
|
-
id: `${scope}.brandInfo`,
|
|
18
|
-
defaultMessage: "Brand"
|
|
19
|
-
},
|
|
20
|
-
category: {
|
|
21
|
-
id: `${scope}.category`,
|
|
22
|
-
defaultMessage: "Category"
|
|
23
|
-
},
|
|
24
|
-
categoryInfo: {
|
|
25
|
-
id: `${scope}.categoryInfo`,
|
|
26
|
-
defaultMessage: "Category"
|
|
27
|
-
},
|
|
28
|
-
product: {
|
|
29
|
-
id: `${scope}.product`,
|
|
30
|
-
defaultMessage: "Product"
|
|
31
|
-
},
|
|
32
|
-
productInfo: {
|
|
33
|
-
id: `${scope}.productInfo`,
|
|
34
|
-
defaultMessage: "Product"
|
|
35
|
-
},
|
|
36
|
-
SKU: {
|
|
37
|
-
id: `${scope}.SKU`,
|
|
38
|
-
defaultMessage: "SKU"
|
|
39
|
-
},
|
|
40
|
-
uploadSKU: {
|
|
41
|
-
id: `${scope}.uploadSKU`,
|
|
42
|
-
defaultMessage: "Upload SKU"
|
|
43
|
-
},
|
|
44
|
-
uploadSKUInfo: {
|
|
45
|
-
id: `${scope}.uploadSKUInfo`,
|
|
46
|
-
defaultMessage: "Upload SKU"
|
|
47
|
-
},
|
|
48
|
-
changeSelection: {
|
|
49
|
-
id: `${scope}.changeSelection`,
|
|
50
|
-
defaultMessage: "Change the selection"
|
|
51
|
-
},
|
|
52
|
-
description: {
|
|
53
|
-
id: `${scope}.description`,
|
|
54
|
-
defaultMessage: "Changing the attribute of additional condition will result in lose of previously defined additional condition"
|
|
55
|
-
},
|
|
56
|
-
okText: {
|
|
57
|
-
id: `${scope}.okText`,
|
|
58
|
-
defaultMessage: "Yes, change"
|
|
59
|
-
},
|
|
60
|
-
cancelText: {
|
|
61
|
-
id: `${scope}.cancelText`,
|
|
62
|
-
defaultMessage: "Cancel"
|
|
63
|
-
},
|
|
64
|
-
comingSoon: {
|
|
65
|
-
id: `${scope}.comingSoon`,
|
|
66
|
-
defaultMessage: "Coming soon"
|
|
67
|
-
},
|
|
68
|
-
selectValues: {
|
|
69
|
-
id: `${scope}.selectValues`,
|
|
70
|
-
defaultMessage: "Select value(s)"
|
|
71
|
-
},
|
|
72
|
-
atleast1Attribute: {
|
|
73
|
-
id: `${scope}.atleast1Attribute`,
|
|
74
|
-
defaultMessage: "At least 1 attribute is required"
|
|
75
|
-
}
|
|
76
|
-
});
|
|
77
|
-
export {
|
|
78
|
-
messages as default
|
|
79
|
-
};
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
/* Color Palette */
|
|
2
|
-
/* Fonts */
|
|
3
|
-
/* Backward Compatibility Aliases */
|
|
4
|
-
/* Component Heights */
|
|
5
|
-
/* Border Radius */
|
|
6
|
-
/* Border Width */
|
|
7
|
-
/* Transition */
|
|
8
|
-
/* Timezones Footer */
|
|
9
|
-
.changeSelectionCard {
|
|
10
|
-
position: absolute;
|
|
11
|
-
top: 2.857rem;
|
|
12
|
-
left: 0.857rem;
|
|
13
|
-
width: 21.428rem;
|
|
14
|
-
}
|
|
15
|
-
.changeSelectionCard .card-title {
|
|
16
|
-
font-size: 1rem;
|
|
17
|
-
line-height: 1.714rem;
|
|
18
|
-
padding-bottom: 0.857rem;
|
|
19
|
-
padding-top: 0.571rem;
|
|
20
|
-
}
|
|
21
|
-
.changeSelectionCard .card-description {
|
|
22
|
-
font-size: 0.857rem;
|
|
23
|
-
}
|
|
24
|
-
.changeSelectionCard .card-buttons {
|
|
25
|
-
padding-top: 1.142rem;
|
|
26
|
-
}
|
|
27
|
-
.changeSelectionCard .card-buttons-primary {
|
|
28
|
-
margin-right: 0.857rem;
|
|
29
|
-
}
|
|
30
|
-
.ant-popover.cap-product-selection-v2.greyed .ant-popover-arrow {
|
|
31
|
-
border-top-color: #f4f5f7;
|
|
32
|
-
border-left-color: #f4f5f7;
|
|
33
|
-
}
|
|
34
|
-
.ant-popover.cap-product-selection-v2.greyed .ant-popover-container {
|
|
35
|
-
background-color: #f4f5f7;
|
|
36
|
-
}
|
|
37
|
-
.ant-popover.cap-product-selection-v2 .ant-popover-container {
|
|
38
|
-
padding: 0;
|
|
39
|
-
}
|
|
40
|
-
.ant-popover.cap-product-selection-v2 .ant-tree {
|
|
41
|
-
background-color: inherit;
|
|
42
|
-
}
|
|
43
|
-
.ant-popover.cap-product-selection-v2 .ant-tree .ant-tree-list {
|
|
44
|
-
padding: 0.5rem 0;
|
|
45
|
-
}
|
|
46
|
-
.ant-popover.cap-product-selection-v2 .ant-tree li ul {
|
|
47
|
-
padding-left: 2.143rem;
|
|
48
|
-
}
|
|
49
|
-
.ant-popover.cap-product-selection-v2 .ant-popover-content {
|
|
50
|
-
width: 23.143rem;
|
|
51
|
-
padding: 0;
|
|
52
|
-
min-height: 12.571rem;
|
|
53
|
-
font-size: 1rem;
|
|
54
|
-
line-height: 1.428rem;
|
|
55
|
-
color: #091e42;
|
|
56
|
-
}
|
|
57
|
-
.ant-popover.cap-product-selection-v2 .divider {
|
|
58
|
-
border-top: 0.071rem solid #dfe2e7;
|
|
59
|
-
}
|
|
60
|
-
.ant-popover.cap-product-selection-v2 .empty-data-text {
|
|
61
|
-
text-align: center;
|
|
62
|
-
margin-top: 0.857rem;
|
|
63
|
-
padding: 0.714rem 0;
|
|
64
|
-
}
|
|
65
|
-
.ant-popover.cap-product-selection-v2 .ant-popover-content {
|
|
66
|
-
padding: 0 0.285rem 0.857rem 0.285rem;
|
|
67
|
-
}
|
|
68
|
-
.ant-popover.cap-product-selection-v2 .ant-tree-child-tree > li:first-child {
|
|
69
|
-
margin-top: 0.285rem;
|
|
70
|
-
}
|
|
71
|
-
.ant-popover.cap-product-selection-v2 .ant-tree-treenode-switcher-open, .ant-popover.cap-product-selection-v2 .ant-tree-treenode-switcher-close {
|
|
72
|
-
position: relative;
|
|
73
|
-
}
|
|
74
|
-
.ant-popover.cap-product-selection-v2 .ant-tree-treenode-switcher-open .info-tooltip, .ant-popover.cap-product-selection-v2 .ant-tree-treenode-switcher-close .info-tooltip {
|
|
75
|
-
position: absolute;
|
|
76
|
-
right: 0.714rem;
|
|
77
|
-
top: 0.428rem;
|
|
78
|
-
}
|
|
79
|
-
.ant-popover.cap-product-selection-v2 .tree-node-title .cap-radio-v2 .ant-radio-wrapper .title {
|
|
80
|
-
font-weight: normal !important;
|
|
81
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import type { CapProductSelectionProps } from '../types';
|
|
2
|
-
export declare const mockHandleSelect: jest.Mock<any, any, any>;
|
|
3
|
-
export declare const defaultLocale: {
|
|
4
|
-
lineItem: string;
|
|
5
|
-
selectAttribute: string;
|
|
6
|
-
brand: string;
|
|
7
|
-
brandInfo: string;
|
|
8
|
-
category: string;
|
|
9
|
-
categoryInfo: string;
|
|
10
|
-
product: string;
|
|
11
|
-
productInfo: string;
|
|
12
|
-
SKU: string;
|
|
13
|
-
uploadSKU: string;
|
|
14
|
-
uploadSKUInfo: string;
|
|
15
|
-
changeSelection: string;
|
|
16
|
-
description: string;
|
|
17
|
-
okText: string;
|
|
18
|
-
cancelText: string;
|
|
19
|
-
comingSoon: string;
|
|
20
|
-
selectValues: string;
|
|
21
|
-
atleast1Attribute: string;
|
|
22
|
-
};
|
|
23
|
-
export declare const defaultProps: CapProductSelectionProps;
|
|
24
|
-
export declare const propsWithSelectedBrand: CapProductSelectionProps;
|
|
25
|
-
export declare const propsWithSelectedSKU: CapProductSelectionProps;
|
|
26
|
-
export declare const propsWithProductMandatory: CapProductSelectionProps;
|
|
27
|
-
export declare const customTreeData: {
|
|
28
|
-
key: string;
|
|
29
|
-
title: string;
|
|
30
|
-
children: {
|
|
31
|
-
key: string;
|
|
32
|
-
title: string;
|
|
33
|
-
}[];
|
|
34
|
-
}[];
|
|
35
|
-
export declare const TRIGGER_TEXT = "Open product selection";
|
|
36
|
-
//# sourceMappingURL=CapProductSelection.mockData.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CapProductSelection.mockData.d.ts","sourceRoot":"","sources":["../../../components/CapProductSelection/tests/CapProductSelection.mockData.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAEzD,eAAO,MAAM,gBAAgB,0BAAY,CAAC;AAE1C,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;CAoBzB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,wBAI1B,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,wBAGpC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,wBAGlC,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,wBAIvC,CAAC;AAEF,eAAO,MAAM,cAAc;;;;;;;GAM1B,CAAC;AAEF,eAAO,MAAM,YAAY,2BAA2B,CAAC"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import type React from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* Tree node item for custom treeData.
|
|
4
|
-
* Used when building tree structure for CapProductSelection.
|
|
5
|
-
*/
|
|
6
|
-
export interface TreeNodeItem {
|
|
7
|
-
title?: React.ReactNode;
|
|
8
|
-
key: string;
|
|
9
|
-
children?: TreeNodeItem[];
|
|
10
|
-
checkable?: boolean;
|
|
11
|
-
info?: string;
|
|
12
|
-
isHover?: boolean;
|
|
13
|
-
}
|
|
14
|
-
export interface CapProductSelectionProps {
|
|
15
|
-
/** Trigger element (e.g. button or link) that opens the popover */
|
|
16
|
-
target?: React.ReactNode;
|
|
17
|
-
/** Custom tree data; when not provided, default Line Item / Attribute / SKU tree is used */
|
|
18
|
-
treeData?: TreeNodeItem[];
|
|
19
|
-
/** Popover trigger behavior */
|
|
20
|
-
trigger?: 'click' | 'hover';
|
|
21
|
-
/** Popover placement relative to target */
|
|
22
|
-
placement?: string;
|
|
23
|
-
/** Additional class name for the popover overlay */
|
|
24
|
-
overlayClassName?: string;
|
|
25
|
-
/** Called when popover closes with the current selection (array of attribute keys) */
|
|
26
|
-
handleSelect?: (selectedKeys: string[]) => void;
|
|
27
|
-
/** Controlled selected attribute keys (e.g. BRAND, CATEGORY, PRODUCT_ATTRIBUTE, SKU) */
|
|
28
|
-
selectedAttributes?: string[];
|
|
29
|
-
/** When true, at least one of Brand/Category/Product must be selected; disables unchecking the last one */
|
|
30
|
-
isProductMandatory?: boolean;
|
|
31
|
-
/** Additional props passed to CapPopover (e.g. getPopupContainer) */
|
|
32
|
-
[key: string]: unknown;
|
|
33
|
-
}
|
|
34
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../components/CapProductSelection/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B;;;GAGG;AACH,MAAM,WAAW,YAAY;IAC3B,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,YAAY,EAAE,CAAC;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,wBAAwB;IACvC,mEAAmE;IACnE,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,4FAA4F;IAC5F,QAAQ,CAAC,EAAE,YAAY,EAAE,CAAC;IAC1B,+BAA+B;IAC/B,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IAC5B,2CAA2C;IAC3C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oDAAoD;IACpD,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,sFAAsF;IACtF,YAAY,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IAChD,wFAAwF;IACxF,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC9B,2GAA2G;IAC3G,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAE7B,qEAAqE;IACrE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB"}
|
|
File without changes
|