@onereach/ui-components 2.69.7-beta.2187.0 → 2.69.7-beta.2201.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-754aa36f.js → OrCardCollection-f07a1190.js} +2 -2
- package/dist/bundled/v2/{OrCheckbox-dbef9f9a.js → OrCheckbox-4f665252.js} +3 -3
- package/dist/bundled/v2/{OrConfirm-cf334659.js → OrConfirm-618e6c96.js} +1 -1
- package/dist/bundled/v2/{OrIconButton-a2ba92df.js → OrIconButton-a215104c.js} +4 -4
- package/dist/bundled/v2/{OrInlineInput-87589946.js → OrInlineInput-6af4fe07.js} +3 -3
- package/dist/bundled/v2/{OrInlineTextarea-21b0e6fc.js → OrInlineTextarea-ddf84267.js} +3 -3
- package/dist/bundled/v2/{OrInput-82ccfe00.js → OrInput-cc2d74db.js} +21 -14
- package/dist/bundled/v2/{OrInputBox-79ec54ad.js → OrInputBox-da25bec2.js} +3 -13
- package/dist/bundled/v2/{OrModal-af6677fd.js → OrModal-f89de11f.js} +12 -3
- package/dist/bundled/v2/{OrNotification-3250f58b.js → OrNotification-d76a062d.js} +13 -5
- package/dist/bundled/v2/{OrRadio-cd39b20b.js → OrRadio-a60fc5c0.js} +3 -3
- package/dist/bundled/v2/{OrSearch-53470b0e.js → OrSearch-d4833781.js} +2 -2
- package/dist/bundled/v2/{OrSelect-2e48be47.js → OrSelect-0d0a53e5.js} +13 -5
- package/dist/bundled/v2/{OrSwitch-237a2081.js → OrSwitch-fe9b7de7.js} +3 -3
- package/dist/bundled/v2/{OrTag-e3e6fdd6.js → OrTag-6440aa89.js} +6 -6
- package/dist/bundled/v2/{OrTextarea-5593fbe9.js → OrTextarea-76a2963b.js} +14 -11
- package/dist/bundled/v2/components/index.js +18 -17
- package/dist/bundled/v2/components/or-card-collection-v3/index.js +6 -5
- package/dist/bundled/v2/components/or-checkbox-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-combined-input-v3/OrCombinedInput.stories3.d.ts +27 -0
- package/dist/bundled/v2/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +98 -0
- package/dist/bundled/v2/components/or-combined-input-v3/index.d.ts +2 -0
- package/dist/bundled/v2/components/or-combined-input-v3/index.js +149 -0
- package/dist/bundled/v2/components/or-combined-input-v3/props.d.ts +1 -0
- package/dist/bundled/v2/components/or-combined-input-v3/styles.d.ts +2 -0
- package/dist/bundled/v2/components/or-confirm-v3/index.js +5 -4
- package/dist/bundled/v2/components/or-icon-button-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-icon-button-v3/props.d.ts +1 -1
- package/dist/bundled/v2/components/or-inline-input-v3/index.js +2 -2
- package/dist/bundled/v2/components/or-inline-textarea-v3/index.js +2 -2
- package/dist/bundled/v2/components/or-input-box-v3/index.js +2 -1
- package/dist/bundled/v2/components/or-input-v3/index.js +4 -3
- package/dist/bundled/v2/components/or-modal-v3/OrModal.vue.d.ts +2 -0
- package/dist/bundled/v2/components/or-modal-v3/index.js +2 -2
- package/dist/bundled/v2/components/or-modal-v3/styles.d.ts +1 -0
- package/dist/bundled/v2/components/or-notification-v3/OrNotification.vue.d.ts +2 -0
- package/dist/bundled/v2/components/or-notification-v3/index.js +2 -2
- package/dist/bundled/v2/components/or-notification-v3/styles.d.ts +1 -0
- package/dist/bundled/v2/components/or-radio-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-search-v3/index.js +5 -4
- package/dist/bundled/v2/components/or-select-v3/OrSelect.vue.d.ts +11 -0
- package/dist/bundled/v2/components/or-select-v3/index.js +7 -6
- package/dist/bundled/v2/components/or-switch-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-tag-v3/index.js +2 -2
- package/dist/bundled/v2/components/or-tag-v3/props.d.ts +1 -1
- package/dist/bundled/v2/components/or-textarea-v3/index.js +3 -2
- package/dist/bundled/v2/components/or-toast-v3/OrToast.vue.d.ts +2 -0
- package/dist/bundled/v2/components/or-toast-v3/index.js +2 -2
- package/dist/bundled/v2/components/or-toast-v3/styles.d.ts +1 -0
- package/dist/bundled/v2/index.js +19 -18
- package/dist/bundled/v2/props-78496a2d.js +12 -0
- package/dist/bundled/v2/{types-8fe4e345.js → types-fdd34542.js} +17 -8
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-365741ae.js → OrCardCollection.vue_vue_type_script_lang-5ceefcab.js} +3 -3
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-68329ca1.js → OrConfirm.vue_vue_type_script_lang-bb9ac0bc.js} +2 -2
- package/dist/bundled/v3/{OrIconButton-cd62526d.js → OrIconButton-1581013c.js} +1 -1
- package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-aefcf30d.js → OrIconButton.vue_vue_type_script_lang-f6f801ff.js} +4 -4
- package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-67218502.js → OrInlineInput.vue_vue_type_script_lang-84c521f9.js} +4 -4
- package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-a1831ab8.js → OrInlineTextarea.vue_vue_type_script_lang-9c58faeb.js} +4 -4
- package/dist/bundled/v3/{OrInput-a4f220ed.js → OrInput-fa3a1a23.js} +17 -14
- package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-607d79d4.js → OrInput.vue_vue_type_script_lang-c3e5928c.js} +7 -6
- package/dist/bundled/v3/{OrInputBox-eb54d73d.js → OrInputBox-a11eb96c.js} +1 -1
- package/dist/{esm/v2/OrInputBox-4d5a318d.js → bundled/v3/OrInputBox.vue_vue_type_script_lang-c8184afc.js} +5 -56
- package/dist/bundled/v3/{OrModal.vue_vue_type_script_lang-55c864d1.js → OrModal.vue_vue_type_script_lang-80a7b906.js} +9 -2
- package/dist/bundled/v3/{OrNotification.vue_vue_type_script_lang-c886ae51.js → OrNotification.vue_vue_type_script_lang-fbb35355.js} +9 -2
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-06f318ca.js → OrSearch.vue_vue_type_script_lang-ddf6e02b.js} +3 -3
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-a5ecc5ed.js → OrSelect.vue_vue_type_script_lang-242beccd.js} +17 -9
- package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-e45c345b.js → OrTag.vue_vue_type_script_lang-dc6a4011.js} +6 -6
- package/dist/bundled/v3/{OrTextarea.vue_vue_type_script_lang-8e3531cd.js → OrTextarea.vue_vue_type_script_lang-e1a44c0a.js} +5 -4
- package/dist/bundled/v3/{OrToastContainer-34389303.js → OrToastContainer-7c3c0b12.js} +1 -1
- package/dist/bundled/v3/components/index.js +18 -17
- package/dist/bundled/v3/components/or-card-collection-v3/index.js +9 -8
- package/dist/bundled/v3/components/or-combined-input-v3/OrCombinedInput.stories3.d.ts +27 -0
- package/dist/bundled/v3/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +98 -0
- package/dist/bundled/v3/components/or-combined-input-v3/index.d.ts +2 -0
- package/dist/bundled/v3/components/or-combined-input-v3/index.js +132 -0
- package/dist/bundled/v3/components/or-combined-input-v3/props.d.ts +1 -0
- package/dist/bundled/v3/components/or-combined-input-v3/styles.d.ts +2 -0
- package/dist/bundled/v3/components/or-confirm-v3/index.js +8 -7
- package/dist/bundled/v3/components/or-icon-button-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-icon-button-v3/props.d.ts +1 -1
- package/dist/bundled/v3/components/or-inline-input-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-inline-textarea-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-input-box-v3/index.js +2 -1
- package/dist/bundled/v3/components/or-input-v3/index.js +6 -5
- package/dist/bundled/v3/components/or-modal-v3/OrModal.vue.d.ts +2 -0
- package/dist/bundled/v3/components/or-modal-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-modal-v3/styles.d.ts +1 -0
- package/dist/bundled/v3/components/or-notification-v3/OrNotification.vue.d.ts +2 -0
- package/dist/bundled/v3/components/or-notification-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-notification-v3/styles.d.ts +1 -0
- package/dist/bundled/v3/components/or-search-v3/index.js +8 -7
- package/dist/bundled/v3/components/or-select-v3/OrSelect.vue.d.ts +11 -0
- package/dist/bundled/v3/components/or-select-v3/index.js +9 -8
- package/dist/bundled/v3/components/or-tag-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-tag-v3/props.d.ts +1 -1
- package/dist/bundled/v3/components/or-textarea-v3/index.js +4 -3
- package/dist/bundled/v3/components/or-toast-v3/OrToast.vue.d.ts +2 -0
- package/dist/bundled/v3/components/or-toast-v3/index.js +4 -4
- package/dist/bundled/v3/components/or-toast-v3/styles.d.ts +1 -0
- package/dist/bundled/v3/index.js +57 -49
- package/dist/bundled/v3/props-78496a2d.js +12 -0
- package/dist/bundled/v3/{types-f53434f2.js → types-dcc78caa.js} +16 -7
- package/dist/esm/v2/{OrCardCollection-153b0179.js → OrCardCollection-cfaf440b.js} +3 -3
- package/dist/esm/v2/{OrCheckbox-567e387c.js → OrCheckbox-ea48d156.js} +3 -3
- package/dist/esm/v2/{OrConfirm-d67d5c00.js → OrConfirm-8f688177.js} +1 -1
- package/dist/esm/v2/{OrIconButton-b3779042.js → OrIconButton-e17e4944.js} +4 -4
- package/dist/esm/v2/{OrInlineInput-10205811.js → OrInlineInput-e32f322f.js} +3 -3
- package/dist/esm/v2/{OrInlineTextarea-7658611e.js → OrInlineTextarea-7296fbdb.js} +3 -3
- package/dist/esm/v2/{OrInput-ada3a970.js → OrInput-0d0db283.js} +21 -14
- package/dist/esm/v2/OrInputBox-20d65881.js +43 -0
- package/dist/{bundled/v3/OrInputBox.vue_vue_type_script_lang-5ee4ee45.js → esm/v2/OrInputBox.vue_rollup-plugin-vue_script-5253ba98.js} +4 -3
- package/dist/esm/v2/{OrModal-a7719843.js → OrModal-5b37a50a.js} +12 -3
- package/dist/esm/v2/{OrNotification-8a4830a3.js → OrNotification-c765f111.js} +13 -5
- package/dist/esm/v2/{OrRadio-848ce55d.js → OrRadio-6e10f071.js} +3 -3
- package/dist/esm/v2/{OrSearch-0f08f2f5.js → OrSearch-e7d0f2a3.js} +2 -2
- package/dist/esm/v2/{OrSelect-b3794fd3.js → OrSelect-bdc3218f.js} +13 -5
- package/dist/esm/v2/{OrSwitch-13b6a7ee.js → OrSwitch-c628d2c5.js} +3 -3
- package/dist/esm/v2/{OrTag-52e4cc94.js → OrTag-cf9c6195.js} +6 -6
- package/dist/esm/v2/{OrTextarea-6712a150.js → OrTextarea-b4660f09.js} +14 -11
- package/dist/esm/v2/components/index.js +18 -17
- package/dist/esm/v2/components/or-card-collection-v3/index.js +6 -5
- package/dist/esm/v2/components/or-checkbox-v3/index.js +1 -1
- package/dist/esm/v2/components/or-combined-input-v3/OrCombinedInput.stories3.d.ts +27 -0
- package/dist/esm/v2/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +98 -0
- package/dist/esm/v2/components/or-combined-input-v3/index.d.ts +2 -0
- package/dist/esm/v2/components/or-combined-input-v3/index.js +147 -0
- package/dist/esm/v2/components/or-combined-input-v3/props.d.ts +1 -0
- package/dist/esm/v2/components/or-combined-input-v3/styles.d.ts +2 -0
- package/dist/esm/v2/components/or-confirm-v3/index.js +5 -4
- package/dist/esm/v2/components/or-icon-button-v3/index.js +1 -1
- package/dist/esm/v2/components/or-icon-button-v3/props.d.ts +1 -1
- package/dist/esm/v2/components/or-inline-input-v3/index.js +2 -2
- package/dist/esm/v2/components/or-inline-textarea-v3/index.js +2 -2
- package/dist/esm/v2/components/or-input-box-v3/index.js +3 -2
- package/dist/esm/v2/components/or-input-v3/index.js +4 -3
- package/dist/esm/v2/components/or-modal-v3/OrModal.vue.d.ts +2 -0
- package/dist/esm/v2/components/or-modal-v3/index.js +2 -2
- package/dist/esm/v2/components/or-modal-v3/styles.d.ts +1 -0
- package/dist/esm/v2/components/or-notification-v3/OrNotification.vue.d.ts +2 -0
- package/dist/esm/v2/components/or-notification-v3/index.js +2 -2
- package/dist/esm/v2/components/or-notification-v3/styles.d.ts +1 -0
- package/dist/esm/v2/components/or-radio-v3/index.js +1 -1
- package/dist/esm/v2/components/or-search-v3/index.js +5 -4
- package/dist/esm/v2/components/or-select-v3/OrSelect.vue.d.ts +11 -0
- package/dist/esm/v2/components/or-select-v3/index.js +7 -6
- package/dist/esm/v2/components/or-switch-v3/index.js +1 -1
- package/dist/esm/v2/components/or-tag-v3/index.js +2 -2
- package/dist/esm/v2/components/or-tag-v3/props.d.ts +1 -1
- package/dist/esm/v2/components/or-textarea-v3/index.js +3 -2
- package/dist/esm/v2/components/or-toast-v3/OrToast.vue.d.ts +2 -0
- package/dist/esm/v2/components/or-toast-v3/index.js +2 -2
- package/dist/esm/v2/components/or-toast-v3/styles.d.ts +1 -0
- package/dist/esm/v2/index.js +18 -17
- package/dist/esm/v2/{types-6c742e07.js → types-8d58d7b5.js} +17 -8
- package/dist/esm/v3/{OrCardCollection-a09ad585.js → OrCardCollection-dbd1e3c2.js} +3 -3
- package/dist/esm/v3/{OrCheckbox-3e139eac.js → OrCheckbox-d1b516c8.js} +3 -2
- package/dist/esm/v3/{OrConfirm-b93b5131.js → OrConfirm-b2ef47a2.js} +1 -1
- package/dist/esm/v3/{OrIconButton-1a89fbf9.js → OrIconButton-1eebcafc.js} +4 -4
- package/dist/esm/v3/{OrInlineInput-507fc99c.js → OrInlineInput-00f0d1b8.js} +3 -3
- package/dist/esm/v3/{OrInlineTextarea-53a9e027.js → OrInlineTextarea-c1babfda.js} +3 -3
- package/dist/esm/v3/{OrInput-9c0426b9.js → OrInput-509065af.js} +20 -17
- package/dist/esm/v3/{OrInputBox-6d1b6059.js → OrInputBox-0ebab1b8.js} +1 -1
- package/dist/esm/v3/{OrModal-7878cc39.js → OrModal-381554a6.js} +12 -3
- package/dist/esm/v3/{OrNotification-e1383681.js → OrNotification-34d9c99b.js} +12 -4
- package/dist/esm/v3/{OrRadio-54b6d0de.js → OrRadio-ef9d4c6e.js} +3 -2
- package/dist/esm/v3/{OrSearch-9885d178.js → OrSearch-15ba38cd.js} +2 -2
- package/dist/esm/v3/{OrSelect-a0718c44.js → OrSelect-bcf0fb2a.js} +13 -6
- package/dist/esm/v3/{OrSwitch-cca30aa0.js → OrSwitch-cc797a48.js} +3 -3
- package/dist/esm/v3/{OrTag-efa7578f.js → OrTag-c0bbaa58.js} +6 -6
- package/dist/esm/v3/{OrTextarea-bb9ef3f2.js → OrTextarea-26c50ec0.js} +17 -15
- package/dist/esm/v3/components/index.js +17 -17
- package/dist/esm/v3/components/or-card-collection-v3/index.js +5 -5
- package/dist/esm/v3/components/or-checkbox-v3/index.js +1 -1
- package/dist/esm/v3/components/or-combined-input-v3/OrCombinedInput.stories3.d.ts +27 -0
- package/dist/esm/v3/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +98 -0
- package/dist/esm/v3/components/or-combined-input-v3/index.d.ts +2 -0
- package/dist/esm/v3/components/or-combined-input-v3/index.js +132 -0
- package/dist/esm/v3/components/or-combined-input-v3/props.d.ts +1 -0
- package/dist/esm/v3/components/or-combined-input-v3/styles.d.ts +2 -0
- package/dist/esm/v3/components/or-confirm-v3/index.js +4 -4
- package/dist/esm/v3/components/or-icon-button-v3/index.js +1 -1
- package/dist/esm/v3/components/or-icon-button-v3/props.d.ts +1 -1
- package/dist/esm/v3/components/or-inline-input-v3/index.js +2 -2
- package/dist/esm/v3/components/or-inline-textarea-v3/index.js +2 -2
- package/dist/esm/v3/components/or-input-box-v3/index.js +1 -1
- package/dist/esm/v3/components/or-input-v3/index.js +3 -3
- package/dist/esm/v3/components/or-modal-v3/OrModal.vue.d.ts +2 -0
- package/dist/esm/v3/components/or-modal-v3/index.js +2 -2
- package/dist/esm/v3/components/or-modal-v3/styles.d.ts +1 -0
- package/dist/esm/v3/components/or-notification-v3/OrNotification.vue.d.ts +2 -0
- package/dist/esm/v3/components/or-notification-v3/index.js +2 -2
- package/dist/esm/v3/components/or-notification-v3/styles.d.ts +1 -0
- package/dist/esm/v3/components/or-radio-v3/index.js +1 -1
- package/dist/esm/v3/components/or-search-v3/index.js +4 -4
- package/dist/esm/v3/components/or-select-v3/OrSelect.vue.d.ts +11 -0
- package/dist/esm/v3/components/or-select-v3/index.js +6 -6
- package/dist/esm/v3/components/or-switch-v3/index.js +1 -1
- package/dist/esm/v3/components/or-tag-v3/index.js +2 -2
- package/dist/esm/v3/components/or-tag-v3/props.d.ts +1 -1
- package/dist/esm/v3/components/or-textarea-v3/index.js +2 -2
- package/dist/esm/v3/components/or-toast-v3/OrToast.vue.d.ts +2 -0
- package/dist/esm/v3/components/or-toast-v3/index.js +2 -2
- package/dist/esm/v3/components/or-toast-v3/styles.d.ts +1 -0
- package/dist/esm/v3/index.js +17 -17
- package/dist/esm/v3/{types-2692e337.js → types-8a338300.js} +15 -6
- package/package.json +2 -2
- package/src/components/or-checkbox-v3/OrCheckbox.vue +1 -1
- package/src/components/or-combined-input-v3/OrCombinedInput.docs.mdx +7 -0
- package/src/components/or-combined-input-v3/OrCombinedInput.stories3.ts +202 -0
- package/src/components/or-combined-input-v3/OrCombinedInput.vue +134 -0
- package/src/components/or-combined-input-v3/index.ts +2 -0
- package/src/components/or-combined-input-v3/props.ts +1 -0
- package/src/components/or-combined-input-v3/styles.ts +25 -0
- package/src/components/or-icon-button-v3/OrIconButton.vue +1 -1
- package/src/components/or-icon-button-v3/props.ts +1 -1
- package/src/components/or-icon-button-v3/styles.ts +1 -4
- package/src/components/or-inline-input-v3/styles.ts +2 -2
- package/src/components/or-inline-textarea-v3/styles.ts +2 -2
- package/src/components/or-input-box-v3/styles.ts +1 -1
- package/src/components/or-input-v3/OrInput.vue +28 -22
- package/src/components/or-input-v3/styles.ts +2 -2
- package/src/components/or-modal-v3/OrModal.vue +13 -6
- package/src/components/or-modal-v3/styles.ts +9 -0
- package/src/components/or-notification-v3/OrNotification.vue +12 -6
- package/src/components/or-notification-v3/styles.ts +9 -0
- package/src/components/or-radio-v3/OrRadio.vue +1 -1
- package/src/components/or-select-v3/OrSelect.stories3.ts +4 -0
- package/src/components/or-select-v3/OrSelect.vue +6 -0
- package/src/components/or-select-v3/styles.ts +4 -1
- package/src/components/or-switch-v3/OrSwitch.vue +1 -1
- package/src/components/or-tag-v3/OrTag.vue +3 -3
- package/src/components/or-tag-v3/props.ts +1 -1
- package/src/components/or-tag-v3/styles.ts +1 -1
- package/src/components/or-textarea-v3/OrTextarea.vue +5 -1
- package/src/components/or-textarea-v3/styles.ts +2 -2
- package/src/components/or-toast-v3/OrToast.vue +13 -6
- package/src/components/or-toast-v3/styles.ts +9 -0
|
@@ -13,11 +13,13 @@
|
|
|
13
13
|
<slot name="header" />
|
|
14
14
|
</div>
|
|
15
15
|
|
|
16
|
-
<
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
<div :class="closeButtonStyles">
|
|
17
|
+
<OrIconButton
|
|
18
|
+
:icon="'close'"
|
|
19
|
+
:size="'l'"
|
|
20
|
+
@click.stop="close"
|
|
21
|
+
/>
|
|
22
|
+
</div>
|
|
21
23
|
</div>
|
|
22
24
|
|
|
23
25
|
<div :class="['grow', 'overflow-y-auto']">
|
|
@@ -35,7 +37,7 @@ import { useClassAttribute } from '../../hooks';
|
|
|
35
37
|
import { OrIconButtonV3 as OrIconButton } from '../or-icon-button-v3';
|
|
36
38
|
import { OrOverlayV3 as OrOverlay } from '../or-overlay-v3';
|
|
37
39
|
import { ModalSize } from './props';
|
|
38
|
-
import { ModalHeader, ModalRoot, ModalRootSizes } from './styles';
|
|
40
|
+
import { ModalCloseButton, ModalHeader, ModalRoot, ModalRootSizes } from './styles';
|
|
39
41
|
|
|
40
42
|
export default defineComponent({
|
|
41
43
|
name: 'OrModal',
|
|
@@ -88,6 +90,10 @@ export default defineComponent({
|
|
|
88
90
|
...ModalHeader,
|
|
89
91
|
]);
|
|
90
92
|
|
|
93
|
+
const closeButtonStyles = computed(() => [
|
|
94
|
+
...ModalCloseButton,
|
|
95
|
+
]);
|
|
96
|
+
|
|
91
97
|
// State
|
|
92
98
|
const isActive = ref(false);
|
|
93
99
|
|
|
@@ -117,6 +123,7 @@ export default defineComponent({
|
|
|
117
123
|
root,
|
|
118
124
|
rootStyles,
|
|
119
125
|
headerStyles,
|
|
126
|
+
closeButtonStyles,
|
|
120
127
|
isActive,
|
|
121
128
|
open,
|
|
122
129
|
close,
|
|
@@ -15,11 +15,12 @@
|
|
|
15
15
|
<slot />
|
|
16
16
|
</div>
|
|
17
17
|
|
|
18
|
-
<
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
<div :class="actionStyles">
|
|
19
|
+
<OrIconButton
|
|
20
|
+
:icon="'close'"
|
|
21
|
+
@click.stop="$emit('close')"
|
|
22
|
+
/>
|
|
23
|
+
</div>
|
|
23
24
|
</div>
|
|
24
25
|
</template>
|
|
25
26
|
|
|
@@ -29,7 +30,7 @@ import { useClassAttribute } from '../../hooks';
|
|
|
29
30
|
import { OrIconButtonV3 as OrIconButton } from '../or-icon-button-v3';
|
|
30
31
|
import { OrIconV3 as OrIcon } from '../or-icon-v3';
|
|
31
32
|
import { NotificationVariant } from './props';
|
|
32
|
-
import { NotificationIcon, NotificationIconVariants, NotificationRoot, NotificationRootVariants } from './styles';
|
|
33
|
+
import { NotificationAction, NotificationIcon, NotificationIconVariants, NotificationRoot, NotificationRootVariants } from './styles';
|
|
33
34
|
|
|
34
35
|
export default defineComponent({
|
|
35
36
|
name: 'OrNotification',
|
|
@@ -71,6 +72,10 @@ export default defineComponent({
|
|
|
71
72
|
...NotificationIconVariants[props.variant],
|
|
72
73
|
]);
|
|
73
74
|
|
|
75
|
+
const actionStyles = computed(() => [
|
|
76
|
+
...NotificationAction,
|
|
77
|
+
]);
|
|
78
|
+
|
|
74
79
|
// State
|
|
75
80
|
const icon = computed(() => {
|
|
76
81
|
switch (props.variant) {
|
|
@@ -92,6 +97,7 @@ export default defineComponent({
|
|
|
92
97
|
root,
|
|
93
98
|
rootStyles,
|
|
94
99
|
iconStyles,
|
|
100
|
+
actionStyles,
|
|
95
101
|
icon,
|
|
96
102
|
};
|
|
97
103
|
},
|
|
@@ -97,3 +97,12 @@ export const NotificationIconVariants: Record<NotificationVariant, string[]> = {
|
|
|
97
97
|
'dark:theme-foreground-primary-dark',
|
|
98
98
|
],
|
|
99
99
|
};
|
|
100
|
+
|
|
101
|
+
export const NotificationAction: string[] = [
|
|
102
|
+
// Layout
|
|
103
|
+
'contents',
|
|
104
|
+
|
|
105
|
+
// Theme
|
|
106
|
+
'theme-foreground-outline',
|
|
107
|
+
'dark:theme-foreground-outline-dark',
|
|
108
|
+
];
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
v-dropdown-open="toggle"
|
|
25
25
|
v-dropdown-close="close"
|
|
26
26
|
:class="[popoverState === 'open' && 'rounded-b-0']"
|
|
27
|
+
:variant="disableDefaultStyles ? 'unstyled' : 'styled'"
|
|
27
28
|
:size="size"
|
|
28
29
|
:invalid="invalid"
|
|
29
30
|
:readonly="readonly"
|
|
@@ -314,6 +315,11 @@ export default defineComponent({
|
|
|
314
315
|
default: false,
|
|
315
316
|
},
|
|
316
317
|
|
|
318
|
+
disableDefaultStyles: {
|
|
319
|
+
type: Boolean,
|
|
320
|
+
default: false,
|
|
321
|
+
},
|
|
322
|
+
|
|
317
323
|
enableSearch: {
|
|
318
324
|
type: Boolean,
|
|
319
325
|
default: false,
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
<div :class="['layout-row', 'm-[-4px] md:m-[-2px]']">
|
|
16
16
|
<OrIconButton
|
|
17
17
|
:icon="'close'"
|
|
18
|
-
:color="custom ? 'inherit'
|
|
18
|
+
:color="!custom ? color : 'inherit'"
|
|
19
19
|
:disabled="disabled"
|
|
20
20
|
@click.stop="$emit('reset')"
|
|
21
21
|
/>
|
|
@@ -48,7 +48,7 @@ export default defineComponent({
|
|
|
48
48
|
|
|
49
49
|
color: {
|
|
50
50
|
type: String as PropType<TagColor | string>,
|
|
51
|
-
default: TagColor.
|
|
51
|
+
default: TagColor.Primary,
|
|
52
52
|
},
|
|
53
53
|
|
|
54
54
|
disabled: {
|
|
@@ -86,7 +86,7 @@ export default defineComponent({
|
|
|
86
86
|
|
|
87
87
|
// State
|
|
88
88
|
const custom = computed(() => {
|
|
89
|
-
return !(['
|
|
89
|
+
return !(['primary', 'danger'] as TagColor[]).includes(props.color as TagColor);
|
|
90
90
|
});
|
|
91
91
|
|
|
92
92
|
// Effects
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
3
|
ref="root"
|
|
4
|
+
v-bind="$attrs"
|
|
4
5
|
:class="rootStyles"
|
|
5
6
|
>
|
|
6
7
|
<template v-if="label">
|
|
@@ -27,11 +28,14 @@
|
|
|
27
28
|
<textarea
|
|
28
29
|
:id="controlId"
|
|
29
30
|
v-model="proxyModelValue"
|
|
30
|
-
v-bind="$attrs"
|
|
31
31
|
:class="controlStyles"
|
|
32
32
|
:placeholder="placeholder"
|
|
33
33
|
:required="required"
|
|
34
34
|
:disabled="disabled"
|
|
35
|
+
|
|
36
|
+
:readonly="readonly"
|
|
37
|
+
:maxlength="maxLength"
|
|
38
|
+
|
|
35
39
|
@keydown="$emit('keydown', $event)"
|
|
36
40
|
@keyup="$emit('keyup', $event)"
|
|
37
41
|
@focus="$emit('focus', $event)"
|
|
@@ -44,11 +44,13 @@
|
|
|
44
44
|
</template>
|
|
45
45
|
|
|
46
46
|
<template v-if="dismissible">
|
|
47
|
-
<
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
47
|
+
<div :class="actionButtonStyle">
|
|
48
|
+
<OrIconButton
|
|
49
|
+
icon="close"
|
|
50
|
+
class="dark:theme-foreground-inherit"
|
|
51
|
+
@click.stop="onClose()"
|
|
52
|
+
/>
|
|
53
|
+
</div>
|
|
52
54
|
</template>
|
|
53
55
|
</div>
|
|
54
56
|
</div>
|
|
@@ -61,7 +63,7 @@ import successPng from '../../assets/success.png';
|
|
|
61
63
|
import { OrIconButtonV3 as OrIconButton } from '../or-icon-button-v3';
|
|
62
64
|
import { OrLoaderV3 as OrLoader } from '../or-loader-v3';
|
|
63
65
|
import { ToastType } from './props';
|
|
64
|
-
import { messageStyleVariant, ToastRoot } from './styles';
|
|
66
|
+
import { messageStyleVariant, ToastActionButton, ToastRoot } from './styles';
|
|
65
67
|
import { ToastLink } from './types';
|
|
66
68
|
|
|
67
69
|
export default defineComponent({
|
|
@@ -132,6 +134,10 @@ export default defineComponent({
|
|
|
132
134
|
'dark:text-inverse-primary-dark',
|
|
133
135
|
]);
|
|
134
136
|
|
|
137
|
+
const actionButtonStyle = computed(() => [
|
|
138
|
+
...ToastActionButton,
|
|
139
|
+
]);
|
|
140
|
+
|
|
135
141
|
// State
|
|
136
142
|
const emojiSrc = computed(() => {
|
|
137
143
|
switch (props.toastType) {
|
|
@@ -162,6 +168,7 @@ export default defineComponent({
|
|
|
162
168
|
|
|
163
169
|
return {
|
|
164
170
|
root,
|
|
171
|
+
actionButtonStyle,
|
|
165
172
|
toastIconStyle,
|
|
166
173
|
rootStyles,
|
|
167
174
|
loaderStyle,
|
|
@@ -35,6 +35,15 @@ export const ToastRoot: string[] = [
|
|
|
35
35
|
'dark:shadow-card-dark',
|
|
36
36
|
];
|
|
37
37
|
|
|
38
|
+
export const ToastActionButton: string[] = [
|
|
39
|
+
// Layout
|
|
40
|
+
'contents',
|
|
41
|
+
|
|
42
|
+
// Theme
|
|
43
|
+
'theme-foreground-outline',
|
|
44
|
+
'dark:theme-foreground-outline-dark',
|
|
45
|
+
];
|
|
46
|
+
|
|
38
47
|
export const ToastContainer: string[] = [
|
|
39
48
|
// Position
|
|
40
49
|
'absolute',
|