@onereach/ui-components 2.67.9-beta.2030.0 → 2.67.9-beta.2035.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundled/v2/{OrButton-6c5fb9df.js → OrButton-52399414.js} +7 -7
- package/dist/bundled/v2/{OrCardCollection-87b47b1d.js → OrCardCollection-20de05fa.js} +6 -6
- package/dist/bundled/v2/{OrConfirm-1b5ee24c.js → OrConfirm-5248c7eb.js} +2 -2
- package/dist/bundled/v2/{OrErrorTag-c55ec019.js → OrErrorTag-b043fe06.js} +11 -8
- package/dist/bundled/v2/{OrExpansionPanel-41bbabd3.js → OrExpansionPanel-e788813b.js} +1 -1
- package/dist/bundled/v2/{OrFab-ea844ff9.js → OrFab-ce64fd03.js} +6 -6
- package/dist/bundled/v2/{OrIcon-ce8fd08b.js → OrIcon-8625385f.js} +6 -8
- package/dist/bundled/v2/{OrIconButton-165934f8.js → OrIconButton-3bada179.js} +17 -11
- package/dist/bundled/v2/{OrInlineInput-a552394c.js → OrInlineInput-9a819673.js} +11 -11
- package/dist/bundled/v2/{OrInlineInputBox-f2b25ee4.js → OrInlineInputBox-f457210f.js} +6 -4
- package/dist/bundled/v2/{OrInlineTextarea-a1321d5b.js → OrInlineTextarea-ba75136c.js} +11 -11
- package/dist/bundled/v2/{OrInput-cdd93d29.js → OrInput-cfd26508.js} +9 -9
- package/dist/bundled/v2/{OrInputBox-7069052f.js → OrInputBox-79ec54ad.js} +6 -4
- package/dist/bundled/v2/{OrLoader-6808ea86.js → OrLoader-76f2615f.js} +3 -15
- package/dist/bundled/v2/{OrMenuItem-f89dfc77.js → OrMenuItem-ba4bd7c1.js} +1 -1
- package/dist/bundled/v2/{OrModal-2540ea99.js → OrModal-28bdf571.js} +1 -1
- package/dist/bundled/v2/{OrNotification-20fc8b7d.js → OrNotification-6aad3b04.js} +2 -2
- package/dist/bundled/v2/{OrSearch-f6d5fc65.js → OrSearch-32f28e16.js} +2 -2
- package/dist/bundled/v2/{OrSelect-6cef1b69.js → OrSelect-5dd5f5e9.js} +18 -14
- package/dist/bundled/v2/{OrSortHeader-76b509a6.js → OrSortHeader-5b2a3650.js} +1 -1
- package/dist/bundled/v2/{OrSwitch-80d6472f.js → OrSwitch-c606709c.js} +1 -1
- package/dist/bundled/v2/{OrTabs-2d4e0d87.js → OrTabs-b6287f1c.js} +2 -2
- package/dist/bundled/v2/{OrTag-c5f7c337.js → OrTag-c1f553fb.js} +11 -8
- package/dist/bundled/v2/{OrTextarea-0ab9c0a8.js → OrTextarea-ae5c9479.js} +3 -3
- package/dist/bundled/v2/{OrTooltip-03e06e9f.js → OrTooltip-c55e8c25.js} +14 -12
- package/dist/bundled/v2/components/index.js +26 -26
- package/dist/bundled/v2/components/or-button-v3/index.js +2 -2
- package/dist/bundled/v2/components/or-card-collection-v3/index.js +7 -7
- package/dist/bundled/v2/components/or-confirm-v3/index.js +8 -8
- package/dist/bundled/v2/components/or-error-tag-v3/index.js +2 -2
- package/dist/bundled/v2/components/or-expansion-panel-v3/index.js +2 -2
- package/dist/bundled/v2/components/or-fab-v3/index.js +2 -2
- package/dist/bundled/v2/components/or-icon-button-v3/OrIconButton.vue.d.ts +16 -13
- package/dist/bundled/v2/components/or-icon-button-v3/index.js +5 -5
- package/dist/bundled/v2/components/or-icon-button-v3/props.d.ts +1 -0
- package/dist/bundled/v2/components/or-icon-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-inline-input-box-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-inline-input-v3/index.js +5 -5
- package/dist/bundled/v2/components/or-inline-textarea-v3/index.js +5 -5
- package/dist/bundled/v2/components/or-input-box-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-input-v3/index.js +5 -5
- package/dist/bundled/v2/components/or-loader-v3/OrLoader.stories3.d.ts +1 -11
- package/dist/bundled/v2/components/or-loader-v3/OrLoader.vue.d.ts +0 -22
- package/dist/bundled/v2/components/or-loader-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-menu-item-v3/index.js +2 -2
- package/dist/bundled/v2/components/or-modal-v3/index.js +4 -4
- package/dist/bundled/v2/components/or-notification-v3/index.js +4 -4
- package/dist/bundled/v2/components/or-search-v3/index.js +6 -6
- package/dist/bundled/v2/components/or-select-v3/index.js +9 -9
- package/dist/bundled/v2/components/or-sort-header-v3/index.js +2 -2
- package/dist/bundled/v2/components/or-switch-v3/index.js +2 -2
- package/dist/bundled/v2/components/or-tabs-v3/index.js +3 -3
- package/dist/bundled/v2/components/or-tag-v3/index.js +4 -4
- package/dist/bundled/v2/components/or-textarea-v3/index.js +2 -2
- package/dist/bundled/v2/components/or-toast-v3/index.js +5 -5
- package/dist/bundled/v2/components/or-toast-v3/styles.d.ts +1 -0
- package/dist/bundled/v2/components/or-tooltip-v3/index.js +1 -1
- package/dist/bundled/v2/index.js +27 -27
- package/dist/bundled/v2/{types-4b5a7133.js → types-ee3139c9.js} +65 -38
- package/dist/bundled/v3/{OrButton.vue_vue_type_script_lang-8399c399.js → OrButton.vue_vue_type_script_lang-0472045f.js} +8 -8
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-2b1dcff6.js → OrCardCollection.vue_vue_type_script_lang-a11db7f3.js} +8 -8
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-30c62bb4.js → OrConfirm.vue_vue_type_script_lang-4a54eede.js} +3 -3
- package/dist/bundled/v3/{OrErrorTag.vue_vue_type_script_lang-d77f6b12.js → OrErrorTag.vue_vue_type_script_lang-87f27b27.js} +8 -6
- package/dist/bundled/v3/{OrExpansionPanel.vue_vue_type_script_lang-a305d8bc.js → OrExpansionPanel.vue_vue_type_script_lang-f0326bb5.js} +2 -2
- package/dist/bundled/v3/{OrFab.vue_vue_type_script_lang-aefbdf9b.js → OrFab.vue_vue_type_script_lang-ee286cab.js} +7 -7
- package/dist/bundled/v3/{OrIcon-3a514933.js → OrIcon-d878b768.js} +1 -1
- package/dist/bundled/v3/{OrIcon.vue_vue_type_script_lang-41a6a57a.js → OrIcon.vue_vue_type_script_lang-a119a715.js} +6 -8
- package/dist/bundled/v3/{OrIconButton-8c211219.js → OrIconButton-0aed90ce.js} +6 -6
- package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-79d08a2b.js → OrIconButton.vue_vue_type_script_lang-78c0039b.js} +13 -7
- package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-4257a72b.js → OrInlineInput.vue_vue_type_script_lang-c49ca2e4.js} +9 -9
- package/dist/bundled/v3/{OrInlineInputBox-2eede01a.js → OrInlineInputBox-9d68ded1.js} +1 -1
- package/dist/bundled/v3/{OrInlineInputBox.vue_vue_type_script_lang-23b531ad.js → OrInlineInputBox.vue_vue_type_script_lang-73750005.js} +6 -4
- package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-e3ce83e1.js → OrInlineTextarea.vue_vue_type_script_lang-a941e77d.js} +9 -9
- package/dist/bundled/v3/{OrInput-33571984.js → OrInput-6f6ce9ed.js} +2 -2
- package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-3895999d.js → OrInput.vue_vue_type_script_lang-f4f94fb9.js} +8 -8
- package/dist/bundled/v3/{OrInputBox-81385a91.js → OrInputBox-eb54d73d.js} +1 -1
- package/dist/bundled/v3/{OrInputBox.vue_vue_type_script_lang-760097b4.js → OrInputBox.vue_vue_type_script_lang-5ee4ee45.js} +6 -4
- package/dist/bundled/v3/OrLoader-65868e73.js +56 -0
- package/dist/bundled/v3/{OrLoader.vue_vue_type_script_lang-e2f5bb7d.js → OrLoader.vue_vue_type_script_lang-edd1b404.js} +1 -9
- package/dist/bundled/v3/{OrMenuItem-94ffa853.js → OrMenuItem-f0e0ea6b.js} +1 -1
- package/dist/bundled/v3/{OrMenuItem.vue_vue_type_script_lang-ccb7e082.js → OrMenuItem.vue_vue_type_script_lang-9e2692cf.js} +2 -2
- package/dist/bundled/v3/{OrModal.vue_vue_type_script_lang-142d9a56.js → OrModal.vue_vue_type_script_lang-29529b8b.js} +2 -2
- package/dist/bundled/v3/{OrNotification.vue_vue_type_script_lang-54e6a3aa.js → OrNotification.vue_vue_type_script_lang-bc254063.js} +4 -4
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-b254e34c.js → OrSearch.vue_vue_type_script_lang-80e14534.js} +3 -3
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-e6be732c.js → OrSelect.vue_vue_type_script_lang-f4de7549.js} +26 -22
- package/dist/bundled/v3/{OrSortHeader.vue_vue_type_script_lang-98ec33aa.js → OrSortHeader.vue_vue_type_script_lang-a4c9b272.js} +2 -2
- package/dist/bundled/v3/{OrSwitch.vue_vue_type_script_lang-e8ece219.js → OrSwitch.vue_vue_type_script_lang-b40bf75f.js} +2 -2
- package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-ca57f9d9.js → OrTabs.vue_vue_type_script_lang-2d8e0e27.js} +4 -4
- package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-18db0bd9.js → OrTag.vue_vue_type_script_lang-fb65f814.js} +8 -6
- package/dist/bundled/v3/{OrTextarea.vue_vue_type_script_lang-d5a64917.js → OrTextarea.vue_vue_type_script_lang-c7781cde.js} +4 -4
- package/dist/bundled/v3/{OrToastContainer-b4bd1d2f.js → OrToastContainer-ce858a2e.js} +1 -1
- package/dist/bundled/v3/{OrTooltip.vue_vue_type_script_lang-d0cd29d1.js → OrTooltip.vue_vue_type_script_lang-b28083e4.js} +14 -12
- package/dist/bundled/v3/components/index.js +33 -33
- package/dist/bundled/v3/components/or-button-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-card-collection-v3/index.js +11 -11
- package/dist/bundled/v3/components/or-confirm-v3/index.js +13 -13
- package/dist/bundled/v3/components/or-error-tag-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-expansion-panel-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-fab-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-icon-button-v3/OrIconButton.vue.d.ts +16 -13
- package/dist/bundled/v3/components/or-icon-button-v3/index.js +5 -5
- package/dist/bundled/v3/components/or-icon-button-v3/props.d.ts +1 -0
- package/dist/bundled/v3/components/or-icon-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-inline-input-box-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-inline-input-v3/index.js +8 -8
- package/dist/bundled/v3/components/or-inline-textarea-v3/index.js +8 -8
- package/dist/bundled/v3/components/or-input-box-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-input-v3/index.js +8 -8
- package/dist/bundled/v3/components/or-loader-v3/OrLoader.stories3.d.ts +1 -11
- package/dist/bundled/v3/components/or-loader-v3/OrLoader.vue.d.ts +0 -22
- package/dist/bundled/v3/components/or-loader-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-menu-item-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-modal-v3/index.js +6 -6
- package/dist/bundled/v3/components/or-notification-v3/index.js +6 -6
- package/dist/bundled/v3/components/or-search-v3/index.js +10 -10
- package/dist/bundled/v3/components/or-select-v3/index.js +14 -14
- package/dist/bundled/v3/components/or-sort-header-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-switch-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-tabs-v3/index.js +5 -5
- package/dist/bundled/v3/components/or-tag-v3/index.js +6 -6
- package/dist/bundled/v3/components/or-textarea-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-toast-v3/index.js +9 -9
- package/dist/bundled/v3/components/or-toast-v3/styles.d.ts +1 -0
- package/dist/bundled/v3/components/or-tooltip-v3/index.js +1 -1
- package/dist/bundled/v3/index.js +105 -100
- package/dist/bundled/v3/{types-3e263ea6.js → types-39ad0179.js} +62 -32
- package/dist/esm/v2/{OrButton-fe4a5114.js → OrButton-75b46b71.js} +7 -7
- package/dist/esm/v2/{OrCardCollection-d2d64ffe.js → OrCardCollection-068cc48c.js} +6 -6
- package/dist/esm/v2/{OrConfirm-bee63371.js → OrConfirm-b0a3373f.js} +2 -2
- package/dist/esm/v2/{OrErrorTag-c14e0298.js → OrErrorTag-7b3460b1.js} +11 -8
- package/dist/esm/v2/{OrExpansionPanel-33d5cf05.js → OrExpansionPanel-8b5a1158.js} +1 -1
- package/dist/esm/v2/{OrFab-8d665c26.js → OrFab-171873d9.js} +6 -6
- package/dist/esm/v2/{OrIcon-05689298.js → OrIcon-5e394c62.js} +6 -8
- package/dist/esm/v2/{OrIconButton-c4fa5a1d.js → OrIconButton-81668e64.js} +17 -11
- package/dist/esm/v2/{OrInlineInput-a888df50.js → OrInlineInput-5cea8231.js} +11 -11
- package/dist/esm/v2/{OrInlineInputBox-6a15ea2b.js → OrInlineInputBox-fefd4fbd.js} +6 -4
- package/dist/esm/v2/{OrInlineTextarea-1925651c.js → OrInlineTextarea-3de16d6e.js} +11 -11
- package/dist/esm/v2/{OrInput-6e7e582e.js → OrInput-8173ce5b.js} +9 -9
- package/dist/esm/v2/{OrInputBox-208dceac.js → OrInputBox-4d5a318d.js} +6 -4
- package/dist/esm/v2/{OrLoader-0dcf4c01.js → OrLoader-bd088836.js} +3 -15
- package/dist/esm/v2/{OrMenuItem-038641b7.js → OrMenuItem-f22494a9.js} +1 -1
- package/dist/esm/v2/{OrModal-3b081ef1.js → OrModal-57953984.js} +1 -1
- package/dist/esm/v2/{OrNotification-1d316255.js → OrNotification-c75b5dc0.js} +2 -2
- package/dist/esm/v2/{OrSearch-42454def.js → OrSearch-1bfd53fd.js} +2 -2
- package/dist/esm/v2/{OrSelect-439f27b9.js → OrSelect-0904e70d.js} +18 -14
- package/dist/esm/v2/{OrSortHeader-b4dbff08.js → OrSortHeader-ea645cdc.js} +1 -1
- package/dist/esm/v2/{OrSwitch-f077e9d5.js → OrSwitch-2e0a53ed.js} +1 -1
- package/dist/esm/v2/{OrTabs-c64be432.js → OrTabs-e80adb9b.js} +2 -2
- package/dist/esm/v2/{OrTag-cf72400e.js → OrTag-52090567.js} +11 -8
- package/dist/esm/v2/{OrTextarea-f566682c.js → OrTextarea-bed545b2.js} +3 -3
- package/dist/esm/v2/{OrTooltip-27ad798d.js → OrTooltip-72b54ecb.js} +14 -12
- package/dist/esm/v2/components/index.js +26 -26
- package/dist/esm/v2/components/or-button-v3/index.js +2 -2
- package/dist/esm/v2/components/or-card-collection-v3/index.js +7 -7
- package/dist/esm/v2/components/or-confirm-v3/index.js +8 -8
- package/dist/esm/v2/components/or-error-tag-v3/index.js +2 -2
- package/dist/esm/v2/components/or-expansion-panel-v3/index.js +2 -2
- package/dist/esm/v2/components/or-fab-v3/index.js +2 -2
- package/dist/esm/v2/components/or-icon-button-v3/OrIconButton.vue.d.ts +16 -13
- package/dist/esm/v2/components/or-icon-button-v3/index.js +4 -4
- package/dist/esm/v2/components/or-icon-button-v3/props.d.ts +1 -0
- package/dist/esm/v2/components/or-icon-v3/index.js +1 -1
- package/dist/esm/v2/components/or-inline-input-box-v3/index.js +1 -1
- package/dist/esm/v2/components/or-inline-input-v3/index.js +5 -5
- package/dist/esm/v2/components/or-inline-textarea-v3/index.js +5 -5
- package/dist/esm/v2/components/or-input-box-v3/index.js +1 -1
- package/dist/esm/v2/components/or-input-v3/index.js +5 -5
- package/dist/esm/v2/components/or-loader-v3/OrLoader.stories3.d.ts +1 -11
- package/dist/esm/v2/components/or-loader-v3/OrLoader.vue.d.ts +0 -22
- package/dist/esm/v2/components/or-loader-v3/index.js +1 -1
- package/dist/esm/v2/components/or-menu-item-v3/index.js +2 -2
- package/dist/esm/v2/components/or-modal-v3/index.js +4 -4
- package/dist/esm/v2/components/or-notification-v3/index.js +4 -4
- package/dist/esm/v2/components/or-search-v3/index.js +6 -6
- package/dist/esm/v2/components/or-select-v3/index.js +9 -9
- package/dist/esm/v2/components/or-sort-header-v3/index.js +2 -2
- package/dist/esm/v2/components/or-switch-v3/index.js +2 -2
- package/dist/esm/v2/components/or-tabs-v3/index.js +3 -3
- package/dist/esm/v2/components/or-tag-v3/index.js +4 -4
- package/dist/esm/v2/components/or-textarea-v3/index.js +2 -2
- package/dist/esm/v2/components/or-toast-v3/index.js +5 -5
- package/dist/esm/v2/components/or-toast-v3/styles.d.ts +1 -0
- package/dist/esm/v2/components/or-tooltip-v3/index.js +1 -1
- package/dist/esm/v2/index.js +26 -26
- package/dist/esm/v2/{types-87ded1fd.js → types-02242929.js} +65 -38
- package/dist/esm/v3/{OrButton-9021f9c8.js → OrButton-a6db36d5.js} +7 -7
- package/dist/esm/v3/{OrCardCollection-34aa611e.js → OrCardCollection-b596ccb7.js} +6 -6
- package/dist/esm/v3/{OrConfirm-b090a158.js → OrConfirm-09abc464.js} +2 -2
- package/dist/esm/v3/{OrErrorTag-bbfd3ca6.js → OrErrorTag-b742054e.js} +13 -9
- package/dist/esm/v3/{OrExpansionPanel-65afdfad.js → OrExpansionPanel-5f3934f2.js} +1 -1
- package/dist/esm/v3/{OrFab-3a3a9a38.js → OrFab-554d3479.js} +6 -6
- package/dist/esm/v3/{OrIcon-e2fa4cf8.js → OrIcon-b195169c.js} +6 -8
- package/dist/esm/v3/{OrIconButton-1d78453b.js → OrIconButton-6ebbae84.js} +17 -11
- package/dist/esm/v3/{OrInlineInput-0beabb4a.js → OrInlineInput-98eabd25.js} +8 -8
- package/dist/esm/v3/{OrInlineInputBox-1b473796.js → OrInlineInputBox-8049f95a.js} +6 -4
- package/dist/esm/v3/{OrInlineTextarea-d33a09a2.js → OrInlineTextarea-bc9bdf2a.js} +8 -8
- package/dist/esm/v3/{OrInput-5672f47b.js → OrInput-ad6a1e4a.js} +6 -6
- package/dist/esm/v3/{OrInputBox-634230b1.js → OrInputBox-5247ab25.js} +6 -4
- package/dist/esm/v3/{OrLoader-35e5dfaf.js → OrLoader-60943812.js} +15 -31
- package/dist/esm/v3/{OrMenuItem-d001f0f6.js → OrMenuItem-2de012a9.js} +1 -1
- package/dist/esm/v3/{OrModal-e44b80fd.js → OrModal-cbe0f0a0.js} +1 -1
- package/dist/esm/v3/{OrNotification-7d05b546.js → OrNotification-e021b385.js} +2 -2
- package/dist/esm/v3/{OrSearch-2912b7df.js → OrSearch-3ee960ac.js} +2 -2
- package/dist/esm/v3/{OrSelect-ff8f8461.js → OrSelect-66e0072e.js} +19 -14
- package/dist/esm/v3/{OrSortHeader-9d645226.js → OrSortHeader-57c72d1b.js} +1 -1
- package/dist/esm/v3/{OrSwitch-5415978d.js → OrSwitch-ec454b76.js} +1 -1
- package/dist/esm/v3/{OrTabs-6a8fa516.js → OrTabs-f55dc4d8.js} +2 -2
- package/dist/esm/v3/{OrTag-ad3f7805.js → OrTag-6d9c0878.js} +14 -10
- package/dist/esm/v3/{OrTextarea-98895b2a.js → OrTextarea-4749f8d8.js} +3 -3
- package/dist/esm/v3/{OrTooltip-6412166a.js → OrTooltip-a3565cab.js} +14 -12
- package/dist/esm/v3/components/index.js +26 -26
- package/dist/esm/v3/components/or-button-v3/index.js +2 -2
- package/dist/esm/v3/components/or-card-collection-v3/index.js +7 -7
- package/dist/esm/v3/components/or-confirm-v3/index.js +8 -8
- package/dist/esm/v3/components/or-error-tag-v3/index.js +2 -2
- package/dist/esm/v3/components/or-expansion-panel-v3/index.js +2 -2
- package/dist/esm/v3/components/or-fab-v3/index.js +2 -2
- package/dist/esm/v3/components/or-icon-button-v3/OrIconButton.vue.d.ts +16 -13
- package/dist/esm/v3/components/or-icon-button-v3/index.js +4 -4
- package/dist/esm/v3/components/or-icon-button-v3/props.d.ts +1 -0
- package/dist/esm/v3/components/or-icon-v3/index.js +1 -1
- package/dist/esm/v3/components/or-inline-input-box-v3/index.js +1 -1
- package/dist/esm/v3/components/or-inline-input-v3/index.js +5 -5
- package/dist/esm/v3/components/or-inline-textarea-v3/index.js +5 -5
- package/dist/esm/v3/components/or-input-box-v3/index.js +1 -1
- package/dist/esm/v3/components/or-input-v3/index.js +5 -5
- package/dist/esm/v3/components/or-loader-v3/OrLoader.stories3.d.ts +1 -11
- package/dist/esm/v3/components/or-loader-v3/OrLoader.vue.d.ts +0 -22
- package/dist/esm/v3/components/or-loader-v3/index.js +1 -1
- package/dist/esm/v3/components/or-menu-item-v3/index.js +2 -2
- package/dist/esm/v3/components/or-modal-v3/index.js +4 -4
- package/dist/esm/v3/components/or-notification-v3/index.js +4 -4
- package/dist/esm/v3/components/or-search-v3/index.js +6 -6
- package/dist/esm/v3/components/or-select-v3/index.js +9 -9
- package/dist/esm/v3/components/or-sort-header-v3/index.js +2 -2
- package/dist/esm/v3/components/or-switch-v3/index.js +2 -2
- package/dist/esm/v3/components/or-tabs-v3/index.js +3 -3
- package/dist/esm/v3/components/or-tag-v3/index.js +4 -4
- package/dist/esm/v3/components/or-textarea-v3/index.js +2 -2
- package/dist/esm/v3/components/or-toast-v3/index.js +5 -5
- package/dist/esm/v3/components/or-toast-v3/styles.d.ts +1 -0
- package/dist/esm/v3/components/or-tooltip-v3/index.js +1 -1
- package/dist/esm/v3/index.js +26 -26
- package/dist/esm/v3/{types-977d9680.js → types-a3281292.js} +60 -30
- package/package.json +2 -2
- package/src/components/or-button-v3/styles.ts +9 -8
- package/src/components/or-card-collection-v3/styles.ts +3 -7
- package/src/components/or-error-tag-v3/OrErrorTag.vue +6 -5
- package/src/components/or-error-tag-v3/styles.ts +7 -6
- package/src/components/or-fab-v3/styles.ts +7 -9
- package/src/components/or-icon-button-v3/OrIconButton.stories3.ts +6 -1
- package/src/components/or-icon-button-v3/OrIconButton.vue +9 -3
- package/src/components/or-icon-button-v3/props.ts +2 -0
- package/src/components/or-icon-button-v3/styles.ts +9 -5
- package/src/components/or-icon-v3/styles.ts +8 -13
- package/src/components/or-inline-input-box-v3/styles.ts +5 -4
- package/src/components/or-inline-input-v3/OrInlineInput.vue +1 -1
- package/src/components/or-inline-input-v3/styles.ts +5 -7
- package/src/components/or-inline-textarea-v3/OrInlineTextarea.vue +1 -1
- package/src/components/or-inline-textarea-v3/styles.ts +5 -7
- package/src/components/or-input-box-v3/styles.ts +5 -4
- package/src/components/or-input-v3/OrInput.vue +1 -1
- package/src/components/or-input-v3/styles.ts +2 -3
- package/src/components/or-loader-v3/OrLoader.docs.mdx +1 -3
- package/src/components/or-loader-v3/OrLoader.stories3.ts +1 -21
- package/src/components/or-loader-v3/OrLoader.vue +0 -20
- package/src/components/or-loader-v3/styles.ts +0 -3
- package/src/components/or-select-v3/OrSelect.vue +6 -4
- package/src/components/or-select-v3/styles.ts +7 -8
- package/src/components/or-tag-v3/OrTag.vue +8 -7
- package/src/components/or-tag-v3/styles.ts +7 -6
- package/src/components/or-textarea-v3/styles.ts +2 -3
- package/src/components/or-toast-v3/OrToast.vue +27 -26
- package/src/components/or-toast-v3/styles.ts +42 -15
- package/src/components/or-tooltip-v3/styles.ts +14 -12
- package/dist/bundled/v3/OrLoader-c51c2f43.js +0 -64
|
@@ -2,7 +2,7 @@ import { action } from '@storybook/addon-actions';
|
|
|
2
2
|
import { Meta, StoryFn } from '@storybook/vue3';
|
|
3
3
|
import OrIconButtonDocs from './OrIconButton.docs.mdx';
|
|
4
4
|
import OrIconButton from './OrIconButton.vue';
|
|
5
|
-
import { IconButtonColor } from './props';
|
|
5
|
+
import { IconButtonColor, IconButtonSize } from './props';
|
|
6
6
|
|
|
7
7
|
export default {
|
|
8
8
|
title: 'Components/Buttons/Icon Button',
|
|
@@ -19,6 +19,11 @@ export default {
|
|
|
19
19
|
options: Object.values(IconButtonColor),
|
|
20
20
|
},
|
|
21
21
|
|
|
22
|
+
size: {
|
|
23
|
+
control: { type: 'select' },
|
|
24
|
+
options: Object.values(IconButtonSize),
|
|
25
|
+
},
|
|
26
|
+
|
|
22
27
|
disabled: {
|
|
23
28
|
control: { type: 'boolean' },
|
|
24
29
|
},
|
|
@@ -11,8 +11,9 @@
|
|
|
11
11
|
@blur="$emit('blur', $event)"
|
|
12
12
|
>
|
|
13
13
|
<OrIcon
|
|
14
|
+
:icon="icon"
|
|
14
15
|
:variant="'inherit'"
|
|
15
|
-
|
|
16
|
+
:size="size"
|
|
16
17
|
/>
|
|
17
18
|
</button>
|
|
18
19
|
</OrTooltip>
|
|
@@ -23,7 +24,7 @@ import { computed, defineComponent, PropType, ref } from 'vue-demi';
|
|
|
23
24
|
import { useClassAttribute } from '../../hooks';
|
|
24
25
|
import { OrIconV3 as OrIcon } from '../or-icon-v3';
|
|
25
26
|
import { OrTooltipV3 as OrTooltip } from '../or-tooltip-v3';
|
|
26
|
-
import { IconButtonColor } from './props';
|
|
27
|
+
import { IconButtonColor, IconButtonSize } from './props';
|
|
27
28
|
import { IconButtonRoot, IconButtonRootColors } from './styles';
|
|
28
29
|
|
|
29
30
|
export default defineComponent({
|
|
@@ -38,7 +39,7 @@ export default defineComponent({
|
|
|
38
39
|
|
|
39
40
|
props: {
|
|
40
41
|
icon: {
|
|
41
|
-
type:
|
|
42
|
+
type: String,
|
|
42
43
|
required: true,
|
|
43
44
|
},
|
|
44
45
|
|
|
@@ -47,6 +48,11 @@ export default defineComponent({
|
|
|
47
48
|
default: IconButtonColor.Inherit,
|
|
48
49
|
},
|
|
49
50
|
|
|
51
|
+
size: {
|
|
52
|
+
type: String as PropType<IconButtonSize>,
|
|
53
|
+
default: IconButtonSize.M,
|
|
54
|
+
},
|
|
55
|
+
|
|
50
56
|
disabled: {
|
|
51
57
|
type: Boolean,
|
|
52
58
|
default: false,
|
|
@@ -2,14 +2,18 @@ import { IconButtonColor } from './props';
|
|
|
2
2
|
|
|
3
3
|
export const IconButtonRoot: string[] = [
|
|
4
4
|
// Layout
|
|
5
|
-
'
|
|
6
|
-
'items-center',
|
|
7
|
-
'justify-center',
|
|
5
|
+
'layout-inline-row justify-center',
|
|
8
6
|
|
|
9
|
-
//
|
|
10
|
-
'max-w-max',
|
|
7
|
+
// Shape
|
|
11
8
|
'rounded-full',
|
|
12
9
|
|
|
10
|
+
// Spacing
|
|
11
|
+
'mx-[-2px]',
|
|
12
|
+
'my-[-2px]',
|
|
13
|
+
|
|
14
|
+
'px-[2px]',
|
|
15
|
+
'py-[2px]',
|
|
16
|
+
|
|
13
17
|
// Interactivity
|
|
14
18
|
'interactivity-auto',
|
|
15
19
|
|
|
@@ -2,12 +2,7 @@ import { IconSize, IconVariant } from './props';
|
|
|
2
2
|
|
|
3
3
|
export const IconRoot: string[] = [
|
|
4
4
|
// Layout
|
|
5
|
-
'inline-
|
|
6
|
-
'items-center',
|
|
7
|
-
'justify-center',
|
|
8
|
-
|
|
9
|
-
// Typography
|
|
10
|
-
'align-bottom',
|
|
5
|
+
'layout-inline-row justify-center',
|
|
11
6
|
];
|
|
12
7
|
|
|
13
8
|
export const IconRootVariants: Record<IconVariant, string[]> = {
|
|
@@ -40,17 +35,17 @@ export const IconRootVariants: Record<IconVariant, string[]> = {
|
|
|
40
35
|
export const IconRootSizes: Record<IconSize, string[]> = {
|
|
41
36
|
'xl': [
|
|
42
37
|
// Box
|
|
43
|
-
'w-[
|
|
44
|
-
'h-[
|
|
38
|
+
'w-[28px] md:w-[24px]',
|
|
39
|
+
'h-[28px] md:h-[24px]',
|
|
45
40
|
|
|
46
41
|
// Typography
|
|
47
|
-
'text-[
|
|
42
|
+
'text-[28px] md:text-[24px]',
|
|
48
43
|
],
|
|
49
44
|
|
|
50
45
|
'l': [
|
|
51
46
|
// Box
|
|
52
|
-
'w-[
|
|
53
|
-
'h-[
|
|
47
|
+
'w-[24px] md:w-[20px]',
|
|
48
|
+
'h-[24px] md:h-[20px]',
|
|
54
49
|
|
|
55
50
|
// Typography
|
|
56
51
|
'text-[24px] md:text-[20px]',
|
|
@@ -58,8 +53,8 @@ export const IconRootSizes: Record<IconSize, string[]> = {
|
|
|
58
53
|
|
|
59
54
|
'm': [
|
|
60
55
|
// Box
|
|
61
|
-
'w-[
|
|
62
|
-
'h-[
|
|
56
|
+
'w-[20px] md:w-[16px]',
|
|
57
|
+
'h-[20px] md:h-[16px]',
|
|
63
58
|
|
|
64
59
|
// Typography
|
|
65
60
|
'text-[20px] md:text-[16px]',
|
|
@@ -2,11 +2,12 @@ import { InlineInputBoxSize } from './props';
|
|
|
2
2
|
|
|
3
3
|
export const InlineInputBoxRoot: string[] = [
|
|
4
4
|
// Layout
|
|
5
|
-
'
|
|
6
|
-
'items-center',
|
|
5
|
+
'layout-row',
|
|
7
6
|
|
|
8
7
|
// Box
|
|
9
8
|
'w-full',
|
|
9
|
+
|
|
10
|
+
// Shape
|
|
10
11
|
'rounded-sm',
|
|
11
12
|
|
|
12
13
|
// Theme
|
|
@@ -66,7 +67,7 @@ export const InlineInputBoxRoot: string[] = [
|
|
|
66
67
|
|
|
67
68
|
export const InlineInputBoxRootSizes: Record<InlineInputBoxSize, string[]> = {
|
|
68
69
|
'm': [
|
|
69
|
-
//
|
|
70
|
+
// Spacing
|
|
70
71
|
'activated:children:px-sm',
|
|
71
72
|
'children:py-xs',
|
|
72
73
|
|
|
@@ -77,7 +78,7 @@ export const InlineInputBoxRootSizes: Record<InlineInputBoxSize, string[]> = {
|
|
|
77
78
|
],
|
|
78
79
|
|
|
79
80
|
's': [
|
|
80
|
-
//
|
|
81
|
+
// Spacing
|
|
81
82
|
'activated:children:px-sm',
|
|
82
83
|
'children:py-none',
|
|
83
84
|
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
export const InlineInputRoot: string[] = [
|
|
2
2
|
// Layout
|
|
3
|
-
'
|
|
4
|
-
'flex-col',
|
|
3
|
+
'layout-column',
|
|
5
4
|
|
|
6
|
-
//
|
|
5
|
+
// Spacing
|
|
7
6
|
'gap-xs',
|
|
8
7
|
];
|
|
9
8
|
|
|
@@ -21,11 +20,10 @@ export const InlineInputControl: string[] = [
|
|
|
21
20
|
|
|
22
21
|
export const InlineInputAction: string[] = [
|
|
23
22
|
// Layout
|
|
24
|
-
'
|
|
25
|
-
'items-center',
|
|
23
|
+
'layout-inline-row',
|
|
26
24
|
|
|
27
|
-
//
|
|
28
|
-
'gap-
|
|
25
|
+
// Spacing
|
|
26
|
+
'gap-md',
|
|
29
27
|
|
|
30
28
|
// Theme
|
|
31
29
|
'theme-foreground-outline',
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
export const InlineTextareaRoot: string[] = [
|
|
2
2
|
// Layout
|
|
3
|
-
'
|
|
4
|
-
'flex-col',
|
|
3
|
+
'layout-column',
|
|
5
4
|
|
|
6
|
-
//
|
|
5
|
+
// Spacing
|
|
7
6
|
'gap-xs',
|
|
8
7
|
];
|
|
9
8
|
|
|
@@ -21,11 +20,10 @@ export const InlineTextareaControl: string[] = [
|
|
|
21
20
|
|
|
22
21
|
export const InlineTextareaAction: string[] = [
|
|
23
22
|
// Layout
|
|
24
|
-
'
|
|
25
|
-
'items-center',
|
|
23
|
+
'layout-inline-row',
|
|
26
24
|
|
|
27
|
-
//
|
|
28
|
-
'gap-
|
|
25
|
+
// Spacing
|
|
26
|
+
'gap-md',
|
|
29
27
|
|
|
30
28
|
// Theme
|
|
31
29
|
'theme-foreground-outline',
|
|
@@ -2,11 +2,12 @@ import { InputBoxSize, InputBoxVariant } from './props';
|
|
|
2
2
|
|
|
3
3
|
export const InputBoxRoot: string[] = [
|
|
4
4
|
// Layout
|
|
5
|
-
'
|
|
6
|
-
'items-center',
|
|
5
|
+
'layout-row',
|
|
7
6
|
|
|
8
7
|
// Box
|
|
9
8
|
'w-full',
|
|
9
|
+
|
|
10
|
+
// Shape
|
|
10
11
|
'rounded-md',
|
|
11
12
|
|
|
12
13
|
// Theme (children)
|
|
@@ -91,7 +92,7 @@ export const InputBoxRootSizes: Record<InputBoxSize, string[]> = {
|
|
|
91
92
|
// Box
|
|
92
93
|
'children:min-h-[34px]',
|
|
93
94
|
|
|
94
|
-
//
|
|
95
|
+
// Spacing
|
|
95
96
|
'first-child:pl-md first-child:md:pl-sm+',
|
|
96
97
|
'last-child:pr-md last-child:md:pr-sm+',
|
|
97
98
|
'children:pt-[11px] children:md:pt-[7px]',
|
|
@@ -107,7 +108,7 @@ export const InputBoxRootSizes: Record<InputBoxSize, string[]> = {
|
|
|
107
108
|
// Box
|
|
108
109
|
'children:min-h-[30px]',
|
|
109
110
|
|
|
110
|
-
//
|
|
111
|
+
// Spacing
|
|
111
112
|
'first-child:pl-sm',
|
|
112
113
|
'last-child:pr-sm',
|
|
113
114
|
'children:py-[6px]',
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
@blur="$emit('blur', $event)"
|
|
42
42
|
>
|
|
43
43
|
|
|
44
|
-
<div :class="['-
|
|
44
|
+
<div :class="['flex', 'items-center', 'm-[-4px] md:m-[-2px]']">
|
|
45
45
|
<template v-if="type === 'password'">
|
|
46
46
|
<OrIconButton
|
|
47
47
|
:icon="{ icon: disclosed ? 'visibility_off' : 'visibility', variant: 'filled' }"
|
|
@@ -9,6 +9,4 @@ import { OrLoaderV3 as OrLoader } from '@onereach/ui-components';
|
|
|
9
9
|
## Migration Guide from V1
|
|
10
10
|
- added properties `color` and `size`
|
|
11
11
|
- property `type` renamed to `variant`
|
|
12
|
-
-
|
|
13
|
-
- property `linearDescription` renamed to `description`
|
|
14
|
-
- removed properties: `textTypeLabel`
|
|
12
|
+
- removed properties `linearTitle`, `linearDescription`, and `textTypeLabel`
|
|
@@ -23,14 +23,6 @@ export default {
|
|
|
23
23
|
control: { type: 'select' },
|
|
24
24
|
options: Object.values(LoaderSize),
|
|
25
25
|
},
|
|
26
|
-
|
|
27
|
-
title: {
|
|
28
|
-
control: { type: 'string' },
|
|
29
|
-
},
|
|
30
|
-
|
|
31
|
-
description: {
|
|
32
|
-
control: { type: 'string' },
|
|
33
|
-
},
|
|
34
26
|
},
|
|
35
27
|
|
|
36
28
|
parameters: {
|
|
@@ -59,16 +51,4 @@ const Template: StoryFn<typeof OrLoader> = (args) => ({
|
|
|
59
51
|
template: '<OrLoader v-bind="args" />',
|
|
60
52
|
});
|
|
61
53
|
|
|
62
|
-
export const
|
|
63
|
-
|
|
64
|
-
export const Linear = Template.bind({});
|
|
65
|
-
Linear.args = {
|
|
66
|
-
variant: 'linear',
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
export const LinearWithText = Template.bind({});
|
|
70
|
-
LinearWithText.args = {
|
|
71
|
-
title: 'Loading',
|
|
72
|
-
variant: 'linear',
|
|
73
|
-
description: 'Promptly retrieving your data from the cloud',
|
|
74
|
-
};
|
|
54
|
+
export const Loader = Template.bind({});
|
|
@@ -4,11 +4,6 @@
|
|
|
4
4
|
v-bind="$attrs"
|
|
5
5
|
:class="rootStyles"
|
|
6
6
|
>
|
|
7
|
-
<template v-if="title">
|
|
8
|
-
<div class="typography-headline-2 text-center text-on-background dark:text-on-background-dark">
|
|
9
|
-
{{ title }}
|
|
10
|
-
</div>
|
|
11
|
-
</template>
|
|
12
7
|
<template v-if="variant === 'circular'">
|
|
13
8
|
<svg
|
|
14
9
|
viewBox="0 0 16 16"
|
|
@@ -72,11 +67,6 @@
|
|
|
72
67
|
</g>
|
|
73
68
|
</svg>
|
|
74
69
|
</template>
|
|
75
|
-
<template v-if="description">
|
|
76
|
-
<div class="typography-body-2-regular text-center text-outline dark:text-outline-dark">
|
|
77
|
-
{{ description }}
|
|
78
|
-
</div>
|
|
79
|
-
</template>
|
|
80
70
|
</div>
|
|
81
71
|
</template>
|
|
82
72
|
|
|
@@ -106,16 +96,6 @@ export default defineComponent({
|
|
|
106
96
|
type: String as PropType<LoaderSize>,
|
|
107
97
|
default: LoaderSize.M,
|
|
108
98
|
},
|
|
109
|
-
|
|
110
|
-
title: {
|
|
111
|
-
type: String,
|
|
112
|
-
default: undefined,
|
|
113
|
-
},
|
|
114
|
-
|
|
115
|
-
description: {
|
|
116
|
-
type: String,
|
|
117
|
-
default: undefined,
|
|
118
|
-
},
|
|
119
99
|
},
|
|
120
100
|
|
|
121
101
|
expose: [
|
|
@@ -74,10 +74,12 @@
|
|
|
74
74
|
+{{ outerItems.length }}
|
|
75
75
|
</template>
|
|
76
76
|
|
|
77
|
-
<
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
77
|
+
<div :class="['flex', 'items-center', 'm-[-4px] md:m-[-2px]']">
|
|
78
|
+
<OrIcon
|
|
79
|
+
:icon="popoverState === 'open' ? 'arrow_drop_up' : 'arrow_drop_down'"
|
|
80
|
+
:variant="'outlined'"
|
|
81
|
+
/>
|
|
82
|
+
</div>
|
|
81
83
|
|
|
82
84
|
<OrPopover
|
|
83
85
|
ref="popover"
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
export const SelectRoot: string[] = [
|
|
2
2
|
// Layout
|
|
3
|
-
'
|
|
4
|
-
'flex-col',
|
|
3
|
+
'layout-column',
|
|
5
4
|
|
|
6
|
-
//
|
|
5
|
+
// Spacing
|
|
7
6
|
'gap-xs',
|
|
8
7
|
];
|
|
9
8
|
|
|
@@ -14,7 +13,7 @@ export const SelectControl: string[] = [
|
|
|
14
13
|
|
|
15
14
|
'overflow-hidden',
|
|
16
15
|
|
|
17
|
-
//
|
|
16
|
+
// Spacing
|
|
18
17
|
'gap-xs',
|
|
19
18
|
|
|
20
19
|
// Typography
|
|
@@ -33,6 +32,8 @@ export const SelectDropdown: string[] = [
|
|
|
33
32
|
|
|
34
33
|
// Box
|
|
35
34
|
'max-h-[340px]',
|
|
35
|
+
|
|
36
|
+
// Shape
|
|
36
37
|
'rounded-b-md',
|
|
37
38
|
|
|
38
39
|
// Theme
|
|
@@ -47,11 +48,9 @@ export const SelectDropdown: string[] = [
|
|
|
47
48
|
|
|
48
49
|
export const SelectNoSearchResults: string[] = [
|
|
49
50
|
// Layout
|
|
50
|
-
'
|
|
51
|
-
'items-center',
|
|
52
|
-
'justify-center',
|
|
51
|
+
'layout-row justify-center',
|
|
53
52
|
|
|
54
|
-
//
|
|
53
|
+
// Spacing
|
|
55
54
|
'px-md',
|
|
56
55
|
'py-md',
|
|
57
56
|
|
|
@@ -12,13 +12,14 @@
|
|
|
12
12
|
<slot />
|
|
13
13
|
|
|
14
14
|
<template v-if="variant === 'reset'">
|
|
15
|
-
<
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
15
|
+
<div :class="['flex', 'items-center', 'm-[-4px] md:m-[-2px]']">
|
|
16
|
+
<OrIconButton
|
|
17
|
+
:icon="'close'"
|
|
18
|
+
:color="!custom ? color : 'inherit'"
|
|
19
|
+
:disabled="disabled"
|
|
20
|
+
@click.stop="$emit('reset')"
|
|
21
|
+
/>
|
|
22
|
+
</div>
|
|
22
23
|
</template>
|
|
23
24
|
</div>
|
|
24
25
|
</template>
|
|
@@ -2,18 +2,19 @@ import { TagColor, TagVariant } from './props';
|
|
|
2
2
|
|
|
3
3
|
export const TagRoot: string[] = [
|
|
4
4
|
// Layout
|
|
5
|
-
'
|
|
6
|
-
'items-center',
|
|
7
|
-
'justify-center',
|
|
5
|
+
'layout-inline-row',
|
|
8
6
|
|
|
9
7
|
// Box
|
|
10
|
-
'
|
|
8
|
+
'w-min',
|
|
9
|
+
|
|
10
|
+
// Shape
|
|
11
11
|
'rounded-full',
|
|
12
12
|
|
|
13
|
-
//
|
|
13
|
+
// Spacing
|
|
14
14
|
'px-sm+ md:px-sm',
|
|
15
15
|
'py-sm md:py-xs',
|
|
16
|
-
|
|
16
|
+
|
|
17
|
+
'gap-sm+ md:gap-sm',
|
|
17
18
|
|
|
18
19
|
// Typography
|
|
19
20
|
'typography-caption-regular',
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
:size="'s'"
|
|
16
16
|
/>
|
|
17
17
|
</div>
|
|
18
|
+
|
|
18
19
|
<img
|
|
19
20
|
v-else-if="emojiSrc"
|
|
20
21
|
:class="toastIconStyle"
|
|
@@ -28,41 +29,42 @@
|
|
|
28
29
|
:class="messageStyle"
|
|
29
30
|
v-html="messageText"
|
|
30
31
|
/>
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
<!-- link -->
|
|
34
|
-
<a
|
|
35
|
-
v-if="link"
|
|
36
|
-
class="or-toast__link"
|
|
37
|
-
:href="link.href"
|
|
38
|
-
:target="hrefTarget"
|
|
39
|
-
@click="onLinkClick"
|
|
40
|
-
>
|
|
41
|
-
{{ link.title }}
|
|
42
|
-
</a>
|
|
43
32
|
</slot>
|
|
44
33
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
34
|
+
<template :class="['flex', 'items-center', 'self-start', 'gap-md']">
|
|
35
|
+
<template v-if="link">
|
|
36
|
+
<a
|
|
37
|
+
class="or-toast__link"
|
|
38
|
+
:href="link.href"
|
|
39
|
+
:target="hrefTarget"
|
|
40
|
+
@click="onLinkClick"
|
|
41
|
+
>
|
|
42
|
+
{{ link.title }}
|
|
43
|
+
</a>
|
|
44
|
+
</template>
|
|
45
|
+
|
|
46
|
+
<template v-if="dismissible">
|
|
47
|
+
<div :class="actionButtonStyle">
|
|
48
|
+
<OrIconButton
|
|
49
|
+
icon="close"
|
|
50
|
+
class="dark:theme-foreground-inherit"
|
|
51
|
+
@click.stop="onClose()"
|
|
52
|
+
/>
|
|
53
|
+
</div>
|
|
54
|
+
</template>
|
|
55
|
+
</template>
|
|
54
56
|
</div>
|
|
55
57
|
</template>
|
|
56
58
|
|
|
57
59
|
<script lang="ts">
|
|
58
60
|
import { computed, defineComponent, PropType, ref } from 'vue-demi';
|
|
61
|
+
import errorPng from '../../assets/error.png';
|
|
62
|
+
import successPng from '../../assets/success.png';
|
|
59
63
|
import { OrIconButtonV3 as OrIconButton } from '../or-icon-button-v3';
|
|
60
64
|
import { OrLoaderV3 as OrLoader } from '../or-loader-v3';
|
|
61
65
|
import { ToastType } from './props';
|
|
62
|
-
import { messageStyleVariant, ToastRoot } from './styles';
|
|
66
|
+
import { messageStyleVariant, ToastActionButton, ToastRoot } from './styles';
|
|
63
67
|
import { ToastLink } from './types';
|
|
64
|
-
import successPng from '../../assets/success.png';
|
|
65
|
-
import errorPng from '../../assets/error.png';
|
|
66
68
|
|
|
67
69
|
export default defineComponent({
|
|
68
70
|
name: 'OrToast',
|
|
@@ -133,8 +135,7 @@ export default defineComponent({
|
|
|
133
135
|
]);
|
|
134
136
|
|
|
135
137
|
const actionButtonStyle = computed(() => [
|
|
136
|
-
|
|
137
|
-
'dark:text-outline',
|
|
138
|
+
...ToastActionButton,
|
|
138
139
|
]);
|
|
139
140
|
|
|
140
141
|
// State
|