@mirai/ui 1.0.65 → 1.0.67
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/README.md +37 -1
- package/build/components/Action/Action.js +52 -0
- package/build/components/Action/Action.js.map +1 -0
- package/build/components/Action/Action.module.css +35 -0
- package/build/components/Action/Action.stories.js +43 -0
- package/build/components/Action/Action.stories.js.map +1 -0
- package/build/components/Action/__tests__/__snapshots__/Action.test.js.snap +83 -0
- package/build/components/Action/index.js +17 -0
- package/build/components/Action/index.js.map +1 -0
- package/build/components/Button/Button.js +17 -29
- package/build/components/Button/Button.js.map +1 -1
- package/build/components/Button/Button.module.css +1 -1
- package/build/components/Button/Button.stories.js +4 -11
- package/build/components/Button/Button.stories.js.map +1 -1
- package/build/components/Button/index.js +0 -2
- package/build/components/Button/index.js.map +1 -1
- package/build/components/Calendar/Calendar.Month.js +22 -41
- package/build/components/Calendar/Calendar.Month.js.map +1 -1
- package/build/components/Calendar/Calendar.Week.js +36 -58
- package/build/components/Calendar/Calendar.Week.js.map +1 -1
- package/build/components/Calendar/Calendar.Weekdays.js +0 -10
- package/build/components/Calendar/Calendar.Weekdays.js.map +1 -1
- package/build/components/Calendar/Calendar.constants.js.map +1 -1
- package/build/components/Calendar/Calendar.js +45 -90
- package/build/components/Calendar/Calendar.js.map +1 -1
- package/build/components/Calendar/Calendar.stories.js +4 -21
- package/build/components/Calendar/Calendar.stories.js.map +1 -1
- package/build/components/Calendar/helpers/getFirstDateOfMonth.js +0 -3
- package/build/components/Calendar/helpers/getFirstDateOfMonth.js.map +1 -1
- package/build/components/Calendar/helpers/getFirstDateOfWeek.js +0 -4
- package/build/components/Calendar/helpers/getFirstDateOfWeek.js.map +1 -1
- package/build/components/Calendar/helpers/getFirstDayOfWeek.js +0 -2
- package/build/components/Calendar/helpers/getFirstDayOfWeek.js.map +1 -1
- package/build/components/Calendar/helpers/getHeader.js +0 -3
- package/build/components/Calendar/helpers/getHeader.js.map +1 -1
- package/build/components/Calendar/helpers/getScrollTo.js +6 -19
- package/build/components/Calendar/helpers/getScrollTo.js.map +1 -1
- package/build/components/Calendar/helpers/getToday.js +0 -3
- package/build/components/Calendar/helpers/getToday.js.map +1 -1
- package/build/components/Calendar/helpers/getWeekDays.js +0 -5
- package/build/components/Calendar/helpers/getWeekDays.js.map +1 -1
- package/build/components/Calendar/helpers/getWeekNumber.js +0 -3
- package/build/components/Calendar/helpers/getWeekNumber.js.map +1 -1
- package/build/components/Calendar/helpers/index.js +0 -16
- package/build/components/Calendar/helpers/index.js.map +1 -1
- package/build/components/Calendar/index.js +0 -2
- package/build/components/Calendar/index.js.map +1 -1
- package/build/components/Form/Form.constants.js.map +1 -1
- package/build/components/Form/Form.js +39 -76
- package/build/components/Form/Form.js.map +1 -1
- package/build/components/Form/Form.stories.js +8 -16
- package/build/components/Form/Form.stories.js.map +1 -1
- package/build/components/Form/helpers/getChildrenErrors.js +10 -21
- package/build/components/Form/helpers/getChildrenErrors.js.map +1 -1
- package/build/components/Form/helpers/getChildrenValues.js +11 -25
- package/build/components/Form/helpers/getChildrenValues.js.map +1 -1
- package/build/components/Form/helpers/getField.js +2 -5
- package/build/components/Form/helpers/getField.js.map +1 -1
- package/build/components/Form/helpers/groupState.js +6 -9
- package/build/components/Form/helpers/groupState.js.map +1 -1
- package/build/components/Form/helpers/index.js +0 -8
- package/build/components/Form/helpers/index.js.map +1 -1
- package/build/components/Form/index.js +0 -2
- package/build/components/Form/index.js.map +1 -1
- package/build/components/InputDate/InputDate.js +48 -68
- package/build/components/InputDate/InputDate.js.map +1 -1
- package/build/components/InputDate/InputDate.module.css +4 -0
- package/build/components/InputDate/InputDate.stories.js +6 -20
- package/build/components/InputDate/InputDate.stories.js.map +1 -1
- package/build/components/InputDate/__tests__/__snapshots__/InputDate.test.js.snap +187 -25
- package/build/components/InputDate/index.js +0 -2
- package/build/components/InputDate/index.js.map +1 -1
- package/build/components/InputNumber/InputNumber.js +18 -32
- package/build/components/InputNumber/InputNumber.js.map +1 -1
- package/build/components/InputNumber/InputNumber.module.css +11 -6
- package/build/components/InputNumber/InputNumber.stories.js +4 -13
- package/build/components/InputNumber/InputNumber.stories.js.map +1 -1
- package/build/components/InputNumber/__tests__/__snapshots__/InputNumber.test.js.snap +2 -2
- package/build/components/InputNumber/index.js +0 -2
- package/build/components/InputNumber/index.js.map +1 -1
- package/build/components/InputOption/InputOption.constants.js.map +1 -1
- package/build/components/InputOption/InputOption.js +14 -30
- package/build/components/InputOption/InputOption.js.map +1 -1
- package/build/components/InputOption/InputOption.stories.js +4 -14
- package/build/components/InputOption/InputOption.stories.js.map +1 -1
- package/build/components/InputOption/index.js +0 -4
- package/build/components/InputOption/index.js.map +1 -1
- package/build/components/InputSelect/InputSelect.js +20 -48
- package/build/components/InputSelect/InputSelect.js.map +1 -1
- package/build/components/InputSelect/InputSelect.stories.js +4 -17
- package/build/components/InputSelect/InputSelect.stories.js.map +1 -1
- package/build/components/InputSelect/__tests__/__snapshots__/InputSelect.test.js.snap +8 -8
- package/build/components/InputSelect/index.js +0 -2
- package/build/components/InputSelect/index.js.map +1 -1
- package/build/components/InputText/InputText.js +41 -66
- package/build/components/InputText/InputText.js.map +1 -1
- package/build/components/InputText/InputText.module.css +8 -1
- package/build/components/InputText/InputText.stories.js +4 -25
- package/build/components/InputText/InputText.stories.js.map +1 -1
- package/build/components/InputText/__tests__/__snapshots__/InputText.test.js.snap +1 -1
- package/build/components/InputText/index.js +0 -2
- package/build/components/InputText/index.js.map +1 -1
- package/build/components/Menu/Menu.Option.js +8 -21
- package/build/components/Menu/Menu.Option.js.map +1 -1
- package/build/components/Menu/Menu.js +11 -29
- package/build/components/Menu/Menu.js.map +1 -1
- package/build/components/Menu/Menu.stories.js +4 -13
- package/build/components/Menu/Menu.stories.js.map +1 -1
- package/build/components/Menu/index.js +0 -2
- package/build/components/Menu/index.js.map +1 -1
- package/build/components/Modal/Modal.js +13 -29
- package/build/components/Modal/Modal.js.map +1 -1
- package/build/components/Modal/Modal.stories.js +4 -11
- package/build/components/Modal/Modal.stories.js.map +1 -1
- package/build/components/Modal/index.js +0 -2
- package/build/components/Modal/index.js.map +1 -1
- package/build/components/Notification/Notification.js +9 -22
- package/build/components/Notification/Notification.js.map +1 -1
- package/build/components/Notification/Notification.stories.js +4 -11
- package/build/components/Notification/Notification.stories.js.map +1 -1
- package/build/components/Notification/index.js +0 -2
- package/build/components/Notification/index.js.map +1 -1
- package/build/components/Table/Table.Row.js +26 -42
- package/build/components/Table/Table.Row.js.map +1 -1
- package/build/components/Table/Table.js +17 -43
- package/build/components/Table/Table.js.map +1 -1
- package/build/components/Table/Table.module.css +27 -9
- package/build/components/Table/Table.stories.js +4 -12
- package/build/components/Table/Table.stories.js.map +1 -1
- package/build/components/Table/__tests__/__snapshots__/Table.test.js.snap +30 -77
- package/build/components/Table/helpers/index.js +0 -2
- package/build/components/Table/helpers/index.js.map +1 -1
- package/build/components/Table/helpers/select.js +3 -7
- package/build/components/Table/helpers/select.js.map +1 -1
- package/build/components/Table/index.js +0 -2
- package/build/components/Table/index.js.map +1 -1
- package/build/components/Tooltip/Tooltip.js +11 -35
- package/build/components/Tooltip/Tooltip.js.map +1 -1
- package/build/components/Tooltip/Tooltip.stories.js +4 -11
- package/build/components/Tooltip/Tooltip.stories.js.map +1 -1
- package/build/components/Tooltip/index.js +0 -2
- package/build/components/Tooltip/index.js.map +1 -1
- package/build/components/index.js +11 -26
- package/build/components/index.js.map +1 -1
- package/build/helpers/getIconState.js +3 -7
- package/build/helpers/getIconState.js.map +1 -1
- package/build/helpers/getInputDateErrors.js +9 -13
- package/build/helpers/getInputDateErrors.js.map +1 -1
- package/build/helpers/getInputErrors.js +21 -30
- package/build/helpers/getInputErrors.js.map +1 -1
- package/build/helpers/index.js +11 -10
- package/build/helpers/index.js.map +1 -1
- package/build/helpers/isJest.js +0 -3
- package/build/helpers/isJest.js.map +1 -1
- package/build/helpers/isValidDate.js +8 -28
- package/build/helpers/isValidDate.js.map +1 -1
- package/build/helpers/isValidEmail.js +0 -1
- package/build/helpers/isValidEmail.js.map +1 -1
- package/build/helpers/isValidPhone.js +3 -9
- package/build/helpers/isValidPhone.js.map +1 -1
- package/build/helpers/splitDate.js +16 -0
- package/build/helpers/splitDate.js.map +1 -0
- package/build/helpers/styles.js +0 -3
- package/build/helpers/styles.js.map +1 -1
- package/build/hooks/helpers/getNavigator.js +2 -5
- package/build/hooks/helpers/getNavigator.js.map +1 -1
- package/build/hooks/helpers/getResolution.js +4 -7
- package/build/hooks/helpers/getResolution.js.map +1 -1
- package/build/hooks/helpers/index.js +0 -4
- package/build/hooks/helpers/index.js.map +1 -1
- package/build/hooks/index.js +0 -2
- package/build/hooks/index.js.map +1 -1
- package/build/hooks/useDevice.js +8 -20
- package/build/hooks/useDevice.js.map +1 -1
- package/build/hooks/useDevice.stories.js +3 -19
- package/build/hooks/useDevice.stories.js.map +1 -1
- package/build/index.js +0 -10
- package/build/index.js.map +1 -1
- package/build/primitives/Checkbox/Checkbox.js +8 -20
- package/build/primitives/Checkbox/Checkbox.js.map +1 -1
- package/build/primitives/Checkbox/Checkbox.stories.js +4 -11
- package/build/primitives/Checkbox/Checkbox.stories.js.map +1 -1
- package/build/primitives/Checkbox/index.js +0 -2
- package/build/primitives/Checkbox/index.js.map +1 -1
- package/build/primitives/Icon/Icon.constants.js +1 -2
- package/build/primitives/Icon/Icon.constants.js.map +1 -1
- package/build/primitives/Icon/Icon.js +11 -22
- package/build/primitives/Icon/Icon.js.map +1 -1
- package/build/primitives/Icon/Icon.stories.js +7 -24
- package/build/primitives/Icon/Icon.stories.js.map +1 -1
- package/build/primitives/Icon/__tests__/__snapshots__/Icon.test.js.snap +27 -0
- package/build/primitives/Icon/index.js +0 -3
- package/build/primitives/Icon/index.js.map +1 -1
- package/build/primitives/Input/Input.js +15 -28
- package/build/primitives/Input/Input.js.map +1 -1
- package/build/primitives/Input/Input.module.css +8 -1
- package/build/primitives/Input/Input.stories.js +4 -11
- package/build/primitives/Input/Input.stories.js.map +1 -1
- package/build/primitives/Input/helpers/index.js +0 -2
- package/build/primitives/Input/helpers/index.js.map +1 -1
- package/build/primitives/Input/helpers/parseValue.js +2 -5
- package/build/primitives/Input/helpers/parseValue.js.map +1 -1
- package/build/primitives/Input/index.js +0 -2
- package/build/primitives/Input/index.js.map +1 -1
- package/build/primitives/Layer/Layer.js +25 -55
- package/build/primitives/Layer/Layer.js.map +1 -1
- package/build/primitives/Layer/Layer.stories.js +4 -13
- package/build/primitives/Layer/Layer.stories.js.map +1 -1
- package/build/primitives/Layer/LayerContent.js +0 -4
- package/build/primitives/Layer/LayerContent.js.map +1 -1
- package/build/primitives/Layer/helpers/getElementLayout.js +3 -5
- package/build/primitives/Layer/helpers/getElementLayout.js.map +1 -1
- package/build/primitives/Layer/helpers/getLayerPosition.js +18 -24
- package/build/primitives/Layer/helpers/getLayerPosition.js.map +1 -1
- package/build/primitives/Layer/helpers/index.js +0 -4
- package/build/primitives/Layer/helpers/index.js.map +1 -1
- package/build/primitives/Layer/index.js +0 -4
- package/build/primitives/Layer/index.js.map +1 -1
- package/build/primitives/Pressable/Pressable.constants.js.map +1 -1
- package/build/primitives/Pressable/Pressable.js +14 -26
- package/build/primitives/Pressable/Pressable.js.map +1 -1
- package/build/primitives/Pressable/Pressable.module.css +1 -0
- package/build/primitives/Pressable/Pressable.stories.js +4 -11
- package/build/primitives/Pressable/Pressable.stories.js.map +1 -1
- package/build/primitives/Pressable/index.js +0 -2
- package/build/primitives/Pressable/index.js.map +1 -1
- package/build/primitives/Radio/Radio.js +7 -19
- package/build/primitives/Radio/Radio.js.map +1 -1
- package/build/primitives/Radio/Radio.stories.js +4 -11
- package/build/primitives/Radio/Radio.stories.js.map +1 -1
- package/build/primitives/Radio/index.js +0 -2
- package/build/primitives/Radio/index.js.map +1 -1
- package/build/primitives/ScrollView/ScrollView.js +27 -45
- package/build/primitives/ScrollView/ScrollView.js.map +1 -1
- package/build/primitives/ScrollView/ScrollView.stories.js +6 -16
- package/build/primitives/ScrollView/ScrollView.stories.js.map +1 -1
- package/build/primitives/ScrollView/index.js +0 -2
- package/build/primitives/ScrollView/index.js.map +1 -1
- package/build/primitives/Select/Select.js +14 -31
- package/build/primitives/Select/Select.js.map +1 -1
- package/build/primitives/Select/Select.module.css +1 -0
- package/build/primitives/Select/Select.stories.js +4 -19
- package/build/primitives/Select/Select.stories.js.map +1 -1
- package/build/primitives/Select/index.js +0 -2
- package/build/primitives/Select/index.js.map +1 -1
- package/build/primitives/Switch/Switch.js +5 -18
- package/build/primitives/Switch/Switch.js.map +1 -1
- package/build/primitives/Switch/Switch.stories.js +4 -11
- package/build/primitives/Switch/Switch.stories.js.map +1 -1
- package/build/primitives/Switch/index.js +0 -2
- package/build/primitives/Switch/index.js.map +1 -1
- package/build/primitives/Text/Text.js +14 -25
- package/build/primitives/Text/Text.js.map +1 -1
- package/build/primitives/Text/Text.stories.js +4 -11
- package/build/primitives/Text/Text.stories.js.map +1 -1
- package/build/primitives/Text/index.js +0 -2
- package/build/primitives/Text/index.js.map +1 -1
- package/build/primitives/View/View.js +9 -20
- package/build/primitives/View/View.js.map +1 -1
- package/build/primitives/View/View.stories.js +4 -11
- package/build/primitives/View/View.stories.js.map +1 -1
- package/build/primitives/View/index.js +0 -2
- package/build/primitives/View/index.js.map +1 -1
- package/build/primitives/index.js +0 -22
- package/build/primitives/index.js.map +1 -1
- package/build/theme/default.theme.css +9 -3
- package/build/theme/helpers/camelcase.js +0 -2
- package/build/theme/helpers/camelcase.js.map +1 -1
- package/build/theme/helpers/colorShade.js +0 -4
- package/build/theme/helpers/colorShade.js.map +1 -1
- package/build/theme/helpers/index.js +0 -4
- package/build/theme/helpers/index.js.map +1 -1
- package/build/theme/index.js +0 -2
- package/build/theme/index.js.map +1 -1
- package/build/theme/theme.js +1 -14
- package/build/theme/theme.js.map +1 -1
- package/package.json +14 -16
package/README.md
CHANGED
|
@@ -316,6 +316,43 @@ const MyComponent = ({ headerText }) => (
|
|
|
316
316
|
|
|
317
317
|
React components assembled with primitives.
|
|
318
318
|
|
|
319
|
+
### Action
|
|
320
|
+
|
|
321
|
+
A hyperlink component that receives the following props:
|
|
322
|
+
|
|
323
|
+
- `children:node|string`
|
|
324
|
+
- `disabled:boolean` applying 'disabled' attribute
|
|
325
|
+
- `large:boolean` modifying the button size
|
|
326
|
+
- `small:boolean` modifying the button size
|
|
327
|
+
- `tag:string` html tag of resulting element ('button' by default)
|
|
328
|
+
- `wide:bool` modifying the button to full-width
|
|
329
|
+
- `onEnter:function` executed when the user hovers over
|
|
330
|
+
- `onLeave:function` executed when the user hovers away
|
|
331
|
+
- `onPress:function` executed on mouse click on the element
|
|
332
|
+
|
|
333
|
+
```jsx
|
|
334
|
+
import { Action } from '@mirai/ui';
|
|
335
|
+
|
|
336
|
+
const MyComponent = (props) => {
|
|
337
|
+
const handleActionClick = () => console.log('click');
|
|
338
|
+
|
|
339
|
+
return (
|
|
340
|
+
<>
|
|
341
|
+
<Action large onPress={handleActionClick} />
|
|
342
|
+
</>
|
|
343
|
+
);
|
|
344
|
+
};
|
|
345
|
+
```
|
|
346
|
+
|
|
347
|
+
**Theming variables**
|
|
348
|
+
|
|
349
|
+
```css
|
|
350
|
+
--mirai-ui-action-color: var(--mirai-ui-accent);
|
|
351
|
+
--mirai-ui-action-color-active: var(--mirai-ui-content);
|
|
352
|
+
--mirai-ui-action-color-disabled: var(--mirai-ui-content-light);
|
|
353
|
+
--mirai-ui-action-font-weight: var(--mirai-ui-font-weight);
|
|
354
|
+
```
|
|
355
|
+
|
|
319
356
|
### Button
|
|
320
357
|
|
|
321
358
|
A button component that receives the following props:
|
|
@@ -359,7 +396,6 @@ const MyComponent = (props) => {
|
|
|
359
396
|
--mirai-ui-button-color-hover: var(--mirai-ui-content);
|
|
360
397
|
--mirai-ui-button-disabled-background: var(--mirai-ui-content-border);
|
|
361
398
|
--mirai-ui-button-disabled-color: var(--mirai-ui-content-light);
|
|
362
|
-
--mirai-ui-button-font: var(--mirai-ui-font);
|
|
363
399
|
--mirai-ui-button-font-weight: var(--mirai-ui-font-weight);
|
|
364
400
|
--mirai-ui-button-secondary-background: var(--mirai-ui-base);
|
|
365
401
|
--mirai-ui-button-padding-y: var(--mirai-ui-space-S);
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.Action = void 0;
|
|
8
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
+
var _react = _interopRequireDefault(require("react"));
|
|
10
|
+
var _helpers = require("../../helpers");
|
|
11
|
+
var _primitives = require("../../primitives");
|
|
12
|
+
var _ActionModule = _interopRequireDefault(require("./Action.module.css"));
|
|
13
|
+
var _excluded = ["children", "disabled", "large", "small", "tag", "wide", "onPress"];
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
16
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
17
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
18
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
19
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
20
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
21
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
22
|
+
var Action = function Action(_ref) {
|
|
23
|
+
var children = _ref.children,
|
|
24
|
+
disabled = _ref.disabled,
|
|
25
|
+
large = _ref.large,
|
|
26
|
+
small = _ref.small,
|
|
27
|
+
_ref$tag = _ref.tag,
|
|
28
|
+
tag = _ref$tag === void 0 ? 'button' : _ref$tag,
|
|
29
|
+
wide = _ref.wide,
|
|
30
|
+
onPress = _ref.onPress,
|
|
31
|
+
others = _objectWithoutProperties(_ref, _excluded);
|
|
32
|
+
return /*#__PURE__*/_react.default.createElement(_primitives.Pressable, _objectSpread(_objectSpread({}, others), {}, {
|
|
33
|
+
disabled: disabled,
|
|
34
|
+
tag: tag,
|
|
35
|
+
className: (0, _helpers.styles)(_ActionModule.default.action, large && _ActionModule.default.large, small && _ActionModule.default.small, wide && _ActionModule.default.wide, others.className),
|
|
36
|
+
onPress: !disabled ? onPress : undefined
|
|
37
|
+
}), children);
|
|
38
|
+
};
|
|
39
|
+
exports.Action = Action;
|
|
40
|
+
Action.displayName = 'Component:Action';
|
|
41
|
+
Action.propTypes = {
|
|
42
|
+
children: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.node]),
|
|
43
|
+
disabled: _propTypes.default.bool,
|
|
44
|
+
large: _propTypes.default.bool,
|
|
45
|
+
small: _propTypes.default.bool,
|
|
46
|
+
tag: _propTypes.default.string,
|
|
47
|
+
wide: _propTypes.default.bool,
|
|
48
|
+
onEnter: _propTypes.default.func,
|
|
49
|
+
onLeave: _propTypes.default.func,
|
|
50
|
+
onPress: _propTypes.default.func
|
|
51
|
+
};
|
|
52
|
+
//# sourceMappingURL=Action.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Action.js","names":["Action","children","disabled","large","small","tag","wide","onPress","others","React","createElement","Pressable","className","styles","style","action","undefined","displayName","propTypes","PropTypes","oneOfType","string","node","bool","onEnter","func","onLeave"],"sources":["../../../src/components/Action/Action.jsx"],"sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\n\nimport { styles } from '../../helpers';\nimport { Pressable } from '../../primitives';\nimport style from './Action.module.css';\n\nconst Action = ({ children, disabled, large, small, tag = 'button', wide, onPress, ...others }) =>\n React.createElement(\n Pressable,\n {\n ...others,\n disabled,\n tag,\n className: styles(style.action, large && style.large, small && style.small, wide && style.wide, others.className),\n onPress: !disabled ? onPress : undefined,\n },\n children,\n );\n\nAction.displayName = 'Component:Action';\n\nAction.propTypes = {\n children: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),\n disabled: PropTypes.bool,\n large: PropTypes.bool,\n small: PropTypes.bool,\n tag: PropTypes.string,\n wide: PropTypes.bool,\n onEnter: PropTypes.func,\n onLeave: PropTypes.func,\n onPress: PropTypes.func,\n};\n\nexport { Action };\n"],"mappings":";;;;;;;AAAA;AACA;AAEA;AACA;AACA;AAAwC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAExC,IAAMA,MAAM,GAAG,SAATA,MAAM;EAAA,IAAMC,QAAQ,QAARA,QAAQ;IAAEC,QAAQ,QAARA,QAAQ;IAAEC,KAAK,QAALA,KAAK;IAAEC,KAAK,QAALA,KAAK;IAAA,gBAAEC,GAAG;IAAHA,GAAG,yBAAG,QAAQ;IAAEC,IAAI,QAAJA,IAAI;IAAEC,OAAO,QAAPA,OAAO;IAAKC,MAAM;EAAA,oBAC1FC,cAAK,CAACC,aAAa,CACjBC,qBAAS,kCAEJH,MAAM;IACTN,QAAQ,EAARA,QAAQ;IACRG,GAAG,EAAHA,GAAG;IACHO,SAAS,EAAE,IAAAC,eAAM,EAACC,qBAAK,CAACC,MAAM,EAAEZ,KAAK,IAAIW,qBAAK,CAACX,KAAK,EAAEC,KAAK,IAAIU,qBAAK,CAACV,KAAK,EAAEE,IAAI,IAAIQ,qBAAK,CAACR,IAAI,EAAEE,MAAM,CAACI,SAAS,CAAC;IACjHL,OAAO,EAAE,CAACL,QAAQ,GAAGK,OAAO,GAAGS;EAAS,IAE1Cf,QAAQ,CACT;AAAA;AAAC;AAEJD,MAAM,CAACiB,WAAW,GAAG,kBAAkB;AAEvCjB,MAAM,CAACkB,SAAS,GAAG;EACjBjB,QAAQ,EAAEkB,kBAAS,CAACC,SAAS,CAAC,CAACD,kBAAS,CAACE,MAAM,EAAEF,kBAAS,CAACG,IAAI,CAAC,CAAC;EACjEpB,QAAQ,EAAEiB,kBAAS,CAACI,IAAI;EACxBpB,KAAK,EAAEgB,kBAAS,CAACI,IAAI;EACrBnB,KAAK,EAAEe,kBAAS,CAACI,IAAI;EACrBlB,GAAG,EAAEc,kBAAS,CAACE,MAAM;EACrBf,IAAI,EAAEa,kBAAS,CAACI,IAAI;EACpBC,OAAO,EAAEL,kBAAS,CAACM,IAAI;EACvBC,OAAO,EAAEP,kBAAS,CAACM,IAAI;EACvBlB,OAAO,EAAEY,kBAAS,CAACM;AACrB,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
.action {
|
|
2
|
+
align-items: center;
|
|
3
|
+
color: var(--mirai-ui-action-color);
|
|
4
|
+
display: flex;
|
|
5
|
+
font-family: var(--mirai-ui-font);
|
|
6
|
+
font-size: var(--mirai-ui-font-size-action);
|
|
7
|
+
font-weight: var(--mirai-ui-action-font-weight);
|
|
8
|
+
justify-content: center;
|
|
9
|
+
padding: var(--mirai-ui-button-padding-y) 0;
|
|
10
|
+
position: relative;
|
|
11
|
+
transition: color var(--mirai-ui-motion-expand) var(--mirai-ui-motion-easing);
|
|
12
|
+
width: fit-content;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.action:disabled {
|
|
16
|
+
color: var(--mirai-ui-action-color-disabled);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.action:not(:disabled):active {
|
|
20
|
+
color: var(--mirai-ui-action-color-active);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.large {
|
|
24
|
+
font-size: var(--mirai-ui-font-size-paragraph);
|
|
25
|
+
padding: var(--mirai-ui-button-padding-y) 0;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.small {
|
|
29
|
+
font-size: var(--mirai-ui-font-size-small);
|
|
30
|
+
padding: var(--mirai-ui-button-padding-y) 0;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.wide {
|
|
34
|
+
width: 100%;
|
|
35
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.Story = void 0;
|
|
7
|
+
var React = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _Action = require("./Action");
|
|
9
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
10
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
11
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
12
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
13
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
14
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
15
|
+
var _default = {
|
|
16
|
+
title: 'Components'
|
|
17
|
+
};
|
|
18
|
+
exports.default = _default;
|
|
19
|
+
var Story = function Story(props) {
|
|
20
|
+
return /*#__PURE__*/React.createElement(_Action.Action, props);
|
|
21
|
+
};
|
|
22
|
+
exports.Story = Story;
|
|
23
|
+
Story.storyName = 'Action';
|
|
24
|
+
Story.args = _defineProperty({
|
|
25
|
+
children: 'children',
|
|
26
|
+
disabled: false,
|
|
27
|
+
large: false,
|
|
28
|
+
small: false,
|
|
29
|
+
tag: 'Button',
|
|
30
|
+
wide: false
|
|
31
|
+
}, 'data-testid', 'test-story');
|
|
32
|
+
Story.argTypes = {
|
|
33
|
+
onEnter: {
|
|
34
|
+
action: 'onEnter'
|
|
35
|
+
},
|
|
36
|
+
onLeave: {
|
|
37
|
+
action: 'onLeave'
|
|
38
|
+
},
|
|
39
|
+
onPress: {
|
|
40
|
+
action: 'onPress'
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
//# sourceMappingURL=Action.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Action.stories.js","names":["title","Story","props","storyName","args","children","disabled","large","small","tag","wide","argTypes","onEnter","action","onLeave","onPress"],"sources":["../../../src/components/Action/Action.stories.jsx"],"sourcesContent":["import * as React from 'react';\n\nimport { Action } from './Action';\n\nexport default { title: 'Components' };\n\nexport const Story = (props) => <Action {...props} />;\n\nStory.storyName = 'Action';\n\nStory.args = {\n children: 'children',\n disabled: false,\n large: false,\n small: false,\n tag: 'Button',\n wide: false,\n ['data-testid']: 'test-story',\n};\n\nStory.argTypes = {\n onEnter: { action: 'onEnter' },\n onLeave: { action: 'onLeave' },\n onPress: { action: 'onPress' },\n};\n"],"mappings":";;;;;;AAAA;AAEA;AAAkC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,eAEnB;EAAEA,KAAK,EAAE;AAAa,CAAC;AAAA;AAE/B,IAAMC,KAAK,GAAG,SAARA,KAAK,CAAIC,KAAK;EAAA,oBAAK,oBAAC,cAAM,EAAKA,KAAK,CAAI;AAAA;AAAC;AAEtDD,KAAK,CAACE,SAAS,GAAG,QAAQ;AAE1BF,KAAK,CAACG,IAAI;EACRC,QAAQ,EAAE,UAAU;EACpBC,QAAQ,EAAE,KAAK;EACfC,KAAK,EAAE,KAAK;EACZC,KAAK,EAAE,KAAK;EACZC,GAAG,EAAE,QAAQ;EACbC,IAAI,EAAE;AAAK,GACV,aAAa,EAAG,YAAY,CAC9B;AAEDT,KAAK,CAACU,QAAQ,GAAG;EACfC,OAAO,EAAE;IAAEC,MAAM,EAAE;EAAU,CAAC;EAC9BC,OAAO,EAAE;IAAED,MAAM,EAAE;EAAU,CAAC;EAC9BE,OAAO,EAAE;IAAEF,MAAM,EAAE;EAAU;AAC/B,CAAC"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`component:<Action> inherit:className 1`] = `
|
|
4
|
+
<DocumentFragment>
|
|
5
|
+
<button
|
|
6
|
+
class="pressable action mirai"
|
|
7
|
+
>
|
|
8
|
+
children
|
|
9
|
+
</button>
|
|
10
|
+
</DocumentFragment>
|
|
11
|
+
`;
|
|
12
|
+
|
|
13
|
+
exports[`component:<Action> prop:disabled 1`] = `
|
|
14
|
+
<DocumentFragment>
|
|
15
|
+
<button
|
|
16
|
+
class="pressable action"
|
|
17
|
+
disabled=""
|
|
18
|
+
>
|
|
19
|
+
children
|
|
20
|
+
</button>
|
|
21
|
+
</DocumentFragment>
|
|
22
|
+
`;
|
|
23
|
+
|
|
24
|
+
exports[`component:<Action> prop:large 1`] = `
|
|
25
|
+
<DocumentFragment>
|
|
26
|
+
<button
|
|
27
|
+
class="pressable action large"
|
|
28
|
+
>
|
|
29
|
+
children
|
|
30
|
+
</button>
|
|
31
|
+
</DocumentFragment>
|
|
32
|
+
`;
|
|
33
|
+
|
|
34
|
+
exports[`component:<Action> prop:small 1`] = `
|
|
35
|
+
<DocumentFragment>
|
|
36
|
+
<button
|
|
37
|
+
class="pressable action small"
|
|
38
|
+
>
|
|
39
|
+
children
|
|
40
|
+
</button>
|
|
41
|
+
</DocumentFragment>
|
|
42
|
+
`;
|
|
43
|
+
|
|
44
|
+
exports[`component:<Action> prop:tag 1`] = `
|
|
45
|
+
<DocumentFragment>
|
|
46
|
+
<a
|
|
47
|
+
class="pressable action"
|
|
48
|
+
>
|
|
49
|
+
children
|
|
50
|
+
</a>
|
|
51
|
+
</DocumentFragment>
|
|
52
|
+
`;
|
|
53
|
+
|
|
54
|
+
exports[`component:<Action> prop:wide 1`] = `
|
|
55
|
+
<DocumentFragment>
|
|
56
|
+
<button
|
|
57
|
+
class="pressable action wide"
|
|
58
|
+
>
|
|
59
|
+
children
|
|
60
|
+
</button>
|
|
61
|
+
</DocumentFragment>
|
|
62
|
+
`;
|
|
63
|
+
|
|
64
|
+
exports[`component:<Action> renders 1`] = `
|
|
65
|
+
<DocumentFragment>
|
|
66
|
+
<button
|
|
67
|
+
class="pressable action"
|
|
68
|
+
>
|
|
69
|
+
children
|
|
70
|
+
</button>
|
|
71
|
+
</DocumentFragment>
|
|
72
|
+
`;
|
|
73
|
+
|
|
74
|
+
exports[`component:<Action> testID 1`] = `
|
|
75
|
+
<DocumentFragment>
|
|
76
|
+
<button
|
|
77
|
+
class="pressable action"
|
|
78
|
+
data-testid="mirai"
|
|
79
|
+
>
|
|
80
|
+
children
|
|
81
|
+
</button>
|
|
82
|
+
</DocumentFragment>
|
|
83
|
+
`;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _Action = require("./Action");
|
|
7
|
+
Object.keys(_Action).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _Action[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function get() {
|
|
13
|
+
return _Action[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../src/components/Action/index.js"],"sourcesContent":["export * from './Action';\n"],"mappings":";;;;;AAAA;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA"}
|
|
@@ -1,50 +1,39 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
7
|
exports.Button = void 0;
|
|
7
|
-
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
-
|
|
10
9
|
var _react = _interopRequireDefault(require("react"));
|
|
11
|
-
|
|
12
10
|
var _helpers = require("../../helpers");
|
|
13
|
-
|
|
14
11
|
var _primitives = require("../../primitives");
|
|
15
|
-
|
|
16
12
|
var _ButtonModule = _interopRequireDefault(require("./Button.module.css"));
|
|
17
|
-
|
|
18
13
|
var _excluded = ["busy", "children", "disabled", "large", "rounded", "secondary", "small", "squared", "tag", "wide", "onPress"];
|
|
19
|
-
|
|
20
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
|
-
|
|
22
15
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
23
|
-
|
|
24
16
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
25
|
-
|
|
26
|
-
function
|
|
27
|
-
|
|
17
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
18
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
19
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
28
20
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
29
|
-
|
|
30
21
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
31
|
-
|
|
32
22
|
var Button = function Button(_ref) {
|
|
33
23
|
var busy = _ref.busy,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
24
|
+
children = _ref.children,
|
|
25
|
+
disabled = _ref.disabled,
|
|
26
|
+
large = _ref.large,
|
|
27
|
+
rounded = _ref.rounded,
|
|
28
|
+
secondary = _ref.secondary,
|
|
29
|
+
small = _ref.small,
|
|
30
|
+
_ref$squared = _ref.squared,
|
|
31
|
+
squared = _ref$squared === void 0 ? false : _ref$squared,
|
|
32
|
+
_ref$tag = _ref.tag,
|
|
33
|
+
tag = _ref$tag === void 0 ? 'button' : _ref$tag,
|
|
34
|
+
wide = _ref.wide,
|
|
35
|
+
onPress = _ref.onPress,
|
|
36
|
+
others = _objectWithoutProperties(_ref, _excluded);
|
|
48
37
|
return /*#__PURE__*/_react.default.createElement(_primitives.Pressable, _objectSpread(_objectSpread({}, others), {}, {
|
|
49
38
|
disabled: disabled || busy,
|
|
50
39
|
tag: tag,
|
|
@@ -54,7 +43,6 @@ var Button = function Button(_ref) {
|
|
|
54
43
|
className: (0, _helpers.styles)(_ButtonModule.default.busyProgress, busy && _ButtonModule.default.active)
|
|
55
44
|
}), children));
|
|
56
45
|
};
|
|
57
|
-
|
|
58
46
|
exports.Button = Button;
|
|
59
47
|
Button.displayName = 'Component:Button';
|
|
60
48
|
Button.propTypes = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.js","names":["Button","busy","children","disabled","large","rounded","secondary","small","squared","tag","wide","onPress","others","React","createElement","Pressable","className","style","button","undefined","busyProgress","active","displayName","propTypes","PropTypes","bool","oneOfType","string","node","onEnter","func","onLeave"],"sources":["../../../src/components/Button/Button.jsx"],"sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\n\nimport { styles } from '../../helpers';\nimport { Pressable, View } from '../../primitives';\nimport style from './Button.module.css';\n\nconst Button = ({\n busy,\n children,\n disabled,\n large,\n rounded,\n secondary,\n small,\n squared = false,\n tag = 'button',\n wide,\n onPress,\n ...others\n}) =>\n React.createElement(\n Pressable,\n {\n ...others,\n disabled: disabled || busy,\n tag,\n className: styles(\n style.button,\n busy && style.busy,\n large && style.large,\n small && style.small,\n rounded && style.rounded,\n squared && style.squared,\n secondary && style.secondary,\n secondary && (disabled || busy) && style.disabled,\n wide && style.wide,\n others.className,\n ),\n onPress: !disabled && !busy ? onPress : undefined,\n },\n <>\n {busy !== undefined && <View className={styles(style.busyProgress, busy && style.active)} />}\n {children}\n </>,\n );\n\nButton.displayName = 'Component:Button';\n\nButton.propTypes = {\n busy: PropTypes.bool,\n children: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),\n disabled: PropTypes.bool,\n large: PropTypes.bool,\n rounded: PropTypes.bool,\n secondary: PropTypes.bool,\n small: PropTypes.bool,\n squared: PropTypes.bool,\n tag: PropTypes.string,\n wide: PropTypes.bool,\n onEnter: PropTypes.func,\n onLeave: PropTypes.func,\n onPress: PropTypes.func,\n};\n\nexport { Button };\n"],"mappings":";;;;;;;AAAA
|
|
1
|
+
{"version":3,"file":"Button.js","names":["Button","busy","children","disabled","large","rounded","secondary","small","squared","tag","wide","onPress","others","React","createElement","Pressable","className","styles","style","button","undefined","busyProgress","active","displayName","propTypes","PropTypes","bool","oneOfType","string","node","onEnter","func","onLeave"],"sources":["../../../src/components/Button/Button.jsx"],"sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\n\nimport { styles } from '../../helpers';\nimport { Pressable, View } from '../../primitives';\nimport style from './Button.module.css';\n\nconst Button = ({\n busy,\n children,\n disabled,\n large,\n rounded,\n secondary,\n small,\n squared = false,\n tag = 'button',\n wide,\n onPress,\n ...others\n}) =>\n React.createElement(\n Pressable,\n {\n ...others,\n disabled: disabled || busy,\n tag,\n className: styles(\n style.button,\n busy && style.busy,\n large && style.large,\n small && style.small,\n rounded && style.rounded,\n squared && style.squared,\n secondary && style.secondary,\n secondary && (disabled || busy) && style.disabled,\n wide && style.wide,\n others.className,\n ),\n onPress: !disabled && !busy ? onPress : undefined,\n },\n <>\n {busy !== undefined && <View className={styles(style.busyProgress, busy && style.active)} />}\n {children}\n </>,\n );\n\nButton.displayName = 'Component:Button';\n\nButton.propTypes = {\n busy: PropTypes.bool,\n children: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),\n disabled: PropTypes.bool,\n large: PropTypes.bool,\n rounded: PropTypes.bool,\n secondary: PropTypes.bool,\n small: PropTypes.bool,\n squared: PropTypes.bool,\n tag: PropTypes.string,\n wide: PropTypes.bool,\n onEnter: PropTypes.func,\n onLeave: PropTypes.func,\n onPress: PropTypes.func,\n};\n\nexport { Button };\n"],"mappings":";;;;;;;AAAA;AACA;AAEA;AACA;AACA;AAAwC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAExC,IAAMA,MAAM,GAAG,SAATA,MAAM;EAAA,IACVC,IAAI,QAAJA,IAAI;IACJC,QAAQ,QAARA,QAAQ;IACRC,QAAQ,QAARA,QAAQ;IACRC,KAAK,QAALA,KAAK;IACLC,OAAO,QAAPA,OAAO;IACPC,SAAS,QAATA,SAAS;IACTC,KAAK,QAALA,KAAK;IAAA,oBACLC,OAAO;IAAPA,OAAO,6BAAG,KAAK;IAAA,gBACfC,GAAG;IAAHA,GAAG,yBAAG,QAAQ;IACdC,IAAI,QAAJA,IAAI;IACJC,OAAO,QAAPA,OAAO;IACJC,MAAM;EAAA,oBAETC,cAAK,CAACC,aAAa,CACjBC,qBAAS,kCAEJH,MAAM;IACTT,QAAQ,EAAEA,QAAQ,IAAIF,IAAI;IAC1BQ,GAAG,EAAHA,GAAG;IACHO,SAAS,EAAE,IAAAC,eAAM,EACfC,qBAAK,CAACC,MAAM,EACZlB,IAAI,IAAIiB,qBAAK,CAACjB,IAAI,EAClBG,KAAK,IAAIc,qBAAK,CAACd,KAAK,EACpBG,KAAK,IAAIW,qBAAK,CAACX,KAAK,EACpBF,OAAO,IAAIa,qBAAK,CAACb,OAAO,EACxBG,OAAO,IAAIU,qBAAK,CAACV,OAAO,EACxBF,SAAS,IAAIY,qBAAK,CAACZ,SAAS,EAC5BA,SAAS,KAAKH,QAAQ,IAAIF,IAAI,CAAC,IAAIiB,qBAAK,CAACf,QAAQ,EACjDO,IAAI,IAAIQ,qBAAK,CAACR,IAAI,EAClBE,MAAM,CAACI,SAAS,CACjB;IACDL,OAAO,EAAE,CAACR,QAAQ,IAAI,CAACF,IAAI,GAAGU,OAAO,GAAGS;EAAS,iBAEnD,4DACGnB,IAAI,KAAKmB,SAAS,iBAAI,6BAAC,gBAAI;IAAC,SAAS,EAAE,IAAAH,eAAM,EAACC,qBAAK,CAACG,YAAY,EAAEpB,IAAI,IAAIiB,qBAAK,CAACI,MAAM;EAAE,EAAG,EAC3FpB,QAAQ,CACR,CACJ;AAAA;AAAC;AAEJF,MAAM,CAACuB,WAAW,GAAG,kBAAkB;AAEvCvB,MAAM,CAACwB,SAAS,GAAG;EACjBvB,IAAI,EAAEwB,kBAAS,CAACC,IAAI;EACpBxB,QAAQ,EAAEuB,kBAAS,CAACE,SAAS,CAAC,CAACF,kBAAS,CAACG,MAAM,EAAEH,kBAAS,CAACI,IAAI,CAAC,CAAC;EACjE1B,QAAQ,EAAEsB,kBAAS,CAACC,IAAI;EACxBtB,KAAK,EAAEqB,kBAAS,CAACC,IAAI;EACrBrB,OAAO,EAAEoB,kBAAS,CAACC,IAAI;EACvBpB,SAAS,EAAEmB,kBAAS,CAACC,IAAI;EACzBnB,KAAK,EAAEkB,kBAAS,CAACC,IAAI;EACrBlB,OAAO,EAAEiB,kBAAS,CAACC,IAAI;EACvBjB,GAAG,EAAEgB,kBAAS,CAACG,MAAM;EACrBlB,IAAI,EAAEe,kBAAS,CAACC,IAAI;EACpBI,OAAO,EAAEL,kBAAS,CAACM,IAAI;EACvBC,OAAO,EAAEP,kBAAS,CAACM,IAAI;EACvBpB,OAAO,EAAEc,kBAAS,CAACM;AACrB,CAAC"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
border-radius: var(--mirai-ui-button-radius);
|
|
5
5
|
color: var(--mirai-ui-button-color);
|
|
6
6
|
display: flex;
|
|
7
|
-
font-family: var(--mirai-ui-
|
|
7
|
+
font-family: var(--mirai-ui-font);
|
|
8
8
|
font-size: var(--mirai-ui-font-size-action);
|
|
9
9
|
font-weight: var(--mirai-ui-button-font-weight);
|
|
10
10
|
justify-content: center;
|
|
@@ -1,31 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
|
|
5
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
8
6
|
exports.default = exports.Story = void 0;
|
|
9
|
-
|
|
10
7
|
var React = _interopRequireWildcard(require("react"));
|
|
11
|
-
|
|
12
8
|
var _Button = require("./Button");
|
|
13
|
-
|
|
14
9
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
15
|
-
|
|
16
10
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
17
|
-
|
|
18
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
19
|
-
|
|
11
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
12
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
13
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
14
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
20
15
|
var _default = {
|
|
21
16
|
title: 'Components'
|
|
22
17
|
};
|
|
23
18
|
exports.default = _default;
|
|
24
|
-
|
|
25
19
|
var Story = function Story(props) {
|
|
26
20
|
return /*#__PURE__*/React.createElement(_Button.Button, props);
|
|
27
21
|
};
|
|
28
|
-
|
|
29
22
|
exports.Story = Story;
|
|
30
23
|
Story.storyName = 'Button';
|
|
31
24
|
Story.args = _defineProperty({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.stories.js","names":["title","Story","props","storyName","args","busy","children","disabled","large","rounded","secondary","small","squared","tag","wide","argTypes","onEnter","action","onLeave","onPress"],"sources":["../../../src/components/Button/Button.stories.jsx"],"sourcesContent":["import * as React from 'react';\n\nimport { Button } from './Button';\n\nexport default { title: 'Components' };\n\nexport const Story = (props) => <Button {...props} />;\n\nStory.storyName = 'Button';\n\nStory.args = {\n busy: false,\n children: 'children',\n disabled: false,\n large: false,\n rounded: false,\n secondary: false,\n small: false,\n squared: false,\n tag: 'button',\n wide: false,\n ['data-testid']: 'test-story',\n};\n\nStory.argTypes = {\n onEnter: { action: 'onEnter' },\n onLeave: { action: 'onLeave' },\n onPress: { action: 'onPress' },\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Button.stories.js","names":["title","Story","props","storyName","args","busy","children","disabled","large","rounded","secondary","small","squared","tag","wide","argTypes","onEnter","action","onLeave","onPress"],"sources":["../../../src/components/Button/Button.stories.jsx"],"sourcesContent":["import * as React from 'react';\n\nimport { Button } from './Button';\n\nexport default { title: 'Components' };\n\nexport const Story = (props) => <Button {...props} />;\n\nStory.storyName = 'Button';\n\nStory.args = {\n busy: false,\n children: 'children',\n disabled: false,\n large: false,\n rounded: false,\n secondary: false,\n small: false,\n squared: false,\n tag: 'button',\n wide: false,\n ['data-testid']: 'test-story',\n};\n\nStory.argTypes = {\n onEnter: { action: 'onEnter' },\n onLeave: { action: 'onLeave' },\n onPress: { action: 'onPress' },\n};\n"],"mappings":";;;;;;AAAA;AAEA;AAAkC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,eAEnB;EAAEA,KAAK,EAAE;AAAa,CAAC;AAAA;AAE/B,IAAMC,KAAK,GAAG,SAARA,KAAK,CAAIC,KAAK;EAAA,oBAAK,oBAAC,cAAM,EAAKA,KAAK,CAAI;AAAA;AAAC;AAEtDD,KAAK,CAACE,SAAS,GAAG,QAAQ;AAE1BF,KAAK,CAACG,IAAI;EACRC,IAAI,EAAE,KAAK;EACXC,QAAQ,EAAE,UAAU;EACpBC,QAAQ,EAAE,KAAK;EACfC,KAAK,EAAE,KAAK;EACZC,OAAO,EAAE,KAAK;EACdC,SAAS,EAAE,KAAK;EAChBC,KAAK,EAAE,KAAK;EACZC,OAAO,EAAE,KAAK;EACdC,GAAG,EAAE,QAAQ;EACbC,IAAI,EAAE;AAAK,GACV,aAAa,EAAG,YAAY,CAC9B;AAEDb,KAAK,CAACc,QAAQ,GAAG;EACfC,OAAO,EAAE;IAAEC,MAAM,EAAE;EAAU,CAAC;EAC9BC,OAAO,EAAE;IAAED,MAAM,EAAE;EAAU,CAAC;EAC9BE,OAAO,EAAE;IAAEF,MAAM,EAAE;EAAU;AAC/B,CAAC"}
|
|
@@ -3,9 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
|
|
7
6
|
var _Button = require("./Button");
|
|
8
|
-
|
|
9
7
|
Object.keys(_Button).forEach(function (key) {
|
|
10
8
|
if (key === "default" || key === "__esModule") return;
|
|
11
9
|
if (key in exports && exports[key] === _Button[key]) return;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../src/components/Button/index.js"],"sourcesContent":["export * from './Button';\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../src/components/Button/index.js"],"sourcesContent":["export * from './Button';\n"],"mappings":";;;;;AAAA;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA"}
|
|
@@ -1,68 +1,50 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
7
|
exports.Month = void 0;
|
|
7
|
-
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
-
|
|
10
9
|
var _react = _interopRequireDefault(require("react"));
|
|
11
|
-
|
|
12
10
|
var _helpers = require("../../helpers");
|
|
13
|
-
|
|
14
11
|
var _hooks = require("../../hooks");
|
|
15
|
-
|
|
16
12
|
var _primitives = require("../../primitives");
|
|
17
|
-
|
|
18
13
|
var _Calendar = require("./Calendar.constants");
|
|
19
|
-
|
|
20
14
|
var _CalendarModule = _interopRequireDefault(require("./Calendar.module.css"));
|
|
21
|
-
|
|
22
15
|
var _Calendar2 = require("./Calendar.Week");
|
|
23
|
-
|
|
24
16
|
var _Calendar3 = require("./Calendar.Weekdays");
|
|
25
|
-
|
|
26
17
|
var _helpers2 = require("./helpers");
|
|
27
|
-
|
|
28
18
|
var _excluded = ["focus", "instance", "selected", "disabledPast", "format", "from", "locale", "range", "to", "onChange", "onFocus", "onNext", "onPrevious"];
|
|
29
|
-
|
|
30
19
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
31
|
-
|
|
32
|
-
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
33
|
-
|
|
20
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
34
21
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
35
|
-
|
|
36
22
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
37
|
-
|
|
38
|
-
function
|
|
39
|
-
|
|
23
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
24
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
25
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
40
26
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
41
|
-
|
|
42
27
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
43
|
-
|
|
44
28
|
var Month = function Month(_ref) {
|
|
45
29
|
var focus = _ref.focus,
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
30
|
+
instance = _ref.instance,
|
|
31
|
+
selected = _ref.selected,
|
|
32
|
+
disabledPast = _ref.disabledPast,
|
|
33
|
+
format = _ref.format,
|
|
34
|
+
from = _ref.from,
|
|
35
|
+
locale = _ref.locale,
|
|
36
|
+
_ref$range = _ref.range,
|
|
37
|
+
range = _ref$range === void 0 ? false : _ref$range,
|
|
38
|
+
to = _ref.to,
|
|
39
|
+
_ref$onChange = _ref.onChange,
|
|
40
|
+
onChange = _ref$onChange === void 0 ? function () {} : _ref$onChange,
|
|
41
|
+
_ref$onFocus = _ref.onFocus,
|
|
42
|
+
onFocus = _ref$onFocus === void 0 ? function () {} : _ref$onFocus,
|
|
43
|
+
onNext = _ref.onNext,
|
|
44
|
+
onPrevious = _ref.onPrevious,
|
|
45
|
+
others = _objectWithoutProperties(_ref, _excluded);
|
|
63
46
|
var _useDevice = (0, _hooks.useDevice)(),
|
|
64
|
-
|
|
65
|
-
|
|
47
|
+
isDesktop = _useDevice.isDesktop;
|
|
66
48
|
var weekNumber = (0, _helpers2.getWeekNumber)(instance);
|
|
67
49
|
var testID = others['data-testid'];
|
|
68
50
|
return /*#__PURE__*/_react.default.createElement(_primitives.View, {
|
|
@@ -107,7 +89,6 @@ var Month = function Month(_ref) {
|
|
|
107
89
|
}));
|
|
108
90
|
}));
|
|
109
91
|
};
|
|
110
|
-
|
|
111
92
|
exports.Month = Month;
|
|
112
93
|
Month.displayName = 'Component:Calendar:Month';
|
|
113
94
|
Month.propTypes = {
|