@onereach/ui-components 2.70.2-beta.2219.0 → 2.70.3-beta.2210.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/{OrAvatar-586e417b.js → OrAvatar-ae61bfb9.js} +7 -4
- package/dist/bundled/v2/{OrBottomSheet-ddba20c1.js → OrBottomSheet-1cd1ab4c.js} +4 -2
- package/dist/bundled/v2/{OrButton-d45772c1.js → OrButton-a846fa7e.js} +7 -4
- package/dist/bundled/v2/{OrCard-45d5869b.js → OrCard-29116e1f.js} +6 -3
- package/dist/bundled/v2/{OrCardCollection-091e2193.js → OrCardCollection-0141a358.js} +12 -9
- package/dist/bundled/v2/{OrCheckbox-9be450f9.js → OrCheckbox-dbef9f9a.js} +34 -41
- package/dist/bundled/v2/{OrConfirm-ebff0b61.js → OrConfirm-23c3ce56.js} +4 -5
- package/dist/bundled/v2/{OrError-52f668a4.js → OrError-aad17598.js} +6 -3
- package/dist/bundled/v2/{OrErrorTag-97a9112b.js → OrErrorTag-d0c5bcf4.js} +7 -4
- package/dist/bundled/v2/{OrExpansionPanel-96b8f568.js → OrExpansionPanel-d9a260e2.js} +7 -4
- package/dist/bundled/v2/{OrFab-ed69dee1.js → OrFab-7cc75893.js} +4 -3
- package/dist/bundled/v2/{OrHint-fde53334.js → OrHint-f38a1940.js} +6 -3
- package/dist/bundled/v2/{OrIcon-458206aa.js → OrIcon-8625385f.js} +6 -3
- package/dist/bundled/v2/{OrIconButton-4bdd1566.js → OrIconButton-a2ba92df.js} +5 -3
- package/dist/bundled/v2/{OrInlineInput-b009a043.js → OrInlineInput-87589946.js} +39 -47
- package/dist/bundled/v2/{OrInlineInputBox-7a8e645b.js → OrInlineInputBox-f457210f.js} +6 -3
- package/dist/bundled/v2/{OrInlineTextarea-6e8c1f80.js → OrInlineTextarea-21b0e6fc.js} +35 -43
- package/dist/bundled/v2/{OrInput-5404a234.js → OrInput-82ccfe00.js} +50 -53
- package/dist/bundled/v2/{OrInputBox-2f559e98.js → OrInputBox-79ec54ad.js} +6 -3
- package/dist/bundled/v2/{OrLabel-aff09c39.js → OrLabel-172c4b89.js} +6 -3
- package/dist/bundled/v2/{OrLink-0d952e87.js → OrLink-e7b57307.js} +6 -3
- package/dist/bundled/v2/{OrLoader-864ef92a.js → OrLoader-6a1f937b.js} +6 -3
- package/dist/bundled/v2/{OrMenu-52da43bc.js → OrMenu-fa47c888.js} +7 -4
- package/dist/bundled/v2/{OrMenuItem-e2693a5f.js → OrMenuItem-26420908.js} +7 -4
- package/dist/bundled/v2/{OrModal-51b9f3e7.js → OrModal-af6677fd.js} +5 -3
- package/dist/bundled/v2/{OrNotification-7f761f25.js → OrNotification-3250f58b.js} +8 -5
- package/dist/bundled/v2/{OrOverlay-efa7992e.js → OrOverlay-3c89d622.js} +3 -1
- package/dist/bundled/v2/{OrPagination-daf25de2.js → OrPagination-379c10b8.js} +25 -15
- package/dist/bundled/v2/{OrPopover-4e8acb7b.js → OrPopover-5dc240f1.js} +4 -2
- package/dist/bundled/v2/{OrProgress-15fe65ec.js → OrProgress-cc397a38.js} +7 -4
- package/dist/bundled/v2/{OrRadio-fe23947a.js → OrRadio-cd39b20b.js} +32 -39
- package/dist/bundled/v2/{OrSearch-d1169241.js → OrSearch-53470b0e.js} +9 -6
- package/dist/bundled/v2/{OrSegmentedControl-878279bf.js → OrSegmentedControl-21cc914e.js} +22 -12
- package/dist/bundled/v2/{OrSelect-fef400f4.js → OrSelect-02fb39f0.js} +30 -22
- package/dist/bundled/v2/OrSidebar-bc713980.js +464 -0
- package/dist/bundled/v2/{OrSkeletonText-9a2f39dc.js → OrSkeletonText-516993b4.js} +18 -11
- package/dist/bundled/v2/{OrSortHeader-565ace92.js → OrSortHeader-9932d28f.js} +20 -12
- package/dist/bundled/v2/{OrSwitch-782d7b43.js → OrSwitch-237a2081.js} +33 -40
- package/dist/bundled/v2/{OrTab-8c5acf8a.js → OrTab-dd949240.js} +6 -3
- package/dist/bundled/v2/{OrTabs-d69780fc.js → OrTabs-42f7c52c.js} +19 -12
- package/dist/bundled/v2/{OrTag-4a098afa.js → OrTag-30fecee5.js} +8 -5
- package/dist/bundled/v2/{OrText-a665b991.js → OrText-eac4b9f5.js} +6 -3
- package/dist/bundled/v2/{OrTextarea-5c57c02b.js → OrTextarea-5593fbe9.js} +37 -49
- package/dist/bundled/v2/{OrTooltip-b1f38647.js → OrTooltip-fbfa05fd.js} +7 -4
- package/dist/bundled/v2/components/index.js +46 -47
- package/dist/bundled/v2/components/or-avatar-v3/OrAvatar.vue.d.ts +2 -2
- package/dist/bundled/v2/components/or-avatar-v3/index.js +3 -2
- package/dist/bundled/v2/components/or-bottom-sheet-v3/OrBottomSheet.vue.d.ts +2 -2
- package/dist/bundled/v2/components/or-bottom-sheet-v3/index.js +3 -2
- package/dist/bundled/v2/components/or-button-v3/OrButton.vue.d.ts +2 -2
- package/dist/bundled/v2/components/or-button-v3/index.js +3 -2
- package/dist/bundled/v2/components/or-card-collection-v3/OrCardCollection.vue.d.ts +2 -2
- package/dist/bundled/v2/components/or-card-collection-v3/index.js +18 -19
- package/dist/bundled/v2/components/or-card-v3/OrCard.vue.d.ts +2 -2
- package/dist/bundled/v2/components/or-card-v3/index.js +2 -1
- package/dist/bundled/v2/components/or-checkbox-v3/OrCheckbox.vue.d.ts +18 -23
- package/dist/bundled/v2/components/or-checkbox-v3/index.js +3 -3
- package/dist/bundled/v2/components/or-confirm-v3/index.js +17 -18
- package/dist/bundled/v2/components/or-error-tag-v3/OrErrorTag.vue.d.ts +2 -2
- package/dist/bundled/v2/components/or-error-tag-v3/index.js +3 -2
- package/dist/bundled/v2/components/or-error-v3/OrError.vue.d.ts +2 -2
- package/dist/bundled/v2/components/or-error-v3/index.js +2 -1
- package/dist/bundled/v2/components/or-expansion-panel-v3/OrExpansionPanel.vue.d.ts +2 -2
- package/dist/bundled/v2/components/or-expansion-panel-v3/index.js +3 -2
- package/dist/bundled/v2/components/or-fab-v3/index.js +3 -2
- package/dist/bundled/v2/components/or-hint-v3/OrHint.vue.d.ts +2 -2
- package/dist/bundled/v2/components/or-hint-v3/index.js +2 -1
- package/dist/bundled/v2/components/or-icon-button-v3/OrIconButton.vue.d.ts +2 -2
- package/dist/bundled/v2/components/or-icon-button-v3/index.js +7 -6
- package/dist/bundled/v2/components/or-icon-v3/OrIcon.vue.d.ts +2 -2
- package/dist/bundled/v2/components/or-icon-v3/index.js +2 -1
- package/dist/bundled/v2/components/or-inline-input-box-v3/OrInlineInputBox.vue.d.ts +2 -2
- package/dist/bundled/v2/components/or-inline-input-box-v3/index.js +2 -1
- package/dist/bundled/v2/components/or-inline-input-v3/OrInlineInput.vue.d.ts +19 -38
- package/dist/bundled/v2/components/or-inline-input-v3/index.js +11 -12
- package/dist/bundled/v2/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +19 -38
- package/dist/bundled/v2/components/or-inline-textarea-v3/index.js +11 -12
- package/dist/bundled/v2/components/or-input-box-v3/OrInputBox.vue.d.ts +2 -2
- package/dist/bundled/v2/components/or-input-box-v3/index.js +2 -1
- package/dist/bundled/v2/components/or-input-v3/OrInput.vue.d.ts +21 -45
- package/dist/bundled/v2/components/or-input-v3/index.js +12 -13
- package/dist/bundled/v2/components/or-label-v3/OrLabel.vue.d.ts +2 -2
- package/dist/bundled/v2/components/or-label-v3/index.js +2 -1
- package/dist/bundled/v2/components/or-link-v3/OrLink.vue.d.ts +2 -2
- package/dist/bundled/v2/components/or-link-v3/index.js +2 -1
- package/dist/bundled/v2/components/or-loader-v3/OrLoader.vue.d.ts +2 -2
- package/dist/bundled/v2/components/or-loader-v3/index.js +2 -1
- package/dist/bundled/v2/components/or-menu-item-v3/OrMenuItem.vue.d.ts +2 -2
- package/dist/bundled/v2/components/or-menu-item-v3/index.js +3 -2
- package/dist/bundled/v2/components/or-menu-v3/OrMenu.vue.d.ts +2 -2
- package/dist/bundled/v2/components/or-menu-v3/index.js +5 -4
- package/dist/bundled/v2/components/or-modal-v3/OrModal.vue.d.ts +2 -2
- package/dist/bundled/v2/components/or-modal-v3/index.js +8 -7
- package/dist/bundled/v2/components/or-notification-v3/OrNotification.vue.d.ts +2 -2
- package/dist/bundled/v2/components/or-notification-v3/index.js +8 -7
- package/dist/bundled/v2/components/or-overlay-v3/OrOverlay.vue.d.ts +2 -2
- package/dist/bundled/v2/components/or-overlay-v3/index.js +2 -1
- package/dist/bundled/v2/components/or-pagination-v3/OrPagination.vue.d.ts +13 -2
- package/dist/bundled/v2/components/or-pagination-v3/index.js +10 -9
- package/dist/bundled/v2/components/or-popover-v3/OrPopover.vue.d.ts +2 -2
- package/dist/bundled/v2/components/or-popover-v3/index.js +4 -3
- package/dist/bundled/v2/components/or-progress-v3/OrProgress.vue.d.ts +2 -2
- package/dist/bundled/v2/components/or-progress-v3/index.js +3 -2
- package/dist/bundled/v2/components/or-radio-v3/OrRadio.vue.d.ts +15 -20
- package/dist/bundled/v2/components/or-radio-v3/index.js +3 -3
- package/dist/bundled/v2/components/or-search-v3/OrSearch.vue.d.ts +2 -2
- package/dist/bundled/v2/components/or-search-v3/index.js +14 -15
- package/dist/bundled/v2/components/or-segmented-control-v3/OrSegmentedControl.vue.d.ts +16 -5
- package/dist/bundled/{v3/components/or-segmented-control-v3/partials → v2/components/or-segmented-control-v3/components}/or-segmented-control-item/OrSegmentedControlItem.vue.d.ts +2 -2
- package/dist/bundled/v2/components/or-segmented-control-v3/index.js +2 -1
- package/dist/bundled/v2/components/or-select-v3/OrSelect.vue.d.ts +16 -5
- package/dist/bundled/v2/components/or-select-v3/index.js +17 -18
- package/dist/bundled/v2/components/or-sidebar-v3/OrSidebar.stories3.d.ts +36 -1
- package/dist/bundled/v2/components/or-sidebar-v3/OrSidebar.vue.d.ts +49 -4
- package/dist/bundled/v2/components/or-sidebar-v3/OrSidebarCollapseButton.stories3.d.ts +12 -0
- package/dist/bundled/v2/components/or-sidebar-v3/OrSidebarCollapseButton.vue.d.ts +53 -0
- package/dist/bundled/v2/components/or-sidebar-v3/index.js +13 -1
- package/dist/bundled/v2/components/or-sidebar-v3/styles.d.ts +8 -1
- package/dist/bundled/v2/components/or-skeleton-v3/OrSkeletonCircle.vue.d.ts +2 -2
- package/dist/bundled/v2/components/or-skeleton-v3/OrSkeletonRect.vue.d.ts +2 -2
- package/dist/bundled/v2/components/or-skeleton-v3/OrSkeletonText.vue.d.ts +4 -4
- package/dist/bundled/v2/components/or-skeleton-v3/index.js +3 -2
- package/dist/bundled/v2/components/or-sort-header-v3/OrSortHeader.vue.d.ts +15 -4
- package/dist/bundled/v2/components/or-sort-header-v3/index.js +3 -2
- package/dist/bundled/v2/components/or-switch-v3/OrSwitch.vue.d.ts +18 -23
- package/dist/bundled/v2/components/or-switch-v3/index.js +4 -4
- package/dist/bundled/v2/components/or-tab-v3/OrTab.vue.d.ts +2 -2
- package/dist/bundled/v2/components/or-tab-v3/index.js +2 -1
- package/dist/bundled/v2/components/or-tabs-v3/OrTabs.vue.d.ts +15 -4
- package/dist/bundled/v2/components/or-tabs-v3/index.js +9 -8
- package/dist/bundled/v2/components/or-tag-v3/OrTag.vue.d.ts +2 -2
- package/dist/bundled/v2/components/or-tag-v3/index.js +8 -7
- package/dist/bundled/v2/components/or-text-v3/OrText.vue.d.ts +2 -2
- package/dist/bundled/v2/components/or-text-v3/index.js +2 -1
- package/dist/bundled/v2/components/or-textarea-v3/OrTextarea.vue.d.ts +19 -47
- package/dist/bundled/v2/components/or-textarea-v3/index.js +6 -7
- package/dist/bundled/v2/components/or-toast-v3/index.js +9 -8
- package/dist/bundled/v2/components/or-tooltip-v3/OrTooltip.vue.d.ts +2 -2
- package/dist/bundled/v2/components/or-tooltip-v3/index.js +5 -4
- package/dist/bundled/v2/hooks/index.d.ts +1 -3
- package/dist/bundled/v2/hooks/index.js +1 -2
- package/dist/bundled/v2/hooks/useClassAttribute.d.ts +3 -0
- package/dist/bundled/v2/index.js +47 -48
- package/dist/bundled/v2/{types-79e5c18d.js → types-8fe4e345.js} +2 -2
- package/dist/bundled/v2/useClassAttribute-9bf33346.js +33 -0
- package/dist/bundled/v3/{OrAvatar.vue_vue_type_script_lang-582e74ae.js → OrAvatar.vue_vue_type_script_lang-0426862b.js} +6 -3
- package/dist/bundled/v3/{OrBottomSheet.vue_vue_type_script_lang-bdef5ca2.js → OrBottomSheet.vue_vue_type_script_lang-6fb49de9.js} +4 -2
- package/dist/bundled/v3/{OrButton-a1448bfa.js → OrButton-2b27c1fd.js} +8 -7
- package/dist/bundled/v3/{OrButton.vue_vue_type_script_lang-3b1e442b.js → OrButton.vue_vue_type_script_lang-8c44986c.js} +6 -3
- package/dist/bundled/v3/{OrCard.vue_vue_type_script_lang-b6685a34.js → OrCard.vue_vue_type_script_lang-165de137.js} +4 -1
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-60403ae6.js → OrCardCollection.vue_vue_type_script_lang-2d78a51a.js} +46 -42
- package/dist/bundled/v3/{OrCheckbox.vue_vue_type_script_lang-fc067611.js → OrCheckbox.vue_vue_type_script_lang-8b36e06c.js} +24 -31
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-528380c1.js → OrConfirm.vue_vue_type_script_lang-05b21989.js} +7 -8
- package/dist/bundled/v3/{OrError.vue_vue_type_script_lang-53648a65.js → OrError.vue_vue_type_script_lang-cc6c135f.js} +4 -1
- package/dist/bundled/v3/{OrErrorTag.vue_vue_type_script_lang-e2fe7ca9.js → OrErrorTag.vue_vue_type_script_lang-4828c387.js} +6 -3
- package/dist/bundled/v3/{OrExpansionPanel.vue_vue_type_script_lang-2cc8964c.js → OrExpansionPanel.vue_vue_type_script_lang-5360f580.js} +6 -3
- package/dist/bundled/v3/{OrFab.vue_vue_type_script_lang-0fe4a921.js → OrFab.vue_vue_type_script_lang-2adeaed6.js} +3 -2
- package/dist/bundled/v3/{OrHint-5d5e4d99.js → OrHint-9592499e.js} +15 -13
- package/dist/bundled/v3/{OrHint.vue_vue_type_script_lang-e322f61e.js → OrHint.vue_vue_type_script_lang-8e657168.js} +4 -1
- package/dist/bundled/v3/OrIcon-d878b768.js +13 -0
- package/dist/bundled/v3/{OrIcon.vue_vue_type_script_lang-bdbaad94.js → OrIcon.vue_vue_type_script_lang-a119a715.js} +4 -1
- package/dist/bundled/v3/{OrIconButton-428dd2cf.js → OrIconButton-cd62526d.js} +1 -1
- package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-ec6a3622.js → OrIconButton.vue_vue_type_script_lang-aefcf30d.js} +13 -10
- package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-ab296efc.js → OrInlineInput.vue_vue_type_script_lang-67218502.js} +33 -41
- package/dist/bundled/v3/{OrInlineInputBox-f92a09d6.js → OrInlineInputBox-9d68ded1.js} +7 -6
- package/dist/bundled/v3/{OrInlineInputBox.vue_vue_type_script_lang-b1ae1f3d.js → OrInlineInputBox.vue_vue_type_script_lang-73750005.js} +4 -1
- package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-3c3e1b4a.js → OrInlineTextarea.vue_vue_type_script_lang-a1831ab8.js} +33 -41
- package/dist/bundled/v3/{OrInput-2a7c6b57.js → OrInput-a4f220ed.js} +7 -7
- package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-509de504.js → OrInput.vue_vue_type_script_lang-607d79d4.js} +41 -44
- package/dist/bundled/v3/{OrInputBox-4c7900c2.js → OrInputBox-eb54d73d.js} +7 -6
- package/dist/bundled/v3/{OrInputBox.vue_vue_type_script_lang-47d98e81.js → OrInputBox.vue_vue_type_script_lang-5ee4ee45.js} +4 -1
- package/dist/bundled/v3/{OrLabel-c556887e.js → OrLabel-c6873e79.js} +8 -7
- package/dist/bundled/v3/{OrLabel.vue_vue_type_script_lang-191d2304.js → OrLabel.vue_vue_type_script_lang-96f94c4e.js} +4 -1
- package/dist/bundled/v3/{OrLink.vue_vue_type_script_lang-05d4897b.js → OrLink.vue_vue_type_script_lang-9d3a32c7.js} +4 -1
- package/dist/bundled/v3/{OrLoader-123ef8c4.js → OrLoader-c4bbef2f.js} +8 -7
- package/dist/bundled/v3/{OrLoader.vue_vue_type_script_lang-4c3c1ac9.js → OrLoader.vue_vue_type_script_lang-5405040c.js} +4 -1
- package/dist/bundled/v3/{OrMenu-6d7abe97.js → OrMenu-f26e8e55.js} +8 -7
- package/dist/bundled/v3/{OrMenu.vue_vue_type_script_lang-df35fd76.js → OrMenu.vue_vue_type_script_lang-2446a69a.js} +6 -3
- package/dist/bundled/v3/{OrMenuItem-807e2a49.js → OrMenuItem-4feaba6c.js} +8 -7
- package/dist/bundled/v3/{OrMenuItem.vue_vue_type_script_lang-2400ec2a.js → OrMenuItem.vue_vue_type_script_lang-0ffaef05.js} +6 -3
- package/dist/bundled/v3/{OrModal.vue_vue_type_script_lang-5a71a851.js → OrModal.vue_vue_type_script_lang-55c864d1.js} +7 -5
- package/dist/bundled/v3/{OrNotification.vue_vue_type_script_lang-6287244f.js → OrNotification.vue_vue_type_script_lang-c886ae51.js} +8 -5
- package/dist/bundled/v3/{OrOverlay.vue_vue_type_script_lang-7edd25f6.js → OrOverlay.vue_vue_type_script_lang-cb3aad0c.js} +3 -1
- package/dist/bundled/v3/{OrPagination.vue_vue_type_script_lang-f64827ef.js → OrPagination.vue_vue_type_script_lang-c96d7cd7.js} +27 -17
- package/dist/bundled/v3/{OrPopover-1a488f88.js → OrPopover-c462ce77.js} +1 -1
- package/dist/bundled/v3/{OrPopover.vue_vue_type_script_lang-b1102c1a.js → OrPopover.vue_vue_type_script_lang-54c7b11c.js} +5 -3
- package/dist/bundled/v3/{OrProgress.vue_vue_type_script_lang-52f660d6.js → OrProgress.vue_vue_type_script_lang-a73c0acf.js} +5 -2
- package/dist/bundled/v3/{OrRadio.vue_vue_type_script_lang-8dc0720c.js → OrRadio.vue_vue_type_script_lang-2e666a56.js} +24 -31
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-ab2ef22c.js → OrSearch.vue_vue_type_script_lang-06f318ca.js} +8 -5
- package/dist/bundled/v3/{OrSegmentedControl.vue_vue_type_script_lang-38a00b68.js → OrSegmentedControl.vue_vue_type_script_lang-579406f5.js} +25 -14
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-8ab7bc56.js → OrSelect.vue_vue_type_script_lang-83f15704.js} +54 -45
- package/dist/bundled/v3/OrSidebar.vue_vue_type_script_lang-1cf01183.js +356 -0
- package/dist/bundled/v3/{OrSkeletonText.vue_vue_type_script_lang-efcfbe21.js → OrSkeletonText.vue_vue_type_script_lang-577a1dc9.js} +12 -5
- package/dist/bundled/v3/{OrSortHeader.vue_vue_type_script_lang-a20eae87.js → OrSortHeader.vue_vue_type_script_lang-75115125.js} +19 -11
- package/dist/bundled/v3/{OrSwitch.vue_vue_type_script_lang-31994be7.js → OrSwitch.vue_vue_type_script_lang-04829f64.js} +26 -33
- package/dist/bundled/v3/{OrTab.vue_vue_type_script_lang-f791efa0.js → OrTab.vue_vue_type_script_lang-134ad9d1.js} +4 -1
- package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-cb550e87.js → OrTabs.vue_vue_type_script_lang-61b79a5a.js} +28 -20
- package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-68af600d.js → OrTag.vue_vue_type_script_lang-3e30f662.js} +7 -4
- package/dist/bundled/v3/{OrText.vue_vue_type_script_lang-271fb345.js → OrText.vue_vue_type_script_lang-d9525d49.js} +4 -1
- package/dist/bundled/v3/{OrTextarea.vue_vue_type_script_lang-296da567.js → OrTextarea.vue_vue_type_script_lang-8e3531cd.js} +34 -45
- package/dist/bundled/v3/{OrToastContainer-ad5ae5af.js → OrToastContainer-34389303.js} +1 -1
- package/dist/bundled/v3/{OrTooltip.vue_vue_type_script_lang-bf9935ef.js → OrTooltip.vue_vue_type_script_lang-67cc86ed.js} +6 -3
- package/dist/bundled/v3/components/index.js +58 -59
- package/dist/bundled/v3/components/or-avatar-v3/OrAvatar.vue.d.ts +2 -2
- package/dist/bundled/v3/components/or-avatar-v3/index.js +4 -3
- package/dist/bundled/v3/components/or-bottom-sheet-v3/OrBottomSheet.vue.d.ts +2 -2
- package/dist/bundled/v3/components/or-bottom-sheet-v3/index.js +3 -2
- package/dist/bundled/v3/components/or-button-v3/OrButton.vue.d.ts +2 -2
- package/dist/bundled/v3/components/or-button-v3/index.js +4 -3
- package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +2 -2
- package/dist/bundled/v3/components/or-card-collection-v3/index.js +29 -30
- package/dist/bundled/v3/components/or-card-v3/OrCard.vue.d.ts +2 -2
- package/dist/bundled/v3/components/or-card-v3/index.js +2 -1
- package/dist/bundled/v3/components/or-checkbox-v3/OrCheckbox.vue.d.ts +18 -23
- package/dist/bundled/v3/components/or-checkbox-v3/index.js +4 -4
- package/dist/bundled/v3/components/or-confirm-v3/index.js +25 -26
- package/dist/bundled/v3/components/or-error-tag-v3/OrErrorTag.vue.d.ts +2 -2
- package/dist/bundled/v3/components/or-error-tag-v3/index.js +4 -3
- package/dist/bundled/v3/components/or-error-v3/OrError.vue.d.ts +2 -2
- package/dist/bundled/v3/components/or-error-v3/index.js +2 -1
- package/dist/bundled/v3/components/or-expansion-panel-v3/OrExpansionPanel.vue.d.ts +2 -2
- package/dist/bundled/v3/components/or-expansion-panel-v3/index.js +4 -3
- package/dist/bundled/v3/components/or-fab-v3/index.js +4 -3
- package/dist/bundled/v3/components/or-hint-v3/OrHint.vue.d.ts +2 -2
- package/dist/bundled/v3/components/or-hint-v3/index.js +2 -1
- package/dist/bundled/v3/components/or-icon-button-v3/OrIconButton.vue.d.ts +2 -2
- package/dist/bundled/v3/components/or-icon-button-v3/index.js +9 -8
- package/dist/bundled/v3/components/or-icon-v3/OrIcon.vue.d.ts +2 -2
- package/dist/bundled/v3/components/or-icon-v3/index.js +2 -1
- package/dist/bundled/v3/components/or-inline-input-box-v3/OrInlineInputBox.vue.d.ts +2 -2
- package/dist/bundled/v3/components/or-inline-input-box-v3/index.js +2 -1
- package/dist/bundled/v3/components/or-inline-input-v3/OrInlineInput.vue.d.ts +19 -38
- package/dist/bundled/v3/components/or-inline-input-v3/index.js +16 -17
- package/dist/bundled/v3/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +19 -38
- package/dist/bundled/v3/components/or-inline-textarea-v3/index.js +16 -17
- package/dist/bundled/v3/components/or-input-box-v3/OrInputBox.vue.d.ts +2 -2
- package/dist/bundled/v3/components/or-input-box-v3/index.js +2 -1
- package/dist/bundled/v3/components/or-input-v3/OrInput.vue.d.ts +21 -45
- package/dist/bundled/v3/components/or-input-v3/index.js +18 -19
- package/dist/bundled/v3/components/or-label-v3/OrLabel.vue.d.ts +2 -2
- package/dist/bundled/v3/components/or-label-v3/index.js +2 -1
- package/dist/bundled/v3/components/or-link-v3/OrLink.vue.d.ts +2 -2
- package/dist/bundled/v3/components/or-link-v3/index.js +2 -1
- package/dist/bundled/v3/components/or-loader-v3/OrLoader.vue.d.ts +2 -2
- package/dist/bundled/v3/components/or-loader-v3/index.js +2 -1
- package/dist/bundled/v3/components/or-menu-item-v3/OrMenuItem.vue.d.ts +2 -2
- package/dist/bundled/v3/components/or-menu-item-v3/index.js +4 -3
- package/dist/bundled/v3/components/or-menu-v3/OrMenu.vue.d.ts +2 -2
- package/dist/bundled/v3/components/or-menu-v3/index.js +6 -5
- package/dist/bundled/v3/components/or-modal-v3/OrModal.vue.d.ts +2 -2
- package/dist/bundled/v3/components/or-modal-v3/index.js +11 -10
- package/dist/bundled/v3/components/or-notification-v3/OrNotification.vue.d.ts +2 -2
- package/dist/bundled/v3/components/or-notification-v3/index.js +11 -10
- package/dist/bundled/v3/components/or-overlay-v3/OrOverlay.vue.d.ts +2 -2
- package/dist/bundled/v3/components/or-overlay-v3/index.js +2 -1
- package/dist/bundled/v3/components/or-pagination-v3/OrPagination.vue.d.ts +13 -2
- package/dist/bundled/v3/components/or-pagination-v3/index.js +16 -15
- package/dist/bundled/v3/components/or-popover-v3/OrPopover.vue.d.ts +2 -2
- package/dist/bundled/v3/components/or-popover-v3/index.js +4 -3
- package/dist/bundled/v3/components/or-progress-v3/OrProgress.vue.d.ts +2 -2
- package/dist/bundled/v3/components/or-progress-v3/index.js +3 -2
- package/dist/bundled/v3/components/or-radio-v3/OrRadio.vue.d.ts +15 -20
- package/dist/bundled/v3/components/or-radio-v3/index.js +4 -4
- package/dist/bundled/v3/components/or-search-v3/OrSearch.vue.d.ts +2 -2
- package/dist/bundled/v3/components/or-search-v3/index.js +21 -22
- package/dist/bundled/v3/components/or-segmented-control-v3/OrSegmentedControl.vue.d.ts +16 -5
- package/dist/{esm/v3/components/or-segmented-control-v3/partials → bundled/v3/components/or-segmented-control-v3/components}/or-segmented-control-item/OrSegmentedControlItem.vue.d.ts +2 -2
- package/dist/bundled/v3/components/or-segmented-control-v3/index.js +2 -1
- package/dist/bundled/v3/components/or-select-v3/OrSelect.vue.d.ts +16 -5
- package/dist/bundled/v3/components/or-select-v3/index.js +25 -26
- package/dist/bundled/v3/components/or-sidebar-v3/OrSidebar.stories3.d.ts +36 -1
- package/dist/bundled/v3/components/or-sidebar-v3/OrSidebar.vue.d.ts +49 -4
- package/dist/bundled/v3/components/or-sidebar-v3/OrSidebarCollapseButton.stories3.d.ts +12 -0
- package/dist/bundled/v3/components/or-sidebar-v3/OrSidebarCollapseButton.vue.d.ts +53 -0
- package/dist/bundled/v3/components/or-sidebar-v3/index.js +15 -1
- package/dist/bundled/v3/components/or-sidebar-v3/styles.d.ts +8 -1
- package/dist/bundled/v3/components/or-skeleton-v3/OrSkeletonCircle.vue.d.ts +2 -2
- package/dist/bundled/v3/components/or-skeleton-v3/OrSkeletonRect.vue.d.ts +2 -2
- package/dist/bundled/v3/components/or-skeleton-v3/OrSkeletonText.vue.d.ts +4 -4
- package/dist/bundled/v3/components/or-skeleton-v3/index.js +3 -2
- package/dist/bundled/v3/components/or-sort-header-v3/OrSortHeader.vue.d.ts +15 -4
- package/dist/bundled/v3/components/or-sort-header-v3/index.js +4 -3
- package/dist/bundled/v3/components/or-switch-v3/OrSwitch.vue.d.ts +18 -23
- package/dist/bundled/v3/components/or-switch-v3/index.js +6 -6
- package/dist/bundled/v3/components/or-tab-v3/OrTab.vue.d.ts +2 -2
- package/dist/bundled/v3/components/or-tab-v3/index.js +2 -1
- package/dist/bundled/v3/components/or-tabs-v3/OrTabs.vue.d.ts +15 -4
- package/dist/bundled/v3/components/or-tabs-v3/index.js +13 -12
- package/dist/bundled/v3/components/or-tag-v3/OrTag.vue.d.ts +2 -2
- package/dist/bundled/v3/components/or-tag-v3/index.js +11 -10
- package/dist/bundled/v3/components/or-text-v3/OrText.vue.d.ts +2 -2
- package/dist/bundled/v3/components/or-text-v3/index.js +2 -1
- package/dist/bundled/v3/components/or-textarea-v3/OrTextarea.vue.d.ts +19 -47
- package/dist/bundled/v3/components/or-textarea-v3/index.js +9 -10
- package/dist/bundled/v3/components/or-toast-v3/index.js +14 -13
- package/dist/bundled/v3/components/or-tooltip-v3/OrTooltip.vue.d.ts +2 -2
- package/dist/bundled/v3/components/or-tooltip-v3/index.js +6 -5
- package/dist/bundled/v3/hooks/index.d.ts +1 -3
- package/dist/bundled/v3/hooks/index.js +1 -2
- package/dist/bundled/v3/hooks/useClassAttribute.d.ts +3 -0
- package/dist/bundled/v3/index.js +229 -200
- package/dist/bundled/v3/{types-1d25bb9a.js → types-f53434f2.js} +5 -5
- package/dist/bundled/v3/useClassAttribute-00888f78.js +9 -0
- package/dist/esm/v2/{OrAvatar-379ac72f.js → OrAvatar-3d155af3.js} +8 -4
- package/dist/esm/v2/{OrBottomSheet-37200385.js → OrBottomSheet-16c2e610.js} +4 -2
- package/dist/esm/v2/{OrButton-66964360.js → OrButton-835d4f11.js} +8 -4
- package/dist/esm/v2/{OrCard-e89c44ef.js → OrCard-de799db0.js} +7 -3
- package/dist/esm/v2/{OrCardCollection-bbdb6159.js → OrCardCollection-3c38fc85.js} +15 -11
- package/dist/esm/v2/{OrCheckbox-b380c131.js → OrCheckbox-567e387c.js} +34 -41
- package/dist/esm/v2/{OrConfirm-7fb515d4.js → OrConfirm-e2ab9b4c.js} +4 -5
- package/dist/esm/v2/{OrError-13845bb0.js → OrError-d267ee9a.js} +7 -3
- package/dist/esm/v2/{OrErrorTag-80f82cdf.js → OrErrorTag-782dd714.js} +8 -4
- package/dist/esm/v2/{OrExpansionPanel-729eb1e7.js → OrExpansionPanel-a123024e.js} +8 -4
- package/dist/esm/v2/{OrFab-1d095e33.js → OrFab-26106618.js} +4 -3
- package/dist/esm/v2/{OrHint-78b399cb.js → OrHint-42dc9ebb.js} +7 -3
- package/dist/esm/v2/{OrIcon-f34e0e6f.js → OrIcon-5e394c62.js} +7 -3
- package/dist/esm/v2/{OrIconButton-5fa56aec.js → OrIconButton-b3779042.js} +7 -4
- package/dist/esm/v2/{OrInlineInput-38645a8e.js → OrInlineInput-10205811.js} +39 -47
- package/dist/esm/v2/{OrInlineInputBox-46146af0.js → OrInlineInputBox-fefd4fbd.js} +7 -3
- package/dist/esm/v2/{OrInlineTextarea-b49a7107.js → OrInlineTextarea-7658611e.js} +35 -43
- package/dist/esm/v2/{OrInput-e8fe9102.js → OrInput-ada3a970.js} +50 -53
- package/dist/esm/v2/{OrInputBox-9ceb9fc4.js → OrInputBox-4d5a318d.js} +7 -3
- package/dist/esm/v2/{OrLabel-0945a4d9.js → OrLabel-2a9f1477.js} +7 -3
- package/dist/esm/v2/{OrLink-597e0e18.js → OrLink-80742a17.js} +7 -3
- package/dist/esm/v2/{OrLoader-76307488.js → OrLoader-f857d55b.js} +7 -3
- package/dist/esm/v2/{OrMenu-c276db74.js → OrMenu-df27d0ef.js} +8 -4
- package/dist/esm/v2/{OrMenuItem-7b7fbf8a.js → OrMenuItem-c7f28480.js} +8 -4
- package/dist/esm/v2/{OrModal-3b9d59de.js → OrModal-a7719843.js} +6 -3
- package/dist/esm/v2/{OrNotification-5e145880.js → OrNotification-8a4830a3.js} +9 -5
- package/dist/esm/v2/{OrOverlay-a019186f.js → OrOverlay-18ba2dc6.js} +3 -1
- package/dist/esm/v2/{OrPagination-1adbcadb.js → OrPagination-c0dbec6a.js} +27 -16
- package/dist/esm/v2/{OrPopover-d5d4f62a.js → OrPopover-9bafbdb4.js} +4 -2
- package/dist/esm/v2/{OrProgress-b7d1c689.js → OrProgress-c27c8946.js} +7 -4
- package/dist/esm/v2/{OrRadio-87a4d226.js → OrRadio-848ce55d.js} +32 -39
- package/dist/esm/v2/{OrSearch-4b774707.js → OrSearch-0f08f2f5.js} +9 -6
- package/dist/esm/v2/{OrSegmentedControl-7486115b.js → OrSegmentedControl-e8dce8f9.js} +23 -12
- package/dist/esm/v2/{OrSelect-871fae44.js → OrSelect-f8837f5d.js} +30 -22
- package/dist/esm/v2/OrSidebar-bfa1b1b8.js +461 -0
- package/dist/esm/v2/{OrSkeletonText-6ee72718.js → OrSkeletonText-950be6a2.js} +19 -11
- package/dist/esm/v2/{OrSortHeader-592727dc.js → OrSortHeader-19bf94ca.js} +21 -12
- package/dist/esm/v2/{OrSwitch-8549219a.js → OrSwitch-13b6a7ee.js} +33 -40
- package/dist/esm/v2/{OrTab-1ff87c76.js → OrTab-702e7335.js} +7 -3
- package/dist/esm/v2/{OrTabs-96b0473d.js → OrTabs-71bd3fd2.js} +20 -13
- package/dist/esm/v2/{OrTag-56714605.js → OrTag-5c404031.js} +9 -5
- package/dist/esm/v2/{OrText-b12d0682.js → OrText-ba5a2b6c.js} +7 -3
- package/dist/esm/v2/{OrTextarea-a5a3572b.js → OrTextarea-6712a150.js} +37 -49
- package/dist/esm/v2/{OrTooltip-629d44fc.js → OrTooltip-513bee30.js} +7 -4
- package/dist/esm/v2/components/index.js +47 -48
- package/dist/esm/v2/components/or-avatar-v3/OrAvatar.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-avatar-v3/index.js +4 -2
- package/dist/esm/v2/components/or-bottom-sheet-v3/OrBottomSheet.vue.d.ts +2 -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 +2 -2
- package/dist/esm/v2/components/or-button-v3/index.js +4 -2
- package/dist/esm/v2/components/or-card-collection-v3/OrCardCollection.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-card-collection-v3/index.js +19 -20
- package/dist/esm/v2/components/or-card-v3/OrCard.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-card-v3/index.js +3 -1
- package/dist/esm/v2/components/or-checkbox-v3/OrCheckbox.vue.d.ts +18 -23
- package/dist/esm/v2/components/or-checkbox-v3/index.js +3 -3
- package/dist/esm/v2/components/or-confirm-v3/index.js +19 -20
- package/dist/esm/v2/components/or-error-tag-v3/OrErrorTag.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-error-tag-v3/index.js +4 -2
- package/dist/esm/v2/components/or-error-v3/OrError.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-error-v3/index.js +3 -1
- package/dist/esm/v2/components/or-expansion-panel-v3/OrExpansionPanel.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-expansion-panel-v3/index.js +4 -2
- package/dist/esm/v2/components/or-fab-v3/index.js +4 -2
- package/dist/esm/v2/components/or-hint-v3/OrHint.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-hint-v3/index.js +3 -1
- package/dist/esm/v2/components/or-icon-button-v3/OrIconButton.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-icon-button-v3/index.js +7 -6
- package/dist/esm/v2/components/or-icon-v3/OrIcon.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-icon-v3/index.js +3 -1
- package/dist/esm/v2/components/or-inline-input-box-v3/OrInlineInputBox.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-inline-input-box-v3/index.js +3 -1
- package/dist/esm/v2/components/or-inline-input-v3/OrInlineInput.vue.d.ts +19 -38
- package/dist/esm/v2/components/or-inline-input-v3/index.js +11 -12
- package/dist/esm/v2/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +19 -38
- package/dist/esm/v2/components/or-inline-textarea-v3/index.js +11 -12
- package/dist/esm/v2/components/or-input-box-v3/OrInputBox.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-input-box-v3/index.js +3 -1
- package/dist/esm/v2/components/or-input-v3/OrInput.vue.d.ts +21 -45
- package/dist/esm/v2/components/or-input-v3/index.js +12 -13
- package/dist/esm/v2/components/or-label-v3/OrLabel.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-label-v3/index.js +3 -1
- package/dist/esm/v2/components/or-link-v3/OrLink.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-link-v3/index.js +3 -1
- package/dist/esm/v2/components/or-loader-v3/OrLoader.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-loader-v3/index.js +3 -1
- package/dist/esm/v2/components/or-menu-item-v3/OrMenuItem.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-menu-item-v3/index.js +4 -2
- package/dist/esm/v2/components/or-menu-v3/OrMenu.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-menu-v3/index.js +6 -5
- package/dist/esm/v2/components/or-modal-v3/OrModal.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-modal-v3/index.js +9 -8
- package/dist/esm/v2/components/or-notification-v3/OrNotification.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-notification-v3/index.js +9 -8
- package/dist/esm/v2/components/or-overlay-v3/OrOverlay.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-overlay-v3/index.js +2 -1
- package/dist/esm/v2/components/or-pagination-v3/OrPagination.vue.d.ts +13 -2
- package/dist/esm/v2/components/or-pagination-v3/index.js +11 -10
- package/dist/esm/v2/components/or-popover-v3/OrPopover.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-popover-v3/index.js +4 -3
- package/dist/esm/v2/components/or-progress-v3/OrProgress.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-progress-v3/index.js +3 -2
- package/dist/esm/v2/components/or-radio-v3/OrRadio.vue.d.ts +15 -20
- package/dist/esm/v2/components/or-radio-v3/index.js +3 -3
- package/dist/esm/v2/components/or-search-v3/OrSearch.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-search-v3/index.js +14 -15
- package/dist/esm/v2/components/or-segmented-control-v3/OrSegmentedControl.vue.d.ts +16 -5
- package/dist/esm/v2/components/or-segmented-control-v3/{partials → components}/or-segmented-control-item/OrSegmentedControlItem.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-segmented-control-v3/index.js +3 -1
- package/dist/esm/v2/components/or-select-v3/OrSelect.vue.d.ts +16 -5
- package/dist/esm/v2/components/or-select-v3/index.js +17 -18
- package/dist/esm/v2/components/or-sidebar-v3/OrSidebar.stories3.d.ts +36 -1
- package/dist/esm/v2/components/or-sidebar-v3/OrSidebar.vue.d.ts +49 -4
- package/dist/esm/v2/components/or-sidebar-v3/OrSidebarCollapseButton.stories3.d.ts +12 -0
- package/dist/esm/v2/components/or-sidebar-v3/OrSidebarCollapseButton.vue.d.ts +53 -0
- package/dist/esm/v2/components/or-sidebar-v3/index.js +13 -1
- package/dist/esm/v2/components/or-sidebar-v3/styles.d.ts +8 -1
- package/dist/esm/v2/components/or-skeleton-v3/OrSkeletonCircle.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-skeleton-v3/OrSkeletonRect.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-skeleton-v3/OrSkeletonText.vue.d.ts +4 -4
- package/dist/esm/v2/components/or-skeleton-v3/index.js +4 -2
- package/dist/esm/v2/components/or-sort-header-v3/OrSortHeader.vue.d.ts +15 -4
- package/dist/esm/v2/components/or-sort-header-v3/index.js +4 -2
- package/dist/esm/v2/components/or-switch-v3/OrSwitch.vue.d.ts +18 -23
- package/dist/esm/v2/components/or-switch-v3/index.js +4 -4
- package/dist/esm/v2/components/or-tab-v3/OrTab.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-tab-v3/index.js +3 -1
- package/dist/esm/v2/components/or-tabs-v3/OrTabs.vue.d.ts +15 -4
- package/dist/esm/v2/components/or-tabs-v3/index.js +9 -8
- package/dist/esm/v2/components/or-tag-v3/OrTag.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-tag-v3/index.js +9 -8
- package/dist/esm/v2/components/or-text-v3/OrText.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-text-v3/index.js +3 -1
- package/dist/esm/v2/components/or-textarea-v3/OrTextarea.vue.d.ts +19 -47
- package/dist/esm/v2/components/or-textarea-v3/index.js +6 -7
- package/dist/esm/v2/components/or-toast-v3/index.js +9 -8
- package/dist/esm/v2/components/or-tooltip-v3/OrTooltip.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-tooltip-v3/index.js +5 -4
- package/dist/esm/v2/hooks/index.d.ts +1 -3
- package/dist/esm/v2/hooks/index.js +1 -2
- package/dist/esm/v2/hooks/useClassAttribute.d.ts +3 -0
- package/dist/esm/v2/index.js +46 -47
- package/dist/esm/v2/{types-856a804f.js → types-6c742e07.js} +2 -2
- package/dist/esm/v2/useClassAttribute-47fdb016.js +32 -0
- package/dist/esm/v3/{OrAvatar-6444e693.js → OrAvatar-53a4429d.js} +13 -8
- package/dist/esm/v3/{OrBottomSheet-13a416ef.js → OrBottomSheet-62817aec.js} +4 -2
- package/dist/esm/v3/{OrButton-c56998e7.js → OrButton-0fa67a0d.js} +13 -8
- package/dist/esm/v3/{OrCard-cd6af82e.js → OrCard-fd92f7c8.js} +11 -6
- package/dist/esm/v3/{OrCardCollection-47f61c40.js → OrCardCollection-dbb3e839.js} +19 -14
- package/dist/esm/v3/{OrCheckbox-16c1e2f4.js → OrCheckbox-3e139eac.js} +32 -40
- package/dist/esm/v3/{OrConfirm-8b7f29c2.js → OrConfirm-1bcd39b1.js} +4 -5
- package/dist/esm/v3/{OrError-19198748.js → OrError-ec8c709d.js} +12 -7
- package/dist/esm/v3/{OrErrorTag-308119de.js → OrErrorTag-98252eef.js} +13 -8
- package/dist/esm/v3/{OrExpansionPanel-3a4282da.js → OrExpansionPanel-f8d7ff8d.js} +13 -8
- package/dist/esm/v3/{OrFab-61131b31.js → OrFab-c8ae6e01.js} +9 -7
- package/dist/esm/v3/{OrHint-6863124f.js → OrHint-74bb732d.js} +12 -7
- package/dist/esm/v3/{OrIcon-34f59f73.js → OrIcon-b195169c.js} +11 -6
- package/dist/esm/v3/{OrIconButton-e5781317.js → OrIconButton-1a89fbf9.js} +7 -4
- package/dist/esm/v3/{OrInlineInput-09de432a.js → OrInlineInput-507fc99c.js} +33 -41
- package/dist/esm/v3/{OrInlineInputBox-09b33e18.js → OrInlineInputBox-8049f95a.js} +11 -6
- package/dist/esm/v3/{OrInlineTextarea-56328f22.js → OrInlineTextarea-53a9e027.js} +33 -41
- package/dist/esm/v3/{OrInput-6fb81556.js → OrInput-9c0426b9.js} +42 -45
- package/dist/esm/v3/{OrInputBox-e16ade90.js → OrInputBox-6d1b6059.js} +11 -6
- package/dist/esm/v3/{OrLabel-f700f9fb.js → OrLabel-bdaec602.js} +12 -7
- package/dist/esm/v3/{OrLink-07f6f27d.js → OrLink-338db3ca.js} +12 -7
- package/dist/esm/v3/{OrLoader-a53d2edf.js → OrLoader-b3cf4231.js} +12 -7
- package/dist/esm/v3/{OrMenu-7f3ea117.js → OrMenu-840038cd.js} +13 -8
- package/dist/esm/v3/{OrMenuItem-58707d47.js → OrMenuItem-9da279f6.js} +13 -8
- package/dist/esm/v3/{OrModal-10838da7.js → OrModal-7878cc39.js} +6 -3
- package/dist/esm/v3/{OrNotification-25da89ca.js → OrNotification-e1383681.js} +14 -9
- package/dist/esm/v3/{OrOverlay-afad3aa4.js → OrOverlay-738a44d5.js} +3 -1
- package/dist/esm/v3/{OrPagination-da9e5017.js → OrPagination-a703307d.js} +32 -20
- package/dist/esm/v3/{OrPopover-40217b49.js → OrPopover-1075dd38.js} +4 -2
- package/dist/esm/v3/{OrProgress-639ed5e8.js → OrProgress-407002e0.js} +12 -8
- package/dist/esm/v3/{OrRadio-bb9b37c1.js → OrRadio-54b6d0de.js} +29 -37
- package/dist/esm/v3/{OrSearch-e15955a7.js → OrSearch-9885d178.js} +13 -9
- package/dist/esm/v3/{OrSegmentedControl-880b4911.js → OrSegmentedControl-171cad78.js} +32 -19
- package/dist/esm/v3/{OrSelect-acf12fe6.js → OrSelect-8fbd88bc.js} +37 -28
- package/dist/esm/v3/OrSidebar-90cc25cd.js +396 -0
- package/dist/esm/v3/{OrSkeletonText-afd3d007.js → OrSkeletonText-3965ff71.js} +33 -22
- package/dist/esm/v3/{OrSortHeader-a39f77f9.js → OrSortHeader-fe1a9cf8.js} +26 -16
- package/dist/esm/v3/{OrSwitch-1c2196da.js → OrSwitch-cca30aa0.js} +31 -38
- package/dist/esm/v3/{OrTab-d3785ea4.js → OrTab-c131cf60.js} +11 -6
- package/dist/esm/v3/{OrTabs-328d41b9.js → OrTabs-d0ee6cef.js} +20 -13
- package/dist/esm/v3/{OrTag-34bf1713.js → OrTag-5d54f37d.js} +14 -9
- package/dist/esm/v3/{OrText-6b4f7cd1.js → OrText-ecb46923.js} +12 -7
- package/dist/esm/v3/{OrTextarea-37566985.js → OrTextarea-bb9ef3f2.js} +35 -47
- package/dist/esm/v3/{OrTooltip-b07616f4.js → OrTooltip-50d27b4f.js} +12 -8
- package/dist/esm/v3/components/index.js +47 -48
- package/dist/esm/v3/components/or-avatar-v3/OrAvatar.vue.d.ts +2 -2
- package/dist/esm/v3/components/or-avatar-v3/index.js +4 -2
- package/dist/esm/v3/components/or-bottom-sheet-v3/OrBottomSheet.vue.d.ts +2 -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 +2 -2
- package/dist/esm/v3/components/or-button-v3/index.js +4 -2
- package/dist/esm/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +2 -2
- package/dist/esm/v3/components/or-card-collection-v3/index.js +19 -20
- package/dist/esm/v3/components/or-card-v3/OrCard.vue.d.ts +2 -2
- package/dist/esm/v3/components/or-card-v3/index.js +3 -1
- package/dist/esm/v3/components/or-checkbox-v3/OrCheckbox.vue.d.ts +18 -23
- package/dist/esm/v3/components/or-checkbox-v3/index.js +3 -3
- package/dist/esm/v3/components/or-confirm-v3/index.js +19 -20
- package/dist/esm/v3/components/or-error-tag-v3/OrErrorTag.vue.d.ts +2 -2
- package/dist/esm/v3/components/or-error-tag-v3/index.js +4 -2
- package/dist/esm/v3/components/or-error-v3/OrError.vue.d.ts +2 -2
- package/dist/esm/v3/components/or-error-v3/index.js +3 -1
- package/dist/esm/v3/components/or-expansion-panel-v3/OrExpansionPanel.vue.d.ts +2 -2
- package/dist/esm/v3/components/or-expansion-panel-v3/index.js +4 -2
- package/dist/esm/v3/components/or-fab-v3/index.js +4 -2
- package/dist/esm/v3/components/or-hint-v3/OrHint.vue.d.ts +2 -2
- package/dist/esm/v3/components/or-hint-v3/index.js +3 -1
- package/dist/esm/v3/components/or-icon-button-v3/OrIconButton.vue.d.ts +2 -2
- package/dist/esm/v3/components/or-icon-button-v3/index.js +7 -6
- package/dist/esm/v3/components/or-icon-v3/OrIcon.vue.d.ts +2 -2
- package/dist/esm/v3/components/or-icon-v3/index.js +3 -1
- package/dist/esm/v3/components/or-inline-input-box-v3/OrInlineInputBox.vue.d.ts +2 -2
- package/dist/esm/v3/components/or-inline-input-box-v3/index.js +3 -1
- package/dist/esm/v3/components/or-inline-input-v3/OrInlineInput.vue.d.ts +19 -38
- package/dist/esm/v3/components/or-inline-input-v3/index.js +11 -12
- package/dist/esm/v3/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +19 -38
- package/dist/esm/v3/components/or-inline-textarea-v3/index.js +11 -12
- package/dist/esm/v3/components/or-input-box-v3/OrInputBox.vue.d.ts +2 -2
- package/dist/esm/v3/components/or-input-box-v3/index.js +3 -1
- package/dist/esm/v3/components/or-input-v3/OrInput.vue.d.ts +21 -45
- package/dist/esm/v3/components/or-input-v3/index.js +12 -13
- package/dist/esm/v3/components/or-label-v3/OrLabel.vue.d.ts +2 -2
- package/dist/esm/v3/components/or-label-v3/index.js +3 -1
- package/dist/esm/v3/components/or-link-v3/OrLink.vue.d.ts +2 -2
- package/dist/esm/v3/components/or-link-v3/index.js +3 -1
- package/dist/esm/v3/components/or-loader-v3/OrLoader.vue.d.ts +2 -2
- package/dist/esm/v3/components/or-loader-v3/index.js +3 -1
- package/dist/esm/v3/components/or-menu-item-v3/OrMenuItem.vue.d.ts +2 -2
- package/dist/esm/v3/components/or-menu-item-v3/index.js +4 -2
- package/dist/esm/v3/components/or-menu-v3/OrMenu.vue.d.ts +2 -2
- package/dist/esm/v3/components/or-menu-v3/index.js +6 -5
- package/dist/esm/v3/components/or-modal-v3/OrModal.vue.d.ts +2 -2
- package/dist/esm/v3/components/or-modal-v3/index.js +9 -8
- package/dist/esm/v3/components/or-notification-v3/OrNotification.vue.d.ts +2 -2
- package/dist/esm/v3/components/or-notification-v3/index.js +9 -8
- package/dist/esm/v3/components/or-overlay-v3/OrOverlay.vue.d.ts +2 -2
- package/dist/esm/v3/components/or-overlay-v3/index.js +2 -1
- package/dist/esm/v3/components/or-pagination-v3/OrPagination.vue.d.ts +13 -2
- package/dist/esm/v3/components/or-pagination-v3/index.js +11 -10
- package/dist/esm/v3/components/or-popover-v3/OrPopover.vue.d.ts +2 -2
- package/dist/esm/v3/components/or-popover-v3/index.js +4 -3
- package/dist/esm/v3/components/or-progress-v3/OrProgress.vue.d.ts +2 -2
- package/dist/esm/v3/components/or-progress-v3/index.js +3 -2
- package/dist/esm/v3/components/or-radio-v3/OrRadio.vue.d.ts +15 -20
- package/dist/esm/v3/components/or-radio-v3/index.js +3 -3
- package/dist/esm/v3/components/or-search-v3/OrSearch.vue.d.ts +2 -2
- package/dist/esm/v3/components/or-search-v3/index.js +14 -15
- package/dist/esm/v3/components/or-segmented-control-v3/OrSegmentedControl.vue.d.ts +16 -5
- package/dist/{bundled/v2/components/or-segmented-control-v3/partials → esm/v3/components/or-segmented-control-v3/components}/or-segmented-control-item/OrSegmentedControlItem.vue.d.ts +2 -2
- package/dist/esm/v3/components/or-segmented-control-v3/index.js +3 -1
- package/dist/esm/v3/components/or-select-v3/OrSelect.vue.d.ts +16 -5
- package/dist/esm/v3/components/or-select-v3/index.js +17 -18
- package/dist/esm/v3/components/or-sidebar-v3/OrSidebar.stories3.d.ts +36 -1
- package/dist/esm/v3/components/or-sidebar-v3/OrSidebar.vue.d.ts +49 -4
- package/dist/esm/v3/components/or-sidebar-v3/OrSidebarCollapseButton.stories3.d.ts +12 -0
- package/dist/esm/v3/components/or-sidebar-v3/OrSidebarCollapseButton.vue.d.ts +53 -0
- package/dist/esm/v3/components/or-sidebar-v3/index.js +12 -1
- package/dist/esm/v3/components/or-sidebar-v3/styles.d.ts +8 -1
- package/dist/esm/v3/components/or-skeleton-v3/OrSkeletonCircle.vue.d.ts +2 -2
- package/dist/esm/v3/components/or-skeleton-v3/OrSkeletonRect.vue.d.ts +2 -2
- package/dist/esm/v3/components/or-skeleton-v3/OrSkeletonText.vue.d.ts +4 -4
- package/dist/esm/v3/components/or-skeleton-v3/index.js +4 -2
- package/dist/esm/v3/components/or-sort-header-v3/OrSortHeader.vue.d.ts +15 -4
- package/dist/esm/v3/components/or-sort-header-v3/index.js +4 -2
- package/dist/esm/v3/components/or-switch-v3/OrSwitch.vue.d.ts +18 -23
- package/dist/esm/v3/components/or-switch-v3/index.js +4 -4
- package/dist/esm/v3/components/or-tab-v3/OrTab.vue.d.ts +2 -2
- package/dist/esm/v3/components/or-tab-v3/index.js +3 -1
- package/dist/esm/v3/components/or-tabs-v3/OrTabs.vue.d.ts +15 -4
- package/dist/esm/v3/components/or-tabs-v3/index.js +9 -8
- package/dist/esm/v3/components/or-tag-v3/OrTag.vue.d.ts +2 -2
- package/dist/esm/v3/components/or-tag-v3/index.js +9 -8
- package/dist/esm/v3/components/or-text-v3/OrText.vue.d.ts +2 -2
- package/dist/esm/v3/components/or-text-v3/index.js +3 -1
- package/dist/esm/v3/components/or-textarea-v3/OrTextarea.vue.d.ts +19 -47
- package/dist/esm/v3/components/or-textarea-v3/index.js +6 -7
- package/dist/esm/v3/components/or-toast-v3/index.js +9 -8
- package/dist/esm/v3/components/or-tooltip-v3/OrTooltip.vue.d.ts +2 -2
- package/dist/esm/v3/components/or-tooltip-v3/index.js +5 -4
- package/dist/esm/v3/hooks/index.d.ts +1 -3
- package/dist/esm/v3/hooks/index.js +1 -2
- package/dist/esm/v3/hooks/useClassAttribute.d.ts +3 -0
- package/dist/esm/v3/index.js +46 -47
- package/dist/esm/v3/{types-7f17b4b2.js → types-2692e337.js} +2 -2
- package/dist/esm/v3/useClassAttribute-47fdb016.js +32 -0
- package/package.json +1 -1
- package/src/components/or-avatar-v3/OrAvatar.vue +9 -3
- package/src/components/or-bottom-sheet-v3/OrBottomSheet.vue +4 -0
- package/src/components/or-button-v3/OrButton.vue +7 -0
- package/src/components/or-card-collection-v3/OrCardCollection.vue +17 -9
- package/src/components/or-card-v3/OrCard.vue +7 -0
- package/src/components/or-checkbox-v3/OrCheckbox.stories3.ts +7 -3
- package/src/components/or-checkbox-v3/OrCheckbox.vue +26 -34
- package/src/components/or-confirm-v3/OrConfirm.vue +12 -19
- package/src/components/or-error-tag-v3/OrErrorTag.vue +7 -0
- package/src/components/or-error-v3/OrError.vue +7 -0
- package/src/components/or-expansion-panel-v3/OrExpansionPanel.vue +7 -0
- package/src/components/or-fab-v3/OrFab.vue +3 -0
- package/src/components/or-hint-v3/OrHint.vue +7 -0
- package/src/components/or-icon-button-v3/OrIconButton.vue +4 -0
- package/src/components/or-icon-v3/OrIcon.vue +7 -0
- package/src/components/or-inline-input-box-v3/OrInlineInputBox.vue +7 -0
- package/src/components/or-inline-input-v3/OrInlineInput.stories3.ts +4 -0
- package/src/components/or-inline-input-v3/OrInlineInput.vue +27 -36
- package/src/components/or-inline-textarea-v3/OrInlineTextarea.stories3.ts +4 -0
- package/src/components/or-inline-textarea-v3/OrInlineTextarea.vue +27 -36
- package/src/components/or-input-box-v3/OrInputBox.vue +7 -0
- package/src/components/or-input-v3/OrInput.stories3.ts +8 -4
- package/src/components/or-input-v3/OrInput.vue +34 -37
- package/src/components/or-label-v3/OrLabel.vue +7 -0
- package/src/components/or-link-v3/OrLink.vue +7 -0
- package/src/components/or-loader-v3/OrLoader.vue +8 -1
- package/src/components/or-menu-item-v3/OrMenuItem.vue +7 -0
- package/src/components/or-menu-v3/OrMenu.vue +7 -0
- package/src/components/or-modal-v3/OrModal.vue +4 -0
- package/src/components/or-notification-v3/OrNotification.vue +7 -0
- package/src/components/or-overlay-v3/OrOverlay.vue +4 -1
- package/src/components/or-pagination-v3/OrPagination.stories3.ts +4 -0
- package/src/components/or-pagination-v3/OrPagination.vue +27 -9
- package/src/components/or-popover-v3/OrPopover.vue +4 -1
- package/src/components/or-progress-v3/OrProgress.vue +20 -3
- package/src/components/or-radio-v3/OrRadio.stories3.ts +7 -3
- package/src/components/or-radio-v3/OrRadio.vue +25 -33
- package/src/components/or-search-v3/OrSearch.vue +8 -1
- package/src/components/or-segmented-control-v3/OrSegmentedControl.stories3.ts +4 -0
- package/src/components/or-segmented-control-v3/OrSegmentedControl.vue +18 -6
- package/src/components/or-segmented-control-v3/{partials → components}/or-segmented-control-item/OrSegmentedControlItem.vue +7 -0
- package/src/components/or-select-v3/OrSelect.stories3.ts +4 -0
- package/src/components/or-select-v3/OrSelect.vue +18 -8
- package/src/components/or-sidebar-v3/OrSidebar.docs.mdx +6 -0
- package/src/components/or-sidebar-v3/OrSidebar.stories3.ts +219 -6
- package/src/components/or-sidebar-v3/OrSidebar.vue +121 -22
- package/src/components/or-sidebar-v3/OrSidebarCollapseButton.stories3.ts +48 -0
- package/src/components/or-sidebar-v3/OrSidebarCollapseButton.vue +74 -0
- package/src/components/or-sidebar-v3/styles.ts +164 -9
- package/src/components/or-skeleton-v3/OrSkeletonCircle.vue +8 -2
- package/src/components/or-skeleton-v3/OrSkeletonRect.vue +8 -3
- package/src/components/or-skeleton-v3/OrSkeletonText.vue +9 -5
- package/src/components/or-sort-header-v3/OrSortHeader.stories3.ts +7 -3
- package/src/components/or-sort-header-v3/OrSortHeader.vue +19 -8
- package/src/components/or-switch-v3/OrSwitch.stories3.ts +7 -3
- package/src/components/or-switch-v3/OrSwitch.vue +25 -33
- package/src/components/or-tab-v3/OrTab.vue +7 -0
- package/src/components/or-tabs-v3/OrTabs.stories3.ts +4 -0
- package/src/components/or-tabs-v3/OrTabs.vue +16 -7
- package/src/components/or-tag-v3/OrTag.vue +7 -0
- package/src/components/or-tag-v3/styles.ts +3 -0
- package/src/components/or-text-v3/OrText.vue +7 -0
- package/src/components/or-textarea-v3/OrTextarea.stories3.ts +8 -4
- package/src/components/or-textarea-v3/OrTextarea.vue +28 -41
- package/src/components/or-tooltip-v3/OrTooltip.vue +7 -0
- package/src/hooks/index.ts +1 -3
- package/src/hooks/useClassAttribute.ts +39 -0
- package/dist/bundled/v2/OrSidebar-c95ef614.js +0 -230
- package/dist/bundled/v2/hooks/useControlAttributes.d.ts +0 -8
- package/dist/bundled/v2/hooks/useIdAttribute.d.ts +0 -2
- package/dist/bundled/v2/hooks/useValidationAttributes.d.ts +0 -12
- package/dist/bundled/v2/useIdAttribute-cf61643f.js +0 -22
- package/dist/bundled/v2/useValidationAttributes-6df7bcf9.js +0 -17
- package/dist/bundled/v3/OrIcon-1a5c9091.js +0 -12
- package/dist/bundled/v3/OrSidebar.vue_vue_type_script_lang-ce0b152c.js +0 -181
- package/dist/bundled/v3/hooks/useControlAttributes.d.ts +0 -8
- package/dist/bundled/v3/hooks/useIdAttribute.d.ts +0 -2
- package/dist/bundled/v3/hooks/useValidationAttributes.d.ts +0 -12
- package/dist/bundled/v3/useIdAttribute-b2e42f31.js +0 -21
- package/dist/bundled/v3/useValidationAttributes-5428d8fa.js +0 -16
- package/dist/esm/v2/OrSidebar-fabc7bc9.js +0 -228
- package/dist/esm/v2/hooks/useControlAttributes.d.ts +0 -8
- package/dist/esm/v2/hooks/useIdAttribute.d.ts +0 -2
- package/dist/esm/v2/hooks/useValidationAttributes.d.ts +0 -12
- package/dist/esm/v2/useIdAttribute-859439f0.js +0 -21
- package/dist/esm/v2/useValidationAttributes-d1abbe34.js +0 -16
- package/dist/esm/v3/OrSidebar-a62972f5.js +0 -206
- package/dist/esm/v3/hooks/useControlAttributes.d.ts +0 -8
- package/dist/esm/v3/hooks/useIdAttribute.d.ts +0 -2
- package/dist/esm/v3/hooks/useValidationAttributes.d.ts +0 -12
- package/dist/esm/v3/useIdAttribute-859439f0.js +0 -21
- package/dist/esm/v3/useValidationAttributes-d1abbe34.js +0 -16
- package/src/hooks/useControlAttributes.ts +0 -19
- package/src/hooks/useIdAttribute.ts +0 -9
- package/src/hooks/useValidationAttributes.ts +0 -25
- /package/dist/bundled/v2/components/or-segmented-control-v3/{partials → components}/or-segmented-control-item/styles.d.ts +0 -0
- /package/dist/bundled/v3/components/or-segmented-control-v3/{partials → components}/or-segmented-control-item/styles.d.ts +0 -0
- /package/dist/esm/v2/components/or-segmented-control-v3/{partials → components}/or-segmented-control-item/styles.d.ts +0 -0
- /package/dist/esm/v3/components/or-segmented-control-v3/{partials → components}/or-segmented-control-item/styles.d.ts +0 -0
- /package/src/components/or-segmented-control-v3/{partials → components}/or-segmented-control-item/styles.ts +0 -0
|
@@ -3,8 +3,11 @@ import OrSidebarDocs from './OrSidebar.docs.mdx';
|
|
|
3
3
|
import OrSidebar from './OrSidebar.vue';
|
|
4
4
|
import { OrSidebarPlacement } from './props';
|
|
5
5
|
import { action } from '@storybook/addon-actions';
|
|
6
|
+
import { ref } from 'vue-demi';
|
|
6
7
|
import * as Faker from 'faker';
|
|
7
8
|
import { OrButtonV3 as OrButton } from '../or-button-v3';
|
|
9
|
+
import { OrIconButtonV3 as OrIconButton } from '../or-icon-button-v3';
|
|
10
|
+
import { OrTabsV3 as OrTabs, TabsItem } from '../or-tabs-v3';
|
|
8
11
|
|
|
9
12
|
export default {
|
|
10
13
|
title: 'Components/Sidebar',
|
|
@@ -39,6 +42,15 @@ export default {
|
|
|
39
42
|
control: { type: 'text' },
|
|
40
43
|
},
|
|
41
44
|
|
|
45
|
+
toolbar: {
|
|
46
|
+
type: {
|
|
47
|
+
name: 'string',
|
|
48
|
+
required: false,
|
|
49
|
+
},
|
|
50
|
+
|
|
51
|
+
control: { type: 'text' },
|
|
52
|
+
},
|
|
53
|
+
|
|
42
54
|
// Props
|
|
43
55
|
width: {
|
|
44
56
|
control: { type: 'number' },
|
|
@@ -52,6 +64,14 @@ export default {
|
|
|
52
64
|
control: { type: 'select' },
|
|
53
65
|
options: Object.values(OrSidebarPlacement),
|
|
54
66
|
},
|
|
67
|
+
|
|
68
|
+
draggable: {
|
|
69
|
+
control: { type: 'boolean' },
|
|
70
|
+
},
|
|
71
|
+
|
|
72
|
+
collapsible: {
|
|
73
|
+
control: { type: 'boolean' },
|
|
74
|
+
},
|
|
55
75
|
},
|
|
56
76
|
|
|
57
77
|
parameters: {
|
|
@@ -67,6 +87,7 @@ const DefaultTemplate: StoryFn<typeof OrSidebar> = (args) => ({
|
|
|
67
87
|
components: {
|
|
68
88
|
OrSidebar,
|
|
69
89
|
OrButton,
|
|
90
|
+
OrIconButton,
|
|
70
91
|
},
|
|
71
92
|
|
|
72
93
|
setup() {
|
|
@@ -78,9 +99,9 @@ const DefaultTemplate: StoryFn<typeof OrSidebar> = (args) => ({
|
|
|
78
99
|
},
|
|
79
100
|
|
|
80
101
|
template: `
|
|
81
|
-
<div style="display: flex; flex-direction: row; border: 1px solid gray; max-height:
|
|
102
|
+
<div style="display: flex; flex-direction: row; border: 1px solid gray; max-height: 750px">
|
|
82
103
|
<div style="flex-grow: 1; overflow: auto">
|
|
83
|
-
${Faker.lorem.paragraphs(
|
|
104
|
+
${Faker.lorem.paragraphs(10)}
|
|
84
105
|
</div>
|
|
85
106
|
<OrSidebar v-bind="args" @change:width="onChangeWidth">
|
|
86
107
|
<template v-if="${!!args.header}" v-slot:header>
|
|
@@ -92,6 +113,9 @@ const DefaultTemplate: StoryFn<typeof OrSidebar> = (args) => ({
|
|
|
92
113
|
<template v-if="${!!args.footer}" v-slot:footer>
|
|
93
114
|
${args.footer}
|
|
94
115
|
</template>
|
|
116
|
+
<template v-if="${!!args.toolbar}" v-slot:toolbar>
|
|
117
|
+
${args.toolbar}
|
|
118
|
+
</template>
|
|
95
119
|
</OrSidebar>
|
|
96
120
|
</div>
|
|
97
121
|
`,
|
|
@@ -101,6 +125,7 @@ const LeftTemplate: StoryFn<typeof OrSidebar> = (args) => ({
|
|
|
101
125
|
components: {
|
|
102
126
|
OrSidebar,
|
|
103
127
|
OrButton,
|
|
128
|
+
OrIconButton,
|
|
104
129
|
},
|
|
105
130
|
|
|
106
131
|
setup() {
|
|
@@ -112,7 +137,7 @@ const LeftTemplate: StoryFn<typeof OrSidebar> = (args) => ({
|
|
|
112
137
|
},
|
|
113
138
|
|
|
114
139
|
template: `
|
|
115
|
-
<div style="display: flex; flex-direction: row; border: 1px solid gray; max-height:
|
|
140
|
+
<div style="display: flex; flex-direction: row; border: 1px solid gray; max-height: 750px">
|
|
116
141
|
<OrSidebar v-bind="args" @change:width="onChangeWidth">
|
|
117
142
|
<template v-if="${!!args.header}" v-slot:header>
|
|
118
143
|
${args.header}
|
|
@@ -123,14 +148,137 @@ const LeftTemplate: StoryFn<typeof OrSidebar> = (args) => ({
|
|
|
123
148
|
<template v-if="${!!args.footer}" v-slot:footer>
|
|
124
149
|
${args.footer}
|
|
125
150
|
</template>
|
|
151
|
+
<template v-if="${!!args.toolbar}" v-slot:toolbar>
|
|
152
|
+
${args.toolbar}
|
|
153
|
+
</template>
|
|
126
154
|
</OrSidebar>
|
|
127
155
|
<div style="flex-grow: 1; overflow: auto">
|
|
128
|
-
${Faker.lorem.paragraphs(
|
|
156
|
+
${Faker.lorem.paragraphs(10)}
|
|
129
157
|
</div>
|
|
130
158
|
</div>
|
|
131
159
|
`,
|
|
132
160
|
});
|
|
133
161
|
|
|
162
|
+
const TabsTemplate: StoryFn<typeof OrSidebar> = (args) => ({
|
|
163
|
+
components: {
|
|
164
|
+
OrSidebar,
|
|
165
|
+
OrButton,
|
|
166
|
+
OrIconButton,
|
|
167
|
+
OrTabs,
|
|
168
|
+
},
|
|
169
|
+
|
|
170
|
+
setup() {
|
|
171
|
+
// State
|
|
172
|
+
const model = ref<string>();
|
|
173
|
+
|
|
174
|
+
return {
|
|
175
|
+
args,
|
|
176
|
+
model,
|
|
177
|
+
};
|
|
178
|
+
},
|
|
179
|
+
|
|
180
|
+
methods: {
|
|
181
|
+
onChangeWidth: action('change:width'),
|
|
182
|
+
},
|
|
183
|
+
|
|
184
|
+
template: `
|
|
185
|
+
<div style="display: flex; flex-direction: row; border: 1px solid gray; max-height: 750px">
|
|
186
|
+
<div style="flex-grow: 1; overflow: auto">
|
|
187
|
+
${Faker.lorem.paragraphs(10)}
|
|
188
|
+
</div>
|
|
189
|
+
<OrSidebar v-bind="args" @change:width="onChangeWidth">
|
|
190
|
+
<template v-if="${!!args.header}" v-slot:header>
|
|
191
|
+
${args.header}
|
|
192
|
+
</template>
|
|
193
|
+
<template v-if="${!!args.default}" v-slot:default>
|
|
194
|
+
${args.default}
|
|
195
|
+
</template>
|
|
196
|
+
<template v-else v-slot:default>
|
|
197
|
+
<or-tabs
|
|
198
|
+
v-model="model"
|
|
199
|
+
:items="args.items"
|
|
200
|
+
>
|
|
201
|
+
<template v-for="item in args.items" #[item.value]>
|
|
202
|
+
{{ item.label }} Content
|
|
203
|
+
${Faker.lorem.paragraphs(3)}
|
|
204
|
+
</template>
|
|
205
|
+
</or-tabs>
|
|
206
|
+
</template>
|
|
207
|
+
<template v-if="${!!args.footer}" v-slot:footer>
|
|
208
|
+
${args.footer}
|
|
209
|
+
</template>
|
|
210
|
+
<template v-if="${!!args.toolbar}" v-slot:toolbar>
|
|
211
|
+
${args.toolbar}
|
|
212
|
+
</template>
|
|
213
|
+
</OrSidebar>
|
|
214
|
+
</div>
|
|
215
|
+
`,
|
|
216
|
+
});
|
|
217
|
+
|
|
218
|
+
const longToolbar = `
|
|
219
|
+
<or-icon-button
|
|
220
|
+
icon="refresh"
|
|
221
|
+
color="inherit"
|
|
222
|
+
/>
|
|
223
|
+
<hr class="w-full border-outline-variant dark:border-outline-variant-dark" />
|
|
224
|
+
<or-icon-button
|
|
225
|
+
icon="add"
|
|
226
|
+
color="inherit"
|
|
227
|
+
/>
|
|
228
|
+
<or-icon-button
|
|
229
|
+
icon="zoom_out_map"
|
|
230
|
+
color="inherit"
|
|
231
|
+
/>
|
|
232
|
+
<or-icon-button
|
|
233
|
+
icon="remove"
|
|
234
|
+
color="inherit"
|
|
235
|
+
/>
|
|
236
|
+
<hr class="w-full border-outline-variant dark:border-outline-variant-dark" />
|
|
237
|
+
<or-icon-button
|
|
238
|
+
icon="description"
|
|
239
|
+
color="inherit"
|
|
240
|
+
/>
|
|
241
|
+
<or-icon-button
|
|
242
|
+
icon="tab_unselected"
|
|
243
|
+
color="inherit"
|
|
244
|
+
/>
|
|
245
|
+
<hr class="w-full border-outline-variant dark:border-outline-variant-dark" />
|
|
246
|
+
<or-icon-button
|
|
247
|
+
icon="create_new_folder"
|
|
248
|
+
color="inherit"
|
|
249
|
+
/>
|
|
250
|
+
<or-icon-button
|
|
251
|
+
icon="content_paste"
|
|
252
|
+
color="inherit"
|
|
253
|
+
/>
|
|
254
|
+
<or-icon-button
|
|
255
|
+
icon="location_on"
|
|
256
|
+
color="inherit"
|
|
257
|
+
/>
|
|
258
|
+
<or-icon-button
|
|
259
|
+
icon="copy_all"
|
|
260
|
+
color="inherit"
|
|
261
|
+
/>
|
|
262
|
+
<or-icon-button
|
|
263
|
+
icon="call_split"
|
|
264
|
+
color="inherit"
|
|
265
|
+
/>
|
|
266
|
+
<hr class="w-full border-outline-variant dark:border-outline-variant-dark" />
|
|
267
|
+
<or-icon-button
|
|
268
|
+
icon="sell"
|
|
269
|
+
color="inherit"
|
|
270
|
+
/>
|
|
271
|
+
<div class="mt-auto" />
|
|
272
|
+
<or-icon-button
|
|
273
|
+
icon="terminal"
|
|
274
|
+
color="inherit"
|
|
275
|
+
/>
|
|
276
|
+
<or-icon-button
|
|
277
|
+
icon="delete"
|
|
278
|
+
color="inherit"
|
|
279
|
+
/>
|
|
280
|
+
`;
|
|
281
|
+
|
|
134
282
|
export const Default = DefaultTemplate.bind({});
|
|
135
283
|
Default.args = {
|
|
136
284
|
header: 'Header',
|
|
@@ -138,11 +286,24 @@ Default.args = {
|
|
|
138
286
|
footer: 'Footer',
|
|
139
287
|
};
|
|
140
288
|
|
|
141
|
-
export const
|
|
142
|
-
|
|
289
|
+
export const WithCustomWidthConstraints = DefaultTemplate.bind({});
|
|
290
|
+
WithCustomWidthConstraints.args = {
|
|
143
291
|
...Default.args,
|
|
144
292
|
width: 250,
|
|
145
293
|
minimumWidth: 200,
|
|
294
|
+
maximumWidth: 500,
|
|
295
|
+
};
|
|
296
|
+
|
|
297
|
+
export const NotDraggable = DefaultTemplate.bind({});
|
|
298
|
+
NotDraggable.args = {
|
|
299
|
+
...Default.args,
|
|
300
|
+
draggable: false,
|
|
301
|
+
};
|
|
302
|
+
|
|
303
|
+
export const Collapsible = DefaultTemplate.bind({});
|
|
304
|
+
Collapsible.args = {
|
|
305
|
+
...Default.args,
|
|
306
|
+
collapsible: true,
|
|
146
307
|
};
|
|
147
308
|
|
|
148
309
|
export const OnlyContent = DefaultTemplate.bind({});
|
|
@@ -167,8 +328,60 @@ WithFooter.args = {
|
|
|
167
328
|
`,
|
|
168
329
|
};
|
|
169
330
|
|
|
331
|
+
export const WithToolbar = DefaultTemplate.bind({});
|
|
332
|
+
WithToolbar.args = {
|
|
333
|
+
...OnlyContent.args,
|
|
334
|
+
toolbar: longToolbar,
|
|
335
|
+
};
|
|
336
|
+
|
|
337
|
+
export const CollapsibleWithToolbar = DefaultTemplate.bind({});
|
|
338
|
+
CollapsibleWithToolbar.args = {
|
|
339
|
+
...WithToolbar.args,
|
|
340
|
+
collapsible: true,
|
|
341
|
+
};
|
|
342
|
+
|
|
343
|
+
export const WithTabs = TabsTemplate.bind({});
|
|
344
|
+
WithTabs.args = {
|
|
345
|
+
minimumWidth: 352,
|
|
346
|
+
header: 'Headline',
|
|
347
|
+
items: Array.from<string, TabsItem>([
|
|
348
|
+
'Alfa',
|
|
349
|
+
'Bravo',
|
|
350
|
+
'Charlie',
|
|
351
|
+
'Delta',
|
|
352
|
+
'Echo',
|
|
353
|
+
'Foxtrot',
|
|
354
|
+
'Golf',
|
|
355
|
+
'Hotel',
|
|
356
|
+
'India',
|
|
357
|
+
'Juliett',
|
|
358
|
+
], (item) => ({
|
|
359
|
+
value: item.toLowerCase(),
|
|
360
|
+
label: item,
|
|
361
|
+
})),
|
|
362
|
+
footer: `
|
|
363
|
+
<div style="display: flex; flex-direction: row; justify-content: end; gap: 16px">
|
|
364
|
+
<or-button color="danger" variant="outlined">Delete</or-button>
|
|
365
|
+
<or-button variant="outlined" class="ml-auto">Cancel</or-button>
|
|
366
|
+
<or-button>Save</or-button>
|
|
367
|
+
</div>
|
|
368
|
+
`,
|
|
369
|
+
};
|
|
370
|
+
|
|
170
371
|
export const LeftSidebar = LeftTemplate.bind({});
|
|
171
372
|
LeftSidebar.args = {
|
|
172
373
|
...Default.args,
|
|
173
374
|
side: 'left',
|
|
174
375
|
};
|
|
376
|
+
|
|
377
|
+
export const WithLeftToolbar = LeftTemplate.bind({});
|
|
378
|
+
WithLeftToolbar.args = {
|
|
379
|
+
...LeftSidebar.args,
|
|
380
|
+
toolbar: longToolbar,
|
|
381
|
+
};
|
|
382
|
+
|
|
383
|
+
export const CollapsibleWithWithLeftToolbar = LeftTemplate.bind({});
|
|
384
|
+
CollapsibleWithWithLeftToolbar.args = {
|
|
385
|
+
...WithLeftToolbar.args,
|
|
386
|
+
collapsible: true,
|
|
387
|
+
};
|
|
@@ -2,28 +2,55 @@
|
|
|
2
2
|
<aside
|
|
3
3
|
ref="root"
|
|
4
4
|
:class="rootStyles"
|
|
5
|
-
:style="sidebarStyle"
|
|
6
5
|
>
|
|
7
6
|
<div
|
|
8
|
-
|
|
9
|
-
:class="
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
v-if="side === 'right' && isShowingToolbar"
|
|
8
|
+
:class="toolbarStyles"
|
|
9
|
+
>
|
|
10
|
+
<slot name="toolbar" />
|
|
11
|
+
</div>
|
|
12
|
+
<div
|
|
13
|
+
:class="sidebarStyles"
|
|
14
|
+
:style="sidebarStyle"
|
|
15
|
+
>
|
|
12
16
|
<div
|
|
13
|
-
v-if="
|
|
14
|
-
|
|
17
|
+
v-if="draggable && !isCollapsed"
|
|
18
|
+
ref="resizeBar"
|
|
19
|
+
:class="resizeStyles"
|
|
20
|
+
/>
|
|
21
|
+
<or-sidebar-collapse-button
|
|
22
|
+
v-if="collapsible"
|
|
23
|
+
v-model="isCollapsed"
|
|
24
|
+
:class="collapsibleButtonStyles"
|
|
25
|
+
:side="side"
|
|
26
|
+
/>
|
|
27
|
+
<div
|
|
28
|
+
v-show="!isCollapsed"
|
|
29
|
+
:class="mainStyles"
|
|
15
30
|
>
|
|
16
|
-
<
|
|
31
|
+
<div
|
|
32
|
+
v-if="$slots.header"
|
|
33
|
+
:class="headerStyles"
|
|
34
|
+
>
|
|
35
|
+
<slot name="header" />
|
|
36
|
+
</div>
|
|
37
|
+
<div :class="contentStyles">
|
|
38
|
+
<slot />
|
|
39
|
+
</div>
|
|
17
40
|
</div>
|
|
18
|
-
<div
|
|
19
|
-
|
|
41
|
+
<div
|
|
42
|
+
v-if="$slots.footer"
|
|
43
|
+
v-show="!isCollapsed"
|
|
44
|
+
:class="footerStyles"
|
|
45
|
+
>
|
|
46
|
+
<slot name="footer" />
|
|
20
47
|
</div>
|
|
21
48
|
</div>
|
|
22
49
|
<div
|
|
23
|
-
v-if="
|
|
24
|
-
:class="
|
|
50
|
+
v-if="side === 'left' && isShowingToolbar"
|
|
51
|
+
:class="toolbarStyles"
|
|
25
52
|
>
|
|
26
|
-
<slot name="
|
|
53
|
+
<slot name="toolbar" />
|
|
27
54
|
</div>
|
|
28
55
|
</aside>
|
|
29
56
|
</template>
|
|
@@ -31,34 +58,47 @@
|
|
|
31
58
|
<script lang="ts">
|
|
32
59
|
import { useDraggable, useElementBounding } from '@vueuse/core';
|
|
33
60
|
import _ from 'lodash';
|
|
34
|
-
import { computed, defineComponent, PropType, ref, watch } from 'vue-demi';
|
|
61
|
+
import { computed, defineComponent, PropType, ref, watch, useSlots } from 'vue-demi';
|
|
35
62
|
import { OrSidebarPlacement } from './props';
|
|
36
63
|
import {
|
|
37
64
|
SidebarRoot,
|
|
38
|
-
|
|
65
|
+
SidebarBar,
|
|
66
|
+
SidebarToolbar,
|
|
67
|
+
SidebarSides,
|
|
68
|
+
SidebarToolbarSides,
|
|
39
69
|
SidebarResize,
|
|
40
70
|
SidebarResizeSides,
|
|
71
|
+
SidebarCollapseButton,
|
|
72
|
+
SidebarCollapseButtonSides,
|
|
41
73
|
SidebarResizingSides,
|
|
42
74
|
SidebarMain,
|
|
43
75
|
SidebarHeader,
|
|
44
76
|
SidebarContent,
|
|
45
77
|
SidebarFooter,
|
|
46
78
|
} from './styles';
|
|
79
|
+
import OrSidebarCollapseButton from './OrSidebarCollapseButton.vue';
|
|
47
80
|
|
|
48
81
|
export default defineComponent({
|
|
49
82
|
name: 'OrSidebar',
|
|
50
83
|
|
|
84
|
+
components: {
|
|
85
|
+
OrSidebarCollapseButton,
|
|
86
|
+
},
|
|
87
|
+
|
|
51
88
|
props: {
|
|
52
89
|
width: {
|
|
53
90
|
type: Number,
|
|
54
|
-
|
|
55
|
-
default: 0,
|
|
91
|
+
default: 320,
|
|
56
92
|
validator: (value?: any) => _.isNumber(value) && value >= 0,
|
|
57
93
|
},
|
|
58
94
|
minimumWidth: {
|
|
59
95
|
type: Number,
|
|
60
|
-
|
|
61
|
-
|
|
96
|
+
default: 256,
|
|
97
|
+
validator: (value?: any) => _.isNumber(value) && value >= 0,
|
|
98
|
+
},
|
|
99
|
+
maximumWidth: {
|
|
100
|
+
type: Number,
|
|
101
|
+
default: 384,
|
|
62
102
|
validator: (value?: any) => _.isNumber(value) && value >= 0,
|
|
63
103
|
},
|
|
64
104
|
/**
|
|
@@ -73,10 +113,24 @@ export default defineComponent({
|
|
|
73
113
|
default: OrSidebarPlacement.right,
|
|
74
114
|
validator: (value?: any) => _.includes(_.values(OrSidebarPlacement), value),
|
|
75
115
|
},
|
|
116
|
+
draggable: {
|
|
117
|
+
type: Boolean,
|
|
118
|
+
default: true,
|
|
119
|
+
},
|
|
120
|
+
collapsible: {
|
|
121
|
+
type: Boolean,
|
|
122
|
+
default: false,
|
|
123
|
+
},
|
|
76
124
|
},
|
|
77
125
|
|
|
78
126
|
emits: ['change:width'],
|
|
79
127
|
|
|
128
|
+
expose: [
|
|
129
|
+
'root',
|
|
130
|
+
'open',
|
|
131
|
+
'close',
|
|
132
|
+
],
|
|
133
|
+
|
|
80
134
|
setup(props, { emit }) {
|
|
81
135
|
// Refs
|
|
82
136
|
const root = ref<HTMLElement>();
|
|
@@ -84,20 +138,36 @@ export default defineComponent({
|
|
|
84
138
|
|
|
85
139
|
const parentContainer = computed(() => root.value?.parentElement);
|
|
86
140
|
|
|
141
|
+
// Slots
|
|
142
|
+
const { toolbar: toolbarSlot } = useSlots();
|
|
143
|
+
|
|
87
144
|
// State
|
|
88
145
|
const startPositionX = ref(0);
|
|
89
146
|
const isResizing = ref(false);
|
|
147
|
+
const isCollapsed = ref(false);
|
|
148
|
+
const maximumWidth = ref(props.maximumWidth || 384);
|
|
90
149
|
const localWidth = ref(props.width >= props.minimumWidth ? props.width : props.minimumWidth);
|
|
91
150
|
|
|
151
|
+
const isShowingToolbar = computed(() => !!toolbarSlot);
|
|
152
|
+
|
|
92
153
|
// Styles
|
|
93
154
|
const sidebarStyle = computed(() => ({
|
|
94
|
-
width: localWidth.value + 'px',
|
|
155
|
+
width: (isCollapsed.value ? 16 : localWidth.value) + 'px',
|
|
95
156
|
}));
|
|
96
157
|
|
|
97
158
|
const rootStyles = computed(() => [
|
|
98
159
|
'or-sidebar',
|
|
99
160
|
...SidebarRoot,
|
|
100
|
-
|
|
161
|
+
]);
|
|
162
|
+
|
|
163
|
+
const sidebarStyles = computed(() => [
|
|
164
|
+
...SidebarBar,
|
|
165
|
+
...SidebarSides[props.side],
|
|
166
|
+
]);
|
|
167
|
+
|
|
168
|
+
const toolbarStyles = computed(() => [
|
|
169
|
+
...SidebarToolbar,
|
|
170
|
+
...SidebarToolbarSides[props.side],
|
|
101
171
|
]);
|
|
102
172
|
|
|
103
173
|
const resizeStyles = computed(() => [
|
|
@@ -106,6 +176,11 @@ export default defineComponent({
|
|
|
106
176
|
...(isResizing.value ? SidebarResizingSides[props.side] : []),
|
|
107
177
|
]);
|
|
108
178
|
|
|
179
|
+
const collapsibleButtonStyles = computed(() => [
|
|
180
|
+
...SidebarCollapseButton,
|
|
181
|
+
...SidebarCollapseButtonSides[props.side],
|
|
182
|
+
]);
|
|
183
|
+
|
|
109
184
|
const mainStyles = computed(() => [...SidebarMain]);
|
|
110
185
|
|
|
111
186
|
const headerStyles = computed(() => [...SidebarHeader]);
|
|
@@ -137,7 +212,16 @@ export default defineComponent({
|
|
|
137
212
|
},
|
|
138
213
|
});
|
|
139
214
|
|
|
140
|
-
|
|
215
|
+
// Methods
|
|
216
|
+
function open(): void {
|
|
217
|
+
isCollapsed.value = false;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
function close(): void {
|
|
221
|
+
isCollapsed.value = true;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
const { width: containerWidth } = useElementBounding(parentContainer);
|
|
141
225
|
|
|
142
226
|
watch(() => props.width, (newValue: number) => {
|
|
143
227
|
if (newValue !== localWidth.value) {
|
|
@@ -150,6 +234,14 @@ export default defineComponent({
|
|
|
150
234
|
if (newMinimum > localWidth.value) localWidth.value = newMinimum;
|
|
151
235
|
});
|
|
152
236
|
|
|
237
|
+
watch(() => props.maximumWidth, (newMaximum: number) => {
|
|
238
|
+
if (newMaximum < maximumWidth.value) maximumWidth.value = newMaximum;
|
|
239
|
+
});
|
|
240
|
+
|
|
241
|
+
watch(containerWidth, (newMaximum: number) => {
|
|
242
|
+
if (newMaximum < maximumWidth.value) maximumWidth.value = newMaximum;
|
|
243
|
+
});
|
|
244
|
+
|
|
153
245
|
watch(maximumWidth, (newMaximum: number) => {
|
|
154
246
|
if (newMaximum < localWidth.value) localWidth.value = newMaximum;
|
|
155
247
|
});
|
|
@@ -160,14 +252,21 @@ export default defineComponent({
|
|
|
160
252
|
root,
|
|
161
253
|
resizeBar,
|
|
162
254
|
isResizing,
|
|
255
|
+
isCollapsed,
|
|
163
256
|
localWidth,
|
|
257
|
+
isShowingToolbar,
|
|
164
258
|
sidebarStyle,
|
|
165
259
|
rootStyles,
|
|
260
|
+
sidebarStyles,
|
|
261
|
+
toolbarStyles,
|
|
166
262
|
resizeStyles,
|
|
263
|
+
collapsibleButtonStyles,
|
|
167
264
|
mainStyles,
|
|
168
265
|
headerStyles,
|
|
169
266
|
contentStyles,
|
|
170
267
|
footerStyles,
|
|
268
|
+
open,
|
|
269
|
+
close,
|
|
171
270
|
};
|
|
172
271
|
},
|
|
173
272
|
});
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { Meta, StoryFn } from '@storybook/vue3';
|
|
2
|
+
import OrSidebarCollapseButton from './OrSidebarCollapseButton.vue';
|
|
3
|
+
import { OrSidebarPlacement } from './props';
|
|
4
|
+
import { action } from '@storybook/addon-actions';
|
|
5
|
+
import { ref } from 'vue-demi';
|
|
6
|
+
|
|
7
|
+
export default {
|
|
8
|
+
title: 'Components/Sidebar/Parts/CollapseButton',
|
|
9
|
+
component: OrSidebarCollapseButton,
|
|
10
|
+
|
|
11
|
+
argTypes: {
|
|
12
|
+
// Props
|
|
13
|
+
modelValue: {
|
|
14
|
+
control: { type: 'boolean' },
|
|
15
|
+
},
|
|
16
|
+
|
|
17
|
+
side: {
|
|
18
|
+
control: { type: 'select' },
|
|
19
|
+
options: Object.values(OrSidebarPlacement),
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
} as Meta<typeof OrSidebarCollapseButton>;
|
|
23
|
+
|
|
24
|
+
const DefaultTemplate: StoryFn<typeof OrSidebarCollapseButton> = (args) => ({
|
|
25
|
+
components: {
|
|
26
|
+
OrSidebarCollapseButton,
|
|
27
|
+
},
|
|
28
|
+
|
|
29
|
+
setup() {
|
|
30
|
+
const collapsed = ref<boolean>(!!args.modelValue);
|
|
31
|
+
|
|
32
|
+
return {
|
|
33
|
+
args,
|
|
34
|
+
collapsed,
|
|
35
|
+
};
|
|
36
|
+
},
|
|
37
|
+
|
|
38
|
+
methods: {
|
|
39
|
+
onUpdateModelValue: action('update:modelValue'),
|
|
40
|
+
},
|
|
41
|
+
|
|
42
|
+
template: '<OrSidebarCollapseButton v-model="collapsed" v-bind="args" @update:modelValue="onUpdateModelValue" />',
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
export const Default = DefaultTemplate.bind({});
|
|
46
|
+
Default.args = {
|
|
47
|
+
side: OrSidebarPlacement.right,
|
|
48
|
+
};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
ref="root"
|
|
4
|
+
:class="rootStyles"
|
|
5
|
+
>
|
|
6
|
+
<or-icon-button
|
|
7
|
+
:class="buttonStyles"
|
|
8
|
+
:icon="{ icon, size: 'inherit' }"
|
|
9
|
+
color="inherit"
|
|
10
|
+
@click="$emit('update:modelValue', !modelValue)"
|
|
11
|
+
/>
|
|
12
|
+
</div>
|
|
13
|
+
</template>
|
|
14
|
+
|
|
15
|
+
<script lang="ts">
|
|
16
|
+
import _ from 'lodash';
|
|
17
|
+
import { computed, defineComponent, PropType, ref } from 'vue-demi';
|
|
18
|
+
import { OrSidebarPlacement } from './props';
|
|
19
|
+
import { OrIconButtonV3 as OrIconButton } from '../or-icon-button-v3';
|
|
20
|
+
import { CollapseButton, CollapseButtonContainer } from './styles';
|
|
21
|
+
|
|
22
|
+
export default defineComponent({
|
|
23
|
+
name: 'OrSidebarCollapseButton',
|
|
24
|
+
|
|
25
|
+
components: {
|
|
26
|
+
OrIconButton,
|
|
27
|
+
},
|
|
28
|
+
|
|
29
|
+
props: {
|
|
30
|
+
/**
|
|
31
|
+
* Must be `true` if sidebar is collapsed.
|
|
32
|
+
*/
|
|
33
|
+
modelValue: {
|
|
34
|
+
type: Boolean,
|
|
35
|
+
default: false,
|
|
36
|
+
},
|
|
37
|
+
side: {
|
|
38
|
+
type: String as PropType<OrSidebarPlacement>,
|
|
39
|
+
default: OrSidebarPlacement.right,
|
|
40
|
+
validator: (value?: any) => _.includes(_.values(OrSidebarPlacement), value),
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
|
|
44
|
+
emits: ['update:modelValue'],
|
|
45
|
+
|
|
46
|
+
expose: ['root'],
|
|
47
|
+
|
|
48
|
+
setup(props) {
|
|
49
|
+
// Refs
|
|
50
|
+
const root = ref<InstanceType<typeof HTMLDivElement>>();
|
|
51
|
+
|
|
52
|
+
const rootStyles = computed(() => [
|
|
53
|
+
'or-sidebar-collapse-button',
|
|
54
|
+
...CollapseButtonContainer,
|
|
55
|
+
]);
|
|
56
|
+
|
|
57
|
+
const buttonStyles = computed(() => [
|
|
58
|
+
...CollapseButton,
|
|
59
|
+
]);
|
|
60
|
+
|
|
61
|
+
const icon = computed(() => (props.side === OrSidebarPlacement.left !== props.modelValue) ?
|
|
62
|
+
'keyboard_arrow_left' :
|
|
63
|
+
'keyboard_arrow_right',
|
|
64
|
+
);
|
|
65
|
+
|
|
66
|
+
return {
|
|
67
|
+
root,
|
|
68
|
+
rootStyles,
|
|
69
|
+
buttonStyles,
|
|
70
|
+
icon,
|
|
71
|
+
};
|
|
72
|
+
},
|
|
73
|
+
});
|
|
74
|
+
</script>
|