@onereach/ui-components 2.69.7-beta.2170.0 → 2.69.7-beta.2172.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/bundled/v2/{OrButton-a846fa7e.js → OrButton-4b99c680.js} +1 -10
- package/dist/bundled/v2/{OrCardCollection-15d11d05.js → OrCardCollection-9ab12583.js} +2 -2
- package/dist/bundled/v2/{OrConfirm-ec3feaf5.js → OrConfirm-58a0d0ae.js} +2 -2
- package/dist/bundled/v2/{OrInput-8b90e08f.js → OrInput-70a17476.js} +18 -10
- package/dist/bundled/v2/{OrSearch-76b002cf.js → OrSearch-e9fe9aba.js} +1 -1
- package/dist/bundled/v2/{OrSelect-8a4d227e.js → OrSelect-396692be.js} +9 -16
- package/dist/bundled/v2/{OrSwitch-237a2081.js → OrSwitch-337c4e40.js} +16 -8
- package/dist/bundled/v2/components/index.d.ts +0 -1
- package/dist/bundled/v2/components/index.js +9 -8
- package/dist/bundled/v2/components/or-button-v3/OrButton.vue.d.ts +0 -11
- package/dist/bundled/v2/components/or-button-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-card-collection-v3/index.js +6 -4
- package/dist/bundled/v2/components/or-confirm-v3/index.js +5 -3
- package/dist/bundled/v2/components/or-input-v3/OrInput.stories3.d.ts +2 -0
- package/dist/bundled/v2/components/or-input-v3/OrInput.vue.d.ts +6 -2
- package/dist/bundled/v2/components/or-input-v3/index.js +3 -1
- package/dist/bundled/v2/components/or-search-v3/index.js +4 -2
- package/dist/bundled/v2/components/or-select-v3/OrSelect.vue.d.ts +14 -25
- package/dist/bundled/v2/components/or-select-v3/index.d.ts +0 -1
- package/dist/bundled/v2/components/or-select-v3/index.js +4 -2
- package/dist/bundled/v2/components/or-select-v3/types.d.ts +1 -1
- package/dist/bundled/v2/components/or-switch-v3/OrSwitch.vue.d.ts +6 -2
- package/dist/bundled/v2/components/or-switch-v3/index.js +3 -1
- package/dist/bundled/v2/hooks/index.d.ts +1 -0
- package/dist/bundled/v2/hooks/index.js +2 -0
- package/dist/bundled/v2/hooks/useSlicedAttrs.d.ts +5 -0
- package/dist/bundled/v2/index.js +10 -9
- package/dist/bundled/v2/useSlicedAttrs-8d836c02.js +30 -0
- package/dist/bundled/v3/{OrButton-2b27c1fd.js → OrButton-a671b8a1.js} +2 -3
- package/dist/bundled/v3/{OrButton.vue_vue_type_script_lang-8c44986c.js → OrButton.vue_vue_type_script_lang-b0dc31ca.js} +1 -9
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-bd852915.js → OrCardCollection.vue_vue_type_script_lang-d63ff1bf.js} +3 -3
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-9e4e2884.js → OrConfirm.vue_vue_type_script_lang-e6d1a51f.js} +4 -4
- package/dist/bundled/v3/{OrInput-fa782fc1.js → OrInput-aee859e9.js} +5 -4
- package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-f6d793d3.js → OrInput.vue_vue_type_script_lang-b687f7f9.js} +10 -3
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-014ad470.js → OrSearch.vue_vue_type_script_lang-c3c18f88.js} +2 -2
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-94063fc4.js → OrSelect.vue_vue_type_script_lang-639cf302.js} +4 -8
- package/dist/bundled/v3/{OrSwitch.vue_vue_type_script_lang-04829f64.js → OrSwitch.vue_vue_type_script_lang-e7c7f18b.js} +10 -3
- package/dist/bundled/v3/components/index.d.ts +0 -1
- package/dist/bundled/v3/components/index.js +11 -10
- package/dist/bundled/v3/components/or-button-v3/OrButton.vue.d.ts +0 -11
- package/dist/bundled/v3/components/or-button-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-card-collection-v3/index.js +8 -6
- package/dist/bundled/v3/components/or-confirm-v3/index.js +7 -5
- package/dist/bundled/v3/components/or-input-v3/OrInput.stories3.d.ts +2 -0
- package/dist/bundled/v3/components/or-input-v3/OrInput.vue.d.ts +6 -2
- package/dist/bundled/v3/components/or-input-v3/index.js +3 -1
- package/dist/bundled/v3/components/or-search-v3/index.js +5 -3
- package/dist/bundled/v3/components/or-select-v3/OrSelect.vue.d.ts +14 -25
- package/dist/bundled/v3/components/or-select-v3/index.d.ts +0 -1
- package/dist/bundled/v3/components/or-select-v3/index.js +5 -3
- package/dist/bundled/v3/components/or-select-v3/types.d.ts +1 -1
- package/dist/bundled/v3/components/or-switch-v3/OrSwitch.vue.d.ts +6 -2
- package/dist/bundled/v3/components/or-switch-v3/index.js +3 -1
- package/dist/bundled/v3/hooks/index.d.ts +1 -0
- package/dist/bundled/v3/hooks/index.js +2 -0
- package/dist/bundled/v3/hooks/useSlicedAttrs.d.ts +5 -0
- package/dist/bundled/v3/index.js +171 -259
- package/dist/bundled/v3/useSlicedAttrs-81ac6537.js +24 -0
- package/dist/esm/v2/{OrAvatar-3d155af3.js → OrAvatar-4d05d21f.js} +2 -1
- package/dist/esm/v2/{OrBottomSheet-16c2e610.js → OrBottomSheet-0386a623.js} +2 -1
- package/dist/esm/v2/{OrButton-835d4f11.js → OrButton-48c68216.js} +3 -11
- package/dist/esm/v2/{OrCard-de799db0.js → OrCard-3e794244.js} +1 -0
- package/dist/esm/v2/{OrCardCollection-f6b07557.js → OrCardCollection-1702319b.js} +2 -2
- package/dist/esm/v2/{OrCardCollection-024cfba9.js → OrCardCollection-d145adbe.js} +9 -8
- package/dist/esm/v2/{OrCheckbox-567e387c.js → OrCheckbox-197c4331.js} +2 -1
- package/dist/esm/v2/{OrConfirm-d7112dd3.js → OrConfirm-9e0fcf83.js} +1 -1
- package/dist/esm/v2/{OrConfirm-5e8dd4b6.js → OrConfirm-b62d2205.js} +3 -3
- package/dist/esm/v2/{OrError-d267ee9a.js → OrError-55b6feda.js} +1 -0
- package/dist/esm/v2/{OrErrorTag-782dd714.js → OrErrorTag-d0407d4e.js} +2 -1
- package/dist/esm/v2/{OrExpansionPanel-968ddc61.js → OrExpansionPanel-db7e325b.js} +2 -1
- package/dist/esm/v2/{OrFab-26106618.js → OrFab-77f5bb6e.js} +1 -1
- package/dist/esm/v2/{OrHint-42dc9ebb.js → OrHint-8ac527b2.js} +1 -0
- package/dist/esm/v2/{OrIcon-5e394c62.js → OrIcon-ed9e0063.js} +1 -0
- package/dist/esm/v2/{OrIconButton-e17e4944.js → OrIconButton-8d8bb874.js} +4 -3
- package/dist/esm/v2/{OrInlineInput-cfeeea33.js → OrInlineInput-a2e57f5c.js} +5 -4
- package/dist/esm/v2/{OrInlineInputBox-fefd4fbd.js → OrInlineInputBox-6a1d02c1.js} +1 -0
- package/dist/esm/v2/{OrInlineTextarea-897b5377.js → OrInlineTextarea-8ca157c7.js} +5 -4
- package/dist/esm/v2/{OrInput-2f16a7ac.js → OrInput-28f1c749.js} +24 -16
- package/dist/esm/v2/{OrInputBox-4d5a318d.js → OrInputBox-83980d24.js} +1 -0
- package/dist/esm/v2/{OrLabel-2a9f1477.js → OrLabel-0e300559.js} +1 -0
- package/dist/esm/v2/{OrLink-80742a17.js → OrLink-71e57969.js} +1 -0
- package/dist/esm/v2/{OrListOfInputs-50aa1ef1.js → OrListOfInputs-222bafd0.js} +1 -1
- package/dist/esm/v2/{OrLoader-f857d55b.js → OrLoader-5076d36b.js} +1 -0
- package/dist/esm/v2/{OrMenu-df27d0ef.js → OrMenu-f9b65b19.js} +2 -1
- package/dist/esm/v2/{OrMenuItem-c7f28480.js → OrMenuItem-26f5c30b.js} +2 -1
- package/dist/esm/v2/{OrModal-5b37a50a.js → OrModal-026a1889.js} +3 -2
- package/dist/esm/v2/{OrNotification-c765f111.js → OrNotification-f3c411f2.js} +3 -2
- package/dist/esm/v2/{OrOverlay-18ba2dc6.js → OrOverlay-c60af55e.js} +1 -0
- package/dist/esm/v2/{OrPassword-1fa97156.js → OrPassword-90a03124.js} +1 -1
- package/dist/esm/v2/{OrPopover-9bafbdb4.js → OrPopover-92cfde7e.js} +2 -1
- package/dist/esm/v2/{OrProgress-c27c8946.js → OrProgress-478b4e28.js} +1 -0
- package/dist/esm/v2/{OrRadio-848ce55d.js → OrRadio-f8c32b3a.js} +2 -1
- package/dist/esm/v2/{OrSearch-0589d17d.js → OrSearch-e0ffe9eb.js} +1 -1
- package/dist/esm/v2/{OrSearch-2f260b09.js → OrSearch-e935e64c.js} +3 -2
- package/dist/esm/v2/{OrSearch.vue_rollup-plugin-vue_script-197d77fc.js → OrSearch.vue_rollup-plugin-vue_script-2d694d30.js} +1 -0
- package/dist/esm/v2/{OrSegmentedControl-e8dce8f9.js → OrSegmentedControl-77a3e7d2.js} +1 -0
- package/dist/esm/v2/{OrSelect-641184f0.js → OrSelect-7c0417ed.js} +20 -26
- package/dist/esm/v2/{OrSkeletonText-950be6a2.js → OrSkeletonText-c1a4d7f2.js} +1 -0
- package/dist/esm/v2/{OrSortHeader-19bf94ca.js → OrSortHeader-0e6232da.js} +2 -1
- package/dist/esm/v2/{OrSwitch-13b6a7ee.js → OrSwitch-cbd0d767.js} +18 -10
- package/dist/esm/v2/{OrTab-702e7335.js → OrTab-6980c1dc.js} +1 -0
- package/dist/esm/v2/{OrTabs-71bd3fd2.js → OrTabs-bf200bc9.js} +6 -5
- package/dist/esm/v2/{OrTag-cf9c6195.js → OrTag-decd89a1.js} +2 -1
- package/dist/esm/v2/{OrText-ba5a2b6c.js → OrText-c78df05d.js} +1 -0
- package/dist/esm/v2/{OrTextarea-6712a150.js → OrTextarea-498efe98.js} +5 -4
- package/dist/esm/v2/{OrTextbox-2594c980.js → OrTextbox-f4f041ed.js} +1 -0
- package/dist/esm/v2/{OrTooltip-513bee30.js → OrTooltip-216920f0.js} +2 -1
- package/dist/esm/v2/components/index.d.ts +0 -1
- package/dist/esm/v2/components/index.js +52 -51
- package/dist/esm/v2/components/or-avatar-v3/index.js +3 -2
- package/dist/esm/v2/components/or-bottom-sheet-v3/index.js +3 -2
- package/dist/esm/v2/components/or-button-v3/OrButton.vue.d.ts +0 -11
- package/dist/esm/v2/components/or-button-v3/index.js +3 -2
- package/dist/esm/v2/components/or-card-collection/index.js +4 -3
- package/dist/esm/v2/components/or-card-collection-v3/index.js +19 -17
- package/dist/esm/v2/components/or-card-v3/index.js +2 -1
- package/dist/esm/v2/components/or-checkbox-v3/index.js +3 -2
- package/dist/esm/v2/components/or-confirm/index.js +3 -2
- package/dist/esm/v2/components/or-confirm-v3/index.js +16 -14
- package/dist/esm/v2/components/or-error-tag-v3/index.js +3 -2
- package/dist/esm/v2/components/or-error-v3/index.js +2 -1
- package/dist/esm/v2/components/or-expansion-panel-v3/index.js +3 -2
- package/dist/esm/v2/components/or-fab-v3/index.js +3 -2
- package/dist/esm/v2/components/or-hint-v3/index.js +2 -1
- package/dist/esm/v2/components/or-icon-button-v3/index.js +7 -6
- package/dist/esm/v2/components/or-icon-v3/index.js +2 -1
- package/dist/esm/v2/components/or-inline-input-box-v3/index.js +2 -1
- package/dist/esm/v2/components/or-inline-input-v3/index.js +11 -10
- package/dist/esm/v2/components/or-inline-textarea-v3/index.js +11 -10
- package/dist/esm/v2/components/or-input-box-v3/index.js +2 -1
- package/dist/esm/v2/components/or-input-v3/OrInput.stories3.d.ts +2 -0
- package/dist/esm/v2/components/or-input-v3/OrInput.vue.d.ts +6 -2
- package/dist/esm/v2/components/or-input-v3/index.js +14 -12
- package/dist/esm/v2/components/or-inputs/index.js +4 -3
- package/dist/esm/v2/components/or-label-v3/index.js +2 -1
- package/dist/esm/v2/components/or-link-v3/index.js +2 -1
- package/dist/esm/v2/components/or-list-of-inputs/index.js +3 -2
- package/dist/esm/v2/components/or-loader-v3/index.js +2 -1
- package/dist/esm/v2/components/or-menu-item-v3/index.js +3 -2
- package/dist/esm/v2/components/or-menu-v3/index.js +5 -4
- package/dist/esm/v2/components/or-modal-v3/index.js +8 -7
- package/dist/esm/v2/components/or-notification-v3/index.js +8 -7
- package/dist/esm/v2/components/or-overlay-v3/index.js +2 -1
- package/dist/esm/v2/components/or-popover-v3/index.js +4 -3
- package/dist/esm/v2/components/or-progress-v3/index.js +2 -1
- package/dist/esm/v2/components/or-radio-v3/index.js +3 -2
- package/dist/esm/v2/components/or-search-v3/index.js +14 -12
- package/dist/esm/v2/components/or-segmented-control-v3/index.js +2 -1
- package/dist/esm/v2/components/or-select-v3/OrSelect.vue.d.ts +14 -25
- package/dist/esm/v2/components/or-select-v3/index.d.ts +0 -1
- package/dist/esm/v2/components/or-select-v3/index.js +18 -16
- package/dist/esm/v2/components/or-select-v3/types.d.ts +1 -1
- package/dist/esm/v2/components/or-skeleton-v3/index.js +2 -1
- package/dist/esm/v2/components/or-sort-header-v3/index.js +3 -2
- package/dist/esm/v2/components/or-switch-v3/OrSwitch.vue.d.ts +6 -2
- package/dist/esm/v2/components/or-switch-v3/index.js +6 -4
- package/dist/esm/v2/components/or-tab-v3/index.js +2 -1
- package/dist/esm/v2/components/or-tabs-v3/index.js +9 -8
- package/dist/esm/v2/components/or-tag-v3/index.js +8 -7
- package/dist/esm/v2/components/or-text-v3/index.js +2 -1
- package/dist/esm/v2/components/or-textarea-v3/index.js +6 -5
- package/dist/esm/v2/components/or-textbox/index.js +2 -1
- package/dist/esm/v2/components/or-toast-v3/index.js +9 -8
- package/dist/esm/v2/components/or-tooltip-v3/index.js +5 -4
- package/dist/esm/v2/hooks/index.d.ts +1 -0
- package/dist/esm/v2/hooks/index.js +2 -0
- package/dist/esm/v2/hooks/useSlicedAttrs.d.ts +5 -0
- package/dist/esm/v2/index.js +52 -51
- package/dist/esm/v2/{types-8d58d7b5.js → types-1d68431e.js} +2 -2
- package/dist/esm/v2/useSlicedAttrs-91deb3b7.js +31 -0
- package/dist/esm/v3/{OrAvatar-53a4429d.js → OrAvatar-6c4ff382.js} +2 -1
- package/dist/esm/v3/{OrBottomSheet-62817aec.js → OrBottomSheet-11ab621e.js} +2 -1
- package/dist/esm/v3/{OrButton-0fa67a0d.js → OrButton-fd69e79e.js} +4 -12
- package/dist/esm/v3/{OrCard-fd92f7c8.js → OrCard-14c50722.js} +1 -0
- package/dist/esm/v3/{OrCardCollection-286d0f3f.js → OrCardCollection-45884ef2.js} +9 -8
- package/dist/esm/v3/{OrCardCollection-a5e326ef.js → OrCardCollection-989bb549.js} +1 -1
- package/dist/esm/v3/{OrCheckbox-3e139eac.js → OrCheckbox-cf989d15.js} +2 -1
- package/dist/esm/v3/{OrConfirm-f39bd784.js → OrConfirm-53788490.js} +1 -1
- package/dist/esm/v3/{OrConfirm-56ae1494.js → OrConfirm-8c4f080b.js} +3 -3
- package/dist/esm/v3/{OrError-ec8c709d.js → OrError-2ef63390.js} +1 -0
- package/dist/esm/v3/{OrErrorTag-98252eef.js → OrErrorTag-630205fc.js} +2 -1
- package/dist/esm/v3/{OrExpansionPanel-311e64cf.js → OrExpansionPanel-0151936a.js} +2 -1
- package/dist/esm/v3/{OrFab-c8ae6e01.js → OrFab-7c1780e5.js} +1 -1
- package/dist/esm/v3/{OrHint-74bb732d.js → OrHint-4f497295.js} +1 -0
- package/dist/esm/v3/{OrIcon-b195169c.js → OrIcon-085d2eb1.js} +1 -0
- package/dist/esm/v3/{OrIconButton-1eebcafc.js → OrIconButton-830faf78.js} +4 -3
- package/dist/esm/v3/{OrInlineInput-31026cd0.js → OrInlineInput-46fd890d.js} +5 -4
- package/dist/esm/v3/{OrInlineInputBox-8049f95a.js → OrInlineInputBox-226e29da.js} +1 -0
- package/dist/esm/v3/{OrInlineTextarea-b28c3d8c.js → OrInlineTextarea-837cb99a.js} +5 -4
- package/dist/esm/v3/{OrInput-41691fb3.js → OrInput-502b6d49.js} +20 -12
- package/dist/esm/v3/{OrInputBox-6d1b6059.js → OrInputBox-304481e7.js} +1 -0
- package/dist/esm/v3/{OrLabel-bdaec602.js → OrLabel-7989b72a.js} +1 -0
- package/dist/esm/v3/{OrLink-338db3ca.js → OrLink-b0d7d430.js} +1 -0
- package/dist/esm/v3/{OrListOfInputs-7a67440f.js → OrListOfInputs-7e8b4f20.js} +1 -1
- package/dist/esm/v3/{OrLoader-b3cf4231.js → OrLoader-ab6bb22c.js} +1 -0
- package/dist/esm/v3/{OrMenu-840038cd.js → OrMenu-60ff7732.js} +2 -1
- package/dist/esm/v3/{OrMenuItem-9da279f6.js → OrMenuItem-82b6700b.js} +2 -1
- package/dist/esm/v3/{OrModal-381554a6.js → OrModal-9724926c.js} +3 -2
- package/dist/esm/v3/{OrNotification-34d9c99b.js → OrNotification-bef23976.js} +3 -2
- package/dist/esm/v3/{OrOverlay-738a44d5.js → OrOverlay-4a300d88.js} +1 -0
- package/dist/esm/v3/{OrPopover-1075dd38.js → OrPopover-086817af.js} +2 -1
- package/dist/esm/v3/{OrProgress-407002e0.js → OrProgress-3710020b.js} +1 -0
- package/dist/esm/v3/{OrRadio-54b6d0de.js → OrRadio-aa2cbfa1.js} +2 -1
- package/dist/esm/v3/{OrSearch-7cb2c91c.js → OrSearch-b5f08401.js} +1 -0
- package/dist/esm/v3/{OrSearch-e5a2e93e.js → OrSearch-cb030d85.js} +3 -2
- package/dist/esm/v3/{OrSegmentedControl-171cad78.js → OrSegmentedControl-214e904c.js} +1 -0
- package/dist/esm/v3/{OrSelect-08bd0f60.js → OrSelect-24e213b6.js} +21 -30
- package/dist/esm/v3/{OrSkeletonText-3965ff71.js → OrSkeletonText-dd74b979.js} +1 -0
- package/dist/esm/v3/{OrSortHeader-fe1a9cf8.js → OrSortHeader-4aff1426.js} +2 -1
- package/dist/esm/v3/{OrSwitch-cca30aa0.js → OrSwitch-eb5bc7cc.js} +16 -8
- package/dist/esm/v3/{OrTab-c131cf60.js → OrTab-3fe86033.js} +1 -0
- package/dist/esm/v3/{OrTabs-d0ee6cef.js → OrTabs-5dcbf9ce.js} +6 -5
- package/dist/esm/v3/{OrTag-c0bbaa58.js → OrTag-35f948c1.js} +2 -1
- package/dist/esm/v3/{OrText-ecb46923.js → OrText-786b2aa4.js} +1 -0
- package/dist/esm/v3/{OrTextarea-bb9ef3f2.js → OrTextarea-c083501a.js} +5 -4
- package/dist/esm/v3/{OrTextbox-2f33e9c3.js → OrTextbox-929fc3a2.js} +1 -0
- package/dist/esm/v3/{OrTooltip-50d27b4f.js → OrTooltip-6f9147b6.js} +2 -1
- package/dist/esm/v3/components/index.d.ts +0 -1
- package/dist/esm/v3/components/index.js +50 -49
- package/dist/esm/v3/components/or-avatar-v3/index.js +3 -2
- package/dist/esm/v3/components/or-bottom-sheet-v3/index.js +3 -2
- package/dist/esm/v3/components/or-button-v3/OrButton.vue.d.ts +0 -11
- package/dist/esm/v3/components/or-button-v3/index.js +3 -2
- package/dist/esm/v3/components/or-card-collection/index.js +3 -2
- package/dist/esm/v3/components/or-card-collection-v3/index.js +19 -17
- package/dist/esm/v3/components/or-card-v3/index.js +2 -1
- package/dist/esm/v3/components/or-checkbox-v3/index.js +3 -2
- package/dist/esm/v3/components/or-confirm/index.js +3 -2
- package/dist/esm/v3/components/or-confirm-v3/index.js +16 -14
- package/dist/esm/v3/components/or-error-tag-v3/index.js +3 -2
- package/dist/esm/v3/components/or-error-v3/index.js +2 -1
- package/dist/esm/v3/components/or-expansion-panel-v3/index.js +3 -2
- package/dist/esm/v3/components/or-fab-v3/index.js +3 -2
- package/dist/esm/v3/components/or-hint-v3/index.js +2 -1
- package/dist/esm/v3/components/or-icon-button-v3/index.js +7 -6
- package/dist/esm/v3/components/or-icon-v3/index.js +2 -1
- package/dist/esm/v3/components/or-inline-input-box-v3/index.js +2 -1
- package/dist/esm/v3/components/or-inline-input-v3/index.js +11 -10
- package/dist/esm/v3/components/or-inline-textarea-v3/index.js +11 -10
- package/dist/esm/v3/components/or-input-box-v3/index.js +2 -1
- package/dist/esm/v3/components/or-input-v3/OrInput.stories3.d.ts +2 -0
- package/dist/esm/v3/components/or-input-v3/OrInput.vue.d.ts +6 -2
- package/dist/esm/v3/components/or-input-v3/index.js +14 -12
- package/dist/esm/v3/components/or-inputs/index.js +2 -1
- package/dist/esm/v3/components/or-label-v3/index.js +2 -1
- package/dist/esm/v3/components/or-link-v3/index.js +2 -1
- package/dist/esm/v3/components/or-list-of-inputs/index.js +3 -2
- package/dist/esm/v3/components/or-loader-v3/index.js +2 -1
- package/dist/esm/v3/components/or-menu-item-v3/index.js +3 -2
- package/dist/esm/v3/components/or-menu-v3/index.js +5 -4
- package/dist/esm/v3/components/or-modal-v3/index.js +8 -7
- package/dist/esm/v3/components/or-notification-v3/index.js +8 -7
- package/dist/esm/v3/components/or-overlay-v3/index.js +2 -1
- package/dist/esm/v3/components/or-popover-v3/index.js +4 -3
- package/dist/esm/v3/components/or-progress-v3/index.js +2 -1
- package/dist/esm/v3/components/or-radio-v3/index.js +3 -2
- package/dist/esm/v3/components/or-search-v3/index.js +14 -12
- package/dist/esm/v3/components/or-segmented-control-v3/index.js +2 -1
- package/dist/esm/v3/components/or-select-v3/OrSelect.vue.d.ts +14 -25
- package/dist/esm/v3/components/or-select-v3/index.d.ts +0 -1
- package/dist/esm/v3/components/or-select-v3/index.js +18 -16
- package/dist/esm/v3/components/or-select-v3/types.d.ts +1 -1
- package/dist/esm/v3/components/or-skeleton-v3/index.js +2 -1
- package/dist/esm/v3/components/or-sort-header-v3/index.js +3 -2
- package/dist/esm/v3/components/or-switch-v3/OrSwitch.vue.d.ts +6 -2
- package/dist/esm/v3/components/or-switch-v3/index.js +6 -4
- package/dist/esm/v3/components/or-tab-v3/index.js +2 -1
- package/dist/esm/v3/components/or-tabs-v3/index.js +9 -8
- package/dist/esm/v3/components/or-tag-v3/index.js +8 -7
- package/dist/esm/v3/components/or-text-v3/index.js +2 -1
- package/dist/esm/v3/components/or-textarea-v3/index.js +6 -5
- package/dist/esm/v3/components/or-textbox/index.js +2 -1
- package/dist/esm/v3/components/or-toast-v3/index.js +9 -8
- package/dist/esm/v3/components/or-tooltip-v3/index.js +5 -4
- package/dist/esm/v3/hooks/index.d.ts +1 -0
- package/dist/esm/v3/hooks/index.js +2 -0
- package/dist/esm/v3/hooks/useSlicedAttrs.d.ts +5 -0
- package/dist/esm/v3/index.js +50 -49
- package/dist/esm/v3/{types-8a338300.js → types-a2cbb17e.js} +2 -2
- package/dist/esm/v3/useSlicedAttrs-91deb3b7.js +31 -0
- package/package.json +1 -1
- package/src/components/index.ts +0 -1
- package/src/components/or-button-v3/OrButton.stories3.ts +0 -4
- package/src/components/or-button-v3/OrButton.vue +0 -6
- package/src/components/or-button-v3/styles.ts +1 -9
- package/src/components/or-input-v3/OrInput.stories3.ts +53 -0
- package/src/components/or-input-v3/OrInput.vue +13 -5
- package/src/components/or-select-v3/OrSelect.vue +14 -26
- package/src/components/or-select-v3/index.ts +0 -1
- package/src/components/or-select-v3/types.ts +1 -1
- package/src/components/or-switch-v3/OrSwitch.vue +13 -4
- package/src/hooks/index.ts +1 -0
- package/src/hooks/useSlicedAttrs.ts +31 -0
- package/dist/bundled/v2/OrPagination-379c10b8.js +0 -308
- package/dist/bundled/v2/components/or-pagination-v3/OrPagination.stories3.d.ts +0 -12
- package/dist/bundled/v2/components/or-pagination-v3/OrPagination.vue.d.ts +0 -112
- package/dist/bundled/v2/components/or-pagination-v3/index.d.ts +0 -2
- package/dist/bundled/v2/components/or-pagination-v3/index.js +0 -20
- package/dist/bundled/v2/components/or-pagination-v3/styles.d.ts +0 -4
- package/dist/bundled/v2/components/or-pagination-v3/types.d.ts +0 -4
- package/dist/bundled/v3/OrPagination.vue_vue_type_script_lang-c96d7cd7.js +0 -187
- package/dist/bundled/v3/components/or-pagination-v3/OrPagination.stories3.d.ts +0 -12
- package/dist/bundled/v3/components/or-pagination-v3/OrPagination.vue.d.ts +0 -112
- package/dist/bundled/v3/components/or-pagination-v3/index.d.ts +0 -2
- package/dist/bundled/v3/components/or-pagination-v3/index.js +0 -22
- package/dist/bundled/v3/components/or-pagination-v3/styles.d.ts +0 -4
- package/dist/bundled/v3/components/or-pagination-v3/types.d.ts +0 -4
- package/dist/esm/v2/OrPagination-c0dbec6a.js +0 -308
- package/dist/esm/v2/components/or-pagination-v3/OrPagination.stories3.d.ts +0 -12
- package/dist/esm/v2/components/or-pagination-v3/OrPagination.vue.d.ts +0 -112
- package/dist/esm/v2/components/or-pagination-v3/index.d.ts +0 -2
- package/dist/esm/v2/components/or-pagination-v3/index.js +0 -18
- package/dist/esm/v2/components/or-pagination-v3/styles.d.ts +0 -4
- package/dist/esm/v2/components/or-pagination-v3/types.d.ts +0 -4
- package/dist/esm/v3/OrPagination-a703307d.js +0 -269
- package/dist/esm/v3/components/or-pagination-v3/OrPagination.stories3.d.ts +0 -12
- package/dist/esm/v3/components/or-pagination-v3/OrPagination.vue.d.ts +0 -112
- package/dist/esm/v3/components/or-pagination-v3/index.d.ts +0 -2
- package/dist/esm/v3/components/or-pagination-v3/index.js +0 -17
- package/dist/esm/v3/components/or-pagination-v3/styles.d.ts +0 -4
- package/dist/esm/v3/components/or-pagination-v3/types.d.ts +0 -4
- package/src/components/or-pagination-v3/OrPagination.docs.mdx +0 -7
- package/src/components/or-pagination-v3/OrPagination.stories3.ts +0 -87
- package/src/components/or-pagination-v3/OrPagination.vue +0 -270
- package/src/components/or-pagination-v3/index.ts +0 -2
- package/src/components/or-pagination-v3/styles.ts +0 -38
- package/src/components/or-pagination-v3/types.ts +0 -4
|
@@ -1,269 +0,0 @@
|
|
|
1
|
-
import { defineComponent, ref, computed } from 'vue-demi';
|
|
2
|
-
import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
|
|
3
|
-
import '@vueuse/core';
|
|
4
|
-
import { s as script$1 } from './OrButton-0fa67a0d.js';
|
|
5
|
-
import { s as script$2 } from './OrIcon-b195169c.js';
|
|
6
|
-
import { s as script$4 } from './OrMenuItem-9da279f6.js';
|
|
7
|
-
import { s as script$3 } from './OrMenu-840038cd.js';
|
|
8
|
-
import './OrPopover-1075dd38.js';
|
|
9
|
-
import { resolveComponent, openBlock, createElementBlock, mergeProps, createElementVNode, normalizeClass, createVNode, withModifiers, withCtx, Fragment, renderList, createBlock, createTextVNode, toDisplayString } from 'vue';
|
|
10
|
-
|
|
11
|
-
const PaginationRoot = [
|
|
12
|
-
// Layout
|
|
13
|
-
'layout-row',
|
|
14
|
-
// Spacing
|
|
15
|
-
'gap-xl',
|
|
16
|
-
// Typography
|
|
17
|
-
'typography-caption-regular',
|
|
18
|
-
// Theme
|
|
19
|
-
'theme-foreground-outline', 'dark:theme-foreground-outline-dark'];
|
|
20
|
-
const PaginationOffsetControl = [
|
|
21
|
-
// Layout
|
|
22
|
-
'layout-row',
|
|
23
|
-
// Spacing
|
|
24
|
-
'gap-md'];
|
|
25
|
-
const PaginationLimitControl = [
|
|
26
|
-
// Layout
|
|
27
|
-
'layout-row',
|
|
28
|
-
// Spacing
|
|
29
|
-
'gap-sm'];
|
|
30
|
-
const PaginationItem = [
|
|
31
|
-
// Typography
|
|
32
|
-
'typography-caption-regular',
|
|
33
|
-
// Typography (activated)
|
|
34
|
-
'activated:typography-caption-bold'];
|
|
35
|
-
|
|
36
|
-
var script = defineComponent({
|
|
37
|
-
name: 'OrPagination',
|
|
38
|
-
components: {
|
|
39
|
-
OrButton: script$1,
|
|
40
|
-
OrIcon: script$2,
|
|
41
|
-
OrMenu: script$3,
|
|
42
|
-
OrMenuItem: script$4
|
|
43
|
-
},
|
|
44
|
-
inheritAttrs: false,
|
|
45
|
-
props: {
|
|
46
|
-
modelValue: {
|
|
47
|
-
type: Object,
|
|
48
|
-
default: undefined
|
|
49
|
-
},
|
|
50
|
-
value: {
|
|
51
|
-
type: Object,
|
|
52
|
-
default: undefined
|
|
53
|
-
},
|
|
54
|
-
length: {
|
|
55
|
-
type: Number,
|
|
56
|
-
required: true
|
|
57
|
-
},
|
|
58
|
-
pageSizeOptions: {
|
|
59
|
-
type: Array,
|
|
60
|
-
default: () => [50, 20, 10, 5]
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
emits: ['update:modelValue', 'input'],
|
|
64
|
-
expose: ['root'],
|
|
65
|
-
setup(props, context) {
|
|
66
|
-
// Refs
|
|
67
|
-
const root = ref();
|
|
68
|
-
const limitButton = ref();
|
|
69
|
-
const limitButtonRoot = computed(() => {
|
|
70
|
-
var _a;
|
|
71
|
-
return (_a = limitButton.value) === null || _a === void 0 ? void 0 : _a.root;
|
|
72
|
-
});
|
|
73
|
-
const limitMenu = ref();
|
|
74
|
-
const limitMenuRoot = computed(() => {
|
|
75
|
-
var _a;
|
|
76
|
-
return (_a = limitMenu.value) === null || _a === void 0 ? void 0 : _a.root;
|
|
77
|
-
});
|
|
78
|
-
// Styles
|
|
79
|
-
const classAttribute = useClassAttribute();
|
|
80
|
-
const rootStyles = computed(() => ['or-pagination', ...PaginationRoot, classAttribute.value]);
|
|
81
|
-
const offsetControlStyles = computed(() => [...PaginationOffsetControl]);
|
|
82
|
-
const limitControlStyles = computed(() => [...PaginationLimitControl]);
|
|
83
|
-
const itemStyles = computed(() => [...PaginationItem]);
|
|
84
|
-
// State
|
|
85
|
-
const proxyModelValue = computed({
|
|
86
|
-
get: () => {
|
|
87
|
-
var _a;
|
|
88
|
-
return (_a = props.modelValue) !== null && _a !== void 0 ? _a : props.value; // TODO: Remove Vue 2 fallback
|
|
89
|
-
},
|
|
90
|
-
|
|
91
|
-
set: value => {
|
|
92
|
-
context.emit('input', value);
|
|
93
|
-
context.emit('update:modelValue', value);
|
|
94
|
-
}
|
|
95
|
-
});
|
|
96
|
-
const currentLimit = computed({
|
|
97
|
-
get: () => {
|
|
98
|
-
var _a, _b;
|
|
99
|
-
return (_b = (_a = proxyModelValue.value) === null || _a === void 0 ? void 0 : _a.limit) !== null && _b !== void 0 ? _b : props.pageSizeOptions[0];
|
|
100
|
-
},
|
|
101
|
-
set: value => {
|
|
102
|
-
proxyModelValue.value = {
|
|
103
|
-
limit: value,
|
|
104
|
-
offset: 0
|
|
105
|
-
};
|
|
106
|
-
}
|
|
107
|
-
});
|
|
108
|
-
const currentOffset = computed({
|
|
109
|
-
get: () => {
|
|
110
|
-
var _a, _b;
|
|
111
|
-
return (_b = (_a = proxyModelValue.value) === null || _a === void 0 ? void 0 : _a.offset) !== null && _b !== void 0 ? _b : 0;
|
|
112
|
-
},
|
|
113
|
-
set: value => {
|
|
114
|
-
proxyModelValue.value = {
|
|
115
|
-
limit: currentLimit.value,
|
|
116
|
-
offset: value
|
|
117
|
-
};
|
|
118
|
-
}
|
|
119
|
-
});
|
|
120
|
-
const currentPage = computed({
|
|
121
|
-
get: () => {
|
|
122
|
-
return Math.floor(currentOffset.value / currentLimit.value) + 1;
|
|
123
|
-
},
|
|
124
|
-
set: value => {
|
|
125
|
-
currentOffset.value = (value - 1) * currentLimit.value;
|
|
126
|
-
}
|
|
127
|
-
});
|
|
128
|
-
const firstPage = computed(() => {
|
|
129
|
-
return 1;
|
|
130
|
-
});
|
|
131
|
-
const lastPage = computed(() => {
|
|
132
|
-
return Math.ceil(props.length / currentLimit.value);
|
|
133
|
-
});
|
|
134
|
-
const buttonGroup = computed(() => {
|
|
135
|
-
return Array.from({
|
|
136
|
-
length: lastPage.value
|
|
137
|
-
}, (_, index) => index + 1).map(page => {
|
|
138
|
-
switch (true) {
|
|
139
|
-
case page > firstPage.value && page < currentPage.value - 1:
|
|
140
|
-
case page > currentPage.value + 1 && page < lastPage.value:
|
|
141
|
-
return '…';
|
|
142
|
-
default:
|
|
143
|
-
return page;
|
|
144
|
-
}
|
|
145
|
-
}).reduce((accumulator, page) => {
|
|
146
|
-
if (accumulator[accumulator.length - 1] === page) {
|
|
147
|
-
return accumulator;
|
|
148
|
-
}
|
|
149
|
-
return [...accumulator, page];
|
|
150
|
-
}, []);
|
|
151
|
-
});
|
|
152
|
-
// Functions
|
|
153
|
-
function toPreviousPage() {
|
|
154
|
-
currentPage.value = currentPage.value - 1;
|
|
155
|
-
}
|
|
156
|
-
function toNextPage() {
|
|
157
|
-
currentPage.value = currentPage.value + 1;
|
|
158
|
-
}
|
|
159
|
-
function toPage(page) {
|
|
160
|
-
currentPage.value = page;
|
|
161
|
-
}
|
|
162
|
-
return {
|
|
163
|
-
root,
|
|
164
|
-
limitButton,
|
|
165
|
-
limitButtonRoot,
|
|
166
|
-
limitMenu,
|
|
167
|
-
limitMenuRoot,
|
|
168
|
-
rootStyles,
|
|
169
|
-
offsetControlStyles,
|
|
170
|
-
limitControlStyles,
|
|
171
|
-
itemStyles,
|
|
172
|
-
proxyModelValue,
|
|
173
|
-
currentLimit,
|
|
174
|
-
currentOffset,
|
|
175
|
-
currentPage,
|
|
176
|
-
firstPage,
|
|
177
|
-
lastPage,
|
|
178
|
-
buttonGroup,
|
|
179
|
-
toPreviousPage,
|
|
180
|
-
toNextPage,
|
|
181
|
-
toPage
|
|
182
|
-
};
|
|
183
|
-
}
|
|
184
|
-
});
|
|
185
|
-
|
|
186
|
-
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
187
|
-
const _component_OrIcon = resolveComponent("OrIcon");
|
|
188
|
-
const _component_OrButton = resolveComponent("OrButton");
|
|
189
|
-
const _component_OrMenuItem = resolveComponent("OrMenuItem");
|
|
190
|
-
const _component_OrMenu = resolveComponent("OrMenu");
|
|
191
|
-
return openBlock(), createElementBlock("div", mergeProps({
|
|
192
|
-
ref: "root"
|
|
193
|
-
}, _ctx.$attrs, {
|
|
194
|
-
class: _ctx.rootStyles
|
|
195
|
-
}), [createElementVNode("div", {
|
|
196
|
-
class: normalizeClass(_ctx.offsetControlStyles)
|
|
197
|
-
}, [createVNode(_component_OrButton, {
|
|
198
|
-
class: normalizeClass(_ctx.itemStyles),
|
|
199
|
-
variant: 'link',
|
|
200
|
-
color: 'inherit',
|
|
201
|
-
disabled: _ctx.currentPage === _ctx.firstPage,
|
|
202
|
-
onClick: _cache[0] || (_cache[0] = withModifiers($event => _ctx.toPreviousPage(), ["stop"]))
|
|
203
|
-
}, {
|
|
204
|
-
default: withCtx(() => [createVNode(_component_OrIcon, {
|
|
205
|
-
icon: 'keyboard_arrow_left'
|
|
206
|
-
})]),
|
|
207
|
-
_: 1 /* STABLE */
|
|
208
|
-
}, 8 /* PROPS */, ["class", "disabled"]), (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.buttonGroup, (page, index) => {
|
|
209
|
-
return openBlock(), createBlock(_component_OrButton, {
|
|
210
|
-
key: index,
|
|
211
|
-
class: normalizeClass(_ctx.itemStyles),
|
|
212
|
-
variant: 'link',
|
|
213
|
-
color: 'inherit',
|
|
214
|
-
activated: _ctx.currentPage === page,
|
|
215
|
-
onClick: withModifiers($event => typeof page === 'number' && _ctx.toPage(page), ["stop"])
|
|
216
|
-
}, {
|
|
217
|
-
default: withCtx(() => [createTextVNode(toDisplayString(page), 1 /* TEXT */)]),
|
|
218
|
-
|
|
219
|
-
_: 2 /* DYNAMIC */
|
|
220
|
-
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["class", "activated", "onClick"]);
|
|
221
|
-
}), 128 /* KEYED_FRAGMENT */)), createVNode(_component_OrButton, {
|
|
222
|
-
class: normalizeClass(_ctx.itemStyles),
|
|
223
|
-
variant: 'link',
|
|
224
|
-
color: 'inherit',
|
|
225
|
-
disabled: _ctx.currentPage === _ctx.lastPage,
|
|
226
|
-
onClick: _cache[1] || (_cache[1] = withModifiers($event => _ctx.toNextPage(), ["stop"]))
|
|
227
|
-
}, {
|
|
228
|
-
default: withCtx(() => [createVNode(_component_OrIcon, {
|
|
229
|
-
icon: 'keyboard_arrow_right'
|
|
230
|
-
})]),
|
|
231
|
-
_: 1 /* STABLE */
|
|
232
|
-
}, 8 /* PROPS */, ["class", "disabled"])], 2 /* CLASS */), createElementVNode("div", {
|
|
233
|
-
class: normalizeClass(_ctx.limitControlStyles)
|
|
234
|
-
}, [createTextVNode(" Per page: "), createVNode(_component_OrButton, {
|
|
235
|
-
ref: "limitButton",
|
|
236
|
-
class: normalizeClass(_ctx.itemStyles),
|
|
237
|
-
variant: 'link',
|
|
238
|
-
color: 'inherit',
|
|
239
|
-
activated: true,
|
|
240
|
-
onClick: _cache[2] || (_cache[2] = withModifiers($event => _ctx.limitMenu.open(), ["stop"]))
|
|
241
|
-
}, {
|
|
242
|
-
default: withCtx(() => [createTextVNode(toDisplayString(_ctx.currentLimit) + " ", 1 /* TEXT */), createVNode(_component_OrIcon, {
|
|
243
|
-
icon: 'arrow_drop_down'
|
|
244
|
-
})]),
|
|
245
|
-
_: 1 /* STABLE */
|
|
246
|
-
}, 8 /* PROPS */, ["class"]), createVNode(_component_OrMenu, {
|
|
247
|
-
ref: "limitMenu",
|
|
248
|
-
trigger: _ctx.limitButtonRoot,
|
|
249
|
-
placement: 'top'
|
|
250
|
-
}, {
|
|
251
|
-
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.pageSizeOptions, pageSize => {
|
|
252
|
-
return openBlock(), createBlock(_component_OrMenuItem, {
|
|
253
|
-
key: pageSize,
|
|
254
|
-
onClick: withModifiers($event => _ctx.currentLimit = pageSize, ["stop"])
|
|
255
|
-
}, {
|
|
256
|
-
default: withCtx(() => [createTextVNode(toDisplayString(pageSize), 1 /* TEXT */)]),
|
|
257
|
-
|
|
258
|
-
_: 2 /* DYNAMIC */
|
|
259
|
-
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["onClick"]);
|
|
260
|
-
}), 128 /* KEYED_FRAGMENT */))]),
|
|
261
|
-
|
|
262
|
-
_: 1 /* STABLE */
|
|
263
|
-
}, 8 /* PROPS */, ["trigger"])], 2 /* CLASS */)], 16 /* FULL_PROPS */);
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
script.render = render;
|
|
267
|
-
script.__file = "src/components/or-pagination-v3/OrPagination.vue";
|
|
268
|
-
|
|
269
|
-
export { script as s };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryFn } from '@storybook/vue3';
|
|
2
|
-
declare const _default: Meta<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
3
|
-
[x: string]: ((...args: any[]) => any) | null;
|
|
4
|
-
} | string[], {} & {}, {
|
|
5
|
-
[x: number]: string;
|
|
6
|
-
} | {}, true>)>;
|
|
7
|
-
export default _default;
|
|
8
|
-
export declare const Default: StoryFn<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
9
|
-
[x: string]: ((...args: any[]) => any) | null;
|
|
10
|
-
} | string[], {} & {}, {
|
|
11
|
-
[x: number]: string;
|
|
12
|
-
} | {}, true>)>;
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import { PropType } from 'vue-demi';
|
|
2
|
-
import { PaginationModel } from './types';
|
|
3
|
-
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
4
|
-
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
5
|
-
limitButton: import("@vue/composition-api").Ref<import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
6
|
-
[x: string]: ((...args: any[]) => any) | null;
|
|
7
|
-
} | string[], {} & {}, {
|
|
8
|
-
[x: number]: string;
|
|
9
|
-
} | {}, true> | undefined>;
|
|
10
|
-
limitButtonRoot: import("@vue/composition-api").ComputedRef<undefined>;
|
|
11
|
-
limitMenu: import("@vue/composition-api").Ref<import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
12
|
-
[x: string]: ((...args: any[]) => any) | null;
|
|
13
|
-
} | string[], {} & {}, {
|
|
14
|
-
[x: number]: string;
|
|
15
|
-
} | {}, true> | undefined>;
|
|
16
|
-
limitMenuRoot: import("@vue/composition-api").ComputedRef<undefined>;
|
|
17
|
-
rootStyles: import("@vue/composition-api").ComputedRef<(string | undefined)[]>;
|
|
18
|
-
offsetControlStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
19
|
-
limitControlStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
20
|
-
itemStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
21
|
-
proxyModelValue: import("@vue/composition-api").WritableComputedRef<PaginationModel>;
|
|
22
|
-
currentLimit: import("@vue/composition-api").WritableComputedRef<number>;
|
|
23
|
-
currentOffset: import("@vue/composition-api").WritableComputedRef<number>;
|
|
24
|
-
currentPage: import("@vue/composition-api").WritableComputedRef<number>;
|
|
25
|
-
firstPage: import("@vue/composition-api").ComputedRef<number>;
|
|
26
|
-
lastPage: import("@vue/composition-api").ComputedRef<number>;
|
|
27
|
-
buttonGroup: import("@vue/composition-api").ComputedRef<(string | number)[]>;
|
|
28
|
-
toPreviousPage: () => void;
|
|
29
|
-
toNextPage: () => void;
|
|
30
|
-
toPage: (page: number) => void;
|
|
31
|
-
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
32
|
-
modelValue: {
|
|
33
|
-
type: PropType<PaginationModel>;
|
|
34
|
-
default: undefined;
|
|
35
|
-
};
|
|
36
|
-
value: {
|
|
37
|
-
type: PropType<PaginationModel>;
|
|
38
|
-
default: undefined;
|
|
39
|
-
};
|
|
40
|
-
length: {
|
|
41
|
-
type: NumberConstructor;
|
|
42
|
-
required: true;
|
|
43
|
-
};
|
|
44
|
-
pageSizeOptions: {
|
|
45
|
-
type: PropType<number[]>;
|
|
46
|
-
default: () => number[];
|
|
47
|
-
};
|
|
48
|
-
}, import("@vue/composition-api").ExtractPropTypes<{
|
|
49
|
-
modelValue: {
|
|
50
|
-
type: PropType<PaginationModel>;
|
|
51
|
-
default: undefined;
|
|
52
|
-
};
|
|
53
|
-
value: {
|
|
54
|
-
type: PropType<PaginationModel>;
|
|
55
|
-
default: undefined;
|
|
56
|
-
};
|
|
57
|
-
length: {
|
|
58
|
-
type: NumberConstructor;
|
|
59
|
-
required: true;
|
|
60
|
-
};
|
|
61
|
-
pageSizeOptions: {
|
|
62
|
-
type: PropType<number[]>;
|
|
63
|
-
default: () => number[];
|
|
64
|
-
};
|
|
65
|
-
}>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
66
|
-
length: number;
|
|
67
|
-
modelValue: PaginationModel;
|
|
68
|
-
value: PaginationModel;
|
|
69
|
-
pageSizeOptions: number[];
|
|
70
|
-
} & {} & {
|
|
71
|
-
[x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
72
|
-
}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
73
|
-
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
74
|
-
limitButton: import("@vue/composition-api").Ref<import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
75
|
-
[x: string]: ((...args: any[]) => any) | null;
|
|
76
|
-
} | string[], {} & {}, {
|
|
77
|
-
[x: number]: string;
|
|
78
|
-
} | {}, true> | undefined>;
|
|
79
|
-
limitButtonRoot: import("@vue/composition-api").ComputedRef<undefined>;
|
|
80
|
-
limitMenu: import("@vue/composition-api").Ref<import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
81
|
-
[x: string]: ((...args: any[]) => any) | null;
|
|
82
|
-
} | string[], {} & {}, {
|
|
83
|
-
[x: number]: string;
|
|
84
|
-
} | {}, true> | undefined>;
|
|
85
|
-
limitMenuRoot: import("@vue/composition-api").ComputedRef<undefined>;
|
|
86
|
-
rootStyles: import("@vue/composition-api").ComputedRef<(string | undefined)[]>;
|
|
87
|
-
offsetControlStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
88
|
-
limitControlStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
89
|
-
itemStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
90
|
-
proxyModelValue: import("@vue/composition-api").WritableComputedRef<PaginationModel>;
|
|
91
|
-
currentLimit: import("@vue/composition-api").WritableComputedRef<number>;
|
|
92
|
-
currentOffset: import("@vue/composition-api").WritableComputedRef<number>;
|
|
93
|
-
currentPage: import("@vue/composition-api").WritableComputedRef<number>;
|
|
94
|
-
firstPage: import("@vue/composition-api").ComputedRef<number>;
|
|
95
|
-
lastPage: import("@vue/composition-api").ComputedRef<number>;
|
|
96
|
-
buttonGroup: import("@vue/composition-api").ComputedRef<(string | number)[]>;
|
|
97
|
-
toPreviousPage: () => void;
|
|
98
|
-
toNextPage: () => void;
|
|
99
|
-
toPage: (page: number) => void;
|
|
100
|
-
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
|
|
101
|
-
length: number;
|
|
102
|
-
modelValue: PaginationModel;
|
|
103
|
-
value: PaginationModel;
|
|
104
|
-
pageSizeOptions: number[];
|
|
105
|
-
} & {} & {
|
|
106
|
-
[x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
107
|
-
}, {
|
|
108
|
-
modelValue: PaginationModel;
|
|
109
|
-
value: PaginationModel;
|
|
110
|
-
pageSizeOptions: number[];
|
|
111
|
-
}, true>);
|
|
112
|
-
export default _default;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export { s as OrPaginationV3 } from '../../OrPagination-a703307d.js';
|
|
2
|
-
import 'vue-demi';
|
|
3
|
-
import '../../useClassAttribute-47fdb016.js';
|
|
4
|
-
import '@vueuse/core';
|
|
5
|
-
import '../../OrButton-0fa67a0d.js';
|
|
6
|
-
import '../../OrLoader-b3cf4231.js';
|
|
7
|
-
import 'vue';
|
|
8
|
-
import '../../OrIcon-b195169c.js';
|
|
9
|
-
import '../../OrMenuItem-9da279f6.js';
|
|
10
|
-
import '../../OrMenu-840038cd.js';
|
|
11
|
-
import '../../OrPopover-1075dd38.js';
|
|
12
|
-
import '@floating-ui/dom';
|
|
13
|
-
import '../../useElevation-31bfe1f6.js';
|
|
14
|
-
import '../../useResponsive-a02e95b7.js';
|
|
15
|
-
import '../../OrBottomSheet-62817aec.js';
|
|
16
|
-
import '../../OrOverlay-738a44d5.js';
|
|
17
|
-
import '../../OrTeleport.vue3-8099178c.js';
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { action } from '@storybook/addon-actions';
|
|
2
|
-
import { Meta, StoryFn } from '@storybook/vue3';
|
|
3
|
-
import { ref, watch } from 'vue-demi';
|
|
4
|
-
import OrPaginationDocs from './OrPagination.docs.mdx';
|
|
5
|
-
import OrPagination from './OrPagination.vue';
|
|
6
|
-
import { PaginationModel } from './types';
|
|
7
|
-
|
|
8
|
-
export default {
|
|
9
|
-
title: 'Components/Pagination',
|
|
10
|
-
component: OrPagination,
|
|
11
|
-
|
|
12
|
-
argTypes: {
|
|
13
|
-
// Props
|
|
14
|
-
modelValue: {
|
|
15
|
-
control: { type: 'text' },
|
|
16
|
-
},
|
|
17
|
-
|
|
18
|
-
value: { // TODO: Remove Vue 2 fallback
|
|
19
|
-
table: { disable: true },
|
|
20
|
-
},
|
|
21
|
-
|
|
22
|
-
length: {
|
|
23
|
-
control: { type: 'number' },
|
|
24
|
-
},
|
|
25
|
-
|
|
26
|
-
// Events
|
|
27
|
-
'update:modelValue': {
|
|
28
|
-
table: { disable: true },
|
|
29
|
-
},
|
|
30
|
-
|
|
31
|
-
input: {
|
|
32
|
-
table: { disable: true },
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
|
-
|
|
36
|
-
parameters: {
|
|
37
|
-
layout: 'centered',
|
|
38
|
-
|
|
39
|
-
docs: {
|
|
40
|
-
page: OrPaginationDocs,
|
|
41
|
-
},
|
|
42
|
-
|
|
43
|
-
design: {
|
|
44
|
-
type: 'figma',
|
|
45
|
-
url: 'https://www.figma.com/file/o7DdkaznUW2PtX4wiSuhhQ/Core?node-id=4063%3A35218&t=axoGLEPrByClXTTU-4',
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
|
-
} as Meta<typeof OrPagination>;
|
|
49
|
-
|
|
50
|
-
const Template: StoryFn<typeof OrPagination> = (args) => ({
|
|
51
|
-
components: {
|
|
52
|
-
OrPagination,
|
|
53
|
-
},
|
|
54
|
-
|
|
55
|
-
setup() {
|
|
56
|
-
// State
|
|
57
|
-
const model = ref<PaginationModel>();
|
|
58
|
-
|
|
59
|
-
// Effects
|
|
60
|
-
watch(model, (value) => {
|
|
61
|
-
console.debug(value);
|
|
62
|
-
});
|
|
63
|
-
|
|
64
|
-
return {
|
|
65
|
-
args,
|
|
66
|
-
model,
|
|
67
|
-
onUpdateModelValue: action('update:modelValue'),
|
|
68
|
-
onInput: action('input'),
|
|
69
|
-
};
|
|
70
|
-
},
|
|
71
|
-
|
|
72
|
-
template: `
|
|
73
|
-
<OrPagination
|
|
74
|
-
v-model="model"
|
|
75
|
-
v-bind="args"
|
|
76
|
-
@update:modelValue="onUpdateModelValue"
|
|
77
|
-
@input="onInput"
|
|
78
|
-
/>
|
|
79
|
-
`,
|
|
80
|
-
});
|
|
81
|
-
|
|
82
|
-
export const Default = Template.bind({});
|
|
83
|
-
|
|
84
|
-
Default.args = {
|
|
85
|
-
// Props
|
|
86
|
-
length: 555,
|
|
87
|
-
};
|