@dhis2-ui/calendar 9.11.3 → 9.11.4
Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,7 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.default = exports.WithAnyCalendar = exports.Nepali = exports.Ethiopic = void 0;
|
6
|
+
exports.default = exports.WithAnyCalendar = exports.Nepali = exports.Ethiopic = exports.Basic = void 0;
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
8
8
|
var _calendar = require("../calendar/calendar.js");
|
9
9
|
var _calendarStoryWrapper = require("./calendar-story-wrapper.js");
|
@@ -29,8 +29,35 @@ var _default = exports.default = {
|
|
29
29
|
component: description
|
30
30
|
}
|
31
31
|
}
|
32
|
+
},
|
33
|
+
argTypes: {
|
34
|
+
calendar: {
|
35
|
+
control: 'select',
|
36
|
+
options: ['gregory', 'islamic', 'nepali', 'ethiopic', 'persian', 'indian']
|
37
|
+
},
|
38
|
+
weekDayFormat: {
|
39
|
+
control: 'select',
|
40
|
+
options: ['long', 'short', 'narrow']
|
41
|
+
},
|
42
|
+
locale: {
|
43
|
+
control: 'text'
|
44
|
+
},
|
45
|
+
numberingSystem: {
|
46
|
+
control: 'select',
|
47
|
+
options: ['latn', 'arab', 'ethi']
|
48
|
+
}
|
32
49
|
}
|
33
50
|
};
|
51
|
+
const Basic = args => {
|
52
|
+
return /*#__PURE__*/_react.default.createElement(_calendar.Calendar, args);
|
53
|
+
};
|
54
|
+
exports.Basic = Basic;
|
55
|
+
Basic.args = {
|
56
|
+
onDateSelect: date => console.log(date),
|
57
|
+
calendar: 'gregory',
|
58
|
+
weekDayFormat: 'narrow',
|
59
|
+
locale: 'en'
|
60
|
+
};
|
34
61
|
const Ethiopic = args => {
|
35
62
|
return /*#__PURE__*/_react.default.createElement(_calendarStoryWrapper.CalendarStoryWrapper, _extends({
|
36
63
|
calendar: "ethiopic",
|
@@ -22,8 +22,34 @@ export default {
|
|
22
22
|
component: description
|
23
23
|
}
|
24
24
|
}
|
25
|
+
},
|
26
|
+
argTypes: {
|
27
|
+
calendar: {
|
28
|
+
control: 'select',
|
29
|
+
options: ['gregory', 'islamic', 'nepali', 'ethiopic', 'persian', 'indian']
|
30
|
+
},
|
31
|
+
weekDayFormat: {
|
32
|
+
control: 'select',
|
33
|
+
options: ['long', 'short', 'narrow']
|
34
|
+
},
|
35
|
+
locale: {
|
36
|
+
control: 'text'
|
37
|
+
},
|
38
|
+
numberingSystem: {
|
39
|
+
control: 'select',
|
40
|
+
options: ['latn', 'arab', 'ethi']
|
41
|
+
}
|
25
42
|
}
|
26
43
|
};
|
44
|
+
export const Basic = args => {
|
45
|
+
return /*#__PURE__*/React.createElement(Calendar, args);
|
46
|
+
};
|
47
|
+
Basic.args = {
|
48
|
+
onDateSelect: date => console.log(date),
|
49
|
+
calendar: 'gregory',
|
50
|
+
weekDayFormat: 'narrow',
|
51
|
+
locale: 'en'
|
52
|
+
};
|
27
53
|
export const Ethiopic = args => {
|
28
54
|
return /*#__PURE__*/React.createElement(CalendarStoryWrapper, _extends({
|
29
55
|
calendar: "ethiopic",
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@dhis2-ui/calendar",
|
3
|
-
"version": "9.11.
|
3
|
+
"version": "9.11.4",
|
4
4
|
"description": "UI Calendar",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -33,15 +33,15 @@
|
|
33
33
|
"styled-jsx": "^4"
|
34
34
|
},
|
35
35
|
"dependencies": {
|
36
|
-
"@dhis2-ui/button": "9.11.
|
37
|
-
"@dhis2-ui/card": "9.11.
|
38
|
-
"@dhis2-ui/input": "9.11.
|
39
|
-
"@dhis2-ui/layer": "9.11.
|
40
|
-
"@dhis2-ui/popper": "9.11.
|
36
|
+
"@dhis2-ui/button": "9.11.4",
|
37
|
+
"@dhis2-ui/card": "9.11.4",
|
38
|
+
"@dhis2-ui/input": "9.11.4",
|
39
|
+
"@dhis2-ui/layer": "9.11.4",
|
40
|
+
"@dhis2-ui/popper": "9.11.4",
|
41
41
|
"@dhis2/multi-calendar-dates": "^1.2.3",
|
42
42
|
"@dhis2/prop-types": "^3.1.2",
|
43
|
-
"@dhis2/ui-constants": "9.11.
|
44
|
-
"@dhis2/ui-icons": "9.11.
|
43
|
+
"@dhis2/ui-constants": "9.11.4",
|
44
|
+
"@dhis2/ui-icons": "9.11.4",
|
45
45
|
"classnames": "^2.3.1",
|
46
46
|
"prop-types": "^15.7.2"
|
47
47
|
},
|