@muibook/components 1.0.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/LICENSE +21 -0
- package/dist/create-mui-app/assets/index-DfcB3F-s.js +597 -0
- package/dist/create-mui-app/create-mui-app.css +1 -0
- package/dist/create-mui-app/index.html +21 -0
- package/dist/esm/_redirects +1 -0
- package/dist/esm/favicon.ico +0 -0
- package/dist/esm/index/index.js +71 -0
- package/dist/esm/logo192.png +0 -0
- package/dist/esm/mui-accordion/block/index.js +168 -0
- package/dist/esm/mui-accordion/group/index.js +26 -0
- package/dist/esm/mui-accordion/index.js +3 -0
- package/dist/esm/mui-accordion/inline/index.js +96 -0
- package/dist/esm/mui-addon/index.js +46 -0
- package/dist/esm/mui-alert/index.js +109 -0
- package/dist/esm/mui-badge/index.js +43 -0
- package/dist/esm/mui-body/index.js +82 -0
- package/dist/esm/mui-button/index.js +296 -0
- package/dist/esm/mui-button-group/index.js +23 -0
- package/dist/esm/mui-card/body/index.js +48 -0
- package/dist/esm/mui-card/card/index.js +43 -0
- package/dist/esm/mui-card/footer/index.js +62 -0
- package/dist/esm/mui-card/header/index.js +29 -0
- package/dist/esm/mui-card/index.js +4 -0
- package/dist/esm/mui-carousel/controller/index.js +117 -0
- package/dist/esm/mui-carousel/index.js +2 -0
- package/dist/esm/mui-carousel/panel/index.js +29 -0
- package/dist/esm/mui-code/index.js +56 -0
- package/dist/esm/mui-container/index.js +57 -0
- package/dist/esm/mui-field/index.js +44 -0
- package/dist/esm/mui-file-upload/index.js +100 -0
- package/dist/esm/mui-grid/index.js +42 -0
- package/dist/esm/mui-heading/index.js +36 -0
- package/dist/esm/mui-icons/accessibility/index.js +55 -0
- package/dist/esm/mui-icons/add/index.js +55 -0
- package/dist/esm/mui-icons/attention/index.js +55 -0
- package/dist/esm/mui-icons/check/index.js +55 -0
- package/dist/esm/mui-icons/close/index.js +55 -0
- package/dist/esm/mui-icons/down-chevron/index.js +55 -0
- package/dist/esm/mui-icons/globe/index.js +55 -0
- package/dist/esm/mui-icons/grid/index.js +55 -0
- package/dist/esm/mui-icons/index.js +23 -0
- package/dist/esm/mui-icons/info/index.js +55 -0
- package/dist/esm/mui-icons/left-arrow/index.js +55 -0
- package/dist/esm/mui-icons/left-chevron/index.js +55 -0
- package/dist/esm/mui-icons/menu/index.js +55 -0
- package/dist/esm/mui-icons/message/index.js +55 -0
- package/dist/esm/mui-icons/moon/index.js +55 -0
- package/dist/esm/mui-icons/notification/index.js +55 -0
- package/dist/esm/mui-icons/right-chevron/index.js +55 -0
- package/dist/esm/mui-icons/stop/index.js +55 -0
- package/dist/esm/mui-icons/subtract/index.js +55 -0
- package/dist/esm/mui-icons/sun/index.js +55 -0
- package/dist/esm/mui-icons/toggle/index.js +72 -0
- package/dist/esm/mui-icons/up-arrow/index.js +55 -0
- package/dist/esm/mui-icons/up-chevron/index.js +55 -0
- package/dist/esm/mui-icons/warning/index.js +55 -0
- package/dist/esm/mui-image/index.js +49 -0
- package/dist/esm/mui-input/index.js +207 -0
- package/dist/esm/mui-link/index.js +263 -0
- package/dist/esm/mui-list/index.js +2 -0
- package/dist/esm/mui-list/item/index.js +65 -0
- package/dist/esm/mui-list/list/index.js +31 -0
- package/dist/esm/mui-message/index.js +90 -0
- package/dist/esm/mui-quote/index.js +27 -0
- package/dist/esm/mui-responsive/index.js +30 -0
- package/dist/esm/mui-rule/index.js +32 -0
- package/dist/esm/mui-select/index.js +204 -0
- package/dist/esm/mui-slat/index.js +21 -0
- package/dist/esm/mui-smart-card/index.js +335 -0
- package/dist/esm/mui-stack/hstack/index.js +52 -0
- package/dist/esm/mui-stack/index.js +2 -0
- package/dist/esm/mui-stack/vstack/index.js +52 -0
- package/dist/esm/mui-switch/index.js +143 -0
- package/dist/esm/mui-table/cell/index.js +64 -0
- package/dist/esm/mui-table/index.js +4 -0
- package/dist/esm/mui-table/row/index.js +26 -0
- package/dist/esm/mui-table/row-group/index.js +24 -0
- package/dist/esm/mui-table/table/index.js +21 -0
- package/dist/esm/mui-tabs/controller/index.js +23 -0
- package/dist/esm/mui-tabs/index.js +4 -0
- package/dist/esm/mui-tabs/item/index.js +61 -0
- package/dist/esm/mui-tabs/panel/index.js +32 -0
- package/dist/esm/mui-tabs/tab-bar/index.js +136 -0
- package/dist/esm/mui-utils/part-map/index.js +49 -0
- package/dist/muibook/_redirects +1 -0
- package/dist/muibook/assets/base-B4dO4n0A.js +198 -0
- package/dist/muibook/assets/components-YZ3tjmIt.js +122 -0
- package/dist/muibook/assets/contextual-D648xs_u.js +59 -0
- package/dist/muibook/assets/image-1080-Bg-8LoSs.js +1 -0
- package/dist/muibook/assets/index-0bBJZTXh.js +135 -0
- package/dist/muibook/assets/index-B4Lbi-ZX.js +82 -0
- package/dist/muibook/assets/index-BJJtzLti.js +144 -0
- package/dist/muibook/assets/index-BN6UEWFf.js +439 -0
- package/dist/muibook/assets/index-Bc68V_xw.js +140 -0
- package/dist/muibook/assets/index-BnpaoEYs.js +386 -0
- package/dist/muibook/assets/index-BrZBJGo2.js +4276 -0
- package/dist/muibook/assets/index-Bx-SU7T2.js +98 -0
- package/dist/muibook/assets/index-C10sNeH-.js +64 -0
- package/dist/muibook/assets/index-C4ZnvuXX.js +333 -0
- package/dist/muibook/assets/index-C7Tqc5BR.js +325 -0
- package/dist/muibook/assets/index-CAkZAmud.js +514 -0
- package/dist/muibook/assets/index-CCegrD2J.js +130 -0
- package/dist/muibook/assets/index-CHZJlumm.js +95 -0
- package/dist/muibook/assets/index-CPZ8jubJ.js +308 -0
- package/dist/muibook/assets/index-CSLqxg9p.js +73 -0
- package/dist/muibook/assets/index-CT3BsW8R.js +177 -0
- package/dist/muibook/assets/index-CYYG9dAN.js +270 -0
- package/dist/muibook/assets/index-CdghbWW3.js +42 -0
- package/dist/muibook/assets/index-CfD1WQYQ.js +106 -0
- package/dist/muibook/assets/index-Ch40uilB.js +52 -0
- package/dist/muibook/assets/index-CwAai54c.js +263 -0
- package/dist/muibook/assets/index-CyWt9f96.js +336 -0
- package/dist/muibook/assets/index-D8hXO6aa.js +131 -0
- package/dist/muibook/assets/index-DBkw7VLa.js +431 -0
- package/dist/muibook/assets/index-DI0vNTNv.js +56 -0
- package/dist/muibook/assets/index-DNImaJPY.js +96 -0
- package/dist/muibook/assets/index-DP6CCnt0.js +257 -0
- package/dist/muibook/assets/index-DR5X8zCc.js +67 -0
- package/dist/muibook/assets/index-DZQ8pS6y.js +133 -0
- package/dist/muibook/assets/index-DlZ1b9ZK.js +233 -0
- package/dist/muibook/assets/index-DwnvCJk0.js +177 -0
- package/dist/muibook/assets/index-_4AZFkzS.js +328 -0
- package/dist/muibook/assets/index-dkW0Vbeg.js +429 -0
- package/dist/muibook/assets/index-ehE10GAP.js +40 -0
- package/dist/muibook/assets/index-icuV1guL.js +69 -0
- package/dist/muibook/assets/index-qOE8f0sK.js +72 -0
- package/dist/muibook/assets/layout-BT0xIYa9.js +184 -0
- package/dist/muibook/assets/mui-D6S1tQ24.js +1 -0
- package/dist/muibook/assets/mui-logo-mobile-DuEMz_jq.js +31 -0
- package/dist/muibook/assets/semantic-cbNjeY5p.js +111 -0
- package/dist/muibook/assets/spacing-DY3cAXq0.js +82 -0
- package/dist/muibook/assets/surface-CMaW9FgJ.js +148 -0
- package/dist/muibook/assets/text-TVCTYde0.js +130 -0
- package/dist/muibook/assets/visual-B_21dq90.js +96 -0
- package/dist/muibook/buttercup.png +0 -0
- package/dist/muibook/create-mui-app.jpg +0 -0
- package/dist/muibook/crystal.png +0 -0
- package/dist/muibook/diamond.png +0 -0
- package/dist/muibook/emerald.svg +13 -0
- package/dist/muibook/favicon.ico +0 -0
- package/dist/muibook/hero-guides.png +0 -0
- package/dist/muibook/hero-outcomes.png +0 -0
- package/dist/muibook/image-1080.png +0 -0
- package/dist/muibook/image-220.png +0 -0
- package/dist/muibook/image-395.png +0 -0
- package/dist/muibook/index.html +38 -0
- package/dist/muibook/logo192.png +0 -0
- package/dist/muibook/mui-tokens.jpg +0 -0
- package/dist/muibook/muibook.css +1 -0
- package/dist/muibook/premier.png +0 -0
- package/dist/muibook/ruby.svg +13 -0
- package/dist/muibook/sapphire.png +0 -0
- package/dist/muibook/sapphire.svg +13 -0
- package/dist/muibook/snowy-mint.png +0 -0
- package/dist/types/components/mui-accordion/block/index.d.ts +2 -0
- package/dist/types/components/mui-accordion/group/index.d.ts +1 -0
- package/dist/types/components/mui-accordion/index.d.ts +3 -0
- package/dist/types/components/mui-accordion/inline/index.d.ts +2 -0
- package/dist/types/components/mui-accordion/mui-accordion-block/index.d.ts +2 -0
- package/dist/types/components/mui-accordion/mui-accordion-group/index.d.ts +1 -0
- package/dist/types/components/mui-accordion/mui-accordion-inline/index.d.ts +2 -0
- package/dist/types/components/mui-addon/index.d.ts +1 -0
- package/dist/types/components/mui-alert/index.d.ts +1 -0
- package/dist/types/components/mui-badge/index.d.ts +1 -0
- package/dist/types/components/mui-body/index.d.ts +1 -0
- package/dist/types/components/mui-button/index.d.ts +1 -0
- package/dist/types/components/mui-button-group/index.d.ts +1 -0
- package/dist/types/components/mui-card/body/index.d.ts +1 -0
- package/dist/types/components/mui-card/card/index.d.ts +1 -0
- package/dist/types/components/mui-card/footer/index.d.ts +1 -0
- package/dist/types/components/mui-card/header/index.d.ts +1 -0
- package/dist/types/components/mui-card/index.d.ts +4 -0
- package/dist/types/components/mui-carousel/controller/index.d.ts +1 -0
- package/dist/types/components/mui-carousel/index.d.ts +2 -0
- package/dist/types/components/mui-carousel/panel/index.d.ts +1 -0
- package/dist/types/components/mui-code/index.d.ts +1 -0
- package/dist/types/components/mui-container/index.d.ts +1 -0
- package/dist/types/components/mui-field/index.d.ts +1 -0
- package/dist/types/components/mui-file-upload/index.d.ts +1 -0
- package/dist/types/components/mui-grid/index.d.ts +1 -0
- package/dist/types/components/mui-heading/index.d.ts +1 -0
- package/dist/types/components/mui-icons/accessibility.d.ts +1 -0
- package/dist/types/components/mui-icons/add.d.ts +1 -0
- package/dist/types/components/mui-icons/attention.d.ts +1 -0
- package/dist/types/components/mui-icons/check.d.ts +1 -0
- package/dist/types/components/mui-icons/chevron.d.ts +1 -0
- package/dist/types/components/mui-icons/close.d.ts +1 -0
- package/dist/types/components/mui-icons/down-chevron.d.ts +1 -0
- package/dist/types/components/mui-icons/globe.d.ts +1 -0
- package/dist/types/components/mui-icons/grid.d.ts +1 -0
- package/dist/types/components/mui-icons/index.d.ts +23 -0
- package/dist/types/components/mui-icons/info.d.ts +1 -0
- package/dist/types/components/mui-icons/left-arrow.d.ts +1 -0
- package/dist/types/components/mui-icons/left-chevron.d.ts +1 -0
- package/dist/types/components/mui-icons/menu.d.ts +1 -0
- package/dist/types/components/mui-icons/message.d.ts +1 -0
- package/dist/types/components/mui-icons/moon.d.ts +1 -0
- package/dist/types/components/mui-icons/mui-icon-add.d.ts +1 -0
- package/dist/types/components/mui-icons/mui-icon-down-chevron.d.ts +1 -0
- package/dist/types/components/mui-icons/mui-icon-moon.d.ts +1 -0
- package/dist/types/components/mui-icons/mui-icon-right-chevron.d.ts +1 -0
- package/dist/types/components/mui-icons/mui-icon-sun.d.ts +1 -0
- package/dist/types/components/mui-icons/notification.d.ts +1 -0
- package/dist/types/components/mui-icons/right-chevron.d.ts +1 -0
- package/dist/types/components/mui-icons/stop.d.ts +1 -0
- package/dist/types/components/mui-icons/subtract.d.ts +1 -0
- package/dist/types/components/mui-icons/sun.d.ts +1 -0
- package/dist/types/components/mui-icons/toggle.d.ts +1 -0
- package/dist/types/components/mui-icons/up-arrow.d.ts +1 -0
- package/dist/types/components/mui-icons/up-chevron.d.ts +1 -0
- package/dist/types/components/mui-icons/warning.d.ts +1 -0
- package/dist/types/components/mui-image/index.d.ts +1 -0
- package/dist/types/components/mui-input/index.d.ts +1 -0
- package/dist/types/components/mui-link/index.d.ts +1 -0
- package/dist/types/components/mui-list/index.d.ts +2 -0
- package/dist/types/components/mui-list/item/index.d.ts +1 -0
- package/dist/types/components/mui-list/list/index.d.ts +1 -0
- package/dist/types/components/mui-message/index.d.ts +1 -0
- package/dist/types/components/mui-quote/index.d.ts +1 -0
- package/dist/types/components/mui-responsive/index.d.ts +1 -0
- package/dist/types/components/mui-rule/index.d.ts +1 -0
- package/dist/types/components/mui-select/index.d.ts +1 -0
- package/dist/types/components/mui-slat/index.d.ts +1 -0
- package/dist/types/components/mui-smart-card/index.d.ts +1 -0
- package/dist/types/components/mui-stack/hstack/index.d.ts +1 -0
- package/dist/types/components/mui-stack/index.d.ts +2 -0
- package/dist/types/components/mui-stack/mui-hstack/index.d.ts +1 -0
- package/dist/types/components/mui-stack/mui-vstack/index.d.ts +1 -0
- package/dist/types/components/mui-stack/vstack/index.d.ts +1 -0
- package/dist/types/components/mui-switch/index.d.ts +1 -0
- package/dist/types/components/mui-table/cell/index.d.ts +1 -0
- package/dist/types/components/mui-table/index.d.ts +4 -0
- package/dist/types/components/mui-table/row/index.d.ts +1 -0
- package/dist/types/components/mui-table/row/row.d.ts +1 -0
- package/dist/types/components/mui-table/row-group/index.d.ts +1 -0
- package/dist/types/components/mui-table/table/index.d.ts +1 -0
- package/dist/types/components/mui-tabs/controller/index.d.ts +1 -0
- package/dist/types/components/mui-tabs/index.d.ts +4 -0
- package/dist/types/components/mui-tabs/item/index.d.ts +1 -0
- package/dist/types/components/mui-tabs/panel/index.d.ts +1 -0
- package/dist/types/components/mui-tabs/tab-bar/index.d.ts +1 -0
- package/dist/types/create-app/index.d.ts +15 -0
- package/dist/types/create-mui-app/index.d.ts +15 -0
- package/dist/types/index.d.ts +68 -0
- package/dist/types/muibook/index.d.ts +93 -0
- package/dist/types/utils/part-map/index.d.ts +3 -0
- package/package.json +345 -0
- package/readme.md +84 -0
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
class m extends HTMLElement{constructor(){super();const o=this.attachShadow({mode:"open"}),n=`
|
|
2
|
+
:host { display: block; }
|
|
3
|
+
`,i=[{name:"slot",required:!0,type:"HTML attribute",options:"{text}, mui-icon-[name]",default:"",description:"Add text or an icon for the call-to-action. If using a custom icon, ensure it includes the mui-icon class to inherit styling."},{name:"variant",type:"string",options:"primary, secondary, tertiary, attention",default:"primary",description:"Describe the intent or mood of a message"},{name:"icon-only",type:"boolean",options:"icon-only",default:"",description:"Utilise a compact button with a mui-icon option."},{name:"style",type:"string",options:"Valid CSS",default:"",description:"You are able to use styles to add layout based CSS to the host element."},{name:"class",type:"CSS",options:"Valid CSS",default:"",description:"You are able to use add a classname to add layout based CSS to the host element."},{name:"part",type:"CSS",options:"E.g. mui-link::part(display)",default:"",description:"Controlled trust-based customisation for modifying internal aspects of a button."}],u=i.map(t=>`
|
|
4
|
+
<story-type-row
|
|
5
|
+
${t.required?"required":""}
|
|
6
|
+
name="${t.name}"
|
|
7
|
+
type="${t.type}"
|
|
8
|
+
options="${t.options||""}"
|
|
9
|
+
default="${t.default||""}"
|
|
10
|
+
description="${t.description}">
|
|
11
|
+
</story-type-row>
|
|
12
|
+
`).join(""),a=i.map((t,e)=>{const r=e===i.length-1?"last-child":"";return`
|
|
13
|
+
<mui-accordion-block
|
|
14
|
+
size="medium"
|
|
15
|
+
heading=${t.name.charAt(0).toUpperCase()+t.name.slice(1)}
|
|
16
|
+
${r}>
|
|
17
|
+
<story-type-slat
|
|
18
|
+
slot="detail"
|
|
19
|
+
${t.required?"required":""}
|
|
20
|
+
name="${t.name}"
|
|
21
|
+
type="${t.type}"
|
|
22
|
+
options="${t.options||""}"
|
|
23
|
+
default="${t.default||""}"
|
|
24
|
+
description="${t.description}">
|
|
25
|
+
</story-type-slat>
|
|
26
|
+
</mui-accordion-block>
|
|
27
|
+
`}).join("");o.innerHTML=`
|
|
28
|
+
<style>${n}</style>
|
|
29
|
+
|
|
30
|
+
<story-template title="Buttons"
|
|
31
|
+
description="Buttons are essential UI elements that trigger actions when clicked or tapped. They should be easily recognisable, provide clear feedback, and be accessible to all users."
|
|
32
|
+
figma="https://www.figma.com/design/l0mt1lXu97XoHJCEdnrWLp/Mui-Design-System?node-id=3-570&t=fSFYVey9aCoE5oQa-1"
|
|
33
|
+
github="https://github.com/michaeltrilford/muibook/blob/b060f2c788d521abd1f16889a460822d0cf8da3d/src/components/mui-button/index.ts"
|
|
34
|
+
>
|
|
35
|
+
|
|
36
|
+
<mui-v-stack space="var(--space-700)">
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
<spec-card title="Props">
|
|
40
|
+
<mui-responsive breakpoint="767" slot="body">
|
|
41
|
+
<story-type-table slot="showAbove">
|
|
42
|
+
${u}
|
|
43
|
+
</story-type-table>
|
|
44
|
+
<mui-accordion-group exclusive slot="showBelow">
|
|
45
|
+
${a}
|
|
46
|
+
</mui-accordion-group>
|
|
47
|
+
</mui-responsive>
|
|
48
|
+
</spec-card>
|
|
49
|
+
|
|
50
|
+
<story-card title="Primary">
|
|
51
|
+
<mui-button variant="primary" slot="body">Submit</mui-button>
|
|
52
|
+
<mui-code slot="footer">
|
|
53
|
+
<mui-button variant="primary">
|
|
54
|
+
<br />
|
|
55
|
+
...
|
|
56
|
+
<br />
|
|
57
|
+
</mui-button>
|
|
58
|
+
</mui-code>
|
|
59
|
+
</story-card>
|
|
60
|
+
|
|
61
|
+
<story-card title="Secondary">
|
|
62
|
+
<mui-button variant="secondary" slot="body">Cancel</mui-button>
|
|
63
|
+
<mui-code slot="footer">
|
|
64
|
+
<mui-button variant="secondary">
|
|
65
|
+
<br />
|
|
66
|
+
...
|
|
67
|
+
<br />
|
|
68
|
+
</mui-button>
|
|
69
|
+
</mui-code>
|
|
70
|
+
</story-card>
|
|
71
|
+
|
|
72
|
+
<story-card title="Tertiary">
|
|
73
|
+
<mui-button variant="tertiary" slot="body">Cancel</mui-button>
|
|
74
|
+
<mui-code slot="footer">
|
|
75
|
+
<mui-button variant="tertiary">
|
|
76
|
+
<br />
|
|
77
|
+
...
|
|
78
|
+
<br />
|
|
79
|
+
</mui-button>
|
|
80
|
+
</mui-code>
|
|
81
|
+
</story-card>
|
|
82
|
+
|
|
83
|
+
<story-card title="Attention">
|
|
84
|
+
<mui-button variant="attention" slot="body">Delete</mui-button>
|
|
85
|
+
<mui-code slot="footer">
|
|
86
|
+
<mui-button variant="attention">
|
|
87
|
+
<br />
|
|
88
|
+
...
|
|
89
|
+
<br />
|
|
90
|
+
</mui-button>
|
|
91
|
+
</mui-code>
|
|
92
|
+
</story-card>
|
|
93
|
+
|
|
94
|
+
<story-card title="Button Group">
|
|
95
|
+
<mui-button-group right slot="body">
|
|
96
|
+
<mui-button variant="secondary">Cancel</mui-button>
|
|
97
|
+
<mui-button variant="primary">Submit</mui-button>
|
|
98
|
+
</mui-button-group>
|
|
99
|
+
<mui-code slot="footer">
|
|
100
|
+
<mui-button-group right>
|
|
101
|
+
<br />
|
|
102
|
+
<mui-button variant="secondary">...</mui-button>
|
|
103
|
+
<br />
|
|
104
|
+
<mui-button variant="primary">...</mui-button>
|
|
105
|
+
<br />
|
|
106
|
+
</mui-button-group>
|
|
107
|
+
</mui-code>
|
|
108
|
+
</story-card>
|
|
109
|
+
|
|
110
|
+
<story-card title="Primary Icon-Only">
|
|
111
|
+
<mui-h-stack slot="body" space="var(--space-100)">
|
|
112
|
+
<mui-button variant="primary" icon-only>
|
|
113
|
+
<mui-icon-add></mui-icon-add>
|
|
114
|
+
</mui-button>
|
|
115
|
+
<mui-button variant="primary" icon-only>
|
|
116
|
+
<mui-icon-subtract></mui-icon-subtract>
|
|
117
|
+
</mui-button>
|
|
118
|
+
<mui-button variant="primary" icon-only>
|
|
119
|
+
<mui-icon-grid></mui-icon-grid>
|
|
120
|
+
</mui-button>
|
|
121
|
+
<mui-button variant="primary" icon-only>
|
|
122
|
+
<mui-icon-notification></mui-icon-notification>
|
|
123
|
+
</mui-button>
|
|
124
|
+
<mui-button variant="primary" icon-only>
|
|
125
|
+
<mui-icon-menu></mui-icon-menu>
|
|
126
|
+
</mui-button>
|
|
127
|
+
<mui-button variant="primary" icon-only>
|
|
128
|
+
<mui-icon-message></mui-icon-message>
|
|
129
|
+
</mui-button>
|
|
130
|
+
</mui-h-stack>
|
|
131
|
+
<mui-code slot="footer">
|
|
132
|
+
<mui-button variant="primary" icon-only>
|
|
133
|
+
<br />
|
|
134
|
+
<mui-icon-add></mui-icon-add>
|
|
135
|
+
<br />
|
|
136
|
+
</mui-button>
|
|
137
|
+
</mui-code>
|
|
138
|
+
</story-card>
|
|
139
|
+
|
|
140
|
+
<story-card title="Secondary Icon-Only">
|
|
141
|
+
<mui-h-stack slot="body" space="var(--space-100)">
|
|
142
|
+
<mui-button variant="secondary" icon-only>
|
|
143
|
+
<mui-icon-add variant="secondary" size="small"></mui-icon-add>
|
|
144
|
+
</mui-button>
|
|
145
|
+
<mui-button variant="secondary" icon-only>
|
|
146
|
+
<mui-icon-subtract></mui-icon-subtract>
|
|
147
|
+
</mui-button>
|
|
148
|
+
<mui-button variant="secondary" icon-only>
|
|
149
|
+
<mui-icon-grid></mui-icon-grid>
|
|
150
|
+
</mui-button>
|
|
151
|
+
<mui-button variant="secondary" icon-only>
|
|
152
|
+
<mui-icon-notification></mui-icon-notification>
|
|
153
|
+
</mui-button>
|
|
154
|
+
<mui-button variant="secondary" icon-only>
|
|
155
|
+
<mui-icon-menu></mui-icon-menu>
|
|
156
|
+
</mui-button>
|
|
157
|
+
<mui-button variant="secondary" icon-only>
|
|
158
|
+
<mui-icon-message></mui-icon-message>
|
|
159
|
+
</mui-button>
|
|
160
|
+
</mui-h-stack>
|
|
161
|
+
<mui-code slot="footer">
|
|
162
|
+
<mui-button variant="secondary" icon-only>
|
|
163
|
+
<br />
|
|
164
|
+
<mui-icon-add></mui-icon-add>
|
|
165
|
+
<br />
|
|
166
|
+
</mui-button>
|
|
167
|
+
</mui-code>
|
|
168
|
+
</story-card>
|
|
169
|
+
|
|
170
|
+
<story-card title="Tertiary Icon-Only">
|
|
171
|
+
<mui-h-stack slot="body" space="var(--space-100)">
|
|
172
|
+
<mui-button variant="tertiary" icon-only>
|
|
173
|
+
<mui-icon-add></mui-icon-add>
|
|
174
|
+
</mui-button>
|
|
175
|
+
<mui-button variant="tertiary" icon-only>
|
|
176
|
+
<mui-icon-subtract></mui-icon-subtract>
|
|
177
|
+
</mui-button>
|
|
178
|
+
<mui-button variant="tertiary" icon-only>
|
|
179
|
+
<mui-icon-grid></mui-icon-grid>
|
|
180
|
+
</mui-button>
|
|
181
|
+
<mui-button variant="tertiary" icon-only>
|
|
182
|
+
<mui-icon-notification></mui-icon-notification>
|
|
183
|
+
</mui-button>
|
|
184
|
+
<mui-button variant="tertiary" icon-only>
|
|
185
|
+
<mui-icon-menu></mui-icon-menu>
|
|
186
|
+
</mui-button>
|
|
187
|
+
<mui-button variant="tertiary" icon-only>
|
|
188
|
+
<mui-icon-message></mui-icon-message>
|
|
189
|
+
</mui-button>
|
|
190
|
+
</mui-h-stack>
|
|
191
|
+
<mui-code slot="footer">
|
|
192
|
+
<mui-button variant="tertiary" icon-only>
|
|
193
|
+
<br />
|
|
194
|
+
<mui-icon-add></mui-icon-add>
|
|
195
|
+
<br />
|
|
196
|
+
</mui-button>
|
|
197
|
+
</mui-code>
|
|
198
|
+
</story-card>
|
|
199
|
+
|
|
200
|
+
<story-card title="Attention Icon-Only">
|
|
201
|
+
<mui-h-stack slot="body" space="var(--space-100)">
|
|
202
|
+
<mui-button variant="attention" icon-only>
|
|
203
|
+
<mui-icon-add></mui-icon-add>
|
|
204
|
+
</mui-button>
|
|
205
|
+
<mui-button variant="attention" icon-only>
|
|
206
|
+
<mui-icon-subtract></mui-icon-subtract>
|
|
207
|
+
</mui-button>
|
|
208
|
+
<mui-button variant="attention" icon-only>
|
|
209
|
+
<mui-icon-grid></mui-icon-grid>
|
|
210
|
+
</mui-button>
|
|
211
|
+
<mui-button variant="attention" icon-only>
|
|
212
|
+
<mui-icon-notification></mui-icon-notification>
|
|
213
|
+
</mui-button>
|
|
214
|
+
<mui-button variant="attention" icon-only>
|
|
215
|
+
<mui-icon-menu></mui-icon-menu>
|
|
216
|
+
</mui-button>
|
|
217
|
+
<mui-button variant="attention" icon-only>
|
|
218
|
+
<mui-icon-message></mui-icon-message>
|
|
219
|
+
</mui-button>
|
|
220
|
+
</mui-h-stack>
|
|
221
|
+
<mui-code slot="footer">
|
|
222
|
+
<mui-button variant="attention" icon-only>
|
|
223
|
+
<br />
|
|
224
|
+
<mui-icon-add></mui-icon-add>
|
|
225
|
+
<br />
|
|
226
|
+
</mui-button>
|
|
227
|
+
</mui-code>
|
|
228
|
+
</story-card>
|
|
229
|
+
|
|
230
|
+
</mui-v-stack>
|
|
231
|
+
|
|
232
|
+
</story-template>
|
|
233
|
+
`}}customElements.define("story-button",m);
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import"./mui-logo-mobile-DuEMz_jq.js";class t extends HTMLElement{constructor(){super();const a=this.attachShadow({mode:"open"}),r=`
|
|
2
|
+
:host {
|
|
3
|
+
display: block;
|
|
4
|
+
}
|
|
5
|
+
`,e=`
|
|
6
|
+
|
|
7
|
+
<style>
|
|
8
|
+
.canvas {
|
|
9
|
+
background: var(--surface);
|
|
10
|
+
padding: var(--space-400);
|
|
11
|
+
margin-top: calc(var(--space-400) * -1);
|
|
12
|
+
margin-bottom: calc(var(--space-400) * -1);
|
|
13
|
+
margin-left: calc(var(--space-400) * -1);
|
|
14
|
+
margin-right: calc(var(--space-400) * -1);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.prompt-input {
|
|
18
|
+
padding: var(--space-400);
|
|
19
|
+
padding-bottom: var(--space-200);
|
|
20
|
+
background: var(--surface-elevated-alpha);
|
|
21
|
+
border: var(--border-thin);
|
|
22
|
+
border-color: var(--form-default-border-color);
|
|
23
|
+
border-radius: var(--radius-300);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.prompt-toolbar::part(justify-content) {
|
|
27
|
+
justify-content: space-between;
|
|
28
|
+
}
|
|
29
|
+
</style>
|
|
30
|
+
|
|
31
|
+
<div class="canvas">
|
|
32
|
+
<mui-v-stack class="prompt-input" space="var(--space-200)">
|
|
33
|
+
<mui-input label="Default" hide-label placeholder="Reply to Mui..."></mui-input>
|
|
34
|
+
|
|
35
|
+
<mui-h-stack class="prompt-toolbar" space="var(--space-200)">
|
|
36
|
+
<mui-h-stack space="var(--space-000)">
|
|
37
|
+
<mui-icon-toggle rotate variant="tertiary">
|
|
38
|
+
<mui-icon-add slot="start"></mui-icon-add>
|
|
39
|
+
<mui-icon-close slot="end"></mui-icon-close>
|
|
40
|
+
</mui-icon-toggle>
|
|
41
|
+
<mui-button variant="tertiary" icon-only>
|
|
42
|
+
<mui-icon-globe></mui-icon-globe>
|
|
43
|
+
</mui-button>
|
|
44
|
+
</mui-h-stack>
|
|
45
|
+
<mui-h-stack space="var(--space-200)">
|
|
46
|
+
<mui-icon-toggle rotate variant="tertiary">
|
|
47
|
+
<mui-icon-up-arrow slot="start"></mui-icon-up-arrow>
|
|
48
|
+
<mui-icon-stop slot="end"></mui-icon-stop>
|
|
49
|
+
</mui-icon-toggle>
|
|
50
|
+
</mui-h-stack>
|
|
51
|
+
</mui-h-stack>
|
|
52
|
+
</mui-v-stack>
|
|
53
|
+
</div>
|
|
54
|
+
`,o=`
|
|
55
|
+
<style>
|
|
56
|
+
.conversation-background {
|
|
57
|
+
background: var(--surface);
|
|
58
|
+
padding: var(--space-400);
|
|
59
|
+
box-sizing: border-box;
|
|
60
|
+
margin-top: calc(var(--space-400) * -1);
|
|
61
|
+
margin-bottom: calc(var(--space-400) * -1);
|
|
62
|
+
margin-left: calc(var(--space-400) * -1);
|
|
63
|
+
margin-right: calc(var(--space-400) * -1);
|
|
64
|
+
}
|
|
65
|
+
.conversation-reply {
|
|
66
|
+
background: var(--surface-elevated-alpha);
|
|
67
|
+
padding: var(--space-400);
|
|
68
|
+
width: 100%;
|
|
69
|
+
box-sizing: border-box;
|
|
70
|
+
border: var(--border-thin);
|
|
71
|
+
border-radius: var(--radius-300);
|
|
72
|
+
}
|
|
73
|
+
.avatar {
|
|
74
|
+
width: 3.6rem;
|
|
75
|
+
flex: 0 0 3.6rem;
|
|
76
|
+
height: 3.6rem;
|
|
77
|
+
background: var(--mui-brand-300);
|
|
78
|
+
display: flex;
|
|
79
|
+
justify-content: center;
|
|
80
|
+
align-content: center;
|
|
81
|
+
border-radius: 3.6rem;
|
|
82
|
+
}
|
|
83
|
+
mui-logo-mobile { max-width: 1.6rem; margin-top: 4px; }
|
|
84
|
+
|
|
85
|
+
</style>
|
|
86
|
+
<div class="conversation-background">
|
|
87
|
+
<mui-h-stack class="conversation-reply" alignY="center" space="var(--space-400)">
|
|
88
|
+
<div class="avatar">
|
|
89
|
+
<mui-logo-mobile style="width: 100%; height: auto;"></mui-logo-mobile>
|
|
90
|
+
</div>
|
|
91
|
+
<mui-body size="small">Review my website <mui-link size="small" href="https://muibook.com" target="_blank">muibook.com</mui-link></mui-body>
|
|
92
|
+
</mui-h-stack>
|
|
93
|
+
</div>
|
|
94
|
+
`;a.innerHTML=`
|
|
95
|
+
<style>${r}</style>
|
|
96
|
+
|
|
97
|
+
<story-template
|
|
98
|
+
title="Agent UI"
|
|
99
|
+
description="
|
|
100
|
+
Creating compositions provide the Design
|
|
101
|
+
System a view of how the system is working and
|
|
102
|
+
where it needs flexibility.
|
|
103
|
+
"
|
|
104
|
+
>
|
|
105
|
+
|
|
106
|
+
<mui-v-stack space="var(--space-700)">
|
|
107
|
+
|
|
108
|
+
<story-card
|
|
109
|
+
title="Prompt Input"
|
|
110
|
+
description="
|
|
111
|
+
A dark mode–ready language model prompt built from flexible system blocks."
|
|
112
|
+
>
|
|
113
|
+
<div slot="body">
|
|
114
|
+
${e}
|
|
115
|
+
</div>
|
|
116
|
+
<mui-code slot="footer">
|
|
117
|
+
<br />
|
|
118
|
+
<mui-body size="x-small">Learn about <mui-Link size="x-small" href="/#/surface-design-tokens">Surface Tokens</mui-link></mui-body>
|
|
119
|
+
<br />
|
|
120
|
+
/* =================================== */
|
|
121
|
+
<br />
|
|
122
|
+
<br />
|
|
123
|
+
mui-button::part(background):hover {
|
|
124
|
+
<br />
|
|
125
|
+
background: var(--surface-recessed-alpha);
|
|
126
|
+
<br />
|
|
127
|
+
}
|
|
128
|
+
<br />
|
|
129
|
+
<br />
|
|
130
|
+
.prompt-input {
|
|
131
|
+
<br />
|
|
132
|
+
background: var(--surface-elevated-alpha);
|
|
133
|
+
<br />
|
|
134
|
+
border-color: var(--form-default-border-color);
|
|
135
|
+
<br />
|
|
136
|
+
...
|
|
137
|
+
<br />
|
|
138
|
+
}
|
|
139
|
+
</mui-code>
|
|
140
|
+
</story-card>
|
|
141
|
+
|
|
142
|
+
<story-card title="Conversation Bubble" description="A dark mode–ready conversation bubble built from flexible system blocks.">
|
|
143
|
+
<div slot="body">
|
|
144
|
+
${o}
|
|
145
|
+
</div>
|
|
146
|
+
<mui-code slot="footer">
|
|
147
|
+
<br />
|
|
148
|
+
<mui-body size="x-small">Learn about <mui-Link size="x-small" href="/#/surface-design-tokens">Surface Tokens</mui-link></mui-body>
|
|
149
|
+
<br />
|
|
150
|
+
/* =================================== */
|
|
151
|
+
<br />
|
|
152
|
+
<br />
|
|
153
|
+
.conversation-background {
|
|
154
|
+
<br />
|
|
155
|
+
background: var(--surface);
|
|
156
|
+
<br />
|
|
157
|
+
...
|
|
158
|
+
<br />
|
|
159
|
+
}
|
|
160
|
+
<br />
|
|
161
|
+
<br />
|
|
162
|
+
.conversation-reply {
|
|
163
|
+
<br />
|
|
164
|
+
background: var(--surface-elevated-alpha);
|
|
165
|
+
<br />
|
|
166
|
+
border: var(--border-thin);
|
|
167
|
+
<br />
|
|
168
|
+
...
|
|
169
|
+
<br />
|
|
170
|
+
}
|
|
171
|
+
</mui-code>
|
|
172
|
+
</story-card>
|
|
173
|
+
|
|
174
|
+
</mui-v-stack>
|
|
175
|
+
|
|
176
|
+
</story-template>
|
|
177
|
+
`}}customElements.define("comp-agent-ui",t);
|