@mlightcad/ribbon 0.0.1 → 0.0.3
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/README.md +41 -3
- package/dist/components/Ribbon.vue.d.ts +102 -0
- package/dist/components/RibbonCollection.vue.d.ts +41 -0
- package/dist/components/RibbonGroup.vue.d.ts +77 -0
- package/dist/components/RibbonGroupContent.vue.d.ts +39 -0
- package/dist/components/RibbonItemHost.vue.d.ts +52 -0
- package/dist/components/RibbonTab.vue.d.ts +47 -0
- package/dist/components/RibbonTabs.vue.d.ts +34 -0
- package/dist/composables/useRibbonState.d.ts +17 -0
- package/dist/context.d.ts +3 -0
- package/{src/ribbon/index.ts → dist/index.d.ts} +15 -43
- package/dist/items/RibbonGallery.vue.d.ts +48 -0
- package/dist/items/RibbonGroupButton.vue.d.ts +49 -0
- package/dist/items/RibbonTemplateItem.vue.d.ts +40 -0
- package/dist/ml-ribbon.css +2 -0
- package/dist/ml-ribbon.es.js +1490 -0
- package/dist/ml-ribbon.umd.js +1 -0
- package/dist/modules/RibbonBackstage.vue.d.ts +61 -0
- package/dist/modules/RibbonContextualTabs.vue.d.ts +41 -0
- package/dist/modules/RibbonFileMenu.vue.d.ts +44 -0
- package/dist/modules/RibbonKeyTips.vue.d.ts +39 -0
- package/dist/types.d.ts +130 -0
- package/package.json +26 -2
- package/.github/workflows/ci.yml +0 -110
- package/.vscode/extensions.json +0 -3
- package/AGENTS.md +0 -42
- package/docs/requirements.md +0 -96
- package/eslint.config.js +0 -41
- package/images/ribbon.jpg +0 -0
- package/index.html +0 -13
- package/playwright/ribbon.spec.ts +0 -6
- package/playwright.config.ts +0 -10
- package/public/favicon.svg +0 -1
- package/public/icons.svg +0 -24
- package/src/App.vue +0 -418
- package/src/assets/hero.png +0 -0
- package/src/assets/vite.svg +0 -1
- package/src/assets/vue.svg +0 -1
- package/src/components/HelloWorld.vue +0 -106
- package/src/main.ts +0 -9
- package/src/ribbon/components/Ribbon.vue +0 -844
- package/src/ribbon/components/RibbonCollection.vue +0 -51
- package/src/ribbon/components/RibbonGroup.vue +0 -327
- package/src/ribbon/components/RibbonGroupContent.vue +0 -61
- package/src/ribbon/components/RibbonItemHost.vue +0 -221
- package/src/ribbon/components/RibbonTab.vue +0 -44
- package/src/ribbon/components/RibbonTabs.vue +0 -49
- package/src/ribbon/composables/useRibbonState.ts +0 -272
- package/src/ribbon/context.ts +0 -4
- package/src/ribbon/items/RibbonGallery.vue +0 -78
- package/src/ribbon/items/RibbonGroupButton.vue +0 -85
- package/src/ribbon/items/RibbonTemplateItem.vue +0 -38
- package/src/ribbon/modules/RibbonBackstage.vue +0 -69
- package/src/ribbon/modules/RibbonContextualTabs.vue +0 -65
- package/src/ribbon/modules/RibbonFileMenu.vue +0 -88
- package/src/ribbon/modules/RibbonKeyTips.vue +0 -114
- package/src/ribbon/styles/ribbon.css +0 -925
- package/src/ribbon/types.ts +0 -162
- package/src/style.css +0 -328
- package/src/tests/ribbon.spec.ts +0 -830
- package/src/tests/setup.ts +0 -4
- package/tools/release.mjs +0 -107
- package/tsconfig.app.json +0 -14
- package/tsconfig.json +0 -7
- package/tsconfig.node.json +0 -24
- package/vite.config.ts +0 -38
package/src/assets/vite.svg
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="77" height="47" fill="none" aria-labelledby="vite-logo-title" viewBox="0 0 77 47"><title id="vite-logo-title">Vite</title><style>.parenthesis{fill:#000}@media (prefers-color-scheme:dark){.parenthesis{fill:#fff}}</style><path fill="#9135ff" d="M40.151 45.71c-.663.844-2.02.374-2.02-.699V34.708a2.26 2.26 0 0 0-2.262-2.262H24.493c-.92 0-1.457-1.04-.92-1.788l7.479-10.471c1.07-1.498 0-3.578-1.842-3.578H15.443c-.92 0-1.456-1.04-.92-1.788l9.696-13.576c.213-.297.556-.474.92-.474h28.894c.92 0 1.456 1.04.92 1.788l-7.48 10.472c-1.07 1.497 0 3.578 1.842 3.578h11.376c.944 0 1.474 1.087.89 1.83L40.153 45.712z"/><mask id="a" width="48" height="47" x="14" y="0" maskUnits="userSpaceOnUse" style="mask-type:alpha"><path fill="#000" d="M40.047 45.71c-.663.843-2.02.374-2.02-.699V34.708a2.26 2.26 0 0 0-2.262-2.262H24.389c-.92 0-1.457-1.04-.92-1.788l7.479-10.472c1.07-1.497 0-3.578-1.842-3.578H15.34c-.92 0-1.456-1.04-.92-1.788l9.696-13.575c.213-.297.556-.474.92-.474H53.93c.92 0 1.456 1.04.92 1.788L47.37 13.03c-1.07 1.498 0 3.578 1.842 3.578h11.376c.944 0 1.474 1.088.89 1.831L40.049 45.712z"/></mask><g mask="url(#a)"><g filter="url(#b)"><ellipse cx="5.508" cy="14.704" fill="#eee6ff" rx="5.508" ry="14.704" transform="rotate(269.814 20.96 11.29)scale(-1 1)"/></g><g filter="url(#c)"><ellipse cx="10.399" cy="29.851" fill="#eee6ff" rx="10.399" ry="29.851" transform="rotate(89.814 -16.902 -8.275)scale(1 -1)"/></g><g filter="url(#d)"><ellipse cx="5.508" cy="30.487" fill="#8900ff" rx="5.508" ry="30.487" transform="rotate(89.814 -19.197 -7.127)scale(1 -1)"/></g><g filter="url(#e)"><ellipse cx="5.508" cy="30.599" fill="#8900ff" rx="5.508" ry="30.599" transform="rotate(89.814 -25.928 4.177)scale(1 -1)"/></g><g filter="url(#f)"><ellipse cx="5.508" cy="30.599" fill="#8900ff" rx="5.508" ry="30.599" transform="rotate(89.814 -25.738 5.52)scale(1 -1)"/></g><g filter="url(#g)"><ellipse cx="14.072" cy="22.078" fill="#eee6ff" rx="14.072" ry="22.078" transform="rotate(93.35 31.245 55.578)scale(-1 1)"/></g><g filter="url(#h)"><ellipse cx="3.47" cy="21.501" fill="#8900ff" rx="3.47" ry="21.501" transform="rotate(89.009 35.419 55.202)scale(-1 1)"/></g><g filter="url(#i)"><ellipse cx="3.47" cy="21.501" fill="#8900ff" rx="3.47" ry="21.501" transform="rotate(89.009 35.419 55.202)scale(-1 1)"/></g><g filter="url(#j)"><ellipse cx="14.592" cy="9.743" fill="#8900ff" rx="4.407" ry="29.108" transform="rotate(39.51 14.592 9.743)"/></g><g filter="url(#k)"><ellipse cx="61.728" cy="-5.321" fill="#8900ff" rx="4.407" ry="29.108" transform="rotate(37.892 61.728 -5.32)"/></g><g filter="url(#l)"><ellipse cx="55.618" cy="7.104" fill="#00c2ff" rx="5.971" ry="9.665" transform="rotate(37.892 55.618 7.104)"/></g><g filter="url(#m)"><ellipse cx="12.326" cy="39.103" fill="#8900ff" rx="4.407" ry="29.108" transform="rotate(37.892 12.326 39.103)"/></g><g filter="url(#n)"><ellipse cx="12.326" cy="39.103" fill="#8900ff" rx="4.407" ry="29.108" transform="rotate(37.892 12.326 39.103)"/></g><g filter="url(#o)"><ellipse cx="49.857" cy="30.678" fill="#8900ff" rx="4.407" ry="29.108" transform="rotate(37.892 49.857 30.678)"/></g><g filter="url(#p)"><ellipse cx="52.623" cy="33.171" fill="#00c2ff" rx="5.971" ry="15.297" transform="rotate(37.892 52.623 33.17)"/></g></g><path d="M6.919 0c-9.198 13.166-9.252 33.575 0 46.789h6.215c-9.25-13.214-9.196-33.623 0-46.789zm62.424 0h-6.215c9.198 13.166 9.252 33.575 0 46.789h6.215c9.25-13.214 9.196-33.623 0-46.789" class="parenthesis"/><defs><filter id="b" width="60.045" height="41.654" x="-5.564" y="16.92" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17286" stdDeviation="7.659"/></filter><filter id="c" width="90.34" height="51.437" x="-40.407" y="-6.762" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17286" stdDeviation="7.659"/></filter><filter id="d" width="79.355" height="29.4" x="-35.435" y="2.801" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17286" stdDeviation="4.596"/></filter><filter id="e" width="79.579" height="29.4" x="-30.84" y="20.8" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17286" stdDeviation="4.596"/></filter><filter id="f" width="79.579" height="29.4" x="-29.307" y="21.949" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17286" stdDeviation="4.596"/></filter><filter id="g" width="74.749" height="58.852" x="29.961" y="-17.13" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17286" stdDeviation="7.659"/></filter><filter id="h" width="61.377" height="25.362" x="37.754" y="3.055" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17286" stdDeviation="4.596"/></filter><filter id="i" width="61.377" height="25.362" x="37.754" y="3.055" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17286" stdDeviation="4.596"/></filter><filter id="j" width="56.045" height="63.649" x="-13.43" y="-22.082" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17286" stdDeviation="4.596"/></filter><filter id="k" width="54.814" height="64.646" x="34.321" y="-37.644" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17286" stdDeviation="4.596"/></filter><filter id="l" width="33.541" height="35.313" x="38.847" y="-10.552" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17286" stdDeviation="4.596"/></filter><filter id="m" width="54.814" height="64.646" x="-15.081" y="6.78" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17286" stdDeviation="4.596"/></filter><filter id="n" width="54.814" height="64.646" x="-15.081" y="6.78" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17286" stdDeviation="4.596"/></filter><filter id="o" width="54.814" height="64.646" x="22.45" y="-1.645" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17286" stdDeviation="4.596"/></filter><filter id="p" width="39.409" height="43.623" x="32.919" y="11.36" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17286" stdDeviation="4.596"/></filter></defs></svg>
|
package/src/assets/vue.svg
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="37.07" height="36" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 198"><path fill="#41B883" d="M204.8 0H256L128 220.8L0 0h97.92L128 51.2L157.44 0h47.36Z"></path><path fill="#41B883" d="m0 0l128 220.8L256 0h-51.2L128 132.48L50.56 0H0Z"></path><path fill="#35495E" d="M50.56 0L128 133.12L204.8 0h-47.36L128 51.2L97.92 0H50.56Z"></path></svg>
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { ref } from 'vue'
|
|
3
|
-
import viteLogo from '../assets/vite.svg'
|
|
4
|
-
import heroImg from '../assets/hero.png'
|
|
5
|
-
import vueLogo from '../assets/vue.svg'
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* @component HelloWorld
|
|
9
|
-
* @description
|
|
10
|
-
* Default Vite/Vue onboarding component kept for local sandboxing and starter UX checks.
|
|
11
|
-
*
|
|
12
|
-
* @usage
|
|
13
|
-
* Render this component in any view to verify asset loading and reactive updates.
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* ```vue
|
|
17
|
-
* <HelloWorld />
|
|
18
|
-
* ```
|
|
19
|
-
*/
|
|
20
|
-
const count = ref(0)
|
|
21
|
-
</script>
|
|
22
|
-
|
|
23
|
-
<template>
|
|
24
|
-
<section id="center">
|
|
25
|
-
<div class="hero">
|
|
26
|
-
<img :src="heroImg" class="base" width="170" height="179" alt="" />
|
|
27
|
-
<img :src="vueLogo" class="framework" alt="Vue logo" />
|
|
28
|
-
<img :src="viteLogo" class="vite" alt="Vite logo" />
|
|
29
|
-
</div>
|
|
30
|
-
<div>
|
|
31
|
-
<h1>Get started</h1>
|
|
32
|
-
<p>Edit <code>src/App.vue</code> and save to test <code>HMR</code></p>
|
|
33
|
-
</div>
|
|
34
|
-
<button class="counter" @click="count++">Count is {{ count }}</button>
|
|
35
|
-
</section>
|
|
36
|
-
|
|
37
|
-
<div class="ticks"></div>
|
|
38
|
-
|
|
39
|
-
<section id="next-steps">
|
|
40
|
-
<div id="docs">
|
|
41
|
-
<svg class="icon" role="presentation" aria-hidden="true">
|
|
42
|
-
<use href="/icons.svg#documentation-icon"></use>
|
|
43
|
-
</svg>
|
|
44
|
-
<h2>Documentation</h2>
|
|
45
|
-
<p>Your questions, answered</p>
|
|
46
|
-
<ul>
|
|
47
|
-
<li>
|
|
48
|
-
<a href="https://vite.dev/" target="_blank">
|
|
49
|
-
<img class="logo" :src="viteLogo" alt="" />
|
|
50
|
-
Explore Vite
|
|
51
|
-
</a>
|
|
52
|
-
</li>
|
|
53
|
-
<li>
|
|
54
|
-
<a href="https://vuejs.org/" target="_blank">
|
|
55
|
-
<img class="button-icon" :src="vueLogo" alt="" />
|
|
56
|
-
Learn more
|
|
57
|
-
</a>
|
|
58
|
-
</li>
|
|
59
|
-
</ul>
|
|
60
|
-
</div>
|
|
61
|
-
<div id="social">
|
|
62
|
-
<svg class="icon" role="presentation" aria-hidden="true">
|
|
63
|
-
<use href="/icons.svg#social-icon"></use>
|
|
64
|
-
</svg>
|
|
65
|
-
<h2>Connect with us</h2>
|
|
66
|
-
<p>Join the Vite community</p>
|
|
67
|
-
<ul>
|
|
68
|
-
<li>
|
|
69
|
-
<a href="https://github.com/vitejs/vite" target="_blank">
|
|
70
|
-
<svg class="button-icon" role="presentation" aria-hidden="true">
|
|
71
|
-
<use href="/icons.svg#github-icon"></use>
|
|
72
|
-
</svg>
|
|
73
|
-
GitHub
|
|
74
|
-
</a>
|
|
75
|
-
</li>
|
|
76
|
-
<li>
|
|
77
|
-
<a href="https://chat.vite.dev/" target="_blank">
|
|
78
|
-
<svg class="button-icon" role="presentation" aria-hidden="true">
|
|
79
|
-
<use href="/icons.svg#discord-icon"></use>
|
|
80
|
-
</svg>
|
|
81
|
-
Discord
|
|
82
|
-
</a>
|
|
83
|
-
</li>
|
|
84
|
-
<li>
|
|
85
|
-
<a href="https://x.com/vite_js" target="_blank">
|
|
86
|
-
<svg class="button-icon" role="presentation" aria-hidden="true">
|
|
87
|
-
<use href="/icons.svg#x-icon"></use>
|
|
88
|
-
</svg>
|
|
89
|
-
X.com
|
|
90
|
-
</a>
|
|
91
|
-
</li>
|
|
92
|
-
<li>
|
|
93
|
-
<a href="https://bsky.app/profile/vite.dev" target="_blank">
|
|
94
|
-
<svg class="button-icon" role="presentation" aria-hidden="true">
|
|
95
|
-
<use href="/icons.svg#bluesky-icon"></use>
|
|
96
|
-
</svg>
|
|
97
|
-
Bluesky
|
|
98
|
-
</a>
|
|
99
|
-
</li>
|
|
100
|
-
</ul>
|
|
101
|
-
</div>
|
|
102
|
-
</section>
|
|
103
|
-
|
|
104
|
-
<div class="ticks"></div>
|
|
105
|
-
<section id="spacer"></section>
|
|
106
|
-
</template>
|
package/src/main.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { createApp } from 'vue'
|
|
2
|
-
import ElementPlus from 'element-plus'
|
|
3
|
-
import 'element-plus/dist/index.css'
|
|
4
|
-
import 'element-plus/theme-chalk/dark/css-vars.css'
|
|
5
|
-
import './style.css'
|
|
6
|
-
import './ribbon/styles/ribbon.css'
|
|
7
|
-
import App from './App.vue'
|
|
8
|
-
|
|
9
|
-
createApp(App).use(ElementPlus).mount('#app')
|