@shortfuse/materialdesignweb 0.4.0 → 0.5.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/.browserslistrc +2 -1
- package/.eslintrc.json +59 -8
- package/.stylelintrc.json +94 -49
- package/CHANGELOG.md +12 -0
- package/README.md +1 -3
- package/adapters/datatable/column.js +27 -54
- package/adapters/datatable/index.js +69 -81
- package/adapters/dom/index.js +32 -47
- package/adapters/search/index.js +107 -133
- package/components/appbar/_spec.scss +77 -137
- package/components/banner/_spec.scss +28 -63
- package/components/bottomnav/_spec.scss +46 -54
- package/components/bottomnav/index.js +15 -20
- package/components/bottomnav/item.js +4 -5
- package/components/button/README.md +1 -1
- package/components/button/_spec.scss +43 -42
- package/components/button/_theme.scss +27 -50
- package/components/card/_spec.scss +61 -69
- package/components/chip/_spec.scss +21 -44
- package/components/chip/_theme.scss +79 -151
- package/components/chip/index.js +6 -4
- package/components/datatable/_spec.scss +36 -99
- package/components/datatable/_theme.scss +98 -124
- package/components/datatable/cell.js +1 -2
- package/components/datatable/columnheader.js +1 -2
- package/components/datatable/index.js +33 -47
- package/components/datatable/row.js +4 -5
- package/components/dialog/_spec.scss +53 -63
- package/components/dialog/_theme.scss +7 -0
- package/components/dialog/index.js +62 -88
- package/components/divider/_spec.scss +6 -8
- package/components/elevation/_spec.scss +1 -1
- package/components/fab/_spec.scss +30 -42
- package/components/fab/index.js +4 -8
- package/components/grid/_spec.scss +68 -211
- package/components/layout/_mixins.scss +0 -22
- package/components/layout/_spec.scss +267 -363
- package/components/layout/_theme.scss +10 -35
- package/components/layout/index.js +40 -50
- package/components/list/_spec.scss +57 -91
- package/components/list/_theme.scss +75 -84
- package/components/list/content.js +9 -13
- package/components/list/index.js +34 -38
- package/components/list/item.js +8 -11
- package/components/list/secondary.js +8 -9
- package/components/menu/_spec.scss +134 -167
- package/components/menu/index.js +45 -61
- package/components/menu/item.js +11 -19
- package/components/progress/_spec.scss +43 -34
- package/components/selection/_spec.scss +123 -133
- package/components/selection/_theme.scss +88 -120
- package/components/selection/index.js +9 -15
- package/components/selection/input.js +3 -5
- package/components/selection/radiogroup.js +8 -15
- package/components/slider/_spec.scss +23 -28
- package/components/snackbar/_spec.scss +17 -62
- package/components/snackbar/index.js +15 -21
- package/components/tab/_spec.scss +35 -50
- package/components/tab/content.js +33 -28
- package/components/tab/index.js +30 -33
- package/components/tab/item.js +4 -5
- package/components/tab/list.js +22 -36
- package/components/textfield/README.md +2 -2
- package/components/textfield/_spec.scss +241 -287
- package/components/textfield/_theme.scss +197 -232
- package/components/textfield/index.js +8 -16
- package/components/tooltip/_spec.scss +23 -26
- package/components/type/_spec.scss +19 -16
- package/core/_breakpoint.scss +33 -33
- package/core/_elevation.scss +40 -0
- package/core/_length.scss +0 -1
- package/core/_platform.scss +0 -22
- package/core/_type.scss +7 -6
- package/core/aria/button.js +4 -5
- package/core/aria/keyboard.js +1 -2
- package/core/aria/rovingtabindex.js +14 -17
- package/core/aria/tab.js +1 -2
- package/core/dom.js +18 -109
- package/core/overlay/_spec.scss +5 -8
- package/core/overlay/_theme.scss +126 -150
- package/core/overlay/index.js +19 -32
- package/core/ripple/_spec.scss +16 -17
- package/core/ripple/_theme.scss +13 -33
- package/core/ripple/index.js +36 -44
- package/core/theme/_aliases.scss +15 -0
- package/core/theme/_config.scss +8 -2
- package/core/theme/_functions.scss +22 -0
- package/core/theme/_palettes.scss +0 -1
- package/core/{color → theme}/_spec.scss +0 -0
- package/core/theme/_theme.scss +268 -0
- package/core/theme/index.scss +4 -0
- package/core/transition/index.js +73 -76
- package/docs/_flex.scss +7 -1
- package/docs/_menuoptions.js +2 -2
- package/docs/_partials/_appbar.eta +12 -14
- package/docs/_partials/_header.eta +41 -44
- package/docs/_sample-utils.js +15 -20
- package/docs/docs.scss +123 -87
- package/docs/framework.scss +26 -0
- package/docs/index.eta +2 -6
- package/docs/index.js +7 -0
- package/docs/pages/appbar.eta +22 -28
- package/docs/pages/bottomnav.js +17 -14
- package/docs/pages/button.js +10 -10
- package/docs/pages/card.js +20 -22
- package/docs/pages/chip.js +11 -13
- package/docs/pages/color.js +35 -36
- package/docs/pages/datatable.js +11 -15
- package/docs/pages/dialog.eta +9 -11
- package/docs/pages/dialog.js +6 -9
- package/docs/pages/dom.js +6 -9
- package/docs/pages/elevation.eta +10 -10
- package/docs/pages/fab.js +2 -3
- package/docs/pages/grid.js +5 -5
- package/docs/pages/list.js +1 -2
- package/docs/pages/menu.eta +17 -19
- package/docs/pages/menu.js +7 -11
- package/docs/pages/overlay.js +1 -2
- package/docs/pages/progress.eta +2 -2
- package/docs/pages/progress.js +1 -1
- package/docs/pages/ripple.js +1 -2
- package/docs/pages/search.eta +20 -24
- package/docs/pages/search.js +24 -41
- package/docs/pages/selection.eta +2 -6
- package/docs/pages/selection.js +3 -4
- package/docs/pages/snackbar.js +3 -4
- package/docs/pages/tab.eta +61 -75
- package/docs/pages/tab.js +16 -15
- package/docs/pages/textfield.eta +9 -8
- package/docs/pages/textfield.js +26 -23
- package/docs/pages/tooltip.eta +10 -12
- package/docs/pages/transition.js +5 -7
- package/docs/postrender.js +7 -5
- package/docs/pwa/pwa.eta +14 -16
- package/docs/pwa/pwa.js +19 -27
- package/docs/pwa/pwa.scss +12 -7
- package/docs/themes/theme-colored.scss +9 -11
- package/docs/themes/theme-default.scss +0 -14
- package/index.scss +27 -0
- package/jsconfig.json +7 -3
- package/package.json +26 -15
- package/tsconfig.json +16 -0
- package/{webpack.config.cjs → webpack.config.js} +105 -58
- package/components/template/_theme.scss +0 -27
- package/components/textfield/_mixins.scss +0 -52
- package/core/color/_theme.scss +0 -390
- package/core/color/index.scss +0 -2
- package/core/theme/_mixins.scss +0 -172
- package/core/theme/_variables.scss +0 -24
- package/docs/_mixins.pug +0 -155
- package/docs/pages/appbar.pug +0 -78
- package/docs/pages/bottomnav.pug +0 -137
- package/docs/pages/button.pug +0 -121
- package/docs/pages/card.pug +0 -74
- package/docs/pages/chip.pug +0 -91
- package/docs/pages/color.pug +0 -121
- package/docs/pages/datatable.pug +0 -283
- package/docs/pages/dialog.pug +0 -132
- package/docs/pages/dom.pug +0 -22
- package/docs/pages/elevation.pug +0 -25
- package/docs/pages/fab.pug +0 -66
- package/docs/pages/grid.pug +0 -95
- package/docs/pages/layout.pug +0 -7
- package/docs/pages/list.pug +0 -326
- package/docs/pages/menu.pug +0 -205
- package/docs/pages/overlay.pug +0 -55
- package/docs/pages/progress.pug +0 -16
- package/docs/pages/ripple.pug +0 -21
- package/docs/pages/search.pug +0 -165
- package/docs/pages/selection.pug +0 -74
- package/docs/pages/slider.pug +0 -17
- package/docs/pages/snackbar.pug +0 -60
- package/docs/pages/tab.pug +0 -304
- package/docs/pages/textfield.pug +0 -360
- package/docs/pages/tooltip.pug +0 -78
- package/docs/pages/transition.pug +0 -76
- package/docs/pages/type.pug +0 -29
- package/docs/pwa/_dialogs.pug +0 -96
- package/docs/pwa/_menus.pug +0 -11
- package/docs/pwa/pwa.pug +0 -325
- package/docs/spec.scss +0 -26
- package/docs/themes/_component-themes.scss +0 -26
- package/docs/themes/theme-colored-fallbacks.scss +0 -17
- package/docs/themes/theme-default-fallbacks.scss +0 -17
package/docs/pages/menu.pug
DELETED
|
@@ -1,205 +0,0 @@
|
|
|
1
|
-
include ../_mixins.pug
|
|
2
|
-
|
|
3
|
-
+header("menu")
|
|
4
|
-
.mdw-grid(mdw-margin-top mdw-margin-bottom mdw-stretch)
|
|
5
|
-
.mdw-grid__item(mdw-colspan="100%")
|
|
6
|
-
.mdw-grid__content
|
|
7
|
-
h5.mdw-type(mdw-baseline-next="36") Menus display a list of choices on a transient sheet of material.
|
|
8
|
-
p.mdw-type(mdw-baseline-next="36") Menus appear upon interaction with a button, action, or other control. They display a list of choices, with one choice per line.
|
|
9
|
-
p.mdw-type Menu items may be disabled if not applicable to a certain context. Contextual menus dynamically change their available menu items based on the current state of the app.
|
|
10
|
-
.mdw-grid__item(mdw-colspan="4")
|
|
11
|
-
.mdw-grid__content
|
|
12
|
-
.component-sample
|
|
13
|
-
.component-sample__container
|
|
14
|
-
.mdw-menu__wrapper
|
|
15
|
-
+mdwButton Open
|
|
16
|
-
.mdw-menu
|
|
17
|
-
.mdw-menu__popup.mdw-theme(mdw-surface="card")
|
|
18
|
-
.mdw-menu__item
|
|
19
|
-
.mdw-menu__icon.mdw-theme.material-icons(mdw-ink="medium") format_bold
|
|
20
|
-
.mdw-menu__text Bold
|
|
21
|
-
.mdw-menu__info ⌘B
|
|
22
|
-
.mdw-menu__item(aria-disabled="true")
|
|
23
|
-
.mdw-menu__icon.mdw-theme.material-icons(mdw-ink="medium") format_italic
|
|
24
|
-
.mdw-menu__text Italic
|
|
25
|
-
.mdw-menu__info ⌘I
|
|
26
|
-
.mdw-menu__item
|
|
27
|
-
.mdw-menu__icon.mdw-theme.material-icons(mdw-ink="medium") format_underline
|
|
28
|
-
.mdw-menu__text Underline
|
|
29
|
-
.mdw-menu__info ⌘U
|
|
30
|
-
.mdw-divider.mdw-theme(mdw-ink="divider")
|
|
31
|
-
.mdw-menu__item(aria-checked="true")
|
|
32
|
-
.mdw-menu__check.mdw-theme.material-icons(mdw-ink="medium") check
|
|
33
|
-
.mdw-menu__text Flights
|
|
34
|
-
.mdw-menu__item
|
|
35
|
-
.mdw-menu__check.mdw-theme.material-icons(mdw-ink="medium") check
|
|
36
|
-
.mdw-menu__text Apps
|
|
37
|
-
.mdw-grid__item(mdw-colspan="8")
|
|
38
|
-
.mdw-grid__content
|
|
39
|
-
.mdw-type(mdw-style="subtitle") Javascript
|
|
40
|
-
.docs-option-list
|
|
41
|
-
+mdwSelection({ink:'secondary', name:'javascript', type:'radio', value:'required', checked:true}) Required
|
|
42
|
-
+mdwSelection({ink:'secondary', name:'javascript', type:'radio', value:'optional'}) Optional
|
|
43
|
-
+mdwSelection({ink:'secondary', name:'javascript', type:'radio', value:'none' }) None
|
|
44
|
-
.mdw-type(mdw-style="subtitle") Vertical Position
|
|
45
|
-
.docs-option-list
|
|
46
|
-
+mdwSelection({ink:'secondary', name:'vposition', type:'radio', value:'auto', checked:true}) Auto
|
|
47
|
-
+mdwSelection({ink:'secondary', name:'vposition', type:'radio', value:'bottom'}) Bottom
|
|
48
|
-
+mdwSelection({ink:'secondary', name:'vposition', type:'radio', value:'top' }) Top
|
|
49
|
-
+mdwSelection({ink:'secondary', name:'vposition', type:'radio', value:'vcenter' }) Center
|
|
50
|
-
.mdw-type(mdw-style="subtitle") Horizontal Position
|
|
51
|
-
.docs-option-list
|
|
52
|
-
+mdwSelection({ink:'secondary', name:'hposition', type:'radio', value:'auto', checked:true}) Auto
|
|
53
|
-
+mdwSelection({ink:'secondary', name:'hposition', type:'radio', value:'start'}) Start
|
|
54
|
-
+mdwSelection({ink:'secondary', name:'hposition', type:'radio', value:'end' }) End
|
|
55
|
-
+mdwSelection({ink:'secondary', name:'hposition', type:'radio', value:'left' }) Left
|
|
56
|
-
+mdwSelection({ink:'secondary', name:'hposition', type:'radio', value:'right' }) Right
|
|
57
|
-
+mdwSelection({ink:'secondary', name:'hposition', type:'radio', value:'hcenter' }) Center
|
|
58
|
-
.mdw-type(mdw-style="subtitle") Vertical Direction
|
|
59
|
-
.docs-option-list
|
|
60
|
-
+mdwSelection({ink:'secondary', name:'vdirection', type:'radio', value:'auto', checked:true}) Auto
|
|
61
|
-
+mdwSelection({ink:'secondary', name:'vdirection', type:'radio', value:'down'}) Down
|
|
62
|
-
+mdwSelection({ink:'secondary', name:'vdirection', type:'radio', value:'up' }) Up
|
|
63
|
-
+mdwSelection({ink:'secondary', name:'vdirection', type:'radio', value:'vcenter' }) Center
|
|
64
|
-
.mdw-type(mdw-style="subtitle") Horizontal Direction
|
|
65
|
-
.docs-option-list
|
|
66
|
-
+mdwSelection({ink:'secondary', name:'hdirection', type:'radio', value:'auto', checked:true}) Auto
|
|
67
|
-
+mdwSelection({ink:'secondary', name:'hdirection', type:'radio', value:'normal'}) Normal
|
|
68
|
-
+mdwSelection({ink:'secondary', name:'hdirection', type:'radio', value:'reverse' }) Reverse
|
|
69
|
-
+mdwSelection({ink:'secondary', name:'hdirection', type:'radio', value:'ltr'}) Left-to-Right
|
|
70
|
-
+mdwSelection({ink:'secondary', name:'hdirection', type:'radio', value:'rtl' }) Right-to-Left
|
|
71
|
-
+mdwSelection({ink:'secondary', name:'hdirection', type:'radio', value:'hcenter' }) Center
|
|
72
|
-
.mdw-type(mdw-style="subtitle") Width Units
|
|
73
|
-
.docs-option-list
|
|
74
|
-
+mdwSelection({ink:'secondary', name:'width', type:'radio', value:'auto', checked:true}) Auto
|
|
75
|
-
+mdwSelection({ink:'secondary', name:'width', type:'radio', value:'3' }) 3
|
|
76
|
-
+mdwSelection({ink:'secondary', name:'width', type:'radio', value:'4' }) 4
|
|
77
|
-
+mdwSelection({ink:'secondary', name:'width', type:'radio', value:'5' }) 5
|
|
78
|
-
+mdwSelection({ink:'secondary', name:'width', type:'radio', value:'6' }) 6
|
|
79
|
-
+mdwSelection({ink:'secondary', name:'width', type:'radio', value:'7' }) 7
|
|
80
|
-
.mdw-grid__item(mdw-colspan="100%" style="max-height:0")
|
|
81
|
-
.mdw-grid__item(mdw-colspan="6")
|
|
82
|
-
.mdw-grid__content
|
|
83
|
-
h6.mdw-type HTML Code
|
|
84
|
-
.mdw-card.mdw-theme.component-code.component-html(mdw-surface="card" mdw-border-ink)
|
|
85
|
-
.mdw-grid__item(mdw-colspan="6")
|
|
86
|
-
.mdw-grid__content
|
|
87
|
-
h6.mdw-type Javascript Code
|
|
88
|
-
.mdw-card.mdw-theme.component-code.component-js(mdw-surface="card" mdw-border-ink)
|
|
89
|
-
.mdw-grid__item(mdw-colspan="100%")
|
|
90
|
-
h6.mdw-type Samples
|
|
91
|
-
.mdw-grid__item.display-flex(mdw-colspan="4" flex-justify-content="center")
|
|
92
|
-
.mdw-grid__content
|
|
93
|
-
.render-fill
|
|
94
|
-
+androidstatusbar('primary 700', 'dark')
|
|
95
|
-
.mdw-appbar.mdw-theme(mdw-surface="primary 500" mdw-dark)
|
|
96
|
-
.mdw-appbar__action
|
|
97
|
-
.mdw-appbar__start
|
|
98
|
-
.mdw-tooltip__wrapper
|
|
99
|
-
+mdwButton({ icon:true }).mdw-tooltip__target.material-icons menu
|
|
100
|
-
.mdw-tooltip.mdw-theme(mdw-surface="background 700" mdw-dark) Menu
|
|
101
|
-
.mdw-appbar__end
|
|
102
|
-
.mdw-tooltip__wrapper.mdw-menu__wrapper
|
|
103
|
-
+mdwButton({ icon:true }).mdw-tooltip__target.material-icons(mdw-more-button href="#moremenu") more_vert
|
|
104
|
-
.mdw-tooltip.mdw-theme(mdw-surface="background 700" mdw-dark).mdw-tooltip Options
|
|
105
|
-
.mdw-menu#moremenu(mdw-direction="reverse" mdw-position="end" mdw-width-units="3")
|
|
106
|
-
a.mdw-menu__close(href="#")
|
|
107
|
-
.mdw-menu__popup.mdw-theme(mdw-surface="card")
|
|
108
|
-
.mdw-menu__text Refresh
|
|
109
|
-
.mdw-menu__text Settings
|
|
110
|
-
.mdw-menu__text Send feedback
|
|
111
|
-
.mdw-menu__text Help
|
|
112
|
-
.mdw-menu__text Signout
|
|
113
|
-
.content(style="padding:16px 8px")
|
|
114
|
-
.mdw-menu__wrapper
|
|
115
|
-
+mdwButton({ surface:'primary 500', dark:true, raised:true })#textmenu-button(href="#textmenu") Text
|
|
116
|
-
.mdw-menu#textmenu
|
|
117
|
-
a.mdw-menu__close(href="#textmenu-button")
|
|
118
|
-
.mdw-menu__popup.mdw-theme(mdw-surface="card")
|
|
119
|
-
.mdw-menu__item.mdw-overlay.mdw-ripple Maps
|
|
120
|
-
.mdw-menu__item.mdw-overlay.mdw-ripple Books
|
|
121
|
-
.mdw-menu__item.mdw-overlay.mdw-ripple Flights
|
|
122
|
-
.mdw-menu__item.mdw-overlay.mdw-ripple Apps
|
|
123
|
-
.mdw-menu__wrapper
|
|
124
|
-
+mdwButton({ surface:'primary 500', dark:true, raised:true })#checkmenu-button(href="#checkmenu") Checks
|
|
125
|
-
.mdw-menu#checkmenu
|
|
126
|
-
a.mdw-menu__close(href="#checkmenu-button")
|
|
127
|
-
.mdw-menu__popup.mdw-theme(mdw-surface="card")
|
|
128
|
-
.mdw-menu__item.mdw-overlay.mdw-ripple
|
|
129
|
-
.mdw-menu__check.mdw-theme.material-icons(mdw-ink="medium") check
|
|
130
|
-
.mdw-menu__text Maps
|
|
131
|
-
.mdw-menu__item.mdw-overlay.mdw-ripple(aria-checked="true")
|
|
132
|
-
.mdw-menu__check.mdw-theme.material-icons(mdw-ink="medium") check
|
|
133
|
-
.mdw-menu__text Books
|
|
134
|
-
.mdw-menu__item.mdw-overlay.mdw-ripple(aria-checked="true")
|
|
135
|
-
.mdw-menu__check.mdw-theme.material-icons(mdw-ink="medium") check
|
|
136
|
-
.mdw-menu__text Flights
|
|
137
|
-
.mdw-menu__item.mdw-overlay.mdw-ripple
|
|
138
|
-
.mdw-menu__check.mdw-theme.material-icons(mdw-ink="medium") check
|
|
139
|
-
.mdw-menu__text Apps
|
|
140
|
-
div(style="height:400px")
|
|
141
|
-
.mdw-menu__wrapper
|
|
142
|
-
+mdwButton({ surface:'primary 500', dark:true, raised:true })#infomenu-button(href="#infomenu") Info
|
|
143
|
-
.mdw-menu#infomenu(mdw-width-units=4 mdw-direction="up" mdw-position="top")
|
|
144
|
-
a.mdw-menu__close(href="#infomenu-button")
|
|
145
|
-
.mdw-menu__popup.mdw-theme(mdw-surface="card")
|
|
146
|
-
.mdw-menu__item.mdw-overlay.mdw-ripple(aria-disabled="true")
|
|
147
|
-
.mdw-menu__check.mdw-theme.material-icons(mdw-ink="medium") check
|
|
148
|
-
.mdw-menu__text Bold
|
|
149
|
-
.mdw-menu__info ⌘B
|
|
150
|
-
.mdw-menu__item.mdw-overlay.mdw-ripple(aria-checked="true")
|
|
151
|
-
.mdw-menu__check.mdw-theme.material-icons(mdw-ink="medium") check
|
|
152
|
-
.mdw-menu__text Italic
|
|
153
|
-
.mdw-menu__info ⌘I
|
|
154
|
-
.mdw-menu__item.mdw-overlay.mdw-ripple(aria-checked="true")
|
|
155
|
-
.mdw-menu__check.mdw-theme.material-icons(mdw-ink="medium") check
|
|
156
|
-
.mdw-menu__text Underline
|
|
157
|
-
.mdw-menu__info ⌘U
|
|
158
|
-
.mdw-divider.mdw-theme(mdw-ink="divider")
|
|
159
|
-
.mdw-menu__item.mdw-overlay.mdw-ripple(aria-checked="true")
|
|
160
|
-
.mdw-menu__check.mdw-theme.material-icons(mdw-ink="medium") check
|
|
161
|
-
.mdw-menu__text Flights
|
|
162
|
-
.mdw-menu__item.mdw-overlay.mdw-ripple
|
|
163
|
-
.mdw-menu__check.mdw-theme.material-icons(mdw-ink="medium") check
|
|
164
|
-
.mdw-menu__text Apps
|
|
165
|
-
.mdw-menu__wrapper
|
|
166
|
-
+mdwButton({ surface:'primary 500', dark:true, raised:true })#iconmenu-button(href="#iconmenu") Icons
|
|
167
|
-
.mdw-menu#iconmenu(mdw-width-units=4 mdw-direction="up" mdw-position="top")
|
|
168
|
-
a.mdw-menu__close(href="#iconmenu-button")
|
|
169
|
-
.mdw-menu__popup.mdw-theme(mdw-surface="card")
|
|
170
|
-
.mdw-menu__item.mdw-overlay.mdw-ripple
|
|
171
|
-
.mdw-menu__icon.mdw-theme.material-icons(mdw-ink="medium") format_bold
|
|
172
|
-
.mdw-menu__text Bold
|
|
173
|
-
.mdw-menu__info ⌘B
|
|
174
|
-
.mdw-menu__item.mdw-overlay.mdw-ripple
|
|
175
|
-
.mdw-menu__icon.mdw-theme.material-icons(mdw-ink="medium") format_italic
|
|
176
|
-
.mdw-menu__text Italic
|
|
177
|
-
.mdw-menu__info ⌘I
|
|
178
|
-
.mdw-menu__item.mdw-overlay.mdw-ripple
|
|
179
|
-
.mdw-menu__icon.mdw-theme.material-icons(mdw-ink="medium") format_underline
|
|
180
|
-
.mdw-menu__text Underline
|
|
181
|
-
.mdw-menu__info ⌘U
|
|
182
|
-
.mdw-menu__wrapper.js
|
|
183
|
-
+mdwButton({ surface:'primary 500', dark:true, raised: true }) JS
|
|
184
|
-
.mdw-menu(mdw-width-units=4 mdw-direction="reverse")
|
|
185
|
-
.mdw-menu__popup.mdw-theme(mdw-surface="card")
|
|
186
|
-
.mdw-menu__item
|
|
187
|
-
.mdw-menu__icon.mdw-theme.material-icons(mdw-ink="medium") format_bold
|
|
188
|
-
.mdw-menu__text Bold
|
|
189
|
-
.mdw-menu__info ⌘B
|
|
190
|
-
.mdw-menu__item(aria-disabled="true")
|
|
191
|
-
.mdw-menu__icon.mdw-theme.material-icons(mdw-ink="medium") format_italic
|
|
192
|
-
.mdw-menu__text Italic
|
|
193
|
-
.mdw-menu__info ⌘I
|
|
194
|
-
.mdw-menu__item
|
|
195
|
-
.mdw-menu__icon.mdw-theme.material-icons(mdw-ink="medium") format_underline
|
|
196
|
-
.mdw-menu__text Underline
|
|
197
|
-
.mdw-menu__info ⌘U
|
|
198
|
-
.mdw-divider.mdw-theme(mdw-ink="divider")
|
|
199
|
-
.mdw-menu__item(aria-checked="true")
|
|
200
|
-
.mdw-menu__check.mdw-theme.material-icons(mdw-ink="medium") check
|
|
201
|
-
.mdw-menu__text Flights
|
|
202
|
-
.mdw-menu__item
|
|
203
|
-
.mdw-menu__check.mdw-theme.material-icons(mdw-ink="medium") check
|
|
204
|
-
.mdw-menu__text Apps
|
|
205
|
-
script(src='menu.min.js')
|
package/docs/pages/overlay.pug
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
include ../_mixins.pug
|
|
2
|
-
|
|
3
|
-
+header("overlay")
|
|
4
|
-
.mdw-grid(mdw-margin-top mdw-margin-bottom mdw-stretch)
|
|
5
|
-
.mdw-grid__item(mdw-colspan="100%")
|
|
6
|
-
.mdw-grid__content
|
|
7
|
-
h2.mdw-type JS
|
|
8
|
-
p.mdw-type No hover or focus overlay on touch
|
|
9
|
-
.mdw-grid__item(mdw-colspan="4")
|
|
10
|
-
.mdw-grid__content
|
|
11
|
-
h6.mdw-type Default Ink
|
|
12
|
-
.display-flex.flex-column.js
|
|
13
|
-
.demo-core-item.mdw-elevation.mdw-overlay.mdw-theme(mdw-elevation="1" tabindex="0" mdw-raised mdw-ink="default" mdw-surface="binary") Normal
|
|
14
|
-
.demo-core-item.mdw-elevation.mdw-overlay.mdw-theme(mdw-elevation="1" tabindex="0" mdw-raised mdw-ink="default" mdw-surface="binary" aria-selected="false") [aria-selected="false"]
|
|
15
|
-
.demo-core-item.mdw-elevation.mdw-overlay.mdw-theme(mdw-elevation="1" tabindex="0" mdw-raised mdw-ink="default" mdw-surface="binary" aria-selected="true") [aria-selected="true"]
|
|
16
|
-
.demo-core-item.mdw-elevation.mdw-overlay.mdw-theme(mdw-elevation="1" tabindex="0" mdw-raised mdw-ink="default" mdw-surface="binary" aria-pressed="false") [aria-pressed="false"]
|
|
17
|
-
.demo-core-item.mdw-elevation.mdw-overlay.mdw-theme(mdw-elevation="1" tabindex="0" mdw-raised mdw-ink="default" mdw-surface="binary" aria-pressed="true") [aria-pressed="true"]
|
|
18
|
-
.demo-core-item.mdw-elevation.mdw-overlay.mdw-theme(mdw-elevation="1" tabindex="0" mdw-raised mdw-ink="default" mdw-surface="binary" aria-current="true") [aria-current]
|
|
19
|
-
.demo-core-item.mdw-elevation.mdw-overlay.mdw-theme(mdw-elevation="1" tabindex="0" mdw-raised mdw-ink="default" mdw-surface="binary" aria-selected="true" aria-current="true") [aria-selected="true"][aria-current]
|
|
20
|
-
.mdw-grid__item(mdw-colspan="4")
|
|
21
|
-
.mdw-grid__content
|
|
22
|
-
h6.mdw-type Secondary Ink
|
|
23
|
-
.display-flex.flex-column.js
|
|
24
|
-
.demo-core-item.mdw-elevation.mdw-overlay.mdw-theme(mdw-elevation="1" tabindex="0" mdw-raised mdw-ink="secondary" mdw-surface="binary") Normal
|
|
25
|
-
.demo-core-item.mdw-elevation.mdw-overlay.mdw-theme(mdw-elevation="1" tabindex="0" mdw-raised mdw-ink="secondary" mdw-surface="binary" aria-selected="false") [aria-selected="false"]
|
|
26
|
-
.demo-core-item.mdw-elevation.mdw-overlay.mdw-theme(mdw-elevation="1" tabindex="0" mdw-raised mdw-ink="secondary" mdw-surface="binary" aria-selected="true") [aria-selected="true"]
|
|
27
|
-
.demo-core-item.mdw-elevation.mdw-overlay.mdw-theme(mdw-elevation="1" tabindex="0" mdw-raised mdw-ink="secondary" mdw-surface="binary" aria-pressed="false") [aria-pressed="false"]
|
|
28
|
-
.demo-core-item.mdw-elevation.mdw-overlay.mdw-theme(mdw-elevation="1" tabindex="0" mdw-raised mdw-ink="secondary" mdw-surface="binary" aria-pressed="true") [aria-pressed="true"]
|
|
29
|
-
.demo-core-item.mdw-elevation.mdw-overlay.mdw-theme(mdw-elevation="1" tabindex="0" mdw-raised mdw-ink="secondary" mdw-surface="binary" aria-current="true") [aria-current]
|
|
30
|
-
.demo-core-item.mdw-elevation.mdw-overlay.mdw-theme(mdw-elevation="1" tabindex="0" mdw-raised mdw-ink="secondary" mdw-surface="binary" aria-selected="true" aria-current="true") [aria-selected="true"][aria-current]
|
|
31
|
-
.mdw-grid__item(mdw-colspan="100%")
|
|
32
|
-
.mdw-grid__content
|
|
33
|
-
h2.mdw-type CSS Only
|
|
34
|
-
p.mdw-type No touch detection
|
|
35
|
-
.mdw-grid__item(mdw-colspan="4")
|
|
36
|
-
.mdw-grid__content
|
|
37
|
-
h6.mdw-type Default Ink
|
|
38
|
-
.display-flex.flex-column
|
|
39
|
-
.demo-core-item.mdw-elevation.mdw-overlay.mdw-theme(mdw-elevation="1" tabindex="0" mdw-raised mdw-ink="default" mdw-surface="binary") Normal
|
|
40
|
-
.demo-core-item.mdw-elevation.mdw-overlay.mdw-theme(mdw-elevation="1" tabindex="0" mdw-raised mdw-ink="default" mdw-surface="binary" aria-selected="false") [aria-selected="false"]
|
|
41
|
-
.demo-core-item.mdw-elevation.mdw-overlay.mdw-theme(mdw-elevation="1" tabindex="0" mdw-raised mdw-ink="default" mdw-surface="binary" aria-pressed="false") [aria-pressed="false"]
|
|
42
|
-
.demo-core-item.mdw-elevation.mdw-overlay.mdw-theme(mdw-elevation="1" tabindex="0" mdw-raised mdw-ink="default" mdw-surface="binary" aria-selected="true") [aria-selected="true"]
|
|
43
|
-
.demo-core-item.mdw-elevation.mdw-overlay.mdw-theme(mdw-elevation="1" tabindex="0" mdw-raised mdw-ink="default" mdw-surface="binary" aria-pressed="true") [aria-pressed="true"]
|
|
44
|
-
.mdw-grid__item(mdw-colspan="4")
|
|
45
|
-
.mdw-grid__content
|
|
46
|
-
h6.mdw-type Secondary Ink
|
|
47
|
-
.display-flex.flex-column
|
|
48
|
-
.demo-core-item.mdw-elevation.mdw-overlay.mdw-theme(mdw-elevation="1" tabindex="0" mdw-raised mdw-ink="secondary" mdw-surface="binary") Normal
|
|
49
|
-
.demo-core-item.mdw-elevation.mdw-overlay.mdw-theme(mdw-elevation="1" tabindex="0" mdw-raised mdw-ink="secondary" mdw-surface="binary" aria-selected="false") [aria-selected="false"]
|
|
50
|
-
.demo-core-item.mdw-elevation.mdw-overlay.mdw-theme(mdw-elevation="1" tabindex="0" mdw-raised mdw-ink="secondary" mdw-surface="binary" aria-pressed="false") [aria-pressed="false"]
|
|
51
|
-
.demo-core-item.mdw-elevation.mdw-overlay.mdw-theme(mdw-elevation="1" tabindex="0" mdw-raised mdw-ink="secondary" mdw-surface="binary" aria-selected="true") [aria-selected="true"]
|
|
52
|
-
.demo-core-item.mdw-elevation.mdw-overlay.mdw-theme(mdw-elevation="1" tabindex="0" mdw-raised mdw-ink="secondary" mdw-surface="binary" aria-pressed="true") [aria-pressed="true"]
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
script(src='overlay.min.js')
|
package/docs/pages/progress.pug
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
include ../_mixins.pug
|
|
2
|
-
|
|
3
|
-
+header("progress")
|
|
4
|
-
.comparison.clipped-300.js
|
|
5
|
-
.render
|
|
6
|
-
.content.display-flex
|
|
7
|
-
.flex-1.display-flex(flex-justify-content="center" flex-align-items="center")
|
|
8
|
-
.mdw-progress-circle.mdw-theme(mdw-ink="primary")
|
|
9
|
-
svg(viewBox="0 0 24 24")
|
|
10
|
-
path(d="M12 3.25A8.75 8.75 0 1 1 3.25 12")
|
|
11
|
-
path(d="M12 3.25A8.75 8.75 0 1 1 3.25 12 A 8.75 8.75 0 0 1 12 3.25")
|
|
12
|
-
.mdw-progress-circle.mdw-theme(mdw-ink="secondary" mdw-determinate)
|
|
13
|
-
svg(viewBox="0 0 24 24")
|
|
14
|
-
path(d="M12 3.25A8.75 8.75 0 1 1 3.25 12")
|
|
15
|
-
path(d="M12 3.25A8.75 8.75 0 1 1 3.25 12 A 8.75 8.75 0 0 1 12 3.25")
|
|
16
|
-
script(src='progress.min.js')
|
package/docs/pages/ripple.pug
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
include ../_mixins.pug
|
|
2
|
-
|
|
3
|
-
+header("ripple")
|
|
4
|
-
.mdw-grid(mdw-margin-top mdw-margin-bottom mdw-stretch)
|
|
5
|
-
.mdw-grid__item(mdw-colspan="4")
|
|
6
|
-
.mdw-grid__content
|
|
7
|
-
h6.mdw-type Javascript
|
|
8
|
-
.display-flex.flex-column.js
|
|
9
|
-
.demo-core-item.mdw-elevation.mdw-ripple.mdw-theme(mdw-elevation="1" mdw-ink="default" mdw-surface="binary") Default Ink
|
|
10
|
-
.demo-core-item.mdw-elevation.mdw-ripple.mdw-theme(mdw-elevation="1" mdw-ink="primary" mdw-surface="binary") Primary Ink
|
|
11
|
-
.demo-core-item.mdw-elevation.mdw-ripple.mdw-theme(mdw-elevation="1" mdw-ink="secondary" mdw-surface="binary") Secondary Ink
|
|
12
|
-
.demo-core-item.mdw-elevation.mdw-ripple.mdw-theme(mdw-elevation="1" mdw-ink="warn" mdw-surface="binary") Warn Ink
|
|
13
|
-
.mdw-grid__item(mdw-colspan="4")
|
|
14
|
-
.mdw-grid__content
|
|
15
|
-
h6.mdw-type CSS Only
|
|
16
|
-
.display-flex.flex-column
|
|
17
|
-
.demo-core-item.mdw-elevation.mdw-ripple.mdw-theme(mdw-elevation="1" mdw-ink="default" mdw-surface="binary") Default Ink
|
|
18
|
-
.demo-core-item.mdw-elevation.mdw-ripple.mdw-theme(mdw-elevation="1" mdw-ink="primary" mdw-surface="binary") Primary Ink
|
|
19
|
-
.demo-core-item.mdw-elevation.mdw-ripple.mdw-theme(mdw-elevation="1" mdw-ink="secondary" mdw-surface="binary") Secondary Ink
|
|
20
|
-
.demo-core-item.mdw-elevation.mdw-ripple.mdw-theme(mdw-elevation="1" mdw-ink="warn" mdw-surface="binary") Warn Ink
|
|
21
|
-
script(src='ripple.min.js')
|
package/docs/pages/search.pug
DELETED
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
include ../_mixins.pug
|
|
2
|
-
|
|
3
|
-
+header("search")
|
|
4
|
-
.comparison.js
|
|
5
|
-
.render
|
|
6
|
-
.display-flex(style="padding:8px")
|
|
7
|
-
.flex-1.display-flex(flex-column)
|
|
8
|
-
p Text field dropdown with:
|
|
9
|
-
ul
|
|
10
|
-
li one-time search on first input
|
|
11
|
-
li startsWith text filter
|
|
12
|
-
li append input on selection
|
|
13
|
-
div
|
|
14
|
-
label.mdw-textfield#search-textfield-custom1.mdw-theme(mdw-ink="secondary")
|
|
15
|
-
input.mdw-textfield__input(placeholder=" ")
|
|
16
|
-
.mdw-textfield__border
|
|
17
|
-
.mdw-textfield__outline-gap
|
|
18
|
-
.mdw-textfield__label Property
|
|
19
|
-
.mdw-textfield__dropdown.mdw-theme(mdw-surface="card" mdw-type="list" mdw-hide)
|
|
20
|
-
.custom-busy-indicator.display-flex(flex-align-items="center")
|
|
21
|
-
.mdw-progress-circle
|
|
22
|
-
svg(viewBox="0 0 24 24")
|
|
23
|
-
path(d="M12 3.25A8.75 8.75 0 1 1 3.25 12")
|
|
24
|
-
path(d="M12 3.25A8.75 8.75 0 1 1 3.25 12 A 8.75 8.75 0 0 1 12 3.25")
|
|
25
|
-
span Searching...
|
|
26
|
-
.mdw-list#search-list-custom1
|
|
27
|
-
p Current Selection:
|
|
28
|
-
span#search-result-custom1
|
|
29
|
-
p Text field dropdown with:
|
|
30
|
-
ul
|
|
31
|
-
li input-based search
|
|
32
|
-
li 300ms debounce
|
|
33
|
-
li replace input on selection
|
|
34
|
-
li disabled item filter
|
|
35
|
-
div
|
|
36
|
-
label.mdw-textfield#search-textfield-custom2.mdw-theme(mdw-ink="primary" mdw-outlined)
|
|
37
|
-
input.mdw-textfield__input(placeholder=" ")
|
|
38
|
-
.mdw-textfield__border
|
|
39
|
-
.mdw-textfield__outline-gap
|
|
40
|
-
.mdw-textfield__label Property
|
|
41
|
-
.mdw-textfield__dropdown.mdw-theme(mdw-surface="card" mdw-type="list" mdw-hide)
|
|
42
|
-
.custom-busy-indicator.display-flex(flex-align-items="center")
|
|
43
|
-
.mdw-progress-circle
|
|
44
|
-
svg(viewBox="0 0 24 24")
|
|
45
|
-
path(d="M12 3.25A8.75 8.75 0 1 1 3.25 12")
|
|
46
|
-
path(d="M12 3.25A8.75 8.75 0 1 1 3.25 12 A 8.75 8.75 0 0 1 12 3.25")
|
|
47
|
-
span Searching...
|
|
48
|
-
.custom-no-results-indicator.display-flex(flex-align-items="center" style="display:none")
|
|
49
|
-
span No results found.
|
|
50
|
-
.mdw-list#search-list-custom2
|
|
51
|
-
p Current Selection:
|
|
52
|
-
span#search-result-custom2
|
|
53
|
-
.comparison.js
|
|
54
|
-
.render
|
|
55
|
-
+androidstatusbar('primary 700', 'dark')
|
|
56
|
-
.mdw-appbar.mdw-theme(mdw-surface="primary 500" mdw-dark)
|
|
57
|
-
.mdw-appbar__action
|
|
58
|
-
.mdw-appbar__start
|
|
59
|
-
+mdwButton({ icon:true }).material-icons arrow_back
|
|
60
|
-
.mdw-appbar__title(mdw-custom)
|
|
61
|
-
.mdw-textfield#search-textfield-simple.mdw-theme(mdw-solo mdw-ink="secondary")
|
|
62
|
-
input.mdw-textfield__input(placeholder="Search")
|
|
63
|
-
.mdw-appbar__end
|
|
64
|
-
+mdwButton({ icon:true }).material-icons clear
|
|
65
|
-
.content
|
|
66
|
-
ul.mdw-list#search-list-simple
|
|
67
|
-
li.mdw-list__item
|
|
68
|
-
a.mdw-list__content Attractions
|
|
69
|
-
li.mdw-list__item
|
|
70
|
-
a.mdw-list__content Dining
|
|
71
|
-
li.mdw-list__item
|
|
72
|
-
a.mdw-list__content Education
|
|
73
|
-
li.mdw-list__item
|
|
74
|
-
a.mdw-list__content Family
|
|
75
|
-
li.mdw-list__item
|
|
76
|
-
a.mdw-list__content Health
|
|
77
|
-
li.mdw-list__item
|
|
78
|
-
a.mdw-list__content Office
|
|
79
|
-
li.mdw-list__item
|
|
80
|
-
a.mdw-list__content Promotions
|
|
81
|
-
li.mdw-list__item
|
|
82
|
-
a.mdw-list__content Radio
|
|
83
|
-
li.mdw-list__item
|
|
84
|
-
a.mdw-list__content Recipes
|
|
85
|
-
li.mdw-list__item
|
|
86
|
-
a.mdw-list__content Sports
|
|
87
|
-
li.mdw-list__item
|
|
88
|
-
a.mdw-list__content Travel
|
|
89
|
-
+androidnavbar
|
|
90
|
-
|
|
91
|
-
.comparison.js
|
|
92
|
-
.render
|
|
93
|
-
+androidstatusbar('primary 700', 'dark')
|
|
94
|
-
.mdw-appbar.mdw-theme(mdw-surface="primary 500" mdw-dark)
|
|
95
|
-
.mdw-appbar__action
|
|
96
|
-
.mdw-appbar__start
|
|
97
|
-
+mdwButton({ icon:true }).material-icons arrow_back
|
|
98
|
-
.mdw-appbar__title(mdw-custom)
|
|
99
|
-
.mdw-textfield#search-textfield-multiline.mdw-theme(mdw-solo mdw-ink="secondary")
|
|
100
|
-
input.mdw-textfield__input(placeholder="Search")
|
|
101
|
-
.mdw-appbar__end
|
|
102
|
-
+mdwButton({ icon:true}).material-icons clear
|
|
103
|
-
.content
|
|
104
|
-
ul.mdw-list#search-list-multiline
|
|
105
|
-
li.mdw-list__subheader.mdw-theme(mdw-ink="medium") Today
|
|
106
|
-
li.mdw-list__item
|
|
107
|
-
.mdw-list__content.mdw-overlay.mdw-ripple
|
|
108
|
-
.mdw-list__avatar
|
|
109
|
-
i.material-icons(style="font-size:40px") 
|
|
110
|
-
.mdw-list__text
|
|
111
|
-
.mdw-list__text-line Brunch this weekend?
|
|
112
|
-
.mdw-list__text-block Ali Connors
|
|
113
|
-
span.mdw-theme(mdw-ink="medium") — I'll be in your neighborhood doing errands this weekend. Do you want to meet?
|
|
114
|
-
li.mdw-list__item
|
|
115
|
-
.mdw-list__content
|
|
116
|
-
.mdw-list__avatar
|
|
117
|
-
i.material-icons(style="font-size:40px") 
|
|
118
|
-
.mdw-list__text
|
|
119
|
-
.mdw-list__text-line Summer BBQ
|
|
120
|
-
span.mdw-theme(mdw-ink="medium") 4
|
|
121
|
-
.mdw-list__text-block to Alex, Scott, Jennifer
|
|
122
|
-
span.mdw-theme(mdw-ink="medium") — Wish I could come. but I'm out of town this weekend.
|
|
123
|
-
li.mdw-list__item
|
|
124
|
-
.mdw-list__content
|
|
125
|
-
.mdw-list__avatar
|
|
126
|
-
i.material-icons(style="font-size:40px") 
|
|
127
|
-
.mdw-list__text
|
|
128
|
-
.mdw-list__text-line Oui oui
|
|
129
|
-
.mdw-list__text-block Sandra Adams
|
|
130
|
-
span.mdw-theme(mdw-ink="medium") — Do you have Paris recommendations? Have you ever been?
|
|
131
|
-
li.mdw-list__item
|
|
132
|
-
.mdw-list__content
|
|
133
|
-
.mdw-list__avatar
|
|
134
|
-
i.material-icons(style="font-size:40px") 
|
|
135
|
-
.mdw-list__text
|
|
136
|
-
.mdw-list__text-line Birthday gift
|
|
137
|
-
.mdw-list__text-block Trevor Hansen
|
|
138
|
-
span.mdw-theme(mdw-ink="medium") — Have any ideas about what we should get Heidi for her birthday?
|
|
139
|
-
li.mdw-list__item
|
|
140
|
-
.mdw-list__content
|
|
141
|
-
.mdw-list__avatar
|
|
142
|
-
i.material-icons(style="font-size:40px") 
|
|
143
|
-
.mdw-list__text
|
|
144
|
-
.mdw-list__text-line Recipe to try
|
|
145
|
-
.mdw-list__text-block Britta Holt
|
|
146
|
-
span.mdw-theme(mdw-ink="medium") — We should eat this: Grated Squash, Corn, and tomatillo Tacos J
|
|
147
|
-
li.mdw-list__item
|
|
148
|
-
.mdw-list__content
|
|
149
|
-
.mdw-list__avatar
|
|
150
|
-
i.material-icons(style="font-size:40px") 
|
|
151
|
-
.mdw-list__text
|
|
152
|
-
.mdw-list__text-line Giants game
|
|
153
|
-
.mdw-list__text-block David Park
|
|
154
|
-
span.mdw-theme(mdw-ink="medium") — Any interest in seeing
|
|
155
|
-
li.mdw-list__item
|
|
156
|
-
.mdw-list__content
|
|
157
|
-
.mdw-list__avatar
|
|
158
|
-
i.material-icons(style="font-size:40px") 
|
|
159
|
-
.mdw-list__text
|
|
160
|
-
.mdw-list__text-line Montauk weekend
|
|
161
|
-
.mdw-list__text-block -----
|
|
162
|
-
+androidnavbar
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
script(src='search.min.js')
|
package/docs/pages/selection.pug
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
include ../_mixins.pug
|
|
2
|
-
|
|
3
|
-
+header("selection")
|
|
4
|
-
.mdw-grid(mdw-stretch)
|
|
5
|
-
.mdw-grid__item(mdw-colspan="4")
|
|
6
|
-
.mdw-grid__content
|
|
7
|
-
.render-fill
|
|
8
|
-
+androidstatusbar('teal 700', 'dark')
|
|
9
|
-
.mdw-appbar.mdw-theme(mdw-surface="teal 500" mdw-dark)
|
|
10
|
-
.mdw-appbar__action
|
|
11
|
-
.mdw-appbar__title Styled HTMLInputElement
|
|
12
|
-
.content
|
|
13
|
-
.display-flex(style="padding:16px")
|
|
14
|
-
+mdwSelection({ink:'blue', checked:true, prefix:true, type:'switch' }) Switch
|
|
15
|
-
.display-flex(style="padding:16px")
|
|
16
|
-
+mdwSelection({ink:'blue', checked:true, prefix:true }) Prefixed
|
|
17
|
-
.display-flex(style="padding:16px")
|
|
18
|
-
+mdwSelection({ink:'teal', checked:true }) Suffixed
|
|
19
|
-
.display-flex(style="padding:16px")
|
|
20
|
-
+mdwSelection({ink:'teal', checked:true, disabled:true}) Disabled
|
|
21
|
-
.display-flex(style="padding:16px")
|
|
22
|
-
+mdwSelection({ink:'teal', type:'radio', name:'test', checked:true }) Option A
|
|
23
|
-
.display-flex(style="padding:16px")
|
|
24
|
-
+mdwSelection({ink:'teal', type:'radio', name:'test' }) Option B
|
|
25
|
-
.display-flex(style="padding:16px")
|
|
26
|
-
+mdwSelection({ink:'teal', type:'radio', name:'test', disabled:true }) Option C
|
|
27
|
-
.mdw-grid__item(mdw-colspan="4")
|
|
28
|
-
.mdw-grid__content
|
|
29
|
-
.render-fill
|
|
30
|
-
+androidstatusbar('teal 700', 'dark')
|
|
31
|
-
.mdw-appbar.mdw-theme(mdw-surface="teal 500" mdw-dark)
|
|
32
|
-
.mdw-appbar__action
|
|
33
|
-
.mdw-appbar__title aria-checked (JS)
|
|
34
|
-
.content
|
|
35
|
-
div#docs-selection-subheader1.mdw-list__subheader.mdw-theme(mdw-ink="medium") Switch
|
|
36
|
-
ul.mdw-list(role="listbox" aria-labelledby='docs-selection-subheader1')
|
|
37
|
-
li.mdw-list__item
|
|
38
|
-
a.mdw-list__content.mdw-selection.mdw-overlay(aria-checked="true")
|
|
39
|
-
.mdw-list__text.mdw-selection__label Android Switch
|
|
40
|
-
.mdw-list__secondary.mdw-selection__icon.mdw-theme(mdw-ink="teal" mdw-switch)
|
|
41
|
-
li.mdw-list__item
|
|
42
|
-
a.mdw-list__content.mdw-selection.mdw-overlay(aria-checked="false" aria-disabled="true")
|
|
43
|
-
.mdw-list__text.mdw-selection__label Android Switch Disabled
|
|
44
|
-
.mdw-list__secondary.mdw-selection__icon.mdw-theme(mdw-ink="teal contrast" mdw-switch)
|
|
45
|
-
.mdw-list__subheader.mdw-theme(mdw-ink="medium") .mdw-list[role="radiogroup"]
|
|
46
|
-
ul.mdw-list.mdw-selection__radio-group(role="radiogroup")
|
|
47
|
-
li.mdw-list__item
|
|
48
|
-
a.mdw-list__content.mdw-selection.mdw-overlay(aria-checked="true")
|
|
49
|
-
.mdw-list__text.mdw-selection__label
|
|
50
|
-
.mdw-list__text-line Option 1
|
|
51
|
-
.mdw-list__text-line.mdw-theme(mdw-ink="medium") Description
|
|
52
|
-
.mdw-list__secondary.mdw-selection__icon.mdw-theme(mdw-ink="teal" mdw-radio)
|
|
53
|
-
li.mdw-list__item
|
|
54
|
-
a.mdw-list__content.mdw-selection.mdw-overlay(aria-checked="false")
|
|
55
|
-
.mdw-list__text.mdw-selection__label
|
|
56
|
-
.mdw-list__text-line Option 2
|
|
57
|
-
.mdw-list__text-line.mdw-theme(mdw-ink="medium") Description
|
|
58
|
-
.mdw-list__secondary.mdw-selection__icon.mdw-theme(mdw-ink="blue" mdw-radio)
|
|
59
|
-
.mdw-list__subheader.mdw-theme(mdw-ink="medium") Multiple check
|
|
60
|
-
ul.mdw-list(role="listbox" aria-multiselectable="true")
|
|
61
|
-
li.mdw-list__item
|
|
62
|
-
a.mdw-list__content.mdw-selection.mdw-overlay(aria-checked="true")
|
|
63
|
-
.mdw-list__text.mdw-selection__label Option 1
|
|
64
|
-
.mdw-list__secondary.mdw-selection__icon.mdw-theme(mdw-ink="teal" mdw-checkbox)
|
|
65
|
-
li.mdw-list__item
|
|
66
|
-
a.mdw-list__content.mdw-selection.mdw-overlay(aria-checked="true")
|
|
67
|
-
.mdw-list__text.mdw-selection__label Option 2
|
|
68
|
-
.mdw-list__secondary.mdw-selection__icon.mdw-theme(mdw-ink="blue" mdw-checkbox)
|
|
69
|
-
li.mdw-list__item
|
|
70
|
-
a.mdw-list__content.mdw-selection.mdw-overlay(aria-checked="false")
|
|
71
|
-
.mdw-list__text.mdw-selection__label Option 3
|
|
72
|
-
.mdw-list__secondary.mdw-selection__icon.mdw-theme(mdw-ink="warn" mdw-checkbox)
|
|
73
|
-
|
|
74
|
-
script(src='selection.min.js')
|
package/docs/pages/slider.pug
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
include ../_mixins.pug
|
|
2
|
-
|
|
3
|
-
+header("slider")
|
|
4
|
-
.mdw-grid(mdw-margin-top mdw-margin-bottom mdw-stretch)
|
|
5
|
-
.mdw-grid__item(mdw-colspan="100%")
|
|
6
|
-
h5.mdw-type(mdw-baseline-next="36") Sliders allow users to make selections from a range of values.
|
|
7
|
-
p.mdw-type Sliders reflect a range of values along a bar, from which users may select a single value. They are ideal for adjusting settings such as volume, brightness, or applying image filters.
|
|
8
|
-
.mdw-grid__item(mdw-colspan="4")
|
|
9
|
-
.component-sample
|
|
10
|
-
.component-sample__container
|
|
11
|
-
label.mdw-slider.mdw-theme(mdw-ink="secondary")
|
|
12
|
-
input.mdw-slider__input(type="range" list="sample-list")
|
|
13
|
-
datalist#sample-list
|
|
14
|
-
option(value=0 label="None")
|
|
15
|
-
option(value=50 label="Half")
|
|
16
|
-
option(value=100 label="All")
|
|
17
|
-
script(src='slider.min.js')
|
package/docs/pages/snackbar.pug
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
include ../_mixins.pug
|
|
2
|
-
|
|
3
|
-
+header("snackbar")
|
|
4
|
-
.mdw-grid(mdw-margin-top mdw-margin-bottom)
|
|
5
|
-
.mdw-grid__item(mdw-colspan="100%")
|
|
6
|
-
h5.mdw-type(mdw-baseline-next="36") Snackbars provide brief messages about app processes at the bottom of the screen.
|
|
7
|
-
p.mdw-type Snackbars inform users of a process that an app has performed or will perform. They appear temporarily, towards the bottom of the screen. They shouldn’t interrupt the user experience, and they don’t require user input to disappear.
|
|
8
|
-
.mdw-grid__item(mdw-colspan="100%")
|
|
9
|
-
.mdw-grid__content.component-sample(style="padding:0")
|
|
10
|
-
.mdw-grid(style="width:100%;height:100%")
|
|
11
|
-
.mdw-grid__item(mdw-colspan="100%")
|
|
12
|
-
div
|
|
13
|
-
+mdwButton({ ink:'secondary' }) Create New
|
|
14
|
-
.mdw-grid__item(mdw-colspan="100%")
|
|
15
|
-
.mdw-snackbar__wrapper
|
|
16
|
-
.mdw-snackbar__container
|
|
17
|
-
.mdw-snackbar.mdw-theme(aria-hidden="false" mdw-surface="background 900" mdw-dark)
|
|
18
|
-
span Short message snackbar.
|
|
19
|
-
+mdwButton({ink:'secondary'}) Action
|
|
20
|
-
.mdw-grid__item(mdw-colspan="100%")
|
|
21
|
-
.mdw-snackbar__wrapper
|
|
22
|
-
.mdw-snackbar__container.js-sample
|
|
23
|
-
.mdw-grid__item(mdw-colspan="4")
|
|
24
|
-
.mdw-type(mdw-style="subtitle") Javascript
|
|
25
|
-
.docs-option-list
|
|
26
|
-
+mdwSelection({ink:'secondary', name:'javascript', type:'radio', value:'required', disabled:true}) Required
|
|
27
|
-
+mdwSelection({ink:'secondary', name:'javascript', type:'radio', value:'optional', checked:true}) Optional
|
|
28
|
-
+mdwSelection({ink:'secondary', name:'javascript', type:'radio', value:'none' }) None
|
|
29
|
-
.mdw-type(mdw-style="subtitle") Text
|
|
30
|
-
.docs-option-list
|
|
31
|
-
+mdwSelection({ink:'secondary', name:'text', type:'radio', value:'short', checked:true}) Short
|
|
32
|
-
+mdwSelection({ink:'secondary', name:'text', type:'radio', value:'long'}) Long
|
|
33
|
-
+mdwSelection({ink:'secondary', name:'text', type:'radio', value:'line-break' }) Explicit line-break
|
|
34
|
-
.mdw-type(mdw-style="subtitle") Button
|
|
35
|
-
.docs-option-list
|
|
36
|
-
+mdwSelection({ink:'secondary', name:'button', type:'radio', value:'none'}) None
|
|
37
|
-
+mdwSelection({ink:'secondary', name:'button', type:'radio', value:'short', checked:true}) Short
|
|
38
|
-
+mdwSelection({ink:'secondary', name:'button', type:'radio', value:'long' }) Long
|
|
39
|
-
.mdw-type(mdw-style="subtitle") Visibility
|
|
40
|
-
.docs-option-list
|
|
41
|
-
+mdwSelection({ink:'secondary', name:'visibility', type:'radio', value:'show', checked:true}) Shos
|
|
42
|
-
+mdwSelection({ink:'secondary', name:'visibility', type:'radio', value:'hide'}) Hide
|
|
43
|
-
.mdw-type(mdw-style="subtitle") Position
|
|
44
|
-
.docs-option-list
|
|
45
|
-
+mdwSelection({ink:'secondary', name:'position', type:'radio', value:'auto', checked:true}) Start (Default)
|
|
46
|
-
+mdwSelection({ink:'secondary', name:'position', type:'radio', value:'center'}) Center
|
|
47
|
-
+mdwSelection({ink:'secondary', name:'position', type:'radio', value:'end'}) End
|
|
48
|
-
.mdw-type(mdw-style="subtitle") Options
|
|
49
|
-
.docs-option-list
|
|
50
|
-
+mdwSelection({ink:'secondary', name:'stacked'}) Stacked
|
|
51
|
-
.mdw-grid__item(mdw-colspan="100%" style="max-height:0")
|
|
52
|
-
.mdw-grid__item(mdw-colspan="6")
|
|
53
|
-
.display-flex(flex-column)
|
|
54
|
-
h6.mdw-type HTML Code
|
|
55
|
-
.mdw-card.mdw-theme.component-code.component-html(mdw-surface="card" mdw-border-ink)
|
|
56
|
-
.mdw-grid__item(mdw-colspan="6")
|
|
57
|
-
.display-flex(flex-column)
|
|
58
|
-
h6.mdw-type Javascript Code
|
|
59
|
-
.mdw-card.mdw-theme.component-code.component-js(mdw-surface="card" mdw-border-ink)
|
|
60
|
-
script(src='snackbar.min.js')
|