@mirai/ui 1.0.54 → 1.0.56

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 (97) hide show
  1. package/README.md +27 -18
  2. package/build/components/Button/Button.js +4 -4
  3. package/build/components/Button/Button.js.map +1 -1
  4. package/build/components/Button/Button.module.css +16 -28
  5. package/build/components/Button/Button.stories.js +1 -1
  6. package/build/components/Button/Button.stories.js.map +1 -1
  7. package/build/components/Button/__tests__/__snapshots__/Button.test.js.snap +4 -4
  8. package/build/components/Calendar/Calendar.Month.js +6 -1
  9. package/build/components/Calendar/Calendar.Month.js.map +1 -1
  10. package/build/components/Calendar/Calendar.module.css +0 -12
  11. package/build/components/Calendar/Calendar.stories.js +125 -0
  12. package/build/components/Calendar/Calendar.stories.js.map +1 -0
  13. package/build/components/Calendar/__tests__/__snapshots__/Calendar.test.jsx.snap +216 -216
  14. package/build/components/Form/Form.stories.js +63 -0
  15. package/build/components/Form/Form.stories.js.map +1 -0
  16. package/build/components/InputDate/InputDate.module.css +0 -3
  17. package/build/components/InputDate/InputDate.stories.js +78 -0
  18. package/build/components/InputDate/InputDate.stories.js.map +1 -0
  19. package/build/components/InputNumber/InputNumber.js +4 -3
  20. package/build/components/InputNumber/InputNumber.js.map +1 -1
  21. package/build/components/InputNumber/InputNumber.module.css +0 -4
  22. package/build/components/InputNumber/InputNumber.stories.js +50 -0
  23. package/build/components/InputNumber/InputNumber.stories.js.map +1 -0
  24. package/build/components/InputNumber/__tests__/__snapshots__/InputNumber.test.js.snap +73 -73
  25. package/build/components/InputOption/InputOption.js +1 -1
  26. package/build/components/InputOption/InputOption.js.map +1 -1
  27. package/build/components/InputOption/InputOption.module.css +1 -7
  28. package/build/components/InputOption/InputOption.stories.js +58 -0
  29. package/build/components/InputOption/InputOption.stories.js.map +1 -0
  30. package/build/components/InputOption/__tests__/__snapshots__/InputOption.test.js.snap +2 -2
  31. package/build/components/InputSelect/InputSelect.stories.js +66 -0
  32. package/build/components/InputSelect/InputSelect.stories.js.map +1 -0
  33. package/build/components/InputSelect/__tests__/__snapshots__/InputSelect.test.js.snap +7 -7
  34. package/build/components/InputText/InputText.js +1 -1
  35. package/build/components/InputText/InputText.js.map +1 -1
  36. package/build/components/InputText/InputText.module.css +5 -16
  37. package/build/components/InputText/InputText.stories.js +97 -0
  38. package/build/components/InputText/InputText.stories.js.map +1 -0
  39. package/build/components/InputText/__tests__/__snapshots__/InputText.test.js.snap +2 -2
  40. package/build/components/Menu/Menu.module.css +0 -11
  41. package/build/components/Menu/Menu.stories.js +77 -0
  42. package/build/components/Menu/Menu.stories.js.map +1 -0
  43. package/build/components/Menu/__tests__/__snapshots__/Menu.test.jsx.snap +3 -3
  44. package/build/components/Modal/Modal.module.css +1 -11
  45. package/build/components/Modal/Modal.stories.js +3 -2
  46. package/build/components/Modal/Modal.stories.js.map +1 -1
  47. package/build/components/Modal/__tests__/__snapshots__/Modal.test.js.snap +6 -6
  48. package/build/components/Notification/Notification.js +19 -23
  49. package/build/components/Notification/Notification.js.map +1 -1
  50. package/build/components/Notification/Notification.module.css +22 -33
  51. package/build/components/Notification/Notification.stories.js +42 -0
  52. package/build/components/Notification/Notification.stories.js.map +1 -0
  53. package/build/components/Notification/__tests__/__snapshots__/Notification.test.js.snap +82 -127
  54. package/build/components/Table/Table.module.css +0 -12
  55. package/build/components/Table/Table.stories.js +95 -0
  56. package/build/components/Table/Table.stories.js.map +1 -0
  57. package/build/components/Table/__tests__/__snapshots__/Table.test.js.snap +25 -25
  58. package/build/components/Tooltip/Tooltip.module.css +0 -8
  59. package/build/components/Tooltip/Tooltip.stories.js +38 -0
  60. package/build/components/Tooltip/Tooltip.stories.js.map +1 -0
  61. package/build/hooks/useDevice.stories.js +57 -0
  62. package/build/hooks/useDevice.stories.js.map +1 -0
  63. package/build/primitives/Checkbox/Checkbox.module.css +0 -9
  64. package/build/primitives/Icon/Icon.js +13 -4
  65. package/build/primitives/Icon/Icon.js.map +1 -1
  66. package/build/primitives/Icon/Icon.module.css +49 -8
  67. package/build/primitives/Icon/Icon.stories.js +5 -1
  68. package/build/primitives/Icon/Icon.stories.js.map +1 -1
  69. package/build/primitives/Icon/__tests__/__snapshots__/Icon.test.js.snap +5 -5
  70. package/build/primitives/Input/Input.module.css +0 -6
  71. package/build/primitives/Input/Input.stories.js +8 -1
  72. package/build/primitives/Input/Input.stories.js.map +1 -1
  73. package/build/primitives/Layer/Layer.module.css +0 -4
  74. package/build/primitives/Layer/Layer.stories.js +44 -0
  75. package/build/primitives/Layer/Layer.stories.js.map +1 -0
  76. package/build/primitives/Pressable/Pressable.stories.js +47 -0
  77. package/build/primitives/Pressable/Pressable.stories.js.map +1 -0
  78. package/build/primitives/Radio/Radio.module.css +0 -8
  79. package/build/primitives/Radio/Radio.stories.js +41 -0
  80. package/build/primitives/Radio/Radio.stories.js.map +1 -0
  81. package/build/primitives/ScrollView/ScrollView.stories.js +87 -0
  82. package/build/primitives/ScrollView/ScrollView.stories.js.map +1 -0
  83. package/build/primitives/Select/Select.stories.js +73 -0
  84. package/build/primitives/Select/Select.stories.js.map +1 -0
  85. package/build/primitives/Switch/Switch.module.css +0 -10
  86. package/build/primitives/Switch/Switch.stories.js +39 -0
  87. package/build/primitives/Switch/Switch.stories.js.map +1 -0
  88. package/build/primitives/Text/Text.js +6 -5
  89. package/build/primitives/Text/Text.js.map +1 -1
  90. package/build/primitives/Text/Text.module.css +21 -8
  91. package/build/primitives/Text/Text.stories.js +40 -0
  92. package/build/primitives/Text/Text.stories.js.map +1 -0
  93. package/build/primitives/Text/__tests__/__snapshots__/Text.test.js.snap +40 -10
  94. package/build/primitives/View/View.stories.js +39 -0
  95. package/build/primitives/View/View.stories.js.map +1 -0
  96. package/build/theme/default.theme.css +172 -12
  97. package/package.json +4 -3
package/README.md CHANGED
@@ -131,6 +131,11 @@ const MyComponent = () => {
131
131
 
132
132
  ```css
133
133
  --mirai-ui-layer-content: var(--mirai-ui-layer-XL);
134
+ /* position (z-index) */
135
+ --mirai-ui-layer-S: 0;
136
+ --mirai-ui-layer-M: 1;
137
+ --mirai-ui-layer-L: 10;
138
+ --mirai-ui-layer-XL: 100;
134
139
  ```
135
140
 
136
141
  ### Pressable
@@ -227,8 +232,8 @@ A primitive for displaying text. It receives the following props:
227
232
  - `bold:boolean` modifying font-weight
228
233
  - `children:string`
229
234
  - `headline:boolean` modifying font-size
235
+ - `level:number` assign the level of heading (1, 2, 3 or 4)
230
236
  - `small:boolean` modifying font-size
231
- - `subheadline:boolean` modifying font-size
232
237
  - `tag:string` html tag of resulting element
233
238
  - `upperCase:boolean` switching text to upper case
234
239
 
@@ -278,7 +283,7 @@ A button component that receives the following props:
278
283
  - `children:node|string`
279
284
  - `disabled:boolean` applying 'disabled' attribute
280
285
  - `large:boolean` modifying the button size
281
- - `outlined:boolean` modifying the button appearance using an outlined line
286
+ - `secondary:boolean` modifying the button appearance using a secondary _variant_.
282
287
  - `rounded:boolean` if true will use the theme border-radius variable for round the corners
283
288
  - `small:boolean` modifying the button size
284
289
  - `squared:boolean` if true gives rectangular shape to the button (false by default)
@@ -315,7 +320,7 @@ const MyComponent = (props) => {
315
320
  --mirai-ui-button-disabled-color: var(--mirai-ui-content-light);
316
321
  --mirai-ui-button-font: var(--mirai-ui-font);
317
322
  --mirai-ui-button-font-weight: var(--mirai-ui-font-weight);
318
- --mirai-ui-button-outlined-background: var(--mirai-ui-base);
323
+ --mirai-ui-button-secondary-background: var(--mirai-ui-base);
319
324
  --mirai-ui-button-padding-y: var(--mirai-ui-space-S);
320
325
  --mirai-ui-button-padding-x: var(--mirai-ui-space-L);
321
326
  --mirai-ui-button-radius: var(--mirai-ui-border-radius);
@@ -520,7 +525,7 @@ const MyComponent = (props) => {
520
525
  --mirai-ui-input-text-disabled: var(--mirai-ui-content-border);
521
526
  --mirai-ui-input-text-error: var(--mirai-ui-error);
522
527
  --mirai-ui-input-text-focus: var(--mirai-ui-accent);
523
- --mirai-ui-input-text-icon: var(--mirai-ui-icon);
528
+ --mirai-ui-input-text-icon: var(--mirai-ui-font-size-headline-4);
524
529
  --mirai-ui-input-text-padding-x: var(--mirai-ui-space-S);
525
530
  --mirai-ui-input-text-padding-y: var(--mirai-ui-space-S);
526
531
  --mirai-ui-input-text-radius: var(--mirai-ui-border-radius);
@@ -561,7 +566,7 @@ const MyComponent = () => {
561
566
  visible={visible}
562
567
  onPress={(value, event) => console.log('<Menu>::onPress', value, event)}
563
568
  >
564
- <Button squared outlined onPress={() => setVisible(!visible)}>
569
+ <Button squared secondary onPress={() => setVisible(!visible)}>
565
570
  <Icon name="Plus" />
566
571
  </Button>
567
572
  </Menu>;
@@ -612,7 +617,7 @@ const MyComponent = (props) => {
612
617
  ```css
613
618
  --mirai-ui-modal-background: var(--mirai-ui-base);
614
619
  --mirai-ui-modal-header-padding: var(--mirai-ui-space-M);
615
- --mirai-ui-modal-icon: var(--mirai-ui-space-L);
620
+ --mirai-ui-modal-icon: var(--mirai-ui-font-size-headline-2);
616
621
  --mirai-ui-modal-layer: var(--mirai-ui-layer-L);
617
622
  --mirai-ui-modal-overflow: rgba(0, 0, 0, 0.15);
618
623
  --mirai-ui-modal-shadow: var(--mirai-ui-shadow);
@@ -707,24 +712,31 @@ Theme.shadeColors()
707
712
  --mirai-ui-font-weight: 400;
708
713
  --mirai-ui-font-bold: Arial, Regular;
709
714
  --mirai-ui-font-bold-weight: 700;
710
- --mirai-ui-font-size-headline: 18px;
711
- --mirai-ui-font-size-subheadline: 16px;
715
+ --mirai-ui-font-size-headline-1: 32px;
716
+ --mirai-ui-line-height-headline-1: 38px;
717
+ --mirai-ui-font-size-headline-2: 24px;
718
+ --mirai-ui-line-height-headline-2: 25px;
719
+ --mirai-ui-font-size-headline-3: 18px;
720
+ --mirai-ui-line-height-headline-3: 22px;
721
+ --mirai-ui-font-size-headline-4: 16px;
722
+ --mirai-ui-line-height-headline-4: 19px;
712
723
  --mirai-ui-font-size-paragraph: 14px;
724
+ --mirai-ui-line-height-paragraph: 22px;
713
725
  --mirai-ui-font-size-action: 14px;
726
+ --mirai-ui-line-height-action: 20px;
714
727
  --mirai-ui-font-size-small: 12px;
715
- --mirai-ui-line-height: 24px;
728
+ --mirai-ui-line-height-small: 18px;
716
729
  --mirai-ui-text-direction: ltr;
717
730
  --mirai-ui-text-align: left;
718
731
 
719
732
  /* palette */
720
733
  --mirai-ui-base: #ffffff;
721
- /* !TODO: Change to -text ------------------------------------------------- */
734
+
722
735
  --mirai-ui-content: #484848;
723
736
  --mirai-ui-content-background: #f6f6f6;
724
737
  --mirai-ui-content-border: #e4e4e4;
725
738
  --mirai-ui-content-dark: #202020;
726
739
  --mirai-ui-content-light: #999999;
727
- /* !TODO ------------------------------------------------------------------ */
728
740
 
729
741
  --mirai-ui-accent: #3978c5;
730
742
  --mirai-ui-accent-background: #e9f1fc;
@@ -758,12 +770,6 @@ Theme.shadeColors()
758
770
  --mirai-ui-space-XL: 48px;
759
771
  --mirai-ui-space-XXL: 64px;
760
772
 
761
- /* layer */
762
- --mirai-ui-layer-S: 0;
763
- --mirai-ui-layer-M: 1;
764
- --mirai-ui-layer-L: 10;
765
- --mirai-ui-layer-XL: 100;
766
-
767
773
  /* motion */
768
774
  --mirai-ui-motion-collapse: 200ms;
769
775
  --mirai-ui-motion-expand: 300ms;
@@ -773,8 +779,11 @@ Theme.shadeColors()
773
779
  --mirai-ui-input-font-size: var(--mirai-ui-font-size-paragraph);
774
780
  --mirai-ui-input-min-height: var(--mirai-ui-space-XL);
775
781
 
776
- /* defaults */
782
+ /* border */
777
783
  --mirai-ui-border-radius: 4px;
784
+ --mirai-ui-border-width: 1px;
785
+
786
+ /* shadow */
778
787
  --mirai-ui-shadow: 0 0 var(--mirai-ui-space-XS) var(--mirai-ui-content-border);
779
788
  ```
780
789
 
@@ -15,7 +15,7 @@ var _primitives = require("../../primitives");
15
15
 
16
16
  var _ButtonModule = _interopRequireDefault(require("./Button.module.css"));
17
17
 
18
- var _excluded = ["busy", "children", "disabled", "large", "outlined", "rounded", "small", "squared", "tag", "wide", "onPress"];
18
+ var _excluded = ["busy", "children", "disabled", "large", "rounded", "secondary", "small", "squared", "tag", "wide", "onPress"];
19
19
 
20
20
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
21
21
 
@@ -34,8 +34,8 @@ var Button = function Button(_ref) {
34
34
  children = _ref.children,
35
35
  disabled = _ref.disabled,
36
36
  large = _ref.large,
37
- outlined = _ref.outlined,
38
37
  rounded = _ref.rounded,
38
+ secondary = _ref.secondary,
39
39
  small = _ref.small,
40
40
  _ref$squared = _ref.squared,
41
41
  squared = _ref$squared === void 0 ? false : _ref$squared,
@@ -48,7 +48,7 @@ var Button = function Button(_ref) {
48
48
  return /*#__PURE__*/_react.default.createElement(_primitives.Pressable, _objectSpread(_objectSpread({}, others), {}, {
49
49
  disabled: disabled || busy,
50
50
  tag: tag,
51
- className: (0, _helpers.styles)(_ButtonModule.default.button, busy && _ButtonModule.default.busy, large && _ButtonModule.default.large, small && _ButtonModule.default.small, rounded && _ButtonModule.default.rounded, squared && _ButtonModule.default.squared, outlined && _ButtonModule.default.outlined, outlined && (disabled || busy) && _ButtonModule.default.disabled, wide && _ButtonModule.default.wide, others.className),
51
+ className: (0, _helpers.styles)(_ButtonModule.default.button, busy && _ButtonModule.default.busy, large && _ButtonModule.default.large, small && _ButtonModule.default.small, rounded && _ButtonModule.default.rounded, squared && _ButtonModule.default.squared, secondary && _ButtonModule.default.secondary, secondary && (disabled || busy) && _ButtonModule.default.disabled, wide && _ButtonModule.default.wide, others.className),
52
52
  onPress: !disabled && !busy ? onPress : undefined
53
53
  }), /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, busy !== undefined && /*#__PURE__*/_react.default.createElement(_primitives.View, {
54
54
  className: (0, _helpers.styles)(_ButtonModule.default.busyProgress, busy && _ButtonModule.default.active)
@@ -62,8 +62,8 @@ Button.propTypes = {
62
62
  children: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.node]),
63
63
  disabled: _propTypes.default.bool,
64
64
  large: _propTypes.default.bool,
65
- outlined: _propTypes.default.bool,
66
65
  rounded: _propTypes.default.bool,
66
+ secondary: _propTypes.default.bool,
67
67
  small: _propTypes.default.bool,
68
68
  squared: _propTypes.default.bool,
69
69
  tag: _propTypes.default.string,
@@ -1 +1 @@
1
- {"version":3,"file":"Button.js","names":["Button","busy","children","disabled","large","outlined","rounded","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 outlined,\n rounded,\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 outlined && style.outlined,\n outlined && (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 outlined: PropTypes.bool,\n rounded: 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;;;;;;;;;;;;;;;;AAEA,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CAACsB,WAAP,GAAqB,kBAArB;AAEAtB,MAAM,CAACuB,SAAP,GAAmB;EACjBtB,IAAI,EAAEuB,mBAAUC,IADC;EAEjBvB,QAAQ,EAAEsB,mBAAUE,SAAV,CAAoB,CAACF,mBAAUG,MAAX,EAAmBH,mBAAUI,IAA7B,CAApB,CAFO;EAGjBzB,QAAQ,EAAEqB,mBAAUC,IAHH;EAIjBrB,KAAK,EAAEoB,mBAAUC,IAJA;EAKjBpB,QAAQ,EAAEmB,mBAAUC,IALH;EAMjBnB,OAAO,EAAEkB,mBAAUC,IANF;EAOjBlB,KAAK,EAAEiB,mBAAUC,IAPA;EAQjBjB,OAAO,EAAEgB,mBAAUC,IARF;EASjBhB,GAAG,EAAEe,mBAAUG,MATE;EAUjBjB,IAAI,EAAEc,mBAAUC,IAVC;EAWjBI,OAAO,EAAEL,mBAAUM,IAXF;EAYjBC,OAAO,EAAEP,mBAAUM,IAZF;EAajBnB,OAAO,EAAEa,mBAAUM;AAbF,CAAnB"}
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;;AACA;;AAEA;;AACA;;AACA;;;;;;;;;;;;;;;;AAEA,IAAMA,MAAM,GAAG,SAATA,MAAS;EAAA,IACbC,IADa,QACbA,IADa;EAAA,IAEbC,QAFa,QAEbA,QAFa;EAAA,IAGbC,QAHa,QAGbA,QAHa;EAAA,IAIbC,KAJa,QAIbA,KAJa;EAAA,IAKbC,OALa,QAKbA,OALa;EAAA,IAMbC,SANa,QAMbA,SANa;EAAA,IAObC,KAPa,QAObA,KAPa;EAAA,wBAQbC,OARa;EAAA,IAQbA,OARa,6BAQH,KARG;EAAA,oBASbC,GATa;EAAA,IASbA,GATa,yBASP,QATO;EAAA,IAUbC,IAVa,QAUbA,IAVa;EAAA,IAWbC,OAXa,QAWbA,OAXa;EAAA,IAYVC,MAZU;;EAAA,oBAcbC,eAAMC,aAAN,CACEC,qBADF,kCAGOH,MAHP;IAIIT,QAAQ,EAAEA,QAAQ,IAAIF,IAJ1B;IAKIQ,GAAG,EAAHA,GALJ;IAMIO,SAAS,EAAE,qBACTC,sBAAMC,MADG,EAETjB,IAAI,IAAIgB,sBAAMhB,IAFL,EAGTG,KAAK,IAAIa,sBAAMb,KAHN,EAITG,KAAK,IAAIU,sBAAMV,KAJN,EAKTF,OAAO,IAAIY,sBAAMZ,OALR,EAMTG,OAAO,IAAIS,sBAAMT,OANR,EAOTF,SAAS,IAAIW,sBAAMX,SAPV,EAQTA,SAAS,KAAKH,QAAQ,IAAIF,IAAjB,CAAT,IAAmCgB,sBAAMd,QARhC,EASTO,IAAI,IAAIO,sBAAMP,IATL,EAUTE,MAAM,CAACI,SAVE,CANf;IAkBIL,OAAO,EAAE,CAACR,QAAD,IAAa,CAACF,IAAd,GAAqBU,OAArB,GAA+BQ;EAlB5C,iBAoBE,4DACGlB,IAAI,KAAKkB,SAAT,iBAAsB,6BAAC,gBAAD;IAAM,SAAS,EAAE,qBAAOF,sBAAMG,YAAb,EAA2BnB,IAAI,IAAIgB,sBAAMI,MAAzC;EAAjB,EADzB,EAEGnB,QAFH,CApBF,CAda;AAAA,CAAf;;;AAwCAF,MAAM,CAACsB,WAAP,GAAqB,kBAArB;AAEAtB,MAAM,CAACuB,SAAP,GAAmB;EACjBtB,IAAI,EAAEuB,mBAAUC,IADC;EAEjBvB,QAAQ,EAAEsB,mBAAUE,SAAV,CAAoB,CAACF,mBAAUG,MAAX,EAAmBH,mBAAUI,IAA7B,CAApB,CAFO;EAGjBzB,QAAQ,EAAEqB,mBAAUC,IAHH;EAIjBrB,KAAK,EAAEoB,mBAAUC,IAJA;EAKjBpB,OAAO,EAAEmB,mBAAUC,IALF;EAMjBnB,SAAS,EAAEkB,mBAAUC,IANJ;EAOjBlB,KAAK,EAAEiB,mBAAUC,IAPA;EAQjBjB,OAAO,EAAEgB,mBAAUC,IARF;EASjBhB,GAAG,EAAEe,mBAAUG,MATE;EAUjBjB,IAAI,EAAEc,mBAAUC,IAVC;EAWjBI,OAAO,EAAEL,mBAAUM,IAXF;EAYjBC,OAAO,EAAEP,mBAAUM,IAZF;EAajBnB,OAAO,EAAEa,mBAAUM;AAbF,CAAnB"}
@@ -1,21 +1,3 @@
1
- :root {
2
- --mirai-ui-button-background: var(--mirai-ui-accent);
3
- --mirai-ui-button-busy-width: 0%;
4
- --mirai-ui-button-busy-motion: calc(var(--mirai-ui-motion-expand) * 10);
5
- --mirai-ui-button-color: var(--mirai-ui-base);
6
- --mirai-ui-button-color-active: rgba(255, 255, 255, 0.2);
7
- --mirai-ui-button-color-focus: var(--mirai-ui-content);
8
- --mirai-ui-button-disabled-background: var(--mirai-ui-content-border);
9
- --mirai-ui-button-disabled-color: var(--mirai-ui-content-light);
10
- --mirai-ui-button-font: var(--mirai-ui-font);
11
- --mirai-ui-button-font-weight: var(--mirai-ui-font-weight);
12
- --mirai-ui-button-outlined-background: var(--mirai-ui-base);
13
- --mirai-ui-button-padding-y: var(--mirai-ui-space-S);
14
- --mirai-ui-button-padding-x: var(--mirai-ui-space-L);
15
- --mirai-ui-button-radius: var(--mirai-ui-border-radius);
16
- --mirai-ui-button-squared: calc(var(--mirai-ui-space-M) * 2);
17
- }
18
-
19
1
  .button {
20
2
  align-items: center;
21
3
  background-color: var(--mirai-ui-button-background);
@@ -48,7 +30,7 @@
48
30
  }
49
31
  }
50
32
 
51
- .outlined .busyProgress {
33
+ .secondary .busyProgress {
52
34
  background-color: var(--mirai-ui-button-background);
53
35
  }
54
36
 
@@ -68,24 +50,30 @@
68
50
  animation-timing-function: var(--mirai-ui-motion-easing);
69
51
  }
70
52
 
71
- .button:not(:disabled):active {
53
+ .button:not(.secondary):not(:disabled):active {
72
54
  box-shadow: inset 0 0 var(--mirai-ui-space-XL) var(--mirai-ui-space-XL) var(--mirai-ui-button-color-active);
73
55
  }
74
56
 
57
+ .button.secondary:not(:disabled):active {
58
+ background-color: var(--mirai-ui-button-color-focus);
59
+ box-shadow: none;
60
+ color: var(--mirai-ui-button-color);
61
+ }
62
+
75
63
  .large:not(.squared) {
76
64
  font-size: var(--mirai-ui-font-size-headline);
77
65
  padding: var(--mirai-ui-button-padding-y)
78
66
  calc(var(--mirai-ui-button-padding-x) + calc(var(--mirai-ui-button-padding-y) / 2));
79
67
  }
80
68
 
81
- .outlined {
82
- background-color: var(--mirai-ui-button-outlined-background);
83
- border: solid var(--mirai-ui-border-width) var(--mirai-ui-button-background);
69
+ .secondary {
70
+ background-color: var(--mirai-ui-button-secondary-background);
71
+ box-shadow: inset 0 0 0 var(--mirai-ui-border-width) var(--mirai-ui-button-background);
84
72
  color: var(--mirai-ui-button-background);
85
73
  }
86
74
 
87
- .outlined.disabled:not(.busy) {
88
- border-color: var(--mirai-ui-button-disabled-background);
75
+ .secondary.disabled:not(.busy) {
76
+ box-shadow: none;
89
77
  }
90
78
 
91
79
  .rounded {
@@ -109,12 +97,12 @@
109
97
  }
110
98
 
111
99
  @media only screen and (min-width: 600px) {
112
- .button:not(:disabled).outlined:hover {
113
- border-color: var(--mirai-ui-button-color-hover);
100
+ .button:not(:disabled).secondary:hover:not(:active) {
101
+ box-shadow: inset 0 0 0 var(--mirai-ui-border-width) var(--mirai-ui-button-color-focus);
114
102
  color: var(--mirai-ui-button-color-focus);
115
103
  }
116
104
 
117
- .button:not(:disabled):not(.outlined):hover {
105
+ .button:not(:disabled):not(.secondary):hover {
118
106
  background-color: var(--mirai-ui-button-color-focus);
119
107
  }
120
108
  }
@@ -31,8 +31,8 @@ Story.args = {
31
31
  children: 'children',
32
32
  disabled: false,
33
33
  large: false,
34
- outlined: false,
35
34
  rounded: false,
35
+ secondary: false,
36
36
  small: false,
37
37
  squared: false,
38
38
  tag: 'button',
@@ -1 +1 @@
1
- {"version":3,"file":"Button.stories.js","names":["title","Story","props","storyName","args","busy","children","disabled","large","outlined","rounded","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 outlined: false,\n rounded: false,\n small: false,\n squared: false,\n tag: 'button',\n wide: false,\n};\n\nStory.argTypes = {\n onEnter: { action: 'onEnter' },\n onLeave: { action: 'onLeave' },\n onPress: { action: 'onPress' },\n};\n"],"mappings":";;;;;;;;;AAAA;;AAEA;;;;;;eAEe;EAAEA,KAAK,EAAE;AAAT,C;;;AAER,IAAMC,KAAK,GAAG,SAARA,KAAQ,CAACC,KAAD;EAAA,oBAAW,oBAAC,cAAD,EAAYA,KAAZ,CAAX;AAAA,CAAd;;;AAEPD,KAAK,CAACE,SAAN,GAAkB,QAAlB;AAEAF,KAAK,CAACG,IAAN,GAAa;EACXC,IAAI,EAAE,KADK;EAEXC,QAAQ,EAAE,UAFC;EAGXC,QAAQ,EAAE,KAHC;EAIXC,KAAK,EAAE,KAJI;EAKXC,QAAQ,EAAE,KALC;EAMXC,OAAO,EAAE,KANE;EAOXC,KAAK,EAAE,KAPI;EAQXC,OAAO,EAAE,KARE;EASXC,GAAG,EAAE,QATM;EAUXC,IAAI,EAAE;AAVK,CAAb;AAaAb,KAAK,CAACc,QAAN,GAAiB;EACfC,OAAO,EAAE;IAAEC,MAAM,EAAE;EAAV,CADM;EAEfC,OAAO,EAAE;IAAED,MAAM,EAAE;EAAV,CAFM;EAGfE,OAAO,EAAE;IAAEF,MAAM,EAAE;EAAV;AAHM,CAAjB"}
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};\n\nStory.argTypes = {\n onEnter: { action: 'onEnter' },\n onLeave: { action: 'onLeave' },\n onPress: { action: 'onPress' },\n};\n"],"mappings":";;;;;;;;;AAAA;;AAEA;;;;;;eAEe;EAAEA,KAAK,EAAE;AAAT,C;;;AAER,IAAMC,KAAK,GAAG,SAARA,KAAQ,CAACC,KAAD;EAAA,oBAAW,oBAAC,cAAD,EAAYA,KAAZ,CAAX;AAAA,CAAd;;;AAEPD,KAAK,CAACE,SAAN,GAAkB,QAAlB;AAEAF,KAAK,CAACG,IAAN,GAAa;EACXC,IAAI,EAAE,KADK;EAEXC,QAAQ,EAAE,UAFC;EAGXC,QAAQ,EAAE,KAHC;EAIXC,KAAK,EAAE,KAJI;EAKXC,OAAO,EAAE,KALE;EAMXC,SAAS,EAAE,KANA;EAOXC,KAAK,EAAE,KAPI;EAQXC,OAAO,EAAE,KARE;EASXC,GAAG,EAAE,QATM;EAUXC,IAAI,EAAE;AAVK,CAAb;AAaAb,KAAK,CAACc,QAAN,GAAiB;EACfC,OAAO,EAAE;IAAEC,MAAM,EAAE;EAAV,CADM;EAEfC,OAAO,EAAE;IAAED,MAAM,EAAE;EAAV,CAFM;EAGfE,OAAO,EAAE;IAAEF,MAAM,EAAE;EAAV;AAHM,CAAjB"}
@@ -45,10 +45,10 @@ exports[`component:<Button> prop:large 1`] = `
45
45
  </DocumentFragment>
46
46
  `;
47
47
 
48
- exports[`component:<Button> prop:outlined && prop:busy 1`] = `
48
+ exports[`component:<Button> prop:secondary && prop:busy 1`] = `
49
49
  <DocumentFragment>
50
50
  <button
51
- class="pressable button busy outlined disabled"
51
+ class="pressable button busy secondary disabled"
52
52
  disabled=""
53
53
  >
54
54
  <div
@@ -59,10 +59,10 @@ exports[`component:<Button> prop:outlined && prop:busy 1`] = `
59
59
  </DocumentFragment>
60
60
  `;
61
61
 
62
- exports[`component:<Button> prop:outlined 1`] = `
62
+ exports[`component:<Button> prop:secondary 1`] = `
63
63
  <DocumentFragment>
64
64
  <button
65
- class="pressable button outlined"
65
+ class="pressable button secondary"
66
66
  >
67
67
  children
68
68
  </button>
@@ -74,15 +74,20 @@ var Month = function Month(_ref) {
74
74
  onPress: onPrevious,
75
75
  "data-testid": testID ? "".concat(testID, "-previous") : undefined
76
76
  }, /*#__PURE__*/_react.default.createElement(_primitives.Icon, {
77
+ headline: true,
78
+ level: 4,
77
79
  name: "Left"
78
80
  })), /*#__PURE__*/_react.default.createElement(_primitives.Text, {
79
- subheadline: true,
81
+ headline: true,
82
+ level: 4,
80
83
  className: _CalendarModule.default.title
81
84
  }, (0, _helpers2.getHeader)(instance, locale)), onNext && /*#__PURE__*/_react.default.createElement(_primitives.Pressable, {
82
85
  onPress: onNext,
83
86
  className: _CalendarModule.default.pressable,
84
87
  "data-testid": testID ? "".concat(testID, "-next") : undefined
85
88
  }, /*#__PURE__*/_react.default.createElement(_primitives.Icon, {
89
+ headline: true,
90
+ level: 4,
86
91
  name: "Right"
87
92
  }))), isDesktop && /*#__PURE__*/_react.default.createElement(_Calendar3.Weekdays, {
88
93
  locale: locale
@@ -1 +1 @@
1
- {"version":3,"file":"Calendar.Month.js","names":["Month","focus","instance","selected","disabledPast","format","from","locale","range","to","onChange","onFocus","onNext","onPrevious","others","isDesktop","weekNumber","testID","style","month","className","header","undefined","title","pressable","VISIBLE_WEEKS","map","week","getMonth","getFullYear","displayName","propTypes","captions","PropTypes","shape","any","disabledDates","arrayOf","string","bool","instanceOf","Date","value","oneOfType","func"],"sources":["../../../src/components/Calendar/Calendar.Month.jsx"],"sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\n\nimport { styles } from '../../helpers';\nimport { useDevice } from '../../hooks';\nimport { Icon, Pressable, Text, View } from '../../primitives';\nimport { VISIBLE_WEEKS } from './Calendar.constants';\nimport style from './Calendar.module.css';\nimport { Week } from './Calendar.Week';\nimport { Weekdays } from './Calendar.Weekdays';\nimport { getHeader, getWeekNumber } from './helpers';\n\nexport const Month = ({\n focus,\n instance,\n selected,\n disabledPast,\n format,\n from,\n locale,\n range = false,\n to,\n onChange = () => {},\n onFocus = () => {},\n onNext,\n onPrevious,\n ...others\n}) => {\n const { isDesktop } = useDevice();\n const weekNumber = getWeekNumber(instance);\n\n const { ['data-testid']: testID } = others;\n\n return (\n <View className={styles(style.month, others.className)}>\n <View row className={style.header}>\n {onPrevious && (\n <Pressable onPress={onPrevious} data-testid={testID ? `${testID}-previous` : undefined}>\n <Icon name=\"Left\" />\n </Pressable>\n )}\n <Text subheadline className={style.title}>\n {getHeader(instance, locale)}\n </Text>\n {onNext && (\n <Pressable onPress={onNext} className={style.pressable} data-testid={testID ? `${testID}-next` : undefined}>\n <Icon name=\"Right\" />\n </Pressable>\n )}\n </View>\n\n {isDesktop && <Weekdays locale={locale} />}\n\n {VISIBLE_WEEKS.map((week) => (\n <Week\n {...{\n ...others,\n disabledPast,\n focus,\n format,\n from,\n locale,\n to,\n range,\n selected,\n }}\n key={week}\n month={instance.getMonth()}\n number={weekNumber + week}\n year={instance.getFullYear()}\n onFocus={onFocus}\n onPress={onChange}\n />\n ))}\n </View>\n );\n};\n\nMonth.displayName = 'Component:Calendar:Month';\n\nMonth.propTypes = {\n captions: PropTypes.shape({}),\n focus: PropTypes.any,\n instance: PropTypes.any,\n selected: PropTypes.any,\n disabledDates: PropTypes.arrayOf(PropTypes.string),\n disabledPast: PropTypes.bool,\n format: PropTypes.string,\n from: PropTypes.instanceOf(Date),\n locale: PropTypes.string,\n range: PropTypes.bool,\n to: PropTypes.instanceOf(Date),\n value: PropTypes.oneOfType([PropTypes.string, PropTypes.arrayOf(PropTypes.string)]),\n onChange: PropTypes.func,\n onFocus: PropTypes.func,\n onNext: PropTypes.func,\n onPrevious: PropTypes.func,\n};\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;;;;;AAEO,IAAMA,KAAK,GAAG,SAARA,KAAQ,OAef;EAAA,IAdJC,KAcI,QAdJA,KAcI;EAAA,IAbJC,QAaI,QAbJA,QAaI;EAAA,IAZJC,QAYI,QAZJA,QAYI;EAAA,IAXJC,YAWI,QAXJA,YAWI;EAAA,IAVJC,MAUI,QAVJA,MAUI;EAAA,IATJC,IASI,QATJA,IASI;EAAA,IARJC,MAQI,QARJA,MAQI;EAAA,sBAPJC,KAOI;EAAA,IAPJ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BjC,OAAO,EAAEsB,mBAAUW,IAdH;EAehBhC,MAAM,EAAEqB,mBAAUW,IAfF;EAgBhB/B,UAAU,EAAEoB,mBAAUW;AAhBN,CAAlB"}
1
+ {"version":3,"file":"Calendar.Month.js","names":["Month","focus","instance","selected","disabledPast","format","from","locale","range","to","onChange","onFocus","onNext","onPrevious","others","isDesktop","weekNumber","testID","style","month","className","header","undefined","title","pressable","VISIBLE_WEEKS","map","week","getMonth","getFullYear","displayName","propTypes","captions","PropTypes","shape","any","disabledDates","arrayOf","string","bool","instanceOf","Date","value","oneOfType","func"],"sources":["../../../src/components/Calendar/Calendar.Month.jsx"],"sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\n\nimport { styles } from '../../helpers';\nimport { useDevice } from '../../hooks';\nimport { Icon, Pressable, Text, View } from '../../primitives';\nimport { VISIBLE_WEEKS } from './Calendar.constants';\nimport style from './Calendar.module.css';\nimport { Week } from './Calendar.Week';\nimport { Weekdays } from './Calendar.Weekdays';\nimport { getHeader, getWeekNumber } from './helpers';\n\nexport const Month = ({\n focus,\n instance,\n selected,\n disabledPast,\n format,\n from,\n locale,\n range = false,\n to,\n onChange = () => {},\n onFocus = () => {},\n onNext,\n onPrevious,\n ...others\n}) => {\n const { isDesktop } = useDevice();\n const weekNumber = getWeekNumber(instance);\n\n const { ['data-testid']: testID } = others;\n\n return (\n <View className={styles(style.month, others.className)}>\n <View row className={style.header}>\n {onPrevious && (\n <Pressable onPress={onPrevious} data-testid={testID ? `${testID}-previous` : undefined}>\n <Icon headline level={4} name=\"Left\" />\n </Pressable>\n )}\n <Text headline level={4} className={style.title}>\n {getHeader(instance, locale)}\n </Text>\n {onNext && (\n <Pressable onPress={onNext} className={style.pressable} data-testid={testID ? `${testID}-next` : undefined}>\n <Icon headline level={4} name=\"Right\" />\n </Pressable>\n )}\n </View>\n\n {isDesktop && <Weekdays locale={locale} />}\n\n {VISIBLE_WEEKS.map((week) => (\n <Week\n {...{\n ...others,\n disabledPast,\n focus,\n format,\n from,\n locale,\n to,\n range,\n selected,\n }}\n key={week}\n month={instance.getMonth()}\n number={weekNumber + week}\n year={instance.getFullYear()}\n onFocus={onFocus}\n onPress={onChange}\n />\n ))}\n </View>\n );\n};\n\nMonth.displayName = 'Component:Calendar:Month';\n\nMonth.propTypes = {\n captions: PropTypes.shape({}),\n focus: PropTypes.any,\n instance: PropTypes.any,\n selected: PropTypes.any,\n disabledDates: PropTypes.arrayOf(PropTypes.string),\n disabledPast: PropTypes.bool,\n format: PropTypes.string,\n from: PropTypes.instanceOf(Date),\n locale: PropTypes.string,\n range: PropTypes.bool,\n to: PropTypes.instanceOf(Date),\n value: PropTypes.oneOfType([PropTypes.string, PropTypes.arrayOf(PropTypes.string)]),\n onChange: PropTypes.func,\n onFocus: PropTypes.func,\n onNext: PropTypes.func,\n onPrevious: PropTypes.func,\n};\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;;;;;AAEO,IAAMA,KAAK,GAAG,SAARA,KAAQ,OAef;EAAA,IAdJC,KAcI,QAdJA,KAcI;EAAA,IAbJC,QAaI,QAbJA,QAaI;EAAA,IAZJC,QAYI,QAZJA,QAYI;EAAA,IAXJC,YAWI,QAXJA,YAWI;EAAA,IAVJC,MAUI,QAVJA,MAUI;EAAA,IATJC,IASI,QATJA,IASI;EAAA,IARJC,MAQI,QARJA,MAQI;EAAA,sBAPJC,KAOI;EAAA,IAPJA,KAOI,2BAPI,KAOJ;EAAA,IANJC,EAMI,QANJA,EAMI;EAAA,yBALJC,QAKI;EAAA,IALJA,QAKI,8BALO,YAAM,CAAE,CAKf;EAAA,wBAJJC,OAII;EAAA,IAJJA,OAII,6BAJM,YAAM,CAAE,CAId;EAAA,IAHJC,MAGI,QAHJA,MAGI;EAAA,IAFJC,UAEI,QAFJA,UAEI;EAAA,IADDC,MACC;;EACJ,iBAAsB,uBAAtB;EAAA,IAAQC,SAAR,cAAQA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light);
3
- --mirai-ui-calendar-cell: var(--mirai-ui-space-XL);
4
- --mirai-ui-calendar-highlight-color: var(--mirai-ui-accent);
5
- --mirai-ui-calendar-padding: var(--mirai-ui-space-XS);
6
- --mirai-ui-calendar-range-background: var(--mirai-ui-content-background);
7
- --mirai-ui-calendar-selected-background: var(--mirai-ui-accent);
8
- --mirai-ui-calendar-selected-color: var(--mirai-ui-base);
9
- --mirai-ui-calendar-weekday-color: var(--mirai-ui-content-light);
10
- --mirai-ui-calendar-week-margin: 2px;
11
- }
12
-
13
1
  .month {
14
2
  justify-content: flex-start;
15
3
  padding: var(--mirai-ui-calendar-padding);
@@ -0,0 +1,125 @@
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
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.default = exports.Story = void 0;
9
+
10
+ var _locale = require("@mirai/locale");
11
+
12
+ var React = _interopRequireWildcard(require("react"));
13
+
14
+ var _Calendar = require("./Calendar");
15
+
16
+ var _captions;
17
+
18
+ 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); }
19
+
20
+ 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; }
21
+
22
+ 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; }
23
+
24
+ var _default = {
25
+ title: 'Components'
26
+ };
27
+ exports.default = _default;
28
+
29
+ var Story = function Story(props) {
30
+ return /*#__PURE__*/React.createElement(_Calendar.Calendar, props);
31
+ };
32
+
33
+ exports.Story = Story;
34
+ var format = 'DD/MM/YYYY';
35
+ var today = new Date();
36
+ Story.storyName = 'Calendar';
37
+ Story.args = {
38
+ captions: (_captions = {}, _defineProperty(_captions, (0, _locale.dateFormat)((0, _locale.dateCalc)(today, 6, 'days'), {
39
+ format: format
40
+ }), '10.95$'), _defineProperty(_captions, (0, _locale.dateFormat)((0, _locale.dateCalc)(today, 8, 'days'), {
41
+ format: format
42
+ }), '129510.95$'), _defineProperty(_captions, (0, _locale.dateFormat)((0, _locale.dateCalc)(today, 16, 'days'), {
43
+ format: format
44
+ }), '10.95$'), _defineProperty(_captions, (0, _locale.dateFormat)((0, _locale.dateCalc)(today, 18, 'days'), {
45
+ format: format
46
+ }), '9.95$'), _captions),
47
+ disabledDates: [(0, _locale.dateFormat)((0, _locale.dateCalc)(today, 20, 'days'), {
48
+ format: format
49
+ }), (0, _locale.dateFormat)((0, _locale.dateCalc)(today, 21, 'days'), {
50
+ format: format
51
+ }), (0, _locale.dateFormat)((0, _locale.dateCalc)(today, 22, 'days'), {
52
+ format: format
53
+ }), (0, _locale.dateFormat)((0, _locale.dateCalc)(today, 23, 'days'), {
54
+ format: format
55
+ }), (0, _locale.dateFormat)((0, _locale.dateCalc)(today, 24, 'days'), {
56
+ format: format
57
+ })],
58
+ disabledPast: true,
59
+ format: format,
60
+ from: '',
61
+ highlights: [(0, _locale.dateFormat)((0, _locale.dateCalc)(today, 6, 'days'), {
62
+ format: format
63
+ }), (0, _locale.dateFormat)((0, _locale.dateCalc)(today, 10, 'days'), {
64
+ format: format
65
+ }), (0, _locale.dateFormat)((0, _locale.dateCalc)(today, 12, 'days'), {
66
+ format: format
67
+ }), (0, _locale.dateFormat)((0, _locale.dateCalc)(today, 14, 'days'), {
68
+ format: format
69
+ }), (0, _locale.dateFormat)((0, _locale.dateCalc)(today, 16, 'days'), {
70
+ format: format
71
+ })],
72
+ locale: 'es-ES',
73
+ months: 2,
74
+ range: true,
75
+ rangeMaxDays: 7,
76
+ rangeMinDays: 3,
77
+ to: (0, _locale.dateFormat)((0, _locale.dateCalc)(today, 6, 'months')),
78
+ value: [],
79
+ onChange: function onChange() {
80
+ var _console;
81
+
82
+ for (var _len = arguments.length, props = new Array(_len), _key = 0; _key < _len; _key++) {
83
+ props[_key] = arguments[_key];
84
+ }
85
+
86
+ return (_console = console).log.apply(_console, ['<Calendar>::onChange'].concat(props));
87
+ },
88
+ onFocus: function onFocus() {
89
+ var _console2;
90
+
91
+ for (var _len2 = arguments.length, props = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
92
+ props[_key2] = arguments[_key2];
93
+ }
94
+
95
+ return (_console2 = console).log.apply(_console2, ['<Calendar>::onFocus'].concat(props));
96
+ },
97
+ onNavigation: function onNavigation() {
98
+ var _console3;
99
+
100
+ for (var _len3 = arguments.length, props = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
101
+ props[_key3] = arguments[_key3];
102
+ }
103
+
104
+ return (_console3 = console).log.apply(_console3, ['<Calendar>::onNavigation'].concat(props));
105
+ },
106
+ onScroll: function onScroll() {
107
+ var _console4;
108
+
109
+ for (var _len4 = arguments.length, props = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
110
+ props[_key4] = arguments[_key4];
111
+ }
112
+
113
+ return (_console4 = console).log.apply(_console4, ['<Calendar>::onScroll'].concat(props));
114
+ }
115
+ };
116
+ Story.argTypes = {
117
+ locale: {
118
+ options: ['es-ES', 'en-GB', 'ja-JP', 'it-IT', 'pt-PT'],
119
+ control: {
120
+ type: 'select'
121
+ },
122
+ defaultValue: 'es-ES'
123
+ }
124
+ };
125
+ //# sourceMappingURL=Calendar.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Calendar.stories.js","names":["title","Story","props","format","today","Date","storyName","args","captions","disabledDates","disabledPast","from","highlights","locale","months","range","rangeMaxDays","rangeMinDays","to","value","onChange","console","log","onFocus","onNavigation","onScroll","argTypes","options","control","type","defaultValue"],"sources":["../../../src/components/Calendar/Calendar.stories.jsx"],"sourcesContent":["import { dateCalc, dateFormat } from '@mirai/locale';\nimport * as React from 'react';\n\nimport { Calendar } from './Calendar';\n\nexport default { title: 'Components' };\n\nexport const Story = (props) => <Calendar {...props} />;\n\nconst format = 'DD/MM/YYYY';\nconst today = new Date();\n\nStory.storyName = 'Calendar';\n\nStory.args = {\n captions: {\n [dateFormat(dateCalc(today, 6, 'days'), { format })]: '10.95$',\n [dateFormat(dateCalc(today, 8, 'days'), { format })]: '129510.95$',\n [dateFormat(dateCalc(today, 16, 'days'), { format })]: '10.95$',\n [dateFormat(dateCalc(today, 18, 'days'), { format })]: '9.95$',\n },\n disabledDates: [\n dateFormat(dateCalc(today, 20, 'days'), { format }),\n dateFormat(dateCalc(today, 21, 'days'), { format }),\n dateFormat(dateCalc(today, 22, 'days'), { format }),\n dateFormat(dateCalc(today, 23, 'days'), { format }),\n dateFormat(dateCalc(today, 24, 'days'), { format }),\n ],\n disabledPast: true,\n format,\n from: '',\n highlights: [\n dateFormat(dateCalc(today, 6, 'days'), { format }),\n dateFormat(dateCalc(today, 10, 'days'), { format }),\n dateFormat(dateCalc(today, 12, 'days'), { format }),\n dateFormat(dateCalc(today, 14, 'days'), { format }),\n dateFormat(dateCalc(today, 16, 'days'), { format }),\n ],\n locale: 'es-ES',\n months: 2,\n range: true,\n rangeMaxDays: 7,\n rangeMinDays: 3,\n to: dateFormat(dateCalc(today, 6, 'months')),\n value: [],\n onChange: (...props) => console.log('<Calendar>::onChange', ...props),\n onFocus: (...props) => console.log('<Calendar>::onFocus', ...props),\n onNavigation: (...props) => console.log('<Calendar>::onNavigation', ...props),\n onScroll: (...props) => console.log('<Calendar>::onScroll', ...props),\n};\n\nStory.argTypes = {\n locale: {\n options: ['es-ES', 'en-GB', 'ja-JP', 'it-IT', 'pt-PT'],\n control: { type: 'select' },\n defaultValue: 'es-ES',\n },\n};\n"],"mappings":";;;;;;;;;AAAA;;AACA;;AAEA;;;;;;;;;;eAEe;EAAEA,KAAK,EAAE;AAAT,C;;;AAER,IAAMC,KAAK,GAAG,SAARA,KAAQ,CAACC,KAAD;EAAA,oBAAW,oBAAC,kBAAD,EAAcA,KAAd,CAAX;AAAA,CAAd;;;AAEP,IAAMC,MAAM,GAAG,YAAf;AACA,IAAMC,KAAK,GAAG,IAAIC,IAAJ,EAAd;AAEAJ,KAAK,CAACK,SAAN,GAAkB,UAAlB;AAEAL,KAAK,CAACM,IAAN,GAAa;EACXC,QAAQ,8CACL,wBAAW,sBAASJ,KAAT,EAAgB,CAAhB,EAAmB,MAAnB,CAAX,EAAuC;IAAED,MAAM,EAANA;EAAF,CAAvC,CADK,EACgD,QADhD,8BAEL,wBAAW,sBAASC,KAAT,EAAgB,CAAhB,EAAmB,MAAnB,CAAX,EAAuC;IAAED,MAAM,EAANA;EAAF,CAAvC,CAFK,EAEgD,YAFhD,8BAGL,wBAAW,sBAASC,KAAT,EAAgB,EAAhB,EAAoB,MAApB,CAAX,EAAwC;IAAED,MAAM,EAANA;EAAF,CAAxC,CAHK,EAGiD,QAHjD,8BAIL,wBAAW,sBAASC,KAAT,EAAgB,EAAhB,EAAoB,MAApB,CAAX,EAAwC;IAAED,MAAM,EAANA;EAAF,CAAxC,CAJK,EAIiD,OAJjD,aADG;EAOXM,aAAa,EAAE,CACb,wB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