@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
|
@@ -31,15 +31,15 @@ function _interop_require_default(obj) {
|
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
33
|
const EditButton = (0, /*#__PURE__*/ _styled.default)("span", {
|
|
34
|
-
target: "
|
|
34
|
+
target: "ehdm6h90",
|
|
35
35
|
label: "EditButton"
|
|
36
|
-
})("position:relative;align-self:stretch;display:", ({ isHidden })=>isHidden ? 'none' : '', ";");
|
|
36
|
+
})("position:relative;align-self:stretch;flex-shrink:0;display:", ({ isHidden })=>isHidden ? 'none' : 'inline-flex', ";align-items:center;justify-content:center;");
|
|
37
37
|
const StyledInput = (0, /*#__PURE__*/ _styled.default)("input", {
|
|
38
|
-
target: "
|
|
38
|
+
target: "ehdm6h91",
|
|
39
39
|
label: "StyledInput"
|
|
40
40
|
})();
|
|
41
41
|
const StyledPlacehpolder = (0, /*#__PURE__*/ _styled.default)("span", {
|
|
42
|
-
target: "
|
|
42
|
+
target: "ehdm6h92",
|
|
43
43
|
label: "StyledPlacehpolder"
|
|
44
44
|
})("display:inline-block;color:var(", _Editabletokens.tokens.placeholderColor, ");");
|
|
45
|
-
const base = (0, /*#__PURE__*/ _react.css)("display:inline-flex;align-items:center;max-width:100%;cursor:pointer;.", _Editabletokens.classes.
|
|
45
|
+
const base = (0, /*#__PURE__*/ _react.css)("display:inline-flex;align-items:center;max-width:100%;cursor:pointer;.", _Editabletokens.classes.textClip, "{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;}.", _Editabletokens.classes.editableTextBox, "{width:max-content;max-width:none;outline:none;white-space:nowrap;caret-color:var(", _Editabletokens.tokens.caretColor, ");}&:focus-within .", _Editabletokens.classes.textClip, "{background:none;-webkit-text-fill-color:currentColor;}&.", _Editabletokens.classes.multiline, "{gap:var(", _Editabletokens.tokens.iconGap, ");.", _Editabletokens.classes.textClip, "{margin-right:0;padding-right:0;background:none;-webkit-text-fill-color:currentColor;}.", _Editabletokens.classes.editableTextBox, "{width:auto;min-width:0;white-space:pre-wrap;overflow-wrap:break-word;}", EditButton, "{padding-left:0;background:var(", _Editabletokens.tokens.iconBackground, ",var(", _Editabletokens.tokens.editButtonBackground, "));}}", "base");
|
|
@@ -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',
|
|
@@ -11,4 +11,4 @@ Object.defineProperty(exports, "base", {
|
|
|
11
11
|
const _react = require("@emotion/react");
|
|
12
12
|
const _Editabletokens = require("../../Editable.tokens");
|
|
13
13
|
const _Editablestyles = require("../../Editable.styles");
|
|
14
|
-
const base = (0, /*#__PURE__*/ _react.css)(_Editablestyles.EditButton, "{padding-left:var(", _Editabletokens.tokens.editButtonPaddingLeft, ");}.", _Editabletokens.classes.
|
|
14
|
+
const base = (0, /*#__PURE__*/ _react.css)(_Editabletokens.tokens.editButtonPaddingLeft, ":var(", _Editabletokens.tokens.iconGap, ");", _Editabletokens.tokens.textBoxPaddingRight, ":var(", _Editabletokens.tokens.iconGap, ");", _Editabletokens.tokens.textBoxMarginRight, ":calc(var(", _Editabletokens.tokens.iconGap, ") * -1);", _Editablestyles.EditButton, "{padding-left:var(", _Editabletokens.tokens.editButtonPaddingLeft, ");}.", _Editabletokens.classes.textClip, "{margin-right:var(", _Editabletokens.tokens.textBoxMarginRight, ");padding-right:var(", _Editabletokens.tokens.textBoxPaddingRight, ");}", "base");
|
|
@@ -11,4 +11,4 @@ Object.defineProperty(exports, "base", {
|
|
|
11
11
|
const _react = require("@emotion/react");
|
|
12
12
|
const _Editabletokens = require("../../Editable.tokens");
|
|
13
13
|
const _Editablestyles = require("../../Editable.styles");
|
|
14
|
-
const base = (0, /*#__PURE__*/ _react.css)(_Editablestyles.EditButton, "{background:var(\n
|
|
14
|
+
const base = (0, /*#__PURE__*/ _react.css)(_Editablestyles.EditButton, "{background:var(\n ", _Editabletokens.tokens.iconBackground, ",linear-gradient(\n to left,var(", _Editabletokens.tokens.editButtonBackground, ") calc(100% - var(", _Editabletokens.tokens.iconGap, ")),transparent\n )\n );color:var(", _Editabletokens.tokens.editButtonColor, ");}&:hover > ", _Editablestyles.EditButton, "{color:var(", _Editabletokens.tokens.editButtonColorHover, ");}", "base");
|
|
@@ -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
|
},
|
|
@@ -53,27 +56,27 @@ const Button = (0, _engines.component)(mergedButtonConfig);
|
|
|
53
56
|
const mergedButtonGroupConfig = (0, _engines.mergeConfig)(_ButtonGroup.buttonGroupConfig);
|
|
54
57
|
const ButtonGroup = (0, _engines.component)(mergedButtonGroupConfig);
|
|
55
58
|
const PaginationRoot = (0, /*#__PURE__*/ _styled.default)("div", {
|
|
56
|
-
target: "
|
|
59
|
+
target: "e4i78u80",
|
|
57
60
|
label: "PaginationRoot"
|
|
58
61
|
})("display:flex;color:var(", _Paginationtokens.tokens.paginationColor, ");&.", _Paginationtokens.classes.compactType, "{flex-direction:column;gap:0.5rem;justify-content:flex-start;}&.", _Paginationtokens.classes.defaultType, "{width:100%;justify-content:space-between;flex:0 0 100%;gap:1rem;flex-wrap:nowrap;}");
|
|
59
62
|
const PaginationPages = (0, /*#__PURE__*/ _styled.default)("div", {
|
|
60
|
-
target: "
|
|
63
|
+
target: "e4i78u81",
|
|
61
64
|
label: "PaginationPages"
|
|
62
65
|
})("display:flex;align-items:center;gap:0.25rem;flex-shrink:0;");
|
|
63
66
|
const PaginationActions = (0, /*#__PURE__*/ _styled.default)("div", {
|
|
64
|
-
target: "
|
|
67
|
+
target: "e4i78u82",
|
|
65
68
|
label: "PaginationActions"
|
|
66
69
|
})("display:flex;justify-content:space-between;flex-grow:1;align-items:center;gap:var(", _Paginationtokens.tokens.paginationHelperTextGap, ");flex-shrink:1;flex-direction:row;&.", _Paginationtokens.classes.compactType, "{width:100%;flex-wrap:wrap;&.", _Paginationtokens.classes.withHasPerPageSelect, "{flex-direction:row-reverse;}&.", _Paginationtokens.classes.withHasQuickJump, "{flex-direction:row;}}");
|
|
67
70
|
const PaginationSection = (0, /*#__PURE__*/ _styled.default)("div", {
|
|
68
|
-
target: "
|
|
71
|
+
target: "e4i78u83",
|
|
69
72
|
label: "PaginationSection"
|
|
70
73
|
})("display:flex;gap:0.125rem;");
|
|
71
74
|
const PaginationButtonGroup = /*#__PURE__*/ (0, _styled.default)(ButtonGroup, {
|
|
72
|
-
target: "
|
|
75
|
+
target: "e4i78u84",
|
|
73
76
|
label: "PaginationButtonGroup"
|
|
74
77
|
})(_ButtonGroup.buttonGroupTokens.buttonColor, ":var(", _Paginationtokens.tokens.buttonColor, ");", _ButtonGroup.buttonGroupTokens.buttonBackgroundColor, ":var(", _Paginationtokens.tokens.buttonBackgroundColor, ");", _ButtonGroup.buttonGroupTokens.buttonColorHover, ":var(", _Paginationtokens.tokens.buttonHoverColor, ");", _ButtonGroup.buttonGroupTokens.buttonBackgroundColorHover, ":var(", _Paginationtokens.tokens.buttonBackgroundColorHover, ");", _ButtonGroup.buttonGroupTokens.buttonColorActive, ":var(", _Paginationtokens.tokens.buttonActiveColor, ");", _ButtonGroup.buttonGroupTokens.buttonBackgroundColorActive, ":var(", _Paginationtokens.tokens.buttonBackgroundColorActive, ");", _ButtonGroup.buttonGroupTokens.buttonFontFamily, ":var(", _Paginationtokens.tokens.paginationFontFamily, ");", _ButtonGroup.buttonGroupTokens.buttonFontSize, ":var(", _Paginationtokens.tokens.paginationFontSize, ");", _ButtonGroup.buttonGroupTokens.buttonFontStyle, ":var(", _Paginationtokens.tokens.paginationFontStyle, ");", _ButtonGroup.buttonGroupTokens.buttonFontWeight, ":var(", _Paginationtokens.tokens.paginationFontWeight, ");", _ButtonGroup.buttonGroupTokens.buttonLetterSpacing, ":var(", _Paginationtokens.tokens.paginationLetterSpacing, ");", _ButtonGroup.buttonGroupTokens.buttonLineHeight, ":var(", _Paginationtokens.tokens.paginationLineHeight, ");", _ButtonGroup.buttonGroupTokens.buttonWidth, ":var(", _Paginationtokens.tokens.buttonWidth, ");", _ButtonGroup.buttonGroupTokens.buttonHeight, ":var(", _Paginationtokens.tokens.buttonHeight, ");", _ButtonGroup.buttonGroupTokens.buttonDefaultRadius, ":var(", _Paginationtokens.tokens.buttonRadius, ");", _ButtonGroup.buttonGroupTokens.buttonSideRadius, ":var(", _Paginationtokens.tokens.buttonRadius, ");", _ButtonGroup.buttonGroupTokens.buttonSegmentedRadius, ":var(", _Paginationtokens.tokens.buttonRadius, ");", _ButtonGroup.buttonGroupTokens.buttonRadiusCircle, ":var(", _Paginationtokens.tokens.buttonRadius, ");", _ButtonGroup.buttonGroupTokens.buttonPadding, ":0;");
|
|
75
78
|
const PaginationButton = /*#__PURE__*/ (0, _styled.default)(Button, {
|
|
76
|
-
target: "
|
|
79
|
+
target: "e4i78u85",
|
|
77
80
|
label: "PaginationButton"
|
|
78
81
|
})(_Button.buttonTokens.buttonColor, ":var(", _Paginationtokens.tokens.buttonColor, ");", _Button.buttonTokens.buttonBackgroundColor, ":var(", _Paginationtokens.tokens.buttonBackgroundColor, ");", _Button.buttonTokens.buttonColorHover, ":var(", _Paginationtokens.tokens.buttonHoverColor, ");", _Button.buttonTokens.buttonBackgroundColorHover, ":var(", _Paginationtokens.tokens.buttonBackgroundColorHover, ");", _Button.buttonTokens.buttonColorActive, ":var(", _Paginationtokens.tokens.buttonActiveColor, ");", _Button.buttonTokens.buttonBackgroundColorActive, ":var(", _Paginationtokens.tokens.buttonBackgroundColorActive, ");", _Button.buttonTokens.buttonFontFamily, ":var(", _Paginationtokens.tokens.paginationFontFamily, ");", _Button.buttonTokens.buttonFontSize, ":var(", _Paginationtokens.tokens.paginationFontSize, ");", _Button.buttonTokens.buttonFontStyle, ":var(", _Paginationtokens.tokens.paginationFontStyle, ");", _Button.buttonTokens.buttonFontWeight, ":var(", _Paginationtokens.tokens.paginationFontWeight, ");", _Button.buttonTokens.buttonLetterSpacing, ":var(", _Paginationtokens.tokens.paginationLetterSpacing, ");", _Button.buttonTokens.buttonLineHeight, ":var(", _Paginationtokens.tokens.paginationLineHeight, ");", _Button.buttonTokens.buttonWidth, ":var(", _Paginationtokens.tokens.buttonWidth, ");", _Button.buttonTokens.buttonHeight, ":var(", _Paginationtokens.tokens.buttonHeight, ");", _Button.buttonTokens.buttonRadius, ":var(", _Paginationtokens.tokens.buttonRadius, ");", _Button.buttonTokens.buttonDisabledOpacity, ":var(", _Paginationtokens.tokens.buttonDisabledOpacity, ");", _Button.buttonTokens.buttonFocusColor, ":var(", _Paginationtokens.tokens.buttonFocusColor, ");&.", _Paginationtokens.classes.paginationPageButtonActive, "{", _Button.buttonTokens.buttonColor, ":var(", _Paginationtokens.tokens.paginationCurrentButtonColor, ");", _Button.buttonTokens.buttonBackgroundColor, ":var(", _Paginationtokens.tokens.paginationCurrentButtonBackgroundColor, ");", _Button.buttonTokens.buttonColorHover, ":var(", _Paginationtokens.tokens.paginationCurrentButtonColor, ");", _Button.buttonTokens.buttonBackgroundColorHover, ":var(", _Paginationtokens.tokens.paginationCurrentButtonBackgroundColor, ");", _Button.buttonTokens.buttonColorActive, ":var(", _Paginationtokens.tokens.paginationCurrentButtonColor, ");", _Button.buttonTokens.buttonBackgroundColorActive, ":var(", _Paginationtokens.tokens.paginationCurrentButtonBackgroundColor, ");cursor:default;}&.", _Paginationtokens.classes.buttonDisabled, "{", _Button.buttonTokens.buttonColor, ":var(", _Paginationtokens.tokens.paginationDisabledButtonColor, ",var(", _Paginationtokens.tokens.buttonColor, "));", _Button.buttonTokens.buttonBackgroundColor, ":var(", _Paginationtokens.tokens.paginationDisabledButtonBackgroundColor, ",var(", _Paginationtokens.tokens.buttonBackgroundColor, "));}", (0, _mixins.addFocus)({
|
|
79
82
|
outlineOffset: 'var(--plasma_private-btn-outline-size)',
|
|
@@ -82,14 +85,18 @@ const PaginationButton = /*#__PURE__*/ (0, _styled.default)(Button, {
|
|
|
82
85
|
outlineColor: `var(${_Paginationtokens.tokens.buttonFocusColor})`
|
|
83
86
|
}));
|
|
84
87
|
const PaginationShorter = /*#__PURE__*/ (0, _styled.default)(PaginationButton, {
|
|
85
|
-
target: "
|
|
88
|
+
target: "e4i78u86",
|
|
86
89
|
label: "PaginationShorter"
|
|
87
90
|
})(_Button.buttonTokens.buttonWidth, ":var(", _Paginationtokens.tokens.buttonWidthShorter, ");", _Button.buttonTokens.buttonPadding, ":0;");
|
|
88
91
|
const PaginationActionsLeft = (0, /*#__PURE__*/ _styled.default)("div", {
|
|
89
|
-
target: "
|
|
92
|
+
target: "e4i78u87",
|
|
90
93
|
label: "PaginationActionsLeft"
|
|
91
94
|
})("display:flex;align-items:center;flex-wrap:wrap;gap:var(", _Paginationtokens.tokens.paginationHelperTextGap, ");.", _Paginationtokens.classes.defaultType, " &{min-width:0;flex-wrap:nowrap;flex-shrink:1;}");
|
|
95
|
+
const PaginationQuickJumpGroup = (0, /*#__PURE__*/ _styled.default)("div", {
|
|
96
|
+
target: "e4i78u88",
|
|
97
|
+
label: "PaginationQuickJumpGroup"
|
|
98
|
+
})("display:flex;align-items:center;flex-shrink:0;gap:var(", _Paginationtokens.tokens.paginationQuickJumpGap, ",0.75rem);");
|
|
92
99
|
const PaginationHelperText = (0, /*#__PURE__*/ _styled.default)("div", {
|
|
93
|
-
target: "
|
|
100
|
+
target: "e4i78u89",
|
|
94
101
|
label: "PaginationHelperText"
|
|
95
102
|
})("color:var(", _Paginationtokens.tokens.paginationHelperTextColor, ");&.", _Paginationtokens.classes.defaultType, "{min-width:0;", (0, _mixins.applyEllipsis)(), " flex-shrink:1;}&.", _Paginationtokens.classes.ellipsisText, "{", (0, _mixins.applyEllipsis)(), "}");
|
|
@@ -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
|
};
|
|
@@ -10,6 +10,7 @@ Object.defineProperty(exports, "PaginationQuickJumpToPage", {
|
|
|
10
10
|
});
|
|
11
11
|
const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
|
|
12
12
|
const _utils = require("../../utils");
|
|
13
|
+
const _Paginationtokens = require("../../Pagination.tokens");
|
|
13
14
|
const _PaginationQuickJumpToPagestyles = require("./PaginationQuickJumpToPage.styles");
|
|
14
15
|
function _getRequireWildcardCache(nodeInterop) {
|
|
15
16
|
if (typeof WeakMap !== "function") return null;
|
|
@@ -52,29 +53,53 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
52
53
|
}
|
|
53
54
|
return newObj;
|
|
54
55
|
}
|
|
55
|
-
const PaginationQuickJumpToPage = ({ placeholderQuickJump = _utils.defaultValues.placeholderQuickJump, textQuickJump = _utils.defaultValues.textQuickJump, onChangeValue, onFocusQuickJump, onBlurQuickJump, ...rest })=>{
|
|
56
|
-
|
|
57
|
-
const
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
56
|
+
const PaginationQuickJumpToPage = ({ prevPageValue = _utils.defaultValues.value, totalPages = _utils.defaultValues.value, hasTotalPages, placeholderQuickJump = _utils.defaultValues.placeholderQuickJump, textQuickJump = _utils.defaultValues.textQuickJump, onChangeValue, onFocusQuickJump, onBlurQuickJump, ...rest })=>{
|
|
57
|
+
// С общим числом страниц поле показывает текущую страницу, без него — пустое
|
|
58
|
+
const currentValue = hasTotalPages ? String(prevPageValue) : '';
|
|
59
|
+
// Введённое значение; null — пользователь ничего не вводит, поле показывает currentValue.
|
|
60
|
+
// Так поле всегда синхронно с value из пропов, в том числе в контролируемом режиме
|
|
61
|
+
const [draft, setDraft] = (0, _react.useState)(null);
|
|
62
|
+
const commit = ()=>{
|
|
63
|
+
if (draft === null) {
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
setDraft(null);
|
|
67
|
+
if (!hasTotalPages) {
|
|
68
|
+
if (draft) {
|
|
69
|
+
onChangeValue?.(Number(draft));
|
|
70
|
+
}
|
|
71
|
+
return;
|
|
61
72
|
}
|
|
62
|
-
|
|
73
|
+
const nextPage = Math.min(Math.max(Number(draft), 1), totalPages);
|
|
74
|
+
if (draft && nextPage !== prevPageValue) {
|
|
75
|
+
onChangeValue?.(nextPage);
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
const handleChangeInput = (event)=>{
|
|
79
|
+
setDraft(event.currentTarget.value.replace(/\D/g, ''));
|
|
63
80
|
};
|
|
64
81
|
const handleKeyPress = (event)=>{
|
|
65
82
|
if (event.key === 'Enter') {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
83
|
+
commit();
|
|
84
|
+
}
|
|
85
|
+
if (event.key === 'Escape') {
|
|
86
|
+
setDraft(null);
|
|
70
87
|
}
|
|
71
88
|
};
|
|
72
|
-
return /*#__PURE__*/ _react.default.createElement(_PaginationQuickJumpToPagestyles.QuickJumpToPageRoot,
|
|
73
|
-
|
|
89
|
+
return /*#__PURE__*/ _react.default.createElement(_PaginationQuickJumpToPagestyles.QuickJumpToPageRoot, {
|
|
90
|
+
className: _Paginationtokens.classes.quickJump,
|
|
91
|
+
...rest
|
|
92
|
+
}, textQuickJump && /*#__PURE__*/ _react.default.createElement(_PaginationQuickJumpToPagestyles.QuickJumpToPageTypography, null, textQuickJump), /*#__PURE__*/ _react.default.createElement(_PaginationQuickJumpToPagestyles.QuickJumpToPageInput, {
|
|
93
|
+
value: draft ?? currentValue,
|
|
74
94
|
placeholder: placeholderQuickJump,
|
|
75
95
|
onKeyUp: handleKeyPress,
|
|
76
96
|
onChange: handleChangeInput,
|
|
77
97
|
onFocus: onFocusQuickJump,
|
|
78
|
-
onBlur:
|
|
79
|
-
|
|
98
|
+
onBlur: (event)=>{
|
|
99
|
+
if (hasTotalPages) {
|
|
100
|
+
commit();
|
|
101
|
+
}
|
|
102
|
+
onBlurQuickJump?.(event);
|
|
103
|
+
}
|
|
104
|
+
}), hasTotalPages && /*#__PURE__*/ _react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/ _react.default.createElement(_PaginationQuickJumpToPagestyles.QuickJumpToPageTypography, null, "/"), /*#__PURE__*/ _react.default.createElement(_PaginationQuickJumpToPagestyles.QuickJumpToPageTypography, null, totalPages)));
|
|
80
105
|
};
|
|
@@ -27,14 +27,14 @@ function _interop_require_default(obj) {
|
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
29
|
const QuickJumpToPageRoot = (0, /*#__PURE__*/ _styled.default)("div", {
|
|
30
|
-
target: "
|
|
30
|
+
target: "ewybg940",
|
|
31
31
|
label: "QuickJumpToPageRoot"
|
|
32
|
-
})("display:flex;align-items:center;gap:0.5rem;flex-shrink:0;font-family:var(", _Paginationtokens.tokens.paginationFontFamily, ");font-size:var(", _Paginationtokens.tokens.paginationFontSize, ");font-style:var(", _Paginationtokens.tokens.paginationFontStyle, ");font-weight:var(", _Paginationtokens.tokens.paginationFontWeight, ");letter-spacing:var(", _Paginationtokens.tokens.paginationLetterSpacing, ");line-height:var(", _Paginationtokens.tokens.paginationLineHeight, ");");
|
|
32
|
+
})("display:flex;align-items:center;gap:var(", _Paginationtokens.tokens.paginationQuickJumpInnerGap, ",0.5rem);flex-shrink:0;font-family:var(", _Paginationtokens.tokens.paginationFontFamily, ");font-size:var(", _Paginationtokens.tokens.paginationFontSize, ");font-style:var(", _Paginationtokens.tokens.paginationFontStyle, ");font-weight:var(", _Paginationtokens.tokens.paginationFontWeight, ");letter-spacing:var(", _Paginationtokens.tokens.paginationLetterSpacing, ");line-height:var(", _Paginationtokens.tokens.paginationLineHeight, ");");
|
|
33
33
|
const QuickJumpToPageTypography = (0, /*#__PURE__*/ _styled.default)("div", {
|
|
34
|
-
target: "
|
|
34
|
+
target: "ewybg941",
|
|
35
35
|
label: "QuickJumpToPageTypography"
|
|
36
36
|
})("white-space:nowrap;");
|
|
37
37
|
const QuickJumpToPageInput = (0, /*#__PURE__*/ _styled.default)("input", {
|
|
38
|
-
target: "
|
|
38
|
+
target: "ewybg942",
|
|
39
39
|
label: "QuickJumpToPageInput"
|
|
40
40
|
})("background:var(", _Paginationtokens.tokens.inputBackgroundColor, ");color:var(", _Paginationtokens.tokens.inputColor, ");width:var(", _Paginationtokens.tokens.inputWidth, ");height:var(", _Paginationtokens.tokens.inputHeight, ");box-sizing:border-box;outline:none;border-radius:var(", _Paginationtokens.tokens.inputBorderRadius, ");padding:var(", _Paginationtokens.tokens.inputPadding, ");border-color:var(", _Paginationtokens.tokens.inputBorderColor, ");border-width:var(", _Paginationtokens.tokens.inputBorderWidth, ");border-style:solid;font-family:var(", _Paginationtokens.tokens.paginationFontFamily, ");font-size:var(", _Paginationtokens.tokens.paginationFontSize, ");font-style:var(", _Paginationtokens.tokens.paginationFontStyle, ");font-weight:var(", _Paginationtokens.tokens.paginationFontWeight, ");letter-spacing:var(", _Paginationtokens.tokens.paginationLetterSpacing, ");line-height:var(", _Paginationtokens.tokens.paginationLineHeight, ");&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}");
|
package/dist/emotion/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js
CHANGED
|
@@ -27,7 +27,7 @@ const PaginationSelectPerPage = ({ perPageValue, perPageList = _utils.defaultVal
|
|
|
27
27
|
label: num.toString(),
|
|
28
28
|
value: num.toString()
|
|
29
29
|
}));
|
|
30
|
-
return /*#__PURE__*/ _react.default.createElement(_PaginationSelectPerPagestyles.SelectPerPageRoot, rest, /*#__PURE__*/ _react.default.createElement(_PaginationSelectPerPagestyles.SelectPerPageTypography, null, textPerPage), /*#__PURE__*/ _react.default.createElement(_PaginationSelectPerPagestyles.SelectPerPageSelect, {
|
|
30
|
+
return /*#__PURE__*/ _react.default.createElement(_PaginationSelectPerPagestyles.SelectPerPageRoot, rest, textPerPage && /*#__PURE__*/ _react.default.createElement(_PaginationSelectPerPagestyles.SelectPerPageTypography, null, textPerPage), /*#__PURE__*/ _react.default.createElement(_PaginationSelectPerPagestyles.SelectPerPageSelect, {
|
|
31
31
|
className: _Paginationtokens.classes.selectWrapper,
|
|
32
32
|
items: transformedList,
|
|
33
33
|
value: perPageValue?.toString(),
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
function _export(target, all) {
|
|
6
|
+
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: Object.getOwnPropertyDescriptor(all, name).get
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
_export(exports, {
|
|
12
|
+
get wheelConfig () {
|
|
13
|
+
return wheelConfig;
|
|
14
|
+
},
|
|
15
|
+
get wheelRoot () {
|
|
16
|
+
return wheelRoot;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
|
|
20
|
+
const _classnames = /*#__PURE__*/ _interop_require_default(require("classnames"));
|
|
21
|
+
const _WheelColumn = require("./ui/WheelColumn");
|
|
22
|
+
const _Wheelstyles = require("./Wheel.styles");
|
|
23
|
+
const _Wheeltokens = require("./Wheel.tokens");
|
|
24
|
+
const _base = require("./variations/_size/base");
|
|
25
|
+
const _base1 = require("./variations/_view/base");
|
|
26
|
+
const _base2 = require("./variations/_disabled/base");
|
|
27
|
+
function _interop_require_default(obj) {
|
|
28
|
+
return obj && obj.__esModule ? obj : {
|
|
29
|
+
default: obj
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
function _getRequireWildcardCache(nodeInterop) {
|
|
33
|
+
if (typeof WeakMap !== "function") return null;
|
|
34
|
+
var cacheBabelInterop = new WeakMap();
|
|
35
|
+
var cacheNodeInterop = new WeakMap();
|
|
36
|
+
return (_getRequireWildcardCache = function(nodeInterop) {
|
|
37
|
+
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
38
|
+
})(nodeInterop);
|
|
39
|
+
}
|
|
40
|
+
function _interop_require_wildcard(obj, nodeInterop) {
|
|
41
|
+
if (!nodeInterop && obj && obj.__esModule) {
|
|
42
|
+
return obj;
|
|
43
|
+
}
|
|
44
|
+
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
45
|
+
return {
|
|
46
|
+
default: obj
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
var cache = _getRequireWildcardCache(nodeInterop);
|
|
50
|
+
if (cache && cache.has(obj)) {
|
|
51
|
+
return cache.get(obj);
|
|
52
|
+
}
|
|
53
|
+
var newObj = {
|
|
54
|
+
__proto__: null
|
|
55
|
+
};
|
|
56
|
+
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
57
|
+
for(var key in obj){
|
|
58
|
+
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
59
|
+
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
60
|
+
if (desc && (desc.get || desc.set)) {
|
|
61
|
+
Object.defineProperty(newObj, key, desc);
|
|
62
|
+
} else {
|
|
63
|
+
newObj[key] = obj[key];
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
newObj.default = obj;
|
|
68
|
+
if (cache) {
|
|
69
|
+
cache.set(obj, newObj);
|
|
70
|
+
}
|
|
71
|
+
return newObj;
|
|
72
|
+
}
|
|
73
|
+
const wheelRoot = (Root)=>/*#__PURE__*/ (0, _react.forwardRef)(({ columns, value, onChange, disabled, hasControls = true, visibleItemsCount = 5, animated = true, textAfterMode = 'dynamic', align = 'center', separator = 'none', className, width, style, size, view, ...rest }, ref)=>{
|
|
74
|
+
const reserveDescription = columns.some((column)=>column.description != null);
|
|
75
|
+
const hasSeparator = separator != null && typeof separator !== 'boolean' && separator !== '' && separator !== 'none';
|
|
76
|
+
const isCustomSeparator = hasSeparator && separator !== 'dots' && separator !== 'divider';
|
|
77
|
+
const separatorClassName = (0, _classnames.default)(separator === 'dots' && _Wheeltokens.classes.dots, separator === 'divider' && _Wheeltokens.classes.divider, isCustomSeparator && _Wheeltokens.classes.customSeparator);
|
|
78
|
+
return /*#__PURE__*/ _react.default.createElement(Root, {
|
|
79
|
+
ref: ref,
|
|
80
|
+
role: "group",
|
|
81
|
+
"aria-disabled": disabled || undefined,
|
|
82
|
+
disabled: disabled,
|
|
83
|
+
size: size,
|
|
84
|
+
view: view,
|
|
85
|
+
style: {
|
|
86
|
+
width,
|
|
87
|
+
...style
|
|
88
|
+
},
|
|
89
|
+
className: (0, _classnames.default)(className, disabled && _Wheeltokens.classes.disabled, reserveDescription && _Wheeltokens.classes.hasDescription, separatorClassName, align === 'left' && _Wheeltokens.classes.alignLeft, align === 'right' && _Wheeltokens.classes.alignRight, align === 'mixed' && _Wheeltokens.classes.alignMixed),
|
|
90
|
+
...rest
|
|
91
|
+
}, columns.map((column, index)=>/*#__PURE__*/ _react.default.createElement(_react.Fragment, {
|
|
92
|
+
key: column.name
|
|
93
|
+
}, index > 0 && hasSeparator && /*#__PURE__*/ _react.default.createElement(_Wheelstyles.Separator, {
|
|
94
|
+
"aria-hidden": isCustomSeparator ? undefined : true,
|
|
95
|
+
className: (0, _classnames.default)(_Wheeltokens.classes.separator, separatorClassName, reserveDescription && _Wheeltokens.classes.hasDescription)
|
|
96
|
+
}, isCustomSeparator && separator), /*#__PURE__*/ _react.default.createElement(_WheelColumn.WheelColumn, {
|
|
97
|
+
...column,
|
|
98
|
+
value: value[column.name],
|
|
99
|
+
disabled: disabled || column.disabled,
|
|
100
|
+
hasControls: hasControls,
|
|
101
|
+
visibleItemsCount: visibleItemsCount,
|
|
102
|
+
animated: animated,
|
|
103
|
+
textAfterMode: textAfterMode,
|
|
104
|
+
reserveDescription: reserveDescription,
|
|
105
|
+
onChange: (nextValue)=>{
|
|
106
|
+
if (onChange) {
|
|
107
|
+
onChange({
|
|
108
|
+
...value,
|
|
109
|
+
[column.name]: nextValue
|
|
110
|
+
}, column.name);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}))));
|
|
114
|
+
});
|
|
115
|
+
const wheelConfig = {
|
|
116
|
+
name: 'Wheel',
|
|
117
|
+
tag: 'div',
|
|
118
|
+
layout: wheelRoot,
|
|
119
|
+
base: _Wheelstyles.base,
|
|
120
|
+
variations: {
|
|
121
|
+
size: {
|
|
122
|
+
css: _base.base
|
|
123
|
+
},
|
|
124
|
+
view: {
|
|
125
|
+
css: _base1.base
|
|
126
|
+
},
|
|
127
|
+
disabled: {
|
|
128
|
+
css: _base2.base,
|
|
129
|
+
attrs: true
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
defaults: {
|
|
133
|
+
size: 'displayL',
|
|
134
|
+
view: 'default'
|
|
135
|
+
}
|
|
136
|
+
};
|