@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Editable.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Editable/Editable.styles.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,UAAU;cAA2B,OAAO;
|
|
1
|
+
{"version":3,"file":"Editable.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Editable/Editable.styles.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,UAAU;cAA2B,OAAO;SAQxD,CAAC;AAEF,eAAO,MAAM,WAAW,sEAAiB,CAAC;AAE1C,eAAO,MAAM,kBAAkB,qEAG9B,CAAC;AAEF,eAAO,MAAM,IAAI,wDA2DhB,CAAC"}
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
export declare const classes: {
|
|
2
|
+
textClip: string;
|
|
2
3
|
editableTextBox: string;
|
|
4
|
+
multiline: string;
|
|
3
5
|
};
|
|
4
6
|
export declare const tokens: {
|
|
5
7
|
editButtonBackground: string;
|
|
8
|
+
iconBackground: string;
|
|
6
9
|
editButtonColor: string;
|
|
7
10
|
editButtonColorHover: string;
|
|
11
|
+
iconGap: string;
|
|
8
12
|
editButtonPaddingLeft: string;
|
|
9
13
|
placeholderColor: string;
|
|
10
14
|
caretColor: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Editable.tokens.d.ts","sourceRoot":"","sources":["../../../src/components/Editable/Editable.tokens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO
|
|
1
|
+
{"version":3,"file":"Editable.tokens.d.ts","sourceRoot":"","sources":["../../../src/components/Editable/Editable.tokens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO;;;;CAInB,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;;;;;;;CAWlB,CAAC"}
|
|
@@ -32,6 +32,10 @@ export interface EditableProps<T> extends Omit<InputHTMLAttributes<HTMLInputElem
|
|
|
32
32
|
* Вид контрола.
|
|
33
33
|
*/
|
|
34
34
|
view?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Перенос текста на новую строку при переполнении
|
|
37
|
+
*/
|
|
38
|
+
multiline?: boolean;
|
|
35
39
|
}
|
|
36
40
|
export type TypographyVariants = {
|
|
37
41
|
[key: string]: FC<ComponentPropsWithRef<'div'>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Editable.types.d.ts","sourceRoot":"","sources":["../../../src/components/Editable/Editable.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,EAAE,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvF,MAAM,WAAW,aAAa,CAAC,CAAC,CAAE,SAAQ,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IACzF;;OAEG;IACH,aAAa,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;IAC1B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAC9B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"Editable.types.d.ts","sourceRoot":"","sources":["../../../src/components/Editable/Editable.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,EAAE,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvF,MAAM,WAAW,aAAa,CAAC,CAAC,CAAE,SAAQ,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IACzF;;OAEG;IACH,aAAa,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;IAC1B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAC9B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC7B,CAAC,GAAG,EAAE,MAAM,GAAG,EAAE,CAAC,qBAAqB,CAAC,KAAK,CAAC,CAAC,CAAC;CACnD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../src/components/Editable/variations/_size/base.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../src/components/Editable/variations/_size/base.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,IAAI,wDAahB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../src/components/Editable/variations/_view/base.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../src/components/Editable/variations/_view/base.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,IAAI,wDAgBhB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pagination.d.ts","sourceRoot":"","sources":["../../../src/components/Pagination/Pagination.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAEjF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"Pagination.d.ts","sourceRoot":"","sources":["../../../src/components/Pagination/Pagination.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAEjF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAezD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAS1D,eAAO,MAAM,cAAc,SAAU,qBAAqB,CAAC,cAAc,EAAE,eAAe,CAAC,2FA+QtF,CAAC;AAEN,eAAO,MAAM,gBAAgB;;;mBAjRQ,qBAAqB,CAAC,cAAc,EAAE,eAAe,CAAC;;;;;;;;;;;;;;;;;CAqS1F,CAAC"}
|
|
@@ -98,5 +98,6 @@ export declare const PaginationShorter: import("styled-components").StyledCompon
|
|
|
98
98
|
contentRight?: import("react").ReactNode;
|
|
99
99
|
} & import("react").RefAttributes<HTMLButtonElement>))>, any, {}, never>;
|
|
100
100
|
export declare const PaginationActionsLeft: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
101
|
+
export declare const PaginationQuickJumpGroup: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
101
102
|
export declare const PaginationHelperText: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
102
103
|
//# sourceMappingURL=Pagination.styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pagination.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Pagination/Pagination.styles.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,cAAc,oEAgB1B,CAAC;AAEF,eAAO,MAAM,eAAe,oEAK3B,CAAC;AAEF,eAAO,MAAM,iBAAiB,oEAqB7B,CAAC;AAEF,eAAO,MAAM,iBAAiB,oEAG7B,CAAC;AAEF,eAAO,MAAM,qBAAqB,6QA0BjC,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wEAmD5B,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wEAG7B,CAAC;AAEF,eAAO,MAAM,qBAAqB,oEAWjC,CAAC;AAEF,eAAO,MAAM,oBAAoB,oEAYhC,CAAC"}
|
|
1
|
+
{"version":3,"file":"Pagination.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Pagination/Pagination.styles.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,cAAc,oEAgB1B,CAAC;AAEF,eAAO,MAAM,eAAe,oEAK3B,CAAC;AAEF,eAAO,MAAM,iBAAiB,oEAqB7B,CAAC;AAEF,eAAO,MAAM,iBAAiB,oEAG7B,CAAC;AAEF,eAAO,MAAM,qBAAqB,6QA0BjC,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wEAmD5B,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wEAG7B,CAAC;AAEF,eAAO,MAAM,qBAAqB,oEAWjC,CAAC;AAEF,eAAO,MAAM,wBAAwB,oEAKpC,CAAC;AAEF,eAAO,MAAM,oBAAoB,oEAYhC,CAAC"}
|
|
@@ -138,5 +138,9 @@ export declare const tokens: {
|
|
|
138
138
|
inputBorderWidth: string;
|
|
139
139
|
/** @styleType dimension */
|
|
140
140
|
inputPadding: string;
|
|
141
|
+
/** @styleType dimension */
|
|
142
|
+
paginationQuickJumpGap: string;
|
|
143
|
+
/** @styleType dimension */
|
|
144
|
+
paginationQuickJumpInnerGap: string;
|
|
141
145
|
};
|
|
142
146
|
//# sourceMappingURL=Pagination.tokens.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pagination.tokens.d.ts","sourceRoot":"","sources":["../../../src/components/Pagination/Pagination.tokens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;CAqBnB,CAAC;AAEF,eAAO,MAAM,MAAM;IACf,2BAA2B;;IAE3B,uBAAuB;;IAEvB,uBAAuB;;I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2B;;IAG3B,uBAAuB;;IAEvB,uBAAuB;;IAEvB,uBAAuB;;IAEvB,uBAAuB;;IAEvB,uBAAuB;;IAEvB,uBAAuB;;IAEvB,uBAAuB;;IAEvB,uBAAuB;;IAEvB,uBAAuB;;IAEvB,uBAAuB;;IAEvB,uBAAuB;;IAEvB,uBAAuB;;IAEvB,2BAA2B;;IAG3B,uBAAuB;;IAEvB,uBAAuB;;IAEvB,uBAAuB;;IAEvB,uBAAuB;;IAEvB,uBAAuB;;IAEvB,uBAAuB;;IAEvB,uBAAuB;;IAEvB,uBAAuB;;IAGvB,uBAAuB;;IAGvB,2BAA2B;;IAE3B,2BAA2B;;IAE3B,2BAA2B;;IAE3B,2BAA2B;;IAE3B,2BAA2B;;IAE3B,2BAA2B;;IAE3B,2BAA2B;;IAG3B,6EAA6E;;IAE7E,2EAA2E;;IAE3E,4EAA4E;;IAE5E,6EAA6E;;IAE7E,gFAAgF;;IAEhF,6EAA6E;;IAG7E,uBAAuB;;IAEvB,2BAA2B;;IAE3B,2BAA2B;;IAE3B,2BAA2B;;IAE3B,2BAA2B;;IAE3B,uBAAuB;;IAGvB,2BAA2B;;IAE3B,2BAA2B;;IAE3B,2BAA2B;;IAE3B,uBAAuB;;IAGvB,2BAA2B;;IAE3B,2BAA2B;;IAE3B,2BAA2B;;IAE3B,2BAA2B;;IAG3B,uBAAuB;;IAEvB,uBAAuB;;IAEvB,2BAA2B;;IAE3B,2BAA2B;;IAE3B,2BAA2B;;IAE3B,uBAAuB;;IAEvB,2BAA2B;;IAE3B,2BAA2B;;IAG3B,2BAA2B;;IAE3B,2BAA2B;;CAE9B,CAAC"}
|
|
@@ -27,6 +27,11 @@ export type CustomPaginationProps = {
|
|
|
27
27
|
* Размер
|
|
28
28
|
*/
|
|
29
29
|
size?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Показывать номера страниц.
|
|
32
|
+
* @default true
|
|
33
|
+
*/
|
|
34
|
+
hasPageRange?: boolean;
|
|
30
35
|
/**
|
|
31
36
|
* Количество страниц
|
|
32
37
|
*/
|
|
@@ -43,6 +48,11 @@ export type CustomPaginationProps = {
|
|
|
43
48
|
* Выбор страницы через Input
|
|
44
49
|
*/
|
|
45
50
|
hasQuickJump?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Показывать общее число страниц рядом с полем быстрого перехода.
|
|
53
|
+
* @default false
|
|
54
|
+
*/
|
|
55
|
+
hasTotalPages?: boolean;
|
|
46
56
|
/**
|
|
47
57
|
* Выбор количества результатов на странице
|
|
48
58
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pagination.types.d.ts","sourceRoot":"","sources":["../../../src/components/Pagination/Pagination.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAElF,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAKjF,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,SAAS,CAAC;AAEpD,MAAM,MAAM,qBAAqB,GAAG;IAChC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;IAExB;;OAEG;IACH,YAAY,CAAC,EAAE,SAAS,CAAC;IAKzB,UAAU,CAAC,EAAE,SAAS,CAAC;IAEvB;;OAEG;IACH,IAAI,CAAC,EAAE,eAAe,CAAC;IAEvB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;I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C,EAAE,MAAM,KAAK,IAAI,CAAC;CACrD,CAAC;AAEF,MAAM,WAAW,eACb,SAAQ,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,GAAG,cAAc,CAAC,EACrE,OAAO,EACP,qBAAqB;CAAG"}
|
|
1
|
+
{"version":3,"file":"Pagination.types.d.ts","sourceRoot":"","sources":["../../../src/components/Pagination/Pagination.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAElF,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAKjF,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,SAAS,CAAC;AAEpD,MAAM,MAAM,qBAAqB,GAAG;IAChC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;IAExB;;OAEG;IACH,YAAY,CAAC,EAAE,SAAS,CAAC;IAKzB,UAAU,CAAC,EAAE,SAAS,CAAC;IAEvB;;OAEG;IACH,IAAI,CAAC,EAAE,eAAe,CAAC;IAEvB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;OAEG;IACH,OAAO,CAAC,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I,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,GAAG,cAAc,CAAC,EACrE,OAAO,EACP,qBAAqB;CAAG"}
|
package/types/components/Pagination/ui/PaginationQuickJumpToPage/PaginationQuickJumpToPage.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaginationQuickJumpToPage.d.ts","sourceRoot":"","sources":["../../../../../src/components/Pagination/ui/PaginationQuickJumpToPage/PaginationQuickJumpToPage.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAA4B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"PaginationQuickJumpToPage.d.ts","sourceRoot":"","sources":["../../../../../src/components/Pagination/ui/PaginationQuickJumpToPage/PaginationQuickJumpToPage.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAA4B,MAAM,OAAO,CAAC;AAK1D,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,mCAAmC,CAAC;AAOxF,eAAO,MAAM,yBAAyB,EAAE,EAAE,CAAC,8BAA8B,CA+ExE,CAAC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { HTMLAttributes, FocusEvent } from 'react';
|
|
2
2
|
export type PaginationQuickJumpToPageRoot = {
|
|
3
3
|
prevPageValue?: number;
|
|
4
|
+
totalPages?: number;
|
|
5
|
+
hasTotalPages?: boolean;
|
|
4
6
|
placeholderQuickJump?: string;
|
|
5
7
|
textQuickJump?: string;
|
|
6
8
|
onChangeValue?: (page?: number) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaginationQuickJumpToPage.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/Pagination/ui/PaginationQuickJumpToPage/PaginationQuickJumpToPage.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAExD,MAAM,MAAM,6BAA6B,GAAG;IAIxC,aAAa,CAAC,EAAE,MAAM,CAAC;IAIvB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAK9B,aAAa,CAAC,EAAE,MAAM,CAAC;IAKvB,aAAa,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC;;OAEG;IACH,gBAAgB,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAC7D;;OAEG;IACH,eAAe,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;CAC/D,CAAC;AAEF,MAAM,MAAM,8BAA8B,GAAG,cAAc,CAAC,cAAc,CAAC,GAAG,6BAA6B,CAAC"}
|
|
1
|
+
{"version":3,"file":"PaginationQuickJumpToPage.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/Pagination/ui/PaginationQuickJumpToPage/PaginationQuickJumpToPage.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAExD,MAAM,MAAM,6BAA6B,GAAG;IAIxC,aAAa,CAAC,EAAE,MAAM,CAAC;IAIvB,UAAU,CAAC,EAAE,MAAM,CAAC;IAIpB,aAAa,CAAC,EAAE,OAAO,CAAC;IAIxB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAK9B,aAAa,CAAC,EAAE,MAAM,CAAC;IAKvB,aAAa,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC;;OAEG;IACH,gBAAgB,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAC7D;;OAEG;IACH,eAAe,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;CAC/D,CAAC;AAEF,MAAM,MAAM,8BAA8B,GAAG,cAAc,CAAC,cAAc,CAAC,GAAG,6BAA6B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Pagination/utils/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AA2B3E,eAAO,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Pagination/utils/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AA2B3E,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;CAiBzB,CAAC;AAEF,eAAO,MAAM,WAAW,WACZ,MAAM,UACN,MAAM,UACN,YAAY,CAAC,sBAAsB,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,KACpD,MAAM,EAAE,EA8CV,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { RootPropsOmitOnChangeAndDefaultValue } from '../../engines';
|
|
3
|
+
import type { WheelProps } from './Wheel.types';
|
|
4
|
+
export declare const wheelRoot: (Root: RootPropsOmitOnChangeAndDefaultValue<HTMLDivElement, Omit<WheelProps, "columns" | "value">>) => React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement>, "onChange" | "children" | "defaultValue"> & {
|
|
5
|
+
columns: import("./Wheel.types").WheelColumns<import("./Wheel.types").WheelValue<Record<string, import("./Wheel.types").WheelItemValue>>>;
|
|
6
|
+
width?: React.CSSProperties["width"];
|
|
7
|
+
value: import("./Wheel.types").WheelValue<Record<string, import("./Wheel.types").WheelItemValue>>;
|
|
8
|
+
onChange?: ((value: import("./Wheel.types").WheelValue<Record<string, import("./Wheel.types").WheelItemValue>>, column: string) => void) | undefined;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
hasControls?: boolean;
|
|
11
|
+
visibleItemsCount?: 3 | 5;
|
|
12
|
+
animated?: boolean;
|
|
13
|
+
textAfterMode?: "dynamic" | "static";
|
|
14
|
+
align?: import("./Wheel.types").WheelAlignment;
|
|
15
|
+
separator?: import("./Wheel.types").WheelSeparator;
|
|
16
|
+
size?: string;
|
|
17
|
+
view?: string;
|
|
18
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
19
|
+
export declare const wheelConfig: {
|
|
20
|
+
name: string;
|
|
21
|
+
tag: string;
|
|
22
|
+
layout: (Root: RootPropsOmitOnChangeAndDefaultValue<HTMLDivElement, Omit<WheelProps, "columns" | "value">>) => React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement>, "onChange" | "children" | "defaultValue"> & {
|
|
23
|
+
columns: import("./Wheel.types").WheelColumns<import("./Wheel.types").WheelValue<Record<string, import("./Wheel.types").WheelItemValue>>>;
|
|
24
|
+
width?: React.CSSProperties["width"];
|
|
25
|
+
value: import("./Wheel.types").WheelValue<Record<string, import("./Wheel.types").WheelItemValue>>;
|
|
26
|
+
onChange?: ((value: import("./Wheel.types").WheelValue<Record<string, import("./Wheel.types").WheelItemValue>>, column: string) => void) | undefined;
|
|
27
|
+
disabled?: boolean;
|
|
28
|
+
hasControls?: boolean;
|
|
29
|
+
visibleItemsCount?: 3 | 5;
|
|
30
|
+
animated?: boolean;
|
|
31
|
+
textAfterMode?: "dynamic" | "static";
|
|
32
|
+
align?: import("./Wheel.types").WheelAlignment;
|
|
33
|
+
separator?: import("./Wheel.types").WheelSeparator;
|
|
34
|
+
size?: string;
|
|
35
|
+
view?: string;
|
|
36
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
37
|
+
base: import("styled-components").FlattenSimpleInterpolation;
|
|
38
|
+
variations: {
|
|
39
|
+
size: {
|
|
40
|
+
css: import("styled-components").FlattenSimpleInterpolation;
|
|
41
|
+
};
|
|
42
|
+
view: {
|
|
43
|
+
css: import("styled-components").FlattenSimpleInterpolation;
|
|
44
|
+
};
|
|
45
|
+
disabled: {
|
|
46
|
+
css: import("styled-components").FlattenSimpleInterpolation;
|
|
47
|
+
attrs: boolean;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
defaults: {
|
|
51
|
+
size: string;
|
|
52
|
+
view: string;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
//# sourceMappingURL=Wheel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Wheel.d.ts","sourceRoot":"","sources":["../../../src/components/Wheel/Wheel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAEpD,OAAO,KAAK,EAAE,oCAAoC,EAAE,MAAM,aAAa,CAAC;AAExE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAQhD,eAAO,MAAM,SAAS,SACZ,oCAAoC,CAAC,cAAc,EAAE,IAAI,CAAC,UAAU,EAAE,SAAS,GAAG,OAAO,CAAC,CAAC;;;;;;;;;;;;;;wCAwFhG,CAAC;AAEN,eAAO,MAAM,WAAW;;;mBA1Fd,oCAAoC,CAAC,cAAc,EAAE,IAAI,CAAC,UAAU,EAAE,SAAS,GAAG,OAAO,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqGpG,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare const base: import("styled-components").FlattenSimpleInterpolation;
|
|
2
|
+
export declare const Column: import("styled-components").StyledComponent<"div", any, {
|
|
3
|
+
$fixedWidth: boolean;
|
|
4
|
+
}, never>;
|
|
5
|
+
export declare const ColumnContent: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
6
|
+
export declare const Items: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
7
|
+
export declare const ItemContent: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
8
|
+
export declare const ItemLabel: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
9
|
+
export declare const Item: import("styled-components").StyledComponent<"div", any, {
|
|
10
|
+
$row?: number;
|
|
11
|
+
}, never>;
|
|
12
|
+
export declare const WidthMeasure: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
13
|
+
export declare const ValueWidthMeasure: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
14
|
+
export declare const LabelWidthMeasure: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
15
|
+
export declare const TextAfter: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
16
|
+
export declare const StaticTextAfterWrapper: import("styled-components").StyledComponent<"div", any, {
|
|
17
|
+
$row: number;
|
|
18
|
+
}, never>;
|
|
19
|
+
export declare const DescriptionWrapper: import("styled-components").StyledComponent<"div", any, {
|
|
20
|
+
$row: number;
|
|
21
|
+
}, never>;
|
|
22
|
+
export declare const Description: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
23
|
+
export declare const Control: import("styled-components").StyledComponent<"button", any, {}, never>;
|
|
24
|
+
export declare const Separator: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
25
|
+
//# sourceMappingURL=Wheel.styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Wheel.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Wheel/Wheel.styles.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,IAAI,wDAiBhB,CAAC;AAEF,eAAO,MAAM,MAAM;iBAA6B,OAAO;SA+BtD,CAAC;AAEF,eAAO,MAAM,aAAa,oEAIzB,CAAC;AAEF,eAAO,MAAM,KAAK,oEAmBjB,CAAC;AAEF,eAAO,MAAM,WAAW,oEAQvB,CAAC;AAEF,eAAO,MAAM,SAAS,oEAMrB,CAAC;AAWF,eAAO,MAAM,IAAI;WAAuB,MAAM;SAkE7C,CAAC;AAGF,eAAO,MAAM,YAAY,oEAYxB,CAAC;AAEF,eAAO,MAAM,iBAAiB,oEAI7B,CAAC;AAEF,eAAO,MAAM,iBAAiB,oEAG7B,CAAC;AAEF,eAAO,MAAM,SAAS,qEAErB,CAAC;AAEF,eAAO,MAAM,sBAAsB;UAAsB,MAAM;SAmB9D,CAAC;AAEF,eAAO,MAAM,kBAAkB;UAAsB,MAAM;SAY1D,CAAC;AAEF,eAAO,MAAM,WAAW,oEAUvB,CAAC;AAEF,eAAO,MAAM,OAAO,uEAiBnB,CAAC;AAEF,eAAO,MAAM,SAAS,oEA0CrB,CAAC"}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
export declare const classes: {
|
|
2
|
+
column: string;
|
|
3
|
+
disabled: string;
|
|
4
|
+
dots: string;
|
|
5
|
+
divider: string;
|
|
6
|
+
separator: string;
|
|
7
|
+
customSeparator: string;
|
|
8
|
+
previousControl: string;
|
|
9
|
+
hasDescription: string;
|
|
10
|
+
itemContent: string;
|
|
11
|
+
description: string;
|
|
12
|
+
staticTextAfter: string;
|
|
13
|
+
textAfter: string;
|
|
14
|
+
alignLeft: string;
|
|
15
|
+
alignRight: string;
|
|
16
|
+
alignMixed: string;
|
|
17
|
+
};
|
|
18
|
+
export declare const privateTokens: {
|
|
19
|
+
alignItems: string;
|
|
20
|
+
justifyItems: string;
|
|
21
|
+
textAlign: string;
|
|
22
|
+
itemContentDisplay: string;
|
|
23
|
+
staticValueWidth: string;
|
|
24
|
+
staticTextAfterPadding: string;
|
|
25
|
+
};
|
|
26
|
+
export declare const tokens: {
|
|
27
|
+
/** @styleType value */
|
|
28
|
+
animationDuration: string;
|
|
29
|
+
/** @styleType value */
|
|
30
|
+
animationEasing: string;
|
|
31
|
+
/** @styleType color */
|
|
32
|
+
color: string;
|
|
33
|
+
/** @styleType color */
|
|
34
|
+
textAfterColor: string;
|
|
35
|
+
/** @styleType color */
|
|
36
|
+
controlColor: string;
|
|
37
|
+
/** @styleType color */
|
|
38
|
+
dividerColor: string;
|
|
39
|
+
/** @styleType color */
|
|
40
|
+
focusColor: string;
|
|
41
|
+
/** @styleType color */
|
|
42
|
+
selectionBackgroundColor: string;
|
|
43
|
+
/** @styleType dimension */
|
|
44
|
+
selectionBorderRadius: string;
|
|
45
|
+
/** @styleType dimension */
|
|
46
|
+
selectionHeight: string;
|
|
47
|
+
/** @styleType float */
|
|
48
|
+
disabledOpacity: string;
|
|
49
|
+
/** @styleType float */
|
|
50
|
+
secondaryOpacity: string;
|
|
51
|
+
/** @styleType float */
|
|
52
|
+
tertiaryOpacity: string;
|
|
53
|
+
/** @styleType dimension */
|
|
54
|
+
columnGap: string;
|
|
55
|
+
/** @styleType dimension */
|
|
56
|
+
dotColumnGap: string;
|
|
57
|
+
/** @styleType dimension */
|
|
58
|
+
dividerColumnGap: string;
|
|
59
|
+
/** @styleType dimension */
|
|
60
|
+
itemGap: string;
|
|
61
|
+
/** @styleType dimension */
|
|
62
|
+
itemVerticalPadding: string;
|
|
63
|
+
/** @styleType dimension */
|
|
64
|
+
secondaryItemVerticalPadding: string;
|
|
65
|
+
/** @styleType dimension */
|
|
66
|
+
tertiaryItemVerticalPadding: string;
|
|
67
|
+
/** @styleType dimension */
|
|
68
|
+
descriptionGap: string;
|
|
69
|
+
/** @styleType dimension */
|
|
70
|
+
textAfterGap: string;
|
|
71
|
+
/** @styleType value */
|
|
72
|
+
itemContentDisplay: string;
|
|
73
|
+
/** @styleType dimension */
|
|
74
|
+
controlSize: string;
|
|
75
|
+
/** @styleType dimension */
|
|
76
|
+
controlGap: string;
|
|
77
|
+
/** @styleType dimension */
|
|
78
|
+
dotSize: string;
|
|
79
|
+
/** @styleType dimension */
|
|
80
|
+
dotGap: string;
|
|
81
|
+
/** @styleType dimension */
|
|
82
|
+
dotSeparatorWidth: string;
|
|
83
|
+
/** @styleType dimension */
|
|
84
|
+
separatorInlinePadding: string;
|
|
85
|
+
/** @styleType dimension */
|
|
86
|
+
dotOffset: string;
|
|
87
|
+
/** @styleType typography @styleProp labelStyle @stylePart fontFamily */
|
|
88
|
+
fontFamily: string;
|
|
89
|
+
/** @styleType typography @styleProp labelStyle @stylePart fontSize */
|
|
90
|
+
fontSize: string;
|
|
91
|
+
/** @styleType typography @styleProp labelStyle @stylePart fontStyle */
|
|
92
|
+
fontStyle: string;
|
|
93
|
+
/** @styleType typography @styleProp labelStyle @stylePart fontWeight */
|
|
94
|
+
fontWeight: string;
|
|
95
|
+
/** @styleType typography @styleProp labelStyle @stylePart letterSpacing */
|
|
96
|
+
letterSpacing: string;
|
|
97
|
+
/** @styleType typography @styleProp labelStyle @stylePart lineHeight */
|
|
98
|
+
lineHeight: string;
|
|
99
|
+
/** @styleType float */
|
|
100
|
+
secondaryScale: string;
|
|
101
|
+
/** @styleType float */
|
|
102
|
+
tertiaryScale: string;
|
|
103
|
+
/** @styleType typography @styleProp descriptionStyle @stylePart fontFamily */
|
|
104
|
+
descriptionFontFamily: string;
|
|
105
|
+
/** @styleType typography @styleProp descriptionStyle @stylePart fontSize */
|
|
106
|
+
descriptionFontSize: string;
|
|
107
|
+
/** @styleType typography @styleProp descriptionStyle @stylePart fontStyle */
|
|
108
|
+
descriptionFontStyle: string;
|
|
109
|
+
/** @styleType typography @styleProp descriptionStyle @stylePart fontWeight */
|
|
110
|
+
descriptionFontWeight: string;
|
|
111
|
+
/** @styleType typography @styleProp descriptionStyle @stylePart letterSpacing */
|
|
112
|
+
descriptionLetterSpacing: string;
|
|
113
|
+
/** @styleType typography @styleProp descriptionStyle @stylePart lineHeight */
|
|
114
|
+
descriptionLineHeight: string;
|
|
115
|
+
};
|
|
116
|
+
//# sourceMappingURL=Wheel.tokens.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Wheel.tokens.d.ts","sourceRoot":"","sources":["../../../src/components/Wheel/Wheel.tokens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;CAgBnB,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;;CAOzB,CAAC;AAEF,eAAO,MAAM,MAAM;IACf,uBAAuB;;IAEvB,uBAAuB;;IAEvB,uBAAuB;;IAEvB,uBAAuB;;IAEvB,uBAAuB;;IAEvB,uBAAuB;;IAEvB,uBAAuB;;IAEvB,uBAAuB;;IAEvB,2BAA2B;;IAE3B,2BAA2B;;IAE3B,uBAAuB;;IAEvB,uBAAuB;;IAEvB,uBAAuB;;IAEvB,2BAA2B;;IAE3B,2BAA2B;;IAE3B,2BAA2B;;IAE3B,2BAA2B;;IAE3B,2BAA2B;;IAE3B,2BAA2B;;IAE3B,2BAA2B;;IAE3B,2BAA2B;;IAE3B,2BAA2B;;IAE3B,uBAAuB;;IAEvB,2BAA2B;;IAE3B,2BAA2B;;IAE3B,2BAA2B;;IAE3B,2BAA2B;;IAE3B,2BAA2B;;IAE3B,2BAA2B;;IAE3B,2BAA2B;;IAE3B,wEAAwE;;IAExE,sEAAsE;;IAEtE,uEAAuE;;IAEvE,wEAAwE;;IAExE,2EAA2E;;IAE3E,wEAAwE;;IAExE,uBAAuB;;IAEvB,uBAAuB;;IAEvB,8EAA8E;;IAE9E,4EAA4E;;IAE5E,6EAA6E;;IAE7E,8EAA8E;;IAE9E,iFAAiF;;IAEjF,8EAA8E;;CAEjF,CAAC"}
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import type { CSSProperties, HTMLAttributes, ReactNode, ReactElement, Ref } from 'react';
|
|
2
|
+
export type WheelItemValue = string | number;
|
|
3
|
+
export type WheelAlignment = 'left' | 'center' | 'right' | 'mixed';
|
|
4
|
+
export type WheelSeparatorPreset = 'none' | 'dots' | 'divider';
|
|
5
|
+
/**
|
|
6
|
+
* ReactNode с подсказками предустановленных строковых вариантов в редакторе.
|
|
7
|
+
*/
|
|
8
|
+
export type WheelSeparator = WheelSeparatorPreset | Exclude<ReactNode, string> | (string & {});
|
|
9
|
+
export type WheelValue<Value = Record<string, WheelItemValue>> = {
|
|
10
|
+
[Name in keyof Value]: WheelItemValue;
|
|
11
|
+
};
|
|
12
|
+
type NoInferValue<Value> = [Value][Value extends unknown ? 0 : never];
|
|
13
|
+
/**
|
|
14
|
+
* Состояние элемента относительно выбранной строки.
|
|
15
|
+
*/
|
|
16
|
+
export type WheelItemState = {
|
|
17
|
+
selected: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Позиция относительно выбранной строки, включая скрытые строки для анимации.
|
|
20
|
+
* При visibleItemsCount=3 буферные позиции — ±2, при 5 — ±3.
|
|
21
|
+
*/
|
|
22
|
+
offset: -3 | -2 | -1 | 0 | 1 | 2 | 3;
|
|
23
|
+
};
|
|
24
|
+
export type WheelItem<Value extends WheelItemValue = WheelItemValue> = {
|
|
25
|
+
/**
|
|
26
|
+
* Уникальное в пределах столбца значение.
|
|
27
|
+
*/
|
|
28
|
+
value: Value;
|
|
29
|
+
disabled?: boolean;
|
|
30
|
+
} & ({
|
|
31
|
+
label: string | number;
|
|
32
|
+
textValue?: string;
|
|
33
|
+
} | {
|
|
34
|
+
label: ReactNode;
|
|
35
|
+
/**
|
|
36
|
+
* Текст для скринридера при использовании JSX.
|
|
37
|
+
*/
|
|
38
|
+
textValue: string;
|
|
39
|
+
});
|
|
40
|
+
export type WheelColumn<Value extends WheelItemValue = WheelItemValue> = {
|
|
41
|
+
/**
|
|
42
|
+
* Доступное имя столбца.
|
|
43
|
+
*/
|
|
44
|
+
label: string;
|
|
45
|
+
/**
|
|
46
|
+
* Элементы столбца.
|
|
47
|
+
*/
|
|
48
|
+
items: readonly WheelItem<Value>[];
|
|
49
|
+
/**
|
|
50
|
+
* Ширина колонки: число в пикселях или CSS-размер.
|
|
51
|
+
* По умолчанию определяется самым широким элементом, включая textAfter и description.
|
|
52
|
+
* При заданной ширине Wheel автоматические колонки делят оставшееся пространство.
|
|
53
|
+
*/
|
|
54
|
+
width?: CSSProperties['width'];
|
|
55
|
+
/**
|
|
56
|
+
* Общая неподвижная подпись колонки под выбранным значением.
|
|
57
|
+
*/
|
|
58
|
+
description?: ReactNode;
|
|
59
|
+
/**
|
|
60
|
+
* Дополнительный контент после значения, например единица измерения.
|
|
61
|
+
* Способ отображения задаётся textAfterMode компонента Wheel.
|
|
62
|
+
*/
|
|
63
|
+
textAfter?: ReactNode;
|
|
64
|
+
/**
|
|
65
|
+
* Столбец неактивен.
|
|
66
|
+
*/
|
|
67
|
+
disabled?: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Зацикливание элементов этой колонки.
|
|
70
|
+
* @default false
|
|
71
|
+
*/
|
|
72
|
+
loop?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Контент строки.
|
|
75
|
+
*/
|
|
76
|
+
renderItem?: (item: WheelItem<Value>, state: WheelItemState) => ReactNode;
|
|
77
|
+
};
|
|
78
|
+
/**
|
|
79
|
+
* Имя столбца определяет тип его опций и аргумента renderItem.
|
|
80
|
+
*/
|
|
81
|
+
export type WheelColumns<Value extends WheelValue<Value>> = readonly {
|
|
82
|
+
[Name in Extract<keyof Value, string>]: WheelColumn<Value[Name]> & {
|
|
83
|
+
name: Name;
|
|
84
|
+
};
|
|
85
|
+
}[Extract<keyof Value, string>][];
|
|
86
|
+
export type WheelProps<Value extends WheelValue<Value> = WheelValue> = Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'defaultValue' | 'children'> & {
|
|
87
|
+
/**
|
|
88
|
+
* Колонки с элементами.
|
|
89
|
+
*/
|
|
90
|
+
columns: WheelColumns<NoInferValue<Value>>;
|
|
91
|
+
/**
|
|
92
|
+
* Ширина контейнера колонок: число в пикселях или CSS-размер.
|
|
93
|
+
* По умолчанию определяется содержимым.
|
|
94
|
+
*/
|
|
95
|
+
width?: CSSProperties['width'];
|
|
96
|
+
/**
|
|
97
|
+
* Управляемое значение. Все значения должны присутствовать в соответствующих столбцах.
|
|
98
|
+
*/
|
|
99
|
+
value: Value;
|
|
100
|
+
/**
|
|
101
|
+
* Callback при изменении активного значения.
|
|
102
|
+
*/
|
|
103
|
+
onChange?: (value: Value, column: Extract<keyof Value, string>) => void;
|
|
104
|
+
/**
|
|
105
|
+
* Компонент неактивен.
|
|
106
|
+
*/
|
|
107
|
+
disabled?: boolean;
|
|
108
|
+
/**
|
|
109
|
+
* Отображение стрелок для перелистывания.
|
|
110
|
+
* @default true
|
|
111
|
+
*/
|
|
112
|
+
hasControls?: boolean;
|
|
113
|
+
/**
|
|
114
|
+
* Количество видимых значений в каждой колонке, включая выбранное.
|
|
115
|
+
* @default 5
|
|
116
|
+
*/
|
|
117
|
+
visibleItemsCount?: 3 | 5;
|
|
118
|
+
/**
|
|
119
|
+
* Плавное перелистывание. Учитывает prefers-reduced-motion.
|
|
120
|
+
* @default true
|
|
121
|
+
*/
|
|
122
|
+
animated?: boolean;
|
|
123
|
+
/**
|
|
124
|
+
* dynamic — textAfter отображается и анимируется в каждой строке.
|
|
125
|
+
* static — одна неподвижная подпись рядом с выбранным значением,
|
|
126
|
+
* привязанная к самому широкому элементу колонки с симметричным запасом ширины.
|
|
127
|
+
* @default dynamic
|
|
128
|
+
*/
|
|
129
|
+
textAfterMode?: 'dynamic' | 'static';
|
|
130
|
+
/**
|
|
131
|
+
* Выравнивание строк, подписей и стрелок в столбцах.
|
|
132
|
+
* mixed — первая колонка вправо, последняя влево, остальные по центру.
|
|
133
|
+
* Единственная колонка всегда по центру в mixed.
|
|
134
|
+
* @default center
|
|
135
|
+
*/
|
|
136
|
+
align?: WheelAlignment;
|
|
137
|
+
/**
|
|
138
|
+
* Разделитель между колонками.
|
|
139
|
+
* Строки none, dots и divider зарезервированы. null и false скрывают разделитель.
|
|
140
|
+
* @default none
|
|
141
|
+
*/
|
|
142
|
+
separator?: WheelSeparator;
|
|
143
|
+
/**
|
|
144
|
+
* Размер компонента.
|
|
145
|
+
*/
|
|
146
|
+
size?: string;
|
|
147
|
+
/**
|
|
148
|
+
* Вид компонента.
|
|
149
|
+
*/
|
|
150
|
+
view?: string;
|
|
151
|
+
};
|
|
152
|
+
/**
|
|
153
|
+
* Generic-сигнатура для обёрток, создаваемых через component(mergeConfig(...)).
|
|
154
|
+
*/
|
|
155
|
+
export type WheelComponent = <Value extends WheelValue<Value>>(props: WheelProps<Value> & {
|
|
156
|
+
ref?: Ref<HTMLDivElement>;
|
|
157
|
+
}) => ReactElement | null;
|
|
158
|
+
export {};
|
|
159
|
+
//# sourceMappingURL=Wheel.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Wheel.types.d.ts","sourceRoot":"","sources":["../../../src/components/Wheel/Wheel.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,SAAS,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAEzF,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,MAAM,CAAC;AAC7C,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,OAAO,CAAC;AACnE,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;AAC/D;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,oBAAoB,GAAG,OAAO,CAAC,SAAS,EAAE,MAAM,CAAC,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAC/F,MAAM,MAAM,UAAU,CAAC,KAAK,GAAG,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,IAAI;KAAG,IAAI,IAAI,MAAM,KAAK,GAAG,cAAc;CAAE,CAAC;AAG3G,KAAK,YAAY,CAAC,KAAK,IAAI,CAAC,KAAK,CAAC,CAAC,KAAK,SAAS,OAAO,GAAG,CAAC,GAAG,KAAK,CAAC,CAAC;AAEtE;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IACzB,QAAQ,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,MAAM,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;CACxC,CAAC;AAEF,MAAM,MAAM,SAAS,CAAC,KAAK,SAAS,cAAc,GAAG,cAAc,IAAI;IACnE;;OAEG;IACH,KAAK,EAAE,KAAK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react").RefObject<HTMLDivElement>;
|
|
4
|
+
textAfterRef: import("react").RefObject<HTMLSpanElement>;
|
|
5
|
+
style: CSSProperties | undefined;
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=useStaticTextAfter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useStaticTextAfter.d.ts","sourceRoot":"","sources":["../../../../src/components/Wheel/hooks/useStaticTextAfter.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAK3C,eAAO,MAAM,kBAAkB,YAAa,OAAO;;;;CA6ClD,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { MutableRefObject, RefObject } from 'react';
|
|
2
|
+
import type { WheelItem, WheelItemValue } from '../Wheel.types';
|
|
3
|
+
import type { SelectionIntent } from './useWheelInteraction';
|
|
4
|
+
type Options = {
|
|
5
|
+
viewportRef: RefObject<HTMLDivElement>;
|
|
6
|
+
intentRef: MutableRefObject<SelectionIntent | undefined>;
|
|
7
|
+
items: readonly WheelItem[];
|
|
8
|
+
value: WheelItemValue;
|
|
9
|
+
index: number;
|
|
10
|
+
loop: boolean;
|
|
11
|
+
animated: boolean;
|
|
12
|
+
visibleItemsCount: 3 | 5;
|
|
13
|
+
};
|
|
14
|
+
export declare const useWheelAnimation: ({ viewportRef, intentRef, items, value, index, loop, animated, visibleItemsCount, }: Options) => {
|
|
15
|
+
virtualIndex: number;
|
|
16
|
+
registerItem: (key: string, element: HTMLDivElement | null) => void;
|
|
17
|
+
};
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=useWheelAnimation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useWheelAnimation.d.ts","sourceRoot":"","sources":["../../../../src/components/Wheel/hooks/useWheelAnimation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGzD,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAIhE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAa7D,KAAK,OAAO,GAAG;IACX,WAAW,EAAE,SAAS,CAAC,cAAc,CAAC,CAAC;IACvC,SAAS,EAAE,gBAAgB,CAAC,eAAe,GAAG,SAAS,CAAC,CAAC;IACzD,KAAK,EAAE,SAAS,SAAS,EAAE,CAAC;IAC5B,KAAK,EAAE,cAAc,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;IAClB,iBAAiB,EAAE,CAAC,GAAG,CAAC,CAAC;CAC5B,CAAC;AAwDF,eAAO,MAAM,iBAAiB,wFAS3B,OAAO;;wBAciC,MAAM,WAAW,cAAc,GAAG,IAAI;CA8JhF,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { KeyboardEvent, PointerEvent, RefObject } from 'react';
|
|
2
|
+
import type { WheelItem, WheelItemValue } from '../Wheel.types';
|
|
3
|
+
export type SelectionIntent = {
|
|
4
|
+
value: WheelItemValue;
|
|
5
|
+
direction: number;
|
|
6
|
+
};
|
|
7
|
+
type Options = {
|
|
8
|
+
viewportRef: RefObject<HTMLDivElement>;
|
|
9
|
+
items: readonly WheelItem[];
|
|
10
|
+
value: WheelItemValue;
|
|
11
|
+
loop: boolean;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
visibleItemsCount: 3 | 5;
|
|
14
|
+
onChange: (value: WheelItemValue) => void;
|
|
15
|
+
};
|
|
16
|
+
export declare const useWheelInteraction: ({ viewportRef, items, value, loop, disabled, visibleItemsCount, onChange, }: Options) => {
|
|
17
|
+
selectedIndex: number;
|
|
18
|
+
previousIndex: number;
|
|
19
|
+
nextIndex: number;
|
|
20
|
+
unavailable: boolean;
|
|
21
|
+
intentRef: import("react").MutableRefObject<SelectionIntent | undefined>;
|
|
22
|
+
select: (index: number, direction: number) => void;
|
|
23
|
+
onItemClick: (index: number, direction: number) => void;
|
|
24
|
+
viewportHandlers: {
|
|
25
|
+
onKeyDown: (event: KeyboardEvent<HTMLDivElement>) => void;
|
|
26
|
+
onPointerDown: (event: PointerEvent<HTMLDivElement>) => void;
|
|
27
|
+
onPointerMove: (event: PointerEvent<HTMLDivElement>) => void;
|
|
28
|
+
onPointerUp: (event: PointerEvent<HTMLDivElement>) => void;
|
|
29
|
+
onPointerCancel: (event: PointerEvent<HTMLDivElement>) => void;
|
|
30
|
+
onLostPointerCapture: (event: PointerEvent<HTMLDivElement>) => void;
|
|
31
|
+
onPointerLeave: (event: PointerEvent<HTMLDivElement>) => void;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
export {};
|
|
35
|
+
//# sourceMappingURL=useWheelInteraction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useWheelInteraction.d.ts","sourceRoot":"","sources":["../../../../src/components/Wheel/hooks/useWheelInteraction.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEpE,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhE,MAAM,MAAM,eAAe,GAAG;IAAE,KAAK,EAAE,cAAc,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAAC;AAE3E,KAAK,OAAO,GAAG;IACX,WAAW,EAAE,SAAS,CAAC,cAAc,CAAC,CAAC;IACvC,KAAK,EAAE,SAAS,SAAS,EAAE,CAAC;IAC5B,KAAK,EAAE,cAAc,CAAC;IACtB,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iBAAiB,EAAE,CAAC,GAAG,CAAC,CAAC;IACzB,QAAQ,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,CAAC;CAC7C,CAAC;AAKF,eAAO,MAAM,mBAAmB,gFAQ7B,OAAO;;;;;;oBAWiB,MAAM,aAAa,MAAM;yBA8HpB,MAAM,aAAa,MAAM;;2BAvE3B,aAAa,CAAC,cAAc,CAAC;+BA4BzB,YAAY,CAAC,cAAc,CAAC;+BAU5B,YAAY,CAAC,cAAc,CAAC;6BAoB/B,YAAY,CAAC,cAAc,CAAC;iCAA5B,YAAY,CAAC,cAAc,CAAC;sCAA5B,YAAY,CAAC,cAAc,CAAC;gCAOxB,YAAY,CAAC,cAAc,CAAC;;CAkC9D,CAAC"}
|