@cloudtower/eagle 0.33.18 → 0.33.20

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 (27) hide show
  1. package/dist/cjs/core/BasicCTError/BasicCTError.style.js +5 -0
  2. package/dist/cjs/core/{CTModalFooterError → BasicCTError}/index.js +4 -10
  3. package/dist/cjs/coreX/DateRangePicker/Calendar.js +2 -2
  4. package/dist/cjs/coreX/DateRangePicker/utils.js +5 -0
  5. package/dist/cjs/index.js +2 -2
  6. package/dist/cjs/stats1.html +1 -1
  7. package/dist/components.css +1861 -1857
  8. package/dist/esm/core/BasicCTError/BasicCTError.style.js +3 -0
  9. package/dist/esm/core/{CTModalFooterError → BasicCTError}/index.js +4 -10
  10. package/dist/esm/coreX/DateRangePicker/Calendar.js +2 -2
  11. package/dist/esm/coreX/DateRangePicker/utils.js +3 -0
  12. package/dist/esm/index.js +1 -1
  13. package/dist/esm/stats1.html +1 -1
  14. package/dist/linaria.merged.scss +1880 -1876
  15. package/dist/src/core/BasicCTError/BasicCTError.style.d.ts +1 -0
  16. package/dist/src/core/{CTModalFooterError/CTModalFooterError.type.d.ts → BasicCTError/BasicCTError.type.d.ts} +3 -3
  17. package/dist/src/core/BasicCTError/index.d.ts +3 -0
  18. package/dist/src/core/index.d.ts +1 -1
  19. package/dist/src/coreX/DateRangePicker/__tests__/utils.test.d.ts +1 -0
  20. package/dist/src/coreX/DateRangePicker/utils.d.ts +7 -0
  21. package/dist/stories/docs/core/{CTModalFooterError.stories.d.ts → BasicCTError.stories.d.ts} +4 -4
  22. package/dist/style.css +1690 -1687
  23. package/package.json +4 -4
  24. package/dist/cjs/core/CTModalFooterError/CTModalFooterError.style.js +0 -5
  25. package/dist/esm/core/CTModalFooterError/CTModalFooterError.style.js +0 -3
  26. package/dist/src/core/CTModalFooterError/CTModalFooterError.style.d.ts +0 -1
  27. package/dist/src/core/CTModalFooterError/index.d.ts +0 -3
@@ -0,0 +1,5 @@
1
+ 'use strict';
2
+
3
+ const BasicCTErrorStyle = "E_b1jaupqb";
4
+
5
+ exports.BasicCTErrorStyle = BasicCTErrorStyle;
@@ -2,7 +2,7 @@
2
2
 
3
3
  var React = require('react');
4
4
  var core = require('@linaria/core');
5
- var CTModalFooterError_style = require('./CTModalFooterError.style.js');
5
+ var BasicCTError_style = require('./BasicCTError.style.js');
6
6
  var index = require('../Typo/index.js');
7
7
  var useCTErrorMsg = require('../../hooks/useCTErrorMsg.js');
8
8
  var useParrotTranslation = require('../../hooks/useParrotTranslation.js');
@@ -15,15 +15,9 @@ const defaultErrorContainerRender = ({
15
15
  children,
16
16
  className
17
17
  }) => {
18
- return /* @__PURE__ */ React__default.default.createElement(
19
- "span",
20
- {
21
- className: core.cx(index.Typo.Label.l3_regular, CTModalFooterError_style.CTModalFooterErrorStyle, className)
22
- },
23
- children
24
- );
18
+ return /* @__PURE__ */ React__default.default.createElement("span", { className: core.cx(index.Typo.Label.l3_regular, BasicCTError_style.BasicCTErrorStyle, className) }, children);
25
19
  };
26
- const CTModalFooterError = (props) => {
20
+ const BasicCTError = (props) => {
27
21
  const {
28
22
  error,
29
23
  className,
@@ -43,4 +37,4 @@ const CTModalFooterError = (props) => {
43
37
  return /* @__PURE__ */ React__default.default.createElement(ContainerRender, { className, errorMsgs: msgs, children: child });
44
38
  };
45
39
 
46
- exports.CTModalFooterError = CTModalFooterError;
40
+ exports.BasicCTError = BasicCTError;
@@ -13,6 +13,7 @@ var dayjs = require('dayjs');
13
13
  var React = require('react');
14
14
  var common = require('./common.js');
15
15
  var DateRangePicker_style = require('./DateRangePicker.style.js');
16
+ var utils = require('./utils.js');
16
17
  var getCalendarTitle = require('../common/getCalendarTitle.js');
17
18
 
18
19
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
@@ -210,11 +211,10 @@ const Month = (props) => {
210
211
  const time = dayjs__default.default(`${year}-${month2}`, "YYYY-M");
211
212
  const allDateInMonth = time.daysInMonth();
212
213
  const dates = new Array(allDateInMonth).fill(1).map((value, index) => index + 1);
213
- const firstDateOfDay = time.set("date", dates[0]).day();
214
214
  monthAndDate.push({
215
215
  month: month2,
216
216
  dates,
217
- firstDateOfDay: Math.max(firstDateOfDay - 1, 0)
217
+ firstDateOfDay: utils.getFirstDateOfMonth(time)
218
218
  });
219
219
  }
220
220
  setMonth(monthAndDate);
@@ -0,0 +1,5 @@
1
+ 'use strict';
2
+
3
+ const getFirstDateOfMonth = (date, weekStartOnMonday = true) => (date.set("date", 1).day() - Number(weekStartOnMonday) + 7) % 7;
4
+
5
+ exports.getFirstDateOfMonth = getFirstDateOfMonth;
package/dist/cjs/index.js CHANGED
@@ -86,7 +86,7 @@ var cascader_style = require('./core/Cascader/cascader.style.js');
86
86
  var cascader_widget = require('./core/Cascader/cascader.widget.js');
87
87
  var index$1a = require('./core/Cascader/index.js');
88
88
  var index$1b = require('./core/ConfigProvider/index.js');
89
- var index$1c = require('./core/CTModalFooterError/index.js');
89
+ var index$1c = require('./core/BasicCTError/index.js');
90
90
  var ExpandableContainer = require('./core/ExpandableList/ExpandableContainer.js');
91
91
  var ExpandableItem = require('./core/ExpandableList/ExpandableItem.js');
92
92
  var ExpandIcon = require('./core/ExpandableList/ExpandIcon.js');
@@ -435,7 +435,7 @@ exports.defaultTagRender = cascader_widget.defaultTagRender;
435
435
  exports.Cascader = index$1a.Cascader;
436
436
  exports.ConfigProvider = index$1b.ConfigProvider;
437
437
  exports.useConfig = index$1b.useConfig;
438
- exports.CTModalFooterError = index$1c.CTModalFooterError;
438
+ exports.BasicCTError = index$1c.BasicCTError;
439
439
  exports.ExpandableContainer = ExpandableContainer;
440
440
  exports.ExpandableItem = ExpandableItem;
441
441
  exports.ExpandIcon = ExpandIcon;