@onereach/ui-components 2.70.2-beta.2212.0 → 2.70.2-beta.2218.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-ae61bfb9.js → OrAvatar-586e417b.js} +4 -7
- package/dist/bundled/v2/{OrBottomSheet-1cd1ab4c.js → OrBottomSheet-ddba20c1.js} +2 -4
- package/dist/bundled/v2/{OrButton-a846fa7e.js → OrButton-d45772c1.js} +4 -7
- package/dist/bundled/v2/{OrCard-29116e1f.js → OrCard-45d5869b.js} +3 -6
- package/dist/bundled/v2/{OrCardCollection-0141a358.js → OrCardCollection-9d8e3fbc.js} +9 -12
- package/dist/bundled/v2/{OrCheckbox-dbef9f9a.js → OrCheckbox-a2ceda44.js} +32 -20
- package/dist/bundled/v2/{OrConfirm-057e997e.js → OrConfirm-d6e533f2.js} +8 -14
- package/dist/bundled/v2/{OrError-aad17598.js → OrError-52f668a4.js} +3 -6
- package/dist/bundled/v2/{OrErrorTag-d0c5bcf4.js → OrErrorTag-97a9112b.js} +4 -7
- package/dist/bundled/v2/{OrExpansionPanel-d9a260e2.js → OrExpansionPanel-96b8f568.js} +4 -7
- package/dist/bundled/v2/{OrFab-7cc75893.js → OrFab-ed69dee1.js} +3 -4
- package/dist/bundled/v2/{OrHint-f38a1940.js → OrHint-fde53334.js} +3 -6
- package/dist/bundled/v2/{OrIcon-8625385f.js → OrIcon-458206aa.js} +3 -6
- package/dist/bundled/v2/{OrIconButton-a2ba92df.js → OrIconButton-4bdd1566.js} +3 -5
- package/dist/bundled/v2/{OrInlineInput-87589946.js → OrInlineInput-47fca182.js} +41 -28
- package/dist/bundled/v2/{OrInlineInputBox-f457210f.js → OrInlineInputBox-7a8e645b.js} +3 -6
- package/dist/bundled/v2/{OrInlineTextarea-21b0e6fc.js → OrInlineTextarea-d9b9e485.js} +37 -24
- package/dist/bundled/v2/{OrInput-82ccfe00.js → OrInput-9288b667.js} +47 -39
- package/dist/bundled/v2/{OrInputBox-79ec54ad.js → OrInputBox-2f559e98.js} +3 -6
- package/dist/bundled/v2/{OrLabel-172c4b89.js → OrLabel-aff09c39.js} +3 -6
- package/dist/bundled/v2/{OrLink-e7b57307.js → OrLink-0d952e87.js} +3 -6
- package/dist/bundled/v2/{OrLoader-6a1f937b.js → OrLoader-864ef92a.js} +3 -6
- package/dist/bundled/v2/{OrMenu-fa47c888.js → OrMenu-52da43bc.js} +4 -7
- package/dist/bundled/v2/{OrMenuItem-26420908.js → OrMenuItem-e2693a5f.js} +4 -7
- package/dist/bundled/v2/{OrModal-af6677fd.js → OrModal-51b9f3e7.js} +3 -5
- package/dist/bundled/v2/{OrNotification-3250f58b.js → OrNotification-7f761f25.js} +5 -8
- package/dist/bundled/v2/{OrOverlay-3c89d622.js → OrOverlay-efa7992e.js} +1 -3
- package/dist/bundled/v2/{OrPagination-379c10b8.js → OrPagination-44e713a2.js} +8 -11
- package/dist/bundled/v2/{OrPopover-5dc240f1.js → OrPopover-4e8acb7b.js} +2 -4
- package/dist/bundled/v2/{OrProgress-cc397a38.js → OrProgress-15fe65ec.js} +4 -7
- package/dist/bundled/v2/{OrRadio-cd39b20b.js → OrRadio-f140c19a.js} +30 -18
- package/dist/bundled/v2/{OrSearch-53470b0e.js → OrSearch-ba756661.js} +6 -9
- package/dist/bundled/v2/{OrSegmentedControl-21cc914e.js → OrSegmentedControl-b9d0b95a.js} +6 -11
- package/dist/bundled/v2/{OrSelect-c49e1bcf.js → OrSelect-c91fc506.js} +14 -17
- package/dist/bundled/v2/{OrSkeletonText-516993b4.js → OrSkeletonText-9a2f39dc.js} +11 -18
- package/dist/bundled/v2/{OrSortHeader-9932d28f.js → OrSortHeader-180d77ee.js} +4 -7
- package/dist/bundled/v2/{OrSwitch-237a2081.js → OrSwitch-37a3ecf9.js} +31 -19
- package/dist/bundled/v2/{OrTab-dd949240.js → OrTab-8c5acf8a.js} +3 -6
- package/dist/bundled/v2/{OrTabs-42f7c52c.js → OrTabs-92360920.js} +6 -8
- package/dist/bundled/v2/{OrTag-e3e6fdd6.js → OrTag-4a098afa.js} +4 -7
- package/dist/bundled/v2/{OrText-eac4b9f5.js → OrText-a665b991.js} +3 -6
- package/dist/bundled/v2/{OrTextarea-5593fbe9.js → OrTextarea-7822c4b6.js} +43 -26
- package/dist/bundled/v2/{OrTooltip-fbfa05fd.js → OrTooltip-b1f38647.js} +4 -7
- package/dist/bundled/v2/components/index.js +46 -45
- package/dist/bundled/v2/components/or-avatar-v3/OrAvatar.vue.d.ts +2 -2
- package/dist/bundled/v2/components/or-avatar-v3/index.js +2 -3
- 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 +2 -3
- package/dist/bundled/v2/components/or-button-v3/OrButton.vue.d.ts +2 -2
- package/dist/bundled/v2/components/or-button-v3/index.js +2 -3
- 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 +19 -18
- package/dist/bundled/v2/components/or-card-v3/OrCard.vue.d.ts +2 -2
- package/dist/bundled/v2/components/or-card-v3/index.js +1 -2
- package/dist/bundled/v2/components/or-checkbox-v3/OrCheckbox.vue.d.ts +20 -4
- package/dist/bundled/v2/components/or-checkbox-v3/index.js +3 -3
- package/dist/bundled/v2/components/or-confirm-v3/index.js +16 -15
- 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 +2 -3
- package/dist/bundled/v2/components/or-error-v3/OrError.vue.d.ts +2 -2
- package/dist/bundled/v2/components/or-error-v3/index.js +1 -2
- 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 +2 -3
- package/dist/bundled/v2/components/or-fab-v3/index.js +2 -3
- package/dist/bundled/v2/components/or-hint-v3/OrHint.vue.d.ts +2 -2
- package/dist/bundled/v2/components/or-hint-v3/index.js +1 -2
- 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 +6 -7
- package/dist/bundled/v2/components/or-icon-v3/OrIcon.vue.d.ts +2 -2
- package/dist/bundled/v2/components/or-icon-v3/index.js +1 -2
- 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 +1 -2
- package/dist/bundled/v2/components/or-inline-input-v3/OrInlineInput.vue.d.ts +38 -8
- package/dist/bundled/v2/components/or-inline-input-v3/index.js +12 -11
- package/dist/bundled/v2/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +38 -8
- package/dist/bundled/v2/components/or-inline-textarea-v3/index.js +12 -11
- 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 +1 -2
- package/dist/bundled/v2/components/or-input-v3/OrInput.vue.d.ts +45 -10
- package/dist/bundled/v2/components/or-input-v3/index.js +13 -12
- package/dist/bundled/v2/components/or-label-v3/OrLabel.vue.d.ts +2 -2
- package/dist/bundled/v2/components/or-label-v3/index.js +1 -2
- package/dist/bundled/v2/components/or-link-v3/OrLink.vue.d.ts +2 -2
- package/dist/bundled/v2/components/or-link-v3/index.js +1 -2
- package/dist/bundled/v2/components/or-loader-v3/OrLoader.vue.d.ts +2 -2
- package/dist/bundled/v2/components/or-loader-v3/index.js +1 -2
- 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 +2 -3
- package/dist/bundled/v2/components/or-menu-v3/OrMenu.vue.d.ts +2 -2
- package/dist/bundled/v2/components/or-menu-v3/index.js +4 -5
- package/dist/bundled/v2/components/or-modal-v3/OrModal.vue.d.ts +2 -2
- package/dist/bundled/v2/components/or-modal-v3/index.js +7 -8
- package/dist/bundled/v2/components/or-notification-v3/OrNotification.vue.d.ts +2 -2
- package/dist/bundled/v2/components/or-notification-v3/index.js +7 -8
- package/dist/bundled/v2/components/or-overlay-v3/OrOverlay.vue.d.ts +2 -2
- package/dist/bundled/v2/components/or-overlay-v3/index.js +1 -2
- package/dist/bundled/v2/components/or-pagination-v3/OrPagination.vue.d.ts +2 -2
- package/dist/bundled/v2/components/or-pagination-v3/index.js +9 -10
- package/dist/bundled/v2/components/or-popover-v3/OrPopover.vue.d.ts +2 -2
- package/dist/bundled/v2/components/or-popover-v3/index.js +3 -4
- package/dist/bundled/v2/components/or-progress-v3/OrProgress.vue.d.ts +2 -2
- package/dist/bundled/v2/components/or-progress-v3/index.js +2 -3
- package/dist/bundled/v2/components/or-radio-v3/OrRadio.vue.d.ts +20 -4
- 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 +15 -14
- package/dist/bundled/v2/components/or-segmented-control-v3/OrSegmentedControl.vue.d.ts +2 -2
- package/dist/bundled/v2/components/or-segmented-control-v3/index.js +1 -2
- package/dist/{esm/v3/components/or-segmented-control-v3/components → bundled/v2/components/or-segmented-control-v3/partials}/or-segmented-control-item/OrSegmentedControlItem.vue.d.ts +2 -2
- package/dist/bundled/v2/components/or-segmented-control-v3/{components → partials}/or-segmented-control-item/styles.d.ts +0 -0
- package/dist/bundled/v2/components/or-select-v3/OrSelect.vue.d.ts +2 -2
- package/dist/bundled/v2/components/or-select-v3/index.js +18 -17
- 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 +2 -3
- package/dist/bundled/v2/components/or-sort-header-v3/OrSortHeader.vue.d.ts +2 -2
- package/dist/bundled/v2/components/or-sort-header-v3/index.js +2 -3
- package/dist/bundled/v2/components/or-switch-v3/OrSwitch.vue.d.ts +20 -4
- 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 +1 -2
- package/dist/bundled/v2/components/or-tabs-v3/OrTabs.vue.d.ts +2 -2
- package/dist/bundled/v2/components/or-tabs-v3/index.js +8 -9
- package/dist/bundled/v2/components/or-tag-v3/OrTag.vue.d.ts +2 -2
- package/dist/bundled/v2/components/or-tag-v3/index.js +7 -8
- package/dist/bundled/v2/components/or-text-v3/OrText.vue.d.ts +2 -2
- package/dist/bundled/v2/components/or-text-v3/index.js +1 -2
- package/dist/bundled/v2/components/or-textarea-v3/OrTextarea.vue.d.ts +47 -8
- package/dist/bundled/v2/components/or-textarea-v3/index.js +7 -6
- package/dist/bundled/v2/components/or-toast-v3/index.js +8 -9
- package/dist/bundled/v2/components/or-tooltip-v3/OrTooltip.vue.d.ts +2 -2
- package/dist/bundled/v2/components/or-tooltip-v3/index.js +4 -5
- package/dist/bundled/v2/hooks/index.d.ts +3 -1
- package/dist/bundled/v2/hooks/index.js +2 -1
- package/dist/bundled/v2/hooks/useControlAttributes.d.ts +8 -0
- package/dist/bundled/v2/hooks/useIdAttribute.d.ts +2 -0
- package/dist/bundled/v2/hooks/useValidationAttributes.d.ts +12 -0
- package/dist/bundled/v2/index.js +47 -46
- package/dist/bundled/v2/{types-8fe4e345.js → types-79e5c18d.js} +2 -2
- package/dist/bundled/v2/useIdAttribute-cf61643f.js +22 -0
- package/dist/bundled/v2/useValidationAttributes-6df7bcf9.js +17 -0
- package/dist/bundled/v3/{OrAvatar.vue_vue_type_script_lang-0426862b.js → OrAvatar.vue_vue_type_script_lang-582e74ae.js} +3 -6
- package/dist/bundled/v3/{OrBottomSheet.vue_vue_type_script_lang-6fb49de9.js → OrBottomSheet.vue_vue_type_script_lang-bdef5ca2.js} +2 -4
- package/dist/bundled/v3/{OrButton-2b27c1fd.js → OrButton-a1448bfa.js} +7 -8
- package/dist/bundled/v3/{OrButton.vue_vue_type_script_lang-8c44986c.js → OrButton.vue_vue_type_script_lang-3b1e442b.js} +3 -6
- package/dist/bundled/v3/{OrCard.vue_vue_type_script_lang-165de137.js → OrCard.vue_vue_type_script_lang-b6685a34.js} +1 -4
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-2d78a51a.js → OrCardCollection.vue_vue_type_script_lang-1e3dd861.js} +42 -46
- package/dist/bundled/v3/{OrCheckbox.vue_vue_type_script_lang-8b36e06c.js → OrCheckbox.vue_vue_type_script_lang-fec2fa29.js} +25 -13
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-9d9a3917.js → OrConfirm.vue_vue_type_script_lang-747c5ce7.js} +11 -17
- package/dist/bundled/v3/{OrError.vue_vue_type_script_lang-cc6c135f.js → OrError.vue_vue_type_script_lang-53648a65.js} +1 -4
- package/dist/bundled/v3/{OrErrorTag.vue_vue_type_script_lang-4828c387.js → OrErrorTag.vue_vue_type_script_lang-e2fe7ca9.js} +3 -6
- package/dist/bundled/v3/{OrExpansionPanel.vue_vue_type_script_lang-5360f580.js → OrExpansionPanel.vue_vue_type_script_lang-2cc8964c.js} +3 -6
- package/dist/bundled/v3/{OrFab.vue_vue_type_script_lang-2adeaed6.js → OrFab.vue_vue_type_script_lang-0fe4a921.js} +2 -3
- package/dist/bundled/v3/{OrHint-9592499e.js → OrHint-5d5e4d99.js} +13 -15
- package/dist/bundled/v3/{OrHint.vue_vue_type_script_lang-8e657168.js → OrHint.vue_vue_type_script_lang-e322f61e.js} +1 -4
- package/dist/bundled/v3/OrIcon-1a5c9091.js +12 -0
- package/dist/bundled/v3/{OrIcon.vue_vue_type_script_lang-a119a715.js → OrIcon.vue_vue_type_script_lang-bdbaad94.js} +1 -4
- package/dist/bundled/v3/{OrIconButton-cd62526d.js → OrIconButton-428dd2cf.js} +1 -1
- package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-aefcf30d.js → OrIconButton.vue_vue_type_script_lang-ec6a3622.js} +10 -13
- package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-67218502.js → OrInlineInput.vue_vue_type_script_lang-62406472.js} +35 -22
- package/dist/bundled/v3/{OrInlineInputBox-9d68ded1.js → OrInlineInputBox-f92a09d6.js} +6 -7
- package/dist/bundled/v3/{OrInlineInputBox.vue_vue_type_script_lang-73750005.js → OrInlineInputBox.vue_vue_type_script_lang-b1ae1f3d.js} +1 -4
- package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-a1831ab8.js → OrInlineTextarea.vue_vue_type_script_lang-a55dffd2.js} +35 -22
- package/dist/bundled/v3/{OrInput-a4f220ed.js → OrInput-9faa2035.js} +7 -7
- package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-607d79d4.js → OrInput.vue_vue_type_script_lang-dea5c599.js} +38 -30
- package/dist/bundled/v3/{OrInputBox-eb54d73d.js → OrInputBox-4c7900c2.js} +6 -7
- package/dist/bundled/v3/{OrInputBox.vue_vue_type_script_lang-5ee4ee45.js → OrInputBox.vue_vue_type_script_lang-47d98e81.js} +1 -4
- package/dist/bundled/v3/{OrLabel-c6873e79.js → OrLabel-c556887e.js} +7 -8
- package/dist/bundled/v3/{OrLabel.vue_vue_type_script_lang-96f94c4e.js → OrLabel.vue_vue_type_script_lang-191d2304.js} +1 -4
- package/dist/bundled/v3/{OrLink.vue_vue_type_script_lang-9d3a32c7.js → OrLink.vue_vue_type_script_lang-05d4897b.js} +1 -4
- package/dist/bundled/v3/{OrLoader-c4bbef2f.js → OrLoader-123ef8c4.js} +7 -8
- package/dist/bundled/v3/{OrLoader.vue_vue_type_script_lang-5405040c.js → OrLoader.vue_vue_type_script_lang-4c3c1ac9.js} +1 -4
- package/dist/bundled/v3/{OrMenu-f26e8e55.js → OrMenu-6d7abe97.js} +7 -8
- package/dist/bundled/v3/{OrMenu.vue_vue_type_script_lang-2446a69a.js → OrMenu.vue_vue_type_script_lang-df35fd76.js} +3 -6
- package/dist/bundled/v3/{OrMenuItem-4feaba6c.js → OrMenuItem-807e2a49.js} +7 -8
- package/dist/bundled/v3/{OrMenuItem.vue_vue_type_script_lang-0ffaef05.js → OrMenuItem.vue_vue_type_script_lang-2400ec2a.js} +3 -6
- package/dist/bundled/v3/{OrModal.vue_vue_type_script_lang-55c864d1.js → OrModal.vue_vue_type_script_lang-5a71a851.js} +5 -7
- package/dist/bundled/v3/{OrNotification.vue_vue_type_script_lang-c886ae51.js → OrNotification.vue_vue_type_script_lang-6287244f.js} +5 -8
- package/dist/bundled/v3/{OrOverlay.vue_vue_type_script_lang-cb3aad0c.js → OrOverlay.vue_vue_type_script_lang-7edd25f6.js} +1 -3
- package/dist/bundled/v3/{OrPagination.vue_vue_type_script_lang-c96d7cd7.js → OrPagination.vue_vue_type_script_lang-0d299d07.js} +10 -13
- package/dist/bundled/v3/{OrPopover-c462ce77.js → OrPopover-1a488f88.js} +1 -1
- package/dist/bundled/v3/{OrPopover.vue_vue_type_script_lang-54c7b11c.js → OrPopover.vue_vue_type_script_lang-b1102c1a.js} +3 -5
- package/dist/bundled/v3/{OrProgress.vue_vue_type_script_lang-a73c0acf.js → OrProgress.vue_vue_type_script_lang-52f660d6.js} +2 -5
- package/dist/bundled/v3/{OrRadio.vue_vue_type_script_lang-2e666a56.js → OrRadio.vue_vue_type_script_lang-2f053184.js} +25 -13
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-06f318ca.js → OrSearch.vue_vue_type_script_lang-2bc9e930.js} +5 -8
- package/dist/bundled/v3/{OrSegmentedControl.vue_vue_type_script_lang-579406f5.js → OrSegmentedControl.vue_vue_type_script_lang-92379dcc.js} +8 -14
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-58e5a52b.js → OrSelect.vue_vue_type_script_lang-72e0cd5a.js} +38 -42
- package/dist/bundled/v3/{OrSkeletonText.vue_vue_type_script_lang-577a1dc9.js → OrSkeletonText.vue_vue_type_script_lang-efcfbe21.js} +5 -12
- package/dist/bundled/v3/{OrSortHeader.vue_vue_type_script_lang-75115125.js → OrSortHeader.vue_vue_type_script_lang-866f9764.js} +3 -6
- package/dist/bundled/v3/{OrSwitch.vue_vue_type_script_lang-04829f64.js → OrSwitch.vue_vue_type_script_lang-45f536b3.js} +27 -15
- package/dist/bundled/v3/{OrTab.vue_vue_type_script_lang-134ad9d1.js → OrTab.vue_vue_type_script_lang-f791efa0.js} +1 -4
- package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-61b79a5a.js → OrTabs.vue_vue_type_script_lang-2b84672b.js} +14 -17
- package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-e45c345b.js → OrTag.vue_vue_type_script_lang-68af600d.js} +3 -6
- package/dist/bundled/v3/{OrText.vue_vue_type_script_lang-d9525d49.js → OrText.vue_vue_type_script_lang-271fb345.js} +1 -4
- package/dist/bundled/v3/{OrTextarea.vue_vue_type_script_lang-8e3531cd.js → OrTextarea.vue_vue_type_script_lang-94b94433.js} +39 -23
- package/dist/bundled/v3/{OrToastContainer-34389303.js → OrToastContainer-ad5ae5af.js} +1 -1
- package/dist/bundled/v3/{OrTooltip.vue_vue_type_script_lang-67cc86ed.js → OrTooltip.vue_vue_type_script_lang-bf9935ef.js} +3 -6
- package/dist/bundled/v3/components/index.js +58 -57
- package/dist/bundled/v3/components/or-avatar-v3/OrAvatar.vue.d.ts +2 -2
- package/dist/bundled/v3/components/or-avatar-v3/index.js +3 -4
- 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 +2 -3
- package/dist/bundled/v3/components/or-button-v3/OrButton.vue.d.ts +2 -2
- package/dist/bundled/v3/components/or-button-v3/index.js +3 -4
- 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 +30 -29
- package/dist/bundled/v3/components/or-card-v3/OrCard.vue.d.ts +2 -2
- package/dist/bundled/v3/components/or-card-v3/index.js +1 -2
- package/dist/bundled/v3/components/or-checkbox-v3/OrCheckbox.vue.d.ts +20 -4
- package/dist/bundled/v3/components/or-checkbox-v3/index.js +4 -4
- package/dist/bundled/v3/components/or-confirm-v3/index.js +25 -24
- 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 +3 -4
- package/dist/bundled/v3/components/or-error-v3/OrError.vue.d.ts +2 -2
- package/dist/bundled/v3/components/or-error-v3/index.js +1 -2
- 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 +3 -4
- package/dist/bundled/v3/components/or-fab-v3/index.js +3 -4
- package/dist/bundled/v3/components/or-hint-v3/OrHint.vue.d.ts +2 -2
- package/dist/bundled/v3/components/or-hint-v3/index.js +1 -2
- 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 +8 -9
- package/dist/bundled/v3/components/or-icon-v3/OrIcon.vue.d.ts +2 -2
- package/dist/bundled/v3/components/or-icon-v3/index.js +1 -2
- 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 +1 -2
- package/dist/bundled/v3/components/or-inline-input-v3/OrInlineInput.vue.d.ts +38 -8
- package/dist/bundled/v3/components/or-inline-input-v3/index.js +17 -16
- package/dist/bundled/v3/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +38 -8
- package/dist/bundled/v3/components/or-inline-textarea-v3/index.js +17 -16
- 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 +1 -2
- package/dist/bundled/v3/components/or-input-v3/OrInput.vue.d.ts +45 -10
- package/dist/bundled/v3/components/or-input-v3/index.js +19 -18
- package/dist/bundled/v3/components/or-label-v3/OrLabel.vue.d.ts +2 -2
- package/dist/bundled/v3/components/or-label-v3/index.js +1 -2
- package/dist/bundled/v3/components/or-link-v3/OrLink.vue.d.ts +2 -2
- package/dist/bundled/v3/components/or-link-v3/index.js +1 -2
- package/dist/bundled/v3/components/or-loader-v3/OrLoader.vue.d.ts +2 -2
- package/dist/bundled/v3/components/or-loader-v3/index.js +1 -2
- 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 +3 -4
- package/dist/bundled/v3/components/or-menu-v3/OrMenu.vue.d.ts +2 -2
- package/dist/bundled/v3/components/or-menu-v3/index.js +5 -6
- package/dist/bundled/v3/components/or-modal-v3/OrModal.vue.d.ts +2 -2
- package/dist/bundled/v3/components/or-modal-v3/index.js +10 -11
- package/dist/bundled/v3/components/or-notification-v3/OrNotification.vue.d.ts +2 -2
- package/dist/bundled/v3/components/or-notification-v3/index.js +10 -11
- package/dist/bundled/v3/components/or-overlay-v3/OrOverlay.vue.d.ts +2 -2
- package/dist/bundled/v3/components/or-overlay-v3/index.js +1 -2
- package/dist/bundled/v3/components/or-pagination-v3/OrPagination.vue.d.ts +2 -2
- package/dist/bundled/v3/components/or-pagination-v3/index.js +15 -16
- package/dist/bundled/v3/components/or-popover-v3/OrPopover.vue.d.ts +2 -2
- package/dist/bundled/v3/components/or-popover-v3/index.js +3 -4
- package/dist/bundled/v3/components/or-progress-v3/OrProgress.vue.d.ts +2 -2
- package/dist/bundled/v3/components/or-progress-v3/index.js +2 -3
- package/dist/bundled/v3/components/or-radio-v3/OrRadio.vue.d.ts +20 -4
- 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 +22 -21
- package/dist/bundled/v3/components/or-segmented-control-v3/OrSegmentedControl.vue.d.ts +2 -2
- package/dist/bundled/v3/components/or-segmented-control-v3/index.js +1 -2
- package/dist/bundled/{v2/components/or-segmented-control-v3/components → v3/components/or-segmented-control-v3/partials}/or-segmented-control-item/OrSegmentedControlItem.vue.d.ts +2 -2
- package/dist/bundled/v3/components/or-segmented-control-v3/{components → partials}/or-segmented-control-item/styles.d.ts +0 -0
- package/dist/bundled/v3/components/or-select-v3/OrSelect.vue.d.ts +2 -2
- package/dist/bundled/v3/components/or-select-v3/index.js +26 -25
- 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 +2 -3
- package/dist/bundled/v3/components/or-sort-header-v3/OrSortHeader.vue.d.ts +2 -2
- package/dist/bundled/v3/components/or-sort-header-v3/index.js +3 -4
- package/dist/bundled/v3/components/or-switch-v3/OrSwitch.vue.d.ts +20 -4
- 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 +1 -2
- package/dist/bundled/v3/components/or-tabs-v3/OrTabs.vue.d.ts +2 -2
- package/dist/bundled/v3/components/or-tabs-v3/index.js +12 -13
- package/dist/bundled/v3/components/or-tag-v3/OrTag.vue.d.ts +2 -2
- package/dist/bundled/v3/components/or-tag-v3/index.js +10 -11
- package/dist/bundled/v3/components/or-text-v3/OrText.vue.d.ts +2 -2
- package/dist/bundled/v3/components/or-text-v3/index.js +1 -2
- package/dist/bundled/v3/components/or-textarea-v3/OrTextarea.vue.d.ts +47 -8
- package/dist/bundled/v3/components/or-textarea-v3/index.js +10 -9
- package/dist/bundled/v3/components/or-toast-v3/index.js +13 -14
- package/dist/bundled/v3/components/or-tooltip-v3/OrTooltip.vue.d.ts +2 -2
- package/dist/bundled/v3/components/or-tooltip-v3/index.js +5 -6
- package/dist/bundled/v3/hooks/index.d.ts +3 -1
- package/dist/bundled/v3/hooks/index.js +2 -1
- package/dist/bundled/v3/hooks/useControlAttributes.d.ts +8 -0
- package/dist/bundled/v3/hooks/useIdAttribute.d.ts +2 -0
- package/dist/bundled/v3/hooks/useValidationAttributes.d.ts +12 -0
- package/dist/bundled/v3/index.js +186 -199
- package/dist/bundled/v3/{types-f53434f2.js → types-1d25bb9a.js} +5 -5
- package/dist/bundled/v3/useIdAttribute-b2e42f31.js +21 -0
- package/dist/bundled/v3/useValidationAttributes-5428d8fa.js +16 -0
- package/dist/esm/v2/{OrAvatar-3d155af3.js → OrAvatar-379ac72f.js} +4 -8
- package/dist/esm/v2/{OrBottomSheet-16c2e610.js → OrBottomSheet-37200385.js} +2 -4
- package/dist/esm/v2/{OrButton-835d4f11.js → OrButton-66964360.js} +4 -8
- package/dist/esm/v2/{OrCard-de799db0.js → OrCard-e89c44ef.js} +3 -7
- package/dist/esm/v2/{OrCardCollection-3c38fc85.js → OrCardCollection-3fc3a24e.js} +11 -15
- package/dist/esm/v2/{OrCheckbox-567e387c.js → OrCheckbox-05b9a244.js} +32 -20
- package/dist/esm/v2/{OrConfirm-047d4086.js → OrConfirm-56db44bd.js} +8 -14
- package/dist/esm/v2/{OrError-d267ee9a.js → OrError-13845bb0.js} +3 -7
- package/dist/esm/v2/{OrErrorTag-782dd714.js → OrErrorTag-80f82cdf.js} +4 -8
- package/dist/esm/v2/{OrExpansionPanel-a123024e.js → OrExpansionPanel-729eb1e7.js} +4 -8
- package/dist/esm/v2/{OrFab-26106618.js → OrFab-1d095e33.js} +3 -4
- package/dist/esm/v2/{OrHint-42dc9ebb.js → OrHint-78b399cb.js} +3 -7
- package/dist/esm/v2/{OrIcon-5e394c62.js → OrIcon-f34e0e6f.js} +3 -7
- package/dist/esm/v2/{OrIconButton-b3779042.js → OrIconButton-5fa56aec.js} +4 -7
- package/dist/esm/v2/{OrInlineInput-10205811.js → OrInlineInput-c8058b04.js} +41 -28
- package/dist/esm/v2/{OrInlineInputBox-fefd4fbd.js → OrInlineInputBox-46146af0.js} +3 -7
- package/dist/esm/v2/{OrInlineTextarea-7658611e.js → OrInlineTextarea-252d3c2c.js} +37 -24
- package/dist/esm/v2/{OrInput-ada3a970.js → OrInput-fd9b3e7d.js} +47 -39
- package/dist/esm/v2/{OrInputBox-4d5a318d.js → OrInputBox-9ceb9fc4.js} +3 -7
- package/dist/esm/v2/{OrLabel-2a9f1477.js → OrLabel-0945a4d9.js} +3 -7
- package/dist/esm/v2/{OrLink-80742a17.js → OrLink-597e0e18.js} +3 -7
- package/dist/esm/v2/{OrLoader-f857d55b.js → OrLoader-76307488.js} +3 -7
- package/dist/esm/v2/{OrMenu-df27d0ef.js → OrMenu-c276db74.js} +4 -8
- package/dist/esm/v2/{OrMenuItem-c7f28480.js → OrMenuItem-7b7fbf8a.js} +4 -8
- package/dist/esm/v2/{OrModal-a7719843.js → OrModal-3b9d59de.js} +3 -6
- package/dist/esm/v2/{OrNotification-8a4830a3.js → OrNotification-5e145880.js} +5 -9
- package/dist/esm/v2/{OrOverlay-18ba2dc6.js → OrOverlay-a019186f.js} +1 -3
- package/dist/esm/v2/{OrPagination-c0dbec6a.js → OrPagination-8b604bd9.js} +9 -13
- package/dist/esm/v2/{OrPopover-9bafbdb4.js → OrPopover-d5d4f62a.js} +2 -4
- package/dist/esm/v2/{OrProgress-c27c8946.js → OrProgress-b7d1c689.js} +4 -7
- package/dist/esm/v2/{OrRadio-848ce55d.js → OrRadio-2094e67d.js} +30 -18
- package/dist/esm/v2/{OrSearch-0f08f2f5.js → OrSearch-072ee1b9.js} +6 -9
- package/dist/esm/v2/{OrSegmentedControl-e8dce8f9.js → OrSegmentedControl-71248337.js} +6 -12
- package/dist/esm/v2/{OrSelect-1d705445.js → OrSelect-23208d36.js} +14 -17
- package/dist/esm/v2/{OrSkeletonText-950be6a2.js → OrSkeletonText-6ee72718.js} +11 -19
- package/dist/esm/v2/{OrSortHeader-19bf94ca.js → OrSortHeader-8ca76674.js} +4 -8
- package/dist/esm/v2/{OrSwitch-13b6a7ee.js → OrSwitch-a1f67338.js} +31 -19
- package/dist/esm/v2/{OrTab-702e7335.js → OrTab-1ff87c76.js} +3 -7
- package/dist/esm/v2/{OrTabs-71bd3fd2.js → OrTabs-954838f3.js} +7 -9
- package/dist/esm/v2/{OrTag-52e4cc94.js → OrTag-56714605.js} +4 -8
- package/dist/esm/v2/{OrText-ba5a2b6c.js → OrText-b12d0682.js} +3 -7
- package/dist/esm/v2/{OrTextarea-6712a150.js → OrTextarea-5f79faca.js} +43 -26
- package/dist/esm/v2/{OrTooltip-513bee30.js → OrTooltip-629d44fc.js} +4 -7
- package/dist/esm/v2/components/index.js +47 -46
- package/dist/esm/v2/components/or-avatar-v3/OrAvatar.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-avatar-v3/index.js +2 -4
- 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 +2 -3
- package/dist/esm/v2/components/or-button-v3/OrButton.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-button-v3/index.js +2 -4
- 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 +20 -19
- package/dist/esm/v2/components/or-card-v3/OrCard.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-card-v3/index.js +1 -3
- package/dist/esm/v2/components/or-checkbox-v3/OrCheckbox.vue.d.ts +20 -4
- package/dist/esm/v2/components/or-checkbox-v3/index.js +3 -3
- package/dist/esm/v2/components/or-confirm-v3/index.js +16 -15
- 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 +2 -4
- package/dist/esm/v2/components/or-error-v3/OrError.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-error-v3/index.js +1 -3
- 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 +2 -4
- package/dist/esm/v2/components/or-fab-v3/index.js +2 -4
- package/dist/esm/v2/components/or-hint-v3/OrHint.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-hint-v3/index.js +1 -3
- 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 +6 -7
- package/dist/esm/v2/components/or-icon-v3/OrIcon.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-icon-v3/index.js +1 -3
- 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 +1 -3
- package/dist/esm/v2/components/or-inline-input-v3/OrInlineInput.vue.d.ts +38 -8
- package/dist/esm/v2/components/or-inline-input-v3/index.js +12 -11
- package/dist/esm/v2/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +38 -8
- package/dist/esm/v2/components/or-inline-textarea-v3/index.js +12 -11
- 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 +1 -3
- package/dist/esm/v2/components/or-input-v3/OrInput.vue.d.ts +45 -10
- package/dist/esm/v2/components/or-input-v3/index.js +13 -12
- package/dist/esm/v2/components/or-label-v3/OrLabel.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-label-v3/index.js +1 -3
- package/dist/esm/v2/components/or-link-v3/OrLink.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-link-v3/index.js +1 -3
- package/dist/esm/v2/components/or-loader-v3/OrLoader.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-loader-v3/index.js +1 -3
- 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 +2 -4
- package/dist/esm/v2/components/or-menu-v3/OrMenu.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-menu-v3/index.js +5 -6
- package/dist/esm/v2/components/or-modal-v3/OrModal.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-modal-v3/index.js +8 -9
- package/dist/esm/v2/components/or-notification-v3/OrNotification.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-notification-v3/index.js +8 -9
- package/dist/esm/v2/components/or-overlay-v3/OrOverlay.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-overlay-v3/index.js +1 -2
- package/dist/esm/v2/components/or-pagination-v3/OrPagination.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-pagination-v3/index.js +10 -11
- package/dist/esm/v2/components/or-popover-v3/OrPopover.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-popover-v3/index.js +3 -4
- package/dist/esm/v2/components/or-progress-v3/OrProgress.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-progress-v3/index.js +2 -3
- package/dist/esm/v2/components/or-radio-v3/OrRadio.vue.d.ts +20 -4
- 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 +15 -14
- package/dist/esm/v2/components/or-segmented-control-v3/OrSegmentedControl.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-segmented-control-v3/index.js +1 -3
- package/dist/{bundled/v3/components/or-segmented-control-v3/components → esm/v2/components/or-segmented-control-v3/partials}/or-segmented-control-item/OrSegmentedControlItem.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-segmented-control-v3/{components → partials}/or-segmented-control-item/styles.d.ts +0 -0
- package/dist/esm/v2/components/or-select-v3/OrSelect.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-select-v3/index.js +18 -17
- 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 +2 -4
- package/dist/esm/v2/components/or-sort-header-v3/OrSortHeader.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-sort-header-v3/index.js +2 -4
- package/dist/esm/v2/components/or-switch-v3/OrSwitch.vue.d.ts +20 -4
- 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 +1 -3
- package/dist/esm/v2/components/or-tabs-v3/OrTabs.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-tabs-v3/index.js +8 -9
- package/dist/esm/v2/components/or-tag-v3/OrTag.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-tag-v3/index.js +8 -9
- package/dist/esm/v2/components/or-text-v3/OrText.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-text-v3/index.js +1 -3
- package/dist/esm/v2/components/or-textarea-v3/OrTextarea.vue.d.ts +47 -8
- package/dist/esm/v2/components/or-textarea-v3/index.js +7 -6
- package/dist/esm/v2/components/or-toast-v3/index.js +8 -9
- package/dist/esm/v2/components/or-tooltip-v3/OrTooltip.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-tooltip-v3/index.js +4 -5
- package/dist/esm/v2/hooks/index.d.ts +3 -1
- package/dist/esm/v2/hooks/index.js +2 -1
- package/dist/esm/v2/hooks/useControlAttributes.d.ts +8 -0
- package/dist/esm/v2/hooks/useIdAttribute.d.ts +2 -0
- package/dist/esm/v2/hooks/useValidationAttributes.d.ts +12 -0
- package/dist/esm/v2/index.js +46 -45
- package/dist/esm/v2/{types-6c742e07.js → types-856a804f.js} +2 -2
- package/dist/esm/v2/useIdAttribute-859439f0.js +21 -0
- package/dist/esm/v2/useValidationAttributes-d1abbe34.js +16 -0
- package/dist/esm/v3/{OrAvatar-53a4429d.js → OrAvatar-6444e693.js} +8 -13
- package/dist/esm/v3/{OrBottomSheet-62817aec.js → OrBottomSheet-13a416ef.js} +2 -4
- package/dist/esm/v3/{OrButton-0fa67a0d.js → OrButton-c56998e7.js} +8 -13
- package/dist/esm/v3/{OrCard-fd92f7c8.js → OrCard-cd6af82e.js} +6 -11
- package/dist/esm/v3/{OrCardCollection-dbb3e839.js → OrCardCollection-53e83dbb.js} +14 -19
- package/dist/esm/v3/{OrCheckbox-3e139eac.js → OrCheckbox-afadd5b8.js} +33 -20
- package/dist/esm/v3/{OrConfirm-fee3c859.js → OrConfirm-06ed85f9.js} +8 -14
- package/dist/esm/v3/{OrError-ec8c709d.js → OrError-19198748.js} +7 -12
- package/dist/esm/v3/{OrErrorTag-98252eef.js → OrErrorTag-308119de.js} +8 -13
- package/dist/esm/v3/{OrExpansionPanel-f8d7ff8d.js → OrExpansionPanel-3a4282da.js} +8 -13
- package/dist/esm/v3/{OrFab-c8ae6e01.js → OrFab-61131b31.js} +7 -9
- package/dist/esm/v3/{OrHint-74bb732d.js → OrHint-6863124f.js} +7 -12
- package/dist/esm/v3/{OrIcon-b195169c.js → OrIcon-34f59f73.js} +6 -11
- package/dist/esm/v3/{OrIconButton-1a89fbf9.js → OrIconButton-e5781317.js} +4 -7
- package/dist/esm/v3/{OrInlineInput-507fc99c.js → OrInlineInput-6d363088.js} +35 -22
- package/dist/esm/v3/{OrInlineInputBox-8049f95a.js → OrInlineInputBox-09b33e18.js} +6 -11
- package/dist/esm/v3/{OrInlineTextarea-53a9e027.js → OrInlineTextarea-3e48b319.js} +35 -22
- package/dist/esm/v3/{OrInput-9c0426b9.js → OrInput-5ef51369.js} +39 -31
- package/dist/esm/v3/{OrInputBox-6d1b6059.js → OrInputBox-e16ade90.js} +6 -11
- package/dist/esm/v3/{OrLabel-bdaec602.js → OrLabel-f700f9fb.js} +7 -12
- package/dist/esm/v3/{OrLink-338db3ca.js → OrLink-07f6f27d.js} +7 -12
- package/dist/esm/v3/{OrLoader-b3cf4231.js → OrLoader-a53d2edf.js} +7 -12
- package/dist/esm/v3/{OrMenu-840038cd.js → OrMenu-7f3ea117.js} +8 -13
- package/dist/esm/v3/{OrMenuItem-9da279f6.js → OrMenuItem-58707d47.js} +8 -13
- package/dist/esm/v3/{OrModal-7878cc39.js → OrModal-10838da7.js} +3 -6
- package/dist/esm/v3/{OrNotification-e1383681.js → OrNotification-25da89ca.js} +9 -14
- package/dist/esm/v3/{OrOverlay-738a44d5.js → OrOverlay-afad3aa4.js} +1 -3
- package/dist/esm/v3/{OrPagination-a703307d.js → OrPagination-010b0bef.js} +13 -18
- package/dist/esm/v3/{OrPopover-1075dd38.js → OrPopover-40217b49.js} +2 -4
- package/dist/esm/v3/{OrProgress-407002e0.js → OrProgress-639ed5e8.js} +8 -12
- package/dist/esm/v3/{OrRadio-54b6d0de.js → OrRadio-a0bd352b.js} +30 -17
- package/dist/esm/v3/{OrSearch-9885d178.js → OrSearch-9eb38b29.js} +9 -13
- package/dist/esm/v3/{OrSegmentedControl-171cad78.js → OrSegmentedControl-c7221732.js} +13 -21
- package/dist/esm/v3/{OrSelect-dfa4885f.js → OrSelect-64fa5d0b.js} +18 -22
- package/dist/esm/v3/{OrSkeletonText-3965ff71.js → OrSkeletonText-afd3d007.js} +22 -33
- package/dist/esm/v3/{OrSortHeader-fe1a9cf8.js → OrSortHeader-cab07616.js} +8 -13
- package/dist/esm/v3/{OrSwitch-cca30aa0.js → OrSwitch-f342ee4b.js} +31 -19
- package/dist/esm/v3/{OrTab-c131cf60.js → OrTab-d3785ea4.js} +6 -11
- package/dist/esm/v3/{OrTabs-d0ee6cef.js → OrTabs-a1ffc2a3.js} +7 -9
- package/dist/esm/v3/{OrTag-efa7578f.js → OrTag-34bf1713.js} +8 -13
- package/dist/esm/v3/{OrText-ecb46923.js → OrText-6b4f7cd1.js} +7 -12
- package/dist/esm/v3/{OrTextarea-bb9ef3f2.js → OrTextarea-f3831b3f.js} +41 -24
- package/dist/esm/v3/{OrTooltip-50d27b4f.js → OrTooltip-b07616f4.js} +8 -12
- package/dist/esm/v3/components/index.js +47 -46
- package/dist/esm/v3/components/or-avatar-v3/OrAvatar.vue.d.ts +2 -2
- package/dist/esm/v3/components/or-avatar-v3/index.js +2 -4
- 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 +2 -3
- package/dist/esm/v3/components/or-button-v3/OrButton.vue.d.ts +2 -2
- package/dist/esm/v3/components/or-button-v3/index.js +2 -4
- 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 +20 -19
- package/dist/esm/v3/components/or-card-v3/OrCard.vue.d.ts +2 -2
- package/dist/esm/v3/components/or-card-v3/index.js +1 -3
- package/dist/esm/v3/components/or-checkbox-v3/OrCheckbox.vue.d.ts +20 -4
- package/dist/esm/v3/components/or-checkbox-v3/index.js +3 -3
- package/dist/esm/v3/components/or-confirm-v3/index.js +16 -15
- 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 +2 -4
- package/dist/esm/v3/components/or-error-v3/OrError.vue.d.ts +2 -2
- package/dist/esm/v3/components/or-error-v3/index.js +1 -3
- 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 +2 -4
- package/dist/esm/v3/components/or-fab-v3/index.js +2 -4
- package/dist/esm/v3/components/or-hint-v3/OrHint.vue.d.ts +2 -2
- package/dist/esm/v3/components/or-hint-v3/index.js +1 -3
- 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 +6 -7
- package/dist/esm/v3/components/or-icon-v3/OrIcon.vue.d.ts +2 -2
- package/dist/esm/v3/components/or-icon-v3/index.js +1 -3
- 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 +1 -3
- package/dist/esm/v3/components/or-inline-input-v3/OrInlineInput.vue.d.ts +38 -8
- package/dist/esm/v3/components/or-inline-input-v3/index.js +12 -11
- package/dist/esm/v3/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +38 -8
- package/dist/esm/v3/components/or-inline-textarea-v3/index.js +12 -11
- 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 +1 -3
- package/dist/esm/v3/components/or-input-v3/OrInput.vue.d.ts +45 -10
- package/dist/esm/v3/components/or-input-v3/index.js +13 -12
- package/dist/esm/v3/components/or-label-v3/OrLabel.vue.d.ts +2 -2
- package/dist/esm/v3/components/or-label-v3/index.js +1 -3
- package/dist/esm/v3/components/or-link-v3/OrLink.vue.d.ts +2 -2
- package/dist/esm/v3/components/or-link-v3/index.js +1 -3
- package/dist/esm/v3/components/or-loader-v3/OrLoader.vue.d.ts +2 -2
- package/dist/esm/v3/components/or-loader-v3/index.js +1 -3
- 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 +2 -4
- package/dist/esm/v3/components/or-menu-v3/OrMenu.vue.d.ts +2 -2
- package/dist/esm/v3/components/or-menu-v3/index.js +5 -6
- package/dist/esm/v3/components/or-modal-v3/OrModal.vue.d.ts +2 -2
- package/dist/esm/v3/components/or-modal-v3/index.js +8 -9
- package/dist/esm/v3/components/or-notification-v3/OrNotification.vue.d.ts +2 -2
- package/dist/esm/v3/components/or-notification-v3/index.js +8 -9
- package/dist/esm/v3/components/or-overlay-v3/OrOverlay.vue.d.ts +2 -2
- package/dist/esm/v3/components/or-overlay-v3/index.js +1 -2
- package/dist/esm/v3/components/or-pagination-v3/OrPagination.vue.d.ts +2 -2
- package/dist/esm/v3/components/or-pagination-v3/index.js +10 -11
- package/dist/esm/v3/components/or-popover-v3/OrPopover.vue.d.ts +2 -2
- package/dist/esm/v3/components/or-popover-v3/index.js +3 -4
- package/dist/esm/v3/components/or-progress-v3/OrProgress.vue.d.ts +2 -2
- package/dist/esm/v3/components/or-progress-v3/index.js +2 -3
- package/dist/esm/v3/components/or-radio-v3/OrRadio.vue.d.ts +20 -4
- 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 +15 -14
- package/dist/esm/v3/components/or-segmented-control-v3/OrSegmentedControl.vue.d.ts +2 -2
- package/dist/esm/v3/components/or-segmented-control-v3/index.js +1 -3
- package/dist/esm/{v2/components/or-segmented-control-v3/components → v3/components/or-segmented-control-v3/partials}/or-segmented-control-item/OrSegmentedControlItem.vue.d.ts +2 -2
- package/dist/esm/v3/components/or-segmented-control-v3/{components → partials}/or-segmented-control-item/styles.d.ts +0 -0
- package/dist/esm/v3/components/or-select-v3/OrSelect.vue.d.ts +2 -2
- package/dist/esm/v3/components/or-select-v3/index.js +18 -17
- 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 +2 -4
- package/dist/esm/v3/components/or-sort-header-v3/OrSortHeader.vue.d.ts +2 -2
- package/dist/esm/v3/components/or-sort-header-v3/index.js +2 -4
- package/dist/esm/v3/components/or-switch-v3/OrSwitch.vue.d.ts +20 -4
- 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 +1 -3
- package/dist/esm/v3/components/or-tabs-v3/OrTabs.vue.d.ts +2 -2
- package/dist/esm/v3/components/or-tabs-v3/index.js +8 -9
- package/dist/esm/v3/components/or-tag-v3/OrTag.vue.d.ts +2 -2
- package/dist/esm/v3/components/or-tag-v3/index.js +8 -9
- package/dist/esm/v3/components/or-text-v3/OrText.vue.d.ts +2 -2
- package/dist/esm/v3/components/or-text-v3/index.js +1 -3
- package/dist/esm/v3/components/or-textarea-v3/OrTextarea.vue.d.ts +47 -8
- package/dist/esm/v3/components/or-textarea-v3/index.js +7 -6
- package/dist/esm/v3/components/or-toast-v3/index.js +8 -9
- package/dist/esm/v3/components/or-tooltip-v3/OrTooltip.vue.d.ts +2 -2
- package/dist/esm/v3/components/or-tooltip-v3/index.js +4 -5
- package/dist/esm/v3/hooks/index.d.ts +3 -1
- package/dist/esm/v3/hooks/index.js +2 -1
- package/dist/esm/v3/hooks/useControlAttributes.d.ts +8 -0
- package/dist/esm/v3/hooks/useIdAttribute.d.ts +2 -0
- package/dist/esm/v3/hooks/useValidationAttributes.d.ts +12 -0
- package/dist/esm/v3/index.js +46 -45
- package/dist/esm/v3/{types-2692e337.js → types-7f17b4b2.js} +2 -2
- package/dist/esm/v3/useIdAttribute-859439f0.js +21 -0
- package/dist/esm/v3/useValidationAttributes-d1abbe34.js +16 -0
- package/package.json +1 -1
- package/src/components/or-avatar-v3/OrAvatar.vue +3 -9
- package/src/components/or-bottom-sheet-v3/OrBottomSheet.vue +0 -4
- package/src/components/or-button-v3/OrButton.vue +0 -7
- package/src/components/or-card-collection-v3/OrCardCollection.vue +9 -17
- package/src/components/or-card-v3/OrCard.vue +0 -7
- package/src/components/or-checkbox-v3/OrCheckbox.vue +27 -15
- package/src/components/or-confirm-v3/OrConfirm.vue +16 -10
- package/src/components/or-confirm-v3/styles.ts +3 -13
- package/src/components/or-error-tag-v3/OrErrorTag.vue +0 -7
- package/src/components/or-error-v3/OrError.vue +0 -7
- package/src/components/or-expansion-panel-v3/OrExpansionPanel.vue +0 -7
- package/src/components/or-fab-v3/OrFab.vue +0 -3
- package/src/components/or-hint-v3/OrHint.vue +0 -7
- package/src/components/or-icon-button-v3/OrIconButton.vue +0 -4
- package/src/components/or-icon-v3/OrIcon.vue +0 -7
- package/src/components/or-inline-input-box-v3/OrInlineInputBox.vue +0 -7
- package/src/components/or-inline-input-v3/OrInlineInput.vue +31 -18
- package/src/components/or-inline-textarea-v3/OrInlineTextarea.vue +31 -18
- package/src/components/or-input-box-v3/OrInputBox.vue +0 -7
- package/src/components/or-input-v3/OrInput.stories3.ts +4 -4
- package/src/components/or-input-v3/OrInput.vue +32 -25
- package/src/components/or-label-v3/OrLabel.vue +0 -7
- package/src/components/or-link-v3/OrLink.vue +0 -7
- package/src/components/or-loader-v3/OrLoader.vue +1 -8
- package/src/components/or-menu-item-v3/OrMenuItem.vue +0 -7
- package/src/components/or-menu-v3/OrMenu.vue +0 -7
- package/src/components/or-modal-v3/OrModal.vue +0 -4
- package/src/components/or-notification-v3/OrNotification.vue +0 -7
- package/src/components/or-overlay-v3/OrOverlay.vue +1 -4
- package/src/components/or-pagination-v3/OrPagination.vue +1 -8
- package/src/components/or-popover-v3/OrPopover.vue +1 -4
- package/src/components/or-progress-v3/OrProgress.vue +3 -20
- package/src/components/or-radio-v3/OrRadio.vue +26 -14
- package/src/components/or-search-v3/OrSearch.vue +1 -8
- package/src/components/or-segmented-control-v3/OrSegmentedControl.vue +1 -8
- package/src/components/or-segmented-control-v3/{components → partials}/or-segmented-control-item/OrSegmentedControlItem.vue +0 -7
- package/src/components/or-segmented-control-v3/{components → partials}/or-segmented-control-item/styles.ts +0 -0
- package/src/components/or-select-v3/OrSelect.vue +1 -7
- package/src/components/or-skeleton-v3/OrSkeletonCircle.vue +2 -8
- package/src/components/or-skeleton-v3/OrSkeletonRect.vue +3 -8
- package/src/components/or-skeleton-v3/OrSkeletonText.vue +5 -9
- package/src/components/or-sort-header-v3/OrSortHeader.vue +0 -7
- package/src/components/or-switch-v3/OrSwitch.vue +26 -14
- package/src/components/or-tab-v3/OrTab.vue +0 -7
- package/src/components/or-tabs-v3/OrTabs.vue +1 -5
- package/src/components/or-tag-v3/OrTag.vue +0 -7
- package/src/components/or-text-v3/OrText.vue +0 -7
- package/src/components/or-textarea-v3/OrTextarea.stories3.ts +4 -4
- package/src/components/or-textarea-v3/OrTextarea.vue +36 -19
- package/src/components/or-tooltip-v3/OrTooltip.vue +0 -7
- package/src/hooks/index.ts +3 -1
- package/src/hooks/useControlAttributes.ts +19 -0
- package/src/hooks/useIdAttribute.ts +9 -0
- package/src/hooks/useValidationAttributes.ts +25 -0
- package/dist/bundled/v2/hooks/useClassAttribute.d.ts +0 -3
- package/dist/bundled/v2/useClassAttribute-9bf33346.js +0 -33
- package/dist/bundled/v3/OrIcon-d878b768.js +0 -13
- package/dist/bundled/v3/hooks/useClassAttribute.d.ts +0 -3
- package/dist/bundled/v3/useClassAttribute-00888f78.js +0 -9
- package/dist/esm/v2/hooks/useClassAttribute.d.ts +0 -3
- package/dist/esm/v2/useClassAttribute-47fdb016.js +0 -32
- package/dist/esm/v3/hooks/useClassAttribute.d.ts +0 -3
- package/dist/esm/v3/useClassAttribute-47fdb016.js +0 -32
- package/src/hooks/useClassAttribute.ts +0 -39
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
>
|
|
6
6
|
<template v-if="!loading">
|
|
7
7
|
<input
|
|
8
|
-
|
|
9
|
-
:id="controlId"
|
|
8
|
+
ref="control"
|
|
10
9
|
v-model="proxyModelValue"
|
|
10
|
+
v-bind="controlAttributes"
|
|
11
11
|
:class="controlStyles"
|
|
12
12
|
type="checkbox"
|
|
13
13
|
:value="inputValue"
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
|
|
34
34
|
<template v-if="$slots.default || label">
|
|
35
35
|
<OrLabel
|
|
36
|
-
:control-id="
|
|
36
|
+
:control-id="controlAttributes.id"
|
|
37
37
|
:variant="labelVariant"
|
|
38
38
|
:required="required"
|
|
39
39
|
:disabled="disabled"
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
</template>
|
|
50
50
|
|
|
51
51
|
<script lang="ts">
|
|
52
|
-
import { computed, defineComponent,
|
|
53
|
-
import {
|
|
52
|
+
import { computed, defineComponent, PropType, reactive, ref } from 'vue-demi';
|
|
53
|
+
import { useControlAttributes, useIdAttribute } from '../../hooks';
|
|
54
54
|
import { LabelVariant, OrLabelV3 as OrLabel } from '../or-label-v3';
|
|
55
55
|
import { OrLoaderV3 as OrLoader } from '../or-loader-v3';
|
|
56
56
|
import { SwitchControl, SwitchControlHandle, SwitchLoader, SwitchLoaderHandle, SwitchRoot } from './styles';
|
|
@@ -63,8 +63,6 @@ export default defineComponent({
|
|
|
63
63
|
OrLoader,
|
|
64
64
|
},
|
|
65
65
|
|
|
66
|
-
inheritAttrs: false,
|
|
67
|
-
|
|
68
66
|
props: {
|
|
69
67
|
modelValue: {
|
|
70
68
|
type: [Boolean, Array] as PropType<boolean | string[]>,
|
|
@@ -117,21 +115,20 @@ export default defineComponent({
|
|
|
117
115
|
|
|
118
116
|
expose: [
|
|
119
117
|
'root',
|
|
118
|
+
|
|
119
|
+
'focus',
|
|
120
|
+
'blur',
|
|
120
121
|
],
|
|
121
122
|
|
|
122
123
|
setup(props, context) {
|
|
123
|
-
const currentInstance = getCurrentInstance()!;
|
|
124
|
-
|
|
125
124
|
// Refs
|
|
126
125
|
const root = ref<HTMLElement>();
|
|
126
|
+
const control = ref<HTMLInputElement>();
|
|
127
127
|
|
|
128
128
|
// Styles
|
|
129
|
-
const classAttribute = useClassAttribute();
|
|
130
|
-
|
|
131
129
|
const rootStyles = computed(() => [
|
|
132
130
|
'or-switch',
|
|
133
131
|
...SwitchRoot,
|
|
134
|
-
classAttribute.value,
|
|
135
132
|
]);
|
|
136
133
|
|
|
137
134
|
const controlStyles = computed(() => [
|
|
@@ -145,7 +142,10 @@ export default defineComponent({
|
|
|
145
142
|
]);
|
|
146
143
|
|
|
147
144
|
// State
|
|
148
|
-
const
|
|
145
|
+
const controlAttributes = reactive({
|
|
146
|
+
id: useIdAttribute(),
|
|
147
|
+
...useControlAttributes(),
|
|
148
|
+
});
|
|
149
149
|
|
|
150
150
|
const proxyModelValue = computed({
|
|
151
151
|
get: () => {
|
|
@@ -158,13 +158,25 @@ export default defineComponent({
|
|
|
158
158
|
},
|
|
159
159
|
});
|
|
160
160
|
|
|
161
|
+
// Methods
|
|
162
|
+
function focus(): void {
|
|
163
|
+
control.value?.focus();
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
function blur(): void {
|
|
167
|
+
control.value?.blur();
|
|
168
|
+
}
|
|
169
|
+
|
|
161
170
|
return {
|
|
162
171
|
root,
|
|
172
|
+
control,
|
|
163
173
|
rootStyles,
|
|
164
174
|
controlStyles,
|
|
165
175
|
loaderStyles,
|
|
166
|
-
|
|
176
|
+
controlAttributes,
|
|
167
177
|
proxyModelValue,
|
|
178
|
+
focus,
|
|
179
|
+
blur,
|
|
168
180
|
};
|
|
169
181
|
},
|
|
170
182
|
});
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
3
|
ref="root"
|
|
4
|
-
v-bind="$attrs"
|
|
5
4
|
:class="rootStyles"
|
|
6
5
|
:tabindex="0"
|
|
7
6
|
:selected="selected ? '' : null"
|
|
@@ -15,14 +14,11 @@
|
|
|
15
14
|
|
|
16
15
|
<script lang="ts">
|
|
17
16
|
import { computed, defineComponent, ref } from 'vue-demi';
|
|
18
|
-
import { useClassAttribute } from '../../hooks';
|
|
19
17
|
import { TabRoot } from './styles';
|
|
20
18
|
|
|
21
19
|
export default defineComponent({
|
|
22
20
|
name: 'OrTab',
|
|
23
21
|
|
|
24
|
-
inheritAttrs: false,
|
|
25
|
-
|
|
26
22
|
props: {
|
|
27
23
|
selected: {
|
|
28
24
|
type: Boolean,
|
|
@@ -45,12 +41,9 @@ export default defineComponent({
|
|
|
45
41
|
const root = ref<HTMLElement>();
|
|
46
42
|
|
|
47
43
|
// Styles
|
|
48
|
-
const classAttribute = useClassAttribute();
|
|
49
|
-
|
|
50
44
|
const rootStyles = computed(() => [
|
|
51
45
|
'or-tab',
|
|
52
46
|
...TabRoot,
|
|
53
|
-
classAttribute.value,
|
|
54
47
|
]);
|
|
55
48
|
|
|
56
49
|
return {
|
|
@@ -47,7 +47,6 @@
|
|
|
47
47
|
<script lang="ts">
|
|
48
48
|
import { useResizeObserver } from '@vueuse/core';
|
|
49
49
|
import { computed, defineComponent, nextTick, onMounted, PropType, reactive, ref, watch } from 'vue-demi';
|
|
50
|
-
import { useClassAttribute } from '../../hooks';
|
|
51
50
|
import { OrIconV3 as OrIcon } from '../or-icon-v3';
|
|
52
51
|
import { OrMenuItemV3 as OrMenuItem } from '../or-menu-item-v3';
|
|
53
52
|
import { OrMenuV3 as OrMenu } from '../or-menu-v3';
|
|
@@ -111,13 +110,10 @@ export default defineComponent({
|
|
|
111
110
|
const overflowMenuRoot = computed(() => overflowMenu.value?.root);
|
|
112
111
|
|
|
113
112
|
// Styles
|
|
114
|
-
const classAttribute = useClassAttribute();
|
|
115
|
-
|
|
116
113
|
const rootStyles = computed(() => [
|
|
117
114
|
'or-tabs',
|
|
118
115
|
...TabsRoot,
|
|
119
116
|
...TabsRootVariants[props.variant],
|
|
120
|
-
classAttribute.value,
|
|
121
117
|
]);
|
|
122
118
|
|
|
123
119
|
// State
|
|
@@ -139,7 +135,7 @@ export default defineComponent({
|
|
|
139
135
|
|
|
140
136
|
const activeTab = computed(() => props.items.find(({ value }) => value === proxyModelValue.value)!);
|
|
141
137
|
|
|
142
|
-
//
|
|
138
|
+
// Methods
|
|
143
139
|
function rearrangeTabs(items: TabsItem[], activeTab: TabsItem, rootElement: Element): typeof tabs {
|
|
144
140
|
const { children } = rootElement;
|
|
145
141
|
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
3
|
ref="root"
|
|
4
|
-
v-bind="$attrs"
|
|
5
4
|
:class="rootStyles"
|
|
6
5
|
:tabindex="!disabled && variant === 'button' ? 0 : null"
|
|
7
6
|
:disabled="disabled ? '' : null"
|
|
@@ -26,7 +25,6 @@
|
|
|
26
25
|
|
|
27
26
|
<script lang="ts">
|
|
28
27
|
import { computed, defineComponent, PropType, ref, unref, watchPostEffect } from 'vue-demi';
|
|
29
|
-
import { useClassAttribute } from '../../hooks';
|
|
30
28
|
import { OrIconButtonV3 as OrIconButton } from '../or-icon-button-v3';
|
|
31
29
|
import { TagColor, TagVariant } from './props';
|
|
32
30
|
import { TagRoot, TagRootColors, TagRootVariants } from './styles';
|
|
@@ -38,8 +36,6 @@ export default defineComponent({
|
|
|
38
36
|
OrIconButton,
|
|
39
37
|
},
|
|
40
38
|
|
|
41
|
-
inheritAttrs: false,
|
|
42
|
-
|
|
43
39
|
props: {
|
|
44
40
|
variant: {
|
|
45
41
|
type: String as PropType<TagVariant>,
|
|
@@ -74,14 +70,11 @@ export default defineComponent({
|
|
|
74
70
|
const root = ref<HTMLElement>();
|
|
75
71
|
|
|
76
72
|
// Styles
|
|
77
|
-
const classAttribute = useClassAttribute();
|
|
78
|
-
|
|
79
73
|
const rootStyles = computed(() => [
|
|
80
74
|
'or-tag',
|
|
81
75
|
...TagRoot,
|
|
82
76
|
...TagRootVariants[props.variant],
|
|
83
77
|
...!custom.value ? TagRootColors[props.color as TagColor] : [],
|
|
84
|
-
classAttribute.value,
|
|
85
78
|
]);
|
|
86
79
|
|
|
87
80
|
// State
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
3
|
ref="root"
|
|
4
|
-
v-bind="$attrs"
|
|
5
4
|
:class="rootStyles"
|
|
6
5
|
>
|
|
7
6
|
<div :class="mainTextStyles">
|
|
@@ -16,14 +15,11 @@
|
|
|
16
15
|
|
|
17
16
|
<script lang="ts">
|
|
18
17
|
import { computed, defineComponent, ref } from 'vue-demi';
|
|
19
|
-
import { useClassAttribute } from '../../hooks';
|
|
20
18
|
import { MainText, RestText, TextRoot } from './styles';
|
|
21
19
|
|
|
22
20
|
export default defineComponent({
|
|
23
21
|
name: 'OrText',
|
|
24
22
|
|
|
25
|
-
inheritAttrs: false,
|
|
26
|
-
|
|
27
23
|
props: {
|
|
28
24
|
text: {
|
|
29
25
|
type: String,
|
|
@@ -45,12 +41,9 @@ export default defineComponent({
|
|
|
45
41
|
const root = ref<HTMLElement>();
|
|
46
42
|
|
|
47
43
|
// Styles
|
|
48
|
-
const classAttribute = useClassAttribute();
|
|
49
|
-
|
|
50
44
|
const rootStyles = computed(() => [
|
|
51
45
|
'or-text',
|
|
52
46
|
...TextRoot,
|
|
53
|
-
classAttribute.value,
|
|
54
47
|
]);
|
|
55
48
|
|
|
56
49
|
const mainTextStyles = computed(() => [
|
|
@@ -16,10 +16,6 @@ export default {
|
|
|
16
16
|
control: { type: 'text' },
|
|
17
17
|
},
|
|
18
18
|
|
|
19
|
-
readonly: {
|
|
20
|
-
control: { type: 'boolean' },
|
|
21
|
-
},
|
|
22
|
-
|
|
23
19
|
maxlength: {
|
|
24
20
|
control: { type: 'number' },
|
|
25
21
|
},
|
|
@@ -68,6 +64,10 @@ export default {
|
|
|
68
64
|
control: { type: 'boolean' },
|
|
69
65
|
},
|
|
70
66
|
|
|
67
|
+
readonly: {
|
|
68
|
+
control: { type: 'boolean' },
|
|
69
|
+
},
|
|
70
|
+
|
|
71
71
|
disabled: {
|
|
72
72
|
control: { type: 'boolean' },
|
|
73
73
|
},
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
>
|
|
6
6
|
<template v-if="label">
|
|
7
7
|
<OrLabel
|
|
8
|
-
:control-id="
|
|
8
|
+
:control-id="controlAttributes.id"
|
|
9
9
|
:variant="'input'"
|
|
10
10
|
:required="required"
|
|
11
11
|
:disabled="disabled"
|
|
@@ -25,12 +25,13 @@
|
|
|
25
25
|
:disabled="disabled"
|
|
26
26
|
>
|
|
27
27
|
<textarea
|
|
28
|
-
|
|
28
|
+
ref="control"
|
|
29
29
|
v-model="proxyModelValue"
|
|
30
|
-
v-bind="
|
|
30
|
+
v-bind="controlAttributes"
|
|
31
31
|
:class="controlStyles"
|
|
32
32
|
:placeholder="placeholder"
|
|
33
33
|
:required="required"
|
|
34
|
+
:readonly="readonly"
|
|
34
35
|
:disabled="disabled"
|
|
35
36
|
@keydown="$emit('keydown', $event)"
|
|
36
37
|
@keyup="$emit('keyup', $event)"
|
|
@@ -70,8 +71,8 @@
|
|
|
70
71
|
</template>
|
|
71
72
|
|
|
72
73
|
<script lang="ts">
|
|
73
|
-
import { computed, defineComponent,
|
|
74
|
-
import {
|
|
74
|
+
import { computed, defineComponent, PropType, reactive, ref } from 'vue-demi';
|
|
75
|
+
import { useControlAttributes, useIdAttribute, useValidationAttributes } from '../../hooks';
|
|
75
76
|
import { OrErrorV3 as OrError } from '../or-error-v3';
|
|
76
77
|
import { OrHintV3 as OrHint } from '../or-hint-v3';
|
|
77
78
|
import { OrInputBoxV3 as OrInputBox } from '../or-input-box-v3';
|
|
@@ -89,8 +90,6 @@ export default defineComponent({
|
|
|
89
90
|
OrLabel,
|
|
90
91
|
},
|
|
91
92
|
|
|
92
|
-
inheritAttrs: false,
|
|
93
|
-
|
|
94
93
|
props: {
|
|
95
94
|
modelValue: {
|
|
96
95
|
type: String,
|
|
@@ -132,6 +131,11 @@ export default defineComponent({
|
|
|
132
131
|
default: false,
|
|
133
132
|
},
|
|
134
133
|
|
|
134
|
+
readonly: {
|
|
135
|
+
type: Boolean,
|
|
136
|
+
default: false,
|
|
137
|
+
},
|
|
138
|
+
|
|
135
139
|
disabled: {
|
|
136
140
|
type: Boolean,
|
|
137
141
|
default: false,
|
|
@@ -150,21 +154,20 @@ export default defineComponent({
|
|
|
150
154
|
|
|
151
155
|
expose: [
|
|
152
156
|
'root',
|
|
157
|
+
|
|
158
|
+
'focus',
|
|
159
|
+
'blur',
|
|
153
160
|
],
|
|
154
161
|
|
|
155
162
|
setup(props, context) {
|
|
156
|
-
const currentInstance = getCurrentInstance()!;
|
|
157
|
-
|
|
158
163
|
// Refs
|
|
159
164
|
const root = ref<HTMLElement>();
|
|
165
|
+
const control = ref<HTMLTextAreaElement>();
|
|
160
166
|
|
|
161
167
|
// Styles
|
|
162
|
-
const classAttribute = useClassAttribute();
|
|
163
|
-
|
|
164
168
|
const rootStyles = computed(() => [
|
|
165
169
|
'or-textarea',
|
|
166
170
|
...TextareaRoot,
|
|
167
|
-
classAttribute.value,
|
|
168
171
|
]);
|
|
169
172
|
|
|
170
173
|
const controlStyles = computed(() => [
|
|
@@ -172,7 +175,11 @@ export default defineComponent({
|
|
|
172
175
|
]);
|
|
173
176
|
|
|
174
177
|
// State
|
|
175
|
-
const
|
|
178
|
+
const controlAttributes = reactive({
|
|
179
|
+
id: useIdAttribute(),
|
|
180
|
+
...useControlAttributes(),
|
|
181
|
+
...useValidationAttributes(),
|
|
182
|
+
});
|
|
176
183
|
|
|
177
184
|
const proxyModelValue = computed({
|
|
178
185
|
get: () => {
|
|
@@ -185,22 +192,32 @@ export default defineComponent({
|
|
|
185
192
|
},
|
|
186
193
|
});
|
|
187
194
|
|
|
195
|
+
const currentLength = computed(() => proxyModelValue.value?.toString().length ?? 0);
|
|
196
|
+
const maxLength = computed(() => controlAttributes.maxlength);
|
|
197
|
+
|
|
188
198
|
const invalid = computed(() => !!props.error);
|
|
189
|
-
const readonly = computed(() => context.attrs.readonly as boolean);
|
|
190
199
|
|
|
191
|
-
|
|
192
|
-
|
|
200
|
+
// Methods
|
|
201
|
+
function focus(): void {
|
|
202
|
+
control.value?.focus();
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
function blur(): void {
|
|
206
|
+
control.value?.blur();
|
|
207
|
+
}
|
|
193
208
|
|
|
194
209
|
return {
|
|
195
210
|
root,
|
|
211
|
+
control,
|
|
196
212
|
rootStyles,
|
|
197
213
|
controlStyles,
|
|
198
|
-
|
|
214
|
+
controlAttributes,
|
|
199
215
|
proxyModelValue,
|
|
200
|
-
invalid,
|
|
201
|
-
readonly,
|
|
202
216
|
currentLength,
|
|
203
217
|
maxLength,
|
|
218
|
+
invalid,
|
|
219
|
+
focus,
|
|
220
|
+
blur,
|
|
204
221
|
};
|
|
205
222
|
},
|
|
206
223
|
});
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
3
|
ref="root"
|
|
4
|
-
v-bind="$attrs"
|
|
5
4
|
:class="rootStyles"
|
|
6
5
|
>
|
|
7
6
|
<slot />
|
|
@@ -27,7 +26,6 @@
|
|
|
27
26
|
<script lang="ts">
|
|
28
27
|
import { useDebounceFn, useElementHover } from '@vueuse/core';
|
|
29
28
|
import { computed, defineComponent, PropType, ref, watch } from 'vue-demi';
|
|
30
|
-
import { useClassAttribute } from '../../hooks';
|
|
31
29
|
import { OrPopoverV3 as OrPopover } from '../or-popover-v3';
|
|
32
30
|
import { TooltipPlacement } from './props';
|
|
33
31
|
import { TooltipBody, TooltipBodyPlacements, TooltipRoot } from './styles';
|
|
@@ -39,8 +37,6 @@ export default defineComponent({
|
|
|
39
37
|
OrPopover,
|
|
40
38
|
},
|
|
41
39
|
|
|
42
|
-
inheritAttrs: false,
|
|
43
|
-
|
|
44
40
|
props: {
|
|
45
41
|
text: {
|
|
46
42
|
type: String,
|
|
@@ -71,12 +67,9 @@ export default defineComponent({
|
|
|
71
67
|
const popoverRoot = computed(() => popover.value?.root);
|
|
72
68
|
|
|
73
69
|
// Styles
|
|
74
|
-
const classAttribute = useClassAttribute();
|
|
75
|
-
|
|
76
70
|
const rootStyles = computed(() => [
|
|
77
71
|
'or-tooltip',
|
|
78
72
|
...TooltipRoot,
|
|
79
|
-
classAttribute.value,
|
|
80
73
|
]);
|
|
81
74
|
|
|
82
75
|
const bodyStyles = computed(() => [
|
package/src/hooks/index.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { useControlAttributes } from './useControlAttributes';
|
|
2
2
|
export { useElevation } from './useElevation';
|
|
3
|
+
export { useIdAttribute } from './useIdAttribute';
|
|
3
4
|
export { useOverflow } from './useOverflow';
|
|
4
5
|
export { useResponsive } from './useResponsive';
|
|
5
6
|
export { default as useToggle } from './useToggle';
|
|
7
|
+
export { useValidationAttributes } from './useValidationAttributes';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { computed, ComputedRef, useAttrs } from 'vue-demi';
|
|
2
|
+
|
|
3
|
+
interface ControlAttributes {
|
|
4
|
+
readonly: ComputedRef<boolean | undefined>;
|
|
5
|
+
disabled: ComputedRef<boolean | undefined>;
|
|
6
|
+
|
|
7
|
+
'force-state': ComputedRef<string | undefined>;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export function useControlAttributes(): ControlAttributes {
|
|
11
|
+
const attributes = useAttrs();
|
|
12
|
+
|
|
13
|
+
return {
|
|
14
|
+
readonly: computed(() => attributes['readonly'] as boolean | undefined),
|
|
15
|
+
disabled: computed(() => attributes['disabled'] as boolean | undefined),
|
|
16
|
+
|
|
17
|
+
'force-state': computed(() => attributes['force-state'] as string | undefined),
|
|
18
|
+
};
|
|
19
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { computed, ComputedRef, getCurrentInstance, useAttrs } from 'vue-demi';
|
|
2
|
+
|
|
3
|
+
export function useIdAttribute(): ComputedRef<string | undefined> {
|
|
4
|
+
const attributes = useAttrs(), component = getCurrentInstance();
|
|
5
|
+
|
|
6
|
+
return computed(() => {
|
|
7
|
+
return attributes['id'] as string | undefined ?? component?.uid.toString();
|
|
8
|
+
});
|
|
9
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { computed, ComputedRef, useAttrs } from 'vue-demi';
|
|
2
|
+
|
|
3
|
+
interface ValidationAttributes {
|
|
4
|
+
required: ComputedRef<boolean | undefined>;
|
|
5
|
+
minlength: ComputedRef<number | undefined>;
|
|
6
|
+
maxlength: ComputedRef<number | undefined>;
|
|
7
|
+
pattern: ComputedRef<string | undefined>;
|
|
8
|
+
min: ComputedRef<number | undefined>;
|
|
9
|
+
max: ComputedRef<number | undefined>;
|
|
10
|
+
step: ComputedRef<number | undefined>;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export function useValidationAttributes(): ValidationAttributes {
|
|
14
|
+
const attributes = useAttrs();
|
|
15
|
+
|
|
16
|
+
return {
|
|
17
|
+
required: computed(() => attributes['required'] as boolean | undefined),
|
|
18
|
+
minlength: computed(() => attributes['minlength'] as number | undefined),
|
|
19
|
+
maxlength: computed(() => attributes['maxlength'] as number | undefined),
|
|
20
|
+
pattern: computed(() => attributes['pattern'] as string | undefined),
|
|
21
|
+
min: computed(() => attributes['min'] as number | undefined),
|
|
22
|
+
max: computed(() => attributes['max'] as number | undefined),
|
|
23
|
+
step: computed(() => attributes['step'] as number | undefined),
|
|
24
|
+
};
|
|
25
|
+
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import './index-fa6eb4ca.js';
|
|
2
|
-
import { getCurrentInstance, computed } from '@vue/composition-api/dist/vue-composition-api.mjs';
|
|
3
|
-
|
|
4
|
-
function useClassAttribute() {
|
|
5
|
-
const currentInstance = getCurrentInstance();
|
|
6
|
-
// Functions
|
|
7
|
-
function composeClass() {
|
|
8
|
-
var _a;
|
|
9
|
-
const {
|
|
10
|
-
staticClass = '',
|
|
11
|
-
class: classProperty
|
|
12
|
-
} = (_a = (currentInstance === null || currentInstance === void 0 ? void 0 : currentInstance.vnode).data) !== null && _a !== void 0 ? _a : {};
|
|
13
|
-
if (!classProperty) {
|
|
14
|
-
return staticClass || undefined;
|
|
15
|
-
}
|
|
16
|
-
switch (true) {
|
|
17
|
-
case classProperty.constructor === Object:
|
|
18
|
-
return Object.entries(classProperty).filter(([, value]) => !!value).map(([className]) => className).reduce((classList, className) => `${classList} ${className}`, staticClass).trim();
|
|
19
|
-
case Array.isArray(classProperty):
|
|
20
|
-
return `${staticClass} ${classProperty.join(' ')}`.trim();
|
|
21
|
-
default:
|
|
22
|
-
return `${staticClass} ${classProperty}`.trim();
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
return computed(() => {
|
|
26
|
-
var _a;
|
|
27
|
-
{
|
|
28
|
-
return (_a = currentInstance === null || currentInstance === void 0 ? void 0 : currentInstance.attrs.class) !== null && _a !== void 0 ? _a : composeClass();
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export { useClassAttribute as u };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { s as script } from './OrIcon.vue_vue_type_script_lang-a119a715.js';
|
|
2
|
-
import { openBlock, createElementBlock, mergeProps, toDisplayString } from 'vue';
|
|
3
|
-
|
|
4
|
-
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5
|
-
return openBlock(), createElementBlock("div", mergeProps({
|
|
6
|
-
ref: "root"
|
|
7
|
-
}, _ctx.$attrs, {
|
|
8
|
-
class: _ctx.rootStyles
|
|
9
|
-
}), toDisplayString(_ctx.icon), 17 /* TEXT, FULL_PROPS */);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
script.render = render;
|
|
13
|
-
script.__file = "src/components/or-icon-v3/OrIcon.vue";
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { getCurrentInstance, computed, isVue2 } from 'vue-demi';
|
|
2
|
-
|
|
3
|
-
function useClassAttribute() {
|
|
4
|
-
const currentInstance = getCurrentInstance();
|
|
5
|
-
// Functions
|
|
6
|
-
function composeClass() {
|
|
7
|
-
var _a;
|
|
8
|
-
const {
|
|
9
|
-
staticClass = '',
|
|
10
|
-
class: classProperty
|
|
11
|
-
} = (_a = (currentInstance === null || currentInstance === void 0 ? void 0 : currentInstance.vnode).data) !== null && _a !== void 0 ? _a : {};
|
|
12
|
-
if (!classProperty) {
|
|
13
|
-
return staticClass || undefined;
|
|
14
|
-
}
|
|
15
|
-
switch (true) {
|
|
16
|
-
case classProperty.constructor === Object:
|
|
17
|
-
return Object.entries(classProperty).filter(([, value]) => !!value).map(([className]) => className).reduce((classList, className) => `${classList} ${className}`, staticClass).trim();
|
|
18
|
-
case Array.isArray(classProperty):
|
|
19
|
-
return `${staticClass} ${classProperty.join(' ')}`.trim();
|
|
20
|
-
default:
|
|
21
|
-
return `${staticClass} ${classProperty}`.trim();
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
return computed(() => {
|
|
25
|
-
var _a;
|
|
26
|
-
if (isVue2) {
|
|
27
|
-
return (_a = currentInstance === null || currentInstance === void 0 ? void 0 : currentInstance.attrs.class) !== null && _a !== void 0 ? _a : composeClass();
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export { useClassAttribute as u };
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { getCurrentInstance, computed, isVue2 } from 'vue-demi';
|
|
2
|
-
|
|
3
|
-
function useClassAttribute() {
|
|
4
|
-
const currentInstance = getCurrentInstance();
|
|
5
|
-
// Functions
|
|
6
|
-
function composeClass() {
|
|
7
|
-
var _a;
|
|
8
|
-
const {
|
|
9
|
-
staticClass = '',
|
|
10
|
-
class: classProperty
|
|
11
|
-
} = (_a = (currentInstance === null || currentInstance === void 0 ? void 0 : currentInstance.vnode).data) !== null && _a !== void 0 ? _a : {};
|
|
12
|
-
if (!classProperty) {
|
|
13
|
-
return staticClass || undefined;
|
|
14
|
-
}
|
|
15
|
-
switch (true) {
|
|
16
|
-
case classProperty.constructor === Object:
|
|
17
|
-
return Object.entries(classProperty).filter(([, value]) => !!value).map(([className]) => className).reduce((classList, className) => `${classList} ${className}`, staticClass).trim();
|
|
18
|
-
case Array.isArray(classProperty):
|
|
19
|
-
return `${staticClass} ${classProperty.join(' ')}`.trim();
|
|
20
|
-
default:
|
|
21
|
-
return `${staticClass} ${classProperty}`.trim();
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
return computed(() => {
|
|
25
|
-
var _a;
|
|
26
|
-
if (isVue2) {
|
|
27
|
-
return (_a = currentInstance === null || currentInstance === void 0 ? void 0 : currentInstance.attrs.class) !== null && _a !== void 0 ? _a : composeClass();
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export { useClassAttribute as u };
|