@mirai/ui 1.0.74 → 1.0.76
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 +1 -0
- package/build/components/Calendar/Calendar.Month.js +1 -0
- package/build/components/Calendar/Calendar.Month.js.map +1 -1
- package/build/components/Calendar/__tests__/__snapshots__/Calendar.test.jsx.snap +66 -66
- package/build/components/Modal/Modal.js +14 -5
- package/build/components/Modal/Modal.js.map +1 -1
- package/build/components/Modal/Modal.module.css +14 -4
- package/build/components/Modal/Modal.stories.js +1 -0
- package/build/components/Modal/Modal.stories.js.map +1 -1
- package/build/components/Modal/__tests__/__snapshots__/Modal.test.js.snap +13 -1
- package/build/theme/default.theme.css +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -669,6 +669,7 @@ const MyComponent = () => {
|
|
|
669
669
|
|
|
670
670
|
A modal component receiving the following props:
|
|
671
671
|
|
|
672
|
+
- `blur:bool` if you want use a _glashmorphism_ effect in the overflow
|
|
672
673
|
- `children:node`
|
|
673
674
|
- `fit:bool` if you want use fit width with the content
|
|
674
675
|
- `overflow:bool` wraps all modal in a semi-transparent layer
|
|
@@ -58,6 +58,7 @@ var Month = function Month(_ref) {
|
|
|
58
58
|
}, /*#__PURE__*/_react.default.createElement(_primitives.Icon, {
|
|
59
59
|
value: _primitives.ICON.LEFT
|
|
60
60
|
})), /*#__PURE__*/_react.default.createElement(_primitives.Text, {
|
|
61
|
+
bold: true,
|
|
61
62
|
headline: true,
|
|
62
63
|
level: 4,
|
|
63
64
|
className: _CalendarModule.default.title
|
|
@@ -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","useDevice","isDesktop","weekNumber","getWeekNumber","testID","styles","style","month","className","header","undefined","ICON","LEFT","title","getHeader","pressable","RIGHT","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, 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 value={ICON.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 value={ICON.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;AAAqD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAE9C,IAAMA,KAAK,GAAG,SAARA,KAAK,OAeZ;EAAA,IAdJC,KAAK,QAALA,KAAK;IACLC,QAAQ,QAARA,QAAQ;IACRC,QAAQ,QAARA,QAAQ;IACRC,YAAY,QAAZA,YAAY;IACZC,MAAM,QAANA,MAAM;IACNC,IAAI,QAAJA,IAAI;IACJC,MAAM,QAANA,MAAM;IAAA,kBACNC,KAAK;IAALA,KAAK,2BAAG,KAAK;IACbC,EAAE,QAAFA,EAAE;IAAA,qBACFC,QAAQ;IAARA,QAAQ,8BAAG,YAAM,CAAC,CAAC;IAAA,oBACnBC,OAAO;IAAPA,OAAO,6BAAG,YAAM,CAAC,CAAC;IAClBC,MAAM,QAANA,MAAM;IACNC,UAAU,QAAVA,UAAU;IACPC,MAAM;EAET,iBAAsB,IAAAC,gBAAS,GAAE;IAAzBC,SAAS,cAATA,SAAS;EACjB,IAAMC,UAAU,GAAG,IAAAC,uBAAa,EAAChB,QAAQ,CAAC;EAE1C,IAAyBiB,MAAM,GAAKL,MAAM,CAAjC,aAAa;EAEtB,oBACE,6BAAC,gBAAI;IAAC,SAAS,EAAE,IAAAM,eAAM,EAACC,uBAAK,CAACC,KAAK,EAAER,MAAM,CAACS,SAAS;EAAE,gBACrD,6BAAC,gBAAI;IAAC,GAAG;IAAC,SAAS,EAAEF,uBAAK,CAACG;EAAO,GAC/BX,UAAU,iBACT,6BAAC,qBAAS;IAAC,OAAO,EAAEA,UAAW;IAAC,eAAaM,MAAM,aAAMA,MAAM,iBAAcM;EAAU,gBACrF,6BAAC,gBAAI;IAAC,KAAK,EAAEC,gBAAI,CAACC;EAAK,EAAG,CAE7B,eACD,6BAAC,gBAAI;IAAC,QAAQ;IAAC,KAAK,EAAE,CAAE;IAAC,SAAS,EAAEN,uBAAK,CAACO;EAAM,
|
|
1
|
+
{"version":3,"file":"Calendar.Month.js","names":["Month","focus","instance","selected","disabledPast","format","from","locale","range","to","onChange","onFocus","onNext","onPrevious","others","useDevice","isDesktop","weekNumber","getWeekNumber","testID","styles","style","month","className","header","undefined","ICON","LEFT","title","getHeader","pressable","RIGHT","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, 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 value={ICON.LEFT} />\n </Pressable>\n )}\n <Text bold 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 value={ICON.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;AAAqD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAE9C,IAAMA,KAAK,GAAG,SAARA,KAAK,OAeZ;EAAA,IAdJC,KAAK,QAALA,KAAK;IACLC,QAAQ,QAARA,QAAQ;IACRC,QAAQ,QAARA,QAAQ;IACRC,YAAY,QAAZA,YAAY;IACZC,MAAM,QAANA,MAAM;IACNC,IAAI,QAAJA,IAAI;IACJC,MAAM,QAANA,MAAM;IAAA,kBACNC,KAAK;IAALA,KAAK,2BAAG,KAAK;IACbC,EAAE,QAAFA,EAAE;IAAA,qBACFC,QAAQ;IAARA,QAAQ,8BAAG,YAAM,CAAC,CAAC;IAAA,oBACnBC,OAAO;IAAPA,OAAO,6BAAG,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S,CAACW,IAAI;EACvBvC,MAAM,EAAE4B,kBAAS,CAACW,IAAI;EACtBtC,UAAU,EAAE2B,kBAAS,CAACW;AACxB,CAAC"}
|
|
@@ -15,7 +15,7 @@ exports[`component:<Calendar> desktop environment prop:captions 1`] = `
|
|
|
15
15
|
class="view row header"
|
|
16
16
|
>
|
|
17
17
|
<h4
|
|
18
|
-
class="text headline-4 title"
|
|
18
|
+
class="text bold headline-4 title"
|
|
19
19
|
>
|
|
20
20
|
abril 1980
|
|
21
21
|
</h4>
|
|
@@ -691,7 +691,7 @@ exports[`component:<Calendar> desktop environment prop:captions 1`] = `
|
|
|
691
691
|
class="view row header"
|
|
692
692
|
>
|
|
693
693
|
<h4
|
|
694
|
-
class="text headline-4 title"
|
|
694
|
+
class="text bold headline-4 title"
|
|
695
695
|
>
|
|
696
696
|
mayo 1980
|
|
697
697
|
</h4>
|
|
@@ -1418,7 +1418,7 @@ exports[`component:<Calendar> desktop environment prop:disabledDates 1`] = `
|
|
|
1418
1418
|
class="view row header"
|
|
1419
1419
|
>
|
|
1420
1420
|
<h4
|
|
1421
|
-
class="text headline-4 title"
|
|
1421
|
+
class="text bold headline-4 title"
|
|
1422
1422
|
>
|
|
1423
1423
|
abril 1980
|
|
1424
1424
|
</h4>
|
|
@@ -2004,7 +2004,7 @@ exports[`component:<Calendar> desktop environment prop:disabledDates 1`] = `
|
|
|
2004
2004
|
class="view row header"
|
|
2005
2005
|
>
|
|
2006
2006
|
<h4
|
|
2007
|
-
class="text headline-4 title"
|
|
2007
|
+
class="text bold headline-4 title"
|
|
2008
2008
|
>
|
|
2009
2009
|
mayo 1980
|
|
2010
2010
|
</h4>
|
|
@@ -2663,7 +2663,7 @@ exports[`component:<Calendar> desktop environment prop:disabledPast 1`] = `
|
|
|
2663
2663
|
</span>
|
|
2664
2664
|
</button>
|
|
2665
2665
|
<h4
|
|
2666
|
-
class="text headline-4 title"
|
|
2666
|
+
class="text bold headline-4 title"
|
|
2667
2667
|
>
|
|
2668
2668
|
abril 1980
|
|
2669
2669
|
</h4>
|
|
@@ -3249,7 +3249,7 @@ exports[`component:<Calendar> desktop environment prop:disabledPast 1`] = `
|
|
|
3249
3249
|
class="view row header"
|
|
3250
3250
|
>
|
|
3251
3251
|
<h4
|
|
3252
|
-
class="text headline-4 title"
|
|
3252
|
+
class="text bold headline-4 title"
|
|
3253
3253
|
>
|
|
3254
3254
|
mayo 1980
|
|
3255
3255
|
</h4>
|
|
@@ -3883,7 +3883,7 @@ exports[`component:<Calendar> desktop environment prop:format 1`] = `
|
|
|
3883
3883
|
class="view row header"
|
|
3884
3884
|
>
|
|
3885
3885
|
<h4
|
|
3886
|
-
class="text headline-4 title"
|
|
3886
|
+
class="text bold headline-4 title"
|
|
3887
3887
|
>
|
|
3888
3888
|
abril 1980
|
|
3889
3889
|
</h4>
|
|
@@ -4469,7 +4469,7 @@ exports[`component:<Calendar> desktop environment prop:format 1`] = `
|
|
|
4469
4469
|
class="view row header"
|
|
4470
4470
|
>
|
|
4471
4471
|
<h4
|
|
4472
|
-
class="text headline-4 title"
|
|
4472
|
+
class="text bold headline-4 title"
|
|
4473
4473
|
>
|
|
4474
4474
|
mayo 1980
|
|
4475
4475
|
</h4>
|
|
@@ -5103,7 +5103,7 @@ exports[`component:<Calendar> desktop environment prop:from 1`] = `
|
|
|
5103
5103
|
class="view row header"
|
|
5104
5104
|
>
|
|
5105
5105
|
<h4
|
|
5106
|
-
class="text headline-4 title"
|
|
5106
|
+
class="text bold headline-4 title"
|
|
5107
5107
|
>
|
|
5108
5108
|
abril 1980
|
|
5109
5109
|
</h4>
|
|
@@ -5689,7 +5689,7 @@ exports[`component:<Calendar> desktop environment prop:from 1`] = `
|
|
|
5689
5689
|
class="view row header"
|
|
5690
5690
|
>
|
|
5691
5691
|
<h4
|
|
5692
|
-
class="text headline-4 title"
|
|
5692
|
+
class="text bold headline-4 title"
|
|
5693
5693
|
>
|
|
5694
5694
|
mayo 1980
|
|
5695
5695
|
</h4>
|
|
@@ -6323,7 +6323,7 @@ exports[`component:<Calendar> desktop environment prop:highlights 1`] = `
|
|
|
6323
6323
|
class="view row header"
|
|
6324
6324
|
>
|
|
6325
6325
|
<h4
|
|
6326
|
-
class="text headline-4 title"
|
|
6326
|
+
class="text bold headline-4 title"
|
|
6327
6327
|
>
|
|
6328
6328
|
abril 1980
|
|
6329
6329
|
</h4>
|
|
@@ -6909,7 +6909,7 @@ exports[`component:<Calendar> desktop environment prop:highlights 1`] = `
|
|
|
6909
6909
|
class="view row header"
|
|
6910
6910
|
>
|
|
6911
6911
|
<h4
|
|
6912
|
-
class="text headline-4 title"
|
|
6912
|
+
class="text bold headline-4 title"
|
|
6913
6913
|
>
|
|
6914
6914
|
mayo 1980
|
|
6915
6915
|
</h4>
|
|
@@ -7543,7 +7543,7 @@ exports[`component:<Calendar> desktop environment prop:locale 1`] = `
|
|
|
7543
7543
|
class="view row header"
|
|
7544
7544
|
>
|
|
7545
7545
|
<h4
|
|
7546
|
-
class="text headline-4 title"
|
|
7546
|
+
class="text bold headline-4 title"
|
|
7547
7547
|
>
|
|
7548
7548
|
abril 1980
|
|
7549
7549
|
</h4>
|
|
@@ -8129,7 +8129,7 @@ exports[`component:<Calendar> desktop environment prop:locale 1`] = `
|
|
|
8129
8129
|
class="view row header"
|
|
8130
8130
|
>
|
|
8131
8131
|
<h4
|
|
8132
|
-
class="text headline-4 title"
|
|
8132
|
+
class="text bold headline-4 title"
|
|
8133
8133
|
>
|
|
8134
8134
|
mayo 1980
|
|
8135
8135
|
</h4>
|
|
@@ -8763,7 +8763,7 @@ exports[`component:<Calendar> desktop environment prop:locale en-US 1`] = `
|
|
|
8763
8763
|
class="view row header"
|
|
8764
8764
|
>
|
|
8765
8765
|
<h4
|
|
8766
|
-
class="text headline-4 title"
|
|
8766
|
+
class="text bold headline-4 title"
|
|
8767
8767
|
>
|
|
8768
8768
|
April 1980
|
|
8769
8769
|
</h4>
|
|
@@ -9349,7 +9349,7 @@ exports[`component:<Calendar> desktop environment prop:locale en-US 1`] = `
|
|
|
9349
9349
|
class="view row header"
|
|
9350
9350
|
>
|
|
9351
9351
|
<h4
|
|
9352
|
-
class="text headline-4 title"
|
|
9352
|
+
class="text bold headline-4 title"
|
|
9353
9353
|
>
|
|
9354
9354
|
May 1980
|
|
9355
9355
|
</h4>
|
|
@@ -9983,7 +9983,7 @@ exports[`component:<Calendar> desktop environment prop:months 1`] = `
|
|
|
9983
9983
|
class="view row header"
|
|
9984
9984
|
>
|
|
9985
9985
|
<h4
|
|
9986
|
-
class="text headline-4 title"
|
|
9986
|
+
class="text bold headline-4 title"
|
|
9987
9987
|
>
|
|
9988
9988
|
abril 1980
|
|
9989
9989
|
</h4>
|
|
@@ -10569,7 +10569,7 @@ exports[`component:<Calendar> desktop environment prop:months 1`] = `
|
|
|
10569
10569
|
class="view row header"
|
|
10570
10570
|
>
|
|
10571
10571
|
<h4
|
|
10572
|
-
class="text headline-4 title"
|
|
10572
|
+
class="text bold headline-4 title"
|
|
10573
10573
|
>
|
|
10574
10574
|
mayo 1980
|
|
10575
10575
|
</h4>
|
|
@@ -11165,7 +11165,7 @@ exports[`component:<Calendar> desktop environment prop:months 1`] = `
|
|
|
11165
11165
|
class="view row header"
|
|
11166
11166
|
>
|
|
11167
11167
|
<h4
|
|
11168
|
-
class="text headline-4 title"
|
|
11168
|
+
class="text bold headline-4 title"
|
|
11169
11169
|
>
|
|
11170
11170
|
junio 1980
|
|
11171
11171
|
</h4>
|
|
@@ -11789,7 +11789,7 @@ exports[`component:<Calendar> desktop environment prop:range prop:disabledDates
|
|
|
11789
11789
|
class="view row header"
|
|
11790
11790
|
>
|
|
11791
11791
|
<h4
|
|
11792
|
-
class="text headline-4 title"
|
|
11792
|
+
class="text bold headline-4 title"
|
|
11793
11793
|
>
|
|
11794
11794
|
abril 1980
|
|
11795
11795
|
</h4>
|
|
@@ -12375,7 +12375,7 @@ exports[`component:<Calendar> desktop environment prop:range prop:disabledDates
|
|
|
12375
12375
|
class="view row header"
|
|
12376
12376
|
>
|
|
12377
12377
|
<h4
|
|
12378
|
-
class="text headline-4 title"
|
|
12378
|
+
class="text bold headline-4 title"
|
|
12379
12379
|
>
|
|
12380
12380
|
mayo 1980
|
|
12381
12381
|
</h4>
|
|
@@ -13009,7 +13009,7 @@ exports[`component:<Calendar> desktop environment prop:range prop:rangeMaxDays 1
|
|
|
13009
13009
|
class="view row header"
|
|
13010
13010
|
>
|
|
13011
13011
|
<h4
|
|
13012
|
-
class="text headline-4 title"
|
|
13012
|
+
class="text bold headline-4 title"
|
|
13013
13013
|
>
|
|
13014
13014
|
abril 1980
|
|
13015
13015
|
</h4>
|
|
@@ -13595,7 +13595,7 @@ exports[`component:<Calendar> desktop environment prop:range prop:rangeMaxDays 1
|
|
|
13595
13595
|
class="view row header"
|
|
13596
13596
|
>
|
|
13597
13597
|
<h4
|
|
13598
|
-
class="text headline-4 title"
|
|
13598
|
+
class="text bold headline-4 title"
|
|
13599
13599
|
>
|
|
13600
13600
|
mayo 1980
|
|
13601
13601
|
</h4>
|
|
@@ -14229,7 +14229,7 @@ exports[`component:<Calendar> desktop environment prop:range prop:rangeMinDays 1
|
|
|
14229
14229
|
class="view row header"
|
|
14230
14230
|
>
|
|
14231
14231
|
<h4
|
|
14232
|
-
class="text headline-4 title"
|
|
14232
|
+
class="text bold headline-4 title"
|
|
14233
14233
|
>
|
|
14234
14234
|
abril 1980
|
|
14235
14235
|
</h4>
|
|
@@ -14815,7 +14815,7 @@ exports[`component:<Calendar> desktop environment prop:range prop:rangeMinDays 1
|
|
|
14815
14815
|
class="view row header"
|
|
14816
14816
|
>
|
|
14817
14817
|
<h4
|
|
14818
|
-
class="text headline-4 title"
|
|
14818
|
+
class="text bold headline-4 title"
|
|
14819
14819
|
>
|
|
14820
14820
|
mayo 1980
|
|
14821
14821
|
</h4>
|
|
@@ -15449,7 +15449,7 @@ exports[`component:<Calendar> desktop environment prop:range renders 1`] = `
|
|
|
15449
15449
|
class="view row header"
|
|
15450
15450
|
>
|
|
15451
15451
|
<h4
|
|
15452
|
-
class="text headline-4 title"
|
|
15452
|
+
class="text bold headline-4 title"
|
|
15453
15453
|
>
|
|
15454
15454
|
abril 1980
|
|
15455
15455
|
</h4>
|
|
@@ -16035,7 +16035,7 @@ exports[`component:<Calendar> desktop environment prop:range renders 1`] = `
|
|
|
16035
16035
|
class="view row header"
|
|
16036
16036
|
>
|
|
16037
16037
|
<h4
|
|
16038
|
-
class="text headline-4 title"
|
|
16038
|
+
class="text bold headline-4 title"
|
|
16039
16039
|
>
|
|
16040
16040
|
mayo 1980
|
|
16041
16041
|
</h4>
|
|
@@ -16669,7 +16669,7 @@ exports[`component:<Calendar> desktop environment prop:to 1`] = `
|
|
|
16669
16669
|
class="view row header"
|
|
16670
16670
|
>
|
|
16671
16671
|
<h4
|
|
16672
|
-
class="text headline-4 title"
|
|
16672
|
+
class="text bold headline-4 title"
|
|
16673
16673
|
>
|
|
16674
16674
|
abril 1980
|
|
16675
16675
|
</h4>
|
|
@@ -17255,7 +17255,7 @@ exports[`component:<Calendar> desktop environment prop:to 1`] = `
|
|
|
17255
17255
|
class="view row header"
|
|
17256
17256
|
>
|
|
17257
17257
|
<h4
|
|
17258
|
-
class="text headline-4 title"
|
|
17258
|
+
class="text bold headline-4 title"
|
|
17259
17259
|
>
|
|
17260
17260
|
mayo 1980
|
|
17261
17261
|
</h4>
|
|
@@ -17864,7 +17864,7 @@ exports[`component:<Calendar> desktop environment renders 1`] = `
|
|
|
17864
17864
|
class="view row header"
|
|
17865
17865
|
>
|
|
17866
17866
|
<h4
|
|
17867
|
-
class="text headline-4 title"
|
|
17867
|
+
class="text bold headline-4 title"
|
|
17868
17868
|
>
|
|
17869
17869
|
abril 1980
|
|
17870
17870
|
</h4>
|
|
@@ -18450,7 +18450,7 @@ exports[`component:<Calendar> desktop environment renders 1`] = `
|
|
|
18450
18450
|
class="view row header"
|
|
18451
18451
|
>
|
|
18452
18452
|
<h4
|
|
18453
|
-
class="text headline-4 title"
|
|
18453
|
+
class="text bold headline-4 title"
|
|
18454
18454
|
>
|
|
18455
18455
|
mayo 1980
|
|
18456
18456
|
</h4>
|
|
@@ -19084,7 +19084,7 @@ exports[`component:<Calendar> inherit:className 1`] = `
|
|
|
19084
19084
|
class="view row header"
|
|
19085
19085
|
>
|
|
19086
19086
|
<h4
|
|
19087
|
-
class="text headline-4 title"
|
|
19087
|
+
class="text bold headline-4 title"
|
|
19088
19088
|
>
|
|
19089
19089
|
abril 1980
|
|
19090
19090
|
</h4>
|
|
@@ -19670,7 +19670,7 @@ exports[`component:<Calendar> inherit:className 1`] = `
|
|
|
19670
19670
|
class="view row header"
|
|
19671
19671
|
>
|
|
19672
19672
|
<h4
|
|
19673
|
-
class="text headline-4 title"
|
|
19673
|
+
class="text bold headline-4 title"
|
|
19674
19674
|
>
|
|
19675
19675
|
mayo 1980
|
|
19676
19676
|
</h4>
|
|
@@ -20304,7 +20304,7 @@ exports[`component:<Calendar> mobile environment prop:captions 1`] = `
|
|
|
20304
20304
|
class="view row header"
|
|
20305
20305
|
>
|
|
20306
20306
|
<h4
|
|
20307
|
-
class="text headline-4 title"
|
|
20307
|
+
class="text bold headline-4 title"
|
|
20308
20308
|
>
|
|
20309
20309
|
abril 1980
|
|
20310
20310
|
</h4>
|
|
@@ -20980,7 +20980,7 @@ exports[`component:<Calendar> mobile environment prop:captions 1`] = `
|
|
|
20980
20980
|
class="view row header"
|
|
20981
20981
|
>
|
|
20982
20982
|
<h4
|
|
20983
|
-
class="text headline-4 title"
|
|
20983
|
+
class="text bold headline-4 title"
|
|
20984
20984
|
>
|
|
20985
20985
|
mayo 1980
|
|
20986
20986
|
</h4>
|
|
@@ -21707,7 +21707,7 @@ exports[`component:<Calendar> mobile environment prop:disabledDates 1`] = `
|
|
|
21707
21707
|
class="view row header"
|
|
21708
21708
|
>
|
|
21709
21709
|
<h4
|
|
21710
|
-
class="text headline-4 title"
|
|
21710
|
+
class="text bold headline-4 title"
|
|
21711
21711
|
>
|
|
21712
21712
|
abril 1980
|
|
21713
21713
|
</h4>
|
|
@@ -22293,7 +22293,7 @@ exports[`component:<Calendar> mobile environment prop:disabledDates 1`] = `
|
|
|
22293
22293
|
class="view row header"
|
|
22294
22294
|
>
|
|
22295
22295
|
<h4
|
|
22296
|
-
class="text headline-4 title"
|
|
22296
|
+
class="text bold headline-4 title"
|
|
22297
22297
|
>
|
|
22298
22298
|
mayo 1980
|
|
22299
22299
|
</h4>
|
|
@@ -22952,7 +22952,7 @@ exports[`component:<Calendar> mobile environment prop:disabledPast 1`] = `
|
|
|
22952
22952
|
</span>
|
|
22953
22953
|
</button>
|
|
22954
22954
|
<h4
|
|
22955
|
-
class="text headline-4 title"
|
|
22955
|
+
class="text bold headline-4 title"
|
|
22956
22956
|
>
|
|
22957
22957
|
abril 1980
|
|
22958
22958
|
</h4>
|
|
@@ -23538,7 +23538,7 @@ exports[`component:<Calendar> mobile environment prop:disabledPast 1`] = `
|
|
|
23538
23538
|
class="view row header"
|
|
23539
23539
|
>
|
|
23540
23540
|
<h4
|
|
23541
|
-
class="text headline-4 title"
|
|
23541
|
+
class="text bold headline-4 title"
|
|
23542
23542
|
>
|
|
23543
23543
|
mayo 1980
|
|
23544
23544
|
</h4>
|
|
@@ -24172,7 +24172,7 @@ exports[`component:<Calendar> mobile environment prop:format 1`] = `
|
|
|
24172
24172
|
class="view row header"
|
|
24173
24173
|
>
|
|
24174
24174
|
<h4
|
|
24175
|
-
class="text headline-4 title"
|
|
24175
|
+
class="text bold headline-4 title"
|
|
24176
24176
|
>
|
|
24177
24177
|
abril 1980
|
|
24178
24178
|
</h4>
|
|
@@ -24758,7 +24758,7 @@ exports[`component:<Calendar> mobile environment prop:format 1`] = `
|
|
|
24758
24758
|
class="view row header"
|
|
24759
24759
|
>
|
|
24760
24760
|
<h4
|
|
24761
|
-
class="text headline-4 title"
|
|
24761
|
+
class="text bold headline-4 title"
|
|
24762
24762
|
>
|
|
24763
24763
|
mayo 1980
|
|
24764
24764
|
</h4>
|
|
@@ -25392,7 +25392,7 @@ exports[`component:<Calendar> mobile environment prop:from 1`] = `
|
|
|
25392
25392
|
class="view row header"
|
|
25393
25393
|
>
|
|
25394
25394
|
<h4
|
|
25395
|
-
class="text headline-4 title"
|
|
25395
|
+
class="text bold headline-4 title"
|
|
25396
25396
|
>
|
|
25397
25397
|
abril 1980
|
|
25398
25398
|
</h4>
|
|
@@ -25978,7 +25978,7 @@ exports[`component:<Calendar> mobile environment prop:from 1`] = `
|
|
|
25978
25978
|
class="view row header"
|
|
25979
25979
|
>
|
|
25980
25980
|
<h4
|
|
25981
|
-
class="text headline-4 title"
|
|
25981
|
+
class="text bold headline-4 title"
|
|
25982
25982
|
>
|
|
25983
25983
|
mayo 1980
|
|
25984
25984
|
</h4>
|
|
@@ -26612,7 +26612,7 @@ exports[`component:<Calendar> mobile environment prop:highlights 1`] = `
|
|
|
26612
26612
|
class="view row header"
|
|
26613
26613
|
>
|
|
26614
26614
|
<h4
|
|
26615
|
-
class="text headline-4 title"
|
|
26615
|
+
class="text bold headline-4 title"
|
|
26616
26616
|
>
|
|
26617
26617
|
abril 1980
|
|
26618
26618
|
</h4>
|
|
@@ -27198,7 +27198,7 @@ exports[`component:<Calendar> mobile environment prop:highlights 1`] = `
|
|
|
27198
27198
|
class="view row header"
|
|
27199
27199
|
>
|
|
27200
27200
|
<h4
|
|
27201
|
-
class="text headline-4 title"
|
|
27201
|
+
class="text bold headline-4 title"
|
|
27202
27202
|
>
|
|
27203
27203
|
mayo 1980
|
|
27204
27204
|
</h4>
|
|
@@ -27832,7 +27832,7 @@ exports[`component:<Calendar> mobile environment prop:locale 1`] = `
|
|
|
27832
27832
|
class="view row header"
|
|
27833
27833
|
>
|
|
27834
27834
|
<h4
|
|
27835
|
-
class="text headline-4 title"
|
|
27835
|
+
class="text bold headline-4 title"
|
|
27836
27836
|
>
|
|
27837
27837
|
abril 1980
|
|
27838
27838
|
</h4>
|
|
@@ -28418,7 +28418,7 @@ exports[`component:<Calendar> mobile environment prop:locale 1`] = `
|
|
|
28418
28418
|
class="view row header"
|
|
28419
28419
|
>
|
|
28420
28420
|
<h4
|
|
28421
|
-
class="text headline-4 title"
|
|
28421
|
+
class="text bold headline-4 title"
|
|
28422
28422
|
>
|
|
28423
28423
|
mayo 1980
|
|
28424
28424
|
</h4>
|
|
@@ -29052,7 +29052,7 @@ exports[`component:<Calendar> mobile environment prop:locale en-US 1`] = `
|
|
|
29052
29052
|
class="view row header"
|
|
29053
29053
|
>
|
|
29054
29054
|
<h4
|
|
29055
|
-
class="text headline-4 title"
|
|
29055
|
+
class="text bold headline-4 title"
|
|
29056
29056
|
>
|
|
29057
29057
|
April 1980
|
|
29058
29058
|
</h4>
|
|
@@ -29638,7 +29638,7 @@ exports[`component:<Calendar> mobile environment prop:locale en-US 1`] = `
|
|
|
29638
29638
|
class="view row header"
|
|
29639
29639
|
>
|
|
29640
29640
|
<h4
|
|
29641
|
-
class="text headline-4 title"
|
|
29641
|
+
class="text bold headline-4 title"
|
|
29642
29642
|
>
|
|
29643
29643
|
May 1980
|
|
29644
29644
|
</h4>
|
|
@@ -30272,7 +30272,7 @@ exports[`component:<Calendar> mobile environment prop:months 1`] = `
|
|
|
30272
30272
|
class="view row header"
|
|
30273
30273
|
>
|
|
30274
30274
|
<h4
|
|
30275
|
-
class="text headline-4 title"
|
|
30275
|
+
class="text bold headline-4 title"
|
|
30276
30276
|
>
|
|
30277
30277
|
abril 1980
|
|
30278
30278
|
</h4>
|
|
@@ -30858,7 +30858,7 @@ exports[`component:<Calendar> mobile environment prop:months 1`] = `
|
|
|
30858
30858
|
class="view row header"
|
|
30859
30859
|
>
|
|
30860
30860
|
<h4
|
|
30861
|
-
class="text headline-4 title"
|
|
30861
|
+
class="text bold headline-4 title"
|
|
30862
30862
|
>
|
|
30863
30863
|
mayo 1980
|
|
30864
30864
|
</h4>
|
|
@@ -31454,7 +31454,7 @@ exports[`component:<Calendar> mobile environment prop:months 1`] = `
|
|
|
31454
31454
|
class="view row header"
|
|
31455
31455
|
>
|
|
31456
31456
|
<h4
|
|
31457
|
-
class="text headline-4 title"
|
|
31457
|
+
class="text bold headline-4 title"
|
|
31458
31458
|
>
|
|
31459
31459
|
junio 1980
|
|
31460
31460
|
</h4>
|
|
@@ -32078,7 +32078,7 @@ exports[`component:<Calendar> mobile environment prop:range prop:disabledDates 1
|
|
|
32078
32078
|
class="view row header"
|
|
32079
32079
|
>
|
|
32080
32080
|
<h4
|
|
32081
|
-
class="text headline-4 title"
|
|
32081
|
+
class="text bold headline-4 title"
|
|
32082
32082
|
>
|
|
32083
32083
|
abril 1980
|
|
32084
32084
|
</h4>
|
|
@@ -32664,7 +32664,7 @@ exports[`component:<Calendar> mobile environment prop:range prop:disabledDates 1
|
|
|
32664
32664
|
class="view row header"
|
|
32665
32665
|
>
|
|
32666
32666
|
<h4
|
|
32667
|
-
class="text headline-4 title"
|
|
32667
|
+
class="text bold headline-4 title"
|
|
32668
32668
|
>
|
|
32669
32669
|
mayo 1980
|
|
32670
32670
|
</h4>
|
|
@@ -33298,7 +33298,7 @@ exports[`component:<Calendar> mobile environment prop:range prop:rangeMaxDays 1`
|
|
|
33298
33298
|
class="view row header"
|
|
33299
33299
|
>
|
|
33300
33300
|
<h4
|
|
33301
|
-
class="text headline-4 title"
|
|
33301
|
+
class="text bold headline-4 title"
|
|
33302
33302
|
>
|
|
33303
33303
|
abril 1980
|
|
33304
33304
|
</h4>
|
|
@@ -33884,7 +33884,7 @@ exports[`component:<Calendar> mobile environment prop:range prop:rangeMaxDays 1`
|
|
|
33884
33884
|
class="view row header"
|
|
33885
33885
|
>
|
|
33886
33886
|
<h4
|
|
33887
|
-
class="text headline-4 title"
|
|
33887
|
+
class="text bold headline-4 title"
|
|
33888
33888
|
>
|
|
33889
33889
|
mayo 1980
|
|
33890
33890
|
</h4>
|
|
@@ -34518,7 +34518,7 @@ exports[`component:<Calendar> mobile environment prop:range prop:rangeMinDays 1`
|
|
|
34518
34518
|
class="view row header"
|
|
34519
34519
|
>
|
|
34520
34520
|
<h4
|
|
34521
|
-
class="text headline-4 title"
|
|
34521
|
+
class="text bold headline-4 title"
|
|
34522
34522
|
>
|
|
34523
34523
|
abril 1980
|
|
34524
34524
|
</h4>
|
|
@@ -35104,7 +35104,7 @@ exports[`component:<Calendar> mobile environment prop:range prop:rangeMinDays 1`
|
|
|
35104
35104
|
class="view row header"
|
|
35105
35105
|
>
|
|
35106
35106
|
<h4
|
|
35107
|
-
class="text headline-4 title"
|
|
35107
|
+
class="text bold headline-4 title"
|
|
35108
35108
|
>
|
|
35109
35109
|
mayo 1980
|
|
35110
35110
|
</h4>
|
|
@@ -35738,7 +35738,7 @@ exports[`component:<Calendar> mobile environment prop:range renders 1`] = `
|
|
|
35738
35738
|
class="view row header"
|
|
35739
35739
|
>
|
|
35740
35740
|
<h4
|
|
35741
|
-
class="text headline-4 title"
|
|
35741
|
+
class="text bold headline-4 title"
|
|
35742
35742
|
>
|
|
35743
35743
|
abril 1980
|
|
35744
35744
|
</h4>
|
|
@@ -36324,7 +36324,7 @@ exports[`component:<Calendar> mobile environment prop:range renders 1`] = `
|
|
|
36324
36324
|
class="view row header"
|
|
36325
36325
|
>
|
|
36326
36326
|
<h4
|
|
36327
|
-
class="text headline-4 title"
|
|
36327
|
+
class="text bold headline-4 title"
|
|
36328
36328
|
>
|
|
36329
36329
|
mayo 1980
|
|
36330
36330
|
</h4>
|
|
@@ -36958,7 +36958,7 @@ exports[`component:<Calendar> mobile environment prop:to 1`] = `
|
|
|
36958
36958
|
class="view row header"
|
|
36959
36959
|
>
|
|
36960
36960
|
<h4
|
|
36961
|
-
class="text headline-4 title"
|
|
36961
|
+
class="text bold headline-4 title"
|
|
36962
36962
|
>
|
|
36963
36963
|
abril 1980
|
|
36964
36964
|
</h4>
|
|
@@ -37544,7 +37544,7 @@ exports[`component:<Calendar> mobile environment prop:to 1`] = `
|
|
|
37544
37544
|
class="view row header"
|
|
37545
37545
|
>
|
|
37546
37546
|
<h4
|
|
37547
|
-
class="text headline-4 title"
|
|
37547
|
+
class="text bold headline-4 title"
|
|
37548
37548
|
>
|
|
37549
37549
|
mayo 1980
|
|
37550
37550
|
</h4>
|
|
@@ -38153,7 +38153,7 @@ exports[`component:<Calendar> mobile environment renders 1`] = `
|
|
|
38153
38153
|
class="view row header"
|
|
38154
38154
|
>
|
|
38155
38155
|
<h4
|
|
38156
|
-
class="text headline-4 title"
|
|
38156
|
+
class="text bold headline-4 title"
|
|
38157
38157
|
>
|
|
38158
38158
|
abril 1980
|
|
38159
38159
|
</h4>
|
|
@@ -38739,7 +38739,7 @@ exports[`component:<Calendar> mobile environment renders 1`] = `
|
|
|
38739
38739
|
class="view row header"
|
|
38740
38740
|
>
|
|
38741
38741
|
<h4
|
|
38742
|
-
class="text headline-4 title"
|
|
38742
|
+
class="text bold headline-4 title"
|
|
38743
38743
|
>
|
|
38744
38744
|
mayo 1980
|
|
38745
38745
|
</h4>
|
|
@@ -39374,7 +39374,7 @@ exports[`component:<Calendar> testID 1`] = `
|
|
|
39374
39374
|
class="view row header"
|
|
39375
39375
|
>
|
|
39376
39376
|
<h4
|
|
39377
|
-
class="text headline-4 title"
|
|
39377
|
+
class="text bold headline-4 title"
|
|
39378
39378
|
>
|
|
39379
39379
|
abril 1980
|
|
39380
39380
|
</h4>
|
|
@@ -39960,7 +39960,7 @@ exports[`component:<Calendar> testID 1`] = `
|
|
|
39960
39960
|
class="view row header"
|
|
39961
39961
|
>
|
|
39962
39962
|
<h4
|
|
39963
|
-
class="text headline-4 title"
|
|
39963
|
+
class="text bold headline-4 title"
|
|
39964
39964
|
>
|
|
39965
39965
|
mayo 1980
|
|
39966
39966
|
</h4>
|
|
@@ -1,23 +1,28 @@
|
|
|
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.Modal = void 0;
|
|
7
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
8
|
-
var _react =
|
|
9
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
9
10
|
var _reactDom = _interopRequireDefault(require("react-dom"));
|
|
10
11
|
var _helpers = require("../../helpers");
|
|
11
12
|
var _hooks = require("../../hooks");
|
|
12
13
|
var _primitives = require("../../primitives");
|
|
13
14
|
var _ModalModule = _interopRequireDefault(require("./Modal.module.css"));
|
|
14
|
-
var _excluded = ["children", "fit", "overflow", "portal", "title", "visible", "onBack", "onClose"];
|
|
15
|
+
var _excluded = ["blur", "children", "fit", "overflow", "portal", "title", "visible", "onBack", "onClose"];
|
|
16
|
+
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); }
|
|
17
|
+
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; }
|
|
15
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
19
|
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); }
|
|
17
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; }
|
|
18
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; }
|
|
19
22
|
var Modal = function Modal(_ref) {
|
|
20
|
-
var
|
|
23
|
+
var _ref$blur = _ref.blur,
|
|
24
|
+
blur = _ref$blur === void 0 ? false : _ref$blur,
|
|
25
|
+
children = _ref.children,
|
|
21
26
|
_ref$fit = _ref.fit,
|
|
22
27
|
fit = _ref$fit === void 0 ? false : _ref$fit,
|
|
23
28
|
_ref$overflow = _ref.overflow,
|
|
@@ -31,13 +36,16 @@ var Modal = function Modal(_ref) {
|
|
|
31
36
|
others = _objectWithoutProperties(_ref, _excluded);
|
|
32
37
|
var _useDevice = (0, _hooks.useDevice)(),
|
|
33
38
|
isDesktop = _useDevice.isDesktop;
|
|
39
|
+
(0, _react.useEffect)(function () {
|
|
40
|
+
document.body.style.overflow = visible ? 'hidden' : 'inherit';
|
|
41
|
+
}, [visible]);
|
|
34
42
|
var renderer = _helpers.IS_JEST || !portal ? function (jsx) {
|
|
35
43
|
return jsx;
|
|
36
44
|
} : _reactDom.default.createPortal;
|
|
37
45
|
var testId = others['data-testid'];
|
|
38
46
|
return renderer( /*#__PURE__*/_react.default.createElement(_primitives.View, {
|
|
39
47
|
row: true,
|
|
40
|
-
className: (0, _helpers.styles)(_ModalModule.default.container, overflow && _ModalModule.default.overflow, visible && _ModalModule.default.visible)
|
|
48
|
+
className: (0, _helpers.styles)(_ModalModule.default.container, overflow && _ModalModule.default.overflow, overflow && blur && _ModalModule.default.blur, visible && _ModalModule.default.visible)
|
|
41
49
|
}, /*#__PURE__*/_react.default.createElement(_primitives.View, _extends({}, others, {
|
|
42
50
|
fit: true,
|
|
43
51
|
className: (0, _helpers.styles)(_ModalModule.default.modal, !fit && _ModalModule.default.calcWidth, visible && _ModalModule.default.visible, others.className)
|
|
@@ -63,10 +71,11 @@ var Modal = function Modal(_ref) {
|
|
|
63
71
|
};
|
|
64
72
|
exports.Modal = Modal;
|
|
65
73
|
Modal.propTypes = {
|
|
74
|
+
blur: _propTypes.default.bool,
|
|
66
75
|
children: _propTypes.default.node,
|
|
67
76
|
fit: _propTypes.default.bool,
|
|
68
|
-
portal: _propTypes.default.bool,
|
|
69
77
|
overflow: _propTypes.default.bool,
|
|
78
|
+
portal: _propTypes.default.bool,
|
|
70
79
|
title: _propTypes.default.string,
|
|
71
80
|
visible: _propTypes.default.bool,
|
|
72
81
|
onBack: _propTypes.default.func,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.js","names":["Modal","children","fit","overflow","portal","title","visible","onBack","onClose","others","useDevice","isDesktop","renderer","IS_JEST","jsx","ReactDOM","createPortal","testId","styles","
|
|
1
|
+
{"version":3,"file":"Modal.js","names":["Modal","blur","children","fit","overflow","portal","title","visible","onBack","onClose","others","useDevice","isDesktop","useEffect","document","body","style","renderer","IS_JEST","jsx","ReactDOM","createPortal","testId","styles","container","modal","calcWidth","className","header","undefined","ICON","LEFT","icon","left","right","CLOSE","EXPAND_MORE","propTypes","PropTypes","bool","node","string","func"],"sources":["../../../src/components/Modal/Modal.jsx"],"sourcesContent":["import PropTypes from 'prop-types';\nimport React, { useEffect } from 'react';\nimport ReactDOM from 'react-dom';\n\nimport { IS_JEST, styles } from '../../helpers';\nimport { useDevice } from '../../hooks';\nimport { Icon, ICON, Pressable, Text, View } from '../../primitives';\nimport style from './Modal.module.css';\n\nconst Modal = ({\n blur = false,\n children,\n fit = false,\n overflow = true,\n portal = false,\n title,\n visible,\n onBack,\n onClose,\n ...others\n}) => {\n const { isDesktop } = useDevice();\n\n useEffect(() => {\n document.body.style.overflow = visible ? 'hidden' : 'inherit';\n }, [visible]);\n\n const renderer = IS_JEST || !portal ? (jsx) => jsx : ReactDOM.createPortal;\n\n const { ['data-testid']: testId } = others;\n\n return renderer(\n <View\n row\n className={styles(\n style.container,\n overflow && style.overflow,\n overflow && blur && style.blur,\n visible && style.visible,\n )}\n >\n <View\n {...others}\n fit\n className={styles(style.modal, !fit && style.calcWidth, visible && style.visible, others.className)}\n >\n {(title || onBack || onClose) && (\n <View row className={style.header}>\n {onBack && (\n <Pressable onPress={onBack} data-testid={testId ? `${testId}-button-back` : undefined}>\n <Icon value={ICON.LEFT} className={style.icon} />\n </Pressable>\n )}\n {title && (\n <Text headline className={styles(style.title, !onBack && style.left, !onClose && style.right)}>\n {title}\n </Text>\n )}\n {onClose && (\n <Pressable onPress={onClose} data-testid={testId ? `${testId}-button-close` : undefined}>\n <Icon value={isDesktop || title !== undefined ? ICON.CLOSE : ICON.EXPAND_MORE} className={style.icon} />\n </Pressable>\n )}\n </View>\n )}\n {children}\n </View>\n </View>,\n document.body,\n );\n};\n\nModal.propTypes = {\n blur: PropTypes.bool,\n children: PropTypes.node,\n fit: PropTypes.bool,\n overflow: PropTypes.bool,\n portal: PropTypes.bool,\n title: PropTypes.string,\n visible: PropTypes.bool,\n onBack: PropTypes.func,\n onClose: PropTypes.func,\n};\n\nexport { Modal };\n"],"mappings":";;;;;;;AAAA;AACA;AACA;AAEA;AACA;AACA;AACA;AAAuC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA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;EACvBlC,OAAO,EAAE+B,kBAAS,CAACC,IAAI;EACvB/B,MAAM,EAAE8B,kBAAS,CAACI,IAAI;EACtBjC,OAAO,EAAE6B,kBAAS,CAACI;AACrB,CAAC"}
|
|
@@ -9,6 +9,10 @@
|
|
|
9
9
|
z-index: var(--mirai-ui-modal-layer);
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
+
.container.visible {
|
|
13
|
+
pointer-events: all;
|
|
14
|
+
}
|
|
15
|
+
|
|
12
16
|
.header {
|
|
13
17
|
align-items: center;
|
|
14
18
|
border-bottom: solid var(--mirai-ui-border-width) var(--mirai-ui-content-border);
|
|
@@ -53,14 +57,18 @@
|
|
|
53
57
|
.overflow {
|
|
54
58
|
background-color: var(--mirai-ui-modal-overflow);
|
|
55
59
|
opacity: 0;
|
|
56
|
-
|
|
57
|
-
|
|
60
|
+
transition: backdrop-filter var(--mirai-ui-motion-expand) var(--mirai-ui-motion-easing),
|
|
61
|
+
opacity var(--mirai-ui-motion-expand) var(--mirai-ui-motion-easing);
|
|
58
62
|
}
|
|
59
63
|
|
|
60
|
-
.
|
|
64
|
+
.overflow.visible {
|
|
61
65
|
opacity: 1;
|
|
62
66
|
}
|
|
63
67
|
|
|
68
|
+
.overflow.blur.visible {
|
|
69
|
+
backdrop-filter: blur(4px);
|
|
70
|
+
}
|
|
71
|
+
|
|
64
72
|
/* S */
|
|
65
73
|
@media only screen and (max-width: 430px) {
|
|
66
74
|
.container {
|
|
@@ -73,6 +81,8 @@
|
|
|
73
81
|
}
|
|
74
82
|
|
|
75
83
|
.modal {
|
|
84
|
+
border-top-left-radius: var(--mirai-ui-modal-border-radius);
|
|
85
|
+
border-top-right-radius: var(--mirai-ui-modal-border-radius);
|
|
76
86
|
transform: translateY(100%);
|
|
77
87
|
width: 100%;
|
|
78
88
|
}
|
|
@@ -90,7 +100,7 @@
|
|
|
90
100
|
}
|
|
91
101
|
}
|
|
92
102
|
|
|
93
|
-
/* M */
|
|
103
|
+
/* M & L */
|
|
94
104
|
@media only screen and (min-width: 431px) {
|
|
95
105
|
.container {
|
|
96
106
|
align-items: center;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.stories.js","names":["title","Story","props","storyName","args","fit","overflow","portal","visible","argTypes","onBack","action","onClose"],"sources":["../../../src/components/Modal/Modal.stories.jsx"],"sourcesContent":["import * as React from 'react';\n\nimport { Modal } from './Modal';\n\nexport default { title: 'Components' };\n\nexport const Story = (props) => (\n <Modal {...props}>\n <span className=\"children\">children</span>\n </Modal>\n);\n\nStory.storyName = 'Modal';\n\nStory.args = {\n fit: false,\n overflow: true,\n portal: false,\n title: 'title',\n visible: true,\n ['data-testid']: 'test-story',\n};\n\nStory.argTypes = {\n onBack: { action: 'onBack' },\n onClose: { action: 'onClose' },\n};\n"],"mappings":";;;;;;AAAA;AAEA;AAAgC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,eAEjB;EAAEA,KAAK,EAAE;AAAa,CAAC;AAAA;AAE/B,IAAMC,KAAK,GAAG,SAARA,KAAK,CAAIC,KAAK;EAAA,oBACzB,oBAAC,YAAK,EAAKA,KAAK,eACd;IAAM,SAAS,EAAC;EAAU,cAAgB,CACpC;AAAA,CACT;AAAC;AAEFD,KAAK,CAACE,SAAS,GAAG,OAAO;AAEzBF,KAAK,CAACG,IAAI;EACRC,GAAG,EAAE,KAAK;EACVC,QAAQ,EAAE,IAAI;EACdC,MAAM,EAAE,KAAK;
|
|
1
|
+
{"version":3,"file":"Modal.stories.js","names":["title","Story","props","storyName","args","blur","fit","overflow","portal","visible","argTypes","onBack","action","onClose"],"sources":["../../../src/components/Modal/Modal.stories.jsx"],"sourcesContent":["import * as React from 'react';\n\nimport { Modal } from './Modal';\n\nexport default { title: 'Components' };\n\nexport const Story = (props) => (\n <Modal {...props}>\n <span className=\"children\">children</span>\n </Modal>\n);\n\nStory.storyName = 'Modal';\n\nStory.args = {\n blur: false,\n fit: false,\n overflow: true,\n portal: false,\n title: 'title',\n visible: true,\n ['data-testid']: 'test-story',\n};\n\nStory.argTypes = {\n onBack: { action: 'onBack' },\n onClose: { action: 'onClose' },\n};\n"],"mappings":";;;;;;AAAA;AAEA;AAAgC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,eAEjB;EAAEA,KAAK,EAAE;AAAa,CAAC;AAAA;AAE/B,IAAMC,KAAK,GAAG,SAARA,KAAK,CAAIC,KAAK;EAAA,oBACzB,oBAAC,YAAK,EAAKA,KAAK,eACd;IAAM,SAAS,EAAC;EAAU,cAAgB,CACpC;AAAA,CACT;AAAC;AAEFD,KAAK,CAACE,SAAS,GAAG,OAAO;AAEzBF,KAAK,CAACG,IAAI;EACRC,IAAI,EAAE,KAAK;EACXC,GAAG,EAAE,KAAK;EACVC,QAAQ,EAAE,IAAI;EACdC,MAAM,EAAE,KAAK;EACbR,KAAK,EAAE,OAAO;EACdS,OAAO,EAAE;AAAI,GACZ,aAAa,EAAG,YAAY,CAC9B;AAEDR,KAAK,CAACS,QAAQ,GAAG;EACfC,MAAM,EAAE;IAAEC,MAAM,EAAE;EAAS,CAAC;EAC5BC,OAAO,EAAE;IAAED,MAAM,EAAE;EAAU;AAC/B,CAAC"}
|
|
@@ -220,6 +220,18 @@ exports[`component:<Modal> prop:title 1`] = `
|
|
|
220
220
|
</DocumentFragment>
|
|
221
221
|
`;
|
|
222
222
|
|
|
223
|
+
exports[`component:<Modal> prop:visible & prop:blur 1`] = `
|
|
224
|
+
<DocumentFragment>
|
|
225
|
+
<div
|
|
226
|
+
class="view row container overflow blur visible"
|
|
227
|
+
>
|
|
228
|
+
<div
|
|
229
|
+
class="view fit modal calcWidth visible"
|
|
230
|
+
/>
|
|
231
|
+
</div>
|
|
232
|
+
</DocumentFragment>
|
|
233
|
+
`;
|
|
234
|
+
|
|
223
235
|
exports[`component:<Modal> prop:visible & prop:overflow (false) 1`] = `
|
|
224
236
|
<DocumentFragment>
|
|
225
237
|
<div
|
|
@@ -232,7 +244,7 @@ exports[`component:<Modal> prop:visible & prop:overflow (false) 1`] = `
|
|
|
232
244
|
</DocumentFragment>
|
|
233
245
|
`;
|
|
234
246
|
|
|
235
|
-
exports[`component:<Modal> prop:visible 1`] = `
|
|
247
|
+
exports[`component:<Modal> prop:visible renders 1`] = `
|
|
236
248
|
<DocumentFragment>
|
|
237
249
|
<div
|
|
238
250
|
class="view row container overflow visible"
|
|
@@ -224,11 +224,11 @@
|
|
|
224
224
|
|
|
225
225
|
/* Modal */
|
|
226
226
|
--mirai-ui-modal-background: var(--mirai-ui-base);
|
|
227
|
-
--mirai-ui-modal-border-radius: var(--mirai-ui-border-radius);
|
|
227
|
+
--mirai-ui-modal-border-radius: calc(var(--mirai-ui-border-radius) * 2);
|
|
228
228
|
--mirai-ui-modal-header-padding: var(--mirai-ui-space-M);
|
|
229
229
|
--mirai-ui-modal-icon: var(--mirai-ui-font-size-headline-2);
|
|
230
230
|
--mirai-ui-modal-layer: var(--mirai-ui-layer-L);
|
|
231
|
-
--mirai-ui-modal-overflow: rgba(72, 72, 72, 0.
|
|
231
|
+
--mirai-ui-modal-overflow: rgba(72, 72, 72, 0.2);
|
|
232
232
|
--mirai-ui-modal-shadow: var(--mirai-ui-shadow);
|
|
233
233
|
|
|
234
234
|
/* Notification */
|