@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
|
@@ -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;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { s as OrSearchV3 } from '../../OrSearch-
|
|
2
|
-
export { a as SearchSize } from '../../OrInputBox-
|
|
1
|
+
export { s as OrSearchV3 } from '../../OrSearch-e5a2e93e.js';
|
|
2
|
+
export { a as SearchSize } from '../../OrInputBox-6d1b6059.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import '@vueuse/core';
|
|
5
5
|
import '../../useClassAttribute-47fdb016.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { s as OrSelectV3 } from '../../OrSelect-7e813982.js';
|
|
2
|
-
export { a as SelectSize } from '../../OrInputBox-
|
|
2
|
+
export { a as SelectSize } from '../../OrInputBox-6d1b6059.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import '../../dropdown-open-0d314aa4.js';
|
|
5
5
|
import '../../useClassAttribute-47fdb016.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { s as OrTextareaV3 } from '../../OrTextarea-bb9ef3f2.js';
|
|
2
|
-
export { a as TextareaSize } from '../../OrInputBox-
|
|
2
|
+
export { a as TextareaSize } from '../../OrInputBox-6d1b6059.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import '../../useClassAttribute-47fdb016.js';
|
|
5
5
|
import '@vueuse/core';
|
package/dist/esm/v3/index.js
CHANGED
|
@@ -1,26 +1,27 @@
|
|
|
1
1
|
export { O as OR_AVATAR_SIZE, s as OrAvatar } from './OrAvatar-2808a314.js';
|
|
2
|
-
export { a as AvatarColor, A as AvatarSize, s as OrAvatarV3 } from './OrAvatar-
|
|
2
|
+
export { a as AvatarColor, A as AvatarSize, s as OrAvatarV3 } from './OrAvatar-53a4429d.js';
|
|
3
3
|
export { s as OrBottomSheetV3 } from './OrBottomSheet-62817aec.js';
|
|
4
4
|
export { s as OrButton, a as OrButtonColors, b as OrButtonSizes, O as OrButtonViews } from './OrButton-fca9019a.js';
|
|
5
5
|
export { b as BUTTON_COLOR, d as BUTTON_LOADER_TYPE, c as BUTTON_SIZE, B as BUTTON_TYPE, I as ICON_BUTTON_TYPE, s as OrButtonV2, a as OrIconButton } from './OrIconButton-8be9c89f.js';
|
|
6
|
-
export { a as ButtonColor, b as ButtonType, B as ButtonVariant, s as OrButtonV3 } from './OrButton-
|
|
6
|
+
export { a as ButtonColor, b as ButtonType, B as ButtonVariant, s as OrButtonV3 } from './OrButton-bb6bf8a9.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 {
|
|
9
|
+
export { D as DefaultCardCollectionViews, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from './OrCardCollection-2a6514f3.js';
|
|
10
10
|
export { s as OrCardV3 } from './OrCard-fd92f7c8.js';
|
|
11
11
|
export { a as OrCarousel, s as OrCarouselItem } from './OrCarouselItem-636d99a1.js';
|
|
12
12
|
export { s as OrCheckbox } from './OrCheckbox-ed4a19cf.js';
|
|
13
13
|
export { s as OrCheckboxV3 } from './OrCheckbox-3e139eac.js';
|
|
14
14
|
export { s as OrChip, a as OrChips } from './OrChips-9afba42f.js';
|
|
15
|
-
export { s as OrCode, O as OrCodeLanguages } from './OrCode-
|
|
15
|
+
export { s as OrCode, O as OrCodeLanguages } from './OrCode-5ed69c23.js';
|
|
16
16
|
export { s as OrCollapse } from './OrCollapse-445141ab.js';
|
|
17
17
|
export { s as OrColorPicker, h as amber, n as black, b as blue, m as blueGrey, k as brown, c as cyan, j as deepOrange, d as deepPurple, g as green, i as indigo, l as lightBlue, e as lightGreen, f as lime, o as orange, p as pink, a as purple, r as red, t as teal, w as white, y as yellow } from './OrColorPicker-189cb097.js';
|
|
18
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-5d56cbd3.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-98252eef.js';
|
|
23
23
|
export { s as OrErrorV3 } from './OrError-ec8c709d.js';
|
|
24
|
+
export { E as EmptyStateSize, s as OrEmptyStateV3 } from './OrEmptyState-bb8e3145.js';
|
|
24
25
|
export { a as ExpansionPanelColor, E as ExpansionPanelVariant, s as OrExpansionPanelV3 } from './OrExpansionPanel-311e64cf.js';
|
|
25
26
|
export { F as FabColor, s as OrFabV3 } from './OrFab-c8ae6e01.js';
|
|
26
27
|
export { s as OrFloating, a as OrFloatingHideStrategy, O as OrFloatingPlacements } from './OrFloating-5240e758.js';
|
|
@@ -33,7 +34,7 @@ export { I as InlineInputBoxSize, I as InlineInputSize, s as OrInlineInputBoxV3
|
|
|
33
34
|
export { I as InlineInputType, s as OrInlineInputV3 } from './OrInlineInput-31026cd0.js';
|
|
34
35
|
export { a as InlineTextEditTrimmingTypes, I as InlineTextEditTypes, s as OrInlineTextEdit } from './OrInlineTextEdit-1aa477b5.js';
|
|
35
36
|
export { s as OrInlineTextareaV3 } from './OrInlineTextarea-b28c3d8c.js';
|
|
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-
|
|
37
|
+
export { a as InputBoxSize, I as InputBoxVariant, a as InputSize, s as OrInputBoxV3, a as SearchSize, a as SelectSize, a as TextareaSize } from './OrInputBox-6d1b6059.js';
|
|
37
38
|
export { I as InputType, s as OrInputV3 } from './OrInput-41691fb3.js';
|
|
38
39
|
export { a as OrInput, b as OrNumberInput, c as OrPassword, d as OrSearch, s as OrTextarea } from './OrSearch-7cb2c91c.js';
|
|
39
40
|
export { s as OrLabel } from './OrLabel-876f8729.js';
|
|
@@ -58,7 +59,7 @@ export { s as OrProgressV3, P as ProgressColor, a as ProgressType } from './OrPr
|
|
|
58
59
|
export { s as OrRadio } from './OrRadio-c3ab11f2.js';
|
|
59
60
|
export { s as OrRadioGroup } from './OrRadioGroup-00785e41.js';
|
|
60
61
|
export { s as OrRadioV3 } from './OrRadio-54b6d0de.js';
|
|
61
|
-
export { s as OrSearchV3 } from './OrSearch-
|
|
62
|
+
export { s as OrSearchV3 } from './OrSearch-e5a2e93e.js';
|
|
62
63
|
export { s as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-171cad78.js';
|
|
63
64
|
export { s as OrSelect } from './OrSelect-0821b907.js';
|
|
64
65
|
export { s as OrSelectV3 } from './OrSelect-7e813982.js';
|
|
@@ -89,7 +90,7 @@ export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from './types-8
|
|
|
89
90
|
export { p as PropsV3, a as useQueueV3, u as useToastV3 } from './useToast-0665462d.js';
|
|
90
91
|
export { s as OrTooltip, a as OrTooltipContent } from './OrTooltip-78cd7f6b.js';
|
|
91
92
|
export { s as OrTooltipV3 } from './OrTooltip-50d27b4f.js';
|
|
92
|
-
export { s as OrRichTextEditorV3 } from './OrRichTextEditor-
|
|
93
|
+
export { s as OrRichTextEditorV3 } from './OrRichTextEditor-f1271eb6.js';
|
|
93
94
|
export { D as DropdownClose, a as DropdownOpen } from './dropdown-open-0d314aa4.js';
|
|
94
95
|
export { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
|
|
95
96
|
export { u as useElevation } from './useElevation-31bfe1f6.js';
|
|
@@ -104,6 +105,8 @@ import './style-inject.es-4c6f2515.js';
|
|
|
104
105
|
import '@vueuse/core';
|
|
105
106
|
import '@splidejs/splide';
|
|
106
107
|
import '@codemirror/state';
|
|
108
|
+
import '@codemirror/view';
|
|
109
|
+
import '@codemirror/commands';
|
|
107
110
|
import 'codemirror';
|
|
108
111
|
import '@codemirror/lang-html';
|
|
109
112
|
import '@codemirror/lang-css';
|
|
@@ -137,6 +140,9 @@ import '@tiptap/starter-kit';
|
|
|
137
140
|
import '@tiptap/extension-underline';
|
|
138
141
|
import '@tiptap/extension-heading';
|
|
139
142
|
import '@tiptap/extension-placeholder';
|
|
143
|
+
import './codemirrorView-8ea431d2.js';
|
|
144
|
+
import 'prosemirror-state';
|
|
145
|
+
import 'prosemirror-commands';
|
|
140
146
|
|
|
141
147
|
function getAbbreviation(text, limit) {
|
|
142
148
|
var _a;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onereach/ui-components",
|
|
3
|
-
"version": "2.70.0-beta.
|
|
3
|
+
"version": "2.70.0-beta.2159.0",
|
|
4
4
|
"description": "Vue components library for v2/3",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/auto/index.js",
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"switch:vue3": "node scripts/swap-vue.js 3 && vue-demi-switch 3"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
+
"@codemirror/commands": "^6.2.1",
|
|
34
35
|
"@codemirror/lang-css": "6.0.0",
|
|
35
36
|
"@codemirror/lang-html": "6.1.0",
|
|
36
37
|
"@codemirror/lang-javascript": "6.0.2",
|
package/src/components/index.ts
CHANGED
|
@@ -21,6 +21,7 @@ export * from './or-date-time-picker';
|
|
|
21
21
|
export * from './or-error';
|
|
22
22
|
export * from './or-error-tag-v3';
|
|
23
23
|
export * from './or-error-v3';
|
|
24
|
+
export * from './or-empty-state-v3';
|
|
24
25
|
export * from './or-expansion-panel-v3';
|
|
25
26
|
export * from './or-fab-v3';
|
|
26
27
|
export * from './or-floating';
|
|
@@ -2,7 +2,6 @@ import { Meta, StoryFn } from '@storybook/vue3';
|
|
|
2
2
|
import OrAvatarDocs from './OrAvatar.docs.mdx';
|
|
3
3
|
import OrAvatar from './OrAvatar.vue';
|
|
4
4
|
import { AvatarColor, AvatarSize } from './props';
|
|
5
|
-
import { OrIconV3 as OrIcon } from '../or-icon-v3';
|
|
6
5
|
import { getAbbreviation } from '../../utils/functions/text';
|
|
7
6
|
import { computed } from 'vue-demi';
|
|
8
7
|
|
|
@@ -39,6 +38,10 @@ export default {
|
|
|
39
38
|
colorSalt: {
|
|
40
39
|
control: { type: 'text' },
|
|
41
40
|
},
|
|
41
|
+
|
|
42
|
+
icon: {
|
|
43
|
+
control: { type: 'text' },
|
|
44
|
+
},
|
|
42
45
|
},
|
|
43
46
|
|
|
44
47
|
parameters: {
|
|
@@ -58,7 +61,6 @@ export default {
|
|
|
58
61
|
const DefaultTemplate: StoryFn<typeof OrAvatar> = (args) => ({
|
|
59
62
|
components: {
|
|
60
63
|
OrAvatar,
|
|
61
|
-
OrIcon,
|
|
62
64
|
},
|
|
63
65
|
|
|
64
66
|
setup() {
|
|
@@ -114,22 +116,22 @@ WithTextInSlot.args = {
|
|
|
114
116
|
colorSalt: 'A username',
|
|
115
117
|
};
|
|
116
118
|
|
|
117
|
-
export const
|
|
118
|
-
|
|
119
|
-
|
|
119
|
+
export const WithIcon = DefaultTemplate.bind({});
|
|
120
|
+
WithIcon.args = {
|
|
121
|
+
icon: 'store',
|
|
120
122
|
colorSalt: 'Any string here',
|
|
121
123
|
};
|
|
122
124
|
|
|
123
125
|
export const WithColor = DefaultTemplate.bind({});
|
|
124
126
|
WithColor.args = {
|
|
125
127
|
color: AvatarColor.blue,
|
|
126
|
-
|
|
128
|
+
icon: 'person',
|
|
127
129
|
};
|
|
128
130
|
|
|
129
131
|
export const XL = DefaultTemplate.bind({});
|
|
130
132
|
XL.args = {
|
|
131
133
|
size: AvatarSize.XL,
|
|
132
|
-
|
|
134
|
+
icon: 'person',
|
|
133
135
|
colorSalt: 'Big Avatar',
|
|
134
136
|
};
|
|
135
137
|
|
|
@@ -6,10 +6,16 @@
|
|
|
6
6
|
>
|
|
7
7
|
<slot>
|
|
8
8
|
<img
|
|
9
|
+
v-if="src"
|
|
9
10
|
:class="imageStyles"
|
|
10
11
|
:src="src"
|
|
11
12
|
:alt="''"
|
|
12
13
|
>
|
|
14
|
+
<or-icon
|
|
15
|
+
v-else-if="icon"
|
|
16
|
+
:icon="icon"
|
|
17
|
+
size="inherit"
|
|
18
|
+
/>
|
|
13
19
|
</slot>
|
|
14
20
|
</div>
|
|
15
21
|
</template>
|
|
@@ -19,10 +25,14 @@ import { computed, defineComponent, PropType, ref, watchPostEffect } from 'vue-d
|
|
|
19
25
|
import { useClassAttribute } from '../../hooks';
|
|
20
26
|
import { generateHslFromString, hslToColorString } from '../../utils/functions/color';
|
|
21
27
|
import { AvatarColor, AvatarSize } from './props';
|
|
22
|
-
import { AvatarImage, AvatarRoot, AvatarRootColors, AvatarRootSizes } from './styles';
|
|
28
|
+
import { AvatarImage, AvatarRoot, AvatarRootColors, AvatarRootSizes, AvatarRootAbbreviationSizes, AvatarRootIconSizes } from './styles';
|
|
29
|
+
import { OrIconV3 as OrIcon } from '../or-icon-v3';
|
|
23
30
|
|
|
24
31
|
export default defineComponent({
|
|
25
32
|
name: 'OrAvatar',
|
|
33
|
+
components: {
|
|
34
|
+
OrIcon,
|
|
35
|
+
},
|
|
26
36
|
|
|
27
37
|
inheritAttrs: false,
|
|
28
38
|
|
|
@@ -36,7 +46,10 @@ export default defineComponent({
|
|
|
36
46
|
type: String as PropType<AvatarSize>,
|
|
37
47
|
default: AvatarSize.M,
|
|
38
48
|
},
|
|
39
|
-
|
|
49
|
+
icon: {
|
|
50
|
+
type: String,
|
|
51
|
+
default: undefined,
|
|
52
|
+
},
|
|
40
53
|
color: {
|
|
41
54
|
type: String as PropType<AvatarColor>,
|
|
42
55
|
default: AvatarColor.auto,
|
|
@@ -58,6 +71,9 @@ export default defineComponent({
|
|
|
58
71
|
// Refs
|
|
59
72
|
const root = ref<HTMLElement>();
|
|
60
73
|
|
|
74
|
+
const isIcon = computed(() => {
|
|
75
|
+
return !props.icon;
|
|
76
|
+
});
|
|
61
77
|
// Styles
|
|
62
78
|
const classAttribute = useClassAttribute();
|
|
63
79
|
|
|
@@ -66,6 +82,10 @@ export default defineComponent({
|
|
|
66
82
|
...AvatarRoot,
|
|
67
83
|
...AvatarRootSizes[props.size],
|
|
68
84
|
...AvatarRootColors[props.color],
|
|
85
|
+
...(isIcon.value
|
|
86
|
+
? AvatarRootAbbreviationSizes[props.size]
|
|
87
|
+
: AvatarRootIconSizes[props.size]
|
|
88
|
+
),
|
|
69
89
|
classAttribute.value,
|
|
70
90
|
]);
|
|
71
91
|
|
|
@@ -27,36 +27,30 @@ export const AvatarRootSizes: Record<AvatarSize, string[]> = {
|
|
|
27
27
|
// Box
|
|
28
28
|
'w-[80px]',
|
|
29
29
|
'h-[80px]',
|
|
30
|
-
|
|
31
|
-
// Typography
|
|
32
|
-
'text-[32px]',
|
|
33
30
|
],
|
|
34
31
|
|
|
35
32
|
'l': [
|
|
36
33
|
// Box
|
|
37
34
|
'w-[64px]',
|
|
38
35
|
'h-[64px]',
|
|
39
|
-
|
|
40
|
-
// Typography
|
|
41
|
-
'text-[24px]',
|
|
42
36
|
],
|
|
43
37
|
|
|
44
38
|
'm': [
|
|
45
39
|
// Box
|
|
46
40
|
'w-[40px]',
|
|
47
41
|
'h-[40px]',
|
|
48
|
-
|
|
49
|
-
// Typography
|
|
50
|
-
'text-[16px]',
|
|
51
42
|
],
|
|
52
43
|
|
|
53
44
|
's': [
|
|
54
45
|
// Box
|
|
55
46
|
'w-[32px]',
|
|
56
47
|
'h-[32px]',
|
|
48
|
+
],
|
|
57
49
|
|
|
58
|
-
|
|
59
|
-
|
|
50
|
+
'xs': [
|
|
51
|
+
// Box
|
|
52
|
+
'w-[24px]',
|
|
53
|
+
'h-[24px]',
|
|
60
54
|
],
|
|
61
55
|
};
|
|
62
56
|
|
|
@@ -97,3 +91,47 @@ export const AvatarRootColors: Record<AvatarColor, string[]> = {
|
|
|
97
91
|
'dark:text-overlay-dark',
|
|
98
92
|
],
|
|
99
93
|
};
|
|
94
|
+
|
|
95
|
+
export const AvatarRootAbbreviationSizes: Record<AvatarSize, string[]> = {
|
|
96
|
+
'xl': [
|
|
97
|
+
'typography-headline-1',
|
|
98
|
+
],
|
|
99
|
+
|
|
100
|
+
'l': [
|
|
101
|
+
'typography-headline-1',
|
|
102
|
+
],
|
|
103
|
+
|
|
104
|
+
'm': [
|
|
105
|
+
'typography-body-1-bold',
|
|
106
|
+
],
|
|
107
|
+
|
|
108
|
+
's': [
|
|
109
|
+
'typography-body-1-bold',
|
|
110
|
+
],
|
|
111
|
+
|
|
112
|
+
'xs': [
|
|
113
|
+
'typography-caption-semibold',
|
|
114
|
+
],
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
export const AvatarRootIconSizes: Record<AvatarSize, string[]> = {
|
|
118
|
+
'xl': [
|
|
119
|
+
'text-[40px]',
|
|
120
|
+
],
|
|
121
|
+
|
|
122
|
+
'l': [
|
|
123
|
+
'text-[32px]',
|
|
124
|
+
],
|
|
125
|
+
|
|
126
|
+
'm': [
|
|
127
|
+
'text-[20px]',
|
|
128
|
+
],
|
|
129
|
+
|
|
130
|
+
's': [
|
|
131
|
+
'text-[16px]',
|
|
132
|
+
],
|
|
133
|
+
|
|
134
|
+
'xs': [
|
|
135
|
+
'text-[16px]',
|
|
136
|
+
],
|
|
137
|
+
};
|
|
@@ -7,6 +7,9 @@ export const ButtonRoot: string[] = [
|
|
|
7
7
|
// Shape
|
|
8
8
|
'rounded-md',
|
|
9
9
|
|
|
10
|
+
// Sizing
|
|
11
|
+
'min-w-[96px]',
|
|
12
|
+
|
|
10
13
|
// Interactivity
|
|
11
14
|
'interactivity-auto',
|
|
12
15
|
|
|
@@ -46,6 +49,9 @@ export const ButtonRootVariants: Record<ButtonVariant, string[]> = {
|
|
|
46
49
|
'link': [
|
|
47
50
|
// Spacing
|
|
48
51
|
'gap-sm md:gap-xs',
|
|
52
|
+
|
|
53
|
+
// Sizing
|
|
54
|
+
'min-w-[auto]',
|
|
49
55
|
],
|
|
50
56
|
};
|
|
51
57
|
|