@muibook/components 1.0.1 → 1.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/package.json +4 -4
- 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/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
|
@@ -1,270 +0,0 @@
|
|
|
1
|
-
class l extends HTMLElement{constructor(){super();const s=this.attachShadow({mode:"open"}),i=`
|
|
2
|
-
:host { display: block; }
|
|
3
|
-
|
|
4
|
-
`,t=[{name:"heading",required:!0,type:"string",options:"{text}",default:"Heading...",description:"Main header for message"},{name:"slot",required:!0,type:"HTML attribute",options:"mui-body, mui-list, elements",default:"Body content...",description:"Slot in body, list or custom elements"},{name:"icon",type:"string",options:"mui-icon-[name]",default:"message",description:"Choose an alternative mui-icon"},{name:"variant",type:"string",options:"neutral, positive, info, warning, attention",default:"neutral",description:"Describe the intent or mood of a message"},{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:"string",options:"Valid CSS",default:"",description:"You are able to use add a classname to add layout based CSS to the host element."}],n=t.map(e=>`
|
|
5
|
-
<story-type-row
|
|
6
|
-
${e.required?"required":""}
|
|
7
|
-
name="${e.name}"
|
|
8
|
-
type="${e.type}"
|
|
9
|
-
options="${e.options||""}"
|
|
10
|
-
default="${e.default||""}"
|
|
11
|
-
description="${e.description}">
|
|
12
|
-
</story-type-row>
|
|
13
|
-
`).join(""),o=t.map((e,a)=>{const r=a===t.length-1?"last-child":"";return`
|
|
14
|
-
<mui-accordion-block
|
|
15
|
-
size="medium"
|
|
16
|
-
heading=${e.name.charAt(0).toUpperCase()+e.name.slice(1)}
|
|
17
|
-
${r}>
|
|
18
|
-
<story-type-slat
|
|
19
|
-
slot="detail"
|
|
20
|
-
${e.required?"required":""}
|
|
21
|
-
name="${e.name}"
|
|
22
|
-
type="${e.type}"
|
|
23
|
-
options="${e.options||""}"
|
|
24
|
-
default="${e.default||""}"
|
|
25
|
-
description="${e.description}">
|
|
26
|
-
</story-type-slat>
|
|
27
|
-
</mui-accordion-block>
|
|
28
|
-
`}).join("");s.innerHTML=`
|
|
29
|
-
<style>${i}</style>
|
|
30
|
-
|
|
31
|
-
<story-template
|
|
32
|
-
title="Messages"
|
|
33
|
-
description="The message component provides persistent, non-dismissible notifications that remain visible until the system determines they should be suspended."
|
|
34
|
-
figma="https://www.figma.com/design/l0mt1lXu97XoHJCEdnrWLp/Mui-Design-System?node-id=9-1053&t=ZA9uH4LK37tSuk6r-1"
|
|
35
|
-
guides
|
|
36
|
-
github="https://github.com/michaeltrilford/muibook/blob/b060f2c788d521abd1f16889a460822d0cf8da3d/src/components/mui-message/index.ts"
|
|
37
|
-
accessibility="
|
|
38
|
-
ARIA-live is built in, using POLITE + ASSERTIVE for screen readers.;
|
|
39
|
-
Neutral, Postive, Info support the role of STATUS for screen reader feedback.;
|
|
40
|
-
Warning, Attention support the role of ALERT for screen reader feedback.
|
|
41
|
-
"
|
|
42
|
-
|
|
43
|
-
>
|
|
44
|
-
|
|
45
|
-
<mui-v-stack space="var(--space-700)">
|
|
46
|
-
|
|
47
|
-
<spec-card title="Props">
|
|
48
|
-
<mui-responsive breakpoint="767" slot="body">
|
|
49
|
-
<story-type-table slot="showAbove">
|
|
50
|
-
${n}
|
|
51
|
-
</story-type-table>
|
|
52
|
-
<mui-accordion-group exclusive slot="showBelow">
|
|
53
|
-
${o}
|
|
54
|
-
</mui-accordion-group>
|
|
55
|
-
</mui-responsive>
|
|
56
|
-
</spec-card>
|
|
57
|
-
|
|
58
|
-
<story-card
|
|
59
|
-
title="Default"
|
|
60
|
-
description="The default uses the neutral state offers a subtle, neutral tone, ideal for conveying general information without drawing undue attention."
|
|
61
|
-
accessibility="ARIA-live of POLITE is set on this variant.; Role of STATUS is set on this variant."
|
|
62
|
-
>
|
|
63
|
-
<mui-message slot="body"></mui-message>
|
|
64
|
-
<mui-code slot="footer">
|
|
65
|
-
<mui-message>...</mui-message>
|
|
66
|
-
</mui-code>
|
|
67
|
-
</story-card>
|
|
68
|
-
|
|
69
|
-
<story-card
|
|
70
|
-
title="Slot: Body text"
|
|
71
|
-
description="Content is customised via the Slot, which accepts the Body component or any valid child elements."
|
|
72
|
-
>
|
|
73
|
-
<mui-message heading="Message heading" slot="body">
|
|
74
|
-
<mui-body>This is an informational message about updates.</mui-body>
|
|
75
|
-
</mui-message>
|
|
76
|
-
<mui-code slot="footer">
|
|
77
|
-
<mui-message heading="Message heading">
|
|
78
|
-
<br />
|
|
79
|
-
<mui-body>...</mui-body>
|
|
80
|
-
<br />
|
|
81
|
-
</mui-message>
|
|
82
|
-
</mui-code>
|
|
83
|
-
</story-card>
|
|
84
|
-
|
|
85
|
-
<story-card
|
|
86
|
-
title="Slot: List"
|
|
87
|
-
description="Content is customised via the Slot, which accepts the List component or any valid child elements."
|
|
88
|
-
>
|
|
89
|
-
|
|
90
|
-
<mui-message heading="Message heading" slot="body">
|
|
91
|
-
<mui-list as="ul">
|
|
92
|
-
<mui-list-item size="small">Item 1</mui-list-item>
|
|
93
|
-
<mui-list-item size="small">Item 2</mui-list-item>
|
|
94
|
-
</mui-list>
|
|
95
|
-
</mui-message>
|
|
96
|
-
|
|
97
|
-
<mui-code slot="footer">
|
|
98
|
-
<mui-message heading="Message heading">
|
|
99
|
-
<br />
|
|
100
|
-
<br />
|
|
101
|
-
<mui-list as="ul">
|
|
102
|
-
<br />
|
|
103
|
-
<mui-list-item size="small">
|
|
104
|
-
<br />
|
|
105
|
-
Item 1
|
|
106
|
-
<br />
|
|
107
|
-
</mui-list-item>
|
|
108
|
-
<br />
|
|
109
|
-
<mui-list-item size="small">
|
|
110
|
-
<br />
|
|
111
|
-
Item 2
|
|
112
|
-
<br />
|
|
113
|
-
</mui-list-item>
|
|
114
|
-
<br />
|
|
115
|
-
</mui-list>
|
|
116
|
-
<br />
|
|
117
|
-
<br />
|
|
118
|
-
</mui-message>
|
|
119
|
-
</mui-code>
|
|
120
|
-
|
|
121
|
-
</story-card>
|
|
122
|
-
|
|
123
|
-
<story-card
|
|
124
|
-
title="Slot: Icon"
|
|
125
|
-
description="Icon is customised via the icon property, which accepts any mui-icon-[name] from the mui icon-set."
|
|
126
|
-
>
|
|
127
|
-
<mui-message slot="body" icon="mui-icon-accessibility"></mui-message>
|
|
128
|
-
<mui-code slot="footer">
|
|
129
|
-
<mui-message icon="mui-icon-accessibility">...</mui-message>
|
|
130
|
-
</mui-code>
|
|
131
|
-
</story-card>
|
|
132
|
-
|
|
133
|
-
<story-card
|
|
134
|
-
title="Variant: Neutral"
|
|
135
|
-
description="A calm, balanced tone for non-critical, persistent messages."
|
|
136
|
-
usage="Use on settings or system pages to display non-urgent information.; Suitable for background status like sync confirmation or feature explanations."
|
|
137
|
-
accessibility="ARIA-live of POLITE is set on this variant.; Role of STATUS is set on this variant."
|
|
138
|
-
>
|
|
139
|
-
<mui-message heading="Sync Settings" slot="body" variant="neutral">
|
|
140
|
-
<mui-body size="small">Your preferences are backed up and synced across devices.</mui-body>
|
|
141
|
-
</mui-message>
|
|
142
|
-
<mui-code slot="footer">
|
|
143
|
-
<mui-message
|
|
144
|
-
<br />
|
|
145
|
-
heading="Sync Settings"
|
|
146
|
-
<br />
|
|
147
|
-
variant="neutral"
|
|
148
|
-
<br />
|
|
149
|
-
>
|
|
150
|
-
<br />
|
|
151
|
-
<br />
|
|
152
|
-
<mui-body>...</mui-body>
|
|
153
|
-
<br />
|
|
154
|
-
<br />
|
|
155
|
-
</mui-message>
|
|
156
|
-
</mui-code>
|
|
157
|
-
</story-card>
|
|
158
|
-
|
|
159
|
-
<story-card
|
|
160
|
-
title="Variant: Positive"
|
|
161
|
-
description="The Positive state conveys successful actions, achievements, or confirmations, fostering a sense of accomplishment and satisfaction."
|
|
162
|
-
usage="Indicate successful form submissions or completed tasks.; Acknowledge user achievements or milestones."
|
|
163
|
-
accessibility="ARIA-live of POLITE is set on this variant.; Role of STATUS is set on this variant."
|
|
164
|
-
>
|
|
165
|
-
<mui-message heading="Report Ready for Download" slot="body" variant="positive">
|
|
166
|
-
<mui-body>The report has been generated and is ready for download.</mui-body>
|
|
167
|
-
<mui-link>Download Your Report</mui-link>
|
|
168
|
-
</mui-message>
|
|
169
|
-
<mui-code slot="footer">
|
|
170
|
-
<mui-message
|
|
171
|
-
<br />
|
|
172
|
-
heading="Message heading"
|
|
173
|
-
<br />
|
|
174
|
-
variant="positive"
|
|
175
|
-
<br />
|
|
176
|
-
>
|
|
177
|
-
<br />
|
|
178
|
-
<mui-body>The report has been...</mui-body>
|
|
179
|
-
<br />
|
|
180
|
-
<mui-link>Download Your Report</mui-link>
|
|
181
|
-
<br />
|
|
182
|
-
</mui-message>
|
|
183
|
-
</mui-code>
|
|
184
|
-
</story-card>
|
|
185
|
-
|
|
186
|
-
<story-card
|
|
187
|
-
title="Variant: Info"
|
|
188
|
-
description="The Info state provides informative messages that help users understand system status or feature updates, guiding them without urgency."
|
|
189
|
-
usage="Use to announce new features | enhancements | system changes.; Appropriate for onboarding tips or contextual help."
|
|
190
|
-
accessibility="ARIA-live of POLITE is set on this variant.; Role of STATUS is set on this variant."
|
|
191
|
-
>
|
|
192
|
-
<mui-message heading="New Feature Available" slot="body" variant="info">
|
|
193
|
-
<mui-body>A new dashboard layout is now available. Explore the enhanced features.</mui-body>
|
|
194
|
-
<mui-link>Try the New Layout</mui-link>
|
|
195
|
-
</mui-message>
|
|
196
|
-
<mui-code slot="footer">
|
|
197
|
-
<mui-message
|
|
198
|
-
<br />
|
|
199
|
-
heading="Message heading"
|
|
200
|
-
<br />
|
|
201
|
-
variant="info"
|
|
202
|
-
<br />
|
|
203
|
-
>
|
|
204
|
-
<br />
|
|
205
|
-
<mui-body>A new dashboard layout...</mui-body>
|
|
206
|
-
<br />
|
|
207
|
-
<mui-link>Try the New Layout</mui-link>
|
|
208
|
-
<br />
|
|
209
|
-
</mui-message>
|
|
210
|
-
</mui-code>
|
|
211
|
-
</story-card>
|
|
212
|
-
|
|
213
|
-
<story-card
|
|
214
|
-
title="Variant: Warning"
|
|
215
|
-
description="The Warning state alerts users to potential issues that may require attention, helping prevent errors or misunderstandings."
|
|
216
|
-
usage="Notify users of actions that could lead to undesirable outcomes; like unsaved changes.; Warn about system limitations or upcoming expirations."
|
|
217
|
-
accessibility="ARIA-live of ASSERTIVE is set on this variant.; Role of ALERT is set on this variant."
|
|
218
|
-
>
|
|
219
|
-
<mui-message heading="Password Expiry Warning" slot="body" variant="warning">
|
|
220
|
-
<mui-body>Your password will expire in 3 days. Please update it to maintain account security.</mui-body>
|
|
221
|
-
<mui-link>Update Your Password</mui-link>
|
|
222
|
-
</mui-message>
|
|
223
|
-
<mui-code slot="footer">
|
|
224
|
-
<mui-message
|
|
225
|
-
<br />
|
|
226
|
-
heading="Message heading"
|
|
227
|
-
<br />
|
|
228
|
-
variant="warning"
|
|
229
|
-
<br />
|
|
230
|
-
>
|
|
231
|
-
<br />
|
|
232
|
-
<mui-body>Your password will expire...</mui-body>
|
|
233
|
-
<br />
|
|
234
|
-
<mui-link>Update Your Password</mui-link>
|
|
235
|
-
<br />
|
|
236
|
-
</mui-message>
|
|
237
|
-
</mui-code>
|
|
238
|
-
</story-card>
|
|
239
|
-
|
|
240
|
-
<story-card
|
|
241
|
-
title="Variant: Attention"
|
|
242
|
-
description="The Attention state demands immediate user focus, highlighting critical issues that require prompt action."
|
|
243
|
-
usage='Alert users to urgent problems; such as system errors or security breaches.; Use for time-sensitive notifications that impact user experience.'
|
|
244
|
-
accessibility="ARIA-live of ASSERTIVE is set on this variant.; Role of ALERT is set on this variant."
|
|
245
|
-
>
|
|
246
|
-
<mui-message heading="Scheduled Maintenance" slot="body" variant="attention">
|
|
247
|
-
<mui-body>Our website will be undergoing maintenance on [Date] from [Time] to [Time]. Some features may be unavailable during this period.</mui-body>
|
|
248
|
-
<mui-link>View Maintenance Schedule</mui-link>
|
|
249
|
-
</mui-message>
|
|
250
|
-
<mui-code slot="footer">
|
|
251
|
-
<mui-message
|
|
252
|
-
<br />
|
|
253
|
-
heading="Message heading"
|
|
254
|
-
<br />
|
|
255
|
-
variant="attention"
|
|
256
|
-
<br />
|
|
257
|
-
>
|
|
258
|
-
<br />
|
|
259
|
-
<mui-body>Our website will be undergoing...</mui-body>
|
|
260
|
-
<br />
|
|
261
|
-
<mui-link>View Maintenance Schedule</mui-link>
|
|
262
|
-
<br />
|
|
263
|
-
</mui-message>
|
|
264
|
-
</mui-code>
|
|
265
|
-
</story-card>
|
|
266
|
-
|
|
267
|
-
</mui-v-stack>
|
|
268
|
-
|
|
269
|
-
</story-template>
|
|
270
|
-
`}}customElements.define("story-message",l);
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
class e extends HTMLElement{constructor(){super();const t=this.attachShadow({mode:"open"}),s=`
|
|
2
|
-
:host { display: block; }
|
|
3
|
-
`;t.innerHTML=`
|
|
4
|
-
<style>${s}</style>
|
|
5
|
-
|
|
6
|
-
<story-template
|
|
7
|
-
title="Slat"
|
|
8
|
-
description="Slat is a composable component designed to display table data on mobile devices. It provides flexible start and end slots, enabling consumers to tailor how data is presented in a mobile-friendly, stacked format. Slat is ideal for adapting complex table layouts into a clearer, more accessible experience on smaller screens."
|
|
9
|
-
github="https://github.com/michaeltrilford/muibook/blob/b060f2c788d521abd1f16889a460822d0cf8da3d/src/components/mui-slat/index.ts"
|
|
10
|
-
>
|
|
11
|
-
|
|
12
|
-
<mui-v-stack space="var(--space-700)">
|
|
13
|
-
|
|
14
|
-
<story-card title="Slat">
|
|
15
|
-
|
|
16
|
-
<mui-slat slot="body">
|
|
17
|
-
<mui-heading slot="start" size="5">Heading</mui-heading>
|
|
18
|
-
<mui-h-stack slot="end" space="var(--space-400)" alignX="flex-end">
|
|
19
|
-
<mui-body width="20px">Body</mui-body>
|
|
20
|
-
</mui-h-stack>
|
|
21
|
-
</mui-slat>
|
|
22
|
-
|
|
23
|
-
<mui-code slot="footer">
|
|
24
|
-
<mui-slat>
|
|
25
|
-
<br />
|
|
26
|
-
<mui-heading slot="start" size="5">...</mui-heading>
|
|
27
|
-
<br />
|
|
28
|
-
<mui-h-stack slot="end">
|
|
29
|
-
<br />
|
|
30
|
-
<mui-body>...</mui-body>
|
|
31
|
-
<br />
|
|
32
|
-
</mui-h-stack>
|
|
33
|
-
<br />
|
|
34
|
-
</mui-slat>
|
|
35
|
-
</mui-code>
|
|
36
|
-
|
|
37
|
-
</story-card>
|
|
38
|
-
|
|
39
|
-
</mui-v-stack>
|
|
40
|
-
|
|
41
|
-
</story-template>
|
|
42
|
-
`}}customElements.define("story-slat",e);
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
class t extends HTMLElement{constructor(){super();const l=this.attachShadow({mode:"open"}),e=`
|
|
2
|
-
:host { display: block; }
|
|
3
|
-
`,i="1fr 1fr";l.innerHTML=`
|
|
4
|
-
<style>${e}</style>
|
|
5
|
-
|
|
6
|
-
<story-template
|
|
7
|
-
title="Rule"
|
|
8
|
-
description="A horizontal rule to divide a page"
|
|
9
|
-
github="https://github.com/michaeltrilford/muibook/blob/b060f2c788d521abd1f16889a460822d0cf8da3d/src/components/mui-rule/index.ts"
|
|
10
|
-
>
|
|
11
|
-
|
|
12
|
-
<mui-v-stack space="var(--space-700)">
|
|
13
|
-
|
|
14
|
-
<story-card title="Horizontal">
|
|
15
|
-
<div slot="body">
|
|
16
|
-
<mui-rule direction="horizontal" length="100%" style="margin: var(--space-700) 0;"></mui-rule>
|
|
17
|
-
</div>
|
|
18
|
-
<mui-code slot="footer">
|
|
19
|
-
<mui-rule
|
|
20
|
-
<br />
|
|
21
|
-
direction="horizontal"
|
|
22
|
-
<br />
|
|
23
|
-
length="100%">
|
|
24
|
-
<br />
|
|
25
|
-
</mui-rule>
|
|
26
|
-
</mui-code>
|
|
27
|
-
</story-card>
|
|
28
|
-
|
|
29
|
-
<story-card title="Vertical">
|
|
30
|
-
<div slot="body">
|
|
31
|
-
<mui-rule direction="vertical" length="100px"></mui-rule>
|
|
32
|
-
</div>
|
|
33
|
-
<mui-code slot="footer">
|
|
34
|
-
<mui-rule
|
|
35
|
-
<br />
|
|
36
|
-
direction="vertical"
|
|
37
|
-
<br />
|
|
38
|
-
length="100px">
|
|
39
|
-
<br />
|
|
40
|
-
</mui-rule>
|
|
41
|
-
</mui-code>
|
|
42
|
-
</story-card>
|
|
43
|
-
|
|
44
|
-
<story-card title="Horizontal">
|
|
45
|
-
<div slot="body">
|
|
46
|
-
<mui-rule direction="horizontal" length="100%" weight="2px" style="margin: var(--space-700) 0;"></mui-rule>
|
|
47
|
-
</div>
|
|
48
|
-
<mui-code slot="footer">
|
|
49
|
-
<mui-rule
|
|
50
|
-
<br />
|
|
51
|
-
direction="horizontal"
|
|
52
|
-
<br />
|
|
53
|
-
length="100%">
|
|
54
|
-
<br />
|
|
55
|
-
weight="2px">
|
|
56
|
-
<br />
|
|
57
|
-
</mui-rule>
|
|
58
|
-
</mui-code>
|
|
59
|
-
</story-card>
|
|
60
|
-
|
|
61
|
-
<story-card title="Vertical">
|
|
62
|
-
<div slot="body">
|
|
63
|
-
<mui-rule direction="vertical" length="100px" weight="2px"></mui-rule>
|
|
64
|
-
</div>
|
|
65
|
-
<mui-code slot="footer">
|
|
66
|
-
<mui-rule
|
|
67
|
-
<br />
|
|
68
|
-
direction="vertical"
|
|
69
|
-
<br />
|
|
70
|
-
length="100px">
|
|
71
|
-
<br />
|
|
72
|
-
weight="2px">
|
|
73
|
-
<br />
|
|
74
|
-
</mui-rule>
|
|
75
|
-
</mui-code>
|
|
76
|
-
</story-card>
|
|
77
|
-
|
|
78
|
-
<story-card title="Props">
|
|
79
|
-
<mui-table slot="body">
|
|
80
|
-
<mui-row-group heading>
|
|
81
|
-
<mui-row columns="${i}">
|
|
82
|
-
<mui-cell heading>Prop</mui-cell>
|
|
83
|
-
<mui-cell heading>Default</mui-cell>
|
|
84
|
-
</mui-row>
|
|
85
|
-
</mui-row-group>
|
|
86
|
-
<mui-row-group>
|
|
87
|
-
<mui-row columns="${i}">
|
|
88
|
-
<mui-cell align-y="center"><mui-body size="small">direction</mui-body></mui-cell>
|
|
89
|
-
<mui-cell align-y="center"><mui-body size="small">"horizontal"</mui-body></mui-cell>
|
|
90
|
-
</mui-row>
|
|
91
|
-
<mui-row columns="${i}">
|
|
92
|
-
<mui-cell align-y="center"><mui-body size="small">length</mui-body></mui-cell>
|
|
93
|
-
<mui-cell align-y="center"><mui-body size="small">"100%"</mui-body></mui-cell>
|
|
94
|
-
</mui-row>
|
|
95
|
-
<mui-row columns="${i}">
|
|
96
|
-
<mui-cell align-y="center"><mui-body size="small">weight</mui-body></mui-cell>
|
|
97
|
-
<mui-cell align-y="center"><mui-body size="small">"1px"</mui-body></mui-cell>
|
|
98
|
-
</mui-row>
|
|
99
|
-
</mui-row-group>
|
|
100
|
-
</mui-table>
|
|
101
|
-
</story-card>
|
|
102
|
-
|
|
103
|
-
</mui-v-stack>
|
|
104
|
-
|
|
105
|
-
</story-template>
|
|
106
|
-
`}}customElements.define("story-rule",t);
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import{I as t}from"./image-1080-Bg-8LoSs.js";class a extends HTMLElement{constructor(){super();const i=this.attachShadow({mode:"open"}),e=`
|
|
2
|
-
:host { display: block; }
|
|
3
|
-
`;i.innerHTML=`
|
|
4
|
-
<style>${e}</style>
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
<story-template
|
|
8
|
-
title="Image"
|
|
9
|
-
description="Defines a image."
|
|
10
|
-
github="https://github.com/michaeltrilford/muibook/blob/b060f2c788d521abd1f16889a460822d0cf8da3d/src/components/mui-image/index.ts"
|
|
11
|
-
>
|
|
12
|
-
|
|
13
|
-
<mui-v-stack space="var(--space-700)">
|
|
14
|
-
|
|
15
|
-
<story-card title="Single image">
|
|
16
|
-
<div slot="body">
|
|
17
|
-
<mui-image>
|
|
18
|
-
<img slot="image" src="${t}" alt="image-1080" />
|
|
19
|
-
</mui-image>
|
|
20
|
-
</div>
|
|
21
|
-
<mui-code slot="footer">
|
|
22
|
-
<mui-image>
|
|
23
|
-
<br />
|
|
24
|
-
<img slot="image" src="..." alt="image-1080" />
|
|
25
|
-
<br />
|
|
26
|
-
</mui-image>
|
|
27
|
-
</mui-code>
|
|
28
|
-
</story-card>
|
|
29
|
-
|
|
30
|
-
<story-card title="Image with caption">
|
|
31
|
-
<div slot="body">
|
|
32
|
-
<mui-image>
|
|
33
|
-
<img slot="image" src="${t}" alt="image-1080" />
|
|
34
|
-
<figcaption slot="caption">Example image</figcaption>
|
|
35
|
-
</mui-image>
|
|
36
|
-
</div>
|
|
37
|
-
<mui-code slot="footer">
|
|
38
|
-
<mui-image>
|
|
39
|
-
<br />
|
|
40
|
-
<img slot="image" src="..." alt="image-1080" />
|
|
41
|
-
<br />
|
|
42
|
-
<figcaption slot="caption">...</figcaption>
|
|
43
|
-
<br />
|
|
44
|
-
</mui-image>
|
|
45
|
-
</mui-code>
|
|
46
|
-
</story-card>
|
|
47
|
-
|
|
48
|
-
</mui-v-stack>
|
|
49
|
-
|
|
50
|
-
</story-template>
|
|
51
|
-
|
|
52
|
-
`}}customElements.define("story-image",a);
|