@capillarytech/blaze-ui 0.1.6-alpha.28 → 0.1.6-alpha.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/CapHeading/CapHeading.js +71 -0
- package/CapHeading/index.js +1 -0
- package/CapHeading/styles.js +125 -0
- package/CapInfoNote/CapInfoNote.js +54 -0
- package/CapInfoNote/index.js +1 -0
- package/CapInfoNote/styles.js +63 -0
- package/CapInput/loadable.js +9 -0
- package/CapLabel/CapLabel.js +106 -0
- package/CapLabel/index.js +1 -0
- package/CapLabel/styles.js +221 -0
- package/CapRow/CapRow.js +22 -0
- package/CapRow/index.js +1 -0
- package/CapRow/styles.js +9 -0
- package/CapTable/loadable.js +4 -4
- package/CapTooltip/CapTooltip.js +36 -0
- package/CapTooltip/index.js +1 -0
- package/CapTooltip/styles.js +42 -0
- package/CapUnifiedSelect/CapUnifiedSelect.js +51 -304
- package/CapUnifiedSelect/index.js +4 -1
- package/CapUnifiedSelect/loadable.js +3 -0
- package/CapUnifiedSelect/styles.js +174 -62
- package/dist/235.index.js +2 -0
- package/dist/235.index.js.LICENSE.txt +29 -0
- package/dist/603.index.js +1 -0
- package/dist/CapTable/loadable.js +4 -4
- package/dist/esm/CapHeading/CapHeading.js +41 -0
- package/dist/esm/CapHeading/index.js +1 -0
- package/dist/esm/CapHeading/styles.js +123 -0
- package/dist/esm/CapInfoNote/CapInfoNote.js +62 -0
- package/dist/esm/CapInfoNote/index.js +1 -0
- package/dist/esm/CapInfoNote/styles.js +6 -0
- package/dist/esm/CapInput/loadable.js +9 -0
- package/dist/esm/CapLabel/CapLabel.js +50 -0
- package/dist/esm/CapLabel/index.js +1 -0
- package/dist/esm/CapLabel/styles.js +219 -0
- package/dist/esm/{CapSkeleton/CapSkeleton.js → CapRow/CapRow.js} +12 -12
- package/dist/esm/CapRow/index.js +1 -0
- package/dist/esm/CapRow/styles.js +5 -0
- package/dist/esm/CapTable/loadable.js +4 -4
- package/dist/esm/CapTooltip/CapTooltip.js +34 -0
- package/dist/esm/CapTooltip/index.js +1 -0
- package/dist/esm/CapTooltip/styles.js +6 -0
- package/dist/esm/CapUnifiedSelect/CapUnifiedSelect.js +38 -335
- package/dist/esm/CapUnifiedSelect/index.js +3 -1
- package/dist/esm/CapUnifiedSelect/loadable.js +4 -0
- package/dist/esm/CapUnifiedSelect/styles.js +3 -19
- package/dist/esm/index.js +1 -5
- package/dist/index.js +0 -27
- package/dist/index.js.LICENSE.txt +7 -0
- package/index.js +1 -5
- package/package.json +10 -8
- package/CapSkeleton/CapSkeleton.js +0 -17
- package/CapSkeleton/index.js +0 -1
- package/CapSpin/CapSpin.js +0 -23
- package/CapSpin/index.js +0 -1
- package/CapTestSelect/CapTestSelect.js +0 -47
- package/CapTestSelect/index.js +0 -1
- package/components/CapInput/CapInput.js +0 -67
- package/components/CapInput/Number.js +0 -38
- package/components/CapInput/Search.js +0 -32
- package/components/CapInput/TextArea.js +0 -45
- package/components/CapInput/index.js +0 -10
- package/components/CapInput/messages.js +0 -27
- package/components/CapInput/styles.js +0 -81
- package/components/CapSkeleton/CapSkeleton.js +0 -17
- package/components/CapSkeleton/index.js +0 -1
- package/components/CapSpin/CapSpin.js +0 -23
- package/components/CapSpin/index.js +0 -1
- package/components/CapTable/CapTable.js +0 -146
- package/components/CapTable/index.js +0 -3
- package/components/CapTable/loadable.js +0 -13
- package/components/CapTable/styles.js +0 -134
- package/components/CapTestSelect/CapTestSelect.js +0 -47
- package/components/CapTestSelect/index.js +0 -1
- package/components/CapUnifiedSelect/CapUnifiedSelect.js +0 -374
- package/components/CapUnifiedSelect/index.js +0 -1
- package/components/CapUnifiedSelect/messages.js +0 -24
- package/components/CapUnifiedSelect/styles.js +0 -111
- package/components/LocaleHoc/index.js +0 -38
- package/components/index.js +0 -14
- package/components/styled/index.js +0 -6
- package/components/styled/variables.js +0 -89
- package/components/translations/en.js +0 -331
- package/dist/CapSkeleton/CapSkeleton.js +0 -29
- package/dist/CapSkeleton/index.js +0 -13
- package/dist/CapSpin/CapSpin.js +0 -35
- package/dist/CapSpin/index.js +0 -13
- package/dist/CapTestSelect/CapTestSelect.js +0 -40
- package/dist/CapTestSelect/index.js +0 -13
- package/dist/CapUnifiedSelect/CapUnifiedSelect.js +0 -405
- package/dist/CapUnifiedSelect/index.js +0 -13
- package/dist/CapUnifiedSelect/messages.js +0 -29
- package/dist/CapUnifiedSelect/styles.js +0 -39
- package/dist/components/CapInput/CapInput.js +0 -66
- package/dist/components/CapInput/Number.js +0 -42
- package/dist/components/CapInput/Search.js +0 -35
- package/dist/components/CapInput/TextArea.js +0 -42
- package/dist/components/CapInput/index.js +0 -15
- package/dist/components/CapInput/messages.js +0 -32
- package/dist/components/CapInput/styles.js +0 -11
- package/dist/components/CapSkeleton/CapSkeleton.js +0 -29
- package/dist/components/CapSkeleton/index.js +0 -13
- package/dist/components/CapSpin/CapSpin.js +0 -35
- package/dist/components/CapSpin/index.js +0 -13
- package/dist/components/CapTable/CapTable.js +0 -148
- package/dist/components/CapTable/index.js +0 -9
- package/dist/components/CapTable/loadable.js +0 -23
- package/dist/components/CapTable/styles.js +0 -26
- package/dist/components/CapTestSelect/CapTestSelect.js +0 -40
- package/dist/components/CapTestSelect/index.js +0 -13
- package/dist/components/CapUnifiedSelect/CapUnifiedSelect.js +0 -406
- package/dist/components/CapUnifiedSelect/index.js +0 -13
- package/dist/components/CapUnifiedSelect/messages.js +0 -29
- package/dist/components/CapUnifiedSelect/styles.js +0 -39
- package/dist/components/LocaleHoc/index.js +0 -40
- package/dist/components/index.js +0 -66
- package/dist/components/styled/index.js +0 -22
- package/dist/components/styled/variables.js +0 -94
- package/dist/components/translations/en.js +0 -335
- package/dist/esm/CapSkeleton/index.js +0 -1
- package/dist/esm/CapSpin/CapSpin.js +0 -28
- package/dist/esm/CapSpin/index.js +0 -1
- package/dist/esm/CapTestSelect/CapTestSelect.js +0 -34
- package/dist/esm/CapTestSelect/index.js +0 -1
- package/dist/esm/components/CapInput/CapInput.js +0 -57
- package/dist/esm/components/CapInput/Number.js +0 -35
- package/dist/esm/components/CapInput/Search.js +0 -28
- package/dist/esm/components/CapInput/TextArea.js +0 -35
- package/dist/esm/components/CapInput/index.js +0 -8
- package/dist/esm/components/CapInput/messages.js +0 -25
- package/dist/esm/components/CapInput/styles.js +0 -3
- package/dist/esm/components/CapSkeleton/CapSkeleton.js +0 -22
- package/dist/esm/components/CapSkeleton/index.js +0 -1
- package/dist/esm/components/CapSpin/CapSpin.js +0 -28
- package/dist/esm/components/CapSpin/index.js +0 -1
- package/dist/esm/components/CapTable/CapTable.js +0 -140
- package/dist/esm/components/CapTable/index.js +0 -2
- package/dist/esm/components/CapTable/loadable.js +0 -12
- package/dist/esm/components/CapTable/styles.js +0 -17
- package/dist/esm/components/CapTestSelect/CapTestSelect.js +0 -34
- package/dist/esm/components/CapTestSelect/index.js +0 -1
- package/dist/esm/components/CapUnifiedSelect/CapUnifiedSelect.js +0 -398
- package/dist/esm/components/CapUnifiedSelect/index.js +0 -1
- package/dist/esm/components/CapUnifiedSelect/messages.js +0 -23
- package/dist/esm/components/CapUnifiedSelect/styles.js +0 -31
- package/dist/esm/components/LocaleHoc/index.js +0 -31
- package/dist/esm/components/index.js +0 -15
- package/dist/esm/components/styled/index.js +0 -5
- package/dist/esm/components/styled/variables.js +0 -88
- package/dist/esm/components/translations/en.js +0 -329
- package/dist/esm/utils/index.js +0 -1
- package/dist/esm/utils/withStyles.js +0 -23
- package/dist/esm/withStyles.js +0 -23
- package/dist/utils/index.js +0 -13
- package/dist/utils/withStyles.js +0 -29
- package/dist/withStyles.js +0 -29
- package/utils/index.js +0 -1
- package/utils/withStyles.js +0 -24
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import React, { useMemo } from 'react';
|
|
2
|
-
import { injectIntl } from 'react-intl';
|
|
3
|
-
import enTranslation from '../translations/en';
|
|
4
|
-
|
|
5
|
-
const prefix = `blaze.components`;
|
|
6
|
-
|
|
7
|
-
const LocaleHoc = (WrapperComponent, customProps) => {
|
|
8
|
-
const Wrapper = (props) => {
|
|
9
|
-
const componentName = customProps.key;
|
|
10
|
-
const translatedDefaults = enTranslation[componentName];
|
|
11
|
-
const { intl } = props;
|
|
12
|
-
|
|
13
|
-
const translatedProps = useMemo(() => {
|
|
14
|
-
if(!translatedDefaults) return {};
|
|
15
|
-
return Object.keys(translatedDefaults).reduce((acc, key) => {
|
|
16
|
-
const id = `${prefix}.${componentName}.${key}`
|
|
17
|
-
const defaultMessage = translatedDefaults[key]
|
|
18
|
-
try{
|
|
19
|
-
acc[key] = intl.formatMessage({ id, defaultMessage });
|
|
20
|
-
}catch(err){
|
|
21
|
-
acc[key] = defaultMessage;
|
|
22
|
-
}
|
|
23
|
-
return acc;
|
|
24
|
-
}, {});
|
|
25
|
-
}, [translatedDefaults, intl]);
|
|
26
|
-
|
|
27
|
-
return (
|
|
28
|
-
<WrapperComponent
|
|
29
|
-
{...translatedProps}
|
|
30
|
-
{...props}
|
|
31
|
-
/>
|
|
32
|
-
);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
return injectIntl(Wrapper);
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
export default LocaleHoc;
|
package/components/index.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
// Import and export all components
|
|
2
|
-
export { default as CapInput } from './CapInput';
|
|
3
|
-
export { default as CapTable } from './CapTable';
|
|
4
|
-
export { default as CapTestSelect } from './CapTestSelect'; // Test component for Ant Design v5 integration
|
|
5
|
-
|
|
6
|
-
// Export utilities
|
|
7
|
-
export { default as LocaleHoc } from './LocaleHoc';
|
|
8
|
-
|
|
9
|
-
// Export styled utilities
|
|
10
|
-
export * as styledVars from './styled/variables';
|
|
11
|
-
export { default as styled } from './styled';
|
|
12
|
-
|
|
13
|
-
// Export utils
|
|
14
|
-
export * from '../utils';
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
/* Color Palette */
|
|
2
|
-
//========================
|
|
3
|
-
|
|
4
|
-
// Primary colors
|
|
5
|
-
export const CAP_PRIMARY = {
|
|
6
|
-
base: "#47af46",
|
|
7
|
-
hover: "#1f9a1d",
|
|
8
|
-
disabled: "#a1d8a0",
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
// Secondary colors
|
|
12
|
-
export const CAP_SECONDARY = {
|
|
13
|
-
base: "#2466ea",
|
|
14
|
-
light: 'rgba("#2466ea", 0.1)',
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
// Custom colors
|
|
18
|
-
export const CAP_ORANGE = "#f87d23";
|
|
19
|
-
export const CAP_ORANGE01 = "#ffe5d2";
|
|
20
|
-
export const CAP_ORANGE02 = "#fa7d02";
|
|
21
|
-
export const CAP_YELLOW = "#fec52e";
|
|
22
|
-
export const CAP_YELLOW01 = "#e8bc25";
|
|
23
|
-
export const CAP_YELLOW02 = "#f9d438";
|
|
24
|
-
export const CAP_BLUE = "#23cccc";
|
|
25
|
-
export const CAP_PURPLE = "#8517e5";
|
|
26
|
-
export const CAP_PINK = "#e51fa3";
|
|
27
|
-
export const CAP_RED = "#ea213a";
|
|
28
|
-
export const CAP_ICON = "#7a869a";
|
|
29
|
-
export const CAP_PALE_GREY = "#e9f0fe";
|
|
30
|
-
export const CAP_BLUE01 = "#2466eb";
|
|
31
|
-
export const CAP_BLUE02 = "#1d61ee";
|
|
32
|
-
export const CAP_RED01 = "#e51fa3";
|
|
33
|
-
export const CAP_RED02 = "#f5222d";
|
|
34
|
-
export const CAP_RED03 = "#ed1b34";
|
|
35
|
-
export const CAP_PURPLE01 = "#6563ff";
|
|
36
|
-
export const CAP_PURPLE02 = "#a451ff";
|
|
37
|
-
export const CAP_PURPLE03 = "#f2e7fe";
|
|
38
|
-
export const CAP_PURPLE04 = "#d4e1fc";
|
|
39
|
-
export const CAP_GREEN01 = "#6bb56b";
|
|
40
|
-
export const CAP_GREEN02 = "#ecf7ec";
|
|
41
|
-
|
|
42
|
-
// Grey colors
|
|
43
|
-
export const CAP_G01 = "#091e42";
|
|
44
|
-
export const CAP_G02 = "#253858";
|
|
45
|
-
export const CAP_G03 = "#42526e";
|
|
46
|
-
export const CAP_G04 = "#5e6c84";
|
|
47
|
-
export const CAP_G05 = "#97a0af";
|
|
48
|
-
export const CAP_G06 = "#b3bac5";
|
|
49
|
-
export const CAP_G07 = "#dfe2e7";
|
|
50
|
-
export const CAP_G08 = "#ebecf0";
|
|
51
|
-
export const CAP_G09 = "#f4f5f7";
|
|
52
|
-
export const CAP_G10 = "#fafbfc";
|
|
53
|
-
export const CAP_G11 = "#7a869a";
|
|
54
|
-
export const CAP_G12 = "#e8e8e8";
|
|
55
|
-
export const CAP_G13 = "#ecece7";
|
|
56
|
-
export const CAP_G14 = "#e9f0fd";
|
|
57
|
-
export const CAP_G15 = "#efefef";
|
|
58
|
-
export const CAP_G16 = "#2a2a2a";
|
|
59
|
-
export const CAP_G17 = "#7F8185";
|
|
60
|
-
export const CAP_G18 = "#dcdee2";
|
|
61
|
-
export const CAP_G19 = "#8a9ab2";
|
|
62
|
-
export const CAP_G20 = "#c2c2c2";
|
|
63
|
-
|
|
64
|
-
export const CAP_WHITE = "#ffffff";
|
|
65
|
-
export const CAP_BLACK = "#000000";
|
|
66
|
-
|
|
67
|
-
/* Fonts */
|
|
68
|
-
// ==============
|
|
69
|
-
export const FONT_FAMILY = '"Roboto", sans-serif';
|
|
70
|
-
export const FONT_WEIGHT_REGULAR = 400;
|
|
71
|
-
export const FONT_WEIGHT_MEDIUM = 500;
|
|
72
|
-
|
|
73
|
-
/* Spacing */
|
|
74
|
-
// ==============
|
|
75
|
-
export const SPACING_04 = "4px";
|
|
76
|
-
export const SPACING_08 = "8px";
|
|
77
|
-
export const SPACING_12 = "12px";
|
|
78
|
-
export const SPACING_16 = "16px";
|
|
79
|
-
export const SPACING_24 = "24px";
|
|
80
|
-
export const SPACING_32 = "32px";
|
|
81
|
-
|
|
82
|
-
/* Border Radius */
|
|
83
|
-
// ==============
|
|
84
|
-
export const RADIUS_04 = "4px";
|
|
85
|
-
export const RADIUS_08 = "8px";
|
|
86
|
-
|
|
87
|
-
/* Transition */
|
|
88
|
-
// ==============
|
|
89
|
-
export const TRANSITION_ALL = "all 0.3s ease";
|
|
@@ -1,331 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
CapMultiSelect: {
|
|
3
|
-
noResultsFoundText: "No results found",
|
|
4
|
-
selectText: "Select",
|
|
5
|
-
closeText: "Close",
|
|
6
|
-
searchPlaceholder: "Search",
|
|
7
|
-
selectedText: "selected",
|
|
8
|
-
selectAllText: "Select all",
|
|
9
|
-
selectAllSearchResultsText: "Select all searched results",
|
|
10
|
-
moreText: "more",
|
|
11
|
-
},
|
|
12
|
-
CapModal: {
|
|
13
|
-
okText: 'Yes',
|
|
14
|
-
closeText: 'No',
|
|
15
|
-
},
|
|
16
|
-
CapMultiSelectWithTree: {
|
|
17
|
-
noResultsFoundText: "No results found",
|
|
18
|
-
selectText: "Select",
|
|
19
|
-
closeText: "Close",
|
|
20
|
-
searchPlaceholder: "Search",
|
|
21
|
-
selectedText: "selected",
|
|
22
|
-
selectAllText: "Select all",
|
|
23
|
-
selectAllSearchResultsText: "Select all searched results",
|
|
24
|
-
moreText: "more",
|
|
25
|
-
storeUploadsText: "Store IDs are uploaded already",
|
|
26
|
-
},
|
|
27
|
-
CapCustomSelect: {
|
|
28
|
-
searchPlaceholder: 'Search',
|
|
29
|
-
selectPlaceholder: 'Select Option',
|
|
30
|
-
},
|
|
31
|
-
CapMultiSelectDatePicker: {
|
|
32
|
-
lastDayText: 'Last day of month',
|
|
33
|
-
},
|
|
34
|
-
CapTable: {
|
|
35
|
-
loadMoreData: 'Loading more data...',
|
|
36
|
-
},
|
|
37
|
-
CapIllustration: {
|
|
38
|
-
accessForbiddenMsg: 'Action cannot be performed due to insufficient permission',
|
|
39
|
-
},
|
|
40
|
-
CapNavigation: {
|
|
41
|
-
businessProcesses: 'Workbench',
|
|
42
|
-
wecrm: 'Wecrm',
|
|
43
|
-
loyaltyProgram: 'Loyalty+',
|
|
44
|
-
storePerformance: 'Store Performance',
|
|
45
|
-
memberCare: 'Member Care',
|
|
46
|
-
storeCare: 'Store Care',
|
|
47
|
-
insights: 'Insights+',
|
|
48
|
-
connectPlus: 'Connect+',
|
|
49
|
-
settingsLabel: 'Settings',
|
|
50
|
-
campaign: 'Engage+',
|
|
51
|
-
selectOrganization: 'Select Organization',
|
|
52
|
-
organization: 'Organization',
|
|
53
|
-
noResultText: 'No results found',
|
|
54
|
-
selectProduct: 'Select Product',
|
|
55
|
-
},
|
|
56
|
-
InfoNote: {
|
|
57
|
-
noteText: 'Note',
|
|
58
|
-
},
|
|
59
|
-
SomethingWentWrong: {
|
|
60
|
-
title: 'Sorry, something went wrong.',
|
|
61
|
-
description: 'Please try again. If this issue occurs again, please reach out to Capillary support team.',
|
|
62
|
-
reloadText: 'Try refreshing again',
|
|
63
|
-
},
|
|
64
|
-
CapBlock: {
|
|
65
|
-
deleteBlockMsg: 'Delete',
|
|
66
|
-
expandBlockMsg: 'Expand',
|
|
67
|
-
collapseBlockMsg: 'Collapse',
|
|
68
|
-
},
|
|
69
|
-
CapMultiplePath: {
|
|
70
|
-
notUniqueMsg: 'Not Unique',
|
|
71
|
-
deleteConfirmationTitleMsg: 'Confirm delete path',
|
|
72
|
-
deleteConfirmationTextMsg: 'Are you sure you wish to delete path',
|
|
73
|
-
deleteConfirmationWarningMsg: 'This action cannot be undone.',
|
|
74
|
-
deleteButtonTextMsg: 'Yes, Delete',
|
|
75
|
-
yesMsg: 'Yes',
|
|
76
|
-
noMsg: 'No',
|
|
77
|
-
pathMsg: 'Path',
|
|
78
|
-
addPathMessage: 'Add Path',
|
|
79
|
-
},
|
|
80
|
-
CapCondition: {
|
|
81
|
-
includeMsg: 'include',
|
|
82
|
-
excludeMsg: 'exclude',
|
|
83
|
-
equalMsg: 'equal to',
|
|
84
|
-
greaterThanMsg: 'greater than',
|
|
85
|
-
lessThanMsg: 'less than',
|
|
86
|
-
greaterThanOrEqualMsg: 'greater than or equal to',
|
|
87
|
-
lessThanorEqualMsg: 'less than or equal',
|
|
88
|
-
inRangeMsg: 'in range',
|
|
89
|
-
notEqualMsg: 'not equal to',
|
|
90
|
-
whoseMsg: 'Whose',
|
|
91
|
-
isMsg: 'is',
|
|
92
|
-
andMsg: 'and',
|
|
93
|
-
ANDMsg: 'AND',
|
|
94
|
-
containsMsg: 'contains',
|
|
95
|
-
startsWithMsg: 'starts with',
|
|
96
|
-
endsWithMsg: 'ends with',
|
|
97
|
-
exactMsg: 'exact',
|
|
98
|
-
conditionStringInputPlaceholderMsg: 'Enter min. 3 characters',
|
|
99
|
-
lineItemMsg: 'only for lineitems with',
|
|
100
|
-
withMsg: 'with',
|
|
101
|
-
additionalFieldsMsg: 'Additional condition',
|
|
102
|
-
plusMinus: '+/-',
|
|
103
|
-
inMsg: 'in',
|
|
104
|
-
notInMsg: 'not in',
|
|
105
|
-
uploadFailedError: 'Upload failed',
|
|
106
|
-
uploadLimitExceeded: 'Please do not upload more than 1000 store codes',
|
|
107
|
-
uploadReqLoader: 'Uploading stores',
|
|
108
|
-
or: 'OR',
|
|
109
|
-
search: 'Search',
|
|
110
|
-
searchWithExact: 'Search with exact keyword',
|
|
111
|
-
customFieldsTag: 'custom fields',
|
|
112
|
-
storeSearchMsg: 'Enter min. 3 characters to search',
|
|
113
|
-
uploadInProgressMsg: 'Upload in progress',
|
|
114
|
-
unsupportedCsvHeaderMsg: "The CSV header must be 'Store code' or 'Store id'",
|
|
115
|
-
csvFileNoEntryTxt: "Please upload a file with atleast one entry",
|
|
116
|
-
downloadedMsg: "downloaded",
|
|
117
|
-
reuploadFileMsg: 'Reupload file',
|
|
118
|
-
storeIdsMsg: 'Store IDs',
|
|
119
|
-
downloadStoreIdMsg: 'Download Store ID',
|
|
120
|
-
downloadStoreIdCodeNameMsg: 'Download Store ID, code & name',
|
|
121
|
-
downloadInProgressMsg: 'Download in progress, might take a while',
|
|
122
|
-
},
|
|
123
|
-
|
|
124
|
-
CapConditionPreview: {
|
|
125
|
-
includeMsg: 'Include',
|
|
126
|
-
excludeMsg: 'Exclude',
|
|
127
|
-
equalMsg: 'equal to',
|
|
128
|
-
greaterThanMsg: 'greater than',
|
|
129
|
-
lessThanMsg: 'less than',
|
|
130
|
-
greaterThanOrEqualMsg: 'greater than or equal to',
|
|
131
|
-
lessThanorEqualMsg: 'less than or equal',
|
|
132
|
-
inRangeMsg: 'in range',
|
|
133
|
-
notEqualMsg: 'not equal to',
|
|
134
|
-
whoseMsg: 'whose',
|
|
135
|
-
isMsg: 'is',
|
|
136
|
-
andMsg: 'and',
|
|
137
|
-
ANDMsg: 'AND',
|
|
138
|
-
lineItemMsg: 'only for lineitems with',
|
|
139
|
-
withMsg: 'with',
|
|
140
|
-
addedSKUsMsg: 'Added SKUs',
|
|
141
|
-
skuFileName: 'SKU.csv',
|
|
142
|
-
uploadedMsg: 'uploaded',
|
|
143
|
-
inMsg: 'in',
|
|
144
|
-
notInMsg: 'not in',
|
|
145
|
-
storesMsg: 'Stores',
|
|
146
|
-
viewMoreMsg: 'View more',
|
|
147
|
-
uploadInProgressMsg: 'Upload in progress',
|
|
148
|
-
uploadFailedErrorMsg: 'Upload failed',
|
|
149
|
-
uploadInvalidErrorMsg: 'Invalid file uploaded',
|
|
150
|
-
},
|
|
151
|
-
CapPopoverTree: {
|
|
152
|
-
emptyDataMessage: 'No data found',
|
|
153
|
-
searchPlaceholder: 'Search',
|
|
154
|
-
},
|
|
155
|
-
CapGraphBlockNode: {
|
|
156
|
-
configureText: 'Configure',
|
|
157
|
-
replaceEngagementBlockMsg: 'Replace engagement block',
|
|
158
|
-
},
|
|
159
|
-
CapStaticTemplates: {
|
|
160
|
-
strategyTitleMsg: 'Select the strategy',
|
|
161
|
-
strategyDescriptionMsg: 'Use strategy driven pre-defined marketing use-cases or build your own strategy',
|
|
162
|
-
comingSoonMsg: 'Coming soon',
|
|
163
|
-
blankCategoryLabel: 'Custom',
|
|
164
|
-
blankTemplateLabel: 'Build from scratch',
|
|
165
|
-
blankTemplateDescription: 'Create your own journey from scratch',
|
|
166
|
-
searchPlaceholderMsg: 'Search strategy',
|
|
167
|
-
},
|
|
168
|
-
|
|
169
|
-
CapProductSelection: {
|
|
170
|
-
lineItem: 'Line items',
|
|
171
|
-
selectAttribute: 'Select Attribute',
|
|
172
|
-
brand: 'Brand',
|
|
173
|
-
brandInfo: 'Brand',
|
|
174
|
-
category: 'Category',
|
|
175
|
-
categoryInfo: 'Category',
|
|
176
|
-
product: 'Product',
|
|
177
|
-
productInfo: 'Product',
|
|
178
|
-
SKU: 'SKU',
|
|
179
|
-
uploadSKU: 'Upload SKU',
|
|
180
|
-
uploadSKUInfo: 'Upload SKU',
|
|
181
|
-
changeSelection: 'Change the selection',
|
|
182
|
-
description: 'Changing the attribute of additional condition will result in lose of previously defined additional condition',
|
|
183
|
-
okText: 'Yes, change',
|
|
184
|
-
cancelText: 'Cancel',
|
|
185
|
-
comingSoon: 'Coming soon',
|
|
186
|
-
selectValues: 'Select value(s)',
|
|
187
|
-
atleast1Attribute: 'At least 1 attribute is required',
|
|
188
|
-
},
|
|
189
|
-
CapTruncateList: {
|
|
190
|
-
more: 'more',
|
|
191
|
-
},
|
|
192
|
-
CapSKUUploader: {
|
|
193
|
-
validatingSKUs: 'Validating SKUs',
|
|
194
|
-
invalid: 'invalid',
|
|
195
|
-
invalidSKUs: 'Invalid SKUs',
|
|
196
|
-
valid: 'valid',
|
|
197
|
-
addedSKUsMsg: 'Added SKUs',
|
|
198
|
-
skuFileName: 'SKU.csv',
|
|
199
|
-
invalidSKUFilename: 'invalidSKU.csv',
|
|
200
|
-
uploadedMsg: 'uploaded',
|
|
201
|
-
},
|
|
202
|
-
CapDndGraph: {
|
|
203
|
-
deleteBlockModalHeaderText: 'Delete block',
|
|
204
|
-
deleteBlockModalDescriptionText: 'Are you sure you want to delete this block?',
|
|
205
|
-
yesDeleteButtonText: 'Yes, delete',
|
|
206
|
-
noButtonText: 'No',
|
|
207
|
-
joinDropErrorText: "Join block can only be added at the end of the path",
|
|
208
|
-
jumpDropErrorText: "Jump block can only be added at the end of the path",
|
|
209
|
-
theText: 'The',
|
|
210
|
-
endText: 'End',
|
|
211
|
-
blockIsLinkedText: 'block is linked to the',
|
|
212
|
-
blockText: 'block.',
|
|
213
|
-
disconnectText: 'Deleting this block will disconnect the join.',
|
|
214
|
-
areYouSureText: 'Are you sure?',
|
|
215
|
-
},
|
|
216
|
-
CapDragAndDrop: {
|
|
217
|
-
dropboxtext: 'Drop here!',
|
|
218
|
-
selectFilesText: 'Select files from your computer',
|
|
219
|
-
invalidFileSelectionText: 'Invalid file selection!',
|
|
220
|
-
or: 'OR',
|
|
221
|
-
droptext: 'Drag and drop files',
|
|
222
|
-
},
|
|
223
|
-
CapRoadMap: {
|
|
224
|
-
defaultRoadMapDisabledMessage: "Not configured yet",
|
|
225
|
-
},
|
|
226
|
-
CapTimelineCard: {
|
|
227
|
-
defaultConfiguringMessage: 'Configuring...',
|
|
228
|
-
defaultNotConfiguredMessage: 'Not configured yet...',
|
|
229
|
-
toConfigure: 'To configure ',
|
|
230
|
-
completePrevSteps: ' complete the previous steps.',
|
|
231
|
-
},
|
|
232
|
-
CapTimelineNestedCard: {
|
|
233
|
-
defaultConfiguringMessage: 'Configuring...',
|
|
234
|
-
defaultNotConfiguredMessage: 'Not configured yet...',
|
|
235
|
-
toConfigure: 'To configure ',
|
|
236
|
-
completePrevSteps: ' complete the previous steps.',
|
|
237
|
-
},
|
|
238
|
-
NestedCardParent: {
|
|
239
|
-
defaultNestedTitle: 'Triggers',
|
|
240
|
-
toConfigure: 'To configure ',
|
|
241
|
-
completePrevSteps: ' complete the previous steps.',
|
|
242
|
-
},
|
|
243
|
-
'CapAskAira.DocumentationBot': {
|
|
244
|
-
textAskYourQuestion: "Ask your question here",
|
|
245
|
-
textVisitDocs: "Visit Capillary Documentation",
|
|
246
|
-
textNeedHelp: "Need more help?",
|
|
247
|
-
textHowMayIHelp: "How may AI help you?",
|
|
248
|
-
textAira: "AiRA Documentation Bot",
|
|
249
|
-
textLinks: "Links",
|
|
250
|
-
textWasHelpful: "Was this response helpful?",
|
|
251
|
-
textConfidence: "confidence",
|
|
252
|
-
textTooltip: "Need help? Ask Aira",
|
|
253
|
-
textCantConnect: "Can't connect to the server.",
|
|
254
|
-
},
|
|
255
|
-
'CapAskAira.RuleGenerationBot': {
|
|
256
|
-
textTypeAMessage: 'Type a message above and ask AiRA to recommend the best content',
|
|
257
|
-
textError: "An error occurred while generating rule. Try again.",
|
|
258
|
-
textAiraTitle: "AiRA Rule Generation",
|
|
259
|
-
textAiraTooltip: "AiRA, our proprietary AI tool, generates rule expressions based on text query.",
|
|
260
|
-
textCopy: "Copy",
|
|
261
|
-
textCopied: "Copied",
|
|
262
|
-
textRulePlaceholder: "Enter query...",
|
|
263
|
-
textRuleLoading: "Rule is loading... Hang tight!",
|
|
264
|
-
textThank: 'Thank you for your response!',
|
|
265
|
-
textWarn: 'Aira responses may be inaccurate or misleading. Help us to improve!',
|
|
266
|
-
textAddCommentPlaceholder: 'Add comment',
|
|
267
|
-
},
|
|
268
|
-
'CapAskAira.ContentGenerationBot': {
|
|
269
|
-
textTypeAMessage: 'Type a message above and ask AiRA to recommend the best content',
|
|
270
|
-
textRecommendationsLoading: "Recommendations loading... Hang tight!",
|
|
271
|
-
textError: "An error occurred while loading recommendations. Try again.",
|
|
272
|
-
textAiraTitle: "AiRA Content Recommendations",
|
|
273
|
-
textAiraTooltip: "AiRA, our proprietary AI tool, recommends tailored language to effectively engage customers and prompt desired actions.",
|
|
274
|
-
textLoading: "loading...",
|
|
275
|
-
textCharacters: "characters",
|
|
276
|
-
textReplaceWithThis: "Replace with this",
|
|
277
|
-
textReplaced: 'Replaced',
|
|
278
|
-
textResetToDefault: "Reset to default",
|
|
279
|
-
textMoreLikeThis: "More like this",
|
|
280
|
-
textGenerateMore: "Generate more",
|
|
281
|
-
},
|
|
282
|
-
'CapAskAira.ConfigurationBot': {
|
|
283
|
-
textAiraTitle: 'Aira Configuration Bot',
|
|
284
|
-
textAiraTooltip: "Aira, our proprietary AI tool, helps you configure promotions, campaigns, and more.",
|
|
285
|
-
textTypeAMessage: 'Type a message above and ask AiRA to recommend the best content',
|
|
286
|
-
textUser: 'Hello!',
|
|
287
|
-
textPilot: "I'm your Copilot. I can create all type of promotions (milestones, streaks, etc.) on your behalf. Meanwhile, you can sit back, relax, and enjoy a cup of chai.",
|
|
288
|
-
textCouponTile: 'Milestone on GS',
|
|
289
|
-
textCouponDescription: 'Customer has to do 1000/- gross sales in a month, and can get 100 points.',
|
|
290
|
-
textPromotionTitle: 'Milestone on count',
|
|
291
|
-
textPromotionDescription: 'Eligible customers get points on every 5 transactions.',
|
|
292
|
-
textStreakTitle: 'Reward on referral',
|
|
293
|
-
textStreakDescription: 'Award customer 150 points if they refer 3 users in a month. Promotion starts on July 1 and runs for 5 months.',
|
|
294
|
-
textPromptHere: 'Enter a prompt here...',
|
|
295
|
-
textCouponPrompt: 'If customer does 1000 gross sales in a month, award them 100 points that expire in 20 days. Promotion runs from 1 July to 1 December.',
|
|
296
|
-
textPromotionPrompt: 'After every 5 transactions I want to award customer with 200 points. Only customers with more than 2000 lifetime points are eligible. Promotion runs from 1 July to 1 December',
|
|
297
|
-
textStreakPrompt: 'Award customer 150 points if they refer 3 users in a month. Promotion starts on July 1 and runs for 5 months. ',
|
|
298
|
-
textCantConnect: "Can't connect to the server.",
|
|
299
|
-
textCreate: 'Create',
|
|
300
|
-
textCancel: 'Cancel',
|
|
301
|
-
textGeneratingResponse: 'Generating response',
|
|
302
|
-
},
|
|
303
|
-
'CapAskAira.DocumentationChatBot': {
|
|
304
|
-
textBotPlaceholder: 'Ask Aira about anything on our CRM platform',
|
|
305
|
-
textChatBotLoader: 'Hang tight, analyzing your query...',
|
|
306
|
-
textChatBotDesc: 'Ask any doubts about our CRM platform and Aira will do its best to find answers',
|
|
307
|
-
textChatBot: 'Documentation Chat Bot'
|
|
308
|
-
},
|
|
309
|
-
'CapAskAira.CapAiMediaGeneration': {
|
|
310
|
-
textImageBotPlaceholder: 'Ask Aira to generate an image',
|
|
311
|
-
textChatBotLoader: 'Hang tight, analyzing your query...',
|
|
312
|
-
textImageBotDesc: 'Enter a prompt that describes your image.',
|
|
313
|
-
textImageBot: 'Aira Media Generator',
|
|
314
|
-
textImageFooter: 'Dragging and dropping generated images is only supported in the basic email builder.',
|
|
315
|
-
textTipsGenerate: 'Tips to generate better images:',
|
|
316
|
-
textCopy: 'Copy image',
|
|
317
|
-
textCopied: 'Copied',
|
|
318
|
-
textDownload: 'Download',
|
|
319
|
-
textImageDownload: 'Image downloaded successfully!',
|
|
320
|
-
textComingSoon: 'Coming soon',
|
|
321
|
-
textGenerateMore: 'Generate more',
|
|
322
|
-
},
|
|
323
|
-
'CapAskAira.RuleSummarizationBot': {
|
|
324
|
-
textRuleBotPlaceholder: 'Ask Aira to write an expression',
|
|
325
|
-
textSummarizeBotPlaceholder: 'Ask Aira to explain an expression',
|
|
326
|
-
textRuleChatBotLoader: 'Hang tight, analyzing your query...',
|
|
327
|
-
textRuleChatBotDesc: 'Write your detailed rule in simple english and Aira will write the expression for you',
|
|
328
|
-
textSummarizeChatBotDesc: 'Enter the expression and Aira will generate a summary in plain english',
|
|
329
|
-
textRuleChatBot: 'Aira Expression Translator'
|
|
330
|
-
}
|
|
331
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
-
var _antd = require("antd");
|
|
10
|
-
var _excluded = ["className"];
|
|
11
|
-
/**
|
|
12
|
-
* CapSkeleton - Migrated to Ant Design v5
|
|
13
|
-
*/
|
|
14
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
15
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
16
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
17
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
18
|
-
var CapSkeleton = function CapSkeleton(_ref) {
|
|
19
|
-
var className = _ref.className,
|
|
20
|
-
rest = _objectWithoutProperties(_ref, _excluded);
|
|
21
|
-
var combinedClassName = "cap-skeleton-v2 ".concat(className || '').trim();
|
|
22
|
-
return /*#__PURE__*/_react["default"].createElement(_antd.Skeleton, _extends({
|
|
23
|
-
className: combinedClassName
|
|
24
|
-
}, rest));
|
|
25
|
-
};
|
|
26
|
-
CapSkeleton.propTypes = {
|
|
27
|
-
className: _propTypes["default"].string
|
|
28
|
-
};
|
|
29
|
-
var _default = exports["default"] = CapSkeleton;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "default", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function get() {
|
|
9
|
-
return _CapSkeleton["default"];
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
var _CapSkeleton = _interopRequireDefault(require("./CapSkeleton"));
|
|
13
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
package/dist/CapSpin/CapSpin.js
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
-
var _antd = require("antd");
|
|
10
|
-
var _excluded = ["className"];
|
|
11
|
-
/**
|
|
12
|
-
* CapSpin - Migrated to Ant Design v5
|
|
13
|
-
*/
|
|
14
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
15
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
16
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
17
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
18
|
-
var CapSpin = function CapSpin(_ref) {
|
|
19
|
-
var className = _ref.className,
|
|
20
|
-
rest = _objectWithoutProperties(_ref, _excluded);
|
|
21
|
-
return /*#__PURE__*/_react["default"].createElement(_antd.Spin, _extends({
|
|
22
|
-
className: className
|
|
23
|
-
}, rest));
|
|
24
|
-
};
|
|
25
|
-
CapSpin.propTypes = {
|
|
26
|
-
className: _propTypes["default"].string,
|
|
27
|
-
size: _propTypes["default"].oneOf(['small', 'default', 'large']),
|
|
28
|
-
spinning: _propTypes["default"].bool,
|
|
29
|
-
tip: _propTypes["default"].string,
|
|
30
|
-
delay: _propTypes["default"].number,
|
|
31
|
-
indicator: _propTypes["default"].node,
|
|
32
|
-
fullscreen: _propTypes["default"].bool,
|
|
33
|
-
wrapperClassName: _propTypes["default"].string
|
|
34
|
-
};
|
|
35
|
-
var _default = exports["default"] = CapSpin;
|
package/dist/CapSpin/index.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "default", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function get() {
|
|
9
|
-
return _CapSpin["default"];
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
var _CapSpin = _interopRequireDefault(require("./CapSpin"));
|
|
13
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
-
var _antd = require("antd");
|
|
10
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
11
|
-
/**
|
|
12
|
-
* Test component to verify Ant Design v5 Select integration
|
|
13
|
-
* This is a simple wrapper for testing purposes only
|
|
14
|
-
*/
|
|
15
|
-
var CapTestSelect = function CapTestSelect(props) {
|
|
16
|
-
return /*#__PURE__*/_react["default"].createElement(_antd.Select, props);
|
|
17
|
-
};
|
|
18
|
-
CapTestSelect.propTypes = {
|
|
19
|
-
// Common Select props from antd
|
|
20
|
-
allowClear: _propTypes["default"].bool,
|
|
21
|
-
defaultValue: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number, _propTypes["default"].arrayOf(_propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number]))]),
|
|
22
|
-
disabled: _propTypes["default"].bool,
|
|
23
|
-
loading: _propTypes["default"].bool,
|
|
24
|
-
mode: _propTypes["default"].oneOf(['multiple', 'tags']),
|
|
25
|
-
placeholder: _propTypes["default"].string,
|
|
26
|
-
showSearch: _propTypes["default"].bool,
|
|
27
|
-
value: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number, _propTypes["default"].arrayOf(_propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number]))]),
|
|
28
|
-
options: _propTypes["default"].arrayOf(_propTypes["default"].shape({
|
|
29
|
-
label: _propTypes["default"].node,
|
|
30
|
-
value: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number]),
|
|
31
|
-
disabled: _propTypes["default"].bool
|
|
32
|
-
}))
|
|
33
|
-
};
|
|
34
|
-
CapTestSelect.defaultProps = {
|
|
35
|
-
allowClear: false,
|
|
36
|
-
disabled: false,
|
|
37
|
-
loading: false,
|
|
38
|
-
showSearch: false
|
|
39
|
-
};
|
|
40
|
-
var _default = exports["default"] = CapTestSelect;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "default", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function get() {
|
|
9
|
-
return _CapTestSelect["default"];
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
var _CapTestSelect = _interopRequireDefault(require("./CapTestSelect"));
|
|
13
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|