@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,270 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div
|
|
3
|
-
ref="root"
|
|
4
|
-
v-bind="$attrs"
|
|
5
|
-
:class="rootStyles"
|
|
6
|
-
>
|
|
7
|
-
<div :class="offsetControlStyles">
|
|
8
|
-
<OrButton
|
|
9
|
-
:class="itemStyles"
|
|
10
|
-
:variant="'link'"
|
|
11
|
-
:color="'inherit'"
|
|
12
|
-
:disabled="currentPage === firstPage"
|
|
13
|
-
@click.stop="toPreviousPage()"
|
|
14
|
-
>
|
|
15
|
-
<OrIcon :icon="'keyboard_arrow_left'" />
|
|
16
|
-
</OrButton>
|
|
17
|
-
|
|
18
|
-
<OrButton
|
|
19
|
-
v-for="(page, index) in buttonGroup"
|
|
20
|
-
:key="index"
|
|
21
|
-
:class="itemStyles"
|
|
22
|
-
:variant="'link'"
|
|
23
|
-
:color="'inherit'"
|
|
24
|
-
:activated="currentPage === page"
|
|
25
|
-
@click.stop="typeof page === 'number' && toPage(page)"
|
|
26
|
-
>
|
|
27
|
-
{{ page }}
|
|
28
|
-
</OrButton>
|
|
29
|
-
|
|
30
|
-
<OrButton
|
|
31
|
-
:class="itemStyles"
|
|
32
|
-
:variant="'link'"
|
|
33
|
-
:color="'inherit'"
|
|
34
|
-
:disabled="currentPage === lastPage"
|
|
35
|
-
@click.stop="toNextPage()"
|
|
36
|
-
>
|
|
37
|
-
<OrIcon :icon="'keyboard_arrow_right'" />
|
|
38
|
-
</OrButton>
|
|
39
|
-
</div>
|
|
40
|
-
|
|
41
|
-
<div :class="limitControlStyles">
|
|
42
|
-
Per page:
|
|
43
|
-
|
|
44
|
-
<OrButton
|
|
45
|
-
ref="limitButton"
|
|
46
|
-
:class="itemStyles"
|
|
47
|
-
:variant="'link'"
|
|
48
|
-
:color="'inherit'"
|
|
49
|
-
:activated="true"
|
|
50
|
-
@click.stop="limitMenu.open()"
|
|
51
|
-
>
|
|
52
|
-
{{ currentLimit }} <OrIcon :icon="'arrow_drop_down'" />
|
|
53
|
-
</OrButton>
|
|
54
|
-
|
|
55
|
-
<OrMenu
|
|
56
|
-
ref="limitMenu"
|
|
57
|
-
:trigger="limitButtonRoot"
|
|
58
|
-
:placement="'top'"
|
|
59
|
-
>
|
|
60
|
-
<OrMenuItem
|
|
61
|
-
v-for="pageSize in pageSizeOptions"
|
|
62
|
-
:key="pageSize"
|
|
63
|
-
@click.stop="currentLimit = pageSize"
|
|
64
|
-
>
|
|
65
|
-
{{ pageSize }}
|
|
66
|
-
</OrMenuItem>
|
|
67
|
-
</OrMenu>
|
|
68
|
-
</div>
|
|
69
|
-
</div>
|
|
70
|
-
</template>
|
|
71
|
-
|
|
72
|
-
<script lang="ts">
|
|
73
|
-
import { computed, defineComponent, PropType, ref } from 'vue-demi';
|
|
74
|
-
import { useClassAttribute } from '../../hooks';
|
|
75
|
-
import { OrButtonV3 as OrButton } from '../or-button-v3';
|
|
76
|
-
import { OrIconV3 as OrIcon } from '../or-icon-v3';
|
|
77
|
-
import { OrMenuItemV3 as OrMenuItem } from '../or-menu-item-v3';
|
|
78
|
-
import { OrMenuV3 as OrMenu } from '../or-menu-v3';
|
|
79
|
-
import { PaginationItem, PaginationLimitControl, PaginationOffsetControl, PaginationRoot } from './styles';
|
|
80
|
-
import { PaginationModel } from './types';
|
|
81
|
-
|
|
82
|
-
export default defineComponent({
|
|
83
|
-
name: 'OrPagination',
|
|
84
|
-
|
|
85
|
-
components: {
|
|
86
|
-
OrButton,
|
|
87
|
-
OrIcon,
|
|
88
|
-
OrMenu,
|
|
89
|
-
OrMenuItem,
|
|
90
|
-
},
|
|
91
|
-
|
|
92
|
-
inheritAttrs: false,
|
|
93
|
-
|
|
94
|
-
props: {
|
|
95
|
-
modelValue: {
|
|
96
|
-
type: Object as PropType<PaginationModel>,
|
|
97
|
-
default: undefined,
|
|
98
|
-
},
|
|
99
|
-
|
|
100
|
-
value: { // TODO: Remove Vue 2 fallback
|
|
101
|
-
type: Object as PropType<PaginationModel>,
|
|
102
|
-
default: undefined,
|
|
103
|
-
},
|
|
104
|
-
|
|
105
|
-
length: {
|
|
106
|
-
type: Number,
|
|
107
|
-
required: true,
|
|
108
|
-
},
|
|
109
|
-
|
|
110
|
-
pageSizeOptions: {
|
|
111
|
-
type: Array as PropType<number[]>,
|
|
112
|
-
default: () => [50, 20, 10, 5],
|
|
113
|
-
},
|
|
114
|
-
},
|
|
115
|
-
|
|
116
|
-
emits: [
|
|
117
|
-
'update:modelValue',
|
|
118
|
-
|
|
119
|
-
'input',
|
|
120
|
-
],
|
|
121
|
-
|
|
122
|
-
expose: [
|
|
123
|
-
'root',
|
|
124
|
-
],
|
|
125
|
-
|
|
126
|
-
setup(props, context) {
|
|
127
|
-
// Refs
|
|
128
|
-
const root = ref<HTMLElement>();
|
|
129
|
-
|
|
130
|
-
const limitButton = ref<InstanceType<typeof OrButton>>();
|
|
131
|
-
const limitButtonRoot = computed(() => limitButton.value?.root);
|
|
132
|
-
|
|
133
|
-
const limitMenu = ref<InstanceType<typeof OrMenu>>();
|
|
134
|
-
const limitMenuRoot = computed(() => limitMenu.value?.root);
|
|
135
|
-
|
|
136
|
-
// Styles
|
|
137
|
-
const classAttribute = useClassAttribute();
|
|
138
|
-
|
|
139
|
-
const rootStyles = computed(() => [
|
|
140
|
-
'or-pagination',
|
|
141
|
-
...PaginationRoot,
|
|
142
|
-
classAttribute.value,
|
|
143
|
-
]);
|
|
144
|
-
|
|
145
|
-
const offsetControlStyles = computed(() => [
|
|
146
|
-
...PaginationOffsetControl,
|
|
147
|
-
]);
|
|
148
|
-
|
|
149
|
-
const limitControlStyles = computed(() => [
|
|
150
|
-
...PaginationLimitControl,
|
|
151
|
-
]);
|
|
152
|
-
|
|
153
|
-
const itemStyles = computed(() => [
|
|
154
|
-
...PaginationItem,
|
|
155
|
-
]);
|
|
156
|
-
|
|
157
|
-
// State
|
|
158
|
-
const proxyModelValue = computed({
|
|
159
|
-
get: () => {
|
|
160
|
-
return props.modelValue ?? props.value; // TODO: Remove Vue 2 fallback
|
|
161
|
-
},
|
|
162
|
-
|
|
163
|
-
set: (value) => {
|
|
164
|
-
context.emit('input', value);
|
|
165
|
-
context.emit('update:modelValue', value);
|
|
166
|
-
},
|
|
167
|
-
});
|
|
168
|
-
|
|
169
|
-
const currentLimit = computed<number>({
|
|
170
|
-
get: () => {
|
|
171
|
-
return proxyModelValue.value?.limit ?? props.pageSizeOptions[0];
|
|
172
|
-
},
|
|
173
|
-
|
|
174
|
-
set: (value) => {
|
|
175
|
-
proxyModelValue.value = {
|
|
176
|
-
limit: value,
|
|
177
|
-
offset: 0,
|
|
178
|
-
};
|
|
179
|
-
},
|
|
180
|
-
});
|
|
181
|
-
|
|
182
|
-
const currentOffset = computed<number>({
|
|
183
|
-
get: () => {
|
|
184
|
-
return proxyModelValue.value?.offset ?? 0;
|
|
185
|
-
},
|
|
186
|
-
|
|
187
|
-
set: (value) => {
|
|
188
|
-
proxyModelValue.value = {
|
|
189
|
-
limit: currentLimit.value,
|
|
190
|
-
offset: value,
|
|
191
|
-
};
|
|
192
|
-
},
|
|
193
|
-
});
|
|
194
|
-
|
|
195
|
-
const currentPage = computed<number>({
|
|
196
|
-
get: () => {
|
|
197
|
-
return Math.floor(currentOffset.value / currentLimit.value) + 1;
|
|
198
|
-
},
|
|
199
|
-
|
|
200
|
-
set: (value) => {
|
|
201
|
-
currentOffset.value = (value - 1) * currentLimit.value;
|
|
202
|
-
},
|
|
203
|
-
});
|
|
204
|
-
|
|
205
|
-
const firstPage = computed<number>(() => {
|
|
206
|
-
return 1;
|
|
207
|
-
});
|
|
208
|
-
|
|
209
|
-
const lastPage = computed<number>(() => {
|
|
210
|
-
return Math.ceil(props.length / currentLimit.value);
|
|
211
|
-
});
|
|
212
|
-
|
|
213
|
-
const buttonGroup = computed<(number | string)[]>(() => {
|
|
214
|
-
return Array.from({ length: lastPage.value }, (_, index) => index + 1)
|
|
215
|
-
.map((page) => {
|
|
216
|
-
switch (true) {
|
|
217
|
-
case page > firstPage.value && page < currentPage.value - 1:
|
|
218
|
-
case page > currentPage.value + 1 && page < lastPage.value:
|
|
219
|
-
return '…';
|
|
220
|
-
|
|
221
|
-
default:
|
|
222
|
-
return page;
|
|
223
|
-
}
|
|
224
|
-
})
|
|
225
|
-
.reduce((accumulator, page) => {
|
|
226
|
-
if (accumulator[accumulator.length - 1] === page) {
|
|
227
|
-
return accumulator;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
return [...accumulator, page];
|
|
231
|
-
}, [] as (number | string)[]);
|
|
232
|
-
});
|
|
233
|
-
|
|
234
|
-
// Functions
|
|
235
|
-
function toPreviousPage(): void {
|
|
236
|
-
currentPage.value = currentPage.value - 1;
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
function toNextPage(): void {
|
|
240
|
-
currentPage.value = currentPage.value + 1;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
function toPage(page: number): void {
|
|
244
|
-
currentPage.value = page;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
return {
|
|
248
|
-
root,
|
|
249
|
-
limitButton,
|
|
250
|
-
limitButtonRoot,
|
|
251
|
-
limitMenu,
|
|
252
|
-
limitMenuRoot,
|
|
253
|
-
rootStyles,
|
|
254
|
-
offsetControlStyles,
|
|
255
|
-
limitControlStyles,
|
|
256
|
-
itemStyles,
|
|
257
|
-
proxyModelValue,
|
|
258
|
-
currentLimit,
|
|
259
|
-
currentOffset,
|
|
260
|
-
currentPage,
|
|
261
|
-
firstPage,
|
|
262
|
-
lastPage,
|
|
263
|
-
buttonGroup,
|
|
264
|
-
toPreviousPage,
|
|
265
|
-
toNextPage,
|
|
266
|
-
toPage,
|
|
267
|
-
};
|
|
268
|
-
},
|
|
269
|
-
});
|
|
270
|
-
</script>
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
export const PaginationRoot: string[] = [
|
|
2
|
-
// Layout
|
|
3
|
-
'layout-row',
|
|
4
|
-
|
|
5
|
-
// Spacing
|
|
6
|
-
'gap-xl',
|
|
7
|
-
|
|
8
|
-
// Typography
|
|
9
|
-
'typography-caption-regular',
|
|
10
|
-
|
|
11
|
-
// Theme
|
|
12
|
-
'theme-foreground-outline',
|
|
13
|
-
'dark:theme-foreground-outline-dark',
|
|
14
|
-
];
|
|
15
|
-
|
|
16
|
-
export const PaginationOffsetControl: string[] = [
|
|
17
|
-
// Layout
|
|
18
|
-
'layout-row',
|
|
19
|
-
|
|
20
|
-
// Spacing
|
|
21
|
-
'gap-md',
|
|
22
|
-
];
|
|
23
|
-
|
|
24
|
-
export const PaginationLimitControl: string[] = [
|
|
25
|
-
// Layout
|
|
26
|
-
'layout-row',
|
|
27
|
-
|
|
28
|
-
// Spacing
|
|
29
|
-
'gap-sm',
|
|
30
|
-
];
|
|
31
|
-
|
|
32
|
-
export const PaginationItem: string[] = [
|
|
33
|
-
// Typography
|
|
34
|
-
'typography-caption-regular',
|
|
35
|
-
|
|
36
|
-
// Typography (activated)
|
|
37
|
-
'activated:typography-caption-bold',
|
|
38
|
-
];
|