@capillarytech/blaze-ui 0.1.6-alpha.38 → 0.1.6-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 +59 -260
- package/CapUnifiedSelect/index.js +4 -1
- package/CapUnifiedSelect/loadable.js +3 -0
- package/CapUnifiedSelect/styles.js +26 -255
- 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/CapInput/CapInput.js +66 -0
- package/dist/CapInput/Number.js +42 -0
- package/dist/CapInput/Search.js +35 -0
- package/dist/CapInput/TextArea.js +42 -0
- package/dist/CapInput/index.js +15 -0
- package/dist/CapInput/messages.js +32 -0
- package/dist/CapInput/styles.js +11 -0
- package/dist/CapTable/CapTable.js +148 -0
- package/dist/CapTable/index.js +9 -0
- package/dist/CapTable/loadable.js +23 -0
- package/dist/CapTable/styles.js +26 -0
- package/dist/LocaleHoc/index.js +40 -0
- 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/CapInput.js +57 -0
- package/dist/esm/CapInput/Number.js +35 -0
- package/dist/esm/CapInput/Search.js +28 -0
- package/dist/esm/CapInput/TextArea.js +35 -0
- package/dist/esm/CapInput/index.js +8 -0
- package/dist/esm/CapInput/loadable.js +9 -0
- package/dist/esm/CapInput/messages.js +25 -0
- package/dist/esm/CapInput/styles.js +3 -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/CapRow/CapRow.js +22 -0
- package/dist/esm/CapRow/index.js +1 -0
- package/dist/esm/CapRow/styles.js +5 -0
- package/dist/esm/CapTable/CapTable.js +140 -0
- package/dist/esm/CapTable/index.js +2 -0
- package/dist/esm/CapTable/loadable.js +12 -0
- package/dist/esm/CapTable/styles.js +17 -0
- 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 +101 -0
- package/dist/esm/CapUnifiedSelect/index.js +3 -0
- package/dist/esm/CapUnifiedSelect/loadable.js +4 -0
- package/dist/esm/CapUnifiedSelect/messages.js +23 -0
- package/dist/esm/CapUnifiedSelect/styles.js +15 -0
- package/dist/esm/LocaleHoc/index.js +31 -0
- package/dist/esm/index.js +11 -0
- package/dist/esm/styled/index.js +5 -0
- package/dist/esm/styled/variables.js +88 -0
- package/dist/esm/translations/en.js +329 -0
- package/dist/index.js +39 -0
- package/dist/index.js.LICENSE.txt +7 -0
- package/dist/styled/index.js +22 -0
- package/dist/styled/variables.js +94 -0
- package/dist/translations/en.js +335 -0
- package/index.js +1 -7
- package/package.json +10 -6
- package/.DS_Store +0 -0
- 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/assets/upload.svg +0 -3
- package/utils/index.js +0 -1
- package/utils/withStyles.js +0 -24
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// Import and export all components
|
|
2
|
+
export { default as CapInput } from './CapInput';
|
|
3
|
+
export { default as CapTable } from './CapTable';
|
|
4
|
+
|
|
5
|
+
// Export utilities
|
|
6
|
+
export { default as LocaleHoc } from './LocaleHoc';
|
|
7
|
+
|
|
8
|
+
// Export styled utilities
|
|
9
|
+
import * as _styledVars from './styled/variables';
|
|
10
|
+
export { _styledVars as styledVars };
|
|
11
|
+
export { default as styled } from './styled';
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/* Color Palette */
|
|
2
|
+
//========================
|
|
3
|
+
|
|
4
|
+
// Primary colors
|
|
5
|
+
export var CAP_PRIMARY = {
|
|
6
|
+
base: "#47af46",
|
|
7
|
+
hover: "#1f9a1d",
|
|
8
|
+
disabled: "#a1d8a0"
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
// Secondary colors
|
|
12
|
+
export var CAP_SECONDARY = {
|
|
13
|
+
base: "#2466ea",
|
|
14
|
+
light: 'rgba("#2466ea", 0.1)'
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
// Custom colors
|
|
18
|
+
export var CAP_ORANGE = "#f87d23";
|
|
19
|
+
export var CAP_ORANGE01 = "#ffe5d2";
|
|
20
|
+
export var CAP_ORANGE02 = "#fa7d02";
|
|
21
|
+
export var CAP_YELLOW = "#fec52e";
|
|
22
|
+
export var CAP_YELLOW01 = "#e8bc25";
|
|
23
|
+
export var CAP_YELLOW02 = "#f9d438";
|
|
24
|
+
export var CAP_BLUE = "#23cccc";
|
|
25
|
+
export var CAP_PURPLE = "#8517e5";
|
|
26
|
+
export var CAP_PINK = "#e51fa3";
|
|
27
|
+
export var CAP_RED = "#ea213a";
|
|
28
|
+
export var CAP_ICON = "#7a869a";
|
|
29
|
+
export var CAP_PALE_GREY = "#e9f0fe";
|
|
30
|
+
export var CAP_BLUE01 = "#2466eb";
|
|
31
|
+
export var CAP_BLUE02 = "#1d61ee";
|
|
32
|
+
export var CAP_RED01 = "#e51fa3";
|
|
33
|
+
export var CAP_RED02 = "#f5222d";
|
|
34
|
+
export var CAP_RED03 = "#ed1b34";
|
|
35
|
+
export var CAP_PURPLE01 = "#6563ff";
|
|
36
|
+
export var CAP_PURPLE02 = "#a451ff";
|
|
37
|
+
export var CAP_PURPLE03 = "#f2e7fe";
|
|
38
|
+
export var CAP_PURPLE04 = "#d4e1fc";
|
|
39
|
+
export var CAP_GREEN01 = "#6bb56b";
|
|
40
|
+
export var CAP_GREEN02 = "#ecf7ec";
|
|
41
|
+
|
|
42
|
+
// Grey colors
|
|
43
|
+
export var CAP_G01 = "#091e42";
|
|
44
|
+
export var CAP_G02 = "#253858";
|
|
45
|
+
export var CAP_G03 = "#42526e";
|
|
46
|
+
export var CAP_G04 = "#5e6c84";
|
|
47
|
+
export var CAP_G05 = "#97a0af";
|
|
48
|
+
export var CAP_G06 = "#b3bac5";
|
|
49
|
+
export var CAP_G07 = "#dfe2e7";
|
|
50
|
+
export var CAP_G08 = "#ebecf0";
|
|
51
|
+
export var CAP_G09 = "#f4f5f7";
|
|
52
|
+
export var CAP_G10 = "#fafbfc";
|
|
53
|
+
export var CAP_G11 = "#7a869a";
|
|
54
|
+
export var CAP_G12 = "#e8e8e8";
|
|
55
|
+
export var CAP_G13 = "#ecece7";
|
|
56
|
+
export var CAP_G14 = "#e9f0fd";
|
|
57
|
+
export var CAP_G15 = "#efefef";
|
|
58
|
+
export var CAP_G16 = "#2a2a2a";
|
|
59
|
+
export var CAP_G17 = "#7F8185";
|
|
60
|
+
export var CAP_G18 = "#dcdee2";
|
|
61
|
+
export var CAP_G19 = "#8a9ab2";
|
|
62
|
+
export var CAP_G20 = "#c2c2c2";
|
|
63
|
+
export var CAP_WHITE = "#ffffff";
|
|
64
|
+
export var CAP_BLACK = "#000000";
|
|
65
|
+
|
|
66
|
+
/* Fonts */
|
|
67
|
+
// ==============
|
|
68
|
+
export var FONT_FAMILY = '"Roboto", sans-serif';
|
|
69
|
+
export var FONT_WEIGHT_REGULAR = 400;
|
|
70
|
+
export var FONT_WEIGHT_MEDIUM = 500;
|
|
71
|
+
|
|
72
|
+
/* Spacing */
|
|
73
|
+
// ==============
|
|
74
|
+
export var SPACING_04 = "4px";
|
|
75
|
+
export var SPACING_08 = "8px";
|
|
76
|
+
export var SPACING_12 = "12px";
|
|
77
|
+
export var SPACING_16 = "16px";
|
|
78
|
+
export var SPACING_24 = "24px";
|
|
79
|
+
export var SPACING_32 = "32px";
|
|
80
|
+
|
|
81
|
+
/* Border Radius */
|
|
82
|
+
// ==============
|
|
83
|
+
export var RADIUS_04 = "4px";
|
|
84
|
+
export var RADIUS_08 = "8px";
|
|
85
|
+
|
|
86
|
+
/* Transition */
|
|
87
|
+
// ==============
|
|
88
|
+
export var TRANSITION_ALL = "all 0.3s ease";
|
|
@@ -0,0 +1,329 @@
|
|
|
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
|
+
CapConditionPreview: {
|
|
124
|
+
includeMsg: 'Include',
|
|
125
|
+
excludeMsg: 'Exclude',
|
|
126
|
+
equalMsg: 'equal to',
|
|
127
|
+
greaterThanMsg: 'greater than',
|
|
128
|
+
lessThanMsg: 'less than',
|
|
129
|
+
greaterThanOrEqualMsg: 'greater than or equal to',
|
|
130
|
+
lessThanorEqualMsg: 'less than or equal',
|
|
131
|
+
inRangeMsg: 'in range',
|
|
132
|
+
notEqualMsg: 'not equal to',
|
|
133
|
+
whoseMsg: 'whose',
|
|
134
|
+
isMsg: 'is',
|
|
135
|
+
andMsg: 'and',
|
|
136
|
+
ANDMsg: 'AND',
|
|
137
|
+
lineItemMsg: 'only for lineitems with',
|
|
138
|
+
withMsg: 'with',
|
|
139
|
+
addedSKUsMsg: 'Added SKUs',
|
|
140
|
+
skuFileName: 'SKU.csv',
|
|
141
|
+
uploadedMsg: 'uploaded',
|
|
142
|
+
inMsg: 'in',
|
|
143
|
+
notInMsg: 'not in',
|
|
144
|
+
storesMsg: 'Stores',
|
|
145
|
+
viewMoreMsg: 'View more',
|
|
146
|
+
uploadInProgressMsg: 'Upload in progress',
|
|
147
|
+
uploadFailedErrorMsg: 'Upload failed',
|
|
148
|
+
uploadInvalidErrorMsg: 'Invalid file uploaded'
|
|
149
|
+
},
|
|
150
|
+
CapPopoverTree: {
|
|
151
|
+
emptyDataMessage: 'No data found',
|
|
152
|
+
searchPlaceholder: 'Search'
|
|
153
|
+
},
|
|
154
|
+
CapGraphBlockNode: {
|
|
155
|
+
configureText: 'Configure',
|
|
156
|
+
replaceEngagementBlockMsg: 'Replace engagement block'
|
|
157
|
+
},
|
|
158
|
+
CapStaticTemplates: {
|
|
159
|
+
strategyTitleMsg: 'Select the strategy',
|
|
160
|
+
strategyDescriptionMsg: 'Use strategy driven pre-defined marketing use-cases or build your own strategy',
|
|
161
|
+
comingSoonMsg: 'Coming soon',
|
|
162
|
+
blankCategoryLabel: 'Custom',
|
|
163
|
+
blankTemplateLabel: 'Build from scratch',
|
|
164
|
+
blankTemplateDescription: 'Create your own journey from scratch',
|
|
165
|
+
searchPlaceholderMsg: 'Search strategy'
|
|
166
|
+
},
|
|
167
|
+
CapProductSelection: {
|
|
168
|
+
lineItem: 'Line items',
|
|
169
|
+
selectAttribute: 'Select Attribute',
|
|
170
|
+
brand: 'Brand',
|
|
171
|
+
brandInfo: 'Brand',
|
|
172
|
+
category: 'Category',
|
|
173
|
+
categoryInfo: 'Category',
|
|
174
|
+
product: 'Product',
|
|
175
|
+
productInfo: 'Product',
|
|
176
|
+
SKU: 'SKU',
|
|
177
|
+
uploadSKU: 'Upload SKU',
|
|
178
|
+
uploadSKUInfo: 'Upload SKU',
|
|
179
|
+
changeSelection: 'Change the selection',
|
|
180
|
+
description: 'Changing the attribute of additional condition will result in lose of previously defined additional condition',
|
|
181
|
+
okText: 'Yes, change',
|
|
182
|
+
cancelText: 'Cancel',
|
|
183
|
+
comingSoon: 'Coming soon',
|
|
184
|
+
selectValues: 'Select value(s)',
|
|
185
|
+
atleast1Attribute: 'At least 1 attribute is required'
|
|
186
|
+
},
|
|
187
|
+
CapTruncateList: {
|
|
188
|
+
more: 'more'
|
|
189
|
+
},
|
|
190
|
+
CapSKUUploader: {
|
|
191
|
+
validatingSKUs: 'Validating SKUs',
|
|
192
|
+
invalid: 'invalid',
|
|
193
|
+
invalidSKUs: 'Invalid SKUs',
|
|
194
|
+
valid: 'valid',
|
|
195
|
+
addedSKUsMsg: 'Added SKUs',
|
|
196
|
+
skuFileName: 'SKU.csv',
|
|
197
|
+
invalidSKUFilename: 'invalidSKU.csv',
|
|
198
|
+
uploadedMsg: 'uploaded'
|
|
199
|
+
},
|
|
200
|
+
CapDndGraph: {
|
|
201
|
+
deleteBlockModalHeaderText: 'Delete block',
|
|
202
|
+
deleteBlockModalDescriptionText: 'Are you sure you want to delete this block?',
|
|
203
|
+
yesDeleteButtonText: 'Yes, delete',
|
|
204
|
+
noButtonText: 'No',
|
|
205
|
+
joinDropErrorText: "Join block can only be added at the end of the path",
|
|
206
|
+
jumpDropErrorText: "Jump block can only be added at the end of the path",
|
|
207
|
+
theText: 'The',
|
|
208
|
+
endText: 'End',
|
|
209
|
+
blockIsLinkedText: 'block is linked to the',
|
|
210
|
+
blockText: 'block.',
|
|
211
|
+
disconnectText: 'Deleting this block will disconnect the join.',
|
|
212
|
+
areYouSureText: 'Are you sure?'
|
|
213
|
+
},
|
|
214
|
+
CapDragAndDrop: {
|
|
215
|
+
dropboxtext: 'Drop here!',
|
|
216
|
+
selectFilesText: 'Select files from your computer',
|
|
217
|
+
invalidFileSelectionText: 'Invalid file selection!',
|
|
218
|
+
or: 'OR',
|
|
219
|
+
droptext: 'Drag and drop files'
|
|
220
|
+
},
|
|
221
|
+
CapRoadMap: {
|
|
222
|
+
defaultRoadMapDisabledMessage: "Not configured yet"
|
|
223
|
+
},
|
|
224
|
+
CapTimelineCard: {
|
|
225
|
+
defaultConfiguringMessage: 'Configuring...',
|
|
226
|
+
defaultNotConfiguredMessage: 'Not configured yet...',
|
|
227
|
+
toConfigure: 'To configure ',
|
|
228
|
+
completePrevSteps: ' complete the previous steps.'
|
|
229
|
+
},
|
|
230
|
+
CapTimelineNestedCard: {
|
|
231
|
+
defaultConfiguringMessage: 'Configuring...',
|
|
232
|
+
defaultNotConfiguredMessage: 'Not configured yet...',
|
|
233
|
+
toConfigure: 'To configure ',
|
|
234
|
+
completePrevSteps: ' complete the previous steps.'
|
|
235
|
+
},
|
|
236
|
+
NestedCardParent: {
|
|
237
|
+
defaultNestedTitle: 'Triggers',
|
|
238
|
+
toConfigure: 'To configure ',
|
|
239
|
+
completePrevSteps: ' complete the previous steps.'
|
|
240
|
+
},
|
|
241
|
+
'CapAskAira.DocumentationBot': {
|
|
242
|
+
textAskYourQuestion: "Ask your question here",
|
|
243
|
+
textVisitDocs: "Visit Capillary Documentation",
|
|
244
|
+
textNeedHelp: "Need more help?",
|
|
245
|
+
textHowMayIHelp: "How may AI help you?",
|
|
246
|
+
textAira: "AiRA Documentation Bot",
|
|
247
|
+
textLinks: "Links",
|
|
248
|
+
textWasHelpful: "Was this response helpful?",
|
|
249
|
+
textConfidence: "confidence",
|
|
250
|
+
textTooltip: "Need help? Ask Aira",
|
|
251
|
+
textCantConnect: "Can't connect to the server."
|
|
252
|
+
},
|
|
253
|
+
'CapAskAira.RuleGenerationBot': {
|
|
254
|
+
textTypeAMessage: 'Type a message above and ask AiRA to recommend the best content',
|
|
255
|
+
textError: "An error occurred while generating rule. Try again.",
|
|
256
|
+
textAiraTitle: "AiRA Rule Generation",
|
|
257
|
+
textAiraTooltip: "AiRA, our proprietary AI tool, generates rule expressions based on text query.",
|
|
258
|
+
textCopy: "Copy",
|
|
259
|
+
textCopied: "Copied",
|
|
260
|
+
textRulePlaceholder: "Enter query...",
|
|
261
|
+
textRuleLoading: "Rule is loading... Hang tight!",
|
|
262
|
+
textThank: 'Thank you for your response!',
|
|
263
|
+
textWarn: 'Aira responses may be inaccurate or misleading. Help us to improve!',
|
|
264
|
+
textAddCommentPlaceholder: 'Add comment'
|
|
265
|
+
},
|
|
266
|
+
'CapAskAira.ContentGenerationBot': {
|
|
267
|
+
textTypeAMessage: 'Type a message above and ask AiRA to recommend the best content',
|
|
268
|
+
textRecommendationsLoading: "Recommendations loading... Hang tight!",
|
|
269
|
+
textError: "An error occurred while loading recommendations. Try again.",
|
|
270
|
+
textAiraTitle: "AiRA Content Recommendations",
|
|
271
|
+
textAiraTooltip: "AiRA, our proprietary AI tool, recommends tailored language to effectively engage customers and prompt desired actions.",
|
|
272
|
+
textLoading: "loading...",
|
|
273
|
+
textCharacters: "characters",
|
|
274
|
+
textReplaceWithThis: "Replace with this",
|
|
275
|
+
textReplaced: 'Replaced',
|
|
276
|
+
textResetToDefault: "Reset to default",
|
|
277
|
+
textMoreLikeThis: "More like this",
|
|
278
|
+
textGenerateMore: "Generate more"
|
|
279
|
+
},
|
|
280
|
+
'CapAskAira.ConfigurationBot': {
|
|
281
|
+
textAiraTitle: 'Aira Configuration Bot',
|
|
282
|
+
textAiraTooltip: "Aira, our proprietary AI tool, helps you configure promotions, campaigns, and more.",
|
|
283
|
+
textTypeAMessage: 'Type a message above and ask AiRA to recommend the best content',
|
|
284
|
+
textUser: 'Hello!',
|
|
285
|
+
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.",
|
|
286
|
+
textCouponTile: 'Milestone on GS',
|
|
287
|
+
textCouponDescription: 'Customer has to do 1000/- gross sales in a month, and can get 100 points.',
|
|
288
|
+
textPromotionTitle: 'Milestone on count',
|
|
289
|
+
textPromotionDescription: 'Eligible customers get points on every 5 transactions.',
|
|
290
|
+
textStreakTitle: 'Reward on referral',
|
|
291
|
+
textStreakDescription: 'Award customer 150 points if they refer 3 users in a month. Promotion starts on July 1 and runs for 5 months.',
|
|
292
|
+
textPromptHere: 'Enter a prompt here...',
|
|
293
|
+
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.',
|
|
294
|
+
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',
|
|
295
|
+
textStreakPrompt: 'Award customer 150 points if they refer 3 users in a month. Promotion starts on July 1 and runs for 5 months. ',
|
|
296
|
+
textCantConnect: "Can't connect to the server.",
|
|
297
|
+
textCreate: 'Create',
|
|
298
|
+
textCancel: 'Cancel',
|
|
299
|
+
textGeneratingResponse: 'Generating response'
|
|
300
|
+
},
|
|
301
|
+
'CapAskAira.DocumentationChatBot': {
|
|
302
|
+
textBotPlaceholder: 'Ask Aira about anything on our CRM platform',
|
|
303
|
+
textChatBotLoader: 'Hang tight, analyzing your query...',
|
|
304
|
+
textChatBotDesc: 'Ask any doubts about our CRM platform and Aira will do its best to find answers',
|
|
305
|
+
textChatBot: 'Documentation Chat Bot'
|
|
306
|
+
},
|
|
307
|
+
'CapAskAira.CapAiMediaGeneration': {
|
|
308
|
+
textImageBotPlaceholder: 'Ask Aira to generate an image',
|
|
309
|
+
textChatBotLoader: 'Hang tight, analyzing your query...',
|
|
310
|
+
textImageBotDesc: 'Enter a prompt that describes your image.',
|
|
311
|
+
textImageBot: 'Aira Media Generator',
|
|
312
|
+
textImageFooter: 'Dragging and dropping generated images is only supported in the basic email builder.',
|
|
313
|
+
textTipsGenerate: 'Tips to generate better images:',
|
|
314
|
+
textCopy: 'Copy image',
|
|
315
|
+
textCopied: 'Copied',
|
|
316
|
+
textDownload: 'Download',
|
|
317
|
+
textImageDownload: 'Image downloaded successfully!',
|
|
318
|
+
textComingSoon: 'Coming soon',
|
|
319
|
+
textGenerateMore: 'Generate more'
|
|
320
|
+
},
|
|
321
|
+
'CapAskAira.RuleSummarizationBot': {
|
|
322
|
+
textRuleBotPlaceholder: 'Ask Aira to write an expression',
|
|
323
|
+
textSummarizeBotPlaceholder: 'Ask Aira to explain an expression',
|
|
324
|
+
textRuleChatBotLoader: 'Hang tight, analyzing your query...',
|
|
325
|
+
textRuleChatBotDesc: 'Write your detailed rule in simple english and Aira will write the expression for you',
|
|
326
|
+
textSummarizeChatBotDesc: 'Enter the expression and Aira will generate a summary in plain english',
|
|
327
|
+
textRuleChatBot: 'Aira Expression Translator'
|
|
328
|
+
}
|
|
329
|
+
};
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
Object.defineProperty(exports, "CapInput", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function get() {
|
|
10
|
+
return _CapInput["default"];
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
Object.defineProperty(exports, "CapTable", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function get() {
|
|
16
|
+
return _CapTable["default"];
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports, "LocaleHoc", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function get() {
|
|
22
|
+
return _LocaleHoc["default"];
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
Object.defineProperty(exports, "styled", {
|
|
26
|
+
enumerable: true,
|
|
27
|
+
get: function get() {
|
|
28
|
+
return _styled["default"];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
exports.styledVars = void 0;
|
|
32
|
+
var _CapInput = _interopRequireDefault(require("./CapInput"));
|
|
33
|
+
var _CapTable = _interopRequireDefault(require("./CapTable"));
|
|
34
|
+
var _LocaleHoc = _interopRequireDefault(require("./LocaleHoc"));
|
|
35
|
+
var _styledVars = _interopRequireWildcard(require("./styled/variables"));
|
|
36
|
+
exports.styledVars = _styledVars;
|
|
37
|
+
var _styled = _interopRequireDefault(require("./styled"));
|
|
38
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
39
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** */
|
|
2
|
+
|
|
3
|
+
/** */
|
|
4
|
+
|
|
5
|
+
/** */
|
|
6
|
+
|
|
7
|
+
/** */
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
var _exportNames = {};
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
var styledVars = _interopRequireWildcard(require("./variables"));
|
|
10
|
+
Object.keys(styledVars).forEach(function (key) {
|
|
11
|
+
if (key === "default" || key === "__esModule") return;
|
|
12
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
13
|
+
if (key in exports && exports[key] === styledVars[key]) return;
|
|
14
|
+
Object.defineProperty(exports, key, {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function get() {
|
|
17
|
+
return styledVars[key];
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
});
|
|
21
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
22
|
+
var _default = exports["default"] = styledVars; // Re-export all variables for easier access
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.TRANSITION_ALL = exports.SPACING_32 = exports.SPACING_24 = exports.SPACING_16 = exports.SPACING_12 = exports.SPACING_08 = exports.SPACING_04 = exports.RADIUS_08 = exports.RADIUS_04 = exports.FONT_WEIGHT_REGULAR = exports.FONT_WEIGHT_MEDIUM = exports.FONT_FAMILY = exports.CAP_YELLOW02 = exports.CAP_YELLOW01 = exports.CAP_YELLOW = exports.CAP_WHITE = exports.CAP_SECONDARY = exports.CAP_RED03 = exports.CAP_RED02 = exports.CAP_RED01 = exports.CAP_RED = exports.CAP_PURPLE04 = exports.CAP_PURPLE03 = exports.CAP_PURPLE02 = exports.CAP_PURPLE01 = exports.CAP_PURPLE = exports.CAP_PRIMARY = exports.CAP_PINK = exports.CAP_PALE_GREY = exports.CAP_ORANGE02 = exports.CAP_ORANGE01 = exports.CAP_ORANGE = exports.CAP_ICON = exports.CAP_GREEN02 = exports.CAP_GREEN01 = exports.CAP_G20 = exports.CAP_G19 = exports.CAP_G18 = exports.CAP_G17 = exports.CAP_G16 = exports.CAP_G15 = exports.CAP_G14 = exports.CAP_G13 = exports.CAP_G12 = exports.CAP_G11 = exports.CAP_G10 = exports.CAP_G09 = exports.CAP_G08 = exports.CAP_G07 = exports.CAP_G06 = exports.CAP_G05 = exports.CAP_G04 = exports.CAP_G03 = exports.CAP_G02 = exports.CAP_G01 = exports.CAP_BLUE02 = exports.CAP_BLUE01 = exports.CAP_BLUE = exports.CAP_BLACK = void 0;
|
|
7
|
+
/* Color Palette */
|
|
8
|
+
//========================
|
|
9
|
+
|
|
10
|
+
// Primary colors
|
|
11
|
+
var CAP_PRIMARY = exports.CAP_PRIMARY = {
|
|
12
|
+
base: "#47af46",
|
|
13
|
+
hover: "#1f9a1d",
|
|
14
|
+
disabled: "#a1d8a0"
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
// Secondary colors
|
|
18
|
+
var CAP_SECONDARY = exports.CAP_SECONDARY = {
|
|
19
|
+
base: "#2466ea",
|
|
20
|
+
light: 'rgba("#2466ea", 0.1)'
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
// Custom colors
|
|
24
|
+
var CAP_ORANGE = exports.CAP_ORANGE = "#f87d23";
|
|
25
|
+
var CAP_ORANGE01 = exports.CAP_ORANGE01 = "#ffe5d2";
|
|
26
|
+
var CAP_ORANGE02 = exports.CAP_ORANGE02 = "#fa7d02";
|
|
27
|
+
var CAP_YELLOW = exports.CAP_YELLOW = "#fec52e";
|
|
28
|
+
var CAP_YELLOW01 = exports.CAP_YELLOW01 = "#e8bc25";
|
|
29
|
+
var CAP_YELLOW02 = exports.CAP_YELLOW02 = "#f9d438";
|
|
30
|
+
var CAP_BLUE = exports.CAP_BLUE = "#23cccc";
|
|
31
|
+
var CAP_PURPLE = exports.CAP_PURPLE = "#8517e5";
|
|
32
|
+
var CAP_PINK = exports.CAP_PINK = "#e51fa3";
|
|
33
|
+
var CAP_RED = exports.CAP_RED = "#ea213a";
|
|
34
|
+
var CAP_ICON = exports.CAP_ICON = "#7a869a";
|
|
35
|
+
var CAP_PALE_GREY = exports.CAP_PALE_GREY = "#e9f0fe";
|
|
36
|
+
var CAP_BLUE01 = exports.CAP_BLUE01 = "#2466eb";
|
|
37
|
+
var CAP_BLUE02 = exports.CAP_BLUE02 = "#1d61ee";
|
|
38
|
+
var CAP_RED01 = exports.CAP_RED01 = "#e51fa3";
|
|
39
|
+
var CAP_RED02 = exports.CAP_RED02 = "#f5222d";
|
|
40
|
+
var CAP_RED03 = exports.CAP_RED03 = "#ed1b34";
|
|
41
|
+
var CAP_PURPLE01 = exports.CAP_PURPLE01 = "#6563ff";
|
|
42
|
+
var CAP_PURPLE02 = exports.CAP_PURPLE02 = "#a451ff";
|
|
43
|
+
var CAP_PURPLE03 = exports.CAP_PURPLE03 = "#f2e7fe";
|
|
44
|
+
var CAP_PURPLE04 = exports.CAP_PURPLE04 = "#d4e1fc";
|
|
45
|
+
var CAP_GREEN01 = exports.CAP_GREEN01 = "#6bb56b";
|
|
46
|
+
var CAP_GREEN02 = exports.CAP_GREEN02 = "#ecf7ec";
|
|
47
|
+
|
|
48
|
+
// Grey colors
|
|
49
|
+
var CAP_G01 = exports.CAP_G01 = "#091e42";
|
|
50
|
+
var CAP_G02 = exports.CAP_G02 = "#253858";
|
|
51
|
+
var CAP_G03 = exports.CAP_G03 = "#42526e";
|
|
52
|
+
var CAP_G04 = exports.CAP_G04 = "#5e6c84";
|
|
53
|
+
var CAP_G05 = exports.CAP_G05 = "#97a0af";
|
|
54
|
+
var CAP_G06 = exports.CAP_G06 = "#b3bac5";
|
|
55
|
+
var CAP_G07 = exports.CAP_G07 = "#dfe2e7";
|
|
56
|
+
var CAP_G08 = exports.CAP_G08 = "#ebecf0";
|
|
57
|
+
var CAP_G09 = exports.CAP_G09 = "#f4f5f7";
|
|
58
|
+
var CAP_G10 = exports.CAP_G10 = "#fafbfc";
|
|
59
|
+
var CAP_G11 = exports.CAP_G11 = "#7a869a";
|
|
60
|
+
var CAP_G12 = exports.CAP_G12 = "#e8e8e8";
|
|
61
|
+
var CAP_G13 = exports.CAP_G13 = "#ecece7";
|
|
62
|
+
var CAP_G14 = exports.CAP_G14 = "#e9f0fd";
|
|
63
|
+
var CAP_G15 = exports.CAP_G15 = "#efefef";
|
|
64
|
+
var CAP_G16 = exports.CAP_G16 = "#2a2a2a";
|
|
65
|
+
var CAP_G17 = exports.CAP_G17 = "#7F8185";
|
|
66
|
+
var CAP_G18 = exports.CAP_G18 = "#dcdee2";
|
|
67
|
+
var CAP_G19 = exports.CAP_G19 = "#8a9ab2";
|
|
68
|
+
var CAP_G20 = exports.CAP_G20 = "#c2c2c2";
|
|
69
|
+
var CAP_WHITE = exports.CAP_WHITE = "#ffffff";
|
|
70
|
+
var CAP_BLACK = exports.CAP_BLACK = "#000000";
|
|
71
|
+
|
|
72
|
+
/* Fonts */
|
|
73
|
+
// ==============
|
|
74
|
+
var FONT_FAMILY = exports.FONT_FAMILY = '"Roboto", sans-serif';
|
|
75
|
+
var FONT_WEIGHT_REGULAR = exports.FONT_WEIGHT_REGULAR = 400;
|
|
76
|
+
var FONT_WEIGHT_MEDIUM = exports.FONT_WEIGHT_MEDIUM = 500;
|
|
77
|
+
|
|
78
|
+
/* Spacing */
|
|
79
|
+
// ==============
|
|
80
|
+
var SPACING_04 = exports.SPACING_04 = "4px";
|
|
81
|
+
var SPACING_08 = exports.SPACING_08 = "8px";
|
|
82
|
+
var SPACING_12 = exports.SPACING_12 = "12px";
|
|
83
|
+
var SPACING_16 = exports.SPACING_16 = "16px";
|
|
84
|
+
var SPACING_24 = exports.SPACING_24 = "24px";
|
|
85
|
+
var SPACING_32 = exports.SPACING_32 = "32px";
|
|
86
|
+
|
|
87
|
+
/* Border Radius */
|
|
88
|
+
// ==============
|
|
89
|
+
var RADIUS_04 = exports.RADIUS_04 = "4px";
|
|
90
|
+
var RADIUS_08 = exports.RADIUS_08 = "8px";
|
|
91
|
+
|
|
92
|
+
/* Transition */
|
|
93
|
+
// ==============
|
|
94
|
+
var TRANSITION_ALL = exports.TRANSITION_ALL = "all 0.3s ease";
|