@khanacademy/wonder-blocks-birthday-picker 2.0.72 → 2.0.73
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 +13 -0
- package/dist/es/index.js +1 -15
- package/dist/index.js +17 -30
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @khanacademy/wonder-blocks-birthday-picker
|
|
2
2
|
|
|
3
|
+
## 2.0.73
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 559e82d5: Update to build tooling, generating smaller output
|
|
8
|
+
- Updated dependencies [559e82d5]
|
|
9
|
+
- @khanacademy/wonder-blocks-core@6.4.3
|
|
10
|
+
- @khanacademy/wonder-blocks-dropdown@5.4.2
|
|
11
|
+
- @khanacademy/wonder-blocks-icon@4.1.3
|
|
12
|
+
- @khanacademy/wonder-blocks-layout@2.1.2
|
|
13
|
+
- @khanacademy/wonder-blocks-tokens@1.3.1
|
|
14
|
+
- @khanacademy/wonder-blocks-typography@2.1.14
|
|
15
|
+
|
|
3
16
|
## 2.0.72
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/dist/es/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import _extends from '@babel/runtime/helpers/extends';
|
|
1
2
|
import moment from 'moment';
|
|
2
3
|
import * as React from 'react';
|
|
3
4
|
import { View } from '@khanacademy/wonder-blocks-core';
|
|
@@ -8,21 +9,6 @@ import { PhosphorIcon } from '@khanacademy/wonder-blocks-icon';
|
|
|
8
9
|
import { SingleSelect, OptionItem } from '@khanacademy/wonder-blocks-dropdown';
|
|
9
10
|
import infoIcon from '@phosphor-icons/core/bold/info-bold.svg';
|
|
10
11
|
|
|
11
|
-
function _extends() {
|
|
12
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
13
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
14
|
-
var source = arguments[i];
|
|
15
|
-
for (var key in source) {
|
|
16
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
17
|
-
target[key] = source[key];
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
return target;
|
|
22
|
-
};
|
|
23
|
-
return _extends.apply(this, arguments);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
12
|
const CUR_YEAR = new Date().getYear() + 1900;
|
|
27
13
|
const defaultLabels = Object.freeze({
|
|
28
14
|
errorMessage: "Please select a valid birthdate.",
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var _extends = require('@babel/runtime/helpers/extends');
|
|
3
4
|
var moment = require('moment');
|
|
4
5
|
var React = require('react');
|
|
5
6
|
var wonderBlocksCore = require('@khanacademy/wonder-blocks-core');
|
|
@@ -13,42 +14,28 @@ var infoIcon = require('@phosphor-icons/core/bold/info-bold.svg');
|
|
|
13
14
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
14
15
|
|
|
15
16
|
function _interopNamespace(e) {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
17
|
+
if (e && e.__esModule) return e;
|
|
18
|
+
var n = Object.create(null);
|
|
19
|
+
if (e) {
|
|
20
|
+
Object.keys(e).forEach(function (k) {
|
|
21
|
+
if (k !== 'default') {
|
|
22
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
23
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
get: function () { return e[k]; }
|
|
26
|
+
});
|
|
27
|
+
}
|
|
25
28
|
});
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
n["default"] = e;
|
|
30
|
-
return Object.freeze(n);
|
|
29
|
+
}
|
|
30
|
+
n["default"] = e;
|
|
31
|
+
return Object.freeze(n);
|
|
31
32
|
}
|
|
32
33
|
|
|
34
|
+
var _extends__default = /*#__PURE__*/_interopDefaultLegacy(_extends);
|
|
33
35
|
var moment__default = /*#__PURE__*/_interopDefaultLegacy(moment);
|
|
34
36
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
35
37
|
var infoIcon__default = /*#__PURE__*/_interopDefaultLegacy(infoIcon);
|
|
36
38
|
|
|
37
|
-
function _extends() {
|
|
38
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
39
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
40
|
-
var source = arguments[i];
|
|
41
|
-
for (var key in source) {
|
|
42
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
43
|
-
target[key] = source[key];
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
return target;
|
|
48
|
-
};
|
|
49
|
-
return _extends.apply(this, arguments);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
39
|
const CUR_YEAR = new Date().getYear() + 1900;
|
|
53
40
|
const defaultLabels = Object.freeze({
|
|
54
41
|
errorMessage: "Please select a valid birthdate.",
|
|
@@ -121,7 +108,7 @@ class BirthdayPicker extends React__namespace.Component {
|
|
|
121
108
|
year: null,
|
|
122
109
|
error: null
|
|
123
110
|
};
|
|
124
|
-
this.labels =
|
|
111
|
+
this.labels = _extends__default["default"]({}, defaultLabels, this.props.labels);
|
|
125
112
|
if (defaultValue) {
|
|
126
113
|
const date = moment__default["default"](defaultValue);
|
|
127
114
|
if (date.isValid()) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@khanacademy/wonder-blocks-birthday-picker",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.73",
|
|
4
4
|
"design": "v1",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@babel/runtime": "^7.18.6",
|
|
17
|
-
"@khanacademy/wonder-blocks-core": "^6.4.
|
|
18
|
-
"@khanacademy/wonder-blocks-dropdown": "^5.4.
|
|
19
|
-
"@khanacademy/wonder-blocks-icon": "^4.1.
|
|
20
|
-
"@khanacademy/wonder-blocks-layout": "^2.1.
|
|
21
|
-
"@khanacademy/wonder-blocks-tokens": "^1.3.
|
|
22
|
-
"@khanacademy/wonder-blocks-typography": "^2.1.
|
|
17
|
+
"@khanacademy/wonder-blocks-core": "^6.4.3",
|
|
18
|
+
"@khanacademy/wonder-blocks-dropdown": "^5.4.2",
|
|
19
|
+
"@khanacademy/wonder-blocks-icon": "^4.1.3",
|
|
20
|
+
"@khanacademy/wonder-blocks-layout": "^2.1.2",
|
|
21
|
+
"@khanacademy/wonder-blocks-tokens": "^1.3.1",
|
|
22
|
+
"@khanacademy/wonder-blocks-typography": "^2.1.14"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"@phosphor-icons/core": "^2.0.2",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"react": "16.14.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@khanacademy/wb-dev-build-settings": "^1.0.
|
|
31
|
+
"@khanacademy/wb-dev-build-settings": "^1.0.1"
|
|
32
32
|
},
|
|
33
33
|
"author": "",
|
|
34
34
|
"license": "MIT"
|