@onereach/ui-components 2.69.7-beta.2171.0 → 2.69.7-beta.2172.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundled/v2/{OrCardCollection-c4209a92.js → OrCardCollection-9ab12583.js} +1 -1
- package/dist/bundled/v2/{OrConfirm-cab6535b.js → OrConfirm-58a0d0ae.js} +1 -1
- package/dist/bundled/v2/{OrExpansionPanel-d9a260e2.js → OrExpansionPanel-995caa85.js} +5 -32
- package/dist/bundled/v2/{OrInput-8b90e08f.js → OrInput-70a17476.js} +18 -10
- package/dist/bundled/v2/{OrSearch-76b002cf.js → OrSearch-e9fe9aba.js} +1 -1
- package/dist/bundled/v2/{OrSelect-9658e0f2.js → OrSelect-396692be.js} +2 -2
- package/dist/bundled/v2/{OrSwitch-237a2081.js → OrSwitch-337c4e40.js} +16 -8
- package/dist/bundled/v2/components/index.js +9 -7
- package/dist/bundled/v2/components/or-card-collection-v3/index.js +5 -3
- package/dist/bundled/v2/components/or-confirm-v3/index.js +4 -2
- package/dist/bundled/v2/components/or-expansion-panel-v3/OrExpansionPanel.vue.d.ts +3 -22
- package/dist/bundled/v2/components/or-expansion-panel-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-input-v3/OrInput.stories3.d.ts +2 -0
- package/dist/bundled/v2/components/or-input-v3/OrInput.vue.d.ts +6 -2
- package/dist/bundled/v2/components/or-input-v3/index.js +3 -1
- package/dist/bundled/v2/components/or-search-v3/index.js +4 -2
- package/dist/bundled/v2/components/or-select-v3/index.js +5 -3
- package/dist/bundled/v2/components/or-switch-v3/OrSwitch.vue.d.ts +6 -2
- package/dist/bundled/v2/components/or-switch-v3/index.js +3 -1
- package/dist/bundled/v2/hooks/index.d.ts +1 -0
- package/dist/bundled/v2/hooks/index.js +2 -0
- package/dist/bundled/v2/hooks/useSlicedAttrs.d.ts +5 -0
- package/dist/bundled/v2/index.js +9 -7
- package/dist/bundled/v2/useSlicedAttrs-8d836c02.js +30 -0
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-9a2ae9a3.js → OrCardCollection.vue_vue_type_script_lang-d63ff1bf.js} +1 -1
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-f57ffa1a.js → OrConfirm.vue_vue_type_script_lang-e6d1a51f.js} +2 -2
- package/dist/bundled/v3/{OrExpansionPanel.vue_vue_type_script_lang-5360f580.js → OrExpansionPanel.vue_vue_type_script_lang-7f9c6721.js} +4 -31
- package/dist/bundled/v3/{OrInput-fa782fc1.js → OrInput-aee859e9.js} +5 -4
- package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-f6d793d3.js → OrInput.vue_vue_type_script_lang-b687f7f9.js} +10 -3
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-014ad470.js → OrSearch.vue_vue_type_script_lang-c3c18f88.js} +2 -2
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-359d1a58.js → OrSelect.vue_vue_type_script_lang-639cf302.js} +4 -4
- package/dist/bundled/v3/{OrSwitch.vue_vue_type_script_lang-04829f64.js → OrSwitch.vue_vue_type_script_lang-e7c7f18b.js} +10 -3
- package/dist/bundled/v3/components/index.js +10 -8
- package/dist/bundled/v3/components/or-card-collection-v3/index.js +6 -4
- package/dist/bundled/v3/components/or-confirm-v3/index.js +5 -3
- package/dist/bundled/v3/components/or-expansion-panel-v3/OrExpansionPanel.vue.d.ts +3 -22
- package/dist/bundled/v3/components/or-expansion-panel-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-input-v3/OrInput.stories3.d.ts +2 -0
- package/dist/bundled/v3/components/or-input-v3/OrInput.vue.d.ts +6 -2
- package/dist/bundled/v3/components/or-input-v3/index.js +3 -1
- package/dist/bundled/v3/components/or-search-v3/index.js +5 -3
- package/dist/bundled/v3/components/or-select-v3/index.js +6 -4
- package/dist/bundled/v3/components/or-switch-v3/OrSwitch.vue.d.ts +6 -2
- package/dist/bundled/v3/components/or-switch-v3/index.js +3 -1
- package/dist/bundled/v3/hooks/index.d.ts +1 -0
- package/dist/bundled/v3/hooks/index.js +2 -0
- package/dist/bundled/v3/hooks/useSlicedAttrs.d.ts +5 -0
- package/dist/bundled/v3/index.js +17 -14
- package/dist/bundled/v3/useSlicedAttrs-81ac6537.js +24 -0
- package/dist/esm/v2/{OrAvatar-3d155af3.js → OrAvatar-4d05d21f.js} +2 -1
- package/dist/esm/v2/{OrBottomSheet-16c2e610.js → OrBottomSheet-0386a623.js} +2 -1
- package/dist/esm/v2/{OrButton-357e1e2c.js → OrButton-48c68216.js} +2 -1
- package/dist/esm/v2/{OrCard-de799db0.js → OrCard-3e794244.js} +1 -0
- package/dist/esm/v2/{OrCardCollection-f6b07557.js → OrCardCollection-1702319b.js} +2 -2
- package/dist/esm/v2/{OrCardCollection-57d11adf.js → OrCardCollection-d145adbe.js} +9 -8
- package/dist/esm/v2/{OrCheckbox-567e387c.js → OrCheckbox-197c4331.js} +2 -1
- package/dist/esm/v2/{OrConfirm-d7112dd3.js → OrConfirm-9e0fcf83.js} +1 -1
- package/dist/esm/v2/{OrConfirm-ec7aef0e.js → OrConfirm-b62d2205.js} +3 -3
- package/dist/esm/v2/{OrError-d267ee9a.js → OrError-55b6feda.js} +1 -0
- package/dist/esm/v2/{OrErrorTag-782dd714.js → OrErrorTag-d0407d4e.js} +2 -1
- package/dist/esm/v2/{OrExpansionPanel-a123024e.js → OrExpansionPanel-db7e325b.js} +7 -33
- package/dist/esm/v2/{OrFab-26106618.js → OrFab-77f5bb6e.js} +1 -1
- package/dist/esm/v2/{OrHint-42dc9ebb.js → OrHint-8ac527b2.js} +1 -0
- package/dist/esm/v2/{OrIcon-5e394c62.js → OrIcon-ed9e0063.js} +1 -0
- package/dist/esm/v2/{OrIconButton-e17e4944.js → OrIconButton-8d8bb874.js} +4 -3
- package/dist/esm/v2/{OrInlineInput-cfeeea33.js → OrInlineInput-a2e57f5c.js} +5 -4
- package/dist/esm/v2/{OrInlineInputBox-fefd4fbd.js → OrInlineInputBox-6a1d02c1.js} +1 -0
- package/dist/esm/v2/{OrInlineTextarea-897b5377.js → OrInlineTextarea-8ca157c7.js} +5 -4
- package/dist/esm/v2/{OrInput-2f16a7ac.js → OrInput-28f1c749.js} +24 -16
- package/dist/esm/v2/{OrInputBox-4d5a318d.js → OrInputBox-83980d24.js} +1 -0
- package/dist/esm/v2/{OrLabel-2a9f1477.js → OrLabel-0e300559.js} +1 -0
- package/dist/esm/v2/{OrLink-80742a17.js → OrLink-71e57969.js} +1 -0
- package/dist/esm/v2/{OrListOfInputs-50aa1ef1.js → OrListOfInputs-222bafd0.js} +1 -1
- package/dist/esm/v2/{OrLoader-f857d55b.js → OrLoader-5076d36b.js} +1 -0
- package/dist/esm/v2/{OrMenu-df27d0ef.js → OrMenu-f9b65b19.js} +2 -1
- package/dist/esm/v2/{OrMenuItem-c7f28480.js → OrMenuItem-26f5c30b.js} +2 -1
- package/dist/esm/v2/{OrModal-5b37a50a.js → OrModal-026a1889.js} +3 -2
- package/dist/esm/v2/{OrNotification-c765f111.js → OrNotification-f3c411f2.js} +3 -2
- package/dist/esm/v2/{OrOverlay-18ba2dc6.js → OrOverlay-c60af55e.js} +1 -0
- package/dist/esm/v2/{OrPassword-1fa97156.js → OrPassword-90a03124.js} +1 -1
- package/dist/esm/v2/{OrPopover-9bafbdb4.js → OrPopover-92cfde7e.js} +2 -1
- package/dist/esm/v2/{OrProgress-c27c8946.js → OrProgress-478b4e28.js} +1 -0
- package/dist/esm/v2/{OrRadio-848ce55d.js → OrRadio-f8c32b3a.js} +2 -1
- package/dist/esm/v2/{OrSearch-0589d17d.js → OrSearch-e0ffe9eb.js} +1 -1
- package/dist/esm/v2/{OrSearch-2f260b09.js → OrSearch-e935e64c.js} +3 -2
- package/dist/esm/v2/{OrSearch.vue_rollup-plugin-vue_script-197d77fc.js → OrSearch.vue_rollup-plugin-vue_script-2d694d30.js} +1 -0
- package/dist/esm/v2/{OrSegmentedControl-e8dce8f9.js → OrSegmentedControl-77a3e7d2.js} +1 -0
- package/dist/esm/v2/{OrSelect-7a2f6001.js → OrSelect-7c0417ed.js} +12 -11
- package/dist/esm/v2/{OrSkeletonText-950be6a2.js → OrSkeletonText-c1a4d7f2.js} +1 -0
- package/dist/esm/v2/{OrSortHeader-19bf94ca.js → OrSortHeader-0e6232da.js} +2 -1
- package/dist/esm/v2/{OrSwitch-13b6a7ee.js → OrSwitch-cbd0d767.js} +18 -10
- package/dist/esm/v2/{OrTab-702e7335.js → OrTab-6980c1dc.js} +1 -0
- package/dist/esm/v2/{OrTabs-71bd3fd2.js → OrTabs-bf200bc9.js} +6 -5
- package/dist/esm/v2/{OrTag-cf9c6195.js → OrTag-decd89a1.js} +2 -1
- package/dist/esm/v2/{OrText-ba5a2b6c.js → OrText-c78df05d.js} +1 -0
- package/dist/esm/v2/{OrTextarea-6712a150.js → OrTextarea-498efe98.js} +5 -4
- package/dist/esm/v2/{OrTextbox-2594c980.js → OrTextbox-f4f041ed.js} +1 -0
- package/dist/esm/v2/{OrTooltip-513bee30.js → OrTooltip-216920f0.js} +2 -1
- package/dist/esm/v2/components/index.js +52 -50
- package/dist/esm/v2/components/or-avatar-v3/index.js +3 -2
- package/dist/esm/v2/components/or-bottom-sheet-v3/index.js +3 -2
- package/dist/esm/v2/components/or-button-v3/index.js +3 -2
- package/dist/esm/v2/components/or-card-collection/index.js +4 -3
- package/dist/esm/v2/components/or-card-collection-v3/index.js +19 -17
- package/dist/esm/v2/components/or-card-v3/index.js +2 -1
- package/dist/esm/v2/components/or-checkbox-v3/index.js +3 -2
- package/dist/esm/v2/components/or-confirm/index.js +3 -2
- package/dist/esm/v2/components/or-confirm-v3/index.js +16 -14
- package/dist/esm/v2/components/or-error-tag-v3/index.js +3 -2
- package/dist/esm/v2/components/or-error-v3/index.js +2 -1
- package/dist/esm/v2/components/or-expansion-panel-v3/OrExpansionPanel.vue.d.ts +3 -22
- package/dist/esm/v2/components/or-expansion-panel-v3/index.js +3 -2
- package/dist/esm/v2/components/or-fab-v3/index.js +3 -2
- package/dist/esm/v2/components/or-hint-v3/index.js +2 -1
- package/dist/esm/v2/components/or-icon-button-v3/index.js +7 -6
- package/dist/esm/v2/components/or-icon-v3/index.js +2 -1
- package/dist/esm/v2/components/or-inline-input-box-v3/index.js +2 -1
- package/dist/esm/v2/components/or-inline-input-v3/index.js +11 -10
- package/dist/esm/v2/components/or-inline-textarea-v3/index.js +11 -10
- package/dist/esm/v2/components/or-input-box-v3/index.js +2 -1
- package/dist/esm/v2/components/or-input-v3/OrInput.stories3.d.ts +2 -0
- package/dist/esm/v2/components/or-input-v3/OrInput.vue.d.ts +6 -2
- package/dist/esm/v2/components/or-input-v3/index.js +14 -12
- package/dist/esm/v2/components/or-inputs/index.js +4 -3
- package/dist/esm/v2/components/or-label-v3/index.js +2 -1
- package/dist/esm/v2/components/or-link-v3/index.js +2 -1
- package/dist/esm/v2/components/or-list-of-inputs/index.js +3 -2
- package/dist/esm/v2/components/or-loader-v3/index.js +2 -1
- package/dist/esm/v2/components/or-menu-item-v3/index.js +3 -2
- package/dist/esm/v2/components/or-menu-v3/index.js +5 -4
- package/dist/esm/v2/components/or-modal-v3/index.js +8 -7
- package/dist/esm/v2/components/or-notification-v3/index.js +8 -7
- package/dist/esm/v2/components/or-overlay-v3/index.js +2 -1
- package/dist/esm/v2/components/or-popover-v3/index.js +4 -3
- package/dist/esm/v2/components/or-progress-v3/index.js +2 -1
- package/dist/esm/v2/components/or-radio-v3/index.js +3 -2
- package/dist/esm/v2/components/or-search-v3/index.js +14 -12
- package/dist/esm/v2/components/or-segmented-control-v3/index.js +2 -1
- package/dist/esm/v2/components/or-select-v3/index.js +18 -16
- package/dist/esm/v2/components/or-skeleton-v3/index.js +2 -1
- package/dist/esm/v2/components/or-sort-header-v3/index.js +3 -2
- package/dist/esm/v2/components/or-switch-v3/OrSwitch.vue.d.ts +6 -2
- package/dist/esm/v2/components/or-switch-v3/index.js +6 -4
- package/dist/esm/v2/components/or-tab-v3/index.js +2 -1
- package/dist/esm/v2/components/or-tabs-v3/index.js +9 -8
- package/dist/esm/v2/components/or-tag-v3/index.js +8 -7
- package/dist/esm/v2/components/or-text-v3/index.js +2 -1
- package/dist/esm/v2/components/or-textarea-v3/index.js +6 -5
- package/dist/esm/v2/components/or-textbox/index.js +2 -1
- package/dist/esm/v2/components/or-toast-v3/index.js +9 -8
- package/dist/esm/v2/components/or-tooltip-v3/index.js +5 -4
- package/dist/esm/v2/hooks/index.d.ts +1 -0
- package/dist/esm/v2/hooks/index.js +2 -0
- package/dist/esm/v2/hooks/useSlicedAttrs.d.ts +5 -0
- package/dist/esm/v2/index.js +52 -50
- package/dist/esm/v2/{types-8d58d7b5.js → types-1d68431e.js} +2 -2
- package/dist/esm/v2/useSlicedAttrs-91deb3b7.js +31 -0
- package/dist/esm/v3/{OrAvatar-53a4429d.js → OrAvatar-6c4ff382.js} +2 -1
- package/dist/esm/v3/{OrBottomSheet-62817aec.js → OrBottomSheet-11ab621e.js} +2 -1
- package/dist/esm/v3/{OrButton-bb6bf8a9.js → OrButton-fd69e79e.js} +2 -1
- package/dist/esm/v3/{OrCard-fd92f7c8.js → OrCard-14c50722.js} +1 -0
- package/dist/esm/v3/{OrCardCollection-2a6514f3.js → OrCardCollection-45884ef2.js} +9 -8
- package/dist/esm/v3/{OrCardCollection-a5e326ef.js → OrCardCollection-989bb549.js} +1 -1
- package/dist/esm/v3/{OrCheckbox-3e139eac.js → OrCheckbox-cf989d15.js} +2 -1
- package/dist/esm/v3/{OrConfirm-f39bd784.js → OrConfirm-53788490.js} +1 -1
- package/dist/esm/v3/{OrConfirm-5d56cbd3.js → OrConfirm-8c4f080b.js} +3 -3
- package/dist/esm/v3/{OrError-ec8c709d.js → OrError-2ef63390.js} +1 -0
- package/dist/esm/v3/{OrErrorTag-98252eef.js → OrErrorTag-630205fc.js} +2 -1
- package/dist/esm/v3/{OrExpansionPanel-f8d7ff8d.js → OrExpansionPanel-0151936a.js} +7 -33
- package/dist/esm/v3/{OrFab-c8ae6e01.js → OrFab-7c1780e5.js} +1 -1
- package/dist/esm/v3/{OrHint-74bb732d.js → OrHint-4f497295.js} +1 -0
- package/dist/esm/v3/{OrIcon-b195169c.js → OrIcon-085d2eb1.js} +1 -0
- package/dist/esm/v3/{OrIconButton-1eebcafc.js → OrIconButton-830faf78.js} +4 -3
- package/dist/esm/v3/{OrInlineInput-31026cd0.js → OrInlineInput-46fd890d.js} +5 -4
- package/dist/esm/v3/{OrInlineInputBox-8049f95a.js → OrInlineInputBox-226e29da.js} +1 -0
- package/dist/esm/v3/{OrInlineTextarea-b28c3d8c.js → OrInlineTextarea-837cb99a.js} +5 -4
- package/dist/esm/v3/{OrInput-41691fb3.js → OrInput-502b6d49.js} +20 -12
- package/dist/esm/v3/{OrInputBox-6d1b6059.js → OrInputBox-304481e7.js} +1 -0
- package/dist/esm/v3/{OrLabel-bdaec602.js → OrLabel-7989b72a.js} +1 -0
- package/dist/esm/v3/{OrLink-338db3ca.js → OrLink-b0d7d430.js} +1 -0
- package/dist/esm/v3/{OrListOfInputs-7a67440f.js → OrListOfInputs-7e8b4f20.js} +1 -1
- package/dist/esm/v3/{OrLoader-b3cf4231.js → OrLoader-ab6bb22c.js} +1 -0
- package/dist/esm/v3/{OrMenu-840038cd.js → OrMenu-60ff7732.js} +2 -1
- package/dist/esm/v3/{OrMenuItem-9da279f6.js → OrMenuItem-82b6700b.js} +2 -1
- package/dist/esm/v3/{OrModal-381554a6.js → OrModal-9724926c.js} +3 -2
- package/dist/esm/v3/{OrNotification-34d9c99b.js → OrNotification-bef23976.js} +3 -2
- package/dist/esm/v3/{OrOverlay-738a44d5.js → OrOverlay-4a300d88.js} +1 -0
- package/dist/esm/v3/{OrPopover-1075dd38.js → OrPopover-086817af.js} +2 -1
- package/dist/esm/v3/{OrProgress-407002e0.js → OrProgress-3710020b.js} +1 -0
- package/dist/esm/v3/{OrRadio-54b6d0de.js → OrRadio-aa2cbfa1.js} +2 -1
- package/dist/esm/v3/{OrSearch-7cb2c91c.js → OrSearch-b5f08401.js} +1 -0
- package/dist/esm/v3/{OrSearch-e5a2e93e.js → OrSearch-cb030d85.js} +3 -2
- package/dist/esm/v3/{OrSegmentedControl-171cad78.js → OrSegmentedControl-214e904c.js} +1 -0
- package/dist/esm/v3/{OrSelect-4415b8d2.js → OrSelect-24e213b6.js} +12 -11
- package/dist/esm/v3/{OrSkeletonText-3965ff71.js → OrSkeletonText-dd74b979.js} +1 -0
- package/dist/esm/v3/{OrSortHeader-fe1a9cf8.js → OrSortHeader-4aff1426.js} +2 -1
- package/dist/esm/v3/{OrSwitch-cca30aa0.js → OrSwitch-eb5bc7cc.js} +16 -8
- package/dist/esm/v3/{OrTab-c131cf60.js → OrTab-3fe86033.js} +1 -0
- package/dist/esm/v3/{OrTabs-d0ee6cef.js → OrTabs-5dcbf9ce.js} +6 -5
- package/dist/esm/v3/{OrTag-c0bbaa58.js → OrTag-35f948c1.js} +2 -1
- package/dist/esm/v3/{OrText-ecb46923.js → OrText-786b2aa4.js} +1 -0
- package/dist/esm/v3/{OrTextarea-bb9ef3f2.js → OrTextarea-c083501a.js} +5 -4
- package/dist/esm/v3/{OrTextbox-2f33e9c3.js → OrTextbox-929fc3a2.js} +1 -0
- package/dist/esm/v3/{OrTooltip-50d27b4f.js → OrTooltip-6f9147b6.js} +2 -1
- package/dist/esm/v3/components/index.js +50 -48
- package/dist/esm/v3/components/or-avatar-v3/index.js +3 -2
- package/dist/esm/v3/components/or-bottom-sheet-v3/index.js +3 -2
- package/dist/esm/v3/components/or-button-v3/index.js +3 -2
- package/dist/esm/v3/components/or-card-collection/index.js +3 -2
- package/dist/esm/v3/components/or-card-collection-v3/index.js +19 -17
- package/dist/esm/v3/components/or-card-v3/index.js +2 -1
- package/dist/esm/v3/components/or-checkbox-v3/index.js +3 -2
- package/dist/esm/v3/components/or-confirm/index.js +3 -2
- package/dist/esm/v3/components/or-confirm-v3/index.js +16 -14
- package/dist/esm/v3/components/or-error-tag-v3/index.js +3 -2
- package/dist/esm/v3/components/or-error-v3/index.js +2 -1
- package/dist/esm/v3/components/or-expansion-panel-v3/OrExpansionPanel.vue.d.ts +3 -22
- package/dist/esm/v3/components/or-expansion-panel-v3/index.js +3 -2
- package/dist/esm/v3/components/or-fab-v3/index.js +3 -2
- package/dist/esm/v3/components/or-hint-v3/index.js +2 -1
- package/dist/esm/v3/components/or-icon-button-v3/index.js +7 -6
- package/dist/esm/v3/components/or-icon-v3/index.js +2 -1
- package/dist/esm/v3/components/or-inline-input-box-v3/index.js +2 -1
- package/dist/esm/v3/components/or-inline-input-v3/index.js +11 -10
- package/dist/esm/v3/components/or-inline-textarea-v3/index.js +11 -10
- package/dist/esm/v3/components/or-input-box-v3/index.js +2 -1
- package/dist/esm/v3/components/or-input-v3/OrInput.stories3.d.ts +2 -0
- package/dist/esm/v3/components/or-input-v3/OrInput.vue.d.ts +6 -2
- package/dist/esm/v3/components/or-input-v3/index.js +14 -12
- package/dist/esm/v3/components/or-inputs/index.js +2 -1
- package/dist/esm/v3/components/or-label-v3/index.js +2 -1
- package/dist/esm/v3/components/or-link-v3/index.js +2 -1
- package/dist/esm/v3/components/or-list-of-inputs/index.js +3 -2
- package/dist/esm/v3/components/or-loader-v3/index.js +2 -1
- package/dist/esm/v3/components/or-menu-item-v3/index.js +3 -2
- package/dist/esm/v3/components/or-menu-v3/index.js +5 -4
- package/dist/esm/v3/components/or-modal-v3/index.js +8 -7
- package/dist/esm/v3/components/or-notification-v3/index.js +8 -7
- package/dist/esm/v3/components/or-overlay-v3/index.js +2 -1
- package/dist/esm/v3/components/or-popover-v3/index.js +4 -3
- package/dist/esm/v3/components/or-progress-v3/index.js +2 -1
- package/dist/esm/v3/components/or-radio-v3/index.js +3 -2
- package/dist/esm/v3/components/or-search-v3/index.js +14 -12
- package/dist/esm/v3/components/or-segmented-control-v3/index.js +2 -1
- package/dist/esm/v3/components/or-select-v3/index.js +18 -16
- package/dist/esm/v3/components/or-skeleton-v3/index.js +2 -1
- package/dist/esm/v3/components/or-sort-header-v3/index.js +3 -2
- package/dist/esm/v3/components/or-switch-v3/OrSwitch.vue.d.ts +6 -2
- package/dist/esm/v3/components/or-switch-v3/index.js +6 -4
- package/dist/esm/v3/components/or-tab-v3/index.js +2 -1
- package/dist/esm/v3/components/or-tabs-v3/index.js +9 -8
- package/dist/esm/v3/components/or-tag-v3/index.js +8 -7
- package/dist/esm/v3/components/or-text-v3/index.js +2 -1
- package/dist/esm/v3/components/or-textarea-v3/index.js +6 -5
- package/dist/esm/v3/components/or-textbox/index.js +2 -1
- package/dist/esm/v3/components/or-toast-v3/index.js +9 -8
- package/dist/esm/v3/components/or-tooltip-v3/index.js +5 -4
- package/dist/esm/v3/hooks/index.d.ts +1 -0
- package/dist/esm/v3/hooks/index.js +2 -0
- package/dist/esm/v3/hooks/useSlicedAttrs.d.ts +5 -0
- package/dist/esm/v3/index.js +50 -48
- package/dist/esm/v3/{types-8a338300.js → types-a2cbb17e.js} +2 -2
- package/dist/esm/v3/useSlicedAttrs-91deb3b7.js +31 -0
- package/package.json +1 -1
- package/src/components/or-expansion-panel-v3/OrExpansionPanel.stories3.ts +2 -12
- package/src/components/or-expansion-panel-v3/OrExpansionPanel.vue +3 -39
- package/src/components/or-input-v3/OrInput.stories3.ts +53 -0
- package/src/components/or-input-v3/OrInput.vue +13 -5
- package/src/components/or-switch-v3/OrSwitch.vue +13 -4
- package/src/hooks/index.ts +1 -0
- package/src/hooks/useSlicedAttrs.ts +31 -0
package/dist/esm/v3/index.js
CHANGED
|
@@ -1,100 +1,101 @@
|
|
|
1
1
|
export { O as OR_AVATAR_SIZE, s as OrAvatar } from './OrAvatar-2808a314.js';
|
|
2
|
-
export { a as AvatarColor, A as AvatarSize, s as OrAvatarV3 } from './OrAvatar-
|
|
3
|
-
export { s as OrBottomSheetV3 } from './OrBottomSheet-
|
|
2
|
+
export { a as AvatarColor, A as AvatarSize, s as OrAvatarV3 } from './OrAvatar-6c4ff382.js';
|
|
3
|
+
export { s as OrBottomSheetV3 } from './OrBottomSheet-11ab621e.js';
|
|
4
4
|
export { s as OrButton, a as OrButtonColors, b as OrButtonSizes, O as OrButtonViews } from './OrButton-fca9019a.js';
|
|
5
5
|
export { b as BUTTON_COLOR, d as BUTTON_LOADER_TYPE, c as BUTTON_SIZE, B as BUTTON_TYPE, I as ICON_BUTTON_TYPE, s as OrButtonV2, a as OrIconButton } from './OrIconButton-8be9c89f.js';
|
|
6
|
-
export { a as ButtonColor, b as ButtonType, B as ButtonVariant, s as OrButtonV3 } from './OrButton-
|
|
6
|
+
export { a as ButtonColor, b as ButtonType, B as ButtonVariant, s as OrButtonV3 } from './OrButton-fd69e79e.js';
|
|
7
7
|
export { s as OrCard } from './OrCard-e3a5aea4.js';
|
|
8
|
-
export { C as CARD_COLLECTION_LAYOUT, s as OrCardCollection } from './OrCardCollection-
|
|
9
|
-
export { D as DefaultCardCollectionViews, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from './OrCardCollection-
|
|
10
|
-
export { s as OrCardV3 } from './OrCard-
|
|
8
|
+
export { C as CARD_COLLECTION_LAYOUT, s as OrCardCollection } from './OrCardCollection-989bb549.js';
|
|
9
|
+
export { D as DefaultCardCollectionViews, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from './OrCardCollection-45884ef2.js';
|
|
10
|
+
export { s as OrCardV3 } from './OrCard-14c50722.js';
|
|
11
11
|
export { a as OrCarousel, s as OrCarouselItem } from './OrCarouselItem-636d99a1.js';
|
|
12
12
|
export { s as OrCheckbox } from './OrCheckbox-ed4a19cf.js';
|
|
13
|
-
export { s as OrCheckboxV3 } from './OrCheckbox-
|
|
13
|
+
export { s as OrCheckboxV3 } from './OrCheckbox-cf989d15.js';
|
|
14
14
|
export { s as OrChip, a as OrChips } from './OrChips-9afba42f.js';
|
|
15
15
|
export { s as OrCode, O as OrCodeLanguages } from './OrCode-5ed69c23.js';
|
|
16
16
|
export { s as OrCollapse } from './OrCollapse-445141ab.js';
|
|
17
17
|
export { s as OrColorPicker, h as amber, n as black, b as blue, m as blueGrey, k as brown, c as cyan, j as deepOrange, d as deepPurple, g as green, i as indigo, l as lightBlue, e as lightGreen, f as lime, o as orange, p as pink, a as purple, r as red, t as teal, w as white, y as yellow } from './OrColorPicker-189cb097.js';
|
|
18
|
-
export { s as OrConfirm } from './OrConfirm-
|
|
19
|
-
export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-
|
|
18
|
+
export { s as OrConfirm } from './OrConfirm-53788490.js';
|
|
19
|
+
export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-8c4f080b.js';
|
|
20
20
|
export { D as DEFAULT_TEXT, s as OrDateTimePicker, a as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from './OrDateTimePicker-f2e08564.js';
|
|
21
21
|
export { s as OrError } from './OrError-f90296db.js';
|
|
22
|
-
export { s as OrErrorTagV3 } from './OrErrorTag-
|
|
23
|
-
export { s as OrErrorV3 } from './OrError-
|
|
22
|
+
export { s as OrErrorTagV3 } from './OrErrorTag-630205fc.js';
|
|
23
|
+
export { s as OrErrorV3 } from './OrError-2ef63390.js';
|
|
24
24
|
export { E as EmptyStateSize, s as OrEmptyStateV3 } from './OrEmptyState-bb8e3145.js';
|
|
25
|
-
export { a as ExpansionPanelColor, E as ExpansionPanelVariant, s as OrExpansionPanelV3 } from './OrExpansionPanel-
|
|
26
|
-
export { F as FabColor, s as OrFabV3 } from './OrFab-
|
|
25
|
+
export { a as ExpansionPanelColor, E as ExpansionPanelVariant, s as OrExpansionPanelV3 } from './OrExpansionPanel-0151936a.js';
|
|
26
|
+
export { F as FabColor, s as OrFabV3 } from './OrFab-7c1780e5.js';
|
|
27
27
|
export { s as OrFloating, a as OrFloatingHideStrategy, O as OrFloatingPlacements } from './OrFloating-5240e758.js';
|
|
28
28
|
export { s as OrHint } from './OrHint-1414c530.js';
|
|
29
|
-
export { s as OrHintV3 } from './OrHint-
|
|
29
|
+
export { s as OrHintV3 } from './OrHint-4f497295.js';
|
|
30
30
|
export { s as OrIcon, O as OrIconColors, a as OrIconType } from './OrIcon-669503c3.js';
|
|
31
|
-
export { I as IconButtonColor, s as OrIconButtonV3 } from './OrIconButton-
|
|
32
|
-
export { I as IconButtonSize, I as IconSize, a as IconVariant, s as OrIconV3 } from './OrIcon-
|
|
33
|
-
export { I as InlineInputBoxSize, I as InlineInputSize, s as OrInlineInputBoxV3 } from './OrInlineInputBox-
|
|
34
|
-
export { I as InlineInputType, s as OrInlineInputV3 } from './OrInlineInput-
|
|
31
|
+
export { I as IconButtonColor, s as OrIconButtonV3 } from './OrIconButton-830faf78.js';
|
|
32
|
+
export { I as IconButtonSize, I as IconSize, a as IconVariant, s as OrIconV3 } from './OrIcon-085d2eb1.js';
|
|
33
|
+
export { I as InlineInputBoxSize, I as InlineInputSize, s as OrInlineInputBoxV3 } from './OrInlineInputBox-226e29da.js';
|
|
34
|
+
export { I as InlineInputType, s as OrInlineInputV3 } from './OrInlineInput-46fd890d.js';
|
|
35
35
|
export { a as InlineTextEditTrimmingTypes, I as InlineTextEditTypes, s as OrInlineTextEdit } from './OrInlineTextEdit-1aa477b5.js';
|
|
36
|
-
export { s as OrInlineTextareaV3 } from './OrInlineTextarea-
|
|
37
|
-
export { a as InputBoxSize, I as InputBoxVariant, a as InputSize, s as OrInputBoxV3, a as SearchSize, a as SelectSize, a as TextareaSize } from './OrInputBox-
|
|
38
|
-
export { I as InputType, s as OrInputV3 } from './OrInput-
|
|
39
|
-
export { a as OrInput, b as OrNumberInput, c as OrPassword, d as OrSearch, s as OrTextarea } from './OrSearch-
|
|
36
|
+
export { s as OrInlineTextareaV3 } from './OrInlineTextarea-837cb99a.js';
|
|
37
|
+
export { a as InputBoxSize, I as InputBoxVariant, a as InputSize, s as OrInputBoxV3, a as SearchSize, a as SelectSize, a as TextareaSize } from './OrInputBox-304481e7.js';
|
|
38
|
+
export { I as InputType, s as OrInputV3 } from './OrInput-502b6d49.js';
|
|
39
|
+
export { a as OrInput, b as OrNumberInput, c as OrPassword, d as OrSearch, s as OrTextarea } from './OrSearch-b5f08401.js';
|
|
40
40
|
export { s as OrLabel } from './OrLabel-876f8729.js';
|
|
41
|
-
export { L as LabelVariant, s as OrLabelV3 } from './OrLabel-
|
|
42
|
-
export { L as LinkColor, s as OrLinkV3 } from './OrLink-
|
|
41
|
+
export { L as LabelVariant, s as OrLabelV3 } from './OrLabel-7989b72a.js';
|
|
42
|
+
export { L as LinkColor, s as OrLinkV3 } from './OrLink-b0d7d430.js';
|
|
43
43
|
export { s as OrList } from './OrList-b740d13e.js';
|
|
44
|
-
export { s as OrListOfInputs } from './OrListOfInputs-
|
|
44
|
+
export { s as OrListOfInputs } from './OrListOfInputs-7e8b4f20.js';
|
|
45
45
|
export { L as LoaderViews, s as OrLoader } from './OrLoader-15174477.js';
|
|
46
|
-
export { a as LoaderColor, b as LoaderSize, L as LoaderVariant, s as OrLoaderV3 } from './OrLoader-
|
|
47
|
-
export { s as OrMenuItemV3 } from './OrMenuItem-
|
|
48
|
-
export { s as OrMenuV3 } from './OrMenu-
|
|
49
|
-
export { P as MenuPlacement, s as OrPopoverV3, P as PopoverPlacement, a as PopoverVariant, P as TooltipPlacement } from './OrPopover-
|
|
46
|
+
export { a as LoaderColor, b as LoaderSize, L as LoaderVariant, s as OrLoaderV3 } from './OrLoader-ab6bb22c.js';
|
|
47
|
+
export { s as OrMenuItemV3 } from './OrMenuItem-82b6700b.js';
|
|
48
|
+
export { s as OrMenuV3 } from './OrMenu-60ff7732.js';
|
|
49
|
+
export { P as MenuPlacement, s as OrPopoverV3, P as PopoverPlacement, a as PopoverVariant, P as TooltipPlacement } from './OrPopover-086817af.js';
|
|
50
50
|
export { s as OrModal, O as OrModalSizes } from './OrModal-8b074b0c.js';
|
|
51
|
-
export { M as ModalSize, s as OrModalV3 } from './OrModal-
|
|
51
|
+
export { M as ModalSize, s as OrModalV3 } from './OrModal-9724926c.js';
|
|
52
52
|
export { a as OR_NOTIFICATION_SIZE, O as OR_NOTIFICATION_TYPE, s as OrNotification } from './OrNotification-e85a4956.js';
|
|
53
|
-
export { N as NotificationVariant, s as OrNotificationV3 } from './OrNotification-
|
|
53
|
+
export { N as NotificationVariant, s as OrNotificationV3 } from './OrNotification-bef23976.js';
|
|
54
54
|
export { s as OrOverflowMenu } from './OrOverflowMenu-e82cbcbe.js';
|
|
55
55
|
export { s as OrOverlay } from './OrOverlay-451dce49.js';
|
|
56
|
-
export { s as OrOverlayV3 } from './OrOverlay-
|
|
56
|
+
export { s as OrOverlayV3 } from './OrOverlay-4a300d88.js';
|
|
57
57
|
export { s as OrProgress, O as OrProgressColors, a as OrProgressTypes } from './OrProgress-d0d52c86.js';
|
|
58
|
-
export { s as OrProgressV3, P as ProgressColor, a as ProgressType } from './OrProgress-
|
|
58
|
+
export { s as OrProgressV3, P as ProgressColor, a as ProgressType } from './OrProgress-3710020b.js';
|
|
59
59
|
export { s as OrRadio } from './OrRadio-c3ab11f2.js';
|
|
60
60
|
export { s as OrRadioGroup } from './OrRadioGroup-00785e41.js';
|
|
61
|
-
export { s as OrRadioV3 } from './OrRadio-
|
|
62
|
-
export { s as OrSearchV3 } from './OrSearch-
|
|
63
|
-
export { s as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-
|
|
61
|
+
export { s as OrRadioV3 } from './OrRadio-aa2cbfa1.js';
|
|
62
|
+
export { s as OrSearchV3 } from './OrSearch-cb030d85.js';
|
|
63
|
+
export { s as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-214e904c.js';
|
|
64
64
|
export { s as OrSelect } from './OrSelect-0821b907.js';
|
|
65
|
-
export { s as OrSelectV3 } from './OrSelect-
|
|
65
|
+
export { s as OrSelectV3 } from './OrSelect-24e213b6.js';
|
|
66
66
|
export { s as OrSidebar, O as OrSidebarSide } from './OrSidebar-375c85a3.js';
|
|
67
67
|
export { O as OrSidebarPlacement, s as OrSidebarV3 } from './OrSidebar-a62972f5.js';
|
|
68
68
|
export { s as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from './OrSkeletonText-2b1610ce.js';
|
|
69
|
-
export { s as OrSkeletonCircleV3, a as OrSkeletonRectV3, b as OrSkeletonTextV3 } from './OrSkeletonText-
|
|
69
|
+
export { s as OrSkeletonCircleV3, a as OrSkeletonRectV3, b as OrSkeletonTextV3 } from './OrSkeletonText-dd74b979.js';
|
|
70
70
|
export { s as OrSlider } from './OrSlider-87e2da8c.js';
|
|
71
|
-
export { s as OrSortHeaderV3 } from './OrSortHeader-
|
|
71
|
+
export { s as OrSortHeaderV3 } from './OrSortHeader-4aff1426.js';
|
|
72
72
|
export { s as OrStepper } from './OrStepper-f19b4eac.js';
|
|
73
73
|
export { s as OrSwitch } from './OrSwitch-c333ee32.js';
|
|
74
|
-
export { s as OrSwitchV3 } from './OrSwitch-
|
|
74
|
+
export { s as OrSwitchV3 } from './OrSwitch-eb5bc7cc.js';
|
|
75
75
|
export { s as OrTab } from './OrTab-bc98be02.js';
|
|
76
76
|
export { s as OrTabHeaderItem } from './OrTabHeaderItem-d668cc59.js';
|
|
77
|
-
export { s as OrTabV3 } from './OrTab-
|
|
77
|
+
export { s as OrTabV3 } from './OrTab-3fe86033.js';
|
|
78
78
|
export { s as OrTabs } from './OrTabs-d3812c11.js';
|
|
79
|
-
export { s as OrTabsV3, T as TabsVariant } from './OrTabs-
|
|
79
|
+
export { s as OrTabsV3, T as TabsVariant } from './OrTabs-5dcbf9ce.js';
|
|
80
80
|
export { s as OrTag } from './OrTag-1b5e43fa.js';
|
|
81
|
-
export { s as OrTagV3, a as TagColor, T as TagVariant } from './OrTag-
|
|
81
|
+
export { s as OrTagV3, a as TagColor, T as TagVariant } from './OrTag-35f948c1.js';
|
|
82
82
|
export { s as OrTeleport } from './OrTeleportVue3-ad639f12.js';
|
|
83
83
|
export { s as OrTeleportV3 } from './OrTeleport.vue3-8099178c.js';
|
|
84
|
-
export { s as OrTextV3 } from './OrText-
|
|
85
|
-
export { s as OrTextareaV3 } from './OrTextarea-
|
|
86
|
-
export { s as OrTextbox, T as TextboxTypes } from './OrTextbox-
|
|
84
|
+
export { s as OrTextV3 } from './OrText-786b2aa4.js';
|
|
85
|
+
export { s as OrTextareaV3 } from './OrTextarea-c083501a.js';
|
|
86
|
+
export { s as OrTextbox, T as TextboxTypes } from './OrTextbox-929fc3a2.js';
|
|
87
87
|
export { s as OrToast, a as OrToastContainer } from './OrToastContainer-40c4c1c8.js';
|
|
88
88
|
export { P as PositionsX, b as PositionsY, c as ToastType, T as TransitionType, a as useQueue, u as useToast } from './useToast-4fbe0e5a.js';
|
|
89
|
-
export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from './types-
|
|
89
|
+
export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from './types-a2cbb17e.js';
|
|
90
90
|
export { p as PropsV3, a as useQueueV3, u as useToastV3 } from './useToast-0665462d.js';
|
|
91
91
|
export { s as OrTooltip, a as OrTooltipContent } from './OrTooltip-78cd7f6b.js';
|
|
92
|
-
export { s as OrTooltipV3 } from './OrTooltip-
|
|
92
|
+
export { s as OrTooltipV3 } from './OrTooltip-6f9147b6.js';
|
|
93
93
|
export { D as DropdownClose, a as DropdownOpen } from './dropdown-open-0d314aa4.js';
|
|
94
94
|
export { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
|
|
95
95
|
export { u as useElevation } from './useElevation-31bfe1f6.js';
|
|
96
96
|
export { u as useOverflow } from './useOverflow-af6161c8.js';
|
|
97
97
|
export { u as useResponsive } from './useResponsive-a02e95b7.js';
|
|
98
|
+
export { u as useSlicedAttrs } from './useSlicedAttrs-91deb3b7.js';
|
|
98
99
|
export { u as useToggle } from './useToggle-29e4d7c7.js';
|
|
99
100
|
import { R as RX_ABBREVIATION_FROM_STRING } from './color-1f348774.js';
|
|
100
101
|
import 'vue-demi';
|
|
@@ -102,6 +103,7 @@ import 'lodash';
|
|
|
102
103
|
import 'vue';
|
|
103
104
|
import './style-inject.es-4c6f2515.js';
|
|
104
105
|
import '@vueuse/core';
|
|
106
|
+
import 'lodash/omit';
|
|
105
107
|
import '@splidejs/splide';
|
|
106
108
|
import '@codemirror/state';
|
|
107
109
|
import '@codemirror/view';
|
|
@@ -2,8 +2,8 @@ import { useToggle } from '@vueuse/core';
|
|
|
2
2
|
import { defineComponent, ref, computed, onBeforeMount, onBeforeUnmount, nextTick } from 'vue-demi';
|
|
3
3
|
import { s as script$4 } from './OrTeleport.vue3-8099178c.js';
|
|
4
4
|
import { T as ToastType, P as PositionsX, b as PositionsY, c as TransitionType, d as useToastEventBus, a as useQueue } from './useToast-0665462d.js';
|
|
5
|
-
import { s as script$2 } from './OrIconButton-
|
|
6
|
-
import { s as script$3 } from './OrLoader-
|
|
5
|
+
import { s as script$2 } from './OrIconButton-830faf78.js';
|
|
6
|
+
import { s as script$3 } from './OrLoader-ab6bb22c.js';
|
|
7
7
|
import { resolveComponent, openBlock, createElementBlock, normalizeClass, renderSlot, createCommentVNode, createVNode, createElementVNode, toDisplayString, withModifiers, createBlock, withCtx, TransitionGroup, Fragment, renderList, mergeProps } from 'vue';
|
|
8
8
|
import { s as styleInject } from './style-inject.es-4c6f2515.js';
|
|
9
9
|
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { getCurrentInstance, computed, isVue2 } from 'vue-demi';
|
|
2
|
+
import ommit from 'lodash/omit';
|
|
3
|
+
import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
|
|
4
|
+
|
|
5
|
+
function useSlicedAttrs() {
|
|
6
|
+
const classAttribute = useClassAttribute();
|
|
7
|
+
const currentInstance = getCurrentInstance();
|
|
8
|
+
const classes = computed(() => {
|
|
9
|
+
if (isVue2) {
|
|
10
|
+
return classAttribute.value;
|
|
11
|
+
}
|
|
12
|
+
return currentInstance === null || currentInstance === void 0 ? void 0 : currentInstance.attrs.class;
|
|
13
|
+
});
|
|
14
|
+
const styles = computed(() => {
|
|
15
|
+
var _a, _b;
|
|
16
|
+
if (isVue2) {
|
|
17
|
+
return (_b = (_a = currentInstance === null || currentInstance === void 0 ? void 0 : currentInstance.vnode) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.staticStyle;
|
|
18
|
+
}
|
|
19
|
+
return currentInstance === null || currentInstance === void 0 ? void 0 : currentInstance.attrs.style;
|
|
20
|
+
});
|
|
21
|
+
const attrs = computed(() => {
|
|
22
|
+
return ommit(currentInstance === null || currentInstance === void 0 ? void 0 : currentInstance.attrs, 'style', 'class');
|
|
23
|
+
});
|
|
24
|
+
return {
|
|
25
|
+
classes,
|
|
26
|
+
styles,
|
|
27
|
+
attrs
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { useSlicedAttrs as u };
|
package/package.json
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { Meta, StoryFn } from '@storybook/vue3';
|
|
2
|
-
import { action } from '@storybook/addon-actions';
|
|
3
|
-
|
|
4
2
|
import { OrIconV3 as OrIcon } from '../or-icon-v3';
|
|
5
3
|
import OrExpansionPanelDocs from './OrExpansionPanel.docs.mdx';
|
|
6
4
|
import OrExpansionPanel from './OrExpansionPanel.vue';
|
|
@@ -69,19 +67,11 @@ const Template: StoryFn<typeof OrExpansionPanel> = (args) => ({
|
|
|
69
67
|
},
|
|
70
68
|
|
|
71
69
|
setup() {
|
|
72
|
-
return {
|
|
73
|
-
args,
|
|
74
|
-
handleOpen: action('open'),
|
|
75
|
-
handleClose: action('close'),
|
|
76
|
-
};
|
|
70
|
+
return { args };
|
|
77
71
|
},
|
|
78
72
|
|
|
79
73
|
template: `
|
|
80
|
-
<OrExpansionPanel
|
|
81
|
-
v-bind="args"
|
|
82
|
-
@open="handleOpen"
|
|
83
|
-
@close="handleClose"
|
|
84
|
-
>
|
|
74
|
+
<OrExpansionPanel v-bind="args">
|
|
85
75
|
${args.default}
|
|
86
76
|
|
|
87
77
|
<template #addon>
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
:class="headerStyles"
|
|
11
11
|
:tabindex="!disabled ? 0 : null"
|
|
12
12
|
:disabled="disabled ? '' : null"
|
|
13
|
-
@click.stop="expanded
|
|
13
|
+
@click.stop="expanded = !expanded"
|
|
14
14
|
>
|
|
15
15
|
<OrIcon
|
|
16
16
|
:class="[expanded ? 'rotate-0' : 'rotate-[-90deg]']"
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
</template>
|
|
34
34
|
|
|
35
35
|
<script lang="ts">
|
|
36
|
-
import { computed, defineComponent, PropType, ref
|
|
36
|
+
import { computed, defineComponent, PropType, ref } from 'vue-demi';
|
|
37
37
|
import { useClassAttribute } from '../../hooks';
|
|
38
38
|
import { OrIconV3 as OrIcon } from '../or-icon-v3';
|
|
39
39
|
import { ExpansionPanelColor, ExpansionPanelVariant } from './props';
|
|
@@ -54,11 +54,6 @@ export default defineComponent({
|
|
|
54
54
|
required: true,
|
|
55
55
|
},
|
|
56
56
|
|
|
57
|
-
isOpen: {
|
|
58
|
-
type: Boolean as PropType<boolean>,
|
|
59
|
-
default: false,
|
|
60
|
-
},
|
|
61
|
-
|
|
62
57
|
variant: {
|
|
63
58
|
type: String as PropType<ExpansionPanelVariant>,
|
|
64
59
|
default: ExpansionPanelVariant.Default,
|
|
@@ -75,18 +70,11 @@ export default defineComponent({
|
|
|
75
70
|
},
|
|
76
71
|
},
|
|
77
72
|
|
|
78
|
-
emits: [
|
|
79
|
-
'open',
|
|
80
|
-
'close',
|
|
81
|
-
],
|
|
82
|
-
|
|
83
73
|
expose: [
|
|
84
74
|
'root',
|
|
85
|
-
'open',
|
|
86
|
-
'close',
|
|
87
75
|
],
|
|
88
76
|
|
|
89
|
-
setup(props
|
|
77
|
+
setup(props) {
|
|
90
78
|
// Refs
|
|
91
79
|
const root = ref<HTMLElement>();
|
|
92
80
|
|
|
@@ -112,36 +100,12 @@ export default defineComponent({
|
|
|
112
100
|
// State
|
|
113
101
|
const expanded = ref(false);
|
|
114
102
|
|
|
115
|
-
// Events
|
|
116
|
-
watch(expanded, (value) => {
|
|
117
|
-
context.emit(value ? 'open' : 'close');
|
|
118
|
-
});
|
|
119
|
-
|
|
120
|
-
watch(() => props.isOpen, (newIsOpen) => {
|
|
121
|
-
if (newIsOpen) {
|
|
122
|
-
open();
|
|
123
|
-
} else {
|
|
124
|
-
close();
|
|
125
|
-
}
|
|
126
|
-
}, { immediate: true });
|
|
127
|
-
|
|
128
|
-
// Methods
|
|
129
|
-
function open(): void {
|
|
130
|
-
expanded.value = true;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
function close(): void {
|
|
134
|
-
expanded.value = false;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
103
|
return {
|
|
138
104
|
root,
|
|
139
105
|
rootStyles,
|
|
140
106
|
headerStyles,
|
|
141
107
|
addonStyles,
|
|
142
108
|
expanded,
|
|
143
|
-
open,
|
|
144
|
-
close,
|
|
145
109
|
};
|
|
146
110
|
},
|
|
147
111
|
});
|
|
@@ -218,3 +218,56 @@ Search.args = {
|
|
|
218
218
|
placeholder: 'Placeholder',
|
|
219
219
|
hint: Faker.lorem.sentence(20),
|
|
220
220
|
};
|
|
221
|
+
|
|
222
|
+
export const CustomClassesAndStyles: StoryFn<typeof OrInput> = (args) => ({
|
|
223
|
+
components: {
|
|
224
|
+
OrIcon,
|
|
225
|
+
OrInput,
|
|
226
|
+
},
|
|
227
|
+
|
|
228
|
+
setup() {
|
|
229
|
+
// State
|
|
230
|
+
const model = ref<string | number>();
|
|
231
|
+
|
|
232
|
+
// Effects
|
|
233
|
+
watch(model, (value) => {
|
|
234
|
+
console.debug(value);
|
|
235
|
+
});
|
|
236
|
+
|
|
237
|
+
return {
|
|
238
|
+
args,
|
|
239
|
+
model,
|
|
240
|
+
onUpdateModelValue: action('update:modelValue'),
|
|
241
|
+
onInput: action('input'),
|
|
242
|
+
onKeydown: action('keydown'),
|
|
243
|
+
onKeyup: action('keyup'),
|
|
244
|
+
onFocus: action('focus'),
|
|
245
|
+
onBlur: action('blur'),
|
|
246
|
+
};
|
|
247
|
+
},
|
|
248
|
+
|
|
249
|
+
template: `
|
|
250
|
+
<OrInput
|
|
251
|
+
v-model="model"
|
|
252
|
+
v-bind="args"
|
|
253
|
+
@update:modelValue="onUpdateModelValue"
|
|
254
|
+
@input="onInput"
|
|
255
|
+
@keydown="onKeydown"
|
|
256
|
+
@keyup="onKeyup"
|
|
257
|
+
@focus="onFocus"
|
|
258
|
+
@blur="onBlur"
|
|
259
|
+
class="test"
|
|
260
|
+
:class="'test1'"
|
|
261
|
+
style="margin-bottom: 10px"
|
|
262
|
+
:style="'margin-top: 10px'"
|
|
263
|
+
/>
|
|
264
|
+
`,
|
|
265
|
+
});
|
|
266
|
+
|
|
267
|
+
CustomClassesAndStyles.args = {
|
|
268
|
+
// Slots
|
|
269
|
+
// Props
|
|
270
|
+
type: InputType.Text,
|
|
271
|
+
label: 'Input with margins and styles',
|
|
272
|
+
placeholder: 'conatcts test classes',
|
|
273
|
+
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
3
|
ref="root"
|
|
4
|
+
:style="inlineStyles"
|
|
4
5
|
:class="rootStyles"
|
|
5
6
|
>
|
|
6
7
|
<template v-if="label">
|
|
@@ -29,7 +30,7 @@
|
|
|
29
30
|
:id="controlId"
|
|
30
31
|
ref="input"
|
|
31
32
|
v-model="proxyModelValue"
|
|
32
|
-
v-bind="
|
|
33
|
+
v-bind="attrs"
|
|
33
34
|
:class="controlStyles"
|
|
34
35
|
:type="type === 'password' && disclosed ? 'text' : type"
|
|
35
36
|
:placeholder="placeholder"
|
|
@@ -103,7 +104,7 @@
|
|
|
103
104
|
|
|
104
105
|
<script lang="ts">
|
|
105
106
|
import { computed, defineComponent, getCurrentInstance, PropType, ref } from 'vue-demi';
|
|
106
|
-
import {
|
|
107
|
+
import { useSlicedAttrs } from '../../hooks';
|
|
107
108
|
import { OrErrorV3 as OrError } from '../or-error-v3';
|
|
108
109
|
import { OrHintV3 as OrHint } from '../or-hint-v3';
|
|
109
110
|
import { OrIconButtonV3 as OrIconButton } from '../or-icon-button-v3';
|
|
@@ -206,13 +207,18 @@ export default defineComponent({
|
|
|
206
207
|
const root = ref<HTMLElement>();
|
|
207
208
|
const input = ref<HTMLInputElement>();
|
|
208
209
|
|
|
209
|
-
//
|
|
210
|
-
const
|
|
210
|
+
// Attrs
|
|
211
|
+
const {
|
|
212
|
+
attrs,
|
|
213
|
+
classes,
|
|
214
|
+
styles: inlineStyles,
|
|
215
|
+
} = useSlicedAttrs();
|
|
211
216
|
|
|
217
|
+
// Styles
|
|
212
218
|
const rootStyles = computed(() => [
|
|
213
219
|
'or-input',
|
|
214
220
|
...InputRoot,
|
|
215
|
-
|
|
221
|
+
classes.value,
|
|
216
222
|
]);
|
|
217
223
|
|
|
218
224
|
const controlStyles = computed(() => [
|
|
@@ -249,6 +255,8 @@ export default defineComponent({
|
|
|
249
255
|
return {
|
|
250
256
|
root,
|
|
251
257
|
input,
|
|
258
|
+
attrs,
|
|
259
|
+
inlineStyles,
|
|
252
260
|
rootStyles,
|
|
253
261
|
controlStyles,
|
|
254
262
|
controlId,
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
3
|
ref="root"
|
|
4
|
+
:style="inlineStyles"
|
|
4
5
|
:class="rootStyles"
|
|
5
6
|
>
|
|
6
7
|
<template v-if="!loading">
|
|
7
8
|
<input
|
|
8
|
-
v-bind="
|
|
9
|
+
v-bind="attrs"
|
|
9
10
|
:id="controlId"
|
|
10
11
|
v-model="proxyModelValue"
|
|
11
12
|
:class="controlStyles"
|
|
@@ -50,7 +51,7 @@
|
|
|
50
51
|
|
|
51
52
|
<script lang="ts">
|
|
52
53
|
import { computed, defineComponent, getCurrentInstance, PropType, ref } from 'vue-demi';
|
|
53
|
-
import {
|
|
54
|
+
import { useSlicedAttrs } from '../../hooks';
|
|
54
55
|
import { LabelVariant, OrLabelV3 as OrLabel } from '../or-label-v3';
|
|
55
56
|
import { OrLoaderV3 as OrLoader } from '../or-loader-v3';
|
|
56
57
|
import { SwitchControl, SwitchControlHandle, SwitchLoader, SwitchLoaderHandle, SwitchRoot } from './styles';
|
|
@@ -125,13 +126,19 @@ export default defineComponent({
|
|
|
125
126
|
// Refs
|
|
126
127
|
const root = ref<HTMLElement>();
|
|
127
128
|
|
|
129
|
+
// Attrs
|
|
130
|
+
const {
|
|
131
|
+
attrs,
|
|
132
|
+
classes,
|
|
133
|
+
styles: inlineStyles,
|
|
134
|
+
} = useSlicedAttrs();
|
|
135
|
+
|
|
128
136
|
// Styles
|
|
129
|
-
const classAttribute = useClassAttribute();
|
|
130
137
|
|
|
131
138
|
const rootStyles = computed(() => [
|
|
132
139
|
'or-switch',
|
|
133
140
|
...SwitchRoot,
|
|
134
|
-
|
|
141
|
+
classes.value,
|
|
135
142
|
]);
|
|
136
143
|
|
|
137
144
|
const controlStyles = computed(() => [
|
|
@@ -163,6 +170,8 @@ export default defineComponent({
|
|
|
163
170
|
rootStyles,
|
|
164
171
|
controlStyles,
|
|
165
172
|
loaderStyles,
|
|
173
|
+
inlineStyles,
|
|
174
|
+
attrs,
|
|
166
175
|
controlId,
|
|
167
176
|
proxyModelValue,
|
|
168
177
|
};
|
package/src/hooks/index.ts
CHANGED
|
@@ -2,4 +2,5 @@ export { useClassAttribute } from './useClassAttribute';
|
|
|
2
2
|
export { useElevation } from './useElevation';
|
|
3
3
|
export { useOverflow } from './useOverflow';
|
|
4
4
|
export { useResponsive } from './useResponsive';
|
|
5
|
+
export { useSlicedAttrs } from './useSlicedAttrs';
|
|
5
6
|
export { default as useToggle } from './useToggle';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { computed, isVue2, getCurrentInstance } from 'vue-demi';
|
|
2
|
+
import ommit from 'lodash/omit';
|
|
3
|
+
import { useClassAttribute } from './useClassAttribute';
|
|
4
|
+
export function useSlicedAttrs() {
|
|
5
|
+
const classAttribute = useClassAttribute();
|
|
6
|
+
const currentInstance = getCurrentInstance();
|
|
7
|
+
|
|
8
|
+
const classes = computed(() => {
|
|
9
|
+
if (isVue2) {
|
|
10
|
+
return classAttribute.value;
|
|
11
|
+
}
|
|
12
|
+
return currentInstance?.attrs.class;
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
const styles = computed(() => {
|
|
16
|
+
if (isVue2) {
|
|
17
|
+
return currentInstance?.vnode?.data?.staticStyle;
|
|
18
|
+
}
|
|
19
|
+
return currentInstance?.attrs.style;
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
const attrs = computed(() => {
|
|
23
|
+
return ommit(currentInstance?.attrs, 'style', 'class');
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
return {
|
|
27
|
+
classes,
|
|
28
|
+
styles,
|
|
29
|
+
attrs,
|
|
30
|
+
};
|
|
31
|
+
}
|