@salutejs/plasma-new-hope 0.389.0-dev.0 → 0.390.0-dev.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 +4 -4
- package/types/components/Attach/Attach.types.d.ts +2 -0
- package/types/components/Attach/Attach.types.d.ts.map +1 -1
- package/types/components/Attach/ui/Dropdown/Dropdown.styles.d.ts.map +1 -1
- 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/Dropdown/Dropdown.d.ts.map +1 -1
- package/types/components/Dropdown/Dropdown.types.d.ts +10 -1
- package/types/components/Dropdown/Dropdown.types.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/Attach/Attach.d.ts.map +1 -1
- package/types/examples/components/Dropdown/Dropdown.d.ts.map +1 -1
- 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
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React, { forwardRef } from "react";
|
|
2
|
+
import { classes } from "../Wheel.tokens";
|
|
3
|
+
import { ItemContent, ItemLabel, TextAfter } from "../Wheel.styles";
|
|
4
|
+
export const WheelItemContent = /*#__PURE__*/ forwardRef(({ item, state, renderItem, textAfter }, ref)=>/*#__PURE__*/ React.createElement(ItemContent, {
|
|
5
|
+
ref: ref,
|
|
6
|
+
className: classes.itemContent
|
|
7
|
+
}, /*#__PURE__*/ React.createElement(ItemLabel, null, item && (renderItem ? renderItem(item, state) : item.label)), item && textAfter != null && /*#__PURE__*/ React.createElement(TextAfter, {
|
|
8
|
+
className: classes.textAfter
|
|
9
|
+
}, textAfter)));
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export const normalizeIndex = (index, length)=>(index % length + length) % length;
|
|
2
|
+
/** Поиск доступной опции ограничен длиной списка, включая зацикленные столбцы. */ export const findNextIndex = (items, index, direction, loop)=>{
|
|
3
|
+
for(let step = 1; step <= items.length; step++){
|
|
4
|
+
const next = index + step * direction;
|
|
5
|
+
if (!loop && (next < 0 || next >= items.length)) {
|
|
6
|
+
return index;
|
|
7
|
+
}
|
|
8
|
+
const normalized = normalizeIndex(next, items.length);
|
|
9
|
+
if (!items[normalized].disabled) {
|
|
10
|
+
return normalized;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
return index;
|
|
14
|
+
};
|
|
15
|
+
export const getSelectedIndex = (items, value)=>{
|
|
16
|
+
const index = items.findIndex((item)=>item.value === value);
|
|
17
|
+
return index >= 0 ? index : items.findIndex((item)=>!item.disabled);
|
|
18
|
+
};
|
|
19
|
+
export const getItemText = (item)=>item.textValue ?? String(item.label);
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { css } from "@emotion/react";
|
|
2
|
+
import { classes, tokens } from "../../Wheel.tokens";
|
|
3
|
+
import { Column, Control, Item, Items } from "../../Wheel.styles";
|
|
4
|
+
export const base = /*#__PURE__*/ css("&[disabled]{opacity:var(", tokens.disabledOpacity, ");cursor:not-allowed;", Column, ".", classes.disabled, "{opacity:1;}}", Column, ".", classes.disabled, "{opacity:var(", tokens.disabledOpacity, ");cursor:not-allowed;}", Items, "[aria-disabled='true'],", Items, "[aria-disabled='true'] ", Item, ",", Item, "[aria-disabled='true']{cursor:not-allowed;}", Control, ":disabled{opacity:var(", tokens.disabledOpacity, ");cursor:not-allowed;}", "base");
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { css } from "@emotion/react";
|
|
2
|
+
import { classes, tokens } from "../../Wheel.tokens";
|
|
3
|
+
export const base = /*#__PURE__*/ css("position:relative;isolation:isolate;&::before{content:'';position:absolute;z-index:-1;top:50%;left:0;right:0;height:var(", tokens.selectionHeight, ",calc(var(", tokens.lineHeight, ") + var(", tokens.itemGap, ")));border-radius:var(", tokens.selectionBorderRadius, ",0);background-color:var(", tokens.selectionBackgroundColor, ",transparent);transform:translateY(-50%);pointer-events:none;}&.", classes.hasDescription, "::before{height:calc(\n var(", tokens.selectionHeight, ",calc(var(", tokens.lineHeight, ") + var(", tokens.itemGap, "))) +\n var(", tokens.descriptionGap, ") + var(", tokens.descriptionLineHeight, ")\n );}", "base");
|
package/dist/emotion/es/index.js
CHANGED
|
@@ -94,6 +94,7 @@ export * from "./components/ProgressBarCircular";
|
|
|
94
94
|
export * from "./components/TimePicker";
|
|
95
95
|
export * from "./components/DateTimePicker";
|
|
96
96
|
export * from "./components/Loader";
|
|
97
|
+
export * from "./components/Wheel";
|
|
97
98
|
export * from "./components/File";
|
|
98
99
|
export * from "./components/TextFieldSlider";
|
|
99
100
|
export * from "./components/_ai/Input";
|
|
@@ -11,6 +11,7 @@ export * from "./getPopoverPlacement";
|
|
|
11
11
|
export * from "./initialValuesHelper";
|
|
12
12
|
export { noop } from "./noop";
|
|
13
13
|
export { getHeightAsNumber } from "./getHeightAsNumber";
|
|
14
|
+
export { getPanelZIndex } from "./getPanelZIndex";
|
|
14
15
|
export { createConditionalComponent } from "./createConditionalComponent";
|
|
15
16
|
export { deepCopy } from "./deepCopy";
|
|
16
17
|
export { isArraysEqual } from "./isArraysEqual";
|
|
@@ -21,7 +21,6 @@ const _hooks = require("../../hooks");
|
|
|
21
21
|
const _Overlay = require("../Overlay");
|
|
22
22
|
const _Icon = require("../_Icon");
|
|
23
23
|
const _utils = require("../../utils");
|
|
24
|
-
const _utils1 = require("./utils");
|
|
25
24
|
const _BottomSheettokens = require("./BottomSheet.tokens");
|
|
26
25
|
const _useBottomSheet = require("./hooks/useBottomSheet");
|
|
27
26
|
const _base = require("./variations/_view/base");
|
|
@@ -69,7 +68,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
69
68
|
return newObj;
|
|
70
69
|
}
|
|
71
70
|
const noop = ()=>{};
|
|
72
|
-
const bottomSheetRoot = (Root)=>/*#__PURE__*/ (0, _react.forwardRef)(({ opened = false, children, contentBeforeHeader, contentHeader, contentFooter, handlePlacement = 'inner', hasClose = true, hasHandle = true, withOverlay = true, withBlur = true, withTransition = true, closeOnEsc = true, maxHeight = '66dvh', zIndex = 1000, onClose = noop, onOverlayClick, onEscKeyDown, snapPoints, initialSnapPoint, onSnapPointChange, className, view, size, ...rest }, ref)=>{
|
|
71
|
+
const bottomSheetRoot = (Root)=>/*#__PURE__*/ (0, _react.forwardRef)(({ opened = false, children, contentBeforeHeader, contentHeader, contentFooter, handlePlacement = 'inner', hasClose = true, hasHandle = true, withOverlay = true, withBlur = true, withTransition = true, closeOnEsc = true, maxHeight = '66dvh', zIndex = 1000, onClose = noop, onOverlayClick, closeOnOverlayClick = true, onEscKeyDown, snapPoints, initialSnapPoint, onSnapPointChange, className, view, size, ...rest }, ref)=>{
|
|
73
72
|
const content = (0, _react.useMemo)(()=>[
|
|
74
73
|
contentBeforeHeader,
|
|
75
74
|
contentHeader,
|
|
@@ -115,14 +114,14 @@ const bottomSheetRoot = (Root)=>/*#__PURE__*/ (0, _react.forwardRef)(({ opened =
|
|
|
115
114
|
zIndex: String(zIndex),
|
|
116
115
|
backgroundColorProperty: withBlur ? `var(${_BottomSheettokens.tokens.overlayWithBlurColor})` : `var(${_BottomSheettokens.tokens.overlayColor})`,
|
|
117
116
|
withBlur: withBlur,
|
|
118
|
-
isClickable:
|
|
117
|
+
isClickable: closeOnOverlayClick,
|
|
119
118
|
onOverlayClick: handleOverlayClick
|
|
120
119
|
}), /*#__PURE__*/ _react.default.createElement(_BottomSheetstyles.Panel, {
|
|
121
120
|
ref: panelRef,
|
|
122
121
|
className: panelClassName,
|
|
123
122
|
style: {
|
|
124
|
-
maxHeight: hasSnapPoints ? '100%' : maxHeight,
|
|
125
|
-
zIndex: (0,
|
|
123
|
+
maxHeight: hasSnapPoints ? 'calc(100% - env(safe-area-inset-top, 0px))' : maxHeight,
|
|
124
|
+
zIndex: (0, _utils.getPanelZIndex)(zIndex)
|
|
126
125
|
}
|
|
127
126
|
}, hasHandle && /*#__PURE__*/ _react.default.createElement(_BottomSheetstyles.Handler, {
|
|
128
127
|
ref: handleRef,
|
|
@@ -58,7 +58,7 @@ const dividerLine = `
|
|
|
58
58
|
`;
|
|
59
59
|
const Panel = _styledcomponents.default.div.withConfig({
|
|
60
60
|
displayName: "BottomSheet.styles__Panel",
|
|
61
|
-
componentId: "sc-
|
|
61
|
+
componentId: "sc-3d943010-0"
|
|
62
62
|
})([
|
|
63
63
|
`position:fixed;left:0;bottom:0;width:100%;max-height:inherit;display:flex;flex-direction:column;box-sizing:border-box;border-radius:var(`,
|
|
64
64
|
`);overflow:visible;&.`,
|
|
@@ -67,14 +67,16 @@ const Panel = _styledcomponents.default.div.withConfig({
|
|
|
67
67
|
], _BottomSheettokens.tokens.borderRadius, _BottomSheettokens.classes.animated, _BottomSheettokens.classes.closed);
|
|
68
68
|
const PanelContent = _styledcomponents.default.div.withConfig({
|
|
69
69
|
displayName: "BottomSheet.styles__PanelContent",
|
|
70
|
-
componentId: "sc-
|
|
70
|
+
componentId: "sc-3d943010-1"
|
|
71
71
|
})([
|
|
72
|
-
`display:flex;flex:1 1 auto;flex-direction:column;min-height:0;max-height:inherit;
|
|
72
|
+
`display:flex;flex:1 1 auto;flex-direction:column;min-height:0;max-height:inherit;padding-left:var(`,
|
|
73
|
+
`,0);padding-right:var(`,
|
|
74
|
+
`,0);background-color:var(`,
|
|
73
75
|
`);border-radius:inherit;overflow:hidden;`
|
|
74
|
-
], _BottomSheettokens.tokens.contentBackgroundColor);
|
|
76
|
+
], _BottomSheettokens.tokens.contentPaddingHorizontal, _BottomSheettokens.tokens.contentPaddingHorizontal, _BottomSheettokens.tokens.contentBackgroundColor);
|
|
75
77
|
const Handler = _styledcomponents.default.div.withConfig({
|
|
76
78
|
displayName: "BottomSheet.styles__Handler",
|
|
77
|
-
componentId: "sc-
|
|
79
|
+
componentId: "sc-3d943010-2"
|
|
78
80
|
})([
|
|
79
81
|
`position:absolute;z-index:1;top:`,
|
|
80
82
|
`;left:0;right:0;display:flex;justify-content:center;box-sizing:border-box;padding:var(`,
|
|
@@ -87,13 +89,13 @@ const Handler = _styledcomponents.default.div.withConfig({
|
|
|
87
89
|
], ({ $placement })=>$placement === 'outer' ? `calc(-1 * (2 * var(${_BottomSheettokens.tokens.handleGap}) + var(${_BottomSheettokens.tokens.handleHeight})))` : '0', _BottomSheettokens.tokens.handleGap, _BottomSheettokens.tokens.handleWidth, _BottomSheettokens.tokens.handleHeight, _BottomSheettokens.tokens.handleBorderRadius, _BottomSheettokens.tokens.handleBackgroundColor, _BottomSheettokens.classes.hasHandle);
|
|
88
90
|
const StyledBody = _styledcomponents.default.div.withConfig({
|
|
89
91
|
displayName: "BottomSheet.styles__StyledBody",
|
|
90
|
-
componentId: "sc-
|
|
92
|
+
componentId: "sc-3d943010-3"
|
|
91
93
|
})([
|
|
92
94
|
`flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:none;&::-webkit-scrollbar{display:none;}`
|
|
93
95
|
]);
|
|
94
96
|
const Header = _styledcomponents.default.div.withConfig({
|
|
95
97
|
displayName: "BottomSheet.styles__Header",
|
|
96
|
-
componentId: "sc-
|
|
98
|
+
componentId: "sc-3d943010-4"
|
|
97
99
|
})([
|
|
98
100
|
`position:relative;flex-shrink:0;&::after{`,
|
|
99
101
|
` bottom:0;}&.`,
|
|
@@ -101,7 +103,7 @@ const Header = _styledcomponents.default.div.withConfig({
|
|
|
101
103
|
], dividerLine, _BottomSheettokens.classes.headerDividerVisible);
|
|
102
104
|
const Footer = _styledcomponents.default.div.withConfig({
|
|
103
105
|
displayName: "BottomSheet.styles__Footer",
|
|
104
|
-
componentId: "sc-
|
|
106
|
+
componentId: "sc-3d943010-5"
|
|
105
107
|
})([
|
|
106
108
|
`position:relative;flex-shrink:0;&::before{`,
|
|
107
109
|
` top:0;}&.`,
|
|
@@ -109,13 +111,13 @@ const Footer = _styledcomponents.default.div.withConfig({
|
|
|
109
111
|
], dividerLine, _BottomSheettokens.classes.footerDividerVisible);
|
|
110
112
|
const BeforeHeader = _styledcomponents.default.div.withConfig({
|
|
111
113
|
displayName: "BottomSheet.styles__BeforeHeader",
|
|
112
|
-
componentId: "sc-
|
|
114
|
+
componentId: "sc-3d943010-6"
|
|
113
115
|
})([
|
|
114
116
|
`flex-shrink:0;`
|
|
115
117
|
]);
|
|
116
118
|
const CloseButton = (0, _styledcomponents.default)(IconButton).withConfig({
|
|
117
119
|
displayName: "BottomSheet.styles__CloseButton",
|
|
118
|
-
componentId: "sc-
|
|
120
|
+
componentId: "sc-3d943010-7"
|
|
119
121
|
})([
|
|
120
122
|
`position:absolute;z-index:2;top:var(`,
|
|
121
123
|
`);right:var(`,
|
|
@@ -33,6 +33,7 @@ const tokens = {
|
|
|
33
33
|
overlayColor: '--plasma-bottom-sheet-overlay-color',
|
|
34
34
|
overlayWithBlurColor: '--plasma-bottom-sheet-overlay-with-blur-color',
|
|
35
35
|
contentBackgroundColor: '--plasma-bottom-sheet-content-background-color',
|
|
36
|
+
contentPaddingHorizontal: '--plasma-bottom-sheet-content-padding-horizontal',
|
|
36
37
|
borderRadius: '--plasma-bottom-sheet-border-radius',
|
|
37
38
|
handleBackgroundColor: '--plasma-bottom-sheet-handle-background-color',
|
|
38
39
|
handleWidth: '--plasma-bottom-sheet-handle-width',
|
|
@@ -44,6 +44,7 @@ const useBottomSheetDrag = (args)=>{
|
|
|
44
44
|
let startY = 0;
|
|
45
45
|
let currentY = 0;
|
|
46
46
|
let startHeight = 0;
|
|
47
|
+
let renderedMaxHeight = Infinity;
|
|
47
48
|
let tracking = false;
|
|
48
49
|
const canStartDrag = (target)=>{
|
|
49
50
|
if (isInteractive(target)) {
|
|
@@ -62,6 +63,8 @@ const useBottomSheetDrag = (args)=>{
|
|
|
62
63
|
startY = clientY;
|
|
63
64
|
currentY = clientY;
|
|
64
65
|
startHeight = panel.offsetHeight;
|
|
66
|
+
// max-height панели вычитает safe-area сверху, и панель бывает ниже запрошенной высоты
|
|
67
|
+
renderedMaxHeight = startHeight < parseFloat(panel.style.height) - 1 ? startHeight : Infinity;
|
|
65
68
|
panel.style.transition = 'none';
|
|
66
69
|
};
|
|
67
70
|
const moveDrag = (clientY, event)=>{
|
|
@@ -73,7 +76,7 @@ const useBottomSheetDrag = (args)=>{
|
|
|
73
76
|
const points = snapPointsRef.current;
|
|
74
77
|
if (points?.length) {
|
|
75
78
|
const { pointsPx } = (0, _utils.getSortedSnapPoints)(points, window.innerHeight);
|
|
76
|
-
const maxHeight = pointsPx[pointsPx.length - 1];
|
|
79
|
+
const maxHeight = Math.min(pointsPx[pointsPx.length - 1], renderedMaxHeight);
|
|
77
80
|
// На верхней точке жест вверх отдаём нативному скроллу контента
|
|
78
81
|
if (deltaY < 0 && startHeight >= maxHeight) {
|
|
79
82
|
return;
|
|
@@ -14,16 +14,9 @@ _export(exports, {
|
|
|
14
14
|
},
|
|
15
15
|
get applyHeight () {
|
|
16
16
|
return applyHeight;
|
|
17
|
-
},
|
|
18
|
-
get getPanelZIndex () {
|
|
19
|
-
return getPanelZIndex;
|
|
20
17
|
}
|
|
21
18
|
});
|
|
22
19
|
const _utils = require("../../Sheet/utils");
|
|
23
|
-
const getPanelZIndex = (zIndex)=>{
|
|
24
|
-
const numericZIndex = Number(zIndex);
|
|
25
|
-
return Number.isNaN(numericZIndex) ? zIndex : numericZIndex + 1;
|
|
26
|
-
};
|
|
27
20
|
const applyHeight = (element, heightPx)=>{
|
|
28
21
|
element.style.height = `${heightPx}px`;
|
|
29
22
|
};
|
|
@@ -17,6 +17,7 @@ _export(exports, {
|
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
19
|
const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
|
|
20
|
+
const _classnames = /*#__PURE__*/ _interop_require_default(require("classnames"));
|
|
20
21
|
const _hooks = require("../../hooks");
|
|
21
22
|
const _utils = require("../../utils");
|
|
22
23
|
const _utils1 = require("./utils");
|
|
@@ -24,6 +25,11 @@ const _Editabletokens = require("./Editable.tokens");
|
|
|
24
25
|
const _Editablestyles = require("./Editable.styles");
|
|
25
26
|
const _base = require("./variations/_view/base");
|
|
26
27
|
const _base1 = require("./variations/_size/base");
|
|
28
|
+
function _interop_require_default(obj) {
|
|
29
|
+
return obj && obj.__esModule ? obj : {
|
|
30
|
+
default: obj
|
|
31
|
+
};
|
|
32
|
+
}
|
|
27
33
|
function _getRequireWildcardCache(nodeInterop) {
|
|
28
34
|
if (typeof WeakMap !== "function") return null;
|
|
29
35
|
var cacheBabelInterop = new WeakMap();
|
|
@@ -65,10 +71,11 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
65
71
|
}
|
|
66
72
|
return newObj;
|
|
67
73
|
}
|
|
68
|
-
const editableRoot = (typographyVariants)=>(Root)=>/*#__PURE__*/ (0, _react.forwardRef)(({ textComponent, value, icon, maxLength, spellCheck = 'false', placeholder, name, onChange, onBlur, onPaste, ...props }, outerRef)=>{
|
|
74
|
+
const editableRoot = (typographyVariants)=>(Root)=>/*#__PURE__*/ (0, _react.forwardRef)(({ textComponent, value, icon, maxLength, spellCheck = 'false', placeholder, name, onChange, onBlur, onPaste, multiline, className, ...props }, outerRef)=>{
|
|
69
75
|
const Component = textComponent;
|
|
70
76
|
const [isEditing, setIsEditing] = (0, _react.useState)(false);
|
|
71
77
|
const inputRef = (0, _react.useRef)(null);
|
|
78
|
+
const textClipRef = (0, _react.useRef)(null);
|
|
72
79
|
const innerRef = (0, _hooks.useForkRef)(inputRef, outerRef);
|
|
73
80
|
const prevValueRef = (0, _react.useRef)(value || '');
|
|
74
81
|
const handlePaste = (e)=>{
|
|
@@ -93,6 +100,11 @@ const editableRoot = (typographyVariants)=>(Root)=>/*#__PURE__*/ (0, _react.forw
|
|
|
93
100
|
const handleBlur = (e)=>{
|
|
94
101
|
setIsEditing(false);
|
|
95
102
|
(0, _utils1.clearSelection)();
|
|
103
|
+
// End scrolls the clip to the caret. The fade uses background-attachment: local,
|
|
104
|
+
// so a leftover scrollLeft shifts it after editing ends.
|
|
105
|
+
if (textClipRef.current) {
|
|
106
|
+
textClipRef.current.scrollLeft = 0;
|
|
107
|
+
}
|
|
96
108
|
// NOTE: Remove <br> tag inserted by Safari
|
|
97
109
|
const editableElement = inputRef.current;
|
|
98
110
|
if (editableElement && editableElement.innerHTML === '<br>') {
|
|
@@ -138,7 +150,13 @@ const editableRoot = (typographyVariants)=>(Root)=>/*#__PURE__*/ (0, _react.forw
|
|
|
138
150
|
value,
|
|
139
151
|
textComponent
|
|
140
152
|
]);
|
|
141
|
-
return /*#__PURE__*/ _react.default.createElement(Root,
|
|
153
|
+
return /*#__PURE__*/ _react.default.createElement(Root, {
|
|
154
|
+
...props,
|
|
155
|
+
className: (0, _classnames.default)(className, multiline && _Editabletokens.classes.multiline)
|
|
156
|
+
}, /*#__PURE__*/ _react.default.createElement("span", {
|
|
157
|
+
ref: textClipRef,
|
|
158
|
+
className: _Editabletokens.classes.textClip
|
|
159
|
+
}, /*#__PURE__*/ _react.default.createElement(Component, {
|
|
142
160
|
ref: innerRef,
|
|
143
161
|
className: _Editabletokens.classes.editableTextBox,
|
|
144
162
|
role: "textbox",
|
|
@@ -150,7 +168,7 @@ const editableRoot = (typographyVariants)=>(Root)=>/*#__PURE__*/ (0, _react.forw
|
|
|
150
168
|
onFocus: handleFocus,
|
|
151
169
|
onKeyDown: handleKeyDown,
|
|
152
170
|
"aria-label": placeholder
|
|
153
|
-
}), prevValueRef.current?.length === 0 && !isEditing && /*#__PURE__*/ _react.default.createElement(Component, null, /*#__PURE__*/ _react.default.createElement(_Editablestyles.StyledPlacehpolder, {
|
|
171
|
+
})), prevValueRef.current?.length === 0 && !isEditing && /*#__PURE__*/ _react.default.createElement(Component, null, /*#__PURE__*/ _react.default.createElement(_Editablestyles.StyledPlacehpolder, {
|
|
154
172
|
onClick: handleEditClick
|
|
155
173
|
}, placeholder)), /*#__PURE__*/ _react.default.createElement(_Editablestyles.StyledInput, {
|
|
156
174
|
type: "hidden",
|
|
@@ -67,26 +67,35 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
67
67
|
}
|
|
68
68
|
const EditButton = _styledcomponents.default.span.withConfig({
|
|
69
69
|
displayName: "Editable.styles__EditButton",
|
|
70
|
-
componentId: "sc-
|
|
70
|
+
componentId: "sc-b99fc7f9-0"
|
|
71
71
|
})([
|
|
72
|
-
`position:relative;align-self:stretch;display:`,
|
|
73
|
-
|
|
74
|
-
], ({ isHidden })=>isHidden ? 'none' : '');
|
|
72
|
+
`position:relative;align-self:stretch;flex-shrink:0;display:`,
|
|
73
|
+
`;align-items:center;justify-content:center;`
|
|
74
|
+
], ({ isHidden })=>isHidden ? 'none' : 'inline-flex');
|
|
75
75
|
const StyledInput = _styledcomponents.default.input.withConfig({
|
|
76
76
|
displayName: "Editable.styles__StyledInput",
|
|
77
|
-
componentId: "sc-
|
|
77
|
+
componentId: "sc-b99fc7f9-1"
|
|
78
78
|
})([
|
|
79
79
|
``
|
|
80
80
|
]);
|
|
81
81
|
const StyledPlacehpolder = _styledcomponents.default.span.withConfig({
|
|
82
82
|
displayName: "Editable.styles__StyledPlacehpolder",
|
|
83
|
-
componentId: "sc-
|
|
83
|
+
componentId: "sc-b99fc7f9-2"
|
|
84
84
|
})([
|
|
85
85
|
`display:inline-block;color:var(`,
|
|
86
86
|
`);`
|
|
87
87
|
], _Editabletokens.tokens.placeholderColor);
|
|
88
88
|
const base = (0, _styledcomponents.css)([
|
|
89
89
|
`display:inline-flex;align-items:center;max-width:100%;cursor:pointer;.`,
|
|
90
|
-
`{
|
|
91
|
-
`
|
|
92
|
-
|
|
90
|
+
`{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;}.`,
|
|
91
|
+
`{width:max-content;max-width:none;outline:none;white-space:nowrap;caret-color:var(`,
|
|
92
|
+
`);}&:focus-within .`,
|
|
93
|
+
`{background:none;-webkit-text-fill-color:currentColor;}&.`,
|
|
94
|
+
`{gap:var(`,
|
|
95
|
+
`);.`,
|
|
96
|
+
`{margin-right:0;padding-right:0;background:none;-webkit-text-fill-color:currentColor;}.`,
|
|
97
|
+
`{width:auto;min-width:0;white-space:pre-wrap;overflow-wrap:break-word;}`,
|
|
98
|
+
`{padding-left:0;background:var(`,
|
|
99
|
+
`,var(`,
|
|
100
|
+
`));}}`
|
|
101
|
+
], _Editabletokens.classes.textClip, _Editabletokens.classes.editableTextBox, _Editabletokens.tokens.caretColor, _Editabletokens.classes.textClip, _Editabletokens.classes.multiline, _Editabletokens.tokens.iconGap, _Editabletokens.classes.textClip, _Editabletokens.classes.editableTextBox, EditButton, _Editabletokens.tokens.iconBackground, _Editabletokens.tokens.editButtonBackground);
|
|
@@ -17,12 +17,16 @@ _export(exports, {
|
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
19
|
const classes = {
|
|
20
|
-
|
|
20
|
+
textClip: 'editable-text-clip',
|
|
21
|
+
editableTextBox: 'editable-text-box',
|
|
22
|
+
multiline: 'editable-multiline'
|
|
21
23
|
};
|
|
22
24
|
const tokens = {
|
|
23
25
|
editButtonBackground: '--plasma-editable-edit-button-background',
|
|
26
|
+
iconBackground: '--plasma-editable-icon-background',
|
|
24
27
|
editButtonColor: '--plasma-editable-edit-button-color',
|
|
25
28
|
editButtonColorHover: '--plasma-editable-edit-button-color-hover',
|
|
29
|
+
iconGap: '--plasma-editable-icon-gap',
|
|
26
30
|
editButtonPaddingLeft: '--plasma-editable-edit-button-padding-left',
|
|
27
31
|
placeholderColor: '--plasma-editable-placeholder-color',
|
|
28
32
|
caretColor: '--plasma-editable-caret-color',
|
|
@@ -13,9 +13,15 @@ const _Editabletokens = require("../../Editable.tokens");
|
|
|
13
13
|
const _Editablestyles = require("../../Editable.styles");
|
|
14
14
|
const base = (0, _styledcomponents.css)([
|
|
15
15
|
``,
|
|
16
|
+
`:var(`,
|
|
17
|
+
`);`,
|
|
18
|
+
`:var(`,
|
|
19
|
+
`);`,
|
|
20
|
+
`:calc(var(`,
|
|
21
|
+
`) * -1);`,
|
|
16
22
|
`{padding-left:var(`,
|
|
17
23
|
`);}.`,
|
|
18
24
|
`{margin-right:var(`,
|
|
19
25
|
`);padding-right:var(`,
|
|
20
26
|
`);}`
|
|
21
|
-
], _Editablestyles.EditButton, _Editabletokens.tokens.editButtonPaddingLeft, _Editabletokens.classes.
|
|
27
|
+
], _Editabletokens.tokens.editButtonPaddingLeft, _Editabletokens.tokens.iconGap, _Editabletokens.tokens.textBoxPaddingRight, _Editabletokens.tokens.iconGap, _Editabletokens.tokens.textBoxMarginRight, _Editabletokens.tokens.iconGap, _Editablestyles.EditButton, _Editabletokens.tokens.editButtonPaddingLeft, _Editabletokens.classes.textClip, _Editabletokens.tokens.textBoxMarginRight, _Editabletokens.tokens.textBoxPaddingRight);
|
|
@@ -13,9 +13,11 @@ const _Editabletokens = require("../../Editable.tokens");
|
|
|
13
13
|
const _Editablestyles = require("../../Editable.styles");
|
|
14
14
|
const base = (0, _styledcomponents.css)([
|
|
15
15
|
``,
|
|
16
|
-
`{background:var(
|
|
17
|
-
|
|
16
|
+
`{background:var( `,
|
|
17
|
+
`,linear-gradient( to left,var(`,
|
|
18
|
+
`) calc(100% - var(`,
|
|
19
|
+
`)),transparent ) );color:var(`,
|
|
18
20
|
`);}&:hover > `,
|
|
19
21
|
`{color:var(`,
|
|
20
22
|
`);}`
|
|
21
|
-
], _Editablestyles.EditButton, _Editabletokens.tokens.editButtonBackground, _Editabletokens.tokens.editButtonColor, _Editablestyles.EditButton, _Editabletokens.tokens.editButtonColorHover);
|
|
23
|
+
], _Editablestyles.EditButton, _Editabletokens.tokens.iconBackground, _Editabletokens.tokens.editButtonBackground, _Editabletokens.tokens.iconGap, _Editabletokens.tokens.editButtonColor, _Editablestyles.EditButton, _Editabletokens.tokens.editButtonColorHover);
|
|
@@ -68,7 +68,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
68
68
|
}
|
|
69
69
|
return newObj;
|
|
70
70
|
}
|
|
71
|
-
const paginationRoot = (Root)=>/*#__PURE__*/ (0, _react.forwardRef)(({ value: outerValue, defaultValue, helperText, singleLine, perPage: outerPerPage, defaultPerPage, slots = _utils1.defaultValues.slots, view, viewCurrentPage, type = _utils1.defaultValues.type, size, pilled = _utils1.defaultValues.pilled, square = _utils1.defaultValues.square, disabledPages = _utils1.defaultValues.disabledPages, count = _utils1.defaultValues.value, hasQuickJump = _utils1.defaultValues.hasQuickJump, hasPerPage = _utils1.defaultValues.hasPerPage, perPageList = _utils1.defaultValues.perPageList, isCommonButtonStyles = _utils1.defaultValues.isCommonButtonStyles, placeholderQuickJump = _utils1.defaultValues.placeholderQuickJump, textQuickJump = _utils1.defaultValues.textQuickJump, textPerPage = _utils1.defaultValues.textPerPage, leftContent, rightContent, listWidth = 'fit-content', onChangePageValue, onChangePerPageValue, onChange, onFocusQuickJump, onBlurQuickJump, ...rest }, ref)=>{
|
|
71
|
+
const paginationRoot = (Root)=>/*#__PURE__*/ (0, _react.forwardRef)(({ value: outerValue, defaultValue, helperText, singleLine, perPage: outerPerPage, defaultPerPage, slots = _utils1.defaultValues.slots, view, viewCurrentPage, type = _utils1.defaultValues.type, size, pilled = _utils1.defaultValues.pilled, square = _utils1.defaultValues.square, disabledPages = _utils1.defaultValues.disabledPages, count = _utils1.defaultValues.value, hasQuickJump = _utils1.defaultValues.hasQuickJump, hasPerPage = _utils1.defaultValues.hasPerPage, hasPageRange = _utils1.defaultValues.hasPageRange, hasTotalPages = _utils1.defaultValues.hasTotalPages, perPageList = _utils1.defaultValues.perPageList, isCommonButtonStyles = _utils1.defaultValues.isCommonButtonStyles, placeholderQuickJump = _utils1.defaultValues.placeholderQuickJump, textQuickJump = _utils1.defaultValues.textQuickJump, textPerPage = _utils1.defaultValues.textPerPage, leftContent, rightContent, listWidth = 'fit-content', onChangePageValue, onChangePerPageValue, onChange, onFocusQuickJump, onBlurQuickJump, ...rest }, ref)=>{
|
|
72
72
|
const [pageInner, setPageInner] = (0, _react.useState)(defaultValue || _utils1.defaultValues.value);
|
|
73
73
|
const pageValue = outerValue ?? pageInner;
|
|
74
74
|
const [perPageInner, setPerPageInner] = (0, _react.useState)(hasPerPage ? defaultPerPage || _utils1.defaultValues.perPage : undefined);
|
|
@@ -108,8 +108,11 @@ const paginationRoot = (Root)=>/*#__PURE__*/ (0, _react.forwardRef)(({ value: ou
|
|
|
108
108
|
onChangePageValue?.(newValue);
|
|
109
109
|
};
|
|
110
110
|
const handlerSetPerPage = (newPerPageValue)=>{
|
|
111
|
+
const newPages = Math.max(Math.ceil(count / newPerPageValue), 1);
|
|
112
|
+
const newPageValue = hasTotalPages ? Math.min(pageValue, newPages) : pageValue;
|
|
111
113
|
setPerPageInner(newPerPageValue);
|
|
112
|
-
|
|
114
|
+
setPageInner(newPageValue);
|
|
115
|
+
onChange?.(newPageValue, newPerPageValue);
|
|
113
116
|
onChangePerPageValue?.(newPerPageValue);
|
|
114
117
|
};
|
|
115
118
|
const handleClick = (currentPage)=>{
|
|
@@ -143,8 +146,28 @@ const paginationRoot = (Root)=>/*#__PURE__*/ (0, _react.forwardRef)(({ value: ou
|
|
|
143
146
|
observers.forEach((observer)=>observer.disconnect());
|
|
144
147
|
};
|
|
145
148
|
}, [
|
|
146
|
-
type
|
|
149
|
+
type,
|
|
150
|
+
hasPageRange
|
|
147
151
|
]);
|
|
152
|
+
const leftSlot = leftContent && /*#__PURE__*/ _react.default.createElement(_Paginationstyles.PaginationButtonGroup, {
|
|
153
|
+
isCommonButtonStyles: isCommonButtonStyles
|
|
154
|
+
}, leftContent);
|
|
155
|
+
const rightSlot = rightContent && /*#__PURE__*/ _react.default.createElement(_Paginationstyles.PaginationButtonGroup, {
|
|
156
|
+
isCommonButtonStyles: isCommonButtonStyles
|
|
157
|
+
}, rightContent);
|
|
158
|
+
// Без номеров страниц слоты возле поля быстрого перехода
|
|
159
|
+
const withQuickJumpGroup = !hasPageRange && (hasQuickJump || leftSlot || rightSlot);
|
|
160
|
+
const pagesOffset = hasPageRange ? pagesWidth : 0;
|
|
161
|
+
const quickJump = /*#__PURE__*/ _react.default.createElement(_PaginationQuickJumpToPage.PaginationQuickJumpToPage, {
|
|
162
|
+
prevPageValue: pageValue,
|
|
163
|
+
totalPages: Math.max(pages, 1),
|
|
164
|
+
hasTotalPages: hasTotalPages,
|
|
165
|
+
placeholderQuickJump: placeholderQuickJump,
|
|
166
|
+
textQuickJump: textQuickJump,
|
|
167
|
+
onChangeValue: handleSetPage,
|
|
168
|
+
onFocusQuickJump: onFocusQuickJump,
|
|
169
|
+
onBlurQuickJump: onBlurQuickJump
|
|
170
|
+
});
|
|
148
171
|
return /*#__PURE__*/ _react.default.createElement(Root, {
|
|
149
172
|
size: size,
|
|
150
173
|
view: view,
|
|
@@ -154,11 +177,9 @@ const paginationRoot = (Root)=>/*#__PURE__*/ (0, _react.forwardRef)(({ value: ou
|
|
|
154
177
|
...rest
|
|
155
178
|
}, /*#__PURE__*/ _react.default.createElement(_Paginationstyles.PaginationRoot, {
|
|
156
179
|
className: typeClass
|
|
157
|
-
}, /*#__PURE__*/ _react.default.createElement(_Paginationstyles.PaginationPages, {
|
|
180
|
+
}, hasPageRange && /*#__PURE__*/ _react.default.createElement(_Paginationstyles.PaginationPages, {
|
|
158
181
|
ref: pagesRef
|
|
159
|
-
},
|
|
160
|
-
isCommonButtonStyles: isCommonButtonStyles
|
|
161
|
-
}, leftContent), sections && sections.map((section, indexSection)=>/*#__PURE__*/ _react.default.createElement(_react.Fragment, {
|
|
182
|
+
}, leftSlot, sections && sections.map((section, indexSection)=>/*#__PURE__*/ _react.default.createElement(_react.Fragment, {
|
|
162
183
|
key: indexSection
|
|
163
184
|
}, indexSection !== 0 && /*#__PURE__*/ _react.default.createElement(_Paginationstyles.PaginationShorter, {
|
|
164
185
|
stretching: "fixed",
|
|
@@ -171,25 +192,16 @@ const paginationRoot = (Root)=>/*#__PURE__*/ (0, _react.forwardRef)(({ value: ou
|
|
|
171
192
|
disabled: disabled.includes(currentPage),
|
|
172
193
|
square: square,
|
|
173
194
|
onClick: ()=>handleClick(currentPage)
|
|
174
|
-
}, currentPage))))),
|
|
175
|
-
isCommonButtonStyles: isCommonButtonStyles
|
|
176
|
-
}, rightContent)), /*#__PURE__*/ _react.default.createElement(_Paginationstyles.PaginationActions, {
|
|
195
|
+
}, currentPage))))), rightSlot), /*#__PURE__*/ _react.default.createElement(_Paginationstyles.PaginationActions, {
|
|
177
196
|
style: type === 'compact' ? {
|
|
178
197
|
minWidth: '0px'
|
|
179
198
|
} : {
|
|
180
|
-
width: `calc(100% - ${
|
|
199
|
+
width: `calc(100% - ${pagesOffset}px)`
|
|
181
200
|
},
|
|
182
201
|
className: (0, _utils.cx)(_Paginationtokens.classes.actions, typeClass, withHasPerPageSelect, withHasQuickJump)
|
|
183
202
|
}, /*#__PURE__*/ _react.default.createElement(_Paginationstyles.PaginationActionsLeft, {
|
|
184
203
|
className: typeClass
|
|
185
|
-
}, hasQuickJump && /*#__PURE__*/ _react.default.createElement(
|
|
186
|
-
prevPageValue: pageValue,
|
|
187
|
-
placeholderQuickJump: placeholderQuickJump,
|
|
188
|
-
textQuickJump: textQuickJump,
|
|
189
|
-
onChangeValue: handleSetPage,
|
|
190
|
-
onFocusQuickJump: onFocusQuickJump,
|
|
191
|
-
onBlurQuickJump: onBlurQuickJump
|
|
192
|
-
}), helperText && /*#__PURE__*/ _react.default.createElement(_Paginationstyles.PaginationHelperText, {
|
|
204
|
+
}, withQuickJumpGroup ? /*#__PURE__*/ _react.default.createElement(_Paginationstyles.PaginationQuickJumpGroup, null, leftSlot, hasQuickJump && quickJump, rightSlot) : hasQuickJump && quickJump, helperText && /*#__PURE__*/ _react.default.createElement(_Paginationstyles.PaginationHelperText, {
|
|
193
205
|
className: (0, _utils.cx)(typeClass, singleLine ? _Paginationtokens.classes.ellipsisText : ''),
|
|
194
206
|
style: {
|
|
195
207
|
maxWidth: rootWidth
|
|
@@ -27,6 +27,9 @@ _export(exports, {
|
|
|
27
27
|
get PaginationPages () {
|
|
28
28
|
return PaginationPages;
|
|
29
29
|
},
|
|
30
|
+
get PaginationQuickJumpGroup () {
|
|
31
|
+
return PaginationQuickJumpGroup;
|
|
32
|
+
},
|
|
30
33
|
get PaginationRoot () {
|
|
31
34
|
return PaginationRoot;
|
|
32
35
|
},
|
|
@@ -54,7 +57,7 @@ const mergedButtonGroupConfig = (0, _engines.mergeConfig)(_ButtonGroup.buttonGro
|
|
|
54
57
|
const ButtonGroup = (0, _engines.component)(mergedButtonGroupConfig);
|
|
55
58
|
const PaginationRoot = _styledcomponents.default.div.withConfig({
|
|
56
59
|
displayName: "Pagination.styles__PaginationRoot",
|
|
57
|
-
componentId: "sc-
|
|
60
|
+
componentId: "sc-e41a539f-0"
|
|
58
61
|
})([
|
|
59
62
|
`display:flex;color:var(`,
|
|
60
63
|
`);&.`,
|
|
@@ -63,13 +66,13 @@ const PaginationRoot = _styledcomponents.default.div.withConfig({
|
|
|
63
66
|
], _Paginationtokens.tokens.paginationColor, _Paginationtokens.classes.compactType, _Paginationtokens.classes.defaultType);
|
|
64
67
|
const PaginationPages = _styledcomponents.default.div.withConfig({
|
|
65
68
|
displayName: "Pagination.styles__PaginationPages",
|
|
66
|
-
componentId: "sc-
|
|
69
|
+
componentId: "sc-e41a539f-1"
|
|
67
70
|
})([
|
|
68
71
|
`display:flex;align-items:center;gap:0.25rem;flex-shrink:0;`
|
|
69
72
|
]);
|
|
70
73
|
const PaginationActions = _styledcomponents.default.div.withConfig({
|
|
71
74
|
displayName: "Pagination.styles__PaginationActions",
|
|
72
|
-
componentId: "sc-
|
|
75
|
+
componentId: "sc-e41a539f-2"
|
|
73
76
|
})([
|
|
74
77
|
`display:flex;justify-content:space-between;flex-grow:1;align-items:center;gap:var(`,
|
|
75
78
|
`);flex-shrink:1;flex-direction:row;&.`,
|
|
@@ -79,13 +82,13 @@ const PaginationActions = _styledcomponents.default.div.withConfig({
|
|
|
79
82
|
], _Paginationtokens.tokens.paginationHelperTextGap, _Paginationtokens.classes.compactType, _Paginationtokens.classes.withHasPerPageSelect, _Paginationtokens.classes.withHasQuickJump);
|
|
80
83
|
const PaginationSection = _styledcomponents.default.div.withConfig({
|
|
81
84
|
displayName: "Pagination.styles__PaginationSection",
|
|
82
|
-
componentId: "sc-
|
|
85
|
+
componentId: "sc-e41a539f-3"
|
|
83
86
|
})([
|
|
84
87
|
`display:flex;gap:0.125rem;`
|
|
85
88
|
]);
|
|
86
89
|
const PaginationButtonGroup = (0, _styledcomponents.default)(ButtonGroup).withConfig({
|
|
87
90
|
displayName: "Pagination.styles__PaginationButtonGroup",
|
|
88
|
-
componentId: "sc-
|
|
91
|
+
componentId: "sc-e41a539f-4"
|
|
89
92
|
})([
|
|
90
93
|
``,
|
|
91
94
|
`:var(`,
|
|
@@ -128,7 +131,7 @@ const PaginationButtonGroup = (0, _styledcomponents.default)(ButtonGroup).withCo
|
|
|
128
131
|
], _ButtonGroup.buttonGroupTokens.buttonColor, _Paginationtokens.tokens.buttonColor, _ButtonGroup.buttonGroupTokens.buttonBackgroundColor, _Paginationtokens.tokens.buttonBackgroundColor, _ButtonGroup.buttonGroupTokens.buttonColorHover, _Paginationtokens.tokens.buttonHoverColor, _ButtonGroup.buttonGroupTokens.buttonBackgroundColorHover, _Paginationtokens.tokens.buttonBackgroundColorHover, _ButtonGroup.buttonGroupTokens.buttonColorActive, _Paginationtokens.tokens.buttonActiveColor, _ButtonGroup.buttonGroupTokens.buttonBackgroundColorActive, _Paginationtokens.tokens.buttonBackgroundColorActive, _ButtonGroup.buttonGroupTokens.buttonFontFamily, _Paginationtokens.tokens.paginationFontFamily, _ButtonGroup.buttonGroupTokens.buttonFontSize, _Paginationtokens.tokens.paginationFontSize, _ButtonGroup.buttonGroupTokens.buttonFontStyle, _Paginationtokens.tokens.paginationFontStyle, _ButtonGroup.buttonGroupTokens.buttonFontWeight, _Paginationtokens.tokens.paginationFontWeight, _ButtonGroup.buttonGroupTokens.buttonLetterSpacing, _Paginationtokens.tokens.paginationLetterSpacing, _ButtonGroup.buttonGroupTokens.buttonLineHeight, _Paginationtokens.tokens.paginationLineHeight, _ButtonGroup.buttonGroupTokens.buttonWidth, _Paginationtokens.tokens.buttonWidth, _ButtonGroup.buttonGroupTokens.buttonHeight, _Paginationtokens.tokens.buttonHeight, _ButtonGroup.buttonGroupTokens.buttonDefaultRadius, _Paginationtokens.tokens.buttonRadius, _ButtonGroup.buttonGroupTokens.buttonSideRadius, _Paginationtokens.tokens.buttonRadius, _ButtonGroup.buttonGroupTokens.buttonSegmentedRadius, _Paginationtokens.tokens.buttonRadius, _ButtonGroup.buttonGroupTokens.buttonRadiusCircle, _Paginationtokens.tokens.buttonRadius, _ButtonGroup.buttonGroupTokens.buttonPadding);
|
|
129
132
|
const PaginationButton = (0, _styledcomponents.default)(Button).withConfig({
|
|
130
133
|
displayName: "Pagination.styles__PaginationButton",
|
|
131
|
-
componentId: "sc-
|
|
134
|
+
componentId: "sc-e41a539f-5"
|
|
132
135
|
})([
|
|
133
136
|
``,
|
|
134
137
|
`:var(`,
|
|
@@ -194,7 +197,7 @@ const PaginationButton = (0, _styledcomponents.default)(Button).withConfig({
|
|
|
194
197
|
}));
|
|
195
198
|
const PaginationShorter = (0, _styledcomponents.default)(PaginationButton).withConfig({
|
|
196
199
|
displayName: "Pagination.styles__PaginationShorter",
|
|
197
|
-
componentId: "sc-
|
|
200
|
+
componentId: "sc-e41a539f-6"
|
|
198
201
|
})([
|
|
199
202
|
``,
|
|
200
203
|
`:var(`,
|
|
@@ -203,15 +206,22 @@ const PaginationShorter = (0, _styledcomponents.default)(PaginationButton).withC
|
|
|
203
206
|
], _Button.buttonTokens.buttonWidth, _Paginationtokens.tokens.buttonWidthShorter, _Button.buttonTokens.buttonPadding);
|
|
204
207
|
const PaginationActionsLeft = _styledcomponents.default.div.withConfig({
|
|
205
208
|
displayName: "Pagination.styles__PaginationActionsLeft",
|
|
206
|
-
componentId: "sc-
|
|
209
|
+
componentId: "sc-e41a539f-7"
|
|
207
210
|
})([
|
|
208
211
|
`display:flex;align-items:center;flex-wrap:wrap;gap:var(`,
|
|
209
212
|
`);.`,
|
|
210
213
|
` &{min-width:0;flex-wrap:nowrap;flex-shrink:1;}`
|
|
211
214
|
], _Paginationtokens.tokens.paginationHelperTextGap, _Paginationtokens.classes.defaultType);
|
|
215
|
+
const PaginationQuickJumpGroup = _styledcomponents.default.div.withConfig({
|
|
216
|
+
displayName: "Pagination.styles__PaginationQuickJumpGroup",
|
|
217
|
+
componentId: "sc-e41a539f-8"
|
|
218
|
+
})([
|
|
219
|
+
`display:flex;align-items:center;flex-shrink:0;gap:var(`,
|
|
220
|
+
`,0.75rem);`
|
|
221
|
+
], _Paginationtokens.tokens.paginationQuickJumpGap);
|
|
212
222
|
const PaginationHelperText = _styledcomponents.default.div.withConfig({
|
|
213
223
|
displayName: "Pagination.styles__PaginationHelperText",
|
|
214
|
-
componentId: "sc-
|
|
224
|
+
componentId: "sc-e41a539f-9"
|
|
215
225
|
})([
|
|
216
226
|
`color:var(`,
|
|
217
227
|
`);&.`,
|
|
@@ -94,5 +94,7 @@ const tokens = {
|
|
|
94
94
|
inputHeight: '--plasma-pagination-input-height',
|
|
95
95
|
inputBorderColor: '--plasma-pagination-input-border-color',
|
|
96
96
|
inputBorderWidth: '--plasma-pagination-input-border-width',
|
|
97
|
-
inputPadding: '--plasma-pagination-input-padding'
|
|
97
|
+
inputPadding: '--plasma-pagination-input-padding',
|
|
98
|
+
paginationQuickJumpGap: '--plasma-pagination-quick-jump-gap',
|
|
99
|
+
paginationQuickJumpInnerGap: '--plasma-pagination-quick-jump-inner-gap'
|
|
98
100
|
};
|