@salutejs/plasma-new-hope 0.389.0-dev.1 → 0.390.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/dist/css/cjs/components/BottomSheet/BottomSheet.css +8 -8
- package/dist/css/cjs/components/BottomSheet/BottomSheet.js +7 -5
- package/dist/css/cjs/components/BottomSheet/BottomSheet.styles.js +5 -5
- package/dist/css/cjs/components/BottomSheet/{BottomSheet.styles_1d26yjd.css → BottomSheet.styles_i1yfau.css} +1 -1
- package/dist/css/cjs/components/BottomSheet/BottomSheet.tokens.js +1 -0
- package/dist/css/cjs/components/BottomSheet/hooks/useBottomSheetDrag.js +4 -1
- package/dist/css/cjs/components/BottomSheet/utils/index.js +0 -5
- package/dist/css/cjs/components/Editable/Editable.css +5 -5
- package/dist/css/cjs/components/Editable/Editable.js +19 -3
- package/dist/css/cjs/components/Editable/Editable.styles.js +2 -2
- package/dist/css/cjs/components/Editable/Editable.styles_1ts4ksj.css +4 -0
- package/dist/css/cjs/components/Editable/Editable.tokens.js +5 -1
- package/dist/css/cjs/components/Editable/variations/_size/base.js +1 -1
- package/dist/css/cjs/components/Editable/variations/_size/base_60mm8z.css +1 -0
- package/dist/css/cjs/components/Editable/variations/_view/base.js +1 -1
- package/dist/css/cjs/components/Editable/variations/_view/base_fulhkl.css +1 -0
- package/dist/css/cjs/components/Pagination/Pagination.css +13 -12
- package/dist/css/cjs/components/Pagination/Pagination.js +35 -19
- package/dist/css/cjs/components/Pagination/Pagination.styles.js +8 -2
- package/dist/css/cjs/components/Pagination/{Pagination.styles_6rozng.css → Pagination.styles_1af8kwt.css} +2 -1
- package/dist/css/cjs/components/Pagination/Pagination.tokens.js +3 -1
- package/dist/css/cjs/components/Pagination/ui/PaginationQuickJumpToPage/PaginationQuickJumpToPage.css +3 -3
- package/dist/css/cjs/components/Pagination/ui/PaginationQuickJumpToPage/PaginationQuickJumpToPage.js +49 -18
- package/dist/css/cjs/components/Pagination/ui/PaginationQuickJumpToPage/PaginationQuickJumpToPage.styles.js +1 -1
- package/dist/css/cjs/components/Pagination/ui/PaginationQuickJumpToPage/{PaginationQuickJumpToPage.styles_1rsjxrs.css → PaginationQuickJumpToPage.styles_7bgblc.css} +1 -1
- package/dist/css/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js +1 -1
- package/dist/css/cjs/components/Pagination/utils/index.js +2 -0
- package/dist/css/cjs/components/Wheel/Wheel.css +22 -0
- package/dist/css/cjs/components/Wheel/Wheel.js +109 -0
- package/dist/css/cjs/components/Wheel/Wheel.styles.js +138 -0
- package/dist/css/cjs/components/Wheel/Wheel.styles_vgli5z.css +16 -0
- package/dist/css/cjs/components/Wheel/Wheel.tokens.js +79 -0
- package/dist/css/cjs/components/Wheel/hooks/useStaticTextAfter.js +58 -0
- package/dist/css/cjs/components/Wheel/hooks/useWheelAnimation.js +219 -0
- package/dist/css/cjs/components/Wheel/hooks/useWheelInteraction.js +178 -0
- package/dist/css/cjs/components/Wheel/ui/WheelColumn.css +18 -0
- package/dist/css/cjs/components/Wheel/ui/WheelColumn.js +166 -0
- package/dist/css/cjs/components/Wheel/ui/WheelColumnWidth.js +40 -0
- package/dist/css/cjs/components/Wheel/ui/WheelItem.css +16 -0
- package/dist/css/cjs/components/Wheel/ui/WheelItem.js +62 -0
- package/dist/css/cjs/components/Wheel/ui/WheelItemContent.js +26 -0
- package/dist/css/cjs/components/Wheel/utils.js +39 -0
- package/dist/css/cjs/components/Wheel/variations/_disabled/base.js +8 -0
- package/dist/css/cjs/components/Wheel/variations/_disabled/base_r9b0ts.css +1 -0
- package/dist/css/cjs/components/Wheel/variations/_size/base.js +8 -0
- package/dist/css/cjs/components/Wheel/variations/_size/base_x642ct.css +1 -0
- package/dist/css/cjs/components/Wheel/variations/_view/base.js +8 -0
- package/dist/css/cjs/components/Wheel/variations/_view/base_9e3071.css +1 -0
- package/dist/css/cjs/index.css +47 -25
- package/dist/css/cjs/index.js +8 -0
- package/dist/css/cjs/utils/getPanelZIndex.js +10 -0
- package/dist/css/es/components/BottomSheet/BottomSheet.css +8 -8
- package/dist/css/es/components/BottomSheet/BottomSheet.js +6 -4
- package/dist/css/es/components/BottomSheet/BottomSheet.styles.js +5 -5
- package/dist/css/es/components/BottomSheet/{BottomSheet.styles_1d26yjd.css → BottomSheet.styles_i1yfau.css} +1 -1
- package/dist/css/es/components/BottomSheet/BottomSheet.tokens.js +1 -0
- package/dist/css/es/components/BottomSheet/hooks/useBottomSheetDrag.js +4 -1
- package/dist/css/es/components/BottomSheet/utils/index.js +1 -5
- package/dist/css/es/components/Editable/Editable.css +5 -5
- package/dist/css/es/components/Editable/Editable.js +19 -4
- package/dist/css/es/components/Editable/Editable.styles.js +2 -2
- package/dist/css/es/components/Editable/Editable.styles_1ts4ksj.css +4 -0
- package/dist/css/es/components/Editable/Editable.tokens.js +5 -1
- package/dist/css/es/components/Editable/variations/_size/base.js +1 -1
- package/dist/css/es/components/Editable/variations/_size/base_60mm8z.css +1 -0
- package/dist/css/es/components/Editable/variations/_view/base.js +1 -1
- package/dist/css/es/components/Editable/variations/_view/base_fulhkl.css +1 -0
- package/dist/css/es/components/Pagination/Pagination.css +13 -12
- package/dist/css/es/components/Pagination/Pagination.js +36 -20
- package/dist/css/es/components/Pagination/Pagination.styles.js +8 -3
- package/dist/css/es/components/Pagination/{Pagination.styles_6rozng.css → Pagination.styles_1af8kwt.css} +2 -1
- package/dist/css/es/components/Pagination/Pagination.tokens.js +3 -1
- package/dist/css/es/components/Pagination/ui/PaginationQuickJumpToPage/PaginationQuickJumpToPage.css +3 -3
- package/dist/css/es/components/Pagination/ui/PaginationQuickJumpToPage/PaginationQuickJumpToPage.js +50 -19
- package/dist/css/es/components/Pagination/ui/PaginationQuickJumpToPage/PaginationQuickJumpToPage.styles.js +1 -1
- package/dist/css/es/components/Pagination/ui/PaginationQuickJumpToPage/{PaginationQuickJumpToPage.styles_1rsjxrs.css → PaginationQuickJumpToPage.styles_7bgblc.css} +1 -1
- package/dist/css/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js +1 -1
- package/dist/css/es/components/Pagination/utils/index.js +2 -0
- package/dist/css/es/components/Wheel/Wheel.css +22 -0
- package/dist/css/es/components/Wheel/Wheel.js +99 -0
- package/dist/css/es/components/Wheel/Wheel.styles.js +119 -0
- package/dist/css/es/components/Wheel/Wheel.styles_vgli5z.css +16 -0
- package/dist/css/es/components/Wheel/Wheel.tokens.js +73 -0
- package/dist/css/es/components/Wheel/hooks/useStaticTextAfter.js +54 -0
- package/dist/css/es/components/Wheel/hooks/useWheelAnimation.js +215 -0
- package/dist/css/es/components/Wheel/hooks/useWheelInteraction.js +174 -0
- package/dist/css/es/components/Wheel/ui/WheelColumn.css +18 -0
- package/dist/css/es/components/Wheel/ui/WheelColumn.js +157 -0
- package/dist/css/es/components/Wheel/ui/WheelColumnWidth.js +32 -0
- package/dist/css/es/components/Wheel/ui/WheelItem.css +16 -0
- package/dist/css/es/components/Wheel/ui/WheelItem.js +54 -0
- package/dist/css/es/components/Wheel/ui/WheelItemContent.js +18 -0
- package/dist/css/es/components/Wheel/utils.js +32 -0
- package/dist/css/es/components/Wheel/variations/_disabled/base.js +4 -0
- package/dist/css/es/components/Wheel/variations/_disabled/base_r9b0ts.css +1 -0
- package/dist/css/es/components/Wheel/variations/_size/base.js +4 -0
- package/dist/css/es/components/Wheel/variations/_size/base_x642ct.css +1 -0
- package/dist/css/es/components/Wheel/variations/_view/base.js +4 -0
- package/dist/css/es/components/Wheel/variations/_view/base_9e3071.css +1 -0
- package/dist/css/es/index.css +47 -25
- package/dist/css/es/index.js +3 -0
- package/dist/css/es/utils/getPanelZIndex.js +6 -0
- package/dist/emotion/cjs/components/BottomSheet/BottomSheet.js +4 -5
- package/dist/emotion/cjs/components/BottomSheet/BottomSheet.styles.js +9 -9
- package/dist/emotion/cjs/components/BottomSheet/BottomSheet.tokens.js +1 -0
- package/dist/emotion/cjs/components/BottomSheet/hooks/useBottomSheetDrag.js +4 -1
- package/dist/emotion/cjs/components/BottomSheet/utils/index.js +0 -7
- package/dist/emotion/cjs/components/Editable/Editable.js +21 -3
- package/dist/emotion/cjs/components/Editable/Editable.styles.js +5 -5
- package/dist/emotion/cjs/components/Editable/Editable.tokens.js +5 -1
- package/dist/emotion/cjs/components/Editable/variations/_size/base.js +1 -1
- package/dist/emotion/cjs/components/Editable/variations/_view/base.js +1 -1
- package/dist/emotion/cjs/components/Pagination/Pagination.js +31 -19
- package/dist/emotion/cjs/components/Pagination/Pagination.styles.js +16 -9
- package/dist/emotion/cjs/components/Pagination/Pagination.tokens.js +3 -1
- package/dist/emotion/cjs/components/Pagination/ui/PaginationQuickJumpToPage/PaginationQuickJumpToPage.js +40 -15
- package/dist/emotion/cjs/components/Pagination/ui/PaginationQuickJumpToPage/PaginationQuickJumpToPage.styles.js +4 -4
- package/dist/emotion/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js +1 -1
- package/dist/emotion/cjs/components/Pagination/utils/index.js +2 -0
- package/dist/emotion/cjs/components/Wheel/Wheel.js +136 -0
- package/dist/emotion/cjs/components/Wheel/Wheel.styles.js +137 -0
- package/dist/emotion/cjs/components/Wheel/Wheel.tokens.js +92 -0
- package/dist/emotion/cjs/components/Wheel/Wheel.types.js +4 -0
- package/dist/emotion/cjs/components/Wheel/hooks/useStaticTextAfter.js +63 -0
- package/dist/emotion/cjs/components/Wheel/hooks/useWheelAnimation.js +207 -0
- package/dist/emotion/cjs/components/Wheel/hooks/useWheelInteraction.js +165 -0
- package/dist/emotion/cjs/components/Wheel/index.js +26 -0
- package/dist/emotion/cjs/components/Wheel/ui/WheelColumn.js +186 -0
- package/dist/emotion/cjs/components/Wheel/ui/WheelColumnWidth.js +70 -0
- package/dist/emotion/cjs/components/Wheel/ui/WheelItem.js +88 -0
- package/dist/emotion/cjs/components/Wheel/ui/WheelItemContent.js +60 -0
- package/dist/emotion/cjs/components/Wheel/utils.js +43 -0
- package/dist/emotion/cjs/components/Wheel/variations/_disabled/base.js +14 -0
- package/dist/emotion/cjs/components/Wheel/variations/_size/base.js +12 -0
- package/dist/emotion/cjs/components/Wheel/variations/_view/base.js +13 -0
- package/dist/emotion/cjs/index.js +1 -0
- package/dist/emotion/cjs/utils/getPanelZIndex.js +14 -0
- package/dist/emotion/cjs/utils/index.js +4 -0
- package/dist/emotion/es/components/BottomSheet/BottomSheet.js +4 -5
- package/dist/emotion/es/components/BottomSheet/BottomSheet.styles.js +9 -9
- package/dist/emotion/es/components/BottomSheet/BottomSheet.tokens.js +1 -0
- package/dist/emotion/es/components/BottomSheet/hooks/useBottomSheetDrag.js +4 -1
- package/dist/emotion/es/components/BottomSheet/utils/index.js +0 -4
- package/dist/emotion/es/components/Editable/Editable.js +16 -3
- package/dist/emotion/es/components/Editable/Editable.styles.js +5 -5
- package/dist/emotion/es/components/Editable/Editable.tokens.js +5 -1
- package/dist/emotion/es/components/Editable/variations/_size/base.js +1 -1
- package/dist/emotion/es/components/Editable/variations/_view/base.js +1 -1
- package/dist/emotion/es/components/Pagination/Pagination.js +32 -20
- package/dist/emotion/es/components/Pagination/Pagination.styles.js +13 -9
- package/dist/emotion/es/components/Pagination/Pagination.tokens.js +3 -1
- package/dist/emotion/es/components/Pagination/ui/PaginationQuickJumpToPage/PaginationQuickJumpToPage.js +40 -15
- package/dist/emotion/es/components/Pagination/ui/PaginationQuickJumpToPage/PaginationQuickJumpToPage.styles.js +4 -4
- package/dist/emotion/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js +1 -1
- package/dist/emotion/es/components/Pagination/utils/index.js +2 -0
- package/dist/emotion/es/components/Wheel/Wheel.js +72 -0
- package/dist/emotion/es/components/Wheel/Wheel.styles.js +73 -0
- package/dist/emotion/es/components/Wheel/Wheel.tokens.js +71 -0
- package/dist/emotion/es/components/Wheel/Wheel.types.js +3 -0
- package/dist/emotion/es/components/Wheel/hooks/useStaticTextAfter.js +53 -0
- package/dist/emotion/es/components/Wheel/hooks/useWheelAnimation.js +197 -0
- package/dist/emotion/es/components/Wheel/hooks/useWheelInteraction.js +155 -0
- package/dist/emotion/es/components/Wheel/index.js +2 -0
- package/dist/emotion/es/components/Wheel/ui/WheelColumn.js +130 -0
- package/dist/emotion/es/components/Wheel/ui/WheelColumnWidth.js +19 -0
- package/dist/emotion/es/components/Wheel/ui/WheelItem.js +37 -0
- package/dist/emotion/es/components/Wheel/ui/WheelItemContent.js +9 -0
- package/dist/emotion/es/components/Wheel/utils.js +19 -0
- package/dist/emotion/es/components/Wheel/variations/_disabled/base.js +4 -0
- package/dist/emotion/es/components/Wheel/variations/_size/base.js +2 -0
- package/dist/emotion/es/components/Wheel/variations/_view/base.js +3 -0
- package/dist/emotion/es/index.js +1 -0
- package/dist/emotion/es/utils/getPanelZIndex.js +4 -0
- package/dist/emotion/es/utils/index.js +1 -0
- package/dist/styled-components/cjs/components/BottomSheet/BottomSheet.js +4 -5
- package/dist/styled-components/cjs/components/BottomSheet/BottomSheet.styles.js +12 -10
- package/dist/styled-components/cjs/components/BottomSheet/BottomSheet.tokens.js +1 -0
- package/dist/styled-components/cjs/components/BottomSheet/hooks/useBottomSheetDrag.js +4 -1
- package/dist/styled-components/cjs/components/BottomSheet/utils/index.js +0 -7
- package/dist/styled-components/cjs/components/Editable/Editable.js +21 -3
- package/dist/styled-components/cjs/components/Editable/Editable.styles.js +18 -9
- package/dist/styled-components/cjs/components/Editable/Editable.tokens.js +5 -1
- package/dist/styled-components/cjs/components/Editable/variations/_size/base.js +7 -1
- package/dist/styled-components/cjs/components/Editable/variations/_view/base.js +5 -3
- package/dist/styled-components/cjs/components/Pagination/Pagination.js +31 -19
- package/dist/styled-components/cjs/components/Pagination/Pagination.styles.js +19 -9
- package/dist/styled-components/cjs/components/Pagination/Pagination.tokens.js +3 -1
- package/dist/styled-components/cjs/components/Pagination/ui/PaginationQuickJumpToPage/PaginationQuickJumpToPage.js +40 -15
- package/dist/styled-components/cjs/components/Pagination/ui/PaginationQuickJumpToPage/PaginationQuickJumpToPage.styles.js +6 -5
- package/dist/styled-components/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js +1 -1
- package/dist/styled-components/cjs/components/Pagination/utils/index.js +2 -0
- package/dist/styled-components/cjs/components/Wheel/Wheel.js +136 -0
- package/dist/styled-components/cjs/components/Wheel/Wheel.styles.js +320 -0
- package/dist/styled-components/cjs/components/Wheel/Wheel.tokens.js +92 -0
- package/dist/styled-components/cjs/components/Wheel/Wheel.types.js +4 -0
- package/dist/styled-components/cjs/components/Wheel/hooks/useStaticTextAfter.js +63 -0
- package/dist/styled-components/cjs/components/Wheel/hooks/useWheelAnimation.js +207 -0
- package/dist/styled-components/cjs/components/Wheel/hooks/useWheelInteraction.js +165 -0
- package/dist/styled-components/cjs/components/Wheel/index.js +26 -0
- package/dist/styled-components/cjs/components/Wheel/ui/WheelColumn.js +186 -0
- package/dist/styled-components/cjs/components/Wheel/ui/WheelColumnWidth.js +70 -0
- package/dist/styled-components/cjs/components/Wheel/ui/WheelItem.js +88 -0
- package/dist/styled-components/cjs/components/Wheel/ui/WheelItemContent.js +60 -0
- package/dist/styled-components/cjs/components/Wheel/utils.js +43 -0
- package/dist/styled-components/cjs/components/Wheel/variations/_disabled/base.js +28 -0
- package/dist/styled-components/cjs/components/Wheel/variations/_size/base.js +14 -0
- package/dist/styled-components/cjs/components/Wheel/variations/_view/base.js +26 -0
- package/dist/styled-components/cjs/index.js +1 -0
- package/dist/styled-components/cjs/utils/getPanelZIndex.js +14 -0
- package/dist/styled-components/cjs/utils/index.js +4 -0
- package/dist/styled-components/es/components/BottomSheet/BottomSheet.js +4 -5
- package/dist/styled-components/es/components/BottomSheet/BottomSheet.styles.js +12 -10
- package/dist/styled-components/es/components/BottomSheet/BottomSheet.tokens.js +1 -0
- package/dist/styled-components/es/components/BottomSheet/hooks/useBottomSheetDrag.js +4 -1
- package/dist/styled-components/es/components/BottomSheet/utils/index.js +0 -4
- package/dist/styled-components/es/components/Editable/Editable.js +16 -3
- package/dist/styled-components/es/components/Editable/Editable.styles.js +18 -9
- package/dist/styled-components/es/components/Editable/Editable.tokens.js +5 -1
- package/dist/styled-components/es/components/Editable/variations/_size/base.js +7 -1
- package/dist/styled-components/es/components/Editable/variations/_view/base.js +5 -3
- package/dist/styled-components/es/components/Pagination/Pagination.js +32 -20
- package/dist/styled-components/es/components/Pagination/Pagination.styles.js +16 -9
- package/dist/styled-components/es/components/Pagination/Pagination.tokens.js +3 -1
- package/dist/styled-components/es/components/Pagination/ui/PaginationQuickJumpToPage/PaginationQuickJumpToPage.js +40 -15
- package/dist/styled-components/es/components/Pagination/ui/PaginationQuickJumpToPage/PaginationQuickJumpToPage.styles.js +6 -5
- package/dist/styled-components/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js +1 -1
- package/dist/styled-components/es/components/Pagination/utils/index.js +2 -0
- package/dist/styled-components/es/components/Wheel/Wheel.js +72 -0
- package/dist/styled-components/es/components/Wheel/Wheel.styles.js +220 -0
- package/dist/styled-components/es/components/Wheel/Wheel.tokens.js +71 -0
- package/dist/styled-components/es/components/Wheel/Wheel.types.js +3 -0
- package/dist/styled-components/es/components/Wheel/hooks/useStaticTextAfter.js +53 -0
- package/dist/styled-components/es/components/Wheel/hooks/useWheelAnimation.js +197 -0
- package/dist/styled-components/es/components/Wheel/hooks/useWheelInteraction.js +155 -0
- package/dist/styled-components/es/components/Wheel/index.js +2 -0
- package/dist/styled-components/es/components/Wheel/ui/WheelColumn.js +130 -0
- package/dist/styled-components/es/components/Wheel/ui/WheelColumnWidth.js +19 -0
- package/dist/styled-components/es/components/Wheel/ui/WheelItem.js +37 -0
- package/dist/styled-components/es/components/Wheel/ui/WheelItemContent.js +9 -0
- package/dist/styled-components/es/components/Wheel/utils.js +19 -0
- package/dist/styled-components/es/components/Wheel/variations/_disabled/base.js +18 -0
- package/dist/styled-components/es/components/Wheel/variations/_size/base.js +4 -0
- package/dist/styled-components/es/components/Wheel/variations/_view/base.js +16 -0
- package/dist/styled-components/es/index.js +1 -0
- package/dist/styled-components/es/utils/getPanelZIndex.js +4 -0
- package/dist/styled-components/es/utils/index.js +1 -0
- package/package.json +6 -6
- package/types/components/BottomSheet/BottomSheet.d.ts.map +1 -1
- package/types/components/BottomSheet/BottomSheet.styles.d.ts.map +1 -1
- package/types/components/BottomSheet/BottomSheet.tokens.d.ts +1 -0
- package/types/components/BottomSheet/BottomSheet.tokens.d.ts.map +1 -1
- package/types/components/BottomSheet/BottomSheet.types.d.ts +6 -0
- package/types/components/BottomSheet/BottomSheet.types.d.ts.map +1 -1
- package/types/components/BottomSheet/hooks/useBottomSheetDrag.d.ts.map +1 -1
- package/types/components/BottomSheet/utils/index.d.ts +0 -2
- package/types/components/BottomSheet/utils/index.d.ts.map +1 -1
- package/types/components/Editable/Editable.d.ts.map +1 -1
- package/types/components/Editable/Editable.styles.d.ts.map +1 -1
- package/types/components/Editable/Editable.tokens.d.ts +4 -0
- package/types/components/Editable/Editable.tokens.d.ts.map +1 -1
- package/types/components/Editable/Editable.types.d.ts +4 -0
- package/types/components/Editable/Editable.types.d.ts.map +1 -1
- package/types/components/Editable/variations/_size/base.d.ts.map +1 -1
- package/types/components/Editable/variations/_view/base.d.ts.map +1 -1
- package/types/components/Pagination/Pagination.d.ts.map +1 -1
- package/types/components/Pagination/Pagination.styles.d.ts +1 -0
- package/types/components/Pagination/Pagination.styles.d.ts.map +1 -1
- package/types/components/Pagination/Pagination.tokens.d.ts +4 -0
- package/types/components/Pagination/Pagination.tokens.d.ts.map +1 -1
- package/types/components/Pagination/Pagination.types.d.ts +10 -0
- package/types/components/Pagination/Pagination.types.d.ts.map +1 -1
- package/types/components/Pagination/ui/PaginationQuickJumpToPage/PaginationQuickJumpToPage.d.ts.map +1 -1
- package/types/components/Pagination/ui/PaginationQuickJumpToPage/PaginationQuickJumpToPage.types.d.ts +2 -0
- package/types/components/Pagination/ui/PaginationQuickJumpToPage/PaginationQuickJumpToPage.types.d.ts.map +1 -1
- package/types/components/Pagination/utils/index.d.ts +2 -0
- package/types/components/Pagination/utils/index.d.ts.map +1 -1
- package/types/components/Wheel/Wheel.d.ts +55 -0
- package/types/components/Wheel/Wheel.d.ts.map +1 -0
- package/types/components/Wheel/Wheel.styles.d.ts +25 -0
- package/types/components/Wheel/Wheel.styles.d.ts.map +1 -0
- package/types/components/Wheel/Wheel.tokens.d.ts +116 -0
- package/types/components/Wheel/Wheel.tokens.d.ts.map +1 -0
- package/types/components/Wheel/Wheel.types.d.ts +159 -0
- package/types/components/Wheel/Wheel.types.d.ts.map +1 -0
- package/types/components/Wheel/hooks/useStaticTextAfter.d.ts +7 -0
- package/types/components/Wheel/hooks/useStaticTextAfter.d.ts.map +1 -0
- package/types/components/Wheel/hooks/useWheelAnimation.d.ts +19 -0
- package/types/components/Wheel/hooks/useWheelAnimation.d.ts.map +1 -0
- package/types/components/Wheel/hooks/useWheelInteraction.d.ts +35 -0
- package/types/components/Wheel/hooks/useWheelInteraction.d.ts.map +1 -0
- package/types/components/Wheel/index.d.ts +4 -0
- package/types/components/Wheel/index.d.ts.map +1 -0
- package/types/components/Wheel/ui/WheelColumn.d.ts +13 -0
- package/types/components/Wheel/ui/WheelColumn.d.ts.map +1 -0
- package/types/components/Wheel/ui/WheelColumnWidth.d.ts +9 -0
- package/types/components/Wheel/ui/WheelColumnWidth.d.ts.map +1 -0
- package/types/components/Wheel/ui/WheelItem.d.ts +17 -0
- package/types/components/Wheel/ui/WheelItem.d.ts.map +1 -0
- package/types/components/Wheel/ui/WheelItemContent.d.ts +7 -0
- package/types/components/Wheel/ui/WheelItemContent.d.ts.map +1 -0
- package/types/components/Wheel/utils.d.ts +7 -0
- package/types/components/Wheel/utils.d.ts.map +1 -0
- package/types/components/Wheel/variations/_disabled/base.d.ts +2 -0
- package/types/components/Wheel/variations/_disabled/base.d.ts.map +1 -0
- package/types/components/Wheel/variations/_size/base.d.ts +2 -0
- package/types/components/Wheel/variations/_size/base.d.ts.map +1 -0
- package/types/components/Wheel/variations/_view/base.d.ts +2 -0
- package/types/components/Wheel/variations/_view/base.d.ts.map +1 -0
- package/types/examples/components/Editable/Editable.config.d.ts.map +1 -1
- package/types/examples/components/Pagination/Pagination.config.d.ts.map +1 -1
- package/types/examples/components/Wheel/Wheel.config.d.ts +29 -0
- package/types/examples/components/Wheel/Wheel.config.d.ts.map +1 -0
- package/types/examples/components/Wheel/Wheel.d.ts +46 -0
- package/types/examples/components/Wheel/Wheel.d.ts.map +1 -0
- package/types/index.d.ts +1 -0
- package/types/index.d.ts.map +1 -1
- package/types/utils/getPanelZIndex.d.ts +3 -0
- package/types/utils/getPanelZIndex.d.ts.map +1 -0
- package/types/utils/index.d.ts +1 -0
- package/types/utils/index.d.ts.map +1 -1
- package/dist/css/cjs/components/Editable/Editable.styles_z2slj0.css +0 -4
- package/dist/css/cjs/components/Editable/variations/_size/base_1xzgyr1.css +0 -1
- package/dist/css/cjs/components/Editable/variations/_view/base_xbahf.css +0 -1
- package/dist/css/es/components/Editable/Editable.styles_z2slj0.css +0 -4
- package/dist/css/es/components/Editable/variations/_size/base_1xzgyr1.css +0 -1
- package/dist/css/es/components/Editable/variations/_view/base_xbahf.css +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './BottomSheet.
|
|
1
|
+
import './BottomSheet.styles_i1yfau.css';
|
|
2
2
|
import { styled } from '@linaria/react';
|
|
3
3
|
import { tokens } from './BottomSheet.tokens.js';
|
|
4
4
|
import { component, mergeConfig } from '../../engines/common.js';
|
|
@@ -15,7 +15,7 @@ var PanelContent = /*#__PURE__*/styled('div')({
|
|
|
15
15
|
"class": "pks5zb5",
|
|
16
16
|
propsAsIs: false
|
|
17
17
|
});
|
|
18
|
-
var
|
|
18
|
+
var _exp7 = function _exp7() {
|
|
19
19
|
return function (_ref) {
|
|
20
20
|
var $placement = _ref.$placement;
|
|
21
21
|
return $placement === 'outer' ? "calc(-1 * (2 * var(".concat(tokens.handleGap, ") + var(").concat(tokens.handleHeight, ")))") : '0';
|
|
@@ -26,7 +26,7 @@ var Handler = /*#__PURE__*/styled('div')({
|
|
|
26
26
|
"class": "h3iv5vx",
|
|
27
27
|
propsAsIs: false,
|
|
28
28
|
vars: {
|
|
29
|
-
"h3iv5vx-0": [/*#__PURE__*/
|
|
29
|
+
"h3iv5vx-0": [/*#__PURE__*/_exp7()]
|
|
30
30
|
}
|
|
31
31
|
});
|
|
32
32
|
var StyledBody = /*#__PURE__*/styled('div')({
|
|
@@ -49,10 +49,10 @@ var BeforeHeader = /*#__PURE__*/styled('div')({
|
|
|
49
49
|
"class": "b8ms4js",
|
|
50
50
|
propsAsIs: false
|
|
51
51
|
});
|
|
52
|
-
var
|
|
52
|
+
var _exp16 = function _exp16() {
|
|
53
53
|
return IconButton;
|
|
54
54
|
};
|
|
55
|
-
var CloseButton = /*#__PURE__*/styled(
|
|
55
|
+
var CloseButton = /*#__PURE__*/styled(_exp16())({
|
|
56
56
|
name: "CloseButton",
|
|
57
57
|
"class": "com5ybz",
|
|
58
58
|
propsAsIs: true
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
.pd6pofm{position:fixed;left:0;bottom:0;width:100%;max-height:inherit;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;box-sizing:border-box;border-radius:var(--plasma-bottom-sheet-border-radius);overflow:visible;}.pd6pofm.bottom-sheet-animated{-webkit-transition:-webkit-transform 0.4s ease,opacity 0.4s ease,height 0.3s ease,visibility 0.4s ease;-webkit-transition:transform 0.4s ease,opacity 0.4s ease,height 0.3s ease,visibility 0.4s ease;transition:transform 0.4s ease,opacity 0.4s ease,height 0.3s ease,visibility 0.4s ease;}.pd6pofm.bottom-sheet-closed{-webkit-transform:translateY(100%);-ms-transform:translateY(100%);transform:translateY(100%);opacity:0;visibility:hidden;}
|
|
2
|
-
.pks5zb5{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex:1 1 auto;-ms-flex:1 1 auto;flex:1 1 auto;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;min-height:0;max-height:inherit;background-color:var(--plasma-bottom-sheet-content-background-color);border-radius:inherit;overflow:hidden;}
|
|
2
|
+
.pks5zb5{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex:1 1 auto;-ms-flex:1 1 auto;flex:1 1 auto;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;min-height:0;max-height:inherit;padding-left:var(--plasma-bottom-sheet-content-padding-horizontal,0);padding-right:var(--plasma-bottom-sheet-content-padding-horizontal,0);background-color:var(--plasma-bottom-sheet-content-background-color);border-radius:inherit;overflow:hidden;}
|
|
3
3
|
.h3iv5vx{position:absolute;z-index:1;top:var(--h3iv5vx-0);left:0;right:0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;box-sizing:border-box;padding:var(--plasma-bottom-sheet-handle-gap) 0;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:-webkit-grab;cursor:-moz-grab;cursor:grab;}.h3iv5vx::before{content:'';display:none;width:var(--plasma-bottom-sheet-handle-width);height:var(--plasma-bottom-sheet-handle-height);border-radius:var(--plasma-bottom-sheet-handle-border-radius);background-color:var(--plasma-bottom-sheet-handle-background-color);}.h3iv5vx.bottom-sheet-has-handle::before{display:block;}
|
|
4
4
|
.s1vjzza6{-webkit-flex:1 1 auto;-ms-flex:1 1 auto;flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:none;}.s1vjzza6::-webkit-scrollbar{display:none;}
|
|
5
5
|
.h1lksfmy{position:relative;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;}.h1lksfmy::after{content:'';position:absolute;left:0;right:0;display:block;height:var(--plasma-bottom-sheet-divider-width);background-color:var(--plasma-bottom-sheet-divider-color);opacity:0;-webkit-transition:opacity 0.2s ease;transition:opacity 0.2s ease;bottom:0;}.h1lksfmy.bottom-sheet-header-divider-visible::after{opacity:1;}
|
|
@@ -15,6 +15,7 @@ var tokens = {
|
|
|
15
15
|
overlayColor: '--plasma-bottom-sheet-overlay-color',
|
|
16
16
|
overlayWithBlurColor: '--plasma-bottom-sheet-overlay-with-blur-color',
|
|
17
17
|
contentBackgroundColor: '--plasma-bottom-sheet-content-background-color',
|
|
18
|
+
contentPaddingHorizontal: '--plasma-bottom-sheet-content-padding-horizontal',
|
|
18
19
|
borderRadius: '--plasma-bottom-sheet-border-radius',
|
|
19
20
|
handleBackgroundColor: '--plasma-bottom-sheet-handle-background-color',
|
|
20
21
|
handleWidth: '--plasma-bottom-sheet-handle-width',
|
|
@@ -46,6 +46,7 @@ var useBottomSheetDrag = function useBottomSheetDrag(args) {
|
|
|
46
46
|
var startY = 0;
|
|
47
47
|
var currentY = 0;
|
|
48
48
|
var startHeight = 0;
|
|
49
|
+
var renderedMaxHeight = Infinity;
|
|
49
50
|
var tracking = false;
|
|
50
51
|
var canStartDrag = function canStartDrag(target) {
|
|
51
52
|
if (isInteractive(target)) {
|
|
@@ -64,6 +65,8 @@ var useBottomSheetDrag = function useBottomSheetDrag(args) {
|
|
|
64
65
|
startY = clientY;
|
|
65
66
|
currentY = clientY;
|
|
66
67
|
startHeight = panel.offsetHeight;
|
|
68
|
+
// max-height панели вычитает safe-area сверху, и панель бывает ниже запрошенной высоты
|
|
69
|
+
renderedMaxHeight = startHeight < parseFloat(panel.style.height) - 1 ? startHeight : Infinity;
|
|
67
70
|
panel.style.transition = 'none';
|
|
68
71
|
};
|
|
69
72
|
var moveDrag = function moveDrag(clientY, event) {
|
|
@@ -76,7 +79,7 @@ var useBottomSheetDrag = function useBottomSheetDrag(args) {
|
|
|
76
79
|
if (points !== null && points !== void 0 && points.length) {
|
|
77
80
|
var _getSortedSnapPoints = getSortedSnapPoints(points, window.innerHeight),
|
|
78
81
|
pointsPx = _getSortedSnapPoints.pointsPx;
|
|
79
|
-
var maxHeight = pointsPx[pointsPx.length - 1];
|
|
82
|
+
var maxHeight = Math.min(pointsPx[pointsPx.length - 1], renderedMaxHeight);
|
|
80
83
|
|
|
81
84
|
// На верхней точке жест вверх отдаём нативному скроллу контента
|
|
82
85
|
if (deltaY < 0 && startHeight >= maxHeight) {
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { getSortedSnapPoints, resolveActiveSnapPoint } from '../../Sheet/utils/resolveSnapPoint.js';
|
|
2
2
|
|
|
3
|
-
var getPanelZIndex = function getPanelZIndex(zIndex) {
|
|
4
|
-
var numericZIndex = Number(zIndex);
|
|
5
|
-
return Number.isNaN(numericZIndex) ? zIndex : numericZIndex + 1;
|
|
6
|
-
};
|
|
7
3
|
var applyHeight = function applyHeight(element, heightPx) {
|
|
8
4
|
element.style.height = "".concat(heightPx, "px");
|
|
9
5
|
};
|
|
@@ -20,4 +16,4 @@ var applyActiveSnapHeight = function applyActiveSnapHeight(element, snapPoints,
|
|
|
20
16
|
return current;
|
|
21
17
|
};
|
|
22
18
|
|
|
23
|
-
export { applyActiveSnapHeight, applyHeight
|
|
19
|
+
export { applyActiveSnapHeight, applyHeight };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
.
|
|
1
|
+
.Editable_styles_1ts4ksj_e144o2uz__917551d8{position:relative;-webkit-align-self:stretch;-ms-flex-item-align:stretch;align-self:stretch;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;display:var(--e144o2uz-0);-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;}
|
|
2
2
|
|
|
3
|
-
.
|
|
4
|
-
.
|
|
3
|
+
.Editable_styles_1ts4ksj_sflp79j__917551d8{display:inline-block;color:var(--plasma-editable-placeholder-color);}
|
|
4
|
+
.Editable_styles_1ts4ksj_bfzpfcr__917551d8{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;max-width:100%;cursor:pointer;}.Editable_styles_1ts4ksj_bfzpfcr__917551d8 .Editable_styles_1ts4ksj_editableTextClip__917551d8{position:relative;min-width:0;max-width:100%;overflow:hidden;background-image:linear-gradient(currentColor,currentColor), linear-gradient(to right,currentColor,transparent),linear-gradient(currentColor,currentColor);background-size:4rem 100%,4rem 100%,calc(100% - 4rem) 100%;background-position:right top,right top,left top;background-repeat:no-repeat;background-attachment:local,scroll,scroll;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;}.Editable_styles_1ts4ksj_bfzpfcr__917551d8 .Editable_styles_1ts4ksj_editableTextBox__917551d8{width:-webkit-max-content;width:-moz-max-content;width:max-content;max-width:none;outline:none;white-space:nowrap;caret-color:var(--plasma-editable-caret-color);}.Editable_styles_1ts4ksj_bfzpfcr__917551d8:focus-within .Editable_styles_1ts4ksj_editableTextClip__917551d8{background:none;-webkit-text-fill-color:currentColor;}.Editable_styles_1ts4ksj_bfzpfcr__917551d8.Editable_styles_1ts4ksj_editableMultiline__917551d8{gap:var(--plasma-editable-icon-gap);}.Editable_styles_1ts4ksj_bfzpfcr__917551d8.Editable_styles_1ts4ksj_editableMultiline__917551d8 .Editable_styles_1ts4ksj_editableTextClip__917551d8{margin-right:0;padding-right:0;background:none;-webkit-text-fill-color:currentColor;}.Editable_styles_1ts4ksj_bfzpfcr__917551d8.Editable_styles_1ts4ksj_editableMultiline__917551d8 .Editable_styles_1ts4ksj_editableTextBox__917551d8{width:auto;min-width:0;white-space:pre-wrap;overflow-wrap:break-word;}.Editable_styles_1ts4ksj_bfzpfcr__917551d8.Editable_styles_1ts4ksj_editableMultiline__917551d8 .Editable_styles_1ts4ksj_e144o2uz__917551d8{padding-left:0;background:var(--plasma-editable-icon-background,var(--plasma-editable-edit-button-background));}
|
|
5
5
|
|
|
6
|
-
.
|
|
6
|
+
.base_fulhkl_btfj711__ea2014a8 .base_fulhkl_e144o2uz__ea2014a8{background:var( --plasma-editable-icon-background, linear-gradient( to left, var(--plasma-editable-edit-button-background) calc(100% - var(--plasma-editable-icon-gap)), transparent ) );color:var(--plasma-editable-edit-button-color);}.base_fulhkl_btfj711__ea2014a8:hover > .base_fulhkl_e144o2uz__ea2014a8{color:var(--plasma-editable-edit-button-color-hover);}
|
|
7
7
|
|
|
8
|
-
.
|
|
8
|
+
.base_60mm8z_b1r2hy8j__6fd2f3f5{--plasma-editable-edit-button-padding-left:var(--plasma-editable-icon-gap);--plasma-editable-text-box-padding-right:var(--plasma-editable-icon-gap);--plasma-editable-text-box-margin-right:calc(var(--plasma-editable-icon-gap) * -1);}.base_60mm8z_b1r2hy8j__6fd2f3f5 .base_60mm8z_e144o2uz__6fd2f3f5{padding-left:var(--plasma-editable-edit-button-padding-left);}.base_60mm8z_b1r2hy8j__6fd2f3f5 .base_60mm8z_editableTextClip__6fd2f3f5{margin-right:var(--plasma-editable-text-box-margin-right);padding-right:var(--plasma-editable-text-box-padding-right);}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { objectWithoutProperties as _objectWithoutProperties, slicedToArray as _slicedToArray } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
|
1
|
+
import { objectWithoutProperties as _objectWithoutProperties, slicedToArray as _slicedToArray, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
2
|
import React, { forwardRef, useState, useRef, useEffect } from 'react';
|
|
3
|
+
import cls from 'classnames';
|
|
3
4
|
import { classes } from './Editable.tokens.js';
|
|
4
5
|
import { StyledPlacehpolder, StyledInput, EditButton, base } from './Editable.styles.js';
|
|
5
6
|
import { base as base$1 } from './variations/_view/base.js';
|
|
@@ -9,7 +10,7 @@ import { clearSelection } from './utils/clearSelection.js';
|
|
|
9
10
|
import { selectText } from './utils/selectText.js';
|
|
10
11
|
import { keyCodes } from '../../utils/constants.js';
|
|
11
12
|
|
|
12
|
-
var _excluded = ["textComponent", "value", "icon", "maxLength", "spellCheck", "placeholder", "name", "onChange", "onBlur", "onPaste"];
|
|
13
|
+
var _excluded = ["textComponent", "value", "icon", "maxLength", "spellCheck", "placeholder", "name", "onChange", "onBlur", "onPaste", "multiline", "className"];
|
|
13
14
|
var editableRoot = function editableRoot(typographyVariants) {
|
|
14
15
|
return function (Root) {
|
|
15
16
|
return /*#__PURE__*/forwardRef(function (_ref, outerRef) {
|
|
@@ -25,6 +26,8 @@ var editableRoot = function editableRoot(typographyVariants) {
|
|
|
25
26
|
onChange = _ref.onChange,
|
|
26
27
|
onBlur = _ref.onBlur,
|
|
27
28
|
onPaste = _ref.onPaste,
|
|
29
|
+
multiline = _ref.multiline,
|
|
30
|
+
className = _ref.className,
|
|
28
31
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
29
32
|
var Component = textComponent;
|
|
30
33
|
var _useState = useState(false),
|
|
@@ -32,6 +35,7 @@ var editableRoot = function editableRoot(typographyVariants) {
|
|
|
32
35
|
isEditing = _useState2[0],
|
|
33
36
|
setIsEditing = _useState2[1];
|
|
34
37
|
var inputRef = useRef(null);
|
|
38
|
+
var textClipRef = useRef(null);
|
|
35
39
|
var innerRef = useForkRef(inputRef, outerRef);
|
|
36
40
|
var prevValueRef = useRef(value || '');
|
|
37
41
|
var handlePaste = function handlePaste(e) {
|
|
@@ -57,6 +61,12 @@ var editableRoot = function editableRoot(typographyVariants) {
|
|
|
57
61
|
setIsEditing(false);
|
|
58
62
|
clearSelection();
|
|
59
63
|
|
|
64
|
+
// End scrolls the clip to the caret. The fade uses background-attachment: local,
|
|
65
|
+
// so a leftover scrollLeft shifts it after editing ends.
|
|
66
|
+
if (textClipRef.current) {
|
|
67
|
+
textClipRef.current.scrollLeft = 0;
|
|
68
|
+
}
|
|
69
|
+
|
|
60
70
|
// NOTE: Remove <br> tag inserted by Safari
|
|
61
71
|
var editableElement = inputRef.current;
|
|
62
72
|
if (editableElement && editableElement.innerHTML === '<br>') {
|
|
@@ -99,7 +109,12 @@ var editableRoot = function editableRoot(typographyVariants) {
|
|
|
99
109
|
}
|
|
100
110
|
inputRef.current.textContent = value;
|
|
101
111
|
}, [value, textComponent]);
|
|
102
|
-
return /*#__PURE__*/React.createElement(Root,
|
|
112
|
+
return /*#__PURE__*/React.createElement(Root, _extends({}, props, {
|
|
113
|
+
className: cls(className, multiline && classes.multiline)
|
|
114
|
+
}), /*#__PURE__*/React.createElement("span", {
|
|
115
|
+
ref: textClipRef,
|
|
116
|
+
className: classes.textClip
|
|
117
|
+
}, /*#__PURE__*/React.createElement(Component, {
|
|
103
118
|
ref: innerRef,
|
|
104
119
|
className: classes.editableTextBox,
|
|
105
120
|
role: "textbox",
|
|
@@ -111,7 +126,7 @@ var editableRoot = function editableRoot(typographyVariants) {
|
|
|
111
126
|
onFocus: handleFocus,
|
|
112
127
|
onKeyDown: handleKeyDown,
|
|
113
128
|
"aria-label": placeholder
|
|
114
|
-
}), ((_prevValueRef$current = prevValueRef.current) === null || _prevValueRef$current === void 0 ? void 0 : _prevValueRef$current.length) === 0 && !isEditing && /*#__PURE__*/React.createElement(Component, null, /*#__PURE__*/React.createElement(StyledPlacehpolder, {
|
|
129
|
+
})), ((_prevValueRef$current = prevValueRef.current) === null || _prevValueRef$current === void 0 ? void 0 : _prevValueRef$current.length) === 0 && !isEditing && /*#__PURE__*/React.createElement(Component, null, /*#__PURE__*/React.createElement(StyledPlacehpolder, {
|
|
115
130
|
onClick: handleEditClick
|
|
116
131
|
}, placeholder)), /*#__PURE__*/React.createElement(StyledInput, {
|
|
117
132
|
type: "hidden",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import './Editable.
|
|
1
|
+
import './Editable.styles_1ts4ksj.css';
|
|
2
2
|
import { styled } from '@linaria/react';
|
|
3
3
|
|
|
4
4
|
var _exp = function _exp() {
|
|
5
5
|
return function (_ref) {
|
|
6
6
|
var isHidden = _ref.isHidden;
|
|
7
|
-
return isHidden ? 'none' : '';
|
|
7
|
+
return isHidden ? 'none' : 'inline-flex';
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
10
|
var EditButton = /*#__PURE__*/styled('span')({
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
.e144o2uz{position:relative;-webkit-align-self:stretch;-ms-flex-item-align:stretch;align-self:stretch;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;display:var(--e144o2uz-0);-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;}
|
|
2
|
+
|
|
3
|
+
.sflp79j{display:inline-block;color:var(--plasma-editable-placeholder-color);}
|
|
4
|
+
.bfzpfcr{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;max-width:100%;cursor:pointer;}.bfzpfcr .editable-text-clip{position:relative;min-width:0;max-width:100%;overflow:hidden;background-image:linear-gradient(currentColor,currentColor), linear-gradient(to right,currentColor,transparent),linear-gradient(currentColor,currentColor);background-size:4rem 100%,4rem 100%,calc(100% - 4rem) 100%;background-position:right top,right top,left top;background-repeat:no-repeat;background-attachment:local,scroll,scroll;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;}.bfzpfcr .editable-text-box{width:-webkit-max-content;width:-moz-max-content;width:max-content;max-width:none;outline:none;white-space:nowrap;caret-color:var(--plasma-editable-caret-color);}.bfzpfcr:focus-within .editable-text-clip{background:none;-webkit-text-fill-color:currentColor;}.bfzpfcr.editable-multiline{gap:var(--plasma-editable-icon-gap);}.bfzpfcr.editable-multiline .editable-text-clip{margin-right:0;padding-right:0;background:none;-webkit-text-fill-color:currentColor;}.bfzpfcr.editable-multiline .editable-text-box{width:auto;min-width:0;white-space:pre-wrap;overflow-wrap:break-word;}.bfzpfcr.editable-multiline .e144o2uz{padding-left:0;background:var(--plasma-editable-icon-background,var(--plasma-editable-edit-button-background));}
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
var classes = {
|
|
2
|
-
|
|
2
|
+
textClip: 'editable-text-clip',
|
|
3
|
+
editableTextBox: 'editable-text-box',
|
|
4
|
+
multiline: 'editable-multiline'
|
|
3
5
|
};
|
|
4
6
|
var tokens = {
|
|
5
7
|
editButtonBackground: '--plasma-editable-edit-button-background',
|
|
8
|
+
iconBackground: '--plasma-editable-icon-background',
|
|
6
9
|
editButtonColor: '--plasma-editable-edit-button-color',
|
|
7
10
|
editButtonColorHover: '--plasma-editable-edit-button-color-hover',
|
|
11
|
+
iconGap: '--plasma-editable-icon-gap',
|
|
8
12
|
editButtonPaddingLeft: '--plasma-editable-edit-button-padding-left',
|
|
9
13
|
placeholderColor: '--plasma-editable-placeholder-color',
|
|
10
14
|
caretColor: '--plasma-editable-caret-color',
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.b1r2hy8j{--plasma-editable-edit-button-padding-left:var(--plasma-editable-icon-gap);--plasma-editable-text-box-padding-right:var(--plasma-editable-icon-gap);--plasma-editable-text-box-margin-right:calc(var(--plasma-editable-icon-gap) * -1);}.b1r2hy8j .e144o2uz{padding-left:var(--plasma-editable-edit-button-padding-left);}.b1r2hy8j .editable-text-clip{margin-right:var(--plasma-editable-text-box-margin-right);padding-right:var(--plasma-editable-text-box-padding-right);}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.btfj711 .e144o2uz{background:var( --plasma-editable-icon-background, linear-gradient( to left, var(--plasma-editable-edit-button-background) calc(100% - var(--plasma-editable-icon-gap)), transparent ) );color:var(--plasma-editable-edit-button-color);}.btfj711:hover > .e144o2uz{color:var(--plasma-editable-edit-button-color-hover);}
|
|
@@ -39,15 +39,16 @@
|
|
|
39
39
|
|
|
40
40
|
.ButtonGroup_styles_g7qr4n_bxok88o__93faed32{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;}
|
|
41
41
|
|
|
42
|
-
.
|
|
43
|
-
.
|
|
44
|
-
.
|
|
45
|
-
.
|
|
46
|
-
.
|
|
47
|
-
.
|
|
48
|
-
.
|
|
49
|
-
.
|
|
50
|
-
.
|
|
42
|
+
.Pagination_styles_1af8kwt_puv60es__8580137b{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;color:var(--plasma-pagination-color);}.Pagination_styles_1af8kwt_puv60es__8580137b.Pagination_styles_1af8kwt_paginationTypeCompact__8580137b{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:0.5rem;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;}.Pagination_styles_1af8kwt_puv60es__8580137b.Pagination_styles_1af8kwt_paginationTypeDefault__8580137b{width:100%;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-flex:0 0 100%;-ms-flex:0 0 100%;flex:0 0 100%;gap:1rem;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;}
|
|
43
|
+
.Pagination_styles_1af8kwt_p15kbnt1__8580137b{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:0.25rem;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;}
|
|
44
|
+
.Pagination_styles_1af8kwt_pom5dxu__8580137b{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:var(--plasma-pagination-helper-text-gap);-webkit-flex-shrink:1;-ms-flex-negative:1;flex-shrink:1;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;}.Pagination_styles_1af8kwt_pom5dxu__8580137b.Pagination_styles_1af8kwt_paginationTypeCompact__8580137b{width:100%;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;}.Pagination_styles_1af8kwt_pom5dxu__8580137b.Pagination_styles_1af8kwt_paginationTypeCompact__8580137b.Pagination_styles_1af8kwt_paginationHasPerpageSelect__8580137b{-webkit-flex-direction:row-reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse;}.Pagination_styles_1af8kwt_pom5dxu__8580137b.Pagination_styles_1af8kwt_paginationTypeCompact__8580137b.Pagination_styles_1af8kwt_paginationHasQuickJump__8580137b{-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;}
|
|
45
|
+
.Pagination_styles_1af8kwt_p1vkev34__8580137b{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:0.125rem;}
|
|
46
|
+
.Pagination_styles_1af8kwt_p1u1car3__8580137b{--plasma-button-group-item-color:var(--plasma-pagination-button-color);--plasma-button-group-item-background-color:var(--plasma-pagination-button-bg-color);--plasma-button-group-item-color-hover:var(--plasma-pagination-button-color-hover);--plasma-button-group-item-background-color-hover:var(--plasma-pagination-button-bg-color-hover);--plasma-button-group-item-color-active:var(--plasma-pagination--button-color-active);--plasma-button-group-item-background-color-active:var(--plasma-pagination-button-bg-color-active);--plasma-button-group-item-font-family:var(--plasma-pagination-font-family);--plasma-button-group-item-font-size:var(--plasma-pagination-font-size);--plasma-button-group-item-font-style:var(--plasma-pagination-font-style);--plasma-button-group-item-font-weight:var(--plasma-pagination-font-weight);--plasma-button-group-item-letter-spacing:var(--plasma-pagination-letter-spacing);--plasma-button-group-item-line-height:var(--plasma-pagination-line-height);--plasma-button-group-item-width:var(--plasma-pagination-button-width);--plasma-button-group-item-height:var(--plasma-pagination-button-height);--plasma-button-group-item-default-radius:var(--plasma-pagination-button-radius);--plasma-button-group-side-item-radius:var(--plasma-pagination-button-radius);--plasma-button-group-item-segmented-radius:var(--plasma-pagination-button-radius);--plasma-button-group-item-radius-circle:var(--plasma-pagination-button-radius);--plasma-button-group-item-padding:0;}
|
|
47
|
+
.Pagination_styles_1af8kwt_pfvbu4f__8580137b{--plasma-button-color:var(--plasma-pagination-button-color);--plasma-button-background-color:var(--plasma-pagination-button-bg-color);--plasma-button-color-hover:var(--plasma-pagination-button-color-hover);--plasma-button-background-color-hover:var(--plasma-pagination-button-bg-color-hover);--plasma-button-color-active:var(--plasma-pagination--button-color-active);--plasma-button-background-color-active:var(--plasma-pagination-button-bg-color-active);--plasma-button-font-family:var(--plasma-pagination-font-family);--plasma-button-font-size:var(--plasma-pagination-font-size);--plasma-button-font-style:var(--plasma-pagination-font-style);--plasma-button-font-weight:var(--plasma-pagination-font-weight);--plasma-button-letter-spacing:var(--plasma-pagination-letter-spacing);--plasma-button-line-height:var(--plasma-pagination-line-height);--plasma-button-width:var(--plasma-pagination-button-width);--plasma-button-height:var(--plasma-pagination-button-height);--plasma-button-radius:var(--plasma-pagination-button-radius);--plasma-button-disabled-opacity:var(--plasma-pagination-button-disabled-opacity);--plasma-button-focus-color:var(--plasma-pagination--button-color-focus);position:relative;}.Pagination_styles_1af8kwt_pfvbu4f__8580137b.Pagination_styles_1af8kwt_paginationPageButtonActive__8580137b{--plasma-button-color:var(--plasma-pagination-button-current-color);--plasma-button-background-color:var(--plasma-pagination-button-current-bg-color);--plasma-button-color-hover:var(--plasma-pagination-button-current-color);--plasma-button-background-color-hover:var(--plasma-pagination-button-current-bg-color);--plasma-button-color-active:var(--plasma-pagination-button-current-color);--plasma-button-background-color-active:var(--plasma-pagination-button-current-bg-color);cursor:default;}.Pagination_styles_1af8kwt_pfvbu4f__8580137b.Pagination_styles_1af8kwt_paginationButtonDisabled__8580137b{--plasma-button-color:var(--plasma-pagination--button-color-disabled,var(--plasma-pagination-button-color));--plasma-button-background-color:var(--plasma-pagination--button-bg-color-disabled,var(--plasma-pagination-button-bg-color ));}.Pagination_styles_1af8kwt_pfvbu4f__8580137b::before{content:'';position:absolute;inset:0;z-index:1;border-radius:var(--plasma_private-btn-br);outline:var(--plasma_private-btn-outline-size) solid transparent;outline-offset:var(--plasma_private-btn-outline-size);-webkit-transition:outline-color 0.2s ease-in-out;transition:outline-color 0.2s ease-in-out;pointer-events:none;}.Pagination_styles_1af8kwt_pfvbu4f__8580137b.Pagination_styles_1af8kwt_focusVisible__8580137b:focus::before,.Pagination_styles_1af8kwt_pfvbu4f__8580137b[data-focus-visible-added]::before{outline-color:var(--plasma-pagination--button-color-focus);}
|
|
48
|
+
.Pagination_styles_1af8kwt_p61l60l__8580137b.Pagination_styles_1af8kwt_pfvbu4f__8580137b{--plasma-button-width:var(--plasma-pagination-button-width-shorter);--plasma-button-padding:0;}
|
|
49
|
+
.Pagination_styles_1af8kwt_p1g42k8l__8580137b{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:var(--plasma-pagination-helper-text-gap);}.Pagination_styles_1af8kwt_paginationTypeDefault__8580137b .Pagination_styles_1af8kwt_p1g42k8l__8580137b{min-width:0;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-flex-shrink:1;-ms-flex-negative:1;flex-shrink:1;}
|
|
50
|
+
.Pagination_styles_1af8kwt_p1618sye__8580137b{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;gap:var(--plasma-pagination-quick-jump-gap,0.75rem);}
|
|
51
|
+
.Pagination_styles_1af8kwt_p6bevv0__8580137b{color:var(--plasma-pagination-helper-text-color);}.Pagination_styles_1af8kwt_p6bevv0__8580137b.Pagination_styles_1af8kwt_paginationTypeDefault__8580137b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-webkit-flex-shrink:1;-ms-flex-negative:1;flex-shrink:1;}.Pagination_styles_1af8kwt_p6bevv0__8580137b.Pagination_styles_1af8kwt_paginationEllipsisText__8580137b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
|
|
51
52
|
|
|
52
53
|
.base_k4y7lv_b1615gl6__e61397f2 .base_k4y7lv_paginationIconReverse__e61397f2{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);}
|
|
53
54
|
|
|
@@ -55,9 +56,9 @@
|
|
|
55
56
|
|
|
56
57
|
.base_pmxmij_b1qdsi6u__58ebe44e{font-family:var(--plasma-pagination-font-family);font-size:var(--plasma-pagination-font-size);font-style:var(--plasma-pagination-font-style);font-weight:var(--plasma-pagination-font-weight);-webkit-letter-spacing:var(--plasma-pagination-letter-spacing);-moz-letter-spacing:var(--plasma-pagination-letter-spacing);-ms-letter-spacing:var(--plasma-pagination-letter-spacing);letter-spacing:var(--plasma-pagination-letter-spacing);line-height:var(--plasma-pagination-line-height);}
|
|
57
58
|
|
|
58
|
-
.
|
|
59
|
-
.
|
|
60
|
-
.
|
|
59
|
+
.PaginationQuickJumpToPage_styles_7bgblc_q1h8bq08__969b35d0{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:var(--plasma-pagination-quick-jump-inner-gap,0.5rem);-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;font-family:var(--plasma-pagination-font-family);font-size:var(--plasma-pagination-font-size);font-style:var(--plasma-pagination-font-style);font-weight:var(--plasma-pagination-font-weight);-webkit-letter-spacing:var(--plasma-pagination-letter-spacing);-moz-letter-spacing:var(--plasma-pagination-letter-spacing);-ms-letter-spacing:var(--plasma-pagination-letter-spacing);letter-spacing:var(--plasma-pagination-letter-spacing);line-height:var(--plasma-pagination-line-height);}
|
|
60
|
+
.PaginationQuickJumpToPage_styles_7bgblc_q8u5gow__969b35d0{white-space:nowrap;}
|
|
61
|
+
.PaginationQuickJumpToPage_styles_7bgblc_q1k930vd__969b35d0{background:var(--plasma-pagination-input-bg-color);color:var(--plasma-pagination-input-color);width:var(--plasma-pagination-input-width);height:var(--plasma-pagination-input-height);box-sizing:border-box;outline:none;border-radius:var(--plasma-pagination-input-border-radius);padding:var(--plasma-pagination-input-padding);border-color:var(--plasma-pagination-input-border-color);border-width:var(--plasma-pagination-input-border-width);border-style:solid;font-family:var(--plasma-pagination-font-family);font-size:var(--plasma-pagination-font-size);font-style:var(--plasma-pagination-font-style);font-weight:var(--plasma-pagination-font-weight);-webkit-letter-spacing:var(--plasma-pagination-letter-spacing);-moz-letter-spacing:var(--plasma-pagination-letter-spacing);-ms-letter-spacing:var(--plasma-pagination-letter-spacing);letter-spacing:var(--plasma-pagination-letter-spacing);line-height:var(--plasma-pagination-line-height);}.PaginationQuickJumpToPage_styles_7bgblc_q1k930vd__969b35d0::-webkit-outer-spin-button,.PaginationQuickJumpToPage_styles_7bgblc_q1k930vd__969b35d0::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}
|
|
61
62
|
|
|
62
63
|
.Button_styles_3ev7sc_s1goxm7b__d15822d0{--plasma-button-color:var(--plasma-select-button-color);--plasma-button-color-hover:var(--plasma-select-button-color-hover);--plasma-button-color-active:var(--plasma-select-button-color-active);--plasma-button-background-color:var(--plasma-select-button-background-color);--plasma-button-background-color-hover:var(--plasma-select-button-background-color-hover);--plasma-button-background-color-active:var(--plasma-select-button-background-color-active);--plasma-button-right-content-margin:var(--plasma-select-button-arrow-margin);--plasma-button-height:var(--plasma-select-target-height);--plasma-button-width:100%;--plasma-button-padding:var(--plasma-select-button-padding);--plasma-button-radius:var(--plasma-select-border-radius);--plasma-button-font-family:var(--plasma-select-font-family);--plasma-button-font-size:var(--plasma-select-font-size);--plasma-button-font-style:var(--plasma-select-font-style);--plasma-button-font-weight:var(--plasma-select-font-weight);--plasma-button-letter-spacing:var(--plasma-select-font-letter-spacing);--plasma-button-line-height:var(--plasma-select-font-line-height);--plasma-button-disabled-opacity:0.4;--plasma-button-focus-color:var(--surface-accent);text-align:left;}
|
|
63
64
|
.Button_styles_3ev7sc_iso0pku__d15822d0{line-height:0;color:var(--plasma-select-button-arrow-color);}.Button_styles_3ev7sc_iso0pku__d15822d0:hover{color:var(--plasma-select-button-arrow-color-hover);}.Button_styles_3ev7sc_iso0pku__d15822d0:active{color:var(--plasma-select-button-arrow-color-active);}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { objectWithoutProperties as _objectWithoutProperties, slicedToArray as _slicedToArray, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
2
|
import React, { forwardRef, useState, useRef, useEffect, Fragment } from 'react';
|
|
3
3
|
import { cx } from '../../utils/index.js';
|
|
4
|
-
import { PaginationRoot, PaginationPages,
|
|
4
|
+
import { PaginationRoot, PaginationPages, PaginationShorter, PaginationSection, PaginationButton, PaginationActions, PaginationActionsLeft, PaginationQuickJumpGroup, PaginationHelperText, PaginationButtonGroup } from './Pagination.styles.js';
|
|
5
5
|
import { defaultValues, getSections } from './utils/index.js';
|
|
6
6
|
import { base } from './variations/_view/base.js';
|
|
7
7
|
import { base as base$2 } from './variations/_type/base.js';
|
|
@@ -12,7 +12,7 @@ import { PaginationSelectPerPage } from './ui/PaginationSelectPerPage/Pagination
|
|
|
12
12
|
import { useForkRef } from '../../hooks/useForkRef.js';
|
|
13
13
|
import { isNumber } from '../../utils/isNumber.js';
|
|
14
14
|
|
|
15
|
-
var _excluded = ["value", "defaultValue", "helperText", "singleLine", "perPage", "defaultPerPage", "slots", "view", "viewCurrentPage", "type", "size", "pilled", "square", "disabledPages", "count", "hasQuickJump", "hasPerPage", "perPageList", "isCommonButtonStyles", "placeholderQuickJump", "textQuickJump", "textPerPage", "leftContent", "rightContent", "listWidth", "onChangePageValue", "onChangePerPageValue", "onChange", "onFocusQuickJump", "onBlurQuickJump"];
|
|
15
|
+
var _excluded = ["value", "defaultValue", "helperText", "singleLine", "perPage", "defaultPerPage", "slots", "view", "viewCurrentPage", "type", "size", "pilled", "square", "disabledPages", "count", "hasQuickJump", "hasPerPage", "hasPageRange", "hasTotalPages", "perPageList", "isCommonButtonStyles", "placeholderQuickJump", "textQuickJump", "textPerPage", "leftContent", "rightContent", "listWidth", "onChangePageValue", "onChangePerPageValue", "onChange", "onFocusQuickJump", "onBlurQuickJump"];
|
|
16
16
|
var paginationRoot = function paginationRoot(Root) {
|
|
17
17
|
return /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
18
18
|
var outerValue = _ref.value,
|
|
@@ -40,6 +40,10 @@ var paginationRoot = function paginationRoot(Root) {
|
|
|
40
40
|
hasQuickJump = _ref$hasQuickJump === void 0 ? defaultValues.hasQuickJump : _ref$hasQuickJump,
|
|
41
41
|
_ref$hasPerPage = _ref.hasPerPage,
|
|
42
42
|
hasPerPage = _ref$hasPerPage === void 0 ? defaultValues.hasPerPage : _ref$hasPerPage,
|
|
43
|
+
_ref$hasPageRange = _ref.hasPageRange,
|
|
44
|
+
hasPageRange = _ref$hasPageRange === void 0 ? defaultValues.hasPageRange : _ref$hasPageRange,
|
|
45
|
+
_ref$hasTotalPages = _ref.hasTotalPages,
|
|
46
|
+
hasTotalPages = _ref$hasTotalPages === void 0 ? defaultValues.hasTotalPages : _ref$hasTotalPages,
|
|
43
47
|
_ref$perPageList = _ref.perPageList,
|
|
44
48
|
perPageList = _ref$perPageList === void 0 ? defaultValues.perPageList : _ref$perPageList,
|
|
45
49
|
_ref$isCommonButtonSt = _ref.isCommonButtonStyles,
|
|
@@ -113,8 +117,11 @@ var paginationRoot = function paginationRoot(Root) {
|
|
|
113
117
|
onChangePageValue === null || onChangePageValue === void 0 || onChangePageValue(newValue);
|
|
114
118
|
};
|
|
115
119
|
var handlerSetPerPage = function handlerSetPerPage(newPerPageValue) {
|
|
120
|
+
var newPages = Math.max(Math.ceil(count / newPerPageValue), 1);
|
|
121
|
+
var newPageValue = hasTotalPages ? Math.min(pageValue, newPages) : pageValue;
|
|
116
122
|
setPerPageInner(newPerPageValue);
|
|
117
|
-
|
|
123
|
+
setPageInner(newPageValue);
|
|
124
|
+
onChange === null || onChange === void 0 || onChange(newPageValue, newPerPageValue);
|
|
118
125
|
onChangePerPageValue === null || onChangePerPageValue === void 0 || onChangePerPageValue(newPerPageValue);
|
|
119
126
|
};
|
|
120
127
|
var handleClick = function handleClick(currentPage) {
|
|
@@ -149,7 +156,27 @@ var paginationRoot = function paginationRoot(Root) {
|
|
|
149
156
|
return observer.disconnect();
|
|
150
157
|
});
|
|
151
158
|
};
|
|
152
|
-
}, [type]);
|
|
159
|
+
}, [type, hasPageRange]);
|
|
160
|
+
var leftSlot = leftContent && /*#__PURE__*/React.createElement(PaginationButtonGroup, {
|
|
161
|
+
isCommonButtonStyles: isCommonButtonStyles
|
|
162
|
+
}, leftContent);
|
|
163
|
+
var rightSlot = rightContent && /*#__PURE__*/React.createElement(PaginationButtonGroup, {
|
|
164
|
+
isCommonButtonStyles: isCommonButtonStyles
|
|
165
|
+
}, rightContent);
|
|
166
|
+
|
|
167
|
+
// Без номеров страниц слоты возле поля быстрого перехода
|
|
168
|
+
var withQuickJumpGroup = !hasPageRange && (hasQuickJump || leftSlot || rightSlot);
|
|
169
|
+
var pagesOffset = hasPageRange ? pagesWidth : 0;
|
|
170
|
+
var quickJump = /*#__PURE__*/React.createElement(PaginationQuickJumpToPage, {
|
|
171
|
+
prevPageValue: pageValue,
|
|
172
|
+
totalPages: Math.max(pages, 1),
|
|
173
|
+
hasTotalPages: hasTotalPages,
|
|
174
|
+
placeholderQuickJump: placeholderQuickJump,
|
|
175
|
+
textQuickJump: textQuickJump,
|
|
176
|
+
onChangeValue: handleSetPage,
|
|
177
|
+
onFocusQuickJump: onFocusQuickJump,
|
|
178
|
+
onBlurQuickJump: onBlurQuickJump
|
|
179
|
+
});
|
|
153
180
|
return /*#__PURE__*/React.createElement(Root, _extends({
|
|
154
181
|
size: size,
|
|
155
182
|
view: view,
|
|
@@ -158,11 +185,9 @@ var paginationRoot = function paginationRoot(Root) {
|
|
|
158
185
|
ref: forkRef
|
|
159
186
|
}, rest), /*#__PURE__*/React.createElement(PaginationRoot, {
|
|
160
187
|
className: typeClass
|
|
161
|
-
}, /*#__PURE__*/React.createElement(PaginationPages, {
|
|
188
|
+
}, hasPageRange && /*#__PURE__*/React.createElement(PaginationPages, {
|
|
162
189
|
ref: pagesRef
|
|
163
|
-
},
|
|
164
|
-
isCommonButtonStyles: isCommonButtonStyles
|
|
165
|
-
}, leftContent), sections && sections.map(function (section, indexSection) {
|
|
190
|
+
}, leftSlot, sections && sections.map(function (section, indexSection) {
|
|
166
191
|
return /*#__PURE__*/React.createElement(Fragment, {
|
|
167
192
|
key: indexSection
|
|
168
193
|
}, indexSection !== 0 && /*#__PURE__*/React.createElement(PaginationShorter, {
|
|
@@ -181,25 +206,16 @@ var paginationRoot = function paginationRoot(Root) {
|
|
|
181
206
|
}
|
|
182
207
|
}, currentPage);
|
|
183
208
|
})));
|
|
184
|
-
}),
|
|
185
|
-
isCommonButtonStyles: isCommonButtonStyles
|
|
186
|
-
}, rightContent)), /*#__PURE__*/React.createElement(PaginationActions, {
|
|
209
|
+
}), rightSlot), /*#__PURE__*/React.createElement(PaginationActions, {
|
|
187
210
|
style: type === 'compact' ? {
|
|
188
211
|
minWidth: '0px'
|
|
189
212
|
} : {
|
|
190
|
-
width: "calc(100% - ".concat(
|
|
213
|
+
width: "calc(100% - ".concat(pagesOffset, "px)")
|
|
191
214
|
},
|
|
192
215
|
className: cx(classes.actions, typeClass, withHasPerPageSelect, withHasQuickJump)
|
|
193
216
|
}, /*#__PURE__*/React.createElement(PaginationActionsLeft, {
|
|
194
217
|
className: typeClass
|
|
195
|
-
}, hasQuickJump && /*#__PURE__*/React.createElement(
|
|
196
|
-
prevPageValue: pageValue,
|
|
197
|
-
placeholderQuickJump: placeholderQuickJump,
|
|
198
|
-
textQuickJump: textQuickJump,
|
|
199
|
-
onChangeValue: handleSetPage,
|
|
200
|
-
onFocusQuickJump: onFocusQuickJump,
|
|
201
|
-
onBlurQuickJump: onBlurQuickJump
|
|
202
|
-
}), helperText && /*#__PURE__*/React.createElement(PaginationHelperText, {
|
|
218
|
+
}, withQuickJumpGroup ? /*#__PURE__*/React.createElement(PaginationQuickJumpGroup, null, leftSlot, hasQuickJump && quickJump, rightSlot) : hasQuickJump && quickJump, helperText && /*#__PURE__*/React.createElement(PaginationHelperText, {
|
|
203
219
|
className: cx(typeClass, singleLine ? classes.ellipsisText : ''),
|
|
204
220
|
style: {
|
|
205
221
|
maxWidth: rootWidth
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './Pagination.
|
|
1
|
+
import './Pagination.styles_1af8kwt.css';
|
|
2
2
|
import { styled } from '@linaria/react';
|
|
3
3
|
import { component, mergeConfig } from '../../engines/common.js';
|
|
4
4
|
import { buttonConfig } from '../Button/Button.js';
|
|
@@ -57,10 +57,15 @@ var PaginationActionsLeft = /*#__PURE__*/styled('div')({
|
|
|
57
57
|
"class": "p1g42k8l",
|
|
58
58
|
propsAsIs: false
|
|
59
59
|
});
|
|
60
|
+
var PaginationQuickJumpGroup = /*#__PURE__*/styled('div')({
|
|
61
|
+
name: "PaginationQuickJumpGroup",
|
|
62
|
+
"class": "p1618sye",
|
|
63
|
+
propsAsIs: false
|
|
64
|
+
});
|
|
60
65
|
var PaginationHelperText = /*#__PURE__*/styled('div')({
|
|
61
66
|
name: "PaginationHelperText",
|
|
62
|
-
"class": "
|
|
67
|
+
"class": "p6bevv0",
|
|
63
68
|
propsAsIs: false
|
|
64
69
|
});
|
|
65
70
|
|
|
66
|
-
export { PaginationActions, PaginationActionsLeft, PaginationButton, PaginationButtonGroup, PaginationHelperText, PaginationPages, PaginationRoot, PaginationSection, PaginationShorter };
|
|
71
|
+
export { PaginationActions, PaginationActionsLeft, PaginationButton, PaginationButtonGroup, PaginationHelperText, PaginationPages, PaginationQuickJumpGroup, PaginationRoot, PaginationSection, PaginationShorter };
|
|
@@ -6,4 +6,5 @@
|
|
|
6
6
|
.pfvbu4f{--plasma-button-color:var(--plasma-pagination-button-color);--plasma-button-background-color:var(--plasma-pagination-button-bg-color);--plasma-button-color-hover:var(--plasma-pagination-button-color-hover);--plasma-button-background-color-hover:var(--plasma-pagination-button-bg-color-hover);--plasma-button-color-active:var(--plasma-pagination--button-color-active);--plasma-button-background-color-active:var(--plasma-pagination-button-bg-color-active);--plasma-button-font-family:var(--plasma-pagination-font-family);--plasma-button-font-size:var(--plasma-pagination-font-size);--plasma-button-font-style:var(--plasma-pagination-font-style);--plasma-button-font-weight:var(--plasma-pagination-font-weight);--plasma-button-letter-spacing:var(--plasma-pagination-letter-spacing);--plasma-button-line-height:var(--plasma-pagination-line-height);--plasma-button-width:var(--plasma-pagination-button-width);--plasma-button-height:var(--plasma-pagination-button-height);--plasma-button-radius:var(--plasma-pagination-button-radius);--plasma-button-disabled-opacity:var(--plasma-pagination-button-disabled-opacity);--plasma-button-focus-color:var(--plasma-pagination--button-color-focus);position:relative;}.pfvbu4f.pagination-page-button-active{--plasma-button-color:var(--plasma-pagination-button-current-color);--plasma-button-background-color:var(--plasma-pagination-button-current-bg-color);--plasma-button-color-hover:var(--plasma-pagination-button-current-color);--plasma-button-background-color-hover:var(--plasma-pagination-button-current-bg-color);--plasma-button-color-active:var(--plasma-pagination-button-current-color);--plasma-button-background-color-active:var(--plasma-pagination-button-current-bg-color);cursor:default;}.pfvbu4f.pagination-button-disabled{--plasma-button-color:var(--plasma-pagination--button-color-disabled,var(--plasma-pagination-button-color));--plasma-button-background-color:var(--plasma-pagination--button-bg-color-disabled,var(--plasma-pagination-button-bg-color ));}.pfvbu4f::before{content:'';position:absolute;inset:0;z-index:1;border-radius:var(--plasma_private-btn-br);outline:var(--plasma_private-btn-outline-size) solid transparent;outline-offset:var(--plasma_private-btn-outline-size);-webkit-transition:outline-color 0.2s ease-in-out;transition:outline-color 0.2s ease-in-out;pointer-events:none;}.pfvbu4f.focus-visible:focus::before,.pfvbu4f[data-focus-visible-added]::before{outline-color:var(--plasma-pagination--button-color-focus);}
|
|
7
7
|
.p61l60l.pfvbu4f{--plasma-button-width:var(--plasma-pagination-button-width-shorter);--plasma-button-padding:0;}
|
|
8
8
|
.p1g42k8l{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:var(--plasma-pagination-helper-text-gap);}.pagination-type-default .p1g42k8l{min-width:0;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-flex-shrink:1;-ms-flex-negative:1;flex-shrink:1;}
|
|
9
|
-
.p1618sye{
|
|
9
|
+
.p1618sye{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;gap:var(--plasma-pagination-quick-jump-gap,0.75rem);}
|
|
10
|
+
.p6bevv0{color:var(--plasma-pagination-helper-text-color);}.p6bevv0.pagination-type-default{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-webkit-flex-shrink:1;-ms-flex-negative:1;flex-shrink:1;}.p6bevv0.pagination-ellipsis-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
|
|
@@ -76,7 +76,9 @@ var tokens = {
|
|
|
76
76
|
inputHeight: '--plasma-pagination-input-height',
|
|
77
77
|
inputBorderColor: '--plasma-pagination-input-border-color',
|
|
78
78
|
inputBorderWidth: '--plasma-pagination-input-border-width',
|
|
79
|
-
inputPadding: '--plasma-pagination-input-padding'
|
|
79
|
+
inputPadding: '--plasma-pagination-input-padding',
|
|
80
|
+
paginationQuickJumpGap: '--plasma-pagination-quick-jump-gap',
|
|
81
|
+
paginationQuickJumpInnerGap: '--plasma-pagination-quick-jump-inner-gap'
|
|
80
82
|
};
|
|
81
83
|
|
|
82
84
|
export { classes, tokens };
|
package/dist/css/es/components/Pagination/ui/PaginationQuickJumpToPage/PaginationQuickJumpToPage.css
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
.
|
|
2
|
-
.
|
|
3
|
-
.
|
|
1
|
+
.PaginationQuickJumpToPage_styles_7bgblc_q1h8bq08__969b35d0{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:var(--plasma-pagination-quick-jump-inner-gap,0.5rem);-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;font-family:var(--plasma-pagination-font-family);font-size:var(--plasma-pagination-font-size);font-style:var(--plasma-pagination-font-style);font-weight:var(--plasma-pagination-font-weight);-webkit-letter-spacing:var(--plasma-pagination-letter-spacing);-moz-letter-spacing:var(--plasma-pagination-letter-spacing);-ms-letter-spacing:var(--plasma-pagination-letter-spacing);letter-spacing:var(--plasma-pagination-letter-spacing);line-height:var(--plasma-pagination-line-height);}
|
|
2
|
+
.PaginationQuickJumpToPage_styles_7bgblc_q8u5gow__969b35d0{white-space:nowrap;}
|
|
3
|
+
.PaginationQuickJumpToPage_styles_7bgblc_q1k930vd__969b35d0{background:var(--plasma-pagination-input-bg-color);color:var(--plasma-pagination-input-color);width:var(--plasma-pagination-input-width);height:var(--plasma-pagination-input-height);box-sizing:border-box;outline:none;border-radius:var(--plasma-pagination-input-border-radius);padding:var(--plasma-pagination-input-padding);border-color:var(--plasma-pagination-input-border-color);border-width:var(--plasma-pagination-input-border-width);border-style:solid;font-family:var(--plasma-pagination-font-family);font-size:var(--plasma-pagination-font-size);font-style:var(--plasma-pagination-font-style);font-weight:var(--plasma-pagination-font-weight);-webkit-letter-spacing:var(--plasma-pagination-letter-spacing);-moz-letter-spacing:var(--plasma-pagination-letter-spacing);-ms-letter-spacing:var(--plasma-pagination-letter-spacing);letter-spacing:var(--plasma-pagination-letter-spacing);line-height:var(--plasma-pagination-line-height);}.PaginationQuickJumpToPage_styles_7bgblc_q1k930vd__969b35d0::-webkit-outer-spin-button,.PaginationQuickJumpToPage_styles_7bgblc_q1k930vd__969b35d0::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}
|