@muibook/components 1.0.2 → 1.0.4
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/esm/{mui-body → components/mui-body}/index.js +1 -1
- package/dist/esm/{mui-button → components/mui-button}/index.js +1 -1
- package/dist/esm/{mui-grid → components/mui-grid}/index.js +1 -1
- package/dist/esm/{mui-link → components/mui-link}/index.js +1 -1
- package/dist/esm/{mui-select → components/mui-select}/index.js +1 -1
- package/dist/esm/{mui-stack → components/mui-stack}/hstack/index.js +1 -1
- package/dist/esm/{mui-stack → components/mui-stack}/vstack/index.js +1 -1
- package/package.json +5 -3
- package/readme.md +12 -0
- package/dist/create-mui-app/assets/index-DfcB3F-s.js +0 -597
- package/dist/create-mui-app/create-mui-app.css +0 -1
- package/dist/create-mui-app/index.html +0 -21
- package/dist/esm/_redirects +0 -1
- package/dist/esm/favicon.ico +0 -0
- package/dist/esm/index/index.js +0 -71
- package/dist/esm/logo192.png +0 -0
- package/dist/muibook/_redirects +0 -1
- package/dist/muibook/assets/base-B4dO4n0A.js +0 -198
- package/dist/muibook/assets/components-YZ3tjmIt.js +0 -122
- package/dist/muibook/assets/contextual-D648xs_u.js +0 -59
- package/dist/muibook/assets/image-1080-Bg-8LoSs.js +0 -1
- package/dist/muibook/assets/index-0bBJZTXh.js +0 -135
- package/dist/muibook/assets/index-B4Lbi-ZX.js +0 -82
- package/dist/muibook/assets/index-BJJtzLti.js +0 -144
- package/dist/muibook/assets/index-BN6UEWFf.js +0 -439
- package/dist/muibook/assets/index-Bc68V_xw.js +0 -140
- package/dist/muibook/assets/index-BnpaoEYs.js +0 -386
- package/dist/muibook/assets/index-BrZBJGo2.js +0 -4276
- package/dist/muibook/assets/index-Bx-SU7T2.js +0 -98
- package/dist/muibook/assets/index-C10sNeH-.js +0 -64
- package/dist/muibook/assets/index-C4ZnvuXX.js +0 -333
- package/dist/muibook/assets/index-C7Tqc5BR.js +0 -325
- package/dist/muibook/assets/index-CAkZAmud.js +0 -514
- package/dist/muibook/assets/index-CCegrD2J.js +0 -130
- package/dist/muibook/assets/index-CHZJlumm.js +0 -95
- package/dist/muibook/assets/index-CPZ8jubJ.js +0 -308
- package/dist/muibook/assets/index-CSLqxg9p.js +0 -73
- package/dist/muibook/assets/index-CT3BsW8R.js +0 -177
- package/dist/muibook/assets/index-CYYG9dAN.js +0 -270
- package/dist/muibook/assets/index-CdghbWW3.js +0 -42
- package/dist/muibook/assets/index-CfD1WQYQ.js +0 -106
- package/dist/muibook/assets/index-Ch40uilB.js +0 -52
- package/dist/muibook/assets/index-CwAai54c.js +0 -263
- package/dist/muibook/assets/index-CyWt9f96.js +0 -336
- package/dist/muibook/assets/index-D8hXO6aa.js +0 -131
- package/dist/muibook/assets/index-DBkw7VLa.js +0 -431
- package/dist/muibook/assets/index-DI0vNTNv.js +0 -56
- package/dist/muibook/assets/index-DNImaJPY.js +0 -96
- package/dist/muibook/assets/index-DP6CCnt0.js +0 -257
- package/dist/muibook/assets/index-DR5X8zCc.js +0 -67
- package/dist/muibook/assets/index-DZQ8pS6y.js +0 -133
- package/dist/muibook/assets/index-DlZ1b9ZK.js +0 -233
- package/dist/muibook/assets/index-DwnvCJk0.js +0 -177
- package/dist/muibook/assets/index-_4AZFkzS.js +0 -328
- package/dist/muibook/assets/index-dkW0Vbeg.js +0 -429
- package/dist/muibook/assets/index-ehE10GAP.js +0 -40
- package/dist/muibook/assets/index-icuV1guL.js +0 -69
- package/dist/muibook/assets/index-qOE8f0sK.js +0 -72
- package/dist/muibook/assets/layout-BT0xIYa9.js +0 -184
- package/dist/muibook/assets/mui-D6S1tQ24.js +0 -1
- package/dist/muibook/assets/mui-logo-mobile-DuEMz_jq.js +0 -31
- package/dist/muibook/assets/semantic-cbNjeY5p.js +0 -111
- package/dist/muibook/assets/spacing-DY3cAXq0.js +0 -82
- package/dist/muibook/assets/surface-CMaW9FgJ.js +0 -148
- package/dist/muibook/assets/text-TVCTYde0.js +0 -130
- package/dist/muibook/assets/visual-B_21dq90.js +0 -96
- 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 +0 -13
- 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 +0 -38
- package/dist/muibook/logo192.png +0 -0
- package/dist/muibook/mui-tokens.jpg +0 -0
- package/dist/muibook/muibook.css +0 -1
- package/dist/muibook/premier.png +0 -0
- package/dist/muibook/ruby.svg +0 -13
- package/dist/muibook/sapphire.png +0 -0
- package/dist/muibook/sapphire.svg +0 -13
- package/dist/muibook/snowy-mint.png +0 -0
- package/dist/types/components/mui-accordion/mui-accordion-block/index.d.ts +0 -2
- package/dist/types/components/mui-accordion/mui-accordion-group/index.d.ts +0 -1
- package/dist/types/components/mui-accordion/mui-accordion-inline/index.d.ts +0 -2
- package/dist/types/components/mui-icons/chevron.d.ts +0 -1
- package/dist/types/components/mui-icons/mui-icon-add.d.ts +0 -1
- package/dist/types/components/mui-icons/mui-icon-down-chevron.d.ts +0 -1
- package/dist/types/components/mui-icons/mui-icon-moon.d.ts +0 -1
- package/dist/types/components/mui-icons/mui-icon-right-chevron.d.ts +0 -1
- package/dist/types/components/mui-icons/mui-icon-sun.d.ts +0 -1
- package/dist/types/components/mui-stack/mui-hstack/index.d.ts +0 -1
- package/dist/types/components/mui-stack/mui-vstack/index.d.ts +0 -1
- package/dist/types/components/mui-table/row/row.d.ts +0 -1
- package/dist/types/create-app/index.d.ts +0 -15
- package/dist/types/create-mui-app/index.d.ts +0 -15
- package/dist/types/index.d.ts +0 -68
- package/dist/types/muibook/index.d.ts +0 -93
- /package/dist/esm/{mui-accordion → components/mui-accordion}/block/index.js +0 -0
- /package/dist/esm/{mui-accordion → components/mui-accordion}/group/index.js +0 -0
- /package/dist/esm/{mui-accordion → components/mui-accordion}/index.js +0 -0
- /package/dist/esm/{mui-accordion → components/mui-accordion}/inline/index.js +0 -0
- /package/dist/esm/{mui-addon → components/mui-addon}/index.js +0 -0
- /package/dist/esm/{mui-alert → components/mui-alert}/index.js +0 -0
- /package/dist/esm/{mui-badge → components/mui-badge}/index.js +0 -0
- /package/dist/esm/{mui-button-group → components/mui-button-group}/index.js +0 -0
- /package/dist/esm/{mui-card → components/mui-card}/body/index.js +0 -0
- /package/dist/esm/{mui-card → components/mui-card}/card/index.js +0 -0
- /package/dist/esm/{mui-card → components/mui-card}/footer/index.js +0 -0
- /package/dist/esm/{mui-card → components/mui-card}/header/index.js +0 -0
- /package/dist/esm/{mui-card → components/mui-card}/index.js +0 -0
- /package/dist/esm/{mui-carousel → components/mui-carousel}/controller/index.js +0 -0
- /package/dist/esm/{mui-carousel → components/mui-carousel}/index.js +0 -0
- /package/dist/esm/{mui-carousel → components/mui-carousel}/panel/index.js +0 -0
- /package/dist/esm/{mui-code → components/mui-code}/index.js +0 -0
- /package/dist/esm/{mui-container → components/mui-container}/index.js +0 -0
- /package/dist/esm/{mui-field → components/mui-field}/index.js +0 -0
- /package/dist/esm/{mui-file-upload → components/mui-file-upload}/index.js +0 -0
- /package/dist/esm/{mui-heading → components/mui-heading}/index.js +0 -0
- /package/dist/esm/{mui-icons → components/mui-icons}/accessibility/index.js +0 -0
- /package/dist/esm/{mui-icons → components/mui-icons}/add/index.js +0 -0
- /package/dist/esm/{mui-icons → components/mui-icons}/attention/index.js +0 -0
- /package/dist/esm/{mui-icons → components/mui-icons}/check/index.js +0 -0
- /package/dist/esm/{mui-icons → components/mui-icons}/close/index.js +0 -0
- /package/dist/esm/{mui-icons → components/mui-icons}/down-chevron/index.js +0 -0
- /package/dist/esm/{mui-icons → components/mui-icons}/globe/index.js +0 -0
- /package/dist/esm/{mui-icons → components/mui-icons}/grid/index.js +0 -0
- /package/dist/esm/{mui-icons → components/mui-icons}/index.js +0 -0
- /package/dist/esm/{mui-icons → components/mui-icons}/info/index.js +0 -0
- /package/dist/esm/{mui-icons → components/mui-icons}/left-arrow/index.js +0 -0
- /package/dist/esm/{mui-icons → components/mui-icons}/left-chevron/index.js +0 -0
- /package/dist/esm/{mui-icons → components/mui-icons}/menu/index.js +0 -0
- /package/dist/esm/{mui-icons → components/mui-icons}/message/index.js +0 -0
- /package/dist/esm/{mui-icons → components/mui-icons}/moon/index.js +0 -0
- /package/dist/esm/{mui-icons → components/mui-icons}/notification/index.js +0 -0
- /package/dist/esm/{mui-icons → components/mui-icons}/right-chevron/index.js +0 -0
- /package/dist/esm/{mui-icons → components/mui-icons}/stop/index.js +0 -0
- /package/dist/esm/{mui-icons → components/mui-icons}/subtract/index.js +0 -0
- /package/dist/esm/{mui-icons → components/mui-icons}/sun/index.js +0 -0
- /package/dist/esm/{mui-icons → components/mui-icons}/toggle/index.js +0 -0
- /package/dist/esm/{mui-icons → components/mui-icons}/up-arrow/index.js +0 -0
- /package/dist/esm/{mui-icons → components/mui-icons}/up-chevron/index.js +0 -0
- /package/dist/esm/{mui-icons → components/mui-icons}/warning/index.js +0 -0
- /package/dist/esm/{mui-image → components/mui-image}/index.js +0 -0
- /package/dist/esm/{mui-input → components/mui-input}/index.js +0 -0
- /package/dist/esm/{mui-list → components/mui-list}/index.js +0 -0
- /package/dist/esm/{mui-list → components/mui-list}/item/index.js +0 -0
- /package/dist/esm/{mui-list → components/mui-list}/list/index.js +0 -0
- /package/dist/esm/{mui-message → components/mui-message}/index.js +0 -0
- /package/dist/esm/{mui-quote → components/mui-quote}/index.js +0 -0
- /package/dist/esm/{mui-responsive → components/mui-responsive}/index.js +0 -0
- /package/dist/esm/{mui-rule → components/mui-rule}/index.js +0 -0
- /package/dist/esm/{mui-slat → components/mui-slat}/index.js +0 -0
- /package/dist/esm/{mui-smart-card → components/mui-smart-card}/index.js +0 -0
- /package/dist/esm/{mui-stack → components/mui-stack}/index.js +0 -0
- /package/dist/esm/{mui-switch → components/mui-switch}/index.js +0 -0
- /package/dist/esm/{mui-table → components/mui-table}/cell/index.js +0 -0
- /package/dist/esm/{mui-table → components/mui-table}/index.js +0 -0
- /package/dist/esm/{mui-table → components/mui-table}/row/index.js +0 -0
- /package/dist/esm/{mui-table → components/mui-table}/row-group/index.js +0 -0
- /package/dist/esm/{mui-table → components/mui-table}/table/index.js +0 -0
- /package/dist/esm/{mui-tabs → components/mui-tabs}/controller/index.js +0 -0
- /package/dist/esm/{mui-tabs → components/mui-tabs}/index.js +0 -0
- /package/dist/esm/{mui-tabs → components/mui-tabs}/item/index.js +0 -0
- /package/dist/esm/{mui-tabs → components/mui-tabs}/panel/index.js +0 -0
- /package/dist/esm/{mui-tabs → components/mui-tabs}/tab-bar/index.js +0 -0
- /package/dist/esm/{mui-utils → utils}/part-map/index.js +0 -0
|
@@ -1,233 +0,0 @@
|
|
|
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);
|
|
@@ -1,177 +0,0 @@
|
|
|
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);
|