@innovaccer/design-system 2.3.0 → 2.4.0-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 (87) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/core/components/atoms/backdrop/Backdrop.tsx +11 -1
  3. package/core/components/atoms/button/Button.tsx +60 -44
  4. package/core/components/atoms/button/__stories__/IconButtonGroup.story.tsx +4 -4
  5. package/core/components/atoms/button/__stories__/IconButtonSecondary.story.tsx +1 -1
  6. package/core/components/atoms/button/__tests__/Button.test.tsx +36 -1
  7. package/core/components/atoms/dropdown/DropdownList.tsx +1 -0
  8. package/core/components/atoms/dropdown/Loading.tsx +9 -9
  9. package/core/components/atoms/dropdown/__stories__/Options.tsx +2 -0
  10. package/core/components/atoms/dropdown/__tests__/Dropdown.test.tsx +12 -1
  11. package/core/components/atoms/dropdown/__tests__/Loading.test.tsx +66 -0
  12. package/core/components/atoms/dropdown/__tests__/Option.test.tsx +204 -0
  13. package/core/components/atoms/dropdown/option/CheckboxOption.tsx +1 -0
  14. package/core/components/atoms/dropdown/option/IconOption.tsx +3 -1
  15. package/core/components/atoms/dropdown/option/IconWithMetaOption.tsx +3 -1
  16. package/core/components/atoms/dropdown/option/index.tsx +7 -1
  17. package/core/components/molecules/dialog/__tests__/__snapshots__/Dialog.test.tsx.snap +13 -0
  18. package/core/components/molecules/emptyState/__stories__/assets/pageNotLoaded.png +0 -0
  19. package/core/components/molecules/emptyState/__stories__/variants/noContentAvailable.story.tsx +26 -0
  20. package/core/components/molecules/emptyState/__stories__/variants/{smallSizeWithButton.story.tsx → noSearchResults.story.tsx} +2 -2
  21. package/core/components/molecules/emptyState/__stories__/variants/{largeSize.story.tsx → pageNotLoaded.story.tsx} +3 -3
  22. package/core/components/molecules/fileList/FileIcon.tsx +10 -2
  23. package/core/components/molecules/fileList/FileListItem.tsx +7 -3
  24. package/core/components/molecules/fileList/__stories__/__common__/fileListExample.tsx +1 -0
  25. package/core/components/molecules/fileList/__tests__/FileList.test.tsx +115 -0
  26. package/core/components/molecules/fileList/__tests__/__snapshots__/FileList.test.tsx.snap +232 -0
  27. package/core/components/molecules/inputMask/InputMask.tsx +2 -5
  28. package/core/components/molecules/inputMask/__tests__/InputMask.test.tsx +128 -0
  29. package/core/components/molecules/inputMask/__tests__/__snapshots__/InputMask.test.tsx.snap +39 -0
  30. package/core/components/molecules/modal/Modal.tsx +7 -5
  31. package/core/components/molecules/modal/__tests__/__snapshots__/Modal.test.tsx.snap +18 -0
  32. package/core/components/molecules/sidesheet/Sidesheet.tsx +5 -3
  33. package/core/components/molecules/sidesheet/__tests__/__snapshots__/Sidesheet.test.tsx.snap +2 -0
  34. package/core/components/organisms/calendar/Calendar.tsx +66 -22
  35. package/core/components/organisms/calendar/__stories__/variants/withEvents.story.tsx +45 -0
  36. package/core/components/organisms/calendar/__tests__/Calendar.test.tsx +10 -0
  37. package/core/components/organisms/calendar/__tests__/__snapshots__/Calendar.test.tsx.snap +1096 -1096
  38. package/core/components/organisms/calendar/config.ts +2 -2
  39. package/core/components/organisms/calendar/types.ts +1 -0
  40. package/core/components/organisms/datePicker/DatePicker.tsx +23 -9
  41. package/core/components/organisms/datePicker/__tests__/{DatePicker.tsx → DatePicker.test.tsx} +16 -1
  42. package/core/components/organisms/datePicker/__tests__/__snapshots__/DatePicker.test.tsx.snap +2257 -0
  43. package/core/components/organisms/dateRangePicker/__tests__/__snapshots__/DateRangePicker.test.tsx.snap +2552 -2550
  44. package/core/components/organisms/inlineMessage/InlineMessage.tsx +75 -0
  45. package/core/components/organisms/inlineMessage/__stories__/Default.story.tsx +18 -0
  46. package/core/components/organisms/inlineMessage/__stories__/Error.story.tsx +19 -0
  47. package/core/components/organisms/inlineMessage/__stories__/Info.story.tsx +19 -0
  48. package/core/components/organisms/inlineMessage/__stories__/Success.story.tsx +19 -0
  49. package/core/components/organisms/inlineMessage/__stories__/Warning.story.tsx +18 -0
  50. package/core/components/organisms/inlineMessage/__stories__/variants/InlineMessageWithinTable.story.tsx +139 -0
  51. package/core/components/organisms/inlineMessage/__tests__/InlineMessage.test.tsx +91 -0
  52. package/core/components/organisms/inlineMessage/__tests__/__snapshots__/InlineMessage.test.tsx.snap +139 -0
  53. package/core/components/organisms/inlineMessage/index.tsx +1 -0
  54. package/core/components/organisms/timePicker/__tests__/__snapshots__/TimePicker.test.tsx.snap +8 -0
  55. package/core/index.tsx +2 -0
  56. package/core/index.type.tsx +1 -0
  57. package/core/utils/__tests__/__snapshots__/TS.test.tsx.snap +485 -466
  58. package/css/dist/index.css +72 -8
  59. package/css/dist/index.css.map +1 -1
  60. package/css/src/components/calendar.css +37 -5
  61. package/css/src/components/card.css +1 -1
  62. package/css/src/components/chipInput.css +2 -2
  63. package/css/src/components/editableChipInput.css +2 -1
  64. package/css/src/components/inlineMessage.css +29 -0
  65. package/dist/core/components/atoms/backdrop/Backdrop.d.ts +1 -0
  66. package/dist/core/components/atoms/button/Button.d.ts +1 -0
  67. package/dist/core/components/atoms/popperWrapper/PopperWrapper.d.ts +28 -27
  68. package/dist/core/components/organisms/calendar/Calendar.d.ts +6 -1
  69. package/dist/core/components/organisms/calendar/types.d.ts +3 -0
  70. package/dist/core/components/organisms/inlineMessage/InlineMessage.d.ts +15 -0
  71. package/dist/core/components/organisms/inlineMessage/index.d.ts +1 -0
  72. package/dist/core/index.d.ts +1 -0
  73. package/dist/core/index.type.d.ts +1 -0
  74. package/dist/index.esm.js +189 -66
  75. package/dist/index.js +201 -80
  76. package/dist/index.js.map +1 -1
  77. package/dist/index.umd.js +1 -1
  78. package/dist/index.umd.js.br +0 -0
  79. package/dist/index.umd.js.gz +0 -0
  80. package/dts.config.js +13 -0
  81. package/package.json +4 -2
  82. package/types/innovaccer-design-system/index.d.ts +39 -0
  83. package/types/innovaccer-design-system/innovaccer-design-system-tests.ts +0 -0
  84. package/types/innovaccer-design-system/tsconfig.json +23 -0
  85. package/types/innovaccer-design-system/tslint.json +1 -0
  86. package/core/components/molecules/emptyState/__stories__/variants/smallSizeWithoutButton.story.tsx +0 -21
  87. package/core/components/organisms/datePicker/__tests__/__snapshots__/DatePicker.tsx.snap +0 -2164
package/dist/index.esm.js CHANGED
@@ -1,8 +1,8 @@
1
1
 
2
2
  /**
3
- * Generated on: 1631263425235
3
+ * Generated on: 1631955616426
4
4
  * Package: @innovaccer/design-system
5
- * Version: v2.3.0
5
+ * Version: v2.4.0-0
6
6
  * License: MIT
7
7
  * Docs: https://innovaccer.github.io/design-system
8
8
  */
@@ -986,7 +986,10 @@ var Backdrop = function Backdrop(props) {
986
986
  "data-test": "DesignSystem-Backdrop",
987
987
  "data-layer": true
988
988
  }, baseProps, {
989
- className: classes
989
+ className: classes,
990
+ style: {
991
+ zIndex: props.zIndex
992
+ }
990
993
  })), document.body);
991
994
  return BackdropElement;
992
995
  };
@@ -1494,7 +1497,8 @@ var CheckboxOption = function CheckboxOption(props) {
1494
1497
  checked: selected,
1495
1498
  onChange: onChangeHandler,
1496
1499
  tabIndex: -1,
1497
- className: "OptionCheckbox"
1500
+ className: "OptionCheckbox",
1501
+ "data-test": "".concat(dataTest, "--Checkbox")
1498
1502
  }));
1499
1503
  };
1500
1504
 
@@ -1570,6 +1574,7 @@ var IconOption = function IconOption(props) {
1570
1574
  "data-disabled": disabled
1571
1575
  }, icon && /*#__PURE__*/React.createElement(Icon, {
1572
1576
  className: "Option-icon mr-4",
1577
+ "data-test": "".concat(dataTest, "--Icon"),
1573
1578
  name: icon,
1574
1579
  appearance: appearance
1575
1580
  }), /*#__PURE__*/React.createElement("div", {
@@ -1603,6 +1608,7 @@ var IconWithMetaOption = function IconWithMetaOption(props) {
1603
1608
  "data-test": dataTest,
1604
1609
  "data-disabled": disabled
1605
1610
  }, icon && /*#__PURE__*/React.createElement(Icon, {
1611
+ "data-test": "".concat(dataTest, "--Icon"),
1606
1612
  className: "Option-icon mr-4",
1607
1613
  name: icon,
1608
1614
  appearance: appearance
@@ -1659,6 +1665,7 @@ var Option = function Option(props) {
1659
1665
 
1660
1666
  if (props.optionRenderer) {
1661
1667
  return /*#__PURE__*/React.createElement("div", _extends$3({
1668
+ "data-test": "DesignSystem-DropdownOption--Custom",
1662
1669
  className: customOptionClass,
1663
1670
  "data-disabled": disabled,
1664
1671
  onMouseEnter: onUpdateActiveOption
@@ -1679,6 +1686,7 @@ var Option = function Option(props) {
1679
1686
 
1680
1687
  if (typeof subInfo === 'string') {
1681
1688
  return /*#__PURE__*/React.createElement(Text, {
1689
+ "data-test": "DesignSystem-DropdownOption--WITH_META--Meta",
1682
1690
  appearance: labelAppearance
1683
1691
  }, subInfo);
1684
1692
  }
@@ -1691,7 +1699,8 @@ var Option = function Option(props) {
1691
1699
  seperator: seperator,
1692
1700
  iconAppearance: iconAppearance,
1693
1701
  labelAppearance: labelAppearance,
1694
- seperatorAppearance: iconAppearance
1702
+ seperatorAppearance: iconAppearance,
1703
+ "data-test": "DesignSystem-DropdownOption--WITH_META--MetaList"
1695
1704
  });
1696
1705
  };
1697
1706
 
@@ -1795,30 +1804,36 @@ var Loading = function Loading(props) {
1795
1804
  switch (loadingType) {
1796
1805
  case 'DEFAULT':
1797
1806
  return /*#__PURE__*/React__default.createElement(PlaceholderParagraph, {
1798
- length: 'large'
1807
+ length: 'large',
1808
+ "data-test": "DesignSystem-Dropdown--PlaceholderParagraph"
1799
1809
  });
1800
1810
 
1801
1811
  case 'WITH_ICON':
1802
1812
  return /*#__PURE__*/React__default.createElement(Placeholder, {
1803
1813
  withImage: true,
1804
- round: true
1814
+ round: true,
1815
+ "data-test": "DesignSystem-Dropdown--Placeholder"
1805
1816
  }, /*#__PURE__*/React__default.createElement(PlaceholderParagraph, {
1806
1817
  length: "large"
1807
1818
  }));
1808
1819
 
1809
1820
  case 'WITH_META':
1810
1821
  return /*#__PURE__*/React__default.createElement(Placeholder, {
1811
- withImage: false
1822
+ withImage: false,
1823
+ "data-test": "DesignSystem-Dropdown--Placeholder"
1812
1824
  }, /*#__PURE__*/React__default.createElement(PlaceholderParagraph, {
1813
- length: "large"
1825
+ length: "large",
1826
+ "data-test": "DesignSystem-Dropdown--PlaceholderParagraph"
1814
1827
  }), /*#__PURE__*/React__default.createElement(PlaceholderParagraph, {
1815
1828
  length: "medium",
1816
- size: "xxs"
1829
+ size: "xxs",
1830
+ "data-test": "DesignSystem-Dropdown--PlaceholderParagraph"
1817
1831
  }));
1818
1832
 
1819
1833
  case 'WITH_CHECKBOX':
1820
1834
  return /*#__PURE__*/React__default.createElement(Placeholder, {
1821
- withImage: true
1835
+ withImage: true,
1836
+ "data-test": "DesignSystem-Dropdown--Placeholder"
1822
1837
  }, /*#__PURE__*/React__default.createElement(PlaceholderParagraph, {
1823
1838
  length: "large"
1824
1839
  }));
@@ -1827,12 +1842,15 @@ var Loading = function Loading(props) {
1827
1842
  return /*#__PURE__*/React__default.createElement(Placeholder, {
1828
1843
  withImage: true,
1829
1844
  round: true,
1830
- imageSize: 'medium'
1845
+ imageSize: 'medium',
1846
+ "data-test": "DesignSystem-Dropdown--Placeholder"
1831
1847
  }, /*#__PURE__*/React__default.createElement(PlaceholderParagraph, {
1832
- length: "large"
1848
+ length: "large",
1849
+ "data-test": "DesignSystem-Dropdown--PlaceholderParagraph"
1833
1850
  }), /*#__PURE__*/React__default.createElement(PlaceholderParagraph, {
1834
1851
  length: "medium",
1835
- size: "xxs"
1852
+ size: "xxs",
1853
+ "data-test": "DesignSystem-Dropdown--PlaceholderParagraph"
1836
1854
  }));
1837
1855
  }
1838
1856
 
@@ -2292,7 +2310,9 @@ var DropdownList = function DropdownList(props) {
2292
2310
  open: dropdownOpen,
2293
2311
  customStyle: popoverStyle,
2294
2312
  position: alignmentMapping[align]
2295
- }, popoverOptions), (withSearch || props.async) && renderSearch(), renderDropdownSection(), showApplyButton && withCheckbox && renderApplyButton()));
2313
+ }, popoverOptions, {
2314
+ "data-test": "DesignSystem-Dropdown--Popover"
2315
+ }), (withSearch || props.async) && renderSearch(), renderDropdownSection(), showApplyButton && withCheckbox && renderApplyButton()));
2296
2316
  };
2297
2317
 
2298
2318
  DropdownList.displayName = 'DropdownList';
@@ -3032,7 +3052,7 @@ var Breadcrumbs = function Breadcrumbs(props) {
3032
3052
  }, "/"))));
3033
3053
  };
3034
3054
 
3035
- var _excluded$u = ["size", "appearance", "iconAlign", "tabIndex", "largeIcon", "type", "children", "icon", "expanded", "selected", "loading", "disabled", "className"];
3055
+ var _excluded$u = ["size", "appearance", "iconAlign", "tabIndex", "largeIcon", "type", "children", "icon", "expanded", "selected", "loading", "disabled", "className", "tooltip"];
3036
3056
  var sizeMapping$2 = {
3037
3057
  tiny: 12,
3038
3058
  regular: 16,
@@ -3058,32 +3078,40 @@ var Button = /*#__PURE__*/React.forwardRef(function (props, ref) {
3058
3078
  loading = props.loading,
3059
3079
  disabled = props.disabled,
3060
3080
  className = props.className,
3081
+ tooltip = props.tooltip,
3061
3082
  rest = _objectWithoutProperties$1(props, _excluded$u);
3062
3083
 
3063
3084
  var buttonClass = classnames((_classNames = {}, _defineProperty$2(_classNames, 'Button', true), _defineProperty$2(_classNames, 'Button--expanded', expanded), _defineProperty$2(_classNames, "Button--".concat(size), size), _defineProperty$2(_classNames, "Button--".concat(size, "Square"), !children), _defineProperty$2(_classNames, "Button--".concat(appearance), appearance), _defineProperty$2(_classNames, 'Button--selected', selected && (appearance === 'basic' || appearance === 'transparent')), _defineProperty$2(_classNames, "Button--iconAlign-".concat(iconAlign), children && iconAlign), _defineProperty$2(_classNames, "".concat(className), className), _classNames));
3064
3085
  var iconClass = classnames((_classNames2 = {}, _defineProperty$2(_classNames2, 'Button-icon', true), _defineProperty$2(_classNames2, "Button-icon--".concat(iconAlign), children && iconAlign), _classNames2));
3065
- return /*#__PURE__*/React.createElement("button", _extends$3({
3066
- "data-test": "DesignSystem-Button",
3067
- ref: ref,
3068
- type: type,
3069
- className: buttonClass,
3070
- disabled: disabled || loading,
3071
- tabIndex: tabIndex
3072
- }, rest), loading ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Spinner, {
3073
- size: "small",
3074
- appearance: appearance === 'basic' || appearance === 'transparent' ? 'secondary' : 'white',
3075
- "data-test": "DesignSystem-Button--Spinner",
3076
- className: "Button-spinner"
3077
- }), /*#__PURE__*/React.createElement(Text, {
3078
- className: "Button-text Button-text--hidden"
3079
- }, children || '')) : /*#__PURE__*/React.createElement(React.Fragment, null, icon && /*#__PURE__*/React.createElement("div", {
3080
- className: iconClass
3081
- }, /*#__PURE__*/React.createElement(Icon, {
3082
- "data-test": "DesignSystem-Button--Icon",
3083
- name: icon,
3084
- appearance: disabled ? 'disabled' : appearance === 'basic' || appearance === 'transparent' ? selected ? 'info' : 'default' : 'white',
3085
- size: largeIcon && !children ? sizeMapping$2[size] + 4 : sizeMapping$2[size]
3086
- })), children));
3086
+
3087
+ var ButtonElement = function ButtonElement() {
3088
+ return /*#__PURE__*/React.createElement("button", _extends$3({
3089
+ "data-test": "DesignSystem-Button",
3090
+ ref: ref,
3091
+ type: type,
3092
+ className: buttonClass,
3093
+ disabled: disabled || loading,
3094
+ tabIndex: tabIndex
3095
+ }, rest), loading ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Spinner, {
3096
+ size: "small",
3097
+ appearance: appearance === 'basic' || appearance === 'transparent' ? 'secondary' : 'white',
3098
+ "data-test": "DesignSystem-Button--Spinner",
3099
+ className: "Button-spinner"
3100
+ }), /*#__PURE__*/React.createElement(Text, {
3101
+ className: "Button-text Button-text--hidden"
3102
+ }, children || '')) : /*#__PURE__*/React.createElement(React.Fragment, null, icon && /*#__PURE__*/React.createElement("div", {
3103
+ className: iconClass
3104
+ }, /*#__PURE__*/React.createElement(Icon, {
3105
+ "data-test": "DesignSystem-Button--Icon",
3106
+ name: icon,
3107
+ appearance: disabled ? 'disabled' : appearance === 'basic' || appearance === 'transparent' ? selected ? 'info' : 'default' : 'white',
3108
+ size: largeIcon && !children ? sizeMapping$2[size] + 4 : sizeMapping$2[size]
3109
+ })), children));
3110
+ };
3111
+
3112
+ return icon && tooltip && !children ? /*#__PURE__*/React.createElement(Tooltip, {
3113
+ tooltip: tooltip
3114
+ }, /*#__PURE__*/React.createElement(ButtonElement, null)) : /*#__PURE__*/React.createElement(ButtonElement, null);
3087
3115
  });
3088
3116
  Button.displayName = 'Button';
3089
3117
 
@@ -3095,8 +3123,8 @@ var config = {
3095
3123
  daysInRow: 7,
3096
3124
  months: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
3097
3125
  days: {
3098
- small: ['S', 'M', 'T', 'W', 'T', 'F', 'S'],
3099
- large: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']
3126
+ small: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],
3127
+ large: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa']
3100
3128
  }
3101
3129
  };
3102
3130
 
@@ -3516,7 +3544,7 @@ var Calendar = /*#__PURE__*/function (_React$Component) {
3516
3544
  return /*#__PURE__*/React.createElement(Button, {
3517
3545
  type: "button",
3518
3546
  className: headerIconClass,
3519
- appearance: "transparent",
3547
+ appearance: "basic",
3520
3548
  icon: "arrow_".concat(type === 'next' ? 'forward' : 'back'),
3521
3549
  disabled: disabled,
3522
3550
  onClick: _this.onNavIconClickHandler(type)
@@ -3695,6 +3723,7 @@ var Calendar = /*#__PURE__*/function (_React$Component) {
3695
3723
  var _this$props6 = _this.props,
3696
3724
  size = _this$props6.size,
3697
3725
  firstDayOfWeek = _this$props6.firstDayOfWeek;
3726
+ var textSize = size === 'large' ? 'regular' : 'small';
3698
3727
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
3699
3728
  className: "Calendar-dayValues"
3700
3729
  }, Array.from({
@@ -3704,10 +3733,12 @@ var Calendar = /*#__PURE__*/function (_React$Component) {
3704
3733
  'Calendar-valueWrapper': true
3705
3734
  });
3706
3735
  var dayValue = (day + daysInRow + getIndexOfDay(firstDayOfWeek)) % daysInRow;
3707
- return /*#__PURE__*/React.createElement(Subheading, {
3736
+ return /*#__PURE__*/React.createElement(Text, {
3708
3737
  key: day,
3709
3738
  className: valueClass,
3710
- appearance: "disabled"
3739
+ appearance: "default",
3740
+ weight: "strong",
3741
+ size: textSize
3711
3742
  }, days[size][dayValue]);
3712
3743
  })), /*#__PURE__*/React.createElement("div", {
3713
3744
  className: "Calendar-dateValues",
@@ -3729,7 +3760,10 @@ var Calendar = /*#__PURE__*/function (_React$Component) {
3729
3760
  hoverDate = _this$state7.hoverDate,
3730
3761
  yearState = _this$state7.year,
3731
3762
  monthState = _this$state7.month,
3732
- dateState = _this$state7.date;
3763
+ dateState = _this$state7.date,
3764
+ currMonth = _this$state7.currMonth,
3765
+ currYear = _this$state7.currYear,
3766
+ todayDate = _this$state7.todayDate;
3733
3767
 
3734
3768
  var _this$getNavDateInfo3 = _this.getNavDateInfo(index),
3735
3769
  yearNavVal = _this$getNavDateInfo3.year,
@@ -3742,6 +3776,8 @@ var Calendar = /*#__PURE__*/function (_React$Component) {
3742
3776
 
3743
3777
  var inRangeError = _this.getInRangeError();
3744
3778
 
3779
+ var events = _this.props.events;
3780
+
3745
3781
  var onClickHandler = function onClickHandler(date) {
3746
3782
  return function () {
3747
3783
  if (rangePicker) {
@@ -3779,10 +3815,13 @@ var Calendar = /*#__PURE__*/function (_React$Component) {
3779
3815
  }, Array.from({
3780
3816
  length: daysInRow
3781
3817
  }, function (_x, col) {
3818
+ var _classNames4;
3819
+
3782
3820
  var date = daysInRow * row + col - dummyDays + 1;
3783
3821
  var dummy = date <= 0 || date > dayRange;
3784
3822
  var disabled = !dummy && (compareDate(disabledBefore, 'more', yearNavVal, monthNavVal, date) || compareDate(disabledAfter, 'less', yearNavVal, monthNavVal, date));
3785
3823
  var active = !disabled && yearState === yearNavVal && monthState === monthNavVal && dateState === date;
3824
+ var today = !rangePicker && !disabled && currYear === yearNavVal && currMonth === monthNavVal && todayDate === date;
3786
3825
  var startActive = false;
3787
3826
  var endActive = false;
3788
3827
  var inRange = false;
@@ -3816,6 +3855,11 @@ var Calendar = /*#__PURE__*/function (_React$Component) {
3816
3855
  var isStart = startActive || endDate && inRangeLast && compareDate(hoverDate, 'less', eYear, eMonth, eDate);
3817
3856
  var isEnd = endActive || startDate && inRangeLast && compareDate(hoverDate, 'more', sYear, sMonth, sDate);
3818
3857
  var isRangeError = inRange && inRangeError;
3858
+ var monthInString = "".concat(monthNavVal + 1 > 9 ? monthNavVal + 1 : "0".concat(monthNavVal + 1));
3859
+ var dateInString = "".concat(date > 9 ? date : "0".concat(date));
3860
+ var yearInString = "".concat(yearNavVal);
3861
+ var completeDateString = "".concat(monthInString, "/").concat(dateInString, "/").concat(yearInString);
3862
+ var isEventExist = events && _typeof(events) === 'object' && events.hasOwnProperty(completeDateString);
3819
3863
  var wrapperClass = classnames({
3820
3864
  'Calendar-valueWrapper': true,
3821
3865
  'Calendar-valueWrapper--inRange': inRange || rangePicker && active,
@@ -3826,7 +3870,7 @@ var Calendar = /*#__PURE__*/function (_React$Component) {
3826
3870
  'Calendar-valueWrapper--startError': isStart && isRangeError,
3827
3871
  'Calendar-valueWrapper--endError': isEnd && isRangeError
3828
3872
  });
3829
- var valueClass = classnames(_defineProperty$2({
3873
+ var valueClass = classnames((_classNames4 = {
3830
3874
  'Calendar-value': true,
3831
3875
  'Calendar-value--start': isStart && !isEnd,
3832
3876
  'Calendar-value--end': isEnd && !isStart,
@@ -3836,19 +3880,19 @@ var Calendar = /*#__PURE__*/function (_React$Component) {
3836
3880
  'Calendar-value--dummy': dummy || disabled,
3837
3881
  'Calendar-value--disabled': disabled,
3838
3882
  'Calendar-dateValue': true
3839
- }, "Calendar-dateValue--".concat(size), size));
3883
+ }, _defineProperty$2(_classNames4, "Calendar-dateValue--".concat(size), size), _defineProperty$2(_classNames4, 'Calendar-value--currentDate', today), _classNames4));
3840
3884
  return /*#__PURE__*/React.createElement("div", {
3841
3885
  key: "".concat(row, "-").concat(col),
3842
3886
  className: wrapperClass,
3843
3887
  "data-test": "designSystem-Calendar-WrapperClass"
3844
- }, !dummy && /*#__PURE__*/React.createElement(Text, {
3845
- appearance: active ? 'white' : disabled ? 'disabled' : 'default',
3888
+ }, !dummy && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Text, {
3889
+ appearance: active ? 'white' : disabled ? 'disabled' : today ? 'link' : 'default',
3846
3890
  size: size === 'small' ? 'small' : 'regular',
3847
3891
  "data-test": "DesignSystem-Calendar--dateValue",
3848
3892
  className: valueClass,
3849
3893
  onClick: onClickHandler(date),
3850
3894
  onMouseOver: onMouseOverHandler(date)
3851
- }, date));
3895
+ }, date), isEventExist && _this.renderEventsIndicator(size, active)));
3852
3896
  }));
3853
3897
  });
3854
3898
  });
@@ -3895,6 +3939,7 @@ var Calendar = /*#__PURE__*/function (_React$Component) {
3895
3939
  _month = _getDateInfo6.month,
3896
3940
  _date = _getDateInfo6.date;
3897
3941
 
3942
+ var todayCompleteDate = getDateInfo(new Date());
3898
3943
  _this.state = {
3899
3944
  currDate: currDate,
3900
3945
  startDate: _startDate,
@@ -3904,6 +3949,9 @@ var Calendar = /*#__PURE__*/function (_React$Component) {
3904
3949
  year: _year,
3905
3950
  month: _month,
3906
3951
  date: _date,
3952
+ todayDate: todayCompleteDate.date,
3953
+ currMonth: todayCompleteDate.month,
3954
+ currYear: todayCompleteDate.year,
3907
3955
  view: _monthsInView > 1 ? 'date' : _view,
3908
3956
  yearBlockNav: getYearBlock(_yearNav)
3909
3957
  };
@@ -4065,6 +4113,19 @@ var Calendar = /*#__PURE__*/function (_React$Component) {
4065
4113
  }
4066
4114
  }
4067
4115
  }
4116
+ }, {
4117
+ key: "renderEventsIndicator",
4118
+ value: function renderEventsIndicator(size, active) {
4119
+ var _classNames6;
4120
+
4121
+ var eventsIndicatorClass = classnames((_classNames6 = {
4122
+ 'Calendar-eventsIndicator': true
4123
+ }, _defineProperty$2(_classNames6, "Calendar-eventsIndicator--".concat(size), true), _defineProperty$2(_classNames6, 'Calendar-eventsIndicator--active', active), _classNames6));
4124
+ return /*#__PURE__*/React.createElement("span", {
4125
+ "data-test": "DesignSystem-Calendar-Event-Indicator",
4126
+ className: eventsIndicatorClass
4127
+ });
4128
+ }
4068
4129
  }, {
4069
4130
  key: "render",
4070
4131
  value: function render() {
@@ -4429,7 +4490,7 @@ var Trigger$1 = function Trigger(props) {
4429
4490
  }));
4430
4491
  };
4431
4492
 
4432
- var _excluded$q = ["date", "open", "position", "inputFormat", "outputFormat", "inputOptions", "validators", "withInput", "disabledBefore", "disabledAfter", "onDateChange", "closeOnSelect"];
4493
+ var _excluded$q = ["date", "open", "position", "inputFormat", "outputFormat", "inputOptions", "validators", "withInput", "disabledBefore", "disabledAfter", "onDateChange", "closeOnSelect", "size"];
4433
4494
  var DatePicker = /*#__PURE__*/function (_React$Component) {
4434
4495
  _inherits$1(DatePicker, _React$Component);
4435
4496
 
@@ -4551,6 +4612,8 @@ var DatePicker = /*#__PURE__*/function (_React$Component) {
4551
4612
  }, {
4552
4613
  key: "renderCalendar",
4553
4614
  value: function renderCalendar() {
4615
+ var _this2 = this;
4616
+
4554
4617
  var _this$props4 = this.props;
4555
4618
  _this$props4.date;
4556
4619
  _this$props4.open;
@@ -4564,15 +4627,29 @@ var DatePicker = /*#__PURE__*/function (_React$Component) {
4564
4627
  disabledAfter = _this$props4.disabledAfter;
4565
4628
  _this$props4.onDateChange;
4566
4629
  _this$props4.closeOnSelect;
4630
+ _this$props4.size;
4567
4631
  var rest = _objectWithoutProperties$1(_this$props4, _excluded$q);
4568
4632
 
4569
4633
  var date = this.state.date;
4570
- return /*#__PURE__*/React.createElement(Calendar, _extends$3({}, rest, {
4634
+ var months = config.months;
4635
+ var monthIndex = new Date().getMonth();
4636
+ var todayMonthAndDate = "".concat(months[monthIndex], " ").concat(new Date().getDate());
4637
+ return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Calendar, _extends$3({}, rest, {
4571
4638
  date: convertToDate(date, inputFormat, validators),
4572
4639
  disabledBefore: convertToDate(disabledBefore, inputFormat, validators),
4573
4640
  disabledAfter: convertToDate(disabledAfter, inputFormat, validators),
4574
4641
  onDateChange: this.onDateChangeHandler
4575
- }));
4642
+ })), /*#__PURE__*/React.createElement("div", {
4643
+ className: "d-flex justify-content-center pb-6 pt-3",
4644
+ "data-test": "DesignSystem-Select--TodaysDate-wrapper"
4645
+ }, /*#__PURE__*/React.createElement(Chip, {
4646
+ label: "Today, ".concat(todayMonthAndDate),
4647
+ name: "chip",
4648
+ type: "action",
4649
+ onClick: function onClick() {
4650
+ return _this2.onDateChangeHandler(new Date());
4651
+ }
4652
+ })));
4576
4653
  }
4577
4654
  }, {
4578
4655
  key: "render",
@@ -5306,7 +5383,8 @@ var InputMask = /*#__PURE__*/React.forwardRef(function (props, forwardRef) {
5306
5383
  'd-flex flex-column flex-grow-1': true
5307
5384
  }, className);
5308
5385
  return /*#__PURE__*/React.createElement("div", {
5309
- className: classes
5386
+ className: classes,
5387
+ "data-test": "DesignSystem-InputMask--Wrapper"
5310
5388
  }, /*#__PURE__*/React.createElement(Input, _extends$3({}, rest, {
5311
5389
  value: value,
5312
5390
  error: error,
@@ -5606,7 +5684,7 @@ Link.defaultProps = {
5606
5684
  disabled: false
5607
5685
  };
5608
5686
 
5609
- var IconMapping$1 = {
5687
+ var IconMapping$2 = {
5610
5688
  success: 'check_circle',
5611
5689
  info: 'info',
5612
5690
  warning: 'warning',
@@ -5649,7 +5727,7 @@ var Message = function Message(props) {
5649
5727
  className: MessageClass
5650
5728
  }), appearance !== 'default' && /*#__PURE__*/React.createElement(Icon, {
5651
5729
  "data-test": "DesignSystem-Message--Icon",
5652
- name: IconMapping$1[appearance],
5730
+ name: IconMapping$2[appearance],
5653
5731
  appearance: appearance,
5654
5732
  className: IconClass
5655
5733
  }), /*#__PURE__*/React.createElement("div", null, title && /*#__PURE__*/React.createElement(Heading, {
@@ -12851,6 +12929,7 @@ var Modal = /*#__PURE__*/function (_React$Component) {
12851
12929
  seperator = _this$props2.seperator,
12852
12930
  footer = _this$props2.footer,
12853
12931
  onClose = _this$props2.onClose;
12932
+ var BackdropZIndex = zIndex ? zIndex - 1 : 1000;
12854
12933
  var classes = classnames({
12855
12934
  Modal: true,
12856
12935
  'Modal--open': open,
@@ -12923,7 +13002,8 @@ var Modal = /*#__PURE__*/function (_React$Component) {
12923
13002
  }, ModalContainer) : ModalContainer;
12924
13003
  var WrapperElement = /*#__PURE__*/ReactDOM.createPortal(ModalWrapper, this.element);
12925
13004
  return /*#__PURE__*/React.createElement(React.Fragment, null, WrapperElement, /*#__PURE__*/React.createElement(Backdrop, {
12926
- open: this.state.animate
13005
+ open: this.state.animate,
13006
+ zIndex: BackdropZIndex
12927
13007
  }));
12928
13008
  }
12929
13009
  }]);
@@ -13301,6 +13381,7 @@ var Sidesheet = /*#__PURE__*/function (_React$Component) {
13301
13381
  footerOptions = _this$props.footerOptions,
13302
13382
  header = _this$props.header,
13303
13383
  onClose = _this$props.onClose;
13384
+ var BackdropZIndex = zIndex ? zIndex - 1 : 1000;
13304
13385
  var classes = classnames({
13305
13386
  Sidesheet: true,
13306
13387
  'Sidesheet--open': open,
@@ -13353,7 +13434,8 @@ var Sidesheet = /*#__PURE__*/function (_React$Component) {
13353
13434
  }, SidesheetContainer) : SidesheetContainer;
13354
13435
  var WrapperElement = /*#__PURE__*/ReactDOM.createPortal(SidesheetWrapper, this.element);
13355
13436
  return /*#__PURE__*/React.createElement(React.Fragment, null, WrapperElement, /*#__PURE__*/React.createElement(Backdrop, {
13356
- open: this.state.animate
13437
+ open: this.state.animate,
13438
+ zIndex: BackdropZIndex
13357
13439
  }));
13358
13440
  }
13359
13441
  }]);
@@ -19267,7 +19349,7 @@ PageHeader.defaultProps = {
19267
19349
 
19268
19350
  var useEffect = React.useEffect,
19269
19351
  useState = React.useState;
19270
- var IconMapping = {
19352
+ var IconMapping$1 = {
19271
19353
  audio: 'audiotrack',
19272
19354
  image: 'image',
19273
19355
  video: 'movie',
@@ -19287,7 +19369,7 @@ var FileIcon = function FileIcon(props) {
19287
19369
  setAnimate = _useState2[1];
19288
19370
 
19289
19371
  var type = file.type.split('/')[0] || 'others';
19290
- var fileType = IconMapping[type] ? type : 'others';
19372
+ var fileType = IconMapping$1[type] ? type : 'others';
19291
19373
  var iconClass = classnames((_classNames = {}, _defineProperty$2(_classNames, 'FileIcon', true), _defineProperty$2(_classNames, 'FileIcon--animate', animate), _defineProperty$2(_classNames, "FileIcon--".concat(fileType), true), _classNames));
19292
19374
  var uploadingIconClass = classnames((_classNames2 = {}, _defineProperty$2(_classNames2, 'FileIcon', true), _defineProperty$2(_classNames2, 'FileIcon--uploading', true), _classNames2));
19293
19375
  useEffect(function () {
@@ -19302,13 +19384,15 @@ var FileIcon = function FileIcon(props) {
19302
19384
  return /*#__PURE__*/React.createElement(ProgressRing, {
19303
19385
  size: "small",
19304
19386
  value: progress || 0,
19305
- className: uploadingIconClass
19387
+ className: uploadingIconClass,
19388
+ "data-test": "DesignSystem-FileListItem--ProgressRing"
19306
19389
  });
19307
19390
  }
19308
19391
 
19309
19392
  return /*#__PURE__*/React.createElement(Icon, {
19310
- name: IconMapping[fileType],
19311
- className: iconClass
19393
+ name: IconMapping$1[fileType],
19394
+ className: iconClass,
19395
+ "data-test": "DesignSystem-FileListItem--Icon"
19312
19396
  });
19313
19397
  };
19314
19398
  FileIcon.displayName = 'FileIcon';
@@ -19339,7 +19423,8 @@ var FileListItem = function FileListItem(props) {
19339
19423
 
19340
19424
  return /*#__PURE__*/React.createElement("div", _extends$3({}, baseProps, {
19341
19425
  className: FileItemClass,
19342
- onClick: onClickHandler
19426
+ onClick: onClickHandler,
19427
+ "data-test": "DesignSystem-FileListItem"
19343
19428
  }), /*#__PURE__*/React.createElement("div", {
19344
19429
  className: "FileItem-file"
19345
19430
  }, /*#__PURE__*/React.createElement("div", {
@@ -19349,13 +19434,15 @@ var FileListItem = function FileListItem(props) {
19349
19434
  status: status,
19350
19435
  progress: progress
19351
19436
  }), /*#__PURE__*/React.createElement(Text, {
19437
+ "data-test": "DesignSystem-FileListItem--Name",
19352
19438
  className: "FileItem-text",
19353
19439
  appearance: status === 'completed' ? 'default' : 'subtle'
19354
19440
  }, name)), /*#__PURE__*/React.createElement("div", {
19355
19441
  className: "FileItem-actions"
19356
19442
  }, /*#__PURE__*/React.createElement(Text, {
19357
19443
  className: "FileItem-size",
19358
- appearance: 'subtle'
19444
+ appearance: 'subtle',
19445
+ "data-test": "DesignSystem-FileListItem--Size"
19359
19446
  }, fileSize || file.size), !!actions && actions)), status === 'error' && /*#__PURE__*/React.createElement(Caption, {
19360
19447
  className: 'FileItem-error',
19361
19448
  error: true
@@ -19604,6 +19691,42 @@ var VerificationCodeInput = function VerificationCodeInput(props) {
19604
19691
 
19605
19692
  VerificationCodeInput.displayName = 'VerificationCodeInput';
19606
19693
 
19607
- var version = "2.3.0";
19694
+ var IconMapping = {
19695
+ success: 'check_circle',
19696
+ info: 'info',
19697
+ warning: 'warning',
19698
+ alert: 'error'
19699
+ };
19700
+ var InlineMessage = function InlineMessage(props) {
19701
+ var _classNames2;
19702
+
19703
+ var appearance = props.appearance,
19704
+ className = props.className,
19705
+ description = props.description;
19706
+ var baseProps = extractBaseProps(props);
19707
+ var InlineMessageClass = classnames(_defineProperty$2({}, 'InlineMessage', true), className);
19708
+ var IconClass = classnames((_classNames2 = {}, _defineProperty$2(_classNames2, 'InlineMessage-icon', true), _defineProperty$2(_classNames2, 'InlineMessage-icon--warning', appearance === 'warning'), _classNames2));
19709
+ var DescriptionClass = classnames(_defineProperty$2({}, "InlineMessage-text--".concat(appearance), appearance));
19710
+ return /*#__PURE__*/React.createElement("div", _extends$3({
19711
+ "data-test": "DesignSystem-InlineMessage"
19712
+ }, baseProps, {
19713
+ className: InlineMessageClass
19714
+ }), appearance !== 'default' && /*#__PURE__*/React.createElement(Icon, {
19715
+ "data-test": "DesignSystem-InlineMessage--Icon",
19716
+ name: IconMapping[appearance],
19717
+ appearance: appearance,
19718
+ className: IconClass
19719
+ }), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Text, {
19720
+ "data-test": "DesignSystem-InlineMessage--Description",
19721
+ className: DescriptionClass
19722
+ }, description)));
19723
+ };
19724
+ InlineMessage.displayName = 'InlineMessage';
19725
+ InlineMessage.defaultProps = {
19726
+ appearance: 'default',
19727
+ description: ''
19728
+ };
19729
+
19730
+ var version = "2.4.0-0";
19608
19731
 
19609
- export { Avatar, AvatarGroup, Backdrop, Badge, Breadcrumbs, Button, Calendar, Caption, Card, CardBody, CardFooter, CardHeader, CardSubdued, ChatMessage, Checkbox, Chip, ChipGroup, ChipInput, Collapsible, Column, DatePicker, DateRangePicker, Dialog, Dropdown, Dropzone, EditableChipInput, EditableDropdown, EditableInput, EmptyState, FileList, FileUploader, FileUploaderList, FullscreenModal, Grid, GridCell, Heading, HorizontalNav, Icon, Input, InputMask, Label, Legend, Link, List, Message, MetaList, MetricInput, Modal, ModalBody, ModalDescription, ModalFooter, ModalHeader, MultiSlider, Navigation, OutsideClick, PageHeader, Pagination, Paragraph, Pills, Placeholder, PlaceholderParagraph, Popover, ProgressBar, ProgressRing, Radio, RangeSlider, Row, Sidesheet, Slider, Spinner, StatusHint, Stepper, Subheading, Switch, Tab, Table, Tabs, TabsWrapper, Text, Textarea, TimePicker, Toast, Tooltip, index$1 as Utils, VerificationCodeInput, VerticalNav, version };
19732
+ export { Avatar, AvatarGroup, Backdrop, Badge, Breadcrumbs, Button, Calendar, Caption, Card, CardBody, CardFooter, CardHeader, CardSubdued, ChatMessage, Checkbox, Chip, ChipGroup, ChipInput, Collapsible, Column, DatePicker, DateRangePicker, Dialog, Dropdown, Dropzone, EditableChipInput, EditableDropdown, EditableInput, EmptyState, FileList, FileUploader, FileUploaderList, FullscreenModal, Grid, GridCell, Heading, HorizontalNav, Icon, InlineMessage, Input, InputMask, Label, Legend, Link, List, Message, MetaList, MetricInput, Modal, ModalBody, ModalDescription, ModalFooter, ModalHeader, MultiSlider, Navigation, OutsideClick, PageHeader, Pagination, Paragraph, Pills, Placeholder, PlaceholderParagraph, Popover, ProgressBar, ProgressRing, Radio, RangeSlider, Row, Sidesheet, Slider, Spinner, StatusHint, Stepper, Subheading, Switch, Tab, Table, Tabs, TabsWrapper, Text, Textarea, TimePicker, Toast, Tooltip, index$1 as Utils, VerificationCodeInput, VerticalNav, version };