@onereach/ui-components 2.68.0-beta.1987.0 → 2.68.0-beta.2001.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/{OrBottomSheet-04956f50.js → OrBottomSheet-7b5760dc.js} +1 -1
- package/dist/bundled/v2/{OrCardCollection-852db65c.js → OrCardCollection-95b8a8e0.js} +2 -2
- package/dist/bundled/v2/{OrCode-edc7a1f5.js → OrCode-0cd991a1.js} +1 -114
- package/dist/bundled/v2/{OrConfirm-c3736a7e.js → OrConfirm-22c7622d.js} +15 -2
- package/dist/bundled/v2/{OrIconButton-a046f34f.js → OrIconButton-2bf36347.js} +1 -1
- package/dist/bundled/v2/{OrInlineInput-fb1e1272.js → OrInlineInput-36077390.js} +1 -1
- package/dist/bundled/v2/{OrInlineTextarea-c6a26156.js → OrInlineTextarea-17b16ca8.js} +1 -1
- package/dist/bundled/v2/{OrInput-2e2c8270.js → OrInput-95fc5b53.js} +1 -1
- package/dist/bundled/v2/{OrMenu-e8c5d2e7.js → OrMenu-5ac06751.js} +1 -1
- package/dist/bundled/v2/{OrModal-de2364b3.js → OrModal-387348ca.js} +15 -2
- package/dist/bundled/v2/{OrNotification-ddef2348.js → OrNotification-1fa0b14e.js} +1 -1
- package/dist/bundled/v2/{OrOverlay-57ce6c73.js → OrOverlay-3c89d622.js} +1 -1
- package/dist/bundled/v2/{OrPopover-7a6c1cd4.js → OrPopover-2f48b854.js} +2 -2
- package/dist/bundled/v2/{OrSearch-691ecd1a.js → OrSearch-43daeb79.js} +1 -1
- package/dist/bundled/v2/{OrSelect-b3c60dbc.js → OrSelect-dff64667.js} +3 -3
- package/dist/bundled/v2/{OrTabs-edd7cde4.js → OrTabs-2d4e0d87.js} +1 -1
- package/dist/bundled/v2/{OrTag-76a86a27.js → OrTag-bc654163.js} +1 -1
- package/dist/bundled/v2/{OrTooltip-e97b3f3c.js → OrTooltip-d1764f37.js} +1 -1
- package/dist/bundled/v2/components/index.js +21 -20
- package/dist/bundled/v2/components/or-bottom-sheet-v3/index.js +3 -3
- package/dist/bundled/v2/components/or-card-collection-v3/index.js +8 -8
- package/dist/bundled/v2/components/or-code/index.js +2 -1
- package/dist/bundled/v2/components/or-confirm-v3/OrConfirm.stories3.d.ts +5 -0
- package/dist/bundled/v2/components/or-confirm-v3/OrConfirm.vue.d.ts +11 -0
- package/dist/bundled/v2/components/or-confirm-v3/index.js +8 -8
- package/dist/bundled/v2/components/or-icon-button-v3/index.js +6 -6
- package/dist/bundled/v2/components/or-inline-input-v3/index.js +7 -7
- package/dist/bundled/v2/components/or-inline-textarea-v3/index.js +7 -7
- package/dist/bundled/v2/components/or-input-v3/index.js +7 -7
- package/dist/bundled/v2/components/or-menu-v3/index.js +5 -5
- package/dist/bundled/v2/components/or-modal-v3/OrModal.stories3.d.ts +10 -0
- package/dist/bundled/v2/components/or-modal-v3/OrModal.vue.d.ts +11 -0
- package/dist/bundled/v2/components/or-modal-v3/index.js +7 -7
- package/dist/bundled/v2/components/or-notification-v3/index.js +7 -7
- package/dist/bundled/v2/components/or-overlay-v3/index.js +2 -2
- package/dist/bundled/v2/components/or-popover-v3/index.js +4 -4
- package/dist/bundled/v2/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.d.ts +12 -0
- package/dist/bundled/v2/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +149 -0
- package/dist/bundled/v2/components/or-rich-text-editor-v3/index.d.ts +1 -0
- package/dist/bundled/v2/components/or-rich-text-editor-v3/index.js +36840 -0
- package/dist/bundled/v2/components/or-rich-text-editor-v3/styles.d.ts +6 -0
- package/dist/bundled/v2/components/or-search-v3/index.js +8 -8
- package/dist/bundled/v2/components/or-select-v3/index.js +9 -9
- package/dist/bundled/v2/components/or-tabs-v3/index.js +6 -6
- package/dist/bundled/v2/components/or-tag-v3/index.js +7 -7
- package/dist/bundled/v2/components/or-toast-v3/index.js +7 -7
- package/dist/bundled/v2/components/or-tooltip-v3/index.js +5 -5
- package/dist/bundled/v2/hooks/index.js +1 -1
- package/dist/bundled/v2/index.es-3f39f316.js +115 -0
- package/dist/bundled/v2/index.js +22 -21
- package/dist/bundled/v2/{types-9c0f214b.js → types-4c07bc42.js} +1 -1
- package/dist/bundled/v2/{useElevation-604d48c6.js → useElevation-aac032f4.js} +5 -1
- package/dist/bundled/v2/utils/isVisible.d.ts +2 -0
- package/dist/bundled/v3/{OrBottomSheet.vue_vue_type_script_lang-9b8931d3.js → OrBottomSheet.vue_vue_type_script_lang-44d8147a.js} +1 -1
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-955758d3.js → OrCardCollection.vue_vue_type_script_lang-412c8977.js} +4 -4
- package/dist/bundled/v3/{OrCode.vue_vue_type_script_lang-ef5e7f04.js → OrCode.vue_vue_type_script_lang-6c5f94a6.js} +1 -114
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-e59a7aca.js → OrConfirm.vue_vue_type_script_lang-20ffe5df.js} +17 -4
- package/dist/bundled/v3/{OrIconButton-c521fef8.js → OrIconButton-00ab6c2d.js} +1 -1
- package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-a834417f.js → OrIconButton.vue_vue_type_script_lang-b35040f9.js} +1 -1
- package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-c2a171bb.js → OrInlineInput.vue_vue_type_script_lang-e29642fc.js} +2 -2
- package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-76f1a0ee.js → OrInlineTextarea.vue_vue_type_script_lang-551028ef.js} +2 -2
- package/dist/bundled/v3/{OrInput-42bbab4d.js → OrInput-4b4b8316.js} +1 -1
- package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-d85ed216.js → OrInput.vue_vue_type_script_lang-b4176d70.js} +2 -2
- package/dist/bundled/v3/OrMenu-08aa60de.js +29 -0
- package/dist/bundled/v3/{OrMenu.vue_vue_type_script_lang-be8c502d.js → OrMenu.vue_vue_type_script_lang-bae45062.js} +2 -2
- package/dist/bundled/v3/{OrModal.vue_vue_type_script_lang-1ad15097.js → OrModal.vue_vue_type_script_lang-f3f5a84b.js} +17 -4
- package/dist/bundled/v3/{OrNotification.vue_vue_type_script_lang-3f69b727.js → OrNotification.vue_vue_type_script_lang-83bfbfc4.js} +2 -2
- package/dist/bundled/v3/{OrOverlay.vue_vue_type_script_lang-4551114e.js → OrOverlay.vue_vue_type_script_lang-cb3aad0c.js} +1 -1
- package/dist/bundled/v3/{OrPopover-18a195aa.js → OrPopover-93ef8c26.js} +1 -1
- package/dist/bundled/v3/{OrPopover.vue_vue_type_script_lang-1ed6063d.js → OrPopover.vue_vue_type_script_lang-e200f5be.js} +3 -3
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-d7c29ff6.js → OrSearch.vue_vue_type_script_lang-00db292e.js} +2 -2
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-12ad06b5.js → OrSelect.vue_vue_type_script_lang-d7449846.js} +5 -5
- package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-ec81a576.js → OrTabs.vue_vue_type_script_lang-2fdbd2f2.js} +10 -36
- package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-d7e117c8.js → OrTag.vue_vue_type_script_lang-6be84bb9.js} +2 -2
- package/dist/bundled/v3/{OrToastContainer-1c3ccf65.js → OrToastContainer-c09c94da.js} +1 -1
- package/dist/bundled/v3/{OrTooltip.vue_vue_type_script_lang-d89a9e51.js → OrTooltip.vue_vue_type_script_lang-a4168546.js} +2 -2
- package/dist/bundled/v3/components/index.js +25 -23
- package/dist/bundled/v3/components/or-bottom-sheet-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-card-collection-v3/index.js +11 -11
- package/dist/bundled/v3/components/or-code/index.js +2 -1
- package/dist/bundled/v3/components/or-confirm-v3/OrConfirm.stories3.d.ts +5 -0
- package/dist/bundled/v3/components/or-confirm-v3/OrConfirm.vue.d.ts +11 -0
- package/dist/bundled/v3/components/or-confirm-v3/index.js +11 -11
- package/dist/bundled/v3/components/or-icon-button-v3/index.js +7 -7
- package/dist/bundled/v3/components/or-inline-input-v3/index.js +9 -9
- package/dist/bundled/v3/components/or-inline-textarea-v3/index.js +9 -9
- package/dist/bundled/v3/components/or-input-v3/index.js +9 -9
- package/dist/bundled/v3/components/or-menu-v3/index.js +6 -6
- package/dist/bundled/v3/components/or-modal-v3/OrModal.stories3.d.ts +10 -0
- package/dist/bundled/v3/components/or-modal-v3/OrModal.vue.d.ts +11 -0
- package/dist/bundled/v3/components/or-modal-v3/index.js +9 -9
- package/dist/bundled/v3/components/or-notification-v3/index.js +9 -9
- package/dist/bundled/v3/components/or-overlay-v3/index.js +2 -2
- package/dist/bundled/v3/components/or-popover-v3/index.js +4 -4
- package/dist/bundled/v3/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.d.ts +12 -0
- package/dist/bundled/v3/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +149 -0
- package/dist/bundled/v3/components/or-rich-text-editor-v3/index.d.ts +1 -0
- package/dist/bundled/v3/components/or-rich-text-editor-v3/index.js +36811 -0
- package/dist/bundled/v3/components/or-rich-text-editor-v3/styles.d.ts +6 -0
- package/dist/bundled/v3/components/or-search-v3/index.js +11 -11
- package/dist/bundled/v3/components/or-select-v3/index.js +12 -12
- package/dist/bundled/v3/components/or-tabs-v3/index.js +8 -7
- package/dist/bundled/v3/components/or-tag-v3/index.js +9 -9
- package/dist/bundled/v3/components/or-toast-v3/index.js +10 -10
- package/dist/bundled/v3/components/or-tooltip-v3/index.js +6 -6
- package/dist/bundled/v3/hooks/index.js +1 -1
- package/dist/bundled/v3/index.es-3f39f316.js +115 -0
- package/dist/bundled/v3/index.js +37 -35
- package/dist/bundled/v3/{types-577637c4.js → types-bc0d88d7.js} +3 -3
- package/dist/bundled/v3/{useElevation-6aea372d.js → useElevation-c8d5d3ba.js} +5 -1
- package/dist/bundled/v3/utils/isVisible.d.ts +2 -0
- package/dist/esm/v2/{OrBottomSheet-f09adbbb.js → OrBottomSheet-5acd034f.js} +1 -1
- package/dist/esm/v2/{OrCardCollection-a3ddee38.js → OrCardCollection-799ab8bd.js} +2 -2
- package/dist/esm/v2/{OrConfirm-def2218a.js → OrConfirm-367ac968.js} +15 -2
- package/dist/esm/v2/{OrIconButton-bc8a8b2e.js → OrIconButton-a7764de4.js} +2 -2
- package/dist/esm/v2/{OrInlineInput-5c99926f.js → OrInlineInput-00fbe0a7.js} +1 -1
- package/dist/esm/v2/{OrInlineTextarea-a67f2376.js → OrInlineTextarea-b4740a94.js} +1 -1
- package/dist/esm/v2/{OrInput-b0619ac3.js → OrInput-946ef514.js} +1 -1
- package/dist/esm/v2/{OrMenu-8ca8233e.js → OrMenu-e7210edc.js} +1 -1
- package/dist/esm/v2/{OrModal-96fa7ba5.js → OrModal-5c92cdc8.js} +15 -2
- package/dist/esm/v2/{OrNotification-23f97c3d.js → OrNotification-9862ce5f.js} +1 -1
- package/dist/esm/v2/{OrOverlay-4838a9b0.js → OrOverlay-18ba2dc6.js} +1 -1
- package/dist/esm/v2/{OrPopover-ba3ddf1a.js → OrPopover-ef8c91f1.js} +2 -2
- package/dist/esm/v2/{OrSearch-37e43e3e.js → OrSearch-18bf00f3.js} +1 -1
- package/dist/esm/v2/{OrSelect-8bdaac4f.js → OrSelect-858c2f46.js} +3 -3
- package/dist/esm/v2/{OrTabs-0d8ffa3d.js → OrTabs-c64be432.js} +2 -2
- package/dist/esm/v2/{OrTag-f02ededa.js → OrTag-23631e25.js} +1 -1
- package/dist/esm/v2/{OrTooltip-2d423c46.js → OrTooltip-3454c2e6.js} +1 -1
- package/dist/esm/v2/components/index.js +19 -19
- package/dist/esm/v2/components/or-bottom-sheet-v3/index.js +3 -3
- package/dist/esm/v2/components/or-card-collection-v3/index.js +8 -8
- package/dist/esm/v2/components/or-confirm-v3/OrConfirm.stories3.d.ts +5 -0
- package/dist/esm/v2/components/or-confirm-v3/OrConfirm.vue.d.ts +11 -0
- package/dist/esm/v2/components/or-confirm-v3/index.js +8 -8
- package/dist/esm/v2/components/or-icon-button-v3/index.js +6 -6
- package/dist/esm/v2/components/or-inline-input-v3/index.js +7 -7
- package/dist/esm/v2/components/or-inline-textarea-v3/index.js +7 -7
- package/dist/esm/v2/components/or-input-v3/index.js +7 -7
- package/dist/esm/v2/components/or-menu-v3/index.js +5 -5
- package/dist/esm/v2/components/or-modal-v3/OrModal.stories3.d.ts +10 -0
- package/dist/esm/v2/components/or-modal-v3/OrModal.vue.d.ts +11 -0
- package/dist/esm/v2/components/or-modal-v3/index.js +7 -7
- package/dist/esm/v2/components/or-notification-v3/index.js +7 -7
- package/dist/esm/v2/components/or-overlay-v3/index.js +2 -2
- package/dist/esm/v2/components/or-popover-v3/index.js +4 -4
- package/dist/esm/v2/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.d.ts +12 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +149 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/index.d.ts +1 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/index.js +524 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/styles.d.ts +6 -0
- package/dist/esm/v2/components/or-search-v3/index.js +8 -8
- package/dist/esm/v2/components/or-select-v3/index.js +9 -9
- package/dist/esm/v2/components/or-tabs-v3/index.js +6 -6
- package/dist/esm/v2/components/or-tag-v3/index.js +7 -7
- package/dist/esm/v2/components/or-toast-v3/index.js +7 -7
- package/dist/esm/v2/components/or-tooltip-v3/index.js +5 -5
- package/dist/esm/v2/hooks/index.js +1 -1
- package/dist/esm/v2/index.js +19 -19
- package/dist/esm/v2/{types-d3101ac7.js → types-e2beb2b6.js} +1 -1
- package/dist/esm/{v3/useElevation-0e973238.js → v2/useElevation-31bfe1f6.js} +5 -1
- package/dist/esm/v2/utils/isVisible.d.ts +2 -0
- package/dist/esm/v3/{OrBottomSheet-9de57dd0.js → OrBottomSheet-0eb33b18.js} +1 -1
- package/dist/esm/v3/{OrCardCollection-1e3b3360.js → OrCardCollection-2d34eaaf.js} +2 -2
- package/dist/esm/v3/{OrConfirm-6645a8c2.js → OrConfirm-e6735cc8.js} +15 -2
- package/dist/esm/v3/{OrIconButton-6c0732ac.js → OrIconButton-85abafab.js} +2 -2
- package/dist/esm/v3/{OrInlineInput-4cd64402.js → OrInlineInput-299e2275.js} +1 -1
- package/dist/esm/v3/{OrInlineTextarea-93f80904.js → OrInlineTextarea-40ee5ffb.js} +1 -1
- package/dist/esm/v3/{OrInput-69f8dce1.js → OrInput-4f55c0eb.js} +1 -1
- package/dist/esm/v3/{OrMenu-00f7c4a8.js → OrMenu-d9e12030.js} +1 -1
- package/dist/esm/v3/{OrModal-88c56141.js → OrModal-420174c4.js} +15 -2
- package/dist/esm/v3/{OrNotification-d3d6f51d.js → OrNotification-54394fc8.js} +1 -1
- package/dist/esm/v3/{OrOverlay-27050c19.js → OrOverlay-738a44d5.js} +1 -1
- package/dist/esm/v3/{OrPopover-67000227.js → OrPopover-94a8f21d.js} +2 -2
- package/dist/esm/v3/{OrSearch-1b68ba58.js → OrSearch-d74891a5.js} +1 -1
- package/dist/esm/v3/{OrSelect-1fa435c6.js → OrSelect-b3a233cc.js} +3 -3
- package/dist/esm/v3/{OrTabs-a0590a70.js → OrTabs-6a8fa516.js} +2 -2
- package/dist/esm/v3/{OrTag-1202497c.js → OrTag-6c3717e0.js} +1 -1
- package/dist/esm/v3/{OrTooltip-32048f0e.js → OrTooltip-1500a1cd.js} +1 -1
- package/dist/esm/v3/components/index.js +19 -19
- package/dist/esm/v3/components/or-bottom-sheet-v3/index.js +3 -3
- package/dist/esm/v3/components/or-card-collection-v3/index.js +8 -8
- package/dist/esm/v3/components/or-confirm-v3/OrConfirm.stories3.d.ts +5 -0
- package/dist/esm/v3/components/or-confirm-v3/OrConfirm.vue.d.ts +11 -0
- package/dist/esm/v3/components/or-confirm-v3/index.js +8 -8
- package/dist/esm/v3/components/or-icon-button-v3/index.js +6 -6
- package/dist/esm/v3/components/or-inline-input-v3/index.js +7 -7
- package/dist/esm/v3/components/or-inline-textarea-v3/index.js +7 -7
- package/dist/esm/v3/components/or-input-v3/index.js +7 -7
- package/dist/esm/v3/components/or-menu-v3/index.js +5 -5
- package/dist/esm/v3/components/or-modal-v3/OrModal.stories3.d.ts +10 -0
- package/dist/esm/v3/components/or-modal-v3/OrModal.vue.d.ts +11 -0
- package/dist/esm/v3/components/or-modal-v3/index.js +7 -7
- package/dist/esm/v3/components/or-notification-v3/index.js +7 -7
- package/dist/esm/v3/components/or-overlay-v3/index.js +2 -2
- package/dist/esm/v3/components/or-popover-v3/index.js +4 -4
- package/dist/esm/v3/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.d.ts +12 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +149 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/index.d.ts +1 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/index.js +493 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/styles.d.ts +6 -0
- package/dist/esm/v3/components/or-search-v3/index.js +8 -8
- package/dist/esm/v3/components/or-select-v3/index.js +9 -9
- package/dist/esm/v3/components/or-tabs-v3/index.js +6 -6
- package/dist/esm/v3/components/or-tag-v3/index.js +7 -7
- package/dist/esm/v3/components/or-toast-v3/index.js +7 -7
- package/dist/esm/v3/components/or-tooltip-v3/index.js +5 -5
- package/dist/esm/v3/hooks/index.js +1 -1
- package/dist/esm/v3/index.js +19 -19
- package/dist/esm/v3/{types-90a49024.js → types-98a852d8.js} +1 -1
- package/dist/esm/{v2/useElevation-0e973238.js → v3/useElevation-31bfe1f6.js} +5 -1
- package/dist/esm/v3/utils/isVisible.d.ts +2 -0
- package/package.json +20 -2
- package/src/components/or-confirm-v3/OrConfirm.stories3.ts +60 -0
- package/src/components/or-confirm-v3/OrConfirm.vue +12 -0
- package/src/components/or-modal-v3/OrModal.docs.mdx +1 -1
- package/src/components/or-modal-v3/OrModal.stories3.ts +137 -0
- package/src/components/or-modal-v3/OrModal.vue +12 -0
- package/src/components/or-rich-text-editor-v3/OrRichTextEditor.docs.mdx +16 -0
- package/src/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.ts +62 -0
- package/src/components/or-rich-text-editor-v3/OrRichTextEditor.vue +520 -0
- package/src/components/or-rich-text-editor-v3/index.ts +1 -0
- package/src/components/or-rich-text-editor-v3/styles.ts +65 -0
- package/src/hooks/useElevation.ts +3 -1
- package/src/utils/isVisible.ts +5 -0
package/dist/esm/v3/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export { O as OR_AVATAR_SIZE, s as OrAvatar } from './OrAvatar-2808a314.js';
|
|
2
2
|
export { a as AvatarColor, A as AvatarSize, s as OrAvatarV3 } from './OrAvatar-ef88d31c.js';
|
|
3
|
-
export { s as OrBottomSheetV3 } from './OrBottomSheet-
|
|
3
|
+
export { s as OrBottomSheetV3 } from './OrBottomSheet-0eb33b18.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
6
|
export { a as ButtonColor, b as ButtonType, B as ButtonVariant, s as OrButtonV3 } from './OrButton-4d0c2edd.js';
|
|
7
7
|
export { s as OrCard } from './OrCard-e3a5aea4.js';
|
|
8
8
|
export { C as CARD_COLLECTION_LAYOUT, s as OrCardCollection } from './OrCardCollection-a5e326ef.js';
|
|
9
|
-
export { C as CardCollectionView, s as OrCardCollectionV3 } from './OrCardCollection-
|
|
9
|
+
export { C as CardCollectionView, s as OrCardCollectionV3 } from './OrCardCollection-2d34eaaf.js';
|
|
10
10
|
export { s as OrCardV3 } from './OrCard-b63658a8.js';
|
|
11
11
|
export { a as OrCarousel, s as OrCarouselItem } from './OrCarouselItem-636d99a1.js';
|
|
12
12
|
export { s as OrCheckbox } from './OrCheckbox-a0b957e7.js';
|
|
@@ -16,7 +16,7 @@ export { s as OrCode, O as OrCodeLanguages } from './OrCode-ee19a5e6.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
18
|
export { s as OrConfirm } from './OrConfirm-f39bd784.js';
|
|
19
|
-
export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-
|
|
19
|
+
export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-e6735cc8.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
22
|
export { s as OrErrorTagV3 } from './OrErrorTag-bbfd3ca6.js';
|
|
@@ -27,14 +27,14 @@ export { s as OrFloating, a as OrFloatingHideStrategy, O as OrFloatingPlacements
|
|
|
27
27
|
export { s as OrHint } from './OrHint-1414c530.js';
|
|
28
28
|
export { s as OrHintV3 } from './OrHint-73835593.js';
|
|
29
29
|
export { s as OrIcon, O as OrIconColors, a as OrIconType } from './OrIcon-669503c3.js';
|
|
30
|
-
export { I as IconButtonColor, s as OrIconButtonV3 } from './OrIconButton-
|
|
30
|
+
export { I as IconButtonColor, s as OrIconButtonV3 } from './OrIconButton-85abafab.js';
|
|
31
31
|
export { a as IconSize, I as IconVariant, s as OrIconV3 } from './OrIcon-e2fa4cf8.js';
|
|
32
32
|
export { I as InlineInputBoxSize, I as InlineInputSize, s as OrInlineInputBoxV3 } from './OrInlineInputBox-1b473796.js';
|
|
33
|
-
export { I as InlineInputType, s as OrInlineInputV3 } from './OrInlineInput-
|
|
33
|
+
export { I as InlineInputType, s as OrInlineInputV3 } from './OrInlineInput-299e2275.js';
|
|
34
34
|
export { a as InlineTextEditTrimmingTypes, I as InlineTextEditTypes, s as OrInlineTextEdit } from './OrInlineTextEdit-1aa477b5.js';
|
|
35
|
-
export { s as OrInlineTextareaV3 } from './OrInlineTextarea-
|
|
35
|
+
export { s as OrInlineTextareaV3 } from './OrInlineTextarea-40ee5ffb.js';
|
|
36
36
|
export { a as InputBoxSize, I as InputBoxVariant, a as InputSize, s as OrInputBoxV3, a as SearchSize, a as SelectSize, a as TextareaSize } from './OrInputBox-634230b1.js';
|
|
37
|
-
export { I as InputType, s as OrInputV3 } from './OrInput-
|
|
37
|
+
export { I as InputType, s as OrInputV3 } from './OrInput-4f55c0eb.js';
|
|
38
38
|
export { a as OrInput, b as OrNumberInput, c as OrPassword, d as OrSearch, s as OrTextarea } from './OrSearch-7cb2c91c.js';
|
|
39
39
|
export { s as OrLabel } from './OrLabel-876f8729.js';
|
|
40
40
|
export { L as LabelVariant, s as OrLabelV3 } from './OrLabel-7d4fe80b.js';
|
|
@@ -44,24 +44,24 @@ export { s as OrListOfInputs } from './OrListOfInputs-7a67440f.js';
|
|
|
44
44
|
export { L as LoaderViews, s as OrLoader } from './OrLoader-15174477.js';
|
|
45
45
|
export { a as LoaderColor, b as LoaderSize, L as LoaderVariant, s as OrLoaderV3 } from './OrLoader-60943812.js';
|
|
46
46
|
export { s as OrMenuItemV3 } from './OrMenuItem-d001f0f6.js';
|
|
47
|
-
export { s as OrMenuV3 } from './OrMenu-
|
|
48
|
-
export { P as MenuPlacement, s as OrPopoverV3, P as PopoverPlacement, a as PopoverVariant, P as TooltipPlacement } from './OrPopover-
|
|
47
|
+
export { s as OrMenuV3 } from './OrMenu-d9e12030.js';
|
|
48
|
+
export { P as MenuPlacement, s as OrPopoverV3, P as PopoverPlacement, a as PopoverVariant, P as TooltipPlacement } from './OrPopover-94a8f21d.js';
|
|
49
49
|
export { s as OrModal, O as OrModalSizes } from './OrModal-8b074b0c.js';
|
|
50
|
-
export { M as ModalSize, s as OrModalV3 } from './OrModal-
|
|
50
|
+
export { M as ModalSize, s as OrModalV3 } from './OrModal-420174c4.js';
|
|
51
51
|
export { a as OR_NOTIFICATION_SIZE, O as OR_NOTIFICATION_TYPE, s as OrNotification } from './OrNotification-e85a4956.js';
|
|
52
|
-
export { N as NotificationVariant, s as OrNotificationV3 } from './OrNotification-
|
|
52
|
+
export { N as NotificationVariant, s as OrNotificationV3 } from './OrNotification-54394fc8.js';
|
|
53
53
|
export { s as OrOverflowMenu } from './OrOverflowMenu-e82cbcbe.js';
|
|
54
54
|
export { s as OrOverlay } from './OrOverlay-451dce49.js';
|
|
55
|
-
export { s as OrOverlayV3 } from './OrOverlay-
|
|
55
|
+
export { s as OrOverlayV3 } from './OrOverlay-738a44d5.js';
|
|
56
56
|
export { s as OrProgress, O as OrProgressColors, a as OrProgressTypes } from './OrProgress-d0d52c86.js';
|
|
57
57
|
export { s as OrProgressV3, P as ProgressColor, a as ProgressType } from './OrProgress-407002e0.js';
|
|
58
58
|
export { s as OrRadio } from './OrRadio-c3ab11f2.js';
|
|
59
59
|
export { s as OrRadioGroup } from './OrRadioGroup-00785e41.js';
|
|
60
60
|
export { s as OrRadioV3 } from './OrRadio-0c1883f2.js';
|
|
61
|
-
export { s as OrSearchV3 } from './OrSearch-
|
|
61
|
+
export { s as OrSearchV3 } from './OrSearch-d74891a5.js';
|
|
62
62
|
export { s as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-2bbc0f22.js';
|
|
63
63
|
export { s as OrSelect } from './OrSelect-73690828.js';
|
|
64
|
-
export { s as OrSelectV3 } from './OrSelect-
|
|
64
|
+
export { s as OrSelectV3 } from './OrSelect-b3a233cc.js';
|
|
65
65
|
export { s as OrSidebar, O as OrSidebarSide } from './OrSidebar-375c85a3.js';
|
|
66
66
|
export { O as OrSidebarPlacement, s as OrSidebarV3 } from './OrSidebar-a62972f5.js';
|
|
67
67
|
export { s as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from './OrSkeletonText-2b1610ce.js';
|
|
@@ -75,9 +75,9 @@ export { s as OrTab } from './OrTab-bc98be02.js';
|
|
|
75
75
|
export { s as OrTabHeaderItem } from './OrTabHeaderItem-d668cc59.js';
|
|
76
76
|
export { s as OrTabV3 } from './OrTab-97044946.js';
|
|
77
77
|
export { s as OrTabs } from './OrTabs-d3812c11.js';
|
|
78
|
-
export { s as OrTabsV3, T as TabsVariant } from './OrTabs-
|
|
78
|
+
export { s as OrTabsV3, T as TabsVariant } from './OrTabs-6a8fa516.js';
|
|
79
79
|
export { s as OrTag } from './OrTag-1b5e43fa.js';
|
|
80
|
-
export { s as OrTagV3, a as TagColor, T as TagVariant } from './OrTag-
|
|
80
|
+
export { s as OrTagV3, a as TagColor, T as TagVariant } from './OrTag-6c3717e0.js';
|
|
81
81
|
export { s as OrTeleport } from './OrTeleportVue3-ad639f12.js';
|
|
82
82
|
export { s as OrTeleportV3 } from './OrTeleport.vue3-8099178c.js';
|
|
83
83
|
export { s as OrTextV3 } from './OrText-ecb46923.js';
|
|
@@ -85,13 +85,13 @@ export { s as OrTextareaV3 } from './OrTextarea-98895b2a.js';
|
|
|
85
85
|
export { s as OrTextbox, T as TextboxTypes } from './OrTextbox-2f33e9c3.js';
|
|
86
86
|
export { s as OrToast, a as OrToastContainer } from './OrToastContainer-40c4c1c8.js';
|
|
87
87
|
export { P as PositionsX, b as PositionsY, c as ToastType, T as TransitionType, a as useQueue, u as useToast } from './useToast-4fbe0e5a.js';
|
|
88
|
-
export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from './types-
|
|
88
|
+
export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from './types-98a852d8.js';
|
|
89
89
|
export { p as PropsV3, a as useQueueV3, u as useToastV3 } from './useToast-0665462d.js';
|
|
90
90
|
export { s as OrTooltip, a as OrTooltipContent } from './OrTooltip-78cd7f6b.js';
|
|
91
|
-
export { s as OrTooltipV3 } from './OrTooltip-
|
|
91
|
+
export { s as OrTooltipV3 } from './OrTooltip-1500a1cd.js';
|
|
92
92
|
export { D as DropdownClose, a as DropdownOpen } from './dropdown-open-0d314aa4.js';
|
|
93
93
|
export { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
|
|
94
|
-
export { u as useElevation } from './useElevation-
|
|
94
|
+
export { u as useElevation } from './useElevation-31bfe1f6.js';
|
|
95
95
|
export { u as useOverflow } from './useOverflow-ac506c65.js';
|
|
96
96
|
export { u as useResponsive } from './useResponsive-a02e95b7.js';
|
|
97
97
|
export { u as useToggle } from './useToggle-29e4d7c7.js';
|
|
@@ -2,7 +2,7 @@ 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-
|
|
5
|
+
import { s as script$2 } from './OrIconButton-85abafab.js';
|
|
6
6
|
import { s as script$3 } from './OrLoader-60943812.js';
|
|
7
7
|
import { resolveComponent, openBlock, createElementBlock, normalizeClass, renderSlot, createCommentVNode, createVNode, toDisplayString, createElementVNode, createBlock, withModifiers, withCtx, TransitionGroup, Fragment, renderList, mergeProps } from 'vue';
|
|
8
8
|
import { s as styleInject } from './style-inject.es-4c6f2515.js';
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { isRef, ref, watch } from 'vue-demi';
|
|
2
2
|
|
|
3
|
+
function isVisible(element) {
|
|
4
|
+
return !(element.offsetParent === null);
|
|
5
|
+
}
|
|
6
|
+
|
|
3
7
|
function useElevation(element) {
|
|
4
8
|
const elementRef = isRef(element) ? element : ref(element);
|
|
5
9
|
// Functions
|
|
6
10
|
function getPageElevations() {
|
|
7
|
-
return [...document.body.querySelectorAll('*')].map(element => getComputedStyle(element)).map(style => Number(style.zIndex)).filter(zIndex => !isNaN(zIndex));
|
|
11
|
+
return [...document.body.querySelectorAll('*')].filter(isVisible).map(element => getComputedStyle(element)).map(style => Number(style.zIndex)).filter(zIndex => !isNaN(zIndex));
|
|
8
12
|
}
|
|
9
13
|
function setElementElevation(element) {
|
|
10
14
|
element.style.zIndex = String(Math.max(0, ...getPageElevations()) + 1);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onereach/ui-components",
|
|
3
|
-
"version": "2.68.0-beta.
|
|
3
|
+
"version": "2.68.0-beta.2001.0",
|
|
4
4
|
"description": "Vue components library for v2/3",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/auto/index.js",
|
|
@@ -37,8 +37,23 @@
|
|
|
37
37
|
"@codemirror/lang-json": "6.0.0",
|
|
38
38
|
"@codemirror/lang-markdown": "6.0.1",
|
|
39
39
|
"@floating-ui/dom": "0.3.1",
|
|
40
|
-
"@onereach/styles": "^2.
|
|
40
|
+
"@onereach/styles": "^2.32.0",
|
|
41
41
|
"@splidejs/splide": "4.0.6",
|
|
42
|
+
"@tiptap/core": "2.0.0-beta.209",
|
|
43
|
+
"@tiptap/extension-bold": "2.0.0-beta.209",
|
|
44
|
+
"@tiptap/extension-bullet-list": "2.0.0-beta.209",
|
|
45
|
+
"@tiptap/extension-hard-break": "2.0.0-beta.209",
|
|
46
|
+
"@tiptap/extension-heading": "2.0.0-beta.209",
|
|
47
|
+
"@tiptap/extension-highlight": "2.0.0-beta.209",
|
|
48
|
+
"@tiptap/extension-italic": "2.0.0-beta.209",
|
|
49
|
+
"@tiptap/extension-link": "2.0.0-beta.209",
|
|
50
|
+
"@tiptap/extension-list-item": "2.0.0-beta.209",
|
|
51
|
+
"@tiptap/extension-ordered-list": "2.0.0-beta.209",
|
|
52
|
+
"@tiptap/extension-paragraph": "2.0.0-beta.209",
|
|
53
|
+
"@tiptap/extension-placeholder": "2.0.0-beta.209",
|
|
54
|
+
"@tiptap/extension-strike": "2.0.0-beta.209",
|
|
55
|
+
"@tiptap/extension-underline": "2.0.0-beta.209",
|
|
56
|
+
"@tiptap/starter-kit": "2.0.0-beta.209",
|
|
42
57
|
"@types/lodash": "4.14.173",
|
|
43
58
|
"@types/sortablejs": "1.10.7",
|
|
44
59
|
"@types/uuid": "8.3.1",
|
|
@@ -47,6 +62,8 @@
|
|
|
47
62
|
"@vueuse/math": "9.5.0",
|
|
48
63
|
"codemirror": "6.0.1",
|
|
49
64
|
"focus-trap": "7.2.0",
|
|
65
|
+
"marked": "4.2.12",
|
|
66
|
+
"prosemirror-markdown": "^1.10.1",
|
|
50
67
|
"sortablejs": "1.14.0",
|
|
51
68
|
"uuid": "8.3.2",
|
|
52
69
|
"vue-demi": "0.13.11"
|
|
@@ -61,6 +78,7 @@
|
|
|
61
78
|
"@storybook/testing-library": "^0.0.13",
|
|
62
79
|
"@storybook/vue3": "6.5.15",
|
|
63
80
|
"@types/faker": "5.5.9",
|
|
81
|
+
"@types/marked": "4.0.8",
|
|
64
82
|
"@vue/composition-api": "1.7.0",
|
|
65
83
|
"faker": "5.5.3",
|
|
66
84
|
"sass": "1.32.8",
|
|
@@ -81,6 +81,10 @@ export default {
|
|
|
81
81
|
textConfirmationError: {
|
|
82
82
|
control: { type: 'text' },
|
|
83
83
|
},
|
|
84
|
+
|
|
85
|
+
isOpen: {
|
|
86
|
+
control: { type: 'boolean' },
|
|
87
|
+
},
|
|
84
88
|
},
|
|
85
89
|
|
|
86
90
|
parameters: {
|
|
@@ -143,6 +147,54 @@ const Template: StoryFn<typeof OrConfirm> = (args) => ({
|
|
|
143
147
|
`,
|
|
144
148
|
});
|
|
145
149
|
|
|
150
|
+
const TemplateIsOpen: StoryFn<typeof OrConfirm> = (args) => ({
|
|
151
|
+
components: {
|
|
152
|
+
OrConfirm,
|
|
153
|
+
OrButton,
|
|
154
|
+
},
|
|
155
|
+
|
|
156
|
+
setup() {
|
|
157
|
+
const isOpen = ref(args.isOpen);
|
|
158
|
+
return {
|
|
159
|
+
args,
|
|
160
|
+
isOpen,
|
|
161
|
+
onOpen: action('open'),
|
|
162
|
+
onClose: () => {
|
|
163
|
+
isOpen.value = false;
|
|
164
|
+
action('close');
|
|
165
|
+
},
|
|
166
|
+
onConfirm: (event: any) => {
|
|
167
|
+
isOpen.value = false;
|
|
168
|
+
action('confirm')(event);
|
|
169
|
+
},
|
|
170
|
+
};
|
|
171
|
+
},
|
|
172
|
+
|
|
173
|
+
template: `
|
|
174
|
+
<div class="contents">
|
|
175
|
+
<OrButton @click="isOpen = true">Confirmation modal</OrButton>
|
|
176
|
+
|
|
177
|
+
<OrConfirm
|
|
178
|
+
v-bind="args"
|
|
179
|
+
:is-open="isOpen"
|
|
180
|
+
@open="onOpen"
|
|
181
|
+
@close="onClose"
|
|
182
|
+
@confirm="onConfirm"
|
|
183
|
+
>
|
|
184
|
+
<template #default v-if="args.default">
|
|
185
|
+
${args.default}
|
|
186
|
+
</template>
|
|
187
|
+
<template #header v-if="args.header">
|
|
188
|
+
${args.header}
|
|
189
|
+
</template>
|
|
190
|
+
<template #footer v-if="args.footer">
|
|
191
|
+
${args.footer}
|
|
192
|
+
</template>
|
|
193
|
+
</OrConfirm>
|
|
194
|
+
</div>
|
|
195
|
+
`,
|
|
196
|
+
});
|
|
197
|
+
|
|
146
198
|
export const Default = Template.bind({});
|
|
147
199
|
Default.args = {
|
|
148
200
|
titleText: 'Delete permanently',
|
|
@@ -192,3 +244,11 @@ ConfirmButtonColor.args = {
|
|
|
192
244
|
confirmButtonText: 'Yes',
|
|
193
245
|
cancelButtonText: 'No',
|
|
194
246
|
};
|
|
247
|
+
export const UsingIsOpenProp = TemplateIsOpen.bind({});
|
|
248
|
+
UsingIsOpenProp.args = {
|
|
249
|
+
titleText: 'Confirm',
|
|
250
|
+
default: `Are you sure you want to <i>${Faker.hacker.verb()}</i> the <b>${Faker.hacker.noun()}</b>?`,
|
|
251
|
+
confirmType: ConfirmType.C,
|
|
252
|
+
confirmButtonText: 'Yes',
|
|
253
|
+
cancelButtonText: 'No',
|
|
254
|
+
};
|
|
@@ -139,6 +139,10 @@ export default defineComponent({
|
|
|
139
139
|
required: false,
|
|
140
140
|
default: null,
|
|
141
141
|
},
|
|
142
|
+
isOpen: {
|
|
143
|
+
type: Boolean,
|
|
144
|
+
default: false,
|
|
145
|
+
},
|
|
142
146
|
},
|
|
143
147
|
|
|
144
148
|
emits: [
|
|
@@ -203,6 +207,14 @@ export default defineComponent({
|
|
|
203
207
|
// Events
|
|
204
208
|
watch(isActive, (value: boolean) => emit(value ? 'open' : 'close'));
|
|
205
209
|
|
|
210
|
+
watch(() => props.isOpen, (newIsOpen) => {
|
|
211
|
+
if (newIsOpen) {
|
|
212
|
+
open();
|
|
213
|
+
} else {
|
|
214
|
+
close();
|
|
215
|
+
}
|
|
216
|
+
}, { immediate: true });
|
|
217
|
+
|
|
206
218
|
watch(escape, (val) => {
|
|
207
219
|
if (val) close();
|
|
208
220
|
});
|
|
@@ -7,4 +7,4 @@ import { OrModalV3 as OrModal } from '@onereach/ui-components';
|
|
|
7
7
|
<DocsPage />
|
|
8
8
|
|
|
9
9
|
## Migration Guide from V1
|
|
10
|
-
- removed properties `titleText`, `showClose`, `closeOnClickOutside`, `size`,
|
|
10
|
+
- removed properties `titleText`, `showClose`, `closeOnClickOutside`, `size`, and `isWithoutOverlay`
|
|
@@ -44,6 +44,10 @@ export default {
|
|
|
44
44
|
control: { type: 'select' },
|
|
45
45
|
options: Object.values(ModalSize),
|
|
46
46
|
},
|
|
47
|
+
|
|
48
|
+
isOpen: {
|
|
49
|
+
control: { type: 'boolean' },
|
|
50
|
+
},
|
|
47
51
|
},
|
|
48
52
|
|
|
49
53
|
parameters: {
|
|
@@ -120,3 +124,136 @@ Modal.args = {
|
|
|
120
124
|
</div>
|
|
121
125
|
`,
|
|
122
126
|
};
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
const TemplateIsOpen: StoryFn<typeof OrModal> = (args) => ({
|
|
130
|
+
components: {
|
|
131
|
+
OrButton,
|
|
132
|
+
OrModal,
|
|
133
|
+
},
|
|
134
|
+
|
|
135
|
+
setup() {
|
|
136
|
+
const isOpen = ref(args.isOpen);
|
|
137
|
+
|
|
138
|
+
function handleClose() {
|
|
139
|
+
isOpen.value = false;
|
|
140
|
+
action('close');
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
return {
|
|
144
|
+
args,
|
|
145
|
+
isOpen,
|
|
146
|
+
handleOpen: action('open'),
|
|
147
|
+
handleClose,
|
|
148
|
+
};
|
|
149
|
+
},
|
|
150
|
+
|
|
151
|
+
template: `
|
|
152
|
+
<div class="contents">
|
|
153
|
+
<OrButton @click="isOpen = true">Modal</OrButton>
|
|
154
|
+
|
|
155
|
+
<OrModal
|
|
156
|
+
v-bind="args"
|
|
157
|
+
:is-open="isOpen"
|
|
158
|
+
@open="handleOpen"
|
|
159
|
+
@close="handleClose"
|
|
160
|
+
>
|
|
161
|
+
<template #header>
|
|
162
|
+
${args.header}
|
|
163
|
+
</template>
|
|
164
|
+
|
|
165
|
+
${args.default}
|
|
166
|
+
|
|
167
|
+
<template #footer>
|
|
168
|
+
${args.footer}
|
|
169
|
+
</template>
|
|
170
|
+
</OrModal>
|
|
171
|
+
</div>
|
|
172
|
+
`,
|
|
173
|
+
});
|
|
174
|
+
|
|
175
|
+
export const UsingIsOpenProp = TemplateIsOpen.bind({});
|
|
176
|
+
|
|
177
|
+
UsingIsOpenProp.args = {
|
|
178
|
+
// Slots
|
|
179
|
+
header: 'Upload Files',
|
|
180
|
+
|
|
181
|
+
default: `
|
|
182
|
+
<div class="flex items-center justify-center">
|
|
183
|
+
Content Area
|
|
184
|
+
</div>
|
|
185
|
+
`,
|
|
186
|
+
|
|
187
|
+
footer: `
|
|
188
|
+
<div class="flex items-center justify-end gap-[16px]">
|
|
189
|
+
<OrButton variant="outlined">Save</OrButton>
|
|
190
|
+
<OrButton>Upload</OrButton>
|
|
191
|
+
</div>
|
|
192
|
+
`,
|
|
193
|
+
};
|
|
194
|
+
|
|
195
|
+
const TemplateZIndex: StoryFn<typeof OrModal> = (args) => ({
|
|
196
|
+
components: {
|
|
197
|
+
OrButton,
|
|
198
|
+
OrModal,
|
|
199
|
+
},
|
|
200
|
+
|
|
201
|
+
setup() {
|
|
202
|
+
const modal = ref<InstanceType<typeof OrModal>>();
|
|
203
|
+
|
|
204
|
+
return {
|
|
205
|
+
args,
|
|
206
|
+
modal,
|
|
207
|
+
handleOpen: action('open'),
|
|
208
|
+
handleClose: action('close'),
|
|
209
|
+
};
|
|
210
|
+
},
|
|
211
|
+
|
|
212
|
+
template: `
|
|
213
|
+
<div class="contents">
|
|
214
|
+
<div class="border-1" style="z-index: 700">
|
|
215
|
+
z-index: 700
|
|
216
|
+
</div>
|
|
217
|
+
<OrButton @click="modal.open()">Modal</OrButton>
|
|
218
|
+
<div style="z-index: 800; display: none">
|
|
219
|
+
z-index: 800
|
|
220
|
+
</div>
|
|
221
|
+
<OrModal
|
|
222
|
+
ref="modal"
|
|
223
|
+
v-bind="args"
|
|
224
|
+
@open="handleOpen"
|
|
225
|
+
@close="handleClose"
|
|
226
|
+
>
|
|
227
|
+
<template #header>
|
|
228
|
+
${args.header}
|
|
229
|
+
</template>
|
|
230
|
+
|
|
231
|
+
${args.default}
|
|
232
|
+
|
|
233
|
+
<template #footer>
|
|
234
|
+
${args.footer}
|
|
235
|
+
</template>
|
|
236
|
+
</OrModal>
|
|
237
|
+
</div>
|
|
238
|
+
`,
|
|
239
|
+
});
|
|
240
|
+
|
|
241
|
+
export const zIndex = TemplateZIndex.bind({});
|
|
242
|
+
|
|
243
|
+
zIndex.args = {
|
|
244
|
+
// Slots
|
|
245
|
+
header: 'Upload Files',
|
|
246
|
+
|
|
247
|
+
default: `
|
|
248
|
+
<div class="flex items-center justify-center">
|
|
249
|
+
Content Area
|
|
250
|
+
</div>
|
|
251
|
+
`,
|
|
252
|
+
|
|
253
|
+
footer: `
|
|
254
|
+
<div class="flex items-center justify-end gap-[16px]">
|
|
255
|
+
<OrButton variant="outlined">Save</OrButton>
|
|
256
|
+
<OrButton>Upload</OrButton>
|
|
257
|
+
</div>
|
|
258
|
+
`,
|
|
259
|
+
};
|
|
@@ -53,6 +53,10 @@ export default defineComponent({
|
|
|
53
53
|
type: String as PropType<ModalSize>,
|
|
54
54
|
default: ModalSize.M,
|
|
55
55
|
},
|
|
56
|
+
isOpen: {
|
|
57
|
+
type: Boolean as PropType<boolean>,
|
|
58
|
+
default: false,
|
|
59
|
+
},
|
|
56
60
|
},
|
|
57
61
|
|
|
58
62
|
emits: [
|
|
@@ -97,6 +101,14 @@ export default defineComponent({
|
|
|
97
101
|
context.emit(value ? 'open' : 'close');
|
|
98
102
|
});
|
|
99
103
|
|
|
104
|
+
watch(() => props.isOpen, (newIsOpen) => {
|
|
105
|
+
if (newIsOpen) {
|
|
106
|
+
open();
|
|
107
|
+
} else {
|
|
108
|
+
close();
|
|
109
|
+
}
|
|
110
|
+
}, { immediate: true });
|
|
111
|
+
|
|
100
112
|
// Methods
|
|
101
113
|
function open(): void {
|
|
102
114
|
isActive.value = true;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Title,
|
|
3
|
+
Subtitle,
|
|
4
|
+
Description,
|
|
5
|
+
Primary,
|
|
6
|
+
ArgsTable,
|
|
7
|
+
Stories,
|
|
8
|
+
PRIMARY_STORY
|
|
9
|
+
} from '@storybook/addon-docs';
|
|
10
|
+
|
|
11
|
+
<Title />
|
|
12
|
+
<Subtitle />
|
|
13
|
+
<Description />
|
|
14
|
+
<Primary />
|
|
15
|
+
<ArgsTable story={PRIMARY_STORY} />
|
|
16
|
+
<Stories />
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { Meta, StoryFn } from '@storybook/vue3';
|
|
2
|
+
import { ref } from 'vue-demi';
|
|
3
|
+
import OrRichTextEditorDocs from './OrRichTextEditor.docs.mdx';
|
|
4
|
+
import OrRichTextEditor from './OrRichTextEditor.vue';
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
title: 'Experimental/OrRichTextEditor',
|
|
8
|
+
component: OrRichTextEditor,
|
|
9
|
+
|
|
10
|
+
argTypes: {
|
|
11
|
+
// Props
|
|
12
|
+
description: {
|
|
13
|
+
control: { type: 'text' },
|
|
14
|
+
},
|
|
15
|
+
placeholder: {
|
|
16
|
+
control: { type: 'text' },
|
|
17
|
+
},
|
|
18
|
+
modelValue: {
|
|
19
|
+
control: { type: 'text' },
|
|
20
|
+
},
|
|
21
|
+
markdown: {
|
|
22
|
+
control: { type: 'boolean' },
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
|
|
26
|
+
parameters: {
|
|
27
|
+
docs: {
|
|
28
|
+
page: OrRichTextEditorDocs,
|
|
29
|
+
},
|
|
30
|
+
|
|
31
|
+
design: {
|
|
32
|
+
type: 'figma',
|
|
33
|
+
url: 'https://www.figma.com/file/o7DdkaznUW2PtX4wiSuhhQ/Core?node-id=608%3A2926',
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
} as Meta<typeof OrRichTextEditor>;
|
|
37
|
+
|
|
38
|
+
const Template: StoryFn<typeof OrRichTextEditor> = (args) => ({
|
|
39
|
+
components: {
|
|
40
|
+
OrRichTextEditor,
|
|
41
|
+
},
|
|
42
|
+
|
|
43
|
+
setup() {
|
|
44
|
+
// Refs
|
|
45
|
+
const text = ref('');
|
|
46
|
+
return {
|
|
47
|
+
args,
|
|
48
|
+
text,
|
|
49
|
+
};
|
|
50
|
+
},
|
|
51
|
+
|
|
52
|
+
template: `
|
|
53
|
+
<div class="p-md">
|
|
54
|
+
<OrRichTextEditor
|
|
55
|
+
v-bind="args"
|
|
56
|
+
v-model="text"
|
|
57
|
+
/>
|
|
58
|
+
</div>
|
|
59
|
+
`,
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
export const RichTextEditor = Template.bind({});
|