@mirai/ui 1.0.63 → 1.0.64
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 +8 -1
- package/build/components/InputDate/InputDate.js +28 -12
- package/build/components/InputDate/InputDate.js.map +1 -1
- package/build/components/InputDate/InputDate.module.css +9 -16
- package/build/components/InputDate/InputDate.stories.js +11 -1
- package/build/components/InputDate/InputDate.stories.js.map +1 -1
- package/build/components/InputDate/__tests__/__snapshots__/InputDate.test.js.snap +144 -167
- package/build/components/InputOption/InputOption.js +1 -0
- package/build/components/InputOption/InputOption.js.map +1 -1
- package/build/components/InputOption/__tests__/__snapshots__/InputOption.test.js.snap +3 -3
- package/build/components/InputSelect/InputSelect.js +17 -7
- package/build/components/InputSelect/InputSelect.js.map +1 -1
- package/build/components/InputSelect/__tests__/__snapshots__/InputSelect.test.js.snap +217 -163
- package/build/components/InputText/InputText.js +13 -10
- package/build/components/InputText/InputText.js.map +1 -1
- package/build/components/InputText/InputText.module.css +11 -11
- package/build/components/InputText/InputText.stories.js +1 -0
- package/build/components/InputText/InputText.stories.js.map +1 -1
- package/build/components/InputText/__tests__/__snapshots__/InputText.test.js.snap +108 -88
- package/build/components/Menu/Menu.js +37 -16
- package/build/components/Menu/Menu.js.map +1 -1
- package/build/components/Menu/Menu.module.css +3 -0
- package/build/components/Menu/Menu.stories.js +1 -0
- package/build/components/Menu/Menu.stories.js.map +1 -1
- package/build/components/Menu/__tests__/__snapshots__/Menu.test.jsx.snap +35 -19
- package/build/components/Modal/Modal.js +5 -2
- package/build/components/Modal/Modal.js.map +1 -1
- package/build/components/Modal/Modal.module.css +9 -20
- 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 +24 -12
- package/build/hooks/useDevice.js +1 -1
- package/build/hooks/useDevice.js.map +1 -1
- package/build/theme/default.theme.css +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.js","names":["Modal","children","overflow","portal","title","visible","onBack","onClose","others","isDesktop","renderer","IS_JEST","jsx","ReactDOM","createPortal","testId","style","container","modal","className","header","undefined","ICON","LEFT","icon","left","right","CLOSE","EXPAND_MORE","document","body","propTypes","PropTypes","node","bool","string","func"],"sources":["../../../src/components/Modal/Modal.jsx"],"sourcesContent":["import PropTypes from 'prop-types';\nimport React 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 = ({
|
|
1
|
+
{"version":3,"file":"Modal.js","names":["Modal","children","fit","overflow","portal","title","visible","onBack","onClose","others","isDesktop","renderer","IS_JEST","jsx","ReactDOM","createPortal","testId","style","container","modal","calcWidth","className","header","undefined","ICON","LEFT","icon","left","right","CLOSE","EXPAND_MORE","document","body","propTypes","PropTypes","node","bool","string","func"],"sources":["../../../src/components/Modal/Modal.jsx"],"sourcesContent":["import PropTypes from 'prop-types';\nimport React 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 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 const renderer = IS_JEST || !portal ? (jsx) => jsx : ReactDOM.createPortal;\n\n const { ['data-testid']: testId } = others;\n\n return renderer(\n <View row className={styles(style.container, overflow && style.overflow, visible && style.visible)}>\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 children: PropTypes.node,\n fit: PropTypes.bool,\n portal: PropTypes.bool,\n overflow: 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;;;;;;;;;;;;AAEA,IAAMA,KAAK,GAAG,SAARA,KAAQ,OAUR;EAAA,IATJC,QASI,QATJA,QASI;EAAA,oBARJC,GAQI;EAAA,IARJA,GAQI,yBARE,KAQF;EAAA,yBAPJC,QAOI;EAAA,IAPJA,QAOI,8BAPO,IAOP;EAAA,uBANJC,MAMI;EAAA,IANJA,MAMI,4BANK,KAML;EAAA,IALJC,KAKI,QALJA,KAKI;EAAA,IAJJC,OAII,QAJJA,OAII;EAAA,IAHJC,MAGI,QAHJA,MAGI;EAAA,IAFJC,OAEI,QAFJA,OAEI;EAAA,IADDC,MACC;;EACJ,iBAAsB,uBAAtB;EAAA,IAAQC,SAAR,cAAQA,SAAR;;EAEA,IAAMC,QAAQ,GAAGC,oBAAW,CAACR,MAAZ,GAAqB,UAACS,GAAD;IAAA,OAASA,GAAT;EAAA,CAArB,GAAoCC,kBAASC,YAA9D;EAEA,IAAyBC,MAAzB,GAAoCP,MAApC,CAAS,aAAT;EAEA,OAAOE,QAAQ,eACb,6BAAC,gBAAD;IAAM,GAAG,MAAT;IAAU,SAAS,EAAE,qBAAOM,qBAAMC,SAAb,EAAwBf,QAAQ,IAAIc,qBAAMd,QAA1C,EAAoDG,OAAO,IAAIW,qBAAMX,OAArE;EAArB,gBACE,6BAAC,gBAAD,eACMG,MADN;IAEE,GAAG,MAFL;IAGE,SAAS,EAAE,qBAAOQ,qBAAME,KAAb,EAAoB,CAACjB,GAAD,IAAQe,qBAAMG,SAAlC,EAA6Cd,OAAO,IAAIW,qBAAMX,OAA9D,EAAuEG,MAAM,CAACY,SAA9E;EAHb,IAKG,CAAChB,KAAK,IAAIE,MAAT,IAAmBC,OAApB,kBACC,6BAAC,gBAAD;IAAM,GAAG,MAAT;IAAU,SAAS,EAAES,qBAAMK;EAA3B,GACGf,MAAM,iBACL,6BAAC,qBAAD;IAAW,OAAO,EAAEA,MAApB;IAA4B,eAAaS,MAAM,aAAMA,MAAN,oBAA6BO;EAA5E,gBACE,6BAAC,gBAAD;IAAM,KAAK,EAAEC,iBAAKC,IAAlB;IAAwB,SAAS,EAAER,qBAAMS;EAAzC,EADF,CAFJ,EAMGrB,KAAK,iBACJ,6BAAC,gBAAD;IAAM,QAAQ,MAAd;IAAe,SAAS,EAAE,qBAAOY,qBAAMZ,KAAb,EAAoB,CAACE,MAAD,IAAWU,qBAAMU,IAArC,EAA2C,CAACnB,OAAD,IAAYS,qBAAMW,KAA7D;EAA1B,GACGvB,KADH,CAPJ,EAWGG,OAAO,iBACN,6BAAC,qBAAD;IAAW,OAAO,EAAEA,OAApB;IAA6B,eAAaQ,MAAM,aAAMA,MAAN,qBAA8BO;EAA9E,gBACE,6BAAC,gBAAD;IAAM,KAAK,EAAEb,SAAS,IAAIL,KAAK,KAAKkB,SAAvB,GAAmCC,iBAAKK,KAAxC,GAAgDL,iBAAKM,WAAlE;IAA+E,SAAS,EAAEb,qBAAMS;EAAhG,EADF,CAZJ,CANJ,EAwBGzB,QAxBH,CADF,CADa,EA6Bb8B,QAAQ,CAACC,IA7BI,CAAf;AA+BD,CAhDD;;;AAkDAhC,KAAK,CAACiC,SAAN,GAAkB;EAChBhC,QAAQ,EAAEiC,mBAAUC,IADJ;EAEhBjC,GAAG,EAAEgC,mBAAUE,IAFC;EAGhBhC,MAAM,EAAE8B,mBAAUE,IAHF;EAIhBjC,QAAQ,EAAE+B,mBAAUE,IAJJ;EAKhB/B,KAAK,EAAE6B,mBAAUG,MALD;EAMhB/B,OAAO,EAAE4B,mBAAUE,IANH;EAOhB7B,MAAM,EAAE2B,mBAAUI,IAPF;EAQhB9B,OAAO,EAAE0B,mBAAUI;AARH,CAAlB"}
|
|
@@ -61,7 +61,8 @@
|
|
|
61
61
|
opacity: 1;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
|
|
64
|
+
/* S */
|
|
65
|
+
@media only screen and (max-width: 430px) {
|
|
65
66
|
.container {
|
|
66
67
|
align-items: flex-end;
|
|
67
68
|
align-content: flex-end;
|
|
@@ -89,7 +90,8 @@
|
|
|
89
90
|
}
|
|
90
91
|
}
|
|
91
92
|
|
|
92
|
-
|
|
93
|
+
/* M */
|
|
94
|
+
@media only screen and (min-width: 431px) {
|
|
93
95
|
.container {
|
|
94
96
|
align-items: center;
|
|
95
97
|
}
|
|
@@ -99,10 +101,15 @@
|
|
|
99
101
|
}
|
|
100
102
|
|
|
101
103
|
.modal {
|
|
104
|
+
border-radius: var(--mirai-ui-modal-border-radius);
|
|
102
105
|
opacity: 0;
|
|
103
106
|
transform: scale(1.1);
|
|
104
107
|
}
|
|
105
108
|
|
|
109
|
+
.modal.calcWidth {
|
|
110
|
+
width: calc(var(--mirai-ui-breakpoint-content) / 3);
|
|
111
|
+
}
|
|
112
|
+
|
|
106
113
|
.modal.visible {
|
|
107
114
|
opacity: 1;
|
|
108
115
|
transform: scale(1);
|
|
@@ -112,21 +119,3 @@
|
|
|
112
119
|
align-self: flex-end;
|
|
113
120
|
}
|
|
114
121
|
}
|
|
115
|
-
|
|
116
|
-
@media only screen and (min-width: 600px) {
|
|
117
|
-
.modal {
|
|
118
|
-
border-radius: var(--mirai-ui-modal-border-radius);
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
@media only screen and (min-width: 600px) and (orientation: landscape) {
|
|
123
|
-
.modal {
|
|
124
|
-
min-width: 25vw;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
@media only screen and (min-width: 600px) and (orientation: portrait) {
|
|
129
|
-
.modal {
|
|
130
|
-
min-width: 40vw;
|
|
131
|
-
}
|
|
132
|
-
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.stories.js","names":["title","Story","props","storyName","args","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 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;;;;;;;;eAEe;EAAEA,KAAK,EAAE;AAAT,C;;;AAER,IAAMC,KAAK,GAAG,SAARA,KAAQ,CAACC,KAAD;EAAA,oBACnB,oBAAC,YAAD,EAAWA,KAAX,eACE;IAAM,SAAS,EAAC;EAAhB,cADF,CADmB;AAAA,CAAd;;;AAMPD,KAAK,CAACE,SAAN,GAAkB,OAAlB;AAEAF,KAAK,CAACG,IAAN;EACEC,
|
|
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;;;;;;;;eAEe;EAAEA,KAAK,EAAE;AAAT,C;;;AAER,IAAMC,KAAK,GAAG,SAARA,KAAQ,CAACC,KAAD;EAAA,oBACnB,oBAAC,YAAD,EAAWA,KAAX,eACE;IAAM,SAAS,EAAC;EAAhB,cADF,CADmB;AAAA,CAAd;;;AAMPD,KAAK,CAACE,SAAN,GAAkB,OAAlB;AAEAF,KAAK,CAACG,IAAN;EACEC,GAAG,EAAE,KADP;EAEEC,QAAQ,EAAE,IAFZ;EAGEC,MAAM,EAAE,KAHV;EAIEP,KAAK,EAAE,OAJT;EAKEQ,OAAO,EAAE;AALX,GAMG,aANH,EAMmB,YANnB;AASAP,KAAK,CAACQ,QAAN,GAAiB;EACfC,MAAM,EAAE;IAAEC,MAAM,EAAE;EAAV,CADO;EAEfC,OAAO,EAAE;IAAED,MAAM,EAAE;EAAV;AAFM,CAAjB"}
|
|
@@ -6,7 +6,7 @@ exports[`component:<Modal> Mobile environment prop:onClose 1`] = `
|
|
|
6
6
|
class="view row container overflow visible"
|
|
7
7
|
>
|
|
8
8
|
<div
|
|
9
|
-
class="view fit modal visible"
|
|
9
|
+
class="view fit modal calcWidth visible"
|
|
10
10
|
data-testid="mirai-onClose"
|
|
11
11
|
>
|
|
12
12
|
<div
|
|
@@ -51,7 +51,7 @@ exports[`component:<Modal> Mobile environment prop:visible 1`] = `
|
|
|
51
51
|
class="view row container overflow visible"
|
|
52
52
|
>
|
|
53
53
|
<div
|
|
54
|
-
class="view fit modal visible"
|
|
54
|
+
class="view fit modal calcWidth visible"
|
|
55
55
|
/>
|
|
56
56
|
</div>
|
|
57
57
|
</DocumentFragment>
|
|
@@ -63,7 +63,7 @@ exports[`component:<Modal> inherit:className 1`] = `
|
|
|
63
63
|
class="view row container overflow"
|
|
64
64
|
>
|
|
65
65
|
<div
|
|
66
|
-
class="view fit modal mirai"
|
|
66
|
+
class="view fit modal calcWidth mirai"
|
|
67
67
|
/>
|
|
68
68
|
</div>
|
|
69
69
|
</DocumentFragment>
|
|
@@ -75,7 +75,7 @@ exports[`component:<Modal> prop:children 1`] = `
|
|
|
75
75
|
class="view row container overflow"
|
|
76
76
|
>
|
|
77
77
|
<div
|
|
78
|
-
class="view fit modal"
|
|
78
|
+
class="view fit modal calcWidth"
|
|
79
79
|
>
|
|
80
80
|
<span>
|
|
81
81
|
children
|
|
@@ -85,13 +85,25 @@ exports[`component:<Modal> prop:children 1`] = `
|
|
|
85
85
|
</DocumentFragment>
|
|
86
86
|
`;
|
|
87
87
|
|
|
88
|
+
exports[`component:<Modal> prop:fit 1`] = `
|
|
89
|
+
<DocumentFragment>
|
|
90
|
+
<div
|
|
91
|
+
class="view row container overflow"
|
|
92
|
+
>
|
|
93
|
+
<div
|
|
94
|
+
class="view fit modal"
|
|
95
|
+
/>
|
|
96
|
+
</div>
|
|
97
|
+
</DocumentFragment>
|
|
98
|
+
`;
|
|
99
|
+
|
|
88
100
|
exports[`component:<Modal> prop:onBack 1`] = `
|
|
89
101
|
<DocumentFragment>
|
|
90
102
|
<div
|
|
91
103
|
class="view row container overflow visible"
|
|
92
104
|
>
|
|
93
105
|
<div
|
|
94
|
-
class="view fit modal visible"
|
|
106
|
+
class="view fit modal calcWidth visible"
|
|
95
107
|
data-testid="mirai-onBack"
|
|
96
108
|
>
|
|
97
109
|
<div
|
|
@@ -135,7 +147,7 @@ exports[`component:<Modal> prop:onClose 1`] = `
|
|
|
135
147
|
class="view row container overflow visible"
|
|
136
148
|
>
|
|
137
149
|
<div
|
|
138
|
-
class="view fit modal visible"
|
|
150
|
+
class="view fit modal calcWidth visible"
|
|
139
151
|
data-testid="mirai-onClose"
|
|
140
152
|
>
|
|
141
153
|
<div
|
|
@@ -180,7 +192,7 @@ exports[`component:<Modal> prop:portal 1`] = `
|
|
|
180
192
|
class="view row container overflow"
|
|
181
193
|
>
|
|
182
194
|
<div
|
|
183
|
-
class="view fit modal"
|
|
195
|
+
class="view fit modal calcWidth"
|
|
184
196
|
/>
|
|
185
197
|
</div>
|
|
186
198
|
</DocumentFragment>
|
|
@@ -192,7 +204,7 @@ exports[`component:<Modal> prop:title 1`] = `
|
|
|
192
204
|
class="view row container overflow"
|
|
193
205
|
>
|
|
194
206
|
<div
|
|
195
|
-
class="view fit modal"
|
|
207
|
+
class="view fit modal calcWidth"
|
|
196
208
|
>
|
|
197
209
|
<div
|
|
198
210
|
class="view row header"
|
|
@@ -214,7 +226,7 @@ exports[`component:<Modal> prop:visible & prop:overflow (false) 1`] = `
|
|
|
214
226
|
class="view row container visible"
|
|
215
227
|
>
|
|
216
228
|
<div
|
|
217
|
-
class="view fit modal visible"
|
|
229
|
+
class="view fit modal calcWidth visible"
|
|
218
230
|
/>
|
|
219
231
|
</div>
|
|
220
232
|
</DocumentFragment>
|
|
@@ -226,7 +238,7 @@ exports[`component:<Modal> prop:visible 1`] = `
|
|
|
226
238
|
class="view row container overflow visible"
|
|
227
239
|
>
|
|
228
240
|
<div
|
|
229
|
-
class="view fit modal visible"
|
|
241
|
+
class="view fit modal calcWidth visible"
|
|
230
242
|
/>
|
|
231
243
|
</div>
|
|
232
244
|
</DocumentFragment>
|
|
@@ -238,7 +250,7 @@ exports[`component:<Modal> renders 1`] = `
|
|
|
238
250
|
class="view row container overflow"
|
|
239
251
|
>
|
|
240
252
|
<div
|
|
241
|
-
class="view fit modal"
|
|
253
|
+
class="view fit modal calcWidth"
|
|
242
254
|
/>
|
|
243
255
|
</div>
|
|
244
256
|
</DocumentFragment>
|
|
@@ -250,7 +262,7 @@ exports[`component:<Modal> testID 1`] = `
|
|
|
250
262
|
class="view row container overflow"
|
|
251
263
|
>
|
|
252
264
|
<div
|
|
253
|
-
class="view fit modal"
|
|
265
|
+
class="view fit modal calcWidth"
|
|
254
266
|
data-testid="mirai"
|
|
255
267
|
/>
|
|
256
268
|
</div>
|
package/build/hooks/useDevice.js
CHANGED
|
@@ -45,7 +45,7 @@ var useDevice = function useDevice() {
|
|
|
45
45
|
}, []);
|
|
46
46
|
return (0, _react.useMemo)(function () {
|
|
47
47
|
var isLandscape = resolution.width >= resolution.height;
|
|
48
|
-
var isMobile = resolution.width
|
|
48
|
+
var isMobile = resolution.width <= 430;
|
|
49
49
|
var navigator = (0, _helpers.getNavigator)();
|
|
50
50
|
return _objectSpread(_objectSpread(_objectSpread({}, resolution), navigator), {}, {
|
|
51
51
|
isLandscape: isLandscape,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDevice.js","names":["useDevice","resolution","setResolution","handleResize","window","addEventListener","removeEventListener","isLandscape","width","height","isMobile","navigator","isPortrait","isDesktop"],"sources":["../../src/hooks/useDevice.js"],"sourcesContent":["import { useEffect, useMemo, useState } from 'react';\n\nimport { getResolution, getNavigator } from './helpers';\n\nexport const useDevice = () => {\n const [resolution, setResolution] = useState(getResolution());\n\n useEffect(() => {\n const handleResize = () => setResolution(getResolution());\n\n window.addEventListener('resize', handleResize);\n\n return () => window.removeEventListener('resize', handleResize);\n }, []);\n\n return useMemo(() => {\n const isLandscape = resolution.width >= resolution.height;\n const isMobile = resolution.width
|
|
1
|
+
{"version":3,"file":"useDevice.js","names":["useDevice","resolution","setResolution","handleResize","window","addEventListener","removeEventListener","isLandscape","width","height","isMobile","navigator","isPortrait","isDesktop"],"sources":["../../src/hooks/useDevice.js"],"sourcesContent":["import { useEffect, useMemo, useState } from 'react';\n\nimport { getResolution, getNavigator } from './helpers';\n\nexport const useDevice = () => {\n const [resolution, setResolution] = useState(getResolution());\n\n useEffect(() => {\n const handleResize = () => setResolution(getResolution());\n\n window.addEventListener('resize', handleResize);\n\n return () => window.removeEventListener('resize', handleResize);\n }, []);\n\n return useMemo(() => {\n const isLandscape = resolution.width >= resolution.height;\n const isMobile = resolution.width <= 430;\n const navigator = getNavigator();\n\n return {\n ...resolution,\n ...navigator,\n isLandscape,\n isPortrait: !isLandscape,\n isMobile,\n isDesktop: !isMobile,\n };\n }, [resolution]);\n};\n"],"mappings":";;;;;;;AAAA;;AAEA;;;;;;;;;;;;;;;;;;;;AAEO,IAAMA,SAAS,GAAG,SAAZA,SAAY,GAAM;EAC7B,gBAAoC,qBAAS,6BAAT,CAApC;EAAA;EAAA,IAAOC,UAAP;EAAA,IAAmBC,aAAnB;;EAEA,sBAAU,YAAM;IACd,IAAMC,YAAY,GAAG,SAAfA,YAAe;MAAA,OAAMD,aAAa,CAAC,6BAAD,CAAnB;IAAA,CAArB;;IAEAE,MAAM,CAACC,gBAAP,CAAwB,QAAxB,EAAkCF,YAAlC;IAEA,OAAO;MAAA,OAAMC,MAAM,CAACE,mBAAP,CAA2B,QAA3B,EAAqCH,YAArC,CAAN;IAAA,CAAP;EACD,CAND,EAMG,EANH;EAQA,OAAO,oBAAQ,YAAM;IACnB,IAAMI,WAAW,GAAGN,UAAU,CAACO,KAAX,IAAoBP,UAAU,CAACQ,MAAnD;IACA,IAAMC,QAAQ,GAAGT,UAAU,CAACO,KAAX,IAAoB,GAArC;IACA,IAAMG,SAAS,GAAG,4BAAlB;IAEA,qDACKV,UADL,GAEKU,SAFL;MAGEJ,WAAW,EAAXA,WAHF;MAIEK,UAAU,EAAE,CAACL,WAJf;MAKEG,QAAQ,EAARA,QALF;MAMEG,SAAS,EAAE,CAACH;IANd;EAQD,CAbM,EAaJ,CAACT,UAAD,CAbI,CAAP;AAcD,CAzBM"}
|