@instructure/ui-calendar 9.0.2-snapshot-2 → 9.0.2-snapshot-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/CHANGELOG.md +1 -1
- package/es/Calendar/Day/index.js +4 -4
- package/es/Calendar/Day/props.js +0 -1
- package/es/Calendar/index.js +4 -4
- package/lib/Calendar/Day/index.js +4 -4
- package/lib/Calendar/Day/props.js +0 -1
- package/lib/Calendar/index.js +4 -4
- package/package.json +22 -22
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/Calendar/CalendarLocator.d.ts +126 -126
- package/types/Calendar/Day/DayLocator.d.ts +36 -36
- package/types/Calendar/Day/index.d.ts +15 -15
- package/types/Calendar/index.d.ts +5 -5
- package/types/Calendar/index.d.ts.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
## [9.0.2-snapshot-
|
|
6
|
+
## [9.0.2-snapshot-4](https://github.com/instructure/instructure-ui/compare/v9.0.1...v9.0.2-snapshot-4) (2024-06-05)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @instructure/ui-calendar
|
|
9
9
|
|
package/es/Calendar/Day/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
2
2
|
const _excluded = ["children", "label", "interaction", "isOutsideMonth", "isSelected", "isToday", "onClick", "onKeyDown", "as", "styles"];
|
|
3
|
-
var _dec, _dec2, _class,
|
|
3
|
+
var _dec, _dec2, _class, _Day;
|
|
4
4
|
/*
|
|
5
5
|
* The MIT License (MIT)
|
|
6
6
|
*
|
|
@@ -41,7 +41,7 @@ parent: Calendar
|
|
|
41
41
|
id: Calendar.Day
|
|
42
42
|
---
|
|
43
43
|
**/
|
|
44
|
-
let Day = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = testable(), _dec(_class = _dec2(_class = (
|
|
44
|
+
let Day = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = testable(), _dec(_class = _dec2(_class = (_Day = class Day extends Component {
|
|
45
45
|
constructor(...args) {
|
|
46
46
|
super(...args);
|
|
47
47
|
this.ref = null;
|
|
@@ -135,11 +135,11 @@ let Day = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = test
|
|
|
135
135
|
alt: label
|
|
136
136
|
}, callRenderProp(children))));
|
|
137
137
|
}
|
|
138
|
-
},
|
|
138
|
+
}, _Day.displayName = "Day", _Day.componentId = 'Calendar.Day', _Day.propTypes = propTypes, _Day.allowedProps = allowedProps, _Day.defaultProps = {
|
|
139
139
|
interaction: 'enabled',
|
|
140
140
|
isSelected: false,
|
|
141
141
|
isToday: false,
|
|
142
142
|
isOutsideMonth: false
|
|
143
|
-
},
|
|
143
|
+
}, _Day)) || _class) || _class);
|
|
144
144
|
export default Day;
|
|
145
145
|
export { Day };
|
package/es/Calendar/Day/props.js
CHANGED
|
@@ -37,6 +37,5 @@ const propTypes = {
|
|
|
37
37
|
elementRef: PropTypes.func,
|
|
38
38
|
as: PropTypes.elementType // eslint-disable-line react/require-default-props
|
|
39
39
|
};
|
|
40
|
-
|
|
41
40
|
const allowedProps = ['children', 'date', 'label', 'interaction', 'isSelected', 'isToday', 'isOutsideMonth', 'onClick', 'onKeyDown', 'elementRef', 'as'];
|
|
42
41
|
export { propTypes, allowedProps };
|
package/es/Calendar/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _dec, _dec2, _class,
|
|
1
|
+
var _dec, _dec2, _class, _Calendar, _IconButton, _IconButton2;
|
|
2
2
|
/*
|
|
3
3
|
* The MIT License (MIT)
|
|
4
4
|
*
|
|
@@ -46,7 +46,7 @@ import { IconArrowOpenStartSolid, IconArrowOpenEndSolid } from '@instructure/ui-
|
|
|
46
46
|
category: components
|
|
47
47
|
---
|
|
48
48
|
**/
|
|
49
|
-
let Calendar = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = testable(), _dec(_class = _dec2(_class = (
|
|
49
|
+
let Calendar = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = testable(), _dec(_class = _dec2(_class = (_Calendar = class Calendar extends Component {
|
|
50
50
|
constructor(props) {
|
|
51
51
|
super(props);
|
|
52
52
|
this.ref = null;
|
|
@@ -306,9 +306,9 @@ let Calendar = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 =
|
|
|
306
306
|
elementRef: this.handleRef
|
|
307
307
|
}), this.renderHeader(), this.renderBody());
|
|
308
308
|
}
|
|
309
|
-
},
|
|
309
|
+
}, _Calendar.displayName = "Calendar", _Calendar.componentId = 'Calendar', _Calendar.contextType = ApplyLocaleContext, _Calendar.Day = Day, _Calendar.DAY_COUNT = 42, _Calendar.propTypes = propTypes, _Calendar.allowedProps = allowedProps, _Calendar.defaultProps = {
|
|
310
310
|
as: 'span',
|
|
311
311
|
role: 'table'
|
|
312
|
-
},
|
|
312
|
+
}, _Calendar)) || _class) || _class);
|
|
313
313
|
export default Calendar;
|
|
314
314
|
export { Calendar };
|
|
@@ -18,7 +18,7 @@ var _styles = _interopRequireDefault(require("./styles"));
|
|
|
18
18
|
var _theme = _interopRequireDefault(require("./theme"));
|
|
19
19
|
var _props = require("./props");
|
|
20
20
|
const _excluded = ["children", "label", "interaction", "isOutsideMonth", "isSelected", "isToday", "onClick", "onKeyDown", "as", "styles"];
|
|
21
|
-
var _dec, _dec2, _class,
|
|
21
|
+
var _dec, _dec2, _class, _Day;
|
|
22
22
|
/*
|
|
23
23
|
* The MIT License (MIT)
|
|
24
24
|
*
|
|
@@ -49,7 +49,7 @@ parent: Calendar
|
|
|
49
49
|
id: Calendar.Day
|
|
50
50
|
---
|
|
51
51
|
**/
|
|
52
|
-
let Day = exports.Day = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (
|
|
52
|
+
let Day = exports.Day = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_Day = class Day extends _react.Component {
|
|
53
53
|
constructor(...args) {
|
|
54
54
|
super(...args);
|
|
55
55
|
this.ref = null;
|
|
@@ -143,10 +143,10 @@ let Day = exports.Day = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.
|
|
|
143
143
|
alt: label
|
|
144
144
|
}, (0, _callRenderProp.callRenderProp)(children))));
|
|
145
145
|
}
|
|
146
|
-
},
|
|
146
|
+
}, _Day.displayName = "Day", _Day.componentId = 'Calendar.Day', _Day.propTypes = _props.propTypes, _Day.allowedProps = _props.allowedProps, _Day.defaultProps = {
|
|
147
147
|
interaction: 'enabled',
|
|
148
148
|
isSelected: false,
|
|
149
149
|
isToday: false,
|
|
150
150
|
isOutsideMonth: false
|
|
151
|
-
},
|
|
151
|
+
}, _Day)) || _class) || _class);
|
|
152
152
|
var _default = exports.default = Day;
|
|
@@ -44,5 +44,4 @@ const propTypes = exports.propTypes = {
|
|
|
44
44
|
elementRef: _propTypes.default.func,
|
|
45
45
|
as: _propTypes.default.elementType // eslint-disable-line react/require-default-props
|
|
46
46
|
};
|
|
47
|
-
|
|
48
47
|
const allowedProps = exports.allowedProps = ['children', 'date', 'label', 'interaction', 'isSelected', 'isToday', 'isOutsideMonth', 'onClick', 'onKeyDown', 'elementRef', 'as'];
|
package/lib/Calendar/index.js
CHANGED
|
@@ -27,7 +27,7 @@ var _props = require("./props");
|
|
|
27
27
|
var _IconButton3 = require("@instructure/ui-buttons/lib/IconButton");
|
|
28
28
|
var _IconArrowOpenStartSolid = require("@instructure/ui-icons/lib/IconArrowOpenStartSolid.js");
|
|
29
29
|
var _IconArrowOpenEndSolid = require("@instructure/ui-icons/lib/IconArrowOpenEndSolid.js");
|
|
30
|
-
var _dec, _dec2, _class,
|
|
30
|
+
var _dec, _dec2, _class, _Calendar, _IconButton, _IconButton2;
|
|
31
31
|
/*
|
|
32
32
|
* The MIT License (MIT)
|
|
33
33
|
*
|
|
@@ -57,7 +57,7 @@ var _dec, _dec2, _class, _class2, _IconButton, _IconButton2;
|
|
|
57
57
|
category: components
|
|
58
58
|
---
|
|
59
59
|
**/
|
|
60
|
-
let Calendar = exports.Calendar = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (
|
|
60
|
+
let Calendar = exports.Calendar = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_Calendar = class Calendar extends _react.Component {
|
|
61
61
|
constructor(props) {
|
|
62
62
|
super(props);
|
|
63
63
|
this.ref = null;
|
|
@@ -317,8 +317,8 @@ let Calendar = exports.Calendar = (_dec = (0, _emotion.withStyle)(_styles.defaul
|
|
|
317
317
|
elementRef: this.handleRef
|
|
318
318
|
}), this.renderHeader(), this.renderBody());
|
|
319
319
|
}
|
|
320
|
-
},
|
|
320
|
+
}, _Calendar.displayName = "Calendar", _Calendar.componentId = 'Calendar', _Calendar.contextType = _ApplyLocaleContext.ApplyLocaleContext, _Calendar.Day = _Day.Day, _Calendar.DAY_COUNT = 42, _Calendar.propTypes = _props.propTypes, _Calendar.allowedProps = _props.allowedProps, _Calendar.defaultProps = {
|
|
321
321
|
as: 'span',
|
|
322
322
|
role: 'table'
|
|
323
|
-
},
|
|
323
|
+
}, _Calendar)) || _class) || _class);
|
|
324
324
|
var _default = exports.default = Calendar;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-calendar",
|
|
3
|
-
"version": "9.0.2-snapshot-
|
|
3
|
+
"version": "9.0.2-snapshot-4",
|
|
4
4
|
"description": "A calendar component.",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -23,29 +23,29 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@instructure/ui-babel-preset": "9.0.2-snapshot-
|
|
27
|
-
"@instructure/ui-color-utils": "9.0.2-snapshot-
|
|
28
|
-
"@instructure/ui-test-locator": "9.0.2-snapshot-
|
|
29
|
-
"@instructure/ui-test-utils": "9.0.2-snapshot-
|
|
30
|
-
"@instructure/ui-themes": "9.0.2-snapshot-
|
|
31
|
-
"@testing-library/jest-dom": "^6.
|
|
32
|
-
"@testing-library/react": "^
|
|
26
|
+
"@instructure/ui-babel-preset": "9.0.2-snapshot-4",
|
|
27
|
+
"@instructure/ui-color-utils": "9.0.2-snapshot-4",
|
|
28
|
+
"@instructure/ui-test-locator": "9.0.2-snapshot-4",
|
|
29
|
+
"@instructure/ui-test-utils": "9.0.2-snapshot-4",
|
|
30
|
+
"@instructure/ui-themes": "9.0.2-snapshot-4",
|
|
31
|
+
"@testing-library/jest-dom": "^6.4.5",
|
|
32
|
+
"@testing-library/react": "^15.0.7"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@babel/runtime": "^7.
|
|
36
|
-
"@instructure/console": "9.0.2-snapshot-
|
|
37
|
-
"@instructure/emotion": "9.0.2-snapshot-
|
|
38
|
-
"@instructure/shared-types": "9.0.2-snapshot-
|
|
39
|
-
"@instructure/ui-a11y-content": "9.0.2-snapshot-
|
|
40
|
-
"@instructure/ui-buttons": "9.0.2-snapshot-
|
|
41
|
-
"@instructure/ui-i18n": "9.0.2-snapshot-
|
|
42
|
-
"@instructure/ui-icons": "9.0.2-snapshot-
|
|
43
|
-
"@instructure/ui-prop-types": "9.0.2-snapshot-
|
|
44
|
-
"@instructure/ui-react-utils": "9.0.2-snapshot-
|
|
45
|
-
"@instructure/ui-testable": "9.0.2-snapshot-
|
|
46
|
-
"@instructure/ui-utils": "9.0.2-snapshot-
|
|
47
|
-
"@instructure/ui-view": "9.0.2-snapshot-
|
|
48
|
-
"@instructure/uid": "9.0.2-snapshot-
|
|
35
|
+
"@babel/runtime": "^7.24.5",
|
|
36
|
+
"@instructure/console": "9.0.2-snapshot-4",
|
|
37
|
+
"@instructure/emotion": "9.0.2-snapshot-4",
|
|
38
|
+
"@instructure/shared-types": "9.0.2-snapshot-4",
|
|
39
|
+
"@instructure/ui-a11y-content": "9.0.2-snapshot-4",
|
|
40
|
+
"@instructure/ui-buttons": "9.0.2-snapshot-4",
|
|
41
|
+
"@instructure/ui-i18n": "9.0.2-snapshot-4",
|
|
42
|
+
"@instructure/ui-icons": "9.0.2-snapshot-4",
|
|
43
|
+
"@instructure/ui-prop-types": "9.0.2-snapshot-4",
|
|
44
|
+
"@instructure/ui-react-utils": "9.0.2-snapshot-4",
|
|
45
|
+
"@instructure/ui-testable": "9.0.2-snapshot-4",
|
|
46
|
+
"@instructure/ui-utils": "9.0.2-snapshot-4",
|
|
47
|
+
"@instructure/ui-view": "9.0.2-snapshot-4",
|
|
48
|
+
"@instructure/uid": "9.0.2-snapshot-4",
|
|
49
49
|
"prop-types": "^15.8.1"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|