@salutejs/plasma-new-hope 0.326.1-canary.2018.15775755664.0 → 0.326.1-canary.2019.15674501487.0
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/cjs/components/Calendar/CalendarBase/CalendarBase.js +0 -12
- package/cjs/components/Calendar/CalendarBase/CalendarBase.js.map +1 -1
- package/cjs/components/Calendar/CalendarDouble/CalendarDouble.js +0 -12
- package/cjs/components/Calendar/CalendarDouble/CalendarDouble.js.map +1 -1
- package/cjs/components/Calendar/ui/CalendarDays/CalendarDays.js +0 -3
- package/cjs/components/Calendar/ui/CalendarDays/CalendarDays.js.map +1 -1
- package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js +0 -3
- package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js.map +1 -1
- package/cjs/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +0 -3
- package/cjs/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js.map +1 -1
- package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js +0 -3
- package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js.map +1 -1
- package/cjs/components/Carousel/CarouselNew/Carousel.css +5 -5
- package/cjs/components/Carousel/CarouselNew/Carousel.js +6 -9
- package/cjs/components/Carousel/CarouselNew/Carousel.js.map +1 -1
- package/cjs/components/Carousel/CarouselNew/Carousel.styles.js +4 -13
- package/cjs/components/Carousel/CarouselNew/Carousel.styles.js.map +1 -1
- package/cjs/components/Carousel/CarouselNew/Carousel.styles_151pk3s.css +5 -0
- package/cjs/components/Carousel/CarouselNew/Carousel.tokens.js +1 -9
- package/cjs/components/Carousel/CarouselNew/Carousel.tokens.js.map +1 -1
- package/cjs/components/Carousel/CarouselNew/hooks/useCarousel.js +357 -49
- package/cjs/components/Carousel/CarouselNew/hooks/useCarousel.js.map +1 -1
- package/cjs/components/Carousel/CarouselNew/ui/Dots/Dots.js +38 -52
- package/cjs/components/Carousel/CarouselNew/ui/Dots/Dots.js.map +1 -1
- package/cjs/components/Carousel/CarouselOld/CarouselItem.js +1 -1
- package/cjs/components/Carousel/CarouselOld/CarouselItem.js.map +1 -1
- package/{es/components/Carousel/CarouselOld/CarouselItem_uvoxfy.css → cjs/components/Carousel/CarouselOld/CarouselItem_cghzk7.css} +1 -1
- package/cjs/components/CodeField/CodeField.css +6 -6
- package/cjs/components/CodeField/CodeField.styles.js +1 -1
- package/cjs/components/CodeField/CodeField.styles.js.map +1 -1
- package/{es/components/CodeField/CodeField.styles_7zxgpc.css → cjs/components/CodeField/CodeField.styles_ebdpd0.css} +1 -1
- package/cjs/components/Drawer/Drawer.js +3 -4
- package/cjs/components/Drawer/Drawer.js.map +1 -1
- package/cjs/components/Drawer/hooks/useDrawer.js +2 -2
- package/cjs/components/Drawer/hooks/useDrawer.js.map +1 -1
- package/cjs/components/Mask/Mask.js +3 -3
- package/cjs/components/Mask/Mask.js.map +1 -1
- package/cjs/components/Modal/Modal.js +2 -3
- package/cjs/components/Modal/Modal.js.map +1 -1
- package/cjs/components/Modal/hooks/useModal.js +1 -1
- package/cjs/components/Modal/hooks/useModal.js.map +1 -1
- package/cjs/components/Popup/Popup.js +1 -2
- package/cjs/components/Popup/Popup.js.map +1 -1
- package/cjs/components/Popup/PopupContext.js +15 -13
- package/cjs/components/Popup/PopupContext.js.map +1 -1
- package/cjs/components/Rating/Rating.css +6 -6
- package/cjs/components/Rating/Rating.styles.js +1 -1
- package/cjs/components/Rating/Rating.styles.js.map +1 -1
- package/{es/components/Rating/Rating.styles_hi5qwl.css → cjs/components/Rating/Rating.styles_dg76kk.css} +1 -1
- package/cjs/components/Rating/utils/getIcons.css +6 -6
- package/cjs/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.css +4 -4
- package/cjs/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.styles.js +1 -1
- package/cjs/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.styles.js.map +1 -1
- package/cjs/components/Tabs/ui/vertical/VerticalTabs/{VerticalTabs.styles_1egpt45.css → VerticalTabs.styles_1khdtzl.css} +1 -1
- package/cjs/index.css +22 -22
- package/cjs/index.js +0 -2
- package/cjs/index.js.map +1 -1
- package/emotion/cjs/components/Calendar/CalendarBase/CalendarBase.js +0 -12
- package/emotion/cjs/components/Calendar/CalendarDouble/CalendarDouble.js +0 -12
- package/emotion/cjs/components/Calendar/ui/CalendarDays/CalendarDays.js +0 -3
- package/emotion/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js +0 -3
- package/emotion/cjs/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +0 -3
- package/emotion/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js +0 -3
- package/emotion/cjs/components/Carousel/CarouselNew/Carousel.js +6 -9
- package/emotion/cjs/components/Carousel/CarouselNew/Carousel.styles.js +17 -12
- package/emotion/cjs/components/Carousel/CarouselNew/Carousel.tokens.js +1 -9
- package/emotion/cjs/components/Carousel/CarouselNew/hooks/useCarousel.js +353 -50
- package/emotion/cjs/components/Carousel/CarouselNew/ui/Dots/Dots.js +38 -52
- package/emotion/cjs/components/Carousel/CarouselOld/CarouselItem.js +1 -1
- package/emotion/cjs/components/CodeField/CodeField.styles.js +6 -6
- package/emotion/cjs/components/Drawer/Drawer.js +8 -8
- package/emotion/cjs/components/Drawer/hooks/useDrawer.js +2 -2
- package/emotion/cjs/components/Mask/Mask.js +3 -3
- package/emotion/cjs/components/Modal/Modal.js +5 -6
- package/emotion/cjs/components/Modal/hooks/useModal.js +1 -1
- package/emotion/cjs/components/Popup/Popup.js +1 -1
- package/emotion/cjs/components/Popup/PopupContext.js +20 -14
- package/emotion/cjs/components/Rating/Rating.styles.js +11 -11
- package/emotion/cjs/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.styles.js +8 -8
- package/emotion/cjs/examples/plasma_b2c/components/Carousel/Carousel.config.js +2 -2
- package/emotion/cjs/examples/plasma_b2c/components/Carousel/Carousel.stories.tsx +14 -10
- package/emotion/cjs/examples/plasma_web/components/Carousel/Carousel.config.js +2 -2
- package/emotion/cjs/examples/plasma_web/components/Carousel/Carousel.stories.tsx +15 -10
- package/emotion/cjs/hooks/index.js +1 -8
- package/emotion/es/components/Calendar/CalendarBase/CalendarBase.js +0 -12
- package/emotion/es/components/Calendar/CalendarDouble/CalendarDouble.js +0 -12
- package/emotion/es/components/Calendar/ui/CalendarDays/CalendarDays.js +0 -3
- package/emotion/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js +0 -3
- package/emotion/es/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +0 -3
- package/emotion/es/components/Calendar/ui/CalendarYears/CalendarYears.js +0 -3
- package/emotion/es/components/Carousel/CarouselNew/Carousel.js +6 -9
- package/emotion/es/components/Carousel/CarouselNew/Carousel.styles.js +18 -13
- package/emotion/es/components/Carousel/CarouselNew/Carousel.tokens.js +1 -9
- package/emotion/es/components/Carousel/CarouselNew/hooks/useCarousel.js +349 -50
- package/emotion/es/components/Carousel/CarouselNew/ui/Dots/Dots.js +38 -52
- package/emotion/es/components/Carousel/CarouselOld/CarouselItem.js +1 -1
- package/emotion/es/components/CodeField/CodeField.styles.js +6 -6
- package/emotion/es/components/Drawer/Drawer.js +3 -3
- package/emotion/es/components/Drawer/hooks/useDrawer.js +2 -2
- package/emotion/es/components/Mask/Mask.js +3 -3
- package/emotion/es/components/Modal/Modal.js +3 -4
- package/emotion/es/components/Modal/hooks/useModal.js +1 -1
- package/emotion/es/components/Popup/Popup.js +2 -2
- package/emotion/es/components/Popup/PopupContext.js +20 -14
- package/emotion/es/components/Rating/Rating.styles.js +11 -11
- package/emotion/es/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.styles.js +8 -8
- package/emotion/es/examples/plasma_b2c/components/Carousel/Carousel.config.js +2 -2
- package/emotion/es/examples/plasma_b2c/components/Carousel/Carousel.stories.tsx +14 -10
- package/emotion/es/examples/plasma_web/components/Carousel/Carousel.config.js +2 -2
- package/emotion/es/examples/plasma_web/components/Carousel/Carousel.stories.tsx +15 -10
- package/emotion/es/hooks/index.js +1 -2
- package/es/components/Calendar/CalendarBase/CalendarBase.js +0 -12
- package/es/components/Calendar/CalendarBase/CalendarBase.js.map +1 -1
- package/es/components/Calendar/CalendarDouble/CalendarDouble.js +0 -12
- package/es/components/Calendar/CalendarDouble/CalendarDouble.js.map +1 -1
- package/es/components/Calendar/ui/CalendarDays/CalendarDays.js +0 -3
- package/es/components/Calendar/ui/CalendarDays/CalendarDays.js.map +1 -1
- package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js +0 -3
- package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js.map +1 -1
- package/es/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +0 -3
- package/es/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js.map +1 -1
- package/es/components/Calendar/ui/CalendarYears/CalendarYears.js +0 -3
- package/es/components/Calendar/ui/CalendarYears/CalendarYears.js.map +1 -1
- package/es/components/Carousel/CarouselNew/Carousel.css +5 -5
- package/es/components/Carousel/CarouselNew/Carousel.js +6 -9
- package/es/components/Carousel/CarouselNew/Carousel.js.map +1 -1
- package/es/components/Carousel/CarouselNew/Carousel.styles.js +4 -13
- package/es/components/Carousel/CarouselNew/Carousel.styles.js.map +1 -1
- package/es/components/Carousel/CarouselNew/Carousel.styles_151pk3s.css +5 -0
- package/es/components/Carousel/CarouselNew/Carousel.tokens.js +1 -9
- package/es/components/Carousel/CarouselNew/Carousel.tokens.js.map +1 -1
- package/es/components/Carousel/CarouselNew/hooks/useCarousel.js +349 -51
- package/es/components/Carousel/CarouselNew/hooks/useCarousel.js.map +1 -1
- package/es/components/Carousel/CarouselNew/ui/Dots/Dots.js +38 -52
- package/es/components/Carousel/CarouselNew/ui/Dots/Dots.js.map +1 -1
- package/es/components/Carousel/CarouselOld/CarouselItem.js +1 -1
- package/es/components/Carousel/CarouselOld/CarouselItem.js.map +1 -1
- package/{cjs/components/Carousel/CarouselOld/CarouselItem_uvoxfy.css → es/components/Carousel/CarouselOld/CarouselItem_cghzk7.css} +1 -1
- package/es/components/CodeField/CodeField.css +6 -6
- package/es/components/CodeField/CodeField.styles.js +1 -1
- package/es/components/CodeField/CodeField.styles.js.map +1 -1
- package/{cjs/components/CodeField/CodeField.styles_7zxgpc.css → es/components/CodeField/CodeField.styles_ebdpd0.css} +1 -1
- package/es/components/Drawer/Drawer.js +3 -4
- package/es/components/Drawer/Drawer.js.map +1 -1
- package/es/components/Drawer/hooks/useDrawer.js +2 -2
- package/es/components/Drawer/hooks/useDrawer.js.map +1 -1
- package/es/components/Mask/Mask.js +3 -3
- package/es/components/Mask/Mask.js.map +1 -1
- package/es/components/Modal/Modal.js +2 -3
- package/es/components/Modal/Modal.js.map +1 -1
- package/es/components/Modal/hooks/useModal.js +1 -1
- package/es/components/Modal/hooks/useModal.js.map +1 -1
- package/es/components/Popup/Popup.js +1 -2
- package/es/components/Popup/Popup.js.map +1 -1
- package/es/components/Popup/PopupContext.js +16 -14
- package/es/components/Popup/PopupContext.js.map +1 -1
- package/es/components/Rating/Rating.css +6 -6
- package/es/components/Rating/Rating.styles.js +1 -1
- package/es/components/Rating/Rating.styles.js.map +1 -1
- package/{cjs/components/Rating/Rating.styles_hi5qwl.css → es/components/Rating/Rating.styles_dg76kk.css} +1 -1
- package/es/components/Rating/utils/getIcons.css +6 -6
- package/es/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.css +4 -4
- package/es/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.styles.js +1 -1
- package/es/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.styles.js.map +1 -1
- package/es/components/Tabs/ui/vertical/VerticalTabs/{VerticalTabs.styles_1egpt45.css → VerticalTabs.styles_1khdtzl.css} +1 -1
- package/es/index.css +22 -22
- package/es/index.js +0 -1
- package/es/index.js.map +1 -1
- package/package.json +2 -2
- package/styled-components/cjs/components/Calendar/CalendarBase/CalendarBase.js +0 -12
- package/styled-components/cjs/components/Calendar/CalendarDouble/CalendarDouble.js +0 -12
- package/styled-components/cjs/components/Calendar/ui/CalendarDays/CalendarDays.js +0 -3
- package/styled-components/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js +0 -3
- package/styled-components/cjs/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +0 -3
- package/styled-components/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js +0 -3
- package/styled-components/cjs/components/Carousel/CarouselNew/Carousel.js +6 -9
- package/styled-components/cjs/components/Carousel/CarouselNew/Carousel.styles.js +3 -6
- package/styled-components/cjs/components/Carousel/CarouselNew/Carousel.tokens.js +1 -9
- package/styled-components/cjs/components/Carousel/CarouselNew/hooks/useCarousel.js +353 -50
- package/styled-components/cjs/components/Carousel/CarouselNew/ui/Dots/Dots.js +38 -52
- package/styled-components/cjs/components/Carousel/CarouselOld/CarouselItem.js +1 -1
- package/styled-components/cjs/components/CodeField/CodeField.styles.js +1 -1
- package/styled-components/cjs/components/Drawer/Drawer.js +8 -8
- package/styled-components/cjs/components/Drawer/hooks/useDrawer.js +2 -2
- package/styled-components/cjs/components/Mask/Mask.js +3 -3
- package/styled-components/cjs/components/Modal/Modal.js +5 -6
- package/styled-components/cjs/components/Modal/hooks/useModal.js +1 -1
- package/styled-components/cjs/components/Popup/Popup.js +1 -1
- package/styled-components/cjs/components/Popup/PopupContext.js +20 -14
- package/styled-components/cjs/components/Rating/Rating.styles.js +1 -1
- package/styled-components/cjs/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.styles.js +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Carousel/Carousel.config.js +2 -2
- package/styled-components/cjs/examples/plasma_b2c/components/Carousel/Carousel.stories.tsx +14 -10
- package/styled-components/cjs/examples/plasma_web/components/Carousel/Carousel.config.js +2 -2
- package/styled-components/cjs/examples/plasma_web/components/Carousel/Carousel.stories.tsx +15 -10
- package/styled-components/cjs/hooks/index.js +1 -8
- package/styled-components/es/components/Calendar/CalendarBase/CalendarBase.js +0 -12
- package/styled-components/es/components/Calendar/CalendarDouble/CalendarDouble.js +0 -12
- package/styled-components/es/components/Calendar/ui/CalendarDays/CalendarDays.js +0 -3
- package/styled-components/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js +0 -3
- package/styled-components/es/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +0 -3
- package/styled-components/es/components/Calendar/ui/CalendarYears/CalendarYears.js +0 -3
- package/styled-components/es/components/Carousel/CarouselNew/Carousel.js +6 -9
- package/styled-components/es/components/Carousel/CarouselNew/Carousel.styles.js +4 -7
- package/styled-components/es/components/Carousel/CarouselNew/Carousel.tokens.js +1 -9
- package/styled-components/es/components/Carousel/CarouselNew/hooks/useCarousel.js +349 -50
- package/styled-components/es/components/Carousel/CarouselNew/ui/Dots/Dots.js +38 -52
- package/styled-components/es/components/Carousel/CarouselOld/CarouselItem.js +1 -1
- package/styled-components/es/components/CodeField/CodeField.styles.js +1 -1
- package/styled-components/es/components/Drawer/Drawer.js +3 -3
- package/styled-components/es/components/Drawer/hooks/useDrawer.js +2 -2
- package/styled-components/es/components/Mask/Mask.js +3 -3
- package/styled-components/es/components/Modal/Modal.js +3 -4
- package/styled-components/es/components/Modal/hooks/useModal.js +1 -1
- package/styled-components/es/components/Popup/Popup.js +2 -2
- package/styled-components/es/components/Popup/PopupContext.js +20 -14
- package/styled-components/es/components/Rating/Rating.styles.js +1 -1
- package/styled-components/es/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.styles.js +1 -1
- package/styled-components/es/examples/plasma_b2c/components/Carousel/Carousel.config.js +2 -2
- package/styled-components/es/examples/plasma_b2c/components/Carousel/Carousel.stories.tsx +14 -10
- package/styled-components/es/examples/plasma_web/components/Carousel/Carousel.config.js +2 -2
- package/styled-components/es/examples/plasma_web/components/Carousel/Carousel.stories.tsx +15 -10
- package/styled-components/es/hooks/index.js +1 -2
- package/types/components/Calendar/CalendarBase/CalendarBase.d.ts.map +1 -1
- package/types/components/Calendar/CalendarDouble/CalendarDouble.d.ts.map +1 -1
- package/types/components/Calendar/ui/CalendarDays/CalendarDays.d.ts.map +1 -1
- package/types/components/Calendar/ui/CalendarMonths/CalendarMonths.d.ts.map +1 -1
- package/types/components/Calendar/ui/CalendarQuarters/CalendarQuarters.d.ts.map +1 -1
- package/types/components/Calendar/ui/CalendarYears/CalendarYears.d.ts.map +1 -1
- package/types/components/Carousel/CarouselNew/Carousel.d.ts.map +1 -1
- package/types/components/Carousel/CarouselNew/Carousel.styles.d.ts +1 -4
- package/types/components/Carousel/CarouselNew/Carousel.styles.d.ts.map +1 -1
- package/types/components/Carousel/CarouselNew/Carousel.tokens.d.ts +0 -8
- package/types/components/Carousel/CarouselNew/Carousel.tokens.d.ts.map +1 -1
- package/types/components/Carousel/CarouselNew/Carousel.types.d.ts +3 -8
- package/types/components/Carousel/CarouselNew/Carousel.types.d.ts.map +1 -1
- package/types/components/Carousel/CarouselNew/hooks/useCarousel.d.ts +52 -11
- package/types/components/Carousel/CarouselNew/hooks/useCarousel.d.ts.map +1 -1
- package/types/components/Carousel/CarouselNew/ui/Dots/Dots.d.ts.map +1 -1
- package/types/components/Carousel/CarouselOld/CarouselItem.d.ts.map +1 -1
- package/types/components/Drawer/Drawer.d.ts +1 -1
- package/types/components/Drawer/Drawer.d.ts.map +1 -1
- package/types/components/Drawer/hooks/useDrawer.d.ts.map +1 -1
- package/types/components/Modal/Modal.d.ts +1 -1
- package/types/components/Modal/Modal.d.ts.map +1 -1
- package/types/components/Popup/Popup.d.ts +1 -1
- package/types/components/Popup/Popup.d.ts.map +1 -1
- package/types/components/Popup/Popup.types.d.ts +1 -1
- package/types/components/Popup/Popup.types.d.ts.map +1 -1
- package/types/components/Popup/PopupContext.d.ts.map +1 -1
- package/types/hooks/index.d.ts +0 -1
- package/types/hooks/index.d.ts.map +1 -1
- package/cjs/components/Carousel/CarouselNew/Carousel.styles_1benby5.css +0 -5
- package/cjs/hooks/useDisableScroll.js +0 -30
- package/cjs/hooks/useDisableScroll.js.map +0 -1
- package/emotion/cjs/hooks/useDisableScroll.js +0 -28
- package/emotion/es/hooks/useDisableScroll.js +0 -22
- package/es/components/Carousel/CarouselNew/Carousel.styles_1benby5.css +0 -5
- package/es/hooks/useDisableScroll.js +0 -26
- package/es/hooks/useDisableScroll.js.map +0 -1
- package/styled-components/cjs/hooks/useDisableScroll.js +0 -28
- package/styled-components/es/hooks/useDisableScroll.js +0 -22
- package/types/hooks/useDisableScroll.d.ts +0 -3
- package/types/hooks/useDisableScroll.d.ts.map +0 -1
@@ -9,8 +9,8 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
|
|
9
9
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
10
10
|
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
11
11
|
import React, { forwardRef, useRef } from 'react';
|
12
|
-
import { useForkRef } from '@salutejs/plasma-core';
|
13
|
-
import { canUseDOM, cx
|
12
|
+
import { useForkRef, safeUseId } from '@salutejs/plasma-core';
|
13
|
+
import { canUseDOM, cx } from "../../utils";
|
14
14
|
import { Portal } from "../Portal";
|
15
15
|
import { PopupRoot } from "./PopupRoot";
|
16
16
|
import { usePopup } from "./hooks";
|
@@ -1,3 +1,7 @@
|
|
1
|
+
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
2
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
3
|
+
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
4
|
+
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
1
5
|
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
2
6
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
3
7
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
@@ -5,15 +9,15 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
|
|
5
9
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
6
10
|
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
7
11
|
import React, { createContext, useState, useContext, useRef } from 'react';
|
8
|
-
import { canUseDOM, safeUseId } from "../../utils";
|
9
12
|
import { Portal } from "../Portal";
|
10
13
|
import { hasModals } from "../Modal/ModalContext";
|
14
|
+
import { canUseDOM, safeUseId } from "../../utils";
|
11
15
|
import { ClientOnlyPortal } from "./ClientOnlyPortal";
|
12
16
|
import { StyledPortal } from "./Popup.styles";
|
13
17
|
export var POPUP_PORTAL_ID = 'plasma-popup-root';
|
14
|
-
var
|
18
|
+
var items = [];
|
15
19
|
var PopupContext = /*#__PURE__*/createContext({
|
16
|
-
items:
|
20
|
+
items: items,
|
17
21
|
rootId: POPUP_PORTAL_ID,
|
18
22
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
19
23
|
register: function register(_info) {
|
@@ -33,7 +37,7 @@ export var PopupProvider = function PopupProvider(_ref) {
|
|
33
37
|
var children = _ref.children,
|
34
38
|
UNSAFE_SSR_ENABLED = _ref.UNSAFE_SSR_ENABLED;
|
35
39
|
var prevBodyOverflowY = useRef(canUseDOM ? document.body.style.overflowY : '');
|
36
|
-
var _useState = useState(
|
40
|
+
var _useState = useState([]),
|
37
41
|
_useState2 = _slicedToArray(_useState, 2),
|
38
42
|
items = _useState2[0],
|
39
43
|
setItems = _useState2[1];
|
@@ -45,13 +49,11 @@ export var PopupProvider = function PopupProvider(_ref) {
|
|
45
49
|
}
|
46
50
|
setItems(function (prevItems) {
|
47
51
|
var _info$info;
|
48
|
-
|
49
|
-
if ((_info$info = info.info) !== null && _info$info !== void 0 && _info$info.isModal && !hasModals(Array.from(prevItems.values()))) {
|
52
|
+
if ((_info$info = info.info) !== null && _info$info !== void 0 && _info$info.isModal && !hasModals(prevItems)) {
|
50
53
|
prevBodyOverflowY.current = document.body.style.overflowY;
|
51
54
|
document.body.style.overflowY = 'hidden';
|
52
55
|
}
|
53
|
-
|
54
|
-
return newItems;
|
56
|
+
return [].concat(_toConsumableArray(prevItems), [info]);
|
55
57
|
});
|
56
58
|
};
|
57
59
|
var unregister = function unregister(id) {
|
@@ -59,16 +61,20 @@ export var PopupProvider = function PopupProvider(_ref) {
|
|
59
61
|
return;
|
60
62
|
}
|
61
63
|
setItems(function (prevItems) {
|
62
|
-
|
64
|
+
var index = prevItems.findIndex(function (item) {
|
65
|
+
return id === item.id;
|
66
|
+
});
|
67
|
+
if (index === -1) {
|
63
68
|
return prevItems;
|
64
69
|
}
|
65
|
-
var
|
66
|
-
|
67
|
-
|
68
|
-
if (prevHasModals && !hasModals(Array.from(newItems.values()))) {
|
70
|
+
var prevHasModals = hasModals(prevItems);
|
71
|
+
prevItems.splice(index, 1);
|
72
|
+
if (prevHasModals && !hasModals(prevItems)) {
|
69
73
|
document.body.style.overflowY = prevBodyOverflowY.current;
|
70
74
|
}
|
71
|
-
|
75
|
+
|
76
|
+
// при return prevItems не обновится контекст
|
77
|
+
return _toConsumableArray(prevItems);
|
72
78
|
});
|
73
79
|
};
|
74
80
|
var context = {
|
@@ -8,7 +8,7 @@ export var Score = /*#__PURE__*/styled.div.withConfig({
|
|
8
8
|
})([""]);
|
9
9
|
export var Wrapper = /*#__PURE__*/styled.div.withConfig({
|
10
10
|
componentId: "plasma-new-hope__sc-1qb7s38-1"
|
11
|
-
})(["display:flex;align-items:start;flex-direction:column;"]);
|
11
|
+
})(["display:flex;align-items:flex-start;flex-direction:column;"]);
|
12
12
|
export var Content = /*#__PURE__*/styled.div.withConfig({
|
13
13
|
componentId: "plasma-new-hope__sc-1qb7s38-2"
|
14
14
|
})(["display:flex;align-items:center;width:fit-content;"]);
|
package/styled-components/es/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.styles.js
CHANGED
@@ -7,7 +7,7 @@ import { classes, tokens } from "../../../tokens";
|
|
7
7
|
export var base = /*#__PURE__*/css(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteral(["\n position: relative;\n display: flex;\n flex-direction: column;\n gap: 0.125rem;\n align-items: center;\n"])));
|
8
8
|
export var StyledContent = /*#__PURE__*/styled.div.withConfig({
|
9
9
|
componentId: "plasma-new-hope__sc-gz8fxn-0"
|
10
|
-
})(["display:inline-flex;flex-direction:column;align-items:start;"]);
|
10
|
+
})(["display:inline-flex;flex-direction:column;align-items:flex-start;"]);
|
11
11
|
export var StyledContentWrapper = /*#__PURE__*/styled.div.withConfig({
|
12
12
|
componentId: "plasma-new-hope__sc-gz8fxn-1"
|
13
13
|
})(["margin:-0.125rem;padding:0.25rem;box-sizing:content-box;position:relative;height:100%;width:100%;display:flex;align-items:center;z-index:1;&.", "{overflow:scroll;scrollbar-width:none;::-webkit-scrollbar{display:none;}", "{margin-top:auto;}}&.", "{overflow:visible;}"], classes.tabsClipScroll, StyledContent, classes.tabsClipShowAll);
|
@@ -7,10 +7,10 @@ export var config = {
|
|
7
7
|
},
|
8
8
|
variations: {
|
9
9
|
view: {
|
10
|
-
"default": /*#__PURE__*/css(["", ":var(--surface-transparent-tertiary);", ":var(--surface-solid-default);"
|
10
|
+
"default": /*#__PURE__*/css(["", ":var(--surface-transparent-tertiary);", ":var(--surface-solid-default);"], tokens.paginationDotBackground, tokens.paginationDotActiveBackground)
|
11
11
|
},
|
12
12
|
size: {
|
13
|
-
s: /*#__PURE__*/css([""
|
13
|
+
s: /*#__PURE__*/css([""])
|
14
14
|
}
|
15
15
|
}
|
16
16
|
};
|
@@ -35,8 +35,8 @@ const meta: Meta<StoryCarouselProps> = {
|
|
35
35
|
type: 'inline-radio',
|
36
36
|
},
|
37
37
|
},
|
38
|
-
|
39
|
-
options: ['start', 'center', 'end'],
|
38
|
+
align: {
|
39
|
+
options: ['start', 'center', 'end', 'activeDirection'],
|
40
40
|
control: {
|
41
41
|
type: 'inline-radio',
|
42
42
|
},
|
@@ -56,24 +56,19 @@ const meta: Meta<StoryCarouselProps> = {
|
|
56
56
|
paginationCentered: {
|
57
57
|
control: 'boolean',
|
58
58
|
},
|
59
|
-
gap: {
|
60
|
-
control: 'text',
|
61
|
-
},
|
62
59
|
},
|
63
60
|
args: {
|
64
61
|
view: 'default',
|
65
62
|
size: 's',
|
66
|
-
|
67
|
-
slides:
|
63
|
+
align: 'center',
|
64
|
+
slides: 10,
|
68
65
|
controlArrowsDisabled: false,
|
69
66
|
paginationDisabled: false,
|
70
67
|
paginationCentered: false,
|
71
|
-
gap: '20px',
|
72
68
|
},
|
73
69
|
parameters: {
|
74
70
|
controls: {
|
75
71
|
include: [
|
76
|
-
'scrollAlign',
|
77
72
|
'visibleDots',
|
78
73
|
'slides',
|
79
74
|
'controlArrowsDisabled',
|
@@ -91,6 +86,7 @@ const StyledCard = styled.div`
|
|
91
86
|
display: flex;
|
92
87
|
align-items: center;
|
93
88
|
justify-content: center;
|
89
|
+
position: relative;
|
94
90
|
border-radius: 8px;
|
95
91
|
width: 400px;
|
96
92
|
height: 370px;
|
@@ -98,7 +94,14 @@ const StyledCard = styled.div`
|
|
98
94
|
font-size: 30px;
|
99
95
|
`;
|
100
96
|
|
101
|
-
const StoryDefault = ({
|
97
|
+
const StoryDefault = ({
|
98
|
+
align,
|
99
|
+
visibleDots,
|
100
|
+
slides,
|
101
|
+
paginationDisabled,
|
102
|
+
paginationCentered,
|
103
|
+
...rest
|
104
|
+
}: StoryCarouselProps) => {
|
102
105
|
const items = Array(slides)
|
103
106
|
.fill(1)
|
104
107
|
.map((_, i) => ({
|
@@ -110,6 +113,7 @@ const StoryDefault = ({ visibleDots, slides, paginationDisabled, paginationCente
|
|
110
113
|
<>
|
111
114
|
<div style={{ width: '600px' }}>
|
112
115
|
<Carousel
|
116
|
+
scrollAlign={align}
|
113
117
|
paginationOptions={{
|
114
118
|
disabled: paginationDisabled,
|
115
119
|
visibleDots,
|
@@ -7,10 +7,10 @@ export var config = {
|
|
7
7
|
},
|
8
8
|
variations: {
|
9
9
|
view: {
|
10
|
-
"default": /*#__PURE__*/css(["", ":var(--surface-transparent-tertiary);", ":var(--surface-solid-default);"
|
10
|
+
"default": /*#__PURE__*/css(["", ":var(--surface-transparent-tertiary);", ":var(--surface-solid-default);"], tokens.paginationDotBackground, tokens.paginationDotActiveBackground)
|
11
11
|
},
|
12
12
|
size: {
|
13
|
-
s: /*#__PURE__*/css([""
|
13
|
+
s: /*#__PURE__*/css([""])
|
14
14
|
}
|
15
15
|
}
|
16
16
|
};
|
@@ -35,8 +35,8 @@ const meta: Meta<StoryCarouselProps> = {
|
|
35
35
|
type: 'inline-radio',
|
36
36
|
},
|
37
37
|
},
|
38
|
-
|
39
|
-
options: ['start', 'center', 'end'],
|
38
|
+
align: {
|
39
|
+
options: ['start', 'center', 'end', 'activeDirection'],
|
40
40
|
control: {
|
41
41
|
type: 'inline-radio',
|
42
42
|
},
|
@@ -56,24 +56,20 @@ const meta: Meta<StoryCarouselProps> = {
|
|
56
56
|
paginationCentered: {
|
57
57
|
control: 'boolean',
|
58
58
|
},
|
59
|
-
gap: {
|
60
|
-
control: 'text',
|
61
|
-
},
|
62
59
|
},
|
63
60
|
args: {
|
64
61
|
view: 'default',
|
65
62
|
size: 's',
|
66
|
-
|
67
|
-
|
63
|
+
align: 'center',
|
64
|
+
visibleDots: 6,
|
65
|
+
slides: 10,
|
68
66
|
controlArrowsDisabled: false,
|
69
67
|
paginationDisabled: false,
|
70
68
|
paginationCentered: false,
|
71
|
-
gap: '20px',
|
72
69
|
},
|
73
70
|
parameters: {
|
74
71
|
controls: {
|
75
72
|
include: [
|
76
|
-
'scrollAlign',
|
77
73
|
'visibleDots',
|
78
74
|
'slides',
|
79
75
|
'controlArrowsDisabled',
|
@@ -91,6 +87,7 @@ const StyledCard = styled.div`
|
|
91
87
|
display: flex;
|
92
88
|
align-items: center;
|
93
89
|
justify-content: center;
|
90
|
+
position: relative;
|
94
91
|
border-radius: 8px;
|
95
92
|
width: 400px;
|
96
93
|
height: 370px;
|
@@ -98,7 +95,14 @@ const StyledCard = styled.div`
|
|
98
95
|
font-size: 30px;
|
99
96
|
`;
|
100
97
|
|
101
|
-
const StoryDefault = ({
|
98
|
+
const StoryDefault = ({
|
99
|
+
align,
|
100
|
+
visibleDots,
|
101
|
+
slides,
|
102
|
+
paginationDisabled,
|
103
|
+
paginationCentered,
|
104
|
+
...rest
|
105
|
+
}: StoryCarouselProps) => {
|
102
106
|
const items = Array(slides)
|
103
107
|
.fill(1)
|
104
108
|
.map((_, i) => ({
|
@@ -110,6 +114,7 @@ const StoryDefault = ({ visibleDots, slides, paginationDisabled, paginationCente
|
|
110
114
|
<>
|
111
115
|
<div style={{ width: '600px' }}>
|
112
116
|
<Carousel
|
117
|
+
scrollAlign={align}
|
113
118
|
paginationOptions={{
|
114
119
|
disabled: paginationDisabled,
|
115
120
|
visibleDots,
|
@@ -5,5 +5,4 @@ export { useForceUpdate } from "./useForceUpdate";
|
|
5
5
|
export { useDidMountEffect } from "./useDidMountEffect";
|
6
6
|
export { useDidMountLayoutEffect } from "./useDidMountLayoutEffect";
|
7
7
|
export { useOutsideClick } from "./useOutsideClick";
|
8
|
-
export { useIsomorphicLayoutEffect } from "./useIsomorphicLayoutEffect";
|
9
|
-
export { useDisableScroll } from "./useDisableScroll";
|
8
|
+
export { useIsomorphicLayoutEffect } from "./useIsomorphicLayoutEffect";
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"CalendarBase.d.ts","sourceRoot":"","sources":["../../../../src/components/Calendar/CalendarBase/CalendarBase.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAMV,cAAc,EAGjB,MAAM,OAAO,CAAC;AAGf,OAAO,KAAK,EAAE,QAAQ,EAAE,mBAAmB,EAAc,MAAM,mBAAmB,CAAC;AAMnF,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAO7C,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,mBAAmB,CAAC;AAE/D;;GAEG;AACH,eAAO,MAAM,gBAAgB,SAAU,SAAS,CAAC,cAAc,EAAE,cAAc,CAAC,cAAc,CAAC,CAAC,
|
1
|
+
{"version":3,"file":"CalendarBase.d.ts","sourceRoot":"","sources":["../../../../src/components/Calendar/CalendarBase/CalendarBase.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAMV,cAAc,EAGjB,MAAM,OAAO,CAAC;AAGf,OAAO,KAAK,EAAE,QAAQ,EAAE,mBAAmB,EAAc,MAAM,mBAAmB,CAAC;AAMnF,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAO7C,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,mBAAmB,CAAC;AAE/D;;GAEG;AACH,eAAO,MAAM,gBAAgB,SAAU,SAAS,CAAC,cAAc,EAAE,cAAc,CAAC,cAAc,CAAC,CAAC,0GAkN3F,CAAC;AAEN,eAAO,MAAM,kBAAkB;;;mBApNQ,SAAS,CAAC,cAAc,EAAE,cAAc,CAAC,cAAc,CAAC,CAAC;;;;;;;;;;;;;;CAqO/F,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"CalendarDouble.d.ts","sourceRoot":"","sources":["../../../../src/components/Calendar/CalendarDouble/CalendarDouble.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAKV,cAAc,EAIjB,MAAM,OAAO,CAAC;AAGf,OAAO,KAAK,EAAE,QAAQ,EAAE,mBAAmB,EAAc,MAAM,mBAAmB,CAAC;AAInF,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AASnD,MAAM,MAAM,mBAAmB,GAAG,QAAQ,GAAG,mBAAmB,CAAC;AAEjE;;GAEG;AACH,eAAO,MAAM,kBAAkB,SAAU,SAAS,CAAC,cAAc,EAAE,cAAc,CAAC,cAAc,CAAC,CAAC,
|
1
|
+
{"version":3,"file":"CalendarDouble.d.ts","sourceRoot":"","sources":["../../../../src/components/Calendar/CalendarDouble/CalendarDouble.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAKV,cAAc,EAIjB,MAAM,OAAO,CAAC;AAGf,OAAO,KAAK,EAAE,QAAQ,EAAE,mBAAmB,EAAc,MAAM,mBAAmB,CAAC;AAInF,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AASnD,MAAM,MAAM,mBAAmB,GAAG,QAAQ,GAAG,mBAAmB,CAAC;AAEjE;;GAEG;AACH,eAAO,MAAM,kBAAkB,SAAU,SAAS,CAAC,cAAc,EAAE,cAAc,CAAC,cAAc,CAAC,CAAC,0GA4V7F,CAAC;AAEN,eAAO,MAAM,oBAAoB;;;mBA9VQ,SAAS,CAAC,cAAc,EAAE,cAAc,CAAC,cAAc,CAAC,CAAC;;;;;;;;;;;CA4WjG,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"CalendarDays.d.ts","sourceRoot":"","sources":["../../../../../src/components/Calendar/ui/CalendarDays/CalendarDays.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAmBxE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE9D;;GAEG;AACH,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,
|
1
|
+
{"version":3,"file":"CalendarDays.d.ts","sourceRoot":"","sources":["../../../../../src/components/Calendar/ui/CalendarDays/CalendarDays.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAmBxE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE9D;;GAEG;AACH,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CA6KpD,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"CalendarMonths.d.ts","sourceRoot":"","sources":["../../../../../src/components/Calendar/ui/CalendarMonths/CalendarMonths.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAOxE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAGlE;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,
|
1
|
+
{"version":3,"file":"CalendarMonths.d.ts","sourceRoot":"","sources":["../../../../../src/components/Calendar/ui/CalendarMonths/CalendarMonths.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAOxE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAGlE;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAuLxD,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"CalendarQuarters.d.ts","sourceRoot":"","sources":["../../../../../src/components/Calendar/ui/CalendarQuarters/CalendarQuarters.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAOxE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAGtE;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,
|
1
|
+
{"version":3,"file":"CalendarQuarters.d.ts","sourceRoot":"","sources":["../../../../../src/components/Calendar/ui/CalendarQuarters/CalendarQuarters.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAOxE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAGtE;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAmL5D,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"CalendarYears.d.ts","sourceRoot":"","sources":["../../../../../src/components/Calendar/ui/CalendarYears/CalendarYears.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAOxE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAGhE;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,
|
1
|
+
{"version":3,"file":"CalendarYears.d.ts","sourceRoot":"","sources":["../../../../../src/components/Calendar/ui/CalendarYears/CalendarYears.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAOxE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAGhE;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAwLtD,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Carousel.d.ts","sourceRoot":"","sources":["../../../../src/components/Carousel/CarouselNew/Carousel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,KAAyC,MAAM,OAAO,CAAC;
|
1
|
+
{"version":3,"file":"Carousel.d.ts","sourceRoot":"","sources":["../../../../src/components/Carousel/CarouselNew/Carousel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,KAAyC,MAAM,OAAO,CAAC;AAO9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAOpD;;GAEG;AACH,eAAO,MAAM,eAAe,SAAU,SAAS,CAAC,cAAc,EAAE,gBAAgB,CAAC,4FAqE5E,CAAC;AAEN,eAAO,MAAM,iBAAiB;;;mBAvEQ,SAAS,CAAC,cAAc,EAAE,gBAAgB,CAAC;;;;;;;;;;;;;;CAwFhF,CAAC"}
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import { CarouselNewProps as CarouselProps } from './Carousel.types';
|
2
1
|
export declare const IconButtonComponent: import("react").FunctionComponent<import("../../../engines/types").PropsType<import("../../../engines/types").Variants> & ((Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & Omit<import("react").AnchorHTMLAttributes<HTMLElement>, "type"> & import("../../..").AsProps & {
|
3
2
|
text?: string;
|
4
3
|
contentLeft?: import("react").ReactNode;
|
@@ -44,9 +43,7 @@ export declare const IconButtonComponent: import("react").FunctionComponent<impo
|
|
44
43
|
} & import("react").RefAttributes<HTMLButtonElement>))>;
|
45
44
|
export declare const base: import("@linaria/core").LinariaClassName;
|
46
45
|
export declare const CarouselWrapper: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
47
|
-
export declare const CarouselTrack: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> &
|
48
|
-
gap: Exclude<CarouselProps["gap"], undefined>;
|
49
|
-
}>;
|
46
|
+
export declare const CarouselTrack: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
50
47
|
export declare const IconButton: import("@linaria/react").StyledMeta & import("react").FunctionComponent<import("../../../engines/types").PropsType<import("../../../engines/types").Variants> & ((Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & Omit<import("react").AnchorHTMLAttributes<HTMLElement>, "type"> & import("../../..").AsProps & {
|
51
48
|
text?: string;
|
52
49
|
contentLeft?: import("react").ReactNode;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Carousel.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/Carousel/CarouselNew/Carousel.styles.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"Carousel.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/Carousel/CarouselNew/Carousel.styles.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uDAA0B,CAAC;AAE3D,eAAO,MAAM,IAAI,0CAEhB,CAAC;AAEF,eAAO,MAAM,eAAe,qKAuB3B,CAAC;AAEF,eAAO,MAAM,aAAa,qKAGzB,CAAC;AAEF,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uDAsBtB,CAAC;AAEF,eAAO,MAAM,eAAe,qKAE3B,CAAC"}
|
@@ -8,18 +8,10 @@ export declare const classes: {
|
|
8
8
|
shrinking: string;
|
9
9
|
availableDotsLeft: string;
|
10
10
|
availableDotsRight: string;
|
11
|
-
leftControlButton: string;
|
12
11
|
rightControlButton: string;
|
13
12
|
};
|
14
13
|
export declare const tokens: {
|
15
14
|
paginationDotBackground: string;
|
16
15
|
paginationDotActiveBackground: string;
|
17
|
-
controlIconButtonRadius: string;
|
18
|
-
controlIconButtonColor: string;
|
19
|
-
controlIconButtonBackgroundColor: string;
|
20
|
-
controlIconButtonColorHover: string;
|
21
|
-
controlIconButtonBackgroundColorHover: string;
|
22
|
-
controlIconButtonColorActive: string;
|
23
|
-
controlIconButtonBackgroundColorActive: string;
|
24
16
|
};
|
25
17
|
//# sourceMappingURL=Carousel.tokens.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Carousel.tokens.d.ts","sourceRoot":"","sources":["../../../../src/components/Carousel/CarouselNew/Carousel.tokens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO
|
1
|
+
{"version":3,"file":"Carousel.tokens.d.ts","sourceRoot":"","sources":["../../../../src/components/Carousel/CarouselNew/Carousel.tokens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO;;;;;;;;;;;CAWnB,CAAC;AAEF,eAAO,MAAM,MAAM;;;CAGlB,CAAC"}
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import type { HTMLAttributes
|
2
|
-
export type ScrollAlign = 'start' | 'center' | 'end';
|
1
|
+
import type { HTMLAttributes } from 'react';
|
2
|
+
export type ScrollAlign = 'start' | 'center' | 'end' | 'activeDirection';
|
3
3
|
export interface CarouselNewProps extends HTMLAttributes<HTMLDivElement> {
|
4
4
|
/**
|
5
5
|
* Центрирование активного элемента при скролле.
|
6
|
-
* @default
|
6
|
+
* @default center
|
7
7
|
*/
|
8
8
|
scrollAlign?: ScrollAlign;
|
9
9
|
/**
|
@@ -31,11 +31,6 @@ export interface CarouselNewProps extends HTMLAttributes<HTMLDivElement> {
|
|
31
31
|
* @default false
|
32
32
|
*/
|
33
33
|
controlArrowsDisabled?: boolean;
|
34
|
-
/**
|
35
|
-
* Отступ между слайдами.
|
36
|
-
* @default 20px
|
37
|
-
*/
|
38
|
-
gap?: CSSProperties['gap'];
|
39
34
|
/**
|
40
35
|
* Размер контрола.
|
41
36
|
*/
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Carousel.types.d.ts","sourceRoot":"","sources":["../../../../src/components/Carousel/CarouselNew/Carousel.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,
|
1
|
+
{"version":3,"file":"Carousel.types.d.ts","sourceRoot":"","sources":["../../../../src/components/Carousel/CarouselNew/Carousel.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,iBAAiB,CAAC;AAEzE,MAAM,WAAW,gBAAiB,SAAQ,cAAc,CAAC,cAAc,CAAC;IACpE;;;OAGG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B;;OAEG;IACH,iBAAiB,CAAC,EAAE;QAChB;;;WAGG;QACH,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB;;;WAGG;QACH,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB;;;WAGG;QACH,QAAQ,CAAC,EAAE,OAAO,CAAC;KACtB,CAAC;IACF;;;OAGG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAEhC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC,cAAc,CAAC,CAAC"}
|
@@ -1,22 +1,63 @@
|
|
1
|
-
import
|
2
|
-
import { CarouselNewProps as CarouselProps } from '../Carousel.types';
|
1
|
+
import React from 'react';
|
2
|
+
import { CarouselNewProps as CarouselProps, ScrollAlign } from '../Carousel.types';
|
3
3
|
/**
|
4
|
-
* Подсчет
|
4
|
+
* Подсчет смещения из-за паддингов.
|
5
5
|
*/
|
6
|
-
export declare const
|
7
|
-
|
8
|
-
|
9
|
-
|
6
|
+
export declare const getCalculatedOffset: (scrollEl: Element, trackEl: Element) => number;
|
7
|
+
/**
|
8
|
+
* Подсчет скролла до переданного индекса.
|
9
|
+
*/
|
10
|
+
export declare const getCalculatedPos: ({ scrollEl, items, index, offset, scrollAlign, }: {
|
11
|
+
scrollEl: HTMLElement;
|
12
|
+
items: HTMLCollectionOf<HTMLElement>;
|
10
13
|
index: number;
|
11
|
-
|
14
|
+
offset: number;
|
15
|
+
scrollAlign: ScrollAlign;
|
12
16
|
}) => number;
|
17
|
+
declare const tfs: {
|
18
|
+
linear: (t: number) => number;
|
19
|
+
easeIn: (t: number) => number;
|
20
|
+
easeOut: (t: number) => number;
|
21
|
+
easeInOut: (t: number) => number;
|
22
|
+
};
|
23
|
+
export type TimingFunction = keyof typeof tfs;
|
24
|
+
/**
|
25
|
+
* Плавная прокрутка по горизонтали
|
26
|
+
* @param {Element} elem
|
27
|
+
* @param {number} pos
|
28
|
+
* @param {number} duration
|
29
|
+
* @param {string} timingFunction
|
30
|
+
*/
|
31
|
+
export declare const animatedScrollToX: (elem: Element, pos: number, duration?: number, timingFunction?: TimingFunction) => void;
|
32
|
+
/**
|
33
|
+
* Прокрутка к указанной позиции с анимацией или без.
|
34
|
+
*/
|
35
|
+
export declare const scrollToPos: ({ scrollEl, pos, animated, duration, timingFunction, }: {
|
36
|
+
scrollEl: HTMLElement;
|
37
|
+
pos: number;
|
38
|
+
animated?: boolean;
|
39
|
+
duration?: number;
|
40
|
+
timingFunction?: TimingFunction;
|
41
|
+
}) => void;
|
42
|
+
/**
|
43
|
+
* Получить позицию (слот) айтема в каруселе.
|
44
|
+
* Каждый айтем имеет свой слот относительно вьюпорта карусели.
|
45
|
+
*/
|
46
|
+
export declare const getItemSlot: (itemIndex: number, itemEnd: number, itemSize: number, scrollStart: number, scrollSize: number, scrollAlign: ScrollAlign, prevIndex?: number, offset?: number) => number | null;
|
47
|
+
export declare function getCarouselItems(track: HTMLElement): HTMLCollectionOf<HTMLElement>;
|
48
|
+
export declare function useDebouncedFunction(func: (...args: any) => any, delay: number, cleanUp?: boolean): (...args: any[]) => void;
|
13
49
|
type UseCarouselOptions = Pick<CarouselProps, 'scrollAlign'> & {
|
14
50
|
index: number;
|
51
|
+
throttleMs?: number;
|
52
|
+
debounceMs?: number;
|
53
|
+
detectActive?: boolean;
|
54
|
+
detectThreshold?: number;
|
55
|
+
onIndexChange?: (e: any) => void;
|
15
56
|
};
|
16
57
|
type UseCarouselHookResult = {
|
17
|
-
scrollRef: RefObject<HTMLDivElement>;
|
18
|
-
trackRef: RefObject<HTMLDivElement>;
|
58
|
+
scrollRef: React.RefObject<HTMLDivElement>;
|
59
|
+
trackRef: React.RefObject<HTMLDivElement>;
|
19
60
|
};
|
20
|
-
export declare const useCarousel: ({ index, scrollAlign }: UseCarouselOptions) => UseCarouselHookResult;
|
61
|
+
export declare const useCarousel: ({ index, onIndexChange, detectActive, detectThreshold, scrollAlign, throttleMs, debounceMs, }: UseCarouselOptions) => UseCarouselHookResult;
|
21
62
|
export {};
|
22
63
|
//# sourceMappingURL=useCarousel.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useCarousel.d.ts","sourceRoot":"","sources":["../../../../../src/components/Carousel/CarouselNew/hooks/useCarousel.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"useCarousel.d.ts","sourceRoot":"","sources":["../../../../../src/components/Carousel/CarouselNew/hooks/useCarousel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAGvE,OAAO,EAAE,gBAAgB,IAAI,aAAa,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEnF;;GAEG;AACH,eAAO,MAAM,mBAAmB,aAAc,OAAO,WAAW,OAAO,WAGtE,CAAC;AAsCF;;GAEG;AACH,eAAO,MAAM,gBAAgB,qDAM1B;IACC,QAAQ,EAAE,WAAW,CAAC;IACtB,KAAK,EAAE,gBAAgB,CAAC,WAAW,CAAC,CAAC;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,WAAW,CAAC;CAC5B,WAuBA,CAAC;AAKF,QAAA,MAAM,GAAG;gBACO,MAAM;gBAEN,MAAM;iBAEL,MAAM;mBACJ,MAAM;CACxB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,MAAM,OAAO,GAAG,CAAC;AAE9C;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,SACpB,OAAO,OACR,MAAM,aACD,MAAM,mBACA,cAAc,KAC/B,IAeF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,2DAMrB;IACC,QAAQ,EAAE,WAAW,CAAC;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,cAAc,CAAC;CACnC,SAQA,CAAC;AAIF;;;GAGG;AACH,eAAO,MAAM,WAAW,cACT,MAAM,WACR,MAAM,YACL,MAAM,eACH,MAAM,cACP,MAAM,eACL,WAAW,uDAkC3B,CAAC;AAEF,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,WAAW,GAAG,gBAAgB,CAAC,WAAW,CAAC,CAElF;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,KAAK,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,aAmB7E,GAAG,EAAE,UAIzB;AAED,KAAK,kBAAkB,GAAG,IAAI,CAAC,aAAa,EAAE,aAAa,CAAC,GAAG;IAC3D,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,CAAC,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;CACpC,CAAC;AAEF,KAAK,qBAAqB,GAAG;IACzB,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;IAC3C,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;CAC7C,CAAC;AAKF,eAAO,MAAM,WAAW,kGAQrB,kBAAkB,KAAG,qBAsKvB,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Dots.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Carousel/CarouselNew/ui/Dots/Dots.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwC,MAAM,OAAO,CAAC;AAM7D,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAOzC,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,
|
1
|
+
{"version":3,"file":"Dots.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Carousel/CarouselNew/ui/Dots/Dots.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwC,MAAM,OAAO,CAAC;AAM7D,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAOzC,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAsPpC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"CarouselItem.d.ts","sourceRoot":"","sources":["../../../../src/components/Carousel/CarouselOld/CarouselItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAuB,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;
|
1
|
+
{"version":3,"file":"CarouselItem.d.ts","sourceRoot":"","sources":["../../../../src/components/Carousel/CarouselOld/CarouselItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAuB,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAQ1E,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAiBpD,CAAC"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import type { RootProps } from '
|
2
|
+
import type { RootProps } from '../../engines';
|
3
3
|
import type { DrawerProps } from './Drawer.types';
|
4
4
|
export declare const drawerRoot: (Root: RootProps<HTMLDivElement, DrawerProps>) => React.ForwardRefExoticComponent<import("../Popup").PopupProps & import("../Panel").PanelProps & {
|
5
5
|
placement?: import("./Drawer.types").DrawerPlacement;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../src/components/Drawer/Drawer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAGnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../src/components/Drawer/Drawer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAGnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAQ/C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAUlD,eAAO,MAAM,UAAU,SAAU,SAAS,CAAC,cAAc,EAAE,WAAW,CAAC;;;;;;;;;6BAiC/D,MACI,UAAF;sBAGE,MAAE,SAAS;oBAMX,MAAM,SAAS;;wCAmFtB,CAAC;AAEN,eAAO,MAAM,YAAY;;;mBAhIQ,SAAS,CAAC,cAAc,EAAE,WAAW,CAAC;;;;;;;;;iCAiC/D,MACI,UAAF;0BAGE,MAAE,SAAS;wBAMX,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;CA0G1B,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useDrawer.d.ts","sourceRoot":"","sources":["../../../../src/components/Drawer/hooks/useDrawer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAA+B,MAAM,kBAAkB,CAAC;AAC3E,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAMjD,eAAO,MAAM,SAAS,iFAQnB,cAAc;;
|
1
|
+
{"version":3,"file":"useDrawer.d.ts","sourceRoot":"","sources":["../../../../src/components/Drawer/hooks/useDrawer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAA+B,MAAM,kBAAkB,CAAC;AAC3E,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAMjD,eAAO,MAAM,SAAS,iFAQnB,cAAc;;CA+DhB,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/Modal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAGhE,OAAO,EAAE,SAAS,EAAa,MAAM,
|
1
|
+
{"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/Modal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAGhE,OAAO,EAAE,SAAS,EAAa,MAAM,eAAe,CAAC;AAQrD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAS3C;;;GAGG;AACH,eAAO,MAAM,SAAS,SAAU,SAAS,CAAC,cAAc,EAAE,UAAU,CAAC,sFA6GhE,CAAC;AAEN,eAAO,MAAM,WAAW;;;mBA/GQ,SAAS,CAAC,cAAc,EAAE,UAAU,CAAC;;;;;;;;;;CA4HpE,CAAC"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import { RootProps } from '
|
2
|
+
import { RootProps } from '../../engines/types';
|
3
3
|
import type { PopupPlacement, PopupPositionType, PopupProps } from './Popup.types';
|
4
4
|
export declare const handlePosition: (placement: PopupPlacement, offset: [number, number] | [string, string]) => PopupPositionType;
|
5
5
|
/**
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Popup.d.ts","sourceRoot":"","sources":["../../../src/components/Popup/Popup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAGlD,OAAO,EAAE,SAAS,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"Popup.d.ts","sourceRoot":"","sources":["../../../src/components/Popup/Popup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAGlD,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAIhD,OAAO,KAAK,EAAuB,cAAc,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAMxG,eAAO,MAAM,cAAc,cACZ,cAAc,UACjB,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,KAC5C,iBA8DF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,SAAS,SAAU,SAAS,CAAC,cAAc,EAAE,UAAU,CAAC,sFAwFhE,CAAC;AAEN,eAAO,MAAM,WAAW;;;mBA1FQ,SAAS,CAAC,cAAc,EAAE,UAAU,CAAC;;;;CAiGpE,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Popup.types.d.ts","sourceRoot":"","sources":["../../../src/components/Popup/Popup.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,mBAAmB,GAAG,QAAQ,GAAG,KAAK,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;AACjF,MAAM,MAAM,mBAAmB,GAAG,WAAW,GAAG,UAAU,GAAG,cAAc,GAAG,aAAa,CAAC;AAC5F,MAAM,MAAM,cAAc,GAAG,mBAAmB,GAAG,mBAAmB,CAAC;AAEvE,MAAM,WAAW,SAAS;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC9B;AAED,MAAM,WAAW,gBAAgB;IAC7B,KAAK,EAAE,
|
1
|
+
{"version":3,"file":"Popup.types.d.ts","sourceRoot":"","sources":["../../../src/components/Popup/Popup.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,mBAAmB,GAAG,QAAQ,GAAG,KAAK,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;AACjF,MAAM,MAAM,mBAAmB,GAAG,WAAW,GAAG,UAAU,GAAG,cAAc,GAAG,aAAa,CAAC;AAC5F,MAAM,MAAM,cAAc,GAAG,mBAAmB,GAAG,mBAAmB,CAAC;AAEvE,MAAM,WAAW,SAAS;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC9B;AAED,MAAM,WAAW,gBAAgB;IAC7B,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;IACpC,UAAU,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC;AAED,MAAM,WAAW,UAAW,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACpE;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;OAGG;IACH,SAAS,CAAC,EAAE,cAAc,CAAC;IAC3B;;;OAGG;IACH,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7C;;OAEG;IACH,KAAK,CAAC,EAAE,UAAU,GAAG,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IAC3D;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;CAC3B;AACD,MAAM,WAAW,kBAAkB;IAC/B,YAAY,EAAE,OAAO,CAAC;IACtB,eAAe,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IAC/D,aAAa,EAAE,OAAO,CAAC;IACvB,gBAAgB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;CACnE;AAED,MAAM,WAAW,iBAAiB;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,cAAe,SAAQ,IAAI,CAAC,UAAU,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;IACrF,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IAC1D,QAAQ,EAAE,iBAAiB,CAAC;IAC5B;;OAEG;IACH,aAAa,EAAE,kBAAkB,CAAC;CACrC;AAED,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,UAAU,EAAE,WAAW,GAAG,eAAe,CAAC;IAClF,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,uBAAwB,SAAQ,IAAI,CAAC,UAAU,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;IAC9F,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,EAAE,iBAAiB,CAAC;CAC/B"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"PopupContext.d.ts","sourceRoot":"","sources":["../../../src/components/Popup/PopupContext.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAuC,EAAE,EAAE,iBAAiB,EAAU,MAAM,OAAO,CAAC;AAOlG,OAAO,KAAK,EAAE,gBAAgB,EAAa,MAAM,eAAe,CAAC;AAGjE,eAAO,MAAM,eAAe,sBAAsB,CAAC;AAiBnD,eAAO,MAAM,eAAe,wBAAiC,CAAC;AAG9D,eAAO,MAAM,aAAa,EAAE,EAAE,CAC1B,iBAAiB,GAAG;IAChB;;OAEG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAChC,
|
1
|
+
{"version":3,"file":"PopupContext.d.ts","sourceRoot":"","sources":["../../../src/components/Popup/PopupContext.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAuC,EAAE,EAAE,iBAAiB,EAAU,MAAM,OAAO,CAAC;AAOlG,OAAO,KAAK,EAAE,gBAAgB,EAAa,MAAM,eAAe,CAAC;AAGjE,eAAO,MAAM,eAAe,sBAAsB,CAAC;AAiBnD,eAAO,MAAM,eAAe,wBAAiC,CAAC;AAG9D,eAAO,MAAM,aAAa,EAAE,EAAE,CAC1B,iBAAiB,GAAG;IAChB;;OAEG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAChC,CAqEJ,CAAC"}
|
package/types/hooks/index.d.ts
CHANGED
@@ -6,5 +6,4 @@ export { useDidMountEffect } from './useDidMountEffect';
|
|
6
6
|
export { useDidMountLayoutEffect } from './useDidMountLayoutEffect';
|
7
7
|
export { useOutsideClick } from './useOutsideClick';
|
8
8
|
export { useIsomorphicLayoutEffect } from './useIsomorphicLayoutEffect';
|
9
|
-
export { useDisableScroll } from './useDisableScroll';
|
10
9
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC"}
|