@capillarytech/blaze-ui 4.2.0 → 4.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/dist/CapAskAira/index.js +111 -7
  2. package/dist/CapAskAira/index.js.map +1 -1
  3. package/dist/CapCollapsibleLeftNavigation/index.js +111 -7
  4. package/dist/CapCollapsibleLeftNavigation/index.js.map +1 -1
  5. package/dist/CapCollapsibleNavbar/index.js +111 -7
  6. package/dist/CapCollapsibleNavbar/index.js.map +1 -1
  7. package/dist/CapDivider/README.md +122 -0
  8. package/dist/CapDivider/index.d.ts +2 -17
  9. package/dist/CapDivider/index.d.ts.map +1 -1
  10. package/dist/CapDivider/index.js +521 -8
  11. package/dist/CapDivider/index.js.map +1 -1
  12. package/dist/CapDivider/tests/__snapshots__/index.test.tsx.snap +57 -7
  13. package/dist/CapDivider/types.d.ts +32 -0
  14. package/dist/CapDivider/types.d.ts.map +1 -0
  15. package/dist/CapDragReorder/index.js +111 -7
  16. package/dist/CapDragReorder/index.js.map +1 -1
  17. package/dist/CapEventCalendar/index.js +290 -8
  18. package/dist/CapEventCalendar/index.js.map +1 -1
  19. package/dist/CapIllustration/index.js +290 -8
  20. package/dist/CapIllustration/index.js.map +1 -1
  21. package/dist/CapMobileDateRangePicker/index.js +111 -7
  22. package/dist/CapMobileDateRangePicker/index.js.map +1 -1
  23. package/dist/CapNavigation/index.js +111 -7
  24. package/dist/CapNavigation/index.js.map +1 -1
  25. package/dist/CapNotificationDropdown/index.js +111 -7
  26. package/dist/CapNotificationDropdown/index.js.map +1 -1
  27. package/dist/CapSecondaryTopBar/index.js +111 -7
  28. package/dist/CapSecondaryTopBar/index.js.map +1 -1
  29. package/dist/CapStatisticCard/README.md +138 -0
  30. package/dist/CapStatisticCard/index.d.ts +6 -0
  31. package/dist/CapStatisticCard/index.d.ts.map +1 -0
  32. package/dist/CapStatisticCard/index.js +143 -259
  33. package/dist/CapStatisticCard/index.js.map +1 -1
  34. package/dist/CapStatisticCard/types.d.ts +12 -0
  35. package/dist/CapStatisticCard/types.d.ts.map +1 -0
  36. package/dist/CapTimeline/index.js +111 -7
  37. package/dist/CapTimeline/index.js.map +1 -1
  38. package/dist/CapTimelineNested/index.js +111 -7
  39. package/dist/CapTimelineNested/index.js.map +1 -1
  40. package/dist/CapTopBar/index.js +111 -7
  41. package/dist/CapTopBar/index.js.map +1 -1
  42. package/dist/index.d.ts +3 -1
  43. package/dist/index.d.ts.map +1 -1
  44. package/dist/index.js +290 -8
  45. package/dist/index.js.map +1 -1
  46. package/package.json +19 -1
@@ -130,6 +130,29 @@ ___CSS_LOADER_EXPORT___.locals = {
130
130
  module.exports = ___CSS_LOADER_EXPORT___;
131
131
 
132
132
 
133
+ /***/ }),
134
+
135
+ /***/ 15521:
136
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
137
+
138
+ // Imports
139
+ var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = __webpack_require__(31601);
140
+ var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(76314);
141
+ var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);
142
+ // Module
143
+ ___CSS_LOADER_EXPORT___.push([module.id, `.blaze-ui-ant-divider.blaze-ui-cap-divider-v2{background:#dfe2e7}.blaze-ui-ant-divider.blaze-ui-cap-divider-v2.blaze-ui-ant-divider-horizontal.blaze-ui-ant-divider-with-text,.blaze-ui-ant-divider.blaze-ui-cap-divider-v2.blaze-ui-ant-divider-horizontal.blaze-ui-ant-divider-with-text-left,.blaze-ui-ant-divider.blaze-ui-cap-divider-v2.blaze-ui-ant-divider-horizontal.blaze-ui-ant-divider-with-text-right{background:rgba(0,0,0,0)}.blaze-ui-ant-divider.blaze-ui-cap-divider-v2.blaze-ui-ant-divider-horizontal.blaze-ui-ant-divider-with-text::before,.blaze-ui-ant-divider.blaze-ui-cap-divider-v2.blaze-ui-ant-divider-horizontal.blaze-ui-ant-divider-with-text-left::before,.blaze-ui-ant-divider.blaze-ui-cap-divider-v2.blaze-ui-ant-divider-horizontal.blaze-ui-ant-divider-with-text-right::before,.blaze-ui-ant-divider.blaze-ui-cap-divider-v2.blaze-ui-ant-divider-horizontal.blaze-ui-ant-divider-with-text::after,.blaze-ui-ant-divider.blaze-ui-cap-divider-v2.blaze-ui-ant-divider-horizontal.blaze-ui-ant-divider-with-text-left::after,.blaze-ui-ant-divider.blaze-ui-cap-divider-v2.blaze-ui-ant-divider-horizontal.blaze-ui-ant-divider-with-text-right::after{border-color:#dfe2e7}`, ""]);
144
+ // Exports
145
+ ___CSS_LOADER_EXPORT___.locals = {
146
+ "ant-divider": `blaze-ui-ant-divider`,
147
+ "cap-divider-v2": `blaze-ui-cap-divider-v2`,
148
+ "ant-divider-horizontal": `blaze-ui-ant-divider-horizontal`,
149
+ "ant-divider-with-text": `blaze-ui-ant-divider-with-text`,
150
+ "ant-divider-with-text-left": `blaze-ui-ant-divider-with-text-left`,
151
+ "ant-divider-with-text-right": `blaze-ui-ant-divider-with-text-right`
152
+ };
153
+ module.exports = ___CSS_LOADER_EXPORT___;
154
+
155
+
133
156
  /***/ }),
134
157
 
135
158
  /***/ 21020:
@@ -162,13 +185,12 @@ exports["default"] = void 0;
162
185
  var _antdV = __webpack_require__(64273);
163
186
  var _classnames = _interopRequireDefault(__webpack_require__(46942));
164
187
  var _react = _interopRequireDefault(__webpack_require__(9206));
188
+ __webpack_require__(74770);
165
189
  var _jsxRuntime = __webpack_require__(74848);
166
- const _excluded = ["className", "orientation", "type"]; // Legacy alignment values that need mapping
167
- // Valid Ant Design v6 title placement values
190
+ const _excluded = ["className", "orientation", "titlePlacement", "type", "children"];
168
191
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
169
192
  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); }
170
193
  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; }
171
- // Map legacy alignment values to Ant Design v6 titlePlacement values
172
194
  const mapTitlePlacement = value => {
173
195
  if (value === 'left') return 'start';
174
196
  if (value === 'right') return 'end';
@@ -177,18 +199,48 @@ const mapTitlePlacement = value => {
177
199
  }
178
200
  return undefined;
179
201
  };
202
+
203
+ // Type guard to check if orientation is for text alignment
204
+ const isTextAlignmentValue = value => {
205
+ return value === 'left' || value === 'right' || value === 'center' || value === 'start' || value === 'end';
206
+ };
207
+
208
+ // Type guard to check if orientation is for divider direction
209
+ const isDividerDirectionValue = value => {
210
+ return value === 'horizontal' || value === 'vertical';
211
+ };
180
212
  const CapDivider = _ref => {
181
213
  let {
182
214
  className,
183
215
  orientation,
184
- type = 'horizontal'
216
+ titlePlacement,
217
+ type,
218
+ children
185
219
  } = _ref,
186
220
  rest = _objectWithoutPropertiesLoose(_ref, _excluded);
221
+ // Determine if 'orientation' is being used for text alignment (legacy cap-ui-library API)
222
+ // or for divider direction (Ant Design v6 API)
223
+ const isOrientationForTextAlignment = orientation !== undefined && isTextAlignmentValue(orientation);
224
+
225
+ // Divider direction (horizontal/vertical)
226
+ // Priority: orientation (if used for direction) > type (deprecated) > default horizontal
227
+ const dividerOrientation = isOrientationForTextAlignment ? type != null ? type : 'horizontal' // If orientation is for text, use type for direction
228
+ : isDividerDirectionValue(orientation) ? orientation : type != null ? type : 'horizontal'; // Otherwise use orientation or type
229
+
230
+ // Text alignment (titlePlacement)
231
+ // Priority: titlePlacement prop > orientation (if used for text alignment)
232
+ const finalTitlePlacement = mapTitlePlacement(titlePlacement != null ? titlePlacement : isOrientationForTextAlignment ? orientation : undefined);
233
+
234
+ // Deprecation warnings
235
+ if (false) // removed by dead control flow
236
+ {}
187
237
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_antdV.Divider, _extends({
188
238
  className: (0, _classnames.default)('cap-divider-v2', className),
189
- orientation: type,
190
- titlePlacement: mapTitlePlacement(orientation)
191
- }, rest));
239
+ orientation: dividerOrientation,
240
+ titlePlacement: finalTitlePlacement
241
+ }, rest, {
242
+ children: children
243
+ }));
192
244
  };
193
245
  var _default = exports["default"] = CapDivider;
194
246
 
@@ -360,14 +412,6 @@ var update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js
360
412
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default()) && (_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default().locals) ? (_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default().locals) : undefined);
361
413
 
362
414
 
363
- /***/ }),
364
-
365
- /***/ 43363:
366
- /***/ ((module) => {
367
-
368
- "use strict";
369
- module.exports = require("prop-types");
370
-
371
415
  /***/ }),
372
416
 
373
417
  /***/ 43953:
@@ -514,7 +558,7 @@ var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = __webpack_require__(31601);
514
558
  var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(76314);
515
559
  var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);
516
560
  // Module
517
- ___CSS_LOADER_EXPORT___.push([module.id, `.blaze-ui-stats-card .blaze-ui-stats-item{display:inline-block}.blaze-ui-stats-card .blaze-ui-stats-item .blaze-ui-stats-text{margin-bottom:.285rem;padding-right:10px}.blaze-ui-stats-card .blaze-ui-stats-item .blaze-ui-stats-val{padding-right:10px}.blaze-ui-stats-card .blaze-ui-stats-item .blaze-ui-stats-sub-text{margin-top:.571rem}`, ""]);
561
+ ___CSS_LOADER_EXPORT___.push([module.id, `.blaze-ui-stats-card .blaze-ui-stats-item{display:inline-block}.blaze-ui-stats-card .blaze-ui-stats-item .blaze-ui-stats-text{margin-bottom:.285rem;padding-right:.714rem}.blaze-ui-stats-card .blaze-ui-stats-item .blaze-ui-stats-val{padding-right:.714rem}.blaze-ui-stats-card .blaze-ui-stats-item .blaze-ui-stats-sub-text{margin-top:.571rem}`, ""]);
518
562
  // Exports
519
563
  ___CSS_LOADER_EXPORT___.locals = {
520
564
  "stats-card": `blaze-ui-stats-card`,
@@ -545,211 +589,6 @@ module.exports = setAttributesWithoutAttributes;
545
589
 
546
590
  /***/ }),
547
591
 
548
- /***/ 56587:
549
- /***/ ((__unused_webpack_module, exports) => {
550
-
551
- "use strict";
552
-
553
-
554
- exports.__esModule = true;
555
- exports.CAP_SPACE_52 = exports.CAP_SPACE_48 = exports.CAP_SPACE_44 = exports.CAP_SPACE_42 = exports.CAP_SPACE_40 = exports.CAP_SPACE_36 = exports.CAP_SPACE_32 = exports.CAP_SPACE_28 = exports.CAP_SPACE_24 = exports.CAP_SPACE_23 = exports.CAP_SPACE_20 = exports.CAP_SPACE_19 = exports.CAP_SPACE_18 = exports.CAP_SPACE_16 = exports.CAP_SPACE_12 = exports.CAP_SPACE_08 = exports.CAP_SPACE_06 = exports.CAP_SPACE_04 = exports.CAP_SPACE_03 = exports.CAP_SPACE_02 = exports.CAP_SPACE_01 = exports.CAP_SPACE_00 = 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_COLOR_27 = exports.CAP_COLOR_26 = exports.CAP_COLOR_25 = exports.CAP_COLOR_24 = exports.CAP_COLOR_23 = exports.CAP_COLOR_22 = exports.CAP_COLOR_21 = exports.CAP_COLOR_20 = exports.CAP_COLOR_19 = exports.CAP_COLOR_18 = exports.CAP_COLOR_17 = exports.CAP_COLOR_16 = exports.CAP_COLOR_15 = exports.CAP_COLOR_14 = exports.CAP_COLOR_13 = exports.CAP_COLOR_12 = exports.CAP_COLOR_11 = exports.CAP_COLOR_10 = exports.CAP_COLOR_09 = exports.CAP_COLOR_08 = exports.CAP_COLOR_07 = exports.CAP_COLOR_06 = exports.CAP_COLOR_05 = exports.CAP_COLOR_04 = exports.CAP_COLOR_03 = exports.CAP_COLOR_02 = exports.CAP_COLOR_01 = exports.CAP_BLUE02 = exports.CAP_BLUE01 = exports.CAP_BLUE = exports.CAP_BLACK_ALPHA01 = exports.CAP_BLACK = exports.BUTTON_HEIGHT = exports.BORDER_WIDTH_2 = exports.BORDER_WIDTH_1 = exports.BG_08 = exports.BG_03 = exports.BG_02 = exports.BG_01 = void 0;
556
- 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.NORMAL_LINE_HEIGHT = exports.INPUT_HEIGHT = exports.ICON_SIZE_XS = exports.ICON_SIZE_S = exports.ICON_SIZE_M = exports.ICON_SIZE_L = exports.FONT_WEIGHT_REGULAR = exports.FONT_WEIGHT_MEDIUM = exports.FONT_SIZE_VS = exports.FONT_SIZE_VL = exports.FONT_SIZE_S = exports.FONT_SIZE_M = exports.FONT_SIZE_L = exports.FONT_FAMILY = exports.FONT_COLOR_06 = exports.FONT_COLOR_05 = exports.FONT_COLOR_04 = exports.FONT_COLOR_03 = exports.FONT_COLOR_02 = exports.FONT_COLOR_01 = exports.COLOR_WARNING = exports.COLOR_SUCCESS = exports.COLOR_INFO = exports.COLOR_ERROR = exports.CAP_YELLOW02 = exports.CAP_YELLOW01 = exports.CAP_YELLOW = exports.CAP_WHITE_OVERLAY = exports.CAP_WHITE = exports.CAP_SPACE_80 = exports.CAP_SPACE_72 = exports.CAP_SPACE_64 = exports.CAP_SPACE_60 = exports.CAP_SPACE_56 = void 0;
557
- /* Color Palette */
558
- //========================
559
-
560
- // Primary colors
561
- const CAP_PRIMARY = exports.CAP_PRIMARY = {
562
- base: '#47af46',
563
- hover: '#1f9a1d',
564
- disabled: '#a1d8a0'
565
- };
566
-
567
- // Secondary colors
568
- const CAP_SECONDARY = exports.CAP_SECONDARY = {
569
- base: '#2466ea',
570
- light: 'rgba(36, 102, 234, 0.1)'
571
- };
572
- const NORMAL_LINE_HEIGHT = exports.NORMAL_LINE_HEIGHT = 'normal';
573
-
574
- // Custom colors
575
- const CAP_ORANGE = exports.CAP_ORANGE = '#f87d23';
576
- const CAP_ORANGE01 = exports.CAP_ORANGE01 = '#ffe5d2';
577
- const CAP_ORANGE02 = exports.CAP_ORANGE02 = '#fa7d02';
578
- const CAP_YELLOW = exports.CAP_YELLOW = '#fec52e';
579
- const CAP_YELLOW01 = exports.CAP_YELLOW01 = '#e8bc25';
580
- const CAP_YELLOW02 = exports.CAP_YELLOW02 = '#f9d438';
581
- const CAP_BLUE = exports.CAP_BLUE = '#23cccc';
582
- const CAP_PURPLE = exports.CAP_PURPLE = '#8517e5';
583
- const CAP_PINK = exports.CAP_PINK = '#e51fa3';
584
- const CAP_RED = exports.CAP_RED = '#ea213a';
585
- const CAP_ICON = exports.CAP_ICON = '#7a869a';
586
- const CAP_PALE_GREY = exports.CAP_PALE_GREY = '#e9f0fe';
587
- const CAP_BLUE01 = exports.CAP_BLUE01 = '#2466eb';
588
- const CAP_BLUE02 = exports.CAP_BLUE02 = '#1d61ee';
589
- const CAP_RED01 = exports.CAP_RED01 = '#e51fa3';
590
- const CAP_RED02 = exports.CAP_RED02 = '#f5222d';
591
- const CAP_RED03 = exports.CAP_RED03 = '#ed1b34';
592
- const CAP_PURPLE01 = exports.CAP_PURPLE01 = '#6563ff';
593
- const CAP_PURPLE02 = exports.CAP_PURPLE02 = '#a451ff';
594
- const CAP_PURPLE03 = exports.CAP_PURPLE03 = '#f2e7fe';
595
- const CAP_PURPLE04 = exports.CAP_PURPLE04 = '#d4e1fc';
596
- const CAP_GREEN01 = exports.CAP_GREEN01 = '#6bb56b';
597
- const CAP_GREEN02 = exports.CAP_GREEN02 = '#ecf7ec';
598
-
599
- // Grey colors
600
- const CAP_G01 = exports.CAP_G01 = '#091e42';
601
- const CAP_G02 = exports.CAP_G02 = '#253858';
602
- const CAP_G03 = exports.CAP_G03 = '#42526e';
603
- const CAP_G04 = exports.CAP_G04 = '#5e6c84';
604
- const CAP_G05 = exports.CAP_G05 = '#97a0af';
605
- const CAP_G06 = exports.CAP_G06 = '#b3bac5';
606
- const CAP_G07 = exports.CAP_G07 = '#dfe2e7';
607
- const CAP_G08 = exports.CAP_G08 = '#ebecf0';
608
- const CAP_G09 = exports.CAP_G09 = '#f4f5f7';
609
- const CAP_G10 = exports.CAP_G10 = '#fafbfc';
610
- const CAP_G11 = exports.CAP_G11 = '#7a869a';
611
- const CAP_G12 = exports.CAP_G12 = '#e8e8e8';
612
- const CAP_G13 = exports.CAP_G13 = '#ecece7';
613
- const CAP_G14 = exports.CAP_G14 = '#e9f0fd';
614
- const CAP_G15 = exports.CAP_G15 = '#efefef';
615
- const CAP_G16 = exports.CAP_G16 = '#2a2a2a';
616
- const CAP_G17 = exports.CAP_G17 = '#5d6b85';
617
- const CAP_G18 = exports.CAP_G18 = '#dcdee2';
618
- const CAP_G19 = exports.CAP_G19 = '#8a9ab2';
619
- const CAP_G20 = exports.CAP_G20 = '#c2c2c2';
620
- const CAP_WHITE = exports.CAP_WHITE = '#ffffff';
621
- const CAP_WHITE_OVERLAY = exports.CAP_WHITE_OVERLAY = 'rgba(255, 255, 255, 0.8)';
622
- const CAP_BLACK = exports.CAP_BLACK = '#000000';
623
- const CAP_BLACK_ALPHA01 = exports.CAP_BLACK_ALPHA01 = '#00000022';
624
-
625
- // Semantic colors
626
- const COLOR_ERROR = exports.COLOR_ERROR = '#ff4d4f';
627
- const COLOR_SUCCESS = exports.COLOR_SUCCESS = '#52c41a';
628
- const COLOR_WARNING = exports.COLOR_WARNING = '#faad14';
629
- const COLOR_INFO = exports.COLOR_INFO = '#1890ff';
630
-
631
- // Color variants (CAP_COLOR_01 to CAP_COLOR_27)
632
- const CAP_COLOR_01 = exports.CAP_COLOR_01 = '#dbefda';
633
- const CAP_COLOR_02 = exports.CAP_COLOR_02 = '#fee5d3';
634
- const CAP_COLOR_03 = exports.CAP_COLOR_03 = '#e83135';
635
- const CAP_COLOR_04 = exports.CAP_COLOR_04 = '#fff4d6';
636
- const CAP_COLOR_05 = exports.CAP_COLOR_05 = '#fbd3d8';
637
- const CAP_COLOR_06 = exports.CAP_COLOR_06 = '#42B040';
638
- const CAP_COLOR_07 = exports.CAP_COLOR_07 = '#E9F0FC';
639
- const CAP_COLOR_08 = exports.CAP_COLOR_08 = '#faf9f4';
640
- const CAP_COLOR_09 = exports.CAP_COLOR_09 = '#7765d5';
641
- const CAP_COLOR_10 = exports.CAP_COLOR_10 = '#f79600';
642
- const CAP_COLOR_11 = exports.CAP_COLOR_11 = '#2388de';
643
- const CAP_COLOR_12 = exports.CAP_COLOR_12 = '#efba00';
644
- const CAP_COLOR_13 = exports.CAP_COLOR_13 = '#bcd0fa';
645
- const CAP_COLOR_14 = exports.CAP_COLOR_14 = '#9BC79A';
646
- const CAP_COLOR_15 = exports.CAP_COLOR_15 = '#F6BA8E';
647
- const CAP_COLOR_16 = exports.CAP_COLOR_16 = '#d9d9d9';
648
- const CAP_COLOR_17 = exports.CAP_COLOR_17 = '#1d61ee';
649
- const CAP_COLOR_18 = exports.CAP_COLOR_18 = '#d0d7ff';
650
- const CAP_COLOR_19 = exports.CAP_COLOR_19 = '#44ddff';
651
- const CAP_COLOR_20 = exports.CAP_COLOR_20 = '#4a67ff';
652
- const CAP_COLOR_21 = exports.CAP_COLOR_21 = '#ace0ff';
653
- const CAP_COLOR_22 = exports.CAP_COLOR_22 = '#DBB7F9';
654
- const CAP_COLOR_23 = exports.CAP_COLOR_23 = '#F8BAE4';
655
- const CAP_COLOR_24 = exports.CAP_COLOR_24 = '#BCD0FA';
656
- const CAP_COLOR_25 = exports.CAP_COLOR_25 = '#ACE1F1';
657
- const CAP_COLOR_26 = exports.CAP_COLOR_26 = '#FFE9AD';
658
- const CAP_COLOR_27 = exports.CAP_COLOR_27 = '#F4F7FE';
659
-
660
- // Background Colors
661
- const BG_01 = exports.BG_01 = '#faf9f4';
662
- const BG_02 = exports.BG_02 = '#fefcf0';
663
- const BG_03 = exports.BG_03 = '#ebf8ff';
664
- const BG_08 = exports.BG_08 = '#ecf7ec';
665
-
666
- /* Fonts */
667
- // ==============
668
- const FONT_FAMILY = exports.FONT_FAMILY = '"Roboto", sans-serif';
669
- const FONT_WEIGHT_REGULAR = exports.FONT_WEIGHT_REGULAR = 400;
670
- const FONT_WEIGHT_MEDIUM = exports.FONT_WEIGHT_MEDIUM = 500;
671
-
672
- // Font colors
673
- const FONT_COLOR_01 = exports.FONT_COLOR_01 = '#091e42';
674
- const FONT_COLOR_02 = exports.FONT_COLOR_02 = '#5e6c84';
675
- const FONT_COLOR_03 = exports.FONT_COLOR_03 = '#97a0af';
676
- const FONT_COLOR_04 = exports.FONT_COLOR_04 = '#b3bac5';
677
- const FONT_COLOR_05 = exports.FONT_COLOR_05 = '#2466ea';
678
- const FONT_COLOR_06 = exports.FONT_COLOR_06 = '#ffffff';
679
-
680
- // Font sizes (1rem = 14px)
681
- const FONT_SIZE_VL = exports.FONT_SIZE_VL = '1.714rem'; // 24px
682
- const FONT_SIZE_L = exports.FONT_SIZE_L = '1.143rem'; // 16px
683
- const FONT_SIZE_M = exports.FONT_SIZE_M = '1rem'; // 14px
684
- const FONT_SIZE_S = exports.FONT_SIZE_S = '0.857rem'; // 12px
685
- const FONT_SIZE_VS = exports.FONT_SIZE_VS = '0.714rem'; // 10px
686
-
687
- // Icon sizes (1rem = 14px)
688
- const ICON_SIZE_XS = exports.ICON_SIZE_XS = '0.857rem'; // 12px
689
- const ICON_SIZE_S = exports.ICON_SIZE_S = '1.143rem'; // 16px
690
- const ICON_SIZE_M = exports.ICON_SIZE_M = '1.714rem'; // 24px
691
- const ICON_SIZE_L = exports.ICON_SIZE_L = '2.286rem'; // 32px
692
-
693
- /* Spacing */
694
- // ==============
695
- // Note: 1rem = 14px as base font size
696
- const SPACING_04 = exports.SPACING_04 = '0.286rem'; // 4px
697
- const SPACING_08 = exports.SPACING_08 = '0.571rem'; // 8px
698
- const SPACING_12 = exports.SPACING_12 = '0.857rem'; // 12px
699
- const SPACING_16 = exports.SPACING_16 = '1.143rem'; // 16px
700
- const SPACING_24 = exports.SPACING_24 = '1.714rem'; // 24px
701
- const SPACING_32 = exports.SPACING_32 = '2.286rem'; // 32px;
702
-
703
- // CAP_SPACE values (using rem units - 1rem = 14px in old system)
704
- const CAP_SPACE_00 = exports.CAP_SPACE_00 = '0rem';
705
- const CAP_SPACE_01 = exports.CAP_SPACE_01 = '0.071rem'; // ~1px
706
- const CAP_SPACE_02 = exports.CAP_SPACE_02 = '0.142rem'; // ~2px
707
- const CAP_SPACE_03 = exports.CAP_SPACE_03 = '0.214rem'; // ~3px
708
- const CAP_SPACE_04 = exports.CAP_SPACE_04 = '0.285rem'; // ~4px
709
- const CAP_SPACE_06 = exports.CAP_SPACE_06 = '0.428rem'; // ~6px
710
- const CAP_SPACE_08 = exports.CAP_SPACE_08 = '0.571rem'; // ~8px
711
- const CAP_SPACE_12 = exports.CAP_SPACE_12 = '0.857rem'; // ~12px
712
- const CAP_SPACE_16 = exports.CAP_SPACE_16 = '1.142rem'; // ~16px
713
- const CAP_SPACE_18 = exports.CAP_SPACE_18 = '1.285rem'; // ~18px
714
- const CAP_SPACE_19 = exports.CAP_SPACE_19 = '1.3rem'; // ~18.2px
715
- const CAP_SPACE_20 = exports.CAP_SPACE_20 = '1.428rem'; // ~20px
716
- const CAP_SPACE_23 = exports.CAP_SPACE_23 = '1.614rem'; // ~22.6px
717
- const CAP_SPACE_24 = exports.CAP_SPACE_24 = '1.714rem'; // ~24px
718
- const CAP_SPACE_28 = exports.CAP_SPACE_28 = '2rem'; // ~28px
719
- const CAP_SPACE_32 = exports.CAP_SPACE_32 = '2.285rem'; // ~32px
720
- const CAP_SPACE_36 = exports.CAP_SPACE_36 = '2.571rem'; // ~36px
721
- const CAP_SPACE_40 = exports.CAP_SPACE_40 = '2.857rem'; // ~40px
722
- const CAP_SPACE_42 = exports.CAP_SPACE_42 = '3rem'; // ~42px
723
- const CAP_SPACE_44 = exports.CAP_SPACE_44 = '3.142rem'; // ~44px
724
- const CAP_SPACE_48 = exports.CAP_SPACE_48 = '3.428rem'; // ~48px
725
- const CAP_SPACE_52 = exports.CAP_SPACE_52 = '3.714rem'; // ~52px
726
- const CAP_SPACE_56 = exports.CAP_SPACE_56 = '4rem'; // ~56px
727
- const CAP_SPACE_60 = exports.CAP_SPACE_60 = '4.286rem'; // ~60px
728
- const CAP_SPACE_64 = exports.CAP_SPACE_64 = '4.571rem'; // ~64px
729
- const CAP_SPACE_72 = exports.CAP_SPACE_72 = '5.143rem'; // ~72px
730
- const CAP_SPACE_80 = exports.CAP_SPACE_80 = '5.714rem'; // ~80px
731
-
732
- /* Component Heights */
733
- // ==============
734
- const INPUT_HEIGHT = exports.INPUT_HEIGHT = '2.286rem'; // 32px
735
- const BUTTON_HEIGHT = exports.BUTTON_HEIGHT = '2.857rem'; // 40px
736
-
737
- /* Border Radius */
738
- // ==============
739
- const RADIUS_04 = exports.RADIUS_04 = '0.286rem'; // 4px
740
- const RADIUS_08 = exports.RADIUS_08 = '0.571rem'; // 8px
741
-
742
- /* Border Width */
743
- // ==============
744
- const BORDER_WIDTH_1 = exports.BORDER_WIDTH_1 = '0.071rem'; // 1px
745
- const BORDER_WIDTH_2 = exports.BORDER_WIDTH_2 = '0.143rem'; // 2px
746
-
747
- /* Transition */
748
- // ==============
749
- const TRANSITION_ALL = exports.TRANSITION_ALL = 'all 0.3s ease';
750
-
751
- /***/ }),
752
-
753
592
  /***/ 64273:
754
593
  /***/ ((module) => {
755
594
 
@@ -1011,6 +850,58 @@ ___CSS_LOADER_EXPORT___.locals = {
1011
850
  module.exports = ___CSS_LOADER_EXPORT___;
1012
851
 
1013
852
 
853
+ /***/ }),
854
+
855
+ /***/ 74770:
856
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
857
+
858
+ "use strict";
859
+ __webpack_require__.r(__webpack_exports__);
860
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
861
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
862
+ /* harmony export */ });
863
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(85072);
864
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__);
865
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(64284);
866
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__);
867
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(77659);
868
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__);
869
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(55056);
870
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__);
871
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(10540);
872
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__);
873
+ /* harmony import */ var _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(15521);
874
+ /* harmony import */ var _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5__);
875
+ /* harmony reexport (unknown) */ var __WEBPACK_REEXPORT_OBJECT__ = {};
876
+ /* harmony reexport (unknown) */ for(const __WEBPACK_IMPORT_KEY__ in _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5__) if(__WEBPACK_IMPORT_KEY__ !== "default") __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = () => _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5__[__WEBPACK_IMPORT_KEY__]
877
+ /* harmony reexport (unknown) */ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
878
+
879
+
880
+
881
+
882
+
883
+
884
+
885
+
886
+
887
+
888
+
889
+ var options = {};
890
+
891
+ ;
892
+ options.setAttributes = (_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default());
893
+ options.insert = _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default().bind(null, "head");
894
+ options.domAPI = (_node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default());
895
+ options.insertStyleElement = (_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default());
896
+
897
+ var update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()((_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default()), options);
898
+
899
+
900
+
901
+
902
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default()) && (_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default().locals) ? (_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default().locals) : undefined);
903
+
904
+
1014
905
  /***/ }),
1015
906
 
1016
907
  /***/ 74848:
@@ -1408,39 +1299,38 @@ var exports = __webpack_exports__;
1408
1299
 
1409
1300
 
1410
1301
  exports.__esModule = true;
1411
- exports["default"] = void 0;
1412
- var _propTypes = _interopRequireDefault(__webpack_require__(43363));
1302
+ exports.renderCustomDivider = exports["default"] = void 0;
1303
+ var _classnames = _interopRequireDefault(__webpack_require__(46942));
1413
1304
  var _react = _interopRequireDefault(__webpack_require__(9206));
1414
1305
  var _CapDivider = _interopRequireDefault(__webpack_require__(23406));
1415
1306
  var _CapHeading = _interopRequireDefault(__webpack_require__(7319));
1416
1307
  var _CapLabel = _interopRequireDefault(__webpack_require__(92675));
1417
1308
  var _CapRow = _interopRequireDefault(__webpack_require__(69813));
1418
- var _variables = __webpack_require__(56587);
1419
- __webpack_require__(43953);
1309
+ var _styles = _interopRequireDefault(__webpack_require__(43953));
1420
1310
  var _jsxRuntime = __webpack_require__(74848);
1421
1311
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
1422
- /**
1423
- *
1424
- * CapStatisticCard
1425
- *
1426
- */
1427
-
1428
- function CapStatisticCard(props) {
1429
- const {
1312
+ const renderCustomDivider = function (type) {
1313
+ if (type === void 0) {
1314
+ type = '';
1315
+ }
1316
+ return type ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapDivider.default, {
1317
+ style: {
1318
+ marginTop: '0.857rem',
1319
+ marginBottom: '0.857rem'
1320
+ }
1321
+ }) : null;
1322
+ };
1323
+ exports.renderCustomDivider = renderCustomDivider;
1324
+ const CapStatisticCard = _ref => {
1325
+ let {
1430
1326
  statsItems,
1431
1327
  width,
1432
1328
  type,
1433
1329
  showHeader
1434
- } = props;
1435
- const customDivider = type ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapDivider.default, {
1436
- style: {
1437
- marginTop: _variables.CAP_SPACE_12,
1438
- marginBottom: _variables.CAP_SPACE_12
1439
- }
1440
- }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {});
1330
+ } = _ref;
1441
1331
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_CapRow.default, {
1442
- className: "stats-card",
1443
- children: [!!statsItems.length && type && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
1332
+ className: _styles.default['stats-card'],
1333
+ children: [statsItems.length > 0 && type && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
1444
1334
  style: {
1445
1335
  width: '16%',
1446
1336
  display: showHeader ? 'inline-grid' : 'inline-table'
@@ -1448,25 +1338,25 @@ function CapStatisticCard(props) {
1448
1338
  children: [showHeader && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
1449
1339
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
1450
1340
  style: {
1451
- marginBottom: '-4px'
1341
+ marginBottom: '-0.286rem'
1452
1342
  }
1453
- }), customDivider]
1343
+ }), renderCustomDivider(type)]
1454
1344
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapRow.default, {
1455
- className: "stats-val",
1345
+ className: _styles.default['stats-val'],
1456
1346
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
1457
1347
  type: "label1",
1458
1348
  children: type
1459
1349
  })
1460
- }), customDivider]
1350
+ }), renderCustomDivider(type)]
1461
1351
  }, "stats-heading"), statsItems.map((item, index) => /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
1462
1352
  style: {
1463
1353
  width: width || '20%'
1464
1354
  },
1465
- className: "stats-item",
1355
+ className: _styles.default['stats-item'],
1466
1356
  children: [showHeader && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
1467
1357
  children: [type ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
1468
1358
  type: "label1",
1469
- className: "truncate-text stats-text",
1359
+ className: (0, _classnames.default)('truncate-text', _styles.default['stats-text']),
1470
1360
  title: item.text,
1471
1361
  style: {
1472
1362
  textAlign: 'right'
@@ -1474,11 +1364,11 @@ function CapStatisticCard(props) {
1474
1364
  children: item.text
1475
1365
  }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapHeading.default, {
1476
1366
  type: "h6",
1477
- className: "stats-text",
1367
+ className: _styles.default['stats-text'],
1478
1368
  children: item.text
1479
- }), customDivider]
1369
+ }), renderCustomDivider(type)]
1480
1370
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapRow.default, {
1481
- className: "stats-val",
1371
+ className: _styles.default['stats-val'],
1482
1372
  children: type ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
1483
1373
  type: "label1",
1484
1374
  style: {
@@ -1490,20 +1380,14 @@ function CapStatisticCard(props) {
1490
1380
  children: item.value
1491
1381
  })
1492
1382
  }), item.subText && /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapRow.default, {
1493
- className: "stats-sub-text",
1383
+ className: _styles.default['stats-sub-text'],
1494
1384
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
1495
1385
  type: type ? 'label1' : 'label7',
1496
1386
  children: item.subText
1497
1387
  })
1498
- }), customDivider]
1388
+ }), renderCustomDivider(type)]
1499
1389
  }, "stats-" + item.text + "-" + index))]
1500
1390
  });
1501
- }
1502
- CapStatisticCard.propTypes = {
1503
- statsItems: _propTypes.default.array,
1504
- width: _propTypes.default.string,
1505
- type: _propTypes.default.string,
1506
- showHeader: _propTypes.default.bool
1507
1391
  };
1508
1392
  var _default = exports["default"] = CapStatisticCard;
1509
1393
  })();