@onereach/ui-components 2.70.0-beta.2131.0 → 2.70.0-beta.2159.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundled/v2/{OrAvatar-2fa559e1.js → OrAvatar-ae61bfb9.js} +41 -15
- package/dist/bundled/v2/{OrButton-0e91a808.js → OrButton-4b99c680.js} +5 -1
- package/dist/bundled/v2/{OrCard-58a1ba3e.js → OrCard-29116e1f.js} +2 -2
- package/dist/bundled/v2/OrCardCollection-c4209a92.js +350 -0
- package/dist/bundled/v2/OrCode-be1bd373.js +4255 -0
- package/dist/bundled/v2/{OrConfirm-18c534df.js → OrConfirm-cab6535b.js} +1 -1
- package/dist/bundled/v2/OrEmptyState-9fb413f9.js +160 -0
- package/dist/bundled/v2/{OrRichTextEditor-63ef1357.js → OrRichTextEditor-5843ecda.js} +13803 -20711
- package/dist/bundled/v2/{OrSearch-9d402f56.js → OrSearch-76b002cf.js} +10 -4
- package/dist/bundled/v2/{OrSortHeader-396e6a7c.js → OrSortHeader-9932d28f.js} +2 -2
- package/dist/bundled/v2/codemirrorView-14f6685c.js +7136 -0
- package/dist/bundled/v2/components/index.d.ts +1 -0
- package/dist/bundled/v2/components/index.js +13 -10
- package/dist/bundled/v2/components/or-avatar-v3/OrAvatar.stories3.d.ts +1 -1
- package/dist/bundled/v2/components/or-avatar-v3/OrAvatar.vue.d.ts +11 -0
- package/dist/bundled/v2/components/or-avatar-v3/index.js +2 -1
- package/dist/bundled/v2/components/or-avatar-v3/props.d.ts +2 -1
- package/dist/bundled/v2/components/or-avatar-v3/styles.d.ts +2 -0
- package/dist/bundled/v2/components/or-button-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +10 -0
- package/dist/bundled/v2/components/or-card-collection-v3/OrCardCollection.vue.d.ts +87 -40
- package/dist/bundled/v2/components/or-card-collection-v3/OrCardCollectionView.vue2.vue.d.ts +35 -0
- package/dist/bundled/v2/components/or-card-collection-v3/index.js +7 -4
- package/dist/bundled/v2/components/or-card-collection-v3/props.d.ts +5 -1
- package/dist/bundled/v2/components/or-card-collection-v3/styles.d.ts +2 -2
- package/dist/bundled/v2/components/or-card-collection-v3/types.d.ts +8 -3
- package/dist/bundled/v2/components/or-card-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-code/index.js +3 -2
- package/dist/bundled/v2/components/or-confirm-v3/index.js +2 -2
- package/dist/bundled/v2/components/or-empty-state-v3/OrEmptyState.vue.d.ts +1 -1
- package/dist/bundled/v2/components/or-empty-state-v3/index.js +3 -159
- package/dist/bundled/v2/components/or-input-box-v3/OrInputBox.vue.d.ts +1 -2
- package/dist/bundled/v2/components/or-rich-text-editor-v3/index.js +4 -2
- package/dist/bundled/v2/components/or-rich-text-editor-v3/utils/codemirror/codemirrorNode.d.ts +3 -0
- package/dist/bundled/v2/components/or-rich-text-editor-v3/utils/codemirror/codemirrorView.d.ts +45 -0
- package/dist/bundled/v2/components/or-rich-text-editor-v3/utils/codemirror/index.d.ts +1 -0
- package/dist/bundled/v2/components/or-rich-text-editor-v3/utils/codemirror/index.js +2 -0
- package/dist/bundled/v2/components/or-rich-text-editor-v3/utils/codemirror/types.d.ts +19 -0
- package/dist/bundled/v2/components/or-search-v3/OrSearch.vue.d.ts +15 -2
- package/dist/bundled/v2/components/or-search-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-sort-header-v3/index.js +1 -1
- package/dist/bundled/v2/index-46cc379c.js +12186 -0
- package/dist/bundled/v2/index-780d00b0.js +13307 -0
- package/dist/bundled/v2/index.js +14 -11
- package/dist/bundled/v3/{OrAvatar.vue_vue_type_script_lang-22e46ce1.js → OrAvatar.vue_vue_type_script_lang-0426862b.js} +35 -13
- package/dist/bundled/v3/OrButton-a671b8a1.js +33 -0
- package/dist/bundled/v3/{OrButton.vue_vue_type_script_lang-3718b300.js → OrButton.vue_vue_type_script_lang-b0dc31ca.js} +5 -1
- package/dist/bundled/v3/OrCardCollection.vue_vue_type_script_lang-9a2ae9a3.js +236 -0
- package/dist/bundled/v3/OrCode.vue_vue_type_script_lang-0f668150.js +4133 -0
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-289b5600.js → OrConfirm.vue_vue_type_script_lang-f57ffa1a.js} +6 -36
- package/dist/bundled/v3/OrEmptyState.vue_vue_type_script_lang-da7d6c42.js +111 -0
- package/dist/bundled/v3/{OrIconButton-4bd33e3c.js → OrIconButton-1581013c.js} +1 -1
- package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-641f6e06.js → OrIconButton.vue_vue_type_script_lang-f6f801ff.js} +1 -1
- package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-3a8189f4.js → OrInlineInput.vue_vue_type_script_lang-f29483f4.js} +2 -2
- package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-890b97ab.js → OrInlineTextarea.vue_vue_type_script_lang-cc40af48.js} +2 -2
- package/dist/bundled/v3/OrInput.vue_vue_type_script_lang-f6d793d3.js +2 -2
- package/dist/bundled/v3/{OrModal.vue_vue_type_script_lang-00a477f0.js → OrModal.vue_vue_type_script_lang-80a7b906.js} +2 -2
- package/dist/bundled/v3/OrNotification.vue_vue_type_script_lang-fbb35355.js +2 -2
- package/dist/bundled/v3/{OrRichTextEditor.vue_vue_type_script_lang-47fffbd6.js → OrRichTextEditor.vue_vue_type_script_lang-e0dfd695.js} +13803 -20711
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-ed78b21f.js → OrSearch.vue_vue_type_script_lang-014ad470.js} +9 -3
- package/dist/bundled/v3/OrSelect.vue_vue_type_script_lang-15285ce4.js +1 -1
- package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-92d9fb12.js → OrTag.vue_vue_type_script_lang-dc6a4011.js} +2 -2
- package/dist/bundled/v3/{OrToastContainer-afb51e5d.js → OrToastContainer-7c3c0b12.js} +1 -1
- package/dist/bundled/v3/codemirrorView-14f6685c.js +7136 -0
- package/dist/bundled/v3/components/index.d.ts +1 -0
- package/dist/bundled/v3/components/index.js +23 -19
- package/dist/bundled/v3/components/or-avatar-v3/OrAvatar.stories3.d.ts +1 -1
- package/dist/bundled/v3/components/or-avatar-v3/OrAvatar.vue.d.ts +11 -0
- package/dist/bundled/v3/components/or-avatar-v3/index.js +3 -1
- package/dist/bundled/v3/components/or-avatar-v3/props.d.ts +2 -1
- package/dist/bundled/v3/components/or-avatar-v3/styles.d.ts +2 -0
- package/dist/bundled/v3/components/or-button-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +10 -0
- package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +87 -40
- package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollectionView.vue3.vue.d.ts +35 -0
- package/dist/bundled/v3/components/or-card-collection-v3/index.js +13 -6
- package/dist/bundled/v3/components/or-card-collection-v3/props.d.ts +5 -1
- package/dist/bundled/v3/components/or-card-collection-v3/styles.d.ts +2 -2
- package/dist/bundled/v3/components/or-card-collection-v3/types.d.ts +8 -3
- package/dist/bundled/v3/components/or-code/index.js +3 -2
- package/dist/bundled/v3/components/or-confirm-v3/index.js +5 -4
- package/dist/bundled/v3/components/or-empty-state-v3/OrEmptyState.vue.d.ts +1 -1
- package/dist/bundled/v3/components/or-empty-state-v3/index.js +2 -134
- package/dist/bundled/v3/components/or-icon-button-v3/index.js +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/OrInputBox.vue.d.ts +1 -2
- package/dist/bundled/v3/components/or-input-v3/index.js +2 -2
- package/dist/bundled/v3/components/or-modal-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-notification-v3/index.js +2 -2
- package/dist/bundled/v3/components/or-rich-text-editor-v3/index.js +6 -4
- package/dist/bundled/v3/components/or-rich-text-editor-v3/utils/codemirror/codemirrorNode.d.ts +3 -0
- package/dist/bundled/v3/components/or-rich-text-editor-v3/utils/codemirror/codemirrorView.d.ts +45 -0
- package/dist/bundled/v3/components/or-rich-text-editor-v3/utils/codemirror/index.d.ts +1 -0
- package/dist/bundled/v3/components/or-rich-text-editor-v3/utils/codemirror/index.js +2 -0
- package/dist/bundled/v3/components/or-rich-text-editor-v3/utils/codemirror/types.d.ts +19 -0
- package/dist/bundled/v3/components/or-search-v3/OrSearch.vue.d.ts +15 -2
- package/dist/bundled/v3/components/or-search-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-select-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-tag-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-toast-v3/index.js +4 -4
- package/dist/bundled/v3/index-44faad6a.js +12186 -0
- package/dist/bundled/v3/index-780d00b0.js +13307 -0
- package/dist/bundled/v3/index.js +415 -351
- package/dist/bundled/v3/{types-6c5eee23.js → types-dcc78caa.js} +2 -2
- package/dist/esm/v2/{OrAvatar-0afdef36.js → OrAvatar-3d155af3.js} +41 -15
- package/dist/esm/v2/{OrButton-357a5756.js → OrButton-357e1e2c.js} +5 -1
- package/dist/esm/v2/OrCardCollection-57d11adf.js +350 -0
- package/dist/esm/v2/{OrCode-41dd5f9b.js → OrCode-d4400b42.js} +6 -4
- package/dist/esm/v2/{OrConfirm-b0b2e43c.js → OrConfirm-ec7aef0e.js} +1 -1
- package/dist/esm/v2/OrEmptyState-2481f13f.js +158 -0
- package/dist/esm/v2/{OrRichTextEditor-c3dee275.js → OrRichTextEditor-2d152db0.js} +59 -11
- package/dist/esm/v2/{OrSearch-ddb7c1fe.js → OrSearch-2f260b09.js} +8 -2
- package/dist/esm/v2/codemirrorView-8ea431d2.js +184 -0
- package/dist/esm/v2/components/index.d.ts +1 -0
- package/dist/esm/v2/components/index.js +13 -7
- package/dist/esm/v2/components/or-avatar-v3/OrAvatar.stories3.d.ts +1 -1
- package/dist/esm/v2/components/or-avatar-v3/OrAvatar.vue.d.ts +11 -0
- package/dist/esm/v2/components/or-avatar-v3/index.js +2 -1
- package/dist/esm/v2/components/or-avatar-v3/props.d.ts +2 -1
- package/dist/esm/v2/components/or-avatar-v3/styles.d.ts +2 -0
- package/dist/esm/v2/components/or-button-v3/index.js +1 -1
- package/dist/esm/v2/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +10 -0
- package/dist/esm/v2/components/or-card-collection-v3/OrCardCollection.vue.d.ts +87 -40
- package/dist/esm/v2/components/or-card-collection-v3/OrCardCollectionView.vue2.vue.d.ts +35 -0
- package/dist/esm/v2/components/or-card-collection-v3/index.js +7 -4
- package/dist/esm/v2/components/or-card-collection-v3/props.d.ts +5 -1
- package/dist/esm/v2/components/or-card-collection-v3/styles.d.ts +2 -2
- package/dist/esm/v2/components/or-card-collection-v3/types.d.ts +8 -3
- package/dist/esm/v2/components/or-code/index.js +3 -1
- package/dist/esm/v2/components/or-confirm-v3/index.js +2 -2
- package/dist/esm/v2/components/or-empty-state-v3/OrEmptyState.vue.d.ts +1 -1
- package/dist/esm/v2/components/or-empty-state-v3/index.js +3 -158
- package/dist/esm/v2/components/or-input-box-v3/OrInputBox.vue.d.ts +1 -2
- package/dist/esm/v2/components/or-rich-text-editor-v3/index.js +8 -1
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/codemirrorNode.d.ts +3 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/codemirrorView.d.ts +45 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/index.d.ts +1 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/index.js +5 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/types.d.ts +19 -0
- package/dist/esm/v2/components/or-search-v3/OrSearch.vue.d.ts +15 -2
- package/dist/esm/v2/components/or-search-v3/index.js +1 -1
- package/dist/esm/v2/index.js +13 -7
- package/dist/esm/v3/{OrAvatar-ef88d31c.js → OrAvatar-53a4429d.js} +43 -16
- package/dist/esm/v3/{OrButton-f4b9ee51.js → OrButton-bb6bf8a9.js} +5 -1
- package/dist/esm/v3/OrCardCollection-2a6514f3.js +298 -0
- package/dist/esm/v3/{OrCode-ee19a5e6.js → OrCode-5ed69c23.js} +3 -1
- package/dist/esm/v3/{OrConfirm-906427ef.js → OrConfirm-5d56cbd3.js} +1 -1
- package/dist/esm/v3/OrEmptyState-bb8e3145.js +135 -0
- package/dist/esm/v3/OrInput-41691fb3.js +1 -1
- package/dist/esm/v3/{OrInputBox-5247ab25.js → OrInputBox-6d1b6059.js} +1 -1
- package/dist/esm/v3/{OrRichTextEditor-b2e87342.js → OrRichTextEditor-f1271eb6.js} +58 -10
- package/dist/esm/v3/{OrSearch-cdde55ce.js → OrSearch-e5a2e93e.js} +9 -3
- package/dist/esm/v3/OrSelect-7e813982.js +1 -1
- package/dist/esm/v3/OrTextarea-bb9ef3f2.js +1 -1
- package/dist/esm/v3/codemirrorView-8ea431d2.js +184 -0
- package/dist/esm/v3/components/index.d.ts +1 -0
- package/dist/esm/v3/components/index.js +14 -8
- package/dist/esm/v3/components/or-avatar-v3/OrAvatar.stories3.d.ts +1 -1
- package/dist/esm/v3/components/or-avatar-v3/OrAvatar.vue.d.ts +11 -0
- package/dist/esm/v3/components/or-avatar-v3/index.js +2 -1
- package/dist/esm/v3/components/or-avatar-v3/props.d.ts +2 -1
- package/dist/esm/v3/components/or-avatar-v3/styles.d.ts +2 -0
- package/dist/esm/v3/components/or-button-v3/index.js +1 -1
- package/dist/esm/v3/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +10 -0
- package/dist/esm/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +87 -40
- package/dist/esm/v3/components/or-card-collection-v3/OrCardCollectionView.vue3.vue.d.ts +35 -0
- package/dist/esm/v3/components/or-card-collection-v3/index.js +8 -5
- package/dist/esm/v3/components/or-card-collection-v3/props.d.ts +5 -1
- package/dist/esm/v3/components/or-card-collection-v3/styles.d.ts +2 -2
- package/dist/esm/v3/components/or-card-collection-v3/types.d.ts +8 -3
- package/dist/esm/v3/components/or-code/index.js +3 -1
- package/dist/esm/v3/components/or-confirm-v3/index.js +3 -3
- package/dist/esm/v3/components/or-empty-state-v3/OrEmptyState.vue.d.ts +1 -1
- package/dist/esm/v3/components/or-empty-state-v3/index.js +3 -135
- package/dist/esm/v3/components/or-input-box-v3/OrInputBox.vue.d.ts +1 -2
- package/dist/esm/v3/components/or-input-box-v3/index.js +2 -2
- package/dist/esm/v3/components/or-input-v3/index.js +1 -1
- package/dist/esm/v3/components/or-rich-text-editor-v3/index.js +8 -1
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/codemirrorNode.d.ts +3 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/codemirrorView.d.ts +45 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/index.d.ts +1 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/index.js +5 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/types.d.ts +19 -0
- package/dist/esm/v3/components/or-search-v3/OrSearch.vue.d.ts +15 -2
- package/dist/esm/v3/components/or-search-v3/index.js +2 -2
- package/dist/esm/v3/components/or-select-v3/index.js +1 -1
- package/dist/esm/v3/components/or-textarea-v3/index.js +1 -1
- package/dist/esm/v3/index.js +14 -8
- package/package.json +2 -1
- package/src/components/index.ts +1 -0
- package/src/components/or-avatar-v3/OrAvatar.stories3.ts +9 -7
- package/src/components/or-avatar-v3/OrAvatar.vue +22 -2
- package/src/components/or-avatar-v3/props.ts +1 -0
- package/src/components/or-avatar-v3/styles.ts +49 -11
- package/src/components/or-button-v3/styles.ts +6 -0
- package/src/components/or-card/OrCard.stories.ts +1 -1
- package/src/components/or-card-collection/OrCardCollection.stories.ts +1 -1
- package/src/components/or-card-collection-v3/OrCardCollection.docs.mdx +4 -0
- package/src/components/or-card-collection-v3/OrCardCollection.stories3.ts +246 -30
- package/src/components/or-card-collection-v3/OrCardCollection.vue +132 -77
- package/src/components/or-card-collection-v3/OrCardCollectionView.vue2.vue +41 -0
- package/src/components/or-card-collection-v3/OrCardCollectionView.vue3.vue +42 -0
- package/src/components/or-card-collection-v3/props.ts +14 -1
- package/src/components/or-card-collection-v3/styles.ts +6 -4
- package/src/components/or-card-collection-v3/types.ts +9 -3
- package/src/components/or-code/OrCode.vue +3 -1
- package/src/components/or-empty-state-v3/OrEmptyState.vue +16 -10
- package/src/components/or-input-box-v3/OrInputBox.vue +1 -2
- package/src/components/or-menu-v3/OrMenu.stories3.ts +1 -1
- package/src/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.ts +2 -0
- package/src/components/or-rich-text-editor-v3/OrRichTextEditor.vue +32 -6
- package/src/components/or-rich-text-editor-v3/utils/codemirror/codemirrorNode.ts +40 -0
- package/src/components/or-rich-text-editor-v3/utils/codemirror/codemirrorView.ts +257 -0
- package/src/components/or-rich-text-editor-v3/utils/codemirror/index.ts +1 -0
- package/src/components/or-rich-text-editor-v3/utils/codemirror/types.ts +22 -0
- package/src/components/or-rich-text-editor-v3/utils/markdown.ts +2 -0
- package/src/components/or-search-v3/OrSearch.stories3.ts +1 -1
- package/src/components/or-search-v3/OrSearch.vue +8 -2
- package/src/components/or-teleport-v3/OrTeleport.stories3.ts +1 -1
- package/dist/bundled/v2/OrCardCollection-a9a779ea.js +0 -228
- package/dist/bundled/v2/OrCode-0cd991a1.js +0 -29579
- package/dist/bundled/v2/index.es-3f39f316.js +0 -115
- package/dist/bundled/v3/OrCardCollection.vue_vue_type_script_lang-3993a015.js +0 -164
- package/dist/bundled/v3/OrCode.vue_vue_type_script_lang-6c5f94a6.js +0 -29457
- package/dist/bundled/v3/index.es-3f39f316.js +0 -115
- package/dist/esm/v2/OrCardCollection-4f001551.js +0 -227
- package/dist/esm/v3/OrCardCollection-5a0febaf.js +0 -198
|
@@ -1,161 +1,5 @@
|
|
|
1
|
+
export { E as EmptyStateSize, _ as OrEmptyStateV3 } from '../../OrEmptyState-9fb413f9.js';
|
|
1
2
|
import '../../index-fa6eb4ca.js';
|
|
2
|
-
import { defineComponent, ref, computed } from '@vue/composition-api/dist/vue-composition-api.mjs';
|
|
3
|
-
import { n as normalizeComponent } from '../../normalize-component-6e8e3d80.js';
|
|
4
3
|
import 'vue';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
(function (EmptyStateSize) {
|
|
8
|
-
EmptyStateSize["L"] = "l";
|
|
9
|
-
EmptyStateSize["M"] = "m";
|
|
10
|
-
})(EmptyStateSize || (EmptyStateSize = {}));
|
|
11
|
-
|
|
12
|
-
const EmptyStateRoot = [
|
|
13
|
-
// Layout
|
|
14
|
-
'grow', 'flex', 'flex-col', 'justify-center', 'items-center',
|
|
15
|
-
// Box
|
|
16
|
-
'w-full',
|
|
17
|
-
// Sizing
|
|
18
|
-
'gap-sm'];
|
|
19
|
-
const EmptyStateImage = [
|
|
20
|
-
// Sizing
|
|
21
|
-
'mb-sm'];
|
|
22
|
-
const EmptyStateImageSizes = {
|
|
23
|
-
[EmptyStateSize.L]: [
|
|
24
|
-
// Box
|
|
25
|
-
'h-3xl'],
|
|
26
|
-
[EmptyStateSize.M]: [
|
|
27
|
-
// Box
|
|
28
|
-
'h-2xl']
|
|
29
|
-
};
|
|
30
|
-
const EmptyStateHeading = [
|
|
31
|
-
// Theme
|
|
32
|
-
'theme-foreground-default', 'dark:theme-foreground-default-dark'];
|
|
33
|
-
const EmptyStateHeadingSizes = {
|
|
34
|
-
[EmptyStateSize.L]: [
|
|
35
|
-
// Typography
|
|
36
|
-
'typography-headline-2'],
|
|
37
|
-
[EmptyStateSize.M]: [
|
|
38
|
-
// Typography
|
|
39
|
-
'typography-headline-4']
|
|
40
|
-
};
|
|
41
|
-
const EmptyStateText = ['text-center',
|
|
42
|
-
// Theme
|
|
43
|
-
'text-outline', 'dark:text-outline-dark'];
|
|
44
|
-
const EmptyStateContent = EmptyStateText;
|
|
45
|
-
const EmptyStateTextSizes = {
|
|
46
|
-
[EmptyStateSize.L]: [
|
|
47
|
-
// Typography
|
|
48
|
-
'typography-body-2-regular'],
|
|
49
|
-
[EmptyStateSize.M]: [
|
|
50
|
-
// Typography
|
|
51
|
-
'typography-caption-regular']
|
|
52
|
-
};
|
|
53
|
-
const EmptyStateContentSizes = EmptyStateTextSizes;
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* The component to display when there is no content on a page,
|
|
57
|
-
* no records found or selected, or while the data is being loaded.
|
|
58
|
-
* Provides a hint to the user on what to do.
|
|
59
|
-
* Consists of text message, optional icon and optional loader.
|
|
60
|
-
*/
|
|
61
|
-
var script = defineComponent({
|
|
62
|
-
name: 'OrEmptyState',
|
|
63
|
-
props: {
|
|
64
|
-
/**
|
|
65
|
-
* Size of the component, affects font and icon size.
|
|
66
|
-
* Use Large if the component takes all screen space,
|
|
67
|
-
* and Medium if it is a part of the complex layout.
|
|
68
|
-
*/
|
|
69
|
-
size: {
|
|
70
|
-
type: String,
|
|
71
|
-
default: EmptyStateSize.M
|
|
72
|
-
},
|
|
73
|
-
/**
|
|
74
|
-
* The heading of the empty state block.
|
|
75
|
-
*/
|
|
76
|
-
heading: {
|
|
77
|
-
type: String,
|
|
78
|
-
default: ''
|
|
79
|
-
},
|
|
80
|
-
/**
|
|
81
|
-
* Additional text such as a hint for a user with proposed next steps.
|
|
82
|
-
*/
|
|
83
|
-
text: {
|
|
84
|
-
type: String,
|
|
85
|
-
default: ''
|
|
86
|
-
},
|
|
87
|
-
/**
|
|
88
|
-
* Path to the image to display above the heading.
|
|
89
|
-
* Image height is fixed depending on `size` prop, width is undefined to preserve aspect ratio.
|
|
90
|
-
*/
|
|
91
|
-
imageSrc: {
|
|
92
|
-
type: String,
|
|
93
|
-
default: undefined
|
|
94
|
-
}
|
|
95
|
-
},
|
|
96
|
-
setup(props) {
|
|
97
|
-
const root = ref();
|
|
98
|
-
const rootClasses = computed(() => ['or-empty-state', ...EmptyStateRoot]);
|
|
99
|
-
const imageClasses = computed(() => ['or-empty-state_image', ...EmptyStateImage, ...EmptyStateImageSizes[props.size]]);
|
|
100
|
-
const headingClasses = computed(() => ['or-empty-state_heading', ...EmptyStateHeading, ...EmptyStateHeadingSizes[props.size]]);
|
|
101
|
-
const textClasses = computed(() => ['or-empty-state_text', ...EmptyStateText, ...EmptyStateTextSizes[props.size]]);
|
|
102
|
-
const slotClasses = computed(() => ['or-empty-state_content', ...EmptyStateContent, ...EmptyStateContentSizes[props.size]]);
|
|
103
|
-
return {
|
|
104
|
-
root,
|
|
105
|
-
rootClasses,
|
|
106
|
-
imageClasses,
|
|
107
|
-
headingClasses,
|
|
108
|
-
textClasses,
|
|
109
|
-
slotClasses
|
|
110
|
-
};
|
|
111
|
-
}
|
|
112
|
-
});
|
|
113
|
-
|
|
114
|
-
/* script */
|
|
115
|
-
const __vue_script__ = script;
|
|
116
|
-
|
|
117
|
-
/* template */
|
|
118
|
-
var __vue_render__ = function () {
|
|
119
|
-
var _vm = this;
|
|
120
|
-
var _h = _vm.$createElement;
|
|
121
|
-
var _c = _vm._self._c || _h;
|
|
122
|
-
return _c('div', {
|
|
123
|
-
ref: "root",
|
|
124
|
-
class: _vm.rootClasses
|
|
125
|
-
}, [_vm.imageSrc ? _c('img', {
|
|
126
|
-
class: _vm.imageClasses,
|
|
127
|
-
attrs: {
|
|
128
|
-
"src": _vm.imageSrc,
|
|
129
|
-
"alt": ""
|
|
130
|
-
}
|
|
131
|
-
}) : _vm._e(), _vm._v(" "), _c('div', {
|
|
132
|
-
class: _vm.headingClasses
|
|
133
|
-
}, [_vm._v("\n " + _vm._s(_vm.heading) + "\n ")]), _vm._v(" "), _vm.$slots.default ? _c('div', {
|
|
134
|
-
class: _vm.slotClasses
|
|
135
|
-
}, [_vm._t("default")], 2) : _vm._e(), _vm._v(" "), _c('div', {
|
|
136
|
-
class: _vm.textClasses
|
|
137
|
-
}, [_vm._v("\n " + _vm._s(_vm.text) + "\n ")])]);
|
|
138
|
-
};
|
|
139
|
-
var __vue_staticRenderFns__ = [];
|
|
140
|
-
|
|
141
|
-
/* style */
|
|
142
|
-
const __vue_inject_styles__ = undefined;
|
|
143
|
-
/* scoped */
|
|
144
|
-
const __vue_scope_id__ = undefined;
|
|
145
|
-
/* module identifier */
|
|
146
|
-
const __vue_module_identifier__ = undefined;
|
|
147
|
-
/* functional template */
|
|
148
|
-
const __vue_is_functional_template__ = false;
|
|
149
|
-
/* style inject */
|
|
150
|
-
|
|
151
|
-
/* style inject SSR */
|
|
152
|
-
|
|
153
|
-
/* style inject shadow dom */
|
|
154
|
-
|
|
155
|
-
const __vue_component__ = /*#__PURE__*/normalizeComponent({
|
|
156
|
-
render: __vue_render__,
|
|
157
|
-
staticRenderFns: __vue_staticRenderFns__
|
|
158
|
-
}, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
|
|
159
|
-
var __vue_component__$1 = __vue_component__;
|
|
160
|
-
|
|
161
|
-
export { EmptyStateSize, __vue_component__$1 as OrEmptyStateV3 };
|
|
4
|
+
import '@vue/composition-api/dist/vue-composition-api.mjs';
|
|
5
|
+
import '../../normalize-component-6e8e3d80.js';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { PropType } from 'vue-demi';
|
|
2
|
-
import { InputBoxVariant } from '
|
|
3
|
-
import { InputBoxSize } from './props';
|
|
2
|
+
import { InputBoxSize, InputBoxVariant } from './props';
|
|
4
3
|
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
5
4
|
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
6
5
|
rootStyles: import("@vue/composition-api").ComputedRef<(string | undefined)[]>;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
export { _ as OrRichTextEditorV3 } from '../../OrRichTextEditor-
|
|
1
|
+
export { _ as OrRichTextEditorV3 } from '../../OrRichTextEditor-5843ecda.js';
|
|
2
2
|
import '../../index-fa6eb4ca.js';
|
|
3
3
|
import 'vue';
|
|
4
4
|
import '@vue/composition-api/dist/vue-composition-api.mjs';
|
|
5
|
+
import '../../codemirrorView-14f6685c.js';
|
|
6
|
+
import '../../index-780d00b0.js';
|
|
5
7
|
import 'node:punycode';
|
|
6
|
-
import '../../index
|
|
8
|
+
import '../../index-46cc379c.js';
|
|
7
9
|
import '../../OrIconButton-a215104c.js';
|
|
8
10
|
import '../../OrIcon-8625385f.js';
|
|
9
11
|
import '../../useClassAttribute-9bf33346.js';
|
package/dist/bundled/v2/components/or-rich-text-editor-v3/utils/codemirror/codemirrorView.d.ts
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { TextSelection } from 'prosemirror-state';
|
|
2
|
+
import { EditorView, NodeView } from 'prosemirror-view';
|
|
3
|
+
import { Node as ProsemirrorNode } from 'prosemirror-model';
|
|
4
|
+
import { Transaction as CMTransaction } from '@codemirror/state';
|
|
5
|
+
import { Command, EditorView as CMView } from '@codemirror/view';
|
|
6
|
+
import { CodeMirrorViewOptions } from './types';
|
|
7
|
+
declare module '@tiptap/core' {
|
|
8
|
+
interface Commands<ReturnType> {
|
|
9
|
+
codeBlock: {
|
|
10
|
+
/**
|
|
11
|
+
* Set a code block
|
|
12
|
+
*/
|
|
13
|
+
setCodeBlock: (attributes?: {
|
|
14
|
+
language: string;
|
|
15
|
+
}) => ReturnType;
|
|
16
|
+
/**
|
|
17
|
+
* Toggle a code block
|
|
18
|
+
*/
|
|
19
|
+
toggleCodeBlock: (attributes?: {
|
|
20
|
+
language: string;
|
|
21
|
+
}) => ReturnType;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
declare class CodeMirrorView implements NodeView {
|
|
26
|
+
name: string;
|
|
27
|
+
node: ProsemirrorNode;
|
|
28
|
+
view: EditorView;
|
|
29
|
+
dom: HTMLElement;
|
|
30
|
+
cm: CMView;
|
|
31
|
+
getPos: () => number;
|
|
32
|
+
updating: boolean;
|
|
33
|
+
constructor(options: CodeMirrorViewOptions);
|
|
34
|
+
forwardSelection(): void;
|
|
35
|
+
asProseMirrorSelection(doc: ProsemirrorNode): TextSelection;
|
|
36
|
+
dispatch(cmTr: CMTransaction): void;
|
|
37
|
+
mayBeEscape(unit: 'char' | 'line', dir: -1 | 1): Command;
|
|
38
|
+
update(node: ProsemirrorNode): boolean;
|
|
39
|
+
setSelection(anchor: number, head: number): void;
|
|
40
|
+
focus(): void;
|
|
41
|
+
selectNode(): void;
|
|
42
|
+
stopEvent(): boolean;
|
|
43
|
+
destroy(): void;
|
|
44
|
+
}
|
|
45
|
+
export default CodeMirrorView;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as CodeMirrorView } from './codemirrorView';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { EditorView } from 'prosemirror-view';
|
|
2
|
+
import type { Node as ProsemirrorNode } from 'prosemirror-model';
|
|
3
|
+
import type { Extension } from '@codemirror/state';
|
|
4
|
+
export interface ComputeChange {
|
|
5
|
+
from: number;
|
|
6
|
+
to: number;
|
|
7
|
+
text: string;
|
|
8
|
+
}
|
|
9
|
+
interface CMOptions {
|
|
10
|
+
extensions: Extension;
|
|
11
|
+
}
|
|
12
|
+
export declare type GetPos = () => number | undefined;
|
|
13
|
+
export interface CodeMirrorViewOptions {
|
|
14
|
+
node: ProsemirrorNode;
|
|
15
|
+
view: EditorView;
|
|
16
|
+
getPos: GetPos;
|
|
17
|
+
cmOptions?: CMOptions;
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
@@ -11,13 +11,18 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
11
11
|
focus: () => void;
|
|
12
12
|
clear: () => void;
|
|
13
13
|
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
14
|
+
modelValue: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
default: string;
|
|
17
|
+
required: false;
|
|
18
|
+
};
|
|
14
19
|
size: {
|
|
15
20
|
type: PropType<SearchSize>;
|
|
16
21
|
default: SearchSize;
|
|
17
22
|
};
|
|
18
23
|
placeholder: {
|
|
19
24
|
type: StringConstructor;
|
|
20
|
-
default:
|
|
25
|
+
default: string;
|
|
21
26
|
};
|
|
22
27
|
debounce: {
|
|
23
28
|
type: NumberConstructor;
|
|
@@ -32,13 +37,18 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
32
37
|
default: boolean;
|
|
33
38
|
};
|
|
34
39
|
}, import("@vue/composition-api").ExtractPropTypes<{
|
|
40
|
+
modelValue: {
|
|
41
|
+
type: StringConstructor;
|
|
42
|
+
default: string;
|
|
43
|
+
required: false;
|
|
44
|
+
};
|
|
35
45
|
size: {
|
|
36
46
|
type: PropType<SearchSize>;
|
|
37
47
|
default: SearchSize;
|
|
38
48
|
};
|
|
39
49
|
placeholder: {
|
|
40
50
|
type: StringConstructor;
|
|
41
|
-
default:
|
|
51
|
+
default: string;
|
|
42
52
|
};
|
|
43
53
|
debounce: {
|
|
44
54
|
type: NumberConstructor;
|
|
@@ -53,6 +63,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
53
63
|
default: boolean;
|
|
54
64
|
};
|
|
55
65
|
}>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
66
|
+
modelValue: string;
|
|
56
67
|
size: SearchSize;
|
|
57
68
|
placeholder: string;
|
|
58
69
|
debounce: number;
|
|
@@ -71,6 +82,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
71
82
|
focus: () => void;
|
|
72
83
|
clear: () => void;
|
|
73
84
|
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
|
|
85
|
+
modelValue: string;
|
|
74
86
|
size: SearchSize;
|
|
75
87
|
placeholder: string;
|
|
76
88
|
debounce: number;
|
|
@@ -79,6 +91,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
79
91
|
} & {} & {
|
|
80
92
|
[x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
81
93
|
}, {
|
|
94
|
+
modelValue: string;
|
|
82
95
|
size: SearchSize;
|
|
83
96
|
placeholder: string;
|
|
84
97
|
debounce: number;
|