@cuemath/leap 3.2.11-mb → 3.2.11
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/dist/assets/lottie/lottie.js +1 -1
- package/dist/assets/lottie/lottie.js.map +1 -1
- package/dist/features/auth/account-selector/account-selector.js +26 -25
- package/dist/features/auth/account-selector/account-selector.js.map +1 -1
- package/dist/features/auth/comps/auth-page-layout/auth-page-layout.js +15 -14
- package/dist/features/auth/comps/auth-page-layout/auth-page-layout.js.map +1 -1
- package/dist/features/auth/comps/user-list/user-item/user-item.js +30 -31
- package/dist/features/auth/comps/user-list/user-item/user-item.js.map +1 -1
- package/dist/features/auth/comps/user-list/user-list.js +35 -34
- package/dist/features/auth/comps/user-list/user-list.js.map +1 -1
- package/dist/features/auth/forgot-password/forgot-password-styled.js +14 -15
- package/dist/features/auth/forgot-password/forgot-password-styled.js.map +1 -1
- package/dist/features/auth/login/identifier-otp-form/identifier-otp-form-styled.js +6 -7
- package/dist/features/auth/login/identifier-otp-form/identifier-otp-form-styled.js.map +1 -1
- package/dist/features/auth/login/login-styled.js +8 -9
- package/dist/features/auth/login/login-styled.js.map +1 -1
- package/dist/features/circle-games/game-launcher/hooks/use-game-launcher-journey/use-game-launcher-journey.js +121 -98
- package/dist/features/circle-games/game-launcher/hooks/use-game-launcher-journey/use-game-launcher-journey.js.map +1 -1
- package/dist/features/circle-games/game-launcher/hooks/use-table-infinite-launcher-journey/use-table-infinite-launcher-journey.js +29 -28
- package/dist/features/circle-games/game-launcher/hooks/use-table-infinite-launcher-journey/use-table-infinite-launcher-journey.js.map +1 -1
- package/dist/features/circle-games/game-launcher/hooks/use-table-launcher-journey/use-table-launcher-journey.js +43 -42
- package/dist/features/circle-games/game-launcher/hooks/use-table-launcher-journey/use-table-launcher-journey.js.map +1 -1
- package/dist/features/circle-games/games/tutorial/tutorial.js +43 -35
- package/dist/features/circle-games/games/tutorial/tutorial.js.map +1 -1
- package/dist/features/circle-games/sign-up/comp/grade-input/grade-input-styled.js +2 -2
- package/dist/features/circle-games/sign-up/comp/grade-input/grade-input-styled.js.map +1 -1
- package/dist/features/circle-games/sign-up/comp/grade-input/grade-input.js +1 -1
- package/dist/features/circle-games/sign-up/comp/grade-input/grade-input.js.map +1 -1
- package/dist/features/circle-games/sign-up/comp/username-input/username-input.js +26 -24
- package/dist/features/circle-games/sign-up/comp/username-input/username-input.js.map +1 -1
- package/dist/features/circle-games/sign-up/constants.js +3 -1
- package/dist/features/circle-games/sign-up/constants.js.map +1 -1
- package/dist/features/cue-canvas/hooks/use-canvas-sync-broker.js +42 -42
- package/dist/features/cue-canvas/hooks/use-canvas-sync-broker.js.map +1 -1
- package/dist/features/journey/comps/coachmark/coachmark.js +29 -27
- package/dist/features/journey/comps/coachmark/coachmark.js.map +1 -1
- package/dist/features/journey/journey-id/journey-id-student.js +2 -2
- package/dist/features/journey/journey-id/journey-id-student.js.map +1 -1
- package/dist/features/journey/use-journey/journey-context-provider.js +73 -72
- package/dist/features/journey/use-journey/journey-context-provider.js.map +1 -1
- package/dist/features/journey/use-journey/journey-styled.js +6 -4
- package/dist/features/journey/use-journey/journey-styled.js.map +1 -1
- package/dist/features/ui/arrow-tooltip/arrow-tooltip-constants.js +6 -0
- package/dist/features/ui/arrow-tooltip/arrow-tooltip-constants.js.map +1 -0
- package/dist/features/ui/arrow-tooltip/arrow-tooltip-styled.js +12 -60
- package/dist/features/ui/arrow-tooltip/arrow-tooltip-styled.js.map +1 -1
- package/dist/features/ui/arrow-tooltip/arrow-tooltip.js +72 -77
- package/dist/features/ui/arrow-tooltip/arrow-tooltip.js.map +1 -1
- package/dist/features/ui/arrow-tooltip/comps/tooltip-body-styled.js +63 -0
- package/dist/features/ui/arrow-tooltip/comps/tooltip-body-styled.js.map +1 -0
- package/dist/features/ui/arrow-tooltip/comps/tooltip-body.js +21 -0
- package/dist/features/ui/arrow-tooltip/comps/tooltip-body.js.map +1 -0
- package/dist/features/ui/error/error.js +65 -27
- package/dist/features/ui/error/error.js.map +1 -1
- package/dist/features/ui/modals/modal-styled.js +35 -28
- package/dist/features/ui/modals/modal-styled.js.map +1 -1
- package/dist/features/ui/modals/modal.js +40 -14
- package/dist/features/ui/modals/modal.js.map +1 -1
- package/dist/features/ui/nudge/nudge-styled.js +14 -7
- package/dist/features/ui/nudge/nudge-styled.js.map +1 -1
- package/dist/features/ui/nudge/nudge.js +13 -12
- package/dist/features/ui/nudge/nudge.js.map +1 -1
- package/dist/features/ui/sticker-grid/sticker-grid-styles.js +86 -0
- package/dist/features/ui/sticker-grid/sticker-grid-styles.js.map +1 -0
- package/dist/features/ui/sticker-grid/sticker-grid.js +24 -0
- package/dist/features/ui/sticker-grid/sticker-grid.js.map +1 -0
- package/dist/features/ui/sticker-grid/sticker.js +57 -0
- package/dist/features/ui/sticker-grid/sticker.js.map +1 -0
- package/dist/features/ui/stickers/constants.js +6 -0
- package/dist/features/ui/stickers/constants.js.map +1 -0
- package/dist/features/ui/stickers/stickers-effects.js +64 -0
- package/dist/features/ui/stickers/stickers-effects.js.map +1 -0
- package/dist/features/ui/stickers/stickers-styled.js +29 -0
- package/dist/features/ui/stickers/stickers-styled.js.map +1 -0
- package/dist/features/ui/stickers/stickers-utils.js +91 -0
- package/dist/features/ui/stickers/stickers-utils.js.map +1 -0
- package/dist/features/ui/stickers/stickers.js +40 -0
- package/dist/features/ui/stickers/stickers.js.map +1 -0
- package/dist/features/ui/streak-icon/streak-icon-styled.js +13 -13
- package/dist/features/ui/streak-icon/streak-icon-styled.js.map +1 -1
- package/dist/features/ui/streak-icon/streak-icon.js +17 -15
- package/dist/features/ui/streak-icon/streak-icon.js.map +1 -1
- package/dist/features/ui/text/text.js +40 -36
- package/dist/features/ui/text/text.js.map +1 -1
- package/dist/features/ui/theme/constants.js +4 -2
- package/dist/features/ui/theme/constants.js.map +1 -1
- package/dist/features/ui/theme/get-device.js +3 -3
- package/dist/features/ui/theme/get-device.js.map +1 -1
- package/dist/features/worksheet/worksheet/constants.js +12 -13
- package/dist/features/worksheet/worksheet/constants.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.js +246 -260
- package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-styled.js +37 -28
- package/dist/features/worksheet/worksheet/worksheet-styled.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet.js +166 -164
- package/dist/features/worksheet/worksheet/worksheet.js.map +1 -1
- package/dist/index.d.ts +48 -16
- package/dist/index.js +353 -349
- package/dist/index.js.map +1 -1
- package/dist/static/nudge-tap.0591aef4.json +1 -0
- package/package.json +1 -1
- package/dist/features/hooks/use-viewport/use-viewport.js +0 -22
- package/dist/features/hooks/use-viewport/use-viewport.js.map +0 -1
- package/dist/static/nudge-tap.5cb30093.json +0 -1057
package/dist/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"v":"5.12.1","fr":30,"ip":22,"op":46,"w":52,"h":60,"nm":"Click 2","ddd":0,"assets":[{"id":"comp_0","nm":"Click","fr":30,"layers":[{"ddd":0,"ind":1,"ty":3,"nm":"Null Collect 1","sr":1,"ks":{"o":{"a":0,"k":0,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[144.048,164.507,0],"ix":2,"l":2},"a":{"a":0,"k":[50,50,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"ip":-2,"op":210,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"Vector","parent":1,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.36],"y":[0]},"t":22,"s":[10]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":28,"s":[6]},{"t":35,"s":[10]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.36,"y":1},"o":{"x":0.36,"y":0},"t":22,"s":[68.322,98.308,0],"to":[-0.75,-1.375,0],"ti":[0,0,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.64,"y":0},"t":28,"s":[63.822,90.058,0],"to":[0,0,0],"ti":[-0.75,-1.375,0]},{"t":35,"s":[68.322,98.308,0]}],"ix":2,"l":2},"a":{"a":0,"k":[79.34,137.941,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.36,0.36,0.36],"y":[0,0,0]},"t":22,"s":[50,50,100]},{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":28,"s":[48,48,100]},{"t":35,"s":[50,50,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":22,"s":[{"i":[[0,-4.819],[0.372,0.364],[6.904,6.913],[3.313,1.026],[-0.282,-10.085],[-3.264,-3.45],[-12.203,-12.636],[-18.789,-10.143],[-11.451,0.172],[-7.897,-0.025],[-9.87,5.548],[-0.429,25.518],[0.029,35.223],[0.36,1.292],[8.779,-5.49],[0.024,-5.454],[0.016,-11.99],[2.884,-0.503],[0.004,4.775],[0.09,18.053],[0.772,1.962],[7.215,-6.104],[-0.016,-5.073],[0.008,-12.06],[0.139,-0.867],[3.844,2.159],[0,2.911],[0.02,18.462],[0.453,1.525],[7.742,-0.863],[-0.151,-6.852],[0.045,-10.764],[4.608,2.441],[-0.004,2.768],[-0.004,15.465],[2.676,3.07],[5.572,-2.011],[0,-6.631],[-0.001,-45.807]],"o":[[-0.744,-0.666],[-6.087,-6.083],[-2.439,-2.441],[-9.658,-2.992],[0.135,4.816],[4.212,4.452],[14.671,15.195],[9.919,5.355],[7.897,-0.119],[11.259,0.033],[22.286,-12.53],[0.592,-35.215],[0,-1.341],[-2.786,-9.979],[-4.661,2.915],[-0.053,11.99],[-0.004,3.503],[-4.674,0.814],[-0.012,-18.053],[-0.012,-2.114],[-3.799,-9.664],[-3.959,3.352],[0.041,12.06],[0,0.883],[-0.699,4.366],[-2.807,-1.574],[0,-18.462],[-0.004,-1.631],[-2.173,-7.289],[-7.207,0.801],[0.069,3.131],[-0.025,5.351],[-2.594,-1.374],[0.029,-28.343],[0,-3.994],[-4.502,-5.167],[-6.255,2.257],[0,32.036],[0.001,45.282]],"v":[[-45.425,76.939],[-46.945,75.582],[-85.931,36.614],[-94.506,31.398],[-112.809,45.101],[-107.269,57.407],[-58.731,109.362],[-9.768,148.988],[22.065,157.594],[45.76,157.573],[77.597,149.777],[112.507,92.589],[112.633,-13.081],[112.078,-17.095],[89.616,-25.864],[82.684,-13.085],[82.659,22.887],[77.834,29.489],[69.827,22.76],[69.77,-31.403],[68.597,-37.72],[45.38,-43.422],[39.943,-30.627],[39.951,5.553],[39.824,8.202],[30.501,12.662],[27.086,5.59],[27.074,-49.8],[26.731,-54.677],[10.361,-65.682],[-2.623,-51.374],[-2.631,-9.675],[-12.248,-3.662],[-15.483,-10.182],[-15.467,-141.606],[-19.132,-152.313],[-35.547,-156.679],[-45.429,-142.252],[-45.427,-11.614]],"c":true}]},{"i":{"x":0.667,"y":1},"o":{"x":0.167,"y":0},"t":27,"s":[{"i":[[0,-4.819],[0.372,0.364],[6.904,6.913],[3.313,1.026],[-0.282,-10.085],[-3.264,-3.45],[-12.203,-12.637],[-18.789,-10.143],[-11.451,0.172],[-7.897,-0.025],[-9.87,5.548],[-0.429,25.518],[0.029,35.223],[0.36,1.292],[8.779,-5.49],[0.024,-5.454],[0.016,-11.99],[2.884,-0.503],[0.004,4.775],[0.09,18.053],[0.772,1.962],[7.215,-6.104],[-0.016,-5.073],[0.008,-12.06],[0.139,-0.867],[3.844,2.159],[0,2.911],[0.02,18.462],[0.453,1.525],[7.742,-0.863],[-0.151,-6.852],[0.045,-10.764],[4.608,2.441],[-0.004,2.768],[-0.004,15.465],[2.676,3.07],[5.572,-2.011],[0,-6.631],[-5.501,-47.386]],"o":[[-0.744,-0.666],[-6.087,-6.083],[-2.439,-2.441],[-9.658,-2.993],[0.135,4.816],[4.212,4.452],[14.671,15.196],[9.919,5.355],[7.897,-0.119],[11.259,0.033],[22.286,-12.53],[0.592,-35.215],[0,-1.341],[-2.786,-9.979],[-4.661,2.915],[-0.053,11.99],[-0.004,3.503],[-4.674,0.814],[-0.012,-18.053],[-0.012,-2.114],[-3.799,-9.664],[-3.959,3.352],[0.041,12.06],[0,0.883],[-0.699,4.366],[-2.807,-1.574],[0,-18.462],[-0.004,-1.631],[-2.173,-7.289],[-7.207,0.801],[0.069,3.131],[-0.025,5.351],[-2.594,-1.374],[0.029,-28.343],[0,-3.994],[-4.502,-5.167],[-6.255,2.257],[0,32.036],[0.001,45.282]],"v":[[-45.425,76.939],[-46.945,75.582],[-85.931,36.615],[-94.506,31.398],[-112.809,45.101],[-107.269,57.407],[-58.731,109.362],[-9.768,148.988],[22.065,157.594],[45.76,157.573],[77.597,149.777],[112.507,92.589],[112.633,-13.081],[112.078,-17.095],[89.616,-25.864],[82.684,-13.085],[82.659,22.887],[77.834,29.489],[69.827,22.76],[69.77,-31.403],[68.597,-37.72],[45.38,-43.422],[39.943,-30.627],[39.951,5.553],[39.824,8.202],[30.501,12.662],[27.086,5.59],[27.074,-49.8],[26.731,-54.677],[10.361,-65.682],[-2.623,-51.374],[-2.631,-9.675],[-12.248,-3.662],[-15.483,-10.182],[-30.188,-137.792],[-33.852,-148.499],[-50.267,-152.865],[-60.15,-138.438],[-45.427,-11.614]],"c":true}]},{"i":{"x":0.833,"y":1},"o":{"x":0.167,"y":0},"t":28,"s":[{"i":[[0,-4.819],[0.372,0.364],[6.904,6.913],[3.313,1.026],[-0.282,-10.085],[-3.264,-3.45],[-12.203,-12.637],[-18.789,-10.143],[-11.451,0.172],[-7.897,-0.025],[-9.87,5.548],[-0.429,25.518],[0.029,35.223],[0.36,1.292],[8.779,-5.49],[0.024,-5.454],[0.016,-11.99],[2.884,-0.503],[0.004,4.775],[0.09,18.053],[0.772,1.962],[7.215,-6.104],[-0.016,-5.073],[0.008,-12.06],[0.139,-0.867],[3.844,2.159],[0,2.911],[0.02,18.462],[0.453,1.525],[7.742,-0.863],[-0.151,-6.852],[0.045,-10.764],[4.608,2.441],[-0.004,2.768],[-0.004,15.465],[2.676,3.07],[5.572,-2.011],[0,-6.631],[-5.501,-47.386]],"o":[[-0.744,-0.666],[-6.087,-6.083],[-2.439,-2.441],[-9.658,-2.993],[0.135,4.816],[4.212,4.452],[14.671,15.196],[9.919,5.355],[7.897,-0.119],[11.259,0.033],[22.286,-12.53],[0.592,-35.215],[0,-1.341],[-2.786,-9.979],[-4.661,2.915],[-0.053,11.99],[-0.004,3.503],[-4.674,0.814],[-0.012,-18.053],[-0.012,-2.114],[-3.799,-9.664],[-3.959,3.352],[0.041,12.06],[0,0.883],[-0.699,4.366],[-2.807,-1.574],[0,-18.462],[-0.004,-1.631],[-2.173,-7.289],[-7.207,0.801],[0.069,3.131],[-0.025,5.351],[-2.594,-1.374],[0.029,-28.343],[0,-3.994],[-4.502,-5.167],[-6.255,2.257],[0,32.036],[0.001,45.282]],"v":[[-45.425,76.939],[-46.945,75.582],[-85.931,36.615],[-94.506,31.398],[-112.809,45.101],[-107.269,57.407],[-58.731,109.362],[-9.768,148.988],[22.065,157.594],[45.76,157.573],[77.597,149.777],[112.507,92.589],[112.633,-13.081],[112.078,-17.095],[89.616,-25.864],[82.684,-13.085],[82.659,22.887],[77.834,29.489],[69.827,22.76],[69.77,-31.403],[68.597,-37.72],[45.38,-43.422],[39.943,-30.627],[39.951,5.553],[39.824,8.202],[30.501,12.662],[27.086,5.59],[27.074,-49.8],[26.731,-54.677],[10.361,-65.682],[-2.623,-51.374],[-2.631,-9.675],[-12.248,-3.662],[-15.483,-10.182],[-30.188,-137.792],[-33.852,-148.499],[-50.267,-152.865],[-60.15,-138.438],[-45.427,-11.614]],"c":true}]},{"t":32,"s":[{"i":[[0,-4.819],[0.372,0.364],[6.904,6.913],[3.313,1.026],[-0.282,-10.085],[-3.264,-3.45],[-12.203,-12.636],[-18.789,-10.143],[-11.451,0.172],[-7.897,-0.025],[-9.87,5.548],[-0.429,25.518],[0.029,35.223],[0.36,1.292],[8.779,-5.49],[0.024,-5.454],[0.016,-11.99],[2.884,-0.503],[0.004,4.775],[0.09,18.053],[0.772,1.962],[7.215,-6.104],[-0.016,-5.073],[0.008,-12.06],[0.139,-0.867],[3.844,2.159],[0,2.911],[0.02,18.462],[0.453,1.525],[7.742,-0.863],[-0.151,-6.852],[0.045,-10.764],[4.608,2.441],[-0.004,2.768],[-0.004,15.465],[2.676,3.07],[5.572,-2.011],[0,-6.631],[-0.001,-45.807]],"o":[[-0.744,-0.666],[-6.087,-6.083],[-2.439,-2.441],[-9.658,-2.992],[0.135,4.816],[4.212,4.452],[14.671,15.195],[9.919,5.355],[7.897,-0.119],[11.259,0.033],[22.286,-12.53],[0.592,-35.215],[0,-1.341],[-2.786,-9.979],[-4.661,2.915],[-0.053,11.99],[-0.004,3.503],[-4.674,0.814],[-0.012,-18.053],[-0.012,-2.114],[-3.799,-9.664],[-3.959,3.352],[0.041,12.06],[0,0.883],[-0.699,4.366],[-2.807,-1.574],[0,-18.462],[-0.004,-1.631],[-2.173,-7.289],[-7.207,0.801],[0.069,3.131],[-0.025,5.351],[-2.594,-1.374],[0.029,-28.343],[0,-3.994],[-4.502,-5.167],[-6.255,2.257],[0,32.036],[0.001,45.282]],"v":[[-45.425,76.939],[-46.945,75.582],[-85.931,36.614],[-94.506,31.398],[-112.809,45.101],[-107.269,57.407],[-58.731,109.362],[-9.768,148.988],[22.065,157.594],[45.76,157.573],[77.597,149.777],[112.507,92.589],[112.633,-13.081],[112.078,-17.095],[89.616,-25.864],[82.684,-13.085],[82.659,22.887],[77.834,29.489],[69.827,22.76],[69.77,-31.403],[68.597,-37.72],[45.38,-43.422],[39.943,-30.627],[39.951,5.553],[39.824,8.202],[30.501,12.662],[27.086,5.59],[27.074,-49.8],[26.731,-54.677],[10.361,-65.682],[-2.623,-51.374],[-2.631,-9.675],[-12.248,-3.662],[-15.483,-10.182],[-15.467,-141.606],[-19.132,-152.313],[-35.547,-156.679],[-45.429,-142.252],[-45.427,-11.614]],"c":true}]}],"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"st","c":{"a":0,"k":[0,0,0,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":26,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":-21.936,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Vector","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":210,"st":0,"ct":1,"bm":0},{"ddd":0,"ind":4,"ty":4,"nm":"Shape Layer 7","parent":1,"sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":29,"s":[100]},{"t":37,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"s":true,"x":{"a":0,"k":-6.822,"ix":3},"y":{"a":0,"k":-44.808,"ix":4}},"a":{"a":0,"k":[-76.025,-52.846,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":1,"k":[{"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0.208,0.208],"y":[0,0]},"t":26,"s":[0,0]},{"t":35,"s":[65.27,65.27]}],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"st","c":{"a":0,"k":[0,0,0,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":0,"k":[0.817815563725,0.817815563725,0.817815563725,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[-76.025,-52.846],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":-2,"op":208,"st":-2,"ct":1,"bm":0}]}],"layers":[{"ddd":0,"ind":1,"ty":0,"nm":"Click","refId":"comp_0","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"s":true,"x":{"a":0,"k":24.25,"ix":3},"y":{"a":0,"k":28.75,"ix":4}},"a":{"a":0,"k":[125,125,0],"ix":1,"l":2},"s":{"a":0,"k":[32,32,100],"ix":6,"l":2}},"ao":0,"w":250,"h":250,"ip":0,"op":210,"st":0,"bm":0}],"markers":[],"props":{}}
|
package/package.json
CHANGED
@@ -1,22 +0,0 @@
|
|
1
|
-
import { useState as c, useEffect as r } from "react";
|
2
|
-
import { getTheme as i } from "../../ui/theme/get-theme.js";
|
3
|
-
const a = () => {
|
4
|
-
const [e, o] = c(() => i().device);
|
5
|
-
r(() => {
|
6
|
-
function t() {
|
7
|
-
const { device: n } = i();
|
8
|
-
o(n);
|
9
|
-
}
|
10
|
-
return window.addEventListener("resize", t), () => window.removeEventListener("resize", t);
|
11
|
-
}, []);
|
12
|
-
const s = e === "mobile";
|
13
|
-
return {
|
14
|
-
isMobile: s,
|
15
|
-
isCompact: s || e === "tablet",
|
16
|
-
isDesktop: e === "small-desktop" || e === "desktop" || e === "large-device" || e === "xlarge-device"
|
17
|
-
};
|
18
|
-
}, w = a;
|
19
|
-
export {
|
20
|
-
w as default
|
21
|
-
};
|
22
|
-
//# sourceMappingURL=use-viewport.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"use-viewport.js","sources":["../../../../src/features/hooks/use-viewport/use-viewport.ts"],"sourcesContent":["import type { IUseViewportReturn } from './use-viewport-types';\n\nimport { useEffect, useState } from 'react';\n\nimport { getTheme } from '../../ui/theme/get-theme';\n\nconst useViewport = (): IUseViewportReturn => {\n const [deviceType, setDeviceType] = useState(() => getTheme().device);\n\n useEffect(() => {\n function handleResize() {\n const { device: newDeviceType } = getTheme();\n\n setDeviceType(newDeviceType);\n }\n\n window.addEventListener('resize', handleResize);\n\n return () => window.removeEventListener('resize', handleResize);\n }, []);\n\n const isMobile = deviceType === 'mobile';\n const isTablet = deviceType === 'tablet';\n const isSmallDesktop = deviceType === 'small-desktop';\n const isDesktop = deviceType === 'desktop';\n const isLarge = deviceType === 'large-device';\n const isXL = deviceType === 'xlarge-device';\n\n return {\n isMobile: isMobile,\n isCompact: isMobile || isTablet,\n isDesktop: isSmallDesktop || isDesktop || isLarge || isXL,\n };\n};\n\nexport default useViewport;\n"],"names":["useViewport","deviceType","setDeviceType","useState","getTheme","useEffect","handleResize","newDeviceType","isMobile","useViewport$1"],"mappings":";;AAMA,MAAMA,IAAc,MAA0B;AACtC,QAAA,CAACC,GAAYC,CAAa,IAAIC,EAAS,MAAMC,EAAA,EAAW,MAAM;AAEpE,EAAAC,EAAU,MAAM;AACd,aAASC,IAAe;AACtB,YAAM,EAAE,QAAQC,EAAc,IAAIH,EAAS;AAE3C,MAAAF,EAAcK,CAAa;AAAA,IAC7B;AAEO,kBAAA,iBAAiB,UAAUD,CAAY,GAEvC,MAAM,OAAO,oBAAoB,UAAUA,CAAY;AAAA,EAChE,GAAG,CAAE,CAAA;AAEL,QAAME,IAAWP,MAAe;AAOzB,SAAA;AAAA,IACL,UAAAO;AAAA,IACA,WAAWA,KARIP,MAAe;AAAA,IAS9B,WARqBA,MAAe,mBACpBA,MAAe,aACjBA,MAAe,kBAClBA,MAAe;AAAA,EAK2B;AAEzD,GAEAQ,IAAeT;"}
|